diff --git a/charting_library.d.ts b/charting_library.d.ts new file mode 100644 index 00000000..250a5c6e --- /dev/null +++ b/charting_library.d.ts @@ -0,0 +1,5 @@ +export * from './charting_library/charting_library'; +declare module 'charting_library/datafeeds/udf/dist/bundle' { + const UDFCompatibleDatafeed: typeof import('./datafeeds/udf/src/udf-compatible-datafeed').UDFCompatibleDatafeed; + export { UDFCompatibleDatafeed }; +} diff --git a/charting_library/ar-tv-locale.3fdcc43e.js b/charting_library/ar-tv-locale.3fdcc43e.js deleted file mode 100644 index 5335d2c3..00000000 --- a/charting_library/ar-tv-locale.3fdcc43e.js +++ /dev/null @@ -1 +0,0 @@ -var _tv_languages=_tv_languages||{};_tv_languages.ar={Cancel:"إلغاء",Price:"سعر",Currency:"عملة",Open:"إفتتاح",Volume:"حجم التداول",Comment:"تعليق","Editors' picks":"مختارات المحرر","powered by":"مدعوم من",Chart:"الرسوم البيانية",Search:"بحث","Learn more":"تعرف على المزيد",Date:"التاريخ",Source:"مصدر",Description:"الوصف",Settings:"إعدادات",Background:"الخلفية",Border:"الإطار",Apply:"تطبيق",Symbol:"رمز",Timezone:"توقيت",Bars:"أعمدة",Candles:"شموع","Heikin Ashi":"هايكين آشي",Line:"خط",Area:"مساحة",Currencies:"العملات",Exchange:"بورصة التداول",Grid:"شبكة",Trading:"تداول",More:"المزيد",Indicators:"مؤشرات",Prices:"أسعار","Head and Shoulders":"نموذج الرأس والكتفين",Flag:"علم",Rectangle:"مستطيل","Parallel Channel":"قناة متوازية",Triangle:"مثلث","Gann Box":"صندوق جان","Gann Fan":"مروحة جان","Gann Square":"مربع جان",Inputs:"مدخلات",Error:"خطأ",Remove:"حذف",January:"يناير",February:"فبراير",March:"مارس",April:"أبريل",May:"مايو",June:"يونيو",July:"يوليو",August:"أغسطس",September:"سبتمبر",October:"أكتوبر",November:"نوفمبر",December:"ديسمبر","Indicators & Strategies":"المؤشرات والاستراتيجيات",Change:"تغيير","Hong Kong":"هونج كونج",forex:"فوركس",Type:"نوع","Invalid Symbol":"رمز غير صحيح",Bahrain:"البحرين",Luxembourg:"لوكسمبورغ","New Zealand":"نيوزلندا",Qatar:"قطر",Singapore:"سنغافورة",Ok:"موافق","N/A":"غير متاح",Properties:"خصائص",Absolute:"مطلق",d_dates:"يوم",h_dates:"ساعة",m_dates:"دقيقة",s_dates:"s","At close":"عند الإغلاق",Holiday:"عطلة","Click to set a point":"انقر لتحديد نقطة","Move the point to position the anchor then tap to place":"حرّك النقطة لتغيير موضع المُثبّت ثم اضغط لوضعه","Double-click to finish Path":"انقر مرتيين لإنهاء المسار","Double-click to finish Polyline":"انقر مرتيين لإنهاء الشكل متعدد الخطوط","Press and hold {key} while zooming to maintain the chart position":"اضغط لمدة مطولة على {key} أثناء التكبير للحفاظ على موضع الرسم البياني","Double-click any edge to reset layout grid":"انقر نقرًا مزدوجًا فوق أي حافة لإعادة تعيين شبكة التنسيق","Link to the chart image copied to clipboard {emoji}":"تم نسخ رابط صورة الرسم البيانية إلى الحافظة ‎{emoji}‎","Chart image copied to clipboard {emoji}":"صورة الرسم البياني نسخت للحافظة ‎{emoji}‎",Baseline:"خط الأساس",Units:"وحدات",Reverse:"انعكاس",Yes:"نعم",No:"لا",O_in_legend:"O",H_in_legend:"H",L_in_legend:"L",C_in_legend:"C",Compare:"قارن",Moscow:"موسكو",London:"لندن","New York":"نيويورك",Toronto:"تورنتو",Paris:"باريس",Seoul:"سيول",Bangkok:"بانكوك",Trade:"تداول","Recently used":"مستخدَمٌ حديثاً",Save:"حفظ",Hide:"إخفاء",Show:"عرض",month_0:"شهر",month_1:"شهر",month_2:"شهر",month_3:"أشهر",month_4:"شهر",month_5:"شهر",High:"أعلى سعر",Low:"أدنى",Ticker:"الرمز",Vol:"حجم تداول","No symbols match your criteria":"لا توجد رموز تطابق معاييرك",Close:"إغلاق",Time:"الوقت","{number} minute_0":"{number} دقيقة","{number} minute_1":"{number} دقيقة","{number} minute_2":"{number} دقيقة","{number} minute_3":"{number} دقائق","{number} minute_4":"{number} دقيقة","{number} minute_5":"{number} دقيقة",m_interval_short:"دقيقة","{number} hour_0":"{number} ساعة","{number} hour_1":"{number} ساعة","{number} hour_2":"{number} ساعة","{number} hour_3":"{number} ساعات","{number} hour_4":"{number} ساعة","{number} hour_5":"{number} ساعة",h_interval_short:"ساعة","{number} day_0":"{number} يوم","{number} day_1":"{number} يوم","{number} day_2":"{number} يوم","{number} day_3":"{number} أيام","{number} day_4":"{number} يوم","{number} day_5":"{number} يوم",D_interval_short:"يوم",W_interval_short:"أسبوع",M_interval_short:"شهر",Rename:"تغيير الأسم","Remove from favorites":"حذف من القائمة المفضلة","Add to favorites":"اضف إلى القائمة التفضيلات","Time Interval":"الفترة الزمنية",Copy:"نسخ",Drawings:"الرسوم","Price format is invalid.":"صيغة السعر غير صحيحة",Ticks:"تيكات السعر","{exchange} by {originalExchange}":"‎{exchange}‎ من ‎{originalExchange}‎","Real-time data for {symbolName} is provided by {exchange} exchange.":"البيانات اللحظية لـ ‎{symbolName}‎ مقدمة من بورصة ‎.{exchange}‎","This data is real-time, but it’s slightly different to its official counterpart coming from {exchange}.":"هذه البيانات لحظية، لكنها تختلف قليلاً عن نظيرتها الرسمية الواردة من {exchange}.",Increase:"زيادة",Decrease:"تخفيض","Number format is invalid.":"تنسيق الرقم غير صالح.","Specified value is more than the instrument maximum of {max}.":"القيمة المحددة أكبر من الحد الأقصى للأداة والتي تبلغ ‎{max}.","Specified value is less than the instrument minimum of {min}.":"القيمة المحددة أقل من الحد الأدنى للأداة والتي تبلغ {min}.",Risk:"مخاطرة",Body:"الجزء الرئيسي",Wick:"ظل الشمعة",Right:"يمين",Left:"يسار",Interval:"الفاصل الزمني","change timezone":"تغيير المنطقة الزمنية",UTC:"بالتوقيت العالمي المنسق",Cairo:"القاهرة",Johannesburg:"جوهانسبرج",Lagos:"بورصة لاغوس","Buenos Aires":"بوينس آيرس",Bogota:"بوجوتا",Caracas:"كاراكاس",Chicago:"شيكاغو","San Salvador":"سان سلفادور",Juneau:"جونو",Lima:"بورصة ليما","Los Angeles":"لوس أنجلوس","Mexico City":"مدينة المكسيك",Phoenix:"فونيكس",Santiago:"بورصة سانتياغو","Sao Paulo":"ساو باولو",Vancouver:"فانكوفر",Denver:"دينفر Denver",Almaty:"ألماتي",Ashgabat:"عشق أباد",Chongqing:"تشونغتشينغ",Dubai:"دبي","Ho Chi Minh":"هوشي منه",Jakarta:"بورصة جاكرتا",Jerusalem:"القدس",Karachi:"كراتشي",Kolkata:"كولكاتا",Kuwait:"الكويت",Manila:"مانيلا",Muscat:"مسقط",Riyadh:"الرياض",Shanghai:"شنغهاي",Taipei:"طرابلس",Tehran:"طهران",Tokyo:"طوكيو",Reykjavik:"بورصة ريكيافيك",Adelaide:"أديلايد",Brisbane:"بريزبان",Perth:"بِرث",Sydney:"سيدني",Amsterdam:"أمستردام",Athens:"أثينا",Belgrade:"بلغراد",Berlin:"برلين",Bratislava:"براتيسلافا",Brussels:"بروكسل",Bucharest:"بوخاريست",Copenhagen:"بورصة كوبنهاجن",Dublin:"دابلن",Helsinki:"بورصة هلسنكي",Istanbul:"إسطنبول",Lisbon:"لشبونة",Madrid:"مدريد",Malta:"مالطا",Oslo:"أوسلو",Riga:"بورصة ريغا",Rome:"روما",Stockholm:"بورصة ستوكهولم",Tallinn:"بورصة تالين",Vilnius:"بورصة فيلنيوس",Warsaw:"وارسو",Zurich:"زيوريخ","Chatham Islands":"جزر تشاتام",Honolulu:"هونولولو","Norfolk Island":"جزيرة نورفولك",Coordinates:"إحداثيات","Events & Alerts":"الأحداث والتنبيهات",Events:"أحداث",Scales:"المقاييس","Source Code":"كود المصدر",Style:"نمط","Timezone/Sessions":"المنطقة الزمنية/جلسات التداول",Visibility:"الظهور","Box size assignment method":"طريقة تعيين حجم الصندوق","Color bars based on previous close":"تلوين الأعمدة طبقًا للإغلاق السابق",Borders:"إطارات","HLC bars":"أعمدة (الأعلى - الأدنى - الإغلاق)","Price source":"مصدر السعر","Show real prices on price scale (instead of Heikin-Ashi price)":"عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","Up bars":"الشموع الصاعدة","Down bars":"الشموع الهابطة","Projection up bars":"إسقاط الأعمدة الصاعدة","Projection down bars":"إسقاط الأعمدة الهابطة","Projection up color":"زيادة درجة لون العرض","Projection down color":"تقليل درجة لون العرض",Fill:"ملئ","Up color":"لون الإرتفاع","Down color":"لون الإنخفاض",Traditional:"تقليدي","Box size":"حجم المربع","Number of line":"عدد الخطوط","ATR length":"فترة حساب ATR","Reversal amount":"قيمة الإنعكاس","Phantom bars":"قيم التداول الخاطئة","One step back building":"خطوة واحدة إلى الوراء",Wicks:"ظلال",Range:"مدى","You cannot see this pivot timeframe on this resolution":"لا يمكنك رؤية النقاط المحورية على هذا الإطار الزمني","The data vendor doesn't provide volume data for this symbol.":"لا يوفر المزود بيانات أحجام التداول لهذا الرمز.","Accumulation/Distribution_study":"تجميع/توزيع","Accumulative Swing Index_study":"مؤشر الموجة التراكمي","Advance/Decline_study":"مؤشر الصعود/التراجع","Arnaud Legoux Moving Average_study":"متوسط متحرك أرنو ليجو",Aroon_study:"آرون",ASI_study:"مؤشر الموجة التراكمي","Average Directional Index_study":"مؤشر متوسط الحركة الاتجاهية","Average True Range_study":"متوسط المدى الحقيقي","Awesome Oscillator_study":"المتذبذب الرهيب Awesome Oscillator","Balance of Power_study":"ميزان القوة","Bollinger Bands %B_study":"نطاقات بولنجر %B","Bollinger Bands Width_study":"عرض حدود بولنجر","Bollinger Bands_study":"نطاقات بولنجر","Chaikin Money Flow_study":"مؤشر التدفق النقدي لشايكين","Chaikin Oscillator_study":"مؤشر شايكين","Chande Kroll Stop_study":"وقف اتشاند كرول","Chande Momentum Oscillator_study":"مؤشر زخم اتشاند","Chop Zone_study":"نطاق تقلب سعري (نطاق شوب)","Choppiness Index_study":"مؤشر التقلب السعري","Commodity Channel Index_study":"مؤشر قناة السلع","Connors RSI_study":"مؤشر القوى النسبية لكونرز","Coppock Curve_study":"منحنى كوبوك","Correlation Coefficient_study":"معامل الارتباط",CRSI_study:"مؤشر القوى النسبية لكونرز","Detrended Price Oscillator_study":"مؤشر التذبذب السعري","Directional Movement_study":"الحركة الاتجاهية","Donchian Channels_study":"قنوات دونشيان","Double EMA_study":"متوسط متحرك أسي مزدوج","Ease Of Movement_study":"سهولة الحركة","Elder's Force Index_study":"مؤشر قوى إلدر","EMA Cross_study":"تقاطع المتوسط المتحرك الأسي",Envelopes_study:"أغلفة","Fisher Transform_study":"تحويلة فيشر","Fixed Range_study":"النطاق الثابت","Guppy Multiple Moving Average_study":"المتوسط المتحرك المتعدد جوبي","Historical Volatility_study":"التقلبات التاريخية","Hull Moving Average_study":"متوسط متحرك هال","Ichimoku Cloud_study":"سحابة إيتشيموكو","Keltner Channels_study":"قناة كلتنر","Klinger Oscillator_study":"مؤشر كلنجر","Know Sure Thing_study":"أعرف الأشياء المؤكدة","Least Squares Moving Average_study":"متوسط المربعات الصغرى المتحرك","Linear Regression Curve_study":"منحنى الانحدار الخطي","MA Cross_study":"تقاطع المتوسط المتحرك","MA with EMA Cross_study":"تقاطع المتوسط المتحرك مع الأسي","MA/EMA Cross_study":"تقاطع المتوسط المتحرك/الأسي",MACD_study:"MACD","Mass Index_study":"مؤشر الكتلة","McGinley Dynamic_study":"ماكجينلي ديناميك",Momentum_study:"زخم","Money Flow_study":"التدفق النقدي","Moving Average Channel_study":"قناة المتوسط المتحرك","Moving Average Exponential_study":"المتوسط المتحرك الأسي","Moving Average Weighted_study":"المتوسط المتحرك المرجح","Moving Average_study":"المتوسط المتحرك","Net Volume_study":"صافي حجم التداول","On Balance Volume_study":"مؤشر OBV","Parabolic SAR_study":"مؤشر البارابوليك سار","Pivot Points Standard_study":"النقاط المحورية القياسية","Price Channel_study":"قناة سعرية","Price Oscillator_study":"مؤشر التذبذب السعري","Price Volume Trend_study":"اتجاه حجم التداول للأسعار","Rate Of Change_study":"معدل التغير","Relative Strength Index_study":"مؤشر القوة النسبية","Relative Vigor Index_study":"مؤشر النشاط النسبي","Relative Volatility Index_study":"مؤشر التقلب النسبي","Session Volume_study":"حجم تداول الفترة","Session Volume HD_study":"أحجام تداول الجلسة HD","SMI Ergodic Indicator/Oscillator_study":"مؤشر إرجوديك SMI","Smoothed Moving Average_study":"المتوسط المتحرك المحسن","Stochastic RSI_study":"ستوكاستك القوة النسبية (STOCH RSI)",Stochastic_study:"مؤشر ستوكاستك","Triple EMA_study":"المتوسط المتحرك الأسي الثلاثي",TRIX_study:"مؤشر TRIX","True Strength Indicator_study":"مؤشر القوة الحقيقية TSI","Ultimate Oscillator_study":"مؤشر Ultimate Oscillator","Visible Range_study":"نطاق مرئي","Volume Oscillator_study":"متذبذب حجم التداول",Volume_study:"حجم التداول","Vortex Indicator_study":"مؤشر فورتكس Vortex",VWAP_study:"متوسط السعر المرجح بحجم التداول VWAP",VWMA_study:"المتوسط المتحرك المرجح بحجم التداول VWMA","Williams %R_study":"%R ويليامز","Williams Alligator_study":"مؤشر ويليامز أليجيتور","Williams Fractal_study":"فراكتال ويليامز","Zig Zag_study":"مؤشر الزيجزاج",SuperTrend_study:"سوبرترند","Average Price_study":"متوسط السعر","Typical Price_study":"السعر النموذجي","Median Price_study":"السعر الوسيط","Money Flow Index_study":"مؤشر التدفق النقدي MFI","Moving Average Double_study":"المتوسط المتحرك المزدوج","Moving Average Triple_study":"المتوسط المتحرك الثلاثي","Moving Average Adaptive_study":"المتوسط المتحرك المتكيف","Moving Average Hamming_study":"المتوسط المتحرك هامينج","Moving Average Modified_study":"المتوسط المتحرك المُعدل","Moving Average Multiple_study":"المتوسط المتحرك المتعدد","Linear Regression Slope_study":"ميل الانحدار الخطي","Standard Error_study":"خطأ معياري","Standard Error Bands_study":"نطاقات الخطأ معياري","Correlation - Log_study":"ترابط - لوغاريتمي","Standard Deviation_study":"الانحراف المعياري","Chaikin Volatility_study":"تّقلب شايكن","Volatility Close-to-Close_study":"التّقلب بحساب أسعار الإغلاق","Volatility Zero Trend Close-to-Close_study":"التّقلب بحساب أسعار الإغلاق بدون اتجاه","Volatility O-H-L-C_study":"التّقلب O-H-L-C","Volatility Index_study":"مؤشرالتّقلب","Trend Strength Index_study":"مؤشر قوة الاتجاه","Majority Rule_study":"قاعدة الأغلبية",Length_input:"طول",Plot_input:"ارسم",Zero_input:"صفر",Signal_input:"إشارة",Long_input:"شراء",Short_input:"بيع",UpperLimit_input:"الانحراف العلوي",LowerLimit_input:"حد أدنى",Offset_input:"موازن",length_input:"طول",mult_input:"مضاعف",short_input:"بيع",long_input:"شراء",Limit_input:"حد",Move_input:"حركة",Value_input:"قيمة",Method_input:"طريقة","Accumulation/Distribution_input":"تجميع/توزيع",ADR_B_input:"DADR_B","Equality Line_input":"خط المساواة","Window Size_input":"حجم النافذة",Sigma_input:"سيجما","Aroon Up_input":"أرون صاعد","Aroon Down_input":"أرون هابط",Upper_input:"العلوي",Lower_input:"أدنى",Deviation_input:"الانحراف","Levels Format_input":"تنسيق المستويات","Labels Position_input":"ملصقات المركز","0 Level Color_input":"مستوى اللون 0","0.236 Level Color_input":"مستوى اللون 0.236","0.382 Level Color_input":"مستوى اللون 0.382","0.5 Level Color_input":"مستوى اللون 0.5","0.618 Level Color_input":"مستوى اللون 0.618","0.65 Level Color_input":"مستوى اللون 0.65","0.786 Level Color_input":"مستوى اللون 0.786","1 Level Color_input":"مستوى اللون 1","1.272 Level Color_input":"مستوى اللون 1.272","1.414 Level Color_input":"مستوى اللون 1.414","1.618 Level Color_input":"مستوى اللون 1.618","1.65 Level Color_input":"مستوى اللون 1.65","2.618 Level Color_input":"مستوى اللون 2.618","2.65 Level Color_input":"مستوى اللون 2.65","3.618 Level Color_input":"مستوى اللون 3.618","3.65 Level Color_input":"مستوى اللون 3.65","4.236 Level Color_input":"مستوى اللون 4.236","-0.236 Level Color_input":"مستوى اللون -0.236","-0.382 Level Color_input":"مستوى اللون -0.382","-0.618 Level Color_input":"مستوى اللون -0.618","-0.65 Level Color_input":"مستوى اللون -0.65",ADX_input:"متوسط مؤشر الاتجاه (ADX)","ADX Smoothing_input":"تحسين مؤشر متوسط الحركة الاتجاهية","DI Length_input":"طول مؤشر الاتجاه",Smoothing_input:"تحسين",ATR_input:"متوسط ​​المدى الحقيقي ATR",Growing_input:"صاعد",Falling_input:"هابط","Color 0_input":"لون 0","Color 1_input":"لون 1",Source_input:"مصدر",StdDev_input:"الانحراف المعياري",Basis_input:"أساس",Median_input:"قيمة متوسطة","Bollinger Bands %B_input":"حدود بولنجر %B",Overbought_input:"تشبع شرائي",Oversold_input:"تشبع بيعي","Bollinger Bands Width_input":"عرض حدود بولنجر","RSI Length_input":"طول مؤشر القوى النسبية","UpDown Length_input":"طول الصعود أو الهبوط","ROC Length_input":"طول معدل التغير",MF_input:"التدفق النقدي",resolution_input:"الدقة","Fast Length_input":"طول الخط السريع","Slow Length_input":"طول الخط البطيء","Chaikin Oscillator_input":"مؤشر شايكين",P_input:"P",X_input:"X",Q_input:"Q",p_input:"P",x_input:"X",q_input:"q",Price_input:"سعر","Chande MO_input":"مؤشر زخم اتشاند","Zero Line_input":"خط الصفر","Color 2_input":"لون 2","Color 3_input":"لون 3","Color 4_input":"لون 4","Color 5_input":"لون 5","Color 6_input":"لون 6","Color 7_input":"لون 7","Color 8_input":"لون 8",CHOP_input:"نطاق تقلب سعري (نطاق شوب)","Upper Band_input":"الحد العلوي","Lower Band_input":"الحد السفلي",CCI_input:"مؤشر قناة السلع، CCI","Smoothing Line_input":"خط التحسين","Smoothing Length_input":"طول التحسين","WMA Length_input":"طول المتوسط المتحرك المرجح بحجم التداول","Long RoC Length_input":"قيمة معدل تغير كبيرة","Short RoC Length_input":"معدل التغير القصير",sym_input:"رمز",Symbol_input:"رمز",Correlation_input:"علاقة ارتباط",Period_input:"الفترة الزمنية",Centered_input:"مركزي","Detrended Price Oscillator_input":"مؤشر تذبذب السعر",isCentered_input:"متمركز",DPO_input:"مؤشر تذبذب السعر","ADX smoothing_input":"تحسين مؤشر متوسط الحركة الاتجاهية","+DI_input":"+DI","-DI_input":"-DI",DEMA_input:"المتوسط المتحرك الأسي المزدوج DEMA",Divisor_input:"المقام (المقسوم عليه)",EOM_input:"بيانات نهاية الشهر","Elder's Force Index_input":"مؤشر قوى إلدر",Percent_input:"نسبة مئوية",Exponential_input:"أسي",Average_input:"متوسط","Upper Percentage_input":"النسبة المئوية العليا","Lower Percentage_input":"النسبة المئوية الدنيا",Fisher_input:"تحويلة فيشر",Trigger_input:"إشارة الدخول (الزناد)",Level_input:"مستوى","Trader EMA 1 length_input":"طول 1 EMA للمتداول","Trader EMA 2 length_input":"طول 2 EMA للمتداول","Trader EMA 3 length_input":"طول 3 EMA للمتداول","Trader EMA 4 length_input":"طول 4 EMA للمتداول","Trader EMA 5 length_input":"طول 5 EMA للمتداول","Trader EMA 6 length_input":"طول 6 EMA للمتداول","Investor EMA 1 length_input":"طول EMA 1 للمستثمر","Investor EMA 2 length_input":"طول EMA 2 للمستثمر","Investor EMA 3 length_input":"طول EMA 3 للمستثمر","Investor EMA 4 length_input":"طول EMA 4 للمستثمر","Investor EMA 5 length_input":"طول EMA 5 للمستثمر","Investor EMA 6 length_input":"طول EMA 6 للمستثمر",HV_input:"HV","Hull MA_input":"متوسط متحرك هال","Conversion Line Periods_input":"فترات خط التحويل","Base Line Periods_input":"فترات خط الأساس","Conversion Line_input":"خط التحويل","Base Line_input":"خط الأساس","Lagging Span_input":"مدى التأخير","yay Color 0_input":"سنوي لون 0","yay Color 1_input":"سنوي لون 1",Multiplier_input:"متضاعف","Bands style_input":"نمط الحدود",Middle_input:"منتصف",useTrueRange_input:"استخدام المدى الحقيقي",ROCLen1_input:"ROCLen1",ROCLen2_input:"ROCLen2",ROCLen3_input:"ROCLen3",ROCLen4_input:"ROCLen4",SMALen1_input:"المتوسط المتحرك البسيط 1",SMALen2_input:"المتوسط المتحرك البسيط 2",SMALen3_input:"المتوسط المتحرك البسيط 3",SMALen4_input:"المتوسط المتحرك البسيط 4",SigLen_input:"إشارة",KST_input:"KST",Sig_input:"إشارة",roclen1_input:"roclen1",roclen2_input:"roclen2",roclen3_input:"roclen3",roclen4_input:"roclen4",smalen1_input:"المتوسط المتحرك البسيط 1",smalen2_input:"المتوسط المتحرك البسيط 2",smalen3_input:"المتوسط المتحرك البسيط 3",smalen4_input:"المتوسط المتحرك البسيط 4",siglen_input:"الإشارة","Upper Deviation_input":"الانحراف العلوي","Lower Deviation_input":"انحراف أدنى","Use Upper Deviation_input":"استخدام الانحراف العلوي","Use Lower Deviation_input":"استخدام الانحراف السفلي",Count_input:"عد",Crosses_input:"تقاطعات",MOM_input:"على مدى شهري",MA_input:"المتوسط المتحرك","Length EMA_input":"طول المتوسط المتحرك الأسي","Length MA_input":"طول المتوسط المتحرك","Fast length_input":"طول الخط السريع","Slow length_input":"بطيء","Signal smoothing_input":"تحسين الإشارة","Simple ma(oscillator)_input":"المتوسط المتحرك البسيط (كمتذبذب)","Simple ma(signal line)_input":"المتوسط المتحرك البسيط (كخط فردي)",Histogram_input:"أعمدة أحصائية",MACD_input:"الماكد",fastLength_input:"طول الخط السريع",slowLength_input:"طول الخط البطئ",signalLength_input:"طول الإشارة",NV_input:"شركة عامة nv",OnBalanceVolume_input:"مؤشر obv",Start_input:"ابدأ",Increment_input:"ازدياد","Max value_input":"القيمة العظمى",ParabolicSAR_input:"بارابوليك سار",start_input:"بداية",increment_input:"ازدياد",maximum_input:"الأقصى","Short length_input":"قصير","Long length_input":"مسافة طول كبيرة",OSC_input:"مؤشر متذبذب",shortlen_input:"قصير",longlen_input:"طويل",PVT_input:"اتجاه حجم تداول الأسعار",ROC_input:"معدل التغير",RSI_input:"مؤشر القوى النسبية",RVGI_input:"مؤشر النشاط النسبي",RVI_input:"مؤشر النشاط النسبي","Long period_input":"فترة زمنية طويلة","Short period_input":"فترة زمنية قصيرة","Signal line period_input":"فترة خط اإلشارة",SMI_input:"مؤشر إرجوديك SMI","SMI Ergodic Oscillator_input":"مؤشر إرجوديك SMI",Indicator_input:"مؤشر",Oscillator_input:"مؤشر متذبذب",K_input:"K",D_input:"يوم",smoothK_input:"k المحسنة",smoothD_input:"d المحسنة","%K_input":"%K","%D_input":"%D","Stochastic Length_input":"طول الاستوكاستك","RSI Source_input":"مصدر مؤشر القوى النسبية",lengthRSI_input:"طول مؤشر القوى النسبية",lengthStoch_input:"طول الاستوكاستك",TRIX_input:"مؤشر TRIX",TEMA_input:"المتوسط المتحرك الأسي الثلاثي","Long Length_input":"طويل","Short Length_input":"قصير","Signal Length_input":"إشارة",Length1_input:"طول 1",Length2_input:"طول 2",Length3_input:"طول 3",length7_input:"طول 7",length14_input:"طول 14",length28_input:"طول 28",UO_input:"مؤشر ألتميت",VWMA_input:"المتوسط المتحرك المرجح بحجم التداول",len_input:"طول","VI +_input":"VI +","VI -_input":"VI -","%R_input":"%K","Jaw Length_input":"طول الفك","Teeth Length_input":"طول الأسنان","Lips Length_input":"طول الشفاه",Jaw_input:"فك",Teeth_input:"الأسنان",Lips_input:"الشفاه","Jaw Offset_input":"Jaw Offset","Teeth Offset_input":"Teeth Offset","Lips Offset_input":"Lips Offset","Down fractals_input":"فركتلات هابطة","Up fractals_input":"فركتلات صاعدة",Periods_input:"الفترات",Shapes_input:"أشكال","show MA_input":"عرض المتوسط المتحرك","MA Length_input":"طول المتوسط المتحرك","Color based on previous close_input":"تلوين الأعمدة طبقًا للإغلاق السابق","Rows Layout_input":"تخطيط الصفوف","Row Size_input":"حجم الصف",Volume_input:"حجم تداول","Value Area volume_input":"حجم منطقة مهمة","Extend POC Right_input":"إمتداد نقطة التغير إلى اليمين","Value Area Volume_input":"حجم منطقة مهمة",Placement_input:"وضع",POC_input:"نقطة التغير","Developing Poc_input":"تطوير نقطة التغير","Up Volume_input":"حجم تداول صاعد","Down Volume_input":"تراجع حجم التداول","Value Area_input":"منطقة مهمة","Histogram Box_input":"مربع الأعمدة الإحصائية","Value Area Up_input":"منطقة صعود مهمة","Value Area Down_input":"منطقة هبوط مهمة","Number Of Rows_input":"عدد الصفوف","Ticks Per Row_input":'علامة سعرية "تك" لكل صف',"Up/Down_input":"صعود/هبوط",Total_input:"إجمالي",Delta_input:"Delta","Deviation (%)_input":"الإنحراف (%)",Depth_input:"عمق","Extend to last bar_input":"مد إلى آخر شمعة أو عمود بياني",Simple_input:"بسيط",Weighted_input:"مُرجّح","Wilder's Smoothing_input":"تهذيب التحركات بطريقة وايلدر","1st Period_input":"الفترة الأولى","2nd Period_input":"الفترة الثانية","3rd Period_input":"الفترة الثالثة","4th Period_input":"الفترة الرابعة","5th Period_input":"الفترة الخامسة","6th Period_input":"الفترة السادسة","Rate of Change Lookback_input":"معدل تغير فترة المراقبة","Instrument 1_input":"الأداة 1","Instrument 2_input":"الأداة 2","Rolling Period_input":"الفترات المتعاقبة","Standard Errors_input":"الأخطاء المعيارية","Averaging Periods_input":"فترات حساب المتوسّط","Days Per Year_input":"أيام في السنة","Market Closed Percentage_input":"النسبة المئوية لإغلاقات السوق","ATR Mult_input":"مضاعف ATR",VWAP_input:"متوسط السعر المرجح بحجم التداول VWAP","Anchor Period_input":"فترة التثبيت",Session_input:"جلسة",Week_input:"أسبوع",Month_input:"شهر",Year_input:"سنة",Decade_input:"عقد",Century_input:"قرن","Custom range":"نطاق مخصّص","Go to":"الذهاب إلى","Symbol Info":"معلومات الرمز","Save all charts for all symbols and intervals on your layout":"احفظ جميع الرسوم البيانية لكل الرموز والفترات الزمنية في نموذج التصميم الخاص بك",Dot_hotkey:"نقطة","Load Chart Layout":"تحميل تصميم رسم بياني",minutes_interval:"دقائق",hours_interval:"ساعات",days_interval:"أيام",weeks_interval:"أسابيع",months_interval:"شهور","Add custom time interval":"إضافة فترة زمنية مخصصة",Add:"إضافة","Save chart image":"حفظ الصورة","Copy chart image":"نسخ صورة الرسم البياني","Copy link to the chart image":"نسخ رابط صورة الرسم البياني","Open image in new tab":"افتح الصورة في تبويبة جديدة","Tweet chart image":"غرد بصورة الرسم البياني على تويتر","adjust data for dividends":"ضبط لبيانات توزيعات الأرباح","adjust for contract changes":"ضبط لتغييرات العقد","toggle auto scale":"تبديل المقياس التلقائي","toggle log scale":"تبديل المقياس اللوغاريتمي","toggle percentage scale":"تبديل مقياس النسبة المئوية","Take a snapshot":"التقط صورة الشاشة","use settlement as close on daily interval":"استخدام التسوية عند الإغلاق على الفاصل الزمني اليومي","Extended Hours is available only for intraday charts":"ساعات التداول المُمددة متاحة فقط على النطاقات الصغرى خلال اليوم للرسوم البيانية","Toggle Percentage":"نطاق قياس النسبة المئوية",log_scale:"لوغاريتمي","Toggle Log Scale":"نطاق قياس لوغاريتمي",auto_scale:"تلقائي","Toggle Auto Scale":"نطاق قياس تلقائي","Toggle Maximize Chart":"تبديل تكبير الرسم البياني",adj_adjustments:"تعديل","Adjust data for dividends":"تعديل البيانات لأرباح الأسهم","Main symbol data is adjusted for dividends only":"يتم ضبط بيانات الرمز الرئيسي لتوزيعات الأرباح فقط","Main symbol data is adjusted for splits only":"يتم ضبط بيانات الرمز الرئيسي للتقسيمات فقط","b-adj_adjustments":"b-adj","Adjust for contract changes":"ضبط لتغييرات العقود",set_adjustments:"ضبط","Use settlement as close on daily interval":"استخدم التسوية في أقرب وقت على الفاصل الزمني اليومي","Date Range":"المدى الزمني","change session":"تغيير الجلسة",Session:"فترة",Sessions:"الجلسات","Weak Magnet":"مغناطيس ضعيف","Strong Magnet":"مغناطيس قوي",Cursors:"المؤشرات","Trend Line Tools":"أدوات خط الاتجاه","Gann and Fibonacci Tools":"أدوات فيبوناتشي و جان","Geometric Shapes":"الأشكال الهندسية","Annotation Tools":"أدوات التوضيحات والملاحظات",Patterns:"نماذج","Prediction and Measurement Tools":"أدوات التنبؤ والقياس","Hide Drawings Toolbar":"إخفاء شريط أدوات الرسوم","Show Drawings Toolbar":"عرض رسومات شريط الأدوات","Show Favorite Drawing Tools Toolbar":"عرض شريط أدوات الرسم المفضلة",Icon:"أيقونة",Icons:"أيقونات","New drawings are replicated to all charts in the layout and shown when the same ticker is selected":"يتم تطبيق ونسخ ما قمت به من رسومات جديدة إلى جميع الرسوم البيانية في التنسيق المختار وتظهر عند اختيار نفس الرمز أو الأداة المالية","Remove Drawings & Indicators":"حذف الرسومات والمؤشرات","Remove Drawings":"حذف الرسومات","Remove Indicators":"حذف المؤشرات","Hollow candles":"شموع مفرغة",Columns:"الأعمدة","High-low":"أعلى-أدنى","Bar's style":"تصميم الأعمدة","Compare or Add Symbol":"قارن أو اضف رمز","Fullscreen mode":"وضع الشاشة الكاملة",Favorites:"المفضلة","Favorite Indicators":"المؤشرات المفضلة","You have no Favorites Indicators yet":"ليس لديك أية مؤشرات مفضلة بعد","Open Interval Dialog":"إجراء حوار منفصل","Number or {hotKey_0}":"رقم أو {hotKey_0}","Add custom interval":"إضافة فترة زمنية مخصصة",Ticks_interval_group_name:"تيكات",Seconds_interval_group_name:"ثانية",Minutes_interval_group_name:"دقائق",Hours_interval_group_name:"ساعات",Days_interval_group_name:"أيام",Weeks_interval_group_name:"أسابيع",Months_interval_group_name:"شهور",Ranges_interval_group_name:"نطاقات","Sync in layout":"مزامنة مع كل الرسوم البيانية",Crosshair:"مؤشر التقاطع","Open chart in popup":"افتح الرسم البياني في نافذة منبثقة","Chart settings":"إعدادات الرسم البياني","Make a Copy":"عمل نسخة","New Chart Layout":"مخطط رسم بياني جديد","Rename Chart Layout":"إعادة تسمية الرسم البياني","Manage Chart Layouts":"إدارة تنسيقات الرسوم البيانية","Symbol Search":"بحث عن الرموز","Simply start typing while on the chart to pull up this search box":"يمكنك ببساطة الكتابة مباشرة على الرسم البياني لعرض مربع البحث","Save Indicator template":"حفظ قالب المؤشر","Save Indicator Template":"حفظ قالب المؤشر","Selecting this option will set the {symbol} symbol on the chart when this template is applied":"سيؤدي تحديد هذا الخيار إلى تعيين الرمز ‎{symbol}‎ على الرسم البياني عند تطبيق هذا القالب","Selecting this option will set the {interval} interval on the chart when this template is applied":"سيؤدي تحديد هذا الخيار إلى تعيين الفاصل الزمني‎{interval} ‎ على الرسم البياني عند تطبيق هذا القالب","Study Template '{templateName}' already exists. Do you really want to replace it?":'نموذج الدراسة "‎{templateName}‎" موجود بالفعل، هل تريد حقًا استبداله؟',"My templates":"قوالبي","Default templates":"القوالب الافتراضية",Templates:"قوالب","Indicator Templates":"نموذج المؤشر","Undo {hint}":"تراجع {hint}","Redo {hint}":"إعادة {hint}","View Only Mode":"وضع العرض فقط","show alert label lines":"إظهار خطوط ملصقات التنبيه","hide alert label lines":"إخفاء خطوط ملصقات التنبيه","change visibility":"تغيير الرؤية","pin to scale {label}":"ثبت على المقياس ‎{label}‎","pin to right scale":"ثبت إلى المقياس الأيمن","pin to left scale":"ثبت على المقياس الأيسر","change earnings visibility":"تغيير وضوح الأرباح","change dividends visibility":"تغيير وضوح توزيعات الأرباح","change splits visibility":"تغيير وضوح تقسيمات الأسهم","change continuous contract switch visibility":"تغيير رؤية تبديل العقد المستمر","show all ideas":"عرض جميع التحاليل","show ideas of followed users":"عرض جميع التحاليل للمستخدمين الذين يتم متابعتهم","show my ideas only":"عرض تحاليلي فقط","change events visibility on chart":"تغيير وضوح الأحداث على الرسم البياني","add this symbol to entire layout":"أضف هذا الرمز إلى التنسيق بالكامل","add this indicator to entire layout":"أضف هذا المؤشر إلى التنسيق بالكامل","add this strategy to entire layout":"أضف هذه الاستراتيجية إلى التنسيق بالكامل","add this financial metric to entire layout":"أضف هذا المؤشر المالي إلى التنسيق بالكامل","apply drawing template":"تطبيق قالب الرسم","lock objects":"قفل العنصر","unlock objects":"تحرير العنصر","Add alert":"اضف تنبيه","Add alert on {series}":"إضافة تنبيه على ‎{series}‎","Add alert on {drawing}":"إضافة تنبيه على ‎{drawing}‎","Edit {title} alert":"تعديل ‎التنبيه {title} .","Extend alert lines":"تمديد خطوط التنبيه","Create limit order":"إنشاء أمر معلق","Apply Manual Risk/Reward":"التطبيق اليدوي لنسبة المخاطر/الأرباح","Apply Manual Decision Point":"قم بتطبيق نقطة اتخاذ القرار يدويا","Analyze Trade Setup":"تحليل إعدادات الصفقة","Apply Elliott Wave":"تطبيق موجات إليوت","Apply Elliott Wave Intermediate":"تطبيق موجات إليوت المتوسطة","Apply Elliott Wave Major":"تطبيق موجات إليوت الكبرى","Apply Elliott Wave Minor":"تطبيق موجات إليوت الصغرى","Apply WPT Up Wave":"تطبيق الهدف السعري للموجة الصاعدة","Up Wave 1 or A":"موجة صاعدة 1 أو A","Up Wave 2 or B":"موجة صاعدة 2 أو B","Up Wave C":"موجة صاعدة C","Up Wave 3":"موجة صاعدة 3","Up Wave 4":"موجة صاعدة 4","Up Wave 5":"موجة صاعدة 5","Apply WPT Down Wave":"تطبيق الهدف السعري للموجة الهابطة","Down Wave 1 or A":"موجة هابطة 1 أو A","Down Wave 2 or B":"موجة هابطة 2 أو B","Down Wave C":"موجة هابطة C","Down Wave 3":"موجة هابطة 3","Down Wave 4":"موجة هابطة 4","Down Wave 5":"موجة هابطة 5","Pinned to scale {label} (hidden)":"تم التثبيت على المقياس ‎{label}‎ (مخفي)","Pinned to right scale (hidden)":"ثبت على المقياس الأيمن (مخفي)","Pin to scale {label} (hidden)":"ثبت على المقياس ‎{label}‎ (مخفي)","Pin to right scale (hidden)":"ثبت على المقياس الأيمن (مخفي)","Pinned to scale {label}":"ثبت على المقياس ‎{label}‎","Pinned to right scale":"تم التثبيت إلى المقياس الأيمن","Pin to scale {label}":"ثبت إلى المقياس ‎{label}‎","Pin to right scale":"ثبت إلى المقياس الأيمن","Pinned to left scale (hidden)":"تم التثبيت على المقياس الأيسر (مخفي)","Pin to left scale (hidden)":"ثبت على المقياس الأيسر (مخفي)","Pinned to left scale":"تم التثبيت إلى المقياس الأيسر","Pin to left scale":"ثبت إلى المقياس الأيسر","Pin to new left scale":"ثبت على مقياس أيسر جديد","Pin to new right scale":"ثبت على مقياس أيمن جديد","Pin to scale (now {label})":"ثبت على مقياس (‎{label}‎ جديد)","Pin to scale (now no scale)":"تثبيت مقياس الرسم (الأن لا مقياس محدد)","Pin to scale (now left)":"تثبيت إلى المقياس (الآن يسار)","Pin to scale (now right)":"تثبيت إلى المقياس (الآن يمين)","No scale (fullscreen)":"بدون مقياس ثابت (ملء الشاشة)","Move to":"حرك إلى","Existing pane above":"جزء موجود أعلاه","New pane above":"جزء جديد أعلاه","Existing pane below":"جزء موجود أدناه","New pane below":"جزء جديد أدناه","Bring to front":"وضعه في المقدمة","Send to back":"إرسال للمؤخرة","Bring forward":"تقديمه للأمام","Send backward":"إرسال إلى الخلف","Visual order":"الترتيب المرئي",Lines:"الخطوط","Add indicator/strategy on {studyTitle}":"إضافة مؤشر/إستراتيجية على {studyTitle}","Add financial metric for {instrumentName}":"إضافة مؤشر مالي لـ {instrumentName}","Apply default":"تطبيق الوضع الافتراضي","Save as":"حفظ باسم",Clone:"نسخة مكررة",Template:"قالب","Go to {lineToolName}":"انتقل إلى {lineToolName}",Unlock:"فتح",Lock:"غلق","Show earnings":"عرض الأرباح","Show dividends":"عرض توزيعات الأرباح","Show splits":"عرض تقسيمات الأسهم","Show continuous contract switch":"إظهار تبديل العقد المستمر","Show all ideas":"عرض جميع الأفكار","Show ideas of followed users":"عرض جميع الأفكار للمستخدمين الذين يتم متابعتهم","Show my ideas only":"عرض أفكاري فقط","Hide events on chart":"إخفاء الأحداث على الرسم البياني","Add this symbol to entire layout":"أضف هذا الرمز إلى التنسيق بالكامل","Add this indicator to entire layout":"أضف هذا المؤشر إلى التنسيق بالكامل","Add this strategy to entire layout":"أضف هذه الاستراتيجية إلى التنسيق بالكامل","Add this financial metric to entire layout":"أضف هذا المؤشر المالي إلى التنسيق بالكامل","No sync":"لا مزامنة","Sync globally":"مزامنة شاملة","Symbol info":"معلومات الرمز","By TradingView":"بواسطة TradingView","{symbol} financials by TradingView":"{symbol} تم تفريغ القوائم المالية عن طريق TradingView","More features on tradingview.com":"مميزات أكثر على موقع tradingview.com","move left":"حرك يسارًا","move right":"حرّك يمينًا","change price to bar ratio":"تغيير السعر إلى نسبة العمود","toggle lock scale":"تبديل قفل المقياس","change series style":"تغيير نمط السلسلة","hide {title}":"إخفاء {title}","Invalid symbol":"رمز غير صحيح","No data here":"لا توجد بيانات هنا","apply indicators to entire layout":"تطبيق المؤشرات على التنسيق بأكمله","sync time":"وقت المزامنة","apply chart theme":"تطبيق مظهر الرسم البياني","Please give us a clipboard writing permission in your browser or press {keystroke}":"يرجى منحنا إذن الكتابة للحافظة في متصفحك أو الضغط على {keystroke}","Couldn't copy":"تعذر النسخ","Couldn't cut":"تعذر القطع","Couldn't paste":"تعذر اللصق","{userName} published on {customer}, {date}":"نشر {userName} على {customer} في {date}","Published on {customer}, {date}":"تم نشره على {customer} في {date}","change symbol last value visibility":"تغيير وضوح آخر قيمة للرمز","change symbol previous close value visibility":"تغيير وضوح قيمة الإغلاق للرمز","change previous close price line visibility":"تغيير وضوح خط سعر الإغلاق السابق","change symbol labels visibility":"تغيير وضوح ملصقات رمز","change indicators and financials name labels visibility":"وضوح ملصقات تغير المؤشرات وأسماء البيانات المالية","change indicators name labels visibility":"وضوح ملصقات تغير المؤشرات","change indicators and financials value labels visibility":"وضوح ملصقات تغير المؤشرات والبيانات المالية","change indicators value labels visibility":"وضوح ملصقات تغيير المؤشرات","change bid and ask labels visibility":"تغيير وضوح ملصقات سعري البيع والشراء","change bid and ask lines visibility":"تغيير وضوح خط سعري البيع والشراء","change pre/post market price label visibility":"تغيير وضوح ملصق أسعار ما قبل/بعد الجلسة","change high and low price lines visibility":"تغيير وضوح خطوط أعلى سعر وأدنى سعر","change high and low price labels visibility":"تغيير وضوح ملصقات أعلى سعر وأدنى سعر","change countdown to bar close visibility":"تغيير وضوح العد التنازلي لعمود الإغلاق","change plus button visibility":"تغيير وضوح زر +","change price line visibility":"تغيير خط السعر","unlock {title}":"تحرير ‎{title}‎","lock {title}":"تثبيت ‎{title}‎","Auto (fits data to screen)":"تلقائي (تناسب البيانات مع حجم الشاشة)","Lock price to bar ratio":"قفل نسبة السعر للعمود البياني","Change interval":"تغيير الفترة","Symbol last price label":"ملصق آخر قيمة للرمز","Symbol previous day close price label":"ملصق قيمة إغلاق اليوم السابق للرمز","Previous day close price line":"خط سعر إغلاق اليوم السابق","Symbol name label":"ملصق اسم الرمز","Indicators and financials value labels":"ملصقات المؤشرات والبيانات المالية","Indicators value labels":"ملصقات قيمة المؤشرات","Indicators and financials name labels":"ملصقات المؤشرات وأسماء البيانات المالية","Indicators name labels":"ملصق اسم المؤشر","Bid and ask labels":"ملصقات سعري البيع والشراء (Bid/Ask)","Bid and ask lines":"خطوط سعري البيع والشراء (Bid/Ask)","Pre/post market price label":"ملصق السعر لما قبل/بعد الجلسة","Pre/post market price line":"خط السعر لما قبل/بعد الجلسة","High and low price lines":"خطوط أعلى وأدنى سعر","Countdown to bar close":"العد التنازلي لإغلاق العمود البياني","Plus button":"زر زائد","Source code":"كود المصدر","Price line":"خط السعر","Session breaks":"راحات جلسة التداول","change symbol":"تغيير الرمز","change resolution":"تغيير النطاق",Warning:"تحذير","Zoom Out":"تصغير","Zoom In":"تكبير","Maximize chart":"تكبير الرسم البياني","Restore chart":"استعادة الرسم البياني","Scroll to the Left":"التمرير إلى اليسار","Scroll to the Right":"التمرير إلى اليمين","Reset Chart":"إعادة تعيين الرسم البياني","Scroll to the Most Recent Bar":"التمرير إلى أخر عمود بياني",Mixed:"مختلط","show {title}":"عرض ‎{title}‎","Hide Favorite Drawing Tools Toolbar":"إخفاء شريط أدوات الرسم المفضلة","Market open":"السوق مفتوح","Pre-market":"ما قبل الجلسة","Post-market":"ما بعد الجلسة","Market closed":"السوق مغلق","Exchange timezone":"المنطقة الزمنية للبورصة",Image:"صورة",Transparency:"الشفافية","change symbol description visibility":"تغيير وضوح وصف رمز","change open market status visibility":"تغيير وضوح حالة السوق المفتوحة","change OHLC values visibility":"تغيير وضوح قيم OHLC","change bar change visibility":"تغيير وضوح تغييرات الأعمدة","change indicator titles visibility":"تغيير وضوح عناوين المؤشر","change indicator arguments visibility":"تغيير وضوح مدخلات المؤشر","change indicator values visibility":"تغيير وضوح قيم المؤشر","change volume values visibility":"تغيير وضوح قيم الحجم","Open market status":"حالة الأسواق المفتوحة","OHLC values":"قيم الافتتاح والإغلاق وأعلى وأدنى قيمة (OHLC)","Bar change values":"قيمة التغير للعمود","Indicator titles":"عناوين المؤشر","Indicator arguments":"مدخلات المؤشر","Indicator values":"قيم المؤشر","Hide Indicator Legend":"إخفاء وسيلة إيضاح المؤشر","Show Indicator Legend":"عرض وسيلة إيضاح المؤشر","Show Object Tree":"إظهار عناصر الرسم البياني","Could not get Pine source code.":"لا يمكن ايجاد مصدر الكود البرمجي باين.","Show interval settings":"إظهار إعدادات النطاق الزمني","Flag Symbol":"وضع علامة على الرمز","Unflag Symbol":"إزالة العلامة من الرمز","change line tool(s) font size":"تغيير حجم خط أداة (أدوات) الخط","change line tool(s) line style":"تغيير نمط أداة (أدوات) الخط","Font size":"حجم الخط","Template name":"أسم القالب","{hotKey_0} — drawing a straight line at angles of 45":"{hotKey_0} - رسم خط مستقيم بزوايا 45 درجة","{hotKey_0} — circle":"{hotKey_0} - دائرة","{hotKey_0} — square":"{hotKey_0} - مربع","{hotKey_0} — fixed increments":"{hotKey_0} — زيادات ثابتة",Arrow:"سهم",Cross:"تقاطع",Dot:"نقطة","Stay in Drawing Mode":"البقاء في وضع الرسم",Eraser:"ممحاة","Show Hidden Tools":"عرض الأدوات المخفاه","Hide All Drawing Tools":"إخفاء جميع أدوات الرسم","Lock All Drawing Tools":"غلق كل أدوات الرسم","Magnet Mode snaps drawings placed near price bars to the closest OHLC value":"وضع المغناطيس يجذب الرسومات الموجودة بجوار أعمدة السعر عند أقرب قيمة سعر إغلاق أو افتتاح أو أعلى وأقل سعر",Measure:"مقياس","{hotKey_0} + Click on the chart":"{hotKey_0} + اضغط على الرسم البياني",Color:"لون","Text color":"لون النص","Double click":"نقرتين متتاليتين","Delete pane":"حذف جزء","Move pane up":"تحريك جزء لأعلى","Move pane down":"تحريك جزء لأسفل","Maximize pane":"تكبير جزء","Restore pane":"استعادة جزء","Collapse pane":"طي الجزء","Manage panes":"إدارة العناصر",scroll:"تمرير","Lock vertical cursor line by time":"قفل خط المؤشر العمودي بمرور الوقت","change no overlapping labels":"تغيير الملصقات غير متداخلة","Merge all scales into one":"دمج كل المقاييس في مقياس واحد",Labels:"عناوين","Reset price scale":"إعادة تعيين مقياس السعر",Percent_scale_menu:"نسبة مئوية","Indexed to 100_scale_menu":"مدرجة إلى 100",Logarithmic_scale_menu:"لوغاريتمي",Regular_scale_menu:"عادي","No overlapping labels_scale_menu":"بدون ملصقات متداخلة","Invert scale_scale_menu":"عكس المقياس","Status line":"خط الحالة",Appearance:"المظهر",money:"أموال",pips:"نقاط",ticks:"تيكات السعر","Ticker and description":"الرمز والوصف","change chart background color":"تغيير لون خلفية الرسم البياني","change chart background type":"تغيير نوع خلفية الرسم البياني","change vert grid lines color":"تغيير لون خطوط الشبكة العمودية","change vert grid lines style":"تغيير نمط خطوط الشبكة العمودية","change horz grid lines color":"تغيير لون خطوط الشبكة الأفقية","change horz grid lines style":"تغيير نمط خطوط الشبكة الأفقية","change sessions breaks visibility":"تغيير وضوح فواصل الجلسات","change sessions breaks color":"تغيير وضوح لون فواصل الجلسات","change sessions breaks width":"تغيير عرض فواصل الجلسات","change sessions breaks style":"تغيير نمط فواصل الجلسات","change scales text color":"تغيير لون نص المقاييس","change scales font size":"تغيير حجم خط المقاييس","change scales lines color":"تغيير لون خطوط المقاييس","change pane separators color":"تغيير لون فواصل الجزء","change crosshair color":"تغيير لون التقاطع","change crosshair width":"تغيير عرض التقاطع","change crosshair style":"تغيير نمط التقاطع","change symbol watermark visibility":"تغيير وضوح علامة الرمز","change symbol watermark color":"تغيير لون علامة الرمز","change navigation buttons visibility":"تغيير وضوح أزرار التنقل","change pane buttons visibility":"تغيير وضوح أزرار الجزء","change top margin":"تغيير الهامش العلوي","change bottom margin":"تغيير الهامش السفلي","change right margin":"تغيير الهامش الأيمن","Vert grid lines":"خطوط شبكية رأسية","Horz grid lines":"خطوط شبكية أفقية","Scales text":"نص المقاييس","Scales lines":"خطوط المقاييس",Watermark:"علامة مائية","Top margin":"الهامش العلوي","Navigation buttons":"أزرار التنقل","Pane buttons":"أزرار الجزء","Bottom margin":"الهامش السفلي","Right margin":"الهامش الأيمن",bars_unit:"الأعمدة البيانية","change price Y coordinate":"تغيير إحداثيات سعر Y","change bar X coordinate":"تغيير إحداثيات سعر X","change {title} visibility on ticks":"تغيير وضوح {title} على التيكات","change {title} visibility on seconds":"تغيير وضوح {title} على الثواني","change {title} seconds from":"تغيير {title} الثواني من","change {title} seconds to":"تغيير {title} الثواني إلى","change {title} visibility on minutes":"تغيير {title} الدقائق من","change {title} minutes from":"تغيير {title} الدقائق إلى","change {title} minutes to":"تغيير وضوح {title} على الساعات","change {title} visibility on hours":"تغيير وضوح {title} على الساعات","change {title} hours from":"تغيير {title} الساعات من","change {title} hours to":"تغيير {title} الساعات إلى","change {title} visibility on days":"تغيير وضوح {title} على الأيام","change {title} days from":"تغيير {title} الأيام من","change {title} days to":"تغيير {title} الأيام إلى","change {title} visibility on weeks":"تغيير وضوح {title} على الأسابيع","change {title} weeks from":"تغيير {title} الأسابيع من","change {title} weeks to":"تغيير {title} الأسابيع إلى","change {title} visibility on months":"تغيير وضوح {title} على الأشهر","change {title} months from":"تغيير {title} الأشهر من","change {title} months to":"تغيير {title} الأشهر إلى","change {title} visibility on ranges":"تغيير وضوح {title} على النطاقات",Seconds:"ثواني",Minutes:"دقائق",Hours:"ساعات",Days:"الأيام",Weeks:"أسابيع",Months:"الشهور",Ranges:"نطاقات القدرة التحليلية",seconds:"ثواني","seconds from":"ثوان من","seconds to":"ثواني لـ",minutes:"دقائق","minutes from":"دقائق من","minutes to":"دقائق لـ",hours:"ساعات","hours from":"ساعات من","hours to":"ساعات لـ",days:"الأيام","days from":"أيام من","days to":"أيام لـ",weeks:"أسابيع","weeks from":"أسابيع من","weeks to":"أسابيع لـ",months:"الشهور","months from":"أشهر من","months to":"أشهر لـ",ranges:"نطاقات القدرة التحليلية","change symbol legend format":"تغيير تنسيق مفتاح التوضيح الرمز","change legend background visibility":"تغيير وضوح خلفية المفتاح التوضيحي","change legend background transparency":"تغيير شفافية خلفية المفتاح التوضيحي","change {title} price label visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} extension":"تغيير امتداد {title}","change {title} time label visibility":"تغيير وضوح ملصقات وقت {title}","Price label":"ملصق السعر","Time label":"ملصق الوقت",Extend:"تمديد","change symbol last value mode":"تغيير وضع آخر قيمة للرمز","change currency label visibility":"تغيير وضوح ملصقات العملة","change unit label visibility":"تغيير وضوح ملصقات الوحدة","change currency and unit labels visibility":"تغيير وضوح وحدات الملصقات والعملة","change date format":"تغيير تنسيق التاريخ",Unit:"وحدة","Currency and Unit":"العملة والوحدة","Scales placement":"وضع المقاييس","Date format":"تنسيق التاريخ","No overlapping labels":"بدون ملصقات متداخلة","Price and percentage value":"السعر وقيمة النسبة المئوية","Value according to scale":"القيمة حسب المقياس","text color":"لون النص",Text:"النص","change {inputName} property":"تغيير خاصية {inputName}","change color bars based on previous close":"تغيير لون الأعمدة بناءً على الإغلاق السابق","change HLC bars":"تغيير أعمدة HLC","change bar up color":"تغيير لون العمود الصاعد","change bar down color":"تغيير لون العمود الهابط","change thin bars":"تغيير الأعمدة الرقيقة","change line price source":"تغيير مصدر سعر الخط","change line type":"تغيير نوع الخط","change line color":"تغيير لون الخط","change line width":"تغيير عرض الخط","change area price source":"تغيير مصدر سعر المنطقة","change area line color":"تغيير لون خطوط المنطقة","change area line width":"تغيير عرض خط المنطقة","change area fill color":"تغيير لون المنطقة","change baseline price source":"تغيير مصدر السعر الأساسي","change baseline top line color":"تغيير لون خطوط خط الأساس","change baseline top line width":"تغيير عرض أعلى الخط الأساسي","change baseline bottom line color":"تغيير لون قاع خط الأساس","change baseline bottom line width":"تغيير لون قاع خط الأساس","change baseline fill top area color":"تغيير لون المنطقة العليا لخط الأساس","change baseline fill bottom area color":"تغيير لون المنطقة السفلية لخط الأساس","change base level":"تغيير مستوى الأساس","change high-low body visibility":"تغيير وضوح جسم أعلى-أدنى","change high-low body color":"تغيير لون جسم أعلى-أدنى","change high-low borders visibility":"تغيير وضوح حدود أعلى-أدنى","change high-low border color":"تغيير لون حدود أعلى-أدنى","change high-low labels visibility":"تغيير وضوح ملصقات أعلى-أدنى","change high-low labels color":"تغيير لون ملصقات أعلى-أدنى","change high-low labels font size":"تغيير حجم خط ملصقات أعلى-أدنى","change renko wick visibility":"تغيير وضوح ذيل الرينكو","change renko wick up color":"تغيير لون ذيل الرينكو الصاعد","change renko wick down color":"تغيير لون ذيل رينكو الهابط","change the display of real prices on price scale (instead of Heiken-Ashi price)":"تغيير عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","change range thin bars":"تغيير نطاق الأعمدة الرقيقة","change {candleType} body visibility":"تغيير وضوح الجسم {candleType}","change {candleType} up color":"تغيير لون {candleType} الصاعد","change {candleType} down color":"تغيير لون {candleType} الهابط","change {candleType} border visibility":"تغيير وضوح حدود {candleType}","change {candleType} up border color":"تغيير لون حدود {candleType} الصاعد","change {candleType} down border color":"تغيير لون حدود {candleType} الهابط","change {candleType} wick visibility":"تغيير وضوح ذيل {candleType}","change {candleType} wick up color":"تغيير لون ذيل {candleType} الصاعد","change {candleType} wick down color":"تغيير لون ذيل {candleType} الهابط","change {chartType} up color":"تغيير لون {chartType} الصاعد","change {chartType} down color":"تغيير لون {chartType} الهابط","change {chartType} projection bar up color":"تغيير لون عمود الإسقاط {chartType} الصاعد","change {chartType} projection bar down color":"تغيير لون عمود الإسقاط {chartType} الهابط","change {chartType} border bar up color":"تغيير لون حدود عمود {chartType} الصاعد","change {chartType} border bar down color":"تغيير لون حدود عمود {chartType} الهابط","change {chartType} projection border bar up color":"تغيير لون الإسقاط لحدود عمود {chartType} الصاعد","change column down color":"تغيير لون الأعمدة الهابطة","change column price source":"تغيير مصدر سعر العمود","Thin bars":"أعمدة نحيفة","Top line":"الخط العلوي","Bottom line":"الخط السفلي","Fill top area":"إملئ المنطقة العلوية","Fill bottom area":"ملء المنطقة السفلية","Real prices on price scale (instead of Heikin-Ashi price)":"عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","Base level":"مستوى الأساس",candle:"شمعة",range_0:"نطاق",range_1:"نطاق",range_2:"نطاق",range_3:"نطاقات",range_4:"نطاق",range_5:"نطاق","hollow candles":"شموع مفرغة",Center:"مركز","change {title} middle point visibility":"تغيير وضوح نقطة المنتصف {title}","change {title} price labels visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} price range visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} bars range visibility":"تغيير وضوح نطاق الأعمدة {title}","change {title} date/time range visibility":"تغيير وضوح نطاق التاريخ/الوقت {title}","change {title} distance visibility":"تغيير وضوح المسافة {title}","change {title} angle visibility":"تغيير وضوح زاوية {title}","change {title} always show stats":"تغيير {title} لتظهر دائما الإحصائيات","change {title} stats position":"تغيير موضع الإحصائيات {title}","Middle point":"نقطة المنتصف","Price labels":"عنوان السعر","Stats position":"موقف الإحصائيات","Price range":"المدى السعري","Bars range":"نطاق الأعمدة","Date/time range":"نطاق التاريخ/الوقت",Distance:"مسافة",Angle:"زاوية","Always show stats":"أظهر الاحصائيات دائماً",Stats:"الإحصائيات","change {toolName} line visibility":"تغيير وضوح خط {toolName}","change {toolName} line width":"تغيير عرض خط {toolName}","change {toolName} line style":"تغيير نمط خط {toolName}","change {toolName} line color":"تغيير لون خط {toolName}","change {toolName} line extending left":"تغيير خط {toolName} الممتد إلى اليسار","change {toolName} line left end":"تغيير النهاية اليسرى لخط {toolName}","change {toolName} line extending right":"تغيير خط {toolName} الممتد إلى اليمين","change {toolName} line right end":"تغيير النهاية يمين خط {toolName}","Extend left line":"تمديد الخط الأيسر","Extend right line":"تمديد الخط الأيمن","change {toolName} text visibility":"تغيير وضوح النص {toolName}","change {toolName} text color":"تغيير لون النص {toolName}","change {toolName} text font size":"تغيير حجم خط نص {toolName}","change {toolName} text font bold":"تغيير خط النص الغامق {toolName}","change {toolName} text font italic":"تغيير خط النص {toolName} المائل","change {toolName} text":"تغيير نص {toolName}","change {toolName} labels alignment vertical":"تغيير المحاذاة الرأسية لملصقات {toolName}","change {toolName} labels alignment horizontal":"تغيير محاذاة الملصقات {toolName} أفقيًا","change {toolName} labels direction":"تغيير اِتِّجاه ملصقات {toolName}","change {toolName} text background visibility":"تغيير وضوح خلفية النص {toolName}","change {toolName} text background color":"تغيير لون خلفية النص {toolName}","change {toolName} text border visibility":"تغيير وضوح حدود النص {toolName}","change {toolName} text border width":"تغيير عرض حدود النص {toolName}","change {toolName} text border color":"تغيير لون حدود النص {toolName}","change {toolName} text wrap":"تغيير التفاف نص {toolName}","Text wrap":"التفاف النص","change arrow color":"تغيير لون السهم","change {title} color":"تغيير لون {title}","change {title} mode":"تغيير وضع {title}","change {title} mirrored":"تغيير {title} المعكوس","change {title} flipped":"تغيير {title} المقلوب",Mode:"الوضع",Mirrored:"معكوس",Flipped:"مقلوب","HL bars":"أعمدة الارتفاع والانخفاض","OC bars":"أعمدة OC","Line - close":"خط- إغلاق","Line - open":"خط - افتتاح","Line - high":"خط - ارتفاع","Line - low":"خط - انخفاض","Line - HL/2":"خط - ارتفاع / انخفاض / 2","change {title} background visibility":"تغيير وضوح خلفية {title}","change {title} background color":"تغيير اللون لخلفية {title}","change {title} degree":"تغيير درجة {title}",Wave:"الموجة",Degree:"درجة","change {title} level {index} line visibility":"تغيير وضوح مستوى خط {title} {index}","change {title} levels visibility":"تغيير وضوح المستويات {title}","change {title} level {index} line color":"تغيير لون خط مستوى {title} {index}","change {title} level {index} line width":"تغيير عرض خط مستوى {title} {index}","change {title} level {index} line coeff":"تغيير معامل خط مستوى {title} {index}","change {title} all lines color":"تغيير لون كل الخطوط {title}","change {title} background transparency":"تغيير وضوح الخلفية {title}","change {title} coeffs as percents visibility":"تغيير وضوح معامل {title} كنسبة رؤية","Trend line":"خط الاتجاه","Use one color":"استخدم لون واحد",Levels:"مستويات","Coeffs as percents":"مُعامِلات كنسب مئوية","change {title} reverse":"تغيير {title} المعكوس","change {title} prices visibility":"تغيير وضوح أسعار {title}","change {title} labels alignment":"تغيير محاذاة الملصقات {title}","change {title} labels font size":"تغيير حجم خط الملصقات {title}","change {title} style":"تغيير نمط {title}","change {title} fib levels based on log scale":"تغيير مستويات فيبوناتشي {title} على أساس المقياس اللوغاريتمي","Levels line":"خط المستويات","Extend right":"تمديد لليمين","Extend left":"تمديد لليسار","Extend lines right":"تمديد الخطوط يميناً","Extend lines left":"تمديد الخطوط لليسار","Fib levels based on log scale":"مستويات فيبوناتشي استنادا على المقياس اللوغاريتمي",Values:"القِيم",Percents:"نسب مئوية",Top:"الأعلى",Middle:"وسط",Bottom:"الأسفل","change {title} full circles visibility":"تغيير وضوح الدوائر الكاملة {title}","Full circles":"دوائر كاملة","change {title} left labels visibility":"تغيير وضوح الملصقات اليسرى {title}","change {title} right labels visibility":"تغيير وضوح الملصقات اليمنى {title}","change {title} top labels visibility":"تغيير وضوح الملصقات العليا {title}","change {title} bottom labels visibility":"تغيير وضوح الملصقات السفلى {title}","change {title} grid visibility":"تغيير وضوح شبكة {title}","change {title} grid line color":"تغيير وضوح الملصقات العليا {title}","change {title} grid line width":"تغيير لون شبكة الخطوط {title}","change {title} grid line style":"تغيير نمط خط الشبكة {title}","Price levels":"مستويات السعر","Time levels":"مستويات الوقت","Left labels":"العناوين اليسرى","Right labels":"ملصقات على اليمين","Top labels":"عناوين القمة","Bottom labels":"عناوين سفلية","change {title} line color":"تغيير لون الخط {title}","change {title} line width":"تغيير عرض الخط {title}","change {title} line style":"تغيير نمط الخط {title}","change {title} counterclockwise":"تغيير عكس عقارب الساعة {title}",Counterclockwise:"عكس عقارب الساعة","change {title} level {index} line style":"تغيير نمط خط مستوى {title} {index}","change {title} labels visibility":"تغيير وضوح الملصقات {title}","change flag color":"تغيير لون العلم","change {title} fan {index} line visibility":"تغيير وضوح خط المروحة {title} {index}","change {title} fan {index} line color":"تغيير لون خط مروحة {title} {index}","change {title} fan {index} line width":"تغيير عرض خط المروحة {title} {index}","change {title} arcs {index} line visibility":"تغيير وضوح أقواس {title} {index}","change {title} arcs {index} line color":"تغيير لون خط أقواس {title} {index}","change {title} arcs {index} line width":"تغيير عرض خط أقواس {title} {index}","Price/bar ratio":"نسبة السعر/العمود","Ranges and ratio":"نطاقات ونِسب",Fans:"مراوح",Arcs:"أقواس","change {title} fans visibility":"تغيير وضوح المراوح {title}","change {title} fans line color":"تغيير لون خط المراوح {title}",Angles:"زوايا","change {title} extend top":"تغيير التمديد لأعلى {title}","change {title} extend bottom":"تغيير التمديد لأسفل {title}","change {title} extend left":"تغيير التمديد لليسار {title}","Extend top":"تمديد لأعلى","Extend bottom":"تمديد لأسفل",Label:"عنوان","Label background":"خلفية العنوان","change {title} candle up color":"تغيير لون شموع {title} الصاعدة","change {title} candle down color":"تغيير لون شموع {title} الهابطة","change {title} candle border visibility":"تغيير وضوح حدود {title} الصاعدة","change {title} candle border up color":"تغيير لون حدود ‎{title}‎ الصاعدة","change {title} candle border down color":"تغيير لون حدود ‎{title}‎ الهابطة","change {title} candle wick visibility":"تغيير وضوح ظلال شموع {title}","change {title} candle wick color":"تغيير لون ظلال شموع {title}","change {title} transparency":"تغيير وضوح {title}","change {title} average HL value":"تغيير قيمة متوسط أعلى-أدنى {title}","change {title} variance value":"تغيير قيمة التباين {title}","Avg HL in minticks":"متوسط أعلى-أدنى لأقل تيك",Variance:"التباين","#1 (price)_linetool point":"#1 (سعر)","#{count} (price, bar)_linetool point":"#{count}' (سعر، عمود)","change {title} extending left":"تغيير التمديد لليسار {title}","change {title} extending right":"تغيير التمديد لليمين {title}",Channel:"قناة","change {title} extend lines":"تغيير تمديد الخط {title}",Median:"متوسط","Extend lines":"تمديد الخطوط",Original:"أصلي",Schiff:"سكيف","Modified Schiff":"شيف المعدل",Inside:"بالداخل","change {title} source text color":"تغيير لون نص المصدر {title}","change {title} source background color":"تغيير لون خلفية المصدر {title}","change {title} source border color":"تغيير لون حدود المصدر {title}","change {title} target text color":"تغيير لون نص الهدف {title}","change {title} target background color":"تغيير لون خلفية الهدف {title}","change {title} target border color":"تغيير لون إطارات الهدف {title}","change {title} success text color":"تغيير لون نص نجاح {title}","change {title} success background color":"تغيير لون خلفية نجاح {title}","change {title} failure text color":"تغيير لون نص عدم نجاح {title}","change {title} failure background color":"تغيير لون خلفية عدم نجاح {title}","Source text":"نص المصدر","Source background":"خلفية المصدر","Source border":"إطار المصدر","Target text":"نص الهدف","Target background":"خلفية الهدف","Target border":"إطار الهدف","Success text":"نص النجاح","Success background":"خلفية النجاح","Failure text":"نص الإخفاق","Failure background":"خلفية الإخفاق","Label text":"نص الملصق","Line color":"لون الخط","Label border":"حواف الملصق","change {title} background color 1":"تغيير اللون 1 لخلفية {title}","change {title} background color 2":"تغيير اللون 2 لخلفية {title}","change {title} stop color":"تغيير لون الإيقاف {title}","change {title} target color":"تغيير لون الهدف {title}","change {title} compact stats mode":"تغيير الوضع المدمج لإحصائيات {title}","change {title} account size":"تغيير حجم الحساب {title}","change {title} lot size":"تغيير حجم اللوت {title}","change {title} risk":"تغيير مخاطرة {title}","change {title} risk display mode":"تغيير وضع عرض الخاطرة {title}","change {title} entry price":"تغيير سعر الدخول {title}","change {title} profit level":"تغيير مستوى الربح {title}","change {title} profit price":"تغيير سعر ربح {title}","change {title} stop level":"تغيير مستوى الإيقاف {title}","change {title} stop price":"تغيير سعر الإيقاف {title}","Stop color":"لون وقف الخسارة","Target color":"لون الهدف:","Compact stats mode":"احصائيات الوضع المدمج","Entry price":"سعر صفقة التداول","Profit level":"مستوى جني الأرباح","Stop level":"مستوى وقف الخسارة","Account size":"حجم الحساب","Lot size":"‏ حجم العقد",Cash:"السيولة النقدية","change vertical position Y coordinate":"تغيير إحداثيات الوضع الرأسي Y","change {title} emoji visibility":"تغيير وضوح الرموز التعبيرية {title}","change {title} image background color":"تغيير لون خلفية الصورة {title}","change {title} emoji":"تغيير الرمز التعبيري {title}","#1 (vertical position %, bar)_linetool point":"# 1 (الوضع العمودي، عمود)","Emoji pin":"دبوس الرموز التعبيرية","#1 (price, bar)_linetool point":"#1 (سعر، عمود)","#1 (bar)_linetool point":"#1 (عمود)","change decimal places":"تغيير المنازل العشرية","change extended hours color":"تغيير لون الساعات الممددة","change pre market color":"تغيير لون ما قبل الجلسة","change post market color":"تغيير لون ما بعد الجلسة","change price line color":"تغيير لون خطوط السعر","change price line width":"تغيير عرض خط السعر","change previous close price line color":"تغيير لون خط سعر الإغلاق السابق","change previous close price line width":"تغيير عرض خط سعر الإغلاق السابق","change pre/post market price lines visibility":"تغيير وضوح خط أسعار ما قبل/بعد الجلسة","change pre market line color":"تغيير لون خط ما قبل الجلسة","change post market line color":"تغيير لون خط ما بعد الجلسة","change bid line color":"تغيير لون خط سعر البيع","change ask line color":"تغيير لون خط سعر الشراء","Pre/post market hours background":"خلفية ما قبل/بعد الجلسة","Last price line":"خط أخر سعر",Precision:"الدقة","(H + L)/2":"(أعلى سعر + أدنى سعر)/2","(H + L + C)/3":"(أعلى سعر+ أدنى سعر + سعر الإغلاق)/3","(O + H + L + C)/4":"(سعر الفتح + أعلى سعر+ أدنى سعر + سعر الإغلاق)/4",Simple:"بسيط","With markers":"ذو علامات",Step:"خطوة",Default:"افتراضي","change {title} base line visibility":"تغيير وضوح خط القاعدة {title}","change {title} base line color":"تغيير لون خط القاعدة {title}","change {title} base line width":"تغيير عرض خط القاعدة {title}","change {title} base line style":"تغيير نمط خط القاعدة {title}","change {title} up line visibility":"تغيير وضوح الخط العلوي {title}","change {title} up line color":"تغيير لون الخط العلوي {title}","change {title} up line width":"تغيير عرض الخط العلوي {title}","change {title} up line style":"تغيير نمط الخط العلوي {title}","change {title} down line visibility":"تغيير وضوح الخط الأدنى {title}","change {title} down line color":"تغيير لون الخط الأدنى {title}","change {title} down line width":"تغيير عرض الخط الأدنى {title}","change {title} down line style":"تغيير نمط الخط الأدنى {title}","change {title} show pearson's r":"تغيير عرض {title} pearson's r",Base:"نقطة الأساس",Up:"أعلى",Down:"للأسفل","Pearson's R":"معامل بيرسون","#{count} (bar)_linetool point":"#‎{count}‎ (عمود)","change study overlay style":"تغيير نمط تراكب الدراسة","change study overlay min tick":"تغيير تراكب أدنى تيك في الدراسة","Override min tick":"تجاوز الحد الأدنى للتيك",Horizontal:"أفقي",Vertical:"عمودي","Text alignment":"محاذاة النص","Text orientation":"اتجاه النص","change {propertyName} property":"تغيير خاصية {propertyName}",Offset:"اعتماد مقاصة","Main chart symbol_input":"رمز الرسم البياني الرئيسي","Another symbol_input":"رمز آخر",open:"الأفتتاح",high:"أعلى سعر",low:"أقل سعر",close:"سعر الإغلاق",hl2:"أعلى سعر+أقل سعر /2",hlc3:"أعلى سعر+أقل سعر+الإغلاق /3",ohlc4:"أعلى سعر+أقل سعر+الأفتتاح+الإغلاق/4",Outputs:"المخرجات","change thickness":"تغيير السماكة","change color":"تغيير اللون","change opacity":"تغيير درجة الشفافية","change font size":"تغيير حجم الخط","change line style":"تغير نمط الخط","change min tick":"تغيير أدنى تيك","change precision":"تغيير الدقة","Above bar":"أعلى العمود","Below bar":"تحت مستوى العمود","change value":"تغيير القيمة","change char":"تغيير الشار","change location":"تغيير الموقع","change percent width":"تغيير نسبة العرض","change placement":"تغيير الوضع","change values visibility":"تغيير وضوح القيم","Width (% of the box)":"عرض (% من المربع)",Placement:"وضع","Trades on chart":"صفقات على الرسم البياني","Signal labels":"ملصقات الإشارات",Quantity:"الكمية","change plot type":"تغيير نمط الرسم","Labels font":"خط العناوين","change shape":"تغيير الشكل","Volume profile":"بروفايل أحجام التداول","Developing VA":"تطوير منطقة القيمة","Values in status line":"القيم في سطر الحالة","Labels on price scale":"الملصقات على مقياس السعر",Forecast:"توقعات","Script name":"اسم النص البرمجي","Save New Chart Layout":"حفظ التنسيق الجديد للرسم البياني","Enter a new chart layout name":"ادخل اسم تصميم الرسم البياني الجديد","Copy Chart Layout":"نسخ تصميم الرسم البياني","{title} copy_ex: AAPL chart copy":"نسخة ‎{title}‎","Data error":"مشكلة في البيانات","Study Error":"خطأ في الدراسة","Data is delayed":"البيانات متأخرة","End of day data":"بيانات نهاية اليوم","One update per second":"تحديث واحد لكل ثانية","{symbolName} data is delayed by {time} minutes.":"‎بيانات {symbolName}‎ متأخرة بـ ‎{time}‎ دقيقة","{listedExchange} real-time data is available for free to registered users.":"بيانات ‎{listedExchange}‎ اللحظية متاحة مجانًا للمستخدمين المسجلين.","To get real-time data for {description}, please buy the real-time data package.":"للحصول على البيانات اللحظية لـ ‎{description}‎، يرجى شراء حزمة البيانات اللحظية.","Real-time data for {description} is not supported right now. We may support it in the future.":"البيانات اللحظية لـ ‎{description}‎ غير مدعومة في الوقت الحالي، قد تكون متاحة مستقبلاً.","Data is updated once a day.":"يتم تحديث البيانات مرة واحدة في اليوم.","Data on our Basic plan is updated once per second, even if there are more updates on the market.":"البيانات المقدمة على العضويات المجانية لا يتم تحديثها أكثر من مرة واحدة كل ثانية، حتى لو كانت هناك عدة تحديثات في السوق.","Data is updated once per second, even if there are more updates on the market.":"لا يتم تحديث البيانات أكثر من مرة واحدة في الثانية، حتى لو كانت هناك عدة تحديثات في السوق.","Paid plans feature faster data updates.":"تتمتع العضويات المدفوعة بتحديثات أسرع للبيانات.","This data is real-time, but it’s slightly different to its official counterpart coming from primary exchanges.":"هذه البيانات هي بيانات لحظية، ولكنها تختلف قليلاً عن نظيرتها الرسمية من السوق الرئيسي.","If you'd like {listedExchange} real-time data you'll need to complete an Exchange Agreement. Don't worry, it only takes a few clicks":"إذا كنت ترغب في الحصول على بيانات ‎{listedExchange}‎ اللحظية، فستحتاج إلى ملء اتفاقية البورصة. لا تقلق، لا يتطلب الأمر سوى بضع نقرات.","Create a free account":"أنشئ حساباً مجاناً","Fill out Exchange Agreements":"ملء اتفاقية البورصة","This symbol doesn't exist, please pick another one.":"لا يوجد هذا الرمز. يرجى اختيار رمز آخر.","All's well — Market is open.":"كل شيء على ما يرام - السوق مفتوح.","Morning. Market is open for pre-market trading.":"السوق مفتوح حاليًا للتداول ما قبل الجلسة.","Evening. Market is open for post-market trading.":"السوق مفتوح حاليًا للتداول ما بعد الجلسة.","Time for a walk — this market is closed.":"حان وقت المغادرة - هذا السوق مغلق.","Market is currently on holiday. Lucky them.":"السوق في عطلة حالياً. من حسن حظهم!","less than 1 minute":"أقل من دقيقة واحدة","{days} and {hours}":"{days} و{hours}","{hours} and {minutes}":"{hours} و{minutes}","Market opens in {remainingTime}.":"يفتح السوق في {remainingTime}.","Market closes in {remainingTime}.":"يغلق السوق في {remainingTime}.","It'll go to post-market trading in {remainingTime}.":"ستنتقل إلى التداول فيما بعد الجلسة في {remainingTime}.","It'll open for pre-market trading in {remainingTime}.":"سيتم فتحه للتداول ما قبل الافتتاح في {remainingTime}.","Replay mode":"وضع إعادة التشغيل","You're in Replay mode. You're in Replay mode. You're in Replay mode.":"أنت في وضع إعادة التشغيل. أنت في وضع إعادة التشغيل. أنت في وضع إعادة التشغيل.","Do you really want to delete Study Template '{name}' ?":"هل تريد فعلًا مسح النموذج الدراسي '{name}'؟","Modify Order":"تعديل الأمر","Cancel Order":"إلغاء أمر",Confirmation:"تأكيد","send {title} backward":"أرسل {title} للخلف","bring {title} forward":"حرّك {title} للأمام","insert {title} after {target}":"أدخل {title} بعد {target}","insert {title} before {target}":"أدخل {title} قبل {target}","remove drawings group":"تغيير المنازل العشرية","move scale":"حرك المقياس","stop syncing line tool(s)":"وقف أداة (أدوات) مزامنة الخط","zoom out":"تصغير","zoom in":"تكبير","move drawing(s)":"نقل الرسم (الرسومات)","load default drawing template":"تحميل قالب الرسم الافتراضي","clone line tools":"أدوات نسخ الخط","merge to pane":"دمج في جزء","unmerge to new bottom pane":"إلغاء الاندماج في الجزء السفلي الجديد","move {title} to new right scale":"انقل ‎{title}‎ إلى مقياس جديد على اليسار","move {title} to new left scale":"انقل ‎{title}‎ إلى مقياس يسار جديد","make {title} no scale (Full screen)":"اجعل ‎{title}‎ بدون مقياس محدد (ملء الشاشة)","reset time scale":"إعادة تعيين مقياس الزمن","change {pointIndex} point":"تغيير نقطة {pointIndex}","remove all studies":"احذف جميع الدراسات","remove drawings":"حذف الرسومات","remove all studies and drawing tools":"احذف جميع الدراسات وأدوات الرسم","turn line tools sharing off":"وقف تشغيل مشاركة أدوات الخط","share line tools in layout":"مشاركة أدوات الخط في التنسيق","share line tools globally":"مشاركة أدوات الخط بشكل شامل","apply all chart properties":"تطبيق كافة خصائص الرسم البياني","{count} bars":"{count} أعمدة",Jan:"يناير",Feb:"فبراير",Mar:"مارس",Apr:"أبريل",May_short:"مايو",Jun:"يونيو",Jul:"يوليو",Aug:"أغسطس",Sep:"سبتمبر",Oct:"أكتوبر",Nov:"نوفمبر",Dec:"ديسمبر","Fraction part is invalid.":"جزء الكسر غير صحيح","Second fraction part is invalid.":"الجزء الثاني غير صحيح.","create line tools group from selection":"إنشاء مجموعة أدوات الخطوط من الخيارات المتاحة","removing line tools group {name}":"حذف مجموعة أدوات الخطوط ‎{name}‎","add line tool {lineTool} to group {name}":"إضافة أداة الخطوط {lineTool} لمجموعة {name}","make group {group} visible":"اجعل المجموعة ‎{group}‎ مرئية","make group {group} invisible":"اجعل المجموعة ‎{group}‎ غير مرئية","lock group {group}":"غلق المجموعة ‎{group}‎","unlock group {group}":"فتح المجموعة ‎{group}‎","rename group {group} to {newName}":"تغيير اسم المجموعة ‎{group}‎ إلى ‎{newName}‎","change {sourceTitle} title to {newSourceTitle}":"غيّر عنوان {sourceTitle} إلى {newSourceTitle}","insert source(s) after":"أدخل المصدر (المصادر) بعد ذلك","mirror bars pattern":"نسخ أنماط الأعمدة","flip bars pattern":"قلب أنماط الأعمدة","change Elliott degree":"تغيير درجة إليوت",Supermillennium:"موجة الألفية العظمى",Millennium:"ألفية",Submillennium:"موجة الألفية الثانوية","Grand supercycle":"الموجة الدورية العظمى",Supercycle:"الموجة الدورية العليا",Cycle:"دورة",Primary:"أوًلي",Intermediate:"متوسط",Minor_wave:"أصغر",Minute_wave:"دقيقة",Minuette:"موجة إليوت الذرية",Subminuette:"فاصل الدقيقة في موجات اليوت",Micro:"صغيرة",Submicro:"موجة مجهرية فرعية",Minuscule:"حرف صغير","erase level line":"محو خط المستوى","Left Shoulder":"الكتف الأيسر","Right Shoulder":"الكتف الأيمن",Head:"رأس","XABCD Pattern":"XABCD نموذج","ABCD Pattern":"نموذج ABCD",Arc:"قوس","Arrow Mark Down":"علامة السهم تُشير للأسفل","Arrow Mark Left":"علامة السهم تُشير لليسار","Arrow Mark Right":"علامة السهم تُشير لليمين","Arrow Mark Up":"علامة السهم تُشير للأعلى",Balloon:"بالون","Bars Pattern":"نمط الأعمدة","Double Curve":"منحنى مزدوج",Curve:"منحنى",Brush:"فرشاة",Callout:"نص تفسيري","Cyclic Lines":"خطوط دورية","Cypher Pattern":"نمط سيفر","Date and Price Range":"نطاق التاريخ والسعر","Disjoint Channel":"قناة منفصلة","Elliott Correction Wave (ABC)":"موجة إليوت التصحيحية (ABC)","Elliott Double Combo Wave (WXY)":"موجة إليوت الثنائية المركبة (WXY)","Elliott Impulse Wave (12345)":"موجة إليوت الدافعة (12345)","Elliott Triangle Wave (ABCDE)":"موجة إليوت المثلثة (ABCDE)","Elliott Triple Combo Wave (WXYXZ)":"موجة إليوت الثلاثية المركبة (WXYXZ)",Ellipse:"بيضاوي","Extended Line":"خط ممتد","Fib Channel":"قناة فيبوناتشي","Fib Circles":"دوائر فيبوناتشي","Fib Retracement":"تصحيح فيبوناتشي","Fib Speed Resistance Arcs":"أقواس فيبوناتشي المقاومة للسرعة","Fib Speed Resistance Fan":"مروحة فيبوناتشي المقاومة للسرعة","Fib Spiral":"حلزون فيبوناتشي","Fib Time Zone":"منطقة فيبوناتشي الزمنية","Fib Wedge":"وتد فيبوناتشي","Flag Mark":"علامة تمييز","Flat Top/Bottom":"قمة / قاع مسطح","Anchored VWAP":"VWAP مُثبّت","Gann Square Fixed":"مربع جان ثابت","Horizontal Line":"خط أفقي","Horizontal Ray":"شعاع أفقي","Inside Pitchfork":"داخل الرسم البياني بيتش فورك",Note:"ملاحظة","Anchored Note":"ملحوظة مُثبّتة",Signpost:"لافتة",Pitchfan:"بتشفان",Pitchfork:"بيتش فورك",Polyline:"متعدد الخطوط",Path:"مسار","Price Label":"ملصق السعر","Arrow Marker":"علامة السهم","Price Range":"المدى السعري",Projection:"مسقط",Ray:"شعاع",Circle:"دائرة","Regression Trend":"إتجاه الإنحدار","Long Position":"صفقة شراء","Short Position":"صفقة بيع على المكشوف","Fixed Range Volume Profile":"بروفايل حجم التداول بنطاق ثابت","Rotated Rectangle":"مستطيل مائل","Modified Schiff Pitchfork":"شيف بيتش فورك المعدل","Schiff Pitchfork":"سكيف بيتش فورك","Sine Line":"منحنى الجيب",Text_tool:"نص","Anchored Text":"نص مُثبّت","Three Drives Pattern":"نموذج الثلاث موجات","Time Cycles":"الدورات الزمنية","Trend Angle":"زاوية الإتجاه","Trend-Based Fib Extension":"امتداد فيبوناتشي الاتجاهي","Trend-Based Fib Time":"فيبوناتشي الزمني الاتجاهي","Trend Line":"خط الاتجاه","Info Line":"خط المعلومات","Triangle Pattern":"نموذج المثلث","Vertical Line":"خط رأسي","Cross Line":"الخط المتقاطع",Highlighter:"لون مُميِز","Price Note":"بطاقة السعر","Volume Profile Fixed Range":"بروفايل حجم التداول بنطاق ثابت","Ghost Feed":"مسار تخيّلي","{status} P&L: {pnl}":"‎{status}‎ الهدف والخسارة:‎{pnl}‎",Open_line_tool_position:"مفتوح",Closed_line_tool_position:"أغلقت","Risk/Reward Ratio: {ratio}":"نسبة المخاطرة/العائد: {ratio}","Stop: {stopChange} ({stopChangePercent}) {stopChangePip}, Amount: {amount}":"وقف:{stopChange} ({stopChangePercent}) {stopChangePip}، الكمية:‎{amount}‎","Target: {profitChange} ({profitChangePercent}) {profitChangePip}, Amount: {amount}":"هدف:{profitChange} ({profitChangePercent}) {profitChangePip}، الكمية:‎{amount}‎","Qty: {qty}":"كمية:‎{qty}‎",T_interval_short:"T",s_interval_short:"s",R_interval_short:"نطاق",tick_0:"تيك",tick_1:"تيك",tick_2:"تيك",tick_3:"تيك",tick_4:"تيك",tick_5:"تيك",day_0:"يوم",day_1:"يوم",day_2:"يومين",day_3:"أيام",day_4:"يوم",day_5:"يوم",week_0:"أسبوع",week_1:"أسبوع",week_2:"أسبوعين",week_3:"أسابيع",week_4:"أسبوع",week_5:"أسبوع",second_0:"ثانية",second_1:"ثانية",second_2:"ثانيتان",second_3:"ثوان",second_4:"ثانية",second_5:"ثانية",minute_0:"دقيقة",minute_1:"دقيقة",minute_2:"دقيقتين",minute_3:"دقائق",minute_4:"دقيقة",minute_5:"دقيقة",hour_0:"ساعة",hour_1:"ساعة",hour_2:"ساعة",hour_3:"ساعات",hour_4:"ساعة",hour_5:"ساعة","Stack on the left":"انحياز لليسار","Stack on the right":"انحياز لليمين",Auto:"تلقائي",Avg:"متوسط",HL2_in_legend:"HL2",HLC3_in_legend:"HLC3",OHLC4_in_legend:"OHLC4","Symbol Error":"خطأ في الرمز","No volume data":"بيانات الحجم غير موجودة","Fundamental studies are no longer available on charts":"لم تعد الدراسات الأساسية متوفرة على الرسوم البيانية","loading...":"تحميل...","Arrow Down":"سهم لأسفل","Arrow Up":"سهم لأعلى",Diamond:"شكل الماسة (المعين)","Label Down":"إشارة لأسفل","Label Up":"إشارة لأعلى",Square:"مربع","Triangle Down":"مثلث هابط","Triangle Up":"مثلث صاعد","X Cross":"تقاطع",Premarket_sessions:"ما قبل الافتتاح",Postmarket_sessions:"ما بعد الإغلاق","Regular trading hours_sessions":"ساعات التداول العادية","Extended trading hours_sessions":"ساعات التداول المُمددة","Electronic trading hours_sessions":"ساعات التداول الإلكتروني",PRE_sessions:"قبل",POST_sessions:"بعد",RTH_sessions:"RTH",ETH_sessions:"ETH","add line tool(s) to group {group}":"إضافة أداة (أدوات) الخط إلى المجموعة {group}","apply study template {template}":"تطبيق قالب الدراسة {template}","change pane height":"تغيير ارتفاع الجزء","change date range":"تغيير نطاق التاريخ","apply toolbars theme":"تطبيق مظهر أشرطة الأدوات","create line tools group":"أنشئ مجموعة أدوات الخطوط","exclude line tools from group {group}":"استثناء أدوات الخطوط من المجموعة {group}","move all scales to left":"حرك كل المقاييس إلى اليسار","move all scales to right":"حرك كل المقاييس إلى اليمين","remove line data sources":"إزالة مصادر خط البيانات","change chart layout to {title}":"تغيير تنسيق الرسم البياني إلى {title}","stop syncing drawing":"إيقاف مزامنة الرسم","bring {title} to front":"جلب {title} إلى المقدمة","send {title} to back":"أرسل {title} إلى الخلف","insert {title} after {targetTitle}":"أدخل {title} بعد {targetTitle}","insert {title} before {targetTitle}":"أدخل {title} قبل {targetTitle}","send group {title} backward":"أرسل المجموعة {title} إلى الخلف","bring group {title} forward":"جلب المجموعة {title} إلى الأمام","Visible on mouse over":"مرئية عند تمرير الفأرة","Always visible":"ظاهر وموجود دائمًا","Always invisible":"مختفي دائمًا","Not applicable":"لا يمكن تطبيقه","Type the interval number for minute charts (i.e. 5 if it is going to be a five minute chart). Or number plus letter for H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)":"اكتب رقم الفاصل الزمني للرسم البياني لدقيقة (مثلا أكتب رقم 5 إذا كان الرسم البياني لخمس دقائق). أو أكتب رقم وإضافة حرف بعد ك حرف الـ H (للساعة)، و حرف الـ D (لليوم)، و حرف الـW (للأسبوع)، و حرف الـ M (للشهر) مثلاً (D أو 2H).","Type the interval number for minute charts (i.e. 5 if it's going to be a five minute chart). Or number plus letter for other intervals: S for 1 second chart (15S for 15 second chart, etc.), H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)":'اكتب رقم الإطار الزمني للرسوم البيانية بالدقائق (مثلاً: 5 إذا كان إطار الرسم البياني هو 5 دقائق). أو رقم مع حروف للأطر الزمنية الأخرى: حرف "ث" للرسم البياني بإطار 1 ثانية (15 "ث" للرسم البياني 15 ثانية، إلخ)، و"س" (ساعة)، و"ي" (يوم)، و"أ" (أسبوعي)، و"ش" (شهر) (مثلاً: "ي" أو "2س")',"Do you really want to delete Chart Layout '{name}' ?":"هل تريد فعلا مسح تصميم مخطط الرسم البيانى‎ ‎{name}‎؟","Load layout":"تحميل التنسيق","Layout name":"اسم التنسيق","Sort by layout name, date changed":"تصنيف حسب اسم التنسيق، وتاريخ التعديل","Layout name (A to Z)":"اسم التنسيق (A إلى Z)","Layout name (Z to A)":"اسم التنسيق (Z إلى A)","Date modified (oldest first)":"تاريخ التعديل (الأقدم أولاً)","Date modified (newest first)":"تاريخ التعديل (الأحدث أولاً)","Saved indicators":"المؤشرات المحفوظة","Remember Symbol":"تذكر الرمز","Remember Interval":"تذكر الفاصل الزمني","Confirm Remove Study Tree":"تأكيد إزالة نتائج الدراسة","Do you really want to delete study and all of it's children?":"هل تريد فعلا مسح هذه الدراسة وكل محتوياتها؟","Studies limit exceeded: {number} studies per layout.\nPlease, remove some studies.":"تم تجاوز الحد الأقصى للدراسات : ‎{number}‎ دراسة لكل نسق\nبرجاء حذب البعض","Change symbol":"تغيير الرمز","Hide all drawings":"إخفاء جميع أدوات الرسم","Select source":"اختر مصدراً",cfd:"عقود الفروقات",crypto:"العملات الرقمية",dr:"إيصال إيداع",futures:"العقود الآجلة",index:"مؤشر",stock:"سهم",economy:"اقتصاد","Loading...":"جاري التحميل...",Sunday:"الأحد",Monday:"الاثنين",Tuesday:"الثلاثاء",Wednesday:"الأربعاء",Thursday:"الخميس",Friday:"الجمعة",Saturday:"السبت",Sun:"الأحد",Mon:"يوم الاثنين",Tue:"الثلاثاء",Wed:"الأربعاء",Thu:"الخميس",Fri:"الجمعة",Sat:"السبت",Su_day_of_week:"الأحد",Mo_day_of_week:"الاثنين",Tu_day_of_week:"الثلاثاء",We_day_of_week:"الأربعاء",Th_day_of_week:"الخميس",Fr_day_of_week:"الجمعة",Sa_day_of_week:"السبت",Light_colorThemeName:"فاتح",Dark_colorThemeName:"داكن","Save Theme As":"احفظ النسق كـ :","Theme name":"أسم القالب","Color Theme '{themeName}' already exists. Do you really want to replace it?":"نسق الألوان ‎{themeName}‎موجود بالفعل. هل ترغب حقًا في استبداله؟","Do you really want to delete Color Theme '{name}' ?":"هل تريد فعلا مسح مظهر اللون ''{name}' ؟",Normal:"عادي","Dashed line":"خط متقطع","Dotted line":"خط منقط","Line with breaks":"خط ذو فواصل","Step line":"خط متدرج","Step line with diamonds":"خط متدرج مع معيّنات",Histogram:"المدرج الإحصائي",Cross_chart_type:"تقاطع","Area with breaks":"مساحة يتخللها فواصل",Circles:"دوائر",Thickness:"السُّمْك","No exchanges match your criteria":"لا توجد أسواق تطابق المعايير التي عينتها","All sources":"كل المصادر","Symbol & description":"الرمز والوصف",Sources:"مصادر","Same % scale":"نفس مقياس %","New price scale":"مقياس سعر جديد","New pane":"جزء جديد","Add to":"إضافة إلى","Allow extend time scale":"السماح بتمديد النطاق الزمني","No symbols here yet — why not add some?":"لا توجد رموز هنا حالياً — قم بإضافة الرموز","Added symbols":"الرموز المضافة","Recent symbols":"الرموز الحديثة","Compare symbol":"مقارنة الرمز","Manage layout drawings":"إدارة رسومات التنسيق","No indicators matched your criteria.":"لا توجد مؤشرات تتوافق مع معاييرك.","Bring to Front":"وضعه في المقدمة","Send to Back":"إرسال للمؤخرة","Bring Forward":"تقديمه للأمام","Send Backward":"إرسال إلى الخلف","Hide drawings":"إخفاء الرسومات","Show all drawings":"عرض كل الرسومات","Hide indicators":"إخفاء المؤشرات","Show all indicators":"عرض كل المؤشرات","Hide all indicators":"إخفاء كل المؤشرات","Hide positions & orders":"إخفاء المراكز والأوامر","Show all positions & orders":"إظهار المراكز والأوامر","Hide all positions & orders":"إخفاء كل المراكز والأوامر","Hide all":"إخفاء الكل","Show all drawings, indicators, positions & orders":"إظهار كافة الرسومات والمؤشرات والمراكز والأوامر","Show all drawings and indicators":"عرض كل الرسومات والمؤشرات","Hide all drawings, indicators, positions & orders":"إخفاء كافة الرسومات والمؤشرات والمراكز والأوامر","Hide all drawings and indicators":"إخفاء كل الرسومات والمؤشرات","remove all line tools for {symbol}":"حذف كافة خطوط الأدوات لـ {symbol}","{symbolsCount} symbol_symbols_and_drawings_count_0":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_1":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_2":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_3":"‎{symbolsCount}‎ رموز","{symbolsCount} symbol_symbols_and_drawings_count_4":"‎{symbolsCount}‎ رمزاً","{symbolsCount} symbol_symbols_and_drawings_count_5":"‎{symbolsCount}‎ رمزاً","with {drawingsCount} drawing_symbols_and_drawings_count_0":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_1":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_2":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_3":"مع ‎{drawingsCount}‎ رسوم","with {drawingsCount} drawing_symbols_and_drawings_count_4":"مع ‎{drawingsCount}‎ رسماً","with {drawingsCount} drawing_symbols_and_drawings_count_5":"مع ‎{drawingsCount}‎ رسماً","{drawingsCount} drawing_0":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_1":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_2":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_3":"‎{drawingsCount}‎ رسوم","{drawingsCount} drawing_4":"‎{drawingsCount}‎ رسماً","{drawingsCount} drawing_5":"‎{drawingsCount}‎ رسماً","Remove all drawings for this symbol":"إزالة كافة الرسومات لهذا الرمز","No drawings yet":"لا يوجد رسوم حتى الآن","Object tree":"شجرة الكائنات","Create a group of drawings":"أنشئ مجموعة من الرسومات","Clone, Copy":"استنساخ ، نسخ","Group is hidden on current interval":"المجموعة مخفية في الفاصل الزمني الحالي","Drawing is hidden on current interval":"الرسم مخفي على الفاصل الزمني الحالي","move objects":"تحريك العناصر","show objects":"إظهار العناصر","hide objects":"إخفاء العناصر","remove objects":"إزالة العناصر",'Set the "{inputInline}" time and price for "{studyShortDescription}"':"تعيين وقت وسعر {inputInline} لـ {studyShortDescription}",'Set the time and price for "{studyShortDescription}"':'تعيين وقت وسعر "{studyShortDescription}"','Set the "{inputTitle}" time for "{studyShortDescription}"':"نعيين وقت {inputTitle} لـ {studyShortDescription}",'Set the time for "{studyShortDescription}"':'نعيين وقت "{studyShortDescription}"','Set the "{inputTitle}" price for "{studyShortDescription}"':"تعيين سعر {inputTitle} لـ {studyShortDescription}",'Set the price for "{studyShortDescription}"':'تعيين سعر "{studyShortDescription}"',"Add Symbol":"إضافة رمز","Confirm Inputs":"تأكيد المدخلات","Reset settings":"إعادة ضبط الإعدادات","Save as default":"حفظ كافتراضي",Defaults:"الإعدادات الإفتراضية","Apply to all":"تفعيل على الكل","Apply defaults":"تطبيق الإعدادات الافتراضية","Apply Defaults":"تطبيق الإعدادات الافتراضية","apply factory defaults to selected sources":"تطبيق إعدادات المصنع الافتراضية على المصادر المختارة","Selected Drawings":"الرسومات المختارة",Solid:"ثابت",Gradient:"متدرج","No results found":"لا توجد نتائج","Add custom color_Color Picker":"إضافة لون مخصص","Opacity_Color Picker":"الشفافية","Add_Color Picker":"إضافة","Remove color":"إزالة اللون","Please enter the right date format yyyy-mm-dd":"الرجاء إدخال التاريخ بالشكل الصحيح يوم- شهر- سنة","Please enter the right date":"الرجاء إدخال التاريخ بالشكل الصحيح","recently used_emoji_group":"مستخدَمٌ حديثاً","smiles & people_emoji_group":"الابتسامات والأشخاص","animals & nature_emoji_group":"الحيوانات والطبيعة","food & drink_emoji_group":"الطعام والشراب",activity_emoji_group:"أنشطة","travel & places_emoji_group":"السفر والأماكن",objects_emoji_group:"أشياء",symbols_emoji_group:"رموز",flags_emoji_group:"أعلام"}; \ No newline at end of file diff --git a/charting_library/ar-tv-locale.fd133747.js b/charting_library/ar-tv-locale.fd133747.js new file mode 100644 index 00000000..6c5ed291 --- /dev/null +++ b/charting_library/ar-tv-locale.fd133747.js @@ -0,0 +1 @@ +var _tv_languages=_tv_languages||{};_tv_languages.ar={Cancel:"إلغاء",Next:"التالي","Try again":"حاول مرة أخرى",Price:"سعر",Tax:"ضريبة","Total price":"السعر الكلي",Back:"الخلف",Monthly:"شهري","/mo":"/شهر",year:"سنة","2 years":"سنتين",Stocks:"الأسهم",Indices:"المؤشرات",Futures:"العقود الآجلة",Currency:"عملة","Extra market data":"بيانات السوق الإضافية","{plan_name} plan":"العضوية ‎{plan_name}‎",Total:"اجمالي","Total:":"الإجمالي:",Open:"إفتتاح",Volume:"حجم التداول","Your password should be at least 7 characters long that include letters and numbers.":"كلمة المرور الخاصة بك لابد وأن تحتوي على 7 عناصر على الأقل تتضمن حروف وأرقام",Message:"رسالة",Comment:"تعليق",Delete:"مسح","Editors' picks":"مختارات المحرر","powered by":"مدعوم من","If you don't verify your email address within 14 days we'll have to automatically delete your account (and nobody wants that).":"إذا لم تُتم عملية التحقق من عنوان بريدك الإلكتروني في غضون 14 يومًا فسيتعين علينا حذف حسابك تلقائيًا (ونحن لا نريد ذلك).","Subscribe to any of our upgraded plans and you will be able to receive delayed data from this exchange right now!":"اشترك في أي من العضويات المميزة، وستحصل على بيانات متأخرة من هذه الأسواق مجانًا!","Sign in":"تسجيل الدخول","Upgrade now":"ترقية الاشتراك الآن",Chart:"الرسوم البيانية","Status page":"صفحة حالة الموقع","Help Center":"مركز المساعدة",Search:"بحث","Learn more":"تعرف على المزيد",Date:"التاريخ",Source:"مصدر",Description:"الوصف","Necessary cookies":"ملفات تعريف الارتباط اللازمة",Settings:"إعدادات",Background:"الخلفية",Border:"الإطار",Apply:"تطبيق",Symbol:"رمز",Timezone:"توقيت",Bars:"أعمدة",Candles:"شموع","Heikin Ashi":"هايكين آشي",Line:"خط",Area:"مساحة",Currencies:"العملات",Exchange:"بورصة التداول",Grid:"شبكة","Unlock the full power of TradingView":"استفد من كافة ميزات TradingView",US:"دولار",Subtotal:"الإجمالي الفرعي",Email:"البريد الإلكتروني",Password:"كلمة السر",Phone:"رقم الهاتف",Street:"الشارع",City:"المدينة","State/Region":"الولاية / المنطقة",Country:"البلد",Screener:"المنصّات","Verify your phone number and get access to more tools on TradingView.":"قم بتأكيد رقم هاتفك واحصل على المزيد من الأدوات على موقع TradingView","Incorrect verification code. Please check the entered code or request it again.":"كود التحقق غير صحيح. برجاء التأكد من الكود أو طلب كود جديد",Crypto:"العملات الرقمية","Oops!":"عفوا!","TradingView needs to comply with U.S. trade embargoes and economic sanctions, so we're unable to accept any payments from the region you're in at the moment.":"يجب أن تلتزم TradingView بالحظر التجاري والعقوبات الاقتصادية الأمريكية، لذلك لا يمكننا قبول أي مدفوعات من المنطقة التي تتواجد فيها في الوقت الحالي.","North America":"أمريكا الشمالية",Europe:"أوربا","Middle East / Africa":"الشرق الأوسط / أفريقيا","Mexico and South America":"المكسيك وأمريكا الجنوبية","Asia / Pacific":"أسيا / منطقة المحيط الهاديء","Social network":"وسائل التواصل الاجتماعي","Custom time intervals":"إطارات زمنية مخصصة","Second-based intervals":"أطر زمنية بالثانية","Volume Profile indicators":"مؤشرات بروفايل أحجام التداول","Publish protected scripts":"نشر النصوص البرمجية المحمية","Multiple enhanced watchlists":"قوائم مراقبة محسنة متعددة","Ad-free":"بدون إعلانات",Alerts:"تنبيهات",Trading:"تداول","Mobile apps":"تطبيقات الهاتف الجوال","2-year":"عامين",monthly:"شهري","1-feature":"1- ميزة",Rookie:"مبتديء","Sign up":"سجل","Get 6 months free":"احصل على 6 أشهر مجانا",Upgrade:"ترقية الاشتراك","You can manage your subscription via the {app_name} TradingView app. In order to make changes, please go to the payment section of the app, found under profile settings.":"يمكنك إدارة اشتراكك عبر تطبيق {app_name} TradingView. لإجراء تغييرات، يرجى الانتقال إلى قسم الدفع في التطبيق الموجود ضمن إعدادات الملف الشخصي.","We are unable to process your order":"نحن غير قادرين على معالجة طلبك","Your order can't be processed due to an active account deletion request. Please cancel it by clicking Cancel Account Deletion at the bottom of the page and try placing an order again.":'لا يمكن معالجة طلبك بسبب وجود طلب مُفعّل لحذف الحساب. يرجى إلغاؤه بالنقر فوق "إلغاء حذف الحساب" في أسفل الصفحة ثم حاول تقديم طلب مرة أخرى.',Watchlist:"قائمة متابعة",More:"المزيد",Indicators:"مؤشرات","Pine Script™ manual":"دليل استخدام باين سكريبت",Options:"فترات التنبية",Prices:"أسعار","Head and Shoulders":"نموذج الرأس والكتفين",Flag:"علم",Rectangle:"مستطيل","Parallel Channel":"قناة متوازية",Triangle:"مثلث","Gann Box":"صندوق جان","Gann Fan":"مروحة جان","Gann Square":"مربع جان",Value:"قيمة","Volume Profile":"بروفايل أحجام التداول",Inputs:"مدخلات",Error:"خطأ",Financials:"البيانات المالية",Transportation:"وسائل النقل","Public Relations":"العلاقات العامة",Remove:"حذف",January:"يناير",February:"فبراير",March:"مارس",April:"أبريل",May:"مايو",June:"يونيو",July:"يوليو",August:"أغسطس",September:"سبتمبر",October:"أكتوبر",November:"نوفمبر",December:"ديسمبر","You need to accept our Terms of Use as well as Privacy and Cookies policy to sign up":"يجب عليك قبول شروط الاستخدام وسياسة الخصوصية وملفات تعريف الارتباط الخاصة بنا لتسجيل الاشتراك","Please confirm that you are not a robot by clicking the captcha box":"الرجاء تأكيد أنك لست روبوت من خلال النقر على المربع الكابتشا captcha","Activation key has been sent to":"تم إرسال مفتاح التفعيل إلى","Indicators & Strategies":"المؤشرات والاستراتيجيات",Cryptocurrency:"العملات الرقمية",Change:"تغيير","Hong Kong":"هونج كونج",forex:"فوركس","Build a community while guarding your secrets to success. Only upgraded plans can shield their scripts' code – everyone else must publish open-source scripts.":"قم ببناء مجتمع مع حماية أسرارك للنجاح. يمكن للعضويات المدفوعة فقط حماية كود النصوص البرمجية - يمكن للأشخاص الآخرين نشر نصوص برمجية مفتوحة المصدر فقط.","Publish invite-only scripts and build your community further via our Premium plan. Everyone else can publish open scripts only.":"انشر نصوصًا برمجية متاحة لمدعوين فقط وقم ببناء مجتمعك بشكل أفضل عبر عضوياتنا المدفوعة. يمكن لأي شخص آخر نشر نصوص برمجية مفتوحة فقط.",Other:"آخرى",Type:"نوع",Billing:"إعداد الفواتير","Profile settings":"إعدادات الصفحة الشخصية","Help Center and Support":"مركز المساعدة والدعم","Something went wrong":"حدث خطأ ما","Invalid Symbol":"رمز غير صحيح","Please enter a valid URL":"الرجاء إدخال الرابط الصحيح","Please use a stronger password":"برجاء اختيار كلمة مرور أقوي",Bahrain:"البحرين",Luxembourg:"لوكسمبورغ","New Zealand":"نيوزلندا",Qatar:"قطر",Singapore:"سنغافورة","Report could not be sent due to a server error. Please refresh the page and try again.":"لا يمكن إرسال التقرير لوجود مشكلة محلية، برجاء الضغط على F5 لإعادة تحميل الصفحة ومحاولة إرسال تقرير آخر.",Ok:"موافق","Your name":"أسمك:","Payment method":"طريقة الدفع",Submit:"إرسال","N/A":"غير متاح",Properties:"خصائص",Absolute:"مطلق","Buy now":"اشترك الآن",Extend_plan:"تمديد",Downgrade:"خفض مستوى العضوية",d_dates:"يوم",h_dates:"ساعة",m_dates:"دقيقة",s_dates:"s","Offer ends in":"عرض ينتهي في","Up to":"تصل إلى","60% OFF":"خصم 60%","+1 free month":"+1 شهر مجاني","{offer} sale":"تخفيضات ‎{offer}","Got it":"OK","At close":"عند الإغلاق",Holiday:"عطلة","Click to set a point":"انقر لتحديد نقطة","Move the point to position the anchor then tap to place":"حرّك النقطة لتغيير موضع المُثبّت ثم اضغط لوضعه","Double-click to finish Path":"انقر مرتيين لإنهاء المسار","Double-click to finish Polyline":"انقر مرتيين لإنهاء الشكل متعدد الخطوط","Press and hold {key} while zooming to maintain the chart position":"اضغط لمدة مطولة على {key} أثناء التكبير للحفاظ على موضع الرسم البياني","Double-click any edge to reset layout grid":"انقر نقرًا مزدوجًا فوق أي حافة لإعادة تعيين شبكة التنسيق","Link to the chart image copied to clipboard {emoji}":"تم نسخ رابط صورة الرسم البيانية إلى الحافظة ‎{emoji}‎","Chart image copied to clipboard {emoji}":"صورة الرسم البياني نسخت للحافظة ‎{emoji}‎",Close_input:"إغلاق",Baseline:"خط الأساس",Units:"وحدات",Reverse:"انعكاس",OK:"موافق",Yes:"نعم",No:"لا","Name(s) and address(es) of Subscriber's employer(s)":"اسم (أسماء) وعنوان (عناوين) مستخدم / أرباب عمل مشتركين","Subscriber's title(s) and/or position(s)":"عنوان و/أو موقع (مواقع) المشترك","Subscriber's employment functions (description)":"وصف وظيفة المشترك (توصيف)","Subscriber's occupations":"مهنة المشترك","Banker/Insurance Representative":"مصرفي / تأمين","Bookkeeper/Auditor/Tax Consultant":"كاتب / مراجع حسابات / مستشار الضرائب","Broker/Dealer":"وسيط / تاجر","Civil Service":"الخدمة المدنية","Commodity Trading Advisor":"مستشار تجارة سلع CTA","Commodities Introducing Broker":"وسيط معرف IB","Computer Specialist":"اختصاصي كمبيوتر","Construction Professional":"أعمال بناء وتشييد",Engineer:"مهندس","Individual Investor":"مستثمر",Farmer:"مزارع","Financial Analyst":"محلل مالي","Futures Commission Merchant":"متاجر العقود الآجلة","Investment Advisor/Banker":"مستشار الاستثمار / مصرفي","Legal Professional":"مهن القانون والمحاماة",Management:"إدارة","Marketing Professional":"تسويق","Medical Professional":"مهن طبية","Money Manager":"مدير رؤوس أموال","Real Estate":"عقارات","Retired/Homemaker":"متقاعد / ربة منزل","Sales/Service Representative/Clerical":"مندوب مبيعات / خدمة عملاء / رجل دين","Securities Exchange/Association, Futures Contract":"بورصة الأوراق المالية / العقود الآجلة","Registered Representative":"المستخدمون المسجلون","Store Manager/Owner":"مدير متجر / مالك","Student/Educator/Child Care Provider":"طالب / مرب / مقدم رعاية الطفل","TV/Radio Announcer":"مزيع أو مقدم برامج راديو/تلفاز",Veterinarian:"طبيب بيطري","Subscriber's name":"اسم المشترك","Zip/Postal code":"الرمز البريدي","Agreement for market data display services":"اتفاقية لخدمات عرض بيانات السوق","Usage-Based Services/Non-professional Subscriber Status":"الخدمات المستندة إلى الاستخدام غير المهني","Following exchanges require agreements to be completed before TradingView, Inc. can provide real-time data:":"تتطلب الأسواق التالية إستكمال اتفاقيات معينة من أجل أن تستطيع TradingView توفير بيانات فورية:","{exchange_name} Subscriber Agreement":"‎{exchange_name}‎ اتفاقية بيانات السوق","I've read and accept the terms and conditions.":"لقد قرأت ووافقت على الشروط والأحكام.","Section 1":"قسم 1","Accepted and agreed:":"مقبول ومتفق عليه:",'I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 1, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.':'أنا ، "المشترك" الذي تشير إليه الشروط والأحكام السابقة ، أقر بأنني قرأت البنود والشروط السابقة في هذا القسم 1 ، وأنني أفهمها وأنني أوافق بموجب ذلك على موافقتي على الامتثال لهذه الشروط والأحكام عن طريق النقر فوق المربع.',"Section 2":"القسم 2","Do you use Market Data solely for your personal, non-business use?":"هل تستخدم بيانات السوق فقط لاستخدامك الشخصي وغير التجاري؟","Please read the following 10 questions:":"يرجى قراءة الأسئلة العشرة التالية:","Do you receive Market Data for your business or any other entity?":"هل تتلقى بيانات السوق لعملك أو لأي كيان آخر؟","Are you currently registered or qualified with the SEC or the CFTC?":"هل أنت مسجل حاليًا أو مؤهلًا لدى SEC أو CFTC؟","Are you currently registered or qualified with any securities agency, any securities exchange, association or regulatory body, or any commodities or futures contract market, association or regulatory body, in the United States or elsewhere?":"هل أنت مسجّل أو مؤهل حاليًا لدى أي وكالة للأوراق المالية ، أو أي بورصة للأوراق المالية ، أو جمعية أو هيئة تنظيمية ، أو أي سوق للعقود الآجلة ، أو جمعية أو هيئة تنظيمية ، في الولايات المتحدة أو في أي مكان آخر؟","Whether you are located within or outside of the United States, do you perform any functions that are similar to those that require an individual to register or qualify with the SEC, the CFTC, any other securities agency or regulatory body, any securities exchange or association, or any commodities or futures contract market, association or regulatory body?":"سواء كنت تقيم داخل أو خارج الولايات المتحدة ، هل تقوم بأية وظائف مماثلة لتلك التي تتطلب من الفرد أن يقوم بالتسجيل أو التأهل مع SEC ، أو CFTC ، أو أي وكالة أخرى أو هيئة تنظيمية أخرى ، أو أي تبادل أو جمعية للأوراق المالية. ، أو أي سوق أو سوق عقود مستقبلية ، أو جمعية أو هيئة تنظيمية؟","Are you engaged to provide investment advice to any individual or entity?":"هل تعمل على تقديم المشورة الاستثمارية لأي فرد أو كيان؟","Are you engaged as an asset manager?":"هل تعمل كمدير للأصول؟","Do you use the capital of any other individual or entity in the conduct of your trading?":"هل تستخدم رأس مال أي فرد أو كيان آخر في إدارة تداولاتك؟","Do you conduct trading for the benefit of a corporation, partnership, or other entity?":"هل تقوم بالتداول لصالح شركة أو شراكة أو كيان آخر؟","Have you entered into any agreement to share the profit of your trading activities or receive compensation for your trading activities?":"هل دخلت في أي اتفاق لمشاركة أرباح أنشطة التداول الخاصة بك أو الحصول على تعويض عن أنشطة التداول الخاصة بك؟","Are you receiving office space, and equipment or other benefits in exchange for your trading or work as a financial consultant to any person, firm or business entity?":"هل تحصل على مساحات مكتبية ومعدات أو مزايا أخرى مقابل تداولك أو عملك كمستشار مالي لأي شخص أو شركة أو كيان تجاري؟","If any of the above applies, then mark Yes. If none applies, then tick No.":'إذا كان أي مما سبق صحيحاً، فضع علامة على "نعم". إذا لم يكن كذلك، فحدد "لا".',"Certification:":"شهادة:",'By executing this Agreement, Subscriber hereby certifies that he or she falls within Paragraph 9\'s definition of "Non-professional Subscriber" and that the personal and employment information that he or she has included in Paragraph 12 is truthful and accurate.':'من خلال تنفيذ هذه الاتفاقية ، يقر المشترك بموجبه أنه هو أو هي تقع ضمن تعريف الفقرة 9 "المشترك غير المهني" وأن المعلومات الشخصية والتوظيف التي أدرجها في الفقرة 12 هي صادقة ودقيقة.','I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 2, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.':'أنا ، "المشترك" الذي تشير إليه الشروط والأحكام السابقة ، أقر بأنني قرأت الشروط والبنود السابقة لهذا القسم 2 ، وأنني أفهمها وأوافق بموجب ذلك على الامتثال لهذه الشروط والأحكام عن طريق النقر فوق المربع.',Refuse:"رفض","I Agree":"أوافق","You need to accept this":"عليك أن تقبل هذا","This agreement is for NON-PROFESSIONALS only. If you qualify as a Professional under exchange regulations you may not use this service":"هذه الاتفاقية تخص غير المهنيين فقط. إذا كنت مؤهلاً كمحترف بموجب قوانين الصرف ، فلا يجوز لك استخدام هذه الخدمة","This field is required":"هذا الحقل مطلوب","Only English language is allowed":"يسمح باستخدام اللغة الإنجليزية فقط","Click to learn more":"اضغط لتتعرف على المزيد","You've got the most powerful plan. Enjoy!":"أنت مشترك بأعلى عضوية... استمتع","Start now":"ابدأ الآن","Create account":"إنشاء حساب","Sign up for free":"اشترك مجاناً","{days}-day free trial_free_trial_0":"فترة تجريبية مجانية لمدة {days} يوماً","{days}-day free trial_free_trial_1":"فترة تجريبية مجانية لمدة {days} يوماً","{days}-day free trial_free_trial_2":"فترة تجريبية مجانية لمدة {days} يوماً","{days}-day free trial_free_trial_3":"فترة تجريبية مجانية لمدة {days} أيام","{days}-day free trial_free_trial_4":"فترة تجريبية مجانية لمدة {days} يوماً","{days}-day free trial_free_trial_5":"فترة تجريبية مجانية لمدة {days} يوماً",Back_input:"عودة",O_in_legend:"O",H_in_legend:"H",L_in_legend:"L",C_in_legend:"C",Annually:"سنوي","Going annual will save you up to {discount}% {noWrapTag}this year {emoji}{noWrapTagClose}":"سيوفر لك الانتقال إلى العضوية السنوية ما يصل إلى {discount}٪ {noWrapTag} هذا العام {emoji} {noWrapTagClose}","Annually you have {discount}% off which is 2 months {noWrapTag}free {emoji}{noWrapTagClose}":"تحصل سنويًا على خصم بنسبة {discount}٪، وهو ما يمثل مدة شهرين {noWrapTag}مجانًا {emoji}{noWrapTagClose}","Go for a year plan, get 6 months free. {noWrapTag}Good times {emoji}{noWrapTagClosed}":"اختر عضوية سنة واحصل على 6 أشهر مجانًا. {noWrapTag}إنه عرض رائع!{emoji} {noWrapTagClosed}","Explore offers":"اطلع على العروض",Included:"مُضاف",Switch_plan:"تبديل","Not available":"غير متاح","Get {discount}% off":"احصل على خصم ‎{discount}‎%","Try free for {days} day_free_trial_0":"جربها مجاناً لمدة ‎{days}‎ يوم!","Try free for {days} day_free_trial_1":"جربها مجاناً لمدة {days}‎ يوم!","Try free for {days} day_free_trial_2":"جربها مجاناً لمدة {days}‎ يوم!","Try free for {days} day_free_trial_3":"جربها مجاناً لمدة {days}‎ أيام!","Try free for {days} day_free_trial_4":"جربها مجاناً لمدة {days}‎ يوماً!","Try free for {days} day_free_trial_5":"جربها مجاناً لمدة {days}‎ يوماً!","Start now_basic":"ابدأ الآن","Downgrade activated":"تم تفعيل الرجوع إلى عضوية أدنى","Reactivate current":"تمت إعادة تفعيل الحالي","For new traders and investors starting their journey":"للمتداولين والمستثمرين الجدد الذين يبدأون رحلتهم في الأسواق","Distraction-free trading and investing, with more charts, intervals and indicators":"تداول واستثمر بأفضل طريقة ممكنة مع الرسوم البيانية المتقدمة والعديد من النطاقات الزمنية والمؤشرات","Intraday technical analysis for day traders looking to take things to the next level":"التحليل الفني اللحظي لمتداولي الأطر الصغرى الذين يتطلعون إلى الوصول بأدائهم إلى المستوى التالي","Highest precision and maximum data to capture all possible opportunities":"أعلى دقة وأقصى قدر من البيانات لاقتناص جميع الفرص الممكنة","{indicatorQuantity} indicator per chart_0":"‎{indicatorQuantity}‎ مؤشر لكل رسم بياني","{indicatorQuantity} indicator per chart_1":"‎{indicatorQuantity}‎ مؤشر لكل رسم بياني","{indicatorQuantity} indicator per chart_2":"‎{indicatorQuantity}‎ مؤشر لكل رسم بياني","{indicatorQuantity} indicator per chart_3":"‎{indicatorQuantity}‎ مؤشرات لكل رسم بياني","{indicatorQuantity} indicator per chart_4":"‎{indicatorQuantity}‎ مؤشراً لكل رسم بياني","{indicatorQuantity} indicator per chart_5":"‎{indicatorQuantity}‎ مؤشراً لكل رسم بياني","{chartQuantity} chart in one layout_0":"{chartQuantity} رسم بياني في تنسيق واحد","{chartQuantity} chart in one layout_1":"{chartQuantity} رسم بياني في تنسيق واحد","{chartQuantity} chart in one layout_2":"{chartQuantity} رسم بياني في تنسيق واحد","{chartQuantity} chart in one layout_3":"{chartQuantity} رسوم بيانية في تنسيق واحد","{chartQuantity} chart in one layout_4":"{chartQuantity} رسماً بيانياً في تنسيق واحد","{chartQuantity} chart in one layout_5":"{chartQuantity} رسماً بيانياً في تنسيق واحد","{alertQuantity} server-side alert_0":"{alertQuantity} تنبيه من الخادم","{alertQuantity} server-side alert_1":"{alertQuantity} تنبيه من الخادم","{alertQuantity} server-side alert_2":"{alertQuantity} تنبيه من الخادم","{alertQuantity} server-side alert_3":"{alertQuantity} تنبيهات من الخادم","{alertQuantity} server-side alert_4":"{alertQuantity} تنبيهاً من الخادم","{alertQuantity} server-side alert_5":"{alertQuantity} تنبيهاً من الخادم","{chartLayoutsQuantity} saved chart layout_0":"{chartLayoutsQuantity} تنسيقات محفوظة للرسم البياني","{chartLayoutsQuantity} saved chart layout_1":"{chartLayoutsQuantity} تنسيقات محفوظة للرسم البياني","{chartLayoutsQuantity} saved chart layout_2":"{chartLayoutsQuantity} تنسيقات محفوظة للرسم البياني","{chartLayoutsQuantity} saved chart layout_3":"{chartLayoutsQuantity} تنسيقات محفوظة للرسم البياني","{chartLayoutsQuantity} saved chart layout_4":"{chartLayoutsQuantity} تنسيقاً محفوظاً للرسم البياني","{chartLayoutsQuantity} saved chart layout_5":"{chartLayoutsQuantity} تنسيقاً محفوظاً للرسم البياني","2 charts in one window":"رسمان بيانيان في نافذة واحدة","Volume profile indicators":"مؤشرات بروفايل أحجام التداول","Bar replay on intraday bars":"إعادة تشغيل الأعمدة على أعمدة الأسعار خلال اليوم","Multi-monitor support in Desktop app":"دعم لتعدد الشاشات على تطبيق الحاسوب","Intraday exotic charts":"رسوم بيانية نادرة على الأطر الصغرى","Charts based on custom formulas":"رسوم بيانية معتمدة على صيغ مُخصصة","Chart data export":"‎تصدير بيانات الرسم البياني","Indicators on indicators":"استخدام مؤشرات على مؤشرات أخرى","Unlimited saved chart layouts":"حفظ عدد غير محدود لتنسيقات للرسوم البيانية","Alerts that don't expire":"تنبيهات لا تنتهي صلاحيتها","4x more data on charts (20K bars)":"4 أضعاف البيانات على الرسوم البيانية (20 ألف عمود للأسعار)","Publishing invite-only indicators":"نشر مؤشرات بدعوة فقط","Key benefits of Pro:":"المزايا الرئيسية لعضوية Pro:","All the benefits of Pro, plus:":"جميع مزايا العضوية Pro، بالإضافة إلى:","The complete package, with:":"الباقة الكاملة مع:","-{numberDiscount}% off":"- خصم {numberDiscount}٪","Trial downgrade":"خفض مستوى الفترة التجريبية","Trial upgrade":"ترقية الفترة التجريبية","Current trial":"الفترة التجريبية الحالية","Compared to paying monthly.":"مقارنة بالدفع الشهري","All of your unused trial days will be added to your subscription. This offer expires soon.":"ستتم إضافة جميع أيام الفترة التجريبية غير المستخدمة إلى اشتراكك. سينتهي هذا العرض قريبًا.","The full monthly price is ${monthlyPrice}. The monthly price within the yearly subscription is ${yearlyPrice}.":"السعر الشهري الكامل هو ‎{monthlyPrice}‎ دولار. السعر الشهري في الاشتراك السنوي هو {yearlyPrice} دولار.","Compared to paying monthly. This offer expires soon.":"هذا العرض سينتهي قريباً، مقارنة بالدفع الشهري","You save {strongTag}${amount}{strongTag} a year":"قمت بتوفير $‎{strongTag}{amount}{strongTag}‎","Special price: ${price} {measure}":"السعر الخاص: ‎{price}‎ دولار ‎{measure}‎","{htmlTag}USD/{htmlCloseTag}{htmlTag}mo{htmlCloseTag}":"{htmlTag}دولار أمريكي/{htmlCloseTag}{htmlTag}شهر{htmlCloseTag}","{htmlTag}USD/{htmlCloseTag}{htmlTag}year{htmlCloseTag}":"{htmlTag}دولار أمريكي/{htmlCloseTag}{htmlTag}سنة{htmlCloseTag}","{htmlTag}USD/{htmlCloseTag}{htmlTag}2 years{htmlCloseTag}":"‎{htmlTag}‎دولار أمريكي/‎{htmlCloseTag}‎ ‎{htmlTag}‎سنتان‎{htmlCloseTag}‎","USD/mo":"دولار أمريكي/شهر","USD/year":"دولار أمريكي/سنة","USD/2 years":"دولار أمريكي/سنتان‎","Starting on {date}":"بداية من ‎{date}‎","Ending on {date}":"انتهاء في ‎{date}‎","If chosen, this'll start {solution_link}once the existing plan ends{close_solution_link}":"إذا تم تحديد هذا الخيار، فستُفعّل هذه الأخيرة {solution_link}بمجرد انتهاء فترة العضوية الحالية{close_solution_link}","Pay nothing extra — {solution_link}here's how{solution_link}":"لن تدفع أي سنت إضافي — {solution_link}إليك الطريقة{solution_link}","This is your current plan":"هذه هي عضويتك الحالية","or skip trial and {openLink}pay now{closeLink}":"أو تخظى الفترة التجريبية و ‎{openLink}‎ اشترك الآن ‎{closeLink}‎","Compare all features":"قارن جميع الميزات","Refer a friend and earn ${bonus} to upgrade your plan":"قم بإحالة صديق واكسب {bonus} دولار لترقية عضويتك",Certificates:"صكوك مالية",Compare:"قارن","This offer expires soon":"سينتهي هذا العرض قريبًا",day_time_0:"يوم",day_time_1:"يوم",day_time_2:"يوم",day_time_3:"أيام",day_time_4:"يوم",day_time_5:"يوم",hour_time_0:"ساعة",hour_time_1:"ساعة",hour_time_2:"ساعة",hour_time_3:"ساعات",hour_time_4:"ساعة",hour_time_5:"ساعة",min_time_0:"دقيقة",min_time_1:"دقيقة",min_time_2:"دقيقة",min_time_3:"دقائق",min_time_4:"دقيقة",min_time_5:"دقيقة",secs_time:"ثانية","Plans for every level of ambition":"عضوية لكل مستوى من مستويات الطموح","Try any of our plans, free for {days} day_free_trial_0":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} يوم!","Try any of our plans, free for {days} day_free_trial_1":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} يوم!","Try any of our plans, free for {days} day_free_trial_2":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} يوم!","Try any of our plans, free for {days} day_free_trial_3":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} أيام!","Try any of our plans, free for {days} day_free_trial_4":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} يوماً!","Try any of our plans, free for {days} day_free_trial_5":"جرب إحدى عضوياتنا المدفوعة - مجانًا لمدة {days} يوماً!","Early bird offer":"عرض التسجيل المبكر","Limited offer for monthly subscribers":"عرض محدود للشهر الأول","Wait, don't go":"انتظر، لا تغادر!","Get an upgrade for $1":"احصل على ترقية مقابل 1 دولار","Your bonus is waiting for you":"مكافأتك في انتظارك!",Moscow:"موسكو",London:"لندن","New York":"نيويورك",Toronto:"تورنتو",Paris:"باريس",Seoul:"سيول",Bangkok:"بانكوك",Trade:"تداول",Reload:"إعادة تحميل","We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.":"سيتم تحويلك تلقائياً إلى ‎{payment_method} لإنهاء إجراءات الشراء. بعد إتمام المعاملة، سيتم إعادة توجيهك تلقائيًا إلى TradingView.","This step is highly important so we ask you to please not skip or interrupt it.":"هذه الخطوة مهمة للغاية لذا نرجو منك عدم تفاديها أو تخطيها.","What cryptocurrencies are accepted for payments?":"ما هي العملات الرقمية المقبولة للدفع؟","Bitcoin (BTC) - Bitcoin network":"بيتكوين (BTC) - شبكة بيتكوين","Ethereum (ETH) - ERC20 network":"إيثريوم (ETH) - شبكة ERC20","USD Coin (USDC) - ERC20 network":"USD Coin (USDC) - شبكة ERC20","Litecoin (LTC) - Litecoin network":"لايتكوين (LTC) - شبكة لايتكوين","Bitcoin Cash (BCH) - Bitcoin Cash network":"بيتكوين كاش (BCH) - شبكة بيتكوين كاش","Dogecoin (DOGE) - Dogecoin network":"Dogecoin (DOGE) - شبكة Dogecoin","DAI (DAI) - ERC20 network":"شبكة DAI (DAI) - ERC20","It's vital that the network you withdraw funds from, and the one you deposit funds to, are the same.":"من الضروري أن تكون الشبكة التي تسحب الأموال منها، والشبكة التي تودع الأموال إليها، هي نفسها.","Please note that if the funds are sent via a different network, it will result in losing your payment. Please make sure you consider your options and don't always choose the cheapest commission option.":"يرجى ملاحظة أنه إذا تم إرسال الأموال عبر شبكة مختلفة، فسيؤدي ذلك إلى فقدان أموالك. يرجى التأكد من مراعاة خياراتك ولا تختار دائمًا خيار العمولة الأرخص.","You will be automatically redirected to Coinbase to complete your purchase. Once the payment is completed you will be taken back to the TradingView page.":"سيتم تحويلك تلقائياً إلى Coinbase لإنهاء إجراءات الشراء. يرجى ملاحظة أنه يمكنك استخدام أي محفظة للعملات الرقمية لإجراء الدفع. هام: إذا كنت تدفع عبر إيثريوم، فيرجى التأكد من استخدام الرموز المميزة ERC20 وإلا ستفقد دفعتك. بعد إتمام المعاملة، سيتم إعادة توجيهك إلى TradingView.","Please note you do not need to have a Coinbase account to complete the payment - you can use any available wallet.":"يرجى ملاحظة أنك لست بحاجة إلى أن يكون لديك حساب Coinbase لإكمال الدفع - يمكنك استخدام أي محفظة متاحة.","This step is highly important so we ask you to not skip or interrupt it.":"هذه الخطوة مهمة للغاية لذا نطلب منك عدم تخطيها أو مقاطعتها.","Tax Identification Number":"رقم التعريف الضريبي",Address:"العنوان","Select state/region":"اختر الولاية/المنطقة","No matching state found":"لم يتم العثور على حالة مطابقة","Must be a 6-character alphanumeric code":"يجب أن يكون رمزًا مكونًا من 6 أحرف أبجدية رقمية","Must be a {length}-digit zip code":"يجب أن يكون رمزًا بريديًا مكونًا من {length} رقمًا","No matching region found":"لم يتم العثور على منطقة مطابقة","VAT number format is incorrect":"تنسيق رقم ضريبة القيمة المضافة غير صحيح","This field only supports numbers":"هذا الحقل يدعم الأرقام فقط","Complete your purchase":"أكمل عملية الشراء","I have read and agree with TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}":"لقد قرأت ووافقت على {termsLink}شروط الاستخدام{closeLink} و{privacyLink}سياسة الخصوصية{closeLink}.","{plan} plan ({billingCycle}){point}":"عضوية {plan} ({billingCycle}){point}","Tax included {currencySign}{tax} {currency}":"يشمل الضريبة {currencySign} {tax} {currency}","Payment details":"معلومات الدفع","The bank may hold and release $1 US to verify the card.":"يجوز للبنك الاحتفاظ بدولار أمريكي واحد للتحقق من البطاقة قبل إرجاعه.","Payment card number":"رقم بطاقة الدفع","Expiration date":"تاريخ انتهاء الصلاحية","Security code":"رمز الحماية","Cardholder name":"اسم صاحب البطاقة","Credit card number":"رقم بطاقة الائتمان","Payment error":"حدث خطأ في الدفع",Mobile:"متنقل","Add new method":"أضف طريقة جديدة","PayPal account":"حساب باي بال","Choose your payment method":"اختر طريقة الدفع","Add a new card":"إضافة بطاقة جديد","More payment methods":"المزيد من طرق الدفع","One click":"نقرة واحدة","Payment card":"بطاقة الدفع","Could not calculate tax due to incorrect details":"لا يمكن حساب الضريبة بسبب التفاصيل غير الصحيحة","See available plans":"شاهد العضويات المتاحة","Your payment was successful!":"عملية الدفع اكتملت بنجاح!","Recently used":"مستخدَمٌ حديثاً",Save:"حفظ",Hide:"إخفاء",Show:"عرض","Create Alert":"إنشاء تنبيه",month_0:"شهر",month_1:"شهر",month_2:"شهر",month_3:"أشهر",month_4:"شهر",month_5:"شهر","Find your TradingView account":"إيجاد حسابك على TradingView",Send:"إرسال",High:"أعلى سعر",Low:"أدنى",Ticker:"الرمز",Vol:"حجم تداول","No symbols match your criteria":"لا توجد رموز تطابق معاييرك","Continue anyway":"واصل على أي حال",Close:"إغلاق","Unknown Error":"خطأ غير معروف",Time:"الوقت","{number} minute_0":"{number} دقيقة","{number} minute_1":"{number} دقيقة","{number} minute_2":"{number} دقيقة","{number} minute_3":"{number} دقائق","{number} minute_4":"{number} دقيقة","{number} minute_5":"{number} دقيقة",m_interval_short:"دقيقة","{number} hour_0":"{number} ساعة","{number} hour_1":"{number} ساعة","{number} hour_2":"{number} ساعة","{number} hour_3":"{number} ساعات","{number} hour_4":"{number} ساعة","{number} hour_5":"{number} ساعة",h_interval_short:"ساعة","{number} day_0":"{number} يوم","{number} day_1":"{number} يوم","{number} day_2":"{number} يوم","{number} day_3":"{number} أيام","{number} day_4":"{number} يوم","{number} day_5":"{number} يوم",D_interval_short:"يوم",W_interval_short:"أسبوع",M_interval_short:"شهر",Rename:"تغيير الأسم","Remove from favorites":"حذف من القائمة المفضلة","Add to favorites":"اضف إلى القائمة التفضيلات","{number} item_combobox_input_0":"‎{number}‎ عنصر","{number} item_combobox_input_1":"‎{number}‎ عنصر","{number} item_combobox_input_2":"‎{number}‎ عنصر","{number} item_combobox_input_3":"‎{number}‎ عناصر","{number} item_combobox_input_4":"‎{number}‎ عنصراً","{number} item_combobox_input_5":"‎{number}‎ عنصراً","Time Interval":"الفترة الزمنية","Are you sure?":"هل أنت متأكد ؟",Copy:"نسخ","{value} coin_0":"‎{value}‎ عملة افتراضية","{value} coin_1":"‎{value}‎ عملة افتراضية","{value} coin_2":"‎{value}‎ عملة افتراضية","{value} coin_3":"‎{value}‎ عملات افتراضية","{value} coin_4":"‎{value}‎ عملة افتراضية","{value} coin_5":"‎{value}‎ عملة افتراضية",Drawings:"الرسوم",Data_support:"بيانات","Pine Script™_support":"Pine Script™","Black Friday FAQ_support":"الأسئلة الشائعة حول Black Friday","Cyber Monday FAQ_support":"الأسئلة الشائعة حول اثنين الإنترنت",Subscribe:"اشترك","This website uses cookies":"يستخدم هذا الموقع ملفات تعريف الارتباط","This app uses cookies":"يستخدم هذا التطبيق ملفات تعريف الارتباط","We use cookies to ensure you get the best experience on our website.":"نحن نستخدم ملفات تعريف الارتباط لضمان حصولك على أفضل تجربة على موقعنا.","We use cookies to ensure you get the best experience on our app.":"نحن نستخدم ملفات تعريف الارتباط لضمان حصولك على أفضل تجربة على تطبيقنا.","To learn more about cookies please read our {link_start}Cookies Policy{link_end}.":"لمعرفة المزيد حول ملفات تعريف الارتباط، يرجى قراءة {link_start} سياسة ملفات تعريف الارتباط {link_end}.","Manage preferences":"إدارة المراجع","Accept all":"قبول الكل","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_0":"جرب أي عضوية مجاناً لمدة {days} يوم. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_1":"جرب أي عضوية مجاناً لمدة {days} يوم. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_2":"جرب أي عضوية مجاناً لمدة {days} يوم. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_3":"جرب أي عضوية مجاناً لمدة {days} أيام. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_4":"جرب أي عضوية مجاناً لمدة {days} يوماً. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Try any plan free for {days} day. We'll help you trade and invest better from the get-go._free_trial_5":"جرب أي عضوية مجاناً لمدة {days} يوماً. سنساعدك على التداول والاستثمار بشكل أفضل من البداية.","Price format is invalid.":"صيغة السعر غير صحيحة",Ticks:"تيكات السعر","{exchange} by {originalExchange}":"‎{exchange}‎ من ‎{originalExchange}‎","Real-time data for {symbolName} is provided by {exchange} exchange.":"البيانات اللحظية لـ ‎{symbolName}‎ مقدمة من بورصة ‎.{exchange}‎","This data is real-time, but it’s slightly different to its official counterpart coming from {exchange}.":"هذه البيانات لحظية، لكنها تختلف قليلاً عن نظيرتها الرسمية الواردة من {exchange}.",Increase:"زيادة",Decrease:"تخفيض","Number format is invalid.":"تنسيق الرقم غير صالح.","Specified value is more than the instrument maximum of {max}.":"القيمة المحددة أكبر من الحد الأقصى للأداة والتي تبلغ ‎{max}.","Specified value is less than the instrument minimum of {min}.":"القيمة المحددة أقل من الحد الأدنى للأداة والتي تبلغ {min}.","Please check your internet connection":"يرجى فحص اتصالك بالإنترنت","Verification code":"رمز التحقق",Continue:"استمرار",Risk:"مخاطرة",Body:"الجزء الرئيسي",Wick:"ظل الشمعة",Right:"يمين",Left:"يسار",Interval:"الفاصل الزمني","change timezone":"تغيير المنطقة الزمنية",UTC:"بالتوقيت العالمي المنسق",Cairo:"القاهرة",Johannesburg:"جوهانسبرج",Lagos:"بورصة لاغوس","Buenos Aires":"بوينس آيرس",Bogota:"بوجوتا",Caracas:"كاراكاس",Chicago:"شيكاغو","San Salvador":"سان سلفادور",Juneau:"جونو",Lima:"بورصة ليما","Los Angeles":"لوس أنجلوس","Mexico City":"مدينة المكسيك",Phoenix:"فونيكس",Santiago:"بورصة سانتياغو","Sao Paulo":"ساو باولو",Vancouver:"فانكوفر",Denver:"دينفر Denver",Almaty:"ألماتي",Ashgabat:"عشق أباد",Chongqing:"تشونغتشينغ",Dubai:"دبي","Ho Chi Minh":"هوشي منه",Jakarta:"بورصة جاكرتا",Jerusalem:"القدس",Karachi:"كراتشي",Kolkata:"كولكاتا",Kuwait:"الكويت",Manila:"مانيلا",Muscat:"مسقط",Riyadh:"الرياض",Shanghai:"شنغهاي",Taipei:"طرابلس",Tehran:"طهران",Tokyo:"طوكيو",Reykjavik:"بورصة ريكيافيك",Adelaide:"أديلايد",Brisbane:"بريزبان",Perth:"بِرث",Sydney:"سيدني",Amsterdam:"أمستردام",Athens:"أثينا",Belgrade:"بلغراد",Berlin:"برلين",Bratislava:"براتيسلافا",Brussels:"بروكسل",Bucharest:"بوخاريست",Copenhagen:"بورصة كوبنهاجن",Dublin:"دابلن",Helsinki:"بورصة هلسنكي",Istanbul:"إسطنبول",Lisbon:"لشبونة",Madrid:"مدريد",Malta:"مالطا",Oslo:"أوسلو",Riga:"بورصة ريغا",Rome:"روما",Stockholm:"بورصة ستوكهولم",Tallinn:"بورصة تالين",Vilnius:"بورصة فيلنيوس",Warsaw:"وارسو",Zurich:"زيوريخ","Chatham Islands":"جزر تشاتام",Honolulu:"هونولولو","Norfolk Island":"جزيرة نورفولك",Coordinates:"إحداثيات","Events & Alerts":"الأحداث والتنبيهات",Events:"أحداث",Scales:"المقاييس","Source Code":"كود المصدر",Style:"نمط","Timezone/Sessions":"المنطقة الزمنية/جلسات التداول",Visibility:"الظهور","Box size assignment method":"طريقة تعيين حجم الصندوق","Color bars based on previous close":"تلوين الأعمدة طبقًا للإغلاق السابق",Borders:"إطارات","HLC bars":"أعمدة (الأعلى - الأدنى - الإغلاق)","Price source":"مصدر السعر","Show real prices on price scale (instead of Heikin-Ashi price)":"عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","Up bars":"الشموع الصاعدة","Down bars":"الشموع الهابطة","Projection up bars":"إسقاط الأعمدة الصاعدة","Projection down bars":"إسقاط الأعمدة الهابطة","Projection up color":"زيادة درجة لون العرض","Projection down color":"تقليل درجة لون العرض",Fill:"ملئ","Up color":"لون الإرتفاع","Down color":"لون الإنخفاض",Traditional:"تقليدي","Box size":"حجم المربع","Number of line":"عدد الخطوط","ATR length":"فترة حساب ATR","Reversal amount":"قيمة الإنعكاس","Phantom bars":"قيم التداول الخاطئة","One step back building":"خطوة واحدة إلى الوراء",Wicks:"ظلال",Range:"مدى","You cannot see this pivot timeframe on this resolution":"لا يمكنك رؤية النقاط المحورية على هذا الإطار الزمني","The data vendor doesn't provide volume data for this symbol.":"لا يوفر المزود بيانات أحجام التداول لهذا الرمز.","Accumulation/Distribution_study":"تجميع/توزيع","Accumulative Swing Index_study":"مؤشر الموجة التراكمي","Advance/Decline_study":"مؤشر الصعود/التراجع","Arnaud Legoux Moving Average_study":"متوسط متحرك أرنو ليجو",Aroon_study:"آرون",ASI_study:"مؤشر الموجة التراكمي","Average Directional Index_study":"مؤشر متوسط الحركة الاتجاهية","Average True Range_study":"متوسط المدى الحقيقي","Awesome Oscillator_study":"المتذبذب الرهيب Awesome Oscillator","Balance of Power_study":"ميزان القوة","Bollinger Bands %B_study":"نطاقات بولنجر %B","Bollinger Bands Width_study":"عرض حدود بولنجر","Bollinger Bands_study":"نطاقات بولنجر","Chaikin Money Flow_study":"مؤشر التدفق النقدي لشايكين","Chaikin Oscillator_study":"مؤشر شايكين","Chande Kroll Stop_study":"وقف اتشاند كرول","Chande Momentum Oscillator_study":"مؤشر زخم اتشاند","Chop Zone_study":"نطاق تقلب سعري (نطاق شوب)","Choppiness Index_study":"مؤشر التقلب السعري","Commodity Channel Index_study":"مؤشر قناة السلع","Connors RSI_study":"مؤشر القوى النسبية لكونرز","Coppock Curve_study":"منحنى كوبوك","Correlation Coefficient_study":"معامل الارتباط",CRSI_study:"مؤشر القوى النسبية لكونرز","Detrended Price Oscillator_study":"مؤشر التذبذب السعري","Directional Movement_study":"الحركة الاتجاهية","Donchian Channels_study":"قنوات دونشيان","Double EMA_study":"متوسط متحرك أسي مزدوج","Ease Of Movement_study":"سهولة الحركة","Elder's Force Index_study":"مؤشر قوى إلدر","EMA Cross_study":"تقاطع المتوسط المتحرك الأسي",Envelopes_study:"أغلفة","Fisher Transform_study":"تحويلة فيشر","Fixed Range_study":"النطاق الثابت","Guppy Multiple Moving Average_study":"المتوسط المتحرك المتعدد جوبي","Historical Volatility_study":"التقلبات التاريخية","Hull Moving Average_study":"متوسط متحرك هال","Ichimoku Cloud_study":"سحابة إيتشيموكو","Keltner Channels_study":"قناة كلتنر","Klinger Oscillator_study":"مؤشر كلنجر","Know Sure Thing_study":"أعرف الأشياء المؤكدة","Least Squares Moving Average_study":"متوسط المربعات الصغرى المتحرك","Linear Regression Curve_study":"منحنى الانحدار الخطي","MA Cross_study":"تقاطع المتوسط المتحرك","MA with EMA Cross_study":"تقاطع المتوسط المتحرك مع الأسي","MA/EMA Cross_study":"تقاطع المتوسط المتحرك/الأسي",MACD_study:"MACD","Mass Index_study":"مؤشر الكتلة","McGinley Dynamic_study":"ماكجينلي ديناميك",Momentum_study:"زخم","Money Flow_study":"التدفق النقدي","Moving Average Channel_study":"قناة المتوسط المتحرك","Moving Average Exponential_study":"المتوسط المتحرك الأسي","Moving Average Weighted_study":"المتوسط المتحرك المرجح","Moving Average_study":"المتوسط المتحرك","Net Volume_study":"صافي حجم التداول","On Balance Volume_study":"مؤشر OBV","Parabolic SAR_study":"مؤشر البارابوليك سار","Pivot Points Standard_study":"النقاط المحورية القياسية","Price Channel_study":"قناة سعرية","Price Oscillator_study":"مؤشر التذبذب السعري","Price Volume Trend_study":"اتجاه حجم التداول للأسعار","Rate Of Change_study":"معدل التغير","Relative Strength Index_study":"مؤشر القوة النسبية","Relative Vigor Index_study":"مؤشر النشاط النسبي","Relative Volatility Index_study":"مؤشر التقلب النسبي","Session Volume_study":"حجم تداول الفترة","Session Volume HD_study":"أحجام تداول الجلسة HD","SMI Ergodic Indicator/Oscillator_study":"مؤشر إرجوديك SMI","Smoothed Moving Average_study":"المتوسط المتحرك المحسن","Stochastic RSI_study":"ستوكاستك القوة النسبية (STOCH RSI)",Stochastic_study:"مؤشر ستوكاستك","Triple EMA_study":"المتوسط المتحرك الأسي الثلاثي",TRIX_study:"مؤشر TRIX","True Strength Indicator_study":"مؤشر القوة الحقيقية TSI","Ultimate Oscillator_study":"مؤشر Ultimate Oscillator","Visible Range_study":"نطاق مرئي","Volume Oscillator_study":"متذبذب حجم التداول",Volume_study:"حجم التداول","Vortex Indicator_study":"مؤشر فورتكس Vortex",VWAP_study:"متوسط السعر المرجح بحجم التداول VWAP",VWMA_study:"المتوسط المتحرك المرجح بحجم التداول VWMA","Williams %R_study":"%R ويليامز","Williams Alligator_study":"مؤشر ويليامز أليجيتور","Williams Fractal_study":"فراكتال ويليامز","Zig Zag_study":"مؤشر الزيجزاج",SuperTrend_study:"سوبرترند","Average Price_study":"متوسط السعر","Typical Price_study":"السعر النموذجي","Median Price_study":"السعر الوسيط","Money Flow Index_study":"مؤشر التدفق النقدي MFI","Moving Average Double_study":"المتوسط المتحرك المزدوج","Moving Average Triple_study":"المتوسط المتحرك الثلاثي","Moving Average Adaptive_study":"المتوسط المتحرك المتكيف","Moving Average Hamming_study":"المتوسط المتحرك هامينج","Moving Average Modified_study":"المتوسط المتحرك المُعدل","Moving Average Multiple_study":"المتوسط المتحرك المتعدد","Linear Regression Slope_study":"ميل الانحدار الخطي","Standard Error_study":"خطأ معياري","Standard Error Bands_study":"نطاقات الخطأ معياري","Correlation - Log_study":"ترابط - لوغاريتمي","Standard Deviation_study":"الانحراف المعياري","Chaikin Volatility_study":"تّقلب شايكن","Volatility Close-to-Close_study":"التّقلب بحساب أسعار الإغلاق","Volatility Zero Trend Close-to-Close_study":"التّقلب بحساب أسعار الإغلاق بدون اتجاه","Volatility O-H-L-C_study":"التّقلب O-H-L-C","Volatility Index_study":"مؤشرالتّقلب","Trend Strength Index_study":"مؤشر قوة الاتجاه","Majority Rule_study":"قاعدة الأغلبية",Length_input:"طول",Plot_input:"ارسم",Zero_input:"صفر",Signal_input:"إشارة",Long_input:"شراء",Short_input:"بيع",UpperLimit_input:"الانحراف العلوي",LowerLimit_input:"حد أدنى",Offset_input:"موازن",length_input:"طول",mult_input:"مضاعف",short_input:"بيع",long_input:"شراء",Limit_input:"حد",Move_input:"حركة",Value_input:"قيمة",Method_input:"طريقة","Accumulation/Distribution_input":"تجميع/توزيع",ADR_B_input:"DADR_B","Equality Line_input":"خط المساواة","Window Size_input":"حجم النافذة",Sigma_input:"سيجما","Aroon Up_input":"أرون صاعد","Aroon Down_input":"أرون هابط",Upper_input:"العلوي",Lower_input:"أدنى",Deviation_input:"الانحراف","Levels Format_input":"تنسيق المستويات","Labels Position_input":"ملصقات المركز","0 Level Color_input":"مستوى اللون 0","0.236 Level Color_input":"مستوى اللون 0.236","0.382 Level Color_input":"مستوى اللون 0.382","0.5 Level Color_input":"مستوى اللون 0.5","0.618 Level Color_input":"مستوى اللون 0.618","0.65 Level Color_input":"مستوى اللون 0.65","0.786 Level Color_input":"مستوى اللون 0.786","1 Level Color_input":"مستوى اللون 1","1.272 Level Color_input":"مستوى اللون 1.272","1.414 Level Color_input":"مستوى اللون 1.414","1.618 Level Color_input":"مستوى اللون 1.618","1.65 Level Color_input":"مستوى اللون 1.65","2.618 Level Color_input":"مستوى اللون 2.618","2.65 Level Color_input":"مستوى اللون 2.65","3.618 Level Color_input":"مستوى اللون 3.618","3.65 Level Color_input":"مستوى اللون 3.65","4.236 Level Color_input":"مستوى اللون 4.236","-0.236 Level Color_input":"مستوى اللون -0.236","-0.382 Level Color_input":"مستوى اللون -0.382","-0.618 Level Color_input":"مستوى اللون -0.618","-0.65 Level Color_input":"مستوى اللون -0.65",ADX_input:"متوسط مؤشر الاتجاه (ADX)","ADX Smoothing_input":"تحسين مؤشر متوسط الحركة الاتجاهية","DI Length_input":"طول مؤشر الاتجاه",Smoothing_input:"تحسين",ATR_input:"متوسط ​​المدى الحقيقي ATR",Growing_input:"صاعد",Falling_input:"هابط","Color 0_input":"لون 0","Color 1_input":"لون 1",Source_input:"مصدر",StdDev_input:"الانحراف المعياري",Basis_input:"أساس",Median_input:"قيمة متوسطة","Bollinger Bands %B_input":"حدود بولنجر %B",Overbought_input:"تشبع شرائي",Oversold_input:"تشبع بيعي","Bollinger Bands Width_input":"عرض حدود بولنجر","RSI Length_input":"طول مؤشر القوى النسبية","UpDown Length_input":"طول الصعود أو الهبوط","ROC Length_input":"طول معدل التغير",MF_input:"التدفق النقدي",resolution_input:"الدقة","Fast Length_input":"طول الخط السريع","Slow Length_input":"طول الخط البطيء","Chaikin Oscillator_input":"مؤشر شايكين",P_input:"P",X_input:"X",Q_input:"Q",p_input:"P",x_input:"X",q_input:"q",Price_input:"سعر","Chande MO_input":"مؤشر زخم اتشاند","Zero Line_input":"خط الصفر","Color 2_input":"لون 2","Color 3_input":"لون 3","Color 4_input":"لون 4","Color 5_input":"لون 5","Color 6_input":"لون 6","Color 7_input":"لون 7","Color 8_input":"لون 8",CHOP_input:"نطاق تقلب سعري (نطاق شوب)","Upper Band_input":"الحد العلوي","Lower Band_input":"الحد السفلي",CCI_input:"مؤشر قناة السلع، CCI","Smoothing Line_input":"خط التحسين","Smoothing Length_input":"طول التحسين","WMA Length_input":"طول المتوسط المتحرك المرجح بحجم التداول","Long RoC Length_input":"قيمة معدل تغير كبيرة","Short RoC Length_input":"معدل التغير القصير",sym_input:"رمز",Symbol_input:"رمز",Correlation_input:"علاقة ارتباط",Period_input:"الفترة الزمنية",Centered_input:"مركزي","Detrended Price Oscillator_input":"مؤشر تذبذب السعر",isCentered_input:"متمركز",DPO_input:"مؤشر تذبذب السعر","ADX smoothing_input":"تحسين مؤشر متوسط الحركة الاتجاهية","+DI_input":"+DI","-DI_input":"-DI",DEMA_input:"المتوسط المتحرك الأسي المزدوج DEMA",Divisor_input:"المقام (المقسوم عليه)",EOM_input:"بيانات نهاية الشهر","Elder's Force Index_input":"مؤشر قوى إلدر",Percent_input:"نسبة مئوية",Exponential_input:"أسي",Average_input:"متوسط","Upper Percentage_input":"النسبة المئوية العليا","Lower Percentage_input":"النسبة المئوية الدنيا",Fisher_input:"تحويلة فيشر",Trigger_input:"إشارة الدخول (الزناد)",Level_input:"مستوى","Trader EMA 1 length_input":"طول 1 EMA للمتداول","Trader EMA 2 length_input":"طول 2 EMA للمتداول","Trader EMA 3 length_input":"طول 3 EMA للمتداول","Trader EMA 4 length_input":"طول 4 EMA للمتداول","Trader EMA 5 length_input":"طول 5 EMA للمتداول","Trader EMA 6 length_input":"طول 6 EMA للمتداول","Investor EMA 1 length_input":"طول EMA 1 للمستثمر","Investor EMA 2 length_input":"طول EMA 2 للمستثمر","Investor EMA 3 length_input":"طول EMA 3 للمستثمر","Investor EMA 4 length_input":"طول EMA 4 للمستثمر","Investor EMA 5 length_input":"طول EMA 5 للمستثمر","Investor EMA 6 length_input":"طول EMA 6 للمستثمر",HV_input:"HV","Hull MA_input":"متوسط متحرك هال","Conversion Line Periods_input":"فترات خط التحويل","Base Line Periods_input":"فترات خط الأساس","Conversion Line_input":"خط التحويل","Base Line_input":"خط الأساس","Lagging Span_input":"مدى التأخير","yay Color 0_input":"سنوي لون 0","yay Color 1_input":"سنوي لون 1",Multiplier_input:"متضاعف","Bands style_input":"نمط الحدود",Middle_input:"منتصف",useTrueRange_input:"استخدام المدى الحقيقي",ROCLen1_input:"ROCLen1",ROCLen2_input:"ROCLen2",ROCLen3_input:"ROCLen3",ROCLen4_input:"ROCLen4",SMALen1_input:"المتوسط المتحرك البسيط 1",SMALen2_input:"المتوسط المتحرك البسيط 2",SMALen3_input:"المتوسط المتحرك البسيط 3",SMALen4_input:"المتوسط المتحرك البسيط 4",SigLen_input:"إشارة",KST_input:"KST",Sig_input:"إشارة",roclen1_input:"roclen1",roclen2_input:"roclen2",roclen3_input:"roclen3",roclen4_input:"roclen4",smalen1_input:"المتوسط المتحرك البسيط 1",smalen2_input:"المتوسط المتحرك البسيط 2",smalen3_input:"المتوسط المتحرك البسيط 3",smalen4_input:"المتوسط المتحرك البسيط 4",siglen_input:"الإشارة","Upper Deviation_input":"الانحراف العلوي","Lower Deviation_input":"انحراف أدنى","Use Upper Deviation_input":"استخدام الانحراف العلوي","Use Lower Deviation_input":"استخدام الانحراف السفلي",Count_input:"عد",Crosses_input:"تقاطعات",MOM_input:"على مدى شهري",MA_input:"المتوسط المتحرك","Length EMA_input":"طول المتوسط المتحرك الأسي","Length MA_input":"طول المتوسط المتحرك","Fast length_input":"طول الخط السريع","Slow length_input":"بطيء","Signal smoothing_input":"تحسين الإشارة","Simple ma(oscillator)_input":"المتوسط المتحرك البسيط (كمتذبذب)","Simple ma(signal line)_input":"المتوسط المتحرك البسيط (كخط فردي)",Histogram_input:"أعمدة أحصائية",MACD_input:"الماكد",fastLength_input:"طول الخط السريع",slowLength_input:"طول الخط البطئ",signalLength_input:"طول الإشارة",NV_input:"شركة عامة nv",OnBalanceVolume_input:"مؤشر obv",Start_input:"ابدأ",Increment_input:"ازدياد","Max value_input":"القيمة العظمى",ParabolicSAR_input:"بارابوليك سار",start_input:"بداية",increment_input:"ازدياد",maximum_input:"الأقصى","Short length_input":"قصير","Long length_input":"مسافة طول كبيرة",OSC_input:"مؤشر متذبذب",shortlen_input:"قصير",longlen_input:"طويل",PVT_input:"اتجاه حجم تداول الأسعار",ROC_input:"معدل التغير",RSI_input:"مؤشر القوى النسبية",RVGI_input:"مؤشر النشاط النسبي",RVI_input:"مؤشر النشاط النسبي","Long period_input":"فترة زمنية طويلة","Short period_input":"فترة زمنية قصيرة","Signal line period_input":"فترة خط اإلشارة",SMI_input:"مؤشر إرجوديك SMI","SMI Ergodic Oscillator_input":"مؤشر إرجوديك SMI",Indicator_input:"مؤشر",Oscillator_input:"مؤشر متذبذب",K_input:"K",D_input:"يوم",smoothK_input:"k المحسنة",smoothD_input:"d المحسنة","%K_input":"%K","%D_input":"%D","Stochastic Length_input":"طول الاستوكاستك","RSI Source_input":"مصدر مؤشر القوى النسبية",lengthRSI_input:"طول مؤشر القوى النسبية",lengthStoch_input:"طول الاستوكاستك",TRIX_input:"مؤشر TRIX",TEMA_input:"المتوسط المتحرك الأسي الثلاثي","Long Length_input":"طويل","Short Length_input":"قصير","Signal Length_input":"إشارة",Length1_input:"طول 1",Length2_input:"طول 2",Length3_input:"طول 3",length7_input:"طول 7",length14_input:"طول 14",length28_input:"طول 28",UO_input:"مؤشر ألتميت",VWMA_input:"المتوسط المتحرك المرجح بحجم التداول",len_input:"طول","VI +_input":"VI +","VI -_input":"VI -","%R_input":"%K","Jaw Length_input":"طول الفك","Teeth Length_input":"طول الأسنان","Lips Length_input":"طول الشفاه",Jaw_input:"فك",Teeth_input:"الأسنان",Lips_input:"الشفاه","Jaw Offset_input":"Jaw Offset","Teeth Offset_input":"Teeth Offset","Lips Offset_input":"Lips Offset","Down fractals_input":"فركتلات هابطة","Up fractals_input":"فركتلات صاعدة",Periods_input:"الفترات",Shapes_input:"أشكال","show MA_input":"عرض المتوسط المتحرك","MA Length_input":"طول المتوسط المتحرك","Color based on previous close_input":"تلوين الأعمدة طبقًا للإغلاق السابق","Rows Layout_input":"تخطيط الصفوف","Row Size_input":"حجم الصف",Volume_input:"حجم تداول","Value Area volume_input":"حجم منطقة مهمة","Extend POC Right_input":"إمتداد نقطة التغير إلى اليمين","Value Area Volume_input":"حجم منطقة مهمة",Placement_input:"وضع",POC_input:"نقطة التغير","Developing Poc_input":"تطوير نقطة التغير","Up Volume_input":"حجم تداول صاعد","Down Volume_input":"تراجع حجم التداول","Value Area_input":"منطقة مهمة","Histogram Box_input":"مربع الأعمدة الإحصائية","Value Area Up_input":"منطقة صعود مهمة","Value Area Down_input":"منطقة هبوط مهمة","Number Of Rows_input":"عدد الصفوف","Ticks Per Row_input":'علامة سعرية "تك" لكل صف',"Up/Down_input":"صعود/هبوط",Total_input:"إجمالي",Delta_input:"Delta","Deviation (%)_input":"الإنحراف (%)",Depth_input:"عمق","Extend to last bar_input":"مد إلى آخر شمعة أو عمود بياني",Simple_input:"بسيط",Weighted_input:"مُرجّح","Wilder's Smoothing_input":"تهذيب التحركات بطريقة وايلدر","1st Period_input":"الفترة الأولى","2nd Period_input":"الفترة الثانية","3rd Period_input":"الفترة الثالثة","4th Period_input":"الفترة الرابعة","5th Period_input":"الفترة الخامسة","6th Period_input":"الفترة السادسة","Rate of Change Lookback_input":"معدل تغير فترة المراقبة","Instrument 1_input":"الأداة 1","Instrument 2_input":"الأداة 2","Rolling Period_input":"الفترات المتعاقبة","Standard Errors_input":"الأخطاء المعيارية","Averaging Periods_input":"فترات حساب المتوسّط","Days Per Year_input":"أيام في السنة","Market Closed Percentage_input":"النسبة المئوية لإغلاقات السوق","ATR Mult_input":"مضاعف ATR",VWAP_input:"متوسط السعر المرجح بحجم التداول VWAP","Anchor Period_input":"فترة التثبيت",Session_input:"جلسة",Week_input:"أسبوع",Month_input:"شهر",Year_input:"سنة",Decade_input:"عقد",Century_input:"قرن","Custom range":"نطاق مخصّص","Go to":"الذهاب إلى","Symbol Info":"معلومات الرمز","Save all charts for all symbols and intervals on your layout":"احفظ جميع الرسوم البيانية لكل الرموز والفترات الزمنية في نموذج التصميم الخاص بك",Dot_hotkey:"نقطة","Load Chart Layout":"تحميل تصميم رسم بياني",minutes_interval:"دقائق",hours_interval:"ساعات",days_interval:"أيام",weeks_interval:"أسابيع",months_interval:"شهور","Add custom time interval":"إضافة فترة زمنية مخصصة",Add:"إضافة","Save chart image":"حفظ الصورة","Copy chart image":"نسخ صورة الرسم البياني","Copy link to the chart image":"نسخ رابط صورة الرسم البياني","Open image in new tab":"افتح الصورة في تبويبة جديدة","Tweet chart image":"غرد بصورة الرسم البياني على تويتر","adjust data for dividends":"ضبط لبيانات توزيعات الأرباح","adjust for contract changes":"ضبط لتغييرات العقد","toggle auto scale":"تبديل المقياس التلقائي","toggle log scale":"تبديل المقياس اللوغاريتمي","toggle percentage scale":"تبديل مقياس النسبة المئوية","Take a snapshot":"التقط صورة الشاشة","use settlement as close on daily interval":"استخدام التسوية عند الإغلاق على الفاصل الزمني اليومي","Extended Hours is available only for intraday charts":"ساعات التداول المُمددة متاحة فقط على النطاقات الصغرى خلال اليوم للرسوم البيانية","Toggle Percentage":"نطاق قياس النسبة المئوية",log_scale:"لوغاريتمي","Toggle Log Scale":"نطاق قياس لوغاريتمي",auto_scale:"تلقائي","Toggle Auto Scale":"نطاق قياس تلقائي","Toggle Maximize Chart":"تبديل تكبير الرسم البياني",adj_adjustments:"تعديل","Adjust data for dividends":"تعديل البيانات لأرباح الأسهم","Main symbol data is adjusted for dividends only":"يتم ضبط بيانات الرمز الرئيسي لتوزيعات الأرباح فقط","Main symbol data is adjusted for splits only":"يتم ضبط بيانات الرمز الرئيسي للتقسيمات فقط","b-adj_adjustments":"b-adj","Adjust for contract changes":"ضبط لتغييرات العقود",set_adjustments:"ضبط","Use settlement as close on daily interval":"استخدم التسوية في أقرب وقت على الفاصل الزمني اليومي","Date Range":"المدى الزمني","change session":"تغيير الجلسة",Session:"فترة",Sessions:"الجلسات","Weak Magnet":"مغناطيس ضعيف","Strong Magnet":"مغناطيس قوي",Cursors:"المؤشرات","Trend Line Tools":"أدوات خط الاتجاه","Gann and Fibonacci Tools":"أدوات فيبوناتشي و جان","Geometric Shapes":"الأشكال الهندسية","Annotation Tools":"أدوات التوضيحات والملاحظات",Patterns:"نماذج","Prediction and Measurement Tools":"أدوات التنبؤ والقياس","Hide Drawings Toolbar":"إخفاء شريط أدوات الرسوم","Show Drawings Toolbar":"عرض رسومات شريط الأدوات","Show Favorite Drawing Tools Toolbar":"عرض شريط أدوات الرسم المفضلة",Icon:"أيقونة",Icons:"أيقونات","New drawings are replicated to all charts in the layout and shown when the same ticker is selected":"يتم تطبيق ونسخ ما قمت به من رسومات جديدة إلى جميع الرسوم البيانية في التنسيق المختار وتظهر عند اختيار نفس الرمز أو الأداة المالية","Remove Drawings & Indicators":"حذف الرسومات والمؤشرات","Remove Drawings":"حذف الرسومات","Remove Indicators":"حذف المؤشرات",Alert:"تنبيه","Hollow candles":"شموع مفرغة",Columns:"الأعمدة","High-low":"أعلى-أدنى","Bar's style":"تصميم الأعمدة","Compare or Add Symbol":"قارن أو اضف رمز","Fullscreen mode":"وضع الشاشة الكاملة",Favorites:"المفضلة","Favorite Indicators":"المؤشرات المفضلة","You have no Favorites Indicators yet":"ليس لديك أية مؤشرات مفضلة بعد","Open Interval Dialog":"إجراء حوار منفصل","Number or {hotKey_0}":"رقم أو {hotKey_0}","Add custom interval":"إضافة فترة زمنية مخصصة",Ticks_interval_group_name:"تيكات",Seconds_interval_group_name:"ثانية",Minutes_interval_group_name:"دقائق",Hours_interval_group_name:"ساعات",Days_interval_group_name:"أيام",Weeks_interval_group_name:"أسابيع",Months_interval_group_name:"شهور",Ranges_interval_group_name:"نطاقات","Sync in layout":"مزامنة مع كل الرسوم البيانية",Crosshair:"مؤشر التقاطع","Open chart in popup":"افتح الرسم البياني في نافذة منبثقة","Chart settings":"إعدادات الرسم البياني","Make a Copy":"عمل نسخة","New Chart Layout":"مخطط رسم بياني جديد","Rename Chart Layout":"إعادة تسمية الرسم البياني","Manage Chart Layouts":"إدارة تنسيقات الرسوم البيانية","Symbol Search":"بحث عن الرموز","Simply start typing while on the chart to pull up this search box":"يمكنك ببساطة الكتابة مباشرة على الرسم البياني لعرض مربع البحث","Save Indicator template":"حفظ قالب المؤشر","Save Indicator Template":"حفظ قالب المؤشر","Selecting this option will set the {symbol} symbol on the chart when this template is applied":"سيؤدي تحديد هذا الخيار إلى تعيين الرمز ‎{symbol}‎ على الرسم البياني عند تطبيق هذا القالب","Selecting this option will set the {interval} interval on the chart when this template is applied":"سيؤدي تحديد هذا الخيار إلى تعيين الفاصل الزمني‎{interval} ‎ على الرسم البياني عند تطبيق هذا القالب","Study Template '{templateName}' already exists. Do you really want to replace it?":'نموذج الدراسة "‎{templateName}‎" موجود بالفعل، هل تريد حقًا استبداله؟',"My templates":"قوالبي","Default templates":"القوالب الافتراضية",Templates:"قوالب","Indicator Templates":"نموذج المؤشر","Undo {hint}":"تراجع {hint}","Redo {hint}":"إعادة {hint}","View Only Mode":"وضع العرض فقط","show alert label lines":"إظهار خطوط ملصقات التنبيه","hide alert label lines":"إخفاء خطوط ملصقات التنبيه","change visibility":"تغيير الرؤية","pin to scale {label}":"ثبت على المقياس ‎{label}‎","pin to right scale":"ثبت إلى المقياس الأيمن","pin to left scale":"ثبت على المقياس الأيسر","change earnings visibility":"تغيير وضوح الأرباح","change dividends visibility":"تغيير وضوح توزيعات الأرباح","change splits visibility":"تغيير وضوح تقسيمات الأسهم","change continuous contract switch visibility":"تغيير رؤية تبديل العقد المستمر","show all ideas":"عرض جميع التحاليل","show ideas of followed users":"عرض جميع التحاليل للمستخدمين الذين يتم متابعتهم","show my ideas only":"عرض تحاليلي فقط","change events visibility on chart":"تغيير وضوح الأحداث على الرسم البياني","add this symbol to entire layout":"أضف هذا الرمز إلى التنسيق بالكامل","add this indicator to entire layout":"أضف هذا المؤشر إلى التنسيق بالكامل","add this strategy to entire layout":"أضف هذه الاستراتيجية إلى التنسيق بالكامل","add this financial metric to entire layout":"أضف هذا المؤشر المالي إلى التنسيق بالكامل","apply drawing template":"تطبيق قالب الرسم","lock objects":"قفل العنصر","unlock objects":"تحرير العنصر","Add alert":"اضف تنبيه","Add alert on {series}":"إضافة تنبيه على ‎{series}‎","Add alert on {drawing}":"إضافة تنبيه على ‎{drawing}‎","Edit {title} alert":"تعديل ‎التنبيه {title} .","Extend alert lines":"تمديد خطوط التنبيه","Create limit order":"إنشاء أمر معلق","Apply Manual Risk/Reward":"التطبيق اليدوي لنسبة المخاطر/الأرباح","Apply Manual Decision Point":"قم بتطبيق نقطة اتخاذ القرار يدويا","Analyze Trade Setup":"تحليل إعدادات الصفقة","Apply Elliott Wave":"تطبيق موجات إليوت","Apply Elliott Wave Intermediate":"تطبيق موجات إليوت المتوسطة","Apply Elliott Wave Major":"تطبيق موجات إليوت الكبرى","Apply Elliott Wave Minor":"تطبيق موجات إليوت الصغرى","Apply WPT Up Wave":"تطبيق الهدف السعري للموجة الصاعدة","Up Wave 1 or A":"موجة صاعدة 1 أو A","Up Wave 2 or B":"موجة صاعدة 2 أو B","Up Wave C":"موجة صاعدة C","Up Wave 3":"موجة صاعدة 3","Up Wave 4":"موجة صاعدة 4","Up Wave 5":"موجة صاعدة 5","Apply WPT Down Wave":"تطبيق الهدف السعري للموجة الهابطة","Down Wave 1 or A":"موجة هابطة 1 أو A","Down Wave 2 or B":"موجة هابطة 2 أو B","Down Wave C":"موجة هابطة C","Down Wave 3":"موجة هابطة 3","Down Wave 4":"موجة هابطة 4","Down Wave 5":"موجة هابطة 5","Pinned to scale {label} (hidden)":"تم التثبيت على المقياس ‎{label}‎ (مخفي)","Pinned to right scale (hidden)":"ثبت على المقياس الأيمن (مخفي)","Pin to scale {label} (hidden)":"ثبت على المقياس ‎{label}‎ (مخفي)","Pin to right scale (hidden)":"ثبت على المقياس الأيمن (مخفي)","Pinned to scale {label}":"ثبت على المقياس ‎{label}‎","Pinned to right scale":"تم التثبيت إلى المقياس الأيمن","Pin to scale {label}":"ثبت إلى المقياس ‎{label}‎","Pin to right scale":"ثبت إلى المقياس الأيمن","Pinned to left scale (hidden)":"تم التثبيت على المقياس الأيسر (مخفي)","Pin to left scale (hidden)":"ثبت على المقياس الأيسر (مخفي)","Pinned to left scale":"تم التثبيت إلى المقياس الأيسر","Pin to left scale":"ثبت إلى المقياس الأيسر","Pin to new left scale":"ثبت على مقياس أيسر جديد","Pin to new right scale":"ثبت على مقياس أيمن جديد","Pin to scale (now {label})":"ثبت على مقياس (‎{label}‎ جديد)","Pin to scale (now no scale)":"تثبيت مقياس الرسم (الأن لا مقياس محدد)","Pin to scale (now left)":"تثبيت إلى المقياس (الآن يسار)","Pin to scale (now right)":"تثبيت إلى المقياس (الآن يمين)","No scale (fullscreen)":"بدون مقياس ثابت (ملء الشاشة)","Move to":"حرك إلى","Existing pane above":"جزء موجود أعلاه","New pane above":"جزء جديد أعلاه","Existing pane below":"جزء موجود أدناه","New pane below":"جزء جديد أدناه","Bring to front":"وضعه في المقدمة","Send to back":"إرسال للمؤخرة","Bring forward":"تقديمه للأمام","Send backward":"إرسال إلى الخلف","Visual order":"الترتيب المرئي",Lines:"الخطوط","Add indicator/strategy on {studyTitle}":"إضافة مؤشر/إستراتيجية على {studyTitle}","Add financial metric for {instrumentName}":"إضافة مؤشر مالي لـ {instrumentName}","Apply default":"تطبيق الوضع الافتراضي","Save as":"حفظ باسم",Clone:"نسخة مكررة",Template:"قالب","Go to {lineToolName}":"انتقل إلى {lineToolName}",Unlock:"فتح",Lock:"غلق","Show earnings":"عرض الأرباح","Show dividends":"عرض توزيعات الأرباح","Show splits":"عرض تقسيمات الأسهم","Show continuous contract switch":"إظهار تبديل العقد المستمر","Show all ideas":"عرض جميع الأفكار","Show ideas of followed users":"عرض جميع الأفكار للمستخدمين الذين يتم متابعتهم","Show my ideas only":"عرض أفكاري فقط","Hide events on chart":"إخفاء الأحداث على الرسم البياني","Add this symbol to entire layout":"أضف هذا الرمز إلى التنسيق بالكامل","Add this indicator to entire layout":"أضف هذا المؤشر إلى التنسيق بالكامل","Add this strategy to entire layout":"أضف هذه الاستراتيجية إلى التنسيق بالكامل","Add this financial metric to entire layout":"أضف هذا المؤشر المالي إلى التنسيق بالكامل","No sync":"لا مزامنة","Sync globally":"مزامنة شاملة","Symbol info":"معلومات الرمز","Upper Bound":"الحد العلوي","Lower Bound":"الحد الأدنى",Create_alert:"إنشاء","Alert editor could not be initialized":"تعذر إعادة تعيين محرر التنبيهات","Alerts maintenance":"صيانة التنبيهات","We are doing some brief daily maintenance. Alerts will be back really soon, thanks for your patience!":"نقوم ببعض الصيانة اليومية السريعة، التنبيهات ستعود كما كانت قريباً جداً، شكراً لتعاونكم","Cannot create an alert while offline":"لا يمكن إنشاء تنبيه أثناء غياب الاتصال بالإنترنت","Cannot edit an alert while offline":"لا يمكن تعديل تنبيه أثناء غياب الاتصال بالإنترنت","Can't create alert on invalid symbol":"لا يمكن إنشاء تنبيه على رمز/أصل مالي غير صحيح","Can't edit alert on invalid symbol":"لا يمكن تعديل التنبيه على رمز/أصل مالي غير صحيح","Both the currency and the unit have been converted!":"تم تحويل كل من العملة والوحدة!","It's not currently possible to create alerts on such a scale.":"لا يمكن حاليًا إنشاء تنبيهات على المقياس.","It's not currently possible to edit alerts on such a scale.":"لا يمكن حاليًا تعديل التنبيهات على المقياس.","A converted currency has been detected!":"تم اكتشاف عملة محولة!","It's not currently possible to create alerts for this type of symbol.":"لا يمكن حاليًا إنشاء تنبيهات على نوع الرمز هذا.","It's not currently possible to edit alerts for this type of symbol.":"لا يمكن حاليًا تعديل التنبيهات على نوع الرمز هذا.","A converted unit has been detected!":"تم الكشف عن وحدة محولة!","Dang-it – Wrong symbol type!":"عذراً، نوع رمز خاطئ!","Alerts aren't available right now for economics symbols.":"التنبيهات غير متاحة الآن للرموز الاقتصادية.","Alert cannot be set on an ATR-based chart":"لايمكن ضبط التنبيه على الرسوم البيانية المعتمدة على مؤشر ATR.","Your alert won't trigger the way you expect it to! Inputs for ATR-based charts are recalculated each time you open a chart and are generally dependent on time. Please use the traditional chart type to set an alert with a static box size.":"لن يتفعل تنبيهك بالطريقة التي تتوقعها! يتم إعادة احتساب مدخلات الرسوم البيانية المعتمدة على مؤشر ATR في كل مرة تقوم فيها بفتح الرسم البياني وتعتمد بشكل عام على الوقت. يرجى استخدام نوع الرسم البياني التقليدي لتعيين تنبيه بحجم مربع ثابت.","Oops – Replay Mode!":"عفوًا - وضع إعادة التشغيل!","Alerts are not currently available in replay mode.":"التنبيهات غير متوفرة حاليًا في وضع إعادة التشغيل.","By TradingView":"بواسطة TradingView","{symbol} financials by TradingView":"{symbol} تم تفريغ القوائم المالية عن طريق TradingView","More features on tradingview.com":"مميزات أكثر على موقع tradingview.com","move left":"حرك يسارًا","move right":"حرّك يمينًا","change price to bar ratio":"تغيير السعر إلى نسبة العمود","toggle lock scale":"تبديل قفل المقياس","change series style":"تغيير نمط السلسلة","hide {title}":"إخفاء {title}","Invalid symbol":"رمز غير صحيح","No data here":"لا توجد بيانات هنا","apply indicators to entire layout":"تطبيق المؤشرات على التنسيق بأكمله","sync time":"وقت المزامنة","apply chart theme":"تطبيق مظهر الرسم البياني","Please give us a clipboard writing permission in your browser or press {keystroke}":"يرجى منحنا إذن الكتابة للحافظة في متصفحك أو الضغط على {keystroke}","Couldn't copy":"تعذر النسخ","Couldn't cut":"تعذر القطع","Couldn't paste":"تعذر اللصق","{userName} published on {customer}, {date}":"نشر {userName} على {customer} في {date}","Published on {customer}, {date}":"تم نشره على {customer} في {date}","change symbol last value visibility":"تغيير وضوح آخر قيمة للرمز","change symbol previous close value visibility":"تغيير وضوح قيمة الإغلاق للرمز","change previous close price line visibility":"تغيير وضوح خط سعر الإغلاق السابق","change symbol labels visibility":"تغيير وضوح ملصقات رمز","change indicators and financials name labels visibility":"وضوح ملصقات تغير المؤشرات وأسماء البيانات المالية","change indicators name labels visibility":"وضوح ملصقات تغير المؤشرات","change indicators and financials value labels visibility":"وضوح ملصقات تغير المؤشرات والبيانات المالية","change indicators value labels visibility":"وضوح ملصقات تغيير المؤشرات","change bid and ask labels visibility":"تغيير وضوح ملصقات سعري البيع والشراء","change bid and ask lines visibility":"تغيير وضوح خط سعري البيع والشراء","change pre/post market price label visibility":"تغيير وضوح ملصق أسعار ما قبل/بعد الجلسة","change high and low price lines visibility":"تغيير وضوح خطوط أعلى سعر وأدنى سعر","change high and low price labels visibility":"تغيير وضوح ملصقات أعلى سعر وأدنى سعر","change countdown to bar close visibility":"تغيير وضوح العد التنازلي لعمود الإغلاق","change plus button visibility":"تغيير وضوح زر +","change price line visibility":"تغيير خط السعر","unlock {title}":"تحرير ‎{title}‎","lock {title}":"تثبيت ‎{title}‎","Auto (fits data to screen)":"تلقائي (تناسب البيانات مع حجم الشاشة)","Lock price to bar ratio":"قفل نسبة السعر للعمود البياني","Change interval":"تغيير الفترة","Symbol last price label":"ملصق آخر قيمة للرمز","Symbol previous day close price label":"ملصق قيمة إغلاق اليوم السابق للرمز","Previous day close price line":"خط سعر إغلاق اليوم السابق","Symbol name label":"ملصق اسم الرمز","Indicators and financials value labels":"ملصقات المؤشرات والبيانات المالية","Indicators value labels":"ملصقات قيمة المؤشرات","Indicators and financials name labels":"ملصقات المؤشرات وأسماء البيانات المالية","Indicators name labels":"ملصق اسم المؤشر","Bid and ask labels":"ملصقات سعري البيع والشراء (Bid/Ask)","Bid and ask lines":"خطوط سعري البيع والشراء (Bid/Ask)","Pre/post market price label":"ملصق السعر لما قبل/بعد الجلسة","Pre/post market price line":"خط السعر لما قبل/بعد الجلسة","High and low price lines":"خطوط أعلى وأدنى سعر","Countdown to bar close":"العد التنازلي لإغلاق العمود البياني","Plus button":"زر زائد","Source code":"كود المصدر","Price line":"خط السعر","Session breaks":"راحات جلسة التداول","change symbol":"تغيير الرمز","change resolution":"تغيير النطاق",Warning:"تحذير","Zoom Out":"تصغير","Zoom In":"تكبير","Maximize chart":"تكبير الرسم البياني","Restore chart":"استعادة الرسم البياني","Scroll to the Left":"التمرير إلى اليسار","Scroll to the Right":"التمرير إلى اليمين","Reset Chart":"إعادة تعيين الرسم البياني","Scroll to the Most Recent Bar":"التمرير إلى أخر عمود بياني",Mixed:"مختلط","show {title}":"عرض ‎{title}‎","Hide Favorite Drawing Tools Toolbar":"إخفاء شريط أدوات الرسم المفضلة","Market open":"السوق مفتوح","Pre-market":"ما قبل الجلسة","Post-market":"ما بعد الجلسة","Market closed":"السوق مغلق","Exchange timezone":"المنطقة الزمنية للبورصة",Image:"صورة",Transparency:"الشفافية","change symbol description visibility":"تغيير وضوح وصف رمز","change open market status visibility":"تغيير وضوح حالة السوق المفتوحة","change OHLC values visibility":"تغيير وضوح قيم OHLC","change bar change visibility":"تغيير وضوح تغييرات الأعمدة","change indicator titles visibility":"تغيير وضوح عناوين المؤشر","change indicator arguments visibility":"تغيير وضوح مدخلات المؤشر","change indicator values visibility":"تغيير وضوح قيم المؤشر","change volume values visibility":"تغيير وضوح قيم الحجم","Open market status":"حالة الأسواق المفتوحة","OHLC values":"قيم الافتتاح والإغلاق وأعلى وأدنى قيمة (OHLC)","Bar change values":"قيمة التغير للعمود","Indicator titles":"عناوين المؤشر","Indicator arguments":"مدخلات المؤشر","Indicator values":"قيم المؤشر","Hide Indicator Legend":"إخفاء وسيلة إيضاح المؤشر","Show Indicator Legend":"عرض وسيلة إيضاح المؤشر","Show Object Tree":"إظهار عناصر الرسم البياني","Could not get Pine source code.":"لا يمكن ايجاد مصدر الكود البرمجي باين.","Show interval settings":"إظهار إعدادات النطاق الزمني","Flag Symbol":"وضع علامة على الرمز","Unflag Symbol":"إزالة العلامة من الرمز","change line tool(s) font size":"تغيير حجم خط أداة (أدوات) الخط","change line tool(s) line style":"تغيير نمط أداة (أدوات) الخط","Font size":"حجم الخط","Template name":"أسم القالب","{hotKey_0} — drawing a straight line at angles of 45":"{hotKey_0} - رسم خط مستقيم بزوايا 45 درجة","{hotKey_0} — circle":"{hotKey_0} - دائرة","{hotKey_0} — square":"{hotKey_0} - مربع","{hotKey_0} — fixed increments":"{hotKey_0} — زيادات ثابتة",Arrow:"سهم",Cross:"تقاطع",Dot:"نقطة","Stay in Drawing Mode":"البقاء في وضع الرسم",Eraser:"ممحاة","Show Hidden Tools":"عرض الأدوات المخفاه","Hide All Drawing Tools":"إخفاء جميع أدوات الرسم","Lock All Drawing Tools":"غلق كل أدوات الرسم","Magnet Mode snaps drawings placed near price bars to the closest OHLC value":"وضع المغناطيس يجذب الرسومات الموجودة بجوار أعمدة السعر عند أقرب قيمة سعر إغلاق أو افتتاح أو أعلى وأقل سعر",Measure:"مقياس","{hotKey_0} + Click on the chart":"{hotKey_0} + اضغط على الرسم البياني",Color:"لون","Text color":"لون النص","Double click":"نقرتين متتاليتين","Delete pane":"حذف جزء","Move pane up":"تحريك جزء لأعلى","Move pane down":"تحريك جزء لأسفل","Maximize pane":"تكبير جزء","Restore pane":"استعادة جزء","Collapse pane":"طي الجزء","Manage panes":"إدارة العناصر",scroll:"تمرير","Lock vertical cursor line by time":"قفل خط المؤشر العمودي بمرور الوقت","change no overlapping labels":"تغيير الملصقات غير متداخلة","Merge all scales into one":"دمج كل المقاييس في مقياس واحد",Labels:"عناوين","Reset price scale":"إعادة تعيين مقياس السعر",Percent_scale_menu:"نسبة مئوية","Indexed to 100_scale_menu":"مدرجة إلى 100",Logarithmic_scale_menu:"لوغاريتمي",Regular_scale_menu:"عادي","No overlapping labels_scale_menu":"بدون ملصقات متداخلة","Invert scale_scale_menu":"عكس المقياس","Status line":"خط الحالة",Appearance:"المظهر",money:"أموال",pips:"نقاط",ticks:"تيكات السعر","Ticker and description":"الرمز والوصف","change chart background color":"تغيير لون خلفية الرسم البياني","change chart background type":"تغيير نوع خلفية الرسم البياني","change vert grid lines color":"تغيير لون خطوط الشبكة العمودية","change vert grid lines style":"تغيير نمط خطوط الشبكة العمودية","change horz grid lines color":"تغيير لون خطوط الشبكة الأفقية","change horz grid lines style":"تغيير نمط خطوط الشبكة الأفقية","change sessions breaks visibility":"تغيير وضوح فواصل الجلسات","change sessions breaks color":"تغيير وضوح لون فواصل الجلسات","change sessions breaks width":"تغيير عرض فواصل الجلسات","change sessions breaks style":"تغيير نمط فواصل الجلسات","change scales text color":"تغيير لون نص المقاييس","change scales font size":"تغيير حجم خط المقاييس","change scales lines color":"تغيير لون خطوط المقاييس","change pane separators color":"تغيير لون فواصل الجزء","change crosshair color":"تغيير لون التقاطع","change crosshair width":"تغيير عرض التقاطع","change crosshair style":"تغيير نمط التقاطع","change symbol watermark visibility":"تغيير وضوح علامة الرمز","change symbol watermark color":"تغيير لون علامة الرمز","change navigation buttons visibility":"تغيير وضوح أزرار التنقل","change pane buttons visibility":"تغيير وضوح أزرار الجزء","change top margin":"تغيير الهامش العلوي","change bottom margin":"تغيير الهامش السفلي","change right margin":"تغيير الهامش الأيمن","Vert grid lines":"خطوط شبكية رأسية","Horz grid lines":"خطوط شبكية أفقية","Scales text":"نص المقاييس","Scales lines":"خطوط المقاييس",Watermark:"علامة مائية","Top margin":"الهامش العلوي","Navigation buttons":"أزرار التنقل","Pane buttons":"أزرار الجزء","Bottom margin":"الهامش السفلي","Right margin":"الهامش الأيمن",bars_unit:"الأعمدة البيانية","change price Y coordinate":"تغيير إحداثيات سعر Y","change bar X coordinate":"تغيير إحداثيات سعر X","change {title} visibility on ticks":"تغيير وضوح {title} على التيكات","change {title} visibility on seconds":"تغيير وضوح {title} على الثواني","change {title} seconds from":"تغيير {title} الثواني من","change {title} seconds to":"تغيير {title} الثواني إلى","change {title} visibility on minutes":"تغيير {title} الدقائق من","change {title} minutes from":"تغيير {title} الدقائق إلى","change {title} minutes to":"تغيير وضوح {title} على الساعات","change {title} visibility on hours":"تغيير وضوح {title} على الساعات","change {title} hours from":"تغيير {title} الساعات من","change {title} hours to":"تغيير {title} الساعات إلى","change {title} visibility on days":"تغيير وضوح {title} على الأيام","change {title} days from":"تغيير {title} الأيام من","change {title} days to":"تغيير {title} الأيام إلى","change {title} visibility on weeks":"تغيير وضوح {title} على الأسابيع","change {title} weeks from":"تغيير {title} الأسابيع من","change {title} weeks to":"تغيير {title} الأسابيع إلى","change {title} visibility on months":"تغيير وضوح {title} على الأشهر","change {title} months from":"تغيير {title} الأشهر من","change {title} months to":"تغيير {title} الأشهر إلى","change {title} visibility on ranges":"تغيير وضوح {title} على النطاقات",Seconds:"ثواني",Minutes:"دقائق",Hours:"ساعات",Days:"الأيام",Weeks:"أسابيع",Months:"الشهور",Ranges:"نطاقات القدرة التحليلية",seconds:"ثواني","seconds from":"ثوان من","seconds to":"ثواني لـ",minutes:"دقائق","minutes from":"دقائق من","minutes to":"دقائق لـ",hours:"ساعات","hours from":"ساعات من","hours to":"ساعات لـ",days:"الأيام","days from":"أيام من","days to":"أيام لـ",weeks:"أسابيع","weeks from":"أسابيع من","weeks to":"أسابيع لـ",months:"الشهور","months from":"أشهر من","months to":"أشهر لـ",ranges:"نطاقات القدرة التحليلية","change symbol legend format":"تغيير تنسيق مفتاح التوضيح الرمز","change legend background visibility":"تغيير وضوح خلفية المفتاح التوضيحي","change legend background transparency":"تغيير شفافية خلفية المفتاح التوضيحي","change {title} price label visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} extension":"تغيير امتداد {title}","change {title} time label visibility":"تغيير وضوح ملصقات وقت {title}","Price label":"ملصق السعر","Time label":"ملصق الوقت",Extend:"تمديد","change symbol last value mode":"تغيير وضع آخر قيمة للرمز","change currency label visibility":"تغيير وضوح ملصقات العملة","change unit label visibility":"تغيير وضوح ملصقات الوحدة","change currency and unit labels visibility":"تغيير وضوح وحدات الملصقات والعملة","change date format":"تغيير تنسيق التاريخ",Unit:"وحدة","Currency and Unit":"العملة والوحدة","Scales placement":"وضع المقاييس","Date format":"تنسيق التاريخ","No overlapping labels":"بدون ملصقات متداخلة","Price and percentage value":"السعر وقيمة النسبة المئوية","Value according to scale":"القيمة حسب المقياس","text color":"لون النص",Text:"النص","change {inputName} property":"تغيير خاصية {inputName}","change color bars based on previous close":"تغيير لون الأعمدة بناءً على الإغلاق السابق","change HLC bars":"تغيير أعمدة HLC","change bar up color":"تغيير لون العمود الصاعد","change bar down color":"تغيير لون العمود الهابط","change thin bars":"تغيير الأعمدة الرقيقة","change line price source":"تغيير مصدر سعر الخط","change line type":"تغيير نوع الخط","change line color":"تغيير لون الخط","change line width":"تغيير عرض الخط","change area price source":"تغيير مصدر سعر المنطقة","change area line color":"تغيير لون خطوط المنطقة","change area line width":"تغيير عرض خط المنطقة","change area fill color":"تغيير لون المنطقة","change baseline price source":"تغيير مصدر السعر الأساسي","change baseline top line color":"تغيير لون خطوط خط الأساس","change baseline top line width":"تغيير عرض أعلى الخط الأساسي","change baseline bottom line color":"تغيير لون قاع خط الأساس","change baseline bottom line width":"تغيير لون قاع خط الأساس","change baseline fill top area color":"تغيير لون المنطقة العليا لخط الأساس","change baseline fill bottom area color":"تغيير لون المنطقة السفلية لخط الأساس","change base level":"تغيير مستوى الأساس","change high-low body visibility":"تغيير وضوح جسم أعلى-أدنى","change high-low body color":"تغيير لون جسم أعلى-أدنى","change high-low borders visibility":"تغيير وضوح حدود أعلى-أدنى","change high-low border color":"تغيير لون حدود أعلى-أدنى","change high-low labels visibility":"تغيير وضوح ملصقات أعلى-أدنى","change high-low labels color":"تغيير لون ملصقات أعلى-أدنى","change high-low labels font size":"تغيير حجم خط ملصقات أعلى-أدنى","change renko wick visibility":"تغيير وضوح ذيل الرينكو","change renko wick up color":"تغيير لون ذيل الرينكو الصاعد","change renko wick down color":"تغيير لون ذيل رينكو الهابط","change the display of real prices on price scale (instead of Heiken-Ashi price)":"تغيير عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","change range thin bars":"تغيير نطاق الأعمدة الرقيقة","change {candleType} body visibility":"تغيير وضوح الجسم {candleType}","change {candleType} up color":"تغيير لون {candleType} الصاعد","change {candleType} down color":"تغيير لون {candleType} الهابط","change {candleType} border visibility":"تغيير وضوح حدود {candleType}","change {candleType} up border color":"تغيير لون حدود {candleType} الصاعد","change {candleType} down border color":"تغيير لون حدود {candleType} الهابط","change {candleType} wick visibility":"تغيير وضوح ذيل {candleType}","change {candleType} wick up color":"تغيير لون ذيل {candleType} الصاعد","change {candleType} wick down color":"تغيير لون ذيل {candleType} الهابط","change {chartType} up color":"تغيير لون {chartType} الصاعد","change {chartType} down color":"تغيير لون {chartType} الهابط","change {chartType} projection bar up color":"تغيير لون عمود الإسقاط {chartType} الصاعد","change {chartType} projection bar down color":"تغيير لون عمود الإسقاط {chartType} الهابط","change {chartType} border bar up color":"تغيير لون حدود عمود {chartType} الصاعد","change {chartType} border bar down color":"تغيير لون حدود عمود {chartType} الهابط","change {chartType} projection border bar up color":"تغيير لون الإسقاط لحدود عمود {chartType} الصاعد","change column down color":"تغيير لون الأعمدة الهابطة","change column price source":"تغيير مصدر سعر العمود","Thin bars":"أعمدة نحيفة","Top line":"الخط العلوي","Bottom line":"الخط السفلي","Fill top area":"إملئ المنطقة العلوية","Fill bottom area":"ملء المنطقة السفلية","Real prices on price scale (instead of Heikin-Ashi price)":"عرض الأسعار الحقيقية على مقياس السعر (بدلًا من سعر هيكن آشي)","Base level":"مستوى الأساس",candle:"شمعة",range_0:"نطاق",range_1:"نطاق",range_2:"نطاق",range_3:"نطاقات",range_4:"نطاق",range_5:"نطاق","hollow candles":"شموع مفرغة",Center:"مركز","change {title} middle point visibility":"تغيير وضوح نقطة المنتصف {title}","change {title} price labels visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} price range visibility":"تغيير وضوح ملصقات أسعار {title}","change {title} bars range visibility":"تغيير وضوح نطاق الأعمدة {title}","change {title} date/time range visibility":"تغيير وضوح نطاق التاريخ/الوقت {title}","change {title} distance visibility":"تغيير وضوح المسافة {title}","change {title} angle visibility":"تغيير وضوح زاوية {title}","change {title} always show stats":"تغيير {title} لتظهر دائما الإحصائيات","change {title} stats position":"تغيير موضع الإحصائيات {title}","Middle point":"نقطة المنتصف","Price labels":"عنوان السعر","Stats position":"موقف الإحصائيات","Price range":"المدى السعري","Bars range":"نطاق الأعمدة","Date/time range":"نطاق التاريخ/الوقت",Distance:"مسافة",Angle:"زاوية","Always show stats":"أظهر الاحصائيات دائماً",Stats:"الإحصائيات","change {toolName} line visibility":"تغيير وضوح خط {toolName}","change {toolName} line width":"تغيير عرض خط {toolName}","change {toolName} line style":"تغيير نمط خط {toolName}","change {toolName} line color":"تغيير لون خط {toolName}","change {toolName} line extending left":"تغيير خط {toolName} الممتد إلى اليسار","change {toolName} line left end":"تغيير النهاية اليسرى لخط {toolName}","change {toolName} line extending right":"تغيير خط {toolName} الممتد إلى اليمين","change {toolName} line right end":"تغيير النهاية يمين خط {toolName}","Extend left line":"تمديد الخط الأيسر","Extend right line":"تمديد الخط الأيمن","change {toolName} text visibility":"تغيير وضوح النص {toolName}","change {toolName} text color":"تغيير لون النص {toolName}","change {toolName} text font size":"تغيير حجم خط نص {toolName}","change {toolName} text font bold":"تغيير خط النص الغامق {toolName}","change {toolName} text font italic":"تغيير خط النص {toolName} المائل","change {toolName} text":"تغيير نص {toolName}","change {toolName} labels alignment vertical":"تغيير المحاذاة الرأسية لملصقات {toolName}","change {toolName} labels alignment horizontal":"تغيير محاذاة الملصقات {toolName} أفقيًا","change {toolName} labels direction":"تغيير اِتِّجاه ملصقات {toolName}","change {toolName} text background visibility":"تغيير وضوح خلفية النص {toolName}","change {toolName} text background color":"تغيير لون خلفية النص {toolName}","change {toolName} text border visibility":"تغيير وضوح حدود النص {toolName}","change {toolName} text border width":"تغيير عرض حدود النص {toolName}","change {toolName} text border color":"تغيير لون حدود النص {toolName}","change {toolName} text wrap":"تغيير التفاف نص {toolName}","Text wrap":"التفاف النص","change arrow color":"تغيير لون السهم","change {title} color":"تغيير لون {title}","change {title} mode":"تغيير وضع {title}","change {title} mirrored":"تغيير {title} المعكوس","change {title} flipped":"تغيير {title} المقلوب",Mode:"الوضع",Mirrored:"معكوس",Flipped:"مقلوب","HL bars":"أعمدة الارتفاع والانخفاض","OC bars":"أعمدة OC","Line - close":"خط- إغلاق","Line - open":"خط - افتتاح","Line - high":"خط - ارتفاع","Line - low":"خط - انخفاض","Line - HL/2":"خط - ارتفاع / انخفاض / 2","change {title} background visibility":"تغيير وضوح خلفية {title}","change {title} background color":"تغيير اللون لخلفية {title}","change {title} degree":"تغيير درجة {title}",Wave:"الموجة",Degree:"درجة","change {title} level {index} line visibility":"تغيير وضوح مستوى خط {title} {index}","change {title} levels visibility":"تغيير وضوح المستويات {title}","change {title} level {index} line color":"تغيير لون خط مستوى {title} {index}","change {title} level {index} line width":"تغيير عرض خط مستوى {title} {index}","change {title} level {index} line coeff":"تغيير معامل خط مستوى {title} {index}","change {title} all lines color":"تغيير لون كل الخطوط {title}","change {title} background transparency":"تغيير وضوح الخلفية {title}","change {title} coeffs as percents visibility":"تغيير وضوح معامل {title} كنسبة رؤية","Trend line":"خط الاتجاه","Use one color":"استخدم لون واحد",Levels:"مستويات","Coeffs as percents":"مُعامِلات كنسب مئوية","change {title} reverse":"تغيير {title} المعكوس","change {title} prices visibility":"تغيير وضوح أسعار {title}","change {title} labels alignment":"تغيير محاذاة الملصقات {title}","change {title} labels font size":"تغيير حجم خط الملصقات {title}","change {title} style":"تغيير نمط {title}","change {title} fib levels based on log scale":"تغيير مستويات فيبوناتشي {title} على أساس المقياس اللوغاريتمي","Levels line":"خط المستويات","Extend right":"تمديد لليمين","Extend left":"تمديد لليسار","Extend lines right":"تمديد الخطوط يميناً","Extend lines left":"تمديد الخطوط لليسار","Fib levels based on log scale":"مستويات فيبوناتشي استنادا على المقياس اللوغاريتمي",Values:"القِيم",Percents:"نسب مئوية",Top:"الأعلى",Middle:"وسط",Bottom:"الأسفل","change {title} full circles visibility":"تغيير وضوح الدوائر الكاملة {title}","Full circles":"دوائر كاملة","change {title} left labels visibility":"تغيير وضوح الملصقات اليسرى {title}","change {title} right labels visibility":"تغيير وضوح الملصقات اليمنى {title}","change {title} top labels visibility":"تغيير وضوح الملصقات العليا {title}","change {title} bottom labels visibility":"تغيير وضوح الملصقات السفلى {title}","change {title} grid visibility":"تغيير وضوح شبكة {title}","change {title} grid line color":"تغيير وضوح الملصقات العليا {title}","change {title} grid line width":"تغيير لون شبكة الخطوط {title}","change {title} grid line style":"تغيير نمط خط الشبكة {title}","Price levels":"مستويات السعر","Time levels":"مستويات الوقت","Left labels":"العناوين اليسرى","Right labels":"ملصقات على اليمين","Top labels":"عناوين القمة","Bottom labels":"عناوين سفلية","change {title} line color":"تغيير لون الخط {title}","change {title} line width":"تغيير عرض الخط {title}","change {title} line style":"تغيير نمط الخط {title}","change {title} counterclockwise":"تغيير عكس عقارب الساعة {title}",Counterclockwise:"عكس عقارب الساعة","change {title} level {index} line style":"تغيير نمط خط مستوى {title} {index}","change {title} labels visibility":"تغيير وضوح الملصقات {title}","change flag color":"تغيير لون العلم","change {title} fan {index} line visibility":"تغيير وضوح خط المروحة {title} {index}","change {title} fan {index} line color":"تغيير لون خط مروحة {title} {index}","change {title} fan {index} line width":"تغيير عرض خط المروحة {title} {index}","change {title} arcs {index} line visibility":"تغيير وضوح أقواس {title} {index}","change {title} arcs {index} line color":"تغيير لون خط أقواس {title} {index}","change {title} arcs {index} line width":"تغيير عرض خط أقواس {title} {index}","Price/bar ratio":"نسبة السعر/العمود","Ranges and ratio":"نطاقات ونِسب",Fans:"مراوح",Arcs:"أقواس","change {title} fans visibility":"تغيير وضوح المراوح {title}","change {title} fans line color":"تغيير لون خط المراوح {title}",Angles:"زوايا","change {title} extend top":"تغيير التمديد لأعلى {title}","change {title} extend bottom":"تغيير التمديد لأسفل {title}","change {title} extend left":"تغيير التمديد لليسار {title}","Extend top":"تمديد لأعلى","Extend bottom":"تمديد لأسفل",Label:"عنوان","Label background":"خلفية العنوان","change {title} candle up color":"تغيير لون شموع {title} الصاعدة","change {title} candle down color":"تغيير لون شموع {title} الهابطة","change {title} candle border visibility":"تغيير وضوح حدود {title} الصاعدة","change {title} candle border up color":"تغيير لون حدود ‎{title}‎ الصاعدة","change {title} candle border down color":"تغيير لون حدود ‎{title}‎ الهابطة","change {title} candle wick visibility":"تغيير وضوح ظلال شموع {title}","change {title} candle wick color":"تغيير لون ظلال شموع {title}","change {title} transparency":"تغيير وضوح {title}","change {title} average HL value":"تغيير قيمة متوسط أعلى-أدنى {title}","change {title} variance value":"تغيير قيمة التباين {title}","Avg HL in minticks":"متوسط أعلى-أدنى لأقل تيك",Variance:"التباين","#1 (price)_linetool point":"#1 (سعر)","#{count} (price, bar)_linetool point":"#{count}' (سعر، عمود)","change {title} extending left":"تغيير التمديد لليسار {title}","change {title} extending right":"تغيير التمديد لليمين {title}",Channel:"قناة","change {title} extend lines":"تغيير تمديد الخط {title}",Median:"متوسط","Extend lines":"تمديد الخطوط",Original:"أصلي",Schiff:"سكيف","Modified Schiff":"شيف المعدل",Inside:"بالداخل","change {title} source text color":"تغيير لون نص المصدر {title}","change {title} source background color":"تغيير لون خلفية المصدر {title}","change {title} source border color":"تغيير لون حدود المصدر {title}","change {title} target text color":"تغيير لون نص الهدف {title}","change {title} target background color":"تغيير لون خلفية الهدف {title}","change {title} target border color":"تغيير لون إطارات الهدف {title}","change {title} success text color":"تغيير لون نص نجاح {title}","change {title} success background color":"تغيير لون خلفية نجاح {title}","change {title} failure text color":"تغيير لون نص عدم نجاح {title}","change {title} failure background color":"تغيير لون خلفية عدم نجاح {title}","Source text":"نص المصدر","Source background":"خلفية المصدر","Source border":"إطار المصدر","Target text":"نص الهدف","Target background":"خلفية الهدف","Target border":"إطار الهدف","Success text":"نص النجاح","Success background":"خلفية النجاح","Failure text":"نص الإخفاق","Failure background":"خلفية الإخفاق","Label text":"نص الملصق","Line color":"لون الخط","Label border":"حواف الملصق","change {title} background color 1":"تغيير اللون 1 لخلفية {title}","change {title} background color 2":"تغيير اللون 2 لخلفية {title}","change {title} stop color":"تغيير لون الإيقاف {title}","change {title} target color":"تغيير لون الهدف {title}","change {title} compact stats mode":"تغيير الوضع المدمج لإحصائيات {title}","change {title} account size":"تغيير حجم الحساب {title}","change {title} lot size":"تغيير حجم اللوت {title}","change {title} risk":"تغيير مخاطرة {title}","change {title} risk display mode":"تغيير وضع عرض الخاطرة {title}","change {title} entry price":"تغيير سعر الدخول {title}","change {title} profit level":"تغيير مستوى الربح {title}","change {title} profit price":"تغيير سعر ربح {title}","change {title} stop level":"تغيير مستوى الإيقاف {title}","change {title} stop price":"تغيير سعر الإيقاف {title}","Stop color":"لون وقف الخسارة","Target color":"لون الهدف:","Compact stats mode":"احصائيات الوضع المدمج","Entry price":"سعر صفقة التداول","Profit level":"مستوى جني الأرباح","Stop level":"مستوى وقف الخسارة","Account size":"حجم الحساب","Lot size":"‏ حجم العقد",Cash:"السيولة النقدية","change vertical position Y coordinate":"تغيير إحداثيات الوضع الرأسي Y","change {title} emoji visibility":"تغيير وضوح الرموز التعبيرية {title}","change {title} image background color":"تغيير لون خلفية الصورة {title}","change {title} emoji":"تغيير الرمز التعبيري {title}","#1 (vertical position %, bar)_linetool point":"# 1 (الوضع العمودي، عمود)","Emoji pin":"دبوس الرموز التعبيرية","#1 (price, bar)_linetool point":"#1 (سعر، عمود)","#1 (bar)_linetool point":"#1 (عمود)","change decimal places":"تغيير المنازل العشرية","change extended hours color":"تغيير لون الساعات الممددة","change pre market color":"تغيير لون ما قبل الجلسة","change post market color":"تغيير لون ما بعد الجلسة","change price line color":"تغيير لون خطوط السعر","change price line width":"تغيير عرض خط السعر","change previous close price line color":"تغيير لون خط سعر الإغلاق السابق","change previous close price line width":"تغيير عرض خط سعر الإغلاق السابق","change pre/post market price lines visibility":"تغيير وضوح خط أسعار ما قبل/بعد الجلسة","change pre market line color":"تغيير لون خط ما قبل الجلسة","change post market line color":"تغيير لون خط ما بعد الجلسة","change bid line color":"تغيير لون خط سعر البيع","change ask line color":"تغيير لون خط سعر الشراء","Pre/post market hours background":"خلفية ما قبل/بعد الجلسة","Last price line":"خط أخر سعر",Precision:"الدقة","(H + L)/2":"(أعلى سعر + أدنى سعر)/2","(H + L + C)/3":"(أعلى سعر+ أدنى سعر + سعر الإغلاق)/3","(O + H + L + C)/4":"(سعر الفتح + أعلى سعر+ أدنى سعر + سعر الإغلاق)/4",Simple:"بسيط","With markers":"ذو علامات",Step:"خطوة",Default:"افتراضي","change {title} base line visibility":"تغيير وضوح خط القاعدة {title}","change {title} base line color":"تغيير لون خط القاعدة {title}","change {title} base line width":"تغيير عرض خط القاعدة {title}","change {title} base line style":"تغيير نمط خط القاعدة {title}","change {title} up line visibility":"تغيير وضوح الخط العلوي {title}","change {title} up line color":"تغيير لون الخط العلوي {title}","change {title} up line width":"تغيير عرض الخط العلوي {title}","change {title} up line style":"تغيير نمط الخط العلوي {title}","change {title} down line visibility":"تغيير وضوح الخط الأدنى {title}","change {title} down line color":"تغيير لون الخط الأدنى {title}","change {title} down line width":"تغيير عرض الخط الأدنى {title}","change {title} down line style":"تغيير نمط الخط الأدنى {title}","change {title} show pearson's r":"تغيير عرض {title} pearson's r",Base:"نقطة الأساس",Up:"أعلى",Down:"للأسفل","Pearson's R":"معامل بيرسون","#{count} (bar)_linetool point":"#‎{count}‎ (عمود)","change study overlay style":"تغيير نمط تراكب الدراسة","change study overlay min tick":"تغيير تراكب أدنى تيك في الدراسة","Override min tick":"تجاوز الحد الأدنى للتيك",Horizontal:"أفقي",Vertical:"عمودي","Text alignment":"محاذاة النص","Text orientation":"اتجاه النص","change {propertyName} property":"تغيير خاصية {propertyName}",Offset:"اعتماد مقاصة","Main chart symbol_input":"رمز الرسم البياني الرئيسي","Another symbol_input":"رمز آخر",open:"الأفتتاح",high:"أعلى سعر",low:"أقل سعر",close:"سعر الإغلاق",hl2:"أعلى سعر+أقل سعر /2",hlc3:"أعلى سعر+أقل سعر+الإغلاق /3",ohlc4:"أعلى سعر+أقل سعر+الأفتتاح+الإغلاق/4",Outputs:"المخرجات","change thickness":"تغيير السماكة","change color":"تغيير اللون","change opacity":"تغيير درجة الشفافية","change font size":"تغيير حجم الخط","change line style":"تغير نمط الخط","change min tick":"تغيير أدنى تيك","change precision":"تغيير الدقة","Above bar":"أعلى العمود","Below bar":"تحت مستوى العمود","change value":"تغيير القيمة","change char":"تغيير الشار","change location":"تغيير الموقع","change percent width":"تغيير نسبة العرض","change placement":"تغيير الوضع","change values visibility":"تغيير وضوح القيم","Width (% of the box)":"عرض (% من المربع)",Placement:"وضع","Trades on chart":"صفقات على الرسم البياني","Signal labels":"ملصقات الإشارات",Quantity:"الكمية","change plot type":"تغيير نمط الرسم","Labels font":"خط العناوين","change shape":"تغيير الشكل","Volume profile":"بروفايل أحجام التداول","Developing VA":"تطوير منطقة القيمة","Values in status line":"القيم في سطر الحالة","Labels on price scale":"الملصقات على مقياس السعر","Search Country":"بحث الدول",Forecast:"توقعات","Script name":"اسم النص البرمجي","Save New Chart Layout":"حفظ التنسيق الجديد للرسم البياني","Enter a new chart layout name":"ادخل اسم تصميم الرسم البياني الجديد","Copy Chart Layout":"نسخ تصميم الرسم البياني","{title} copy_ex: AAPL chart copy":"نسخة ‎{title}‎","Data error":"مشكلة في البيانات","Study Error":"خطأ في الدراسة","Data is delayed":"البيانات متأخرة","End of day data":"بيانات نهاية اليوم","One update per second":"تحديث واحد لكل ثانية","{symbolName} data is delayed by {time} minutes.":"‎بيانات {symbolName}‎ متأخرة بـ ‎{time}‎ دقيقة","{listedExchange} real-time data is available for free to registered users.":"بيانات ‎{listedExchange}‎ اللحظية متاحة مجانًا للمستخدمين المسجلين.","To get real-time data for {description}, please buy the real-time data package.":"للحصول على البيانات اللحظية لـ ‎{description}‎، يرجى شراء حزمة البيانات اللحظية.","Real-time data for {description} is not supported right now. We may support it in the future.":"البيانات اللحظية لـ ‎{description}‎ غير مدعومة في الوقت الحالي، قد تكون متاحة مستقبلاً.","Data is updated once a day.":"يتم تحديث البيانات مرة واحدة في اليوم.","Data on our Basic plan is updated once per second, even if there are more updates on the market.":"البيانات المقدمة على العضويات المجانية لا يتم تحديثها أكثر من مرة واحدة كل ثانية، حتى لو كانت هناك عدة تحديثات في السوق.","Data is updated once per second, even if there are more updates on the market.":"لا يتم تحديث البيانات أكثر من مرة واحدة في الثانية، حتى لو كانت هناك عدة تحديثات في السوق.","Paid plans feature faster data updates.":"تتمتع العضويات المدفوعة بتحديثات أسرع للبيانات.","This data is real-time, but it’s slightly different to its official counterpart coming from primary exchanges.":"هذه البيانات هي بيانات لحظية، ولكنها تختلف قليلاً عن نظيرتها الرسمية من السوق الرئيسي.","If you'd like {listedExchange} real-time data you'll need to complete an Exchange Agreement. Don't worry, it only takes a few clicks":"إذا كنت ترغب في الحصول على بيانات ‎{listedExchange}‎ اللحظية، فستحتاج إلى ملء اتفاقية البورصة. لا تقلق، لا يتطلب الأمر سوى بضع نقرات.","Create a free account":"أنشئ حساباً مجاناً","Fill out Exchange Agreements":"ملء اتفاقية البورصة","This symbol doesn't exist, please pick another one.":"لا يوجد هذا الرمز. يرجى اختيار رمز آخر.","All's well — Market is open.":"كل شيء على ما يرام - السوق مفتوح.","Morning. Market is open for pre-market trading.":"السوق مفتوح حاليًا للتداول ما قبل الجلسة.","Evening. Market is open for post-market trading.":"السوق مفتوح حاليًا للتداول ما بعد الجلسة.","Time for a walk — this market is closed.":"حان وقت المغادرة - هذا السوق مغلق.","Market is currently on holiday. Lucky them.":"السوق في عطلة حالياً. من حسن حظهم!","less than 1 minute":"أقل من دقيقة واحدة","{days} and {hours}":"{days} و{hours}","{hours} and {minutes}":"{hours} و{minutes}","Market opens in {remainingTime}.":"يفتح السوق في {remainingTime}.","Market closes in {remainingTime}.":"يغلق السوق في {remainingTime}.","It'll go to post-market trading in {remainingTime}.":"ستنتقل إلى التداول فيما بعد الجلسة في {remainingTime}.","It'll open for pre-market trading in {remainingTime}.":"سيتم فتحه للتداول ما قبل الافتتاح في {remainingTime}.","Replay mode":"وضع إعادة التشغيل","You're in Replay mode. You're in Replay mode. You're in Replay mode.":"أنت في وضع إعادة التشغيل. أنت في وضع إعادة التشغيل. أنت في وضع إعادة التشغيل.","Do you really want to delete Study Template '{name}' ?":"هل تريد فعلًا مسح النموذج الدراسي '{name}'؟","Modify Order":"تعديل الأمر","Cancel Order":"إلغاء أمر",Confirmation:"تأكيد","Don't show again":"لا تظهر هذه الرسالة مرة آخرى","send {title} backward":"أرسل {title} للخلف","bring {title} forward":"حرّك {title} للأمام","insert {title} after {target}":"أدخل {title} بعد {target}","insert {title} before {target}":"أدخل {title} قبل {target}","remove drawings group":"تغيير المنازل العشرية","move scale":"حرك المقياس","stop syncing line tool(s)":"وقف أداة (أدوات) مزامنة الخط","zoom out":"تصغير","zoom in":"تكبير","move drawing(s)":"نقل الرسم (الرسومات)","load default drawing template":"تحميل قالب الرسم الافتراضي","clone line tools":"أدوات نسخ الخط","merge to pane":"دمج في جزء","unmerge to new bottom pane":"إلغاء الاندماج في الجزء السفلي الجديد","move {title} to new right scale":"انقل ‎{title}‎ إلى مقياس جديد على اليسار","move {title} to new left scale":"انقل ‎{title}‎ إلى مقياس يسار جديد","make {title} no scale (Full screen)":"اجعل ‎{title}‎ بدون مقياس محدد (ملء الشاشة)","reset time scale":"إعادة تعيين مقياس الزمن","change {pointIndex} point":"تغيير نقطة {pointIndex}","remove all studies":"احذف جميع الدراسات","remove drawings":"حذف الرسومات","remove all studies and drawing tools":"احذف جميع الدراسات وأدوات الرسم","turn line tools sharing off":"وقف تشغيل مشاركة أدوات الخط","share line tools in layout":"مشاركة أدوات الخط في التنسيق","share line tools globally":"مشاركة أدوات الخط بشكل شامل","apply all chart properties":"تطبيق كافة خصائص الرسم البياني","{count} bars":"{count} أعمدة",Jan:"يناير",Feb:"فبراير",Mar:"مارس",Apr:"أبريل",May_short:"مايو",Jun:"يونيو",Jul:"يوليو",Aug:"أغسطس",Sep:"سبتمبر",Oct:"أكتوبر",Nov:"نوفمبر",Dec:"ديسمبر","Fraction part is invalid.":"جزء الكسر غير صحيح","Second fraction part is invalid.":"الجزء الثاني غير صحيح.","create line tools group from selection":"إنشاء مجموعة أدوات الخطوط من الخيارات المتاحة","removing line tools group {name}":"حذف مجموعة أدوات الخطوط ‎{name}‎","add line tool {lineTool} to group {name}":"إضافة أداة الخطوط {lineTool} لمجموعة {name}","make group {group} visible":"اجعل المجموعة ‎{group}‎ مرئية","make group {group} invisible":"اجعل المجموعة ‎{group}‎ غير مرئية","lock group {group}":"غلق المجموعة ‎{group}‎","unlock group {group}":"فتح المجموعة ‎{group}‎","rename group {group} to {newName}":"تغيير اسم المجموعة ‎{group}‎ إلى ‎{newName}‎","change {sourceTitle} title to {newSourceTitle}":"غيّر عنوان {sourceTitle} إلى {newSourceTitle}","insert source(s) after":"أدخل المصدر (المصادر) بعد ذلك","mirror bars pattern":"نسخ أنماط الأعمدة","flip bars pattern":"قلب أنماط الأعمدة","change Elliott degree":"تغيير درجة إليوت",Supermillennium:"موجة الألفية العظمى",Millennium:"ألفية",Submillennium:"موجة الألفية الثانوية","Grand supercycle":"الموجة الدورية العظمى",Supercycle:"الموجة الدورية العليا",Cycle:"دورة",Primary:"أوًلي",Intermediate:"متوسط",Minor_wave:"أصغر",Minute_wave:"دقيقة",Minuette:"موجة إليوت الذرية",Subminuette:"فاصل الدقيقة في موجات اليوت",Micro:"صغيرة",Submicro:"موجة مجهرية فرعية",Minuscule:"حرف صغير","erase level line":"محو خط المستوى","Left Shoulder":"الكتف الأيسر","Right Shoulder":"الكتف الأيمن",Head:"رأس","XABCD Pattern":"XABCD نموذج","ABCD Pattern":"نموذج ABCD",Arc:"قوس","Arrow Mark Down":"علامة السهم تُشير للأسفل","Arrow Mark Left":"علامة السهم تُشير لليسار","Arrow Mark Right":"علامة السهم تُشير لليمين","Arrow Mark Up":"علامة السهم تُشير للأعلى",Balloon:"بالون","Bars Pattern":"نمط الأعمدة","Double Curve":"منحنى مزدوج",Curve:"منحنى",Brush:"فرشاة",Callout:"نص تفسيري","Cyclic Lines":"خطوط دورية","Cypher Pattern":"نمط سيفر","Date and Price Range":"نطاق التاريخ والسعر","Disjoint Channel":"قناة منفصلة","Elliott Correction Wave (ABC)":"موجة إليوت التصحيحية (ABC)","Elliott Double Combo Wave (WXY)":"موجة إليوت الثنائية المركبة (WXY)","Elliott Impulse Wave (12345)":"موجة إليوت الدافعة (12345)","Elliott Triangle Wave (ABCDE)":"موجة إليوت المثلثة (ABCDE)","Elliott Triple Combo Wave (WXYXZ)":"موجة إليوت الثلاثية المركبة (WXYXZ)",Ellipse:"بيضاوي","Extended Line":"خط ممتد","Fib Channel":"قناة فيبوناتشي","Fib Circles":"دوائر فيبوناتشي","Fib Retracement":"تصحيح فيبوناتشي","Fib Speed Resistance Arcs":"أقواس فيبوناتشي المقاومة للسرعة","Fib Speed Resistance Fan":"مروحة فيبوناتشي المقاومة للسرعة","Fib Spiral":"حلزون فيبوناتشي","Fib Time Zone":"منطقة فيبوناتشي الزمنية","Fib Wedge":"وتد فيبوناتشي","Flag Mark":"علامة تمييز","Flat Top/Bottom":"قمة / قاع مسطح","Anchored VWAP":"VWAP مُثبّت","Gann Square Fixed":"مربع جان ثابت","Horizontal Line":"خط أفقي","Horizontal Ray":"شعاع أفقي","Inside Pitchfork":"داخل الرسم البياني بيتش فورك",Note:"ملاحظة","Anchored Note":"ملحوظة مُثبّتة",Signpost:"لافتة",Pitchfan:"بتشفان",Pitchfork:"بيتش فورك",Polyline:"متعدد الخطوط",Path:"مسار","Price Label":"ملصق السعر","Arrow Marker":"علامة السهم","Price Range":"المدى السعري",Projection:"مسقط",Ray:"شعاع",Circle:"دائرة","Regression Trend":"إتجاه الإنحدار","Long Position":"صفقة شراء","Short Position":"صفقة بيع على المكشوف","Fixed Range Volume Profile":"بروفايل حجم التداول بنطاق ثابت","Rotated Rectangle":"مستطيل مائل","Modified Schiff Pitchfork":"شيف بيتش فورك المعدل","Schiff Pitchfork":"سكيف بيتش فورك","Sine Line":"منحنى الجيب",Text_tool:"نص","Anchored Text":"نص مُثبّت","Three Drives Pattern":"نموذج الثلاث موجات","Time Cycles":"الدورات الزمنية","Trend Angle":"زاوية الإتجاه","Trend-Based Fib Extension":"امتداد فيبوناتشي الاتجاهي","Trend-Based Fib Time":"فيبوناتشي الزمني الاتجاهي","Trend Line":"خط الاتجاه","Info Line":"خط المعلومات","Triangle Pattern":"نموذج المثلث","Vertical Line":"خط رأسي","Cross Line":"الخط المتقاطع",Highlighter:"لون مُميِز","Price Note":"بطاقة السعر","Volume Profile Fixed Range":"بروفايل حجم التداول بنطاق ثابت","Ghost Feed":"مسار تخيّلي","{status} P&L: {pnl}":"‎{status}‎ الهدف والخسارة:‎{pnl}‎",Open_line_tool_position:"مفتوح",Closed_line_tool_position:"أغلقت","Risk/Reward Ratio: {ratio}":"نسبة المخاطرة/العائد: {ratio}","Stop: {stopChange} ({stopChangePercent}) {stopChangePip}, Amount: {amount}":"وقف:{stopChange} ({stopChangePercent}) {stopChangePip}، الكمية:‎{amount}‎","Target: {profitChange} ({profitChangePercent}) {profitChangePip}, Amount: {amount}":"هدف:{profitChange} ({profitChangePercent}) {profitChangePip}، الكمية:‎{amount}‎","Qty: {qty}":"كمية:‎{qty}‎",T_interval_short:"T",s_interval_short:"s",R_interval_short:"نطاق",tick_0:"تيك",tick_1:"تيك",tick_2:"تيك",tick_3:"تيك",tick_4:"تيك",tick_5:"تيك",day_0:"يوم",day_1:"يوم",day_2:"يومين",day_3:"أيام",day_4:"يوم",day_5:"يوم",week_0:"أسبوع",week_1:"أسبوع",week_2:"أسبوعين",week_3:"أسابيع",week_4:"أسبوع",week_5:"أسبوع",second_0:"ثانية",second_1:"ثانية",second_2:"ثانيتان",second_3:"ثوان",second_4:"ثانية",second_5:"ثانية",minute_0:"دقيقة",minute_1:"دقيقة",minute_2:"دقيقتين",minute_3:"دقائق",minute_4:"دقيقة",minute_5:"دقيقة",hour_0:"ساعة",hour_1:"ساعة",hour_2:"ساعة",hour_3:"ساعات",hour_4:"ساعة",hour_5:"ساعة","Stack on the left":"انحياز لليسار","Stack on the right":"انحياز لليمين",Auto:"تلقائي",Avg:"متوسط",HL2_in_legend:"HL2",HLC3_in_legend:"HLC3",OHLC4_in_legend:"OHLC4","Symbol Error":"خطأ في الرمز","No volume data":"بيانات الحجم غير موجودة","Fundamental studies are no longer available on charts":"لم تعد الدراسات الأساسية متوفرة على الرسوم البيانية","loading...":"تحميل...","Arrow Down":"سهم لأسفل","Arrow Up":"سهم لأعلى",Diamond:"شكل الماسة (المعين)","Label Down":"إشارة لأسفل","Label Up":"إشارة لأعلى",Square:"مربع","Triangle Down":"مثلث هابط","Triangle Up":"مثلث صاعد","X Cross":"تقاطع",Premarket_sessions:"ما قبل الافتتاح",Postmarket_sessions:"ما بعد الإغلاق","Regular trading hours_sessions":"ساعات التداول العادية","Extended trading hours_sessions":"ساعات التداول المُمددة","Electronic trading hours_sessions":"ساعات التداول الإلكتروني",PRE_sessions:"قبل",POST_sessions:"بعد",RTH_sessions:"RTH",ETH_sessions:"ETH","add line tool(s) to group {group}":"إضافة أداة (أدوات) الخط إلى المجموعة {group}","apply study template {template}":"تطبيق قالب الدراسة {template}","change pane height":"تغيير ارتفاع الجزء","change date range":"تغيير نطاق التاريخ","apply toolbars theme":"تطبيق مظهر أشرطة الأدوات","create line tools group":"أنشئ مجموعة أدوات الخطوط","exclude line tools from group {group}":"استثناء أدوات الخطوط من المجموعة {group}","move all scales to left":"حرك كل المقاييس إلى اليسار","move all scales to right":"حرك كل المقاييس إلى اليمين","remove line data sources":"إزالة مصادر خط البيانات","change chart layout to {title}":"تغيير تنسيق الرسم البياني إلى {title}","stop syncing drawing":"إيقاف مزامنة الرسم","bring {title} to front":"جلب {title} إلى المقدمة","send {title} to back":"أرسل {title} إلى الخلف","insert {title} after {targetTitle}":"أدخل {title} بعد {targetTitle}","insert {title} before {targetTitle}":"أدخل {title} قبل {targetTitle}","send group {title} backward":"أرسل المجموعة {title} إلى الخلف","bring group {title} forward":"جلب المجموعة {title} إلى الأمام","Visible on mouse over":"مرئية عند تمرير الفأرة","Always visible":"ظاهر وموجود دائمًا","Always invisible":"مختفي دائمًا",Notification:"تنبيه","Manage your privacy preferences":"إدارة تفضيلات الخصوصية الخاصة بك","I have read and agreed with the {policiesLinkTag}Terms of Use{linkCloseTag} and {pivacyPolicyLinkTag}Privacy Policy{linkCloseTag}":"قرأت وأوافق على ‎{policiesLinkTag}‎ بدون الاستخدام ‎{linkCloseTag}‎ و ‎{pivacyPolicyLinkTag}‎ سياسة الخصوصية ‎{linkCloseTag}‎","If the auto renewal fails for an annual plan I will automatically be switched to a monthly plan for {cost} per month.":"في حالة فشل التجديد التلقائي لاشتراك عضوية سنوية، سيتم تحويلك تلقائيًا إلى عضوية شهرية مع دفع {cost} شهرياً.","Upper Bound: {alertChannelUpperBoundaryTitle}, Lower Bound: {alertChannelLowerBoundaryTitle}":"الحد العلوي: ‎{alertChannelUpperBoundaryTitle}‎، الحد السفلي‎{alertChannelLowerBoundaryTitle}‎","in {count} bar_0":"في ‎{count}‎ عمود","in {count} bar_1":"في ‎{count}‎ عمود","in {count} bar_2":"في ‎{count}‎ عمود","in {count} bar_3":"في ‎{count}‎ أعمدة","in {count} bar_4":"في ‎{count}‎ عموداً","in {count} bar_5":"في ‎{count}‎ عمود","Do you really want to delete your alert '{alert}'?":'هل تريد حقًا حذف التنبيه "{alert}"؟',"Delete alert":"حذف التنبيه","Alert does not exist.":"التنبيه غير موجود.","Remove all inactive":"حذف كافة التنبيهات غير النشطة","Stop filtered alerts":"وقف التنبيهات المفلترة","Need a quick break from filtered alerts?":"هل تحتاج إلى استراحة سريعة من التنبيهات المفلترة؟","Stop all alerts":"إيقاف كل التنبيهات","Need a quick break from your alerts?":"هل تحتاج إلى استراحة سريعة من تنبيهاتك؟","Restart filtered alerts":"أعد تشغيل التنبيهات المفلترة","Ready to bring filtered alerts back to life?":"هل أنت جاهز لإعادة تفعيل التنبيهات التي تمت فلترتها؟","Restart all inactive alerts":"إعادة تشغيل كل التنبيهات غير النشطة","Ready to bring your alerts back to life?":"هل أنت جاهز لإعادة تنشيط تنبيهاتك؟","Delete filtered alerts":"حذف التنبيهات المفلترة","Do you really want to delete filtered alerts?":"هل ترغب حقًا في حذف التنبيهات المُفلترة؟","Delete all alerts":"احذف جميع التنبيهات","Ready to delete your alerts and start over?":"هل أنت جاهز لحذف تنبيهاتك والبدء من جديد؟","Delete inactive alerts":"حذف التنبيهات غير النشطة","Let’s delete your inactive alerts and make new ones?":"دعنا نحذف تنبيهاتك غير النشطة وننشئ تنبيهات جديدة؟","{alertSeries} {alertCondition} {alertConditionOptions} on {chartSeries}":"‎{alertSeries}‎‎{alertCondition}‎‎{alertConditionOptions}‎ على‎{chartSeries} ‎","{strategyName}: order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}}":"{strategyName}: تم تنفيذ الأمر {{strategy.order.action}} @ {{strategy.order.contracts}} على {{ticker}}. المركز الجديدة للإستراتيجية هو {{strategy.position_size}}","{title}: Any alert() function call":"{title}: أي استدعاء للدالة alert()","{title}: alert() function calls only":"{title}: استدعاءات دالة alert() فقط","Nothing selected_combobox_input":"لم يتم إخيار شيء","All items_combobox_input":"جميع المواد","Specified date is not within the allowed range":"التاريخ المحدد ليس ضمن النطاق المسموح به","Please enter a valid number":"الرجاء إدخال الرقم الصحيح","Please enter only digits":"الرجاء إدخال أرقام فقط","Please enter a valid email address":"الرجاء إدخال بريد إلكتروني صحيح","Please match the requested format":"يرجى تطابق الشكل المطلوب","Please enter at least {number} characters":"الرجاء إدخال ‎{number}‎ حرف على الأقل","Please enter no more than {number} characters":"الرجاء عدم أدخال أكثر من ‎{number}‎ حرف","Please enter a value greater than or equal to {number}":"الرجاء إدخال قيمة أكبر من أو تساوي ‎{number}‎","Please enter a value less than or equal to {number}":"الرجاء إدخال قيمة أقل من أو تساوي‎ {number} ‎","Max file size is {size}":"اقصى حجم للملف هو {size}","Allowed extension is {extensions}":"التمديد المسموح به هو ‎{extensions}‎",Bytes:"بايت",KB:"كيلوبايت",MB:"ميجابايت",GB:"بريطانيا العظمى",TB:"تيرابايت","0 Byte":"0 بايت","Pay with":"ادفع بواسطة","One Click":"ضغطة واحدة","New Card":"بطاقة ائتمان جديدة",Card:"بطاقة ائتمان","Crypto by Coinbase":"العملات الرقمية بواسطة Coinbase","You will be automatically redirected to PayPal in order to finish your purchase.":"سيتم تحويلك تلقائيات إلى باي بال لأنهاء إجراءات الشراء والدفع","After the payment is sent, you will be automatically redirected back to TradingView.":"بعد إرسال المبلغ المدفوع، سيتم توجيهك تلقائيا إلى موقع TradingView","It is an important step, please don't interrupt it.":"إنها خطوة مهمة، يرجى عدم إيقافها.","Coinbase payment method is not available for special offers. If you want to continue {linkStart}click here{linkEnd}":"طريقة الدفع Coinbase غير متاجة للعروض الخاصة، إذا اردت الاستمرار ‎{linkStart}‎اضغط هنا‎{linkEnd}‎","You will be automatically redirected to Coinbase in order to finish your purchase.":"سيتم إعادة توجيهك تلقائيًا إلى Coinbase من أجل إنهاء عملية الشراء الخاصة بك.","I have read and agreed with the {link_start}ICE Subscriber Agreement{link_end}":"لقد قرأت ووافقت على {link_start}اتفاقية اشتراك ICE {link_end}","I'm a non-professional trader":"أنا لست متاجر/محلل مهني","Non-professional trader means any natural person who receives market data solely for his/her personal, non-business use and cannot be a corporation, trust, organization, institution or partnership account.":"المتاجر/المحلل غير المهني يعني أن تكون شخص عادي يتلقى بيانات السوق فقط لاستخدامه الشخصي وغير التجاري ولا يمكن أن يمثل شركة أو مؤسسة أو منظمة أو حساب شراكة.","I have read and agreed to the {linkTermsStart}Terms of Use{linkEnd} and {linkPolicyStart}Privacy Policy{linkEnd}":"قرأت وأوافق على ‎{linkTermsStart}‎بنود الإستخدام‎{linkEnd}‎ و ‎{linkPolicyStart}‎سياسة الخصوصية‎{linkEnd}‎","Billing address":"عنوان الفواتير","JCB must have 3 symbols in CVV/CSC code":"يجب أن يحتوي JCB على 3 رموز في كود CVV/CSC","AMEX must have 4 symbols in CVV/CSC code":"يجب أن يكون هناك 4 رموز في كود قيمة التحقق من البطاقة CVV/CSC","VISA and Mastercard must have 3 symbols in CVV/CSC code":"بطاقات فيزا وماستركارد لابد أن تحتوي على 3 رموز في كود CVV/CSC","You need to accept our Terms of Use and Privacy Policy to continue":"يجب عليك قبول شروط الاستخدام وسياسة الخصوصية للاستمرار","Buy an annual plan before your trial expires and get up to {discount}% off":"قم بشراء عضوية سنوية قبل انتهاء فترتك التجريبية، واحصل على خصم ‎{discount}‎%","FULL NAME is incomplete":"الاسم الكامل غير مكتمل","Must contain only ASCII characters":"يجب أن يحتوي على حروف أسكي ASCII فقط","First name must be no longer than 30 characters.":"يجب ألا يزيد الاسم الأول عن 30 حرفًا مع المسافات.","Last name must be no longer than 30 characters.":"يجب ألا يزيد الاسم العائلي عن 30 حرفًا مع المسافات.","Upgrade for $1":"ترقية الاشتراك مقابل 1 دولار","Now you have even more tools and features to make your trading successful.":"لديك الآن المزيد من الأدوات والميزات لإنجاح تداولك.","Your trial was successfully downgraded. You can always upgrade again to a more powerful plan before it runs out.":"تم تخفيض الفترة التجريبية إلى مستوى أقل بنجاح. يمكنك دائمًا الترقية إلى عضوية أعلى قبل نهايتها.","The amount charged at the end of the trial (if you don’t cancel) also reflects the new plan.":"المبلغ الذي يتم تحصيله في نهاية الفترة التجريبية (إذا لم تقم بالإلغاء) يكون بناءً على العضوية المختارة للاشتراك.","Congrats! Your new trial is setup":"تهانينا! تم إعداد فترتك التجريبية الجديدة","{proPlanName} Trial":"تجربة {proPlanName}","Decline offer":"رفض العرض","Explore special offers":"اكتشف العروض الخاصة","Get up to {discount}% off a new plan if you decide to renew with us before your current one ends.":"احصل على خصم يصل إلى ‎{discount}‎٪ على عضوية جديدة إذا قررت التجديد معنا قبل انتهاء عضويتك الحالية.","Time's running out!":"الوقت ينفذ!","Your subscription expires soon – claim your special offer and save up to {discount}% before it's too late.":"سينتهي اشتراكك قريبًا - طالب بعرضك الخاص ووفر ما يصل إلى {discount}٪ قبل فوات الأوان.","The countdown has started.":"بدأ العد التنازلي.","Your subscription isn't set to auto-renew, so you'll lose your benefits very soon... This is your last chance to claim up to {discount}% discount.":"لم يتم تعيين اشتراكك على التجديد التلقائي، لذلك ستفقد العديد من المزايا قريبًا جدًا ... هذه هي فرصتك الأخيرة للمطالبة بخصم يصل إلى {discount}٪.","One month of upgraded features for one dollar.":"شهر واحد من الميزات المتقدمة مقابل 1 دولار","Company (optional)":"الشركة (اختياري)","This field only supports letters":"هذا الحقل يدعم الحروف فقط","This field only supports English characters":"هذا الحقل يدعم اللغة الإنجليزية فقط","First name mustn't be longer than 30 characters":"يجب ألا يزيد اسمك الشخصي عن 30 حرفًا","Last name mustn't be longer than 30 characters":"يجب ألا يزيد اسمك العائلي عن 30 حرفًا","Your cardholder name seems incomplete":"يبدو أن اسم صاحب بطاقتك غير مكتمل","Your name seems incomplete":"يبدو أن اسمك غير مكتمل","Postal codes must start with a letter or a number, and can only contain letters, numbers, spaces, and hyphens.":"يجب أن تبدأ الرموز البريدية بحرف أو رقم، ويمكن أن تحتوي فقط على أحرف وأرقام ومسافات وواصلات.","Postal codes must contain no more than nine letters or numbers":"يجب ألا تحتوي الرموز البريدية على أكثر من تسعة أحرف أو أرقام","Real-time markets":"بيانات السوق اللحظية","Next payment on {next_payment_date}":"الدفعة التالية في {next_payment_date}","{plan_name} plan at regular price":"عضوية {plan_name} بالسعر العادي","Want six months free?":"هل تريد الحصول على 6 أشهر مجانًا؟","Simple: pay for half a year, get the other half at no cost.":"الأمر بسيط: ادفع لمدة نصف عام، واحصل على النصف الآخر مجانًا.","You've upgraded your subscription. Please reload the chart to fire up the new changes.":"لقد قمت بترقية اشتراكك. يرجى إعادة تحميل الرسم البياني لتفعيل التغييرات الجديدة.","Subscription details are no longer valid":"تفاصيل الاشتراك لم تعد صالحة","You were inactive for a long period of time. Please refresh the page to see your subscription status.":"كنت غير نشط لفترة طويلة منذ الزمن. يرجى تحديث الصفحة للاطلاع على حالة اشتراكك.","You have {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in your free trial. These days will be added to your new subscription. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.":"لديك ‎{boldHighlightStart}‎ ‎{daysLeft}‎ يوم متبقى ‎{boldHighlightEnd}‎ في فترتك التجريبية. وهذه الأيام سيتم إضافتها إلى أشتراكك. عضويك ‎{proPlan}‎ سيكون بها ‎{boldHighlightStart}‎ ‎{amountOfDaysForBillingCycle}‎ يوم ‎{boldHighlightEnd}‎ بعد شراء العضوية","Your account has {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in the current {currentProPlan} plan. We'll convert this remaining time into an equivalent value of days on your new plan. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.":"لم يتبقى في اشتراكك في العضوية الحالية ‎{currentProPlan}‎ سوى ‎{boldHighlightStart} ‎{daysLeft}‎يوم فقط‎{boldHighlightEnd}‎. سيتم تحويل هذه الأيام إلى قيمة مساوية للأيام على العضوية الجديدة، عضوية ‎{proPlan}‎ ستحصل فيها على ‎{boldHighlightStart}‎ ‎{amountOfDaysForBillingCycle}‎يوماً‎{boldHighlightEnd}‎ بعد شراء العضوية.",Once:"مرة واحدة","5 seconds":"5 ثوان","10 seconds":"10 ثواني","30 seconds":"30 ثانية",Minute:"دقيقة","Click here to learn more about webhooks":"انقر هنا لمعرفة المزيد عن خدمة webhooks","Click here to learn more about placeholders":"انقر هنا لمعرفة المزيد عن العناصر النائبة","Click here to learn more about alerts on strategy":"انقر هنا لمعرفة المزيد عن التنبيهات على الاستراتيجيات","Click here to learn more about alert function usage":"انقر هنا لمعرفة المزيد عن استعمالات دالة التنبيهات.","Push notifications":"إخطارات Push","Notify on app":"تنبيه على التطبيق","More actions":"المزيد من الإجراءات","Fewer actions":"إجراءات أقل","Show desktop pop-up":"إظهار نافذة منبثقة على الحاسوب","Show pop-up":"إظهار نافذة منبثقة","Send email":"إرسال بريد الكتروني","Webhook URL":"رابط Webhook","Play sound on desktop":"تشغيل الصوت على الحاسوب","Play sound":"تشغيل الصوت","Send email-to-SMS":"إرسال بريد الكتروني - رسائل قصيرة","Expiration time":"تاريخ انتهاء الصلاحية","Open-ended_alert_expiration":"مفتوحة","Alert actions":"إجراءات التنبيه","Alert name":"اسم التنبيه","You can use special placeholders such as {listOfPlaceholders}, etc.":"يمكنك استخدام العناصر النائبة الخاصة مثل ‎{listOfPlaceholders}‎، إلخ.","Set email":"تعيين البريد الإلكتروني","Please, enter your email":"يرجى إدخال البريد الإلكتروني الخاص بك","Enter a valid email address":"ادخل بريد إلكتروني سليم",Condition:"الحالة",in:"في",bars:"أعمدة","Unable to create dialog. Please contact support":"تعذر إنشاء مربع حوار. يرجى الاتصال بالدعم","Install TradingView Mobile App":"حمل تطبيق TradingView للجوال","To get notified about an alert on your phone you need to do the following:":"لتتمكن من استقبال اشعارات التنبيهات على هاتفك، يتعين عليك إجراء ما يلي:","Download the latest TradingView app from {app_store_link}AppStore{link_end} or {google_play_link}Google Play{link_end}":"حمل الإصدار الأخير من تطبيق TradingView من خلال ‎{app_store_link}‎ متجر التطبيقات ‎{link_end}‎ أو ‎{google_play_link}‎ Google Play ‎{link_end}‎","Login into your TradingView account on the app":"تسجيل الدخول إلى حساب TradingView الخاص بك على التطبيق","Allow the TradingView app to send push notifications. For iOS devices: go to Settings -> Notifications -> Select TradingView app -> Turn on Allow Notifications. For Android devices: open TradingView app settings and enable push notifications":"اسمح لتطبيق TradingView بإرسال التنبيهات. لاجهزة iOS: اذهب إلى الإعدادات -> تبيهات -> اختار تطبيق TradingView ، ثم قم بتشغيل التنبيهات. للأندرويد : قم بفتح إعدادات تطبيق TradingView وقم بتفعيل التنبيهات push notifications","Do not show this message again":"لا تظهر هذه الرسالة مرة آخرى","Spread alerts may trigger differently from what you expect":"قد يتم تشغيل تنبيهات فرق الأسعار بشكل مختلف عما تتوقعه","Alert may trigger differently from what you expect":"قد يتم تشغيل التنبيهات بشكل مختلف عما تتوقعه","CRYPTOCAP alerts may trigger differently from what you expect":"قد يتم تشغيل تنبيهات CRYPTOCAP بشكل مختلف عما تتوقعه","This is because the tick data of price movements within a bar are not included in historical bars. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info.":"وهذا بسبب عدم تضمين بيانات التيك الخاصة بحركات الأسعار داخل الأعمدة في البيانات التاريخية. اطلع على {solutionLinkStart}مركز المساعدة{linkEnd} لمزيد من المعلومات.","This is because it’s based on an indicator or strategy that can get repainted. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info.":"هذا لأنه يعتمد على مؤشر أو استراتيجية يمكن أن يختلف أداءها الحالي عن التاريخي. اطلع على {solutionLinkStart}مركز المساعدة{linkEnd} لمزيد من المعلومات.","This is because the calculation for these symbols may return different results when using historical and real-time data. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info.":"وذلك لأن حساب هذه الرموز قد يؤدي إلى نتائج مختلفة عند استخدام البيانات التاريخية واللحظية. اطلع على {solutionLinkStart}مركز المساعدة{linkEnd} لمزيد من المعلومات.","This is because, at the moment, calculations are based on a linear scale, not a logarithmic one.":"وهذا لأن الحساب يعتمد حالياً على مقياس خطي، وليس مقياساً لوغاريتمياً.",Okay:"حسناً","Not applicable":"لا يمكن تطبيقه","Type the interval number for minute charts (i.e. 5 if it is going to be a five minute chart). Or number plus letter for H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)":"اكتب رقم الفاصل الزمني للرسم البياني لدقيقة (مثلا أكتب رقم 5 إذا كان الرسم البياني لخمس دقائق). أو أكتب رقم وإضافة حرف بعد ك حرف الـ H (للساعة)، و حرف الـ D (لليوم)، و حرف الـW (للأسبوع)، و حرف الـ M (للشهر) مثلاً (D أو 2H).","Type the interval number for minute charts (i.e. 5 if it's going to be a five minute chart). Or number plus letter for other intervals: S for 1 second chart (15S for 15 second chart, etc.), H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)":'اكتب رقم الإطار الزمني للرسوم البيانية بالدقائق (مثلاً: 5 إذا كان إطار الرسم البياني هو 5 دقائق). أو رقم مع حروف للأطر الزمنية الأخرى: حرف "ث" للرسم البياني بإطار 1 ثانية (15 "ث" للرسم البياني 15 ثانية، إلخ)، و"س" (ساعة)، و"ي" (يوم)، و"أ" (أسبوعي)، و"ش" (شهر) (مثلاً: "ي" أو "2س")',"Sorry, your subscription can’t currently be extended, downgraded or upgraded because your payment method doesn’t support recurring payments. Please head to profile settings to update your payment method, then try again.":"عذرًا، لا يمكن حاليًا تمديد اشتراكك أو الرجوع إلى إصدار سابق لأن طريقة الدفع الخاصة بك لا تدعم المدفوعات المتكررة. يرجى التوجه إلى إعدادات الملف الشخصي لتحديث طريقة الدفع الخاصة بك، ثم حاول مرة أخرى.","Upgrade to {proPlan}":"قم بترقية عضويتك إلى ‎{proPlan}‎",Reactivate:"إعادة التفعيل",Switch:"تبديل","Until {date}":"حتى ‎{date}‎","Starting from {date}":"ابتداء من ‎{date}‎","I authorize TradingView to charge me automatically every year until I cancel my subscription.":"أقدم ترخيص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل عام حتى ألغي اشتراكي.","I authorize TradingView to charge me automatically every month until I cancel my subscription.":"أقدم ترخيص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل شهر حتى ألغي اشتراكي.","I acknowledge that refunds are NOT available for monthly payments.":"أُدرك أن استرداد الأموال غير متاح على الدفعات الشهرية.","{daysCount} day_0":"‎{daysCount}‎ يوم","{daysCount} day_1":"‎{daysCount}‎ يوم","{daysCount} day_2":"‎{daysCount}‎ يوم","{daysCount} day_3":"‎{daysCount}‎ أيام","{daysCount} day_4":"‎{daysCount}‎ يوماً","{daysCount} day_5":"{daysCount}‎ يوماً","Recurring payment issue":"مشكلة الدفع المتكررة","Payable on {billing_date}":"موعد الدفعة في {billing_date}","You won't be billed today":"ليس هناك مدفوعات أو فواتير اليوم","We'll just update the number of days left on your new subscription.":"سنقوم بتحديث عدد الأيام المتبقية على اشتراكك الجديد فقط.","Your subscription will change on the next billing cycle":"ستتغير باقة اشتراكك خلال عملية الفوترة التالية","We'll switch you onto your new plan after your current one finishes":"سنُحولك إلى باقة الاشتراك الجديدة بعد انتهاء صلاحية الباقة الحالية","We'll convert this remaining time into an equivalent value of days on your new plan.":"سنقوم بتحويل هذا الوقت المتبقي إلى قيمة مكافئة للأيام في عضويتك الجديدة.","Your subscription will not auto renew":"اشتراكك لن يتم تجديده تلقائيًا.","You will have access until {date}.":"سيكون لديك إمكانية الوصول حتى ‎{date}‎.","Your {currentDays} {currentProPlan} convert to {nextDays} of {nextProPlan}":"ستتحول الأيام {currentDays} {currentProPlan} إلى {nextDays} من {nextProPlan}","Your {currentProPlan} extend for a {billingCycle}":"تم تمديد {currentProPlan} لـ {billingCycle}","Payable today":"امكانية الدفع اليوم","{plan} plan ({billingCycle}), payment method - {paymentMethodHint}{point}":"عضوية {plan} ({billingCycle})، طريقة الدفع - {paymentMethodHint}{point}","Upgrade subscription to the next level":"قم بترقية اشتراك إلى المستوى التالي","Reactivate subscription":"إعادة تفعيل الاشتراك","Downgrade subscription":"تخفيض مستوى العضوية","Extend current subscription":"تمديد الاشتراك الحالي","Switch subscription's billing cycle":"تبديل دورة فوترة الاشتراك","Confirm your email":"تأكيد بريدك الإلكتروني","Check {changed_email} to confirm your email address. You won't get any notifications until you confirm it.":"برجاء التحقق من ‎{changed_email}‎ لتأكيد بريدك الإلكتروني، لن تتمكن من استلام أي تنبيهات حتى تأكيده","Feature request":"طلب الخصائص","Need a discount?":"هل تريد الحصول على خصم؟","You have access to a new member special offer: buy any annual plan right now and get up to {discount}% off. Plus, keep all of your unused trial days.":"يمكنك الاستفادة من عرض خاص بالأعضاء الجدد: اشترِ أي عضوية سنوية الآن واحصل على خصم يصل إلى ‎{discount}‎٪. بالإضافة إلى ذلك، احتفظ بجميع أيامك من الفترة التجريبية غير المستخدمة.","This is one of our best deals and we hope you take advantage of it.":"هذا أحد أفضل عروضنا ونأمل أن تستفيد منها.","Explore deals":"اكتشف العروض","Tools that help you succeed":"الأدوات التي ستساعدك على النجاح","Make sure to try every Premium tool including:":"لا تنس تجربة كل أداة في Premium بما في ذلك:","Real-time alerts":"التنبيهات الفورية","Multiple chart layouts":"تنسيقات رسوم بيانية متعددة","And much more…":"والمزيد...","Don't forget, if you buy an annual plan today you're eligible for up to {discount}% off.":"لا تنس أنه إذا اشتريت عضوية سنوية اليوم، فأنت مؤهل للحصول على خصم يصل إلى {discount}٪.","You still have time":"لا تزال تملك الوقت لذلك","Buy an annual plan today and get up to {discount}% off Pro, Pro+, and Premium.":"اشترِ عضوية سنوية اليوم واحصل على خصم يصل إلى ‎{discount}‎٪ على العضويات Pro وPro+ وPremium.","Let's do this":"هيا بنا نقم بذلك","The countdown begins":"العد التنازلى قد بدأ","If you don't act soon, you'll miss out on our exclusive Early Bird deal. We know how important it is to have a platform you can trust, at the best cost and with the most tools — so explore our discounts now before time's up. Once they're gone, they're gone.":"إذا لم تسارع للاستفادة من هذا العرض، فسيفوتك أحد أفضل عروضنا الحصرية. نحن نعلم مدى أهمية امتلاك منصة موثوقة، وبأفضل تكلفة والتي تحتوي على أفضل الأدوات — لذا استكشف عروض الخصم الآن قبل انتهاء فترة العرض. لا يمكنك الاستفادة من هذه العروض إذا انتهت مدتهم.","Get {discount}% off now":"احصل على خصم ‎{discount}‎% الآن","Your trial ends today. It's also your last chance to {link_start}claim up to {discount}% off{link_end} an annual plan. Want this? Just click the button below. Don't want to continue with us? Please go to your billing settings and cancel your trial, otherwise you'll be charged our full normal price.":"تنتهي فترتك التجريبية اليوم. إنها أيضًا فرصتك الأخيرة للحصول على خصم يصل إلى {link_end}‎{discount}‎٪{link_start} على العضوية السنوية. إذا كنت تريد هذا انقر على الزر أدناه فقط. أما إذا كنت لا تريد ذلك فالرجاء الانتقال إلى إعدادات الفوترة وإلغاء الفترة التجريبية، وإلا فسيتم تطبيق السعر العادي.","Today's the day":"اليوم هو فرصتك","Claim offer":"احصل على الخصم","Your card will be charged {cost} on {billing_date}.":"سيتم اقتطاع ‎{cost}‎ من بطاقتك في {billing_date}.","The bank will hold {cost} today to verify the card.":"سيحتفظ البنك بمبلغ ‎{cost}‎ اليوم للتحقق من البطاقة.","You can cancel auto-renewal":"يمكنك إلغاء التجديد التلقائي","You can cancel your trial & auto-renewal BEFORE {billing_date} and you will not be charged at all.":"يمكنك إلغاء الفترة التجريبية والتجديد التلقائي قبل {billing_date} ولن تكون مطالباً بالدفع.","Free trial":"فترة تجريبية مجانية","1 year":"سنة واحدة","3 months":"3 أشهر","Free trial ({days} day)_free_trial_0":"فترة تجريبية مجانية (‎{days}‎ يوم)","Free trial ({days} day)_free_trial_1":"فترة تجريبية مجانية (‎{days}‎ يوم)","Free trial ({days} day)_free_trial_2":"فترة تجريبية مجانية (‎{days}‎ يوم)","Free trial ({days} day)_free_trial_3":"فترة تجريبية مجانية (‎{days}‎ يوم)","Free trial ({days} day)_free_trial_4":"فترة تجريبية مجانية (‎{days}‎ يوماً)","Free trial ({days} day)_free_trial_5":"فترة تجريبية مجانية (‎{days}‎ يوماً)","Start free {days}-day {trial_plan_name}_free_trial_0":"جرب مجانًا {days}-يوم من {trial_plan_name}","Start free {days}-day {trial_plan_name}_free_trial_1":"جرب مجانًا {days}-يوم من {trial_plan_name}","Start free {days}-day {trial_plan_name}_free_trial_2":"جرب مجانًا {days}-يوم من {trial_plan_name}","Start free {days}-day {trial_plan_name}_free_trial_3":"جرب مجانًا {days}-أيام من {trial_plan_name}","Start free {days}-day {trial_plan_name}_free_trial_4":"جرب مجانًا {days}-يوماً من {trial_plan_name}","Start free {days}-day {trial_plan_name}_free_trial_5":"جرب مجانًا {days}-يوماً من {trial_plan_name}","Start {days}-day free trial_free_trial_0":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ يوم","Start {days}-day free trial_free_trial_1":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ يوم","Start {days}-day free trial_free_trial_2":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ يوم","Start {days}-day free trial_free_trial_3":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ أيام","Start {days}-day free trial_free_trial_4":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ يوماً","Start {days}-day free trial_free_trial_5":"ابدأ الفترة التجريبية المجانية لمدة ‎{days}‎ يوماً","We'll automatically redirect you to the chart in just a few seconds":"سنعيد توجيهك تلقائيًا إلى الرسم البياني في غضون ثوانٍ قليلة","Success!":"لقد نجحت العملية!","Skip trial and pay now":"تخطي الفترة التجريبية واشترك الآن","Stay on top of market moves! Alerts are immediate notifications when markets meet your custom criteria. Pick from visual popups, audio signals & email alerts.":"ابق على إطلاع دائم بكل ما يحدث في السوق! التبيهات هي إخطارات فورية تصل إليك عندما تصل تحركات الأسواق إلى الهدف الذي تنتظره. اختر من النوافذ المنبثقة، والإشارات الصوتية وتنبيهات البريد الإلكتروني.","Create your own indicators and strategies! Pine Script™ is a flexible and efficient language for doing just that.":"قم بإنشاء المؤشرات والإستراتيجيات الخاصة بك! لغة النصوص البرمجية باين هي لغة مرنة وكفء لعمل ذلك بسهولة.","Save the analysis you do! Your custom settings, indicator setups and so on are saved onsite as individual charts for later access from anywhere.":"احفظ التحليل الذي تعده! ستُحفظ إعدادتك المخصصة وتنسيقات المؤشر وما إلى ذلك داخل الموقع على هيئة رسوم بيانية فردية لتستطيع الوصول إليها في وقت لاحق من أي مكان.","Customize how you look at the markets! View charts in custom timeframes, such as 7 minutes, 12 minutes, or even 8 hours per bar.":"عدل نظرتك للأسواق! قم بعرض الرسوم البيانية في إطارات زمنية مخصّصة مثل 7 دقائق و12 دقيقة أو حتى 8 ساعات لكل شمعة.","Get a new look at the markets with advanced chart types! Use Kagi and Renko charts with intraday resolutions for a complete picture.":"استعرض الأسواق مجددا مع أنواع الرسوم البيانية المتطورة.استخدم الرسوم اليابانية مثل رسوم كاجى ورينكو البيانية إلى جانب القرارات اللحظية للحصول على الصورة الكاملة.","Stay on top of market moves. Set alerts and place orders in one click!":"الإطلاع على تحركات السوق. ضع تنبيهات وضع الأوامر بنقرة واضحة.","Maximum number of indicators on TradingView widget is 3.":"أقصى عدد مؤشرات على أداة TradingView هو 3 مؤشرات","This feature is available only on TradingView":"هذه الميزة متاجة فقط من خلال TradingView","You can become PRO to use this and many other features with the full version of {link_start}TradingView{link_end}.":"يمكنك أن تصبح عضو في باقة PRO لتستمتع بمميزات أخرى مع إصدار كامل من ‎{link_start}‎TradingView‎{link_end}‎","Let’s go!":"هيا ننطلق","If you switch trials to a different plan, the amount charged at the end of the trial (if you don't cancel) will change according to the new plan.":"إذا قمت بتبديل الفترة التجريبية إلى خطة مختلفة ، فإن المبلغ الذي تم تحصيله في نهاية الفترة التجريبية (إذا لم تقم بالإلغاء) سيتغير وفقًا للخطة الجديدة.","Renko, Kagi, Line Break and Point & Figure charts are powerful tools because they reduce random noise and help you see trends clearer. Get intraday intervals on these charts only on our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans.":"تعد الرسوم البيانية من نوع Renko وKagi وLine Break وPoint & Figure أدوات قوية لأنها تقلل من الحركات العشوائية للأسعار وتساعدك على رؤية الاتجاهات بشكل أوضح. احصل على فترات زمنية للأطر الصغرى خلال اليوم على هذه الرسوم البيانية على العضويات {bold_start}Pro+{bold_end} و{bold_start}Premium{bold_end}.","Find a better perspective with intraday spreads. From price inversions to currency conversions and more, see the markets in a whole new light using our intraday charts based on custom formulas (spreads), only on our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans. You'll now be switched to a Daily interval.":"ابحث عن منظور أفضل مع فروق الأسعار خلال اليوم. من تحويلات الأسعار وصولاً إلى تحويلات العملات والمزيد من الميزات، شاهد الأسواق من زوايا جديدة تمامًا باستخدام رسومنا البيانية اليومية القائمة على صيغ مخصصة (فروق الأسعار)، والمتاحة فقط على العضويتين {bold_start}Pro+{bold_end} و{bold_start}Premium{bold_end}. سيتم تحويلك الآن إلى الإطار الزمني اليومي.","Sort your symbols better with more watchlists":"قم بتنظيم وترتيب رموزك المالية بشكل أفضل من خلال عمل المزيد من قوائم المراقبة","Monitor even more watchlists, plus import/export functionality with one of our upgraded plans — perfect for those who like to keep their opportunities organized.":"راقب المزيد من قوائم المراقبة ، بالإضافة إلى وظائف الاستيراد / التصدير مع إحدى باقات عضوياتنا المميزة- وهي مثالية لأولئك الذين يرغبون في الحفاظ على فرصهم منظمة.","Filter out the noise with Japanese charts":"تصفية عشوائية تحركات الأسعار مع الرسوم البيانية اليابانية","Find a better perspective with intraday spreads":"ابحث عن منظور أفضل مع فروق الأسعار اللحظية","See what others don't with custom intervals":"شاهد ما لا يراه الآخرون، من خلال الإطارات الزمنية المخصصة","If you're doing analysis the same way as everyone else, how will you find your edge? With custom intervals spot the patterns most traders don't see — available only on our upgraded plans.":"إذا كنت تقوم بالتحليل بنفس الطريقة التي يتبعها أي شخص آخر، فكيف ستكون وجهة نظرك الخاصة؟ مع تحديد الفواصل الزمنية المخصصة للأنماط التي لا يراها معظم المتداولين - متوفرة فقط على عضوياتنا المدفوعة المميزة","Trade fast and with utmost granularity using Seconds intervals, only available on our {plan} plan. For advanced traders looking to find their edge.":"تداول بسرعة وبدقة فائقة باستخدام فواصل ثانية ، وهي متاحة فقط في عضويات {plan} الخاصة بنا. للمتداولين المتقدمين الذين يتطلعون إلى إيجاد ميزتهم.","See the markets second by second":"تابع تحركات السوق، ثانية بثانية","You're going to need a bigger monitor":"ستحتاج إلى شاشة أكبر","Multicolor flagged symbols":"رموز ذات علامات متعددة الألوان","Flag marks are useful for noting points of significance on your watchlists, screeners and charts. Customize your planning with multicolored flags, only on our upgraded plans.":"تعتبر معلمات الأعلام مفيدة لتدوين نقاط ذات أهمية في قوائم المراقبة الخاصة بك ، والفراتر والرسوم البيانية. قم بتخصيص التنسيق الخاص بك مع الأعلام متعددة الألوان، فقط على عضوياتنا المميزة.","Get more precise entries and exits":"احصل على مداخل ومخارج أكثر دقة","Upgrade to our Premium plan for access to the Bar Magnifier. It uses more details on intrabar movement to provide entry and exit levels that better reflect actual market movements.":"قم بالترقية إلى عضويتنا المميزة للوصول إلى Bar Magnifier. يستخدم مزيدًا من التفاصيل حول حركة intrabar لتوفير مستويات الدخول والخروج التي تعكس بشكل أفضل تحركات السوق الفعلية.","Save your indicators with more templates":"احفظ مؤشراتك بالعديد من القوالب","Flip between unlimited customized sets of saved indicators without having to individually toggle them on and off each time, only available on upgraded plans.":"يمكنك التنقل بين مجموعات غير محدودة من المؤشرات المحفوظة المخصصة دون الحاجة إلى تبديلها وإيقافها بشكل فردي في كل مرة ، وهي متوفرة فقط في باقات العضوية المدفوعة والمميزة","Never miss a trade with our server-side alerts":"لا تفوت صفقة، مع تنبيهات المحفوظة على خوادمنا الخاصة","Oops... too many alerts":"المعذرة، هنالك الكثير من التنبيهات","Never miss a price movement":"لا تفوت أي حركة في السوق","Get personalized alerts":"احصل على تنبيهات مخصصة","Screener alerts":"تنبيهات الفرز","Alerts are a great way to stay on top of market changes while you are away from the desk. Free plans support 1 alert at a time. If you need more, choose an upgraded plan that suits your needs.":"تعتبر التنبيهات طريقة مثالية للبقاء على اطلاع بتغييرات السوق عندما تكون بعيدًا عن مكتبك. العضويات المجانية تدعم تنبيهاً واحداً في نفس الوقت فقط. إذا كنت بحاجة إلى المزيد، فقم بترقية اشتراكك إلى عضوية مدفوعة تناسب احتياجاتك.","TradingView alerts run on powerful servers with backups, so you'll always get notified when something happens.":"تعمل تنبيهات TradingView على خوادم قوية مع نسخ احتياطية ، لذلك سيتم إعلامك دائمًا عند حدوث شيء ما.","Official real-time, intraday and volume data":"البيانات اللحظية الرسمية والبيانات اليومية وأحجام التداول","The free account features End-Of-Day US futures data only.":"الحساب المجاني يتيح بيانات نهاية اليوم فقط للعقود الآجلة الأمريكية","Delayed or real-time CME data can be purchased separately by any user with an upgraded plan. The trial also comes with access to and real-time data from premium exchanges and extra features.":"يمكن لأي مستخدم مشترك في النظام المُرقى شراء بيانات بورصة شيكاغو التجارية كل على حدة. تأتي الفترة التجريبية مع إمكانية الحصول على البيانات الفورية من البورصات الممتازة ومزايا إضافية.","Exchanges charge TradingView redistribution fees and per-user fees for delivery of intraday and real-time data, So, we can't give this data for free to everyone (as much as we'd like to).":"تفرض البورصات رسوما إعادة توزيع ورسوم عن كل مستخدم على موقع TradingView مقابل تقديم البيانات اليومية واللحظية. لذلك لا يمكننا تقديم هذه البيانات مجانا لكل شخص (وإن كنا نود عمل ذلك).","Simplify your trading by saving more charts layouts":"قم بتسهيل عملة متابعة السوق من خلال حفظ المزيد من تنسيقات الرسوم البيانية","You're at maximum indicator-ness":"أنت عند أقصى درجات المؤشر","More indicators, more trading possibilities":"المزيد من المؤشرات والمزيد من إمكانيات التداول","The indicators currently on your chart are: {studiesList}":"المؤشرات الموجودة حاليًا على رسمك البياني هي: {studiesList}","Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently on the {plan} plan, which supports up to 5 saved charts.":"يتطلب تعيين التنبيهات على الرسوم البيانية حفظ الرسم البياني، وليس لديك المساحة الكافية لذلك. أنت الآن على العضوية {plan} والتي تدعم حفظ 5 رسوم بيانية","If you need more, the {proPlusPlan} plan handles 10 and the {premiumPlan} plan unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.":"إذا كنت ترغب في المزيد، فإن عضوية ‎{proPlusPlan}‎ تتضمن 10 بينما عضوية ‎{premiumPlan}‎ تتيح عدد غير محدود من الرسوم البيانية، قم بترقية عضويتك الآن، واستمتع بميزات قوية عديدة.","Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently on the {plan} plan, which supports up to 10 saved charts.":"يتطلب تعيين التنبيهات على الرسوم البيانية حفظ الرسم البياني، وليس لديك المساحة الكافية لذلك. أنت الآن على العضوية {plan} والتي تدعم حفظ ما يصل إلى 10 رسوم بيانية","If you need more, the {premiumPlan} plan unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.":"إذا كنت بحاجة إلى المزيد ، فإن خطة {premiumPlan}تتيح عدد غير محدود من الرسوم البيانية المحفوظة ! قم بالترقية الآن واستمتع بالعديد من الميزات الأخرى المثيرة.","Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently trying the {plan} plan, which supports up to 5 saved charts.":"يتطلب تعيين التنبيهات على الرسوم البيانية حفظ الرسم البياني، وليس لديك المساحة الكافية لذلك. أنت الآن على الفترة التجريبية للعضوية {plan} والتي تدعم حفظ 5 رسوم بيانية","If you need more, you can switch your trial for FREE to the {proPlusPlan} (up to 10 saved charts) or the {premiumPlan} plan (unlimited saved charts). The plans also comes with many other exciting features.":"إذا كنت بحاجة إلى المزيد ، يمكنك تبديل الفترة التجريبية مجانًا إلى {proPlusPlan} (ما يصل إلى 10 رسوم بيانية محفوظة) أو عضوية {premiumPlan} (غير محدودة). تأتي تلك العضويات أيضًا مع العديد من الميزات المثيرة الأخرى.","Setting alerts on drawing requires saving the chart, and you've run out of space. You are trying the {plan} plan, which supports up to 10 saved charts.":"يتطلب تعيين التنبيهات على الرسوم البيانية حفظ الرسم البياني، وليس لديك المساحة الكافية لذلك. أنت الآن على الفترة التجريبية للعضوية {plan} والتي تدعم حفظ 10 رسوم بيانية","If you need more, you can switch your trial for FREE to the {plan} plan with unlimited number of saved charts. The plan also comes with many other exciting features!":"إذا كنت بحاجة إلى المزيد ، يمكنك تبديلالفترة التجريبية المجانية إلى عضوية {plan} مع عدد غير محدود من الرسوم البيانية المحفوظة. كما تأتي الخطة مع العديد من الميزات المثيرة الأخرى!","The PRO plan supports {number} saved chart,_pro_plan_supports_0":"عضوية PRO تدعم {number} رسم بياني محفوظ","The PRO plan supports {number} saved chart,_pro_plan_supports_1":"عضوية PRO تدعم {number} رسم بياني محفوظ","The PRO plan supports {number} saved chart,_pro_plan_supports_2":"عضوية PRO تدعم {number} رسم بياني محفوظ","The PRO plan supports {number} saved chart,_pro_plan_supports_3":"عضوية PRO تدعم {number} رسوم بيانية محفوظ","The PRO plan supports {number} saved chart,_pro_plan_supports_4":"عضوية PRO تدعم {number} رسم بياني محفوظ","The PRO plan supports {number} saved chart,_pro_plan_supports_5":"عضوية PRO تدعم {number} رسم بياني محفوظ","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_0":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_1":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_2":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_3":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_4":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features._pro_plan_supports_5":"العضوية PRO+ تدعم ‎{number}‎ و العضوية Premium تتيح عدد غير محدود من الرسوم البيانية المحفوظة، قم بترقية عضويتك الآن واستمتع بالعديد من الميزات الأخرى المثيرة","Saved charts":"الرسوم البيانية المحفوظة","Unlock the fastest data flow possible":"افتح أسرع تدفق للبيانات ممكن","To catch every small change, you need to see every trade, only on our upgraded plans. Never miss a beat again.":"لمتابعة كافة تغيرات السوق، تحتاج إلى رؤية كل صفقة، فقط على عضوياتنا المفدوعة والمميزة . ولن يفوتك شيء في السوق.","Data is delayed by {time} minutes":"البيانات متأخرة بمقدار ‎{time}‎ دقيقة","Unlock more insight with our indicator-on-indicator feature":"تابع برؤية أوضح من خلال ميزة المؤشر على المؤشر","Only users with paid subscriptions can create new public chats.":"يمكن للمستخدمين الذين لديهم اشتراكات مدفوعة فقط إنشاء دردشات عامة جديدة.","Once your trial period is over and the payment for membership renewal is received, you'll be able to create new public chats.":"بعد انتهاء الفترة التجريبية واستلام دفعة تجديد العضوية، ستتمكن من إنشاء دردشات عامة جديدة.","Don't see a public chat room on the topic you're most interested in? Then create it — only available on our upgraded plans.":"إن كنت لا تجد غرفة دردشة عامة حول الموضوع الذي يهمك أكثر؟ قم بإنشاء واحدة - متاح فقط على عضوياتنا المدفوعة والمميزة.","Create new public chats":"أَنْشِئْ غرفة دردشة جديدة","Go ad-free. Everywhere":"لا إعلانات على الرسوم البيانية","Ads are important for any business like ours, but you can go ad-free at any time via our upgraded plans. This way, you can enjoy trading without any distractions (and you'll get a load of extra features too).":"الإعلانات مهمة لأي نشاط تجاري مثل أعمالنا ، ولكن يمكنك المتابعة بدون إعلانات في أي وقت عبر عضوياتنا المدفوعة والمميزة. بهذه الطريقة ، يمكنك الاستمتاع بالتداول بدون أي مشتتات للانتباه (وستحصل على الكثير من الميزات الإضافية أيضًا).","Fresh opportunities, every 10 seconds":"فرص جديدة، كل 10 ثوان","Keep your wish list updated with a screener that auto-refreshes every 10 seconds or one minute — only on our upgraded plans (plus you'll get a load of powerful extra features).":"حافظ على تحديث قائمة متابعاتك باستخدام منصة الفلترة حيث يتم تحديثها تلقائيًا كل 10 ثوانٍ أو دقيقة واحدة - فقط على عضوياتنا المدفوعة والمميزة (بالإضافة إلى أنك ستحصل على الكثير من الميزات الإضافية القوية).","Delayed market data access":"الوصول إلى بيانات السوق المتأخرة","This market data is temporary not available for basic account holders according to the exchange regulations. We are working on making the delayed data available for all users on the free basis in the near future.":"بيانات السوق هذه ليست مُتاحة لأصحاب الحسابات المجانية وفقاً لقوانين البورصة. ونحن نعمل على جعل البيانات المتأخرة متاحة لجميع المستخدمين مجاناً في المستقبل القريب.","Want alerts that never die?":"هل تريد تنبيهات لا تموت أبداً؟","Alerts on your plan expire after two months. But, good news, non-expiring alerts are available on our {premiumPlan} plan. Great if you're thinking about long-term trading opportunities.":"التنبيهات على عضويتك ستنتهي صلاحيتها بعد شهرين. ولكن هناك بعض الأخبار السارة، التنبيهات على العضوية {premiumPlan} الخاصة بنا لا تنتهي صلاحيتها. الأمر رائع إذا كنت تُفكر في فرص تداول طويلة الأجل.","Test your strategies with intraday bar replays":"اختبر الاستراتيجيات الخاصة بك مع تقنية إعادة الرسم البياني","Practice predicting price movements, hour by hour, minute by minute and second by second — only on our upgraded plans. As the old saying goes, practice makes perfect (and profit).":"تدرب على توقع تحركات الأسعار ، ساعة بساعة ، دقيقة بدقيقة وثانية بالثانية - فقط على عضوياتنا المميزة. التدريب والممارسة سيعزز مهاراتك (ويزيد أرباحك).","Export data to where you need it":"تصدير البيانات إلى حيث تريدها","Export all the Screener info you need with one of our upgraded plans. Simple.":"قم بتصدير جميع معلومات منصة الفلترة Screener التي تحتاجها بإحدى عضوياتنا المميزة","Monitor changes by the minute with our Screener's intraday time frames":"راقب التغييرات كل دقيقة باستخدام الأطر الزمنية اللحظية لمنصة الفلترة","Be the first to know when an asset matches your chosen criteria, with our Screener's intraday time frame settings — only on our upgraded plans.":"كن أول من يعرف متى يتطابق أحد الأصول مع المعايير التي اخترتها ، مع إعدادات الإطار الزمني لـ Screener الخاصة بنا - فقط على عضواتنا المدفوعة","Screener with all time frames":"منصة الفلترة Screener لكل الأطر الزمنية","{proPlan}, {proPlusPlan} and {premiumPlan} users can use the Screener on any time frame!":"مشتركي باقات ‎{proPlan}‎ و ‎{proPlusPlan}‎ و ‎{premiumPlan}‎ يمكنهم استخدام منصة العارض على أي إطار زمني","Publish invite-only scripts":"نشر نص برمجي للمدعوين فقط","React instantly with webhook notifications":"تفاعل فورًا مع إشعارات webhook على الويب","Unlock endless algorithmic trading opportunities with instant reactions to triggered alerts — only on our upgraded plans. Take your analysis and algo trading to a whole new level.":"أطلق العنان لفرص التداول الآلية اللانهائية مع ردود الفعل الفورية للتنبيهات التي تم تشغيلها - فقط على عضوياتنا المدفوعة. خذ تحليلك ووتداولك إلى مستوى جديد كليا.","Export all the chart info you need with our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans. Easy.":"قم بتصدير كل معلومات الرسم البياني التي تحتاجها من خلال العضويتين {bold_start}PRO+ {bold_end} و{bold_start}Premium{bold_end}. الأمر سهل جداً.","Second-Based Chart Alerts":"تنبيهات بالثانية على الرسوم البيانية","Upgrade to the {pro_plan_name} plan to unlock this feature. Get alerts on a second-based chart delivered through email, mobile or desktop notifications. Premium plans also come with additional features like the fastest data flow, volume profile indicators, and other exciting tools.":"قم بترقية اشتراكك إلى العضوية {pro_plan_name} لتفعيل هذه الميزة. احصل على تنبيهات على الرسوم البيانية بالثانية تصلك عبر إشعارات البريد الإلكتروني أو الجوال أو الحاسوب الشخصي. توفّر عضوية Premium أيضًا ميزات إضافية مثل تدفق البيانات السريع ومؤشرات بروفايل حجم التداول وأدوات أخرى مثيرة.","Alerts are how you save time and make markets work for you. The {pro_plan_name} plan allows you to create alerts for price, specific indicators or custom drawings on a second-based chart.":"التنبيهات توفر من وقتك وتجعل الأسواق تعمل من أجلك. تتيح لك عضوية {pro_plan_name} إنشاء تنبيهات للسعر أو مؤشرات خاصة أو رسومات مُخصصة على الرسوم البيانية بالثانية.","This is an extremely valuable tool that highlights the most traded prices over a timeframe. Volume profile is often used by traders to identify basic support and resistance levels so they can time their trades and maximize profits.":"هذه أداة قيمة للغاية تسلط الضوء على الأسعار الأكثر تداولًا على مدار فترة زمنية. غالبًا ما يستخدم المتداولون حجم التداول لتحديد مستويات الدعم والمقاومة الأساسية حتى يتمكنوا من تحديد وقت تداولاتهم وتعظيم الأرباح.","It's available only on our upgraded plans.":"متاح فقط على عضوياتنا المدفوعة والمميزة","Device: {nameDevice}, IP: {valueIp}, Browser: {nameBrowser}":"الجهاز: {nameDevice}، IP: {valueIp}، المتصفح: {nameBrowser}","Your session was terminated from device:":"تم إنهاء جلستك من الجهاز:","You need to refresh the page and log in to continue surfing.":"تحتاج إلى تحديث الصفحة وتسجيل الدخول لمواصلة التصفح.","This session is terminated":"تم إنهاء هذه الجلسة","You or somebody else just logged into your account from a different device:":"قام شخص ما بتسجيل الدخول إلى حسابك من جهاز مختلف:","If this was indeed you, just click on the Connect button and you can continue working from here. If not, please change your password and turn on two-factor authentication.":'إذا كان هذا الشخص هو أنت، فما عليك سوى النقر فوق الزر "اتصال" لتتمكك من متابعة العمل من هنا. إذا لم يكن الأمر كذلك، فيرجى تغيير كلمة المرور وتشغيل المصادقة الثنائية.',"Session disconnected":"انقطع الاتصال بالجلسة","Get financial data over longer time periods":"احصل على البيانات المالية على فترات زمنية أطول","Access fundamental data over even longer time periods with one of our upgraded plans.":"يمكنك الوصول إلى البيانات الأساسية على مدى فترات زمنية أطول باستخدام إحدى عضوياتنا المدفوعة والمميزة","Take your subscription to the next level":"انقل اشتراكك إلى مستوى أعلى","Get all our upgraded features — no extra charge":"احصل على جميع المزايا من خلال ترقية اشتراكك - بدون رسوم إضافية","Time to make the math work for you. We've got an offer: one month of upgraded features for one dollar.":"حان الوقت لجعل الأمور أسهل بالنسبة لك. لدينا عرض لك: شهر واحد من الميزات المتقدمة مقابل 1 دولار","Buy 6 months, get 6 months free":"اشترِ 6 أشهر واحصل على 6 أشهر أخرى مجانًا","What's better than an annual TradingView plan? An annual TradingView plan with 50% off.":"هل هناك عرض أفضل من عرض عضوية TradingView السنوية؟ أكيد! عضوية TradingView السنوية مع خصم 50٪.","Get yours now":"احصل عليها الآن","More windows mean more options":"المزيد من النوافذ يعني المزيد من الخيارات","With our free account you can open as many windows as you like and get the most out of your multi-monitor setup. Don't have an account yet? Click the button below to get started and start working with multiple windows.":"باستخدام حسابنا المجاني، يمكنك فتح أي عدد تريده من النوافذ والاستفادة إلى أقصى حد من إعداد الشاشات المتعددة. ألا تملك حسابا حتى الآن؟ انقر فوق الزر أدناه لاشتراك وبدء العمل مع العديد من النوافذ.","Export your strategy data":"تصدير بيانات استراتيجيتك","Take your strategies with you: export your performance and overview data to a CSV file, only with our Premium plan. Upgrade today.":"اصطحب استراتيجياتك معك: قم بتصدير بيانات الأداء والنظرة العامة الخاصة بك إلى ملف CSV. متاح على عضوية Premium فقط. قم بالترقية اليوم.",Attention:"تنبيه","Please note all NSE data is available free of charge to any visiting user. You'll be redirected to an open website now.":"يرجى ملاحظة أن جميع بيانات NSE متاحة مجانًا لأي مستخدم زائر. ستتم إعادة توجيهك إلى موقع ويب مفتوح الآن.","Upgrade to Premium today to access backtesting data for any date in a symbol's entire history – at the moment your subscription only allows you to calculate using data loaded on the chart.":"قم بترقية عضويتك اليوم إلى Premium للوصول إلى بيانات الاختبار العكسي لأي تاريخ من التاريخ الكامل للأصل - في الوقت الحالي، يسمح لك اشتراكك فقط باستخدام البيانات المحملة على الرسم البياني فقط.","You can't upgrade to Premium in the app. It sucks, we know.":"لا يمكنك الترقية إلى Premium في التطبيق. نعلم أنه أمر مزعج.",Cancel_input:"إلغاء","Do you really want to delete Chart Layout '{name}' ?":"هل تريد فعلا مسح تصميم مخطط الرسم البيانى‎ ‎{name}‎؟","Load layout":"تحميل التنسيق","Layout name":"اسم التنسيق","Sort by layout name, date changed":"تصنيف حسب اسم التنسيق، وتاريخ التعديل","Layout name (A to Z)":"اسم التنسيق (A إلى Z)","Layout name (Z to A)":"اسم التنسيق (Z إلى A)","Date modified (oldest first)":"تاريخ التعديل (الأقدم أولاً)","Date modified (newest first)":"تاريخ التعديل (الأحدث أولاً)","Manage account via app":"إدارة الحساب عبر التطبيق","You are notified":"تم إعلامك بذلك",Purchase:"شراء","${cost}":"{cost} دولار","{proPlanName} trial ({days_count} day)_free_trial_0":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} يوم)","{proPlanName} trial ({days_count} day)_free_trial_1":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} يوم)","{proPlanName} trial ({days_count} day)_free_trial_2":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} يوم)","{proPlanName} trial ({days_count} day)_free_trial_3":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} أيام)","{proPlanName} trial ({days_count} day)_free_trial_4":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} يوماً)","{proPlanName} trial ({days_count} day)_free_trial_5":"الفترة التجريبية لـعضوية {proPlanName} ({days_count} يوماً)","{proPlanName} trial":"فترة تجريبية ‎{proPlanName}‎","{proPlanName} plan":"العضوية ‎{proPlanName}‎","Accounting for your Early Bird discount, the chosen payment method will be charged {cost} on {billing_date}. The annual payments after this one will be {full_cost}, our regular price.":"عند احتساب خصم Early Bird، سيتم تحصيل {cost}من طريقة الدفع المختارة في {billing_date}. ستكون الدفعات السنوية بعد هذا الدفع {full_cost}، مماثلة لسعرنا المعتاد.","Payable on {billingDate}":"موعد الدفعة في ‎{billingDate}‎","You will not be billed today":"لن تتم عملية الدفع اليوم","Further billing":"المزيد من الفواتير","Back to the chart":"عودة للرسم البياني","Start charting":"ابدأ في إنشاء الرسوم البيانية","I authorize TradingView to charge me automatically every year, until I cancel my subscription.":"أُرخص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل عام حتى ألغي اشتراكي.","I authorize TradingView to charge me automatically every month, until I cancel my subscription.":"أُرخص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل شهر حتى ألغي اشتراكي.","I authorize TradingView to charge me automatically every three months, until I cancel my subscription.":"أُرخص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل 3 أشهر حتى ألغي اشتراكي.","I authorize TradingView to charge me automatically every two years, until I cancel my subscription.":"أُرخص لـ TradingView اقتطاع رسوم الاشتراك تلقائيًا كل عامين حتى ألغي اشتراكي.","I have read and agree with the {iceLink}ICE Subscriber Agreement{closeLink}.":"لقد قرأت ووافقت على {iceLink} اتفاقية المشتركينICE {closeLink}.","I acknowledge that refunds are made according to the Terms of Use.":"أقر بأن عمليات استرداد الأموال تتم وفقًا لشروط الاستخدام.","{acknowledgeText} The subscription can be canceled at any time from the Account and Billing section in the Profile settings. {policyText}":"{acknowledgeText} يمكن إلغاء الاشتراك في أي وقت من قسم الحساب والفوترة في إعدادات الملف الشخصي. {policyText}","{policyText} I confirm that refunds will only be made in line with the situations they describe.":"{policyText} أؤكد أن عمليات رد الأموال ستتم فقط بما يتماشى مع الحالات التي يصفونها.","I have read, and agree to, TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}.":"لقد قرأت ووافقت على {termsLink}شروط الاستخدام{closeLink} و{privacyLink}سياسة الخصوصية{closeLink}.","/year":"دولار أمريكي/سنة","/2years":"/سنتين","Special offer. First month of upgraded features for one dollar.":"عرض خاص. شهر واحد من الميزات المتقدمة مقابل 1 دولار.","Most flexible option.":"الخيار الأكثر مرونة.","Special offer — pay for half a year, get the other half at no cost.":"عرض خاص - ادفع لمدة نصف عام واحصل على النصف الآخر مجاناً","We only give this discount for your first year.":"نحن نقدم هذا الخصم للسنة الأولى فقط","Save ${amount} ({profit}%) when compared to the monthly plan.":"وفّر ‎{amount}‎ ({profit} ‎%)‎ عند المقارنة بالنظام الشهري","We only offer this discount for your first year.":"نحن نقدم هذا الخصم للسنة الأولى فقط.","Payment #{receiptId}":"الدفعة #{receiptId}","Thanks for purchasing":"‎ شكراً للشراء","We'll charge your card {price} on {date}. If you cancel auto-renewal before this time, you'll not be charged at all.":"سيتم تحصيل {price} من بطاقتك في {date}. يمكنك إلغاء الفترة التجريبية والتجديد التلقائي قبل هذا اليوم ولن يتم تحصيل أي رسوم منك على الإطلاق.","Woohoo! Let the fun begin":"هيا، فلننطلق!","Your {daysCount}-day free trial is live and kicking, and you've now got free access to loads of additional features. Don't forget: we may also have a special offer or two for you during this trial – keep your eyes peeled.":"الفترة التجريبية المجانية التي مدتها {daysCount} يوماً قد تم تفعيلها! لديك وصول مجاني إلى عدة ميزات إضافية. لا تنس أن تبقي عينيك مفتوحتين للحصول على عروض خاصة أثناء هذه الفترة!","$0.00 USD":"0 دولار أمريكي","Connection Error":"حدث خطأ في الاتصال.","Go now, dive into your new data":"ابدأ الآن، واطلع على بياناتك الجديدة","I need that data":"أحتاج تلك البيانات","I'm good without it":"لا أحتاجها","Show me the available market packages":"أرني حُزم السوق المتاحة","I'll just buy the plan as it is for now":"سأشتري العضوية كما هي الآن","This is a special price for residents of the exchange's home country. The final cost is applied after entering your address in the next step.":"هذا سعر خاص للمقيمين في بلد البورصة. سيتم تطبيق التكلفة النهائية بعد إدخال عنوانك في الخطوة التالية.","{price} /mo":"{price} /شهر","{price} /year":"{price} /سنة","Residents price":"سعر المقيمين","Market Data Provided by ICE Data services":"بيانات السوق متاحة من خلال خدمة بيانات ICE","We provide real-time data for free if it's allowed. {link_start}Some data is delayed{link_end} due to specific exchange regulations and real-time data must be purchased separately on this page below. We are required to collect these payments and remit them to the exchanges.":"نحن نقدم بيانات الأسواق اللحظية مجانًا، إذا سُمح لنا بذلك. {link_start}بعض البيانات تكون متأخرة{link_end} بسبب قوانين بعض البورصات المحددة، ما يستوجب شراء البيانات اللحظية بشكل منفصل من خلال الصفحة أدناه. نحن مطالبون بتحصيل هذه المدفوعات وتحويلها إلى البورصات.","US stock market data is real-time, but provided by CBOE BZX. {link_start}This data is slightly different{link_end} from primary exchanges. If you would like to get real-time data directly from NASDAQ, NYSE or ARCA, you can add this data to your plan.":"بيانات سوق الأسهم الأمريكية هي بيانات لحظية، ولكنها مُقدمة من قبل CBOE BZX. ‎{link_start}‎ تختلف هذه البيانات قليلاً{link_end} عن بيانات الأسواق الأساسية الأخرى. إذا كنت ترغب في الحصول على بيانات لحظية مباشرةً من NASDAQ أو NYSE أو ARCA، فيمكنك إضافة هذه البيانات إلى عضويتك.","Extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus":"لا تتوفر بعض اشتراكات بيانات السوق الإضافية في الاتحاد الروسي وجمهورية بيلاروسيا","Need extra market data?":"هل تحتاج إلى بيانات سوق إضافية؟","Some extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus":"لا تتوفر بعض اشتراكات بيانات السوق الإضافية في الاتحاد الروسي وجمهورية بيلاروسيا","Downgrade trial to {plan_name}":"تخفيض مستوى الفترة التجريبية إلى ‎{plan_name}‎","You can downgrade your trial and pick the one that meets your needs. This way you’ll know exactly what you are paying for if wish to continue using this plan after the free trial period.":"يمكنك خفض فترتك التجريبية واختيار الخيار الذي يلبي احتياجاتك. بهذه الطريقة ستعرف بالضبط ما الذي تدفعه مقابل رغبتك في الاستمرار في استخدام هذه الخطة بعد انتهاء الفترة التجريبية المجانية.","If you switch to a different plan, the amount charged at the end of the trial (if you don’t cancel) will change according to the new plan.":"إذا بدلت إلى خطة مختلفة ، فسيتم تغيير المبلغ الذي تم تحصيله في نهاية فترة التجربة (إذا لم يتم إلغاؤه) وفقًا للخطة الجديدة.","Upgrade trial to {plan_name}":"ترقية الفترة التجريبية إلى {plan_name}","You can continue your trial with a different plan for free to check out more features.":"يمكنك استكمال فترتك التجريبية بعضوية مختلفة مجانًا للتعرف على المزيد من الميزات.","If you switch to a better plan, the amount charged at the end of the trial (if you don’t cancel) will change according to the new plan.":"إذا قمت بالتغيير إلى خطة أفضل، فإن المبلغ الذي يتم تحصيله في نهاية التجربة (إذا لم تقم بإلغاء) سوف يتغير وفقا للخطة الجديدة.","Start free {daysCount}-day {proPlan}_free_trial_0":"ابدأ {daysCount}-يوم من {proPlan}","Start free {daysCount}-day {proPlan}_free_trial_1":"ابدأ {daysCount}-يوم من {proPlan}","Start free {daysCount}-day {proPlan}_free_trial_2":"ابدأ {daysCount}-يوم من {proPlan}","Start free {daysCount}-day {proPlan}_free_trial_3":"ابدأ {daysCount}-أيام من {proPlan}","Start free {daysCount}-day {proPlan}_free_trial_4":"ابدأ {daysCount}-يوماً من {proPlan}","Start free {daysCount}-day {proPlan}_free_trial_5":"ابدأ {daysCount}-يوماً من {proPlan}","Link copied":"تم نسخ الرابط","More information about Cookies {lastWord}Policy":"مزيد من المعلومات حول سياسة ملفات تعريف {lastWord} الارتباط","These cookies are used to provide users with services available through a Site and to use some of its features, such as the ability to log-in and access secure areas, provide pop-up notices, and accept language from sign-up forms. These cookies are essential for using and navigating a Site. Without them, basic functions of our Site would not work. Because these cookies are strictly necessary to deliver our Site's essential services, you cannot refuse them.":"ملفات تعريف الارتباط تُستخدم هذه الملفات لتزويد المستخدمين بالخدمات المتاحة من خلال الموقع واستخدام بعض ميزاته، مثل القدرة على تسجيل الدخول والوصول إلى مناطق آمنة وتقديم إشعارات منبثقة وقبول اللغة من صفحة الاشتراك. تعد ملفات تعريف الارتباط هذه ضرورية لاستخدام المواقع والتنقل فيها. بدون ملفات تعريف الارتباط هذه، لن تعمل الوظائف الأساسية لموقعنا. نظرًا لأن ملفات تعريف الارتباط هذه ضرورية جدًا لتقديم خدمات الموقع، فلا يمكنك رفضها.","Performance/Analytics cookies":"الأداء / ملفات تعريف الارتباط التحليلية","These cookies are used to recognize and count the number of Site visitors, gather statistics regarding how visitors move around the Site (including number of page views and the amount time spent on each page) and for conversion tracking and click hotspots. This helps us improve the way our Site works and general user experience. For example, these cookies allow us to ensure that users are able to find what they need easily.":"ملفات تعريف الارتباط هذه تُستخدم للتعرف على زوار الموقع وعددهم، ولجمع إحصائيات تتعلق بكيفية تحرك الزوار داخل الموقع (على غرار عدد مرات مشاهدة الصفحة وعدد الزوار والوقت الذي يقضيه المستخدم في كل صفحة) ولتتبع معدل التحويل والنقر على النقاط الساخنة. وهذا يساعدنا على تحسين طريقة عمل موقعنا وتحسين تجربة المستخدم. على سبيل المثال، تتيح لنا ملفات تعريف الارتباط هذه التأكد من قدرة المستخدمين على العثور على ما يحتاجونه بسهولة.","Advertising cookies":"ملفات تعريف الارتباط الإعلانية","These cookies are used to show advertising that is relevant to you.":"تُستخدم ملفات تعريف الارتباط هذه لعرض الإعلانات ذات الصلة بميولاتك.","Save preferences":"حفظ التفضيلات","Allow all":"السماح للكل","We can't accept your payment right now":"لا يمكننا قبول عملية الدفع الآن","Saved indicators":"المؤشرات المحفوظة","Remember Symbol":"تذكر الرمز","Remember Interval":"تذكر الفاصل الزمني","Confirm Remove Study Tree":"تأكيد إزالة نتائج الدراسة","Do you really want to delete study and all of it's children?":"هل تريد فعلا مسح هذه الدراسة وكل محتوياتها؟","Studies limit exceeded: {number} studies per layout.\nPlease, remove some studies.":"تم تجاوز الحد الأقصى للدراسات : ‎{number}‎ دراسة لكل نسق\nبرجاء حذب البعض","Alert limit reached":"لقد وصلت للحد الأقصى من التنبيهات","Uh oh! Looks like you've reached the {count} alert limit. Please remove any or all unnecessary alerts in order to add any new ones.":"عفواً! يبدو أنك وصلت إلى الحد الأقصى من التنبيهات والبالغ {count}. يرجى إزالة أي/أو كل التنبيهات غير الضرورية لإضافة تنبيهات جديدة.","Username (you'll only be able to change this public username once)":"اسم المستخدم (لن تتمكن من تغيير اسم المستخدم العام هذا إلا مرة واحدة)","First Name":"الاسم الأول","Last Name":"اسم العائلة","Your account is not active yet.":"حسابك لم يتم تفعيله بعد","Please verify your email.":"الرجاء تأكيد بريدك الإلكتروني","If you don't have it in your inbox (check spam/junk box), you can sign up with":"إذا لم يكن موجود في صندوق بريدك الوارد (راجع صندوق البريد المزعج / غير المرغوب فيه)، يمكنك تسجيل الدخول ب",or:"أو","Resend Activation Link":"أعد إرسال رابط التفعيل","Email, username or phone number including country code":"البريد الإلكتروني أو اسم المستخدم أو رقم الهاتف الذي يشمل رمز البلد",Search_forgot_password:"بحث","Sign in with email":"تسجيل الدخول بحساب بريد إلكتروني","Username or Email":"اسم المستخدم أو البريد الإلكتروني","I forgot password or can't sign in":"لقد نسيت كلمة المرور أو لا يمكنني تسجيل الدخول","Remember me":"تذكرنى","Don't have an account?":"أليس لديك حساب؟","Sign up with email":"الاشتراك بحساب بريد إلكتروني","I have read and agree to the {terms_link}Terms of Use{link_end} as well as {privacy_link}Privacy{link_end} and {cookie_link}Cookies Policy{link_end}":"قرأت وموافق على ‎{terms_link}‎ بنود الاستخدام ‎‎{link_end}‎ و ‎{privacy_link}‎ سياسة الخصوصية ‎{link_end}‎ و ‎{cookie_link}‎ وسياسة ملفات تعريف الارتباط ‎{link_end}‎","Already have an account?":"هل لديك حساب بالفعل؟","How do you want to reset your password?":"كيف يمكنك استعادة كلمة المرور؟","Your account was created through a social network":"حسابك تم إنشاؤه بواسطة حساب تواصل اجتماعي","Oops! Looks like there is no email or phone number linked with your account":"للأسف، يبدو أنه لا يوجد بريد إلكتروني أو رقم هاتف تم ربطه بحسابك","Email a link to {email}":"ارسل الرابط عبر البريد الإلكتروني ‎{email}‎","Send a code to a phone number that ends with {phone}":"برجاء إرسال الرمز الذي تم إرساله على رقم الهاتف الذي ينتهي بـ ‎{phone}‎","We found the following information associated with your account.":"لقد وجدنا المعلومات التالية مرتبطة بحسابك.","I can't access my account":"لا يمكنني الدخول إلى حسابي","OR sign in via your social media account that you used in the past":"أو سجل الدخول من خلال حسابك على مواقع التواصل الإجتماعي","We have detected that you have registered with {social_list}. To gain access to your account, log in through your social networks.":"لقد اكتشفنا أنك قمت بالتسجيل بـ‎{social_list}‎. للدخول إلى حسابك، قم بتسجيل الدخول من خلال شبكات التواصل الاجتماعي الخاصة بك.","We are unable to reset your password since you failed to provide your contact details. Please try again or create a new account.":"لا يمكننا إعادة تعيين كلمة المرور الخاصة بك لأنك لم تستطيع إثبات بياناتك، برجاء المحاول مرة أخرى أو إنشاء حساب جديد.","We have sent the mail to {email}. In order to complete the email verification process, you must click on the link inside.":"قمنا بإرسال رسالة إلى البريد الإلكتروني ‎{email}‎، من أجل إكمال عملية التحقق من البريد الإلكتروني قم بالضغط على الرابط الموجود داخل الرسالة","Be sure to check your spam filters if you can't find the email. Haven't receive mail? {blue_text}Send mail again{blue_text_end}":"تأكد من فحص قائمة الرسائل غير المرغوبه إذا لم تجد البريد الإلكتروني. وإذا لم تجده أيضا ‎{blue_text}‎ أرسل الرسالة مرة أخرى‎{blue_text_end}‎","Please check your email":"برجاء التحقق من البريد الإلكتروني","We've sent you a verification code. Once you receive the code, enter it below.":"قمنا بإرسال كود التأكيد، بمجرد وصوله أدخله أدناه",Code_reset_password:"الرمز","I didn't receive the code":"لم استلم الرمز","Check your phone":"تحقق من هاتفك الجوال","Backup code":"الرمز الاحتياطي","SMS or backup code":"خدمة SMS أو الرمز الاحتياطي","Code from your app or backup code":"رمز من تطبيقك أو الرمز الاحتياطي","Two-factor Authentication":"المصادقة الثنائية","Enter the verification code from your Authenticator App or the message you received via SMS. If you don’t have access to your phone, you can enter a previously saved backup code.":"أدخل رمز التحقق المتاح من خلال تطبيق Authenticator الخاص بك أو رسالة SMS التي تلقيتها. إذا كان هاتفك غير متاح، فيمكنك إدخال رمز احتياطي تم حفظه مسبقًا.","Get code":"احصل على الرمز","If you don't receive a code in {codeTTL} seconds, you'll have the option of sending a new one.":"إذا لم تتلق رمزًا خلال {codeTTL} ثانية، فسيكون لديك خيار إرسال رمز جديد.","Sign in to get free trial":"سجل الدخول للحصول على نسخة تجريبية مجانية","Sign up to get free trial":"اشترك للحصول على نسخة تجريبية مجانية","This ends today":"سينتهي هذا اليوم","You've not got long until your discount expires. Might want to grab it before it's too late.":"ليس هناك الكثير من الوقت المتبقي في صلاحية الخصم الخاص بك. ننصحك بالحصول عليه قبل فوات الأوان.","You've upgraded your subscription. Please reload the page to fire up the new changes.":"لقد قمت بترقية اشتراكك. يرجى إعادة تحميل الصفحة لتفعيل التغييرات الجديدة.","Subscription has been modified":"تم تعديل الاشتراك","Copy link to solution":"نسخ الرابط إلى الحل","Free user FAQs":"أسئلة وأجوبة مجانية للمستخدم","Keyboard shortcuts":"اختصارات لوحة المفاتيح","What's new?":"ما الجديد","Pine Script™ Q&A":"أسئلة وأجوبة عن باين سكريبت","Real-time updates":"تحديثات لحظية","Looking for something else?":"هل تبحث عن شيء آخر؟","Click to maximize":"انقر للتكبير","{solution_number} article_0":"‎{solution_number}‎ مقال","{solution_number} article_1":"‎{solution_number}‎ مقال","{solution_number} article_2":"‎{solution_number}‎ مقال","{solution_number} article_3":"‎{solution_number}‎ مقالات","{solution_number} article_4":"‎{solution_number}‎ مقال","{solution_number} article_5":"‎{solution_number}‎ مقال","Find an answer":"ابحث عن جواب","Nothing was found":"لم يتم العثور على أي شيء","Still need help? Open a support ticket and we'll get back to you shortly":"هل مازلت تحتاج للمساعدة؟ افتح بطاقة دعم وسنعاود الاتصال بك قريبًا","Share feedback":"شارك تعليقاتك","High ticket volume":"استفسارات كثيرة","The wait time for a reply from our support team has increased due to unusually high traffic in inquiries and questions. We apologize for any inconvenience and appreciate your patience.":"لقد زاد وقت انتظار الرد من فريق الدعم خاصتنا بسبب كثرة الاستفسارات والأسئلة بشكل غير معتاد. نعتذر عن أي إزعاج ونقدر سعة صدرك.","Don't forget to also search our Help Center – it's got a wealth of answers to all sorts of Support questions.":"لا تنس البحث في مركز المساعدة الخاص بنا أيضًا – فهو يحتوي على مجموعة كبيرة من الإجابات لجميع أنواع أسئلة الدعم.","How can we help?":"كيف يمكننا مساعدتك؟","My support tickets":"بطاقات الدعم الخاصة بي","Select your issue category":"اختر نوع المشكلة","Change symbol":"تغيير الرمز","Hide all drawings":"إخفاء جميع أدوات الرسم","Solution couldn’t be loaded. This may be due to a connection failure. Please try refreshing the page.":"لا يمكن تحميل الحلول حالياً. قد يكون هذا بسبب مشكل في الاتصال. الرجاء إعادة تحميل الصفحة.","Thank you for your feedback!":"شكراً لك على ملاحظاتك!",Folder:"مُجلد","Whoa there, we need some time to check your first tickets before getting round to new ones. Please come back in a bit.":"نحن بحاجة إلى بعض الوقت للتحقق من البطاقات الأولى قبل الانتقال إلى بطاقات جديدة. يرجى العودة بعد قليل.","Popular solutions list couldn’t be loaded. This may be due to a connection failure. Please try refreshing the page.":"لا يمكن تحميل قائمة الحلول الشائعة حالياً. قد يكون هذا بسبب مشكل في الاتصال. الرجاء إعادة تحميل الصفحة.","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_0":"فترتك التجريبية المجانية لمدة ‎{days}‎ يوم قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_1":"فترتك التجريبية المجانية لمدة ‎{days}‎ يوم قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_2":"فترتك التجريبية المجانية لمدة ‎{days}‎ يوم قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_3":"فترتك التجريبية المجانية لمدة ‎{days}‎ أيام قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_4":"فترتك التجريبية المجانية لمدة ‎{days}‎ يوماً قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features. Don't forget to keep your eyes peeled for special offers during the trial!_free_trial_5":"فترتك التجريبية المجانية لمدة ‎{days}‎ يوماً قد بدأت! يمكنك الاستفادة من ميزات إضافية مجاناً. تابعنا باستمرار لتستفيد من العروض الخاصة المقدمة أثناء الفترة التجريبية!","Your {days}-day free trial is live! You've got free access to additional features._free_trial_0":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ يوم! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Your {days}-day free trial is live! You've got free access to additional features._free_trial_1":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ يوم! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Your {days}-day free trial is live! You've got free access to additional features._free_trial_2":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ يوم! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Your {days}-day free trial is live! You've got free access to additional features._free_trial_3":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ أيام! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Your {days}-day free trial is live! You've got free access to additional features._free_trial_4":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ يوماً! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Your {days}-day free trial is live! You've got free access to additional features._free_trial_5":"لقد فعّلت الفترة التجريبية المجانية ‎{days}‎ يوماً! يمكنك الآن الوصول إلى الميزات الإضافية مجاناً.","Remember, if you don't cancel your trial before it ends, you'll automatically continue on a paid monthly upgraded plan after the trial.":"تذكر أنه إذا لم تقم بإلغاء الفترة التجريبية قبل أن تنتهي، فستستمر تلقائياً في العضوية المدفوعة شهرياً.","If you don't cancel your trial before it ends, you will be automatically converted to an annual paid plan after the trial.":"إذا لم تقم بإلغاء الفترة التجريبية قبل أن تنتهي، فسيتم تحويل اشتراكك تلقائيًا إلى عضوية سنوية مدفوعة بعد الفترة التجريبية.","Get Started!":"ابدأ الآن!","You can request a new code in {timer} seconds. If you are not receiving it, check out possible {linkOpen}solutions{linkClose}.":"يمكنك طلب رمز جديد في غضون {timer} ثانية. إذا كنت غير قادر على تلقي الرمز، فراجع {linkOpen}الحلول{linkClose} الأخرى المتاحة.","Verification successful":"تم التحقق بنجاح","Get the code via SMS":"احصل على الرمز من خلال رسالة SMS","Get the code via phone call":"احصل على الرمز من خلال اتصال هاتفي","Enter phone number":"أدخل رقم الهاتف","Account verification":"التحقق من الحساب","Enter your phone number to receive a confirmation code. If there are any errors with SMS delivery, you can receive your code via automated phone call. Your phone number will not be used for any other purpose other than account verification.":"أدخل رقم هاتفك لتلقي رمز التأكيد. إذا كنت تواجه أي مشكلة في استقبال الرسائل القصيرة، فإنه يمكنك استلام رمزك عبر مكالمة هاتفية آلية. ولن يتم استخدام رقم هاتفك لأي غرض آخر غير التحقق من الحساب.","Enter your email address below. We’ll send you a text message with a confirmation code.":"أدخل عنوان البريد الالكتروني أدناه. سنرسل لك رسالة نصية مع رمز التأكيد.","Now you have access to social features, such as chatting, publishing ideas and following other users.":"الآن يمكنك استخدام خدمات التواصل الاجتماعي مثل المحادثات، ونشر التحليلات ومتابعة أشخاص آخرين.","Now you can receive text messages alerts to your phone":"الآن يمكنك تلقي تنبيهات الرسائل النصية على هاتفك","Select source":"اختر مصدراً","three months":"ثلاثة أشهر","two years":"سنتين",annually:"سنوي","Billed every year.":"فوترة كل عام","Billed every month.":"فوترة كل شهر","Billed every two years.":"فوترة كل سنتين",trial:"فترة تجريبية","card *{paymentHint}":"البطاقة *{paymentHint}","Unknown error happened":"خطأ غير معروف",cfd:"عقود الفروقات",crypto:"العملات الرقمية",dr:"إيصال إيداع",futures:"العقود الآجلة",index:"مؤشر",stock:"سهم",economy:"اقتصاد","Continue purchasing":"استمر في الشراء","Loading...":"جاري التحميل...","Please, try to reload page to edit user data":"الرجاء محاولة إعادة تحميل الصفحة لتعديل بيانات المستخدم","Sorry, an error has occurred":"للأسف، حدث خطأ",Sunday:"الأحد",Monday:"الاثنين",Tuesday:"الثلاثاء",Wednesday:"الأربعاء",Thursday:"الخميس",Friday:"الجمعة",Saturday:"السبت",Sun:"الأحد",Mon:"يوم الاثنين",Tue:"الثلاثاء",Wed:"الأربعاء",Thu:"الخميس",Fri:"الجمعة",Sat:"السبت",Su_day_of_week:"الأحد",Mo_day_of_week:"الاثنين",Tu_day_of_week:"الثلاثاء",We_day_of_week:"الأربعاء",Th_day_of_week:"الخميس",Fr_day_of_week:"الجمعة",Sa_day_of_week:"السبت","Alarm Clock":"ساعة المنبه",Light_colorThemeName:"فاتح",Dark_colorThemeName:"داكن","Save Theme As":"احفظ النسق كـ :","Theme name":"أسم القالب","Color Theme '{themeName}' already exists. Do you really want to replace it?":"نسق الألوان ‎{themeName}‎موجود بالفعل. هل ترغب حقًا في استبداله؟","Do you really want to delete Color Theme '{name}' ?":"هل تريد فعلا مسح مظهر اللون ''{name}' ؟",Normal:"عادي","Dashed line":"خط متقطع","Dotted line":"خط منقط","Line with breaks":"خط ذو فواصل","Step line":"خط متدرج","Step line with diamonds":"خط متدرج مع معيّنات",Histogram:"المدرج الإحصائي",Cross_chart_type:"تقاطع","Area with breaks":"مساحة يتخللها فواصل",Circles:"دوائر",Thickness:"السُّمْك","No exchanges match your criteria":"لا توجد أسواق تطابق المعايير التي عينتها","All sources":"كل المصادر","Symbol & description":"الرمز والوصف",Sources:"مصادر","Same % scale":"نفس مقياس %","New price scale":"مقياس سعر جديد","New pane":"جزء جديد","Add to":"إضافة إلى","Allow extend time scale":"السماح بتمديد النطاق الزمني","No symbols here yet — why not add some?":"لا توجد رموز هنا حالياً — قم بإضافة الرموز","Added symbols":"الرموز المضافة","Recent symbols":"الرموز الحديثة","Compare symbol":"مقارنة الرمز","Manage layout drawings":"إدارة رسومات التنسيق","No indicators matched your criteria.":"لا توجد مؤشرات تتوافق مع معاييرك.","Bring to Front":"وضعه في المقدمة","Send to Back":"إرسال للمؤخرة","Bring Forward":"تقديمه للأمام","Send Backward":"إرسال إلى الخلف","Hide drawings":"إخفاء الرسومات","Show all drawings":"عرض كل الرسومات","Hide indicators":"إخفاء المؤشرات","Show all indicators":"عرض كل المؤشرات","Hide all indicators":"إخفاء كل المؤشرات","Hide positions & orders":"إخفاء المراكز والأوامر","Show all positions & orders":"إظهار المراكز والأوامر","Hide all positions & orders":"إخفاء كل المراكز والأوامر","Hide all":"إخفاء الكل","Show all drawings, indicators, positions & orders":"إظهار كافة الرسومات والمؤشرات والمراكز والأوامر","Show all drawings and indicators":"عرض كل الرسومات والمؤشرات","Hide all drawings, indicators, positions & orders":"إخفاء كافة الرسومات والمؤشرات والمراكز والأوامر","Hide all drawings and indicators":"إخفاء كل الرسومات والمؤشرات","remove all line tools for {symbol}":"حذف كافة خطوط الأدوات لـ {symbol}","{symbolsCount} symbol_symbols_and_drawings_count_0":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_1":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_2":"‎{symbolsCount}‎ رمز","{symbolsCount} symbol_symbols_and_drawings_count_3":"‎{symbolsCount}‎ رموز","{symbolsCount} symbol_symbols_and_drawings_count_4":"‎{symbolsCount}‎ رمزاً","{symbolsCount} symbol_symbols_and_drawings_count_5":"‎{symbolsCount}‎ رمزاً","with {drawingsCount} drawing_symbols_and_drawings_count_0":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_1":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_2":"مع ‎{drawingsCount}‎ رسم","with {drawingsCount} drawing_symbols_and_drawings_count_3":"مع ‎{drawingsCount}‎ رسوم","with {drawingsCount} drawing_symbols_and_drawings_count_4":"مع ‎{drawingsCount}‎ رسماً","with {drawingsCount} drawing_symbols_and_drawings_count_5":"مع ‎{drawingsCount}‎ رسماً","{drawingsCount} drawing_0":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_1":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_2":"‎{drawingsCount}‎ رسم","{drawingsCount} drawing_3":"‎{drawingsCount}‎ رسوم","{drawingsCount} drawing_4":"‎{drawingsCount}‎ رسماً","{drawingsCount} drawing_5":"‎{drawingsCount}‎ رسماً","Remove all drawings for this symbol":"إزالة كافة الرسومات لهذا الرمز","No drawings yet":"لا يوجد رسوم حتى الآن","Object tree":"شجرة الكائنات","Create a group of drawings":"أنشئ مجموعة من الرسومات","Clone, Copy":"استنساخ ، نسخ","Group is hidden on current interval":"المجموعة مخفية في الفاصل الزمني الحالي","Drawing is hidden on current interval":"الرسم مخفي على الفاصل الزمني الحالي","move objects":"تحريك العناصر","show objects":"إظهار العناصر","hide objects":"إخفاء العناصر","remove objects":"إزالة العناصر",'Set the "{inputInline}" time and price for "{studyShortDescription}"':"تعيين وقت وسعر {inputInline} لـ {studyShortDescription}",'Set the time and price for "{studyShortDescription}"':'تعيين وقت وسعر "{studyShortDescription}"','Set the "{inputTitle}" time for "{studyShortDescription}"':"نعيين وقت {inputTitle} لـ {studyShortDescription}",'Set the time for "{studyShortDescription}"':'نعيين وقت "{studyShortDescription}"','Set the "{inputTitle}" price for "{studyShortDescription}"':"تعيين سعر {inputTitle} لـ {studyShortDescription}",'Set the price for "{studyShortDescription}"':'تعيين سعر "{studyShortDescription}"',"Add Symbol":"إضافة رمز","Confirm Inputs":"تأكيد المدخلات","Reset settings":"إعادة ضبط الإعدادات","Save as default":"حفظ كافتراضي",Defaults:"الإعدادات الإفتراضية","Apply to all":"تفعيل على الكل","Apply defaults":"تطبيق الإعدادات الافتراضية","Apply Defaults":"تطبيق الإعدادات الافتراضية","apply factory defaults to selected sources":"تطبيق إعدادات المصنع الافتراضية على المصادر المختارة","Selected Drawings":"الرسومات المختارة",Solid:"ثابت",Gradient:"متدرج","No results found":"لا توجد نتائج","Add custom color_Color Picker":"إضافة لون مخصص","Opacity_Color Picker":"الشفافية","Add_Color Picker":"إضافة","Remove color":"إزالة اللون","Please enter the right date format yyyy-mm-dd":"الرجاء إدخال التاريخ بالشكل الصحيح يوم- شهر- سنة","Please enter the right date":"الرجاء إدخال التاريخ بالشكل الصحيح","Please enter the right time format hh:mm":"الرجاء إدخال الوقت بالشكل الصحيح ساعة: دقيقة","recently used_emoji_group":"مستخدَمٌ حديثاً","smiles & people_emoji_group":"الابتسامات والأشخاص","animals & nature_emoji_group":"الحيوانات والطبيعة","food & drink_emoji_group":"الطعام والشراب",activity_emoji_group:"أنشطة","travel & places_emoji_group":"السفر والأماكن",objects_emoji_group:"أشياء",symbols_emoji_group:"رموز",flags_emoji_group:"أعلام"}; \ No newline at end of file diff --git a/charting_library/bundles/042ec21ea57ec386282b5e437ced14a0.svg b/charting_library/bundles/042ec21ea57ec386282b5e437ced14a0.svg new file mode 100644 index 00000000..657028ef --- /dev/null +++ b/charting_library/bundles/042ec21ea57ec386282b5e437ced14a0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/04ec25351d493cec3ade55e686f71c3b.svg b/charting_library/bundles/04ec25351d493cec3ade55e686f71c3b.svg new file mode 100644 index 00000000..50d171a1 --- /dev/null +++ b/charting_library/bundles/04ec25351d493cec3ade55e686f71c3b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0533bc7f87e4fd35c549693ccb280cbc.svg b/charting_library/bundles/0533bc7f87e4fd35c549693ccb280cbc.svg new file mode 100644 index 00000000..d868ba61 --- /dev/null +++ b/charting_library/bundles/0533bc7f87e4fd35c549693ccb280cbc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/062c248cf8d2c525bd9526653ab95657.svg b/charting_library/bundles/062c248cf8d2c525bd9526653ab95657.svg new file mode 100644 index 00000000..966295d8 --- /dev/null +++ b/charting_library/bundles/062c248cf8d2c525bd9526653ab95657.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0788cb238b1a4b247dc64b6520a1de87.svg b/charting_library/bundles/0788cb238b1a4b247dc64b6520a1de87.svg new file mode 100644 index 00000000..cb222aef --- /dev/null +++ b/charting_library/bundles/0788cb238b1a4b247dc64b6520a1de87.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/07958991e829b26257b34748fe61b908.svg b/charting_library/bundles/07958991e829b26257b34748fe61b908.svg new file mode 100644 index 00000000..4efd9cab --- /dev/null +++ b/charting_library/bundles/07958991e829b26257b34748fe61b908.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0be05afe69640ce88aa24265aa2effab.svg b/charting_library/bundles/0be05afe69640ce88aa24265aa2effab.svg new file mode 100644 index 00000000..82162224 --- /dev/null +++ b/charting_library/bundles/0be05afe69640ce88aa24265aa2effab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0bfbdf5c0e06948136651805ba740256.svg b/charting_library/bundles/0bfbdf5c0e06948136651805ba740256.svg new file mode 100644 index 00000000..af95508a --- /dev/null +++ b/charting_library/bundles/0bfbdf5c0e06948136651805ba740256.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0da4ec054e8a1847302dceafff367d5f.svg b/charting_library/bundles/0da4ec054e8a1847302dceafff367d5f.svg new file mode 100644 index 00000000..71a73363 --- /dev/null +++ b/charting_library/bundles/0da4ec054e8a1847302dceafff367d5f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0dccec7ce2c9a2fe85d49d9ab8f1480b.svg b/charting_library/bundles/0dccec7ce2c9a2fe85d49d9ab8f1480b.svg new file mode 100644 index 00000000..d27b1f81 --- /dev/null +++ b/charting_library/bundles/0dccec7ce2c9a2fe85d49d9ab8f1480b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/0f7af004dd47aafc17272eca6e543808.svg b/charting_library/bundles/0f7af004dd47aafc17272eca6e543808.svg new file mode 100644 index 00000000..9523f376 --- /dev/null +++ b/charting_library/bundles/0f7af004dd47aafc17272eca6e543808.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1000.03457f0bee8e78a74471.js b/charting_library/bundles/1000.03457f0bee8e78a74471.js new file mode 100644 index 00000000..f3702bef --- /dev/null +++ b/charting_library/bundles/1000.03457f0bee8e78a74471.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1e3],{17683:t=>{t.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:t=>{t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},98526:(t,e,i)=>{"use strict";i.d(e,{Dialog:()=>h});var o=i(59496),s=i(97754),n=i(50655),a=i(88216),r=i(90186),l=i(17683);class h extends o.PureComponent{constructor(){super(...arguments),this._manager=new a.OverlapManager,this._handleSlot=t=>{this._manager.setContainer(t)}}render(){const{rounded:t=!0,shadowed:e=!0,fullscreen:i=!1,darker:a=!1,className:h,backdrop:d}=this.props,c=s(h,l.dialog,t&&l.rounded,e&&l.shadowed,i&&l.fullscreen,a&&l.darker),u=(0,r.filterDataProps)(this.props),g=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(n.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:l.backdrop}),o.createElement("div",{...u,className:c,style:g,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(n.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:t,left:e,width:i,right:o,top:s,zIndex:n,height:a}=this.props;return{bottom:t,left:e,right:o,top:s,zIndex:n,maxWidth:i,height:a}}}},95711:(t,e,i)=>{"use strict";i.d(e,{PopupContext:()=>o});const o=i(59496).createContext(null)},81e3:(t,e,i)=>{"use strict";i.d(e,{PopupDialog:()=>S});var o=i(59496),s=i(97754),n=i(88537),a=i(98526),r=i(86431),l=i(76594),h=i(64514);function d(t,e,i,o){return t+e>o&&(t=o-e),t{if(0!==t.button||this._isTargetNoDraggable(t))return;t.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const e=c(u(t));this._dragStart(e)},this._onTouchDragStart=t=>{if(this._isTargetNoDraggable(t))return;this._canBeTouchClick=!0,t.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const e=c(g(t));this._dragStart(e)},this._onMouseDragEnd=t=>{t.target instanceof Node&&this._header.contains(t.target)&&t.preventDefault(), +document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=t=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(t){if(t instanceof SVGElement){const e=document.createEvent("SVGEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}t instanceof HTMLElement&&t.click()}(t.target))},this._onMouseDragMove=t=>{const e=c(u(t));this._dragMove(e)},this._onTouchDragMove=t=>{this._canBeTouchClick=!1,t.preventDefault();const e=c(g(t));this._dragMove(e)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=t,this._header=e,this._options=i,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(t){this._options=t}_dragStart(t){const e=this._dialog.getBoundingClientRect();this._drag={startX:t.x,startY:t.y,finishX:t.x,finishY:t.y,dialogX:e.left,dialogY:e.top};const i=Math.round(e.left),o=Math.round(e.top);this._dialog.style.transform=`translate(${i}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(t){if(this._drag){if(this._drag.finishX=t.x,this._drag.finishY=t.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const e=t.x-this._drag.startX,i=t.y-this._drag.startY;this._moveDialog(this._drag.dialogX+e,this._drag.dialogY+i)}this._frame=null})}}_moveDialog(t,e){const i=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,s=d(t,i.width,o?0:-1/0,o?window.innerWidth:1/0),n=d(e,i.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(s)}px, ${Math.round(n)}px)`}_isTargetNoDraggable(t){return t.target instanceof Element&&null!==t.target.closest("[data-disable-drag]")}}const _={vertical:0};class m{constructor(t,e){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=t,this._guard=e.guard||_,this._calculateDialogPosition=e.calculateDialogPosition,this._initialHeight=t.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(t){this._guard=t.guard||_,this._calculateDialogPosition=t.calculateDialogPosition}setFullscreen(t){this._isFullscreen!==t&&(this._isFullscreen=t,this.recalculateBounds())}centerAndFit(){ +const{x:t,y:e}=this.getDialogsTopLeftCoordinates(),i=this._calcAvailableHeight(),o=this._calcDialogHeight();if(i===o)if(this._calculateDialogPosition){const{left:t,top:e}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(t)}px, ${Math.round(e)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${t}px, ${e}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:t,clientWidth:e}=document.documentElement,i=this._calcDialogHeight(),o=e/2-this._dialog.clientWidth/2,s=t/2-i/2;return{x:Math.round(o),y:Math.round(s)}}recalculateBounds(){const{clientHeight:t,clientWidth:e}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:i}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:e,clientHeight:t},{vertical:i}),{left:s,top:n}=o;this._dialog.style.transform=`translate(${Math.round(s)}px, ${Math.round(n)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),s=t-2*i,n=d(o.left,o.width,0,e),a=d(o.top,o.height,i,t);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(n)}px, ${Math.round(a)}px)`,this._dialog.style.height=s{const{reference:e}=this.props;this._dialog=t,"function"==typeof e&&e(t)},this._handleFocus=t=>{this._moveToTop()},this._handleMouseDown=t=>{this._moveToTop()},this._handleTouchStart=t=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(v.PopupContext.Provider,{value:this},o.createElement(l.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},t=>o.createElement("div",{ref:t,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},o.createElement(a.Dialog,{style:this._applyAnimationCSSVariables(),...this.props,reference:this._handleDialogRef,className:s(D.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:t,boundByScreen:e,onDragStart:i}=this.props,o=(0,n.ensureNotNull)(this._dialog);if(t){ +const t=o.querySelector("[data-dragg-area]");t&&t instanceof HTMLElement&&(this._drag=new p(o,t,{boundByScreen:Boolean(e),onDragStart:i}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,y.setFixedBodyState)(!0);const{guard:s,calculateDialogPosition:a}=this.props;this._resize=new m(o,{guard:s,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:t,calculateDialogPosition:e}=this.props;this._resize.updateOptions({guard:t,calculateDialogPosition:e}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,y.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(t){if(this._resize&&this._dialog){const{x:e,y:i}=t,{x:o,y:s}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",e+"px"),this._dialog.style.setProperty("--animationTranslateStartY",i+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",s+"px"),this._dialog.classList.add(D.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}x.contextType=f.PortalContext,x.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const S=(0,r.makeOverlapable)(x)}}]); \ No newline at end of file diff --git a/charting_library/bundles/1065.c486e71c0f4ad53d97a0.css b/charting_library/bundles/1065.c486e71c0f4ad53d97a0.css new file mode 100644 index 00000000..d1ae7099 --- /dev/null +++ b/charting_library/bundles/1065.c486e71c0f4ad53d97a0.css @@ -0,0 +1 @@ +.dialog-sXuYOF5A{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-sXuYOF5A{padding:24px 20px;width:100%}}.dialog-sXuYOF5A.radius-sXuYOF5A{border-radius:0}.container-sXuYOF5A{display:flex;flex:auto;flex-direction:column;justify-content:center;text-align:center}.closeButton-sXuYOF5A{cursor:pointer;right:30px;top:30px}.icon-sXuYOF5A{margin:0 auto}.title-sXuYOF5A{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-sXuYOF5A{color:#d1d4dc}@media screen and (max-width:767px){.title-sXuYOF5A{font-size:24px;line-height:32px}}.featureDescription-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:left}html.theme-dark .featureDescription-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:15px;text-align:left}html.theme-dark .description-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A a,html.theme-dark .description-sXuYOF5A a{color:#2962ff}@media (any-hover:hover){.description-sXuYOF5A a:hover,html.theme-dark .description-sXuYOF5A a:hover{color:#1e53e5}}.description-sXuYOF5A p{margin-bottom:13px}.description-sXuYOF5A p:last-child{margin-bottom:0}.wrapperButton-sXuYOF5A{margin-top:40px}.actionButton-sXuYOF5A{cursor:pointer} \ No newline at end of file diff --git a/charting_library/bundles/1065.c486e71c0f4ad53d97a0.rtl.css b/charting_library/bundles/1065.c486e71c0f4ad53d97a0.rtl.css new file mode 100644 index 00000000..fadb0875 --- /dev/null +++ b/charting_library/bundles/1065.c486e71c0f4ad53d97a0.rtl.css @@ -0,0 +1 @@ +.dialog-sXuYOF5A{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-sXuYOF5A{padding:24px 20px;width:100%}}.dialog-sXuYOF5A.radius-sXuYOF5A{border-radius:0}.container-sXuYOF5A{display:flex;flex:auto;flex-direction:column;justify-content:center;text-align:center}.closeButton-sXuYOF5A{cursor:pointer;left:30px;top:30px}.icon-sXuYOF5A{margin:0 auto}.title-sXuYOF5A{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-sXuYOF5A{color:#d1d4dc}@media screen and (max-width:767px){.title-sXuYOF5A{font-size:24px;line-height:32px}}.featureDescription-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:right}html.theme-dark .featureDescription-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A{color:#131722;font-size:18px;line-height:28px;margin-top:15px;text-align:right}html.theme-dark .description-sXuYOF5A{color:#d1d4dc}.description-sXuYOF5A a,html.theme-dark .description-sXuYOF5A a{color:#2962ff}@media (any-hover:hover){.description-sXuYOF5A a:hover,html.theme-dark .description-sXuYOF5A a:hover{color:#1e53e5}}.description-sXuYOF5A p{margin-bottom:13px}.description-sXuYOF5A p:last-child{margin-bottom:0}.wrapperButton-sXuYOF5A{margin-top:40px}.actionButton-sXuYOF5A{cursor:pointer} \ No newline at end of file diff --git a/charting_library/bundles/1075.2745aa8533e240f5a5aa.js b/charting_library/bundles/1075.2745aa8533e240f5a5aa.js deleted file mode 100644 index 7ed8c0fc..00000000 --- a/charting_library/bundles/1075.2745aa8533e240f5a5aa.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1075],{16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var s=n(59496);const r=s.forwardRef((e,t)=>{const{icon:n="",...r}=e;return s.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const s=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),s=n.style;s.visibility="hidden",s.width="100px",s.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-o}return e}})();function r(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function o(e,t){return parseInt(i(e,t))}let l=0,a=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++l){const e=i(t,"overflow"),l=o(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(r(n,"right",s()+"px"),t.style.paddingRight=l+s()+"px",a=!0),t.classList.add("i-no-scroll")}else if(!e&&l>0&&0==--l&&(t.classList.remove("i-no-scroll"),a)){r(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=s()),t.style.paddingRight=(e<0?0:e)+"px",a=!1}}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>i});var s=n(59496),r=n(39640);function i(e){const{click:t,mouseDown:n,touchEnd:i,touchStart:o,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,s.useRef)(null),d=(0,s.useRef)(new CustomEvent("timestamp").timeStamp);return(0,s.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:o},s=a?a.current:u.current;return(0,r.addOutsideEventListener)(d.current,s,l,c,e)},[t,n,i,o,l]),a||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var s=n(59496);class r extends s.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>s});const s=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>_,Menu:()=>g}) -;var s=n(59496),r=n(97754),i=n.n(r),o=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),f=n(16059);const _=f;class g extends s.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,s,r,i;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,o.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const f=u.height>m;if(f){(0,o.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:_,height:g}=u,v="function"==typeof a?a(_,g,d):a,y=h-(null!==(s=v.overrideWidth)&&void 0!==s?s:_)-0,x=(0,l.clamp)(v.x,0,Math.max(0,y)),C=0+p,w=d-(null!==(r=v.overrideHeight)&&void 0!==r?r:g)-0;let M=(0,l.clamp)(v.y,C,Math.max(C,w));if(v.forbidCorrectYCoord&&M{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,o.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,o.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,o.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{ -e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,children:o,minWidth:l,theme:u=f,className:d,maxHeight:h,onMouseOver:_,onMouseOut:g,onKeyDown:y,onFocus:x,onBlur:C}=this.props,{appearingMenuHeight:w,appearingMenuWidth:M,appearingPosition:b,isMeasureValid:S}=this.state;return s.createElement(m.MenuContext.Provider,{value:this},s.createElement(p.SubmenuHandler,null,s.createElement(c.SlotContext.Provider,{value:this._manager},s.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,className:i()(d,u.menuWrap,!S&&u.isMeasuring),style:{height:w,left:b&&b.x,minWidth:l,position:"fixed",top:b&&b.y,width:M},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:_,onMouseOut:g,onKeyDown:y,onFocus:x,onBlur:C},s.createElement("div",{className:i()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==w?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},s.createElement(v,{className:u.menuBox},o)))),s.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function v(e){const t=(0,o.ensureNotNull)((0,s.useContext)(p.SubmenuContext)),n=s.useRef(null);return s.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(s=e.target,null===(r=n.current)||void 0===r?void 0:r.contains(s))))return;var s,r;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}g.contextType=p.SubmenuContext},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>i,getRootOverlapManager:()=>l}) -;var s=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class i{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const s=this._document.createElement("div");if(s.style.position=t.position,s.style.zIndex=this._index.toString(),s.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(s);else if(t.index<=0)this._container.insertBefore(s,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(s,e)}}else"reverse"===t.direction?this._container.insertBefore(s,this._container.firstChild):this._container.appendChild(s);return this._windows.set(e,s),++this._index,s}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const o=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,s.ensureDefined)(o.get(t));{const t=new i(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return o.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>i});var s=n(59496),r=n(59064);const i=s.createContext(r.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var s=n(59496),r=n(87995),i=n(9423),o=n(88216),l=n(50655);class a extends s.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(s.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,o.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext -;const c=s.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var s=n(59496);class r extends s.Component{shouldComponentUpdate(){return!1}render(){return s.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=s.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>r,SubmenuHandler:()=>i});var s=n(59496);const r=s.createContext(null);function i(e){const[t,n]=(0,s.useState)(null),i=(0,s.useRef)(null),o=(0,s.useRef)(new Map);return(0,s.useEffect)(()=>()=>{null!==i.current&&clearTimeout(i.current)},[]),s.createElement(r.Provider,{value:{current:t,setCurrent:function(e){null!==i.current&&(clearTimeout(i.current),i.current=null);null===t?n(e):i.current=setTimeout(()=>{i.current=null,n(e)},100)},registerSubmenu:function(e,t){return o.current.set(e,t),()=>{o.current.delete(e)}},isSubmenuNode:function(e){return Array.from(o.current.values()).some(t=>t(e))}}},e.children)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/107ad28074a1e10592eb2dc1a622a199.svg b/charting_library/bundles/107ad28074a1e10592eb2dc1a622a199.svg new file mode 100644 index 00000000..0d27444b --- /dev/null +++ b/charting_library/bundles/107ad28074a1e10592eb2dc1a622a199.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/107e8251a0eb3758b47077295437a81e.svg b/charting_library/bundles/107e8251a0eb3758b47077295437a81e.svg new file mode 100644 index 00000000..959ed12d --- /dev/null +++ b/charting_library/bundles/107e8251a0eb3758b47077295437a81e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1098c7da5fcb389d9ca6f1b830c9dc7b.svg b/charting_library/bundles/1098c7da5fcb389d9ca6f1b830c9dc7b.svg new file mode 100644 index 00000000..8cdf4ade --- /dev/null +++ b/charting_library/bundles/1098c7da5fcb389d9ca6f1b830c9dc7b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/111e5d0e64351b2f7ac606b653993cbe.svg b/charting_library/bundles/111e5d0e64351b2f7ac606b653993cbe.svg new file mode 100644 index 00000000..11e54250 --- /dev/null +++ b/charting_library/bundles/111e5d0e64351b2f7ac606b653993cbe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/115d41d15c6f506cd74214a1b277d0c9.svg b/charting_library/bundles/115d41d15c6f506cd74214a1b277d0c9.svg new file mode 100644 index 00000000..dcaa99e6 --- /dev/null +++ b/charting_library/bundles/115d41d15c6f506cd74214a1b277d0c9.svg @@ -0,0 +1 @@ + diff --git a/charting_library/bundles/118186fbbe46a3201d049161d17aa76a.svg b/charting_library/bundles/118186fbbe46a3201d049161d17aa76a.svg new file mode 100644 index 00000000..91da4a24 --- /dev/null +++ b/charting_library/bundles/118186fbbe46a3201d049161d17aa76a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/11cab6ced9c9b2073f5e8a987766f54f.svg b/charting_library/bundles/11cab6ced9c9b2073f5e8a987766f54f.svg new file mode 100644 index 00000000..2ae707ec --- /dev/null +++ b/charting_library/bundles/11cab6ced9c9b2073f5e8a987766f54f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1201.618e324514476ad87261.js b/charting_library/bundles/1201.618e324514476ad87261.js new file mode 100644 index 00000000..3ddaf622 --- /dev/null +++ b/charting_library/bundles/1201.618e324514476ad87261.js @@ -0,0 +1,94 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1201],{72589:e=>{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a-1}t.exports=function(e){return e=e||window.navigator.userAgent,!(o(e)||i(e)||function(e){return e=e||window.navigator.userAgent,!!r(e)&&/Version\/[\d.]+/.test(e)&&!c(e)}(e)||c(e)||function(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<48}(e)||function(e){return!a(e)&&!s(e)&&/samsung/i.test(e)}(e))}},{"./is-android":4,"./is-chrome":6,"./is-ios-firefox":13,"./is-ios-webview":15,"./is-samsung":18}],20:[function(e,t,n){t.exports=e("./dist/is-android")},{"./dist/is-android":4}],21:[function(e,t,n){t.exports=e("./dist/is-chrome-os")},{"./dist/is-chrome-os":5}],22:[function(e,t,n){t.exports=e("./dist/is-chrome")},{"./dist/is-chrome":6}],23:[function(e,t,n){t.exports=e("./dist/is-edge")},{"./dist/is-edge":7}],24:[function(e,t,n){t.exports=e("./dist/is-firefox")},{"./dist/is-firefox":8}],25:[function(e,t,n){t.exports=e("./dist/is-ie")},{"./dist/is-ie":9}],26:[function(e,t,n){t.exports=e("./dist/is-ie10")},{"./dist/is-ie10":10}],27:[function(e,t,n){t.exports=e("./dist/is-ie9")},{"./dist/is-ie9":12}],28:[function(e,t,n){t.exports=e("./dist/is-ios-safari")},{"./dist/is-ios-safari":14}],29:[function(e,t,n){t.exports=e("./dist/is-ios-webview")},{"./dist/is-ios-webview":15}],30:[function(e,t,n){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":16}],31:[function(e,t,n){t.exports=e("./dist/is-ios")},{"./dist/is-ios":17}],32:[function(e,t,n){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":19}],33:[function(e,t,n){"use strict";function r(e){return e.className.trim().split(/\s+/)}function i(e){for(var t=[],n=1;n0},e.createChild=function(t){t.prototype=Object.create(e.prototype,{constructor:t})},e}();t.exports=r},{}],35:[function(e,t,n){"use strict";var r="undefined"!=typeof Promise?Promise:null,i=function(){function e(t){var n=this;"function"!=typeof t?(this._promise=new e.Promise((function(e,t){n._resolveFunction=e,n._rejectFunction=t})),t=t||{},this._onResolve=t.onResolve||e.defaultOnResolve,this._onReject=t.onReject||e.defaultOnReject,e.shouldCatchExceptions(t)&&this._promise.catch((function(){})),this._resetState()):this._promise=new e.Promise(t)}return e.defaultOnResolve=function(t){return e.Promise.resolve(t)},e.defaultOnReject=function(t){return e.Promise.reject(t)},e.setPromise=function(t){e.Promise=t},e.shouldCatchExceptions=function(t){return t.hasOwnProperty("suppressUnhandledPromiseMessage")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(e.suppressUnhandledPromiseMessage)},e.all=function(t){return e.Promise.all(t)},e.allSettled=function(t){return e.Promise.allSettled(t)},e.race=function(t){return e.Promise.race(t)},e.reject=function(t){return e.Promise.reject(t)},e.resolve=function(t){return e.Promise.resolve(t)},e.prototype.then=function(){for(var e,t=[],n=0;n=a&&(c.matchStrength=a),n.push(c);break}}}},{"./clone":48,"./matches":51}],47:[function(e,t,n){"use strict";t.exports={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19], +code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}}},{}],48:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clone=void 0,n.clone=function(e){return e?JSON.parse(JSON.stringify(e)):null}},{}],49:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findBestMatch=void 0,n.findBestMatch=function(e){return function(e){var t=e.filter((function(e){return e.matchStrength})).length;return t>0&&t===e.length}(e)?e.reduce((function(e,t){return e?Number(e.matchStrength)=t&&o<=n}(e,t[0],t[1]):function(e,t){return(t=String(t)).substring(0,e.length)===e.substring(0,t.length)}(e,t)}},{}],52:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Framebus=void 0;var r=e("./lib/is-not-string"),i=e("./lib/subscription-args-invalid"),o=e("./lib/broadcast"),a=e("./lib/package-payload"),s=e("./lib/constants"),c="undefined"!=typeof window&&window.Promise,l=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.isDestroyed=!1,this.listeners=[]}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(s.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){if(this.isDestroyed)return!1;var i=this.origin;if(e=this.namespaceEvent(e),r.isntString(e))return!1;if(r.isntString(i))return!1;"function"==typeof t&&(n=t,t=void 0) +;var s=a.packagePayload(e,i,t,n);return!!s&&(o.broadcast(window.top||window.self,s,i),!0)},e.prototype.emitAsPromise=function(t,n){var r=this;return new e.Promise((function(e,i){r.emit(t,n,(function(t){e(t)}))||i(new Error('Listener not added for "'+t+'"'))}))},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var n=this,r=this.origin,o=t;return e=this.namespaceEvent(e),!i.subscriptionArgsInvalid(e,o,r)&&(this.verifyDomain&&(o=function(){for(var e=[],r=0;r=0;o--){var a=i.childWindows[o];a.closed?i.childWindows.splice(o,1):n!==a&&r.broadcast(a.top,e,t)}}},{"./broadcast":56,"./constants":57}],56:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcast=void 0;var r=e("./has-opener");n.broadcast=function e(t,n,i){var o,a=0;try{for(t.postMessage(n,i),r.hasOpener(t)&&t.opener.top!==window.top&&e(t.opener.top,n,i);o=t.frames[a];)e(o,n,i),a++}catch(e){}}},{"./has-opener":59}],57:[function(e,t,n){"use strict" +;Object.defineProperty(n,"__esModule",{value:!0}),n.subscribers=n.childWindows=n.prefix=void 0,n.prefix="/*framebus*/",n.childWindows=[],n.subscribers={}},{}],58:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dispatch=void 0;var r=e("./constants");n.dispatch=function(e,t,n,i,o){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),i&&a.push(i);for(var s=0;s-1}(e)}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-chrome-os":21,"@braintree/browser-detection/is-ie9":27,"@braintree/browser-detection/is-ios":31}],68:[function(e,t,n){"use strict";var r=e("./lib/device");t.exports=function(){return!r.isSamsungBrowser()}},{"./lib/device":67}],69:[function(e,t,n){t.exports=e("./dist/supports-input-formatting")},{"./dist/supports-input-formatting":68}],70:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./errors"),o=e("../lib/assign").assign,a=e("../lib/promise"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("@braintree/wrap-promise");function u(e){this._client=e.client}u.prototype.getRewardsBalance=function(e){var t,n=e.nonce;return n?(delete(t=o({_meta:{source:"american-express"},paymentMethodNonce:n},e)).nonce,this._client.request({method:"get",endpoint:"payment_methods/amex_rewards_balance",data:t}).catch((function(e){return a.reject(new r({type:i.AMEX_NETWORK_ERROR.type,code:i.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express rewards balance.",details:{originalError:e}}))}))):a.reject(new r({type:i.AMEX_NONCE_REQUIRED.type,code:i.AMEX_NONCE_REQUIRED.code,message:"getRewardsBalance must be called with a nonce."}))},u.prototype.getExpressCheckoutProfile=function(e){return e.nonce?this._client.request({method:"get",endpoint:"payment_methods/amex_express_checkout_cards/"+e.nonce,data:{_meta:{source:"american-express"},paymentMethodNonce:e.nonce}}).catch((function(e){return a.reject(new r({type:i.AMEX_NETWORK_ERROR.type,code:i.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express Checkout nonce profile.",details:{originalError:e}}))})):a.reject(new r({type:i.AMEX_NONCE_REQUIRED.type,code:i.AMEX_NONCE_REQUIRED.code, +message:"getExpressCheckoutProfile must be called with a nonce."}))},u.prototype.teardown=function(){return c(this,s(u.prototype)),a.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/assign":123,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":71,"@braintree/wrap-promise":44}],71:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={AMEX_NONCE_REQUIRED:{type:r.types.MERCHANT,code:"AMEX_NONCE_REQUIRED"},AMEX_NETWORK_ERROR:{type:r.types.NETWORK,code:"AMEX_NETWORK_ERROR"}}},{"../lib/braintree-error":126}],72:[function(e,t,n){"use strict";var r=e("./american-express"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="American Express";return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,new r(e)}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./american-express":70,"@braintree/wrap-promise":44}],73:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/analytics"),o=e("./errors"),a=e("../lib/promise"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("@braintree/wrap-promise");function u(e){this._instantiatedWithClient=Boolean(!e.useDeferredClient),this._client=e.client,this._createPromise=e.createPromise,this._client&&this._setMerchantIdentifier()}u.prototype._waitForClient=function(){return this._client?a.resolve():this._createPromise.then(function(e){this._client=e,this._setMerchantIdentifier()}.bind(this))},u.prototype._setMerchantIdentifier=function(){var e=this._client.getConfiguration().gatewayConfiguration.applePayWeb;e&&Object.defineProperty(this,"merchantIdentifier",{value:e.merchantIdentifier,configurable:!1,writable:!1})},u.prototype.createPaymentRequest=function(e){return this._instantiatedWithClient?this._createPaymentRequestSynchronously(e):this._waitForClient().then(function(){return this._createPaymentRequestSynchronously(e)}.bind(this))},u.prototype._createPaymentRequestSynchronously=function(e){var t=this._client.getConfiguration().gatewayConfiguration.applePayWeb,n={countryCode:t.countryCode,currencyCode:t.currencyCode,merchantCapabilities:t.merchantCapabilities||["supports3DS"],supportedNetworks:t.supportedNetworks.map((function(e){return"mastercard"===e?"masterCard":e}))};return Object.assign({},n,e)},u.prototype.performValidation=function(e){var t=this;return e&&e.validationURL?this._waitForClient().then((function(){var n={validationUrl:e.validationURL,domainName:e.domainName||window.location.hostname,merchantIdentifier:e.merchantIdentifier||t.merchantIdentifier};return null!=e.displayName&&(n.displayName=e.displayName),t._client.request({method:"post", +endpoint:"apple_pay_web/sessions",data:{_meta:{source:"apple-pay"},applePayWebSession:n}})})).then((function(e){return i.sendEvent(t._client,"applepay.performValidation.succeeded"),a.resolve(e)})).catch((function(e){return i.sendEvent(t._client,"applepay.performValidation.failed"),"CLIENT_REQUEST_ERROR"===e.code?a.reject(new r({type:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.type,code:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.code,message:o.APPLE_PAY_MERCHANT_VALIDATION_FAILED.message,details:{originalError:e.details.originalError}})):a.reject(new r({type:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.type,code:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.code,message:o.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.message,details:{originalError:e}}))})):a.reject(new r(o.APPLE_PAY_VALIDATION_URL_REQUIRED))},u.prototype.tokenize=function(e){var t=this;return e.token?this._waitForClient().then((function(){return t._client.request({method:"post",endpoint:"payment_methods/apple_payment_tokens",data:{_meta:{source:"apple-pay"},applePaymentToken:Object.assign({},e.token,{paymentData:btoa(JSON.stringify(e.token.paymentData))})}})})).then((function(e){return i.sendEvent(t._client,"applepay.tokenize.succeeded"),a.resolve(e.applePayCards[0])})).catch((function(e){return i.sendEvent(t._client,"applepay.tokenize.failed"),a.reject(new r({type:o.APPLE_PAY_TOKENIZATION.type,code:o.APPLE_PAY_TOKENIZATION.code,message:o.APPLE_PAY_TOKENIZATION.message,details:{originalError:e}}))})):a.reject(new r(o.APPLE_PAY_PAYMENT_TOKEN_REQUIRED))},u.prototype.teardown=function(){return c(this,s(u.prototype)),a.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":74,"@braintree/wrap-promise":44}],74:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={APPLE_PAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"APPLE_PAY_NOT_ENABLED",message:"Apple Pay is not enabled for this merchant."},APPLE_PAY_VALIDATION_URL_REQUIRED:{type:r.types.MERCHANT,code:"APPLE_PAY_VALIDATION_URL_REQUIRED",message:"performValidation must be called with a validationURL."},APPLE_PAY_MERCHANT_VALIDATION_NETWORK:{type:r.types.NETWORK,code:"APPLE_PAY_MERCHANT_VALIDATION_NETWORK",message:"A network error occurred when validating the Apple Pay merchant."},APPLE_PAY_MERCHANT_VALIDATION_FAILED:{type:r.types.MERCHANT,code:"APPLE_PAY_MERCHANT_VALIDATION_FAILED",message:"Make sure you have registered your domain name in the Braintree Control Panel."},APPLE_PAY_PAYMENT_TOKEN_REQUIRED:{type:r.types.MERCHANT,code:"APPLE_PAY_PAYMENT_TOKEN_REQUIRED",message:"tokenize must be called with a payment token."},APPLE_PAY_TOKENIZATION:{type:r.types.NETWORK,code:"APPLE_PAY_TOKENIZATION",message:"A network error occurred when processing the Apple Pay payment."}}},{"../lib/braintree-error":126}],75:[function(e,t,n){"use strict" +;var r=e("./apple-pay"),i=e("../lib/analytics"),o=e("../lib/braintree-error"),a=e("../lib/basic-component-verification"),s=e("../lib/create-assets-url"),c=e("../lib/create-deferred-client"),l=e("../lib/promise"),u=e("./errors"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){return a.verify({name:"Apple Pay",client:e.client,authorization:e.authorization}).then((function(){var t,n=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:"Apple Pay"}).then((function(e){return e.getConfiguration().gatewayConfiguration.applePayWeb?(i.sendEvent(e,"applepay.initialized"),e):l.reject(new o(u.APPLE_PAY_NOT_ENABLED))}));return e.createPromise=n,t=new r(e),e.useDeferredClient?t:n.then((function(e){return t._client=e,t}))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./apple-pay":73,"./errors":74,"@braintree/wrap-promise":44}],76:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-ie"),i=e("@braintree/browser-detection/is-ie9");t.exports={isIe:r,isIe9:i}},{"@braintree/browser-detection/is-ie":25,"@braintree/browser-detection/is-ie9":27}],77:[function(e,t,n){"use strict";var r=e("./constants").BRAINTREE_VERSION,i=e("./request/graphql"),o=e("./request"),a=e("../lib/is-verified-domain"),s=e("../lib/braintree-error"),c=e("../lib/convert-to-braintree-error"),l=e("./get-configuration").getConfiguration,u=e("../lib/create-authorization-data"),d=e("../lib/add-metadata"),p=e("../lib/promise"),_=e("@braintree/wrap-promise"),E=e("../lib/once"),h=e("../lib/deferred"),f=e("../lib/assign").assign,m=e("../lib/analytics"),y=e("./errors"),A=e("../lib/constants").VERSION,T=e("../lib/constants").GRAPHQL_URLS,I=e("../lib/methods"),N=e("../lib/convert-methods-to-error"),b=e("../lib/assets"),O=e("../lib/constants").FRAUDNET_FNCLS,g=e("../lib/constants").FRAUDNET_SOURCE,v=e("../lib/constants").FRAUDNET_URL,P={};function R(e){var t,n;if(e=e||{},t=JSON.stringify(e),!(n=e.gatewayConfiguration))throw new s(y.CLIENT_MISSING_GATEWAY_CONFIGURATION);["assetsUrl","clientApiUrl","configUrl"].forEach((function(e){if(e in n&&!a(n[e]))throw new s({type:y.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:y.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:e+" property is on an invalid domain."})})),this.getConfiguration=function(){return JSON.parse(t)},this._request=o,this._configuration=this.getConfiguration(),this._clientApiBaseUrl=n.clientApiUrl+"/v1/",n.graphQL&&(this._graphQL=new i({graphQL:n.graphQL}))}R.initialize=function(e){var t,n,r=P[e.authorization];if(r)return m.sendEvent(r,"custom.client.load.cached"),r;try{n=u(e.authorization)}catch(e){return p.reject(new s(y.CLIENT_INVALID_AUTHORIZATION))}return r=l(n).then((function(n){return e.debug&&(n.isDebug=!0),n.authorization=e.authorization,t=new R(n)})),P[e.authorization]=r,m.sendEvent(r,"custom.client.load.initialized"),r.then((function(e){ +return m.sendEvent(t,"custom.client.load.succeeded"),e})).catch((function(t){return delete P[e.authorization],p.reject(t)}))},R.clearCache=function(){P={}},R.prototype._findOrCreateFraudnetJSON=function(e){var t,n,r,i,o=document.querySelector('script[fncls="'+O+'"]');o||((o=document.body.appendChild(document.createElement("script"))).type="application/json",o.setAttribute("fncls",O)),t=this.getConfiguration(),n={rda_tenant:"bt_card",mid:t.gatewayConfiguration.merchantId},(r=t.authorizationFingerprint)&&r.split("&").forEach((function(e){var t=e.split("=");"customer_id"===t[0]&&t.length>1&&(n.cid=t[1])})),i={f:e.substr(0,32),fp:n,bu:!1,s:g},o.text=JSON.stringify(i)},R.prototype.request=function(e,t){var n=this,i=new p((function(t,i){var o,a,l,u,p,_=Boolean("payment_methods/credit_cards"===e.endpoint&&n.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"!==e.api&&(e.method?e.endpoint||(o="options.endpoint"):o="options.method"),o)throw new s({type:y.CLIENT_OPTION_REQUIRED.type,code:y.CLIENT_OPTION_REQUIRED.code,message:o+" is required when making a request."});if(a="api"in e?e.api:"clientApi",u={method:e.method,graphQL:n._graphQL,timeout:e.timeout,metadata:n._configuration.analyticsMetadata},"clientApi"===a)l=n._clientApiBaseUrl,u.data=d(n._configuration,e.data);else{if("graphQLApi"!==a)throw new s({type:y.CLIENT_OPTION_INVALID.type,code:y.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});l=T[n._configuration.gatewayConfiguration.environment],e.endpoint="",u.method="post",u.data=f({clientSdkMetadata:{platform:n._configuration.analyticsMetadata.platform,source:n._configuration.analyticsMetadata.source,integration:n._configuration.analyticsMetadata.integration,sessionId:n._configuration.analyticsMetadata.sessionId,version:A}},e.data),u.headers={Authorization:"Bearer "+((p=n._configuration).authorizationFingerprint||p.authorization),"Braintree-Version":r}}u.url=l+e.endpoint,u.sendAnalyticsEvent=function(e){m.sendEvent(n,e)},n._request(u,(function(e,r,o){var l,u;(u=function(e,t){var n;if(-1===e?n=new s(y.CLIENT_REQUEST_TIMEOUT):401===e?n=new s(y.CLIENT_AUTHORIZATION_INVALID):403===e?n=new s(y.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?n=new s(y.CLIENT_RATE_LIMITED):e>=500?n=new s(y.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(n=c(t,{type:y.CLIENT_REQUEST_ERROR.type,code:y.CLIENT_REQUEST_ERROR.code,message:y.CLIENT_REQUEST_ERROR.message})),n)return n.details=n.details||{},n.details.httpStatus=e,n}(o,e))?i(u):"graphQLApi"===a&&r.errors?i(c(r.errors,{type:y.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:y.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:y.CLIENT_GRAPHQL_REQUEST_ERROR.message})):(l=f({_httpStatus:o},r),_&&l.creditCards&&l.creditCards.length>0&&(n._findOrCreateFraudnetJSON(l.creditCards[0].nonce),b.loadScript({src:v,forceScriptReload:!0})),t(l))}))}));return"function"==typeof t?(t=E(h(t)),void i.then((function(e){t(null,e,e._httpStatus)})).catch((function(e){var n=e&&e.details&&e.details.httpStatus;t(e,null,n)}))):i},R.prototype.toJSON=function(){return this.getConfiguration()}, +R.prototype.getVersion=function(){return A},R.prototype.teardown=_((function(){return delete P[this.getConfiguration().authorization],N(this,I(R.prototype)),p.resolve()})),t.exports=R},{"../lib/add-metadata":120,"../lib/analytics":121,"../lib/assets":122,"../lib/assign":123,"../lib/braintree-error":126,"../lib/constants":128,"../lib/convert-methods-to-error":129,"../lib/convert-to-braintree-error":130,"../lib/create-authorization-data":132,"../lib/deferred":134,"../lib/is-verified-domain":155,"../lib/methods":157,"../lib/once":158,"../lib/promise":159,"./constants":78,"./errors":79,"./get-configuration":80,"./request":92,"./request/graphql":90,"@braintree/wrap-promise":44}],78:[function(e,t,n){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],79:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:r.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"},CLIENT_OPTION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:r.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:r.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:r.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:r.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:r.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INVALID",message:"Either the client token has expired and a new one should be generated or the tokenization key has been deactivated or deleted."}}},{"../lib/braintree-error":126}],80:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/promise"),o=e("@braintree/wrap-promise"),a=e("./request"),s=e("@braintree/uuid"),c=e("../lib/constants"),l=e("./errors"),u=e("./request/graphql"),d=e("../lib/constants").GRAPHQL_URLS,p=e("../lib/is-date-string-before-or-on"),_=e("./constants").BRAINTREE_VERSION;t.exports={getConfiguration:o((function(e){return new i((function(t,n){var i,o,E,h,f=s(),m={merchantAppId:window.location.host,platform:c.PLATFORM,sdkVersion:c.VERSION,source:c.SOURCE,integration:c.INTEGRATION, +integrationType:c.INTEGRATION,sessionId:f};o=e.attrs,E=e.configUrl,o._meta=m,o.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,o.configVersion="3",h={url:E,method:"GET",data:o},o.authorizationFingerprint&&e.graphQL?(p(e.graphQL.date,_)&&(h.graphQL=new u({graphQL:{url:e.graphQL.url,features:["configuration"]}})),h.metadata=m):o.tokenizationKey&&(h.graphQL=new u({graphQL:{url:d[e.environment],features:["configuration"]}}),h.metadata=m),a(h,(function(e,a,s){var c;if(e)return c=403===s?l.CLIENT_AUTHORIZATION_INSUFFICIENT:401===s?l.CLIENT_AUTHORIZATION_INVALID:l.CLIENT_GATEWAY_NETWORK,void n(new r({type:c.type,code:c.code,message:c.message,details:{originalError:e}}));i={authorizationType:o.tokenizationKey?"TOKENIZATION_KEY":"CLIENT_TOKEN",authorizationFingerprint:o.authorizationFingerprint,analyticsMetadata:m,gatewayConfiguration:a},t(i)}))}))}))}},{"../lib/braintree-error":126,"../lib/constants":128,"../lib/is-date-string-before-or-on":153,"../lib/promise":159,"./constants":78,"./errors":79,"./request":92,"./request/graphql":90,"@braintree/uuid":40,"@braintree/wrap-promise":44}],81:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./client"),o=e("../lib/promise"),a=e("@braintree/wrap-promise"),s=e("../lib/errors");t.exports={create:a((function(e){return e.authorization?i.initialize(e):o.reject(new r({type:s.INSTANTIATION_OPTION_REQUIRED.type,code:s.INSTANTIATION_OPTION_REQUIRED.code,message:"options.authorization is required when instantiating a client."}))})),VERSION:"3.76.4"}},{"../lib/braintree-error":126,"../lib/errors":137,"../lib/promise":159,"./client":77,"@braintree/wrap-promise":44}],82:[function(e,t,n){"use strict";var r=e("../../lib/querystring"),i=e("../../lib/assign").assign,o=e("./prep-body"),a=e("./parse-body"),s=e("./xhr"),c=s.isAvailable,l=e("./graphql/request"),u=e("./default-request");t.exports={request:function(e,t){!function e(t,n,d){var p,_,E,h,f,m,y,A=t.url,T=t.graphQL,I=t.timeout,N=s.getRequestObject(),b=d,O=Boolean(T&&T.isGraphQLRequest(A,t.data));t.headers=i({"Content-Type":"application/json"},t.headers),A=(E=O?new l(t):new u(t)).getUrl(),h=E.getBody(),f=E.getMethod(),m=E.getHeaders(),"GET"===f&&(A=r.queryify(A,h),h=null),c?N.onreadystatechange=function(){if(4===N.readyState){if(0===N.status&&O)return delete t.graphQL,void e(t,n,d);if(y=a(N.responseText),_=E.adaptResponseBody(y),(p=E.determineStatus(N.status,y))>=400||p<200){if(O&&function(e){var t=!e.data&&e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"UNKNOWN"===t||"INTERNAL"===t}(y))return delete t.graphQL,void e(t,n,d);if(n<1&&function(e){return!e||408===e}(p))return n++,void e(t,n,d);b(_||"error",null,p||500)}else b(null,_,p)}}:(t.headers&&(A=r.queryify(A,m)),N.onload=function(){b(null,a(N.responseText),N.status)},N.onerror=function(){b("error",null,500)},N.onprogress=function(){},N.ontimeout=function(){b("timeout",null,-1)});try{N.open(f,A,!0)}catch(r){if(!O)throw r;return delete t.graphQL,void e(t,n,d)}N.timeout=I,c&&Object.keys(m).forEach((function(e){ +N.setRequestHeader(e,m[e])}));try{N.send(o(f,h))}catch(e){}}(e,0,t)}}},{"../../lib/assign":123,"../../lib/querystring":160,"./default-request":83,"./graphql/request":91,"./parse-body":95,"./prep-body":96,"./xhr":97}],83:[function(e,t,n){"use strict";function r(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}r.prototype.getUrl=function(){return this._url},r.prototype.getBody=function(){return this._data},r.prototype.getMethod=function(){return this._method},r.prototype.getHeaders=function(){return this._headers},r.prototype.adaptResponseBody=function(e){return e},r.prototype.determineStatus=function(e){return e},t.exports=r},{}],84:[function(e,t,n){"use strict";t.exports=function(){return window.navigator.userAgent}},{}],85:[function(e,t,n){"use strict";var r=e("./error"),i=e("../../../../lib/assign").assign,o={AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",SOLO:"Solo",UK_MAESTRO:"UK Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},a={VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro"},s={VISA:"Visa",MASTERCARD:"MasterCard",DISCOVER:"Discover",AMERICAN_EXPRESS:"American Express"},c={VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex"},l={VISA:"visa",MASTERCARD:"master",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",DINERS:"diners",INTERNATIONAL_MAESTRO:"maestro",JCB:"jcb"};function u(e,t){return e.reduce((function(e,n){return t.hasOwnProperty(n)?e.concat(t[n]):e}),[])}t.exports=function(e,t){return e.data&&!e.errors?function(e,t){var n,r=e.data.clientConfiguration;return n={environment:r.environment.toLowerCase(),clientApiUrl:r.clientApiUrl,assetsUrl:r.assetsUrl,analytics:{url:r.analyticsUrl},merchantId:r.merchantId,venmo:"off"},r.supportedFeatures&&(n.graphQL={url:t._graphQL._config.url,features:r.supportedFeatures.map((function(e){return e.toLowerCase()}))}),r.braintreeApi&&(n.braintreeApi=r.braintreeApi),r.applePayWeb&&(n.applePayWeb=r.applePayWeb,n.applePayWeb.supportedNetworks=u(r.applePayWeb.supportedCardBrands,a),delete n.applePayWeb.supportedCardBrands),r.ideal&&(n.ideal=r.ideal),r.kount&&(n.kount={kountMerchantId:r.kount.merchantId}),r.creditCard?(n.challenges=r.creditCard.challenges.map((function(e){return e.toLowerCase()})),n.creditCards={supportedCardTypes:u(r.creditCard.supportedCardBrands,o)},n.threeDSecureEnabled=r.creditCard.threeDSecureEnabled,n.threeDSecure=r.creditCard.threeDSecure):(n.challenges=[],n.creditCards={supportedCardTypes:[]},n.threeDSecureEnabled=!1),r.googlePay&&(n.androidPay={displayName:r.googlePay.displayName,enabled:!0,environment:r.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:r.googlePay.googleAuthorization,paypalClientId:r.googlePay.paypalClientId,supportedNetworks:u(r.googlePay.supportedCardBrands,c)}),r.venmo&&(n.payWithVenmo={merchantId:r.venmo.merchantId,accessToken:r.venmo.accessToken,environment:r.venmo.environment.toLowerCase()}),r.paypal?(n.paypalEnabled=!0, +n.paypal=i({},r.paypal),n.paypal.currencyIsoCode=n.paypal.currencyCode,n.paypal.environment=n.paypal.environment.toLowerCase(),delete n.paypal.currencyCode):n.paypalEnabled=!1,r.unionPay&&(n.unionPay={enabled:!0,merchantAccountId:r.unionPay.merchantAccountId}),r.visaCheckout&&(n.visaCheckout={apikey:r.visaCheckout.apiKey,externalClientId:r.visaCheckout.externalClientId,supportedCardTypes:u(r.visaCheckout.supportedCardBrands,s)}),r.masterpass&&(n.masterpass={merchantCheckoutId:r.masterpass.merchantCheckoutId,supportedNetworks:u(r.masterpass.supportedCardBrands,l)}),r.usBankAccount&&(n.usBankAccount={routeId:r.usBankAccount.routeId,plaid:{publicKey:r.usBankAccount.plaidPublicKey}}),n}(e,t):r(e)}},{"../../../../lib/assign":123,"./error":87}],86:[function(e,t,n){"use strict";var r=e("./error"),i={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"Union Pay",VISA:"Visa"},o={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},a={PSDTWO:"psd2"};t.exports=function(e){return e.data&&!e.errors?(s=e.data.tokenizeCreditCard,c=s.creditCard,l=c.last4?c.last4.substr(2,4):"",(u=c.binData)&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach((function(e){u[e]?u[e]=o[u[e]]:u[e]="Unknown"})),["issuingBank","countryOfIssuance","productId"].forEach((function(e){u[e]||(u[e]="Unknown")}))),t={creditCards:[{binData:u,consumed:!1,description:l?"ending in "+l:"",nonce:s.token,details:{cardholderName:c.cardholderName,expirationMonth:c.expirationMonth,expirationYear:c.expirationYear,bin:c.bin||"",cardType:i[c.brandCode]||"Unknown",lastFour:c.last4||"",lastTwo:l},type:"CreditCard",threeDSecureInfo:null}]},s.authenticationInsight&&(n=s.authenticationInsight.customerAuthenticationRegulationEnvironment,t.creditCards[0].authenticationInsight={regulationEnvironment:a[n]||n.toLowerCase()}),t):r(e);var t,n,s,c,l,u}},{"./error":87}],87:[function(e,t,n){"use strict";t.exports=function(e){var t=e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"VALIDATION"===t?function(e){var t,n,r=function(e){var t=[];return e.forEach((function(e){e.extensions&&e.extensions.inputPath&&function e(t,n,r){var i,o=n.extensions.legacyCode,a=t[0];1!==t.length?(r.forEach((function(e){e.field===a&&(i=e)})),i||(i={field:a,fieldErrors:[]},r.push(i)),e(t.slice(1),n,i.fieldErrors)):r.push({code:o,field:a,message:n.message})}(e.extensions.inputPath.slice(1),e,t)})),t}(e.errors);return 0===r.length?{error:{message:e.errors[0].message}}:{error:{message:(t=r,n=t[0].field,{creditCard:"Credit card is invalid"}[n])},fieldErrors:r}}(e):t?function(e){return{error:{message:e.errors[0].message},fieldErrors:[]}}(e):{error:{message:"There was a problem serving your request"},fieldErrors:[]}}},{}],88:[function(e,t,n){"use strict";t.exports=function(){return{ +query:"query ClientConfiguration { clientConfiguration { analyticsUrl environment merchantId assetsUrl clientApiUrl creditCard { supportedCardBrands challenges threeDSecureEnabled threeDSecure { cardinalAuthenticationJWT } } applePayWeb { countryCode currencyCode merchantIdentifier supportedCardBrands } googlePay { displayName supportedCardBrands environment googleAuthorization paypalClientId } ideal { routeId assetsUrl } kount { merchantId } masterpass { merchantCheckoutId supportedCardBrands } paypal { displayName clientId privacyUrl userAgreementUrl assetsUrl environment environmentNoNetwork unvettedMerchant braintreeClientId billingAgreementsEnabled merchantAccountId currencyCode payeeEmail } unionPay { merchantAccountId } usBankAccount { routeId plaidPublicKey } venmo { merchantId accessToken environment } visaCheckout { apiKey externalClientId supportedCardBrands } braintreeApi { accessToken url } supportedFeatures } }",operationName:"ClientConfiguration"}}},{}],89:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function i(e,t){var n=e.creditCard,i=n&&n.billingAddress,o=n&&n.expirationDate,a=n&&(n.expirationMonth||o&&o.split("/")[0].trim()),s=n&&(n.expirationYear||o&&o.split("/")[1].trim()),c={input:{creditCard:{number:n&&n.number,expirationMonth:a,expirationYear:s,cvv:n&&n.cvv,cardholderName:n&&n.cardholderName},options:{}}};return t.hasAuthenticationInsight&&(c.authenticationInsightInput={merchantAccountId:e.merchantAccountId}),i&&(c.input.creditCard.billingAddress=i),c.input=function(e,t){var n;return e.creditCard&&e.creditCard.options&&"boolean"==typeof e.creditCard.options.validate?n=e.creditCard.options.validate:e.authorizationFingerprint&&e.tokenizationKey||e.authorizationFingerprint?n=!0:e.tokenizationKey&&(n=!1),"boolean"==typeof n&&(t.options=r({validate:n},t.options)),t}(e,c.input),c}t.exports=function(e){var t,n,r,o={hasAuthenticationInsight:Boolean(e.authenticationInsight&&e.merchantAccountId)};return{query:(t=o,n=t.hasAuthenticationInsight,r="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!",n&&(r+=", $authenticationInsightInput: AuthenticationInsightInput!"),r+=") { tokenizeCreditCard(input: $input) { token creditCard { bin brandCode last4 cardholderName expirationMonth expirationYear binData { prepaid healthcare debit durbinRegulated commercial payroll issuingBank countryOfIssuance productId } } ",n&&(r+=" authenticationInsight(input: $authenticationInsightInput) { customerAuthenticationRegulationEnvironment }"),r+=" } }"), +variables:i(e,o),operationName:"TokenizeCreditCard"}}},{"../../../../lib/assign":123}],90:[function(e,t,n){"use strict";var r=e("../../browser-detection"),i={tokenize_credit_cards:"payment_methods/credit_cards",configuration:"configuration"},o=["creditCard.options.unionPayEnrollment"];function a(e){this._config=e.graphQL}a.prototype.getGraphQLEndpoint=function(){return this._config.url},a.prototype.isGraphQLRequest=function(e,t){var n,a=this.getClientApiPath(e);return!(!this._isGraphQLEnabled()||!a||r.isIe9())&&(n=this._config.features.some((function(e){return i[e]===a})),!function(e){return o.some((function(t){return void 0!==t.split(".").reduce((function(e,t){return e&&e[t]}),e)}))}(t)&&n)},a.prototype.getClientApiPath=function(e){var t,n=e.split("/client_api/v1/");return n.length>1&&(t=n[1].split("?")[0]),t},a.prototype._isGraphQLEnabled=function(){return Boolean(this._config)},t.exports=a},{"../../browser-detection":76}],91:[function(e,t,n){"use strict";var r=e("../../constants").BRAINTREE_VERSION,i=e("../../../lib/assign").assign,o=e("./generators/credit-card-tokenization"),a=e("./adapters/credit-card-tokenization"),s=e("./generators/configuration"),c=e("./adapters/configuration"),l={"payment_methods/credit_cards":o,configuration:s},u={"payment_methods/credit_cards":a,configuration:c};function d(e){var t=e.graphQL.getClientApiPath(e.url);this._graphQL=e.graphQL,this._data=e.data,this._method=e.method,this._headers=e.headers,this._clientSdkMetadata={source:e.metadata.source,integration:e.metadata.integration,sessionId:e.metadata.sessionId},this._sendAnalyticsEvent=e.sendAnalyticsEvent||Function.prototype,this._generator=l[t],this._adapter=u[t],this._sendAnalyticsEvent("graphql.init")}d.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},d.prototype.getBody=function(){var e=function e(t){var n={};return Object.keys(t).forEach((function(r){var i,o=-1===(i=r).indexOf("_")?i:i.toLowerCase().replace(/(\_\w)/g,(function(e){return e[1].toUpperCase()}));"object"==typeof t[r]?n[o]=e(t[r]):"number"==typeof t[r]?n[o]=String(t[r]):n[o]=t[r]})),n}(this._data),t=this._generator(e),n=i({clientSdkMetadata:this._clientSdkMetadata},t);return JSON.stringify(n)},d.prototype.getMethod=function(){return"POST"},d.prototype.getHeaders=function(){var e,t;return this._data.authorizationFingerprint?(this._sendAnalyticsEvent("graphql.authorization-fingerprint"),e=this._data.authorizationFingerprint):(this._sendAnalyticsEvent("graphql.tokenization-key"),e=this._data.tokenizationKey),t={Authorization:"Bearer "+e,"Braintree-Version":r},i({},this._headers,t)},d.prototype.adaptResponseBody=function(e){return this._adapter(e,this)},d.prototype.determineStatus=function(e,t){var n,r;return 200===e?(r=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,n=t.data&&!t.errors?200:"VALIDATION"===r?422:"AUTHORIZATION"===r?403:"AUTHENTICATION"===r?401:function(e,t){return!e&&t.errors[0].message}(r,t)?403:500):n=e||500,this._sendAnalyticsEvent("graphql.status."+e), +this._sendAnalyticsEvent("graphql.determinedStatus."+n),n},t.exports=d},{"../../../lib/assign":123,"../../constants":78,"./adapters/configuration":85,"./adapters/credit-card-tokenization":86,"./generators/configuration":88,"./generators/credit-card-tokenization":89}],92:[function(e,t,n){"use strict";var r,i=e("../../lib/once"),o=e("./jsonp-driver"),a=e("./ajax-driver"),s=e("./get-user-agent"),c=e("./is-http");t.exports=function(e,t){t=i(t||Function.prototype),e.method=(e.method||"GET").toUpperCase(),e.timeout=null==e.timeout?6e4:e.timeout,e.data=e.data||{},null==r&&(r=!(c()&&/MSIE\s(8|9)/.test(s()))),r?a.request(e,t):o.request(e,t)}},{"../../lib/once":158,"./ajax-driver":82,"./get-user-agent":84,"./is-http":93,"./jsonp-driver":94}],93:[function(e,t,n){"use strict";t.exports=function(){return"http:"===window.location.protocol}},{}],94:[function(e,t,n){"use strict";var r,i=e("@braintree/uuid"),o=e("../../lib/querystring"),a={};function s(e){try{delete window[e]}catch(t){window[e]=null}}t.exports={request:function(e,t){var n,c="callback_json_"+i().replace(/-/g,""),l=e.url,u=e.data,d=e.method,p=e.timeout;l=o.queryify(l,u),function(e,t,n){window[n]=function(r){var i=r.status||500,o=null,c=null;delete r.status,i>=400||i<200?o=r:c=r,s(n),function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}(e),clearTimeout(a[n]),t(o,c,i)}}(n=function(e,t){var n=document.createElement("script"),r=!1;return n.src=e,n.async=!0,n.onerror=function(){window[t]({message:"error",status:500})},n.onload=n.onreadystatechange=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,n.onload=n.onreadystatechange=null)},n}(l=o.queryify(l,{_method:d,callback:c}),c),t,c),function(e,t){a[t]=setTimeout((function(){a[t]=null,window[t]({error:"timeout",status:-1}),window[t]=function(){s(t)}}),e)}(p,c),r||(r=document.getElementsByTagName("head")[0]),r.appendChild(n)}}},{"../../lib/querystring":160,"@braintree/uuid":40}],95:[function(e,t,n){"use strict";t.exports=function(e){try{e=JSON.parse(e)}catch(e){}return e}},{}],96:[function(e,t,n){"use strict";t.exports=function(e,t){if("string"!=typeof e)throw new Error("Method must be a string");return"get"!==e.toLowerCase()&&null!=t&&(t="string"==typeof t?t:JSON.stringify(t)),t}},{}],97:[function(e,t,n){"use strict";var r="undefined"!=typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;t.exports={isAvailable:r,getRequestObject:function(){return r?new window.XMLHttpRequest:new window.XDomainRequest}}},{}],98:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_KOUNT_NOT_ENABLED:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_KOUNT_NOT_ENABLED",message:"Kount is not enabled for this merchant."},DATA_COLLECTOR_KOUNT_ERROR:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_KOUNT_ERROR"},DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":126}],99:[function(e,t,n){ +"use strict";var r,i=e("../lib/constants").FRAUDNET_FNCLS,o=e("../lib/constants").FRAUDNET_SOURCE,a=e("../lib/constants").FRAUDNET_URL,s=e("../lib/assets").loadScript,c=e("../lib/promise");function l(){}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}l.prototype.initialize=function(e){var t,n,c=this;return this.sessionId=r=function(){var e,t="";for(e=0;e<32;e++)t+=Math.floor(16*Math.random()).toString(16);return t}(),this._beaconId=(t=this.sessionId,n=(new Date).getTime()/1e3,"https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p="+t+"&t="+n+"&a=14"),this._parameterBlock=function(e,t,n){var r=document.body.appendChild(document.createElement("script")),a={f:e,s:o,b:t};return"production"!==n&&(a.sandbox=!0),r.type="application/json",r.setAttribute("fncls",i),r.text=JSON.stringify(a),r}(this.sessionId,this._beaconId,e),s({src:a}).then((function(e){return c._thirdPartyBlock=e,c})).catch((function(){return null}))},l.prototype.teardown=function(){u(document.querySelector('iframe[title="ppfniframe"]')),u(document.querySelector('iframe[title="pbf"]')),u(this._parameterBlock),u(this._thirdPartyBlock)},t.exports={setup:function(e){var t=new l;return r?(t.sessionId=r,c.resolve(t)):t.initialize(e)},clearSessionIdCache:function(){r=null}}},{"../lib/assets":122,"../lib/constants":128,"../lib/promise":159}],100:[function(e,t,n){"use strict";var r=e("./kount"),i=e("./fraudnet"),o=e("../lib/braintree-error"),a=e("../lib/basic-component-verification"),s=e("../lib/create-deferred-client"),c=e("../lib/create-assets-url"),l=e("../lib/methods"),u=e("../lib/convert-methods-to-error"),d=e("../lib/promise"),p=e("@braintree/wrap-promise"),_=e("./errors");t.exports={create:p((function(e){var t,n="Data Collector",E={_instances:[]};return a.verify({name:n,client:e.client,authorization:e.authorization}).then((function(){return E._instantiatedWithAClient=!e.useDeferredClient,E._createPromise=s.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:n}).then((function(n){var i,a=n.getConfiguration();if(!0===e.kount&&a.gatewayConfiguration.kount){try{i=r.setup({environment:a.gatewayConfiguration.environment,merchantId:a.gatewayConfiguration.kount.kountMerchantId})}catch(e){return d.reject(new o({type:_.DATA_COLLECTOR_KOUNT_ERROR.type,code:_.DATA_COLLECTOR_KOUNT_ERROR.code,message:e.message}))}t=i.deviceData,E._instances.push(i)}else t={};return d.resolve(n)})).then((function(e){return i.setup(e.getConfiguration().gatewayConfiguration.environment).then((function(e){e&&(t.correlation_id=e.sessionId,E._instances.push(e))}))})).then((function(){return 0===E._instances.length?d.reject(new o(_.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(E.deviceData=JSON.stringify(t),E.rawDeviceData=t,E)})),E.teardown=function(e){return p((function(){return e._createPromise.then((function(){e._instances.forEach((function(e){e&&e.teardown()})),u(e,l(e))}))}))}(E),E.getDeviceData=function(e){return p((function(t){return t=t||{},e._createPromise.then((function(){ +return t.raw?d.resolve(e.rawDeviceData):d.resolve(e.deviceData)}))}))}(E),E._instantiatedWithAClient?E._createPromise:E}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/methods":157,"../lib/promise":159,"./errors":98,"./fraudnet":99,"./kount":101,"@braintree/wrap-promise":44}],101:[function(e,t,n){"use strict";var r=e("./vendor/sjcl"),i=e("../lib/camel-case-to-snake-case"),o="https://assets.qa.braintreepayments.com/data",a={development:o,qa:o,sandbox:"https://assets.braintreegateway.com/sandbox/data",production:"https://assets.braintreegateway.com/data"},s={};function c(e){var t=c.getCachedDeviceData(e.merchantId);if(t)return this.deviceData=t,void(this._isCached=!0);this._currentEnvironment=this._initializeEnvironment(e),r.random.startCollectors(),this._deviceSessionId=this._generateDeviceSessionId(),this.deviceData=this._getDeviceData(),c.setCachedDeviceData(e.merchantId,this.deviceData),this._iframe=this._setupIFrame()}c.getCachedDeviceData=function(e){return s[e]},c.setCachedDeviceData=function(e,t){s[e]=t},c.prototype.teardown=function(){this._isCached||(r.random.stopCollectors(),this._removeIframe())},c.prototype._removeIframe=function(){this._iframe.parentNode.removeChild(this._iframe)},c.prototype._getDeviceData=function(){return i({deviceSessionId:this._deviceSessionId,fraudMerchantId:this._currentEnvironment.id})},c.prototype._generateDeviceSessionId=function(){var e;return e=r.random.randomWords(4,0),r.codec.hex.fromBits(e)},c.prototype._setupIFrame=function(){var e,t,n=this;return e="?m="+this._currentEnvironment.id+"&s="+this._deviceSessionId,(t=document.createElement("iframe")).width=1,t.id="braintreeDataFrame-"+this._deviceSessionId,t.height=1,t.frameBorder=0,t.scrolling="no",t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",t.title="Braintree-Kount-iframe",t.setAttribute("aria-hidden","true"),document.body.appendChild(t),setTimeout((function(){t.src=n._currentEnvironment.url+"/logo.htm"+e,t.innerHTML=''}),10),t},c.prototype._initializeEnvironment=function(e){var t=a[e.environment];if(null==t)throw new Error(e.environment+" is not a valid environment for kount.environment");return{url:t,name:e.environment,id:e.merchantId}},t.exports={setup:function(e){return new c(null!=e?e:{})},Kount:c,environmentUrls:a}},{"../lib/camel-case-to-snake-case":127,"./vendor/sjcl":102}],102:[function(e,t,n){"use strict";var r={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(e){this.toString=function(){return"CORRUPT: "+this.message},this.message=e},invalid:function(e){this.toString=function(){return"INVALID: "+this.message},this.message=e},bug:function(e){this.toString=function(){return"BUG: "+this.message},this.message=e},notReady:function(e){this.toString=function(){return"NOT READY: "+this.message},this.message=e}}};function i(e,t,n){ +if(4!==t.length)throw new r.exception.invalid("invalid aes block size");var i=e.b[n],o=t[0]^i[0],a=t[n?3:1]^i[1],s=t[2]^i[2];t=t[n?1:3]^i[3];var c,l,u,d,p=i.length/4-2,_=4,E=[0,0,0,0];e=(c=e.l[n])[0];var h=c[1],f=c[2],m=c[3],y=c[4];for(d=0;d>>24]^h[a>>16&255]^f[s>>8&255]^m[255&t]^i[_],l=e[a>>>24]^h[s>>16&255]^f[t>>8&255]^m[255&o]^i[_+1],u=e[s>>>24]^h[t>>16&255]^f[o>>8&255]^m[255&a]^i[_+2],t=e[t>>>24]^h[o>>16&255]^f[a>>8&255]^m[255&s]^i[_+3],_+=4,o=c,a=l,s=u;for(d=0;4>d;d++)E[n?3&-d:d]=y[o>>>24]<<24^y[a>>16&255]<<16^y[s>>8&255]<<8^y[255&t]^i[_++],c=o,o=a,a=s,s=t,t=c;return E}function o(e,t){var n,r,i,o=e.u,a=e.b,s=o[0],c=o[1],l=o[2],u=o[3],d=o[4],p=o[5],_=o[6],E=o[7];for(n=0;64>n;n++)16>n?r=t[n]:(r=t[n+1&15],i=t[n+14&15],r=t[15&n]=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(i>>>17^i>>>19^i>>>10^i<<15^i<<13)+t[15&n]+t[n+9&15]|0),r=r+E+(d>>>6^d>>>11^d>>>25^d<<26^d<<21^d<<7)+(_^d&(p^_))+a[n],E=_,_=p,p=d,d=u+r|0,u=l,l=c,s=r+((c=s)&l^u&(c^l))+(c>>>2^c>>>13^c>>>22^c<<30^c<<19^c<<10)|0;o[0]=o[0]+s|0,o[1]=o[1]+c|0,o[2]=o[2]+l|0,o[3]=o[3]+u|0,o[4]=o[4]+d|0,o[5]=o[5]+p|0,o[6]=o[6]+_|0,o[7]=o[7]+E|0}function a(e,t){var n,i=r.random.B[e],o=[];for(n in i)i.hasOwnProperty(n)&&o.push(i[n]);for(n=0;nt&&(e.g[t]=e.g[t]+1|0,!e.g[t]);t++);return e.C.encrypt(e.g)}function u(e,t){return function(){t.apply(e,arguments)}}r.cipher.aes=function(e){this.l[0][0][0]||this.G();var t,n,i,o,a=this.l[0][4],s=this.l[1],c=1;if(4!==(t=e.length)&&6!==t&&8!==t)throw new r.exception.invalid("invalid aes key size");for(this.b=[i=e.slice(0),o=[]],e=t;e<4*t+28;e++)n=i[e-1],(0==e%t||8===t&&4==e%t)&&(n=a[n>>>24]<<24^a[n>>16&255]<<16^a[n>>8&255]<<8^a[255&n],0==e%t&&(n=n<<8^n>>>24^c<<24,c=c<<1^283*(c>>7))),i[e]=i[e-t]^n;for(t=0;e;t++,e--)n=i[3&t?e:e-4],o[t]=4>=e||4>t?n:s[0][a[n>>>24]]^s[1][a[n>>16&255]]^s[2][a[n>>8&255]]^s[3][a[255&n]]},r.cipher.aes.prototype={encrypt:function(e){return i(this,e,0)},decrypt:function(e){return i(this,e,1)},l:[[[],[],[],[],[]],[[],[],[],[],[]]],G:function(){var e,t,n,r,i,o,a,s=this.l[0],c=this.l[1],l=s[4],u=c[4],d=[],p=[];for(e=0;256>e;e++)p[(d[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!l[t];t^=r||1,n=p[n]||1)for(o=(o=n^n<<1^n<<2^n<<3^n<<4)>>8^255&o^99,l[t]=o,u[o]=t,a=16843009*(i=d[e=d[r=d[t]]])^65537*e^257*r^16843008*t,i=257*d[o]^16843008*o,e=0;4>e;e++)s[e][t]=i=i<<24^i>>>8,c[e][o]=a=a<<24^a>>>8;for(e=0;5>e;e++)s[e]=s[e].slice(0),c[e]=c[e].slice(0)}},r.bitArray={bitSlice:function(e,t,n){return e=r.bitArray.M(e.slice(t/32),32-(31&t)).slice(1),void 0===n?e:r.bitArray.clamp(e,n-t)},extract:function(e,t,n){var r=Math.floor(-t-n&31);return(-32&(t+n-1^t)?e[t/32|0]<<32-r^e[t/32+1|0]>>>r:e[t/32|0]>>>r)&(1<>t-1,1)),e},partial:function(e,t,n){return 32===e?t:(n?0|t:t<<32-e)+1099511627776*e},getPartial:function(e){return Math.round(e/1099511627776)||32},equal:function(e,t){if(r.bitArray.bitLength(e)!==r.bitArray.bitLength(t))return!1;var n,i=0;for(n=0;n>>t),n=e[o]<<32-t;return o=e.length?e[e.length-1]:0,e=r.bitArray.getPartial(o),i.push(r.bitArray.partial(t+e&31,32>>24|n>>>8&65280|(65280&n)<<8|n<<24;return e}},r.codec.utf8String={fromBits:function(e){var t,n,i="",o=r.bitArray.bitLength(e);for(t=0;t>>8>>>8>>>8),n<<=8;return decodeURIComponent(escape(i))},toBits:function(e){e=unescape(encodeURIComponent(e));var t,n=[],i=0;for(t=0;tr;i++){for(n=!0,t=2;t*t<=i;t++)if(0==i%t){n=!1;break}n&&(8>r&&(this.K[r]=e(Math.pow(i,.5))),this.b[r]=e(Math.pow(i,1/3)),r++)}}}, +r.prng=function(e){this.c=[new r.hash.sha256],this.i=[0],this.H=0,this.v={},this.F=0,this.J={},this.L=this.f=this.j=this.T=0,this.b=[0,0,0,0,0,0,0,0],this.g=[0,0,0,0],this.C=void 0,this.D=e,this.s=!1,this.B={progress:{},seeded:{}},this.m=this.S=0,this.w=1,this.A=2,this.O=65536,this.I=[0,48,64,96,128,192,256,384,512,768,1024],this.P=3e4,this.N=80},r.prng.prototype={randomWords:function(e,t){var n,i,o=[];if((n=this.isReady(t))===this.m)throw new r.exception.notReady("generator isn't seeded");if(n&this.A){n=!(n&this.w),i=[];var a,s=0;for(this.L=i[0]=(new Date).valueOf()+this.P,a=0;16>a;a++)i.push(4294967296*Math.random()|0);for(a=0;a=1<this.j&&(this.j=s),this.H++,this.b=r.hash.sha256.hash(this.b.concat(i)),this.C=new r.cipher.aes(this.b),n=0;4>n&&(this.g[n]=this.g[n]+1|0,!this.g[n]);n++);}for(n=0;n>>=1;this.c[c].update([i,this.F++,2,t,s,e.length].concat(e))}break;case"string":void 0===t&&(t=e.length),this.c[c].update([i,this.F++,3,t,s,e.length]),this.c[c].update(e);break;default:u=1}if(u)throw new r.exception.bug("random: addEntropy only supports number, array of numbers or string");this.i[c]+=t,this.f+=t,l===this.m&&(this.isReady()!==this.m&&a("seeded",Math.max(this.j,this.f)),a("progress",this.getProgress()))},isReady:function(e){return e=this.I[void 0!==e?e:this.D],this.j&&this.j>=e?this.i[0]>this.N&&(new Date).valueOf()>this.L?this.A|this.w:this.w:this.f>=e?this.A|this.m:this.m},getProgress:function(e){return e=this.I[e||this.D],this.j>=e||this.f>e?1:this.f/e},startCollectors:function(){if(!this.s){if(this.a={loadTimeCollector:u(this,this.V),mouseCollector:u(this,this.W),keyboardCollector:u(this,this.U),accelerometerCollector:u(this,this.R),touchCollector:u(this,this.X)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1), +window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else{if(!document.attachEvent)throw new r.exception.bug("can't attach event");document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)}this.s=!0}},stopCollectors:function(){this.s&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.s=!1)},addEventListener:function(e,t){this.B[e][this.S++]=t},removeEventListener:function(e,t){var n,r,i=this.B[e],o=[];for(r in i)i.hasOwnProperty(r)&&i[r]===t&&o.push(r);for(n=0;n-1&&c.indexOf(e.type)<0:"hidden"!==e.type}function u(e){var t,n;for(t=0;tt-1},indexChange:1}}return{}}(n.direction,c.length);do{if(i+=u.indexChange,u.checkIndexBounds(i))return;s=c[i]}while(!l(s));o.matchFocusElement(s.getAttribute("id"))?t.onTriggerInputFocus(s.getAttribute("data-braintree-type")):s.focus()}}}}},{"../shared/browser-detection":113,"../shared/constants":114,"../shared/find-parent-tags":116,"../shared/focus-intercept":117}],109:[function(e,t,n){"use strict";var r=e("../shared/constants").allowedStyles;t.exports=function(e){var t,n=document.createElement("input"),i={};return"."===e[0]&&(e=e.substring(1)),n.className=e,n.style.display="none !important",n.style.position="fixed !important",n.style.left="-99999px !important",n.style.top="-99999px !important",document.body.appendChild(n),t=window.getComputedStyle(n),r.forEach((function(e){var n=t[e];n&&(i[e]=n)})),document.body.removeChild(n),i}},{"../shared/constants":114}],110:[function(e,t,n){"use strict";var r=e("../../lib/assign").assign,i=e("../../lib/create-assets-url"),o=e("../../lib/is-verified-domain"),a=e("../../lib/destructor"),s=e("@braintree/class-list"),c=e("@braintree/iframer"),l=e("framebus"),u=e("../../lib/create-deferred-client"),d=e("../../lib/braintree-error"),p=e("./compose-url"),_=e("./get-styles-from-class"),E=e("../shared/constants"),h=e("../shared/errors"),f=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,m=e("@braintree/uuid"),y=e("../shared/find-parent-tags"),A=e("../shared/browser-detection"),T=E.events,I=e("@braintree/event-emitter"),N=e("./inject-frame"),b=e("../../lib/analytics"),O=E.allowedFields,g=e("../../lib/methods"),v=e("../../lib/shadow"),P=e("../../lib/find-root-node"),R=e("../../lib/convert-methods-to-error"),C=e("../../lib/errors"),S=e("../shared/get-card-types"),D=e("./attribute-validation-error"),w=e("../../lib/promise"),L=e("@braintree/wrap-promise"),M=e("./focus-change"),U=e("../shared/focus-intercept").destroy;function k(e){return function(t){var n,r=t.merchantPayload,i=r.emittedBy,o=e[i].containerElement +;Object.keys(r.fields).forEach((function(t){r.fields[t].container=e[t].containerElement})),n=r.fields[i],"blur"===t.type&&function(e){var t;A.isIos()&&document.activeElement===document.body&&((t=e.querySelector("input"))||((t=document.createElement("input")).type="button",t.style.height="0px",t.style.width="0px",t.style.opacity="0",t.style.padding="0",t.style.position="absolute",t.style.left="-200%",t.style.top="0px",e.insertBefore(t,e.firstChild)),t.focus(),t.blur())}(o),s.toggle(o,E.externalClasses.FOCUSED,n.isFocused),s.toggle(o,E.externalClasses.VALID,n.isValid),s.toggle(o,E.externalClasses.INVALID,!n.isPotentiallyValid),this._state={cards:r.cards,fields:r.fields},this._emit(t.type,r)}}function F(e){var t,n,y,O,P,D=this,L={},V={},x=[],H=m();if(this._merchantConfigurationOptions=r({},e),e.client?(y=(n=e.client.getConfiguration()).gatewayConfiguration.assetsUrl,O=n.isDebug):(y=i.create(e.authorization),O=Boolean(e.isDebug)),this._clientPromise=u.create({client:e.client,authorization:e.authorization,debug:O,assetsUrl:y,name:"Hosted Fields"}),P=p(y,H,O),!e.fields||0===Object.keys(e.fields).length)throw new d({type:C.INSTANTIATION_OPTION_REQUIRED.type,code:C.INSTANTIATION_OPTION_REQUIRED.code,message:"options.fields is required when instantiating Hosted Fields."});I.call(this),this._injectedNodes=[],this._destructor=new a,this._fields=L,this._state={fields:{},cards:S("")},this._bus=new l({channel:H,verifyDomain:o}),this._destructor.registerFunctionForTeardown((function(){D._bus.teardown()})),e.client?b.sendEvent(this._clientPromise,"custom.hosted-fields.initialized"):b.sendEvent(this._clientPromise,"custom.hosted-fields.initialized.deferred-client"),Object.keys(e.fields).forEach(function(t){var n,r,i,o,a;if(!E.allowedFields.hasOwnProperty(t))throw new d({type:h.HOSTED_FIELDS_INVALID_FIELD_KEY.type,code:h.HOSTED_FIELDS_INVALID_FIELD_KEY.code,message:'"'+t+'" is not a valid field.'});if("string"==typeof(r=(n=e.fields[t]).container||n.selector)&&(r=document.querySelector(r)),!r||1!==r.nodeType)throw new d({type:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.type,code:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.code,message:h.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.message,details:{fieldSelector:n.selector,fieldContainer:n.container,fieldKey:t}});if(r.querySelector('iframe[name^="braintree-"]'))throw new d({type:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.type,code:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.code,message:h.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.message,details:{fieldSelector:n.selector,fieldContainer:n.container,fieldKey:t}});if(i=r,v.isShadowElement(i)&&(i=v.transformToSlot(i,"height: 100%")),n.maxlength&&"number"!=typeof n.maxlength)throw new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for maxlength must be a number.",details:{fieldKey:t}});if(n.minlength&&"number"!=typeof n.minlength)throw new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for minlength must be a number.",details:{ +fieldKey:t}});o=c({type:t,name:"braintree-hosted-field-"+t,style:E.defaultIFrameStyle,title:"Secure Credit Card Frame - "+E.allowedFields[t].label}),this._injectedNodes.push.apply(this._injectedNodes,N(H,o,i,(function(){D._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:t})}))),this._setupLabelFocus(t,r),L[t]={frameElement:o,containerElement:r},a=new w((function(e){V[t]=e})),x.push(a),this._state.fields[t]={isEmpty:!0,isValid:!1,isPotentiallyValid:!0,isFocused:!1,container:r},setTimeout((function(){A.isIE()||A.isEdge()?(o.src="about:blank",setTimeout((function(){o.src=P}),0)):o.src=P}),0)}.bind(this)),this._merchantConfigurationOptions.styles&&Object.keys(this._merchantConfigurationOptions.styles).forEach((function(e){var t=D._merchantConfigurationOptions.styles[e];"string"==typeof t&&(D._merchantConfigurationOptions.styles[e]=_(t))})),this._bus.on(T.REMOVE_FOCUS_INTERCEPTS,(function(e){U(e&&e.id)})),this._bus.on(T.TRIGGER_FOCUS_CHANGE,M.createFocusChangeHandler(H,{onRemoveFocusIntercepts:function(e){D._bus.emit(T.REMOVE_FOCUS_INTERCEPTS,{id:e})},onTriggerInputFocus:function(e){D._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:e})}})),this._bus.on(T.READY_FOR_CLIENT,(function(e){D._clientPromise.then((function(t){e(t)}))})),this._bus.on(T.CARD_FORM_ENTRY_HAS_BEGUN,(function(){b.sendEvent(D._clientPromise,"hosted-fields.input.started")})),this._bus.on(T.BIN_AVAILABLE,(function(e){D._emit("binAvailable",{bin:e})})),t=setTimeout((function(){b.sendEvent(D._clientPromise,"custom.hosted-fields.load.timed-out"),D._emit("timeout")}),f),w.all(x).then((function(e){var n,i,o=e[0];clearTimeout(t),o((n=D._merchantConfigurationOptions,(i=r({},n)).fields=r({},i.fields),Object.keys(i.fields).forEach((function(e){i.fields[e]=r({},i.fields[e]),delete i.fields[e].container})),i)),D._cleanUpFocusIntercepts(),D._emit("ready")})),this._bus.on(T.FRAME_READY,(function(e,t){V[e.field](t)})),this._bus.on(T.INPUT_EVENT,k(L).bind(this)),A.isIos()&&this._bus.on(T.TRIGGER_INPUT_FOCUS,(function(e){var t=L[e.field].containerElement;setTimeout((function(){var e,n,r;e=t.getBoundingClientRect(),n=Math.floor(e.height/2),r=Math.floor(e.width/2),e.top<(window.innerHeight-n||document.documentElement.clientHeight-n)&&e.right>r&&e.bottom>n&&e.left<(window.innerWidth-r||document.documentElement.clientWidth-r)||t.scrollIntoView()}),5)})),this._destructor.registerFunctionForTeardown((function(){var e,t,n;for(e=0;e0&&(e.details.invalidFields={},e.details.invalidFieldKeys.forEach(function(t){e.details.invalidFields[t]=this._fields[t].containerElement}.bind(this)))},F.prototype.getChallenges=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.challenges}))},F.prototype.getSupportedCardTypes=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes.map((function(e){return"MasterCard"===e?"Mastercard":e}))}))},F.prototype.teardown=function(){var e=this;return new w((function(t,n){e._destructor.teardown((function(r){b.sendEvent(e._clientPromise,"custom.hosted-fields.teardown-completed"),r?n(r):t()}))}))},F.prototype.tokenize=function(e){var t=this;return e||(e={}),new w((function(n,r){t._bus.emit(T.TOKENIZATION_REQUEST,e,(function(e){var i=e[0],o=e[1];i?(t._attachInvalidFieldContainersToError(i),r(new d(i))):n(o)}))}))},F.prototype.addClass=function(e,t){var n;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.ADD_CLASS,{field:e,classname:t}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot add class to "'+e+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when adding a class.'}),n?w.reject(n):w.resolve()},F.prototype.removeClass=function(e,t){var n;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.REMOVE_CLASS,{field:e,classname:t}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove class from "'+e+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when removing a class.'}),n?w.reject(n):w.resolve()},F.prototype.setAttribute=function(e){var t,n +;return O.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=D(e.attribute,e.value))?n=t:this._bus.emit(T.SET_ATTRIBUTE,{field:e.field,attribute:e.attribute,value:e.value}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot set attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when setting an attribute.'}),n?w.reject(n):w.resolve()},F.prototype.setMonthOptions=function(e){var t,n=this,r=this._merchantConfigurationOptions.fields;return r.expirationMonth?r.expirationMonth.select||(t="Expiration month field must be a select element."):t="Expiration month field must exist to use setMonthOptions.",t?w.reject(new d({type:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:h.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:t})):new w((function(t){n._bus.emit(T.SET_MONTH_OPTIONS,e,t)}))},F.prototype.setMessage=function(e){this._bus.emit(T.SET_MESSAGE,{field:e.field,message:e.message})},F.prototype.removeAttribute=function(e){var t,n;return O.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=D(e.attribute))?n=t:this._bus.emit(T.REMOVE_ATTRIBUTE,{field:e.field,attribute:e.attribute}):n=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):n=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when removing an attribute.'}),n?w.reject(n):w.resolve()},F.prototype.setPlaceholder=function(e,t){return this.setAttribute({field:e,attribute:"placeholder",value:t})},F.prototype.clear=function(e){var t;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.CLEAR_FIELD,{field:e}):t=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot clear "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when clearing a field.'}),t?w.reject(t):w.resolve()},F.prototype.focus=function(e){var t;return O.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(T.TRIGGER_INPUT_FOCUS,{field:e}):t=new d({type:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:h.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot focus "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new d({type:h.HOSTED_FIELDS_FIELD_INVALID.type,code:h.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when focusing a field.'}),t?w.reject(t):w.resolve()}, +F.prototype.getState=function(){return this._state},t.exports=L.wrapPrototype(F)},{"../../lib/analytics":121,"../../lib/assign":123,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/create-assets-url":131,"../../lib/create-deferred-client":133,"../../lib/destructor":135,"../../lib/errors":137,"../../lib/find-root-node":138,"../../lib/is-verified-domain":155,"../../lib/methods":157,"../../lib/promise":159,"../../lib/shadow":161,"../shared/browser-detection":113,"../shared/constants":114,"../shared/errors":115,"../shared/find-parent-tags":116,"../shared/focus-intercept":117,"../shared/get-card-types":118,"./attribute-validation-error":106,"./compose-url":107,"./focus-change":108,"./get-styles-from-class":109,"./inject-frame":111,"@braintree/class-list":33,"@braintree/event-emitter":34,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],111:[function(e,t,n){"use strict";var r=e("../shared/focus-intercept"),i=e("../shared/constants").navigationDirections;t.exports=function(e,t,n,o){var a=t.getAttribute("type"),s=document.createElement("div"),c=document.createDocumentFragment(),l=r.generate(e,a,i.BACK,o),u=r.generate(e,a,i.FORWARD,o);return s.style.clear="both",c.appendChild(l),c.appendChild(t),c.appendChild(u),c.appendChild(s),n.appendChild(c),[t,s]}},{"../shared/constants":114,"../shared/focus-intercept":117}],112:[function(e,t,n){"use strict";var r=e("./external/hosted-fields"),i=e("../lib/basic-component-verification"),o=e("./shared/errors"),a=e("restricted-input/supports-input-formatting"),s=e("@braintree/wrap-promise"),c=e("../lib/braintree-error"),l=e("../lib/promise");t.exports={supportsInputFormatting:a,create:s((function(e){return i.verify({name:"Hosted Fields",authorization:e.authorization,client:e.client}).then((function(){var t=new r(e);return new l((function(e,n){t.on("ready",(function(){e(t)})),t.on("timeout",(function(){n(new c(o.HOSTED_FIELDS_TIMEOUT))}))}))}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/promise":159,"./external/hosted-fields":110,"./shared/errors":115,"@braintree/wrap-promise":44,"restricted-input/supports-input-formatting":69}],113:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-android"),i=e("@braintree/browser-detection/is-chrome-os"),o=e("@braintree/browser-detection/is-ios"),a=e("@braintree/browser-detection/is-chrome");t.exports={isIE:e("@braintree/browser-detection/is-ie"),isEdge:e("@braintree/browser-detection/is-edge"),isIe9:e("@braintree/browser-detection/is-ie9"),isIe10:e("@braintree/browser-detection/is-ie10"),isAndroid:r,isChromeOS:i,isChromeIos:function(){return a()&&o()},isFirefox:e("@braintree/browser-detection/is-firefox"),isIos:o,isIosWebview:e("@braintree/browser-detection/is-ios-webview"),hasSoftwareKeyboard:function(){return r()||i()||o()}}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-chrome-os":21, +"@braintree/browser-detection/is-edge":23,"@braintree/browser-detection/is-firefox":24,"@braintree/browser-detection/is-ie":25,"@braintree/browser-detection/is-ie10":26,"@braintree/browser-detection/is-ie9":27,"@braintree/browser-detection/is-ios":31,"@braintree/browser-detection/is-ios-webview":29}],114:[function(e,t,n){"use strict";var r=e("../../lib/enumerate"),i=e("./errors"),o={VERSION:"3.76.4",maxExpirationYearAge:19,externalEvents:{FOCUS:"focus",BLUR:"blur",EMPTY:"empty",NOT_EMPTY:"notEmpty",VALIDITY_CHANGE:"validityChange",CARD_TYPE_CHANGE:"cardTypeChange"},defaultMaxLengths:{number:19,postalCode:8,expirationDate:7,expirationMonth:2,expirationYear:4,cvv:3},externalClasses:{FOCUSED:"braintree-hosted-fields-focused",INVALID:"braintree-hosted-fields-invalid",VALID:"braintree-hosted-fields-valid"},navigationDirections:{BACK:"before",FORWARD:"after"},defaultIFrameStyle:{border:"none",width:"100%",height:"100%",float:"left"},tokenizationErrorCodes:{81724:i.HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE,81736:i.HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED},allowedStyles:["-moz-appearance","-moz-box-shadow","-moz-osx-font-smoothing","-moz-tap-highlight-color","-moz-transition","-webkit-appearance","-webkit-box-shadow","-webkit-font-smoothing","-webkit-tap-highlight-color","-webkit-transition","appearance","box-shadow","color","direction","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-weight","letter-spacing","line-height","margin","margin-top","margin-right","margin-bottom","margin-left","opacity","outline","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","text-shadow","transition"],allowedFields:{cardholderName:{name:"cardholder-name",label:"Cardholder Name"},number:{name:"credit-card-number",label:"Credit Card Number"},cvv:{name:"cvv",label:"CVV"},expirationDate:{name:"expiration",label:"Expiration Date"},expirationMonth:{name:"expiration-month",label:"Expiration Month"},expirationYear:{name:"expiration-year",label:"Expiration Year"},postalCode:{name:"postal-code",label:"Postal Code"}},allowedAttributes:{"aria-invalid":"boolean","aria-required":"boolean",disabled:"boolean",placeholder:"string"},autocompleteMappings:{"cardholder-name":"cc-name","credit-card-number":"cc-number",expiration:"cc-exp","expiration-month":"cc-exp-month","expiration-year":"cc-exp-year",cvv:"cc-csc","postal-code":"billing postal-code"}};o.events=r(["ADD_CLASS","AUTOFILL_DATA_AVAILABLE","BIN_AVAILABLE","CARD_FORM_ENTRY_HAS_BEGUN","CLEAR_FIELD","CONFIGURATION","FRAME_READY","INPUT_EVENT","READY_FOR_CLIENT","REMOVE_ATTRIBUTE","REMOVE_CLASS","REMOVE_FOCUS_INTERCEPTS","SET_ATTRIBUTE","SET_MESSAGE","SET_MONTH_OPTIONS","TOKENIZATION_REQUEST","TRIGGER_FOCUS_CHANGE","TRIGGER_INPUT_FOCUS","VALIDATE_STRICT"],"hosted-fields:"),t.exports=o},{"../../lib/enumerate":136,"./errors":115}],115:[function(e,t,n){"use strict" +;var r=e("../../lib/braintree-error");t.exports={HOSTED_FIELDS_TIMEOUT:{type:r.types.UNKNOWN,code:"HOSTED_FIELDS_TIMEOUT",message:"Hosted Fields timed out when attempting to set up."},HOSTED_FIELDS_INVALID_FIELD_KEY:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_KEY"},HOSTED_FIELDS_INVALID_FIELD_SELECTOR:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_SELECTOR",message:"Selector does not reference a valid DOM node."},HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME",message:"Element already contains a Braintree iframe."},HOSTED_FIELDS_FIELD_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_INVALID"},HOSTED_FIELDS_FIELD_NOT_PRESENT:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_NOT_PRESENT"},HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE",message:"This credit card already exists in the merchant's vault."},HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED",message:"CVV verification failed during tokenization."},HOSTED_FIELDS_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."},HOSTED_FIELDS_FIELDS_EMPTY:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_EMPTY",message:"All fields are empty. Cannot tokenize empty card fields."},HOSTED_FIELDS_FIELDS_INVALID:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_INVALID",message:"Some payment input fields are invalid. Cannot tokenize invalid card fields."},HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED"},HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED"},HOSTED_FIELDS_FIELD_PROPERTY_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_PROPERTY_INVALID"}}},{"../../lib/braintree-error":126}],116:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.parentNode,r=[];null!=n;)null!=n.tagName&&n.tagName.toLowerCase()===t&&r.push(n),n=n.parentNode;return r}},{}],117:[function(e,t,n){"use strict";var r=e("./browser-detection"),i=e("@braintree/class-list"),o=e("./constants"),a=Object.keys(o.allowedFields),s=o.navigationDirections,c={generate:function(e,t,n,o){var a=document.createElement("input");return r.hasSoftwareKeyboard()||r.isFirefox()||r.isIE()?(a.setAttribute("aria-hidden","true"),a.setAttribute("autocomplete","off"),a.setAttribute("data-braintree-direction",n),a.setAttribute("data-braintree-type",t),a.setAttribute("id","bt-"+t+"-"+n+"-"+e),a.setAttribute("style",JSON.stringify({border:"none !important",display:"block !important",height:"1px !important",left:"-1px !important",opacity:"0 !important",position:"absolute !important",top:"-1px !important", +width:"1px !important"}).replace(/[{}"]/g,"").replace(/,/g,";")),i.add(a,"focus-intercept"),a.addEventListener("focus",(function(e){o(e),r.hasSoftwareKeyboard()||a.blur()})),a):document.createDocumentFragment()},destroy:function(e){var t;e?t=[document.getElementById(e)]:(t=document.querySelectorAll("[data-braintree-direction]"),t=[].slice.call(t)),t.forEach((function(e){e&&1===e.nodeType&&c.matchFocusElement(e.getAttribute("id"))&&e.parentNode.removeChild(e)}))},matchFocusElement:function(e){var t,n,r,i;return!!e&&!((t=e.split("-")).length<4)&&(n="bt"===t[0],r=a.indexOf(t[1])>-1,i=t[2]===s.BACK||t[2]===s.FORWARD,Boolean(n&&r&&i))}};t.exports=c},{"./browser-detection":113,"./constants":114,"@braintree/class-list":33}],118:[function(e,t,n){"use strict";var r=e("credit-card-type");t.exports=function(e){var t=r(e);return t.forEach((function(e){"mastercard"===e.type&&(e.type="master-card")})),t}},{"credit-card-type":45}],119:[function(e,t,n){"use strict";var r=e("./american-express"),i=e("./apple-pay"),o=e("./client"),a=e("./data-collector"),s=e("./hosted-fields"),c=e("./local-payment"),l=e("./masterpass"),u=e("./payment-request"),d=e("./paypal"),p=e("./paypal-checkout"),_=e("./google-payment"),E=e("./three-d-secure"),h=e("./unionpay"),f=e("./us-bank-account"),m=e("./vault-manager"),y=e("./venmo"),A=e("./visa-checkout"),T=e("./preferred-payment-methods");t.exports={americanExpress:r,applePay:i,client:o,dataCollector:a,hostedFields:s,localPayment:c,masterpass:l,googlePayment:_,paymentRequest:u,paypal:d,paypalCheckout:p,threeDSecure:E,unionpay:h,usBankAccount:f,vaultManager:m,venmo:y,visaCheckout:A,preferredPaymentMethods:T,VERSION:"3.76.4"}},{"./american-express":72,"./apple-pay":75,"./client":81,"./data-collector":100,"./google-payment":105,"./hosted-fields":112,"./local-payment":166,"./masterpass":169,"./payment-request":174,"./paypal":181,"./paypal-checkout":178,"./preferred-payment-methods":184,"./three-d-secure":194,"./unionpay":198,"./us-bank-account":204,"./vault-manager":207,"./venmo":212,"./visa-checkout":220}],120:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),i=e("./json-clone"),o=e("./constants");t.exports=function(e,t){var n,a=t?i(t):{},s=r(e.authorization).attrs,c=i(e.analyticsMetadata);for(n in a.braintreeLibraryVersion=o.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(n)&&(c[n]=a._meta[n]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a}},{"./constants":128,"./create-authorization-data":132,"./json-clone":156}],121:[function(e,t,n){"use strict";var r=e("./promise"),i=e("./constants"),o=e("./add-metadata");t.exports={sendEvent:function(e,t,n){var a=Date.now();return r.resolve(e).then((function(e){var r=Date.now(),s=e.getConfiguration(),c=e._request,l=s.gatewayConfiguration.analytics.url,u={analytics:[{kind:i.ANALYTICS_PREFIX+t,isAsync:Math.floor(r/1e3)!==Math.floor(a/1e3),timestamp:a}]};c({url:l,method:"post",data:o(s,u),timeout:i.ANALYTICS_REQUEST_TIMEOUT_MS},n)}))}}},{"./add-metadata":120, +"./constants":128,"./promise":159}],122:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script");t.exports={loadScript:r}},{"@braintree/asset-loader/load-script":3}],123:[function(e,t,n){"use strict";var r="function"==typeof Object.assign?Object.assign:i;function i(e){var t,n,r;for(t=1;t>4&3,n=(15&i)<<4|(o=s.indexOf(e.charAt(a++)))>>2&15,r=(3&o)<<6|63&s.indexOf(e.charAt(a++)),c+=String.fromCharCode(t)+(n?String.fromCharCode(n):"")+(r?String.fromCharCode(r):"")}while(a-1&&t(new i({code:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.code,type:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.type,message:f.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.message,details:{originalError:o}}));else a&&(window.popupBridge||n._frameService.redirect(n._loadingFrameUrl),n.tokenize(a).then(e).catch(t).then((function(){n._frameService.close()})))}},m.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&(n.details.payerInfo&&(t.details=n.details.payerInfo),n.details.correlationId&&(t.correlationId=n.details.correlationId)),t},m.prototype.hasTokenizationParams=function(){var e=_.parse();return!!e.errorcode||Boolean(e.btLpToken&&e.btLpPaymentId&&e.btLpPayerId)},m.prototype._formatTokenizeData=function(e){var t=this._client.getConfiguration().gatewayConfiguration;return{merchantAccountId:this._merchantAccountId,paypalAccount:{correlationId:e.btLpToken||e.token,paymentToken:e.btLpPaymentId||e.paymentId,payerId:e.btLpPayerId||e.PayerID,unilateral:t.paypal.unvettedMerchant,intent:"sale"}}},m.prototype.teardown=function(){return this._frameService.teardown(),l(this,c(m.prototype)),s.sendEvent(this._client,"local-payment.teardown-completed"),d.resolve()},t.exports=E.wrapPrototype(m)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/promise":159,"../../lib/querystring":160,"../../lib/use-min":162,"../shared/errors":167,"./constants":164,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],166:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./external/local-payment"),c=e("../lib/promise"),l=e("@braintree/wrap-promise"),u=e("../lib/braintree-error"),d=e("./shared/errors");t.exports={create:l((function(e){var t="Local Payment" +;return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){var n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?c.reject(new u(d.LOCAL_PAYMENT_NOT_ENABLED)):(r.sendEvent(t,"local-payment.initialized"),new s(e)._initialize())}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/local-payment":165,"./shared/errors":167,"@braintree/wrap-promise":44}],167:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={LOCAL_PAYMENT_NOT_ENABLED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_NOT_ENABLED",message:"LocalPayment is not enabled for this merchant."},LOCAL_PAYMENT_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_ALREADY_IN_PROGRESS",message:"LocalPayment payment is already in progress."},LOCAL_PAYMENT_CANCELED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_CANCELED",message:"Customer canceled the LocalPayment before authorizing."},LOCAL_PAYMENT_WINDOW_CLOSED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_WINDOW_CLOSED",message:"Customer closed LocalPayment window before authorizing."},LOCAL_PAYMENT_WINDOW_OPEN_FAILED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_WINDOW_OPEN_FAILED",message:"LocalPayment window failed to open; make sure startPayment was called in response to a user action."},LOCAL_PAYMENT_START_PAYMENT_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_START_PAYMENT_FAILED",message:"LocalPayment startPayment failed."},LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION",message:"Missing required option for startPayment."},LOCAL_PAYMENT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_TOKENIZATION_FAILED",message:"Could not tokenize user's local payment method."},LOCAL_PAYMENT_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_INVALID_PAYMENT_OPTION",message:"Local payment options are invalid."}}},{"../../lib/braintree-error":126}],168:[function(e,t,n){"use strict";var r=e("../../lib/promise"),i=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),a=e("../shared/errors"),s=e("../../lib/methods"),c=e("@braintree/wrap-promise"),l=e("../../lib/analytics"),u=e("../../lib/convert-methods-to-error"),d=e("../../lib/convert-to-braintree-error"),p=e("../shared/constants"),_=e("../../lib/constants").INTEGRATION_TIMEOUT_MS;function E(e){var t=e.client.getConfiguration();this._client=e.client,this._assetsUrl=t.gatewayConfiguration.assetsUrl+"/web/3.76.4",this._isDebug=t.isDebug,this._authInProgress=!1, +window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix?this._callbackUrl=window.popupBridge.getReturnUrlPrefix()+"return":this._callbackUrl=this._assetsUrl+"/html/redirect-frame"+(this._isDebug?"":".min")+".html"}E.prototype._initialize=function(){var e=this;return new r((function(t){var n=setTimeout((function(){l.sendEvent(e._client,"masterpass.load.timed-out")}),_);i.create({name:p.LANDING_FRAME_NAME,height:p.POPUP_HEIGHT,width:p.POPUP_WIDTH,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+(e._isDebug?"":".min")+".html",openFrameUrl:e._assetsUrl+"/html/masterpass-landing-frame"+(e._isDebug?"":".min")+".html"},(function(r){e._frameService=r,clearTimeout(n),l.sendEvent(e._client,"masterpass.load.succeeded"),t(e)}))}))},E.prototype.tokenize=function(e){var t=this;return!e||function(e){var t,n;for(t=0;t-1?(l.sendEvent(n._client,"masterpass.tokenization.failed.to-open"), +void t(new o({code:a.MASTERPASS_POPUP_OPEN_FAILED.code,type:a.MASTERPASS_POPUP_OPEN_FAILED.type,message:a.MASTERPASS_POPUP_OPEN_FAILED.message,details:{originalError:r}}))):(l.sendEvent(n._client,"masterpass.tokenization.failed"),n._closeWindow(),void t(d(r,a.MASTERPASS_FLOW_FAILED)));n._tokenizeMasterpass(i).then(e).catch(t)}},E.prototype._tokenizeMasterpass=function(e){var t=this;return"success"!==e.mpstatus?(l.sendEvent(t._client,"masterpass.tokenization.closed.by-user"),t._closeWindow(),r.reject(new o(a.MASTERPASS_POPUP_CLOSED))):function(e){return[e.oauth_verifier,e.oauth_token,e.checkout_resource_url].some((function(e){return null==e||"null"===e}))}(e)?(l.sendEvent(t._client,"masterpass.tokenization.closed.missing-payload"),t._closeWindow(),r.reject(new o(a.MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS))):t._client.request({endpoint:"payment_methods/masterpass_cards",method:"post",data:{masterpassCard:{checkoutResourceUrl:e.checkout_resource_url,requestToken:e.oauth_token,verifierToken:e.oauth_verifier}}}).then((function(e){return t._closeWindow(),window.popupBridge?l.sendEvent(t._client,"masterpass.tokenization.success-popupbridge"):l.sendEvent(t._client,"masterpass.tokenization.success"),e.masterpassCards[0]})).catch((function(e){return t._closeWindow(),window.popupBridge?l.sendEvent(t._client,"masterpass.tokenization.failed-popupbridge"):l.sendEvent(t._client,"masterpass.tokenization.failed"),r.reject(d(e,a.MASTERPASS_ACCOUNT_TOKENIZATION_FAILED))}))},E.prototype._closeWindow=function(){this._authInProgress=!1,this._frameService.close()},E.prototype.teardown=function(){var e=this;return new r((function(t){e._frameService.teardown(),u(e,s(E.prototype)),l.sendEvent(e._client,"masterpass.teardown-completed"),t()}))},t.exports=c.wrapPrototype(E)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/promise":159,"../shared/constants":171,"../shared/errors":172,"@braintree/wrap-promise":44}],169:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("../lib/basic-component-verification"),o=e("./shared/browser-detection"),a=e("./external/masterpass"),s=e("../lib/create-deferred-client"),c=e("../lib/create-assets-url"),l=e("./shared/errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");function p(){return Boolean(window.popupBridge||o.supportsPopups())}t.exports={create:d((function(e){return i.verify({name:"Masterpass",client:e.client,authorization:e.authorization}).then((function(){return p()?u.resolve():u.reject(new r(l.MASTERPASS_BROWSER_NOT_SUPPORTED))})).then((function(){return s.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:"Masterpass"})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.masterpass?new a(e)._initialize():u.reject(new r(l.MASTERPASS_NOT_ENABLED))}))})),isSupported:p,VERSION:"3.76.4"}},{ +"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/masterpass":168,"./shared/browser-detection":170,"./shared/errors":172,"@braintree/wrap-promise":44}],170:[function(e,t,n){"use strict";t.exports={supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/supports-popups":32}],171:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreemasterpasslanding",POPUP_WIDTH:450,POPUP_HEIGHT:660,MASTERPASS_VERSION:"v6",REQUIRED_OPTIONS_FOR_TOKENIZE:["subtotal","currencyCode"]}},{}],172:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={MASTERPASS_BROWSER_NOT_SUPPORTED:{type:r.types.CUSTOMER,code:"MASTERPASS_BROWSER_NOT_SUPPORTED",message:"Browser is not supported."},MASTERPASS_NOT_ENABLED:{type:r.types.MERCHANT,code:"MASTERPASS_NOT_ENABLED",message:"Masterpass is not enabled for this merchant."},MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS",message:"Masterpass tokenization is already in progress."},MASTERPASS_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's Masterpass account."},MASTERPASS_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"MASTERPASS_POPUP_OPEN_FAILED",message:"Masterpass popup failed to open. Make sure to tokenize in response to a user action, such as a click."},MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS:{type:r.types.MERCHANT,code:"MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS",message:"Masterpass popup failed to return all required parameters needed to continue tokenization."},MASTERPASS_POPUP_CLOSED:{type:r.types.CUSTOMER,code:"MASTERPASS_POPUP_CLOSED",message:"Customer closed Masterpass popup before authorizing."},MASTERPASS_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_INVALID_PAYMENT_OPTION",message:"Masterpass payment options are invalid."},MASTERPASS_FLOW_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_FLOW_FAILED",message:"Could not initialize Masterpass flow."}}},{"../../lib/braintree-error":126}],173:[function(e,t,n){"use strict";var r=e("../../lib/analytics"),i=e("../../lib/assign").assign,o=e("framebus"),a=e("../../lib/convert-methods-to-error"),s=e("../../lib/generate-google-pay-configuration"),c=e("@braintree/iframer"),l=e("@braintree/uuid"),u=e("../../lib/use-min"),d=e("../../lib/methods"),p=e("../../lib/promise"),_=e("@braintree/event-emitter"),E=e("../../lib/braintree-error"),h=e("../shared/constants"),f=h.events,m=h.errors,y=e("@braintree/wrap-promise"),A={Visa:"visa",MasterCard:"mastercard","American Express":"amex","Diners Club":"diners",Discover:"discover",JCB:"jcb",UnionPay:"unionpay",Maestro:"maestro"};function T(e){var t=e.enabledPaymentMethods||{} +;_.call(this),this._componentId=l(),this._client=e.client,this._enabledPaymentMethods={basicCard:!1!==t.basicCard,googlePay:!1!==t.googlePay},this._googlePayVersion=2===e.googlePayVersion?2:1,this._googleMerchantId="18278000977346790994",this._supportedPaymentMethods=this._constructDefaultSupportedPaymentMethods(),this._defaultSupportedPaymentMethods=Object.keys(this._supportedPaymentMethods).map(function(e){return this._supportedPaymentMethods[e]}.bind(this)),this._bus=new o({channel:this._componentId})}_.createChild(T),T.prototype._constructDefaultSupportedPaymentMethods=function(){var e=this._client.getConfiguration(),t=e.gatewayConfiguration.androidPay,n=e.gatewayConfiguration.creditCards,r={};return this._enabledPaymentMethods.basicCard&&n&&n.supportedCardTypes.length>0&&(r.basicCard={supportedMethods:"basic-card",data:{supportedNetworks:n.supportedCardTypes.reduce((function(e,t){return t in A&&e.push(A[t]),e}),[])}}),this._enabledPaymentMethods.googlePay&&t&&t.enabled&&(r.googlePay={supportedMethods:"https://google.com/pay",data:s(e,this._googlePayVersion,this._googleMerchantId)}),r},T.prototype.initialize=function(){var e=this._client.getConfiguration(),t=this;return this._frame=c({allowPaymentRequest:!0,name:"braintree-payment-request-frame",class:"braintree-payment-request-frame",height:0,width:0,style:{position:"absolute",left:"-9999px"},title:"Secure Payment Frame"}),0===this._defaultSupportedPaymentMethods.length?p.reject(new E(m.PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS)):new p((function(n){var i,o,a;t._bus.on(f.FRAME_READY,(function(e){e(t._client)})),t._bus.on(f.FRAME_CAN_MAKE_REQUESTS,(function(){r.sendEvent(t._client,"payment-request.initialized"),t._bus.on(f.SHIPPING_ADDRESS_CHANGE,(function(e){var n={target:{shippingAddress:e},updateWith:function(e){t._bus.emit(f.UPDATE_SHIPPING_ADDRESS,e)}};t._emit("shippingAddressChange",n),t._emit("shippingaddresschange",n)})),t._bus.on(f.SHIPPING_OPTION_CHANGE,(function(e){var n={target:{shippingOption:e},updateWith:function(e){t._bus.emit(f.UPDATE_SHIPPING_OPTION,e)}};t._emit("shippingOptionChange",n),t._emit("shippingoptionchange",n)})),n(t)})),t._frame.src=(i=e.gatewayConfiguration.assetsUrl,o=t._componentId,a=e.isDebug,i+"/web/3.76.4/html/payment-request-frame"+u(a)+".html#"+o),document.body.appendChild(t._frame)}))},T.prototype.createSupportedPaymentMethodsConfiguration=function(e,t){var n;if(!e)throw new E(m.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE);if(!this._enabledPaymentMethods[e])throw new E(m.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED);return(n=i({},this._supportedPaymentMethods[e])).data=i({},n.data,t),n},T.prototype.tokenize=function(e){var t=this;return new p((function(n,i){t._bus.emit(f.PAYMENT_REQUEST_INITIALIZED,{supportedPaymentMethods:e.supportedPaymentMethods||t._defaultSupportedPaymentMethods,details:e.details,options:e.options},(function(e){var o=e[0],a=e[1];o?i(t._formatTokenizationError(o)):(r.sendEvent(t._client,"payment-request.tokenize.succeeded"), +n({nonce:a.nonce,type:a.type,description:a.description,details:{rawPaymentResponse:a.details.rawPaymentResponse,cardType:a.details.cardType,lastFour:a.details.lastFour,lastTwo:a.details.lastTwo},binData:a.binData}))}))}))},T.prototype.canMakePayment=function(e){var t,n=this;return window.PaymentRequest?e.supportedPaymentMethods&&(e.supportedPaymentMethods.forEach((function(e){var n=e.supportedMethods;n in h.SUPPORTED_METHODS||(t=n)})),t)?p.reject(new E({type:m.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.type,code:m.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.code,message:t+" is not a supported payment method."})):new p((function(t,i){n._bus.emit(f.CAN_MAKE_PAYMENT,{supportedPaymentMethods:e.supportedPaymentMethods||n._defaultSupportedPaymentMethods,details:e.details,options:e.options},(function(e){var o=e[0],a=e[1];o?i(n._formatCanMakePaymentError(o)):(r.sendEvent(n._client,"payment-request.can-make-payment."+a),t(a))}))})):(r.sendEvent(n._client,"payment-request.can-make-payment.not-available"),p.resolve(!1))},T.prototype.teardown=function(){return this._bus.teardown(),this._frame.parentNode.removeChild(this._frame),a(this,d(T.prototype)),r.sendEvent(this._client,"payment-request.teardown-completed"),p.resolve()},T.prototype._formatTokenizationError=function(e){var t;switch(e.name){case"AbortError":return t=new E({type:m.PAYMENT_REQUEST_CANCELED.type,code:m.PAYMENT_REQUEST_CANCELED.code,message:m.PAYMENT_REQUEST_CANCELED.message,details:{originalError:e}}),r.sendEvent(this._client,"payment-request.tokenize.canceled"),t;case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new E({type:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_TOKENIZATION_ERROR":t=new E({type:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.type,code:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.code,message:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_PARSING_ERROR":t=new E({type:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.type,code:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.code,message:m.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.message,details:{originalError:e}});break;default:t=new E({code:m.PAYMENT_REQUEST_NOT_COMPLETED.code,type:e.type||E.types.CUSTOMER,message:m.PAYMENT_REQUEST_NOT_COMPLETED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.tokenize.failed"),t},T.prototype._formatCanMakePaymentError=function(e){var t;switch(e.name){case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new E({type:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:m.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"NotAllowedError":t=new E({type:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.type, +code:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.code,message:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.message,details:{originalError:e}});break;default:t=new E({code:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.code,type:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.type,message:m.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.can-make-payment.failed"),t},t.exports=y.wrapPrototype(T)},{"../../lib/analytics":121,"../../lib/assign":123,"../../lib/braintree-error":126,"../../lib/convert-methods-to-error":129,"../../lib/generate-google-pay-configuration":151,"../../lib/methods":157,"../../lib/promise":159,"../../lib/use-min":162,"../shared/constants":175,"@braintree/event-emitter":34,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],174:[function(e,t,n){"use strict";var r=e("./external/payment-request"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="Payment Request";return i.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,new r(e).initialize()}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./external/payment-request":173,"@braintree/wrap-promise":44}],175:[function(e,t,n){"use strict";var r=e("../../lib/enumerate"),i=e("./errors"),o={};o.events=r(["CAN_MAKE_PAYMENT","FRAME_READY","FRAME_CAN_MAKE_REQUESTS","PAYMENT_REQUEST_INITIALIZED","SHIPPING_ADDRESS_CHANGE","UPDATE_SHIPPING_ADDRESS","SHIPPING_OPTION_CHANGE","UPDATE_SHIPPING_OPTION"],"payment-request:"),o.errors=i,o.SUPPORTED_METHODS={"basic-card":!0,"https://google.com/pay":!0},t.exports=o},{"../../lib/enumerate":136,"./errors":176}],176:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS",message:"There are no supported payment methods associated with this account."},PAYMENT_REQUEST_CANCELED:{type:r.types.CUSTOMER,code:"PAYMENT_REQUEST_CANCELED",message:"Payment request was canceled."},PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED",message:"Something went wrong when configuring the payment request."},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED:{type:r.types.UNKNOWN,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED",message:"Something went wrong when calling `canMakePayment`"},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED", +message:"Something went wrong when calling `canMakePayment`. Most likely, `canMakePayment` was called multiple times with different supportedMethods configurations."},PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD"},PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR:{type:r.types.UNKNOWN,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_NOT_COMPLETED:{code:"PAYMENT_REQUEST_NOT_COMPLETED",message:"Payment request could not be completed."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE",message:"createSupportedPaymentMethodsConfiguration must include a type parameter."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED",message:"createSupportedPaymentMethodsConfiguration type parameter must be valid or enabled."}}},{"../../lib/braintree-error":126}],177:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED:{type:r.types.MERCHANT,code:"PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED",message:"A linked PayPal Sandbox account is required to use PayPal Checkout in Sandbox. See https://developers.braintreepayments.com/guides/paypal/testing-go-live/#linked-paypal-testing for details on linking your PayPal sandbox with Braintree."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED"},PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED:{type:r.types.NETWORK,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED",message:"Something went wrong when setting up the checkout workflow."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to initiate the vault checkout in response to a user action."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED:{type:r.types.CUSTOMER,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED", +message:"Customer closed PayPal popup before authorizing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS",message:"Vault initiated checkout already in progress."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../lib/braintree-error":126}],178:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("@braintree/wrap-promise"),o=e("./paypal-checkout");t.exports={create:i((function(e){return r.verify({name:"PayPal Checkout",client:e.client,authorization:e.authorization}).then((function(){return new o(e)._initialize(e)}))})),isSupported:function(){return!0},VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"./paypal-checkout":179,"@braintree/wrap-promise":44}],179:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/assign").assign,o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("../lib/promise"),c=e("@braintree/extended-promise"),l=e("@braintree/wrap-promise"),u=e("../lib/braintree-error"),d=e("../lib/convert-to-braintree-error"),p=e("./errors"),_=e("../paypal/shared/constants"),E=e("../lib/frame-service/external"),h=e("../lib/create-authorization-data"),f=e("../lib/methods"),m=e("../lib/use-min"),y=e("../lib/convert-methods-to-error"),A=e("../lib/querystring"),T=e("../lib/constants").INTEGRATION_TIMEOUT_MS,I=["amount","currency","vaultInitiatedCheckoutPaymentMethodToken"];function N(e){this._merchantAccountId=e.merchantAccountId,this._autoSetDataUserIdToken=Boolean(e.autoSetDataUserIdToken)}N.prototype._initialize=function(e){var t;return e.client?(t=e.client.getConfiguration(),this._authorizationInformation={fingerprint:t.authorizationFingerprint,environment:t.gatewayConfiguration.environment}):(t=h(e.authorization),this._authorizationInformation={fingerprint:t.attrs.authorizationFingerprint,environment:t.environment}),this._clientPromise=o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"PayPal Checkout"}).then(function(e){return this._configuration=e.getConfiguration(),this._merchantAccountId||(this._configuration.gatewayConfiguration.paypalEnabled?!0===this._configuration.gatewayConfiguration.paypal.environmentNoNetwork&&(this._setupError=new u(p.PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED)):this._setupError=new u(p.PAYPAL_NOT_ENABLED)),this._setupError?s.reject(this._setupError):(r.sendEvent(e,"paypal-checkout.initialized"),this._frameServicePromise=this._setupFrameService(e),e)}.bind(this)),e.client?this._clientPromise.then(function(){return this}.bind(this)):s.resolve(this)},N.prototype._setupFrameService=function(e){var t=new c,n=e.getConfiguration(),i=setTimeout((function(){r.sendEvent(e,"paypal-checkout.frame-service.timed-out"),t.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED))}),T);return this._assetsUrl=n.gatewayConfiguration.paypal.assetsUrl+"/web/3.76.4",this._isDebug=n.isDebug, +this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+m(this._isDebug)+".html",E.create({name:"braintreepaypallanding",dispatchFrameUrl:this._assetsUrl+"/html/dispatch-frame"+m(this._isDebug)+".html",openFrameUrl:this._loadingFrameUrl},function(e){this._frameService=e,clearTimeout(i),t.resolve()}.bind(this)),t},N.prototype.createPayment=function(e){return e&&_.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(r.sendEvent(this._clientPromise,"paypal-checkout.createPayment"),this._createPaymentResource(e).then((function(t){return"checkout"===e.flow?t.paymentResource.redirectUrl.match(/EC-\w+/)[0]:t.agreementSetup.tokenId}))):s.reject(new u(p.PAYPAL_FLOW_OPTION_REQUIRED))},N.prototype._createPaymentResource=function(e,t){var n=this,i="paypal_hermes/"+_.FLOW_ENDPOINTS[e.flow];return delete this.intentFromCreatePayment,t=t||{},!0===e.offerCredit&&r.sendEvent(this._clientPromise,"paypal-checkout.credit.offered"),this._clientPromise.then((function(r){return r.request({endpoint:i,method:"post",data:n._formatPaymentResourceData(e,t)}).then((function(t){return n.intentFromCreatePayment=e.intent,t}))})).catch((function(e){return n._setupError?s.reject(n._setupError):422===(e.details&&e.details.httpStatus)?s.reject(new u({type:p.PAYPAL_INVALID_PAYMENT_OPTION.type,code:p.PAYPAL_INVALID_PAYMENT_OPTION.code,message:p.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):s.reject(d(e,{type:p.PAYPAL_FLOW_FAILED.type,code:p.PAYPAL_FLOW_FAILED.code,message:p.PAYPAL_FLOW_FAILED.message}))}))},N.prototype.startVaultInitiatedCheckout=function(e){var t,n=this;return this._vaultInitiatedCheckoutInProgress?(r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.error.already-in-progress"),s.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS))):(I.forEach((function(n){e.hasOwnProperty(n)||(t=n)})),t?s.reject(new u({type:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.type,code:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.code,message:"Required param "+t+" is missing."})):(this._vaultInitiatedCheckoutInProgress=!0,this._addModalBackdrop(e),e=i({},e,{flow:"checkout"}),r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.started"),this._waitForVaultInitiatedCheckoutDependencies().then((function(){var t=new c,r=n._createPaymentResource(e,{returnUrl:n._constructVaultCheckutUrl("redirect-frame"),cancelUrl:n._constructVaultCheckutUrl("cancel-frame")}).then((function(e){var r=e.paymentResource.redirectUrl;return n._frameService.redirect(r),t}));return n._frameService.open({},n._createFrameServiceCallback(t)),r})).catch((function(e){return n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),"FRAME_SERVICE_FRAME_CLOSED"===e.code?(r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-customer"),s.reject(new u(p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED))):(n._frameService&&n._frameService.close(), +e.code&&e.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.failed.popup-not-opened"),s.reject(new u({code:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.code,type:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.type,message:p.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.message,details:{originalError:e}}))):s.reject(e))})).then((function(e){return n._frameService.close(),n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),r.sendEvent(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.succeeded"),s.resolve(e)}))))},N.prototype._addModalBackdrop=function(e){e.optOutOfModalBackdrop||(this._modalBackdrop||(this._modalBackdrop=document.createElement("div"),this._modalBackdrop.setAttribute("data-braintree-paypal-vault-initiated-checkout-modal",!0),this._modalBackdrop.style.position="fixed",this._modalBackdrop.style.top=0,this._modalBackdrop.style.bottom=0,this._modalBackdrop.style.left=0,this._modalBackdrop.style.right=0,this._modalBackdrop.style.zIndex=9999,this._modalBackdrop.style.background="black",this._modalBackdrop.style.opacity="0.7",this._modalBackdrop.addEventListener("click",function(){this.focusVaultInitiatedCheckoutWindow()}.bind(this))),document.body.appendChild(this._modalBackdrop))},N.prototype._removeModalBackdrop=function(){this._modalBackdrop&&this._modalBackdrop.parentNode&&this._modalBackdrop.parentNode.removeChild(this._modalBackdrop)},N.prototype.closeVaultInitiatedCheckoutWindow=function(){return this._vaultInitiatedCheckoutInProgress&&r.sendEvent(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-merchant"),this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.close()}.bind(this))},N.prototype.focusVaultInitiatedCheckoutWindow=function(){return this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.focus()}.bind(this))},N.prototype._createFrameServiceCallback=function(e){var t=this;return function(n,r){n?e.reject(n):r&&(t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment({paymentToken:r.token,payerID:r.PayerID,paymentID:r.paymentId}).then((function(t){e.resolve(t)})).catch((function(t){e.reject(t)})))}},N.prototype._waitForVaultInitiatedCheckoutDependencies=function(){var e=this;return this._clientPromise.then((function(){return e._frameServicePromise}))},N.prototype._constructVaultCheckutUrl=function(e){var t=this._frameService._serviceId;return this._assetsUrl+"/html/"+e+m(this._isDebug)+".html?channel="+t},N.prototype.tokenizePayment=function(e){var t,n=this,i=!0,o={flow:e.billingToken&&!e.paymentID?"vault":"checkout",intent:e.intent||this.intentFromCreatePayment},a={ecToken:e.paymentToken,billingToken:e.billingToken,payerId:e.payerID,paymentId:e.paymentID,shippingOptionsId:e.shippingOptionsId};return e.hasOwnProperty("vault")&&(i=e.vault),o.vault=i,r.sendEvent(this._clientPromise,"paypal-checkout.tokenization.started"),this._clientPromise.then((function(e){ +return e.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:n._formatTokenizeData(o,a)})})).then((function(e){return t=n._formatTokenizePayload(e),r.sendEvent(n._clientPromise,"paypal-checkout.tokenization.success"),t.creditFinancingOffered&&r.sendEvent(n._clientPromise,"paypal-checkout.credit.accepted"),t})).catch((function(e){return n._setupError?s.reject(n._setupError):(r.sendEvent(n._clientPromise,"paypal-checkout.tokenization.failed"),s.reject(d(e,{type:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:p.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message})))}))},N.prototype.getClientId=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.paypal.clientId}))},N.prototype.loadPayPalSDK=function(e){var t,n=new c,r=e&&e.dataAttributes;return t=r&&r["user-id-token"]?r["user-id-token"]:this._authorizationInformation.fingerprint&&this._authorizationInformation.fingerprint.split("?")[0],this._paypalScript=document.createElement("script"),delete(e=i({},{components:"buttons"},e)).dataAttributes,e.vault?e.intent=e.intent||"tokenize":(e.intent=e.intent||"authorize",e.currency=e.currency||"USD"),this._paypalScript.onload=function(){n.resolve()},r&&Object.keys(r).forEach(function(e){this._paypalScript.setAttribute("data-"+e,r[e])}.bind(this)),(e["client-id"]?s.resolve(e["client-id"]):this.getClientId()).then(function(n){e["client-id"]=n,this._autoSetDataUserIdToken&&t&&(this._paypalScript.setAttribute("data-user-id-token",t),this._attachPreloadPixel({id:n,userIdToken:t,amount:r&&r.amount,currency:e.currency,merchantId:e["merchant-id"]})),this._paypalScript.src=A.queryify("https://www.paypal.com/sdk/js?",e),document.head.insertBefore(this._paypalScript,document.head.firstElementChild)}.bind(this)),n.then(function(){return this}.bind(this))},N.prototype._attachPreloadPixel=function(e){var t,n=e.id,r=e.userIdToken,i=this._authorizationInformation.environment,o="https://www.{ENV}paypal.com/smart/buttons/preload".replace("{ENV}","production"===i?"":"sandbox."),a={"client-id":n,"user-id-token":r};e.amount&&(a.amount=e.amount),e.currency&&(a.currency=e.currency),e.merchantId&&(a["merchant-id"]=e.merchantId),(t=new XMLHttpRequest).open("GET",A.queryify(o,a)),t.send()},N.prototype._formatPaymentResourceData=function(e,t){var n,r=this._configuration.gatewayConfiguration,i=e.intent,o={returnUrl:t.returnUrl||"https://www.paypal.com/checkoutnow/error",cancelUrl:t.cancelUrl||"https://www.paypal.com/checkoutnow/error",offerPaypalCredit:!0===e.offerCredit,merchantAccountId:this._merchantAccountId,experienceProfile:{brandName:e.displayName||r.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType},shippingOptions:e.shippingOptions};if("checkout"===e.flow){for(n in o.amount=e.amount,o.currencyIsoCode=e.currency,o.requestBillingAgreement=e.requestBillingAgreement,i&&("capture"===i&&(i="sale"),o.intent=i), +e.hasOwnProperty("lineItems")&&(o.lineItems=e.lineItems),e.hasOwnProperty("vaultInitiatedCheckoutPaymentMethodToken")&&(o.vaultInitiatedCheckoutPaymentMethodToken=e.vaultInitiatedCheckoutPaymentMethodToken),e.hasOwnProperty("shippingOptions")&&(o.shippingOptions=e.shippingOptions),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(n)&&(o[n]=e.shippingAddressOverride[n]);e.hasOwnProperty("billingAgreementDetails")&&(o.billingAgreementDetails=e.billingAgreementDetails)}else o.shippingAddress=e.shippingAddressOverride,e.billingAgreementDescription&&(o.description=e.billingAgreementDescription);return o},N.prototype._formatTokenizeData=function(e,t){var n=this._configuration,r=n.gatewayConfiguration,i="TOKENIZATION_KEY"===n.authorizationType,o="vault"===e.flow,a={paypalAccount:{correlationId:t.billingToken||t.ecToken,options:{validate:o&&!i&&e.vault}}};return o?a.paypalAccount.billingAgreementToken=t.billingToken:(a.paypalAccount.paymentToken=t.paymentId,a.paypalAccount.payerId=t.payerId,a.paypalAccount.unilateral=r.paypal.unvettedMerchant,e.intent&&(a.paypalAccount.intent=e.intent)),this._merchantAccountId&&(a.merchantAccountId=this._merchantAccountId),a},N.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),n.details&&n.details.shippingOptionId&&(t.shippingOptionId=n.details.shippingOptionId),n.details&&n.details.cobrandedCardLabel&&(t.cobrandedCardLabel=n.details.cobrandedCardLabel),t},N.prototype.teardown=function(){var e=this;return y(this,f(N.prototype)),this._paypalScript&&this._paypalScript.parentNode&&this._paypalScript.parentNode.removeChild(this._paypalScript),this._frameServicePromise.catch((function(){})).then((function(){return e._frameService?e._frameService.teardown():s.resolve()}))},t.exports=l.wrapPrototype(N)},{"../lib/analytics":121,"../lib/assign":123,"../lib/braintree-error":126,"../lib/constants":128,"../lib/convert-methods-to-error":129,"../lib/convert-to-braintree-error":130,"../lib/create-assets-url":131,"../lib/create-authorization-data":132,"../lib/create-deferred-client":133,"../lib/frame-service/external":141,"../lib/methods":157,"../lib/promise":159,"../lib/querystring":160,"../lib/use-min":162,"../paypal/shared/constants":182,"./errors":177,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],180:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),i=e("../../lib/braintree-error"),o=e("../../lib/convert-to-braintree-error"),a=e("../../lib/use-min"),s=e("../../lib/once"),c=e("../shared/constants"),l=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,u=e("../../lib/analytics"),d=e("../../lib/methods"),p=e("../../lib/deferred"),_=e("../shared/errors"),E=e("../../lib/convert-methods-to-error"),h=e("../../lib/querystring"),f=e("../../lib/promise"),m=e("@braintree/wrap-promise");function y(e){ +this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.paypal.assetsUrl+"/web/3.76.4",this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+a(this._isDebug)+".html",this._authorizationInProgress=!1}y.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout((function(){u.sendEvent(t,"paypal.load.timed-out")}),l);return new f((function(i){r.create({name:c.LANDING_FRAME_NAME,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+a(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},(function(r){e._frameService=r,clearTimeout(n),u.sendEvent(t,"paypal.load.succeeded"),i(e)}))}))},y.prototype.tokenize=function(e,t){var n,r,o=this,a=this._client;return t&&(t=s(p(t))),e&&c.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(n=new f((function(t,n){o._authorizationInProgress?(u.sendEvent(a,"paypal.tokenization.error.already-opened"),n(new i(_.PAYPAL_TOKENIZATION_REQUEST_ACTIVE))):(o._authorizationInProgress=!0,window.popupBridge||u.sendEvent(a,"paypal.tokenization.opened"),!0===e.offerCredit&&u.sendEvent(a,"paypal.credit.offered"),!0===e.offerPayLater&&u.sendEvent(a,"paypal.paylater.offered"),o._navigateFrameToAuth(e).catch(n),o._frameService.open({},o._createFrameServiceCallback(e,t,n)))})),t?(n.then((function(e){t(null,e)})).catch(t),this._frameService.createHandler({beforeClose:function(){u.sendEvent(a,"paypal.tokenization.closed.by-merchant")}})):n):(r=new i(_.PAYPAL_FLOW_OPTION_REQUIRED),t?(t(r),this._frameService.createNoopHandler()):f.reject(r))},y.prototype._createFrameServiceCallback=function(e,t,n){var r=this,o=this._client;return window.popupBridge?function(a,s){var c=s&&s.path&&"/cancel"===s.path.substring(0,7);r._authorizationInProgress=!1,a||c?(u.sendEvent(o,"paypal.tokenization.closed-popupbridge.by-user"),n(new i(_.PAYPAL_POPUP_CLOSED))):s&&r._tokenizePayPal(e,s.queryItems).then(t).catch(n)}:function(a,s){r._authorizationInProgress=!1,a?"FRAME_SERVICE_FRAME_CLOSED"===a.code?(u.sendEvent(o,"paypal.tokenization.closed.by-user"),n(new i(_.PAYPAL_POPUP_CLOSED))):a.code&&a.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&n(new i({code:_.PAYPAL_POPUP_OPEN_FAILED.code,type:_.PAYPAL_POPUP_OPEN_FAILED.type,message:_.PAYPAL_POPUP_OPEN_FAILED.message,details:{originalError:a}})):s&&r._tokenizePayPal(e,s).then(t).catch(n)}},y.prototype._tokenizePayPal=function(e,t){var n=this,r=this._client;return window.popupBridge||this._frameService.redirect(this._loadingFrameUrl),r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e,t)}).then((function(e){var t=n._formatTokenizePayload(e);return window.popupBridge?u.sendEvent(r,"paypal.tokenization.success-popupbridge"):u.sendEvent(r,"paypal.tokenization.success"),t.creditFinancingOffered&&u.sendEvent(r,"paypal.credit.accepted"),n._frameService.close(),t})).catch((function(e){return window.popupBridge?u.sendEvent(r,"paypal.tokenization.failed-popupbridge"):u.sendEvent(r,"paypal.tokenization.failed"),n._frameService.close(),f.reject(o(e,{ +type:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:_.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message}))}))},y.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),t},y.prototype._formatTokenizeData=function(e,t){var n=this._client.getConfiguration(),r=n.gatewayConfiguration,i="TOKENIZATION_KEY"===n.authorizationType,o={paypalAccount:{correlationId:t.ba_token||t.token,options:{validate:"vault"===e.flow&&!i}}};return t.ba_token?o.paypalAccount.billingAgreementToken=t.ba_token:(o.paypalAccount.paymentToken=t.paymentId,o.paypalAccount.payerId=t.PayerID,o.paypalAccount.unilateral=r.paypal.unvettedMerchant,e.hasOwnProperty("intent")&&(o.paypalAccount.intent=e.intent)),o},y.prototype._navigateFrameToAuth=function(e){var t=this,n=this._client,r="paypal_hermes/"+c.FLOW_ENDPOINTS[e.flow];return n.request({endpoint:r,method:"post",data:this._formatPaymentResourceData(e)}).then((function(r){var i;i="checkout"===e.flow?r.paymentResource.redirectUrl:r.agreementSetup.approvalUrl,"commit"===e.useraction&&(i=h.queryify(i,{useraction:"commit"})),window.popupBridge&&u.sendEvent(n,"paypal.tokenization.opened-popupbridge"),t._frameService.redirect(i)})).catch((function(e){var n=e.details&&e.details.httpStatus;return t._frameService.close(),t._authorizationInProgress=!1,422===n?f.reject(new i({type:_.PAYPAL_INVALID_PAYMENT_OPTION.type,code:_.PAYPAL_INVALID_PAYMENT_OPTION.code,message:_.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):f.reject(o(e,{type:_.PAYPAL_FLOW_FAILED.type,code:_.PAYPAL_FLOW_FAILED.code,message:_.PAYPAL_FLOW_FAILED.message}))}))},y.prototype._formatPaymentResourceData=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,r=this._frameService._serviceId,i={returnUrl:n.paypal.assetsUrl+"/web/3.76.4/html/redirect-frame"+a(this._isDebug)+".html?channel="+r,cancelUrl:n.paypal.assetsUrl+"/web/3.76.4/html/cancel-frame"+a(this._isDebug)+".html?channel="+r,offerPaypalCredit:!0===e.offerCredit,offerPayLater:!0===e.offerPayLater,experienceProfile:{brandName:e.displayName||n.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType}};if(window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix&&(i.returnUrl=window.popupBridge.getReturnUrlPrefix()+"return",i.cancelUrl=window.popupBridge.getReturnUrlPrefix()+"cancel"),"checkout"===e.flow)for(t in i.amount=e.amount,i.currencyIsoCode=e.currency,e.hasOwnProperty("intent")&&(i.intent=e.intent),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(t)&&(i[t]=e.shippingAddressOverride[t]);else i.shippingAddress=e.shippingAddressOverride, +e.billingAgreementDescription&&(i.description=e.billingAgreementDescription);return i},y.prototype.closeWindow=function(){this._authorizationInProgress&&u.sendEvent(this._client,"paypal.tokenize.closed.by-merchant"),this._frameService.close()},y.prototype.focusWindow=function(){this._frameService.focus()},y.prototype.teardown=m((function(){return this._frameService.teardown(),E(this,d(y.prototype)),u.sendEvent(this._client,"paypal.teardown-completed"),f.resolve()})),t.exports=y},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/convert-to-braintree-error":130,"../../lib/deferred":134,"../../lib/frame-service/external":141,"../../lib/methods":157,"../../lib/once":158,"../../lib/promise":159,"../../lib/querystring":160,"../../lib/use-min":162,"../shared/constants":182,"../shared/errors":183,"@braintree/wrap-promise":44}],181:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("../lib/braintree-error"),c=e("./shared/errors"),l=e("./external/paypal"),u=e("@braintree/wrap-promise"),d=e("../lib/promise");t.exports={create:u((function(e){return i.verify({name:"PayPal",client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"PayPal"})})).then((function(t){var n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?d.reject(new s(c.PAYPAL_NOT_ENABLED)):(r.sendEvent(e.client,"paypal.initialized"),new l(e)._initialize())}))})),isSupported:function(){return!0},VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./external/paypal":180,"./shared/errors":183,"@braintree/wrap-promise":44}],182:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreepaypallanding",FLOW_ENDPOINTS:{checkout:"create_payment_resource",vault:"setup_billing_agreement"}}},{}],183:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"PAYPAL_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_POPUP_OPEN_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_POPUP_OPEN_FAILED", +message:"PayPal popup failed to open, make sure to tokenize in response to a user action."},PAYPAL_POPUP_CLOSED:{type:r.types.CUSTOMER,code:"PAYPAL_POPUP_CLOSED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../../lib/braintree-error":126}],184:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../lib/basic-component-verification"),o=e("./preferred-payment-methods");t.exports={create:r((function(e){return i.verify({name:"PreferredPaymentMethods",client:e.client,authorization:e.authorization}).then((function(){return(new o).initialize(e)}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"./preferred-payment-methods":185,"@braintree/wrap-promise":44}],185:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../lib/analytics"),o=e("../lib/create-assets-url"),a=e("../lib/create-deferred-client"),s=e("../lib/promise");function c(){}c.prototype.initialize=function(e){var t=this;return this._clientPromise=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o.create(e.authorization),name:"PreferredPaymentMethods"}).catch((function(e){return t._setupError=e,s.reject(e)})),i.sendEvent(this._clientPromise,"preferred-payment-methods.initialized"),s.resolve(this)},c.prototype.fetchPreferredPaymentMethods=function(){var e,t=this;return this._clientPromise.then((function(t){return(e=t).request({api:"graphQLApi",data:{query:"query PreferredPaymentMethods { preferredPaymentMethods { paypalPreferred venmoPreferred } }"}})})).then((function(t){var n=t.data.preferredPaymentMethods.paypalPreferred,r=t.data.preferredPaymentMethods.venmoPreferred;return i.sendEvent(e,"preferred-payment-methods.paypal.api-detected."+n),i.sendEvent(e,"preferred-payment-methods.venmo.api-detected."+r),{paypalPreferred:n,venmoPreferred:r}})).catch((function(){return t._setupError?s.reject(t._setupError):(i.sendEvent(e,"preferred-payment-methods.api-error"),{paypalPreferred:!1,venmoPreferred:!1})}))},t.exports=r.wrapPrototype(c)},{"../lib/analytics":121,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"@braintree/wrap-promise":44}],186:[function(e,t,n){"use strict";var r=e("../../../lib/assign").assign,i=e("../../../lib/analytics"),o=e("../../../lib/braintree-error"),a=e("../../../lib/promise"),s=e("../../../lib/is-verified-domain"),c=e("@braintree/extended-promise"),l=e("@braintree/event-emitter"),u=e("../../shared/errors"),d=e("@braintree/iframer"),p=e("framebus"),_=e("../../shared/constants"),E=e("@braintree/uuid"),h=e("../../shared/events"),f=e("../../../lib/use-min"),m=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function y(e){l.call(this),this._client=e.client,this._createPromise=e.createPromise,this._createOptions=e,this._client?(this._isDebug=this._client.getConfiguration().isDebug, +this._assetsUrl=this._client.getConfiguration().gatewayConfiguration.assetsUrl):(this._isDebug=Boolean(e.isDebug),this._assetsUrl=e.assetsUrl),this._assetsUrl=this._assetsUrl+"/web/3.76.4"}l.createChild(y),y.prototype._waitForClient=function(){return this._client?a.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},y.prototype.setUpEventListeners=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.verifyCard=function(e,t){var n,r,o=this;return t=t||{},(r=this._checkForVerifyCardError(e,t))?a.reject(r):(this._verifyCardInProgress=!0,n=this._formatVerifyCardOptions(e),this._formatLookupData(n).then((function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.started"),o._performLookup(n.nonce,e)})).then((function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),o._onLookupComplete(e,n)})).then((function(e){return o.initializeChallengeWithLookupResponse(e,n)})).then((function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.completed"),e})).catch((function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.failed"),a.reject(e)})))},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._presentChallenge=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.prepareLookup=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._resetVerificationState=function(){this._verifyCardInProgress=!1,this._verifyCardPromisePlus=null},y.prototype._performLookup=function(e,t){var n=this,r="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then((function(){return n._client.request({endpoint:r,method:"post",data:t}).catch((function(e){var t,r=e&&e.details&&e.details.httpStatus,s="three-d-secure.verification-flow.lookup-failed";return 404===r?(t=u.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,s+=".404"):422===r?(t=u.THREEDS_LOOKUP_VALIDATION_ERROR,s+=".422"):t=u.THREEDS_LOOKUP_ERROR,i.sendEvent(n._createPromise,s),a.reject(new o({type:t.type,code:t.code,message:t.message,details:{originalError:e}}))}))}))},y.prototype._checkForVerifyCardError=function(e,t){var n;return!0===this._verifyCardInProgress?new o(u.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?e.amount||(n="an amount"):n="a nonce",n||(n=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),n?new o({type:u.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:u.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include "+n+"."}):null)},y.prototype.initializeChallengeWithLookupResponse=function(e,t){var n=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,n._verifyCardPromisePlus=n._verifyCardPromisePlus||new c,n._handleLookupResponse(e,t),n._verifyCardPromisePlus.then((function(e){ +return i.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),i.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e}))},y.prototype._handleLookupResponse=function(e,t){var n,r=Boolean(e.lookup&&e.lookup.acsUrl);i.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(r)),r?this._presentChallenge(e,t):((n=this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)).verificationDetails=e.threeDSecureInfo,this._verifyCardPromisePlus.resolve(n))},y.prototype._onLookupComplete=function(e){return this._lookupPaymentMethod=e.paymentMethod,this._verifyCardPromisePlus=new c,a.resolve(e)},y.prototype._formatAuthResponse=function(e,t){return{nonce:e.nonce,binData:e.binData,details:e.details,description:e.description&&e.description.replace(/\+/g," "),liabilityShifted:t&&t.liabilityShifted,liabilityShiftPossible:t&&t.liabilityShiftPossible,threeDSecureInfo:e.threeDSecureInfo}},y.prototype._formatVerifyCardOptions=function(e){return r({},e)},y.prototype._formatLookupData=function(e){var t={amount:e.amount};return a.resolve(t)},y.prototype._handleV1AuthResponse=function(e){var t=JSON.parse(e.auth_response);t.success?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(t.paymentMethod,t.threeDSecureInfo)):t.threeDSecureInfo&&t.threeDSecureInfo.liabilityShiftPossible?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod,t.threeDSecureInfo)):this._verifyCardPromisePlus.reject(new o({type:o.types.UNKNOWN,code:"UNKNOWN_AUTH_RESPONSE",message:t.error.message}))},y.prototype.cancelVerifyCard=function(){var e,t;return this._verifyCardInProgress=!1,this._lookupPaymentMethod?(t=this._lookupPaymentMethod.threeDSecureInfo,e=r({},this._lookupPaymentMethod,{liabilityShiftPossible:t&&t.liabilityShiftPossible,liabilityShifted:t&&t.liabilityShifted,verificationDetails:t&&t.verificationDetails}),a.resolve(e)):a.reject(new o(u.THREEDS_NO_VERIFICATION_PAYLOAD))},y.prototype._setupV1Bus=function(e){var t=window.location.href.split("#")[0],n=e.lookupResponse,r=E(),i=new p({channel:r,verifyDomain:s}),o=this._assetsUrl+"/html/three-d-secure-authentication-complete-frame.html?channel="+encodeURIComponent(r)+"&";return i.on(m,(function(e){e({acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version=3.76.4&authentication_complete_base_url="+encodeURIComponent(o),md:n.md,parentUrl:t})})),i.on(h.AUTHENTICATION_COMPLETE,e.handleAuthResponse),i},y.prototype._setupV1Iframe=function(e){var t=this._assetsUrl+"/html/three-d-secure-bank-frame"+f(this._isDebug)+".html?showLoader="+e.showLoader;return d({src:t,height:400,width:400,name:_.LANDING_FRAME_NAME+"_"+this._v1Bus.channel,title:"3D Secure Authorization Frame"})},y.prototype._setupV1Elements=function(e){this._v1Bus=this._setupV1Bus(e),this._v1Iframe=this._setupV1Iframe(e)},y.prototype._teardownV1Elements=function(){this._v1Bus&&(this._v1Bus.teardown(),this._v1Bus=null), +this._v1Iframe&&this._v1Iframe.parentNode&&(this._v1Iframe.parentNode.removeChild(this._v1Iframe),this._v1Iframe=null),this._onV1Keyup&&(document.removeEventListener("keyup",this._onV1Keyup),this._onV1Keyup=null)},y.prototype.teardown=function(){return i.sendEvent(this._createPromise,"three-d-secure.teardown-completed"),this._teardownV1Elements(),a.resolve()},t.exports=y},{"../../../lib/analytics":121,"../../../lib/assign":123,"../../../lib/braintree-error":126,"../../../lib/constants":128,"../../../lib/is-verified-domain":155,"../../../lib/promise":159,"../../../lib/use-min":162,"../../shared/constants":195,"../../shared/errors":196,"../../shared/events":197,"@braintree/event-emitter":34,"@braintree/extended-promise":35,"@braintree/iframer":36,"@braintree/uuid":40,framebus:53}],187:[function(e,t,n){"use strict";var r=e("./songbird");function i(e){r.call(this,e)}i.prototype=Object.create(r.prototype,{constructor:r}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='',t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},i.prototype._createCardinalConfigurationOptions=function(e){var t=r.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t},t.exports=i},{"./songbird":192}],188:[function(e,t,n){"use strict";var r=e("./songbird");function i(e){r.call(this,e)}i.prototype=Object.create(r.prototype,{constructor:r}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div"),n=Boolean(this._createOptions&&this._createOptions.cardinalSDKConfig&&this._createOptions.cardinalSDKConfig.payment&&this._createOptions.cardinalSDKConfig.payment.displayExitButton) +;return t.innerHTML='
',n||(t.querySelector("[data-braintree-v1-fallback-close-button]").style.display="none"),t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},t.exports=i},{"./songbird":192}],189:[function(e,t,n){"use strict";var r=e("./legacy"),i=e("./cardinal-modal"),o=e("./bootstrap3-modal"),a=e("./inline-iframe");t.exports={legacy:r,"cardinal-modal":i,"bootstrap3-modal":o,"inline-iframe":a}},{"./bootstrap3-modal":187,"./cardinal-modal":188,"./inline-iframe":190,"./legacy":191}],190:[function(e,t,n){"use strict";var r=e("./songbird"),i=e("../../../lib/braintree-error"),o=e("../../shared/errors"),a=e("../../../lib/enumerate");function s(e){r.call(this,e)}s.prototype=Object.create(r.prototype,{constructor:r}),s.events=a(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),s.prototype.setUpEventListeners=function(e){r.prototype.setUpEventListeners.call(this,e),this.on(s.events.AUTHENTICATION_IFRAME_AVAILABLE,(function(t,n){e("authentication-iframe-available",t,n)}))},s.prototype._createCardinalConfigurationOptions=function(e){var t=r.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="inline",t},s.prototype._addV1IframeToPage=function(){this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:this._v1Modal},(function(){}))},s.prototype._setupFrameworkSpecificListeners=function(){this.setCardinalListener("ui.inline.setup",this._onInlineSetup.bind(this))},s.prototype._onInlineSetup=function(e,t,n,r){var a,c;e&&t?("CCA"!==t.paymentType||"suppress"!==t.data.mode&&"static"!==t.data.mode)&&(c=!0):c=!0,c?r(new i(o.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT)):((a=document.createElement("div")).innerHTML=e,"suppress"===t.data.mode?(a.style.display="none",document.body.appendChild(a),n()):"static"===t.data.mode&&this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:a},(function(){n()})))},t.exports=s},{"../../../lib/braintree-error":126,"../../../lib/enumerate":136,"../../shared/errors":196,"./songbird":192}],191:[function(e,t,n){"use strict";var r=e("./base"),i=e("../../../lib/deferred");function o(e){r.call(this,e)}o.prototype=Object.create(r.prototype,{constructor:o}),o.prototype.setUpEventListeners=function(){}, +o.prototype.transformV1CustomerBillingAddress=function(e){return e.billingAddress.line1=e.billingAddress.streetAddress,e.billingAddress.line2=e.billingAddress.extendedAddress,e.billingAddress.city=e.billingAddress.locality,e.billingAddress.state=e.billingAddress.region,e.billingAddress.countryCode=e.billingAddress.countryCodeAlpha2,delete e.billingAddress.streetAddress,delete e.billingAddress.extendedAddress,delete e.billingAddress.locality,delete e.billingAddress.region,delete e.billingAddress.countryCodeAlpha2,e},o.prototype._createIframe=function(e){var t=this;return this._setupV1Elements({lookupResponse:e.lookupResponse,showLoader:e.showLoader,handleAuthResponse:function(n){t._handleAuthResponse(n,e)}}),this._v1Iframe},o.prototype._handleAuthResponse=function(e,t){this._v1Bus.teardown(),t.removeFrame(),i(function(){this._handleV1AuthResponse(e)}.bind(this))()},o.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e){var t;return"function"!=typeof e.addFrame?t="an addFrame function":"function"!=typeof e.removeFrame&&(t="a removeFrame function"),t},o.prototype._formatVerifyCardOptions=function(e){var t=r.prototype._formatVerifyCardOptions.call(this,e);return t.addFrame=i(e.addFrame),t.removeFrame=i(e.removeFrame),t.showLoader=!1!==e.showLoader,t},o.prototype._formatLookupData=function(e){var t=this;return r.prototype._formatLookupData.call(this,e).then((function(n){return e.customer&&e.customer.billingAddress&&(n.customer=t.transformV1CustomerBillingAddress(e.customer)),n}))},o.prototype._presentChallenge=function(e,t){t.addFrame(null,this._createIframe({showLoader:t.showLoader,lookupResponse:e.lookup,removeFrame:t.removeFrame}))},t.exports=o},{"../../../lib/deferred":134,"./base":186}],192:[function(e,t,n){"use strict";var r=e("./base"),i=e("../../../lib/assign").assign,o=e("../../../lib/deferred"),a=e("../../../lib/braintree-error"),s=e("../../../lib/convert-to-braintree-error"),c=e("../../../lib/analytics"),l=e("../../../lib/assets"),u=e("../../shared/errors"),d=e("../../../lib/enumerate"),p=e("../../shared/constants"),_=e("../../../lib/promise"),E=e("@braintree/extended-promise"),h=e("../../../lib/constants").INTEGRATION_TIMEOUT_MS,f=e("../../../lib/constants").PLATFORM,m=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"];function y(e){r.call(this,e),this._useV1Fallback=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:f+"/3.76.4"},this._getDfReferenceIdPromisePlus=new E,this.setupSongbird(e),this._cardinalEvents=[]}function A(e,t,n){t[n+"Line1"]=e.streetAddress,t[n+"Line2"]=e.extendedAddress,t[n+"Line3"]=e.line3,t[n+"City"]=e.locality,t[n+"State"]=e.region,t[n+"PostalCode"]=e.postalCode,t[n+"CountryCode"]=e.countryCodeAlpha2}y.prototype=Object.create(r.prototype,{constructor:y}),y.events=d(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),y.prototype.setUpEventListeners=function(e){this.on(y.events.LOOKUP_COMPLETE,(function(t,n){e("lookup-complete",t,n)})), +this.on(y.events.CUSTOMER_CANCELED,(function(){e("customer-canceled")})),this.on(y.events["UI.CLOSE"],(function(){e("authentication-modal-close")})),this.on(y.events["UI.RENDER"],(function(){e("authentication-modal-render")})),this.on(y.events["UI.RENDERHIDDEN"],(function(){e("authentication-modal-render-hidden")})),this.on(y.events["UI.LOADING.CLOSE"],(function(){e("authentication-modal-loader-close")})),this.on(y.events["UI.LOADING.RENDER"],(function(){e("authentication-modal-loader-render")}))},y.prototype.prepareLookup=function(e){var t=i({},e),n=this;return this.getDfReferenceId().then((function(e){t.dfReferenceId=e})).then((function(){return n._triggerCardinalBinProcess(e.bin)})).catch((function(){})).then((function(){return n._waitForClient()})).then((function(){return t.clientMetadata=n._clientMetadata,t.authorizationFingerprint=n._client.getConfiguration().authorizationFingerprint,t.braintreeLibraryVersion="braintree/web/3.76.4",t}))},y.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then(function(){return r.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}.bind(this))},y.prototype._initiateV1Fallback=function(e){this._useV1Fallback=!0,c.sendEvent(this._createPromise,"three-d-secure.v1-fallback."+e),this._songbirdPromise.resolve()},y.prototype._triggerCardinalBinProcess=function(e){var t=this,n=Date.now();return e?window.Cardinal.trigger("bin.process",e).then((function(e){t._clientMetadata.issuerDeviceDataCollectionTimeElapsed=Date.now()-n,t._clientMetadata.issuerDeviceDataCollectionResult=e&&e.Status})):_.resolve()},y.prototype.transformBillingAddress=function(e,t){return t&&(A(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},y.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(A(t,e,"shipping"),delete e.shippingAddress),e},y.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='
',t.querySelector('[data-braintree-v1-fallback-iframe-container="true"]').appendChild(e),t},y.prototype._createV1IframeModal=function(e){var t=this._createV1IframeModalElement(e),n=t.querySelector("[data-braintree-v1-fallback-close-button]"),r=t.querySelector("[data-braintree-v1-fallback-backdrop]"),i=this;function o(){t.parentNode.removeChild(t),i.cancelVerifyCard(u.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",i._onV1Keyup),i._onV1Keyup=null}return this._onV1Keyup=function(e){"Escape"===e.key&&t.parentNode&&o()},n&&n.addEventListener("click",o),r&&r.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),t},y.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},y.prototype._handleAuthResponseFromV1Fallback=function(e){this._teardownV1Elements(),this._v1Modal.parentNode.removeChild(this._v1Modal),this._handleV1AuthResponse(e)}, +y.prototype._presentChallengeWithV1Fallback=function(e){var t=this;this._setupV1Elements({lookupResponse:e,showLoader:!0,handleAuthResponse:function(e){t._handleAuthResponseFromV1Fallback(e)}}),this._v1Modal=this._createV1IframeModal(this._v1Iframe),this._addV1IframeToPage()},y.prototype.setupSongbird=function(e){var t=this,n=Date.now();return this._songbirdPromise||(e=e||{},this._songbirdPromise=new E,this._v2SetupFailureReason="reason-unknown",t._loadCardinalScript(e).then((function(){return window.Cardinal?t._configureCardinalSdk({setupOptions:e,setupStartTime:n}):(t._v2SetupFailureReason="cardinal-global-unavailable",_.reject(new a(u.THREEDS_CARDINAL_SDK_SETUP_FAILED)))})).catch((function(e){var n=s(e,{type:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,code:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,message:u.THREEDS_CARDINAL_SDK_SETUP_FAILED.message});t._getDfReferenceIdPromisePlus.reject(n),window.clearTimeout(t._songbirdSetupTimeoutReference),c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t._initiateV1Fallback("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)}))),this._songbirdPromise},y.prototype._configureCardinalSdk=function(e){var t=this;return this._waitForClient().then((function(){var e=t._client.getConfiguration().gatewayConfiguration.threeDSecure;return e.hasOwnProperty("versionTwo")&&"cardinal"!==e.versionTwo?_.reject(new Error("cardinal-api-not-available-or-configured")):e})).then((function(n){var r=n.cardinalAuthenticationJWT,i=e.setupOptions,o=e.setupStartTime,a=t._createCardinalConfigurationOptions(i);m.forEach((function(e){t.setCardinalListener(e,(function(){t._emit(y.events[e.toUpperCase()])}))})),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(a),window.Cardinal.setup("init",{jwt:r}),t._clientMetadata.cardinalDeviceDataCollectionTimeElapsed=Date.now()-o,t.setCardinalListener("payments.validated",t._createPaymentsValidatedCallback())})).catch((function(e){return"cardinal-api-not-available-or-configured"===e.message?t._v2SetupFailureReason="cardinal-api-not-available-or-configured":t._v2SetupFailureReason="cardinal-configuration-threw-error",_.reject(e)}))},y.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},y.prototype._setupFrameworkSpecificListeners=function(){},y.prototype._createCardinalConfigurationOptions=function(e){var t=e.cardinalSDKConfig||{},n=t.payment||{};return!t.logging&&e.loggingEnabled&&(t.logging={level:"verbose"}),t.payment={},n.hasOwnProperty("displayLoading")&&(t.payment.displayLoading=n.displayLoading),n.hasOwnProperty("displayExitButton")&&(t.payment.displayExitButton=n.displayExitButton),t},y.prototype._loadCardinalScript=function(e){var t=this,n=p.CARDINAL_SCRIPT_SOURCE.sandbox;return this._waitForClient().then((function(){var r="production"===t._client.getConfiguration().gatewayConfiguration.environment;return t._songbirdSetupTimeoutReference=window.setTimeout((function(){ +c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),t._initiateV1Fallback("cardinal-sdk-setup-timeout")}),e.timeout||h),r&&(n=p.CARDINAL_SCRIPT_SOURCE.production),l.loadScript({src:n})})).catch((function(e){return t._v2SetupFailureReason="songbird-js-failed-to-load",_.reject(s(e,u.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))}))},y.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(t){e._getDfReferenceIdPromisePlus.resolve(t.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),c.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},y.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},y.prototype._performJWTValidation=function(e,t){var n=this,r=this._lookupPaymentMethod.nonce,i="payment_methods/"+r+"/three_d_secure/authenticate_from_jwt",o=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return o&&(c.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+o),"01"===o&&this._emit(y.events.CUSTOMER_CANCELED)),c.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then((function(){return n._client.request({method:"post",endpoint:i,data:{jwt:t,paymentMethodNonce:r}})})).then((function(t){var r=t.paymentMethod||n._lookupPaymentMethod,i=n._formatAuthResponse(r,t.threeDSecureInfo);return i.rawCardinalSDKVerificationData=e,c.sendEvent(n._client,"three-d-secure.verification-flow.upgrade-payment-method.succeeded"),_.resolve(i)})).catch((function(e){var t=new a({type:u.THREEDS_JWT_AUTHENTICATION_FAILED.type,code:u.THREEDS_JWT_AUTHENTICATION_FAILED.code,message:u.THREEDS_JWT_AUTHENTICATION_FAILED.message,details:{originalError:e}});return c.sendEvent(n._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),_.reject(t)}))},y.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(t,n){var r;if(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk.action-code."+t.ActionCode.toLowerCase()),e._verifyCardPromisePlus)switch(t.ActionCode){case"SUCCESS":case"NOACTION":case"FAILURE":e._performJWTValidation(t,n).then((function(t){e._verifyCardPromisePlus.resolve(t)})).catch((function(t){e._verifyCardPromisePlus.reject(t)}));break;case"ERROR":switch(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+t.ErrorNumber),t.ErrorNumber){case 10001:case 10002:r=new a(u.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:r=new a(u.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:r=new a(u.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;case 10008:case 10010:r=new a(u.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:c.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),r=new a(u.THREEDS_CARDINAL_SDK_CANCELED);break;default:r=new a(u.THREEDS_CARDINAL_SDK_ERROR)}r.details={originalError:{code:t.ErrorNumber, +description:t.ErrorDescription}},e._verifyCardPromisePlus.reject(r)}else e._initiateV1Fallback("cardinal-sdk-setup-error.number-"+t.ErrorNumber)}},y.prototype._checkForVerifyCardError=function(e,t){return r.prototype._checkForVerifyCardError.call(this,e,t)},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var n;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(n="an onLookupComplete function"),n},y.prototype._formatVerifyCardOptions=function(e){var t=r.prototype._formatVerifyCardOptions.call(this,e),n=t.additionalInformation||{};return n=this.transformBillingAddress(n,e.billingAddress),n=this.transformShippingAddress(n),e.onLookupComplete&&(t.onLookupComplete=o(e.onLookupComplete)),e.email&&(n.email=e.email),e.mobilePhoneNumber&&(n.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=n,t},y.prototype._onLookupComplete=function(e,t){var n=this;return r.prototype._onLookupComplete.call(this,e).then((function(e){return new _((function(r,i){function o(){r(e)}e.requiresUserAuthentication=Boolean(e.lookup&&e.lookup.acsUrl),n._verifyCardPromisePlus.catch(i),t.onLookupComplete?t.onLookupComplete(e,o):n._emit(y.events.LOOKUP_COMPLETE,e,o)}))}))},y.prototype._presentChallenge=function(e){!this._useV1Fallback&&e.lookup.transactionId?window.Cardinal.continue("cca",{AcsUrl:e.lookup.acsUrl,Payload:e.lookup.pareq},{OrderDetails:{TransactionId:e.lookup.transactionId}}):this._presentChallengeWithV1Fallback(e.lookup)},y.prototype._formatLookupData=function(e){var t=this;return r.prototype._formatLookupData.call(this,e).then((function(n){return n.additionalInfo=e.additionalInformation,e.accountType&&(n.accountType=e.accountType),e.challengeRequested&&(n.challengeRequested=e.challengeRequested),e.dataOnlyRequested&&(n.dataOnlyRequested=e.dataOnlyRequested),e.exemptionRequested&&(n.exemptionRequested=e.exemptionRequested),e.bin&&(n.bin=e.bin),t.prepareLookup(n)}))},y.prototype.cancelVerifyCard=function(e){var t=this;return r.prototype.cancelVerifyCard.call(this).then((function(n){return t._verifyCardPromisePlus&&(e=e||new a(u.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),n}))},y.prototype.teardown=function(){return window.Cardinal&&this._cardinalEvents.forEach((function(e){window.Cardinal.off(e)})),r.prototype.teardown.call(this)},t.exports=y},{"../../../lib/analytics":121,"../../../lib/assets":122,"../../../lib/assign":123,"../../../lib/braintree-error":126,"../../../lib/constants":128,"../../../lib/convert-to-braintree-error":130,"../../../lib/deferred":134,"../../../lib/enumerate":136,"../../../lib/promise":159,"../../shared/constants":195,"../../shared/errors":196,"./base":186,"@braintree/extended-promise":35}],193:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),i=e("../../lib/methods"),o=e("../../lib/convert-methods-to-error"),a=e("@braintree/event-emitter"),s=e("./frameworks");function c(e){var t=this,n=s[e.framework];a.call(this),this._framework=new n(e),this._framework.setUpEventListeners((function(){ +t._emit.apply(t,arguments)}))}a.createChild(c),c.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},c.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},c.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then((function(e){return JSON.stringify(e)}))},c.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},c.prototype.teardown=function(){var e=i(c.prototype).concat(i(a.prototype));return o(this,e),this._framework.teardown()},t.exports=r.wrapPrototype(c)},{"../../lib/convert-methods-to-error":129,"../../lib/methods":157,"./frameworks":189,"@braintree/event-emitter":34,"@braintree/wrap-promise":44}],194:[function(e,t,n){"use strict";var r=e("./external/three-d-secure"),i=e("../lib/is-https").isHTTPS,o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/braintree-error"),l=e("../lib/analytics"),u=e("./shared/errors"),d=e("../lib/promise"),p=e("@braintree/wrap-promise");t.exports={create:p((function(e){return o.verify({name:"3D Secure",client:e.client,authorization:e.authorization}).then((function(){var t=s.create(e.authorization),n=function(e){var t=String(e.version||"");if(!t||"1"===t)return"legacy";switch(t){case"2":case"2-cardinal-modal":return"cardinal-modal";case"2-bootstrap3-modal":return"bootstrap3-modal";case"2-inline-iframe":return"inline-iframe";default:throw new c({code:u.THREEDS_UNRECOGNIZED_VERSION.code,type:u.THREEDS_UNRECOGNIZED_VERSION.type,message:"Version `"+e.version+"` is not a recognized version. You may need to update the version of your Braintree SDK to support this version."})}}(e),o=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:t,name:"3D Secure"}).then((function(t){var r,o=t.getConfiguration(),a=o.gatewayConfiguration;return e.client=t,a.threeDSecureEnabled||(r=u.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===o.authorizationType&&(r=u.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"===a.environment&&!i()&&(r=u.THREEDS_HTTPS_REQUIRED),"legacy"===n||a.threeDSecure&&a.threeDSecure.cardinalAuthenticationJWT||(l.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),r=u.THREEDS_NOT_ENABLED_FOR_V2),r?d.reject(new c(r)):(l.sendEvent(e.client,"three-d-secure.initialized"),t)})),p=new r({client:e.client,assetsUrl:t,createPromise:o,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:n});return e.client?o.then((function(){return p})):p}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/is-https":154,"../lib/promise":159,"./external/three-d-secure":193,"./shared/errors":196,"@braintree/wrap-promise":44}],195:[function(e,t,n){ +"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding",CARDINAL_SCRIPT_SOURCE:{production:"https://songbird.cardinalcommerce.com/edge/v1/songbird.js",sandbox:"https://songbirdstag.cardinalcommerce.com/edge/v1/songbird.js"}}},{}],196:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={THREEDS_NOT_ENABLED:{type:r.types.MERCHANT,code:"THREEDS_NOT_ENABLED",message:"3D Secure is not enabled for this merchant."},THREEDS_CAN_NOT_USE_TOKENIZATION_KEY:{type:r.types.MERCHANT,code:"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY",message:"3D Secure can not use a tokenization key for authorization."},THREEDS_HTTPS_REQUIRED:{type:r.types.MERCHANT,code:"THREEDS_HTTPS_REQUIRED",message:"3D Secure requires HTTPS."},THREEDS_NOT_ENABLED_FOR_V2:{type:r.types.MERCHANT,code:"THREEDS_NOT_ENABLED_FOR_V2",message:"3D Secure version 2 is not enabled for this merchant. Contact Braintree Support for assistance at https://help.braintreepayments.com/"},THREEDS_UNRECOGNIZED_VERSION:{type:r.types.MERCHANT,code:"THREEDS_UNRECOGNIZED_VERSION"},THREEDS_CARDINAL_SDK_SETUP_FAILED:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_FAILED",message:"Something went wrong setting up Cardinal's Songbird.js library."},THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED:{type:r.types.NETWORK,code:"THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED",message:"Cardinal's Songbird.js library could not be loaded."},THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT",message:"Cardinal's Songbird.js took too long to setup."},THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT",message:"Cardinal's API took too long to respond."},THREEDS_CARDINAL_SDK_BAD_CONFIG:{type:r.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_CONFIG",message:"JWT or other required field missing. Please check your setup configuration."},THREEDS_CARDINAL_SDK_BAD_JWT:{type:r.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_JWT",message:"Cardinal JWT missing or malformed. Please check your setup configuration."},THREEDS_CARDINAL_SDK_ERROR:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_ERROR",message:"A general error has occurred with Cardinal. See description for more information."},THREEDS_CARDINAL_SDK_CANCELED:{type:r.types.CUSTOMER,code:"THREEDS_CARDINAL_SDK_CANCELED",message:"Canceled by user."},THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT",message:"3D Secure verfication canceled by merchant."},THREEDS_AUTHENTICATION_IN_PROGRESS:{type:r.types.MERCHANT,code:"THREEDS_AUTHENTICATION_IN_PROGRESS",message:"Cannot call verifyCard while existing authentication is in progress."},THREEDS_MISSING_VERIFY_CARD_OPTION:{type:r.types.MERCHANT,code:"THREEDS_MISSING_VERIFY_CARD_OPTION"},THREEDS_JWT_AUTHENTICATION_FAILED:{type:r.types.UNKNOWN,code:"THREEDS_JWT_AUTHENTICATION_FAILED",message:"Something went wrong authenticating the JWT from Cardinal"},THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR:{type:r.types.MERCHANT, +code:"THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR",message:"Either the payment method nonce passed to `verifyCard` does not exist, or it was already consumed"},THREEDS_LOOKUP_VALIDATION_ERROR:{type:r.types.CUSTOMER,code:"THREEDS_LOOKUP_VALIDATION_ERROR",message:"The data passed in `verifyCard` did not pass validation checks. See details for more info"},THREEDS_LOOKUP_ERROR:{type:r.types.UNKNOWN,code:"THREEDS_LOOKUP_ERROR",message:"Something went wrong during the 3D Secure lookup"},THREEDS_INLINE_IFRAME_DETAILS_INCORRECT:{type:r.types.UNKNOWN,code:"THREEDS_INLINE_IFRAME_DETAILS_INCORRECT",message:"Something went wrong when attempting to add the authentication iframe to the page."},THREEDS_NO_VERIFICATION_PAYLOAD:{type:r.types.MERCHANT,code:"THREEDS_NO_VERIFICATION_PAYLOAD",message:"No verification payload available."},THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN:{type:r.types.INTERNAL,code:"THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN",message:"Term Url must be on a Braintree domain."},THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED:{type:r.types.INTERNAL,code:"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED",message:"Method not implemented for this framework."}}},{"../../lib/braintree-error":126}],197:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports=r(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":136}],198:[function(e,t,n){"use strict";var r=e("./shared/unionpay"),i=e("../lib/basic-component-verification"),o=e("../lib/braintree-error"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/analytics"),l=e("./shared/errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){return i.verify({name:"UnionPay",client:e.client,authorization:e.authorization}).then((function(){return a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:"UnionPay"})})).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.unionPay&&!0===n.gatewayConfiguration.unionPay.enabled?(c.sendEvent(e.client,"unionpay.initialized"),new r(e)):u.reject(new o(l.UNIONPAY_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./shared/errors":200,"./shared/unionpay":201,"@braintree/wrap-promise":44}],199:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports={events:r(["HOSTED_FIELDS_FETCH_CAPABILITIES","HOSTED_FIELDS_ENROLL","HOSTED_FIELDS_TOKENIZE"],"union-pay:"),HOSTED_FIELDS_FRAME_NAME:"braintreeunionpayhostedfields"}},{"../../lib/enumerate":136}],200:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={UNIONPAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"UNIONPAY_NOT_ENABLED",message:"UnionPay is not enabled for this merchant."},UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID:{type:r.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID", +message:"Found an invalid Hosted Fields instance. Please use a valid Hosted Fields instance."},UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:r.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"Could not find the Hosted Fields instance."},UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:r.types.MERCHANT,code:"UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"A card or a Hosted Fields instance is required. Please supply a card or a Hosted Fields instance."},UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES:{type:r.types.MERCHANT,code:"UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES",message:"Please supply either a card or a Hosted Fields instance, not both."},UNIONPAY_EXPIRATION_DATE_INCOMPLETE:{type:r.types.MERCHANT,code:"UNIONPAY_EXPIRATION_DATE_INCOMPLETE",message:"You must supply expiration month and year or neither."},UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID:{type:r.types.CUSTOMER,code:"UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID",message:"Enrollment failed due to user input error."},UNIONPAY_ENROLLMENT_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_ENROLLMENT_NETWORK_ERROR",message:"Could not enroll UnionPay card."},UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR",message:"Could not fetch card capabilities."},UNIONPAY_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},UNIONPAY_MISSING_MOBILE_PHONE_DATA:{type:r.types.MERCHANT,code:"UNIONPAY_MISSING_MOBILE_PHONE_DATA",message:"A `mobile` with `countryCode` and `number` is required."},UNIONPAY_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"UNIONPAY_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."}}},{"../../lib/braintree-error":126}],201:[function(e,t,n){"use strict";var r=e("../../lib/analytics"),i=e("../../lib/braintree-error"),o=e("framebus"),a=e("./constants"),s=e("../../lib/is-verified-domain"),c=e("../../lib/use-min"),l=e("../../lib/convert-methods-to-error"),u=e("./errors"),d=a.events,p=e("@braintree/iframer"),_=e("../../lib/methods"),E=e("@braintree/uuid"),h=e("../../lib/promise"),f=e("@braintree/wrap-promise"),m=e("../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function y(e){this._options=e}y.prototype.fetchCapabilities=function(e){var t=this,n=this._options.client,o=e.card?e.card.number:null,a=e.hostedFields;return o&&a?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):o?n.request({method:"get",endpoint:"payment_methods/credit_cards/capabilities",data:{_meta:{source:"unionpay"},creditCard:{number:o}}}).then((function(e){return r.sendEvent(n,"unionpay.capabilities-received"),e})).catch((function(e){var t=e.details&&e.details.httpStatus;return r.sendEvent(n,"unionpay.capabilities-failed"),403===t?h.reject(e):h.reject(new i({type:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.type,code:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.code,message:u.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.message,details:{originalError:e}})) +})):a?a._bus?t._initializeHostedFields().then((function(){return new h((function(e,n){t._bus.emit(d.HOSTED_FIELDS_FETCH_CAPABILITIES,{hostedFields:a},(function(t){t.err?n(new i(t.err)):e(t.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.enroll=function(e){var t,n=this,o=this._options.client,a=e.card,s=e.mobile,c=e.hostedFields;if(!s)return h.reject(new i(u.UNIONPAY_MISSING_MOBILE_PHONE_DATA));if(c)return c._bus?a?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):new h((function(e,t){n._initializeHostedFields().then((function(){n._bus.emit(d.HOSTED_FIELDS_ENROLL,{hostedFields:c,mobile:s},(function(n){n.err?t(new i(n.err)):e(n.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID));if(a&&a.number){if(t={_meta:{source:"unionpay"},unionPayEnrollment:{number:a.number,mobileCountryCode:s.countryCode,mobileNumber:s.number}},a.expirationDate)t.unionPayEnrollment.expirationDate=a.expirationDate;else if(a.expirationMonth||a.expirationYear){if(!a.expirationMonth||!a.expirationYear)return h.reject(new i(u.UNIONPAY_EXPIRATION_DATE_INCOMPLETE));t.unionPayEnrollment.expirationYear=a.expirationYear,t.unionPayEnrollment.expirationMonth=a.expirationMonth}return o.request({method:"post",endpoint:"union_pay_enrollments",data:t}).then((function(e){return r.sendEvent(o,"unionpay.enrollment-succeeded"),{enrollmentId:e.unionPayEnrollmentId,smsCodeRequired:e.smsCodeRequired}})).catch((function(e){var t,n=e.details&&e.details.httpStatus;return 403===n?t=e:n<500?(t=new i(u.UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID)).details={originalError:e}:(t=new i(u.UNIONPAY_ENROLLMENT_NETWORK_ERROR)).details={originalError:e},r.sendEvent(o,"unionpay.enrollment-failed"),h.reject(t)}))}return h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.tokenize=function(e){var t,n=this,o=this._options.client,a=e.card,s=e.hostedFields;return a&&s?h.reject(new i(u.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):a?(t={_meta:{source:"unionpay"},creditCard:{number:e.card.number,options:{unionPayEnrollment:{id:e.enrollmentId}}}},e.smsCode&&(t.creditCard.options.unionPayEnrollment.smsCode=e.smsCode),a.expirationDate?t.creditCard.expirationDate=a.expirationDate:a.expirationMonth&&a.expirationYear&&(t.creditCard.expirationYear=a.expirationYear,t.creditCard.expirationMonth=a.expirationMonth),e.card.cvv&&(t.creditCard.cvv=e.card.cvv),o.request({method:"post",endpoint:"payment_methods/credit_cards",data:t}).then((function(e){var t=e.creditCards[0];return delete t.consumed,delete t.threeDSecureInfo,r.sendEvent(o,"unionpay.nonce-received"),t})).catch((function(e){var t,n=e.details&&e.details.httpStatus;return r.sendEvent(o,"unionpay.nonce-failed"),403===n?t=e:n<500?(t=new i(u.UNIONPAY_FAILED_TOKENIZATION)).details={originalError:e}:(t=new i(u.UNIONPAY_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},h.reject(t)}))):s?s._bus?new h((function(t,r){n._initializeHostedFields().then((function(){ +n._bus.emit(d.HOSTED_FIELDS_TOKENIZE,e,(function(e){e.err?r(new i(e.err)):t(e.payload)}))}))})):h.reject(new i(u.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):h.reject(new i(u.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},y.prototype.teardown=function(){return this._bus&&(this._hostedFieldsFrame.parentNode.removeChild(this._hostedFieldsFrame),this._bus.teardown()),l(this,_(y.prototype)),h.resolve()},y.prototype._initializeHostedFields=function(){var e,t,n=E(),r=this;return this._hostedFieldsInitializePromise||(this._hostedFieldsInitializePromise=new h((function(i){e=r._options.client.getConfiguration().gatewayConfiguration.assetsUrl,t=r._options.client.getConfiguration().isDebug,r._bus=new o({channel:n,verifyDomain:s}),r._hostedFieldsFrame=p({name:a.HOSTED_FIELDS_FRAME_NAME+"_"+n,src:e+"/web/3.76.4/html/unionpay-hosted-fields-frame"+c(t)+".html",height:0,width:0}),r._bus.on(m,(function(e){e(r._options.client),i()})),document.body.appendChild(r._hostedFieldsFrame)}))),this._hostedFieldsInitializePromise},t.exports=f.wrapPrototype(y)},{"../../lib/analytics":121,"../../lib/braintree-error":126,"../../lib/constants":128,"../../lib/convert-methods-to-error":129,"../../lib/is-verified-domain":155,"../../lib/methods":157,"../../lib/promise":159,"../../lib/use-min":162,"./constants":199,"./errors":200,"@braintree/iframer":36,"@braintree/uuid":40,"@braintree/wrap-promise":44,framebus:53}],202:[function(e,t,n){"use strict";t.exports={PLAID_LINK_JS:"https://cdn.plaid.com/link/v2/stable/link-initialize.js"}},{}],203:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={US_BANK_ACCOUNT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_OPTION_REQUIRED"},US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS"},US_BANK_ACCOUNT_LOGIN_LOAD_FAILED:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_LOGIN_LOAD_FAILED",message:"Bank login flow failed to load."},US_BANK_ACCOUNT_LOGIN_CLOSED:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_LOGIN_CLOSED",message:"Customer closed bank login flow before authorizing."},US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE",message:"Another bank login tokenization request is active."},US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},US_BANK_ACCOUNT_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_FAILED_TOKENIZATION",message:"The supplied data failed tokenization."},US_BANK_ACCOUNT_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_NOT_ENABLED",message:"US bank account is not enabled."},US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED",message:"Bank login is not enabled."}}},{"../lib/braintree-error":126}],204:[function(e,t,n){"use strict" +;var r=e("../lib/basic-component-verification"),i=e("../lib/braintree-error"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./errors"),c=e("./us-bank-account"),l=e("../lib/promise"),u=e("@braintree/wrap-promise");t.exports={create:u((function(e){var t="US Bank Account";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.usBankAccount?new c(e):l.reject(new i(s.US_BANK_ACCOUNT_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./errors":203,"./us-bank-account":205,"@braintree/wrap-promise":44}],205:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),i=e("./constants"),o=e("./errors"),a=e("../lib/errors"),s=e("../lib/analytics"),c=e("../lib/once"),l=e("../lib/convert-methods-to-error"),u=e("../lib/methods"),d=e("../lib/promise"),p=e("@braintree/wrap-promise"),_=I("UsBankAccount"),E=I("UsBankLogin");function h(e){this._client=e.client,this._isTokenizingBankLogin=!1,s.sendEvent(this._client,"usbankaccount.initialized")}function f(e){var t,n=e.details&&e.details.httpStatus;return(t=new r(401===n?a.BRAINTREE_API_ACCESS_RESTRICTED:n<500?o.US_BANK_ACCOUNT_FAILED_TOKENIZATION:o.US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},t}function m(e,t){var n=e.data[t].paymentMethod,r="US bank account ending in - "+n.details.last4;return{nonce:n.id,details:{},description:r,type:"us_bank_account"}}function y(e,t){function n(){var r=this.readyState;r&&"loaded"!==r&&"complete"!==r||(e.removeEventListener("error",i),e.removeEventListener("load",n),e.removeEventListener("readystatechange",n),t(null,window.Plaid))}function i(){e.parentNode.removeChild(e),t(new r(o.US_BANK_ACCOUNT_LOGIN_LOAD_FAILED))}e.addEventListener("error",i),e.addEventListener("load",n),e.addEventListener("readystatechange",n)}function A(e){return{streetAddress:e.streetAddress,extendedAddress:e.extendedAddress,city:e.locality,state:e.region,zipCode:e.postalCode}}function T(e,t){"personal"===t.ownershipType?e.individualOwner={firstName:t.firstName,lastName:t.lastName}:"business"===t.ownershipType&&(e.businessOwner={businessName:t.businessName})}function I(e){return"mutation Tokenize"+e+"($input: Tokenize"+e+"Input!) { tokenize"+e+"(input: $input) { paymentMethod { id details { ... on UsBankAccountDetails { last4 } } } }}"}h.prototype.tokenize=function(e){return(e=e||{}).mandateText?e.bankDetails&&e.bankLogin?d.reject(new r({type:o.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.type,code:o.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.code,message:"tokenize must be called with bankDetails or bankLogin, not both." +})):e.bankDetails?this._tokenizeBankDetails(e):e.bankLogin?this._tokenizeBankLogin(e):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"tokenize must be called with bankDetails or bankLogin."})):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"mandateText property is required."}))},h.prototype._tokenizeBankDetails=function(e){var t=this._client,n=e.bankDetails,r={achMandate:e.mandateText,routingNumber:n.routingNumber,accountNumber:n.accountNumber,accountType:n.accountType.toUpperCase(),billingAddress:A(n.billingAddress||{})};return T(r,n),t.request({api:"graphQLApi",data:{query:_,variables:{input:{usBankAccount:r}}}}).then((function(e){return s.sendEvent(t,"usbankaccount.bankdetails.tokenization.succeeded"),d.resolve(m(e,"tokenizeUsBankAccount"))})).catch((function(e){var n=f(e);return s.sendEvent(t,"usbankaccount.bankdetails.tokenization.failed"),d.reject(n)}))},h.prototype._tokenizeBankLogin=function(e){var t=this,n=this._client,i=n.getConfiguration().gatewayConfiguration,a="production"===i.environment,c=i.usBankAccount.plaid;return e.bankLogin.displayName?c?this._isTokenizingBankLogin?d.reject(new r(o.US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE)):(this._isTokenizingBankLogin=!0,new d((function(i,l){t._loadPlaid((function(u,d){u?l(u):(d.create({clientName:e.bankLogin.displayName,apiVersion:"v2",env:a?"production":"sandbox",key:c.publicKey,product:"auth",selectAccount:!0,onExit:function(){t._isTokenizingBankLogin=!1,s.sendEvent(n,"usbankaccount.banklogin.tokenization.closed.by-user"),l(new r(o.US_BANK_ACCOUNT_LOGIN_CLOSED))},onSuccess:function(r,o){var c=e.bankLogin,u={publicToken:r,accountId:a?o.account_id:"plaid_account_id",accountType:o.account.subtype.toUpperCase(),achMandate:e.mandateText,billingAddress:A(c.billingAddress||{})};T(u,c),n.request({api:"graphQLApi",data:{query:E,variables:{input:{usBankLogin:u}}}}).then((function(e){t._isTokenizingBankLogin=!1,s.sendEvent(n,"usbankaccount.banklogin.tokenization.succeeded"),i(m(e,"tokenizeUsBankLogin"))})).catch((function(e){var r;t._isTokenizingBankLogin=!1,r=f(e),s.sendEvent(n,"usbankaccount.banklogin.tokenization.failed"),l(r)}))}}).open(),s.sendEvent(n,"usbankaccount.banklogin.tokenization.started"))}))}))):d.reject(new r(o.US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED)):d.reject(new r({type:o.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:o.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"displayName property is required when using bankLogin."}))},h.prototype._loadPlaid=function(e){var t,n;e=c(e),window.Plaid?e(null,window.Plaid):(t=document.querySelector('script[src="'+i.PLAID_LINK_JS+'"]'))?y(t,e):((n=document.createElement("script")).src=i.PLAID_LINK_JS,n.async=!0,y(n,e),document.body.appendChild(n),this._plaidScript=n)},h.prototype.teardown=function(){return this._plaidScript&&document.body.removeChild(this._plaidScript),l(this,u(h.prototype)),d.resolve()},t.exports=p.wrapPrototype(h)},{"../lib/analytics":121,"../lib/braintree-error":126, +"../lib/convert-methods-to-error":129,"../lib/errors":137,"../lib/methods":157,"../lib/once":158,"../lib/promise":159,"./constants":202,"./errors":203,"@braintree/wrap-promise":44}],206:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN:{type:r.types.MERCHANT,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN",message:"A client token with a customer id must be used to delete a payment method nonce."},VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND:{type:r.types.MERCHANT,code:"VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND"},VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR"}}},{"../lib/braintree-error":126}],207:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("../lib/create-deferred-client"),o=e("../lib/create-assets-url"),a=e("./vault-manager"),s=e("@braintree/wrap-promise");t.exports={create:s((function(e){var t="Vault Manager";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return new a({createPromise:i.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o.create(e.authorization),name:t})})}))})),VERSION:"3.76.4"}},{"../lib/basic-component-verification":124,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"./vault-manager":208,"@braintree/wrap-promise":44}],208:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("../lib/braintree-error"),o=e("./errors"),a=e("../lib/convert-methods-to-error"),s=e("../lib/methods"),c=e("../lib/promise"),l=e("@braintree/wrap-promise");function u(e){this._createPromise=e.createPromise}function d(e){var t={nonce:e.nonce,default:e.default,details:e.details,hasSubscription:e.hasSubscription,type:e.type};return e.description&&(t.description=e.description),e.binData&&(t.binData=e.binData),t}u.prototype.fetchPaymentMethods=function(e){var t;return t=!0===(e=e||{}).defaultFirst?1:0,this._createPromise.then((function(e){return e.request({endpoint:"payment_methods",method:"get",data:{defaultFirst:t}})})).then(function(e){return r.sendEvent(this._createPromise,"vault-manager.fetch-payment-methods.succeeded"),e.paymentMethods.map(d)}.bind(this))},u.prototype.deletePaymentMethod=function(e){return this._createPromise.then((function(t){return"CLIENT_TOKEN"===t.getConfiguration().authorizationType?t.request({api:"graphQLApi",data:{query:"mutation DeletePaymentMethodFromSingleUseToken($input: DeletePaymentMethodFromSingleUseTokenInput!) { deletePaymentMethodFromSingleUseToken(input: $input) { clientMutationId }}",variables:{input:{singleUseTokenId:e}},operationName:"DeletePaymentMethodFromSingleUseToken"}}).then((function(){r.sendEvent(t,"vault-manager.delete-payment-method.succeeded")})).catch((function(n){var a,s=n.details.originalError;return r.sendEvent(t,"vault-manager.delete-payment-method.failed"),s[0]&&"NOT_FOUND"===s[0].extensions.errorClass&&(a=new i({ +type:o.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.type,code:o.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.code,message:"A payment method for payment method nonce `"+e+"` could not be found.",details:{originalError:s}})),a||(a=new i({type:o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.type,code:o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.code,message:"An unknown error occured when attempting to delete the payment method assocaited with the payment method nonce `"+e+"`.",details:{originalError:s}})),c.reject(a)})):c.reject(new i(o.VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN))}))},u.prototype.teardown=function(){return a(this,s(u.prototype)),c.resolve()},t.exports=l.wrapPrototype(u)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/methods":157,"../lib/promise":159,"./errors":206,"@braintree/wrap-promise":44}],209:[function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e("./venmo-desktop"));t.exports=function(e){return new r.default(e).initialize()}},{"./venmo-desktop":211}],210:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY=n.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY=n.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY=void 0,n.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY="mutation CreateVenmoQRCodePaymentContext($input: CreateVenmoQRCodePaymentContextInput!) {\n createVenmoQRCodePaymentContext(input: $input) {\n clientMutationId\n venmoQRCodePaymentContext {\n id\n merchantId\n createdAt\n expiresAt\n }\n }\n}",n.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY="mutation UpdateVenmoQRCodePaymentContext($input: UpdateVenmoQRCodePaymentContextInput!) {\n updateVenmoQRCodePaymentContext(input: $input) {\n clientMutationId\n }\n}",n.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY="query PaymentContext($id: ID!) {\n node(id: $id) {\n ... on VenmoQRCodePaymentContext {\n status\n paymentMethodId\n userName\n }\n }\n}"},{}],211:[function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt?this.updateVenmoDesktopPaymentContext("EXPIRED").then((function(){return n.displayError("Something went wrong"),n.sendEvent("venmo.tokenize.desktop.status-change.sdk-timeout"),n.Promise.reject({allowUIToHandleError:!0,reason:"TIMEOUT"})})):this.lookupVenmoDesktopPaymentContext().then((function(r){if(!n.venmoContextId||!r)return n.Promise.resolve();var i=r.status;if(i!==e)switch(e=i,n.sendEvent("venmo.tokenize.desktop.status-change."+e.toLowerCase()),e){case"CREATED":break;case"EXPIRED":case"FAILED":case"CANCELED":var o="CANCELED"===e?"The authorization was canceled":"Something went wrong";return n.displayError(o),n.Promise.reject({allowUIToHandleError:!0,reason:e});case"SCANNED":n.authorizing();break;case"APPROVED":return n.authorize(),n.Promise.resolve(r)}return new n.Promise((function(r,i){setTimeout((function(){n.pollForStatusChange(e,t).then(r).catch(i)}),1e3)}))})):this.Promise.resolve()},e.prototype.teardown=function(){this.bus.teardown(),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.alertBox.parentNode&&this.alertBox.parentNode.removeChild(this.alertBox)},e.prototype.setAlert=function(e){this.alertBox.style.display=e?"block":"none",this.alertBox.textContent=e},e.prototype.createVenmoDesktopPaymentContext=function(){var e=this,t={environment:this.env,intent:"PAY_FROM_APP"};return this.apiRequest(l.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,{input:t}).then((function(t){var n=t.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;e.venmoContextId=n.id;var r=e.profileId||n.merchantId;return{id:n.id,status:n.status,merchantId:r,createdAt:n.createdAt,expiresAt:n.expiresAt}}))},e.prototype.updateVenmoDesktopPaymentContext=function(e,t){if(void 0===t&&(t={}),!this.venmoContextId)return this.Promise.resolve();var n={input:r({id:this.venmoContextId,status:e},t)};return this.apiRequest(l.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,n).then((function(){}))},e.prototype.lookupVenmoDesktopPaymentContext=function(){return this.venmoContextId?this.apiRequest(l.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY,{id:this.venmoContextId}).then((function(e){return e.node})):this.Promise.resolve()},e}();n.default=u},{"../shared/events":216,"./queries":210,"@braintree/iframer":36,"@braintree/uuid":40,framebus:53}],212:[function(e,t,n){"use strict" +;var r=e("../lib/analytics"),i=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./shared/errors"),c=e("@braintree/wrap-promise"),l=e("../lib/braintree-error"),u=e("./venmo"),d=e("../lib/promise"),p=e("./shared/supports-venmo");t.exports={create:c((function(e){return i.verify({name:"Venmo",client:e.client,authorization:e.authorization}).then((function(){var t,n;return e.profileId&&"string"!=typeof e.profileId?d.reject(new l(s.VENMO_INVALID_PROFILE_ID)):e.deepLinkReturnUrl&&"string"!=typeof e.deepLinkReturnUrl?d.reject(new l(s.VENMO_INVALID_DEEP_LINK_RETURN_URL)):(t=o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:"Venmo"}).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.payWithVenmo?t:d.reject(new l(s.VENMO_NOT_ENABLED))})),e.createPromise=t,n=new u(e),r.sendEvent(t,"venmo.initialized"),t.then((function(){return n})))}))})),isBrowserSupported:function(e){return p.isBrowserSupported(e)},VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./shared/errors":215,"./shared/supports-venmo":217,"./venmo":218,"@braintree/wrap-promise":44}],213:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-android"),i=e("@braintree/browser-detection/is-chrome"),o=e("@braintree/browser-detection/is-ios"),a=e("@braintree/browser-detection/is-ios-safari"),s=e("@braintree/browser-detection/is-ios-webview");t.exports={isAndroid:r,isAndroidWebview:function(){return r()&&window.navigator.userAgent.toLowerCase().indexOf("wv")>-1},isChrome:i,isIos:o,isIosSafari:a,isIosWebview:s}},{"@braintree/browser-detection/is-android":20,"@braintree/browser-detection/is-chrome":22,"@braintree/browser-detection/is-ios":31,"@braintree/browser-detection/is-ios-safari":28,"@braintree/browser-detection/is-ios-webview":29}],214:[function(e,t,n){"use strict";t.exports={DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY:500,DEFAULT_PROCESS_RESULTS_DELAY:1e3,VENMO_OPEN_URL:"https://venmo.com/braintree/checkout"}},{}],215:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={VENMO_NOT_ENABLED:{type:r.types.MERCHANT,code:"VENMO_NOT_ENABLED",message:"Venmo is not enabled for this merchant."},VENMO_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE",message:"No tokenization in progress."},VENMO_APP_FAILED:{type:r.types.UNKNOWN,code:"VENMO_APP_FAILED",message:"Venmo app encountered a problem."},VENMO_APP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_APP_CANCELED",message:"Venmo app authorization was canceled."},VENMO_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_CANCELED", +message:"User canceled Venmo authorization, or Venmo app is not available."},VENMO_DESKTOP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_DESKTOP_CANCELED",message:"User canceled Venmo authorization by closing the Venmo Desktop modal."},VENMO_TOKENIZATION_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_CANCELED_BY_MERCHANT",message:"The Venmo tokenization was canceled by the merchant."},VENMO_DESKTOP_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VENMO_DESKTOP_UNKNOWN_ERROR",message:"Something went wrong with the Venmo Desktop flow."},VENMO_MOBILE_POLLING_SETUP_FAILED:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_SETUP_FAILED",message:"Something went wrong setting up Venmo for mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR",message:"Something went wrong during mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED",message:"The Venmo authorization request is expired."},VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED",message:"The Venmo authorization was canceled"},VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT",message:"Customer took too long to authorize Venmo payment."},VENMO_MOBILE_POLLING_TOKENIZATION_FAILED:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_FAILED",message:"The Venmo authorization failed."},VENMO_INVALID_PROFILE_ID:{type:r.types.MERCHANT,code:"VENMO_INVALID_PROFILE_ID",message:"Venmo profile ID is invalid."},VENMO_INVALID_DEEP_LINK_RETURN_URL:{type:r.types.MERCHANT,code:"VENMO_INVALID_DEEP_LINK_RETURN_URL",message:"Venmo deep link return URL is invalid."}}},{"../../lib/braintree-error":126}],216:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_DESKTOP_UNKNOWN_ERROR=n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE=n.VENMO_DESKTOP_CLOSED_FROM_PARENT=n.VENMO_DESKTOP_IFRAME_READY=n.VENMO_DESKTOP_DISPLAY_QR_CODE=n.VENMO_DESKTOP_DISPLAY_ERROR=n.VENMO_DESKTOP_CUSTOMER_CANCELED=n.VENMO_DESKTOP_AUTHORIZATION_COMPLETED=n.VENMO_DESKTOP_AUTHORIZING=n.VENMO_DESKTOP_AUTHORIZE=n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT=void 0,n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT="VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT",n.VENMO_DESKTOP_AUTHORIZE="VENMO_DESKTOP_AUTHORIZE",n.VENMO_DESKTOP_AUTHORIZING="VENMO_DESKTOP_AUTHORIZING",n.VENMO_DESKTOP_AUTHORIZATION_COMPLETED="VENMO_DESKTOP_AUTHORIZATION_COMPLETED",n.VENMO_DESKTOP_CUSTOMER_CANCELED="VENMO_DESKTOP_CUSTOMER_CANCELED",n.VENMO_DESKTOP_DISPLAY_ERROR="VENMO_DESKTOP_DISPLAY_ERROR",n.VENMO_DESKTOP_DISPLAY_QR_CODE="VENMO_DESKTOP_DISPLAY_QR_CODE",n.VENMO_DESKTOP_IFRAME_READY="VENMO_DESKTOP_IFRAME_READY",n.VENMO_DESKTOP_CLOSED_FROM_PARENT="VENMO_DESKTOP_CLOSED_FROM_PARENT",n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE="VENMO_DESKTOP_REQUEST_NEW_QR_CODE",n.VENMO_DESKTOP_UNKNOWN_ERROR="VENMO_DESKTOP_UNKNOWN_ERROR"},{}],217:[function(e,t,n){ +"use strict";var r=e("./browser-detection");t.exports={isBrowserSupported:function(e){var t,n,i=r.isAndroid(),o=i||r.isIos(),a=i&&r.isChrome(),s=r.isIosSafari()||a;return n=!0===(e=e||{}).allowDesktop,t=!e.hasOwnProperty("allowNewBrowserTab")||e.allowNewBrowserTab,!(e.hasOwnProperty("allowWebviews")&&!e.allowWebviews&&(r.isAndroidWebview()||r.isIosWebview()))&&(t?!!n||o:!!s||n&&!o)}}},{"./browser-detection":213}],218:[function(e,t,n){"use strict";var r=e("../lib/analytics"),i=e("./shared/supports-venmo"),o=e("./shared/browser-detection"),a=e("./shared/constants"),s=e("./shared/errors"),c=e("../lib/querystring"),l=e("../lib/is-verified-domain"),u=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),p=e("@braintree/wrap-promise"),_=e("../lib/braintree-error"),E=e("../lib/in-iframe"),h=e("../lib/promise"),f=e("@braintree/extended-promise"),m=e("./external/"),y=e("./external/queries");function A(e){var t=this;this._createPromise=e.createPromise,this._allowNewBrowserTab=!1!==e.allowNewBrowserTab,this._allowWebviews=!1!==e.allowWebviews,this._allowDesktop=!0===e.allowDesktop,this._requireManualReturn=!0===e.requireManualReturn,this._useRedirectForIOS=!0===e.useRedirectForIOS,this._profileId=e.profileId,this._deepLinkReturnUrl=e.deepLinkReturnUrl,this._ignoreHistoryChanges=e.ignoreHistoryChanges,this._useDesktopFlow=this._allowDesktop&&this._isDesktop(),this._useMobilePollingStrategy=E()||this._requireManualReturn,r.sendEvent(this._createPromise,"venmo.desktop-flow.configured."+String(Boolean(this._allowDesktop))),this._useDesktopFlow?this._createPromise=this._createPromise.then((function(e){var n=e.getConfiguration().gatewayConfiguration;return m({url:n.assetsUrl+"/web/3.76.4/html/venmo-desktop-frame.html",environment:"production"===n.environment?"PRODUCTION":"SANDBOX",profileId:t._profileId||n.payWithVenmo.merchantId,Promise:h,apiRequest:function(t,n){return e.request({api:"graphQLApi",data:{query:t,variables:n}}).then((function(e){return e.data}))},sendEvent:function(e){r.sendEvent(t._createPromise,e)},verifyDomain:l}).then((function(n){return t._venmoDesktopInstance=n,r.sendEvent(t._createPromise,"venmo.desktop-flow.presented"),e})).catch((function(){return r.sendEvent(t._createPromise,"venmo.desktop-flow.setup-failed"),t._useDesktopFlow=!1,e}))})):this._useMobilePollingStrategy&&(this._mobilePollingInterval=250,this._mobilePollingExpiresThreshold=3e5,this._createPromise=this._createPromise.then((function(e){var n=e.getConfiguration().gatewayConfiguration;return t._mobilePollingContextEnvironment=n.environment.toUpperCase(),e.request({api:"graphQLApi",data:{query:y.CREATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,variables:{input:{environment:t._mobilePollingContextEnvironment,intent:"PAY_FROM_APP"}}}}).then((function(n){var i=n.data.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext;return t._mobilePollingContextStatus=i.status,t._mobilePollingContextId=i.id,r.sendEvent(t._createPromise,"venmo.mobile-polling.presented"),e})).catch((function(e){ +return r.sendEvent(t._createPromise,"venmo.mobile-polling.setup-failed"),h.reject(new _({type:s.VENMO_MOBILE_POLLING_SETUP_FAILED.type,code:s.VENMO_MOBILE_POLLING_SETUP_FAILED.code,message:s.VENMO_MOBILE_POLLING_SETUP_FAILED.message,details:{originalError:e}}))}))})))}function T(e){return(e||window.location.hash.substring(1)).split("&").reduce((function(e,t){var n=t.split("="),r=decodeURIComponent(n[0]).replace(/\W/g,""),i=decodeURIComponent(n[1]);return e[r]=i,e}),{})}function I(){var e;return void 0!==window.document.hidden?e="visibilitychange":void 0!==window.document.msHidden?e="msvisibilitychange":void 0!==window.document.webkitHidden&&(e="webkitvisibilitychange"),e}A.prototype.getUrl=function(){return this._createPromise.then(function(e){var t=e.getConfiguration(),n={},r=this._deepLinkReturnUrl||window.location.href.replace(window.location.hash,""),i=t.gatewayConfiguration.payWithVenmo,o=t.analyticsMetadata,s=i.accessToken,l={_meta:{version:o.sdkVersion,integration:o.integration,platform:o.platform,sessionId:o.sessionId}};return r=r.replace(/#*$/,""),this._mobilePollingContextId&&(s+="|pcid:"+this._mobilePollingContextId),this._shouldIncludeReturnUrls()?(n["x-success"]=r+"#venmoSuccess=1",n["x-cancel"]=r+"#venmoCancel=1",n["x-error"]=r+"#venmoError=1"):(n["x-success"]="NOOP",n["x-cancel"]="NOOP",n["x-error"]="NOOP"),n.ua=window.navigator.userAgent,n.braintree_merchant_id=this._profileId||i.merchantId,n.braintree_access_token=s,n.braintree_environment=i.environment,n.braintree_sdk_data=btoa(JSON.stringify(l)),a.VENMO_OPEN_URL+"?"+c.stringify(n)}.bind(this))},A.prototype.isBrowserSupported=function(){return i.isBrowserSupported({allowNewBrowserTab:this._allowNewBrowserTab,allowWebviews:this._allowWebviews,allowDesktop:this._allowDesktop})},A.prototype.hasTokenizationResult=function(){return this._hasTokenizationResult()},A.prototype._hasTokenizationResult=function(e){var t=T(e);return void 0!==(t.venmoSuccess||t.venmoError||t.venmoCancel)},A.prototype._shouldIncludeReturnUrls=function(){return!!this._deepLinkReturnUrl||!this._useMobilePollingStrategy},A.prototype._isDesktop=function(){return!(o.isIos()||o.isAndroid())},A.prototype.tokenize=function(e){var t=this;return e=e||{},!0===this._tokenizationInProgress?h.reject(new _(s.VENMO_TOKENIZATION_REQUEST_ACTIVE)):(this._tokenizationInProgress=!0,(this._useDesktopFlow?this._tokenizeForDesktop(e):this._useMobilePollingStrategy?this._tokenizeForMobileWithPolling():this._tokenizeForMobileWithHashChangeListeners(e)).then((function(e){return t._tokenizationInProgress=!1,function(e){return{nonce:e.paymentMethodNonce,type:"VenmoAccount",details:{username:e.username}}}(e)})).catch((function(e){return t._tokenizationInProgress=!1,h.reject(e)})))},A.prototype.cancelTokenization=function(){return this._tokenizationInProgress?(this._removeVisibilityEventListener(),this._tokenizePromise&&this._tokenizePromise.reject(new _(s.VENMO_TOKENIZATION_CANCELED_BY_MERCHANT)), +h.all([this._cancelMobilePollingContext(),this._cancelVenmoDesktopContext()])):h.reject(new _(s.VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE))},A.prototype._pollForStatusChange=function(){var e=this;return Date.now()>e._mobilePollingContextExpiresIn?h.reject(new _(s.VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT)):this._createPromise.then((function(t){return t.request({api:"graphQLApi",data:{query:y.VENMO_DESKTOP_PAYMENT_RESOURCE_STATUS_QUERY,variables:{id:e._mobilePollingContextId}}})})).catch((function(e){return h.reject(new _({type:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.type,code:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.code,message:s.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.message,details:{originalError:e}}))})).then((function(t){var n=t.data.node,i=n.status;if(i!==e._mobilePollingContextStatus)switch(e._mobilePollingContextStatus=i,r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.status-change."+i.toLowerCase()),i){case"EXPIRED":case"FAILED":case"CANCELED":return h.reject(new _(s["VENMO_MOBILE_POLLING_TOKENIZATION_"+i]));case"APPROVED":return h.resolve(n)}return new h((function(t,n){setTimeout((function(){e._pollForStatusChange().then(t).catch(n)}),e._mobilePollingInterval)}))}))},A.prototype._tokenizeForMobileWithPolling=function(){var e=this;return r.sendEvent(this._createPromise,"venmo.tokenize.mobile-polling.start"),this._mobilePollingContextExpiresIn=Date.now()+this._mobilePollingExpiresThreshold,this._tokenizePromise=new f,this._pollForStatusChange().then((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.success"),e._tokenizePromise.resolve({paymentMethodNonce:t.paymentMethodId,username:"@"+(t.userName||"").replace("@","")})})).catch((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.mobile-polling.failure"),e._tokenizePromise.reject(t)})),this.getUrl().then((function(t){return r.sendEvent(e._createPromise,"venmo.appswitch.start.browser"),o.isIosWebview()||e._shouldUseRedirectStrategy()?window.location.href=t:window.open(t),e._tokenizePromise}))},A.prototype._shouldUseRedirectStrategy=function(){return!!o.isIos()&&this._useRedirectForIOS},A.prototype._tokenizeForMobileWithHashChangeListeners=function(e){var t,n,i=this;if(this.hasTokenizationResult())return this._processResults();function o(e){var t;i._processResults(e).catch((function(e){t=e})).then((function(e){i._ignoreHistoryChanges||window.location.hash===i._previousHash||(window.location.hash=i._previousHash),i._removeVisibilityEventListener(),t?i._tokenizePromise.reject(t):i._tokenizePromise.resolve(e),delete i._tokenizePromise}))}return r.sendEvent(this._createPromise,"venmo.tokenize.mobile.start"),this._tokenizePromise=new f,this._previousHash=window.location.hash,this._onHashChangeListener=function(e){var r=e.newURL.split("#")[1];i._hasTokenizationResult(r)&&(t=!0,clearTimeout(n),o(r))},window.addEventListener("hashchange",this._onHashChangeListener,!1),this._visibilityChangeListener=function(){var r=e.processResultsDelay||a.DEFAULT_PROCESS_RESULTS_DELAY +;window.document.hidden||t||(n=setTimeout(o,r))},this.getUrl().then((function(e){return i._deepLinkReturnUrl?window.navigator.platform&&/iPhone|iPad|iPod/.test(window.navigator.platform)?(r.sendEvent(i._createPromise,"venmo.appswitch.start.ios-webview"),window.location.href=e):window.popupBridge&&"function"==typeof window.popupBridge.open?(r.sendEvent(i._createPromise,"venmo.appswitch.start.popup-bridge"),window.popupBridge.open(e)):(r.sendEvent(i._createPromise,"venmo.appswitch.start.webview"),window.open(e)):(r.sendEvent(i._createPromise,"venmo.appswitch.start.browser"),i._shouldUseRedirectStrategy()?window.location.href=e:window.open(e)),setTimeout((function(){window.document.addEventListener(I(),i._visibilityChangeListener)}),a.DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY),i._tokenizePromise}))},A.prototype._tokenizeForDesktop=function(){var e=this;return r.sendEvent(this._createPromise,"venmo.tokenize.desktop.start"),this._tokenizePromise=new f,this._createPromise.then((function(){return e._venmoDesktopInstance.launchDesktopFlow()})).then((function(t){e._venmoDesktopInstance.hideDesktopFlow(),r.sendEvent(e._createPromise,"venmo.tokenize.desktop.success"),e._tokenizePromise.resolve(t)})).catch((function(t){r.sendEvent(e._createPromise,"venmo.tokenize.desktop.failure"),e._venmoDesktopInstance&&e._venmoDesktopInstance.hideDesktopFlow(),t&&"CUSTOMER_CANCELED"===t.reason?e._tokenizePromise.reject(new _(s.VENMO_DESKTOP_CANCELED)):e._tokenizePromise.reject(new _({type:s.VENMO_DESKTOP_UNKNOWN_ERROR.type,code:s.VENMO_DESKTOP_UNKNOWN_ERROR.code,message:s.VENMO_DESKTOP_UNKNOWN_ERROR.message,details:{originalError:t}}))})),this._tokenizePromise},A.prototype._updateVenmoDesktopPaymentContext=function(e,t){return this._venmoDesktopInstance.updateVenmoDesktopPaymentContext(e,t)},A.prototype._cancelMobilePollingContext=function(){var e=this;return this._createPromise.then((function(t){return e._mobilePollingContextId?t.request({api:"graphQLApi",data:{query:y.UPDATE_VENMO_DESKTOP_PAYMENT_RESOURCE_QUERY,variables:{input:{id:e._mobilePollingContextId,status:"CANCELED"}}}}):h.resolve()}))},A.prototype._cancelVenmoDesktopContext=function(){var e=this;return this._createPromise.then((function(){return e._venmoDesktopInstance&&e._venmoDesktopInstance.updateVenmoDesktopPaymentContext("CANCELED"),h.resolve()}))},A.prototype.teardown=function(){var e=this;return this._removeVisibilityEventListener(),this._createPromise.then(function(){e._venmoDesktopInstance&&e._venmoDesktopInstance.teardown(),e._cancelMobilePollingContext(),d(this,u(A.prototype))}.bind(this))},A.prototype._removeVisibilityEventListener=function(){window.removeEventListener("hashchange",this._onHashChangeListener),window.document.removeEventListener(I(),this._visibilityChangeListener),delete this._visibilityChangeListener,delete this._onHashChangeListener},A.prototype._processResults=function(e){var t=this,n=T(e);return new h((function(e,i){n.venmoSuccess?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.success"), +e(n)):n.venmoError?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.error"),i(new _({type:s.VENMO_APP_FAILED.type,code:s.VENMO_APP_FAILED.code,message:s.VENMO_APP_FAILED.message,details:{originalError:{message:decodeURIComponent(n.errorMessage),code:n.errorCode}}}))):n.venmoCancel?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.cancel"),i(new _(s.VENMO_APP_CANCELED))):(r.sendEvent(t._createPromise,"venmo.appswitch.cancel-or-unavailable"),i(new _(s.VENMO_CANCELED))),t._clearFragmentParameters()}))},A.prototype._clearFragmentParameters=function(){this._ignoreHistoryChanges||"function"==typeof window.history.replaceState&&window.location.hash&&history.pushState({},"",window.location.href.slice(0,window.location.href.indexOf("#")))},t.exports=p.wrapPrototype(A)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/in-iframe":152,"../lib/is-verified-domain":155,"../lib/methods":157,"../lib/promise":159,"../lib/querystring":160,"./external/":209,"./external/queries":210,"./shared/browser-detection":213,"./shared/constants":214,"./shared/errors":215,"./shared/supports-venmo":217,"@braintree/extended-promise":35,"@braintree/wrap-promise":44}],219:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VISA_CHECKOUT_NOT_ENABLED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_NOT_ENABLED",message:"Visa Checkout is not enabled for this merchant."},VISA_CHECKOUT_INIT_OPTIONS_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_INIT_OPTIONS_REQUIRED",message:"initOptions requires an object."},VISA_CHECKOUT_PAYMENT_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_PAYMENT_REQUIRED",message:"tokenize requires callid, encKey, and encPaymentData."},VISA_CHECKOUT_TOKENIZATION:{type:r.types.NETWORK,code:"VISA_CHECKOUT_TOKENIZATION",message:"A network error occurred when processing the Visa Checkout payment."}}},{"../lib/braintree-error":126}],220:[function(e,t,n){"use strict";var r=e("../lib/basic-component-verification"),i=e("../lib/braintree-error"),o=e("../lib/create-deferred-client"),a=e("../lib/create-assets-url"),s=e("./visa-checkout"),c=e("../lib/analytics"),l=e("./errors"),u=e("../lib/promise"),d=e("@braintree/wrap-promise");t.exports={create:d((function(e){var t="Visa Checkout";return r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:a.create(e.authorization),name:t})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.visaCheckout?(c.sendEvent(e.client,"visacheckout.initialized"),new s(e)):u.reject(new i(l.VISA_CHECKOUT_NOT_ENABLED))}))})),VERSION:"3.76.4"}},{"../lib/analytics":121,"../lib/basic-component-verification":124,"../lib/braintree-error":126,"../lib/create-assets-url":131,"../lib/create-deferred-client":133,"../lib/promise":159,"./errors":219,"./visa-checkout":221,"@braintree/wrap-promise":44}],221:[function(e,t,n){"use strict" +;var r=e("../lib/braintree-error"),i=e("../lib/analytics"),o=e("./errors"),a=e("../lib/json-clone"),s=e("../lib/methods"),c=e("../lib/convert-methods-to-error"),l=e("../lib/promise"),u=e("@braintree/wrap-promise"),d={Visa:"VISA",MasterCard:"MASTERCARD",Discover:"DISCOVER","American Express":"AMEX"};function p(e){this._client=e.client}p.prototype.createInitOptions=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,i=n.visaCheckout;if(!e)throw new r(o.VISA_CHECKOUT_INIT_OPTIONS_REQUIRED);return(t=a(e)).apikey=t.apikey||i.apikey,t.externalClientId=t.externalClientId||i.externalClientId,t.settings=t.settings||{},t.settings.dataLevel="FULL",t.settings.payment=t.settings.payment||{},t.settings.payment.cardBrands||(t.settings.payment.cardBrands=n.visaCheckout.supportedCardTypes.reduce((function(e,t){return d.hasOwnProperty(t)?e.concat(d[t]):e}),[])),t},p.prototype.tokenize=function(e){var t=this;return e.callid&&e.encKey&&e.encPaymentData?this._client.request({method:"post",endpoint:"payment_methods/visa_checkout_cards",data:{_meta:{source:"visa-checkout"},visaCheckoutCard:{callId:e.callid,encryptedPaymentData:e.encPaymentData,encryptedKey:e.encKey}}}).then((function(e){return i.sendEvent(t._client,"visacheckout.tokenize.succeeded"),e.visaCheckoutCards[0]})).catch((function(e){return i.sendEvent(t._client,"visacheckout.tokenize.failed"),l.reject(new r({type:o.VISA_CHECKOUT_TOKENIZATION.type,code:o.VISA_CHECKOUT_TOKENIZATION.code,message:o.VISA_CHECKOUT_TOKENIZATION.message,details:{originalError:e}}))})):l.reject(new r(o.VISA_CHECKOUT_PAYMENT_REQUIRED))},p.prototype.teardown=function(){return c(this,s(p.prototype)),l.resolve()},t.exports=u.wrapPrototype(p)},{"../lib/analytics":121,"../lib/braintree-error":126,"../lib/convert-methods-to-error":129,"../lib/json-clone":156,"../lib/methods":157,"../lib/promise":159,"./errors":219,"@braintree/wrap-promise":44}]},{},[119])(119)},39391:e=>{"use strict";function t(e){return"function"==typeof e?e():e}function n(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=void 0,a=void 0,s=void 0,c=[];return function(){var u=t(r),d=(new Date).getTime(),p=!o||d-o>u;o=d;for(var _=arguments.length,E=Array(_),h=0;h<_;h++)E[h]=arguments[h];if(p&&i.leading)return i.accumulate?Promise.resolve(e.call(this,[E])).then((function(e){return e[0]})):Promise.resolve(e.call.apply(e,[this].concat(E)));if(a?clearTimeout(s):a=n(),c.push(E),s=setTimeout(l.bind(this),u),i.accumulate){var f=c.length-1;return a.promise.then((function(e){return e[f]}))}return a.promise};function l(){var t=a;clearTimeout(s),Promise.resolve(i.accumulate?e.call(this,c):e.apply(this,c[c.length-1])).then(t.resolve,t.reject),c=[],a=null}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/1253.80f3612c2c0c60fc7435.css b/charting_library/bundles/1253.80f3612c2c0c60fc7435.css new file mode 100644 index 00000000..fc504869 --- /dev/null +++ b/charting_library/bundles/1253.80f3612c2c0c60fc7435.css @@ -0,0 +1 @@ +.back-button-837Z5B3u{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;height:23px;margin:0;padding:8px;width:23px}html.theme-dark .back-button-837Z5B3u{color:#d1d4dc}@media (any-hover:hover){.back-button-837Z5B3u:hover{background:#f0f3fa;color:#000}html.theme-dark .back-button-837Z5B3u:hover{background:#2a2e39;color:#f0f3fa}}.back-button-837Z5B3u:active{background:#e0e3eb;color:#131722}html.theme-dark .back-button-837Z5B3u:active{background:#1e222d;color:#d1d4dc}.back-button-837Z5B3u{outline:none;overflow:visible;position:relative}.back-button-837Z5B3u:focus{outline:none}.back-button-837Z5B3u:focus-visible{outline:none}.back-button-837Z5B3u:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.back-button-837Z5B3u:focus:after{display:block}.back-button-837Z5B3u:focus-visible:after{display:block}.back-button-837Z5B3u:focus:not(:focus-visible):after{display:none}.back-button-837Z5B3u:after{border-color:#2962ffcc;border-radius:8px}.back-button-837Z5B3u:disabled{color:#131722;cursor:default}@media (any-hover:hover){.back-button-837Z5B3u:disabled:hover{color:#131722;cursor:default}}html.theme-dark .back-button-837Z5B3u:disabled{color:#d1d4dc}@media (any-hover:hover){html.theme-dark .back-button-837Z5B3u:disabled:hover{color:#d1d4dc}}.icon-837Z5B3u,.icon-837Z5B3u svg{height:100%;width:100%}.button-m-837Z5B3u{height:17px;width:17px} \ No newline at end of file diff --git a/charting_library/bundles/1253.80f3612c2c0c60fc7435.rtl.css b/charting_library/bundles/1253.80f3612c2c0c60fc7435.rtl.css new file mode 100644 index 00000000..de27f8ac --- /dev/null +++ b/charting_library/bundles/1253.80f3612c2c0c60fc7435.rtl.css @@ -0,0 +1 @@ +.back-button-837Z5B3u{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;height:23px;margin:0;padding:8px;width:23px}html.theme-dark .back-button-837Z5B3u{color:#d1d4dc}@media (any-hover:hover){.back-button-837Z5B3u:hover{background:#f0f3fa;color:#000}html.theme-dark .back-button-837Z5B3u:hover{background:#2a2e39;color:#f0f3fa}}.back-button-837Z5B3u:active{background:#e0e3eb;color:#131722}html.theme-dark .back-button-837Z5B3u:active{background:#1e222d;color:#d1d4dc}.back-button-837Z5B3u{outline:none;overflow:visible;position:relative}.back-button-837Z5B3u:focus{outline:none}.back-button-837Z5B3u:focus-visible{outline:none}.back-button-837Z5B3u:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.back-button-837Z5B3u:focus:after{display:block}.back-button-837Z5B3u:focus-visible:after{display:block}.back-button-837Z5B3u:focus:not(:focus-visible):after{display:none}.back-button-837Z5B3u:after{border-color:#2962ffcc;border-radius:8px}.back-button-837Z5B3u:disabled{color:#131722;cursor:default}@media (any-hover:hover){.back-button-837Z5B3u:disabled:hover{color:#131722;cursor:default}}html.theme-dark .back-button-837Z5B3u:disabled{color:#d1d4dc}@media (any-hover:hover){html.theme-dark .back-button-837Z5B3u:disabled:hover{color:#d1d4dc}}.icon-837Z5B3u,.icon-837Z5B3u svg{height:100%;width:100%}.icon-837Z5B3u svg{transform:rotate(180deg)}.button-m-837Z5B3u{height:17px;width:17px} \ No newline at end of file diff --git a/charting_library/bundles/1333.66628a51e9c9fe6d23a6.css b/charting_library/bundles/1333.66628a51e9c9fe6d23a6.css new file mode 100644 index 00000000..fce3ed00 --- /dev/null +++ b/charting_library/bundles/1333.66628a51e9c9fe6d23a6.css @@ -0,0 +1 @@ +.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;left:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;top:0} \ No newline at end of file diff --git a/charting_library/bundles/1333.66628a51e9c9fe6d23a6.rtl.css b/charting_library/bundles/1333.66628a51e9c9fe6d23a6.rtl.css new file mode 100644 index 00000000..46a1d955 --- /dev/null +++ b/charting_library/bundles/1333.66628a51e9c9fe6d23a6.rtl.css @@ -0,0 +1 @@ +.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;right:0;top:0} \ No newline at end of file diff --git a/charting_library/bundles/1424.d659ebb641f9bc73fab3.css b/charting_library/bundles/1424.d659ebb641f9bc73fab3.css new file mode 100644 index 00000000..274b4f52 --- /dev/null +++ b/charting_library/bundles/1424.d659ebb641f9bc73fab3.css @@ -0,0 +1 @@ +.errorDialog-0R3aCXZS{line-height:1.5}.tv-free-trial-q2JdOW0b{padding:0 40px}@media screen and (max-width:479px){.tv-free-trial-q2JdOW0b{padding:0 20px}}.tv-free-trial__total-q2JdOW0b{padding-bottom:24px}.tv-free-trial__total-separator-q2JdOW0b{border-bottom:1px dashed #c1c4cd;margin:16px 0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{display:flex}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-today-description-container-q2JdOW0b{flex:1.5}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{color:#131722;flex:1;font-weight:700;text-align:right}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-price-q2JdOW0b span+span,.tv-free-trial__total-today-price-q2JdOW0b span+span{margin-left:10px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{text-align:initial}}.tv-free-trial__total-after-trial-price-year-q2JdOW0b,.tv-free-trial__total-today-price-year-q2JdOW0b{color:#ff4a68}html.theme-dark .tv-free-trial__total-after-trial-price-year-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-year-q2JdOW0b{color:#cc2f3c}.tv-free-trial__total-after-trial-price-year--crossed-q2JdOW0b,.tv-free-trial__total-today-price-year--crossed-q2JdOW0b{text-decoration:line-through}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-right:0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{flex-direction:column}}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-after-trial-title-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b,.tv-free-trial__total-today-title-q2JdOW0b{color:#131722;font-size:24px;line-height:36px}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-after-trial-title-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-title-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-description-q2JdOW0b,.tv-free-trial__total-today-description-q2JdOW0b{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .tv-free-trial__total-after-trial-description-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-description-q2JdOW0b{color:#787b86}.tv-free-trial__footer-info-q2JdOW0b{display:flex}.tv-free-trial__footer-info-block-q2JdOW0b{background-color:#e3effd;border-radius:4px;flex:1;padding:16px 16px 4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b{background-color:#132042}.tv-free-trial__footer-info-block-q2JdOW0b h3{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b h3{color:#d1d4dc}.tv-free-trial__footer-info-block-q2JdOW0b p{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b p{color:#b2b5be}.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-bottom:20px;margin-right:0}.tv-free-trial__footer-info-q2JdOW0b{flex-direction:column}} \ No newline at end of file diff --git a/charting_library/bundles/1424.d659ebb641f9bc73fab3.rtl.css b/charting_library/bundles/1424.d659ebb641f9bc73fab3.rtl.css new file mode 100644 index 00000000..82891044 --- /dev/null +++ b/charting_library/bundles/1424.d659ebb641f9bc73fab3.rtl.css @@ -0,0 +1 @@ +.errorDialog-0R3aCXZS{line-height:1.5}.tv-free-trial-q2JdOW0b{padding:0 40px}@media screen and (max-width:479px){.tv-free-trial-q2JdOW0b{padding:0 20px}}.tv-free-trial__total-q2JdOW0b{padding-bottom:24px}.tv-free-trial__total-separator-q2JdOW0b{border-bottom:1px dashed #c1c4cd;margin:16px 0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{display:flex}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-today-description-container-q2JdOW0b{flex:1.5}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{color:#131722;flex:1;font-weight:700;text-align:left}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-price-q2JdOW0b span+span,.tv-free-trial__total-today-price-q2JdOW0b span+span{margin-right:10px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b{text-align:initial}}.tv-free-trial__total-after-trial-price-year-q2JdOW0b,.tv-free-trial__total-today-price-year-q2JdOW0b{color:#ff4a68}html.theme-dark .tv-free-trial__total-after-trial-price-year-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-year-q2JdOW0b{color:#cc2f3c}.tv-free-trial__total-after-trial-price-year--crossed-q2JdOW0b,.tv-free-trial__total-today-price-year--crossed-q2JdOW0b{text-decoration:line-through}.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.tv-free-trial__total-after-trial-description-container-q2JdOW0b,.tv-free-trial__total-after-trial-price-q2JdOW0b:not(:last-child),.tv-free-trial__total-today-description-container-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b:not(:last-child){margin-left:0}.tv-free-trial__total-after-trial-q2JdOW0b,.tv-free-trial__total-today-q2JdOW0b{flex-direction:column}}.tv-free-trial__total-after-trial-price-q2JdOW0b,.tv-free-trial__total-after-trial-title-q2JdOW0b,.tv-free-trial__total-today-price-q2JdOW0b,.tv-free-trial__total-today-title-q2JdOW0b{color:#131722;font-size:24px;line-height:36px}html.theme-dark .tv-free-trial__total-after-trial-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-after-trial-title-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-price-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-title-q2JdOW0b{color:#d1d4dc}.tv-free-trial__total-after-trial-description-q2JdOW0b,.tv-free-trial__total-today-description-q2JdOW0b{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .tv-free-trial__total-after-trial-description-q2JdOW0b,html.theme-dark .tv-free-trial__total-today-description-q2JdOW0b{color:#787b86}.tv-free-trial__footer-info-q2JdOW0b{display:flex}.tv-free-trial__footer-info-block-q2JdOW0b{background-color:#e3effd;border-radius:4px;flex:1;padding:16px 16px 4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b{background-color:#132042}.tv-free-trial__footer-info-block-q2JdOW0b h3{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b h3{color:#d1d4dc}.tv-free-trial__footer-info-block-q2JdOW0b p{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark .tv-free-trial__footer-info-block-q2JdOW0b p{color:#b2b5be}.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.tv-free-trial__footer-info-block-q2JdOW0b:not(:last-child){margin-bottom:20px;margin-left:0}.tv-free-trial__footer-info-q2JdOW0b{flex-direction:column}} \ No newline at end of file diff --git a/charting_library/bundles/1482.31d88995d3950d354e71.js b/charting_library/bundles/1482.31d88995d3950d354e71.js new file mode 100644 index 00000000..2e9bb4bc --- /dev/null +++ b/charting_library/bundles/1482.31d88995d3950d354e71.js @@ -0,0 +1,24 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1482],{12857:e=>{e.exports={"textarea-container":"textarea-container-I5L4qQPj","change-highlight":"change-highlight-I5L4qQPj",focused:"focused-I5L4qQPj","resize-vertical":"resize-vertical-I5L4qQPj","resize-horizontal":"resize-horizontal-I5L4qQPj","resize-both":"resize-both-I5L4qQPj",textarea:"textarea-I5L4qQPj"}},74588:e=>{e.exports={wrap:"wrap-sYKPueSl",thicknessItem:"thicknessItem-sYKPueSl",checked:"checked-sYKPueSl",radio:"radio-sYKPueSl",bar:"bar-sYKPueSl"}},9198:e=>{e.exports={innerLabel:"innerLabel-MS9pjVpT"}},44712:e=>{e.exports={controlWrapper:"controlWrapper-y2rn9wiU",hidden:"hidden-y2rn9wiU",control:"control-y2rn9wiU",controlIncrease:"controlIncrease-y2rn9wiU",controlDecrease:"controlDecrease-y2rn9wiU",controlIcon:"controlIcon-y2rn9wiU",title:"title-y2rn9wiU"}},16300:e=>{e.exports={titleWrap:"titleWrap-ZYQL0yaM",groupFooter:"groupFooter-ZYQL0yaM"}},23128:e=>{e.exports={inlineRow:"inlineRow-CqPNtHDN"}},70199:e=>{e.exports={icon:"icon-OTC0ma9h"}},6041:e=>{e.exports={input:"input-pBN3Orju",symbol:"symbol-pBN3Orju",checkbox:"checkbox-pBN3Orju",label:"label-pBN3Orju",dropdownMenu:"dropdownMenu-pBN3Orju",sessionStart:"sessionStart-pBN3Orju",sessionEnd:"sessionEnd-pBN3Orju",sessionInputContainer:"sessionInputContainer-pBN3Orju",sessionDash:"sessionDash-pBN3Orju",inputGroup:"inputGroup-pBN3Orju",textarea:"textarea-pBN3Orju",inlineGroup:"inlineGroup-pBN3Orju",hasTooltip:"hasTooltip-pBN3Orju"}},46828:e=>{e.exports={content:"content-ByXdMGQj",cell:"cell-ByXdMGQj",inner:"inner-ByXdMGQj",first:"first-ByXdMGQj",inlineCell:"inlineCell-ByXdMGQj",fill:"fill-ByXdMGQj",top:"top-ByXdMGQj",topCenter:"topCenter-ByXdMGQj",offset:"offset-ByXdMGQj",inlineRow:"inlineRow-ByXdMGQj",grouped:"grouped-ByXdMGQj",separator:"separator-ByXdMGQj",groupSeparator:"groupSeparator-ByXdMGQj",big:"big-ByXdMGQj",adaptive:"adaptive-ByXdMGQj",checkableTitle:"checkableTitle-ByXdMGQj"}},300:e=>{e.exports={wrap:"wrap-l3G0HrB9",labelWrap:"labelWrap-l3G0HrB9",label:"label-l3G0HrB9",hasTooltip:"hasTooltip-l3G0HrB9"}},91131:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},55914:e=>{e.exports={wrap:"wrap-GsOqvniR",icon:"icon-GsOqvniR",text:"text-GsOqvniR",disabled:"disabled-GsOqvniR"}},14348:e=>{e.exports={colorPickerWrap:"colorPickerWrap-pz6IRAmC",focused:"focused-pz6IRAmC",readonly:"readonly-pz6IRAmC",disabled:"disabled-pz6IRAmC","size-small":"size-small-pz6IRAmC","size-medium":"size-medium-pz6IRAmC","size-large":"size-large-pz6IRAmC","font-size-small":"font-size-small-pz6IRAmC","font-size-medium":"font-size-medium-pz6IRAmC","font-size-large":"font-size-large-pz6IRAmC","border-none":"border-none-pz6IRAmC",shadow:"shadow-pz6IRAmC","border-thin":"border-thin-pz6IRAmC","border-thick":"border-thick-pz6IRAmC","intent-default":"intent-default-pz6IRAmC","intent-success":"intent-success-pz6IRAmC","intent-warning":"intent-warning-pz6IRAmC","intent-danger":"intent-danger-pz6IRAmC", +"intent-primary":"intent-primary-pz6IRAmC","corner-top-left":"corner-top-left-pz6IRAmC","corner-top-right":"corner-top-right-pz6IRAmC","corner-bottom-right":"corner-bottom-right-pz6IRAmC","corner-bottom-left":"corner-bottom-left-pz6IRAmC",colorPicker:"colorPicker-pz6IRAmC",swatch:"swatch-pz6IRAmC",placeholderContainer:"placeholderContainer-pz6IRAmC",placeholder:"placeholder-pz6IRAmC",mixedColor:"mixedColor-pz6IRAmC",white:"white-pz6IRAmC",opacitySwatch:"opacitySwatch-pz6IRAmC",colorLine:"colorLine-pz6IRAmC",multiWidth:"multiWidth-pz6IRAmC",line:"line-pz6IRAmC",thicknessContainer:"thicknessContainer-pz6IRAmC",thicknessTitle:"thicknessTitle-pz6IRAmC"}},83421:e=>{e.exports={thicknessContainer:"thicknessContainer-ofeynovw",thicknessTitle:"thicknessTitle-ofeynovw"}},83998:e=>{e.exports={hasTooltip:"hasTooltip-0t5K1wco",uppercase:"uppercase-0t5K1wco"}},26527:e=>{e.exports={wrap:"wrap-dHwHcgvB"}},27345:e=>{e.exports={checkbox:"checkbox-24x04noU",title:"title-24x04noU"}},51842:e=>{e.exports={titleWrap:"titleWrap-O5QDBhZc",title:"title-O5QDBhZc"}},10667:e=>{e.exports={container:"container-WiTVOllB",sectionTitle:"sectionTitle-WiTVOllB",separator:"separator-WiTVOllB",customButton:"customButton-WiTVOllB"}},99565:e=>{e.exports={container:"container-UpS01XRM",form:"form-UpS01XRM",swatch:"swatch-UpS01XRM",inputWrap:"inputWrap-UpS01XRM",inputHash:"inputHash-UpS01XRM",input:"input-UpS01XRM",buttonWrap:"buttonWrap-UpS01XRM",hueSaturationWrap:"hueSaturationWrap-UpS01XRM",saturation:"saturation-UpS01XRM",hue:"hue-UpS01XRM"}},24429:e=>{e.exports={hue:"hue-oQv2KoOx",pointer:"pointer-oQv2KoOx",pointerContainer:"pointerContainer-oQv2KoOx"}},15381:e=>{e.exports={opacity:"opacity-YL5Gjk00",opacitySlider:"opacitySlider-YL5Gjk00",opacitySliderGradient:"opacitySliderGradient-YL5Gjk00",pointer:"pointer-YL5Gjk00",dragged:"dragged-YL5Gjk00",opacityPointerWrap:"opacityPointerWrap-YL5Gjk00",opacityInputWrap:"opacityInputWrap-YL5Gjk00",opacityInput:"opacityInput-YL5Gjk00",opacityInputPercent:"opacityInputPercent-YL5Gjk00"}},88440:e=>{e.exports={saturation:"saturation-lJHGRPyu",pointer:"pointer-lJHGRPyu"}},24590:e=>{e.exports={swatches:"swatches-qgksmXjR",swatch:"swatch-qgksmXjR",hover:"hover-qgksmXjR",empty:"empty-qgksmXjR",white:"white-qgksmXjR",selected:"selected-qgksmXjR",contextItem:"contextItem-qgksmXjR"}},88722:e=>{e.exports={wrap:"wrap-TyQYOCnx",input:"input-TyQYOCnx"}},24451:e=>{e.exports={icon:"icon-P882WPW5"}},2568:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>y});var o,r=n(59496),s=n(97754),a=n(66092),i=n(29202),l=n(48027),c=n(45812),u=n(47201),p=n(48907),d=n(67029),h=n(78274),m=n(12857),f=n.n(m);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const g=r.forwardRef((e,t)=>{ +const{id:n,title:o,tabIndex:a,containerTabIndex:i,role:l,inputClassName:c,autoComplete:u,autoFocus:p,cols:m,disabled:g,isFocused:v,form:C,maxLength:y,minLength:b,name:E,placeholder:S,readonly:N,required:_,rows:w,value:x,defaultValue:T,wrap:k,containerReference:P,onChange:I,onSelect:R,onFocus:B,onContainerFocus:M,onBlur:D,"aria-describedby":O,...V}=e,A={id:n,title:o,tabIndex:a,role:l,autoComplete:u,autoFocus:p,cols:m,disabled:g,form:C,maxLength:y,minLength:b,name:E,placeholder:S,readOnly:N,required:_,rows:w,value:x,defaultValue:T,wrap:k,onChange:I,onSelect:R,onFocus:B,onBlur:D,"aria-describedby":O};return r.createElement(d.ControlSkeleton,{...V,tabIndex:i,disabled:g,readonly:N,isFocused:v,ref:P,onFocus:M,middleSlot:r.createElement(h.MiddleSlot,null,r.createElement("textarea",{...A,className:s(f().textarea,c),ref:t}))})});g.displayName="TextareaView";const v=(e,t,n)=>t?void 0:e?-1:n,C=(e,t,n)=>t?void 0:e?n:-1,y=r.forwardRef((e,t)=>{e=(0,l.useControl)(e);const{className:n,disabled:d,autoSelectOnFocus:h,tabIndex:m=0,borderStyle:y,highlight:b,resize:E,containerReference:S=null,onFocus:N,onBlur:_,...w}=e,x=(0,r.useRef)(null),T=(0,r.useRef)(null),{isMouseDown:k,handleMouseDown:P,handleMouseUp:I}=(0,c.useIsMouseDown)(),[R,B]=(0,i.useFocus)(),M=(0,u.createSafeMulticastEventHandler)(B.onFocus,(function(e){h&&!k.current&&(0,p.selectAllContent)(e.currentTarget)}),N),D=(0,u.createSafeMulticastEventHandler)(B.onBlur,_),O=void 0!==E&&E!==o.None,V=null!=y?y:O?b?"thick":"thin":void 0,A=null!=b?b:!O&&void 0;return r.createElement(g,{...w,className:s(f()["textarea-container"],O&&f()["change-highlight"],E&&E!==o.None&&f()["resize-"+E],R&&f().focused,n),disabled:d,isFocused:R,containerTabIndex:v(R,d,m),tabIndex:C(R,d,m),borderStyle:V,highlight:A,onContainerFocus:function(e){T.current===e.target&&null!==x.current&&x.current.focus()},onFocus:M,onBlur:D,onMouseDown:P,onMouseUp:I,ref:function(e){x.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:(0,a.useMergedRefs)([S,T])})});y.displayName="Textarea"},92399:(e,t,n)=>{"use strict";n.d(t,{NumberInputView:()=>x});var o=n(59496),r=n(32563),s=n(97754),a=n(67029),i=n(78274),l=n(86623),c=n(86629),u=n(1405),p=n(9198);const d={large:a.InputClasses.FontSizeLarge,medium:a.InputClasses.FontSizeMedium},h={attachment:u.anchors.top.attachment,targetAttachment:u.anchors.top.targetAttachment,attachmentOffsetY:-4};function m(e){const{className:t,inputClassName:n,stretch:r=!0,errorMessage:a,fontSizeStyle:u="large",endSlot:m,button:f,error:g,warning:v,innerLabel:C,inputReference:y,children:b,...E}=e,S=g&&void 0!==a?[a]:void 0,N=v&&void 0!==a?[a]:void 0,_=s(p.inputContainer,d[u],t),w=C?o.createElement(i.StartSlot,{className:p.innerLabel,interactive:!1},C):void 0,x=m||f||b?o.createElement(i.EndSlot,null,m,f,b):void 0;return o.createElement(l.FormInput,{...E,className:_,inputClassName:n,errors:S,warnings:N,hasErrors:g,hasWarnings:v,messagesPosition:c.MessagesPosition.Attached,customErrorsAttachment:h,messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0, +iconHidden:!0,stretch:r,reference:y,startSlot:w,endSlot:x})}var f=n(28353),g=n(9745),v=n(81268),C=n(44712);function y(e){const t=s(C.control,C.controlIncrease),n=s(C.control,C.controlDecrease);return o.createElement(o.Fragment,null,void 0!==e.title&&o.createElement("div",{className:C.title},e.title),o.createElement("div",{className:C.controlWrapper},(e.defaultButtonsVisible||e.title)&&o.createElement(o.Fragment,null,o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,f.t)("Increase"),className:t,onClick:e.increaseValue},o.createElement(g.Icon,{icon:v,className:C.controlIcon})),o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,f.t)("Decrease"),className:n,onClick:e.decreaseValue},o.createElement(g.Icon,{icon:v,className:C.controlIcon})))))}var b=n(70412),E=n(29202),S=n(47201),N=n(68335);const _=[38],w=[40];function x(e){const[t,n]=(0,b.useHover)(),[s,a]=(0,E.useFocus)(),i=(0,S.createSafeMulticastEventHandler)(a.onFocus,e.onFocus),l=(0,S.createSafeMulticastEventHandler)(a.onBlur,e.onBlur),c=(0,o.useCallback)(t=>{!e.disabled&&s&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))},[s,e.disabled,e.onValueByStepChange]);return o.createElement(m,{...n,id:e.id,name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,button:function(){const{button:n,forceShowControls:a,disabled:i,title:l}=e,c=!i&&!r.mobiletouch&&(a||s||t);return i?void 0:o.createElement(o.Fragment,null,null!=n?n:o.createElement(y,{increaseValue:u,decreaseValue:p,defaultButtonsVisible:c,title:l}))}(),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,endSlot:e.endSlot,containerReference:e.containerReference,inputReference:e.inputReference,inputMode:e.inputMode,type:e.type,error:e.error,errorMessage:e.errorMessage,onClick:e.onClick,onFocus:i,onBlur:l,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==(0,N.modifiersFromEvent)(t.nativeEvent))return;let n=_,o=w;e.controlDecKeyCodes&&(o=o.concat(e.controlDecKeyCodes));e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(o.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(o.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t)},onWheelNoPassive:c,stretch:e.stretch,intent:e.intent,highlight:e.highlight,highlightRemoveRoundBorder:e.highlightRemoveRoundBorder,autoSelectOnFocus:e.autoSelectOnFocus,"data-property-id":e["data-name"]});function u(){e.disabled||e.onValueByStepChange(1)}function p(){e.disabled||e.onValueByStepChange(-1)}}},35726:(e,t,n)=>{"use strict";n.d(t,{splitThousands:()=>r});var o=n(93751);function r(e,t=" "){let n=e+"";-1!==n.indexOf("e")&&(n=function(e){return(0,o.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));const r=n.split(".");return r[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(r[1]?"."+r[1]:"")}},46446:(e,t,n)=>{"use strict";n.d(t,{bind:()=>a,setter:()=>i});var o=n(59496),r=n(617),s=n(27365);function a(e){var t +;return(t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=(e,t,n)=>{const{setValue:o}=this.context,{onChange:r}=this.props;i(o,r)(e,t,n)}}render(){const{input:t}=this.props,{values:n,model:r}=this.context;return o.createElement(e,{...this.props,value:n[t.id],tzName:(0,s.getTimezoneName)(r),onChange:this._onChange})}}).contextType=r.PropertyContext,t}function i(e,t){return(n,o,r)=>{e(o,n,r),t&&t(n,o,r)}}},617:(e,t,n)=>{"use strict";n.d(t,{PropertyContext:()=>c,PropertyContainer:()=>u});var o=n(59496),r=n(88537),s=n(28353),a=n(24980);const i=(0,n(98125).getLogger)("Platform.GUI.StudyInputPropertyContainer"),l=new a.TranslatedString("change {propertyName} property",(0,s.t)("change {propertyName} property")),c=o.createContext(null);class u extends o.PureComponent{constructor(e){super(e),this._setValue=(e,t,n)=>{const{property:o,model:c}=this.props,u=(0,r.ensureDefined)(o.child(e));i.logNormal(`Changing property "${e}" value from "${o.value()}" to "${t}"`);const p=new a.TranslatedString(n,function(e){return(0,s.t)(e,{context:"input"})}(n));c.setProperty(u,t,l.format({propertyName:p}))};const{property:t}=e,n={};t.childNames().forEach(e=>{const o=(0,r.ensureDefined)(t.child(e));n.hasOwnProperty(e)||(n[e]=o.value())}),this.state=n}componentDidMount(){const{property:e,onStudyInputChange:t}=this.props;e.childNames().forEach(n=>{(0,r.ensureDefined)(e.child(n)).subscribe(this,e=>{const o=e.value();i.logNormal(`Property "${n}" updated to value "${o}"`),this.setState({[n]:o}),null==t||t(o,n)})})}componentWillUnmount(){const{property:e}=this.props;e.childNames().forEach(t=>{(0,r.ensureDefined)(e.child(t)).unsubscribeAll(this)})}render(){const{study:e,model:t,children:n}=this.props,r={study:e,model:t,values:this.state,setValue:this._setValue};return o.createElement(c.Provider,{value:r},n)}}},44488:(e,t,n)=>{"use strict";n.d(t,{ModelContext:()=>r,bindModel:()=>s});var o=n(59496);const r=o.createContext(null);function s(e,t){return o.createElement(r.Consumer,null,n=>n?o.createElement(e,{...Object.assign({model:n},t)}):null)}},87536:(e,t,n)=>{"use strict";n.d(t,{StylePropertyContext:()=>s,StylePropertyContainer:()=>a,bindPropertyContext:()=>i});var o=n(59496),r=n(44488);const s=o.createContext(null);class a extends o.PureComponent{constructor(){super(...arguments),this._setValue=(e,t,n)=>{const{model:o}=this.props;o.setProperty(e,t,n)}}componentDidMount(){const{property:e}=this.props;e.subscribe(this,()=>this.forceUpdate())}componentWillUnmount(){const{property:e}=this.props;e.unsubscribeAll(this)}render(){const e={setValue:this._setValue};return o.createElement(s.Provider,{value:e},this.props.children)}}function i(e,t){return(0,r.bindModel)(({model:n})=>o.createElement(a,{model:n,property:t.property},o.createElement(e,{...t})),t)}},65376:(e,t,n)=>{"use strict";n.d(t,{InputTooltip:()=>h});var o=n(59496),r=n(97754),s=n.n(r),a=n(9745),i=n(38780),l=n(32563),c=n(70199),u=n(60495);function p(){document.removeEventListener("scroll",p),document.removeEventListener("touchstart",p),(0,i.hide)()}function d(e){ +l.mobiletouch&&((0,i.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",p),document.addEventListener("touchstart",p))}function h(e){const{className:t,title:n}=e;return o.createElement(a.Icon,{icon:u,className:s()(t,"apply-common-tooltip",c.icon),title:n,onClick:d})}},95087:(e,t,n)=>{"use strict";n.d(t,{isGroup:()=>r,isInputInlines:()=>s,getInputGroups:()=>a});var o=n(88537);function r(e){return e.hasOwnProperty("groupType")}function s(e){return r(e)&&"inline"===e.groupType}function a(e){const t=[],n=new Map,r=new Map;return r.set(void 0,new Map),e.forEach(e=>{const{group:s,inline:a}=e;if(void 0!==s||void 0!==a)if(void 0!==s)if(void 0!==a)if(n.has(s)){const t=(0,o.ensureDefined)(n.get(s));let l;r.has(t)?l=(0,o.ensureDefined)(r.get(t)):(l=new Map,r.set(t,l)),i(e,"inline",a,l,t.children)}else{const o={id:a,groupType:"inline",children:[e]},i={id:s,groupType:"group",children:[o]},l=new Map;l.set(a,o),r.set(i,l),n.set(s,i),t.push(i)}else i(e,"group",s,n,t);else{const n=(0,o.ensureDefined)(r.get(void 0));i(e,"inline",(0,o.ensureDefined)(a),n,t)}else t.push(e)}),t}function i(e,t,n,r,s){if(r.has(n))(0,o.ensureDefined)(r.get(n)).children.push(e);else{const o={id:n,groupType:t,children:[e]};r.set(n,o),s.push(o)}}},27547:(e,t,n)=>{"use strict";n.d(t,{InputRow:()=>X});var o=n(28353),r=n(59496),s=n(88537),a=n(33266),i=n(26007),l=n(48948),c=n(48100),u=n(97754),p=n.n(u),d=n(31261),h=n(46446),m=n(93379),f=n(6041);class g extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:s,hasTooltip:a}=this.props;return r.createElement(d.InputControl,{className:p()(f.input,a&&f.hasTooltip),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:s,disabled:n})}}const v=(0,m.debounced)(g),C=(0,h.bind)(v);var y=n(76110),b=n(35868);function E(e){const{className:t}=e,n=(0,r.useContext)(b.PropertyTable.InlineRowContext);return r.createElement("div",{className:u(f.inputGroup,n&&f.inlineGroup,t)},e.children)}var S=n(36565);function N(e=""){const[,t="",n="",o="",r=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return[`${t}:${n}`,`${o}:${r}`]}class _ extends r.PureComponent{constructor(e){super(e),this._onStartPick=e=>{this.setState({startTime:e},this._onChange)},this._onEndPick=e=>{this.setState({endTime:e},this._onChange)},this._onChange=()=>{const{input:{id:e,name:t},onChange:n}=this.props,{startTime:o,endTime:r}=this.state;n(o.replace(":","")+"-"+r.replace(":",""),e,t)};const t=e.value||e.input.defval,[n,o]=N(t);this.state={prevValue:t,startTime:n,endTime:o}}render(){const{startTime:e,endTime:t}=this.state,{hasTooltip:n,disabled:o}=this.props;return r.createElement(E,{className:p()(n&&f.hasTooltip)},r.createElement("div",{className:f.sessionStart},r.createElement(S.TimeInput,{className:p()(f.input,f.sessionInputContainer),name:"start",value:(0,s.ensureDefined)(e),onChange:this._onStartPick,disabled:o}),r.createElement("span",{ +className:f.sessionDash}," — ")),r.createElement("div",{className:f.sessionEnd},r.createElement(S.TimeInput,{className:p()(f.input,f.sessionInputContainer),name:"end",value:(0,s.ensureDefined)(t),onChange:this._onEndPick,disabled:o})))}static getDerivedStateFromProps(e,t){if(e.value===t.prevValue)return t;const[n,o]=N(e.value);return{prevValue:e.value,startTime:n,endTime:o}}}const w=(0,h.bind)(_);var x=n(67337),T=n(67072),k=n.n(T),P=n(617),I=n(58368);class R extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:{id:e,defval:t,options:n,optionsTitles:s},value:a,disabled:i,hasTooltip:l}=this.props,c=n.map(e=>{const t=s&&s[e]?s[e]:e;return{value:e,content:(0,o.t)(t,{context:"input"})}}),u=void 0!==a&&n.includes(a)?a:t;return r.createElement(I.Select,{id:e,className:p()(f.input,l&&f.hasTooltip),menuClassName:f.dropdownMenu,value:u,items:c,onChange:this._onChange,disabled:i})}}const B=(0,h.bind)(R);var M=n(72280);const D={open:(0,o.t)("open"),high:(0,o.t)("high"),low:(0,o.t)("low"),close:(0,o.t)("close"),hl2:(0,o.t)("hl2"),hlc3:(0,o.t)("hlc3"),ohlc4:(0,o.t)("ohlc4"),hlcc4:(0,o.t)("hlcc4")};class O extends r.PureComponent{render(){const{input:e}=this.props,{study:t,model:n}=this.context;let o={...D};delete o.hlcc4;const a=(0,M.createAdapter)(t);if(t&&this._isStudy(t)&&t.isChildStudy()){const t=a.parentSource(),n=t.title(),r=k().getChildSourceInputTitles(e,t.metaInfo(),n);o={...o,...r}}if(x.enabled("study_on_study")&&t&&this._isStudy(t)&&(t.isChildStudy()||k().canBeChild(t.metaInfo()))){const e=[t,...a.getAllChildren()];n.model().allStudies().filter(t=>t.canHaveChildren()&&!e.includes(t)).forEach(e=>{const t=e.title(!0,void 0,!0),n=e.sourceId()||"#"+e.id(),r=e.metaInfo(),a=r.styles,i=r.plots||[];if(1===i.length)o[n+"$0"]=t;else if(i.length>1){const e=i.reduce((e,o,r)=>{if(!k().canPlotBeSourceOfChildStudy(o.type))return e;let i;try{i=(0,s.ensureDefined)((0,s.ensureDefined)(a)[o.id]).title}catch(e){i=o.id}return{...e,[`${n}$${r}`]:`${t}: ${i}`}},{});o={...o,...e}}})}const i={...e,type:"text",options:Object.keys(o),optionsTitles:o};return r.createElement(B,{...this.props,input:i})}_isStudy(e){return!e.hasOwnProperty("isInputsStudy")}}O.contextType=P.PropertyContext;var V=n(29823),A=n(9315);const z=void 0,L=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"];class F extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:e,value:t,disabled:n,hasTooltip:s}=this.props,a=V.Interval.parse(void 0===t?e.defval:t),i=a.isValid()?a.value():t,l=z?z.get().filter(e=>!V.Interval.parse(e).isRange()):[],c=(0,A.mergeResolutions)(L,l);return c.unshift(""),r.createElement(I.Select,{id:e.id,className:p()(f.input,f.resolution,s&&f.hasTooltip),menuClassName:p()(f.dropdownMenu,f.resolution),items:(u=c,u.map(e=>({value:e,content:""===e?(0,o.t)("Chart"):(0,A.getTranslatedResolutionModel)(e).hint}))),value:i,onChange:this._onChange, +disabled:n});var u}}const W=(0,h.bind)(F);var G=n(79946),j=n(87536);class H extends r.PureComponent{render(){return r.createElement(P.PropertyContext.Consumer,null,e=>e?this._getColorInputWithContext(e):null)}_getColorInputWithContext(e){var t;const{input:{id:n},disabled:o,hasTooltip:s}=this.props,{model:a,study:i}=e;if("properties"in i||"tempProperties"in i){const e="properties"in i?i.properties().inputs[n]:null===(t=i.tempProperties)||void 0===t?void 0:t.inputs.child(n);return r.createElement(j.StylePropertyContainer,{model:a,property:e},r.createElement(G.ColorWithThicknessSelect,{className:p()(s&&f.hasTooltip),color:e,disabled:o}))}return null}}class U extends r.PureComponent{render(){const{input:e,disabled:t,onChange:n,tzName:o,hasTooltip:s}=this.props;if((0,a.isStudyInputOptionsInfo)(e))return r.createElement(B,{input:e,disabled:t,onChange:n,hasTooltip:s});switch(e.type){case"integer":return r.createElement(i.IntegerInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"float":case"price":return r.createElement(l.FloatInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"bool":return r.createElement(c.BoolInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"text":return r.createElement(C,{input:e,disabled:t,onChange:n,hasTooltip:s});case"symbol":return r.createElement(y.SymbolInput,{input:e,disabled:t,onChange:n,hasTooltip:s});case"session":return r.createElement(w,{input:e,disabled:t,onChange:n,hasTooltip:s});case"source":return r.createElement(O,{input:e,disabled:t,onChange:n,hasTooltip:s});case"resolution":return r.createElement(W,{input:e,disabled:t,onChange:n,hasTooltip:s});case"time":return null;case"color":return r.createElement(H,{input:e,disabled:t,onChange:n,hasTooltip:s});default:return null}}}var K=n(65376);class X extends r.PureComponent{render(){const{label:e,children:t,input:n,disabled:a,onChange:i,labelAlign:l,grouped:c,tooltip:u,offset:p}=this.props;return r.createElement(b.PropertyTable.Row,null,r.createElement(b.PropertyTable.Cell,{placement:"first",verticalAlign:l,grouped:c,offset:p},void 0!==e?e:(0,o.t)((0,s.ensureDefined)(n).name,{context:"input"})),r.createElement(b.PropertyTable.Cell,{placement:"last",grouped:c},t||r.createElement(U,{input:(0,s.ensureDefined)(n),onChange:i,disabled:a,hasTooltip:Boolean(u)}),u&&r.createElement(K.InputTooltip,{title:u})))}}},22855:(e,t,n)=>{"use strict";n.d(t,{InputsTabContent:()=>V});var o=n(59496),r=n(28353),s=n(617),a=n(35868),i=n(54349),l=n(45631),c=n(88537),u=n(76110),p=n(46446),d=n(65376),h=n(6041);function m(e){const{children:t,input:n,disabled:m,onChange:f,grouped:g,tooltip:v}=e,C=(0,o.useContext)(s.PropertyContext),{values:y,setValue:b}=(0,c.ensureNotNull)(C),E=y[n.id],[S,N]=(0,o.useState)(E?"another-symbol":"main-symbol"),[_,w]=(0,o.useState)(E);return(0,o.useEffect)(()=>{E&&w(E)},[E]),o.createElement(i.SwitchGroup,{name:"symbol-source-"+n.id,values:[S],onChange:function(e){N(e),"main-symbol"===e?(0,p.setter)(b)("",n.id,n.name):"another-symbol"===e&&_&&(0,p.setter)(b,f)(_,n.id,n.name)} +},o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{colSpan:2,placement:"first",grouped:g},o.createElement(l.RadioButton,{value:"main-symbol",className:h.checkbox,disabled:m,label:o.createElement("span",{className:h.label},(0,r.t)("Main chart symbol",{context:"input"}))}))),o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",grouped:g},o.createElement(l.RadioButton,{value:"another-symbol",className:h.checkbox,disabled:m,label:o.createElement("span",{className:h.label},(0,r.t)("Another symbol",{context:"input"}))})),o.createElement(a.PropertyTable.Cell,{placement:"last",grouped:g},t||o.createElement(u.SymbolInput,{input:(0,c.ensureDefined)(n),onChange:f,disabled:m||"main-symbol"===S,hasTooltip:Boolean(v)}),v&&o.createElement(d.InputTooltip,{title:v}))))}var f=n(48100);class g extends o.PureComponent{render(){const{label:e,input:t,tooltip:n}=this.props;return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",colSpan:2},o.createElement(f.BoolInput,{label:e,input:t,hasTooltip:Boolean(n)}),n&&o.createElement(d.InputTooltip,{title:n})))}}var v=n(27547),C=n(97754),y=n.n(C),b=n(2568),E=n(67029),S=n(93379);class N extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:r,onKeyDown:s}=this.props;return o.createElement(b.Textarea,{className:y()(h.input,h.textarea,E.InputClasses.FontSizeMedium),value:void 0===t?e:t,onChange:this._onChange,onBlur:r,onKeyDown:s,disabled:n})}}const _=(0,S.debounced)(N),w=(0,p.bind)(_);var x=n(300);function T(e){const{input:t,label:n,tooltip:r}=e;return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",colSpan:2,className:x.wrap},o.createElement("div",{className:x.labelWrap},o.createElement("span",{className:y()(x.label,r&&x.hasTooltip)},n),r&&o.createElement(d.InputTooltip,{title:r})),o.createElement(w,{input:t})))}function k(e){const{input:t,tooltip:n}=e;return"symbol"===t.type&&t.optional?o.createElement(m,{input:t,tooltip:n}):"bool"===t.type?o.createElement(g,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):"text_area"===t.type?o.createElement(T,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):o.createElement(v.InputRow,{labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:n})}var P=n(86067),I=n(23128);function R(e){const{content:t}=e;let n;return o.createElement(a.PropertyTable.InlineRowContext.Provider,{value:!0},o.createElement("div",{className:I.inlineRow},t.children.map((e,r)=>(void 0!==e.tooltip&&(n=e.tooltip),o.createElement(k,{key:e.id,input:e,tooltip:r===t.children.length-1?n:void 0})))))}var B=n(95087),M=n(16300);function D(e){const{content:t}=e;return(0,B.isGroup)(t)?(0,B.isInputInlines)(t)?o.createElement(R,{content:t +}):o.createElement(o.Fragment,null,o.createElement("div",{className:M.titleWrap},o.createElement(P.GroupTitleSection,{title:(0,r.t)(t.id,{context:"input"}),name:t.id})),t.children.map(e=>(0,B.isGroup)(e)?o.createElement(R,{key:e.id,content:e}):o.createElement(k,{key:e.id,input:e,tooltip:e.tooltip})),o.createElement("div",{className:M.groupFooter})):o.createElement(k,{input:t,tooltip:t.tooltip})}const O={offset:(0,r.t)("Offset")};class V extends o.PureComponent{render(){const{reference:e,inputs:t,property:n,study:r,model:s,onStudyInputChange:i,className:l}=this.props,{offset:c,offsets:u}=n;return o.createElement(a.PropertyTable,{reference:e,className:l},o.createElement(A,{study:r,model:s,property:n.inputs,inputs:t,onStudyInputChange:i}),c&&this._createOffsetSection(c),u&&u.childNames().map(e=>{const t=u.childs()[e];return this._createOffsetSection(t)}))}_createOffsetSection(e){const t=e.childs();return o.createElement(A,{key:"offset_"+t.title.value(),study:this.props.study,model:this.props.model,inputs:[z(t)],property:e})}}function A(e){const{study:t,model:n,inputs:r,property:a,onStudyInputChange:i}=e,l=r,c=(0,o.useMemo)(()=>(0,B.getInputGroups)(l),[l]);return o.createElement(s.PropertyContainer,{property:a,study:t,model:n,onStudyInputChange:i},!1,c.map(e=>o.createElement(D,{key:e.id,content:e})))}function z(e){return{id:"val",name:e.title.value()||O.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},48100:(e,t,n)=>{"use strict";n.d(t,{BoolInputComponent:()=>c,BoolInput:()=>u});var o=n(59496),r=n(15294),s=n(97754),a=n.n(s),i=n(46446),l=n(6041);class c extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:o}=this.props;o(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:s,hasTooltip:i}=this.props,c=void 0===t?e:t;return o.createElement(r.Checkbox,{className:a()(l.checkbox,i&&l.hasTooltip),disabled:n,checked:c,onChange:this._onChange,label:o.createElement("span",{className:l.label},s),labelAlignBaseline:!0})}}const u=(0,i.bind)(c)},93379:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>s});var o=n(59496);const r={blur:0,commit:0,change:1/0};function s(e,t=r){return class extends o.PureComponent{constructor(e){super(e),this._onChange=(e,n,o)=>{const r=t.change;r?(clearTimeout(this._timeout),this.setState({value:e},()=>{r!==1/0&&(this._timeout=setTimeout(()=>this._flush(),r))})):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return o.createElement(e,{...this.props,value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown})}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout(()=>this._flush(),e))):this.setState(e=>{this._flush(e.value)})}_flush(e){ +const{input:{id:t,name:n},onChange:o}=this.props,{prevValue:r,value:s}=this.state;clearTimeout(this._timeout);const a=void 0!==e?e:s;void 0!==a&&a!==r&&o(a,t,n)}}}},48948:(e,t,n)=>{"use strict";n.d(t,{FloatInputComponent:()=>p,FloatInput:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(17571),i=n(46446),l=n(93379),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(a.NumericInput,{...this.props,className:s()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,l.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,i.bind)(p)},26007:(e,t,n)=>{"use strict";n.d(t,{IntegerInputComponent:()=>p,IntegerInput:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(46446),i=n(93379),l=n(17571),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(l.NumericInput,{...this.props,mode:"integer",className:s()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,i.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,a.bind)(p)},17571:(e,t,n)=>{"use strict";n.d(t,{NumericInput:()=>b});var o=n(59496),r=n(88537),s=n(28353),a=n(60521),i=n(49483),l=n(92399),c=n(35726),u=n(62820);var p=n(95505),d=n(64514);const h=(0,s.t)("Number format is invalid."),m=new class{constructor(e=" "){this._divider=e}format(e){const t=(0,c.splitThousands)(e,this._divider);return(0,u.isRtl)()?(0,u.startWithLTR)(t):t}parse(e){const t=(0,u.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}}},f=/^-?[0-9]*$/,g=9e15;class v extends o.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({displayValue:C(this.props,this.props.value),focused:!1}),this.props.errorHandler&&this.props.errorHandler(!1),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.target.value;if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"integer"===this.props.mode&&!f.test(t))return;const n=y(t,this.props.formatter),o=n.res?this._checkValueBoundaries(n.value):{isPassed:!1,msg:void 0},r=n.res&&!o.isPassed,s=n.res&&n.suggest&&!this.state.focused?n.suggest:t,a=r&&o.msg?o.msg:h;this.setState({displayValue:s,errorMsg:a}),n.res&&o.isPassed&&this.props.onValueChange(n.value,"input"),this.props.errorHandler&&this.props.errorHandler(!n.res||r)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,uiStep:o,min:r=n,formatter:s}=this.props,i=y(this.state.displayValue,s),l=null!=o?o:n;let c=n;if(i.res){const o=new a.Big(i.value),s=o.minus(r).mod(n);let u=o.plus(e*l);!s.eq(0)&&t&&(u=u.plus((e>0?0:1)*l).minus(s)),c=u.toNumber()}const{isPassed:u,clampedValue:p}=this._checkValueBoundaries(c);c=u?c:p,this.setState({displayValue:C(this.props,c)}),this.props.onValueChange(c,"step"),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this.state={value:t,displayValue:C(e,t),focused:!1,errorMsg:h}}render(){var e;return o.createElement(l.NumberInputView,{id:this.props.id, +inputMode:null!==(e=this.props.inputMode)&&void 0!==e?e:i.CheckMobile.iOS()?void 0:"numeric",borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,inputClassName:this.props.inputClassName,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,endSlot:this.props.endSlot,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes,title:this.props.title,intent:this.props.intent,highlight:this.props.highlight,highlightRemoveRoundBorder:this.props.highlightRemoveRoundBorder,stretch:this.props.stretch,autoSelectOnFocus:!i.CheckMobile.any()})}getClampedValue(){const{min:e=-1/0,max:t=g}=this.props,n=y(this.state.displayValue,this.props.formatter);return n.res?(0,d.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:o}=e;return t.focused&&!n||t.value===o?null:{value:o,displayValue:C(e,o)}}_checkValueBoundaries(e){var t,n,o,r;const{min:a=-1/0,max:i=g}=this.props,l=function(e,t,n){const o=e>=t,r=e<=n;return{passMin:o,passMax:r,pass:o&&r,clamped:(0,d.clamp)(e,t,n)}}(e,a,i);let c;return l.passMax||(c=null!==(n=null===(t=this.props.boundariesErrorMessages)||void 0===t?void 0:t.greaterThanMax)&&void 0!==n?n:(0,s.t)("Specified value is more than the instrument maximum of {max}.",{replace:{max:String(i)}})),l.passMin||(c=null!==(r=null===(o=this.props.boundariesErrorMessages)||void 0===o?void 0:o.lessThanMin)&&void 0!==r?r:(0,s.t)("Specified value is less than the instrument minimum of {min}.",{replace:{min:String(a)}})),{isPassed:l.pass,msg:c,clampedValue:l.clamped}}}function C(e,t){const{useFormatter:n=!0,formatter:o,mode:r}=e;return n&&"integer"!==r?function(e,t=m){return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return p.NumericFormatter.formatNoE(e)}(t)}function y(e,t=m){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}class b extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{input:{id:n,name:o},onChange:r,onBlur:s}=this.props;r(e,n,o),"step"===t&&s&&s()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=(0,r.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:r},value:s,disabled:a,onKeyDown:i,className:l,mode:c,stretch:u}=this.props;return o.createElement(v,{className:l,value:Number(void 0===s?e:s),min:t,max:n,step:r,mode:c,onBlur:this._onBlur, +onValueChange:this._onChange,onKeyDown:i,disabled:a,containerReference:this._handleContainerRef,fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},76110:(e,t,n)=>{"use strict";n.d(t,{getSymbolName:()=>c,SymbolInput:()=>u});var o=n(59496),r=n(88537),s=n(617),a=n(46446),i=n(72280),l=n(48897);function c(e,t){const n=(0,i.createAdapter)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}const u=(0,a.bind)((function(e){const t=(0,o.useContext)(s.PropertyContext),{study:n}=(0,r.ensureNotNull)(t),{input:{defval:a},value:i}=e;return o.createElement(l.SymbolInputsButton,{...e,value:c(i||a||"",n),study:n})}))},79946:(e,t,n)=>{"use strict";n.d(t,{ColorWithThicknessSelect:()=>g});var o=n(59496),r=n(24377),s=n(28353),a=n(24980),i=n(68906),l=n(87536),c=n(58593),u=n(463),p=n(51768);const d=new a.TranslatedString("change thickness",(0,s.t)("change thickness")),h=new a.TranslatedString("change color",(0,s.t)("change color")),m=new a.TranslatedString("change opacity",(0,s.t)("change opacity")),f=[1,2,3,4];class g extends o.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null,this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);if(t)return(0,i.isHexColor)(t)?(0,i.transparencyToAlpha)(this._getTransparencyValue()):(0,r.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);return t?(0,i.isHexColor)(t)?t:(0,r.rgbToHexString)((0,r.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,d)},this._onColorChange=e=>{const{color:t,isPaletteColor:n}=this.props,o=(0,u.getPropertyValue)(t);let s=0;o&&(s=(0,i.isHexColor)(o)?this._getTransparencyValue():(0,i.alphaToTransparency)((0,r.parseRgba)(o)[3])),this._setProperty(t,(0,i.generateColor)(String(e),s,!0),h),this._trackEventLabel="Plot color > "+(n?"Palette":"Single")},this._onOpacityChange=e=>{const{color:t}=this.props,n=(0,u.getPropertyValue)(t);this._setProperty(t,(0,i.generateColor)(n,(0,i.alphaToTransparency)(e),!0),m)},this._onPopupClose=()=>{this._trackEventLabel&&((0,p.trackEvent)("GUI","Study settings",this._trackEventLabel),this._trackEventLabel=null)}}componentWillUnmount(){this._onPopupClose()}render(){const{selectOpacity:e=!0,disabled:t,className:n}=this.props;return o.createElement(c.ColorSelect,{className:n,disabled:t,color:this._getColorValueInHex(),selectOpacity:e,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:f,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})}_getThicknessValue(){const{thickness:e}=this.props;return e?(0,u.getPropertyValue)(e):void 0}_setProperty(e,t,n){const{setValue:o}=this.context;(0,u.setPropertyValue)(e,e=>o(e,t,n))}}g.contextType=l.StylePropertyContext},35868:(e,t,n)=>{"use strict";n.d(t,{PropertyTable:()=>l}) +;var o=n(59496),r=n(97754),s=n(90186),a=n(46828);const i=o.createContext(!1);class l extends o.PureComponent{render(){return o.createElement("div",{ref:this.props.reference,className:r(a.content,this.props.className)},this.props.children)}}l.InlineRowContext=i,l.Row=function(e){const{children:t}=e;return(0,o.useContext)(i)?o.createElement("span",{className:a.inlineRow},t):o.createElement(o.Fragment,null,t)},l.Cell=function(e){const t=(0,o.useContext)(i),n=r(a.cell,e.offset&&a.offset,e.grouped&&a.grouped,t&&a.inlineCell,"top"===e.verticalAlign&&a.top,"topCenter"===e.verticalAlign&&a.topCenter,"adaptive"===e.verticalAlign&&a.adaptive,e.checkableTitle&&a.checkableTitle,2===e.colSpan&&a.fill,"first"===e.placement&&2!==e.colSpan&&a.first,"last"===e.placement&&2!==e.colSpan&&a.last),l=(0,s.filterDataProps)(e);return o.createElement("div",{...l,className:n},o.createElement("div",{className:r(a.inner,e.className)},e.children))},l.Separator=function(e){return o.createElement(l.Row,null,o.createElement("div",{className:r(a.cell,a.separator,a.fill)}))},l.GroupSeparator=function(e){const t=e.size||0;return o.createElement(l.Row,null,o.createElement("div",{className:r(a.cell,a.groupSeparator,a.fill,1===t&&a.big)}))}},463:(e,t,n)=>{"use strict";function o(e){return Array.isArray(e)?e[0].value():e.value()}function r(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}n.d(t,{getPropertyValue:()=>o,setPropertyValue:()=>r})},50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>d});var o=n(59496),r=n(97754),s=n.n(r),a=n(97737),i=n(88537),l=n(28353),c=n(68335),u=n(85457),p=n(91131);class d extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,c.hashFromEvent)(e)&&o&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:r,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:l,submitOnEnterKey:c,...p}=this.props;return o.createElement(u.AdaptivePopupDialog,{...p,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:r,submitButtonText:i,submitButtonDisabled:c,onSubmit:u,cancelButtonText:d,showCancelButton:h=!0,submitButtonClassName:m,cancelButtonClassName:f,buttonsWrapperClassName:g}=this.props;return o.createElement(o.Fragment,null,t(e),o.createElement("div",{className:p.footer},n&&n(e.isSmallWidth),o.createElement("div",{className:s()(p.buttons,g)},r,h&&o.createElement(a.Button,{className:f,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=d?d:(0,l.t)("Cancel")),o.createElement("span",{ +className:p.submitButton},o.createElement(a.Button,{className:m,disabled:c,name:"submit",onClick:u,"data-name":"submit-button"},null!=i?i:(0,l.t)("Ok"))))))}}}d.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},58593:(e,t,n)=>{"use strict";n.d(t,{ColorSelect:()=>w});var o=n(59496),r=n(97754),s=n.n(r),a=n(88537),i=n(68335),l=n(50628),c=n(29202),u=n(27797),p=n(64706);function d(e){const{button:t,children:n,className:r,onPopupClose:s,...d}=e,[h,m]=(0,o.useState)(!1),[f,g]=(0,o.useState)(!1),[v,C]=(0,c.useFocus)(),y=(0,o.useRef)(null);return o.createElement("div",{className:r},o.createElement("div",{tabIndex:e.disabled?void 0:-1,ref:y,onClick:b,onFocus:C.onFocus,onBlur:C.onBlur,onKeyDown:E},"function"==typeof t?t(f,v):t),o.createElement(l.PopupMenu,{isOpened:f,onClose:S,position:function(){const e=(0,a.ensureNotNull)(y.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:y.current,onKeyDown:E},o.createElement(p.MenuContext.Consumer,null,e=>o.createElement(u.ColorPicker,{...d,onToggleCustom:m,menu:e})),!h&&n));function b(){e.disabled||(g(e=>!e),m(!1))}function E(e){switch((0,i.hashFromEvent)(e)){case 27:f&&(e.preventDefault(),S())}}function S(){b(),(0,a.ensureNotNull)(y.current).focus(),s&&s()}}var h=n(56512),m=n(68906),f=n(6914),g=n(28353),v=n(54349),C=n(74588);const y=(0,v.makeSwitchGroupItem)(class extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const{name:e,checked:t,value:n}=this.props,s=r(C.thicknessItem,{[C.checked]:t}),a=r(C.bar,{[C.checked]:t}),i={borderTopWidth:parseInt(n)};return o.createElement("div",{className:s},o.createElement("input",{type:"radio",className:C.radio,name:e,value:n,onChange:this._onChange,checked:t}),o.createElement("div",{className:a,style:i}," "))}});function b(e){const{name:t,values:n,selectedValues:r,onChange:s}=e,a=n.map((e,t)=>o.createElement(y,{key:t,value:e.toString()})),i=r.map(e=>e.toString());return o.createElement("div",{className:C.wrap},o.createElement(v.SwitchGroup,{name:t,onChange:e=>{s(parseInt(e))},values:i},a))}var E=n(83421);const S=(0,g.t)("Thickness");function N(e){const{value:t,items:n,onChange:r}=e;return o.createElement("div",{className:E.thicknessContainer},o.createElement("div",{className:E.thicknessTitle},S),o.createElement(b,{name:"color_picker_thickness_select",onChange:r,values:n,selectedValues:"mixed"===t?[]:[t]}))}var _=n(14348);function w(e){const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:r,color:a,disabled:i,opacity:l=1,onColorChange:c,onOpacityChange:u,onThicknessChange:p,thicknessItems:m,onPopupClose:f}=e,[g,v,C]=(0,h.useCustomColors)();return o.createElement(d,{className:t,disabled:i,color:"mixed"!==a?a:null,selectOpacity:n,opacity:l,selectCustom:!0,customColors:g,onColorChange:c,onOpacityChange:a?u:void 0,onAddColor:v,onRemoveCustomColor:C,button:function(e,t){const n=e||t,c=n?"primary":"default";return o.createElement("div",{ +className:s()(_.colorPickerWrap,_["intent-"+c],_["border-thin"],_["size-medium"],n&&_.highlight,n&&_.focused,i&&_.disabled),"data-role":"button","data-name":r?"color-with-thickness-select":"color-select"},o.createElement("div",{className:s()(_.colorPicker,i&&_.disabled)},a&&"mixed"!==a?function(){const e=x(a,l),t=l>=.95&&T(a);return o.createElement("div",{className:_.opacitySwatch},o.createElement("div",{style:{backgroundColor:e},className:s()(_.swatch,t&&_.white)}))}():o.createElement("div",{className:_.placeholderContainer},o.createElement("div",{className:"mixed"===a?_.mixedColor:_.placeholder})),r&&function(){const e=a&&"mixed"!==a?x(a,l):void 0;if("mixed"===r)return o.createElement("div",{className:_.multiWidth},o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}));return o.createElement("span",{className:s()(_.colorLine,T(a)&&_.white),style:{height:r,backgroundColor:e}})}()),n&&o.createElement("span",{className:_.shadow}))},onPopupClose:f},r&&m&&o.createElement(N,{value:r,items:m,onChange:function(e){p&&p(e)}}))}function x(e,t){return e?(0,m.generateColor)(e,(0,m.alphaToTransparency)(t)):"#000000"}function T(e){return!!e&&e.toLowerCase()===f.white}},48897:(e,t,n)=>{"use strict";n.d(t,{SymbolInputsButton:()=>w});var o=n(59496),r=n(97754),s=n.n(r),a=n(28353),i=n(88537),l=n(50655),c=n(95711),u=n(67337),p=n(76110),d=n(89453),h=n(1861),m=n(9745),f=n(36826),g=n(55914);function v(e){const{value:t,onClick:n,className:s,startSlot:a,disabled:i=!1}=e;return o.createElement("div",{className:r(g.wrap,i&&g.disabled,s),onClick:n,"data-name":"edit-button"},o.createElement("div",{className:r(g.text,"apply-overflow-tooltip")},void 0!==a&&a,o.createElement("span",null,t)),o.createElement(m.Icon,{icon:f,className:g.icon}))}var C=n(31356),y=n(78260),b=n(7785),E=n(15983),S=n(82708),N=n(83998);function _(e){const{symbol:t,onSymbolChanged:n,disabled:r,className:i}=e,[p,m]=(0,o.useState)(t),f=(0,o.useContext)(l.SlotContext),g=(0,o.useContext)(c.PopupContext);return o.createElement(v,{value:p,onClick:function(){const e=function(e){const t=(0,b.tokenize)(e);return(0,E.isSpread)(t)}(p)?p:(0,S.safeShortName)(p),t=(0,d.getSymbolSearchCompleteOverrideFunction)();(0,h.showSymbolSearchItemsDialog)({onSearchComplete:e=>{t(e[0].symbol).then(e=>{n(e),m(e)})},dialogTitle:(0,a.t)("Change symbol"),defaultValue:e,manager:f,onClose:()=>{g&&g.focus()},showSpreadActions:u.enabled("show_spread_operators")&&u.enabled("studies_symbol_search_spread_operators")})},disabled:r,className:s()(i,u.enabled("uppercase_instrument_names")&&N.uppercase)})}function w(e){if("definition"in e){const{propType:t,properties:n,id:r,title:s=""}=e.definition,a=n[t],l=a.value()||"",c=e=>{a.setValue(e)};return o.createElement(C.CommonSection,{id:r,title:s},o.createElement(y.CellWrap,null,o.createElement(_,{symbol:(0,i.ensureDefined)(l),onSymbolChanged:c})))}{ +const{study:t,value:n,input:{id:r,name:a},onChange:l,disabled:c,hasTooltip:u}=e,d=e=>{const n=(0,p.getSymbolName)(e,t);l(n,r,a)};return o.createElement(_,{symbol:(0,i.ensureDefined)(n),onSymbolChanged:d,disabled:c,className:s()(u&&N.hasTooltip)})}}},72280:(e,t,n)=>{"use strict";n.d(t,{createAdapter:()=>s});var o=n(14291),r=n(81851);function s(e){if((0,o.isLineTool)(e))return{isPine:()=>!1,isStandardPine:()=>!1,canOverrideMinTick:()=>!1,resolvedSymbolInfoBySymbol:()=>{throw new TypeError("Only study is supported.")},symbolsResolved:()=>{throw new TypeError("Only study is supported.")},parentSource:()=>{throw new TypeError("Only study is supported.")},getAllChildren:()=>[],sourceId:()=>{throw new TypeError("Only study is supported.")}};if((0,r.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},45560:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>s});var o=n(59496),r=n(71953);const s=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[s,a]=(0,o.useState)(t?t.value():n);(0,o.useEffect)(()=>{if(t){const n={};return a(t.value()),t.subscribe(n,t=>{const n=t.value();e.handler&&e.handler(n),a(n)}),()=>t.unsubscribeAll(n)}return()=>{}},[t]);return[s,e=>{if(void 0!==t){const n=t.value();r.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},78260:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>i});var o=n(59496),r=n(97754),s=n.n(r),a=n(26527);function i(e){return o.createElement("div",{className:s()(a.wrap,e.className)},e.children)}},53424:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(59496),r=n(15294),s=n(45560);function a(e){const{property:t,...n}=e,[a,i]=(0,s.useDefinitionProperty)({property:t}),l="mixed"===a;return o.createElement(r.Checkbox,{...n,name:"toggle-enabled",checked:l||a,indeterminate:l,onChange:function(){i("mixed"===a||!a)}})}var i=n(78260),l=n(27345);function c(e){const{property:t,disabled:n,title:r,className:s,name:c}=e,u=o.createElement("span",{className:l.title},r);return o.createElement(i.CellWrap,{className:s},t?o.createElement(a,{name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},31356:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>a});var o=n(59496),r=n(35868),s=n(53424);function a(e){const{id:t,offset:n,disabled:a,checked:i,title:l,children:c}=e;return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(s.CheckableTitle,{name:"is-enabled-"+t,title:l,disabled:a,property:i})),Boolean(c)&&o.createElement(r.PropertyTable.Cell,{placement:"last","data-section-name":t},c))}},86067:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>i});var o=n(59496),r=n(35868),s=n(53424),a=n(51842);function i(e){return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{className:a.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2, +"data-section-name":e.name,checkableTitle:!0},o.createElement(s.CheckableTitle,{title:e.title,name:"is-enabled-"+e.name,className:a.title})))}},71953:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(98125).getLogger)("Platform.GUI.PropertyDefinitionTrace")},27365:(e,t,n)=>{"use strict";n.d(t,{getTimezoneName:()=>o});n(10480);function o(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},27797:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>B});var o=n(59496),r=n(97754),s=n.n(r),a=n(28353),i=n(24377),l=n(88537),c=n(49483),u=n(50628),p=n(16396);const d=o.createContext(void 0);var h=n(6914),m=n(78679),f=n(24590);function g(e){const{index:t,color:n,selected:s,onSelect:i}=e,[g,v]=(0,o.useState)(!1),C=(0,o.useContext)(d),y=(0,o.useRef)(null),b=Boolean(C)&&!c.CheckMobile.any();return o.createElement(o.Fragment,null,o.createElement("div",{ref:y,style:n?{color:n}:void 0,className:r(f.swatch,g&&f.hover,s&&f.selected,!n&&f.empty,String(n).toLowerCase()===h.white&&f.white),onClick:function(){i(n)},onContextMenu:b?E:void 0}),b&&o.createElement(u.PopupMenu,{isOpened:g,onClose:E,position:function(){const e=(0,l.ensureNotNull)(y.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:E},o.createElement(p.PopupMenuItem,{className:f.contextItem,label:(0,a.t)("Remove color"),icon:m,onClick:function(){E(),(0,l.ensureDefined)(C)(t)},dontClosePopup:!0})));function E(){v(!g)}}class v extends o.PureComponent{constructor(){super(...arguments),this._onSelect=e=>{const{onSelect:t}=this.props;t&&t(e)}}render(){const{colors:e,color:t,children:n}=this.props;if(!e)return null;const r=t?(0,i.parseRgb)(String(t)):void 0;return o.createElement("div",{className:f.swatches},e.map((e,t)=>o.createElement(g,{key:String(e)+t,index:t,color:e,selected:r&&(0,i.areEqualRgb)(r,(0,i.parseRgb)(String(e))),onSelect:this._onSelect})),n)}}var C=n(54368),y=n(97737);function b(e){const t="Invalid RGB color: "+e;if(null===e)throw new Error(t);const n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);const[,o,r,s]=n;if(!o||!r||!s)throw new Error(t);const a=parseInt(o,16)/255,i=parseInt(r,16)/255,l=parseInt(s,16)/255,c=Math.max(a,i,l),u=Math.min(a,i,l);let p;const d=c,h=c-u,m=0===c?0:h/c;if(c===u)p=0;else{switch(c){case a:p=(i-l)/h+(i{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:n}=this.props;if(!n)return;const o=(0,l.ensureNotNull)(this._container).getBoundingClientRect(),r=e.clientX-o.left,s=e.clientY-o.top;let a=r/o.width;a<0?a=0:a>1&&(a=1);let i=1-s/o.height;i<0?i=0:i>1&&(i=1),n({h:t,s:a,v:i})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{ +window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t,s:n,v:r}}=this.props,a=`hsl(${360*t}, 100%, 50%)`;return o.createElement("div",{className:s()(S.saturation,e),style:{backgroundColor:a},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:S.pointer,style:{left:100*n+"%",top:100*(1-r)+"%"}}))}}var _=n(24429);class w extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:n},onChange:o}=this.props;if(!o)return;const r=(0,l.ensureNotNull)(this._container).getBoundingClientRect();let s=(e.clientY-r.top)/r.height;s<0?s=0:s>1&&(s=1),o({h:s,s:t,v:n})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return o.createElement("div",{className:s()(_.hue,e)},o.createElement("div",{className:_.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:_.pointer,style:{top:100*t+"%"}})))}}var x=n(99565);const T=(0,a.t)("Add",{context:"Color Picker"});class k extends o.PureComponent{constructor(e){super(e),this._handleHSV=e=>{const t=function(e){const{h:t,s:n,v:o}=e;let r,s,a;const i=Math.floor(6*t),l=6*t-i,c=o*(1-n),u=o*(1-l*n),p=o*(1-(1-l)*n);switch(i%6){case 0:r=o,s=p,a=c;break;case 1:r=u,s=o,a=c;break;case 2:r=c,s=o,a=p;break;case 3:r=c,s=u,a=o;break;case 4:r=p,s=c,a=o;break;case 5:r=o,s=c,a=u;break;default:r=0,s=0,a=0}return"#"+[255*r,255*s,255*a].map(e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(e)||"#000000";this.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=e.currentTarget.value;try{const e=b(t),n="#"+t;this.setState({color:n,inputColor:t,hsv:e}),this.props.onSelect(n)}catch(e){this.setState({inputColor:t})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||"#000000";this.state={color:t,inputColor:t.replace(/^#/,""),hsv:b(t)}}render(){const{color:e,hsv:t,inputColor:n}=this.state;return o.createElement("div",{className:x.container},o.createElement("div",{className:x.form},o.createElement("div",{className:x.swatch,style:{backgroundColor:e}}),o.createElement("div",{className:x.inputWrap},o.createElement("span",{className:x.inputHash},"#"),o.createElement("input",{ +type:"text",className:x.input,value:n,onChange:this._handleInput})),o.createElement("div",{className:x.buttonWrap},o.createElement(y.Button,{size:"s",onClick:this._handleAddColor},T))),o.createElement("div",{className:x.hueSaturationWrap},o.createElement(N,{className:x.saturation,hsv:t,onChange:this._handleHSV}),o.createElement(w,{className:x.hue,hsv:t,onChange:this._handleHSV})))}}var P=n(10667);const I=(0,a.t)("Add custom color",{context:"Color Picker"}),R=(0,a.t)("Opacity",{context:"Color Picker"});class B extends o.PureComponent{constructor(e){super(e),this._handleAddColor=e=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:t}=this.props;t&&t(e)},this._handleSelectColor=e=>{const{onColorChange:t}=this.props,{isCustom:n}=this.state;t&&t(e,n)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=e=>{const{onOpacityChange:t}=this.props;t&&t(e)},this.state={isCustom:!1}}componentDidUpdate(e,t){e.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:e,opacity:t,selectCustom:n,selectOpacity:r,customColors:a,onRemoveCustomColor:i}=this.props,{isCustom:l}=this.state,c="number"==typeof t?t:1;return l?o.createElement(k,{color:e,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):o.createElement("div",{className:P.container},o.createElement(v,{colors:h.basic,color:e,onSelect:this._handleSelectColor}),o.createElement(v,{colors:h.extended,color:e,onSelect:this._handleSelectColor}),o.createElement("div",{className:P.separator}),o.createElement(d.Provider,{value:i},o.createElement(v,{colors:a,color:e,onSelect:this._handleSelectColor},n&&o.createElement("div",{className:s()(P.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:I}))),r&&o.createElement(o.Fragment,null,o.createElement("div",{className:P.sectionTitle},R),o.createElement(C.Opacity,{color:e,opacity:c,onChange:this._handleOpacity})))}_onToggleCustom(e){const{onToggleCustom:t}=this.props;t&&t(e)}}},54368:(e,t,n)=>{"use strict";n.d(t,{Opacity:()=>l});var o=n(59496),r=n(97754),s=n(88537),a=n(64514),i=n(15381);class l extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const t=(0,s.ensureNotNull)(this._container),n=(0,s.ensureNotNull)(this._pointer),o=t.getBoundingClientRect(),r=n.offsetWidth,i=e.clientX-r/2-o.left,l=(0,a.clamp)(i/(o.width-r),0,1);this.setState({inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null}))},this._onSliderClick=e=>{this._handlePosition(e.nativeEvent),this._dragSubscribe()},this._mouseUp=e=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(e)},this._mouseMove=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{ +this.setState({isPointerDragged:!0}),this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=e=>{const t=e.currentTarget.value,n=Number(t)/100;this.setState({inputOpacity:t}),Number.isNaN(n)||n>1||this.props.onChange(n)},this.state={inputOpacity:Math.round(100*e.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:e,opacity:t,hideInput:n}=this.props,{inputOpacity:s,isPointerDragged:a}=this.state,l={color:e||void 0};return o.createElement("div",{className:i.opacity},o.createElement("div",{className:i.opacitySlider,style:l,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:i.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${e})`}}),o.createElement("div",{className:i.opacityPointerWrap},o.createElement("div",{className:r(i.pointer,a&&i.dragged),style:{left:100*t+"%"},ref:this._refPointer}))),!n&&o.createElement("div",{className:i.opacityInputWrap},o.createElement("input",{type:"text",className:i.opacityInput,value:s,onChange:this._handleInput}),o.createElement("span",{className:i.opacityInputPercent},"%")))}_dragSubscribe(){const e=(0,s.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,s.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}}},6914:(e,t,n)=>{"use strict";n.d(t,{white:()=>r,basic:()=>i,extended:()=>c});var o=n(45112);const r=o.colorsPalette["color-white"],s=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],a=[200,300,400,500,600,700,800,900].map(e=>"color-cold-gray-"+e);a.unshift("color-white"),a.push("color-black"),s.forEach(e=>{a.push(`color-${e}-500`)});const i=a.map(e=>o.colorsPalette[e]),l=[];[100,200,300,400,700,900].forEach(e=>{s.forEach(t=>{l.push(`color-${t}-${e}`)})});const c=l.map(e=>o.colorsPalette[e])},56512:(e,t,n)=>{"use strict";n.d(t,{useCustomColors:()=>l});var o=n(59496),r=n(56840),s=n(76422);function a(e,t){(0,o.useEffect)(()=>(s.subscribe(e,t,null),()=>{s.unsubscribe(e,t,null)}),[e,t])}var i=n(24377);function l(){const[e,t]=(0,o.useState)((0,r.getJSON)("pickerCustomColors",[]));a("add_new_custom_color",n=>t(c(n,e))),a("remove_custom_color",n=>t(u(n,e)));const n=(0,o.useCallback)(t=>{const n=t?(0,i.parseRgb)(t):null;e.some(e=>null!==e&&null!==n&&(0,i.areEqualRgb)((0,i.parseRgb)(e),n))||(s.emit("add_new_custom_color",t),(0,r.setJSON)("pickerCustomColors",c(t,e)))},[e]),l=(0,o.useCallback)(t=>{(t>=0||t29&&n.shift(),n}function u(e,t){return t.filter((t,n)=>e!==n)}},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>O});var o=n(49483),r=n(59496),s=n(97754),a=n.n(s),i=n(88537),l=n(47201),c=n(78274),u=n(31261),p=n(9745),d=n(24451),h=n(35692);function m(e){return r.createElement(p.Icon,{className:d.icon,icon:h})}var f=n(29202),g=n(88722);var v=n(58095),C=n(64514);const y={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function b(e,t,n){const o=[],r=n;let s=0,a=0;const i=e.length,l=r.length;let c=-1,u=0;const p=[],d=i-1,h=[];let m;for(;s{const[n,o]=b(e,!1,t);c(n),g(o)},[t,e]),(0,r.useLayoutEffect)(()=>{const e=(0,i.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),h(!1)),p(S(e))},[d]),[t,f,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),o=t.value,[r,s]=b(e,!1,o);c(r),f.current=r;const a=g(s),d=function(e,t,n,o,r,s){if(e!==t){const a=t.length,i=e.length;let l=0,c=0,u=0,p=0,d=0;for(d=o;d=0&&r[d];d--)l++;for(d=o-1;d>=0;d--)r[d]&&u++;for(d=n-1;d>=0;d--)s[d]&&p++;if(o>i)o=10*a;else if(n>=o&&n!==i){if(s[o]){const e=o;o-=p-u,r[o-=l]&&(o=e)}}else o>n&&(o+=u-p,o+=c)}return o}(l,r,u,S(t),s,a);p(d),h(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);p(S(e))},maxLength:o}];function g(e){const t=m.current;return m.current=e,t}}function S(e){return e.selectionStart||0}function N(e){const{value:t,mask:n,onChange:o,...s}=e,a=(0,r.useRef)(null),[i,l,c]=E(n,t,a);return(0,r.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=a.current)},[e.reference]),r.createElement(u.InputControl,{...s,maxLength:c.maxLength,value:i,autoComplete:"off",reference:function(e){a.current=e},onChange:function(){c.onChange(),o(l.current)},onSelect:c.onSelect})}var _=n(68335),w=n(50628),x=n(16396),T=n(55257);const k=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[o,r]=[M(t.toString()),M(n.toString())],s=`${o}:${r}`,a=R(s)?s:B(s);e.push(a)}return e})();function P(e){let t=!1;const n=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)(null),[u,p]=(0,f.useFocus)(),[d,h]=(0,r.useState)(e.value),g=I(d),y=R(g)?g:B(g),[b,E]=(0, +r.useState)(y),S=u||F().some(e=>null!==e&&e.contains(document.activeElement));(0,r.useLayoutEffect)(()=>h(e.value),[e.value]),(0,r.useLayoutEffect)(()=>E(y),[d,S]),(0,r.useEffect)(()=>W(b===y?"auto":"smooth"),[b]);const P=(0,T.lowerbound)(k,y,(e,t)=>eo&&r>t){const n=(0,C.clamp)(r,0,o),a=(0,C.clamp)(r,0,t);r=Math.max(n,a),s=n>a?e.top-n:e.bottom}else r>t&&(s=e.top-r);return{x:e.left,y:s,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:s},M.map(e=>r.createElement(x.PopupMenuItem,{key:e,label:e,isActive:e===y,isHovered:e===b,reference:e===b?V:void 0,onClick:A,onClickArg:e}))));function O(n){const o=I(n),r=R(o)?o:B(o);h(r),t||(t=!0,e.onChange(r))}function V(e){l.current=e}function A(e){O((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(s.current).blur()}function z(e){return u&&(null!==L(document.activeElement)||null!==L(e.relatedTarget))}function L(e){return e instanceof Node&&F().find(t=>null!==t&&t.contains(e))||null}function F(){return[s.current,o.current]}function W(e="auto"){if(null!==l.current){const t=(0,i.ensureNotNull)(s.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom{d.current&&o&&(d.current.defaultValue=o)},[]),(0,r.useLayoutEffect)(()=>{d.current&&o&&(d.current.value=o)},[o]),r.createElement("div",{className:a()(g.wrap,s)},r.createElement(u.InputControl,{...p,type:"text",endSlot:r.createElement(c.EndSlot,{icon:!0},r.createElement(m,null)),value:o,highlight:h,intent:h?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),r.createElement("input",{...v,disabled:e.disabled,className:g.input,type:"time",onBlur:C,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:P},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(59496),r=n(59142),s=n(88537),a=n(49483);function i(e){const{reference:t,children:n,...s}=e,i=(0,o.useRef)(null),c=(0,o.useCallback)(e=>{t&&(t.current=e),a.CheckMobile.iOS()&&(null!==i.current&&(0,r.enableBodyScroll)(i.current),i.current=e,null!==i.current&&(0,r.disableBodyScroll)(i.current,{allowTouchMove:l(i)}))},[t]);return o.createElement("div",{ref:c,...s},n)}function l(e){return t=>{const n=(0,s.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},36826:e=>{e.exports=''},60495:e=>{e.exports=''},35692:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/14a6b7583a58202c653c5ddbb6c9dca5.jpeg b/charting_library/bundles/14a6b7583a58202c653c5ddbb6c9dca5.jpeg new file mode 100644 index 00000000..4fdbe113 Binary files /dev/null and b/charting_library/bundles/14a6b7583a58202c653c5ddbb6c9dca5.jpeg differ diff --git a/charting_library/bundles/14f7aa04dc24cf83929c244ccad5273d.svg b/charting_library/bundles/14f7aa04dc24cf83929c244ccad5273d.svg new file mode 100644 index 00000000..00b47878 --- /dev/null +++ b/charting_library/bundles/14f7aa04dc24cf83929c244ccad5273d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1536.70b2854033fe86ff8887.js b/charting_library/bundles/1536.70b2854033fe86ff8887.js new file mode 100644 index 00000000..2d95cab9 --- /dev/null +++ b/charting_library/bundles/1536.70b2854033fe86ff8887.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1536],{12525:()=>{},41235:()=>{},4502:()=>{},42845:(t,s,e)=>{"use strict";e.d(s,{default:()=>h});var i=e(20497),o=(e(41235),e(23127)),n=e(13398);const a=e(98125).getLogger("Ui.TvControlCheckbox"),l={labelWrapper:'{{#hasLabel}}{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}',checkbox:'',checkboxClass:"{{ customClass }}__input",box:''+e(4135)+"",ripple:''};class d{constructor({customClass:t="tv-control-checkbox",$checkbox:s,tag:e,id:i,name:n,checked:l,disabled:d,labelLeft:h,labelRight:c,labelAddClass:r,boxAddClass:u}){this.$el=null,void 0===e&&(e=h||c?"span":"label");const p=s instanceof o&&!!s.length;if(p){if(!s.is("input[type=checkbox]"))return void a.logError("`$checkbox` need to be input[type=checkbox]");if(s.hasClass("i-inited"))return;this._setInputId(s,i),this._setInputClass(s,t),this._setInputName(s,n),this._setInputChecked(s,l),this._setInputDisabled(s,d),l=!!s.prop("checked"),d=!!s.attr("disabled")}this.$el=this.render({$checkbox:s,hasCheckbox:p,customClass:t,tag:e,id:i,name:n,checked:l,disabled:d,labelLeft:h,labelRight:c,hasLabel:h||c,labelAddClass:r,boxAddClass:u}),this.$checkbox=p?s:this.$el.find("input[type=checkbox]")}_setInputId(t,s){void 0!==s&&t.attr("id",s)}_setInputClass(t,s){const e=n.render(l.checkboxClass,{customClass:s});t.addClass(e)}_setInputName(t,s){void 0!==s&&t.attr("name",s)}_setInputChecked(t,s){void 0!==s&&t.prop("checked",!!s)}_setInputDisabled(t,s){void 0!==s&&(s?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}render(t){const s=t.$checkbox,e=o(n.render(l.labelWrapper,t,l));if(t.hasCheckbox){e.insertBefore(s);e.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(s.detach()),s.addClass("i-inited")}return e}set checked(t){this._setInputChecked(this.$checkbox,!!t)}get checked(){return!!this.$checkbox.prop("checked")}}o.fn.tvControlCheckbox=(0,i.createTvBlockWithInstance)("tv-control-checkbox",(function(t,s={}){return new d(TradingView.mergeObj(s,{$checkbox:t}))}));const h=d},51536:(t,s,e)=>{"use strict";e.d(s,{TVDialogAbstract:()=>m});var i=e(32563),o=e(68587),n=(e(78754),e(42845)),a=(e(4502),e(12525),e(52014), +e(85459)),l=e.n(a),d=e(88216),h=e(23127),c=e(13398),r=e(25977);let u,p=0,b=[];const g=h(document),f={closeOnEsc:!0,closeButton:!0,focusFirstControl:!0,closeOnOutsideClick:!0,closeButtonAddClass:"",focusClass:"i-focused",template:'
',errorTemplate:'
{{{ error }}}
',titleTemplate:'
{{{ title }}}
',contentWrapTemplate:'
',actionsWrapTemplate:'
',closeButtonTemplate:`
${e(49370)}
`,helpButtonTemplate:'',helpActionsMod:"tv-dialog__section--actions_with-help"},v={default:"tv-button tv-button--default",primary:"tv-button tv-button--primary",success:"tv-button tv-button--success",danger:"tv-button tv-button--danger",warning:"tv-button tv-button--warning",link:"tv-button tv-button--link",checkbox:"tv-control-checkbox tv-control-checkbox--in-actions","default-ghost":"tv-button tv-button--default_ghost","primary-ghost":"tv-button tv-button--primary_ghost","success-ghost":"tv-button tv-button--success_ghost","danger-ghost":"tv-button tv-button--danger_ghost","warning-ghost":"tv-button tv-button--warning_ghost"},_={_default:'
{{ text }}
',"submit-primary":'',"submit-success":''};class m extends(l()){constructor(t={}){if(super(),this.manager=t.manager||(0,d.getRootOverlapManager)(t.ownerDocument),this._id=p++,this.loadingActions=[],this.disabledActions=[],this.firstFocusControl=null,this.options={...f,...t},this.$el=h(c.render(this.options.template,{title:this.options.title,closeButton:this.options.closeButton})),this.$el.addClass("js-dialog"),this.el=this.$el[0],this.options.dataset)for(const[t,s]of Object.entries(this.options.dataset))"string"==typeof s&&this.el.setAttribute("data-"+t,s);for(this.options.addClass&&this.$el.addClass(this.options.addClass),this.options.width&&this.$el.css({width:"100%","max-width":this.options.width}),this.on("beforeOpen",()=>{this.$wrap=this.manager.ensureWindow(this._id)}),this.on("afterClose",()=>{this.$wrap=null,this.manager.unregisterWindow(this._id)}),this.options.title&&(this.$title=h(c.render(this.options.titleTemplate,{title:this.options.title})).appendTo(this.$el)),this.$content=h(this.options.contentWrapTemplate).appendTo(this.$el),this.$contentIn=this.$content;this.$contentIn.length;)this.$contentIn=this.$contentIn.children();if(this.$contentIn=this.$contentIn.end(), +this.options.content&&this.renderContent(this.options.content),(this.options.actions||this.options.help)&&(this.$content.hasClass("tv-dialog__section")&&this.$content.addClass("tv-dialog__section--no-padding_bottom"),this.$actions=h(this.options.actionsWrapTemplate).appendTo(this.$el)),this.options.actions){this.actions={},this.$el.on("click",".js-dialog__action-click",t=>{t.preventDefault(),this.actionDispatcher(h(t.currentTarget).data("name"))});for(let t=this.options.actions.length-1;t>=0;t--){const s=this.options.actions[t];if(s.type||(s.type="default"),s.class||(s.class=v[s.type]?v[s.type]:v.default),"checkbox"===s.type){const t=new n.default({labelRight:s.text,name:s.name,checked:s.checked});this.actions[s.name]=t.$el.appendTo(this.$actions),this.actions[s.name].on("change",()=>{setTimeout(()=>this.actionDispatcher(s.name,t.checked))})}else this.actions[s.name]=h(c.render(s.template?s.template:_[s.type]||_._default,s,s)).appendTo(this.$actions);if(s.method&&"function"==typeof this[s.method]&&this.on("action:"+s.name,this[s.method].bind(this)),s.addClass&&this.actions[s.name].addClass(s.addClass),s.key)if("string"==typeof s.key&&s.key.split("+").length>1){let t=[];const e=s.key.split("+"),i=s=>{t=[]},o=i=>{const o=""+i.keyCode;-1!==e.indexOf(o)&&t.indexOf(o)&&t.push(o),this._focused&&t.length===e.length&&(t=[],this.actionDispatcher(s.name))};this.on("afterOpen",()=>{g.on("keydown",o),g.on("keyup",i)}),this.on("beforeClose",()=>{g.off("keydown",o),g.off("keyup",i)})}else{const t=h.isArray(s.key)?s.key:[s.key],e=e=>{!e.isDefaultPrevented()&&this._focused&&-1!==t.indexOf(e.keyCode)&&this.actionDispatcher(s.name)};this.on("afterOpen",()=>g.on("keydown",e)),this.on("beforeClose",()=>g.off("keydown",e))}}}if(this.options.help&&h(c.render(this.options.helpButtonTemplate,this.options.help)).prependTo(this.$actions.addClass(this.options.helpActionsMod)),this.options.closeButton){const t=h(this.options.closeButtonTemplate);t.addClass(this.options.closeButtonAddClass||"");let s=this.$el;1===this.$el.find(".js-close-button-place").length&&(s=this.$el.find(".js-close-button-place")),t.appendTo(s)}this.setZIndex(110+b.length),t.errorMod&&(this.errorMod=t.errorMod),this.on("afterOpen",()=>{this.$el.focus(),this.options.focusFirstControl&&!i.mobiletouch&&(this.firstFocusControl||this.$el.find('input:not([type="hidden"]), textarea').first()).focus()}),this.$el.on("click",".js-dialog__close",this.close.bind(this)),this.$el.on("mousedown touchstart",this.focus.bind(this)),b.push(this)}renderContent(t){return this.$contentIn.html("function"==typeof t?t(this):t),this}setDestroyOnClose(t){this.options.destroyOnClose=t}setZIndex(t){return this.zIndex=t,this.trigger("change:zIndex",[this]),this}toTop(){for(let t=b.length-1;t>=0;t--)b[t].zIndex>this.zIndex&&b[t].setZIndex(b[t].zIndex-1);return this.setZIndex(110+b.length),this.manager.moveToTop(this._id),this._hotkeys&&this._hotkeys.promote(),this}isEventOut(t){if(this.options.isClickOutFn){const s=this.options.isClickOutFn(t);if(void 0!==s)return s}let s=!0;const e=h(t.target) +;return e.get(0)!==this.$el.get(0)&&(h(">*",this.$el).each((function(){e.get(0)===h(this).get(0)&&(s=!1),0===e.closest("HTML",h(this).get(0)).length&&(s=!1)})),s)}focus(){u&&u!==this&&u.unfocus(),this._setFocused(),this._focused=!0,this.$el.addClass(this.options.focusClass),this.trigger("focus",[this]),setTimeout(()=>{g.on("mousedown.tv-dialog-unfocus-"+this._id,t=>{this.isEventOut(t)&&(this.unfocus(),g.off("mousedown.tv-dialog-unfocus-"+this._id))})},20)}_setFocused(){u!==this&&(u=this)}_setUnfocused(){u===this&&(u=void 0)}unfocus(){u===this&&(this._setUnfocused(),this._focused=!1,this.$el.removeClass(this.options.focusClass).find(":focus").blur(),this.trigger("unfocus",[this]))}isFocused(){return this._focused}setTitle(t,s=!1){return this.$title.toggleClass("tv-dialog__section--one-line apply-overflow-tooltip",s),this.$title.html(t),this}setTitleText(t){this.$title.find(".js-title-text").text(t)}actionDispatcher(t,...s){this.disabledActions.includes(t)||this.loadingActions.includes(t)||this.trigger("action:"+t,[this,...s])}toggleAction(t,s){return s||this.disabledActions.includes(t)?s&&this.disabledActions.includes(t)&&(this.disabledActions=r.without(this.disabledActions,t)):this.disabledActions.push(t),this.actions[t].toggleClass("i-disabled",!s),this}actionLoader(t,s="init"){return this.actions[t].tvButtonLoader(s),"init"===s&&(this.actions[t].off("tv-button-loader:start.dialog-action").on("tv-button-loader:start.dialog-action",()=>{this.loadingActions.push(t)}),this.actions[t].off("tv-button-loader:stop.dialog-action").on("tv-button-loader:stop.dialog-action",()=>{this.loadingActions=r.without(this.loadingActions,t)})),this}error(t){const s=h(c.render(this.options.errorTemplate,{error:t,errorMod:this.errorMod})).appendTo(this.$el);return setTimeout(()=>s.removeClass("i-slided"),20),g.one("touchstart mousedown keydown",()=>{s.addClass("i-slided"),setTimeout(()=>s.remove(),.75*o.dur)}),this.trigger("error",[this,s]),this}destroy(){this.$wrap=null,this.manager.unregisterWindow(this._id),this._hotkeys&&this._hotkeys.destroy(),b=r.without(b,this);for(let t=0;t{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/1784.430d2965a945175c67b1.js b/charting_library/bundles/1550.69cf45361956d097fdfd.js similarity index 50% rename from charting_library/bundles/1784.430d2965a945175c67b1.js rename to charting_library/bundles/1550.69cf45361956d097fdfd.js index 296ae1bd..c9fefbbc 100644 --- a/charting_library/bundles/1784.430d2965a945175c67b1.js +++ b/charting_library/bundles/1550.69cf45361956d097fdfd.js @@ -1,13 +1,12 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1784],{59142:function(o,e){var l,i,n;i=[e],void 0===(n="function"==typeof(l=function(o){"use strict";function e(o){if(Array.isArray(o)){for(var e=0,l=Array(o.length);e{o.exports={button:"button-G7o5fBfa",hover:"hover-G7o5fBfa",bg:"bg-G7o5fBfa",icon:"icon-G7o5fBfa",isActive:"isActive-G7o5fBfa",isTransparent:"isTransparent-G7o5fBfa",isGrayed:"isGrayed-G7o5fBfa", -isHidden:"isHidden-G7o5fBfa"}},96746:o=>{o.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},16842:o=>{o.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},16534:(o,e,l)=>{"use strict";l.d(e,{ToolButton:()=>c});var i=l(59496),n=l(97754),a=l(9745),s=l(90186),t=l(97639);function c(o){const{id:e,activeClass:l,children:c,className:r,icon:d,isActive:T,isGrayed:L,isHidden:h,isTransparent:m,theme:v=t,onClick:z,title:g,buttonHotKey:w,tooltipPosition:u="vertical"}=o;return i.createElement("div",{id:e,className:n(v.button,r,T&&l,{"apply-common-tooltip":Boolean(g),"common-tooltip-vertical":Boolean(g)&&"vertical"===u,[v.isActive]:T,[v.isGrayed]:L,[v.isHidden]:h,[v.isTransparent]:m}),onClick:z,title:g,"data-role":"button","data-tooltip-hotkey":w,...(0,s.filterDataProps)(o)},i.createElement("div",{className:v.bg},d&&("string"==typeof d?i.createElement(a.Icon,{className:v.icon,icon:d}):i.createElement("span",{className:v.icon},d)),c))}},10458:(o,e,l)=>{"use strict";l.d(e,{drawingToolsIcons:()=>i});const i={SyncDrawing:l(69786),arrow:l(69725),cursor:l(52263),dot:l(71908),drawginmode:l(47970),drawginmodeActive:l(87518),eraser:l(94239),group:l(99042),hideAllDrawings:l(59266),hideAllDrawingsActive:l(48111),hideAllIndicators:l(77222),hideAllIndicatorsActive:l(39056),hideAllDrawingTools:l(28407),hideAllDrawingToolsActive:l(43969),hideAllPositionsTools:l(99186),hideAllPositionsToolsActive:l(18968),lockAllDrawings:l(56717),lockAllDrawingsActive:l(28358),magnet:l(32709),strongMagnet:l(76025),measure:l(47291),removeAllDrawingTools:l(78679),showObjectTree:l(17748),zoom:l(29469),"zoom-out":l(23794)}},92469:(o,e,l)=>{"use strict";l.d(e,{lineToolsInfo:()=>v});var i=l(28353),n=l(61814),a=(l(94419),l(45749)),s=l(10458),t=l(60870),c=l(68335);const r=(0,c.humanReadableModifiers)(c.Modifiers.Shift,!1),d=(0,c.humanReadableModifiers)(c.Modifiers.Alt,!1),T=(0,c.humanReadableModifiers)(c.Modifiers.Mod,!1),L={keys:[r],text:(0,i.t)("{hotKey_0} — drawing a straight line at angles of 45")},h={keys:[r],text:(0,i.t)("{hotKey_0} — circle")},m={keys:[r],text:(0,i.t)("{hotKey_0} — square")},v={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:t.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:t.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:t.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:t.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight, -localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:t.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:t.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:t.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:t.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:t.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:t.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:t.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:t.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:t.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:t.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:t.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:t.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:t.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:t.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:t.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:t.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:t.lineToolsLocalizedNames.LineToolEllipse,hotKey:(0,n.hotKeySerialize)(h)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:t.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:t.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:t.lineToolsLocalizedNames.LineToolFibCircles,hotKey:(0,n.hotKeySerialize)(h)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:t.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs, -localizedName:t.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:t.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:(0,n.hotKeySerialize)(m)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:t.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:t.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:t.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:t.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:a.lineToolsIcons.LineToolImage,localizedName:t.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:t.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:(0,n.hotKeySerialize)(L)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:t.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:t.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:t.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:t.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:t.lineToolsLocalizedNames.LineToolGannSquare,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:t.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:t.lineToolsLocalizedNames.LineToolHorzLine,hotKey:(0,n.hotKeySerialize)({keys:[d,"H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:t.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:t.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:t.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:t.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:t.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:t.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:t.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:(0,n.hotKeySerialize)(L)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:t.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork, -localizedName:t.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:t.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:t.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:t.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:t.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:t.lineToolsLocalizedNames.LineToolPriceNote,hotKey:(0,n.hotKeySerialize)(L)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:t.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:t.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:t.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:t.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:t.lineToolsLocalizedNames.LineToolRectangle,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — square")})},LineToolCircle:{icon:a.lineToolsIcons.LineToolCircle,localizedName:t.lineToolsLocalizedNames.LineToolCircle},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:t.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:t.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:t.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:t.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:t.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:(0,n.hotKeySerialize)(L)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:t.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:t.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:t.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:t.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:t.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:t.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:t.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{ -icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:t.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:t.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:t.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:t.lineToolsLocalizedNames.LineToolTrendLine,hotKey:(0,n.hotKeySerialize)(L)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:t.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:t.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:t.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:t.lineToolsLocalizedNames.LineToolVertLine,hotKey:(0,n.hotKeySerialize)({keys:[d,"V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:t.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:t.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:s.drawingToolsIcons.SyncDrawing,iconActive:s.drawingToolsIcons.SyncDrawingActive,localizedName:(0,i.t)("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:s.drawingToolsIcons.arrow,localizedName:(0,i.t)("Arrow")},cursor:{icon:s.drawingToolsIcons.cursor,localizedName:(0,i.t)("Cross")},dot:{icon:s.drawingToolsIcons.dot,localizedName:(0,i.t)("Dot")},drawginmode:{icon:s.drawingToolsIcons.drawginmode,iconActive:s.drawingToolsIcons.drawginmodeActive,localizedName:(0,i.t)("Stay in Drawing Mode")},eraser:{icon:s.drawingToolsIcons.eraser,localizedName:(0,i.t)("Eraser")},group:{icon:s.drawingToolsIcons.group,localizedName:(0,i.t)("Show Hidden Tools")},hideAllDrawings:{icon:s.drawingToolsIcons.hideAllDrawings,iconActive:s.drawingToolsIcons.hideAllDrawingsActive,localizedName:(0,i.t)("Hide All Drawing Tools"),hotKey:(0,n.hotKeySerialize)({keys:[T,d,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:s.drawingToolsIcons.lockAllDrawings,iconActive:s.drawingToolsIcons.lockAllDrawingsActive,localizedName:(0,i.t)("Lock All Drawing Tools")},magnet:{icon:s.drawingToolsIcons.magnet,localizedName:(0,i.t)("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:(0,n.hotKeySerialize)({keys:[T],text:"{0}"})},measure:{icon:s.drawingToolsIcons.measure,localizedName:(0,i.t)("Measure"),hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} + Click on the chart")})},removeAllDrawingTools:{icon:s.drawingToolsIcons.removeAllDrawingTools,localizedName:(0,i.t)("Remove Drawings")},showObjectsTree:{icon:s.drawingToolsIcons.showObjectTree,localizedName:(0,i.t)("Show Object Tree")},zoom:{ -icon:s.drawingToolsIcons.zoom,localizedName:(0,i.t)("Zoom In")},"zoom-out":{icon:s.drawingToolsIcons["zoom-out"],localizedName:(0,i.t)("Zoom Out")}};v.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:t.lineToolsLocalizedNames.LineToolGhostFeed}},89377:(o,e,l)=>{"use strict";l.d(e,{LinetoolsFavoritesStore:()=>n});var i,n,a=l(2872),s=l.n(a),t=l(56840);!function(o){function e(){o.favorites=[];(0,t.getJSON)("chart.favoriteDrawings",[]).forEach(e=>{l(e.tool||e)&&o.favorites.push(e.tool||e)}),o.favoritesSynced.fire()}function l(o){return"string"==typeof o&&""!==o}o.favorites=[],o.favoritesSynced=new(s()),o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.isValidLineToolName=l,o.saveFavorites=function(e){(0,t.setJSON)("chart.favoriteDrawings",o.favorites,e)},e(),t.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(o){return i.isValidLineToolName(o)}function l(){return i.favorites.length}function n(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new(s()),o.favoriteRemoved=new(s()),o.favoriteMoved=new(s()),o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.isValidLineToolName=e,o.favoritesCount=l,o.favorite=function(o){return o<0||o>=l()?"":i.favorites[o]},o.addFavorite=function(l,a){return!(n(l)||!e(l))&&(i.favorites.push(l),i.saveFavorites(a),o.favoriteAdded.fire(l),!0)},o.removeFavorite=function(e,l){const n=i.favoriteIndex(e);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(l),o.favoriteRemoved.fire(e),!0)},o.isFavorite=n,o.moveFavorite=function(n,a,s){if(a<0||a>=l()||!e(n))return!1;const t=i.favoriteIndex(n);return-1!==t&&a!==t&&(i.favorites.splice(t,1),i.favorites.splice(a,0,n),i.saveFavorites(s),o.favoriteMoved.fire(n,t,a),!0)}}(n||(n={}))},24437:(o,e,l)=>{"use strict";l.d(e,{DialogBreakpoints:()=>n});var i=l(96746);const n={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},36189:(o,e,l)=>{"use strict";l.d(e,{FavoriteButton:()=>T});var i=l(28353),n=l(59496),a=l(97754),s=l(9745),t=l(20614),c=l(55783),r=l(16842);const d={add:(0,i.t)("Add to favorites"),remove:(0,i.t)("Remove from favorites")};function T(o){const{className:e,isFilled:l,isActive:i,onClick:T,...L}=o;return n.createElement(s.Icon,{...L,className:a(r.favorite,"apply-common-tooltip",l&&r.checked,i&&r.active,e),icon:l?t:c,onClick:T,title:l?d.remove:d.add})}},40173:(o,e,l)=>{"use strict";function i(o,e,l={}){const i=Object.assign({},e);for(const n of Object.keys(e)){const a=l[n]||n;a in o&&(i[n]=[o[a],e[n]].join(" "))}return i}function n(o,e,l={}){return Object.assign({},o,i(o,e,l))}l.d(e,{weakComposeClasses:()=>i,mergeThemes:()=>n})},99042:o=>{ -o.exports=''},69725:o=>{o.exports=''},52263:o=>{o.exports=''},71908:o=>{o.exports=''},87518:o=>{o.exports=''},47970:o=>{o.exports=''},94239:o=>{ -o.exports=''},32709:o=>{o.exports=''},47291:o=>{o.exports=''},17748:o=>{o.exports=''},76025:o=>{o.exports=''},69786:o=>{o.exports=''},43969:o=>{ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1550],{97639:o=>{o.exports={button:"button-G7o5fBfa",hover:"hover-G7o5fBfa",bg:"bg-G7o5fBfa",icon:"icon-G7o5fBfa",isActive:"isActive-G7o5fBfa",isTransparent:"isTransparent-G7o5fBfa",isGrayed:"isGrayed-G7o5fBfa",isHidden:"isHidden-G7o5fBfa"}},16534:(o,e,l)=>{"use strict";l.d(e,{ToolButton:()=>t});var i=l(59496),n=l(97754),a=l(9745),s=l(90186),c=l(97639);function t(o){const{id:e,activeClass:l,children:t,className:r,icon:T,isActive:d,isGrayed:L,isHidden:h,isTransparent:z,theme:m=c,onClick:v,title:g,buttonHotKey:w,tooltipPosition:N="vertical"}=o;return i.createElement("div",{id:e,className:n(m.button,r,d&&l,{"apply-common-tooltip":Boolean(g),"common-tooltip-vertical":Boolean(g)&&"vertical"===N,[m.isActive]:d,[m.isGrayed]:L,[m.isHidden]:h,[m.isTransparent]:z}),onClick:v,title:g,"data-role":"button","data-tooltip-hotkey":w,...(0,s.filterDataProps)(o)},i.createElement("div",{className:m.bg},T&&("string"==typeof T?i.createElement(a.Icon,{className:m.icon,icon:T}):i.createElement("span",{className:m.icon},T)),t))}},10458:(o,e,l)=>{"use strict";l.d(e,{drawingToolsIcons:()=>i});const i={SyncDrawing:l(69786),arrow:l(69725),cursor:l(52263),dot:l(71908),drawginmode:l(47970),drawginmodeActive:l(87518),eraser:l(94239),group:l(99042),hideAllDrawings:l(59266),hideAllDrawingsActive:l(48111),hideAllIndicators:l(77222),hideAllIndicatorsActive:l(39056),hideAllDrawingTools:l(28407),hideAllDrawingToolsActive:l(43969),hideAllPositionsTools:l(99186),hideAllPositionsToolsActive:l(18968),lockAllDrawings:l(56717),lockAllDrawingsActive:l(28358),magnet:l(32709),strongMagnet:l(76025),measure:l(47291),removeAllDrawingTools:l(78679),showObjectTree:l(17748),zoom:l(29469),"zoom-out":l(23794)}},92469:(o,e,l)=>{"use strict";l.d(e,{lineToolsInfo:()=>m});var i=l(28353),n=l(61814),a=(l(94419),l(45749)),s=l(10458),c=l(60870),t=l(68335);const r=(0,t.humanReadableModifiers)(t.Modifiers.Shift,!1),T=(0,t.humanReadableModifiers)(t.Modifiers.Alt,!1),d=(0,t.humanReadableModifiers)(t.Modifiers.Mod,!1),L={keys:[r],text:(0,i.t)("{hotKey_0} — drawing a straight line at angles of 45")},h={keys:[r],text:(0,i.t)("{hotKey_0} — circle")},z={keys:[r],text:(0,i.t)("{hotKey_0} — square")},m={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:c.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:c.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:c.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:c.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight, +localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:c.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:c.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:c.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:c.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:c.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:c.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:c.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:c.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:c.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:c.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:c.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:c.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:c.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:c.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:c.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:c.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:c.lineToolsLocalizedNames.LineToolEllipse,hotKey:(0,n.hotKeySerialize)(h)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:c.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:c.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:c.lineToolsLocalizedNames.LineToolFibCircles,hotKey:(0,n.hotKeySerialize)(h)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:c.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs, +localizedName:c.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:c.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:(0,n.hotKeySerialize)(z)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:c.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:c.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:c.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:c.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:a.lineToolsIcons.LineToolImage,localizedName:c.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:c.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:(0,n.hotKeySerialize)(L)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:c.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:c.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:c.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:c.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:c.lineToolsLocalizedNames.LineToolGannSquare,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:c.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:c.lineToolsLocalizedNames.LineToolHorzLine,hotKey:(0,n.hotKeySerialize)({keys:[T,"H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:c.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:c.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:c.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:c.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:c.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:c.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:c.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:(0,n.hotKeySerialize)(L)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:c.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork, +localizedName:c.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:c.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:c.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:c.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:c.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:c.lineToolsLocalizedNames.LineToolPriceNote,hotKey:(0,n.hotKeySerialize)(L)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:c.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:c.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:c.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:c.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:c.lineToolsLocalizedNames.LineToolRectangle,hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} — square")})},LineToolCircle:{icon:a.lineToolsIcons.LineToolCircle,localizedName:c.lineToolsLocalizedNames.LineToolCircle},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:c.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:c.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:c.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:c.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:c.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:(0,n.hotKeySerialize)(L)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:c.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:c.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:c.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:c.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:c.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:c.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:c.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{ +icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:c.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:(0,n.hotKeySerialize)(L)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:c.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:c.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:c.lineToolsLocalizedNames.LineToolTrendLine,hotKey:(0,n.hotKeySerialize)(L)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:c.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:c.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:c.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:c.lineToolsLocalizedNames.LineToolVertLine,hotKey:(0,n.hotKeySerialize)({keys:[T,"V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:c.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:c.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:s.drawingToolsIcons.SyncDrawing,iconActive:s.drawingToolsIcons.SyncDrawingActive,localizedName:(0,i.t)("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:s.drawingToolsIcons.arrow,localizedName:(0,i.t)("Arrow")},cursor:{icon:s.drawingToolsIcons.cursor,localizedName:(0,i.t)("Cross")},dot:{icon:s.drawingToolsIcons.dot,localizedName:(0,i.t)("Dot")},drawginmode:{icon:s.drawingToolsIcons.drawginmode,iconActive:s.drawingToolsIcons.drawginmodeActive,localizedName:(0,i.t)("Stay in Drawing Mode")},eraser:{icon:s.drawingToolsIcons.eraser,localizedName:(0,i.t)("Eraser")},group:{icon:s.drawingToolsIcons.group,localizedName:(0,i.t)("Show Hidden Tools")},hideAllDrawings:{icon:s.drawingToolsIcons.hideAllDrawings,iconActive:s.drawingToolsIcons.hideAllDrawingsActive,localizedName:(0,i.t)("Hide All Drawing Tools"),hotKey:(0,n.hotKeySerialize)({keys:[d,T,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:s.drawingToolsIcons.lockAllDrawings,iconActive:s.drawingToolsIcons.lockAllDrawingsActive,localizedName:(0,i.t)("Lock All Drawing Tools")},magnet:{icon:s.drawingToolsIcons.magnet,localizedName:(0,i.t)("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:(0,n.hotKeySerialize)({keys:[d],text:"{0}"})},measure:{icon:s.drawingToolsIcons.measure,localizedName:(0,i.t)("Measure"),hotKey:(0,n.hotKeySerialize)({keys:[r],text:(0,i.t)("{hotKey_0} + Click on the chart")})},removeAllDrawingTools:{icon:s.drawingToolsIcons.removeAllDrawingTools,localizedName:(0,i.t)("Remove Drawings")},showObjectsTree:{icon:s.drawingToolsIcons.showObjectTree,localizedName:(0,i.t)("Show Object Tree")},zoom:{ +icon:s.drawingToolsIcons.zoom,localizedName:(0,i.t)("Zoom In")},"zoom-out":{icon:s.drawingToolsIcons["zoom-out"],localizedName:(0,i.t)("Zoom Out")}};m.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:c.lineToolsLocalizedNames.LineToolGhostFeed}},89377:(o,e,l)=>{"use strict";l.d(e,{LinetoolsFavoritesStore:()=>n});var i,n,a=l(2872),s=l.n(a),c=l(56840);!function(o){function e(){o.favorites=[];(0,c.getJSON)("chart.favoriteDrawings",[]).forEach(e=>{l(e.tool||e)&&o.favorites.push(e.tool||e)}),o.favoritesSynced.fire()}function l(o){return"string"==typeof o&&""!==o}o.favorites=[],o.favoritesSynced=new(s()),o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.isValidLineToolName=l,o.saveFavorites=function(e){(0,c.setJSON)("chart.favoriteDrawings",o.favorites,e)},e(),c.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(o){return i.isValidLineToolName(o)}function l(){return i.favorites.length}function n(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new(s()),o.favoriteRemoved=new(s()),o.favoriteMoved=new(s()),o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.isValidLineToolName=e,o.favoritesCount=l,o.favorite=function(o){return o<0||o>=l()?"":i.favorites[o]},o.addFavorite=function(l,a){return!(n(l)||!e(l))&&(i.favorites.push(l),i.saveFavorites(a),o.favoriteAdded.fire(l),!0)},o.removeFavorite=function(e,l){const n=i.favoriteIndex(e);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(l),o.favoriteRemoved.fire(e),!0)},o.isFavorite=n,o.moveFavorite=function(n,a,s){if(a<0||a>=l()||!e(n))return!1;const c=i.favoriteIndex(n);return-1!==c&&a!==c&&(i.favorites.splice(c,1),i.favorites.splice(a,0,n),i.saveFavorites(s),o.favoriteMoved.fire(n,c,a),!0)}}(n||(n={}))},99042:o=>{o.exports=''},69725:o=>{o.exports=''},52263:o=>{o.exports=''},71908:o=>{o.exports=''},87518:o=>{ +o.exports=''},47970:o=>{o.exports=''},94239:o=>{o.exports=''},32709:o=>{o.exports=''},47291:o=>{ +o.exports=''},17748:o=>{o.exports=''},76025:o=>{o.exports=''},69786:o=>{o.exports=''},43969:o=>{ o.exports=''},39056:o=>{o.exports=''},18968:o=>{ o.exports=''},28358:o=>{o.exports=''},56717:o=>{o.exports=''},59266:o=>{o.exports=''},28407:o=>{ o.exports=''},77222:o=>{o.exports=''},99186:o=>{ -o.exports=''},29469:o=>{o.exports=''},23794:o=>{o.exports=''},37049:o=>{o.exports=''},20614:o=>{o.exports=''},55783:o=>{o.exports=''}}]); \ No newline at end of file +o.exports=''},29469:o=>{o.exports=''},23794:o=>{o.exports=''},37049:o=>{o.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/157dc69b8355dc521689079cb859216d.svg b/charting_library/bundles/157dc69b8355dc521689079cb859216d.svg new file mode 100644 index 00000000..33b0e55e --- /dev/null +++ b/charting_library/bundles/157dc69b8355dc521689079cb859216d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1594.4ef8130762f60c777086.js b/charting_library/bundles/1594.4ef8130762f60c777086.js new file mode 100644 index 00000000..53fd7535 --- /dev/null +++ b/charting_library/bundles/1594.4ef8130762f60c777086.js @@ -0,0 +1,23 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1594],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;for(var a=0;a{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},74246:e=>{e.exports={actions:"actions-FZxvEi7a",actionButton:"actionButton-FZxvEi7a"}},82132:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",itemRow:"itemRow-uhHv1IHJ",multiLine:"multiLine-uhHv1IHJ",cell:"cell-uhHv1IHJ",itemInfoCell:"itemInfoCell-uhHv1IHJ",description:"description-uhHv1IHJ",symbolDescription:"symbolDescription-uhHv1IHJ",flag:"flag-uhHv1IHJ",exchangeDescription:"exchangeDescription-uhHv1IHJ",marketType:"marketType-uhHv1IHJ",exchangeName:"exchangeName-uhHv1IHJ",actionHandleWrap:"actionHandleWrap-uhHv1IHJ",hover:"hover-uhHv1IHJ",selected:"selected-uhHv1IHJ",active:"active-uhHv1IHJ",highlighted:"highlighted-uhHv1IHJ",light:"light-uhHv1IHJ","highlight-animation-theme-light":"highlight-animation-theme-light-uhHv1IHJ",dark:"dark-uhHv1IHJ","highlight-animation-theme-dark":"highlight-animation-theme-dark-uhHv1IHJ",markedFlag:"markedFlag-uhHv1IHJ",offset:"offset-uhHv1IHJ",descriptionCell:"descriptionCell-uhHv1IHJ",addition:"addition-uhHv1IHJ",exchangeCell:"exchangeCell-uhHv1IHJ",fixedWidth:"fixedWidth-uhHv1IHJ",expandHandle:"expandHandle-uhHv1IHJ",expanded:"expanded-uhHv1IHJ",symbolTitle:"symbolTitle-uhHv1IHJ",invalid:"invalid-uhHv1IHJ",noDescription:"noDescription-uhHv1IHJ",highlightedText:"highlightedText-uhHv1IHJ",icon:"icon-uhHv1IHJ",narrow:"narrow-uhHv1IHJ",dataMode:"dataMode-uhHv1IHJ",actionsCell:"actionsCell-uhHv1IHJ",action:"action-uhHv1IHJ",targetAction:"targetAction-uhHv1IHJ",removeAction:"removeAction-uhHv1IHJ",addAction:"addAction-uhHv1IHJ", +markedFlagWrap:"markedFlagWrap-uhHv1IHJ",markedFlagMobile:"markedFlagMobile-uhHv1IHJ",logo:"logo-uhHv1IHJ",isExpandable:"isExpandable-uhHv1IHJ"}},42608:e=>{e.exports={wrap:"wrap-nJ9riypy",libAllSelected:"libAllSelected-nJ9riypy",container:"container-nJ9riypy",iconWrap:"iconWrap-nJ9riypy",icon:"icon-nJ9riypy",title:"title-nJ9riypy",highlighted:"highlighted-nJ9riypy",description:"description-nJ9riypy",mobile:"mobile-nJ9riypy",allSelected:"allSelected-nJ9riypy",desktop:"desktop-nJ9riypy",allSelectedIcon:"allSelectedIcon-nJ9riypy",selected:"selected-nJ9riypy",titleWithoutDesc:"titleWithoutDesc-nJ9riypy",textBlock:"textBlock-nJ9riypy",bordered:"bordered-nJ9riypy"}},90819:e=>{e.exports={container:"container-ZOfHxh0z",contentList:"contentList-ZOfHxh0z",contentListDesktop:"contentListDesktop-ZOfHxh0z",searchSourceItemsContainer:"searchSourceItemsContainer-ZOfHxh0z",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-ZOfHxh0z",groupTitleDesktop:"groupTitleDesktop-ZOfHxh0z",emptyText:"emptyText-ZOfHxh0z",noResultsDesktop:"noResultsDesktop-ZOfHxh0z"}},77338:e=>{e.exports={wrap:"wrap-LlwUhJDs",item:"item-LlwUhJDs",small:"small-LlwUhJDs",text:"text-LlwUhJDs",exchange:"exchange-LlwUhJDs"}},74915:e=>{e.exports={wrap:"wrap-SLQfcZ66",watchlist:"watchlist-SLQfcZ66",noFeed:"noFeed-SLQfcZ66",scrollContainer:"scrollContainer-SLQfcZ66",listContainer:"listContainer-SLQfcZ66",multiLineItemsContainer:"multiLineItemsContainer-SLQfcZ66"}},98749:e=>{e.exports={button:"button-v1WheJQo",desktop:"desktop-v1WheJQo"}},92540:e=>{e.exports={search:"search-RSKUFnp7",upperCase:"upperCase-RSKUFnp7",symbolType:"symbolType-RSKUFnp7",spinnerWrap:"spinnerWrap-RSKUFnp7",emptyText:"emptyText-RSKUFnp7",noResultsDesktop:"noResultsDesktop-RSKUFnp7",brokerCheckboxWrap:"brokerCheckboxWrap-RSKUFnp7"}},53474:e=>{e.exports={flagWrap:"flagWrap-7I0uFLqE",icon:"icon-7I0uFLqE",caret:"caret-7I0uFLqE",title:"title-7I0uFLqE"}},6215:e=>{e.exports={dialog:"dialog-JcokGZNe",tabletDialog:"tabletDialog-JcokGZNe",desktopDialog:"desktopDialog-JcokGZNe"}},70516:e=>{e.exports={childrenWrapper:"childrenWrapper-HNZPlz4e",container:"container-HNZPlz4e"}},99167:e=>{e.exports={bubbles:"bubbles-bgopH9MJ",multiLine:"multiLine-bgopH9MJ",bubble:"bubble-bgopH9MJ"}},74765:e=>{e.exports={bubble:"bubble-vcCjkHCG",animated:"animated-vcCjkHCG",content:"content-vcCjkHCG","appearance-default":"appearance-default-vcCjkHCG",active:"active-vcCjkHCG",red:"red-vcCjkHCG",blue:"blue-vcCjkHCG",green:"green-vcCjkHCG",orange:"orange-vcCjkHCG",purple:"purple-vcCjkHCG",cyan:"cyan-vcCjkHCG",pink:"pink-vcCjkHCG","appearance-text":"appearance-text-vcCjkHCG","fontSize-s":"fontSize-s-vcCjkHCG","fontSize-m":"fontSize-m-vcCjkHCG","size-m":"size-m-vcCjkHCG","size-l":"size-l-vcCjkHCG"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o});var r=n(59496);const o=r.forwardRef((e,t)=>{const{icon:n="",...o}=e +;return r.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function r(e){return s(e,a)}function o(e){return s(e,i)}function s(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function a(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function i(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>o,filterProps:()=>s,isDataAttribute:()=>a,isAriaAttribute:()=>i})},4825:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>c});var r=n(59496),o=n(97754),s=n(9745),a=n(37669),i=n(55576);const l=i,c=r.forwardRef((e,t)=>{const{icon:n,isActive:l,isOpened:c,isDisabled:u,isGrouped:d,isHovered:h,onClick:p,text:m,textBeforeIcon:v,title:f,theme:g=i,className:y,forceInteractive:b,"data-name":S,...x}=e,C=o(y,g.button,f&&"apply-common-tooltip",{[g.isActive]:l,[g.isOpened]:c,[g.isInteractive]:(b||Boolean(p))&&!u,[g.isDisabled]:u,[g.isGrouped]:d,[g.hover]:h,[g.newStyles]:a.hasNewHeaderToolbarStyles}),w=n&&("string"==typeof n?r.createElement(s.Icon,{className:g.icon,icon:n}):r.cloneElement(n,{className:o(g.icon,n.props.className)}));return r.createElement("div",{...x,ref:t,"data-role":"button",className:C,onClick:u?void 0:p,title:f,"data-name":S},v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m),w,!v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m))})},37669:(e,t,n)=>{"use strict";n.d(t,{hasNewHeaderToolbarStyles:()=>r});n(67337);const r=!1},47670:(e,t,n)=>{"use strict";n.d(t,{marketType:()=>l});var r=n(28353);n(94419);const o=new Map,s={context:"market_type"},a={cfd:(0,r.t)("cfd",s),bitcoin:(0,r.t)("crypto",s),crypto:(0,r.t)("crypto",s),dr:(0,r.t)("dr",s),forex:(0,r.t)("forex",s),futures:(0,r.t)("futures",s),index:(0,r.t)("index",s),stock:(0,r.t)("stock",s),economic:(0,r.t)("economy",s)},i=new Set(["cfd","spreadbet","defi"]);function l(e,t=[]){const n=t.filter(e=>i.has(e)),l=`${e}_${n.sort().join("_")}`,c=o.get(l);if(void 0!==c)return c;const u=Boolean(t.length)?(0,r.t)(e,s)+" "+n.join(" "):a[e]||e;return o.set(l,u),u}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function s(o){if(e>o.timeStamp)return;const s=o.target;void 0!==n&&null!==t&&null!==s&&s.ownerDocument===r&&(t.contains(s)||n(o))}return o.click&&r.addEventListener("click",s,!1),o.mouseDown&&r.addEventListener("mousedown",s,!1),o.touchEnd&&r.addEventListener("touchend",s,!1),o.touchStart&&r.addEventListener("touchstart",s,!1),()=>{r.removeEventListener("click",s,!1),r.removeEventListener("mousedown",s,!1),r.removeEventListener("touchend",s,!1),r.removeEventListener("touchstart",s,!1)}}n.d(t,{addOutsideEventListener:()=>r})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>r,matchMediaMinMax:()=>o,setStyle:()=>s,getCSSProperty:()=>a,getCSSPropertyNumericValue:()=>i});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar", +document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const a=s.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=o-a}return e}})();function o(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function s(e,t,n){null!==e&&e.style.setProperty(t,n)}function a(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function i(e,t){return parseInt(a(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>a});var r=n(68722);let o=0,s=!1;function a(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++o){const e=(0,r.getCSSProperty)(t,"overflow"),o=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",(0,r.getScrollbarWidth)()+"px"),t.style.paddingRight=o+(0,r.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&o>0&&0==--o&&(t.classList.remove("i-no-scroll"),s)){(0,r.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>k});var r=n(59496),o=n(88537);var s=n(97754),a=n.n(s),i=n(68335),l=n(35749),c=n(81e3),u=n(1109),d=n(24437),h=n(90692),p=n(95711),m=n(52092),v=n(76422),f=n(9745);const g=r.createContext({setHideClose:()=>{}});var y=n(37257),b=n(91441);function S(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:i,renderAfter:l,draggable:c,className:u,unsetAlign:d}=e,[h,p]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:p}},r.createElement("div",{className:a()(b.container,u,(n||d)&&b.unsetAlign)},i,r.createElement("div",{"data-dragg-area":c,className:b.title},r.createElement("div",{className:b.ellipsis},t),n&&r.createElement("div",{className:a()(b.ellipsis,b.subtitle)},n)),l,o&&!h&&r.createElement(f.Icon,{className:b.close,icon:y,onClick:s,"data-name":"close","data-role":"button"})))}var x=n(67179);const C={vertical:20},w={vertical:0};class k extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0, +i.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,l.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:s,dataName:i,onClickOutside:l,additionalElementPos:m,additionalHeaderElement:v,backdrop:f,shouldForceFocus:g=!0,showSeparator:y,subtitle:b,draggable:k=!0,fullScreen:E=!1,showCloseIcon:I=!0,rounded:_=!0,isAnimationEnabled:N,growPoint:H,dialogTooltip:D,unsetHeaderAlign:M,onDragStart:T,dataDialogName:L}=this.props,A="after"!==m?v:void 0,F="after"===m?v:void 0,O="string"==typeof s?s:L||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||E)&&_,className:a()(x.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:d||E,guard:m?w:C,boundByScreen:d||E,shouldForceFocus:g,backdrop:f,draggable:k,isAnimationEnabled:N,growPoint:H,name:this.props.dataName,dialogTooltip:D,onDragStart:T},r.createElement("div",{className:a()(x.wrapper,t),"data-name":i,"data-dialog-name":O},void 0!==s&&r.createElement(S,{draggable:k&&!(d||E),onClose:this._handleClose,renderAfter:F,renderBefore:A,subtitle:b,title:s,showCloseIcon:I,className:n,unsetAlign:M}),y&&r.createElement(u.Separator,{className:x.separator}),r.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,d||E))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>u});var r=n(59496),o=n(97754),s=n.n(o),a=n(28353),i=n(9745),l=n(5639),c=n(28712);function u(e){const{children:t,renderInput:n,onCancel:o,...u}=e +;return r.createElement("div",{className:c.container},r.createElement("div",{className:s()(c.inputContainer,o&&c.withCancel)},n||r.createElement(d,{...u})),t,r.createElement(i.Icon,{className:c.icon,icon:l}),o&&r.createElement("div",{className:c.cancel,onClick:o},(0,a.t)("Cancel")))}function d(e){const{className:t,reference:n,value:o,onChange:a,onFocus:i,onBlur:l,onKeyDown:u,onSelect:d,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:s()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:o,onChange:a,onFocus:i,onBlur:l,onSelect:d,onKeyDown:u})}},5648:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogContentItem:()=>g});var r=n(59496),o=n(97754),s=n.n(o),a=n(88537),i=n(9745),l=(n(67337),n(24637)),c=n(19785),u=n(84524),d=n(24633),h=n(77975),p=n(45345),m=n(32563),v=n(88142),f=n(82132);function g(e){const{dangerousTitleHTML:t,title:n,dangerousDescriptionHTML:o,description:g,searchToken:y,exchangeName:b,marketType:S,onClick:x,isSelected:C,isEod:w=!1,isActive:k=!1,isOffset:E=!1,invalid:I=!1,isHighlighted:_=!1,hideExchange:N=!1,hideMarkedListFlag:H=!1,onExpandClick:D,isExpanded:M,hoverComponent:T,country:L,providerId:A,source:F,type:O,flag:R,itemRef:B,onMouseOut:P,onMouseOver:W,className:J,actions:z,reference:V,fullSymbolName:q,logoId:U,currencyLogoId:Z,baseCurrencyLogoId:G,shortName:j,hideLogo:K=!1}=e,{isSmallWidth:Q,isMobile:$}=(0,a.ensureNotNull)((0,r.useContext)(u.SymbolSearchItemsDialogContext)),Y=Boolean(T),X=!I&&!N&&($||!Y),ee=(0,h.useWatchedValueReadonly)({watchedValue:p.watchedTheme})===d.StdTheme.Dark?f.dark:f.light,te=T;return r.createElement("div",{className:s()(f.itemRow,Q&&f.multiLine,_&&f.highlighted,_&&ee,C&&f.selected,k&&f.active,I&&f.invalid,!$&&m.mobiletouch&&Y&&f.hover,J),onClick:function(e,t){if(!e||t.defaultPrevented)return;t.preventDefault(),e(t)}.bind(null,x),"data-role":e["data-role"]||"list-item","data-active":k,"data-name":"symbol-search-dialog-content-item",onMouseOut:P,onMouseOver:W,ref:V},r.createElement("div",{ref:B,className:s()(f.itemInfoCell,f.cell,E&&f.offset)},r.createElement("div",{className:s()(f.actionHandleWrap,f.fixedWidth)},r.createElement(r.Fragment,null,!1,D&&r.createElement("div",{onClick:function(e){if(!D||e.defaultPrevented)return;e.preventDefault(),D(e)}},r.createElement(i.Icon,{className:s()(f.expandHandle,M&&f.expanded,C&&f.selected),icon:v})),!1)),r.createElement("div",{className:s()(f.description,!1)},n&&r.createElement("div",{className:s()(f.symbolTitle,k&&f.active,I&&f.invalid,!Boolean(o)&&f.noDescription),"data-name":"list-item-title"},"string"==typeof n&&y?r.createElement(l.HighlightedText,{className:f.highlightedText,text:n,queryString:y,rules:(0,c.createRegExpList)(y)}):n,w&&r.createElement("span",{className:f.dataMode},"E")),!n&&t&&r.createElement("div",{className:s()(f.symbolTitle,k&&f.active,I&&f.invalid),"data-name":"list-item-title"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),w&&r.createElement("span",{className:f.dataMode},"E")),Q&&ne())),!Q&&r.createElement("div",{ +className:s()(f.cell,f.descriptionCell,Boolean(te)&&f.addition)},ne(),te?r.createElement(te,{...e,className:f.actions,onMouseOver:void 0,onMouseOut:void 0}):null),Q&&te?r.createElement(te,{...e,className:f.cell,onMouseOver:void 0,onMouseOut:void 0}):null,X&&r.createElement("div",{className:s()(f.exchangeCell,f.cell)},r.createElement("div",{className:s()(f.exchangeDescription)},r.createElement("div",{className:s()(f.marketType,k&&f.active)},S),"economic"===O&&F?r.createElement("div",{className:s()(f.exchangeName,k&&f.active,"apply-common-tooltip",f.narrow),title:F},F):r.createElement("div",{className:s()(f.exchangeName,k&&f.active)},b)),!1),r.createElement("div",{className:s()(f.cell,Boolean(z)&&f.actionsCell)},z));function ne(){if(I)return null;const e=s()(f.symbolDescription,k&&f.active,!m.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return g?r.createElement("div",{className:e},y?r.createElement(l.HighlightedText,{className:f.highlightedText,text:g,queryString:y,rules:(0,c.createRegExpList)(y)}):g):o?r.createElement("div",{className:e,dangerouslySetInnerHTML:{__html:o}}):null}}},58442:(e,t,n)=>{"use strict";n.d(t,{qualifyProName:()=>a,QualifiedSources:()=>r});var r,o=n(88537),s=n(67337);n(81319);function a(e){return e}!function(e){function t(e){return e.pro_name}function n(e){{const t=s.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.full_name;return(0,o.ensureDefined)(t)}}e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:n,symbolname:r,status:o}=e;return"error"===o&&r?r:t(n)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:n,full_name:r}=null!=t?t:e;return s.enabled("pay_attention_to_ticker_not_symbol")?(0,o.ensureDefined)(null!=n?n:r):(0,o.ensureDefined)(r)}},e.fromSymbolInfo=n,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?n(t.params[1]):e}}(r||(r={}))},24389:(e,t,n)=>{"use strict";n.d(t,{QuoteSessionContext:()=>r});const r=n(59496).createContext(null)},20882:(e,t,n)=>{"use strict";function r(e){return""===e.value()}function o(e,t){return e.filter(e=>e.includes(t))}function s(e){const t=new Map;return e.forEach(e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}),t}function a(e,t){return t.map(t=>new e(t))}n.d(t,{isAllSearchSourcesSelected:()=>r,filterSearchSources:()=>o,splitSearchSourcesByGroup:()=>s,createSearchSources:()=>a})},1861:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>c});var r=n(59496),o=n(87995),s=n(50655),a=n(24389),i=n(51826),l=n(12045);function c(e){const{initialMode:t="symbolSearch",autofocus:n=!0,defaultValue:c,showSpreadActions:u,selectSearchOnInit:d,onSearchComplete:h,onSearchFeedReady:p,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,onClose:x,footer:C,symbolTypes:w,searchInput:k,emptyState:E,hideMarkedListFlag:I,dialogWidth:_="auto",manager:N}=e +;if(i.dialogsOpenerManager.isOpened("SymbolSearch")||i.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const H=document.createElement("div"),D=r.createElement(s.SlotContext.Provider,{value:null!=N?N:null},r.createElement(a.QuoteSessionContext.Provider,{value:null},r.createElement(l.SymbolSearchItemsDialog,{onClose:M,initialMode:t,defaultValue:c,showSpreadActions:u,hideMarkedListFlag:I,onSearchFeedReady:p,selectSearchOnInit:d,onSearchComplete:h,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,footer:C,symbolTypes:w,searchInput:k,emptyState:E,autofocus:n,dialogWidth:_})));function M(){o.unmountComponentAtNode(H),i.dialogsOpenerManager.setAsClosed("SymbolSearch"),x&&x()}return o.render(D,H),i.dialogsOpenerManager.setAsOpened("SymbolSearch"),{close:M}}},70613:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogBodyContext:()=>r});const r=n(59496).createContext(null)},84524:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialogContext:()=>r});const r=n(59496).createContext(null)},12045:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialog:()=>Pe});var r=n(59496),o=n(97754),s=n.n(o),a=n(28353),i=n(7785),l=n(15983),c=n(84877),u=n(67337),d=n(24437),h=n(85457),p=n(9745),m=n(84524),v=n(69654),f=n(20882),g=n(70516);function y(e){const{children:t,className:n}=e;return r.createElement("div",{className:s()(g.container,n)},r.createElement("div",{className:g.childrenWrapper},t))}var b=n(88537),S=n(78036),x=n(24637),C=n(19785),w=n(29601),k=n(42608);function E(e){const{searchSource:t,onClick:n,queryString:o}=e,{selectedSearchSource:a,isAllSearchSourcesSelected:i,isMobile:l}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),c=(0,b.ensureNotNull)(a).value(),u=i(t),d=t.value()===c,h=(0,r.useMemo)(()=>(0,C.createRegExpList)(o),[o]),v=t.description(),f=v&&!u,g=s()(k.container,l?k.mobile:k.desktop,d&&k.selected,u&&k.allSelected,u&&k.libAllSelected,!u&&l&&k.bordered);return r.createElement("div",{className:s()(!l&&k.wrap,u&&k.libAllSelected),onClick:n},r.createElement("div",{className:g},r.createElement("div",{className:k.iconWrap},!!u&&r.createElement(p.Icon,{className:s()(k.icon,k.allSelectedIcon),icon:w})),r.createElement("div",{className:k.textBlock},r.createElement("div",{className:s()(k.title,!f&&!l&&k.titleWithoutDesc)},r.createElement(x.HighlightedText,{className:s()(d&&k.highlighted),queryString:o,text:t.name(),rules:h})),f&&r.createElement("div",{className:s()(k.description,"apply-overflow-tooltip")},r.createElement(x.HighlightedText,{className:k.highlighted,queryString:o,rules:h,text:v})))))}var I=n(77975),_=n(45345),N=n(26843),H=n(70613),D=n(70029),M=n(72802),T=n(90819);const L={emptyTextClassName:T.emptyText};function A(e){const{searchSources:t}=e,{setSelectedSearchSource:n,setMode:o,isMobile:i,emptyState:l,autofocus:c}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),u=(0,I.useWatchedValueReadonly)({watchedValue:_.watchedTheme})===N.StdTheme.Dark?D:M,[d,h]=(0,r.useState)(""),g=(0,r.useMemo)(()=>[{group:null,sources:(0,f.filterSearchSources)(t,d)}],[t,d]),b=(0, +r.useRef)(null),x=(0,r.useRef)(null);(0,r.useLayoutEffect)(()=>{var e;c&&(null===(e=null==b?void 0:b.current)||void 0===e||e.focus())},[]);const C=l?r.createElement(l,null):r.createElement(y,{className:T.noResultsDesktop},r.createElement(p.Icon,{icon:u}),r.createElement("div",{className:T.emptyText},(0,a.t)("No exchanges match your criteria"))),w=!(g.length&&g.every(e=>0===e.sources.length));return r.createElement(H.SymbolSearchDialogBodyContext.Provider,{value:L},r.createElement(v.DialogSearch,{placeholder:(0,a.t)("Search"),onChange:function(e){h(e.target.value),x&&x.current&&(x.current.scrollTop=0)},reference:b}),w?r.createElement("div",{ref:x,className:s()(T.contentList,!i&&T.contentListDesktop),onTouchStart:function(){var e;null===(e=b.current)||void 0===e||e.blur()}},g.map(e=>{const{group:t,sources:n}=e;return 0===n.length?r.createElement(r.Fragment,{key:t}):r.createElement(r.Fragment,{key:t},!1,r.createElement("div",{className:s()(T.searchSourceItemsContainer,!i&&T.searchSourceItemsContainerDesktop)},n.map(e=>r.createElement(E,{key:e.value(),searchSource:e,queryString:d,onClick:k.bind(null,e)}))))})):C);function k(e){n(e),o("symbolSearch")}}var F=n(87995),O=n(8128);n(76861),n(85198);function R(e){return e.hasOwnProperty("exchange")}async function B(e){return new Promise(t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",e=>{t(e)})})}var P=n(81319),W=n(78136),J=n(51768),z=n(68335),V=n(4825),q=n(20832),U=n(21740),Z=n(38927),G=n(43088),j=n(56584),K=n(19586),Q=n(74246);function $(e){var t;const{state:n,update:o}=e,{searchRef:s,forceUpdate:a,upperCaseEnabled:c}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),d=(0,i.tokenize)(null===(t=s.current)||void 0===t?void 0:t.value),h=(0,l.validate)(d);let p=[{icon:q,insert:"/",type:"binaryOp",name:"division"},{icon:U,insert:"-",type:"binaryOp",name:"subtraction"},{icon:Z,insert:"+",type:"binaryOp",name:"addition"},{icon:G,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(p=p.concat([{icon:j,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(p=p.concat([{icon:K,type:"complete",name:"1/x",callback:()=>{!s.current||h.errors.length||h.warnings.length||(s.current.value=(0,l.stringifyTokens)((0,l.flip)(d)),a())}}])),r.createElement("div",{className:Q.actions},p.map(e=>r.createElement(V.ToolWidgetButton,{className:Q.actionButton,icon:e.icon,key:e.name,isDisabled:Y(e,h),onClick:()=>function(e){var t;if(!Y(e,h)){if(e.insert&&s.current){const t=s.current.value+e.insert;s.current.value=t,s.current.setSelectionRange(t.length,t.length);const[r,,i]=(0,l.getCurrentTokenParamsFromInput)(s.current,c);n.current&&(n.current.selectedIndexValue=-1,n.current.searchSpreadsValue=(0,l.isSpread)(i),n.current.searchTokenValue=r),a(),o()}e.callback&&e.callback(),null===(t=s.current)||void 0===t||t.focus(),(0,J.trackEvent)("GUI","SS",e.name)}}(e)})))}function Y(e,t){let n=!1;if(!t.errors.length)switch(e.type){case"binaryOp": +n="var"===t.currentState;break;case"openBrace":n="var"!==t.currentState;break;case"closeBrace":n="var"===t.currentState&&t.braceBalance>0;break;case"complete":n=!t.errors.length&&!t.warnings.length}return!n}var X=n(90186),ee=n(74765);function te(e){const{title:t,isActive:n,isAnimated:r,activeColor:o,size:a="m",appearance:i="default",fontSize:l="m",className:c}=e;return s()(ee.bubble,n&&ee.active,o&&ee[o],t&&"apply-common-tooltip",a&&ee["size-"+a],l&&ee["fontSize-"+l],i&&ee["appearance-"+i],r&&ee.animated,c)}function ne(e){const{id:t,title:n,tabIndex:o,role:a,contentClassName:i,children:l,onClick:c,onMouseDown:u,reference:d,...h}=e;return r.createElement("span",{...(0,X.filterAriaProps)(h),...(0,X.filterDataProps)(h),id:t,title:n,tabIndex:o,role:a,className:te(e),onClick:c,onMouseDown:u,ref:d},r.createElement("span",{className:s()(ee.content,i)},l))}var re=n(99167);function oe(e){const{className:t,itemClassName:n,itemContentClassName:s,items:a,getItemTitle:i,getItemTooltip:l,getItemKey:c,checkItemIsActive:u,getItemColor:d,onBubbleClick:h,multiline:p,children:m,BubbleComponent:v=ne,reference:f,fontSize:g}=e;return r.createElement("div",{className:o(t,re.bubbles,p&&re.multiLine),ref:f},a.map((e,t)=>r.createElement(v,{key:c?c(e):t,id:c?c(e):t.toString(),className:o(re.bubble,n),contentClassName:s,onClick:function(){h(e)},onMouseDown:function(e){e.preventDefault()},isActive:!!u&&u(e),activeColor:d?d(e):void 0,fontSize:g,title:l?l(e):void 0},i(e))),m)}var se=n(61074),ae=n(69397),ie=n(9837),le=n.n(ie),ce=n(10381),ue=n(53474);function de(e){const{mode:t,setMode:n,searchRef:o,cachedInputValue:i,selectedSearchSource:l,isAllSearchSourcesSelected:c,upperCaseEnabled:u}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),d=(0,b.ensureNotNull)(l),h="symbolSearch"===t,v=c(d);return h?r.createElement("div",{className:s()(ue.flagWrap,"apply-common-tooltip"),title:(0,a.t)("Select source"),onClick:function(){o.current&&(i.current=u?o.current.value.toUpperCase():o.current.value);n("exchange")}},!!v&&r.createElement(p.Icon,{className:ue.icon,icon:w}),r.createElement("div",{className:ue.title},d.name()),r.createElement(ce.ToolWidgetCaret,{className:ue.caret,dropped:!1})):null}var he=n(77338);function pe(e){const{isSmallWidth:t,selectedSearchSource:n,searchSources:o}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),i=n&&o.length>1&&!(0,P.exchangeSelectDisabled)();return r.createElement("div",{className:s()(he.wrap,t&&he.small)},r.createElement("div",{className:he.item},r.createElement("div",{className:he.text},t?(0,a.t)("Symbol & description"):(0,a.t)("Symbol"))),r.createElement("div",{className:he.item},!t&&r.createElement("div",{className:he.text},(0,a.t)("Description")),i&&r.createElement("div",{className:he.exchange},r.createElement(de,null))))}var me=n(62820),ve=n(74915);function fe(e){const{onTouchMove:t,listRef:n,className:o,listWrapRef:a,virtualListKey:i,items:l,getItemSize:c,hideFeed:u}=e,{mode:d,isSmallWidth:h,handleListWidth:p}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),[v,f]=(0, +r.useState)(null),g=(0,r.useCallback)(e=>{const{index:t,style:n}=e;return r.createElement("div",{style:n},l[t])},[l]),y=(0,r.useCallback)(e=>(0,b.ensure)(l[e].key),[l]),x="watchlist"===d&&null!==v;return r.createElement(le(),{onMeasure:function(e){f(e.height),p(e.width)}},r.createElement("div",{ref:a,className:s()(ve.wrap,x&&ve.watchlist,u&&ve.noFeed,o),onTouchMove:t},r.createElement("div",{className:s()(ve.scrollContainer,u&&ve.noFeed)},x?r.createElement(ae.VariableSizeList,{key:i,ref:n,className:ve.listContainer,width:"100%",height:(0,b.ensureNotNull)(v),itemCount:l.length,itemSize:c,children:g,itemKey:y,overscanCount:20,direction:(0,me.isRtl)()?"rtl":"ltr"}):r.createElement("div",{className:s()(ve.listContainer,h&&ve.multiLineItemsContainer)},r.createElement(pe,null),...l))))}var ge=n(5648),ye=n(92540);const be=u.enabled("hide_image_invalid_symbol");function Se(e){const{token:t,state:n,otherSymbolsCount:o,onChangeSymbolTypeFilter:s,onResetFilters:a,onListTouchMove:i,brokerTitle:l,isBrokerChecked:c,onBrokerCheckboxChange:u,listRef:d,listWrapRef:h}=e,{mode:p,isMobile:v,selectedSymbolType:f,symbolTypes:g,feedItems:y,contentItem:b,emptyState:x=xe}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),C=l&&r.createElement(BrokerCheckbox,{brokerTitle:l,checked:c,onCheckboxChange:u}),w="symbolSearch"===p&&"good"===n,k=null!=b?b:ge.SymbolSearchDialogContentItem,E=(0,r.useMemo)(()=>y.map(e=>r.createElement(k,{...e,searchToken:t})),[y]);return r.createElement(r.Fragment,null,"symbolSearch"===p&&r.createElement(r.Fragment,null,g.length>0&&r.createElement(oe,{itemClassName:ye.symbolType,items:g,getItemTitle:e=>e.name,getItemKey:e=>e.value,checkItemIsActive:e=>e.value===f,onBubbleClick:s,multiline:!v},!v&&C),v&&g.length>0&&l&&r.createElement("div",{className:ye.brokerCheckboxWrap},C)),r.createElement(fe,{listRef:d,listWrapRef:h,onTouchMove:i,items:E,getItemSize:()=>we,hideFeed:!w}),"loading"===n&&r.createElement("div",{className:ye.spinnerWrap},r.createElement(se.Spinner,null)),"symbolSearch"===p&&r.createElement(r.Fragment,null,!1,"empty"===n&&r.createElement(x,null)))}function xe(e){const t=(0,I.useWatchedValueReadonly)({watchedValue:_.watchedTheme})===N.StdTheme.Dark?D:M;return r.createElement(y,{className:ye.noResultsDesktop},!be&&r.createElement(p.Icon,{icon:t}),r.createElement("div",{className:ye.emptyText},(0,a.t)("No symbols match your criteria")))}const Ce=(0,P.getDefaultSearchSource)(),we=52;function ke(e){const{mode:t,setMode:n,setSelectedIndex:o,isMobile:i,selectedSearchSource:c,setSelectedSearchSource:d,isAllSearchSourcesSelected:h,selectedSymbolType:p,setSelectedSymbolType:f,setRenderSymbolSearchList:g,searchRef:y,cachedInputValue:b,setSearchSpreads:x,showSpreadActions:C,selectedItem:w,onSearchFeedReady:k,forceUpdate:E,placeholder:I,initialScreen:_,footer:N,searchInput:D,upperCaseEnabled:M,externalInput:T,handleKeyDown:L,customSearchSymbols:A}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),V=(0,r.useRef)(t);V.current=t;const q=(0,r.useRef)(new AbortController),[U,Z]=(0,r.useState)(0),[G,j]=(0, +r.useState)("noop"),K=(0,r.useRef)(0),[Q,Y]=(0,r.useState)(b.current),X=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ne=(0,r.useRef)(null),re=(0,r.useRef)(null),{broker:oe=null,brokerId:se,brokerTitle:ae,isBrokerChecked:ie=!1,setIsBrokerChecked:le=(()=>{}),unhideSymbolSearchGroups:ce=""}={brokerId:void 0,brokerTitle:void 0};(0,r.useEffect)(()=>()=>{q.current.abort(),Ie()},[]),(0,r.useEffect)(()=>{(null==y?void 0:y.current)&&Y(y.current.value)},[]),(0,r.useEffect)(()=>{const e=y.current;if(e)return e.addEventListener("input",ge),e.addEventListener("focus",ke),e.addEventListener("select",fe),e.addEventListener("click",fe),e.addEventListener("keyup",Ee),T&&L&&e.addEventListener("keydown",L),()=>{e&&(e.removeEventListener("input",ge),e.removeEventListener("focus",ke),e.removeEventListener("select",fe),e.removeEventListener("click",fe),e.removeEventListener("keyup",Ee),T&&L&&e.removeEventListener("keydown",L))}},[L]),(0,r.useEffect)(()=>{Boolean(_)&&""===Q.trim()||(xe(Q,p,c),X.current&&(X.current.scrollTop=0))},[Q,p,c,ie,_]),(0,r.useEffect)(()=>{if(!w||!y.current)return;if(!u.enabled("show_spread_operators"))return y.current.value=w.symbol,void E();const e=R(w)?w.exchange:w.parent.exchange,t={name:w.symbol,exchange:e,prefix:w.prefix,fullName:w.full_name},[n,r]=(0,l.getNextSymbolInputValueAndPosition)(y.current,t,M);y.current.value=n,y.current.setSelectionRange(r,r),E()},[w]);const ue=(0,r.useCallback)(e=>k?k(e):e,[k]),de=null!=_?_:"div",he=Boolean(_)&&"symbolSearch"!==t,pe=null!=D?D:v.DialogSearch,me=(0,r.useMemo)(()=>({listRef:ee,resetRecommends:we,updateRecommends:xe,searchToken:Q,emptyTextClassName:ye.emptyText,isBrokerChecked:ie,symbolSearchState:G,currentMode:V}),[ee,Q,ie,G,V]);return r.createElement(H.SymbolSearchDialogBodyContext.Provider,{value:me},!(T&&"symbolSearch"===t)&&r.createElement(pe,{reference:y,className:s()(ye.search,M&&ye.upperCase),placeholder:I||(0,a.t)("Search")},C&&r.createElement($,{state:te,update:be})),he?r.createElement(de,null):r.createElement(Se,{token:Q,state:G,otherSymbolsCount:U,onListTouchMove:function(){var e;null===(e=y.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{value:t}=e;f(t),o(-1)},onResetFilters:function(){var e;f((0,P.getAllSymbolTypesValue)()),Ce&&d(Ce);le(!1),i||null===(e=y.current)||void 0===e||e.focus()},brokerTitle:ae,isBrokerChecked:ie,onBrokerCheckboxChange:function(e){le("on"!==e)},listRef:ee,listWrapRef:X}),N);function ve(){if(!y.current)return;const[e,t,n]=(0,l.getCurrentTokenParamsFromInput)(y.current,M);K.current=t,te.current={selectedIndexValue:-1,searchSpreadsValue:(0,l.isSpread)(n),searchTokenValue:e},ne.current||(ne.current=setTimeout(be,0))}function fe(){if(!y.current)return;const[,e]=(0,l.getCurrentTokenParamsFromInput)(y.current,M);e!==K.current&&ve()}function ge(){u.enabled("show_spread_operators")?ve():y.current&&(te.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:y.current.value},ne.current||(ne.current=setTimeout(be,0)))} +function be(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:n}=te.current;ne.current=null,(0,F.unstable_batchedUpdates)(()=>{x(n),o(e),Y(M?t.toUpperCase():t)})}async function xe(e,t,n){try{"noop"===G?j("loading"):(Ie(),re.current=setTimeout(()=>{j("loading")},500)),_e();const r=await async function(e,t,n,r){var o,s,a,i;const d=u.enabled("show_spread_operators")?(0,l.shortName)(t):null===(o=y.current)||void 0===o?void 0:o.value;let h;if(ie&&oe){const t=await(0,O.respectAbort)(e,oe.accountMetainfo());h=t.prefix}const p=u.enabled("show_spread_operators")?null!==(a=null!==(s=(0,l.getExchange)(t))&&void 0!==s?s:h)&&void 0!==a?a:null==r?void 0:r.getRequestExchangeValue():null==c?void 0:c.getRequestExchangeValue(),m=(0,l.getExchange)(t)||null===(i=r||c)||void 0===i?void 0:i.getRequestCountryValue(),v={serverHighlight:!1,text:d,exchange:p,country:m,type:n,lang:window.language||"",brokerId:se,onlyTradable:Boolean(se)&&ie,unhideSymbolSearchGroups:ce,signal:e},f=(0,W.getSearchRequestDelay)();void 0!==f&&await(0,O.delay)(e,f);return A?A(v):B(v)}(q.current.signal,e,t,n),o=ue(function(e,t=window.ChartApiInstance.symbolsGrouping()){var n;const r={},o=[];for(let s=0;s{const{defaultSearchSource:t,searchSources:n}=e,r=De.getValue("symboledit.exchangefilter","");return n.find(e=>e.value()===r)||t});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.exchangefilter",t.value())},[])]}function Te(e){const[t,n]=(0,r.useState)(()=>{if(1===e.types.length)return e.types[0].value;const t=De.getValue("symboledit.filter",(0,P.getAllSymbolTypesValue)());return e.types.find(e=>e.value===t)?t:(0,P.getAllSymbolTypesValue)()});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.filter",t)},[])]}var Le=n(36947),Ae=n(82708),Fe=n(6215);const Oe=(0,P.getAvailableSearchSources)(),Re=(0, +P.getDefaultSearchSource)(),Be=u.enabled("uppercase_instrument_names");function Pe(e){var t;const{onClose:n,initialMode:o,defaultValue:s="",showSpreadActions:h,hideMarkedListFlag:p,selectSearchOnInit:v=!0,onSearchComplete:g,onSearchFeedReady:y,dialogTitle:b=(0,a.t)("Symbol Search"),placeholder:S,fullscreen:x,initialScreen:C,wrapper:w,dialog:k,contentItem:E,footer:I,searchInput:_,emptyState:N,autofocus:H,dialogWidth:D,onKeyDown:M,searchSourcesScreen:T,customSearchSymbols:L,isDisableFiltering:F}=e,O=(0,r.useMemo)(()=>F?[]:e.symbolTypes?e.symbolTypes:(0,P.getAvailableSymbolTypes)(),[]),W=void 0!==e.input,J=F?[]:Oe,[V,q]=(0,r.useState)(o),U=(0,r.useRef)(s),[Z,G]=Me({searchSources:J,defaultSearchSource:Re}),[j,K]=Te({types:O}),[Q,$]=(0,r.useState)([]),[Y,X]=(0,r.useState)(!1),[ee,te]=(0,r.useState)(-1),ne=(0,r.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[re,oe]=(0,r.useState)(!1),se=(0,Le.useForceUpdate)(),[ae,ie]=(0,r.useState)(new Set),{broker:le=null,brokerId:ce,unhideSymbolSearchGroups:ue="",displayBrokerSymbol:de=!1}={brokerId:void 0};(0,r.useLayoutEffect)(()=>{var e;!(null==ne?void 0:ne.current)||!W&&Boolean(null===(e=ne.current)||void 0===e?void 0:e.value)||(W||"compare"===V||(ne.current.value=U.current),!H||W&&"symbolSearch"!==V||ne.current.focus())},[V]),(0,r.useEffect)(()=>{(null==ne?void 0:ne.current)&&v&&H&&ne.current.select()},[]);const he=(0,r.useMemo)(()=>Q.reduce((e,t)=>{const n=ze(t),r=ae.has(n);return e.push(t),r&&t.contracts&&e.push(...t.contracts.map(e=>({...e,parent:t}))),e},[]),[Q,ae]),pe=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;-1!==ee&&(null===(e=pe.current)||void 0===e||e.scrollIntoView({block:"nearest"}))},[ee,pe]);const me=(0,r.useMemo)(()=>he.map((e,t)=>{var n,r,o,s;if(R(e)){const o=ze(e),s=e.contracts?ae.has(o):void 0,a=t===ee;return{key:t,id:o,title:Je(e,de),description:e.description,isOffset:!1,onClick:xe.bind(null,e),providerId:e.provider_id,source:e.source,country:null===(n=e.country)||void 0===n?void 0:n.toLocaleLowerCase(),type:e.type,exchangeName:e.exchange,marketType:(0,Ne.marketType)(e.type,e.typespecs),isEod:null===(r=e.params)||void 0===r?void 0:r.includes("eod"),isExpanded:s,onExpandClick:e.contracts?Ce.bind(null,o):void 0,fullSymbolName:P.isOpenFirstContractEnabled&&e.contracts?He.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):He.QualifiedSources.fromSymbolSearchResult(e),itemRef:a?pe:void 0,isSelected:t===ee,hideMarkedListFlag:p,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ae.safeShortName)(He.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code}}{const{parent:n}=e,r=ze(n),a=t===ee;return{key:t,id:r+e.symbol,dangerousTitleHTML:Je(e,de),dangerousDescriptionHTML:`${n.description} (${e.description})`,isOffset:!0,isEod:null===(o=e.params)||void 0===o?void 0:o.includes("eod"),onClick:we.bind(null,e.parent,e),providerId:n.provider_id,country:null===(s=n.country)||void 0===s?void 0:s.toLowerCase(),type:n.type,exchangeName:n.exchange,marketType:(0, +Ne.marketType)(n.type,e.typespecs),fullSymbolName:He.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:a?pe:void 0,isSelected:a,hideMarkedListFlag:p,item:e}}}),[Q,ae,V,ee,M]),ve=null!=k?k:qe,fe=ve!==qe&&!W,ge=(e,t)=>({mode:V,setMode:q,selectedSearchSource:Z,setSelectedSearchSource:G,isAllSearchSourcesSelected:f.isAllSearchSourcesSelected,selectedSymbolType:j,setSelectedSymbolType:K,selectedIndex:ee,setSelectedIndex:te,onClose:n,setRenderSymbolSearchList:$,searchRef:ne,cachedInputValue:U,searchSpreads:Y,setSearchSpreads:X,handleListWidth:Ee,isSmallWidth:re,feedItems:me,isMobile:e,showSpreadActions:h,selectSearchOnInit:v,isTablet:t,selectedItem:he[ee],onSearchFeedReady:y,forceUpdate:se,placeholder:S,initialScreen:C,toggleExpand:Ce,openedItems:ae,onSubmit:Fe,onSearchComplete:g,footer:I,symbolTypes:O,contentItem:E,searchInput:_,emptyState:N,autofocus:H,upperCaseEnabled:Be,externalInput:W,handleKeyDown:fe?void 0:De,customSearchSymbols:L,searchSources:J}),ye=null!=T?T:A,be="exchange"===V?{title:(0,a.t)("Sources"),dataName:"exchanges-search",render:()=>r.createElement(ye,{searchSources:J}),additionalHeaderElement:r.createElement(_e,null),additionalElementPos:"before"}:{title:b,dataName:"symbol-search-items-dialog",render:()=>r.createElement(ke,null),additionalElementPos:"after"},Se=null!=w?w:"div";return r.createElement(Se,null,r.createElement(c.MatchMediaMap,{rules:d.DialogBreakpoints},({TabletSmall:e,TabletNormal:t})=>r.createElement(m.SymbolSearchItemsDialogContext.Provider,{value:ge(e,t)},r.createElement(ve,{...be,fullScreen:x,onClose:n,onClickOutside:n,onKeyDown:fe?void 0:De,isOpened:!0}))));function xe(e){if(e.contracts)return P.isOpenFirstContractEnabled&&e.contracts.length?void we(e,e.contracts[0]):void Ce(ze(e));we(e)}function Ce(e){const t=new Set(ae);t.has(e)?t.delete(e):t.add(e),ie(t)}function we(e,t){const r=t||e,{exchange:o}=e;if(u.enabled("show_spread_operators")){const e={name:r.symbol,exchange:o,prefix:r.prefix,fullName:r.full_name};if(Y)return Ie(e),void se();if(ne.current&&ne.current.value.includes(","))return void Ie(e)}const s=[{resolved:!0,symbol:He.QualifiedSources.fromSymbolSearchResult(e,t),result:r}];g(s),n()}function Ee(e){oe("fixed"===D||e<=640)}function Ie(e){if(!ne.current)return;const[t,n]=(0,l.getNextSymbolInputValueAndPosition)(ne.current,e,Be);ne.current.value=t,ne.current.setSelectionRange(n,n),ne.current.focus()}function De(e){switch((0,z.hashFromEvent)(e)){case 38:if(e.preventDefault(),0===ee)return;if(-1===ee)return void te(0);te(ee-1);break;case 40:if(e.preventDefault(),ee===me.length-1)return;te(ee+1);break;case 37:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||!ae.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(M)||(e.preventDefault(),Ce(n)),o)return void(null==M||M(e,!0));break}case 39:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||ae.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(M)||(e.preventDefault(),Ce(n)),o)return void(null==M||M(e,!0));break}case 13:e.preventDefault(),Fe(!0) +;break;case 27:e.preventDefault(),n()}null==M||M(e)}function Fe(e){if(!ne.current)return;const t=ne.current.value;if(u.enabled("show_spread_operators")&&Y&&t){if(t.includes(",")){const r=Ve(t);if(r.some(e=>!Pe(e)))return;return g(r.map(We)),void(e&&n())}if(!Pe(t))return;return g([{symbol:Be?t.toUpperCase():t,resolved:!1}]),void(e&&n())}if(t.includes(","))return g(Ve(t).map(We)),void(e&&n());if(-1!==ee){me[ee].onClick()}else{const r=Be?t.toUpperCase():t;if(r&&""!==r.trim()){const e=Ve(r);if(void 0!==ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map(e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==le?void 0:le.accountMetainfo()))||void 0===t||t.prefix;const n=await B({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:ce,onlyTradable:!0,unhideSymbolSearchGroups:ue,exchange:void 0});if(0!==n.length){const e=n[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,o=e.prefix||e.exchange,s=r?r.symbol:e.symbol;if(o&&s)return{symbol:He.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e))))})(e).then(e=>g(e));else{const t=e.map(We);g(t)}}e&&n()}}function Pe(e){const t=(0,i.tokenize)(e),n=(0,l.validate)(t);if(n.errors.length||n.warnings.length)return!1;const r=me[ee];return!r||void 0===r.isExpanded||(r.onClick(),!1)}}function We(e){return{symbol:Be?e.toUpperCase():e,resolved:!1}}function Je(e,t){const{broker_symbol:n,symbol:r}=e;return`${r}${t&&n?` (${n})`:""}`}function ze(e){return e.symbol+e.exchange+e.description}function Ve(e){return e.split(",").map(e=>e.trim()).filter(e=>""!==e)}function qe(e){const{isMobile:t,isTablet:n}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(h.AdaptivePopupDialog,{...e,className:s()(Fe.dialog,!t&&(n?Fe.tabletDialog:Fe.desktopDialog)),backdrop:!0,draggable:!1})}},15983:(e,t,n)=>{"use strict";n.d(t,{validate:()=>a,flip:()=>i,stringifyTokens:()=>l,isSpread:()=>u,shortName:()=>h,getExchange:()=>p,getNextSymbolInputValueAndPosition:()=>v,getCurrentTokenParamsFromInput:()=>f});var r=n(67337),o=n(7785),s=n(81319);function a(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(r.enabled("charting_library_base")&&!r.enabled("show_spread_operators"))return t;let n="init";const o=[];for(let r=0;r"symbol"===t.type&&o.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value,"")}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some(e=>c(e.type))}function d(e){e=function(e){const t=[];for(const n of e)"whitespace"!==n.type&&t.push(n);return t}(e);const t=[],n=[];let r;for(let o=0;os.precedence&&(n[n.length-1].minPrecedence=s.precedence);break;case"openBrace":r={minPrecedence:1/0,openBraceIndex:o},n.push(r);break;case"closeBrace":{if(r=n.pop(),!r)break;const s=e[r.openBraceIndex-1],a=e[o+1],i=s&&("plus"===s.type||"multiply"===s.type);(!c(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<=r.minPrecedence)&&(!c(null==s?void 0:s.type)||(null==s?void 0:s.precedence)<(null==r?void 0:r.minPrecedence)||(null==s?void 0:s.precedence)===(null==r?void 0:r.minPrecedence)&&i)&&(t.unshift(r.openBraceIndex),t.push(o),n.length&&n[n.length-1].minPrecedence>r.minPrecedence&&(n[n.length-1].minPrecedence=r.minPrecedence))}}}for(let n=t.length;n--;)e.splice(t[n],1);return e}function h(e){return d((0,o.tokenize)(e)).reduce((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,n]=m(t);return n?e+n:e},"")}function p(e){const t=function(e){const t=(0,o.tokenize)(e),n=[];return t.forEach(e=>{if("symbol"!==e.type)return;const[t]=m(e);t&&n.push(t)}),n}(e);if(1===t.length)return t[0]}function m(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}function v(e,t,n){const r=e.value,[a,i]=f(e,n),l=(0,s.getSymbolFullName)(t),c=o.symbolTokenEscapeRe.test(l)?`'${l}'`:l;return[r.substring(0,i)+c+r.substring(i+a.length),i+c.length]}function f(e,t){const{value:n,selectionStart:r}=e,s=(0,o.tokenize)(t?n.toUpperCase():n),a=function(e,t){for(let n=0;n{"use strict";n.d(t,{exchangeSelectDisabled:()=>p,getAllSymbolTypesValue:()=>h,getAvailableExchanges:()=>c,getAvailableSearchSources:()=>l,getAvailableSymbolTypes:()=>d,getDefaultSearchSource:()=>i,getSymbolFullName:()=>a,isOpenFirstContractEnabled:()=>m});var r=n(28353),o=n(20882);class s{constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,o.isAllSearchSourcesSelected)(this)?(0,r.t)("All sources"):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const n=t.toLowerCase(),{name:r,desc:o,searchTerms:s}=e;return r.toLowerCase().includes(n)||o.toLowerCase().includes(n)||void 0!==s&&s.some(e=>e.toLowerCase().includes(n))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}function a(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function i(){const e=l();return e.find(o.isAllSearchSourcesSelected)||e[0]||null}function l(){return(0,o.createSearchSources)(s,u())}function c(){return u()}function u(){return window.ChartApiInstance.supportedExchangesList().map(e=>({...e,country:"",providerId:"",flag:""}))}function d(){return window.ChartApiInstance.supportedSymbolsTypes()}function h(){return""}function p(){return!1}const m=!1},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},82708:(e,t,n)=>{"use strict";n.d(t,{safeShortName:()=>o});var r=n(82029);function o(e){try{return(0,r.shortName)(e)}catch(t){return e}}},7785:(e,t,n)=>{"use strict";n.d(t,{symbolTokenEscapeRe:()=>s,tokenize:()=>l});var r=n(67337);const o=r.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=/[+\-/*]/,a={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:o,incompleteSymbol:/'[^']*/,separatorPrefix:"###",openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},i=new RegExp(Object.values(a).map(e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t}).filter(e=>""!==e).concat(".").join("|"),"g");function l(e){if(!e)return[] +;const t=[],n=Object.keys(a);let r;for(;r=i.exec(e);){let e=!1;for(let o=n.length;o--;)if(r[o+1]){n[o]&&t.push({value:r[o+1],type:n[o],precedence:0,offset:r.index}),e=!0;break}e||t.push({value:r[0],type:"unparsed",precedence:0,offset:r.index})}return t}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>o,createRegExpList:()=>s,getHighlightedChars:()=>a});var r=n(80643);function o(e){const{data:t,rules:n,queryString:o,isPreventedFromFiltering:s,primaryKey:a,secondaryKey:i=a,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[a],s=e[i];let c,u=0;return n.forEach(e=>{var n,a,i,l;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===o.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,r.isString)(t)&&h.test(t)?(u=2,void(c=null===(a=t.match(h))||void 0===a?void 0:a.index)):(0,r.isString)(s)&&h.test(s)?(u=1,void(c=null===(i=s.match(h))||void 0===i?void 0:i.index)):void((0,r.isString)(s)&&d.test(s)&&(u=1,c=null===(l=s.match(d))||void 0===l?void 0:l.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>s||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function s(e,t){const n=[],r=e.toLowerCase(),o=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+i(e):i(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${i(e)})`,"i"),re:new RegExp("^"+o,"i"),reserveRe:new RegExp(o,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function a(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:o,reserveRe:s}=e;n.lastIndex=0,o.lastIndex=0;const a=n.exec(t),i=a||o.exec(t)||s&&s.exec(t);if(e.fuzzyHighlight=!a,i)if(e.fuzzyHighlight){let e=i.index;for(let t=1;t{"use strict";n.d(t,{HighlightedText:()=>i});var r=n(59496),o=n(97754),s=n(19785),a=n(81524);function i(e){const{queryString:t,rules:n,text:i,className:l}=e,c=(0,r.useMemo)(()=>(0,s.getHighlightedChars)(t,i,n),[t,n,i]);return r.createElement(r.Fragment,null,c.length?i.split("").map((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:o(a.highlighted,l)},e):r.createElement("span",null,e))):i)}},78036:(e,t,n)=>{"use strict";n.d(t,{useEnsuredContext:()=>s});var r=n(59496),o=n(88537);function s(e){return(0,o.ensureNotNull)((0,r.useContext)(e))}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>o});var r=n(59496);const o=()=>{const[,e]=(0,r.useReducer)((e,t)=>e+1,0);return e}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var r=n(59496),o=n(39640);function s(e){ +const{click:t,mouseDown:n,touchEnd:s,touchStart:a,handler:i,reference:l,ownerDocument:c=document}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:s,touchStart:a},r=l?l.current:u.current;return(0,o.addOutsideEventListener)(d.current,r,i,c,e)},[t,n,s,a,i]),l||u}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>o});var r=n(59496);const o=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,o="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,a]=(0,r.useState)(n?n.value():o);return(t?r.useLayoutEffect:r.useEffect)(()=>{if(n){a(n.value());const e=e=>a(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),s}},84877:(e,t,n)=>{"use strict";n.d(t,{MatchMediaMap:()=>a});var r=n(59496),o=n(66783),s=n.n(o);class a extends r.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=l(this.state.queries,(e,t)=>t.matches);let t=!1;for(const n in e)if(e.hasOwnProperty(n)&&this.state.matches[n]!==e[n]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=i(t)}shouldComponentUpdate(e,t){return!s()(e,this.props)||(!s()(t.rules,this.state.rules)||!s()(t.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(e,t){s()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(s()(e.rules,t.rules))return null;const{rules:n}=e;return i(n)}_migrate(e,t){null!==e&&l(e,(e,t)=>{t.removeListener(this._handleMediaChange)}),null!==t&&l(t,(e,t)=>{t.addListener(this._handleMediaChange)})}}function i(e){const t=l(e,(e,t)=>window.matchMedia(t));return{queries:t,matches:l(t,(e,t)=>t.matches),rules:{...e}}}function l(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(r,e[r]));return n}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>o});var r=n(59496);class o extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>a});var r=n(59496),o=n(97754),s=n(91626);function a(e){return r.createElement("div",{className:o(s.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict" +;n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>i});var r=n(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function i(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(a.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),o=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(o.Portal,null,s)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(59496),o=n(87995),s=n(9423),a=n(88216),i=n(50655);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"", +o.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=i.SlotContext;const c=r.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>o,SlotContext:()=>s});var r=n(59496);class o extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=r.createContext(null)},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>a});var r=n(59496),o=n(97754),s=n(33134);n(24780);function a(e){const t=o(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>l});var r=n(59496),o=n(97754),s=n(9745),a=n(40367),i=n(81268);function l(e){const{dropped:t,className:n}=e;return r.createElement(s.Icon,{className:o(n,a.icon,{[a.dropped]:t}),icon:i})}},81268:e=>{e.exports=''},64360:e=>{e.exports=''},29601:e=>{e.exports=''},37257:e=>{e.exports=''},70029:e=>{e.exports=''},72802:e=>{ +e.exports=''},5639:e=>{e.exports=''},88142:e=>{e.exports=''},20832:e=>{e.exports=''},19586:e=>{e.exports=''},21740:e=>{e.exports=''},43088:e=>{e.exports=''},38927:e=>{e.exports=''},56584:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/1614841ed51c3d3bebf01c2a573e83ee.svg b/charting_library/bundles/1614841ed51c3d3bebf01c2a573e83ee.svg new file mode 100644 index 00000000..316ce4f3 --- /dev/null +++ b/charting_library/bundles/1614841ed51c3d3bebf01c2a573e83ee.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1692.6d50aa9403d6d71eae69.css b/charting_library/bundles/1692.6d50aa9403d6d71eae69.css new file mode 100644 index 00000000..5da417bb --- /dev/null +++ b/charting_library/bundles/1692.6d50aa9403d6d71eae69.css @@ -0,0 +1 @@ +.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 2px 0 6px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-right:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/1692.6d50aa9403d6d71eae69.rtl.css b/charting_library/bundles/1692.6d50aa9403d6d71eae69.rtl.css new file mode 100644 index 00000000..3e50bfad --- /dev/null +++ b/charting_library/bundles/1692.6d50aa9403d6d71eae69.rtl.css @@ -0,0 +1 @@ +.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 6px 0 2px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-left:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/1726.a9cb37f68d1221bfa750.css b/charting_library/bundles/1726.a9cb37f68d1221bfa750.css new file mode 100644 index 00000000..e58be8d4 --- /dev/null +++ b/charting_library/bundles/1726.a9cb37f68d1221bfa750.css @@ -0,0 +1 @@ +.purchaseBlock-8RcOLBfK{display:flex;flex-direction:column;margin-top:40px}.responsive-container-media-mf-legacy-phone .purchaseBlock-8RcOLBfK{align-items:center;flex-direction:row;justify-content:flex-end}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .purchaseBlock-8RcOLBfK{align-items:center;flex-direction:row;justify-content:flex-end}}.pageContainer-yKAVl1gH{position:relative}.spinnerContainer-yKAVl1gH{background-color:#fff;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s;z-index:4}html.theme-dark .spinnerContainer-yKAVl1gH{background-color:#000}.loading-yKAVl1gH{pointer-events:none}.hide-yKAVl1gH{opacity:1;transition:opacity 0s}.title-yKAVl1gH{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:600;line-height:28px;margin:0}html.theme-dark .title-yKAVl1gH{color:#fff}.highlight-yKAVl1gH{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;margin-bottom:16px}html.theme-dark .highlight-yKAVl1gH{color:#d1d4dc}.tabs-yKAVl1gH{-webkit-overflow-scrolling:touch;align-items:center;box-sizing:border-box;display:flex;height:38px;margin-bottom:-5px;margin-top:10px;overflow-x:scroll;padding:0 5px;scrollbar-width:none}.tabs-yKAVl1gH.sb-scrollbar-wrap{display:none}.tabs-yKAVl1gH::-webkit-scrollbar{display:none;height:0;width:0}.tabs-yKAVl1gH::-webkit-scrollbar-thumb,.tabs-yKAVl1gH::-webkit-scrollbar-track{display:none}.tabs-yKAVl1gH::-webkit-scrollbar-corner{display:none}@media screen and (min-width:768px){.tabs-yKAVl1gH{margin-top:22px;padding:0 0 0 5px}}.responsive-container-media-mf-phone-vertical .tabs-yKAVl1gH{margin-top:0}@media screen and (min-width:320px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tabs-yKAVl1gH{margin-top:0}}.termsCheckboxContainer-yKAVl1gH{margin-top:16px}.responsive-container-media-mf-phone-landscape .termsCheckboxContainer-yKAVl1gH{margin-top:32px}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .termsCheckboxContainer-yKAVl1gH{margin-top:32px}}.purchaseBlock-yKAVl1gH{display:flex;flex-direction:column;margin-top:40px}.responsive-container-media-mf-legacy-phone .purchaseBlock-yKAVl1gH{align-items:center;flex-direction:row;justify-content:flex-end}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .purchaseBlock-yKAVl1gH{align-items:center;flex-direction:row;justify-content:flex-end}}.cardholderName-yKAVl1gH .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.title-3IsblctN{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:600;line-height:28px;padding:24px 0 8px}html.theme-dark .title-3IsblctN{color:#fff}@media screen and (min-width:768px){.title-3IsblctN{padding:40px 0 24px}}@media screen and (min-width:1280px){.title-3IsblctN{padding:30px 0 10px}}.responsive-container-media-mf-phone-vertical .title-3IsblctN{padding:24px 0 16px}@media screen and (min-width:320px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-3IsblctN{padding:24px 0 16px}}.responsive-container-media-mf-tablet-vertical .title-3IsblctN{padding:32px 0 8px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-3IsblctN{padding:32px 0 8px}}.cardForm-3IsblctN .formInput-3IsblctN{display:flex;flex-direction:column}.cardForm-3IsblctN .formInput-3IsblctN .input-3IsblctN{border:1px solid #d1d4dc;border-radius:4px;box-sizing:border-box;display:inline-block;font-size:14px;font-weight:600;height:48px;line-height:20px;padding:12px 8px;transition:border-color .3s;width:100%}html.theme-dark .cardForm-3IsblctN .formInput-3IsblctN .input-3IsblctN{border:1px solid #50535e}.cardForm-3IsblctN .button-container-3IsblctN{display:inline-block;position:relative}.cardForm-3IsblctN .addressField-3IsblctN .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries,.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-state,.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .order-input{border:1px solid #d1d4dc}@media (any-hover:hover){.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries:hover{border:1px solid #d1d4dc}}html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries,html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-state,html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .order-input{border:1px solid #50535e}@media (any-hover:hover){html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries:hover{border:1px solid #50535e}}.creditCardFormContainer-3IsblctN{border-radius:6px;display:flex;flex-direction:column}.creditCardFieldsContainer-3IsblctN{grid-gap:16px 16px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto}.responsive-container-media-mf-tablet-vertical .creditCardFieldsContainer-3IsblctN{align-items:flex-end;grid-template-columns:minmax(auto,50%) 1fr 1fr}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .creditCardFieldsContainer-3IsblctN{align-items:flex-end;grid-template-columns:minmax(auto,50%) 1fr 1fr}}.responsive-container-media-mf-desktop-large .creditCardFieldsContainer-3IsblctN{grid-template-columns:minmax(auto,50%) 1fr 1fr 1fr}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .creditCardFieldsContainer-3IsblctN{grid-template-columns:minmax(auto,50%) 1fr 1fr 1fr}}.creditCardFieldsContainer-3IsblctN .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.creditCardWrapper-3IsblctN{display:flex;position:relative}.cardTypeIcon-3IsblctN{color:#d1d4dc;height:20px;position:absolute;right:6px;top:14px;width:32px}html.theme-dark .cardTypeIcon-3IsblctN{color:#50535e}.cardNumber-3IsblctN{grid-column:1/3}.responsive-container-media-mf-tablet-vertical .cardNumber-3IsblctN{grid-column:1}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardNumber-3IsblctN{grid-column:1}}.cardholderName-3IsblctN{grid-column:1/3}.responsive-container-media-mf-tablet-vertical .cardholderName-3IsblctN{grid-column:1}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardholderName-3IsblctN{grid-column:1}}.responsive-container-media-mf-desktop-large .cardholderName-3IsblctN{grid-column:auto}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardholderName-3IsblctN{grid-column:auto}}.cardInput-3IsblctN{color:#131722;font-size:16px}html.theme-dark .cardInput-3IsblctN{color:#d1d4dc}.creditCardNumberInput-3IsblctN{padding-right:40px}#card-number.braintree-hosted-fields-focused,#cardholder-name.braintree-hosted-fields-focused,#cvv.braintree-hosted-fields-focused,#expiration-date.braintree-hosted-fields-focused,#postal-code.braintree-hosted-fields-focused,html.theme-dark #card-number.braintree-hosted-fields-focused,html.theme-dark #cardholder-name.braintree-hosted-fields-focused,html.theme-dark #cvv.braintree-hosted-fields-focused,html.theme-dark #expiration-date.braintree-hosted-fields-focused,html.theme-dark #postal-code.braintree-hosted-fields-focused{border-color:#2962ff}#card-number.braintree-hosted-fields-focused#card-number.braintree-hosted-fields-focused,#cardholder-name.braintree-hosted-fields-focused#cardholder-name.braintree-hosted-fields-focused,#cvv.braintree-hosted-fields-focused#cvv.braintree-hosted-fields-focused,#expiration-date.braintree-hosted-fields-focused#expiration-date.braintree-hosted-fields-focused,#postal-code.braintree-hosted-fields-focused#postal-code.braintree-hosted-fields-focused{border-width:2px;padding:11px}#card-number.braintree-hosted-fields-invalid,#cardholder-name.braintree-hosted-fields-invalid,#cvv.braintree-hosted-fields-invalid,#expiration-date.braintree-hosted-fields-invalid,#postal-code.braintree-hosted-fields-invalid{border-color:#f23645;border-width:1px;padding:12px}html.theme-dark #card-number.braintree-hosted-fields-invalid,html.theme-dark #cardholder-name.braintree-hosted-fields-invalid,html.theme-dark #cvv.braintree-hosted-fields-invalid,html.theme-dark #expiration-date.braintree-hosted-fields-invalid,html.theme-dark #postal-code.braintree-hosted-fields-invalid{border-color:#b22833}#card-number.braintree-hosted-fields-valid,#cardholder-name.braintree-hosted-fields-valid,#cvv.braintree-hosted-fields-valid,#expiration-date.braintree-hosted-fields-valid,#postal-code.braintree-hosted-fields-valid{border-color:#06806b;border-width:1px;padding:12px}html.theme-dark #card-number.braintree-hosted-fields-valid,html.theme-dark #cardholder-name.braintree-hosted-fields-valid,html.theme-dark #cvv.braintree-hosted-fields-valid,html.theme-dark #expiration-date.braintree-hosted-fields-valid,html.theme-dark #postal-code.braintree-hosted-fields-valid{border-color:#06806b}.nameInput-3IsblctN{padding-left:11px}.radio-MOJsE6Ae{margin:24px 0}.title-MOJsE6Ae{padding:24px 0 0}.responsive-container-media-mf-tablet-vertical .title-MOJsE6Ae{padding:20px 0 0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-MOJsE6Ae{padding:20px 0 0}}.responsive-container-media-mf-laptop .title-MOJsE6Ae{padding:32px 0 0}@media screen and (min-width:1280px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-MOJsE6Ae{padding:32px 0 0}}.actionBlock-MOJsE6Ae{align-items:flex-start;display:flex;flex-direction:column}.action-MOJsE6Ae{font-feature-settings:"tnum" on,"lnum" on;background:none;border:none;color:#2962ff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;padding:0;transition:color .35s ease}html.theme-dark .action-MOJsE6Ae{color:#2962ff}.action-MOJsE6Ae:visited{fill:#2962ff;color:#2962ff}html.theme-dark .action-MOJsE6Ae:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.action-MOJsE6Ae:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .action-MOJsE6Ae:hover{fill:#1e53e5;color:#1e53e5}}.action-MOJsE6Ae:focus{outline:auto}.action-MOJsE6Ae:focus-visible{outline:auto}.action-MOJsE6Ae:focus:not(:focus-visible){outline:none}.action-MOJsE6Ae:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .action-MOJsE6Ae:active{fill:#1848cc;color:#1848cc}.icon-MOJsE6Ae{align-items:center;display:flex;margin-right:8px}.radioButton-MOJsE6Ae{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .radioButton-MOJsE6Ae{color:#fff}.radioButton-MOJsE6Ae.radioButtonColor-MOJsE6Ae span{color:#131722}html.theme-dark .radioButton-MOJsE6Ae.radioButtonColor-MOJsE6Ae span{color:#fff}.iconWrapper-MOJsE6Ae{display:flex}.title-eSrDwvYT{padding-bottom:16px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-eSrDwvYT{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-eSrDwvYT{padding-top:32px}}.description-eSrDwvYT{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;margin-bottom:32px}.description-eSrDwvYT,.description-eSrDwvYT .accent-eSrDwvYT{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.description-eSrDwvYT .accent-eSrDwvYT{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:600}.description-eSrDwvYT .block-eSrDwvYT{margin-bottom:8px}.description-eSrDwvYT .listOfCrypto-eSrDwvYT{list-style:none;margin-bottom:16px}.description-eSrDwvYT .vital-eSrDwvYT{margin-bottom:24px}.link-eSrDwvYT{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-eSrDwvYT{color:#2962ff}.link-eSrDwvYT:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-eSrDwvYT:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-eSrDwvYT:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-eSrDwvYT:hover{fill:#1e53e5;color:#1e53e5}}.link-eSrDwvYT:focus{outline:auto}.link-eSrDwvYT:focus-visible{outline:auto}.link-eSrDwvYT:focus:not(:focus-visible){outline:none}.link-eSrDwvYT:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-eSrDwvYT:active{fill:#1848cc;color:#1848cc}.link-Gp0emyGe{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-Gp0emyGe{color:#2962ff}.link-Gp0emyGe:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-Gp0emyGe:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-Gp0emyGe:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-Gp0emyGe:hover{fill:#1e53e5;color:#1e53e5}}.link-Gp0emyGe:focus{outline:auto}.link-Gp0emyGe:focus-visible{outline:auto}.link-Gp0emyGe:focus:not(:focus-visible){outline:none}.link-Gp0emyGe:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-Gp0emyGe:active{fill:#1848cc;color:#1848cc}.description-Gp0emyGe{font-size:16px;line-height:24px;margin-bottom:20px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .description-Gp0emyGe{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .description-Gp0emyGe{padding-top:32px}}.title-hLncX8Ky{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-hLncX8Ky{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-hLncX8Ky{padding-top:32px}}.description-hLncX8Ky{font-size:16px;line-height:24px;margin-bottom:20px}.paypalButton-hLncX8Ky{margin:0 auto;max-width:100%;position:relative;text-align:right;width:-webkit-fill-available;width:fill-available}.responsive-container-media-mf-legacy-phone .paypalButton-hLncX8Ky{width:250px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .paypalButton-hLncX8Ky{width:250px}}.disabled-hLncX8Ky{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;z-index:100}.hidden-hLncX8Ky{display:none}.title-vJ96rZdD{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-vJ96rZdD{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-vJ96rZdD{padding-top:32px}}.description-vJ96rZdD{font-size:16px;line-height:24px;margin-bottom:20px}.apple-pay-container-vJ96rZdD{height:48px;margin:0 auto;max-width:750px;min-width:240px;position:relative;width:100%}.termsCheckboxContainer-vJ96rZdD{margin-top:24px}.hidden-vJ96rZdD{display:none}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button-with-text-vJ96rZdD{-apple-pay-button-type:buy;-webkit-appearance:-apple-pay-button;display:inline-block;height:inherit;width:100%}.apple-pay-button-with-text-white-vJ96rZdD{-apple-pay-button-style:#000}.apple-pay-button-with-text-black-vJ96rZdD{-apple-pay-button-style:#fff}.apple-pay-button-with-text-vJ96rZdD>*{display:none}}.title-9F7Jqc3D{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-9F7Jqc3D{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-9F7Jqc3D{padding-top:32px}}.description-9F7Jqc3D{font-size:16px;line-height:24px;margin-bottom:20px}.google-pay-container-9F7Jqc3D{height:48px;max-width:100%;min-width:240px;position:relative;width:100%}@media screen and (min-width:1024px){.google-pay-container-9F7Jqc3D{height:40px}}.google-pay-button-9F7Jqc3D{height:inherit}.hidden-9F7Jqc3D{display:none}.success-zMRBI9iz{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:40px 20px}.responsive-container-media-mf-legacy-phone .success-zMRBI9iz{padding-top:120px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .success-zMRBI9iz{padding-top:120px}}.successText-zMRBI9iz{font-size:24px;font-weight:600;line-height:32px;margin:24px 0 8px}.descriptionText-zMRBI9iz{font-size:18px;line-height:28px}.lastText-zMRBI9iz{margin-bottom:40px}.icon-zMRBI9iz{height:120px;width:120px}.button-zMRBI9iz{width:100%}.responsive-container-media-mf-legacy-phone .button-zMRBI9iz{width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-zMRBI9iz{width:auto}}.error-SnZhQzb8{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:40px;text-align:center}.responsive-container-media-mf-legacy-phone .error-SnZhQzb8{padding-top:120px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .error-SnZhQzb8{padding-top:120px}}.responsive-container-media-mf-tablet-vertical .error-SnZhQzb8{padding-left:40px;padding-right:40px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .error-SnZhQzb8{padding-left:40px;padding-right:40px}}.errorCountry-SnZhQzb8{align-items:start;padding:32px 0 0;text-align:initial}.responsive-container-media-mf-legacy-phone .errorCountry-SnZhQzb8{padding-top:32px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .errorCountry-SnZhQzb8{padding-top:32px}}.responsive-container-media-mf-tablet-vertical .errorCountry-SnZhQzb8{padding-left:0;padding-right:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .errorCountry-SnZhQzb8{padding-left:0;padding-right:0}}.errorTitleWrapper-SnZhQzb8{align-items:center;display:flex;margin-bottom:8px}.errorText-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin:16px 0 8px}.errorCountryText-SnZhQzb8{margin:0 0 0 16px}.descriptionText-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.descriptionText-SnZhQzb8:first-letter{text-transform:uppercase}.lastText-SnZhQzb8{margin-bottom:32px}.errorCountryLastText-SnZhQzb8{margin-bottom:16px}.secondButton-SnZhQzb8:first-child{margin:0 0 16px}.responsive-container-media-mf-legacy-phone .secondButton-SnZhQzb8:first-child{margin:0 16px 0 0}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .secondButton-SnZhQzb8:first-child{margin:0 16px 0 0}}.icon-SnZhQzb8{height:44px;width:44px}.button-SnZhQzb8{width:100%}.responsive-container-media-mf-legacy-phone .button-SnZhQzb8{width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-SnZhQzb8{width:auto}}.solutionWrapper-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:20px;padding-left:27px}.solutions-SnZhQzb8{text-align:left}.itemLink-SnZhQzb8{color:#2962ff}.price-row-RlX7XxW1{color:#131722;display:flex;margin-top:16px}html.theme-dark .price-row-RlX7XxW1{color:#d1d4dc}.responsive-container-media-mf-phone-landscape .price-row-RlX7XxW1{margin-top:32px}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .price-row-RlX7XxW1{margin-top:32px}}.total-title-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.total-number-RlX7XxW1,.total-title-RlX7XxW1{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.total-number-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-left:auto}.tax-row-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .tax-row-RlX7XxW1{color:#787b86}.policyCheckbox-LSoXiIEh{align-items:center;display:flex;flex-direction:row}.checkboxLabel-LSoXiIEh{font-feature-settings:"tnum" on,"lnum" on;color:#131722;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;line-height:21px;margin-left:8px;margin-top:-2px}html.theme-dark .checkboxLabel-LSoXiIEh{color:#fff}.checkboxLabel-LSoXiIEh .link{color:#2962ff;transition:color .35s ease}html.theme-dark .checkboxLabel-LSoXiIEh .link{color:#2962ff}.checkboxLabel-LSoXiIEh .link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .checkboxLabel-LSoXiIEh .link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.checkboxLabel-LSoXiIEh .link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .checkboxLabel-LSoXiIEh .link:hover{fill:#1e53e5;color:#1e53e5}}.checkboxLabel-LSoXiIEh .link:focus{outline:auto}.checkboxLabel-LSoXiIEh .link:focus-visible{outline:auto}.checkboxLabel-LSoXiIEh .link:focus:not(:focus-visible){outline:none}.checkboxLabel-LSoXiIEh .link:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .checkboxLabel-LSoXiIEh .link:active{fill:#1848cc;color:#1848cc}.checkbox-LSoXiIEh{align-self:flex-start;display:flex}.round-tabs-K7mS8XY3{display:flex}.round-tabs-K7mS8XY3.align-start-K7mS8XY3{justify-content:flex-start}.round-tabs-K7mS8XY3.align-center-K7mS8XY3{justify-content:center}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}@media (any-hover:hover){.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:hover{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:active{--ui-lib-button-default-color-bg:#d1d4dc;--ui-lib-button-default-color-border:#d1d4dc;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#434651}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#2962ff}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3{--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3{--ui-lib-button-default-color-content:#d1d4dc}@media (any-hover:hover){.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:hover{--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:hover{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#363a45}}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:active{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}.size-xsmall-K7mS8XY3{margin:-6px 0}.size-xsmall-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:6px;margin-top:6px}.size-xsmall-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-right:12px}.size-small-K7mS8XY3{margin:-8px 0}.size-small-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:8px;margin-top:8px}.size-small-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-right:16px}.size-large-K7mS8XY3{margin:-8px 0}.size-large-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:8px;margin-top:8px}.size-large-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-right:16px}.addressField-MIHsGXyq .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.invalidInput-MIHsGXyq{font-size:16px}.focusInput-MIHsGXyq{color:#131722;font-size:16px}html.theme-dark .focusInput-MIHsGXyq{color:#d1d4dc}.cardInput-MIHsGXyq{color:#c5cbce;font-size:16px}.validInput-MIHsGXyq{font-size:16px}.addressFieldsContainer-MIHsGXyq{grid-gap:17px 20px;display:grid;grid-template-columns:1fr;grid-template-rows:auto}.responsive-container-media-mf-phone-landscape .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr}}.responsive-container-media-mf-desktop-large .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr 1fr}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr 1fr}}.additionalFieldsContainer-MIHsGXyq{grid-gap:17px 20px;display:grid;grid-column:1/2;grid-template-columns:1fr;grid-template-rows:auto}.responsive-container-media-mf-phone-landscape .additionalFieldsContainer-MIHsGXyq{grid-column:1/3;grid-template-columns:1fr 1fr}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .additionalFieldsContainer-MIHsGXyq{grid-column:1/3;grid-template-columns:1fr 1fr}} \ No newline at end of file diff --git a/charting_library/bundles/1726.a9cb37f68d1221bfa750.rtl.css b/charting_library/bundles/1726.a9cb37f68d1221bfa750.rtl.css new file mode 100644 index 00000000..4b568d6f --- /dev/null +++ b/charting_library/bundles/1726.a9cb37f68d1221bfa750.rtl.css @@ -0,0 +1 @@ +.purchaseBlock-8RcOLBfK{display:flex;flex-direction:column;margin-top:40px}.responsive-container-media-mf-legacy-phone .purchaseBlock-8RcOLBfK{align-items:center;flex-direction:row;justify-content:flex-end}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .purchaseBlock-8RcOLBfK{align-items:center;flex-direction:row;justify-content:flex-end}}.pageContainer-yKAVl1gH{position:relative}.spinnerContainer-yKAVl1gH{background-color:#fff;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s;z-index:4}html.theme-dark .spinnerContainer-yKAVl1gH{background-color:#000}.loading-yKAVl1gH{pointer-events:none}.hide-yKAVl1gH{opacity:1;transition:opacity 0s}.title-yKAVl1gH{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:600;line-height:28px;margin:0}html.theme-dark .title-yKAVl1gH{color:#fff}.highlight-yKAVl1gH{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;margin-bottom:16px}html.theme-dark .highlight-yKAVl1gH{color:#d1d4dc}.tabs-yKAVl1gH{-webkit-overflow-scrolling:touch;align-items:center;box-sizing:border-box;display:flex;height:38px;margin-bottom:-5px;margin-top:10px;overflow-x:scroll;padding:0 5px;scrollbar-width:none}.tabs-yKAVl1gH.sb-scrollbar-wrap{display:none}.tabs-yKAVl1gH::-webkit-scrollbar{display:none;height:0;width:0}.tabs-yKAVl1gH::-webkit-scrollbar-thumb,.tabs-yKAVl1gH::-webkit-scrollbar-track{display:none}.tabs-yKAVl1gH::-webkit-scrollbar-corner{display:none}@media screen and (min-width:768px){.tabs-yKAVl1gH{margin-top:22px;padding:0 5px 0 0}}.responsive-container-media-mf-phone-vertical .tabs-yKAVl1gH{margin-top:0}@media screen and (min-width:320px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tabs-yKAVl1gH{margin-top:0}}.termsCheckboxContainer-yKAVl1gH{margin-top:16px}.responsive-container-media-mf-phone-landscape .termsCheckboxContainer-yKAVl1gH{margin-top:32px}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .termsCheckboxContainer-yKAVl1gH{margin-top:32px}}.purchaseBlock-yKAVl1gH{display:flex;flex-direction:column;margin-top:40px}.responsive-container-media-mf-legacy-phone .purchaseBlock-yKAVl1gH{align-items:center;flex-direction:row;justify-content:flex-end}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .purchaseBlock-yKAVl1gH{align-items:center;flex-direction:row;justify-content:flex-end}}.cardholderName-yKAVl1gH .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.title-3IsblctN{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:600;line-height:28px;padding:24px 0 8px}html.theme-dark .title-3IsblctN{color:#fff}@media screen and (min-width:768px){.title-3IsblctN{padding:40px 0 24px}}@media screen and (min-width:1280px){.title-3IsblctN{padding:30px 0 10px}}.responsive-container-media-mf-phone-vertical .title-3IsblctN{padding:24px 0 16px}@media screen and (min-width:320px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-3IsblctN{padding:24px 0 16px}}.responsive-container-media-mf-tablet-vertical .title-3IsblctN{padding:32px 0 8px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-3IsblctN{padding:32px 0 8px}}.cardForm-3IsblctN .formInput-3IsblctN{display:flex;flex-direction:column}.cardForm-3IsblctN .formInput-3IsblctN .input-3IsblctN{border:1px solid #d1d4dc;border-radius:4px;box-sizing:border-box;display:inline-block;font-size:14px;font-weight:600;height:48px;line-height:20px;padding:12px 8px;transition:border-color .3s;width:100%}html.theme-dark .cardForm-3IsblctN .formInput-3IsblctN .input-3IsblctN{border:1px solid #50535e}.cardForm-3IsblctN .button-container-3IsblctN{display:inline-block;position:relative}.cardForm-3IsblctN .addressField-3IsblctN .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries,.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-state,.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .order-input{border:1px solid #d1d4dc}@media (any-hover:hover){.cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries:hover{border:1px solid #d1d4dc}}html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries,html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-state,html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .order-input{border:1px solid #50535e}@media (any-hover:hover){html.theme-dark .cardForm-3IsblctN .addressField-3IsblctN .order-field-container .choice-countries:hover{border:1px solid #50535e}}.creditCardFormContainer-3IsblctN{border-radius:6px;display:flex;flex-direction:column}.creditCardFieldsContainer-3IsblctN{grid-gap:16px 16px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto}.responsive-container-media-mf-tablet-vertical .creditCardFieldsContainer-3IsblctN{align-items:flex-end;grid-template-columns:minmax(auto,50%) 1fr 1fr}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .creditCardFieldsContainer-3IsblctN{align-items:flex-end;grid-template-columns:minmax(auto,50%) 1fr 1fr}}.responsive-container-media-mf-desktop-large .creditCardFieldsContainer-3IsblctN{grid-template-columns:minmax(auto,50%) 1fr 1fr 1fr}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .creditCardFieldsContainer-3IsblctN{grid-template-columns:minmax(auto,50%) 1fr 1fr 1fr}}.creditCardFieldsContainer-3IsblctN .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.creditCardWrapper-3IsblctN{display:flex;position:relative}.cardTypeIcon-3IsblctN{color:#d1d4dc;height:20px;position:absolute;right:6px;top:14px;width:32px}html.theme-dark .cardTypeIcon-3IsblctN{color:#50535e}.cardNumber-3IsblctN{grid-column:1/3}.responsive-container-media-mf-tablet-vertical .cardNumber-3IsblctN{grid-column:1}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardNumber-3IsblctN{grid-column:1}}.cardholderName-3IsblctN{grid-column:1/3}.responsive-container-media-mf-tablet-vertical .cardholderName-3IsblctN{grid-column:1}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardholderName-3IsblctN{grid-column:1}}.responsive-container-media-mf-desktop-large .cardholderName-3IsblctN{grid-column:auto}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .cardholderName-3IsblctN{grid-column:auto}}.cardInput-3IsblctN{color:#131722;font-size:16px}html.theme-dark .cardInput-3IsblctN{color:#d1d4dc}.creditCardNumberInput-3IsblctN{padding-left:40px}#card-number.braintree-hosted-fields-focused,#cardholder-name.braintree-hosted-fields-focused,#cvv.braintree-hosted-fields-focused,#expiration-date.braintree-hosted-fields-focused,#postal-code.braintree-hosted-fields-focused,html.theme-dark #card-number.braintree-hosted-fields-focused,html.theme-dark #cardholder-name.braintree-hosted-fields-focused,html.theme-dark #cvv.braintree-hosted-fields-focused,html.theme-dark #expiration-date.braintree-hosted-fields-focused,html.theme-dark #postal-code.braintree-hosted-fields-focused{border-color:#2962ff}#card-number.braintree-hosted-fields-focused#card-number.braintree-hosted-fields-focused,#cardholder-name.braintree-hosted-fields-focused#cardholder-name.braintree-hosted-fields-focused,#cvv.braintree-hosted-fields-focused#cvv.braintree-hosted-fields-focused,#expiration-date.braintree-hosted-fields-focused#expiration-date.braintree-hosted-fields-focused,#postal-code.braintree-hosted-fields-focused#postal-code.braintree-hosted-fields-focused{border-width:2px;padding:11px}#card-number.braintree-hosted-fields-invalid,#cardholder-name.braintree-hosted-fields-invalid,#cvv.braintree-hosted-fields-invalid,#expiration-date.braintree-hosted-fields-invalid,#postal-code.braintree-hosted-fields-invalid{border-color:#f23645;border-width:1px;padding:12px}html.theme-dark #card-number.braintree-hosted-fields-invalid,html.theme-dark #cardholder-name.braintree-hosted-fields-invalid,html.theme-dark #cvv.braintree-hosted-fields-invalid,html.theme-dark #expiration-date.braintree-hosted-fields-invalid,html.theme-dark #postal-code.braintree-hosted-fields-invalid{border-color:#b22833}#card-number.braintree-hosted-fields-valid,#cardholder-name.braintree-hosted-fields-valid,#cvv.braintree-hosted-fields-valid,#expiration-date.braintree-hosted-fields-valid,#postal-code.braintree-hosted-fields-valid{border-color:#06806b;border-width:1px;padding:12px}html.theme-dark #card-number.braintree-hosted-fields-valid,html.theme-dark #cardholder-name.braintree-hosted-fields-valid,html.theme-dark #cvv.braintree-hosted-fields-valid,html.theme-dark #expiration-date.braintree-hosted-fields-valid,html.theme-dark #postal-code.braintree-hosted-fields-valid{border-color:#06806b}.nameInput-3IsblctN{padding-right:11px}.radio-MOJsE6Ae{margin:24px 0}.title-MOJsE6Ae{padding:24px 0 0}.responsive-container-media-mf-tablet-vertical .title-MOJsE6Ae{padding:20px 0 0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-MOJsE6Ae{padding:20px 0 0}}.responsive-container-media-mf-laptop .title-MOJsE6Ae{padding:32px 0 0}@media screen and (min-width:1280px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-MOJsE6Ae{padding:32px 0 0}}.actionBlock-MOJsE6Ae{align-items:flex-start;display:flex;flex-direction:column}.action-MOJsE6Ae{font-feature-settings:"tnum" on,"lnum" on;background:none;border:none;color:#2962ff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;padding:0;transition:color .35s ease}html.theme-dark .action-MOJsE6Ae{color:#2962ff}.action-MOJsE6Ae:visited{fill:#2962ff;color:#2962ff}html.theme-dark .action-MOJsE6Ae:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.action-MOJsE6Ae:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .action-MOJsE6Ae:hover{fill:#1e53e5;color:#1e53e5}}.action-MOJsE6Ae:focus{outline:auto}.action-MOJsE6Ae:focus-visible{outline:auto}.action-MOJsE6Ae:focus:not(:focus-visible){outline:none}.action-MOJsE6Ae:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .action-MOJsE6Ae:active{fill:#1848cc;color:#1848cc}.icon-MOJsE6Ae{align-items:center;display:flex;margin-left:8px}.radioButton-MOJsE6Ae{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .radioButton-MOJsE6Ae{color:#fff}.radioButton-MOJsE6Ae.radioButtonColor-MOJsE6Ae span{color:#131722}html.theme-dark .radioButton-MOJsE6Ae.radioButtonColor-MOJsE6Ae span{color:#fff}.iconWrapper-MOJsE6Ae{display:flex}.title-eSrDwvYT{padding-bottom:16px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-eSrDwvYT{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-eSrDwvYT{padding-top:32px}}.description-eSrDwvYT{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;margin-bottom:32px}.description-eSrDwvYT,.description-eSrDwvYT .accent-eSrDwvYT{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.description-eSrDwvYT .accent-eSrDwvYT{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:600}.description-eSrDwvYT .block-eSrDwvYT{margin-bottom:8px}.description-eSrDwvYT .listOfCrypto-eSrDwvYT{list-style:none;margin-bottom:16px}.description-eSrDwvYT .vital-eSrDwvYT{margin-bottom:24px}.link-eSrDwvYT{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-eSrDwvYT{color:#2962ff}.link-eSrDwvYT:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-eSrDwvYT:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-eSrDwvYT:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-eSrDwvYT:hover{fill:#1e53e5;color:#1e53e5}}.link-eSrDwvYT:focus{outline:auto}.link-eSrDwvYT:focus-visible{outline:auto}.link-eSrDwvYT:focus:not(:focus-visible){outline:none}.link-eSrDwvYT:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-eSrDwvYT:active{fill:#1848cc;color:#1848cc}.link-Gp0emyGe{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-Gp0emyGe{color:#2962ff}.link-Gp0emyGe:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-Gp0emyGe:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-Gp0emyGe:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-Gp0emyGe:hover{fill:#1e53e5;color:#1e53e5}}.link-Gp0emyGe:focus{outline:auto}.link-Gp0emyGe:focus-visible{outline:auto}.link-Gp0emyGe:focus:not(:focus-visible){outline:none}.link-Gp0emyGe:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-Gp0emyGe:active{fill:#1848cc;color:#1848cc}.description-Gp0emyGe{font-size:16px;line-height:24px;margin-bottom:20px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .description-Gp0emyGe{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .description-Gp0emyGe{padding-top:32px}}.title-hLncX8Ky{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-hLncX8Ky{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-hLncX8Ky{padding-top:32px}}.description-hLncX8Ky{font-size:16px;line-height:24px;margin-bottom:20px}.paypalButton-hLncX8Ky{margin:0 auto;max-width:100%;position:relative;text-align:left;width:-webkit-fill-available;width:fill-available}.responsive-container-media-mf-legacy-phone .paypalButton-hLncX8Ky{width:250px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .paypalButton-hLncX8Ky{width:250px}}.disabled-hLncX8Ky{bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;z-index:100}.hidden-hLncX8Ky{display:none}.title-vJ96rZdD{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-vJ96rZdD{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-vJ96rZdD{padding-top:32px}}.description-vJ96rZdD{font-size:16px;line-height:24px;margin-bottom:20px}.apple-pay-container-vJ96rZdD{height:48px;margin:0 auto;max-width:750px;min-width:240px;position:relative;width:100%}.termsCheckboxContainer-vJ96rZdD{margin-top:24px}.hidden-vJ96rZdD{display:none}@supports (-webkit-appearance:-apple-pay-button){.apple-pay-button-with-text-vJ96rZdD{-apple-pay-button-type:buy;-webkit-appearance:-apple-pay-button;display:inline-block;height:inherit;width:100%}.apple-pay-button-with-text-white-vJ96rZdD{-apple-pay-button-style:#000}.apple-pay-button-with-text-black-vJ96rZdD{-apple-pay-button-style:#fff}.apple-pay-button-with-text-vJ96rZdD>*{display:none}}.title-9F7Jqc3D{padding-bottom:10px;padding-top:24px}.responsive-container-media-mf-tablet-vertical .title-9F7Jqc3D{padding-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .title-9F7Jqc3D{padding-top:32px}}.description-9F7Jqc3D{font-size:16px;line-height:24px;margin-bottom:20px}.google-pay-container-9F7Jqc3D{height:48px;max-width:100%;min-width:240px;position:relative;width:100%}@media screen and (min-width:1024px){.google-pay-container-9F7Jqc3D{height:40px}}.google-pay-button-9F7Jqc3D{height:inherit}.hidden-9F7Jqc3D{display:none}.success-zMRBI9iz{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:40px 20px}.responsive-container-media-mf-legacy-phone .success-zMRBI9iz{padding-top:120px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .success-zMRBI9iz{padding-top:120px}}.successText-zMRBI9iz{font-size:24px;font-weight:600;line-height:32px;margin:24px 0 8px}.descriptionText-zMRBI9iz{font-size:18px;line-height:28px}.lastText-zMRBI9iz{margin-bottom:40px}.icon-zMRBI9iz{height:120px;width:120px}.button-zMRBI9iz{width:100%}.responsive-container-media-mf-legacy-phone .button-zMRBI9iz{width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-zMRBI9iz{width:auto}}.error-SnZhQzb8{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:40px;text-align:center}.responsive-container-media-mf-legacy-phone .error-SnZhQzb8{padding-top:120px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .error-SnZhQzb8{padding-top:120px}}.responsive-container-media-mf-tablet-vertical .error-SnZhQzb8{padding-left:40px;padding-right:40px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .error-SnZhQzb8{padding-left:40px;padding-right:40px}}.errorCountry-SnZhQzb8{align-items:start;padding:32px 0 0;text-align:initial}.responsive-container-media-mf-legacy-phone .errorCountry-SnZhQzb8{padding-top:32px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .errorCountry-SnZhQzb8{padding-top:32px}}.responsive-container-media-mf-tablet-vertical .errorCountry-SnZhQzb8{padding-left:0;padding-right:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .errorCountry-SnZhQzb8{padding-left:0;padding-right:0}}.errorTitleWrapper-SnZhQzb8{align-items:center;display:flex;margin-bottom:8px}.errorText-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin:16px 0 8px}.errorCountryText-SnZhQzb8{margin:0 16px 0 0}.descriptionText-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.descriptionText-SnZhQzb8:first-letter{text-transform:uppercase}.lastText-SnZhQzb8{margin-bottom:32px}.errorCountryLastText-SnZhQzb8{margin-bottom:16px}.secondButton-SnZhQzb8:first-child{margin:0 0 16px}.responsive-container-media-mf-legacy-phone .secondButton-SnZhQzb8:first-child{margin:0 0 0 16px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .secondButton-SnZhQzb8:first-child{margin:0 0 0 16px}}.icon-SnZhQzb8{height:44px;width:44px}.button-SnZhQzb8{width:100%}.responsive-container-media-mf-legacy-phone .button-SnZhQzb8{width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-SnZhQzb8{width:auto}}.solutionWrapper-SnZhQzb8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:20px;padding-right:27px}.solutions-SnZhQzb8{text-align:right}.itemLink-SnZhQzb8{color:#2962ff}.price-row-RlX7XxW1{color:#131722;display:flex;margin-top:16px}html.theme-dark .price-row-RlX7XxW1{color:#d1d4dc}.responsive-container-media-mf-phone-landscape .price-row-RlX7XxW1{margin-top:32px}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .price-row-RlX7XxW1{margin-top:32px}}.total-title-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.total-number-RlX7XxW1,.total-title-RlX7XxW1{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.total-number-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-right:auto}.tax-row-RlX7XxW1{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .tax-row-RlX7XxW1{color:#787b86}.policyCheckbox-LSoXiIEh{align-items:center;display:flex;flex-direction:row}.checkboxLabel-LSoXiIEh{font-feature-settings:"tnum" on,"lnum" on;color:#131722;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;line-height:21px;margin-right:8px;margin-top:-2px}html.theme-dark .checkboxLabel-LSoXiIEh{color:#fff}.checkboxLabel-LSoXiIEh .link{color:#2962ff;transition:color .35s ease}html.theme-dark .checkboxLabel-LSoXiIEh .link{color:#2962ff}.checkboxLabel-LSoXiIEh .link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .checkboxLabel-LSoXiIEh .link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.checkboxLabel-LSoXiIEh .link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .checkboxLabel-LSoXiIEh .link:hover{fill:#1e53e5;color:#1e53e5}}.checkboxLabel-LSoXiIEh .link:focus{outline:auto}.checkboxLabel-LSoXiIEh .link:focus-visible{outline:auto}.checkboxLabel-LSoXiIEh .link:focus:not(:focus-visible){outline:none}.checkboxLabel-LSoXiIEh .link:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .checkboxLabel-LSoXiIEh .link:active{fill:#1848cc;color:#1848cc}.checkbox-LSoXiIEh{align-self:flex-start;display:flex}.round-tabs-K7mS8XY3{display:flex}.round-tabs-K7mS8XY3.align-start-K7mS8XY3{justify-content:flex-start}.round-tabs-K7mS8XY3.align-center-K7mS8XY3{justify-content:center}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}@media (any-hover:hover){.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:hover{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:active{--ui-lib-button-default-color-bg:#d1d4dc;--ui-lib-button-default-color-border:#d1d4dc;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#434651}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-primary-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#2962ff}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3{--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3{--ui-lib-button-default-color-content:#d1d4dc}@media (any-hover:hover){.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:hover{--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:hover{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#363a45}}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:active{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}.round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .round-tabs-K7mS8XY3 .tab-K7mS8XY3.tab-ghost-K7mS8XY3.checked-K7mS8XY3{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}.size-xsmall-K7mS8XY3{margin:-6px 0}.size-xsmall-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:6px;margin-top:6px}.size-xsmall-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-left:12px}.size-small-K7mS8XY3{margin:-8px 0}.size-small-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:8px;margin-top:8px}.size-small-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-left:16px}.size-large-K7mS8XY3{margin:-8px 0}.size-large-K7mS8XY3 .tab-K7mS8XY3{margin-bottom:8px;margin-top:8px}.size-large-K7mS8XY3 .tab-K7mS8XY3:not(:last-child){margin-left:16px}.addressField-MIHsGXyq .order-field-container{margin-bottom:0;margin-left:0;margin-right:0}.invalidInput-MIHsGXyq{font-size:16px}.focusInput-MIHsGXyq{color:#131722;font-size:16px}html.theme-dark .focusInput-MIHsGXyq{color:#d1d4dc}.cardInput-MIHsGXyq{color:#c5cbce;font-size:16px}.validInput-MIHsGXyq{font-size:16px}.addressFieldsContainer-MIHsGXyq{grid-gap:17px 20px;display:grid;grid-template-columns:1fr;grid-template-rows:auto}.responsive-container-media-mf-phone-landscape .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr}}.responsive-container-media-mf-desktop-large .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr 1fr}@media screen and (min-width:1920px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .addressFieldsContainer-MIHsGXyq{grid-template-columns:1fr 1fr 1fr}}.additionalFieldsContainer-MIHsGXyq{grid-gap:17px 20px;display:grid;grid-column:1/2;grid-template-columns:1fr;grid-template-rows:auto}.responsive-container-media-mf-phone-landscape .additionalFieldsContainer-MIHsGXyq{grid-column:1/3;grid-template-columns:1fr 1fr}@media screen and (min-width:568px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .additionalFieldsContainer-MIHsGXyq{grid-column:1/3;grid-template-columns:1fr 1fr}} \ No newline at end of file diff --git a/charting_library/bundles/1729.6e10c6b53c02d0af602e.css b/charting_library/bundles/1729.6e10c6b53c02d0af602e.css new file mode 100644 index 00000000..e14a1fad --- /dev/null +++ b/charting_library/bundles/1729.6e10c6b53c02d0af602e.css @@ -0,0 +1 @@ +.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{cursor:default;height:1.2em;position:absolute;width:1.2em;z-index:2}.ui-slider .ui-slider-range{background-position:0 0;border:0;display:block;font-size:.7em;position:absolute;z-index:1}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{margin-left:-.6em;top:-.3em}.ui-slider-horizontal .ui-slider-range{height:100%;top:0}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{height:100px;width:.8em}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-bottom:-.6em;margin-left:0}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);position:absolute!important}.ui-helper-reset{border:0;font-size:100%;line-height:1.3;list-style:none;margin:0;outline:0;padding:0;text-decoration:none}.ui-helper-clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}.ui-helper-clearfix{display:inline-block}* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}.ui-helper-zfix{filter:alpha(opacity=0);height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ui-state-disabled{cursor:default!important}.ui-icon{background-repeat:no-repeat;display:block;overflow:hidden;text-indent:-99999px}.ui-widget-overlay{height:100%;left:0;position:absolute;top:0;width:100%}.ui-widget{font-size:1.1em}.ui-widget .ui-widget,.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-size:1em}.ui-widget-content{background:#fff 50% 50% repeat-x;border:1px solid #aaa;color:#6b6b6d}html.theme-dark .ui-widget-content{background:#1e222d 50% 50% repeat-x;color:#2f3241}.ui-widget-content a{color:#6b6b6d}html.theme-dark .ui-widget-content a{color:#2f3241}.ui-widget-header{background:#fafafa;border:1px solid #c9cbcd;color:#6b6b6d}html.theme-dark .ui-widget-header{background:#2f3241;border-color:#2f3241;color:#2f3241}.ui-widget-header a{color:#6b6b6d}html.theme-dark .ui-widget-header a{color:#2f3241}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{background:#fafafa;border:1px solid #d3d3d3;color:#555;font-weight:400}html.theme-dark .ui-state-default,html.theme-dark .ui-widget-content .ui-state-default,html.theme-dark .ui-widget-header .ui-state-default{color:#8b8f95}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}html.theme-dark .ui-state-default a,html.theme-dark .ui-state-default a:link,html.theme-dark .ui-state-default a:visited{color:#8b8f95}.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{background:#dadada;border:1px solid #999;color:#212121;font-weight:400}.ui-state-hover a{color:#212121;text-decoration:none}@media (any-hover:hover){.ui-state-hover a:hover{color:#212121;text-decoration:none}}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{background:#fff 50% 50% repeat-x;border:1px solid #aaa;color:#212121;font-weight:400}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-widget :active{outline:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{background:#fff8cf;border:1px solid #fde763;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{background:#fef1ec 50% 50% repeat-x;border:1px solid #cd0a0a;color:#cd0a0a}.ui-state-error-text,.ui-state-error a,.ui-widget-content .ui-state-error-text,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error-text,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{filter:alpha(opacity=70);font-weight:400;opacity:.7}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{background-image:none;filter:alpha(opacity=35);opacity:.35}.ui-widget-overlay,.ui-widget-shadow{background:#aaa 50% 50% repeat-x;filter:alpha(opacity=30);opacity:.3}.ui-widget-shadow{border-radius:8px;margin:-8px 0 0 -8px;padding:8px}.ui-resizable{position:relative}.ui-resizable-handle{display:block;font-size:.1px;position:absolute;z-index:99999}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;left:0;top:-5px;width:100%}.ui-resizable-s{bottom:-5px;cursor:s-resize;height:7px;left:0;width:100%}.ui-resizable-e{cursor:e-resize;height:100%;right:-5px;top:0;width:7px}.ui-resizable-w{cursor:w-resize;height:100%;left:-5px;top:0;width:7px}.ui-resizable-se{bottom:1px;cursor:se-resize;height:12px;right:1px;width:12px}.ui-resizable-sw{bottom:-5px;cursor:sw-resize;height:9px;left:-5px;width:9px}.ui-resizable-nw{cursor:nw-resize;height:9px;left:-5px;top:-5px;width:9px}.ui-resizable-ne{cursor:ne-resize;height:9px;right:-5px;top:-5px;width:9px}.ui-selectable-helper{border:1px dotted #000;position:absolute;z-index:100}.ui-autocomplete{cursor:default;position:absolute}* html .ui-autocomplete{width:1px}.ui-menu{display:block;float:left;list-style:none;margin:0;padding:2px}.ui-menu .ui-menu{margin-top:-3px}.ui-menu .ui-menu-item{zoom:1;clear:left;float:left;margin:0;padding:0;width:100%}.ui-menu .ui-menu-item a{zoom:1;display:block;line-height:1.5;padding:.2em .4em;text-decoration:none}.ui-menu .ui-menu-item a.ui-state-active,.ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.ui-button{zoom:1;cursor:pointer;display:inline-block;margin-right:.1em;overflow:visible;padding:0;position:relative;text-align:center;text-decoration:none!important}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:1.4}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-icons-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon{margin-top:-8px;position:absolute;top:50%}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-icons-only .ui-button-icon-primary,.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary{left:.5em}.ui-button-icons-only .ui-button-icon-secondary,.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{border-bottom:0!important;float:left;list-style:none;margin:0 .2em 1px 0;padding:0;position:relative;top:1px;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a,.ui-tabs .ui-tabs-nav li.ui-tabs-selected a{cursor:text}.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li a{cursor:pointer}.ui-tabs .ui-tabs-panel{background:none;border-width:0;display:block;margin:5px 0}.ui-tabs .ui-tabs-hide{left:-10000px;position:absolute}.ui-datepicker{border:none;display:none;padding:0}.ui-datepicker .ui-datepicker-header{background-color:#2962ff;border:none;color:#fff;height:53px;line-height:53px;padding:0;position:relative}html.theme-dark .ui-datepicker .ui-datepicker-header{background-color:#21384d;color:#c5cbce}.ui-datepicker .ui-datepicker-header .ui-datepicker-next,.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{background:none;border:none;cursor:pointer;height:100%;opacity:.8;position:absolute;top:0;width:40px}.ui-datepicker .ui-datepicker-header .ui-datepicker-next.ui-state-disabled,.ui-datepicker .ui-datepicker-header .ui-datepicker-prev.ui-state-disabled{opacity:.4}.ui-datepicker .ui-datepicker-header .ui-datepicker-next-hover:not(.ui-state-disabled),.ui-datepicker .ui-datepicker-header .ui-datepicker-prev-hover:not(.ui-state-disabled){background:none;border:none;opacity:1}.ui-datepicker .ui-datepicker-header .ui-datepicker-next{right:0}.ui-datepicker .ui-datepicker-header .ui-datepicker-next span{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' width='9' height='14' fill='%23fff'%3E%3Cpath d='m2 0l-2 2 5 5-5 5 2 2 7-7z'/%3E%3C/svg%3E");height:14px;margin-left:-5px;width:9px}.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{left:0}.ui-datepicker .ui-datepicker-header .ui-datepicker-prev span{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' width='9' height='14' fill='%23fff'%3E%3Cpath d='m0 7l7-7 2 2-5 5 5 5-2 2z'/%3E%3C/svg%3E");height:14px;margin-left:-4px;width:9px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%}.ui-datepicker .ui-datepicker-title{margin:0;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{border:1px solid #d6d6d6;border-collapse:collapse;border-top:none;font-size:12px;margin:0;width:100%}html.theme-dark .ui-datepicker table{border-color:#363c4e}.ui-datepicker th{background-color:#f8f8f8;border:none;border-bottom:1px solid #d6d6d6;color:#8d9196;font-weight:400;height:28px;padding:0;text-align:center;width:40px}html.theme-dark .ui-datepicker th{background-color:#2f3241;border-bottom-color:#363c4e}.ui-datepicker td{border:none;margin:0;padding:0}.ui-datepicker td a,.ui-datepicker td a.ui-state-default,.ui-datepicker td span,.ui-datepicker td span.ui-state-default{background:#fff;border:solid #d6d6d6;border-width:0 1px 1px 0;display:block;height:39px;line-height:40px;margin:0;padding:0;position:relative;text-align:center;text-decoration:none}html.theme-dark .ui-datepicker td a,html.theme-dark .ui-datepicker td a.ui-state-default,html.theme-dark .ui-datepicker td span,html.theme-dark .ui-datepicker td span.ui-state-default{background:#1e222d;border-color:#363c4e}.ui-datepicker td a.ui-state-default.ui-state-highlight,.ui-datepicker td a.ui-state-highlight,.ui-datepicker td span.ui-state-default.ui-state-highlight,.ui-datepicker td span.ui-state-highlight{color:#00b9db}.ui-datepicker td a.ui-state-default.ui-state-highlight:after,.ui-datepicker td a.ui-state-highlight:after,.ui-datepicker td span.ui-state-default.ui-state-highlight:after,.ui-datepicker td span.ui-state-highlight:after{border-color:#0000 #00badb #0000 #0000;border-style:solid;border-width:0 11px 11px 0;content:" ";height:0;position:absolute;right:0;top:0;width:0}.ui-datepicker td a.ui-state-default.ui-state-hover,.ui-datepicker td a.ui-state-hover,.ui-datepicker td span.ui-state-default.ui-state-hover,.ui-datepicker td span.ui-state-hover{background:#bbd9fb}html.theme-dark .ui-datepicker td a.ui-state-default.ui-state-hover,html.theme-dark .ui-datepicker td a.ui-state-hover,html.theme-dark .ui-datepicker td span.ui-state-default.ui-state-hover,html.theme-dark .ui-datepicker td span.ui-state-hover{background:#2a2e39}.ui-datepicker td.ui-datepicker-current-day a,.ui-datepicker td.ui-datepicker-current-day span{border:2px solid #2962ff;color:#2962ff;height:36px;line-height:37px}html.theme-dark .ui-datepicker td.ui-datepicker-current-day a,html.theme-dark .ui-datepicker td.ui-datepicker-current-day span{border-color:#2962ff;color:#2962ff}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;border-bottom:0;border-left:0;border-right:0;margin:.7em 0 0;padding:0 .2em}.ui-datepicker .ui-datepicker-buttonpane button{cursor:pointer;float:right;margin:.5em .2em .4em;overflow:visible;padding:.2em .6em .3em;width:auto}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{margin:0 auto .4em;width:95%}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%} \ No newline at end of file diff --git a/charting_library/bundles/1729.6e10c6b53c02d0af602e.rtl.css b/charting_library/bundles/1729.6e10c6b53c02d0af602e.rtl.css new file mode 100644 index 00000000..1086bbdf --- /dev/null +++ b/charting_library/bundles/1729.6e10c6b53c02d0af602e.rtl.css @@ -0,0 +1 @@ +.ui-slider{position:relative;text-align:right}.ui-slider .ui-slider-handle{cursor:default;height:1.2em;position:absolute;width:1.2em;z-index:2}.ui-slider .ui-slider-range{background-position:100% 0;border:0;display:block;font-size:.7em;position:absolute;z-index:1}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{margin-right:-.6em;top:-.3em}.ui-slider-horizontal .ui-slider-range{height:100%;top:0}.ui-slider-horizontal .ui-slider-range-min{right:0}.ui-slider-horizontal .ui-slider-range-max{left:0}.ui-slider-vertical{height:100px;width:.8em}.ui-slider-vertical .ui-slider-handle{margin-bottom:-.6em;margin-right:0;right:-.3em}.ui-slider-vertical .ui-slider-range{right:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);position:absolute!important}.ui-helper-reset{border:0;font-size:100%;line-height:1.3;list-style:none;margin:0;outline:0;padding:0;text-decoration:none}.ui-helper-clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden}.ui-helper-clearfix{display:inline-block}* html .ui-helper-clearfix{height:1%}.ui-helper-clearfix{display:block}.ui-helper-zfix{filter:alpha(opacity=0);height:100%;opacity:0;position:absolute;right:0;top:0;width:100%}.ui-state-disabled{cursor:default!important}.ui-icon{background-repeat:no-repeat;display:block;overflow:hidden;text-indent:-99999px}.ui-widget-overlay{height:100%;position:absolute;right:0;top:0;width:100%}.ui-widget{font-size:1.1em}.ui-widget .ui-widget,.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-size:1em}.ui-widget-content{background:#fff 50% 50% repeat-x;border:1px solid #aaa;color:#6b6b6d}html.theme-dark .ui-widget-content{background:#1e222d 50% 50% repeat-x;color:#2f3241}.ui-widget-content a{color:#6b6b6d}html.theme-dark .ui-widget-content a{color:#2f3241}.ui-widget-header{background:#fafafa;border:1px solid #c9cbcd;color:#6b6b6d}html.theme-dark .ui-widget-header{background:#2f3241;border-color:#2f3241;color:#2f3241}.ui-widget-header a{color:#6b6b6d}html.theme-dark .ui-widget-header a{color:#2f3241}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{background:#fafafa;border:1px solid #d3d3d3;color:#555;font-weight:400}html.theme-dark .ui-state-default,html.theme-dark .ui-widget-content .ui-state-default,html.theme-dark .ui-widget-header .ui-state-default{color:#8b8f95}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}html.theme-dark .ui-state-default a,html.theme-dark .ui-state-default a:link,html.theme-dark .ui-state-default a:visited{color:#8b8f95}.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{background:#dadada;border:1px solid #999;color:#212121;font-weight:400}.ui-state-hover a{color:#212121;text-decoration:none}@media (any-hover:hover){.ui-state-hover a:hover{color:#212121;text-decoration:none}}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{background:#fff 50% 50% repeat-x;border:1px solid #aaa;color:#212121;font-weight:400}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-widget :active{outline:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{background:#fff8cf;border:1px solid #fde763;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{background:#fef1ec 50% 50% repeat-x;border:1px solid #cd0a0a;color:#cd0a0a}.ui-state-error-text,.ui-state-error a,.ui-widget-content .ui-state-error-text,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error-text,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{filter:alpha(opacity=70);font-weight:400;opacity:.7}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{background-image:none;filter:alpha(opacity=35);opacity:.35}.ui-widget-overlay,.ui-widget-shadow{background:#aaa 50% 50% repeat-x;filter:alpha(opacity=30);opacity:.3}.ui-widget-shadow{border-radius:8px;margin:-8px -8px 0 0;padding:8px}.ui-resizable{position:relative}.ui-resizable-handle{display:block;font-size:.1px;position:absolute;z-index:99999}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;right:0;top:-5px;width:100%}.ui-resizable-s{bottom:-5px;cursor:s-resize;height:7px;right:0;width:100%}.ui-resizable-e{cursor:e-resize;height:100%;left:-5px;top:0;width:7px}.ui-resizable-w{cursor:w-resize;height:100%;right:-5px;top:0;width:7px}.ui-resizable-se{bottom:1px;cursor:sw-resize;height:12px;left:1px;width:12px}.ui-resizable-sw{bottom:-5px;cursor:se-resize;height:9px;right:-5px;width:9px}.ui-resizable-nw{cursor:ne-resize;height:9px;right:-5px;top:-5px;width:9px}.ui-resizable-ne{cursor:nw-resize;height:9px;left:-5px;top:-5px;width:9px}.ui-selectable-helper{border:1px dotted #000;position:absolute;z-index:100}.ui-autocomplete{cursor:default;position:absolute}* html .ui-autocomplete{width:1px}.ui-menu{display:block;float:right;list-style:none;margin:0;padding:2px}.ui-menu .ui-menu{margin-top:-3px}.ui-menu .ui-menu-item{zoom:1;clear:right;float:right;margin:0;padding:0;width:100%}.ui-menu .ui-menu-item a{zoom:1;display:block;line-height:1.5;padding:.2em .4em;text-decoration:none}.ui-menu .ui-menu-item a.ui-state-active,.ui-menu .ui-menu-item a.ui-state-hover{font-weight:400;margin:-1px}.ui-button{zoom:1;cursor:pointer;display:inline-block;margin-left:.1em;overflow:visible;padding:0;position:relative;text-align:center;text-decoration:none!important}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:1.4}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-icons-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon{margin-top:-8px;position:absolute;top:50%}.ui-button-icon-only .ui-icon{margin-right:-8px;right:50%}.ui-button-icons-only .ui-button-icon-primary,.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary{right:.5em}.ui-button-icons-only .ui-button-icon-secondary,.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary{left:.5em}.ui-buttonset{margin-left:7px}.ui-buttonset .ui-button{margin-left:-.3em;margin-right:0}button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{border-bottom:0!important;float:right;list-style:none;margin:0 0 1px .2em;padding:0;position:relative;top:1px;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:right;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a,.ui-tabs .ui-tabs-nav li.ui-tabs-selected a{cursor:text}.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li a{cursor:pointer}.ui-tabs .ui-tabs-panel{background:none;border-width:0;display:block;margin:5px 0}.ui-tabs .ui-tabs-hide{position:absolute;right:-10000px}.ui-datepicker{border:none;display:none;padding:0}.ui-datepicker .ui-datepicker-header{background-color:#2962ff;border:none;color:#fff;height:53px;line-height:53px;padding:0;position:relative}html.theme-dark .ui-datepicker .ui-datepicker-header{background-color:#21384d;color:#c5cbce}.ui-datepicker .ui-datepicker-header .ui-datepicker-next,.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{background:none;border:none;cursor:pointer;height:100%;opacity:.8;position:absolute;top:0;width:40px}.ui-datepicker .ui-datepicker-header .ui-datepicker-next.ui-state-disabled,.ui-datepicker .ui-datepicker-header .ui-datepicker-prev.ui-state-disabled{opacity:.4}.ui-datepicker .ui-datepicker-header .ui-datepicker-next-hover:not(.ui-state-disabled),.ui-datepicker .ui-datepicker-header .ui-datepicker-prev-hover:not(.ui-state-disabled){background:none;border:none;opacity:1}.ui-datepicker .ui-datepicker-header .ui-datepicker-next{right:0}.ui-datepicker .ui-datepicker-header .ui-datepicker-next span{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' width='9' height='14' fill='%23fff'%3E%3Cpath d='m2 0l-2 2 5 5-5 5 2 2 7-7z'/%3E%3C/svg%3E");height:14px;margin-right:-5px;width:9px}.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{left:0}.ui-datepicker .ui-datepicker-header .ui-datepicker-prev span{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' width='9' height='14' fill='%23fff'%3E%3Cpath d='m0 7l7-7 2 2-5 5 5 5-2 2z'/%3E%3C/svg%3E");height:14px;margin-right:-4px;width:9px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;margin-right:-8px;margin-top:-8px;position:absolute;right:50%;top:50%}.ui-datepicker .ui-datepicker-title{margin:0;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{border:1px solid #d6d6d6;border-collapse:collapse;border-top:none;font-size:12px;margin:0;width:100%}html.theme-dark .ui-datepicker table{border-color:#363c4e}.ui-datepicker th{background-color:#f8f8f8;border:none;border-bottom:1px solid #d6d6d6;color:#8d9196;font-weight:400;height:28px;padding:0;text-align:center;width:40px}html.theme-dark .ui-datepicker th{background-color:#2f3241;border-bottom-color:#363c4e}.ui-datepicker td{border:none;margin:0;padding:0}.ui-datepicker td a,.ui-datepicker td a.ui-state-default,.ui-datepicker td span,.ui-datepicker td span.ui-state-default{background:#fff;border:solid #d6d6d6;border-width:0 0 1px 1px;display:block;height:39px;line-height:40px;margin:0;padding:0;position:relative;text-align:center;text-decoration:none}html.theme-dark .ui-datepicker td a,html.theme-dark .ui-datepicker td a.ui-state-default,html.theme-dark .ui-datepicker td span,html.theme-dark .ui-datepicker td span.ui-state-default{background:#1e222d;border-color:#363c4e}.ui-datepicker td a.ui-state-default.ui-state-highlight,.ui-datepicker td a.ui-state-highlight,.ui-datepicker td span.ui-state-default.ui-state-highlight,.ui-datepicker td span.ui-state-highlight{color:#00b9db}.ui-datepicker td a.ui-state-default.ui-state-highlight:after,.ui-datepicker td a.ui-state-highlight:after,.ui-datepicker td span.ui-state-default.ui-state-highlight:after,.ui-datepicker td span.ui-state-highlight:after{border-color:#0000 #0000 #0000 #00badb;border-style:solid;border-width:0 0 11px 11px;content:" ";height:0;left:0;position:absolute;top:0;width:0}.ui-datepicker td a.ui-state-default.ui-state-hover,.ui-datepicker td a.ui-state-hover,.ui-datepicker td span.ui-state-default.ui-state-hover,.ui-datepicker td span.ui-state-hover{background:#bbd9fb}html.theme-dark .ui-datepicker td a.ui-state-default.ui-state-hover,html.theme-dark .ui-datepicker td a.ui-state-hover,html.theme-dark .ui-datepicker td span.ui-state-default.ui-state-hover,html.theme-dark .ui-datepicker td span.ui-state-hover{background:#2a2e39}.ui-datepicker td.ui-datepicker-current-day a,.ui-datepicker td.ui-datepicker-current-day span{border:2px solid #2962ff;color:#2962ff;height:36px;line-height:37px}html.theme-dark .ui-datepicker td.ui-datepicker-current-day a,html.theme-dark .ui-datepicker td.ui-datepicker-current-day span{border-color:#2962ff;color:#2962ff}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;border-bottom:0;border-left:0;border-right:0;margin:.7em 0 0;padding:0 .2em}.ui-datepicker .ui-datepicker-buttonpane button{cursor:pointer;float:left;margin:.5em .2em .4em;overflow:visible;padding:.2em .6em .3em;width:auto}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:right}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:right}.ui-datepicker-multi .ui-datepicker-group table{margin:0 auto .4em;width:95%}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:right}.ui-datepicker-row-break{clear:both;width:100%} \ No newline at end of file diff --git a/charting_library/bundles/1857.10c97feeb46d934b8a25.js b/charting_library/bundles/1857.92ea29314fb71e119d3e.js similarity index 96% rename from charting_library/bundles/1857.10c97feeb46d934b8a25.js rename to charting_library/bundles/1857.92ea29314fb71e119d3e.js index 89197ba6..bd4c0d0d 100644 --- a/charting_library/bundles/1857.10c97feeb46d934b8a25.js +++ b/charting_library/bundles/1857.92ea29314fb71e119d3e.js @@ -1,5 +1,5 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1857],{9465:(e,t)=>{"use strict";function n(e){if(void 0===e)throw new Error("Value is undefined");return e}function r(e){if(null===e)throw new Error("Value is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e){return r(n(e))},t.ensureNever=function(e){}},58947:(e,t)=>{"use strict";function n(e){return Math.round(1e10*e)/1e10}Object.defineProperty(t,"__esModule",{value:!0}),t.alignTo=t.fixComputationError=t.isNaN=t.isInteger=t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.isInteger=function(e){return"number"==typeof e&&e%1==0},t.isNaN=function(e){return!(e<=0||e>0)},t.fixComputationError=n,t.alignTo=function(e,t){var r=e/t,o=Math.floor(r),u=r-o;return u>2e-10?n(u>.5?(o+1)*t:o*t):e}},88537:(e,t)=>{"use strict";function n(e,t){if(void 0===e)throw new Error((null!=t?t:"Value")+" is undefined");return e}function r(e,t){if(null===e)throw new Error((null!=t?t:"Value")+" is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e,t){return r(n(e,t),t)},t.ensureNever=function(e){}},93751:(e,t)=>{"use strict";function n(e){return Math.round(1e10*e)/1e10}t.fixComputationError=t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.fixComputationError=n},6617:(e,t)=>{"use strict";t.hasProperty=t.isObject=void 0,t.isObject=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)},t.hasProperty=function(e,t){return t in e}},34026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointInCircle=t.pointInPolygon=t.pointInBox=t.pointInTriangle=t.pointInHalfplane=void 0;var r=n(5531);t.pointInHalfplane=function(e,t){var n=t.edge;return n.A*e.x+n.B*e.y+n.C>0===t.isPositive},t.pointInTriangle=function(e,t,n,o){var u=t.add(n).scaled(.5).add(o).scaled(.5),i=r.intersectLineSegments(t,n,u,e);return null===i&&(null===(i=r.intersectLineSegments(n,o,u,e))&&null===(i=r.intersectLineSegments(o,t,u,e)))},t.pointInBox=function(e,t){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},t.pointInPolygon=function(e,t){for(var n=t.length-1,r=!1,o=e.x,u=e.y,i=0;i=u||s.y=u)&&a.x+(u-a.y)/(s.y-a.y)*(s.x-a.x){"use strict";function n(e,t,n){var r=t.subtract(e),o=n.subtract(e).dotProduct(r)/r.dotProduct(r);return{coeff:o,distance:e.addScaled(r,o).subtract(n).length()}}Object.defineProperty(t,"__esModule",{value:!0}),t.distanceToSegment=t.distanceToLine=void 0,t.distanceToLine=n, -t.distanceToSegment=function(e,t,r){var o=n(e,t,r);if(0<=o.coeff&&o.coeff<=1)return o;var u=e.subtract(r).length(),i=t.subtract(r).length();return u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersectPolygons=t.intersectPolygonAndHalfplane=t.intersectRayAndBox=t.intersectLineAndBox=t.intersectLineSegments=t.intersectLines=t.intersectLineSegmentAndBox=void 0;var r=n(9465),o=n(86441),u=n(4652),i=n(34026);function a(e,t){var n=e.A,r=t.A,u=e.B,i=t.B,a=e.C,s=t.C,d=n*i-r*u;if(Math.abs(d)<1e-6)return null;var c=(u*s-i*a)/d,f=(r*a-n*s)/d;return new o.Point(c,f)}function s(e,t,n,r){var o=function(e,t,n,r){var o=t.subtract(e),u=r.subtract(n),i=o.x*u.y-o.y*u.x;if(Math.abs(i)<1e-6)return null;var a=e.subtract(n);return(a.y*u.x-a.x*u.y)/i}(e,t,n,r);if(null===o)return null;var i=t.subtract(e).scaled(o).add(e),a=u.distanceToSegment(n,r,i);return Math.abs(a.distance)<1e-6?o:null}function d(e,t){for(var n=0,r=e;n0&&(o.equalPoints(e[e.length-1],t)||o.equalPoints(e[0],t)))&&(e.push(t),!0)}function f(e,t){for(var n=[],r=0;r=3?n:null}t.intersectLineSegmentAndBox=function(e,t){var n=e[0].x,r=e[0].y,u=e[1].x,i=e[1].y,a=t.min.x,s=t.min.y,d=t.max.x,c=t.max.y;function f(e,t,n,r,o,u){var i=0;return eo&&(i|=2),tu&&(i|=8),i}for(var l=f(n,r,a,s,d,c),p=f(u,i,a,s,d,c),h=!1,g=0;;){if(g>1e3)throw new Error("Cohen - Sutherland algorithm: infinity loop");if(g++,!(l|p)){h=!0;break}if(l&p)break;var _=l||p,v=void 0,b=void 0;8&_?(v=n+(u-n)*(c-r)/(i-r),b=c):4&_?(v=n+(u-n)*(s-r)/(i-r),b=s):2&_?(b=r+(i-r)*(d-n)/(u-n),v=d):(b=r+(i-r)*(a-n)/(u-n),v=a),_===l?l=f(n=v,r=b,a,s,d,c):p=f(u=v,i=b,a,s,d,c)}return h?o.equalPoints(o.point(n,r),o.point(u,i))?o.point(n,r):o.lineSegment(o.point(n,r),o.point(u,i)):null},t.intersectLines=a,t.intersectLineSegments=s,t.intersectLineAndBox=function(e,t){var n=t.min.x,u=t.min.y,i=t.max.x,a=t.max.y;if(0===e.A){var s=-e.C/e.B;return u<=s&&s<=a?o.lineSegment(o.point(n,s),o.point(i,s)):null}if(0===e.B){var c=-e.C/e.A;return n<=c&&c<=i?o.lineSegment(o.point(c,u),o.point(c,a)):null}var f=[],l=function(t){var n=function(e,t){return-(e.C+e.A*t)/e.B}(e,t);u<=n&&n<=a&&d(f,new o.Point(t,n))},p=function(t){var r=function(e,t){return-(e.C+e.B*t)/e.A}(e,t);n<=r&&r<=i&&d(f,new o.Point(r,t))};switch(l(n),p(u),l(i),p(a),f.length){case 0:return null;case 1:return f[0];case 2:return o.equalPoints(f[0],f[1])?f[0]:o.lineSegment(f[0],f[1])}return r.assert(!1,"We should have at most two intersection points"),null},t.intersectRayAndBox=function(e,t,n){ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1857],{9465:(e,t)=>{"use strict";function n(e){if(void 0===e)throw new Error("Value is undefined");return e}function r(e){if(null===e)throw new Error("Value is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e){return r(n(e))},t.ensureNever=function(e){}},58947:(e,t)=>{"use strict";function n(e){return Math.round(1e10*e)/1e10}Object.defineProperty(t,"__esModule",{value:!0}),t.alignTo=t.fixComputationError=t.isNaN=t.isInteger=t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.isInteger=function(e){return"number"==typeof e&&e%1==0},t.isNaN=function(e){return!(e<=0||e>0)},t.fixComputationError=n,t.alignTo=function(e,t){var r=e/t,o=Math.floor(r),u=r-o;return u>2e-10?n(u>.5?(o+1)*t:o*t):e}},88537:(e,t)=>{"use strict";function n(e,t){if(void 0===e)throw new Error((null!=t?t:"Value")+" is undefined");return e}function r(e,t){if(null===e)throw new Error((null!=t?t:"Value")+" is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e,t){return r(n(e,t),t)},t.ensureNever=function(e){}},93751:(e,t)=>{"use strict";function n(e){return Math.round(1e10*e)/1e10}t.fixComputationError=t.isInteger=t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&isFinite(e)},t.isInteger=function(e){return"number"==typeof e&&e%1==0},t.fixComputationError=n},6617:(e,t)=>{"use strict";t.hasProperty=t.isObject=void 0,t.isObject=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)},t.hasProperty=function(e,t){return t in e}},34026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointInCircle=t.pointInPolygon=t.pointInBox=t.pointInTriangle=t.pointInHalfplane=void 0;var r=n(5531);t.pointInHalfplane=function(e,t){var n=t.edge;return n.A*e.x+n.B*e.y+n.C>0===t.isPositive},t.pointInTriangle=function(e,t,n,o){var u=t.add(n).scaled(.5).add(o).scaled(.5),i=r.intersectLineSegments(t,n,u,e);return null===i&&(null===(i=r.intersectLineSegments(n,o,u,e))&&null===(i=r.intersectLineSegments(o,t,u,e)))},t.pointInBox=function(e,t){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},t.pointInPolygon=function(e,t){for(var n=t.length-1,r=!1,o=e.x,u=e.y,i=0;i=u||s.y=u)&&a.x+(u-a.y)/(s.y-a.y)*(s.x-a.x){"use strict";function n(e,t,n){var r=t.subtract(e),o=n.subtract(e).dotProduct(r)/r.dotProduct(r);return{coeff:o,distance:e.addScaled(r,o).subtract(n).length()}}Object.defineProperty(t,"__esModule",{ +value:!0}),t.distanceToSegment=t.distanceToLine=void 0,t.distanceToLine=n,t.distanceToSegment=function(e,t,r){var o=n(e,t,r);if(0<=o.coeff&&o.coeff<=1)return o;var u=e.subtract(r).length(),i=t.subtract(r).length();return u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.intersectPolygons=t.intersectPolygonAndHalfplane=t.intersectRayAndBox=t.intersectLineAndBox=t.intersectLineSegments=t.intersectLines=t.intersectLineSegmentAndBox=void 0;var r=n(9465),o=n(86441),u=n(4652),i=n(34026);function a(e,t){var n=e.A,r=t.A,u=e.B,i=t.B,a=e.C,s=t.C,d=n*i-r*u;if(Math.abs(d)<1e-6)return null;var c=(u*s-i*a)/d,f=(r*a-n*s)/d;return new o.Point(c,f)}function s(e,t,n,r){var o=function(e,t,n,r){var o=t.subtract(e),u=r.subtract(n),i=o.x*u.y-o.y*u.x;if(Math.abs(i)<1e-6)return null;var a=e.subtract(n);return(a.y*u.x-a.x*u.y)/i}(e,t,n,r);if(null===o)return null;var i=t.subtract(e).scaled(o).add(e),a=u.distanceToSegment(n,r,i);return Math.abs(a.distance)<1e-6?o:null}function d(e,t){for(var n=0,r=e;n0&&(o.equalPoints(e[e.length-1],t)||o.equalPoints(e[0],t)))&&(e.push(t),!0)}function f(e,t){for(var n=[],r=0;r=3?n:null}t.intersectLineSegmentAndBox=function(e,t){var n=e[0].x,r=e[0].y,u=e[1].x,i=e[1].y,a=t.min.x,s=t.min.y,d=t.max.x,c=t.max.y;function f(e,t,n,r,o,u){var i=0;return eo&&(i|=2),tu&&(i|=8),i}for(var l=f(n,r,a,s,d,c),p=f(u,i,a,s,d,c),h=!1,g=0;;){if(g>1e3)throw new Error("Cohen - Sutherland algorithm: infinity loop");if(g++,!(l|p)){h=!0;break}if(l&p)break;var _=l||p,v=void 0,b=void 0;8&_?(v=n+(u-n)*(c-r)/(i-r),b=c):4&_?(v=n+(u-n)*(s-r)/(i-r),b=s):2&_?(b=r+(i-r)*(d-n)/(u-n),v=d):(b=r+(i-r)*(a-n)/(u-n),v=a),_===l?l=f(n=v,r=b,a,s,d,c):p=f(u=v,i=b,a,s,d,c)}return h?o.equalPoints(o.point(n,r),o.point(u,i))?o.point(n,r):o.lineSegment(o.point(n,r),o.point(u,i)):null},t.intersectLines=a,t.intersectLineSegments=s,t.intersectLineAndBox=function(e,t){var n=t.min.x,u=t.min.y,i=t.max.x,a=t.max.y;if(0===e.A){var s=-e.C/e.B;return u<=s&&s<=a?o.lineSegment(o.point(n,s),o.point(i,s)):null}if(0===e.B){var c=-e.C/e.A;return n<=c&&c<=i?o.lineSegment(o.point(c,u),o.point(c,a)):null}var f=[],l=function(t){var n=function(e,t){return-(e.C+e.A*t)/e.B}(e,t);u<=n&&n<=a&&d(f,new o.Point(t,n))},p=function(t){var r=function(e,t){return-(e.C+e.B*t)/e.A}(e,t);n<=r&&r<=i&&d(f,new o.Point(r,t))};switch(l(n),p(u),l(i),p(a),f.length){case 0:return null;case 1:return f[0];case 2:return o.equalPoints(f[0],f[1])?f[0]:o.lineSegment(f[0],f[1])}return r.assert(!1,"We should have at most two intersection points"),null},t.intersectRayAndBox=function(e,t,n){ var r=s(e,t,n.min,new o.Point(n.max.x,n.min.y)),u=s(e,t,new o.Point(n.max.x,n.min.y),n.max),a=s(e,t,n.max,new o.Point(n.min.x,n.max.y)),d=s(e,t,new o.Point(n.min.x,n.max.y),n.min),c=[];if(null!==r&&r>=0&&c.push(r),null!==u&&u>=0&&c.push(u),null!==a&&a>=0&&c.push(a),null!==d&&d>=0&&c.push(d),0===c.length)return null;c.sort((function(e,t){return e-t}));var f=i.pointInBox(e,n)?c[0]:c[c.length-1];return e.addScaled(t.subtract(e),f)},t.intersectPolygonAndHalfplane=f,t.intersectPolygons=function(e,t){for(var n=e,r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equalBoxes=t.box=t.halfplaneThroughPoint=t.halfplane=t.lineSegment=t.lineThroughPoints=t.line=t.equalPoints=t.point=t.Point=void 0;var n=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)},e.prototype.addScaled=function(t,n){return new e(this.x+n*t.x,this.y+n*t.y)},e.prototype.subtract=function(t){return new e(this.x-t.x,this.y-t.y)},e.prototype.dotProduct=function(e){return this.x*e.x+this.y*e.y},e.prototype.crossProduct=function(e){return this.x*e.y-this.y*e.x},e.prototype.signedAngle=function(e){return Math.atan2(this.crossProduct(e),this.dotProduct(e))},e.prototype.angle=function(e){return Math.acos(this.dotProduct(e)/(this.length()*e.length()))},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.scaled=function(t){return new e(this.x*t,this.y*t)},e.prototype.normalized=function(){return this.scaled(1/this.length())},e.prototype.transposed=function(){return new e(-this.y,this.x)},e.prototype.clone=function(){return new e(this.x,this.y)},e}();function r(e,t){return new n(e,t)}function o(e,t){return e.x===t.x&&e.y===t.y}function u(e,t,n){if(0===e&&0===t)throw new Error("A and B can not be both equal to zero.");return{A:e,B:t,C:n}}function i(e,t){return{edge:e,isPositive:t}}t.Point=n,t.point=r,t.equalPoints=o,t.line=u,t.lineThroughPoints=function(e,t){if(o(e,t))throw new Error("Points should be distinct");return u(e.y-t.y,t.x-e.x,e.x*t.y-t.x*e.y)},t.lineSegment=function(e,t){if(o(e,t))throw new Error("Points of a segment should be distinct");return[e,t]},t.halfplane=i,t.halfplaneThroughPoint=function(e,t){return i(e,e.A*t.x+e.B*t.y+e.C>0)},t.box=function(e,t){return{min:r(Math.min(e.x,t.x),Math.min(e.y,t.y)),max:r(Math.max(e.x,t.x),Math.max(e.y,t.y))}},t.equalBoxes=function(e,t){return o(e.min,t.min)&&o(e.max,t.max)}},25422:(e,t,n)=>{"use strict";t.transformPoint=t.translationMatrix=t.scalingMatrix=t.rotationMatrix=void 0;var r=n(86441);t.rotationMatrix=function(e){var t=Math.cos(e),n=Math.sin(e);return[[t,-n,0],[n,t,0],[0,0,1]]},t.scalingMatrix=function(e,t){return[[e,0,0],[0,t,0],[0,0,1]]},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.transformPoint=function(e,t){for(var n=[t.x,t.y,1],o=[0,0,0],u=0;u<3;u++)for(var i=0;i<3;i++)o[u]+=n[i]*e[u][i] ;return new r.Point(o[0],o[1])}},24377:(e,t,n)=>{"use strict";var r=n(58947);function o(e,t,n){return r.isNaN(t)||tn?n:Math.round(t)}function u(e,t,n){return r.isNaN(t)||tn?n:Math.round(1e4*t)/1e4}function i(e){return o(0,e,255)}function a(e){return o(0,e,255)}function s(e){return o(0,e,255)}function d(e){return u(0,e,1)}function c(e){return u(0,e,1)}function f(e){return u(0,e,1)}function l(e){return u(0,e,1)}function p(e){return u(0,e,1)}function h(e){return u(0,e,1)}function g(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),u=Math.max(t,n,r),i=0,a=0,s=(o+u)/2;if(o===u)i=0,a=0;else{var d=u-o;switch(a=s>.5?d/(2-u-o):d/(u+o),u){case t:i=((n-r)/d+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v(e){var t,n,r,o=e[0],u=e[1],d=e[2];if(0===u)t=n=r=d;else{var c=d<.5?d*(1+u):d+u-d*u,f=2*d-c;t=_(f,c,o+1/3),n=_(f,c,o),r=_(f,c,o-1/3)}return[i(255*t),a(255*n),s(255*r)]}t.normalizeAlphaComponent=d,t.areEqualRgb=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.rgba=function(e,t,n,r){if(Array.isArray(e)){var o=e;return r=t,[o[0],o[1],o[2],d(r)]}var u=t;return n=n||0,r=r||0,[i(e),a(u),s(n),d(r)]},t.areEqualRgba=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.rgbToHsl=g,t.hslToRgb=v;var b=[.199,.687,.114];function y(e){return b[0]*e[0]+b[1]*e[1]+b[2]*e[2]}function m(e,t,n){void 0===n&&(n=.05);var r=g(e),o=r[0]+t*n;return r[0]=c(o-Math.floor(o)),v(r)}function w(e,t,n){void 0===n&&(n=.05);var r=e[0],o=e[1],u=e[2],i=e[3],a=m([r,o,u],t,n);return[a[0],a[1],a[2],i]}t.distanceRgb=function(e,t){var n=e[0],r=e[1],o=e[2],u=t[0]-n,i=t[1]-r,a=t[2]-o;return Math.sqrt(u*u+i*i+a*a)},t.invertRgb=function(e){return[255-e[0],255-e[1],255-e[2]]},t.blendRgba=function(e,t){var n=e[0],r=e[1],o=e[2],u=e[3],c=t[0],f=t[1],l=t[2],p=t[3],h=d(1-(1-p)*(1-u));return[i(c*p/h+n*u*(1-p)/h),a(f*p/h+r*u*(1-p)/h),s(l*p/h+o*u*(1-p)/h),h]},t.shiftRgb=m,t.shiftRgba=w,t.shiftColor=function(e,t,n){return void 0===n&&(n=.05),C(w(I(e),t,n))};var x,k,j,O,S={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22", fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function L(e,t){return t in e}function P(e){var t=x.re.exec(e);return null!==t?x.parse(t):null}function A(e){var t=k.re.exec(e);return null!==t?k.parse(t):null}function E(e){var t=j.re.exec(e);return null!==t?j.parse(t):null}function N(e){var t=O.re.exec(e);return null!==t?O.parse(t):null}function C(e){return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}function R(e){if(e=e.toLowerCase(),L(S,e)){var t=A(S[e]);if(null!==t)return t;throw new Error("Invalid named color definition")}var n=P(e);if(null!==n)return n;var r=A(e);if(null!==r)return r;var o=E(e);if(null!==o)return o;var u=N(e);return null!==u?[u[0],u[1],u[2]]:null}function T(e){if(e=e.toLowerCase(),L(S,e)){var t=A(S[e]);if(null!==t)return[t[0],t[1],t[2],1];throw new Error("Invalid named color definition")}var n=P(e);if(null!==n)return[n[0],n[1],n[2],1];var r=A(e);if(null!==r)return[r[0],r[1],r[2],1];var o=E(e);if(null!==o)return[o[0],o[1],o[2],1];var u=N(e);return null!==u?u:null}function I(e){var t=T(e);if(null!==t)return t;throw new Error("Passed color string does not match any of the known color representations")}!function(e){ @@ -17,7 +17,7 @@ r(i(e),(function(t){return u.call(e,t)})))}:o.default},17873:(e,t,n)=>{"use stri ;var u="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=u&&e&&!e.nodeType&&e,a=i&&i.exports===u?r.default.Buffer:void 0;const s=(a?a.isBuffer:void 0)||o},38651:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(7492),o=n(17873),u=n(53822),i=n(54814),a=n(29419),s=n(25247),d=n(43744),c=n(54744),f=Object.prototype.hasOwnProperty;const l=function(e){if(null==e)return!0;if((0,a.default)(e)&&((0,i.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,s.default)(e)||(0,c.default)(e)||(0,u.default)(e)))return!e.length;var t=(0,o.default)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,d.default)(e))return!(0,r.default)(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},16230:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(96425);const o=function(e,t){return(0,r.default)(e,t)}},62942:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(28177),o=n(98279);const u=function(e){if(!(0,o.default)(e))return!1;var t=(0,r.default)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},67702:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},77973:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=function(e){return null===e}},3308:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(28177),o=n(83527);const u=function(e){return"number"==typeof e||(0,o.default)(e)&&"[object Number]"==(0,r.default)(e)}},98279:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},83527:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},8875:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(28177),o=n(83527);const u=function(e){return"symbol"==typeof e||(0,o.default)(e)&&"[object Symbol]"==(0,r.default)(e)}},54744:(e,t,n)=>{"use strict";n.d(t,{default:()=>f});var r=n(28177),o=n(67702),u=n(83527),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;const a=function(e){return(0,u.default)(e)&&(0,o.default)(e.length)&&!!i[(0,r.default)(e)]};var s=n(95256),d=n(59283),c=d.default&&d.default.isTypedArray;const f=c?(0,s.default)(c):a},33358:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(31468),o=n(7492),u=n(29419);const i=function(e){return(0,u.default)(e)?(0,r.default)(e):(0,o.default)(e)}},64162:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(31468),o=n(98279),u=n(43744);const i=function(e){var t=[] ;if(null!=e)for(var n in Object(e))t.push(n);return t};var a=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,o.default)(e))return i(e);var t=(0,u.default)(e),n=[];for(var r in e)("constructor"!=r||!t&&a.call(e,r))&&n.push(r);return n};var d=n(29419);const c=function(e){return(0,d.default)(e)?(0,r.default)(e,!0):s(e)}},58121:(e,t,n)=>{"use strict";n.d(t,{default:()=>K});var r=n(96335),o=n(24402),u=n(72575);const i=function(e,t,n){(void 0!==n&&!(0,u.default)(e[t],n)||void 0===n&&!(t in e))&&(0,o.default)(e,t,n)};var a=n(29718),s=n(57508),d=n(39895),c=n(58555),f=n(52222),l=n(53822),p=n(54814),h=n(29419),g=n(83527);const _=function(e){return(0,g.default)(e)&&(0,h.default)(e)};var v=n(25247),b=n(62942),y=n(98279),m=n(28177),w=n(56838),x=Function.prototype,k=Object.prototype,j=x.toString,O=k.hasOwnProperty,S=j.call(Object);const L=function(e){if(!(0,g.default)(e)||"[object Object]"!=(0,m.default)(e))return!1;var t=(0,w.default)(e);if(null===t)return!0;var n=O.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==S};var P=n(54744);const A=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var E=n(75969),N=n(64162);const C=function(e){return(0,E.default)(e,(0,N.default)(e))};const R=function(e,t,n,r,o,u,a){var h=A(e,n),g=A(t,n),m=a.get(g);if(m)i(e,n,m);else{var w=u?u(h,g,n+"",e,t,a):void 0,x=void 0===w;if(x){var k=(0,p.default)(g),j=!k&&(0,v.default)(g),O=!k&&!j&&(0,P.default)(g);w=g,k||j||O?(0,p.default)(h)?w=h:_(h)?w=(0,c.default)(h):j?(x=!1,w=(0,s.default)(g,!0)):O?(x=!1,w=(0,d.default)(g,!0)):w=[]:L(g)||(0,l.default)(g)?(w=h,(0,l.default)(h)?w=C(h):(0,y.default)(h)&&!(0,b.default)(h)||(w=(0,f.default)(g))):x=!1}x&&(a.set(g,w),o(w,g,r,u,a),a.delete(g)),i(e,n,w)}};const T=function e(t,n,o,u,s){t!==n&&(0,a.default)(n,(function(a,d){if(s||(s=new r.default),(0,y.default)(a))R(t,n,d,o,e,u,s);else{var c=u?u(A(t,d),a,d+"",t,n,s):void 0;void 0===c&&(c=a),i(t,d,c)}}),N.default)};var I=n(99097);const M=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var F=Math.max;const z=function(e,t,n){return t=F(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=F(r.length-t,0),i=Array(u);++o0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(B);const U=function(e,t){return q(z(e,t,I.default),e+"")};var H=n(17104);const W=function(e,t,n){if(!(0,y.default)(n))return!1;var r=typeof t;return!!("number"==r?(0,h.default)(n)&&(0,H.default)(t,n.length):"string"==r&&t in n)&&(0,u.default)(n[t],e)};const K=function(e){ return U((function(t,n){var r=-1,o=n.length,u=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(u=e.length>3&&"function"==typeof u?(o--,u):void 0,i&&W(n[0],n[1],i)&&(u=o<3?void 0:u,o=1),t=Object(t);++r{"use strict";n.d(t,{default:()=>M});const r=function(e,t,n,r){var o=-1,u=null==e?0:e.length;for(r&&u&&(n=e[++o]);++o{"use strict";n.d(t,{default:()=>r});const r=function(){return[]}},43370:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(4889),o=n(98279);const u=function(e,t,n){var u=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,o.default)(n)&&(u="leading"in n?!!n.leading:u, -i="trailing"in n?!!n.trailing:i),(0,r.default)(e,t,{leading:u,maxWait:t,trailing:i})}},15736:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(54136);const o=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var u=n(80838);const i=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var u=Array(o);++r{"use strict";var n,r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(){if(n)return n;if(!r||!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),n="reverse",e.scrollLeft>0?n="default":(e.scrollLeft=1,0===e.scrollLeft&&(n="negative")),document.body.removeChild(e),n}t.detectScrollType=o,t.getNormalizedScrollLeft=function(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=o();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n}},67337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disable:()=>f,enable:()=>c,enabled:()=>s,getAllFeatures:()=>l,setEnabled:()=>d}) +i="trailing"in n?!!n.trailing:i),(0,r.default)(e,t,{leading:u,maxWait:t,trailing:i})}},15736:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(54136);const o=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var u=n(80838);const i=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var u=Array(o);++r{"use strict";var n,r=!("undefined"==typeof window||!window.document||!window.document.createElement);function o(){if(n)return n;if(!r||!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),n="reverse",e.scrollLeft>0?n="default":(e.scrollLeft=1,0===e.scrollLeft&&(n="negative")),document.body.removeChild(e),n}t.detectScrollType=o,t.getNormalizedScrollLeft=function(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;var r=o();if("indeterminate"===r)return Number.NaN;switch(r){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n}return n},t.setNormalizedScrollLeft=function(e,t,n){if("rtl"===n){var r=o();if("indeterminate"!==r)switch(r){case"negative":e.scrollLeft=e.clientWidth-e.scrollWidth+t;break;case"reverse":e.scrollLeft=e.scrollWidth-e.clientWidth-t;break;default:e.scrollLeft=t}}else e.scrollLeft=t}},67337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disable:()=>f,enable:()=>c,enabled:()=>s,getAllFeatures:()=>l,setEnabled:()=>d}) ;const r=JSON.parse('{"14851":{},"custom_items_in_context_menu":{},"countdown":{},"symbol_search_parser_mixin":{},"pay_attention_to_ticker_not_symbol":{},"graying_disabled_tools_enabled":{},"update_study_formatter_on_symbol_resolve":{},"constraint_dialogs_movement":{},"phone_verification":{},"show_trading_notifications_history":{},"show_interval_dialog_on_key_press":{},"header_interval_dialog_button":{"subsets":["show_interval_dialog_on_key_press"]},"header_fullscreen_button":{},"header_symbol_search":{},"symbol_search_hot_key":{},"header_resolutions":{"subsets":["header_interval_dialog_button"]},"header_chart_type":{},"header_settings":{},"header_indicators":{},"header_compare":{},"header_undo_redo":{},"header_screenshot":{},"header_saveload":{},"study_on_study":{},"scales_date_format":{},"header_widget":{"subsets":["header_widget_dom_node","header_symbol_search","header_resolutions","header_chart_type","header_settings","header_indicators","header_compare","header_undo_redo","header_fullscreen_button","compare_symbol","header_screenshot"]},"legend_widget":{},"compare_symbol":{"subsets":["header_compare"]},"property_pages":{"subsets":["show_chart_property_page","chart_property_page"]},"show_chart_property_page":{},"chart_property_page":{"subsets":["chart_property_page_scales","chart_property_page_trading","chart_property_page_right_margin_editor"]},"left_toolbar":{},"hide_left_toolbar_by_default":{},"control_bar":{},"widget_logo":{},"timeframes_toolbar":{},"edit_buttons_in_legend":{"subsets":["show_hide_button_in_legend","format_button_in_legend","study_buttons_in_legend","delete_button_in_legend"]},"show_hide_button_in_legend":{},"object_tree_legend_mode":{},"format_button_in_legend":{},"study_buttons_in_legend":{},"delete_button_in_legend":{},"broker_button":{},"buy_sell_buttons":{"subsets":["broker_button"]},"pane_context_menu":{},"scales_context_menu":{},"legend_context_menu":{},"context_menus":{"subsets":["pane_context_menu","scales_context_menu","legend_context_menu","objects_tree_context_menu"]},"items_favoriting":{},"save_chart_properties_to_local_storage":{},"use_localstorage_for_settings":{"subsets":["items_favoriting","save_chart_properties_to_local_storage"]},"handle_scale":{"subsets":["mouse_wheel_scale","pinch_scale","axis_pressed_mouse_move_scale"]},"handle_scroll":{"subsets":["mouse_wheel_scroll","pressed_mouse_move_scroll","horz_touch_drag_scroll","vert_touch_drag_scroll"]},"plain_studymarket":{},"disable_resolution_rebuild":{},"border_around_the_chart":{},"charting_library_debug_mode":{},"saveload_requires_authentication":{},"saveload_storage_customization":{},"volume_force_overlay":{},"create_volume_indicator_by_default":{},"create_volume_indicator_by_default_once":{},"saved_charts_count_restriction":{},"lean_chart_load":{},"stop_study_on_restart":{},"star_some_intervals_by_default":{},"move_logo_to_main_pane":{},"show_animated_logo":{},"link_to_tradingview":{},"logo_without_link":{},"right_bar_stays_on_scroll":{},"chart_content_overrides_by_defaults":{},"snapshot_trading_drawings":{},"allow_supported_resolutions_set_only":{},"widgetbar_tabs":{"subsets":["right_toolbar"]},"show_object_tree":{"subsets":["right_toolbar"]},"dome_widget":{"subsets":["right_toolbar","showdom_button"]},"dom_widget":{"subsets":["right_toolbar","showdom_button"]},"collapsible_header":{},"study_templates":{},"side_toolbar_in_fullscreen_mode":{},"header_in_fullscreen_mode":{},"remove_library_container_border":{},"whotrades_auth_only":{},"support_multicharts":{},"display_market_status":{},"display_data_mode":{},"datasource_copypaste":{},"drawing_templates":{"subsets":["linetoolpropertieswidget_template_button"]},"expand_symbolsearch_items":{},"symbol_search_three_columns_exchanges":{},"symbol_search_flags":{},"symbol_search_limited_exchanges":{},"bugreport_button":{"subsets":["right_toolbar"]},"footer_publish_idea_button":{},"showdom_button":{"subsets":["right_toolbar"]},"text_notes":{},"show_source_code":{},"symbol_info":{},"no_bars_status":{},"clear_bars_on_series_error":{},"hide_loading_screen_on_series_error":{},"seconds_resolution":{},"dont_show_boolean_study_arguments":{},"hide_last_na_study_output":{},"price_scale_always_last_bar_value":{},"study_dialog_fundamentals_economy_addons":{},"uppercase_instrument_names":{},"trading_notifications":{},"chart_crosshair_menu":{},"japanese_chart_styles":{},"hide_series_legend_item":{},"hide_study_overlay_legend_item":{},"hide_study_compare_legend_item":{},"linetoolpropertieswidget_template_button":{},"use_overrides_for_overlay":{},"timezone_menu":{},"main_series_scale_menu":{},"show_login_dialog":{},"remove_img_from_rss":{},"bars_marks":{},"chart_scroll":{},"chart_zoom":{},"source_selection_markers":{},"low_density_bars":{},"end_of_period_timescale_marks":{},"open_account_manager":{},"show_order_panel_on_start":{},"order_panel":{"subsets":["order_panel_close_button","order_panel_undock","right_toolbar","order_info"]},"multiple_watchlists":{},"watchlist_import_export":{},"study_overlay_compare_legend_option":{},"custom_resolutions":{},"referral_program_for_widget_owners":{},"mobile_trading":{},"real_brokers":{},"no_min_chart_width":{},"lock_visible_time_range_on_resize":{},"pricescale_currency":{},"cropped_tick_marks":{},"trading_account_manager":{},"disable_sameinterval_aligning":{},"display_legend_on_all_charts":{},"chart_style_hilo":{},"pricescale_unit":{},"show_spread_operators":{},"hide_exponentiation_spread_operator":{},"hide_reciprocal_spread_operator":{},"compare_symbol_search_spread_operators":{},"studies_symbol_search_spread_operators":{},"hide_resolution_in_legend":{},"hide_unresolved_symbols_in_legend":{},"fix_left_edge":{},"study_symbol_ticker_description":{},"two_character_bar_marks_labels":{},"tick_resolution":{},"secondary_series_extend_time_scale":{},"hide_volume_ma":{},"small_no_display":{},"charting_library_single_symbol_request":{},"use_ticker_on_symbol_info_update":{},"show_zoom_and_move_buttons_on_touch":{},"hide_main_series_symbol_from_indicator_legend":{},"chart_hide_close_position_button":{},"chart_hide_close_order_button":{},"hide_price_scale_global_last_bar_value":{},"keep_object_tree_widget_in_right_toolbar":{},"show_average_close_price_line_and_label":{},"hide_image_invalid_symbol":{},"hide_object_tree_and_price_scale_exchange_label":{},"confirm_overwrite_if_chart_layout_with_name_exists":{},"use_na_string_for_not_available_values":{},"show_last_price_and_change_only_in_series_legend":{},"show_context_menu_in_crosshair_if_only_one_item":{},"tv_production":{"subsets":["auto_enable_symbol_labels","symbol_search_parser_mixin","header_fullscreen_button","header_widget","dont_show_boolean_study_arguments","left_toolbar","buy_sell_buttons","control_bar","symbol_search_hot_key","context_menus","edit_buttons_in_legend","object_tree_legend_mode","uppercase_instrument_names","use_localstorage_for_settings","saveload_requires_authentication","volume_force_overlay","saved_charts_count_restriction","create_volume_indicator_by_default","create_volume_indicator_by_default_once","charts_auto_save","save_old_chart_before_save_as","chart_content_overrides_by_defaults","alerts","header_saveload","header_layouttoggle","datasource_copypaste","show_saved_watchlists","watchlists_from_to_file","add_to_watchlist","property_pages","support_multicharts","display_market_status","display_data_mode","show_chart_warn_message","support_manage_drawings","widgetbar_tabs","study_templates","collapsible_header","drawing_templates","footer_publish_idea_button","text_notes","show_source_code","symbol_info","linetoolpropertieswidget_template_button","trading_notifications","symbol_search_three_columns_exchanges","symbol_search_flags","symbol_search_limited_exchanges","phone_verification","chart_events","custom_resolutions","compare_symbol","study_on_study","japanese_chart_styles","show_login_dialog","dome_widget","dom_widget","bars_marks","chart_scroll","chart_zoom","show_trading_notifications_history","source_selection_markers","study_dialog_fundamentals_economy_addons","multiple_watchlists","marked_symbols","order_panel","pricescale_currency","show_animated_logo","pricescale_currency","show_object_tree","watchlist_import_export","scales_date_format","popup_hints","show_right_widgets_panel_by_default","compare_recent_symbols_enabled","adaptive_trading_sources"]},"widget":{"subsets":["auto_enable_symbol_labels","symbol_search_parser_mixin","uppercase_instrument_names","left_toolbar","control_bar","symbol_search_hot_key","context_menus","edit_buttons_in_legend","object_tree_legend_mode","use_localstorage_for_settings","saveload_requires_authentication","volume_force_overlay","create_volume_indicator_by_default","create_volume_indicator_by_default_once","dont_show_boolean_study_arguments","header_widget_dom_node","header_symbol_search","header_resolutions","header_chart_type","header_compare","header_indicators","star_some_intervals_by_default","display_market_status","display_data_mode","show_chart_warn_message","symbol_info","linetoolpropertieswidget_template_button","symbol_search_three_columns_exchanges","symbol_search_flags","symbol_search_limited_exchanges","widgetbar_tabs","compare_symbol","show_login_dialog","plain_studymarket","japanese_chart_styles","bars_marks","chart_scroll","chart_zoom","source_selection_markers","property_pages","show_right_widgets_panel_by_default"]},"bovespa_widget":{"subsets":["widget","header_settings","linetoolpropertieswidget_template_button","compare_recent_symbols_enabled"]},"charting_library_base":{"subsets":["14851","allow_supported_resolutions_set_only","auto_enable_symbol_labels","border_around_the_chart","collapsible_header","constraint_dialogs_movement","context_menus","control_bar","create_volume_indicator_by_default","custom_items_in_context_menu","datasource_copypaste","uppercase_instrument_names","display_market_status","edit_buttons_in_legend","object_tree_legend_mode","graying_disabled_tools_enabled","header_widget","legend_widget","header_saveload","dont_show_boolean_study_arguments","lean_chart_load","left_toolbar","link_to_tradingview","pay_attention_to_ticker_not_symbol","plain_studymarket","refresh_saved_charts_list_on_dialog_show","right_bar_stays_on_scroll","saveload_storage_customization","stop_study_on_restart","timeframes_toolbar","symbol_search_hot_key","update_study_formatter_on_symbol_resolve","update_timeframes_set_on_symbol_resolve","use_localstorage_for_settings","volume_force_overlay","widget_logo","countdown","use_overrides_for_overlay","trading_notifications","compare_symbol","symbol_info","timezone_menu","main_series_scale_menu","create_volume_indicator_by_default_once","bars_marks","chart_scroll","chart_zoom","source_selection_markers","property_pages","go_to_date","adaptive_logo","show_animated_logo","handle_scale","handle_scroll","shift_visible_range_on_new_bar","chart_content_overrides_by_defaults","cropped_tick_marks","scales_date_format","popup_hints","save_shortcut","show_right_widgets_panel_by_default","show_object_tree","insert_indicator_dialog_shortcut","compare_recent_symbols_enabled","hide_main_series_symbol_from_indicator_legend"]},"charting_library":{"subsets":["charting_library_base"]},"static_charts_service":{"subsets":["charting_library","disable_resolution_rebuild"]},"trading_terminal":{"subsets":["charting_library_base","showdom_button","support_multicharts","header_layouttoggle","japanese_chart_styles","chart_property_page_trading","add_to_watchlist","open_account_manager","show_dom_first_time","order_panel","buy_sell_buttons","multiple_watchlists","show_trading_notifications_history","always_pass_called_order_to_modify","show_object_tree","watchlist_import_export","drawing_templates","trading_account_manager","chart_crosshair_menu","compare_recent_symbols_enabled","adaptive_trading_sources"]}}') ;var o=n.t(r,2);const u=new Map,i=new Map,a=new Set;function s(e){const t=u.get(e);if(void 0!==t)return t;const n=i.get(e);return!!n&&n.some(s)}function d(e,t){u.set(String(e),Boolean(t))}function c(e){d(e,!0)}function f(e){d(e,!1)}function l(){const e=Object.create(null);for(const t of a)e[t]=s(t);return e}!function(){for(const[e,t]of Object.entries(o))if(a.add(e),"subsets"in t)for(const n of t.subsets){a.add(n);let t=i.get(n);void 0===t&&(t=[],i.set(n,t)),t.push(e)}"object"==typeof __initialDisabledFeaturesets&&Array.isArray(__initialDisabledFeaturesets)&&__initialDisabledFeaturesets.forEach(f),"object"==typeof __initialEnabledFeaturesets&&Array.isArray(__initialEnabledFeaturesets)&&__initialEnabledFeaturesets.forEach(c)}()},80643:function(e,t,n){var r;e=n.nmd(e);var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=function(e){return"object"==typeof e&&null!==e};function i(e){return"number"==typeof e&&isFinite(e)}function a(e){return null!=e&&e.constructor===Function}function s(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}"undefined"!=typeof window?(r=window.TradingView=window.TradingView||{},window.isNumber=i,window.isFunction=a,window.inherit=s,window.isArray=o):r=this.TradingView=this.TradingView||{},r.isNaN=function(e){return!(e<=0||e>0)},r.isAbsent=function(e){return null==e},r.isExistent=function(e){return null!=e},Number.isNaN=Number.isNaN||function(e){return e!=e},r.isSameType=function(e,t){return Number.isNaN(e)||Number.isNaN(t)?Number.isNaN(e)===Number.isNaN(t):{}.toString.call(e)==={}.toString.call(t)},r.isInteger=function(e){return"number"==typeof e&&e%1==0},r.parseBool=function(e){return!0===e||"true"===e},r.isBoolean=function(e){return!0===e||!1===e},r.isString=function(e){return null!=e&&e.constructor===String},r.isInherited=function(e,t){if(null==e||null==e.prototype)throw new TypeError("isInherited: child should be a constructor function");if(null==t||null==t.prototype)throw new TypeError("isInherited: parent should be a constructor function");return e.prototype instanceof t||e.prototype===t.prototype},r.TypeValidator=function(e){this.m_type=e},r.TypeValidator.prototype.check=function(e){return e.constructor===this.m_type||r.isInherited(e.constructor,this.m_type)},r.PredicateValidator=function(e){this.m_predicate=e},r.PredicateValidator.prototype.check=function(e){return this.m_predicate(e)},r.clone=function(e){if(!e||"object"!=typeof e)return e;var t,n,o;for(n in t="function"==typeof e.pop?[]:{},e)e.hasOwnProperty(n)&&(o=e[n],t[n]=o&&"object"==typeof o?r.clone(o):o);return t},r.deepEquals=function(e,t,n){if(n||(n=""),e===t)return[!0,n];if(a(e)&&(e=void 0),a(t)&&(t=void 0),void 0===e&&void 0!==t)return[!1,n];if(void 0===t&&void 0!==e)return[!1,n];if(null===e&&null!==t)return[!1,n];if(null===t&&null!==e)return[!1,n];if("object"!=typeof e&&"object"!=typeof t)return[e===t,n];if(Array.isArray(e)&&Array.isArray(t)){var u=e.length;if(u!==t.length)return[!1,n];for(var i=0;iu&&(d=1*s),0===d);c++);return d}},e&&e.exports&&(e.exports={inherit:s,clone:r.clone,merge:r.merge,isNumber:i,isInteger:r.isInteger,isBoolean:r.isBoolean,isString:r.isString,isObject:u,isHashObject:function(e){return u(e)&&-1!==e.constructor.toString().indexOf("function Object")},isPromise:function(e){return u(e)&&e.then},isNaN:r.isNaN,isAbsent:r.isAbsent,isExistent:r.isExistent,isSameType:r.isSameType,isArray:o,isFunction:a,parseBool:r.parseBool,deepEquals:r.deepEquals,notNull:function(e){return null!==e},notUndefined:function(e){return void 0!==e},declareClassAsPureInterface:function(e,t){for(var n in e.prototype)"function"==typeof e.prototype[n]&&e.prototype.hasOwnProperty(n)&&(e.prototype[n]=function(){throw new Error(t+"::"+n+" is an interface member declaration and must be overloaded in order to be called")})},requireFullInterfaceImplementation:function(e,t,n,r){for(var o in n.prototype)if("function"==typeof n.prototype[o]&&!e.prototype[o])throw new Error("Interface implementation assertion failed: "+t+" does not implement "+r+"::"+o+" function")}})},94419:(e,t,n)=>{"use strict";n.r(t);var r=n(80643);const o=/{(\w+)}/g,u=/{(\d+)}/g;String.prototype.format=function(...e){const t=(0,r.isObject)(e[0]),n=t?o:u,i=t?(t,n)=>{const r=e[0];return void 0!==r[n]?r[n]:t}:(t,n)=>{const r=parseInt(n,10),o=e[r];return void 0!==o?o:t};return this.replace(n,i)}},9196:()=>{"use strict";var e,t,n,r,o,u;window.parent!==window&&window.CanvasRenderingContext2D&&window.TextMetrics&&(t=window.CanvasRenderingContext2D.prototype)&&t.hasOwnProperty("font")&&t.hasOwnProperty("mozTextStyle")&&"function"==typeof t.__lookupSetter__&&(n=t.__lookupSetter__("font"))&&(t.__defineSetter__("font",(function(e){try{return n.call(this,e)}catch(e){if("NS_ERROR_FAILURE"!==e.name)throw e}})),r=t.measureText,e=function(){this.width=0,this.isFake=!0,this.__proto__=window.TextMetrics.prototype},t.measureText=function(t){try{return r.apply(this,arguments)}catch(t){if("NS_ERROR_FAILURE"!==t.name)throw t;return new e}},o=t.fillText,t.fillText=function(e,t,n,r){try{o.apply(this,arguments)}catch(e){ diff --git a/charting_library/bundles/186115d4ca74152914acd81e26836798.svg b/charting_library/bundles/186115d4ca74152914acd81e26836798.svg new file mode 100644 index 00000000..cc7fa734 --- /dev/null +++ b/charting_library/bundles/186115d4ca74152914acd81e26836798.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1865.9d9f2c055165380e13c9.css b/charting_library/bundles/1865.9d9f2c055165380e13c9.css new file mode 100644 index 00000000..a08f8a8d --- /dev/null +++ b/charting_library/bundles/1865.9d9f2c055165380e13c9.css @@ -0,0 +1 @@ +.billing-date-EEnD87dn{color:#131722;font-size:24px;line-height:36px}html.theme-dark .billing-date-EEnD87dn{color:#d1d4dc}.total-JkT5MEd7{display:flex}@media screen and (max-width:767px){.total-JkT5MEd7{flex-direction:column}}.description-container-JkT5MEd7{flex:1.5}.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-right:20px}@media screen and (max-width:767px){.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-right:0}}.description-JkT5MEd7{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .description-JkT5MEd7{color:#787b86}.price-JkT5MEd7,.title-JkT5MEd7{color:#131722;font-size:24px;line-height:36px}html.theme-dark .price-JkT5MEd7,html.theme-dark .title-JkT5MEd7{color:#d1d4dc}.price-JkT5MEd7{color:#131722;flex:1;font-weight:700;text-align:right}html.theme-dark .price-JkT5MEd7{color:#d1d4dc}@media screen and (max-width:767px){.price-JkT5MEd7{text-align:initial}}.info-block-pdxqWuDM{background-color:#e3effd;border-radius:4px;flex:1;margin-top:24px;padding:16px 16px 4px}html.theme-dark .info-block-pdxqWuDM{background-color:#132042}h3.info-block-title-pdxqWuDM{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark h3.info-block-title-pdxqWuDM{color:#d1d4dc}p.info-block-description-pdxqWuDM{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark p.info-block-description-pdxqWuDM{color:#b2b5be}.footer-N3Bb7EMK{margin-top:20px}.separator-N3Bb7EMK{border-bottom:1px dashed #c1c4cd;margin:16px 0}.title-iyvXI0en{color:#131722;font-size:31px;line-height:44px;margin:40px 60px 20px 0}html.theme-dark .title-iyvXI0en{color:#d1d4dc}.checkbox-wrap-e1ycFYBm{margin-top:20px}.checkbox-e1ycFYBm{align-items:baseline}p.label-p-e1ycFYBm{color:#434651;font-size:14px;line-height:1.6em;margin-bottom:0}html.theme-dark p.label-p-e1ycFYBm{color:#d1d4dc}.actions-9KDBaBYj{display:flex;justify-content:flex-end;margin-top:20px}.hide-btn-text-9KDBaBYj{opacity:0}.plans-container-GAQ9CocC{display:flex;justify-content:space-between}.plan-box-GAQ9CocC{border-radius:6px;box-sizing:border-box;padding:20px;width:320px}@media screen and (max-width:479px){.plan-box-GAQ9CocC{padding:12px}}.plan-box-GAQ9CocC.one-card-layout-GAQ9CocC{width:100%}.plan--next-GAQ9CocC{background-color:#fff;border:3px solid #2962ff}html.theme-dark .plan--next-GAQ9CocC{background-color:#1e222d;border:3px solid #1848cc}@media screen and (max-width:479px){.plan--next-GAQ9CocC{border-width:2px}}.plan--current-GAQ9CocC{background-color:#f8f9fd}html.theme-dark .plan--current-GAQ9CocC{background-color:#131722}.plan-box--title-GAQ9CocC{color:#131722;display:block;font-size:24px;font-weight:600;line-height:32px;margin-bottom:4px}html.theme-dark .plan-box--title-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--title-GAQ9CocC{font-size:20px;line-height:28px}}.plan-box--description-GAQ9CocC{color:#434651;display:block;font-size:14px;line-height:21px;margin-bottom:12px}html.theme-dark .plan-box--description-GAQ9CocC{color:#b2b5be}@media screen and (max-width:479px){.plan-box--description-GAQ9CocC{display:none}}.plan-box--days-left-GAQ9CocC{color:#131722;display:block;font-size:20px;line-height:36px;margin:0}html.theme-dark .plan-box--days-left-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--days-left-GAQ9CocC{font-size:18px;line-height:28px}}.arrow-GAQ9CocC{align-self:center;color:#131722}html.theme-dark .arrow-GAQ9CocC{color:#d1d4dc}.arrow-GAQ9CocC svg{height:48px;width:48px}.content-X3KKyG5H{padding:0 40px}@media screen and (max-width:479px){.content-X3KKyG5H{padding:0 20px}}.checkboxes-X3KKyG5H{margin-top:20px}.dialog-xQE4WxzT.change-plan-xQE4WxzT{min-width:768px;overflow:hidden;padding-bottom:10px}@media screen and (max-width:767px){.dialog-xQE4WxzT.change-plan-xQE4WxzT{border-radius:0;bottom:0;left:0;min-width:auto;position:fixed;right:0;top:0;width:100%}}.body-xQE4WxzT{display:flex;flex-direction:column}.body-xQE4WxzT.body-xQE4WxzT{padding:0 0 30px;position:relative}.close-button-xQE4WxzT{position:absolute;right:30px;top:30px} \ No newline at end of file diff --git a/charting_library/bundles/1865.9d9f2c055165380e13c9.rtl.css b/charting_library/bundles/1865.9d9f2c055165380e13c9.rtl.css new file mode 100644 index 00000000..c3a6272d --- /dev/null +++ b/charting_library/bundles/1865.9d9f2c055165380e13c9.rtl.css @@ -0,0 +1 @@ +.billing-date-EEnD87dn{color:#131722;font-size:24px;line-height:36px}html.theme-dark .billing-date-EEnD87dn{color:#d1d4dc}.total-JkT5MEd7{display:flex}@media screen and (max-width:767px){.total-JkT5MEd7{flex-direction:column}}.description-container-JkT5MEd7{flex:1.5}.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-left:20px}@media screen and (max-width:767px){.description-container-JkT5MEd7,.price-JkT5MEd7:not(:last-child){margin-left:0}}.description-JkT5MEd7{color:#787b86;font-size:14px;line-height:21px}html.theme-dark .description-JkT5MEd7{color:#787b86}.price-JkT5MEd7,.title-JkT5MEd7{color:#131722;font-size:24px;line-height:36px}html.theme-dark .price-JkT5MEd7,html.theme-dark .title-JkT5MEd7{color:#d1d4dc}.price-JkT5MEd7{color:#131722;flex:1;font-weight:700;text-align:left}html.theme-dark .price-JkT5MEd7{color:#d1d4dc}@media screen and (max-width:767px){.price-JkT5MEd7{text-align:initial}}.info-block-pdxqWuDM{background-color:#e3effd;border-radius:4px;flex:1;margin-top:24px;padding:16px 16px 4px}html.theme-dark .info-block-pdxqWuDM{background-color:#132042}h3.info-block-title-pdxqWuDM{color:#131722;font-size:18px;margin-bottom:4px}html.theme-dark h3.info-block-title-pdxqWuDM{color:#d1d4dc}p.info-block-description-pdxqWuDM{color:#434651;font-size:16px;line-height:1.6;margin-bottom:12px}html.theme-dark p.info-block-description-pdxqWuDM{color:#b2b5be}.footer-N3Bb7EMK{margin-top:20px}.separator-N3Bb7EMK{border-bottom:1px dashed #c1c4cd;margin:16px 0}.title-iyvXI0en{color:#131722;font-size:31px;line-height:44px;margin:40px 0 20px 60px}html.theme-dark .title-iyvXI0en{color:#d1d4dc}.checkbox-wrap-e1ycFYBm{margin-top:20px}.checkbox-e1ycFYBm{align-items:baseline}p.label-p-e1ycFYBm{color:#434651;font-size:14px;line-height:1.6em;margin-bottom:0}html.theme-dark p.label-p-e1ycFYBm{color:#d1d4dc}.actions-9KDBaBYj{display:flex;justify-content:flex-end;margin-top:20px}.hide-btn-text-9KDBaBYj{opacity:0}.plans-container-GAQ9CocC{display:flex;justify-content:space-between}.plan-box-GAQ9CocC{border-radius:6px;box-sizing:border-box;padding:20px;width:320px}@media screen and (max-width:479px){.plan-box-GAQ9CocC{padding:12px}}.plan-box-GAQ9CocC.one-card-layout-GAQ9CocC{width:100%}.plan--next-GAQ9CocC{background-color:#fff;border:3px solid #2962ff}html.theme-dark .plan--next-GAQ9CocC{background-color:#1e222d;border:3px solid #1848cc}@media screen and (max-width:479px){.plan--next-GAQ9CocC{border-width:2px}}.plan--current-GAQ9CocC{background-color:#f8f9fd}html.theme-dark .plan--current-GAQ9CocC{background-color:#131722}.plan-box--title-GAQ9CocC{color:#131722;display:block;font-size:24px;font-weight:600;line-height:32px;margin-bottom:4px}html.theme-dark .plan-box--title-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--title-GAQ9CocC{font-size:20px;line-height:28px}}.plan-box--description-GAQ9CocC{color:#434651;display:block;font-size:14px;line-height:21px;margin-bottom:12px}html.theme-dark .plan-box--description-GAQ9CocC{color:#b2b5be}@media screen and (max-width:479px){.plan-box--description-GAQ9CocC{display:none}}.plan-box--days-left-GAQ9CocC{color:#131722;display:block;font-size:20px;line-height:36px;margin:0}html.theme-dark .plan-box--days-left-GAQ9CocC{color:#d1d4dc}@media screen and (max-width:479px){.plan-box--days-left-GAQ9CocC{font-size:18px;line-height:28px}}.arrow-GAQ9CocC{align-self:center;color:#131722}html.theme-dark .arrow-GAQ9CocC{color:#d1d4dc}.arrow-GAQ9CocC svg{height:48px;width:48px}.content-X3KKyG5H{padding:0 40px}@media screen and (max-width:479px){.content-X3KKyG5H{padding:0 20px}}.checkboxes-X3KKyG5H{margin-top:20px}.dialog-xQE4WxzT.change-plan-xQE4WxzT{min-width:768px;overflow:hidden;padding-bottom:10px}@media screen and (max-width:767px){.dialog-xQE4WxzT.change-plan-xQE4WxzT{border-radius:0;bottom:0;left:0;min-width:auto;position:fixed;right:0;top:0;width:100%}}.body-xQE4WxzT{display:flex;flex-direction:column}.body-xQE4WxzT.body-xQE4WxzT{padding:0 0 30px;position:relative}.close-button-xQE4WxzT{left:30px;position:absolute;top:30px} \ No newline at end of file diff --git a/charting_library/bundles/192a7bbb73684d1f6dae83700fb21173.svg b/charting_library/bundles/192a7bbb73684d1f6dae83700fb21173.svg new file mode 100644 index 00000000..abdfdf5e --- /dev/null +++ b/charting_library/bundles/192a7bbb73684d1f6dae83700fb21173.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1946.c0a666d2f0aa1faa6769.js b/charting_library/bundles/1946.c0a666d2f0aa1faa6769.js new file mode 100644 index 00000000..afad8721 --- /dev/null +++ b/charting_library/bundles/1946.c0a666d2f0aa1faa6769.js @@ -0,0 +1,20 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1946],{35806:(e,t,a)=>{e.exports=a.p+"4419319a45a29943de1cbb904c896305.svg"},96622:(e,t,a)=>{e.exports=a.p+"1614841ed51c3d3bebf01c2a573e83ee.svg"},80875:(e,t,a)=>{e.exports=a.p+"7e42b51d668e0b400a9cb506aec1fc00.svg"},9037:e=>{e.exports={"round-tabs":"round-tabs-K7mS8XY3","align-start":"align-start-K7mS8XY3","align-center":"align-center-K7mS8XY3",tab:"tab-K7mS8XY3","tab-primary":"tab-primary-K7mS8XY3",checked:"checked-K7mS8XY3","tab-ghost":"tab-ghost-K7mS8XY3","size-xsmall":"size-xsmall-K7mS8XY3","size-small":"size-small-K7mS8XY3","size-large":"size-large-K7mS8XY3"}},41207:e=>{e.exports={title:"title-vJ96rZdD title-yKAVl1gH",description:"description-vJ96rZdD","apple-pay-container":"apple-pay-container-vJ96rZdD",termsCheckboxContainer:"termsCheckboxContainer-vJ96rZdD",hidden:"hidden-vJ96rZdD","apple-pay-button-with-text":"apple-pay-button-with-text-vJ96rZdD","apple-pay-button-with-text-white":"apple-pay-button-with-text-white-vJ96rZdD","apple-pay-button-with-text-black":"apple-pay-button-with-text-black-vJ96rZdD"}},41033:e=>{e.exports={title:"title-eSrDwvYT title-yKAVl1gH",description:"description-eSrDwvYT",accent:"accent-eSrDwvYT",block:"block-eSrDwvYT",listOfCrypto:"listOfCrypto-eSrDwvYT",vital:"vital-eSrDwvYT",link:"link-eSrDwvYT"}},48372:e=>{e.exports={title:"title-MIHsGXyq title-3IsblctN",addressField:"addressField-MIHsGXyq",invalidInput:"invalidInput-MIHsGXyq",focusInput:"focusInput-MIHsGXyq",cardInput:"cardInput-MIHsGXyq",validInput:"validInput-MIHsGXyq",addressFieldsContainer:"addressFieldsContainer-MIHsGXyq",additionalFieldsContainer:"additionalFieldsContainer-MIHsGXyq"}},69644:e=>{e.exports={purchaseBlock:"purchaseBlock-8RcOLBfK"}},77150:e=>{e.exports={policyCheckbox:"policyCheckbox-LSoXiIEh",checkboxLabel:"checkboxLabel-LSoXiIEh",checkbox:"checkbox-LSoXiIEh"}},12150:e=>{e.exports={"price-row":"price-row-RlX7XxW1","total-title":"total-title-RlX7XxW1","total-number":"total-number-RlX7XxW1","tax-row":"tax-row-RlX7XxW1"}},68819:e=>{e.exports={title:"title-3IsblctN",highlight:"highlight-3IsblctN highlight-yKAVl1gH",cardForm:"cardForm-3IsblctN",formInput:"formInput-3IsblctN",input:"input-3IsblctN","button-container":"button-container-3IsblctN",addressField:"addressField-3IsblctN",creditCardFormContainer:"creditCardFormContainer-3IsblctN",creditCardFieldsContainer:"creditCardFieldsContainer-3IsblctN",creditCardWrapper:"creditCardWrapper-3IsblctN",cardTypeIcon:"cardTypeIcon-3IsblctN",cardNumber:"cardNumber-3IsblctN",cardholderName:"cardholderName-3IsblctN",cardInput:"cardInput-3IsblctN",creditCardNumberInput:"creditCardNumberInput-3IsblctN",nameInput:"nameInput-3IsblctN"}},37793:e=>{e.exports={link:"link-Gp0emyGe",description:"description-Gp0emyGe"}},37024:e=>{e.exports={error:"error-SnZhQzb8",errorCountry:"errorCountry-SnZhQzb8",errorTitleWrapper:"errorTitleWrapper-SnZhQzb8",errorText:"errorText-SnZhQzb8",errorCountryText:"errorCountryText-SnZhQzb8",descriptionText:"descriptionText-SnZhQzb8",lastText:"lastText-SnZhQzb8", +errorCountryLastText:"errorCountryLastText-SnZhQzb8",secondButton:"secondButton-SnZhQzb8",icon:"icon-SnZhQzb8",button:"button-SnZhQzb8",solutionWrapper:"solutionWrapper-SnZhQzb8",solutions:"solutions-SnZhQzb8",itemLink:"itemLink-SnZhQzb8"}},19230:e=>{e.exports={title:"title-9F7Jqc3D title-yKAVl1gH",description:"description-9F7Jqc3D","google-pay-container":"google-pay-container-9F7Jqc3D","google-pay-button":"google-pay-button-9F7Jqc3D",hidden:"hidden-9F7Jqc3D"}},72443:e=>{e.exports={radio:"radio-MOJsE6Ae",title:"title-MOJsE6Ae title-yKAVl1gH",actionBlock:"actionBlock-MOJsE6Ae",action:"action-MOJsE6Ae",icon:"icon-MOJsE6Ae",radioButton:"radioButton-MOJsE6Ae",radioButtonColor:"radioButtonColor-MOJsE6Ae",iconWrapper:"iconWrapper-MOJsE6Ae"}},72733:e=>{e.exports={pageContainer:"pageContainer-yKAVl1gH",spinnerContainer:"spinnerContainer-yKAVl1gH",loading:"loading-yKAVl1gH",hide:"hide-yKAVl1gH",title:"title-yKAVl1gH",highlight:"highlight-yKAVl1gH",tabs:"tabs-yKAVl1gH",termsCheckboxContainer:"termsCheckboxContainer-yKAVl1gH",purchaseBlock:"purchaseBlock-yKAVl1gH",cardholderName:"cardholderName-yKAVl1gH"}},42729:e=>{e.exports={title:"title-hLncX8Ky title-yKAVl1gH",description:"description-hLncX8Ky",paypalButton:"paypalButton-hLncX8Ky",disabled:"disabled-hLncX8Ky",hidden:"hidden-hLncX8Ky"}},26661:e=>{e.exports={success:"success-zMRBI9iz",successText:"successText-zMRBI9iz",descriptionText:"descriptionText-zMRBI9iz",lastText:"lastText-zMRBI9iz",icon:"icon-zMRBI9iz",button:"button-zMRBI9iz"}},60670:(e,t,a)=>{"use strict";a.d(t,{DEFAULT_ROUND_TABS_THEME:()=>d,RoundTabsButtons:()=>u});var n=a(59496),r=a(5437),o=a(97754);function s(e,t){const{align:a="start",size:n="xsmall"}=t;return o(e["round-tabs"],e["align-"+a],e["size-"+n])}function i(e,t){const{variant:a="primary",isChecked:n}=t;return o(e.tab,e["tab-"+a],n&&e.checked)}var l=a(9037),c=a.n(l);const d=c(),u=n.forwardRef((e,t)=>{const{tabs:a,size:o="xsmall",variant:l="primary",theme:d=c()}=e;return n.createElement("div",{className:s(d,e),ref:t},a.map(e=>{const{isChecked:t,...a}=e;return n.createElement(r.RoundButton,{...a,className:i(d,{...a,variant:l,isChecked:t}),size:o,variant:l})}))});u.displayName="RoundTabsButtons";n.forwardRef((e,t)=>{const{tabs:a,size:o="xsmall",variant:l="primary",theme:d=c()}=e;return n.createElement("div",{className:s(d,e),ref:t},a.map(e=>{const{isChecked:t,...a}=e;return n.createElement(r.RoundAnchorButton,{...a,className:i(d,{...a,variant:l,isChecked:t}),size:o,variant:l})}))}).displayName="RoundTabsAnchors"},74745:(e,t,a)=>{"use strict";a.d(t,{TermsCheckbox:()=>l});var n=a(59496),r=a(28353),o=(a(94419),a(15294)),s=a(77150);const i="policy-checkbox";function l(e){const{onChange:t,checked:a,labelText:l,checkboxId:c=i,children:d,showError:u}=e,m=l||r.t("I have read and agree with TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}").format({termsLink:'',privacyLink:'',closeLink:""}) +;return n.createElement("div",{className:s.policyCheckbox},n.createElement(o.Checkbox,{id:c,checked:a,onChange:t,className:s.checkbox,intent:u&&!a?"danger":void 0}),n.createElement("label",{htmlFor:c,dangerouslySetInnerHTML:d?void 0:{__html:m},className:s.checkboxLabel},d))}},14972:(e,t,a)=>{"use strict";a.d(t,{getDeviceData:()=>o});var n=a(72589),r=a.n(n);function o(e){return r().client.create({authorization:e}).then(e=>r().dataCollector.create({client:e,paypal:!0}).then(e=>e.deviceData))}},60679:(e,t,a)=>{"use strict";a.d(t,{PaymentDataType:()=>n,orderDetails:()=>i,onStartTrial:()=>l,onChangeTrial:()=>c,onCoinbasePurchase:()=>d,onEcommpayPurchase:()=>u,onOrderPurchase:()=>m});var n,r=a(85198),o=a(10878);function s(e,t,a,o,s,i){const l={product_id:a};return o===n.Nonce?l.payment_method_nonce=t:o===n.Token&&(l.payment_method_token=t),s&&(l.billing_cycle=s),i&&(l.user_details=i),(0,r.fetch)(e,{method:"POST",credentials:"include",body:JSON.stringify(l)})}function i(){return(0,r.fetch)("/order/details/").then(e=>e.json())}function l(e,t,a,n,r){return s("/trial/new/",e,t[0],a,n,r)}function c(e){const t=new FormData;return t.append("product_id",e),(0,r.fetch)("/trial/change/",{method:"POST",credentials:"include",headers:new Headers({acccept:"application/json","X-Requested-With":"XMLHttpRequest"}),body:t})}async function d(e,t,a){const n=await(0,r.fetch)("/order/coinbase/products/",{method:"POST",credentials:"include",body:JSON.stringify({products:e,billing_cycle:t,...a})});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function u(e,t,a,n){const s=await(0,r.fetch)("/order/ecommpay/products/",{method:"POST",credentials:"include",body:JSON.stringify({products:e,billing_cycle:t,currency:o.Currencies.Rub,is_trial_period:n,...a})});if(!s.ok){const e=await s.json();throw Error(e.detail)}return s.json()}function m(e,t,a,s,i){const l={products:t,currency:o.Currencies.Usd};return a===n.Nonce?l.payment_method_nonce=e:a===n.Token&&(l.payment_method_token=e),s&&(l.billing_cycle=s),i&&(l.user_details=i),(0,r.fetch)("/order/products/",{method:"POST",credentials:"include",body:JSON.stringify(l)})}!function(e){e.Nonce="nonce",e.Token="token"}(n||(n={}))},31946:(e,t,a)=>{"use strict";a.d(t,{PaymentMethod:()=>v});var n=a(59496),r=a(28353),o=a(97754),s=a.n(o),i=a(76266),l=a(76974),c=a(78540),d=a(60679),u=a(88537),m=a(61074),p=a(60670),h=a(57762),y=a(98125),g=a(68769),C=a(72733);const b=(0,y.getLogger)("PaymentsMethod"),f=[h.PaymentTab.OneClick,h.PaymentTab.CreditCard,h.PaymentTab.Ecommpay,h.PaymentTab.ApplePay,h.PaymentTab.GooglePay,h.PaymentTab.Paypal,h.PaymentTab.Coinbase];function v(e){ +const{products:t,billingCycle:a=c.BillingCycle.Monthly,successText:r,hideTotalPrice:o,hideTryAgainButtonCodes:y,defaultTab:f,purchaseButtonText:v,termsText:k,spinnerContainerClassName:_,successTitle:N,errorTitle:S,buttonContainer:A,checked:x=!1,children:I,excludedTabs:w=[],check2faForOneClick:M=!1,inResponsiveContainer:F=!1,onTryAgain:V,onTabChange:B,onSuccess:D,onError:R,onClose:L,onPurchase:O,onCheckboxValidityChange:H,onBillingAddressChange:z,price:U,currency:K,defaultCountry:W,isTrial:Z,blockedCountries:G}=e,[X,Y]=(0,n.useState)(null),[$,q]=(0,n.useState)(null),[J,j]=(0,n.useState)(""),[Q,ee]=(0,n.useState)(""),[te,ae]=(0,n.useState)(""),[ne,re]=(0,n.useState)(null),[oe,se]=(0,n.useState)(!1),[ie,le]=(0,n.useState)(T(w,W)),[ce,de]=(0,n.useState)(!0),[ue,me]=(0,n.useState)(x),[pe,he]=(0,n.useState)(""),[ye,ge]=(0,n.useState)(""),[Ce,be]=(0,n.useState)(),[fe,ve]=(0,n.useState)(!1),Ee=(0,l.useIsMounted)(),Te=(0,n.useCallback)(e=>{Ee.current&&e!==X&&(B&&B(e),Y(e),q(null),de(!0))},[B,X]),Pe=(0,n.useCallback)(e=>{e.preventDefault(),Te(h.PaymentTab.CreditCard)},[Te]),ke=(0,n.useCallback)(e=>{Ee.current&&Ee.current&&(q(h.PaymentResult.Success),de(!1),D&&D(e))},[D]),_e=(0,n.useCallback)((e,t)=>{he(null!=e?e:""),ge(null!=t?t:""),q(h.PaymentResult.Error),de(!1)},[]),Ne=(0,n.useCallback)(e=>{if(H)return H(e);ve(e)},[H]),Se=X!==h.PaymentTab.OneClick?d.PaymentDataType.Nonce:d.PaymentDataType.Token,Ae=(0,n.useCallback)(async(e,n)=>{if(!ue)return void Ne(!ue);const r=await O(e,t,Se,a,n);if(r.ok)return void ke(r);const o=await r.json();o.detail&&o.code&&Ee.current&&_e(o.detail,o.code)},[Se,ke,O,ue,Ne,a,t]),xe=(0,n.useCallback)(async e=>{try{const n=await(0,d.onCoinbasePurchase)(t,a,e);window.open(n.hosted_url,"_self")}catch(e){b.logError(e.message),_e(e.message)}},[t,a]),Ie=(0,n.useCallback)(async e=>{try{const n=await(0,d.onEcommpayPurchase)(t,a,e,Z);window.open(n.payment_page_url,"_self")}catch(e){b.logError(e.message),_e(e.message)}},[t,a,Z]),we=(0,n.useCallback)(()=>{V&&V(),q(null)},[V]);(0,n.useEffect)(()=>{(0,u.ensureDefined)(window.pro).runOrUpdate(()=>be(window.pro)),(0,d.orderDetails)().then(e=>{if(!Ee.current)return;const{client_token:t,payment_methods:a,paypal_client_id:n,google_pay_merchant_id:r,is_2fa_active:o}=e,s=!M||o?a:[],i=null==s?void 0:s.filter(e=>e.is_address_complete);j(t),ee(n),ae(r),re(null!=i?i:[])}).catch(R)},[]),(0,n.useEffect)(()=>{ne&&(0===ne.length?le(T([h.PaymentTab.OneClick,...w],W)):le(T(w,W)))},[ne,w,W]),(0,n.useEffect)(()=>{if(!ne)return;const e=(0,g.showEcommpay)(W),t=(0,i.isFeatureEnabled)("ecommpay_ru");e&&!f?t?Te(h.PaymentTab.Ecommpay):ie.includes(h.PaymentTab.Coinbase)?Te(h.PaymentTab.Coinbase):Te(ie[0]):e&&f&&f!==h.PaymentTab.OneClick?E.includes(f)&&t?Te(h.PaymentTab.Ecommpay):t||f!==h.PaymentTab.Ecommpay?Te(f):Te(ie[0]):e&&t&&f===h.PaymentTab.OneClick?Te(h.PaymentTab.Ecommpay):f&&f!==h.PaymentTab.OneClick?Te(f):0===ne.length?Te(h.PaymentTab.CreditCard):Te(h.PaymentTab.OneClick),se(!0)},[ne,f,W,ie]),(0,n.useEffect)(()=>{me(x)},[x]);const Me=(0, +n.useCallback)(()=>me(!ue),[ue]),Fe=ie.map((e,t)=>({onClick:()=>Te(e),children:n.createElement("span",null,P(e)),isChecked:X===e,key:`tab_${e}_${t}`,role:"tabpanel","aria-controls":"tab-method-"+t,"aria-selected":X===e,id:"tabpanel-method-"+t,disabled:ce||Boolean($)}));return J&&Ce&&oe?n.createElement(n.Fragment,null,n.createElement("div",{className:C.tabs,role:"tablist"},n.createElement(p.RoundTabsButtons,{tabs:Fe,align:"start",size:"xsmall",theme:p.DEFAULT_ROUND_TABS_THEME})),n.createElement("div",{className:s()(C.pageContainer,ce&&C.loading,!F&&"responsive-container-base")},n.createElement("div",{className:s()(C.spinnerContainer,_,ce&&C.hide)},n.createElement(m.Spinner,{size:"medium"})),n.createElement(h.RenderPage,{tab:X,paypalClientId:Q,googlePayMerchantId:te,result:$,errorText:pe,errorCode:ye,errorTitle:S,hideTryAgainButtonCodes:y,onTryAgainHandler:we,onClose:L,successText:r,successTitle:N,onCheckboxValidity:Ne,buttonContainer:A,termsText:k,purchaseButtonText:v,hideTotalPrice:o,showCheckboxError:fe,onCheckboxChange:Me,checkboxChecked:ue,setLoading:de,onNewCard:Pe,products:t,token:J,onPurchaseHandler:Ae,onCoinbasePurchaseHandler:xe,onEcommpayPurchaseHandler:Ie,activePaymentMethods:ne,loading:ce,onErrorPurchaseHandler:_e,onBillingAddressChange:z,price:U,billingCycle:a,defaultCountry:W,currency:K,blockedCountries:G},I))):n.createElement(m.Spinner,{size:"medium"})}const E=[h.PaymentTab.OneClick,h.PaymentTab.GooglePay,h.PaymentTab.ApplePay,h.PaymentTab.CreditCard,h.PaymentTab.Paypal];function T(e,t){const a=new Set(e),n=(0,g.showEcommpay)(t),r=(0,i.isFeatureEnabled)("ecommpay_ru");return r&&n&&E.forEach(e=>a.add(e)),r&&n||a.add(h.PaymentTab.Ecommpay),f.filter(e=>!a.has(e))}function P(e){return{[h.PaymentTab.OneClick]:(0,r.t)("One click"),[h.PaymentTab.CreditCard]:(0,r.t)("Payment card"),[h.PaymentTab.ApplePay]:"Apple Pay",[h.PaymentTab.GooglePay]:"Google Pay",[h.PaymentTab.Paypal]:(0,r.t)("PayPal"),[h.PaymentTab.Coinbase]:(0,r.t)("Crypto"),[h.PaymentTab.Ecommpay]:(0,r.t)("Payment card")}[e]}},57762:(e,t,a)=>{"use strict";a.d(t,{PaymentResult:()=>st,PaymentTab:()=>ot,RenderPage:()=>it});var n=a(59496),r=a(28353),o=a(76974),s=a(76266),i=a(97754),l=a.n(i),c=a(72589),d=a.n(c),u=a(98125),m=a(87995),p=a(42707),h=a(86240),y=a(71036),g=a(69644);function C(e){const{customButton:t,onPurchase:a,disabled:r,buttonText:o,buttonContainer:s}=e;return(null==s?void 0:s.current)?m.createPortal(n.createElement(b,{btn:t,onClick:a,disabled:r,buttonText:o}),s.current):n.createElement("div",{className:g.purchaseBlock},n.createElement(b,{btn:t,onClick:a,disabled:r,buttonText:o}))}function b(e){const{btn:t,onClick:a,disabled:o,buttonText:s}=e,i=(0,p.useSafeMatchMedia)(h["media-mf-tablet-landscape"]);return t||n.createElement(y.SquareButton,{size:i?"medium":"large",onClick:a,disabled:o},s||(0,r.t)("Complete your purchase"))}var f=a(29302),v=a(28805),E=a(35587),T=a(30798);const P=[v.required,v.latin,v.ascii,v.withoutNumbers,v.cardholderName],k={value:"",isValid:!1,errors:[]};function _(e){ +const{onChange:t,value:a,isValid:r,errors:o,label:s,className:i}=e,l=(0,n.useCallback)(e=>t(e.currentTarget.value),[]),[c,d]=n.useState(!1),u=(0,n.useCallback)(()=>d(!0),[]),m=(0,n.useCallback)(()=>d(!1),[]);return n.createElement(f.OrderFieldContainer,{label:s,for:T.OrderInputsConsts.CardholderName},n.createElement(E.OrderInput,{id:T.OrderInputsConsts.CardholderName,name:T.OrderInputsConsts.CardholderName,value:a,type:"text",onChange:l,inputClassName:i,intent:!c&&r?"success":void 0,hasErrors:0!==o.length&&!r&&!c,errors:o,onFocus:u,onBlur:m}))}function N(e){let t=!0,a=[];const n=e.trim();for(const e of P){const{isValid:r,errors:o}=e(n);if(!r){t=r,a=o;break}}return{value:e,isValid:t,errors:a}}var S=a(96722),A=a(76861),x=a(49483),I=a(68769),w=a(9745),M=a(68819);const F=(0,u.getLogger)("Payments.CreditCard"),V={number:"expirationDate",expirationDate:"cvv",cvv:void 0,postalCode:void 0,expirationYear:void 0,expirationMonth:void 0,cardholderName:void 0};class B extends n.PureComponent{constructor(e){super(e),this._hostedFieldsInstance=null,this._creditCardId="card-number",this._expirationDateId="expiration-date",this._cvvId="cvv",this._isMounted=!1,this._createBrainTreeClient=()=>{const{clientToken:e,onError:t}=this.props;d().client.create({authorization:e},(e,a)=>{if(this._isMounted)return e?(F.logError(e.message),t(e.message)):void this._createHostedFields(a)})},this._createHostedFields=e=>{const{onError:t,onLoad:a}=this.props;d().hostedFields.create({client:e,styles:{"form input":{direction:"ltr"},input:M.cardInput},fields:{number:{selector:"#"+this._creditCardId,placeholder:(0,A.isProd)()?(0,r.t)("Credit card number"):"4111 1111 1111 1111"},cvv:{selector:"#"+this._cvvId,placeholder:"CVV",type:"password"},expirationDate:{selector:"#"+this._expirationDateId,placeholder:"MM/YY"}}},(e,n)=>e?(F.logError(e.message),t(e.message)):n?(this._hostedFieldsInstance=n,this._hostedFieldsInstance.on("validityChange",e=>{this.setState({cardFieldValid:this._isCardFieldsValid(e)})}),this._hostedFieldsInstance.on("cardTypeChange",e=>{this._onCardTypeChange(e)}),x.isSafari||this._hostedFieldsInstance.focus("number"),void a(!1)):t())},this._prePurchase=()=>{if(this.props.loading)return;const{allCardFieldsValid:e}=this.state,t=this._isAllFieldsValid();e||this.setState({btFieldsValid:!1}),t||this.props.validateAllFields(),e&&t&&this._onPurchase()},this._onPurchase=()=>{var e;const{onError:t,onLoad:a,onPurchase:n}=this.props,r=(0,I.removeMultipleWhitespace)(this.props.cardholderName.value),o=(0,I.convertAddressStateToModel)(this.props.billingAddress),s={countryCodeAlpha2:o.country_code_alpha2,region:o.region,locality:o.locality,streetAddress:o.street_address,postalCode:o.postal_code};a(!0),null===(e=this._hostedFieldsInstance)||void 0===e||e.tokenize({billingAddress:s,cardholderName:r},(e,a)=>e?(F.logError(e.message),t(e.message)):a?void n(a.nonce):t())},this._isCardFieldsValid=e=>{var t;let a=!0;if(e.emittedBy){const a=V[e.emittedBy],n=e.fields[e.emittedBy] +;n.isFocused&&n.isValid&&a&&(null===(t=this._hostedFieldsInstance)||void 0===t||t.focus(a))}return Object.values(e.fields).forEach(e=>{e.isValid||(a=!1)}),this.setState({allCardFieldsValid:a}),a},this._onCardTypeChange=e=>{if(1!==e.cards.length)return void this.setState({cardTypeIconUrl:I.paymentTypeToIconMap.default});const{type:t}=e.cards[0],a=I.paymentTypeToIconMap[t];a&&this.setState({cardTypeIconUrl:a})},this.state={cardFieldValid:!1,cardTypeIconUrl:I.paymentTypeToIconMap.default,allCardFieldsValid:!1,btFieldsValid:!0}}componentDidMount(){this._createBrainTreeClient(),this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{purchaseButtonText:e,buttonContainer:t,cardholderName:a,onCardholderNameChange:o}=this.props,{cardTypeIconUrl:s,btFieldsValid:l}=this.state;return n.createElement(n.Fragment,null,n.createElement("h3",{className:M.title},(0,r.t)("Payment details")),n.createElement("div",{className:M.highlight},(0,r.t)("The bank may hold and release $1 US to verify the card.")),n.createElement("div",{className:M.creditCardFormContainer},n.createElement("form",{action:"/order-coins/",method:"POST"},n.createElement("div",{className:M.cardForm},n.createElement("div",{className:M.creditCardFieldsContainer},n.createElement("div",{className:i(M.formInput,M.cardNumber)},n.createElement(S.Label,{htmlFor:this._creditCardId},(0,r.t)("Payment card number")),n.createElement("div",{id:"credit-cart-wrapper",className:M.creditCardWrapper},s&&(s===I.paymentTypeToIconMap.default?n.createElement(w.Icon,{icon:s,className:M.cardTypeIcon}):n.createElement("img",{src:s,className:M.cardTypeIcon})),n.createElement("div",{id:this._creditCardId,className:i(M.input,M.creditCardNumberInput,!l&&"braintree-hosted-fields-invalid"),tabIndex:1}))),n.createElement("div",{className:M.formInput},n.createElement(S.Label,{htmlFor:this._expirationDateId},(0,r.t)("Expiration date")),n.createElement("div",{id:this._expirationDateId,className:i(M.input,!l&&"braintree-hosted-fields-invalid")})),n.createElement("div",{className:M.formInput},n.createElement(S.Label,{htmlFor:this._cvvId},(0,r.t)("Security code")),n.createElement("div",{id:this._cvvId,className:i(M.input,!l&&"braintree-hosted-fields-invalid")})),n.createElement("div",{className:M.cardholderName},n.createElement(_,{...a,onChange:o,className:M.nameInput,label:(0,r.t)("Cardholder name")})))))),n.createElement(C,{onPurchase:this._prePurchase,buttonText:e,buttonContainer:t}))}_isAllFieldsValid(){return this.state.cardFieldValid&&this.props.isAllFieldsValid}}var D=a(54349),R=a(45631),L=a(25424),O=a(72443);class H extends n.PureComponent{constructor(e){var t;super(e),this._onMethodChange=e=>{const{paymentMethods:t,onBillingAddressChange:a}=this.props;this.setState({method:e});const n=t.find(t=>t.token===e);n&&a&&a((0,I.convertAddressModelToState)(n.billing_address))},this._onPurchase=()=>{const{onLoad:e,isAllFieldsValid:t,onPurchase:a,loading:n,validateTermCheckbox:r}=this.props,{method:o}=this.state;n||(t?(e(!0),a(o)):r())};const a=this.props.paymentMethods[0] +;a&&a.token&&this.props.onBillingAddressChange&&this.props.onBillingAddressChange((0,I.convertAddressModelToState)(a.billing_address)),this.state={method:null!==(t=null==a?void 0:a.token)&&void 0!==t?t:"",expanded:!1}}componentDidMount(){const{paymentMethods:e,onLoad:t}=this.props;e.length>0&&(t(!1),e.length<=3&&this.setState({expanded:!0}))}componentDidUpdate(e){var t;const{paymentMethods:a,onLoad:n}=this.props;e.paymentMethods!==a&&(this.setState({method:(null===(t=a[0])||void 0===t?void 0:t.token)||""}),n(!1)),a.length<=3&&this.setState({expanded:!0})}render(){const{method:e,expanded:t}=this.state,{paymentMethods:a,onNewCard:o,purchaseButtonText:s,buttonContainer:l}=this.props,c=t?a:a.slice(0,3);return n.createElement(n.Fragment,null,n.createElement("h3",{className:O.title},(0,r.t)("Choose your payment method")),c.length>0&&n.createElement(D.SwitchGroup,{name:"payment-method",values:[e],onChange:this._onMethodChange},c.map(e=>{let t;if(1===e.method){const{acct:a}=e,{cardtype:n}=e;t=this._getPaymentMethodIcon(a,n)}else 2===e.method?t=(0,r.t)("PayPal account"):3===e.method?t="Google Pay":4===e.method&&(t="Apple Pay");return n.createElement("div",{className:O.radio,key:e.token},n.createElement(R.RadioButton,{className:i(O.radioButton,O.radioButtonColor),label:t,value:e.token}))})),n.createElement("div",{className:O.actionBlock},n.createElement("a",{href:"#",className:O.action,role:"button",onClick:o},n.createElement(w.Icon,{icon:L,className:O.icon}),n.createElement("span",null,(0,r.t)("Add a new card"))),!t&&n.createElement("button",{className:O.action,onClick:()=>this.setState({expanded:!0})},(0,r.t)("More payment methods"))),n.createElement(C,{onPurchase:this._onPurchase,buttonContainer:l,buttonText:s}))}_getPaymentMethodIcon(e,t){return n.createElement("span",{className:O.iconWrapper},n.createElement("img",{className:O.icon,src:I.braintreePaymentTypeToIconMap[t]}),"*",e)}}var z=a(41033);class U extends n.PureComponent{constructor(){super(...arguments),this._prePurchase=()=>{const{isAllFieldsValid:e}=this.props;e?this._onPurchase():this.props.validateAllFields()},this._onPurchase=async()=>{const{onLoad:e,onPurchase:t}=this.props;e(!0),t()}}componentDidMount(){const{onLoad:e}=this.props;e(!1)}render(){const{purchaseButtonText:e,buttonContainer:t}=this.props;return n.createElement(n.Fragment,null,n.createElement("h3",{className:z.title},(0,r.t)("Crypto")),n.createElement("div",{className:z.description},n.createElement("p",{className:i(z.block,z.accent)},(0,r.t)("What cryptocurrencies are accepted for payments?")),n.createElement("ul",{className:i(z.block,z.listOfCrypto)},n.createElement("li",null,(0,r.t)("Bitcoin (BTC) - Bitcoin network")),n.createElement("li",null,(0,r.t)("Ethereum (ETH) - ERC20 network")),n.createElement("li",null,(0,r.t)("USD Coin (USDC) - ERC20 network")),n.createElement("li",null,(0,r.t)("Litecoin (LTC) - Litecoin network")),n.createElement("li",null,(0,r.t)("Bitcoin Cash (BCH) - Bitcoin Cash network")),n.createElement("li",null,(0, +r.t)("Dogecoin (DOGE) - Dogecoin network")),n.createElement("li",null,(0,r.t)("DAI (DAI) - ERC20 network"))),n.createElement("p",{className:z.vital},(0,r.t)("It's vital that the network you withdraw funds from, and the one you deposit funds to, are the same.")),n.createElement("p",{className:i(z.block,z.accent)},(0,r.t)("Please note that if the funds are sent via a different network, it will result in losing your payment. Please make sure you consider your options and don't always choose the cheapest commission option.")),n.createElement("p",{className:z.block},(0,r.t)("You will be automatically redirected to Coinbase to complete your purchase. Once the payment is completed you will be taken back to the TradingView page.")),n.createElement("p",{className:z.block},(0,r.t)("Please note you do not need to have a Coinbase account to complete the payment - you can use any available wallet.")),n.createElement("p",{className:z.accent},(0,r.t)("This step is highly important so we ask you to not skip or interrupt it."))),n.createElement(C,{onPurchase:this._prePurchase,buttonContainer:t,buttonText:e}))}}var K=a(37793);class W extends n.PureComponent{constructor(){super(...arguments),this._prePurchase=()=>{const{isAllFieldsValid:e}=this.props;e?this._onPurchase():this.props.validateAllFields()},this._onPurchase=async()=>{const{onLoad:e,onPurchase:t}=this.props;e(!0),t()}}componentDidMount(){const{onLoad:e}=this.props;e(!1)}render(){const{purchaseButtonText:e,buttonContainer:t}=this.props;return n.createElement(n.Fragment,null,n.createElement("div",{className:K.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Ecommpay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{onPurchase:this._prePurchase,buttonContainer:t,buttonText:e}))}}var Z=a(10878);const G=new Map;function X(e,t={}){let a=G.get(e);return void 0!==a||(a=new Promise((a,n)=>{const r=document.createElement("script");r.type="text/javascript",r.src=e;for(const[e,a]of Object.entries(t))r.setAttribute(e,a);r.onload=a,r.onerror=n,document.head.appendChild(r)}),G.set(e,a)),a}var Y=a(15298),$=a(42729);const q=(0,u.getLogger)("Payments.PayPal");class J extends n.PureComponent{constructor(e){super(e),this._createPayPalCheckout=e=>{const{onError:t,onLoad:a}=this.props;c.paypalCheckout.create({client:e},(e,n)=>{var r;if(e)return q.logError(e.message),t(e.message);null===(r=window.paypal)||void 0===r||r.Buttons({style:{color:"blue",size:"responsive",shape:"rect",tagline:!1},createBillingAgreement:()=>{const{isAllFieldsValid:e,validateAllFields:t,products:a}=this.props;if(!e)return void t();const r=(0,I.getProductsStr)(a);return n.createPayment({flow:"vault",billingAgreementDescription:r+" on TradingView", +enableShippingAddress:!0,shippingAddressEditable:!1,currency:Z.Currencies.Usd})},onApprove:(e,r)=>(this.setState({ready:!1}),a(!0),n.tokenizePayment(e,(e,a)=>{if(e)return q.logError(e.message),t(e.message);this.props.onPurchase(a.nonce)})),onCancel:e=>{q.logInfo(JSON.stringify(e))},onError:e=>{t(e.message)}}).render("#paypal-button").then(()=>{a(!1),this.setState({ready:!0})}).catch(t)})},this._onDisableClick=e=>{const{isAllFieldsValid:t,validateAllFields:a}=this.props;t&&(a(),e.preventDefault(),e.stopPropagation())},this.state={ready:!1}}componentDidMount(){const{paypalClientId:e,onError:t,clientToken:a}=this.props;this.setState({ready:!1});const n=(0,Y.getCspNonce)();if(void 0===n)return t("Nonce not found");X(`https://www.paypal.com/sdk/js?client-id=${e}&vault=true&disable-funding=card`,{"data-csp-nonce":n}).then(()=>{c.client.create({authorization:a},(e,t)=>{e?q.logError(e.message):this._createPayPalCheckout(t)})}).catch(t)}render(){const{buttonContainer:e,isAllFieldsValid:t}=this.props,{ready:a}=this.state,o=n.createElement("div",{className:l()($.paypalButton,!a&&$.hidden),onClickCapture:this._onDisableClick},n.createElement("div",{id:"paypal-button",onClickCapture:this._onDisableClick}),!t&&n.createElement("div",{className:$.disabled}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:$.title},(0,r.t)("PayPal")),n.createElement("div",{className:$.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"PayPal"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:o,buttonContainer:e}))}}var j=a(6087),Q=a(26843),ee=a(53402),te=a(41207);const ae=(0,u.getLogger)("Payments.ApplePay"),ne=window.ApplePaySession;class re extends n.PureComponent{constructor(e){super(e),this._createClient=()=>{const{onError:e,clientToken:t}=this.props;if(!(null==ne?void 0:ne.canMakePayments())){const t="This device is not capable of making Apple Pay payments";return ae.logError(t),e(t)}d().client.create({authorization:t},(t,a)=>{if(t)return ae.logError(t.message),e(t.message);this._createPaymentInstance(a)})},this._createPaymentInstance=e=>{const{onError:t,onLoad:a}=this.props;d().applePay.create({client:e},(e,n)=>{if(e)return ae.logError(e.message),t(e.message);this._instance=n,a(!1),this.setState({ready:!0})})},this._createSession=()=>{var e;const{onError:t,products:a,onPurchase:n,price:r,isAllFieldsValid:o,validateAllFields:s}=this.props;if(!o)return void s();const i=null===(e=this._instance)||void 0===e?void 0:e.createPaymentRequest({total:{label:"TradingView",amount:(0,ee.round2)(r.totalCostWithTax)},countryCode:"US",currencyCode:Z.Currencies.Usd,supportedNetworks:["amex","chinaUnionPay","elo","jcb","masterCard","visa"], +merchantCapabilities:["supports3DS","supportsCredit","supportsDebit","supportsEMV"],requiredBillingContactFields:["name"]});if(!i||!ne)return;const l=new ne(3,i);l.onvalidatemerchant=e=>{var n;null===(n=this._instance)||void 0===n||n.performValidation({validationURL:e.validationURL,displayName:(0,I.getProductsStr)(a)},(e,a)=>{if(e)return ae.logError(e.message),t(e.message);l.completeMerchantValidation(a)})},l.onpaymentauthorized=e=>{var a;null===(a=this._instance)||void 0===a||a.tokenize({token:e.payment.token},(e,a)=>{if(e)return l.completePayment(ne.STATUS_FAILURE),ae.logError(e.message),t(e.message);n(a.nonce),l.completePayment(ne.STATUS_SUCCESS)})},l.begin()},this.state={ready:!1}}componentDidMount(){this._createClient()}render(){const{buttonContainer:e}=this.props,{ready:t}=this.state,a=n.createElement("div",{className:l()(te["apple-pay-container"],!t&&te.hidden)},n.createElement("div",{onClick:this._createSession,className:l()(te["apple-pay-button-with-text"],(0,j.getCurrentTheme)().name===Q.StdTheme.Dark?te["apple-pay-button-with-text-black"]:te["apple-pay-button-with-text-white"])}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:te.title},"Apple Pay"),n.createElement("div",{className:te.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Apple Pay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:a,buttonContainer:e}))}}var oe=a(19230);const se=(0,u.getLogger)("Payments.GooglePay");class ie extends n.PureComponent{constructor(e){super(e),this._isMounted=!1,this._googlePaymentInstance=null,this._createClient=async()=>{const{onError:e,clientToken:t,googlePayMerchantId:a}=this.props;try{const e=await d().client.create({authorization:t});this._googlePaymentInstance=await d().googlePayment.create({client:e,useDeferredClient:!0,googlePayVersion:2,googleMerchantId:a});const n=await this._googlePaymentInstance.createPaymentDataRequest();this._paymentDataRequest.allowedPaymentMethods=n.allowedPaymentMethods,await this._createPaymentInstance()}catch(t){se.logError(t.statusMessage),e(t.statusMessage)}},this._createPaymentInstance=async()=>{const{onError:e,onLoad:t}=this.props,a=new google.payments.api.PaymentsClient({environment:(0,A.isProd)()?"PRODUCTION":"TEST",paymentDataCallbacks:{onPaymentAuthorized:this._onPaymentAuthorized}}),n=await a.isReadyToPay({...this._paymentDataRequest,existingPaymentMethodRequired:!0}),r=document.querySelector("#google-pay-button");if(!n.result||!r)return;const o=(0,j.getCurrentTheme)().name===Q.StdTheme.Dark,s=a.createButton({buttonColor:o?"white":"black",buttonType:"buy",buttonSizeMode:"fill",onClick:async t=>{t.preventDefault();try{await this._createSession(a)}catch(t){ +"CANCELED"!==t.statusCode&&(se.logError(t.statusMessage),e(t.statusMessage))}}});r.appendChild(s),t(!1),this.setState({ready:!0})},this._createSession=async e=>{const{price:t,isAllFieldsValid:a,validateAllFields:n}=this.props;if(!a)return void n();if(null===this._googlePaymentInstance)return;this._paymentDataRequest.transactionInfo.totalPriceStatus="FINAL",this._paymentDataRequest.transactionInfo.totalPrice=(0,ee.round2)(t.totalCostWithTax);const r=(await this._googlePaymentInstance.createPaymentDataRequest(this._paymentDataRequest)).allowedPaymentMethods[0];r.parameters.billingAddressRequired=!1,r.parameters.billingAddressParameters={format:"MIN"},await e.loadPaymentData({...this._paymentDataRequest,allowedPaymentMethods:[r]})},this._onPaymentAuthorized=async e=>{if(null===this._googlePaymentInstance)return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Google payment instance is null",intent:"PAYMENT_AUTHORIZATION"}};const{onPurchase:t,onLoad:a}=this.props,n=await this._googlePaymentInstance.parseResponse(e);if(!this._isMounted)return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Component unmounted",intent:"PAYMENT_AUTHORIZATION"}};this.setState({ready:!1}),a(!0);try{return await t(n.nonce),{transactionState:"SUCCESS"}}catch(e){return{transactionState:"ERROR",error:{reason:"OTHER_ERROR",message:"Cannot pay",intent:"PAYMENT_AUTHORIZATION"}}}};const{price:t}=e;this.state={ready:!1},this._paymentDataRequest={apiVersion:2,apiVersionMinor:0,transactionInfo:{currencyCode:Z.Currencies.Usd,totalPriceStatus:"ESTIMATED",totalPrice:(0,ee.round2)(t.totalCostWithTax),totalPriceLabel:"Total"},allowedPaymentMethods:[],merchantInfo:{merchantId:this.props.googlePayMerchantId},callbackIntents:["PAYMENT_AUTHORIZATION"]}}componentDidMount(){this._isMounted=!0;const{onError:e}=this.props;this.setState({ready:!1});const t=(0,Y.getCspNonce)();if(void 0===t)return e("Nonce not found");X("https://pay.google.com/gp/p/js/pay.js",{nonce:t}).then(this._createClient).catch(e)}componentWillUnmount(){this._isMounted=!1}render(){const{buttonContainer:e}=this.props,{ready:t}=this.state,a=n.createElement("div",{className:l()(oe["google-pay-container"],!t&&oe.hidden)},n.createElement("div",{id:"google-pay-button",className:oe["google-pay-button"]}));return n.createElement(n.Fragment,null,n.createElement("h3",{className:oe.title},"Google Pay"),n.createElement("div",{className:oe.description},n.createElement("p",null,(0,r.t)("We'll now send you on to {payment_method} so that you can complete your purchase. After the transaction has gone through, the system will automatically redirect you back to TradingView so you can enjoy your new upgrade.",{replace:{payment_method:"Google Pay"}})),n.createElement("p",null,n.createElement("b",null,(0,r.t)("This step is highly important so we ask you to please not skip or interrupt it.")))),n.createElement(C,{customButton:a,buttonContainer:e}))}}var le=a(97737),ce=a(80875),de=a(96622),ue=a(26661);function me(e){const{text:t,title:a,onClose:o}=e,s=(0, +j.getCurrentTheme)().name===Q.StdTheme.Dark;return n.createElement("div",{className:ue.success},n.createElement("img",{className:ue.icon,src:s?de:ce}),n.createElement("h3",{className:l()(ue.successText,!t&&ue.lastText)},a||(0,r.t)("Your payment was successful!")),t&&n.createElement("p",{className:l()(ue.descriptionText,ue.lastText)},t),o&&n.createElement(le.Button,{onClick:o,className:ue.button},(0,r.t)("Close",{context:"input"})))}var pe=a(5437),he=a(35806),ye=a(37024);function ge(e){const{text:t,hideTryAgainButton:a,errorTitle:o,showPaymentMethodSolutions:s,buttonClickList:i}=e,c=new RegExp(/\{\w+\}/),d=null==t?void 0:t.split(c);return n.createElement("div",{className:l()(ye.error,s&&ye.errorCountry)},n.createElement("div",{className:s&&ye.errorTitleWrapper},n.createElement("img",{className:ye.icon,src:he}),n.createElement("h3",{className:l()(ye.errorText,{[ye.lastText]:!t,[ye.errorCountryText]:s})},null!=o?o:(0,r.t)("Payment error"))),d&&n.createElement("div",{className:l()(ye.descriptionText,ye.lastText,s&&ye.errorCountryLastText)},d.map((e,t)=>n.createElement("p",{key:t},e))),s&&n.createElement("div",{className:ye.solutionWrapper},n.createElement("ul",{className:ye.solutions},n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000485536/"},(0,r.t)("Crypto"))),n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000665347/"},(0,r.t)("Mobile"))),n.createElement("li",{className:ye.item},n.createElement("a",{className:ye.itemLink,href:"/u/?solution=43000538306/"},(0,r.t)("TradingView coins"))))),!a&&n.createElement("div",{className:ye.buttonWrapper},i.map((e,t)=>n.createElement(pe.RoundButton,{onClick:e.handler,variant:e.buttonColor||"primary",className:l()(ye.button,i.length>1&&ye.secondButton),key:t},e.message))))}var Ce=a(12150);function be(e){const{cost:t,tax:a,products:o,billingCycle:s,currency:i=Z.Currencies.Usd}=e,l=window.pro;let c=[];l&&(c=o.map(e=>{const t=l.getProduct(e);if(l.isPlan(t)){const e=s?(0,ee.getReadableNumericCycle)(s):"",a=(0,ee.humanizeProPlan)(t.text_id);return(0,r.t)("{plan} plan ({billingCycle}){point}",{replace:{plan:a,billingCycle:e,point:""}})}return t.name}));const d=c.join(", ")+".",u=void 0!==a&&0!==a,m=i===Z.Currencies.Usd?"$":"",p=(0,r.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,ee.round2)(null!=a?a:0),currency:i,currencySign:m});return n.createElement("div",null,n.createElement("div",{className:Ce["price-row"]},n.createElement("div",{className:Ce["total-title"]},(0,r.t)("Total price")),n.createElement("div",{className:Ce["total-number"]},(0,r.t)("{currencySign}{cost} {currency}").format({currency:i,currencySign:m,cost:(0,ee.round2)(t)}))),u&&n.createElement("div",{className:Ce["tax-row"]},d," ",p))}var fe=a(74745),ve=a(66302);function Ee(e){const{value:t,onChange:a,isValid:r,errors:o,name:s,label:i}=e,l=(0,n.useCallback)(e=>a(e.currentTarget.value),[a]),[c,d]=n.useState(!1),u=(0,n.useCallback)(()=>d(!0),[]),m=(0,n.useCallback)(()=>d(!1),[]) +;return n.createElement(f.OrderFieldContainer,{label:i,for:s},n.createElement(E.OrderInput,{name:s,value:t,type:"text",onChange:l,hasErrors:!c&&0!==o.length&&!r,errors:o,onFocus:u,onBlur:m}))}var Te=a(40161),Pe=a(86629),ke=a(18244);v.required,v.latin;function _e(e){var t;const{value:a,onChange:o,countryCode:s,errors:i,isValid:l}=e,c=null!==(t=ke.stateItems[s])&&void 0!==t?t:[];return n.createElement(f.OrderFieldContainer,{label:r.t("State/Region"),labelId:T.OrderInputsConsts.State},n.createElement(Te.FormSelect,{"aria-labelledby":T.OrderInputsConsts.State,items:c,value:""===a?void 0:a,placeholder:r.t("Select state/region"),onChange:function(e){o(null!=e?e:"")},size:"large",stretch:!0,hasErrors:0!==i.length&&!l,errors:i,messagesPosition:Pe.MessagesPosition.Attached}))}var Ne=a(11298);function Se(e){var t,a,s,i;const{value:l,onChange:c,ignoreCountries:d}=e,[u,m]=(0,n.useState)([]),p=(0,n.useMemo)(()=>{const e={};return u.forEach(t=>{e[t.code]=t}),e},[u]),h=(0,o.useIsMounted)();(0,n.useEffect)(()=>{(0,Ne.getCountries)().then(e=>{h.current&&m(e[0].filter(e=>!(null==d?void 0:d.includes(e.code))))})},[d]);const y=(0,n.useCallback)(e=>c(e.code),[c]);return n.createElement(f.OrderFieldContainer,{label:(0,r.t)("Country"),for:e.name},n.createElement(Ne.CountrySelect,{countries:u,onSelected:y,flagUrl:((null==d?void 0:d.includes(l))?null===(t=p.US)||void 0===t?void 0:t.iconUrl:null===(a=p[l])||void 0===a?void 0:a.iconUrl)||"",text:((null==d?void 0:d.includes(l))?null===(s=p.US)||void 0===s?void 0:s.name:null===(i=p[l])||void 0===i?void 0:i.name)||"",stretch:!0}))}var Ae=a(53876),xe=a(18609);const Ie={AA:[{from:34001,to:34095}],AE:[{from:9001,to:9977}],AP:[{from:96201,to:96698}],AL:[{from:35e3,to:36999}],AK:[{from:99500,to:99999}],AZ:[{from:85e3,to:86999}],AR:[{from:71600,to:72999}],CA:[{from:9e4,to:96699}],CO:[{from:8e4,to:81999}],CT:[{from:6e3,to:6389},{from:6391,to:6999}],DC:[{from:2e4,to:20099},{from:20200,to:20599},{from:56900,to:56999}],DE:[{from:19700,to:19999}],FL:[{from:32e3,to:34999}],GA:[{from:3e4,to:31999},{from:39800,to:39999}],HI:[{from:96700,to:96999}],ID:[{from:83200,to:83999}],IL:[{from:6e4,to:62999}],IN:[{from:46e3,to:47999}],IA:[{from:5e4,to:52999}],KS:[{from:66e3,to:67999}],KY:[{from:4e4,to:42999}],LA:[{from:7e4,to:71599}],ME:[{from:3900,to:4999}],MD:[{from:20600,to:21999}],MA:[{from:1e3,to:2799},{from:5501,to:5501},{from:5544,to:5544}],MI:[{from:48e3,to:49999}],MN:[{from:55e3,to:56899}],MS:[{from:38600,to:39999}],MO:[{from:63e3,to:65999}],MT:[{from:59e3,to:59999}],NE:[{from:68e3,to:69999}],NV:[{from:88900,to:89999}],NH:[{from:3e3,to:3899}],NJ:[{from:7e3,to:8999}],NM:[{from:87e3,to:88499}],NY:[{from:1e4,to:14999},{from:6390,to:6390},{from:501,to:501},{from:544,to:544}],NC:[{from:27e3,to:28999}],ND:[{from:58e3,to:58999}],OH:[{from:43e3,to:45999}],OK:[{from:73e3,to:73199},{from:73400,to:74999}],OR:[{from:97e3,to:97999}],PA:[{from:15e3,to:19699}],PR:[{from:300,to:999}],RI:[{from:2800,to:2999}],SC:[{from:29e3,to:29999}],SD:[{from:57e3,to:57999}],TN:[{from:37e3,to:38599}],TX:[{from:75e3,to:79999},{from:73301, +to:73399},{from:88500,to:88599}],UT:[{from:84e3,to:84999}],VT:[{from:5e3,to:5999}],VA:[{from:20100,to:20199},{from:22e3,to:24699},{from:20598,to:20598}],WA:[{from:98e3,to:99499}],WV:[{from:24700,to:26999}],WI:[{from:53e3,to:54999}],WY:[{from:82e3,to:83199}]},we={NSW:[{from:1e3,to:2599},{from:2619,to:2899},{from:2921,to:2999}],ACT:[{from:200,to:299},{from:2600,to:2618},{from:2900,to:2920}],VIC:[{from:3e3,to:3999},{from:8e3,to:8999}],QLD:[{from:4e3,to:4999},{from:9e3,to:9999}],SA:[{from:5e3,to:5999}],WA:[{from:6e3,to:6797},{from:6800,to:6999}],TAS:[{from:7e3,to:7999}],NT:[{from:800,to:999}],CX:[{from:6798,to:6798}],CC:[{from:6799,to:6799}]},Me={DL:[{from:11e4,to:119999}],HR:[{from:12e4,to:139999}],PB:[{from:14e4,to:159999}],CH:[{from:16e4,to:169999}],HP:[{from:17e4,to:179999}],JK:[{from:18e4,to:199999}],UP:[{from:2e5,to:289999}],RJ:[{from:3e5,to:349999}],GJ:[{from:36e4,to:399999}],MH:[{from:4e5,to:449999}],MP:[{from:45e4,to:489999}],CT:[{from:49e4,to:499999}],TG:[{from:5e5,to:509999}],AP:[{from:51e4,to:539999}],KA:[{from:56e4,to:599999}],TN:[{from:6e5,to:649999}],KL:[{from:67e4,to:699999}],WB:[{from:7e5,to:749999}],OR:[{from:75e4,to:779999}],AS:[{from:78e4,to:789999}],AR:[{from:79e4,to:792999}],ML:[{from:793e3,to:794999}],MN:[{from:795e3,to:795999}],MZ:[{from:796e3,to:796999}],NL:[{from:797e3,to:798999}],TR:[{from:799e3,to:799999}],BR:[{from:8e5,to:859999}],APS:[{from:9e5,to:999999}]},Fe={AB:["T"],BC:["V"],MB:["R"],NB:["E"],NL:["A"],NT:["X"],NS:["B"],NU:["X"],ON:["P","N","M","L","K"],PE:["C"],QC:["J","G","H"],SK:["S"],YT:["Y"]},Ve={Adana:"01",Adiyaman:"02",Afyonkarahisar:"03",Agri:"04",Aksaray:"68",Amasya:"05",Ankara:"06",Antalya:"07",Ardahan:"75",Artvin:"08",Aydin:"09",Balikesir:"10",Bartin:"74",Batman:"72",Bayburt:"69",Bilecik:"11",Bingol:"12",Bitlis:"13",Bolu:"14",Burdur:"15",Bursa:"16",Canakkale:"17",Cankiri:"18",Corum:"19",Denizli:"20",Diyarbakir:"21",Duzce:"81",Edirne:"22",Elazig:"23",Erzincan:"24",Erzurum:"25",Eskisehir:"26",Gaziantep:"27",Giresun:"28",Gumushane:"29",Hakkari:"30",Hatay:"31",Igdir:"76",Isparta:"32",Istanbul:"34",Izmir:"35",Kahramanmaras:"46",Karabuk:"78",Karaman:"70",Kars:"36",Kastamonu:"37",Kayseri:"38",Kirikkale:"71",Kirklareli:"39",Kirsehir:"40",Kilis:"79",Kocaeli:"41",Konya:"42",Kutahya:"43",Malatya:"44",Manisa:"45",Mardin:"47",Mersin:"33",Mugla:"48",Mus:"49",Nevsehir:"50",Nigde:"51",Ordu:"52",Osmaniye:"80",Rize:"53",Sakarya:"54",Samsun:"55",Siirt:"56",Sinop:"57",Sivas:"58",Sanliurfa:"63",Sirnak:"73",Tekirdag:"59",Tokat:"60",Trabzon:"61",Tunceli:"62",Usak:"64",Van:"65",Yalova:"77",Yozgat:"66",Zonguldak:"67"},Be={AT:/^(AT)?(U\d{8})$/i,BE:/^(BE)?(\d{10})$/i,BG:/^(BG)?(\d{9,10})$/i,CY:/^(CY)?(\d{8}[A-Z])$/i,CZ:/^(CZ)?(\d{8,10})?$/i,DE:/^(DE)?(\d{9})$/i,DK:/^(DK)?(\d{8})$/i,EE:/^(EE)?(\d{9})$/i,EL:/^(EL|GR)?(\d{9})$/i,GR:/^(GR|EL)?(\d{9})$/i,ES:/^(ES)?([0-9A-Z][0-9]{7}[0-9A-Z])$/i,FI:/^(FI)?(\d{8})$/i,FR:/^(FR)?([0-9A-Z]{2}[0-9]{9})$/i,GB:/^(GB)?((?:[0-9]{12}|[0-9]{9}|(?:GD|HA)[0-9]{3}))$/i,HR:/^(HR)?(\d{11})$/i,HU:/^(HU)?(\d{8})$/i,IE:/^(IE)?[0-9][0-9A-Z\+\*][0-9]{5}[A-Z]{1,2}$/i, +IT:/^(IT)?(\d{11})$/i,LV:/^(LV)?(\d{11})$/i,LT:/^(LT)?(\d{9}$|\d{12})$/i,LU:/^(LU)?(\d{8})$/i,MT:/^(MT)?(\d{8})$/i,NL:/^(NL)?(\d{9}B\d{2})$/i,PL:/^(PL)?(\d{10})$/i,PT:/^(PT)?(\d{9})$/i,RO:/^(RO)?(\d{2,10})$/i,SI:/^(SI)?(\d{8})$/i,SK:/^(SK)?(\d{10})$/i,SE:/^(SE)?(\d{12})$/i},De={isValid:!1,errors:[(0,r.t)("No matching state found")]};function Re(e,t){const a=parseInt(t,10),n=e.some(e=>e.from<=a&&a<=e.to);return{isValid:n,errors:n?[]:[(0,r.t)("No matching state found")]}}function Le(e){return{isValid:!1,errors:[(0,r.t)("Must be a {length}-digit zip code",{replace:{length:e.toString()}})]}}const Oe=[v.required,Ae.postalCode,e=>(0,Ae.getPostalCodeMaxLengthValidator)(e)];function He(e,t){const a=[...Oe];var n;return"US"===e&&a.push((n=t,e=>{var t;const[a]=null!==(t=null==e?void 0:e.split("-"))&&void 0!==t?t:[];return 5!==(null==a?void 0:a.length)?Le(5):n in Ie?Re(Ie[n],a):De})),"CA"===e&&a.push(function(e){return t=>{var a,n;const o=(0,r.t)("Must be a 6-character alphanumeric code");if(void 0===t)return{isValid:!1,errors:[o]};const s=" "===t[3]?`${t.slice(0,3)}${t.slice(4)}`:t;if(6!==s.length)return{isValid:!1,errors:[o]};return s.split("").every((e,t)=>t%2==0?(0,xe.isLatin)(e)&&isNaN(Number(e)):isFinite(Number(e)))?(null===(a=Fe[e])||void 0===a?void 0:a.includes(null===(n=s[0])||void 0===n?void 0:n.toUpperCase()))?{isValid:!0,errors:[]}:De:{isValid:!1,errors:[(0,r.t)("Unknown format")]}}}(t)),"TR"===e&&a.push(function(e){return t=>{if(5!==(null==t?void 0:t.length)||!isFinite(Number(t)))return Le(5);if(e in Ve){const a=t.startsWith(Ve[e]);return{isValid:a,errors:a?[]:[(0,r.t)("No matching region found")]}}return{isValid:!1,errors:["Unknown region."]}}}(t)),"AU"===e&&a.push(function(e){return t=>4!==(null==t?void 0:t.length)?Le(4):e in we?Re(we[e],t):De}(t)),"IN"===e&&a.push(function(e){return t=>6!==(null==t?void 0:t.length)?Le(6):e in Me?Re(Me[e],t):De}(t)),a}function ze(e){return t=>{if(!Be[e]||!t)return{isValid:!0,errors:[]};const a=Be[e].test(t.replace(/\s/g,""));return{isValid:a,errors:a?[]:[(0,r.t)("VAT number format is incorrect")]}}}const Ue=[v.required,v.latin],Ke=[v.latin],We=[function(e){return isFinite(Number(e))?{isValid:!0,errors:[]}:{isValid:!1,errors:[(0,r.t)("This field only supports numbers")]}},function(e){return 0===e.length||e.length>=9&&e.length<=11?{isValid:!0,errors:[]}:{isValid:!1,errors:[(0,r.t)("Incorrect length")]}}];function Ze(e){return[v.required,v.latin,(t=e.maxLength,(e="")=>e.trim().length>t?{isValid:!1,errors:[(0,r.t)("Incorrect length")]}:{isValid:!0,errors:[]})];var t}var Ge=a(48372);const Xe={value:"US",isValid:!0,errors:[]},Ye={value:"",isValid:!1,errors:[]},$e={country_code_alpha2:Xe,region:Ye,postal_code:Ye,locality:Ye,street_address:Ye,vat_number:{value:"",isValid:!0,errors:[]}};function qe(e){const{onChange:t,addressState:a,blockedCountries:o}=e,l=(0,n.useCallback)(e=>{t({...$e,country_code_alpha2:{value:e,isValid:!0,errors:[]}})},[t]),c=(0,n.useCallback)(e=>{const n=Qe(Ze({maxLength:60 +}),e),r=n.isValid&&""!==a.postal_code.value?Qe(He(a.country_code_alpha2.value,n.value),a.postal_code.value):a.postal_code;t({...a,postal_code:r,region:n})},[t,a]),d=(0,n.useCallback)(e=>{const n=Ze({maxLength:60});t({...a,locality:Qe(n,e)})},[t,a]),u=(0,n.useCallback)(e=>{const n=Ze({maxLength:100});t({...a,street_address:Qe(n,e)})},[t,a]),m=(0,n.useCallback)(e=>{const n=Qe(Ue,a.region.value),r=n.isValid?He(a.country_code_alpha2.value,n.value):Oe;t({...a,region:n,postal_code:Qe(r,e)})},[t,a]),{value:p}=a.country_code_alpha2,h=ve.COUNTRY_WITH_STATE_SELECT.includes(p),y=(0,n.useMemo)(()=>(0,s.isFeatureEnabled)("vertex-tax")&&(0,I.isCountryTaxable)(p)&&((0,I.isCountrySupportVAT)(p)||(0,I.isCountrySupportTIN)(p)),[p]),g=(0,n.useMemo)(()=>ze(p),[p]),C=(0,n.useCallback)(e=>{const n=[...Ke,g],r=(0,I.isCountrySupportTIN)(a.country_code_alpha2.value)?We:n;t({...a,vat_number:Qe(r,e)})},[t,a]);let b=(0,r.t)("VAT number");return(0,I.isCountrySupportTIN)(p)&&(b=(0,r.t)("Tax Identification Number")),n.createElement(n.Fragment,null,n.createElement("h3",{className:Ge.title},(0,r.t)("Address")),n.createElement("div",{className:Ge.addressFieldsContainer},n.createElement("div",{className:Ge.addressField},n.createElement(Se,{value:(null==o?void 0:o.includes(p))?"US":p,onChange:l,name:T.OrderInputsConsts.Country,ignoreCountries:o})),n.createElement("div",{className:Ge.addressField},h?n.createElement(_e,{...a.region,name:T.OrderInputsConsts.State,countryCode:p,onChange:c}):n.createElement(Ee,{...a.region,name:T.OrderInputsConsts.State,onChange:c,label:(0,r.t)("State/Region")})),n.createElement("div",{className:i(Ge.additionalFieldsContainer,Ge.addressField)},n.createElement(Ee,{...a.locality,onChange:d,name:T.OrderInputsConsts.City,label:(0,r.t)("City")}),n.createElement(Ee,{...a.street_address,onChange:u,name:T.OrderInputsConsts.Street,label:(0,r.t)("Street")}),n.createElement(Ee,{...a.postal_code,onChange:m,name:T.OrderInputsConsts.Zip,label:(0,r.t)("Zip/Postal code")}),y&&n.createElement(Ee,{...a.vat_number,onChange:C,name:T.OrderInputsConsts.VatNumber,label:b}))))}function Je(e){return Object.values(e).every(e=>e.isValid)}function je(e){const t=Qe(Ze({maxLength:60}),e.region.value),a=t.isValid?He(e.country_code_alpha2.value,t.value):Oe,n=(0,I.isCountrySupportTIN)(e.country_code_alpha2.value)?We:[...Ke,ze(e.country_code_alpha2.value)],r=Ze({maxLength:60}),o=Ze({maxLength:100});return{country_code_alpha2:e.country_code_alpha2,region:t,postal_code:Qe(a,e.postal_code.value),locality:Qe(r,e.locality.value),street_address:Qe(o,e.street_address.value),vat_number:Qe(n,e.vat_number.value)}}function Qe(e,t){let a=!0,n=[];const r=t.trim();for(const t of e){const{isValid:e,errors:o}=t(r);if(!e){a=e,n=o;break}}return{value:t,isValid:a,errors:n}}var et=a(39391),tt=a.n(et),at=a(14972),nt=a(72733);const rt=(0,u.getLogger)("Payments.RenderPaymentPage");var ot,st;function it(e){ +const{tab:t,paypalClientId:a,googlePayMerchantId:i,result:l,activePaymentMethods:c,errorText:d,errorCode:u,errorTitle:m,hideTryAgainButtonCodes:p=[],onTryAgainHandler:h,onClose:y,successText:g,successTitle:C,children:b,onCheckboxValidity:f,buttonContainer:v,termsText:E,purchaseButtonText:T,hideTotalPrice:P,showCheckboxError:S,onCheckboxChange:A,checkboxChecked:x,loading:w,onErrorPurchaseHandler:M,setLoading:F,onNewCard:V,products:D,token:R,price:L,currency:O,billingCycle:z,defaultCountry:K,blockedCountries:Z}=e,G=(0,o.useIsMounted)(),[X,Y]=(0,n.useState)(function(e){return{...$e,country_code_alpha2:{...Xe,value:null!=e?e:"US"}}}(K)),[$,q]=(0,n.useState)(k),[j,Q]=(0,n.useState)(!1),ee=(0,n.useRef)(null),te=(0,n.useRef)(),ae=(0,n.useRef)(null);(0,n.useEffect)(()=>{(0,at.getDeviceData)(R).then(e=>{te.current=e}).catch(e=>{rt.logError(e.message)})},[R]);const ne=(0,n.useMemo)(()=>tt()(async t=>{if(e.onBillingAddressChange)try{Q(!0);const a=Je((0,I.excludeFieldsForTax)(je(t)));await e.onBillingAddressChange((0,I.convertAddressStateToModel)(t),a)}catch(e){if(!G.current)return;let a;a=(0,s.isFeatureEnabled)("vertex-tax")?[(0,r.t)("Could not calculate tax due to incorrect details")]:[(0,r.t)("No matching state found")],Y({...t,region:{value:t.region.value,errors:a,isValid:!1},postal_code:{value:t.postal_code.value,errors:a,isValid:!1}})}finally{Q(!1)}},300),[e.onBillingAddressChange]),oe=(0,n.useCallback)(async e=>{Y(e),ne(e)},[ne]),se=(0,n.useCallback)(async t=>{if(void 0!==e.onBillingAddressChange){Y(t);try{await e.onBillingAddressChange((0,I.convertAddressStateToModel)(t),!0)}catch(e){rt.logError("OneClick wrong address")}}},[e.onBillingAddressChange]),le=(0,n.useCallback)(t=>e.onPurchaseHandler(t,{device_data:te.current,name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)}),[e.onPurchaseHandler,X,$.value]),ce=(0,n.useCallback)(t=>e.onPurchaseHandler(t,{device_data:te.current}),[e.onPurchaseHandler]),de=(0,n.useCallback)(()=>e.onCoinbasePurchaseHandler((0,I.convertoUserDetailsToCoinbaseUserData)({name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)})),[e.onCoinbasePurchaseHandler,X,$]),ue=(0,n.useCallback)(()=>e.onEcommpayPurchaseHandler((0,I.convertoUserDetailsToEcommpayUserData)({name:(0,I.removeMultipleWhitespace)($.value),...(0,I.convertAddressStateToUserDetails)(X)})),[e.onEcommpayPurchaseHandler,X,$]),pe=(0,n.useCallback)(e=>q(N(e)),[]),he=(0,n.useCallback)(()=>{q(N($.value)),Y(je(X)),f(!x),!x&&ae.current&&ae.current.scrollIntoView({behavior:"smooth"})},[X,$,f,x]),ye=(0,n.useCallback)(()=>f(!x),[f,x]),Ce=function(){const e=N($.value);return Je(X)&&e.isValid&&x&&!j}(),ve=x&&!j;if(!l){const e={clientToken:R,products:D,paymentMethods:null!=c?c:[],onNewCard:V,onLoad:F,onError:M,loading:w,purchaseButtonText:T,termsText:E,buttonContainer:null!=v?v:ee,onCheckboxValidityChange:f};return n.createElement(n.Fragment,null,t===ot.OneClick&&n.createElement(H,{...e,onBillingAddressChange:se,onPurchase:ce,validateTermCheckbox:ye,isAllFieldsValid:ve +}),t===ot.Ecommpay&&n.createElement(W,{...e,onPurchase:ue,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.CreditCard&&n.createElement(B,{...e,onPurchase:le,onCardholderNameChange:pe,cardholderName:$,validateAllFields:he,isAllFieldsValid:Ce,billingAddress:X}),t===ot.Paypal&&a&&n.createElement(J,{...e,paypalClientId:a,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.ApplePay&&n.createElement(re,{...e,price:L,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.GooglePay&&i&&n.createElement(ie,{...e,price:L,googlePayMerchantId:i,onPurchase:le,validateAllFields:he,isAllFieldsValid:Ce}),t===ot.Coinbase&&n.createElement(U,{...e,onPurchase:de,validateAllFields:he,isAllFieldsValid:Ce}),t!==ot.OneClick&&t!==ot.CreditCard&&n.createElement("div",{className:nt.cardholderName},n.createElement(_,{...$,onChange:pe,label:(0,r.t)("Your name")})),t!==ot.OneClick&&n.createElement(qe,{onChange:oe,addressState:X,blockedCountries:Z}),!P&&n.createElement(be,{cost:L.totalCostWithTax,tax:L.tax,products:D,billingCycle:z,currency:O}),n.createElement("div",{className:nt.termsCheckboxContainer,ref:ae},b||n.createElement(fe.TermsCheckbox,{checked:x,onChange:A,labelText:E,showError:S}),!v&&n.createElement("div",{className:nt.purchaseBlock,ref:ee})))}if(l===st.Success)return n.createElement(me,{title:C,text:g,onClose:y});const Ee=[],Te="sanctioned_country"===u;return Te&&y?(Ee.push({message:(0,r.t)("Try another option"),handler:h}),Ee.push({message:(0,r.t)("Close",{context:"input"}),handler:y,buttonColor:"secondary"})):["payments_banned","anonymization_activated"].includes(u)&&y?Ee.push({message:(0,r.t)("Close",{context:"input"}),handler:y}):["trial_not_available","duplicate_payment_method"].includes(u)?Ee.push({message:(0,r.t)("See available plans"),handler:()=>location.href="/gopro/?source=payment_error&feature=duplicate_payment_method"}):Ee.push({message:(0,r.t)("Try again"),handler:h}),n.createElement(ge,{buttonClickList:Ee,showPaymentMethodSolutions:Te,text:d,hideTryAgainButton:p.includes(u),errorTitle:m})}!function(e){e.OneClick="One click",e.CreditCard="Credit card",e.ApplePay="ApplePay",e.GooglePay="GooglePay",e.Paypal="Paypal",e.Coinbase="Coinbase",e.Ecommpay="Ecommpay"}(ot||(ot={})),function(e){e.Success="Success",e.Error="Error"}(st||(st={}))},15298:(e,t,a)=>{"use strict";function n(){const e=document.querySelector("script[nonce]");if(null!==e)return e.getAttribute("nonce")||e.nonce}a.d(t,{getCspNonce:()=>n})},42707:(e,t,a)=>{"use strict";a.d(t,{useSafeMatchMedia:()=>r,useMatchMedia:()=>o});var n=a(59496);function r(e,t=!1){const[a,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{const t=window.matchMedia(e);function a(){r(t.matches)}return a(),t.addListener(a),()=>{t.removeListener(a)}},[e]),a}function o(e){const t=(0,n.useMemo)(()=>window.matchMedia(e).matches,[]);return r(e,t)}},61074:(e,t,a)=>{"use strict";a.d(t,{Spinner:()=>s});var n=a(59496),r=a(97754),o=a(33134);a(24780);function s(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+o.spinnerSizeMap[e.size||o.DEFAULT_SIZE]) +;return n.createElement("div",{className:t,style:e.style,role:"progressbar"})}},25424:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/1985b030fba93c1acee7ccb45534cabd.svg b/charting_library/bundles/1985b030fba93c1acee7ccb45534cabd.svg new file mode 100644 index 00000000..5b9e5dc1 --- /dev/null +++ b/charting_library/bundles/1985b030fba93c1acee7ccb45534cabd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1999.41e6d020269ba779f363.css b/charting_library/bundles/1999.41e6d020269ba779f363.css new file mode 100644 index 00000000..0bf3e06a --- /dev/null +++ b/charting_library/bundles/1999.41e6d020269ba779f363.css @@ -0,0 +1 @@ +.wrap-GsOqvniR{align-items:center;background-color:#f0f3fa;border-radius:4px;box-sizing:border-box;display:flex;height:34px;justify-content:space-between;max-width:180px;min-width:100px;padding:7px 8px 6px}html.theme-dark .wrap-GsOqvniR{background-color:#2a2e39}@media (any-hover:hover){.wrap-GsOqvniR:hover{background-color:#e0e3eb}html.theme-dark .wrap-GsOqvniR:hover{background-color:#434651}.wrap-GsOqvniR:hover .icon-GsOqvniR{color:#131722}html.theme-dark .wrap-GsOqvniR:hover .icon-GsOqvniR{color:#b2b5be}}.text-GsOqvniR{color:#131722;cursor:default;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .text-GsOqvniR{color:#b2b5be}.icon-GsOqvniR{align-self:flex-start;color:#787b86;height:18px;margin-left:8px}.disabled-GsOqvniR{pointer-events:none}.disabled-GsOqvniR .icon-GsOqvniR,.disabled-GsOqvniR .text-GsOqvniR{color:#b2b5be}html.theme-dark .disabled-GsOqvniR .icon-GsOqvniR,html.theme-dark .disabled-GsOqvniR .text-GsOqvniR{color:#50535e}.content-ByXdMGQj{box-sizing:border-box;color:#131722;display:inline-grid;grid-template-columns:auto 1fr;max-width:550px;padding:16px 20px;width:100%}html.theme-dark .content-ByXdMGQj{color:#b2b5be}.cell-ByXdMGQj .inner-ByXdMGQj{align-items:center;display:flex;padding:8px 0}.cell-ByXdMGQj.first-ByXdMGQj{align-items:center;display:flex;min-width:0}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{word-wrap:break-word;cursor:default;display:block;min-width:0;padding-right:20px}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj:first-letter{text-transform:capitalize}.cell-ByXdMGQj.first-ByXdMGQj.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding-right:0}.cell-ByXdMGQj.fill-ByXdMGQj{grid-column:1/3}.cell-ByXdMGQj.top-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.topCenter-ByXdMGQj{align-items:flex-start;padding-top:8px}.cell-ByXdMGQj:only-child{max-width:340px}.cell-ByXdMGQj.offset-ByXdMGQj{padding-left:26px}.inlineRow-ByXdMGQj{display:flex}.inlineCell-ByXdMGQj{margin-right:8px}.grouped-ByXdMGQj .inner-ByXdMGQj,.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding:4px 0}.separator-ByXdMGQj{background-color:#e0e3eb;height:1px;margin:8px -20px}html.theme-dark .separator-ByXdMGQj{background-color:#434651}.groupSeparator-ByXdMGQj{height:8px}.groupSeparator-ByXdMGQj.big-ByXdMGQj{height:14px}@media screen and (max-width:379px){.content-ByXdMGQj{grid-template-columns:1fr min-content}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{padding:8px 20px 8px 0}.cell-ByXdMGQj.adaptive-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.adaptive-ByXdMGQj:not(.checkableTitle-ByXdMGQj):not(.inlineCell-ByXdMGQj){padding-top:8px}}.wrap-dHwHcgvB{align-items:center;display:flex;max-width:100%;overflow-wrap:break-word}.wrap-dHwHcgvB:before{content:"";flex:none;height:34px;width:0}.checkbox-24x04noU{min-width:0}.title-24x04noU{cursor:default;min-width:0}.hasTooltip-0t5K1wco{margin-right:9px}.uppercase-0t5K1wco{text-transform:uppercase}.innerLabel-MS9pjVpT{color:#d1d4dc;display:flex;flex:0 0 auto;font-size:16px;padding-left:5px}html.theme-dark .innerLabel-MS9pjVpT{color:#50535e}.controlWrapper-y2rn9wiU{box-sizing:border-box;height:100%;overflow:hidden;width:22px}.controlWrapper-y2rn9wiU.hidden-y2rn9wiU{opacity:0}.control-y2rn9wiU{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;color:#787b86;cursor:default;display:flex;flex:0 0 auto;height:50%;padding:0 6px;transition:color .35s ease,background-color .35s ease}.control-y2rn9wiU svg{fill:currentColor}@media (any-hover:hover){.control-y2rn9wiU:hover{background-color:#f0f3fa;color:#131722}html.theme-dark .control-y2rn9wiU:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-y2rn9wiU{transform:rotate(180deg)}.controlIcon-y2rn9wiU{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-y2rn9wiU svg{width:100%}.title-y2rn9wiU{color:#b2b5be;display:flex;flex-direction:column;font-size:12px;justify-content:center;margin-right:9px}html.theme-dark .title-y2rn9wiU{color:#50535e}.wrap-sYKPueSl{display:flex}.thicknessItem-sYKPueSl{align-items:center;background-color:initial;border:1px solid #d1d4dc;box-sizing:border-box;display:inline-flex;flex:1;height:32px;justify-content:center;padding:0 12px;position:relative}html.theme-dark .thicknessItem-sYKPueSl{background-color:initial;border-color:#50535e}@media (any-hover:hover){.thicknessItem-sYKPueSl:hover{background-color:#f0f3fa}html.theme-dark .thicknessItem-sYKPueSl:hover{background-color:#2a2e39}}.thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff;z-index:1}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff}@media (any-hover:hover){.thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}}.thicknessItem-sYKPueSl+.thicknessItem-sYKPueSl{margin-left:-1px}.thicknessItem-sYKPueSl:first-child{border-bottom-left-radius:3px;border-top-left-radius:3px;margin-left:0}.thicknessItem-sYKPueSl:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}.radio-sYKPueSl{height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%}.bar-sYKPueSl{border:0 solid #131722;height:0;width:100%}html.theme-dark .bar-sYKPueSl{border:0 solid #b2b5be}.bar-sYKPueSl.checked-sYKPueSl,html.theme-dark .bar-sYKPueSl.checked-sYKPueSl{border-top-color:#fff}.thicknessContainer-ofeynovw{padding:0 12px}.thicknessTitle-ofeynovw{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-ofeynovw{color:#787b86}.colorPickerWrap-pz6IRAmC{align-items:center;border-color:#d1d4dc;border-radius:4px;border-style:solid;box-sizing:border-box;display:inline-flex;margin:0;position:relative}html.theme-dark .colorPickerWrap-pz6IRAmC{border-color:#50535e}@media (any-hover:hover){.colorPickerWrap-pz6IRAmC:hover{border-color:#a3a6af}html.theme-dark .colorPickerWrap-pz6IRAmC:hover{border-color:#6a6d78}}.colorPickerWrap-pz6IRAmC.focused-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.focused-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc;color:#b2b5be}html.theme-dark .colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-pz6IRAmC.size-small-pz6IRAmC{height:24px}.colorPickerWrap-pz6IRAmC.size-medium-pz6IRAmC{height:34px}.colorPickerWrap-pz6IRAmC.size-large-pz6IRAmC{height:48px}.colorPickerWrap-pz6IRAmC.font-size-medium-pz6IRAmC,.colorPickerWrap-pz6IRAmC.font-size-small-pz6IRAmC{font-size:14px;line-height:20px}.colorPickerWrap-pz6IRAmC.font-size-large-pz6IRAmC{font-size:16px;line-height:24px}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC{border-width:0}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC .shadow-pz6IRAmC{margin:0}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC{border-width:1px}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC .shadow-pz6IRAmC{margin:-1px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC{border-width:2px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC .shadow-pz6IRAmC{margin:-2px}.colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#50535e}.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC{border-color:#06806b}.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC{border-color:#ff9800}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-left-radius:0}.shadow-pz6IRAmC{border:2px solid;border-radius:4px;bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:3}.shadow-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-left-radius:0}.shadow-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-right-radius:0}.shadow-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-right-radius:0}.shadow-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-left-radius:0}.colorPicker-pz6IRAmC{align-items:center;display:flex;justify-content:center;padding:4px}.colorPicker-pz6IRAmC.disabled-pz6IRAmC{opacity:.5}.swatch-pz6IRAmC{border-radius:3px;box-sizing:border-box;display:block;height:100%;width:100%}.placeholderContainer-pz6IRAmC{border-radius:3px;height:24px;overflow:hidden;position:relative;width:24px}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f;height:24px;width:24px}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-left:24px solid #0000;border-top:24px solid #22ab94;content:" ";position:absolute;width:0}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-top:24px solid #22ab94}.placeholderContainer-pz6IRAmC .mixedColor-pz6IRAmC{background:linear-gradient(270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff);height:100%}.white-pz6IRAmC{border:1px solid #d1d4dc}html.theme-dark .white-pz6IRAmC{border:1px solid #0000}.opacitySwatch-pz6IRAmC{background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%;border-radius:3px;flex:0 0 24px;height:24px;position:relative;width:24px}html.theme-dark .opacitySwatch-pz6IRAmC{background-color:#000}.colorLine-pz6IRAmC{background-color:#131722;border-radius:1px;margin-left:8px;margin-right:4px;width:30px}html.theme-dark .colorLine-pz6IRAmC{background-color:#b2b5be}.colorLine-pz6IRAmC.white-pz6IRAmC{margin-left:7px;margin-right:3px}.multiWidth-pz6IRAmC{margin:0 4px 0 8px;width:30px}.line-pz6IRAmC{background-color:#131722;width:100%}html.theme-dark .line-pz6IRAmC{background-color:#b2b5be}.line-pz6IRAmC:first-child{border-radius:2px;height:3px;margin-bottom:4px}.line-pz6IRAmC:nth-child(2){border-radius:2px;height:2px;margin-bottom:4px}.line-pz6IRAmC:last-child{border-radius:1px;height:1px}.thicknessContainer-pz6IRAmC{padding:0 12px}.thicknessTitle-pz6IRAmC{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-pz6IRAmC{color:#787b86}.textarea-container-I5L4qQPj{font-size:16px;font-style:normal;font-weight:400;line-height:24px;resize:none}.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#d1d4dc)}@media (any-hover:hover){.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#d1d4dc)}}html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#50535e)}@media (any-hover:hover){html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#50535e)}}.textarea-container-I5L4qQPj.resize-vertical-I5L4qQPj{overflow:hidden;resize:vertical}.textarea-container-I5L4qQPj.resize-horizontal-I5L4qQPj{overflow:hidden;resize:horizontal}.textarea-container-I5L4qQPj.resize-both-I5L4qQPj{overflow:hidden;resize:both}.textarea-I5L4qQPj{-webkit-text-fill-color:var(--ui-lib-control-text-fill-color,currentColor);-webkit-appearance:auto;appearance:textfield;background-color:initial;border:0;box-sizing:border-box;display:block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;margin:0;min-width:0;order:0;outline:0;padding:2px 5px;resize:none;width:100%}.textarea-I5L4qQPj::placeholder{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .textarea-I5L4qQPj::placeholder{color:#434651}.textarea-I5L4qQPj::-webkit-calendar-picker-indicator,.textarea-I5L4qQPj::-webkit-clear-button,.textarea-I5L4qQPj::-webkit-inner-spin-button,.textarea-I5L4qQPj::-webkit-outer-spin-button,.textarea-I5L4qQPj::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-I5L4qQPj:-webkit-autofill,.textarea-I5L4qQPj:-webkit-autofill:active,.textarea-I5L4qQPj:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover){.textarea-I5L4qQPj:-webkit-autofill:hover{border-radius:3px}}html.theme-dark .textarea-I5L4qQPj::-webkit-calendar-picker-indicator{filter:invert(1)}.icon-OTC0ma9h{color:#787b86;height:18px;width:18px}.input-pBN3Orju{height:34px;margin-right:12px;width:100px}.input-pBN3Orju.symbol-pBN3Orju{width:150px}.input-pBN3Orju:last-child{margin-right:0}.checkbox-pBN3Orju{max-width:100%}.checkbox-pBN3Orju .label-pBN3Orju{display:inline-block;max-width:100%;min-width:0;overflow-wrap:break-word;vertical-align:top}.checkbox-pBN3Orju .label-pBN3Orju:first-letter{text-transform:capitalize}.dropdownMenu-pBN3Orju{min-width:100px}.sessionEnd-pBN3Orju,.sessionStart-pBN3Orju{align-items:center;display:inline-flex}.sessionInputContainer-pBN3Orju{margin-right:0}.sessionDash-pBN3Orju{flex:1 0 auto}.inputGroup-pBN3Orju{align-items:center;display:flex}.textarea-pBN3Orju{height:200px;padding-top:0;width:100%}@media screen and (max-width:379px){.input-pBN3Orju{margin-bottom:8px}.input-pBN3Orju:last-child{margin-bottom:0}.inputGroup-pBN3Orju{display:block}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju{display:flex}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju .sessionStart-pBN3Orju,.sessionInputContainer-pBN3Orju{margin-bottom:0}.sessionStart-pBN3Orju{margin-bottom:8px}.sessionEnd-pBN3Orju{display:block}}.hasTooltip-pBN3Orju{margin-right:9px}.titleWrap-O5QDBhZc{color:#787b86;height:16px;text-transform:uppercase}.title-O5QDBhZc{font-size:11px}.wrap-l3G0HrB9{flex-direction:column}.labelWrap-l3G0HrB9{align-items:center;display:flex;margin-bottom:6px}.label-l3G0HrB9{word-break:break-word}.label-l3G0HrB9.hasTooltip-l3G0HrB9{margin-right:8px}.inlineRow-CqPNtHDN{align-items:center;display:flex;flex-wrap:wrap;grid-column:1/3;margin-right:-8px;padding:4px 0}.titleWrap-ZYQL0yaM{align-items:center;display:flex;height:34px;padding:24px 0 8px}.titleWrap-ZYQL0yaM:first-child{padding-top:8px}.groupFooter-ZYQL0yaM{height:16px}.groupFooter-ZYQL0yaM:last-child{height:0}.groupFooter-ZYQL0yaM,.titleWrap-ZYQL0yaM{grid-column:1/3}.groupFooter-ZYQL0yaM+.titleWrap-ZYQL0yaM{padding-top:8px} \ No newline at end of file diff --git a/charting_library/bundles/2316.b0ed604f1b75887fab7d.rtl.css b/charting_library/bundles/1999.41e6d020269ba779f363.rtl.css similarity index 52% rename from charting_library/bundles/2316.b0ed604f1b75887fab7d.rtl.css rename to charting_library/bundles/1999.41e6d020269ba779f363.rtl.css index 812fbbc4..894afd05 100644 --- a/charting_library/bundles/2316.b0ed604f1b75887fab7d.rtl.css +++ b/charting_library/bundles/1999.41e6d020269ba779f363.rtl.css @@ -1 +1 @@ -.content-ByXdMGQj{box-sizing:border-box;color:#131722;display:inline-grid;grid-template-columns:auto 1fr;max-width:550px;padding:16px 20px;width:100%}html.theme-dark .content-ByXdMGQj{color:#b2b5be}.cell-ByXdMGQj .inner-ByXdMGQj{align-items:center;display:flex;padding:8px 0}.cell-ByXdMGQj.first-ByXdMGQj{align-items:center;display:flex;min-width:0}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{word-wrap:break-word;cursor:default;display:block;min-width:0;padding-left:20px}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj:first-letter{text-transform:capitalize}.cell-ByXdMGQj.first-ByXdMGQj.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding-left:0}.cell-ByXdMGQj.fill-ByXdMGQj{grid-column:1/3}.cell-ByXdMGQj.top-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.topCenter-ByXdMGQj{align-items:flex-start;padding-top:8px}.cell-ByXdMGQj:only-child{max-width:340px}.cell-ByXdMGQj.offset-ByXdMGQj{padding-right:26px}.inlineRow-ByXdMGQj{display:flex}.inlineCell-ByXdMGQj{margin-left:8px}.grouped-ByXdMGQj .inner-ByXdMGQj,.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding:4px 0}.separator-ByXdMGQj{background-color:#e0e3eb;height:1px;margin:8px -20px}html.theme-dark .separator-ByXdMGQj{background-color:#434651}.groupSeparator-ByXdMGQj{height:8px}.groupSeparator-ByXdMGQj.big-ByXdMGQj{height:14px}@media screen and (max-width:379px){.content-ByXdMGQj{grid-template-columns:1fr min-content}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{padding:8px 0 8px 20px}.cell-ByXdMGQj.adaptive-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.adaptive-ByXdMGQj:not(.checkableTitle-ByXdMGQj):not(.inlineCell-ByXdMGQj){padding-top:8px}}.wrap-GsOqvniR{align-items:center;background-color:#f0f3fa;border-radius:4px;box-sizing:border-box;display:flex;height:34px;justify-content:space-between;max-width:180px;min-width:100px;padding:7px 8px 6px}html.theme-dark .wrap-GsOqvniR{background-color:#2a2e39}@media (any-hover:hover){.wrap-GsOqvniR:hover{background-color:#e0e3eb}html.theme-dark .wrap-GsOqvniR:hover{background-color:#434651}.wrap-GsOqvniR:hover .icon-GsOqvniR{color:#131722}html.theme-dark .wrap-GsOqvniR:hover .icon-GsOqvniR{color:#b2b5be}}.text-GsOqvniR{color:#131722;cursor:default;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .text-GsOqvniR{color:#b2b5be}.icon-GsOqvniR{align-self:flex-start;color:#787b86;height:18px;margin-right:8px}.disabled-GsOqvniR{pointer-events:none}.disabled-GsOqvniR .icon-GsOqvniR,.disabled-GsOqvniR .text-GsOqvniR{color:#b2b5be}html.theme-dark .disabled-GsOqvniR .icon-GsOqvniR,html.theme-dark .disabled-GsOqvniR .text-GsOqvniR{color:#50535e}.wrap-dHwHcgvB{align-items:center;display:flex;max-width:100%;overflow-wrap:break-word}.wrap-dHwHcgvB:before{content:"";flex:none;height:34px;width:0}.checkbox-24x04noU{min-width:0}.title-24x04noU{cursor:default;min-width:0}.hasTooltip-0t5K1wco{margin-left:9px}.uppercase-0t5K1wco{text-transform:uppercase}.innerLabel-MS9pjVpT{color:#d1d4dc;display:flex;flex:0 0 auto;font-size:16px;padding-right:5px}html.theme-dark .innerLabel-MS9pjVpT{color:#50535e}.controlWrapper-y2rn9wiU{box-sizing:border-box;height:100%;overflow:hidden;width:22px}margin-left:2px;margin-right:0;.controlWrapper-y2rn9wiU.hidden-y2rn9wiU{opacity:0}.control-y2rn9wiU{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;color:#787b86;cursor:default;display:flex;flex:0 0 auto;height:50%;padding:0 6px;transition:color .35s ease,background-color .35s ease}.control-y2rn9wiU svg{fill:currentColor}@media (any-hover:hover){.control-y2rn9wiU:hover{background-color:#f0f3fa;color:#131722}html.theme-dark .control-y2rn9wiU:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-y2rn9wiU{transform:rotate(-180deg)}.controlIcon-y2rn9wiU{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-y2rn9wiU svg{width:100%}.title-y2rn9wiU{color:#b2b5be;display:flex;flex-direction:column;font-size:12px;justify-content:center;margin-left:9px}html.theme-dark .title-y2rn9wiU{color:#50535e}.wrap-sYKPueSl{display:flex}.thicknessItem-sYKPueSl{align-items:center;background-color:initial;border:1px solid #d1d4dc;box-sizing:border-box;display:inline-flex;flex:1;height:32px;justify-content:center;padding:0 12px;position:relative}html.theme-dark .thicknessItem-sYKPueSl{background-color:initial;border-color:#50535e}@media (any-hover:hover){.thicknessItem-sYKPueSl:hover{background-color:#f0f3fa}html.theme-dark .thicknessItem-sYKPueSl:hover{background-color:#2a2e39}}.thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff;z-index:1}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff}@media (any-hover:hover){.thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}}.thicknessItem-sYKPueSl+.thicknessItem-sYKPueSl{margin-right:-1px}.thicknessItem-sYKPueSl:first-child{border-bottom-right-radius:3px;border-top-right-radius:3px;margin-right:0}.thicknessItem-sYKPueSl:last-child{border-bottom-left-radius:3px;border-top-left-radius:3px}.radio-sYKPueSl{height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%}.bar-sYKPueSl{border:0 solid #131722;height:0;width:100%}html.theme-dark .bar-sYKPueSl{border:0 solid #b2b5be}.bar-sYKPueSl.checked-sYKPueSl,html.theme-dark .bar-sYKPueSl.checked-sYKPueSl{border-top-color:#fff}.thicknessContainer-ofeynovw{padding:0 12px}.thicknessTitle-ofeynovw{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-ofeynovw{color:#787b86}.colorPickerWrap-pz6IRAmC{align-items:center;border-color:#d1d4dc;border-radius:4px;border-style:solid;box-sizing:border-box;display:inline-flex;margin:0;position:relative}html.theme-dark .colorPickerWrap-pz6IRAmC{border-color:#50535e}@media (any-hover:hover){.colorPickerWrap-pz6IRAmC:hover{border-color:#a3a6af}html.theme-dark .colorPickerWrap-pz6IRAmC:hover{border-color:#6a6d78}}.colorPickerWrap-pz6IRAmC.focused-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.focused-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc;color:#b2b5be}html.theme-dark .colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-pz6IRAmC.size-small-pz6IRAmC{height:24px}.colorPickerWrap-pz6IRAmC.size-medium-pz6IRAmC{height:34px}.colorPickerWrap-pz6IRAmC.size-large-pz6IRAmC{height:48px}.colorPickerWrap-pz6IRAmC.font-size-medium-pz6IRAmC,.colorPickerWrap-pz6IRAmC.font-size-small-pz6IRAmC{font-size:14px;line-height:20px}.colorPickerWrap-pz6IRAmC.font-size-large-pz6IRAmC{font-size:16px;line-height:24px}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC{border-width:0}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC .shadow-pz6IRAmC{margin:0}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC{border-width:1px}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC .shadow-pz6IRAmC{margin:-1px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC{border-width:2px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC .shadow-pz6IRAmC{margin:-2px}.colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#50535e}.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC{border-color:#06806b}.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC{border-color:#ff9800}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-right-radius:0}.shadow-pz6IRAmC{border:2px solid;border-radius:4px;bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:3}.shadow-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-right-radius:0}.shadow-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-left-radius:0}.shadow-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-left-radius:0}.shadow-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-right-radius:0}.colorPicker-pz6IRAmC{align-items:center;display:flex;justify-content:center;padding:4px}.colorPicker-pz6IRAmC.disabled-pz6IRAmC{opacity:.5}.swatch-pz6IRAmC{border-radius:3px;box-sizing:border-box;display:block;height:100%;width:100%}.placeholderContainer-pz6IRAmC{border-radius:3px;height:24px;overflow:hidden;position:relative;width:24px}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f;height:24px;width:24px}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-right:24px solid #0000;border-top:24px solid #22ab94;content:" ";position:absolute;width:0}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-top:24px solid #22ab94}.placeholderContainer-pz6IRAmC .mixedColor-pz6IRAmC{background:linear-gradient(-270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff);height:100%}.white-pz6IRAmC{border:1px solid #d1d4dc}html.theme-dark .white-pz6IRAmC{border:1px solid #0000}.opacitySwatch-pz6IRAmC{background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%;border-radius:3px;flex:0 0 24px;height:24px;position:relative;width:24px}html.theme-dark .opacitySwatch-pz6IRAmC{background-color:#000}.colorLine-pz6IRAmC{background-color:#131722;border-radius:1px;margin-left:4px;margin-right:8px;width:30px}html.theme-dark .colorLine-pz6IRAmC{background-color:#b2b5be}.colorLine-pz6IRAmC.white-pz6IRAmC{margin-left:3px;margin-right:7px}.multiWidth-pz6IRAmC{margin:0 8px 0 4px;width:30px}.line-pz6IRAmC{background-color:#131722;width:100%}html.theme-dark .line-pz6IRAmC{background-color:#b2b5be}.line-pz6IRAmC:first-child{border-radius:2px;height:3px;margin-bottom:4px}.line-pz6IRAmC:nth-child(2){border-radius:2px;height:2px;margin-bottom:4px}.line-pz6IRAmC:last-child{border-radius:1px;height:1px}.thicknessContainer-pz6IRAmC{padding:0 12px}.thicknessTitle-pz6IRAmC{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-pz6IRAmC{color:#787b86}.radio-vpA3AYsc{-webkit-tap-highlight-color:transparent;align-items:center;cursor:default;display:inline-flex;font-size:14px;font-stretch:normal;font-style:normal;font-weight:400;letter-spacing:normal;line-height:normal;position:relative;-webkit-user-select:none;user-select:none}@media (any-hover:hover){.radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#a3a6af}html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#5d606b}.radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#1e53e5}}.radio-vpA3AYsc.reverse-vpA3AYsc{flex-direction:row-reverse}.radio-vpA3AYsc.reverse-vpA3AYsc .label-vpA3AYsc{margin-left:8px;margin-right:0}.radio-vpA3AYsc .wrapper-vpA3AYsc{display:inline-block;flex-shrink:0;height:18px;position:relative;width:18px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc{display:inline-block;height:100%;position:relative;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{background-color:initial;border:1px solid #b2b5be;border-radius:50%;box-sizing:border-box;content:"";height:100%;position:absolute;transition:border-color .35s ease;width:100%}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{border:1px solid #50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:after{border:2px solid;border-color:#2962ffcc;border-radius:50%;box-sizing:border-box;content:"";height:26px;opacity:0;position:absolute;right:-4px;top:-4px;transform:scale(.69231);width:26px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc.noOutline-vpA3AYsc:after{content:none}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc{cursor:inherit;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before{border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#fff;border-color:#2962ff;border-width:6px}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#d1d4dc;border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus-visible+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus:not(:focus-visible)+.box-vpA3AYsc:after{opacity:0;transform:scale(.69231)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#2a2e39;border-color:#50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#50535e;border-color:#2a2e39}.radio-vpA3AYsc .label-vpA3AYsc{color:#000;margin-right:8px;min-width:0}html.theme-dark .radio-vpA3AYsc .label-vpA3AYsc{color:#b2b5be}.textarea-container-I5L4qQPj{font-size:16px;font-style:normal;font-weight:400;line-height:24px;resize:none}.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#d1d4dc)}@media (any-hover:hover){.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#d1d4dc)}}html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#50535e)}@media (any-hover:hover){html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#50535e)}}.textarea-container-I5L4qQPj.resize-vertical-I5L4qQPj{overflow:hidden;resize:vertical}.textarea-container-I5L4qQPj.resize-horizontal-I5L4qQPj{overflow:hidden;resize:horizontal}.textarea-container-I5L4qQPj.resize-both-I5L4qQPj{overflow:hidden;resize:both}.textarea-I5L4qQPj{-webkit-text-fill-color:var(--ui-lib-control-text-fill-color,currentColor);-webkit-appearance:auto;appearance:textfield;background-color:initial;border:0;box-sizing:border-box;display:block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;margin:0;min-width:0;order:0;outline:0;padding:2px 5px;resize:none;width:100%}.textarea-I5L4qQPj::placeholder{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .textarea-I5L4qQPj::placeholder{color:#434651}.textarea-I5L4qQPj::-webkit-calendar-picker-indicator,.textarea-I5L4qQPj::-webkit-clear-button,.textarea-I5L4qQPj::-webkit-inner-spin-button,.textarea-I5L4qQPj::-webkit-outer-spin-button,.textarea-I5L4qQPj::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-I5L4qQPj:-webkit-autofill,.textarea-I5L4qQPj:-webkit-autofill:active,.textarea-I5L4qQPj:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover){.textarea-I5L4qQPj:-webkit-autofill:hover{border-radius:3px}}html.theme-dark .textarea-I5L4qQPj::-webkit-calendar-picker-indicator{filter:invert(1)}.icon-OTC0ma9h{color:#787b86;height:18px;width:18px}.input-pBN3Orju{height:34px;margin-left:12px;width:100px}.input-pBN3Orju.symbol-pBN3Orju{width:150px}.input-pBN3Orju:last-child{margin-left:0}.checkbox-pBN3Orju{max-width:100%}.checkbox-pBN3Orju .label-pBN3Orju{display:inline-block;max-width:100%;min-width:0;overflow-wrap:break-word;vertical-align:top}.checkbox-pBN3Orju .label-pBN3Orju:first-letter{text-transform:capitalize}.dropdownMenu-pBN3Orju{min-width:100px}.sessionEnd-pBN3Orju,.sessionStart-pBN3Orju{align-items:center;display:inline-flex}.sessionInputContainer-pBN3Orju{margin-left:0}.sessionDash-pBN3Orju{flex:1 0 auto}.inputGroup-pBN3Orju{align-items:center;display:flex}.textarea-pBN3Orju{height:200px;padding-top:0;width:100%}@media screen and (max-width:379px){.input-pBN3Orju{margin-bottom:8px}.input-pBN3Orju:last-child{margin-bottom:0}.inputGroup-pBN3Orju{display:block}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju{display:flex}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju .sessionStart-pBN3Orju,.sessionInputContainer-pBN3Orju{margin-bottom:0}.sessionStart-pBN3Orju{margin-bottom:8px}.sessionEnd-pBN3Orju{display:block}}.hasTooltip-pBN3Orju{margin-left:9px}.titleWrap-O5QDBhZc{color:#787b86;height:16px;text-transform:uppercase}.title-O5QDBhZc{font-size:11px}.wrap-l3G0HrB9{flex-direction:column}.labelWrap-l3G0HrB9{align-items:center;display:flex;margin-bottom:6px}.label-l3G0HrB9{word-break:break-word}.label-l3G0HrB9.hasTooltip-l3G0HrB9{margin-left:8px}.inlineRow-CqPNtHDN{align-items:center;display:flex;flex-wrap:wrap;grid-column:1/3;margin-left:-8px;padding:4px 0}.titleWrap-ZYQL0yaM{align-items:center;display:flex;height:34px;padding:24px 0 8px}.titleWrap-ZYQL0yaM:first-child{padding-top:8px}.groupFooter-ZYQL0yaM{height:16px}.groupFooter-ZYQL0yaM:last-child{height:0}.groupFooter-ZYQL0yaM,.titleWrap-ZYQL0yaM{grid-column:1/3}.groupFooter-ZYQL0yaM+.titleWrap-ZYQL0yaM{padding-top:8px} \ No newline at end of file +.wrap-GsOqvniR{align-items:center;background-color:#f0f3fa;border-radius:4px;box-sizing:border-box;display:flex;height:34px;justify-content:space-between;max-width:180px;min-width:100px;padding:7px 8px 6px}html.theme-dark .wrap-GsOqvniR{background-color:#2a2e39}@media (any-hover:hover){.wrap-GsOqvniR:hover{background-color:#e0e3eb}html.theme-dark .wrap-GsOqvniR:hover{background-color:#434651}.wrap-GsOqvniR:hover .icon-GsOqvniR{color:#131722}html.theme-dark .wrap-GsOqvniR:hover .icon-GsOqvniR{color:#b2b5be}}.text-GsOqvniR{color:#131722;cursor:default;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .text-GsOqvniR{color:#b2b5be}.icon-GsOqvniR{align-self:flex-start;color:#787b86;height:18px;margin-right:8px}.disabled-GsOqvniR{pointer-events:none}.disabled-GsOqvniR .icon-GsOqvniR,.disabled-GsOqvniR .text-GsOqvniR{color:#b2b5be}html.theme-dark .disabled-GsOqvniR .icon-GsOqvniR,html.theme-dark .disabled-GsOqvniR .text-GsOqvniR{color:#50535e}.content-ByXdMGQj{box-sizing:border-box;color:#131722;display:inline-grid;grid-template-columns:auto 1fr;max-width:550px;padding:16px 20px;width:100%}html.theme-dark .content-ByXdMGQj{color:#b2b5be}.cell-ByXdMGQj .inner-ByXdMGQj{align-items:center;display:flex;padding:8px 0}.cell-ByXdMGQj.first-ByXdMGQj{align-items:center;display:flex;min-width:0}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{word-wrap:break-word;cursor:default;display:block;min-width:0;padding-left:20px}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj:first-letter{text-transform:capitalize}.cell-ByXdMGQj.first-ByXdMGQj.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding-left:0}.cell-ByXdMGQj.fill-ByXdMGQj{grid-column:1/3}.cell-ByXdMGQj.top-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.topCenter-ByXdMGQj{align-items:flex-start;padding-top:8px}.cell-ByXdMGQj:only-child{max-width:340px}.cell-ByXdMGQj.offset-ByXdMGQj{padding-right:26px}.inlineRow-ByXdMGQj{display:flex}.inlineCell-ByXdMGQj{margin-left:8px}.grouped-ByXdMGQj .inner-ByXdMGQj,.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding:4px 0}.separator-ByXdMGQj{background-color:#e0e3eb;height:1px;margin:8px -20px}html.theme-dark .separator-ByXdMGQj{background-color:#434651}.groupSeparator-ByXdMGQj{height:8px}.groupSeparator-ByXdMGQj.big-ByXdMGQj{height:14px}@media screen and (max-width:379px){.content-ByXdMGQj{grid-template-columns:1fr min-content}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{padding:8px 0 8px 20px}.cell-ByXdMGQj.adaptive-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.adaptive-ByXdMGQj:not(.checkableTitle-ByXdMGQj):not(.inlineCell-ByXdMGQj){padding-top:8px}}.wrap-dHwHcgvB{align-items:center;display:flex;max-width:100%;overflow-wrap:break-word}.wrap-dHwHcgvB:before{content:"";flex:none;height:34px;width:0}.checkbox-24x04noU{min-width:0}.title-24x04noU{cursor:default;min-width:0}.hasTooltip-0t5K1wco{margin-left:9px}.uppercase-0t5K1wco{text-transform:uppercase}.innerLabel-MS9pjVpT{color:#d1d4dc;display:flex;flex:0 0 auto;font-size:16px;padding-right:5px}html.theme-dark .innerLabel-MS9pjVpT{color:#50535e}.controlWrapper-y2rn9wiU{box-sizing:border-box;height:100%;overflow:hidden;width:22px}margin-left:2px;margin-right:0;.controlWrapper-y2rn9wiU.hidden-y2rn9wiU{opacity:0}.control-y2rn9wiU{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;color:#787b86;cursor:default;display:flex;flex:0 0 auto;height:50%;padding:0 6px;transition:color .35s ease,background-color .35s ease}.control-y2rn9wiU svg{fill:currentColor}@media (any-hover:hover){.control-y2rn9wiU:hover{background-color:#f0f3fa;color:#131722}html.theme-dark .control-y2rn9wiU:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-y2rn9wiU{transform:rotate(-180deg)}.controlIcon-y2rn9wiU{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-y2rn9wiU svg{width:100%}.title-y2rn9wiU{color:#b2b5be;display:flex;flex-direction:column;font-size:12px;justify-content:center;margin-left:9px}html.theme-dark .title-y2rn9wiU{color:#50535e}.wrap-sYKPueSl{display:flex}.thicknessItem-sYKPueSl{align-items:center;background-color:initial;border:1px solid #d1d4dc;box-sizing:border-box;display:inline-flex;flex:1;height:32px;justify-content:center;padding:0 12px;position:relative}html.theme-dark .thicknessItem-sYKPueSl{background-color:initial;border-color:#50535e}@media (any-hover:hover){.thicknessItem-sYKPueSl:hover{background-color:#f0f3fa}html.theme-dark .thicknessItem-sYKPueSl:hover{background-color:#2a2e39}}.thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff;z-index:1}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff}@media (any-hover:hover){.thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}}.thicknessItem-sYKPueSl+.thicknessItem-sYKPueSl{margin-right:-1px}.thicknessItem-sYKPueSl:first-child{border-bottom-right-radius:3px;border-top-right-radius:3px;margin-right:0}.thicknessItem-sYKPueSl:last-child{border-bottom-left-radius:3px;border-top-left-radius:3px}.radio-sYKPueSl{height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%}.bar-sYKPueSl{border:0 solid #131722;height:0;width:100%}html.theme-dark .bar-sYKPueSl{border:0 solid #b2b5be}.bar-sYKPueSl.checked-sYKPueSl,html.theme-dark .bar-sYKPueSl.checked-sYKPueSl{border-top-color:#fff}.thicknessContainer-ofeynovw{padding:0 12px}.thicknessTitle-ofeynovw{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-ofeynovw{color:#787b86}.colorPickerWrap-pz6IRAmC{align-items:center;border-color:#d1d4dc;border-radius:4px;border-style:solid;box-sizing:border-box;display:inline-flex;margin:0;position:relative}html.theme-dark .colorPickerWrap-pz6IRAmC{border-color:#50535e}@media (any-hover:hover){.colorPickerWrap-pz6IRAmC:hover{border-color:#a3a6af}html.theme-dark .colorPickerWrap-pz6IRAmC:hover{border-color:#6a6d78}}.colorPickerWrap-pz6IRAmC.focused-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.focused-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc;color:#b2b5be}html.theme-dark .colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-pz6IRAmC.size-small-pz6IRAmC{height:24px}.colorPickerWrap-pz6IRAmC.size-medium-pz6IRAmC{height:34px}.colorPickerWrap-pz6IRAmC.size-large-pz6IRAmC{height:48px}.colorPickerWrap-pz6IRAmC.font-size-medium-pz6IRAmC,.colorPickerWrap-pz6IRAmC.font-size-small-pz6IRAmC{font-size:14px;line-height:20px}.colorPickerWrap-pz6IRAmC.font-size-large-pz6IRAmC{font-size:16px;line-height:24px}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC{border-width:0}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC .shadow-pz6IRAmC{margin:0}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC{border-width:1px}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC .shadow-pz6IRAmC{margin:-1px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC{border-width:2px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC .shadow-pz6IRAmC{margin:-2px}.colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#50535e}.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC{border-color:#06806b}.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC{border-color:#ff9800}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-right-radius:0}.shadow-pz6IRAmC{border:2px solid;border-radius:4px;bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:3}.shadow-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-right-radius:0}.shadow-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-left-radius:0}.shadow-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-left-radius:0}.shadow-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-right-radius:0}.colorPicker-pz6IRAmC{align-items:center;display:flex;justify-content:center;padding:4px}.colorPicker-pz6IRAmC.disabled-pz6IRAmC{opacity:.5}.swatch-pz6IRAmC{border-radius:3px;box-sizing:border-box;display:block;height:100%;width:100%}.placeholderContainer-pz6IRAmC{border-radius:3px;height:24px;overflow:hidden;position:relative;width:24px}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f;height:24px;width:24px}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-right:24px solid #0000;border-top:24px solid #22ab94;content:" ";position:absolute;width:0}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-top:24px solid #22ab94}.placeholderContainer-pz6IRAmC .mixedColor-pz6IRAmC{background:linear-gradient(-270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff);height:100%}.white-pz6IRAmC{border:1px solid #d1d4dc}html.theme-dark .white-pz6IRAmC{border:1px solid #0000}.opacitySwatch-pz6IRAmC{background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%;border-radius:3px;flex:0 0 24px;height:24px;position:relative;width:24px}html.theme-dark .opacitySwatch-pz6IRAmC{background-color:#000}.colorLine-pz6IRAmC{background-color:#131722;border-radius:1px;margin-left:4px;margin-right:8px;width:30px}html.theme-dark .colorLine-pz6IRAmC{background-color:#b2b5be}.colorLine-pz6IRAmC.white-pz6IRAmC{margin-left:3px;margin-right:7px}.multiWidth-pz6IRAmC{margin:0 8px 0 4px;width:30px}.line-pz6IRAmC{background-color:#131722;width:100%}html.theme-dark .line-pz6IRAmC{background-color:#b2b5be}.line-pz6IRAmC:first-child{border-radius:2px;height:3px;margin-bottom:4px}.line-pz6IRAmC:nth-child(2){border-radius:2px;height:2px;margin-bottom:4px}.line-pz6IRAmC:last-child{border-radius:1px;height:1px}.thicknessContainer-pz6IRAmC{padding:0 12px}.thicknessTitle-pz6IRAmC{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-pz6IRAmC{color:#787b86}.textarea-container-I5L4qQPj{font-size:16px;font-style:normal;font-weight:400;line-height:24px;resize:none}.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#d1d4dc)}@media (any-hover:hover){.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#d1d4dc)}}html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#50535e)}@media (any-hover:hover){html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#50535e)}}.textarea-container-I5L4qQPj.resize-vertical-I5L4qQPj{overflow:hidden;resize:vertical}.textarea-container-I5L4qQPj.resize-horizontal-I5L4qQPj{overflow:hidden;resize:horizontal}.textarea-container-I5L4qQPj.resize-both-I5L4qQPj{overflow:hidden;resize:both}.textarea-I5L4qQPj{-webkit-text-fill-color:var(--ui-lib-control-text-fill-color,currentColor);-webkit-appearance:auto;appearance:textfield;background-color:initial;border:0;box-sizing:border-box;display:block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;margin:0;min-width:0;order:0;outline:0;padding:2px 5px;resize:none;width:100%}.textarea-I5L4qQPj::placeholder{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .textarea-I5L4qQPj::placeholder{color:#434651}.textarea-I5L4qQPj::-webkit-calendar-picker-indicator,.textarea-I5L4qQPj::-webkit-clear-button,.textarea-I5L4qQPj::-webkit-inner-spin-button,.textarea-I5L4qQPj::-webkit-outer-spin-button,.textarea-I5L4qQPj::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-I5L4qQPj:-webkit-autofill,.textarea-I5L4qQPj:-webkit-autofill:active,.textarea-I5L4qQPj:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover){.textarea-I5L4qQPj:-webkit-autofill:hover{border-radius:3px}}html.theme-dark .textarea-I5L4qQPj::-webkit-calendar-picker-indicator{filter:invert(1)}.icon-OTC0ma9h{color:#787b86;height:18px;width:18px}.input-pBN3Orju{height:34px;margin-left:12px;width:100px}.input-pBN3Orju.symbol-pBN3Orju{width:150px}.input-pBN3Orju:last-child{margin-left:0}.checkbox-pBN3Orju{max-width:100%}.checkbox-pBN3Orju .label-pBN3Orju{display:inline-block;max-width:100%;min-width:0;overflow-wrap:break-word;vertical-align:top}.checkbox-pBN3Orju .label-pBN3Orju:first-letter{text-transform:capitalize}.dropdownMenu-pBN3Orju{min-width:100px}.sessionEnd-pBN3Orju,.sessionStart-pBN3Orju{align-items:center;display:inline-flex}.sessionInputContainer-pBN3Orju{margin-left:0}.sessionDash-pBN3Orju{flex:1 0 auto}.inputGroup-pBN3Orju{align-items:center;display:flex}.textarea-pBN3Orju{height:200px;padding-top:0;width:100%}@media screen and (max-width:379px){.input-pBN3Orju{margin-bottom:8px}.input-pBN3Orju:last-child{margin-bottom:0}.inputGroup-pBN3Orju{display:block}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju{display:flex}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju .sessionStart-pBN3Orju,.sessionInputContainer-pBN3Orju{margin-bottom:0}.sessionStart-pBN3Orju{margin-bottom:8px}.sessionEnd-pBN3Orju{display:block}}.hasTooltip-pBN3Orju{margin-left:9px}.titleWrap-O5QDBhZc{color:#787b86;height:16px;text-transform:uppercase}.title-O5QDBhZc{font-size:11px}.wrap-l3G0HrB9{flex-direction:column}.labelWrap-l3G0HrB9{align-items:center;display:flex;margin-bottom:6px}.label-l3G0HrB9{word-break:break-word}.label-l3G0HrB9.hasTooltip-l3G0HrB9{margin-left:8px}.inlineRow-CqPNtHDN{align-items:center;display:flex;flex-wrap:wrap;grid-column:1/3;margin-left:-8px;padding:4px 0}.titleWrap-ZYQL0yaM{align-items:center;display:flex;height:34px;padding:24px 0 8px}.titleWrap-ZYQL0yaM:first-child{padding-top:8px}.groupFooter-ZYQL0yaM{height:16px}.groupFooter-ZYQL0yaM:last-child{height:0}.groupFooter-ZYQL0yaM,.titleWrap-ZYQL0yaM{grid-column:1/3}.groupFooter-ZYQL0yaM+.titleWrap-ZYQL0yaM{padding-top:8px} \ No newline at end of file diff --git a/charting_library/bundles/1a129ec3eee7754e48466838566ab14e.svg b/charting_library/bundles/1a129ec3eee7754e48466838566ab14e.svg new file mode 100644 index 00000000..8c3abfbe --- /dev/null +++ b/charting_library/bundles/1a129ec3eee7754e48466838566ab14e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1b4c2ab61dabdd769b277a4707937a9d.svg b/charting_library/bundles/1b4c2ab61dabdd769b277a4707937a9d.svg new file mode 100644 index 00000000..3d22b6a7 --- /dev/null +++ b/charting_library/bundles/1b4c2ab61dabdd769b277a4707937a9d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1bf2c1b06e7ab37b765dd3f5b891a241.svg b/charting_library/bundles/1bf2c1b06e7ab37b765dd3f5b891a241.svg new file mode 100644 index 00000000..22448bdc --- /dev/null +++ b/charting_library/bundles/1bf2c1b06e7ab37b765dd3f5b891a241.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1c6b280e81b3d23ee72a86dedc751351.svg b/charting_library/bundles/1c6b280e81b3d23ee72a86dedc751351.svg new file mode 100644 index 00000000..82ed06e6 --- /dev/null +++ b/charting_library/bundles/1c6b280e81b3d23ee72a86dedc751351.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1ca623399e6a505e1816c5f4169c60a3.svg b/charting_library/bundles/1ca623399e6a505e1816c5f4169c60a3.svg new file mode 100644 index 00000000..b816257f --- /dev/null +++ b/charting_library/bundles/1ca623399e6a505e1816c5f4169c60a3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1cab1bbf2efbf21183e3f253d0cdd698.svg b/charting_library/bundles/1cab1bbf2efbf21183e3f253d0cdd698.svg new file mode 100644 index 00000000..eddacc86 --- /dev/null +++ b/charting_library/bundles/1cab1bbf2efbf21183e3f253d0cdd698.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1d27ff98c6f9247fd9df181f3fba5d3e.svg b/charting_library/bundles/1d27ff98c6f9247fd9df181f3fba5d3e.svg new file mode 100644 index 00000000..a7653bd5 --- /dev/null +++ b/charting_library/bundles/1d27ff98c6f9247fd9df181f3fba5d3e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1d3eecfc50933a84c28985cffe2fbb4e.svg b/charting_library/bundles/1d3eecfc50933a84c28985cffe2fbb4e.svg new file mode 100644 index 00000000..566b9355 --- /dev/null +++ b/charting_library/bundles/1d3eecfc50933a84c28985cffe2fbb4e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1d59e7669186b321ec8cffdfd2369210.svg b/charting_library/bundles/1d59e7669186b321ec8cffdfd2369210.svg new file mode 100644 index 00000000..cd592768 --- /dev/null +++ b/charting_library/bundles/1d59e7669186b321ec8cffdfd2369210.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1e193459d0a9e9fc9ef95beffa15de1c.svg b/charting_library/bundles/1e193459d0a9e9fc9ef95beffa15de1c.svg new file mode 100644 index 00000000..82ce29c2 --- /dev/null +++ b/charting_library/bundles/1e193459d0a9e9fc9ef95beffa15de1c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1e2e718c683b1d6325a427dff2d6c78f.svg b/charting_library/bundles/1e2e718c683b1d6325a427dff2d6c78f.svg new file mode 100644 index 00000000..5c2c1dfe --- /dev/null +++ b/charting_library/bundles/1e2e718c683b1d6325a427dff2d6c78f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1e9f070f7e9ad9001725ada71182816b.jpeg b/charting_library/bundles/1e9f070f7e9ad9001725ada71182816b.jpeg new file mode 100644 index 00000000..0a7520bf Binary files /dev/null and b/charting_library/bundles/1e9f070f7e9ad9001725ada71182816b.jpeg differ diff --git a/charting_library/bundles/1eafeadca5e616cc4525be1fb1caafc7.svg b/charting_library/bundles/1eafeadca5e616cc4525be1fb1caafc7.svg new file mode 100644 index 00000000..b7e92eae --- /dev/null +++ b/charting_library/bundles/1eafeadca5e616cc4525be1fb1caafc7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2006.21f12914e3a7a7515a25.css b/charting_library/bundles/2006.21f12914e3a7a7515a25.css new file mode 100644 index 00000000..8db400df --- /dev/null +++ b/charting_library/bundles/2006.21f12914e3a7a7515a25.css @@ -0,0 +1 @@ +.calendar-U9DgB4FB{background-color:#fff;box-sizing:border-box;color:#131722;cursor:default;direction:ltr;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;height:100%;padding:12px;-webkit-user-select:none;user-select:none;width:286px}html.theme-dark .calendar-U9DgB4FB{background-color:#1e222d;color:#b2b5be}.popupStyle-U9DgB4FB{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003}html.theme-dark .popupStyle-U9DgB4FB{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-U9DgB4FB{align-items:center;display:flex;justify-content:space-between;padding-left:3px;padding-right:3px}.header-U9DgB4FB .title-U9DgB4FB{font-size:16px;line-height:24px;max-width:160px}.header-U9DgB4FB .switchBtn-U9DgB4FB{border-radius:4px;cursor:pointer;font-size:0;margin:-3px;padding:3px}@media (any-hover:hover){.header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#f0f3fa}html.theme-dark .header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#2a2e39}}.header-U9DgB4FB .switchBtn-U9DgB4FB.prev-U9DgB4FB{transform:scale(-1)}.month-U9DgB4FB{display:flex;flex-direction:column}.month-U9DgB4FB .weekdays-U9DgB4FB{align-items:center;background-color:#f8f9fd;border-radius:4px;display:flex;justify-content:space-between;margin-top:12px;padding-bottom:2px;padding-top:2px}html.theme-dark .month-U9DgB4FB .weekdays-U9DgB4FB{background-color:#2a2e39}.month-U9DgB4FB .weekdays-U9DgB4FB>span{color:#787b86;font-size:13px;line-height:20px;text-align:center;width:34px}.month-U9DgB4FB .weeks-U9DgB4FB{display:flex;flex-direction:column;margin-top:12px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB{display:flex;justify-content:space-between}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child .day-U9DgB4FB+.day-U9DgB4FB,.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child .day-U9DgB4FB+.day-U9DgB4FB{margin-left:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child{justify-content:flex-end}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child{justify-content:flex-start}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB+.week-U9DgB4FB{margin-top:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB{align-items:center;border-radius:4px;box-sizing:border-box;display:flex;font-size:14px;height:34px;justify-content:center;width:34px}@media (any-hover:hover){.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#f0f3fa}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#2a2e39}}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#50535e}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB{color:#2962ff;position:relative}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff;border-radius:1px;bottom:5px;content:"";height:2px;left:50%;position:absolute;transform:translateX(-50%);width:20px}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#e3effd;border:2px solid #2962ff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#132042;border:2px solid #2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#e3effd}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#132042}.pickerInput-sZbzL9zH{position:relative}.pickerInput-sZbzL9zH .icon-sZbzL9zH{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:0 6px}.pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86;height:16px;width:16px}html.theme-dark .pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86}.pickerInput-sZbzL9zH .icon-sZbzL9zH.disabled-sZbzL9zH{opacity:.1}.picker-sZbzL9zH{transition:opacity .2625s ease;z-index:99}.fixed-sZbzL9zH{position:fixed}.absolute-sZbzL9zH{position:absolute}.nativePicker-sZbzL9zH{bottom:0;left:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;top:0} \ No newline at end of file diff --git a/charting_library/bundles/2006.21f12914e3a7a7515a25.rtl.css b/charting_library/bundles/2006.21f12914e3a7a7515a25.rtl.css new file mode 100644 index 00000000..558f50e6 --- /dev/null +++ b/charting_library/bundles/2006.21f12914e3a7a7515a25.rtl.css @@ -0,0 +1 @@ +.calendar-U9DgB4FB{background-color:#fff;box-sizing:border-box;color:#131722;cursor:default;direction:ltr;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;height:100%;padding:12px;-webkit-user-select:none;user-select:none;width:286px}html.theme-dark .calendar-U9DgB4FB{background-color:#1e222d;color:#b2b5be}.popupStyle-U9DgB4FB{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003}html.theme-dark .popupStyle-U9DgB4FB{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-U9DgB4FB{align-items:center;display:flex;justify-content:space-between;padding-left:3px;padding-right:3px}.header-U9DgB4FB .title-U9DgB4FB{font-size:16px;line-height:24px;max-width:160px}.header-U9DgB4FB .switchBtn-U9DgB4FB{border-radius:4px;cursor:pointer;font-size:0;margin:-3px;padding:3px}@media (any-hover:hover){.header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#f0f3fa}html.theme-dark .header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#2a2e39}}.header-U9DgB4FB .switchBtn-U9DgB4FB.prev-U9DgB4FB{transform:scale(-1)}.month-U9DgB4FB{display:flex;flex-direction:column}.month-U9DgB4FB .weekdays-U9DgB4FB{align-items:center;background-color:#f8f9fd;border-radius:4px;display:flex;justify-content:space-between;margin-top:12px;padding-bottom:2px;padding-top:2px}html.theme-dark .month-U9DgB4FB .weekdays-U9DgB4FB{background-color:#2a2e39}.month-U9DgB4FB .weekdays-U9DgB4FB>span{color:#787b86;font-size:13px;line-height:20px;text-align:center;width:34px}.month-U9DgB4FB .weeks-U9DgB4FB{display:flex;flex-direction:column;margin-top:12px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB{display:flex;justify-content:space-between}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child .day-U9DgB4FB+.day-U9DgB4FB,.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child .day-U9DgB4FB+.day-U9DgB4FB{margin-right:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child{justify-content:flex-end}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child{justify-content:flex-start}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB+.week-U9DgB4FB{margin-top:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB{align-items:center;border-radius:4px;box-sizing:border-box;display:flex;font-size:14px;height:34px;justify-content:center;width:34px}@media (any-hover:hover){.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#f0f3fa}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#2a2e39}}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#50535e}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB{color:#2962ff;position:relative}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff;border-radius:1px;bottom:5px;content:"";height:2px;position:absolute;right:50%;transform:translateX(50%);width:20px}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#e3effd;border:2px solid #2962ff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#132042;border:2px solid #2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#e3effd}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#132042}.pickerInput-sZbzL9zH{position:relative}.pickerInput-sZbzL9zH .icon-sZbzL9zH{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:0 6px}.pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86;height:16px;width:16px}html.theme-dark .pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86}.pickerInput-sZbzL9zH .icon-sZbzL9zH.disabled-sZbzL9zH{opacity:.1}.picker-sZbzL9zH{transition:opacity .2625s ease;z-index:99}.fixed-sZbzL9zH{position:fixed}.absolute-sZbzL9zH{position:absolute}.nativePicker-sZbzL9zH{bottom:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;right:0;top:0} \ No newline at end of file diff --git a/charting_library/bundles/206725c980d03acbd1cc0e7f5ce69e40.svg b/charting_library/bundles/206725c980d03acbd1cc0e7f5ce69e40.svg new file mode 100644 index 00000000..f9e9eb97 --- /dev/null +++ b/charting_library/bundles/206725c980d03acbd1cc0e7f5ce69e40.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2267.47b8ff4cd471e21cabab.css b/charting_library/bundles/2267.47b8ff4cd471e21cabab.css new file mode 100644 index 00000000..e7a361ad --- /dev/null +++ b/charting_library/bundles/2267.47b8ff4cd471e21cabab.css @@ -0,0 +1 @@ +.slow-warning-warhOVjI{flex-shrink:0;margin-bottom:36px} \ No newline at end of file diff --git a/charting_library/bundles/2267.47b8ff4cd471e21cabab.rtl.css b/charting_library/bundles/2267.47b8ff4cd471e21cabab.rtl.css new file mode 100644 index 00000000..e7a361ad --- /dev/null +++ b/charting_library/bundles/2267.47b8ff4cd471e21cabab.rtl.css @@ -0,0 +1 @@ +.slow-warning-warhOVjI{flex-shrink:0;margin-bottom:36px} \ No newline at end of file diff --git a/charting_library/bundles/2288.d3106e5fe660e6e0712c.css b/charting_library/bundles/2288.d3106e5fe660e6e0712c.css new file mode 100644 index 00000000..5d649a43 --- /dev/null +++ b/charting_library/bundles/2288.d3106e5fe660e6e0712c.css @@ -0,0 +1 @@ +.tv-rename-chart-dialog__field{display:block;font-size:13px}.tv-rename-chart-dialog__field:not(:last-child){margin-bottom:13px}.tv-rename-chart-dialog__label{display:inline-block;margin-bottom:10px}.tv-rename-chart-dialog__label a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-rename-chart-dialog__label a{color:#2962ff}.tv-rename-chart-dialog__label a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-rename-chart-dialog__label a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-rename-chart-dialog__label a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-rename-chart-dialog__label a:hover{fill:#1e53e5;color:#1e53e5}}.tv-rename-chart-dialog__label a:focus{outline:auto}.tv-rename-chart-dialog__label a:focus:not(:-moz-focusring){outline:none}.tv-rename-chart-dialog__label a:-moz-focusring{outline:auto}.tv-rename-chart-dialog__label a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-rename-chart-dialog__label a:active{fill:#1848cc;color:#1848cc}.tv-rename-chart-dialog__hint{display:inline-block;height:16px;margin-left:5px;vertical-align:middle;width:16px}.tv-rename-chart-dialog__hint:before{content:url(70464b308617ebaa2bc504b4a50c3463.svg);filter:invert(50%)}.clock-LMkaUMzm{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column}html.theme-dark .clock-LMkaUMzm{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-LMkaUMzm{border-bottom:1px solid #eceff2;box-sizing:border-box;color:#262b3e;cursor:default;flex:0 0 50px;font-size:24px;height:50px;line-height:1;padding:10px 0;text-align:center}html.theme-dark .header-LMkaUMzm{border-bottom-color:#363c4e;color:#c5cbce}.header-LMkaUMzm .number-LMkaUMzm{cursor:pointer;padding:0 3px}.header-LMkaUMzm .number-LMkaUMzm.active-LMkaUMzm{color:#2962ff}.body-LMkaUMzm{background:#f7f8fa;display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding:10px}html.theme-dark .body-LMkaUMzm{background:#1c2030}.clockFace-LMkaUMzm{background:#fff;border-radius:50%;box-sizing:border-box;height:200px;margin:0 auto;position:relative;width:200px}html.theme-dark .clockFace-LMkaUMzm{background:#262b3e}.clockFace-LMkaUMzm div{height:100%;position:absolute;width:100%}.clockFace-LMkaUMzm .face-LMkaUMzm{border-radius:50%;font-size:15px;left:0;pointer-events:none;position:absolute;top:0}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm{align-items:center;border-radius:50%;color:#262b3e;cursor:pointer;display:flex;height:28px;margin-left:-14px;margin-top:-14px;pointer-events:all;position:absolute;text-align:center;transition:background-color 60ms ease;-webkit-user-select:none;user-select:none;width:28px}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm{color:#c5cbce}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm>span{flex:1 1 auto}@media (any-hover:hover){.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:hover{background-color:#f7f8fa80}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:hover{background-color:#1c203080}}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:active{background-color:#f7f8fa}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:active{background-color:#1c2030}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm.inner-LMkaUMzm{font-size:120%}.clockFace-LMkaUMzm .hand-LMkaUMzm{background:#2962ff;bottom:50%;display:block;left:50%;margin-left:-.5px;pointer-events:none;position:absolute;transform-origin:50% 100%;width:1px}.clockFace-LMkaUMzm .hand-LMkaUMzm .knob-LMkaUMzm{border:2px solid #2962ff;border-radius:50%;box-sizing:border-box;height:26px;left:50%;margin-left:-13px;position:absolute;top:-26px;width:26px}html.theme-dark .clockFace-LMkaUMzm .hand-LMkaUMzm .knob-LMkaUMzm{border-color:#2962ff}.clockFace-LMkaUMzm .centerDot-LMkaUMzm{background:#2962ff;border-radius:50%;content:"";height:4px;left:50%;margin-left:-2px;margin-top:-2px;position:absolute;top:50%;width:4px}.tv-alert-dialog__title-wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-alert-dialog__fieldset-label--small{padding-right:0!important;padding-top:5px!important}@media screen and (max-width:479px){.tv-alert-dialog__fieldset-label--empty{display:none!important}}.tv-alert-dialog__fieldset-value{margin-bottom:15px;position:relative}.tv-alert-dialog__fieldset-value--group{font-size:0}.tv-alert-dialog__fieldset-value--wide{width:100%!important}.tv-alert-dialog__fieldset-value--space-bottom{margin-bottom:23px}.tv-alert-dialog__fieldset-value--no-margin{margin-bottom:0}.tv-alert-dialog__fieldset-value--with-hint{width:calc(70% - 24px)}.tv-alert-dialog__expiration{display:flex}.tv-alert-dialog__expiration .tv-alert-dialog__group-item--right{flex:0 0 100px}.tv-alert-dialog__group-item{box-sizing:border-box;display:inline-block;position:relative;vertical-align:top}.tv-alert-dialog__group-item--left{width:57%}.tv-alert-dialog__group-item--right{padding-left:10px;width:43%}.tv-alert-dialog__group-item--right-lbl{padding-right:15px}.tv-alert-dialog__group-item--right-lbl-wide{padding-right:30px}.tv-alert-dialog__group-item--left-lbl{padding-left:25px}.tv-alert-dialog__date-icon-wrap{cursor:pointer;display:block;height:14px;margin-top:-7px;position:absolute;right:7px;top:50%;transition:opacity .35s;width:14px}.tv-alert-dialog__date-icon-wrap>svg{fill:#758696;height:14px;width:14px}.tv-alert-dialog__date-icon-wrap.i-disabled{opacity:.2;pointer-events:none}.tv-alert-dialog__input-lbl{display:block;font-size:13px;height:27px;line-height:27px;position:absolute;top:0}.tv-alert-dialog__input-lbl--right{right:0}.tv-alert-dialog__input-lbl--left{left:10px}.tv-alert-dialog__date-time-input.container{height:27px}.tv-alert-dialog__fieldset-value-item{display:block;margin:12px 0 7px}.tv-alert-dialog__fieldset-value-item:first-child{margin-top:7px}.tv-alert-dialog__fieldset-value-item--nested{height:37px;margin:0;opacity:1;transition:margin-top .23333333s,height .23333333s cubic-bezier(.645,.045,.355,1),opacity .23333333s}.tv-alert-dialog__fieldset-value-item--collapsed{height:0;margin-top:-7px;opacity:0;pointer-events:none}.tv-alert-dialog__fieldset-value-item--open-ended{font-size:14px;margin:9px 0 4px}.tv-alert-dialog__fieldset-wrapper{margin-bottom:9px;opacity:0;overflow:hidden;pointer-events:none;transition:opacity .23333333s}.tv-alert-dialog__fieldset-wrapper-toggle{color:#6a6d78;cursor:pointer;font-size:13px;margin-top:7px;padding:18px 0 14px;position:relative;-webkit-user-select:none;user-select:none}html.theme-dark .tv-alert-dialog__fieldset-wrapper-toggle{color:#787b86}.tv-alert-dialog__fieldset-wrapper-toggle-arrow svg{position:absolute;top:50%;transform:translateY(-50%) rotate(180deg);transition:transform .23333333s;width:13px}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-arrow svg{transform:translateY(-50%) rotate(1turn)}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-text--more{opacity:0}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-text--less{opacity:1}.tv-alert-dialog__fieldset-wrapper-toggle-text{left:22px;position:absolute;top:50%;transform:translateY(-50%)}.tv-alert-dialog__fieldset-wrapper-toggle-text--less{opacity:0}.tv-alert-dialog__fieldset-wrapper.i-active{opacity:1;pointer-events:all}.tv-alert-dialog__frequency_control{margin-top:7px}.tv-alert-dialog__checkbox-label{font-size:13px}.tv-alert-dialog__select-placeholder{font-size:13px;height:27px;line-height:27px}.tv-alert-dialog__delete-button{float:left}.tv-alert-dialog__sound-select-option{position:relative}.tv-alert-dialog__sound-toggle{border-radius:50%;cursor:pointer;display:block;height:18px;margin-top:-9px;position:absolute;right:8px;top:50%;transition:background-color .35s;width:18px}.tv-alert-dialog__sound-toggle svg{fill:#758696;display:block;height:8px;left:5px;position:relative;top:5px;width:8px}@media (any-hover:hover){.tv-alert-dialog__sound-toggle:hover{background-color:#ececec}}.tv-alert-dialog__sound-toggle--playing svg{background-color:#758696}.tv-alert-dialog__button-caption{overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.tv-alert-dialog__info{background:none;border:none;cursor:pointer;display:inline-flex;margin-left:8px;padding:0;vertical-align:middle}.tv-alert-dialog__info svg{fill:#2962ff}.tv-alert-dialog__info--interactive svg{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-alert-dialog__info--interactive svg{color:#2962ff}.tv-alert-dialog__info--interactive svg:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-alert-dialog__info--interactive svg:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-alert-dialog__info--interactive svg:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .tv-alert-dialog__info--interactive svg:hover{fill:#1e53e5;color:#1e53e5}}.tv-alert-dialog__info--interactive svg:focus{outline:auto}.tv-alert-dialog__info--interactive svg:focus-visible{outline:auto}.tv-alert-dialog__info--interactive svg:focus:not(:focus-visible){outline:none}.tv-alert-dialog__info--interactive svg:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .tv-alert-dialog__info--interactive svg:active{fill:#1848cc;color:#1848cc}.tv-alert-dialog__info--inside-text,.tv-alert-dialog__info--no-indent{margin-left:0;vertical-align:text-bottom}.tv-alert-dialog__info--outstanding{bottom:4px;position:absolute;right:-24px}.tv-alert-dialog__text-message{color:#787b86;display:block;font-size:13px;margin:10px 0 0}html.theme-dark .tv-alert-dialog__text-message{color:#758696}.tv-alert-dialog__actions{padding-top:20px}.tv-alert-dialog__number-input{min-width:0}.tv-buttons-group{display:flex}.tv-buttons-group--table-like+.tv-buttons-group--table-like{margin-top:-1px}.tv-buttons-group--table-like .tv-buttons-group__option{border-radius:0}.tv-buttons-group--table-like .tv-buttons-group__option.i-active,.tv-buttons-group--table-like .tv-buttons-group__option.i-active:active{position:relative}@media (any-hover:hover){.tv-buttons-group--table-like .tv-buttons-group__option.i-active:hover{position:relative}}.tv-buttons-group--table-like:first-child .tv-buttons-group__option:first-child{border-radius:2px 0 0 0}.tv-buttons-group--table-like:first-child .tv-buttons-group__option:last-child{border-radius:0 2px 0 0}.tv-buttons-group--table-like:last-child .tv-buttons-group__option:first-child{border-radius:0 0 0 2px}.tv-buttons-group--table-like:last-child .tv-buttons-group__option:last-child{border-radius:0 0 2px 0}.tv-buttons-group__option{border:1px solid #b2b5be;border-right:#b2b5be;box-sizing:border-box;color:#6a6d78;cursor:pointer;display:flex;flex:1 1 0%;font-size:14px;font-weight:700;justify-content:center;line-height:32px;overflow:hidden;text-decoration:none;transition:background-color .35s ease,border-color .35s ease,color .35s ease;-webkit-user-select:none;user-select:none;white-space:nowrap}html.theme-dark .tv-buttons-group__option{border-color:#363a45;color:#787b86}@media (any-hover:hover){.tv-buttons-group__option:hover{background-color:#f2f2f2;transition-duration:.06s}html.theme-dark .tv-buttons-group__option:hover{background-color:#262b3e}}.tv-buttons-group__option:active{background-color:#ececec;transition-duration:.06s}html.theme-dark .tv-buttons-group__option:active{background-color:#2f3241}.tv-buttons-group__option:first-child{border-bottom-left-radius:2px;border-top-left-radius:2px}.tv-buttons-group__option:last-child{border-bottom-right-radius:2px;border-style:solid;border-top-right-radius:2px;border-width:1px}.tv-buttons-group__option.i-active{border:1px solid}.tv-buttons-group__option.i-active+.tv-buttons-group__option{border-left:none}.tv-buttons-group__option--content{overflow-x:hidden;text-align:center;text-overflow:ellipsis;width:100%}.tv-buttons-group__option--padding_normal{padding:0 12px}.tv-buttons-group__option--padding_small{padding:0 6px}.tv-buttons-group--primary .tv-buttons-group__option.i-active,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active{border-color:#2962ff}.tv-buttons-group--primary .tv-buttons-group__option.i-active{background-color:#2962ff;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active{color:#e1ecf2}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active{background-color:initial;color:#2962ff;font-weight:400}@media (any-hover:hover){.tv-buttons-group--primary .tv-buttons-group__option.i-active:hover,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover{color:#e1ecf2}}.tv-buttons-group--primary .tv-buttons-group__option.i-active:active,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active{background-color:#1848cc;border-color:#1848cc;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active{color:#e1ecf2}.tv-buttons-group--primary .tv-buttons-group__option.i-active+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active+.tv-buttons-group__option{border-left-color:#2962ff}@media (any-hover:hover){.tv-buttons-group--primary .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{border-left-color:#1e53e5}}.tv-buttons-group--primary .tv-buttons-group__option.i-active:active+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{border-left-color:#1848cc}.tv-buttons-group--primary_ghost .tv-buttons-group__option{border-color:#dadde0;font-weight:400}@media (any-hover:hover){.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover{border-bottom-color:#c1c4cd;border-top-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover{border-bottom-color:#50535e;border-top-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:last-child{border-right-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:last-child{border-right-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:first-child{border-left-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:first-child{border-left-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover:last-child{border-right-color:#1e53e5}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover:first-child{border-left-color:#1e53e5}}.tv-buttons-group__option.i-disabled,.tv-buttons-group__option.i-disabled:active{background-color:#fff;border-bottom-color:#e0e3eb;border-top-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group__option.i-disabled:hover{background-color:#fff;border-bottom-color:#e0e3eb;border-top-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{border-bottom-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{border-bottom-color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{border-top-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{border-top-color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{background-color:#1e222d}}.tv-buttons-group__option.i-disabled+.tv-buttons-group__option.i-disabled{border-left-color:#e0e3eb}html.theme-dark .tv-buttons-group__option.i-disabled+.tv-buttons-group__option.i-disabled{border-left-color:#2a2e39}.tv-buttons-group__option:last-child.i-disabled{border-right-color:#e0e3eb}@media (any-hover:hover){.tv-buttons-group__option:last-child.i-disabled:hover{border-right-color:#e0e3eb}}html.theme-dark .tv-buttons-group__option:last-child.i-disabled{border-right-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option:last-child.i-disabled:hover{border-right-color:#2a2e39}}.tv-buttons-group__option:first-child.i-disabled{border-left-color:#e0e3eb}@media (any-hover:hover){.tv-buttons-group__option:first-child.i-disabled:hover{border-left-color:#e0e3eb}}html.theme-dark .tv-buttons-group__option:first-child.i-disabled{border-left-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option:first-child.i-disabled:hover{border-left-color:#2a2e39}}.tv-buttons-group.i-disabled .tv-buttons-group__option,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,.tv-buttons-group.i-disabled .tv-buttons-group__option:active{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,.tv-buttons-group.i-disabled .tv-buttons-group__option:hover{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{border-color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{background-color:#1e222d}}.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{border-color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{background-color:#1e222d}}.tv-buttons-group--readonly .tv-buttons-group__option{background-color:#fff;border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option{background-color:#1e222d}.tv-buttons-group--readonly .tv-buttons-group__option.i-active{background-color:#f2f2f2;border:1px solid #c1c4cd;color:#6a6d78;transition:background-color .35s ease,border-color .35s ease,color .35s ease}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active{background-color:#262b3e;border:1px solid #50535e;color:#787b86}@media (any-hover:hover){.tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover{background-color:#f2f2f2;border-color:#c1c4cd;color:#6a6d78}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover{background-color:#262b3e;border-color:#50535e;color:#787b86}.tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover:first-child{border-left-color:#c1c4cd}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover:first-child{border-left-color:#50535e}}.tv-buttons-group--size-small .tv-buttons-group__option{font-size:13px;line-height:25px}.tv-control-number-input{display:flex;flex-direction:row}.tv-control-number-input--mobile .tv-control-number-input__controls{display:none}.tv-control-number-input--mobile .tv-control-number-input__input{border-radius:2px}.tv-control-number-input__input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;border-radius:2px 0 0 2px;box-sizing:border-box;color:#434651;color:#535353;display:block;font-size:13px;height:34px;min-width:1px;padding:4px 8px;transition:border-color .35s ease,background-color .35s ease;transition:background-color .35s ease,color .35s ease,border-color .35s ease;width:100%}html.theme-dark .tv-control-number-input__input{background-color:#1e222d;border-color:#363a45;color:#c5cbce;color:#d1d4dc}.tv-control-number-input__input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-number-input__input::placeholder{color:#50535e}.tv-control-number-input__input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-number-input__input--size_xsmall{height:19px}.tv-control-number-input__input--size_small{height:27px}.tv-control-number-input__input--size_large{font-size:16px;height:48px}.tv-control-number-input__input--connect{border-left:0;border-radius:0;border-right:0}.tv-control-number-input__input--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-number-input__input--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-control-number-input__input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-number-input__input:hover{border-color:#50535e}}.tv-control-number-input__input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-number-input__input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-number-input__input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-number-input__input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-number-input__input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-number-input__input[readonly]:hover{border-color:#2a2e39!important}}.tv-control-number-input__input--readonly_dark,.tv-control-number-input__input--readonly_dark[readonly],html.theme-dark .tv-control-number-input__input--readonly_dark,html.theme-dark .tv-control-number-input__input--readonly_dark[readonly]{color:#50535e}.tv-control-number-input__input.i-disabled,.tv-control-number-input__input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled,html.theme-dark .tv-control-number-input__input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-number-input__input.i-disabled::placeholder,.tv-control-number-input__input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled::placeholder,html.theme-dark .tv-control-number-input__input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-number-input__input.i-disabled:hover,.tv-control-number-input__input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled:hover,html.theme-dark .tv-control-number-input__input[disabled]:hover{border-color:#2a2e39!important}}.tv-control-number-input__input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-number-input__input.i-error:hover{border-color:#f24965!important}}.tv-control-number-input__input.i-error:focus{border-color:#ff173e!important}.tv-control-number-input__input.i-success{border-color:#089981!important}html.theme-dark .tv-control-number-input__input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-number-input__input.i-success:hover,html.theme-dark .tv-control-number-input__input.i-success:hover{border-color:#06806b!important}}.tv-control-number-input__input.i-success:active,.tv-control-number-input__input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-number-input__input.i-success:active,html.theme-dark .tv-control-number-input__input.i-success:focus{border-color:#089981!important}.tv-control-number-input__input--phone{direction:ltr;text-align:left}.tv-control-number-input__controls{align-items:center;border:1px solid #e0e3eb;border-left:none;border-radius:0 2px 2px 0;box-sizing:border-box;cursor:pointer;display:flex;flex:0 0 14px;flex-direction:column;justify-content:space-around;transition:border-color .35s ease,background-color .35s ease}html.theme-dark .tv-control-number-input__controls{border-color:#363a45}.tv-control-number-input__wrapper{align-items:center;display:flex;height:12px;justify-content:center;transition:background-color .35s ease;width:100%}.tv-control-number-input__up{fill:currentColor;color:#9db2bd;transition:color .35s ease}.tv-control-number-input__up>svg{display:block;height:6px;transform:scaleY(-1);width:7px}.tv-control-number-input__splinter{border-bottom:1px solid #e0e3eb;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-number-input__splinter{border-bottom-color:#363a45}.tv-control-number-input__down{fill:currentColor;color:#9db2bd;transition:color .35s ease}.tv-control-number-input__down>svg{display:block;height:6px;width:7px}@media (any-hover:hover){.tv-control-number-input__wrapper:hover{background-color:#e0e3eb;transition-duration:.06s}html.theme-dark .tv-control-number-input__wrapper:hover{background-color:#1e222d}}.tv-control-number-input__wrapper:active{background-color:#e0e3eb;transition-duration:.06s}html.theme-dark .tv-control-number-input__wrapper:active{background-color:#2a2e39}@media (any-hover:hover){.tv-control-number-input:not(.i-active):hover .tv-control-number-input__controls,.tv-control-number-input:not(.i-active):hover .tv-control-number-input__input,.tv-control-number-input:not(.i-active):hover .tv-control-number-input__splinter{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__controls,html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__input,html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__splinter{border-color:#50535e}}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__down,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__up{color:#ff4a68}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__controls,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__input,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__splinter{border-color:#ff4a68}@media (any-hover:hover){.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__down,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__up{color:#ff4a68}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__controls,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__input,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__splinter{border-color:#ff4a68}}.tv-control-number-input.i-active .tv-control-number-input__controls,.tv-control-number-input.i-active .tv-control-number-input__input,.tv-control-number-input.i-active .tv-control-number-input__splinter{border-color:#2962ff}@media (any-hover:hover){.tv-control-number-input.i-active:hover .tv-control-number-input__controls,.tv-control-number-input.i-active:hover .tv-control-number-input__input,.tv-control-number-input.i-active:hover .tv-control-number-input__splinter{border-color:#2962ff}}.tv-control-number-input.i-active .tv-control-number-input__down,.tv-control-number-input.i-active .tv-control-number-input__up{color:#2962ff}.tv-control-number-input.i-disabled .tv-control-number-input__wrapper:active{background-color:#fff}@media (any-hover:hover){.tv-control-number-input.i-disabled .tv-control-number-input__wrapper:hover{background-color:#fff}}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__wrapper:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__wrapper:hover{background-color:#1e222d}}.tv-control-number-input.i-disabled .tv-control-number-input__input{color:#e0e3eb}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__input{color:#363a45}.tv-control-number-input.i-disabled .tv-control-number-input__controls{cursor:default}.tv-control-number-input.i-disabled .tv-control-number-input__down,.tv-control-number-input.i-disabled .tv-control-number-input__up{color:#e0e3eb}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__down,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__up{color:#363a45}.tv-control-number-input.i-disabled .tv-control-number-input__controls,.tv-control-number-input.i-disabled .tv-control-number-input__input,.tv-control-number-input.i-disabled .tv-control-number-input__splinter{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-number-input.i-disabled:hover .tv-control-number-input__controls,.tv-control-number-input.i-disabled:hover .tv-control-number-input__input,.tv-control-number-input.i-disabled:hover .tv-control-number-input__splinter{border-color:#e0e3eb}}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__controls,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__input,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__splinter{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__controls,html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__input,html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__splinter{border-color:#2a2e39}}.tv-control-input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#50535e}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{font-size:16px;height:48px}.tv-control-input--connect{border-left:0;border-radius:0;border-right:0}.tv-control-input--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-input--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-control-input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-input:hover{border-color:#50535e}}.tv-control-input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-input[readonly]:hover{border-color:#2a2e39!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly],html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#50535e}.tv-control-input.i-disabled,.tv-control-input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#2a2e39!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#089981!important}html.theme-dark .tv-control-input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#06806b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#089981!important}.tv-control-input--phone{direction:ltr;text-align:left}.tv-control-input--file{display:none}.tv-control-fieldset{display:block;margin-bottom:30px;min-width:0}.tv-control-fieldset:after{clear:both;content:"";display:table}.tv-control-fieldset--spacing_small{margin-bottom:20px}.tv-control-fieldset--spacing_xsmall{margin-bottom:10px}.tv-control-fieldset--first{margin-top:12px}.tv-control-fieldset:last-child{margin-bottom:0}.tv-control-fieldset--force-spacing{margin-bottom:30px}.tv-control-fieldset--force-spacing.tv-control-fieldset--spacing_small{margin-bottom:20px}@media screen and (max-width:767px){.tv-control-fieldset{margin-bottom:20px}}.tv-control-fieldset__group{display:flex;justify-content:space-between}.tv-control-fieldset__label,.tv-control-fieldset__value{box-sizing:border-box;display:block;float:left}.tv-control-fieldset__label--vertical,.tv-control-fieldset__value--vertical{float:none}.tv-control-fieldset__label--checkbox,.tv-control-fieldset__value--checkbox{padding-top:2px!important}@media screen and (max-width:479px){.tv-control-fieldset__label,.tv-control-fieldset__value{float:none}}.tv-control-fieldset__label{clear:left;color:#787b86;font-size:13px;padding:10px 20px 0 0;width:30%}html.theme-dark .tv-control-fieldset__label{color:#787b86}.tv-control-fieldset__label--top{padding-top:0}.tv-control-fieldset__label--vertical{padding:0 0 4px;width:auto}.tv-control-fieldset__label--color_dark{color:#1c2030}html.theme-dark .tv-control-fieldset__label--color_dark{color:#f7f8fa}.tv-control-fieldset__label--width_small{width:26%}@media screen and (max-width:479px){.tv-control-fieldset__label--width_small{width:auto}}.tv-control-fieldset__label--size_small{padding-top:4px}@media screen and (max-width:479px){.tv-control-fieldset__label{padding:0 0 10px;width:auto}}.tv-control-fieldset__label-icon{display:inline-block;font-size:12px;height:12px;line-height:1;vertical-align:super}.tv-control-fieldset__label-icon svg{height:100%;width:auto}.tv-control-fieldset__value{width:70%}.tv-control-fieldset__value--vertical{width:auto}.tv-control-fieldset__value--width_big{width:74%}@media screen and (max-width:479px){.tv-control-fieldset__value,.tv-control-fieldset__value--width_big{width:auto}}.tv-control-fieldset__text{margin-bottom:12px}.tv-control-fieldset__text:last-of-type{margin-bottom:0}.tv-control-fieldset--block .tv-control-fieldset__label,.tv-control-fieldset--block .tv-control-fieldset__value{float:none;padding:0;width:auto}.tv-control-fieldset--block .tv-control-fieldset__label{margin-bottom:10px}.tv-control-fieldset__value-control{display:block}.tv-control-fieldset__input-value{flex:1;margin-right:12px}.tv-control-fieldset .tv-control-fieldset__group-btn{padding:0}.tv-control-fieldset .tv-control-fieldset__group-btn svg{margin-bottom:1px}.tv-control-fieldset__group-btn:first-child{margin-right:5px}.tv-control-fieldset .tv-control-fieldset__single-icon-btn{padding:0 12px}.tv-control-fieldset .tv-control-fieldset__single-icon-btn svg{margin-bottom:4px}.tv-control-fieldset__trash-icon svg{color:red}.tv-control-fieldset__hint{color:#434651;display:block;font-size:13px;line-height:1.4;margin-bottom:10px;margin-top:10px}html.theme-dark .tv-control-fieldset__hint{color:#c5cbce}.tv-control-fieldset__hint a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-control-fieldset__hint a{color:#2962ff}.tv-control-fieldset__hint a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-control-fieldset__hint a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-control-fieldset__hint a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-control-fieldset__hint a:hover{fill:#1e53e5;color:#1e53e5}}.tv-control-fieldset__hint a:focus{outline:auto}.tv-control-fieldset__hint a:focus:not(:-moz-focusring){outline:none}.tv-control-fieldset__hint a:-moz-focusring{outline:auto}.tv-control-fieldset__hint a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-control-fieldset__hint a:active{fill:#1848cc;color:#1848cc}.tv-control-fieldset .tv-control-input[readonly],html.theme-dark .tv-control-fieldset .tv-control-input[readonly]{color:#787b86}.tv-control-fieldset .tv-control-input--readonly_dark,.tv-control-fieldset .tv-control-input--readonly_dark[readonly],html.theme-dark .tv-control-fieldset .tv-control-input--readonly_dark,html.theme-dark .tv-control-fieldset .tv-control-input--readonly_dark[readonly]{color:#50535e}.tv-control-fieldset .tv-control-input.i-disabled::placeholder,.tv-control-fieldset .tv-control-input[disabled]::placeholder,.tv-control-fieldset .tv-control-number-input__input.i-disabled::placeholder,.tv-control-fieldset .tv-control-number-input__input[disabled]::placeholder,.tv-control-fieldset .tv-control-select__control.i-disabled::placeholder,.tv-control-fieldset .tv-control-select__control[disabled]::placeholder,.tv-control-fieldset select.tv-control-select.i-disabled::placeholder,.tv-control-fieldset select.tv-control-select[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-input[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-number-input__input.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-number-input__input[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-select__control.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-select__control[disabled]::placeholder,html.theme-dark .tv-control-fieldset select.tv-control-select.i-disabled::placeholder,html.theme-dark .tv-control-fieldset select.tv-control-select[disabled]::placeholder{color:#787b86}.tv-control-textarea{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;height:auto;padding:9px 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-textarea{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-textarea::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-textarea::placeholder{color:#50535e}.tv-control-textarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-textarea--size_xsmall{height:19px}.tv-control-textarea--size_small{height:27px}.tv-control-textarea--size_large{font-size:16px;height:48px}.tv-control-textarea--connect{border-left:0;border-radius:0;border-right:0}.tv-control-textarea--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-textarea--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-control-textarea:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-textarea:hover{border-color:#50535e}}.tv-control-textarea:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-textarea[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-textarea[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-textarea[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-textarea[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-textarea[readonly]:hover{border-color:#2a2e39!important}}.tv-control-textarea.i-disabled,.tv-control-textarea[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled,html.theme-dark .tv-control-textarea[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-textarea.i-disabled::placeholder,.tv-control-textarea[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled::placeholder,html.theme-dark .tv-control-textarea[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-textarea.i-disabled:hover,.tv-control-textarea[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled:hover,html.theme-dark .tv-control-textarea[disabled]:hover{border-color:#2a2e39!important}}.tv-control-textarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-textarea.i-error:hover{border-color:#f24965!important}}.tv-control-textarea.i-error:focus{border-color:#ff173e!important}.tv-control-textarea.i-success{border-color:#089981!important}html.theme-dark .tv-control-textarea.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-textarea.i-success:hover,html.theme-dark .tv-control-textarea.i-success:hover{border-color:#06806b!important}}.tv-control-textarea.i-success:active,.tv-control-textarea.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-textarea.i-success:active,html.theme-dark .tv-control-textarea.i-success:focus{border-color:#089981!important}.tv-control-textarea--phone{direction:ltr;text-align:left}.tv-control-textarea--readonly_dark,.tv-control-textarea--readonly_dark[readonly],html.theme-dark .tv-control-textarea--readonly_dark,html.theme-dark .tv-control-textarea--readonly_dark[readonly]{color:#50535e} \ No newline at end of file diff --git a/charting_library/bundles/2288.d3106e5fe660e6e0712c.rtl.css b/charting_library/bundles/2288.d3106e5fe660e6e0712c.rtl.css new file mode 100644 index 00000000..407de796 --- /dev/null +++ b/charting_library/bundles/2288.d3106e5fe660e6e0712c.rtl.css @@ -0,0 +1 @@ +.tv-rename-chart-dialog__field{display:block;font-size:13px}.tv-rename-chart-dialog__field:not(:last-child){margin-bottom:13px}.tv-rename-chart-dialog__label{display:inline-block;margin-bottom:10px}.tv-rename-chart-dialog__label a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-rename-chart-dialog__label a{color:#2962ff}.tv-rename-chart-dialog__label a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-rename-chart-dialog__label a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-rename-chart-dialog__label a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-rename-chart-dialog__label a:hover{fill:#1e53e5;color:#1e53e5}}.tv-rename-chart-dialog__label a:focus{outline:auto}.tv-rename-chart-dialog__label a:focus:not(:-moz-focusring){outline:none}.tv-rename-chart-dialog__label a:-moz-focusring{outline:auto}.tv-rename-chart-dialog__label a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-rename-chart-dialog__label a:active{fill:#1848cc;color:#1848cc}.tv-rename-chart-dialog__hint{display:inline-block;height:16px;margin-right:5px;vertical-align:middle;width:16px}.tv-rename-chart-dialog__hint:before{content:url(70464b308617ebaa2bc504b4a50c3463.svg);filter:invert(50%)}.clock-LMkaUMzm{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column}html.theme-dark .clock-LMkaUMzm{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-LMkaUMzm{border-bottom:1px solid #eceff2;box-sizing:border-box;color:#262b3e;cursor:default;flex:0 0 50px;font-size:24px;height:50px;line-height:1;padding:10px 0;text-align:center}html.theme-dark .header-LMkaUMzm{border-bottom-color:#363c4e;color:#c5cbce}.header-LMkaUMzm .number-LMkaUMzm{cursor:pointer;padding:0 3px}.header-LMkaUMzm .number-LMkaUMzm.active-LMkaUMzm{color:#2962ff}.body-LMkaUMzm{background:#f7f8fa;display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding:10px}html.theme-dark .body-LMkaUMzm{background:#1c2030}.clockFace-LMkaUMzm{background:#fff;border-radius:50%;box-sizing:border-box;height:200px;margin:0 auto;position:relative;width:200px}html.theme-dark .clockFace-LMkaUMzm{background:#262b3e}.clockFace-LMkaUMzm div{height:100%;position:absolute;width:100%}.clockFace-LMkaUMzm .face-LMkaUMzm{border-radius:50%;font-size:15px;pointer-events:none;position:absolute;right:0;top:0}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm{align-items:center;border-radius:50%;color:#262b3e;cursor:pointer;display:flex;height:28px;margin-left:-14px;margin-top:-14px;pointer-events:all;position:absolute;text-align:center;transition:background-color 60ms ease;-webkit-user-select:none;user-select:none;width:28px}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm{color:#c5cbce}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm>span{flex:1 1 auto}@media (any-hover:hover){.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:hover{background-color:#f7f8fa80}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:hover{background-color:#1c203080}}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:active{background-color:#f7f8fa}html.theme-dark .clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm:active{background-color:#1c2030}.clockFace-LMkaUMzm .face-LMkaUMzm .number-LMkaUMzm.inner-LMkaUMzm{font-size:120%}.clockFace-LMkaUMzm .hand-LMkaUMzm{background:#2962ff;bottom:50%;display:block;margin-right:-.5px;pointer-events:none;position:absolute;right:50%;transform-origin:50% 100%;width:1px}.clockFace-LMkaUMzm .hand-LMkaUMzm .knob-LMkaUMzm{border:2px solid #2962ff;border-radius:50%;box-sizing:border-box;height:26px;margin-right:-13px;position:absolute;right:50%;top:-26px;width:26px}html.theme-dark .clockFace-LMkaUMzm .hand-LMkaUMzm .knob-LMkaUMzm{border-color:#2962ff}.clockFace-LMkaUMzm .centerDot-LMkaUMzm{background:#2962ff;border-radius:50%;content:"";height:4px;margin-right:-2px;margin-top:-2px;position:absolute;right:50%;top:50%;width:4px}.tv-alert-dialog__title-wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-alert-dialog__fieldset-label--small{padding-left:0!important;padding-top:5px!important}@media screen and (max-width:479px){.tv-alert-dialog__fieldset-label--empty{display:none!important}}.tv-alert-dialog__fieldset-value{margin-bottom:15px;position:relative}.tv-alert-dialog__fieldset-value--group{font-size:0}.tv-alert-dialog__fieldset-value--wide{width:100%!important}.tv-alert-dialog__fieldset-value--space-bottom{margin-bottom:23px}.tv-alert-dialog__fieldset-value--no-margin{margin-bottom:0}.tv-alert-dialog__fieldset-value--with-hint{width:calc(70% - 24px)}.tv-alert-dialog__expiration{display:flex}.tv-alert-dialog__expiration .tv-alert-dialog__group-item--right{flex:0 0 100px}.tv-alert-dialog__group-item{box-sizing:border-box;display:inline-block;position:relative;vertical-align:top}.tv-alert-dialog__group-item--left{width:57%}.tv-alert-dialog__group-item--right{padding-right:10px;width:43%}.tv-alert-dialog__group-item--right-lbl{padding-left:15px}.tv-alert-dialog__group-item--right-lbl-wide{padding-left:30px}.tv-alert-dialog__group-item--left-lbl{padding-right:25px}.tv-alert-dialog__date-icon-wrap{cursor:pointer;display:block;height:14px;left:7px;margin-top:-7px;position:absolute;top:50%;transition:opacity .35s;width:14px}.tv-alert-dialog__date-icon-wrap>svg{fill:#758696;height:14px;width:14px}.tv-alert-dialog__date-icon-wrap.i-disabled{opacity:.2;pointer-events:none}.tv-alert-dialog__input-lbl{display:block;font-size:13px;height:27px;line-height:27px;position:absolute;top:0}.tv-alert-dialog__input-lbl--right{left:0}.tv-alert-dialog__input-lbl--left{right:10px}.tv-alert-dialog__date-time-input.container{height:27px}.tv-alert-dialog__fieldset-value-item{display:block;margin:12px 0 7px}.tv-alert-dialog__fieldset-value-item:first-child{margin-top:7px}.tv-alert-dialog__fieldset-value-item--nested{height:37px;margin:0;opacity:1;transition:margin-top .23333333s,height .23333333s cubic-bezier(.645,.045,.355,1),opacity .23333333s}.tv-alert-dialog__fieldset-value-item--collapsed{height:0;margin-top:-7px;opacity:0;pointer-events:none}.tv-alert-dialog__fieldset-value-item--open-ended{font-size:14px;margin:9px 0 4px}.tv-alert-dialog__fieldset-wrapper{margin-bottom:9px;opacity:0;overflow:hidden;pointer-events:none;transition:opacity .23333333s}.tv-alert-dialog__fieldset-wrapper-toggle{color:#6a6d78;cursor:pointer;font-size:13px;margin-top:7px;padding:18px 0 14px;position:relative;-webkit-user-select:none;user-select:none}html.theme-dark .tv-alert-dialog__fieldset-wrapper-toggle{color:#787b86}.tv-alert-dialog__fieldset-wrapper-toggle-arrow svg{position:absolute;top:50%;transform:translateY(-50%) rotate(-180deg);transition:transform .23333333s;width:13px}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-arrow svg{transform:translateY(-50%) rotate(-1turn)}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-text--more{opacity:0}.tv-alert-dialog__fieldset-wrapper-toggle.i-active .tv-alert-dialog__fieldset-wrapper-toggle-text--less{opacity:1}.tv-alert-dialog__fieldset-wrapper-toggle-text{position:absolute;right:22px;top:50%;transform:translateY(-50%)}.tv-alert-dialog__fieldset-wrapper-toggle-text--less{opacity:0}.tv-alert-dialog__fieldset-wrapper.i-active{opacity:1;pointer-events:all}.tv-alert-dialog__frequency_control{margin-top:7px}.tv-alert-dialog__checkbox-label{font-size:13px}.tv-alert-dialog__select-placeholder{font-size:13px;height:27px;line-height:27px}.tv-alert-dialog__delete-button{float:right}.tv-alert-dialog__sound-select-option{position:relative}.tv-alert-dialog__sound-toggle{border-radius:50%;cursor:pointer;display:block;height:18px;left:8px;margin-top:-9px;position:absolute;top:50%;transition:background-color .35s;width:18px}.tv-alert-dialog__sound-toggle svg{fill:#758696;display:block;height:8px;position:relative;right:5px;top:5px;width:8px}@media (any-hover:hover){.tv-alert-dialog__sound-toggle:hover{background-color:#ececec}}.tv-alert-dialog__sound-toggle--playing svg{background-color:#758696}.tv-alert-dialog__button-caption{overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.tv-alert-dialog__info{background:none;border:none;cursor:pointer;display:inline-flex;margin-right:8px;padding:0;vertical-align:middle}.tv-alert-dialog__info svg{fill:#2962ff}.tv-alert-dialog__info--interactive svg{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-alert-dialog__info--interactive svg{color:#2962ff}.tv-alert-dialog__info--interactive svg:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-alert-dialog__info--interactive svg:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-alert-dialog__info--interactive svg:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .tv-alert-dialog__info--interactive svg:hover{fill:#1e53e5;color:#1e53e5}}.tv-alert-dialog__info--interactive svg:focus{outline:auto}.tv-alert-dialog__info--interactive svg:focus-visible{outline:auto}.tv-alert-dialog__info--interactive svg:focus:not(:focus-visible){outline:none}.tv-alert-dialog__info--interactive svg:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .tv-alert-dialog__info--interactive svg:active{fill:#1848cc;color:#1848cc}.tv-alert-dialog__info--inside-text,.tv-alert-dialog__info--no-indent{margin-right:0;vertical-align:text-bottom}.tv-alert-dialog__info--outstanding{bottom:4px;left:-24px;position:absolute}.tv-alert-dialog__text-message{color:#787b86;display:block;font-size:13px;margin:10px 0 0}html.theme-dark .tv-alert-dialog__text-message{color:#758696}.tv-alert-dialog__actions{padding-top:20px}.tv-alert-dialog__number-input{min-width:0}.tv-buttons-group{display:flex}.tv-buttons-group--table-like+.tv-buttons-group--table-like{margin-top:-1px}.tv-buttons-group--table-like .tv-buttons-group__option{border-radius:0}.tv-buttons-group--table-like .tv-buttons-group__option.i-active,.tv-buttons-group--table-like .tv-buttons-group__option.i-active:active{position:relative}@media (any-hover:hover){.tv-buttons-group--table-like .tv-buttons-group__option.i-active:hover{position:relative}}.tv-buttons-group--table-like:first-child .tv-buttons-group__option:first-child{border-radius:0 2px 0 0}.tv-buttons-group--table-like:first-child .tv-buttons-group__option:last-child{border-radius:2px 0 0 0}.tv-buttons-group--table-like:last-child .tv-buttons-group__option:first-child{border-radius:0 0 2px 0}.tv-buttons-group--table-like:last-child .tv-buttons-group__option:last-child{border-radius:0 0 0 2px}.tv-buttons-group__option{border:1px solid #b2b5be;border-left:#b2b5be;box-sizing:border-box;color:#6a6d78;cursor:pointer;display:flex;flex:1 1 0%;font-size:14px;font-weight:700;justify-content:center;line-height:32px;overflow:hidden;text-decoration:none;transition:background-color .35s ease,border-color .35s ease,color .35s ease;-webkit-user-select:none;user-select:none;white-space:nowrap}html.theme-dark .tv-buttons-group__option{border-color:#363a45;color:#787b86}@media (any-hover:hover){.tv-buttons-group__option:hover{background-color:#f2f2f2;transition-duration:.06s}html.theme-dark .tv-buttons-group__option:hover{background-color:#262b3e}}.tv-buttons-group__option:active{background-color:#ececec;transition-duration:.06s}html.theme-dark .tv-buttons-group__option:active{background-color:#2f3241}.tv-buttons-group__option:first-child{border-bottom-right-radius:2px;border-top-right-radius:2px}.tv-buttons-group__option:last-child{border-bottom-left-radius:2px;border-style:solid;border-top-left-radius:2px;border-width:1px}.tv-buttons-group__option.i-active{border:1px solid}.tv-buttons-group__option.i-active+.tv-buttons-group__option{border-right:none}.tv-buttons-group__option--content{overflow-x:hidden;text-align:center;text-overflow:ellipsis;width:100%}.tv-buttons-group__option--padding_normal{padding:0 12px}.tv-buttons-group__option--padding_small{padding:0 6px}.tv-buttons-group--primary .tv-buttons-group__option.i-active,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active{border-color:#2962ff}.tv-buttons-group--primary .tv-buttons-group__option.i-active{background-color:#2962ff;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active{color:#e1ecf2}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active{background-color:initial;color:#2962ff;font-weight:400}@media (any-hover:hover){.tv-buttons-group--primary .tv-buttons-group__option.i-active:hover,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover{color:#e1ecf2}}.tv-buttons-group--primary .tv-buttons-group__option.i-active:active,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active{background-color:#1848cc;border-color:#1848cc;color:#fff}html.theme-dark .tv-buttons-group--primary .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active{color:#e1ecf2}.tv-buttons-group--primary .tv-buttons-group__option.i-active+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active+.tv-buttons-group__option{border-right-color:#2962ff}@media (any-hover:hover){.tv-buttons-group--primary .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{border-right-color:#1e53e5}}.tv-buttons-group--primary .tv-buttons-group__option.i-active:active+.tv-buttons-group__option,.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{border-right-color:#1848cc}.tv-buttons-group--primary_ghost .tv-buttons-group__option{border-color:#dadde0;font-weight:400}@media (any-hover:hover){.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover{border-bottom-color:#c1c4cd;border-top-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover{border-bottom-color:#50535e;border-top-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:last-child{border-left-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:last-child{border-left-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:first-child{border-right-color:#c1c4cd}html.theme-dark .tv-buttons-group--primary_ghost .tv-buttons-group__option:hover:first-child{border-right-color:#50535e}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover:last-child{border-left-color:#1e53e5}.tv-buttons-group--primary_ghost .tv-buttons-group__option.i-active:hover:first-child{border-right-color:#1e53e5}}.tv-buttons-group__option.i-disabled,.tv-buttons-group__option.i-disabled:active{background-color:#fff;border-bottom-color:#e0e3eb;border-top-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group__option.i-disabled:hover{background-color:#fff;border-bottom-color:#e0e3eb;border-top-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{border-bottom-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{border-bottom-color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{border-top-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{border-top-color:#2a2e39}}html.theme-dark .tv-buttons-group__option.i-disabled,html.theme-dark .tv-buttons-group__option.i-disabled:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option.i-disabled:hover{background-color:#1e222d}}.tv-buttons-group__option.i-disabled+.tv-buttons-group__option.i-disabled{border-right-color:#e0e3eb}html.theme-dark .tv-buttons-group__option.i-disabled+.tv-buttons-group__option.i-disabled{border-right-color:#2a2e39}.tv-buttons-group__option:last-child.i-disabled{border-left-color:#e0e3eb}@media (any-hover:hover){.tv-buttons-group__option:last-child.i-disabled:hover{border-left-color:#e0e3eb}}html.theme-dark .tv-buttons-group__option:last-child.i-disabled{border-left-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option:last-child.i-disabled:hover{border-left-color:#2a2e39}}.tv-buttons-group__option:first-child.i-disabled{border-right-color:#e0e3eb}@media (any-hover:hover){.tv-buttons-group__option:first-child.i-disabled:hover{border-right-color:#e0e3eb}}html.theme-dark .tv-buttons-group__option:first-child.i-disabled{border-right-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group__option:first-child.i-disabled:hover{border-right-color:#2a2e39}}.tv-buttons-group.i-disabled .tv-buttons-group__option,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,.tv-buttons-group.i-disabled .tv-buttons-group__option:active{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,.tv-buttons-group.i-disabled .tv-buttons-group__option:hover{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{border-color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option:hover{background-color:#1e222d}}.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}@media (any-hover:hover){.tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{background-color:#fff;border-color:#e0e3eb;color:#e0e3eb;cursor:default}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{border-color:#2a2e39}}html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active+.tv-buttons-group__option,html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:active+.tv-buttons-group__option{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-buttons-group.i-disabled .tv-buttons-group__option.i-active:hover+.tv-buttons-group__option{background-color:#1e222d}}.tv-buttons-group--readonly .tv-buttons-group__option{background-color:#fff;border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option{background-color:#1e222d}.tv-buttons-group--readonly .tv-buttons-group__option.i-active{background-color:#f2f2f2;border:1px solid #c1c4cd;color:#6a6d78;transition:background-color .35s ease,border-color .35s ease,color .35s ease}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active{background-color:#262b3e;border:1px solid #50535e;color:#787b86}@media (any-hover:hover){.tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover{background-color:#f2f2f2;border-color:#c1c4cd;color:#6a6d78}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover{background-color:#262b3e;border-color:#50535e;color:#787b86}.tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover:first-child{border-right-color:#c1c4cd}html.theme-dark .tv-buttons-group--readonly .tv-buttons-group__option.i-active:hover:first-child{border-right-color:#50535e}}.tv-buttons-group--size-small .tv-buttons-group__option{font-size:13px;line-height:25px}.tv-control-number-input{display:flex;flex-direction:row}.tv-control-number-input--mobile .tv-control-number-input__controls{display:none}.tv-control-number-input--mobile .tv-control-number-input__input{border-radius:2px}.tv-control-number-input__input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;border-radius:0 2px 2px 0;box-sizing:border-box;color:#434651;color:#535353;direction:ltr;display:block;font-size:13px;height:34px;min-width:1px;padding:4px 8px;text-align:right;transition:border-color .35s ease,background-color .35s ease;transition:background-color .35s ease,color .35s ease,border-color .35s ease;width:100%}html.theme-dark .tv-control-number-input__input{background-color:#1e222d;border-color:#363a45;color:#c5cbce;color:#d1d4dc}.tv-control-number-input__input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-number-input__input::placeholder{color:#50535e}.tv-control-number-input__input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-number-input__input--size_xsmall{height:19px}.tv-control-number-input__input--size_small{height:27px}.tv-control-number-input__input--size_large{font-size:16px;height:48px}.tv-control-number-input__input--connect{border-left:0;border-radius:0;border-right:0}.tv-control-number-input__input--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-control-number-input__input--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-number-input__input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-number-input__input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-number-input__input:hover{border-color:#50535e}}.tv-control-number-input__input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-number-input__input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-number-input__input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-number-input__input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-number-input__input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-number-input__input[readonly]:hover{border-color:#2a2e39!important}}.tv-control-number-input__input--readonly_dark,.tv-control-number-input__input--readonly_dark[readonly],html.theme-dark .tv-control-number-input__input--readonly_dark,html.theme-dark .tv-control-number-input__input--readonly_dark[readonly]{color:#50535e}.tv-control-number-input__input.i-disabled,.tv-control-number-input__input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled,html.theme-dark .tv-control-number-input__input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-number-input__input.i-disabled::placeholder,.tv-control-number-input__input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled::placeholder,html.theme-dark .tv-control-number-input__input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-number-input__input.i-disabled:hover,.tv-control-number-input__input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-number-input__input.i-disabled:hover,html.theme-dark .tv-control-number-input__input[disabled]:hover{border-color:#2a2e39!important}}.tv-control-number-input__input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-number-input__input.i-error:hover{border-color:#f24965!important}}.tv-control-number-input__input.i-error:focus{border-color:#ff173e!important}.tv-control-number-input__input.i-success{border-color:#089981!important}html.theme-dark .tv-control-number-input__input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-number-input__input.i-success:hover,html.theme-dark .tv-control-number-input__input.i-success:hover{border-color:#06806b!important}}.tv-control-number-input__input.i-success:active,.tv-control-number-input__input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-number-input__input.i-success:active,html.theme-dark .tv-control-number-input__input.i-success:focus{border-color:#089981!important}.tv-control-number-input__input--phone{direction:ltr;text-align:right}.tv-control-number-input__controls{align-items:center;border:1px solid #e0e3eb;border-radius:2px 0 0 2px;border-right:none;box-sizing:border-box;cursor:pointer;display:flex;flex:0 0 14px;flex-direction:column;justify-content:space-around;transition:border-color .35s ease,background-color .35s ease}html.theme-dark .tv-control-number-input__controls{border-color:#363a45}.tv-control-number-input__wrapper{align-items:center;display:flex;height:12px;justify-content:center;transition:background-color .35s ease;width:100%}.tv-control-number-input__up{fill:currentColor;color:#9db2bd;transition:color .35s ease}.tv-control-number-input__up>svg{display:block;height:6px;transform:scaleY(-1);width:7px}.tv-control-number-input__splinter{border-bottom:1px solid #e0e3eb;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-number-input__splinter{border-bottom-color:#363a45}.tv-control-number-input__down{fill:currentColor;color:#9db2bd;transition:color .35s ease}.tv-control-number-input__down>svg{display:block;height:6px;width:7px}@media (any-hover:hover){.tv-control-number-input__wrapper:hover{background-color:#e0e3eb;transition-duration:.06s}html.theme-dark .tv-control-number-input__wrapper:hover{background-color:#1e222d}}.tv-control-number-input__wrapper:active{background-color:#e0e3eb;transition-duration:.06s}html.theme-dark .tv-control-number-input__wrapper:active{background-color:#2a2e39}@media (any-hover:hover){.tv-control-number-input:not(.i-active):hover .tv-control-number-input__controls,.tv-control-number-input:not(.i-active):hover .tv-control-number-input__input,.tv-control-number-input:not(.i-active):hover .tv-control-number-input__splinter{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__controls,html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__input,html.theme-dark .tv-control-number-input:not(.i-active):hover .tv-control-number-input__splinter{border-color:#50535e}}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__down,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__up{color:#ff4a68}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__controls,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__input,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active) .tv-control-number-input__splinter{border-color:#ff4a68}@media (any-hover:hover){.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__down,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__up{color:#ff4a68}.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__controls,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__input,.tv-control-number-input.i-error:not(.i-disabled):not(.i-active):hover .tv-control-number-input__splinter{border-color:#ff4a68}}.tv-control-number-input.i-active .tv-control-number-input__controls,.tv-control-number-input.i-active .tv-control-number-input__input,.tv-control-number-input.i-active .tv-control-number-input__splinter{border-color:#2962ff}@media (any-hover:hover){.tv-control-number-input.i-active:hover .tv-control-number-input__controls,.tv-control-number-input.i-active:hover .tv-control-number-input__input,.tv-control-number-input.i-active:hover .tv-control-number-input__splinter{border-color:#2962ff}}.tv-control-number-input.i-active .tv-control-number-input__down,.tv-control-number-input.i-active .tv-control-number-input__up{color:#2962ff}.tv-control-number-input.i-disabled .tv-control-number-input__wrapper:active{background-color:#fff}@media (any-hover:hover){.tv-control-number-input.i-disabled .tv-control-number-input__wrapper:hover{background-color:#fff}}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__wrapper:active{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__wrapper:hover{background-color:#1e222d}}.tv-control-number-input.i-disabled .tv-control-number-input__input{color:#e0e3eb}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__input{color:#363a45}.tv-control-number-input.i-disabled .tv-control-number-input__controls{cursor:default}.tv-control-number-input.i-disabled .tv-control-number-input__down,.tv-control-number-input.i-disabled .tv-control-number-input__up{color:#e0e3eb}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__down,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__up{color:#363a45}.tv-control-number-input.i-disabled .tv-control-number-input__controls,.tv-control-number-input.i-disabled .tv-control-number-input__input,.tv-control-number-input.i-disabled .tv-control-number-input__splinter{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-number-input.i-disabled:hover .tv-control-number-input__controls,.tv-control-number-input.i-disabled:hover .tv-control-number-input__input,.tv-control-number-input.i-disabled:hover .tv-control-number-input__splinter{border-color:#e0e3eb}}html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__controls,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__input,html.theme-dark .tv-control-number-input.i-disabled .tv-control-number-input__splinter{border-color:#2a2e39}@media (any-hover:hover){html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__controls,html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__input,html.theme-dark .tv-control-number-input.i-disabled:hover .tv-control-number-input__splinter{border-color:#2a2e39}}.tv-control-input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#50535e}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{font-size:16px;height:48px}.tv-control-input--connect{border-left:0;border-radius:0;border-right:0}.tv-control-input--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-control-input--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-input:hover{border-color:#50535e}}.tv-control-input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-input[readonly]:hover{border-color:#2a2e39!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly],html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#50535e}.tv-control-input.i-disabled,.tv-control-input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#2a2e39!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#089981!important}html.theme-dark .tv-control-input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#06806b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#089981!important}.tv-control-input--phone{direction:ltr;text-align:right}.tv-control-input--file{display:none}.tv-control-fieldset{display:block;margin-bottom:30px;min-width:0}.tv-control-fieldset:after{clear:both;content:"";display:table}.tv-control-fieldset--spacing_small{margin-bottom:20px}.tv-control-fieldset--spacing_xsmall{margin-bottom:10px}.tv-control-fieldset--first{margin-top:12px}.tv-control-fieldset:last-child{margin-bottom:0}.tv-control-fieldset--force-spacing{margin-bottom:30px}.tv-control-fieldset--force-spacing.tv-control-fieldset--spacing_small{margin-bottom:20px}@media screen and (max-width:767px){.tv-control-fieldset{margin-bottom:20px}}.tv-control-fieldset__group{display:flex;justify-content:space-between}.tv-control-fieldset__label,.tv-control-fieldset__value{box-sizing:border-box;display:block;float:right}.tv-control-fieldset__label--vertical,.tv-control-fieldset__value--vertical{float:none}.tv-control-fieldset__label--checkbox,.tv-control-fieldset__value--checkbox{padding-top:2px!important}@media screen and (max-width:479px){.tv-control-fieldset__label,.tv-control-fieldset__value{float:none}}.tv-control-fieldset__label{clear:right;color:#787b86;font-size:13px;padding:10px 0 0 20px;width:30%}html.theme-dark .tv-control-fieldset__label{color:#787b86}.tv-control-fieldset__label--top{padding-top:0}.tv-control-fieldset__label--vertical{padding:0 0 4px;width:auto}.tv-control-fieldset__label--color_dark{color:#1c2030}html.theme-dark .tv-control-fieldset__label--color_dark{color:#f7f8fa}.tv-control-fieldset__label--width_small{width:26%}@media screen and (max-width:479px){.tv-control-fieldset__label--width_small{width:auto}}.tv-control-fieldset__label--size_small{padding-top:4px}@media screen and (max-width:479px){.tv-control-fieldset__label{padding:0 0 10px;width:auto}}.tv-control-fieldset__label-icon{display:inline-block;font-size:12px;height:12px;line-height:1;vertical-align:super}.tv-control-fieldset__label-icon svg{height:100%;width:auto}.tv-control-fieldset__value{width:70%}.tv-control-fieldset__value--vertical{width:auto}.tv-control-fieldset__value--width_big{width:74%}@media screen and (max-width:479px){.tv-control-fieldset__value,.tv-control-fieldset__value--width_big{width:auto}}.tv-control-fieldset__text{margin-bottom:12px}.tv-control-fieldset__text:last-of-type{margin-bottom:0}.tv-control-fieldset--block .tv-control-fieldset__label,.tv-control-fieldset--block .tv-control-fieldset__value{float:none;padding:0;width:auto}.tv-control-fieldset--block .tv-control-fieldset__label{margin-bottom:10px}.tv-control-fieldset__value-control{display:block}.tv-control-fieldset__input-value{flex:1;margin-left:12px}.tv-control-fieldset .tv-control-fieldset__group-btn{padding:0}.tv-control-fieldset .tv-control-fieldset__group-btn svg{margin-bottom:1px}.tv-control-fieldset__group-btn:first-child{margin-left:5px}.tv-control-fieldset .tv-control-fieldset__single-icon-btn{padding:0 12px}.tv-control-fieldset .tv-control-fieldset__single-icon-btn svg{margin-bottom:4px}.tv-control-fieldset__trash-icon svg{color:red}.tv-control-fieldset__hint{color:#434651;display:block;font-size:13px;line-height:1.4;margin-bottom:10px;margin-top:10px}html.theme-dark .tv-control-fieldset__hint{color:#c5cbce}.tv-control-fieldset__hint a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-control-fieldset__hint a{color:#2962ff}.tv-control-fieldset__hint a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-control-fieldset__hint a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-control-fieldset__hint a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-control-fieldset__hint a:hover{fill:#1e53e5;color:#1e53e5}}.tv-control-fieldset__hint a:focus{outline:auto}.tv-control-fieldset__hint a:focus:not(:-moz-focusring){outline:none}.tv-control-fieldset__hint a:-moz-focusring{outline:auto}.tv-control-fieldset__hint a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-control-fieldset__hint a:active{fill:#1848cc;color:#1848cc}.tv-control-fieldset .tv-control-input[readonly],html.theme-dark .tv-control-fieldset .tv-control-input[readonly]{color:#787b86}.tv-control-fieldset .tv-control-input--readonly_dark,.tv-control-fieldset .tv-control-input--readonly_dark[readonly],html.theme-dark .tv-control-fieldset .tv-control-input--readonly_dark,html.theme-dark .tv-control-fieldset .tv-control-input--readonly_dark[readonly]{color:#50535e}.tv-control-fieldset .tv-control-input.i-disabled::placeholder,.tv-control-fieldset .tv-control-input[disabled]::placeholder,.tv-control-fieldset .tv-control-number-input__input.i-disabled::placeholder,.tv-control-fieldset .tv-control-number-input__input[disabled]::placeholder,.tv-control-fieldset .tv-control-select__control.i-disabled::placeholder,.tv-control-fieldset .tv-control-select__control[disabled]::placeholder,.tv-control-fieldset select.tv-control-select.i-disabled::placeholder,.tv-control-fieldset select.tv-control-select[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-input[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-number-input__input.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-number-input__input[disabled]::placeholder,html.theme-dark .tv-control-fieldset .tv-control-select__control.i-disabled::placeholder,html.theme-dark .tv-control-fieldset .tv-control-select__control[disabled]::placeholder,html.theme-dark .tv-control-fieldset select.tv-control-select.i-disabled::placeholder,html.theme-dark .tv-control-fieldset select.tv-control-select[disabled]::placeholder{color:#787b86}.tv-control-textarea{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;height:auto;padding:9px 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-textarea{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-textarea::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-textarea::placeholder{color:#50535e}.tv-control-textarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-textarea--size_xsmall{height:19px}.tv-control-textarea--size_small{height:27px}.tv-control-textarea--size_large{font-size:16px;height:48px}.tv-control-textarea--connect{border-left:0;border-radius:0;border-right:0}.tv-control-textarea--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-control-textarea--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-textarea--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-textarea:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-textarea:hover{border-color:#50535e}}.tv-control-textarea:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-textarea[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-textarea[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-textarea[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-textarea[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-textarea[readonly]:hover{border-color:#2a2e39!important}}.tv-control-textarea.i-disabled,.tv-control-textarea[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled,html.theme-dark .tv-control-textarea[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-textarea.i-disabled::placeholder,.tv-control-textarea[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled::placeholder,html.theme-dark .tv-control-textarea[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-textarea.i-disabled:hover,.tv-control-textarea[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-textarea.i-disabled:hover,html.theme-dark .tv-control-textarea[disabled]:hover{border-color:#2a2e39!important}}.tv-control-textarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-textarea.i-error:hover{border-color:#f24965!important}}.tv-control-textarea.i-error:focus{border-color:#ff173e!important}.tv-control-textarea.i-success{border-color:#089981!important}html.theme-dark .tv-control-textarea.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-textarea.i-success:hover,html.theme-dark .tv-control-textarea.i-success:hover{border-color:#06806b!important}}.tv-control-textarea.i-success:active,.tv-control-textarea.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-textarea.i-success:active,html.theme-dark .tv-control-textarea.i-success:focus{border-color:#089981!important}.tv-control-textarea--phone{direction:ltr;text-align:right}.tv-control-textarea--readonly_dark,.tv-control-textarea--readonly_dark[readonly],html.theme-dark .tv-control-textarea--readonly_dark,html.theme-dark .tv-control-textarea--readonly_dark[readonly]{color:#50535e} \ No newline at end of file diff --git a/charting_library/bundles/2301.327e64f11055caec2fc9.js b/charting_library/bundles/2301.327e64f11055caec2fc9.js deleted file mode 100644 index 99d12160..00000000 --- a/charting_library/bundles/2301.327e64f11055caec2fc9.js +++ /dev/null @@ -1,21 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2301],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,r){if(n(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var s=0;s{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},74246:e=>{e.exports={actions:"actions-FZxvEi7a",actionButton:"actionButton-FZxvEi7a"}},82132:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",itemRow:"itemRow-uhHv1IHJ",multiLine:"multiLine-uhHv1IHJ",cell:"cell-uhHv1IHJ",itemInfoCell:"itemInfoCell-uhHv1IHJ",description:"description-uhHv1IHJ",symbolDescription:"symbolDescription-uhHv1IHJ",flag:"flag-uhHv1IHJ",exchangeDescription:"exchangeDescription-uhHv1IHJ",marketType:"marketType-uhHv1IHJ",exchangeName:"exchangeName-uhHv1IHJ",actionHandleWrap:"actionHandleWrap-uhHv1IHJ",hover:"hover-uhHv1IHJ",selected:"selected-uhHv1IHJ",active:"active-uhHv1IHJ",highlighted:"highlighted-uhHv1IHJ",light:"light-uhHv1IHJ","highlight-animation-theme-light":"highlight-animation-theme-light-uhHv1IHJ",dark:"dark-uhHv1IHJ","highlight-animation-theme-dark":"highlight-animation-theme-dark-uhHv1IHJ",markedFlag:"markedFlag-uhHv1IHJ",offset:"offset-uhHv1IHJ",descriptionCell:"descriptionCell-uhHv1IHJ",addition:"addition-uhHv1IHJ",exchangeCell:"exchangeCell-uhHv1IHJ",fixedWidth:"fixedWidth-uhHv1IHJ",expandHandle:"expandHandle-uhHv1IHJ",expanded:"expanded-uhHv1IHJ",symbolTitle:"symbolTitle-uhHv1IHJ",invalid:"invalid-uhHv1IHJ",noDescription:"noDescription-uhHv1IHJ",highlightedText:"highlightedText-uhHv1IHJ",icon:"icon-uhHv1IHJ",narrow:"narrow-uhHv1IHJ",dataMode:"dataMode-uhHv1IHJ",actionsCell:"actionsCell-uhHv1IHJ",action:"action-uhHv1IHJ",targetAction:"targetAction-uhHv1IHJ",removeAction:"removeAction-uhHv1IHJ",addAction:"addAction-uhHv1IHJ", -markedFlagWrap:"markedFlagWrap-uhHv1IHJ",markedFlagMobile:"markedFlagMobile-uhHv1IHJ",logo:"logo-uhHv1IHJ",isExpandable:"isExpandable-uhHv1IHJ"}},42608:e=>{e.exports={wrap:"wrap-nJ9riypy",libAllSelected:"libAllSelected-nJ9riypy",container:"container-nJ9riypy",iconWrap:"iconWrap-nJ9riypy",icon:"icon-nJ9riypy",title:"title-nJ9riypy",highlighted:"highlighted-nJ9riypy",description:"description-nJ9riypy",mobile:"mobile-nJ9riypy",allSelected:"allSelected-nJ9riypy",desktop:"desktop-nJ9riypy",allSelectedIcon:"allSelectedIcon-nJ9riypy",selected:"selected-nJ9riypy",titleWithoutDesc:"titleWithoutDesc-nJ9riypy",textBlock:"textBlock-nJ9riypy",bordered:"bordered-nJ9riypy"}},90819:e=>{e.exports={container:"container-ZOfHxh0z",contentList:"contentList-ZOfHxh0z",contentListDesktop:"contentListDesktop-ZOfHxh0z",searchSourceItemsContainer:"searchSourceItemsContainer-ZOfHxh0z",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-ZOfHxh0z",groupTitleDesktop:"groupTitleDesktop-ZOfHxh0z",emptyText:"emptyText-ZOfHxh0z",noResultsDesktop:"noResultsDesktop-ZOfHxh0z"}},77338:e=>{e.exports={wrap:"wrap-LlwUhJDs",item:"item-LlwUhJDs",small:"small-LlwUhJDs",text:"text-LlwUhJDs",exchange:"exchange-LlwUhJDs"}},74915:e=>{e.exports={wrap:"wrap-SLQfcZ66",watchlist:"watchlist-SLQfcZ66",noFeed:"noFeed-SLQfcZ66",scrollContainer:"scrollContainer-SLQfcZ66",listContainer:"listContainer-SLQfcZ66",multiLineItemsContainer:"multiLineItemsContainer-SLQfcZ66"}},98749:e=>{e.exports={button:"button-v1WheJQo",desktop:"desktop-v1WheJQo"}},92540:e=>{e.exports={search:"search-RSKUFnp7",upperCase:"upperCase-RSKUFnp7",symbolType:"symbolType-RSKUFnp7",spinnerWrap:"spinnerWrap-RSKUFnp7",emptyText:"emptyText-RSKUFnp7",noResultsDesktop:"noResultsDesktop-RSKUFnp7",brokerCheckboxWrap:"brokerCheckboxWrap-RSKUFnp7"}},53474:e=>{e.exports={flagWrap:"flagWrap-7I0uFLqE",icon:"icon-7I0uFLqE",caret:"caret-7I0uFLqE",title:"title-7I0uFLqE"}},6215:e=>{e.exports={dialog:"dialog-JcokGZNe",tabletDialog:"tabletDialog-JcokGZNe",desktopDialog:"desktopDialog-JcokGZNe"}},70516:e=>{e.exports={childrenWrapper:"childrenWrapper-HNZPlz4e",container:"container-HNZPlz4e"}},99167:e=>{e.exports={bubbles:"bubbles-bgopH9MJ",multiLine:"multiLine-bgopH9MJ",bubble:"bubble-bgopH9MJ"}},74765:e=>{e.exports={bubble:"bubble-vcCjkHCG",animated:"animated-vcCjkHCG",content:"content-vcCjkHCG","appearance-default":"appearance-default-vcCjkHCG",active:"active-vcCjkHCG",red:"red-vcCjkHCG",blue:"blue-vcCjkHCG",green:"green-vcCjkHCG",orange:"orange-vcCjkHCG",purple:"purple-vcCjkHCG",cyan:"cyan-vcCjkHCG",pink:"pink-vcCjkHCG","appearance-text":"appearance-text-vcCjkHCG","fontSize-s":"fontSize-s-vcCjkHCG","fontSize-m":"fontSize-m-vcCjkHCG","size-m":"size-m-vcCjkHCG","size-l":"size-l-vcCjkHCG"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,n)=>{"use strict";function r(e){return a(e,s)}function o(e){return a(e,l)}function a(e,t){ -const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function l(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>o,filterProps:()=>a,isDataAttribute:()=>s,isAriaAttribute:()=>l})},4825:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>i,ToolWidgetButton:()=>c});var r=n(59496),o=n(97754),a=n(9745),s=n(37669),l=n(55576);const i=l,c=r.forwardRef((e,t)=>{const{icon:n,isActive:i,isOpened:c,isDisabled:u,isGrouped:d,isHovered:h,onClick:p,text:m,textBeforeIcon:v,title:f,theme:g=l,className:y,forceInteractive:b,"data-name":S,...x}=e,C=o(y,g.button,f&&"apply-common-tooltip",{[g.isActive]:i,[g.isOpened]:c,[g.isInteractive]:(b||Boolean(p))&&!u,[g.isDisabled]:u,[g.isGrouped]:d,[g.hover]:h,[g.newStyles]:s.hasNewHeaderToolbarStyles}),k=n&&("string"==typeof n?r.createElement(a.Icon,{className:g.icon,icon:n}):r.cloneElement(n,{className:o(g.icon,n.props.className)}));return r.createElement("div",{...x,ref:t,"data-role":"button",className:C,onClick:u?void 0:p,title:f,"data-name":S},v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m),k,!v&&m&&r.createElement("div",{className:o("js-button-text",g.text)},m))})},37669:(e,t,n)=>{"use strict";n.d(t,{hasNewHeaderToolbarStyles:()=>r});n(67337);const r=!1},47670:(e,t,n)=>{"use strict";n.d(t,{marketType:()=>i});var r=n(28353);n(94419);const o=new Map,a={context:"market_type"},s={cfd:(0,r.t)("cfd",a),bitcoin:(0,r.t)("crypto",a),crypto:(0,r.t)("crypto",a),dr:(0,r.t)("dr",a),forex:(0,r.t)("forex",a),futures:(0,r.t)("futures",a),index:(0,r.t)("index",a),stock:(0,r.t)("stock",a),economic:(0,r.t)("economy",a)},l=new Set(["cfd","spreadbet","defi"]);function i(e,t=[]){const n=t.filter(e=>l.has(e)),i=`${e}_${n.sort().join("_")}`,c=o.get(i);if(void 0!==c)return c;const u=Boolean(t.length)?(0,r.t)(e,a)+" "+n.join(" "):s[e]||e;return o.set(i,u),u}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function a(o){if(e>o.timeStamp)return;const a=o.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===r&&(t.contains(a)||n(o))}return o.click&&r.addEventListener("click",a,!1),o.mouseDown&&r.addEventListener("mousedown",a,!1),o.touchEnd&&r.addEventListener("touchend",a,!1),o.touchStart&&r.addEventListener("touchstart",a,!1),()=>{r.removeEventListener("click",a,!1),r.removeEventListener("mousedown",a,!1),r.removeEventListener("touchend",a,!1),r.removeEventListener("touchstart",a,!1)}}n.d(t,{addOutsideEventListener:()=>r})},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>E});var r=n(59496),o=n(88537);var a=n(97754),s=n.n(a),l=n(68335),i=n(35749),c=n(63016),u=n(1109),d=n(24437),h=n(90692),p=n(95711),m=n(52092),v=n(76422),f=n(9745);const g=r.createContext({setHideClose:()=>{}});var y=n(37257),b=n(91441);function S(e){ -const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:a,renderBefore:l,renderAfter:i,draggable:c,className:u,unsetAlign:d}=e,[h,p]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:p}},r.createElement("div",{className:s()(b.container,u,(n||d)&&b.unsetAlign)},l,r.createElement("div",{"data-dragg-area":c,className:b.title},r.createElement("div",{className:b.ellipsis},t),n&&r.createElement("div",{className:s()(b.ellipsis,b.subtitle)},n)),i,o&&!h&&r.createElement(f.Icon,{className:b.close,icon:y,onClick:a,"data-name":"close","data-role":"button"})))}var x=n(67179);const C={vertical:20},k={vertical:0};class E extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,i.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){ -const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:a,dataName:l,onClickOutside:i,additionalElementPos:m,additionalHeaderElement:v,backdrop:f,shouldForceFocus:g=!0,showSeparator:y,subtitle:b,draggable:E=!0,fullScreen:w=!1,showCloseIcon:I=!0,rounded:N=!0,isAnimationEnabled:H,growPoint:_,dialogTooltip:D,unsetHeaderAlign:T,onDragStart:M,dataDialogName:L}=this.props,A="after"!==m?v:void 0,F="after"===m?v:void 0,O="string"==typeof a?a:L||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||w)&&N,className:s()(x.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:i,onClickBackdrop:i,fullscreen:d||w,guard:m?k:C,boundByScreen:d||w,shouldForceFocus:g,backdrop:f,draggable:E,isAnimationEnabled:H,growPoint:_,name:this.props.dataName,dialogTooltip:D,onDragStart:M},r.createElement("div",{className:s()(x.wrapper,t),"data-name":l,"data-dialog-name":O},void 0!==a&&r.createElement(S,{draggable:E&&!(d||w),onClose:this._handleClose,renderAfter:F,renderBefore:A,subtitle:b,title:a,showCloseIcon:I,className:n,unsetAlign:T}),y&&r.createElement(u.Separator,{className:x.separator}),r.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,d||w))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>u});var r=n(59496),o=n(97754),a=n.n(o),s=n(28353),l=n(9745),i=n(5639),c=n(28712);function u(e){const{children:t,renderInput:n,onCancel:o,...u}=e;return r.createElement("div",{className:c.container},r.createElement("div",{className:a()(c.inputContainer,o&&c.withCancel)},n||r.createElement(d,{...u})),t,r.createElement(l.Icon,{className:c.icon,icon:i}),o&&r.createElement("div",{className:c.cancel,onClick:o},(0,s.t)("Cancel")))}function d(e){const{className:t,reference:n,value:o,onChange:s,onFocus:l,onBlur:i,onKeyDown:u,onSelect:d,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:a()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:o,onChange:s,onFocus:l,onBlur:i,onSelect:d,onKeyDown:u})}},5648:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogContentItem:()=>g});var r=n(59496),o=n(97754),a=n.n(o),s=n(88537),l=n(9745),i=(n(67337),n(24637)),c=n(19785),u=n(84524),d=n(24633),h=n(77975),p=n(45345),m=n(32563),v=n(88142),f=n(82132);function g(e){const{dangerousTitleHTML:t,title:n,dangerousDescriptionHTML:o,description:g,searchToken:y,exchangeName:b,marketType:S,onClick:x,isSelected:C,isEod:k=!1,isActive:E=!1,isOffset:w=!1,invalid:I=!1,isHighlighted:N=!1,hideExchange:H=!1,hideMarkedListFlag:_=!1,onExpandClick:D,isExpanded:T,hoverComponent:M,country:L,providerId:A,source:F,type:O,flag:R,itemRef:B,onMouseOut:P,onMouseOver:J,className:z,actions:V,reference:W,fullSymbolName:U,logoId:q,currencyLogoId:Z,baseCurrencyLogoId:G,shortName:j,hideLogo:K=!1}=e,{isSmallWidth:Q,isMobile:$}=(0,s.ensureNotNull)((0, -r.useContext)(u.SymbolSearchItemsDialogContext)),Y=Boolean(M),X=!I&&!H&&($||!Y),ee=(0,h.useWatchedValueReadonly)({watchedValue:p.watchedTheme})===d.StdTheme.Dark?f.dark:f.light,te=M;return r.createElement("div",{className:a()(f.itemRow,Q&&f.multiLine,N&&f.highlighted,N&&ee,C&&f.selected,E&&f.active,I&&f.invalid,!$&&m.mobiletouch&&Y&&f.hover,z),onClick:function(e,t){if(!e||t.defaultPrevented)return;t.preventDefault(),e(t)}.bind(null,x),"data-role":e["data-role"]||"list-item","data-active":E,"data-name":"symbol-search-dialog-content-item",onMouseOut:P,onMouseOver:J,ref:W},r.createElement("div",{ref:B,className:a()(f.itemInfoCell,f.cell,w&&f.offset)},r.createElement("div",{className:a()(f.actionHandleWrap,f.fixedWidth)},r.createElement(r.Fragment,null,!1,D&&r.createElement("div",{onClick:function(e){if(!D||e.defaultPrevented)return;e.preventDefault(),D(e)}},r.createElement(l.Icon,{className:a()(f.expandHandle,T&&f.expanded,C&&f.selected),icon:v})),!1)),r.createElement("div",{className:a()(f.description,!1)},n&&r.createElement("div",{className:a()(f.symbolTitle,E&&f.active,I&&f.invalid,!Boolean(o)&&f.noDescription),"data-name":"list-item-title"},"string"==typeof n&&y?r.createElement(i.HighlightedText,{className:f.highlightedText,text:n,queryString:y,rules:(0,c.createRegExpList)(y)}):n,k&&r.createElement("span",{className:f.dataMode},"E")),!n&&t&&r.createElement("div",{className:a()(f.symbolTitle,E&&f.active,I&&f.invalid),"data-name":"list-item-title"},r.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),k&&r.createElement("span",{className:f.dataMode},"E")),Q&&ne())),!Q&&r.createElement("div",{className:a()(f.cell,f.descriptionCell,Boolean(te)&&f.addition)},ne(),te?r.createElement(te,{...e,className:f.actions,onMouseOver:void 0,onMouseOut:void 0}):null),Q&&te?r.createElement(te,{...e,className:f.cell,onMouseOver:void 0,onMouseOut:void 0}):null,X&&r.createElement("div",{className:a()(f.exchangeCell,f.cell)},r.createElement("div",{className:a()(f.exchangeDescription)},r.createElement("div",{className:a()(f.marketType,E&&f.active)},S),"economic"===O&&F?r.createElement("div",{className:a()(f.exchangeName,E&&f.active,"apply-common-tooltip",f.narrow),title:F},F):r.createElement("div",{className:a()(f.exchangeName,E&&f.active)},b)),!1),r.createElement("div",{className:a()(f.cell,Boolean(V)&&f.actionsCell)},V));function ne(){if(I)return null;const e=a()(f.symbolDescription,E&&f.active,!m.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return g?r.createElement("div",{className:e},y?r.createElement(i.HighlightedText,{className:f.highlightedText,text:g,queryString:y,rules:(0,c.createRegExpList)(y)}):g):o?r.createElement("div",{className:e,dangerouslySetInnerHTML:{__html:o}}):null}}},58442:(e,t,n)=>{"use strict";n.d(t,{qualifyProName:()=>s,QualifiedSources:()=>r});var r,o=n(88537),a=n(67337);n(81319);function s(e){return e}!function(e){function t(e){return e.pro_name}function n(e){{const t=a.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.full_name;return(0,o.ensureDefined)(t)}} -e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:n,symbolname:r,status:o}=e;return"error"===o&&r?r:t(n)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:n,full_name:r}=null!=t?t:e;return a.enabled("pay_attention_to_ticker_not_symbol")?(0,o.ensureDefined)(null!=n?n:r):(0,o.ensureDefined)(r)}},e.fromSymbolInfo=n,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?n(t.params[1]):e}}(r||(r={}))},24389:(e,t,n)=>{"use strict";n.d(t,{QuoteSessionContext:()=>r});const r=n(59496).createContext(null)},20882:(e,t,n)=>{"use strict";function r(e){return""===e.value()}function o(e,t){return e.filter(e=>e.includes(t))}function a(e){const t=new Map;return e.forEach(e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}),t}function s(e,t){return t.map(t=>new e(t))}n.d(t,{isAllSearchSourcesSelected:()=>r,filterSearchSources:()=>o,splitSearchSourcesByGroup:()=>a,createSearchSources:()=>s})},1861:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>c});var r=n(59496),o=n(87995),a=n(50655),s=n(24389),l=n(51826),i=n(12045);function c(e){const{initialMode:t="symbolSearch",autofocus:n=!0,defaultValue:c,showSpreadActions:u,selectSearchOnInit:d,onSearchComplete:h,onSearchFeedReady:p,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,onClose:x,footer:C,symbolTypes:k,searchInput:E,emptyState:w,hideMarkedListFlag:I,dialogWidth:N="auto",manager:H}=e;if(l.dialogsOpenerManager.isOpened("SymbolSearch")||l.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const _=document.createElement("div"),D=r.createElement(a.SlotContext.Provider,{value:null!=H?H:null},r.createElement(s.QuoteSessionContext.Provider,{value:null},r.createElement(i.SymbolSearchItemsDialog,{onClose:T,initialMode:t,defaultValue:c,showSpreadActions:u,hideMarkedListFlag:I,onSearchFeedReady:p,selectSearchOnInit:d,onSearchComplete:h,dialogTitle:m,placeholder:v,fullscreen:f,initialScreen:g,wrapper:y,dialog:b,contentItem:S,footer:C,symbolTypes:k,searchInput:E,emptyState:w,autofocus:n,dialogWidth:N})));function T(){o.unmountComponentAtNode(_),l.dialogsOpenerManager.setAsClosed("SymbolSearch"),x&&x()}return o.render(D,_),l.dialogsOpenerManager.setAsOpened("SymbolSearch"),{close:T}}},70613:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogBodyContext:()=>r});const r=n(59496).createContext(null)},84524:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialogContext:()=>r});const r=n(59496).createContext(null)},12045:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchItemsDialog:()=>Pe});var r=n(59496),o=n(97754),a=n.n(o),s=n(28353),l=n(7785),i=n(15983),c=n(84877),u=n(67337),d=n(24437),h=n(85457),p=n(9745),m=n(84524),v=n(69654),f=n(20882),g=n(70516);function y(e){const{children:t,className:n}=e;return r.createElement("div",{className:a()(g.container,n)},r.createElement("div",{className:g.childrenWrapper},t))}var b=n(88537),S=n(78036),x=n(24637),C=n(19785),k=n(29601),E=n(42608);function w(e){ -const{searchSource:t,onClick:n,queryString:o}=e,{selectedSearchSource:s,isAllSearchSourcesSelected:l,isMobile:i}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),c=(0,b.ensureNotNull)(s).value(),u=l(t),d=t.value()===c,h=(0,r.useMemo)(()=>(0,C.createRegExpList)(o),[o]),v=t.description(),f=v&&!u,g=a()(E.container,i?E.mobile:E.desktop,d&&E.selected,u&&E.allSelected,u&&E.libAllSelected,!u&&i&&E.bordered);return r.createElement("div",{className:a()(!i&&E.wrap,u&&E.libAllSelected),onClick:n},r.createElement("div",{className:g},r.createElement("div",{className:E.iconWrap},!!u&&r.createElement(p.Icon,{className:a()(E.icon,E.allSelectedIcon),icon:k})),r.createElement("div",{className:E.textBlock},r.createElement("div",{className:a()(E.title,!f&&!i&&E.titleWithoutDesc)},r.createElement(x.HighlightedText,{className:a()(d&&E.highlighted),queryString:o,text:t.name(),rules:h})),f&&r.createElement("div",{className:a()(E.description,"apply-overflow-tooltip")},r.createElement(x.HighlightedText,{className:E.highlighted,queryString:o,rules:h,text:v})))))}var I=n(77975),N=n(45345),H=n(26843),_=n(70613),D=n(70029),T=n(72802),M=n(90819);const L={emptyTextClassName:M.emptyText};function A(e){const{searchSources:t}=e,{setSelectedSearchSource:n,setMode:o,isMobile:l,emptyState:i,autofocus:c}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),u=(0,I.useWatchedValueReadonly)({watchedValue:N.watchedTheme})===H.StdTheme.Dark?D:T,[d,h]=(0,r.useState)(""),g=(0,r.useMemo)(()=>[{group:null,sources:(0,f.filterSearchSources)(t,d)}],[t,d]),b=(0,r.useRef)(null),x=(0,r.useRef)(null);(0,r.useLayoutEffect)(()=>{var e;c&&(null===(e=null==b?void 0:b.current)||void 0===e||e.focus())},[]);const C=i?r.createElement(i,null):r.createElement(y,{className:M.noResultsDesktop},r.createElement(p.Icon,{icon:u}),r.createElement("div",{className:M.emptyText},(0,s.t)("No exchanges match your criteria"))),k=!(g.length&&g.every(e=>0===e.sources.length));return r.createElement(_.SymbolSearchDialogBodyContext.Provider,{value:L},r.createElement(v.DialogSearch,{placeholder:(0,s.t)("Search"),onChange:function(e){h(e.target.value),x&&x.current&&(x.current.scrollTop=0)},reference:b}),k?r.createElement("div",{ref:x,className:a()(M.contentList,!l&&M.contentListDesktop),onTouchStart:function(){var e;null===(e=b.current)||void 0===e||e.blur()}},g.map(e=>{const{group:t,sources:n}=e;return 0===n.length?r.createElement(r.Fragment,{key:t}):r.createElement(r.Fragment,{key:t},!1,r.createElement("div",{className:a()(M.searchSourceItemsContainer,!l&&M.searchSourceItemsContainerDesktop)},n.map(e=>r.createElement(w,{key:e.value(),searchSource:e,queryString:d,onClick:E.bind(null,e)}))))})):C);function E(e){n(e),o("symbolSearch")}}var F=n(87995),O=n(8128);n(76861),n(85198);function R(e){return e.hasOwnProperty("exchange")}async function B(e){return new Promise(t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",e=>{t(e)})})} -var P=n(81319),J=n(78136),z=n(51768),V=n(68335),W=n(4825),U=n(20832),q=n(21740),Z=n(38927),G=n(43088),j=n(56584),K=n(19586),Q=n(74246);function $(e){var t;const{state:n,update:o}=e,{searchRef:a,forceUpdate:s,upperCaseEnabled:c}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),d=(0,l.tokenize)(null===(t=a.current)||void 0===t?void 0:t.value),h=(0,i.validate)(d);let p=[{icon:U,insert:"/",type:"binaryOp",name:"division"},{icon:q,insert:"-",type:"binaryOp",name:"subtraction"},{icon:Z,insert:"+",type:"binaryOp",name:"addition"},{icon:G,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(p=p.concat([{icon:j,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(p=p.concat([{icon:K,type:"complete",name:"1/x",callback:()=>{!a.current||h.errors.length||h.warnings.length||(a.current.value=(0,i.stringifyTokens)((0,i.flip)(d)),s())}}])),r.createElement("div",{className:Q.actions},p.map(e=>r.createElement(W.ToolWidgetButton,{className:Q.actionButton,icon:e.icon,key:e.name,isDisabled:Y(e,h),onClick:()=>function(e){var t;if(!Y(e,h)){if(e.insert&&a.current){const t=a.current.value+e.insert;a.current.value=t,a.current.setSelectionRange(t.length,t.length);const[r,,l]=(0,i.getCurrentTokenParamsFromInput)(a.current,c);n.current&&(n.current.selectedIndexValue=-1,n.current.searchSpreadsValue=(0,i.isSpread)(l),n.current.searchTokenValue=r),s(),o()}e.callback&&e.callback(),null===(t=a.current)||void 0===t||t.focus(),(0,z.trackEvent)("GUI","SS",e.name)}}(e)})))}function Y(e,t){let n=!1;if(!t.errors.length)switch(e.type){case"binaryOp":n="var"===t.currentState;break;case"openBrace":n="var"!==t.currentState;break;case"closeBrace":n="var"===t.currentState&&t.braceBalance>0;break;case"complete":n=!t.errors.length&&!t.warnings.length}return!n}var X=n(90186),ee=n(74765);function te(e){const{title:t,isActive:n,isAnimated:r,activeColor:o,size:s="m",appearance:l="default",fontSize:i="m",className:c}=e;return a()(ee.bubble,n&&ee.active,o&&ee[o],t&&"apply-common-tooltip",s&&ee["size-"+s],i&&ee["fontSize-"+i],l&&ee["appearance-"+l],r&&ee.animated,c)}function ne(e){const{id:t,title:n,tabIndex:o,role:s,contentClassName:l,children:i,onClick:c,onMouseDown:u,reference:d,...h}=e;return r.createElement("span",{...(0,X.filterAriaProps)(h),...(0,X.filterDataProps)(h),id:t,title:n,tabIndex:o,role:s,className:te(e),onClick:c,onMouseDown:u,ref:d},r.createElement("span",{className:a()(ee.content,l)},i))}var re=n(99167);function oe(e){const{className:t,itemClassName:n,itemContentClassName:a,items:s,getItemTitle:l,getItemTooltip:i,getItemKey:c,checkItemIsActive:u,getItemColor:d,onBubbleClick:h,multiline:p,children:m,BubbleComponent:v=ne,reference:f,fontSize:g}=e;return r.createElement("div",{className:o(t,re.bubbles,p&&re.multiLine),ref:f},s.map((e,t)=>r.createElement(v,{key:c?c(e):t,id:c?c(e):t.toString(),className:o(re.bubble,n),contentClassName:a,onClick:function(){h(e)},onMouseDown:function(e){e.preventDefault()},isActive:!!u&&u(e), -activeColor:d?d(e):void 0,fontSize:g,title:i?i(e):void 0},l(e))),m)}var ae=n(61074),se=n(83199),le=n(9837),ie=n.n(le),ce=n(10381),ue=n(53474);function de(e){const{mode:t,setMode:n,searchRef:o,cachedInputValue:l,selectedSearchSource:i,isAllSearchSourcesSelected:c,upperCaseEnabled:u}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),d=(0,b.ensureNotNull)(i),h="symbolSearch"===t,v=c(d);return h?r.createElement("div",{className:a()(ue.flagWrap,"apply-common-tooltip"),title:(0,s.t)("Select source"),onClick:function(){o.current&&(l.current=u?o.current.value.toUpperCase():o.current.value);n("exchange")}},!!v&&r.createElement(p.Icon,{className:ue.icon,icon:k}),r.createElement("div",{className:ue.title},d.name()),r.createElement(ce.ToolWidgetCaret,{className:ue.caret,dropped:!1})):null}var he=n(77338);function pe(e){const{isSmallWidth:t,selectedSearchSource:n,searchSources:o}=(0,b.ensureNotNull)((0,r.useContext)(m.SymbolSearchItemsDialogContext)),l=n&&o.length>1&&!(0,P.exchangeSelectDisabled)();return r.createElement("div",{className:a()(he.wrap,t&&he.small)},r.createElement("div",{className:he.item},r.createElement("div",{className:he.text},t?(0,s.t)("Symbol & description"):(0,s.t)("Symbol"))),r.createElement("div",{className:he.item},!t&&r.createElement("div",{className:he.text},(0,s.t)("Description")),l&&r.createElement("div",{className:he.exchange},r.createElement(de,null))))}var me=n(62820),ve=n(74915);function fe(e){const{onTouchMove:t,listRef:n,className:o,listWrapRef:s,virtualListKey:l,items:i,getItemSize:c,hideFeed:u}=e,{mode:d,isSmallWidth:h,handleListWidth:p}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),[v,f]=(0,r.useState)(null),g=(0,r.useCallback)(e=>{const{index:t,style:n}=e;return r.createElement("div",{style:n},i[t])},[i]),y=(0,r.useCallback)(e=>(0,b.ensure)(i[e].key),[i]),x="watchlist"===d&&null!==v;return r.createElement(ie(),{onMeasure:function(e){f(e.height),p(e.width)}},r.createElement("div",{ref:s,className:a()(ve.wrap,x&&ve.watchlist,u&&ve.noFeed,o),onTouchMove:t},r.createElement("div",{className:a()(ve.scrollContainer,u&&ve.noFeed)},x?r.createElement(se.VariableSizeList,{key:l,ref:n,className:ve.listContainer,width:"100%",height:(0,b.ensureNotNull)(v),itemCount:i.length,itemSize:c,children:g,itemKey:y,overscanCount:20,direction:(0,me.isRtl)()?"rtl":"ltr"}):r.createElement("div",{className:a()(ve.listContainer,h&&ve.multiLineItemsContainer)},r.createElement(pe,null),...i))))}var ge=n(5648),ye=n(92540);const be=u.enabled("hide_image_invalid_symbol");function Se(e){const{token:t,state:n,otherSymbolsCount:o,onChangeSymbolTypeFilter:a,onResetFilters:s,onListTouchMove:l,brokerTitle:i,isBrokerChecked:c,onBrokerCheckboxChange:u,listRef:d,listWrapRef:h}=e,{mode:p,isMobile:v,selectedSymbolType:f,symbolTypes:g,feedItems:y,contentItem:b,emptyState:x=xe}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),C=i&&r.createElement(BrokerCheckbox,{brokerTitle:i,checked:c,onCheckboxChange:u}),k="symbolSearch"===p&&"good"===n,E=null!=b?b:ge.SymbolSearchDialogContentItem,w=(0, -r.useMemo)(()=>y.map(e=>r.createElement(E,{...e,searchToken:t})),[y]);return r.createElement(r.Fragment,null,"symbolSearch"===p&&r.createElement(r.Fragment,null,g.length>0&&r.createElement(oe,{itemClassName:ye.symbolType,items:g,getItemTitle:e=>e.name,getItemKey:e=>e.value,checkItemIsActive:e=>e.value===f,onBubbleClick:a,multiline:!v},!v&&C),v&&g.length>0&&i&&r.createElement("div",{className:ye.brokerCheckboxWrap},C)),r.createElement(fe,{listRef:d,listWrapRef:h,onTouchMove:l,items:w,getItemSize:()=>ke,hideFeed:!k}),"loading"===n&&r.createElement("div",{className:ye.spinnerWrap},r.createElement(ae.Spinner,null)),"symbolSearch"===p&&r.createElement(r.Fragment,null,!1,"empty"===n&&r.createElement(x,null)))}function xe(e){const t=(0,I.useWatchedValueReadonly)({watchedValue:N.watchedTheme})===H.StdTheme.Dark?D:T;return r.createElement(y,{className:ye.noResultsDesktop},!be&&r.createElement(p.Icon,{icon:t}),r.createElement("div",{className:ye.emptyText},(0,s.t)("No symbols match your criteria")))}const Ce=(0,P.getDefaultSearchSource)(),ke=52;function Ee(e){const{mode:t,setMode:n,setSelectedIndex:o,isMobile:l,selectedSearchSource:c,setSelectedSearchSource:d,isAllSearchSourcesSelected:h,selectedSymbolType:p,setSelectedSymbolType:f,setRenderSymbolSearchList:g,searchRef:y,cachedInputValue:b,setSearchSpreads:x,showSpreadActions:C,selectedItem:k,onSearchFeedReady:E,forceUpdate:w,placeholder:I,initialScreen:N,footer:H,searchInput:D,upperCaseEnabled:T,externalInput:M,handleKeyDown:L,customSearchSymbols:A}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext),W=(0,r.useRef)(t);W.current=t;const U=(0,r.useRef)(new AbortController),[q,Z]=(0,r.useState)(0),[G,j]=(0,r.useState)("noop"),K=(0,r.useRef)(0),[Q,Y]=(0,r.useState)(b.current),X=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ne=(0,r.useRef)(null),re=(0,r.useRef)(null),{broker:oe=null,brokerId:ae,brokerTitle:se,isBrokerChecked:le=!1,setIsBrokerChecked:ie=(()=>{}),unhideSymbolSearchGroups:ce=""}={brokerId:void 0,brokerTitle:void 0};(0,r.useEffect)(()=>()=>{U.current.abort(),Ie()},[]),(0,r.useEffect)(()=>{(null==y?void 0:y.current)&&Y(y.current.value)},[]),(0,r.useEffect)(()=>{const e=y.current;if(e)return e.addEventListener("input",ge),e.addEventListener("focus",Ee),e.addEventListener("select",fe),e.addEventListener("click",fe),e.addEventListener("keyup",we),M&&L&&e.addEventListener("keydown",L),()=>{e&&(e.removeEventListener("input",ge),e.removeEventListener("focus",Ee),e.removeEventListener("select",fe),e.removeEventListener("click",fe),e.removeEventListener("keyup",we),M&&L&&e.removeEventListener("keydown",L))}},[L]),(0,r.useEffect)(()=>{Boolean(N)&&""===Q.trim()||(xe(Q,p,c),X.current&&(X.current.scrollTop=0))},[Q,p,c,le,N]),(0,r.useEffect)(()=>{if(!k||!y.current)return;if(!u.enabled("show_spread_operators"))return y.current.value=k.symbol,void w();const e=R(k)?k.exchange:k.parent.exchange,t={name:k.symbol,exchange:e,prefix:k.prefix,fullName:k.full_name},[n,r]=(0, -i.getNextSymbolInputValueAndPosition)(y.current,t,T);y.current.value=n,y.current.setSelectionRange(r,r),w()},[k]);const ue=(0,r.useCallback)(e=>E?E(e):e,[E]),de=null!=N?N:"div",he=Boolean(N)&&"symbolSearch"!==t,pe=null!=D?D:v.DialogSearch,me=(0,r.useMemo)(()=>({listRef:ee,resetRecommends:ke,updateRecommends:xe,searchToken:Q,emptyTextClassName:ye.emptyText,isBrokerChecked:le,symbolSearchState:G,currentMode:W}),[ee,Q,le,G,W]);return r.createElement(_.SymbolSearchDialogBodyContext.Provider,{value:me},!(M&&"symbolSearch"===t)&&r.createElement(pe,{reference:y,className:a()(ye.search,T&&ye.upperCase),placeholder:I||(0,s.t)("Search")},C&&r.createElement($,{state:te,update:be})),he?r.createElement(de,null):r.createElement(Se,{token:Q,state:G,otherSymbolsCount:q,onListTouchMove:function(){var e;null===(e=y.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{value:t}=e;f(t),o(-1)},onResetFilters:function(){var e;f((0,P.getAllSymbolTypesValue)()),Ce&&d(Ce);ie(!1),l||null===(e=y.current)||void 0===e||e.focus()},brokerTitle:se,isBrokerChecked:le,onBrokerCheckboxChange:function(e){ie("on"!==e)},listRef:ee,listWrapRef:X}),H);function ve(){if(!y.current)return;const[e,t,n]=(0,i.getCurrentTokenParamsFromInput)(y.current,T);K.current=t,te.current={selectedIndexValue:-1,searchSpreadsValue:(0,i.isSpread)(n),searchTokenValue:e},ne.current||(ne.current=setTimeout(be,0))}function fe(){if(!y.current)return;const[,e]=(0,i.getCurrentTokenParamsFromInput)(y.current,T);e!==K.current&&ve()}function ge(){u.enabled("show_spread_operators")?ve():y.current&&(te.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:y.current.value},ne.current||(ne.current=setTimeout(be,0)))}function be(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:n}=te.current;ne.current=null,(0,F.unstable_batchedUpdates)(()=>{x(n),o(e),Y(T?t.toUpperCase():t)})}async function xe(e,t,n){try{"noop"===G?j("loading"):(Ie(),re.current=setTimeout(()=>{j("loading")},500)),Ne();const r=await async function(e,t,n,r){var o,a,s,l;const d=u.enabled("show_spread_operators")?(0,i.shortName)(t):null===(o=y.current)||void 0===o?void 0:o.value;let h;if(le&&oe){const t=await(0,O.respectAbort)(e,oe.accountMetainfo());h=t.prefix}const p=u.enabled("show_spread_operators")?null!==(s=null!==(a=(0,i.getExchange)(t))&&void 0!==a?a:h)&&void 0!==s?s:null==r?void 0:r.getRequestExchangeValue():null==c?void 0:c.getRequestExchangeValue(),m=(0,i.getExchange)(t)||null===(l=r||c)||void 0===l?void 0:l.getRequestCountryValue(),v={serverHighlight:!1,text:d,exchange:p,country:m,type:n,lang:window.language||"",brokerId:ae,onlyTradable:Boolean(ae)&&le,unhideSymbolSearchGroups:ce,signal:e},f=(0,J.getSearchRequestDelay)();void 0!==f&&await(0,O.delay)(e,f);return A?A(v):B(v)}(U.current.signal,e,t,n),o=ue(function(e,t=window.ChartApiInstance.symbolsGrouping()){var n;const r={},o=[];for(let a=0;a{const{defaultSearchSource:t,searchSources:n}=e,r=De.getValue("symboledit.exchangefilter","");return n.find(e=>e.value()===r)||t});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.exchangefilter",t.value())},[])]}function Me(e){const[t,n]=(0,r.useState)(()=>{if(1===e.types.length)return e.types[0].value;const t=De.getValue("symboledit.filter",(0,P.getAllSymbolTypesValue)());return e.types.find(e=>e.value===t)?t:(0,P.getAllSymbolTypesValue)()});return[t,(0,r.useCallback)(e=>{var t;n(e),t=e,De.setValue("symboledit.filter",t)},[])]}var Le=n(36947),Ae=n(82708),Fe=n(6215);const Oe=(0,P.getAvailableSearchSources)(),Re=(0,P.getDefaultSearchSource)(),Be=u.enabled("uppercase_instrument_names");function Pe(e){var t;const{onClose:n,initialMode:o,defaultValue:a="",showSpreadActions:h,hideMarkedListFlag:p,selectSearchOnInit:v=!0,onSearchComplete:g,onSearchFeedReady:y,dialogTitle:b=(0,s.t)("Symbol Search"),placeholder:S,fullscreen:x,initialScreen:C,wrapper:k,dialog:E,contentItem:w,footer:I,searchInput:N,emptyState:H,autofocus:_,dialogWidth:D,onKeyDown:T,searchSourcesScreen:M,customSearchSymbols:L,isDisableFiltering:F}=e,O=(0,r.useMemo)(()=>F?[]:e.symbolTypes?e.symbolTypes:(0,P.getAvailableSymbolTypes)(),[]),J=void 0!==e.input,z=F?[]:Oe,[W,U]=(0,r.useState)(o),q=(0,r.useRef)(a),[Z,G]=Te({searchSources:z,defaultSearchSource:Re}),[j,K]=Me({types:O}),[Q,$]=(0,r.useState)([]),[Y,X]=(0,r.useState)(!1),[ee,te]=(0,r.useState)(-1),ne=(0,r.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[re,oe]=(0,r.useState)(!1),ae=(0,Le.useForceUpdate)(),[se,le]=(0,r.useState)(new Set),{broker:ie=null,brokerId:ce,unhideSymbolSearchGroups:ue="",displayBrokerSymbol:de=!1}={brokerId:void 0};(0,r.useLayoutEffect)(()=>{var e;!(null==ne?void 0:ne.current)||!J&&Boolean(null===(e=ne.current)||void 0===e?void 0:e.value)||(J||"compare"===W||(ne.current.value=q.current),!_||J&&"symbolSearch"!==W||ne.current.focus())},[W]),(0,r.useEffect)(()=>{(null==ne?void 0:ne.current)&&v&&_&&ne.current.select()},[]);const he=(0, -r.useMemo)(()=>Q.reduce((e,t)=>{const n=Ve(t),r=se.has(n);return e.push(t),r&&t.contracts&&e.push(...t.contracts.map(e=>({...e,parent:t}))),e},[]),[Q,se]),pe=(0,r.useRef)(null);(0,r.useEffect)(()=>{var e;-1!==ee&&(null===(e=pe.current)||void 0===e||e.scrollIntoView({block:"nearest"}))},[ee,pe]);const me=(0,r.useMemo)(()=>he.map((e,t)=>{var n,r,o,a;if(R(e)){const o=Ve(e),a=e.contracts?se.has(o):void 0,s=t===ee;return{key:t,id:o,title:ze(e,de),description:e.description,isOffset:!1,onClick:xe.bind(null,e),providerId:e.provider_id,source:e.source,country:null===(n=e.country)||void 0===n?void 0:n.toLocaleLowerCase(),type:e.type,exchangeName:e.exchange,marketType:(0,He.marketType)(e.type,e.typespecs),isEod:null===(r=e.params)||void 0===r?void 0:r.includes("eod"),isExpanded:a,onExpandClick:e.contracts?Ce.bind(null,o):void 0,fullSymbolName:P.isOpenFirstContractEnabled&&e.contracts?_e.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):_e.QualifiedSources.fromSymbolSearchResult(e),itemRef:s?pe:void 0,isSelected:t===ee,hideMarkedListFlag:p,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ae.safeShortName)(_e.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code}}{const{parent:n}=e,r=Ve(n),s=t===ee;return{key:t,id:r+e.symbol,dangerousTitleHTML:ze(e,de),dangerousDescriptionHTML:`${n.description} (${e.description})`,isOffset:!0,isEod:null===(o=e.params)||void 0===o?void 0:o.includes("eod"),onClick:ke.bind(null,e.parent,e),providerId:n.provider_id,country:null===(a=n.country)||void 0===a?void 0:a.toLowerCase(),type:n.type,exchangeName:n.exchange,marketType:(0,He.marketType)(n.type,e.typespecs),fullSymbolName:_e.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:s?pe:void 0,isSelected:s,hideMarkedListFlag:p,item:e}}}),[Q,se,W,ee,T]),ve=null!=E?E:Ue,fe=ve!==Ue&&!J,ge=(e,t)=>({mode:W,setMode:U,selectedSearchSource:Z,setSelectedSearchSource:G,isAllSearchSourcesSelected:f.isAllSearchSourcesSelected,selectedSymbolType:j,setSelectedSymbolType:K,selectedIndex:ee,setSelectedIndex:te,onClose:n,setRenderSymbolSearchList:$,searchRef:ne,cachedInputValue:q,searchSpreads:Y,setSearchSpreads:X,handleListWidth:we,isSmallWidth:re,feedItems:me,isMobile:e,showSpreadActions:h,selectSearchOnInit:v,isTablet:t,selectedItem:he[ee],onSearchFeedReady:y,forceUpdate:ae,placeholder:S,initialScreen:C,toggleExpand:Ce,openedItems:se,onSubmit:Fe,onSearchComplete:g,footer:I,symbolTypes:O,contentItem:w,searchInput:N,emptyState:H,autofocus:_,upperCaseEnabled:Be,externalInput:J,handleKeyDown:fe?void 0:De,customSearchSymbols:L,searchSources:z}),ye=null!=M?M:A,be="exchange"===W?{title:(0,s.t)("Sources"),dataName:"exchanges-search",render:()=>r.createElement(ye,{searchSources:z}),additionalHeaderElement:r.createElement(Ne,null),additionalElementPos:"before"}:{title:b,dataName:"symbol-search-items-dialog",render:()=>r.createElement(Ee,null),additionalElementPos:"after"},Se=null!=k?k:"div";return r.createElement(Se,null,r.createElement(c.MatchMediaMap,{ -rules:d.DialogBreakpoints},({TabletSmall:e,TabletNormal:t})=>r.createElement(m.SymbolSearchItemsDialogContext.Provider,{value:ge(e,t)},r.createElement(ve,{...be,fullScreen:x,onClose:n,onClickOutside:n,onKeyDown:fe?void 0:De,isOpened:!0}))));function xe(e){if(e.contracts)return P.isOpenFirstContractEnabled&&e.contracts.length?void ke(e,e.contracts[0]):void Ce(Ve(e));ke(e)}function Ce(e){const t=new Set(se);t.has(e)?t.delete(e):t.add(e),le(t)}function ke(e,t){const r=t||e,{exchange:o}=e;if(u.enabled("show_spread_operators")){const e={name:r.symbol,exchange:o,prefix:r.prefix,fullName:r.full_name};if(Y)return Ie(e),void ae();if(ne.current&&ne.current.value.includes(","))return void Ie(e)}const a=[{resolved:!0,symbol:_e.QualifiedSources.fromSymbolSearchResult(e,t),result:r}];g(a),n()}function we(e){oe("fixed"===D||e<=640)}function Ie(e){if(!ne.current)return;const[t,n]=(0,i.getNextSymbolInputValueAndPosition)(ne.current,e,Be);ne.current.value=t,ne.current.setSelectionRange(n,n),ne.current.focus()}function De(e){switch((0,V.hashFromEvent)(e)){case 38:if(e.preventDefault(),0===ee)return;if(-1===ee)return void te(0);te(ee-1);break;case 40:if(e.preventDefault(),ee===me.length-1)return;te(ee+1);break;case 37:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||!se.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(T)||(e.preventDefault(),Ce(n)),o)return void(null==T||T(e,!0));break}case 39:{if(-1===ee)return;const t=me[ee],{id:n,isOffset:r,onExpandClick:o}=t;if(r||!n||se.has(n)||!Boolean(o)||P.isOpenFirstContractEnabled&&Boolean(T)||(e.preventDefault(),Ce(n)),o)return void(null==T||T(e,!0));break}case 13:e.preventDefault(),Fe(!0);break;case 27:e.preventDefault(),n()}null==T||T(e)}function Fe(e){if(!ne.current)return;const t=ne.current.value;if(u.enabled("show_spread_operators")&&Y&&t){if(t.includes(",")){const r=We(t);if(r.some(e=>!Pe(e)))return;return g(r.map(Je)),void(e&&n())}if(!Pe(t))return;return g([{symbol:Be?t.toUpperCase():t,resolved:!1}]),void(e&&n())}if(t.includes(","))return g(We(t).map(Je)),void(e&&n());if(-1!==ee){me[ee].onClick()}else{const r=Be?t.toUpperCase():t;if(r&&""!==r.trim()){const e=We(r);if(void 0!==ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map(e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==ie?void 0:ie.accountMetainfo()))||void 0===t||t.prefix;const n=await B({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:ce,onlyTradable:!0,unhideSymbolSearchGroups:ue,exchange:void 0});if(0!==n.length){const e=n[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,o=e.prefix||e.exchange,a=r?r.symbol:e.symbol;if(o&&a)return{symbol:_e.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e))))})(e).then(e=>g(e));else{const t=e.map(Je);g(t)}}e&&n()}}function Pe(e){const t=(0,l.tokenize)(e),n=(0,i.validate)(t);if(n.errors.length||n.warnings.length)return!1;const r=me[ee];return!r||void 0===r.isExpanded||(r.onClick(),!1)}} -function Je(e){return{symbol:Be?e.toUpperCase():e,resolved:!1}}function ze(e,t){const{broker_symbol:n,symbol:r}=e;return`${r}${t&&n?` (${n})`:""}`}function Ve(e){return e.symbol+e.exchange+e.description}function We(e){return e.split(",").map(e=>e.trim()).filter(e=>""!==e)}function Ue(e){const{isMobile:t,isTablet:n}=(0,S.useEnsuredContext)(m.SymbolSearchItemsDialogContext);return r.createElement(h.AdaptivePopupDialog,{...e,className:a()(Fe.dialog,!t&&(n?Fe.tabletDialog:Fe.desktopDialog)),backdrop:!0,draggable:!1})}},15983:(e,t,n)=>{"use strict";n.d(t,{validate:()=>s,flip:()=>l,stringifyTokens:()=>i,isSpread:()=>u,shortName:()=>h,getExchange:()=>p,getNextSymbolInputValueAndPosition:()=>v,getCurrentTokenParamsFromInput:()=>f});var r=n(67337),o=n(7785),a=n(81319);function s(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(r.enabled("charting_library_base")&&!r.enabled("show_spread_operators"))return t;let n="init";const o=[];for(let r=0;r"symbol"===t.type&&o.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value,"")}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some(e=>c(e.type))}function d(e){e=function(e){ -const t=[];for(const n of e)"whitespace"!==n.type&&t.push(n);return t}(e);const t=[],n=[];let r;for(let o=0;oa.precedence&&(n[n.length-1].minPrecedence=a.precedence);break;case"openBrace":r={minPrecedence:1/0,openBraceIndex:o},n.push(r);break;case"closeBrace":{if(r=n.pop(),!r)break;const a=e[r.openBraceIndex-1],s=e[o+1],l=a&&("plus"===a.type||"multiply"===a.type);(!c(null==s?void 0:s.type)||(null==s?void 0:s.precedence)<=r.minPrecedence)&&(!c(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<(null==r?void 0:r.minPrecedence)||(null==a?void 0:a.precedence)===(null==r?void 0:r.minPrecedence)&&l)&&(t.unshift(r.openBraceIndex),t.push(o),n.length&&n[n.length-1].minPrecedence>r.minPrecedence&&(n[n.length-1].minPrecedence=r.minPrecedence))}}}for(let n=t.length;n--;)e.splice(t[n],1);return e}function h(e){return d((0,o.tokenize)(e)).reduce((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,n]=m(t);return n?e+n:e},"")}function p(e){const t=function(e){const t=(0,o.tokenize)(e),n=[];return t.forEach(e=>{if("symbol"!==e.type)return;const[t]=m(e);t&&n.push(t)}),n}(e);if(1===t.length)return t[0]}function m(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}function v(e,t,n){const r=e.value,[s,l]=f(e,n),i=(0,a.getSymbolFullName)(t),c=o.symbolTokenEscapeRe.test(i)?`'${i}'`:i;return[r.substring(0,l)+c+r.substring(l+s.length),l+c.length]}function f(e,t){const{value:n,selectionStart:r}=e,a=(0,o.tokenize)(t?n.toUpperCase():n),s=function(e,t){for(let n=0;n{"use strict";n.d(t,{exchangeSelectDisabled:()=>p,getAllSymbolTypesValue:()=>h,getAvailableExchanges:()=>c,getAvailableSearchSources:()=>i,getAvailableSymbolTypes:()=>d,getDefaultSearchSource:()=>l,getSymbolFullName:()=>s,isOpenFirstContractEnabled:()=>m});var r=n(28353),o=n(20882);class a{constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,o.isAllSearchSourcesSelected)(this)?(0,r.t)("All sources"):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const n=t.toLowerCase(),{name:r,desc:o,searchTerms:a}=e;return r.toLowerCase().includes(n)||o.toLowerCase().includes(n)||void 0!==a&&a.some(e=>e.toLowerCase().includes(n))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}function s(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function l(){const e=i();return e.find(o.isAllSearchSourcesSelected)||e[0]||null} -function i(){return(0,o.createSearchSources)(a,u())}function c(){return u()}function u(){return window.ChartApiInstance.supportedExchangesList().map(e=>({...e,country:"",providerId:"",flag:""}))}function d(){return window.ChartApiInstance.supportedSymbolsTypes()}function h(){return""}function p(){return!1}const m=!1},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},82708:(e,t,n)=>{"use strict";n.d(t,{safeShortName:()=>o});var r=n(82029);function o(e){try{return(0,r.shortName)(e)}catch(t){return e}}},7785:(e,t,n)=>{"use strict";n.d(t,{symbolTokenEscapeRe:()=>a,tokenize:()=>i});var r=n(67337);const o=r.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,a=/[+\-/*]/,s={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:o,incompleteSymbol:/'[^']*/,separatorPrefix:"###",openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},l=new RegExp(Object.values(s).map(e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t}).filter(e=>""!==e).concat(".").join("|"),"g");function i(e){if(!e)return[];const t=[],n=Object.keys(s);let r;for(;r=l.exec(e);){let e=!1;for(let o=n.length;o--;)if(r[o+1]){n[o]&&t.push({value:r[o+1],type:n[o],precedence:0,offset:r.index}),e=!0;break}e||t.push({value:r[0],type:"unparsed",precedence:0,offset:r.index})}return t}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>o,createRegExpList:()=>a,getHighlightedChars:()=>s});var r=n(80643);function o(e){const{data:t,rules:n,queryString:o,isPreventedFromFiltering:a,primaryKey:s,secondaryKey:l=s,optionalPrimaryKey:i}=e;return t.map(e=>{const t=i&&e[i]?e[i]:e[s],a=e[l];let c,u=0;return n.forEach(e=>{var n,s,l,i;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===o.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,r.isString)(t)&&h.test(t)?(u=2,void(c=null===(s=t.match(h))||void 0===s?void 0:s.index)):(0,r.isString)(a)&&h.test(a)?(u=1,void(c=null===(l=a.match(h))||void 0===l?void 0:l.index)):void((0,r.isString)(a)&&d.test(a)&&(u=1,c=null===(i=a.match(d))||void 0===i?void 0:i.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>a||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)} -function a(e,t){const n=[],r=e.toLowerCase(),o=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+l(e):l(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${l(e)})`,"i"),re:new RegExp("^"+o,"i"),reserveRe:new RegExp(o,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function s(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:o,reserveRe:a}=e;n.lastIndex=0,o.lastIndex=0;const s=n.exec(t),l=s||o.exec(t)||a&&a.exec(t);if(e.fuzzyHighlight=!s,l)if(e.fuzzyHighlight){let e=l.index;for(let t=1;t{"use strict";n.d(t,{HighlightedText:()=>l});var r=n(59496),o=n(97754),a=n(19785),s=n(81524);function l(e){const{queryString:t,rules:n,text:l,className:i}=e,c=(0,r.useMemo)(()=>(0,a.getHighlightedChars)(t,l,n),[t,n,l]);return r.createElement(r.Fragment,null,c.length?l.split("").map((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:o(s.highlighted,i)},e):r.createElement("span",null,e))):l)}},78036:(e,t,n)=>{"use strict";n.d(t,{useEnsuredContext:()=>a});var r=n(59496),o=n(88537);function a(e){return(0,o.ensureNotNull)((0,r.useContext)(e))}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>o});var r=n(59496);const o=()=>{const[,e]=(0,r.useReducer)((e,t)=>e+1,0);return e}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>o});var r=n(59496);const o=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,o="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[a,s]=(0,r.useState)(n?n.value():o);return(t?r.useLayoutEffect:r.useEffect)(()=>{if(n){s(n.value());const e=e=>s(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),a}},84877:(e,t,n)=>{"use strict";n.d(t,{MatchMediaMap:()=>s});var r=n(59496),o=n(66783),a=n.n(o);class s extends r.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=i(this.state.queries,(e,t)=>t.matches);let t=!1;for(const n in e)if(e.hasOwnProperty(n)&&this.state.matches[n]!==e[n]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=l(t)}shouldComponentUpdate(e,t){return!a()(e,this.props)||(!a()(t.rules,this.state.rules)||!a()(t.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(e,t){a()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(a()(e.rules,t.rules))return null;const{rules:n}=e;return l(n)}_migrate(e,t){null!==e&&i(e,(e,t)=>{t.removeListener(this._handleMediaChange)}),null!==t&&i(t,(e,t)=>{t.addListener(this._handleMediaChange)})}}function l(e){const t=i(e,(e,t)=>window.matchMedia(t));return{queries:t,matches:i(t,(e,t)=>t.matches), -rules:{...e}}}function i(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(r,e[r]));return n}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var r=n(59496),o=n(97754),a=n(91626);function s(e){return r.createElement("div",{className:o(a.separator,e.className)})}},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>s});var r=n(59496),o=n(97754),a=n(33134);n(24780);function s(e){const t=o(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+a.spinnerSizeMap[e.size||a.DEFAULT_SIZE]);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>i});var r=n(59496),o=n(97754),a=n(9745),s=n(40367),l=n(81268);function i(e){const{dropped:t,className:n}=e;return r.createElement(a.Icon,{className:o(n,s.icon,{[s.dropped]:t}),icon:l})}},81268:e=>{e.exports=''},64360:e=>{e.exports=''},29601:e=>{e.exports=''},37257:e=>{e.exports=''},70029:e=>{e.exports=''},72802:e=>{ -e.exports=''},5639:e=>{e.exports=''},88142:e=>{e.exports=''},20832:e=>{e.exports=''},19586:e=>{e.exports=''},21740:e=>{e.exports=''},43088:e=>{e.exports=''},38927:e=>{e.exports=''},56584:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/2316.b0ed604f1b75887fab7d.css b/charting_library/bundles/2316.b0ed604f1b75887fab7d.css deleted file mode 100644 index 0eaa9159..00000000 --- a/charting_library/bundles/2316.b0ed604f1b75887fab7d.css +++ /dev/null @@ -1 +0,0 @@ -.content-ByXdMGQj{box-sizing:border-box;color:#131722;display:inline-grid;grid-template-columns:auto 1fr;max-width:550px;padding:16px 20px;width:100%}html.theme-dark .content-ByXdMGQj{color:#b2b5be}.cell-ByXdMGQj .inner-ByXdMGQj{align-items:center;display:flex;padding:8px 0}.cell-ByXdMGQj.first-ByXdMGQj{align-items:center;display:flex;min-width:0}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{word-wrap:break-word;cursor:default;display:block;min-width:0;padding-right:20px}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj:first-letter{text-transform:capitalize}.cell-ByXdMGQj.first-ByXdMGQj.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding-right:0}.cell-ByXdMGQj.fill-ByXdMGQj{grid-column:1/3}.cell-ByXdMGQj.top-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.topCenter-ByXdMGQj{align-items:flex-start;padding-top:8px}.cell-ByXdMGQj:only-child{max-width:340px}.cell-ByXdMGQj.offset-ByXdMGQj{padding-left:26px}.inlineRow-ByXdMGQj{display:flex}.inlineCell-ByXdMGQj{margin-right:8px}.grouped-ByXdMGQj .inner-ByXdMGQj,.inlineCell-ByXdMGQj .inner-ByXdMGQj{padding:4px 0}.separator-ByXdMGQj{background-color:#e0e3eb;height:1px;margin:8px -20px}html.theme-dark .separator-ByXdMGQj{background-color:#434651}.groupSeparator-ByXdMGQj{height:8px}.groupSeparator-ByXdMGQj.big-ByXdMGQj{height:14px}@media screen and (max-width:379px){.content-ByXdMGQj{grid-template-columns:1fr min-content}.cell-ByXdMGQj.first-ByXdMGQj .inner-ByXdMGQj{padding:8px 20px 8px 0}.cell-ByXdMGQj.adaptive-ByXdMGQj{align-items:flex-start}.cell-ByXdMGQj.adaptive-ByXdMGQj:not(.checkableTitle-ByXdMGQj):not(.inlineCell-ByXdMGQj){padding-top:8px}}.wrap-GsOqvniR{align-items:center;background-color:#f0f3fa;border-radius:4px;box-sizing:border-box;display:flex;height:34px;justify-content:space-between;max-width:180px;min-width:100px;padding:7px 8px 6px}html.theme-dark .wrap-GsOqvniR{background-color:#2a2e39}@media (any-hover:hover){.wrap-GsOqvniR:hover{background-color:#e0e3eb}html.theme-dark .wrap-GsOqvniR:hover{background-color:#434651}.wrap-GsOqvniR:hover .icon-GsOqvniR{color:#131722}html.theme-dark .wrap-GsOqvniR:hover .icon-GsOqvniR{color:#b2b5be}}.text-GsOqvniR{color:#131722;cursor:default;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .text-GsOqvniR{color:#b2b5be}.icon-GsOqvniR{align-self:flex-start;color:#787b86;height:18px;margin-left:8px}.disabled-GsOqvniR{pointer-events:none}.disabled-GsOqvniR .icon-GsOqvniR,.disabled-GsOqvniR .text-GsOqvniR{color:#b2b5be}html.theme-dark .disabled-GsOqvniR .icon-GsOqvniR,html.theme-dark .disabled-GsOqvniR .text-GsOqvniR{color:#50535e}.wrap-dHwHcgvB{align-items:center;display:flex;max-width:100%;overflow-wrap:break-word}.wrap-dHwHcgvB:before{content:"";flex:none;height:34px;width:0}.checkbox-24x04noU{min-width:0}.title-24x04noU{cursor:default;min-width:0}.hasTooltip-0t5K1wco{margin-right:9px}.uppercase-0t5K1wco{text-transform:uppercase}.innerLabel-MS9pjVpT{color:#d1d4dc;display:flex;flex:0 0 auto;font-size:16px;padding-left:5px}html.theme-dark .innerLabel-MS9pjVpT{color:#50535e}.controlWrapper-y2rn9wiU{box-sizing:border-box;height:100%;overflow:hidden;width:22px}.controlWrapper-y2rn9wiU.hidden-y2rn9wiU{opacity:0}.control-y2rn9wiU{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;color:#787b86;cursor:default;display:flex;flex:0 0 auto;height:50%;padding:0 6px;transition:color .35s ease,background-color .35s ease}.control-y2rn9wiU svg{fill:currentColor}@media (any-hover:hover){.control-y2rn9wiU:hover{background-color:#f0f3fa;color:#131722}html.theme-dark .control-y2rn9wiU:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-y2rn9wiU{transform:rotate(180deg)}.controlIcon-y2rn9wiU{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-y2rn9wiU svg{width:100%}.title-y2rn9wiU{color:#b2b5be;display:flex;flex-direction:column;font-size:12px;justify-content:center;margin-right:9px}html.theme-dark .title-y2rn9wiU{color:#50535e}.wrap-sYKPueSl{display:flex}.thicknessItem-sYKPueSl{align-items:center;background-color:initial;border:1px solid #d1d4dc;box-sizing:border-box;display:inline-flex;flex:1;height:32px;justify-content:center;padding:0 12px;position:relative}html.theme-dark .thicknessItem-sYKPueSl{background-color:initial;border-color:#50535e}@media (any-hover:hover){.thicknessItem-sYKPueSl:hover{background-color:#f0f3fa}html.theme-dark .thicknessItem-sYKPueSl:hover{background-color:#2a2e39}}.thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff;z-index:1}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl{background-color:#2962ff;border-color:#2962ff}@media (any-hover:hover){.thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}html.theme-dark .thicknessItem-sYKPueSl.checked-sYKPueSl:hover{background-color:#2962ff;border-color:#2962ff}}.thicknessItem-sYKPueSl+.thicknessItem-sYKPueSl{margin-left:-1px}.thicknessItem-sYKPueSl:first-child{border-bottom-left-radius:3px;border-top-left-radius:3px;margin-left:0}.thicknessItem-sYKPueSl:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}.radio-sYKPueSl{height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%}.bar-sYKPueSl{border:0 solid #131722;height:0;width:100%}html.theme-dark .bar-sYKPueSl{border:0 solid #b2b5be}.bar-sYKPueSl.checked-sYKPueSl,html.theme-dark .bar-sYKPueSl.checked-sYKPueSl{border-top-color:#fff}.thicknessContainer-ofeynovw{padding:0 12px}.thicknessTitle-ofeynovw{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-ofeynovw{color:#787b86}.colorPickerWrap-pz6IRAmC{align-items:center;border-color:#d1d4dc;border-radius:4px;border-style:solid;box-sizing:border-box;display:inline-flex;margin:0;position:relative}html.theme-dark .colorPickerWrap-pz6IRAmC{border-color:#50535e}@media (any-hover:hover){.colorPickerWrap-pz6IRAmC:hover{border-color:#a3a6af}html.theme-dark .colorPickerWrap-pz6IRAmC:hover{border-color:#6a6d78}}.colorPickerWrap-pz6IRAmC.focused-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.focused-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.readonly-pz6IRAmC{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#f0f3fa;border-color:#d1d4dc;color:#b2b5be}html.theme-dark .colorPickerWrap-pz6IRAmC.disabled-pz6IRAmC{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-pz6IRAmC.size-small-pz6IRAmC{height:24px}.colorPickerWrap-pz6IRAmC.size-medium-pz6IRAmC{height:34px}.colorPickerWrap-pz6IRAmC.size-large-pz6IRAmC{height:48px}.colorPickerWrap-pz6IRAmC.font-size-medium-pz6IRAmC,.colorPickerWrap-pz6IRAmC.font-size-small-pz6IRAmC{font-size:14px;line-height:20px}.colorPickerWrap-pz6IRAmC.font-size-large-pz6IRAmC{font-size:16px;line-height:24px}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC{border-width:0}.colorPickerWrap-pz6IRAmC.border-none-pz6IRAmC .shadow-pz6IRAmC{margin:0}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC{border-width:1px}.colorPickerWrap-pz6IRAmC.border-thin-pz6IRAmC .shadow-pz6IRAmC{margin:-1px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC{border-width:2px}.colorPickerWrap-pz6IRAmC.border-thick-pz6IRAmC .shadow-pz6IRAmC{margin:-2px}.colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-default-pz6IRAmC .shadow-pz6IRAmC{border-color:#50535e}.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-success-pz6IRAmC .shadow-pz6IRAmC{border-color:#06806b}.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-warning-pz6IRAmC .shadow-pz6IRAmC{border-color:#ff9800}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#f23645}html.theme-dark .colorPickerWrap-pz6IRAmC.intent-danger-pz6IRAmC .shadow-pz6IRAmC{border-color:#b22833}.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,.colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC,html.theme-dark .colorPickerWrap-pz6IRAmC.intent-primary-pz6IRAmC .shadow-pz6IRAmC{border-color:#2962ff}.colorPickerWrap-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-left-radius:0}.colorPickerWrap-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-right-radius:0}.colorPickerWrap-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-left-radius:0}.shadow-pz6IRAmC{border:2px solid;border-radius:4px;bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:3}.shadow-pz6IRAmC.corner-top-left-pz6IRAmC{border-top-left-radius:0}.shadow-pz6IRAmC.corner-top-right-pz6IRAmC{border-top-right-radius:0}.shadow-pz6IRAmC.corner-bottom-right-pz6IRAmC{border-bottom-right-radius:0}.shadow-pz6IRAmC.corner-bottom-left-pz6IRAmC{border-bottom-left-radius:0}.colorPicker-pz6IRAmC{align-items:center;display:flex;justify-content:center;padding:4px}.colorPicker-pz6IRAmC.disabled-pz6IRAmC{opacity:.5}.swatch-pz6IRAmC{border-radius:3px;box-sizing:border-box;display:block;height:100%;width:100%}.placeholderContainer-pz6IRAmC{border-radius:3px;height:24px;overflow:hidden;position:relative;width:24px}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f;height:24px;width:24px}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC{background-color:#f7525f}.placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-left:24px solid #0000;border-top:24px solid #22ab94;content:" ";position:absolute;width:0}html.theme-dark .placeholderContainer-pz6IRAmC .placeholder-pz6IRAmC:after{border-top:24px solid #22ab94}.placeholderContainer-pz6IRAmC .mixedColor-pz6IRAmC{background:linear-gradient(270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff);height:100%}.white-pz6IRAmC{border:1px solid #d1d4dc}html.theme-dark .white-pz6IRAmC{border:1px solid #0000}.opacitySwatch-pz6IRAmC{background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%;border-radius:3px;flex:0 0 24px;height:24px;position:relative;width:24px}html.theme-dark .opacitySwatch-pz6IRAmC{background-color:#000}.colorLine-pz6IRAmC{background-color:#131722;border-radius:1px;margin-left:8px;margin-right:4px;width:30px}html.theme-dark .colorLine-pz6IRAmC{background-color:#b2b5be}.colorLine-pz6IRAmC.white-pz6IRAmC{margin-left:7px;margin-right:3px}.multiWidth-pz6IRAmC{margin:0 4px 0 8px;width:30px}.line-pz6IRAmC{background-color:#131722;width:100%}html.theme-dark .line-pz6IRAmC{background-color:#b2b5be}.line-pz6IRAmC:first-child{border-radius:2px;height:3px;margin-bottom:4px}.line-pz6IRAmC:nth-child(2){border-radius:2px;height:2px;margin-bottom:4px}.line-pz6IRAmC:last-child{border-radius:1px;height:1px}.thicknessContainer-pz6IRAmC{padding:0 12px}.thicknessTitle-pz6IRAmC{color:#787b86;font-size:12px;line-height:14px;margin:6px 0 4px}html.theme-dark .thicknessTitle-pz6IRAmC{color:#787b86}.radio-vpA3AYsc{-webkit-tap-highlight-color:transparent;align-items:center;cursor:default;display:inline-flex;font-size:14px;font-stretch:normal;font-style:normal;font-weight:400;letter-spacing:normal;line-height:normal;position:relative;-webkit-user-select:none;user-select:none}@media (any-hover:hover){.radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#a3a6af}html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#5d606b}.radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#1e53e5}}.radio-vpA3AYsc.reverse-vpA3AYsc{flex-direction:row-reverse}.radio-vpA3AYsc.reverse-vpA3AYsc .label-vpA3AYsc{margin-left:0;margin-right:8px}.radio-vpA3AYsc .wrapper-vpA3AYsc{display:inline-block;flex-shrink:0;height:18px;position:relative;width:18px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc{display:inline-block;height:100%;position:relative;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{background-color:initial;border:1px solid #b2b5be;border-radius:50%;box-sizing:border-box;content:"";height:100%;position:absolute;transition:border-color .35s ease;width:100%}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{border:1px solid #50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:after{border:2px solid;border-color:#2962ffcc;border-radius:50%;box-sizing:border-box;content:"";height:26px;left:-4px;opacity:0;position:absolute;top:-4px;transform:scale(.69231);width:26px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc.noOutline-vpA3AYsc:after{content:none}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc{cursor:inherit;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before{border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#fff;border-color:#2962ff;border-width:6px}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#d1d4dc;border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus-visible+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus:not(:focus-visible)+.box-vpA3AYsc:after{opacity:0;transform:scale(.69231)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#2a2e39;border-color:#50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#50535e;border-color:#2a2e39}.radio-vpA3AYsc .label-vpA3AYsc{color:#000;margin-left:8px;min-width:0}html.theme-dark .radio-vpA3AYsc .label-vpA3AYsc{color:#b2b5be}.textarea-container-I5L4qQPj{font-size:16px;font-style:normal;font-weight:400;line-height:24px;resize:none}.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#d1d4dc)}@media (any-hover:hover){.textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#d1d4dc)}}html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj{border-color:var(--ui-lib-intent-color,#50535e)}@media (any-hover:hover){html.theme-dark .textarea-container-I5L4qQPj.change-highlight-I5L4qQPj.focused-I5L4qQPj:hover{border-color:var(--ui-lib-intent-color,#50535e)}}.textarea-container-I5L4qQPj.resize-vertical-I5L4qQPj{overflow:hidden;resize:vertical}.textarea-container-I5L4qQPj.resize-horizontal-I5L4qQPj{overflow:hidden;resize:horizontal}.textarea-container-I5L4qQPj.resize-both-I5L4qQPj{overflow:hidden;resize:both}.textarea-I5L4qQPj{-webkit-text-fill-color:var(--ui-lib-control-text-fill-color,currentColor);-webkit-appearance:auto;appearance:textfield;background-color:initial;border:0;box-sizing:border-box;display:block;font-family:inherit;font-size:inherit;height:100%;line-height:inherit;margin:0;min-width:0;order:0;outline:0;padding:2px 5px;resize:none;width:100%}.textarea-I5L4qQPj::placeholder{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .textarea-I5L4qQPj::placeholder{color:#434651}.textarea-I5L4qQPj::-webkit-calendar-picker-indicator,.textarea-I5L4qQPj::-webkit-clear-button,.textarea-I5L4qQPj::-webkit-inner-spin-button,.textarea-I5L4qQPj::-webkit-outer-spin-button,.textarea-I5L4qQPj::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-I5L4qQPj:-webkit-autofill,.textarea-I5L4qQPj:-webkit-autofill:active,.textarea-I5L4qQPj:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover){.textarea-I5L4qQPj:-webkit-autofill:hover{border-radius:3px}}html.theme-dark .textarea-I5L4qQPj::-webkit-calendar-picker-indicator{filter:invert(1)}.icon-OTC0ma9h{color:#787b86;height:18px;width:18px}.input-pBN3Orju{height:34px;margin-right:12px;width:100px}.input-pBN3Orju.symbol-pBN3Orju{width:150px}.input-pBN3Orju:last-child{margin-right:0}.checkbox-pBN3Orju{max-width:100%}.checkbox-pBN3Orju .label-pBN3Orju{display:inline-block;max-width:100%;min-width:0;overflow-wrap:break-word;vertical-align:top}.checkbox-pBN3Orju .label-pBN3Orju:first-letter{text-transform:capitalize}.dropdownMenu-pBN3Orju{min-width:100px}.sessionEnd-pBN3Orju,.sessionStart-pBN3Orju{align-items:center;display:inline-flex}.sessionInputContainer-pBN3Orju{margin-right:0}.sessionDash-pBN3Orju{flex:1 0 auto}.inputGroup-pBN3Orju{align-items:center;display:flex}.textarea-pBN3Orju{height:200px;padding-top:0;width:100%}@media screen and (max-width:379px){.input-pBN3Orju{margin-bottom:8px}.input-pBN3Orju:last-child{margin-bottom:0}.inputGroup-pBN3Orju{display:block}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju{display:flex}.inputGroup-pBN3Orju.inlineGroup-pBN3Orju .sessionStart-pBN3Orju,.sessionInputContainer-pBN3Orju{margin-bottom:0}.sessionStart-pBN3Orju{margin-bottom:8px}.sessionEnd-pBN3Orju{display:block}}.hasTooltip-pBN3Orju{margin-right:9px}.titleWrap-O5QDBhZc{color:#787b86;height:16px;text-transform:uppercase}.title-O5QDBhZc{font-size:11px}.wrap-l3G0HrB9{flex-direction:column}.labelWrap-l3G0HrB9{align-items:center;display:flex;margin-bottom:6px}.label-l3G0HrB9{word-break:break-word}.label-l3G0HrB9.hasTooltip-l3G0HrB9{margin-right:8px}.inlineRow-CqPNtHDN{align-items:center;display:flex;flex-wrap:wrap;grid-column:1/3;margin-right:-8px;padding:4px 0}.titleWrap-ZYQL0yaM{align-items:center;display:flex;height:34px;padding:24px 0 8px}.titleWrap-ZYQL0yaM:first-child{padding-top:8px}.groupFooter-ZYQL0yaM{height:16px}.groupFooter-ZYQL0yaM:last-child{height:0}.groupFooter-ZYQL0yaM,.titleWrap-ZYQL0yaM{grid-column:1/3}.groupFooter-ZYQL0yaM+.titleWrap-ZYQL0yaM{padding-top:8px} \ No newline at end of file diff --git a/charting_library/bundles/2331.3b08f9cb7e919f979749.js b/charting_library/bundles/2331.3b08f9cb7e919f979749.js new file mode 100644 index 00000000..9c899c94 --- /dev/null +++ b/charting_library/bundles/2331.3b08f9cb7e919f979749.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2331],{12331:(e,t,a)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,n={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=c.reach);w+=x.value.length,x=x.next){var A=x.value;if(a.length>t.length)return;if(!(A instanceof s)){var $,S=1;if(b){if(!($=i(k,w,t,v))||$.index>=t.length)break;var E=$.index,_=$.index+$[0].length,j=w;for(j+=x.value.length;E>=j;)x=x.next,j+=x.value.length;if(j-=x.value.length,w=j,x.value instanceof s)continue;for(var C=x;C!==a.tail&&(j<_||"string"==typeof C.value);C=C.next)S++,j+=C.value.length;S--,A=t.slice(w,j),$.index-=w}else if(!($=i(k,0,A,v)))continue;E=$.index;var L=$[0],z=A.slice(0,E),O=A.slice(E+L.length),P=w+A.length;c&&P>c.reach&&(c.reach=P);var T=x.prev;z&&(T=o(a,T,z),w+=z.length),u(a,T,S);var M=new s(d,m?r.tokenize(L,m):L,y,L);if(x=o(a,T,M),O&&o(a,x,O),S>1){var D={cause:d+","+h,reach:P};e(t,a,n,x.prev,w,D),c&&D.reach>c.reach&&(c.reach=D.reach)}}}}}}(e,g,t,g.head,0),function(e){var t=[],a=e.head.next;for(;a!==e.tail;)t.push(a.value),a=a.next;return t}(g)},hooks:{all:{},add:function(e,t){var a=r.hooks.all;a[e]=a[e]||[],a[e].push(t)},run:function(e,t){var a=r.hooks.all[e];if(a&&a.length)for(var n,s=0;n=a[s++];)n(t)}},Token:s};function s(e,t,a,n){this.type=e,this.content=t,this.alias=a,this.length=0|(n||"").length}function i(e,t,a,n){e.lastIndex=t;var r=e.exec(a);if(r&&n&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function o(e,t,a){var n=t.next,r={value:a,prev:t,next:n};return t.next=r,n.prev=r,e.length++,r}function u(e,t,a){for(var n=t.next,r=0;r"+s.content+""},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var a=JSON.parse(t.data),n=a.language,s=a.code,i=a.immediateClose;e.postMessage(r.highlight(s,r.languages[n],n)),i&&e.close()}),!1),r):r;var g=r.util.currentScript();function c(){r.manual||r.highlightAll()}if(g&&(r.filename=g.src,g.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var d=document.readyState;"loading"===d||"interactive"===d&&g&&g.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==a.g&&(a.g.Prism=n),n.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var a={};a["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[t]},a.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:a}};r["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var s={};s[e]={ +pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var a=e.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{ +pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}], +constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])';n.hooks.add("before-highlightall",(function(e){e.selector+=", "+t})),n.hooks.add("before-sanity-check",(function(a){var r=a.element;if(r.matches(t)){a.code="",r.setAttribute("data-src-status","loading");var s=r.appendChild(document.createElement("CODE"));s.textContent="Loading…";var i=r.getAttribute("data-src"),l=a.language;if("none"===l){var o=(/\.(\w+)$/.exec(i)||[,"none"])[1];l=e[o]||o}n.util.setLanguage(s,l),n.util.setLanguage(r,l);var u=n.plugins.autoloader;u&&u.loadLanguages(l),function(e,t,a){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){var e,r;4==n.readyState&&(n.status<400&&n.responseText?t(n.responseText):n.status>=400?a((e=n.status,r=n.statusText,"✖ Error "+e+" while fetching file: "+r)):a("✖ Error: File does not exist or is empty"))},n.send(null)}(i,(function(e){r.setAttribute("data-src-status","loaded");var t=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var a=Number(t[1]),n=t[2],r=t[3];return n?r?[a,Number(r)]:[a,void 0]:[a,a]}}(r.getAttribute("data-range"));if(t){var a=e.split(/\r\n?|\n/g),i=t[0],l=null==t[1]?a.length:t[1];i<0&&(i+=a.length),i=Math.max(0,Math.min(i-1,a.length)),l<0&&(l+=a.length),l=Math.max(0,Math.min(l,a.length)),e=a.slice(i,l).join("\n"),r.hasAttribute("data-start")||r.setAttribute("data-start",String(i+1))}s.textContent=e,n.highlightElement(s)}),(function(e){ +r.setAttribute("data-src-status","failed"),s.textContent=e}))}})),n.plugins.fileHighlight={highlight:function(e){for(var a,r=(e||document).querySelectorAll(t),s=0;a=r[s++];)n.highlightElement(a)}};var a=!1;n.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}}]); \ No newline at end of file diff --git a/charting_library/bundles/2340.36ca0d43eb91dba77fa4.css b/charting_library/bundles/2340.36ca0d43eb91dba77fa4.css new file mode 100644 index 00000000..3274bfc1 --- /dev/null +++ b/charting_library/bundles/2340.36ca0d43eb91dba77fa4.css @@ -0,0 +1 @@ +.trial-notification-f8oxI7Em{max-width:427px} \ No newline at end of file diff --git a/charting_library/bundles/2340.36ca0d43eb91dba77fa4.rtl.css b/charting_library/bundles/2340.36ca0d43eb91dba77fa4.rtl.css new file mode 100644 index 00000000..3274bfc1 --- /dev/null +++ b/charting_library/bundles/2340.36ca0d43eb91dba77fa4.rtl.css @@ -0,0 +1 @@ +.trial-notification-f8oxI7Em{max-width:427px} \ No newline at end of file diff --git a/charting_library/bundles/23b30bfe2f6b2e6edf84470252fa5d54.svg b/charting_library/bundles/23b30bfe2f6b2e6edf84470252fa5d54.svg new file mode 100644 index 00000000..ba328461 --- /dev/null +++ b/charting_library/bundles/23b30bfe2f6b2e6edf84470252fa5d54.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2454.68d0887ef7e51d7bc269.js b/charting_library/bundles/2454.68d0887ef7e51d7bc269.js new file mode 100644 index 00000000..838a99ff --- /dev/null +++ b/charting_library/bundles/2454.68d0887ef7e51d7bc269.js @@ -0,0 +1,35 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2454,9255,1e3],{59255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var o=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_), +window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new o,D=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new E(t,n,this);_.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));const S=void 0!==r.ResizeObserver?r.ResizeObserver:D},90896:e=>{e.exports={wrapper:"wrapper-oPZWoMdB",focused:"focused-oPZWoMdB",readonly:"readonly-oPZWoMdB",disabled:"disabled-oPZWoMdB","size-small":"size-small-oPZWoMdB","size-medium":"size-medium-oPZWoMdB","size-large":"size-large-oPZWoMdB","font-size-small":"font-size-small-oPZWoMdB","font-size-medium":"font-size-medium-oPZWoMdB","font-size-large":"font-size-large-oPZWoMdB","border-none":"border-none-oPZWoMdB",shadow:"shadow-oPZWoMdB","border-thin":"border-thin-oPZWoMdB","border-thick":"border-thick-oPZWoMdB","intent-default":"intent-default-oPZWoMdB","intent-success":"intent-success-oPZWoMdB","intent-warning":"intent-warning-oPZWoMdB","intent-danger":"intent-danger-oPZWoMdB","intent-primary":"intent-primary-oPZWoMdB","corner-top-left":"corner-top-left-oPZWoMdB","corner-top-right":"corner-top-right-oPZWoMdB","corner-bottom-right":"corner-bottom-right-oPZWoMdB","corner-bottom-left":"corner-bottom-left-oPZWoMdB",childrenContainer:"childrenContainer-oPZWoMdB"}},58858:e=>{e.exports={defaultSelect:"defaultSelect-6eXd0Ihx"}},78781:e=>{e.exports={itemWrap:"itemWrap-YXml6gvK",item:"item-YXml6gvK",icon:"icon-YXml6gvK",selected:"selected-YXml6gvK",label:"label-YXml6gvK"}},5717:e=>{e.exports={lineEndSelect:"lineEndSelect-RMwVB5BV",right:"right-RMwVB5BV"}},73084:e=>{e.exports={lineStyleSelect:"lineStyleSelect-2BDVWQbf",multipleStyles:"multipleStyles-2BDVWQbf"} +},218:e=>{e.exports={lineWidthSelect:"lineWidthSelect-TYbMx0kd",bar:"bar-TYbMx0kd",isActive:"isActive-TYbMx0kd",item:"item-TYbMx0kd"}},56994:e=>{e.exports={container:"container-Wq7zjnRZ",active:"active-Wq7zjnRZ",disabled:"disabled-Wq7zjnRZ",icon:"icon-Wq7zjnRZ"}},21818:e=>{e.exports={wrap:"wrap-CLB8ZlH6",disabled:"disabled-CLB8ZlH6"}},52465:e=>{e.exports={dropdown:"dropdown-KoV1659s",dropdownMenu:"dropdownMenu-KoV1659s",firstColorPicker:"firstColorPicker-KoV1659s"}},31650:e=>{e.exports={row:"row-kB7roDMw",wrap:"wrap-kB7roDMw",breakpointNormal:"breakpointNormal-kB7roDMw",breakpointMedium:"breakpointMedium-kB7roDMw",breakpointSmall:"breakpointSmall-kB7roDMw"}},51285:e=>{e.exports={coordinates:"coordinates-V0LzFOLU",input:"input-V0LzFOLU"}},9688:e=>{e.exports={wrapper:"wrapper-IjSbS0mB",checkbox:"checkbox-IjSbS0mB",colorSelect:"colorSelect-IjSbS0mB"}},29148:e=>{e.exports={withoutPadding:"withoutPadding-VwIbEpbX"}},67474:e=>{e.exports={input:"input-SCyh9tQM",control:"control-SCyh9tQM",item:"item-SCyh9tQM",cell:"cell-SCyh9tQM",fragmentCell:"fragmentCell-SCyh9tQM",withTitle:"withTitle-SCyh9tQM",title:"title-SCyh9tQM"}},55368:e=>{e.exports={line:"line-er8glV8W",control:"control-er8glV8W",valueInput:"valueInput-er8glV8W",valueUnit:"valueUnit-er8glV8W",input:"input-er8glV8W"}},80346:e=>{e.exports={unit:"unit-yU23iRoD",input:"input-yU23iRoD",normal:"normal-yU23iRoD",big:"big-yU23iRoD",dropdown:"dropdown-yU23iRoD",dropdownMenu:"dropdownMenu-yU23iRoD"}},89477:e=>{e.exports={dropdown:"dropdown-TevhCNe0",normal:"normal-TevhCNe0",big:"big-TevhCNe0",dropdownMenu:"dropdownMenu-TevhCNe0"}},94245:e=>{e.exports={range:"range-DTExo36Q",valueInput:"valueInput-DTExo36Q",rangeSlider:"rangeSlider-DTExo36Q",rangeSlider_mixed:"rangeSlider_mixed-DTExo36Q",input:"input-DTExo36Q"}},45449:e=>{e.exports={colorPicker:"colorPicker-zLqwzQsC",fontStyleButton:"fontStyleButton-zLqwzQsC",dropdown:"dropdown-zLqwzQsC",dropdownMenu:"dropdownMenu-zLqwzQsC"}},35048:e=>{e.exports={twoColors:"twoColors-0m0hhV3v",colorPicker:"colorPicker-0m0hhV3v"}},33126:e=>{e.exports={dropdown:"dropdown-8h1M1df3",menu:"menu-8h1M1df3"}},17683:e=>{e.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},99339:e=>{e.exports={wrapper:"wrapper-3LlhL6R6",emoji:"emoji-3LlhL6R6"}},83341:e=>{e.exports={list:"list-mYbRQuGD"}},70358:e=>{e.exports={wrapper:"wrapper-KYBibz0a"}},39897:e=>{e.exports={wrapper:"wrapper-EVXZqxr4",emojiItem:"emojiItem-EVXZqxr4"}},40681:e=>{e.exports={ +wrapper:"wrapper-wFgLbqCx",isActive:"isActive-wFgLbqCx"}},88436:e=>{e.exports={wrapper:"wrapper-z9lPbT43"}},16859:e=>{e.exports={wrapper:"wrapper-s7880WH7"}},95076:e=>{e.exports={desktopSize:"desktopSize-iVjStStf",drawer:"drawer-iVjStStf",menuBox:"menuBox-iVjStStf"}},65830:e=>{e.exports={range:"range-w7rMmNtQ",disabled:"disabled-w7rMmNtQ",rangeSlider:"rangeSlider-w7rMmNtQ",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-w7rMmNtQ",rangeSliderMiddle:"rangeSliderMiddle-w7rMmNtQ",dragged:"dragged-w7rMmNtQ",pointer:"pointer-w7rMmNtQ",rangePointerWrap:"rangePointerWrap-w7rMmNtQ"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>o,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var o,i,r,a,s=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(n,c)=>{const d=(0,s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=l.verticalAttachEdge,verticalDropDirection:p=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:f=l.horizontalMargin,verticalMargin:v=l.verticalMargin,matchButtonAndListboxWidths:g=l.matchButtonAndListboxWidths}=t,y=u===o.Top?-1*v:v,b=h===i.Right?d.right:d.left,w=u===o.Top?d.top:d.bottom,E={x:b-(m===a.FromRightToLeft?n:0)+f,y:w-(p===r.FromBottomToTop?c:0)+y};return g&&(E.overrideWidth=d.width),E}}},32449:(e,t,n)=>{"use strict";function o(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue(r(t))},subscribe:(t,n)=>{const i=e=>{n(a)};o.set(n,i),e.subscribe(t,i)},unsubscribe:(t,n)=>{const i=o.get(n);i&&(e.unsubscribe(t,i),o.delete(n))},unsubscribeAll:t=>{e.unsubscribeAll(t),o.clear()},destroy:()=>{null==n||n()}};return a}function i(e){const t=o(e);return t.destroy=()=>{e.destroy()},t}function r(e,t,n,i,r,a){const s=o(t,i,a),l=void 0!==i?void 0!==i[1]?i[1]:i[0]:e=>e;return s.setValue=null!=r?r:o=>e.setProperty(t,l(o),n),s}n.d(t,{makeProxyDefinitionProperty:()=>o,makeProxyDefinitionPropertyDestroyable:()=>i,convertToDefinitionProperty:()=>r})},50366:(e,t,n)=>{"use strict";function o(e,t){return{propType:"checkable",properties:e,...t}}function i(e,t,n){return{propType:"checkableSet",properties:e,childrenDefinitions:n,...t}}function r(e,t){return{propType:"color",properties:e,noAlpha:!1,...t}}n.d(t,{ +convertFromReadonlyWVToDefinitionProperty:()=>O,convertFromWVToDefinitionProperty:()=>H,convertToDefinitionProperty:()=>W.convertToDefinitionProperty,createCheckablePropertyDefinition:()=>o,createCheckableSetPropertyDefinition:()=>i,createColorPropertyDefinition:()=>r,createCoordinatesPropertyDefinition:()=>P,createEmojiPropertyDefinition:()=>k,createLeveledLinePropertyDefinition:()=>m,createLinePropertyDefinition:()=>u,createNumberPropertyDefinition:()=>f,createOptionsPropertyDefinition:()=>v,createPropertyDefinitionsGeneralGroup:()=>R,createPropertyDefinitionsLeveledLinesGroup:()=>I,createRangePropertyDefinition:()=>T,createSessionPropertyDefinition:()=>z,createStudyInputsPropertyDefinition:()=>A,createSymbolPropertyDefinition:()=>V,createTextPropertyDefinition:()=>x,createTransparencyPropertyDefinition:()=>N,createTwoColorsPropertyDefinition:()=>M,createTwoOptionsPropertyDefinition:()=>g,destroyDefinitions:()=>J,getColorDefinitionProperty:()=>G,getLockPriceScaleDefinitionProperty:()=>Z,getPriceScaleSelectionStrategyDefinitionProperty:()=>j,getScaleRatioDefinitionProperty:()=>U,getSymbolDefinitionProperty:()=>K,isPropertyDefinitionsGroup:()=>$});var a=n(49612),s=n(43891);const l=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],c=[1,2,3,4],d=[a.LineEnd.Normal,a.LineEnd.Arrow];function u(e,t){const n={propType:"line",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=l),void 0!==n.properties.width&&(n.widthValues=c),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=d),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}const p=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],h=[1,2,3,4];function m(e,t){const n={propType:"leveledLine",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=p),void 0!==n.properties.width&&(n.widthValues=h),n}function f(e,t){return{propType:"number",properties:e,type:1,...t}}function v(e,t){return{propType:"options",properties:e,...t}}function g(e,t){return{propType:"twoOptions",properties:e,...t}}var y=n(28353);const b=[{id:"bottom",value:"bottom",title:(0,y.t)("Top")},{id:"middle",value:"middle",title:(0,y.t)("Middle")},{id:"top",value:"top",title:(0,y.t)("Bottom")}],w=[{id:"left",value:"left",title:(0,y.t)("Left")},{id:"center",value:"center",title:(0,y.t)("Center")},{id:"right",value:"right",title:(0,y.t)("Right")}],E=[{id:"horizontal",value:"horizontal",title:(0,y.t)("Horizontal")},{id:"vertical",value:"vertical",title:(0,y.t)("Vertical")}],_=[10,11,12,14,16,20,24,28,32,40].map(e=>({title:String(e),value:e})),D=[1,2,3,4],S=(0,y.t)("Text alignment"),C=(0,y.t)("Text orientation");function x(e,t){const n={propType:"text",properties:e,...t,isEditable:t.isEditable||!1};return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=_),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=b),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=w), +(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=S),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=E),void 0===n.orientationTitle&&(n.orientationTitle=C)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=D),n}function M(e,t){return{propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function P(e,t){return{propType:"coordinates",properties:e,...t}}function T(e,t){return{propType:"range",properties:e,...t}}function N(e,t){return{propType:"transparency",properties:e,...t}}function V(e,t){return{propType:"symbol",properties:e,...t}}function z(e,t){return{propType:"session",properties:e,...t}}function k(e,t){return{propType:"emoji",properties:e,...t}}function A(e,t){return{propType:"studyInputs",properties:e,...t}}var B=n(52714),L=n.n(B);function R(e,t,n,o){return{id:t,title:n,visible:o,groupType:"general",definitions:new(L())(e)}}function I(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new(L())(e)}}var W=n(32449);function F(e,t){const n=new Map,o=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,r={value:()=>o(e.value()),setValue:t=>{var n;null===(n=e.setValue)||void 0===n||n.call(e,i(t))},subscribe:(t,o)=>{const i=()=>{o(r)};let a=n.get(t);void 0===a?(a=new Map,a.set(o,i),n.set(t,a)):a.set(o,i),e.subscribe(i)},unsubscribe:(t,o)=>{const i=n.get(t);if(void 0!==i){const t=i.get(o);void 0!==t&&(e.unsubscribe(t),i.delete(o))}},unsubscribeAll:t=>{const o=n.get(t);void 0!==o&&(o.forEach((t,n)=>{e.unsubscribe(t)}),o.clear())}};return r}function H(e,t,n,o){const i=F(t,o),r=void 0!==o?void 0!==o[1]?o[1]:o[0]:e=>e;return i.setValue=o=>e.setWatchedValue(t,r(o),n),i}function O(e,t){return function(e,t,n){const o=new Map;return F({subscribe:(n,i)=>{const r=e=>n(t(e));o.set(n,r),e.subscribe(r,i)},unsubscribe:t=>{if(t){const n=o.get(t);n&&(e.unsubscribe(n),o.delete(t))}else o.clear(),e.unsubscribe()},value:()=>t(e.value())},n)}(e,e=>e,t)}function j(e,t){const n=(0,W.makeProxyDefinitionProperty)(t);return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function Z(e,t,n,o){const i=(0,W.makeProxyDefinitionProperty)(t);return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,o)},i}function U(e,t,n,o){const i=(0,W.makeProxyDefinitionProperty)(t,o);return i.setValue=o=>{e.setScaleRatioProperty(t,o,n)},i}var Y=n(24377),Q=n(68906),q=n(81465);function X(e,t){if((0,Q.isHexColor)(e)){const n=(0,Y.parseRgb)(e);return(0,Y.rgbaToString)((0,Y.rgba)(n,(100-t)/100))}return e}function G(e,t,n,o,i){let r;if(null!==n){const e=(0,q.combineProperty)(X,t,n);r=(0,W.makeProxyDefinitionPropertyDestroyable)(e)}else r=(0,W.makeProxyDefinitionProperty)(t,[()=>X(t.value(),0),e=>e]);return r.setValue=n=>{i&&e.beginUndoMacro(o),e.setProperty(t,n,o),i&&e.endUndoMacro()},r}function K(e,t,n,o,i,r){const a=[(s=n,l=t,e=>{const t=s(l);if(e===l.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var s,l;const c=(0,W.convertToDefinitionProperty)(e,t,i,a) +;r&&(c.setValue=r);const d=new Map;c.subscribe=(e,n)=>{const o=e=>{n(c)};d.set(n,o),t.subscribe(e,o)},c.unsubscribe=(e,n)=>{const o=d.get(n);o&&(t.unsubscribe(e,o),d.delete(n))};const u={};return o.subscribe(u,()=>{d.forEach((e,t)=>{t(c)})}),c.destroy=()=>{o.unsubscribeAll(u),d.clear()},c}function $(e){return e.hasOwnProperty("groupType")}function J(e){e.forEach(e=>{if(e.hasOwnProperty("propType")){Object.keys(e.properties).forEach(t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()})}else J(e.definitions.value())})}},66045:(e,t,n)=>{"use strict";n.d(t,{FontSizeSelect:()=>c});var o=n(59496),i=n(97754),r=n.n(i),a=n(58368),s=n(90186),l=n(58858);function c(e){const{id:t,fontSize:n,fontSizes:i=[],className:c,disabled:d,fontSizeChange:u}=e;return o.createElement(a.Select,{id:t,disabled:d,className:r()(c,l.defaultSelect),menuClassName:l.defaultSelect,items:(p=i,p.map(e=>({value:e.value,content:e.title}))),value:n,onChange:u,...(0,s.filterDataProps)(e)});var p}},94697:(e,t,n)=>{"use strict";n.d(t,{IconDropdown:()=>c,DisplayItem:()=>d,DropItem:()=>u});var o=n(59496),i=n(97754),r=n.n(i),a=n(58368),s=n(9745),l=n(78781);function c(e){const{menuItemClassName:t,...n}=e;return o.createElement(a.Select,{...n,menuItemClassName:r()(t,l.itemWrap)})}function d(e){return o.createElement("div",{className:r()(l.item,l.selected,e.className)},o.createElement(s.Icon,{className:l.icon,icon:e.icon}))}function u(e){return o.createElement("div",{className:l.item},o.createElement(s.Icon,{className:r()(l.icon,e.iconClassName),icon:e.icon}),o.createElement("div",{className:l.label},e.label))}},53598:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>f});var o=n(28353),i=n(59496),r=n(97754),a=n.n(r),s=n(43891),l=n(94697),c=n(20618),d=n(19726),u=n(56326),p=n(50303),h=n(73084);const m=[{type:s.LINESTYLE_SOLID,icon:c,label:(0,o.t)("Line")},{type:s.LINESTYLE_DASHED,icon:d,label:(0,o.t)("Dashed line")},{type:s.LINESTYLE_DOTTED,icon:u,label:(0,o.t)("Dotted line")}];class f extends i.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:o,disabled:r,additionalItems:s,allowedLineStyles:c}=this.props;let d=function(e){let t=[...m];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:i.createElement(l.DisplayItem,{icon:e.icon}),content:i.createElement(l.DropItem,{icon:e.icon,label:e.label})}))}(c);return s&&(d=[{readonly:!0,content:s},...d]),i.createElement(l.IconDropdown,{id:e,disabled:r,className:a()(h.lineStyleSelect,n),hideArrowButton:!0,items:d,value:t,onChange:o,"data-name":"line-style-select",addPlaceholderToItems:!1,placeholder:i.createElement(l.DisplayItem,{icon:p,className:h.multipleStyles})})}}},50890:(e,t,n)=>{"use strict";n.d(t,{LineWidthSelect:()=>d});var o=n(59496),i=n(97754),r=n(58368),a=n(218);const s=[1,2,3,4];function l(e){const{id:t,value:n,items:l=s,disabled:c,onChange:d}=e;return o.createElement(r.Select,{id:t,disabled:c,hideArrowButton:!0,className:a.lineWidthSelect,items:(u=l,u.map(e=>({value:e,selectedContent:p(e,!0),content:p(e)}))),value:n,onChange:d, +"data-name":"line-width-select"});var u;function p(e,t){const r={borderTopWidth:e};return o.createElement("div",{className:a.item},o.createElement("div",{className:i(a.bar,{[a.isActive]:e===n&&!t}),style:r}," "))}}var c=n(45560);function d(e){const{property:t}=e,[n,i]=(0,c.useDefinitionProperty)({property:t});return o.createElement(l,{...e,value:n,onChange:i})}},66849:(e,t,n)=>{"use strict";n.d(t,{ControlCustomWidthContext:()=>i,ControlCustomHeightContext:()=>r});var o=n(59496);const i=o.createContext({}),r=o.createContext({})},90545:(e,t,n)=>{"use strict";n.d(t,{Section:()=>tn});var o=n(59496),i=n(50366),r=n(48897),a=n(45560),s=n(31356);function l(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0});return u?o.createElement(s.CommonSection,{id:t,offset:c,checked:n,title:l,disabled:e.disabled||d}):null}var c=n(97754),d=n.n(c),u=n(22064),p=n(53598);function h(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(p.LineStyleSelect,{...e,lineStyle:n,lineStyleChange:i})}var m=n(50890),f=n(60521),v=n(88537);function g(e){return"mixed"===e}function y(e,t,n){const[i,r]=(0,o.useState)(e),a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{r(e)},[e,n]),[i,function(e){a.current=e,r(e)},function(){t(a.current)},function(){a.current=e,r(e)}]}var b=n(68335),w=n(92399),E=n(64514),_=n(95505),D=n(49483);function S(e){const{property:t,...n}=e,[i,r]=(0,o.useState)(performance.now()),[s,l]=(0,a.useDefinitionProperty)({property:t,handler:()=>r(performance.now())}),c=y(s,l,i);return o.createElement(C,{...n,valueHash:i,sharedBuffer:c})}function C(e){const{sharedBuffer:t,min:n,max:i,step:r,...a}=e,[s,l,c,d]=t,u=(0,o.useRef)(null),p=(0,o.useRef)(null),h={flushed:!1};return o.createElement(M,{...a,ref:p,onValueChange:function(e,t){l(e),"step"!==t||h.flushed||(c(),h.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||h.flushed)return;switch((0,b.hashFromEvent)(e.nativeEvent)){case 27:d(),h.flushed=!0;break;case 13:e.preventDefault();const t=(0,v.ensureNotNull)(p.current).getClampedValue();null!==t&&(l(t),c(),h.flushed=!0)}},onBlur:function(e){const t=(0,v.ensureNotNull)(u.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=(0,v.ensureNotNull)(p.current).getClampedValue();null===e||h.flushed||(l(e),c(),h.flushed=!0)}},value:s,roundByStep:!1,containerReference:function(e){u.current=e},inputMode:D.CheckMobile.iOS()?void 0:"numeric",min:n,max:i,step:r,stretch:!1})}const x={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class M extends o.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==(0,v.ensureNotNull)(this._input)||this._saveSelection((0,v.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e, +this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{this._saveSelection((0,v.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:N(this.props,this.props.value,V(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,o=function(e,t,n){switch(n){case"integer":return P.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),T.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=k(o),r=this._checkValueBoundaries(i);var a,s;this.setState({displayValue:o}),o!==n&&(a=this.state.displayValue,s=(s=o).replace(/,/g,"."),(a=a.replace(/,/g,".")).includes(".")||!s.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),r.value&&N(this.props,i)===o&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,o=k(this.state.displayValue);let i;if(isNaN(o)){const{defaultValue:e}=this.props;if(void 0===e)return;i=e}else{const r=new f.Big(o),a=new f.Big(n),s=r.mod(a);let l=r.plus(e*n);!s.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(s)),i=l.toNumber()}this._checkValueBoundaries(i).value&&(this.setState({displayValue:N(this.props,i,V(this.props))}),this.props.onValueChange(i,"step"))},this.state={value:A(this.props.value),displayValue:N(this.props,this.props.value,V(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=(0,v.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:o,direction:i}=t;e.setSelectionRange(n,o,i)}this._restoreSelection=!1}render(){return o.createElement(w.NumberInputView,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,stretch:this.props.stretch,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,autoSelectOnFocus:!0,"data-name":this.props["data-name"]})}getClampedValue(){const{min:e,max:t}=this.props,n=k(this.state.displayValue);return isNaN(n)?null:(0,E.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,o=A(e.value);if(t.value!==o||t.valueHash!==n){return{value:o,valueHash:n,displayValue:N(e,o,t.focused&&t.valueHash===n?void 0:V(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:o}=e;null!==t&&null!==n&&null!==o&&(this._selection={start:t,end:n,direction:o})}_checkValueBoundaries(e){ +const{min:t,max:n}=this.props;return{value:function(e,t,n){const o=e>=t,i=e<=n;return{passMin:o,passMax:i,pass:o&&i,clamped:(0,E.clamp)(e,t,n)}}(e,t,n).pass}}}M.defaultProps=x;const P=/^-?[0-9]*$/,T=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function N(e,t,n){return g(t=A(t))?"—":(null!==t&&void 0!==n&&(n=Math.max(z(t),n)),function(e,t){if(null===e)return"";return new _.NumericFormatter(t).format(e)}(t,n))}function V(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=z(e.step)),Math.max(e.precision,t)||void 0}function z(e){const t=Math.trunc(e).toString();return(0,E.clamp)(_.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function k(e,t){return new _.NumericFormatter(t).parse(e)}function A(e){return"number"==typeof e&&Number.isFinite(e)||g(e)?e:null}var B=n(24377),L=n(58593),R=n(68906);function I(e){const{color:t,thickness:n,thicknessItems:i,noAlpha:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:t}),[c,d]=(0,a.useDefinitionProperty)(n?{property:n}:{defaultValue:void 0});return o.createElement(L.ColorSelect,{...e,color:function(){if(!s)return null;if("mixed"===s)return"mixed";return(0,B.rgbToHexString)((0,B.parseRgb)(s))}(),onColorChange:function(e){const t=s&&"mixed"!==s?(0,R.alphaToTransparency)((0,B.parseRgba)(s)[3]):0;l((0,R.generateColor)(String(e),t,!0))},thickness:c,thicknessItems:i,onThicknessChange:d,opacity:r?void 0:s&&"mixed"!==s?(0,B.parseRgba)(s)[3]:void 0,onOpacityChange:r?void 0:function(e){l((0,R.generateColor)(s,(0,R.alphaToTransparency)(e),!0))}})}var W=n(28353),F=n(49612),H=n(94697),O=n(90186),j=n(23848),Z=n(56775),U=n(5717);const Y=[{type:F.LineEnd.Normal,icon:j,label:(0,W.t)("Normal")},{type:F.LineEnd.Arrow,icon:Z,label:(0,W.t)("Arrow")}];class Q extends o.PureComponent{constructor(e){super(e),this._items=[],this._items=Y.map(t=>({value:t.type,selectedContent:o.createElement(H.DisplayItem,{icon:t.icon}),content:o.createElement(H.DropItem,{icon:t.icon,iconClassName:d()(e.isRight&&U.right),label:t.label})}))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:i,isRight:r,disabled:a}=this.props;return o.createElement(H.IconDropdown,{id:e,disabled:a,className:d()(U.lineEndSelect,r&&U.right,n),items:this._items,value:t,onChange:i,hideArrowButton:!0,...(0,O.filterDataProps)(this.props)})}}function q(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(Q,{...e,lineEnd:n,lineEndChange:i})}var X=n(78260),G=n(31650);function K(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return o.createElement(X.CellWrap,{className:c(G.wrap,n,G["breakpoint"+i])},o.Children.map(t,e=>o.isValidElement(e)?o.createElement("span",{key:null===e.key?void 0:e.key,className:G.row},e):e))}const $={1:"float",0:"integer"};var J=n(77975),ee=n(55368);function te(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r,leftEnd:l,rightEnd:d,value:p,extendLeft:f,extendRight:v},title:g,valueMin:y,valueMax:b,valueStep:w,valueUnit:E,extendLeftTitle:_,extendRightTitle:D},offset:C}=e,[x]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[M]=(0, +a.useDefinitionProperty)({property:i,defaultValue:!1}),[P]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),T=(0,J.useWatchedValueReadonly)({watchedValue:y,defaultValue:void 0}),N=(0,J.useWatchedValueReadonly)({watchedValue:b,defaultValue:void 0}),V=(0,J.useWatchedValueReadonly)({watchedValue:w,defaultValue:void 0}),z=(0,J.useWatchedValueReadonly)({watchedValue:E,defaultValue:void 0}),k=e.disabled||!x;return P?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:C,checked:n,title:g,disabled:e.disabled||M},o.createElement(K,{className:ee.line,breakPoint:"Small"},o.createElement(o.Fragment,null,function(){const{definition:{properties:{color:n,width:i},widthValues:r}}=e;if(n)return o.createElement("span",{className:ee.control},o.createElement(I,{color:n,thickness:i,disabled:k,thicknessItems:r}));return i&&o.createElement("span",{className:ee.control},o.createElement(m.LineWidthSelect,{id:(0,u.createDomId)(t,"line-width-select"),items:r,property:i,disabled:k}))}(),function(){const{definition:{properties:{style:n}}}=e;return n&&o.createElement("span",{className:ee.control},o.createElement(h,{id:(0,u.createDomId)(t,"line-style-select"),property:n,disabled:k}))}()),(l||d||p)&&o.createElement(o.Fragment,null,o.createElement(o.Fragment,null,l&&o.createElement(q,{id:(0,u.createDomId)(t,"left-end-select"),"data-name":"left-end-select",className:ee.control,property:l,disabled:k}),d&&o.createElement(q,{id:(0,u.createDomId)(t,"right-end-select"),"data-name":"right-end-select",className:ee.control,property:d,disabled:k,isRight:!0})),function(){const{definition:{valueType:t}}=e;return p&&o.createElement("span",{className:c(ee.valueInput,ee.control)},o.createElement(S,{className:ee.input,property:p,min:T,max:N,step:V,disabled:k,mode:void 0!==t?$[t]:void 0,name:"line-value-input"}),o.createElement("span",{className:ee.valueUnit},z))}()))),f&&o.createElement(s.CommonSection,{id:t+"ExtendLeft",offset:C,checked:f,title:_,disabled:e.disabled||M}),v&&o.createElement(s.CommonSection,{id:t+"ExtendRight",offset:C,checked:v,title:D,disabled:e.disabled||M})):null}var ne=n(49642),oe=n(58368),ie=n(36947);function re(e){const{property:t,options:n,...i}=e,[r,s]=(0,a.useDefinitionProperty)({property:t}),l=(0,ie.useForceUpdate)();return(0,o.useEffect)(()=>{const e=()=>l();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}},[]),o.createElement(oe.Select,{...i,onChange:s,value:r,items:(Array.isArray(n)?n:n.value()).map(e=>e.readonly?{content:e.title,readonly:e.readonly}:{content:e.title,value:e.value,disabled:e.disabled,id:e.id})})}var ae=n(52465);const se=[{title:(0,W.t)("Solid"),value:ne.ColorType.Solid},{title:(0,W.t)("Gradient"),value:ne.ColorType.Gradient}];function le(e){const{id:t,disabled:n,noAlpha:i,properties:r}=e,{color:s,gradientColor1:l,gradientColor2:c,type:d}=r,[p]=(0,a.useDefinitionProperty)({property:d,defaultValue:ne.ColorType.Solid});return o.createElement(K,null,o.createElement(re,{id:(0,u.createDomId)(t,"background-type-options-dropdown"), +"data-name":"background-type-options-dropdown",className:ae.dropdown,menuClassName:ae.dropdownMenu,disabled:n,property:d,options:se}),p===ne.ColorType.Solid?o.createElement(I,{color:s,disabled:n,noAlpha:i}):o.createElement(o.Fragment,null,o.createElement(I,{className:ae.firstColorPicker,color:l,disabled:n,noAlpha:i}),o.createElement(I,{color:c,disabled:n,noAlpha:i})))}function ce(e){const{definition:{id:t,properties:n,title:i,noAlpha:r},offset:l}=e,{color:c,checked:d,disabled:u,visible:p}=n,[h]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),[m]=(0,a.useDefinitionProperty)({property:u,defaultValue:!1}),[f]=(0,a.useDefinitionProperty)({property:p,defaultValue:!0}),v=e.disabled||!h;return f?o.createElement(s.CommonSection,{id:t,offset:l,checked:d,title:i,disabled:e.disabled||m},o.createElement(X.CellWrap,null,n.hasOwnProperty("type")?o.createElement(le,{id:t,properties:n,disabled:v,noAlpha:r}):o.createElement(I,{color:c,disabled:v,noAlpha:r}))):null}var de=n(54368),ue=n(45112),pe=n(21818);function he(e){const{value:t,disabled:n,onChange:i,className:r}=e;return o.createElement("div",{className:c(pe.wrap,r,{[pe.disabled]:n})},o.createElement(de.Opacity,{hideInput:!0,color:ue.colorsPalette["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||i(100-100*e)}}))}function me(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t});return o.createElement(he,{...n,value:i,onChange:r})}function fe(e){const{definition:{id:t,properties:{transparency:n,checked:i,disabled:r,visible:l},title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(s.CommonSection,{id:t,offset:d,checked:i,title:c,disabled:e.disabled||p},o.createElement(X.CellWrap,null,o.createElement(me,{property:n,disabled:m}))):null}var ve=n(35048);function ge(e){const{definition:{id:t,properties:{color1:n,color2:i,checked:r,disabled:l,visible:c},title:d,noAlpha1:u,noAlpha2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[v]=(0,a.useDefinitionProperty)({property:c,defaultValue:!0}),g=e.disabled||!m||f;return v?o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:d,disabled:e.disabled||f},o.createElement(X.CellWrap,{className:ve.twoColors},y(n,u),y(i,p))):null;function y(e,t){return o.createElement("span",{className:ve.colorPicker},o.createElement(I,{color:e,disabled:g,noAlpha:t}))}}var ye=n(66849),be=n(80346);function we(e){const{definition:{id:t,properties:{checked:n,value:i,unitOptionsValue:r,disabled:l,visible:d},min:p,max:h,step:m,title:f,unit:g,unitOptions:y,type:b},offset:w}=e,[E]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[_]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[D]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),C=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),x=(0, +J.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),M=(0,J.useWatchedValueReadonly)({watchedValue:m,defaultValue:void 0}),P=(0,J.useWatchedValueReadonly)({watchedValue:g,defaultValue:void 0}),T=(0,o.useContext)(ye.ControlCustomWidthContext),N=e.disabled||!E;return D?o.createElement(s.CommonSection,{id:t,offset:w,checked:n,title:f,disabled:e.disabled||_},o.createElement(X.CellWrap,null,o.createElement(K,null,o.createElement(S,{className:c(be.input,T[t]&&be[T[t]]),property:i,min:C,max:x,step:M,disabled:N,mode:$[b],name:"number-input","data-name":t}),r&&o.createElement(re,{id:(0,u.createDomId)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:be.dropdown,menuClassName:be.dropdownMenu,disabled:N,property:r,options:(0,v.ensureDefined)(y)})),o.createElement("span",{className:be.unit},P))):null}function Ee(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},childrenDefinitions:l,title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:d,checked:n,title:c,disabled:e.disabled||p}),l.map(e=>o.createElement(tn,{key:e.id,disabled:m,definition:e,offset:!0}))):null}var _e=n(66045);function De(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(_e.FontSizeSelect,{...e,fontSize:n,fontSizeChange:i,"data-name":"font-size-select"})}var Se=n(9745),Ce=n(56994);function xe(e){const{className:t,checked:n,icon:i,disabled:r,onClick:a}=e;return o.createElement("div",{className:d()(t,Ce.container,n&&!r&&Ce.active,r&&Ce.disabled),onClick:r?void 0:a,"data-role":"button",...(0,O.filterDataProps)(e)},o.createElement(Se.Icon,{className:Ce.icon,icon:i}))}function Me(e){const{icon:t,className:n,property:i,disabled:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:i});return o.createElement(xe,{className:n,icon:t,checked:s,onClick:function(){l(!s)},disabled:r,...(0,O.filterDataProps)(e)})}var Pe=n(67029),Te=n(35868),Ne=n(2568);function Ve(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t}),s=(0,o.useCallback)(e=>r(e.target.value),[r]);return o.createElement(Ne.Textarea,{...n,value:i,onChange:s})}var ze=n(86508),ke=n(27603),Ae=n(45449);const Be=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),Le=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function Re(e){const{definition:{id:t,properties:{color:n,size:i,checked:r,disabled:l,bold:c,italic:d,text:p,alignmentHorizontal:h,alignmentVertical:m,orientation:f,backgroundVisible:v,backgroundColor:g,borderVisible:y,borderColor:b,borderWidth:w,wrap:E},title:_,sizeItems:D,alignmentTitle:S,alignmentHorizontalItems:C,alignmentVerticalItems:x,orientationTitle:M,orientationItems:P,backgroundTitle:T,borderTitle:N,borderWidthItems:V,wrapTitle:z},offset:k}=e,A=(0,o.useContext)(ye.ControlCustomHeightContext),[B]=(0, +a.useDefinitionProperty)({property:r,defaultValue:!0}),[L]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[R,W]=(0,a.useDefinitionProperty)({property:m,defaultValue:void 0}),[F,H]=(0,a.useDefinitionProperty)({property:f,defaultValue:"horizontal"}),[O,j]=(0,a.useDefinitionProperty)({property:h,defaultValue:void 0}),[Z]=(0,a.useDefinitionProperty)({property:v,defaultValue:!1}),[U]=(0,a.useDefinitionProperty)({property:y,defaultValue:!1}),Y=e.disabled||!B;return o.createElement(o.Fragment,null,function(){if(_)return o.createElement(s.CommonSection,{id:t,offset:k,checked:r,title:_,disabled:e.disabled||L},o.createElement(K,{breakPoint:"Small"},G(),$()));return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},G(),$()))}(),p&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},o.createElement(Ve,{className:Pe.InputClasses.FontSizeMedium,rows:(Q=A[t],"big"===Q?9:5),stretch:!0,property:p,disabled:Y,onFocus:function(e){e.target.select()},name:"text-input"}))),(h||m)&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(X.CellWrap,null,S)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(K,{breakPoint:"Small"},void 0!==R&&void 0!==x&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:R,items:x.map(Be),onChange:W}),void 0!==O&&void 0!==C&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:O,items:C.map(Be),onChange:j})))),void 0!==f&&void 0!==P&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(X.CellWrap,null,M)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(K,{breakPoint:"Small"},o.createElement(oe.Select,{id:(0,u.createDomId)(t,"orientation-select"),"data-name":"orientation-select",className:Ae.dropdown,menuClassName:Ae.dropdownMenu,disabled:Y,value:F,items:P.map(Le),onChange:H})))),J(T,v,g,!!v&&!Z),J(N,y,b,!!y&&!U,w,V),E&&o.createElement(s.CommonSection,{id:t+"Wrap",offset:k,checked:E,title:z,disabled:e.disabled||L}));var Q;function q(e,t,n){return e?o.createElement(Me,{className:Ae.fontStyleButton,icon:t,property:e,disabled:Y,"data-name":n}):null}function G(){return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:Ae.colorPicker},o.createElement(I,{color:n,disabled:Y})),i&&D&&o.createElement(De,{id:(0,u.createDomId)(t,"font-size-select"),property:i,fontSizes:D, +disabled:Y}))}function $(){return o.createElement(o.Fragment,null,q(c,ze,"toggle-bold"),q(d,ke,"toggle-italic"))}function J(e,n,i,r,a,l){return i||n?o.createElement(s.CommonSection,{id:t+"ColorSelect",offset:k,checked:n,title:e,disabled:Y},i&&o.createElement(I,{color:i,thickness:a,thicknessItems:l,disabled:Y||r})):null}}var Ie=n(51285);function We(e){const{definition:{properties:{x:t,y:n,disabled:i},id:r,minX:a,maxX:s,stepX:l,minY:c,maxY:d,stepY:u,title:p,typeX:h,typeY:m},offset:f}=e,v=i&&i.value()||e.disabled,g=(0,J.useWatchedValueReadonly)({watchedValue:a,defaultValue:void 0}),y=(0,J.useWatchedValueReadonly)({watchedValue:s,defaultValue:void 0}),b=(0,J.useWatchedValueReadonly)({watchedValue:l,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:c,defaultValue:void 0}),E=(0,J.useWatchedValueReadonly)({watchedValue:d,defaultValue:void 0}),_=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0});return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{verticalAlign:"adaptive",placement:"first",offset:f,"data-section-name":r},o.createElement("span",{className:Ie.coordinates},p)),(t||n)&&o.createElement(Te.PropertyTable.Cell,{placement:"last",offset:f,"data-section-name":r},o.createElement(K,{breakPoint:"Medium"},n&&o.createElement(S,{className:Ie.input,property:n,min:w,max:E,step:_,disabled:v,name:"y-input",mode:void 0!==m?$[m]:"integer"}),t&&o.createElement(S,{className:Ie.input,property:t,min:g,max:y,step:b,disabled:v,name:"x-input",mode:void 0!==h?$[h]:"integer"}))))}var Fe=n(89477);function He(e){const{definition:{id:t,properties:{checked:n,option:i,disabled:r,visible:l},title:c,options:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[v]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),g=(0,o.useContext)(ye.ControlCustomWidthContext),y=e.disabled||!m;return v?o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:e.disabled||f},o.createElement(X.CellWrap,null,o.createElement(re,{id:(0,u.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:d()(Fe.dropdown,g[t]&&Fe[g[t]]),menuClassName:d()(Fe.dropdownMenu,g[t]&&Fe[g[t]]),disabled:y||f,property:i,options:p}))):null}var Oe=n(71953);var je=n(62820),Ze=n(65830);class Ue extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame(()=>{const{from:t,to:n,min:o,max:i}=this.props,r=this._getNewPosition(e),a=1===this._detectPointerMode(e),s=a?(0,E.clamp)(r,o,n):t,l=a?n:(0,E.clamp)(r,t,i);s<=l&&this._handleChange(s,l),this._rafPosition=null}))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame(()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null, +this.props.onCommit()}))},this._onSliderClick=e=>{D.CheckMobile.any()||(this._handlePosition(e.nativeEvent),this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:r,max:a}=this.props,{pointerDragMode:s}=this.state,l=0!==s,d=a-r,u=0===d?r:(n-r)/d,p=0===d?a:(i-r)/d,h=(0,je.isRtl)()?"right":"left";return o.createElement("div",{className:c(e,Ze.range,t&&Ze.disabled)},o.createElement("div",{className:Ze.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:Ze.rangeSliderMiddleWrap},o.createElement("div",{className:c(Ze.rangeSliderMiddle,l&&Ze.dragged),style:{[h]:100*u+"%",width:100*(p-u)+"%"}})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*u+"%"},ref:this._refPointer})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,v.ensureNotNull)(this._container),r=(0,v.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),s=r.offsetWidth;let l=e.clientX-s/2-a.left;return(0,je.isRtl)()&&(l=a.width-l-s),(0,E.clamp)(l/(a.width-s),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),s=r===a?io.createElement(K,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:Qe.valueInput},o.createElement(C,{className:Qe.input,sharedBuffer:M,min:b,max:g(z)?w:z,step:1,disabled:L,name:"from-input",mode:"integer",defaultValue:b}),e?o.createElement("span",{className:Qe.rangeSlider},"—"):o.createElement(Ue,{className:d()(Qe.rangeSlider,B&&Qe.rangeSlider_mixed),from:B?b:P,to:B?w:z,min:b,max:w,onChange:I,onCommit:W,disabled:L}))),o.createElement(o.Fragment,null,o.createElement("span",{className:Qe.valueInput},o.createElement(C,{className:Qe.input,sharedBuffer:V,min:g(P)?b:P,max:w,step:1,disabled:L,name:"to-input",mode:"integer",defaultValue:w})))))}()));function I(e,t){T(Math.round(e)),k(Math.round(t))}function W(){R.flushed||(N(),A(),R.flushed=!0)}}var Xe=n(86067),Ge=n(53424),Ke=n(67474);function $e(e){const{definitions:t,name:n,offset:i}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:d()(Ke.cell,Ke.fragmentCell),offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map(e=>o.createElement("div",{className:Ke.item,key:e.id,"data-section-name":e.id},o.createElement(et,{definition:e})))))}function Je(e){const{definition:t,offset:n}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:Ke.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(et,{definition:t})))}function et(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:r,level:s,width:l,style:c},title:p,widthValues:m,styleValues:f}}=e,[v]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[g]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),y=g||!v;return o.createElement(o.Fragment,null,o.createElement(Ge.CheckableTitle,{name:"is-enabled-"+t,className:d()(p&&Ke.withTitle),title:p&&o.createElement("span",{className:Ke.title},p),property:i,disabled:g}),s&&o.createElement(S,{className:d()(Ke.input,Ke.control),property:s,disabled:y}),r&&o.createElement(I,{className:Ke.control,disabled:y,color:r,thickness:l,thicknessItems:m}),c&&o.createElement(h,{id:(0,u.createDomId)(t,"leveled-line-style-select"),className:Ke.control,property:c,disabled:y,allowedLineStyles:f}))}var tt=n(33126);function nt(e){const{definition:{id:t,properties:{option1:n,option2:i,checked:r,disabled:l},title:c,optionsItems1:d,optionsItems2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l, +defaultValue:!1}),v=e.disabled||!m;return o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:c,disabled:e.disabled||f},o.createElement(K,{className:tt.twoOptions},o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:tt.dropdown,menuClassName:tt.menu,property:n,disabled:v,options:d}),o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:tt.dropdown,menuClassName:tt.menu,property:i,disabled:v,options:p})))}var ot=n(22855),it=n(29148);function rt(e){const{source:t,inputs:n,model:i,inputsTabProperty:r}=e.definition;return o.createElement(ot.InputsTabContent,{className:it.withoutPadding,property:r,model:i,study:t,inputs:n})}var at=n(15294),st=n(56840),lt=n(59255);var ct=n(40681);function dt(e){const{tab:t,icon:n,isActive:i,onTabClick:r}=e;return o.createElement("div",{className:d()(ct.wrapper,i&&ct.isActive),onClick:function(){r(t)}},o.createElement(Se.Icon,{icon:n}))}var ut=n(88436);function pt(e){const{activeTab:t,emojis:n,onTabClick:i}=e;return o.createElement("div",{className:ut.wrapper},n.map(({title:e,icon:n})=>o.createElement(dt,{key:e,tab:e,icon:n,isActive:t===e,onTabClick:i})))}var ht=n(69397),mt=n(16859);function ft(e){const{title:t}=e;return o.createElement("div",{className:mt.wrapper},t)}var vt=n(72077),gt=n(99339);const yt=34;function bt(e){const{className:t,emoji:n,size:i=yt,onClick:r}=e,a=(0,vt.getTwemojiUrl)(n,"png");return o.createElement("div",{className:d()(gt.wrapper,t),style:{width:i,height:i},onClick:function(){r(n)}},o.createElement("img",{className:gt.emoji,src:a,decoding:"async",width:"24",height:"24",alt:"",draggable:!1,onContextMenu:function(e){e.preventDefault()}}))}var wt=n(39897);const Et=o.memo(e=>{const{emojis:t,itemSize:n,onEmojiClick:i}=e;return o.createElement("div",{className:wt.wrapper},t.map(e=>o.createElement(bt,{key:e,className:wt.emojiItem,emoji:e,size:n,onClick:i})))});var _t=n(78036),Dt=n(83341);const St=o.createContext(null);function Ct(e){const{listRef:t,emojiGroups:n,emojiSize:i,onSelect:r,onContentRendered:a}=e;(0,o.useEffect)(()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.resetAfterIndex(0,!0)},[n]);const s=(0,o.useCallback)(e=>"title"===n[e].type?30:38,[n]),l=(0,o.useCallback)(({visibleStartIndex:e})=>{const{relatedTitle:t}=n[e];a(t)},[n,a]);return o.createElement(St.Provider,{value:(0,o.useMemo)(()=>({size:i,onSelect:r}),[i,r])},o.createElement(ht.VariableSizeList,{className:Dt.list,ref:t,width:"100%",height:Math.min(330,window.innerHeight-60),itemData:n,itemCount:n.length,children:xt,onItemsRendered:l,itemSize:s}))}const xt=o.memo(e=>{const{style:t,index:n,data:i}=e,r=i[n],{size:a,onSelect:s}=(0,_t.useEnsuredContext)(St);return"title"===r.type?o.createElement("div",{style:t},o.createElement(ft,{title:r.relatedTitle})):o.createElement("div",{style:t},o.createElement(Et,{emojis:r.content,itemSize:a,onEmojiClick:s}))});var Mt=n(70358);function Pt(e){var t;const{className:n,emojis:i,onSelect:r}=e,a=(0,o.useRef)(null),[s,l]=(0, +o.useState)(0),c=(0,o.useMemo)(()=>function(e,t){if(0===t)return[];const n=[];return e.forEach(({title:e,emojis:o})=>{n.push({type:"title",relatedTitle:e,content:[e]});let i=[];for(const r of o)i.length{n.current=e,null!==i.current&&(i.current.disconnect(),null!==e&&i.current.observe(e))},[n,i]);return(0,o.useEffect)(()=>(i.current=new lt.default((e,t)=>{r.current(e,t)}),n.current&&a(n.current),()=>{var e;null===(e=i.current)||void 0===e||e.disconnect()}),[n,...t]),a}((function(e){const[t]=e,{width:n}=t.contentRect,o=Math.floor((n-12)/38);l(o)})),[p,h]=(0,o.useState)((null===(t=c[0])||void 0===t?void 0:t.relatedTitle)||"");return o.createElement("div",{className:d()(Mt.wrapper,n)},o.createElement(pt,{emojis:i,activeTab:p,onTabClick:function(e){!function(e){var t;null===(t=a.current)||void 0===t||t.scrollToItem(e,"start"),requestAnimationFrame(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.scrollToItem(e,"start")})}(function(e){return c.findIndex(({relatedTitle:t,type:n})=>"title"===n&&t===e)}(e))}}),o.createElement("div",{ref:u},o.createElement(Ct,{listRef:a,emojiGroups:c,emojiSize:38,onSelect:r,onContentRendered:h})))}var Tt=n(80781),Nt=n(67978),Vt=n(36311),zt=n(31006),kt=n(75614),At=n(1033),Bt=n(42925),Lt=n(40526),Rt=n(72843);const It=[{title:(0,W.t)("recently used",{context:"emoji_group"}),emojis:[],icon:Tt},{title:(0,W.t)("smiles & people",{context:"emoji_group"}), +emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","🤏","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦾","🦵","🦿","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","💋","🩸","👶","🧒","👦","👧","🧑","👱","👨","🧔","👨‍🦰","👨‍🦱","👨‍🦳","👨‍🦲","👩","👩‍🦰","🧑‍🦰","👩‍🦱","🧑‍🦱","👩‍🦳","🧑‍🦳","👩‍🦲","🧑‍🦲","👱‍♀️","👱‍♂️","🧓","👴","👵","🙍","🙍‍♂️","🙍‍♀️","🙎","🙎‍♂️","🙎‍♀️","🙅","🙅‍♂️","🙅‍♀️","🙆","🙆‍♂️","🙆‍♀️","💁","💁‍♂️","💁‍♀️","🙋","🙋‍♂️","🙋‍♀️","🧏","🧏‍♂️","🧏‍♀️","🙇","🙇‍♂️","🙇‍♀️","🤦","🤦‍♂️","🤦‍♀️","🤷","🤷‍♂️","🤷‍♀️","🧑‍⚕️","👨‍⚕️","👩‍⚕️","🧑‍🎓","👨‍🎓","👩‍🎓","🧑‍🏫","👨‍🏫","👩‍🏫","🧑‍⚖️","👨‍⚖️","👩‍⚖️","🧑‍🌾","👨‍🌾","👩‍🌾","🧑‍🍳","👨‍🍳","👩‍🍳","🧑‍🔧","👨‍🔧","👩‍🔧","🧑‍🏭","👨‍🏭","👩‍🏭","🧑‍💼","👨‍💼","👩‍💼","🧑‍🔬","👨‍🔬","👩‍🔬","🧑‍💻","👨‍💻","👩‍💻","🧑‍🎤","👨‍🎤","👩‍🎤","🧑‍🎨","👨‍🎨","👩‍🎨","🧑‍✈️","👨‍✈️","👩‍✈️","🧑‍🚀","👨‍🚀","👩‍🚀","🧑‍🚒","👨‍🚒","👩‍🚒","👮","👮‍♂️","👮‍♀️","🕵","🕵️‍♂️","🕵️‍♀️","💂","💂‍♂️","💂‍♀️","👷","👷‍♂️","👷‍♀️","🤴","👸","👳","👳‍♂️","👳‍♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦸‍♂️","🦸‍♀️","🦹","🦹‍♂️","🦹‍♀️","🧙","🧙‍♂️","🧙‍♀️","🧚","🧚‍♂️","🧚‍♀️","🧛","🧛‍♂️","🧛‍♀️","🧜","🧜‍♂️","🧜‍♀️","🧝","🧝‍♂️","🧝‍♀️","🧞","🧞‍♂️","🧞‍♀️","🧟","🧟‍♂️","🧟‍♀️","💆","💆‍♂️","💆‍♀️","💇","💇‍♂️","💇‍♀️","🚶","🚶‍♂️","🚶‍♀️","🧍","🧍‍♂️","🧍‍♀️","🧎","🧎‍♂️","🧎‍♀️","🧑‍🦯","👨‍🦯","👩‍🦯","🧑‍🦼","👨‍🦼","👩‍🦼","🧑‍🦽","👨‍🦽","👩‍🦽","🏃","🏃‍♂️","🏃‍♀️","💃","🕺","🕴","👯","👯‍♂️","👯‍♀️","🧖","🧖‍♂️","🧖‍♀️","🧑‍🤝‍🧑","👭","👫","👬","💏","👨‍❤️‍💋‍👨","👩‍❤️‍💋‍👩","💑","👨‍❤️‍👨","👩‍❤️‍👩","👪","👨‍👩‍👦","👨‍👩‍👧","👨‍👩‍👧‍👦","👨‍👩‍👦‍👦","👨‍👩‍👧‍👧","👨‍👨‍👦","👨‍👨‍👧","👨‍👨‍👧‍👦","👨‍👨‍👦‍👦","👨‍👨‍👧‍👧","👩‍👩‍👦","👩‍👩‍👧","👩‍👩‍👧‍👦","👩‍👩‍👦‍👦","👩‍👩‍👧‍👧","👨‍👦","👨‍👦‍👦","👨‍👧","👨‍👧‍👦","👨‍👧‍👧","👩‍👦","👩‍👦‍👦","👩‍👧","👩‍👧‍👦","👩‍👧‍👧","🗣","👤","👥","👣"],icon:Nt},{title:(0,W.t)("animals & nature",{context:"emoji_group"}), +emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕‍🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","🌊","🌫"],icon:Vt},{title:(0,W.t)("food & drink",{context:"emoji_group"}),emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂"],icon:zt},{title:(0,W.t)("activity",{context:"emoji_group"}),emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️","🏋️‍♂️","🏋️‍♀️","🤼","🤼‍♂️","🤼‍♀️","🤸‍♀️","🤸","🤸‍♂️","⛹️","⛹️‍♂️","⛹️‍♀️","🤺","🤾","🤾‍♂️","🤾‍♀️","🏌️","🏌️‍♂️","🏌️‍♀️","🏇","🧘","🧘‍♂️","🧘‍♀️","🏄","🏄‍♂️","🏄‍♀️","🏊","🏊‍♂️","🏊‍♀️","🤽","🤽‍♂️","🤽‍♀️","🚣","🚣‍♂️","🚣‍♀️","🧗","🧗‍♂️","🧗‍♀️","🚵","🚵‍♂️","🚵‍♀️","🚴","🚴‍♂️","🚴‍♀️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹‍♂️","🤹‍♀️","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🪕","🎻","🎲","🎯","🎳","🎮","🎰","🧩"],icon:kt},{title:(0,W.t)("travel & places",{context:"emoji_group"}),emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"],icon:At},{title:(0,W.t)("objects",{context:"emoji_group"}), +emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓","🧳","🌂","☂️","🧵","🧶","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🎒","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","💄","💍","💼"],icon:Bt},{title:(0,W.t)("symbols",{context:"emoji_group"}),emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁‍🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"],icon:Lt},{title:(0,W.t)("flags",{context:"emoji_group"}), +emojis:["🏳️","🏴","🏁","🚩","🏳️‍🌈","🏴‍☠️","🇦🇫","🇦🇽","🇦🇱","🇩🇿","🇦🇸","🇦🇩","🇦🇴","🇦🇮","🇦🇶","🇦🇬","🇦🇷","🇦🇲","🇦🇼","🇦🇺","🇦🇹","🇦🇿","🇧🇸","🇧🇭","🇧🇩","🇧🇧","🇧🇾","🇧🇪","🇧🇿","🇧🇯","🇧🇲","🇧🇹","🇧🇴","🇧🇦","🇧🇼","🇧🇷","🇮🇴","🇻🇬","🇧🇳","🇧🇬","🇧🇫","🇧🇮","🇰🇭","🇨🇲","🇨🇦","🇮🇨","🇨🇻","🇧🇶","🇰🇾","🇨🇫","🇹🇩","🇨🇱","🇨🇳","🇨🇽","🇨🇨","🇨🇴","🇰🇲","🇨🇬","🇨🇩","🇨🇰","🇨🇷","🇨🇮","🇭🇷","🇨🇺","🇨🇼","🇨🇾","🇨🇿","🇩🇰","🇩🇯","🇩🇲","🇩🇴","🇪🇨","🇪🇬","🇸🇻","🇬🇶","🇪🇷","🇪🇪","🇪🇹","🇪🇺","🇫🇰","🇫🇴","🇫🇯","🇫🇮","🇫🇷","🇬🇫","🇵🇫","🇹🇫","🇬🇦","🇬🇲","🇬🇪","🇩🇪","🇬🇭","🇬🇮","🇬🇷","🇬🇱","🇬🇩","🇬🇵","🇬🇺","🇬🇹","🇬🇬","🇬🇳","🇬🇼","🇬🇾","🇭🇹","🇭🇳","🇭🇰","🇭🇺","🇮🇸","🇮🇳","🇮🇩","🇮🇷","🇮🇶","🇮🇪","🇮🇲","🇮🇱","🇮🇹","🇯🇲","🇯🇵","🎌","🇯🇪","🇯🇴","🇰🇿","🇰🇪","🇰🇮","🇽🇰","🇰🇼","🇰🇬","🇱🇦","🇱🇻","🇱🇧","🇱🇸","🇱🇷","🇱🇾","🇱🇮","🇱🇹","🇱🇺","🇲🇴","🇲🇰","🇲🇬","🇲🇼","🇲🇾","🇲🇻","🇲🇱","🇲🇹","🇲🇭","🇲🇶","🇲🇷","🇲🇺","🇾🇹","🇲🇽","🇫🇲","🇲🇩","🇲🇨","🇲🇳","🇲🇪","🇲🇸","🇲🇦","🇲🇿","🇲🇲","🇳🇦","🇳🇷","🇳🇵","🇳🇱","🇳🇨","🇳🇿","🇳🇮","🇳🇪","🇳🇬","🇳🇺","🇳🇫","🇰🇵","🇲🇵","🇳🇴","🇴🇲","🇵🇰","🇵🇼","🇵🇸","🇵🇦","🇵🇬","🇵🇾","🇵🇪","🇵🇭","🇵🇳","🇵🇱","🇵🇹","🇵🇷","🇶🇦","🇷🇪","🇷🇴","🇷🇺","🇷🇼","🇼🇸","🇸🇲","🇸🇦","🇸🇳","🇷🇸","🇸🇨","🇸🇱","🇸🇬","🇸🇽","🇸🇰","🇸🇮","🇬🇸","🇸🇧","🇸🇴","🇿🇦","🇰🇷","🇸🇸","🇪🇸","🇱🇰","🇧🇱","🇸🇭","🇰🇳","🇱🇨","🇵🇲","🇻🇨","🇸🇩","🇸🇷","🇸🇿","🇸🇪","🇨🇭","🇸🇾","🇹🇼","🇹🇯","🇹🇿","🇹🇭","🇹🇱","🇹🇬","🇹🇰","🇹🇴","🇹🇹","🇹🇳","🇹🇷","🇹🇲","🇹🇨","🇹🇻","🇻🇮","🇺🇬","🇺🇦","🇦🇪","🇬🇧","🏴󠁧󠁢󠁥󠁮󠁧󠁿","🏴󠁧󠁢󠁳󠁣󠁴󠁿","🏴󠁧󠁢󠁷󠁬󠁳󠁿","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇺","🇻🇦","🇻🇪","🇻🇳","🇼🇫","🇪🇭","🇾🇪","🇿🇲","🇿🇼"],icon:Rt}];var Wt=n(50628),Ft=n(37558),Ht=n(41590),Ot=n(27317),jt=n(40173);var Zt=n(40233),Ut=n(24437),Yt=n(90896);function Qt(e){const{children:t,highlight:n,disabled:i,reference:r}=e,a=n?"primary":"default";return o.createElement("div",{ref:r,className:d()(Yt.wrapper,Yt["intent-"+a],Yt["border-thin"],Yt["size-medium"],n&&Yt.highlight,n&&Yt.focused,i&&Yt.disabled),"data-role":"button"},o.createElement("div",{className:d()(Yt.childrenContainer,i&&Yt.disabled)},t),n&&o.createElement("span",{className:Yt.shadow}))}var qt=n(95076);const Xt=()=>null,Gt=(0,jt.mergeThemes)(Ot.DEFAULT_MENU_THEME,{menuBox:qt.menuBox});function Kt(e){const{value:t,disabled:n,onSelect:i}=e,r=(0,o.useRef)(null),{current:a}=(0,o.useRef)(st.getJSON("RecentlyUsedEmojis",[t])),[s,l]=(0,o.useState)(a),[c,d]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>d(!1),[]);var p;p=u,(0,o.useEffect)(()=>(document.addEventListener("scroll",p),()=>{document.removeEventListener("scroll",p)}),[p]);const h=(0,o.useCallback)(e=>{const t=Array.from(new Set([e,...s])).slice(0,18);st.setJSON("RecentlyUsedEmojis",t),l(t),i(e),u()},[s,i]),m=(f=s,(0,o.useMemo)(()=>(It[0].emojis=f,[...It]),[f]));var f;return o.createElement(o.Fragment,null,o.createElement(Qt,{reference:r, +highlight:c,disabled:n},o.createElement(bt,{emoji:t,onClick:function(){n||d(!0)}})),o.createElement(Ye.MatchMedia,{rule:Ut.DialogBreakpoints.TabletSmall},e=>c&&o.createElement(Ft.DrawerManager,null,e?o.createElement(Ht.Drawer,{className:qt.drawer,position:"Bottom",onClose:u},o.createElement(Pt,{emojis:m,onSelect:h})):o.createElement(Wt.PopupMenu,{theme:Gt,isOpened:!0,position:(0,Zt.getPopupPositioner)(r.current,{horizontalDropDirection:Zt.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:Zt.HorizontalAttachEdge.Left}),onClickOutside:u,onClose:Xt},o.createElement(Pt,{className:qt.desktopSize,emojis:m,onSelect:h})))))}var $t=n(9688);function Jt(e){const{definition:{title:t,properties:n}}=e,{checked:i,emoji:r,backgroundColor:s}=n,[l,c]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[d,u]=(0,a.useDefinitionProperty)({property:r,defaultValue:"🙂"}),[p,h]=(0,a.useDefinitionProperty)({property:s,defaultValue:ue.colorsPalette["color-tv-blue-a600"]});return o.createElement("div",{className:$t.wrapper},o.createElement(at.Checkbox,{className:$t.checkbox,label:t,checked:l,onChange:function(){c(!l)}}),o.createElement(Kt,{value:d,disabled:!l,onSelect:u}),o.createElement(L.ColorSelect,{className:$t.colorSelect,disabled:!l,color:p,onColorChange:h}))}function en(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,l&&o.createElement(s.CommonSection,{id:t,offset:c,title:l,disabled:e.disabled||d}),r.map(e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(l)}))):null}function tn(e){const{definition:t,offset:n,disabled:a}=e;if(function(e){(0,o.useEffect)(()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach(([n,o])=>{void 0!==o&&o.subscribe(t,()=>Oe.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`))}),()=>{Object.entries(t).forEach(([,e])=>{void 0!==e&&e.unsubscribeAll(t)})}},[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(nn,{definition:t,offset:n,disabled:a});switch(t.propType){case"line":return o.createElement(te,{...e,definition:t});case"checkable":return o.createElement(l,{...e,definition:t});case"color":return o.createElement(ce,{...e,definition:t});case"transparency":return o.createElement(fe,{...e,definition:t});case"twoColors":return o.createElement(ge,{...e,definition:t});case"number":return o.createElement(we,{...e,definition:t});case"symbol":return o.createElement(r.SymbolInputsButton,{...e,definition:t});case"text":return o.createElement(Re,{...e,definition:t});case"checkableSet":return o.createElement(Ee,{...e,definition:t});case"set":return o.createElement(en,{...e,definition:t});case"options":return o.createElement(He,{...e,definition:t});case"range":return o.createElement(qe,{...e,definition:t});case"coordinates": +return o.createElement(We,{...e,definition:t});case"twoOptions":return o.createElement(nt,{...e,definition:t});case"leveledLine":return o.createElement(Je,{...e,definition:t});case"emoji":return o.createElement(Jt,{...e,definition:t});case"image":return null;case"studyInputs":return o.createElement(rt,{...e,definition:t});default:return null}}function nn(e){const{definition:t}=e,n=(0,J.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,J.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?o.createElement(o.Fragment,null,t.title&&o.createElement(Xe.GroupTitleSection,{title:t.title,name:t.id}),n&&(r=n,r.reduce((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[])).map(n=>Array.isArray(n)?o.createElement($e,{key:n[0].id,name:t.id,definitions:n}):o.createElement(tn,{key:n.id,...e,definition:n})),"general"===t.groupType&&o.createElement(Te.PropertyTable.GroupSeparator,{size:1})):null;var r}},98526:(e,t,n)=>{"use strict";n.d(t,{Dialog:()=>c});var o=n(59496),i=n(97754),r=n(50655),a=n(88216),s=n(90186),l=n(17683);class c extends o.PureComponent{constructor(){super(...arguments),this._manager=new a.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:a=!1,className:c,backdrop:d}=this.props,u=i(c,l.dialog,e&&l.rounded,t&&l.shadowed,n&&l.fullscreen,a&&l.darker),p=(0,s.filterDataProps)(this.props),h=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(r.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:l.backdrop}),o.createElement("div",{...p,className:u,style:h,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(r.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:i,zIndex:r,height:a}=this.props;return{bottom:e,left:t,right:o,top:i,zIndex:r,maxWidth:n,height:a}}}},95711:(e,t,n)=>{"use strict";n.d(t,{PopupContext:()=>o});const o=n(59496).createContext(null)},81e3:(e,t,n)=>{"use strict";n.d(t,{PopupDialog:()=>_});var o=n(59496),i=n(97754),r=n(88537),a=n(98526),s=n(86431),l=n(76594),c=n(64514);function d(e,t,n,o){return e+t>o&&(e=o-t),e{if(0!==e.button||this._isTargetNoDraggable(e))return;e.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove), +document.addEventListener("mouseup",this._onMouseDragEnd);const t=u(p(e));this._dragStart(t)},this._onTouchDragStart=e=>{if(this._isTargetNoDraggable(e))return;this._canBeTouchClick=!0,e.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const t=u(h(e));this._dragStart(t)},this._onMouseDragEnd=e=>{e.target instanceof Node&&this._header.contains(e.target)&&e.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=e=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(e){if(e instanceof SVGElement){const t=document.createEvent("SVGEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}e instanceof HTMLElement&&e.click()}(e.target))},this._onMouseDragMove=e=>{const t=u(p(e));this._dragMove(t)},this._onTouchDragMove=e=>{this._canBeTouchClick=!1,e.preventDefault();const t=u(h(e));this._dragMove(t)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=e,this._header=t,this._options=n,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(e){this._options=e}_dragStart(e){const t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,finishX:e.x,finishY:e.y,dialogX:t.left,dialogY:t.top};const n=Math.round(t.left),o=Math.round(t.top);this._dialog.style.transform=`translate(${n}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(e){if(this._drag){if(this._drag.finishX=e.x,this._drag.finishY=e.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const t=e.x-this._drag.startX,n=e.y-this._drag.startY;this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n)}this._frame=null})}}_moveDialog(e,t){const n=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,i=d(e,n.width,o?0:-1/0,o?window.innerWidth:1/0),r=d(t,n.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}_isTargetNoDraggable(e){return e.target instanceof Element&&null!==e.target.closest("[data-disable-drag]")}}const f={vertical:0};class v{constructor(e,t){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=e, +this._guard=t.guard||f,this._calculateDialogPosition=t.calculateDialogPosition,this._initialHeight=e.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(e){this._guard=e.guard||f,this._calculateDialogPosition=e.calculateDialogPosition}setFullscreen(e){this._isFullscreen!==e&&(this._isFullscreen=e,this.recalculateBounds())}centerAndFit(){const{x:e,y:t}=this.getDialogsTopLeftCoordinates(),n=this._calcAvailableHeight(),o=this._calcDialogHeight();if(n===o)if(this._calculateDialogPosition){const{left:e,top:t}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${e}px, ${t}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:e,clientWidth:t}=document.documentElement,n=this._calcDialogHeight(),o=t/2-this._dialog.clientWidth/2,i=e/2-n/2;return{x:Math.round(o),y:Math.round(i)}}recalculateBounds(){const{clientHeight:e,clientWidth:t}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:n}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:t,clientHeight:e},{vertical:n}),{left:i,top:r}=o;this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),i=e-2*n,r=d(o.left,o.width,0,t),a=d(o.top,o.height,n,e);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(r)}px, ${Math.round(a)}px)`,this._dialog.style.height=i{const{reference:t}=this.props;this._dialog=e,"function"==typeof t&&t(e)},this._handleFocus=e=>{this._moveToTop()},this._handleMouseDown=e=>{this._moveToTop()},this._handleTouchStart=e=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(y.PopupContext.Provider,{value:this},o.createElement(l.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},e=>o.createElement("div",{ref:e,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart, +"data-dialog-name":this.props["data-dialog-name"]},o.createElement(a.Dialog,{style:this._applyAnimationCSSVariables(),...this.props,reference:this._handleDialogRef,className:i(w.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:e,boundByScreen:t,onDragStart:n}=this.props,o=(0,r.ensureNotNull)(this._dialog);if(e){const e=o.querySelector("[data-dragg-area]");e&&e instanceof HTMLElement&&(this._drag=new m(o,e,{boundByScreen:Boolean(t),onDragStart:n}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,b.setFixedBodyState)(!0);const{guard:i,calculateDialogPosition:a}=this.props;this._resize=new v(o,{guard:i,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:e,calculateDialogPosition:t}=this.props;this._resize.updateOptions({guard:e,calculateDialogPosition:t}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,b.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(e){if(this._resize&&this._dialog){const{x:t,y:n}=e,{x:o,y:i}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",t+"px"),this._dialog.style.setProperty("--animationTranslateStartY",n+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",i+"px"),this._dialog.classList.add(w.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}E.contextType=g.PortalContext,E.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const _=(0,s.makeOverlapable)(E)},95276:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosure:()=>c});var o=n(59496),i=n(66092),r=n(26597),a=n(72887),s=n(68721),l=n(66230);const c=o.forwardRef((e,t)=>{const{id:n,tabIndex:c,disabled:d,highlight:u,intent:p,children:h,onClick:m,onFocus:f,onBlur:v,listboxAria:g,...y}=e,b=(0,o.useRef)({"aria-labelledby":n}),{listboxId:w,isOpened:E,isFocused:_,buttonTabIndex:D,listboxTabIndex:S,highlight:C,intent:x,onOpen:M,close:P,toggle:T,buttonFocusBindings:N,onButtonClick:V,buttonRef:z,listboxRef:k,buttonAria:A}=(0, +s.useControlDisclosure)({id:n,disabled:d,buttonTabIndex:c,intent:p,highlight:u,onFocus:f,onBlur:v,onClick:m}),B=(0,r.useKeyboardToggle)(T),L=(0,r.useKeyboardClose)(E,P),R=(0,r.useKeyboardActionHandler)([27],P,(0,o.useCallback)(()=>E,[E])),I=(0,r.useKeyboardEventHandler)(B,L),W=(0,r.useKeyboardEventHandler)(R);return o.createElement(a.ControlDisclosureView,{...y,...N,...A,id:n,role:"button",tabIndex:D,disabled:d,isOpened:E,isFocused:_,ref:(0,i.useMergedRefs)([z,t]),highlight:C,intent:x,onClose:P,onOpen:M,onClick:V,onKeyDown:I,listboxId:w,listboxTabIndex:S,listboxReference:k,listboxAria:null!=g?g:b.current,onListboxKeyDown:W},h,o.createElement("span",{className:l.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:P}))});c.displayName="ControlDisclosure"},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>i,DrawerContext:()=>r});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(r.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const r=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>h});var o=n(59496),i=n(88537),r=n(97754),a=n(59142),s=n(43989),l=n(65718),c=n(37558),d=n(49483),u=n(29197),p=n(66998);function h(e){const{position:t="Bottom",onClose:n,children:h,className:m,theme:f=p}=e,v=(0,i.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[g,y]=(0,o.useState)(0),b=(0,o.useRef)(null),w=(0,o.useContext)(u.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,i.ensureNotNull)(b.current);return e.focus({preventScroll:!0}),w.subscribe(v,n),0===v.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),y(v.addDrawer()),()=>{w.unsubscribe(v,n);const t=v.removeDrawer();d.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),o.createElement(l.Portal,null,o.createElement("div",{className:r(p.wrap,p["position"+t])},g===v.currentDrawer&&o.createElement("div",{className:p.backdrop,onClick:n}),o.createElement("div",{className:r(p.drawer,f.drawer,p["position"+t],m),ref:b,tabIndex:-1,"data-name":e["data-name"]},h)))}},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>d});var o=n(28353),i=n(59496),r=n(97754),a=n(9745),s=n(73366),l=n(73432);const c={remove:(0,o.t)("Remove")};function d(e){const{className:t,isActive:n,onClick:o,onMouseDown:d,title:u,hidden:p,"data-name":h="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":h,className:r(l.button,"apply-common-tooltip",n&&l.active,p&&l.hidden,t),icon:s,onClick:o,onMouseDown:d,title:u||c.remove})}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const r=n[i]||i;r in e&&(o[i]=[e[r],t[i]].join(" "))}return o}function i(e,t,n={}){ +return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>i})},31328:e=>{e.exports=''},73366:e=>{e.exports=''},19726:e=>{e.exports=''},56326:e=>{e.exports=''},50303:e=>{e.exports=''},20618:e=>{e.exports=''},56775:e=>{e.exports=''},23848:e=>{e.exports=''},86508:e=>{e.exports=''},27603:e=>{e.exports=''},75614:e=>{ +e.exports=''},36311:e=>{ +e.exports=''},72843:e=>{e.exports=''},31006:e=>{ +e.exports=''},42925:e=>{e.exports=''},80781:e=>{e.exports=''},67978:e=>{ +e.exports=''},40526:e=>{e.exports=''},1033:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/245f40c6e1d758167db8571398efaef2.svg b/charting_library/bundles/245f40c6e1d758167db8571398efaef2.svg new file mode 100644 index 00000000..4e11fe62 --- /dev/null +++ b/charting_library/bundles/245f40c6e1d758167db8571398efaef2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2502.82e28010896833a0f183.js b/charting_library/bundles/2502.82e28010896833a0f183.js new file mode 100644 index 00000000..d4db8060 --- /dev/null +++ b/charting_library/bundles/2502.82e28010896833a0f183.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2502],{6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},91131:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},97737:(e,t,n)=>{"use strict";n.d(t,{AnchorButton:()=>d,Button:()=>c});var r=n(59496),o=n(71036);function s(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function a(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function i(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:a(t),size:i(n),variant:s(r),stretch:o,startIcon:l}}function c(e){return r.createElement(o.SquareButton,{...l(e)})}function u(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:a(t),size:i(n),variant:s(r),stretch:o,startIcon:l}}function d(e){return r.createElement(o.SquareAnchorButton,{...u(e)})}},71036:(e,t,n)=>{"use strict";n.d(t,{SquareAnchorButton:()=>f,SquareButton:()=>h});var r=n(59496),o=n(97754),s=n(95604),a=n(9745),i=n(6539),l=n.n(i);function c(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:a=!1,icon:i,startIcon:c,endIcon:u,iconOnly:d=!1,className:p,isGrouped:m,cellState:h,disablePositionAdjustment:v=!1}=e,f=function(e){let t="";return 0!==e&&(1&e&&(t=o(t,l()["no-corner-top-left"])), +2&e&&(t=o(t,l()["no-corner-top-right"])),4&e&&(t=o(t,l()["no-corner-bottom-right"])),8&e&&(t=o(t,l()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(h));return o(p,l().button,l()["size-"+n],l()["color-"+t],l()["variant-"+r],a&&l().stretch,(i||c)&&l()["with-start-icon"],u&&l()["with-end-icon"],d&&l()["icon-only"],f,m&&l().grouped,m&&!v&&l()["adjust-position"],m&&h.isTop&&l()["first-row"],m&&h.isLeft&&l()["first-col"])}function u(e){const{size:t,startIcon:n,icon:o,iconOnly:s,children:i,endIcon:c}=e,u=null!=n?n:o;return r.createElement(r.Fragment,null,u&&"xsmall"!==t&&r.createElement(a.Icon,{icon:u,className:l()["start-icon-wrap"]}),i&&r.createElement("span",{className:l().content},i),c&&!s&&"xsmall"!==t&&r.createElement(a.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var d=n(86332),p=n(90186);function m(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:a,icon:i,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function h(e){const{reference:t,...n}=e,{isGrouped:o,cellState:s,disablePositionAdjustment:a}=(0,r.useContext)(d.ControlGroupContext),i=c({...n,isGrouped:o,cellState:s,disablePositionAdjustment:a});return r.createElement("button",{...m(n),className:i,ref:t},r.createElement(u,{...n}))}function v(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:a,icon:i,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function f(e){const{reference:t}=e,{isGrouped:n,cellState:o,disablePositionAdjustment:s}=(0,r.useContext)(d.ControlGroupContext),a=c({...e,isGrouped:n,cellState:o,disablePositionAdjustment:s});return r.createElement("a",{...v(e),className:a,ref:t},r.createElement(u,{...e}))}},50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>p});var r=n(59496),o=n(97754),s=n.n(o),a=n(97737),i=n(88537),l=n(28353),c=n(68335),u=n(85457),d=n(91131);class p extends r.PureComponent{constructor(){super(...arguments),this._dialogRef=r.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:r}=this.props;switch(e){case"submit":t();break;case"cancel":n()}r()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:r}=this.props;13===(0,c.hashFromEvent)(e)&&r&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:o,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:l,submitOnEnterKey:c,...d}=this.props;return r.createElement(u.AdaptivePopupDialog,{...d,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{ +const{render:t,footerLeftRenderer:n,additionalButtons:o,submitButtonText:i,submitButtonDisabled:c,onSubmit:u,cancelButtonText:p,showCancelButton:m=!0,submitButtonClassName:h,cancelButtonClassName:v,buttonsWrapperClassName:f}=this.props;return r.createElement(r.Fragment,null,t(e),r.createElement("div",{className:d.footer},n&&n(e.isSmallWidth),r.createElement("div",{className:s()(d.buttons,f)},o,m&&r.createElement(a.Button,{className:v,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=p?p:(0,l.t)("Cancel")),r.createElement("span",{className:d.submitButton},r.createElement(a.Button,{className:h,disabled:c,name:"submit",onClick:u,"data-name":"submit-button"},null!=i?i:(0,l.t)("Ok"))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>N});var r=n(59496),o=n(88537);var s=n(97754),a=n.n(s),i=n(68335),l=n(35749),c=n(81e3),u=n(1109),d=n(24437),p=n(90692),m=n(95711),h=n(52092),v=n(76422),f=n(9745);const C=r.createContext({setHideClose:()=>{}});var g=n(37257),w=n(91441);function b(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:i,renderAfter:l,draggable:c,className:u,unsetAlign:d}=e,[p,m]=(0,r.useState)(!1);return r.createElement(C.Provider,{value:{setHideClose:m}},r.createElement("div",{className:a()(w.container,u,(n||d)&&w.unsetAlign)},i,r.createElement("div",{"data-dragg-area":c,className:w.title},r.createElement("div",{className:w.ellipsis},t),n&&r.createElement("div",{className:a()(w.ellipsis,w.subtitle)},n)),l,o&&!p&&r.createElement(f.Icon,{className:w.close,icon:g,onClick:s,"data-name":"close","data-role":"button"})))}var E=n(67179);const _={vertical:20},k={vertical:0};class N extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,i.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,l.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t +;v.subscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:s,dataName:i,onClickOutside:l,additionalElementPos:h,additionalHeaderElement:v,backdrop:f,shouldForceFocus:C=!0,showSeparator:g,subtitle:w,draggable:N=!0,fullScreen:y=!1,showCloseIcon:O=!0,rounded:x=!0,isAnimationEnabled:A,growPoint:K,dialogTooltip:D,unsetHeaderAlign:j,onDragStart:S,dataDialogName:z}=this.props,B="after"!==h?v:void 0,Y="after"===h?v:void 0,P="string"==typeof s?s:z||"";return r.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},h=>r.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||y)&&x,className:a()(E.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:d||y,guard:h?k:_,boundByScreen:d||y,shouldForceFocus:C,backdrop:f,draggable:N,isAnimationEnabled:A,growPoint:K,name:this.props.dataName,dialogTooltip:D,onDragStart:S},r.createElement("div",{className:a()(E.wrapper,t),"data-name":i,"data-dialog-name":P},void 0!==s&&r.createElement(b,{draggable:N&&!(d||y),onClose:this._handleClose,renderAfter:Y,renderBefore:B,subtitle:w,title:s,showCloseIcon:O,className:n,unsetAlign:j}),g&&r.createElement(u.Separator,{className:E.separator}),r.createElement(m.PopupContext.Consumer,null,e=>this._renderChildren(e,d||y))))))}}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>a});var r=n(59496),o=n(97754),s=n(91626);function a(e){return r.createElement("div",{className:o(s.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),o=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(o.Portal,null,s)}}}},37257:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/2525.1b05122f135a2c7f4818.css b/charting_library/bundles/2525.1b05122f135a2c7f4818.css new file mode 100644 index 00000000..d023c3d1 --- /dev/null +++ b/charting_library/bundles/2525.1b05122f135a2c7f4818.css @@ -0,0 +1 @@ +.orderInputs-xDWk5IzT{padding:0 37px}@media screen and (max-width:479px){.orderInputs-xDWk5IzT{padding:0 12px}}.container-xDWk5IzT{display:flex;flex-wrap:wrap}.inputContainer-xDWk5IzT{align-items:flex-start;display:flex;flex:1 45%;flex-direction:column;font-size:16px;justify-content:flex-start;margin-bottom:21px;margin-left:5px;margin-right:5px;position:relative}@media screen and (max-width:479px){.inputContainer-xDWk5IzT{flex-basis:100%}}.errors-xDWk5IzT{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;font-size:12px;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;right:0;transform:scale(.85) translateY(3px);transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.titleText-xDWk5IzT{color:#131722;font-size:24px;font-weight:700;margin:0 0 17px}html.theme-dark .titleText-xDWk5IzT{color:#d1d4dc}@media screen and (max-width:479px){.titleText-xDWk5IzT{padding:0 8px}}.orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#131722;box-shadow:inset 0 0 0 30px #fff}html.theme-dark .orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#d1d4dc;box-shadow:inset 0 0 0 30px #131722}.zip-bAIksqmB{direction:ltr} \ No newline at end of file diff --git a/charting_library/bundles/2525.1b05122f135a2c7f4818.rtl.css b/charting_library/bundles/2525.1b05122f135a2c7f4818.rtl.css new file mode 100644 index 00000000..465f3f24 --- /dev/null +++ b/charting_library/bundles/2525.1b05122f135a2c7f4818.rtl.css @@ -0,0 +1 @@ +.orderInputs-xDWk5IzT{padding:0 37px}@media screen and (max-width:479px){.orderInputs-xDWk5IzT{padding:0 12px}}.container-xDWk5IzT{display:flex;flex-wrap:wrap}.inputContainer-xDWk5IzT{align-items:flex-start;display:flex;flex:1 45%;flex-direction:column;font-size:16px;justify-content:flex-start;margin-bottom:21px;margin-left:5px;margin-right:5px;position:relative}@media screen and (max-width:479px){.inputContainer-xDWk5IzT{flex-basis:100%}}.errors-xDWk5IzT{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;font-size:12px;left:0;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;transform:scale(.85) translateY(3px);transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.titleText-xDWk5IzT{color:#131722;font-size:24px;font-weight:700;margin:0 0 17px}html.theme-dark .titleText-xDWk5IzT{color:#d1d4dc}@media screen and (max-width:479px){.titleText-xDWk5IzT{padding:0 8px}}.orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#131722;box-shadow:inset 0 0 0 30px #fff}html.theme-dark .orderInput-UR1489uv:-webkit-autofill{-webkit-text-fill-color:#d1d4dc;box-shadow:inset 0 0 0 30px #131722}.zip-bAIksqmB{direction:ltr} \ No newline at end of file diff --git a/charting_library/bundles/25b2c84d5406c64eefab940998518f5c.svg b/charting_library/bundles/25b2c84d5406c64eefab940998518f5c.svg new file mode 100644 index 00000000..37073d6d --- /dev/null +++ b/charting_library/bundles/25b2c84d5406c64eefab940998518f5c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2624.f55c13c46f516986e4a2.css b/charting_library/bundles/2624.f55c13c46f516986e4a2.css new file mode 100644 index 00000000..ced18dd9 --- /dev/null +++ b/charting_library/bundles/2624.f55c13c46f516986e4a2.css @@ -0,0 +1 @@ +.tv-start-free-trial-bt-8jVavR5U{background:#fff;border-radius:6px;min-height:500px;padding:40px 0}html.theme-dark .tv-start-free-trial-bt-8jVavR5U{background:#131722}.tv-start-free-trial-bt__section-8jVavR5U{padding:0}.tv-start-free-trial-bt__title-8jVavR5U{border-bottom:none;color:#131722;font-size:36px;line-height:44px;margin-bottom:20px;padding:0 40px}html.theme-dark .tv-start-free-trial-bt__title-8jVavR5U{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial-bt__title-8jVavR5U{padding:0 20px}}.tv-start-free-trial-bt__card-container-8jVavR5U{padding:0 40px}.tv-start-free-trial-bt__footer-container-8jVavR5U{margin-bottom:20px;padding:0}.paymentMethodSpinnerContainer-8jVavR5U{margin:0 -20px} \ No newline at end of file diff --git a/charting_library/bundles/2624.f55c13c46f516986e4a2.rtl.css b/charting_library/bundles/2624.f55c13c46f516986e4a2.rtl.css new file mode 100644 index 00000000..ced18dd9 --- /dev/null +++ b/charting_library/bundles/2624.f55c13c46f516986e4a2.rtl.css @@ -0,0 +1 @@ +.tv-start-free-trial-bt-8jVavR5U{background:#fff;border-radius:6px;min-height:500px;padding:40px 0}html.theme-dark .tv-start-free-trial-bt-8jVavR5U{background:#131722}.tv-start-free-trial-bt__section-8jVavR5U{padding:0}.tv-start-free-trial-bt__title-8jVavR5U{border-bottom:none;color:#131722;font-size:36px;line-height:44px;margin-bottom:20px;padding:0 40px}html.theme-dark .tv-start-free-trial-bt__title-8jVavR5U{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial-bt__title-8jVavR5U{padding:0 20px}}.tv-start-free-trial-bt__card-container-8jVavR5U{padding:0 40px}.tv-start-free-trial-bt__footer-container-8jVavR5U{margin-bottom:20px;padding:0}.paymentMethodSpinnerContainer-8jVavR5U{margin:0 -20px} \ No newline at end of file diff --git a/charting_library/bundles/26b5353498b2ca25fcc597890e574005.svg b/charting_library/bundles/26b5353498b2ca25fcc597890e574005.svg new file mode 100644 index 00000000..4565d901 --- /dev/null +++ b/charting_library/bundles/26b5353498b2ca25fcc597890e574005.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/27419b53618cdc6022ec621a38a2e27e.svg b/charting_library/bundles/27419b53618cdc6022ec621a38a2e27e.svg new file mode 100644 index 00000000..c9aa5a8f --- /dev/null +++ b/charting_library/bundles/27419b53618cdc6022ec621a38a2e27e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9309.aceadf5355c94350ec2c.css b/charting_library/bundles/279.9540b575371a0ecfc0bc.css similarity index 96% rename from charting_library/bundles/9309.aceadf5355c94350ec2c.css rename to charting_library/bundles/279.9540b575371a0ecfc0bc.css index 8dff537f..d2f88f7b 100644 --- a/charting_library/bundles/9309.aceadf5355c94350ec2c.css +++ b/charting_library/bundles/279.9540b575371a0ecfc0bc.css @@ -1 +1 @@ -.actionButton-EGu7SRYD{margin:0 6px}.actionButton-EGu7SRYD:first-child{margin-right:0}.actionButton-EGu7SRYD:last-child{margin-left:0}.actionButton-EGu7SRYD.small-EGu7SRYD{margin:6px 0}.actionButton-EGu7SRYD.small-EGu7SRYD:first-child{margin-top:0}.actionButton-EGu7SRYD.small-EGu7SRYD:last-child{margin-bottom:0}.hiddenTitle-EGu7SRYD{visibility:hidden}.popupDialog-2AC2DTdZ{max-height:calc(100% - 20px);max-width:480px;width:calc(100% - 20px)}.wrap-2AC2DTdZ{cursor:default;display:flex;overflow:hidden}.main-2AC2DTdZ{color:#131722;display:flex;flex:1 1 auto;flex-direction:column;margin:40px 0 40px 40px}html.theme-dark .main-2AC2DTdZ{color:#b2b5be}.main-2AC2DTdZ.small-2AC2DTdZ{margin:20px 0 20px 20px}.title-2AC2DTdZ{align-items:center;display:flex;flex:none;font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin-bottom:8px;width:calc(100% - 9px);word-break:break-word}.title-2AC2DTdZ.small-2AC2DTdZ{width:calc(100% - 29px)}.content-2AC2DTdZ{-webkit-overflow-scrolling:touch;display:flex;flex:1 1 auto;flex-direction:column;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:0 -40px;min-height:145px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:8px 40px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin;white-space:pre-wrap;word-break:break-word}html.theme-dark .content-2AC2DTdZ{scrollbar-color:#363a45 #0000}@media screen and (max-height:290px){.content-2AC2DTdZ{min-height:auto}}.content-2AC2DTdZ::-webkit-scrollbar{height:5px;width:5px}.content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-2AC2DTdZ::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-2AC2DTdZ::-webkit-scrollbar-corner{display:none}.content-2AC2DTdZ.small-2AC2DTdZ{margin:0 -20px;padding:8px 20px}.content-2AC2DTdZ.html-2AC2DTdZ{display:block}.content-2AC2DTdZ.html-2AC2DTdZ a,html.theme-dark .content-2AC2DTdZ.html-2AC2DTdZ a{color:#2962ff}.footer-2AC2DTdZ{display:flex;flex:none;flex-direction:row-reverse;justify-content:flex-start;margin-top:16px}.footer-2AC2DTdZ.small-2AC2DTdZ{flex-direction:column}.close-2AC2DTdZ{align-items:center;border-radius:2px;color:#131722;cursor:default;display:flex;flex:none;height:34px;justify-content:center;margin:8px 8px 0 -2px;width:34px}html.theme-dark .close-2AC2DTdZ{color:#b2b5be}@media (any-hover:hover){.close-2AC2DTdZ:hover{background-color:#f0f3fa}html.theme-dark .close-2AC2DTdZ:hover{background-color:#2a2e39}}.close-2AC2DTdZ.small-2AC2DTdZ{margin-left:-22px}.label-lgIqilXY{color:#787b86;font-size:14px;line-height:21px}.input-lgIqilXY{word-break:normal} \ No newline at end of file +.actionButton-EGu7SRYD{margin:0 6px}.actionButton-EGu7SRYD:first-child{margin-right:0}.actionButton-EGu7SRYD:last-child{margin-left:0}.actionButton-EGu7SRYD.small-EGu7SRYD{margin:6px 0}.actionButton-EGu7SRYD.small-EGu7SRYD:first-child{margin-top:0}.actionButton-EGu7SRYD.small-EGu7SRYD:last-child{margin-bottom:0}.hiddenTitle-EGu7SRYD{visibility:hidden}.popupDialog-2AC2DTdZ{max-height:calc(100% - 20px);max-width:480px;width:calc(100% - 20px)}.wrap-2AC2DTdZ{cursor:default;display:flex;overflow:hidden}.main-2AC2DTdZ{color:#131722;display:flex;flex:1 1 auto;flex-direction:column;margin:40px 0 40px 40px}html.theme-dark .main-2AC2DTdZ{color:#b2b5be}.main-2AC2DTdZ.small-2AC2DTdZ{margin:20px 0 20px 20px}.title-2AC2DTdZ{align-items:center;display:flex;flex:none;font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin-bottom:8px;width:calc(100% - 9px);word-break:break-word}.title-2AC2DTdZ.small-2AC2DTdZ{width:calc(100% - 29px)}.content-2AC2DTdZ{-webkit-overflow-scrolling:touch;display:flex;flex:1 1 auto;flex-direction:column;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:0 -40px;min-height:145px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:8px 40px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin;white-space:pre-wrap;word-break:break-word}html.theme-dark .content-2AC2DTdZ{scrollbar-color:#363a45 #0000}@media screen and (max-height:290px){.content-2AC2DTdZ{min-height:auto}}.content-2AC2DTdZ::-webkit-scrollbar{height:5px;width:5px}.content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-2AC2DTdZ::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-2AC2DTdZ::-webkit-scrollbar-corner{display:none}.content-2AC2DTdZ.small-2AC2DTdZ{margin:0 -20px;padding:8px 20px}.content-2AC2DTdZ.html-2AC2DTdZ{display:block}.content-2AC2DTdZ.html-2AC2DTdZ a,html.theme-dark .content-2AC2DTdZ.html-2AC2DTdZ a{color:#2962ff}.footer-2AC2DTdZ{display:flex;flex:none;flex-direction:row-reverse;justify-content:flex-start;margin-top:16px}.footer-2AC2DTdZ.small-2AC2DTdZ{flex-direction:column}.close-2AC2DTdZ{align-items:center;border-radius:2px;color:#131722;cursor:default;display:flex;flex:none;height:34px;justify-content:center;margin:8px 8px 0 -2px;width:34px}html.theme-dark .close-2AC2DTdZ{color:#b2b5be}@media (any-hover:hover){.close-2AC2DTdZ:hover{background-color:#f0f3fa}html.theme-dark .close-2AC2DTdZ:hover{background-color:#2a2e39}}.close-2AC2DTdZ.small-2AC2DTdZ{margin-left:-22px} \ No newline at end of file diff --git a/charting_library/bundles/9309.aceadf5355c94350ec2c.rtl.css b/charting_library/bundles/279.9540b575371a0ecfc0bc.rtl.css similarity index 96% rename from charting_library/bundles/9309.aceadf5355c94350ec2c.rtl.css rename to charting_library/bundles/279.9540b575371a0ecfc0bc.rtl.css index c2fc6627..9a108220 100644 --- a/charting_library/bundles/9309.aceadf5355c94350ec2c.rtl.css +++ b/charting_library/bundles/279.9540b575371a0ecfc0bc.rtl.css @@ -1 +1 @@ -.actionButton-EGu7SRYD{margin:0 6px}.actionButton-EGu7SRYD:first-child{margin-left:0}.actionButton-EGu7SRYD:last-child{margin-right:0}.actionButton-EGu7SRYD.small-EGu7SRYD{margin:6px 0}.actionButton-EGu7SRYD.small-EGu7SRYD:first-child{margin-top:0}.actionButton-EGu7SRYD.small-EGu7SRYD:last-child{margin-bottom:0}.hiddenTitle-EGu7SRYD{visibility:hidden}.popupDialog-2AC2DTdZ{max-height:calc(100% - 20px);max-width:480px;width:calc(100% - 20px)}.wrap-2AC2DTdZ{cursor:default;display:flex;overflow:hidden}.main-2AC2DTdZ{color:#131722;display:flex;flex:1 1 auto;flex-direction:column;margin:40px 40px 40px 0}html.theme-dark .main-2AC2DTdZ{color:#b2b5be}.main-2AC2DTdZ.small-2AC2DTdZ{margin:20px 20px 20px 0}.title-2AC2DTdZ{align-items:center;display:flex;flex:none;font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin-bottom:8px;width:calc(100% - 9px);word-break:break-word}.title-2AC2DTdZ.small-2AC2DTdZ{width:calc(100% - 29px)}.content-2AC2DTdZ{-webkit-overflow-scrolling:touch;display:flex;flex:1 1 auto;flex-direction:column;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:0 -40px;min-height:145px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:8px 40px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin;white-space:pre-wrap;word-break:break-word}html.theme-dark .content-2AC2DTdZ{scrollbar-color:#363a45 #0000}@media screen and (max-height:290px){.content-2AC2DTdZ{min-height:auto}}.content-2AC2DTdZ::-webkit-scrollbar{height:5px;width:5px}.content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-2AC2DTdZ::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-2AC2DTdZ::-webkit-scrollbar-corner{display:none}.content-2AC2DTdZ.small-2AC2DTdZ{margin:0 -20px;padding:8px 20px}.content-2AC2DTdZ.html-2AC2DTdZ{display:block}.content-2AC2DTdZ.html-2AC2DTdZ a,html.theme-dark .content-2AC2DTdZ.html-2AC2DTdZ a{color:#2962ff}.footer-2AC2DTdZ{display:flex;flex:none;flex-direction:row-reverse;justify-content:flex-start;margin-top:16px}.footer-2AC2DTdZ.small-2AC2DTdZ{flex-direction:column}.close-2AC2DTdZ{align-items:center;border-radius:2px;color:#131722;cursor:default;display:flex;flex:none;height:34px;justify-content:center;margin:8px -2px 0 8px;width:34px}html.theme-dark .close-2AC2DTdZ{color:#b2b5be}@media (any-hover:hover){.close-2AC2DTdZ:hover{background-color:#f0f3fa}html.theme-dark .close-2AC2DTdZ:hover{background-color:#2a2e39}}.close-2AC2DTdZ.small-2AC2DTdZ{margin-right:-22px}.label-lgIqilXY{color:#787b86;font-size:14px;line-height:21px}.input-lgIqilXY{word-break:normal} \ No newline at end of file +.actionButton-EGu7SRYD{margin:0 6px}.actionButton-EGu7SRYD:first-child{margin-left:0}.actionButton-EGu7SRYD:last-child{margin-right:0}.actionButton-EGu7SRYD.small-EGu7SRYD{margin:6px 0}.actionButton-EGu7SRYD.small-EGu7SRYD:first-child{margin-top:0}.actionButton-EGu7SRYD.small-EGu7SRYD:last-child{margin-bottom:0}.hiddenTitle-EGu7SRYD{visibility:hidden}.popupDialog-2AC2DTdZ{max-height:calc(100% - 20px);max-width:480px;width:calc(100% - 20px)}.wrap-2AC2DTdZ{cursor:default;display:flex;overflow:hidden}.main-2AC2DTdZ{color:#131722;display:flex;flex:1 1 auto;flex-direction:column;margin:40px 40px 40px 0}html.theme-dark .main-2AC2DTdZ{color:#b2b5be}.main-2AC2DTdZ.small-2AC2DTdZ{margin:20px 20px 20px 0}.title-2AC2DTdZ{align-items:center;display:flex;flex:none;font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin-bottom:8px;width:calc(100% - 9px);word-break:break-word}.title-2AC2DTdZ.small-2AC2DTdZ{width:calc(100% - 29px)}.content-2AC2DTdZ{-webkit-overflow-scrolling:touch;display:flex;flex:1 1 auto;flex-direction:column;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:0 -40px;min-height:145px;min-height:0;overflow-x:hidden;overflow-y:auto;padding:8px 40px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin;white-space:pre-wrap;word-break:break-word}html.theme-dark .content-2AC2DTdZ{scrollbar-color:#363a45 #0000}@media screen and (max-height:290px){.content-2AC2DTdZ{min-height:auto}}.content-2AC2DTdZ::-webkit-scrollbar{height:5px;width:5px}.content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-2AC2DTdZ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-2AC2DTdZ::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-2AC2DTdZ::-webkit-scrollbar-corner{display:none}.content-2AC2DTdZ.small-2AC2DTdZ{margin:0 -20px;padding:8px 20px}.content-2AC2DTdZ.html-2AC2DTdZ{display:block}.content-2AC2DTdZ.html-2AC2DTdZ a,html.theme-dark .content-2AC2DTdZ.html-2AC2DTdZ a{color:#2962ff}.footer-2AC2DTdZ{display:flex;flex:none;flex-direction:row-reverse;justify-content:flex-start;margin-top:16px}.footer-2AC2DTdZ.small-2AC2DTdZ{flex-direction:column}.close-2AC2DTdZ{align-items:center;border-radius:2px;color:#131722;cursor:default;display:flex;flex:none;height:34px;justify-content:center;margin:8px -2px 0 8px;width:34px}html.theme-dark .close-2AC2DTdZ{color:#b2b5be}@media (any-hover:hover){.close-2AC2DTdZ:hover{background-color:#f0f3fa}html.theme-dark .close-2AC2DTdZ:hover{background-color:#2a2e39}}.close-2AC2DTdZ.small-2AC2DTdZ{margin-right:-22px} \ No newline at end of file diff --git a/charting_library/bundles/27ed1587b819df769e0fcdb40c17bc0a.svg b/charting_library/bundles/27ed1587b819df769e0fcdb40c17bc0a.svg new file mode 100644 index 00000000..2479c772 --- /dev/null +++ b/charting_library/bundles/27ed1587b819df769e0fcdb40c17bc0a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4194.f5256f014a8f2810c953.css b/charting_library/bundles/2888.658aee2f9aacb50e4bc9.css similarity index 50% rename from charting_library/bundles/4194.f5256f014a8f2810c953.css rename to charting_library/bundles/2888.658aee2f9aacb50e4bc9.css index cce737db..d9208dc0 100644 --- a/charting_library/bundles/4194.f5256f014a8f2810c953.css +++ b/charting_library/bundles/2888.658aee2f9aacb50e4bc9.css @@ -1 +1 @@ -.dialog-Nh5Cqdeo{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;min-width:280px;text-align:left}html.theme-dark .dialog-Nh5Cqdeo{background-color:#1e222d}.dialog-Nh5Cqdeo.rounded-Nh5Cqdeo{border-radius:6px}.dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0003}html.theme-dark .dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0006}.dialog-Nh5Cqdeo.fullscreen-Nh5Cqdeo{bottom:0;height:100%;left:0;max-height:100%;max-width:100%;min-height:100%;position:fixed;right:0;top:0;width:100%}.dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#fff}html.theme-dark .dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#131722}.backdrop-Nh5Cqdeo{background-color:#9598a1;bottom:0;left:0;opacity:.5;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-Nh5Cqdeo{background-color:#0c0e15}.dialog-hxnnZcZ6{max-width:380px;min-width:280px;position:fixed;width:100%}.dialog-hxnnZcZ6 [data-dragg-area=true]{cursor:grab}.dialog-hxnnZcZ6 [data-dragg-area=true].dragging-hxnnZcZ6{cursor:grabbing}.dialogAnimatedAppearance-hxnnZcZ6{animation-duration:.3s;animation-name:dialogAnimation-hxnnZcZ6;transform-origin:0 0}@keyframes dialogAnimation-hxnnZcZ6{0%{opacity:0;transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0)}to{opacity:1;transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1)}}.dialogTooltip-hxnnZcZ6{color:#fff;font-size:14px;left:50%;line-height:21px;max-width:540px;position:absolute;top:-20px;transform:translateX(-50%);width:max-content}@media screen and (max-width:768px){.dialogTooltip-hxnnZcZ6{max-width:240px}} \ No newline at end of file +.dialog-Nh5Cqdeo{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;min-width:280px;text-align:left}html.theme-dark .dialog-Nh5Cqdeo{background-color:#1e222d}.dialog-Nh5Cqdeo.rounded-Nh5Cqdeo{border-radius:6px}.dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0003}html.theme-dark .dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0006}.dialog-Nh5Cqdeo.fullscreen-Nh5Cqdeo{bottom:0;height:100%;left:0;max-height:100%;max-width:100%;min-height:100%;position:fixed;right:0;top:0;width:100%}.dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#fff}html.theme-dark .dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#131722}.backdrop-Nh5Cqdeo{background-color:#9598a1;bottom:0;left:0;opacity:.5;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-Nh5Cqdeo{background-color:#0c0e15} \ No newline at end of file diff --git a/charting_library/bundles/2888.658aee2f9aacb50e4bc9.rtl.css b/charting_library/bundles/2888.658aee2f9aacb50e4bc9.rtl.css new file mode 100644 index 00000000..9c278c8e --- /dev/null +++ b/charting_library/bundles/2888.658aee2f9aacb50e4bc9.rtl.css @@ -0,0 +1 @@ +.dialog-Nh5Cqdeo{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;min-width:280px;text-align:right}html.theme-dark .dialog-Nh5Cqdeo{background-color:#1e222d}.dialog-Nh5Cqdeo.rounded-Nh5Cqdeo{border-radius:6px}.dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0003}html.theme-dark .dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0006}.dialog-Nh5Cqdeo.fullscreen-Nh5Cqdeo{bottom:0;height:100%;left:0;max-height:100%;max-width:100%;min-height:100%;position:fixed;right:0;top:0;width:100%}.dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#fff}html.theme-dark .dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#131722}.backdrop-Nh5Cqdeo{background-color:#9598a1;bottom:0;left:0;opacity:.5;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-Nh5Cqdeo{background-color:#0c0e15} \ No newline at end of file diff --git a/charting_library/bundles/2917.f809088053f9a1f9296c.js b/charting_library/bundles/2917.f809088053f9a1f9296c.js new file mode 100644 index 00000000..ca16cdf1 --- /dev/null +++ b/charting_library/bundles/2917.f809088053f9a1f9296c.js @@ -0,0 +1,28 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2917],{32917:n=>{n.exports=function(n){var t={};function e(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=n,e.c=t,e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:r})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var o in n)e.d(r,o,function(t){return n[t]}.bind(null,o));return r},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=149)}([function(n,t,e){var r=e(55),o=e(14),a=e(61),i=e(5);n.exports=function(n,t){return(i(n)?r:o)(n,a(t))}},function(n,t,e){var r=e(124);n.exports=function(n,t,e){var o=null==n?void 0:r(n,t);return void 0===o?e:o}},function(n,t,e){var r=e(93),o=e(7),a=e(94),i=e(5);n.exports=function(n,t){return(i(n)?r:a)(n,o(t,3))}},function(n,t,e){var r=e(147),o=e(148);n.exports=function(n,t,e){var a=t&&e||0;"string"==typeof n&&(t="binary"===n?new Array(16):null,n=null);var i=(n=n||{}).random||(n.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[a+c]=i[c];return t||o(i)}},function(n,t){n.exports=function(n){return void 0===n}},function(n,t){var e=Array.isArray;n.exports=e},function(n,t){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},function(n,t,e){var r=e(64),o=e(85),a=e(91),i=e(5),c=e(92);n.exports=function(n){return"function"==typeof n?n:null==n?a:"object"==typeof n?i(n)?o(n[0],n[1]):r(n):c(n)}},function(n,t){var e=Array.isArray;n.exports=e},function(n,t,e){var r=e(68);n.exports=function(n,t){for(var e=n.length;e--;)if(r(n[e][0],t))return e;return-1}},function(n,t,e){var r=e(109);n.exports=function(n,t){for(var e=n.length;e--;)if(r(n[e][0],t))return e;return-1}},function(n,t,e){var r=e(25),o=e(5),a=e(28);n.exports=function(n){return"string"==typeof n||!o(n)&&a(n)&&"[object String]"==r(n)}},function(n,t){var e=Object.prototype.hasOwnProperty;n.exports=function(n,t){return null!=n&&e.call(n,t)}},function(n,t,e){var r=e(125),o=e(126),a=e(43),i=e(8),c=e(143);n.exports=function(n,t,e){var u=i(n)?r:o;return e&&c(n,t,e)&&(t=void 0),u(n,a(t,3))}},function(n,t,e){var r=e(23),o=e(58)(r);n.exports=o},function(n,t,e){var r=e(24)(Object.keys,Object);n.exports=r},function(n,t,e){var r=e(59),o=e(60);n.exports=function(n){return null!=n&&o(n.length)&&!r(n)}},function(n,t,e){var r=e(106),o=e(37);n.exports=function n(t,e,a,i,c){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:r(t,e,a,i,n,c))}},function(n,t){n.exports=function(n,t){return function(e){return n(t(e))}}},function(n,t,e){ +var r=e(32);n.exports=function(n){return"number"==typeof n&&n==r(n)}},function(n,t,e){var r=e(17);n.exports=function(n,t){return r(n,t)}},function(n,t){n.exports=function(n){for(var t=-1,e=null==n?0:n.length,r=0,o=[];++t>>((3&t)<<3)&255;return o}}},function(n,t){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);n.exports=function(n,t){var r=t||0,o=e;return[o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]]].join("")}},function(n,t,e){var r=e(107),o=e(108),a=e(110),i=e(111),c=e(112);function u(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t0?t+",1,s":n+",0");return new r.TimeZone(r.olson.timezones[i])},date_is_dst:function(t){var r=t.getMonth()>7,a=r?o(t.getFullYear()):e(t.getFullYear()),i=a-n(t);return a<0||r?0!==i:i<0},dst_start_for:function(n){var t=new Date(2010,6,15,1,0,0,0);return{"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"America/Asuncion":new Date(2012,9,7,3,0,0,0),"America/Santiago":new Date(2012,9,3,3,0,0,0),"America/Campo_Grande":new Date(2012,9,21,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2012,2,10,2,0,0,0),"America/New_York":new Date(2012,2,10,7,0,0,0),"Europe/Helsinki":new Date(2013,2,31,5,0,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0),"Europe/Moscow":t,"Asia/Amman":new Date(2013,2,29,1,0,0,0),"Asia/Beirut":new Date(2013,2,31,2,0,0,0),"Asia/Damascus":new Date(2013,3,6,2,0,0,0),"Asia/Jerusalem":new Date(2013,2,29,5,0,0,0),"Asia/Yekaterinburg":t,"Asia/Omsk":t,"Asia/Krasnoyarsk":t,"Asia/Irkutsk":t,"Asia/Yakutsk":t,"Asia/Vladivostok":t,"Asia/Baku":new Date(2013,2,31,4,0,0),"Asia/Yerevan":new Date(2013,2,31,3,0,0),"Asia/Kamchatka":t,"Asia/Gaza":new Date(2010,2,27,4,0,0),"Africa/Cairo":new Date(2010,4,1,3,0,0),"Europe/Minsk":t,"Pacific/Apia":new Date(2010,10,1,1,0,0,0),"Pacific/Fiji":new Date(2010,11,1,0,0,0),"Australia/Perth":new Date(2008,10,1,1,0,0,0)}[n]}}}()).TimeZone=function(n){"use strict";var t={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"], +"America/Santiago":["America/Santiago","America/Asuncion","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Asia/Beirut","Europe/Helsinki","Asia/Damascus"],"Pacific/Auckland":["Pacific/Auckland","Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"],"Asia/Dubai":["Europe/Moscow"],"Asia/Dhaka":["Asia/Yekaterinburg"],"Asia/Jakarta":["Asia/Omsk"],"Asia/Shanghai":["Asia/Krasnoyarsk","Australia/Perth"],"Asia/Tokyo":["Asia/Irkutsk"],"Australia/Brisbane":["Asia/Yakutsk"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Tarawa":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk"],"Asia/Baku":["Asia/Yerevan","Asia/Baku"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]},e=n;return void 0!==t[e]&&function(){for(var n=t[e],o=n.length,a=0,i=n[0];a>5]|=128<<24-e%32,t[15+(e+64>>>9<<4)]=e;for(var l=0;l>>31}var w=(i<<5|i>>>27)+f+(a[h]>>>0)+(h<20?1518500249+(c&u|~c&s):h<40?1859775393+(c^u^s):h<60?(c&u|c&s|u&s)-1894007588:(c^u^s)-899497514);f=s,s=u,u=c<<30|c>>>2,c=i,i=w}i+=p,c+=d,u+=m,s+=v,f+=g}return[i,c,u,s,f]}(n));return t&&t.asBytes?e:t&&t.asString?a.bytesToString(e):r.bytesToHex(e)})._blocksize=16,i._digestsize=20,n.exports=i},function(n,t,e){var r=e(98)(e(99));n.exports=r},function(n,t,e){var r=e(101),o=e(23),a=e(7);n.exports=function(n,t){var e={};return t=a(t,3),o(n,(function(n,o,a){r(e,o,t(n,o,a))})),e}},function(n,t,e){var r=e(104),o=e(105),a=o;a.v1=r,a.v4=o,n.exports=a},function(n,t,e){var r=e(41),o=e(146),a=e(37),i=Function.prototype,c=Object.prototype,u=i.toString,s=c.hasOwnProperty,f=u.call(Object);n.exports=function(n){if(!a(n)||"[object Object]"!=r(n))return!1;var t=o(n);if(null===t)return!0;var e=s.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&u.call(e)==f}},function(n){n.exports=JSON.parse('{"a":"2.17.3"}')},function(n,t,e){},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length;++e-1&&n%1==0&&n<=9007199254740991}},function(n,t){n.exports=function(n){return n}},function(n,t){n.exports=function(n,t){for(var e=-1,r=null==n?0:n.length,o=0,a=[];++e-1}},function(n,t,e){var r=e(9);n.exports=function(n,t){var e=this.__data__,o=r(e,n);return o<0?(++this.size,e.push([n,t])):e[o][1]=t,this}},function(n,t,e){var r=e(26),o=e(73),a=e(78),i=e(79),c=e(81),u=e(5),s=e(82),f=e(83),l="[object Object]",p=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,d,m,v){var g=u(n),h=u(t),y=g?"[object Array]":c(n),w=h?"[object Array]":c(t),b=(y="[object Arguments]"==y?l:y)==l,k=(w="[object Arguments]"==w?l:w)==l,A=y==w;if(A&&s(n)){if(!s(t))return!1;g=!0,b=!1}if(A&&!b)return v||(v=new r),g||f(n)?o(n,t,e,d,m,v):a(n,t,y,e,d,m,v);if(!(1&e)){var x=b&&p.call(n,"__wrapped__"),_=k&&p.call(t,"__wrapped__");if(x||_){var S=x?n.value():n,O=_?t.value():t;return v||(v=new r),m(S,O,e,d,v)}}return!!A&&(v||(v=new r),i(n,t,e,d,m,v))}},function(n,t,e){var r=e(74),o=e(75),a=e(76);n.exports=function(n,t,e,i,c,u){var s=1&e,f=n.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;var p=u.get(n),d=u.get(t);if(p&&d)return p==t&&d==n;var m=-1,v=!0,g=2&e?new r:void 0;for(u.set(n,t),u.set(t,n);++m-1}},function(n,t){n.exports=function(n,t,e){for(var r=e-1,o=n.length;++r>>32-t},rotr:function(n,t){return n<<32-t|n>>>t},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var t=0;t0;n--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(n){for(var t=[],e=0,r=0;e>>5]|=n[e]<<24-r%32;return t},wordsToBytes:function(n){for(var t=[],e=0;e<32*n.length;e+=8)t.push(n[e>>>5]>>>24-e%32&255);return t},bytesToHex:function(n){for(var t=[],e=0;e>>4).toString(16)),t.push((15&n[e]).toString(16));return t.join("")},hexToBytes:function(n){for(var t=[],e=0;e>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"") +;for(var t=[],r=0,o=0;r>>6-2*o);return t}},n.exports=r},function(n,t,e){var r=e(7),o=e(16),a=e(15);n.exports=function(n){return function(t,e,i){var c=Object(t);if(!o(t)){var u=r(e,3);t=a(t),e=function(n){return u(c[n],n,c)}}var s=n(t,e,i);return s>-1?c[u?t[s]:s]:void 0}}},function(n,t,e){var r=e(100),o=e(7),a=e(32),i=Math.max;n.exports=function(n,t,e){var c=null==n?0:n.length;if(!c)return-1;var u=null==e?0:a(e);return u<0&&(u=i(c+u,0)),r(n,o(t,3),u)}},function(n,t){n.exports=function(n,t,e,r){for(var o=n.length,a=e+(r?1:-1);r?a--:++ac)&&void 0===n.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=m,u=v,o=p;var h=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;f[s++]=h>>>24&255,f[s++]=h>>>16&255,f[s++]=h>>>8&255,f[s++]=255&h;var y=m/4294967296*1e4&268435455;f[s++]=y>>>8&255,f[s++]=255&y,f[s++]=y>>>24&15|16,f[s++]=y>>>16&255,f[s++]=p>>>8|128,f[s++]=255&p;for(var w=0;w<6;++w)f[s+w]=l[w];return t||i(f)}},function(n,t,e){var r=e(34),o=e(35);n.exports=function(n,t,e){var a=t&&e||0;"string"==typeof n&&(t="binary"===n?new Array(16):null,n=null);var i=(n=n||{}).random||(n.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[a+c]=i[c];return t||o(i)}},function(n,t,e){var r=e(36),o=e(113),a=e(118),i=e(119),c=e(121),u=e(8),s=e(122),f=e(123),l="[object Object]",p=Object.prototype.hasOwnProperty;n.exports=function(n,t,e,d,m,v){var g=u(n),h=u(t),y=g?"[object Array]":c(n),w=h?"[object Array]":c(t),b=(y="[object Arguments]"==y?l:y)==l,k=(w="[object Arguments]"==w?l:w)==l,A=y==w;if(A&&s(n)){if(!s(t))return!1;g=!0,b=!1}if(A&&!b)return v||(v=new r),g||f(n)?o(n,t,e,d,m,v):a(n,t,y,e,d,m,v);if(!(1&e)){var x=b&&p.call(n,"__wrapped__"),_=k&&p.call(t,"__wrapped__");if(x||_){var S=x?n.value():n,O=_?t.value():t;return v||(v=new r),m(S,O,e,d,v)}}return!!A&&(v||(v=new r),i(n,t,e,d,m,v))}},function(n,t){n.exports=function(){this.__data__=[],this.size=0}},function(n,t,e){var r=e(10),o=Array.prototype.splice;n.exports=function(n){var t=this.__data__,e=r(t,n);return!(e<0)&&(e==t.length-1?t.pop():o.call(t,e,1),--this.size,!0)}},function(n,t){n.exports=function(n,t){return n===t||n!=n&&t!=t}},function(n,t,e){ +var r=e(10);n.exports=function(n){var t=this.__data__,e=r(t,n);return e<0?void 0:t[e][1]}},function(n,t,e){var r=e(10);n.exports=function(n){return r(this.__data__,n)>-1}},function(n,t,e){var r=e(10);n.exports=function(n,t){var e=this.__data__,o=r(e,n);return o<0?(++this.size,e.push([n,t])):e[o][1]=t,this}},function(n,t,e){var r=e(114),o=e(115),a=e(116);n.exports=function(n,t,e,i,c,u){var s=1&e,f=n.length,l=t.length;if(f!=l&&!(s&&l>f))return!1;var p=u.get(n),d=u.get(t);if(p&&d)return p==t&&d==n;var m=-1,v=!0,g=2&e?new r:void 0;for(u.set(n,t),u.set(t,n);++m-1}},function(n,t){n.exports=function(n,t,e){for(var r=e-1,o=n.length;++r-1&&n%1==0&&n<=9007199254740991}},function(n,t,e){var r=e(134),o=e(135),a=e(45);n.exports=function(n){var t=o(n);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(e){return e===n||r(e,n,t)}}},function(n,t,e){var r=e(36),o=e(17);n.exports=function(n,t,e,a){var i=e.length,c=i,u=!a;if(null==n)return!c;for(n=Object(n);i--;){var s=e[i];if(u&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i>>((3&t)<<3)&255;return o}}},function(n,t){for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);n.exports=function(n,t){var r=t||0,o=e;return[o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],"-",o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]],o[n[r++]]].join("")}},function(n,t,e){"use strict";e.r(t),e.d(t,"Snowplow",(function(){return ot})),e.d(t,"snowplowTracker",(function(){return it}));e(54);var r=e(0),o=e.n(r),a=e(46),i=e.n(a),c=e(11),u=e.n(c),s=e(4),f=e.n(s),l=e(6),p=e.n(l),d=e(2),m=e.n(d),v=window,g=document,h=window.localStorage,y=window.sessionStorage;function w(n){if(!u()(n)){n=n.text||"" +;var t=g.getElementsByTagName("title");t&&!f()(t[0])&&(n=t[0].text)}return n}function b(n){var t=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(n);return t?t[1]:n}function k(n){var t=n.length;return"."===n.charAt(--t)&&(n=n.slice(0,t)),"*."===n.slice(0,2)&&(n=n.slice(1)),n}function A(n){var t="",e=_("referrer",v.location.href)||_("referer",v.location.href);if(e)return e;if(n)return n;try{t=v.top.document.referrer}catch(n){if(v.parent)try{t=v.parent.document.referrer}catch(n){t=""}}return""===t&&(t=g.referrer),t}function x(n,t,e,r){return n.addEventListener?(n.addEventListener(t,e,r),!0):n.attachEvent?n.attachEvent("on"+t,e):void(n["on"+t]=e)}function _(n,t){var e=new RegExp("^[^#]*[?&]"+n+"=([^&#]*)").exec(t);return e?decodeURIComponent(e[1].replace(/\+/g," ")):null}function S(n){var t=Array.prototype.slice.call(arguments,1);return i()(m()(n,(function(n){if("function"!=typeof n)return n;try{return n.apply(null,t)}catch(n){}})))}function O(n){"undefined"!=typeof console&&console.warn("Snowplow: "+n)}function C(n){return n.className.match(/\S+/g)||[]}function j(n,t){if(Array.isArray(n)||!p()(n))return function(){return!0};if(n.hasOwnProperty("filter"))return n.filter;var e=n.hasOwnProperty("whitelist"),r=n.whitelist||n.blacklist;Array.isArray(r)||(r=[r]);for(var o={},a=0;a2&&void 0!==arguments[2]?arguments[2]:63072e3;try{var r=Date.now()+1e3*e;return h.setItem("".concat(n,".expires"),r),h.setItem(n,t),!0}catch(n){return!1}}function P(n){try{return h.removeItem(n),h.removeItem(n+".expires"),!0}catch(n){return!1}}function I(n,t){for(var e=0;e1?g.cookie=n+"="+encodeURIComponent(t)+(e?"; Expires="+new Date(+new Date+1e3*e).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(a?"; SameSite="+a:"")+(i?"; Secure":""):decodeURIComponent((("; "+g.cookie).split("; "+n+"=")[1]||"").split(";")[0])}function N(n){var t=parseInt(n);return isNaN(t)?void 0:t}function M(n){var t=parseFloat(n);return isNaN(t)?void 0:t}function U(n){return!(!n||"function"!=typeof n)}function B(n,t,e,r,o){var a={};function i(n){var t=[];if(n&&0!==n.length)for(var e=0;e1?t[1].split(";"):[]]}function l(){var n,t,e,r,o,f,l,p;for(n=0;n=55296&&r<=57343?(t+=4,e++):t+=r<65535?3:4}return t}function I(){for(;g.length&&"string"!=typeof g[0]&&"object"!==cn(g[0]);)g.shift();if(g.length<1)k=!1;else{if(!u()(v))throw"No collector configured";k=!0;var n=g[0];if(S){var t,e,o;_?(t=N(n),e=D(t,!1),o=1):(e=D(t=v,!0),o=function(n){for(var t=0,e=0;t=c);)t+=1;return t}(g));var a=setTimeout((function(){e.abort(),k=!1}),l);function i(n){for(var t=0;t=200&&e.status<400?(clearTimeout(a),x&&!w&&function(n,t){try{y.setItem(n,t)}catch(n){return!1}}(h,!0),i(o)):4===e.readyState&&e.status>=400&&(clearTimeout(a),k=!1)},_)e.send();else{var s=g.slice(0,o);if(s.length>0){var b;w=w||x&&function(n){try{return y.getItem(n)}catch(n){return}}(h);var A=m()(s,(function(n){return n.evt}));if(w){var O=new Blob([E(L(A))],{type:"application/json"});try{b=navigator.sendBeacon(t,O)}catch(n){b=!1}}!0===b&&i(o),x&&b||e.send(E(L(A)))}}}else if(p)k=!1;else{var C=new Image(1,1),j=!0;C.onload=function(){j&&(j=!1,g.shift(),r&&T(d,JSON.stringify(g.slice(0,f))),I())},C.onerror=function(){j&&(j=!1,k=!1)},C.src=N(n),setTimeout((function(){j&&k&&(j=!1,I())}),l)}}}function D(n,t){var e=new XMLHttpRequest;return t?(e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json; charset=UTF-8")):e.open("GET",n,!0),e.withCredentials=!0,p&&e.setRequestHeader("SP-Anonymous","*"),e}function E(n){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:n})}function L(n){for(var t=(new Date).getTime().toString(),e=0;e1&&e.bufferFlushers.push((function(){k||I()})),{enqueueRequest:function(n,t){if(v=t+j,C){var e=function(n){var t=an()(n,(function(n){return n.toString()}));return{evt:t,bytes:P(JSON.stringify(t))}}(n);if(e.bytes>=c)return O("Event ("+e.bytes+"B) too big, max is "+c),void D(v,!0).send(E(L([e.evt])));g.push(e)}else g.push(function(n){var t="?",e={co:!0,cx:!0},r=!0;for(var o in n)n.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(r?r=!1:t+="&",t+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));for(var a in e)n.hasOwnProperty(a)&&e.hasOwnProperty(a)&&(t+="&"+a+"="+encodeURIComponent(n[a]));return t}(n));var o=!1;r&&(o=T(d,JSON.stringify(g.slice(0,f)))),k||o&&!(g.length>=i)||I()},executeQueue:function(){k||I()},setUseLocalStorage:function(n){r=n},setAnonymousTracking:function(n){p=n},setCollectorUrl:function(n){v=n+j}}}function sn(n){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){ +return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var fn=e(51),ln=e(20),pn=e.n(ln),dn=e(12),mn=e.n(dn),vn=e(1),gn=e.n(vn),hn=e(13),yn=e.n(hn),wn=e(21),bn=e.n(wn),kn=e(22),An=e.n(kn),xn=e(52),_n=e.n(xn);function Sn(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function On(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Cn(n){return(Cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function jn(n,t){var e="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=Pn(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return i=n.done,n},e:function(n){c=!0,a=n},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function Tn(n){return function(n){if(Array.isArray(n))return In(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||Pn(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pn(n,t){if(n){if("string"==typeof n)return In(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?In(n,t):void 0}}function In(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e>16&255,e=u>>8&255,r=255&u,p[l++]=64===i?String.fromCharCode(t):64===c?String.fromCharCode(t,e):String.fromCharCode(t,e,r)}while(f>18&63,e=a>>12&63,r=a>>6&63,o=63&a,s[u++]=i.charAt(t)+i.charAt(e)+i.charAt(r)+i.charAt(o)}while(c0&&0===e)return!0;if(0===r&&e>0)return!1;return!1}(n[0],r))return Qn(n[1],t,e,r);return[]}(n,t,e,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,Tn(bn()(i)))}(t,e,a,o);return i.push.apply(i,Tn(u)),i};return{getGlobalPrimitives:function(){return n},getConditionalProviders:function(){return t},addGlobalContexts:function(e){var r,o=[],a=[],i=jn(e);try{for(i.s();!(r=i.n()).done;){var c=r.value;Wn(c)?o.push(c):qn(c)&&a.push(c)}}catch(n){i.e(n)}finally{i.f()}n=n.concat(a),t=t.concat(o)},clearGlobalContexts:function(){t=[],n=[]},removeGlobalContexts:function(e){var r,o=jn(e);try{var a=function(){var e=r.value;Wn(e)?t=t.filter((function(n){return!pn()(n,e)})):qn(e)&&(n=n.filter((function(n){return!pn()(n,e)})))};for(o.s();!(r=o.n()).done;)a()}catch(n){o.e(n)}finally{o.f()}},getApplicableContexts:function(n){var t,r=n.build();if(Ln(t=r)&&"e"in t&&"string"==typeof t.e){var o=function(n){var t=function(n){for(var t=1;t1)&&function(n){if("*"===n[0]||"*"===n[1])return!1;if(n.slice(2).length>0){var t,e=!1,r=jn(n.slice(2));try{for(r.s();!(t=r.n()).done;){if("*"===t.value)e=!0;else if(e)return!1}}catch(n){r.e(n)}finally{r.f()}return!0}return 2==n.length}(t)}function zn(n){var t=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$").exec(n);if(null!==t&&Bn(t[1]))return t.slice(1,6)}function Fn(n){var t=zn(n);if(t){var e=t[0];return 5===t.length&&Bn(e)}return!1}function Rn(n){return function(n){return Array.isArray(n)&&n.every((function(n){return"string"==typeof n}))}(n)?n.every((function(n){return Fn(n)})):"string"==typeof n&&Fn(n)}function Vn(n){var t=n;return!!(Ln(t)&&"schema"in t&&"data"in t)&&("string"==typeof t.schema&&"object"===Cn(t.data))}function Hn(n){return"function"==typeof n&&n.length<=1}function Gn(n){return"function"==typeof n&&n.length<=1}function qn(n){return Hn(n)||Vn(n)}function Yn(n){return!(!Array.isArray(n)||2!==n.length)&&(Array.isArray(n[1])?Gn(n[0])&&yn()(n[1],qn):Gn(n[0])&&qn(n[1]))}function Jn(n){return!(!Array.isArray(n)||2!==n.length)&&(!!function(n){var t=n,e=0;if(_n()(n)){if(mn()(t,"accept")){if(!Rn(t.accept))return!1;e+=1}if(mn()(t,"reject")){if(!Rn(t.reject))return!1;e+=1}return e>0&&e<=2}return!1}(n[0])&&(Array.isArray(n[1])?yn()(n[1],qn):qn(n[1])))}function Wn(n){return Yn(n)||Jn(n)}function Kn(n,t){if(!Fn(n))return!1;var e=zn(n),r=function(n){var t=new RegExp("^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/jsonschema/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$").exec(n);if(null!==t)return t.slice(1,6)}(t);if(e&&r){if(!function(n,t){var e=t.split("."),r=n.split(".");if(e&&r){if(e.length!==r.length)return!1;for(var o=0;o1e3*In&&(z=tt()(),Yn++);n.add("vp",function(){var n=G,t="inner";"innerWidth"in G||(t="client",n=J.documentElement||J.body);var e=n[t+"Width"],r=n[t+"Height"];return e>=0&&r>=0?e+"x"+r:null}()),n.add("ds",function(){var n=J.documentElement,t=J.body,e=t?Math.max(t.offsetHeight,t.scrollHeight):0,r=Math.max(n.clientWidth,n.offsetWidth,n.scrollWidth),o=Math.max(n.clientHeight,n.offsetHeight,n.scrollHeight,e);return isNaN(r)||isNaN(o)?"":r+"x"+o}()),n.add("vid",r(Yn)),n.add("sid",r(z)),n.add("duid",e(f)),n.add("uid",e(R)),dt(),n.add("refr",gt(i||gn)),n.add("url",gt(u||vn)),"none"!=Fn&&(Ct(f,l,Yn,o,v,z),Ot());Gn=(new Date).getTime()}(n),function(n,t){var e,o=new Date;e=!!p&&!!L(p);Tn||e||($n.enqueueRequest(n.build(),c),r.expireDateTime=o.getTime()+t)}(n,kn)})),en=!1,on={},an={},cn={},fn=document,ln=window,pn=navigator,dn=(screen,V(fn.domain,ln.location.href,A())),mn=k(dn[0]),vn=dn[1],gn=dn[2],hn=a.hasOwnProperty("platform")?a.platform:"web",yn=a.hasOwnProperty("postPath")?a.postPath:"/com.snowplowanalytics.snowplow/tp2",wn=a.hasOwnProperty("appId")?a.appId:"",bn=fn.title,kn=a.hasOwnProperty("pageUnloadTimer")?a.pageUnloadTimer:500,An=!a.hasOwnProperty("resetActivityTrackingOnPageView")||a.resetActivityTrackingOnPageView,xn=a.hasOwnProperty("cookieName")?a.cookieName:"_sp_",_n=a.hasOwnProperty("cookieDomain")?a.cookieDomain:null,Sn="/",On=a.hasOwnProperty("cookieSameSite")?a.cookieSameSite:"None",Cn=!a.hasOwnProperty("cookieSecure")||a.cookieSecure,jn=pn.doNotTrack||pn.msDoNotTrack||ln.doNotTrack,Tn=!!a.hasOwnProperty("respectDoNotTrack")&&(a.respectDoNotTrack&&("yes"===jn||"1"===jn)),Pn=a.hasOwnProperty("cookieLifetime")?a.cookieLifetime:63072e3,In=a.hasOwnProperty("sessionCookieTimeout")?a.sessionCookieTimeout:1800,Dn=fn.characterSet||fn.charset,En=!!a.hasOwnProperty("forceSecureTracker")&&!0===a.forceSecureTracker,Ln=!(En||!a.hasOwnProperty("forceUnsecureTracker"))&&!0===a.forceUnsecureTracker,Nn=Y(a),Mn=W(a),Un=X(a),Bn=!a.hasOwnProperty("useLocalStorage")||(O("argmap.useLocalStorage is deprecated. Use argmap.stateStorageStrategy instead."), +a.useLocalStorage),zn=!a.hasOwnProperty("useCookies")||(O("argmap.useCookies is deprecated. Use argmap.stateStorageStrategy instead."),a.useCookies),Fn=q(a),Rn=pn.userLanguage||pn.language,Vn=K(),Hn=n+"_"+t,Gn=(new Date).getTime(),qn=$.a,Yn=1,Jn={transaction:{},items:[]},Wn=new Q(nn,Hn,Et),Kn=new tn(nn,Hn,Et),Xn=new rn(nn),$n=new un(n,t,r,"localStorage"==Fn||"cookieAndLocalStorage"==Fn,a.eventMethod,yn,a.bufferSize,a.maxPostBytes||4e4,a.useStm,a.maxLocalStorageQueueSize||1e3,a.connectionTimeout||5e3,Mn),Qn=!1,nt=a.contexts||{},et=[],rt=[],ot=!1,at=!1,it={enabled:!1,installed:!1,configurations:{}},ct=null;nt.clientHints&&pn.userAgentData&&(ct={isMobile:pn.userAgentData.mobile,brands:pn.userAgentData.brands},nt.clientHints.includeHighEntropy&&pn.userAgentData.getHighEntropyValues&&pn.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(n){ct.architecture=n.architecture,ct.model=n.model,ct.platform=n.platform,ct.uaFullVersion=n.uaFullVersion,ct.platformVersion=n.platformVersion})));var ut,st=a.skippedBrowserFeatures||[],ft={};for(var lt in a.hasOwnProperty("discoverRootDomain")&&a.discoverRootDomain&&(_n=function(n,t){for(var e="_sp_root_domain_test_"+(new Date).getTime(),r="_test_value_"+(new Date).getTime(),o=v.location.hostname.split("."),a=o.length-1;a>=0;){var i=o.slice(a,o.length).join(".");if(L(e,r,0,"/",i,n,t),L(e)===r){D(e,i,n,t);for(var c=E("_sp_root_domain_test_"),u=0;u-1}function dt(){(dn=V(fn.domain,ln.location.href,A()))[1]!==vn&&(gn=A(vn)),mn=k(dn[0]),vn=dn[1]}function mt(){var n=(new Date).getTime();this.href&&(this.href=function(n,t,e){var r=t+"="+e,o=n.split("#"),a=o[0].split("?"),i=a.shift(),c=a.join("?");if(c){for(var u=!0,s=c.split("&"),f=0;fDate.now()?h.getItem(n):(h.removeItem(n),void h.removeItem(n+".expires"))}catch(n){}}(t):"cookie"==Fn||"cookieAndLocalStorage"==Fn?L(t):void 0}function bt(){dt(),U=qn((_n||mn)+(Sn||"/")).slice(0,4)}function kt(){var n=new Date;g=n.getTime()}function At(){!function(){var n=xt(),t=n[0];tS&&(S=t);var e=n[1];ej&&(j=e)}(),kt()}function xt(){var n=fn.compatMode&&"BackCompat"!==fn.compatMode?fn.documentElement:fn.body;return[n.scrollLeft||ln.pageXOffset,n.scrollTop||ln.pageYOffset]}function _t(){var n=xt(),t=n[0];y=t,S=t;var e=n[1];C=e,j=e}function St(n){var t=Math.round(n);if(!isNaN(t))return t}function Ot(){jt(yt("ses"),"*",In)}function Ct(n,t,e,r,o,a){jt(yt("id"),n+"."+t+"."+e+"."+r+"."+o+"."+a,Pn)}function jt(n,t,e){Un&&!Nn||("localStorage"==Fn?T(n,t,e):"cookie"!=Fn&&"cookieAndLocalStorage"!=Fn||L(n,t,e,Sn,_n,On,Cn))}function Tt(){var n=yt("id"),t=yt("ses");P(n),P(t),D(n,_n,On,Cn),D(t,_n,On,Cn)}function Pt(){if(!Un||Nn){var n="none"!=Fn&&!!wt("ses"),t=It();t[1]?B=t[1]:Un?(B="",t[1]=B):(B=tt()(),t[1]=B),z=t[6],n||(t[3]++,z=tt()(),t[6]=z,t[5]=t[4]),"none"!=Fn&&(Ot(),t[4]=Math.round((new Date).getTime()/1e3),t.shift(),Ct.apply(null,t))}}function It(){if("none"==Fn)return[];var n,t=new Date,e=Math.round(t.getTime()/1e3),r=wt("id");return r?(n=r.split(".")).unshift("0"):n=["1",B,e,0,e,""],n[6]||(n[6]=tt()()),n}function Dt(n){return En?"https://"+n:Ln?"http://"+n:("https:"===fn.location.protocol?"https":"http")+"://"+n}function Et(n){var t,e,r=et.concat(n||[]);if(nt.webPage&&r.push({schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:Nt()}}),nt.performanceTiming){var a=function(){var n=["navigationStart","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","secureConnectionStart","connectEnd","requestStart","responseStart","responseEnd","unloadEventStart","unloadEventEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd","msFirstPaint","chromeFirstPaint","requestEnd","proxyStart","proxyEnd"],t=ln.performance||ln.mozPerformance||ln.msPerformance||ln.webkitPerformance;if(t){var e={};for(var r in t.timing)I(r,n)&&null!==t.timing[r]&&(e[r]=t.timing[r]);return delete e.requestEnd,{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:e}}}();a&&r.push(a)}if(ln.optimizely){if(nt.optimizelySummary){var i=m()((t=Mt("state"),e=Mt("experiments"),m()(t&&e&&t.activeExperiments,(function(n){var r=e[n];return{activeExperimentId:n.toString(),variation:t.variationIdsMap[n][0].toString(),conditional:r&&r.conditional,manual:r&&r.manual,name:r&&r.name}}))),(function(n){return{schema:"iglu:com.optimizely.snowplow/optimizely_summary/jsonschema/1-0-0",data:n}}));o()(i,(function(n){r.push(n)}))}if(nt.optimizelyXSummary){i=function(){return m()((n=Ut("state"), +t=n&&n.getActiveExperimentIds(),e=n&&n.getVariationMap(),r=Ut("visitor"),m()(t,(function(n){var t=e[n],o=t&&t.name&&t.name.toString()||null,a=t&&t.id,i=r&&r.visitorId&&r.visitorId.toString()||null;return{experimentId:N(n)||null,variationName:o,variation:N(a)||null,visitorId:i}}))),(function(n){return{schema:"iglu:com.optimizely.optimizelyx/summary/jsonschema/1-0-0",data:n}}));var n,t,e,r}();o()(i,(function(n){r.push(n)}))}if(nt.optimizelyExperiments)for(var c=function(){var n=Mt("experiments");if(n){var t=[];for(var e in n)if(n.hasOwnProperty(e)){var r={};r.id=e;var o=n[e];r.code=o.code,r.manual=o.manual,r.conditional=o.conditional,r.name=o.name,r.variationIds=o.variation_ids,t.push({schema:"iglu:com.optimizely/experiment/jsonschema/1-0-0",data:r})}return t}return[]}(),u=0;uo.getTime()&&r(n.callback,zt(t,e))};0!=n.configMinimumVisitLength?n.activityInterval=setTimeout((function(){var a=new Date;g+n.configMinimumVisitLength>a.getTime()&&r(n.callback,zt(t,e)),n.activityInterval=setInterval(o,n.configHeartBeatTimer)}),n.configMinimumVisitLength):n.activityInterval=setInterval(o,n.configHeartBeatTimer)}function Rt(n,t,e){return F()(n)&&F()(t)?{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,activityInterval:null,callback:e}:(O("Activity tracking not enabled, please provide integer values for minimumVisitLength and heartBeatDelay."),{})}function Vt(n){var t=n.context,e=n.minXOffset,r=n.minYOffset,o=n.maxXOffset,a=n.maxYOffset,c=fn.title;c!==bn&&(bn=c,s=null),nn.trackPagePing(gt(u||vn),w(s||bn),gt(i||gn),St(e),St(o),St(r),St(a),Et(t))}function Ht(n,t,e,r,o,a,i,c,u){nn.trackEcommerceTransactionItem(n,t,e,r,o,a,i,Et(c),u)}function Gt(n,t){return""!==n?n+t.charAt(0).toUpperCase()+t.slice(1):t}function qt(n){var t,e,r,o=["","webkit","ms","moz"];if(!d)for(e=0;e=0&&(n=n.slice(0,e)),(e=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,e+1)),n+t)}(vn,n)},on.setDocumentTitle=function(n){bn=fn.title,s=n},on.discardHashTag=function(n){f=n},on.discardBrace=function(n){l=n},on.setCookieNamePrefix=function(n){O("setCookieNamePrefix"+Wt+"cookieName"),xn=n},on.setCookieDomain=function(n){O("setCookieDomain"+Wt+"cookieDomain"),_n=k(n),bt()},on.setCookiePath=function(n){Sn=n,bt()},on.setVisitorCookieTimeout=function(n){Pn=n},on.setSessionCookieTimeout=function(n){O("setSessionCookieTimeout"+Wt+"sessionCookieTimeout"),In=n},on.setUserFingerprintSeed=function(){O(Jt)},on.enableUserFingerprint=function(){O(Jt)},on.respectDoNotTrack=function(n){O("respectDoNotTrack"+Wt+"respectDoNotTrack");var t=pn.doNotTrack||pn.msDoNotTrack;Tn=n&&("yes"===t||"1"===t)},on.crossDomainLinker=function(n){vt(n)},on.enableLinkClickTracking=function(n,t,e,o){r.hasLoaded?(Wn.configureLinkClickTracking(n,t,e,o),Wn.addClickListeners()):r.registeredOnLoadHandlers.push((function(){Wn.configureLinkClickTracking(n,t,e,o),Wn.addClickListeners()}))},on.refreshLinkClickTracking=function(){r.hasLoaded?Wn.addClickListeners():r.registeredOnLoadHandlers.push((function(){Wn.addClickListeners()}))},on.enableActivityTracking=function(n,t){it.enabled=!0,it.configurations.pagePing=Rt(n,t,Vt)},on.enableActivityTrackingCallback=function(n,t,e){it.enabled=!0,it.configurations.callback=Rt(n,t,e)},on.updatePageActivity=function(){kt()},on.enableFormTracking=function(n,t){r.hasLoaded?(Kn.configureFormTracking(n),Kn.addFormListeners(t)):r.registeredOnLoadHandlers.push((function(){Kn.configureFormTracking(n),Kn.addFormListeners(t)}))},on.killFrame=function(){ln.location!==ln.top.location&&(ln.top.location=ln.location)},on.redirectFile=function(n){"file:"===ln.location.protocol&&(ln.location=n)},on.setOptOutCookie=function(n){p=n},on.setCountPreRendered=function(n){d=n},on.setUserId=function(n){R=n},on.identifyUser=function(n){on.setUserId(n)},on.setUserIdFromLocation=function(n){dt(),R=_(n,vn)},on.setUserIdFromReferrer=function(n){dt(),R=_(n,gn)}, +on.setUserIdFromCookie=function(n){R=L(n)},on.setCollectorCf=function(n){c=function(n){return Dt(n+".cloudfront.net")}(n),$n.setCollectorUrl(c)},on.setCollectorUrl=function(n){c=Dt(n),$n.setCollectorUrl(c)},on.setPlatform=function(n){O("setPlatform"+Wt+"platform"),nn.setPlatform(n)},on.encodeBase64=function(n){O("encodeBase64"+Wt+"encodeBase64"),nn.setBase64Encoding(n)},on.flushBuffer=function(){$n.executeQueue()},on.enableGeolocationContext=Bt,on.trackPageView=function(n,t,e,r,a){qt((function(){!function(n,t,e,r,a){dt(),at&&Lt(),at=!0,bn=fn.title;var c=w((s=n)||bn);nn.trackPageView(gt(u||vn),c,gt(i||gn),Et(zt(t,e)),r,a);var f=new Date,l=!1;if(it.enabled&&!it.installed){it.installed=!0,l=!0;var p={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var n=!1,t=Object.defineProperty({},"passive",{get:function(){n=!0}}),e=function(){};window.addEventListener("testPassiveEventSupport",e,t),window.removeEventListener("testPassiveEventSupport",e,t),p.hasSupport=n}}};p.update();var d="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(p,"hasSupport")?x(fn,d,kt,{passive:!0}):x(fn,d,kt),_t();var m=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return function(n){return x(fn,n,t)}};o()(["click","mouseup","mousedown","mousemove","keypress","keydown","keyup"],m(fn)),o()(["resize","focus","blur"],m(ln)),m(ln,At)("scroll")}if(it.enabled&&(An||l))for(var v in g=f.getTime(),it.configurations)if(it.configurations.hasOwnProperty(v)){var h=it.configurations[v];clearInterval(h.activityInterval),Ft(h,t,e)}}(n,t,e,r,a)}))},on.trackStructEvent=function(n,t,e,r,o,a,i,c){qt((function(){nn.trackStructEvent(n,t,e,r,o,Et(a),i,c)}))},on.trackSelfDescribingEvent=function(n,t,e,r){qt((function(){nn.trackSelfDescribingEvent(n,Et(t),e,r)}))},on.trackUnstructEvent=function(n,t,e){qt((function(){nn.trackSelfDescribingEvent(n,Et(t),e)}))},on.addTrans=function(n,t,e,r,o,a,i,c,u,s,f){Jn.transaction={orderId:n,affiliation:t,total:e,tax:r,shipping:o,city:a,state:i,country:c,currency:u,context:s,tstamp:f}},on.addItem=function(n,t,e,r,o,a,i,c,u){Jn.items.push({orderId:n,sku:t,name:e,category:r,price:o,quantity:a,currency:i,context:c,tstamp:u})},on.trackTrans=function(){qt((function(){var n,t,e,r,o,a,i,c,u,s,f;n=Jn.transaction.orderId,t=Jn.transaction.affiliation,e=Jn.transaction.total,r=Jn.transaction.tax,o=Jn.transaction.shipping,a=Jn.transaction.city,i=Jn.transaction.state,c=Jn.transaction.country,u=Jn.transaction.currency,s=Jn.transaction.context,f=Jn.transaction.tstamp,nn.trackEcommerceTransaction(n,t,e,r,o,a,i,c,u,Et(s),f);for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=Z[n];o?(nt.gdprBasis=!0,ft={gdprBasis:o,gdprDocId:t,gdprDocVer:e,gdprDocDesc:r}):O("enableGdprContext failed. basisForProcessing must be set to one of: consent, legalObligation, vitalInterests publicTask, legitimateInterests")},on.addGlobalContexts=function(n){nn.addGlobalContexts(n)},on.removeGlobalContexts=function(n){nn.removeGlobalContexts(n)},on.clearGlobalContexts=function(){nn.clearGlobalContexts()},on.enableErrorTracking=function(n,t){ +Xn.enableErrorTracking(n,t,Et())},on.trackError=function(n,t,e,r,o,a){var i=Et(a);Xn.trackError(n,t,e,r,o,i)},on.preservePageViewId=function(){ot=!0},on.disableAnonymousTracking=function(n){n?(a.stateStorageStrategy=n,a.anonymousTracking=!1,Fn=q(a)):a.anonymousTracking=!1,Un=X(a),Nn=Y(a),Mn=W(a),$n.setUseLocalStorage("localStorage"==Fn||"cookieAndLocalStorage"==Fn),$n.setAnonymousTracking(Mn),Pt(),$n.executeQueue()},on.enableAnonymousTracking=function(n){a.anonymousTracking=n||!0,Un=X(a),Nn=Y(a),Mn=W(a),Nn||Lt(),$n.setAnonymousTracking(Mn)},on.clearUserData=Tt,on.setDebug=function(n){en=Boolean(n).valueOf(),Yt()},an=function(n){var t={};return"object"===sn(n)&&null!==n&&Object.getOwnPropertyNames(n).forEach((function(e,r,o){var a;"function"==typeof n[e]&&(t[e]=(a=n[e],function(){try{return a.apply(this,arguments)}catch(n){}}))})),t}(on),Yt(),cn}var rt=e(53);function ot(n,t){var e,r=document,a=window,i="js-"+rt.a,c={outQueues:[],bufferFlushers:[],expireDateTime:null,hasLoaded:!1,registeredOnLoadHandlers:[],pageViewId:null};function u(){var n;if(!c.hasLoaded)for(c.hasLoaded=!0,n=0;n0})).length)break}while(n.getTime() \ No newline at end of file diff --git a/charting_library/bundles/2947.01756d0de30a0c1fdebe.js b/charting_library/bundles/2947.01756d0de30a0c1fdebe.js new file mode 100644 index 00000000..71a2a3c1 --- /dev/null +++ b/charting_library/bundles/2947.01756d0de30a0c1fdebe.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2947],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},66230:e=>{e.exports={button:"button-h8C3IU2n","button-children":"button-children-h8C3IU2n",hiddenArrow:"hiddenArrow-h8C3IU2n",invisibleFocusHandler:"invisibleFocusHandler-h8C3IU2n"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},79756:e=>{e.exports={placeholder:"placeholder-fKHYe1Lk"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>v,InputClasses:()=>g});var o=n(59496),r=n(97754),l=n(88537),s=n(66092),i=n(90186),a=n(86332),c=n(95604);var u=n(21103),d=n.n(u);function f(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function p(e,t,n,o){const{removeRoundBorder:l,className:s,intent:i="default",borderStyle:a="thin",size:u,highlight:p,disabled:h,readonly:g,stretch:b,noReadonlyStyles:m,isFocused:v}=e,C=f(null!=l?l:(0,c.getGroupCellRemoveRoundBorders)(n)) +;return r(d().container,d()["intent-"+i],d()["border-"+a],u&&d()["size-"+u],C,p&&d()["with-highlight"],h&&d().disabled,g&&!m&&d().readonly,v&&d().focused,b&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function h(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const l=f(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,l)}const g={FontSizeMedium:(0,l.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,l.ensureDefined)(d()["font-size-large"])},b={passive:!1};function m(e,t){const{id:n,role:r,onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:f,onMouseUp:g,onKeyDown:m,onClick:v,tabIndex:C,startSlot:x,middleSlot:S,endSlot:w,onWheel:y,onWheelNoPassive:R=null}=e,{isGrouped:E,cellState:k,disablePositionAdjustment:I=!1}=(0,o.useContext)(a.ControlGroupContext),M=function(e,t=null,n){const r=(0,o.useRef)(null),l=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.addEventListener(e,t,n)},[]),i=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{i(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(l.current=[e,t,n],s(),i),[e,t,n]),a}("wheel",R,b);return o.createElement("span",{id:n,role:r,className:p(e,E,k,I),tabIndex:C,ref:(0,s.useMergedRefs)([t,M]),onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:f,onMouseUp:g,onKeyDown:m,onClick:v,onWheel:y,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)},x,S,w,o.createElement("span",{className:h(e,k)}))}m.displayName="ControlSkeleton";const v=o.forwardRef(m)},78274:(e,t,n)=>{"use strict";n.d(t,{BeforeSlot:()=>i,StartSlot:()=>a,MiddleSlot:()=>c,EndSlot:()=>u,AfterSlot:()=>d});var o=n(59496),r=n(97754),l=n(10306),s=n.n(l);function i(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["before-slot"],t)},n)}function a(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function d(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>v});var o=n(59496),r=n(97754),l=n(90186),s=n(47201),i=n(48907),a=n(66092),c=n(48027),u=n(29202),d=n(45812),f=n(67029),p=n(78274),h=n(66579),g=n.n(h);function b(e){return!(0,l.isAriaAttribute)(e)&&!(0,l.isDataAttribute)(e)}function m(e){ +const{id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:h,draggable:m,autoComplete:v,autoFocus:C,maxLength:x,min:S,max:w,step:y,pattern:R,inputMode:E,onSelect:k,onFocus:I,onBlur:M,onKeyDown:F,onKeyUp:A,onKeyPress:N,onChange:O,onDragStart:z,size:B="medium",className:D,inputClassName:j,disabled:_,readonly:H,containerTabIndex:K,startSlot:L,endSlot:T,reference:W,containerReference:V,onContainerFocus:G,...P}=e,U=(0,l.filterProps)(P,b),Q={...(0,l.filterAriaProps)(P),...(0,l.filterDataProps)(P),id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:h,draggable:m,autoComplete:v,autoFocus:C,maxLength:x,min:S,max:w,step:y,pattern:R,inputMode:E,onSelect:k,onFocus:I,onBlur:M,onKeyDown:F,onKeyUp:A,onKeyPress:N,onChange:O,onDragStart:z};return o.createElement(f.ControlSkeleton,{...U,disabled:_,readonly:H,tabIndex:K,className:r(g().container,D),size:B,ref:V,onFocus:G,startSlot:L,middleSlot:o.createElement(p.MiddleSlot,null,o.createElement("input",{...Q,className:r(g().input,j,L&&g()["with-start-slot"],T&&g()["with-end-slot"]),disabled:_,readOnly:H,ref:W})),endSlot:T})}function v(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:l,onBlur:f,reference:p,containerReference:h=null}=e,g=(0,o.useRef)(null),b=(0,o.useRef)(null),[v,C]=(0,u.useFocus)(),x=t?void 0:v?-1:r,S=t?void 0:v?r:-1,{isMouseDown:w,handleMouseDown:y,handleMouseUp:R}=(0,d.useIsMouseDown)(),E=(0,s.createSafeMulticastEventHandler)(C.onFocus,(function(e){n&&!w.current&&(0,i.selectAllContent)(e.currentTarget)}),l),k=(0,s.createSafeMulticastEventHandler)(C.onBlur,f),I=(0,o.useCallback)(e=>{g.current=e,p&&("function"==typeof p&&p(e),"object"==typeof p&&(p.current=e))},[g,p]);return o.createElement(m,{...e,isFocused:v,containerTabIndex:x,tabIndex:S,onContainerFocus:function(e){b.current===e.target&&null!==g.current&&g.current.focus()},onFocus:E,onBlur:k,reference:I,containerReference:(0,a.useMergedRefs)([b,h]),onMouseDown:y,onMouseUp:R})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>l});var o=n(47201),r=n(29202);function l(e){const{onFocus:t,onBlur:n,intent:l,highlight:s,disabled:i}=e,[a,c]=(0,r.useFocus)(void 0,i),u=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onBlur,n);return{...e,intent:l||(a?"primary":"default"),highlight:null!=s?s:a,onFocus:u,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const l={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,l]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r}) +;var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},71131:(e,t,n)=>{"use strict";n.d(t,{useScrollIntoViewHelper:()=>d});var o=n(59496),r=n(88537),l=n(74991);const s={duration:200,additionalScroll:0},i={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function a(e,t){const n=i[e];return t[n.scrollSize]>t[n.clientSize]}function c(e,t,n,o,r,s){const a=function(e,t,n,o=0){const r=i[e];return{start:-1*o,middle:-1*(Math.floor(n[r.size]/2)-Math.floor(t[r.size]/2)),end:-1*(n[r.size]-t[r.size])+o}}(e,o,r,s.additionalScroll);let c=0;if(function(e,t,n){const o=i[e];return t[o.start]n[o.end]+n[o.size]/2}(e,o,r))c=a.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,r=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),l=Math.min(...r.keys());return r.get(l)}(function(e,t,n,o=0){const r=i[e],l=t[r.start]+Math.floor(t[r.size]/2),s=n[r.start]+Math.floor(n[r.size]/2);return{start:t[r.start]-n[r.start]-o,middle:l-s,end:t[r.end]-n[r.end]+o}}(e,o,r,s.additionalScroll));c=void 0!==t?a[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=l.dur,func:o=l.easingFunc.easeInOutCubic,onScrollEnd:r,target:s,wrap:i,direction:a="vertical"}=e;let{targetRect:c,wrapRect:u}=e;c=null!=c?c:s.getBoundingClientRect(),u=null!=u?u:i.getBoundingClientRect();const d=("vertical"===a?c.top-u.top:c.left-u.left)+t,f="vertical"===a?"scrollTop":"scrollLeft",p=i?i[f]:0;let h,g=0;return g=window.requestAnimationFrame((function e(t){let l;if(h?l=t-h:(l=0,h=t),l>=n)return i[f]=p+d,void(r&&r());const s=p+d*o(l/n);i[f]=Math.floor(s),g=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(g),r&&r()}}({...s,target:t,targetRect:o,wrap:n,wrapRect:r,additionalScroll:c,direction:e})}class u{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=s){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),a("vertical",this._container)&&(this._stopVerticalScroll=c("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),a("horizontal",this._container)&&(this._stopHorizontalScroll=c("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()} +getContainer(){return this._container}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}function d(e){const t=(0,o.useRef)(null);return(0,o.useEffect)(()=>(t.current=new u(e),()=>(0,r.ensureNotNull)(t.current).destroy()),[]),t}},22064:(e,t,n)=>{"use strict";n.d(t,{createDomId:()=>a,joinDomIds:()=>c});const o=/\s/g;function r(e){return"string"==typeof e}function l(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function s(e){return e.trim().length>0}function i(e){return e.replace(o,"-")}function a(...e){const t=e.map(l).filter(r).filter(s).map(i);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(l).filter(r).filter(s).join(" ")}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},72887:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>m});var o=n(59496),r=n(97754),l=n.n(r),s=n(66092),i=n(67029),a=n(78274),c=n(50628),u=n(88537);function d(e,t){return(0,o.useCallback)(()=>function(e,t){const n=(0,u.ensureNotNull)(e).getBoundingClientRect(),o={x:n.left,y:n.top+n.height};return t&&(o.overrideWidth=n.width),o}(e.current,t),[e,t])}var f=n(86240);const p=parseInt(f["size-header-height"]);function h(e){const{button:t,popupChildren:n,buttonRef:r,listboxId:l,listboxClassName:s,listboxTabIndex:i,matchButtonAndListboxWidths:a,isOpened:u,scrollWrapReference:f,listboxReference:h,onClose:g,onOpen:b,onListboxFocus:m,onListboxBlur:v,onListboxKeyDown:C,listboxAria:x,repositionOnScroll:S=!0,closeOnHeaderOverlap:w=!1}=e,y=d(r,a),R=w?p:0;return o.createElement(o.Fragment,null,t,o.createElement(c.PopupMenu,{...x,id:l,className:s,tabIndex:i,isOpened:u,position:y,repositionOnScroll:S,onClose:g,onOpen:b,doNotCloseOn:r.current,reference:h,scrollWrapReference:f,onFocus:m,onBlur:v,onKeyDown:C,closeOnScrollOutsideOffset:R},n))}var g=n(93211),b=n(66230);const m=o.forwardRef((e,t)=>{const{listboxId:n,className:r,listboxClassName:c,listboxTabIndex:u,hideArrowButton:d,matchButtonAndListboxWidths:f,disabled:p,isOpened:m,scrollWrapReference:v,repositionOnScroll:C,closeOnHeaderOverlap:x,listboxReference:S,size:w="medium",onClose:y,onOpen:R,onListboxFocus:E,onListboxBlur:k,onListboxKeyDown:I,buttonChildren:M,children:F,caretClassName:A,listboxAria:N,...O}=e,z=(0,o.useRef)(null),B=!d&&o.createElement(a.EndSlot,null,o.createElement(g.Caret,{isDropped:m,disabled:p,className:A +}));return o.createElement(h,{buttonRef:z,listboxId:n,listboxClassName:c,listboxTabIndex:u,isOpened:m,onClose:y,onOpen:R,listboxReference:S,scrollWrapReference:v,onListboxFocus:E,onListboxBlur:k,onListboxKeyDown:I,listboxAria:N,matchButtonAndListboxWidths:f,button:o.createElement(i.ControlSkeleton,{...O,"data-role":"listbox",disabled:p,className:l()(b.button,r),size:w,ref:(0,s.useMergedRefs)([z,t]),middleSlot:o.createElement(a.MiddleSlot,null,o.createElement("span",{className:l()(b["button-children"],d&&b.hiddenArrow)},M)),endSlot:B}),popupChildren:F,repositionOnScroll:C,closeOnHeaderOverlap:x})});m.displayName="ControlDisclosureView"},68721:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>c});var o=n(59496),r=n(88537),l=n(29202),s=n(47201),i=n(22064),a=n(35749);function c(e){const{intent:t,highlight:n,...c}=e,{isFocused:u,...d}=function(e){const{id:t,disabled:n,buttonTabIndex:c=0,onFocus:u,onBlur:d,onClick:f}=e,[p,h]=(0,o.useState)(!1),[g,b]=(0,l.useFocus)(),m=g||p,v=void 0!==t?(0,i.createDomId)(t,"listbox"):void 0,C=(0,o.useRef)(null),x=(0,o.useCallback)(e=>(0,r.ensureNotNull)(C.current).focus(e),[C]),S=(0,o.useRef)(null),w=(0,o.useCallback)(()=>(0,r.ensureNotNull)(S.current).focus(),[S]),y=(0,o.useCallback)(()=>h(!0),[h]),R=(0,o.useCallback)((e=!1)=>{h(!1);const{activeElement:t}=document;t&&(0,a.isTextEditingField)(t)||x({preventScroll:e})},[h,x]),E=(0,o.useCallback)(()=>{p?R():y()},[p,R,y]),k=n?[]:[u,b.onFocus],I=n?[]:[d,b.onBlur],M=n?[]:[f,E],F=(0,s.createSafeMulticastEventHandler)(...k),A=(0,s.createSafeMulticastEventHandler)(...I),N=(0,s.createSafeMulticastEventHandler)(...M);return{listboxId:v,isOpened:p,isFocused:m,buttonTabIndex:n?-1:c,listboxTabIndex:-1,open:y,close:R,toggle:E,onOpen:w,buttonFocusBindings:{onFocus:F,onBlur:A},onButtonClick:N,buttonRef:C,listboxRef:S,buttonAria:{"aria-controls":p?v:void 0,"aria-expanded":p,"aria-disabled":n}}}(c);return{...d,isFocused:u,highlight:null!=n?n:u,intent:null!=t?t:u?"primary":"default"}}},26597:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>s,useComposedKeyboardActionHandlers:()=>i,useKeyboardEventHandler:()=>a,useKeyboardToggle:()=>c,useKeyboardClose:()=>u,useKeyboardOpen:()=>d});var o=n(59496),r=n(68335);const l=()=>!0;function s(e,t,n=l){return(0,o.useCallback)(o=>{const r=e.map(e=>"function"==typeof e?e():e);return!(!n()||!r.includes(o))&&(t(),!0)},[...e,t,n])}function i(...e){return(0,o.useCallback)(t=>{for(const n of e)if(n(t))return!0;return!1},[...e])}function a(...e){const t=i(...e);return(0,o.useCallback)(e=>{t((0,r.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return s([13,32],e)}function u(e,t){return s([9,(0,o.useCallback)(()=>r.Modifiers.Shift+9,[]),27],t,(0,o.useCallback)(()=>e,[e]))}function d(e,t){return s([40,38],t,(0,o.useCallback)(()=>!e,[e]))}},93211:(e,t,n)=>{"use strict";n.d(t,{Caret:()=>u});var o=n(59496),r=n(97754),l=n.n(r),s=n(9745),i=n(89974),a=n(99171);function c(e){const{isDropped:t}=e;return o.createElement(s.Icon,{className:l()(a.icon,t&&a.dropped),icon:i})}function u(e){ +const{className:t,disabled:n,isDropped:r}=e;return o.createElement("span",{className:l()(a.button,n&&a.disabled,t)},o.createElement(c,{isDropped:r}))}},58368:(e,t,n)=>{"use strict";n.d(t,{Select:()=>S});var o=n(59496),r=n(22064),l=n(66092),s=n(88537),i=n(71131);var a=n(16396),c=n(4889),u=n(43370);var d=n(62820),f=n(26597);function p(e,t){return e>=0?e%t:(t-Math.abs(e)%t)%t}const h={next:[40,()=>(0,d.isRtl)()?37:39],previous:[38,()=>(0,d.isRtl)()?39:37],first:[33,36],last:[34,35]};var g=n(72887),b=n(68721),m=n(79756);function v(e){return!e.readonly}function C(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,r.createDomId)(e,"item",null==t?void 0:t.value)}function x(e){var t,n;const{selectedItem:r,placeholder:l}=e;if(!r)return o.createElement("span",{className:m.placeholder},l);const s=null!==(n=null!==(t=r.selectedContent)&&void 0!==t?t:r.content)&&void 0!==n?n:r.value;return o.createElement("span",null,s)}const S=o.forwardRef((e,t)=>{const{id:n,menuClassName:d,menuItemClassName:m,tabIndex:S,disabled:w,highlight:y,intent:R,hideArrowButton:E,placeholder:k,addPlaceholderToItems:I=!0,value:M,"aria-labelledby":F,onFocus:A,onBlur:N,onClick:O,onChange:z,repositionOnScroll:B=!0,...D}=e;let{items:j}=e;if(k&&I){j=[{value:void 0,content:k,id:(0,r.createDomId)(n,"placeholder")},...j]}const{listboxId:_,isOpened:H,isFocused:K,buttonTabIndex:L,listboxTabIndex:T,highlight:W,intent:V,open:G,onOpen:P,close:U,toggle:Q,buttonFocusBindings:q,onButtonClick:J,buttonRef:Y,listboxRef:X,buttonAria:Z}=(0,b.useControlDisclosure)({id:n,disabled:w,buttonTabIndex:S,intent:R,highlight:y,onFocus:A,onBlur:N,onClick:O}),$=j.filter(v),ee=$.find(e=>e.value===M),[te,ne,oe]=function(e,t){const n=(0,o.useRef)(null),r=(0,o.useRef)(new WeakMap),l=(0,i.useScrollIntoViewHelper)(n.current),a=(0,o.useCallback)(()=>{null!==l.current&&null!==n.current&&l.current.getContainer()!==n.current&&l.current.setContainer(n.current)},[l,n]),c=(0,o.useCallback)(e=>{n.current=e},[n]),u=(0,o.useCallback)((e,t)=>{r.current.set(e,t)},[r]),d=(0,o.useCallback)((e,t)=>{if(!e)return;const n=r.current.get(e);n&&(a(),(0,s.ensureNotNull)(l.current).scrollTo(n,t))},[r,l]);return(0,o.useEffect)(()=>d(e,t),[d,e]),[c,u,d]}(ee),re=(0,r.joinDomIds)(F,n),le=re.length>0?re:void 0,se=(0,o.useMemo)(()=>({role:"listbox","aria-labelledby":F,"aria-activedescendant":C(n,ee)}),[F,ee]),ie=(0,o.useCallback)(e=>e.value===M,[M]),ae=(0,o.useCallback)(e=>z&&z(e.value),[z]),ce=function(e,t,n,r=!0,l={}){const s=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(o===e.length-1&&!r)return;const l=p(o+1,e.length);n&&n(e[l])},[e,t,n,r]),i=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(0===o&&!r)return;const l=p(o-1,e.length);n&&n(e[l])},[e,t,n,r]),a=(0,o.useCallback)(()=>{n&&n(e[0])},[n,e]),c=(0,o.useCallback)(()=>{n&&n(e[e.length-1])},[n,e]),{next:u=h.next,previous:d=h.previous,first:g=h.first,last:b=h.last}=l;return(0,f.useComposedKeyboardActionHandlers)((0,f.useKeyboardActionHandler)(u,s),(0,f.useKeyboardActionHandler)(d,i),(0,f.useKeyboardActionHandler)(g,a),(0, +f.useKeyboardActionHandler)(b,c))}($,ie,ae,!1,{next:[40],previous:[38]}),ue=(0,f.useKeyboardToggle)(Q),de=(0,f.useKeyboardClose)(H,U),fe=(0,f.useKeyboardOpen)(H,G),pe=(0,f.useKeyboardEventHandler)(ue,de,fe),he=(0,f.useKeyboardEventHandler)(ce,ue,de),ge=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)(()=>(0,c.default)(()=>{t.current=""},500),[]),r=(0,o.useMemo)(()=>(0,u.default)(e,200),[e]);return(0,o.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,r(t.current,e),n())},[n,r])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return!e.readonly&&(!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)))})}($,e);void 0!==n&&z&&(t.stopPropagation(),H||G(),z(n.value))});return o.createElement(g.ControlDisclosureView,{...D,...Z,...q,id:n,role:"button",tabIndex:L,"aria-owns":Z["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":le,disabled:w,hideArrowButton:E,isFocused:K,isOpened:H,highlight:W,intent:V,ref:(0,l.useMergedRefs)([Y,t]),onClick:J,onOpen:function(){oe(ee,{duration:0}),P()},onClose:U,onKeyDown:function(e){pe(e),e.defaultPrevented||ge(e)},listboxId:_,listboxTabIndex:T,listboxClassName:d,listboxAria:se,listboxReference:X,scrollWrapReference:te,onListboxKeyDown:function(e){he(e),e.defaultPrevented||ge(e)},buttonChildren:o.createElement(x,{selectedItem:ee,placeholder:k}),repositionOnScroll:B},j.map((e,t)=>{var r;if(e.readonly)return o.createElement(o.Fragment,{key:"readonly_item_"+t},e.content);const l=C(n,e);return o.createElement(a.PopupMenuItem,{key:l,id:l,className:m,role:"option","aria-selected":M===e.value,isActive:M===e.value,label:null!==(r=e.content)&&void 0!==r?r:e.value,onClick:be,onClickArg:e.value,isDisabled:e.disabled,reference:t=>ne(e,t)})}));function be(e){z&&z(e)}});S.displayName="Select"},89974:e=>{e.exports=''},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","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)"}')}}]); \ No newline at end of file diff --git a/charting_library/bundles/29545fef24e0ecc8478adab4816bba30.svg b/charting_library/bundles/29545fef24e0ecc8478adab4816bba30.svg new file mode 100644 index 00000000..5cc4ddef --- /dev/null +++ b/charting_library/bundles/29545fef24e0ecc8478adab4816bba30.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2aecc106c5eb83ecada117376a8c8f2a.svg b/charting_library/bundles/2aecc106c5eb83ecada117376a8c8f2a.svg new file mode 100644 index 00000000..5d49944b --- /dev/null +++ b/charting_library/bundles/2aecc106c5eb83ecada117376a8c8f2a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2b993200d16755e7ff303ad0c32f4919.svg b/charting_library/bundles/2b993200d16755e7ff303ad0c32f4919.svg new file mode 100644 index 00000000..cbe4e4f6 --- /dev/null +++ b/charting_library/bundles/2b993200d16755e7ff303ad0c32f4919.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2c22bc38345265a3c18504acca3e0d56.svg b/charting_library/bundles/2c22bc38345265a3c18504acca3e0d56.svg new file mode 100644 index 00000000..c92c6693 --- /dev/null +++ b/charting_library/bundles/2c22bc38345265a3c18504acca3e0d56.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2c713a3aca13638904167e66cf9eeab0.svg b/charting_library/bundles/2c713a3aca13638904167e66cf9eeab0.svg new file mode 100644 index 00000000..2485b961 --- /dev/null +++ b/charting_library/bundles/2c713a3aca13638904167e66cf9eeab0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2d4c81f5074ead4d91e24dce1782b828.svg b/charting_library/bundles/2d4c81f5074ead4d91e24dce1782b828.svg new file mode 100644 index 00000000..86a57498 --- /dev/null +++ b/charting_library/bundles/2d4c81f5074ead4d91e24dce1782b828.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2d9e49752791b82092387b7ffd7e427f.svg b/charting_library/bundles/2d9e49752791b82092387b7ffd7e427f.svg new file mode 100644 index 00000000..6b707997 --- /dev/null +++ b/charting_library/bundles/2d9e49752791b82092387b7ffd7e427f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2dab12e8a6c93cdc361b475dcd7b3074.svg b/charting_library/bundles/2dab12e8a6c93cdc361b475dcd7b3074.svg new file mode 100644 index 00000000..8cc41c24 --- /dev/null +++ b/charting_library/bundles/2dab12e8a6c93cdc361b475dcd7b3074.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2e59cb1da31075c39dc3b0c1e75e5fd7.svg b/charting_library/bundles/2e59cb1da31075c39dc3b0c1e75e5fd7.svg new file mode 100644 index 00000000..76393490 --- /dev/null +++ b/charting_library/bundles/2e59cb1da31075c39dc3b0c1e75e5fd7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2f1e9623d075ac187394740ee1f6c377.svg b/charting_library/bundles/2f1e9623d075ac187394740ee1f6c377.svg new file mode 100644 index 00000000..086b4b09 --- /dev/null +++ b/charting_library/bundles/2f1e9623d075ac187394740ee1f6c377.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2f71391908131b082aab4d129f7b5272.svg b/charting_library/bundles/2f71391908131b082aab4d129f7b5272.svg new file mode 100644 index 00000000..4a46e2cd --- /dev/null +++ b/charting_library/bundles/2f71391908131b082aab4d129f7b5272.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/2fc23c00813c60848572b5d28ee7dfb9.svg b/charting_library/bundles/2fc23c00813c60848572b5d28ee7dfb9.svg new file mode 100644 index 00000000..d2eb7ae6 --- /dev/null +++ b/charting_library/bundles/2fc23c00813c60848572b5d28ee7dfb9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3014.516162fd8b06ec2cad15.js b/charting_library/bundles/3014.516162fd8b06ec2cad15.js new file mode 100644 index 00000000..cb71545d --- /dev/null +++ b/charting_library/bundles/3014.516162fd8b06ec2cad15.js @@ -0,0 +1,10 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3014],{13398:function(e,t){var n,r,o,i;i=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function i(e,t){return null!=e&&"object"==typeof e&&t in e}var a=RegExp.prototype.test,s=/\S/;function f(e){return!function(e,t){return a.call(e,t)}(s,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},u=/\s*/,p=/\s+/,l=/\s*=/,d=/\s*\}/,h=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,a,s=this,f=!1;s;){if(e.indexOf(".")>0)for(t=s.view,o=e.split("."),a=0;null!=t&&a0?o[o.length-1][4]:n;break;default:r.push(t)}return n +}(function(e){for(var t,n,r=[],o=0,i=e.length;o"===i?a=this.renderPartial(o,t,n,r):"&"===i?a=this.unescapedValue(o,t):"name"===i?a=this.escapedValue(o,t):"text"===i&&(a=this.rawValue(o)),void 0!==a&&(s+=a);return s},y.prototype.renderSection=function(e,t,o,i){var a=this,s="",f=t.lookup(e[1]);if(f){if(n(f))for(var c=0,u=f.length;c"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=m,e.Context=v,e.Writer=y},t&&"string"!=typeof t.nodeName?i(t):(r=[t],void 0===(o="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=o))},61970:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){if(i.constructor!==a.constructor)return!1;var s,f,c,u;if(Array.isArray(i)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(!e(i[f],a[f]))return!1;return!0}if(n&&i instanceof Map&&a instanceof Map){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;for(u=i.entries();!(f=u.next()).done;)if(!e(f.value[1],a.get(f.value[0])))return!1;return!0} +if(r&&i instanceof Set&&a instanceof Set){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(a)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(i[f]!==a[f])return!1;return!0}if(i.constructor===RegExp)return i.source===a.source&&i.flags===a.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===a.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===a.toString();if((s=(c=Object.keys(i)).length)!==Object.keys(a).length)return!1;for(f=s;0!=f--;)if(!Object.prototype.hasOwnProperty.call(a,c[f]))return!1;if(t&&i instanceof Element)return!1;for(f=s;0!=f--;)if(("_owner"!==c[f]&&"__v"!==c[f]&&"__o"!==c[f]||!i.$$typeof)&&!e(i[c[f]],a[c[f]]))return!1;return!0}return i!=i&&a!=a}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},2998:(e,t,n)=>{"use strict";n.d(t,{ManagerReferenceNodeContext:()=>o,ManagerReferenceNodeSetterContext:()=>i,Manager:()=>a});var r=n(59496),o=r.createContext(),i=r.createContext();function a(e){var t=e.children,n=r.useState(null),a=n[0],s=n[1];return r.useEffect((function(){return function(){s(null)}}),[s]),r.createElement(o.Provider,{value:a},r.createElement(i.Provider,{value:s},t))}},4298:(e,t,n)=>{"use strict";n.d(t,{Popper:()=>ve});var r=n(59496),o=n(2998),i=n(58949);function a(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function s(e){return e instanceof a(e).Element||e instanceof Element}function f(e){return e instanceof a(e).HTMLElement||e instanceof HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}var u=Math.round;function p(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return f(e)&&t&&(r=n.width/e.offsetWidth||1,o=n.height/e.offsetHeight||1),{width:u(n.width/r),height:u(n.height/o),top:u(n.top/o),right:u(n.right/r),bottom:u(n.bottom/o),left:u(n.left/r),x:u(n.left/r),y:u(n.top/o)}}function l(e){var t=a(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(h(e)).left+l(e).scrollLeft}function v(e){return a(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function g(e,t,n){void 0===n&&(n=!1);var r,o,i=f(t),s=f(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),c=h(t),u=p(e,s),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(i||!i&&!n)&&(("body"!==d(t)||y(c))&&(v=(r=t)!==a(r)&&f(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:l(r)),f(t)?((g=p(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):c&&(g.x=m(c))),{x:u.left+v.scrollLeft-g.x,y:u.top+v.scrollTop-g.y,width:u.width, +height:u.height}}function b(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(c(e)?e.host:null)||h(e)}function x(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(d(t))>=0?t.ownerDocument.body:f(t)&&y(t)?t:e(w(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=a(r),s=o?[i].concat(i.visualViewport||[],y(r)?r:[]):r,c=t.concat(s);return o?c:c.concat(x(w(s)))}function O(e){return["table","td","th"].indexOf(d(e))>=0}function E(e){return f(e)&&"fixed"!==v(e).position?e.offsetParent:null}function k(e){for(var t=a(e),n=E(e);n&&O(n)&&"static"===v(n).position;)n=E(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===v(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&f(e)&&"fixed"===v(e).position)return null;for(var n=w(e);f(n)&&["html","body"].indexOf(d(n))<0;){var r=v(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var j="top",R="bottom",D="right",S="left",A=[j,R,D,S],M=A.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),P=[].concat(A,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),C=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function U(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var L={placement:"bottom",modifiers:[],strategy:"absolute"};function T(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function N(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?V(o):null,a=o?I(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case j:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:f};break;case S:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?q(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const F={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=N({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var _=Math.max,z=Math.min,$=Math.round,X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:$($(t*r)/r)||0,y:$($(n*r)/r)||0} +}(i):"function"==typeof u?u(i):i,l=p.x,d=void 0===l?0:l,m=p.y,y=void 0===m?0:m,g=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=S,x=j,O=window;if(c){var E=k(n),A="clientHeight",M="clientWidth";E===a(n)&&"static"!==v(E=h(n)).position&&(A="scrollHeight",M="scrollWidth"),E=E,o===j&&(x=R,y-=E[A]-r.height,y*=f?1:-1),o===S&&(w=D,d-=E[M]-r.width,d*=f?1:-1)}var P,C=Object.assign({position:s},c&&X);return f?Object.assign({},C,((P={})[x]=b?"0":"",P[w]=g?"0":"",P.transform=(O.devicePixelRatio||1)<2?"translate("+d+"px, "+y+"px)":"translate3d("+d+"px, "+y+"px, 0)",P)):Object.assign({},C,((t={})[x]=b?y+"px":"",t[w]=g?d+"px":"",t.transform="",t))}var G={left:"right",right:"left",bottom:"top",top:"bottom"};function J(e){return e.replace(/left|right|bottom|top/g,(function(e){return G[e]}))}var K={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(function(e){return K[e]}))}function Z(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function te(e,t){return"viewport"===t?ee(function(e){var t=a(e),n=h(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,f=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,f=r.offsetTop)),{width:o,height:i,x:s+m(e),y:f}}(e)):f(t)?function(e){var t=p(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ee(function(e){var t,n=h(e),r=l(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+m(e),f=-r.scrollTop;return"rtl"===v(o||n).direction&&(s+=_(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(h(e)))}function ne(e,t,n){var r="clippingParents"===t?function(e){var t=x(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&f(e)?k(e):e;return s(n)?t.filter((function(e){return s(e)&&Z(e,n)&&"body"!==d(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=te(e,n);return t.top=_(r.top,t.top),t.right=z(r.right,t.right),t.bottom=z(r.bottom,t.bottom),t.left=_(r.left,t.left),t}),te(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ie(e,t){void 0===t&&(t={}) +;var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,f=n.rootBoundary,c=void 0===f?"viewport":f,u=n.elementContext,l=void 0===u?"popper":u,d=n.altBoundary,m=void 0!==d&&d,v=n.padding,y=void 0===v?0:v,g=re("number"!=typeof y?y:oe(y,A)),b="popper"===l?"reference":"popper",w=e.elements.reference,x=e.rects.popper,O=e.elements[m?b:l],E=ne(s(O)?O:O.contextElement||h(e.elements.popper),a,c),k=p(w),S=N({reference:k,element:x,strategy:"absolute",placement:o}),M=ee(Object.assign({},x,S)),P="popper"===l?M:k,C={top:E.top-P.top+g.top,bottom:P.bottom-E.bottom+g.bottom,left:E.left-P.left+g.left,right:P.right-E.right+g.right},U=e.modifiersData.offset;if("popper"===l&&U){var L=U[o];Object.keys(C).forEach((function(e){var t=[D,R].indexOf(e)>=0?1:-1,n=[j,R].indexOf(e)>=0?"y":"x";C[e]+=L[n]*t}))}return C}function ae(e,t,n){return _(e,z(t,n))}function se(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fe(e){return[j,D,R,S].some((function(t){return e[t]>=0}))}var ce=B({defaultModifiers:[H,F,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:V(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];f(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});f(r)&&d(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce((function(e,n){return e[n]=function(e,t,n){ +var r=V(e),o=[S,j].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[S,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=V(v),g=f||(y===v||!h?[J(v)]:function(e){if("auto"===V(e))return[];var t=J(e);return[Q(e),t,Q(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat("auto"===V(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?P:f,u=I(r),p=u?s?M:M.filter((function(e){return I(e)===u})):A,l=p.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=p);var d=l.reduce((function(t,n){return t[n]=ie(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[V(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,k=b[0],C=0;C=0,W=B?"width":"height",H=ie(t,{placement:U,boundary:u,rootBoundary:p,altBoundary:l,padding:c}),q=B?T?D:S:T?R:j;w[W]>x[W]&&(q=J(q));var N=J(q),F=[];if(i&&F.push(H[L]<=0),s&&F.push(H[q]<=0,H[N]<=0),F.every((function(e){return e}))){k=U,E=!1;break}O.set(U,F)}if(E)for(var _=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},z=h?3:1;z>0;z--){if("break"===_(z))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,h=n.tetherOffset,m=void 0===h?0:h,v=ie(t,{boundary:f,rootBoundary:c,padding:p,altBoundary:u}),y=V(t.placement),g=I(t.placement),w=!g,x=q(y),O="x"===x?"y":"x",E=t.modifiersData.popperOffsets,A=t.rects.reference,M=t.rects.popper,P="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C={x:0,y:0};if(E){if(i||s){var U="y"===x?j:S,L="y"===x?R:D,T="y"===x?"height":"width",B=E[x],W=E[x]+v[U],H=E[x]-v[L],N=d?-M[T]/2:0,F="start"===g?A[T]:M[T],$="start"===g?-M[T]:-A[T],X=t.elements.arrow,Y=d&&X?b(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0 +},J=G[U],K=G[L],Q=ae(0,A[T],Y[T]),Z=w?A[T]/2-N-Q-J-P:F-Q-J-P,ee=w?-A[T]/2+N+Q+K+P:$+Q+K+P,te=t.elements.arrow&&k(t.elements.arrow),ne=te?"y"===x?te.clientTop||0:te.clientLeft||0:0,re=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,oe=E[x]+Z-re-ne,se=E[x]+ee-re;if(i){var fe=ae(d?z(W,oe):W,B,d?_(H,se):H);E[x]=fe,C[x]=fe-B}if(s){var ce="x"===x?j:S,ue="x"===x?R:D,pe=E[O],le=pe+v[ce],de=pe-v[ue],he=ae(d?z(le,oe):le,pe,d?_(de,se):de);E[O]=he,C[O]=he-pe}}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=V(n.placement),f=q(s),c=[S,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return re("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,A))}(o.padding,n),p=b(i),l="y"===f?j:S,d="y"===f?R:D,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=k(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,g=h/2-m/2,w=u[l],x=y-p[c]-u[d],O=y/2-p[c]/2+g,E=ae(w,O,x),M=f;n.modifiersData[r]=((t={})[M]=E,t.centerOffset=E-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Z(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ie(t,{elementContext:"reference"}),s=ie(t,{altBoundary:!0}),f=se(a,r),c=se(s,o,i),u=fe(f),p=fe(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ue=n(61970),pe=n.n(ue),le=[],de=function(){},he=function(){return Promise.resolve(null)},me=[];function ve(e){var t=e.placement,n=void 0===t?"bottom":t,a=e.strategy,s=void 0===a?"absolute":a,f=e.modifiers,c=void 0===f?me:f,u=e.referenceElement,p=e.onFirstUpdate,l=e.innerRef,d=e.children,h=r.useContext(o.ManagerReferenceNodeContext),m=r.useState(null),v=m[0],y=m[1],g=r.useState(null),b=g[0],w=g[1];r.useEffect((function(){(0,i.setRef)(l,v)}),[l,v]);var x=r.useMemo((function(){return{placement:n,strategy:s,onFirstUpdate:p,modifiers:[].concat(c,[{name:"arrow",enabled:null!=b,options:{element:b}}])}}),[n,s,p,c,b]),O=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||le},s=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),f=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);c({styles:(0,i.fromEntries)(n.map((function(e){ +return[e,t.styles[e]||{}]}))),attributes:(0,i.fromEntries)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),p=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return pe()(o.current,e)?o.current||e:(o.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),l=r.useRef();return(0,i.useIsomorphicLayoutEffect)((function(){l.current&&l.current.setOptions(p)}),[p]),(0,i.useIsomorphicLayoutEffect)((function(){if(null!=e&&null!=t){var r=(n.createPopper||ce)(e,t,p);return l.current=r,function(){r.destroy(),l.current=null}}}),[e,t,n.createPopper]),{state:l.current?l.current.state:null,styles:f.styles,attributes:f.attributes,update:l.current?l.current.update:null,forceUpdate:l.current?l.current.forceUpdate:null}}(u||h,v,x),E=O.state,k=O.styles,j=O.forceUpdate,R=O.update,D=r.useMemo((function(){return{ref:y,style:k.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:w},forceUpdate:j||de,update:R||he}}),[y,w,n,E,k,R,j]);return(0,i.unwrapArray)(d)(D)}},64118:(e,t,n)=>{"use strict";n.d(t,{Reference:()=>f});var r=n(59496),o=n(91190),i=n.n(o),a=n(2998),s=n(58949);function f(e){var t=e.children,n=e.innerRef,o=r.useContext(a.ManagerReferenceNodeSetterContext),f=r.useCallback((function(e){(0,s.setRef)(n,e),(0,s.safeInvoke)(o,e)}),[n,o]);return r.useEffect((function(){return function(){return(0,s.setRef)(n,null)}})),r.useEffect((function(){i()(Boolean(o),"`Reference` should not be used outside of a `Manager` component.")}),[o]),(0,s.unwrapArray)(t)({ref:f})}},58949:(e,t,n)=>{"use strict";n.d(t,{unwrapArray:()=>o,safeInvoke:()=>i,setRef:()=>a,fromEntries:()=>s,useIsomorphicLayoutEffect:()=>f});var r=n(59496),o=function(e){return Array.isArray(e)?e[0]:e},i=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";var t=function(){};e.exports=t}}]); \ No newline at end of file diff --git a/charting_library/bundles/3016.47e1775fafc08b9df6b1.js b/charting_library/bundles/3016.47e1775fafc08b9df6b1.js deleted file mode 100644 index 24425fa1..00000000 --- a/charting_library/bundles/3016.47e1775fafc08b9df6b1.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3016],{17683:t=>{t.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:t=>{t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},95711:(t,e,i)=>{"use strict";i.d(e,{PopupContext:()=>s});const s=i(59496).createContext(null)},63016:(t,e,i)=>{"use strict";i.d(e,{PopupDialog:()=>w});var s=i(59496),o=i(97754),n=i(88537),a=i(50655),r=i(88216),l=i(90186),h=i(17683);class d extends s.PureComponent{constructor(){super(...arguments),this._manager=new r.OverlapManager,this._handleSlot=t=>{this._manager.setContainer(t)}}render(){const{rounded:t=!0,shadowed:e=!0,fullscreen:i=!1,darker:n=!1,className:r,backdrop:d}=this.props,c=o(r,h.dialog,t&&h.rounded,e&&h.shadowed,i&&h.fullscreen,n&&h.darker),u=(0,l.filterDataProps)(this.props),g=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return s.createElement(s.Fragment,null,s.createElement(a.SlotContext.Provider,{value:this._manager},d&&s.createElement("div",{onClick:this.props.onClickBackdrop,className:h.backdrop}),s.createElement("div",{...u,className:c,style:g,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),s.createElement(a.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:t,left:e,width:i,right:s,top:o,zIndex:n,height:a}=this.props;return{bottom:t,left:e,right:s,top:o,zIndex:n,maxWidth:i,height:a}}}var c=i(86431),u=i(76594),g=i(64514);function p(t,e,i,s){return t+e>s&&(t=s-e),t{if(0!==t.button||this._isTargetNoDraggable(t))return;t.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const e=_(m(t));this._dragStart(e)},this._onTouchDragStart=t=>{if(this._isTargetNoDraggable(t))return;this._canBeTouchClick=!0,t.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const e=_(f(t));this._dragStart(e)},this._onMouseDragEnd=t=>{t.target instanceof Node&&this._header.contains(t.target)&&t.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop() -},this._onTouchDragEnd=t=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(t){if(t instanceof SVGElement){const e=document.createEvent("SVGEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}t instanceof HTMLElement&&t.click()}(t.target))},this._onMouseDragMove=t=>{const e=_(m(t));this._dragMove(e)},this._onTouchDragMove=t=>{this._canBeTouchClick=!1,t.preventDefault();const e=_(f(t));this._dragMove(e)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=t,this._header=e,this._options=i,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(t){this._options=t}_dragStart(t){const e=this._dialog.getBoundingClientRect();this._drag={startX:t.x,startY:t.y,finishX:t.x,finishY:t.y,dialogX:e.left,dialogY:e.top};const i=Math.round(e.left),s=Math.round(e.top);this._dialog.style.transform=`translate(${i}px, ${s}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(t){if(this._drag){if(this._drag.finishX=t.x,this._drag.finishY=t.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const e=t.x-this._drag.startX,i=t.y-this._drag.startY;this._moveDialog(this._drag.dialogX+e,this._drag.dialogY+i)}this._frame=null})}}_moveDialog(t,e){const i=this._dialog.getBoundingClientRect(),{boundByScreen:s}=this._options,o=p(t,i.width,s?0:-1/0,s?window.innerWidth:1/0),n=p(e,i.height,s?0:-1/0,s?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(o)}px, ${Math.round(n)}px)`}_isTargetNoDraggable(t){return t.target instanceof Element&&null!==t.target.closest("[data-disable-drag]")}}const y={vertical:0};class D{constructor(t,e){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=t,this._guard=e.guard||y,this._calculateDialogPosition=e.calculateDialogPosition,this._initialHeight=t.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(t){this._guard=t.guard||y,this._calculateDialogPosition=t.calculateDialogPosition}setFullscreen(t){this._isFullscreen!==t&&(this._isFullscreen=t,this.recalculateBounds())}centerAndFit(){const{x:t,y:e}=this.getDialogsTopLeftCoordinates(),i=this._calcAvailableHeight(),s=this._calcDialogHeight();if(i===s)if(this._calculateDialogPosition){ -const{left:t,top:e}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(t)}px, ${Math.round(e)}px)`}else this._dialog.style.height=s+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${t}px, ${e}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:t,clientWidth:e}=document.documentElement,i=this._calcDialogHeight(),s=e/2-this._dialog.clientWidth/2,o=t/2-i/2;return{x:Math.round(s),y:Math.round(o)}}recalculateBounds(){const{clientHeight:t,clientWidth:e}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:i}=this._guard;if(this._calculateDialogPosition){const s=this._calculateDialogPosition(this._dialog,{clientWidth:e,clientHeight:t},{vertical:i}),{left:o,top:n}=s;this._dialog.style.transform=`translate(${Math.round(o)}px, ${Math.round(n)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const s=this._dialog.getBoundingClientRect(),o=t-2*i,n=p(s.left,s.width,0,e),a=p(s.top,s.height,i,t);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(n)}px, ${Math.round(a)}px)`,this._dialog.style.height=o{const{reference:e}=this.props;this._dialog=t,"function"==typeof e&&e(t)},this._handleFocus=t=>{this._moveToTop()},this._handleMouseDown=t=>{this._moveToTop()},this._handleTouchStart=t=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return s.createElement(E.PopupContext.Provider,{value:this},s.createElement(u.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},t=>s.createElement("div",{ref:t,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},s.createElement(d,{style:this._applyAnimationCSSVariables(),...this.props,reference:this._handleDialogRef,className:o(T.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:t,boundByScreen:e,onDragStart:i}=this.props,s=(0,n.ensureNotNull)(this._dialog);if(t){const t=s.querySelector("[data-dragg-area]");t&&t instanceof HTMLElement&&(this._drag=new v(s,t,{boundByScreen:Boolean(e),onDragStart:i}))} -this.props.autofocus&&!s.contains(document.activeElement)&&s.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,S.setFixedBodyState)(!0);const{guard:o,calculateDialogPosition:a}=this.props;this._resize=new D(s,{guard:o,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&s.focus()}componentDidUpdate(){if(this._resize){const{guard:t,calculateDialogPosition:e}=this.props;this._resize.updateOptions({guard:t,calculateDialogPosition:e}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,S.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(t){if(this._resize&&this._dialog){const{x:e,y:i}=t,{x:s,y:o}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",e+"px"),this._dialog.style.setProperty("--animationTranslateStartY",i+"px"),this._dialog.style.setProperty("--animationTranslateEndX",s+"px"),this._dialog.style.setProperty("--animationTranslateEndY",o+"px"),this._dialog.classList.add(T.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}M.contextType=x.PortalContext,M.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const w=(0,c.makeOverlapable)(M)},76594:(t,e,i)=>{"use strict";i.d(e,{OutsideEvent:()=>o});var s=i(58095);function o(t){const{children:e,...i}=t;return e((0,s.useOutsideEvent)(i))}},86431:(t,e,i)=>{"use strict";i.d(e,{makeOverlapable:()=>n});var s=i(59496),o=i(65718);function n(t){return class extends s.PureComponent{render(){const{isOpened:e,root:i}=this.props;if(!e)return null;const n=s.createElement(t,{...this.props,zIndex:150});return"parent"===i?n:s.createElement(o.Portal,null,n)}}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/3118.c14bad0abc6803f7cc64.css b/charting_library/bundles/3118.c14bad0abc6803f7cc64.css new file mode 100644 index 00000000..d125f533 --- /dev/null +++ b/charting_library/bundles/3118.c14bad0abc6803f7cc64.css @@ -0,0 +1 @@ +.tv-control-checkbox{-webkit-tap-highlight-color:transparent;cursor:pointer}.tv-control-checkbox--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-checkbox--in-actions{max-width:none}}.tv-control-checkbox,.tv-control-checkbox__label{display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.tv-control-checkbox--nowrap,.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__input{height:18px;left:0;opacity:0;position:absolute;top:0;width:18px}.tv-control-checkbox__box{border-radius:3px;box-sizing:border-box;display:block;height:18px;line-height:1;pointer-events:none;transition:background-color .35s ease;width:18px}.tv-control-checkbox__box:before{background-color:initial;border-radius:3px;left:50%;margin-left:-9px;margin-top:-9px;top:50%;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-checkbox__box:after,.tv-control-checkbox__box:before{content:"";display:block;height:18px;position:absolute;width:18px}.tv-control-checkbox__box:after{border:2px solid #758696;border-radius:3px;box-sizing:border-box;left:0;top:0;transition:border-color .35s ease}.tv-control-checkbox__box svg{stroke:#0000;display:block;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms;width:12px}.tv-control-checkbox__label{margin-right:10px;white-space:normal}.tv-control-checkbox__label--two-lines{width:155px}.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__label--lil-line-height{line-height:16px;max-width:80%;min-width:45%}.tv-control-checkbox__label+.tv-control-checkbox{margin-left:0}.tv-control-checkbox+.tv-control-checkbox__label{margin-left:10px;margin-right:0;max-width:calc(100% - 1ex - 28px)}.tv-control-checkbox:active .tv-control-checkbox__box,.tv-control-checkbox__input:focus+.tv-control-checkbox__box{will-change:background-color}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box{will-change:background-color}}.tv-control-checkbox:active .tv-control-checkbox__box:before,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:before{will-change:transform,border-radius}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box:before{will-change:transform,border-radius}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{will-change:border-color}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box:after{border-color:#627384;will-change:border-color}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{border-radius:50%;transform:scale(0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box svg{stroke:#fff;transform:scale(1);transition-delay:.0875s;transition-timing-function:cubic-bezier(.215,.61,.355,1);will-change:stroke,transform}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1e53e5}.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1e53e5}}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box{background-color:#2962ff}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#e0e3eb}}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363a45}}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#bbd9fb;transition:background-color .35s ease}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#2a2e39}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}}.tv-control-checkbox__ripple{border-radius:50%;display:block;height:100%;margin:-10px;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0);overflow:hidden;padding:10px;position:absolute;right:0;top:0;width:100%}.tv-control-checkbox__input:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:#2962ff40}.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:initial}.tv-control-checkbox.i-error .tv-control-checkbox__box:after{border-color:#ff4a68}.tv-control-checkbox.i-disabled{cursor:default}.tv-dialog__section{border-bottom:1px solid #e0e3eb;padding:30px}html.theme-dark .tv-dialog__section{border-bottom-color:#363a45}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{box-sizing:border-box;display:inline-block;padding-bottom:40px;text-align:right;white-space:nowrap;width:100%}.tv-dialog__section--actions_with-help:after{clear:both;content:"";display:table}.tv-dialog__section--actions_with-border{border-top:1px solid #e0e3eb;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363a45}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{padding-top:24px;white-space:normal}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:24px;width:100%}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-left:0}}.tv-dialog__section--title{padding-right:70px}.tv-dialog__section--one-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-dialog{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;box-sizing:border-box;display:inline-block;min-width:280px;position:relative;text-align:left;transition-property:none}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{background-color:initial;box-shadow:none!important}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:initial}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{bottom:0;box-sizing:border-box;contain:layout style size;left:0;position:fixed;right:0;top:0;z-index:110}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:#9598a1;opacity:.5;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .tv-dialog__overlay{background-color:#0c0e15}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin{background-color:#fff;opacity:1}html.theme-dark .tv-dialog__overlay--signin{background-color:#131722}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{-webkit-overflow-scrolling:touch;overflow-x:hidden;overflow-y:auto}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{border:0;box-sizing:border-box;height:100%;margin:0;padding:0;text-align:center}.tv-dialog__modal-container--recovery-container{align-items:center;display:flex}.tv-dialog__modal-container--two-factor{max-width:340px;width:100%}.tv-dialog__modal-container:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-dialog__modal-body{box-sizing:border-box;display:inline-block;font-size:14px;padding:40px 20px;vertical-align:middle;width:100%}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{background:#fff;border:1px solid #f7525f;border-radius:3px 3px 0 0;box-sizing:border-box;color:#f7525f;left:0;padding:30px;position:absolute;right:0;top:0;transform-origin:top center;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d;border:1px solid #cc2f3c;color:#cc2f3c}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#f7525f;text-decoration:underline;transition:color .35s ease}html.theme-dark .tv-dialog__error a{color:#cc2f3c}.tv-dialog__error a:visited{fill:#f7525f;color:#f7525f}html.theme-dark .tv-dialog__error a:visited{fill:#cc2f3c;color:#cc2f3c}@media (any-hover:hover){.tv-dialog__error a:hover{fill:#f23645;color:#f23645;transition-duration:.06s}html.theme-dark .tv-dialog__error a:hover{fill:#f23645;color:#f23645}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{fill:#cc2f3c;color:#cc2f3c;transition-duration:.06s}html.theme-dark .tv-dialog__error a:active{fill:#f7525f;color:#f7525f}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{flex:0 0 auto;margin-bottom:10px;margin-right:20px}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{color:#434651;font-size:14px;font-weight:700}html.theme-dark .tv-dialog__title{color:#d1d4dc}.tv-dialog__title--relative{position:relative}.tv-dialog__close{color:#434651;cursor:pointer;opacity:.5;padding:15px;position:absolute;right:15px;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-dialog__close{color:#d1d4dc}@media screen and (max-width:767px){.tv-dialog__close{right:7px;top:7px}}@media (any-hover:hover){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;height:13px;width:13px}.tv-dialog__close--new-style svg{fill:#4c525e;height:21px;width:21px}.tv-dialog__widetextarea{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-left:none;border-radius:2px;border-radius:0;border-right:none;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;height:auto;padding:25px 30px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-dialog__widetextarea{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-dialog__widetextarea::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#50535e}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{font-size:16px;height:48px}.tv-dialog__widetextarea--connect{border-left:0;border-radius:0;border-right:0}.tv-dialog__widetextarea--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-dialog__widetextarea--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-dialog__widetextarea:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-dialog__widetextarea:hover{border-color:#50535e}}.tv-dialog__widetextarea:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-dialog__widetextarea[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-dialog__widetextarea[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#2a2e39!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#2a2e39!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#089981!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#06806b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#056656!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#089981!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:left}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly],html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#50535e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{border:1px solid #787b86;border-radius:50%;color:#787b86;float:left;font-size:13px;height:18px;line-height:16px;margin-right:15px;position:relative;top:8px;transition:border-color .35s ease,color .35s ease;width:18px}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";display:inline-block;left:7px;position:absolute;top:2px}@media (any-hover:hover){.tv-dialog__help:hover{border:1px solid #434651;color:#212121;transition-duration:.06s}html.theme-dark .tv-dialog__help:hover{border-color:#d1d4dc}}.tv-dialog__username-pretext{margin-right:5px}.tv-dialog__chat-username-input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-dialog__chat-username-input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#50535e}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{font-size:16px;height:48px}.tv-dialog__chat-username-input--connect{border-left:0;border-radius:0;border-right:0}.tv-dialog__chat-username-input--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-dialog__chat-username-input--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-dialog__chat-username-input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#50535e}}.tv-dialog__chat-username-input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-dialog__chat-username-input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-dialog__chat-username-input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#2a2e39!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly],html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#50535e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#2a2e39!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#089981!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#06806b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#089981!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:left}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{background-color:#fff;border-width:0;color:#434651;display:inline-block;height:15px;width:85%}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{background-color:#1e222d;color:#d1d4dc}.tv-dialog__chat-username-input--error{background-color:#f7525f}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#cc2f3c}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{padding-bottom:0;position:relative}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#2962ff}.tv-dialog__link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-dialog__link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-dialog__link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-dialog__link:hover{fill:#1e53e5;color:#1e53e5}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-dialog__link:active{fill:#1848cc;color:#1848cc}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;content:"";display:table}.i-align_left{text-align:left!important}.i-align_right{text-align:right!important}.i-align_center{text-align:center!important}.i-float_left{float:left!important}.i-float_right{float:right!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap} \ No newline at end of file diff --git a/charting_library/bundles/3118.c14bad0abc6803f7cc64.rtl.css b/charting_library/bundles/3118.c14bad0abc6803f7cc64.rtl.css new file mode 100644 index 00000000..f2f6f9ec --- /dev/null +++ b/charting_library/bundles/3118.c14bad0abc6803f7cc64.rtl.css @@ -0,0 +1 @@ +.tv-control-checkbox{-webkit-tap-highlight-color:transparent;cursor:pointer}.tv-control-checkbox--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-checkbox--in-actions{max-width:none}}.tv-control-checkbox,.tv-control-checkbox__label{display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.tv-control-checkbox--nowrap,.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__input{height:18px;opacity:0;position:absolute;right:0;top:0;width:18px}.tv-control-checkbox__box{border-radius:3px;box-sizing:border-box;display:block;height:18px;line-height:1;pointer-events:none;transition:background-color .35s ease;width:18px}.tv-control-checkbox__box:before{background-color:initial;border-radius:3px;margin-right:-9px;margin-top:-9px;right:50%;top:50%;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-checkbox__box:after,.tv-control-checkbox__box:before{content:"";display:block;height:18px;position:absolute;width:18px}.tv-control-checkbox__box:after{border:2px solid #758696;border-radius:3px;box-sizing:border-box;right:0;top:0;transition:border-color .35s ease}.tv-control-checkbox__box svg{stroke:#0000;display:block;height:12px;margin-right:-6px;margin-top:-6px;position:absolute;right:50%;top:50%;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms;width:12px}.tv-control-checkbox__label{margin-left:10px;white-space:normal}.tv-control-checkbox__label--two-lines{width:155px}.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__label--lil-line-height{line-height:16px;max-width:80%;min-width:45%}.tv-control-checkbox__label+.tv-control-checkbox{margin-right:0}.tv-control-checkbox+.tv-control-checkbox__label{margin-left:0;margin-right:10px;max-width:calc(100% - 1ex - 28px)}.tv-control-checkbox:active .tv-control-checkbox__box,.tv-control-checkbox__input:focus+.tv-control-checkbox__box{will-change:background-color}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box{will-change:background-color}}.tv-control-checkbox:active .tv-control-checkbox__box:before,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:before{will-change:transform,border-radius}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box:before{will-change:transform,border-radius}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{will-change:border-color}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__box:after{border-color:#627384;will-change:border-color}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{border-radius:50%;transform:scale(0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox__input:checked+.tv-control-checkbox__box svg{stroke:#fff;transform:scale(1);transition-delay:.0875s;transition-timing-function:cubic-bezier(.215,.61,.355,1);will-change:stroke,transform}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1e53e5}.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1e53e5}}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box{background-color:#2962ff}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box:after{border-color:#2962ff}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#e0e3eb}}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363a45}}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#bbd9fb;transition:background-color .35s ease}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#2a2e39}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}@media (any-hover:hover){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}}.tv-control-checkbox__ripple{border-radius:50%;display:block;height:100%;left:0;margin:-10px;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0);overflow:hidden;padding:10px;position:absolute;top:0;width:100%}.tv-control-checkbox__input:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:#2962ff40}.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:initial}.tv-control-checkbox.i-error .tv-control-checkbox__box:after{border-color:#ff4a68}.tv-control-checkbox.i-disabled{cursor:default}.tv-dialog__section{border-bottom:1px solid #e0e3eb;padding:30px}html.theme-dark .tv-dialog__section{border-bottom-color:#363a45}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{box-sizing:border-box;display:inline-block;padding-bottom:40px;text-align:left;white-space:nowrap;width:100%}.tv-dialog__section--actions_with-help:after{clear:both;content:"";display:table}.tv-dialog__section--actions_with-border{border-top:1px solid #e0e3eb;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363a45}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{padding-top:24px;white-space:normal}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:24px;width:100%}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-right:0}}.tv-dialog__section--title{padding-left:70px}.tv-dialog__section--one-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-dialog{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;box-sizing:border-box;display:inline-block;min-width:280px;position:relative;text-align:right;transition-property:none}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{background-color:initial;box-shadow:none!important}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:initial}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{bottom:0;box-sizing:border-box;contain:layout style size;left:0;position:fixed;right:0;top:0;z-index:110}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:#9598a1;opacity:.5;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .tv-dialog__overlay{background-color:#0c0e15}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin{background-color:#fff;opacity:1}html.theme-dark .tv-dialog__overlay--signin{background-color:#131722}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{-webkit-overflow-scrolling:touch;overflow-x:hidden;overflow-y:auto}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{border:0;box-sizing:border-box;height:100%;margin:0;padding:0;text-align:center}.tv-dialog__modal-container--recovery-container{align-items:center;display:flex}.tv-dialog__modal-container--two-factor{max-width:340px;width:100%}.tv-dialog__modal-container:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-dialog__modal-body{box-sizing:border-box;display:inline-block;font-size:14px;padding:40px 20px;vertical-align:middle;width:100%}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{background:#fff;border:1px solid #f7525f;border-radius:3px 3px 0 0;box-sizing:border-box;color:#f7525f;left:0;padding:30px;position:absolute;right:0;top:0;transform-origin:top center;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d;border:1px solid #cc2f3c;color:#cc2f3c}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#f7525f;text-decoration:underline;transition:color .35s ease}html.theme-dark .tv-dialog__error a{color:#cc2f3c}.tv-dialog__error a:visited{fill:#f7525f;color:#f7525f}html.theme-dark .tv-dialog__error a:visited{fill:#cc2f3c;color:#cc2f3c}@media (any-hover:hover){.tv-dialog__error a:hover{fill:#f23645;color:#f23645;transition-duration:.06s}html.theme-dark .tv-dialog__error a:hover{fill:#f23645;color:#f23645}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{fill:#cc2f3c;color:#cc2f3c;transition-duration:.06s}html.theme-dark .tv-dialog__error a:active{fill:#f7525f;color:#f7525f}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{flex:0 0 auto;margin-bottom:10px;margin-left:20px}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{color:#434651;font-size:14px;font-weight:700}html.theme-dark .tv-dialog__title{color:#d1d4dc}.tv-dialog__title--relative{position:relative}.tv-dialog__close{color:#434651;cursor:pointer;left:15px;opacity:.5;padding:15px;position:absolute;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-dialog__close{color:#d1d4dc}@media screen and (max-width:767px){.tv-dialog__close{left:7px;top:7px}}@media (any-hover:hover){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;height:13px;width:13px}.tv-dialog__close--new-style svg{fill:#4c525e;height:21px;width:21px}.tv-dialog__widetextarea{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-left:none;border-radius:2px;border-radius:0;border-right:none;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;height:auto;padding:25px 30px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-dialog__widetextarea{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-dialog__widetextarea::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#50535e}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{font-size:16px;height:48px}.tv-dialog__widetextarea--connect{border-left:0;border-radius:0;border-right:0}.tv-dialog__widetextarea--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-dialog__widetextarea--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-dialog__widetextarea--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-dialog__widetextarea:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-dialog__widetextarea:hover{border-color:#50535e}}.tv-dialog__widetextarea:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-dialog__widetextarea[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-dialog__widetextarea[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#2a2e39!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#2a2e39!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#089981!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#06806b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#056656!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#089981!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:right}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly],html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#50535e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{border:1px solid #787b86;border-radius:50%;color:#787b86;float:right;font-size:13px;height:18px;line-height:16px;margin-left:15px;position:relative;top:8px;transition:border-color .35s ease,color .35s ease;width:18px}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";display:inline-block;position:absolute;right:7px;top:2px}@media (any-hover:hover){.tv-dialog__help:hover{border:1px solid #434651;color:#212121;transition-duration:.06s}html.theme-dark .tv-dialog__help:hover{border-color:#d1d4dc}}.tv-dialog__username-pretext{margin-left:5px}.tv-dialog__chat-username-input{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0 12px;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-dialog__chat-username-input::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#50535e}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{font-size:16px;height:48px}.tv-dialog__chat-username-input--connect{border-left:0;border-radius:0;border-right:0}.tv-dialog__chat-username-input--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-dialog__chat-username-input--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-dialog__chat-username-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-dialog__chat-username-input:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#50535e}}.tv-dialog__chat-username-input:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-dialog__chat-username-input[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-dialog__chat-username-input[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#2a2e39!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly],html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#50535e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#2a2e39!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#089981!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#06806b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#056656!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#089981!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:right}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{background-color:#fff;border-width:0;color:#434651;display:inline-block;height:15px;width:85%}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{background-color:#1e222d;color:#d1d4dc}.tv-dialog__chat-username-input--error{background-color:#f7525f}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#cc2f3c}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{padding-bottom:0;position:relative}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#2962ff}.tv-dialog__link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-dialog__link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-dialog__link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-dialog__link:hover{fill:#1e53e5;color:#1e53e5}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-dialog__link:active{fill:#1848cc;color:#1848cc}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;content:"";display:table}.i-align_left{text-align:right!important}.i-align_right{text-align:left!important}.i-align_center{text-align:center!important}.i-float_left{float:right!important}.i-float_right{float:left!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap} \ No newline at end of file diff --git a/charting_library/bundles/3199.f9bb1cc19bce0ed4e13a.js b/charting_library/bundles/3199.f9bb1cc19bce0ed4e13a.js deleted file mode 100644 index 518089f4..00000000 --- a/charting_library/bundles/3199.f9bb1cc19bce0ed4e13a.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3199],{83199:(t,e,r)=>{r.d(e,{FixedSizeList:()=>x,VariableSizeList:()=>z});var n=r(19624),o=r(11430);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,o.default)(t,e)}var a=r(75542),l=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function s(t,e){if(t.length!==e.length)return!1;for(var r=0;r=e?t.call(null):n.id=requestAnimationFrame(o)}))};return n}var m=null;function p(t){if(void 0===t&&(t=!1),null===m||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?m="positive-descending":(e.scrollLeft=1,m=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),m}return m}var v=function(t,e){return t};function g(t){var e,r,o=t.getItemOffset,l=t.getEstimatedTotalSize,s=t.getItemSize,f=t.getOffsetForIndexAndAlignment,m=t.getStartIndexForOffset,g=t.getStopIndexForStartIndex,I=t.initInstanceProps,_=t.shouldResetStyleCacheOnItemSizeChange,M=t.validateProps;return r=e=function(t){function e(e){var r;return(r=t.call(this,e)||this)._instanceProps=I(r.props,(0,a.default)((0,a.default)(r))),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,a.default)((0,a.default)(r)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=c((function(t,e,n,o){return r.props.onItemsRendered({overscanStartIndex:t,overscanStopIndex:e,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=c((function(t,e,n){return r.props.onScroll({scrollDirection:t,scrollOffset:e,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(t){var e,n=r.props,i=n.direction,a=n.itemSize,l=n.layout,c=r._getItemStyleCache(_&&a,_&&l,_&&i);if(c.hasOwnProperty(t))e=c[t];else{var u=o(r.props,t,r._instanceProps),f=s(r.props,t,r._instanceProps),d="horizontal"===i||"horizontal"===l,h="rtl"===i,m=d?u:0;c[t]=e={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:d?0:u,height:d?"100%":f,width:d?f:"100%"}}return e},r._getItemStyleCache=void 0,r._getItemStyleCache=c((function(t,e,r){return{}})),r._onScrollHorizontal=function(t){ -var e=t.currentTarget,n=e.clientWidth,o=e.scrollLeft,i=e.scrollWidth;r.setState((function(t){if(t.scrollOffset===o)return null;var e=r.props.direction,a=o;if("rtl"===e)switch(p()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:t.scrollOffset0)for(var b=w;b<=C;b++)R.push((0, -u.createElement)(e,{data:d,key:m(b,d),index:b,isScrolling:_?y:void 0,style:this._getItemStyle(b)}));var T=l(this.props,this._instanceProps);return(0,u.createElement)(g||S||"div",{className:r,onScroll:x,ref:this._outerRefSetter,style:(0,n.default)({position:"relative",height:i,width:M,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},I)},(0,u.createElement)(s||c||"div",{children:R,ref:a,style:{height:z?"100%":T,pointerEvents:y?"none":void 0,width:z?T:"100%"}}))},r._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var t=this._getRangeToRender(),e=t[0],r=t[1],n=t[2],o=t[3];this._callOnItemsRendered(e,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},r._getRangeToRender=function(){var t=this.props,e=t.itemCount,r=t.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===e)return[0,0,0,0];var l=m(this.props,a,this._instanceProps),s=g(this.props,l,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,r),u=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,l-c),Math.max(0,Math.min(e-1,s+u)),l,s]},e}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var S=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},I=function(t,e,r){var n=t.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(e>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=e;s++){var c=n(s);o[s]={offset:a,size:c},a+=c}r.lastMeasuredIndex=e}return o[e]},_=function(t,e,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=I(t,i,e).offset;if(a===o)return i;ao&&(r=i-1)}return n>0?n-1:0},M=function(t,e,r,n){for(var o=t.itemCount,i=1;r=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},z=g({getItemOffset:function(t,e,r){return I(t,e,r).offset},getItemSize:function(t,e,r){return r.itemMetadataMap[e].size},getEstimatedTotalSize:y,getOffsetForIndexAndAlignment:function(t,e,r,n,o){var i=t.direction,a=t.height,l=t.layout,s=t.width,c="horizontal"===i||"horizontal"===l?s:a,u=I(t,e,o),f=y(t,o),d=Math.max(0,Math.min(f-c,u.offset)),h=Math.max(0,u.offset-c+u.size);switch("smart"===r&&(r=n>=h-c&&n<=d+c?"auto":"center"),r){case"start":return d;case"end":return h;case"center":return Math.round(h+(d-h)/2);case"auto":default:return n>=h&&n<=d?n:n0?n[o].offset:0)>=r?_(t,e,o,0,r):M(t,e,Math.max(0,o),r)}(t,r,e)},getStopIndexForStartIndex:function(t,e,r,n){ -for(var o=t.direction,i=t.height,a=t.itemCount,l=t.layout,s=t.width,c="horizontal"===o||"horizontal"===l?s:i,u=I(t,e,n),f=r+c,d=u.offset+u.size,h=e;h=h-u&&n<=d+u?"auto":"center"),r){case"start":return d;case"end":return h;case"center":var m=Math.round(h+(d-h)/2);return mf+Math.floor(u/2)?f:m;case"auto":default:return n>=h&&n<=d?n:n \ No newline at end of file diff --git a/charting_library/bundles/3245.428fb1c689b8d7beb80e.js b/charting_library/bundles/3245.428fb1c689b8d7beb80e.js new file mode 100644 index 00000000..cc79ab50 --- /dev/null +++ b/charting_library/bundles/3245.428fb1c689b8d7beb80e.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3245],{67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},89185:e=>{e.exports={itemRow:"itemRow-9Sl1Rwzy",favoriteButton:"favoriteButton-9Sl1Rwzy",active:"active-9Sl1Rwzy",selected:"selected-9Sl1Rwzy",mobile:"mobile-9Sl1Rwzy",itemInfo:"itemInfo-9Sl1Rwzy",title:"title-9Sl1Rwzy",details:"details-9Sl1Rwzy",itemInfoWithPadding:"itemInfoWithPadding-9Sl1Rwzy",favorite:"favorite-9Sl1Rwzy",removeButton:"removeButton-9Sl1Rwzy"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},97623:e=>{e.exports={scrollWrap:"scrollWrap-9M00JHkT"}},62230:e=>{e.exports={wrap:"wrap-Shy8LdqT","wrap--horizontal":"wrap--horizontal-Shy8LdqT",bar:"bar-Shy8LdqT",barInner:"barInner-Shy8LdqT","barInner--horizontal":"barInner--horizontal-Shy8LdqT","bar--horizontal":"bar--horizontal-Shy8LdqT"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o});var r=n(59496);const o=r.forwardRef((e,t)=>{const{icon:n="",...o}=e;return r.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:n}})})},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function s(o){if(e>o.timeStamp)return;const s=o.target;void 0!==n&&null!==t&&null!==s&&s.ownerDocument===r&&(t.contains(s)||n(o))}return o.click&&r.addEventListener("click",s,!1),o.mouseDown&&r.addEventListener("mousedown",s,!1),o.touchEnd&&r.addEventListener("touchend",s,!1),o.touchStart&&r.addEventListener("touchstart",s,!1),()=>{r.removeEventListener("click",s,!1),r.removeEventListener("mousedown",s,!1),r.removeEventListener("touchend",s,!1),r.removeEventListener("touchstart",s,!1)}}n.d(t,{addOutsideEventListener:()=>r})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>r,matchMediaMinMax:()=>o,setStyle:()=>s,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>l});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=o-i}return e}})();function o(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function s(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(i(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{ +setFixedBodyState:()=>i});var r=n(68722);let o=0,s=!1;function i(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++o){const e=(0,r.getCSSProperty)(t,"overflow"),o=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",(0,r.getScrollbarWidth)()+"px"),t.style.paddingRight=o+(0,r.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&o>0&&0==--o&&(t.classList.remove("i-no-scroll"),s)){(0,r.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>b});var r=n(59496),o=n(88537);var s=n(97754),i=n.n(s),l=n(68335),a=n(35749),c=n(81e3),u=n(1109),d=n(24437),h=n(90692),p=n(95711),m=n(52092),f=n(76422),v=n(9745);const g=r.createContext({setHideClose:()=>{}});var _=n(37257),C=n(91441);function E(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:s,renderBefore:l,renderAfter:a,draggable:c,className:u,unsetAlign:d}=e,[h,p]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:p}},r.createElement("div",{className:i()(C.container,u,(n||d)&&C.unsetAlign)},l,r.createElement("div",{"data-dragg-area":c,className:C.title},r.createElement("div",{className:C.ellipsis},t),n&&r.createElement("div",{className:i()(C.ellipsis,C.subtitle)},n)),a,o&&!h&&r.createElement(v.Icon,{className:C.close,icon:_,onClick:s,"data-name":"close","data-role":"button"})))}var w=n(67179);const y={vertical:20},S={vertical:0};class b extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,a.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;f.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(), +void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;f.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:s,dataName:l,onClickOutside:a,additionalElementPos:m,additionalHeaderElement:f,backdrop:v,shouldForceFocus:g=!0,showSeparator:_,subtitle:C,draggable:b=!0,fullScreen:x=!1,showCloseIcon:M=!0,rounded:N=!0,isAnimationEnabled:O,growPoint:P,dialogTooltip:D,unsetHeaderAlign:R,onDragStart:W,dataDialogName:z}=this.props,L="after"!==m?f:void 0,T="after"===m?f:void 0,k="string"==typeof s?s:z||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||x)&&N,className:i()(w.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:a,onClickBackdrop:a,fullscreen:d||x,guard:m?S:y,boundByScreen:d||x,shouldForceFocus:g,backdrop:v,draggable:b,isAnimationEnabled:O,growPoint:P,name:this.props.dataName,dialogTooltip:D,onDragStart:W},r.createElement("div",{className:i()(w.wrapper,t),"data-name":l,"data-dialog-name":k},void 0!==s&&r.createElement(E,{draggable:b&&!(d||x),onClose:this._handleClose,renderAfter:T,renderBefore:L,subtitle:C,title:s,showCloseIcon:M,className:n,unsetAlign:R}),_&&r.createElement(u.Separator,{className:w.separator}),r.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,d||x))))))}}},64530:(e,t,n)=>{"use strict";n.d(t,{DialogContentItem:()=>d});var r=n(59496),o=n(97754),s=n.n(o),i=n(49483),l=n(36189),a=n(96040);function c(e){const{url:t,...n}=e;return t?r.createElement("a",{...n,href:t}):r.createElement("div",{...n})}var u=n(89185);function d(e){const{title:t,subtitle:n,removeBtnLabel:o,onClick:d,onClickFavorite:p,onClickRemove:m,isActive:f,isSelected:v,isFavorite:g,isMobile:_=!1,showFavorite:C=!0,...E}=e;return r.createElement(c,{...E,className:s()(u.itemRow,f&&!v&&u.active,_&&u.mobile,v&&u.selected),onClick:h.bind(null,d),"data-role":"list-item","data-active":f},C&&p&&r.createElement(l.FavoriteButton,{className:s()(u.favoriteButton,g&&u.favorite,i.CheckMobile.any()&&u.mobile),isActive:f&&!v,isFilled:g,onClick:h.bind(null,p),"data-name":"list-item-favorite-button","data-favorite":g}),r.createElement("div",{className:s()(u.itemInfo,!C&&u.itemInfoWithPadding)},r.createElement("div",{className:s()(u.title,f&&!v&&u.active,_&&u.mobile), +"data-name":"list-item-title"},t),r.createElement("div",{className:s()(u.details,f&&!v&&u.active,_&&u.mobile)},n)),r.createElement(a.RemoveButton,{className:u.removeButton,isActive:f&&!v,onClick:h.bind(null,m),"data-name":"list-item-remove-button",title:o}))}function h(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},3085:(e,t,n)=>{"use strict";n.d(t,{OverlayScrollContainer:()=>p});var r=n(59496),o=n(97754),s=n.n(o),i=n(88537),l=n(64514),a=n(62820);const c=n(62230);function u(e){const{size:t,scrollSize:n,clientSize:o,scrollProgress:u,onScrollProgressChange:d,horizontal:h,theme:p=c,onDragStart:m,onDragEnd:f,minBarSize:v=40}=e,g=(0,r.useRef)(null),_=(0,r.useRef)(null),[C,E]=(0,r.useState)(!1),w=(0,r.useRef)(0);(0,r.useEffect)(()=>{const e=(0,i.ensureNotNull)(g.current).ownerDocument;return C?(m&&m(),e&&(e.addEventListener("mousemove",N),e.addEventListener("mouseup",O))):f&&f(),()=>{e&&(e.removeEventListener("mousemove",N),e.removeEventListener("mouseup",O))}},[C]);const y=t/n||0,S=o*y||0,b=Math.max(S,v),x=(t-b)/(t-S),M=function(e){if((0,a.isRtl)()&&h)return e-n+o;return e}((0,l.clamp)(u,0,n-t));return r.createElement("div",{ref:g,className:s()(p.wrap,h&&p["wrap--horizontal"]),style:{[h?"width":"height"]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const r=(0,i.ensureNotNull)(_.current).getBoundingClientRect();w.current=(h?r.width:r.height)/2;const o=n-t;let s=P(e.nativeEvent,(0,i.ensureNotNull)(g.current))-w.current;s<0?(s=0,w.current=P(e.nativeEvent,(0,i.ensureNotNull)(g.current))):s>o*y*x&&(s=o*y*x,w.current=P(e.nativeEvent,(0,i.ensureNotNull)(g.current))-s);d(s/y/x),E(!0)}},r.createElement("div",{ref:_,className:s()(p.bar,h&&p["bar--horizontal"]),style:{[h?"minWidth":"minHeight"]:v,[h?"width":"height"]:b,transform:`translate${h?"X":"Y"}(${M*y*x||0}px)`},onMouseDown:function(e){e.preventDefault(),w.current=P(e.nativeEvent,(0,i.ensureNotNull)(_.current)),E(!0)}},r.createElement("div",{className:s()(p.barInner,h&&p["barInner--horizontal"])})));function N(e){const t=P(e,(0,i.ensureNotNull)(g.current))-w.current;d(t/y/x)}function O(e){E(!1)}function P(e,t){const n=t.getBoundingClientRect();return h?e.clientX-n.left:e.clientY-n.top}}var d=n(70412),h=n(97623);function p(e){const{reference:t,className:n,containerHeight:s=0,containerWidth:i=0,contentHeight:l=0,contentWidth:a=0,scrollPosTop:c=0,scrollPosLeft:p=0,onVerticalChange:m,onHorizontalChange:f,visible:v}=e,[g,_]=(0,d.useHover)(),[C,E]=(0,r.useState)(!1),w=s{"use strict";n.d(t,{useDimensions:()=>o});var r=n(59496);function o(){ +const[e,t]=(0,r.useState)(null);return[(0,r.useCallback)(n=>{n.width===(null==e?void 0:e.width)&&n.height===e.height||t(n)},[e]),e]}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>i,useHover:()=>o});var r=n(59496);function o(){const[e,t]=(0,r.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function i(e){const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const t=t=>{if(null===e.current)return;const r=e.current.contains(t.target);n(r)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var r=n(59496),o=n(39640);function s(e){const{click:t,mouseDown:n,touchEnd:s,touchStart:i,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:s,touchStart:i},r=a?a.current:u.current;return(0,o.addOutsideEventListener)(d.current,r,l,c,e)},[t,n,s,i,l]),a||u}},33127:(e,t,n)=>{"use strict";n.d(t,{useOverlayScroll:()=>a});var r=n(59496),o=n(88537),s=n(70412),i=n(49483);const l={onMouseOver:()=>{},onMouseOut:()=>{}};function a(e,t=i.CheckMobile.any()){const n=(0,r.useRef)(null),a=e||(0,r.useRef)(null),[c,u]=(0,s.useHover)(),[d,h]=(0,r.useState)({reference:n,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){h(t=>({...t,scrollPosTop:e})),(0,o.ensureNotNull)(a.current).scrollTop=e},onHorizontalChange:function(e){h(t=>({...t,scrollPosLeft:e})),(0,o.ensureNotNull)(a.current).scrollLeft=e},visible:c}),p=(0,r.useCallback)(()=>{if(!a.current)return;const{clientHeight:e,scrollHeight:t,scrollTop:r,clientWidth:o,scrollWidth:s,scrollLeft:i}=a.current,l=n.current?n.current.offsetTop:0;h(n=>({...n,containerHeight:e-l,contentHeight:t-l,scrollPosTop:r,containerWidth:o,contentWidth:s,scrollPosLeft:i}))},[]);function m(){h(e=>({...e,scrollPosTop:(0,o.ensureNotNull)(a.current).scrollTop,scrollPosLeft:(0,o.ensureNotNull)(a.current).scrollLeft}))}return(0,r.useEffect)(()=>{c&&p(),h(e=>({...e,visible:c}))},[c]),(0,r.useEffect)(()=>{const e=a.current;return e&&e.addEventListener("scroll",m),()=>{e&&e.removeEventListener("scroll",m)}},[a]),[d,t?l:u,a,p]}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>o});var r=n(59496);class o extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){ +e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>r});const r=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>v,Menu:()=>g});var r=n(59496),o=n(97754),s=n.n(o),i=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),f=n(16059);const v=f;class g extends r.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,r,o,s;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,i.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const f=u.height>m;if(f){(0,i.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:v,height:g}=u,_="function"==typeof a?a(v,g,d):a,C=h-(null!==(r=_.overrideWidth)&&void 0!==r?r:v)-0,E=(0,l.clamp)(_.x,0,Math.max(0,C)),w=0+p,y=d-(null!==(o=_.overrideHeight)&&void 0!==o?o:g)-0;let S=(0,l.clamp)(_.y,w,Math.max(w,y));if(_.forbidCorrectYCoord&&S<_.y&&(m-=_.y-S,S=_.y),t&&void 0!==this.props.closeOnScrollOutsideOffset&&_.y<=this.props.closeOnScrollOutsideOffset)return void this._handleGlobalClose(!0);const b=null!==(s=_.overrideHeight)&&void 0!==s?s:f?m:void 0;this.setState({appearingMenuHeight:t?this.state.appearingMenuHeight:b,appearingMenuWidth:t?this.state.appearingMenuWidth:_.overrideWidth,appearingPosition:{x:E,y:S},isMeasureValid:!0},()=>{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,i.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0, +i.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":o,children:i,minWidth:l,theme:u=f,className:d,maxHeight:h,onMouseOver:v,onMouseOut:g,onKeyDown:C,onFocus:E,onBlur:w}=this.props,{appearingMenuHeight:y,appearingMenuWidth:S,appearingPosition:b,isMeasureValid:x}=this.state;return r.createElement(m.MenuContext.Provider,{value:this},r.createElement(p.SubmenuHandler,null,r.createElement(c.SlotContext.Provider,{value:this._manager},r.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":o,className:s()(d,u.menuWrap,!x&&u.isMeasuring),style:{height:y,left:b&&b.x,minWidth:l,position:"fixed",top:b&&b.y,width:S},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:v,onMouseOut:g,onKeyDown:C,onFocus:E,onBlur:w},r.createElement("div",{className:s()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==y?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},r.createElement(_,{className:u.menuBox},i)))),r.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function _(e){const t=(0,i.ensureNotNull)((0,r.useContext)(p.SubmenuContext)),n=r.useRef(null);return r.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(r=e.target, +null===(o=n.current)||void 0===o?void 0:o.contains(r))))return;var r,o;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}g.contextType=p.SubmenuContext},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>i});var r=n(59496),o=n(97754),s=n(91626);function i(e){return r.createElement("div",{className:o(s.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>l});var r=n(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(i.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),o=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(o.Portal,null,s)}}}},29197:(e,t,n)=>{"use strict" +;n.d(t,{CloseDelegateContext:()=>s});var r=n(59496),o=n(59064);const s=r.createContext(o.globalCloseDelegate)},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>c});var r=n(59496),o=n(87995),s=n(65718),i=n(27317),l=n(29197),a=n(58095);function c(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:u=!0,doNotCloseOn:d,onClickOutside:h,onClose:p,...m}=e,f=(0,r.useContext)(l.CloseDelegateContext),v=(0,a.useOutsideEvent)({handler:function(e){h&&h(e);if(!u)return;if(d&&e.target instanceof Node){const t=o.findDOMNode(d);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?r.createElement(s.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.createElement("span",{ref:v,style:{pointerEvents:"auto"}},r.createElement(i.Menu,{...m,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:f,ref:t},n))):null}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var r=n(59496),o=n(87995),s=n(9423),i=n(88216),l=n(50655);class a extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const c=r.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>o,SlotContext:()=>s});var r=n(59496);class o extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=r.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>o,SubmenuHandler:()=>s});var r=n(59496);const o=r.createContext(null);function s(e){const[t,n]=(0,r.useState)(null),s=(0,r.useRef)(null),i=(0,r.useRef)(new Map);return(0,r.useEffect)(()=>()=>{null!==s.current&&clearTimeout(s.current)},[]),r.createElement(o.Provider,{value:{current:t,setCurrent:function(e){null!==s.current&&(clearTimeout(s.current),s.current=null);null===t?n(e):s.current=setTimeout(()=>{s.current=null,n(e)},100)},registerSubmenu:function(e,t){return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some(t=>t(e))}}},e.children)}},37257:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/32c094ea79fdd66912058ade88c27860.svg b/charting_library/bundles/32c094ea79fdd66912058ade88c27860.svg new file mode 100644 index 00000000..3d6f3f3b --- /dev/null +++ b/charting_library/bundles/32c094ea79fdd66912058ade88c27860.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/32cface5c212ebc32a5fd783e6072dd5.svg b/charting_library/bundles/32cface5c212ebc32a5fd783e6072dd5.svg new file mode 100644 index 00000000..780ae8ba --- /dev/null +++ b/charting_library/bundles/32cface5c212ebc32a5fd783e6072dd5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3304.02b3db44475a7ac3c3c1.js b/charting_library/bundles/3304.02b3db44475a7ac3c3c1.js new file mode 100644 index 00000000..65bcf572 --- /dev/null +++ b/charting_library/bundles/3304.02b3db44475a7ac3c3c1.js @@ -0,0 +1,10 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3304],{9837:function(e,t,n){var r,o,i;e.exports=(r=n(59496),o=n(87995),i=n(59255),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new l.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=u.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,c.default)(e,{margin:t})}},{ +key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:s.default.array,blacklist:s.default.array,includeMargin:s.default.bool,useClone:s.default.bool,cloneOptions:s.default.object,shouldMeasure:s.default.bool,onMeasure:s.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(){h&&p&&(h=!1,p.length?d=p.concat(d):m=-1,d.length&&a())}function a(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(p=d,d=[];++m1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,a=void 0;return t.margin&&(a=(0,r.default)(getComputedStyle(e))),t.margin?(o=a.left+n.width+a.right,i=a.top+n.height+a.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))},69397:(e,t,n)=>{"use strict";n.d(t,{FixedSizeList:()=>w,VariableSizeList:()=>_});var r=n(19624),o=n(55682),i=n(75542),a=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function s(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var d=null;function h(e){if(void 0===e&&(e=!1),null===d||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t), +t.scrollLeft>0?d="positive-descending":(t.scrollLeft=1,d=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d}return d}var m=function(e,t){return e};function v(e){var t,n,a=e.getItemOffset,s=e.getEstimatedTotalSize,c=e.getItemSize,d=e.getOffsetForIndexAndAlignment,v=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,b=e.initInstanceProps,S=e.shouldResetStyleCacheOnItemSizeChange,O=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=b(n.props,(0,i.default)((0,i.default)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:(0,i.default)((0,i.default)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=u((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=u((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,o=r.direction,i=r.itemSize,s=r.layout,u=n._getItemStyleCache(S&&i,S&&s,S&&o);if(u.hasOwnProperty(e))t=u[e];else{var l=a(n.props,e,n._instanceProps),f=c(n.props,e,n._instanceProps),p="horizontal"===o||"horizontal"===s,d="rtl"===o,h=p?l:0;u[e]=t={position:"absolute",left:d?void 0:h,right:d?h:void 0,top:p?0:l,height:p?"100%":f,width:p?f:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=u((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(h()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset0)for(var E=T;E<=M;E++)R.push((0,l.createElement)(t,{data:p,key:h(E,p),index:E,isScrolling:S?_:void 0,style:this._getItemStyle(E)}));var P=s(this.props,this._instanceProps);return(0,l.createElement)(y||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:(0,r.default)({position:"relative",height:i,width:O,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,l.createElement)(u||c||"div",{children:R,ref:a,style:{height:w?"100%":P,pointerEvents:_?"none":void 0,width:w?P:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,u=i.scrollUpdateWasRequested;this._callOnScroll(a,s,u)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var s=v(this.props,a,this._instanceProps),u=g(this.props,s,a,this._instanceProps),l=o&&"backward"!==i?1:Math.max(1,n),c=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,s-l),Math.max(0,Math.min(t-1,u+c)),s,u]},t}(l.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2, +useIsScrolling:!1},n}var y=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},g=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var u=i+1;u<=t;u++){var l=r(u);o[u]={offset:a,size:l},a+=l}n.lastMeasuredIndex=t}return o[t]},b=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=g(e,i,t).offset;if(a===o)return i;ao&&(n=i-1)}return r>0?r-1:0},S=function(e,t,n,r){for(var o=e.itemCount,i=1;n=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},_=v({getItemOffset:function(e,t,n){return g(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:O,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,s=e.layout,u=e.width,l="horizontal"===i||"horizontal"===s?u:a,c=g(e,t,o),f=O(e,o),p=Math.max(0,Math.min(f-l,c.offset)),d=Math.max(0,c.offset-l+c.size);switch("smart"===n&&(n=r>=d-l&&r<=p+l?"auto":"center"),n){case"start":return p;case"end":return d;case"center":return Math.round(d+(p-d)/2);case"auto":default:return r>=d&&r<=p?r:r0?r[o].offset:0)>=n?b(e,t,o,0,n):S(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,u=e.width,l="horizontal"===o||"horizontal"===s?u:i,c=g(e,t,r),f=n+l,p=c.offset+c.size,d=t;d=d-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return d;case"center":var h=Math.round(d+(p-d)/2);return hf+Math.floor(c/2)?f:h;case"auto":default:return r>=d&&r<=p?r:r{"use strict";n.d(t,{default:()=>o});var r=n(11430);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.default)(e,t)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/3332346bb9d5603152808536c3251c00.svg b/charting_library/bundles/3332346bb9d5603152808536c3251c00.svg new file mode 100644 index 00000000..e865840e --- /dev/null +++ b/charting_library/bundles/3332346bb9d5603152808536c3251c00.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/335343b286c304fe0ff472256b515659.svg b/charting_library/bundles/335343b286c304fe0ff472256b515659.svg new file mode 100644 index 00000000..a0ca0b7f --- /dev/null +++ b/charting_library/bundles/335343b286c304fe0ff472256b515659.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/33e4a650ec09d861a47f0f2c2d912774.svg b/charting_library/bundles/33e4a650ec09d861a47f0f2c2d912774.svg new file mode 100644 index 00000000..c3a6095f --- /dev/null +++ b/charting_library/bundles/33e4a650ec09d861a47f0f2c2d912774.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/33ead7196e74520279899683905fa945.svg b/charting_library/bundles/33ead7196e74520279899683905fa945.svg new file mode 100644 index 00000000..530a9f5d --- /dev/null +++ b/charting_library/bundles/33ead7196e74520279899683905fa945.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/36a36b038ee2b086d99f0dff97512fec.svg b/charting_library/bundles/36a36b038ee2b086d99f0dff97512fec.svg new file mode 100644 index 00000000..48f1c53b --- /dev/null +++ b/charting_library/bundles/36a36b038ee2b086d99f0dff97512fec.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7176.90e52d563ea0d904aceb.css b/charting_library/bundles/3713.d298aa7c89e61a75e4e2.css similarity index 85% rename from charting_library/bundles/7176.90e52d563ea0d904aceb.css rename to charting_library/bundles/3713.d298aa7c89e61a75e4e2.css index 2a693640..7f18438b 100644 --- a/charting_library/bundles/7176.90e52d563ea0d904aceb.css +++ b/charting_library/bundles/3713.d298aa7c89e61a75e4e2.css @@ -1 +1 @@ -.errors-Cv6NxnRZ{background-color:#2a2e39;border-radius:3px;box-sizing:border-box;color:#fff;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;text-align:center;z-index:2}html.theme-dark .errors-Cv6NxnRZ{background-color:#363c4e}.errors-Cv6NxnRZ:empty{display:none}.errors-Cv6NxnRZ.show-Cv6NxnRZ{opacity:1}.errors-Cv6NxnRZ .error-Cv6NxnRZ{font-size:12px;line-height:1.4;margin-top:10px;text-transform:none;word-break:break-word}.errors-Cv6NxnRZ .error-Cv6NxnRZ:first-child{margin-top:0}.error-icon-llFIA0b4{display:inline-flex}.error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#f23645}html.theme-dark .error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#b22833}.error-icon-llFIA0b4.intent-warning-llFIA0b4,html.theme-dark .error-icon-llFIA0b4.intent-warning-llFIA0b4{color:#ff9800}.error-icon-llFIA0b4 svg{height:16px;width:16px}.static-messages-Yp0dNSLN{flex-flow:column nowrap;font-size:12px;font-style:normal;font-weight:400;line-height:17px}.static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#f23645}html.theme-dark .static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#b22833}.static-messages-Yp0dNSLN.warnings-Yp0dNSLN,html.theme-dark .static-messages-Yp0dNSLN.warnings-Yp0dNSLN{color:#ff9800}.static-messages-Yp0dNSLN .message-Yp0dNSLN{margin:0}.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;left:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;top:0} \ No newline at end of file +.errors-Cv6NxnRZ{background-color:#2a2e39;border-radius:3px;box-sizing:border-box;color:#fff;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;text-align:center;z-index:2}html.theme-dark .errors-Cv6NxnRZ{background-color:#363c4e}.errors-Cv6NxnRZ:empty{display:none}.errors-Cv6NxnRZ.show-Cv6NxnRZ{opacity:1}.errors-Cv6NxnRZ .error-Cv6NxnRZ{font-size:12px;line-height:1.4;margin-top:10px;text-transform:none;word-break:break-word}.errors-Cv6NxnRZ .error-Cv6NxnRZ:first-child{margin-top:0}.error-icon-llFIA0b4{display:inline-flex}.error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#f23645}html.theme-dark .error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#b22833}.error-icon-llFIA0b4.intent-warning-llFIA0b4,html.theme-dark .error-icon-llFIA0b4.intent-warning-llFIA0b4{color:#ff9800}.error-icon-llFIA0b4 svg{height:16px;width:16px}.static-messages-Yp0dNSLN{flex-flow:column nowrap;font-size:12px;font-style:normal;font-weight:400;line-height:17px}.static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#f23645}html.theme-dark .static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#b22833}.static-messages-Yp0dNSLN.warnings-Yp0dNSLN,html.theme-dark .static-messages-Yp0dNSLN.warnings-Yp0dNSLN{color:#ff9800}.static-messages-Yp0dNSLN .message-Yp0dNSLN{margin:0} \ No newline at end of file diff --git a/charting_library/bundles/7176.90e52d563ea0d904aceb.rtl.css b/charting_library/bundles/3713.d298aa7c89e61a75e4e2.rtl.css similarity index 85% rename from charting_library/bundles/7176.90e52d563ea0d904aceb.rtl.css rename to charting_library/bundles/3713.d298aa7c89e61a75e4e2.rtl.css index 52fb0c42..7f18438b 100644 --- a/charting_library/bundles/7176.90e52d563ea0d904aceb.rtl.css +++ b/charting_library/bundles/3713.d298aa7c89e61a75e4e2.rtl.css @@ -1 +1 @@ -.errors-Cv6NxnRZ{background-color:#2a2e39;border-radius:3px;box-sizing:border-box;color:#fff;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;text-align:center;z-index:2}html.theme-dark .errors-Cv6NxnRZ{background-color:#363c4e}.errors-Cv6NxnRZ:empty{display:none}.errors-Cv6NxnRZ.show-Cv6NxnRZ{opacity:1}.errors-Cv6NxnRZ .error-Cv6NxnRZ{font-size:12px;line-height:1.4;margin-top:10px;text-transform:none;word-break:break-word}.errors-Cv6NxnRZ .error-Cv6NxnRZ:first-child{margin-top:0}.error-icon-llFIA0b4{display:inline-flex}.error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#f23645}html.theme-dark .error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#b22833}.error-icon-llFIA0b4.intent-warning-llFIA0b4,html.theme-dark .error-icon-llFIA0b4.intent-warning-llFIA0b4{color:#ff9800}.error-icon-llFIA0b4 svg{height:16px;width:16px}.static-messages-Yp0dNSLN{flex-flow:column nowrap;font-size:12px;font-style:normal;font-weight:400;line-height:17px}.static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#f23645}html.theme-dark .static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#b22833}.static-messages-Yp0dNSLN.warnings-Yp0dNSLN,html.theme-dark .static-messages-Yp0dNSLN.warnings-Yp0dNSLN{color:#ff9800}.static-messages-Yp0dNSLN .message-Yp0dNSLN{margin:0}.icon-P882WPW5{display:flex}.wrap-TyQYOCnx{position:relative}.input-TyQYOCnx{bottom:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;right:0;top:0} \ No newline at end of file +.errors-Cv6NxnRZ{background-color:#2a2e39;border-radius:3px;box-sizing:border-box;color:#fff;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;text-align:center;z-index:2}html.theme-dark .errors-Cv6NxnRZ{background-color:#363c4e}.errors-Cv6NxnRZ:empty{display:none}.errors-Cv6NxnRZ.show-Cv6NxnRZ{opacity:1}.errors-Cv6NxnRZ .error-Cv6NxnRZ{font-size:12px;line-height:1.4;margin-top:10px;text-transform:none;word-break:break-word}.errors-Cv6NxnRZ .error-Cv6NxnRZ:first-child{margin-top:0}.error-icon-llFIA0b4{display:inline-flex}.error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#f23645}html.theme-dark .error-icon-llFIA0b4.intent-danger-llFIA0b4{color:#b22833}.error-icon-llFIA0b4.intent-warning-llFIA0b4,html.theme-dark .error-icon-llFIA0b4.intent-warning-llFIA0b4{color:#ff9800}.error-icon-llFIA0b4 svg{height:16px;width:16px}.static-messages-Yp0dNSLN{flex-flow:column nowrap;font-size:12px;font-style:normal;font-weight:400;line-height:17px}.static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#f23645}html.theme-dark .static-messages-Yp0dNSLN.errors-Yp0dNSLN{color:#b22833}.static-messages-Yp0dNSLN.warnings-Yp0dNSLN,html.theme-dark .static-messages-Yp0dNSLN.warnings-Yp0dNSLN{color:#ff9800}.static-messages-Yp0dNSLN .message-Yp0dNSLN{margin:0} \ No newline at end of file diff --git a/charting_library/bundles/373623728d1fd56d6b7b9d228a6a2dd4.svg b/charting_library/bundles/373623728d1fd56d6b7b9d228a6a2dd4.svg new file mode 100644 index 00000000..1ab1d595 --- /dev/null +++ b/charting_library/bundles/373623728d1fd56d6b7b9d228a6a2dd4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3738.66fe7fbb64065ac70351.js b/charting_library/bundles/3738.66fe7fbb64065ac70351.js new file mode 100644 index 00000000..a57ddd69 --- /dev/null +++ b/charting_library/bundles/3738.66fe7fbb64065ac70351.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3738],{80353:(e,t,a)=>{e.exports=a.p+"ec5d7209357ae85877aeb054c2bdb313.svg"},37061:(e,t,a)=>{e.exports=a.p+"acbf476d27fe229ca0b0c1fc6df67e35.svg"},37780:(e,t,a)=>{e.exports=a.p+"6fd906b30d990590754ae2e98b02d371.svg"},86284:(e,t,a)=>{e.exports=a.p+"a824441dbd28500e1d345c0b62aa4220.svg"},82044:(e,t,a)=>{e.exports=a.p+"7db71d6fd67fb9a029dbe9640728e788.svg"},28527:(e,t,a)=>{e.exports=a.p+"0533bc7f87e4fd35c549693ccb280cbc.svg"},21415:(e,t,a)=>{e.exports=a.p+"b4dd685fee80f6fff4b6e34f4e7725ac.svg"},51770:(e,t,a)=>{e.exports=a.p+"af2c0f390cd0b5ef8d2bd4ba4e521a34.svg"},59524:(e,t,a)=>{e.exports=a.p+"107ad28074a1e10592eb2dc1a622a199.svg"},3796:(e,t,a)=>{e.exports=a.p+"373623728d1fd56d6b7b9d228a6a2dd4.svg"},69139:(e,t,a)=>{e.exports=a.p+"59e2b70bcb3a208d8b8dbe2b35a9dfb0.svg"},12600:(e,t,a)=>{e.exports=a.p+"1c6b280e81b3d23ee72a86dedc751351.svg"},46801:(e,t,a)=>{e.exports=a.p+"d7b56af17bc6de43c045962d843a94f3.svg"},39894:e=>{e.exports={orderInput:"orderInput-UR1489uv"}},52264:e=>{e.exports={zip:"zip-bAIksqmB"}},16271:e=>{e.exports={orderInputs:"orderInputs-xDWk5IzT",container:"container-xDWk5IzT",inputContainer:"inputContainer-xDWk5IzT",errors:"errors-xDWk5IzT",titleText:"titleText-xDWk5IzT"}},98898:e=>{e.exports={countrySelect:"countrySelect-zsy9fYkd",flagSlot:"flagSlot-zsy9fYkd",flag:"flag-zsy9fYkd",textSlot:"textSlot-zsy9fYkd"}},28335:e=>{e.exports={label:"label-UvIfeuIB"}},76974:(e,t,a)=>{"use strict";a.d(t,{useIsMounted:()=>n});var r=a(59496);const n=()=>{const e=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},68769:(e,t,a)=>{"use strict";a.d(t,{paymentTypeToIconMap:()=>f,braintreePaymentTypeToIconMap:()=>S,removeMultipleWhitespace:()=>y,getProductsStr:()=>b,canShowPaypalPaymentMethod:()=>E,isCountryTaxable:()=>I,isCountrySupportVAT:()=>T,isCountrySupportTIN:()=>O,convertAddressModelToState:()=>N,convertAddressStateToModel:()=>A,convertoUserDetailsToCoinbaseUserData:()=>k,convertoUserDetailsToEcommpayUserData:()=>V,convertAddressStateToUserDetails:()=>_,excludeFieldsForTax:()=>M,marketBlockedCountries:()=>B,isRussian:()=>w,ecommpayAvailableCountries:()=>x,showEcommpay:()=>D});var r=a(76266),n=a(46801),s=a(59524),o=a(80353),i=a(37780),l=a(86284),u=a(21415),c=a(3796),d=a(69139),m=a(82044),h=a(51770),p=a(12600),g=a(37061),v=a(28527),C=a(8003);const f={visa:n,"master-card":s,"american-express":o,"diners-club":i,discover:l,jcb:u,unionpay:p,maestro:h,elo:m,mir:c,paypal:d,"google-pay":v,"apple-pay":g,default:C},S={Discover:f.discover,Elo:f.elo,Visa:f.visa,UnionPay:f.unionpay,JCB:f.jcb,"American Express":f["american-express"],MasterCard:f["master-card"]};function y(e){return e.trim().replace(/\s{2,}/g," ")}function b(e){let t=e.map(e=>{var t;const a=null===(t=window.pro)||void 0===t?void 0:t.getProduct(e);if(a)return a.name}).filter(e=>void 0!==e).join(", ");return t.length>240&&(t=t.slice(0,236)+"..."),t}function E(e){return!((0,r.isFeatureEnabled)("hide_paypal_payment_method")&&e&&["IN"].includes(e))}function I(e){ +return["AU","IN"].includes(e)}function T(e){return["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","EL","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","XI"].includes(e)}function O(e){return"AU"===e}function N(e){var t,a,r,n,s;const o={isValid:!0,errors:[],value:""};return{country_code_alpha2:{...o,value:null!==(t=e.country_code_alpha2)&&void 0!==t?t:""},region:{...o,value:null!==(a=e.region)&&void 0!==a?a:""},postal_code:{...o,value:null!==(r=e.postal_code)&&void 0!==r?r:""},locality:{...o,value:null!==(n=e.locality)&&void 0!==n?n:""},street_address:{...o,value:null!==(s=e.street_address)&&void 0!==s?s:""},vat_number:{...o}}}function A(e){return{street_address:y(e.street_address.value),locality:y(e.locality.value),country_code_alpha2:y(e.country_code_alpha2.value),postal_code:y(e.postal_code.value),region:y(e.region.value)}}function k(e){var t,a,r,n,s;return{name:String(e.name),STREET:String(null===(t=e.billing_address)||void 0===t?void 0:t.street_address),CITY:String(null===(a=e.billing_address)||void 0===a?void 0:a.locality),COUNTRY:String(null===(r=e.billing_address)||void 0===r?void 0:r.country_code_alpha2),ZIP:String(null===(n=e.billing_address)||void 0===n?void 0:n.postal_code),STATE:String(null===(s=e.billing_address)||void 0===s?void 0:s.region),vat_number:e.vat_number}}function V(e){return{name:String(e.name),billing_address:e.billing_address,vat_number:e.vat_number}}function _(e){const t={billing_address:A(e)},a=y(e.vat_number.value);return""!==a&&(t.vat_number=a),t}const F={value:"",isValid:!0,errors:[]};function M(e){return{...e,street_address:F,vat_number:F}}const B=["RU","BY"];function w(e){return B.includes(e||"")}const x=["RU"];function D(e){return x.includes(e||"")}},10878:(e,t,a)=>{"use strict";var r;a.d(t,{Currencies:()=>r}),function(e){e.Usd="USD",e.Btc="BTC",e.Tvc="TVC",e.Rub="RUB"}(r||(r={}))},29302:(e,t,a)=>{"use strict";a.d(t,{OrderFieldContainer:()=>i});var r=a(59496),n=a(97754),s=a(96722),o=a(16271);function i(e){return r.createElement("div",{className:n(o.inputContainer,"order-field-container"),"data-html2canvas-ignore":!0},r.createElement(s.Label,{id:e.labelId,htmlFor:e.for},e.label),e.children)}},35587:(e,t,a)=>{"use strict";a.d(t,{OrderInput:()=>u});var r=a(59496),n=a(97754),s=a.n(n),o=a(86623),i=a(86629),l=a(39894);function u(e){const{className:t,inputClassName:a}=e;return r.createElement(o.FormInput,{...e,className:s()(t,"order-input"),inputClassName:s()(a,l.orderInput,"js-validate-ignore"),size:"large",messagesPosition:i.MessagesPosition.Attached,stretch:!0})}},18244:(e,t,a)=>{"use strict";a.d(t,{StateSelect:()=>y,stateItems:()=>S});var r=a(59496),n=a(28353) +;const s=JSON.parse('{"AA":"Armed Forces America","AE":"Armed Forces","AP":"Armed Forces Pacific","AL":"Alabama","AK":"Alaska","AZ":"Arizona","AR":"Arkansas","CA":"California","CO":"Colorado","CT":"Connecticut","DC":"District of Columbia","DE":"Delaware","FL":"Florida","GA":"Georgia","HI":"Hawaii","ID":"Idaho","IL":"Illinois","IN":"Indiana","IA":"Iowa","KS":"Kansas","KY":"Kentucky","LA":"Louisiana","ME":"Maine","MD":"Maryland","MA":"Massachusetts","MI":"Michigan","MN":"Minnesota","MS":"Mississippi","MO":"Missouri","MT":"Montana","NE":"Nebraska","NV":"Nevada","NH":"New Hampshire","NJ":"New Jersey","NM":"New Mexico","NY":"New York","NC":"North Carolina","ND":"North Dakota","OH":"Ohio","OK":"Oklahoma","OR":"Oregon","PA":"Pennsylvania","RI":"Rhode Island","SC":"South Carolina","SD":"South Dakota","TN":"Tennessee","TX":"Texas","UT":"Utah","VT":"Vermont","VA":"Virginia","WA":"Washington","WV":"West Virginia","WI":"Wisconsin","WY":"Wyoming"}'),o=JSON.parse('{"AB":"Alberta","BC":"British Columbia","MB":"Manitoba","NB":"New Brunswick","NL":"Newfoundland and Labrador","NT":"Northwest Territories","NS":"Nova Scotia","NU":"Nunavut","ON":"Ontario","PE":"Prince Edward Island","QC":"Quebec","SK":"Saskatchewan","YT":"Yukon"}'),i=JSON.parse('{"Adana":"Adana","Adiyaman":"Adıyaman","Afyonkarahisar":"Afyonkarahisar","Agri":"Ağrı","Amasya":"Amasya","Ankara":"Ankara","Antalya":"Antalya","Artvin":"Artvin","Aydin":"Aydın","Balikesir":"Balıkesir","Bilecik":"Bilecik","Bingol":"Bingöl","Bitlis":"Bitlis","Bolu":"Bolu","Burdur":"Burdur","Bursa":"Bursa","Canakkale":"Çanakkale","Cankiri":"Çankırı","Corum":"Çorum","Denizli":"Denizli","Diyarbakir":"Diyarbakır","Edirne":"Edirne","Elazig":"Elâzığ","Erzincan":"Erzincan","Erzurum":"Erzurum","Eskisehir":"Eskişehir","Gaziantep":"Gaziantep","Giresun":"Giresun","Gumushane":"Gümüşhane","Hakkari":"Hakkâri","Hatay":"Hatay","Isparta":"Isparta","Mersin":"Mersin","Istanbul":"Istanbul","Izmir":"İzmir","Kars":"Kars","Kastamonu":"Kastamonu","Kayseri":"Kayseri","Kirklareli":"Kırklareli","Kirsehir":"Kırşehir","Kocaeli":"Kocaeli","Konya":"Konya","Kutahya":"Kütahya","Malatya":"Malatya","Manisa":"Manisa","Kahramanmaras":"Kahramanmaraş","Mardin":"Mardin","Mugla":"Muğla","Mus":"Muş","Nevsehir":"Nevşehir","Nigde":"Niğde","Ordu":"Ordu","Rize":"Rize","Sakarya":"Sakarya","Samsun":"Samsun","Siirt":"Siirt","Sinop":"Sinop","Sivas":"Sivas","Tekirdag":"Tekirdağ","Tokat":"Tokat","Trabzon":"Trabzon","Tunceli":"Tunceli","Sanliurfa":"Şanlıurfa","Usak":"Uşak","Van":"Van","Yozgat":"Yozgat","Zonguldak":"Zonguldak","Aksaray":"Aksaray","Bayburt":"Bayburt","Karaman":"Karaman","Kirikkale":"Kırıkkale","Batman":"Batman","Sirnak":"Şırnak","Bartin":"Bartın","Ardahan":"Ardahan","Igdir":"Iğdır","Yalova":"Yalova","Karabuk":"Karabük","Kilis":"Kilis","Osmaniye":"Osmaniye","Duzce":"Düzce"}'),l=JSON.parse('{"NSW":"New South Wales (Norfolk Island included)","ACT":"Australian Capital Territory","VIC":"Victoria","QLD":"Queensland","SA":"South Australia","WA":"Western Australia","TAS":"Tasmania","NT":"Northern Territory","CX":"Christmas Island","CC":"Cocos (Keeling) Islands"}'),u=JSON.parse('{"DL":"Delhi","HR":"Haryana","PB":"Punjab","CH":"Chandigarh","HP":"Himachal Pradesh","JK":"Jammu & Kashmir","UP":"Uttaar Pradesh","RJ":"Rajasthan","GJ":"Gujarath","MH":"Maharastra","MP":"Madhya Pradesh","CT":"Chhattisgarh","TG":"Telangana","AP":"Andhra Pradesh","KA":"Karnataka","TN":"Tamil Nadu","KL":"Kerala","WB":"West Bengal","OR":"Orissa","AS":"Assam","AR":"Arunachal Pradesh","ML":"Meghalaya","MN":"Manipur","MZ":"Mizoram","NL":"Nagaland","TR":"Tripura","BR":"Bihar","APS":"Army Postal Service"}') +;var c=a(29302),d=a(28805),m=a(89655),h=a(30798),p=a(40161),g=a(86629),v=a(16271);const C=[d.required,d.latin];function f(e){return Object.keys(e).sort((t,a)=>{const r=e[t],n=e[a];return rn?1:0}).map(t=>({content:e[t],value:t,id:t}))}const S={US:f(s),CA:f(o),TR:f(i),AU:f(l),IN:f(u)};function y(e){var t;const{value:a,onChange:s,countryCode:o,setValidator:i,isDefaultValid:l=!0}=e,{isValid:u,errors:f,validate:y,setValidateResults:E}=(0,m.useFieldValidation)(C),I=null!==(t=S[o])&&void 0!==t?t:[];return(0,r.useEffect)(()=>{const e=a?y(a)&&b(o,a):l;s(a,e)},[o]),(0,r.useEffect)(()=>{i&&i(()=>{const e=y(a),t=b(o,a);t||E((0,d.required)()),s(a,e&&t)})},[a,o]),r.createElement(c.OrderFieldContainer,{label:n.t("State/Region"),labelId:h.OrderInputsConsts.State},r.createElement(p.FormSelect,{"aria-labelledby":h.OrderInputsConsts.State,items:I,value:""===a?void 0:a,placeholder:r.createElement("span",{className:v.selectPlaceholder},n.t("Select state/region")),onChange:function(e){const t=y(null!=e?e:"");s(null!=e?e:"",t)},size:"large",stretch:!0,hasErrors:!u,errors:f,messagesPosition:g.MessagesPosition.Attached,className:v.selectButton}))}function b(e,t){return!!S[e]&&S[e].some(e=>e.value===t)}},89655:(e,t,a)=>{"use strict";a.d(t,{useFieldValidation:()=>n});var r=a(59496);function n(e){const[t,a]=(0,r.useState)(!0),[n,s]=(0,r.useState)([]);return{isValid:t,errors:n,validate:function(t){for(const r of e){const{isValid:e,errors:n}=r(t);if(!e)return a(e),s(n),e}return a(!0),s([]),!0},setValidateResults:function(e){a(e.isValid),s(e.errors)}}}},28805:(e,t,a)=>{"use strict";a.d(t,{required:()=>s,withoutNumbers:()=>o,latin:()=>i,email:()=>u,ascii:()=>d,cardholderName:()=>h,yourName:()=>p});var r=a(28353),n=a(18609);function s(e){const t=void 0!==e&&e.trim().length>0;return{isValid:t,errors:t?[]:[r.t("This field is required")]}}function o(e){const t=void 0!==e&&!/\d/.test(e);return{isValid:t,errors:t?[]:[r.t("This field only supports letters")]}}function i(e){const t=void 0!==e&&(0,n.isLatin)(e);return{isValid:t,errors:t?[]:[r.t("This field only supports English characters")]}}const l=/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i;function u(e){const t=e&&l.test(e);return{isValid:Boolean(t),errors:t?[]:[r.t("Please enter a valid email address")]}}const c=/^[\u0000-\u007f]*$/;function d(e){const t=Boolean(e)&&c.test(e||"");return{isValid:t,errors:t?[]:[r.t("Must contain only ASCII characters")]}}function m(e){return t=>{if(!t)return s(t);const a=t.trim().split(/\s/g).filter(e=>e.length),n=[];return a.length<2&&n.push(e),a[0]&&a[0].length>30&&n.push(r.t("First name mustn't be longer than 30 characters")),a[1]&&a[1].length>30&&n.push(r.t("Last name mustn't be longer than 30 characters")),{isValid:0===n.length,errors:n}}}const h=m(r.t("Your cardholder name seems incomplete")),p=m(r.t("Your name seems incomplete"))},53876:(e,t,a)=>{"use strict";a.d(t,{ZipInput:()=>d,postalCode:()=>h,getPostalCodeMaxLengthValidator:()=>p}) +;var r=a(59496),n=a(28353),s=a(29302),o=a(28805),i=a(89655),l=a(35587),u=a(52264);const c=[o.required,h,e=>p(e)];function d(e){const{value:t,onChange:a,setValidator:o,name:d}=e,{isValid:m,errors:h,validate:p}=(0,i.useFieldValidation)(c),g=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{const e=p(t);a(t,e)},[]),(0,r.useEffect)(()=>{o&&o(()=>{g.current=!0;const e=p(t);a(t,e)})},[t]),r.createElement(s.OrderFieldContainer,{label:n.t("Zip/Postal code"),for:d},r.createElement(l.OrderInput,{id:d,name:d,value:t,type:"text",onChange:function(e){g.current=!0;const t=p(e.currentTarget.value);a(e.currentTarget.value,t)},hasErrors:g.current&&!m,errors:h,inputClassName:u.zip}))}const m=/^(\d|\w)+(\d|\w|\s|-)*$/;function h(e){const t=Boolean(e)&&m.test(e||"");return{isValid:t,errors:t?[]:[n.t("Postal codes must start with a letter or a number, and can only contain letters, numbers, spaces, and hyphens.")]}}function p(e=""){const t=function(e){const t=e?e.split(""):[];return t.filter(e=>!g.test(e)).join("")}(e).trim().length<=9;return{isValid:t,errors:t?[]:[n.t("Postal codes must contain no more than nine letters or numbers")]}}const g=/\s|-/},66302:(e,t,a)=>{"use strict";a.d(t,{COUNTRY_WITH_STATE_SELECT:()=>N,OrderInputs:()=>k});var r=a(59496),n=a(97754),s=a.n(n),o=a(28353),i=a(29302),l=a(28805),u=a(89655),c=a(35587);const d=[l.required,l.latin];const m=[l.required,l.latin];var h=a(30798);const p=[l.required,l.latin];function g(e){const{value:t,onChange:a,setValidator:n,isDefaultValid:s=!0}=e,{isValid:l,errors:d,validate:m}=(0,u.useFieldValidation)(p);return(0,r.useEffect)(()=>{let e=s;t&&(e=m(t)),a(t,e)},[]),(0,r.useEffect)(()=>{n&&n(()=>{const e=m(t);a(t,e)})},[t]),r.createElement(i.OrderFieldContainer,{label:o.t("State/Region"),for:h.OrderInputsConsts.State},r.createElement(c.OrderInput,{name:h.OrderInputsConsts.State,value:t,type:"text",onChange:function(e){const t=m(e.currentTarget.value);a(e.currentTarget.value,t)},hasErrors:!l,errors:d}))}const v=[l.required,l.latin];var C=a(53876),f=a(11298),S=a(76974),y=a(68769),b=a(76266),E=a(16271);const I=[l.required];var T=a(18244);const O=[l.required,l.latin,l.yourName,l.ascii];const N=["US","CA","TR","AU","IN"],A={[h.OrderInputsConsts.BillToEmail]:function(e){const{value:t,onChange:a,setValidator:n,name:s}=e,{isValid:m,errors:h,validate:p,setValidateResults:g}=(0,u.useFieldValidation)(d);return(0,r.useEffect)(()=>{const e=!t||p(t);a(t,e)},[]),(0,r.useEffect)(()=>{n&&n(()=>{const e=p(t),r=(0,l.email)(t);r.isValid||g(r),a(t,e&&r.isValid)})},[t]),r.createElement(i.OrderFieldContainer,{label:o.t("Email"),for:s},r.createElement(c.OrderInput,{name:s,value:t,type:"text",onChange:function(e){const t=p(e.currentTarget.value);a(e.currentTarget.value,t)},hasErrors:!m,errors:h}))},[h.OrderInputsConsts.City]:function(e){const{value:t,onChange:a,setValidator:n,name:s}=e,{isValid:l,errors:d,validate:h}=(0,u.useFieldValidation)(m),p=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{const e=h(t);a(t,e)},[]),(0,r.useEffect)(()=>{n&&n(()=>{p.current=!0;const e=h(t);a(t,e)})},[t]), +r.createElement(i.OrderFieldContainer,{label:o.t("City"),for:s},r.createElement(c.OrderInput,{name:s,value:t,type:"text",onChange:function(e){p.current=!0;const t=h(e.currentTarget.value);a(e.currentTarget.value,t)},hasErrors:p.current&&!l,errors:d}))},[h.OrderInputsConsts.Street]:function(e){const{value:t,onChange:a,setValidator:n,name:s}=e,{isValid:l,errors:d,validate:m}=(0,u.useFieldValidation)(v),h=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{const e=m(t);a(t,e)},[]),(0,r.useEffect)(()=>{n&&n(()=>{h.current=!0;const e=m(t);a(t,e)})},[t]),r.createElement(i.OrderFieldContainer,{label:o.t("Street"),for:s},r.createElement(c.OrderInput,{name:s,value:t,type:"text",onChange:function(e){h.current=!0;const t=m(e.currentTarget.value);a(e.currentTarget.value,t)},hasErrors:h.current&&!l,errors:d}))},[h.OrderInputsConsts.Zip]:C.ZipInput,[h.OrderInputsConsts.Country]:function(e){const[t,a]=(0,r.useState)([]),[n,s]=(0,r.useState)(),{isValid:l,errors:c,validate:d}=(0,u.useFieldValidation)(I),{setValidator:m}=e,h=(0,S.useIsMounted)();(0,r.useEffect)(()=>{(0,f.getCountries)().then(t=>{const[r,n]=t,o=r.find(t=>t.code===e.value),i=r.find(e=>e.code===n),l=o||i||r[0];if(!h.current)return;const u=d(l.name),c=(0,b.isFeatureEnabled)("RU_SF_disable");a(c?r.filter(e=>!y.marketBlockedCountries.includes(e.code)):r);const m=c&&!y.marketBlockedCountries.includes(l.code)?l:r[0];s(m),e.onChange(m.code,u),e.onCountryChange&&e.onCountryChange(m.code)})},[]),(0,r.useEffect)(()=>{m&&m(()=>{if(!h.current)return;s(n);const t=d((null==n?void 0:n.name)||"");e.onChange((null==n?void 0:n.code)||"",t)})},[n]);const p=(0,r.useCallback)(t=>{s(t);const a=d(t.name);e.onChange(t.code,a),e.onCountryChange&&e.onCountryChange(t.code)},[]);return r.createElement(i.OrderFieldContainer,{label:o.t("Country"),for:e.name},r.createElement(r.Fragment,null,r.createElement(f.CountrySelect,{countries:t,onSelected:p,flagUrl:(null==n?void 0:n.iconUrl)||"",text:(null==n?void 0:n.name)||"",stretch:!0}),!l&&r.createElement("div",{className:E.errors},c)))},[h.OrderInputsConsts.Company]:function(e){const{value:t,onChange:a,name:n}=e;return r.createElement(i.OrderFieldContainer,{label:o.t("Company (optional)"),for:n},r.createElement(c.OrderInput,{name:n,value:t,type:"text",onChange:function(e){a(e.currentTarget.value,!0)}}))},[h.OrderInputsConsts.CardholderName]:function(e){const{value:t,onChange:a,setValidator:n,name:s,label:l,isDefaultValid:d=!0}=e,{isValid:m,errors:h,validate:p,setValidateResults:g}=(0,u.useFieldValidation)(O);(0,r.useEffect)(()=>{let e=d;t&&(e=p(t)),a(t,e)},[]),(0,r.useEffect)(()=>{n&&n(()=>{const e=p(t);a(t,e)}),g({isValid:!0,errors:[]})},[t]);const v=(0,r.useCallback)(e=>{const r=p(t);a(t,r)},[t]);return r.createElement(i.OrderFieldContainer,{label:l||o.t("Your name"),for:s},r.createElement(c.OrderInput,{name:s,value:t,type:"text",onChange:function(e){const t=p(e.currentTarget.value);a(e.currentTarget.value,t)},onBlur:v,hasErrors:!m,errors:h}))}};class k extends r.PureComponent{constructor(e){super(e),this._onSetValidator=e=>t=>{this.props.onSetValidators(e,t) +},this._onFieldChange=e=>(t,a)=>{void 0!==this.state[e]&&this.setState({[e]:{value:t,isValid:a}})};const t={},a=function(e,t){return t?{[h.OrderInputsConsts.State]:e.billing_state,[h.OrderInputsConsts.Country]:e.billing_country,[h.OrderInputsConsts.BillToEmail]:e.payment_email,[h.OrderInputsConsts.CardholderName]:e.fullName}:{[h.OrderInputsConsts.Zip]:e.billing_zip,[h.OrderInputsConsts.Street]:e.billing_street,[h.OrderInputsConsts.City]:e.billing_city,[h.OrderInputsConsts.State]:e.billing_state,[h.OrderInputsConsts.Country]:e.billing_country,[h.OrderInputsConsts.CountryCode]:e.billing_countrycode,[h.OrderInputsConsts.BillToEmail]:e.payment_email,[h.OrderInputsConsts.BillToStreet]:e.billing_street,[h.OrderInputsConsts.BillToZip]:e.billing_zip,[h.OrderInputsConsts.Company]:e.company,[h.OrderInputsConsts.Company]:e.company,[h.OrderInputsConsts.CardholderName]:e.fullName}}(e.billingInfo);Object.values(h.OrderInputsConsts).forEach(e=>{const r=a[e];t[e]={value:r,isValid:!0}}),this.state=t}componentDidMount(){this.props.onChange(this._getOnChangeData()),this.setState({showStateSelect:this._showStateField()})}componentDidUpdate(e,t){this.props.onChange(this._getOnChangeData());const a=this._showStateField();a&&!0!==t.showStateSelect?this.setState({showStateSelect:!0}):a||!1===t.showStateSelect||(!0===t.showStateSelect&&this.setState({[h.OrderInputsConsts.State]:{value:"",isValid:!0}}),this.setState({showStateSelect:!1}))}render(){const{addressTitle:e,showEmail:t,showAddress:a,className:n}=this.props,o=r.createElement(r.Fragment,null,this._getInput(h.OrderInputsConsts.Country),this._getStateField());return r.createElement("div",{className:s()(E.orderInputs,n)},r.createElement("div",{className:E.container},!a&&o,this._getInput(h.OrderInputsConsts.CardholderName),t&&this._getInput(h.OrderInputsConsts.BillToEmail)),a&&r.createElement(r.Fragment,null,e?r.createElement("h3",{className:E.titleText},e):"",r.createElement("div",{className:E.container},r.createElement(r.Fragment,null,o,this._getInput(h.OrderInputsConsts.City),this._getInput(h.OrderInputsConsts.Street),this._getInput(h.OrderInputsConsts.Company),this._getInput(h.OrderInputsConsts.Zip)))))}_getStateField(){var e,t;if(this.props.excludedFields.has(h.OrderInputsConsts.State))return null;const a=null===(e=this.state[h.OrderInputsConsts.Country])||void 0===e?void 0:e.value;let n;const s={value:(null===(t=this.state[h.OrderInputsConsts.State])||void 0===t?void 0:t.value)||"",onChange:this._onFieldChange(h.OrderInputsConsts.State),setValidator:this._onSetValidator(h.OrderInputsConsts.State),name:h.OrderInputsConsts.State};return n=this.state.showStateSelect?r.createElement(T.StateSelect,{countryCode:a,...s}):r.createElement(g,{...s}),n}_showStateField(){var e;const t=null===(e=this.state[h.OrderInputsConsts.Country])||void 0===e?void 0:e.value;return void 0!==this.state[h.OrderInputsConsts.Country]&&N.includes(t)}_getInput(e){var t;if(this.props.excludedFields.has(e))return null;const a=A[e];return r.createElement(a,{ +value:(null===(t=this.state[e])||void 0===t?void 0:t.value)||"",onChange:this._onFieldChange(e),setValidator:this._onSetValidator(e),onCountryChange:this.props.onCountryChange,name:e})}_getOnChangeData(){const{showStateSelect:e,...t}=this.state,a={isValid:Object.values(t).every(e=>e&&(null==e?void 0:e.isValid))};return Object.values(h.OrderInputsConsts).forEach(e=>{var t;const r=null===(t=this.state[e])||void 0===t?void 0:t.value;r&&(a[e]=r)}),a}}},30798:(e,t,a)=>{"use strict";var r;a.d(t,{OrderInputsConsts:()=>r}),function(e){e.Zip="ZIP",e.Street="STREET",e.State="STATE",e.City="CITY",e.Country="COUNTRY",e.CountryCode="COUNTRYCODE",e.BillToEmail="BILLTOEMAIL",e.BillToStreet="BILLTOSTREET",e.BillToZip="BILLTOZIP",e.Company="company",e.CardholderName="cardholderName",e.VatNumber="vatnumber"}(r||(r={}))},12107:(e,t,a)=>{"use strict";a.d(t,{trackTrialAction:()=>n});var r=a(91955);function n(e,t,a,n){(0,r.getTracker)().then(r=>{r&&r.trackTrial(e,t,a,n)})}},18609:(e,t,a)=>{"use strict";function r(e){return!/[\u0370-\u1FFF\u2E80-\uFDFF\uFE20-\uFFFF]/gu.test(e)}a.d(t,{isLatin:()=>r})},11298:(e,t,a)=>{"use strict";a.d(t,{CountrySelect:()=>S,getCountries:()=>y});var r=a(59496),n=a(97754),s=a(28353),o=a(22064),i=a(67029),l=a(78274),u=a(93211),c=a(9481),d=a(68721),m=a(26597),h=a(86629),p=a(93573);const g=r.lazy(async()=>({default:(await Promise.all([a.e(9129),a.e(2888),a.e(4956),a.e(7245),a.e(1e3),a.e(6973)]).then(a.bind(a,56973))).CountryList}));function v(e){const{isOpen:t,countries:a,onSelected:n,selectedCountry:s,onClose:o,className:i,attachment:l,targetAttachment:u}=e;return r.createElement(r.Fragment,null,t&&r.createElement(r.Suspense,{fallback:null},r.createElement(g,{className:i,onClose:o,selectedCountry:s,onSelected:n,countries:a,attachment:l,targetAttachment:u})))}var C=a(98898);let f;function S(e){var t;const{flagUrl:a,disabled:s=!1,countries:p,selectedCountry:g,onSelected:f,onToggle:S,className:y,dropDownClassName:b,stretch:E,dropdownAttachment:I,text:T,buttonSize:O="large","aria-labelledby":N,id:A,hasErrors:k,errors:V}=e,_=(0,h.useControlValidationLayout)({hasErrors:k,errors:V}),{isOpened:F,isFocused:M,buttonTabIndex:B,highlight:w,intent:x,open:D,close:K,toggle:R,buttonFocusBindings:z,onButtonClick:P,buttonRef:U,buttonAria:L}=(0,d.useControlDisclosure)({id:A,disabled:s}),H=(0,o.joinDomIds)(N,A),W=H.length>0?H:void 0,Y=(0,m.useKeyboardToggle)(R),Z=(0,m.useKeyboardClose)(F,K),j=(0,m.useKeyboardOpen)(F,D),q=(0,m.useKeyboardEventHandler)(Y,Z,j);return(0,r.useEffect)(()=>{S&&S(F)},[F]),r.createElement(r.Fragment,null,r.createElement(c.KeyboardDocumentListener,{keyCode:27,handler:K}),r.createElement(v,{className:b,onClose:K,selectedCountry:g,onSelected:f,countries:p,isOpen:F,attachment:null==I?void 0:I.attachment,targetAttachment:null==I?void 0:I.targetAttachment}),r.createElement(i.ControlSkeleton,{...z,...L,className:n(C.countrySelect,y),intent:null!==(t=_.intent)&&void 0!==t?t:x,highlight:w,isFocused:M,size:O,stretch:E,disabled:s,role:"button",tabIndex:B,"aria-haspopup":"listbox","aria-labelledby":W,ref:U,onClick:P, +onKeyDown:q,startSlot:a&&r.createElement(l.StartSlot,{className:C.flagSlot},r.createElement("img",{className:C.flag,src:a,role:"presentation"})),middleSlot:r.createElement(l.MiddleSlot,{className:C.textSlot},T),endSlot:r.createElement(l.EndSlot,null,r.createElement(u.Caret,{isDropped:F,disabled:s,className:C.caretSelectBtn}))}),_.renderedErrors)}async function y(){return f||(f=(0,p.getCountries)().then(e=>{const t=[];if(Object.keys(e.countries).forEach(a=>{t.push({code:a,name:s.t(e.countries[a]),iconUrl:`/static/images/svg/common/flags/flag-square-${a.toLowerCase()}.svg`})}),t.length%3!=0){const e=t.length%3,a=e?3-e:0;for(let e=0;e{"use strict";a.d(t,{FormSelect:()=>l});var r=a(59496),n=a(58368),s=a(86629),o=a(47201),i=a(66092);const l=r.forwardRef((e,t)=>{var a;const{intent:l,onFocus:u,onBlur:c,onMouseOver:d,onMouseOut:m,hasErrors:h,hasWarnings:p,errors:g,warnings:v,alwaysShowAttachedErrors:C,messagesPosition:f,messagesAttachment:S,inheritMessagesWidthFromTarget:y,...b}=e,E=(0,s.useControlValidationLayout)({hasErrors:h,hasWarnings:p,errors:g,warnings:v,alwaysShowAttachedErrors:C,messagesPosition:f,messagesAttachment:S,iconHidden:!0,inheritMessagesWidthFromTarget:y}),I=(0,o.createSafeMulticastEventHandler)(u,E.onFocus),T=(0,o.createSafeMulticastEventHandler)(c,E.onBlur),O=(0,o.createSafeMulticastEventHandler)(d,E.onMouseOver),N=(0,o.createSafeMulticastEventHandler)(m,E.onMouseOut);return r.createElement(r.Fragment,null,r.createElement(n.Select,{...b,intent:null!==(a=E.intent)&&void 0!==a?a:l,onFocus:I,onBlur:T,onMouseOver:O,onMouseOut:N,ref:(0,i.useMergedRefs)([E.containerReference,t])}),E.renderedErrors)});l.displayName="FormSelect"},96722:(e,t,a)=>{"use strict";a.d(t,{Label:()=>l});var r=a(59496),n=a(97754),s=a.n(n),o=a(78274),i=a(28335);function l(e){const{htmlFor:t,children:a,className:n,id:l,...u}=e;return r.createElement(o.BeforeSlot,{...u,className:s()(i.label,n)},r.createElement("label",{id:l,htmlFor:t},a))}},8003:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/3812.21e37b91c0c961133d11.js b/charting_library/bundles/3812.21e37b91c0c961133d11.js new file mode 100644 index 00000000..ef9b67d2 --- /dev/null +++ b/charting_library/bundles/3812.21e37b91c0c961133d11.js @@ -0,0 +1,6 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3812],{72535:(t,e,n)=>{"use strict";var r=n(56237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(t){return r.isMemo(t)?a:u[t.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,p=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=h(n);o&&o!==d&&t(e,o,r)}var a=p(n);l&&(a=a.concat(l(n)));for(var u=c(e),v=c(n),m=0;m{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},27720:(t,e,n)=>{var r=n(70901);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return u(i(t,e),e)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,u="",p=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],f=n[1],h=n.index;if(u+=t.slice(a,h),a=h+l.length,f)u+=f[1];else{var d=t[a],v=n[2],m=n[3],y=n[4],g=n[5],x=n[6],b=n[7];u&&(r.push(u),u="");var w=null!=v&&null!=d&&d!==v,E="+"===x||"*"===x,C="?"===x||"*"===x,P=n[2]||p,A=y||g;r.push({name:m||i++,prefix:v||"",delimiter:P,optional:C,repeat:E,partial:w,asterisk:!!b,pattern:A?s(A):b?".*":"[^"+c(P)+"]+?"})}}return a{"use strict";n.d(e,{MemoryRouter:()=>k,Redirect:()=>S,Route:()=>I,Switch:()=>V,useHistory:()=>J,useParams:()=>G});var r=n(55682),o=n(59496),i=n(19036),a=n.n(i),u=n(19624);function c(t){return"/"===t.charAt(0)}function s(t,e){for(var n=e,r=n+1,o=t.length;r=0;f--){var h=o[f];"."===h?s(o,f):".."===h?(s(o,f),l++):l&&(s(o,f),l--)}if(!u)for(;l--;l)o.unshift("..");!u||""===o[0]||o[0]&&c(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function l(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const f=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=l(e),o=l(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function h(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function d(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=(0,u.default)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="", +o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,r):n.push(r),l({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=d(t,e,f(),w.location);p.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(w.entries[w.index]=r,l({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e{"use strict";n.d(e,{default:()=>o});var r=n(11430);function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.default)(t,e)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/2385.a7490fb24192a7cb071d.css b/charting_library/bundles/3848.d011e1be1e35f2c09044.css similarity index 51% rename from charting_library/bundles/2385.a7490fb24192a7cb071d.css rename to charting_library/bundles/3848.d011e1be1e35f2c09044.css index fa76821f..2a0b013e 100644 --- a/charting_library/bundles/2385.a7490fb24192a7cb071d.css +++ b/charting_library/bundles/3848.d011e1be1e35f2c09044.css @@ -1 +1 @@ -.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(180deg)}.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 2px 0 6px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-right:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651} \ No newline at end of file +.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(180deg)} \ No newline at end of file diff --git a/charting_library/bundles/2385.a7490fb24192a7cb071d.rtl.css b/charting_library/bundles/3848.d011e1be1e35f2c09044.rtl.css similarity index 57% rename from charting_library/bundles/2385.a7490fb24192a7cb071d.rtl.css rename to charting_library/bundles/3848.d011e1be1e35f2c09044.rtl.css index 91e6f7a8..998ba84c 100644 --- a/charting_library/bundles/2385.a7490fb24192a7cb071d.rtl.css +++ b/charting_library/bundles/3848.d011e1be1e35f2c09044.rtl.css @@ -1 +1 @@ -.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(-180deg)}.button-h8C3IU2n{cursor:default;-webkit-user-select:none;user-select:none}.button-children-h8C3IU2n{display:block;overflow:hidden;padding:0 6px 0 2px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-h8C3IU2n.hiddenArrow-h8C3IU2n{padding-left:6px}.invisibleFocusHandler-h8C3IU2n{height:0;opacity:0;pointer-events:none;width:0}.placeholder-fKHYe1Lk{-webkit-text-fill-color:currentColor;color:#a3a6af;opacity:1}html.theme-dark .placeholder-fKHYe1Lk{color:#434651} \ No newline at end of file +.button-1ARG85Og{align-items:center;background-color:initial;border:none;border-radius:2px;box-sizing:border-box;cursor:default;display:flex;flex:none;height:100%;justify-content:center;margin:0;outline:none!important;padding:0;width:21px}@media (any-hover:hover){.button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#f0f3fa}html.theme-dark .button-1ARG85Og:hover:not(.disabled-1ARG85Og){background-color:#363a45}}.button-1ARG85Og.hidden-1ARG85Og{display:none}.icon-1ARG85Og{align-items:center;display:flex;flex:none;justify-content:center;transition:transform .35s ease}.icon-1ARG85Og.dropped-1ARG85Og{transform:rotate(-180deg)} \ No newline at end of file diff --git a/charting_library/bundles/386646a0d8b2c0e75d201d07083beb35.svg b/charting_library/bundles/386646a0d8b2c0e75d201d07083beb35.svg new file mode 100644 index 00000000..077443a1 --- /dev/null +++ b/charting_library/bundles/386646a0d8b2c0e75d201d07083beb35.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3952276d502a2b3659f3cb3c163e9541.svg b/charting_library/bundles/3952276d502a2b3659f3cb3c163e9541.svg new file mode 100644 index 00000000..bfc367aa --- /dev/null +++ b/charting_library/bundles/3952276d502a2b3659f3cb3c163e9541.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3aeb0bb0575de40834fc666660380ae0.svg b/charting_library/bundles/3aeb0bb0575de40834fc666660380ae0.svg new file mode 100644 index 00000000..954d9d37 --- /dev/null +++ b/charting_library/bundles/3aeb0bb0575de40834fc666660380ae0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3aedcdb787ab2003b4f84578eabe8839.svg b/charting_library/bundles/3aedcdb787ab2003b4f84578eabe8839.svg new file mode 100644 index 00000000..e0d50e27 --- /dev/null +++ b/charting_library/bundles/3aedcdb787ab2003b4f84578eabe8839.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3b2b883e642979810780b787f4769e95.jpeg b/charting_library/bundles/3b2b883e642979810780b787f4769e95.jpeg new file mode 100644 index 00000000..d8464803 Binary files /dev/null and b/charting_library/bundles/3b2b883e642979810780b787f4769e95.jpeg differ diff --git a/charting_library/bundles/3bceb8e8c9086be15f6d9034fbb8ab90.svg b/charting_library/bundles/3bceb8e8c9086be15f6d9034fbb8ab90.svg new file mode 100644 index 00000000..c9a65507 --- /dev/null +++ b/charting_library/bundles/3bceb8e8c9086be15f6d9034fbb8ab90.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3ce97881321c8c909b3d05f641fad866.svg b/charting_library/bundles/3ce97881321c8c909b3d05f641fad866.svg new file mode 100644 index 00000000..4085721f --- /dev/null +++ b/charting_library/bundles/3ce97881321c8c909b3d05f641fad866.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3d1dbbd08f14657e981c2a0759373a97.svg b/charting_library/bundles/3d1dbbd08f14657e981c2a0759373a97.svg new file mode 100644 index 00000000..9a273aa7 --- /dev/null +++ b/charting_library/bundles/3d1dbbd08f14657e981c2a0759373a97.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3daf0fa39e9e67bfc0f12166dd01adfd.svg b/charting_library/bundles/3daf0fa39e9e67bfc0f12166dd01adfd.svg new file mode 100644 index 00000000..ac4f4c66 --- /dev/null +++ b/charting_library/bundles/3daf0fa39e9e67bfc0f12166dd01adfd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3f0b266c14a3e0a41685729a6dd63515.svg b/charting_library/bundles/3f0b266c14a3e0a41685729a6dd63515.svg new file mode 100644 index 00000000..6ea3a550 --- /dev/null +++ b/charting_library/bundles/3f0b266c14a3e0a41685729a6dd63515.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/3fd81bada8bbd48683f94d307a01fac4.svg b/charting_library/bundles/3fd81bada8bbd48683f94d307a01fac4.svg new file mode 100644 index 00000000..e0dcb3f7 --- /dev/null +++ b/charting_library/bundles/3fd81bada8bbd48683f94d307a01fac4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4002.3b0ae1c4e1bdb1e18c74.js b/charting_library/bundles/4002.3b0ae1c4e1bdb1e18c74.js new file mode 100644 index 00000000..130b9b40 --- /dev/null +++ b/charting_library/bundles/4002.3b0ae1c4e1bdb1e18c74.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4002,9725],{89725:(t,s,e)=>{e.r(s),e.d(s,{createDialog:()=>h});var i=e(976),o=e(77544);function h(t){const s=t.type||"popup";return delete t.type,"modal"===s?new i.TVModal(t):new o.TVPopup(t)}},976:(t,s,e)=>{e.d(s,{TVModal:()=>v});var i=e(28353),o=e(68587),h=e(49483),n=e(43989),r=e(51536),l=e(4185),a=e(85739),d=e(25760),c=e(23127),p=e(25977);let g=[];const u={ajax:{},closingDuration:o.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,i.t)("Error")}
`};class v extends r.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=c(this.options.overlayTemplate),this.$modalWrap=c(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{g.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||c.noop,s=this.options.ajax.success||!1,e=this.options.ajax.error||c.noop;c.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(s?s(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),e(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,s)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),c(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=c.ajax(this.options.ajax):this.showContent()};return h.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1, +this._keyboardBinderLockId&&a.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),g=p.without(g,this),this.options.fixBodyState&&(0,n.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),g.length>0&&g[g.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*o.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},77544:(t,s,e)=>{e.d(s,{TVPopup:()=>g});var i=e(68587),o=e(52150),h=e(51536),n=e(30812),r=e(35190),l=e(25760),a=e(23127);const d=a("body"),c=a(window),p={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class g extends h.TVDialogAbstract{constructor(t={}){super({...p,...t}),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(a(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(a(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new n.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const s=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=l.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(a(document).on("mousedown touchstart",()=>{this._preventClick=!1}),a(document).on("click.tv-popup-"+s,t=>{if(this._preventClick)return;const s=a(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===s.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>a(document).off("click.tv-popup-"+s))),this.on("change:zIndex",()=>{ +this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,i.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=c.height(),s=c.width(),e=this.$el.height(),i=this.$el.width();let o=this.options.position;return o||(o={top:t/2-e/2,left:s/2-i/2}),o.top>t-e&&(o.top=t-e),o.left>s-i&&(o.left=s-i),o.top<10&&(o.top=10),o.left<10&&(o.left=10),o})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,r.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,s)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),c.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,r.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),d.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),c.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),s={};t.bottom>o.mediaState.height-10&&(s.top=o.mediaState.height-10-t.height,s.top<10&&(s.top=10)),t.right>o.mediaState.width-10&&(s.left=o.mediaState.width-10-t.width,s.left<10&&(s.left=10)),(s.top||s.left)&&this.$el.css(s)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),s=this.$scrollWrapInner[0].getBoundingClientRect(),e=this.$scrollWrap[0].getBoundingClientRect();let i=this.options.height&&this.options.heighti)&&(i-=t.height-e.height,i<60&&(i=60),this.$scrollWrap.css({height:i})),this.options.withScroll&&this.scroll.resize();const n=i{e.d(s,{mediaState:()=>a});var i=e(85459),o=e.n(i),h=e(69677),n=e(74664),r=e(68722);class l extends(o()){constructor(){super(),this.width=0,this.height=0,this.device=null, +this.breakpoints=n.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(n.breakpoints).sort(([t,s],[e,i])=>s-i).forEach(([t,s],e,i)=>{let o;if(0!==e){const[,t]=i[e-1];o=t+1}else o=0;const h=(0,r.matchMediaMinMax)(o,s);h.matches&&this._setNewDevice(t),h.addListener(s=>{s.matches&&(this._checkDevice(),this._setNewDevice(t))})}),(0,h.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(t){const s=this.device;this.device=t,this.trigger("changeDevice",[t,s])}}const a=new l}}]); \ No newline at end of file diff --git a/charting_library/bundles/4194.f5256f014a8f2810c953.rtl.css b/charting_library/bundles/4194.f5256f014a8f2810c953.rtl.css deleted file mode 100644 index a2ba428f..00000000 --- a/charting_library/bundles/4194.f5256f014a8f2810c953.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-Nh5Cqdeo{background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;min-width:280px;text-align:right}html.theme-dark .dialog-Nh5Cqdeo{background-color:#1e222d}.dialog-Nh5Cqdeo.rounded-Nh5Cqdeo{border-radius:6px}.dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0003}html.theme-dark .dialog-Nh5Cqdeo.shadowed-Nh5Cqdeo{box-shadow:0 2px 4px #0006}.dialog-Nh5Cqdeo.fullscreen-Nh5Cqdeo{bottom:0;height:100%;left:0;max-height:100%;max-width:100%;min-height:100%;position:fixed;right:0;top:0;width:100%}.dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#fff}html.theme-dark .dialog-Nh5Cqdeo.darker-Nh5Cqdeo{background-color:#131722}.backdrop-Nh5Cqdeo{background-color:#9598a1;bottom:0;left:0;opacity:.5;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-Nh5Cqdeo{background-color:#0c0e15}.dialog-hxnnZcZ6{max-width:380px;min-width:280px;position:fixed;width:100%}.dialog-hxnnZcZ6 [data-dragg-area=true]{cursor:grab}.dialog-hxnnZcZ6 [data-dragg-area=true].dragging-hxnnZcZ6{cursor:grabbing}.dialogAnimatedAppearance-hxnnZcZ6{animation-duration:.3s;animation-name:dialogAnimation-hxnnZcZ6;transform-origin:100% 0}@keyframes dialogAnimation-hxnnZcZ6{0%{opacity:0;transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0)}to{opacity:1;transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1)}}.dialogTooltip-hxnnZcZ6{color:#fff;font-size:14px;line-height:21px;max-width:540px;position:absolute;right:50%;top:-20px;transform:translateX(50%);width:max-content}@media screen and (max-width:768px){.dialogTooltip-hxnnZcZ6{max-width:240px}} \ No newline at end of file diff --git a/charting_library/bundles/428cfc463b541dfa1321f35af861fada.svg b/charting_library/bundles/428cfc463b541dfa1321f35af861fada.svg new file mode 100644 index 00000000..adaa5b85 --- /dev/null +++ b/charting_library/bundles/428cfc463b541dfa1321f35af861fada.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4364.857d262773326a44c55e.js b/charting_library/bundles/4364.857d262773326a44c55e.js new file mode 100644 index 00000000..3840b248 --- /dev/null +++ b/charting_library/bundles/4364.857d262773326a44c55e.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4364],{59142:function(e,t){var n,r,o;r=[t],void 0===(o="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV", +"variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},41227:e=>{e.exports={actionButton:"actionButton-EGu7SRYD",small:"small-EGu7SRYD",hiddenTitle:"hiddenTitle-EGu7SRYD"}},87992:e=>{e.exports={popupDialog:"popupDialog-2AC2DTdZ",wrap:"wrap-2AC2DTdZ",main:"main-2AC2DTdZ",small:"small-2AC2DTdZ",title:"title-2AC2DTdZ",content:"content-2AC2DTdZ",html:"html-2AC2DTdZ",footer:"footer-2AC2DTdZ",close:"close-2AC2DTdZ"}},97737:(e,t,n)=>{"use strict";n.d(t,{AnchorButton:()=>d,Button:()=>c});var r=n(59496),o=n(71036);function i(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function s(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:s(t),size:a(n),variant:i(r),stretch:o,startIcon:l}}function c(e){return r.createElement(o.SquareButton,{...l(e)})}function u(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:s(t),size:a(n),variant:i(r),stretch:o,startIcon:l}}function d(e){return r.createElement(o.SquareAnchorButton,{...u(e)})}},71036:(e,t,n)=>{"use strict";n.d(t,{SquareAnchorButton:()=>f,SquareButton:()=>p});var r=n(59496),o=n(97754),i=n(95604),s=n(9745),a=n(6539),l=n.n(a);function c(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:s=!1,icon:a,startIcon:c,endIcon:u,iconOnly:d=!1,className:m,isGrouped:h,cellState:p,disablePositionAdjustment:v=!1}=e,f=function(e){ +let t="";return 0!==e&&(1&e&&(t=o(t,l()["no-corner-top-left"])),2&e&&(t=o(t,l()["no-corner-top-right"])),4&e&&(t=o(t,l()["no-corner-bottom-right"])),8&e&&(t=o(t,l()["no-corner-bottom-left"]))),t}((0,i.getGroupCellRemoveRoundBorders)(p));return o(m,l().button,l()["size-"+n],l()["color-"+t],l()["variant-"+r],s&&l().stretch,(a||c)&&l()["with-start-icon"],u&&l()["with-end-icon"],d&&l()["icon-only"],f,h&&l().grouped,h&&!v&&l()["adjust-position"],h&&p.isTop&&l()["first-row"],h&&p.isLeft&&l()["first-col"])}function u(e){const{size:t,startIcon:n,icon:o,iconOnly:i,children:a,endIcon:c}=e,u=null!=n?n:o;return r.createElement(r.Fragment,null,u&&"xsmall"!==t&&r.createElement(s.Icon,{icon:u,className:l()["start-icon-wrap"]}),a&&r.createElement("span",{className:l().content},a),c&&!i&&"xsmall"!==t&&r.createElement(s.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var d=n(86332),m=n(90186);function h(e){const{className:t,color:n,variant:r,size:o,stretch:i,animated:s,icon:a,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function p(e){const{reference:t,...n}=e,{isGrouped:o,cellState:i,disablePositionAdjustment:s}=(0,r.useContext)(d.ControlGroupContext),a=c({...n,isGrouped:o,cellState:i,disablePositionAdjustment:s});return r.createElement("button",{...h(n),className:a,ref:t},r.createElement(u,{...n}))}function v(e){const{className:t,color:n,variant:r,size:o,stretch:i,animated:s,icon:a,iconOnly:l,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function f(e){const{reference:t}=e,{isGrouped:n,cellState:o,disablePositionAdjustment:i}=(0,r.useContext)(d.ControlGroupContext),s=c({...e,isGrouped:n,cellState:o,disablePositionAdjustment:i});return r.createElement("a",{...v(e),className:s,ref:t},r.createElement(u,{...e}))}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function r(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>r})},76974:(e,t,n)=>{"use strict";n.d(t,{useIsMounted:()=>o});var r=n(59496);const o=()=>{const e=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>o});var r=n(59496);const o=r.forwardRef((e,t)=>{const{icon:n="",...o}=e;return r.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:n}})})},26996:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>c});var r,o=n(59496),i=n(97754),s=n(74991),a=n(62092),l=n.n(a);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(r||(r={}));class c extends o.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:r.Initial}}render(){const{className:e,color:t="black",size:n="medium",staticPosition:r}=this.props,s=i(l().item,l()[t],l()[n]);return o.createElement("span",{ +className:i(l().loader,r&&l().static,this._getStateClass(),e)},o.createElement("span",{className:s}),o.createElement("span",{className:s}),o.createElement("span",{className:s}))}componentDidMount(){this.setState({state:r.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:r.Active})},2*s.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case r.Initial:return l()["loader-initial"];case r.Appear:return l()["loader-appear"];default:return""}}}},90186:(e,t,n)=>{"use strict";function r(e){return i(e,s)}function o(e){return i(e,a)}function i(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>o,filterProps:()=>i,isDataAttribute:()=>s,isAriaAttribute:()=>a})},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,o){function i(o){if(e>o.timeStamp)return;const i=o.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===r&&(t.contains(i)||n(o))}return o.click&&r.addEventListener("click",i,!1),o.mouseDown&&r.addEventListener("mousedown",i,!1),o.touchEnd&&r.addEventListener("touchend",i,!1),o.touchStart&&r.addEventListener("touchstart",i,!1),()=>{r.removeEventListener("click",i,!1),r.removeEventListener("mousedown",i,!1),r.removeEventListener("touchend",i,!1),r.removeEventListener("touchstart",i,!1)}}n.d(t,{addOutsideEventListener:()=>r})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>r,matchMediaMinMax:()=>o,setStyle:()=>i,getCSSProperty:()=>s,getCSSPropertyNumericValue:()=>a});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=o-s}return e}})();function o(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function s(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(s(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>s});var r=n(68722);let o=0,i=!1;function s(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++o){const e=(0,r.getCSSProperty)(t,"overflow"),o=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",(0,r.getScrollbarWidth)()+"px"),t.style.paddingRight=o+(0,r.getScrollbarWidth)()+"px",i=!0),t.classList.add("i-no-scroll")}else if(!e&&o>0&&0==--o&&(t.classList.remove("i-no-scroll"),i)){(0,r.setStyle)(n,"right","0px");let e=0;0, +t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",i=!1}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},87456:(e,t,n)=>{"use strict";n.d(t,{SimpleDialogContext:()=>r});const r=n(59496).createContext({isSmallTablet:!1,dialogCloseHandler:()=>{}})},96050:(e,t,n)=>{"use strict";n.d(t,{SimpleDialog:()=>E});var r=n(59496),o=n(97754),i=n(9745),s=n(76422),a=n(81e3),l=n(68335),c=n(90692),u=n(52092),d=n(24437),m=n(86656),h=n(97737),p=n(26996),v=n(88537),f=n(76974),g=n(50655),w=n(87456),C=n(41227);function y(e){const{disabled:t,name:n,title:i,appearance:s,intent:a,handler:l,reference:c}=e,{isSmallTablet:u,dialogCloseHandler:d}=(0,r.useContext)(w.SimpleDialogContext),m=(0,v.ensureNotNull)((0,r.useContext)(g.SlotContext)),y=(0,f.useIsMounted)(),[b,S]=(0,r.useState)(!1);return r.createElement(h.Button,{disabled:t,reference:c,className:o(C.actionButton,u&&C.small),name:n,size:u?"l":void 0,appearance:s,intent:a,onClick:function(){if(b)return;const e=l({dialogClose:d,innerManager:m});e&&(S(!0),e.then(()=>{y.current&&S(!1)}))}},r.createElement("span",{className:o(b&&C.hiddenTitle)},i),b&&r.createElement(p.Loader,{color:"white"}))}var b=n(37257),S=n(87992);function E(e){const{title:t,onClose:n,actions:h,dataName:p,popupDialogClassName:v,backdrop:f,closeOnOutsideClick:g=!0}=e;(0,r.useEffect)(()=>(s.subscribe(u.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null),()=>{s.unsubscribe(u.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null)}),[n]);const[C,E]=(0,r.useState)(!0),x=(0,r.useRef)(null);return r.createElement(c.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},s=>r.createElement(w.SimpleDialogContext.Provider,{value:{isSmallTablet:s,dialogCloseHandler:n}},r.createElement(a.PopupDialog,{className:o(S.popupDialog,v),isOpened:C,backdrop:f,onClickBackdrop:k,onClickOutside:g?k:void 0,onKeyDown:_,autofocus:!0,fixedBody:!0},r.createElement("div",{className:S.wrap,"data-name":p},r.createElement("div",{className:o(S.main,s&&S.small)},r.createElement("div",{className:o(S.title,s&&S.small)},t),function(t){if("html"in e)return r.createElement(m.TouchScrollContainer,{className:o(S.content,t&&S.small,S.html),dangerouslySetInnerHTML:{__html:e.html}});if("content"in e)return r.createElement(m.TouchScrollContainer,{className:o(S.content,t&&S.small)},e.content);return null}(s),h&&h.length>0&&r.createElement("div",{className:o(S.footer,s&&S.small)},h.map((e,t)=>r.createElement(y,{...e,key:e.name,reference:0===t?x:void 0})))),r.createElement(i.Icon,{className:o(S.close,s&&S.small),icon:b,onClick:k,"data-name":"close","data-role":"button"})))));function _(e){switch((0,l.hashFromEvent)(e)){case 27:C&&(e.preventDefault(),n());break;case 13:if(C&&h&&h.length){e.preventDefault();const t=x.current;t&&t.click()}}}function k(){E(!1),n()}}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>i});var r=n(59496),o=n(39640);function i(e){ +const{click:t,mouseDown:n,touchEnd:i,touchStart:s,handler:a,reference:l,ownerDocument:c=document}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:s},r=l?l.current:u.current;return(0,o.addOutsideEventListener)(d.current,r,a,c,e)},[t,n,i,s,a]),l||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>o});var r=n(59496);class o extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var r=n(58095);function o(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>i,getRootOverlapManager:()=>a});var r=n(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class i{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const s=new WeakMap +;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(s.get(t));{const t=new i(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>i});var r=n(59496),o=n(65718);function i(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const i=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?i:r.createElement(o.Portal,null,i)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(59496),o=n(87995),i=n(9423),s=n(88216),a=n(50655);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,s.getRootOverlapManager)():this.context}}l.contextType=a.SlotContext;const c=r.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>o,SlotContext:()=>i});var r=n(59496);class o extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=r.createContext(null)},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>a});var r=n(59496),o=n(59142),i=n(88537),s=n(49483);function a(e){const{reference:t,children:n,...i}=e,a=(0,r.useRef)(null),c=(0,r.useCallback)(e=>{t&&(t.current=e),s.CheckMobile.iOS()&&(null!==a.current&&(0,o.enableBodyScroll)(a.current),a.current=e,null!==a.current&&(0,o.disableBodyScroll)(a.current,{allowTouchMove:l(a)}))},[t]);return r.createElement("div",{ref:c,...i},n)}function l(e){return t=>{const n=(0,i.ensureNotNull)(e.current),r=document.activeElement;return!n.contains(t)||null!==r&&n.contains(r)&&r.contains(t)}}},37257:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/43c5b49b5b8e01e4505c7c251746a8b7.svg b/charting_library/bundles/43c5b49b5b8e01e4505c7c251746a8b7.svg new file mode 100644 index 00000000..cf7ccafe --- /dev/null +++ b/charting_library/bundles/43c5b49b5b8e01e4505c7c251746a8b7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6560.f01881003ac6fef45147.css b/charting_library/bundles/4408.433afc31cc517d90040c.css similarity index 86% rename from charting_library/bundles/6560.f01881003ac6fef45147.css rename to charting_library/bundles/4408.433afc31cc517d90040c.css index 99198123..a6371ae1 100644 --- a/charting_library/bundles/6560.f01881003ac6fef45147.css +++ b/charting_library/bundles/4408.433afc31cc517d90040c.css @@ -1 +1 @@ -.switcher-GT7Z98Io{-webkit-tap-highlight-color:transparent;display:inline-block;flex:0 0 auto;height:var(--tv-switcher-wrapper-height);position:relative;vertical-align:middle;width:var(--tv-switcher-wrapper-width);z-index:0}.switcher-GT7Z98Io:not(.disable-cursor-pointer-GT7Z98Io) .input-GT7Z98Io{cursor:pointer}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#c1c4cd;--ui-lib-switcher-default-color-track-border-off:#c1c4cd;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#2962ffcc}html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-off:#5d606b}.switcher-GT7Z98Io,.switcher-GT7Z98Io.size-small-GT7Z98Io{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px}.switcher-GT7Z98Io.size-large-GT7Z98Io{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}@media (any-hover:hover){.switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#787b86;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-on:#1e53e5}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1e53e5;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-off:#787b86}}.switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#5d606b;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-on:#1848cc}html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1848cc;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#434651}.switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#3179f5;--ui-lib-switcher-default-color-track-border-off:#3179f5;--ui-lib-switcher-default-color-track-bg-on:#24b29b;--ui-lib-switcher-default-color-track-border-on:#24b29b;--ui-lib-switcher-default-color-focus-outline-on:#24b29bcc}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#06806bcc;--ui-lib-switcher-default-color-track-border-on:#06806b;--ui-lib-switcher-default-color-track-bg-on:#06806b;--ui-lib-switcher-default-color-track-border-off:#1e53e5;--ui-lib-switcher-default-color-track-bg-off:#1e53e5}.switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}@media (any-hover:hover){.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}}.switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#e0e3eb;--ui-lib-switcher-default-color-track-border-off:#b2b5be;--ui-lib-switcher-default-color-track-bg-on:#e0e3eb;--ui-lib-switcher-default-color-track-border-on:#b2b5be;--ui-lib-switcher-default-color-thumb:#b2b5be}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-thumb:#5d606b;--ui-lib-switcher-default-color-track-border-on:#434651;--ui-lib-switcher-default-color-track-bg-on:#363a45;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#363a45}.input-GT7Z98Io{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.input-GT7Z98Io:checked,.input-GT7Z98Io:disabled,.input-GT7Z98Io:focus{border:0;outline:0}.input-GT7Z98Io:focus+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus-visible+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus:not(:focus-visible)+.thumb-wrapper-GT7Z98Io:after{display:none}.thumb-wrapper-GT7Z98Io{height:100%;outline:none;overflow:visible;position:relative;width:100%;z-index:0}.thumb-wrapper-GT7Z98Io:focus{outline:none}.thumb-wrapper-GT7Z98Io:focus-visible{outline:none}.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-off,var(--ui-lib-switcher-default-color-focus-outline-off));border-radius:calc(var(--tv-switcher-wrapper-radius) + 4px);border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-on,var(--ui-lib-switcher-default-color-focus-outline-on))}.track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-off,var(--ui-lib-switcher-default-color-track-bg-off));border:1px solid var(--ui-lib-switcher-color-track-border-off,var(--ui-lib-switcher-default-color-track-border-off));border-radius:var(--tv-switcher-wrapper-radius);height:calc(100% - 2px);left:0;position:absolute;top:0;width:calc(100% - 2px)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-on,var(--ui-lib-switcher-default-color-track-bg-on));border-color:var(--ui-lib-switcher-color-track-border-on,var(--ui-lib-switcher-default-color-track-border-on))}.thumb-GT7Z98Io{background:var(--ui-lib-switcher-color-thumb,var(--ui-lib-switcher-default-color-thumb));border-radius:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);transform:translate(3px,3px);transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;width:var(--tv-switcher-thumb-size)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .thumb-GT7Z98Io{transform:translate(calc(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - 3px),3px)}.wrapper-IbP2mmCe{align-content:flex-start;align-items:flex-start;background-color:#fff;color:#131722;display:flex;flex-direction:row;justify-content:space-between;padding:6px 10px 2px 12px;white-space:nowrap}html.theme-dark .wrapper-IbP2mmCe{background-color:#1e222d;color:#b2b5be}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{color:#131722}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{color:#131722}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{color:#c1c4cd}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{color:#c1c4cd}}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{background-color:#f0f3fa}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{background-color:#2a2e39}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{background-color:#2a2e39}}.wrapper-IbP2mmCe:before{content:"";display:block;height:20px}.labelRow-IbP2mmCe{flex:1 1 auto;min-width:0;padding:2px 0 6px}.label-IbP2mmCe{font-size:14px;margin-right:12px;overflow:hidden}.labelHint-IbP2mmCe{color:#787b86;contain:content;font-size:12px;font-weight:400;margin-top:0;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear;white-space:normal}.labelOn-IbP2mmCe+.labelHint-IbP2mmCe{margin-top:4px;max-height:34px;opacity:1;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear} \ No newline at end of file +.switcher-GT7Z98Io{-webkit-tap-highlight-color:transparent;display:inline-block;flex:0 0 auto;height:var(--tv-switcher-wrapper-height);position:relative;vertical-align:middle;width:var(--tv-switcher-wrapper-width);z-index:0}.switcher-GT7Z98Io:not(.disable-cursor-pointer-GT7Z98Io) .input-GT7Z98Io{cursor:pointer}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#c1c4cd;--ui-lib-switcher-default-color-track-border-off:#c1c4cd;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#2962ffcc}html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-off:#5d606b}.switcher-GT7Z98Io,.switcher-GT7Z98Io.size-small-GT7Z98Io{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px}.switcher-GT7Z98Io.size-large-GT7Z98Io{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}@media (any-hover:hover){.switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#787b86;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-on:#1e53e5}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1e53e5;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-off:#787b86}}.switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#5d606b;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-on:#1848cc}html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1848cc;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#434651}.switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#3179f5;--ui-lib-switcher-default-color-track-border-off:#3179f5;--ui-lib-switcher-default-color-track-bg-on:#24b29b;--ui-lib-switcher-default-color-track-border-on:#24b29b;--ui-lib-switcher-default-color-focus-outline-on:#24b29bcc}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#06806bcc;--ui-lib-switcher-default-color-track-border-on:#06806b;--ui-lib-switcher-default-color-track-bg-on:#06806b;--ui-lib-switcher-default-color-track-border-off:#1e53e5;--ui-lib-switcher-default-color-track-bg-off:#1e53e5}.switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}@media (any-hover:hover){.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}}.switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#e0e3eb;--ui-lib-switcher-default-color-track-border-off:#b2b5be;--ui-lib-switcher-default-color-track-bg-on:#e0e3eb;--ui-lib-switcher-default-color-track-border-on:#b2b5be;--ui-lib-switcher-default-color-thumb:#b2b5be}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-thumb:#5d606b;--ui-lib-switcher-default-color-track-border-on:#434651;--ui-lib-switcher-default-color-track-bg-on:#363a45;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#363a45}.input-GT7Z98Io{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.input-GT7Z98Io:checked,.input-GT7Z98Io:disabled,.input-GT7Z98Io:focus{border:0;outline:0}.input-GT7Z98Io:focus+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus-visible+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus:not(:focus-visible)+.thumb-wrapper-GT7Z98Io:after{display:none}.thumb-wrapper-GT7Z98Io{height:100%;outline:none;overflow:visible;position:relative;width:100%;z-index:0}.thumb-wrapper-GT7Z98Io:focus{outline:none}.thumb-wrapper-GT7Z98Io:focus-visible{outline:none}.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-off,var(--ui-lib-switcher-default-color-focus-outline-off));border-radius:calc(var(--tv-switcher-wrapper-radius) + 4px);border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-on,var(--ui-lib-switcher-default-color-focus-outline-on))}.track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-off,var(--ui-lib-switcher-default-color-track-bg-off));border:1px solid var(--ui-lib-switcher-color-track-border-off,var(--ui-lib-switcher-default-color-track-border-off));border-radius:var(--tv-switcher-wrapper-radius);height:calc(100% - 2px);left:0;position:absolute;top:0;width:calc(100% - 2px)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-on,var(--ui-lib-switcher-default-color-track-bg-on));border-color:var(--ui-lib-switcher-color-track-border-on,var(--ui-lib-switcher-default-color-track-border-on))}.thumb-GT7Z98Io{background:var(--ui-lib-switcher-color-thumb,var(--ui-lib-switcher-default-color-thumb));border-radius:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);transform:translate(3px,3px);transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;width:var(--tv-switcher-thumb-size)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .thumb-GT7Z98Io{transform:translate(calc(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - 3px),3px)} \ No newline at end of file diff --git a/charting_library/bundles/6560.f01881003ac6fef45147.rtl.css b/charting_library/bundles/4408.433afc31cc517d90040c.rtl.css similarity index 86% rename from charting_library/bundles/6560.f01881003ac6fef45147.rtl.css rename to charting_library/bundles/4408.433afc31cc517d90040c.rtl.css index 33c23f39..57ca0b2b 100644 --- a/charting_library/bundles/6560.f01881003ac6fef45147.rtl.css +++ b/charting_library/bundles/4408.433afc31cc517d90040c.rtl.css @@ -1 +1 @@ -.switcher-GT7Z98Io{-webkit-tap-highlight-color:transparent;display:inline-block;flex:0 0 auto;height:var(--tv-switcher-wrapper-height);position:relative;vertical-align:middle;width:var(--tv-switcher-wrapper-width);z-index:0}.switcher-GT7Z98Io:not(.disable-cursor-pointer-GT7Z98Io) .input-GT7Z98Io{cursor:pointer}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#c1c4cd;--ui-lib-switcher-default-color-track-border-off:#c1c4cd;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#2962ffcc}html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-off:#5d606b}.switcher-GT7Z98Io,.switcher-GT7Z98Io.size-small-GT7Z98Io{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px}.switcher-GT7Z98Io.size-large-GT7Z98Io{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}@media (any-hover:hover){.switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#787b86;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-on:#1e53e5}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1e53e5;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-off:#787b86}}.switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#5d606b;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-on:#1848cc}html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1848cc;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#434651}.switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#3179f5;--ui-lib-switcher-default-color-track-border-off:#3179f5;--ui-lib-switcher-default-color-track-bg-on:#24b29b;--ui-lib-switcher-default-color-track-border-on:#24b29b;--ui-lib-switcher-default-color-focus-outline-on:#24b29bcc}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#06806bcc;--ui-lib-switcher-default-color-track-border-on:#06806b;--ui-lib-switcher-default-color-track-bg-on:#06806b;--ui-lib-switcher-default-color-track-border-off:#1e53e5;--ui-lib-switcher-default-color-track-bg-off:#1e53e5}.switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}@media (any-hover:hover){.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}}.switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#e0e3eb;--ui-lib-switcher-default-color-track-border-off:#b2b5be;--ui-lib-switcher-default-color-track-bg-on:#e0e3eb;--ui-lib-switcher-default-color-track-border-on:#b2b5be;--ui-lib-switcher-default-color-thumb:#b2b5be}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-thumb:#5d606b;--ui-lib-switcher-default-color-track-border-on:#434651;--ui-lib-switcher-default-color-track-bg-on:#363a45;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#363a45}.input-GT7Z98Io{height:100%;opacity:0;position:absolute;right:0;top:0;width:100%;z-index:1}.input-GT7Z98Io:checked,.input-GT7Z98Io:disabled,.input-GT7Z98Io:focus{border:0;outline:0}.input-GT7Z98Io:focus+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus-visible+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus:not(:focus-visible)+.thumb-wrapper-GT7Z98Io:after{display:none}.thumb-wrapper-GT7Z98Io{height:100%;outline:none;overflow:visible;position:relative;width:100%;z-index:0}.thumb-wrapper-GT7Z98Io:focus{outline:none}.thumb-wrapper-GT7Z98Io:focus-visible{outline:none}.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-off,var(--ui-lib-switcher-default-color-focus-outline-off));border-radius:calc(var(--tv-switcher-wrapper-radius) + 4px);border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-on,var(--ui-lib-switcher-default-color-focus-outline-on))}.track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-off,var(--ui-lib-switcher-default-color-track-bg-off));border:1px solid var(--ui-lib-switcher-color-track-border-off,var(--ui-lib-switcher-default-color-track-border-off));border-radius:var(--tv-switcher-wrapper-radius);height:calc(100% - 2px);position:absolute;right:0;top:0;width:calc(100% - 2px)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-on,var(--ui-lib-switcher-default-color-track-bg-on));border-color:var(--ui-lib-switcher-color-track-border-on,var(--ui-lib-switcher-default-color-track-border-on))}.thumb-GT7Z98Io{background:var(--ui-lib-switcher-color-thumb,var(--ui-lib-switcher-default-color-thumb));border-radius:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);transform:translate(-3px,3px);transform:translate(calc(-1*($thumb-padding)),$thumb-padding);transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;width:var(--tv-switcher-thumb-size)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .thumb-GT7Z98Io{transform:translate(calc(var(--tv-switcher-wrapper-width)*-1 - var(--tv-switcher-thumb-size)*-1 - -3px),3px)}.wrapper-IbP2mmCe{align-content:flex-start;align-items:flex-start;background-color:#fff;color:#131722;display:flex;flex-direction:row;justify-content:space-between;padding:6px 12px 2px 10px;white-space:nowrap}html.theme-dark .wrapper-IbP2mmCe{background-color:#1e222d;color:#b2b5be}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{color:#131722}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{color:#131722}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{color:#c1c4cd}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{color:#c1c4cd}}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{background-color:#f0f3fa}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{background-color:#2a2e39}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{background-color:#2a2e39}}.wrapper-IbP2mmCe:before{content:"";display:block;height:20px}.labelRow-IbP2mmCe{flex:1 1 auto;min-width:0;padding:2px 0 6px}.label-IbP2mmCe{font-size:14px;margin-left:12px;overflow:hidden}.labelHint-IbP2mmCe{color:#787b86;contain:content;font-size:12px;font-weight:400;margin-top:0;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear;white-space:normal}.labelOn-IbP2mmCe+.labelHint-IbP2mmCe{margin-top:4px;max-height:34px;opacity:1;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear} \ No newline at end of file +.switcher-GT7Z98Io{-webkit-tap-highlight-color:transparent;display:inline-block;flex:0 0 auto;height:var(--tv-switcher-wrapper-height);position:relative;vertical-align:middle;width:var(--tv-switcher-wrapper-width);z-index:0}.switcher-GT7Z98Io:not(.disable-cursor-pointer-GT7Z98Io) .input-GT7Z98Io{cursor:pointer}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#c1c4cd;--ui-lib-switcher-default-color-track-border-off:#c1c4cd;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc}.switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#2962ffcc}html.theme-dark .switcher-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-off:#2962ffcc;--ui-lib-switcher-default-color-thumb:#fff;--ui-lib-switcher-default-color-track-border-on:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#2962ff;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-off:#5d606b}.switcher-GT7Z98Io,.switcher-GT7Z98Io.size-small-GT7Z98Io{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px}.switcher-GT7Z98Io.size-large-GT7Z98Io{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}@media (any-hover:hover){.switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#787b86;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-on:#1e53e5}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1e53e5;--ui-lib-switcher-default-color-track-bg-on:#1e53e5;--ui-lib-switcher-default-color-track-border-off:#787b86;--ui-lib-switcher-default-color-track-bg-off:#787b86}}.switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#5d606b;--ui-lib-switcher-default-color-track-border-off:#5d606b;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-on:#1848cc}html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#1848cc;--ui-lib-switcher-default-color-track-bg-on:#1848cc;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#434651}.switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#3179f5;--ui-lib-switcher-default-color-track-border-off:#3179f5;--ui-lib-switcher-default-color-track-bg-on:#24b29b;--ui-lib-switcher-default-color-track-border-on:#24b29b;--ui-lib-switcher-default-color-focus-outline-on:#24b29bcc}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-focus-outline-on:#06806bcc;--ui-lib-switcher-default-color-track-border-on:#06806b;--ui-lib-switcher-default-color-track-bg-on:#06806b;--ui-lib-switcher-default-color-track-border-off:#1e53e5;--ui-lib-switcher-default-color-track-bg-off:#1e53e5}.switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}@media (any-hover:hover){.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff;--ui-lib-switcher-default-color-track-border-off:#2962ff;--ui-lib-switcher-default-color-track-bg-on:#42bda8;--ui-lib-switcher-default-color-track-border-on:#42bda8}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-on:#056656}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-border-off:#2962ff}}html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io:not(.disable-active-state-styles-GT7Z98Io) .input-GT7Z98Io:active+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}@media (any-hover:hover){html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:hover+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#2962ff}}.switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,.switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-track-bg-off:#e0e3eb;--ui-lib-switcher-default-color-track-border-off:#b2b5be;--ui-lib-switcher-default-color-track-bg-on:#e0e3eb;--ui-lib-switcher-default-color-track-border-on:#b2b5be;--ui-lib-switcher-default-color-thumb:#b2b5be}html.theme-dark .switcher-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-default-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io,html.theme-dark .switcher-GT7Z98Io.intent-select-GT7Z98Io .input-GT7Z98Io:disabled+.thumb-wrapper-GT7Z98Io{--ui-lib-switcher-default-color-thumb:#5d606b;--ui-lib-switcher-default-color-track-border-on:#434651;--ui-lib-switcher-default-color-track-bg-on:#363a45;--ui-lib-switcher-default-color-track-border-off:#434651;--ui-lib-switcher-default-color-track-bg-off:#363a45}.input-GT7Z98Io{height:100%;opacity:0;position:absolute;right:0;top:0;width:100%;z-index:1}.input-GT7Z98Io:checked,.input-GT7Z98Io:disabled,.input-GT7Z98Io:focus{border:0;outline:0}.input-GT7Z98Io:focus+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus-visible+.thumb-wrapper-GT7Z98Io:after{display:block}.input-GT7Z98Io:focus:not(:focus-visible)+.thumb-wrapper-GT7Z98Io:after{display:none}.thumb-wrapper-GT7Z98Io{height:100%;outline:none;overflow:visible;position:relative;width:100%;z-index:0}.thumb-wrapper-GT7Z98Io:focus{outline:none}.thumb-wrapper-GT7Z98Io:focus-visible{outline:none}.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-off,var(--ui-lib-switcher-default-color-focus-outline-off));border-radius:calc(var(--tv-switcher-wrapper-radius) + 4px);border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io:after{border-color:var(--ui-lib-switcher-color-focus-outline-on,var(--ui-lib-switcher-default-color-focus-outline-on))}.track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-off,var(--ui-lib-switcher-default-color-track-bg-off));border:1px solid var(--ui-lib-switcher-color-track-border-off,var(--ui-lib-switcher-default-color-track-border-off));border-radius:var(--tv-switcher-wrapper-radius);height:calc(100% - 2px);position:absolute;right:0;top:0;width:calc(100% - 2px)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .track-GT7Z98Io{background-color:var(--ui-lib-switcher-color-track-bg-on,var(--ui-lib-switcher-default-color-track-bg-on));border-color:var(--ui-lib-switcher-color-track-border-on,var(--ui-lib-switcher-default-color-track-border-on))}.thumb-GT7Z98Io{background:var(--ui-lib-switcher-color-thumb,var(--ui-lib-switcher-default-color-thumb));border-radius:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);transform:translate(-3px,3px);transform:translate(calc(-1*($thumb-padding)),$thumb-padding);transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;width:var(--tv-switcher-thumb-size)}.input-GT7Z98Io:checked+.thumb-wrapper-GT7Z98Io .thumb-GT7Z98Io{transform:translate(calc(var(--tv-switcher-wrapper-width)*-1 - var(--tv-switcher-thumb-size)*-1 - -3px),3px)} \ No newline at end of file diff --git a/charting_library/bundles/4419319a45a29943de1cbb904c896305.svg b/charting_library/bundles/4419319a45a29943de1cbb904c896305.svg new file mode 100644 index 00000000..4d0b292b --- /dev/null +++ b/charting_library/bundles/4419319a45a29943de1cbb904c896305.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/44239307acfe2269d7827563273f2bfa.svg b/charting_library/bundles/44239307acfe2269d7827563273f2bfa.svg new file mode 100644 index 00000000..74e23ace --- /dev/null +++ b/charting_library/bundles/44239307acfe2269d7827563273f2bfa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4497.3ced329964413f9bf307.css b/charting_library/bundles/4497.3ced329964413f9bf307.css new file mode 100644 index 00000000..a51a1aa0 --- /dev/null +++ b/charting_library/bundles/4497.3ced329964413f9bf307.css @@ -0,0 +1 @@ +.tv-card-info-collector__tab-wrapper{padding-top:17px}.tv-card-info-collector__tabs-container{padding:0 40px}@media screen and (max-width:479px){.tv-card-info-collector__tabs-container{padding:0 20px}}.tv-card-info-collector__tabs#tabs{margin-top:-5px}.tv-card-info-collector .tv-card-info-collector__tab.tv-tabs__tab{font-size:17px;padding:0 0 17px}.tv-card-info-collector .tv-card-info-collector__tab.tv-tabs__tab:not(:last-child){padding-right:25px}.tv-card-info-collector__payment-message{min-height:139px;padding:0 40px 40px}@media screen and (max-width:479px){.tv-card-info-collector__payment-message{padding:0 20px 20px}}.tv-card-info-collector .tv-card-info-collector__payment-text{color:#131722;font-size:16px;line-height:25px}.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text{color:#535353;font-size:15px}.tv-card-info-collector__complete-text a,.tv-card-info-collector__error-text a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__complete-text a,html.theme-dark .tv-card-info-collector__error-text a{color:#2962ff}.tv-card-info-collector__complete-text a:visited,.tv-card-info-collector__error-text a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__complete-text a:visited,html.theme-dark .tv-card-info-collector__error-text a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__complete-text a:hover,.tv-card-info-collector__error-text a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__complete-text a:hover,html.theme-dark .tv-card-info-collector__error-text a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__complete-text a:focus,.tv-card-info-collector__error-text a:focus{outline:auto}.tv-card-info-collector__complete-text a:focus:not(:-moz-focusring),.tv-card-info-collector__error-text a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__complete-text a:-moz-focusring,.tv-card-info-collector__error-text a:-moz-focusring{outline:auto}.tv-card-info-collector__complete-text a:active,.tv-card-info-collector__error-text a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__complete-text a:active,html.theme-dark .tv-card-info-collector__error-text a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text{padding:0 40px}.tv-card-info-collector__complete-text+.tv-card-info-collector__complete-text,.tv-card-info-collector__complete-text+.tv-card-info-collector__error-text,.tv-card-info-collector__error-text+.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text+.tv-card-info-collector__error-text{margin-top:20px}.tv-card-info-collector__error-text{padding:15px 40px 35px}.tv-card-info-collector__actions{padding-top:20px}.tv-card-info-collector__actions--horz-offset{padding-left:40px;padding-right:40px}@media screen and (max-width:479px){.tv-card-info-collector__actions--horz-offset{padding-left:20px;padding-right:20px}}.tv-card-info-collector__actions-container{display:flex;justify-content:flex-end}.tv-card-info-collector__actions--cancel-button{font-weight:400;margin-right:25px;top:7px}@media screen and (max-width:767px){.tv-card-info-collector__actions-container{flex-direction:column-reverse}.tv-card-info-collector__actions--cancel-button{margin-right:0;margin-top:15px}.tv-card-info-collector__actions .tv-button+.tv-button{margin-left:0}}.tv-card-info-collector__title-text{color:#131722;font-size:24px;font-weight:700;padding:0 40px}html.theme-dark .tv-card-info-collector__title-text{color:#d1d4dc}@media screen and (max-width:479px){.tv-card-info-collector__title-text{padding:0 20px}}.tv-card-info-collector__card-wrapper{direction:ltr;overflow:visible;padding:0 40px 24px;position:relative}@media screen and (max-width:479px){.tv-card-info-collector__card-wrapper{padding:0 20px 20px}}.tv-card-info-collector__card-parts{display:flex;flex-wrap:wrap;margin-bottom:17px}.tv-card-info-collector__card-parts:last-child{margin-bottom:0}.tv-card-info-collector__input-holder{flex:1;margin-right:10px}.tv-card-info-collector__input-holder:last-child{margin-right:0}.tv-card-info-collector__input-holder:first-child{flex:2}.tv-card-info-collector__input-holder__card-input{border-radius:4px}.tv-card-info-collector__input-holder .tv-control-error__icon{padding-right:5px}@media screen and (max-width:1019px){.tv-card-info-collector__input-holder{flex-basis:30%}.tv-card-info-collector__input-holder:first-child{flex-basis:70%;margin-right:0}.tv-card-info-collector__input-holder:not(:first-child){margin-top:10px}}.tv-card-info-collector__input-name{color:#787b86;font-size:14px;letter-spacing:.4px;line-height:21px}.tv-card-info-collector__fieldset.tv-control-fieldset{margin-bottom:20px}.tv-card-info-collector__fieldset.tv-control-fieldset:last-child{margin-bottom:0}.tv-card-info-collector__message{padding:0 40px}@media screen and (max-width:479px){.tv-card-info-collector__message{padding:0 20px 20px}}.tv-card-info-collector__footer-message{padding:0 40px 10px}.tv-card-info-collector__non-pro-container{display:inline-block;margin-bottom:20px;width:100%}.tv-card-info-collector__non-pro-label{font-size:14px;line-height:22px;margin-left:10px}.tv-card-info-collector__non-pro-help-button{display:inline-block;line-height:1;vertical-align:middle}.tv-card-info-collector__non-pro-help-button svg{fill:currentColor;height:18px;width:18px}.tv-card-info-collector__non-pro-checkbox{margin-top:2px}.tv-card-info-collector__policy-container{display:inline-block;margin-bottom:20px;width:100%}@media screen and (max-width:767px){.tv-card-info-collector__policy-container{margin-bottom:30px}}.tv-card-info-collector__policy-terms{font-size:14px;line-height:1.6em;margin-left:10px}.tv-card-info-collector__policy-terms a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__policy-terms a{color:#2962ff}.tv-card-info-collector__policy-terms a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__policy-terms a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__policy-terms a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__policy-terms a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__policy-terms a:focus{outline:auto}.tv-card-info-collector__policy-terms a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__policy-terms a:-moz-focusring{outline:auto}.tv-card-info-collector__policy-terms a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__policy-terms a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__policy-checkbox{margin-top:2px}.tv-card-info-collector__ice-message-container{display:inline-block;margin-bottom:20px;width:100%}@media screen and (max-width:767px){.tv-card-info-collector__ice-message-container{margin-bottom:30px}}.tv-card-info-collector__ice-message-label{font-size:14px;line-height:1.6em;margin-left:10px}.tv-card-info-collector__ice-message-label a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__ice-message-label a{color:#2962ff}.tv-card-info-collector__ice-message-label a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__ice-message-label a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__ice-message-label a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__ice-message-label a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__ice-message-label a:focus{outline:auto}.tv-card-info-collector__ice-message-label a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__ice-message-label a:-moz-focusring{outline:auto}.tv-card-info-collector__ice-message-label a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__ice-message-label a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__ice-message-checkbox{margin-top:2px}.tv-card-info-collector__ice-message-label,.tv-card-info-collector__non-pro-label,.tv-card-info-collector__policy-terms{color:#131722}.tv-card-info-collector__ice-message-container .tv-control-error__messages,.tv-card-info-collector__non-pro-container .tv-control-error__messages,.tv-card-info-collector__policy-container .tv-control-error__messages{left:0;right:auto}.tv-card-info-collector .tv-card-info-collector__ice-message-checkbox,.tv-card-info-collector .tv-card-info-collector__non-pro-checkbox,.tv-card-info-collector .tv-card-info-collector__policy-checkbox{vertical-align:top}.tv-card-info-collector .tv-control-select__control,.tv-card-info-collector .tv-control-select__option-wrap{color:#434651;font-size:16px!important}.tv-card-info-collector__countries-select{max-width:167px}@media screen and (max-width:1530px){.tv-card-info-collector__countries-select{max-width:135px}}@media screen and (max-width:1019px){.tv-card-info-collector__countries-select{max-width:none}}.tv-card-info-collector__card-input{border-radius:4px}.tv-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;line-height:53px;overflow:hidden;padding:0 16px;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-tabs:before{background-color:#363a45}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;color:#131722;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-tabs__tab:hover{color:#2962ff}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363a45}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-left:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-tabs__slider,.tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{font-size:13px;line-height:23px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-left:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-right:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-left:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-left:0;padding-left:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-right:0;padding-right:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-left:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-right:0}.tv-tabs--secondary-active .tv-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#1848cc;color:#fff}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-tabs--searchbar_sub .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#434651}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#d1d4dc}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-start-free-trial-7bqZMNHV{background:#fff;border-radius:6px;padding:40px 0}html.theme-dark .tv-start-free-trial-7bqZMNHV{background:#1e222d}.tv-start-free-trial__section-7bqZMNHV{padding:0}.tv-start-free-trial__title-7bqZMNHV{border-bottom:none;color:#131722;font-size:36px;line-height:44px;padding:0 40px}html.theme-dark .tv-start-free-trial__title-7bqZMNHV{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial__title-7bqZMNHV{padding:0 20px}}@media screen and (max-width:1530px){.tv-start-free-trial-7bqZMNHV .tv-card-info-collector__countries-select{max-width:none}}.tv-start-free-trial-7bqZMNHV .tv-card-info-collector__policy-terms{color:#131722}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-card-info-collector__policy-terms{color:#d1d4dc}.tv-start-free-trial-7bqZMNHV .tv-tabs:before{background-color:#d1d4dc}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-tabs:before{background-color:#434651}.tv-start-free-trial-7bqZMNHV .tv-control-input:-webkit-autofill{-webkit-text-fill-color:#131722!important;box-shadow:inset 0 0 0 1000px #fff!important}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-control-input:-webkit-autofill{-webkit-text-fill-color:#d1d4dc!important;box-shadow:inset 0 0 0 1000px #1e222d!important} \ No newline at end of file diff --git a/charting_library/bundles/4497.3ced329964413f9bf307.rtl.css b/charting_library/bundles/4497.3ced329964413f9bf307.rtl.css new file mode 100644 index 00000000..bb2848fa --- /dev/null +++ b/charting_library/bundles/4497.3ced329964413f9bf307.rtl.css @@ -0,0 +1 @@ +.tv-card-info-collector__tab-wrapper{padding-top:17px}.tv-card-info-collector__tabs-container{padding:0 40px}@media screen and (max-width:479px){.tv-card-info-collector__tabs-container{padding:0 20px}}.tv-card-info-collector__tabs#tabs{margin-top:-5px}.tv-card-info-collector .tv-card-info-collector__tab.tv-tabs__tab{font-size:17px;padding:0 0 17px}.tv-card-info-collector .tv-card-info-collector__tab.tv-tabs__tab:not(:last-child){padding-left:25px}.tv-card-info-collector__payment-message{min-height:139px;padding:0 40px 40px}@media screen and (max-width:479px){.tv-card-info-collector__payment-message{padding:0 20px 20px}}.tv-card-info-collector .tv-card-info-collector__payment-text{color:#131722;font-size:16px;line-height:25px}.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text{color:#535353;font-size:15px}.tv-card-info-collector__complete-text a,.tv-card-info-collector__error-text a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__complete-text a,html.theme-dark .tv-card-info-collector__error-text a{color:#2962ff}.tv-card-info-collector__complete-text a:visited,.tv-card-info-collector__error-text a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__complete-text a:visited,html.theme-dark .tv-card-info-collector__error-text a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__complete-text a:hover,.tv-card-info-collector__error-text a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__complete-text a:hover,html.theme-dark .tv-card-info-collector__error-text a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__complete-text a:focus,.tv-card-info-collector__error-text a:focus{outline:auto}.tv-card-info-collector__complete-text a:focus:not(:-moz-focusring),.tv-card-info-collector__error-text a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__complete-text a:-moz-focusring,.tv-card-info-collector__error-text a:-moz-focusring{outline:auto}.tv-card-info-collector__complete-text a:active,.tv-card-info-collector__error-text a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__complete-text a:active,html.theme-dark .tv-card-info-collector__error-text a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text{padding:0 40px}.tv-card-info-collector__complete-text+.tv-card-info-collector__complete-text,.tv-card-info-collector__complete-text+.tv-card-info-collector__error-text,.tv-card-info-collector__error-text+.tv-card-info-collector__complete-text,.tv-card-info-collector__error-text+.tv-card-info-collector__error-text{margin-top:20px}.tv-card-info-collector__error-text{padding:15px 40px 35px}.tv-card-info-collector__actions{padding-top:20px}.tv-card-info-collector__actions--horz-offset{padding-left:40px;padding-right:40px}@media screen and (max-width:479px){.tv-card-info-collector__actions--horz-offset{padding-left:20px;padding-right:20px}}.tv-card-info-collector__actions-container{display:flex;justify-content:flex-end}.tv-card-info-collector__actions--cancel-button{font-weight:400;margin-left:25px;top:7px}@media screen and (max-width:767px){.tv-card-info-collector__actions-container{flex-direction:column-reverse}.tv-card-info-collector__actions--cancel-button{margin-left:0;margin-top:15px}.tv-card-info-collector__actions .tv-button+.tv-button{margin-right:0}}.tv-card-info-collector__title-text{color:#131722;font-size:24px;font-weight:700;padding:0 40px}html.theme-dark .tv-card-info-collector__title-text{color:#d1d4dc}@media screen and (max-width:479px){.tv-card-info-collector__title-text{padding:0 20px}}.tv-card-info-collector__card-wrapper{direction:ltr;overflow:visible;padding:0 40px 24px;position:relative}@media screen and (max-width:479px){.tv-card-info-collector__card-wrapper{padding:0 20px 20px}}.tv-card-info-collector__card-parts{display:flex;flex-wrap:wrap;margin-bottom:17px}.tv-card-info-collector__card-parts:last-child{margin-bottom:0}.tv-card-info-collector__input-holder{flex:1;margin-left:10px}.tv-card-info-collector__input-holder:last-child{margin-left:0}.tv-card-info-collector__input-holder:first-child{flex:2}.tv-card-info-collector__input-holder__card-input{border-radius:4px}.tv-card-info-collector__input-holder .tv-control-error__icon{padding-left:5px}@media screen and (max-width:1019px){.tv-card-info-collector__input-holder{flex-basis:30%}.tv-card-info-collector__input-holder:first-child{flex-basis:70%;margin-left:0}.tv-card-info-collector__input-holder:not(:first-child){margin-top:10px}}.tv-card-info-collector__input-name{color:#787b86;font-size:14px;letter-spacing:.4px;line-height:21px}.tv-card-info-collector__fieldset.tv-control-fieldset{margin-bottom:20px}.tv-card-info-collector__fieldset.tv-control-fieldset:last-child{margin-bottom:0}.tv-card-info-collector__message{padding:0 40px}@media screen and (max-width:479px){.tv-card-info-collector__message{padding:0 20px 20px}}.tv-card-info-collector__footer-message{padding:0 40px 10px}.tv-card-info-collector__non-pro-container{display:inline-block;margin-bottom:20px;width:100%}.tv-card-info-collector__non-pro-label{font-size:14px;line-height:22px;margin-right:10px}.tv-card-info-collector__non-pro-help-button{display:inline-block;line-height:1;vertical-align:middle}.tv-card-info-collector__non-pro-help-button svg{fill:currentColor;height:18px;width:18px}.tv-card-info-collector__non-pro-checkbox{margin-top:2px}.tv-card-info-collector__policy-container{display:inline-block;margin-bottom:20px;width:100%}@media screen and (max-width:767px){.tv-card-info-collector__policy-container{margin-bottom:30px}}.tv-card-info-collector__policy-terms{font-size:14px;line-height:1.6em;margin-right:10px}.tv-card-info-collector__policy-terms a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__policy-terms a{color:#2962ff}.tv-card-info-collector__policy-terms a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__policy-terms a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__policy-terms a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__policy-terms a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__policy-terms a:focus{outline:auto}.tv-card-info-collector__policy-terms a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__policy-terms a:-moz-focusring{outline:auto}.tv-card-info-collector__policy-terms a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__policy-terms a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__policy-checkbox{margin-top:2px}.tv-card-info-collector__ice-message-container{display:inline-block;margin-bottom:20px;width:100%}@media screen and (max-width:767px){.tv-card-info-collector__ice-message-container{margin-bottom:30px}}.tv-card-info-collector__ice-message-label{font-size:14px;line-height:1.6em;margin-right:10px}.tv-card-info-collector__ice-message-label a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-card-info-collector__ice-message-label a{color:#2962ff}.tv-card-info-collector__ice-message-label a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-card-info-collector__ice-message-label a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-card-info-collector__ice-message-label a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-card-info-collector__ice-message-label a:hover{fill:#1e53e5;color:#1e53e5}}.tv-card-info-collector__ice-message-label a:focus{outline:auto}.tv-card-info-collector__ice-message-label a:focus:not(:-moz-focusring){outline:none}.tv-card-info-collector__ice-message-label a:-moz-focusring{outline:auto}.tv-card-info-collector__ice-message-label a:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-card-info-collector__ice-message-label a:active{fill:#1848cc;color:#1848cc}.tv-card-info-collector__ice-message-checkbox{margin-top:2px}.tv-card-info-collector__ice-message-label,.tv-card-info-collector__non-pro-label,.tv-card-info-collector__policy-terms{color:#131722}.tv-card-info-collector__ice-message-container .tv-control-error__messages,.tv-card-info-collector__non-pro-container .tv-control-error__messages,.tv-card-info-collector__policy-container .tv-control-error__messages{left:auto;right:0}.tv-card-info-collector .tv-card-info-collector__ice-message-checkbox,.tv-card-info-collector .tv-card-info-collector__non-pro-checkbox,.tv-card-info-collector .tv-card-info-collector__policy-checkbox{vertical-align:top}.tv-card-info-collector .tv-control-select__control,.tv-card-info-collector .tv-control-select__option-wrap{color:#434651;font-size:16px!important}.tv-card-info-collector__countries-select{max-width:167px}@media screen and (max-width:1530px){.tv-card-info-collector__countries-select{max-width:135px}}@media screen and (max-width:1019px){.tv-card-info-collector__countries-select{max-width:none}}.tv-card-info-collector__card-input{border-radius:4px}.tv-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;line-height:53px;overflow:hidden;padding:0 16px;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-tabs:before{background-color:#363a45}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;color:#131722;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-tabs__tab:hover{color:#2962ff}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363a45}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-right:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-tabs__slider,.tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{font-size:13px;line-height:23px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-right:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-left:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-right:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-right:0;padding-right:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-left:0;padding-left:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-right:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-left:0}.tv-tabs--secondary-active .tv-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#1848cc;color:#fff}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#434651}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#d1d4dc}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-start-free-trial-7bqZMNHV{background:#fff;border-radius:6px;padding:40px 0}html.theme-dark .tv-start-free-trial-7bqZMNHV{background:#1e222d}.tv-start-free-trial__section-7bqZMNHV{padding:0}.tv-start-free-trial__title-7bqZMNHV{border-bottom:none;color:#131722;font-size:36px;line-height:44px;padding:0 40px}html.theme-dark .tv-start-free-trial__title-7bqZMNHV{color:#d1d4dc}@media screen and (max-width:479px){.tv-start-free-trial__title-7bqZMNHV{padding:0 20px}}@media screen and (max-width:1530px){.tv-start-free-trial-7bqZMNHV .tv-card-info-collector__countries-select{max-width:none}}.tv-start-free-trial-7bqZMNHV .tv-card-info-collector__policy-terms{color:#131722}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-card-info-collector__policy-terms{color:#d1d4dc}.tv-start-free-trial-7bqZMNHV .tv-tabs:before{background-color:#d1d4dc}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-tabs:before{background-color:#434651}.tv-start-free-trial-7bqZMNHV .tv-control-input:-webkit-autofill{-webkit-text-fill-color:#131722!important;box-shadow:inset 0 0 0 1000px #fff!important}html.theme-dark .tv-start-free-trial-7bqZMNHV .tv-control-input:-webkit-autofill{-webkit-text-fill-color:#d1d4dc!important;box-shadow:inset 0 0 0 1000px #1e222d!important} \ No newline at end of file diff --git a/charting_library/bundles/455e18987c2c85ec010fd1456751ab61.svg b/charting_library/bundles/455e18987c2c85ec010fd1456751ab61.svg new file mode 100644 index 00000000..eb3a00de --- /dev/null +++ b/charting_library/bundles/455e18987c2c85ec010fd1456751ab61.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4634.2a4010396de3915172a8.css b/charting_library/bundles/4634.2a4010396de3915172a8.css new file mode 100644 index 00000000..05358d68 --- /dev/null +++ b/charting_library/bundles/4634.2a4010396de3915172a8.css @@ -0,0 +1 @@ +.label-lgIqilXY{color:#787b86;font-size:14px;line-height:21px}.input-lgIqilXY{word-break:normal} \ No newline at end of file diff --git a/charting_library/bundles/4634.2a4010396de3915172a8.rtl.css b/charting_library/bundles/4634.2a4010396de3915172a8.rtl.css new file mode 100644 index 00000000..05358d68 --- /dev/null +++ b/charting_library/bundles/4634.2a4010396de3915172a8.rtl.css @@ -0,0 +1 @@ +.label-lgIqilXY{color:#787b86;font-size:14px;line-height:21px}.input-lgIqilXY{word-break:normal} \ No newline at end of file diff --git a/charting_library/bundles/46eec22a6748063a64a9d7fdce4efc95.svg b/charting_library/bundles/46eec22a6748063a64a9d7fdce4efc95.svg new file mode 100644 index 00000000..81fcf5e3 --- /dev/null +++ b/charting_library/bundles/46eec22a6748063a64a9d7fdce4efc95.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4752624c631776e721a978174febf46b.svg b/charting_library/bundles/4752624c631776e721a978174febf46b.svg new file mode 100644 index 00000000..7f6f714f --- /dev/null +++ b/charting_library/bundles/4752624c631776e721a978174febf46b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4791e97b8673d0b0ec66d93ef3f02bb0.svg b/charting_library/bundles/4791e97b8673d0b0ec66d93ef3f02bb0.svg new file mode 100644 index 00000000..e79c27bb --- /dev/null +++ b/charting_library/bundles/4791e97b8673d0b0ec66d93ef3f02bb0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/47b1e1cc6cc78ac578822f22213f5eb3.svg b/charting_library/bundles/47b1e1cc6cc78ac578822f22213f5eb3.svg new file mode 100644 index 00000000..f34f8680 --- /dev/null +++ b/charting_library/bundles/47b1e1cc6cc78ac578822f22213f5eb3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/47f09a2aa1752e19fb33290fcc46c47a.svg b/charting_library/bundles/47f09a2aa1752e19fb33290fcc46c47a.svg new file mode 100644 index 00000000..e7ae3a66 --- /dev/null +++ b/charting_library/bundles/47f09a2aa1752e19fb33290fcc46c47a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4891.f1952d185e606d135bad.js b/charting_library/bundles/4891.f1952d185e606d135bad.js deleted file mode 100644 index 5299109d..00000000 --- a/charting_library/bundles/4891.f1952d185e606d135bad.js +++ /dev/null @@ -1,27 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4891],{37593:e=>{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM",dot:"dot-5Xd5conM"}},96670:e=>{e.exports={checkbox:"checkbox-GxG6nBa7",reverse:"reverse-GxG6nBa7",label:"label-GxG6nBa7",baseline:"baseline-GxG6nBa7"}},12857:e=>{e.exports={"textarea-container":"textarea-container-I5L4qQPj","change-highlight":"change-highlight-I5L4qQPj",focused:"focused-I5L4qQPj","resize-vertical":"resize-vertical-I5L4qQPj","resize-horizontal":"resize-horizontal-I5L4qQPj","resize-both":"resize-both-I5L4qQPj",textarea:"textarea-I5L4qQPj"}},15994:e=>{e.exports={radio:"radio-vpA3AYsc",input:"input-vpA3AYsc",box:"box-vpA3AYsc",reverse:"reverse-vpA3AYsc",label:"label-vpA3AYsc",wrapper:"wrapper-vpA3AYsc",noOutline:"noOutline-vpA3AYsc"}},74588:e=>{e.exports={wrap:"wrap-sYKPueSl",thicknessItem:"thicknessItem-sYKPueSl",checked:"checked-sYKPueSl",radio:"radio-sYKPueSl",bar:"bar-sYKPueSl"}},9198:e=>{e.exports={innerLabel:"innerLabel-MS9pjVpT"}},44712:e=>{e.exports={controlWrapper:"controlWrapper-y2rn9wiU",hidden:"hidden-y2rn9wiU",control:"control-y2rn9wiU",controlIncrease:"controlIncrease-y2rn9wiU",controlDecrease:"controlDecrease-y2rn9wiU",controlIcon:"controlIcon-y2rn9wiU",title:"title-y2rn9wiU"}},16300:e=>{e.exports={titleWrap:"titleWrap-ZYQL0yaM",groupFooter:"groupFooter-ZYQL0yaM"}},23128:e=>{e.exports={inlineRow:"inlineRow-CqPNtHDN"}},70199:e=>{e.exports={icon:"icon-OTC0ma9h"}},6041:e=>{e.exports={input:"input-pBN3Orju",symbol:"symbol-pBN3Orju",checkbox:"checkbox-pBN3Orju",label:"label-pBN3Orju",dropdownMenu:"dropdownMenu-pBN3Orju",sessionStart:"sessionStart-pBN3Orju",sessionEnd:"sessionEnd-pBN3Orju",sessionInputContainer:"sessionInputContainer-pBN3Orju",sessionDash:"sessionDash-pBN3Orju",inputGroup:"inputGroup-pBN3Orju",textarea:"textarea-pBN3Orju",inlineGroup:"inlineGroup-pBN3Orju",hasTooltip:"hasTooltip-pBN3Orju"}},46828:e=>{e.exports={content:"content-ByXdMGQj",cell:"cell-ByXdMGQj",inner:"inner-ByXdMGQj",first:"first-ByXdMGQj",inlineCell:"inlineCell-ByXdMGQj",fill:"fill-ByXdMGQj",top:"top-ByXdMGQj",topCenter:"topCenter-ByXdMGQj",offset:"offset-ByXdMGQj",inlineRow:"inlineRow-ByXdMGQj",grouped:"grouped-ByXdMGQj",separator:"separator-ByXdMGQj",groupSeparator:"groupSeparator-ByXdMGQj",big:"big-ByXdMGQj",adaptive:"adaptive-ByXdMGQj",checkableTitle:"checkableTitle-ByXdMGQj"}},300:e=>{e.exports={wrap:"wrap-l3G0HrB9",labelWrap:"labelWrap-l3G0HrB9",label:"label-l3G0HrB9",hasTooltip:"hasTooltip-l3G0HrB9"}},55914:e=>{e.exports={wrap:"wrap-GsOqvniR",icon:"icon-GsOqvniR",text:"text-GsOqvniR",disabled:"disabled-GsOqvniR"}},14348:e=>{e.exports={colorPickerWrap:"colorPickerWrap-pz6IRAmC",focused:"focused-pz6IRAmC",readonly:"readonly-pz6IRAmC",disabled:"disabled-pz6IRAmC","size-small":"size-small-pz6IRAmC","size-medium":"size-medium-pz6IRAmC","size-large":"size-large-pz6IRAmC","font-size-small":"font-size-small-pz6IRAmC", -"font-size-medium":"font-size-medium-pz6IRAmC","font-size-large":"font-size-large-pz6IRAmC","border-none":"border-none-pz6IRAmC",shadow:"shadow-pz6IRAmC","border-thin":"border-thin-pz6IRAmC","border-thick":"border-thick-pz6IRAmC","intent-default":"intent-default-pz6IRAmC","intent-success":"intent-success-pz6IRAmC","intent-warning":"intent-warning-pz6IRAmC","intent-danger":"intent-danger-pz6IRAmC","intent-primary":"intent-primary-pz6IRAmC","corner-top-left":"corner-top-left-pz6IRAmC","corner-top-right":"corner-top-right-pz6IRAmC","corner-bottom-right":"corner-bottom-right-pz6IRAmC","corner-bottom-left":"corner-bottom-left-pz6IRAmC",colorPicker:"colorPicker-pz6IRAmC",swatch:"swatch-pz6IRAmC",placeholderContainer:"placeholderContainer-pz6IRAmC",placeholder:"placeholder-pz6IRAmC",mixedColor:"mixedColor-pz6IRAmC",white:"white-pz6IRAmC",opacitySwatch:"opacitySwatch-pz6IRAmC",colorLine:"colorLine-pz6IRAmC",multiWidth:"multiWidth-pz6IRAmC",line:"line-pz6IRAmC",thicknessContainer:"thicknessContainer-pz6IRAmC",thicknessTitle:"thicknessTitle-pz6IRAmC"}},83421:e=>{e.exports={thicknessContainer:"thicknessContainer-ofeynovw",thicknessTitle:"thicknessTitle-ofeynovw"}},83998:e=>{e.exports={hasTooltip:"hasTooltip-0t5K1wco",uppercase:"uppercase-0t5K1wco"}},26527:e=>{e.exports={wrap:"wrap-dHwHcgvB"}},27345:e=>{e.exports={checkbox:"checkbox-24x04noU",title:"title-24x04noU"}},51842:e=>{e.exports={titleWrap:"titleWrap-O5QDBhZc",title:"title-O5QDBhZc"}},10667:e=>{e.exports={container:"container-WiTVOllB",sectionTitle:"sectionTitle-WiTVOllB",separator:"separator-WiTVOllB",customButton:"customButton-WiTVOllB"}},99565:e=>{e.exports={container:"container-UpS01XRM",form:"form-UpS01XRM",swatch:"swatch-UpS01XRM",inputWrap:"inputWrap-UpS01XRM",inputHash:"inputHash-UpS01XRM",input:"input-UpS01XRM",buttonWrap:"buttonWrap-UpS01XRM",hueSaturationWrap:"hueSaturationWrap-UpS01XRM",saturation:"saturation-UpS01XRM",hue:"hue-UpS01XRM"}},24429:e=>{e.exports={hue:"hue-oQv2KoOx",pointer:"pointer-oQv2KoOx",pointerContainer:"pointerContainer-oQv2KoOx"}},15381:e=>{e.exports={opacity:"opacity-YL5Gjk00",opacitySlider:"opacitySlider-YL5Gjk00",opacitySliderGradient:"opacitySliderGradient-YL5Gjk00",pointer:"pointer-YL5Gjk00",dragged:"dragged-YL5Gjk00",opacityPointerWrap:"opacityPointerWrap-YL5Gjk00",opacityInputWrap:"opacityInputWrap-YL5Gjk00",opacityInput:"opacityInput-YL5Gjk00",opacityInputPercent:"opacityInputPercent-YL5Gjk00"}},88440:e=>{e.exports={saturation:"saturation-lJHGRPyu",pointer:"pointer-lJHGRPyu"}},24590:e=>{e.exports={swatches:"swatches-qgksmXjR",swatch:"swatch-qgksmXjR",hover:"hover-qgksmXjR",empty:"empty-qgksmXjR",white:"white-qgksmXjR",selected:"selected-qgksmXjR",contextItem:"contextItem-qgksmXjR"}},66230:e=>{e.exports={button:"button-h8C3IU2n","button-children":"button-children-h8C3IU2n",hiddenArrow:"hiddenArrow-h8C3IU2n",invisibleFocusHandler:"invisibleFocusHandler-h8C3IU2n"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},79756:e=>{e.exports={ -placeholder:"placeholder-fKHYe1Lk"}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var o=n(59496),s=n(97754),r=n(9745),a=n(49154),i=n(37593),l=n.n(i);function c(e){const t=s(l().box,l()["intent-"+e.intent],{[l().check]:!Boolean(e.indeterminate),[l().dot]:Boolean(e.indeterminate),[l().noOutline]:-1===e.tabIndex}),n=s(l().wrapper,e.className);return o.createElement("span",{className:n,title:e.title},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:l().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),o.createElement("span",{className:t},o.createElement(r.Icon,{icon:a,className:l().icon})))}},15294:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>c});var o=n(59496),s=n(97754),r=n(54349),a=n(84413),i=n(96670),l=n.n(i);class c extends o.PureComponent{render(){const{inputClassName:e,labelClassName:t,...n}=this.props,r=s(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),i=s(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=o.createElement("span",{className:i,title:this.props.title},this.props.label)),o.createElement("label",{className:r},o.createElement(a.CheckboxInput,{...n,className:e}),c)}}c.defaultProps={value:"on"};(0,r.makeSwitchGroupItem)(c)},2568:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>f});var o,s=n(59496),r=n(97754),a=n(66092),i=n(29202),l=n(48027),c=n(45812),u=n(47201),p=n(48907),d=n(67029),h=n(78274),m=n(12857),g=n.n(m);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const b=s.forwardRef((e,t)=>{const{id:n,title:o,tabIndex:a,containerTabIndex:i,role:l,inputClassName:c,autoComplete:u,autoFocus:p,cols:m,disabled:b,isFocused:v,form:C,maxLength:f,minLength:y,name:E,placeholder:S,readonly:x,required:_,rows:w,value:N,defaultValue:k,wrap:I,containerReference:T,onChange:P,onSelect:R,onFocus:B,onContainerFocus:M,onBlur:O,"aria-describedby":A,...D}=e,z={id:n,title:o,tabIndex:a,role:l,autoComplete:u,autoFocus:p,cols:m,disabled:b,form:C,maxLength:f,minLength:y,name:E,placeholder:S,readOnly:x,required:_,rows:w,value:N,defaultValue:k,wrap:I,onChange:P,onSelect:R,onFocus:B,onBlur:O,"aria-describedby":A};return s.createElement(d.ControlSkeleton,{...D,tabIndex:i,disabled:b,readonly:x,isFocused:v,ref:T,onFocus:M,middleSlot:s.createElement(h.MiddleSlot,null,s.createElement("textarea",{...z,className:r(g().textarea,c),ref:t}))})});b.displayName="TextareaView";const v=(e,t,n)=>t?void 0:e?-1:n,C=(e,t,n)=>t?void 0:e?n:-1,f=s.forwardRef((e,t)=>{e=(0,l.useControl)(e);const{className:n,disabled:d,autoSelectOnFocus:h,tabIndex:m=0,borderStyle:f,highlight:y,resize:E,containerReference:S=null,onFocus:x,onBlur:_,...w}=e,N=(0,s.useRef)(null),k=(0,s.useRef)(null),{isMouseDown:I,handleMouseDown:T,handleMouseUp:P}=(0,c.useIsMouseDown)(),[R,B]=(0,i.useFocus)(),M=(0, -u.createSafeMulticastEventHandler)(B.onFocus,(function(e){h&&!I.current&&(0,p.selectAllContent)(e.currentTarget)}),x),O=(0,u.createSafeMulticastEventHandler)(B.onBlur,_),A=void 0!==E&&E!==o.None,D=null!=f?f:A?y?"thick":"thin":void 0,z=null!=y?y:!A&&void 0;return s.createElement(b,{...w,className:r(g()["textarea-container"],A&&g()["change-highlight"],E&&E!==o.None&&g()["resize-"+E],R&&g().focused,n),disabled:d,isFocused:R,containerTabIndex:v(R,d,m),tabIndex:C(R,d,m),borderStyle:D,highlight:z,onContainerFocus:function(e){k.current===e.target&&null!==N.current&&N.current.focus()},onFocus:M,onBlur:O,onMouseDown:T,onMouseUp:P,ref:function(e){N.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:(0,a.useMergedRefs)([S,k])})});f.displayName="Textarea"},54349:(e,t,n)=>{"use strict";n.d(t,{SwitchGroup:()=>r,makeSwitchGroupItem:()=>a});var o=n(59496),s=n(19036);class r extends o.PureComponent{constructor(){super(...arguments),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)}}getChildContext(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return this.props.children}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach(t=>t(e))}_getUpdates(e,t){return[...t,...e].filter(n=>t.includes(n)?!e.includes(n):e.includes(n))}}function a(e){var t;return(t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.switchGroupContext.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.switchGroupContext.subscribe(this._onUpdate)}render(){return o.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.switchGroupContext.unsubscribe(this._onUpdate)}_getName(){return this.context.switchGroupContext.getName()}_isChecked(){return this.context.switchGroupContext.getValues().includes(this.props.value)}}).contextTypes={switchGroupContext:s.any.isRequired},t}r.childContextTypes={switchGroupContext:s.any.isRequired}},22064:(e,t,n)=>{"use strict";n.d(t,{createDomId:()=>l,joinDomIds:()=>c});const o=/\s/g;function s(e){return"string"==typeof e}function r(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function a(e){return e.trim().length>0}function i(e){return e.replace(o,"-")}function l(...e){const t=e.map(r).filter(s).filter(a).map(i);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(r).filter(s).filter(a).join(" ")}},92399:(e,t,n)=>{"use strict";n.d(t,{NumberInputView:()=>N}) -;var o=n(59496),s=n(32563),r=n(97754),a=n(67029),i=n(78274),l=n(86623),c=n(84275),u=n(1405),p=n(9198);const d={large:a.InputClasses.FontSizeLarge,medium:a.InputClasses.FontSizeMedium},h={attachment:u.anchors.top.attachment,targetAttachment:u.anchors.top.targetAttachment,attachmentOffsetY:-4};function m(e){const{className:t,inputClassName:n,stretch:s=!0,errorMessage:a,fontSizeStyle:u="large",endSlot:m,button:g,error:b,warning:v,innerLabel:C,inputReference:f,children:y,...E}=e,S=b&&void 0!==a?[a]:void 0,x=v&&void 0!==a?[a]:void 0,_=r(p.inputContainer,d[u],t),w=C?o.createElement(i.StartSlot,{className:p.innerLabel,interactive:!1},C):void 0,N=m||g||y?o.createElement(i.EndSlot,null,m,g,y):void 0;return o.createElement(l.FormInput,{...E,className:_,inputClassName:n,errors:S,warnings:x,hasErrors:b,hasWarnings:v,messagesPosition:c.MessagesPosition.Attached,customErrorsAttachment:h,messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0,iconHidden:!0,stretch:s,reference:f,startSlot:w,endSlot:N})}var g=n(28353),b=n(9745),v=n(81268),C=n(44712);function f(e){const t=r(C.control,C.controlIncrease),n=r(C.control,C.controlDecrease);return o.createElement(o.Fragment,null,void 0!==e.title&&o.createElement("div",{className:C.title},e.title),o.createElement("div",{className:C.controlWrapper},(e.defaultButtonsVisible||e.title)&&o.createElement(o.Fragment,null,o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,g.t)("Increase"),className:t,onClick:e.increaseValue},o.createElement(b.Icon,{icon:v,className:C.controlIcon})),o.createElement("button",{type:"button",tabIndex:-1,"aria-label":(0,g.t)("Decrease"),className:n,onClick:e.decreaseValue},o.createElement(b.Icon,{icon:v,className:C.controlIcon})))))}var y=n(70412),E=n(29202),S=n(47201),x=n(68335);const _=[38],w=[40];function N(e){const[t,n]=(0,y.useHover)(),[r,a]=(0,E.useFocus)(),i=(0,S.createSafeMulticastEventHandler)(a.onFocus,e.onFocus),l=(0,S.createSafeMulticastEventHandler)(a.onBlur,e.onBlur),c=(0,o.useCallback)(t=>{!e.disabled&&r&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))},[r,e.disabled,e.onValueByStepChange]);return o.createElement(m,{...n,id:e.id,name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,button:function(){const{button:n,forceShowControls:a,disabled:i,title:l}=e,c=!i&&!s.mobiletouch&&(a||r||t);return i?void 0:o.createElement(o.Fragment,null,null!=n?n:o.createElement(f,{increaseValue:u,decreaseValue:p,defaultButtonsVisible:c,title:l}))}(),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,endSlot:e.endSlot,containerReference:e.containerReference,inputReference:e.inputReference,inputMode:e.inputMode,type:e.type,error:e.error,errorMessage:e.errorMessage,onClick:e.onClick,onFocus:i,onBlur:l,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==(0,x.modifiersFromEvent)(t.nativeEvent))return;let n=_,o=w;e.controlDecKeyCodes&&(o=o.concat(e.controlDecKeyCodes)) -;e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(o.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(o.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t)},onWheelNoPassive:c,stretch:e.stretch,intent:e.intent,highlight:e.highlight,highlightRemoveRoundBorder:e.highlightRemoveRoundBorder,autoSelectOnFocus:e.autoSelectOnFocus,"data-property-id":e["data-name"]});function u(){e.disabled||e.onValueByStepChange(1)}function p(){e.disabled||e.onValueByStepChange(-1)}}},35726:(e,t,n)=>{"use strict";n.d(t,{splitThousands:()=>s});var o=n(93751);function s(e,t=" "){let n=e+"";-1!==n.indexOf("e")&&(n=function(e){return(0,o.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));const s=n.split(".");return s[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(s[1]?"."+s[1]:"")}},46446:(e,t,n)=>{"use strict";n.d(t,{bind:()=>a,setter:()=>i});var o=n(59496),s=n(617),r=n(27365);function a(e){var t;return(t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=(e,t,n)=>{const{setValue:o}=this.context,{onChange:s}=this.props;i(o,s)(e,t,n)}}render(){const{input:t}=this.props,{values:n,model:s}=this.context;return o.createElement(e,{...this.props,value:n[t.id],tzName:(0,r.getTimezoneName)(s),onChange:this._onChange})}}).contextType=s.PropertyContext,t}function i(e,t){return(n,o,s)=>{e(o,n,s),t&&t(n,o,s)}}},617:(e,t,n)=>{"use strict";n.d(t,{PropertyContext:()=>c,PropertyContainer:()=>u});var o=n(59496),s=n(88537),r=n(28353),a=n(24980);const i=(0,n(98125).getLogger)("Platform.GUI.StudyInputPropertyContainer"),l=new a.TranslatedString("change {propertyName} property",(0,r.t)("change {propertyName} property")),c=o.createContext(null);class u extends o.PureComponent{constructor(e){super(e),this._setValue=(e,t,n)=>{const{property:o,model:c}=this.props,u=(0,s.ensureDefined)(o.child(e));i.logNormal(`Changing property "${e}" value from "${o.value()}" to "${t}"`);const p=new a.TranslatedString(n,function(e){return(0,r.t)(e,{context:"input"})}(n));c.setProperty(u,t,l.format({propertyName:p}))};const{property:t}=e,n={};t.childNames().forEach(e=>{const o=(0,s.ensureDefined)(t.child(e));n.hasOwnProperty(e)||(n[e]=o.value())}),this.state=n}componentDidMount(){const{property:e,onStudyInputChange:t}=this.props;e.childNames().forEach(n=>{(0,s.ensureDefined)(e.child(n)).subscribe(this,e=>{const o=e.value();i.logNormal(`Property "${n}" updated to value "${o}"`),this.setState({[n]:o}),null==t||t(o,n)})})}componentWillUnmount(){const{property:e}=this.props;e.childNames().forEach(t=>{(0,s.ensureDefined)(e.child(t)).unsubscribeAll(this)})}render(){const{study:e,model:t,children:n}=this.props,s={study:e,model:t,values:this.state,setValue:this._setValue};return o.createElement(c.Provider,{value:s},n)}}},44488:(e,t,n)=>{"use strict";n.d(t,{ModelContext:()=>s,bindModel:()=>r});var o=n(59496);const s=o.createContext(null);function r(e,t){return o.createElement(s.Consumer,null,n=>n?o.createElement(e,{...Object.assign({model:n},t)}):null)}},87536:(e,t,n)=>{"use strict";n.d(t,{ -StylePropertyContext:()=>r,StylePropertyContainer:()=>a,bindPropertyContext:()=>i});var o=n(59496),s=n(44488);const r=o.createContext(null);class a extends o.PureComponent{constructor(){super(...arguments),this._setValue=(e,t,n)=>{const{model:o}=this.props;o.setProperty(e,t,n)}}componentDidMount(){const{property:e}=this.props;e.subscribe(this,()=>this.forceUpdate())}componentWillUnmount(){const{property:e}=this.props;e.unsubscribeAll(this)}render(){const e={setValue:this._setValue};return o.createElement(r.Provider,{value:e},this.props.children)}}function i(e,t){return(0,s.bindModel)(({model:n})=>o.createElement(a,{model:n,property:t.property},o.createElement(e,{...t})),t)}},65376:(e,t,n)=>{"use strict";n.d(t,{InputTooltip:()=>h});var o=n(59496),s=n(97754),r=n.n(s),a=n(9745),i=n(38780),l=n(32563),c=n(70199),u=n(60495);function p(){document.removeEventListener("scroll",p),document.removeEventListener("touchstart",p),(0,i.hide)()}function d(e){l.mobiletouch&&((0,i.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",p),document.addEventListener("touchstart",p))}function h(e){const{className:t,title:n}=e;return o.createElement(a.Icon,{icon:u,className:r()(t,"apply-common-tooltip",c.icon),title:n,onClick:d})}},95087:(e,t,n)=>{"use strict";n.d(t,{isGroup:()=>s,isInputInlines:()=>r,getInputGroups:()=>a});var o=n(88537);function s(e){return e.hasOwnProperty("groupType")}function r(e){return s(e)&&"inline"===e.groupType}function a(e){const t=[],n=new Map,s=new Map;return s.set(void 0,new Map),e.forEach(e=>{const{group:r,inline:a}=e;if(void 0!==r||void 0!==a)if(void 0!==r)if(void 0!==a)if(n.has(r)){const t=(0,o.ensureDefined)(n.get(r));let l;s.has(t)?l=(0,o.ensureDefined)(s.get(t)):(l=new Map,s.set(t,l)),i(e,"inline",a,l,t.children)}else{const o={id:a,groupType:"inline",children:[e]},i={id:r,groupType:"group",children:[o]},l=new Map;l.set(a,o),s.set(i,l),n.set(r,i),t.push(i)}else i(e,"group",r,n,t);else{const n=(0,o.ensureDefined)(s.get(void 0));i(e,"inline",(0,o.ensureDefined)(a),n,t)}else t.push(e)}),t}function i(e,t,n,s,r){if(s.has(n))(0,o.ensureDefined)(s.get(n)).children.push(e);else{const o={id:n,groupType:t,children:[e]};s.set(n,o),r.push(o)}}},27547:(e,t,n)=>{"use strict";n.d(t,{InputRow:()=>X});var o=n(28353),s=n(59496),r=n(88537),a=n(33266),i=n(26007),l=n(48948),c=n(48100),u=n(97754),p=n.n(u),d=n(31261),h=n(46446),m=n(93379),g=n(6041);class b extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:r,hasTooltip:a}=this.props;return s.createElement(d.InputControl,{className:p()(g.input,a&&g.hasTooltip),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:r,disabled:n})}}const v=(0,m.debounced)(b),C=(0,h.bind)(v);var f=n(76110),y=n(35868);function E(e){const{className:t}=e,n=(0,s.useContext)(y.PropertyTable.InlineRowContext);return s.createElement("div",{className:u(g.inputGroup,n&&g.inlineGroup,t)},e.children) -}var S=n(36565);function x(e=""){const[,t="",n="",o="",s=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return[`${t}:${n}`,`${o}:${s}`]}class _ extends s.PureComponent{constructor(e){super(e),this._onStartPick=e=>{this.setState({startTime:e},this._onChange)},this._onEndPick=e=>{this.setState({endTime:e},this._onChange)},this._onChange=()=>{const{input:{id:e,name:t},onChange:n}=this.props,{startTime:o,endTime:s}=this.state;n(o.replace(":","")+"-"+s.replace(":",""),e,t)};const t=e.value||e.input.defval,[n,o]=x(t);this.state={prevValue:t,startTime:n,endTime:o}}render(){const{startTime:e,endTime:t}=this.state,{hasTooltip:n,disabled:o}=this.props;return s.createElement(E,{className:p()(n&&g.hasTooltip)},s.createElement("div",{className:g.sessionStart},s.createElement(S.TimeInput,{className:p()(g.input,g.sessionInputContainer),name:"start",value:(0,r.ensureDefined)(e),onChange:this._onStartPick,disabled:o}),s.createElement("span",{className:g.sessionDash}," — ")),s.createElement("div",{className:g.sessionEnd},s.createElement(S.TimeInput,{className:p()(g.input,g.sessionInputContainer),name:"end",value:(0,r.ensureDefined)(t),onChange:this._onEndPick,disabled:o})))}static getDerivedStateFromProps(e,t){if(e.value===t.prevValue)return t;const[n,o]=x(e.value);return{prevValue:e.value,startTime:n,endTime:o}}}const w=(0,h.bind)(_);var N=n(67337),k=n(67072),I=n.n(k),T=n(617),P=n(45685);class R extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:{id:e,defval:t,options:n,optionsTitles:r},value:a,disabled:i,hasTooltip:l}=this.props,c=n.map(e=>{const t=r&&r[e]?r[e]:e;return{value:e,content:(0,o.t)(t,{context:"input"})}}),u=void 0!==a&&n.includes(a)?a:t;return s.createElement(P.Select,{id:e,className:p()(g.input,l&&g.hasTooltip),menuClassName:g.dropdownMenu,value:u,items:c,onChange:this._onChange,disabled:i})}}const B=(0,h.bind)(R);var M=n(72280);const O={open:(0,o.t)("open"),high:(0,o.t)("high"),low:(0,o.t)("low"),close:(0,o.t)("close"),hl2:(0,o.t)("hl2"),hlc3:(0,o.t)("hlc3"),ohlc4:(0,o.t)("ohlc4"),hlcc4:(0,o.t)("hlcc4")};class A extends s.PureComponent{render(){const{input:e}=this.props,{study:t,model:n}=this.context;let o={...O};delete o.hlcc4;const a=(0,M.createAdapter)(t);if(t&&this._isStudy(t)&&t.isChildStudy()){const t=a.parentSource(),n=t.title(),s=I().getChildSourceInputTitles(e,t.metaInfo(),n);o={...o,...s}}if(N.enabled("study_on_study")&&t&&this._isStudy(t)&&(t.isChildStudy()||I().canBeChild(t.metaInfo()))){const e=[t,...a.getAllChildren()];n.model().allStudies().filter(t=>t.canHaveChildren()&&!e.includes(t)).forEach(e=>{const t=e.title(!0,void 0,!0),n=e.sourceId()||"#"+e.id(),s=e.metaInfo(),a=s.styles,i=s.plots||[];if(1===i.length)o[n+"$0"]=t;else if(i.length>1){const e=i.reduce((e,o,s)=>{if(!I().canPlotBeSourceOfChildStudy(o.type))return e;let i;try{i=(0,r.ensureDefined)((0,r.ensureDefined)(a)[o.id]).title}catch(e){i=o.id}return{...e,[`${n}$${s}`]:`${t}: ${i}`}},{});o={...o,...e}}})}const i={...e,type:"text", -options:Object.keys(o),optionsTitles:o};return s.createElement(B,{...this.props,input:i})}_isStudy(e){return!e.hasOwnProperty("isInputsStudy")}}A.contextType=T.PropertyContext;var D=n(29823),z=n(9315);const V=void 0,F=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"];class L extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e,t,n)}}render(){const{input:e,value:t,disabled:n,hasTooltip:r}=this.props,a=D.Interval.parse(void 0===t?e.defval:t),i=a.isValid()?a.value():t,l=V?V.get().filter(e=>!D.Interval.parse(e).isRange()):[],c=(0,z.mergeResolutions)(F,l);return c.unshift(""),s.createElement(P.Select,{id:e.id,className:p()(g.input,g.resolution,r&&g.hasTooltip),menuClassName:p()(g.dropdownMenu,g.resolution),items:(u=c,u.map(e=>({value:e,content:""===e?(0,o.t)("Chart"):(0,z.getTranslatedResolutionModel)(e).hint}))),value:i,onChange:this._onChange,disabled:n});var u}}const G=(0,h.bind)(L);var W=n(79946),j=n(87536);class H extends s.PureComponent{render(){return s.createElement(T.PropertyContext.Consumer,null,e=>e?this._getColorInputWithContext(e):null)}_getColorInputWithContext(e){var t;const{input:{id:n},disabled:o,hasTooltip:r}=this.props,{model:a,study:i}=e;if("properties"in i||"tempProperties"in i){const e="properties"in i?i.properties().inputs[n]:null===(t=i.tempProperties)||void 0===t?void 0:t.inputs.child(n);return s.createElement(j.StylePropertyContainer,{model:a,property:e},s.createElement(W.ColorWithThicknessSelect,{className:p()(r&&g.hasTooltip),color:e,disabled:o}))}return null}}class K extends s.PureComponent{render(){const{input:e,disabled:t,onChange:n,tzName:o,hasTooltip:r}=this.props;if((0,a.isStudyInputOptionsInfo)(e))return s.createElement(B,{input:e,disabled:t,onChange:n,hasTooltip:r});switch(e.type){case"integer":return s.createElement(i.IntegerInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"float":case"price":return s.createElement(l.FloatInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"bool":return s.createElement(c.BoolInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"text":return s.createElement(C,{input:e,disabled:t,onChange:n,hasTooltip:r});case"symbol":return s.createElement(f.SymbolInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"session":return s.createElement(w,{input:e,disabled:t,onChange:n,hasTooltip:r});case"source":return s.createElement(A,{input:e,disabled:t,onChange:n,hasTooltip:r});case"resolution":return s.createElement(G,{input:e,disabled:t,onChange:n,hasTooltip:r});case"time":return null;case"color":return s.createElement(H,{input:e,disabled:t,onChange:n,hasTooltip:r});default:return null}}}var U=n(65376);class X extends s.PureComponent{render(){const{label:e,children:t,input:n,disabled:a,onChange:i,labelAlign:l,grouped:c,tooltip:u,offset:p}=this.props;return s.createElement(y.PropertyTable.Row,null,s.createElement(y.PropertyTable.Cell,{placement:"first",verticalAlign:l,grouped:c,offset:p},void 0!==e?e:(0,o.t)((0,r.ensureDefined)(n).name,{context:"input" -})),s.createElement(y.PropertyTable.Cell,{placement:"last",grouped:c},t||s.createElement(K,{input:(0,r.ensureDefined)(n),onChange:i,disabled:a,hasTooltip:Boolean(u)}),u&&s.createElement(U.InputTooltip,{title:u})))}}},27423:(e,t,n)=>{"use strict";n.d(t,{InputsTabContent:()=>F});var o,s=n(59496),r=n(28353),a=n(617),i=n(35868),l=n(54349),c=n(97754),u=n.n(c),p=n(15994),d=n.n(p);const h=(0,l.makeSwitchGroupItem)(((o=class extends s.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const e=c(this.props.className,d().radio,{[d().reverse]:Boolean(this.props.labelPositionReverse)}),t=c(d().label,{[d().disabled]:this.props.disabled}),n=c(d().box,{[d().noOutline]:-1===this.props.tabIndex});let o=null;return this.props.label&&(o=s.createElement("span",{className:t},this.props.label)),s.createElement("label",{className:e},s.createElement("span",{className:d().wrapper,title:this.props.title},s.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus,role:this.props.role,className:d().input,type:"radio",name:this.props.name,checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,onChange:this._onChange,ref:this.props.reference}),s.createElement("span",{className:n})),o)}}).defaultProps={value:"on"},o));var m=n(88537),g=n(76110),b=n(46446),v=n(65376),C=n(6041);function f(e){const{children:t,input:n,disabled:o,onChange:c,grouped:u,tooltip:p}=e,d=(0,s.useContext)(a.PropertyContext),{values:f,setValue:y}=(0,m.ensureNotNull)(d),E=f[n.id],[S,x]=(0,s.useState)(E?"another-symbol":"main-symbol"),[_,w]=(0,s.useState)(E);return(0,s.useEffect)(()=>{E&&w(E)},[E]),s.createElement(l.SwitchGroup,{name:"symbol-source-"+n.id,values:[S],onChange:function(e){x(e),"main-symbol"===e?(0,b.setter)(y)("",n.id,n.name):"another-symbol"===e&&_&&(0,b.setter)(y,c)(_,n.id,n.name)}},s.createElement(i.PropertyTable.Row,null,s.createElement(i.PropertyTable.Cell,{colSpan:2,placement:"first",grouped:u},s.createElement(h,{value:"main-symbol",className:C.checkbox,disabled:o,label:s.createElement("span",{className:C.label},(0,r.t)("Main chart symbol",{context:"input"}))}))),s.createElement(i.PropertyTable.Row,null,s.createElement(i.PropertyTable.Cell,{placement:"first",grouped:u},s.createElement(h,{value:"another-symbol",className:C.checkbox,disabled:o,label:s.createElement("span",{className:C.label},(0,r.t)("Another symbol",{context:"input"}))})),s.createElement(i.PropertyTable.Cell,{placement:"last",grouped:u},t||s.createElement(g.SymbolInput,{input:(0,m.ensureDefined)(n),onChange:c,disabled:o||"main-symbol"===S,hasTooltip:Boolean(p)}),p&&s.createElement(v.InputTooltip,{title:p}))))}var y=n(48100);class E extends s.PureComponent{render(){const{label:e,input:t,tooltip:n}=this.props;return s.createElement(i.PropertyTable.Row,null,s.createElement(i.PropertyTable.Cell,{placement:"first",colSpan:2},s.createElement(y.BoolInput,{label:e,input:t,hasTooltip:Boolean(n)}),n&&s.createElement(v.InputTooltip,{title:n})))}} -var S=n(27547),x=n(2568),_=n(67029),w=n(93379);class N extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:r}=this.props;return s.createElement(x.Textarea,{className:u()(C.input,C.textarea,_.InputClasses.FontSizeMedium),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:r,disabled:n})}}const k=(0,w.debounced)(N),I=(0,b.bind)(k);var T=n(300);function P(e){const{input:t,label:n,tooltip:o}=e;return s.createElement(i.PropertyTable.Row,null,s.createElement(i.PropertyTable.Cell,{placement:"first",colSpan:2,className:T.wrap},s.createElement("div",{className:T.labelWrap},s.createElement("span",{className:u()(T.label,o&&T.hasTooltip)},n),o&&s.createElement(v.InputTooltip,{title:o})),s.createElement(I,{input:t})))}function R(e){const{input:t,tooltip:n}=e;return"symbol"===t.type&&t.optional?s.createElement(f,{input:t,tooltip:n}):"bool"===t.type?s.createElement(E,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):"text_area"===t.type?s.createElement(P,{label:(0,r.t)(t.name,{context:"input"}),input:t,tooltip:n}):s.createElement(S.InputRow,{labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:n})}var B=n(86067),M=n(23128);function O(e){const{content:t}=e;let n;return s.createElement(i.PropertyTable.InlineRowContext.Provider,{value:!0},s.createElement("div",{className:M.inlineRow},t.children.map((e,o)=>(void 0!==e.tooltip&&(n=e.tooltip),s.createElement(R,{key:e.id,input:e,tooltip:o===t.children.length-1?n:void 0})))))}var A=n(95087),D=n(16300);function z(e){const{content:t}=e;return(0,A.isGroup)(t)?(0,A.isInputInlines)(t)?s.createElement(O,{content:t}):s.createElement(s.Fragment,null,s.createElement("div",{className:D.titleWrap},s.createElement(B.GroupTitleSection,{title:(0,r.t)(t.id,{context:"input"}),name:t.id})),t.children.map(e=>(0,A.isGroup)(e)?s.createElement(O,{key:e.id,content:e}):s.createElement(R,{key:e.id,input:e,tooltip:e.tooltip})),s.createElement("div",{className:D.groupFooter})):s.createElement(R,{input:t,tooltip:t.tooltip})}const V={offset:(0,r.t)("Offset")};class F extends s.PureComponent{render(){const{reference:e,inputs:t,property:n,study:o,model:r,onStudyInputChange:a,className:l}=this.props,{offset:c,offsets:u}=n;return s.createElement(i.PropertyTable,{reference:e,className:l},s.createElement(L,{study:o,model:r,property:n.inputs,inputs:t,onStudyInputChange:a}),c&&this._createOffsetSection(c),u&&u.childNames().map(e=>{const t=u.childs()[e];return this._createOffsetSection(t)}))}_createOffsetSection(e){const t=e.childs();return s.createElement(L,{key:"offset_"+t.title.value(),study:this.props.study,model:this.props.model,inputs:[G(t)],property:e})}}function L(e){const{study:t,model:n,inputs:o,property:r,onStudyInputChange:i}=e,l=o,c=(0,s.useMemo)(()=>(0,A.getInputGroups)(l),[l]);return s.createElement(a.PropertyContainer,{property:r, -study:t,model:n,onStudyInputChange:i},!1,c.map(e=>s.createElement(z,{key:e.id,content:e})))}function G(e){return{id:"val",name:e.title.value()||V.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},48100:(e,t,n)=>{"use strict";n.d(t,{BoolInputComponent:()=>c,BoolInput:()=>u});var o=n(59496),s=n(15294),r=n(97754),a=n.n(r),i=n(46446),l=n(6041);class c extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:o}=this.props;o(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:r,hasTooltip:i}=this.props,c=void 0===t?e:t;return o.createElement(s.Checkbox,{className:a()(l.checkbox,i&&l.hasTooltip),disabled:n,checked:c,onChange:this._onChange,label:o.createElement("span",{className:l.label},r),labelAlignBaseline:!0})}}const u=(0,i.bind)(c)},93379:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>r});var o=n(59496);const s={blur:0,commit:0,change:1/0};function r(e,t=s){return class extends o.PureComponent{constructor(e){super(e),this._onChange=(e,n,o)=>{const s=t.change;s?(clearTimeout(this._timeout),this.setState({value:e},()=>{s!==1/0&&(this._timeout=setTimeout(()=>this._flush(),s))})):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return o.createElement(e,{...this.props,value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown})}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout(()=>this._flush(),e))):this.setState(e=>{this._flush(e.value)})}_flush(e){const{input:{id:t,name:n},onChange:o}=this.props,{prevValue:s,value:r}=this.state;clearTimeout(this._timeout);const a=void 0!==e?e:r;void 0!==a&&a!==s&&o(a,t,n)}}}},48948:(e,t,n)=>{"use strict";n.d(t,{FloatInputComponent:()=>p,FloatInput:()=>d});var o=n(59496),s=n(97754),r=n.n(s),a=n(17571),i=n(46446),l=n(93379),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(a.NumericInput,{...this.props,className:r()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,l.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,i.bind)(p)},26007:(e,t,n)=>{"use strict";n.d(t,{IntegerInputComponent:()=>p,IntegerInput:()=>d});var o=n(59496),s=n(97754),r=n.n(s),a=n(46446),i=n(93379),l=n(17571),c=n(6041);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(l.NumericInput,{...this.props,mode:"integer",className:r()(c.input,e&&c.hasTooltip),stretch:!1})}}const p=(0,i.debounced)(u,{change:1/0,commit:0,blur:0}),d=(0,a.bind)(p)},17571:(e,t,n)=>{"use strict";n.d(t,{NumericInput:()=>y});var o=n(59496),s=n(88537),r=n(28353),a=n(60521),i=n(49483),l=n(92399),c=n(35726),u=n(62820);var p=n(95505),d=n(64514);const h=(0, -r.t)("Number format is invalid."),m=new class{constructor(e=" "){this._divider=e}format(e){const t=(0,c.splitThousands)(e,this._divider);return(0,u.isRtl)()?(0,u.startWithLTR)(t):t}parse(e){const t=(0,u.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}}},g=/^-?[0-9]*$/,b=9e15;class v extends o.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({displayValue:C(this.props,this.props.value),focused:!1}),this.props.errorHandler&&this.props.errorHandler(!1),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.target.value;if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"integer"===this.props.mode&&!g.test(t))return;const n=f(t,this.props.formatter),o=n.res?this._checkValueBoundaries(n.value):{isPassed:!1,msg:void 0},s=n.res&&!o.isPassed,r=n.res&&n.suggest&&!this.state.focused?n.suggest:t,a=s&&o.msg?o.msg:h;this.setState({displayValue:r,errorMsg:a}),n.res&&o.isPassed&&this.props.onValueChange(n.value,"input"),this.props.errorHandler&&this.props.errorHandler(!n.res||s)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,uiStep:o,min:s=n,formatter:r}=this.props,i=f(this.state.displayValue,r),l=null!=o?o:n;let c=n;if(i.res){const o=new a.Big(i.value),r=o.minus(s).mod(n);let u=o.plus(e*l);!r.eq(0)&&t&&(u=u.plus((e>0?0:1)*l).minus(r)),c=u.toNumber()}const{isPassed:u,clampedValue:p}=this._checkValueBoundaries(c);c=u?c:p,this.setState({displayValue:C(this.props,c)}),this.props.onValueChange(c,"step"),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this.state={value:t,displayValue:C(e,t),focused:!1,errorMsg:h}}render(){var e;return o.createElement(l.NumberInputView,{id:this.props.id,inputMode:null!==(e=this.props.inputMode)&&void 0!==e?e:i.CheckMobile.iOS()?void 0:"numeric",borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,inputClassName:this.props.inputClassName,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,endSlot:this.props.endSlot,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes,title:this.props.title,intent:this.props.intent,highlight:this.props.highlight,highlightRemoveRoundBorder:this.props.highlightRemoveRoundBorder,stretch:this.props.stretch,autoSelectOnFocus:!i.CheckMobile.any()})}getClampedValue(){ -const{min:e=-1/0,max:t=b}=this.props,n=f(this.state.displayValue,this.props.formatter);return n.res?(0,d.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:o}=e;return t.focused&&!n||t.value===o?null:{value:o,displayValue:C(e,o)}}_checkValueBoundaries(e){var t,n,o,s;const{min:a=-1/0,max:i=b}=this.props,l=function(e,t,n){const o=e>=t,s=e<=n;return{passMin:o,passMax:s,pass:o&&s,clamped:(0,d.clamp)(e,t,n)}}(e,a,i);let c;return l.passMax||(c=null!==(n=null===(t=this.props.boundariesErrorMessages)||void 0===t?void 0:t.greaterThanMax)&&void 0!==n?n:(0,r.t)("Specified value is more than the instrument maximum of {max}.",{replace:{max:String(i)}})),l.passMin||(c=null!==(s=null===(o=this.props.boundariesErrorMessages)||void 0===o?void 0:o.lessThanMin)&&void 0!==s?s:(0,r.t)("Specified value is less than the instrument minimum of {min}.",{replace:{min:String(a)}})),{isPassed:l.pass,msg:c,clampedValue:l.clamped}}}function C(e,t){const{useFormatter:n=!0,formatter:o,mode:s}=e;return n&&"integer"!==s?function(e,t=m){return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return p.NumericFormatter.formatNoE(e)}(t)}function f(e,t=m){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}class y extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{input:{id:n,name:o},onChange:s,onBlur:r}=this.props;s(e,n,o),"step"===t&&r&&r()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=(0,s.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:s},value:r,disabled:a,onKeyDown:i,className:l,mode:c,stretch:u}=this.props;return o.createElement(v,{className:l,value:Number(void 0===r?e:r),min:t,max:n,step:s,mode:c,onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:i,disabled:a,containerReference:this._handleContainerRef,fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},76110:(e,t,n)=>{"use strict";n.d(t,{getSymbolName:()=>c,SymbolInput:()=>u});var o=n(59496),s=n(88537),r=n(617),a=n(46446),i=n(72280),l=n(48897);function c(e,t){const n=(0,i.createAdapter)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}const u=(0,a.bind)((function(e){const t=(0,o.useContext)(r.PropertyContext),{study:n}=(0,s.ensureNotNull)(t),{input:{defval:a},value:i}=e;return o.createElement(l.SymbolInputsButton,{...e,value:c(i||a||"",n),study:n})}))},79946:(e,t,n)=>{"use strict";n.d(t,{ColorWithThicknessSelect:()=>b});var o=n(59496),s=n(24377),r=n(28353),a=n(24980),i=n(68906),l=n(87536),c=n(58593),u=n(463),p=n(51768);const d=new a.TranslatedString("change thickness",(0,r.t)("change thickness")),h=new a.TranslatedString("change color",(0,r.t)("change color")),m=new a.TranslatedString("change opacity",(0,r.t)("change opacity")),g=[1,2,3,4];class b extends o.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null, -this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);if(t)return(0,i.isHexColor)(t)?(0,i.transparencyToAlpha)(this._getTransparencyValue()):(0,s.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);return t?(0,i.isHexColor)(t)?t:(0,s.rgbToHexString)((0,s.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,d)},this._onColorChange=e=>{const{color:t,isPaletteColor:n}=this.props,o=(0,u.getPropertyValue)(t);let r=0;o&&(r=(0,i.isHexColor)(o)?this._getTransparencyValue():(0,i.alphaToTransparency)((0,s.parseRgba)(o)[3])),this._setProperty(t,(0,i.generateColor)(String(e),r,!0),h),this._trackEventLabel="Plot color > "+(n?"Palette":"Single")},this._onOpacityChange=e=>{const{color:t}=this.props,n=(0,u.getPropertyValue)(t);this._setProperty(t,(0,i.generateColor)(n,(0,i.alphaToTransparency)(e),!0),m)},this._onPopupClose=()=>{this._trackEventLabel&&((0,p.trackEvent)("GUI","Study settings",this._trackEventLabel),this._trackEventLabel=null)}}componentWillUnmount(){this._onPopupClose()}render(){const{selectOpacity:e=!0,disabled:t,className:n}=this.props;return o.createElement(c.ColorSelect,{className:n,disabled:t,color:this._getColorValueInHex(),selectOpacity:e,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:g,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})}_getThicknessValue(){const{thickness:e}=this.props;return e?(0,u.getPropertyValue)(e):void 0}_setProperty(e,t,n){const{setValue:o}=this.context;(0,u.setPropertyValue)(e,e=>o(e,t,n))}}b.contextType=l.StylePropertyContext},35868:(e,t,n)=>{"use strict";n.d(t,{PropertyTable:()=>l});var o=n(59496),s=n(97754),r=n(90186),a=n(46828);const i=o.createContext(!1);class l extends o.PureComponent{render(){return o.createElement("div",{ref:this.props.reference,className:s(a.content,this.props.className)},this.props.children)}}l.InlineRowContext=i,l.Row=function(e){const{children:t}=e;return(0,o.useContext)(i)?o.createElement("span",{className:a.inlineRow},t):o.createElement(o.Fragment,null,t)},l.Cell=function(e){const t=(0,o.useContext)(i),n=s(a.cell,e.offset&&a.offset,e.grouped&&a.grouped,t&&a.inlineCell,"top"===e.verticalAlign&&a.top,"topCenter"===e.verticalAlign&&a.topCenter,"adaptive"===e.verticalAlign&&a.adaptive,e.checkableTitle&&a.checkableTitle,2===e.colSpan&&a.fill,"first"===e.placement&&2!==e.colSpan&&a.first,"last"===e.placement&&2!==e.colSpan&&a.last),l=(0,r.filterDataProps)(e);return o.createElement("div",{...l,className:n},o.createElement("div",{className:s(a.inner,e.className)},e.children))},l.Separator=function(e){return o.createElement(l.Row,null,o.createElement("div",{className:s(a.cell,a.separator,a.fill)}))},l.GroupSeparator=function(e){const t=e.size||0;return o.createElement(l.Row,null,o.createElement("div",{ -className:s(a.cell,a.groupSeparator,a.fill,1===t&&a.big)}))}},463:(e,t,n)=>{"use strict";function o(e){return Array.isArray(e)?e[0].value():e.value()}function s(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}n.d(t,{getPropertyValue:()=>o,setPropertyValue:()=>s})},58593:(e,t,n)=>{"use strict";n.d(t,{ColorSelect:()=>w});var o=n(59496),s=n(97754),r=n.n(s),a=n(88537),i=n(68335),l=n(50628),c=n(29202),u=n(27797),p=n(64706);function d(e){const{button:t,children:n,className:s,onPopupClose:r,...d}=e,[h,m]=(0,o.useState)(!1),[g,b]=(0,o.useState)(!1),[v,C]=(0,c.useFocus)(),f=(0,o.useRef)(null);return o.createElement("div",{className:s},o.createElement("div",{tabIndex:e.disabled?void 0:-1,ref:f,onClick:y,onFocus:C.onFocus,onBlur:C.onBlur,onKeyDown:E},"function"==typeof t?t(g,v):t),o.createElement(l.PopupMenu,{isOpened:g,onClose:S,position:function(){const e=(0,a.ensureNotNull)(f.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:f.current,onKeyDown:E},o.createElement(p.MenuContext.Consumer,null,e=>o.createElement(u.ColorPicker,{...d,onToggleCustom:m,menu:e})),!h&&n));function y(){e.disabled||(b(e=>!e),m(!1))}function E(e){switch((0,i.hashFromEvent)(e)){case 27:g&&(e.preventDefault(),S())}}function S(){y(),(0,a.ensureNotNull)(f.current).focus(),r&&r()}}var h=n(56512),m=n(68906),g=n(6914),b=n(28353),v=n(54349),C=n(74588);const f=(0,v.makeSwitchGroupItem)(class extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const{name:e,checked:t,value:n}=this.props,r=s(C.thicknessItem,{[C.checked]:t}),a=s(C.bar,{[C.checked]:t}),i={borderTopWidth:parseInt(n)};return o.createElement("div",{className:r},o.createElement("input",{type:"radio",className:C.radio,name:e,value:n,onChange:this._onChange,checked:t}),o.createElement("div",{className:a,style:i}," "))}});function y(e){const{name:t,values:n,selectedValues:s,onChange:r}=e,a=n.map((e,t)=>o.createElement(f,{key:t,value:e.toString()})),i=s.map(e=>e.toString());return o.createElement("div",{className:C.wrap},o.createElement(v.SwitchGroup,{name:t,onChange:e=>{r(parseInt(e))},values:i},a))}var E=n(83421);const S=(0,b.t)("Thickness");function x(e){const{value:t,items:n,onChange:s}=e;return o.createElement("div",{className:E.thicknessContainer},o.createElement("div",{className:E.thicknessTitle},S),o.createElement(y,{name:"color_picker_thickness_select",onChange:s,values:n,selectedValues:"mixed"===t?[]:[t]}))}var _=n(14348);function w(e){const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:s,color:a,disabled:i,opacity:l=1,onColorChange:c,onOpacityChange:u,onThicknessChange:p,thicknessItems:m,onPopupClose:g}=e,[b,v,C]=(0,h.useCustomColors)();return o.createElement(d,{className:t,disabled:i,color:"mixed"!==a?a:null,selectOpacity:n,opacity:l,selectCustom:!0,customColors:b,onColorChange:c,onOpacityChange:a?u:void 0,onAddColor:v,onRemoveCustomColor:C,button:function(e,t){const n=e||t,c=n?"primary":"default";return o.createElement("div",{ -className:r()(_.colorPickerWrap,_["intent-"+c],_["border-thin"],_["size-medium"],n&&_.highlight,n&&_.focused,i&&_.disabled),"data-role":"button","data-name":s?"color-with-thickness-select":"color-select"},o.createElement("div",{className:r()(_.colorPicker,i&&_.disabled)},a&&"mixed"!==a?function(){const e=N(a,l),t=l>=.95&&k(a);return o.createElement("div",{className:_.opacitySwatch},o.createElement("div",{style:{backgroundColor:e},className:r()(_.swatch,t&&_.white)}))}():o.createElement("div",{className:_.placeholderContainer},o.createElement("div",{className:"mixed"===a?_.mixedColor:_.placeholder})),s&&function(){const e=a&&"mixed"!==a?N(a,l):void 0;if("mixed"===s)return o.createElement("div",{className:_.multiWidth},o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}),o.createElement("div",{style:{backgroundColor:e},className:_.line}));return o.createElement("span",{className:r()(_.colorLine,k(a)&&_.white),style:{height:s,backgroundColor:e}})}()),n&&o.createElement("span",{className:_.shadow}))},onPopupClose:g},s&&m&&o.createElement(x,{value:s,items:m,onChange:function(e){p&&p(e)}}))}function N(e,t){return e?(0,m.generateColor)(e,(0,m.alphaToTransparency)(t)):"#000000"}function k(e){return!!e&&e.toLowerCase()===g.white}},48897:(e,t,n)=>{"use strict";n.d(t,{SymbolInputsButton:()=>w});var o=n(59496),s=n(97754),r=n.n(s),a=n(28353),i=n(88537),l=n(50655),c=n(95711),u=n(67337),p=n(76110),d=n(89453),h=n(1861),m=n(9745),g=n(36826),b=n(55914);function v(e){const{value:t,onClick:n,className:r,startSlot:a,disabled:i=!1}=e;return o.createElement("div",{className:s(b.wrap,i&&b.disabled,r),onClick:n,"data-name":"edit-button"},o.createElement("div",{className:s(b.text,"apply-overflow-tooltip")},void 0!==a&&a,o.createElement("span",null,t)),o.createElement(m.Icon,{icon:g,className:b.icon}))}var C=n(31356),f=n(78260),y=n(7785),E=n(15983),S=n(82708),x=n(83998);function _(e){const{symbol:t,onSymbolChanged:n,disabled:s,className:i}=e,[p,m]=(0,o.useState)(t),g=(0,o.useContext)(l.SlotContext),b=(0,o.useContext)(c.PopupContext);return o.createElement(v,{value:p,onClick:function(){const e=function(e){const t=(0,y.tokenize)(e);return(0,E.isSpread)(t)}(p)?p:(0,S.safeShortName)(p),t=(0,d.getSymbolSearchCompleteOverrideFunction)();(0,h.showSymbolSearchItemsDialog)({onSearchComplete:e=>{t(e[0].symbol).then(e=>{n(e),m(e)})},dialogTitle:(0,a.t)("Change symbol"),defaultValue:e,manager:g,onClose:()=>{b&&b.focus()},showSpreadActions:u.enabled("show_spread_operators")&&u.enabled("studies_symbol_search_spread_operators")})},disabled:s,className:r()(i,u.enabled("uppercase_instrument_names")&&x.uppercase)})}function w(e){if("definition"in e){const{propType:t,properties:n,id:s,title:r=""}=e.definition,a=n[t],l=a.value()||"",c=e=>{a.setValue(e)};return o.createElement(C.CommonSection,{id:s,title:r},o.createElement(f.CellWrap,null,o.createElement(_,{symbol:(0,i.ensureDefined)(l),onSymbolChanged:c})))}{ -const{study:t,value:n,input:{id:s,name:a},onChange:l,disabled:c,hasTooltip:u}=e,d=e=>{const n=(0,p.getSymbolName)(e,t);l(n,s,a)};return o.createElement(_,{symbol:(0,i.ensureDefined)(n),onSymbolChanged:d,disabled:c,className:r()(u&&x.hasTooltip)})}}},72280:(e,t,n)=>{"use strict";n.d(t,{createAdapter:()=>r});var o=n(14291),s=n(81851);function r(e){if((0,o.isLineTool)(e))return{isPine:()=>!1,isStandardPine:()=>!1,canOverrideMinTick:()=>!1,resolvedSymbolInfoBySymbol:()=>{throw new TypeError("Only study is supported.")},symbolsResolved:()=>{throw new TypeError("Only study is supported.")},parentSource:()=>{throw new TypeError("Only study is supported.")},getAllChildren:()=>[],sourceId:()=>{throw new TypeError("Only study is supported.")}};if((0,s.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},45560:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>r});var o=n(59496),s=n(71953);const r=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[r,a]=(0,o.useState)(t?t.value():n);(0,o.useEffect)(()=>{if(t){const n={};return a(t.value()),t.subscribe(n,t=>{const n=t.value();e.handler&&e.handler(n),a(n)}),()=>t.unsubscribeAll(n)}return()=>{}},[t]);return[r,e=>{if(void 0!==t){const n=t.value();s.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},78260:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>i});var o=n(59496),s=n(97754),r=n.n(s),a=n(26527);function i(e){return o.createElement("div",{className:r()(a.wrap,e.className)},e.children)}},53424:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(59496),s=n(15294),r=n(45560);function a(e){const{property:t,...n}=e,[a,i]=(0,r.useDefinitionProperty)({property:t}),l="mixed"===a;return o.createElement(s.Checkbox,{...n,name:"toggle-enabled",checked:l||a,indeterminate:l,onChange:function(){i("mixed"===a||!a)}})}var i=n(78260),l=n(27345);function c(e){const{property:t,disabled:n,title:s,className:r,name:c}=e,u=o.createElement("span",{className:l.title},s);return o.createElement(i.CellWrap,{className:r},t?o.createElement(a,{name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},31356:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>a});var o=n(59496),s=n(35868),r=n(53424);function a(e){const{id:t,offset:n,disabled:a,checked:i,title:l,children:c}=e;return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(r.CheckableTitle,{name:"is-enabled-"+t,title:l,disabled:a,property:i})),Boolean(c)&&o.createElement(s.PropertyTable.Cell,{placement:"last","data-section-name":t},c))}},86067:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>i});var o=n(59496),s=n(35868),r=n(53424),a=n(51842);function i(e){return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{className:a.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2, -"data-section-name":e.name,checkableTitle:!0},o.createElement(r.CheckableTitle,{title:e.title,name:"is-enabled-"+e.name,className:a.title})))}},71953:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(98125).getLogger)("Platform.GUI.PropertyDefinitionTrace")},27797:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>B});var o=n(59496),s=n(97754),r=n.n(s),a=n(28353),i=n(24377),l=n(88537),c=n(49483),u=n(50628),p=n(16396);const d=o.createContext(void 0);var h=n(6914),m=n(78679),g=n(24590);function b(e){const{index:t,color:n,selected:r,onSelect:i}=e,[b,v]=(0,o.useState)(!1),C=(0,o.useContext)(d),f=(0,o.useRef)(null),y=Boolean(C)&&!c.CheckMobile.any();return o.createElement(o.Fragment,null,o.createElement("div",{ref:f,style:n?{color:n}:void 0,className:s(g.swatch,b&&g.hover,r&&g.selected,!n&&g.empty,String(n).toLowerCase()===h.white&&g.white),onClick:function(){i(n)},onContextMenu:y?E:void 0}),y&&o.createElement(u.PopupMenu,{isOpened:b,onClose:E,position:function(){const e=(0,l.ensureNotNull)(f.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:E},o.createElement(p.PopupMenuItem,{className:g.contextItem,label:(0,a.t)("Remove color"),icon:m,onClick:function(){E(),(0,l.ensureDefined)(C)(t)},dontClosePopup:!0})));function E(){v(!b)}}class v extends o.PureComponent{constructor(){super(...arguments),this._onSelect=e=>{const{onSelect:t}=this.props;t&&t(e)}}render(){const{colors:e,color:t,children:n}=this.props;if(!e)return null;const s=t?(0,i.parseRgb)(String(t)):void 0;return o.createElement("div",{className:g.swatches},e.map((e,t)=>o.createElement(b,{key:String(e)+t,index:t,color:e,selected:s&&(0,i.areEqualRgb)(s,(0,i.parseRgb)(String(e))),onSelect:this._onSelect})),n)}}var C=n(54368),f=n(94720);function y(e){const t="Invalid RGB color: "+e;if(null===e)throw new Error(t);const n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);const[,o,s,r]=n;if(!o||!s||!r)throw new Error(t);const a=parseInt(o,16)/255,i=parseInt(s,16)/255,l=parseInt(r,16)/255,c=Math.max(a,i,l),u=Math.min(a,i,l);let p;const d=c,h=c-u,m=0===c?0:h/c;if(c===u)p=0;else{switch(c){case a:p=(i-l)/h+(i{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:n}=this.props;if(!n)return;const o=(0,l.ensureNotNull)(this._container).getBoundingClientRect(),s=e.clientX-o.left,r=e.clientY-o.top;let a=s/o.width;a<0?a=0:a>1&&(a=1);let i=1-r/o.height;i<0?i=0:i>1&&(i=1),n({h:t,s:a,v:i})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{ -this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t,s:n,v:s}}=this.props,a=`hsl(${360*t}, 100%, 50%)`;return o.createElement("div",{className:r()(S.saturation,e),style:{backgroundColor:a},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:S.pointer,style:{left:100*n+"%",top:100*(1-s)+"%"}}))}}var _=n(24429);class w extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:n},onChange:o}=this.props;if(!o)return;const s=(0,l.ensureNotNull)(this._container).getBoundingClientRect();let r=(e.clientY-s.top)/s.height;r<0?r=0:r>1&&(r=1),o({h:r,s:t,v:n})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return o.createElement("div",{className:r()(_.hue,e)},o.createElement("div",{className:_.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:_.pointer,style:{top:100*t+"%"}})))}}var N=n(99565);const k=(0,a.t)("Add",{context:"Color Picker"});class I extends o.PureComponent{constructor(e){super(e),this._handleHSV=e=>{const t=function(e){const{h:t,s:n,v:o}=e;let s,r,a;const i=Math.floor(6*t),l=6*t-i,c=o*(1-n),u=o*(1-l*n),p=o*(1-(1-l)*n);switch(i%6){case 0:s=o,r=p,a=c;break;case 1:s=u,r=o,a=c;break;case 2:s=c,r=o,a=p;break;case 3:s=c,r=u,a=o;break;case 4:s=p,r=c,a=o;break;case 5:s=o,r=c,a=u;break;default:s=0,r=0,a=0}return"#"+[255*s,255*r,255*a].map(e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(e)||"#000000";this.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=e.currentTarget.value;try{const e=y(t),n="#"+t;this.setState({color:n,inputColor:t,hsv:e}),this.props.onSelect(n)}catch(e){this.setState({inputColor:t})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||"#000000";this.state={color:t,inputColor:t.replace(/^#/,""),hsv:y(t)}}render(){const{color:e,hsv:t,inputColor:n}=this.state;return o.createElement("div",{className:N.container},o.createElement("div",{className:N.form},o.createElement("div",{className:N.swatch,style:{backgroundColor:e}}),o.createElement("div",{className:N.inputWrap},o.createElement("span",{className:N.inputHash},"#"),o.createElement("input",{type:"text",className:N.input,value:n,onChange:this._handleInput})),o.createElement("div",{className:N.buttonWrap},o.createElement(f.Button,{size:"s",onClick:this._handleAddColor},k))),o.createElement("div",{ -className:N.hueSaturationWrap},o.createElement(x,{className:N.saturation,hsv:t,onChange:this._handleHSV}),o.createElement(w,{className:N.hue,hsv:t,onChange:this._handleHSV})))}}var T=n(10667);const P=(0,a.t)("Add custom color",{context:"Color Picker"}),R=(0,a.t)("Opacity",{context:"Color Picker"});class B extends o.PureComponent{constructor(e){super(e),this._handleAddColor=e=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:t}=this.props;t&&t(e)},this._handleSelectColor=e=>{const{onColorChange:t}=this.props,{isCustom:n}=this.state;t&&t(e,n)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=e=>{const{onOpacityChange:t}=this.props;t&&t(e)},this.state={isCustom:!1}}componentDidUpdate(e,t){e.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:e,opacity:t,selectCustom:n,selectOpacity:s,customColors:a,onRemoveCustomColor:i}=this.props,{isCustom:l}=this.state,c="number"==typeof t?t:1;return l?o.createElement(I,{color:e,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):o.createElement("div",{className:T.container},o.createElement(v,{colors:h.basic,color:e,onSelect:this._handleSelectColor}),o.createElement(v,{colors:h.extended,color:e,onSelect:this._handleSelectColor}),o.createElement("div",{className:T.separator}),o.createElement(d.Provider,{value:i},o.createElement(v,{colors:a,color:e,onSelect:this._handleSelectColor},n&&o.createElement("div",{className:r()(T.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:P}))),s&&o.createElement(o.Fragment,null,o.createElement("div",{className:T.sectionTitle},R),o.createElement(C.Opacity,{color:e,opacity:c,onChange:this._handleOpacity})))}_onToggleCustom(e){const{onToggleCustom:t}=this.props;t&&t(e)}}},54368:(e,t,n)=>{"use strict";n.d(t,{Opacity:()=>l});var o=n(59496),s=n(97754),r=n(88537),a=n(64514),i=n(15381);class l extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const t=(0,r.ensureNotNull)(this._container),n=(0,r.ensureNotNull)(this._pointer),o=t.getBoundingClientRect(),s=n.offsetWidth,i=e.clientX-s/2-o.left,l=(0,a.clamp)(i/(o.width-s),0,1);this.setState({inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null}))},this._onSliderClick=e=>{this._handlePosition(e.nativeEvent),this._dragSubscribe()},this._mouseUp=e=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(e)},this._mouseMove=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=e=>{ -const t=e.currentTarget.value,n=Number(t)/100;this.setState({inputOpacity:t}),Number.isNaN(n)||n>1||this.props.onChange(n)},this.state={inputOpacity:Math.round(100*e.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:e,opacity:t,hideInput:n}=this.props,{inputOpacity:r,isPointerDragged:a}=this.state,l={color:e||void 0};return o.createElement("div",{className:i.opacity},o.createElement("div",{className:i.opacitySlider,style:l,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:i.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${e})`}}),o.createElement("div",{className:i.opacityPointerWrap},o.createElement("div",{className:s(i.pointer,a&&i.dragged),style:{left:100*t+"%"},ref:this._refPointer}))),!n&&o.createElement("div",{className:i.opacityInputWrap},o.createElement("input",{type:"text",className:i.opacityInput,value:r,onChange:this._handleInput}),o.createElement("span",{className:i.opacityInputPercent},"%")))}_dragSubscribe(){const e=(0,r.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,r.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}}},6914:(e,t,n)=>{"use strict";n.d(t,{white:()=>s,basic:()=>i,extended:()=>c});var o=n(45112);const s=o.colorsPalette["color-white"],r=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],a=[200,300,400,500,600,700,800,900].map(e=>"color-cold-gray-"+e);a.unshift("color-white"),a.push("color-black"),r.forEach(e=>{a.push(`color-${e}-500`)});const i=a.map(e=>o.colorsPalette[e]),l=[];[100,200,300,400,700,900].forEach(e=>{r.forEach(t=>{l.push(`color-${t}-${e}`)})});const c=l.map(e=>o.colorsPalette[e])},46059:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>E});var o=n(59496),s=n(97754),r=n.n(s),a=n(66092),i=n(67029),l=n(78274),c=n(50628),u=n(88537);function p(e,t){return(0,o.useCallback)(()=>function(e,t){const n=(0,u.ensureNotNull)(e).getBoundingClientRect(),o={x:n.left,y:n.top+n.height};return t&&(o.overrideWidth=n.width),o}(e.current,t),[e,t])}const d=JSON.parse('{"size-header-height":"64px"}'),h=parseInt(d["size-header-height"]);function m(e){const{button:t,popupChildren:n,buttonRef:s,listboxId:r,listboxClassName:a,listboxTabIndex:i,matchButtonAndListboxWidths:l,isOpened:u,scrollWrapReference:d,listboxReference:m,onClose:g,onOpen:b,onListboxFocus:v,onListboxBlur:C,onListboxKeyDown:f,listboxAria:y,repositionOnScroll:E=!0,closeOnHeaderOverlap:S=!1}=e,x=p(s,l),_=S?h:0;return o.createElement(o.Fragment,null,t,o.createElement(c.PopupMenu,{...y,id:r,className:a,tabIndex:i,isOpened:u,position:x, -repositionOnScroll:E,onClose:g,onOpen:b,doNotCloseOn:s.current,reference:m,scrollWrapReference:d,onFocus:v,onBlur:C,onKeyDown:f,closeOnScrollOutsideOffset:_},n))}var g=n(9745),b=n(89974),v=n(99171);function C(e){const{isDropped:t}=e;return o.createElement(g.Icon,{className:r()(v.icon,t&&v.dropped),icon:b})}function f(e){const{className:t,disabled:n,isDropped:s}=e;return o.createElement("span",{className:r()(v.button,n&&v.disabled,t)},o.createElement(C,{isDropped:s}))}var y=n(66230);const E=o.forwardRef((e,t)=>{const{listboxId:n,className:s,listboxClassName:c,listboxTabIndex:u,hideArrowButton:p,matchButtonAndListboxWidths:d,disabled:h,isOpened:g,scrollWrapReference:b,repositionOnScroll:v,closeOnHeaderOverlap:C,listboxReference:E,size:S="medium",onClose:x,onOpen:_,onListboxFocus:w,onListboxBlur:N,onListboxKeyDown:k,buttonChildren:I,children:T,caretClassName:P,listboxAria:R,...B}=e,M=(0,o.useRef)(null),O=!p&&o.createElement(l.EndSlot,null,o.createElement(f,{isDropped:g,disabled:h,className:P}));return o.createElement(m,{buttonRef:M,listboxId:n,listboxClassName:c,listboxTabIndex:u,isOpened:g,onClose:x,onOpen:_,listboxReference:E,scrollWrapReference:b,onListboxFocus:w,onListboxBlur:N,onListboxKeyDown:k,listboxAria:R,matchButtonAndListboxWidths:d,button:o.createElement(i.ControlSkeleton,{...B,"data-role":"listbox",disabled:h,className:r()(y.button,s),size:S,ref:(0,a.useMergedRefs)([M,t]),middleSlot:o.createElement(l.MiddleSlot,null,o.createElement("span",{className:r()(y["button-children"],p&&y.hiddenArrow)},I)),endSlot:O}),popupChildren:T,repositionOnScroll:v,closeOnHeaderOverlap:C})});E.displayName="ControlDisclosureView"},68721:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>c});var o=n(59496),s=n(88537),r=n(29202),a=n(47201),i=n(22064),l=n(35749);function c(e){const{intent:t,highlight:n,...c}=e,{isFocused:u,...p}=function(e){const{id:t,disabled:n,buttonTabIndex:c=0,onFocus:u,onBlur:p,onClick:d}=e,[h,m]=(0,o.useState)(!1),[g,b]=(0,r.useFocus)(),v=g||h,C=void 0!==t?(0,i.createDomId)(t,"listbox"):void 0,f=(0,o.useRef)(null),y=(0,o.useCallback)(e=>(0,s.ensureNotNull)(f.current).focus(e),[f]),E=(0,o.useRef)(null),S=(0,o.useCallback)(()=>(0,s.ensureNotNull)(E.current).focus(),[E]),x=(0,o.useCallback)(()=>m(!0),[m]),_=(0,o.useCallback)((e=!1)=>{m(!1);const{activeElement:t}=document;t&&(0,l.isTextEditingField)(t)||y({preventScroll:e})},[m,y]),w=(0,o.useCallback)(()=>{h?_():x()},[h,_,x]),N=n?[]:[u,b.onFocus],k=n?[]:[p,b.onBlur],I=n?[]:[d,w],T=(0,a.createSafeMulticastEventHandler)(...N),P=(0,a.createSafeMulticastEventHandler)(...k),R=(0,a.createSafeMulticastEventHandler)(...I);return{listboxId:C,isOpened:h,isFocused:v,buttonTabIndex:n?-1:c,listboxTabIndex:-1,open:x,close:_,toggle:w,onOpen:S,buttonFocusBindings:{onFocus:T,onBlur:P},onButtonClick:R,buttonRef:f,listboxRef:E,buttonAria:{"aria-controls":h?C:void 0,"aria-expanded":h,"aria-disabled":n}}}(c);return{...p,isFocused:u,highlight:null!=n?n:u,intent:null!=t?t:u?"primary":"default"}}},26597:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>a, -useComposedKeyboardActionHandlers:()=>i,useKeyboardEventHandler:()=>l,useKeyboardToggle:()=>c,useKeyboardClose:()=>u,useKeyboardOpen:()=>p});var o=n(59496),s=n(68335);const r=()=>!0;function a(e,t,n=r){return(0,o.useCallback)(o=>{const s=e.map(e=>"function"==typeof e?e():e);return!(!n()||!s.includes(o))&&(t(),!0)},[...e,t,n])}function i(...e){return(0,o.useCallback)(t=>{for(const n of e)if(n(t))return!0;return!1},[...e])}function l(...e){const t=i(...e);return(0,o.useCallback)(e=>{t((0,s.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return a([13,32],e)}function u(e,t){return a([9,(0,o.useCallback)(()=>s.Modifiers.Shift+9,[]),27],t,(0,o.useCallback)(()=>e,[e]))}function p(e,t){return a([40,38],t,(0,o.useCallback)(()=>!e,[e]))}},56512:(e,t,n)=>{"use strict";n.d(t,{useCustomColors:()=>l});var o=n(59496),s=n(56840),r=n(76422);function a(e,t){(0,o.useEffect)(()=>(r.subscribe(e,t,null),()=>{r.unsubscribe(e,t,null)}),[e,t])}var i=n(24377);function l(){const[e,t]=(0,o.useState)((0,s.getJSON)("pickerCustomColors",[]));a("add_new_custom_color",n=>t(c(n,e))),a("remove_custom_color",n=>t(u(n,e)));const n=(0,o.useCallback)(t=>{const n=t?(0,i.parseRgb)(t):null;e.some(e=>null!==e&&null!==n&&(0,i.areEqualRgb)((0,i.parseRgb)(e),n))||(r.emit("add_new_custom_color",t),(0,s.setJSON)("pickerCustomColors",c(t,e)))},[e]),l=(0,o.useCallback)(t=>{(t>=0||t29&&n.shift(),n}function u(e,t){return t.filter((t,n)=>e!==n)}},45685:(e,t,n)=>{"use strict";n.d(t,{Select:()=>k});var o=n(59496),s=n(22064),r=n(66092),a=n(88537),i=n(74991);const l={duration:200,additionalScroll:0},c={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function u(e,t){const n=c[e];return t[n.scrollSize]>t[n.clientSize]}function p(e,t,n,o,s,r){const a=function(e,t,n,o=0){const s=c[e];return{start:-1*o,middle:-1*(Math.floor(n[s.size]/2)-Math.floor(t[s.size]/2)),end:-1*(n[s.size]-t[s.size])+o}}(e,o,s,r.additionalScroll);let l=0;if(function(e,t,n){const o=c[e];return t[o.start]n[o.end]+n[o.size]/2}(e,o,s))l=a.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,s=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),r=Math.min(...s.keys());return s.get(r)}(function(e,t,n,o=0){const s=c[e],r=t[s.start]+Math.floor(t[s.size]/2),a=n[s.start]+Math.floor(n[s.size]/2);return{start:t[s.start]-n[s.start]-o,middle:r-a,end:t[s.end]-n[s.end]+o}}(e,o,s,r.additionalScroll));l=void 0!==t?a[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=i.dur,func:o=i.easingFunc.easeInOutCubic,onScrollEnd:s,target:r,wrap:a,direction:l="vertical"}=e;let{targetRect:c,wrapRect:u}=e;c=null!=c?c:r.getBoundingClientRect(), -u=null!=u?u:a.getBoundingClientRect();const p=("vertical"===l?c.top-u.top:c.left-u.left)+t,d="vertical"===l?"scrollTop":"scrollLeft",h=a?a[d]:0;let m,g=0;return g=window.requestAnimationFrame((function e(t){let r;if(m?r=t-m:(r=0,m=t),r>=n)return a[d]=h+p,void(s&&s());const i=h+p*o(r/n);a[d]=Math.floor(i),g=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(g),s&&s()}}({...r,target:t,targetRect:o,wrap:n,wrapRect:s,additionalScroll:l,direction:e})}class d{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=l){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),u("vertical",this._container)&&(this._stopVerticalScroll=p("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),u("horizontal",this._container)&&(this._stopHorizontalScroll=p("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}getContainer(){return this._container}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}function h(e,t){const n=(0,o.useRef)(null),s=(0,o.useRef)(new WeakMap),r=function(e){const t=(0,o.useRef)(null);return(0,o.useEffect)(()=>(t.current=new d(e),()=>(0,a.ensureNotNull)(t.current).destroy()),[]),t}(n.current),i=(0,o.useCallback)(()=>{null!==r.current&&null!==n.current&&r.current.getContainer()!==n.current&&r.current.setContainer(n.current)},[r,n]),l=(0,o.useCallback)(e=>{n.current=e},[n]),c=(0,o.useCallback)((e,t)=>{s.current.set(e,t)},[s]),u=(0,o.useCallback)((e,t)=>{if(!e)return;const n=s.current.get(e);n&&(i(),(0,a.ensureNotNull)(r.current).scrollTo(n,t))},[s,r]);return(0,o.useEffect)(()=>u(e,t),[u,e]),[l,c,u]}var m=n(16396),g=n(4889),b=n(43370);var v=n(62820),C=n(26597);function f(e,t){return e>=0?e%t:(t-Math.abs(e)%t)%t}const y={next:[40,()=>(0,v.isRtl)()?37:39],previous:[38,()=>(0,v.isRtl)()?39:37],first:[33,36],last:[34,35]};var E=n(46059),S=n(68721),x=n(79756);function _(e){return!e.readonly}function w(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,s.createDomId)(e,"item",null==t?void 0:t.value)}function N(e){var t,n;const{selectedItem:s,placeholder:r}=e -;if(!s)return o.createElement("span",{className:x.placeholder},r);const a=null!==(n=null!==(t=s.selectedContent)&&void 0!==t?t:s.content)&&void 0!==n?n:s.value;return o.createElement("span",null,a)}const k=o.forwardRef((e,t)=>{const{id:n,menuClassName:a,menuItemClassName:i,tabIndex:l,disabled:c,highlight:u,intent:p,hideArrowButton:d,placeholder:v,addPlaceholderToItems:x=!0,value:k,"aria-labelledby":I,onFocus:T,onBlur:P,onClick:R,onChange:B,repositionOnScroll:M=!0,...O}=e;let{items:A}=e;if(v&&x){A=[{value:void 0,content:v,id:(0,s.createDomId)(n,"placeholder")},...A]}const{listboxId:D,isOpened:z,isFocused:V,buttonTabIndex:F,listboxTabIndex:L,highlight:G,intent:W,open:j,onOpen:H,close:K,toggle:U,buttonFocusBindings:X,onButtonClick:Q,buttonRef:q,listboxRef:Y,buttonAria:$}=(0,S.useControlDisclosure)({id:n,disabled:c,buttonTabIndex:l,intent:p,highlight:u,onFocus:T,onBlur:P,onClick:R}),J=A.filter(_),Z=J.find(e=>e.value===k),[ee,te,ne]=h(Z),oe=(0,s.joinDomIds)(I,n),se=oe.length>0?oe:void 0,re=(0,o.useMemo)(()=>({role:"listbox","aria-labelledby":I,"aria-activedescendant":w(n,Z)}),[I,Z]),ae=(0,o.useCallback)(e=>e.value===k,[k]),ie=(0,o.useCallback)(e=>B&&B(e.value),[B]),le=function(e,t,n,s=!0,r={}){const a=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(o===e.length-1&&!s)return;const r=f(o+1,e.length);n&&n(e[r])},[e,t,n,s]),i=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(0===o&&!s)return;const r=f(o-1,e.length);n&&n(e[r])},[e,t,n,s]),l=(0,o.useCallback)(()=>{n&&n(e[0])},[n,e]),c=(0,o.useCallback)(()=>{n&&n(e[e.length-1])},[n,e]),{next:u=y.next,previous:p=y.previous,first:d=y.first,last:h=y.last}=r;return(0,C.useComposedKeyboardActionHandlers)((0,C.useKeyboardActionHandler)(u,a),(0,C.useKeyboardActionHandler)(p,i),(0,C.useKeyboardActionHandler)(d,l),(0,C.useKeyboardActionHandler)(h,c))}(J,ae,ie,!1,{next:[40],previous:[38]}),ce=(0,C.useKeyboardToggle)(U),ue=(0,C.useKeyboardClose)(z,K),pe=(0,C.useKeyboardOpen)(z,j),de=(0,C.useKeyboardEventHandler)(ce,ue,pe),he=(0,C.useKeyboardEventHandler)(le,ce,ue),me=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)(()=>(0,g.default)(()=>{t.current=""},500),[]),s=(0,o.useMemo)(()=>(0,b.default)(e,200),[e]);return(0,o.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,s(t.current,e),n())},[n,s])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return!e.readonly&&(!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)))})}(J,e);void 0!==n&&B&&(t.stopPropagation(),z||j(),B(n.value))});return o.createElement(E.ControlDisclosureView,{...O,...$,...X,id:n,role:"button",tabIndex:F,"aria-owns":$["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":se,disabled:c,hideArrowButton:d,isFocused:V,isOpened:z,highlight:G,intent:W,ref:(0,r.useMergedRefs)([q,t]),onClick:Q,onOpen:function(){ne(Z,{duration:0}),H()},onClose:K,onKeyDown:function(e){de(e),e.defaultPrevented||me(e)},listboxId:D,listboxTabIndex:L,listboxClassName:a,listboxAria:re, -listboxReference:Y,scrollWrapReference:ee,onListboxKeyDown:function(e){he(e),e.defaultPrevented||me(e)},buttonChildren:o.createElement(N,{selectedItem:Z,placeholder:v}),repositionOnScroll:M},A.map((e,t)=>{var s;if(e.readonly)return o.createElement(o.Fragment,{key:"readonly_item_"+t},e.content);const r=w(n,e);return o.createElement(m.PopupMenuItem,{key:r,id:r,className:i,role:"option","aria-selected":k===e.value,isActive:k===e.value,label:null!==(s=e.content)&&void 0!==s?s:e.value,onClick:ge,onClickArg:e.value,isDisabled:e.disabled,reference:t=>te(e,t)})}));function ge(e){B&&B(e)}});k.displayName="Select"},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(59496),s=n(59142),r=n(88537),a=n(49483);function i(e){const{reference:t,children:n,...r}=e,i=(0,o.useRef)(null),c=(0,o.useCallback)(e=>{t&&(t.current=e),a.CheckMobile.iOS()&&(null!==i.current&&(0,s.enableBodyScroll)(i.current),i.current=e,null!==i.current&&(0,s.disableBodyScroll)(i.current,{allowTouchMove:l(i)}))},[t]);return o.createElement("div",{ref:c,...r},n)}function l(e){return t=>{const n=(0,r.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},49154:e=>{e.exports=''},89974:e=>{e.exports=''},36826:e=>{e.exports=''},60495:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/492d9a718a2c25d234151474b0206977.svg b/charting_library/bundles/492d9a718a2c25d234151474b0206977.svg new file mode 100644 index 00000000..6552615b --- /dev/null +++ b/charting_library/bundles/492d9a718a2c25d234151474b0206977.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4956.5be5245cef3e7dc84a04.css b/charting_library/bundles/4956.5be5245cef3e7dc84a04.css new file mode 100644 index 00000000..3e4b404b --- /dev/null +++ b/charting_library/bundles/4956.5be5245cef3e7dc84a04.css @@ -0,0 +1 @@ +.dialog-hxnnZcZ6{max-width:380px;min-width:280px;position:fixed;width:100%}.dialog-hxnnZcZ6 [data-dragg-area=true]{cursor:grab}.dialog-hxnnZcZ6 [data-dragg-area=true].dragging-hxnnZcZ6{cursor:grabbing}.dialogAnimatedAppearance-hxnnZcZ6{animation-duration:.3s;animation-name:dialogAnimation-hxnnZcZ6;transform-origin:0 0}@keyframes dialogAnimation-hxnnZcZ6{0%{opacity:0;transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0)}to{opacity:1;transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1)}}.dialogTooltip-hxnnZcZ6{color:#fff;font-size:14px;left:50%;line-height:21px;max-width:540px;position:absolute;top:-20px;transform:translateX(-50%);width:max-content}@media screen and (max-width:768px){.dialogTooltip-hxnnZcZ6{max-width:240px}} \ No newline at end of file diff --git a/charting_library/bundles/4956.5be5245cef3e7dc84a04.rtl.css b/charting_library/bundles/4956.5be5245cef3e7dc84a04.rtl.css new file mode 100644 index 00000000..4d1cb2e9 --- /dev/null +++ b/charting_library/bundles/4956.5be5245cef3e7dc84a04.rtl.css @@ -0,0 +1 @@ +.dialog-hxnnZcZ6{max-width:380px;min-width:280px;position:fixed;width:100%}.dialog-hxnnZcZ6 [data-dragg-area=true]{cursor:grab}.dialog-hxnnZcZ6 [data-dragg-area=true].dragging-hxnnZcZ6{cursor:grabbing}.dialogAnimatedAppearance-hxnnZcZ6{animation-duration:.3s;animation-name:dialogAnimation-hxnnZcZ6;transform-origin:100% 0}@keyframes dialogAnimation-hxnnZcZ6{0%{opacity:0;transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0)}to{opacity:1;transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1)}}.dialogTooltip-hxnnZcZ6{color:#fff;font-size:14px;line-height:21px;max-width:540px;position:absolute;right:50%;top:-20px;transform:translateX(50%);width:max-content}@media screen and (max-width:768px){.dialogTooltip-hxnnZcZ6{max-width:240px}} \ No newline at end of file diff --git a/charting_library/bundles/4958ef32c0c1820de94cfe8a01f2f1cf.svg b/charting_library/bundles/4958ef32c0c1820de94cfe8a01f2f1cf.svg new file mode 100644 index 00000000..16487c3d --- /dev/null +++ b/charting_library/bundles/4958ef32c0c1820de94cfe8a01f2f1cf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/49d1ea5b7ccbfbae29bbc21c506e617c.svg b/charting_library/bundles/49d1ea5b7ccbfbae29bbc21c506e617c.svg new file mode 100644 index 00000000..8400044d --- /dev/null +++ b/charting_library/bundles/49d1ea5b7ccbfbae29bbc21c506e617c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4aaf8ecd499671f5404f7355e9b94ffa.svg b/charting_library/bundles/4aaf8ecd499671f5404f7355e9b94ffa.svg new file mode 100644 index 00000000..4eb21d3a --- /dev/null +++ b/charting_library/bundles/4aaf8ecd499671f5404f7355e9b94ffa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4bba9cb57057b411f436fdcb98ab3e32.svg b/charting_library/bundles/4bba9cb57057b411f436fdcb98ab3e32.svg new file mode 100644 index 00000000..eca10187 --- /dev/null +++ b/charting_library/bundles/4bba9cb57057b411f436fdcb98ab3e32.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4bc8348594c9430c735366fc72d9f36b.svg b/charting_library/bundles/4bc8348594c9430c735366fc72d9f36b.svg new file mode 100644 index 00000000..025b0158 --- /dev/null +++ b/charting_library/bundles/4bc8348594c9430c735366fc72d9f36b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4bd2362d901778b20ccc963f023833f6.svg b/charting_library/bundles/4bd2362d901778b20ccc963f023833f6.svg new file mode 100644 index 00000000..9002bf48 --- /dev/null +++ b/charting_library/bundles/4bd2362d901778b20ccc963f023833f6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4c2b4fdaa4afbe49682badbe3e6d5092.svg b/charting_library/bundles/4c2b4fdaa4afbe49682badbe3e6d5092.svg new file mode 100644 index 00000000..931401d0 --- /dev/null +++ b/charting_library/bundles/4c2b4fdaa4afbe49682badbe3e6d5092.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4f21dea2767b186965157eba97f085b2.svg b/charting_library/bundles/4f21dea2767b186965157eba97f085b2.svg new file mode 100644 index 00000000..9e6a3ec9 --- /dev/null +++ b/charting_library/bundles/4f21dea2767b186965157eba97f085b2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/4f7347b954545a7137c5b906707789e6.svg b/charting_library/bundles/4f7347b954545a7137c5b906707789e6.svg new file mode 100644 index 00000000..7dbf983d --- /dev/null +++ b/charting_library/bundles/4f7347b954545a7137c5b906707789e6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5030.f9501920ecfa388929c3.css b/charting_library/bundles/5030.f9501920ecfa388929c3.css new file mode 100644 index 00000000..b94eed61 --- /dev/null +++ b/charting_library/bundles/5030.f9501920ecfa388929c3.css @@ -0,0 +1 @@ +.dialog-tq2E4Gaq{overflow-x:hidden;overflow-y:auto;position:relative}.container-tq2E4Gaq{display:flex;flex-flow:column nowrap;height:100%;justify-content:space-between;padding:40px 20px 20px}@media screen and (min-width:568px){.container-tq2E4Gaq{height:auto;padding:40px}}.closeButton-tq2E4Gaq{cursor:pointer;right:17px;top:17px}.header-tq2E4Gaq{align-items:center;display:flex;flex-flow:column nowrap;margin-bottom:8px}@media screen and (min-width:568px){.header-tq2E4Gaq{margin-bottom:16px}}.image-tq2E4Gaq{height:120px;margin-bottom:24px;width:120px}.title-tq2E4Gaq{color:#131722;font-size:28px;font-style:normal;font-weight:600;line-height:36px;width:100%}html.theme-dark .title-tq2E4Gaq{color:#d1d4dc}@media screen and (min-width:568px){.title-tq2E4Gaq{font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-align:center}}.main-content-tq2E4Gaq{color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:32px}html.theme-dark .main-content-tq2E4Gaq{color:#d1d4dc}@media screen and (min-width:568px){.main-content-tq2E4Gaq{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:40px}}.list-tq2E4Gaq,.paragraph-tq2E4Gaq{margin-bottom:10px}.list-tq2E4Gaq:last-child,.paragraph-tq2E4Gaq:last-child{margin-bottom:0}.list-tq2E4Gaq{margin-top:16px}.list-item-tq2E4Gaq{margin-bottom:12px;margin-left:20px}.list-item-tq2E4Gaq:last-child{margin-bottom:0}@media screen and (min-width:568px){.list-item-tq2E4Gaq{margin-left:30px}}.strong-tq2E4Gaq{color:#131722;font-weight:700}html.theme-dark .strong-tq2E4Gaq{color:#f0f3fa}.actions-tq2E4Gaq{display:flex;flex-flow:column-reverse nowrap}.button-content-tq2E4Gaq{display:flex;margin:auto}.button-tq2E4Gaq{margin-bottom:8px}.button-tq2E4Gaq:first-child{margin-bottom:0}@media screen and (min-width:568px){.button-tq2E4Gaq{margin-bottom:16px}.button-tq2E4Gaq:last-child{margin-right:0}}.countDown-tq2E4Gaq{display:flex;justify-content:center;margin:24px 0 40px} \ No newline at end of file diff --git a/charting_library/bundles/5030.f9501920ecfa388929c3.rtl.css b/charting_library/bundles/5030.f9501920ecfa388929c3.rtl.css new file mode 100644 index 00000000..8d6716c2 --- /dev/null +++ b/charting_library/bundles/5030.f9501920ecfa388929c3.rtl.css @@ -0,0 +1 @@ +.dialog-tq2E4Gaq{overflow-x:hidden;overflow-y:auto;position:relative}.container-tq2E4Gaq{display:flex;flex-flow:column nowrap;height:100%;justify-content:space-between;padding:40px 20px 20px}@media screen and (min-width:568px){.container-tq2E4Gaq{height:auto;padding:40px}}.closeButton-tq2E4Gaq{cursor:pointer;left:17px;top:17px}.header-tq2E4Gaq{align-items:center;display:flex;flex-flow:column nowrap;margin-bottom:8px}@media screen and (min-width:568px){.header-tq2E4Gaq{margin-bottom:16px}}.image-tq2E4Gaq{height:120px;margin-bottom:24px;width:120px}.title-tq2E4Gaq{color:#131722;font-size:28px;font-style:normal;font-weight:600;line-height:36px;width:100%}html.theme-dark .title-tq2E4Gaq{color:#d1d4dc}@media screen and (min-width:568px){.title-tq2E4Gaq{font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-align:center}}.main-content-tq2E4Gaq{color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:32px}html.theme-dark .main-content-tq2E4Gaq{color:#d1d4dc}@media screen and (min-width:568px){.main-content-tq2E4Gaq{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:40px}}.list-tq2E4Gaq,.paragraph-tq2E4Gaq{margin-bottom:10px}.list-tq2E4Gaq:last-child,.paragraph-tq2E4Gaq:last-child{margin-bottom:0}.list-tq2E4Gaq{margin-top:16px}.list-item-tq2E4Gaq{margin-bottom:12px;margin-right:20px}.list-item-tq2E4Gaq:last-child{margin-bottom:0}@media screen and (min-width:568px){.list-item-tq2E4Gaq{margin-right:30px}}.strong-tq2E4Gaq{color:#131722;font-weight:700}html.theme-dark .strong-tq2E4Gaq{color:#f0f3fa}.actions-tq2E4Gaq{display:flex;flex-flow:column-reverse nowrap}.button-content-tq2E4Gaq{display:flex;margin:auto}.button-tq2E4Gaq{margin-bottom:8px}.button-tq2E4Gaq:first-child{margin-bottom:0}@media screen and (min-width:568px){.button-tq2E4Gaq{margin-bottom:16px}.button-tq2E4Gaq:last-child{margin-left:0}}.countDown-tq2E4Gaq{display:flex;justify-content:center;margin:24px 0 40px} \ No newline at end of file diff --git a/charting_library/bundles/5064.1f384128ead8182b3a33.css b/charting_library/bundles/5064.1f384128ead8182b3a33.css new file mode 100644 index 00000000..91c0381f --- /dev/null +++ b/charting_library/bundles/5064.1f384128ead8182b3a33.css @@ -0,0 +1 @@ +.toast-positioning-wrapper-uEa3054V{bottom:0;max-width:100%;position:absolute;transition:transform .25s ease-in-out,opacity .25s ease-in-out;width:max-content}.toast-positioning-wrapper-uEa3054V.compact-uEa3054V{width:100%}.toast-positioning-wrapper-uEa3054V.location-bottom-left-uEa3054V{left:0}.toast-positioning-wrapper-uEa3054V.location-bottom-right-uEa3054V{right:0}.hidden-uEa3054V{opacity:0}.added-uEa3054V{transition-duration:0s}.toast-wrapper-LaQcqQbu{margin:0 16px 8px}.toast-wrapper-LaQcqQbu.compact-LaQcqQbu{margin:0 4px 4px} \ No newline at end of file diff --git a/charting_library/bundles/5064.1f384128ead8182b3a33.rtl.css b/charting_library/bundles/5064.1f384128ead8182b3a33.rtl.css new file mode 100644 index 00000000..c2f5fbd9 --- /dev/null +++ b/charting_library/bundles/5064.1f384128ead8182b3a33.rtl.css @@ -0,0 +1 @@ +.toast-positioning-wrapper-uEa3054V{bottom:0;max-width:100%;position:absolute;transition:transform .25s ease-in-out,opacity .25s ease-in-out;width:max-content}.toast-positioning-wrapper-uEa3054V.compact-uEa3054V{width:100%}.toast-positioning-wrapper-uEa3054V.location-bottom-left-uEa3054V{right:0}.toast-positioning-wrapper-uEa3054V.location-bottom-right-uEa3054V{left:0}.hidden-uEa3054V{opacity:0}.added-uEa3054V{transition-duration:0s}.toast-wrapper-LaQcqQbu{margin:0 16px 8px}.toast-wrapper-LaQcqQbu.compact-LaQcqQbu{margin:0 4px 4px} \ No newline at end of file diff --git a/charting_library/bundles/5069.3451a537bfe99e8c44be.css b/charting_library/bundles/5069.3451a537bfe99e8c44be.css new file mode 100644 index 00000000..c1cf6f29 --- /dev/null +++ b/charting_library/bundles/5069.3451a537bfe99e8c44be.css @@ -0,0 +1 @@ +.popupDialog-1s1uy4Yi{max-width:450px}.content-1s1uy4Yi .row-1s1uy4Yi{display:flex;padding-bottom:12px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi{font-size:13px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#868993}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#787b86}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#434651;font-weight:700}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#d1d4dc}.content-1s1uy4Yi .row-1s1uy4Yi .columnTitle-1s1uy4Yi{text-align:left}.content-1s1uy4Yi .row-1s1uy4Yi .columnValue-1s1uy4Yi{margin-left:auto;text-align:right} \ No newline at end of file diff --git a/charting_library/bundles/5069.3451a537bfe99e8c44be.rtl.css b/charting_library/bundles/5069.3451a537bfe99e8c44be.rtl.css new file mode 100644 index 00000000..122a4bc1 --- /dev/null +++ b/charting_library/bundles/5069.3451a537bfe99e8c44be.rtl.css @@ -0,0 +1 @@ +.popupDialog-1s1uy4Yi{max-width:450px}.content-1s1uy4Yi .row-1s1uy4Yi{display:flex;padding-bottom:12px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi{font-size:13px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#868993}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#787b86}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#434651;font-weight:700}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#d1d4dc}.content-1s1uy4Yi .row-1s1uy4Yi .columnTitle-1s1uy4Yi{text-align:right}.content-1s1uy4Yi .row-1s1uy4Yi .columnValue-1s1uy4Yi{margin-right:auto;text-align:left} \ No newline at end of file diff --git a/charting_library/bundles/509.2aa31cf384069ff4cd5e.css b/charting_library/bundles/509.2aa31cf384069ff4cd5e.css new file mode 100644 index 00000000..ef6f83a8 --- /dev/null +++ b/charting_library/bundles/509.2aa31cf384069ff4cd5e.css @@ -0,0 +1 @@ +.tv-button{fill:currentColor;-webkit-tap-highlight-color:transparent;background-color:initial;border:none;border-radius:4px;box-sizing:border-box;color:#757575;cursor:pointer;display:inline-block;font-size:14px;line-height:32px;margin:0;min-width:40px;outline:0;overflow:hidden;padding:1px 22px;position:relative;text-align:center;text-decoration:none;transition:background-color .35s ease,border-color .35s ease,color .35s ease;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;text-align:center;width:100%}.tv-button+.tv-button{margin-left:15px}.tv-button.tv-button--no-left-margin{margin-left:0}.tv-button__text{display:inline-block;position:relative}.tv-button__text--full-height{word-wrap:break-word;align-items:center;display:flex;height:100%;justify-content:center;line-height:1.2em;margin:11px 5px;white-space:normal;width:100%}.tv-button--default,.tv-button--default_ghost,a.tv-button--default:visited{background-color:#fff;border-color:#fff;color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost,html.theme-dark a.tv-button--default:visited{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{background-color:#fff;border-color:#fff;color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{background-color:#ececec;border-color:#ececec;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#fff}@media (any-hover:hover){.tv-button--default:hover,.tv-button--default_ghost:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#fff}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1e222d}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1e222d}}.tv-button--default_ghost .tv-button__loader-item{background-color:#e0e3eb}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1e222d}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{border:1px solid #b2b5be;color:#6a6d78}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363a45;color:#787b86}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{border-color:#b2b5be;color:#6a6d78}@media (any-hover:hover){.tv-button--default:hover,.tv-button--default_ghost:hover{border-color:#b2b5be;color:#6a6d78}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363a45}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#787b86}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#787b86}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{border-color:#b2b5be;color:#6a6d78}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363a45;color:#787b86}.tv-button--primary,.tv-button--primary_ghost,a.tv-button--primary:visited{background-color:#2962ff;border-color:#2962ff;color:#fff}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost,html.theme-dark a.tv-button--primary:visited{background-color:#2962ff;border-color:#2962ff;color:#fff}.tv-button--primary_ghost,html.theme-dark .tv-button--primary_ghost{color:#2962ff}.tv-button--primary_ghost.i-checked{background-color:#2962ff;border-color:#2962ff;color:#fff}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#2962ff;border-color:#2962ff;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{background-color:#1848cc;border-color:#1848cc;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1848cc;border-color:#1848cc;color:#fff}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}@media (any-hover:hover){.tv-button--primary:hover,.tv-button--primary_ghost:hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e53e5}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e53e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e53e5}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e53e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e53e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost,a.tv-button--secondary:visited{background-color:#e9eff2;border-color:#e9eff2;color:#757575}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{background-color:#e9eff2;border-color:#e9eff2;color:#757575}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{background-color:#cfdce3;border-color:#cfdce3;color:#757575;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{background-color:#dce6ea;border-color:#dce6ea;color:#757575}@media (any-hover:hover){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{background-color:#dce6ea;border-color:#dce6ea;color:#757575}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost,a.tv-button--success:visited{background-color:#089981;border-color:#089981;color:#fff}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost,html.theme-dark a.tv-button--success:visited{background-color:#056656;border-color:#056656;color:#fff}.tv-button--success_ghost{color:#089981}html.theme-dark .tv-button--success_ghost{color:#056656}.tv-button--success_ghost.i-checked{background-color:#089981;border-color:#089981;color:#fff}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#056656;border-color:#056656;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{background-color:#056656;border-color:#056656;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#089981;border-color:#089981;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{background-color:#06806b;border-color:#06806b;color:#fff}@media (any-hover:hover){.tv-button--success:hover,.tv-button--success_ghost:hover{background-color:#06806b;border-color:#06806b;color:#fff}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#06806b}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#06806b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#06806b}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#06806b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#06806b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost,a.tv-button--danger:visited{background-color:#f7525f;border-color:#f7525f;color:#fff}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost,html.theme-dark a.tv-button--danger:visited{background-color:#b22833;border-color:#b22833;color:#fff}.tv-button--danger_ghost{color:#f7525f}html.theme-dark .tv-button--danger_ghost{color:#b22833}.tv-button--danger_ghost.i-checked{background-color:#f7525f;border-color:#f7525f;color:#fff}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#b22833;border-color:#b22833;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{background-color:#b22833;border-color:#b22833;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f23645;border-color:#f23645;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{background-color:#cc2f3c;border-color:#cc2f3c;color:#fff}@media (any-hover:hover){.tv-button--danger:hover,.tv-button--danger_ghost:hover{background-color:#cc2f3c;border-color:#cc2f3c;color:#fff}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#cc2f3c}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#cc2f3c}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#cc2f3c}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#cc2f3c}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#cc2f3c}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost,a.tv-button--warning:visited{background-color:#f89e30;border-color:#f89e30;color:#fff}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{background-color:#f89e30;border-color:#f89e30;color:#fff}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{background-color:#d47807;border-color:#d47807;color:#fff;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{background-color:#f79217;border-color:#f79217;color:#fff}@media (any-hover:hover){.tv-button--warning:hover,.tv-button--warning_ghost:hover{background-color:#f79217;border-color:#f79217;color:#fff}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-button--link{color:#2962ff}.tv-button--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-button--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-button--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-button--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-button--link:active{fill:#1848cc;color:#1848cc}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{background-color:initial;border-style:solid;border-width:1px}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:initial}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:#ffffff40}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:#75869640}.tv-button.i-disabled .tv-ripple{background-color:initial}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;cursor:default}@media (any-hover:hover){.tv-button.i-disabled:hover,.tv-button:disabled:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;cursor:default}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{border-radius:1px;font-size:11px;font-weight:400;line-height:15px;padding:2px 7px}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-left:10px}.tv-button--size_small{font-size:13px;line-height:25px;padding:1px 12px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-left:10px}.tv-button--size_large{font-size:17px;line-height:44px;padding:1px 30px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{border-radius:120px;font-size:24px;line-height:54px;padding:1px 40px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{background:#0000;border-style:solid;border-width:1px;text-align:center}html.theme-dark .tv-button--state{background:#0000}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{background-color:initial;color:#089981}html.theme-dark .tv-button--state.tv-button--success{background-color:initial;color:#056656}.tv-button--state.tv-button--success.i-checked{background-color:#089981;color:#fff}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#056656;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--success:hover{background-color:#06806b;color:#fff}html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#06806b;color:#fff}}.tv-button--state.tv-button--success:active{background-color:#056656;color:#fff}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#089981;color:#fff}.tv-button--state.tv-button--danger{background-color:initial;color:#f7525f}html.theme-dark .tv-button--state.tv-button--danger{background-color:initial;color:#b22833}.tv-button--state.tv-button--danger.i-checked{background-color:#ff4a68;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--danger:hover{background-color:#f24965;color:#fff}}.tv-button--state.tv-button--danger:active{background-color:#ff173e;color:#fff}.tv-button--state.tv-button--primary{background-color:initial;color:#2962ff}html.theme-dark .tv-button--state.tv-button--primary{background-color:initial;color:#2962ff}.tv-button--state.tv-button--primary.i-checked{background-color:#2962ff;color:#fff}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#2962ff;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--primary:hover{background-color:#1e53e5;color:#fff}html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e53e5;color:#fff}}.tv-button--state.tv-button--primary:active{background-color:#1848cc;color:#fff}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1848cc;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:initial;color:#2962ff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:initial;color:#2962ff}@media (any-hover:hover){.tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e53e5;color:#fff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e53e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1848cc;color:#fff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1848cc;color:#fff}.tv-button--state.tv-button--secondary{background-color:initial;color:#757575}.tv-button--state.tv-button--secondary.i-checked{background-color:#e9eff2;color:#757575}@media (any-hover:hover){.tv-button--state.tv-button--secondary:hover{background-color:#dce6ea;color:#757575}}.tv-button--state.tv-button--secondary:active{background-color:#cfdce3;color:#757575}.tv-button--state.tv-button--warning{background-color:initial;color:#f89e30}.tv-button--state.tv-button--warning.i-checked{background-color:#f89e30;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--warning:hover{background-color:#f79217;color:#fff}}.tv-button--state.tv-button--warning:active{background-color:#d47807;color:#fff}.tv-button--state.tv-button--icon-with-text svg{margin-bottom:-8px;margin-right:6px;vertical-align:unset}.tv-button--icon{align-items:center;display:inline-flex;height:34px;justify-content:center;min-width:auto;padding:0!important;width:34px}.tv-button--icon.tv-button--size_xsmall{height:19px;width:19px}.tv-button--icon.tv-button--size_small{height:27px;width:27px}.tv-button--icon.tv-button--size_large{height:46px;width:46px}.tv-button__icon{display:flex;margin-right:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{bottom:0;font-size:0;height:100%;left:0;margin:0 auto;opacity:0;position:absolute;right:0;text-align:center;top:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{background-color:#fff;border-radius:100%;display:inline-block;height:10px;margin-left:2px;margin-right:2px;opacity:0;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease;vertical-align:middle;width:10px}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s ease-in-out infinite both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-bottom-left-radius:0;border-top-left-radius:0}.tv-button--connect_right{border-bottom-right-radius:0;border-top-right-radius:0}.tv-button--with-icon{align-items:center;display:inline-flex;transform:translate(0)}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}} \ No newline at end of file diff --git a/charting_library/bundles/509.2aa31cf384069ff4cd5e.rtl.css b/charting_library/bundles/509.2aa31cf384069ff4cd5e.rtl.css new file mode 100644 index 00000000..937d4c23 --- /dev/null +++ b/charting_library/bundles/509.2aa31cf384069ff4cd5e.rtl.css @@ -0,0 +1 @@ +.tv-button{fill:currentColor;-webkit-tap-highlight-color:transparent;background-color:initial;border:none;border-radius:4px;box-sizing:border-box;color:#757575;cursor:pointer;display:inline-block;font-size:14px;line-height:32px;margin:0;min-width:40px;outline:0;overflow:hidden;padding:1px 22px;position:relative;text-align:center;text-decoration:none;transition:background-color .35s ease,border-color .35s ease,color .35s ease;-webkit-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;text-align:center;width:100%}.tv-button+.tv-button{margin-right:15px}.tv-button.tv-button--no-left-margin{margin-right:0}.tv-button__text{display:inline-block;position:relative}.tv-button__text--full-height{word-wrap:break-word;align-items:center;display:flex;height:100%;justify-content:center;line-height:1.2em;margin:11px 5px;white-space:normal;width:100%}.tv-button--default,.tv-button--default_ghost,a.tv-button--default:visited{background-color:#fff;border-color:#fff;color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost,html.theme-dark a.tv-button--default:visited{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{background-color:#fff;border-color:#fff;color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{background-color:#ececec;border-color:#ececec;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#fff}@media (any-hover:hover){.tv-button--default:hover,.tv-button--default_ghost:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#fff}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1e222d}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1e222d}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1e222d}}.tv-button--default_ghost .tv-button__loader-item{background-color:#e0e3eb}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1e222d}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{border:1px solid #b2b5be;color:#6a6d78}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363a45;color:#787b86}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{border-color:#b2b5be;color:#6a6d78}@media (any-hover:hover){.tv-button--default:hover,.tv-button--default_ghost:hover{border-color:#b2b5be;color:#6a6d78}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363a45}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#787b86}@media (any-hover:hover){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#787b86}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{border-color:#b2b5be;color:#6a6d78}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363a45;color:#787b86}.tv-button--primary,.tv-button--primary_ghost,a.tv-button--primary:visited{background-color:#2962ff;border-color:#2962ff;color:#fff}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost,html.theme-dark a.tv-button--primary:visited{background-color:#2962ff;border-color:#2962ff;color:#fff}.tv-button--primary_ghost,html.theme-dark .tv-button--primary_ghost{color:#2962ff}.tv-button--primary_ghost.i-checked{background-color:#2962ff;border-color:#2962ff;color:#fff}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#2962ff;border-color:#2962ff;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{background-color:#1848cc;border-color:#1848cc;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1848cc;border-color:#1848cc;color:#fff}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}@media (any-hover:hover){.tv-button--primary:hover,.tv-button--primary_ghost:hover{background-color:#1e53e5;border-color:#1e53e5;color:#fff}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e53e5}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e53e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e53e5}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e53e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e53e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost,a.tv-button--secondary:visited{background-color:#e9eff2;border-color:#e9eff2;color:#757575}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{background-color:#e9eff2;border-color:#e9eff2;color:#757575}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{background-color:#cfdce3;border-color:#cfdce3;color:#757575;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{background-color:#dce6ea;border-color:#dce6ea;color:#757575}@media (any-hover:hover){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{background-color:#dce6ea;border-color:#dce6ea;color:#757575}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost,a.tv-button--success:visited{background-color:#089981;border-color:#089981;color:#fff}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost,html.theme-dark a.tv-button--success:visited{background-color:#056656;border-color:#056656;color:#fff}.tv-button--success_ghost{color:#089981}html.theme-dark .tv-button--success_ghost{color:#056656}.tv-button--success_ghost.i-checked{background-color:#089981;border-color:#089981;color:#fff}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#056656;border-color:#056656;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{background-color:#056656;border-color:#056656;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#089981;border-color:#089981;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{background-color:#06806b;border-color:#06806b;color:#fff}@media (any-hover:hover){.tv-button--success:hover,.tv-button--success_ghost:hover{background-color:#06806b;border-color:#06806b;color:#fff}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#06806b}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#06806b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#06806b}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#06806b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#06806b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost,a.tv-button--danger:visited{background-color:#f7525f;border-color:#f7525f;color:#fff}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost,html.theme-dark a.tv-button--danger:visited{background-color:#b22833;border-color:#b22833;color:#fff}.tv-button--danger_ghost{color:#f7525f}html.theme-dark .tv-button--danger_ghost{color:#b22833}.tv-button--danger_ghost.i-checked{background-color:#f7525f;border-color:#f7525f;color:#fff}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#b22833;border-color:#b22833;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{background-color:#b22833;border-color:#b22833;color:#fff;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f23645;border-color:#f23645;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{background-color:#cc2f3c;border-color:#cc2f3c;color:#fff}@media (any-hover:hover){.tv-button--danger:hover,.tv-button--danger_ghost:hover{background-color:#cc2f3c;border-color:#cc2f3c;color:#fff}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#cc2f3c}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#cc2f3c}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#cc2f3c}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#cc2f3c}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#cc2f3c}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost,a.tv-button--warning:visited{background-color:#f89e30;border-color:#f89e30;color:#fff}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{background-color:#f89e30;border-color:#f89e30;color:#fff}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{background-color:#d47807;border-color:#d47807;color:#fff;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{background-color:#f79217;border-color:#f79217;color:#fff}@media (any-hover:hover){.tv-button--warning:hover,.tv-button--warning_ghost:hover{background-color:#f79217;border-color:#f79217;color:#fff}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-button--link{color:#2962ff}.tv-button--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-button--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-button--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-button--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-button--link:active{fill:#1848cc;color:#1848cc}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{background-color:initial;border-style:solid;border-width:1px}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:initial}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:#ffffff40}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:#75869640}.tv-button.i-disabled .tv-ripple{background-color:initial}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;cursor:default}@media (any-hover:hover){.tv-button.i-disabled:hover,.tv-button:disabled:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;cursor:default}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{border-radius:1px;font-size:11px;font-weight:400;line-height:15px;padding:2px 7px}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-right:10px}.tv-button--size_small{font-size:13px;line-height:25px;padding:1px 12px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-right:10px}.tv-button--size_large{font-size:17px;line-height:44px;padding:1px 30px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{border-radius:120px;font-size:24px;line-height:54px;padding:1px 40px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{background:#0000;border-style:solid;border-width:1px;text-align:center}html.theme-dark .tv-button--state{background:#0000}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{background-color:initial;color:#089981}html.theme-dark .tv-button--state.tv-button--success{background-color:initial;color:#056656}.tv-button--state.tv-button--success.i-checked{background-color:#089981;color:#fff}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#056656;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--success:hover{background-color:#06806b;color:#fff}html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#06806b;color:#fff}}.tv-button--state.tv-button--success:active{background-color:#056656;color:#fff}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#089981;color:#fff}.tv-button--state.tv-button--danger{background-color:initial;color:#f7525f}html.theme-dark .tv-button--state.tv-button--danger{background-color:initial;color:#b22833}.tv-button--state.tv-button--danger.i-checked{background-color:#ff4a68;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--danger:hover{background-color:#f24965;color:#fff}}.tv-button--state.tv-button--danger:active{background-color:#ff173e;color:#fff}.tv-button--state.tv-button--primary{background-color:initial;color:#2962ff}html.theme-dark .tv-button--state.tv-button--primary{background-color:initial;color:#2962ff}.tv-button--state.tv-button--primary.i-checked{background-color:#2962ff;color:#fff}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#2962ff;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--primary:hover{background-color:#1e53e5;color:#fff}html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e53e5;color:#fff}}.tv-button--state.tv-button--primary:active{background-color:#1848cc;color:#fff}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1848cc;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:initial;color:#2962ff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:initial;color:#2962ff}@media (any-hover:hover){.tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e53e5;color:#fff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e53e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1848cc;color:#fff}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1848cc;color:#fff}.tv-button--state.tv-button--secondary{background-color:initial;color:#757575}.tv-button--state.tv-button--secondary.i-checked{background-color:#e9eff2;color:#757575}@media (any-hover:hover){.tv-button--state.tv-button--secondary:hover{background-color:#dce6ea;color:#757575}}.tv-button--state.tv-button--secondary:active{background-color:#cfdce3;color:#757575}.tv-button--state.tv-button--warning{background-color:initial;color:#f89e30}.tv-button--state.tv-button--warning.i-checked{background-color:#f89e30;color:#fff}@media (any-hover:hover){.tv-button--state.tv-button--warning:hover{background-color:#f79217;color:#fff}}.tv-button--state.tv-button--warning:active{background-color:#d47807;color:#fff}.tv-button--state.tv-button--icon-with-text svg{margin-bottom:-8px;margin-left:6px;vertical-align:unset}.tv-button--icon{align-items:center;display:inline-flex;height:34px;justify-content:center;min-width:auto;padding:0!important;width:34px}.tv-button--icon.tv-button--size_xsmall{height:19px;width:19px}.tv-button--icon.tv-button--size_small{height:27px;width:27px}.tv-button--icon.tv-button--size_large{height:46px;width:46px}.tv-button__icon{display:flex;margin-left:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{bottom:0;font-size:0;height:100%;left:0;margin:0 auto;opacity:0;position:absolute;right:0;text-align:center;top:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{background-color:#fff;border-radius:100%;display:inline-block;height:10px;margin-left:2px;margin-right:2px;opacity:0;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease;vertical-align:middle;width:10px}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s ease-in-out infinite both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-bottom-right-radius:0;border-top-right-radius:0}.tv-button--connect_right{border-bottom-left-radius:0;border-top-left-radius:0}.tv-button--with-icon{align-items:center;display:inline-flex;transform:translate(0)}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}} \ No newline at end of file diff --git a/charting_library/bundles/5096c47e88bb219a61b3192d3f3ee85c.svg b/charting_library/bundles/5096c47e88bb219a61b3192d3f3ee85c.svg new file mode 100644 index 00000000..20bf8a45 --- /dev/null +++ b/charting_library/bundles/5096c47e88bb219a61b3192d3f3ee85c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5097be3164fb04ace2889628055b01cb.webp b/charting_library/bundles/5097be3164fb04ace2889628055b01cb.webp new file mode 100644 index 00000000..a77b8b21 Binary files /dev/null and b/charting_library/bundles/5097be3164fb04ace2889628055b01cb.webp differ diff --git a/charting_library/bundles/3402.82d9d45c3fb1eae5b64d.css b/charting_library/bundles/5113.955b6e89f78634daaa87.css similarity index 81% rename from charting_library/bundles/3402.82d9d45c3fb1eae5b64d.css rename to charting_library/bundles/5113.955b6e89f78634daaa87.css index 0b458ff3..2b712bf8 100644 --- a/charting_library/bundles/3402.82d9d45c3fb1eae5b64d.css +++ b/charting_library/bundles/5113.955b6e89f78634daaa87.css @@ -1 +1 @@ -.container-vZPBcQQO{align-items:flex-start;background:#2962ff;border-radius:4px;cursor:default;display:flex;overflow:auto;padding:8px}html.theme-dark .container-vZPBcQQO{background:#2962ff}.content-vZPBcQQO{padding:4px 8px}.arrowHolder-vZPBcQQO{position:absolute}.arrowHolder-vZPBcQQO:after{border:0 solid #2962ff;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-vZPBcQQO:after{border-color:#2962ff}.arrowHolder--above-vZPBcQQO:after,.arrowHolder--below-vZPBcQQO:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-vZPBcQQO:after,html.theme-dark .arrowHolder--below-vZPBcQQO:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-vZPBcQQO:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-vZPBcQQO:after{border-top-width:4px;top:100%}.arrowHolder--after-vZPBcQQO:after,.arrowHolder--before-vZPBcQQO:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-vZPBcQQO:after,html.theme-dark .arrowHolder--before-vZPBcQQO:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-vZPBcQQO:after{border-right-width:4px;right:100%}.arrowHolder--after-vZPBcQQO:after{border-left-width:4px;left:100%}.arrowHolder--above-fix-vZPBcQQO{bottom:0}.arrowHolder--after-ltr-fix-vZPBcQQO{right:0}.label-vZPBcQQO{display:flex;flex:1 1 auto;margin-right:24px}.closeButton-vZPBcQQO{color:#fff}.container-4Rvuptlt{bottom:70px;display:flex;justify-content:center;left:10px;pointer-events:none;position:absolute;right:10px}.centerElement-4Rvuptlt{pointer-events:auto;z-index:1}.text-4Rvuptlt{word-wrap:break-word;color:#fff;font-size:14px;line-height:21px;margin-bottom:auto} \ No newline at end of file +.container-vZPBcQQO{align-items:flex-start;background:#2962ff;border-radius:4px;cursor:default;display:flex;overflow:auto;padding:8px}html.theme-dark .container-vZPBcQQO{background:#2962ff}.content-vZPBcQQO{padding:4px 8px}.arrowHolder-vZPBcQQO{position:absolute}.arrowHolder-vZPBcQQO:after{border:0 solid #2962ff;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-vZPBcQQO:after{border-color:#2962ff}.arrowHolder--above-vZPBcQQO:after,.arrowHolder--below-vZPBcQQO:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-vZPBcQQO:after,html.theme-dark .arrowHolder--below-vZPBcQQO:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-vZPBcQQO:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-vZPBcQQO:after{border-top-width:4px;top:100%}.arrowHolder--after-vZPBcQQO:after,.arrowHolder--before-vZPBcQQO:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-vZPBcQQO:after,html.theme-dark .arrowHolder--before-vZPBcQQO:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-vZPBcQQO:after{border-right-width:4px;right:100%}.arrowHolder--after-vZPBcQQO:after{border-left-width:4px;left:100%}.arrowHolder--above-fix-vZPBcQQO{bottom:0}.arrowHolder--after-ltr-fix-vZPBcQQO{right:0}.label-vZPBcQQO{display:flex;flex:1 1 auto;margin-right:24px}.closeButton-vZPBcQQO{color:#fff} \ No newline at end of file diff --git a/charting_library/bundles/3402.82d9d45c3fb1eae5b64d.rtl.css b/charting_library/bundles/5113.955b6e89f78634daaa87.rtl.css similarity index 83% rename from charting_library/bundles/3402.82d9d45c3fb1eae5b64d.rtl.css rename to charting_library/bundles/5113.955b6e89f78634daaa87.rtl.css index f7d9dd7f..9cf1c288 100644 --- a/charting_library/bundles/3402.82d9d45c3fb1eae5b64d.rtl.css +++ b/charting_library/bundles/5113.955b6e89f78634daaa87.rtl.css @@ -1 +1 @@ -.container-vZPBcQQO{align-items:flex-start;background:#2962ff;border-radius:4px;cursor:default;display:flex;overflow:auto;padding:8px}html.theme-dark .container-vZPBcQQO{background:#2962ff}.content-vZPBcQQO{padding:4px 8px}.arrowHolder-vZPBcQQO{position:absolute}.arrowHolder-vZPBcQQO:after{border:0 solid #2962ff;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-vZPBcQQO:after{border-color:#2962ff}.arrowHolder--above-vZPBcQQO:after,.arrowHolder--below-vZPBcQQO:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-vZPBcQQO:after,html.theme-dark .arrowHolder--below-vZPBcQQO:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-vZPBcQQO:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-vZPBcQQO:after{border-top-width:4px;top:100%}.arrowHolder--after-vZPBcQQO:after,.arrowHolder--before-vZPBcQQO:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-vZPBcQQO:after,html.theme-dark .arrowHolder--before-vZPBcQQO:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-vZPBcQQO:after{border-right-width:4px;right:100%}.arrowHolder--after-vZPBcQQO:after{border-left-width:4px;left:100%}.arrowHolder--above-fix-vZPBcQQO{bottom:0}.arrowHolder--before-rtl-fix-vZPBcQQO{left:0}.arrowHolder--after-ltr-fix-vZPBcQQO{right:0}.label-vZPBcQQO{display:flex;flex:1 1 auto;margin-left:24px}.closeButton-vZPBcQQO{color:#fff}.container-4Rvuptlt{bottom:70px;display:flex;justify-content:center;left:10px;pointer-events:none;position:absolute;right:10px}.centerElement-4Rvuptlt{pointer-events:auto;z-index:1}.text-4Rvuptlt{word-wrap:break-word;color:#fff;font-size:14px;line-height:21px;margin-bottom:auto} \ No newline at end of file +.container-vZPBcQQO{align-items:flex-start;background:#2962ff;border-radius:4px;cursor:default;display:flex;overflow:auto;padding:8px}html.theme-dark .container-vZPBcQQO{background:#2962ff}.content-vZPBcQQO{padding:4px 8px}.arrowHolder-vZPBcQQO{position:absolute}.arrowHolder-vZPBcQQO:after{border:0 solid #2962ff;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-vZPBcQQO:after{border-color:#2962ff}.arrowHolder--above-vZPBcQQO:after,.arrowHolder--below-vZPBcQQO:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-vZPBcQQO:after,html.theme-dark .arrowHolder--below-vZPBcQQO:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-vZPBcQQO:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-vZPBcQQO:after{border-top-width:4px;top:100%}.arrowHolder--after-vZPBcQQO:after,.arrowHolder--before-vZPBcQQO:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-vZPBcQQO:after,html.theme-dark .arrowHolder--before-vZPBcQQO:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-vZPBcQQO:after{border-right-width:4px;right:100%}.arrowHolder--after-vZPBcQQO:after{border-left-width:4px;left:100%}.arrowHolder--above-fix-vZPBcQQO{bottom:0}.arrowHolder--before-rtl-fix-vZPBcQQO{left:0}.arrowHolder--after-ltr-fix-vZPBcQQO{right:0}.label-vZPBcQQO{display:flex;flex:1 1 auto;margin-left:24px}.closeButton-vZPBcQQO{color:#fff} \ No newline at end of file diff --git a/charting_library/bundles/516336a4fcc5f7b651673adeedd38b68.svg b/charting_library/bundles/516336a4fcc5f7b651673adeedd38b68.svg new file mode 100644 index 00000000..7f0b0a03 --- /dev/null +++ b/charting_library/bundles/516336a4fcc5f7b651673adeedd38b68.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5212daa031fa87a8a8ff5860132af72a.jpeg b/charting_library/bundles/5212daa031fa87a8a8ff5860132af72a.jpeg new file mode 100644 index 00000000..5845273c Binary files /dev/null and b/charting_library/bundles/5212daa031fa87a8a8ff5860132af72a.jpeg differ diff --git a/charting_library/bundles/52452294a138eb19309852a5bba8fdf2.svg b/charting_library/bundles/52452294a138eb19309852a5bba8fdf2.svg new file mode 100644 index 00000000..d09784e4 --- /dev/null +++ b/charting_library/bundles/52452294a138eb19309852a5bba8fdf2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5298.90af5ad1a39fe163f644.css b/charting_library/bundles/5298.90af5ad1a39fe163f644.css new file mode 100644 index 00000000..b84ef5d0 --- /dev/null +++ b/charting_library/bundles/5298.90af5ad1a39fe163f644.css @@ -0,0 +1 @@ +.row-9XF0QIKT{grid-gap:12px;display:grid;grid-template-columns:150px 100px;margin-bottom:16px;padding-left:20px;padding-right:20px}.mobileRow-9XF0QIKT{justify-content:flex-start;padding-left:20px}.tooltip-QKiUU4Ng{background-color:#2a2e39;border-radius:2px;color:#f0f3fa;padding:4px 8px;white-space:nowrap}html.theme-dark .tooltip-QKiUU4Ng{background-color:#434651}.container-tZN1pb1A{display:inline-block;position:relative}.icon-tZN1pb1A{color:var(--ui-lib-control-default-slot-color,currentColor);font-size:0}.tooltip-tZN1pb1A{bottom:calc(100% + 4px);left:50%;pointer-events:none;position:absolute;transform:translateX(-50%)}.date-tZN1pb1A{max-width:150px}.time-tZN1pb1A{max-width:100px}.calendar-wVs9kh0I{margin-left:8px;margin-right:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-70bfoXiO{min-width:302px}.dialogWrapperSmall-70bfoXiO{max-width:419px;width:100%}.tabs-70bfoXiO{padding-top:1px}.content-70bfoXiO{overflow:auto;padding-top:17px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .content-70bfoXiO{scrollbar-color:#363a45 #0000}.content-70bfoXiO::-webkit-scrollbar{height:5px;width:5px}.content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-70bfoXiO::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-70bfoXiO::-webkit-scrollbar-corner{display:none}.contentMobile-70bfoXiO{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-70bfoXiO{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/5298.90af5ad1a39fe163f644.rtl.css b/charting_library/bundles/5298.90af5ad1a39fe163f644.rtl.css new file mode 100644 index 00000000..06c75baf --- /dev/null +++ b/charting_library/bundles/5298.90af5ad1a39fe163f644.rtl.css @@ -0,0 +1 @@ +.row-9XF0QIKT{grid-gap:12px;display:grid;grid-template-columns:150px 100px;margin-bottom:16px;padding-left:20px;padding-right:20px}.mobileRow-9XF0QIKT{justify-content:flex-start;padding-right:20px}.tooltip-QKiUU4Ng{background-color:#2a2e39;border-radius:2px;color:#f0f3fa;padding:4px 8px;white-space:nowrap}html.theme-dark .tooltip-QKiUU4Ng{background-color:#434651}.container-tZN1pb1A{display:inline-block;position:relative}.icon-tZN1pb1A{color:var(--ui-lib-control-default-slot-color,currentColor);font-size:0}.tooltip-tZN1pb1A{bottom:calc(100% + 4px);pointer-events:none;position:absolute;right:50%;transform:translateX(50%)}.date-tZN1pb1A{max-width:150px}.time-tZN1pb1A{max-width:100px}.calendar-wVs9kh0I{margin-left:8px;margin-right:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-70bfoXiO{min-width:302px}.dialogWrapperSmall-70bfoXiO{max-width:419px;width:100%}.tabs-70bfoXiO{padding-top:1px}.content-70bfoXiO{overflow:auto;padding-top:17px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .content-70bfoXiO{scrollbar-color:#363a45 #0000}.content-70bfoXiO::-webkit-scrollbar{height:5px;width:5px}.content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-70bfoXiO::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-70bfoXiO::-webkit-scrollbar-corner{display:none}.contentMobile-70bfoXiO{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-70bfoXiO{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/52be2cab70919abd4ba4dffefe331384.svg b/charting_library/bundles/52be2cab70919abd4ba4dffefe331384.svg new file mode 100644 index 00000000..81fc5036 --- /dev/null +++ b/charting_library/bundles/52be2cab70919abd4ba4dffefe331384.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/52d1261e628f634b5e62c0d6071d82c1.svg b/charting_library/bundles/52d1261e628f634b5e62c0d6071d82c1.svg new file mode 100644 index 00000000..1107bb51 --- /dev/null +++ b/charting_library/bundles/52d1261e628f634b5e62c0d6071d82c1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/52d36f2ef75daabe5d00dc144cc9d4d6.svg b/charting_library/bundles/52d36f2ef75daabe5d00dc144cc9d4d6.svg new file mode 100644 index 00000000..289f06d8 --- /dev/null +++ b/charting_library/bundles/52d36f2ef75daabe5d00dc144cc9d4d6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5376.2aa38050f70a10c75dee.js b/charting_library/bundles/5376.2aa38050f70a10c75dee.js new file mode 100644 index 00000000..81619950 --- /dev/null +++ b/charting_library/bundles/5376.2aa38050f70a10c75dee.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5376],{77034:function(e,r,n){var i;i=function(){var e=!0;function r(r){function n(e){var n=r.match(e);return n&&n.length>1&&n[1]||""}function i(e){var n=r.match(e);return n&&n.length>1&&n[2]||""}var t,o=n(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(r)&&/android/i.test(r),d=/nexus\s*[0-6]\s*/i.test(r),c=!d&&/nexus\s*[0-9]+/i.test(r),u=/CrOS/.test(r),p=/silk/i.test(r),l=/sailfish/i.test(r),h=/tizen/i.test(r),f=/(web|hpw)(o|0)s/i.test(r),m=/windows phone/i.test(r),v=(/SamsungBrowser/i.test(r),!m&&/windows/i.test(r)),w=!o&&!p&&/macintosh/i.test(r),b=!a&&!l&&!h&&!f&&/linux/i.test(r),g=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),y=n(/version\/(\d+(\.\d+)?)/i),k=/tablet/i.test(r)&&!/tablet pc/i.test(r),x=!k&&/[^-]mobi/i.test(r),S=/xbox/i.test(r);/opera/i.test(r)?t={name:"Opera",opera:e,version:y||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(r)?t={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||y}:/SamsungBrowser/i.test(r)?t={name:"Samsung Internet for Android",samsungBrowser:e,version:y||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(r)?t={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(r)?t={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(r)?t={name:"Opera Coast",coast:e,version:y||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(r)?t={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(r)?t={name:"Yandex Browser",yandexbrowser:e,version:y||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(r)?t={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(r)?t={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(r)?t={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(r)?t={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(r)?t={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(r)?t={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(t={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},g?(t.msedge=e,t.version=g):(t.msie=e,t.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(r)?t={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?t={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(r)?t={name:"Microsoft Edge",msedge:e,version:g}:/vivaldi/i.test(r)?t={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||y}:l?t={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(r)?t={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(r)?(t={name:"Firefox",firefox:e, +version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(r)&&(t.firefoxos=e,t.osname="Firefox OS")):p?t={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(r)?t={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(r)?t={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(r)||/rim\stablet/i.test(r)?t={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:y||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(t={name:"WebOS",osname:"WebOS",webos:e,version:y||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(r)&&(t.touchpad=e)):/bada/i.test(r)?t={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:h?t={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||y}:/qupzilla/i.test(r)?t={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||y}:/chromium/i.test(r)?t={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||y}:/chrome|crios|crmo/i.test(r)?t={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?t={name:"Android",version:y}:/safari|applewebkit/i.test(r)?(t={name:"Safari",safari:e},y&&(t.version=y)):o?(t={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},y&&(t.version=y)):t=/googlebot/i.test(r)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||y}:{name:n(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!t.msedge&&/(apple)?webkit/i.test(r)?(/(apple)?webkit\/537\.36/i.test(r)?(t.name=t.name||"Blink",t.blink=e):(t.name=t.name||"Webkit",t.webkit=e),!t.version&&y&&(t.version=y)):!t.opera&&/gecko\//i.test(r)&&(t.name=t.name||"Gecko",t.gecko=e,t.version=t.version||n(/gecko\/(\d+(\.\d+)?)/i)),t.windowsphone||!a&&!t.silk?!t.windowsphone&&o?(t[o]=e,t.ios=e,t.osname="iOS"):w?(t.mac=e,t.osname="macOS"):S?(t.xbox=e,t.osname="Xbox"):v?(t.windows=e,t.osname="Windows"):b&&(t.linux=e,t.osname="Linux"):(t.android=e,t.osname="Android");var T="";t.windows?T=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):t.windowsphone?T=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):t.mac?T=(T=n(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):o?T=(T=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?T=n(/android[ \/-](\d+(\.\d+)*)/i):t.webos?T=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):t.blackberry?T=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):t.bada?T=n(/bada\/(\d+(\.\d+)*)/i):t.tizen&&(T=n(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(t.osversion=T);var B=!t.windows&&T.split(".")[0];return k||c||"ipad"==o||a&&(3==B||B>=4&&!x)||t.silk?t.tablet=e:(x||"iphone"==o||"ipod"==o||a||d||t.blackberry||t.webos||t.bada)&&(t.mobile=e), +t.msedge||t.msie&&t.version>=10||t.yandexbrowser&&t.version>=15||t.vivaldi&&t.version>=1||t.chrome&&t.version>=20||t.samsungBrowser&&t.version>=4||t.whale&&1===s([t.version,"1.0"])||t.mzbrowser&&1===s([t.version,"6.0"])||t.focus&&1===s([t.version,"1.0"])||t.firefox&&t.version>=20||t.safari&&t.version>=6||t.opera&&t.version>=10||t.ios&&t.osversion&&t.osversion.split(".")[0]>=6||t.blackberry&&t.version>=10.1||t.chromium&&t.version>=20?t.a=e:t.msie&&t.version<10||t.chrome&&t.version<20||t.firefox&&t.version<20||t.safari&&t.version<6||t.opera&&t.version<10||t.ios&&t.osversion&&t.osversion.split(".")[0]<6||t.chromium&&t.version<20?t.c=e:t.x=e,t}var n=r("undefined"!=typeof navigator&&navigator.userAgent||"");function i(e){return e.split(".").length}function t(e,r){var n,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,r);for(n=0;n=0;){if(n[0][r]>n[1][r])return 1;if(n[0][r]!==n[1][r])return-1;if(0===r)return 0}}function o(e,i,t){var o=n;"string"==typeof i&&(t=i,i=void 0),void 0===i&&(i=!1),t&&(o=r(t));var a=""+o.version;for(var d in e)if(e.hasOwnProperty(d)&&o[d]){if("string"!=typeof e[d])throw new Error("Browser version in the minVersion map should be a string: "+d+": "+String(e));return s([a,e[d]])<0}return i}return n.test=function(e){for(var r=0;r":">",'"':""","'":"'","/":"/","`":"`","=":"="},u=/\s*/,p=/\s+/,l=/\s*=/,h=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function v(e,r){this.view=e,this.cache={".":this.view},this.parent=r}function w(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var r=this.tail.match(e);if(!r||0!==r.index)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var r,n=this.tail.search(e);switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var r,n=this.cache;if(n.hasOwnProperty(e))r=n[e];else{for(var t,o,a=this,d=!1;a;){ +if(e.indexOf(".")>0)for(r=a.view,t=e.split("."),o=0;null!=r&&o0?t[t.length-1][4]:n;break;default:i.push(r)}return n}(function(e){for(var r,n,i=[],t=0,s=e.length;t"===s?o=this.renderPartial(t,r,n,i):"&"===s?o=this.unescapedValue(t,r):"name"===s?o=this.escapedValue(t,r):"text"===s&&(o=this.rawValue(t)),void 0!==o&&(a+=o);return a},w.prototype.renderSection=function(e,r,t,s){var o=this,a="",d=r.lookup(e[1]);if(d){if(n(d))for(var c=0,u=d.length;c"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=m,e.Context=v,e.Writer=w},r&&"string"!=typeof r.nodeName?s(r):(i=[r],void 0===(t="function"==typeof(n=s)?n.apply(r,i):n)||(e.exports=t))}}]); \ No newline at end of file diff --git a/charting_library/bundles/5380.0fcbeffa9d76b47d7552.css b/charting_library/bundles/5380.0fcbeffa9d76b47d7552.css new file mode 100644 index 00000000..7771a0c2 --- /dev/null +++ b/charting_library/bundles/5380.0fcbeffa9d76b47d7552.css @@ -0,0 +1 @@ +.round-button-p9ma7wH8{align-items:center;background-color:var(--ui-lib-button-color-bg,var(--ui-lib-button-default-color-bg));border-color:var(--ui-lib-button-color-border,var(--ui-lib-button-default-color-border));border-style:solid;box-sizing:border-box;color:var(--ui-lib-button-color-content,var(--ui-lib-button-default-color-content));display:inline-flex;justify-content:center;max-width:100%;position:relative}.round-button-p9ma7wH8:active{transform:translateY(1px)}.round-button-p9ma7wH8:after{border-color:var(--ui-lib-button-color-focus-outline,var(--ui-lib-button-default-color-focus-outline))}.content-p9ma7wH8{align-items:center;display:inline-flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.color-brand-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#2962ff}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-bg:#1e53e5}}.color-brand-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}}.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#2962ff}}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-bg:#1e53e5}}.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8,html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-gray-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}}.color-gray-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#0000}}.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}.color-red-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#f23645}@media (any-hover:hover){.color-red-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-bg:#cc2f3c}}.color-red-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#fff}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#ffebec;--ui-lib-button-default-color-border:#ffebec;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#331f20;--ui-lib-button-default-color-bg:#331f20}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#f23645}}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#ffebec;--ui-lib-button-default-color-border:#ffebec;--ui-lib-button-default-color-content:#f23645}.color-red-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-red-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-bg:#cc2f3c}}.color-red-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8,html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-red-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#0000}}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8,.color-gray-p9ma7wH8,html.theme-dark .color-brand-p9ma7wH8,html.theme-dark .color-gray-p9ma7wH8{--ui-lib-button-default-color-focus-outline:#2962ffcc}.color-red-p9ma7wH8,html.theme-dark .color-red-p9ma7wH8{--ui-lib-button-default-color-focus-outline:#f23645cc}.variant-primary-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;transform:none}html.theme-dark .variant-primary-p9ma7wH8:disabled{background-color:#363a45;border-color:#363a45;color:#5d606b}.variant-primary-p9ma7wH8:disabled:after{display:none}.variant-quiet-primary-p9ma7wH8:disabled,html.theme-dark .variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}.variant-quiet-primary-p9ma7wH8:disabled{transform:none}html.theme-dark .variant-quiet-primary-p9ma7wH8:disabled{background-color:#363a45;border-color:#363a45;color:#5d606b}.variant-quiet-primary-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}.variant-secondary-p9ma7wH8:disabled{background-color:initial;border-color:#e0e3eb;color:#b2b5be;transform:none}html.theme-dark .variant-secondary-p9ma7wH8:disabled{background-color:initial;border-color:#363a45;color:#5d606b}.variant-secondary-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:initial;border-color:#e0e3eb;color:#b2b5be}.variant-ghost-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#b2b5be;transform:none}html.theme-dark .variant-ghost-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#5d606b}.variant-ghost-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#b2b5be}.size-xsmall-p9ma7wH8{border-radius:14px;border-width:1px;height:28px}.size-xsmall-p9ma7wH8.icon-only-p9ma7wH8{width:28px}.size-xsmall-p9ma7wH8:not(.size-xsmall-p9ma7wH8.icon-only-p9ma7wH8){padding:0 11px}.size-xsmall-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xsmall-p9ma7wH8:focus{outline:none}.size-xsmall-p9ma7wH8:focus-visible{outline:none}.size-xsmall-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.size-xsmall-p9ma7wH8:focus:after{display:block}.size-xsmall-p9ma7wH8:focus-visible:after{display:block}.size-xsmall-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xsmall-p9ma7wH8:after{border-radius:18px}.size-small-p9ma7wH8{border-radius:17px;border-width:1px;height:34px}.size-small-p9ma7wH8.icon-only-p9ma7wH8{width:34px}.size-small-p9ma7wH8:not(.size-small-p9ma7wH8.icon-only-p9ma7wH8){padding:0 15px}.size-small-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-small-p9ma7wH8:focus{outline:none}.size-small-p9ma7wH8:focus-visible{outline:none}.size-small-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.size-small-p9ma7wH8:focus:after{display:block}.size-small-p9ma7wH8:focus-visible:after{display:block}.size-small-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-small-p9ma7wH8:after{border-radius:21px}.size-medium-p9ma7wH8{border-radius:20px;border-width:1px;height:40px}.size-medium-p9ma7wH8.icon-only-p9ma7wH8{width:40px}.size-medium-p9ma7wH8:not(.size-medium-p9ma7wH8.icon-only-p9ma7wH8){padding:0 15px}.size-medium-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-medium-p9ma7wH8:focus{outline:none}.size-medium-p9ma7wH8:focus-visible{outline:none}.size-medium-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.size-medium-p9ma7wH8:focus:after{display:block}.size-medium-p9ma7wH8:focus-visible:after{display:block}.size-medium-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-medium-p9ma7wH8:after{border-radius:24px}.size-large-p9ma7wH8{border-radius:24px;border-width:1px;height:48px}.size-large-p9ma7wH8.icon-only-p9ma7wH8{width:48px}.size-large-p9ma7wH8:not(.size-large-p9ma7wH8.icon-only-p9ma7wH8){padding:0 23px}.size-large-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-large-p9ma7wH8:focus{outline:none}.size-large-p9ma7wH8:focus-visible{outline:none}.size-large-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.size-large-p9ma7wH8:focus:after{display:block}.size-large-p9ma7wH8:focus-visible:after{display:block}.size-large-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-large-p9ma7wH8:after{border-radius:28px}.size-xlarge-p9ma7wH8{border-radius:28px;border-width:1px;height:56px}.size-xlarge-p9ma7wH8.icon-only-p9ma7wH8{width:56px}.size-xlarge-p9ma7wH8:not(.size-xlarge-p9ma7wH8.icon-only-p9ma7wH8){padding:0 31px}.size-xlarge-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xlarge-p9ma7wH8:focus{outline:none}.size-xlarge-p9ma7wH8:focus-visible{outline:none}.size-xlarge-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.size-xlarge-p9ma7wH8:focus:after{display:block}.size-xlarge-p9ma7wH8:focus-visible:after{display:block}.size-xlarge-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xlarge-p9ma7wH8:after{border-radius:32px}.size-xxlarge-p9ma7wH8{border-radius:40px;border-width:2px;height:80px}.size-xxlarge-p9ma7wH8.icon-only-p9ma7wH8{width:80px}.size-xxlarge-p9ma7wH8:not(.size-xxlarge-p9ma7wH8.icon-only-p9ma7wH8){padding:0 30px}.size-xxlarge-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xxlarge-p9ma7wH8:focus{outline:none}.size-xxlarge-p9ma7wH8:focus-visible{outline:none}.size-xxlarge-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 12px);left:-6px;pointer-events:none;position:absolute;top:-6px;width:calc(100% + 12px);z-index:1}.size-xxlarge-p9ma7wH8:focus:after{display:block}.size-xxlarge-p9ma7wH8:focus-visible:after{display:block}.size-xxlarge-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xxlarge-p9ma7wH8:after{border-radius:44px}.size-xsmall-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}.size-small-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400}.size-medium-p9ma7wH8 .content-p9ma7wH8,.size-small-p9ma7wH8 .content-p9ma7wH8{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.size-medium-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:500}.size-large-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.size-xlarge-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600}.size-xlarge-p9ma7wH8 .content-p9ma7wH8,.size-xxlarge-p9ma7wH8 .content-p9ma7wH8{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.size-xxlarge-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:20px;font-style:normal;font-weight:600}.animated-p9ma7wH8{transition-duration:.2s;transition-property:border-color,background-color,color;transition-timing-function:ease-in-out}.animated-p9ma7wH8:after{display:block;opacity:0;transition:opacity .2s ease-in-out,visibility 0s ease-in-out .2s;visibility:hidden}.animated-p9ma7wH8:focus:after{opacity:1;transition:opacity .2s ease-in-out;visibility:visible}.animated-p9ma7wH8:focus-visible:after{opacity:1;transition:opacity .2s ease-in-out;visibility:visible}.animated-p9ma7wH8:focus:not(:focus-visible):after{opacity:0;transition:opacity .2s ease-in-out,visibility 0s ease-in-out .2s;visibility:hidden}.stretch-p9ma7wH8{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/5380.0fcbeffa9d76b47d7552.rtl.css b/charting_library/bundles/5380.0fcbeffa9d76b47d7552.rtl.css new file mode 100644 index 00000000..71f997ac --- /dev/null +++ b/charting_library/bundles/5380.0fcbeffa9d76b47d7552.rtl.css @@ -0,0 +1 @@ +.round-button-p9ma7wH8{align-items:center;background-color:var(--ui-lib-button-color-bg,var(--ui-lib-button-default-color-bg));border-color:var(--ui-lib-button-color-border,var(--ui-lib-button-default-color-border));border-style:solid;box-sizing:border-box;color:var(--ui-lib-button-color-content,var(--ui-lib-button-default-color-content));display:inline-flex;justify-content:center;max-width:100%;position:relative}.round-button-p9ma7wH8:active{transform:translateY(1px)}.round-button-p9ma7wH8:after{border-color:var(--ui-lib-button-color-focus-outline,var(--ui-lib-button-default-color-focus-outline))}.content-p9ma7wH8{align-items:center;display:inline-flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.color-brand-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#2962ff}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-bg:#1e53e5}}.color-brand-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#fff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-brand-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}}.color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#2962ff}}html.theme-dark .color-brand-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-bg:#1e53e5}}.color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#1e53e5;--ui-lib-button-default-color-border:#1e53e5;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-brand-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8,html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-bg:#0000}}.color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-bg:#1848cc}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#2962ff}@media (any-hover:hover){html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#2962ff;--ui-lib-button-default-color-content:#2962ff}}html.theme-dark .color-brand-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#1848cc;--ui-lib-button-default-color-border:#1848cc;--ui-lib-button-default-color-content:#fff}.color-gray-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}}.color-gray-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#2962ff;--ui-lib-button-default-color-border:#132042;--ui-lib-button-default-color-bg:#132042}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e3effd;--ui-lib-button-default-color-border:#e3effd;--ui-lib-button-default-color-content:#2962ff}.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#363a45;--ui-lib-button-default-color-bg:#363a45}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#e0e3eb;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#d1d4dc;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#434651;--ui-lib-button-default-color-bg:#0000}}.color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#131722}@media (any-hover:hover){html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#e0e3eb;--ui-lib-button-default-color-content:#131722}}html.theme-dark .color-gray-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#131722}.color-red-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#f23645}@media (any-hover:hover){.color-red-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-bg:#cc2f3c}}.color-red-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#fff}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-red-p9ma7wH8.variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#131722;--ui-lib-button-default-color-bg:#131722}@media (any-hover:hover){.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#2a2e39;--ui-lib-button-default-color-bg:#2a2e39}}.color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#ffebec;--ui-lib-button-default-color-border:#ffebec;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8:active{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#331f20;--ui-lib-button-default-color-bg:#331f20}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#fff;--ui-lib-button-default-color-border:#fff;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#f0f3fa;--ui-lib-button-default-color-border:#f0f3fa;--ui-lib-button-default-color-content:#f23645}}html.theme-dark .color-red-p9ma7wH8.variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#ffebec;--ui-lib-button-default-color-border:#ffebec;--ui-lib-button-default-color-content:#f23645}.color-red-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-red-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8:hover{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-bg:#cc2f3c}}.color-red-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#cc2f3c;--ui-lib-button-default-color-border:#cc2f3c;--ui-lib-button-default-color-content:#fff}}html.theme-dark .color-red-p9ma7wH8.variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8,html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8{--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-bg:#0000}@media (any-hover:hover){.color-red-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8:hover{--ui-lib-button-default-color-content:#f23645;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-bg:#0000}}.color-red-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8:active{--ui-lib-button-default-color-content:#fff;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-bg:#b22833}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#0000;--ui-lib-button-default-color-content:#f23645}@media (any-hover:hover){html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:hover{--ui-lib-button-default-color-bg:#0000;--ui-lib-button-default-color-border:#f23645;--ui-lib-button-default-color-content:#f23645}}html.theme-dark .color-red-p9ma7wH8.variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:active{--ui-lib-button-default-color-bg:#b22833;--ui-lib-button-default-color-border:#b22833;--ui-lib-button-default-color-content:#fff}.color-brand-p9ma7wH8,.color-gray-p9ma7wH8,html.theme-dark .color-brand-p9ma7wH8,html.theme-dark .color-gray-p9ma7wH8{--ui-lib-button-default-color-focus-outline:#2962ffcc}.color-red-p9ma7wH8,html.theme-dark .color-red-p9ma7wH8{--ui-lib-button-default-color-focus-outline:#f23645cc}.variant-primary-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be;transform:none}html.theme-dark .variant-primary-p9ma7wH8:disabled{background-color:#363a45;border-color:#363a45;color:#5d606b}.variant-primary-p9ma7wH8:disabled:after{display:none}.variant-quiet-primary-p9ma7wH8:disabled,html.theme-dark .variant-primary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}.variant-quiet-primary-p9ma7wH8:disabled{transform:none}html.theme-dark .variant-quiet-primary-p9ma7wH8:disabled{background-color:#363a45;border-color:#363a45;color:#5d606b}.variant-quiet-primary-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-quiet-primary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}.variant-secondary-p9ma7wH8:disabled{background-color:initial;border-color:#e0e3eb;color:#b2b5be;transform:none}html.theme-dark .variant-secondary-p9ma7wH8:disabled{background-color:initial;border-color:#363a45;color:#5d606b}.variant-secondary-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-secondary-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:initial;border-color:#e0e3eb;color:#b2b5be}.variant-ghost-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#b2b5be;transform:none}html.theme-dark .variant-ghost-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#5d606b}.variant-ghost-p9ma7wH8:disabled:after{display:none}html.theme-dark .variant-ghost-p9ma7wH8.disable-themes-p9ma7wH8:disabled{background-color:initial;border-color:#0000;color:#b2b5be}.size-xsmall-p9ma7wH8{border-radius:14px;border-width:1px;height:28px}.size-xsmall-p9ma7wH8.icon-only-p9ma7wH8{width:28px}.size-xsmall-p9ma7wH8:not(.size-xsmall-p9ma7wH8.icon-only-p9ma7wH8){padding:0 11px}.size-xsmall-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xsmall-p9ma7wH8:focus{outline:none}.size-xsmall-p9ma7wH8:focus-visible{outline:none}.size-xsmall-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.size-xsmall-p9ma7wH8:focus:after{display:block}.size-xsmall-p9ma7wH8:focus-visible:after{display:block}.size-xsmall-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xsmall-p9ma7wH8:after{border-radius:18px}.size-small-p9ma7wH8{border-radius:17px;border-width:1px;height:34px}.size-small-p9ma7wH8.icon-only-p9ma7wH8{width:34px}.size-small-p9ma7wH8:not(.size-small-p9ma7wH8.icon-only-p9ma7wH8){padding:0 15px}.size-small-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-small-p9ma7wH8:focus{outline:none}.size-small-p9ma7wH8:focus-visible{outline:none}.size-small-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.size-small-p9ma7wH8:focus:after{display:block}.size-small-p9ma7wH8:focus-visible:after{display:block}.size-small-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-small-p9ma7wH8:after{border-radius:21px}.size-medium-p9ma7wH8{border-radius:20px;border-width:1px;height:40px}.size-medium-p9ma7wH8.icon-only-p9ma7wH8{width:40px}.size-medium-p9ma7wH8:not(.size-medium-p9ma7wH8.icon-only-p9ma7wH8){padding:0 15px}.size-medium-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-medium-p9ma7wH8:focus{outline:none}.size-medium-p9ma7wH8:focus-visible{outline:none}.size-medium-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.size-medium-p9ma7wH8:focus:after{display:block}.size-medium-p9ma7wH8:focus-visible:after{display:block}.size-medium-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-medium-p9ma7wH8:after{border-radius:24px}.size-large-p9ma7wH8{border-radius:24px;border-width:1px;height:48px}.size-large-p9ma7wH8.icon-only-p9ma7wH8{width:48px}.size-large-p9ma7wH8:not(.size-large-p9ma7wH8.icon-only-p9ma7wH8){padding:0 23px}.size-large-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-large-p9ma7wH8:focus{outline:none}.size-large-p9ma7wH8:focus-visible{outline:none}.size-large-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.size-large-p9ma7wH8:focus:after{display:block}.size-large-p9ma7wH8:focus-visible:after{display:block}.size-large-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-large-p9ma7wH8:after{border-radius:28px}.size-xlarge-p9ma7wH8{border-radius:28px;border-width:1px;height:56px}.size-xlarge-p9ma7wH8.icon-only-p9ma7wH8{width:56px}.size-xlarge-p9ma7wH8:not(.size-xlarge-p9ma7wH8.icon-only-p9ma7wH8){padding:0 31px}.size-xlarge-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xlarge-p9ma7wH8:focus{outline:none}.size-xlarge-p9ma7wH8:focus-visible{outline:none}.size-xlarge-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.size-xlarge-p9ma7wH8:focus:after{display:block}.size-xlarge-p9ma7wH8:focus-visible:after{display:block}.size-xlarge-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xlarge-p9ma7wH8:after{border-radius:32px}.size-xxlarge-p9ma7wH8{border-radius:40px;border-width:2px;height:80px}.size-xxlarge-p9ma7wH8.icon-only-p9ma7wH8{width:80px}.size-xxlarge-p9ma7wH8:not(.size-xxlarge-p9ma7wH8.icon-only-p9ma7wH8){padding:0 30px}.size-xxlarge-p9ma7wH8{outline:none;overflow:visible;position:relative}.size-xxlarge-p9ma7wH8:focus{outline:none}.size-xxlarge-p9ma7wH8:focus-visible{outline:none}.size-xxlarge-p9ma7wH8:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 12px);pointer-events:none;position:absolute;right:-6px;top:-6px;width:calc(100% + 12px);z-index:1}.size-xxlarge-p9ma7wH8:focus:after{display:block}.size-xxlarge-p9ma7wH8:focus-visible:after{display:block}.size-xxlarge-p9ma7wH8:focus:not(:focus-visible):after{display:none}.size-xxlarge-p9ma7wH8:after{border-radius:44px}.size-xsmall-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}.size-small-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400}.size-medium-p9ma7wH8 .content-p9ma7wH8,.size-small-p9ma7wH8 .content-p9ma7wH8{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.size-medium-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:500}.size-large-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.size-xlarge-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600}.size-xlarge-p9ma7wH8 .content-p9ma7wH8,.size-xxlarge-p9ma7wH8 .content-p9ma7wH8{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.size-xxlarge-p9ma7wH8 .content-p9ma7wH8{font-feature-settings:"tnum" on,"lnum" on;font-size:20px;font-style:normal;font-weight:600}.animated-p9ma7wH8{transition-duration:.2s;transition-property:border-color,background-color,color;transition-timing-function:ease-in-out}.animated-p9ma7wH8:after{display:block;opacity:0;transition:opacity .2s ease-in-out,visibility 0s ease-in-out .2s;visibility:hidden}.animated-p9ma7wH8:focus:after{opacity:1;transition:opacity .2s ease-in-out;visibility:visible}.animated-p9ma7wH8:focus-visible:after{opacity:1;transition:opacity .2s ease-in-out;visibility:visible}.animated-p9ma7wH8:focus:not(:focus-visible):after{opacity:0;transition:opacity .2s ease-in-out,visibility 0s ease-in-out .2s;visibility:hidden}.stretch-p9ma7wH8{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/6324.365b73847767a54140ab.css b/charting_library/bundles/5399.5b37bdc7d523b1c795fb.css similarity index 72% rename from charting_library/bundles/6324.365b73847767a54140ab.css rename to charting_library/bundles/5399.5b37bdc7d523b1c795fb.css index 827c1f81..869f7f9f 100644 --- a/charting_library/bundles/6324.365b73847767a54140ab.css +++ b/charting_library/bundles/5399.5b37bdc7d523b1c795fb.css @@ -1 +1 @@ -.header-Dtkdqc5O{border-bottom:1px solid #e0e3eb;color:#212121;font-size:14px;font-weight:700;padding:30px 60px 30px 30px;position:relative}html.theme-dark .header-Dtkdqc5O{border-bottom-color:#363a45;color:#c5cbce}@media screen and (max-width:767px){.header-Dtkdqc5O{padding:20px 60px 20px 20px}}.header-Dtkdqc5O .close-Dtkdqc5O{color:#434651;cursor:pointer;opacity:.5;padding:15px;position:absolute;right:15px;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .header-Dtkdqc5O .close-Dtkdqc5O{color:#d1d4dc}@media screen and (max-width:767px){.header-Dtkdqc5O .close-Dtkdqc5O{right:7px;top:7px}}@media (any-hover:hover){.header-Dtkdqc5O .close-Dtkdqc5O:hover{opacity:1;transition-duration:.06s}}.header-Dtkdqc5O .close-Dtkdqc5O svg{display:block;height:13px;width:13px}.footer-hDDUbPct{padding:0 30px 30px}@media screen and (max-width:767px){.footer-hDDUbPct{padding:0 20px 20px}}.body-sm3KMBIc{-webkit-overflow-scrolling:touch;flex-grow:1;overflow:auto;padding:30px}.body-sm3KMBIc::-webkit-scrollbar{height:5px;width:5px}.body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-sm3KMBIc::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.body-sm3KMBIc::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-sm3KMBIc{padding:20px}}.message-d3vP5HJI{background:#ebf9f5;color:#37bc9b;font-size:14px;left:0;padding:30px;position:absolute;right:0;text-align:center;top:0;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-d3vP5HJI{background:#21384d}.message-d3vP5HJI.error-d3vP5HJI{background:#ffedf0;color:#f7525f}html.theme-dark .message-d3vP5HJI.error-d3vP5HJI{background:#6f2626}.popupDialog-1s1uy4Yi{max-width:450px}.content-1s1uy4Yi .row-1s1uy4Yi{display:flex;padding-bottom:12px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi{font-size:13px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#868993}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#787b86}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#434651;font-weight:700}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#d1d4dc}.content-1s1uy4Yi .row-1s1uy4Yi .columnTitle-1s1uy4Yi{text-align:left}.content-1s1uy4Yi .row-1s1uy4Yi .columnValue-1s1uy4Yi{margin-left:auto;text-align:right} \ No newline at end of file +.header-Dtkdqc5O{border-bottom:1px solid #e0e3eb;color:#212121;font-size:14px;font-weight:700;padding:30px 60px 30px 30px;position:relative}html.theme-dark .header-Dtkdqc5O{border-bottom-color:#363a45;color:#c5cbce}@media screen and (max-width:767px){.header-Dtkdqc5O{padding:20px 60px 20px 20px}}.header-Dtkdqc5O .close-Dtkdqc5O{color:#434651;cursor:pointer;opacity:.5;padding:15px;position:absolute;right:15px;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .header-Dtkdqc5O .close-Dtkdqc5O{color:#d1d4dc}@media screen and (max-width:767px){.header-Dtkdqc5O .close-Dtkdqc5O{right:7px;top:7px}}@media (any-hover:hover){.header-Dtkdqc5O .close-Dtkdqc5O:hover{opacity:1;transition-duration:.06s}}.header-Dtkdqc5O .close-Dtkdqc5O svg{display:block;height:13px;width:13px}.footer-hDDUbPct{padding:0 30px 30px}@media screen and (max-width:767px){.footer-hDDUbPct{padding:0 20px 20px}}.body-sm3KMBIc{-webkit-overflow-scrolling:touch;flex-grow:1;overflow:auto;padding:30px}.body-sm3KMBIc::-webkit-scrollbar{height:5px;width:5px}.body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-sm3KMBIc::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.body-sm3KMBIc::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-sm3KMBIc{padding:20px}}.message-d3vP5HJI{background:#ebf9f5;color:#37bc9b;font-size:14px;left:0;padding:30px;position:absolute;right:0;text-align:center;top:0;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-d3vP5HJI{background:#21384d}.message-d3vP5HJI.error-d3vP5HJI{background:#ffedf0;color:#f7525f}html.theme-dark .message-d3vP5HJI.error-d3vP5HJI{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/6324.365b73847767a54140ab.rtl.css b/charting_library/bundles/5399.5b37bdc7d523b1c795fb.rtl.css similarity index 72% rename from charting_library/bundles/6324.365b73847767a54140ab.rtl.css rename to charting_library/bundles/5399.5b37bdc7d523b1c795fb.rtl.css index cebf26c6..a6eb7edb 100644 --- a/charting_library/bundles/6324.365b73847767a54140ab.rtl.css +++ b/charting_library/bundles/5399.5b37bdc7d523b1c795fb.rtl.css @@ -1 +1 @@ -.header-Dtkdqc5O{border-bottom:1px solid #e0e3eb;color:#212121;font-size:14px;font-weight:700;padding:30px 30px 30px 60px;position:relative}html.theme-dark .header-Dtkdqc5O{border-bottom-color:#363a45;color:#c5cbce}@media screen and (max-width:767px){.header-Dtkdqc5O{padding:20px 20px 20px 60px}}.header-Dtkdqc5O .close-Dtkdqc5O{color:#434651;cursor:pointer;left:15px;opacity:.5;padding:15px;position:absolute;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .header-Dtkdqc5O .close-Dtkdqc5O{color:#d1d4dc}@media screen and (max-width:767px){.header-Dtkdqc5O .close-Dtkdqc5O{left:7px;top:7px}}@media (any-hover:hover){.header-Dtkdqc5O .close-Dtkdqc5O:hover{opacity:1;transition-duration:.06s}}.header-Dtkdqc5O .close-Dtkdqc5O svg{display:block;height:13px;width:13px}.footer-hDDUbPct{padding:0 30px 30px}@media screen and (max-width:767px){.footer-hDDUbPct{padding:0 20px 20px}}.body-sm3KMBIc{-webkit-overflow-scrolling:touch;flex-grow:1;overflow:auto;padding:30px}.body-sm3KMBIc::-webkit-scrollbar{height:5px;width:5px}.body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-sm3KMBIc::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.body-sm3KMBIc::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-sm3KMBIc{padding:20px}}.message-d3vP5HJI{background:#ebf9f5;color:#37bc9b;font-size:14px;left:0;padding:30px;position:absolute;right:0;text-align:center;top:0;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-d3vP5HJI{background:#21384d}.message-d3vP5HJI.error-d3vP5HJI{background:#ffedf0;color:#f7525f}html.theme-dark .message-d3vP5HJI.error-d3vP5HJI{background:#6f2626}.popupDialog-1s1uy4Yi{max-width:450px}.content-1s1uy4Yi .row-1s1uy4Yi{display:flex;padding-bottom:12px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi{font-size:13px}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#868993}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .title-1s1uy4Yi{color:#787b86}.content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#434651;font-weight:700}html.theme-dark .content-1s1uy4Yi .row-1s1uy4Yi .column-1s1uy4Yi .value-1s1uy4Yi{color:#d1d4dc}.content-1s1uy4Yi .row-1s1uy4Yi .columnTitle-1s1uy4Yi{text-align:right}.content-1s1uy4Yi .row-1s1uy4Yi .columnValue-1s1uy4Yi{margin-right:auto;text-align:left} \ No newline at end of file +.header-Dtkdqc5O{border-bottom:1px solid #e0e3eb;color:#212121;font-size:14px;font-weight:700;padding:30px 30px 30px 60px;position:relative}html.theme-dark .header-Dtkdqc5O{border-bottom-color:#363a45;color:#c5cbce}@media screen and (max-width:767px){.header-Dtkdqc5O{padding:20px 20px 20px 60px}}.header-Dtkdqc5O .close-Dtkdqc5O{color:#434651;cursor:pointer;left:15px;opacity:.5;padding:15px;position:absolute;top:17px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .header-Dtkdqc5O .close-Dtkdqc5O{color:#d1d4dc}@media screen and (max-width:767px){.header-Dtkdqc5O .close-Dtkdqc5O{left:7px;top:7px}}@media (any-hover:hover){.header-Dtkdqc5O .close-Dtkdqc5O:hover{opacity:1;transition-duration:.06s}}.header-Dtkdqc5O .close-Dtkdqc5O svg{display:block;height:13px;width:13px}.footer-hDDUbPct{padding:0 30px 30px}@media screen and (max-width:767px){.footer-hDDUbPct{padding:0 20px 20px}}.body-sm3KMBIc{-webkit-overflow-scrolling:touch;flex-grow:1;overflow:auto;padding:30px}.body-sm3KMBIc::-webkit-scrollbar{height:5px;width:5px}.body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .body-sm3KMBIc::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-sm3KMBIc::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.body-sm3KMBIc::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-sm3KMBIc{padding:20px}}.message-d3vP5HJI{background:#ebf9f5;color:#37bc9b;font-size:14px;left:0;padding:30px;position:absolute;right:0;text-align:center;top:0;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-d3vP5HJI{background:#21384d}.message-d3vP5HJI.error-d3vP5HJI{background:#ffedf0;color:#f7525f}html.theme-dark .message-d3vP5HJI.error-d3vP5HJI{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/53f95b864ea8104267dc566bfb803a23.svg b/charting_library/bundles/53f95b864ea8104267dc566bfb803a23.svg new file mode 100644 index 00000000..d528b6d3 --- /dev/null +++ b/charting_library/bundles/53f95b864ea8104267dc566bfb803a23.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/53fe5ab19eeaaea654235a0bdb7f71f1.svg b/charting_library/bundles/53fe5ab19eeaaea654235a0bdb7f71f1.svg new file mode 100644 index 00000000..4ad03aae --- /dev/null +++ b/charting_library/bundles/53fe5ab19eeaaea654235a0bdb7f71f1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5423.7c2e49576fea7390d5de.js b/charting_library/bundles/5423.7c2e49576fea7390d5de.js new file mode 100644 index 00000000..cf959d49 --- /dev/null +++ b/charting_library/bundles/5423.7c2e49576fea7390d5de.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5423],{60403:t=>{t.exports={dialog:"dialog-5BeaIUa1",visible:"visible-5BeaIUa1",title:"title-5BeaIUa1",text:"text-5BeaIUa1",actions:"actions-5BeaIUa1",close:"close-5BeaIUa1",minimize:"minimize-5BeaIUa1",handle:"handle-5BeaIUa1",control:"control-5BeaIUa1",wrap:"wrap-5BeaIUa1",touch:"touch-5BeaIUa1",dragging:"dragging-5BeaIUa1"}},52014:()=>{},20497:(t,s,i)=>{"use strict";var e=i(23127);const o=i(98125).getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockWithInstance=function(t,s){if(t&&s)return t=t.toString(),function(n,a,l){var d,h,r;return"get"===n?d=a:(h=a,"object"==typeof n&&void 0===a?(h=n,n="init"):"string"!=typeof n&&(n="init")),"getInstance"===n?e(this).eq(0).data(t):"destroy"===n?(r=e(this).eq(0).data(t))?void("function"==typeof r.destroy?(i(r,"destroy",h),e(this).eq(0).removeData(t)):o.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===n?(r=e(this).eq(0).data(t))?"function"==typeof r[d]?i(r,d,l):r[d]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):e(this).each((function(){var a=e(this),l=a.data(t);void 0===l&&(l=void 0===h?s(a):s(a,h),a.data(t,l)),"init"!==n&&("function"==typeof l[n]?i(l,n,h):o.logError("[Block Plugin] "+t+" does not support command "+n))}))};function i(t,s,i){return void 0===i?t[s]():t[s](i)}}},78754:(t,s,i)=>{"use strict";i.d(s,{buttonLoader:()=>a});i(52014);var e=i(20497),o=i(68587),n=i(23127);function a(t){return new l(n(t))}n.fn.tvButtonLoader=(0,e.createTvBlockWithInstance)("tv-button-loader",(function(t){return new l(t)}));class l{constructor(t){this.$btn=n(t).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html(''+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*o.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},o.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){this.loading?this.stop():this.start()}contentHtml(t){return t?(this.$btn.find(".tv-button__text").html(t),t):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0) +}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},94673:(t,s,i)=>{"use strict";i.d(s,{createFullscreenDialog:()=>C});var e=i(60403),o=i(51536),n=i(32563),a=i(25760);class l{constructor(t){this._dialog=t.dialog,this._animation=t.animation}close(){return this._animation.close().then(()=>(this._dialog.unfocus(),this._dialog.options.destroyOnClose&&this._dialog.destroy(),this._dialog))}}class d{constructor(t){this._dialog=t.dialog,this._animation=t.animation}open(){return this._dialog.$wrap?(this._dialog.$el.appendTo(this._dialog.$wrap),this._animation.open().then(()=>(this._dialog.focus(),this._dialog))):Promise.resolve(this._dialog)}}class h{constructor(t){this._dialog=t.dialog,this._animation=t.animation,this._dialog.$el.on("click",".js-dialog__minimize",this._dialog.minimize.bind(this._dialog))}minimize(){return this._animation.close().then(()=>(this._dialog.unfocus(),this._dialog.options.destroyOnClose?this._dialog.destroy():document.activeElement.blur(),this._dialog))}}class r{constructor(t){this._handler=()=>{this._dialog.$el.remove(),this._resolve()},this._dialog=t.dialog,this._dialog.on("destroy",this._handler)}destroy(t){return new Promise(s=>{this._resolve=()=>s(this._dialog),t()})}}class c{constructor(t){this._handler=()=>{this._dialog.$el.css("z-index",this._dialog.zIndex),this._resolve()},this._dialog=t.dialog,this._dialog.on("change:zIndex",this._handler)}setZIndex(t,s){return new Promise(i=>{this._resolve=()=>i(this._dialog),s(t)})}}var _=i(43370),g=i(56840);class u{constructor(t){this._initialXCoord=0,this._initialWidth=0,this._width=0,this._settingsKey="publish.dialog.width",this._onMouseDown=t=>{t.preventDefault(),this._initialXCoord=t.clientX,this._initialWidth=this._dialog.el.offsetWidth,this._dialog.el.classList.add(e.dragging),document.addEventListener("mousemove",this._mouseMove),document.addEventListener("mouseup",this._onMouseUp)},this._onMouseUp=()=>{p(this._settingsKey,this._width),this._dialog.el.classList.remove(e.dragging),document.removeEventListener("mousemove",this._mouseMove),document.removeEventListener("mouseup",this._onMouseUp)},this._onMouseMove=t=>{const s=t.clientX,i=this._calcWidth(s);this._setWidth(i),this._opts.onResize&&this._opts.onResize(i)},this._opts=t,this._dialog=t.dialog,this._dialog.el.style.left="auto",this._dialog.el.style.right="0",this._handleEl=this._creteHandleElem(),this._mouseMove=(0,_.default)(this._onMouseMove,30),void 0!==t.settingsKey&&(this._settingsKey=t.settingsKey),this._appendHandleElem(),this._setInitialWidth()}_creteHandleElem(){const t=document.createElement("div");return t.classList.add(e.handle),t.innerHTML=`
`,t.setAttribute("data-name","dialog-resize-handle"),t.addEventListener("mousedown",this._onMouseDown),t}_appendHandleElem(){this._dialog.el.appendChild(this._handleEl)}_setInitialWidth(){let t=document.documentElement.clientWidth;try{const s=g.getInt(this._settingsKey);s&&!m(s)&&(t=s)}catch(s){p(this._settingsKey,t,!0)}this._setWidth(t)}_setWidth(t){ +this._width=t,this._dialog.el.style.width=function(t){return t/document.documentElement.clientWidth*100}(t)+"%"}_calcWidth(t){const s=t-this._initialXCoord;let i=this._initialWidth-s;return m(i)&&(i=document.documentElement.clientWidth),i<350&&(i=350),i}}function m(t){return t>document.documentElement.clientWidth}function p(t,s,i){var e;e=s,!isNaN(parseFloat(e))&&isFinite(e)&&g.setValue(t,s,{forceFlush:i})}var v=i(74664);const b={maxWidth:v.breakpoints.desktopHd,class:"dialog-media__desktop-hd"},f={maxWidth:v.breakpoints.tablet,class:"dialog-media__tablet"};class w{constructor(t){this._onTabletBreakpoint=t=>{const s=this._dialog.el.offsetWidth;t.matches&&s<=f.maxWidth?this._dialog.el.classList.add(f.class):this._dialog.el.classList.remove(f.class)},this._onDesktopHdBreakpoint=t=>{const s=this._dialog.el.offsetWidth;t.matches&&s<=b.maxWidth?this._dialog.el.classList.add(b.class):this._dialog.el.classList.remove(b.class)},this._dialog=t.dialog}init(){this._tabletMq=window.matchMedia(`(max-width: ${f.maxWidth}px)`),this._desktopHdMq=window.matchMedia(`(max-width: ${b.maxWidth}px)`),this._tabletMq.addListener(this._onTabletBreakpoint),this._desktopHdMq.addListener(this._onDesktopHdBreakpoint);const t=this._dialog.el.offsetWidth;this.setMediaClassByWidth(t)}destroy(){this._tabletMq.removeListener(this._onTabletBreakpoint),this._desktopHdMq.removeListener(this._onDesktopHdBreakpoint)}setMediaClassByWidth(t){this._dialog.el.classList.remove(b.class,f.class),t<=f.maxWidth&&this._dialog.el.classList.add(f.class),t<=b.maxWidth&&this._dialog.el.classList.add(b.class)}}class y{constructor(t){this._dialog=t.dialog}open(){return this._dialog.$el.addClass(e.visible),Promise.resolve(this._dialog.el)}close(){return this._dialog.$el.removeClass(e.visible),Promise.resolve(this._dialog.el)}}var x=i(2112),$=i(34357);function B({minimizeButton:t=!0,closeButton:s=!0}){const i=`${x}`,o=`${$}`;return`\n\t\t
\n\t\t\t
{{{ title }}}
\n\t\t\t\n\t\t\t\t${t?i:""}\n\t\t\t\t${s?o:""}\n\t\t\t\n\t\t
`}const k={closeButton:!1,contentWrapTemplate:`
`,destroyOnClose:!0,template:`
`};function C(t){const s=Object.assign({titleTemplate:B({minimizeButton:t.minimizeButton})},k,t);return new z(s)}class z extends o.TVDialogAbstract{constructor(t){super(t),this._animation=t.animation||new y({dialog:this}),this._openable=t.openable||new d({dialog:this,animation:this._animation}),this._closeable=t.closeable||new l({dialog:this,animation:this._animation}),this._destroyable=t.destroyable||new r({dialog:this}),this._minimizeable=t.minimizeable||new h({dialog:this,animation:this._animation}),this._arrangeable=t.arrangeable||new c({dialog:this}),this._adaptive=t.adaptive||new w({dialog:this}),t.horizontalResize&&!n.mobiletouch&&new u({dialog:this,settingsKey:t.horizontalResizeSettingsKey,onResize:t=>{ +this._adaptive.setMediaClassByWidth(t)}}),t.onClose&&(this.$el.off("click",".js-dialog__close"),this.$el.on("click",".js-dialog__close",t.onClose)),this.$el.off("mousedown touchstart"),this.setZIndex(this.zIndex),this._hotkeys=a.createGroup({desc:"Fullscreen dialog",isDisabled:()=>!this.isOpened(),modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()})}open(){const t=this.options.beforeOpen,s=this.options.afterOpen,i=()=>{this.opened=!0,this._openable.open().then(()=>{if(this._adaptive.init(),"iPad"!==navigator.platform){const t=this.el.querySelector("."+e.wrap);t&&t.classList.add(e.touch)}s&&s()})};this.trigger("beforeOpen",this),t?t(i):i()}close(){const t=this.options.beforeClose,s=this.options.afterClose,i=()=>{this.opened=!1,this._closeable.close().then(()=>{this.trigger("afterClose",this),this._adaptive.destroy(),s&&s()})};t?t(i):i()}minimize(){const t=this.options.beforeMinimize,s=this.options.afterMinimize,i=()=>this._minimizeable.minimize().then(()=>{s&&s()});t?t(i):i()}destroy(){const t=this.options.onDestroy;this._destroyable.destroy(super.destroy.bind(this)).then(()=>{t&&t()})}setZIndex(t){const s=this.options.onZIndexUpdate;this._arrangeable?this._arrangeable.setZIndex(t,super.setZIndex.bind(this)).then(()=>{s&&s()}):super.setZIndex(t)}focus(){this._focused=!0,this._setFocused(),this.el.classList.add(this.options.focusClass),this.el.focus()}unfocus(){this._focused=!1,this._setUnfocused(),this.el.classList.remove(this.options.focusClass),this.el.blur()}}},61074:(t,s,i)=>{"use strict";i.d(s,{Spinner:()=>a});var e=i(59496),o=i(97754),n=i(33134);i(24780);function a(t){const s=o(t.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+n.spinnerSizeMap[t.size||n.DEFAULT_SIZE]);return e.createElement("div",{className:s,style:t.style,role:"progressbar"})}},34357:t=>{t.exports=''},4135:t=>{t.exports=''},2112:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/54405675d653aa1a161b6abcb43291ed.svg b/charting_library/bundles/54405675d653aa1a161b6abcb43291ed.svg new file mode 100644 index 00000000..85ca1f63 --- /dev/null +++ b/charting_library/bundles/54405675d653aa1a161b6abcb43291ed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/548b90a6603f1a11a0104f3be28274d5.svg b/charting_library/bundles/548b90a6603f1a11a0104f3be28274d5.svg new file mode 100644 index 00000000..6fa745d0 --- /dev/null +++ b/charting_library/bundles/548b90a6603f1a11a0104f3be28274d5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/553d50cd29b02ff10f3cb53302bece54.svg b/charting_library/bundles/553d50cd29b02ff10f3cb53302bece54.svg new file mode 100644 index 00000000..8073a819 --- /dev/null +++ b/charting_library/bundles/553d50cd29b02ff10f3cb53302bece54.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5579d8b53d2a1a0e6007198f97b91039.svg b/charting_library/bundles/5579d8b53d2a1a0e6007198f97b91039.svg new file mode 100644 index 00000000..d241f82a --- /dev/null +++ b/charting_library/bundles/5579d8b53d2a1a0e6007198f97b91039.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/559bbd43de542185b04c719bc152c540.svg b/charting_library/bundles/559bbd43de542185b04c719bc152c540.svg new file mode 100644 index 00000000..719c3f9a --- /dev/null +++ b/charting_library/bundles/559bbd43de542185b04c719bc152c540.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5618.8a62799c789da2a8c8a0.css b/charting_library/bundles/5618.8a62799c789da2a8c8a0.css new file mode 100644 index 00000000..7a6935ca --- /dev/null +++ b/charting_library/bundles/5618.8a62799c789da2a8c8a0.css @@ -0,0 +1 @@ +.icon-cKcckIVa{height:72px;margin-right:16px;width:72px}.checkbox-OpxH0OVy{align-self:start;font:inherit}.description-XND8Gzdp{margin-bottom:16px}.link-XND8Gzdp{color:#2962ff;transition:color .35s ease}html.theme-dark .link-XND8Gzdp{color:#2962ff}.link-XND8Gzdp:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-XND8Gzdp:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-XND8Gzdp:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-XND8Gzdp:hover{fill:#1e53e5;color:#1e53e5}}.link-XND8Gzdp:focus{outline:auto}.link-XND8Gzdp:focus-visible{outline:auto}.link-XND8Gzdp:focus:not(:focus-visible){outline:none}.link-XND8Gzdp:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-XND8Gzdp:active{fill:#1848cc;color:#1848cc} \ No newline at end of file diff --git a/charting_library/bundles/5618.8a62799c789da2a8c8a0.rtl.css b/charting_library/bundles/5618.8a62799c789da2a8c8a0.rtl.css new file mode 100644 index 00000000..32449d53 --- /dev/null +++ b/charting_library/bundles/5618.8a62799c789da2a8c8a0.rtl.css @@ -0,0 +1 @@ +.icon-cKcckIVa{height:72px;margin-left:16px;width:72px}.checkbox-OpxH0OVy{align-self:start;font:inherit}.description-XND8Gzdp{margin-bottom:16px}.link-XND8Gzdp{color:#2962ff;transition:color .35s ease}html.theme-dark .link-XND8Gzdp{color:#2962ff}.link-XND8Gzdp:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-XND8Gzdp:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-XND8Gzdp:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-XND8Gzdp:hover{fill:#1e53e5;color:#1e53e5}}.link-XND8Gzdp:focus{outline:auto}.link-XND8Gzdp:focus-visible{outline:auto}.link-XND8Gzdp:focus:not(:focus-visible){outline:none}.link-XND8Gzdp:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-XND8Gzdp:active{fill:#1848cc;color:#1848cc} \ No newline at end of file diff --git a/charting_library/bundles/5708.c3364a7566b555162c99.css b/charting_library/bundles/5708.c3364a7566b555162c99.css new file mode 100644 index 00000000..5b8217a9 --- /dev/null +++ b/charting_library/bundles/5708.c3364a7566b555162c99.css @@ -0,0 +1 @@ +.tv-control-error{display:block;position:relative}.tv-control-error:after{clear:both;content:"";display:table}.tv-control-error__icon{display:block;opacity:0;padding:7px;pointer-events:none;position:absolute;right:1px;top:1px;transition:opacity .35s ease}.tv-control-error__icon svg{fill:#ff4a68;display:block;height:18px;width:18px}.tv-control-error__icon--material-input{top:5px}.tv-control-select__wrap+.tv-control-error__icon{right:33px}.tv-control-error--size_small .tv-control-error__icon{padding:5px}.tv-control-error--size_small .tv-control-error__icon svg{height:15px;width:15px}.tv-control-error--size_large .tv-control-error__icon{padding:13px}.tv-control-error--size_large .tv-control-error__icon svg{height:21px;width:21px}.tv-control-error--for-number-input .tv-control-error__icon{right:16px}.tv-control-error--fix_size .tv-control-error__width-control-wrapper{min-width:170px}.tv-control-error__width-control-wrapper{opacity:0;position:absolute;right:0;top:0;width:100%;z-index:100}.tv-control-error__width-control-wrapper--from-left{left:0;right:auto}.tv-control-error__messages{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;right:0;transform:scale(.85) translateY(3px);transform-origin:bottom right;transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.tv-control-error__messages:empty{display:none}.tv-control-error__width-control-wrapper--from-left .tv-control-error__messages{left:0;right:auto;transform-origin:bottom left}.tv-control-error__message{display:block;font-size:12px;line-height:1.4;margin-bottom:10px;text-transform:none}.tv-control-error__message:last-child{margin-bottom:0}.tv-control-error__message a{color:#fff;transition:color .35s ease}.tv-control-error__message a:visited{fill:#fff;color:#fff}@media (any-hover:hover){.tv-control-error__message a:hover{fill:#eaecef;color:#eaecef;transition-duration:.06s}}.tv-control-error__message a:focus{outline:auto}.tv-control-error__message a:focus:not(:-moz-focusring){outline:none}.tv-control-error__message a:-moz-focusring{outline:auto}.tv-control-error__message a:active{fill:#e9eff2;color:#e9eff2;transition-duration:.06s}.tv-control-error.i-error .tv-control-error__icon{opacity:1;transition-duration:.06s}.tv-control-error.i-error.i-focus .tv-control-error__width-control-wrapper{opacity:1}@media (any-hover:hover){.tv-control-error.i-error:hover .tv-control-error__width-control-wrapper{opacity:1}}.tv-control-error.i-error.i-focus .tv-control-error__messages{opacity:1;transform:scale(1) translateY(0);transition-duration:.06s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover){.tv-control-error.i-error:hover .tv-control-error__messages{opacity:1;transform:scale(1) translateY(0);transition-duration:.06s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}}.tv-control-error.i-error.i-focus-touch .tv-control-error__messages,.tv-control-error.i-error.i-focus-touch .tv-control-error__width-control-wrapper{opacity:1}.tv-control-error--msg_left .tv-control-error__width-control-wrapper{left:0;right:auto}.tv-control-error--msg_left .tv-control-error__messages{transform-origin:bottom left}.tv-control-error--material-input .tv-control-error__icon{top:5px}.tv-control-error__brand-dark-bg-cascade .tv-control-error__messages{background-color:#2a2c39;border:1px solid #4e5866;color:#ff4a68} \ No newline at end of file diff --git a/charting_library/bundles/5708.c3364a7566b555162c99.rtl.css b/charting_library/bundles/5708.c3364a7566b555162c99.rtl.css new file mode 100644 index 00000000..7f097a6e --- /dev/null +++ b/charting_library/bundles/5708.c3364a7566b555162c99.rtl.css @@ -0,0 +1 @@ +.tv-control-error{display:block;position:relative}.tv-control-error:after{clear:both;content:"";display:table}.tv-control-error__icon{display:block;left:1px;opacity:0;padding:7px;pointer-events:none;position:absolute;top:1px;transition:opacity .35s ease}.tv-control-error__icon svg{fill:#ff4a68;display:block;height:18px;width:18px}.tv-control-error__icon--material-input{top:5px}.tv-control-select__wrap+.tv-control-error__icon{left:33px}.tv-control-error--size_small .tv-control-error__icon{padding:5px}.tv-control-error--size_small .tv-control-error__icon svg{height:15px;width:15px}.tv-control-error--size_large .tv-control-error__icon{padding:13px}.tv-control-error--size_large .tv-control-error__icon svg{height:21px;width:21px}.tv-control-error--for-number-input .tv-control-error__icon{left:16px}.tv-control-error--fix_size .tv-control-error__width-control-wrapper{min-width:170px}.tv-control-error__width-control-wrapper{left:0;opacity:0;position:absolute;top:0;width:100%;z-index:100}.tv-control-error__width-control-wrapper--from-left{left:auto;right:0}.tv-control-error__messages{background-color:#2a2c39;border-radius:3px;bottom:100%;color:#fff;left:0;margin-bottom:1px;max-width:100%;opacity:0;padding:10px 15px;pointer-events:none;position:absolute;transform:scale(.85) translateY(3px);transform-origin:bottom left;transition:opacity .35s cubic-bezier(.215,.61,.355,1),transform .35s cubic-bezier(.215,.61,.355,1)}.tv-control-error__messages:empty{display:none}.tv-control-error__width-control-wrapper--from-left .tv-control-error__messages{left:auto;right:0;transform-origin:bottom right}.tv-control-error__message{display:block;font-size:12px;line-height:1.4;margin-bottom:10px;text-transform:none}.tv-control-error__message:last-child{margin-bottom:0}.tv-control-error__message a{color:#fff;transition:color .35s ease}.tv-control-error__message a:visited{fill:#fff;color:#fff}@media (any-hover:hover){.tv-control-error__message a:hover{fill:#eaecef;color:#eaecef;transition-duration:.06s}}.tv-control-error__message a:focus{outline:auto}.tv-control-error__message a:focus:not(:-moz-focusring){outline:none}.tv-control-error__message a:-moz-focusring{outline:auto}.tv-control-error__message a:active{fill:#e9eff2;color:#e9eff2;transition-duration:.06s}.tv-control-error.i-error .tv-control-error__icon{opacity:1;transition-duration:.06s}.tv-control-error.i-error.i-focus .tv-control-error__width-control-wrapper{opacity:1}@media (any-hover:hover){.tv-control-error.i-error:hover .tv-control-error__width-control-wrapper{opacity:1}}.tv-control-error.i-error.i-focus .tv-control-error__messages{opacity:1;transform:scale(1) translateY(0);transition-duration:.06s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover){.tv-control-error.i-error:hover .tv-control-error__messages{opacity:1;transform:scale(1) translateY(0);transition-duration:.06s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}}.tv-control-error.i-error.i-focus-touch .tv-control-error__messages,.tv-control-error.i-error.i-focus-touch .tv-control-error__width-control-wrapper{opacity:1}.tv-control-error--msg_left .tv-control-error__width-control-wrapper{left:auto;right:0}.tv-control-error--msg_left .tv-control-error__messages{transform-origin:bottom right}.tv-control-error--material-input .tv-control-error__icon{top:5px}.tv-control-error__brand-dark-bg-cascade .tv-control-error__messages{background-color:#2a2c39;border:1px solid #4e5866;color:#ff4a68} \ No newline at end of file diff --git a/charting_library/bundles/5733.ff2d007e3096cc677a13.css b/charting_library/bundles/5733.ff2d007e3096cc677a13.css new file mode 100644 index 00000000..ca27a929 --- /dev/null +++ b/charting_library/bundles/5733.ff2d007e3096cc677a13.css @@ -0,0 +1 @@ +.container-xBgZHjTk{display:inline-block;height:1em;line-height:1;overflow:hidden;perspective:1px;position:relative;width:1ch}.wrap-xBgZHjTk{display:flex;flex-direction:column;position:absolute}.digit-xBgZHjTk{display:inline-block;height:1em;text-align:center;width:1ch}.animated-xBgZHjTk{transition:transform .35s ease}.price-fplyypVB{align-items:center;display:inline-flex}.countdown-7K6OansE{display:grid;grid-auto-flow:column}.size-m-7K6OansE{grid-gap:8px}@media screen and (min-width:568px){.size-m-7K6OansE{grid-gap:24px}}.size-m-7K6OansE .card-7K6OansE{height:80px;min-width:70px}@media screen and (min-width:568px){.size-m-7K6OansE .card-7K6OansE{min-width:80px}}.size-s-7K6OansE{grid-gap:8px;grid-template-columns:repeat(4,minmax(56px,96px))}@media screen and (min-width:568px){.size-s-7K6OansE{grid-gap:16px}}@media screen and (min-width:768px){.size-s-7K6OansE{grid-template-columns:repeat(4,72px)}}.size-s-7K6OansE .card-7K6OansE{height:68px;min-width:auto}@media screen and (min-width:568px){.size-s-7K6OansE .card-7K6OansE{min-width:72px}}.size-custom-7K6OansE{grid-gap:var(--gap);grid-template-columns:repeat(var(--cards-count),var(--max-card-width))}.size-custom-7K6OansE .card-7K6OansE{height:var(--card-height)}.size-custom-7K6OansE .card-7K6OansE .number-7K6OansE{font-size:var(--number-font-size);height:1em;line-height:1em}.size-custom-7K6OansE .card-7K6OansE .label-7K6OansE{font-size:var(--label-font-size);line-height:1em}.card-7K6OansE{background:#fff;border-radius:6px;box-shadow:0 2px 4px #0003;box-sizing:border-box;color:#131722;display:flex;flex-flow:column nowrap;justify-content:center;padding:4px;text-align:center}html.theme-dark .card-7K6OansE{background:#2a2e39;box-shadow:0 2px 4px #0006;color:#d1d4dc}.profile-7K6OansE .card-7K6OansE{background:#e3effd;box-shadow:none;color:#131722}html.theme-dark .profile-7K6OansE .card-7K6OansE{background:#2a2e39;box-shadow:none;color:#d1d4dc}.black-friday-7K6OansE .card-7K6OansE,.cyber-monday-7K6OansE .card-7K6OansE,html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE{background:#0c0e15;box-shadow:0 2px 4px #0003;color:#fff}html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE,html.theme-dark html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE{box-shadow:0 2px 4px #0006}@media screen and (max-width:479px){.card-7K6OansE{margin:0 4px;min-width:70px;padding:8px 9px}}html.theme-dark .card-7K6OansE{box-shadow:none}.number-7K6OansE{font-size:36px;font-style:normal;font-weight:600;font-weight:700;height:36px;line-height:44px;padding-bottom:4px}.size-s-7K6OansE .number-7K6OansE{font-size:24px;height:24px;line-height:24px}.label-7K6OansE{font-size:14px;line-height:21px;text-transform:uppercase}.size-s-7K6OansE .label-7K6OansE{font-size:11px;line-height:11px}.container-7Eixwdg2{display:flex;flex-flow:row nowrap;justify-content:center;margin-top:16px;padding:0 20px}@media screen and (min-width:1280px){.container-7Eixwdg2{margin-top:24px}}.countdown-ended-text-7Eixwdg2{color:#131722;font-size:24px;font-style:normal;font-weight:600;font-weight:700;line-height:32px}html.theme-dark .countdown-ended-text-7Eixwdg2{color:#d1d4dc}.upgradeNotificationDescription-N6e9zdP9{font-size:24px;line-height:36px}.countDown-N6e9zdP9{display:flex;justify-content:center;margin:24px 0 40px}.dialog-78lAG3GO{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-78lAG3GO{padding:24px 20px;width:100%}}.dialog-78lAG3GO.radius-78lAG3GO{border-radius:0}.container-78lAG3GO{flex:auto;text-align:center}.closeButton-78lAG3GO{cursor:pointer;right:17px;top:17px}.wrapperImage-78lAG3GO{height:120px;margin:0 auto;width:120px}@media screen and (max-width:767px){.wrapperImage-78lAG3GO{margin-top:20px}}.title-78lAG3GO{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-78lAG3GO{color:#d1d4dc}@media screen and (max-width:767px){.title-78lAG3GO{font-size:24px;line-height:32px}}.subtitle-78lAG3GO{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:left}html.theme-dark .subtitle-78lAG3GO{color:#d1d4dc}.description-78lAG3GO{color:#131722;font-size:18px;line-height:28px;margin-top:15px}html.theme-dark .description-78lAG3GO{color:#d1d4dc}.description-78lAG3GO a,html.theme-dark .description-78lAG3GO a{color:#2962ff}@media (any-hover:hover){.description-78lAG3GO a:hover,html.theme-dark .description-78lAG3GO a:hover{color:#1e53e5}}.description-78lAG3GO p{margin-bottom:13px}.description-78lAG3GO p:last-child{margin-bottom:0}.description-78lAG3GO.center-78lAG3GO{text-align:center}.description-78lAG3GO.left-78lAG3GO{text-align:left}.wrapperButton-78lAG3GO{align-items:center;display:flex;flex-direction:column;margin-top:40px}.actionButton-78lAG3GO{cursor:pointer;margin-bottom:13px;min-height:56px}.actionButton-78lAG3GO:last-child{margin-bottom:0}.upgrade-not-available-tlc6NtlG{font-size:18px;font-weight:700} \ No newline at end of file diff --git a/charting_library/bundles/5733.ff2d007e3096cc677a13.rtl.css b/charting_library/bundles/5733.ff2d007e3096cc677a13.rtl.css new file mode 100644 index 00000000..441702f4 --- /dev/null +++ b/charting_library/bundles/5733.ff2d007e3096cc677a13.rtl.css @@ -0,0 +1 @@ +.container-xBgZHjTk{display:inline-block;height:1em;line-height:1;overflow:hidden;perspective:1px;position:relative;width:1ch}.wrap-xBgZHjTk{display:flex;flex-direction:column;position:absolute}.digit-xBgZHjTk{display:inline-block;height:1em;text-align:center;width:1ch}.animated-xBgZHjTk{transition:transform .35s ease}.price-fplyypVB{align-items:center;direction:ltr;display:inline-flex}.countdown-7K6OansE{display:grid;grid-auto-flow:column}.size-m-7K6OansE{grid-gap:8px}@media screen and (min-width:568px){.size-m-7K6OansE{grid-gap:24px}}.size-m-7K6OansE .card-7K6OansE{height:80px;min-width:70px}@media screen and (min-width:568px){.size-m-7K6OansE .card-7K6OansE{min-width:80px}}.size-s-7K6OansE{grid-gap:8px;grid-template-columns:repeat(4,minmax(56px,96px))}@media screen and (min-width:568px){.size-s-7K6OansE{grid-gap:16px}}@media screen and (min-width:768px){.size-s-7K6OansE{grid-template-columns:repeat(4,72px)}}.size-s-7K6OansE .card-7K6OansE{height:68px;min-width:auto}@media screen and (min-width:568px){.size-s-7K6OansE .card-7K6OansE{min-width:72px}}.size-custom-7K6OansE{grid-gap:var(--gap);grid-template-columns:repeat(var(--cards-count),var(--max-card-width))}.size-custom-7K6OansE .card-7K6OansE{height:var(--card-height)}.size-custom-7K6OansE .card-7K6OansE .number-7K6OansE{font-size:var(--number-font-size);height:1em;line-height:1em}.size-custom-7K6OansE .card-7K6OansE .label-7K6OansE{font-size:var(--label-font-size);line-height:1em}.card-7K6OansE{background:#fff;border-radius:6px;box-shadow:0 2px 4px #0003;box-sizing:border-box;color:#131722;display:flex;flex-flow:column nowrap;justify-content:center;padding:4px;text-align:center}html.theme-dark .card-7K6OansE{background:#2a2e39;box-shadow:0 2px 4px #0006;color:#d1d4dc}.profile-7K6OansE .card-7K6OansE{background:#e3effd;box-shadow:none;color:#131722}html.theme-dark .profile-7K6OansE .card-7K6OansE{background:#2a2e39;box-shadow:none;color:#d1d4dc}.black-friday-7K6OansE .card-7K6OansE,.cyber-monday-7K6OansE .card-7K6OansE,html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE{background:#0c0e15;box-shadow:0 2px 4px #0003;color:#fff}html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE,html.theme-dark html.theme-dark .black-friday-7K6OansE .card-7K6OansE,html.theme-dark html.theme-dark .cyber-monday-7K6OansE .card-7K6OansE{box-shadow:0 2px 4px #0006}@media screen and (max-width:479px){.card-7K6OansE{margin:0 4px;min-width:70px;padding:8px 9px}}html.theme-dark .card-7K6OansE{box-shadow:none}.number-7K6OansE{font-size:36px;font-style:normal;font-weight:600;font-weight:700;height:36px;line-height:44px;padding-bottom:4px}.size-s-7K6OansE .number-7K6OansE{font-size:24px;height:24px;line-height:24px}.label-7K6OansE{font-size:14px;line-height:21px;text-transform:uppercase}.size-s-7K6OansE .label-7K6OansE{font-size:11px;line-height:11px}.container-7Eixwdg2{display:flex;flex-flow:row nowrap;justify-content:center;margin-top:16px;padding:0 20px}@media screen and (min-width:1280px){.container-7Eixwdg2{margin-top:24px}}.countdown-ended-text-7Eixwdg2{color:#131722;font-size:24px;font-style:normal;font-weight:600;font-weight:700;line-height:32px}html.theme-dark .countdown-ended-text-7Eixwdg2{color:#d1d4dc}.upgradeNotificationDescription-N6e9zdP9{font-size:24px;line-height:36px}.countDown-N6e9zdP9{display:flex;justify-content:center;margin:24px 0 40px}.dialog-78lAG3GO{overflow-x:hidden;overflow-y:auto;padding:40px;position:relative;width:720px}@media screen and (max-width:767px){.dialog-78lAG3GO{padding:24px 20px;width:100%}}.dialog-78lAG3GO.radius-78lAG3GO{border-radius:0}.container-78lAG3GO{flex:auto;text-align:center}.closeButton-78lAG3GO{cursor:pointer;left:17px;top:17px}.wrapperImage-78lAG3GO{height:120px;margin:0 auto;width:120px}@media screen and (max-width:767px){.wrapperImage-78lAG3GO{margin-top:20px}}.title-78lAG3GO{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-top:25px}html.theme-dark .title-78lAG3GO{color:#d1d4dc}@media screen and (max-width:767px){.title-78lAG3GO{font-size:24px;line-height:32px}}.subtitle-78lAG3GO{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:right}html.theme-dark .subtitle-78lAG3GO{color:#d1d4dc}.description-78lAG3GO{color:#131722;font-size:18px;line-height:28px;margin-top:15px}html.theme-dark .description-78lAG3GO{color:#d1d4dc}.description-78lAG3GO a,html.theme-dark .description-78lAG3GO a{color:#2962ff}@media (any-hover:hover){.description-78lAG3GO a:hover,html.theme-dark .description-78lAG3GO a:hover{color:#1e53e5}}.description-78lAG3GO p{margin-bottom:13px}.description-78lAG3GO p:last-child{margin-bottom:0}.description-78lAG3GO.center-78lAG3GO{text-align:center}.description-78lAG3GO.left-78lAG3GO{text-align:right}.wrapperButton-78lAG3GO{align-items:center;display:flex;flex-direction:column;margin-top:40px}.actionButton-78lAG3GO{cursor:pointer;margin-bottom:13px;min-height:56px}.actionButton-78lAG3GO:last-child{margin-bottom:0}.upgrade-not-available-tlc6NtlG{font-size:18px;font-weight:700} \ No newline at end of file diff --git a/charting_library/bundles/576e6465e16da65acd139607cb0febde.svg b/charting_library/bundles/576e6465e16da65acd139607cb0febde.svg new file mode 100644 index 00000000..cb91d6f8 --- /dev/null +++ b/charting_library/bundles/576e6465e16da65acd139607cb0febde.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5802.92bc0e290d3769e49cfb.css b/charting_library/bundles/5802.92bc0e290d3769e49cfb.css deleted file mode 100644 index cf155a19..00000000 --- a/charting_library/bundles/5802.92bc0e290d3769e49cfb.css +++ /dev/null @@ -1 +0,0 @@ -.row-9XF0QIKT{grid-gap:12px;display:grid;grid-template-columns:150px 100px;margin-bottom:16px;padding-left:20px;padding-right:20px}.mobileRow-9XF0QIKT{justify-content:flex-start;padding-left:20px}.calendar-U9DgB4FB{background-color:#fff;box-sizing:border-box;color:#131722;cursor:default;direction:ltr;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;height:100%;padding:12px;-webkit-user-select:none;user-select:none;width:286px}html.theme-dark .calendar-U9DgB4FB{background-color:#1e222d;color:#b2b5be}.popupStyle-U9DgB4FB{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003}html.theme-dark .popupStyle-U9DgB4FB{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-U9DgB4FB{align-items:center;display:flex;justify-content:space-between;padding-left:3px;padding-right:3px}.header-U9DgB4FB .title-U9DgB4FB{font-size:16px;line-height:24px;max-width:160px}.header-U9DgB4FB .switchBtn-U9DgB4FB{border-radius:4px;cursor:pointer;font-size:0;margin:-3px;padding:3px}@media (any-hover:hover){.header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#f0f3fa}html.theme-dark .header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#2a2e39}}.header-U9DgB4FB .switchBtn-U9DgB4FB.prev-U9DgB4FB{transform:scale(-1)}.month-U9DgB4FB{display:flex;flex-direction:column}.month-U9DgB4FB .weekdays-U9DgB4FB{align-items:center;background-color:#f8f9fd;border-radius:4px;display:flex;justify-content:space-between;margin-top:12px;padding-bottom:2px;padding-top:2px}html.theme-dark .month-U9DgB4FB .weekdays-U9DgB4FB{background-color:#2a2e39}.month-U9DgB4FB .weekdays-U9DgB4FB>span{color:#787b86;font-size:13px;line-height:20px;text-align:center;width:34px}.month-U9DgB4FB .weeks-U9DgB4FB{display:flex;flex-direction:column;margin-top:12px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB{display:flex;justify-content:space-between}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child .day-U9DgB4FB+.day-U9DgB4FB,.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child .day-U9DgB4FB+.day-U9DgB4FB{margin-left:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child{justify-content:flex-end}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child{justify-content:flex-start}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB+.week-U9DgB4FB{margin-top:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB{align-items:center;border-radius:4px;box-sizing:border-box;display:flex;font-size:14px;height:34px;justify-content:center;width:34px}@media (any-hover:hover){.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#f0f3fa}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#2a2e39}}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#50535e}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB{color:#2962ff;position:relative}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff;border-radius:1px;bottom:5px;content:"";height:2px;left:50%;position:absolute;transform:translateX(-50%);width:20px}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#e3effd;border:2px solid #2962ff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#132042;border:2px solid #2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#e3effd}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#132042}.pickerInput-sZbzL9zH{position:relative}.pickerInput-sZbzL9zH .icon-sZbzL9zH{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:0 6px}.pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86;height:16px;width:16px}html.theme-dark .pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86}.pickerInput-sZbzL9zH .icon-sZbzL9zH.disabled-sZbzL9zH{opacity:.1}.picker-sZbzL9zH{transition:opacity .2625s ease;z-index:99}.fixed-sZbzL9zH{position:fixed}.absolute-sZbzL9zH{position:absolute}.nativePicker-sZbzL9zH{bottom:0;left:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;top:0}.tooltip-QKiUU4Ng{background-color:#2a2e39;border-radius:2px;color:#f0f3fa;padding:4px 8px;white-space:nowrap}html.theme-dark .tooltip-QKiUU4Ng{background-color:#434651}.container-tZN1pb1A{display:inline-block;position:relative}.icon-tZN1pb1A{color:var(--ui-lib-control-default-slot-color,currentColor);font-size:0}.tooltip-tZN1pb1A{bottom:calc(100% + 4px);left:50%;pointer-events:none;position:absolute;transform:translateX(-50%)}.date-tZN1pb1A{max-width:150px}.time-tZN1pb1A{max-width:100px}.calendar-wVs9kh0I{margin-left:8px;margin-right:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-70bfoXiO{min-width:302px}.dialogWrapperSmall-70bfoXiO{max-width:419px;width:100%}.tabs-70bfoXiO{padding-top:1px}.content-70bfoXiO{overflow:auto;padding-top:17px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .content-70bfoXiO{scrollbar-color:#363a45 #0000}.content-70bfoXiO::-webkit-scrollbar{height:5px;width:5px}.content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-70bfoXiO::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-70bfoXiO::-webkit-scrollbar-corner{display:none}.contentMobile-70bfoXiO{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-70bfoXiO{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/5802.92bc0e290d3769e49cfb.rtl.css b/charting_library/bundles/5802.92bc0e290d3769e49cfb.rtl.css deleted file mode 100644 index 39890e12..00000000 --- a/charting_library/bundles/5802.92bc0e290d3769e49cfb.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.row-9XF0QIKT{grid-gap:12px;display:grid;grid-template-columns:150px 100px;margin-bottom:16px;padding-left:20px;padding-right:20px}.mobileRow-9XF0QIKT{justify-content:flex-start;padding-right:20px}.calendar-U9DgB4FB{background-color:#fff;box-sizing:border-box;color:#131722;cursor:default;direction:ltr;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;height:100%;padding:12px;-webkit-user-select:none;user-select:none;width:286px}html.theme-dark .calendar-U9DgB4FB{background-color:#1e222d;color:#b2b5be}.popupStyle-U9DgB4FB{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003}html.theme-dark .popupStyle-U9DgB4FB{background-color:#1e222d;box-shadow:0 2px 4px #0006}.header-U9DgB4FB{align-items:center;display:flex;justify-content:space-between;padding-left:3px;padding-right:3px}.header-U9DgB4FB .title-U9DgB4FB{font-size:16px;line-height:24px;max-width:160px}.header-U9DgB4FB .switchBtn-U9DgB4FB{border-radius:4px;cursor:pointer;font-size:0;margin:-3px;padding:3px}@media (any-hover:hover){.header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#f0f3fa}html.theme-dark .header-U9DgB4FB .switchBtn-U9DgB4FB:hover{background-color:#2a2e39}}.header-U9DgB4FB .switchBtn-U9DgB4FB.prev-U9DgB4FB{transform:scale(-1)}.month-U9DgB4FB{display:flex;flex-direction:column}.month-U9DgB4FB .weekdays-U9DgB4FB{align-items:center;background-color:#f8f9fd;border-radius:4px;display:flex;justify-content:space-between;margin-top:12px;padding-bottom:2px;padding-top:2px}html.theme-dark .month-U9DgB4FB .weekdays-U9DgB4FB{background-color:#2a2e39}.month-U9DgB4FB .weekdays-U9DgB4FB>span{color:#787b86;font-size:13px;line-height:20px;text-align:center;width:34px}.month-U9DgB4FB .weeks-U9DgB4FB{display:flex;flex-direction:column;margin-top:12px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB{display:flex;justify-content:space-between}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child .day-U9DgB4FB+.day-U9DgB4FB,.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child .day-U9DgB4FB+.day-U9DgB4FB{margin-right:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:first-child{justify-content:flex-end}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB:last-child{justify-content:flex-start}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB+.week-U9DgB4FB{margin-top:4px}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB{align-items:center;border-radius:4px;box-sizing:border-box;display:flex;font-size:14px;height:34px;justify-content:center;width:34px}@media (any-hover:hover){.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#f0f3fa}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB:hover:not(.disabled-U9DgB4FB):not(.selected-U9DgB4FB){background-color:#2a2e39}}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.disabled-U9DgB4FB{color:#50535e}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB{color:#2962ff;position:relative}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff;border-radius:1px;bottom:5px;content:"";height:2px;position:absolute;right:50%;transform:translateX(50%);width:20px}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#e3effd;border:2px solid #2962ff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.isOnHighlightedEdge-U9DgB4FB:not(.selected-U9DgB4FB){background-color:#132042;border:2px solid #2962ff}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB{background-color:#2962ff;color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#fff}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.selected-U9DgB4FB.currentDay-U9DgB4FB:after{background-color:#f0f3fa}.month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#e3effd}html.theme-dark .month-U9DgB4FB .weeks-U9DgB4FB .week-U9DgB4FB .day-U9DgB4FB.withinSelectedRange-U9DgB4FB{background-color:#132042}.pickerInput-sZbzL9zH{position:relative}.pickerInput-sZbzL9zH .icon-sZbzL9zH{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:0 6px}.pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86;height:16px;width:16px}html.theme-dark .pickerInput-sZbzL9zH .icon-sZbzL9zH svg{fill:#787b86}.pickerInput-sZbzL9zH .icon-sZbzL9zH.disabled-sZbzL9zH{opacity:.1}.picker-sZbzL9zH{transition:opacity .2625s ease;z-index:99}.fixed-sZbzL9zH{position:fixed}.absolute-sZbzL9zH{position:absolute}.nativePicker-sZbzL9zH{bottom:0;margin:0;max-width:100%;min-width:100%;opacity:0;position:absolute;right:0;top:0}.tooltip-QKiUU4Ng{background-color:#2a2e39;border-radius:2px;color:#f0f3fa;padding:4px 8px;white-space:nowrap}html.theme-dark .tooltip-QKiUU4Ng{background-color:#434651}.container-tZN1pb1A{display:inline-block;position:relative}.icon-tZN1pb1A{color:var(--ui-lib-control-default-slot-color,currentColor);font-size:0}.tooltip-tZN1pb1A{bottom:calc(100% + 4px);pointer-events:none;position:absolute;right:50%;transform:translateX(50%)}.date-tZN1pb1A{max-width:150px}.time-tZN1pb1A{max-width:100px}.calendar-wVs9kh0I{margin-left:8px;margin-right:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-70bfoXiO{min-width:302px}.dialogWrapperSmall-70bfoXiO{max-width:419px;width:100%}.tabs-70bfoXiO{padding-top:1px}.content-70bfoXiO{overflow:auto;padding-top:17px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .content-70bfoXiO{scrollbar-color:#363a45 #0000}.content-70bfoXiO::-webkit-scrollbar{height:5px;width:5px}.content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .content-70bfoXiO::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.content-70bfoXiO::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.content-70bfoXiO::-webkit-scrollbar-corner{display:none}.contentMobile-70bfoXiO{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-70bfoXiO{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/5824a756d7227972e0d24375246ee236.svg b/charting_library/bundles/5824a756d7227972e0d24375246ee236.svg new file mode 100644 index 00000000..66cf744d --- /dev/null +++ b/charting_library/bundles/5824a756d7227972e0d24375246ee236.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5835.ed17059c36bd9c957c54.css b/charting_library/bundles/5835.ed17059c36bd9c957c54.css new file mode 100644 index 00000000..99f4f0b6 --- /dev/null +++ b/charting_library/bundles/5835.ed17059c36bd9c957c54.css @@ -0,0 +1 @@ +.container-4Rvuptlt{bottom:70px;display:flex;justify-content:center;left:10px;pointer-events:none;position:absolute;right:10px}.centerElement-4Rvuptlt{pointer-events:auto;z-index:1}.text-4Rvuptlt{word-wrap:break-word;color:#fff;font-size:14px;line-height:21px;margin-bottom:auto} \ No newline at end of file diff --git a/charting_library/bundles/5835.ed17059c36bd9c957c54.rtl.css b/charting_library/bundles/5835.ed17059c36bd9c957c54.rtl.css new file mode 100644 index 00000000..99f4f0b6 --- /dev/null +++ b/charting_library/bundles/5835.ed17059c36bd9c957c54.rtl.css @@ -0,0 +1 @@ +.container-4Rvuptlt{bottom:70px;display:flex;justify-content:center;left:10px;pointer-events:none;position:absolute;right:10px}.centerElement-4Rvuptlt{pointer-events:auto;z-index:1}.text-4Rvuptlt{word-wrap:break-word;color:#fff;font-size:14px;line-height:21px;margin-bottom:auto} \ No newline at end of file diff --git a/charting_library/bundles/584a79e77d4432cf0ca27a1063d9ba0d.svg b/charting_library/bundles/584a79e77d4432cf0ca27a1063d9ba0d.svg new file mode 100644 index 00000000..add1b574 --- /dev/null +++ b/charting_library/bundles/584a79e77d4432cf0ca27a1063d9ba0d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5904.25a33d6d7b0935e49721.css b/charting_library/bundles/5904.25a33d6d7b0935e49721.css new file mode 100644 index 00000000..02a28684 --- /dev/null +++ b/charting_library/bundles/5904.25a33d6d7b0935e49721.css @@ -0,0 +1 @@ +.tv-trial-dialog-success__header{margin-top:0}.tv-trial-dialog-success .tv-trial-dialog-success__subtitle{margin-bottom:20px}.tv-trial-dialog-success__section{border-bottom:1px solid #e0e3eb;padding:40px 40px 0}html.theme-dark .tv-trial-dialog-success__section{border-bottom-color:#363a45}.tv-trial-dialog-success__section--last,.tv-trial-dialog-success__section--no-border,.tv-trial-dialog-success__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-trial-dialog-success__section{padding:20px}}.tv-trial-dialog-success__section--no-padding_bottom{padding-bottom:0}.tv-trial-dialog-success__section--actions{box-sizing:border-box;display:inline-block;padding-bottom:40px;text-align:right;white-space:nowrap;width:100%}.tv-trial-dialog-success__section--actions_with-help:after{clear:both;content:"";display:table}.tv-trial-dialog-success__section--actions_with-border{border-top:1px solid #e0e3eb;padding-top:29px}html.theme-dark .tv-trial-dialog-success__section--actions_with-border{border-top-color:#363a45}@media screen and (max-width:767px){.tv-trial-dialog-success__section--actions_with-border{padding:19px}}.tv-trial-dialog-success__section--actions_multiline{padding-top:24px;white-space:normal}@media screen and (max-width:479px){.tv-trial-dialog-success__section--actions_multiline{padding-top:20px}}.tv-trial-dialog-success__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:24px;width:100%}@media screen and (max-width:479px){.tv-trial-dialog-success__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}.tv-trial-dialog-success__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-trial-dialog-success__section--actions-adaptive .tv-button{margin-top:10px}.tv-trial-dialog-success__section--actions-adaptive .tv-control-checkbox{order:1}.tv-trial-dialog-success__section--actions-adaptive .tv-button:first-child,.tv-trial-dialog-success__section--actions-adaptive .tv-button:last-child{margin-left:0}}.tv-trial-dialog-success__section--title{padding-right:70px}.tv-trial-dialog-success__section--one-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-trial-dialog-success__section--actions{padding:10px 40px 40px} \ No newline at end of file diff --git a/charting_library/bundles/5904.25a33d6d7b0935e49721.rtl.css b/charting_library/bundles/5904.25a33d6d7b0935e49721.rtl.css new file mode 100644 index 00000000..48841b96 --- /dev/null +++ b/charting_library/bundles/5904.25a33d6d7b0935e49721.rtl.css @@ -0,0 +1 @@ +.tv-trial-dialog-success__header{margin-top:0}.tv-trial-dialog-success .tv-trial-dialog-success__subtitle{margin-bottom:20px}.tv-trial-dialog-success__section{border-bottom:1px solid #e0e3eb;padding:40px 40px 0}html.theme-dark .tv-trial-dialog-success__section{border-bottom-color:#363a45}.tv-trial-dialog-success__section--last,.tv-trial-dialog-success__section--no-border,.tv-trial-dialog-success__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-trial-dialog-success__section{padding:20px}}.tv-trial-dialog-success__section--no-padding_bottom{padding-bottom:0}.tv-trial-dialog-success__section--actions{box-sizing:border-box;display:inline-block;padding-bottom:40px;text-align:left;white-space:nowrap;width:100%}.tv-trial-dialog-success__section--actions_with-help:after{clear:both;content:"";display:table}.tv-trial-dialog-success__section--actions_with-border{border-top:1px solid #e0e3eb;padding-top:29px}html.theme-dark .tv-trial-dialog-success__section--actions_with-border{border-top-color:#363a45}@media screen and (max-width:767px){.tv-trial-dialog-success__section--actions_with-border{padding:19px}}.tv-trial-dialog-success__section--actions_multiline{padding-top:24px;white-space:normal}@media screen and (max-width:479px){.tv-trial-dialog-success__section--actions_multiline{padding-top:20px}}.tv-trial-dialog-success__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:24px;width:100%}@media screen and (max-width:479px){.tv-trial-dialog-success__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}.tv-trial-dialog-success__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-trial-dialog-success__section--actions-adaptive .tv-button{margin-top:10px}.tv-trial-dialog-success__section--actions-adaptive .tv-control-checkbox{order:1}.tv-trial-dialog-success__section--actions-adaptive .tv-button:first-child,.tv-trial-dialog-success__section--actions-adaptive .tv-button:last-child{margin-right:0}}.tv-trial-dialog-success__section--title{padding-left:70px}.tv-trial-dialog-success__section--one-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-trial-dialog-success__section--actions{padding:10px 40px 40px} \ No newline at end of file diff --git a/charting_library/bundles/5911.25d75d2a641c68537541.css b/charting_library/bundles/5911.25d75d2a641c68537541.css new file mode 100644 index 00000000..d25e2708 --- /dev/null +++ b/charting_library/bundles/5911.25d75d2a641c68537541.css @@ -0,0 +1 @@ +.cyber-monday-button-YrzjxNPj{--ui-lib-button-color-border:#00e5ff;--ui-lib-button-color-focus-outline:#00e5ffcc}.cyber-monday-button-YrzjxNPj:active{--ui-lib-button-color-bg:#00b8d4;--ui-lib-button-color-border:#00b8d4}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj:hover{--ui-lib-button-color-bg:#00b8d4;--ui-lib-button-color-border:#00b8d4}}.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj{--ui-lib-button-color-bg:#00e5ff}.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj,.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj:active{--ui-lib-button-color-content:#131722}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj:hover{--ui-lib-button-color-content:#131722}}.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj{--ui-lib-button-color-content:#00e5ff}.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj:active{--ui-lib-button-color-content:#131722}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj:hover{--ui-lib-button-color-content:#131722}}.title-sE9E93fC{color:#f23645;font-family:EuclidCircularLatinBold,sans-serif;font-weight:600;line-height:1em;text-transform:uppercase}@media screen and (min-width:768px){.title-sE9E93fC{font-size:36px}}@media screen and (min-width:1280px){.title-sE9E93fC{font-size:48px}}.title-sE9E93fC.cyber_monday-sE9E93fC{color:#00e5ff}.offer-sE9E93fC{color:#fff}.up-to-v4RmmzYp{color:#d1d4dc;font-size:18px;line-height:28px;margin-top:8px}@media screen and (min-width:768px){.up-to-v4RmmzYp{margin-top:16px}}.off-v4RmmzYp{color:#fff;font-family:EuclidCircularLatinBold,sans-serif;font-size:48px;font-weight:600;line-height:1em;text-transform:uppercase;word-spacing:-10px}@media screen and (min-width:768px){.off-v4RmmzYp{font-size:64px}}@media screen and (min-width:1280px){.off-v4RmmzYp{font-size:100px}}.free-month-v4RmmzYp{font-feature-settings:"tnum" on,"lnum" on;color:#f23645;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;text-transform:uppercase}.cyber_monday-v4RmmzYp .free-month-v4RmmzYp{color:#00e5ff}.countdown-MqLubNEz{margin-top:8px}@media screen and (min-width:568px){.countdown-MqLubNEz{max-width:368px}}.offer-ends-MqLubNEz{color:#d1d4dc;font-size:18px;letter-spacing:-.4px;line-height:28px;text-align:center}.background-19guwtkm{bottom:0;display:flex;justify-content:center;left:0;overflow:hidden;position:absolute;right:0;top:0}.background-19guwtkm.page-19guwtkm{top:-64px}.picture-19guwtkm{align-items:flex-start;display:flex;justify-content:stretch;position:relative}.background-img-19guwtkm{position:relative}.vertical-stretch-19guwtkm .background-img-19guwtkm{min-height:100%}.center-19guwtkm .background-img-19guwtkm{top:50%;transform:translateY(-50%)}.bottom-19guwtkm .background-img-19guwtkm{top:100%;transform:translateY(-100%)}.source-19guwtkm{position:absolute}.gradient-19guwtkm{bottom:0;left:0;position:absolute;right:0;top:0}.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 320px)}@media screen and (min-width:568px){.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 240px)}}@media screen and (min-width:1920px){.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 320px)}}.banner-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 160px)}.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 65px)}@media screen and (min-width:320px){.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 246px)}}@media screen and (min-width:768px){.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 200px)}}@font-face{font-display:swap;font-family:EuclidCircularLatinBold;font-style:normal;font-weight:600;src:url(cddf468f55cf701e442982e83f9a67f6.woff2) format("woff2")}.banner-VFW2MkIn{background-color:#000;box-sizing:border-box;padding-left:20px;padding-right:20px;position:relative}.banner-VFW2MkIn.in-dialog-VFW2MkIn{padding-bottom:var(--v-rhythm-spacing-4-phone);padding-top:var(--v-rhythm-header-1-space-phone)}.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-bottom:var(--v-rhythm-spacing-4);padding-top:var(--v-rhythm-spacing-4)}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:32px;padding-right:32px}}@media screen and (min-width:1440px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:40px;padding-right:40px}}@media screen and (min-width:1920px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:100px;padding-right:100px}}.container-VFW2MkIn{grid-gap:16px;display:grid;justify-content:center;margin:0 auto;max-width:1152px;position:relative}@media screen and (min-width:768px){.container-VFW2MkIn{grid-gap:24px}}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{grid-auto-flow:column;justify-content:space-between}}@media screen and (min-width:1440px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1280px}}@media screen and (min-width:1920px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1520px}}@media screen and (min-width:2560px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1880px}}.title-group-VFW2MkIn{text-align:center}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .title-group-VFW2MkIn{text-align:left}}.actions-wrapper-VFW2MkIn{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.learn-more-VFW2MkIn{margin-top:32px}@media screen and (min-width:768px){.learn-more-VFW2MkIn{margin-top:40px}}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .learn-more-VFW2MkIn{margin-top:16px;width:100%}}.dialog-close-VulYnFJT.close-VulYnFJT{color:#d1d4dc;height:16px;opacity:1;padding:15px;right:16px;top:16px;transition:color .35s ease;width:16px}.dialog-close-VulYnFJT.close-VulYnFJT svg{height:100%;width:100%}@media (any-hover:hover){.dialog-close-VulYnFJT.close-VulYnFJT:hover{color:#f8f9fd}}.tv-dialog-VulYnFJT.tv-blackfriday-popup-VulYnFJT{padding:0}@media screen and (max-width:767px){.modal-body-VulYnFJT{padding:0}.banner-VulYnFJT{align-items:center;display:flex;min-height:100vh}} \ No newline at end of file diff --git a/charting_library/bundles/5911.25d75d2a641c68537541.rtl.css b/charting_library/bundles/5911.25d75d2a641c68537541.rtl.css new file mode 100644 index 00000000..8da72f1b --- /dev/null +++ b/charting_library/bundles/5911.25d75d2a641c68537541.rtl.css @@ -0,0 +1 @@ +.cyber-monday-button-YrzjxNPj{--ui-lib-button-color-border:#00e5ff;--ui-lib-button-color-focus-outline:#00e5ffcc}.cyber-monday-button-YrzjxNPj:active{--ui-lib-button-color-bg:#00b8d4;--ui-lib-button-color-border:#00b8d4}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj:hover{--ui-lib-button-color-bg:#00b8d4;--ui-lib-button-color-border:#00b8d4}}.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj{--ui-lib-button-color-bg:#00e5ff}.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj,.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj:active{--ui-lib-button-color-content:#131722}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj.variant-primary-YrzjxNPj:hover{--ui-lib-button-color-content:#131722}}.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj{--ui-lib-button-color-content:#00e5ff}.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj:active{--ui-lib-button-color-content:#131722}@media (any-hover:hover){.cyber-monday-button-YrzjxNPj.variant-secondary-YrzjxNPj:hover{--ui-lib-button-color-content:#131722}}.title-sE9E93fC{color:#f23645;font-family:EuclidCircularLatinBold,sans-serif;font-weight:600;line-height:1em;text-transform:uppercase}@media screen and (min-width:768px){.title-sE9E93fC{font-size:36px}}@media screen and (min-width:1280px){.title-sE9E93fC{font-size:48px}}.title-sE9E93fC.cyber_monday-sE9E93fC{color:#00e5ff}.offer-sE9E93fC{color:#fff}.up-to-v4RmmzYp{color:#d1d4dc;font-size:18px;line-height:28px;margin-top:8px}@media screen and (min-width:768px){.up-to-v4RmmzYp{margin-top:16px}}.off-v4RmmzYp{color:#fff;font-family:EuclidCircularLatinBold,sans-serif;font-size:48px;font-weight:600;line-height:1em;text-transform:uppercase;word-spacing:-10px}@media screen and (min-width:768px){.off-v4RmmzYp{font-size:64px}}@media screen and (min-width:1280px){.off-v4RmmzYp{font-size:100px}}.free-month-v4RmmzYp{font-feature-settings:"tnum" on,"lnum" on;color:#f23645;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;text-transform:uppercase}.cyber_monday-v4RmmzYp .free-month-v4RmmzYp{color:#00e5ff}.countdown-MqLubNEz{margin-top:8px}@media screen and (min-width:568px){.countdown-MqLubNEz{max-width:368px}}.offer-ends-MqLubNEz{color:#d1d4dc;font-size:18px;letter-spacing:-.4px;line-height:28px;text-align:center}.background-19guwtkm{bottom:0;display:flex;justify-content:center;left:0;overflow:hidden;position:absolute;right:0;top:0}.background-19guwtkm.page-19guwtkm{top:-64px}.picture-19guwtkm{align-items:flex-start;display:flex;justify-content:stretch;position:relative}.background-img-19guwtkm{position:relative}.vertical-stretch-19guwtkm .background-img-19guwtkm{min-height:100%}.center-19guwtkm .background-img-19guwtkm{top:50%;transform:translateY(-50%)}.bottom-19guwtkm .background-img-19guwtkm{top:100%;transform:translateY(-100%)}.source-19guwtkm{position:absolute}.gradient-19guwtkm{bottom:0;left:0;position:absolute;right:0;top:0}.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 320px)}@media screen and (min-width:568px){.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 240px)}}@media screen and (min-width:1920px){.banner-main-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 320px)}}.banner-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 160px)}.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 65px)}@media screen and (min-width:320px){.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 246px)}}@media screen and (min-width:768px){.dialog-19guwtkm .gradient-19guwtkm{background:linear-gradient(0deg,#000,#0000 200px)}}@font-face{font-display:swap;font-family:EuclidCircularLatinBold;font-style:normal;font-weight:600;src:url(cddf468f55cf701e442982e83f9a67f6.woff2) format("woff2")}.banner-VFW2MkIn{background-color:#000;box-sizing:border-box;padding-left:20px;padding-right:20px;position:relative}.banner-VFW2MkIn.in-dialog-VFW2MkIn{padding-bottom:var(--v-rhythm-spacing-4-phone);padding-top:var(--v-rhythm-header-1-space-phone)}.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-bottom:var(--v-rhythm-spacing-4);padding-top:var(--v-rhythm-spacing-4)}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:32px;padding-right:32px}}@media screen and (min-width:1440px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:40px;padding-right:40px}}@media screen and (min-width:1920px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn){padding-left:100px;padding-right:100px}}.container-VFW2MkIn{grid-gap:16px;display:grid;justify-content:center;margin:0 auto;max-width:1152px;position:relative}@media screen and (min-width:768px){.container-VFW2MkIn{grid-gap:24px}}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{grid-auto-flow:column;justify-content:space-between}}@media screen and (min-width:1440px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1280px}}@media screen and (min-width:1920px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1520px}}@media screen and (min-width:2560px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .container-VFW2MkIn{max-width:1880px}}.title-group-VFW2MkIn{text-align:center}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .title-group-VFW2MkIn{text-align:right}}.actions-wrapper-VFW2MkIn{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.learn-more-VFW2MkIn{margin-top:32px}@media screen and (min-width:768px){.learn-more-VFW2MkIn{margin-top:40px}}@media screen and (min-width:1280px){.banner-VFW2MkIn:not(.in-dialog-VFW2MkIn) .learn-more-VFW2MkIn{margin-top:16px;width:100%}}.dialog-close-VulYnFJT.close-VulYnFJT{color:#d1d4dc;height:16px;left:16px;opacity:1;padding:15px;top:16px;transition:color .35s ease;width:16px}.dialog-close-VulYnFJT.close-VulYnFJT svg{height:100%;width:100%}@media (any-hover:hover){.dialog-close-VulYnFJT.close-VulYnFJT:hover{color:#f8f9fd}}.tv-dialog-VulYnFJT.tv-blackfriday-popup-VulYnFJT{padding:0}@media screen and (max-width:767px){.modal-body-VulYnFJT{padding:0}.banner-VulYnFJT{align-items:center;display:flex;min-height:100vh}} \ No newline at end of file diff --git a/charting_library/bundles/5962c52be69d3c2cb79834452a20bf16.svg b/charting_library/bundles/5962c52be69d3c2cb79834452a20bf16.svg new file mode 100644 index 00000000..bd599f19 --- /dev/null +++ b/charting_library/bundles/5962c52be69d3c2cb79834452a20bf16.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.css b/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.css new file mode 100644 index 00000000..eee0e3a6 --- /dev/null +++ b/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{word-wrap:normal;background:none;color:#000;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;-webkit-hyphens:none;hyphens:none;line-height:1.5;tab-size:4;text-align:left;white-space:pre;word-break:normal;word-spacing:normal}pre[class*=language-]{margin:.5em 0;overflow:visible;padding:1px;position:relative}pre[class*=language-]>code{background-attachment:local;background-color:#fdfdfd;background-image:linear-gradient(#0000 50%,#458ed10a 0);background-origin:content-box;background-size:3em 3em;border-left:10px solid #358ccb;box-shadow:-1px 0 0 0 #358ccb,0 0 0 1px #dfdfdf;position:relative;z-index:1}code[class*=language-]{display:block;height:inherit;max-height:inherit;overflow:auto;padding:0 1em}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{border:1px solid #0000001a;border-radius:.3em;color:#c92c2c;display:inline;padding:.2em;position:relative;white-space:normal}pre[class*=language-]:after,pre[class*=language-]:before{bottom:.75em;box-shadow:0 13px 8px #979797;content:"";display:block;height:20%;left:.18em;max-height:13em;position:absolute;transform:rotate(-2deg);width:40%}pre[class*=language-]:after{left:auto;right:.75em;transform:rotate(2deg)}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#7d8b99}.token.punctuation{color:#5f6364}.token.boolean,.token.constant,.token.deleted,.token.function-name,.token.number,.token.property,.token.symbol,.token.tag{color:#c92c2c}.token.attr-name,.token.builtin,.token.char,.token.function,.token.inserted,.token.selector,.token.string{color:#2f9c0a}.token.entity,.token.operator,.token.url,.token.variable{background:#ffffff80;color:#a67f59}.token.atrule,.token.attr-value,.token.class-name,.token.keyword{color:#1990b8}.token.important,.token.regex{color:#e90}.language-css .token.string,.style .token.string{background:#ffffff80;color:#a67f59}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width:767px){pre[class*=language-]:after,pre[class*=language-]:before{bottom:14px;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-left:0}pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}pre[class*=language-][data-line]{padding-bottom:0;padding-left:0;padding-top:0}pre[data-line] code{padding-left:4em;position:relative}pre .line-highlight{margin-top:0}code[class*=language-],pre[class*=language-]{font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace} \ No newline at end of file diff --git a/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.rtl.css b/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.rtl.css new file mode 100644 index 00000000..7f31154f --- /dev/null +++ b/charting_library/bundles/5971.b0e199fd9ea9b0b05ed7.rtl.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{word-wrap:normal;background:none;color:#000;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;-webkit-hyphens:none;hyphens:none;line-height:1.5;tab-size:4;text-align:right;white-space:pre;word-break:normal;word-spacing:normal}pre[class*=language-]{margin:.5em 0;overflow:visible;padding:1px;position:relative}pre[class*=language-]>code{background-attachment:local;background-color:#fdfdfd;background-image:linear-gradient(#0000 50%,#458ed10a 0);background-origin:content-box;background-size:3em 3em;border-right:10px solid #358ccb;box-shadow:1px 0 0 0 #358ccb,0 0 0 1px #dfdfdf;position:relative;z-index:1}code[class*=language-]{display:block;height:inherit;max-height:inherit;overflow:auto;padding:0 1em}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{border:1px solid #0000001a;border-radius:.3em;color:#c92c2c;display:inline;padding:.2em;position:relative;white-space:normal}pre[class*=language-]:after,pre[class*=language-]:before{bottom:.75em;box-shadow:0 13px 8px #979797;content:"";display:block;height:20%;max-height:13em;position:absolute;right:.18em;transform:rotate(2deg);width:40%}pre[class*=language-]:after{left:.75em;right:auto;transform:rotate(-2deg)}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#7d8b99}.token.punctuation{color:#5f6364}.token.boolean,.token.constant,.token.deleted,.token.function-name,.token.number,.token.property,.token.symbol,.token.tag{color:#c92c2c}.token.attr-name,.token.builtin,.token.char,.token.function,.token.inserted,.token.selector,.token.string{color:#2f9c0a}.token.entity,.token.operator,.token.url,.token.variable{background:#ffffff80;color:#a67f59}.token.atrule,.token.attr-value,.token.class-name,.token.keyword{color:#1990b8}.token.important,.token.regex{color:#e90}.language-css .token.string,.style .token.string{background:#ffffff80;color:#a67f59}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width:767px){pre[class*=language-]:after,pre[class*=language-]:before{bottom:14px;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-right:0}pre[class*=language-].line-numbers.line-numbers code{padding-right:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{right:0}pre[class*=language-][data-line]{padding-bottom:0;padding-right:0;padding-top:0}pre[data-line] code{padding-right:4em;position:relative}pre .line-highlight{margin-top:0}code[class*=language-],pre[class*=language-]{font-family:Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace} \ No newline at end of file diff --git a/charting_library/bundles/5980ed8829231afb216d42cd14dfc746.svg b/charting_library/bundles/5980ed8829231afb216d42cd14dfc746.svg new file mode 100644 index 00000000..6c77916e --- /dev/null +++ b/charting_library/bundles/5980ed8829231afb216d42cd14dfc746.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5995.3a632f64335891f1e50f.js b/charting_library/bundles/5995.3a632f64335891f1e50f.js new file mode 100644 index 00000000..73d3a821 --- /dev/null +++ b/charting_library/bundles/5995.3a632f64335891f1e50f.js @@ -0,0 +1,13 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5995],{13398:function(e,t){var i,n,r,s;s=function(e){var t=Object.prototype.toString,i=Array.isArray||function(e){return"[object Array]"===t.call(e)};function n(e){return"function"==typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s(e,t){return null!=e&&"object"==typeof e&&t in e}var o=RegExp.prototype.test,l=/\S/;function a(e){return!function(e,t){return o.call(e,t)}(l,e)}var u={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},p=/\s*/,c=/\s+/,h=/\s*=/,d=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function g(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function v(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var i=t[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},m.prototype.scanUntil=function(e){var t,i=this.tail.search(e);switch(i){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=t.length,t},g.prototype.push=function(e){return new g(e,this)},g.prototype.lookup=function(e){var t,i=this.cache;if(i.hasOwnProperty(e))t=i[e];else{for(var r,o,l=this,a=!1;l;){if(e.indexOf(".")>0)for(t=l.view,r=e.split("."),o=0;null!=t&&o0?r[r.length-1][4]:i;break;default:n.push(t)}return i +}(function(e){for(var t,i,n=[],r=0,s=e.length;r"===s?o=this.renderPartial(r,t,i,n):"&"===s?o=this.unescapedValue(r,t):"name"===s?o=this.escapedValue(r,t):"text"===s&&(o=this.rawValue(r)),void 0!==o&&(l+=o);return l},v.prototype.renderSection=function(e,t,r,s){var o=this,l="",a=t.lookup(e[1]);if(a){if(i(a))for(var u=0,p=a.length;u"'`=\/]/g,(function(e){return u[e]}))},e.Scanner=m,e.Context=g,e.Writer=v},t&&"string"!=typeof t.nodeName?s(t):(n=[t],void 0===(r="function"==typeof(i=s)?i.apply(t,n):i)||(e.exports=r))},62974:function(e,t,i){e=i.nmd(e);var n=i(23127);(function(){var t,i,r,s,o,l,a,u,p=[].slice,c={}.hasOwnProperty;a=function(){},i=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,i,n,r;if(i=arguments[0],e=2<=arguments.length?p.call(arguments,1):[],this._callbacks=this._callbacks||{},t=this._callbacks[i])for(n=0,r=t.length;n
'),this.element.appendChild(t)),(i=t.getElementsByTagName("span")[0])&&(i.textContent=this.options.dictFallbackMessage),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,i,n;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=i*t.optHeight:null==t.optHeight&&(t.optHeight=1/i*t.optWidth),n=t.optWidth/t.optHeight,e.heightn?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*n):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/n),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:a,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:a,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t,i,n,s,o,l,a,u,p,c,h,d,f;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(e.previewElement=r.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement),n=0,l=(p=e.previewElement.querySelectorAll("[data-dz-name]")).length;n'+this.options.dictRemoveFile+""), +e.previewElement.appendChild(e._removeLink)),f=this,t=function(t){return t.preventDefault(),t.stopPropagation(),e.status===r.UPLOADING?r.confirm(f.options.dictCancelUploadConfirmation,(function(){return f.removeFile(e)})):f.options.dictRemoveFileConfirmation?r.confirm(f.options.dictRemoveFileConfirmation,(function(){return f.removeFile(e)})):f.removeFile(e)},d=[],o=0,u=(h=e.previewElement.querySelectorAll("[data-dz-remove]")).length;o\n
\n
\n
\n
\n
\n
\n
\n
\n \n Check\n \n \n \n \n \n
\n
\n \n Error\n \n \n \n \n \n \n \n
\n
' +},t=function(){var e,t,i,n,r,s,o;for(n=arguments[0],s=0,o=(i=2<=arguments.length?p.call(arguments,1):[]).length;s'+this.options.dictDefaultMessage+"
")),this.clickableElements.length&&(a=this,(i=function(){return a.hiddenFileInput&&document.body.removeChild(a.hiddenFileInput),a.hiddenFileInput=document.createElement("input"),a.hiddenFileInput.setAttribute("type","file"),(null==a.options.maxFiles||a.options.maxFiles>1)&&a.hiddenFileInput.setAttribute("multiple","multiple"),a.hiddenFileInput.className="dz-hidden-input",null!=a.options.acceptedFiles&&a.hiddenFileInput.setAttribute("accept",a.options.acceptedFiles),null!=a.options.capture&&a.hiddenFileInput.setAttribute("capture",a.options.capture),a.hiddenFileInput.style.visibility="hidden",a.hiddenFileInput.style.position="absolute",a.hiddenFileInput.style.top="0",a.hiddenFileInput.style.left="0",a.hiddenFileInput.style.height="0",a.hiddenFileInput.style.width="0",document.body.appendChild(a.hiddenFileInput),a.hiddenFileInput.addEventListener("change",(function(){var e,t,n,r;if((t=a.hiddenFileInput.files).length)for(n=0,r=t.length;n',this.options.dictFallbackText&&(i+="

"+this.options.dictFallbackText+"

"),i+='
',t=r.createElement(i),"FORM"!==this.element.tagName?(n=r.createElement('
')).appendChild(t):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:t)},r.prototype.getExistingFallback=function(){var e,t,i,n,r,s;for(t=function(e){var t,i,n;for(i=0,n=e.length;i=Math.pow(this.options.filesizeBase,4-t)/10){i=e/Math.pow(this.options.filesizeBase,4-t),n=r;break}return""+(i=Math.round(10*i)/10)+" "+n},r.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},r.prototype.drop=function(e){var t,i;e.dataTransfer&&(this.emit("drop",e),(t=e.dataTransfer.files).length&&((i=e.dataTransfer.items)&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)))},r.prototype.paste=function(e){var t,i;if(null!=(null!=e&&null!=(i=e.clipboardData)?i.items:void 0))return this.emit("paste",e),(t=e.clipboardData.items).length?this._addFilesFromItems(t):void 0},r.prototype.handleFiles=function(e){var t,i,n,r;for(r=[],i=0,n=e.length;i1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):r.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}, +r.prototype.addFile=function(e){return e.upload={progress:0,total:e.size,bytesSent:0},this.files.push(e),e.status=r.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(t=this,function(i){return i?(e.accepted=!1,t._errorProcessing([e],i)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}));var t},r.prototype.enqueueFiles=function(e){var t,i,n;for(i=0,n=e.length;i=t)&&(n=this.getQueuedFiles()).length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-i));for(;e=R;p=0<=R?++S:--S)s.append(this._getParamName(p),e[p],e[p].name);return E.send(s)},r.prototype._finished=function(e,t,i){var n,s,o;for(s=0,o=e.length;sa;)0===n[4*(o-1)+3]?r=o:a=o,o=r+a>>1;return 0===(l=o/s)?1:l},l=function(e,t,i,n,r,s,l,a,u,p){var c;return c=o(t),e.drawImage(t,i,n,r,s,l,a,u,p/c)},s=function(e,t){var i,n,r,s,o,l,a,u,p;if(r=!1,p=!0,n=e.document,u=n.documentElement,i=n.addEventListener?"addEventListener":"attachEvent",a=n.addEventListener?"removeEventListener":"detachEvent",l=n.addEventListener?"":"on",s=function(i){if("readystatechange"!==i.type||"complete"===n.readyState)return("load"===i.type?e:n)[a](l+i.type,s,!1),!r&&(r=!0)?t.call(e,i.type||i):void 0},o=function(){try{u.doScroll("left")}catch(e){return e,void setTimeout(o,50)}return s("poll")},"complete"!==n.readyState){if(n.createEventObject&&u.doScroll){try{p=!e.frameElement}catch(e){}p&&o()}return n[i](l+"DOMContentLoaded",s,!1),n[i](l+"readystatechange",s,!1),e[i](l+"load",s,!1)}},t._autoDiscoverFunction=function(){if(t.autoDiscover)return t.discover()},s(window,t._autoDiscoverFunction)}).call(this)},48743:(e,t,i)=>{"use strict";i.d(t,{lazyVelocity:()=>r});i(23127);var n=i(23127);async function r(){await i.e(2112).then(i.t.bind(i,37356,23))}n.fn.velocity=function(...e){return r().then(()=>{n.fn.velocity.apply(this,e)}),this}}}]); \ No newline at end of file diff --git a/charting_library/bundles/59e2b70bcb3a208d8b8dbe2b35a9dfb0.svg b/charting_library/bundles/59e2b70bcb3a208d8b8dbe2b35a9dfb0.svg new file mode 100644 index 00000000..d32f22e7 --- /dev/null +++ b/charting_library/bundles/59e2b70bcb3a208d8b8dbe2b35a9dfb0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5b42511a0696d2cbb686e323db88556c.svg b/charting_library/bundles/5b42511a0696d2cbb686e323db88556c.svg new file mode 100644 index 00000000..81f6045c --- /dev/null +++ b/charting_library/bundles/5b42511a0696d2cbb686e323db88556c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5c347ffc08d08d0f94ff06366781743d.svg b/charting_library/bundles/5c347ffc08d08d0f94ff06366781743d.svg new file mode 100644 index 00000000..58b21cfb --- /dev/null +++ b/charting_library/bundles/5c347ffc08d08d0f94ff06366781743d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5c568c6ba25fd3ccffedc7df6cdbcfc6.svg b/charting_library/bundles/5c568c6ba25fd3ccffedc7df6cdbcfc6.svg new file mode 100644 index 00000000..87034f2e --- /dev/null +++ b/charting_library/bundles/5c568c6ba25fd3ccffedc7df6cdbcfc6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5c8483c70efc4d71c6bec8491e2ea918.svg b/charting_library/bundles/5c8483c70efc4d71c6bec8491e2ea918.svg new file mode 100644 index 00000000..cfd7de1a --- /dev/null +++ b/charting_library/bundles/5c8483c70efc4d71c6bec8491e2ea918.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/5ca11f2dcd2b23a00d19e2160797c25d.jpeg b/charting_library/bundles/5ca11f2dcd2b23a00d19e2160797c25d.jpeg new file mode 100644 index 00000000..1f5d3bb6 Binary files /dev/null and b/charting_library/bundles/5ca11f2dcd2b23a00d19e2160797c25d.jpeg differ diff --git a/charting_library/bundles/5dfba3ffcfb87b70fcff70fe469745e0.svg b/charting_library/bundles/5dfba3ffcfb87b70fcff70fe469745e0.svg new file mode 100644 index 00000000..96df65a2 --- /dev/null +++ b/charting_library/bundles/5dfba3ffcfb87b70fcff70fe469745e0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/60542233074e88f72cb7738cd671069f.svg b/charting_library/bundles/60542233074e88f72cb7738cd671069f.svg new file mode 100644 index 00000000..7a7264af --- /dev/null +++ b/charting_library/bundles/60542233074e88f72cb7738cd671069f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6055.2fa2dff6b27ad1aa8299.js b/charting_library/bundles/6055.2fa2dff6b27ad1aa8299.js new file mode 100644 index 00000000..b3f3e805 --- /dev/null +++ b/charting_library/bundles/6055.2fa2dff6b27ad1aa8299.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6055],{5641:()=>{},21249:()=>{},94897:()=>{},22358:(t,e,s)=>{"use strict";s.d(e,{controlError:()=>r});s(5641);var o=s(20497),i=s(68587),l=s(23127);class n{constructor(t,{addFocusEvents:e=!0,addErrorOnElement:o=!0,leftMessageAlign:i=!1,maxWidth:n,doNotShowIcon:r=!1}={}){function h(t,e){return t.some(t=>e.test(t))}let d=l(t);const a=d.hasClass("tv-control-checkbox__input"),c=d.hasClass("tv-control-radio__input"),p=d.hasClass("tv-control-number-input"),u=h(d.attr("class").split(/\s+/),/^.+--size_small$/),_=h(d.attr("class").split(/\s+/),/^.+--size_large$/);this.options={smallMode:u,addErrorOnElement:o,maxWidth:n},a&&(d=d.closest(".tv-control-checkbox")),c&&(d=d.closest(".tv-control-radio-group")),this.errors={},this.$control=d;const g=d.get(0);d.data("tv-control-material")?this.$toWrap=d.data("tv-control-material").$el:"tvControlErrorWrap"in g.dataset?this.$toWrap=l(g.dataset.tvControlErrorWrap):d.data("tv-control-error-wrap")?this.$toWrap=d.data("tv-control-error-wrap"):this.$toWrap=d,this.$toWrap.parent().hasClass("tv-control-error")||this.$toWrap.wrap(`
`),this.$el=this.$toWrap.parent(),a&&this.$el.addClass("tv-control-error--msg_left"),u&&this.$el.addClass("tv-control-error--size_small"),_&&this.$el.addClass("tv-control-error--size_large"),a||r||(this.$icon=this.$el.find(".tv-control-error__icon"),this.$icon.length||(this.$icon=l(`${l("
").append(l(s(53870)).attr("focusable","false")).html()}`).appendTo(this.$el)),d.data("tv-control-material")&&this.$icon.addClass("tv-control-error__icon--material-input")),this.$widthControlWrapper=this.$el.find(".tv-control-error__width-control-wrapper"),this.$widthControlWrapper.length||(this.$widthControlWrapper=l('
').appendTo(this.$el)),this.$widthControlWrapper.css("width",this.options.maxWidth),i&&this.$widthControlWrapper.addClass("tv-control-error__width-control-wrapper--from-left"),this.$messages=this.$el.find(".tv-control-error__messages"),this.$messages.length||(this.$messages=l('').appendTo(this.$widthControlWrapper)),d.on("focus",()=>{this.$el.addClass("i-focus"),d.removeClass("i-error"),e&&d.on("keyup.tv-control-error",t=>{9!==t.keyCode&&16!==t.keyCode&&(this.clear().render(),this.$el.removeClass("i-focus"),d.off("keyup.tv-control-error"))})}),d.on("blur",()=>{this.$el.removeClass("i-focus"),this.hasErrors()&&d.addClass("i-error")})}add({id:t,message:e}){return this.errors[t]=e,this}remove({id:t}){return delete this.errors[t],this}clear(){return this.errors={},this}hasErrors(){return!!Object.keys(this.errors).length}render(){this.emptyTimeout&&clearTimeout(this.emptyTimeout);var t=Object.keys(this.errors);if(t.length){this.$messages.empty(),this.$el.addClass("i-error"),this.options.addErrorOnElement&&this.$control.addClass("i-error") +;for(var e=0;e${this.errors[t[e]]}`).appendTo(this.$messages)}else this.$el.removeClass("i-error"),this.$control.removeClass("i-error"),this.emptyTimeout=setTimeout(()=>{this.$messages.empty()},i.dur);return this}}function r(t,e){return new n(l(t),e)}l.fn.tvControlError=(0,o.createTvBlockWithInstance)("tv-control-error",(function(t,e){return new n(t,e)}))},8250:(t,e,s)=>{"use strict";var o=s(28353),i=s(32563),l=(s(21249),s(20497)),n=(s(56479),s(94897),s(30812));var r=s(23127);class h{constructor(t,e={}){this.$el=t,this.$wrap=e.$wrap||t.find(".tv-dropdown-behavior__button"),this.$body=e.$body||t.find(".tv-dropdown-behavior__body"),this.notCloseWithCtrl=!!e.notCloseWithCtrl&&e.notCloseWithCtrl,this.closeWithEsc=void 0===e.closeWithEsc||e.closeWithEsc,this.closeWithEsc&&this.$el.attr("tabIndex",0),(t.data("scroll")||e.scroll)&&(this.$scroll=this.$body.find(".tv-dropdown-behavior__scroll"),this.$inScroll=this.$scroll.find(".tv-dropdown-behavior__inscroll"),this.scroll=new n.SidebarCustomScroll(this.$scroll[0],this.$inScroll[0],{showTopShadow:!1,showBottomShadow:!1}),this.$scrollBar=r(this.scroll.getScrollBar()),this.$scrollBar&&this.$scrollBar.on("mousedown.tv-dropdown-view-scroll",()=>{this.offClickOutside(),r(document).on("mouseup.tv-dropdown-view-scroll",()=>{this.onClickOutside(),r(document).off("mouseup.tv-dropdown-view-scroll")})})),(t.data("adaptBody")||e.adaptBody)&&(this._adaptBody=!0),(t.data("adaptOnlyInScrollHeight")||e.adaptOnlyInScrollHeight)&&(this._adaptOnlyInScrollHeight=!0),this._fitScreen=t.data("fitScreen")||e.fitScreen,this._maxHeight=t.data("maxHeight")||e.maxHeight,this._dropdownWidth=t.data("dropdownWidth")||e.dropdownWidth,this._boundingElement=e.boundingElement,this.$wrap.add(t.find(".js-dropdown-toggle")).on("click",t=>{r(t.currentTarget).hasClass("js-prevent-dropdown")||this.toggle()}),this._checkIgnoreClickOutside=[]}toggle(){this.opened?this.close(!0):this.open()}open(){this.opened||this.disabled||this.readonly||(this.$el.trigger("beforeOpenMenu"),this.$body.removeClass("i-hidden").addClass("i-opened"),this.$wrap.addClass("i-dropped"),this.$el.addClass("i-opened"),"horz"===this._fitScreen&&this.fitHorizontally(),this._adaptBody&&this.adaptBody(),this.onClickOutside(),this.$el.trigger("updateScroll"),this.$el.trigger("afterOpenMenu"),this.opened=!0,this.closeWithEsc&&this.$el.on("keypress keyup",t=>{27===t.keyCode&&this.close(!0)}))}onClickOutside(){setTimeout(()=>{this.$body.on("clickoutside",t=>{this._checkIgnoreClickOutside.length&&this._checkIgnoreClickOutside.some(e=>e(t))||this.close(!0)})},0)}offClickOutside(){this.$body.off("clickoutside")}setCheckIgnoreClickOutside(t){this._checkIgnoreClickOutside.push(t)}dropCheckIgnoreClickOutside(t){var e=this._checkIgnoreClickOutside.indexOf(t);-1!==e&&this._checkIgnoreClickOutside.splice(e,1)}close(t=!1){!this.opened||this.disabled||this.readonly||!t&&this.notCloseWithCtrl&&(window.event.ctrlKey||window.event.metaKey)||(this.offClickOutside(), +this.$wrap.removeClass("i-dropped"),this.$el.trigger("beforeCloseMenu"),this.$body.removeClass("i-opened").addClass("i-hidden"),this.$el.removeClass("i-opened"),this.closeWithEsc&&this.$el.off("keypress keyup"),this.opened=!1,this.$el.trigger("afterCloseMenu"))}isOpened(){return this.opened}updateScroll(){this.scroll&&(this.scroll.updateScrollBar(),this.scroll.scrollToStart())}enable(){this.$wrap.removeClass("i-disabled"),this.disabled=!1}disable(){this.$wrap.addClass("i-disabled"),this.disabled=!0}setReadonly(t){this.readonly=t}adaptBody(){const t=this.$body,e=this.$wrap.get(0).getBoundingClientRect(),s=this._boundingElement?this._boundingElement.getBoundingClientRect():{top:0,bottom:window.innerHeight,height:window.innerHeight},o=parseFloat(t.css("padding-top")),i=parseFloat(t.css("padding-bottom")),l=this.$inScroll.outerHeight(!0)+o+i;if(this.scroll&&this.scroll.scrollToStart(),this._adaptOnlyInScrollHeight){const o=t.find(".js-dropdown-dummy"),l=o?parseFloat(o.css("padding-bottom"))+parseFloat(o.css("margin-bottom")):0,n=e.top+e.height+l;return void this.$el.find(".tv-dropdown-behavior__scroll").css("maxHeight",s.bottom-i-n-25)}const n=this._maxHeight||l,r=e.top+n+25<=s.bottom,h=s.top+15+n<=e.bottom;let d,a=this._maxHeight||"auto";if(r)d=-o;else if(h)d=-n+e.height+i;else{d=-e.top+s.top+15;const t=s.height-15-25;n>t&&(a=t)}t.css("top",d),t.height(a),this._dropdownWidth&&t.width(this._dropdownWidth)}fitHorizontally(){this.$body.css("marginLeft",0);const t=document.body.getBoundingClientRect(),e=parseFloat(r(document.body).css("paddingRight")),s=this.$body.offset();s.right=s.left+this.$body.outerWidth();const o=Math.max(Math.min(0,t.right-e-s.right),t.left-s.left);o&&this.$body.css("marginLeft",o)}destroy(){this.scroll&&this.scroll.destroy(),this.offClickOutside(),this.$el.find(".js-dropdown-toggle").off("click"),this.$wrap.off("click")}}r.fn.tvDropdown=(0,l.createTvBlockWithInstance)("tv-dropdown",(function(t,e={}){return new h(t,e)}));var d=s(23127),a=s(13398),c=s(25977);const p={wrap:'{{^ touch }}{{> route }}{{/ touch }}',route:"{{# items }}{{# option }}{{> option }}{{/ option }}{{^ option }}{{# optgroup }}{{> optgroup }}{{/ optgroup }}{{/ option }}{{/ items }}", +optgroup:'{{# label }}{{ label }}{{/ label }}{{> route }}{{# separator }}
{{/ separator }}',option:`\n\t\t\t\n\t\t\t{{# multiple }}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t${s(4135)}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{ label }}\n\t\t\t{{/ multiple }}\n\t\t\t{{^ multiple }}\n\t\t\t\t{{ label }}\n\t\t\t{{/ multiple }}\n\t\t\t\n\t\t`};class u{constructor(t={}){this._options=Object.assign({noAnimation:!0},t),this.touch=i.mobiletouch,this.$select=this._options.$select,this._selectElement=this.$select[0],this.multiple=Boolean(this.$select.attr("multiple")),this._minDisplayCount=this._options.minDisplayCount||1,this._emptyString=this._options.emptyString||(0,o.t)("Nothing selected",{context:"combobox_input"}),this._defaultPlaceHoder=this._options.defaultPlaceHoder||!1,this.disabled=Boolean(this.$select.is(":disabled")),this.readonly=this._options.readonly,this.options=[],this.filterQuery=[],this.items=this._parseDomItems(this.$select),this._render(),t.initialValue&&this.val(t.initialValue),this.$el.insertBefore(this.$select),this.$select.detach().addClass("i-inited").appendTo(this.$el)}val(t){this.multiple?this._setMultipleValues(t):this._setSingleValue(this._findOption(t))}enable(){this.disabled=!1,this.$el.add(this.$dropdown).removeClass("i-disabled"),this.touch||(this.$el.tvDropdown("enable"),this.$control.attr("tabindex",this.$select.attr("tabindex")||0))}disable(){this.disabled=!0,this.$el.add(this.$dropdown).addClass("i-disabled"),this.touch||(this.$el.tvDropdown("disable"),this.$control.removeAttr("tabindex"))}setReadonly(t){this.readonly=t,this.$el.toggleClass("tv-control-select__wrap--readonly",t),this.$controlInner.toggleClass("tv-control-select__control-inner--readonly",t),this.$el.tvDropdown("setReadonly",t)}toggle(){this.disabled||this.readonly||(this.touch?this.$select.click():this.$el.tvDropdown("toggle"))}open(){this.disabled||this.readonly||(this.touch?this.$select.click():this.$el.tvDropdown("open"))}close(){this.disabled||this.readonly||(this.touch?this.$select.click():(this._focusOption(this._selectElement.selectedIndex),this.$el.tvDropdown("close")))}destroy(){this.$select.off("change"),this.$dropdown&&this.$dropdown.off("click"),this.$select.removeClass("i-inited").insertBefore(this.$el),this.$el.tvDropdown("destroy"),this.$el.remove()}updateItems(){this.options=[],this.items=this._parseDomItems(this.$select);const t=this._renderDropdown();if(!this.touch){this.$dropdown.find(".tv-control-select__option").remove() +;const e=this.$dropdown.find(".tv-dropdown-behavior__inscroll");this.$options=t.find(".tv-control-select__option");for(let t=0;tthis.options[this._findOption(e)].id>t);s.splice(o?s.indexOf(o):0,0,e)}else s.push(e);this._setMultipleValues(s)}_updateCheckBoxes(){const t=this.$select.val()||[];for(let e=0;ethis._minDisplayCount)this.$controlInner.text((0,o.t)("{number} item",{plural:"{number} items",count:t.length,context:"combobox_input"}).format(t.length));else{const e=t.map(t=>this.options[this._findOption(t)].label);this.$controlInner.text(e.join(", "))}else this.$controlInner.text(this._emptyString)}_setMultipleValues(t){this.$select.find("option").prop("selected",!1);for(let e=0;e{this.multiple?(this._updateSelectBoxTitle(),this._updateCheckBoxes()):this._updateSingleView(this._findOption(this.$select.val()))}),this.touch||(this.$el.tvDropdown({scroll:!0,adaptBody:!0,boundingElement:this._options.boundingElement,maxHeight:this._options.maxHeight,dropdownWidth:this._options.dropdownWidth,noAnimation:this._options.noAnimation,closeWithEsc:this._options.closeWithEsc}),this.dropdownScroll=this.$el.tvDropdown("get","scroll"),this.$dropdown.on("click",".tv-control-select__option",t=>{const e=parseInt(d(t.currentTarget).data("id"));this.options[e]&&!this.options[e].disabled&&(this.multiple?this._toggleOption(e):(this._setSingleValue(e),this.close()))}),this.$el.on("beforeOpenMenu",()=>{this.opened=!0}),this.$el.on("afterCloseMenu",()=>{this.opened=!1,this.filterQuery=[],this.multiple||this._focusedOption.toString()===this._selectElement.selectedIndex.toString()||this._focusOption(this._selectElement.selectedIndex),this.multiple&&this._clearFocus()}),this.$el.on("click",()=>{this.$control.focus()}),this.$el.on("keydown",t=>{this._filter(t)}),this.disabled?this.disable():this.enable())}_renderDropdown(){return d(a.render(p.wrap,{items:this.items,class:this.$select.attr("class"),touch:this.touch,multiple:this.multiple,disabled:this.disabled,readonly:this.readonly,dropdown_class:this._options.addDropdownClass},p)).removeClass("tv-control-select")}_filter(t){if(9===t.which)return void this.close();if(13===t.which&&!this.opened)return;if((40===t.which||32===t.which)&&!this.opened)return this.open(),void t.preventDefault();t.preventDefault(),this.opened||this.open();const e=String.fromCharCode(t.which).toLowerCase();if(e&&-1===[9,13,27,38,40].indexOf(t.which)){this.filterQuery.push(e);const t=this.filterQuery.join("");let s;const o=Object.keys(this.options);for(let e=0;e{this.filterQuery=[]},500)}32!==t.which&&13!==t.which||!this.opened||(this.multiple?this._toggleOption(this._focusedOption):(this._setSingleValue(this._focusedOption),this.close(),this.$el.one("keyup",t=>t.stopPropagation())));const s=t=>{let e;if(this.options[this._focusedOption]){ +const s=this.options[this._focusedOption].$el[t](this.$dropdown,".tv-control-select__option:not(.i-disabled)");e=s.length?s.data("id"):this._focusedOption}else e=this.$options.first(".tv-control-select__option:not(.i-disabled)").data("id");return e};40===t.which&&(this.filterQuery=[],this._focusOption(s("nextUntil"))),38===t.which&&(this.filterQuery=[],this._focusOption(s("prevUntil"))),27===t.which&&this.close()}}d.fn.tvControlSelect=(0,l.createTvBlockWithInstance)("tv-control-select",(function(t,e={}){return new u(c.extend(e,{$select:t}))}))},53870:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/6085.69a003daf8ea012f4dc7.js b/charting_library/bundles/6085.69a003daf8ea012f4dc7.js deleted file mode 100644 index 95acdb62..00000000 --- a/charting_library/bundles/6085.69a003daf8ea012f4dc7.js +++ /dev/null @@ -1,12 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6085],{6539:t=>{t.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},21103:t=>{t.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:t=>{t.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:t=>{t.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},91131:t=>{t.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},66875:t=>{t.exports={errors:"errors-Cv6NxnRZ",show:"show-Cv6NxnRZ",error:"error-Cv6NxnRZ"}},93314:t=>{t.exports={"error-icon":"error-icon-llFIA0b4","intent-danger":"intent-danger-llFIA0b4", -"intent-warning":"intent-warning-llFIA0b4"}},88722:t=>{t.exports={wrap:"wrap-TyQYOCnx",input:"input-TyQYOCnx"}},24451:t=>{t.exports={icon:"icon-P882WPW5"}},52965:t=>{t.exports={"static-messages":"static-messages-Yp0dNSLN",errors:"errors-Yp0dNSLN",warnings:"warnings-Yp0dNSLN",message:"message-Yp0dNSLN"}},23576:t=>{t.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},94720:(t,e,n)=>{"use strict";n.d(e,{Button:()=>w});var o=n(59496),r=n(97754),s=n(95604),i=n(9745),a=n(6539),c=n.n(a);function l(t){const{color:e="brand",size:n="medium",variant:o="primary",stretch:i=!1,icon:a,startIcon:l,endIcon:u,iconOnly:h=!1,className:d,isGrouped:m,cellState:p,disablePositionAdjustment:f=!1}=t,g=function(t){let e="";return 0!==t&&(1&t&&(e=r(e,c()["no-corner-top-left"])),2&t&&(e=r(e,c()["no-corner-top-right"])),4&t&&(e=r(e,c()["no-corner-bottom-right"])),8&t&&(e=r(e,c()["no-corner-bottom-left"]))),e}((0,s.getGroupCellRemoveRoundBorders)(p));return r(d,c().button,c()["size-"+n],c()["color-"+e],c()["variant-"+o],i&&c().stretch,(a||l)&&c()["with-start-icon"],u&&c()["with-end-icon"],h&&c()["icon-only"],g,m&&c().grouped,m&&!f&&c()["adjust-position"],m&&p.isTop&&c()["first-row"],m&&p.isLeft&&c()["first-col"])}function u(t){const{size:e,startIcon:n,icon:r,iconOnly:s,children:a,endIcon:l}=t,u=null!=n?n:r;return o.createElement(o.Fragment,null,u&&"xsmall"!==e&&o.createElement(i.Icon,{icon:u,className:c()["start-icon-wrap"]}),a&&o.createElement("span",{className:c().content},a),l&&!s&&"xsmall"!==e&&o.createElement(i.Icon,{icon:l,className:c()["end-icon-wrap"]}))}var h=n(86332),d=n(90186);function m(t){const{className:e,color:n,variant:o,size:r,stretch:s,animated:i,icon:a,iconOnly:c,startIcon:l,endIcon:u,...h}=t;return{...h,...(0,d.filterDataProps)(t),...(0,d.filterAriaProps)(t)}}function p(t){const{reference:e,...n}=t,{isGrouped:r,cellState:s,disablePositionAdjustment:i}=(0,o.useContext)(h.ControlGroupContext),a=l({...n,isGrouped:r,cellState:s,disablePositionAdjustment:i});return o.createElement("button",{...m(n),className:a,ref:e},o.createElement(u,{...n}))}function f(t="default"){switch(t){case"default":return"primary";case"stroke":return"secondary"}}function g(t="primary"){switch(t){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function v(t="m"){switch(t){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function b(t){const{intent:e,size:n,appearance:o,useFullWidth:r,icon:s,...i}=t;return{...i,color:g(e),size:v(n),variant:f(o),stretch:r,startIcon:s}}function w(t){return o.createElement(p,{...b(t)})}},86332:(t,e,n)=>{"use strict";n.d(e,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0, -isLeft:!0}})},95604:(t,e,n)=>{"use strict";function o(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}n.d(e,{getGroupCellRemoveRoundBorders:()=>o})},67029:(t,e,n)=>{"use strict";n.d(e,{ControlSkeleton:()=>b,InputClasses:()=>f});var o=n(59496),r=n(97754),s=n(88537),i=n(66092),a=n(90186),c=n(86332),l=n(95604);var u=n(21103),h=n.n(u);function d(t){let e="";return 0!==t&&(1&t&&(e=r(e,h()["no-corner-top-left"])),2&t&&(e=r(e,h()["no-corner-top-right"])),4&t&&(e=r(e,h()["no-corner-bottom-right"])),8&t&&(e=r(e,h()["no-corner-bottom-left"]))),e}function m(t,e,n,o){const{removeRoundBorder:s,className:i,intent:a="default",borderStyle:c="thin",size:u,highlight:m,disabled:p,readonly:f,stretch:g,noReadonlyStyles:v,isFocused:b}=t,w=d(null!=s?s:(0,l.getGroupCellRemoveRoundBorders)(n));return r(h().container,h()["intent-"+a],h()["border-"+c],u&&h()["size-"+u],w,m&&h()["with-highlight"],p&&h().disabled,f&&!v&&h().readonly,b&&h().focused,g&&h().stretch,e&&h().grouped,!o&&h()["adjust-position"],n.isTop&&h()["first-row"],n.isLeft&&h()["first-col"],i)}function p(t,e){const{highlight:n,highlightRemoveRoundBorder:o}=t;if(!n)return h().highlight;const s=d(null!=o?o:(0,l.getGroupCellRemoveRoundBorders)(e));return r(h().highlight,h().shown,s)}const f={FontSizeMedium:(0,s.ensureDefined)(h()["font-size-medium"]),FontSizeLarge:(0,s.ensureDefined)(h()["font-size-large"])},g={passive:!1};function v(t,e){const{id:n,role:r,onFocus:s,onBlur:l,onMouseOver:u,onMouseOut:h,onMouseDown:d,onMouseUp:f,onKeyDown:v,onClick:b,tabIndex:w,startSlot:C,middleSlot:E,endSlot:S,onWheel:y,onWheelNoPassive:k=null}=t,{isGrouped:x,cellState:M,disablePositionAdjustment:N=!1}=(0,o.useContext)(c.ControlGroupContext),A=function(t,e=null,n){const r=(0,o.useRef)(null),s=(0,o.useRef)(null),i=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[t,e,n]=s.current;null!==e&&r.current.addEventListener(t,e,n)},[]),a=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[t,e,n]=s.current;null!==e&&r.current.removeEventListener(t,e,n)},[]),c=(0,o.useCallback)(t=>{a(),r.current=t,i()},[]);return(0,o.useEffect)(()=>(s.current=[t,e,n],i(),a),[t,e,n]),c}("wheel",k,g);return o.createElement("span",{id:n,role:r,className:m(t,x,M,N),tabIndex:w,ref:(0,i.useMergedRefs)([e,A]),onFocus:s,onBlur:l,onMouseOver:u,onMouseOut:h,onMouseDown:d,onMouseUp:f,onKeyDown:v,onClick:b,onWheel:y,...(0,a.filterDataProps)(t),...(0,a.filterAriaProps)(t)},C,E,S,o.createElement("span",{className:p(t,M)}))}v.displayName="ControlSkeleton";const b=o.forwardRef(v)},78274:(t,e,n)=>{"use strict";n.d(e,{StartSlot:()=>a,MiddleSlot:()=>c,EndSlot:()=>l,AfterSlot:()=>u});var o=n(59496),r=n(97754),s=n(10306),i=n.n(s);function a(t){const{className:e,interactive:n=!0,icon:s=!1,children:a}=t;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,e)},a)}function c(t){const{className:e,children:n}=t;return o.createElement("span",{ -className:r(i()["inner-slot"],i()["inner-middle-slot"],e)},n)}function l(t){const{className:e,interactive:n=!0,icon:s=!1,children:a}=t;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,e)},a)}function u(t){const{className:e,children:n}=t;return o.createElement("span",{className:r(i()["after-slot"],e)},n)}},31261:(t,e,n)=>{"use strict";n.d(e,{InputControl:()=>b});var o=n(59496),r=n(97754),s=n(90186),i=n(47201),a=n(48907),c=n(66092),l=n(48027),u=n(29202),h=n(45812),d=n(67029),m=n(78274),p=n(66579),f=n.n(p);function g(t){return!(0,s.isAriaAttribute)(t)&&!(0,s.isDataAttribute)(t)}function v(t){const{id:e,title:n,role:i,tabIndex:a,placeholder:c,name:l,type:u,value:h,defaultValue:p,draggable:v,autoComplete:b,autoFocus:w,maxLength:C,min:E,max:S,step:y,pattern:k,inputMode:x,onSelect:M,onFocus:N,onBlur:A,onKeyDown:R,onKeyUp:O,onKeyPress:F,onChange:j,onDragStart:z,size:B="medium",className:I,inputClassName:T,disabled:D,readonly:P,containerTabIndex:_,startSlot:K,endSlot:W,reference:V,containerReference:Y,onContainerFocus:L,...H}=t,G=(0,s.filterProps)(H,g),U={...(0,s.filterAriaProps)(H),...(0,s.filterDataProps)(H),id:e,title:n,role:i,tabIndex:a,placeholder:c,name:l,type:u,value:h,defaultValue:p,draggable:v,autoComplete:b,autoFocus:w,maxLength:C,min:E,max:S,step:y,pattern:k,inputMode:x,onSelect:M,onFocus:N,onBlur:A,onKeyDown:R,onKeyUp:O,onKeyPress:F,onChange:j,onDragStart:z};return o.createElement(d.ControlSkeleton,{...G,disabled:D,readonly:P,tabIndex:_,className:r(f().container,I),size:B,ref:Y,onFocus:L,startSlot:K,middleSlot:o.createElement(m.MiddleSlot,null,o.createElement("input",{...U,className:r(f().input,T,K&&f()["with-start-slot"],W&&f()["with-end-slot"]),disabled:D,readOnly:P,ref:V})),endSlot:W})}function b(t){t=(0,l.useControl)(t);const{disabled:e,autoSelectOnFocus:n,tabIndex:r=0,onFocus:s,onBlur:d,reference:m,containerReference:p=null}=t,f=(0,o.useRef)(null),g=(0,o.useRef)(null),[b,w]=(0,u.useFocus)(),C=e?void 0:b?-1:r,E=e?void 0:b?r:-1,{isMouseDown:S,handleMouseDown:y,handleMouseUp:k}=(0,h.useIsMouseDown)(),x=(0,i.createSafeMulticastEventHandler)(w.onFocus,(function(t){n&&!S.current&&(0,a.selectAllContent)(t.currentTarget)}),s),M=(0,i.createSafeMulticastEventHandler)(w.onBlur,d),N=(0,o.useCallback)(t=>{f.current=t,m&&("function"==typeof m&&m(t),"object"==typeof m&&(m.current=t))},[f,m]);return o.createElement(v,{...t,isFocused:b,containerTabIndex:C,tabIndex:E,onContainerFocus:function(t){g.current===t.target&&null!==f.current&&f.current.focus()},onFocus:x,onBlur:M,reference:N,containerReference:(0,c.useMergedRefs)([g,p]),onMouseDown:y,onMouseUp:k})}},48027:(t,e,n)=>{"use strict";n.d(e,{useControl:()=>s});var o=n(47201),r=n(29202);function s(t){const{onFocus:e,onBlur:n,intent:s,highlight:i,disabled:a}=t,[c,l]=(0,r.useFocus)(void 0,a),u=(0,o.createSafeMulticastEventHandler)(a?void 0:l.onFocus,e),h=(0,o.createSafeMulticastEventHandler)(a?void 0:l.onBlur,n);return{...t,intent:s||(c?"primary":"default"),highlight:null!=i?i:c,onFocus:u,onBlur:h}}},29202:(t,e,n)=>{"use strict" -;n.d(e,{useFocus:()=>r});var o=n(59496);function r(t,e){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{e&&n&&r(!1)},[e,n]);const s={onFocus:(0,o.useCallback)((function(e){void 0!==t&&t.current!==e.target||r(!0)}),[t]),onBlur:(0,o.useCallback)((function(e){void 0!==t&&t.current!==e.target||r(!1)}),[t])};return[n,s]}},45812:(t,e,n)=>{"use strict";n.d(e,{useIsMouseDown:()=>r});var o=n(59496);function r(){const t=(0,o.useRef)(!1),e=(0,o.useCallback)(()=>{t.current=!0},[t]),n=(0,o.useCallback)(()=>{t.current=!1},[t]);return{isMouseDown:t,handleMouseDown:e,handleMouseUp:n}}},66092:(t,e,n)=>{"use strict";n.d(e,{useMergedRefs:()=>r});var o=n(59496);function r(t){return(0,o.useCallback)(function(t){return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}}(t),t)}},48907:(t,e,n)=>{"use strict";function o(t){null!==t&&t.setSelectionRange(0,t.value.length)}n.d(e,{selectAllContent:()=>o})},47201:(t,e,n)=>{"use strict";function o(...t){return e=>{for(const n of t)void 0!==n&&n(e)}}n.d(e,{createSafeMulticastEventHandler:()=>o})},50182:(t,e,n)=>{"use strict";n.d(e,{AdaptiveConfirmDialog:()=>d});var o=n(59496),r=n(97754),s=n.n(r),i=n(94720),a=n(88537),c=n(28353),l=n(68335),u=n(85457),h=n(91131);class d extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:t,onSubmit:e,onCancel:n,onClose:o}=this.props;switch(t){case"submit":e();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=t=>{const{onSubmit:e,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,l.hashFromEvent)(t)&&o&&(t.preventDefault(),n||e())}}render(){const{render:t,onClose:e,onSubmit:n,onCancel:r,footerLeftRenderer:s,submitButtonText:i,submitButtonDisabled:a,defaultActionOnClose:c,submitOnEnterKey:l,...h}=this.props;return o.createElement(u.AdaptivePopupDialog,{...h,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,a.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return t=>{const{render:e,footerLeftRenderer:n,additionalButtons:r,submitButtonText:a,submitButtonDisabled:l,onSubmit:u,cancelButtonText:d,showCancelButton:m=!0,submitButtonClassName:p,cancelButtonClassName:f,buttonsWrapperClassName:g}=this.props;return o.createElement(o.Fragment,null,e(t),o.createElement("div",{className:h.footer},n&&n(t.isSmallWidth),o.createElement("div",{className:s()(h.buttons,g)},r,m&&o.createElement(i.Button,{className:f,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=d?d:(0,c.t)("Cancel")),o.createElement("span",{className:h.submitButton},o.createElement(i.Button,{className:p,disabled:l,name:"submit",onClick:u,"data-name":"submit-button"},null!=a?a:(0,c.t)("Ok"))))))}}}d.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},27365:(t,e,n)=>{"use strict";n.d(e,{getTimezoneName:()=>o});n(10480);function o(t){const e=t.model().timezone();if("exchange"!==e)return e -;const n=t.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},1405:(t,e,n)=>{"use strict";n.d(e,{anchors:()=>o});n(59496);const o={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},70412:(t,e,n)=>{"use strict";n.d(e,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>i,useHover:()=>r});var o=n(59496);function r(){const[t,e]=(0,o.useState)(!1);return[t,{onMouseOver:function(t){s(t)&&e(!0)},onMouseOut:function(t){s(t)&&e(!1)}}]}function s(t){return!t.currentTarget.contains(t.relatedTarget)}function i(t){const[e,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const e=e=>{if(null===t.current)return;const o=t.current.contains(e.target);n(o)};return document.addEventListener("mouseover",e),()=>document.removeEventListener("mouseover",e)},[]),e}},86623:(t,e,n)=>{"use strict";n.d(e,{FormInput:()=>l});var o=n(59496),r=n(31261),s=n(84275),i=n(78274),a=n(47201),c=n(66092);function l(t){var e;const{intent:n,onFocus:l,onBlur:u,onMouseOver:h,onMouseOut:d,containerReference:m=null,endSlot:p,hasErrors:f,hasWarnings:g,errors:v,warnings:b,alwaysShowAttachedErrors:w,iconHidden:C,messagesPosition:E,messagesAttachment:S,customErrorsAttachment:y,messagesRoot:k,inheritMessagesWidthFromTarget:x,disableMessagesRtlStyles:M,...N}=t,A=(0,s.useControlValidationLayout)({hasErrors:f,hasWarnings:g,errors:v,warnings:b,alwaysShowAttachedErrors:w,iconHidden:C,messagesPosition:E,messagesAttachment:S,customErrorsAttachment:y,messagesRoot:k,inheritMessagesWidthFromTarget:x,disableMessagesRtlStyles:M}),R=(0,a.createSafeMulticastEventHandler)(l,A.onFocus),O=(0,a.createSafeMulticastEventHandler)(u,A.onBlur),F=(0,a.createSafeMulticastEventHandler)(h,A.onMouseOver),j=(0,a.createSafeMulticastEventHandler)(d,A.onMouseOut);return o.createElement(o.Fragment,null,o.createElement(r.InputControl,{...N,intent:null!==(e=A.intent)&&void 0!==e?e:n,onFocus:R,onBlur:O,onMouseOver:F,onMouseOut:j,containerReference:(0,c.useMergedRefs)([m,A.containerReference]),endSlot:o.createElement(o.Fragment,null,A.icon&&o.createElement(i.EndSlot,{icon:!0},A.icon),p)}),A.renderedErrors)}},36565:(t,e,n)=>{"use strict";n.d(e,{TimeInput:()=>I});var o=n(49483),r=n(59496),s=n(97754),i=n.n(s),a=n(88537),c=n(47201),l=n(78274),u=n(31261),h=n(9745),d=n(24451),m=n(35692);function p(t){return r.createElement(h.Icon,{className:d.icon,icon:m})}var f=n(29202),g=n(88722);var v=n(58095),b=n(64514);const w={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function C(t,e,n){const o=[],r=n;let s=0,i=0;const a=t.length,c=r.length;let l=-1,u=0;const h=[],d=a-1,m=[];let p;for(;s{const[n,o]=C(t,!1,e);l(n),g(o)},[e,t]),(0,r.useLayoutEffect)(()=>{const t=(0,a.ensureNotNull)(n.current);d&&(t.setSelectionRange(u,u),m(!1)),h(S(t))},[d]),[e,f,{onChange:function(){const e=(0,a.ensureNotNull)(n.current),o=e.value,[r,s]=C(t,!1,o);l(r),f.current=r;const i=g(s),d=function(t,e,n,o,r,s){if(t!==e){const i=e.length,a=t.length;let c=0,l=0,u=0,h=0,d=0;for(d=o;d=0&&r[d];d--)c++;for(d=o-1;d>=0;d--)r[d]&&u++;for(d=n-1;d>=0;d--)s[d]&&h++;if(o>a)o=10*i;else if(n>=o&&n!==a){if(s[o]){const t=o;o-=h-u,r[o-=c]&&(o=t)}}else o>n&&(o+=u-h,o+=l)}return o}(c,r,u,S(e),s,i);h(d),m(!0)},onSelect:function(){const t=(0,a.ensureNotNull)(n.current);h(S(t))},maxLength:o}];function g(t){const e=p.current;return p.current=t,e}}function S(t){return t.selectionStart||0}function y(t){const{value:e,mask:n,onChange:o,...s}=t,i=(0,r.useRef)(null),[a,c,l]=E(n,e,i);return(0,r.useLayoutEffect)(()=>{void 0!==t.reference&&(t.reference.current=i.current)},[t.reference]),r.createElement(u.InputControl,{...s,maxLength:l.maxLength,value:a,autoComplete:"off",reference:function(t){i.current=t},onChange:function(){l.onChange(),o(c.current)},onSelect:l.onSelect})}var k=n(68335),x=n(50628),M=n(16396),N=n(55257);const A=(()=>{const t=[];for(let e=0;e<24;++e)for(let n=0;n<60;n+=15){const[o,r]=[z(e.toString()),z(n.toString())],s=`${o}:${r}`,i=F(s)?s:j(s);t.push(i)}return t})();function R(t){let e=!1;const n=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(null),c=(0,r.useRef)(null),[u,h]=(0,f.useFocus)(),[d,m]=(0,r.useState)(t.value),g=O(d),w=F(g)?g:j(g),[C,E]=(0,r.useState)(w),S=u||K().some(t=>null!==t&&t.contains(document.activeElement));(0,r.useLayoutEffect)(()=>m(t.value),[t.value]),(0,r.useLayoutEffect)(()=>E(w),[d,S]),(0,r.useEffect)(()=>W(C===w?"auto":"smooth"),[C]);const R=(0,N.lowerbound)(A,w,(t,e)=>to&&r>e){const n=(0,b.clamp)(r,0,o),i=(0,b.clamp)(r,0,e);r=Math.max(n,i),s=n>i?t.top-n:t.bottom}else r>e&&(s=t.top-r);return{x:t.left,y:s,overrideWidth:t.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:s},z.map(t=>r.createElement(M.PopupMenuItem,{key:t,label:t,isActive:t===w,isHovered:t===C,reference:t===C?T:void 0,onClick:D,onClickArg:t}))));function I(n){const o=O(n),r=F(o)?o:j(o);m(r),e||(e=!0,t.onChange(r))}function T(t){c.current=t}function D(t){I((0,a.ensureDefined)(t)),(0,a.ensureNotNull)(s.current).blur()}function P(t){return u&&(null!==_(document.activeElement)||null!==_(t.relatedTarget))}function _(t){return t instanceof Node&&K().find(e=>null!==e&&e.contains(t))||null}function K(){return[s.current,o.current]}function W(t="auto"){if(null!==c.current){const e=(0,a.ensureNotNull)(s.current).getBoundingClientRect(),n=c.current.getBoundingClientRect();(e.top>n.top||e.bottom{d.current&&o&&(d.current.defaultValue=o)},[]),(0,r.useLayoutEffect)(()=>{d.current&&o&&(d.current.value=o)},[o]),r.createElement("div",{className:i()(g.wrap,s)},r.createElement(u.InputControl,{...h,type:"text",endSlot:r.createElement(l.EndSlot,{icon:!0},r.createElement(p,null)),value:o,highlight:m,intent:m?"primary":void 0, -onFocus:function(t){(0,a.ensureNotNull)(d.current).focus(),n&&n(t)},onChange:function(){}}),r.createElement("input",{...v,disabled:t.disabled,className:g.input,type:"time",onBlur:b,onChange:function(t){const{value:n}=t.currentTarget;e&&n&&e(n)},ref:d}))}:R},84275:(t,e,n)=>{"use strict";n.d(e,{MessagesPosition:()=>E,useControlValidationLayout:()=>O});var o=n(59496),r=n(97754),s=n(29202),i=n(70412),a=n(78274),c=n(1405),l=n(86431),u=n(87995);var h=n(66875),d=n(62820);class m extends o.PureComponent{render(){const{children:t=[],show:e=!1,customErrorClass:n,disableRtlStyles:s}=this.props,i=r(h.errors,{[h.show]:e},n),a=t.map((t,e)=>o.createElement("div",{className:h.error,key:e},t));let c={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,d.isRtl)()&&!s){const{left:t,right:e}=c;c={...c,left:e,right:t}}return o.createElement("div",{style:c,className:i},a)}}const p=(0,l.makeOverlapable)((f=m,(g=class extends o.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame(()=>this.setState(this._calcProps(this.props)))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=u.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),()=>this.setState(this._calcProps(this.props)))}render(){return o.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},o.createElement(f,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:n,inheritWidthFromTarget:o=!0,inheritMaxWidthFromTarget:r=!1}=this.props,s={width:o?e.width:n,maxWidth:r?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":s.top=e.y;break;default:s[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":s.left=e.x;break;default:s[t.attachment.horizontal]=e.x} -return s}return{}}_calcTargetProps(t,e,n){const o=t.getBoundingClientRect(),r=this._instanceElem.getBoundingClientRect(),s="parent"===this.props.root?this._getCoordsRelToParentEl(t,o):this._getCoordsRelToDocument(o);if(null===s)return null;const i=this._getDimensions(r),a=this._getDimensions(o).width;let c=0,l=0;switch(e.vertical){case"top":l=s[n.vertical];break;case"bottom":l=s[n.vertical]-i.height;break;case"middle":l=s[n.vertical]-i.height/2}switch(e.horizontal){case"left":c=s[n.horizontal];break;case"right":c=s[n.horizontal]-i.width;break;case"center":c=s[n.horizontal]-i.width/2}return"number"==typeof this.props.attachmentOffsetY&&(l+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(c+=this.props.attachmentOffsetX),{x:c,y:l,width:a}}_getCoordsRelToDocument(t){const e=pageYOffset,n=pageXOffset,o=t.top+e,r=t.bottom+e,s=t.left+n;return{top:o,bottom:r,left:s,right:t.right+n,middle:(o+t.height)/2,center:s+t.width/2}}_getCoordsRelToParentEl(t,e){const n=t.offsetParent;if(null===n)return null;const o=n.scrollTop,r=n.scrollLeft,s=t.offsetTop+o,i=t.offsetLeft+r,a=e.width+i;return{top:s,bottom:e.height+s,left:i,right:a,middle:(s+e.height)/2,center:(i+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",g));var f,g,v=n(9745),b=n(83546),w=n(93314);function C(t){const{intent:e="danger"}=t;return o.createElement(v.Icon,{icon:b,className:r(w["error-icon"],w["intent-"+e])})}var E,S,y=n(52965);!function(t){t[t.Attached=0]="Attached",t[t.Static=1]="Static",t[t.Hidden=2]="Hidden"}(E||(E={})),function(t){t.Top="top",t.Bottom="bottom"}(S||(S={}));const k={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function x(t){const{isOpened:e,target:n,errorAttachment:r=S.Top,customErrorsAttachment:s,root:i="parent",inheritWidthFromTarget:a=!1,disableRtlStyles:c,children:l}=t,{attachment:u,targetAttachment:h,attachmentOffsetY:d}=null!=s?s:k[r];return o.createElement(p,{isOpened:e,target:n,root:i,inheritWidthFromTarget:a,attachment:u,targetAttachment:h,attachmentOffsetY:d,disableRtlStyles:c,inheritMaxWidthFromTarget:!0,show:!0},l)}function M(t,e){return Boolean(t)&&void 0!==e&&e.length>0}function N(t,e,n){return t===E.Attached&&M(e,n)}function A(t,e,n){return t===E.Static&&M(e,n)}function R(t,e,n){const{hasErrors:o,hasWarnings:r,alwaysShowAttachedErrors:s,iconHidden:i,errors:a,warnings:c,messagesPosition:l=E.Static}=t,u=N(l,o,a),h=N(l,r,c),d=u&&(e||n||Boolean(s)),m=!d&&h&&(e||n),p=A(l,o,a),f=!p&&A(l,r,c),g=!i&&Boolean(o);return{hasAttachedErrorMessages:u, -hasAttachedWarningMessages:h,showAttachedErrorMessages:d,showAttachedWarningMessages:m,showStaticErrorMessages:p,showStaticWarningMessages:f,showErrorIcon:g,showWarningIcon:!i&&!g&&Boolean(r),intent:function(t,e){return Boolean(t)?"danger":Boolean(e)?"warning":void 0}(o,r)}}function O(t){var e,n;const{errors:c,warnings:l,messagesAttachment:u,customErrorsAttachment:h,messagesRoot:d,inheritMessagesWidthFromTarget:m,disableMessagesRtlStyles:p}=t,[f,g]=(0,s.useFocus)(),[v,b]=(0,i.useHover)(),w=(0,o.useRef)(null),{hasAttachedErrorMessages:E,hasAttachedWarningMessages:S,showAttachedErrorMessages:k,showAttachedWarningMessages:M,showStaticErrorMessages:N,showStaticWarningMessages:A,showErrorIcon:O,showWarningIcon:F,intent:j}=R(t,f,v),z=O||F?o.createElement(C,{intent:O?"danger":"warning"}):void 0,B=E?o.createElement(x,{errorAttachment:u,customErrorsAttachment:h,isOpened:k,target:w.current,root:d,inheritWidthFromTarget:m,disableRtlStyles:p,children:c}):void 0,I=S?o.createElement(x,{errorAttachment:u,isOpened:M,target:w.current,root:d,inheritWidthFromTarget:m,disableRtlStyles:p,children:l}):void 0,T=N?o.createElement(a.AfterSlot,{className:r(y["static-messages"],y.errors)},null==c?void 0:c.map((t,e)=>o.createElement("p",{key:e,className:y.message},t))):void 0,D=A?o.createElement(a.AfterSlot,{className:r(y["static-messages"],y.warnings)},null==l?void 0:l.map((t,e)=>o.createElement("p",{key:e,className:y.message},t))):void 0;return{icon:z,renderedErrors:null!==(n=null!==(e=null!=B?B:I)&&void 0!==e?e:T)&&void 0!==n?n:D,containerReference:w,intent:j,...g,...b}}},16396:(t,e,n)=>{"use strict";n.d(e,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>l,PopupMenuItem:()=>d});var o=n(59496),r=n(97754),s=n(59064),i=n(51768),a=n(90186),c=n(23576);const l=c;function u(t){const{reference:e,...n}=t,r={...n,ref:e};return o.createElement(t.href?"a":"div",r)}function h(t){t.stopPropagation()}function d(t){const{id:e,role:n,"aria-selected":l,className:d,title:m,labelRowClassName:p,labelClassName:f,shortcut:g,forceShowShortcuts:v,icon:b,isActive:w,isDisabled:C,isHovered:E,appearAsDisabled:S,label:y,link:k,showToolboxOnHover:x,target:M,rel:N,toolbox:A,reference:R,onMouseOut:O,onMouseOver:F,suppressToolboxClick:j=!0,theme:z=c}=t,B=(0,a.filterDataProps)(t),I=(0,o.useRef)(null);return o.createElement(u,{...B,id:e,role:n,"aria-selected":l,className:r(d,z.item,b&&z.withIcon,{[z.isActive]:w,[z.isDisabled]:C||S,[z.hovered]:E}),title:m,href:k,target:M,rel:N,reference:function(t){I.current=t,"function"==typeof R&&R(t);"object"==typeof R&&(R.current=t)},onClick:function(e){const{dontClosePopup:n,onClick:o,onClickArg:r,trackEventObject:a}=t;if(C)return;a&&(0,i.trackEvent)(a.category,a.event,a.label);o&&o(r,e);n||(0,s.globalCloseMenu)()},onContextMenu:function(e){const{trackEventObject:n,trackRightClick:o}=t;n&&o&&(0,i.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(e){const{trackEventObject:n,trackMouseWheelClick:o}=t;if(1===e.button&&k&&n){let t=n.label;o&&(t+="_mouseWheelClick"),(0,i.trackEvent)(n.category,n.event,t)}},onMouseOver:F,onMouseOut:O -},void 0!==b&&o.createElement("div",{className:z.icon,dangerouslySetInnerHTML:{__html:b}}),o.createElement("div",{className:r(z.labelRow,p)},o.createElement("div",{className:r(z.label,f)},y)),(void 0!==g||v)&&o.createElement("div",{className:z.shortcut},(T=g)&&T.split("+").join(" + ")),void 0!==A&&o.createElement("div",{onClick:j?h:void 0,className:r(z.toolbox,{[z.showOnHover]:x})},A));var T}},50628:(t,e,n)=>{"use strict";n.d(e,{PopupMenu:()=>l});var o=n(59496),r=n(87995),s=n(65718),i=n(27317),a=n(29197),c=n(58095);function l(t){const{controller:e,children:n,isOpened:l,closeOnClickOutside:u=!0,doNotCloseOn:h,onClickOutside:d,onClose:m,...p}=t,f=(0,o.useContext)(a.CloseDelegateContext),g=(0,c.useOutsideEvent)({handler:function(t){d&&d(t);if(!u)return;if(h&&t.target instanceof Node){const e=r.findDOMNode(h);if(e instanceof Node&&e.contains(t.target))return}m()},mouseDown:!0,touchStart:!0});return l?o.createElement(s.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ref:g,style:{pointerEvents:"auto"}},o.createElement(i.Menu,{...p,onClose:m,onScroll:function(e){const{onScroll:n}=t;n&&n(e)},customCloseDelegate:f,ref:e},n))):null}},83546:t=>{t.exports=''},35692:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/60df35582c6fbf690ee8aad4f66b528c.svg b/charting_library/bundles/60df35582c6fbf690ee8aad4f66b528c.svg new file mode 100644 index 00000000..3f8e74f4 --- /dev/null +++ b/charting_library/bundles/60df35582c6fbf690ee8aad4f66b528c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/614cf27f508c538c23fd1e41dec69981.svg b/charting_library/bundles/614cf27f508c538c23fd1e41dec69981.svg new file mode 100644 index 00000000..e8c2af45 --- /dev/null +++ b/charting_library/bundles/614cf27f508c538c23fd1e41dec69981.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6169c60c8d04924d194452dff1191b8e.svg b/charting_library/bundles/6169c60c8d04924d194452dff1191b8e.svg new file mode 100644 index 00000000..0599ac33 --- /dev/null +++ b/charting_library/bundles/6169c60c8d04924d194452dff1191b8e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/61da80123bd4db4b54f857a53d7718da.svg b/charting_library/bundles/61da80123bd4db4b54f857a53d7718da.svg new file mode 100644 index 00000000..0bc2a316 --- /dev/null +++ b/charting_library/bundles/61da80123bd4db4b54f857a53d7718da.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/62bf57b352114c25f178d892fef2c1d8.svg b/charting_library/bundles/62bf57b352114c25f178d892fef2c1d8.svg new file mode 100644 index 00000000..1ae53dd8 --- /dev/null +++ b/charting_library/bundles/62bf57b352114c25f178d892fef2c1d8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/637fc842362a44cdfab2f5a1945f5ad8.svg b/charting_library/bundles/637fc842362a44cdfab2f5a1945f5ad8.svg new file mode 100644 index 00000000..40a43f9c --- /dev/null +++ b/charting_library/bundles/637fc842362a44cdfab2f5a1945f5ad8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/638.a7dbcc3801adb93fdc91.js b/charting_library/bundles/638.a7dbcc3801adb93fdc91.js new file mode 100644 index 00000000..979c8dda --- /dev/null +++ b/charting_library/bundles/638.a7dbcc3801adb93fdc91.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[638],{55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},64547:e=>{e.exports={button:"button-SS83RYhy"}},71123:e=>{e.exports={button:"button-khcLBZEz",hover:"hover-khcLBZEz",arrow:"arrow-khcLBZEz",arrowWrap:"arrowWrap-khcLBZEz",newStyles:"newStyles-khcLBZEz",isOpened:"isOpened-khcLBZEz"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,o)=>{"use strict";function r(e){return n(e,a)}function i(e){return n(e,s)}function n(e,t){const o=Object.entries(e).filter(t),r={};for(const[e,t]of o)r[e]=t;return r}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function s(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>r,filterAriaProps:()=>i,filterProps:()=>n,isDataAttribute:()=>a,isAriaAttribute:()=>s})},40233:(e,t,o)=>{"use strict";o.d(t,{VerticalAttachEdge:()=>r,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>n,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var r,i,n,a,s=o(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(r||(r={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(n||(n={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:r.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:n.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(o,c)=>{const d=(0, +s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:p=l.verticalAttachEdge,verticalDropDirection:h=l.verticalDropDirection,horizontalAttachEdge:u=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:v=l.horizontalMargin,verticalMargin:w=l.verticalMargin,matchButtonAndListboxWidths:f=l.matchButtonAndListboxWidths}=t,b=p===r.Top?-1*w:w,g=u===i.Right?d.right:d.left,D=p===r.Top?d.top:d.bottom,k={x:g-(m===a.FromRightToLeft?o:0)+v,y:D-(h===n.FromBottomToTop?c:0)+b};return f&&(k.overrideWidth=d.width),k}}},4825:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>c});var r=o(59496),i=o(97754),n=o(9745),a=o(37669),s=o(55576);const l=s,c=r.forwardRef((e,t)=>{const{icon:o,isActive:l,isOpened:c,isDisabled:d,isGrouped:p,isHovered:h,onClick:u,text:m,textBeforeIcon:v,title:w,theme:f=s,className:b,forceInteractive:g,"data-name":D,...k}=e,x=i(b,f.button,w&&"apply-common-tooltip",{[f.isActive]:l,[f.isOpened]:c,[f.isInteractive]:(g||Boolean(u))&&!d,[f.isDisabled]:d,[f.isGrouped]:p,[f.hover]:h,[f.newStyles]:a.hasNewHeaderToolbarStyles}),E=o&&("string"==typeof o?r.createElement(n.Icon,{className:f.icon,icon:o}):r.cloneElement(o,{className:i(f.icon,o.props.className)}));return r.createElement("div",{...k,ref:t,"data-role":"button",className:x,onClick:d?void 0:u,title:w,"data-name":D},v&&m&&r.createElement("div",{className:i("js-button-text",f.text)},m),E,!v&&m&&r.createElement("div",{className:i("js-button-text",f.text)},m))})},14593:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetIconButton:()=>s});var r=o(59496),i=o(97754),n=o(4825),a=o(64547);const s=r.forwardRef((e,t)=>{const{className:o,id:s,...l}=e;return r.createElement(n.ToolWidgetButton,{"data-name":s,...l,ref:t,className:i(o,a.button)})})},35390:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetMenu:()=>m});var r=o(59496),i=o(97754),n=o(50628),a=o(10381),s=o(90186),l=o(37558),c=o(41590),d=o(40233),p=o(90692),h=o(37669),u=o(71123);class m extends r.PureComponent{constructor(e){super(e),this._wrapperRef=null,this._controller=r.createRef(),this._handleWrapperRef=e=>{this._wrapperRef=e,this.props.reference&&this.props.reference(e)},this._handleClick=e=>{e.target instanceof Node&&e.currentTarget.contains(e.target)&&(this._handleToggleDropdown(),this.props.onClick&&this.props.onClick(e,!this.state.isOpened))},this._handleToggleDropdown=e=>{const{onClose:t,onOpen:o}=this.props,{isOpened:r}=this.state,i="boolean"==typeof e?e:!r;this.setState({isOpened:i}),i&&o&&o(),!i&&t&&t()},this._handleClose=()=>{this.close()},this.state={isOpened:!1}}render(){const{id:e,arrow:t,content:o,isDisabled:n,isDrawer:l,isShowTooltip:c,title:d,className:u,hotKey:m,theme:v,drawerBreakpoint:w}=this.props,{isOpened:f}=this.state,b=i(u,v.button,{"apply-common-tooltip":c||!n,[v.isDisabled]:n,[v.isOpened]:f,[v.newStyles]:h.hasNewHeaderToolbarStyles});return r.createElement("div",{id:e,className:b,onClick:n?void 0:this._handleClick,title:d,"data-tooltip-hotkey":m,ref:this._handleWrapperRef,"data-role":"button",...(0, +s.filterDataProps)(this.props)},o,t&&r.createElement("div",{className:v.arrow},r.createElement("div",{className:v.arrowWrap},r.createElement(a.ToolWidgetCaret,{dropped:f}))),this.state.isOpened&&(w?r.createElement(p.MatchMedia,{rule:w},e=>this._renderContent(e)):this._renderContent(l)))}close(){this._handleToggleDropdown(!1)}update(){null!==this._controller.current&&this._controller.current.update()}_renderContent(e){const{menuDataName:t,minWidth:o,menuClassName:i,maxHeight:a,drawerPosition:s="Bottom",children:p}=this.props,{isOpened:h}=this.state,u={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection,matchButtonAndListboxWidths:this.props.matchButtonAndListboxWidths},m=Boolean(h&&e&&s),v=function(e){return"function"==typeof e}(p)?p({isDrawer:m}):p;return m?r.createElement(l.DrawerManager,null,r.createElement(c.Drawer,{onClose:this._handleClose,position:s,"data-name":t},v)):r.createElement(n.PopupMenu,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:h,minWidth:o,onClose:this._handleClose,position:(0,d.getPopupPositioner)(this._wrapperRef,u),className:i,maxHeight:a,"data-name":t},v)}}m.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:u}},37669:(e,t,o)=>{"use strict";o.d(t,{hasNewHeaderToolbarStyles:()=>r});o(67337);const r=!1},24437:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>i});var r=o(96746);const i={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>i,DrawerContext:()=>n});var r=o(59496);class i extends r.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.createElement(n.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const n=r.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>u});var r=o(59496),i=o(88537),n=o(97754),a=o(59142),s=o(43989),l=o(65718),c=o(37558),d=o(49483),p=o(29197),h=o(66998);function u(e){const{position:t="Bottom",onClose:o,children:u,className:m,theme:v=h}=e,w=(0,i.ensureNotNull)((0,r.useContext)(c.DrawerContext)),[f,b]=(0,r.useState)(0),g=(0,r.useRef)(null),D=(0,r.useContext)(p.CloseDelegateContext);return(0,r.useEffect)(()=>{const e=(0,i.ensureNotNull)(g.current);return e.focus({preventScroll:!0}),D.subscribe(w,o),0===w.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),b(w.addDrawer()),()=>{D.unsubscribe(w,o);const t=w.removeDrawer();d.CheckMobile.iOS()&&(0, +a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),r.createElement(l.Portal,null,r.createElement("div",{className:n(h.wrap,h["position"+t])},f===w.currentDrawer&&r.createElement("div",{className:h.backdrop,onClick:o}),r.createElement("div",{className:n(h.drawer,v.drawer,h["position"+t],m),ref:g,tabIndex:-1,"data-name":e["data-name"]},u)))}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>p});var r=o(28353),i=o(59496),n=o(97754),a=o(9745),s=o(20614),l=o(55783),c=o(16842);const d={add:(0,r.t)("Add to favorites"),remove:(0,r.t)("Remove from favorites")};function p(e){const{className:t,isFilled:o,isActive:r,onClick:p,...h}=e;return i.createElement(a.Icon,{...h,className:n(c.favorite,"apply-common-tooltip",o&&c.checked,r&&c.active,t),icon:o?s:l,onClick:p,title:o?d.remove:d.add})}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>h});var r=o(59496),i=o(97754),n=o(59064),a=o(51768),s=o(90186),l=o(23576);const c=l;function d(e){const{reference:t,...o}=e,i={...o,ref:t};return r.createElement(e.href?"a":"div",i)}function p(e){e.stopPropagation()}function h(e){const{id:t,role:o,"aria-selected":c,className:h,title:u,labelRowClassName:m,labelClassName:v,shortcut:w,forceShowShortcuts:f,icon:b,isActive:g,isDisabled:D,isHovered:k,appearAsDisabled:x,label:E,link:C,showToolboxOnHover:T,target:O,rel:N,toolbox:A,reference:B,onMouseOut:S,onMouseOver:y,suppressToolboxClick:M=!0,theme:L=l}=e,_=(0,s.filterDataProps)(e),F=(0,r.useRef)(null);return r.createElement(d,{..._,id:t,role:o,"aria-selected":c,className:i(h,L.item,b&&L.withIcon,{[L.isActive]:g,[L.isDisabled]:D||x,[L.hovered]:k}),title:u,href:C,target:O,rel:N,reference:function(e){F.current=e,"function"==typeof B&&B(e);"object"==typeof B&&(B.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:r,onClickArg:i,trackEventObject:s}=e;if(D)return;s&&(0,a.trackEvent)(s.category,s.event,s.label);r&&r(i,t);o||(0,n.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:r}=e;o&&r&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:r}=e;if(1===t.button&&C&&o){let e=o.label;r&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:y,onMouseOut:S},void 0!==b&&r.createElement("div",{className:L.icon,dangerouslySetInnerHTML:{__html:b}}),r.createElement("div",{className:i(L.labelRow,m)},r.createElement("div",{className:i(L.label,v)},E)),(void 0!==w||f)&&r.createElement("div",{className:L.shortcut},(R=w)&&R.split("+").join(" + ")),void 0!==A&&r.createElement("div",{onClick:M?p:void 0,className:i(L.toolbox,{[L.showOnHover]:T})},A));var R}},96040:(e,t,o)=>{"use strict";o.d(t,{RemoveButton:()=>d});var r=o(28353),i=o(59496),n=o(97754),a=o(9745),s=o(73366),l=o(73432);const c={remove:(0,r.t)("Remove")};function d(e){const{className:t,isActive:o,onClick:r,onMouseDown:d,title:p,hidden:h,"data-name":u="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":u, +className:n(l.button,"apply-common-tooltip",o&&l.active,h&&l.hidden,t),icon:s,onClick:r,onMouseDown:d,title:p||c.remove})}},10381:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetCaret:()=>l});var r=o(59496),i=o(97754),n=o(9745),a=o(40367),s=o(81268);function l(e){const{dropped:t,className:o}=e;return r.createElement(n.Icon,{className:i(o,a.icon,{[a.dropped]:t}),icon:s})}},81268:e=>{e.exports=''},73366:e=>{e.exports=''},16788:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/63bccd48089718d7044ce87890d1af22.svg b/charting_library/bundles/63bccd48089718d7044ce87890d1af22.svg new file mode 100644 index 00000000..10c26ab9 --- /dev/null +++ b/charting_library/bundles/63bccd48089718d7044ce87890d1af22.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6438.d13cf32db05c4395beed.js b/charting_library/bundles/6438.d13cf32db05c4395beed.js new file mode 100644 index 00000000..7a366624 --- /dev/null +++ b/charting_library/bundles/6438.d13cf32db05c4395beed.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6438,8673],{59142:function(e,t){var n,r,o;r=[t],void 0===(o="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=s.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,l.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children +;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){y&&p&&(y=!1,p.length?d=p.concat(d):v=-1,d.length&&u())}function u(){if(!y){var e=o(i);y=!0;for(var t=d.length;t;){for(p=d,d=[];++v1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,u=void 0;return t.margin&&(u=(0,r.default)(getComputedStyle(e))),t.margin?(o=u.left+n.width+u.right,i=u.top+n.height+u.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))}}]); \ No newline at end of file diff --git a/charting_library/bundles/6464.654bf43eb72d501be562.css b/charting_library/bundles/6464.654bf43eb72d501be562.css new file mode 100644 index 00000000..95d92141 --- /dev/null +++ b/charting_library/bundles/6464.654bf43eb72d501be562.css @@ -0,0 +1 @@ +.toast-x9aer5B8{background:#fff;border-radius:4px;box-shadow:0 2px 4px #0003;box-sizing:border-box;display:flex;flex-flow:row-reverse nowrap;max-width:600px;padding:12px;position:relative;text-align:left}html.theme-dark .toast-x9aer5B8{background:#1e222d;box-shadow:0 2px 4px #0006}.toast-x9aer5B8.intent-danger-x9aer5B8,.toast-x9aer5B8.intent-success-x9aer5B8,.toast-x9aer5B8.intent-warning-x9aer5B8{border-left-style:solid;border-left-width:6px}.toast-x9aer5B8.intent-success-x9aer5B8,html.theme-dark .toast-x9aer5B8.intent-success-x9aer5B8{border-color:#06806b}.toast-x9aer5B8.intent-warning-x9aer5B8,html.theme-dark .toast-x9aer5B8.intent-warning-x9aer5B8{border-color:#ff9800}.toast-x9aer5B8.intent-danger-x9aer5B8{border-color:#f23645}html.theme-dark .toast-x9aer5B8.intent-danger-x9aer5B8{border-color:#b22833}.image-x9aer5B8{align-items:center;display:flex;flex-shrink:0;height:110px;justify-content:center;margin:-4px -4px 0 12px;width:100px}.image-x9aer5B8 img{max-height:110px;max-width:100px}.main-content-x9aer5B8{cursor:default;display:flex;flex-flow:column nowrap;width:100%}.title-x9aer5B8{color:#131722;display:block;font-size:14px;font-style:normal;font-weight:400;font-weight:700;line-height:21px;margin:0 0 4px}html.theme-dark .title-x9aer5B8{color:#d1d4dc}.main-text-x9aer5B8{color:#131722;font-size:13px;font-style:normal;font-weight:400;line-height:19px;margin:0;white-space:pre-wrap}html.theme-dark .main-text-x9aer5B8{color:#d1d4dc}.secondary-text-x9aer5B8{color:#787b86;font-size:12px;font-style:normal;font-weight:400;line-height:17px;margin:8px 0 0}html.theme-dark .secondary-text-x9aer5B8{color:#787b86}.actions-x9aer5B8{margin-top:auto;padding-top:8px}.close-icon-x9aer5B8{display:flex}.close-icon-x9aer5B8,.close-icon-x9aer5B8 svg{height:10px;width:10px}.close-button-x9aer5B8{background:#787b861a;background-clip:padding-box;border:2px solid #0000;border-radius:4px;box-sizing:border-box;color:#787b86;cursor:pointer;height:22px;margin:0;padding:4px;position:absolute;right:12px;top:12px;transition:color .35s ease,border-color .35s ease;width:22px}html.theme-dark .close-button-x9aer5B8{background:#787b861a;color:#787b86}@media (any-hover:hover){.close-button-x9aer5B8:hover{color:#131722;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:hover{color:#b2b5be}}.close-button-x9aer5B8:active{color:#2962ff;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:active{color:#2962ff}.close-button-x9aer5B8:focus{border-color:#2962ff80;outline:none;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:focus{border-color:#2962ff80}.close-button-x9aer5B8:focus-visible{border-color:#2962ff80;outline:none;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:focus-visible{border-color:#2962ff80}.close-button-x9aer5B8:focus:not(:focus-visible){border-color:#0000}.adjust-for-close-button-x9aer5B8{margin-right:28px} \ No newline at end of file diff --git a/charting_library/bundles/6464.654bf43eb72d501be562.rtl.css b/charting_library/bundles/6464.654bf43eb72d501be562.rtl.css new file mode 100644 index 00000000..58c4eeda --- /dev/null +++ b/charting_library/bundles/6464.654bf43eb72d501be562.rtl.css @@ -0,0 +1 @@ +.toast-x9aer5B8{background:#fff;border-radius:4px;box-shadow:0 2px 4px #0003;box-sizing:border-box;display:flex;flex-flow:row-reverse nowrap;max-width:600px;padding:12px;position:relative;text-align:right}html.theme-dark .toast-x9aer5B8{background:#1e222d;box-shadow:0 2px 4px #0006}.toast-x9aer5B8.intent-danger-x9aer5B8,.toast-x9aer5B8.intent-success-x9aer5B8,.toast-x9aer5B8.intent-warning-x9aer5B8{border-right-style:solid;border-right-width:6px}.toast-x9aer5B8.intent-success-x9aer5B8,html.theme-dark .toast-x9aer5B8.intent-success-x9aer5B8{border-color:#06806b}.toast-x9aer5B8.intent-warning-x9aer5B8,html.theme-dark .toast-x9aer5B8.intent-warning-x9aer5B8{border-color:#ff9800}.toast-x9aer5B8.intent-danger-x9aer5B8{border-color:#f23645}html.theme-dark .toast-x9aer5B8.intent-danger-x9aer5B8{border-color:#b22833}.image-x9aer5B8{align-items:center;display:flex;flex-shrink:0;height:110px;justify-content:center;margin:-4px 12px 0 -4px;width:100px}.image-x9aer5B8 img{max-height:110px;max-width:100px}.main-content-x9aer5B8{cursor:default;display:flex;flex-flow:column nowrap;width:100%}.title-x9aer5B8{color:#131722;display:block;font-size:14px;font-style:normal;font-weight:400;font-weight:700;line-height:21px;margin:0 0 4px}html.theme-dark .title-x9aer5B8{color:#d1d4dc}.main-text-x9aer5B8{color:#131722;font-size:13px;font-style:normal;font-weight:400;line-height:19px;margin:0;white-space:pre-wrap}html.theme-dark .main-text-x9aer5B8{color:#d1d4dc}.secondary-text-x9aer5B8{color:#787b86;font-size:12px;font-style:normal;font-weight:400;line-height:17px;margin:8px 0 0}html.theme-dark .secondary-text-x9aer5B8{color:#787b86}.actions-x9aer5B8{margin-top:auto;padding-top:8px}.close-icon-x9aer5B8{display:flex}.close-icon-x9aer5B8,.close-icon-x9aer5B8 svg{height:10px;width:10px}.close-button-x9aer5B8{background:#787b861a;background-clip:padding-box;border:2px solid #0000;border-radius:4px;box-sizing:border-box;color:#787b86;cursor:pointer;height:22px;left:12px;margin:0;padding:4px;position:absolute;top:12px;transition:color .35s ease,border-color .35s ease;width:22px}html.theme-dark .close-button-x9aer5B8{background:#787b861a;color:#787b86}@media (any-hover:hover){.close-button-x9aer5B8:hover{color:#131722;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:hover{color:#b2b5be}}.close-button-x9aer5B8:active{color:#2962ff;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:active{color:#2962ff}.close-button-x9aer5B8:focus{border-color:#2962ff80;outline:none;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:focus{border-color:#2962ff80}.close-button-x9aer5B8:focus-visible{border-color:#2962ff80;outline:none;transition-duration:60ms}html.theme-dark .close-button-x9aer5B8:focus-visible{border-color:#2962ff80}.close-button-x9aer5B8:focus:not(:focus-visible){border-color:#0000}.adjust-for-close-button-x9aer5B8{margin-left:28px} \ No newline at end of file diff --git a/charting_library/bundles/6474d98d9f212d0a5b3edc7c81fce0a4.svg b/charting_library/bundles/6474d98d9f212d0a5b3edc7c81fce0a4.svg new file mode 100644 index 00000000..45db999f --- /dev/null +++ b/charting_library/bundles/6474d98d9f212d0a5b3edc7c81fce0a4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6475.249a3b34f1b557decee6.js b/charting_library/bundles/6475.249a3b34f1b557decee6.js new file mode 100644 index 00000000..285efe09 --- /dev/null +++ b/charting_library/bundles/6475.249a3b34f1b557decee6.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6475],{59142:function(e,t){var n,o,s;o=[t],void 0===(s="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM", +dot:"dot-5Xd5conM"}},62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},88797:e=>{e.exports={loaderWrap:"loaderWrap-wpeeczk7",big:"big-wpeeczk7",loader:"loader-wpeeczk7"}},19119:e=>{e.exports={item:"item-tPYeYcJa",interactive:"interactive-tPYeYcJa",hovered:"hovered-tPYeYcJa",disabled:"disabled-tPYeYcJa",active:"active-tPYeYcJa",shortcut:"shortcut-tPYeYcJa",normal:"normal-tPYeYcJa",big:"big-tPYeYcJa",iconCell:"iconCell-tPYeYcJa",icon:"icon-tPYeYcJa",checkmark:"checkmark-tPYeYcJa",content:"content-tPYeYcJa",label:"label-tPYeYcJa",checked:"checked-tPYeYcJa",toolbox:"toolbox-tPYeYcJa",showToolboxOnHover:"showToolboxOnHover-tPYeYcJa",arrowIcon:"arrowIcon-tPYeYcJa",subMenu:"subMenu-tPYeYcJa",invisibleHotkey:"invisibleHotkey-tPYeYcJa"}},52506:e=>{e.exports={row:"row-Bc0VIp30",line:"line-Bc0VIp30",hint:"hint-Bc0VIp30"}},33549:e=>{e.exports={menu:"menu-qOMHRo3C"}},61999:e=>{e.exports={item:"item-zoYF2FPa",emptyIcons:"emptyIcons-zoYF2FPa",loading:"loading-zoYF2FPa",disabled:"disabled-zoYF2FPa",interactive:"interactive-zoYF2FPa",hovered:"hovered-zoYF2FPa",normal:"normal-zoYF2FPa",big:"big-zoYF2FPa",icon:"icon-zoYF2FPa",label:"label-zoYF2FPa",title:"title-zoYF2FPa",nested:"nested-zoYF2FPa",shortcut:"shortcut-zoYF2FPa",remove:"remove-zoYF2FPa"}},76860:e=>{e.exports={separator:"separator-ErQ6N9mF"}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var o=n(59496),s=n(97754),a=n(9745),r=n(49154),i=n(37593),l=n.n(i);function c(e){const t=s(l().box,l()["intent-"+e.intent],{[l().check]:!Boolean(e.indeterminate),[l().dot]:Boolean(e.indeterminate),[l().noOutline]:-1===e.tabIndex}),n=s(l().wrapper,e.className);return o.createElement("span",{className:n,title:e.title},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:l().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),o.createElement("span",{className:t},o.createElement(a.Icon,{icon:r,className:l().icon})))}},26996:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>c});var o,s=n(59496),a=n(97754),r=n(74991),i=n(62092),l=n.n(i);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(o||(o={}));class c extends s.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:o.Initial}}render(){const{className:e,color:t="black",size:n="medium",staticPosition:o}=this.props,r=a(l().item,l()[t],l()[n]);return s.createElement("span",{className:a(l().loader,o&&l().static,this._getStateClass(),e)},s.createElement("span",{className:r}),s.createElement("span",{className:r}),s.createElement("span",{className:r}))}componentDidMount(){this.setState({state:o.Appear}), +this._stateChangeTimeout=setTimeout(()=>{this.setState({state:o.Active})},2*r.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case o.Initial:return l()["loader-initial"];case o.Appear:return l()["loader-appear"];default:return""}}}},8312:(e,t,n)=>{"use strict";n.d(t,{ActionsTable:()=>I});var o=n(59496),s=n(52506);function a(e){return o.createElement("tr",{className:s.row},o.createElement("td",null,o.createElement("div",{className:s.line})),o.createElement("td",null,o.createElement("div",{className:s.line}),e.hint?o.createElement("div",{className:s.hint},e.hint):null))}var r=n(88537),i=n(97754),l=n.n(i),c=n(84413),u=n(49483),h=n(32563);var d=n(96040),p=n(36189),m=n(99025),v=n(25812),b=n(51956),g=n(37049),f=n(19119);class E extends o.PureComponent{constructor(){super(...arguments),this._handleMouseOver=e=>{(function(e){const t=e.sourceCapabilities;let n=t&&t.firesTouchEvents;return void 0===n&&(n=h.touch),n})(e.nativeEvent)||this.props.onMouseOver&&this.props.onMouseOver()},this._handleClickToolbox=e=>{e.stopPropagation(),this.props.onClickToolbox&&this.props.onClickToolbox()}}render(){const{hasSubItems:e,shortcutHint:t,hint:n,invisibleHotkey:s,favourite:a,theme:r=f,size:l="normal"}=this.props,c=this.props.checkable&&this.props.checkboxInput?"label":"div";return o.createElement(o.Fragment,null,o.createElement("tr",{className:i(r.item,!this.props.noInteractive&&r.interactive,this.props.hovered&&r.hovered,this.props.disabled&&r.disabled,this.props.active&&r.active,this.props.selected&&r.selected,r[l]),onClick:this.props.onClick,onMouseOver:this._handleMouseOver,ref:this.props.reference,"data-action-name":this.props.actionName},void 0!==a&&o.createElement("td",null,o.createElement(p.FavoriteButton,{className:r.favourite,isFilled:a,onClick:this.props.onFavouriteClick})),o.createElement("td",{className:i(r.iconCell),"data-icon-cell":!0},this._icon(r)),o.createElement("td",{className:r.contentCell},o.createElement(c,{className:r.content},o.createElement("span",{className:i(r.label,this.props.checked&&r.checked),"data-label":!0},this.props.label),this._toolbox(r),e&&o.createElement("span",{className:r.arrowIcon,dangerouslySetInnerHTML:{__html:g},"data-submenu-arrow":!0}),!e&&t&&!u.CheckMobile.any()&&o.createElement(m.Hint,{className:i(s&&r.invisibleHotkey),text:t}),!e&&!t&&n&&o.createElement(m.Hint,{text:n})))),o.createElement("tr",{className:r.subMenu},o.createElement("td",null,this.props.children)))}_icon(e){if(this.props.checkable){if(this.props.checkboxInput)return o.createElement(c.CheckboxInput,{className:i(e.icon,e.checkboxInput),checked:this.props.checked});if(this.props.checked){const t=!this.props.icon&&!this.props.iconChecked,n=this.props.iconChecked||this.props.icon||b;return o.createElement("span",{className:i(e.icon,t&&e.checkmark),dangerouslySetInnerHTML:{__html:n},"data-icon-checkmark":t})}return this.props.icon?o.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{ +__html:this.props.icon}}):o.createElement("span",{className:e.icon})}return this.props.icon?o.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):null}_toolbox(e){return this.props.toolbox?o.createElement("span",{className:i(e.toolbox,this.props.showToolboxOnHover&&e.showToolboxOnHover),onClick:this._handleClickToolbox,"data-toolbox":!0},this._renderToolboxContent()):null}_renderToolboxContent(){if(this.props.toolbox)switch(this.props.toolbox.type){case v.ToolboxType.Delete:return o.createElement(d.RemoveButton,{onClick:this.props.toolbox.action})}return null}}var w=n(29332),x=n(59064),C=n(51768),k=n(62820);var _=n(14758),S=n(26996),M=n(88797);function y(e){const{size:t="normal"}=e;return o.createElement(E,{size:t,label:o.createElement("div",{className:l()(M.loaderWrap,M[t])},o.createElement(S.Loader,{className:M.loader})),noInteractive:!0,onMouseOver:e.onMouseOver})}class N extends o.PureComponent{constructor(e){super(e),this._itemRef=null,this._menuElementRef=o.createRef(),this._menuRef=null,this._handleClick=e=>{e.isDefaultPrevented()||this.state.disabled||(this._hasSubItems()?this._showSubMenu():(this.state.doNotCloseOnClick||(0,x.globalCloseMenu)(),this.props.action.execute(),this._trackEvent(),this.props.onExecute&&this.props.onExecute(this.props.action)))},this._handleClickToolbox=()=>{(0,x.globalCloseMenu)()},this._handleItemMouseOver=()=>{this._showSubMenu(),this._setCurrentContextValue()},this._handleMenuMouseOver=()=>{this._setCurrentContextValue()},this._showSubMenu=()=>{this.props.onShowSubMenu(this.props.action)},this._calcSubMenuPos=e=>function(e,t,n={x:0,y:10}){if(t){const{left:n,right:o,top:s}=t.getBoundingClientRect(),a=document.documentElement.clientWidth,r={x:n-e,y:s},i={x:o,y:s};return(0,k.isRtl)()?n<=e?i:r:a-o>=e?i:r}return n}(e,this._itemRef),this._updateState=e=>{this.setState(e.getState())},this._setItemRef=e=>{this._itemRef=e},this._handleMenuRef=e=>{this._menuRef=e},this._registerSubmenu=()=>{var e;return null===(e=this.context)||void 0===e?void 0:e.registerSubmenu(this.props.action.id,e=>(0,r.ensureNotNull)(this._itemRef).contains(e)||null!==this._menuElementRef.current&&this._menuElementRef.current.contains(e))},this.state={...this.props.action.getState()}}componentDidMount(){this.props.action.onUpdate().subscribe(this,this._updateState),this.state.subItems.length&&(this._unsubscribe=this._registerSubmenu()),this.props.reference&&(this._itemRef=this.props.reference.current)}componentDidUpdate(e,t){var n,o,s;t.loading!==this.state.loading&&(null===(o=(n=this.props).onRequestUpdate)||void 0===o||o.call(n)),0===t.subItems.length&&this.state.subItems.length>0&&(this._unsubscribe=this._registerSubmenu()),t.subItems.length>0&&0===this.state.subItems.length&&(null===(s=this._unsubscribe)||void 0===s||s.call(this)),t.subItems!==this.state.subItems&&null!==this._menuRef&&this._menuRef.update()}componentWillUnmount(){this.props.action.onUpdate().unsubscribe(this,this._updateState),this._unsubscribe&&this._unsubscribe()}render(){var e,t,n +;const s=null!==(e=this.state.jsxLabel)&&void 0!==e?e:this.state.label,a=(null===(t=this.context)||void 0===t?void 0:t.current)?this.context.current===this.props.action.id:this.props.isSubMenuOpened;return this.state.loading?o.createElement(y,{size:this.state.size}):o.createElement(E,{theme:this.props.theme,reference:null!==(n=this.props.reference)&&void 0!==n?n:this._setItemRef,onClick:this._handleClick,onClickToolbox:this._handleClickToolbox,onMouseOver:this._handleItemMouseOver,hovered:a,hasSubItems:this._hasSubItems(),actionName:this.state.name,checkboxInput:this.props.checkboxInput,selected:this.props.selected,...this.state,label:s},o.createElement(w.ContextMenu,{isOpened:a,items:this.state.subItems,position:this._calcSubMenuPos,menuStatName:this.props.menuStatName,parentStatName:this._getStatName(),menuElementReference:this._menuElementRef,onMouseOver:this.state.subItems.length?this._handleMenuMouseOver:void 0,ref:this._handleMenuRef}))}_setCurrentContextValue(){var e;this.state.subItems.length&&(null===(e=this.context)||void 0===e||e.setCurrent(this.props.action.id))}_hasSubItems(){return this.state.subItems.length>0}_trackEvent(){const e=this._getStatName();(0,C.trackEvent)("ContextMenuClick",this.props.menuStatName||"",e)}_getStatName(){return[this.props.parentStatName,this.state.statName].filter(e=>Boolean(e)).join(".")}}N.contextType=_.SubmenuContext;class I extends o.PureComponent{constructor(e){super(e),this._handleShowSubMenu=e=>{const t=e.getState();this.setState({showSubMenuOf:t.subItems.length?e:void 0})},this.state={}}render(){return o.createElement("table",null,o.createElement("tbody",null,this.props.items.map(e=>this._item(e))))}static getDerivedStateFromProps(e,t){return!e.parentIsOpened&&t.showSubMenuOf?{showSubMenuOf:void 0}:null}_item(e){switch(e.type){case"separator":return o.createElement(a,{key:e.id,hint:e.getHint()});case"action":return o.createElement(N,{key:e.id,action:e,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===e,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName,onRequestUpdate:this.props.onRequestUpdate})}}}},29332:(e,t,n)=>{"use strict";n.d(t,{ContextMenu:()=>_,OverlapContextMenu:()=>S});var o=n(59496),s=n(97754),a=n.n(s),r=n(86431),i=n(27317),l=n(76594),c=n(9481),u=n(8312),h=n(37558),d=n(90692),p=n(76860);function m(e){return o.createElement("li",{className:p.separator})}var v=n(23829),b=n(41590),g=n(59064);function f(e){const{action:t}=e,[n,s]=(0,o.useState)(()=>t.getState()),[a,r]=(0,o.useState)(!1),i=!!n.subItems.length,l=i&&a;return(0,o.useEffect)(()=>{const e=()=>s(t.getState());return t.onUpdate().subscribe(null,e),()=>{t.onUpdate().unsubscribe(null,e)}},[]),o.createElement(v.ContextMenuItem,{...n,onClick:function(e){if(n.disabled||e.defaultPrevented)return;if(i)return void r(!0);n.doNotCloseOnClick||(0,g.globalCloseMenu)();t.execute()},isLoading:n.loading,isHovered:l},l&&o.createElement(b.Drawer,{onClose:c},o.createElement(x,{items:n.subItems,parentAction:t,closeNested:c})));function c(e){e&&e.preventDefault(), +r(!1)}}var E=n(54627),w=n(4301);function x(e){const{items:t,parentAction:n,closeNested:s}=e,a=!Boolean(n)&&t.every(e=>!Boolean("separator"!==e.type&&(e.getState().icon||e.getState().checkable)));return o.createElement(E.EmptyIconsContext.Provider,{value:a},o.createElement("ul",null,n&&o.createElement(o.Fragment,null,o.createElement(v.ContextMenuItem,{label:n.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:w,onClick:s}),o.createElement(m,null)),t.map(e=>{switch(e.type){case"action":return o.createElement(f,{key:e.id,action:e});case"separator":return o.createElement(m,{key:e.id})}})))}const C=o.createContext(null);var k=n(33549);class _ extends o.PureComponent{constructor(e){super(e),this._menuRef=o.createRef(),this._handleRequestUpdate=()=>{this.update()},this._handleClose=()=>{this.props.onClose&&this.props.onClose()},this._handleOutsideClickClose=e=>{const{doNotCloseOn:t,onClose:n}=this.props;!n||void 0!==t&&t.contains(e.target)||n()},this._handleFocusOnOpen=()=>{var e,t;(null===(e=this.props.menuElementReference)||void 0===e?void 0:e.current)&&this.props.takeFocus&&(null===(t=this.props.menuElementReference)||void 0===t||t.current.focus({preventScroll:!0}))},this.state={}}render(){const{isOpened:e,onClose:t,items:n,doNotCloseOn:s,menuStatName:r,parentStatName:p,takeFocus:m,...v}=this.props;return e?o.createElement(h.DrawerManager,null,o.createElement(c.KeyboardDocumentListener,{keyCode:27,eventType:"keyup",handler:this._handleClose}),o.createElement(d.MatchMedia,{rule:"screen and (max-width: 428px)"},t=>this._isDrawer(t)?o.createElement(C.Provider,{value:{type:"drawer"}},o.createElement(b.Drawer,{onClose:this._handleClose,position:"Bottom","data-name":v["data-name"]},o.createElement(x,{items:n}))):o.createElement(C.Provider,{value:{type:"menu"}},o.createElement(l.OutsideEvent,{handler:this._handleOutsideClickClose,mouseDown:!0,touchStart:!0,reference:this.props.menuElementReference},t=>o.createElement(i.Menu,{...v,reference:t,className:a()(k.menu,"context-menu"),onClose:this._handleClose,noMomentumBasedScroll:!0,ref:this._menuRef,tabIndex:m?-1:void 0,onOpen:this._handleFocusOnOpen},o.createElement(u.ActionsTable,{items:n,menuStatName:r,parentStatName:p,parentIsOpened:e,onRequestUpdate:this._handleRequestUpdate})))))):null}update(){this._menuRef.current&&this._menuRef.current.update()}_isDrawer(e){return void 0===this.props.mode?e:"drawer"===this.props.mode}}const S=(0,r.makeOverlapable)(_)},99025:(e,t,n)=>{"use strict";n.d(t,{Hint:()=>i});var o=n(59496),s=n(97754),a=n.n(s),r=n(19119);function i(e){const{text:t="",className:n}=e;return o.createElement("span",{className:a()(r.shortcut,n)},t)}},23829:(e,t,n)=>{"use strict";n.d(t,{ContextMenuItem:()=>m});var o=n(59496),s=n(97754),a=n.n(s),r=n(9745),i=n(26996),l=n(54627),c=n(99025),u=n(86440),h=n(4585),d=n(74471),p=n(61999);function m(e){ +const{isTitle:t,isLoading:n,isHovered:s,active:m,checkable:v,disabled:b,checked:g,icon:f,iconChecked:E,hint:w,subItems:x,label:C,onClick:k,children:_,toolbox:S,jsxLabel:M,size:y="normal"}=e,N=(0,o.useContext)(l.EmptyIconsContext),I=!!x.length;return n?o.createElement("li",{className:a()(p.item,p.loading,p[y])},o.createElement(i.Loader,null)):o.createElement("li",{className:a()(p.item,p.interactive,t&&p.title,b&&p.disabled,s&&p.hovered,m&&p.active,N&&p.emptyIcons,p[y]),onClick:k},o.createElement(r.Icon,{className:a()(p.icon),icon:function(){if(v&&g)return E||f||u;return f}()}),o.createElement("span",{className:a()(p.label)},null!=M?M:C),!!S&&o.createElement(r.Icon,{onClick:function(){S&&S.action()},className:p.remove,icon:d}),!I&&w&&o.createElement(c.Hint,{className:p.shortcut,text:w}),I&&o.createElement(r.Icon,{className:p.nested,icon:h}),_)}},54627:(e,t,n)=>{"use strict";n.d(t,{EmptyIconsContext:()=>o});const o=n(59496).createContext(!1)},9481:(e,t,n)=>{"use strict";n.d(t,{KeyboardDocumentListener:()=>s});var o=n(59496);class s extends o.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>s});var o=n(58095);function s(e){const{children:t,...n}=e;return t((0,o.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>a});var o=n(59496),s=n(65718);function a(e){return class extends o.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const a=o.createElement(e,{...this.props,zIndex:150});return"parent"===n?a:o.createElement(s.Portal,null,a)}}}},49154:e=>{e.exports=''},4301:e=>{e.exports=''},4585:e=>{e.exports=''},51956:e=>{e.exports=''},86440:e=>{e.exports=''},74471:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/650a8fb9d8083fd5887fa14d5a48b917.svg b/charting_library/bundles/650a8fb9d8083fd5887fa14d5a48b917.svg new file mode 100644 index 00000000..85bf6665 --- /dev/null +++ b/charting_library/bundles/650a8fb9d8083fd5887fa14d5a48b917.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6543950df881e52d4ca8007a6013f7d0.svg b/charting_library/bundles/6543950df881e52d4ca8007a6013f7d0.svg new file mode 100644 index 00000000..1d25d71b --- /dev/null +++ b/charting_library/bundles/6543950df881e52d4ca8007a6013f7d0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/65876f64a690a9c40a4f3d84367678ad.svg b/charting_library/bundles/65876f64a690a9c40a4f3d84367678ad.svg new file mode 100644 index 00000000..20d40c86 --- /dev/null +++ b/charting_library/bundles/65876f64a690a9c40a4f3d84367678ad.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6602.a297e70e35cceabe17ef.js b/charting_library/bundles/6602.a297e70e35cceabe17ef.js new file mode 100644 index 00000000..dda8643f --- /dev/null +++ b/charting_library/bundles/6602.a297e70e35cceabe17ef.js @@ -0,0 +1,29 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6602],{68647:(t,e,n)=>{var r,i,s;s="object"==typeof self&&self.self==self&&self||"object"==typeof n.g&&n.g.global==n.g&&n.g,r=[n(25977),n(23127),e],void 0===(i=function(t,e,n){s.Backbone=function(t,e,n,r){var i=t.Backbone,s=[].slice;e.VERSION="1.2.1",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,r){n.each(e,(function(e,i){n[i]&&(t.prototype[i]=function(t,e,r){switch(t){case 1:return function(){return n[e](this[r])};case 2:return function(t){return n[e](this[r],t)};case 3:return function(t,i){return n[e](this[r],t,i)};case 4:return function(t,i,s){return n[e](this[r],t,i,s)};default:return function(){var t=s.call(arguments);return t.unshift(this[r]),n[e].apply(n,t)}}}(e,i,r))}))},o=e.Events={},u=/\s+/,c=function(t,e,r,i,s){var a,o=0;if(r&&"object"==typeof r){void 0!==i&&"context"in s&&void 0===s.context&&(s.context=i);for(a=n.keys(r);o1&&~~(t/10)%10!=1}function i(t,e,n){var i=t+" ";switch(n){case"m":return e?"minuta":"minutę";case"mm":return i+(r(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return i+(r(t)?"godziny":"godzin");case"MM":return i+(r(t)?"miesiące":"miesięcy");case"yy":return i+(r(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,r){return""===r?"("+n[t.month()]+"|"+e[t.month()]+")":/D MMMM/.test(r)?n[t.month()]:e[t.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(24951))},44283:function(t,e,n){!function(t){"use strict";t.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(24951))},39171:function(t,e,n){!function(t){"use strict";t.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm", +LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(24951))},57023:function(t,e,n){!function(t){"use strict";function e(t,e,n){var r,i;return"m"===n?e?"минута":"минуту":t+" "+(r=+t,i={mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}t.defineLocale("ru",{months:function(t,e){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]},monthsShort:function(t,e){return{nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]},weekdays:function(t,e){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(e)?"accusative":"nominative"][t.day()]},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:e,mm:e,h:"час",hh:e,d:"день",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:7}})}(n(24951)) +},52853:function(t,e,n){!function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(t){if(0===t)return t+"'ıncı";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n(24951))},14105:(t,e,n)=>{var r={"./en-gb":62110,"./en-gb.js":62110,"./es":8977,"./es.js":8977,"./it":55229,"./it.js":55229,"./ja":50124,"./ja.js":50124,"./ko":89568,"./ko.js":89568,"./pl":30684,"./pl.js":30684,"./pt":39171,"./pt-br":44283,"./pt-br.js":44283,"./pt.js":39171,"./ru":57023,"./ru.js":57023,"./tr":52853,"./tr.js":52853};function i(t){var e=s(t);return n(e)}function s(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=s,t.exports=i,i.id=14105},24951:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e;function r(){return e.apply(null,arguments)}function i(t){return"[object Array]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,n,r){return Et(t,e,n,r,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function l(t){if(null==t._isValid){var e=c(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function h(t){var e=u(NaN);return null!=t?o(c(e),t):c(e).userInvalidated=!0,e}var d=r.momentProperties=[];function f(t,e){var n,r,i +;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=c(e)),void 0!==e._locale&&(t._locale=e._locale),d.length>0)for(n in d)void 0!==(i=e[r=d[n]])&&(t[r]=i);return t}var _=!1;function m(t){f(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function p(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t):Math.floor(t)}function v(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function g(t,e,n){var r,i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(r=0;r0;){if(r=b(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&g(i,n,!0)>=e-1)break;e--}s++}return null}(t)}var T={};function x(t,e){var n=t.toLowerCase();T[n]=T[n+"s"]=T[e]=t}function O(t){return"string"==typeof t?T[t]||T[t.toLowerCase()]:void 0}function H(t){var e,n,r={};for(n in t)a(t,n)&&(e=O(n))&&(r[e]=t[n]);return r}function A(t,e){return function(n){return null!=n?(E(this,t,n),r.updateOffset(this,e),this):F(this,t)}}function F(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function E(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function P(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if("function"==typeof this[t=O(t)])return this[t](e);return this}function j(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},I={};function U(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(I[t]=i),e&&(I[e[0]]=function(){return j(i.apply(this,arguments),e[1],e[2])}),n&&(I[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(e=G(e,t.localeData()),z[e]=z[e]||function(t){var e,n,r,i=t.match(W);for(e=0,n=i.length;e=0&&C.test(t);)t=t.replace(C,r),C.lastIndex=0,n-=1;return t}var J=/\d/,$=/\d\d/,R=/\d{3}/,q=/\d{4}/,B=/[+-]?\d{6}/,V=/\d\d?/,Z=/\d{1,3}/,Q=/\d{1,4}/,K=/[+-]?\d{1,6}/,X=/\d+/,tt=/[+-]?\d+/,et=/Z|[+-]\d\d:?\d\d/gi,nt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,rt={};function it(t,e,n){var r;rt[t]="function"==typeof(r=e)&&"[object Function]"===Object.prototype.toString.call(r)?e:function(t){return t&&n?n:e}}function st(t,e){return a(rt,t)?rt[t](e._strict,e._locale):new RegExp(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}var at={};function ot(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=v(t)}),n=0;n11?1:n[2]<1||n[2]>lt(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,c(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),c(t).overflow=e),t}function pt(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function yt(t,e){var n=!0;return o((function(){return n&&(pt(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)}),e)}var vt={};r.suppressDeprecationWarnings=!1 +;var gt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],wt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Yt=/^\/?Date\((\-?\d+)/i;function Dt(t){var e,n,r=t._i,i=gt.exec(r);if(i){for(c(t).iso=!0,e=0,n=Mt.length;e68?1900:2e3)};var Tt=A("FullYear",!1);function xt(t,e,n){var r,i=n-e,s=n-t.day();return s>i&&(s-=7),s0?t:t-1,dayOfYear:s>0?s:kt(t-1)+s}}(n,r,i,a,s),t._a[0]=o.year,t._dayOfYear=o.dayOfYear}(t),t._dayOfYear&&(i=Ot(t._a[0],r[0]),t._dayOfYear>kt(i)&&(c(t)._overflowDayOfYear=!0),n=St(i,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?St:bt).apply(null,s), +null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24)}}function At(t){if(t._f!==r.ISO_8601){t._a=[],c(t).empty=!0;var e,n,i,s,a,o=""+t._i,u=o.length,l=0;for(i=G(t._f,t._locale).match(W)||[],e=0;e0&&c(t).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),I[s]?(n?c(t).empty=!1:c(t).unusedTokens.push(s),ct(s,n,t)):t._strict&&!n&&c(t).unusedTokens.push(s);c(t).charsLeftOver=u-l,o.length>0&&c(t).unusedInput.push(o),!0===c(t).bigHour&&t._a[3]<=12&&t._a[3]>0&&(c(t).bigHour=void 0),t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),Ht(t),mt(t)}else Dt(t)}function Ft(t){var e=t._i,n=t._f;return t._locale=t._locale||L(t._l),null===e||void 0===n&&""===e?h({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),p(e)?new m(mt(e)):(i(n)?function(t){var e,n,r,i,s;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;ithis?this:t}));function Ct(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Pt();for(n=e[0],r=1;r+(t=p(t)?t:Pt(t)):(p(t)?+t:+Pt(t))<+this.clone().startOf(e)},Me.isBefore=function(t,e){var n;return"millisecond"===(e=O(void 0!==e?e:"millisecond"))?+this<+(t=p(t)?t:Pt(t)):(n=p(t)?+t:+Pt(t),+this.clone().endOf(e)this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Me.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var t={};if(f(t,this),(t=Ft(t))._a){ +var e=t._isUTC?u(t._a):Pt(t._a);this._isDSTShifted=this.isValid()&&g(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},Me.isLocal=function(){return!this._isUTC},Me.isUtcOffset=function(){return this._isUTC},Me.isUtc=Rt,Me.isUTC=Rt,Me.zoneAbbr=function(){return this._isUTC?"UTC":""},Me.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Me.dates=yt("dates accessor is deprecated. Use date instead.",ue),Me.months=yt("months accessor is deprecated. Use month instead",_t),Me.years=yt("years accessor is deprecated. Use year instead",Tt),Me.zone=yt("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}));var we=Me;function Ye(t){return t}var De=M.prototype;function be(t,e,n,r){var i=L(),s=u().set(r,e);return i[n](s,t)}function Se(t,e,n,r,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return be(t,e,n,i);var s,a=[];for(s=0;s0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},De.set=function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},De.months=function(t){return this._months[t.month()]},De._months=ht,De.monthsShort=function(t){return this._monthsShort[t.month()]},De._monthsShort=dt,De.monthsParse=function(t,e,n){var r,i,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")), +n||this._monthsParse[r]||(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},De.week=function(t){return xt(t,this._week.dow,this._week.doy).week},De._week={dow:0,doy:6},De.firstDayOfYear=function(){return this._week.doy},De.firstDayOfWeek=function(){return this._week.dow},De.weekdays=function(t){return this._weekdays[t.day()]},De._weekdays=ce,De.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},De._weekdaysMin=he,De.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},De._weekdaysShort=le,De.weekdaysParse=function(t){var e,n,r;for(this._weekdaysParse=this._weekdaysParse||[],e=0;e<7;e++)if(this._weekdaysParse[e]||(n=Pt([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},De.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},De._meridiemParse=/[ap]\.?m?\.?/i,De.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},S("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===v(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=yt("moment.lang is deprecated. Use moment.locale instead.",S),r.langData=yt("moment.langData is deprecated. Use moment.localeData instead.",L);var ke=Math.abs;function Le(t,e,n,r){var i=Vt(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Te(t){return t<0?Math.floor(t):Math.ceil(t)}function xe(t){return 4800*t/146097}function Oe(t){return 146097*t/4800}function He(t){return function(){return this.as(t)}}var Ae=He("ms"),Fe=He("s"),Ee=He("m"),Pe=He("h"),je=He("d"),We=He("w"),Ce=He("M"),ze=He("y");function Ie(t){return function(){return this._data[t]}}var Ue=Ie("milliseconds"),Ne=Ie("seconds"),Ge=Ie("minutes"),Je=Ie("hours"),$e=Ie("days"),Re=Ie("months"),qe=Ie("years"),Be=Math.round,Ve={s:45,m:45,h:22,d:26,M:11};function Ze(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}var Qe=Math.abs;function Ke(){var t,e,n=Qe(this._milliseconds)/1e3,r=Qe(this._days),i=Qe(this._months);t=y(n/60),e=y(t/60),n%=60,t%=60;var s=y(i/12),a=i%=12,o=r,u=e,c=t,l=n,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(o?o+"D":"")+(u||c||l?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(l?l+"S":""):"P0D"}var Xe=zt.prototype;return Xe.abs=function(){var t=this._data;return this._milliseconds=ke(this._milliseconds),this._days=ke(this._days),this._months=ke(this._months),t.milliseconds=ke(t.milliseconds),t.seconds=ke(t.seconds),t.minutes=ke(t.minutes),t.hours=ke(t.hours),t.months=ke(t.months),t.years=ke(t.years),this},Xe.add=function(t,e){return Le(this,t,e,1)},Xe.subtract=function(t,e){return Le(this,t,e,-1)},Xe.as=function(t){var e,n,r=this._milliseconds;if("month"===(t=O(t))||"year"===t)return e=this._days+r/864e5, +n=this._months+xe(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Oe(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Xe.asMilliseconds=Ae,Xe.asSeconds=Fe,Xe.asMinutes=Ee,Xe.asHours=Pe,Xe.asDays=je,Xe.asWeeks=We,Xe.asMonths=Ce,Xe.asYears=ze,Xe.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*v(this._months/12)},Xe._bubble=function(){var t,e,n,r,i,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Te(Oe(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=y(s/1e3),u.seconds=t%60,e=y(t/60),u.minutes=e%60,n=y(e/60),u.hours=n%24,a+=y(n/24),i=y(xe(a)),o+=i,a-=Te(Oe(i)),r=y(o/12),o%=12,u.days=a,u.months=o,u.years=r,this},Xe.get=function(t){return this[(t=O(t))+"s"]()},Xe.milliseconds=Ue,Xe.seconds=Ne,Xe.minutes=Ge,Xe.hours=Je,Xe.days=$e,Xe.weeks=function(){return y(this.days()/7)},Xe.months=Re,Xe.years=qe,Xe.humanize=function(t){var e=this.localeData(),n=function(t,e,n){var r=Vt(t).abs(),i=Be(r.as("s")),s=Be(r.as("m")),a=Be(r.as("h")),o=Be(r.as("d")),u=Be(r.as("M")),c=Be(r.as("y")),l=i0,l[4]=n,Ze.apply(null,l)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Xe.toISOString=Ke,Xe.toString=Ke,Xe.toJSON=Ke,Xe.locale=re,Xe.localeData=se,Xe.toIsoString=yt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ke),Xe.lang=ie,U("X",0,0,"unix"),U("x",0,0,"valueOf"),it("x",tt),it("X",/[+-]?\d+(\.\d{1,3})?/),ot("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),ot("x",(function(t,e,n){n._d=new Date(v(t))})),r.version="2.10.6",e=Pt,r.fn=we,r.min=function(){var t=[].slice.call(arguments,0);return Ct("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Ct("isAfter",t)},r.utc=u,r.unix=function(t){return Pt(1e3*t)},r.months=function(t,e){return Se(t,e,"months",12,"month")},r.isDate=s,r.locale=S,r.invalid=h,r.duration=Vt,r.isMoment=p,r.weekdays=function(t,e){return Se(t,e,"weekdays",7,"day")},r.parseZone=function(){return Pt.apply(null,arguments).parseZone()},r.localeData=L,r.isDuration=It,r.monthsShort=function(t,e){return Se(t,e,"monthsShort",12,"month")},r.weekdaysMin=function(t,e){return Se(t,e,"weekdaysMin",7,"day")},r.defineLocale=k,r.weekdaysShort=function(t,e){return Se(t,e,"weekdaysShort",7,"day")},r.normalizeUnits=O,r.relativeTimeThreshold=function(t,e){return void 0!==Ve[t]&&(void 0===e?Ve[t]:(Ve[t]=e,!0))},r}()},25977:function(t,e){var n;(function(){var r=this,i=r._,s=Array.prototype,a=Object.prototype,o=Function.prototype,u=s.push,c=s.slice,l=a.toString,h=a.hasOwnProperty,d=Array.isArray,f=Object.keys,_=o.bind,m=Object.create,p=function(){},y=function(t){ +return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};t.exports&&(e=t.exports=y),e._=y,y.VERSION="1.8.3";var v=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,s){return t.call(e,n,r,i,s)}}return function(){return t.apply(e,arguments)}},g=function(t,e,n){return null==t?y.identity:y.isFunction(t)?v(t,e,n):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return g(t,e,1/0)};var M=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i=0&&e<=D};function k(t){function e(e,n,r,i,s,a){for(;s>=0&&s0?0:o-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,o)}}y.each=y.forEach=function(t,e,n){var r,i;if(e=v(e,n),S(t))for(r=0,i=t.length;r=0},y.invoke=function(t,e){var n=c.call(arguments,2),r=y.isFunction(e);return y.map(t,(function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)}))},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,n){var r,i,s=-1/0,a=-1/0;if(null==e&&null!=t)for(var o=0,u=(t=S(t)?t:y.values(t)).length;os&&(s=r);else e=g(e,n),y.each(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&s===-1/0)&&(s=t,a=i)}));return s},y.min=function(t,e,n){var r,i,s=1/0,a=1/0 +;if(null==e&&null!=t)for(var o=0,u=(t=S(t)?t:y.values(t)).length;or||void 0===n)return 1;if(n0?0:i-1;s>=0&&s0?a=s>=0?s:Math.max(s+o,a):o=s>=0?Math.min(s+1,o):s+o+1;else if(n&&s&&o)return r[s=n(r,i)]===i?s:-1;if(i!=i)return(s=e(c.call(r,a,o),y.isNaN))>=0?s+a:-1;for(s=t>0?a:o-1;s>=0&&se?(a&&(clearTimeout(a),a=null),o=c,s=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),s}},y.debounce=function(t,e,n){var r,i,s,a,o,u=function(){var c=y.now()-a;c=0?r=setTimeout(u,e-c):(r=null,n||(o=t.apply(s,i),r||(s=i=null)))};return function(){s=this,i=arguments,a=y.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(o=t.apply(s,i),s=i=null),o}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},y.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},y.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},y.once=y.partial(y.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function E(t,e){var n=F.length,r=t.constructor,i=y.isFunction(r)&&r.prototype||a,s="constructor" +;for(y.has(t,s)&&!y.contains(e,s)&&e.push(s);n--;)(s=F[n])in t&&t[s]!==i[s]&&!y.contains(e,s)&&e.push(s)}y.keys=function(t){if(!y.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)y.has(t,n)&&e.push(n);return A&&E(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var n in t)e.push(n);return A&&E(t,e),e},y.values=function(t){for(var e=y.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},W=y.invert(j),C=function(t){var e=function(e){return t[e]},n="(?:"+y.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};y.escape=C(j),y.unescape=C(W),y.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),y.isFunction(r)?r.call(t):r};var z=0;y.uniqueId=function(t){var e=++z+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var I=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\u2028|\u2029/g,G=function(t){return"\\"+U[t]};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var r=RegExp([(e.escape||I).source,(e.interpolate||I).source,(e.evaluate||I).source].join("|")+"|$","g"),i=0,s="__p+='";t.replace(r,(function(e,n,r,a,o){return s+=t.slice(i,o).replace(N,G),i=o+e.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(s+="';\n"+a+"\n__p+='"),e})),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var a=new Function(e.variable||"obj","_",s)}catch(t){throw t.source=s,t}var o=function(t){return a.call(this,t,y)},u=e.variable||"obj";return o.source="function("+u+"){\n"+s+"}",o},y.chain=function(t){var e=y(t);return e._chain=!0,e};var J=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),(function(e){var n=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),J(this,n.apply(y,t))}}))},y.mixin(y), +y.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=s[t];y.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],J(this,n)}})),y.each(["concat","join","slice"],(function(t){var e=s[t];y.prototype[t]=function(){return J(this,e.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},void 0===(n=function(){return y}.apply(e,[]))||(t.exports=n)}).call(this)}}]); \ No newline at end of file diff --git a/charting_library/bundles/66b0098c00f242056c72b05aa3796de9.svg b/charting_library/bundles/66b0098c00f242056c72b05aa3796de9.svg new file mode 100644 index 00000000..adff78d9 --- /dev/null +++ b/charting_library/bundles/66b0098c00f242056c72b05aa3796de9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6708.c5991a4180881ef8eaec.css b/charting_library/bundles/6708.c5991a4180881ef8eaec.css new file mode 100644 index 00000000..8ecb2c84 --- /dev/null +++ b/charting_library/bundles/6708.c5991a4180881ef8eaec.css @@ -0,0 +1 @@ +.sb-inner-shadow{background:#fff;bottom:-10px;box-shadow:0 0 5px #00000026;height:10px;pointer-events:none;position:absolute;transform:translateY(0);transition:opacity .11666667s ease,transform .11666667s ease;width:100%;z-index:5}html.theme-dark .sb-inner-shadow{background:#1e222d}.sb-inner-shadow.top{box-shadow:0 0 5px #00000026;top:-10px}.sb-inner-shadow.i-invisible{transform:translateY(5px)}.sb-inner-shadow.i-invisible.top{transform:translateY(-5px)}.sb-inner-shadow.i-invisible{opacity:0}.sb-scrollbar{opacity:0;position:absolute!important;right:1px;top:73px;transition:opacity .3s;width:7px;z-index:1}.sb-scrollbar.active,.sb-scrollbar.active-always{opacity:1}.sb-scrollbar__content-wrapper--scroll-inited{position:relative}.sb-scrollbar__content--scroll-inited{position:absolute}.sb-scrollbar-wrap{height:100%;position:absolute;right:1px;top:0;width:6px;z-index:1}.sb-scrollbar-wrap .sb-scrollbar{right:0}.sb-scrollbar-body{background:#d1d4dc;border:0;width:6px}html.theme-dark .sb-scrollbar-body{background:#50535e}.gray .sb-scrollbar-body{background:#75757a;border-color:#75757a;border-radius:3px}.sb-scrollbar-bottom,.sb-scrollbar-top{display:none}.active-always.gray,.gray{opacity:.5}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd{-webkit-overflow-scrolling:touch;overflow-y:auto}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar{height:5px;width:5px}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/6708.c5991a4180881ef8eaec.rtl.css b/charting_library/bundles/6708.c5991a4180881ef8eaec.rtl.css new file mode 100644 index 00000000..dbc16511 --- /dev/null +++ b/charting_library/bundles/6708.c5991a4180881ef8eaec.rtl.css @@ -0,0 +1 @@ +.sb-inner-shadow{background:#fff;bottom:-10px;box-shadow:0 0 5px #00000026;height:10px;pointer-events:none;position:absolute;transform:translateY(0);transition:opacity .11666667s ease,transform .11666667s ease;width:100%;z-index:5}html.theme-dark .sb-inner-shadow{background:#1e222d}.sb-inner-shadow.top{box-shadow:0 0 5px #00000026;top:-10px}.sb-inner-shadow.i-invisible{transform:translateY(5px)}.sb-inner-shadow.i-invisible.top{transform:translateY(-5px)}.sb-inner-shadow.i-invisible{opacity:0}.sb-scrollbar{left:1px;opacity:0;position:absolute!important;top:73px;transition:opacity .3s;width:7px;z-index:1}.sb-scrollbar.active,.sb-scrollbar.active-always{opacity:1}.sb-scrollbar__content-wrapper--scroll-inited{position:relative}.sb-scrollbar__content--scroll-inited{position:absolute}.sb-scrollbar-wrap{height:100%;left:1px;position:absolute;top:0;width:6px;z-index:1}.sb-scrollbar-wrap .sb-scrollbar{left:0}.sb-scrollbar-body{background:#d1d4dc;border:0;width:6px}html.theme-dark .sb-scrollbar-body{background:#50535e}.gray .sb-scrollbar-body{background:#75757a;border-color:#75757a;border-radius:3px}.sb-scrollbar-bottom,.sb-scrollbar-top{display:none}.active-always.gray,.gray{opacity:.5}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd{-webkit-overflow-scrolling:touch;overflow-y:auto}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar{height:5px;width:5px}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrapper-BaEDTGCd.touch-BaEDTGCd.wrapper-BaEDTGCd.touch-BaEDTGCd::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/673445ed0114e00b2249801cf1fa2810.webp b/charting_library/bundles/673445ed0114e00b2249801cf1fa2810.webp new file mode 100644 index 00000000..b7e26422 Binary files /dev/null and b/charting_library/bundles/673445ed0114e00b2249801cf1fa2810.webp differ diff --git a/charting_library/bundles/6750.9ee7b735c78b915db6f7.css b/charting_library/bundles/6750.9ee7b735c78b915db6f7.css new file mode 100644 index 00000000..e208479c --- /dev/null +++ b/charting_library/bundles/6750.9ee7b735c78b915db6f7.css @@ -0,0 +1 @@ +.radio-vpA3AYsc{-webkit-tap-highlight-color:transparent;align-items:center;cursor:default;display:inline-flex;font-size:14px;font-stretch:normal;font-style:normal;font-weight:400;letter-spacing:normal;line-height:normal;position:relative;-webkit-user-select:none;user-select:none}@media (any-hover:hover){.radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#a3a6af}html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#5d606b}.radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#1e53e5}}.radio-vpA3AYsc.reverse-vpA3AYsc{flex-direction:row-reverse}.radio-vpA3AYsc.reverse-vpA3AYsc .label-vpA3AYsc{margin-left:0;margin-right:8px}.radio-vpA3AYsc .wrapper-vpA3AYsc{display:inline-block;flex-shrink:0;height:18px;position:relative;width:18px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc{display:inline-block;height:100%;position:relative;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{background-color:initial;border:1px solid #b2b5be;border-radius:50%;box-sizing:border-box;content:"";height:100%;position:absolute;transition:border-color .35s ease;width:100%}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{border:1px solid #50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:after{border:2px solid;border-color:#2962ffcc;border-radius:50%;box-sizing:border-box;content:"";height:26px;left:-4px;opacity:0;position:absolute;top:-4px;transform:scale(.69231);width:26px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc.noOutline-vpA3AYsc:after{content:none}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc{cursor:inherit;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before{border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#fff;border-color:#2962ff;border-width:6px}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#d1d4dc;border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus-visible+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus:not(:focus-visible)+.box-vpA3AYsc:after{opacity:0;transform:scale(.69231)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#2a2e39;border-color:#50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#50535e;border-color:#2a2e39}.radio-vpA3AYsc .label-vpA3AYsc{color:#000;margin-left:8px;min-width:0}html.theme-dark .radio-vpA3AYsc .label-vpA3AYsc{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/6750.9ee7b735c78b915db6f7.rtl.css b/charting_library/bundles/6750.9ee7b735c78b915db6f7.rtl.css new file mode 100644 index 00000000..6c71caf1 --- /dev/null +++ b/charting_library/bundles/6750.9ee7b735c78b915db6f7.rtl.css @@ -0,0 +1 @@ +.radio-vpA3AYsc{-webkit-tap-highlight-color:transparent;align-items:center;cursor:default;display:inline-flex;font-size:14px;font-stretch:normal;font-style:normal;font-weight:400;letter-spacing:normal;line-height:normal;position:relative;-webkit-user-select:none;user-select:none}@media (any-hover:hover){.radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#a3a6af}html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#5d606b}.radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc:hover .input-vpA3AYsc:checked:not(:focus):not(:disabled)+.box-vpA3AYsc:before{border-color:#1e53e5}}.radio-vpA3AYsc.reverse-vpA3AYsc{flex-direction:row-reverse}.radio-vpA3AYsc.reverse-vpA3AYsc .label-vpA3AYsc{margin-left:8px;margin-right:0}.radio-vpA3AYsc .wrapper-vpA3AYsc{display:inline-block;flex-shrink:0;height:18px;position:relative;width:18px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc{display:inline-block;height:100%;position:relative;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{background-color:initial;border:1px solid #b2b5be;border-radius:50%;box-sizing:border-box;content:"";height:100%;position:absolute;transition:border-color .35s ease;width:100%}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:before{border:1px solid #50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc:after{border:2px solid;border-color:#2962ffcc;border-radius:50%;box-sizing:border-box;content:"";height:26px;opacity:0;position:absolute;right:-4px;top:-4px;transform:scale(.69231);width:26px}.radio-vpA3AYsc .wrapper-vpA3AYsc .box-vpA3AYsc.noOutline-vpA3AYsc:after{content:none}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc{cursor:inherit;height:100%;margin:0;opacity:0;padding:0;position:absolute;right:0;top:0;width:100%}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before,html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:active:not(:disabled)+.box-vpA3AYsc:before{border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#fff;border-color:#2962ff;border-width:6px}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked+.box-vpA3AYsc:before{background-color:#d1d4dc;border-color:#2962ff}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus-visible+.box-vpA3AYsc:after{opacity:1;transform:scale(1)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:focus:not(:focus-visible)+.box-vpA3AYsc:after{opacity:0;transform:scale(.69231)}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:disabled+.box-vpA3AYsc:before{background-color:#2a2e39;border-color:#50535e}.radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-vpA3AYsc .wrapper-vpA3AYsc .input-vpA3AYsc:checked:disabled+.box-vpA3AYsc:before{background-color:#50535e;border-color:#2a2e39}.radio-vpA3AYsc .label-vpA3AYsc{color:#000;margin-right:8px;min-width:0}html.theme-dark .radio-vpA3AYsc .label-vpA3AYsc{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/6767.4ce0a318e0eb8861d505.css b/charting_library/bundles/6767.4ce0a318e0eb8861d505.css new file mode 100644 index 00000000..86ddc34e --- /dev/null +++ b/charting_library/bundles/6767.4ce0a318e0eb8861d505.css @@ -0,0 +1 @@ +.container-PxtBx6dp{align-items:flex-start;background:#fff;border:1px solid;border-radius:4px;color:#131722;display:flex;font-size:13px;font-style:normal;font-weight:400;line-height:19px;padding:11px 12px}html.theme-dark .container-PxtBx6dp{background:#1e222d;color:#d1d4dc}.container-PxtBx6dp.container-danger-PxtBx6dp{border-color:#f23645}.container-PxtBx6dp.container-danger-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-danger-PxtBx6dp .icon-PxtBx6dp{color:#f23645}.container-PxtBx6dp.container-warning-PxtBx6dp{border-color:#ff9800}.container-PxtBx6dp.container-warning-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-warning-PxtBx6dp .icon-PxtBx6dp{color:#ff9800}.container-PxtBx6dp.container-success-PxtBx6dp{border-color:#089981}.container-PxtBx6dp.container-success-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-success-PxtBx6dp .icon-PxtBx6dp{color:#089981}.container-PxtBx6dp.container-default-PxtBx6dp{background-color:#f0f3fa;border-color:#f0f3fa}html.theme-dark .container-PxtBx6dp.container-default-PxtBx6dp{background-color:#2a2e39;border-color:#2a2e39}.container-PxtBx6dp.container-default-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-default-PxtBx6dp .icon-PxtBx6dp{color:#787b86}.container-PxtBx6dp .icon-PxtBx6dp{display:flex;margin-right:8px}.container-PxtBx6dp .text-wrap-PxtBx6dp{align-self:center;margin-right:4px}.container-PxtBx6dp .header-PxtBx6dp{font-weight:700}.close-button-PxtBx6dp{flex-shrink:0;position:static} \ No newline at end of file diff --git a/charting_library/bundles/6767.4ce0a318e0eb8861d505.rtl.css b/charting_library/bundles/6767.4ce0a318e0eb8861d505.rtl.css new file mode 100644 index 00000000..e4e4929c --- /dev/null +++ b/charting_library/bundles/6767.4ce0a318e0eb8861d505.rtl.css @@ -0,0 +1 @@ +.container-PxtBx6dp{align-items:flex-start;background:#fff;border:1px solid;border-radius:4px;color:#131722;display:flex;font-size:13px;font-style:normal;font-weight:400;line-height:19px;padding:11px 12px}html.theme-dark .container-PxtBx6dp{background:#1e222d;color:#d1d4dc}.container-PxtBx6dp.container-danger-PxtBx6dp{border-color:#f23645}.container-PxtBx6dp.container-danger-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-danger-PxtBx6dp .icon-PxtBx6dp{color:#f23645}.container-PxtBx6dp.container-warning-PxtBx6dp{border-color:#ff9800}.container-PxtBx6dp.container-warning-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-warning-PxtBx6dp .icon-PxtBx6dp{color:#ff9800}.container-PxtBx6dp.container-success-PxtBx6dp{border-color:#089981}.container-PxtBx6dp.container-success-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-success-PxtBx6dp .icon-PxtBx6dp{color:#089981}.container-PxtBx6dp.container-default-PxtBx6dp{background-color:#f0f3fa;border-color:#f0f3fa}html.theme-dark .container-PxtBx6dp.container-default-PxtBx6dp{background-color:#2a2e39;border-color:#2a2e39}.container-PxtBx6dp.container-default-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-default-PxtBx6dp .icon-PxtBx6dp{color:#787b86}.container-PxtBx6dp .icon-PxtBx6dp{display:flex;margin-left:8px}.container-PxtBx6dp .text-wrap-PxtBx6dp{align-self:center;margin-left:4px}.container-PxtBx6dp .header-PxtBx6dp{font-weight:700}.close-button-PxtBx6dp{flex-shrink:0;position:static} \ No newline at end of file diff --git a/charting_library/bundles/677ba99bfad6904fb5ff8b117e32715d.svg b/charting_library/bundles/677ba99bfad6904fb5ff8b117e32715d.svg new file mode 100644 index 00000000..a3842bce --- /dev/null +++ b/charting_library/bundles/677ba99bfad6904fb5ff8b117e32715d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/67ffddaaa5ddf676068d1d3f2fb47029.svg b/charting_library/bundles/67ffddaaa5ddf676068d1d3f2fb47029.svg new file mode 100644 index 00000000..eb45a020 --- /dev/null +++ b/charting_library/bundles/67ffddaaa5ddf676068d1d3f2fb47029.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6895.5f890042edec19c4b9d3.css b/charting_library/bundles/6895.5f890042edec19c4b9d3.css new file mode 100644 index 00000000..020ecc92 --- /dev/null +++ b/charting_library/bundles/6895.5f890042edec19c4b9d3.css @@ -0,0 +1 @@ +.container-64c268VA{bottom:30px;display:flex;justify-content:center;left:4px;pointer-events:none;position:absolute;right:4px}.container-64c268VA.bottomPadding-64c268VA{bottom:70px}.centerElement-64c268VA{pointer-events:auto;z-index:1}.notice-64c268VA{opacity:0;transform:translateY(10px);transition:transform .2s ease-in-out,opacity .2s ease-in-out}.notice-showed-64c268VA{opacity:1;transform:translateY(0)} \ No newline at end of file diff --git a/charting_library/bundles/6895.5f890042edec19c4b9d3.rtl.css b/charting_library/bundles/6895.5f890042edec19c4b9d3.rtl.css new file mode 100644 index 00000000..020ecc92 --- /dev/null +++ b/charting_library/bundles/6895.5f890042edec19c4b9d3.rtl.css @@ -0,0 +1 @@ +.container-64c268VA{bottom:30px;display:flex;justify-content:center;left:4px;pointer-events:none;position:absolute;right:4px}.container-64c268VA.bottomPadding-64c268VA{bottom:70px}.centerElement-64c268VA{pointer-events:auto;z-index:1}.notice-64c268VA{opacity:0;transform:translateY(10px);transition:transform .2s ease-in-out,opacity .2s ease-in-out}.notice-showed-64c268VA{opacity:1;transform:translateY(0)} \ No newline at end of file diff --git a/charting_library/bundles/696572b26ab674046f403ec18f2b5e5d.svg b/charting_library/bundles/696572b26ab674046f403ec18f2b5e5d.svg new file mode 100644 index 00000000..2d8fbc1e --- /dev/null +++ b/charting_library/bundles/696572b26ab674046f403ec18f2b5e5d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6973.1014b5c98b0834d66915.js b/charting_library/bundles/6973.1014b5c98b0834d66915.js new file mode 100644 index 00000000..1958e76d --- /dev/null +++ b/charting_library/bundles/6973.1014b5c98b0834d66915.js @@ -0,0 +1,2 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6973],{33289:e=>{e.exports={item:"item-jkLmJiis",flag:"flag-jkLmJiis",text:"text-jkLmJiis",mobile:"mobile-jkLmJiis",selected:"selected-jkLmJiis"}},64069:e=>{e.exports={"country-list":"country-list-I1oZlw8z","list-contain":"list-contain-I1oZlw8z",list:"list-I1oZlw8z","one-column":"one-column-I1oZlw8z","country-list-wrapper":"country-list-wrapper-I1oZlw8z"}},71410:e=>{e.exports={"country-search":"country-search-Kmw4TESj",search:"search-Kmw4TESj",input:"input-Kmw4TESj","magnifier-icon":"magnifier-icon-Kmw4TESj","reset-icon":"reset-icon-Kmw4TESj"}},56973:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CountryList:()=>x});var l=n(59496),o=n(97754),r=n(4889),c=n(74664),s=n(76594),i=n(90692),a=n(28353),u=n(47201),m=n(9745),d=n(78274),h=n(31261),p=n(55170),f=n(16539),g=n(71410);function v(e){const[t,n]=(0,l.useState)(""),{countries:o}=e,r=(0,u.createSafeMulticastEventHandler)((function(t){const n=t.currentTarget.value,l=o.filter(e=>e.name.trim().toLowerCase().startsWith(n.trim().toLowerCase()));n.length>0&&e.debounceOnScroll();l.length>0?e.searchCountries(l):e.searchCountries(o)}),e=>n(e.currentTarget.value)),c=l.createElement(d.StartSlot,null,l.createElement(m.Icon,{icon:p,className:g["magnifier-icon"]})),s=l.createElement(d.EndSlot,null,l.createElement(m.Icon,{icon:f,className:g["reset-icon"],onClick:function(){t.length>0?(n(""),e.searchCountries(o)):e.onClose()}}));return l.createElement("div",{className:g["country-search"]},l.createElement(h.InputControl,{value:t,type:"text",className:g.search,inputClassName:g.input,placeholder:a.t("Search Country"),onChange:r,reference:function(e){e&&e.focus()},startSlot:c,endSlot:s,highlight:!1,stretch:!0}))}var w=n(33289);function E(e){const{country:t,isSelected:n,isMobile:r,onSelected:c}=e;return l.createElement("div",{className:o(w.item,r&&w.mobile,n&&w.selected),onClick:()=>c(t)},l.createElement("img",{alt:"",src:t.iconUrl,className:w.flag}),l.createElement("span",{className:w.text},t.name))}function C({countries:e,selectedCountry:t,isMobile:n,onSelected:o}){return e.map(e=>l.createElement(E,{key:e.code,country:e,isSelected:Boolean(t&&t.code===e.code),isMobile:n,onSelected:o}))}var S=n(81e3),y=n(62820),k=n(64069);const N={horizontal:(0,y.isRtl)()?"right":"left",vertical:"top"},b={horizontal:(0,y.isRtl)()?"right":"left",vertical:"top"};function x(e){const{selectedCountry:t,className:n,attachment:a=N,targetAttachment:u=b}=e,[m,d]=(0,l.useState)(e.countries),[h,p]=(0,l.useState)(!1),f=(0,l.useRef)(null),g=(0,r.default)((function(){var e;null===(e=f.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),400),w=o({[k["one-column"]]:h}),E=o(k.list,w);return l.createElement(i.MatchMedia,{rule:`screen and (max-width: ${c.breakpoints.phone}px)`},r=>r?l.createElement(S.PopupDialog,{isOpened:!0,fullscreen:!0},l.createElement("div",{className:o(n,k["country-list"]),ref:f},l.createElement(v,{onClose:e.onClose,countries:e.countries,searchCountries:M,debounceOnScroll:g}),l.createElement("div",{className:k["list-contain"] +},l.createElement("div",{className:E},C({countries:m,selectedCountry:t,onSelected:x,isMobile:!1}))))):l.createElement(s.OutsideEvent,{mouseDown:!0,handler:y},r=>l.createElement("div",{ref:r,className:k["country-list-wrapper"],style:{[u.horizontal]:0,[u.vertical]:0}},l.createElement("div",{className:o(n,k["country-list"]),ref:f,style:{[a.horizontal]:-5,[a.vertical]:-5}},l.createElement(v,{onClose:e.onClose,countries:e.countries,searchCountries:M,debounceOnScroll:g}),l.createElement("div",{className:k["list-contain"]},l.createElement("div",{className:E},C({countries:m,selectedCountry:t,onSelected:x,isMobile:!1})))))));function y(){e.onClose()}function x(t){e.onSelected(t),e.onClose()}function M(e){d(e),p(e.length<84)}}},55170:e=>{e.exports=''},16539:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/69938b544b1d77792db3e429284a98c1.svg b/charting_library/bundles/69938b544b1d77792db3e429284a98c1.svg new file mode 100644 index 00000000..4c35429d --- /dev/null +++ b/charting_library/bundles/69938b544b1d77792db3e429284a98c1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6ae825abf83e791f0247b4143d5a85ad.svg b/charting_library/bundles/6ae825abf83e791f0247b4143d5a85ad.svg new file mode 100644 index 00000000..91addfe0 --- /dev/null +++ b/charting_library/bundles/6ae825abf83e791f0247b4143d5a85ad.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6b4a6bb049ac33e322b700e50fc5b926.svg b/charting_library/bundles/6b4a6bb049ac33e322b700e50fc5b926.svg new file mode 100644 index 00000000..f8627041 --- /dev/null +++ b/charting_library/bundles/6b4a6bb049ac33e322b700e50fc5b926.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6c45a28c69aad8a75655bdd555d86f68.svg b/charting_library/bundles/6c45a28c69aad8a75655bdd555d86f68.svg new file mode 100644 index 00000000..efb23545 --- /dev/null +++ b/charting_library/bundles/6c45a28c69aad8a75655bdd555d86f68.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6ca6e081b7d7a80d94f38bf6ef9db3fa.svg b/charting_library/bundles/6ca6e081b7d7a80d94f38bf6ef9db3fa.svg new file mode 100644 index 00000000..234d288e --- /dev/null +++ b/charting_library/bundles/6ca6e081b7d7a80d94f38bf6ef9db3fa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6cc5af4752574eb61f0c8075ca1b7881.svg b/charting_library/bundles/6cc5af4752574eb61f0c8075ca1b7881.svg new file mode 100644 index 00000000..b3fe7b2e --- /dev/null +++ b/charting_library/bundles/6cc5af4752574eb61f0c8075ca1b7881.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6ce4af2df856e7fd43f8786a3c3a2e5d.svg b/charting_library/bundles/6ce4af2df856e7fd43f8786a3c3a2e5d.svg new file mode 100644 index 00000000..e2ace2f7 --- /dev/null +++ b/charting_library/bundles/6ce4af2df856e7fd43f8786a3c3a2e5d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6cfd08ce7e4a1dbbd15225a8bf79a4e3.svg b/charting_library/bundles/6cfd08ce7e4a1dbbd15225a8bf79a4e3.svg new file mode 100644 index 00000000..03796c9b --- /dev/null +++ b/charting_library/bundles/6cfd08ce7e4a1dbbd15225a8bf79a4e3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6d9fd8899d084d7f9698d9b2d5862c00.svg b/charting_library/bundles/6d9fd8899d084d7f9698d9b2d5862c00.svg new file mode 100644 index 00000000..a8abe0f7 --- /dev/null +++ b/charting_library/bundles/6d9fd8899d084d7f9698d9b2d5862c00.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6dfaf2afda613a97ef15734acea4f691.svg b/charting_library/bundles/6dfaf2afda613a97ef15734acea4f691.svg new file mode 100644 index 00000000..fc9fb500 --- /dev/null +++ b/charting_library/bundles/6dfaf2afda613a97ef15734acea4f691.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6e8ce773ae74687cfa9576d1210fe5f6.svg b/charting_library/bundles/6e8ce773ae74687cfa9576d1210fe5f6.svg new file mode 100644 index 00000000..069c8863 --- /dev/null +++ b/charting_library/bundles/6e8ce773ae74687cfa9576d1210fe5f6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6fcde21723892d962edac0d9998528d0.svg b/charting_library/bundles/6fcde21723892d962edac0d9998528d0.svg new file mode 100644 index 00000000..83f065eb --- /dev/null +++ b/charting_library/bundles/6fcde21723892d962edac0d9998528d0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/6fd906b30d990590754ae2e98b02d371.svg b/charting_library/bundles/6fd906b30d990590754ae2e98b02d371.svg new file mode 100644 index 00000000..536af718 --- /dev/null +++ b/charting_library/bundles/6fd906b30d990590754ae2e98b02d371.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7037.6c0a17273325fb793ea5.css b/charting_library/bundles/7037.6c0a17273325fb793ea5.css deleted file mode 100644 index d7686614..00000000 --- a/charting_library/bundles/7037.6c0a17273325fb793ea5.css +++ /dev/null @@ -1 +0,0 @@ -.close-button-WaM0Er9G{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;margin:0;padding:8px}html.theme-dark .close-button-WaM0Er9G{color:#b2b5be}@media (any-hover:hover){.close-button-WaM0Er9G:hover{background:#f0f3fa}html.theme-dark .close-button-WaM0Er9G:hover{background:#2a2e39}}.close-button-WaM0Er9G:active{background:#e0e3eb}html.theme-dark .close-button-WaM0Er9G:active{background:#1e222d}.close-button-WaM0Er9G{outline:none;overflow:visible;position:absolute}.close-button-WaM0Er9G:focus{outline:none}.close-button-WaM0Er9G:focus-visible{outline:none}.close-button-WaM0Er9G:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.close-button-WaM0Er9G:focus:after{display:block}.close-button-WaM0Er9G:focus-visible:after{display:block}.close-button-WaM0Er9G:focus:not(:focus-visible):after{display:none}.close-button-WaM0Er9G:after{border-color:#2962ffcc;border-radius:8px}.close-icon-WaM0Er9G,.close-icon-WaM0Er9G svg{display:block;height:100%}.button-l-WaM0Er9G{height:23px;padding:8px;width:23px}.button-m-WaM0Er9G{height:17px;padding:8px;width:17px}.button-s-WaM0Er9G{height:13px;padding:8px;width:13px}.button-xs-WaM0Er9G{height:11px;padding:4px;width:11px}.button-xxs-WaM0Er9G{height:9px;padding:4px;width:9px}.container-PxtBx6dp{align-items:flex-start;background:#fff;border:1px solid;border-radius:4px;color:#131722;display:flex;font-size:13px;font-style:normal;font-weight:400;line-height:19px;padding:11px 12px}html.theme-dark .container-PxtBx6dp{background:#1e222d;color:#d1d4dc}.container-PxtBx6dp.container-danger-PxtBx6dp{border-color:#f23645}.container-PxtBx6dp.container-danger-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-danger-PxtBx6dp .icon-PxtBx6dp{color:#f23645}.container-PxtBx6dp.container-warning-PxtBx6dp{border-color:#ff9800}.container-PxtBx6dp.container-warning-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-warning-PxtBx6dp .icon-PxtBx6dp{color:#ff9800}.container-PxtBx6dp.container-success-PxtBx6dp{border-color:#089981}.container-PxtBx6dp.container-success-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-success-PxtBx6dp .icon-PxtBx6dp{color:#089981}.container-PxtBx6dp.container-default-PxtBx6dp{background-color:#f0f3fa;border-color:#f0f3fa}html.theme-dark .container-PxtBx6dp.container-default-PxtBx6dp{background-color:#2a2e39;border-color:#2a2e39}.container-PxtBx6dp.container-default-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-default-PxtBx6dp .icon-PxtBx6dp{color:#787b86}.container-PxtBx6dp .icon-PxtBx6dp{display:flex;margin-right:8px}.container-PxtBx6dp .text-wrap-PxtBx6dp{align-self:center;margin-right:4px}.container-PxtBx6dp .header-PxtBx6dp{font-weight:700}.close-button-PxtBx6dp{flex-shrink:0;position:static}.container-64c268VA{bottom:30px;display:flex;justify-content:center;left:4px;pointer-events:none;position:absolute;right:4px}.container-64c268VA.bottomPadding-64c268VA{bottom:70px}.centerElement-64c268VA{pointer-events:auto;z-index:1}.notice-64c268VA{opacity:0;transform:translateY(10px);transition:transform .2s ease-in-out,opacity .2s ease-in-out}.notice-showed-64c268VA{opacity:1;transform:translateY(0)} \ No newline at end of file diff --git a/charting_library/bundles/7037.6c0a17273325fb793ea5.rtl.css b/charting_library/bundles/7037.6c0a17273325fb793ea5.rtl.css deleted file mode 100644 index 4fcacf93..00000000 --- a/charting_library/bundles/7037.6c0a17273325fb793ea5.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.close-button-WaM0Er9G{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;margin:0;padding:8px}html.theme-dark .close-button-WaM0Er9G{color:#b2b5be}@media (any-hover:hover){.close-button-WaM0Er9G:hover{background:#f0f3fa}html.theme-dark .close-button-WaM0Er9G:hover{background:#2a2e39}}.close-button-WaM0Er9G:active{background:#e0e3eb}html.theme-dark .close-button-WaM0Er9G:active{background:#1e222d}.close-button-WaM0Er9G{outline:none;overflow:visible;position:absolute}.close-button-WaM0Er9G:focus{outline:none}.close-button-WaM0Er9G:focus-visible{outline:none}.close-button-WaM0Er9G:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.close-button-WaM0Er9G:focus:after{display:block}.close-button-WaM0Er9G:focus-visible:after{display:block}.close-button-WaM0Er9G:focus:not(:focus-visible):after{display:none}.close-button-WaM0Er9G:after{border-color:#2962ffcc;border-radius:8px}.close-icon-WaM0Er9G,.close-icon-WaM0Er9G svg{display:block;height:100%}.button-l-WaM0Er9G{height:23px;padding:8px;width:23px}.button-m-WaM0Er9G{height:17px;padding:8px;width:17px}.button-s-WaM0Er9G{height:13px;padding:8px;width:13px}.button-xs-WaM0Er9G{height:11px;padding:4px;width:11px}.button-xxs-WaM0Er9G{height:9px;padding:4px;width:9px}.container-PxtBx6dp{align-items:flex-start;background:#fff;border:1px solid;border-radius:4px;color:#131722;display:flex;font-size:13px;font-style:normal;font-weight:400;line-height:19px;padding:11px 12px}html.theme-dark .container-PxtBx6dp{background:#1e222d;color:#d1d4dc}.container-PxtBx6dp.container-danger-PxtBx6dp{border-color:#f23645}.container-PxtBx6dp.container-danger-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-danger-PxtBx6dp .icon-PxtBx6dp{color:#f23645}.container-PxtBx6dp.container-warning-PxtBx6dp{border-color:#ff9800}.container-PxtBx6dp.container-warning-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-warning-PxtBx6dp .icon-PxtBx6dp{color:#ff9800}.container-PxtBx6dp.container-success-PxtBx6dp{border-color:#089981}.container-PxtBx6dp.container-success-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-success-PxtBx6dp .icon-PxtBx6dp{color:#089981}.container-PxtBx6dp.container-default-PxtBx6dp{background-color:#f0f3fa;border-color:#f0f3fa}html.theme-dark .container-PxtBx6dp.container-default-PxtBx6dp{background-color:#2a2e39;border-color:#2a2e39}.container-PxtBx6dp.container-default-PxtBx6dp .header-PxtBx6dp,.container-PxtBx6dp.container-default-PxtBx6dp .icon-PxtBx6dp{color:#787b86}.container-PxtBx6dp .icon-PxtBx6dp{display:flex;margin-left:8px}.container-PxtBx6dp .text-wrap-PxtBx6dp{align-self:center;margin-left:4px}.container-PxtBx6dp .header-PxtBx6dp{font-weight:700}.close-button-PxtBx6dp{flex-shrink:0;position:static}.container-64c268VA{bottom:30px;display:flex;justify-content:center;left:4px;pointer-events:none;position:absolute;right:4px}.container-64c268VA.bottomPadding-64c268VA{bottom:70px}.centerElement-64c268VA{pointer-events:auto;z-index:1}.notice-64c268VA{opacity:0;transform:translateY(10px);transition:transform .2s ease-in-out,opacity .2s ease-in-out}.notice-showed-64c268VA{opacity:1;transform:translateY(0)} \ No newline at end of file diff --git a/charting_library/bundles/703f250335bd4e9b78c998de059612b2.svg b/charting_library/bundles/703f250335bd4e9b78c998de059612b2.svg new file mode 100644 index 00000000..64a14706 --- /dev/null +++ b/charting_library/bundles/703f250335bd4e9b78c998de059612b2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7042e54b024475a394cb498377852b96.svg b/charting_library/bundles/7042e54b024475a394cb498377852b96.svg new file mode 100644 index 00000000..87d039df --- /dev/null +++ b/charting_library/bundles/7042e54b024475a394cb498377852b96.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/70464b308617ebaa2bc504b4a50c3463.svg b/charting_library/bundles/70464b308617ebaa2bc504b4a50c3463.svg new file mode 100644 index 00000000..e25d5241 --- /dev/null +++ b/charting_library/bundles/70464b308617ebaa2bc504b4a50c3463.svg @@ -0,0 +1 @@ + diff --git a/charting_library/bundles/70717ad43398a435ef78d38d226c6c37.svg b/charting_library/bundles/70717ad43398a435ef78d38d226c6c37.svg new file mode 100644 index 00000000..913f358e --- /dev/null +++ b/charting_library/bundles/70717ad43398a435ef78d38d226c6c37.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7087220f54cd749f878bda12494954eb.svg b/charting_library/bundles/7087220f54cd749f878bda12494954eb.svg new file mode 100644 index 00000000..bb8503d2 --- /dev/null +++ b/charting_library/bundles/7087220f54cd749f878bda12494954eb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/71968c0503e30bbb4fe32b57c8fdd68d.svg b/charting_library/bundles/71968c0503e30bbb4fe32b57c8fdd68d.svg new file mode 100644 index 00000000..3c0e48f2 --- /dev/null +++ b/charting_library/bundles/71968c0503e30bbb4fe32b57c8fdd68d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7210.9206636bbf39a902a0a9.js b/charting_library/bundles/7210.9206636bbf39a902a0a9.js deleted file mode 100644 index 9debb5ef..00000000 --- a/charting_library/bundles/7210.9206636bbf39a902a0a9.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7210],{37593:e=>{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM",dot:"dot-5Xd5conM"}},62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},88797:e=>{e.exports={loaderWrap:"loaderWrap-wpeeczk7",big:"big-wpeeczk7",loader:"loader-wpeeczk7"}},19119:e=>{e.exports={item:"item-tPYeYcJa",interactive:"interactive-tPYeYcJa",hovered:"hovered-tPYeYcJa",disabled:"disabled-tPYeYcJa",active:"active-tPYeYcJa",shortcut:"shortcut-tPYeYcJa",normal:"normal-tPYeYcJa",big:"big-tPYeYcJa",iconCell:"iconCell-tPYeYcJa",icon:"icon-tPYeYcJa",checkmark:"checkmark-tPYeYcJa",content:"content-tPYeYcJa",label:"label-tPYeYcJa",checked:"checked-tPYeYcJa",toolbox:"toolbox-tPYeYcJa",showToolboxOnHover:"showToolboxOnHover-tPYeYcJa",arrowIcon:"arrowIcon-tPYeYcJa",subMenu:"subMenu-tPYeYcJa",invisibleHotkey:"invisibleHotkey-tPYeYcJa"}},52506:e=>{e.exports={row:"row-Bc0VIp30",line:"line-Bc0VIp30",hint:"hint-Bc0VIp30"}},33549:e=>{e.exports={menu:"menu-qOMHRo3C"}},61999:e=>{e.exports={item:"item-zoYF2FPa",emptyIcons:"emptyIcons-zoYF2FPa",loading:"loading-zoYF2FPa",disabled:"disabled-zoYF2FPa",interactive:"interactive-zoYF2FPa",hovered:"hovered-zoYF2FPa",normal:"normal-zoYF2FPa",big:"big-zoYF2FPa",icon:"icon-zoYF2FPa",label:"label-zoYF2FPa",title:"title-zoYF2FPa",nested:"nested-zoYF2FPa",shortcut:"shortcut-zoYF2FPa",remove:"remove-zoYF2FPa"}},76860:e=>{e.exports={separator:"separator-ErQ6N9mF"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var s=n(59496),o=n(97754),a=n(9745),r=n(49154),i=n(37593),l=n.n(i);function c(e){const t=o(l().box,l()["intent-"+e.intent],{[l().check]:!Boolean(e.indeterminate),[l().dot]:Boolean(e.indeterminate),[l().noOutline]:-1===e.tabIndex}),n=o(l().wrapper,e.className);return s.createElement("span",{className:n,title:e.title},s.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:l().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),s.createElement("span",{className:t},s.createElement(a.Icon,{icon:r,className:l().icon})))}},26996:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>c});var s,o=n(59496),a=n(97754),r=n(74991),i=n(62092),l=n.n(i);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(s||(s={}));class c extends o.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={ -state:s.Initial}}render(){const{className:e,color:t="black",size:n="medium",staticPosition:s}=this.props,r=a(l().item,l()[t],l()[n]);return o.createElement("span",{className:a(l().loader,s&&l().static,this._getStateClass(),e)},o.createElement("span",{className:r}),o.createElement("span",{className:r}),o.createElement("span",{className:r}))}componentDidMount(){this.setState({state:s.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:s.Active})},2*r.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case s.Initial:return l()["loader-initial"];case s.Appear:return l()["loader-appear"];default:return""}}}},8312:(e,t,n)=>{"use strict";n.d(t,{ActionsTable:()=>Y});var s=n(59496),o=n(52506);function a(e){return s.createElement("tr",{className:o.row},s.createElement("td",null,s.createElement("div",{className:o.line})),s.createElement("td",null,s.createElement("div",{className:o.line}),e.hint?s.createElement("div",{className:o.hint},e.hint):null))}var r=n(88537),i=n(97754),l=n.n(i),c=n(84413),u=n(49483),h=n(32563);var p=n(96040),d=n(36189),m=n(99025),b=n(25812),v=n(51956),x=n(37049),C=n(19119);class g extends s.PureComponent{constructor(){super(...arguments),this._handleMouseOver=e=>{(function(e){const t=e.sourceCapabilities;let n=t&&t.firesTouchEvents;return void 0===n&&(n=h.touch),n})(e.nativeEvent)||this.props.onMouseOver&&this.props.onMouseOver()},this._handleClickToolbox=e=>{e.stopPropagation(),this.props.onClickToolbox&&this.props.onClickToolbox()}}render(){const{hasSubItems:e,shortcutHint:t,hint:n,invisibleHotkey:o,favourite:a,theme:r=C,size:l="normal"}=this.props,c=this.props.checkable&&this.props.checkboxInput?"label":"div";return s.createElement(s.Fragment,null,s.createElement("tr",{className:i(r.item,!this.props.noInteractive&&r.interactive,this.props.hovered&&r.hovered,this.props.disabled&&r.disabled,this.props.active&&r.active,this.props.selected&&r.selected,r[l]),onClick:this.props.onClick,onMouseOver:this._handleMouseOver,ref:this.props.reference,"data-action-name":this.props.actionName},void 0!==a&&s.createElement("td",null,s.createElement(d.FavoriteButton,{className:r.favourite,isFilled:a,onClick:this.props.onFavouriteClick})),s.createElement("td",{className:i(r.iconCell),"data-icon-cell":!0},this._icon(r)),s.createElement("td",{className:r.contentCell},s.createElement(c,{className:r.content},s.createElement("span",{className:i(r.label,this.props.checked&&r.checked),"data-label":!0},this.props.label),this._toolbox(r),e&&s.createElement("span",{className:r.arrowIcon,dangerouslySetInnerHTML:{__html:x},"data-submenu-arrow":!0}),!e&&t&&!u.CheckMobile.any()&&s.createElement(m.Hint,{className:i(o&&r.invisibleHotkey),text:t}),!e&&!t&&n&&s.createElement(m.Hint,{text:n})))),s.createElement("tr",{className:r.subMenu},s.createElement("td",null,this.props.children)))}_icon(e){if(this.props.checkable){if(this.props.checkboxInput)return s.createElement(c.CheckboxInput,{ -className:i(e.icon,e.checkboxInput),checked:this.props.checked});if(this.props.checked){const t=!this.props.icon&&!this.props.iconChecked,n=this.props.iconChecked||this.props.icon||v;return s.createElement("span",{className:i(e.icon,t&&e.checkmark),dangerouslySetInnerHTML:{__html:n},"data-icon-checkmark":t})}return this.props.icon?s.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):s.createElement("span",{className:e.icon})}return this.props.icon?s.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):null}_toolbox(e){return this.props.toolbox?s.createElement("span",{className:i(e.toolbox,this.props.showToolboxOnHover&&e.showToolboxOnHover),onClick:this._handleClickToolbox,"data-toolbox":!0},this._renderToolboxContent()):null}_renderToolboxContent(){if(this.props.toolbox)switch(this.props.toolbox.type){case b.ToolboxType.Delete:return s.createElement(p.RemoveButton,{onClick:this.props.toolbox.action})}return null}}var k=n(29332),E=n(59064),w=n(51768),_=n(62820);var f=n(14758),M=n(26996),S=n(88797);function N(e){const{size:t="normal"}=e;return s.createElement(g,{size:t,label:s.createElement("div",{className:l()(S.loaderWrap,S[t])},s.createElement(M.Loader,{className:S.loader})),noInteractive:!0,onMouseOver:e.onMouseOver})}class I extends s.PureComponent{constructor(e){super(e),this._itemRef=null,this._menuElementRef=s.createRef(),this._menuRef=null,this._handleClick=e=>{e.isDefaultPrevented()||this.state.disabled||(this._hasSubItems()?this._showSubMenu():(this.state.doNotCloseOnClick||(0,E.globalCloseMenu)(),this.props.action.execute(),this._trackEvent(),this.props.onExecute&&this.props.onExecute(this.props.action)))},this._handleClickToolbox=()=>{(0,E.globalCloseMenu)()},this._handleItemMouseOver=()=>{this._showSubMenu(),this._setCurrentContextValue()},this._handleMenuMouseOver=()=>{this._setCurrentContextValue()},this._showSubMenu=()=>{this.props.onShowSubMenu(this.props.action)},this._calcSubMenuPos=e=>function(e,t,n={x:0,y:10}){if(t){const{left:n,right:s,top:o}=t.getBoundingClientRect(),a=document.documentElement.clientWidth,r={x:n-e,y:o},i={x:s,y:o};return(0,_.isRtl)()?n<=e?i:r:a-s>=e?i:r}return n}(e,this._itemRef),this._updateState=e=>{this.setState(e.getState())},this._setItemRef=e=>{this._itemRef=e},this._handleMenuRef=e=>{this._menuRef=e},this._registerSubmenu=()=>{var e;return null===(e=this.context)||void 0===e?void 0:e.registerSubmenu(this.props.action.id,e=>(0,r.ensureNotNull)(this._itemRef).contains(e)||null!==this._menuElementRef.current&&this._menuElementRef.current.contains(e))},this.state={...this.props.action.getState()}}componentDidMount(){this.props.action.onUpdate().subscribe(this,this._updateState),this.state.subItems.length&&(this._unsubscribe=this._registerSubmenu()),this.props.reference&&(this._itemRef=this.props.reference.current)}componentDidUpdate(e,t){var n,s,o;t.loading!==this.state.loading&&(null===(s=(n=this.props).onRequestUpdate)||void 0===s||s.call(n)), -0===t.subItems.length&&this.state.subItems.length>0&&(this._unsubscribe=this._registerSubmenu()),t.subItems.length>0&&0===this.state.subItems.length&&(null===(o=this._unsubscribe)||void 0===o||o.call(this)),t.subItems!==this.state.subItems&&null!==this._menuRef&&this._menuRef.update()}componentWillUnmount(){this.props.action.onUpdate().unsubscribe(this,this._updateState),this._unsubscribe&&this._unsubscribe()}render(){var e,t,n;const o=null!==(e=this.state.jsxLabel)&&void 0!==e?e:this.state.label,a=(null===(t=this.context)||void 0===t?void 0:t.current)?this.context.current===this.props.action.id:this.props.isSubMenuOpened;return this.state.loading?s.createElement(N,{size:this.state.size}):s.createElement(g,{theme:this.props.theme,reference:null!==(n=this.props.reference)&&void 0!==n?n:this._setItemRef,onClick:this._handleClick,onClickToolbox:this._handleClickToolbox,onMouseOver:this._handleItemMouseOver,hovered:a,hasSubItems:this._hasSubItems(),actionName:this.state.name,checkboxInput:this.props.checkboxInput,selected:this.props.selected,...this.state,label:o},s.createElement(k.ContextMenu,{isOpened:a,items:this.state.subItems,position:this._calcSubMenuPos,menuStatName:this.props.menuStatName,parentStatName:this._getStatName(),menuElementReference:this._menuElementRef,onMouseOver:this.state.subItems.length?this._handleMenuMouseOver:void 0,ref:this._handleMenuRef}))}_setCurrentContextValue(){var e;this.state.subItems.length&&(null===(e=this.context)||void 0===e||e.setCurrent(this.props.action.id))}_hasSubItems(){return this.state.subItems.length>0}_trackEvent(){const e=this._getStatName();(0,w.trackEvent)("ContextMenuClick",this.props.menuStatName||"",e)}_getStatName(){return[this.props.parentStatName,this.state.statName].filter(e=>Boolean(e)).join(".")}}I.contextType=f.SubmenuContext;class Y extends s.PureComponent{constructor(e){super(e),this._handleShowSubMenu=e=>{const t=e.getState();this.setState({showSubMenuOf:t.subItems.length?e:void 0})},this.state={}}render(){return s.createElement("table",null,s.createElement("tbody",null,this.props.items.map(e=>this._item(e))))}static getDerivedStateFromProps(e,t){return!e.parentIsOpened&&t.showSubMenuOf?{showSubMenuOf:void 0}:null}_item(e){switch(e.type){case"separator":return s.createElement(a,{key:e.id,hint:e.getHint()});case"action":return s.createElement(I,{key:e.id,action:e,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===e,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName,onRequestUpdate:this.props.onRequestUpdate})}}}},29332:(e,t,n)=>{"use strict";n.d(t,{ContextMenu:()=>f,OverlapContextMenu:()=>M});var s=n(59496),o=n(97754),a=n.n(o),r=n(86431),i=n(27317),l=n(76594),c=n(9481),u=n(8312),h=n(37558),p=n(90692),d=n(76860);function m(e){return s.createElement("li",{className:d.separator})}var b=n(23829),v=n(41590),x=n(59064);function C(e){const{action:t}=e,[n,o]=(0,s.useState)(()=>t.getState()),[a,r]=(0,s.useState)(!1),i=!!n.subItems.length,l=i&&a;return(0,s.useEffect)(()=>{const e=()=>o(t.getState()) -;return t.onUpdate().subscribe(null,e),()=>{t.onUpdate().unsubscribe(null,e)}},[]),s.createElement(b.ContextMenuItem,{...n,onClick:function(e){if(n.disabled||e.defaultPrevented)return;if(i)return void r(!0);n.doNotCloseOnClick||(0,x.globalCloseMenu)();t.execute()},isLoading:n.loading,isHovered:l},l&&s.createElement(v.Drawer,{onClose:c},s.createElement(E,{items:n.subItems,parentAction:t,closeNested:c})));function c(e){e&&e.preventDefault(),r(!1)}}var g=n(54627),k=n(4301);function E(e){const{items:t,parentAction:n,closeNested:o}=e,a=!Boolean(n)&&t.every(e=>!Boolean("separator"!==e.type&&(e.getState().icon||e.getState().checkable)));return s.createElement(g.EmptyIconsContext.Provider,{value:a},s.createElement("ul",null,n&&s.createElement(s.Fragment,null,s.createElement(b.ContextMenuItem,{label:n.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:k,onClick:o}),s.createElement(m,null)),t.map(e=>{switch(e.type){case"action":return s.createElement(C,{key:e.id,action:e});case"separator":return s.createElement(m,{key:e.id})}})))}const w=s.createContext(null);var _=n(33549);class f extends s.PureComponent{constructor(e){super(e),this._menuRef=s.createRef(),this._handleRequestUpdate=()=>{this.update()},this._handleClose=()=>{this.props.onClose&&this.props.onClose()},this._handleOutsideClickClose=e=>{const{doNotCloseOn:t,onClose:n}=this.props;!n||void 0!==t&&t.contains(e.target)||n()},this._handleFocusOnOpen=()=>{var e,t;(null===(e=this.props.menuElementReference)||void 0===e?void 0:e.current)&&this.props.takeFocus&&(null===(t=this.props.menuElementReference)||void 0===t||t.current.focus({preventScroll:!0}))},this.state={}}render(){const{isOpened:e,onClose:t,items:n,doNotCloseOn:o,menuStatName:r,parentStatName:d,takeFocus:m,...b}=this.props;return e?s.createElement(h.DrawerManager,null,s.createElement(c.KeyboardDocumentListener,{keyCode:27,eventType:"keyup",handler:this._handleClose}),s.createElement(p.MatchMedia,{rule:"screen and (max-width: 428px)"},t=>this._isDrawer(t)?s.createElement(w.Provider,{value:{type:"drawer"}},s.createElement(v.Drawer,{onClose:this._handleClose,position:"Bottom","data-name":b["data-name"]},s.createElement(E,{items:n}))):s.createElement(w.Provider,{value:{type:"menu"}},s.createElement(l.OutsideEvent,{handler:this._handleOutsideClickClose,mouseDown:!0,touchStart:!0,reference:this.props.menuElementReference},t=>s.createElement(i.Menu,{...b,reference:t,className:a()(_.menu,"context-menu"),onClose:this._handleClose,noMomentumBasedScroll:!0,ref:this._menuRef,tabIndex:m?-1:void 0,onOpen:this._handleFocusOnOpen},s.createElement(u.ActionsTable,{items:n,menuStatName:r,parentStatName:d,parentIsOpened:e,onRequestUpdate:this._handleRequestUpdate})))))):null}update(){this._menuRef.current&&this._menuRef.current.update()}_isDrawer(e){return void 0===this.props.mode?e:"drawer"===this.props.mode}}const M=(0,r.makeOverlapable)(f)},99025:(e,t,n)=>{"use strict";n.d(t,{Hint:()=>i});var s=n(59496),o=n(97754),a=n.n(o),r=n(19119);function i(e){ -const{text:t="",className:n}=e;return s.createElement("span",{className:a()(r.shortcut,n)},t)}},23829:(e,t,n)=>{"use strict";n.d(t,{ContextMenuItem:()=>m});var s=n(59496),o=n(97754),a=n.n(o),r=n(9745),i=n(26996),l=n(54627),c=n(99025),u=n(86440),h=n(4585),p=n(74471),d=n(61999);function m(e){const{isTitle:t,isLoading:n,isHovered:o,active:m,checkable:b,disabled:v,checked:x,icon:C,iconChecked:g,hint:k,subItems:E,label:w,onClick:_,children:f,toolbox:M,jsxLabel:S,size:N="normal"}=e,I=(0,s.useContext)(l.EmptyIconsContext),Y=!!E.length;return n?s.createElement("li",{className:a()(d.item,d.loading,d[N])},s.createElement(i.Loader,null)):s.createElement("li",{className:a()(d.item,d.interactive,t&&d.title,v&&d.disabled,o&&d.hovered,m&&d.active,I&&d.emptyIcons,d[N]),onClick:_},s.createElement(r.Icon,{className:a()(d.icon),icon:function(){if(b&&x)return g||C||u;return C}()}),s.createElement("span",{className:a()(d.label)},null!=S?S:w),!!M&&s.createElement(r.Icon,{onClick:function(){M&&M.action()},className:d.remove,icon:p}),!Y&&k&&s.createElement(c.Hint,{className:d.shortcut,text:k}),Y&&s.createElement(r.Icon,{className:d.nested,icon:h}),f)}},54627:(e,t,n)=>{"use strict";n.d(t,{EmptyIconsContext:()=>s});const s=n(59496).createContext(!1)},9481:(e,t,n)=>{"use strict";n.d(t,{KeyboardDocumentListener:()=>o});var s=n(59496);class o extends s.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>o});var s=n(58095);function o(e){const{children:t,...n}=e;return t((0,s.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>a});var s=n(59496),o=n(65718);function a(e){return class extends s.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const a=s.createElement(e,{...this.props,zIndex:150});return"parent"===n?a:s.createElement(o.Portal,null,a)}}}},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>u});var s=n(28353),o=n(59496),a=n(97754),r=n(9745),i=n(73366),l=n(73432);const c={remove:(0,s.t)("Remove")};function u(e){const{className:t,isActive:n,onClick:s,onMouseDown:u,title:h,hidden:p,"data-name":d="remove-button",...m}=e;return o.createElement(r.Icon,{...m,"data-name":d,className:a(l.button,"apply-common-tooltip",n&&l.active,p&&l.hidden,t),icon:i,onClick:s,onMouseDown:u,title:h||c.remove})}},49154:e=>{e.exports=''},4301:e=>{e.exports=''},4585:e=>{ -e.exports=''},51956:e=>{e.exports=''},86440:e=>{e.exports=''},73366:e=>{e.exports=''},74471:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/7231b99c7054c64e47372a672c441a6d.svg b/charting_library/bundles/7231b99c7054c64e47372a672c441a6d.svg new file mode 100644 index 00000000..60d33b64 --- /dev/null +++ b/charting_library/bundles/7231b99c7054c64e47372a672c441a6d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7232.eeabaf3541dfcb1398bb.css b/charting_library/bundles/7232.eeabaf3541dfcb1398bb.css new file mode 100644 index 00000000..fa638379 --- /dev/null +++ b/charting_library/bundles/7232.eeabaf3541dfcb1398bb.css @@ -0,0 +1 @@ +.modal-yz1wLnOP{position:relative}.crossButton-yz1wLnOP{height:49px;width:49px}.dialog-yz1wLnOP{max-width:511px;padding:44px 40px 41px}@media screen and (max-width:767px){.dialog-yz1wLnOP{box-sizing:border-box;max-width:296px;padding:30px 20px 22px}}.body-yz1wLnOP{color:#131722;line-height:22px}html.theme-dark .body-yz1wLnOP{color:#d1d4dc}.header-yz1wLnOP{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-bottom:24px;padding-left:89px;position:relative}html.theme-dark .header-yz1wLnOP{color:#d1d4dc}@media screen and (max-width:767px){.header-yz1wLnOP{font-size:28px;line-height:36px;padding:0 8px 2px 76px}}.warningIcon-yz1wLnOP{left:0;position:absolute;top:-4px}@media screen and (max-width:767px){.warningIcon-yz1wLnOP{top:-9px}}.footerButtons-yz1wLnOP{display:flex;justify-content:flex-end;margin-top:20px}@media screen and (max-width:767px){.footerButtons-yz1wLnOP{display:flex;flex-direction:column-reverse;justify-content:center;margin-top:41px}}.cancelButton-yz1wLnOP{margin-right:20px}@media screen and (max-width:767px){.cancelButton-yz1wLnOP{margin-right:0;margin-top:13px}} \ No newline at end of file diff --git a/charting_library/bundles/7232.eeabaf3541dfcb1398bb.rtl.css b/charting_library/bundles/7232.eeabaf3541dfcb1398bb.rtl.css new file mode 100644 index 00000000..a9dbf268 --- /dev/null +++ b/charting_library/bundles/7232.eeabaf3541dfcb1398bb.rtl.css @@ -0,0 +1 @@ +.modal-yz1wLnOP{position:relative}.crossButton-yz1wLnOP{height:49px;width:49px}.dialog-yz1wLnOP{max-width:511px;padding:44px 40px 41px}@media screen and (max-width:767px){.dialog-yz1wLnOP{box-sizing:border-box;max-width:296px;padding:30px 20px 22px}}.body-yz1wLnOP{color:#131722;line-height:22px}html.theme-dark .body-yz1wLnOP{color:#d1d4dc}.header-yz1wLnOP{color:#131722;font-size:36px;font-weight:700;line-height:44px;margin-bottom:24px;padding-right:89px;position:relative}html.theme-dark .header-yz1wLnOP{color:#d1d4dc}@media screen and (max-width:767px){.header-yz1wLnOP{font-size:28px;line-height:36px;padding:0 76px 2px 8px}}.warningIcon-yz1wLnOP{position:absolute;right:0;top:-4px}@media screen and (max-width:767px){.warningIcon-yz1wLnOP{top:-9px}}.footerButtons-yz1wLnOP{display:flex;justify-content:flex-end;margin-top:20px}@media screen and (max-width:767px){.footerButtons-yz1wLnOP{display:flex;flex-direction:column-reverse;justify-content:center;margin-top:41px}}.cancelButton-yz1wLnOP{margin-left:20px}@media screen and (max-width:767px){.cancelButton-yz1wLnOP{margin-left:0;margin-top:13px}} \ No newline at end of file diff --git a/charting_library/bundles/724.e580ce07c322679b0578.css b/charting_library/bundles/724.e580ce07c322679b0578.css new file mode 100644 index 00000000..cf666661 --- /dev/null +++ b/charting_library/bundles/724.e580ce07c322679b0578.css @@ -0,0 +1 @@ +.closeButton-oXu4cxSp{position:absolute;right:63px;top:56px}.tabHeader-oXu4cxSp{margin-top:24px}.responsive-container-media-mf-tablet-vertical .tabHeader-oXu4cxSp{margin-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tabHeader-oXu4cxSp{margin-top:32px}}.tabHeader-oXu4cxSp .title-oXu4cxSp{font-feature-settings:"tnum" on,"lnum" on;font-size:28px;font-style:normal;font-weight:700;line-height:36px}.tabHeader-oXu4cxSp .description-oXu4cxSp,.tabHeader-oXu4cxSp .title-oXu4cxSp{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.tabHeader-oXu4cxSp .description-oXu4cxSp{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-top:9px}.backButton-oXu4cxSp{left:54px;position:absolute;top:67px}.privacyPreferenceDialog-vDbnNLqD{color:#131722;display:flex;flex-direction:column;justify-content:space-between;padding:0 30px;position:relative}html.theme-dark .privacyPreferenceDialog-vDbnNLqD{color:#d1d4dc}.responsive-container-media-mf-tablet-vertical .privacyPreferenceDialog-vDbnNLqD{padding:0 80px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .privacyPreferenceDialog-vDbnNLqD{padding:0 80px}}.privacyPreference-vDbnNLqD{margin-top:32px}.close-vDbnNLqD{right:17px;top:22px}.title-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-right:39px}.availableCookieElement-vDbnNLqD{margin-top:32px}.cookieTitle-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.switchTitle-vDbnNLqD{cursor:default;margin-left:8px}.cookieContent-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;margin-top:8px}.cookieContent-vDbnNLqD,.moreInfoLink-vDbnNLqD{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.moreInfoLink-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;display:block;font-size:16px;font-style:normal;font-weight:600;margin:32px 0;text-decoration:none;transition:color .35s ease}html.theme-dark .moreInfoLink-vDbnNLqD{color:#2962ff}.moreInfoLink-vDbnNLqD:visited{fill:#2962ff;color:#2962ff}html.theme-dark .moreInfoLink-vDbnNLqD:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.moreInfoLink-vDbnNLqD:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .moreInfoLink-vDbnNLqD:hover{fill:#1e53e5;color:#1e53e5}}.moreInfoLink-vDbnNLqD:focus{outline:auto}.moreInfoLink-vDbnNLqD:focus-visible{outline:auto}.moreInfoLink-vDbnNLqD:focus:not(:focus-visible){outline:none}.moreInfoLink-vDbnNLqD:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .moreInfoLink-vDbnNLqD:active{fill:#1848cc;color:#1848cc}.nowrap-vDbnNLqD{white-space:nowrap}.icon-vDbnNLqD{display:inline-block;vertical-align:-4px}.btnBlock-vDbnNLqD{background-color:#fff;bottom:0;display:flex;flex-direction:column-reverse;justify-content:flex-end;padding:8px 0 24px;position:sticky}html.theme-dark .btnBlock-vDbnNLqD{background-color:#131722}.responsive-container-media-mf-legacy-phone .btnBlock-vDbnNLqD{flex-direction:row}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .btnBlock-vDbnNLqD{flex-direction:row}}.savePreferences-vDbnNLqD{margin-top:12px}.responsive-container-media-mf-legacy-phone .savePreferences-vDbnNLqD{margin-right:12px;margin-top:0}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .savePreferences-vDbnNLqD{margin-right:12px;margin-top:0}}.cookiesNotification-W4Y0hWcd{max-width:480px;padding:16px}.cookies-link-W4Y0hWcd{color:#2962ff;transition:color .35s ease}html.theme-dark .cookies-link-W4Y0hWcd{color:#2962ff}.cookies-link-W4Y0hWcd:visited{fill:#2962ff;color:#2962ff}html.theme-dark .cookies-link-W4Y0hWcd:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.cookies-link-W4Y0hWcd:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .cookies-link-W4Y0hWcd:hover{fill:#1e53e5;color:#1e53e5}}.cookies-link-W4Y0hWcd:focus{outline:auto}.cookies-link-W4Y0hWcd:focus-visible{outline:auto}.cookies-link-W4Y0hWcd:focus:not(:focus-visible){outline:none}.cookies-link-W4Y0hWcd:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .cookies-link-W4Y0hWcd:active{fill:#1848cc;color:#1848cc}.actionBtn-W4Y0hWcd{display:grid;grid-template-columns:1fr;margin-top:8px}@media screen and (min-width:320px){.actionBtn-W4Y0hWcd{grid-template-columns:1fr 1fr}}.acceptAll-W4Y0hWcd{order:1}@media screen and (min-width:320px){.acceptAll-W4Y0hWcd{order:2}}.managePreferences-W4Y0hWcd{--ui-lib-button-color-border:#0000;margin-top:12px;order:2}@media screen and (min-width:320px){.managePreferences-W4Y0hWcd{margin-right:8px;margin-top:0;order:1}} \ No newline at end of file diff --git a/charting_library/bundles/724.e580ce07c322679b0578.rtl.css b/charting_library/bundles/724.e580ce07c322679b0578.rtl.css new file mode 100644 index 00000000..0ac31f59 --- /dev/null +++ b/charting_library/bundles/724.e580ce07c322679b0578.rtl.css @@ -0,0 +1 @@ +.closeButton-oXu4cxSp{left:63px;position:absolute;top:56px}.tabHeader-oXu4cxSp{margin-top:24px}.responsive-container-media-mf-tablet-vertical .tabHeader-oXu4cxSp{margin-top:32px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tabHeader-oXu4cxSp{margin-top:32px}}.tabHeader-oXu4cxSp .title-oXu4cxSp{font-feature-settings:"tnum" on,"lnum" on;font-size:28px;font-style:normal;font-weight:700;line-height:36px}.tabHeader-oXu4cxSp .description-oXu4cxSp,.tabHeader-oXu4cxSp .title-oXu4cxSp{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.tabHeader-oXu4cxSp .description-oXu4cxSp{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-top:9px}.backButton-oXu4cxSp{position:absolute;right:54px;top:67px}.privacyPreferenceDialog-vDbnNLqD{color:#131722;display:flex;flex-direction:column;justify-content:space-between;padding:0 30px;position:relative}html.theme-dark .privacyPreferenceDialog-vDbnNLqD{color:#d1d4dc}.responsive-container-media-mf-tablet-vertical .privacyPreferenceDialog-vDbnNLqD{padding:0 80px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .privacyPreferenceDialog-vDbnNLqD{padding:0 80px}}.privacyPreference-vDbnNLqD{margin-top:32px}.close-vDbnNLqD{left:17px;top:22px}.title-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-left:39px}.availableCookieElement-vDbnNLqD{margin-top:32px}.cookieTitle-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;align-items:center;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.switchTitle-vDbnNLqD{cursor:default;margin-right:8px}.cookieContent-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;margin-top:8px}.cookieContent-vDbnNLqD,.moreInfoLink-vDbnNLqD{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.moreInfoLink-vDbnNLqD{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;display:block;font-size:16px;font-style:normal;font-weight:600;margin:32px 0;text-decoration:none;transition:color .35s ease}html.theme-dark .moreInfoLink-vDbnNLqD{color:#2962ff}.moreInfoLink-vDbnNLqD:visited{fill:#2962ff;color:#2962ff}html.theme-dark .moreInfoLink-vDbnNLqD:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.moreInfoLink-vDbnNLqD:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .moreInfoLink-vDbnNLqD:hover{fill:#1e53e5;color:#1e53e5}}.moreInfoLink-vDbnNLqD:focus{outline:auto}.moreInfoLink-vDbnNLqD:focus-visible{outline:auto}.moreInfoLink-vDbnNLqD:focus:not(:focus-visible){outline:none}.moreInfoLink-vDbnNLqD:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .moreInfoLink-vDbnNLqD:active{fill:#1848cc;color:#1848cc}.nowrap-vDbnNLqD{white-space:nowrap}.icon-vDbnNLqD{display:inline-block;vertical-align:-4px}.btnBlock-vDbnNLqD{background-color:#fff;bottom:0;display:flex;flex-direction:column-reverse;justify-content:flex-end;padding:8px 0 24px;position:sticky}html.theme-dark .btnBlock-vDbnNLqD{background-color:#131722}.responsive-container-media-mf-legacy-phone .btnBlock-vDbnNLqD{flex-direction:row}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .btnBlock-vDbnNLqD{flex-direction:row}}.savePreferences-vDbnNLqD{margin-top:12px}.responsive-container-media-mf-legacy-phone .savePreferences-vDbnNLqD{margin-left:12px;margin-top:0}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .savePreferences-vDbnNLqD{margin-left:12px;margin-top:0}}.cookiesNotification-W4Y0hWcd{max-width:480px;padding:16px}.cookies-link-W4Y0hWcd{color:#2962ff;transition:color .35s ease}html.theme-dark .cookies-link-W4Y0hWcd{color:#2962ff}.cookies-link-W4Y0hWcd:visited{fill:#2962ff;color:#2962ff}html.theme-dark .cookies-link-W4Y0hWcd:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.cookies-link-W4Y0hWcd:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .cookies-link-W4Y0hWcd:hover{fill:#1e53e5;color:#1e53e5}}.cookies-link-W4Y0hWcd:focus{outline:auto}.cookies-link-W4Y0hWcd:focus-visible{outline:auto}.cookies-link-W4Y0hWcd:focus:not(:focus-visible){outline:none}.cookies-link-W4Y0hWcd:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .cookies-link-W4Y0hWcd:active{fill:#1848cc;color:#1848cc}.actionBtn-W4Y0hWcd{display:grid;grid-template-columns:1fr;margin-top:8px}@media screen and (min-width:320px){.actionBtn-W4Y0hWcd{grid-template-columns:1fr 1fr}}.acceptAll-W4Y0hWcd{order:1}@media screen and (min-width:320px){.acceptAll-W4Y0hWcd{order:2}}.managePreferences-W4Y0hWcd{--ui-lib-button-color-border:#0000;margin-top:12px;order:2}@media screen and (min-width:320px){.managePreferences-W4Y0hWcd{margin-left:8px;margin-top:0;order:1}} \ No newline at end of file diff --git a/charting_library/bundles/7245.1a82c73b622453a96bf6.css b/charting_library/bundles/7245.1a82c73b622453a96bf6.css new file mode 100644 index 00000000..a739fa54 --- /dev/null +++ b/charting_library/bundles/7245.1a82c73b622453a96bf6.css @@ -0,0 +1 @@ +.country-search-Kmw4TESj{align-items:center;background-color:#fff;border-bottom:1px solid;border-color:#e0e3eb;border-top-left-radius:3px;border-top-right-radius:3px;display:flex;height:37px;justify-content:center;min-height:37px;padding-top:1px;width:100%}html.theme-dark .country-search-Kmw4TESj{background-color:#131722;border-color:#363a45}@media screen and (max-width:767px){.country-search-Kmw4TESj{border-top-left-radius:0;border-top-right-radius:0;position:sticky;top:0}}.search-Kmw4TESj{border:none;height:100%}.search-Kmw4TESj .input-Kmw4TESj::placeholder{-webkit-text-fill-color:#a3a6af;color:#a3a6af}.magnifier-icon-Kmw4TESj{align-items:center;color:#787b86;display:inline-flex;padding:0 8px 0 18px}.magnifier-icon-Kmw4TESj svg{height:18px;width:18px}.reset-icon-Kmw4TESj{fill:#787b86;align-items:center;cursor:pointer;display:inline-flex;padding:0 10px}.reset-icon-Kmw4TESj svg{height:13px;width:13px}.item-jkLmJiis{align-items:center;box-sizing:border-box;break-inside:avoid;color:#131722;cursor:pointer;display:flex;font-size:16px;font-style:normal;font-weight:400;height:36px;line-height:24px;padding:0 13px;width:100%}html.theme-dark .item-jkLmJiis{color:#d1d4dc}@media (any-hover:hover){.item-jkLmJiis:hover{background:#f0f3fa}html.theme-dark .item-jkLmJiis:hover{background:#2a2e39}}.item-jkLmJiis .flag-jkLmJiis{border-radius:50%;height:18px;margin-right:9px;width:18px}.item-jkLmJiis .text-jkLmJiis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-jkLmJiis.mobile-jkLmJiis{font-size:18px;font-style:normal;font-weight:400;height:52px;line-height:28px;padding:0 22px}.item-jkLmJiis.mobile-jkLmJiis .flag-jkLmJiis{height:24px;margin-right:14px;width:24px}.item-jkLmJiis.selected-jkLmJiis{background:#2962ff;color:#fff}html.theme-dark .item-jkLmJiis.selected-jkLmJiis{background:#2962ff;color:#fff}.country-list-I1oZlw8z{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;height:315px;overflow:hidden;position:absolute;width:630px;z-index:10}html.theme-dark .country-list-I1oZlw8z{background-color:#131722;box-shadow:0 2px 4px #0006}@media screen and (max-width:767px){.country-list-I1oZlw8z{align-items:stretch;border-radius:0;box-shadow:none;display:flex;flex-direction:column;height:100vh;overflow:scroll;position:static;width:100%}html.theme-dark .country-list-I1oZlw8z{box-shadow:none}}.list-contain-I1oZlw8z{-webkit-overflow-scrolling:touch;height:274px;overflow-x:scroll;padding:8px 8px 0;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .list-contain-I1oZlw8z{scrollbar-color:#363a45 #0000}@media screen and (max-width:767px){.list-contain-I1oZlw8z{height:auto}}.list-contain-I1oZlw8z::-webkit-scrollbar{height:5px;width:5px}.list-contain-I1oZlw8z::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .list-contain-I1oZlw8z::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.list-contain-I1oZlw8z::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.list-contain-I1oZlw8z::-webkit-scrollbar-corner{display:none}.list-I1oZlw8z{column-count:3;column-gap:0}@media screen and (max-width:767px){.list-I1oZlw8z{column-count:1}}.list-I1oZlw8z span{color:#131722;font-size:14px;line-height:21px;padding-top:1px}html.theme-dark .list-I1oZlw8z span{color:#d1d4dc}.one-column-I1oZlw8z{column-count:1}.country-list-wrapper-I1oZlw8z{position:absolute} \ No newline at end of file diff --git a/charting_library/bundles/7245.1a82c73b622453a96bf6.rtl.css b/charting_library/bundles/7245.1a82c73b622453a96bf6.rtl.css new file mode 100644 index 00000000..ff644cc7 --- /dev/null +++ b/charting_library/bundles/7245.1a82c73b622453a96bf6.rtl.css @@ -0,0 +1 @@ +.country-search-Kmw4TESj{align-items:center;background-color:#fff;border-bottom:1px solid;border-color:#e0e3eb;border-top-left-radius:3px;border-top-right-radius:3px;display:flex;height:37px;justify-content:center;min-height:37px;padding-top:1px;width:100%}html.theme-dark .country-search-Kmw4TESj{background-color:#131722;border-color:#363a45}@media screen and (max-width:767px){.country-search-Kmw4TESj{border-top-left-radius:0;border-top-right-radius:0;position:sticky;top:0}}.search-Kmw4TESj{border:none;height:100%}.search-Kmw4TESj .input-Kmw4TESj::placeholder{-webkit-text-fill-color:#a3a6af;color:#a3a6af}.magnifier-icon-Kmw4TESj{align-items:center;color:#787b86;display:inline-flex;padding:0 18px 0 8px}.magnifier-icon-Kmw4TESj svg{height:18px;width:18px}.reset-icon-Kmw4TESj{fill:#787b86;align-items:center;cursor:pointer;display:inline-flex;padding:0 10px}.reset-icon-Kmw4TESj svg{height:13px;width:13px}.item-jkLmJiis{align-items:center;box-sizing:border-box;break-inside:avoid;color:#131722;cursor:pointer;display:flex;font-size:16px;font-style:normal;font-weight:400;height:36px;line-height:24px;padding:0 13px;width:100%}html.theme-dark .item-jkLmJiis{color:#d1d4dc}@media (any-hover:hover){.item-jkLmJiis:hover{background:#f0f3fa}html.theme-dark .item-jkLmJiis:hover{background:#2a2e39}}.item-jkLmJiis .flag-jkLmJiis{border-radius:50%;height:18px;margin-left:9px;width:18px}.item-jkLmJiis .text-jkLmJiis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-jkLmJiis.mobile-jkLmJiis{font-size:18px;font-style:normal;font-weight:400;height:52px;line-height:28px;padding:0 22px}.item-jkLmJiis.mobile-jkLmJiis .flag-jkLmJiis{height:24px;margin-left:14px;width:24px}.item-jkLmJiis.selected-jkLmJiis{background:#2962ff;color:#fff}html.theme-dark .item-jkLmJiis.selected-jkLmJiis{background:#2962ff;color:#fff}.country-list-I1oZlw8z{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;height:315px;overflow:hidden;position:absolute;width:630px;z-index:10}html.theme-dark .country-list-I1oZlw8z{background-color:#131722;box-shadow:0 2px 4px #0006}@media screen and (max-width:767px){.country-list-I1oZlw8z{align-items:stretch;border-radius:0;box-shadow:none;display:flex;flex-direction:column;height:100vh;overflow:scroll;position:static;width:100%}html.theme-dark .country-list-I1oZlw8z{box-shadow:none}}.list-contain-I1oZlw8z{-webkit-overflow-scrolling:touch;height:274px;overflow-x:scroll;padding:8px 8px 0;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .list-contain-I1oZlw8z{scrollbar-color:#363a45 #0000}@media screen and (max-width:767px){.list-contain-I1oZlw8z{height:auto}}.list-contain-I1oZlw8z::-webkit-scrollbar{height:5px;width:5px}.list-contain-I1oZlw8z::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .list-contain-I1oZlw8z::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.list-contain-I1oZlw8z::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.list-contain-I1oZlw8z::-webkit-scrollbar-corner{display:none}.list-I1oZlw8z{column-count:3;column-gap:0}@media screen and (max-width:767px){.list-I1oZlw8z{column-count:1}}.list-I1oZlw8z span{color:#131722;font-size:14px;line-height:21px;padding-top:1px}html.theme-dark .list-I1oZlw8z span{color:#d1d4dc}.one-column-I1oZlw8z{column-count:1}.country-list-wrapper-I1oZlw8z{position:absolute} \ No newline at end of file diff --git a/charting_library/bundles/727813bcf45ceaaa481f086bcd697b95.svg b/charting_library/bundles/727813bcf45ceaaa481f086bcd697b95.svg new file mode 100644 index 00000000..187f4956 --- /dev/null +++ b/charting_library/bundles/727813bcf45ceaaa481f086bcd697b95.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/727ca3bc1d3c5915d9ccc4ba3eee978a.svg b/charting_library/bundles/727ca3bc1d3c5915d9ccc4ba3eee978a.svg new file mode 100644 index 00000000..e29d67af --- /dev/null +++ b/charting_library/bundles/727ca3bc1d3c5915d9ccc4ba3eee978a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/72c3a3b432d2ad933ee80184f0524e7c.webp b/charting_library/bundles/72c3a3b432d2ad933ee80184f0524e7c.webp new file mode 100644 index 00000000..4cb78d98 Binary files /dev/null and b/charting_library/bundles/72c3a3b432d2ad933ee80184f0524e7c.webp differ diff --git a/charting_library/bundles/73dfc43daa272490acc92fd18d2efa97.svg b/charting_library/bundles/73dfc43daa272490acc92fd18d2efa97.svg new file mode 100644 index 00000000..708263d5 --- /dev/null +++ b/charting_library/bundles/73dfc43daa272490acc92fd18d2efa97.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/74009555a8dd165b067723f234f915a5.svg b/charting_library/bundles/74009555a8dd165b067723f234f915a5.svg new file mode 100644 index 00000000..3f43ad43 --- /dev/null +++ b/charting_library/bundles/74009555a8dd165b067723f234f915a5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7404.8ea65939d80e9ab20e73.js b/charting_library/bundles/7404.8ea65939d80e9ab20e73.js new file mode 100644 index 00000000..40cec90f --- /dev/null +++ b/charting_library/bundles/7404.8ea65939d80e9ab20e73.js @@ -0,0 +1,12 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7404],{21103:t=>{t.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:t=>{t.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:t=>{t.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},12539:t=>{t.exports={calendar:"calendar-U9DgB4FB",popupStyle:"popupStyle-U9DgB4FB",header:"header-U9DgB4FB",title:"title-U9DgB4FB",switchBtn:"switchBtn-U9DgB4FB",prev:"prev-U9DgB4FB",month:"month-U9DgB4FB",weekdays:"weekdays-U9DgB4FB",weeks:"weeks-U9DgB4FB",week:"week-U9DgB4FB",day:"day-U9DgB4FB",disabled:"disabled-U9DgB4FB",selected:"selected-U9DgB4FB",currentDay:"currentDay-U9DgB4FB",isOnHighlightedEdge:"isOnHighlightedEdge-U9DgB4FB",withinSelectedRange:"withinSelectedRange-U9DgB4FB"}},554:t=>{t.exports={pickerInput:"pickerInput-sZbzL9zH",icon:"icon-sZbzL9zH",disabled:"disabled-sZbzL9zH",picker:"picker-sZbzL9zH",fixed:"fixed-sZbzL9zH",absolute:"absolute-sZbzL9zH",nativePicker:"nativePicker-sZbzL9zH"}},66875:t=>{t.exports={errors:"errors-Cv6NxnRZ",show:"show-Cv6NxnRZ",error:"error-Cv6NxnRZ"}},93314:t=>{t.exports={"error-icon":"error-icon-llFIA0b4","intent-danger":"intent-danger-llFIA0b4","intent-warning":"intent-warning-llFIA0b4"}},52965:t=>{t.exports={"static-messages":"static-messages-Yp0dNSLN",errors:"errors-Yp0dNSLN",warnings:"warnings-Yp0dNSLN",message:"message-Yp0dNSLN"}},86332:(t,e,s)=>{"use strict";s.d(e,{ControlGroupContext:()=>n});const n=s(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(t,e,s)=>{"use strict";function n(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}s.d(e,{getGroupCellRemoveRoundBorders:()=>n})}, +67029:(t,e,s)=>{"use strict";s.d(e,{ControlSkeleton:()=>w,InputClasses:()=>g});var n=s(59496),r=s(97754),o=s(88537),i=s(66092),a=s(90186),l=s(86332),c=s(95604);var h=s(21103),u=s.n(h);function p(t){let e="";return 0!==t&&(1&t&&(e=r(e,u()["no-corner-top-left"])),2&t&&(e=r(e,u()["no-corner-top-right"])),4&t&&(e=r(e,u()["no-corner-bottom-right"])),8&t&&(e=r(e,u()["no-corner-bottom-left"]))),e}function d(t,e,s,n){const{removeRoundBorder:o,className:i,intent:a="default",borderStyle:l="thin",size:h,highlight:d,disabled:m,readonly:g,stretch:f,noReadonlyStyles:v,isFocused:w}=t,b=p(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(s));return r(u().container,u()["intent-"+a],u()["border-"+l],h&&u()["size-"+h],b,d&&u()["with-highlight"],m&&u().disabled,g&&!v&&u().readonly,w&&u().focused,f&&u().stretch,e&&u().grouped,!n&&u()["adjust-position"],s.isTop&&u()["first-row"],s.isLeft&&u()["first-col"],i)}function m(t,e){const{highlight:s,highlightRemoveRoundBorder:n}=t;if(!s)return u().highlight;const o=p(null!=n?n:(0,c.getGroupCellRemoveRoundBorders)(e));return r(u().highlight,u().shown,o)}const g={FontSizeMedium:(0,o.ensureDefined)(u()["font-size-medium"]),FontSizeLarge:(0,o.ensureDefined)(u()["font-size-large"])},f={passive:!1};function v(t,e){const{id:s,role:r,onFocus:o,onBlur:c,onMouseOver:h,onMouseOut:u,onMouseDown:p,onMouseUp:g,onKeyDown:v,onClick:w,tabIndex:b,startSlot:y,middleSlot:S,endSlot:D,onWheel:_,onWheelNoPassive:E=null}=t,{isGrouped:C,cellState:k,disablePositionAdjustment:F=!1}=(0,n.useContext)(l.ControlGroupContext),M=function(t,e=null,s){const r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useCallback)(()=>{if(null===r.current||null===o.current)return;const[t,e,s]=o.current;null!==e&&r.current.addEventListener(t,e,s)},[]),a=(0,n.useCallback)(()=>{if(null===r.current||null===o.current)return;const[t,e,s]=o.current;null!==e&&r.current.removeEventListener(t,e,s)},[]),l=(0,n.useCallback)(t=>{a(),r.current=t,i()},[]);return(0,n.useEffect)(()=>(o.current=[t,e,s],i(),a),[t,e,s]),l}("wheel",E,f);return n.createElement("span",{id:s,role:r,className:d(t,C,k,F),tabIndex:b,ref:(0,i.useMergedRefs)([e,M]),onFocus:o,onBlur:c,onMouseOver:h,onMouseOut:u,onMouseDown:p,onMouseUp:g,onKeyDown:v,onClick:w,onWheel:_,...(0,a.filterDataProps)(t),...(0,a.filterAriaProps)(t)},y,S,D,n.createElement("span",{className:m(t,k)}))}v.displayName="ControlSkeleton";const w=n.forwardRef(v)},78274:(t,e,s)=>{"use strict";s.d(e,{BeforeSlot:()=>a,StartSlot:()=>l,MiddleSlot:()=>c,EndSlot:()=>h,AfterSlot:()=>u});var n=s(59496),r=s(97754),o=s(10306),i=s.n(o);function a(t){const{className:e,children:s}=t;return n.createElement("span",{className:r(i()["before-slot"],e)},s)}function l(t){const{className:e,interactive:s=!0,icon:o=!1,children:a}=t;return n.createElement("span",{className:r(i()["inner-slot"],s&&i().interactive,o&&i().icon,e)},a)}function c(t){const{className:e,children:s}=t;return n.createElement("span",{className:r(i()["inner-slot"],i()["inner-middle-slot"],e)},s)}function h(t){const{className:e,interactive:s=!0,icon:o=!1,children:a}=t +;return n.createElement("span",{className:r(i()["inner-slot"],s&&i().interactive,o&&i().icon,e)},a)}function u(t){const{className:e,children:s}=t;return n.createElement("span",{className:r(i()["after-slot"],e)},s)}},31261:(t,e,s)=>{"use strict";s.d(e,{InputControl:()=>w});var n=s(59496),r=s(97754),o=s(90186),i=s(47201),a=s(48907),l=s(66092),c=s(48027),h=s(29202),u=s(45812),p=s(67029),d=s(78274),m=s(66579),g=s.n(m);function f(t){return!(0,o.isAriaAttribute)(t)&&!(0,o.isDataAttribute)(t)}function v(t){const{id:e,title:s,role:i,tabIndex:a,placeholder:l,name:c,type:h,value:u,defaultValue:m,draggable:v,autoComplete:w,autoFocus:b,maxLength:y,min:S,max:D,step:_,pattern:E,inputMode:C,onSelect:k,onFocus:F,onBlur:M,onKeyDown:R,onKeyUp:x,onKeyPress:N,onChange:I,onDragStart:B,size:A="medium",className:z,inputClassName:P,disabled:T,readonly:W,containerTabIndex:O,startSlot:H,endSlot:L,reference:j,containerReference:U,onContainerFocus:V,...K}=t,Y=(0,o.filterProps)(K,f),G={...(0,o.filterAriaProps)(K),...(0,o.filterDataProps)(K),id:e,title:s,role:i,tabIndex:a,placeholder:l,name:c,type:h,value:u,defaultValue:m,draggable:v,autoComplete:w,autoFocus:b,maxLength:y,min:S,max:D,step:_,pattern:E,inputMode:C,onSelect:k,onFocus:F,onBlur:M,onKeyDown:R,onKeyUp:x,onKeyPress:N,onChange:I,onDragStart:B};return n.createElement(p.ControlSkeleton,{...Y,disabled:T,readonly:W,tabIndex:O,className:r(g().container,z),size:A,ref:U,onFocus:V,startSlot:H,middleSlot:n.createElement(d.MiddleSlot,null,n.createElement("input",{...G,className:r(g().input,P,H&&g()["with-start-slot"],L&&g()["with-end-slot"]),disabled:T,readOnly:W,ref:j})),endSlot:L})}function w(t){t=(0,c.useControl)(t);const{disabled:e,autoSelectOnFocus:s,tabIndex:r=0,onFocus:o,onBlur:p,reference:d,containerReference:m=null}=t,g=(0,n.useRef)(null),f=(0,n.useRef)(null),[w,b]=(0,h.useFocus)(),y=e?void 0:w?-1:r,S=e?void 0:w?r:-1,{isMouseDown:D,handleMouseDown:_,handleMouseUp:E}=(0,u.useIsMouseDown)(),C=(0,i.createSafeMulticastEventHandler)(b.onFocus,(function(t){s&&!D.current&&(0,a.selectAllContent)(t.currentTarget)}),o),k=(0,i.createSafeMulticastEventHandler)(b.onBlur,p),F=(0,n.useCallback)(t=>{g.current=t,d&&("function"==typeof d&&d(t),"object"==typeof d&&(d.current=t))},[g,d]);return n.createElement(v,{...t,isFocused:w,containerTabIndex:y,tabIndex:S,onContainerFocus:function(t){f.current===t.target&&null!==g.current&&g.current.focus()},onFocus:C,onBlur:k,reference:F,containerReference:(0,l.useMergedRefs)([f,m]),onMouseDown:_,onMouseUp:E})}},48027:(t,e,s)=>{"use strict";s.d(e,{useControl:()=>o});var n=s(47201),r=s(29202);function o(t){const{onFocus:e,onBlur:s,intent:o,highlight:i,disabled:a}=t,[l,c]=(0,r.useFocus)(void 0,a),h=(0,n.createSafeMulticastEventHandler)(a?void 0:c.onFocus,e),u=(0,n.createSafeMulticastEventHandler)(a?void 0:c.onBlur,s);return{...t,intent:o||(l?"primary":"default"),highlight:null!=i?i:l,onFocus:h,onBlur:u}}},29202:(t,e,s)=>{"use strict";s.d(e,{useFocus:()=>r});var n=s(59496);function r(t,e){const[s,r]=(0,n.useState)(!1);(0,n.useEffect)(()=>{e&&s&&r(!1)},[e,s]);const o={ +onFocus:(0,n.useCallback)((function(e){void 0!==t&&t.current!==e.target||r(!0)}),[t]),onBlur:(0,n.useCallback)((function(e){void 0!==t&&t.current!==e.target||r(!1)}),[t])};return[s,o]}},45812:(t,e,s)=>{"use strict";s.d(e,{useIsMouseDown:()=>r});var n=s(59496);function r(){const t=(0,n.useRef)(!1),e=(0,n.useCallback)(()=>{t.current=!0},[t]),s=(0,n.useCallback)(()=>{t.current=!1},[t]);return{isMouseDown:t,handleMouseDown:e,handleMouseUp:s}}},66092:(t,e,s)=>{"use strict";s.d(e,{useMergedRefs:()=>r});var n=s(59496);function r(t){return(0,n.useCallback)(function(t){return e=>{t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}}(t),t)}},90186:(t,e,s)=>{"use strict";function n(t){return o(t,i)}function r(t){return o(t,a)}function o(t,e){const s=Object.entries(t).filter(e),n={};for(const[t,e]of s)n[t]=e;return n}function i(t){const[e,s]=t;return 0===e.indexOf("data-")&&"string"==typeof s}function a(t){return 0===t[0].indexOf("aria-")}s.d(e,{filterDataProps:()=>n,filterAriaProps:()=>r,filterProps:()=>o,isDataAttribute:()=>i,isAriaAttribute:()=>a})},48907:(t,e,s)=>{"use strict";function n(t){null!==t&&t.setSelectionRange(0,t.value.length)}s.d(e,{selectAllContent:()=>n})},47201:(t,e,s)=>{"use strict";function n(...t){return e=>{for(const s of t)void 0!==s&&s(e)}}s.d(e,{createSafeMulticastEventHandler:()=>n})},1405:(t,e,s)=>{"use strict";s.d(e,{anchors:()=>n});s(59496);const n={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},48154:(t,e,s)=>{"use strict";s.d(e,{Calendar:()=>g});var n=s(59496),r=s(97754),o=s(28353),i=s(9745),a=s(23935),l=s(1860),c=s(12539);class h extends n.PureComponent{constructor(){super(...arguments),this._dateFormatter=new l.DateFormatter,this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){const t=r(c.day,{[c.selected]:this.props.isSelected,[c.disabled]:this.props.isDisabled,[c.withinSelectedRange]:this._withinSelectedRange(),[c.isOnHighlightedEdge]:this._isOnHighlightedEdge(),[c.currentDay]:this._isCurrentDay()});return n.createElement("span",{className:t,onClick:this._onClick,"data-day":this._dateFormatter.formatLocal(this.props.day)},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:t,highlightedFrom:e,highlightedTo:s}=this.props;return!(!e||!s)&&((0,a.isSameDay)(t,e)||(0,a.isSameDay)(t,s))}_withinSelectedRange(){const{day:t,highlightedFrom:e,highlightedTo:s}=this.props;return!(!e||!s)&&this._isBetweenByDay(e,t,s)}_isCurrentDay(){return(0,a.isSameDay)(new Date,this.props.day)}_isBetweenByDay(t,e,s){const n=(0,a.resetToDayStart)(t),r=(0,a.resetToDayStart)(e),o=(0,a.resetToDayStart)(s);return nu.map(t=>n.createElement("span",{key:t},t))}render(){return n.createElement("div",{className:c.month},n.createElement("div",{className:c.weekdays},this._renderWeekdays()),n.createElement("div",{className:c.weeks},this._renderWeeks()))}_renderWeeks(){const t=[];let e=(0,a.resetToWeekStart)((0,a.resetToMonthStart)(this.props.viewDate),!0);for(let s=0;s<6;s++)t.push(this._renderWeek(e)),e=new Date((0,a.addOneWeek)(e));return t}_renderWeek(t){const e=[];for(let s=0;s<7;s++){const r=new Date(t);r.setDate(r.getDate()+s),(0,a.isSameMonth)(r,this.props.viewDate)&&e.push(n.createElement(h,{key:s,day:r,isDisabled:this._isDayDisabled(r),isSelected:(0,a.isSameDay)(r,this.props.selectedDate),onClick:this.props.onClickDay,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}if(0===e.length)return null;const s=(0,a.getNumberOfWeek)(t);return n.createElement("div",{className:c.week,key:s},e)}_isDayDisabled(t){if(!(0,a.isInRange)(t,this.props.minDate,this.props.maxDate))return!0;const e=[6,0].includes(t.getDay());return!!this.props.disableWeekends&&e}}var d=s(30360);const m=[(0,o.t)("January"),(0,o.t)("February"),(0,o.t)("March"),(0,o.t)("April"),(0,o.t)("May"),(0,o.t)("June"),(0,o.t)("July"),(0,o.t)("August"),(0,o.t)("September"),(0,o.t)("October"),(0,o.t)("November"),(0,o.t)("December")];class g extends n.PureComponent{constructor(t){super(t),this._prevMonth=()=>{const t=new Date(this.state.viewDate);t.setMonth(t.getMonth()-1),this.setState({viewDate:t}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._nextMonth=()=>{const t=new Date(this.state.viewDate);t.setMonth(t.getMonth()+1),this.setState({viewDate:t}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._onClickDay=t=>{this.setState({viewDate:new Date(t)}),this.props.onSelect&&this.props.onSelect(new Date(t))},this.state={viewDate:t.selectedDate}}render(){return n.createElement("div",{className:r(c.calendar,this.props.popupStyle&&c.popupStyle,this.props.className),tabIndex:-1},n.createElement("div",{className:c.header},n.createElement(i.Icon,{icon:d,onClick:this._prevMonth,className:r(c.switchBtn,c.prev)}),n.createElement("div",{className:c.title},`${m[this.state.viewDate.getMonth()]} ${this.state.viewDate.getFullYear()}`),n.createElement(i.Icon,{icon:d,onClick:this._nextMonth,className:r(c.switchBtn,c.next)})),n.createElement(p,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,minDate:this.props.minDate,onClickDay:this._onClickDay,disableWeekends:this.props.disableWeekends,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}}g.defaultProps={popupStyle:!0}},27404:(t,e,s)=>{"use strict";s.d(e,{DatePicker:()=>m}) +;var n=s(28353),r=s(59496),o=s(97754),i=s(32563),a=s(1860),l=s(48154),c=s(44384),h=s(23982),u=s(23935),p=s(67029),d=s(71767);class m extends r.PureComponent{constructor(t){super(t),this._pickerInputContainerRef=r.createRef(),this._dateFormatter=new a.DateFormatter,this._fixValue=t=>(t=(t=t.substring(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(t)||/^\d{4}-\d{2}$/.test(t))&&(t+="-"),t),this._isValid=t=>{if(/^[0-9]{4}(-[0-9]{2}){2}/.test(t)){const e=new Date(t.concat("T00:00"));return!(0,u.isInvalidDateObj)(e)&&(!!this.props.noRangeValidation||(0,u.isInRange)(e,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=t=>{var e;if(!this.props.revertInvalidData||(null===(e=this._pickerInputContainerRef.current)||void 0===e?void 0:e.contains(t.relatedTarget)))return;const{value:s}=t.target;if(!this._isValid(s)){const e=new Date(this.state.date);this.setState({pickerInputKey:t.timeStamp,date:e,isInvalid:!1}),this.props.onPick(e)}},this._onType=t=>{const e=this._isValid(t)?new Date(t.concat("T00:00")):null;e?this.setState({date:e,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(e)},this._onSelect=t=>{this.setState({date:t,showCalendar:!1,isInvalid:!1}),this.props.onPick(t)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1})},this._getErrors=()=>{const t=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&t.push((0,n.t)("Please enter the right date format yyyy-mm-dd")),t},this.state={pickerInputKey:0,date:t.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(t.initial))}}render(){return i.mobiletouch?r.createElement(h.NativePickerInput,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:d,disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:o(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):r.createElement("div",{ref:this._pickerInputContainerRef},r.createElement(c.PickerInput,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:d,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:o(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent +},r.createElement(l.Calendar,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect})))}UNSAFE_componentWillReceiveProps(t){this.props.initial!==t.initial&&this.setState({date:t.initial})}_getFontSizeClassName(t){return t?"large"===t?p.InputClasses.FontSizeLarge:p.InputClasses.FontSizeMedium:void 0}}m.defaultProps={position:"fixed",withCalendar:!0}},23982:(t,e,s)=>{"use strict";s.d(e,{NativePickerInput:()=>h});var n=s(59496),r=s(97754),o=s(9745),i=s(86623),a=s(86629),l=s(78274),c=s(554);class h extends n.PureComponent{constructor(t){super(t),this._input=null,this._nativeInputRef=n.createRef(),this._handleInputRef=t=>{this._input=t,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.state.value),this.setState({isFocused:!1})},this._onChange=t=>{const{value:e}=t.target;e&&(this.setState({value:e}),this.props.onChange(e))},this.state={value:t.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:t,disabled:e,errors:s,InputComponent:h=i.FormInput}=this.props,u=!this.props.readonly&&!e,p=this.props.showErrorMessages&&s&&s.length>0;return n.createElement("div",{className:c.pickerInput},n.createElement(h,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,endSlot:s&&s.length?void 0:n.createElement(l.EndSlot,null,n.createElement(o.Icon,{icon:this.props.icon,className:r(c.icon,e&&c.disabled)})),className:t,inputClassName:c.textInput,size:this.props.size,disabled:e,hasErrors:p,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:a.MessagesPosition.Attached,name:u?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!p&&this.state.isFocused?"primary":void 0}),u&&n.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:c.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}},44384:(t,e,s)=>{"use strict";s.d(e,{PickerInput:()=>d});var n=s(59496),r=s(97754),o=s(88537),i=s(9745),a=s(86623),l=s(86629),c=s(78274),h=s(76594),u=s(65718),p=s(554);class d extends n.PureComponent{constructor(t){super(t),this._input=null,this._inputContainer=null,this._handleFocus=()=>{this.props.showOnFocus&&this.props.onShowPicker()},this._handleInputRef=t=>{this._input=t,this.props.inputReference&&this.props.inputReference(this._input)},this._handleContainerRef=t=>{this._inputContainer=t},this._onShowPicker=t=>{if(t&&this._inputContainer){const e=t.getBoundingClientRect(),s=this._inputContainer.getBoundingClientRect();e.width&&e.width>window.innerWidth-s.left?(t.style.right="0",t.style.left="auto"):(t.style.right="auto",t.style.left=s.left+"px");const n=window.innerHeight-s.bottom,r=s.top;if(n>=e.height)return void(t.style.top=s.bottom+"px");t.style.top="auto", +t.style.bottom=r{const t=(0,o.ensureNotNull)(this._input).value;this.setState({value:t}),this.props.onType(t)},this._onKeyDown=t=>{this.props.onHidePicker()},this._onKeyPress=t=>{if(t.charCode){const e=String.fromCharCode(t.charCode);this.props.inputRegex.test(e)||t.preventDefault()}},this._onKeyUp=t=>{if(8!==t.keyCode){const t=(0,o.ensureNotNull)(this._input).value,e=this.props.fixValue(t);e!==t&&this.setState({value:e})}},this.state={value:t.value}}UNSAFE_componentWillReceiveProps(t){t.value!==this.props.value&&this.setState({value:t.value})}render(){const{position:t="fixed",className:e,size:s,disabled:o,readonly:d,errors:m,icon:g,InputComponent:f=a.FormInput}=this.props;return n.createElement("div",{className:p.pickerInput,ref:this._handleContainerRef},n.createElement(f,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:e,size:s,disabled:o,errors:m,messagesPosition:l.MessagesPosition.Attached,hasErrors:this.props.showErrorMessages&&m&&m.length>0,name:this.props.name,readonly:d,endSlot:m&&m.length?void 0:n.createElement(c.EndSlot,null,n.createElement(i.Icon,{icon:g,className:r(p.icon,o&&p.disabled),onClick:o||d?void 0:this.props.onShowPicker})),"data-name":this.props.name}),this.props.showPicker&&!d?n.createElement(u.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},n.createElement(h.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},e=>n.createElement("span",{ref:e,style:{pointerEvents:"auto"}},n.createElement("div",{className:r(p.picker,p[t]),key:"0",ref:this._onShowPicker},this.props.children)))):null)}}d.defaultProps={showOnFocus:!0}},23935:(t,e,s)=>{"use strict";function n(t,e,s=1){const n=Math.max(Math.ceil((e-t)/s),0),r=Array(n);for(let e=0;e6)throw new Error("Invalid day is provided");return 0===t?6:t-1}(s.getDay()):s.getDay();return s.setDate(s.getDate()-n),s}function l(t){const e=o(t);return e.setDate(1),e}function c(t,e){return Number(o(t))===Number(o(e))}function h(t,e){return Number(l(t))===Number(l(e))}function u(t){const e=new Date(t.getFullYear(),0,1),s=(Number(t)-Number(e))/864e5;return Math.ceil((s+e.getDay()+1)/7)}function p(t){const e=new Date(t);return e.setDate(e.getDate()+7),e}function d(t,e,s){const n=!e||Number(o(e))-Number(o(t))<=0;return(!s||Number(o(s))-Number(o(t))>=0)&&n}function m(t){return Number.isNaN(Number(t))}function g(t){return new Date(t).getTimezoneOffset()/60}function f(t){const e=new Date(t);return e.setHours(e.getHours()+g(e)),e}function v(t){const e=new Date(t) +;return e.setHours(e.getHours()-g(e)),e}s.d(e,{range:()=>n,twoDigitsFormat:()=>r,resetToDayStart:()=>o,resetToDayEnd:()=>i,resetToWeekStart:()=>a,resetToMonthStart:()=>l,isSameDay:()=>c,isSameMonth:()=>h,getNumberOfWeek:()=>u,addOneWeek:()=>p,isInRange:()=>d,isInvalidDateObj:()=>m,subtractLocalTime:()=>f,addLocalTime:()=>v})},70412:(t,e,s)=>{"use strict";s.d(e,{hoverMouseEventFilter:()=>o,useAccurateHover:()=>i,useHover:()=>r});var n=s(59496);function r(){const[t,e]=(0,n.useState)(!1);return[t,{onMouseOver:function(t){o(t)&&e(!0)},onMouseOut:function(t){o(t)&&e(!1)}}]}function o(t){return!t.currentTarget.contains(t.relatedTarget)}function i(t){const[e,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const e=e=>{if(null===t.current)return;const n=t.current.contains(e.target);s(n)};return document.addEventListener("mouseover",e),()=>document.removeEventListener("mouseover",e)},[]),e}},10959:(t,e,s)=>{"use strict";s.d(e,{ErrorIcon:()=>l});var n=s(59496),r=s(97754),o=s(9745),i=s(83546),a=s(93314);function l(t){const{intent:e="danger"}=t;return n.createElement(o.Icon,{icon:i,className:r(a["error-icon"],a["intent-"+e])})}},86623:(t,e,s)=>{"use strict";s.d(e,{FormInput:()=>c});var n=s(59496),r=s(31261),o=s(86629),i=s(78274),a=s(47201),l=s(66092);function c(t){var e;const{intent:s,onFocus:c,onBlur:h,onMouseOver:u,onMouseOut:p,containerReference:d=null,endSlot:m,hasErrors:g,hasWarnings:f,errors:v,warnings:w,alwaysShowAttachedErrors:b,iconHidden:y,messagesPosition:S,messagesAttachment:D,customErrorsAttachment:_,messagesRoot:E,inheritMessagesWidthFromTarget:C,disableMessagesRtlStyles:k,...F}=t,M=(0,o.useControlValidationLayout)({hasErrors:g,hasWarnings:f,errors:v,warnings:w,alwaysShowAttachedErrors:b,iconHidden:y,messagesPosition:S,messagesAttachment:D,customErrorsAttachment:_,messagesRoot:E,inheritMessagesWidthFromTarget:C,disableMessagesRtlStyles:k}),R=(0,a.createSafeMulticastEventHandler)(c,M.onFocus),x=(0,a.createSafeMulticastEventHandler)(h,M.onBlur),N=(0,a.createSafeMulticastEventHandler)(u,M.onMouseOver),I=(0,a.createSafeMulticastEventHandler)(p,M.onMouseOut);return n.createElement(n.Fragment,null,n.createElement(r.InputControl,{...F,intent:null!==(e=M.intent)&&void 0!==e?e:s,onFocus:R,onBlur:x,onMouseOver:N,onMouseOut:I,containerReference:(0,l.useMergedRefs)([d,M.containerReference]),endSlot:n.createElement(n.Fragment,null,M.icon&&n.createElement(i.EndSlot,{icon:!0},M.icon),m)}),M.renderedErrors)}},86629:(t,e,s)=>{"use strict";s.d(e,{MessagesPosition:()=>v,useControlValidationLayout:()=>F});var n=s(59496),r=s(97754),o=s(29202),i=s(70412),a=s(78274),l=s(1405),c=s(86431),h=s(87995);var u=s(66875),p=s(62820);class d extends n.PureComponent{render(){const{children:t=[],show:e=!1,customErrorClass:s,disableRtlStyles:o}=this.props,i=r(u.errors,{[u.show]:e},s),a=t.map((t,e)=>n.createElement("div",{className:u.error,key:e},t));let l={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0, +left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,p.isRtl)()&&!o){const{left:t,right:e}=l;l={...l,left:e,right:t}}return n.createElement("div",{style:l,className:i},a)}}const m=(0,c.makeOverlapable)((g=d,(f=class extends n.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame(()=>this.setState(this._calcProps(this.props)))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=h.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),()=>this.setState(this._calcProps(this.props)))}render(){return n.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},n.createElement(g,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:s,inheritWidthFromTarget:n=!0,inheritMaxWidthFromTarget:r=!1}=this.props,o={width:n?e.width:s,maxWidth:r?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":o.top=e.y;break;default:o[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":o.left=e.x;break;default:o[t.attachment.horizontal]=e.x}return o}return{}}_calcTargetProps(t,e,s){const n=t.getBoundingClientRect(),r=this._instanceElem.getBoundingClientRect(),o="parent"===this.props.root?this._getCoordsRelToParentEl(t,n):this._getCoordsRelToDocument(n);if(null===o)return null;const i=this._getDimensions(r),a=this._getDimensions(n).width;let l=0,c=0;switch(e.vertical){case"top":c=o[s.vertical];break;case"bottom":c=o[s.vertical]-i.height;break;case"middle":c=o[s.vertical]-i.height/2}switch(e.horizontal){case"left":l=o[s.horizontal];break;case"right":l=o[s.horizontal]-i.width;break;case"center":l=o[s.horizontal]-i.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:a}}_getCoordsRelToDocument(t){const e=pageYOffset,s=pageXOffset,n=t.top+e,r=t.bottom+e,o=t.left+s;return{top:n,bottom:r, +left:o,right:t.right+s,middle:(n+t.height)/2,center:o+t.width/2}}_getCoordsRelToParentEl(t,e){const s=t.offsetParent;if(null===s)return null;const n=s.scrollTop,r=s.scrollLeft,o=t.offsetTop+n,i=t.offsetLeft+r,a=e.width+i;return{top:o,bottom:e.height+o,left:i,right:a,middle:(o+e.height)/2,center:(i+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",f));var g,f,v,w,b=s(10959),y=s(52965);!function(t){t[t.Attached=0]="Attached",t[t.Static=1]="Static",t[t.Hidden=2]="Hidden"}(v||(v={})),function(t){t.Top="top",t.Bottom="bottom"}(w||(w={}));const S={top:{attachment:l.anchors.topRight.attachment,targetAttachment:l.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:l.anchors.bottomRight.attachment,targetAttachment:l.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function D(t){const{isOpened:e,target:s,errorAttachment:r=w.Top,customErrorsAttachment:o,root:i="parent",inheritWidthFromTarget:a=!1,disableRtlStyles:l,children:c}=t,{attachment:h,targetAttachment:u,attachmentOffsetY:p}=null!=o?o:S[r];return n.createElement(m,{isOpened:e,target:s,root:i,inheritWidthFromTarget:a,attachment:h,targetAttachment:u,attachmentOffsetY:p,disableRtlStyles:l,inheritMaxWidthFromTarget:!0,show:!0},c)}function _(t,e){return Boolean(t)&&void 0!==e&&e.length>0}function E(t,e,s){return t===v.Attached&&_(e,s)}function C(t,e,s){return t===v.Static&&_(e,s)}function k(t,e,s){const{hasErrors:n,hasWarnings:r,alwaysShowAttachedErrors:o,iconHidden:i,errors:a,warnings:l,messagesPosition:c=v.Static}=t,h=E(c,n,a),u=E(c,r,l),p=h&&(e||s||Boolean(o)),d=!p&&u&&(e||s),m=C(c,n,a),g=!m&&C(c,r,l),f=!i&&Boolean(n);return{hasAttachedErrorMessages:h,hasAttachedWarningMessages:u,showAttachedErrorMessages:p,showAttachedWarningMessages:d,showStaticErrorMessages:m,showStaticWarningMessages:g,showErrorIcon:f,showWarningIcon:!i&&!f&&Boolean(r),intent:function(t,e){return Boolean(t)?"danger":Boolean(e)?"warning":void 0}(n,r)}}function F(t){var e,s;const{errors:l,warnings:c,messagesAttachment:h,customErrorsAttachment:u,messagesRoot:p,inheritMessagesWidthFromTarget:d,disableMessagesRtlStyles:m}=t,[g,f]=(0,o.useFocus)(),[v,w]=(0,i.useHover)(),S=(0,n.useRef)(null),{hasAttachedErrorMessages:_,hasAttachedWarningMessages:E,showAttachedErrorMessages:C,showAttachedWarningMessages:F,showStaticErrorMessages:M,showStaticWarningMessages:R,showErrorIcon:x,showWarningIcon:N,intent:I}=k(t,g,v),B=x||N?n.createElement(b.ErrorIcon,{intent:x?"danger":"warning"}):void 0,A=_?n.createElement(D,{errorAttachment:h,customErrorsAttachment:u,isOpened:C,target:S.current,root:p,inheritWidthFromTarget:d,disableRtlStyles:m,children:l}):void 0,z=E?n.createElement(D,{errorAttachment:h,isOpened:F,target:S.current,root:p, +inheritWidthFromTarget:d,disableRtlStyles:m,children:c}):void 0,P=M?n.createElement(a.AfterSlot,{className:r(y["static-messages"],y.errors)},null==l?void 0:l.map((t,e)=>n.createElement("p",{key:e,className:y.message},t))):void 0,T=R?n.createElement(a.AfterSlot,{className:r(y["static-messages"],y.warnings)},null==c?void 0:c.map((t,e)=>n.createElement("p",{key:e,className:y.message},t))):void 0;return{icon:B,renderedErrors:null!==(s=null!==(e=null!=A?A:z)&&void 0!==e?e:P)&&void 0!==s?s:T,containerReference:S,intent:I,...f,...w}}},30360:t=>{t.exports=''},71767:t=>{t.exports=''},83546:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/743d0db623f41a2597c1e441233e4a78.svg b/charting_library/bundles/743d0db623f41a2597c1e441233e4a78.svg new file mode 100644 index 00000000..c78426bf --- /dev/null +++ b/charting_library/bundles/743d0db623f41a2597c1e441233e4a78.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/752c67ea7ac85fb0cd2f01623bd213bc.svg b/charting_library/bundles/752c67ea7ac85fb0cd2f01623bd213bc.svg new file mode 100644 index 00000000..3fef3858 --- /dev/null +++ b/charting_library/bundles/752c67ea7ac85fb0cd2f01623bd213bc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/756e573bd5155c508a91d07c586c3669.svg b/charting_library/bundles/756e573bd5155c508a91d07c586c3669.svg new file mode 100644 index 00000000..eadcc8d3 --- /dev/null +++ b/charting_library/bundles/756e573bd5155c508a91d07c586c3669.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7585c22521c2b4c30ed2c64d13bcb872.svg b/charting_library/bundles/7585c22521c2b4c30ed2c64d13bcb872.svg new file mode 100644 index 00000000..79656f3b --- /dev/null +++ b/charting_library/bundles/7585c22521c2b4c30ed2c64d13bcb872.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/75af36c37801a630adf29c84bcb12855.svg b/charting_library/bundles/75af36c37801a630adf29c84bcb12855.svg new file mode 100644 index 00000000..59c97d47 --- /dev/null +++ b/charting_library/bundles/75af36c37801a630adf29c84bcb12855.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7678.2a02d7fc5a1d8b8dff1f.js b/charting_library/bundles/7678.2a02d7fc5a1d8b8dff1f.js new file mode 100644 index 00000000..b4725957 --- /dev/null +++ b/charting_library/bundles/7678.2a02d7fc5a1d8b8dff1f.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7678],{52014:()=>{},69445:()=>{},99158:t=>{t.exports={wrapper:"wrapper-BaEDTGCd",touch:"touch-BaEDTGCd"}},13398:function(t,e){var i,s,n,o;o=function(t){var e=Object.prototype.toString,i=Array.isArray||function(t){return"[object Array]"===e.call(t)};function s(t){return"function"==typeof t}function n(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var r=RegExp.prototype.test,a=/\S/;function h(t){return!function(t,e){return r.call(t,e)}(a,t)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},p=/\s*/,c=/\s+/,d=/\s*=/,u=/\s*\}/,_=/#|\^|\/|>|\{|&|=|!/;function g(t){this.string=t,this.tail=t,this.pos=0}function f(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function v(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var i=e[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},g.prototype.scanUntil=function(t){var e,i=this.tail.search(t);switch(i){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,i),this.tail=this.tail.substring(i)}return this.pos+=e.length,e},f.prototype.push=function(t){return new f(t,this)},f.prototype.lookup=function(t){var e,i=this.cache;if(i.hasOwnProperty(t))e=i[t];else{for(var n,r,a=this,h=!1;a;){if(t.indexOf(".")>0)for(e=a.view,n=t.split("."),r=0;null!=e&&r0?n[n.length-1][4]:i;break;default:s.push(e)}return i}(function(t){for(var e,i,s=[],n=0,o=t.length;n"===o?r=this.renderPartial(n,e,i,s):"&"===o?r=this.unescapedValue(n,e):"name"===o?r=this.escapedValue(n,e):"text"===o&&(r=this.rawValue(n)),void 0!==r&&(a+=r);return a},v.prototype.renderSection=function(t,e,n,o){var r=this,a="",h=e.lookup(t[1]);if(h){if(i(h))for(var l=0,p=h.length;l"'`=\/]/g,(function(t){return l[t]}))},t.Scanner=g,t.Context=f,t.Writer=v},e&&"string"!=typeof e.nodeName?o(e):(s=[e],void 0===(n="function"==typeof(i=o)?i.apply(e,s):i)||(t.exports=n))},30812:(t,e,i)=>{"use strict";i.d(e,{SidebarCustomScroll:()=>d});var s=i(32563),n=i(2872),o=i.n(n),r=i(15828),a=i(59199),h=i(53364);const l=[()=>navigator.userAgent.includes("Win")&&navigator.userAgent.includes("Chrome")?1/window.devicePixelRatio:1,()=>16,(t=(()=>0))=>{var e;return.8*(null!==(e=t())&&void 0!==e?e:0)}];i(69445);var p=i(99158);const c={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1};class d{constructor(t,e,i={}){if(this.scrolled=new(o()),this.scrolltoend=new(o()),this.scrolltostart=new(o()), +this.visibilityCallbacks=[],this._scrollTargetTop=0,this._scrollSpeed=40,this._shadowOffset=10,this._shadowTop=null,this._shadowBottom=null,this._bottomFixed=!1,this._dragInitialized=!1,this._dragging=!1,this._draggable=null,this._atStart=!1,this._atEnd=!1,this._stickyBottom=null,this._tempIntervalID=void 0,this._animation=null,this._saved=null,this._options={...c,...i},this._wrapper=t,this._wrapper.classList.add(p.wrapper),this._content=e,this._headerHeight=this._options.headerHeight,this._scrollMarginTop=this._options.scrollMarginTop,this._scrollBar=document.createElement("div"),this._scrollBar.classList.add("sb-scrollbar","sb-scrollbar-body"),this._options.additionalClass&&this._scrollBar.classList.add(this._options.additionalClass),this._scrollBar.classList.toggle("active-always",this._options.alwaysVisible),this._scrollBarWrapper=document.createElement("div"),this._scrollBarWrapper.classList.add("sb-scrollbar-wrap"),this._touch=s.touch,this._touch)return this._content.style.position="relative",this._wrapper.classList.add(p.touch),void this._wrapper.addEventListener("scroll",()=>this._onScroll());this._wrapper.style.overflow="hidden",this._unsubscribe=(()=>{const t=()=>{this._bottomFixed||this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.add("active"),this._onScroll())},e=()=>{this._bottomFixed||this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.remove("active"),this._onScroll())},i=t=>{if(!t.defaultPrevented){const e=function(t,e=(()=>({}))){return{x:t.deltaX*l[t.deltaMode](()=>e().width),y:t.deltaY*l[t.deltaMode](()=>e().height)}}(t,()=>({height:this._wrapper.clientHeight})).y;this.scroll(-e,1)||(t.stopPropagation(),t.preventDefault())}};return this._wrapper.addEventListener("mouseenter",t),this._wrapper.addEventListener("mouseleave",e),this._wrapper.addEventListener("wheel",i),()=>{this._wrapper.removeEventListener("mouseenter",t),this._wrapper.removeEventListener("mouseleave",e),this._wrapper.removeEventListener("wheel",i)}})(),!1!==this._options.showTopShadow&&(this._shadowTop=document.createElement("div"),this._shadowTop.classList.add("sb-inner-shadow","top","i-invisible"),this._wrapper.appendChild(this._shadowTop)),!1!==this._options.showBottomShadow&&(this._shadowBottom=document.createElement("div"),this._shadowBottom.classList.add("sb-inner-shadow"),this._wrapper.appendChild(this._shadowBottom)),this._shadowTop&&this._headerHeight&&(this._shadowTop.style.top=this._headerHeight-this._shadowOffset+"px"),this._wrapper.appendChild(this._scrollBarWrapper),this._scrollBarWrapper.appendChild(this._scrollBar),this._onScroll()}isTouch(){return this._touch}getScrollBar(){return this._scrollBar}initDraggable(){return this._dragInitialized||(this._draggable=new h.Draggable({axis:"y",source:this._scrollBar,containment:this._scrollBarWrapper,start:()=>{this._dragging=!0},stop:()=>{this._dragging=!1},drag:()=>{this.updateScroll()}}),this._dragInitialized=!0),this}updateScroll(){if(this._touch)return this;const t=Math.ceil((0, +r.position)(this._scrollBar).top-this._scrollMarginTop-this._headerHeight),e=this.getContainerHeightWithoutHeader(),i=(0,r.outerHeight)(this._content),s=i-e-1;return e<=0||(this._scrollTargetTop=s<=0?this._headerHeight:Math.min(-t*i/e+this._headerHeight,this._headerHeight),t+(0,r.contentHeight)(this._scrollBar)+2>=e?this.scrollToEnd():(this._content.style.top=this._scrollTargetTop+"px",this._onScroll())),this}getContainerHeightWithoutHeader(){return this._wrapper.getBoundingClientRect().height-this._headerHeight}getContainerHeight(){return this._wrapper.getBoundingClientRect().height}getContentHeight(){return this._content.getBoundingClientRect().height}updateScrollBar(){if(this._touch)return this;const t=(0,r.position)(this._content).top,e=this.getContentHeight(),i=this.getContainerHeight(),s=this.getContainerHeightWithoutHeader(),n=1+this._headerHeight,o=s-2,a=(Math.abs(t)-this._headerHeight)*o/e,h=i*i/e;return this.isContentShort()?(this._scrollBar.classList.add("js-hidden"),this._wrapper.classList.remove("sb-scroll-active")):(this._scrollBar.classList.remove("js-hidden"),this._scrollBar.style.height=h+"px",this._scrollBar.style.top=n+a+"px",this._wrapper.classList.add("sb-scroll-active"),this.initDraggable()),this}scroll(t,e){const i=(0,r.position)(this._content).top,s=(0,r.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1,n=e||this._scrollSpeed;return s<=0||(this._scrollTargetTop=Math.max(-s+this._headerHeight,Math.min(this._headerHeight,i+t*n)),this.setContentTop(this._scrollTargetTop),this._onScroll())}animateTo(t){if(this._touch)return this;const e=(0,r.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scrollTargetTop=Math.max(-e+this._headerHeight,Math.min(this._headerHeight,-t)),this._animation&&this._animation.stop(),this._animation=(0,a.doAnimate)({duration:500,from:parseFloat(getComputedStyle(this._content).top),to:this._scrollTargetTop,onStep:(t,e)=>{this._content.style.top=e+"px"},onComplete:()=>{this._onScroll()}})}resize(){if(this._bottomFixed)return;const t=(0,r.outerHeight)(this._content),e=(0,r.outerHeight)(this._wrapper);!this._options.vAlignBottom&&ta&&t+i.areaHeighth?h-t-i.areaHeight:a-t +}else"top"===i.position&&(l=a-t);return this.scroll(l,1),this._onScroll(),!1}scrollToEnd(){const t=(0,r.position)(this._content).top,e=(0,r.outerHeight)(this._content),i=(0,r.outerHeight)(this._wrapper),s=e>i?t+(i-(e+t))+1:1;return this.setContentTop(s),this._onScroll(),this}scrollToStart(){return this.setContentTop(this._headerHeight),this._onScroll(),this}currentPosition(){return Math.round((0,r.position)(this._content).top)}atStart(){return Math.round((0,r.position)(this._content).top)>=this._headerHeight}atEnd(t){"number"==typeof t&&isFinite(t)||(t=0);const e=Math.round((0,r.position)(this._content).top),i=Math.round((0,r.outerHeight)(this._content)),s=Math.round((0,r.outerHeight)(this._wrapper));return i-Math.abs(e)-1<=s+t}checkContentVisibility(){this._onContentVisible()}subscribeToContentVisible(t,e,i){this.visibilityCallbacks.push({id:t,element:e,callback:i})}triggerVisibilityCallbacks(t){this._onContentVisible(t)}save(){return this._saved={top:(0,r.position)(this._content).top,height:(0,r.outerHeight)(this._content)},this}restore(){if(this._saved){if(this._saved.top===(0,r.position)(this._content).top&&this._saved.height===(0,r.outerHeight)(this._content))return this._saved=null,this;this._options.vAlignBottom&&(this._saved.top-=(0,r.outerHeight)(this._content)-this._saved.height,this._saved.top>this._headerHeight&&(this._saved.top=this._headerHeight)),this.setContentTop(this._saved.top),this._saved=null,this._onScroll(!0)}return this}fixBottom(){if(this._bottomFixed)return this;if(this._touch){const t=(0,r.outerHeight)(this._content),e=this._wrapper.scrollTop;this._tempIntervalID=setInterval(()=>{this._wrapper.scrollTop=e+((0,r.outerHeight)(this._content)-t)},0)}else this._content.style.top="auto",this._content.style.bottom=(0,r.outerHeight)(this._wrapper)-(0,r.position)(this._content).top-(0,r.outerHeight)(this._content)+"px";return this._bottomFixed=!0,this}releaseBottom(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):(this._content.style.bottom="auto",this._content.style.top=(0,r.position)(this._content).top+"px"),this._bottomFixed=!1,this._onScroll(),this):this}setContentTop(t){return this._touch?this._options.vAlignBottom&&(0,r.outerHeight)(this._content)<(0,r.outerHeight)(this._wrapper)?(this._wrapper.style.overflowY="visible",this._content.style.position="absolute",this._content.style.bottom="0px"):(this._content.style.position="relative",this._content.style.position="auto",this._wrapper.style.overflowY="auto",this._wrapper.scrollTop=-t):this._content.style.top=t+"px",this}isContentShort(){return this.getContentHeight()<=this.getContainerHeightWithoutHeader()}destroy(){var t;this._animation&&this._animation.stop(),this._scrollBarWrapper&&this._scrollBarWrapper.remove(),this._shadowBottom&&this._shadowBottom.remove(),this._shadowTop&&this._shadowTop.remove(),this._draggable&&(this._draggable.destroy(),this._draggable=null),this._content.style.cssText="",this._wrapper.style.cssText="",null===(t=this._unsubscribe)||void 0===t||t.call(this)}_onScroll(t){ +this._touch||(this._content.style.bottom="auto"),this.scrolled.fire(),this._dragging&&!0!==t||this.updateScrollBar();const e=this.atStart(),i=this.atEnd();return this._shadowTop&&this._shadowTop.classList.toggle("i-invisible",!!e),this._shadowBottom&&this._shadowBottom.classList.toggle("i-invisible",!!i),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&(this._atStart=!1),!this._atEnd&&i?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!i&&(this._atEnd=!1),this._options.vAlignBottom&&(this._stickyBottom=(0,r.outerHeight)(this._content)-Math.abs((0,r.position)(this._content).top)-(0,r.outerHeight)(this._wrapper)),(this._atStart||this._atEnd)&&("function"==typeof this._options.bubbleScrollEvent?Boolean(this._options.bubbleScrollEvent()):Boolean(this._options.bubbleScrollEvent))}_contentIsVisible(t){return(0,r.position)(t.element).top>-1*this.currentPosition()}_onContentVisible(t){if(!this.visibilityCallbacks.length)return;const e=t||this._contentIsVisible.bind(this),i=[],s=this.visibilityCallbacks.filter((t,s)=>{if(!this._content.contains(t.element))return!1;const n=e(t);return n&&i.push(s),!n});i.forEach(e=>{this.visibilityCallbacks[e].callback(!!t)}),this.visibilityCallbacks=s}}},20497:(t,e,i)=>{"use strict";var s=i(23127);const n=i(98125).getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(o,r,a){var h,l,p;return"get"===o?h=r:(l=r,"object"==typeof o&&void 0===r?(l=o,o="init"):"string"!=typeof o&&(o="init")),"getInstance"===o?s(this).eq(0).data(t):"destroy"===o?(p=s(this).eq(0).data(t))?void("function"==typeof p.destroy?(i(p,"destroy",l),s(this).eq(0).removeData(t)):n.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===o?(p=s(this).eq(0).data(t))?"function"==typeof p[h]?i(p,h,a):p[h]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):s(this).each((function(){var r=s(this),a=r.data(t);void 0===a&&(a=void 0===l?e(r):e(r,l),r.data(t,a)),"init"!==o&&("function"==typeof a[o]?i(a,o,l):n.logError("[Block Plugin] "+t+" does not support command "+o))}))};function i(t,e,i){return void 0===i?t[e]():t[e](i)}}},78754:(t,e,i)=>{"use strict";i.d(e,{buttonLoader:()=>r});i(52014);var s=i(20497),n=i(68587),o=i(23127);function r(t){return new a(o(t))}o.fn.tvButtonLoader=(0,s.createTvBlockWithInstance)("tv-button-loader",(function(t){return new a(t)}));class a{constructor(t){this.$btn=o(t).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html(''+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"), +this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*n.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},n.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){this.loading?this.stop():this.start()}contentHtml(t){return t?(this.$btn.find(".tv-button__text").html(t),t):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0)}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},53364:(t,e,i)=>{"use strict";i.d(e,{Draggable:()=>a});var s=i(88537),n=i(15828),o=i(49483),r=i(32563);class a{constructor(t){var e,i;this._helper=null,this._handleDragStart=t=>{var e;if(null!==this._helper)return;const i=this._source;i.classList.add("ui-draggable-dragging");const[s,o]=[(0,n.outerWidth)(i),(0,n.outerHeight)(i)];this._helper={startTop:parseFloat(i.style.top)||0,startLeft:parseFloat(i.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[s,o],containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(i).marginLeft)-parseInt(getComputedStyle(i).marginRight)-s,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(i).marginTop)-parseInt(getComputedStyle(i).marginBottom)-o]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-s,window.scrollY+document.documentElement.offsetHeight-o]:null},null===(e=this._start)||void 0===e||e.call(this)},this._handleDragMove=t=>{var e;if(null===this._helper)return;const{current:i,initial:s}=t.detail,n=this._source,o=this._helper.nextTop,r=this._helper.nextLeft,a="y"===this._axis||!1===this._axis||0!==i.movementY;if(a){const t=this._helper.startTop;isFinite(t)&&(this._helper.nextTop=i.clientY-s.clientY+t)}const h="x"===this._axis||!1===this._axis||0!==i.movementY;if(h){const t=this._helper.startLeft;isFinite(t)&&(this._helper.nextLeft=i.clientX-s.clientX+t)}if(null!==this._helper.containment){const[t,e,i,s]=this._helper.containment;a&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,s), +this._helper.nextTop=Math.max(this._helper.nextTop,e)),h&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,i),this._helper.nextLeft=Math.max(this._helper.nextLeft,t))}null!==this._helper.raf||o===this._helper.nextTop&&r===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame(()=>{null!==this._helper&&(null!==this._helper.nextTop&&(n.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(n.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)})),null===(e=this._drag)||void 0===e||e.call(this)},this._handleDragStop=t=>{var e;if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,null===(e=this._stop)||void 0===e||e.call(this)};const s=this._source=t.source;s.classList.add("ui-draggable");const o=this._handle=null!==(e=t.handle?s.querySelector(t.handle):null)&&void 0!==e?e:s;o.classList.add("ui-draggable-handle"),this._start=t.start,this._stop=t.stop,this._drag=t.drag,this._backend=new h({handle:o,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=null!==(i=t.axis)&&void 0!==i&&i,this._containment=t.containment}destroy(){const t=this._source;t.classList.remove("ui-draggable"),t.classList.remove("ui-draggable-dragging");this._handle.classList.remove("ui-draggable-handle"),this._backend.destroy(),null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),this._helper=null)}}class h{constructor(t){this._initial=null,this._handlePointerDown=t=>{if(null!==this._initial)return;if(!(t.target instanceof Element&&this._handle.contains(t.target)))return;if(this._initial=t,!this._dispatchEvent(this._createEvent("pointer-drag-start",t)))return void(this._initial=null);t.preventDefault();const e=this._getEventTarget();e.addEventListener("pointermove",this._handlePointerMove),e.addEventListener("pointerup",this._handlePointerUp),e.addEventListener("pointercancel",this._handlePointerUp),e.addEventListener("lostpointercapture",this._handlePointerUp),e.setPointerCapture(t.pointerId)},this._handlePointerMove=t=>{null!==this._initial&&this._initial.pointerId===t.pointerId&&(t.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",t)))},this._handlePointerUp=t=>{if(null===this._initial||this._initial.pointerId!==t.pointerId)return;t.preventDefault();const e=this._getEventTarget();e.removeEventListener("pointermove",this._handlePointerMove),e.removeEventListener("pointerup",this._handlePointerUp),e.removeEventListener("pointercancel",this._handlePointerUp),e.removeEventListener("lostpointercapture",this._handlePointerUp),e.releasePointerCapture(this._initial.pointerId),this._dispatchEvent(this._createEvent("pointer-drag-stop",t)),this._initial=null};const e=this._handle=t.handle;this._onDragStart=t.onDragStart,this._onDragMove=t.onDragMove,this._onDragStop=t.onDragStop,e.style.touchAction="none";this._getEventTarget().addEventListener("pointerdown",this._handlePointerDown)}destroy(){ +this._handle.style.touchAction="";const t=this._getEventTarget();t.removeEventListener("pointerdown",this._handlePointerDown),t.removeEventListener("pointermove",this._handlePointerMove),t.removeEventListener("pointerup",this._handlePointerUp),t.removeEventListener("pointercancel",this._handlePointerUp),t.removeEventListener("lostpointercapture",this._handlePointerUp),null!==this._initial&&(t.releasePointerCapture(this._initial.pointerId),this._initial=null)}_getEventTarget(){return o.CheckMobile.iOS()||(0,o.isMac)()&&r.touch?window.document.documentElement:this._handle}_dispatchEvent(t){switch(t.type){case"pointer-drag-start":this._onDragStart(t);break;case"pointer-drag-move":this._onDragMove(t);break;case"pointer-drag-stop":this._onDragStop(t)}return!t.defaultPrevented}_createEvent(t,e){return(0,s.assert)(null!==this._initial),new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:e}})}}},15828:(t,e,i)=>{"use strict";i.d(e,{contentHeight:()=>n,outerHeight:()=>o,outerWidth:()=>r,position:()=>h});var s=i(88537);function n(t){const{paddingTop:e,paddingBottom:i}=window.getComputedStyle(t);return[e,i].reduce((t,e)=>t-Number((e||"").replace("px","")),t.clientHeight)}function o(t,e=!1){const i=getComputedStyle(t),s=[i.height];return"border-box"!==i.boxSizing&&s.push(i.paddingTop,i.paddingBottom,i.borderTopWidth,i.borderBottomWidth),e&&s.push(i.marginTop,i.marginBottom),s.reduce((t,e)=>t+(parseFloat(e)||0),0)}function r(t,e=!1){const i=getComputedStyle(t),s=[i.width];return"border-box"!==i.boxSizing&&s.push(i.paddingLeft,i.paddingRight,i.borderLeftWidth,i.borderRightWidth),e&&s.push(i.marginLeft,i.marginRight),s.reduce((t,e)=>t+(parseFloat(e)||0),0)}function a(t){if(!t.getClientRects().length)return{top:0,left:0};const e=t.getBoundingClientRect(),i=(0,s.ensureNotNull)(t.ownerDocument.defaultView);return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}}function h(t){const e=getComputedStyle(t);let i,s={top:0,left:0};if("fixed"===e.position)i=t.getBoundingClientRect();else{i=a(t);const e=t.ownerDocument;let n=t.offsetParent||e.documentElement;for(;n&&(n===e.body||n===e.documentElement)&&"static"===getComputedStyle(n).position;)n=n.parentElement;n&&n!==t&&1===n.nodeType&&(s=a(n),s.top+=parseFloat(getComputedStyle(n).borderTopWidth),s.left+=parseFloat(getComputedStyle(n).borderLeftWidth))}return{top:i.top-s.top-parseFloat(e.marginTop),left:i.left-s.left-parseFloat(e.marginLeft)}}},4135:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/7b48652cf0047a3b3b7bad1b1741ad9f.svg b/charting_library/bundles/7b48652cf0047a3b3b7bad1b1741ad9f.svg new file mode 100644 index 00000000..6038e050 --- /dev/null +++ b/charting_library/bundles/7b48652cf0047a3b3b7bad1b1741ad9f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7c1bfcd1b31737c6e9ec505673a6b3c7.jpeg b/charting_library/bundles/7c1bfcd1b31737c6e9ec505673a6b3c7.jpeg new file mode 100644 index 00000000..35a8750e Binary files /dev/null and b/charting_library/bundles/7c1bfcd1b31737c6e9ec505673a6b3c7.jpeg differ diff --git a/charting_library/bundles/7cc409e9b4b8e2ad95146d0ae8be70e5.svg b/charting_library/bundles/7cc409e9b4b8e2ad95146d0ae8be70e5.svg new file mode 100644 index 00000000..7d9d8236 --- /dev/null +++ b/charting_library/bundles/7cc409e9b4b8e2ad95146d0ae8be70e5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7db71d6fd67fb9a029dbe9640728e788.svg b/charting_library/bundles/7db71d6fd67fb9a029dbe9640728e788.svg new file mode 100644 index 00000000..68f9a85b --- /dev/null +++ b/charting_library/bundles/7db71d6fd67fb9a029dbe9640728e788.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7e42b51d668e0b400a9cb506aec1fc00.svg b/charting_library/bundles/7e42b51d668e0b400a9cb506aec1fc00.svg new file mode 100644 index 00000000..9c539b46 --- /dev/null +++ b/charting_library/bundles/7e42b51d668e0b400a9cb506aec1fc00.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7eb7a15aebedb479210436be19e02f7f.svg b/charting_library/bundles/7eb7a15aebedb479210436be19e02f7f.svg new file mode 100644 index 00000000..87587adf --- /dev/null +++ b/charting_library/bundles/7eb7a15aebedb479210436be19e02f7f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7ef32ae8f080d2d6c6f0784e334e30e1.svg b/charting_library/bundles/7ef32ae8f080d2d6c6f0784e334e30e1.svg new file mode 100644 index 00000000..9f9b5dc6 --- /dev/null +++ b/charting_library/bundles/7ef32ae8f080d2d6c6f0784e334e30e1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7f2643ac80c1d0560f78aa22b6e8b501.svg b/charting_library/bundles/7f2643ac80c1d0560f78aa22b6e8b501.svg new file mode 100644 index 00000000..b5ae51ca --- /dev/null +++ b/charting_library/bundles/7f2643ac80c1d0560f78aa22b6e8b501.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7f429d95a310b5fadba4ee69da66b4eb.svg b/charting_library/bundles/7f429d95a310b5fadba4ee69da66b4eb.svg new file mode 100644 index 00000000..8eada474 --- /dev/null +++ b/charting_library/bundles/7f429d95a310b5fadba4ee69da66b4eb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7fb90d13db9ad6d2ddec01d48b241d85.svg b/charting_library/bundles/7fb90d13db9ad6d2ddec01d48b241d85.svg new file mode 100644 index 00000000..26ca9a4f --- /dev/null +++ b/charting_library/bundles/7fb90d13db9ad6d2ddec01d48b241d85.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/7fc3c4075dd1ab62905126ce5623a7b5.svg b/charting_library/bundles/7fc3c4075dd1ab62905126ce5623a7b5.svg new file mode 100644 index 00000000..867668ab --- /dev/null +++ b/charting_library/bundles/7fc3c4075dd1ab62905126ce5623a7b5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/802533204295f3c58b0072fdd6d46d1d.svg b/charting_library/bundles/802533204295f3c58b0072fdd6d46d1d.svg new file mode 100644 index 00000000..8a1b587a --- /dev/null +++ b/charting_library/bundles/802533204295f3c58b0072fdd6d46d1d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/1594.34c11d6cc8a67dec7867.css b/charting_library/bundles/8054.34c11d6cc8a67dec7867.css similarity index 100% rename from charting_library/bundles/1594.34c11d6cc8a67dec7867.css rename to charting_library/bundles/8054.34c11d6cc8a67dec7867.css diff --git a/charting_library/bundles/1594.34c11d6cc8a67dec7867.rtl.css b/charting_library/bundles/8054.34c11d6cc8a67dec7867.rtl.css similarity index 100% rename from charting_library/bundles/1594.34c11d6cc8a67dec7867.rtl.css rename to charting_library/bundles/8054.34c11d6cc8a67dec7867.rtl.css diff --git a/charting_library/bundles/8138.26729089e9f03458af35.css b/charting_library/bundles/8138.26729089e9f03458af35.css new file mode 100644 index 00000000..56e43548 --- /dev/null +++ b/charting_library/bundles/8138.26729089e9f03458af35.css @@ -0,0 +1 @@ +.code-w1JWVjk5{align-items:center;color:#131722;display:flex;height:100%;left:11px;line-height:normal;position:absolute}html.theme-dark .code-w1JWVjk5{color:#d1d4dc}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-1-w1JWVjk5{padding-left:12px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-2-w1JWVjk5{padding-left:33px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-3-w1JWVjk5{padding-left:42px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-4-w1JWVjk5{padding-left:48px}.input-disable-mode-safari-w1JWVjk5{color:#5d606b}@media screen and (max-width:767px){.button-box-code-ykdczZxH{grid-column:1/3;grid-row:2/3;padding-bottom:16px}}.small-buttons-ykdczZxH{grid-gap:6px;display:grid;grid-template-columns:1fr}@media screen and (min-width:768px){.small-buttons-ykdczZxH{grid-template-columns:86px 86px}}.arrowHolder-ykdczZxH{position:absolute}.arrowHolder-ykdczZxH:after{border:0 solid #2a2e39;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-ykdczZxH:after{border-color:#363a45}.arrowHolder--above-ykdczZxH:after,.arrowHolder--below-ykdczZxH:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-ykdczZxH:after,html.theme-dark .arrowHolder--below-ykdczZxH:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-ykdczZxH:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-ykdczZxH:after{border-top-width:4px;top:100%}.arrowHolder--after-ykdczZxH:after,.arrowHolder--before-ykdczZxH:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-ykdczZxH:after,html.theme-dark .arrowHolder--before-ykdczZxH:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-ykdczZxH:after{border-right-width:4px;right:100%}.arrowHolder--after-ykdczZxH:after{border-left-width:4px;left:100%}.arrowHolder-ykdczZxH.arrowHolder--above-ykdczZxH{bottom:0}.tooltip-ykdczZxH{background:#2a2e39;color:#f0f3fa}html.theme-dark .tooltip-ykdczZxH{background:#363a45}@media screen and (max-width:767px){.tv-dialog__verification-modal{width:480px}}@media screen and (max-width:479px){.tv-dialog__verification-modal{height:100%;padding:0;width:100%}}@media screen and (max-width:767px){.tv-dialog__verification-modal .tv-dialog{height:100%}}.content-wrap-template-SuBxKHcJ{box-sizing:border-box;color:#131722;padding:40px;position:relative;width:620px}html.theme-dark .content-wrap-template-SuBxKHcJ{color:#d1d4dc}@media screen and (max-width:767px){.content-wrap-template-SuBxKHcJ{height:100%;padding:20px;width:100%}}.title-SuBxKHcJ{font-size:36px;line-height:44px;padding-bottom:16px}@media screen and (max-width:767px){.title-SuBxKHcJ{font-size:28px;line-height:36px;padding-bottom:9px}}.description-SuBxKHcJ{font-size:16px;line-height:24px;padding-bottom:40px}.close-button-SuBxKHcJ{right:17px;top:17px;z-index:1}@media screen and (max-width:767px){.close-button-SuBxKHcJ{right:0;top:15px}}.phone-block-SuBxKHcJ{grid-gap:21px;align-items:center;display:grid;grid-template-columns:min-content auto 178px}@media screen and (max-width:767px){.phone-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:min-content auto}}.email-block-SuBxKHcJ{grid-gap:21px;align-items:center;display:grid;grid-template-columns:341px 178px}@media screen and (max-width:767px){.email-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:1fr}.email-block-SuBxKHcJ .input-SuBxKHcJ{grid-column:1/3}}.code-block-SuBxKHcJ{grid-gap:21px;align-items:flex-end;display:grid;grid-template-columns:341px 178px;padding-bottom:16px;padding-top:16px}@media screen and (max-width:767px){.code-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:1fr 116px}}.timer-block-SuBxKHcJ{background-color:#e3effd;border-radius:6px;color:#131722;font-size:14px;line-height:21px;padding:12px}html.theme-dark .timer-block-SuBxKHcJ{background-color:#2a2e39;color:#9598a1}@media screen and (max-width:767px){.timer-block-SuBxKHcJ{font-size:12px;line-height:17px}}.spinner-wrap-SuBxKHcJ{position:relative}.hide-country-select-SuBxKHcJ{visibility:hidden}.okay-button-SuBxKHcJ{float:right;margin-bottom:40px}@media screen and (max-width:479px){.tv-dialog__verification-content{height:100%}}@media screen and (max-width:767px){.wrapper-content-SuBxKHcJ,.wrapper-content-successful-SuBxKHcJ{display:flex;flex-direction:column;height:100%;justify-content:center}.wrapper-content-successful-SuBxKHcJ{align-items:center;padding:40px 0;text-align:center}}@media screen and (max-width:479px){.wrapper-content-successful-SuBxKHcJ{padding:0}}.link-SuBxKHcJ{color:#2962ff;cursor:pointer}html.theme-dark .link-SuBxKHcJ{color:#2962ff}.link-SuBxKHcJ:active{color:#1e53e5}@media (any-hover:hover){.link-SuBxKHcJ:hover{color:#1e53e5}}html.theme-dark .link-SuBxKHcJ:active{color:#1e53e5}@media (any-hover:hover){html.theme-dark .link-SuBxKHcJ:hover{color:#1e53e5}}.labeled-input-SuBxKHcJ{align-items:center}@media screen and (max-width:1530px){.description-SuBxKHcJ{padding-bottom:32px}}@media screen and (max-width:767px){.description-SuBxKHcJ{padding-bottom:24px}} \ No newline at end of file diff --git a/charting_library/bundles/8138.26729089e9f03458af35.rtl.css b/charting_library/bundles/8138.26729089e9f03458af35.rtl.css new file mode 100644 index 00000000..1c8fab26 --- /dev/null +++ b/charting_library/bundles/8138.26729089e9f03458af35.rtl.css @@ -0,0 +1 @@ +.code-w1JWVjk5{align-items:center;color:#131722;display:flex;height:100%;line-height:normal;position:absolute;right:11px}html.theme-dark .code-w1JWVjk5{color:#d1d4dc}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-1-w1JWVjk5{padding-right:12px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-2-w1JWVjk5{padding-right:33px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-3-w1JWVjk5{padding-right:42px}.ui-kit-input-w1JWVjk5.input-w1JWVjk5.digit-4-w1JWVjk5{padding-right:48px}.input-disable-mode-safari-w1JWVjk5{color:#5d606b}@media screen and (max-width:767px){.button-box-code-ykdczZxH{grid-column:1/3;grid-row:2/3;padding-bottom:16px}}.small-buttons-ykdczZxH{grid-gap:6px;display:grid;grid-template-columns:1fr}@media screen and (min-width:768px){.small-buttons-ykdczZxH{grid-template-columns:86px 86px}}.arrowHolder-ykdczZxH{position:absolute}.arrowHolder-ykdczZxH:after{border:0 solid #2a2e39;box-sizing:border-box;content:"";display:block;height:0;position:absolute;width:0}html.theme-dark .arrowHolder-ykdczZxH:after{border-color:#363a45}.arrowHolder--above-ykdczZxH:after,.arrowHolder--below-ykdczZxH:after{border-left:6px solid #0000;border-right:6px solid #0000;left:50%;margin-left:-6px}html.theme-dark .arrowHolder--above-ykdczZxH:after,html.theme-dark .arrowHolder--below-ykdczZxH:after{border-left-color:#0000;border-right-color:#0000}.arrowHolder--below-ykdczZxH:after{border-bottom-width:4px;bottom:100%}.arrowHolder--above-ykdczZxH:after{border-top-width:4px;top:100%}.arrowHolder--after-ykdczZxH:after,.arrowHolder--before-ykdczZxH:after{border-bottom:6px solid #0000;border-top:6px solid #0000;margin-top:-6px;top:50%}html.theme-dark .arrowHolder--after-ykdczZxH:after,html.theme-dark .arrowHolder--before-ykdczZxH:after{border-bottom-color:#0000;border-top-color:#0000}.arrowHolder--before-ykdczZxH:after{border-right-width:4px;right:100%}.arrowHolder--after-ykdczZxH:after{border-left-width:4px;left:100%}.arrowHolder-ykdczZxH.arrowHolder--above-ykdczZxH{bottom:0}.tooltip-ykdczZxH{background:#2a2e39;color:#f0f3fa}html.theme-dark .tooltip-ykdczZxH{background:#363a45}@media screen and (max-width:767px){.tv-dialog__verification-modal{width:480px}}@media screen and (max-width:479px){.tv-dialog__verification-modal{height:100%;padding:0;width:100%}}@media screen and (max-width:767px){.tv-dialog__verification-modal .tv-dialog{height:100%}}.content-wrap-template-SuBxKHcJ{box-sizing:border-box;color:#131722;padding:40px;position:relative;width:620px}html.theme-dark .content-wrap-template-SuBxKHcJ{color:#d1d4dc}@media screen and (max-width:767px){.content-wrap-template-SuBxKHcJ{height:100%;padding:20px;width:100%}}.title-SuBxKHcJ{font-size:36px;line-height:44px;padding-bottom:16px}@media screen and (max-width:767px){.title-SuBxKHcJ{font-size:28px;line-height:36px;padding-bottom:9px}}.description-SuBxKHcJ{font-size:16px;line-height:24px;padding-bottom:40px}.close-button-SuBxKHcJ{left:17px;top:17px;z-index:1}@media screen and (max-width:767px){.close-button-SuBxKHcJ{left:0;top:15px}}.phone-block-SuBxKHcJ{grid-gap:21px;align-items:center;display:grid;grid-template-columns:min-content auto 178px}@media screen and (max-width:767px){.phone-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:min-content auto}}.email-block-SuBxKHcJ{grid-gap:21px;align-items:center;display:grid;grid-template-columns:341px 178px}@media screen and (max-width:767px){.email-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:1fr}.email-block-SuBxKHcJ .input-SuBxKHcJ{grid-column:1/3}}.code-block-SuBxKHcJ{grid-gap:21px;align-items:flex-end;display:grid;grid-template-columns:341px 178px;padding-bottom:16px;padding-top:16px}@media screen and (max-width:767px){.code-block-SuBxKHcJ{grid-gap:16px;grid-template-columns:1fr 116px}}.timer-block-SuBxKHcJ{background-color:#e3effd;border-radius:6px;color:#131722;font-size:14px;line-height:21px;padding:12px}html.theme-dark .timer-block-SuBxKHcJ{background-color:#2a2e39;color:#9598a1}@media screen and (max-width:767px){.timer-block-SuBxKHcJ{font-size:12px;line-height:17px}}.spinner-wrap-SuBxKHcJ{position:relative}.hide-country-select-SuBxKHcJ{visibility:hidden}.okay-button-SuBxKHcJ{float:left;margin-bottom:40px}@media screen and (max-width:479px){.tv-dialog__verification-content{height:100%}}@media screen and (max-width:767px){.wrapper-content-SuBxKHcJ,.wrapper-content-successful-SuBxKHcJ{display:flex;flex-direction:column;height:100%;justify-content:center}.wrapper-content-successful-SuBxKHcJ{align-items:center;padding:40px 0;text-align:center}}@media screen and (max-width:479px){.wrapper-content-successful-SuBxKHcJ{padding:0}}.link-SuBxKHcJ{color:#2962ff;cursor:pointer}html.theme-dark .link-SuBxKHcJ{color:#2962ff}.link-SuBxKHcJ:active{color:#1e53e5}@media (any-hover:hover){.link-SuBxKHcJ:hover{color:#1e53e5}}html.theme-dark .link-SuBxKHcJ:active{color:#1e53e5}@media (any-hover:hover){html.theme-dark .link-SuBxKHcJ:hover{color:#1e53e5}}.labeled-input-SuBxKHcJ{align-items:center}@media screen and (max-width:1530px){.description-SuBxKHcJ{padding-bottom:32px}}@media screen and (max-width:767px){.description-SuBxKHcJ{padding-bottom:24px}} \ No newline at end of file diff --git a/charting_library/bundles/8178.183edf2ef18efa241210.js b/charting_library/bundles/8178.183edf2ef18efa241210.js new file mode 100644 index 00000000..f79c5141 --- /dev/null +++ b/charting_library/bundles/8178.183edf2ef18efa241210.js @@ -0,0 +1,10 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8178],{6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},37593:e=>{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM",dot:"dot-5Xd5conM"}},96670:e=>{e.exports={checkbox:"checkbox-GxG6nBa7",reverse:"reverse-GxG6nBa7",label:"label-GxG6nBa7",baseline:"baseline-GxG6nBa7"}},15994:e=>{e.exports={radio:"radio-vpA3AYsc",input:"input-vpA3AYsc",box:"box-vpA3AYsc",reverse:"reverse-vpA3AYsc",label:"label-vpA3AYsc",wrapper:"wrapper-vpA3AYsc",noOutline:"noOutline-vpA3AYsc"}},66875:e=>{e.exports={errors:"errors-Cv6NxnRZ",show:"show-Cv6NxnRZ",error:"error-Cv6NxnRZ"}},93314:e=>{e.exports={"error-icon":"error-icon-llFIA0b4","intent-danger":"intent-danger-llFIA0b4","intent-warning":"intent-warning-llFIA0b4"}},52965:e=>{e.exports={"static-messages":"static-messages-Yp0dNSLN",errors:"errors-Yp0dNSLN",warnings:"warnings-Yp0dNSLN",message:"message-Yp0dNSLN"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},97737:(e,t,n)=>{"use strict";n.d(t,{AnchorButton:()=>u,Button:()=>c});var r=n(59496),o=n(71036);function s(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function i(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}} +function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:i(t),size:a(n),variant:s(r),stretch:o,startIcon:l}}function c(e){return r.createElement(o.SquareButton,{...l(e)})}function h(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:l,...c}=e;return{...c,color:i(t),size:a(n),variant:s(r),stretch:o,startIcon:l}}function u(e){return r.createElement(o.SquareAnchorButton,{...h(e)})}},71036:(e,t,n)=>{"use strict";n.d(t,{SquareAnchorButton:()=>f,SquareButton:()=>m});var r=n(59496),o=n(97754),s=n(95604),i=n(9745),a=n(6539),l=n.n(a);function c(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:i=!1,icon:a,startIcon:c,endIcon:h,iconOnly:u=!1,className:d,isGrouped:p,cellState:m,disablePositionAdjustment:g=!1}=e,f=function(e){let t="";return 0!==e&&(1&e&&(t=o(t,l()["no-corner-top-left"])),2&e&&(t=o(t,l()["no-corner-top-right"])),4&e&&(t=o(t,l()["no-corner-bottom-right"])),8&e&&(t=o(t,l()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(m));return o(d,l().button,l()["size-"+n],l()["color-"+t],l()["variant-"+r],i&&l().stretch,(a||c)&&l()["with-start-icon"],h&&l()["with-end-icon"],u&&l()["icon-only"],f,p&&l().grouped,p&&!g&&l()["adjust-position"],p&&m.isTop&&l()["first-row"],p&&m.isLeft&&l()["first-col"])}function h(e){const{size:t,startIcon:n,icon:o,iconOnly:s,children:a,endIcon:c}=e,h=null!=n?n:o;return r.createElement(r.Fragment,null,h&&"xsmall"!==t&&r.createElement(i.Icon,{icon:h,className:l()["start-icon-wrap"]}),a&&r.createElement("span",{className:l().content},a),c&&!s&&"xsmall"!==t&&r.createElement(i.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var u=n(86332),d=n(90186);function p(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:h,...u}=e;return{...u,...(0,d.filterDataProps)(e),...(0,d.filterAriaProps)(e)}}function m(e){const{reference:t,...n}=e,{isGrouped:o,cellState:s,disablePositionAdjustment:i}=(0,r.useContext)(u.ControlGroupContext),a=c({...n,isGrouped:o,cellState:s,disablePositionAdjustment:i});return r.createElement("button",{...p(n),className:a,ref:t},r.createElement(h,{...n}))}function g(e){const{className:t,color:n,variant:r,size:o,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:h,...u}=e;return{...u,...(0,d.filterDataProps)(e),...(0,d.filterAriaProps)(e)}}function f(e){const{reference:t}=e,{isGrouped:n,cellState:o,disablePositionAdjustment:s}=(0,r.useContext)(u.ControlGroupContext),i=c({...e,isGrouped:n,cellState:o,disablePositionAdjustment:s});return r.createElement("a",{...g(e),className:i,ref:t},r.createElement(h,{...e}))}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var r=n(59496),o=n(97754),s=n(9745),i=n(49154),a=n(37593),l=n.n(a);function c(e){const t=o(l().box,l()["intent-"+e.intent],{[l().check]:!Boolean(e.indeterminate),[l().dot]:Boolean(e.indeterminate),[l().noOutline]:-1===e.tabIndex}),n=o(l().wrapper,e.className) +;return r.createElement("span",{className:n,title:e.title},r.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:l().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),r.createElement("span",{className:t},r.createElement(s.Icon,{icon:i,className:l().icon})))}},15294:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>c,GroupedCheckbox:()=>h});var r=n(59496),o=n(97754),s=n(54349),i=n(84413),a=n(96670),l=n.n(a);class c extends r.PureComponent{render(){const{inputClassName:e,labelClassName:t,...n}=this.props,s=o(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),a=o(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=r.createElement("span",{className:a,title:this.props.title},this.props.label)),r.createElement("label",{className:s},r.createElement(i.CheckboxInput,{...n,className:e}),c)}}c.defaultProps={value:"on"};const h=(0,s.makeSwitchGroupItem)(c)},45631:(e,t,n)=>{"use strict";n.d(t,{RadioButton:()=>c});var r,o=n(59496),s=n(97754),i=n(54349),a=n(15994),l=n.n(a);const c=(0,i.makeSwitchGroupItem)(((r=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const e=s(this.props.className,l().radio,{[l().reverse]:Boolean(this.props.labelPositionReverse)}),t=s(l().label,{[l().disabled]:this.props.disabled}),n=s(l().box,{[l().noOutline]:-1===this.props.tabIndex});let r=null;return this.props.label&&(r=o.createElement("span",{className:t},this.props.label)),o.createElement("label",{className:e},o.createElement("span",{className:l().wrapper,title:this.props.title},o.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus,role:this.props.role,className:l().input,type:"radio",name:this.props.name,checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,onChange:this._onChange,ref:this.props.reference}),o.createElement("span",{className:n})),r)}}).defaultProps={value:"on"},r))},54349:(e,t,n)=>{"use strict";n.d(t,{SwitchGroup:()=>s,makeSwitchGroupItem:()=>i});var r=n(59496),o=n(19036);class s extends r.PureComponent{constructor(){super(...arguments),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)}}getChildContext(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return this.props.children}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach(t=>t(e))}_getUpdates(e,t){ +return[...t,...e].filter(n=>t.includes(n)?!e.includes(n):e.includes(n))}}function i(e){var t;return(t=class extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.switchGroupContext.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.switchGroupContext.subscribe(this._onUpdate)}render(){return r.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.switchGroupContext.unsubscribe(this._onUpdate)}_getName(){return this.context.switchGroupContext.getName()}_isChecked(){return this.context.switchGroupContext.getValues().includes(this.props.value)}}).contextTypes={switchGroupContext:o.any.isRequired},t}s.childContextTypes={switchGroupContext:o.any.isRequired}},1405:(e,t,n)=>{"use strict";n.d(t,{anchors:()=>r});n(59496);const r={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>i,useHover:()=>o});var r=n(59496);function o(){const[e,t]=(0,r.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function i(e){const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const t=t=>{if(null===e.current)return;const r=e.current.contains(t.target);n(r)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},10959:(e,t,n)=>{"use strict";n.d(t,{ErrorIcon:()=>l});var r=n(59496),o=n(97754),s=n(9745),i=n(83546),a=n(93314);function l(e){const{intent:t="danger"}=e;return r.createElement(s.Icon,{icon:i,className:o(a["error-icon"],a["intent-"+t])})}},86623:(e,t,n)=>{"use strict";n.d(t,{FormInput:()=>c});var r=n(59496),o=n(31261),s=n(86629),i=n(78274),a=n(47201),l=n(66092);function c(e){var t;const{intent:n,onFocus:c,onBlur:h,onMouseOver:u,onMouseOut:d,containerReference:p=null,endSlot:m,hasErrors:g,hasWarnings:f,errors:v,warnings:b,alwaysShowAttachedErrors:w,iconHidden:C,messagesPosition:_,messagesAttachment:x,customErrorsAttachment:E,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:y,...k}=e,O=(0,s.useControlValidationLayout)({hasErrors:g,hasWarnings:f,errors:v,warnings:b,alwaysShowAttachedErrors:w,iconHidden:C,messagesPosition:_,messagesAttachment:x,customErrorsAttachment:E,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:y}),N=(0,a.createSafeMulticastEventHandler)(c,O.onFocus),A=(0,a.createSafeMulticastEventHandler)(h,O.onBlur),R=(0, +a.createSafeMulticastEventHandler)(u,O.onMouseOver),P=(0,a.createSafeMulticastEventHandler)(d,O.onMouseOut);return r.createElement(r.Fragment,null,r.createElement(o.InputControl,{...k,intent:null!==(t=O.intent)&&void 0!==t?t:n,onFocus:N,onBlur:A,onMouseOver:R,onMouseOut:P,containerReference:(0,l.useMergedRefs)([p,O.containerReference]),endSlot:r.createElement(r.Fragment,null,O.icon&&r.createElement(i.EndSlot,{icon:!0},O.icon),m)}),O.renderedErrors)}},86629:(e,t,n)=>{"use strict";n.d(t,{MessagesPosition:()=>v,useControlValidationLayout:()=>k});var r=n(59496),o=n(97754),s=n(29202),i=n(70412),a=n(78274),l=n(1405),c=n(86431),h=n(87995);var u=n(66875),d=n(62820);class p extends r.PureComponent{render(){const{children:e=[],show:t=!1,customErrorClass:n,disableRtlStyles:s}=this.props,i=o(u.errors,{[u.show]:t},n),a=e.map((e,t)=>r.createElement("div",{className:u.error,key:t},e));let l={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,d.isRtl)()&&!s){const{left:e,right:t}=l;l={...l,left:t,right:e}}return r.createElement("div",{style:l,className:i},a)}}const m=(0,c.makeOverlapable)((g=p,(f=class extends r.PureComponent{constructor(e){super(e),this._getComponentInstance=e=>{this._instance=e},this._throttleCalcProps=()=>{requestAnimationFrame(()=>this.setState(this._calcProps(this.props)))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=h.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(e){e.children===this.props.children&&e.top===this.props.top&&e.left===this.props.left&&e.width===this.props.width||this.setState(this._getStateFromProps(),()=>this.setState(this._calcProps(this.props)))}render(){return r.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},r.createElement(g,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(e){if(e.target&&e.attachment&&e.targetAttachment){const t=this._calcTargetProps(e.target,e.attachment,e.targetAttachment);if(null===t)return{};const{width:n,inheritWidthFromTarget:r=!0,inheritMaxWidthFromTarget:o=!1}=this.props,s={width:r?t.width:n,maxWidth:o?t.width:void 0};switch(e.attachment.vertical){ +case"bottom":case"middle":s.top=t.y;break;default:s[e.attachment.vertical]=t.y}switch(e.attachment.horizontal){case"right":case"center":s.left=t.x;break;default:s[e.attachment.horizontal]=t.x}return s}return{}}_calcTargetProps(e,t,n){const r=e.getBoundingClientRect(),o=this._instanceElem.getBoundingClientRect(),s="parent"===this.props.root?this._getCoordsRelToParentEl(e,r):this._getCoordsRelToDocument(r);if(null===s)return null;const i=this._getDimensions(o),a=this._getDimensions(r).width;let l=0,c=0;switch(t.vertical){case"top":c=s[n.vertical];break;case"bottom":c=s[n.vertical]-i.height;break;case"middle":c=s[n.vertical]-i.height/2}switch(t.horizontal){case"left":l=s[n.horizontal];break;case"right":l=s[n.horizontal]-i.width;break;case"center":l=s[n.horizontal]-i.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:a}}_getCoordsRelToDocument(e){const t=pageYOffset,n=pageXOffset,r=e.top+t,o=e.bottom+t,s=e.left+n;return{top:r,bottom:o,left:s,right:e.right+n,middle:(r+e.height)/2,center:s+e.width/2}}_getCoordsRelToParentEl(e,t){const n=e.offsetParent;if(null===n)return null;const r=n.scrollTop,o=n.scrollLeft,s=e.offsetTop+r,i=e.offsetLeft+o,a=t.width+i;return{top:s,bottom:t.height+s,left:i,right:a,middle:(s+t.height)/2,center:(i+t.width)/2}}_getDimensions(e){return{height:e.height,width:e.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",f));var g,f,v,b,w=n(10959),C=n(52965);!function(e){e[e.Attached=0]="Attached",e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(v||(v={})),function(e){e.Top="top",e.Bottom="bottom"}(b||(b={}));const _={top:{attachment:l.anchors.topRight.attachment,targetAttachment:l.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:l.anchors.bottomRight.attachment,targetAttachment:l.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function x(e){const{isOpened:t,target:n,errorAttachment:o=b.Top,customErrorsAttachment:s,root:i="parent",inheritWidthFromTarget:a=!1,disableRtlStyles:l,children:c}=e,{attachment:h,targetAttachment:u,attachmentOffsetY:d}=null!=s?s:_[o];return r.createElement(m,{isOpened:t,target:n,root:i,inheritWidthFromTarget:a,attachment:h,targetAttachment:u,attachmentOffsetY:d,disableRtlStyles:l,inheritMaxWidthFromTarget:!0,show:!0},c)}function E(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function M(e,t,n){return e===v.Attached&&E(t,n)}function S(e,t,n){return e===v.Static&&E(t,n)}function y(e,t,n){const{hasErrors:r,hasWarnings:o,alwaysShowAttachedErrors:s,iconHidden:i,errors:a,warnings:l,messagesPosition:c=v.Static}=e,h=M(c,r,a),u=M(c,o,l),d=h&&(t||n||Boolean(s)),p=!d&&u&&(t||n),m=S(c,r,a),g=!m&&S(c,o,l),f=!i&&Boolean(r) +;return{hasAttachedErrorMessages:h,hasAttachedWarningMessages:u,showAttachedErrorMessages:d,showAttachedWarningMessages:p,showStaticErrorMessages:m,showStaticWarningMessages:g,showErrorIcon:f,showWarningIcon:!i&&!f&&Boolean(o),intent:function(e,t){return Boolean(e)?"danger":Boolean(t)?"warning":void 0}(r,o)}}function k(e){var t,n;const{errors:l,warnings:c,messagesAttachment:h,customErrorsAttachment:u,messagesRoot:d,inheritMessagesWidthFromTarget:p,disableMessagesRtlStyles:m}=e,[g,f]=(0,s.useFocus)(),[v,b]=(0,i.useHover)(),_=(0,r.useRef)(null),{hasAttachedErrorMessages:E,hasAttachedWarningMessages:M,showAttachedErrorMessages:S,showAttachedWarningMessages:k,showStaticErrorMessages:O,showStaticWarningMessages:N,showErrorIcon:A,showWarningIcon:R,intent:P}=y(e,g,v),W=A||R?r.createElement(w.ErrorIcon,{intent:A?"danger":"warning"}):void 0,T=E?r.createElement(x,{errorAttachment:h,customErrorsAttachment:u,isOpened:S,target:_.current,root:d,inheritWidthFromTarget:p,disableRtlStyles:m,children:l}):void 0,F=M?r.createElement(x,{errorAttachment:h,isOpened:k,target:_.current,root:d,inheritWidthFromTarget:p,disableRtlStyles:m,children:c}):void 0,z=O?r.createElement(a.AfterSlot,{className:o(C["static-messages"],C.errors)},null==l?void 0:l.map((e,t)=>r.createElement("p",{key:t,className:C.message},e))):void 0,I=N?r.createElement(a.AfterSlot,{className:o(C["static-messages"],C.warnings)},null==c?void 0:c.map((e,t)=>r.createElement("p",{key:t,className:C.message},e))):void 0;return{icon:W,renderedErrors:null!==(n=null!==(t=null!=T?T:F)&&void 0!==t?t:z)&&void 0!==n?n:I,containerReference:_,intent:P,...f,...b}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>r});const r=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>f,Menu:()=>v});var r=n(59496),o=n(97754),s=n.n(o),i=n(88537),a=n(64514),l=n(54475),c=n(50655),h=n(59064),u=n(88216),d=n(25760),p=n(14758),m=n(64706),g=n(16059);const f=g;class v extends r.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new u.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,r,o,s;if(this.state.isMeasureValid&&!t)return;const{position:l}=this.props,c=(0,i.ensureNotNull)(this._containerRef);let h=c.getBoundingClientRect();const u=document.documentElement.clientHeight,d=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=u-0-p;const g=h.height>m;if(g){(0, +i.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",h=c.getBoundingClientRect()}const{width:f,height:v}=h,b="function"==typeof l?l(f,v,u):l,w=d-(null!==(r=b.overrideWidth)&&void 0!==r?r:f)-0,C=(0,a.clamp)(b.x,0,Math.max(0,w)),_=0+p,x=u-(null!==(o=b.overrideHeight)&&void 0!==o?o:v)-0;let E=(0,a.clamp)(b.y,_,Math.max(_,x));if(b.forbidCorrectYCoord&&E{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,i.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=h.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=d.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=h.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){ +const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":o,children:i,minWidth:a,theme:h=g,className:u,maxHeight:d,onMouseOver:f,onMouseOut:v,onKeyDown:w,onFocus:C,onBlur:_}=this.props,{appearingMenuHeight:x,appearingMenuWidth:E,appearingPosition:M,isMeasureValid:S}=this.state;return r.createElement(m.MenuContext.Provider,{value:this},r.createElement(p.SubmenuHandler,null,r.createElement(c.SlotContext.Provider,{value:this._manager},r.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":o,className:s()(u,h.menuWrap,!S&&h.isMeasuring),style:{height:x,left:M&&M.x,minWidth:a,position:"fixed",top:M&&M.y,width:E},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:l.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:f,onMouseOut:v,onKeyDown:w,onFocus:C,onBlur:_},r.createElement("div",{className:s()(h.scrollWrap,!this.props.noMomentumBasedScroll&&h.momentumBased),style:{overflowY:void 0!==x?"scroll":"auto",maxHeight:d},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},r.createElement(b,{className:h.menuBox},i)))),r.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function b(e){const t=(0,i.ensureNotNull)((0,r.useContext)(p.SubmenuContext)),n=r.useRef(null);return r.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(r=e.target,null===(o=n.current)||void 0===o?void 0:o.contains(r))))return;var r,o;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}v.contextType=p.SubmenuContext},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>d});var r=n(59496),o=n(97754),s=n(59064),i=n(51768),a=n(90186),l=n(23576);const c=l;function h(e){const{reference:t,...n}=e,o={...n,ref:t};return r.createElement(e.href?"a":"div",o)}function u(e){e.stopPropagation()}function d(e){const{id:t,role:n,"aria-selected":c,className:d,title:p,labelRowClassName:m,labelClassName:g,shortcut:f,forceShowShortcuts:v,icon:b,isActive:w,isDisabled:C,isHovered:_,appearAsDisabled:x,label:E,link:M,showToolboxOnHover:S,target:y,rel:k,toolbox:O,reference:N,onMouseOut:A,onMouseOver:R,suppressToolboxClick:P=!0,theme:W=l}=e,T=(0,a.filterDataProps)(e),F=(0,r.useRef)(null);return r.createElement(h,{...T,id:t,role:n,"aria-selected":c,className:o(d,W.item,b&&W.withIcon,{[W.isActive]:w,[W.isDisabled]:C||x,[W.hovered]:_}),title:p,href:M,target:y,rel:k,reference:function(e){F.current=e,"function"==typeof N&&N(e);"object"==typeof N&&(N.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:r,onClickArg:o,trackEventObject:a}=e;if(C)return;a&&(0,i.trackEvent)(a.category,a.event,a.label);r&&r(o,t);n||(0,s.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:r}=e;n&&r&&(0,i.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:r}=e;if(1===t.button&&M&&n){ +let e=n.label;r&&(e+="_mouseWheelClick"),(0,i.trackEvent)(n.category,n.event,e)}},onMouseOver:R,onMouseOut:A},void 0!==b&&r.createElement("div",{className:W.icon,dangerouslySetInnerHTML:{__html:b}}),r.createElement("div",{className:o(W.labelRow,m)},r.createElement("div",{className:o(W.label,g)},E)),(void 0!==f||v)&&r.createElement("div",{className:W.shortcut},(z=f)&&z.split("+").join(" + ")),void 0!==O&&r.createElement("div",{onClick:P?u:void 0,className:o(W.toolbox,{[W.showOnHover]:S})},O));var z}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>s});var r=n(59496),o=n(59064);const s=r.createContext(o.globalCloseDelegate)},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>c});var r=n(59496),o=n(87995),s=n(65718),i=n(27317),a=n(29197),l=n(58095);function c(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:h=!0,doNotCloseOn:u,onClickOutside:d,onClose:p,...m}=e,g=(0,r.useContext)(a.CloseDelegateContext),f=(0,l.useOutsideEvent)({handler:function(e){d&&d(e);if(!h)return;if(u&&e.target instanceof Node){const t=o.findDOMNode(u);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?r.createElement(s.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.createElement("span",{ref:f,style:{pointerEvents:"auto"}},r.createElement(i.Menu,{...m,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:g,ref:t},n))):null}},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>o,SubmenuHandler:()=>s});var r=n(59496);const o=r.createContext(null);function s(e){const[t,n]=(0,r.useState)(null),s=(0,r.useRef)(null),i=(0,r.useRef)(new Map);return(0,r.useEffect)(()=>()=>{null!==s.current&&clearTimeout(s.current)},[]),r.createElement(o.Provider,{value:{current:t,setCurrent:function(e){null!==s.current&&(clearTimeout(s.current),s.current=null);null===t?n(e):s.current=setTimeout(()=>{s.current=null,n(e)},100)},registerSubmenu:function(e,t){return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some(t=>t(e))}}},e.children)}},49154:e=>{e.exports=''},83546:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/81f2326cf9c77d248b96f6bc5f80c13d.svg b/charting_library/bundles/81f2326cf9c77d248b96f6bc5f80c13d.svg new file mode 100644 index 00000000..f4885afa --- /dev/null +++ b/charting_library/bundles/81f2326cf9c77d248b96f6bc5f80c13d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8247.92c794a740a939962228.css b/charting_library/bundles/8247.92c794a740a939962228.css new file mode 100644 index 00000000..ea06511f --- /dev/null +++ b/charting_library/bundles/8247.92c794a740a939962228.css @@ -0,0 +1 @@ +.dialog-5BeaIUa1{background-color:#fff;border:1px solid #e0e3eb;box-sizing:border-box;display:none;flex-direction:column;height:100%;left:0;position:fixed;top:0;transform:translateZ(0);width:100%;will-change:transform}html.theme-dark .dialog-5BeaIUa1{background-color:#131722;border-color:#363a45}.dialog-5BeaIUa1.visible-5BeaIUa1{display:flex}.dialog-5BeaIUa1 .title-5BeaIUa1{border-bottom:1px solid #e0e3eb;flex:0 0 auto;padding:28px;position:relative}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1{border-bottom-color:#363a45}.dialog-5BeaIUa1 .title-5BeaIUa1 .text-5BeaIUa1{font-size:22px;font-weight:400;letter-spacing:1.1px;line-height:1;text-align:left}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1{display:inline-flex;position:absolute;right:25px;top:14px}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:14px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{height:19px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{stroke:#434651;stroke-width:2px}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{stroke:#d1d4dc}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1{align-items:flex-end;cursor:pointer;display:inline-flex;opacity:.5;padding:14px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{height:2px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{stroke:#434651;stroke-width:100%}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{stroke:#d1d4dc}@media screen and (max-width:767px){.dialog-5BeaIUa1 .title-5BeaIUa1{padding:12px 20px}.dialog-5BeaIUa1 .title-5BeaIUa1 .text-5BeaIUa1{font-size:18px;font-weight:700}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1{right:0;top:0}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1{cursor:pointer;display:inline-flex;opacity:.5;padding:12px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{height:19px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1{cursor:pointer;display:inline-flex;opacity:.5;padding:12px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{height:2px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}}.dialog-5BeaIUa1 .handle-5BeaIUa1{align-items:center;bottom:0;display:flex;left:0;position:absolute;top:0;width:20px}.dialog-5BeaIUa1 .handle-5BeaIUa1 .control-5BeaIUa1{background-color:#9598a1;border-radius:3px;height:76px;margin-left:12px;width:4px}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1 .control-5BeaIUa1{background-color:#787b86}@media (any-hover:hover){.dialog-5BeaIUa1 .handle-5BeaIUa1:hover{cursor:col-resize}.dialog-5BeaIUa1 .handle-5BeaIUa1:hover .control-5BeaIUa1{background-color:#787b86}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1:hover .control-5BeaIUa1{background-color:#9598a1}}.dialog-5BeaIUa1 .handle-5BeaIUa1:active .control-5BeaIUa1{background-color:#5d606b}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1:active .control-5BeaIUa1{background-color:#b2b5be}.dialog-5BeaIUa1 .wrap-5BeaIUa1{display:flex;flex-grow:1;overflow:auto;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .dialog-5BeaIUa1 .wrap-5BeaIUa1{scrollbar-color:#363a45 #0000}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar{height:5px;width:5px}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-corner{display:none}.dialog-5BeaIUa1 .wrap-5BeaIUa1.touch-5BeaIUa1{-webkit-overflow-scrolling:touch}.dialog-5BeaIUa1.dragging-5BeaIUa1{-webkit-user-select:none;user-select:none} \ No newline at end of file diff --git a/charting_library/bundles/8247.92c794a740a939962228.rtl.css b/charting_library/bundles/8247.92c794a740a939962228.rtl.css new file mode 100644 index 00000000..7f17749d --- /dev/null +++ b/charting_library/bundles/8247.92c794a740a939962228.rtl.css @@ -0,0 +1 @@ +.dialog-5BeaIUa1{background-color:#fff;border:1px solid #e0e3eb;box-sizing:border-box;display:none;flex-direction:column;height:100%;position:fixed;right:0;top:0;transform:translateZ(0);width:100%;will-change:transform}html.theme-dark .dialog-5BeaIUa1{background-color:#131722;border-color:#363a45}.dialog-5BeaIUa1.visible-5BeaIUa1{display:flex}.dialog-5BeaIUa1 .title-5BeaIUa1{border-bottom:1px solid #e0e3eb;flex:0 0 auto;padding:28px;position:relative}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1{border-bottom-color:#363a45}.dialog-5BeaIUa1 .title-5BeaIUa1 .text-5BeaIUa1{font-size:22px;font-weight:400;letter-spacing:1.1px;line-height:1;text-align:right}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1{display:inline-flex;left:25px;position:absolute;top:14px}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1{align-items:center;cursor:pointer;display:inline-flex;opacity:.5;padding:14px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{height:19px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{stroke:#434651;stroke-width:2px}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{stroke:#d1d4dc}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1{align-items:flex-end;cursor:pointer;display:inline-flex;opacity:.5;padding:14px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{height:2px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{stroke:#434651;stroke-width:100%}html.theme-dark .dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{stroke:#d1d4dc}@media screen and (max-width:767px){.dialog-5BeaIUa1 .title-5BeaIUa1{padding:12px 20px}.dialog-5BeaIUa1 .title-5BeaIUa1 .text-5BeaIUa1{font-size:18px;font-weight:700}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1{left:0;top:0}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1{cursor:pointer;display:inline-flex;opacity:.5;padding:12px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1 svg{height:19px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .close-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1{cursor:pointer;display:inline-flex;opacity:.5;padding:12px;transition:opacity .35s ease;-webkit-user-select:none;user-select:none}.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1 svg{height:2px;width:19px}@media (any-hover:hover){.dialog-5BeaIUa1 .title-5BeaIUa1 .actions-5BeaIUa1 .minimize-5BeaIUa1:hover{opacity:1;transition-duration:.06s}}}.dialog-5BeaIUa1 .handle-5BeaIUa1{align-items:center;bottom:0;display:flex;left:0;position:absolute;top:0;width:20px}.dialog-5BeaIUa1 .handle-5BeaIUa1 .control-5BeaIUa1{background-color:#9598a1;border-radius:3px;height:76px;margin-right:12px;width:4px}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1 .control-5BeaIUa1{background-color:#787b86}@media (any-hover:hover){.dialog-5BeaIUa1 .handle-5BeaIUa1:hover{cursor:col-resize}.dialog-5BeaIUa1 .handle-5BeaIUa1:hover .control-5BeaIUa1{background-color:#787b86}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1:hover .control-5BeaIUa1{background-color:#9598a1}}.dialog-5BeaIUa1 .handle-5BeaIUa1:active .control-5BeaIUa1{background-color:#5d606b}html.theme-dark .dialog-5BeaIUa1 .handle-5BeaIUa1:active .control-5BeaIUa1{background-color:#b2b5be}.dialog-5BeaIUa1 .wrap-5BeaIUa1{display:flex;flex-grow:1;overflow:auto;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .dialog-5BeaIUa1 .wrap-5BeaIUa1{scrollbar-color:#363a45 #0000}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar{height:5px;width:5px}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.dialog-5BeaIUa1 .wrap-5BeaIUa1::-webkit-scrollbar-corner{display:none}.dialog-5BeaIUa1 .wrap-5BeaIUa1.touch-5BeaIUa1{-webkit-overflow-scrolling:touch}.dialog-5BeaIUa1.dragging-5BeaIUa1{-webkit-user-select:none;user-select:none} \ No newline at end of file diff --git a/charting_library/bundles/832264ecc6d4da63cbcff71ea9186b3e.svg b/charting_library/bundles/832264ecc6d4da63cbcff71ea9186b3e.svg new file mode 100644 index 00000000..aca79f69 --- /dev/null +++ b/charting_library/bundles/832264ecc6d4da63cbcff71ea9186b3e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/833a14929e5d24379a09b7fab2f54002.svg b/charting_library/bundles/833a14929e5d24379a09b7fab2f54002.svg new file mode 100644 index 00000000..29d1e476 --- /dev/null +++ b/charting_library/bundles/833a14929e5d24379a09b7fab2f54002.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8367.7c0a1d12f9627a67aa36.css b/charting_library/bundles/8367.7c0a1d12f9627a67aa36.css new file mode 100644 index 00000000..e5343788 --- /dev/null +++ b/charting_library/bundles/8367.7c0a1d12f9627a67aa36.css @@ -0,0 +1 @@ +.dialog-VogZFLY8{align-content:center;align-items:center;background-color:#1e222d;display:flex;justify-content:center;position:relative}.dialog-VogZFLY8.border-VogZFLY8{border-radius:0}.closeButton-VogZFLY8{color:#d1d4dc;position:absolute;right:16px;top:16px}@media screen and (min-width:1280px){.closeButton-VogZFLY8{right:32px;top:32px}}@media screen and (min-device-width:375px) and (max-device-height:812px) and (orientation:landscape){.closeButton-VogZFLY8{right:8px;top:8px}}@media (any-hover:hover){.closeButton-VogZFLY8:hover{background:#2a2e39;color:#f0f3fa}}.closeButton-VogZFLY8:active{background:#1e222d;color:#fff}.container-VogZFLY8{align-content:center;align-items:center;display:flex;height:100vh;justify-content:center;position:relative;width:100vw}.container-VogZFLY8 .img-VogZFLY8{margin:0;max-height:80%;max-width:100%;position:absolute}@media screen and (min-width:1024px){.container-VogZFLY8 .img-VogZFLY8{border-radius:6px;max-height:72%;width:auto}}@media screen and (min-device-width:375px) and (max-device-height:812px) and (orientation:landscape){.container-VogZFLY8 .img-VogZFLY8{max-height:70%;width:auto}} \ No newline at end of file diff --git a/charting_library/bundles/8367.7c0a1d12f9627a67aa36.rtl.css b/charting_library/bundles/8367.7c0a1d12f9627a67aa36.rtl.css new file mode 100644 index 00000000..36ff9e56 --- /dev/null +++ b/charting_library/bundles/8367.7c0a1d12f9627a67aa36.rtl.css @@ -0,0 +1 @@ +.dialog-VogZFLY8{align-content:center;align-items:center;background-color:#1e222d;display:flex;justify-content:center;position:relative}.dialog-VogZFLY8.border-VogZFLY8{border-radius:0}.closeButton-VogZFLY8{color:#d1d4dc;left:16px;position:absolute;top:16px}@media screen and (min-width:1280px){.closeButton-VogZFLY8{left:32px;top:32px}}@media screen and (min-device-width:375px) and (max-device-height:812px) and (orientation:landscape){.closeButton-VogZFLY8{left:8px;top:8px}}@media (any-hover:hover){.closeButton-VogZFLY8:hover{background:#2a2e39;color:#f0f3fa}}.closeButton-VogZFLY8:active{background:#1e222d;color:#fff}.container-VogZFLY8{align-content:center;align-items:center;display:flex;height:100vh;justify-content:center;position:relative;width:100vw}.container-VogZFLY8 .img-VogZFLY8{margin:0;max-height:80%;max-width:100%;position:absolute}@media screen and (min-width:1024px){.container-VogZFLY8 .img-VogZFLY8{border-radius:6px;max-height:72%;width:auto}}@media screen and (min-device-width:375px) and (max-device-height:812px) and (orientation:landscape){.container-VogZFLY8 .img-VogZFLY8{max-height:70%;width:auto}} \ No newline at end of file diff --git a/charting_library/bundles/8386a0d291cb7eb9183b942d59c52947.svg b/charting_library/bundles/8386a0d291cb7eb9183b942d59c52947.svg new file mode 100644 index 00000000..596d100e --- /dev/null +++ b/charting_library/bundles/8386a0d291cb7eb9183b942d59c52947.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/842fcb191878b2812c044528ff533832.svg b/charting_library/bundles/842fcb191878b2812c044528ff533832.svg new file mode 100644 index 00000000..f1c0c015 --- /dev/null +++ b/charting_library/bundles/842fcb191878b2812c044528ff533832.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/85398f0b883442712a726600cec9c27d.svg b/charting_library/bundles/85398f0b883442712a726600cec9c27d.svg new file mode 100644 index 00000000..a67b9554 --- /dev/null +++ b/charting_library/bundles/85398f0b883442712a726600cec9c27d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/858bcfa8c8d9c8d8551fcb9a8cdc2499.svg b/charting_library/bundles/858bcfa8c8d9c8d8551fcb9a8cdc2499.svg new file mode 100644 index 00000000..aad2faf2 --- /dev/null +++ b/charting_library/bundles/858bcfa8c8d9c8d8551fcb9a8cdc2499.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/85f9662bfe09fc2b79d5d962fc3b6e1a.svg b/charting_library/bundles/85f9662bfe09fc2b79d5d962fc3b6e1a.svg new file mode 100644 index 00000000..fc655bb6 --- /dev/null +++ b/charting_library/bundles/85f9662bfe09fc2b79d5d962fc3b6e1a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8673.cddd661446f4cbe31273.js b/charting_library/bundles/8673.cddd661446f4cbe31273.js new file mode 100644 index 00000000..bcfea958 --- /dev/null +++ b/charting_library/bundles/8673.cddd661446f4cbe31273.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8673,6438],{59142:function(e,t){var n,r,o;r=[t],void 0===(o="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=s.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,l.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children +;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){y&&p&&(y=!1,p.length?d=p.concat(d):v=-1,d.length&&u())}function u(){if(!y){var e=o(i);y=!0;for(var t=d.length;t;){for(p=d,d=[];++v1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,u=void 0;return t.margin&&(u=(0,r.default)(getComputedStyle(e))),t.margin?(o=u.left+n.width+u.right,i=u.top+n.height+u.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))}}]); \ No newline at end of file diff --git a/charting_library/bundles/869b5f01bc7105cc3788b584c5bc1bef.svg b/charting_library/bundles/869b5f01bc7105cc3788b584c5bc1bef.svg new file mode 100644 index 00000000..257eeba0 --- /dev/null +++ b/charting_library/bundles/869b5f01bc7105cc3788b584c5bc1bef.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/86e22a99d9d9ee81924e0b438e204dd7.svg b/charting_library/bundles/86e22a99d9d9ee81924e0b438e204dd7.svg new file mode 100644 index 00000000..43f65bdf --- /dev/null +++ b/charting_library/bundles/86e22a99d9d9ee81924e0b438e204dd7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8756.2b636aa87bb90a37e76d.css b/charting_library/bundles/8756.2b636aa87bb90a37e76d.css new file mode 100644 index 00000000..141e06da --- /dev/null +++ b/charting_library/bundles/8756.2b636aa87bb90a37e76d.css @@ -0,0 +1 @@ +.banner-EZ3DKk2H{align-items:center;background:#fff;display:flex;flex-flow:column-reverse nowrap;margin:0 -8px;padding:72px 20px}html.theme-dark .banner-EZ3DKk2H{background:#1e222d}@media screen and (min-width:480px){.banner-EZ3DKk2H{padding:72px 64px}}@media screen and (min-width:1020px){.banner-EZ3DKk2H{border-radius:6px;box-shadow:0 2px 4px #0003;flex-flow:row nowrap;margin-top:0;padding:64px}html.theme-dark .banner-EZ3DKk2H{box-shadow:0 2px 4px #0006}}.countdown-section-EZ3DKk2H{align-items:center;display:flex;flex-flow:column nowrap;flex-grow:1;margin-bottom:32px}@media screen and (min-width:1020px){.countdown-section-EZ3DKk2H{margin-bottom:0;padding-left:32px}}.main-section-EZ3DKk2H{align-items:center;display:flex;flex-flow:column nowrap}@media screen and (min-width:1020px){.main-section-EZ3DKk2H{align-items:flex-start}}.title-EZ3DKk2H{color:#131722;font-size:48px;font-style:normal;font-weight:600;line-height:56px;margin-bottom:16px;text-align:center}html.theme-dark .title-EZ3DKk2H{color:#d1d4dc}@media screen and (max-width:767px){.title-EZ3DKk2H{font-size:32px;font-style:normal;font-weight:600;line-height:40px}}@media screen and (min-width:1020px){.title-EZ3DKk2H{flex-flow:row nowrap;text-align:initial}}.main-text-EZ3DKk2H{color:#131722;font-size:24px;font-style:normal;font-weight:400;line-height:36px;margin-bottom:32px;text-align:center}html.theme-dark .main-text-EZ3DKk2H{color:#d1d4dc}@media screen and (min-width:1020px){.main-text-EZ3DKk2H{text-align:initial}}.image-EZ3DKk2H{height:120px;margin-bottom:40px;width:120px}@media screen and (min-width:1020px){.image-EZ3DKk2H{margin-bottom:24px}} \ No newline at end of file diff --git a/charting_library/bundles/8756.2b636aa87bb90a37e76d.rtl.css b/charting_library/bundles/8756.2b636aa87bb90a37e76d.rtl.css new file mode 100644 index 00000000..88327ce3 --- /dev/null +++ b/charting_library/bundles/8756.2b636aa87bb90a37e76d.rtl.css @@ -0,0 +1 @@ +.banner-EZ3DKk2H{align-items:center;background:#fff;display:flex;flex-flow:column-reverse nowrap;margin:0 -8px;padding:72px 20px}html.theme-dark .banner-EZ3DKk2H{background:#1e222d}@media screen and (min-width:480px){.banner-EZ3DKk2H{padding:72px 64px}}@media screen and (min-width:1020px){.banner-EZ3DKk2H{border-radius:6px;box-shadow:0 2px 4px #0003;flex-flow:row nowrap;margin-top:0;padding:64px}html.theme-dark .banner-EZ3DKk2H{box-shadow:0 2px 4px #0006}}.countdown-section-EZ3DKk2H{align-items:center;display:flex;flex-flow:column nowrap;flex-grow:1;margin-bottom:32px}@media screen and (min-width:1020px){.countdown-section-EZ3DKk2H{margin-bottom:0;padding-right:32px}}.main-section-EZ3DKk2H{align-items:center;display:flex;flex-flow:column nowrap}@media screen and (min-width:1020px){.main-section-EZ3DKk2H{align-items:flex-start}}.title-EZ3DKk2H{color:#131722;font-size:48px;font-style:normal;font-weight:600;line-height:56px;margin-bottom:16px;text-align:center}html.theme-dark .title-EZ3DKk2H{color:#d1d4dc}@media screen and (max-width:767px){.title-EZ3DKk2H{font-size:32px;font-style:normal;font-weight:600;line-height:40px}}@media screen and (min-width:1020px){.title-EZ3DKk2H{flex-flow:row nowrap;text-align:initial}}.main-text-EZ3DKk2H{color:#131722;font-size:24px;font-style:normal;font-weight:400;line-height:36px;margin-bottom:32px;text-align:center}html.theme-dark .main-text-EZ3DKk2H{color:#d1d4dc}@media screen and (min-width:1020px){.main-text-EZ3DKk2H{text-align:initial}}.image-EZ3DKk2H{height:120px;margin-bottom:40px;width:120px}@media screen and (min-width:1020px){.image-EZ3DKk2H{margin-bottom:24px}} \ No newline at end of file diff --git a/charting_library/bundles/883627aca446035b3986466acc71a69b.svg b/charting_library/bundles/883627aca446035b3986466acc71a69b.svg new file mode 100644 index 00000000..546481c9 --- /dev/null +++ b/charting_library/bundles/883627aca446035b3986466acc71a69b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8844.902c220eb319c5a7b057.css b/charting_library/bundles/8844.902c220eb319c5a7b057.css new file mode 100644 index 00000000..aecd400d --- /dev/null +++ b/charting_library/bundles/8844.902c220eb319c5a7b057.css @@ -0,0 +1 @@ +.close-button-WaM0Er9G{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;margin:0;padding:8px}html.theme-dark .close-button-WaM0Er9G{color:#b2b5be}@media (any-hover:hover){.close-button-WaM0Er9G:hover{background:#f0f3fa}html.theme-dark .close-button-WaM0Er9G:hover{background:#2a2e39}}.close-button-WaM0Er9G:active{background:#e0e3eb}html.theme-dark .close-button-WaM0Er9G:active{background:#1e222d}.close-button-WaM0Er9G{outline:none;overflow:visible;position:absolute}.close-button-WaM0Er9G:focus{outline:none}.close-button-WaM0Er9G:focus-visible{outline:none}.close-button-WaM0Er9G:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.close-button-WaM0Er9G:focus:after{display:block}.close-button-WaM0Er9G:focus-visible:after{display:block}.close-button-WaM0Er9G:focus:not(:focus-visible):after{display:none}.close-button-WaM0Er9G:after{border-color:#2962ffcc;border-radius:8px}.close-icon-WaM0Er9G,.close-icon-WaM0Er9G svg{display:block;height:100%}.button-l-WaM0Er9G{height:23px;padding:8px;width:23px}.button-m-WaM0Er9G{height:17px;padding:8px;width:17px}.button-s-WaM0Er9G{height:13px;padding:8px;width:13px}.button-xs-WaM0Er9G{height:11px;padding:4px;width:11px}.button-xxs-WaM0Er9G{height:9px;padding:4px;width:9px} \ No newline at end of file diff --git a/charting_library/bundles/8844.902c220eb319c5a7b057.rtl.css b/charting_library/bundles/8844.902c220eb319c5a7b057.rtl.css new file mode 100644 index 00000000..998c6ee9 --- /dev/null +++ b/charting_library/bundles/8844.902c220eb319c5a7b057.rtl.css @@ -0,0 +1 @@ +.close-button-WaM0Er9G{background:#0000;border:none;border-radius:4px;box-sizing:initial;color:#131722;margin:0;padding:8px}html.theme-dark .close-button-WaM0Er9G{color:#b2b5be}@media (any-hover:hover){.close-button-WaM0Er9G:hover{background:#f0f3fa}html.theme-dark .close-button-WaM0Er9G:hover{background:#2a2e39}}.close-button-WaM0Er9G:active{background:#e0e3eb}html.theme-dark .close-button-WaM0Er9G:active{background:#1e222d}.close-button-WaM0Er9G{outline:none;overflow:visible;position:absolute}.close-button-WaM0Er9G:focus{outline:none}.close-button-WaM0Er9G:focus-visible{outline:none}.close-button-WaM0Er9G:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.close-button-WaM0Er9G:focus:after{display:block}.close-button-WaM0Er9G:focus-visible:after{display:block}.close-button-WaM0Er9G:focus:not(:focus-visible):after{display:none}.close-button-WaM0Er9G:after{border-color:#2962ffcc;border-radius:8px}.close-icon-WaM0Er9G,.close-icon-WaM0Er9G svg{display:block;height:100%}.button-l-WaM0Er9G{height:23px;padding:8px;width:23px}.button-m-WaM0Er9G{height:17px;padding:8px;width:17px}.button-s-WaM0Er9G{height:13px;padding:8px;width:13px}.button-xs-WaM0Er9G{height:11px;padding:4px;width:11px}.button-xxs-WaM0Er9G{height:9px;padding:4px;width:9px} \ No newline at end of file diff --git a/charting_library/bundles/885565ce0ebf9919066eb4196290c711.svg b/charting_library/bundles/885565ce0ebf9919066eb4196290c711.svg new file mode 100644 index 00000000..650c08df --- /dev/null +++ b/charting_library/bundles/885565ce0ebf9919066eb4196290c711.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8883.edd50cff73a3164330f4.js b/charting_library/bundles/8883.edd50cff73a3164330f4.js deleted file mode 100644 index c9319d8f..00000000 --- a/charting_library/bundles/8883.edd50cff73a3164330f4.js +++ /dev/null @@ -1,37 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8883,3016,1075],{90896:e=>{e.exports={wrapper:"wrapper-oPZWoMdB",focused:"focused-oPZWoMdB",readonly:"readonly-oPZWoMdB",disabled:"disabled-oPZWoMdB","size-small":"size-small-oPZWoMdB","size-medium":"size-medium-oPZWoMdB","size-large":"size-large-oPZWoMdB","font-size-small":"font-size-small-oPZWoMdB","font-size-medium":"font-size-medium-oPZWoMdB","font-size-large":"font-size-large-oPZWoMdB","border-none":"border-none-oPZWoMdB",shadow:"shadow-oPZWoMdB","border-thin":"border-thin-oPZWoMdB","border-thick":"border-thick-oPZWoMdB","intent-default":"intent-default-oPZWoMdB","intent-success":"intent-success-oPZWoMdB","intent-warning":"intent-warning-oPZWoMdB","intent-danger":"intent-danger-oPZWoMdB","intent-primary":"intent-primary-oPZWoMdB","corner-top-left":"corner-top-left-oPZWoMdB","corner-top-right":"corner-top-right-oPZWoMdB","corner-bottom-right":"corner-bottom-right-oPZWoMdB","corner-bottom-left":"corner-bottom-left-oPZWoMdB",childrenContainer:"childrenContainer-oPZWoMdB"}},58858:e=>{e.exports={defaultSelect:"defaultSelect-6eXd0Ihx"}},78781:e=>{e.exports={itemWrap:"itemWrap-YXml6gvK",item:"item-YXml6gvK",icon:"icon-YXml6gvK",selected:"selected-YXml6gvK",label:"label-YXml6gvK"}},5717:e=>{e.exports={lineEndSelect:"lineEndSelect-RMwVB5BV",right:"right-RMwVB5BV"}},73084:e=>{e.exports={lineStyleSelect:"lineStyleSelect-2BDVWQbf",multipleStyles:"multipleStyles-2BDVWQbf"}},218:e=>{e.exports={lineWidthSelect:"lineWidthSelect-TYbMx0kd",bar:"bar-TYbMx0kd",isActive:"isActive-TYbMx0kd",item:"item-TYbMx0kd"}},56994:e=>{e.exports={container:"container-Wq7zjnRZ",active:"active-Wq7zjnRZ",disabled:"disabled-Wq7zjnRZ",icon:"icon-Wq7zjnRZ"}},21818:e=>{e.exports={wrap:"wrap-CLB8ZlH6",disabled:"disabled-CLB8ZlH6"}},52465:e=>{e.exports={dropdown:"dropdown-KoV1659s",dropdownMenu:"dropdownMenu-KoV1659s",firstColorPicker:"firstColorPicker-KoV1659s"}},31650:e=>{e.exports={row:"row-kB7roDMw",wrap:"wrap-kB7roDMw",breakpointNormal:"breakpointNormal-kB7roDMw",breakpointMedium:"breakpointMedium-kB7roDMw",breakpointSmall:"breakpointSmall-kB7roDMw"}},51285:e=>{e.exports={coordinates:"coordinates-V0LzFOLU",input:"input-V0LzFOLU"}},9688:e=>{e.exports={wrapper:"wrapper-IjSbS0mB",checkbox:"checkbox-IjSbS0mB",colorSelect:"colorSelect-IjSbS0mB"}},29148:e=>{e.exports={withoutPadding:"withoutPadding-VwIbEpbX"}},67474:e=>{e.exports={input:"input-SCyh9tQM",control:"control-SCyh9tQM",item:"item-SCyh9tQM",cell:"cell-SCyh9tQM",fragmentCell:"fragmentCell-SCyh9tQM",withTitle:"withTitle-SCyh9tQM",title:"title-SCyh9tQM"}},55368:e=>{e.exports={line:"line-er8glV8W",control:"control-er8glV8W",valueInput:"valueInput-er8glV8W",valueUnit:"valueUnit-er8glV8W",input:"input-er8glV8W"}},80346:e=>{e.exports={unit:"unit-yU23iRoD",input:"input-yU23iRoD",normal:"normal-yU23iRoD",big:"big-yU23iRoD",dropdown:"dropdown-yU23iRoD",dropdownMenu:"dropdownMenu-yU23iRoD"}},89477:e=>{e.exports={dropdown:"dropdown-TevhCNe0",normal:"normal-TevhCNe0",big:"big-TevhCNe0",dropdownMenu:"dropdownMenu-TevhCNe0"}},94245:e=>{ -e.exports={range:"range-DTExo36Q",valueInput:"valueInput-DTExo36Q",rangeSlider:"rangeSlider-DTExo36Q",rangeSlider_mixed:"rangeSlider_mixed-DTExo36Q",input:"input-DTExo36Q"}},45449:e=>{e.exports={colorPicker:"colorPicker-zLqwzQsC",fontStyleButton:"fontStyleButton-zLqwzQsC",dropdown:"dropdown-zLqwzQsC",dropdownMenu:"dropdownMenu-zLqwzQsC"}},35048:e=>{e.exports={twoColors:"twoColors-0m0hhV3v",colorPicker:"colorPicker-0m0hhV3v"}},33126:e=>{e.exports={dropdown:"dropdown-8h1M1df3",menu:"menu-8h1M1df3"}},17683:e=>{e.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},99339:e=>{e.exports={wrapper:"wrapper-3LlhL6R6",emoji:"emoji-3LlhL6R6"}},83341:e=>{e.exports={list:"list-mYbRQuGD"}},70358:e=>{e.exports={wrapper:"wrapper-KYBibz0a"}},39897:e=>{e.exports={wrapper:"wrapper-EVXZqxr4",emojiItem:"emojiItem-EVXZqxr4"}},40681:e=>{e.exports={wrapper:"wrapper-wFgLbqCx",isActive:"isActive-wFgLbqCx"}},88436:e=>{e.exports={wrapper:"wrapper-z9lPbT43"}},16859:e=>{e.exports={wrapper:"wrapper-s7880WH7"}},95076:e=>{e.exports={desktopSize:"desktopSize-iVjStStf",drawer:"drawer-iVjStStf",menuBox:"menuBox-iVjStStf"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},65830:e=>{e.exports={range:"range-w7rMmNtQ",disabled:"disabled-w7rMmNtQ",rangeSlider:"rangeSlider-w7rMmNtQ",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-w7rMmNtQ",rangeSliderMiddle:"rangeSliderMiddle-w7rMmNtQ",dragged:"dragged-w7rMmNtQ",pointer:"pointer-w7rMmNtQ",rangePointerWrap:"rangePointerWrap-w7rMmNtQ"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>i});var o=n(59496);const i=o.forwardRef((e,t)=>{const{icon:n="",...i}=e;return o.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:n}})})},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>o,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var o,i,r,a,s=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight", -e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(n,c)=>{const d=(0,s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=l.verticalAttachEdge,verticalDropDirection:p=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:f=l.horizontalMargin,verticalMargin:g=l.verticalMargin,matchButtonAndListboxWidths:v=l.matchButtonAndListboxWidths}=t,y=u===o.Top?-1*g:g,b=h===i.Right?d.right:d.left,w=u===o.Top?d.top:d.bottom,_={x:b-(m===a.FromRightToLeft?n:0)+f,y:w-(p===r.FromBottomToTop?c:0)+y};return v&&(_.overrideWidth=d.width),_}}},32449:(e,t,n)=>{"use strict";function o(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue(r(t))},subscribe:(t,n)=>{const i=e=>{n(a)};o.set(n,i),e.subscribe(t,i)},unsubscribe:(t,n)=>{const i=o.get(n);i&&(e.unsubscribe(t,i),o.delete(n))},unsubscribeAll:t=>{e.unsubscribeAll(t),o.clear()},destroy:()=>{null==n||n()}};return a}function i(e){const t=o(e);return t.destroy=()=>{e.destroy()},t}function r(e,t,n,i,r,a){const s=o(t,i,a),l=void 0!==i?void 0!==i[1]?i[1]:i[0]:e=>e;return s.setValue=null!=r?r:o=>e.setProperty(t,l(o),n),s}n.d(t,{makeProxyDefinitionProperty:()=>o,makeProxyDefinitionPropertyDestroyable:()=>i,convertToDefinitionProperty:()=>r})},50366:(e,t,n)=>{"use strict";function o(e,t){return{propType:"checkable",properties:e,...t}}function i(e,t,n){return{propType:"checkableSet",properties:e,childrenDefinitions:n,...t}}function r(e,t){return{propType:"color",properties:e,noAlpha:!1,...t}}n.d(t,{convertFromReadonlyWVToDefinitionProperty:()=>O,convertFromWVToDefinitionProperty:()=>H,convertToDefinitionProperty:()=>I.convertToDefinitionProperty,createCheckablePropertyDefinition:()=>o,createCheckableSetPropertyDefinition:()=>i,createColorPropertyDefinition:()=>r,createCoordinatesPropertyDefinition:()=>P,createEmojiPropertyDefinition:()=>k,createLeveledLinePropertyDefinition:()=>m,createLinePropertyDefinition:()=>u,createNumberPropertyDefinition:()=>f,createOptionsPropertyDefinition:()=>g,createPropertyDefinitionsGeneralGroup:()=>L,createPropertyDefinitionsLeveledLinesGroup:()=>A,createRangePropertyDefinition:()=>T,createSessionPropertyDefinition:()=>z,createStudyInputsPropertyDefinition:()=>B,createSymbolPropertyDefinition:()=>V,createTextPropertyDefinition:()=>D,createTransparencyPropertyDefinition:()=>N,createTwoColorsPropertyDefinition:()=>M,createTwoOptionsPropertyDefinition:()=>v,destroyDefinitions:()=>J,getColorDefinitionProperty:()=>X,getLockPriceScaleDefinitionProperty:()=>Z,getPriceScaleSelectionStrategyDefinitionProperty:()=>j,getScaleRatioDefinitionProperty:()=>U,getSymbolDefinitionProperty:()=>G,isPropertyDefinitionsGroup:()=>$});var a=n(49612),s=n(43891) -;const l=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],c=[1,2,3,4],d=[a.LineEnd.Normal,a.LineEnd.Arrow];function u(e,t){const n={propType:"line",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=l),void 0!==n.properties.width&&(n.widthValues=c),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=d),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}const p=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],h=[1,2,3,4];function m(e,t){const n={propType:"leveledLine",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=p),void 0!==n.properties.width&&(n.widthValues=h),n}function f(e,t){return{propType:"number",properties:e,type:1,...t}}function g(e,t){return{propType:"options",properties:e,...t}}function v(e,t){return{propType:"twoOptions",properties:e,...t}}var y=n(28353);const b=[{id:"bottom",value:"bottom",title:(0,y.t)("Top")},{id:"middle",value:"middle",title:(0,y.t)("Middle")},{id:"top",value:"top",title:(0,y.t)("Bottom")}],w=[{id:"left",value:"left",title:(0,y.t)("Left")},{id:"center",value:"center",title:(0,y.t)("Center")},{id:"right",value:"right",title:(0,y.t)("Right")}],_=[{id:"horizontal",value:"horizontal",title:(0,y.t)("Horizontal")},{id:"vertical",value:"vertical",title:(0,y.t)("Vertical")}],E=[10,11,12,14,16,20,24,28,32,40].map(e=>({title:String(e),value:e})),C=[1,2,3,4],S=(0,y.t)("Text alignment"),x=(0,y.t)("Text orientation");function D(e,t){const n={propType:"text",properties:e,...t,isEditable:t.isEditable||!1};return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=E),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=b),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=w),(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=S),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=_),void 0===n.orientationTitle&&(n.orientationTitle=x)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=C),n}function M(e,t){return{propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function P(e,t){return{propType:"coordinates",properties:e,...t}}function T(e,t){return{propType:"range",properties:e,...t}}function N(e,t){return{propType:"transparency",properties:e,...t}}function V(e,t){return{propType:"symbol",properties:e,...t}}function z(e,t){return{propType:"session",properties:e,...t}}function k(e,t){return{propType:"emoji",properties:e,...t}}function B(e,t){return{propType:"studyInputs",properties:e,...t}}var R=n(52714),W=n.n(R);function L(e,t,n,o){return{id:t,title:n,visible:o,groupType:"general",definitions:new(W())(e)}}function A(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new(W())(e)}}var I=n(32449);function F(e,t){const n=new Map,o=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,r={value:()=>o(e.value()), -setValue:t=>{var n;null===(n=e.setValue)||void 0===n||n.call(e,i(t))},subscribe:(t,o)=>{const i=()=>{o(r)};let a=n.get(t);void 0===a?(a=new Map,a.set(o,i),n.set(t,a)):a.set(o,i),e.subscribe(i)},unsubscribe:(t,o)=>{const i=n.get(t);if(void 0!==i){const t=i.get(o);void 0!==t&&(e.unsubscribe(t),i.delete(o))}},unsubscribeAll:t=>{const o=n.get(t);void 0!==o&&(o.forEach((t,n)=>{e.unsubscribe(t)}),o.clear())}};return r}function H(e,t,n,o){const i=F(t,o),r=void 0!==o?void 0!==o[1]?o[1]:o[0]:e=>e;return i.setValue=o=>e.setWatchedValue(t,r(o),n),i}function O(e,t){return function(e,t,n){const o=new Map;return F({subscribe:(n,i)=>{const r=e=>n(t(e));o.set(n,r),e.subscribe(r,i)},unsubscribe:t=>{if(t){const n=o.get(t);n&&(e.unsubscribe(n),o.delete(t))}else o.clear(),e.unsubscribe()},value:()=>t(e.value())},n)}(e,e=>e,t)}function j(e,t){const n=(0,I.makeProxyDefinitionProperty)(t);return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function Z(e,t,n,o){const i=(0,I.makeProxyDefinitionProperty)(t);return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,o)},i}function U(e,t,n,o){const i=(0,I.makeProxyDefinitionProperty)(t,o);return i.setValue=o=>{e.setScaleRatioProperty(t,o,n)},i}var Y=n(24377),q=n(68906),Q=n(81465);function K(e,t){if((0,q.isHexColor)(e)){const n=(0,Y.parseRgb)(e);return(0,Y.rgbaToString)((0,Y.rgba)(n,(100-t)/100))}return e}function X(e,t,n,o,i){let r;if(null!==n){const e=(0,Q.combineProperty)(K,t,n);r=(0,I.makeProxyDefinitionPropertyDestroyable)(e)}else r=(0,I.makeProxyDefinitionProperty)(t,[()=>K(t.value(),0),e=>e]);return r.setValue=n=>{i&&e.beginUndoMacro(o),e.setProperty(t,n,o),i&&e.endUndoMacro()},r}function G(e,t,n,o,i,r){const a=[(s=n,l=t,e=>{const t=s(l);if(e===l.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var s,l;const c=(0,I.convertToDefinitionProperty)(e,t,i,a);r&&(c.setValue=r);const d=new Map;c.subscribe=(e,n)=>{const o=e=>{n(c)};d.set(n,o),t.subscribe(e,o)},c.unsubscribe=(e,n)=>{const o=d.get(n);o&&(t.unsubscribe(e,o),d.delete(n))};const u={};return o.subscribe(u,()=>{d.forEach((e,t)=>{t(c)})}),c.destroy=()=>{o.unsubscribeAll(u),d.clear()},c}function $(e){return e.hasOwnProperty("groupType")}function J(e){e.forEach(e=>{if(e.hasOwnProperty("propType")){Object.keys(e.properties).forEach(t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()})}else J(e.definitions.value())})}},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const a=r.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=i-a}return e}})();function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function r(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(r(e,t))}let s=0,l=!1;function c(e){ -const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=r(t,"overflow"),s=a(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(i(n,"right",o()+"px"),t.style.paddingRight=s+o()+"px",l=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),l)){i(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},66045:(e,t,n)=>{"use strict";n.d(t,{FontSizeSelect:()=>c});var o=n(59496),i=n(97754),r=n.n(i),a=n(45685),s=n(90186),l=n(58858);function c(e){const{id:t,fontSize:n,fontSizes:i=[],className:c,disabled:d,fontSizeChange:u}=e;return o.createElement(a.Select,{id:t,disabled:d,className:r()(c,l.defaultSelect),menuClassName:l.defaultSelect,items:(p=i,p.map(e=>({value:e.value,content:e.title}))),value:n,onChange:u,...(0,s.filterDataProps)(e)});var p}},94697:(e,t,n)=>{"use strict";n.d(t,{IconDropdown:()=>c,DisplayItem:()=>d,DropItem:()=>u});var o=n(59496),i=n(97754),r=n.n(i),a=n(45685),s=n(9745),l=n(78781);function c(e){const{menuItemClassName:t,...n}=e;return o.createElement(a.Select,{...n,menuItemClassName:r()(t,l.itemWrap)})}function d(e){return o.createElement("div",{className:r()(l.item,l.selected,e.className)},o.createElement(s.Icon,{className:l.icon,icon:e.icon}))}function u(e){return o.createElement("div",{className:l.item},o.createElement(s.Icon,{className:r()(l.icon,e.iconClassName),icon:e.icon}),o.createElement("div",{className:l.label},e.label))}},53598:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>f});var o=n(28353),i=n(59496),r=n(97754),a=n.n(r),s=n(43891),l=n(94697),c=n(20618),d=n(19726),u=n(56326),p=n(50303),h=n(73084);const m=[{type:s.LINESTYLE_SOLID,icon:c,label:(0,o.t)("Line")},{type:s.LINESTYLE_DASHED,icon:d,label:(0,o.t)("Dashed line")},{type:s.LINESTYLE_DOTTED,icon:u,label:(0,o.t)("Dotted line")}];class f extends i.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:o,disabled:r,additionalItems:s,allowedLineStyles:c}=this.props;let d=function(e){let t=[...m];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:i.createElement(l.DisplayItem,{icon:e.icon}),content:i.createElement(l.DropItem,{icon:e.icon,label:e.label})}))}(c);return s&&(d=[{readonly:!0,content:s},...d]),i.createElement(l.IconDropdown,{id:e,disabled:r,className:a()(h.lineStyleSelect,n),hideArrowButton:!0,items:d,value:t,onChange:o,"data-name":"line-style-select",addPlaceholderToItems:!1,placeholder:i.createElement(l.DisplayItem,{icon:p,className:h.multipleStyles})})}}},50890:(e,t,n)=>{"use strict";n.d(t,{LineWidthSelect:()=>d});var o=n(59496),i=n(97754),r=n(45685),a=n(218);const s=[1,2,3,4];function l(e){const{id:t,value:n,items:l=s,disabled:c,onChange:d}=e;return o.createElement(r.Select,{id:t,disabled:c,hideArrowButton:!0,className:a.lineWidthSelect,items:(u=l,u.map(e=>({value:e,selectedContent:p(e,!0),content:p(e)}))),value:n,onChange:d,"data-name":"line-width-select"});var u;function p(e,t){const r={borderTopWidth:e} -;return o.createElement("div",{className:a.item},o.createElement("div",{className:i(a.bar,{[a.isActive]:e===n&&!t}),style:r}," "))}}var c=n(45560);function d(e){const{property:t}=e,[n,i]=(0,c.useDefinitionProperty)({property:t});return o.createElement(l,{...e,value:n,onChange:i})}},66849:(e,t,n)=>{"use strict";n.d(t,{ControlCustomWidthContext:()=>i,ControlCustomHeightContext:()=>r});var o=n(59496);const i=o.createContext({}),r=o.createContext({})},90545:(e,t,n)=>{"use strict";n.d(t,{Section:()=>tn});var o=n(59496),i=n(50366),r=n(48897),a=n(45560),s=n(31356);function l(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0});return u?o.createElement(s.CommonSection,{id:t,offset:c,checked:n,title:l,disabled:e.disabled||d}):null}var c=n(97754),d=n.n(c),u=n(22064),p=n(53598);function h(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(p.LineStyleSelect,{...e,lineStyle:n,lineStyleChange:i})}var m=n(50890),f=n(60521),g=n(88537);function v(e){return"mixed"===e}function y(e,t,n){const[i,r]=(0,o.useState)(e),a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{r(e)},[e,n]),[i,function(e){a.current=e,r(e)},function(){t(a.current)},function(){a.current=e,r(e)}]}var b=n(68335),w=n(92399),_=n(64514),E=n(95505),C=n(49483);function S(e){const{property:t,...n}=e,[i,r]=(0,o.useState)(performance.now()),[s,l]=(0,a.useDefinitionProperty)({property:t,handler:()=>r(performance.now())}),c=y(s,l,i);return o.createElement(x,{...n,valueHash:i,sharedBuffer:c})}function x(e){const{sharedBuffer:t,min:n,max:i,step:r,...a}=e,[s,l,c,d]=t,u=(0,o.useRef)(null),p=(0,o.useRef)(null),h={flushed:!1};return o.createElement(M,{...a,ref:p,onValueChange:function(e,t){l(e),"step"!==t||h.flushed||(c(),h.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||h.flushed)return;switch((0,b.hashFromEvent)(e.nativeEvent)){case 27:d(),h.flushed=!0;break;case 13:e.preventDefault();const t=(0,g.ensureNotNull)(p.current).getClampedValue();null!==t&&(l(t),c(),h.flushed=!0)}},onBlur:function(e){const t=(0,g.ensureNotNull)(u.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=(0,g.ensureNotNull)(p.current).getClampedValue();null===e||h.flushed||(l(e),c(),h.flushed=!0)}},value:s,roundByStep:!1,containerReference:function(e){u.current=e},inputMode:C.CheckMobile.iOS()?void 0:"numeric",min:n,max:i,step:r,stretch:!1})}const D={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class M extends o.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==(0,g.ensureNotNull)(this._input)||this._saveSelection((0,g.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{ -this._saveSelection((0,g.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:N(this.props,this.props.value,V(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,o=function(e,t,n){switch(n){case"integer":return P.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),T.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=k(o),r=this._checkValueBoundaries(i);var a,s;this.setState({displayValue:o}),o!==n&&(a=this.state.displayValue,s=(s=o).replace(/,/g,"."),(a=a.replace(/,/g,".")).includes(".")||!s.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),r.value&&N(this.props,i)===o&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,o=k(this.state.displayValue);let i;if(isNaN(o)){const{defaultValue:e}=this.props;if(void 0===e)return;i=e}else{const r=new f.Big(o),a=new f.Big(n),s=r.mod(a);let l=r.plus(e*n);!s.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(s)),i=l.toNumber()}this._checkValueBoundaries(i).value&&(this.setState({displayValue:N(this.props,i,V(this.props))}),this.props.onValueChange(i,"step"))},this.state={value:B(this.props.value),displayValue:N(this.props,this.props.value,V(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=(0,g.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:o,direction:i}=t;e.setSelectionRange(n,o,i)}this._restoreSelection=!1}render(){return o.createElement(w.NumberInputView,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,stretch:this.props.stretch,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,autoSelectOnFocus:!0,"data-name":this.props["data-name"]})}getClampedValue(){const{min:e,max:t}=this.props,n=k(this.state.displayValue);return isNaN(n)?null:(0,_.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,o=B(e.value);if(t.value!==o||t.valueHash!==n){return{value:o,valueHash:n,displayValue:N(e,o,t.focused&&t.valueHash===n?void 0:V(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:o}=e;null!==t&&null!==n&&null!==o&&(this._selection={start:t,end:n,direction:o})}_checkValueBoundaries(e){const{min:t,max:n}=this.props;return{value:function(e,t,n){const o=e>=t,i=e<=n;return{passMin:o, -passMax:i,pass:o&&i,clamped:(0,_.clamp)(e,t,n)}}(e,t,n).pass}}}M.defaultProps=D;const P=/^-?[0-9]*$/,T=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function N(e,t,n){return v(t=B(t))?"—":(null!==t&&void 0!==n&&(n=Math.max(z(t),n)),function(e,t){if(null===e)return"";return new E.NumericFormatter(t).format(e)}(t,n))}function V(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=z(e.step)),Math.max(e.precision,t)||void 0}function z(e){const t=Math.trunc(e).toString();return(0,_.clamp)(E.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function k(e,t){return new E.NumericFormatter(t).parse(e)}function B(e){return"number"==typeof e&&Number.isFinite(e)||v(e)?e:null}var R=n(24377),W=n(58593),L=n(68906);function A(e){const{color:t,thickness:n,thicknessItems:i,noAlpha:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:t}),[c,d]=(0,a.useDefinitionProperty)(n?{property:n}:{defaultValue:void 0});return o.createElement(W.ColorSelect,{...e,color:function(){if(!s)return null;if("mixed"===s)return"mixed";return(0,R.rgbToHexString)((0,R.parseRgb)(s))}(),onColorChange:function(e){const t=s&&"mixed"!==s?(0,L.alphaToTransparency)((0,R.parseRgba)(s)[3]):0;l((0,L.generateColor)(String(e),t,!0))},thickness:c,thicknessItems:i,onThicknessChange:d,opacity:r?void 0:s&&"mixed"!==s?(0,R.parseRgba)(s)[3]:void 0,onOpacityChange:r?void 0:function(e){l((0,L.generateColor)(s,(0,L.alphaToTransparency)(e),!0))}})}var I=n(28353),F=n(49612),H=n(94697),O=n(90186),j=n(23848),Z=n(56775),U=n(5717);const Y=[{type:F.LineEnd.Normal,icon:j,label:(0,I.t)("Normal")},{type:F.LineEnd.Arrow,icon:Z,label:(0,I.t)("Arrow")}];class q extends o.PureComponent{constructor(e){super(e),this._items=[],this._items=Y.map(t=>({value:t.type,selectedContent:o.createElement(H.DisplayItem,{icon:t.icon}),content:o.createElement(H.DropItem,{icon:t.icon,iconClassName:d()(e.isRight&&U.right),label:t.label})}))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:i,isRight:r,disabled:a}=this.props;return o.createElement(H.IconDropdown,{id:e,disabled:a,className:d()(U.lineEndSelect,r&&U.right,n),items:this._items,value:t,onChange:i,hideArrowButton:!0,...(0,O.filterDataProps)(this.props)})}}function Q(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(q,{...e,lineEnd:n,lineEndChange:i})}var K=n(78260),X=n(31650);function G(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return o.createElement(K.CellWrap,{className:c(X.wrap,n,X["breakpoint"+i])},o.Children.map(t,e=>o.isValidElement(e)?o.createElement("span",{key:null===e.key?void 0:e.key,className:X.row},e):e))}const $={1:"float",0:"integer"};var J=n(77975),ee=n(55368);function te(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r,leftEnd:l,rightEnd:d,value:p,extendLeft:f,extendRight:g},title:v,valueMin:y,valueMax:b,valueStep:w,valueUnit:_,extendLeftTitle:E,extendRightTitle:C},offset:x}=e,[D]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[M]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[P]=(0,a.useDefinitionProperty)({property:r, -defaultValue:!0}),T=(0,J.useWatchedValueReadonly)({watchedValue:y,defaultValue:void 0}),N=(0,J.useWatchedValueReadonly)({watchedValue:b,defaultValue:void 0}),V=(0,J.useWatchedValueReadonly)({watchedValue:w,defaultValue:void 0}),z=(0,J.useWatchedValueReadonly)({watchedValue:_,defaultValue:void 0}),k=e.disabled||!D;return P?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:x,checked:n,title:v,disabled:e.disabled||M},o.createElement(G,{className:ee.line,breakPoint:"Small"},o.createElement(o.Fragment,null,function(){const{definition:{properties:{color:n,width:i},widthValues:r}}=e;if(n)return o.createElement("span",{className:ee.control},o.createElement(A,{color:n,thickness:i,disabled:k,thicknessItems:r}));return i&&o.createElement("span",{className:ee.control},o.createElement(m.LineWidthSelect,{id:(0,u.createDomId)(t,"line-width-select"),items:r,property:i,disabled:k}))}(),function(){const{definition:{properties:{style:n}}}=e;return n&&o.createElement("span",{className:ee.control},o.createElement(h,{id:(0,u.createDomId)(t,"line-style-select"),property:n,disabled:k}))}()),(l||d||p)&&o.createElement(o.Fragment,null,o.createElement(o.Fragment,null,l&&o.createElement(Q,{id:(0,u.createDomId)(t,"left-end-select"),"data-name":"left-end-select",className:ee.control,property:l,disabled:k}),d&&o.createElement(Q,{id:(0,u.createDomId)(t,"right-end-select"),"data-name":"right-end-select",className:ee.control,property:d,disabled:k,isRight:!0})),function(){const{definition:{valueType:t}}=e;return p&&o.createElement("span",{className:c(ee.valueInput,ee.control)},o.createElement(S,{className:ee.input,property:p,min:T,max:N,step:V,disabled:k,mode:void 0!==t?$[t]:void 0,name:"line-value-input"}),o.createElement("span",{className:ee.valueUnit},z))}()))),f&&o.createElement(s.CommonSection,{id:t+"ExtendLeft",offset:x,checked:f,title:E,disabled:e.disabled||M}),g&&o.createElement(s.CommonSection,{id:t+"ExtendRight",offset:x,checked:g,title:C,disabled:e.disabled||M})):null}var ne=n(49642),oe=n(45685),ie=n(36947);function re(e){const{property:t,options:n,...i}=e,[r,s]=(0,a.useDefinitionProperty)({property:t}),l=(0,ie.useForceUpdate)();return(0,o.useEffect)(()=>{const e=()=>l();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}},[]),o.createElement(oe.Select,{...i,onChange:s,value:r,items:(Array.isArray(n)?n:n.value()).map(e=>e.readonly?{content:e.title,readonly:e.readonly}:{content:e.title,value:e.value,disabled:e.disabled,id:e.id})})}var ae=n(52465);const se=[{title:(0,I.t)("Solid"),value:ne.ColorType.Solid},{title:(0,I.t)("Gradient"),value:ne.ColorType.Gradient}];function le(e){const{id:t,disabled:n,noAlpha:i,properties:r}=e,{color:s,gradientColor1:l,gradientColor2:c,type:d}=r,[p]=(0,a.useDefinitionProperty)({property:d,defaultValue:ne.ColorType.Solid});return o.createElement(G,null,o.createElement(re,{id:(0,u.createDomId)(t,"background-type-options-dropdown"),"data-name":"background-type-options-dropdown",className:ae.dropdown,menuClassName:ae.dropdownMenu,disabled:n,property:d, -options:se}),p===ne.ColorType.Solid?o.createElement(A,{color:s,disabled:n,noAlpha:i}):o.createElement(o.Fragment,null,o.createElement(A,{className:ae.firstColorPicker,color:l,disabled:n,noAlpha:i}),o.createElement(A,{color:c,disabled:n,noAlpha:i})))}function ce(e){const{definition:{id:t,properties:n,title:i,noAlpha:r},offset:l}=e,{color:c,checked:d,disabled:u,visible:p}=n,[h]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),[m]=(0,a.useDefinitionProperty)({property:u,defaultValue:!1}),[f]=(0,a.useDefinitionProperty)({property:p,defaultValue:!0}),g=e.disabled||!h;return f?o.createElement(s.CommonSection,{id:t,offset:l,checked:d,title:i,disabled:e.disabled||m},o.createElement(K.CellWrap,null,n.hasOwnProperty("type")?o.createElement(le,{id:t,properties:n,disabled:g,noAlpha:r}):o.createElement(A,{color:c,disabled:g,noAlpha:r}))):null}var de=n(54368),ue=n(45112),pe=n(21818);function he(e){const{value:t,disabled:n,onChange:i,className:r}=e;return o.createElement("div",{className:c(pe.wrap,r,{[pe.disabled]:n})},o.createElement(de.Opacity,{hideInput:!0,color:ue.colorsPalette["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||i(100-100*e)}}))}function me(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t});return o.createElement(he,{...n,value:i,onChange:r})}function fe(e){const{definition:{id:t,properties:{transparency:n,checked:i,disabled:r,visible:l},title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(s.CommonSection,{id:t,offset:d,checked:i,title:c,disabled:e.disabled||p},o.createElement(K.CellWrap,null,o.createElement(me,{property:n,disabled:m}))):null}var ge=n(35048);function ve(e){const{definition:{id:t,properties:{color1:n,color2:i,checked:r,disabled:l,visible:c},title:d,noAlpha1:u,noAlpha2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[g]=(0,a.useDefinitionProperty)({property:c,defaultValue:!0}),v=e.disabled||!m||f;return g?o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:d,disabled:e.disabled||f},o.createElement(K.CellWrap,{className:ge.twoColors},y(n,u),y(i,p))):null;function y(e,t){return o.createElement("span",{className:ge.colorPicker},o.createElement(A,{color:e,disabled:v,noAlpha:t}))}}var ye=n(66849),be=n(80346);function we(e){const{definition:{id:t,properties:{checked:n,value:i,unitOptionsValue:r,disabled:l,visible:d},min:p,max:h,step:m,title:f,unit:v,unitOptions:y,type:b},offset:w}=e,[_]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[E]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[C]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),x=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),D=(0,J.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),M=(0,J.useWatchedValueReadonly)({watchedValue:m, -defaultValue:void 0}),P=(0,J.useWatchedValueReadonly)({watchedValue:v,defaultValue:void 0}),T=(0,o.useContext)(ye.ControlCustomWidthContext),N=e.disabled||!_;return C?o.createElement(s.CommonSection,{id:t,offset:w,checked:n,title:f,disabled:e.disabled||E},o.createElement(K.CellWrap,null,o.createElement(G,null,o.createElement(S,{className:c(be.input,T[t]&&be[T[t]]),property:i,min:x,max:D,step:M,disabled:N,mode:$[b],name:"number-input","data-name":t}),r&&o.createElement(re,{id:(0,u.createDomId)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:be.dropdown,menuClassName:be.dropdownMenu,disabled:N,property:r,options:(0,g.ensureDefined)(y)})),o.createElement("span",{className:be.unit},P))):null}function _e(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},childrenDefinitions:l,title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:d,checked:n,title:c,disabled:e.disabled||p}),l.map(e=>o.createElement(tn,{key:e.id,disabled:m,definition:e,offset:!0}))):null}var Ee=n(66045);function Ce(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(Ee.FontSizeSelect,{...e,fontSize:n,fontSizeChange:i,"data-name":"font-size-select"})}var Se=n(9745),xe=n(56994);function De(e){const{className:t,checked:n,icon:i,disabled:r,onClick:a}=e;return o.createElement("div",{className:d()(t,xe.container,n&&!r&&xe.active,r&&xe.disabled),onClick:r?void 0:a,"data-role":"button",...(0,O.filterDataProps)(e)},o.createElement(Se.Icon,{className:xe.icon,icon:i}))}function Me(e){const{icon:t,className:n,property:i,disabled:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:i});return o.createElement(De,{className:n,icon:t,checked:s,onClick:function(){l(!s)},disabled:r,...(0,O.filterDataProps)(e)})}var Pe=n(67029),Te=n(35868),Ne=n(2568);function Ve(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t}),s=(0,o.useCallback)(e=>r(e.target.value),[r]);return o.createElement(Ne.Textarea,{...n,value:i,onChange:s})}var ze=n(86508),ke=n(27603),Be=n(45449);const Re=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),We=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function Le(e){const{definition:{id:t,properties:{color:n,size:i,checked:r,disabled:l,bold:c,italic:d,text:p,alignmentHorizontal:h,alignmentVertical:m,orientation:f,backgroundVisible:g,backgroundColor:v,borderVisible:y,borderColor:b,borderWidth:w,wrap:_},title:E,sizeItems:C,alignmentTitle:S,alignmentHorizontalItems:x,alignmentVerticalItems:D,orientationTitle:M,orientationItems:P,backgroundTitle:T,borderTitle:N,borderWidthItems:V,wrapTitle:z},offset:k}=e,B=(0,o.useContext)(ye.ControlCustomHeightContext),[R]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[W]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[L,I]=(0, -a.useDefinitionProperty)({property:m,defaultValue:void 0}),[F,H]=(0,a.useDefinitionProperty)({property:f,defaultValue:"horizontal"}),[O,j]=(0,a.useDefinitionProperty)({property:h,defaultValue:void 0}),[Z]=(0,a.useDefinitionProperty)({property:g,defaultValue:!1}),[U]=(0,a.useDefinitionProperty)({property:y,defaultValue:!1}),Y=e.disabled||!R;return o.createElement(o.Fragment,null,function(){if(E)return o.createElement(s.CommonSection,{id:t,offset:k,checked:r,title:E,disabled:e.disabled||W},o.createElement(G,{breakPoint:"Small"},X(),$()));return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},X(),$()))}(),p&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},o.createElement(Ve,{className:Pe.InputClasses.FontSizeMedium,rows:(q=B[t],"big"===q?9:5),stretch:!0,property:p,disabled:Y,onFocus:function(e){e.target.select()},name:"text-input"}))),(h||m)&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(K.CellWrap,null,S)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(G,{breakPoint:"Small"},void 0!==L&&void 0!==D&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:L,items:D.map(Re),onChange:I}),void 0!==O&&void 0!==x&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:O,items:x.map(Re),onChange:j})))),void 0!==f&&void 0!==P&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(K.CellWrap,null,M)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(G,{breakPoint:"Small"},o.createElement(oe.Select,{id:(0,u.createDomId)(t,"orientation-select"),"data-name":"orientation-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:F,items:P.map(We),onChange:H})))),J(T,g,v,!!g&&!Z),J(N,y,b,!!y&&!U,w,V),_&&o.createElement(s.CommonSection,{id:t+"Wrap",offset:k,checked:_,title:z,disabled:e.disabled||W}));var q;function Q(e,t,n){return e?o.createElement(Me,{className:Be.fontStyleButton,icon:t,property:e,disabled:Y,"data-name":n}):null}function X(){return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:Be.colorPicker},o.createElement(A,{color:n,disabled:Y})),i&&C&&o.createElement(Ce,{id:(0,u.createDomId)(t,"font-size-select"),property:i,fontSizes:C,disabled:Y}))}function $(){return o.createElement(o.Fragment,null,Q(c,ze,"toggle-bold"),Q(d,ke,"toggle-italic"))} -function J(e,n,i,r,a,l){return i||n?o.createElement(s.CommonSection,{id:t+"ColorSelect",offset:k,checked:n,title:e,disabled:Y},i&&o.createElement(A,{color:i,thickness:a,thicknessItems:l,disabled:Y||r})):null}}var Ae=n(51285);function Ie(e){const{definition:{properties:{x:t,y:n,disabled:i},id:r,minX:a,maxX:s,stepX:l,minY:c,maxY:d,stepY:u,title:p,typeX:h,typeY:m},offset:f}=e,g=i&&i.value()||e.disabled,v=(0,J.useWatchedValueReadonly)({watchedValue:a,defaultValue:void 0}),y=(0,J.useWatchedValueReadonly)({watchedValue:s,defaultValue:void 0}),b=(0,J.useWatchedValueReadonly)({watchedValue:l,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:c,defaultValue:void 0}),_=(0,J.useWatchedValueReadonly)({watchedValue:d,defaultValue:void 0}),E=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0});return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{verticalAlign:"adaptive",placement:"first",offset:f,"data-section-name":r},o.createElement("span",{className:Ae.coordinates},p)),(t||n)&&o.createElement(Te.PropertyTable.Cell,{placement:"last",offset:f,"data-section-name":r},o.createElement(G,{breakPoint:"Medium"},n&&o.createElement(S,{className:Ae.input,property:n,min:w,max:_,step:E,disabled:g,name:"y-input",mode:void 0!==m?$[m]:"integer"}),t&&o.createElement(S,{className:Ae.input,property:t,min:v,max:y,step:b,disabled:g,name:"x-input",mode:void 0!==h?$[h]:"integer"}))))}var Fe=n(89477);function He(e){const{definition:{id:t,properties:{checked:n,option:i,disabled:r,visible:l},title:c,options:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[g]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),v=(0,o.useContext)(ye.ControlCustomWidthContext),y=e.disabled||!m;return g?o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:e.disabled||f},o.createElement(K.CellWrap,null,o.createElement(re,{id:(0,u.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:d()(Fe.dropdown,v[t]&&Fe[v[t]]),menuClassName:d()(Fe.dropdownMenu,v[t]&&Fe[v[t]]),disabled:y||f,property:i,options:p}))):null}var Oe=n(71953);var je=n(62820),Ze=n(65830);class Ue extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame(()=>{const{from:t,to:n,min:o,max:i}=this.props,r=this._getNewPosition(e),a=1===this._detectPointerMode(e),s=a?(0,_.clamp)(r,o,n):t,l=a?n:(0,_.clamp)(r,t,i);s<=l&&this._handleChange(s,l),this._rafPosition=null}))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame(()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null,this.props.onCommit()}))},this._onSliderClick=e=>{C.CheckMobile.any()||(this._handlePosition(e.nativeEvent), -this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:r,max:a}=this.props,{pointerDragMode:s}=this.state,l=0!==s,d=a-r,u=0===d?r:(n-r)/d,p=0===d?a:(i-r)/d,h=(0,je.isRtl)()?"right":"left";return o.createElement("div",{className:c(e,Ze.range,t&&Ze.disabled)},o.createElement("div",{className:Ze.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:Ze.rangeSliderMiddleWrap},o.createElement("div",{className:c(Ze.rangeSliderMiddle,l&&Ze.dragged),style:{[h]:100*u+"%",width:100*(p-u)+"%"}})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*u+"%"},ref:this._refPointer})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,g.ensureNotNull)(this._container),r=(0,g.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),s=r.offsetWidth;let l=e.clientX-s/2-a.left;return(0,je.isRtl)()&&(l=a.width-l-s),(0,_.clamp)(l/(a.width-s),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),s=r===a?io.createElement(G,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(x,{className:qe.input,sharedBuffer:M,min:b,max:v(z)?w:z,step:1,disabled:W,name:"from-input",mode:"integer",defaultValue:b}),e?o.createElement("span",{className:qe.rangeSlider},"—"):o.createElement(Ue,{className:d()(qe.rangeSlider,R&&qe.rangeSlider_mixed),from:R?b:P,to:R?w:z,min:b,max:w,onChange:A,onCommit:I,disabled:W}))),o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(x,{className:qe.input,sharedBuffer:V,min:v(P)?b:P,max:w,step:1,disabled:W,name:"to-input",mode:"integer",defaultValue:w})))))}()));function A(e,t){T(Math.round(e)),k(Math.round(t))}function I(){L.flushed||(N(),B(),L.flushed=!0)}}var Ke=n(86067),Xe=n(53424),Ge=n(67474);function $e(e){const{definitions:t,name:n,offset:i}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:d()(Ge.cell,Ge.fragmentCell),offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map(e=>o.createElement("div",{className:Ge.item,key:e.id,"data-section-name":e.id},o.createElement(et,{definition:e})))))}function Je(e){const{definition:t,offset:n}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:Ge.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(et,{definition:t})))}function et(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:r,level:s,width:l,style:c},title:p,widthValues:m,styleValues:f}}=e,[g]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[v]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),y=v||!g;return o.createElement(o.Fragment,null,o.createElement(Xe.CheckableTitle,{name:"is-enabled-"+t,className:d()(p&&Ge.withTitle),title:p&&o.createElement("span",{className:Ge.title},p),property:i,disabled:v}),s&&o.createElement(S,{className:d()(Ge.input,Ge.control),property:s,disabled:y}),r&&o.createElement(A,{className:Ge.control,disabled:y,color:r,thickness:l,thicknessItems:m}),c&&o.createElement(h,{id:(0,u.createDomId)(t,"leveled-line-style-select"),className:Ge.control,property:c,disabled:y,allowedLineStyles:f}))}var tt=n(33126);function nt(e){const{definition:{id:t,properties:{option1:n,option2:i,checked:r,disabled:l},title:c,optionsItems1:d,optionsItems2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),g=e.disabled||!m;return o.createElement(s.CommonSection,{id:t,offset:h, -checked:r,title:c,disabled:e.disabled||f},o.createElement(G,{className:tt.twoOptions},o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:tt.dropdown,menuClassName:tt.menu,property:n,disabled:g,options:d}),o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:tt.dropdown,menuClassName:tt.menu,property:i,disabled:g,options:p})))}var ot=n(27423),it=n(29148);function rt(e){const{source:t,inputs:n,model:i,inputsTabProperty:r}=e.definition;return o.createElement(ot.InputsTabContent,{className:it.withoutPadding,property:r,model:i,study:t,inputs:n})}var at=n(15294),st=n(56840),lt=n(59255);var ct=n(40681);function dt(e){const{tab:t,icon:n,isActive:i,onTabClick:r}=e;return o.createElement("div",{className:d()(ct.wrapper,i&&ct.isActive),onClick:function(){r(t)}},o.createElement(Se.Icon,{icon:n}))}var ut=n(88436);function pt(e){const{activeTab:t,emojis:n,onTabClick:i}=e;return o.createElement("div",{className:ut.wrapper},n.map(({title:e,icon:n})=>o.createElement(dt,{key:e,tab:e,icon:n,isActive:t===e,onTabClick:i})))}var ht=n(83199),mt=n(16859);function ft(e){const{title:t}=e;return o.createElement("div",{className:mt.wrapper},t)}var gt=n(72077),vt=n(99339);const yt=34;function bt(e){const{className:t,emoji:n,size:i=yt,onClick:r}=e,a=(0,gt.getTwemojiUrl)(n,"png");return o.createElement("div",{className:d()(vt.wrapper,t),style:{width:i,height:i},onClick:function(){r(n)}},o.createElement("img",{className:vt.emoji,src:a,decoding:"async",width:"24",height:"24",alt:"",draggable:!1,onContextMenu:function(e){e.preventDefault()}}))}var wt=n(39897);const _t=o.memo(e=>{const{emojis:t,itemSize:n,onEmojiClick:i}=e;return o.createElement("div",{className:wt.wrapper},t.map(e=>o.createElement(bt,{key:e,className:wt.emojiItem,emoji:e,size:n,onClick:i})))});var Et=n(78036),Ct=n(83341);const St=o.createContext(null);function xt(e){const{listRef:t,emojiGroups:n,emojiSize:i,onSelect:r,onContentRendered:a}=e;(0,o.useEffect)(()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.resetAfterIndex(0,!0)},[n]);const s=(0,o.useCallback)(e=>"title"===n[e].type?30:38,[n]),l=(0,o.useCallback)(({visibleStartIndex:e})=>{const{relatedTitle:t}=n[e];a(t)},[n,a]);return o.createElement(St.Provider,{value:(0,o.useMemo)(()=>({size:i,onSelect:r}),[i,r])},o.createElement(ht.VariableSizeList,{className:Ct.list,ref:t,width:"100%",height:Math.min(330,window.innerHeight-60),itemData:n,itemCount:n.length,children:Dt,onItemsRendered:l,itemSize:s}))}const Dt=o.memo(e=>{const{style:t,index:n,data:i}=e,r=i[n],{size:a,onSelect:s}=(0,Et.useEnsuredContext)(St);return"title"===r.type?o.createElement("div",{style:t},o.createElement(ft,{title:r.relatedTitle})):o.createElement("div",{style:t},o.createElement(_t,{emojis:r.content,itemSize:a,onEmojiClick:s}))});var Mt=n(70358);function Pt(e){var t;const{className:n,emojis:i,onSelect:r}=e,a=(0,o.useRef)(null),[s,l]=(0,o.useState)(0),c=(0,o.useMemo)(()=>function(e,t){if(0===t)return[];const n=[] -;return e.forEach(({title:e,emojis:o})=>{n.push({type:"title",relatedTitle:e,content:[e]});let i=[];for(const r of o)i.length{n.current=e,null!==i.current&&(i.current.disconnect(),null!==e&&i.current.observe(e))},[n,i]);return(0,o.useEffect)(()=>(i.current=new lt.default((e,t)=>{r.current(e,t)}),n.current&&a(n.current),()=>{var e;null===(e=i.current)||void 0===e||e.disconnect()}),[n,...t]),a}((function(e){const[t]=e,{width:n}=t.contentRect,o=Math.floor((n-12)/38);l(o)})),[p,h]=(0,o.useState)((null===(t=c[0])||void 0===t?void 0:t.relatedTitle)||"");return o.createElement("div",{className:d()(Mt.wrapper,n)},o.createElement(pt,{emojis:i,activeTab:p,onTabClick:function(e){!function(e){var t;null===(t=a.current)||void 0===t||t.scrollToItem(e,"start"),requestAnimationFrame(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.scrollToItem(e,"start")})}(function(e){return c.findIndex(({relatedTitle:t,type:n})=>"title"===n&&t===e)}(e))}}),o.createElement("div",{ref:u},o.createElement(xt,{listRef:a,emojiGroups:c,emojiSize:38,onSelect:r,onContentRendered:h})))}var Tt=n(80781),Nt=n(67978),Vt=n(36311),zt=n(31006),kt=n(75614),Bt=n(1033),Rt=n(42925),Wt=n(40526),Lt=n(72843);const At=[{title:(0,I.t)("recently used",{context:"emoji_group"}),emojis:[],icon:Tt},{title:(0,I.t)("smiles & people",{context:"emoji_group"}), -emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","🤏","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦾","🦵","🦿","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","💋","🩸","👶","🧒","👦","👧","🧑","👱","👨","🧔","👨‍🦰","👨‍🦱","👨‍🦳","👨‍🦲","👩","👩‍🦰","🧑‍🦰","👩‍🦱","🧑‍🦱","👩‍🦳","🧑‍🦳","👩‍🦲","🧑‍🦲","👱‍♀️","👱‍♂️","🧓","👴","👵","🙍","🙍‍♂️","🙍‍♀️","🙎","🙎‍♂️","🙎‍♀️","🙅","🙅‍♂️","🙅‍♀️","🙆","🙆‍♂️","🙆‍♀️","💁","💁‍♂️","💁‍♀️","🙋","🙋‍♂️","🙋‍♀️","🧏","🧏‍♂️","🧏‍♀️","🙇","🙇‍♂️","🙇‍♀️","🤦","🤦‍♂️","🤦‍♀️","🤷","🤷‍♂️","🤷‍♀️","🧑‍⚕️","👨‍⚕️","👩‍⚕️","🧑‍🎓","👨‍🎓","👩‍🎓","🧑‍🏫","👨‍🏫","👩‍🏫","🧑‍⚖️","👨‍⚖️","👩‍⚖️","🧑‍🌾","👨‍🌾","👩‍🌾","🧑‍🍳","👨‍🍳","👩‍🍳","🧑‍🔧","👨‍🔧","👩‍🔧","🧑‍🏭","👨‍🏭","👩‍🏭","🧑‍💼","👨‍💼","👩‍💼","🧑‍🔬","👨‍🔬","👩‍🔬","🧑‍💻","👨‍💻","👩‍💻","🧑‍🎤","👨‍🎤","👩‍🎤","🧑‍🎨","👨‍🎨","👩‍🎨","🧑‍✈️","👨‍✈️","👩‍✈️","🧑‍🚀","👨‍🚀","👩‍🚀","🧑‍🚒","👨‍🚒","👩‍🚒","👮","👮‍♂️","👮‍♀️","🕵","🕵️‍♂️","🕵️‍♀️","💂","💂‍♂️","💂‍♀️","👷","👷‍♂️","👷‍♀️","🤴","👸","👳","👳‍♂️","👳‍♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦸‍♂️","🦸‍♀️","🦹","🦹‍♂️","🦹‍♀️","🧙","🧙‍♂️","🧙‍♀️","🧚","🧚‍♂️","🧚‍♀️","🧛","🧛‍♂️","🧛‍♀️","🧜","🧜‍♂️","🧜‍♀️","🧝","🧝‍♂️","🧝‍♀️","🧞","🧞‍♂️","🧞‍♀️","🧟","🧟‍♂️","🧟‍♀️","💆","💆‍♂️","💆‍♀️","💇","💇‍♂️","💇‍♀️","🚶","🚶‍♂️","🚶‍♀️","🧍","🧍‍♂️","🧍‍♀️","🧎","🧎‍♂️","🧎‍♀️","🧑‍🦯","👨‍🦯","👩‍🦯","🧑‍🦼","👨‍🦼","👩‍🦼","🧑‍🦽","👨‍🦽","👩‍🦽","🏃","🏃‍♂️","🏃‍♀️","💃","🕺","🕴","👯","👯‍♂️","👯‍♀️","🧖","🧖‍♂️","🧖‍♀️","🧑‍🤝‍🧑","👭","👫","👬","💏","👨‍❤️‍💋‍👨","👩‍❤️‍💋‍👩","💑","👨‍❤️‍👨","👩‍❤️‍👩","👪","👨‍👩‍👦","👨‍👩‍👧","👨‍👩‍👧‍👦","👨‍👩‍👦‍👦","👨‍👩‍👧‍👧","👨‍👨‍👦","👨‍👨‍👧","👨‍👨‍👧‍👦","👨‍👨‍👦‍👦","👨‍👨‍👧‍👧","👩‍👩‍👦","👩‍👩‍👧","👩‍👩‍👧‍👦","👩‍👩‍👦‍👦","👩‍👩‍👧‍👧","👨‍👦","👨‍👦‍👦","👨‍👧","👨‍👧‍👦","👨‍👧‍👧","👩‍👦","👩‍👦‍👦","👩‍👧","👩‍👧‍👦","👩‍👧‍👧","🗣","👤","👥","👣"],icon:Nt},{title:(0,I.t)("animals & nature",{context:"emoji_group"}), -emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕‍🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","🌊","🌫"],icon:Vt},{title:(0,I.t)("food & drink",{context:"emoji_group"}),emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂"],icon:zt},{title:(0,I.t)("activity",{context:"emoji_group"}),emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️","🏋️‍♂️","🏋️‍♀️","🤼","🤼‍♂️","🤼‍♀️","🤸‍♀️","🤸","🤸‍♂️","⛹️","⛹️‍♂️","⛹️‍♀️","🤺","🤾","🤾‍♂️","🤾‍♀️","🏌️","🏌️‍♂️","🏌️‍♀️","🏇","🧘","🧘‍♂️","🧘‍♀️","🏄","🏄‍♂️","🏄‍♀️","🏊","🏊‍♂️","🏊‍♀️","🤽","🤽‍♂️","🤽‍♀️","🚣","🚣‍♂️","🚣‍♀️","🧗","🧗‍♂️","🧗‍♀️","🚵","🚵‍♂️","🚵‍♀️","🚴","🚴‍♂️","🚴‍♀️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹‍♂️","🤹‍♀️","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🪕","🎻","🎲","🎯","🎳","🎮","🎰","🧩"],icon:kt},{title:(0,I.t)("travel & places",{context:"emoji_group"}),emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"],icon:Bt},{title:(0,I.t)("objects",{context:"emoji_group"}), -emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓","🧳","🌂","☂️","🧵","🧶","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🎒","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","💄","💍","💼"],icon:Rt},{title:(0,I.t)("symbols",{context:"emoji_group"}),emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁‍🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"],icon:Wt},{title:(0,I.t)("flags",{context:"emoji_group"}), -emojis:["🏳️","🏴","🏁","🚩","🏳️‍🌈","🏴‍☠️","🇦🇫","🇦🇽","🇦🇱","🇩🇿","🇦🇸","🇦🇩","🇦🇴","🇦🇮","🇦🇶","🇦🇬","🇦🇷","🇦🇲","🇦🇼","🇦🇺","🇦🇹","🇦🇿","🇧🇸","🇧🇭","🇧🇩","🇧🇧","🇧🇾","🇧🇪","🇧🇿","🇧🇯","🇧🇲","🇧🇹","🇧🇴","🇧🇦","🇧🇼","🇧🇷","🇮🇴","🇻🇬","🇧🇳","🇧🇬","🇧🇫","🇧🇮","🇰🇭","🇨🇲","🇨🇦","🇮🇨","🇨🇻","🇧🇶","🇰🇾","🇨🇫","🇹🇩","🇨🇱","🇨🇳","🇨🇽","🇨🇨","🇨🇴","🇰🇲","🇨🇬","🇨🇩","🇨🇰","🇨🇷","🇨🇮","🇭🇷","🇨🇺","🇨🇼","🇨🇾","🇨🇿","🇩🇰","🇩🇯","🇩🇲","🇩🇴","🇪🇨","🇪🇬","🇸🇻","🇬🇶","🇪🇷","🇪🇪","🇪🇹","🇪🇺","🇫🇰","🇫🇴","🇫🇯","🇫🇮","🇫🇷","🇬🇫","🇵🇫","🇹🇫","🇬🇦","🇬🇲","🇬🇪","🇩🇪","🇬🇭","🇬🇮","🇬🇷","🇬🇱","🇬🇩","🇬🇵","🇬🇺","🇬🇹","🇬🇬","🇬🇳","🇬🇼","🇬🇾","🇭🇹","🇭🇳","🇭🇰","🇭🇺","🇮🇸","🇮🇳","🇮🇩","🇮🇷","🇮🇶","🇮🇪","🇮🇲","🇮🇱","🇮🇹","🇯🇲","🇯🇵","🎌","🇯🇪","🇯🇴","🇰🇿","🇰🇪","🇰🇮","🇽🇰","🇰🇼","🇰🇬","🇱🇦","🇱🇻","🇱🇧","🇱🇸","🇱🇷","🇱🇾","🇱🇮","🇱🇹","🇱🇺","🇲🇴","🇲🇰","🇲🇬","🇲🇼","🇲🇾","🇲🇻","🇲🇱","🇲🇹","🇲🇭","🇲🇶","🇲🇷","🇲🇺","🇾🇹","🇲🇽","🇫🇲","🇲🇩","🇲🇨","🇲🇳","🇲🇪","🇲🇸","🇲🇦","🇲🇿","🇲🇲","🇳🇦","🇳🇷","🇳🇵","🇳🇱","🇳🇨","🇳🇿","🇳🇮","🇳🇪","🇳🇬","🇳🇺","🇳🇫","🇰🇵","🇲🇵","🇳🇴","🇴🇲","🇵🇰","🇵🇼","🇵🇸","🇵🇦","🇵🇬","🇵🇾","🇵🇪","🇵🇭","🇵🇳","🇵🇱","🇵🇹","🇵🇷","🇶🇦","🇷🇪","🇷🇴","🇷🇺","🇷🇼","🇼🇸","🇸🇲","🇸🇦","🇸🇳","🇷🇸","🇸🇨","🇸🇱","🇸🇬","🇸🇽","🇸🇰","🇸🇮","🇬🇸","🇸🇧","🇸🇴","🇿🇦","🇰🇷","🇸🇸","🇪🇸","🇱🇰","🇧🇱","🇸🇭","🇰🇳","🇱🇨","🇵🇲","🇻🇨","🇸🇩","🇸🇷","🇸🇿","🇸🇪","🇨🇭","🇸🇾","🇹🇼","🇹🇯","🇹🇿","🇹🇭","🇹🇱","🇹🇬","🇹🇰","🇹🇴","🇹🇹","🇹🇳","🇹🇷","🇹🇲","🇹🇨","🇹🇻","🇻🇮","🇺🇬","🇺🇦","🇦🇪","🇬🇧","🏴󠁧󠁢󠁥󠁮󠁧󠁿","🏴󠁧󠁢󠁳󠁣󠁴󠁿","🏴󠁧󠁢󠁷󠁬󠁳󠁿","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇺","🇻🇦","🇻🇪","🇻🇳","🇼🇫","🇪🇭","🇾🇪","🇿🇲","🇿🇼"],icon:Lt}];var It=n(50628),Ft=n(37558),Ht=n(41590),Ot=n(27317),jt=n(40173);var Zt=n(40233),Ut=n(24437),Yt=n(90896);function qt(e){const{children:t,highlight:n,disabled:i,reference:r}=e,a=n?"primary":"default";return o.createElement("div",{ref:r,className:d()(Yt.wrapper,Yt["intent-"+a],Yt["border-thin"],Yt["size-medium"],n&&Yt.highlight,n&&Yt.focused,i&&Yt.disabled),"data-role":"button"},o.createElement("div",{className:d()(Yt.childrenContainer,i&&Yt.disabled)},t),n&&o.createElement("span",{className:Yt.shadow}))}var Qt=n(95076);const Kt=()=>null,Xt=(0,jt.mergeThemes)(Ot.DEFAULT_MENU_THEME,{menuBox:Qt.menuBox});function Gt(e){const{value:t,disabled:n,onSelect:i}=e,r=(0,o.useRef)(null),{current:a}=(0,o.useRef)(st.getJSON("RecentlyUsedEmojis",[t])),[s,l]=(0,o.useState)(a),[c,d]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>d(!1),[]);var p;p=u,(0,o.useEffect)(()=>(document.addEventListener("scroll",p),()=>{document.removeEventListener("scroll",p)}),[p]);const h=(0,o.useCallback)(e=>{const t=Array.from(new Set([e,...s])).slice(0,18);st.setJSON("RecentlyUsedEmojis",t),l(t),i(e),u()},[s,i]),m=(f=s,(0,o.useMemo)(()=>(At[0].emojis=f,[...At]),[f]));var f;return o.createElement(o.Fragment,null,o.createElement(qt,{reference:r, -highlight:c,disabled:n},o.createElement(bt,{emoji:t,onClick:function(){n||d(!0)}})),o.createElement(Ye.MatchMedia,{rule:Ut.DialogBreakpoints.TabletSmall},e=>c&&o.createElement(Ft.DrawerManager,null,e?o.createElement(Ht.Drawer,{className:Qt.drawer,position:"Bottom",onClose:u},o.createElement(Pt,{emojis:m,onSelect:h})):o.createElement(It.PopupMenu,{theme:Xt,isOpened:!0,position:(0,Zt.getPopupPositioner)(r.current,{horizontalDropDirection:Zt.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:Zt.HorizontalAttachEdge.Left}),onClickOutside:u,onClose:Kt},o.createElement(Pt,{className:Qt.desktopSize,emojis:m,onSelect:h})))))}var $t=n(9688);function Jt(e){const{definition:{title:t,properties:n}}=e,{checked:i,emoji:r,backgroundColor:s}=n,[l,c]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[d,u]=(0,a.useDefinitionProperty)({property:r,defaultValue:"🙂"}),[p,h]=(0,a.useDefinitionProperty)({property:s,defaultValue:ue.colorsPalette["color-tv-blue-a600"]});return o.createElement("div",{className:$t.wrapper},o.createElement(at.Checkbox,{className:$t.checkbox,label:t,checked:l,onChange:function(){c(!l)}}),o.createElement(Gt,{value:d,disabled:!l,onSelect:u}),o.createElement(W.ColorSelect,{className:$t.colorSelect,disabled:!l,color:p,onColorChange:h}))}function en(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,l&&o.createElement(s.CommonSection,{id:t,offset:c,title:l,disabled:e.disabled||d}),r.map(e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(l)}))):null}function tn(e){const{definition:t,offset:n,disabled:a}=e;if(function(e){(0,o.useEffect)(()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach(([n,o])=>{void 0!==o&&o.subscribe(t,()=>Oe.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`))}),()=>{Object.entries(t).forEach(([,e])=>{void 0!==e&&e.unsubscribeAll(t)})}},[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(nn,{definition:t,offset:n,disabled:a});switch(t.propType){case"line":return o.createElement(te,{...e,definition:t});case"checkable":return o.createElement(l,{...e,definition:t});case"color":return o.createElement(ce,{...e,definition:t});case"transparency":return o.createElement(fe,{...e,definition:t});case"twoColors":return o.createElement(ve,{...e,definition:t});case"number":return o.createElement(we,{...e,definition:t});case"symbol":return o.createElement(r.SymbolInputsButton,{...e,definition:t});case"text":return o.createElement(Le,{...e,definition:t});case"checkableSet":return o.createElement(_e,{...e,definition:t});case"set":return o.createElement(en,{...e,definition:t});case"options":return o.createElement(He,{...e,definition:t});case"range":return o.createElement(Qe,{...e,definition:t});case"coordinates": -return o.createElement(Ie,{...e,definition:t});case"twoOptions":return o.createElement(nt,{...e,definition:t});case"leveledLine":return o.createElement(Je,{...e,definition:t});case"emoji":return o.createElement(Jt,{...e,definition:t});case"image":return null;case"studyInputs":return o.createElement(rt,{...e,definition:t});default:return null}}function nn(e){const{definition:t}=e,n=(0,J.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,J.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?o.createElement(o.Fragment,null,t.title&&o.createElement(Ke.GroupTitleSection,{title:t.title,name:t.id}),n&&(r=n,r.reduce((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[])).map(n=>Array.isArray(n)?o.createElement($e,{key:n[0].id,name:t.id,definitions:n}):o.createElement(tn,{key:n.id,...e,definition:n})),"general"===t.groupType&&o.createElement(Te.PropertyTable.GroupSeparator,{size:1})):null;var r}},95711:(e,t,n)=>{"use strict";n.d(t,{PopupContext:()=>o});const o=n(59496).createContext(null)},63016:(e,t,n)=>{"use strict";n.d(t,{PopupDialog:()=>D});var o=n(59496),i=n(97754),r=n(88537),a=n(50655),s=n(88216),l=n(90186),c=n(17683);class d extends o.PureComponent{constructor(){super(...arguments),this._manager=new s.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:r=!1,className:s,backdrop:d}=this.props,u=i(s,c.dialog,e&&c.rounded,t&&c.shadowed,n&&c.fullscreen,r&&c.darker),p=(0,l.filterDataProps)(this.props),h=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(a.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:c.backdrop}),o.createElement("div",{...p,className:u,style:h,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(a.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:i,zIndex:r,height:a}=this.props;return{bottom:e,left:t,right:o,top:i,zIndex:r,maxWidth:n,height:a}}}var u=n(86431),p=n(76594),h=n(64514);function m(e,t,n,o){return e+t>o&&(e=o-t),e{if(0!==e.button||this._isTargetNoDraggable(e))return;e.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const t=f(g(e));this._dragStart(t)}, -this._onTouchDragStart=e=>{if(this._isTargetNoDraggable(e))return;this._canBeTouchClick=!0,e.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const t=f(v(e));this._dragStart(t)},this._onMouseDragEnd=e=>{e.target instanceof Node&&this._header.contains(e.target)&&e.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=e=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(e){if(e instanceof SVGElement){const t=document.createEvent("SVGEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}e instanceof HTMLElement&&e.click()}(e.target))},this._onMouseDragMove=e=>{const t=f(g(e));this._dragMove(t)},this._onTouchDragMove=e=>{this._canBeTouchClick=!1,e.preventDefault();const t=f(v(e));this._dragMove(t)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=e,this._header=t,this._options=n,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(e){this._options=e}_dragStart(e){const t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,finishX:e.x,finishY:e.y,dialogX:t.left,dialogY:t.top};const n=Math.round(t.left),o=Math.round(t.top);this._dialog.style.transform=`translate(${n}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(e){if(this._drag){if(this._drag.finishX=e.x,this._drag.finishY=e.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const t=e.x-this._drag.startX,n=e.y-this._drag.startY;this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n)}this._frame=null})}}_moveDialog(e,t){const n=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,i=m(e,n.width,o?0:-1/0,o?window.innerWidth:1/0),r=m(t,n.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}_isTargetNoDraggable(e){return e.target instanceof Element&&null!==e.target.closest("[data-disable-drag]")}}const b={vertical:0};class w{constructor(e,t){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=e,this._guard=t.guard||b,this._calculateDialogPosition=t.calculateDialogPosition, -this._initialHeight=e.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(e){this._guard=e.guard||b,this._calculateDialogPosition=e.calculateDialogPosition}setFullscreen(e){this._isFullscreen!==e&&(this._isFullscreen=e,this.recalculateBounds())}centerAndFit(){const{x:e,y:t}=this.getDialogsTopLeftCoordinates(),n=this._calcAvailableHeight(),o=this._calcDialogHeight();if(n===o)if(this._calculateDialogPosition){const{left:e,top:t}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${e}px, ${t}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:e,clientWidth:t}=document.documentElement,n=this._calcDialogHeight(),o=t/2-this._dialog.clientWidth/2,i=e/2-n/2;return{x:Math.round(o),y:Math.round(i)}}recalculateBounds(){const{clientHeight:e,clientWidth:t}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:n}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:t,clientHeight:e},{vertical:n}),{left:i,top:r}=o;this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),i=e-2*n,r=m(o.left,o.width,0,t),a=m(o.top,o.height,n,e);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(r)}px, ${Math.round(a)}px)`,this._dialog.style.height=i{const{reference:t}=this.props;this._dialog=e,"function"==typeof t&&t(e)},this._handleFocus=e=>{this._moveToTop()},this._handleMouseDown=e=>{this._moveToTop()},this._handleTouchStart=e=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(E.PopupContext.Provider,{value:this},o.createElement(p.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},e=>o.createElement("div",{ref:e,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},o.createElement(d,{style:this._applyAnimationCSSVariables(), -...this.props,reference:this._handleDialogRef,className:i(S.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:e,boundByScreen:t,onDragStart:n}=this.props,o=(0,r.ensureNotNull)(this._dialog);if(e){const e=o.querySelector("[data-dragg-area]");e&&e instanceof HTMLElement&&(this._drag=new y(o,e,{boundByScreen:Boolean(t),onDragStart:n}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,C.setFixedBodyState)(!0);const{guard:i,calculateDialogPosition:a}=this.props;this._resize=new w(o,{guard:i,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:e,calculateDialogPosition:t}=this.props;this._resize.updateOptions({guard:e,calculateDialogPosition:t}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,C.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(e){if(this._resize&&this._dialog){const{x:t,y:n}=e,{x:o,y:i}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",t+"px"),this._dialog.style.setProperty("--animationTranslateStartY",n+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",i+"px"),this._dialog.classList.add(S.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}x.contextType=_.PortalContext,x.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const D=(0,u.makeOverlapable)(x)},95276:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosure:()=>c});var o=n(59496),i=n(66092),r=n(26597),a=n(46059),s=n(68721),l=n(66230);const c=o.forwardRef((e,t)=>{const{id:n,tabIndex:c,disabled:d,highlight:u,intent:p,children:h,onClick:m,onFocus:f,onBlur:g,listboxAria:v,...y}=e,b=(0,o.useRef)({"aria-labelledby":n}),{listboxId:w,isOpened:_,isFocused:E,buttonTabIndex:C,listboxTabIndex:S,highlight:x,intent:D,onOpen:M,close:P,toggle:T,buttonFocusBindings:N,onButtonClick:V,buttonRef:z,listboxRef:k,buttonAria:B}=(0,s.useControlDisclosure)({id:n,disabled:d,buttonTabIndex:c,intent:p,highlight:u,onFocus:f,onBlur:g,onClick:m}),R=(0, -r.useKeyboardToggle)(T),W=(0,r.useKeyboardClose)(_,P),L=(0,r.useKeyboardActionHandler)([27],P,(0,o.useCallback)(()=>_,[_])),A=(0,r.useKeyboardEventHandler)(R,W),I=(0,r.useKeyboardEventHandler)(L);return o.createElement(a.ControlDisclosureView,{...y,...N,...B,id:n,role:"button",tabIndex:C,disabled:d,isOpened:_,isFocused:E,ref:(0,i.useMergedRefs)([z,t]),highlight:x,intent:D,onClose:P,onOpen:M,onClick:V,onKeyDown:A,listboxId:w,listboxTabIndex:S,listboxReference:k,listboxAria:null!=v?v:b.current,onListboxKeyDown:I},h,o.createElement("span",{className:l.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:P}))});c.displayName="ControlDisclosure"},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>i,DrawerContext:()=>r});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(r.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const r=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>h});var o=n(59496),i=n(88537),r=n(97754),a=n(59142),s=n(99054),l=n(65718),c=n(37558),d=n(49483),u=n(29197),p=n(66998);function h(e){const{position:t="Bottom",onClose:n,children:h,className:m,theme:f=p}=e,g=(0,i.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[v,y]=(0,o.useState)(0),b=(0,o.useRef)(null),w=(0,o.useContext)(u.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,i.ensureNotNull)(b.current);return e.focus({preventScroll:!0}),w.subscribe(g,n),0===g.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),y(g.addDrawer()),()=>{w.unsubscribe(g,n);const t=g.removeDrawer();d.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),o.createElement(l.Portal,null,o.createElement("div",{className:r(p.wrap,p["position"+t])},v===g.currentDrawer&&o.createElement("div",{className:p.backdrop,onClick:n}),o.createElement("div",{className:r(p.drawer,f.drawer,p["position"+t],m),ref:b,tabIndex:-1,"data-name":e["data-name"]},h)))}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>r});var o=n(59496),i=n(39640);function r(e){const{click:t,mouseDown:n,touchEnd:r,touchStart:a,handler:s,reference:l,ownerDocument:c=document}=e,d=(0,o.useRef)(null),u=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:r,touchStart:a},o=l?l.current:d.current;return(0,i.addOutsideEventListener)(u.current,o,s,c,e)},[t,n,r,a,s]),l||d}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>i});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){ -this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>o});const o=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>g,Menu:()=>v});var o=n(59496),i=n(97754),r=n.n(i),a=n(88537),s=n(64514),l=n(54475),c=n(50655),d=n(59064),u=n(88216),p=n(25760),h=n(14758),m=n(64706),f=n(16059);const g=f;class v extends o.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new u.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,o,i,r;if(this.state.isMeasureValid&&!t)return;const{position:l}=this.props,c=(0,a.ensureNotNull)(this._containerRef);let d=c.getBoundingClientRect();const u=document.documentElement.clientHeight,p=document.documentElement.clientWidth,h=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=u-0-h;const f=d.height>m;if(f){(0,a.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",d=c.getBoundingClientRect()}const{width:g,height:v}=d,y="function"==typeof l?l(g,v,u):l,b=p-(null!==(o=y.overrideWidth)&&void 0!==o?o:g)-0,w=(0,s.clamp)(y.x,0,Math.max(0,b)),_=0+h,E=u-(null!==(i=y.overrideHeight)&&void 0!==i?i:v)-0;let C=(0,s.clamp)(y.y,_,Math.max(_,E));if(y.forbidCorrectYCoord&&C{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,a.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,a.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{ -null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,a.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=d.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=p.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=d.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":i,children:a,minWidth:s,theme:d=f,className:u,maxHeight:p,onMouseOver:g,onMouseOut:v,onKeyDown:b,onFocus:w,onBlur:_}=this.props,{appearingMenuHeight:E,appearingMenuWidth:C,appearingPosition:S,isMeasureValid:x}=this.state;return o.createElement(m.MenuContext.Provider,{value:this},o.createElement(h.SubmenuHandler,null,o.createElement(c.SlotContext.Provider,{value:this._manager},o.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":i,className:r()(u,d.menuWrap,!x&&d.isMeasuring),style:{height:E,left:S&&S.x,minWidth:s,position:"fixed",top:S&&S.y,width:C},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:l.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:g,onMouseOut:v,onKeyDown:b,onFocus:w,onBlur:_},o.createElement("div",{className:r()(d.scrollWrap,!this.props.noMomentumBasedScroll&&d.momentumBased),style:{overflowY:void 0!==E?"scroll":"auto",maxHeight:p},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},o.createElement(y,{className:d.menuBox},a)))),o.createElement(c.Slot,{reference:this._handleSlot})))} -update(e){e?this._resizeForced():this._resize()}}function y(e){const t=(0,a.ensureNotNull)((0,o.useContext)(h.SubmenuContext)),n=o.useRef(null);return o.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(o=e.target,null===(i=n.current)||void 0===i?void 0:i.contains(o))))return;var o,i;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}v.contextType=h.SubmenuContext},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>i});var o=n(58095);function i(e){const{children:t,...n}=e;return t((0,o.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>r,getRootOverlapManager:()=>s});var o=n(88537);class i{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class r{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function s(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(a.get(t));{const t=new r(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>r});var o=n(59496),i=n(65718);function r(e){return class extends o.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const r=o.createElement(e,{ -...this.props,zIndex:150});return"parent"===n?r:o.createElement(i.Portal,null,r)}}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>r});var o=n(59496),i=n(59064);const r=o.createContext(i.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var o=n(59496),i=n(87995),r=n(9423),a=n(88216),s=n(50655);class l extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,r.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",i.createPortal(o.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=s.SlotContext;const c=o.createContext(null)},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>d});var o=n(28353),i=n(59496),r=n(97754),a=n(9745),s=n(73366),l=n(73432);const c={remove:(0,o.t)("Remove")};function d(e){const{className:t,isActive:n,onClick:o,onMouseDown:d,title:u,hidden:p,"data-name":h="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":h,className:r(l.button,"apply-common-tooltip",n&&l.active,p&&l.hidden,t),icon:s,onClick:o,onMouseDown:d,title:u||c.remove})}},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>i,SlotContext:()=>r});var o=n(59496);class i extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const r=o.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>i,SubmenuHandler:()=>r});var o=n(59496);const i=o.createContext(null);function r(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(null),a=(0,o.useRef)(new Map);return(0,o.useEffect)(()=>()=>{null!==r.current&&clearTimeout(r.current)},[]),o.createElement(i.Provider,{value:{current:t,setCurrent:function(e){null!==r.current&&(clearTimeout(r.current),r.current=null);null===t?n(e):r.current=setTimeout(()=>{r.current=null,n(e)},100)},registerSubmenu:function(e,t){return a.current.set(e,t),()=>{a.current.delete(e)}},isSubmenuNode:function(e){return Array.from(a.current.values()).some(t=>t(e))}}},e.children)}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const r=n[i]||i;r in e&&(o[i]=[e[r],t[i]].join(" "))}return o}function i(e,t,n={}){return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>i})},31328:e=>{ -e.exports=''},73366:e=>{e.exports=''},19726:e=>{e.exports=''},56326:e=>{e.exports=''},50303:e=>{e.exports=''},20618:e=>{e.exports=''},56775:e=>{e.exports=''},23848:e=>{e.exports=''},86508:e=>{e.exports=''},27603:e=>{e.exports=''},75614:e=>{ -e.exports=''},36311:e=>{ -e.exports=''},72843:e=>{e.exports=''},31006:e=>{ -e.exports=''},42925:e=>{e.exports=''},80781:e=>{e.exports=''},67978:e=>{ -e.exports=''},40526:e=>{e.exports=''},1033:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/8948.b703bd84d23db0af187d.css b/charting_library/bundles/8948.b703bd84d23db0af187d.css new file mode 100644 index 00000000..af9e91b4 --- /dev/null +++ b/charting_library/bundles/8948.b703bd84d23db0af187d.css @@ -0,0 +1 @@ +.text-button-jmRlvG08{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;display:inline-flex;justify-content:center;max-width:100%;outline:none;overflow:visible;padding:0;position:relative}.text-button-jmRlvG08:focus{outline:none}.text-button-jmRlvG08:focus-visible{outline:none}.text-button-jmRlvG08:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 4px);left:-2px;pointer-events:none;position:absolute;top:-2px;width:calc(100% + 4px);z-index:1}.text-button-jmRlvG08:focus:after{display:block}.text-button-jmRlvG08:focus-visible:after{display:block}.text-button-jmRlvG08:focus:not(:focus-visible):after{display:none}.text-button-jmRlvG08:after{border-color:#2962ffcc;border-radius:8px}.text-button-jmRlvG08 .content-jmRlvG08{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:0}.text-button-brand-small-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .text-button-brand-small-jmRlvG08{color:#2962ff}.text-button-brand-small-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 24px)}.text-button-brand-small-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-8px;width:calc(100% + 16px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-8px;top:-8px;width:calc(100% + 20px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-4px;position:absolute;right:-8px;width:calc(100% + 12px)}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 20px)}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-4px;width:calc(100% + 12px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:4px;z-index:0}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:2px;z-index:0}@media (any-hover:hover){.text-button-brand-small-jmRlvG08:hover,html.theme-dark .text-button-brand-small-jmRlvG08:hover{color:#2962ff}.text-button-brand-small-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-small-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-small-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-small-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-small-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-small-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-small-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-small-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-small-jmRlvG08:disabled{color:#5d606b}.text-button-brand-small-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-brand-medium-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-brand-medium-jmRlvG08{color:#2962ff}.text-button-brand-medium-jmRlvG08:after{height:calc(100% + 16px);left:-14px;top:-8px;width:calc(100% + 28px)}.text-button-brand-medium-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-10px;width:calc(100% + 20px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-10px;top:-8px;width:calc(100% + 24px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-6px;position:absolute;right:-10px;width:calc(100% + 16px)}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-14px;top:-8px;width:calc(100% + 24px)}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-6px;width:calc(100% + 16px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:6px;z-index:0}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:4px;z-index:0}@media (any-hover:hover){.text-button-brand-medium-jmRlvG08:hover,html.theme-dark .text-button-brand-medium-jmRlvG08:hover{color:#2962ff}.text-button-brand-medium-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-medium-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-medium-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-medium-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-medium-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-medium-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-medium-jmRlvG08:disabled{color:#5d606b}.text-button-brand-medium-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-brand-large-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-brand-large-jmRlvG08{color:#2962ff}.text-button-brand-large-jmRlvG08:after{height:calc(100% + 16px);left:-16px;top:-8px;width:calc(100% + 32px)}.text-button-brand-large-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-12px;width:calc(100% + 24px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 28px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-12px;width:calc(100% + 20px)}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-16px;top:-8px;width:calc(100% + 28px)}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-8px;width:calc(100% + 20px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:8px;z-index:0}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:6px;z-index:0}@media (any-hover:hover){.text-button-brand-large-jmRlvG08:hover,html.theme-dark .text-button-brand-large-jmRlvG08:hover{color:#2962ff}.text-button-brand-large-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-large-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-large-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-large-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-large-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-large-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-large-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-large-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-large-jmRlvG08:disabled{color:#5d606b}.text-button-brand-large-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-small-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .text-button-gray-small-jmRlvG08{color:#d1d4dc}.text-button-gray-small-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 24px)}.text-button-gray-small-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-8px;width:calc(100% + 16px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-8px;top:-8px;width:calc(100% + 20px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-4px;position:absolute;right:-8px;width:calc(100% + 12px)}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 20px)}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-4px;width:calc(100% + 12px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:4px;z-index:0}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:2px;z-index:0}@media (any-hover:hover){.text-button-gray-small-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-small-jmRlvG08:hover{color:#fff}.text-button-gray-small-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-small-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-small-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-small-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-small-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-small-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-small-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-small-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-small-jmRlvG08:disabled{color:#5d606b}.text-button-gray-small-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-medium-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-gray-medium-jmRlvG08{color:#d1d4dc}.text-button-gray-medium-jmRlvG08:after{height:calc(100% + 16px);left:-14px;top:-8px;width:calc(100% + 28px)}.text-button-gray-medium-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-10px;width:calc(100% + 20px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-10px;top:-8px;width:calc(100% + 24px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-6px;position:absolute;right:-10px;width:calc(100% + 16px)}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-14px;top:-8px;width:calc(100% + 24px)}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-6px;width:calc(100% + 16px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:6px;z-index:0}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:4px;z-index:0}@media (any-hover:hover){.text-button-gray-medium-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-medium-jmRlvG08:hover{color:#fff}.text-button-gray-medium-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-medium-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-medium-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-medium-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-medium-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-medium-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-medium-jmRlvG08:disabled{color:#5d606b}.text-button-gray-medium-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-large-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-gray-large-jmRlvG08{color:#d1d4dc}.text-button-gray-large-jmRlvG08:after{height:calc(100% + 16px);left:-16px;top:-8px;width:calc(100% + 32px)}.text-button-gray-large-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-12px;width:calc(100% + 24px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);left:-12px;top:-8px;width:calc(100% + 28px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-12px;width:calc(100% + 20px)}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);left:-16px;top:-8px;width:calc(100% + 28px)}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-8px;width:calc(100% + 20px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-right:8px;z-index:0}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-left:6px;z-index:0}@media (any-hover:hover){.text-button-gray-large-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-large-jmRlvG08:hover{color:#fff}.text-button-gray-large-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-large-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-large-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-large-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-large-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-large-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-large-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-large-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-large-jmRlvG08:disabled{color:#5d606b}.text-button-gray-large-jmRlvG08:disabled .background-jmRlvG08{display:none}.logo-jrIJiOY8{align-items:center;background:#fff;color:#131722;display:flex;justify-content:center;left:0;padding:20px 0 16px;position:absolute;right:0;top:0;z-index:2}html.theme-dark .logo-jrIJiOY8{background:#000;color:#fff}@media screen and (min-width:1024px){.logo-jrIJiOY8{padding:40px 0}}.back-button-ysmLHxY9{color:#131722;left:12px;position:absolute;top:14px;z-index:3}html.theme-dark .back-button-ysmLHxY9{color:#d1d4dc}@media screen and (min-width:1024px){.back-button-ysmLHxY9{display:none;left:auto;top:auto;transform:translate(calc(14px - 100%),-2px)}}.back-button-ysmLHxY9.hidden-ysmLHxY9{display:none}.textButton-ysmLHxY9.textButton-ysmLHxY9{display:none;z-index:3}@media screen and (min-width:1024px){.textButton-ysmLHxY9.textButton-ysmLHxY9{display:flex;left:40px;position:absolute;top:74px}}@media screen and (min-width:1920px){.textButton-ysmLHxY9{left:103px}}.textButton-ysmLHxY9.hidden-ysmLHxY9{display:none}.close-button-ysmLHxY9{position:absolute;right:12px;top:14px;z-index:3}@media screen and (min-width:1024px){.close-button-ysmLHxY9{right:32px;top:32px}}.close-button-ysmLHxY9.hidden-ysmLHxY9{display:none}.next-payment-info-bDg2DFsp{font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:21px}.dialog-ekStf8bO{background-color:#fff;opacity:0;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .dialog-ekStf8bO{background-color:#000}.dialog-ekStf8bO.open-animation-ekStf8bO,.dialog-ekStf8bO.open-animation-ekStf8bO .dialog-section-ekStf8bO{opacity:1}.dialog-section-ekStf8bO{display:flex;flex:auto;opacity:0;overflow:hidden;transition:opacity 175ms cubic-bezier(.55,.055,.675,.19) .2625s}.dialog-section-ekStf8bO.two-column-ekStf8bO{padding:72px 0 124px}@media screen and (min-width:1024px){.dialog-section-ekStf8bO.two-column-ekStf8bO{margin:0 auto;padding:105px 0 0;width:calc(100% - 80px)}}@media screen and (min-width:1920px){.dialog-section-ekStf8bO.two-column-ekStf8bO{width:calc(100% - 200px)}}.dialog-section-ekStf8bO.one-column-ekStf8bO{padding-top:61px}@media screen and (min-width:1024px){.dialog-section-ekStf8bO.one-column-ekStf8bO{padding-top:105px}}.body-ekStf8bO{grid-gap:40px;-webkit-overflow-scrolling:auto;align-items:stretch;color:#131722;display:grid;flex-grow:1;grid-template-columns:minmax(auto,100%);overflow-y:scroll;padding:0 20px;scrollbar-width:none}html.theme-dark .body-ekStf8bO{color:#fff}.body-ekStf8bO.sb-scrollbar-wrap{display:none}.body-ekStf8bO::-webkit-scrollbar{display:none;height:0;width:0}.body-ekStf8bO::-webkit-scrollbar-thumb,.body-ekStf8bO::-webkit-scrollbar-track{display:none}.body-ekStf8bO::-webkit-scrollbar-corner{display:none}@media screen and (min-width:1024px){.body-ekStf8bO{grid-template-columns:minmax(auto,calc(100% - 440px)) 400px;padding-left:0;padding-right:0}}@media screen and (min-width:1920px){.body-ekStf8bO{grid-gap:80px;grid-template-columns:minmax(auto,calc(100% - 720px)) 640px}}.one-column-ekStf8bO .body-ekStf8bO{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:0}.main-ekStf8bO{max-height:100%;padding-left:4px;position:relative}@media screen and (max-width:767px){.main-ekStf8bO.mainMobile-ekStf8bO{width:100%}}@media screen and (min-width:1024px){.cart-ekStf8bO{position:sticky;position:-webkit-sticky}}.hidden-ekStf8bO{display:none}.cart-bjdgLkZK{--paddingTopNotebook:105px;background-color:#f8f9fd;bottom:0;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding:24px 0 72px;position:absolute;right:0;z-index:3}html.theme-dark .cart-bjdgLkZK{background-color:#131722}@media screen and (min-width:1024px){.cart-bjdgLkZK{border-radius:16px;height:auto;max-height:calc(100vh - var(--paddingTopNotebook) - 6px);padding-bottom:0;padding-top:7px;position:sticky;position:-webkit-sticky;top:0}}.purchase-info-bjdgLkZK{display:none}@media screen and (min-width:1024px){.purchase-info-bjdgLkZK{display:block}}.cart-bjdgLkZK.mobile-opened-bjdgLkZK .purchase-info-bjdgLkZK{display:block}.cart-bjdgLkZK.mobile-opened-bjdgLkZK{top:0}.row-layout-bjdgLkZK{grid-gap:8px;display:grid;grid-template-columns:1fr max-content}.product-name-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;text-transform:capitalize}html.theme-dark .product-name-bjdgLkZK{color:#fff}.product-cost-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}html.theme-dark .product-cost-bjdgLkZK{color:#fff}.productTrial-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.mobile-total-title-bjdgLkZK,.productTrial-bjdgLkZK{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.mobile-total-title-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px}html.theme-dark .mobile-total-title-bjdgLkZK{color:#fff}.mobile-total-cost-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .mobile-total-cost-bjdgLkZK{color:#fff}.actions-bjdgLkZK{border-top-left-radius:16px;border-top-right-radius:16px;bottom:0;display:flex;flex-direction:column;left:0;padding:14px 20px 20px;position:absolute;right:0}@media screen and (min-width:1024px){.actions-bjdgLkZK{bottom:0;display:block;padding:0 24px 24px;position:sticky;position:-webkit-sticky}}@media screen and (max-width:1019px){.actions-bjdgLkZK{background-color:#f8f9fd}html.theme-dark .actions-bjdgLkZK{background-color:#131722}}@media screen and (min-width:1531px){.withPaymentDropdown-bjdgLkZK{display:inline-flex;flex-direction:row;gap:16px;justify-content:flex-end}}@media screen and (max-width:1530px){.withPaymentDropdown-bjdgLkZK{grid-gap:20px;display:grid;grid-template-columns:auto;grid-template-rows:auto}}.mobile-wrapper-bjdgLkZK{align-items:center;display:grid;gap:16px;grid-template-columns:max-content 1fr;margin-top:14px}.mobile-wrapper-bjdgLkZK.mobile-wrapper-opened-bjdgLkZK{grid-template-columns:1fr;margin-top:10px}@media screen and (min-width:1024px){.mobile-wrapper-bjdgLkZK{grid-template-columns:1fr;margin-top:0}}.mobile-total-bjdgLkZK{display:flex;flex-direction:column}@media screen and (min-width:1024px){.mobile-total-bjdgLkZK{display:none}}.mobile-opened-bjdgLkZK .mobile-total-bjdgLkZK{display:none}.caret-button-bjdgLkZK{align-content:center;cursor:pointer;display:flex;height:28px;margin:0 auto;width:28px}@media screen and (min-width:1024px){.caret-button-bjdgLkZK{display:none}}.header-caret-button-bjdgLkZK,.mobile-opened-bjdgLkZK .actions-bjdgLkZK .caret-button-bjdgLkZK{display:none}.mobile-opened-bjdgLkZK .header-caret-button-bjdgLkZK{display:block}@media screen and (min-width:1024px){.mobile-opened-bjdgLkZK .header-caret-button-bjdgLkZK{display:none}}.icon-bjdgLkZK{align-items:center;display:flex;flex:none;justify-content:center;transform:rotate(-180deg);transition:transform .35s ease}.icon-bjdgLkZK.dropped-bjdgLkZK{transform:rotate(0)}.badge-yHuWj4ze{--ui-lib-badge-default-color-focus-outline:#2962ffcc;align-items:center;background:var(--ui-lib-badge-background,var(--ui-lib-badge-default-background,#f0f3fa));border:none;border-radius:var(--ui-lib-badge-border-radius,var(--ui-lib-badge-default-border-radius));color:var(--ui-lib-badge-color-content,var(--ui-lib-badge-default-color-content,#131722));display:inline-flex;flex-flow:row nowrap;padding:var(--ui-lib-badge-padding-top,0) var(--ui-lib-badge-padding-right,var(--ui-lib-badge-default-padding-right)) var(--ui-lib-badge-padding-bottom,0) var(--ui-lib-badge-padding-left,var(--ui-lib-badge-default-padding-left));text-transform:uppercase;-webkit-user-select:none;user-select:none}html.theme-dark .badge-yHuWj4ze{background:var(--ui-lib-badge-background,var(--ui-lib-badge-default-background,#2a2e39));color:var(--ui-lib-badge-color-content,var(--ui-lib-badge-default-color-content,#fff))}.badge-yHuWj4ze{outline:none;overflow:visible;position:relative}.badge-yHuWj4ze:focus{outline:none}.badge-yHuWj4ze:focus-visible{outline:none}.badge-yHuWj4ze:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.badge-yHuWj4ze:focus:after{display:block}.badge-yHuWj4ze:focus-visible:after{display:block}.badge-yHuWj4ze:focus:not(:focus-visible):after{display:none}.badge-yHuWj4ze:after{border-color:var(--ui-lib-badge-color-focus-outline,var(--ui-lib-badge-default-color-focus-outline));border-radius:calc(var(--ui-lib-badge-border-radius, var(--ui-lib-badge-default-border-radius)) + 4px)}.content-yHuWj4ze{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.anchor-yHuWj4ze:active,.button-yHuWj4ze:active{transform:scale(.95)}.size-xsmall-yHuWj4ze{--ui-lib-badge-default-padding-left:4px;--ui-lib-badge-default-padding-right:4px;--ui-lib-badge-default-border-radius:3px;font-size:8px;font-weight:700;height:12px;letter-spacing:.5px;line-height:12px}.size-small-yHuWj4ze{--ui-lib-badge-default-padding-left:6px;--ui-lib-badge-default-padding-right:6px;--ui-lib-badge-default-border-radius:3px;font-size:11px;font-weight:600;height:16px;letter-spacing:.02em;line-height:16px}.size-medium-yHuWj4ze{--ui-lib-badge-default-padding-left:8px;--ui-lib-badge-default-padding-right:8px;--ui-lib-badge-default-border-radius:4px;font-size:11px;font-weight:600;height:20px;letter-spacing:.05em;line-height:18px}.size-large-yHuWj4ze{--ui-lib-badge-default-padding-left:10px;--ui-lib-badge-default-padding-right:10px;--ui-lib-badge-default-border-radius:6px;font-size:14px;font-weight:600;height:24px;letter-spacing:normal;line-height:18px}.size-xlarge-yHuWj4ze{--ui-lib-badge-default-padding-left:12px;--ui-lib-badge-default-padding-right:12px;--ui-lib-badge-default-border-radius:8px;font-size:17px;font-weight:700;height:32px;letter-spacing:.02em;line-height:24px}.badge-3HaOrC7Y{--ui-lib-badge-color-content:#fff;white-space:nowrap}.stocks-3HaOrC7Y{--ui-lib-badge-background:#ff9800}.futures-3HaOrC7Y{--ui-lib-badge-background:#2962ff}.indices-3HaOrC7Y{--ui-lib-badge-background:#9c27b0}.currency-3HaOrC7Y{--ui-lib-badge-background:#8d6e63}.certificates-3HaOrC7Y{--ui-lib-badge-background:#e91e63}.cryptocurrency-3HaOrC7Y{--ui-lib-badge-background:#4caf50}.badge-35MDaV7L{display:inline-flex}.description-35MDaV7L .badge-35MDaV7L:not(:last-child),.description-35MDaV7L .product-name-35MDaV7L:not(:last-child){margin-right:5px}.exchanges-hTiOOCdh{list-style-type:none}.row-layout-O7MPIjhm{grid-gap:16px;color:#131722;display:grid;grid-template-columns:1fr max-content}html.theme-dark .row-layout-O7MPIjhm{color:#d1d4dc}.row-name-O7MPIjhm{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400}.row-name-O7MPIjhm,.row-value-O7MPIjhm{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.row-value-O7MPIjhm{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:500;text-align:right}.purchase-info-8I7iMxAC{overflow-y:scroll;padding:0 20px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .purchase-info-8I7iMxAC{scrollbar-color:#363a45 #0000}.purchase-info-8I7iMxAC::-webkit-scrollbar{height:5px;width:5px}.purchase-info-8I7iMxAC::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .purchase-info-8I7iMxAC::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.purchase-info-8I7iMxAC::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.purchase-info-8I7iMxAC::-webkit-scrollbar-corner{display:none}@media screen and (min-width:1024px){.purchase-info-8I7iMxAC{padding:0 24px}}.cart-section-8I7iMxAC{padding:16px 0}.cart-section-8I7iMxAC:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .cart-section-8I7iMxAC:not(:last-child){border-bottom:1px solid #434651}.exchange-item-8I7iMxAC{padding:8px 0}.exchange-item-8I7iMxAC:first-child{padding-top:0}.exchange-item-8I7iMxAC:last-child{padding-bottom:0}.total-8I7iMxAC{display:grid;grid-template-columns:1fr max-content}.total-title-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px}html.theme-dark .total-title-8I7iMxAC{color:#fff}.total-cost-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .total-cost-8I7iMxAC{color:#fff}.billing-freq-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .billing-freq-8I7iMxAC{color:#787b86}.highlightTitle-8I7iMxAC{font-weight:700}.highlight-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;background-color:#e3effd;border-radius:8px;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:16px;padding:12px}html.theme-dark .highlight-8I7iMxAC{background-color:#132042}.highlight-8I7iMxAC~.highlight-8I7iMxAC{margin-top:24px}.product-trial-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.cost-trial-8I7iMxAC,.product-trial-8I7iMxAC{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.cost-trial-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px}.total-tax-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:2px}html.theme-dark .total-tax-8I7iMxAC{color:#787b86}.container-1PoDYo3m{grid-gap:12px;display:grid;grid-template-columns:max-content 1fr}@media screen and (min-width:1020px){.container-1PoDYo3m{grid-template-columns:1fr}}@media screen and (min-width:1531px){.container-1PoDYo3m{grid-auto-flow:column;grid-template-columns:auto;justify-content:flex-end}}.dropdown-item-1PoDYo3m{grid-gap:8px;align-items:center;display:grid;font-size:16px;grid-template-columns:max-content 1fr;line-height:20px}.icon-1PoDYo3m{align-items:center;display:flex;height:20px;width:32px}.icon-1PoDYo3m svg{height:100%;width:100%}.childrenWrapper-W0mNxTYg{opacity:0}.childrenWrapper-W0mNxTYg.shown-W0mNxTYg{opacity:1}.loader-W0mNxTYg{display:none}.loader-W0mNxTYg.shown-W0mNxTYg{display:block}.next-1Ts5vcta{display:grid}.title-i6YYU4Ty{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px}html.theme-dark .title-i6YYU4Ty{color:#fff}.description-i6YYU4Ty{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-top:8px}html.theme-dark .description-i6YYU4Ty{color:#fff}.button-RmahEtr8{align-items:flex-start;display:flex;margin-top:3px}.item-RmahEtr8{grid-gap:2px 8px;display:grid;grid-template-columns:min-content auto;padding:19px 0 13px}.item-RmahEtr8:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .item-RmahEtr8:not(:last-child){border-bottom:1px solid #434651}@media screen and (min-width:1024px){.item-RmahEtr8{padding:21px 0 13px}}.title-RmahEtr8{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-bottom:4px}html.theme-dark .title-RmahEtr8{color:#fff}.description-RmahEtr8{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:2/4;line-height:18px;margin-bottom:6px}html.theme-dark .description-RmahEtr8{color:#787b86}@media screen and (min-width:768px){.description-RmahEtr8{grid-column:2/3}}.list-YclYOAXu{display:flex;flex-direction:column;padding-left:4px}.item-YclYOAXu{align-items:flex-start;border-bottom:1px solid #e0e3eb;cursor:pointer;display:flex;padding:16px 21px 16px 6px;position:relative}html.theme-dark .item-YclYOAXu{border-bottom:1px solid #363a45}.item-YclYOAXu:first-of-type{padding-top:29px}@media screen and (min-width:768px){.item-YclYOAXu{padding-left:25px}}@media screen and (min-width:1024px){.item-YclYOAXu{padding-left:0;padding-right:25px}}.item-disabled-YclYOAXu{cursor:default;opacity:.5}.info-YclYOAXu{grid-gap:0 6px;align-self:center;display:grid;flex-grow:1;grid-template-columns:min-content min-content 1fr}.checkbox-YclYOAXu{display:inline-block;position:relative}.title-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px}html.theme-dark .title-YclYOAXu{color:#fff}.exchange-name-YclYOAXu{direction:ltr;display:inline-block;margin-bottom:4px;margin-right:4px}.exchangeBadge-YclYOAXu{display:inline-flex;margin-bottom:4px;margin-left:2px;margin-right:4px;vertical-align:top}.flag-YclYOAXu{border-radius:50%;display:inline-block;height:18px;vertical-align:middle;width:18px}.description-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:3/4;line-height:18px;margin-top:0}html.theme-dark .description-YclYOAXu{color:#787b86}.prices-YclYOAXu{align-items:flex-start;position:relative}.price-YclYOAXu,.prices-YclYOAXu{display:flex;flex-direction:column}.price-YclYOAXu{align-items:flex-end}.month-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;white-space:nowrap}html.theme-dark .month-YclYOAXu{color:#fff}.year-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;white-space:nowrap}@media screen and (max-width:767px){.year-YclYOAXu{margin-left:18px}}@media screen and (min-width:1024px){.year-YclYOAXu{margin-top:4px}}.resident-price-YclYOAXu{align-items:flex-start;display:flex;margin-bottom:10px}.infoIcon-YclYOAXu{color:#787b86;display:inline-flex}html.theme-dark .infoIcon-YclYOAXu{color:#d1d4dc}.infoIcon-YclYOAXu svg{height:20px;width:20px}@media (any-hover:hover){.infoIcon-YclYOAXu:hover{color:#434651}html.theme-dark .infoIcon-YclYOAXu:hover{color:#9598a1}}.infoIcon-YclYOAXu:focus{color:#131722}html.theme-dark .infoIcon-YclYOAXu:focus{color:#d1d4dc}.infoIcon-YclYOAXu:active{color:#131722}html.theme-dark .infoIcon-YclYOAXu:active{color:#d1d4dc}.tooltipTitle-YclYOAXu{display:inline-flex;margin-left:4px}.infoIconContainer-YclYOAXu{display:inline-flex}.spinner-YclYOAXu{min-height:80px;position:relative}.badge-YclYOAXu{color:#131722;position:absolute;right:-30px}html.theme-dark .badge-YclYOAXu{color:#fff}.info-Y4tMc12a{margin-top:10px}@media screen and (min-width:768px){.info-Y4tMc12a{margin-top:15px}}.link-Y4tMc12a{color:#2962ff;transition:color .35s ease}html.theme-dark .link-Y4tMc12a{color:#2962ff}.link-Y4tMc12a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-Y4tMc12a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-Y4tMc12a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-Y4tMc12a:hover{fill:#1e53e5;color:#1e53e5}}.link-Y4tMc12a:focus{outline:auto}.link-Y4tMc12a:focus-visible{outline:auto}.link-Y4tMc12a:focus:not(:focus-visible){outline:none}.link-Y4tMc12a:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-Y4tMc12a:active{fill:#1848cc;color:#1848cc}.text-Y4tMc12a{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;padding-bottom:16px}html.theme-dark .text-Y4tMc12a{color:#fff}.informer-Y4tMc12a{width:fit-content}.footer-ENI3UToR{margin:25px 0 20px}.info-ENI3UToR{margin-bottom:25px}.title-ENI3UToR{display:flex}.text-ENI3UToR{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-left:8px;margin-top:-2px}html.theme-dark .text-ENI3UToR{color:#fff}.description-ENI3UToR{margin-top:4px}.description-ENI3UToR,.description-logo-ENI3UToR{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:block;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}.description-logo-ENI3UToR{margin-top:2px}.ice-icon-ENI3UToR{direction:ltr}.icon-ENI3UToR{color:#131722}html.theme-dark .icon-ENI3UToR{color:#fff}.highlight-wrap-iKO7WU8n .highligh-extra-data-iKO7WU8n{animation-duration:1.3s;animation-iteration-count:1;animation-name:payment-highlight-light-iKO7WU8n;animation-timing-function:ease-in-out;background-color:initial}html.theme-dark .highlight-wrap-iKO7WU8n .highligh-extra-data-iKO7WU8n{animation-name:payment-highlight-dark-iKO7WU8n}@keyframes payment-highlight-light-iKO7WU8n{38%{background-color:#fff3e0}61%{background-color:#fff3e0}to{background-color:initial}}@keyframes payment-highlight-dark-iKO7WU8n{38%{background-color:#132042}61%{background-color:#132042}to{background-color:initial}}.group-kxBajQCf{border-radius:6px;margin-top:13px}.switcher-kxBajQCf{margin:0;padding:0}.switcher-kxBajQCf.margin-kxBajQCf{margin-top:15px}.tabs-kxBajQCf{-webkit-overflow-scrolling:touch;align-items:center;box-sizing:border-box;display:flex;height:38px;margin-top:10px;overflow-x:scroll;padding:0 5px;scrollbar-width:none}.tabs-kxBajQCf.sb-scrollbar-wrap{display:none}.tabs-kxBajQCf::-webkit-scrollbar{display:none;height:0;width:0}.tabs-kxBajQCf::-webkit-scrollbar-thumb,.tabs-kxBajQCf::-webkit-scrollbar-track{display:none}.tabs-kxBajQCf::-webkit-scrollbar-corner{display:none}.container-jJ28DorJ{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:0 10px}.icon-jJ28DorJ{color:#f23645}.title-jJ28DorJ{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin-top:16px}html.theme-dark .title-jJ28DorJ{color:#fff}.description-jJ28DorJ{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;text-align:center}html.theme-dark .description-jJ28DorJ{color:#fff}.button-jJ28DorJ{margin-top:32px}.card-padding-ErxLIKiI{padding:0 22px}@media screen and (min-width:1024px){.card-padding-ErxLIKiI{padding:0 24px}}.card-ErxLIKiI{background:#fff;box-sizing:border-box;color:#131722;display:flex;flex-direction:column;padding-top:47px;position:relative;text-align:center}html.theme-dark .card-ErxLIKiI{background:#000}.card-ErxLIKiI .button-ErxLIKiI{margin-bottom:12px;margin-top:auto;padding-top:33px;width:100%}.cardLayout-ErxLIKiI{align-items:center;display:flex;flex-direction:column;position:relative;text-align:center}.wrapperFeatures-YtR0Roin{background:#fff;display:flex;padding-bottom:32px;position:relative;text-align:left}html.theme-dark .wrapperFeatures-YtR0Roin{background:#000}.padding-YtR0Roin{flex:0 1 308px;padding-top:2px}@media screen and (min-width:768px){.padding-YtR0Roin{flex:auto}}@media screen and (min-width:1440px){.padding-YtR0Roin{padding-top:0}}.titleFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;margin-bottom:12px;text-align:left}html.theme-dark .titleFeatures-YtR0Roin{color:#fff}@media screen and (min-width:768px){.titleFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-bottom:14px}}.listFeatures-YtR0Roin{column-count:auto;list-style:none;padding-left:14px;text-align:left}.itemFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;align-content:center;color:#434651;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;margin-bottom:8px;position:relative;width:100%}html.theme-dark .itemFeatures-YtR0Roin{color:#b2b5be}@media screen and (min-width:768px){.itemFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}}.itemFeatures-YtR0Roin:last-child{margin-bottom:0}.itemFeatures-YtR0Roin:before{background:#d1d4dc;border-radius:50%;content:"";height:3px;left:-13px;position:absolute;top:8px;width:3px}html.theme-dark .itemFeatures-YtR0Roin:before{background:#434651}@media screen and (min-width:768px){.itemFeatures-YtR0Roin:before{top:12px}}.tooltipIcon-YtR0Roin{align-items:center;color:#131722;display:inline-flex;height:22px;width:22px}html.theme-dark .tooltipIcon-YtR0Roin{color:#d1d4dc}.tooltipTitle-YtR0Roin{display:inline-flex;margin-left:2px}.offerPrice-wCGVDggm{display:flex;height:65px;justify-content:center}.offerPrice-wCGVDggm .measure-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;justify-content:flex-end;line-height:18px;margin:0 0 10px 7px;position:relative}.measure-wCGVDggm{color:#787b86;font-size:12px;margin-left:-3px;text-align:left}html.theme-dark .measure-wCGVDggm{color:#787b86}@media screen and (min-width:1440px){.measure-wCGVDggm{margin-left:0}}.mainPrice-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#131722;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-decoration:none}html.theme-dark .mainPrice-wCGVDggm{color:#fff}@media screen and (min-width:768px){.mainPrice-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:48px;font-style:normal;font-weight:600;line-height:56px}}.color-red-wCGVDggm .mainPrice-wCGVDggm,.color-red-wCGVDggm .mainPriceLetter-wCGVDggm,.color-red-wCGVDggm .sup-wCGVDggm{color:#f23645}html.theme-dark .color-red-wCGVDggm .mainPrice-wCGVDggm,html.theme-dark .color-red-wCGVDggm .mainPriceLetter-wCGVDggm,html.theme-dark .color-red-wCGVDggm .sup-wCGVDggm{color:#b22833}.color-green-wCGVDggm .mainPrice-wCGVDggm,.color-green-wCGVDggm .mainPriceLetter-wCGVDggm,.color-green-wCGVDggm .measure-wCGVDggm,html.theme-dark .color-green-wCGVDggm .mainPrice-wCGVDggm,html.theme-dark .color-green-wCGVDggm .mainPriceLetter-wCGVDggm,html.theme-dark .color-green-wCGVDggm .measure-wCGVDggm{color:#24b29b}.sup-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:28px;margin:10px 4px 0 0;position:relative}html.theme-dark .sup-wCGVDggm{color:#fff}@media screen and (min-width:768px){.sup-wCGVDggm{margin:10px 2px 0 0}}@media screen and (min-width:1440px){.sup-wCGVDggm{margin:10px 3px 0 0}}.button-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;height:40px;line-height:24px}@media screen and (min-width:1024px){.button-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;height:56px;line-height:24px}}.link-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;transition:color .35s ease}html.theme-dark .link-oKQ8GSG1{color:#2962ff}.link-oKQ8GSG1:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-oKQ8GSG1:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-oKQ8GSG1:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-oKQ8GSG1:hover{fill:#1e53e5;color:#1e53e5}}.link-oKQ8GSG1:focus{outline:auto}.link-oKQ8GSG1:focus-visible{outline:auto}.link-oKQ8GSG1:focus:not(:focus-visible){outline:none}.link-oKQ8GSG1:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-oKQ8GSG1:active{fill:#1848cc;color:#1848cc}.info-icon-PvYAVz99{color:#131722;height:19px;width:18px}html.theme-dark .info-icon-PvYAVz99{color:#fff}.info-icon-wrap-PvYAVz99{align-items:center;display:flex;margin-left:6px}.label-PvYAVz99{font-feature-settings:"tnum" on,"lnum" on;align-self:center;background:#08998126;border-radius:4px;color:#131722;display:flex;flex-flow:row nowrap;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;overflow:hidden;padding:6px 10px;position:relative}html.theme-dark .label-PvYAVz99{color:#fff}@media screen and (min-width:768px){.label-PvYAVz99{margin-top:5px}}html.theme-dark .label-PvYAVz99{background:#08998140}.tooltip-wrap-PvYAVz99{height:80%;left:-20px;position:absolute;top:10%;width:200%}.cardTitle-omURZg64{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:600;line-height:36px;text-align:center}html.theme-dark .cardTitle-omURZg64{color:#fff}@media screen and (min-width:768px){.cardTitle-omURZg64{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:36px;font-style:normal;font-weight:600;line-height:44px}}.cardDescription-nrU0JU6d{font-feature-settings:"tnum" on,"lnum" on;color:#434651;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;height:45px;line-height:18px;margin-top:6px;padding-bottom:24px}html.theme-dark .cardDescription-nrU0JU6d{color:#b2b5be}@media screen and (min-width:768px){.cardDescription-nrU0JU6d{height:90px}}@media screen and (min-width:1024px){.cardDescription-nrU0JU6d{height:67px}}@media screen and (min-width:768px){.cardDescription-nrU0JU6d{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-top:5px}}.label-HkY0BJBZ{border-radius:4px 4px 0 4px;box-sizing:border-box;color:#fff;position:absolute;text-align:center;z-index:1}html.theme-dark .label-HkY0BJBZ{color:#fff}.label-HkY0BJBZ .icon-HkY0BJBZ{display:flex;height:28px;width:28px}.label-HkY0BJBZ:after{border-bottom:5px solid #0000;border-right:5px solid #0000;bottom:0;content:"";position:absolute;right:0;transform:translateY(9.8px);z-index:1}.label-HkY0BJBZ.discount-HkY0BJBZ{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.label-HkY0BJBZ.discount-HkY0BJBZ,.label-HkY0BJBZ.gift-HkY0BJBZ{padding:4px 12px;right:-13px;top:16px}.label-HkY0BJBZ.no-active-card-HkY0BJBZ{right:-11px}.label-discount-upsell-HkY0BJBZ{background:#b22833}html.theme-dark .label-discount-upsell-HkY0BJBZ{background:#801922}.label-discount-upsell-HkY0BJBZ:after{border-left:5px solid #801922;border-top:5px solid #801922}html.theme-dark .label-discount-upsell-HkY0BJBZ:after{border-left:5px solid #802028;border-top:5px solid #802028}.label-discount--pro-HkY0BJBZ{background:#f7525f}html.theme-dark .label-discount--pro-HkY0BJBZ{background:#cc2f3c}.label-discount--pro-HkY0BJBZ:after{border-left:5px solid #b22833;border-top:5px solid #b22833}html.theme-dark .label-discount--pro-HkY0BJBZ:after{border-left:5px solid #801922;border-top:5px solid #801922}.label-discount--pro_realtime-HkY0BJBZ{background:#f23645}html.theme-dark .label-discount--pro_realtime-HkY0BJBZ{background:#b22833}.label-discount--pro_realtime-HkY0BJBZ:after{border-left:5px solid #991f29;border-top:5px solid #991f29}html.theme-dark .label-discount--pro_realtime-HkY0BJBZ:after{border-left:5px solid #801922;border-top:5px solid #801922}.label-discount--pro_premium-HkY0BJBZ{background:#cc2f3c}html.theme-dark .label-discount--pro_premium-HkY0BJBZ{background:#991f29}.label-discount--pro_premium-HkY0BJBZ:after{border-left:5px solid #801922;border-top:5px solid #801922}html.theme-dark .label-discount--pro_premium-HkY0BJBZ:after{border-left:5px solid #801922;border-top:5px solid #801922}.label-gift--pro-HkY0BJBZ,html.theme-dark .label-gift--pro-HkY0BJBZ{background:#2962ff}.label-gift--pro-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}.label-gift--pro_realtime-HkY0BJBZ,html.theme-dark .label-gift--pro_realtime-HkY0BJBZ{background:#2962ff}.label-gift--pro_realtime-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro_realtime-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}.label-gift--pro_premium-HkY0BJBZ,html.theme-dark .label-gift--pro_premium-HkY0BJBZ{background:#2962ff}.label-gift--pro_premium-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro_premium-HkY0BJBZ:after{border-left:5px solid #1848cc;border-top:5px solid #1848cc}.cards-wrap-QQXm7yVo{margin:32px auto 0;max-width:1250px;padding:0}@media screen and (min-width:768px){.cards-wrap-QQXm7yVo{padding:0 19px}}@media screen and (min-width:1024px){.cards-wrap-QQXm7yVo{padding:0 30px}}@media screen and (min-width:1280px){.cards-wrap-QQXm7yVo{margin-top:40px}}@media screen and (min-width:1440px){.cards-wrap-QQXm7yVo{margin-top:48px;max-width:1235px}}.cards-QQXm7yVo{-webkit-overflow-scrolling:touch;overflow:scroll;scrollbar-width:none}.cards-QQXm7yVo.sb-scrollbar-wrap{display:none}.cards-QQXm7yVo::-webkit-scrollbar{display:none;height:0;width:0}.cards-QQXm7yVo::-webkit-scrollbar-thumb,.cards-QQXm7yVo::-webkit-scrollbar-track{display:none}.cards-QQXm7yVo::-webkit-scrollbar-corner{display:none}@media screen and (min-width:768px){.cards-QQXm7yVo{overflow:initial}}.cards-scroll-wrap-QQXm7yVo{display:grid;grid-template-areas:"top-0 top-1 top-2" "bottom-0 bottom-1 bottom-2";grid-template-columns:repeat(3,1fr);justify-content:flex-start;min-width:fit-content;padding:0 20px;position:relative}@media screen and (min-width:768px){.cards-scroll-wrap-QQXm7yVo{justify-content:center;padding:0}}.secondary-action-sizes-QQXm7yVo{margin-bottom:9px;min-height:38px}@media screen and (min-width:768px){.secondary-action-sizes-QQXm7yVo{min-height:52px}}@media screen and (min-width:1024px){.secondary-action-sizes-QQXm7yVo{margin-bottom:0;min-height:62px}}@media screen and (min-width:1440px){.secondary-action-sizes-QQXm7yVo{min-height:64px}}.has-active-QQXm7yVo .bottom-0-QQXm7yVo.is-active-QQXm7yVo~.bottom-1-QQXm7yVo,.has-active-QQXm7yVo .top-0-QQXm7yVo.is-active-QQXm7yVo~.top-1-QQXm7yVo{border-left-color:#2962ff;border-left-width:3px}html.theme-dark .has-active-QQXm7yVo .bottom-0-QQXm7yVo.is-active-QQXm7yVo~.bottom-1-QQXm7yVo,html.theme-dark .has-active-QQXm7yVo .top-0-QQXm7yVo.is-active-QQXm7yVo~.top-1-QQXm7yVo{border-left-color:#2962ff}.has-active-QQXm7yVo .bottom-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.bottom-1-QQXm7yVo,.has-active-QQXm7yVo .top-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.top-1-QQXm7yVo{border-right-color:#2962ff;border-right-width:3px}html.theme-dark .has-active-QQXm7yVo .bottom-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.bottom-1-QQXm7yVo,html.theme-dark .has-active-QQXm7yVo .top-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.top-1-QQXm7yVo{border-right-color:#2962ff}.has-active-QQXm7yVo .is-active-QQXm7yVo{border-color:#2962ff;border-width:3px}html.theme-dark .has-active-QQXm7yVo .is-active-QQXm7yVo{border-color:#2962ff}.top-QQXm7yVo{border:1px #e0e3eb;border-style:solid solid none;min-width:260px}html.theme-dark .top-QQXm7yVo{border-color:#2a2e39}@media screen and (min-width:768px){.top-QQXm7yVo{min-width:242px}}.top-0-QQXm7yVo{border-right-style:none;border-top-left-radius:12px;grid-area:top-0}.top-1-QQXm7yVo{grid-area:top-1}.top-2-QQXm7yVo{border-left-style:none;border-top-right-radius:12px;grid-area:top-2}.bottom-QQXm7yVo{border:1px solid #e0e3eb;border-top-style:none;min-width:260px}html.theme-dark .bottom-QQXm7yVo{border-color:#2a2e39}@media screen and (min-width:768px){.bottom-QQXm7yVo{min-width:242px}}.bottom-0-QQXm7yVo{border-bottom-left-radius:12px;border-right-style:none;grid-area:bottom-0}@media screen and (min-width:768px){.bottom-0-QQXm7yVo{border-bottom-left-radius:0}}.bottom-1-QQXm7yVo{grid-area:bottom-1}.bottom-2-QQXm7yVo{border-bottom-right-radius:12px;border-left-style:none;grid-area:bottom-2}@media screen and (min-width:768px){.bottom-2-QQXm7yVo{border-bottom-right-radius:0}}.skipTrial-7OCYXd1m{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .skipTrial-7OCYXd1m{color:#fff}.skipTrial-7OCYXd1m .link-7OCYXd1m{color:#2962ff;transition:color .35s ease}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m{color:#2962ff}.skipTrial-7OCYXd1m .link-7OCYXd1m:visited{fill:#2962ff;color:#2962ff}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.skipTrial-7OCYXd1m .link-7OCYXd1m:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:hover{fill:#1e53e5;color:#1e53e5}}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus{outline:auto}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus-visible{outline:auto}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus:not(:focus-visible){outline:none}.skipTrial-7OCYXd1m .link-7OCYXd1m:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:active{fill:#1848cc;color:#1848cc}.change-trial-ntk0pgwQ{color:#2962ff;cursor:pointer;font-size:14px;font-style:normal;font-weight:400;line-height:21px;transition:color .35s ease}html.theme-dark .change-trial-ntk0pgwQ{color:#2962ff}.change-trial-ntk0pgwQ:visited{fill:#2962ff;color:#2962ff}html.theme-dark .change-trial-ntk0pgwQ:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.change-trial-ntk0pgwQ:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .change-trial-ntk0pgwQ:hover{fill:#1e53e5;color:#1e53e5}}.change-trial-ntk0pgwQ:focus{outline:auto}.change-trial-ntk0pgwQ:focus-visible{outline:auto}.change-trial-ntk0pgwQ:focus:not(:focus-visible){outline:none}.change-trial-ntk0pgwQ:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .change-trial-ntk0pgwQ:active{fill:#1848cc;color:#1848cc}.current-trial-ntk0pgwQ{color:#131722;font-size:14px;font-style:normal;font-weight:400;line-height:21px}html.theme-dark .current-trial-ntk0pgwQ{color:#d1d4dc}.description-d5Tocwga{color:#131722;font-size:14px;font-style:normal;font-weight:400;line-height:21px}html.theme-dark .description-d5Tocwga{color:#fff}.link-d5Tocwga{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-d5Tocwga{color:#2962ff}.link-d5Tocwga:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-d5Tocwga:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-d5Tocwga:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-d5Tocwga:hover{fill:#1e53e5;color:#1e53e5}}.link-d5Tocwga:focus{outline:auto}.link-d5Tocwga:focus-visible{outline:auto}.link-d5Tocwga:focus:not(:focus-visible){outline:none}.link-d5Tocwga:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-d5Tocwga:active{fill:#1848cc;color:#1848cc}.container-5CQYJZ9F{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#2962ff;cursor:pointer;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;grid-column:1/4;justify-content:flex-start;line-height:24px;padding:20px;position:relative;transition:color .35s ease;width:100%}html.theme-dark .container-5CQYJZ9F{color:#2962ff}.container-5CQYJZ9F:visited{fill:#2962ff;color:#2962ff}html.theme-dark .container-5CQYJZ9F:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.container-5CQYJZ9F:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .container-5CQYJZ9F:hover{fill:#1e53e5;color:#1e53e5}}.container-5CQYJZ9F:focus{outline:auto}.container-5CQYJZ9F:focus-visible{outline:auto}.container-5CQYJZ9F:focus:not(:focus-visible){outline:none}.container-5CQYJZ9F:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .container-5CQYJZ9F:active{fill:#1848cc;color:#1848cc}@media screen and (min-width:568px){.container-5CQYJZ9F{padding:22px 20px}}@media screen and (min-width:768px){.container-5CQYJZ9F{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;justify-content:center;line-height:24px;padding:16px 0}}.text-5CQYJZ9F{margin-right:auto}@media screen and (min-width:768px){.text-5CQYJZ9F{margin-right:0}}.icon-5CQYJZ9F{align-items:center;display:flex;height:26px;margin-left:17px;width:20px}@media screen and (min-width:768px){.icon-5CQYJZ9F{margin-left:5px}}.icon-mrROUtv5{color:#2962ff;transition:color .35s ease}html.theme-dark .icon-mrROUtv5{color:#2962ff}.icon-mrROUtv5:visited{fill:#2962ff;color:#2962ff}html.theme-dark .icon-mrROUtv5:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.icon-mrROUtv5:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .icon-mrROUtv5:hover{fill:#1e53e5;color:#1e53e5}}.icon-mrROUtv5:focus{outline:auto}.icon-mrROUtv5:focus-visible{outline:auto}.icon-mrROUtv5:focus:not(:focus-visible){outline:none}.icon-mrROUtv5:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .icon-mrROUtv5:active{fill:#1848cc;color:#1848cc}.under-cards-5bi7tudm{background:#fff;border-bottom:1px solid #e0e3eb;border-left:1px solid #e0e3eb;border-radius:0 0 12px 12px;border-right:1px solid #e0e3eb;border-top-color:#e0e3eb;border-top-width:1px;display:flex;position:relative}html.theme-dark .under-cards-5bi7tudm{background:#131722;border-color:#2a2e39}.under-cards-5bi7tudm,html.theme-dark .under-cards-5bi7tudm{background-color:initial;border-color:#0000}@media screen and (min-width:768px){.under-cards-5bi7tudm,html.theme-dark .under-cards-5bi7tudm{border-color:#e0e3eb}html.theme-dark .under-cards-5bi7tudm,html.theme-dark html.theme-dark .under-cards-5bi7tudm{border-color:#2a2e39}}.light-button-1f5iHRsw{align-items:center;background-color:var(--ui-lib-light-button-color-bg,var(--ui-lib-light-button-default-color-bg));border:1px solid var(--ui-lib-light-button-color-border,var(--ui-lib-light-button-default-color-border));border-radius:8px;box-sizing:border-box;color:var(--ui-lib-light-button-color-content,var(--ui-lib-light-button-default-color-content));display:inline-flex;justify-content:center;max-width:100%;min-width:40px;outline:none;overflow:visible;position:relative}.light-button-1f5iHRsw:focus{outline:none}.light-button-1f5iHRsw:focus-visible{outline:none}.light-button-1f5iHRsw:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.light-button-1f5iHRsw:focus:after{display:block}.light-button-1f5iHRsw:focus-visible:after{display:block}.light-button-1f5iHRsw:focus:not(:focus-visible):after{display:none}.light-button-1f5iHRsw:after{border-radius:12px}.light-button-1f5iHRsw.disable-cursor-pointer-1f5iHRsw{cursor:default}.light-button-1f5iHRsw .content-1f5iHRsw{align-items:center;align-self:stretch;display:inline-flex;overflow:hidden;white-space:nowrap}.light-button-1f5iHRsw .ellipsis-container-1f5iHRsw{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.light-button-1f5iHRsw .icon-1f5iHRsw{display:inline-flex;flex-shrink:0;max-height:28px;max-width:28px;min-height:18px;min-width:18px}.light-button-1f5iHRsw .content-1f5iHRsw:not(:last-child),.light-button-1f5iHRsw .icon-1f5iHRsw:not(:last-child){margin-inline-end:4px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#06806bcc}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#06806bcc}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#f23645cc}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#b22833}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#f23645cc}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#b22833}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#434651;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#bbd9fb;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#143a87;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#434651;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#bbd9fb;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#143a87;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#0000;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#0000;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#06806bcc}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#06806bcc}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#f23645cc}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#f23645}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#f23645cc}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#f23645}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(180deg)}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.group-7eb3l0ph{display:inline-grid;grid-template-columns:repeat(var(--ui-lib-control-group-cols),minmax(0,auto));grid-template-rows:repeat(var(--ui-lib-control-group-rows),minmax(0,auto))}.light-button-group-7mI4HslZ{border:1px solid #e0e3eb;border-radius:12px;gap:4px;padding:3px}html.theme-dark .light-button-group-7mI4HslZ{border:1px solid #434651}.label-GH2s1rfd{font-feature-settings:"tnum" on,"lnum" on;background:#08998126;border-radius:8px;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px;line-height:18px;padding:8px 16px;text-align:center}html.theme-dark .label-GH2s1rfd{background:#08998140;color:#fff}@media screen and (min-width:568px){.label-GH2s1rfd{max-width:250px}}@media screen and (min-width:768px){.label-GH2s1rfd{align-items:center;display:flex;max-width:none;padding:10px 16px}}.container-13Vfp93l{align-items:center;display:flex;flex-direction:column;margin-top:16px;padding:0 20px}@media screen and (min-width:1280px){.container-13Vfp93l{margin-top:24px}}.switcher-13Vfp93l{margin-bottom:8px;position:relative}.arrow-curve-13Vfp93l{position:absolute;right:-48px;top:4px}@media screen and (min-width:768px){.arrow-curve-13Vfp93l{right:-52px}}.emoji-13Vfp93l{font-size:20px;line-height:22px;vertical-align:top}.nowrap-13Vfp93l{white-space:nowrap}@media screen and (min-width:568px){.nowrap-13Vfp93l{display:initial}}@media screen and (min-width:768px){.nowrap-13Vfp93l{align-items:center;display:flex}}.title-vjlx3nMq{font-size:48px;font-style:normal;font-weight:600;line-height:56px;margin-bottom:16px;text-align:center}@media screen and (max-width:767px){.title-vjlx3nMq{font-size:32px;font-style:normal;font-weight:600;line-height:40px}}@media screen and (min-width:1280px){.title-vjlx3nMq{margin-bottom:24px}}.secondary-vjlx3nMq{font-size:18px;font-style:normal;font-weight:400;line-height:28px;text-align:center}.titleContainer-vjlx3nMq{color:#131722;padding:0 8px 48px}@media screen and (max-width:1530px){.titleContainer-vjlx3nMq{padding-bottom:32px}}@media screen and (max-width:767px){.titleContainer-vjlx3nMq{padding-bottom:24px}}.title-vrUcGhJD{margin:0 auto;max-width:800px;padding:0 20px}@media screen and (min-width:1280px){.title-vrUcGhJD{margin-bottom:0}}.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:EuclidCircularSemibold,sans-serif;font-size:40px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:40px;margin-bottom:0}html.theme-dark .title-vrUcGhJD h1{color:#fff}@media screen and (min-width:768px){.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;font-family:EuclidCircularSemibold,sans-serif;font-size:56px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:56px}}@media screen and (min-width:1280px){.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;font-family:EuclidCircularSemibold,sans-serif;font-size:80px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:80px}}.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:24px}html.theme-dark .secondary-vrUcGhJD{color:#d1d4dc}@media screen and (min-width:768px){.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:400;line-height:32px}}@media screen and (min-width:1280px){.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:400;line-height:40px}}@media screen and (min-width:1440px){.secondary-vrUcGhJD{margin-bottom:23px}}.link-vrUcGhJD{color:#2962ff;transition:color .35s ease}html.theme-dark .link-vrUcGhJD{color:#2962ff}.link-vrUcGhJD:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-vrUcGhJD:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-vrUcGhJD:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-vrUcGhJD:hover{fill:#1e53e5;color:#1e53e5}}.link-vrUcGhJD:focus{outline:auto}.link-vrUcGhJD:focus-visible{outline:auto}.link-vrUcGhJD:focus:not(:focus-visible){outline:none}.link-vrUcGhJD:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-vrUcGhJD:active{fill:#1848cc;color:#1848cc}.title-X4q9jvDs{font-size:36px;font-style:normal;font-weight:600;line-height:44px;margin:0 20px}@media screen and (max-width:767px){.title-X4q9jvDs{font-size:28px;font-style:normal;font-weight:600;line-height:36px}}.secondary-X4q9jvDs{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-top:16px}@media screen and (max-width:767px){.secondary-X4q9jvDs{margin-top:12px}}.titleContainer-X4q9jvDs{color:#131722;margin-bottom:48px;text-align:center}html.theme-dark .titleContainer-X4q9jvDs{color:#d1d4dc}@media screen and (max-width:1530px){.titleContainer-X4q9jvDs{margin-bottom:32px}}@media screen and (max-width:767px){.titleContainer-X4q9jvDs{margin-bottom:24px}}.cards-xDk5tnZJ{margin-bottom:80px;max-width:min(100vw,1235px)}.container-xDk5tnZJ{display:grid;flex-direction:column;justify-content:center}@media screen and (min-width:1024px){.container-xDk5tnZJ{margin:20px;width:980px}}@media screen and (min-width:1480px){.container-xDk5tnZJ{width:1480px}}.vertical-alignment-height-xDk5tnZJ{max-height:100%}.block-wrap-xDk5tnZJ{display:block}@media screen and (max-width:1530px){.cards-xDk5tnZJ{margin-bottom:72px}}@media screen and (max-width:767px){.cards-xDk5tnZJ{margin-bottom:56px}}.termsCheckboxesContainer-IxYXs9Hp{grid-row-gap:20px;display:grid;grid-template-columns:100%;grid-template-rows:auto;margin-bottom:20px}.infoIcon-IxYXs9Hp,.nonProLable-IxYXs9Hp{align-items:center;display:flex}.infoIcon-IxYXs9Hp{margin-left:4px}.infoIcon-IxYXs9Hp svg{height:18px;width:18px}.swithcherContainer-OB6hG3Dv{margin:0}.swithcherContainer-RrUqgK2t{margin:0;padding:0}.trialSubtitle-RrUqgK2t{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:8px 0 12px}.changeTrialTerms-RrUqgK2t{margin-top:32px}.billing-cycle-item-1JAaqBgk{grid-gap:4px 12px;cursor:pointer;display:grid;grid-template-columns:min-content 1fr max-content;margin:0 -6px;padding:16px 6px}@media screen and (min-width:1024px){.billing-cycle-item-1JAaqBgk{grid-gap:4px 9px;margin:0;padding:16px 16px 16px 0}}.billing-cycle-item-1JAaqBgk:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .billing-cycle-item-1JAaqBgk:not(:last-child){border-bottom:1px solid #434651}.billing-cycle-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}html.theme-dark .billing-cycle-1JAaqBgk{color:#fff}.description-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:2/3;line-height:18px;margin-bottom:6px}html.theme-dark .description-1JAaqBgk{color:#787b86}.highlight-1JAaqBgk{background-color:#fff3e0;border-radius:6px;padding:8px 12px}html.theme-dark .highlight-1JAaqBgk{background-color:#132042}@media screen and (min-width:1280px){.highlight-1JAaqBgk{width:max-content}}.highlight-1JAaqBgk>*{color:#787b86}html.theme-dark .highlight-1JAaqBgk>*{color:#d1d4dc}.price-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;grid-column:3/4;grid-row:1/2;line-height:24px;text-align:right}html.theme-dark .price-1JAaqBgk{color:#fff}.full-price-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:3/4;line-height:18px;text-align:right}html.theme-dark .full-price-1JAaqBgk{color:#787b86}.disabled-1JAaqBgk{cursor:auto}.disabled-1JAaqBgk .billing-cycle-1JAaqBgk,.disabled-1JAaqBgk .description-1JAaqBgk,.disabled-1JAaqBgk .full-price-1JAaqBgk,.disabled-1JAaqBgk .price-1JAaqBgk{opacity:.4}.billing-cycles-qU0k2PxV{margin-top:16px}.button-c4OTPHT1{margin-top:32px}.vertical-alignment-height-z3YnaYkd{max-height:100%}.wrapper-z3YnaYkd{align-items:center;display:flex;flex-direction:column;padding-top:20px}@media screen and (min-width:1280px){.wrapper-z3YnaYkd{padding-top:0}}.container-z3YnaYkd{align-items:center;display:grid;gap:40px;grid-template-columns:minmax(auto,560px);justify-content:center;margin:0 20px}@media screen and (min-width:768px){.container-z3YnaYkd{grid-template-columns:560px}}@media screen and (min-width:1280px){.container-z3YnaYkd{grid-template-columns:repeat(2,560px)}}.icon-z3YnaYkd{color:#089981}.icon-z3YnaYkd svg{height:44px;width:44px}.title-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin-top:16px;text-align:center}html.theme-dark .title-z3YnaYkd{color:#fff}.cheque-z3YnaYkd{background-color:#f8f9fd;border-radius:16px;padding:24px}html.theme-dark .cheque-z3YnaYkd{background-color:#131722}.highlightBlock-z3YnaYkd{grid-column:1;justify-self:end;margin-top:20px;padding:20px}@media screen and (min-width:1280px){.highlightBlock-z3YnaYkd{grid-column:1/3;width:520px}}.grid-z3YnaYkd{display:grid}.flex-z3YnaYkd{align-content:center;align-items:center;display:flex;justify-content:space-between}.paymentInfo-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.description-z3YnaYkd,.paymentInfo-z3YnaYkd{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.description-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-size:11px;font-style:normal;font-weight:400;letter-spacing:.4px;line-height:16px;margin-top:20px;padding-bottom:5px;text-transform:uppercase}.descriptionBlock-z3YnaYkd{max-width:730px;text-align:center}.border-z3YnaYkd{border-top:1px solid #e0e3eb}html.theme-dark .border-z3YnaYkd{border-top:1px solid #434651}.paddingRow-z3YnaYkd{grid-gap:24px;grid-template-columns:1fr max-content;margin-top:0;padding:10px 0}.paddingRow-z3YnaYkd:first-child{padding:0 0 10px}.paddingRow-z3YnaYkd:last-child{padding:10px 0 0}.trialPaddingRow-z3YnaYkd{padding:0 0 20px}.proPlanPaddingRow-z3YnaYkd{padding:20px 0}.trialFirstPaddingRow-z3YnaYkd{padding-bottom:24px}.exchangesListWrapper-z3YnaYkd{padding:20px 0}.productText-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}html.theme-dark .productText-z3YnaYkd{color:#fff}.wrapperTotalCost-z3YnaYkd{padding-top:20px}.total-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:30px}html.theme-dark .total-z3YnaYkd{color:#fff}.totalCost-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:20px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .totalCost-z3YnaYkd{color:#fff}.button-z3YnaYkd{margin-top:32px}.tax-z3YnaYkd{padding:20px 0}.trial-tax-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:2px}html.theme-dark .trial-tax-z3YnaYkd{color:#787b86}.product-trial-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.cost-trial-z3YnaYkd,.product-trial-z3YnaYkd{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.cost-trial-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px}.agreement-switch-xGfsY7aB{margin-top:32px}.legend-xGfsY7aB{font-weight:700}.error-wrapper-xGfsY7aB{align-items:center;display:flex;height:28px;margin-top:12px}.error-icon-xGfsY7aB{display:flex;margin-left:auto}.switch-group-xGfsY7aB{grid-gap:20px;display:grid;grid-template-columns:min-content min-content}@media screen and (max-width:1530px){.agreement-switch-xGfsY7aB{margin-top:24px}}@media screen and (max-width:767px){.agreement-switch-xGfsY7aB{margin-top:16px}}.checkbox-PDtI2r2Z{color:#131722}.error-wrapper-PDtI2r2Z{align-items:center;display:flex;height:28px}.error-icon-PDtI2r2Z{display:flex;margin-left:auto}.occupation-GVt2ue8G{grid-gap:16px;display:grid;margin-top:16px}.nothing-selected-GVt2ue8G{color:#a3a6af;opacity:.6}html.theme-dark .nothing-selected-GVt2ue8G{color:#50535e}.occupation-menu-GVt2ue8G .nothing-selected-GVt2ue8G{padding-left:12px}.subscribers-inputs-okfUHTUP{grid-gap:16px;display:grid;grid-template-columns:1fr;margin-top:32px}.subscribers-inputs-okfUHTUP .dropdown-okfUHTUP{left:auto;right:-5px}@media screen and (min-width:768px){.subscribers-inputs-okfUHTUP{grid-template-columns:1fr 1fr}}.country-select-container-okfUHTUP{position:relative}.page-RRWggudg{background:linear-gradient(62.99deg,#5b9cf6,#2962ff 50%,#1848cc)}@media screen and (min-width:768px){.page-RRWggudg{padding:80px 0}}.sheet-RRWggudg{background:#fff;border-radius:4px;box-sizing:border-box;color:#131722;font-size:16px;line-height:24px;margin:0 auto;max-width:760px;padding:16px 16px 32px;position:relative}html.theme-dark .sheet-RRWggudg{background:#131722;color:#d1d4dc}@media screen and (min-width:768px){.sheet-RRWggudg{padding:32px 32px 68px}}.page-title-RRWggudg{font-size:24px;font-weight:700;line-height:32px}.page-sub-title-RRWggudg{margin-top:8px}.exchange-agreement-description-RRWggudg{margin-top:32px}.exchange-file-link-RRWggudg{color:#2962ff;display:block;margin-top:12px;transition:color .35s ease}html.theme-dark .exchange-file-link-RRWggudg{color:#2962ff}.exchange-file-link-RRWggudg:visited{fill:#2962ff;color:#2962ff}html.theme-dark .exchange-file-link-RRWggudg:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.exchange-file-link-RRWggudg:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .exchange-file-link-RRWggudg:hover{fill:#1e53e5;color:#1e53e5}}.exchange-file-link-RRWggudg:focus{outline:auto}.exchange-file-link-RRWggudg:focus-visible{outline:auto}.exchange-file-link-RRWggudg:focus:not(:focus-visible){outline:none}.exchange-file-link-RRWggudg:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .exchange-file-link-RRWggudg:active{fill:#1848cc;color:#1848cc}.section-title-RRWggudg{font-size:20px;line-height:28px;margin-top:48px}.section-terms-description-RRWggudg{margin-top:12px}.questions-title-RRWggudg{font-size:18px;font-weight:700;line-height:26px;margin-top:32px}.questions-RRWggudg{padding-left:20px}.question-RRWggudg{margin-top:16px}.actions-RRWggudg{grid-gap:16px;display:grid;grid-auto-flow:row;margin-top:48px}@media screen and (min-width:768px){.actions-RRWggudg{grid-auto-flow:column;justify-content:flex-end}}.checkbox-margin-RRWggudg{margin-top:32px}.accept-terms-checkbox-margin-RRWggudg{margin-top:12px}@media screen and (max-width:1530px){.exchange-agreement-description-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.exchange-agreement-description-RRWggudg{margin-top:16px}}@media screen and (max-width:1530px){.section-title-RRWggudg{margin-top:32px}}@media screen and (max-width:767px){.section-title-RRWggudg{margin-top:24px}}@media screen and (max-width:1530px){.questions-title-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.questions-title-RRWggudg{margin-top:16px}}@media screen and (max-width:1530px){.actions-RRWggudg{margin-top:32px}}@media screen and (max-width:767px){.actions-RRWggudg{margin-top:24px}}@media screen and (max-width:1530px){.checkbox-margin-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.checkbox-margin-RRWggudg{margin-top:16px}}.container-gg7uxeBC{margin:0 auto;max-width:760px;padding:32px 32px 68px}@media screen and (max-width:767px){.container-gg7uxeBC{margin:0}}.container-XzdX3itL{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center}.icon-XzdX3itL{color:#42bda8}html.theme-dark .icon-XzdX3itL{color:#089981}.title-XzdX3itL{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:28px;margin-top:20px}@media screen and (max-width:479px){.title-XzdX3itL{margin-top:5px;text-align:center}}.descriptionBlock-XzdX3itL{margin-top:30px;max-width:730px;text-align:center} \ No newline at end of file diff --git a/charting_library/bundles/8948.b703bd84d23db0af187d.rtl.css b/charting_library/bundles/8948.b703bd84d23db0af187d.rtl.css new file mode 100644 index 00000000..ea33e2c6 --- /dev/null +++ b/charting_library/bundles/8948.b703bd84d23db0af187d.rtl.css @@ -0,0 +1 @@ +.text-button-jmRlvG08{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;display:inline-flex;justify-content:center;max-width:100%;outline:none;overflow:visible;padding:0;position:relative}.text-button-jmRlvG08:focus{outline:none}.text-button-jmRlvG08:focus-visible{outline:none}.text-button-jmRlvG08:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 4px);pointer-events:none;position:absolute;right:-2px;top:-2px;width:calc(100% + 4px);z-index:1}.text-button-jmRlvG08:focus:after{display:block}.text-button-jmRlvG08:focus-visible:after{display:block}.text-button-jmRlvG08:focus:not(:focus-visible):after{display:none}.text-button-jmRlvG08:after{border-color:#2962ffcc;border-radius:8px}.text-button-jmRlvG08 .content-jmRlvG08{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:0}.text-button-brand-small-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .text-button-brand-small-jmRlvG08{color:#2962ff}.text-button-brand-small-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 24px)}.text-button-brand-small-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-8px;width:calc(100% + 16px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-8px;top:-8px;width:calc(100% + 20px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-4px;width:calc(100% + 12px)}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 20px)}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-4px;position:absolute;right:-8px;width:calc(100% + 12px)}.text-button-brand-small-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:4px;z-index:0}.text-button-brand-small-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:2px;z-index:0}@media (any-hover:hover){.text-button-brand-small-jmRlvG08:hover,html.theme-dark .text-button-brand-small-jmRlvG08:hover{color:#2962ff}.text-button-brand-small-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-small-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-small-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-small-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-small-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-small-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-small-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-small-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-small-jmRlvG08:disabled{color:#5d606b}.text-button-brand-small-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-brand-medium-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-brand-medium-jmRlvG08{color:#2962ff}.text-button-brand-medium-jmRlvG08:after{height:calc(100% + 16px);right:-14px;top:-8px;width:calc(100% + 28px)}.text-button-brand-medium-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-10px;width:calc(100% + 20px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-10px;top:-8px;width:calc(100% + 24px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-6px;width:calc(100% + 16px)}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-14px;top:-8px;width:calc(100% + 24px)}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-6px;position:absolute;right:-10px;width:calc(100% + 16px)}.text-button-brand-medium-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:6px;z-index:0}.text-button-brand-medium-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:4px;z-index:0}@media (any-hover:hover){.text-button-brand-medium-jmRlvG08:hover,html.theme-dark .text-button-brand-medium-jmRlvG08:hover{color:#2962ff}.text-button-brand-medium-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-medium-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-medium-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-medium-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-medium-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-medium-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-medium-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-medium-jmRlvG08:disabled{color:#5d606b}.text-button-brand-medium-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-brand-large-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-brand-large-jmRlvG08{color:#2962ff}.text-button-brand-large-jmRlvG08:after{height:calc(100% + 16px);right:-16px;top:-8px;width:calc(100% + 32px)}.text-button-brand-large-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-12px;width:calc(100% + 24px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 28px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-8px;width:calc(100% + 20px)}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-16px;top:-8px;width:calc(100% + 28px)}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-12px;width:calc(100% + 20px)}.text-button-brand-large-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:8px;z-index:0}.text-button-brand-large-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:6px;z-index:0}@media (any-hover:hover){.text-button-brand-large-jmRlvG08:hover,html.theme-dark .text-button-brand-large-jmRlvG08:hover{color:#2962ff}.text-button-brand-large-jmRlvG08:hover .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-large-jmRlvG08:hover .background-jmRlvG08{background:#132042}}.text-button-brand-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-brand-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-brand-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-brand-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-brand-large-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-brand-large-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-brand-large-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-brand-large-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-brand-large-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-brand-large-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-brand-large-jmRlvG08:disabled{color:#5d606b}.text-button-brand-large-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-small-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .text-button-gray-small-jmRlvG08{color:#d1d4dc}.text-button-gray-small-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 24px)}.text-button-gray-small-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-8px;width:calc(100% + 16px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-8px;top:-8px;width:calc(100% + 20px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-4px;width:calc(100% + 12px)}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 20px)}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-4px;position:absolute;right:-8px;width:calc(100% + 12px)}.text-button-gray-small-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:4px;z-index:0}.text-button-gray-small-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:2px;z-index:0}@media (any-hover:hover){.text-button-gray-small-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-small-jmRlvG08:hover{color:#fff}.text-button-gray-small-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-small-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-small-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-small-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-small-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-small-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-small-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-small-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-small-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-small-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-small-jmRlvG08:disabled{color:#5d606b}.text-button-gray-small-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-medium-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-gray-medium-jmRlvG08{color:#d1d4dc}.text-button-gray-medium-jmRlvG08:after{height:calc(100% + 16px);right:-14px;top:-8px;width:calc(100% + 28px)}.text-button-gray-medium-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-10px;width:calc(100% + 20px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-10px;top:-8px;width:calc(100% + 24px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-10px;position:absolute;right:-6px;width:calc(100% + 16px)}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-14px;top:-8px;width:calc(100% + 24px)}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-6px;position:absolute;right:-10px;width:calc(100% + 16px)}.text-button-gray-medium-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:6px;z-index:0}.text-button-gray-medium-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:4px;z-index:0}@media (any-hover:hover){.text-button-gray-medium-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-medium-jmRlvG08:hover{color:#fff}.text-button-gray-medium-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-medium-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-medium-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-medium-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-medium-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-medium-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-medium-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-medium-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-medium-jmRlvG08:disabled{color:#5d606b}.text-button-gray-medium-jmRlvG08:disabled .background-jmRlvG08{display:none}.text-button-gray-large-jmRlvG08{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .text-button-gray-large-jmRlvG08{color:#d1d4dc}.text-button-gray-large-jmRlvG08:after{height:calc(100% + 16px);right:-16px;top:-8px;width:calc(100% + 32px)}.text-button-gray-large-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-12px;width:calc(100% + 24px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08:after{height:calc(100% + 16px);right:-12px;top:-8px;width:calc(100% + 28px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-12px;position:absolute;right:-8px;width:calc(100% + 20px)}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08:after{height:calc(100% + 16px);right:-16px;top:-8px;width:calc(100% + 28px)}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08 .background-jmRlvG08{background:#0000;border-radius:4px;box-sizing:border-box;display:none;height:calc(100% + 8px);left:-8px;position:absolute;right:-12px;width:calc(100% + 20px)}.text-button-gray-large-jmRlvG08.with-start-icon-jmRlvG08 .start-icon-jmRlvG08{display:inline-flex;margin-left:8px;z-index:0}.text-button-gray-large-jmRlvG08.with-end-icon-jmRlvG08 .end-icon-jmRlvG08{display:inline-flex;margin-right:6px;z-index:0}@media (any-hover:hover){.text-button-gray-large-jmRlvG08:hover{color:#131722}html.theme-dark .text-button-gray-large-jmRlvG08:hover{color:#fff}.text-button-gray-large-jmRlvG08:hover .background-jmRlvG08{background:#f8f9fd;display:block}html.theme-dark .text-button-gray-large-jmRlvG08:hover .background-jmRlvG08{background:#2a2e39}}.text-button-gray-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,.text-button-gray-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#e3effd;display:block}html.theme-dark .text-button-gray-large-jmRlvG08.selected-jmRlvG08 .background-jmRlvG08,html.theme-dark .text-button-gray-large-jmRlvG08:active:not(:disabled) .background-jmRlvG08{background:#132042}.text-button-gray-large-jmRlvG08:active:not(:disabled){color:#1e53e5;transform:translateY(1px)}html.theme-dark .text-button-gray-large-jmRlvG08:active:not(:disabled){color:#1e53e5}.text-button-gray-large-jmRlvG08.selected-jmRlvG08,html.theme-dark .text-button-gray-large-jmRlvG08.selected-jmRlvG08{color:#2962ff}.text-button-gray-large-jmRlvG08.selected-jmRlvG08 .caret-jmRlvG08{transform:rotateX(180deg)}.text-button-gray-large-jmRlvG08:disabled{color:#b2b5be}html.theme-dark .text-button-gray-large-jmRlvG08:disabled{color:#5d606b}.text-button-gray-large-jmRlvG08:disabled .background-jmRlvG08{display:none}.logo-jrIJiOY8{align-items:center;background:#fff;color:#131722;display:flex;justify-content:center;left:0;padding:20px 0 16px;position:absolute;right:0;top:0;z-index:2}html.theme-dark .logo-jrIJiOY8{background:#000;color:#fff}@media screen and (min-width:1024px){.logo-jrIJiOY8{padding:40px 0}}.back-button-ysmLHxY9{color:#131722;position:absolute;right:12px;top:14px;z-index:3}html.theme-dark .back-button-ysmLHxY9{color:#d1d4dc}@media screen and (min-width:1024px){.back-button-ysmLHxY9{display:none;right:auto;top:auto;transform:translate(calc(-14px - -100%),-2px)}}.back-button-ysmLHxY9.hidden-ysmLHxY9{display:none}.textButton-ysmLHxY9.textButton-ysmLHxY9{display:none;z-index:3}@media screen and (min-width:1024px){.textButton-ysmLHxY9.textButton-ysmLHxY9{display:flex;position:absolute;right:40px;top:74px}}@media screen and (min-width:1920px){.textButton-ysmLHxY9{right:103px}}.textButton-ysmLHxY9.hidden-ysmLHxY9{display:none}.close-button-ysmLHxY9{left:12px;position:absolute;top:14px;z-index:3}@media screen and (min-width:1024px){.close-button-ysmLHxY9{left:32px;top:32px}}.close-button-ysmLHxY9.hidden-ysmLHxY9{display:none}.next-payment-info-bDg2DFsp{font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:21px}.dialog-ekStf8bO{background-color:#fff;opacity:0;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .dialog-ekStf8bO{background-color:#000}.dialog-ekStf8bO.open-animation-ekStf8bO,.dialog-ekStf8bO.open-animation-ekStf8bO .dialog-section-ekStf8bO{opacity:1}.dialog-section-ekStf8bO{display:flex;flex:auto;opacity:0;overflow:hidden;transition:opacity 175ms cubic-bezier(.55,.055,.675,.19) .2625s}.dialog-section-ekStf8bO.two-column-ekStf8bO{padding:72px 0 124px}@media screen and (min-width:1024px){.dialog-section-ekStf8bO.two-column-ekStf8bO{margin:0 auto;padding:105px 0 0;width:calc(100% - 80px)}}@media screen and (min-width:1920px){.dialog-section-ekStf8bO.two-column-ekStf8bO{width:calc(100% - 200px)}}.dialog-section-ekStf8bO.one-column-ekStf8bO{padding-top:61px}@media screen and (min-width:1024px){.dialog-section-ekStf8bO.one-column-ekStf8bO{padding-top:105px}}.body-ekStf8bO{grid-gap:40px;-webkit-overflow-scrolling:auto;align-items:stretch;color:#131722;display:grid;flex-grow:1;grid-template-columns:minmax(auto,100%);overflow-y:scroll;padding:0 20px;scrollbar-width:none}html.theme-dark .body-ekStf8bO{color:#fff}.body-ekStf8bO.sb-scrollbar-wrap{display:none}.body-ekStf8bO::-webkit-scrollbar{display:none;height:0;width:0}.body-ekStf8bO::-webkit-scrollbar-thumb,.body-ekStf8bO::-webkit-scrollbar-track{display:none}.body-ekStf8bO::-webkit-scrollbar-corner{display:none}@media screen and (min-width:1024px){.body-ekStf8bO{grid-template-columns:minmax(auto,calc(100% - 440px)) 400px;padding-left:0;padding-right:0}}@media screen and (min-width:1920px){.body-ekStf8bO{grid-gap:80px;grid-template-columns:minmax(auto,calc(100% - 720px)) 640px}}.one-column-ekStf8bO .body-ekStf8bO{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:0}.main-ekStf8bO{max-height:100%;padding-right:4px;position:relative}@media screen and (max-width:767px){.main-ekStf8bO.mainMobile-ekStf8bO{width:100%}}@media screen and (min-width:1024px){.cart-ekStf8bO{position:sticky;position:-webkit-sticky}}.hidden-ekStf8bO{display:none}.cart-bjdgLkZK{--paddingTopNotebook:105px;background-color:#f8f9fd;bottom:0;box-sizing:border-box;display:flex;flex-direction:column;left:0;padding:24px 0 72px;position:absolute;right:0;z-index:3}html.theme-dark .cart-bjdgLkZK{background-color:#131722}@media screen and (min-width:1024px){.cart-bjdgLkZK{border-radius:16px;height:auto;max-height:calc(100vh - var(--paddingTopNotebook) - 6px);padding-bottom:0;padding-top:7px;position:sticky;position:-webkit-sticky;top:0}}.purchase-info-bjdgLkZK{display:none}@media screen and (min-width:1024px){.purchase-info-bjdgLkZK{display:block}}.cart-bjdgLkZK.mobile-opened-bjdgLkZK .purchase-info-bjdgLkZK{display:block}.cart-bjdgLkZK.mobile-opened-bjdgLkZK{top:0}.row-layout-bjdgLkZK{grid-gap:8px;display:grid;grid-template-columns:1fr max-content}.product-name-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;text-transform:capitalize}html.theme-dark .product-name-bjdgLkZK{color:#fff}.product-cost-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}html.theme-dark .product-cost-bjdgLkZK{color:#fff}.productTrial-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.mobile-total-title-bjdgLkZK,.productTrial-bjdgLkZK{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.mobile-total-title-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px}html.theme-dark .mobile-total-title-bjdgLkZK{color:#fff}.mobile-total-cost-bjdgLkZK{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .mobile-total-cost-bjdgLkZK{color:#fff}.actions-bjdgLkZK{border-top-left-radius:16px;border-top-right-radius:16px;bottom:0;display:flex;flex-direction:column;left:0;padding:14px 20px 20px;position:absolute;right:0}@media screen and (min-width:1024px){.actions-bjdgLkZK{bottom:0;display:block;padding:0 24px 24px;position:sticky;position:-webkit-sticky}}@media screen and (max-width:1019px){.actions-bjdgLkZK{background-color:#f8f9fd}html.theme-dark .actions-bjdgLkZK{background-color:#131722}}@media screen and (min-width:1531px){.withPaymentDropdown-bjdgLkZK{display:inline-flex;flex-direction:row;gap:16px;justify-content:flex-end}}@media screen and (max-width:1530px){.withPaymentDropdown-bjdgLkZK{grid-gap:20px;display:grid;grid-template-columns:auto;grid-template-rows:auto}}.mobile-wrapper-bjdgLkZK{align-items:center;display:grid;gap:16px;grid-template-columns:max-content 1fr;margin-top:14px}.mobile-wrapper-bjdgLkZK.mobile-wrapper-opened-bjdgLkZK{grid-template-columns:1fr;margin-top:10px}@media screen and (min-width:1024px){.mobile-wrapper-bjdgLkZK{grid-template-columns:1fr;margin-top:0}}.mobile-total-bjdgLkZK{display:flex;flex-direction:column}@media screen and (min-width:1024px){.mobile-total-bjdgLkZK{display:none}}.mobile-opened-bjdgLkZK .mobile-total-bjdgLkZK{display:none}.caret-button-bjdgLkZK{align-content:center;cursor:pointer;display:flex;height:28px;margin:0 auto;width:28px}@media screen and (min-width:1024px){.caret-button-bjdgLkZK{display:none}}.header-caret-button-bjdgLkZK,.mobile-opened-bjdgLkZK .actions-bjdgLkZK .caret-button-bjdgLkZK{display:none}.mobile-opened-bjdgLkZK .header-caret-button-bjdgLkZK{display:block}@media screen and (min-width:1024px){.mobile-opened-bjdgLkZK .header-caret-button-bjdgLkZK{display:none}}.icon-bjdgLkZK{align-items:center;display:flex;flex:none;justify-content:center;transform:rotate(180deg);transition:transform .35s ease}.icon-bjdgLkZK.dropped-bjdgLkZK{transform:rotate(0)}.badge-yHuWj4ze{--ui-lib-badge-default-color-focus-outline:#2962ffcc;align-items:center;background:var(--ui-lib-badge-background,var(--ui-lib-badge-default-background,#f0f3fa));border:none;border-radius:var(--ui-lib-badge-border-radius,var(--ui-lib-badge-default-border-radius));color:var(--ui-lib-badge-color-content,var(--ui-lib-badge-default-color-content,#131722));display:inline-flex;flex-flow:row nowrap;padding:var(--ui-lib-badge-padding-top,0) var(--ui-lib-badge-padding-left,var(--ui-lib-badge-default-padding-left)) var(--ui-lib-badge-padding-bottom,0) var(--ui-lib-badge-padding-right,var(--ui-lib-badge-default-padding-right));text-transform:uppercase;-webkit-user-select:none;user-select:none}html.theme-dark .badge-yHuWj4ze{background:var(--ui-lib-badge-background,var(--ui-lib-badge-default-background,#2a2e39));color:var(--ui-lib-badge-color-content,var(--ui-lib-badge-default-color-content,#fff))}.badge-yHuWj4ze{outline:none;overflow:visible;position:relative}.badge-yHuWj4ze:focus{outline:none}.badge-yHuWj4ze:focus-visible{outline:none}.badge-yHuWj4ze:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.badge-yHuWj4ze:focus:after{display:block}.badge-yHuWj4ze:focus-visible:after{display:block}.badge-yHuWj4ze:focus:not(:focus-visible):after{display:none}.badge-yHuWj4ze:after{border-color:var(--ui-lib-badge-color-focus-outline,var(--ui-lib-badge-default-color-focus-outline));border-radius:calc(var(--ui-lib-badge-border-radius, var(--ui-lib-badge-default-border-radius)) + 4px)}.content-yHuWj4ze{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.anchor-yHuWj4ze:active,.button-yHuWj4ze:active{transform:scale(.95)}.size-xsmall-yHuWj4ze{--ui-lib-badge-default-padding-left:4px;--ui-lib-badge-default-padding-right:4px;--ui-lib-badge-default-border-radius:3px;font-size:8px;font-weight:700;height:12px;letter-spacing:.5px;line-height:12px}.size-small-yHuWj4ze{--ui-lib-badge-default-padding-left:6px;--ui-lib-badge-default-padding-right:6px;--ui-lib-badge-default-border-radius:3px;font-size:11px;font-weight:600;height:16px;letter-spacing:.02em;line-height:16px}.size-medium-yHuWj4ze{--ui-lib-badge-default-padding-left:8px;--ui-lib-badge-default-padding-right:8px;--ui-lib-badge-default-border-radius:4px;font-size:11px;font-weight:600;height:20px;letter-spacing:.05em;line-height:18px}.size-large-yHuWj4ze{--ui-lib-badge-default-padding-left:10px;--ui-lib-badge-default-padding-right:10px;--ui-lib-badge-default-border-radius:6px;font-size:14px;font-weight:600;height:24px;letter-spacing:normal;line-height:18px}.size-xlarge-yHuWj4ze{--ui-lib-badge-default-padding-left:12px;--ui-lib-badge-default-padding-right:12px;--ui-lib-badge-default-border-radius:8px;font-size:17px;font-weight:700;height:32px;letter-spacing:.02em;line-height:24px}.badge-3HaOrC7Y{--ui-lib-badge-color-content:#fff;white-space:nowrap}.stocks-3HaOrC7Y{--ui-lib-badge-background:#ff9800}.futures-3HaOrC7Y{--ui-lib-badge-background:#2962ff}.indices-3HaOrC7Y{--ui-lib-badge-background:#9c27b0}.currency-3HaOrC7Y{--ui-lib-badge-background:#8d6e63}.certificates-3HaOrC7Y{--ui-lib-badge-background:#e91e63}.cryptocurrency-3HaOrC7Y{--ui-lib-badge-background:#4caf50}.badge-35MDaV7L{display:inline-flex}.description-35MDaV7L .badge-35MDaV7L:not(:last-child),.description-35MDaV7L .product-name-35MDaV7L:not(:last-child){margin-left:5px}.exchanges-hTiOOCdh{list-style-type:none}.row-layout-O7MPIjhm{grid-gap:16px;color:#131722;display:grid;grid-template-columns:1fr max-content}html.theme-dark .row-layout-O7MPIjhm{color:#d1d4dc}.row-name-O7MPIjhm{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400}.row-name-O7MPIjhm,.row-value-O7MPIjhm{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:24px}.row-value-O7MPIjhm{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:500;text-align:left}.purchase-info-8I7iMxAC{overflow-y:scroll;padding:0 20px;scrollbar-color:#9598a1 #0000;scrollbar-width:thin}html.theme-dark .purchase-info-8I7iMxAC{scrollbar-color:#363a45 #0000}.purchase-info-8I7iMxAC::-webkit-scrollbar{height:5px;width:5px}.purchase-info-8I7iMxAC::-webkit-scrollbar-thumb{background-color:#9598a1;border:1px solid #f0f3fa;border-radius:3px}html.theme-dark .purchase-info-8I7iMxAC::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.purchase-info-8I7iMxAC::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.purchase-info-8I7iMxAC::-webkit-scrollbar-corner{display:none}@media screen and (min-width:1024px){.purchase-info-8I7iMxAC{padding:0 24px}}.cart-section-8I7iMxAC{padding:16px 0}.cart-section-8I7iMxAC:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .cart-section-8I7iMxAC:not(:last-child){border-bottom:1px solid #434651}.exchange-item-8I7iMxAC{padding:8px 0}.exchange-item-8I7iMxAC:first-child{padding-top:0}.exchange-item-8I7iMxAC:last-child{padding-bottom:0}.total-8I7iMxAC{display:grid;grid-template-columns:1fr max-content}.total-title-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px}html.theme-dark .total-title-8I7iMxAC{color:#fff}.total-cost-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .total-cost-8I7iMxAC{color:#fff}.billing-freq-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .billing-freq-8I7iMxAC{color:#787b86}.highlightTitle-8I7iMxAC{font-weight:700}.highlight-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;background-color:#e3effd;border-radius:8px;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:16px;padding:12px}html.theme-dark .highlight-8I7iMxAC{background-color:#132042}.highlight-8I7iMxAC~.highlight-8I7iMxAC{margin-top:24px}.product-trial-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.cost-trial-8I7iMxAC,.product-trial-8I7iMxAC{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.cost-trial-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px}.total-tax-8I7iMxAC{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:2px}html.theme-dark .total-tax-8I7iMxAC{color:#787b86}.container-1PoDYo3m{grid-gap:12px;display:grid;grid-template-columns:max-content 1fr}@media screen and (min-width:1020px){.container-1PoDYo3m{grid-template-columns:1fr}}@media screen and (min-width:1531px){.container-1PoDYo3m{grid-auto-flow:column;grid-template-columns:auto;justify-content:flex-end}}.dropdown-item-1PoDYo3m{grid-gap:8px;align-items:center;display:grid;font-size:16px;grid-template-columns:max-content 1fr;line-height:20px}.icon-1PoDYo3m{align-items:center;display:flex;height:20px;width:32px}.icon-1PoDYo3m svg{height:100%;width:100%}.childrenWrapper-W0mNxTYg{opacity:0}.childrenWrapper-W0mNxTYg.shown-W0mNxTYg{opacity:1}.loader-W0mNxTYg{display:none}.loader-W0mNxTYg.shown-W0mNxTYg{display:block}.next-1Ts5vcta{display:grid}.title-i6YYU4Ty{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px}html.theme-dark .title-i6YYU4Ty{color:#fff}.description-i6YYU4Ty{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-top:8px}html.theme-dark .description-i6YYU4Ty{color:#fff}.button-RmahEtr8{align-items:flex-start;display:flex;margin-top:3px}.item-RmahEtr8{grid-gap:2px 8px;display:grid;grid-template-columns:min-content auto;padding:19px 0 13px}.item-RmahEtr8:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .item-RmahEtr8:not(:last-child){border-bottom:1px solid #434651}@media screen and (min-width:1024px){.item-RmahEtr8{padding:21px 0 13px}}.title-RmahEtr8{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;margin-bottom:4px}html.theme-dark .title-RmahEtr8{color:#fff}.description-RmahEtr8{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:2/4;line-height:18px;margin-bottom:6px}html.theme-dark .description-RmahEtr8{color:#787b86}@media screen and (min-width:768px){.description-RmahEtr8{grid-column:2/3}}.list-YclYOAXu{display:flex;flex-direction:column;padding-right:4px}.item-YclYOAXu{align-items:flex-start;border-bottom:1px solid #e0e3eb;cursor:pointer;display:flex;padding:16px 6px 16px 21px;position:relative}html.theme-dark .item-YclYOAXu{border-bottom:1px solid #363a45}.item-YclYOAXu:first-of-type{padding-top:29px}@media screen and (min-width:768px){.item-YclYOAXu{padding-right:25px}}@media screen and (min-width:1024px){.item-YclYOAXu{padding-left:25px;padding-right:0}}.item-disabled-YclYOAXu{cursor:default;opacity:.5}.info-YclYOAXu{grid-gap:0 6px;align-self:center;display:grid;flex-grow:1;grid-template-columns:min-content min-content 1fr}.checkbox-YclYOAXu{display:inline-block;position:relative}.title-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px}html.theme-dark .title-YclYOAXu{color:#fff}.exchange-name-YclYOAXu{direction:ltr;display:inline-block;margin-bottom:4px;margin-left:4px}.exchangeBadge-YclYOAXu{display:inline-flex;margin-bottom:4px;margin-left:4px;margin-right:2px;vertical-align:top}.flag-YclYOAXu{border-radius:50%;display:inline-block;height:18px;vertical-align:middle;width:18px}.description-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:3/4;line-height:18px;margin-top:0}html.theme-dark .description-YclYOAXu{color:#787b86}.prices-YclYOAXu{align-items:flex-start;position:relative}.price-YclYOAXu,.prices-YclYOAXu{display:flex;flex-direction:column}.price-YclYOAXu{align-items:flex-end}.month-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;white-space:nowrap}html.theme-dark .month-YclYOAXu{color:#fff}.year-YclYOAXu{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;white-space:nowrap}@media screen and (max-width:767px){.year-YclYOAXu{margin-right:18px}}@media screen and (min-width:1024px){.year-YclYOAXu{margin-top:4px}}.resident-price-YclYOAXu{align-items:flex-start;display:flex;margin-bottom:10px}.infoIcon-YclYOAXu{color:#787b86;display:inline-flex}html.theme-dark .infoIcon-YclYOAXu{color:#d1d4dc}.infoIcon-YclYOAXu svg{height:20px;width:20px}@media (any-hover:hover){.infoIcon-YclYOAXu:hover{color:#434651}html.theme-dark .infoIcon-YclYOAXu:hover{color:#9598a1}}.infoIcon-YclYOAXu:focus{color:#131722}html.theme-dark .infoIcon-YclYOAXu:focus{color:#d1d4dc}.infoIcon-YclYOAXu:active{color:#131722}html.theme-dark .infoIcon-YclYOAXu:active{color:#d1d4dc}.tooltipTitle-YclYOAXu{display:inline-flex;margin-right:4px}.infoIconContainer-YclYOAXu{display:inline-flex}.spinner-YclYOAXu{min-height:80px;position:relative}.badge-YclYOAXu{color:#131722;left:-30px;position:absolute}html.theme-dark .badge-YclYOAXu{color:#fff}.info-Y4tMc12a{margin-top:10px}@media screen and (min-width:768px){.info-Y4tMc12a{margin-top:15px}}.link-Y4tMc12a{color:#2962ff;transition:color .35s ease}html.theme-dark .link-Y4tMc12a{color:#2962ff}.link-Y4tMc12a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-Y4tMc12a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-Y4tMc12a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-Y4tMc12a:hover{fill:#1e53e5;color:#1e53e5}}.link-Y4tMc12a:focus{outline:auto}.link-Y4tMc12a:focus-visible{outline:auto}.link-Y4tMc12a:focus:not(:focus-visible){outline:none}.link-Y4tMc12a:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-Y4tMc12a:active{fill:#1848cc;color:#1848cc}.text-Y4tMc12a{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;padding-bottom:16px}html.theme-dark .text-Y4tMc12a{color:#fff}.informer-Y4tMc12a{width:fit-content}.footer-ENI3UToR{margin:25px 0 20px}.info-ENI3UToR{margin-bottom:25px}.title-ENI3UToR{display:flex}.text-ENI3UToR{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-right:8px;margin-top:-2px}html.theme-dark .text-ENI3UToR{color:#fff}.description-ENI3UToR{margin-top:4px}.description-ENI3UToR,.description-logo-ENI3UToR{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:block;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}.description-logo-ENI3UToR{margin-top:2px}.ice-icon-ENI3UToR{direction:ltr}.icon-ENI3UToR{color:#131722}html.theme-dark .icon-ENI3UToR{color:#fff}.highlight-wrap-iKO7WU8n .highligh-extra-data-iKO7WU8n{animation-duration:1.3s;animation-iteration-count:1;animation-name:payment-highlight-light-iKO7WU8n;animation-timing-function:ease-in-out;background-color:initial}html.theme-dark .highlight-wrap-iKO7WU8n .highligh-extra-data-iKO7WU8n{animation-name:payment-highlight-dark-iKO7WU8n}@keyframes payment-highlight-light-iKO7WU8n{38%{background-color:#fff3e0}61%{background-color:#fff3e0}to{background-color:initial}}@keyframes payment-highlight-dark-iKO7WU8n{38%{background-color:#132042}61%{background-color:#132042}to{background-color:initial}}.group-kxBajQCf{border-radius:6px;margin-top:13px}.switcher-kxBajQCf{margin:0;padding:0}.switcher-kxBajQCf.margin-kxBajQCf{margin-top:15px}.tabs-kxBajQCf{-webkit-overflow-scrolling:touch;align-items:center;box-sizing:border-box;display:flex;height:38px;margin-top:10px;overflow-x:scroll;padding:0 5px;scrollbar-width:none}.tabs-kxBajQCf.sb-scrollbar-wrap{display:none}.tabs-kxBajQCf::-webkit-scrollbar{display:none;height:0;width:0}.tabs-kxBajQCf::-webkit-scrollbar-thumb,.tabs-kxBajQCf::-webkit-scrollbar-track{display:none}.tabs-kxBajQCf::-webkit-scrollbar-corner{display:none}.container-jJ28DorJ{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:0 10px}.icon-jJ28DorJ{color:#f23645}.title-jJ28DorJ{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin-top:16px}html.theme-dark .title-jJ28DorJ{color:#fff}.description-jJ28DorJ{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;text-align:center}html.theme-dark .description-jJ28DorJ{color:#fff}.button-jJ28DorJ{margin-top:32px}.card-padding-ErxLIKiI{padding:0 22px}@media screen and (min-width:1024px){.card-padding-ErxLIKiI{padding:0 24px}}.card-ErxLIKiI{background:#fff;box-sizing:border-box;color:#131722;display:flex;flex-direction:column;padding-top:47px;position:relative;text-align:center}html.theme-dark .card-ErxLIKiI{background:#000}.card-ErxLIKiI .button-ErxLIKiI{margin-bottom:12px;margin-top:auto;padding-top:33px;width:100%}.cardLayout-ErxLIKiI{align-items:center;display:flex;flex-direction:column;position:relative;text-align:center}.wrapperFeatures-YtR0Roin{background:#fff;display:flex;padding-bottom:32px;position:relative;text-align:right}html.theme-dark .wrapperFeatures-YtR0Roin{background:#000}.padding-YtR0Roin{flex:0 1 308px;padding-top:2px}@media screen and (min-width:768px){.padding-YtR0Roin{flex:auto}}@media screen and (min-width:1440px){.padding-YtR0Roin{padding-top:0}}.titleFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;margin-bottom:12px;text-align:right}html.theme-dark .titleFeatures-YtR0Roin{color:#fff}@media screen and (min-width:768px){.titleFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-bottom:14px}}.listFeatures-YtR0Roin{column-count:auto;list-style:none;padding-right:14px;text-align:right}.itemFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;align-content:center;color:#434651;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;margin-bottom:8px;position:relative;width:100%}html.theme-dark .itemFeatures-YtR0Roin{color:#b2b5be}@media screen and (min-width:768px){.itemFeatures-YtR0Roin{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}}.itemFeatures-YtR0Roin:last-child{margin-bottom:0}.itemFeatures-YtR0Roin:before{background:#d1d4dc;border-radius:50%;content:"";height:3px;position:absolute;right:-13px;top:8px;width:3px}html.theme-dark .itemFeatures-YtR0Roin:before{background:#434651}@media screen and (min-width:768px){.itemFeatures-YtR0Roin:before{top:12px}}.tooltipIcon-YtR0Roin{align-items:center;color:#131722;display:inline-flex;height:22px;width:22px}html.theme-dark .tooltipIcon-YtR0Roin{color:#d1d4dc}.tooltipTitle-YtR0Roin{display:inline-flex;margin-right:2px}.offerPrice-wCGVDggm{direction:ltr;display:flex;height:65px;justify-content:center}.offerPrice-wCGVDggm .measure-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;justify-content:flex-end;line-height:18px;margin:0 7px 10px 0;position:relative}.measure-wCGVDggm{color:#787b86;font-size:12px;margin-right:-3px;text-align:right}html.theme-dark .measure-wCGVDggm{color:#787b86}@media screen and (min-width:1440px){.measure-wCGVDggm{margin-right:0}}.mainPrice-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#131722;display:inline-flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-decoration:none}html.theme-dark .mainPrice-wCGVDggm{color:#fff}@media screen and (min-width:768px){.mainPrice-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:48px;font-style:normal;font-weight:600;line-height:56px}}.color-red-wCGVDggm .mainPrice-wCGVDggm,.color-red-wCGVDggm .mainPriceLetter-wCGVDggm,.color-red-wCGVDggm .sup-wCGVDggm{color:#f23645}html.theme-dark .color-red-wCGVDggm .mainPrice-wCGVDggm,html.theme-dark .color-red-wCGVDggm .mainPriceLetter-wCGVDggm,html.theme-dark .color-red-wCGVDggm .sup-wCGVDggm{color:#b22833}.color-green-wCGVDggm .mainPrice-wCGVDggm,.color-green-wCGVDggm .mainPriceLetter-wCGVDggm,.color-green-wCGVDggm .measure-wCGVDggm,html.theme-dark .color-green-wCGVDggm .mainPrice-wCGVDggm,html.theme-dark .color-green-wCGVDggm .mainPriceLetter-wCGVDggm,html.theme-dark .color-green-wCGVDggm .measure-wCGVDggm{color:#24b29b}.sup-wCGVDggm{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:28px;margin:10px 0 0 4px;position:relative}html.theme-dark .sup-wCGVDggm{color:#fff}@media screen and (min-width:768px){.sup-wCGVDggm{margin:10px 0 0 2px}}@media screen and (min-width:1440px){.sup-wCGVDggm{margin:10px 0 0 3px}}.button-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;height:40px;line-height:24px}@media screen and (min-width:1024px){.button-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;height:56px;line-height:24px}}.link-oKQ8GSG1{font-feature-settings:"tnum" on,"lnum" on;color:#2962ff;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px;transition:color .35s ease}html.theme-dark .link-oKQ8GSG1{color:#2962ff}.link-oKQ8GSG1:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-oKQ8GSG1:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-oKQ8GSG1:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-oKQ8GSG1:hover{fill:#1e53e5;color:#1e53e5}}.link-oKQ8GSG1:focus{outline:auto}.link-oKQ8GSG1:focus-visible{outline:auto}.link-oKQ8GSG1:focus:not(:focus-visible){outline:none}.link-oKQ8GSG1:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-oKQ8GSG1:active{fill:#1848cc;color:#1848cc}.info-icon-PvYAVz99{color:#131722;height:19px;width:18px}html.theme-dark .info-icon-PvYAVz99{color:#fff}.info-icon-wrap-PvYAVz99{align-items:center;display:flex;margin-right:6px}.label-PvYAVz99{font-feature-settings:"tnum" on,"lnum" on;align-self:center;background:#08998126;border-radius:4px;color:#131722;display:flex;flex-flow:row nowrap;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;overflow:hidden;padding:6px 10px;position:relative}html.theme-dark .label-PvYAVz99{color:#fff}@media screen and (min-width:768px){.label-PvYAVz99{margin-top:5px}}html.theme-dark .label-PvYAVz99{background:#08998140}.tooltip-wrap-PvYAVz99{height:80%;position:absolute;right:-20px;top:10%;width:200%}.cardTitle-omURZg64{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:600;line-height:36px;text-align:center}html.theme-dark .cardTitle-omURZg64{color:#fff}@media screen and (min-width:768px){.cardTitle-omURZg64{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:36px;font-style:normal;font-weight:600;line-height:44px}}.cardDescription-nrU0JU6d{font-feature-settings:"tnum" on,"lnum" on;color:#434651;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;height:45px;line-height:18px;margin-top:6px;padding-bottom:24px}html.theme-dark .cardDescription-nrU0JU6d{color:#b2b5be}@media screen and (min-width:768px){.cardDescription-nrU0JU6d{height:90px}}@media screen and (min-width:1024px){.cardDescription-nrU0JU6d{height:67px}}@media screen and (min-width:768px){.cardDescription-nrU0JU6d{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-top:5px}}.label-HkY0BJBZ{border-radius:4px 4px 4px 0;box-sizing:border-box;color:#fff;position:absolute;text-align:center;z-index:1}html.theme-dark .label-HkY0BJBZ{color:#fff}.label-HkY0BJBZ .icon-HkY0BJBZ{display:flex;height:28px;width:28px}.label-HkY0BJBZ:after{border-bottom:5px solid #0000;border-left:5px solid #0000;bottom:0;content:"";left:0;position:absolute;transform:translateY(9.8px);z-index:1}.label-HkY0BJBZ.discount-HkY0BJBZ{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.label-HkY0BJBZ.discount-HkY0BJBZ,.label-HkY0BJBZ.gift-HkY0BJBZ{left:-13px;padding:4px 12px;top:16px}.label-HkY0BJBZ.no-active-card-HkY0BJBZ{left:-11px}.label-discount-upsell-HkY0BJBZ{background:#b22833}html.theme-dark .label-discount-upsell-HkY0BJBZ{background:#801922}.label-discount-upsell-HkY0BJBZ:after{border-right:5px solid #801922;border-top:5px solid #801922}html.theme-dark .label-discount-upsell-HkY0BJBZ:after{border-right:5px solid #802028;border-top:5px solid #802028}.label-discount--pro-HkY0BJBZ{background:#f7525f}html.theme-dark .label-discount--pro-HkY0BJBZ{background:#cc2f3c}.label-discount--pro-HkY0BJBZ:after{border-right:5px solid #b22833;border-top:5px solid #b22833}html.theme-dark .label-discount--pro-HkY0BJBZ:after{border-right:5px solid #801922;border-top:5px solid #801922}.label-discount--pro_realtime-HkY0BJBZ{background:#f23645}html.theme-dark .label-discount--pro_realtime-HkY0BJBZ{background:#b22833}.label-discount--pro_realtime-HkY0BJBZ:after{border-right:5px solid #991f29;border-top:5px solid #991f29}html.theme-dark .label-discount--pro_realtime-HkY0BJBZ:after{border-right:5px solid #801922;border-top:5px solid #801922}.label-discount--pro_premium-HkY0BJBZ{background:#cc2f3c}html.theme-dark .label-discount--pro_premium-HkY0BJBZ{background:#991f29}.label-discount--pro_premium-HkY0BJBZ:after{border-right:5px solid #801922;border-top:5px solid #801922}html.theme-dark .label-discount--pro_premium-HkY0BJBZ:after{border-right:5px solid #801922;border-top:5px solid #801922}.label-gift--pro-HkY0BJBZ,html.theme-dark .label-gift--pro-HkY0BJBZ{background:#2962ff}.label-gift--pro-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}.label-gift--pro_realtime-HkY0BJBZ,html.theme-dark .label-gift--pro_realtime-HkY0BJBZ{background:#2962ff}.label-gift--pro_realtime-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro_realtime-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}.label-gift--pro_premium-HkY0BJBZ,html.theme-dark .label-gift--pro_premium-HkY0BJBZ{background:#2962ff}.label-gift--pro_premium-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}html.theme-dark .label-gift--pro_premium-HkY0BJBZ:after{border-right:5px solid #1848cc;border-top:5px solid #1848cc}.cards-wrap-QQXm7yVo{margin:32px auto 0;max-width:1250px;padding:0}@media screen and (min-width:768px){.cards-wrap-QQXm7yVo{padding:0 19px}}@media screen and (min-width:1024px){.cards-wrap-QQXm7yVo{padding:0 30px}}@media screen and (min-width:1280px){.cards-wrap-QQXm7yVo{margin-top:40px}}@media screen and (min-width:1440px){.cards-wrap-QQXm7yVo{margin-top:48px;max-width:1235px}}.cards-QQXm7yVo{-webkit-overflow-scrolling:touch;overflow:scroll;scrollbar-width:none}.cards-QQXm7yVo.sb-scrollbar-wrap{display:none}.cards-QQXm7yVo::-webkit-scrollbar{display:none;height:0;width:0}.cards-QQXm7yVo::-webkit-scrollbar-thumb,.cards-QQXm7yVo::-webkit-scrollbar-track{display:none}.cards-QQXm7yVo::-webkit-scrollbar-corner{display:none}@media screen and (min-width:768px){.cards-QQXm7yVo{overflow:initial}}.cards-scroll-wrap-QQXm7yVo{display:grid;grid-template-areas:"top-0 top-1 top-2" "bottom-0 bottom-1 bottom-2";grid-template-columns:repeat(3,1fr);justify-content:flex-start;min-width:fit-content;padding:0 20px;position:relative}@media screen and (min-width:768px){.cards-scroll-wrap-QQXm7yVo{justify-content:center;padding:0}}.secondary-action-sizes-QQXm7yVo{margin-bottom:9px;min-height:38px}@media screen and (min-width:768px){.secondary-action-sizes-QQXm7yVo{min-height:52px}}@media screen and (min-width:1024px){.secondary-action-sizes-QQXm7yVo{margin-bottom:0;min-height:62px}}@media screen and (min-width:1440px){.secondary-action-sizes-QQXm7yVo{min-height:64px}}.has-active-QQXm7yVo .bottom-0-QQXm7yVo.is-active-QQXm7yVo~.bottom-1-QQXm7yVo,.has-active-QQXm7yVo .top-0-QQXm7yVo.is-active-QQXm7yVo~.top-1-QQXm7yVo{border-right-color:#2962ff;border-right-width:3px}html.theme-dark .has-active-QQXm7yVo .bottom-0-QQXm7yVo.is-active-QQXm7yVo~.bottom-1-QQXm7yVo,html.theme-dark .has-active-QQXm7yVo .top-0-QQXm7yVo.is-active-QQXm7yVo~.top-1-QQXm7yVo{border-right-color:#2962ff}.has-active-QQXm7yVo .bottom-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.bottom-1-QQXm7yVo,.has-active-QQXm7yVo .top-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.top-1-QQXm7yVo{border-left-color:#2962ff;border-left-width:3px}html.theme-dark .has-active-QQXm7yVo .bottom-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.bottom-1-QQXm7yVo,html.theme-dark .has-active-QQXm7yVo .top-0-QQXm7yVo:not(.is-active-QQXm7yVo)~.top-1-QQXm7yVo{border-left-color:#2962ff}.has-active-QQXm7yVo .is-active-QQXm7yVo{border-color:#2962ff;border-width:3px}html.theme-dark .has-active-QQXm7yVo .is-active-QQXm7yVo{border-color:#2962ff}.top-QQXm7yVo{border:1px #e0e3eb;border-style:solid solid none;min-width:260px}html.theme-dark .top-QQXm7yVo{border-color:#2a2e39}@media screen and (min-width:768px){.top-QQXm7yVo{min-width:242px}}.top-0-QQXm7yVo{border-left-style:none;border-top-right-radius:12px;grid-area:top-0}.top-1-QQXm7yVo{grid-area:top-1}.top-2-QQXm7yVo{border-right-style:none;border-top-left-radius:12px;grid-area:top-2}.bottom-QQXm7yVo{border:1px solid #e0e3eb;border-top-style:none;min-width:260px}html.theme-dark .bottom-QQXm7yVo{border-color:#2a2e39}@media screen and (min-width:768px){.bottom-QQXm7yVo{min-width:242px}}.bottom-0-QQXm7yVo{border-bottom-right-radius:12px;border-left-style:none;grid-area:bottom-0}@media screen and (min-width:768px){.bottom-0-QQXm7yVo{border-bottom-right-radius:0}}.bottom-1-QQXm7yVo{grid-area:bottom-1}.bottom-2-QQXm7yVo{border-bottom-left-radius:12px;border-right-style:none;grid-area:bottom-2}@media screen and (min-width:768px){.bottom-2-QQXm7yVo{border-bottom-left-radius:0}}.skipTrial-7OCYXd1m{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .skipTrial-7OCYXd1m{color:#fff}.skipTrial-7OCYXd1m .link-7OCYXd1m{color:#2962ff;transition:color .35s ease}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m{color:#2962ff}.skipTrial-7OCYXd1m .link-7OCYXd1m:visited{fill:#2962ff;color:#2962ff}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.skipTrial-7OCYXd1m .link-7OCYXd1m:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:hover{fill:#1e53e5;color:#1e53e5}}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus{outline:auto}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus-visible{outline:auto}.skipTrial-7OCYXd1m .link-7OCYXd1m:focus:not(:focus-visible){outline:none}.skipTrial-7OCYXd1m .link-7OCYXd1m:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .skipTrial-7OCYXd1m .link-7OCYXd1m:active{fill:#1848cc;color:#1848cc}.change-trial-ntk0pgwQ{color:#2962ff;cursor:pointer;font-size:14px;font-style:normal;font-weight:400;line-height:21px;transition:color .35s ease}html.theme-dark .change-trial-ntk0pgwQ{color:#2962ff}.change-trial-ntk0pgwQ:visited{fill:#2962ff;color:#2962ff}html.theme-dark .change-trial-ntk0pgwQ:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.change-trial-ntk0pgwQ:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .change-trial-ntk0pgwQ:hover{fill:#1e53e5;color:#1e53e5}}.change-trial-ntk0pgwQ:focus{outline:auto}.change-trial-ntk0pgwQ:focus-visible{outline:auto}.change-trial-ntk0pgwQ:focus:not(:focus-visible){outline:none}.change-trial-ntk0pgwQ:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .change-trial-ntk0pgwQ:active{fill:#1848cc;color:#1848cc}.current-trial-ntk0pgwQ{color:#131722;font-size:14px;font-style:normal;font-weight:400;line-height:21px}html.theme-dark .current-trial-ntk0pgwQ{color:#d1d4dc}.description-d5Tocwga{color:#131722;font-size:14px;font-style:normal;font-weight:400;line-height:21px}html.theme-dark .description-d5Tocwga{color:#fff}.link-d5Tocwga{color:#2962ff;cursor:pointer;transition:color .35s ease}html.theme-dark .link-d5Tocwga{color:#2962ff}.link-d5Tocwga:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-d5Tocwga:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-d5Tocwga:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-d5Tocwga:hover{fill:#1e53e5;color:#1e53e5}}.link-d5Tocwga:focus{outline:auto}.link-d5Tocwga:focus-visible{outline:auto}.link-d5Tocwga:focus:not(:focus-visible){outline:none}.link-d5Tocwga:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-d5Tocwga:active{fill:#1848cc;color:#1848cc}.container-5CQYJZ9F{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#2962ff;cursor:pointer;display:flex;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;grid-column:1/4;justify-content:flex-start;line-height:24px;padding:20px;position:relative;transition:color .35s ease;width:100%}html.theme-dark .container-5CQYJZ9F{color:#2962ff}.container-5CQYJZ9F:visited{fill:#2962ff;color:#2962ff}html.theme-dark .container-5CQYJZ9F:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.container-5CQYJZ9F:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .container-5CQYJZ9F:hover{fill:#1e53e5;color:#1e53e5}}.container-5CQYJZ9F:focus{outline:auto}.container-5CQYJZ9F:focus-visible{outline:auto}.container-5CQYJZ9F:focus:not(:focus-visible){outline:none}.container-5CQYJZ9F:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .container-5CQYJZ9F:active{fill:#1848cc;color:#1848cc}@media screen and (min-width:568px){.container-5CQYJZ9F{padding:22px 20px}}@media screen and (min-width:768px){.container-5CQYJZ9F{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;justify-content:center;line-height:24px;padding:16px 0}}.text-5CQYJZ9F{margin-left:auto}@media screen and (min-width:768px){.text-5CQYJZ9F{margin-left:0}}.icon-5CQYJZ9F{align-items:center;display:flex;height:26px;margin-right:17px;width:20px}@media screen and (min-width:768px){.icon-5CQYJZ9F{margin-right:5px}}.icon-mrROUtv5{color:#2962ff;transition:color .35s ease}html.theme-dark .icon-mrROUtv5{color:#2962ff}.icon-mrROUtv5:visited{fill:#2962ff;color:#2962ff}html.theme-dark .icon-mrROUtv5:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.icon-mrROUtv5:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .icon-mrROUtv5:hover{fill:#1e53e5;color:#1e53e5}}.icon-mrROUtv5:focus{outline:auto}.icon-mrROUtv5:focus-visible{outline:auto}.icon-mrROUtv5:focus:not(:focus-visible){outline:none}.icon-mrROUtv5:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .icon-mrROUtv5:active{fill:#1848cc;color:#1848cc}.under-cards-5bi7tudm{background:#fff;border-bottom:1px solid #e0e3eb;border-left:1px solid #e0e3eb;border-radius:0 0 12px 12px;border-right:1px solid #e0e3eb;border-top-color:#e0e3eb;border-top-width:1px;display:flex;position:relative}html.theme-dark .under-cards-5bi7tudm{background:#131722;border-color:#2a2e39}.under-cards-5bi7tudm,html.theme-dark .under-cards-5bi7tudm{background-color:initial;border-color:#0000}@media screen and (min-width:768px){.under-cards-5bi7tudm,html.theme-dark .under-cards-5bi7tudm{border-color:#e0e3eb}html.theme-dark .under-cards-5bi7tudm,html.theme-dark html.theme-dark .under-cards-5bi7tudm{border-color:#2a2e39}}.light-button-1f5iHRsw{align-items:center;background-color:var(--ui-lib-light-button-color-bg,var(--ui-lib-light-button-default-color-bg));border:1px solid var(--ui-lib-light-button-color-border,var(--ui-lib-light-button-default-color-border));border-radius:8px;box-sizing:border-box;color:var(--ui-lib-light-button-color-content,var(--ui-lib-light-button-default-color-content));display:inline-flex;justify-content:center;max-width:100%;min-width:40px;outline:none;overflow:visible;position:relative}.light-button-1f5iHRsw:focus{outline:none}.light-button-1f5iHRsw:focus-visible{outline:none}.light-button-1f5iHRsw:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.light-button-1f5iHRsw:focus:after{display:block}.light-button-1f5iHRsw:focus-visible:after{display:block}.light-button-1f5iHRsw:focus:not(:focus-visible):after{display:none}.light-button-1f5iHRsw:after{border-radius:12px}.light-button-1f5iHRsw.disable-cursor-pointer-1f5iHRsw{cursor:default}.light-button-1f5iHRsw .content-1f5iHRsw{align-items:center;align-self:stretch;display:inline-flex;overflow:hidden;white-space:nowrap}.light-button-1f5iHRsw .ellipsis-container-1f5iHRsw{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.light-button-1f5iHRsw .icon-1f5iHRsw{display:inline-flex;flex-shrink:0;max-height:28px;max-width:28px;min-height:18px;min-width:18px}.light-button-1f5iHRsw .content-1f5iHRsw:not(:last-child),.light-button-1f5iHRsw .icon-1f5iHRsw:not(:last-child){margin-inline-end:4px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-border:#e3effd;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e3effd;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#e3effd;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#132042;--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-bg:#132042}.variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#06806bcc}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#06806bcc}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#fff;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#f23645cc}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#b22833}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#fff;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#fff;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#131722;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#131722}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#f23645cc}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#b22833}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#b22833;--ui-lib-light-button-default-color-bg:#331f20}.variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-quiet-primary-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#434651;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#bbd9fb;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#143a87;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#434651;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#bbd9fb;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#143a87;--ui-lib-light-button-default-color-bg:#0000}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-secondary-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#2962ffcc}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#0000;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#d1d4dc;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#2962ffcc}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#2962ff}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#2962ff;--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#131722;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#fff;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#0000;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-gray-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#06806bcc}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#06806bcc}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-border:#daf2ee;--ui-lib-light-button-default-color-content:#089981}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#daf2ee;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-border:#daf2ee;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#082621;--ui-lib-light-button-default-color-content:#089981;--ui-lib-light-button-default-color-bg:#082621}.variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-green-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#0000;height:40px;min-width:40px;padding:0 15px}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:after{border-color:#f23645cc}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:11px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:11px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw,.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 5px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#f23645}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-medium-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#0000;height:34px;min-width:34px;padding:0 11px}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw{--ui-lib-light-button-default-color-border:#0000;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#0000}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after,html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:after{border-color:#f23645cc}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-ltr-1f5iHRsw{direction:ltr}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.force-direction-rtl-1f5iHRsw{direction:rtl}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-grouped-1f5iHRsw.variant-quiet-primary-1f5iHRsw:not(.selected-1f5iHRsw):not(:hover){--ui-lib-light-button-default-color-bg:#0000;--ui-lib-light-button-default-color-border:#0000}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-small-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.typography-medium-1f5iHRsw{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:500;line-height:24px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-start-icon-1f5iHRsw{padding-inline-start:7px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.with-end-icon-1f5iHRsw{padding-inline-end:7px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw{padding:0 2px}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.no-content-1f5iHRsw.with-start-icon-1f5iHRsw.with-end-icon-1f5iHRsw{padding:0 7px}@media (any-hover:hover){.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-bg:#f0f3fa;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#f0f3fa}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:hover{--ui-lib-light-button-default-color-border:#2a2e39;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#2a2e39}}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-border:#ffebec;--ui-lib-light-button-default-color-content:#f23645}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw{--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw.selected-1f5iHRsw .caret-1f5iHRsw{transform:rotate(-180deg)}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-bg:#ffebec;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-border:#ffebec;transform:translateY(1px)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:not(.disable-active-state-styles-1f5iHRsw):active{--ui-lib-light-button-default-color-border:#331f20;--ui-lib-light-button-default-color-content:#f23645;--ui-lib-light-button-default-color-bg:#331f20}.variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-bg:#e0e3eb;--ui-lib-light-button-default-color-content:#b2b5be;--ui-lib-light-button-default-color-border:#e0e3eb;transform:translateY(0)}html.theme-dark .variant-ghost-1f5iHRsw.color-red-1f5iHRsw.size-small-1f5iHRsw:disabled{--ui-lib-light-button-default-color-border:#363a45;--ui-lib-light-button-default-color-content:#5d606b;--ui-lib-light-button-default-color-bg:#363a45}.group-7eb3l0ph{display:inline-grid;grid-template-columns:repeat(var(--ui-lib-control-group-cols),minmax(0,auto));grid-template-rows:repeat(var(--ui-lib-control-group-rows),minmax(0,auto))}.light-button-group-7mI4HslZ{border:1px solid #e0e3eb;border-radius:12px;gap:4px;padding:3px}html.theme-dark .light-button-group-7mI4HslZ{border:1px solid #434651}.label-GH2s1rfd{font-feature-settings:"tnum" on,"lnum" on;background:#08998126;border-radius:8px;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:21px;line-height:18px;padding:8px 16px;text-align:center}html.theme-dark .label-GH2s1rfd{background:#08998140;color:#fff}@media screen and (min-width:568px){.label-GH2s1rfd{max-width:250px}}@media screen and (min-width:768px){.label-GH2s1rfd{align-items:center;display:flex;max-width:none;padding:10px 16px}}.container-13Vfp93l{align-items:center;display:flex;flex-direction:column;margin-top:16px;padding:0 20px}@media screen and (min-width:1280px){.container-13Vfp93l{margin-top:24px}}.switcher-13Vfp93l{margin-bottom:8px;position:relative}.arrow-curve-13Vfp93l{left:-48px;position:absolute;top:4px;transform:rotateY(180deg)}@media screen and (min-width:768px){.arrow-curve-13Vfp93l{left:-52px}}.emoji-13Vfp93l{font-size:20px;line-height:22px;vertical-align:top}.nowrap-13Vfp93l{white-space:nowrap}@media screen and (min-width:568px){.nowrap-13Vfp93l{display:initial}}@media screen and (min-width:768px){.nowrap-13Vfp93l{align-items:center;display:flex}}.title-vjlx3nMq{font-size:48px;font-style:normal;font-weight:600;line-height:56px;margin-bottom:16px;text-align:center}@media screen and (max-width:767px){.title-vjlx3nMq{font-size:32px;font-style:normal;font-weight:600;line-height:40px}}@media screen and (min-width:1280px){.title-vjlx3nMq{margin-bottom:24px}}.secondary-vjlx3nMq{font-size:18px;font-style:normal;font-weight:400;line-height:28px;text-align:center}.titleContainer-vjlx3nMq{color:#131722;padding:0 8px 48px}@media screen and (max-width:1530px){.titleContainer-vjlx3nMq{padding-bottom:32px}}@media screen and (max-width:767px){.titleContainer-vjlx3nMq{padding-bottom:24px}}.title-vrUcGhJD{margin:0 auto;max-width:800px;padding:0 20px}@media screen and (min-width:1280px){.title-vrUcGhJD{margin-bottom:0}}.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:EuclidCircularSemibold,sans-serif;font-size:40px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:40px;margin-bottom:0}html.theme-dark .title-vrUcGhJD h1{color:#fff}@media screen and (min-width:768px){.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;font-family:EuclidCircularSemibold,sans-serif;font-size:56px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:56px}}@media screen and (min-width:1280px){.title-vrUcGhJD h1{font-feature-settings:"tnum" on,"lnum" on;font-family:EuclidCircularSemibold,sans-serif;font-size:80px;font-style:normal;font-weight:600;letter-spacing:-.02em;line-height:80px}}.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:24px}html.theme-dark .secondary-vrUcGhJD{color:#d1d4dc}@media screen and (min-width:768px){.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:400;line-height:32px}}@media screen and (min-width:1280px){.secondary-vrUcGhJD{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:400;line-height:40px}}@media screen and (min-width:1440px){.secondary-vrUcGhJD{margin-bottom:23px}}.link-vrUcGhJD{color:#2962ff;transition:color .35s ease}html.theme-dark .link-vrUcGhJD{color:#2962ff}.link-vrUcGhJD:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-vrUcGhJD:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-vrUcGhJD:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-vrUcGhJD:hover{fill:#1e53e5;color:#1e53e5}}.link-vrUcGhJD:focus{outline:auto}.link-vrUcGhJD:focus-visible{outline:auto}.link-vrUcGhJD:focus:not(:focus-visible){outline:none}.link-vrUcGhJD:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-vrUcGhJD:active{fill:#1848cc;color:#1848cc}.title-X4q9jvDs{font-size:36px;font-style:normal;font-weight:600;line-height:44px;margin:0 20px}@media screen and (max-width:767px){.title-X4q9jvDs{font-size:28px;font-style:normal;font-weight:600;line-height:36px}}.secondary-X4q9jvDs{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-top:16px}@media screen and (max-width:767px){.secondary-X4q9jvDs{margin-top:12px}}.titleContainer-X4q9jvDs{color:#131722;margin-bottom:48px;text-align:center}html.theme-dark .titleContainer-X4q9jvDs{color:#d1d4dc}@media screen and (max-width:1530px){.titleContainer-X4q9jvDs{margin-bottom:32px}}@media screen and (max-width:767px){.titleContainer-X4q9jvDs{margin-bottom:24px}}.cards-xDk5tnZJ{margin-bottom:80px;max-width:min(100vw,1235px)}.container-xDk5tnZJ{display:grid;flex-direction:column;justify-content:center}@media screen and (min-width:1024px){.container-xDk5tnZJ{margin:20px;width:980px}}@media screen and (min-width:1480px){.container-xDk5tnZJ{width:1480px}}.vertical-alignment-height-xDk5tnZJ{max-height:100%}.block-wrap-xDk5tnZJ{display:block}@media screen and (max-width:1530px){.cards-xDk5tnZJ{margin-bottom:72px}}@media screen and (max-width:767px){.cards-xDk5tnZJ{margin-bottom:56px}}.termsCheckboxesContainer-IxYXs9Hp{grid-row-gap:20px;display:grid;grid-template-columns:100%;grid-template-rows:auto;margin-bottom:20px}.infoIcon-IxYXs9Hp,.nonProLable-IxYXs9Hp{align-items:center;display:flex}.infoIcon-IxYXs9Hp{margin-right:4px}.infoIcon-IxYXs9Hp svg{height:18px;width:18px}.swithcherContainer-OB6hG3Dv{margin:0}.swithcherContainer-RrUqgK2t{margin:0;padding:0}.trialSubtitle-RrUqgK2t{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:8px 0 12px}.changeTrialTerms-RrUqgK2t{margin-top:32px}.billing-cycle-item-1JAaqBgk{grid-gap:4px 12px;cursor:pointer;display:grid;grid-template-columns:min-content 1fr max-content;margin:0 -6px;padding:16px 6px}@media screen and (min-width:1024px){.billing-cycle-item-1JAaqBgk{grid-gap:4px 9px;margin:0;padding:16px 0 16px 16px}}.billing-cycle-item-1JAaqBgk:not(:last-child){border-bottom:1px solid #e0e3eb}html.theme-dark .billing-cycle-item-1JAaqBgk:not(:last-child){border-bottom:1px solid #434651}.billing-cycle-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;line-height:24px;text-transform:capitalize}html.theme-dark .billing-cycle-1JAaqBgk{color:#fff}.description-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:2/3;line-height:18px;margin-bottom:6px}html.theme-dark .description-1JAaqBgk{color:#787b86}.highlight-1JAaqBgk{background-color:#fff3e0;border-radius:6px;padding:8px 12px}html.theme-dark .highlight-1JAaqBgk{background-color:#132042}@media screen and (min-width:1280px){.highlight-1JAaqBgk{width:max-content}}.highlight-1JAaqBgk>*{color:#787b86}html.theme-dark .highlight-1JAaqBgk>*{color:#d1d4dc}.price-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:18px;font-style:normal;font-weight:600;grid-column:3/4;grid-row:1/2;line-height:24px;text-align:left}html.theme-dark .price-1JAaqBgk{color:#fff}.full-price-1JAaqBgk{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:3/4;line-height:18px;text-align:left}html.theme-dark .full-price-1JAaqBgk{color:#787b86}.disabled-1JAaqBgk{cursor:auto}.disabled-1JAaqBgk .billing-cycle-1JAaqBgk,.disabled-1JAaqBgk .description-1JAaqBgk,.disabled-1JAaqBgk .full-price-1JAaqBgk,.disabled-1JAaqBgk .price-1JAaqBgk{opacity:.4}.billing-cycles-qU0k2PxV{margin-top:16px}.button-c4OTPHT1{margin-top:32px}.vertical-alignment-height-z3YnaYkd{max-height:100%}.wrapper-z3YnaYkd{align-items:center;display:flex;flex-direction:column;padding-top:20px}@media screen and (min-width:1280px){.wrapper-z3YnaYkd{padding-top:0}}.container-z3YnaYkd{align-items:center;display:grid;gap:40px;grid-template-columns:minmax(auto,560px);justify-content:center;margin:0 20px}@media screen and (min-width:768px){.container-z3YnaYkd{grid-template-columns:560px}}@media screen and (min-width:1280px){.container-z3YnaYkd{grid-template-columns:repeat(2,560px)}}.icon-z3YnaYkd{color:#089981}.icon-z3YnaYkd svg{height:44px;width:44px}.title-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:28px;font-style:normal;font-weight:700;line-height:36px;margin-top:16px;text-align:center}html.theme-dark .title-z3YnaYkd{color:#fff}.cheque-z3YnaYkd{background-color:#f8f9fd;border-radius:16px;padding:24px}html.theme-dark .cheque-z3YnaYkd{background-color:#131722}.highlightBlock-z3YnaYkd{grid-column:1;justify-self:end;margin-top:20px;padding:20px}@media screen and (min-width:1280px){.highlightBlock-z3YnaYkd{grid-column:1/3;width:520px}}.grid-z3YnaYkd{display:grid}.flex-z3YnaYkd{align-content:center;align-items:center;display:flex;justify-content:space-between}.paymentInfo-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:16px;font-style:normal;font-weight:400;line-height:24px}.description-z3YnaYkd,.paymentInfo-z3YnaYkd{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.description-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-size:11px;font-style:normal;font-weight:400;letter-spacing:.4px;line-height:16px;margin-top:20px;padding-bottom:5px;text-transform:uppercase}.descriptionBlock-z3YnaYkd{max-width:730px;text-align:center}.border-z3YnaYkd{border-top:1px solid #e0e3eb}html.theme-dark .border-z3YnaYkd{border-top:1px solid #434651}.paddingRow-z3YnaYkd{grid-gap:24px;grid-template-columns:1fr max-content;margin-top:0;padding:10px 0}.paddingRow-z3YnaYkd:first-child{padding:0 0 10px}.paddingRow-z3YnaYkd:last-child{padding:10px 0 0}.trialPaddingRow-z3YnaYkd{padding:0 0 20px}.proPlanPaddingRow-z3YnaYkd{padding:20px 0}.trialFirstPaddingRow-z3YnaYkd{padding-bottom:24px}.exchangesListWrapper-z3YnaYkd{padding:20px 0}.productText-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;align-items:center;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px}html.theme-dark .productText-z3YnaYkd{color:#fff}.wrapperTotalCost-z3YnaYkd{padding-top:20px}.total-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:30px}html.theme-dark .total-z3YnaYkd{color:#fff}.totalCost-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#131722;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:20px;font-style:normal;font-weight:600;line-height:24px}html.theme-dark .totalCost-z3YnaYkd{color:#fff}.button-z3YnaYkd{margin-top:32px}.tax-z3YnaYkd{padding:20px 0}.trial-tax-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;grid-column:1/3;line-height:18px;margin-top:2px}html.theme-dark .trial-tax-z3YnaYkd{color:#787b86}.product-trial-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:400;line-height:28px}.cost-trial-z3YnaYkd,.product-trial-z3YnaYkd{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif}.cost-trial-z3YnaYkd{font-feature-settings:"tnum" on,"lnum" on;font-size:18px;font-style:normal;font-weight:600;line-height:24px}.agreement-switch-xGfsY7aB{margin-top:32px}.legend-xGfsY7aB{font-weight:700}.error-wrapper-xGfsY7aB{align-items:center;display:flex;height:28px;margin-top:12px}.error-icon-xGfsY7aB{display:flex;margin-right:auto}.switch-group-xGfsY7aB{grid-gap:20px;display:grid;grid-template-columns:min-content min-content}@media screen and (max-width:1530px){.agreement-switch-xGfsY7aB{margin-top:24px}}@media screen and (max-width:767px){.agreement-switch-xGfsY7aB{margin-top:16px}}.checkbox-PDtI2r2Z{color:#131722}.error-wrapper-PDtI2r2Z{align-items:center;display:flex;height:28px}.error-icon-PDtI2r2Z{display:flex;margin-right:auto}.occupation-GVt2ue8G{grid-gap:16px;display:grid;margin-top:16px}.nothing-selected-GVt2ue8G{color:#a3a6af;opacity:.6}html.theme-dark .nothing-selected-GVt2ue8G{color:#50535e}.occupation-menu-GVt2ue8G .nothing-selected-GVt2ue8G{padding-right:12px}.subscribers-inputs-okfUHTUP{grid-gap:16px;display:grid;grid-template-columns:1fr;margin-top:32px}.subscribers-inputs-okfUHTUP .dropdown-okfUHTUP{left:-5px;right:auto}@media screen and (min-width:768px){.subscribers-inputs-okfUHTUP{grid-template-columns:1fr 1fr}}.country-select-container-okfUHTUP{position:relative}.page-RRWggudg{background:linear-gradient(-62.99deg,#5b9cf6,#2962ff 50%,#1848cc)}@media screen and (min-width:768px){.page-RRWggudg{padding:80px 0}}.sheet-RRWggudg{background:#fff;border-radius:4px;box-sizing:border-box;color:#131722;font-size:16px;line-height:24px;margin:0 auto;max-width:760px;padding:16px 16px 32px;position:relative}html.theme-dark .sheet-RRWggudg{background:#131722;color:#d1d4dc}@media screen and (min-width:768px){.sheet-RRWggudg{padding:32px 32px 68px}}.page-title-RRWggudg{font-size:24px;font-weight:700;line-height:32px}.page-sub-title-RRWggudg{margin-top:8px}.exchange-agreement-description-RRWggudg{margin-top:32px}.exchange-file-link-RRWggudg{color:#2962ff;display:block;margin-top:12px;transition:color .35s ease}html.theme-dark .exchange-file-link-RRWggudg{color:#2962ff}.exchange-file-link-RRWggudg:visited{fill:#2962ff;color:#2962ff}html.theme-dark .exchange-file-link-RRWggudg:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.exchange-file-link-RRWggudg:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .exchange-file-link-RRWggudg:hover{fill:#1e53e5;color:#1e53e5}}.exchange-file-link-RRWggudg:focus{outline:auto}.exchange-file-link-RRWggudg:focus-visible{outline:auto}.exchange-file-link-RRWggudg:focus:not(:focus-visible){outline:none}.exchange-file-link-RRWggudg:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .exchange-file-link-RRWggudg:active{fill:#1848cc;color:#1848cc}.section-title-RRWggudg{font-size:20px;line-height:28px;margin-top:48px}.section-terms-description-RRWggudg{margin-top:12px}.questions-title-RRWggudg{font-size:18px;font-weight:700;line-height:26px;margin-top:32px}.questions-RRWggudg{padding-right:20px}.question-RRWggudg{margin-top:16px}.actions-RRWggudg{grid-gap:16px;display:grid;grid-auto-flow:row;margin-top:48px}@media screen and (min-width:768px){.actions-RRWggudg{grid-auto-flow:column;justify-content:flex-end}}.checkbox-margin-RRWggudg{margin-top:32px}.accept-terms-checkbox-margin-RRWggudg{margin-top:12px}@media screen and (max-width:1530px){.exchange-agreement-description-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.exchange-agreement-description-RRWggudg{margin-top:16px}}@media screen and (max-width:1530px){.section-title-RRWggudg{margin-top:32px}}@media screen and (max-width:767px){.section-title-RRWggudg{margin-top:24px}}@media screen and (max-width:1530px){.questions-title-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.questions-title-RRWggudg{margin-top:16px}}@media screen and (max-width:1530px){.actions-RRWggudg{margin-top:32px}}@media screen and (max-width:767px){.actions-RRWggudg{margin-top:24px}}@media screen and (max-width:1530px){.checkbox-margin-RRWggudg{margin-top:24px}}@media screen and (max-width:767px){.checkbox-margin-RRWggudg{margin-top:16px}}.container-gg7uxeBC{margin:0 auto;max-width:760px;padding:32px 32px 68px}@media screen and (max-width:767px){.container-gg7uxeBC{margin:0}}.container-XzdX3itL{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center}.icon-XzdX3itL{color:#42bda8}html.theme-dark .icon-XzdX3itL{color:#089981}.title-XzdX3itL{font-feature-settings:"tnum" on,"lnum" on;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:28px;margin-top:20px}@media screen and (max-width:479px){.title-XzdX3itL{margin-top:5px;text-align:center}}.descriptionBlock-XzdX3itL{margin-top:30px;max-width:730px;text-align:center} \ No newline at end of file diff --git a/charting_library/bundles/8994.447098231daab300c4b8.js b/charting_library/bundles/8994.447098231daab300c4b8.js new file mode 100644 index 00000000..f4ea48bb --- /dev/null +++ b/charting_library/bundles/8994.447098231daab300c4b8.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8994],{16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var s=n(59496);const r=s.forwardRef((e,t)=>{const{icon:n="",...r}=e;return s.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},39640:(e,t,n)=>{"use strict";function s(e,t,n,s,r){function o(r){if(e>r.timeStamp)return;const o=r.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===s&&(t.contains(o)||n(r))}return r.click&&s.addEventListener("click",o,!1),r.mouseDown&&s.addEventListener("mousedown",o,!1),r.touchEnd&&s.addEventListener("touchend",o,!1),r.touchStart&&s.addEventListener("touchstart",o,!1),()=>{s.removeEventListener("click",o,!1),s.removeEventListener("mousedown",o,!1),s.removeEventListener("touchend",o,!1),s.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>s})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>s,matchMediaMinMax:()=>r,setStyle:()=>o,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>l});const s=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),s=n.style;s.visibility="hidden",s.width="100px",s.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-i}return e}})();function r(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function o(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(i(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>i});var s=n(68722);let r=0,o=!1;function i(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,s.getCSSProperty)(t,"overflow"),r=(0,s.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,s.setStyle)(n,"right",(0,s.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,s.getScrollbarWidth)()+"px",o=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),o)){(0,s.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,s.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",o=!1}}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>o});var s=n(59496),r=n(39640);function o(e){const{click:t,mouseDown:n,touchEnd:o,touchStart:i,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,s.useRef)(null),d=(0,s.useRef)(new CustomEvent("timestamp").timeStamp);return(0,s.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:o,touchStart:i},s=a?a.current:u.current;return(0, +r.addOutsideEventListener)(d.current,s,l,c,e)},[t,n,o,i,l]),a||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var s=n(59496);class r extends s.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>s});const s=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>g,Menu:()=>_});var s=n(59496),r=n(97754),o=n.n(r),i=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),f=n(16059);const g=f;class _ extends s.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,s,r,o;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,i.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const f=u.height>m;if(f){(0,i.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:g,height:_}=u,v="function"==typeof a?a(g,_,d):a,y=h-(null!==(s=v.overrideWidth)&&void 0!==s?s:g)-0,C=(0,l.clamp)(v.x,0,Math.max(0,y)),w=0+p,x=d-(null!==(r=v.overrideHeight)&&void 0!==r?r:_)-0;let S=(0,l.clamp)(v.y,w,Math.max(w,x));if(v.forbidCorrectYCoord&&S{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{ +const e=document.activeElement,t=(0,i.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,children:i,minWidth:l,theme:u=f,className:d,maxHeight:h,onMouseOver:g,onMouseOut:_,onKeyDown:y,onFocus:C,onBlur:w}=this.props,{appearingMenuHeight:x,appearingMenuWidth:S,appearingPosition:M,isMeasureValid:b}=this.state;return s.createElement(m.MenuContext.Provider,{value:this},s.createElement(p.SubmenuHandler,null,s.createElement(c.SlotContext.Provider,{value:this._manager},s.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,className:o()(d,u.menuWrap,!b&&u.isMeasuring),style:{height:x,left:M&&M.x,minWidth:l,position:"fixed",top:M&&M.y,width:S},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:g, +onMouseOut:_,onKeyDown:y,onFocus:C,onBlur:w},s.createElement("div",{className:o()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==x?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},s.createElement(v,{className:u.menuBox},i)))),s.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function v(e){const t=(0,i.ensureNotNull)((0,s.useContext)(p.SubmenuContext)),n=s.useRef(null);return s.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(s=e.target,null===(r=n.current)||void 0===r?void 0:r.contains(s))))return;var s,r;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}_.contextType=p.SubmenuContext},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>o,getRootOverlapManager:()=>l});var s=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class o{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const s=this._document.createElement("div");if(s.style.position=t.position,s.style.zIndex=this._index.toString(),s.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(s);else if(t.index<=0)this._container.insertBefore(s,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(s,e)}}else"reverse"===t.direction?this._container.insertBefore(s,this._container.firstChild):this._container.appendChild(s);return this._windows.set(e,s),++this._index,s}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,s.ensureDefined)(i.get(t));{const t=new o(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}}, +29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>o});var s=n(59496),r=n(59064);const o=s.createContext(r.globalCloseDelegate)},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>c});var s=n(59496),r=n(87995),o=n(65718),i=n(27317),l=n(29197),a=n(58095);function c(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:u=!0,doNotCloseOn:d,onClickOutside:h,onClose:p,...m}=e,f=(0,s.useContext)(l.CloseDelegateContext),g=(0,a.useOutsideEvent)({handler:function(e){h&&h(e);if(!u)return;if(d&&e.target instanceof Node){const t=r.findDOMNode(d);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?s.createElement(o.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},s.createElement("span",{ref:g,style:{pointerEvents:"auto"}},s.createElement(i.Menu,{...m,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:f,ref:t},n))):null}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var s=n(59496),r=n(87995),o=n(9423),i=n(88216),l=n(50655);class a extends s.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(s.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const c=s.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>o});var s=n(59496);class r extends s.Component{shouldComponentUpdate(){return!1}render(){return s.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const o=s.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>r,SubmenuHandler:()=>o});var s=n(59496);const r=s.createContext(null);function o(e){const[t,n]=(0,s.useState)(null),o=(0,s.useRef)(null),i=(0,s.useRef)(new Map);return(0,s.useEffect)(()=>()=>{null!==o.current&&clearTimeout(o.current)},[]),s.createElement(r.Provider,{value:{current:t,setCurrent:function(e){null!==o.current&&(clearTimeout(o.current),o.current=null);null===t?n(e):o.current=setTimeout(()=>{o.current=null,n(e)},100)},registerSubmenu:function(e,t){return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some(t=>t(e))}}},e.children)}},40173:(e,t,n)=>{"use strict";function s(e,t,n={}){const s=Object.assign({},t);for(const r of Object.keys(t)){const o=n[r]||r;o in e&&(s[r]=[e[o],t[r]].join(" "))}return s}function r(e,t,n={}){return Object.assign({},e,s(e,t,n))}n.d(t,{weakComposeClasses:()=>s,mergeThemes:()=>r})}}]); \ No newline at end of file diff --git a/charting_library/bundles/8a2b9871f3bdcda5fc3c8633ef6eef01.svg b/charting_library/bundles/8a2b9871f3bdcda5fc3c8633ef6eef01.svg new file mode 100644 index 00000000..e7a719d7 --- /dev/null +++ b/charting_library/bundles/8a2b9871f3bdcda5fc3c8633ef6eef01.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8a93b4ee0b50a4c92979c153ece2bcbd.webp b/charting_library/bundles/8a93b4ee0b50a4c92979c153ece2bcbd.webp new file mode 100644 index 00000000..f935fa10 Binary files /dev/null and b/charting_library/bundles/8a93b4ee0b50a4c92979c153ece2bcbd.webp differ diff --git a/charting_library/bundles/8aac8f79a7e13ea8992d4cb7ea372de7.svg b/charting_library/bundles/8aac8f79a7e13ea8992d4cb7ea372de7.svg new file mode 100644 index 00000000..076f35f1 --- /dev/null +++ b/charting_library/bundles/8aac8f79a7e13ea8992d4cb7ea372de7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8b5301ac782c0b3c5144e7aae810127a.svg b/charting_library/bundles/8b5301ac782c0b3c5144e7aae810127a.svg new file mode 100644 index 00000000..6288942e --- /dev/null +++ b/charting_library/bundles/8b5301ac782c0b3c5144e7aae810127a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8bb689bddb6ff6d200d2aaaea2402f9f.svg b/charting_library/bundles/8bb689bddb6ff6d200d2aaaea2402f9f.svg new file mode 100644 index 00000000..dccb44ae --- /dev/null +++ b/charting_library/bundles/8bb689bddb6ff6d200d2aaaea2402f9f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8bb7f62042bd238c645c4213b08db12e.svg b/charting_library/bundles/8bb7f62042bd238c645c4213b08db12e.svg new file mode 100644 index 00000000..3182746c --- /dev/null +++ b/charting_library/bundles/8bb7f62042bd238c645c4213b08db12e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8bf52e61de18aca35d5a9e2f5ce14ae2.svg b/charting_library/bundles/8bf52e61de18aca35d5a9e2f5ce14ae2.svg new file mode 100644 index 00000000..ceca6d16 --- /dev/null +++ b/charting_library/bundles/8bf52e61de18aca35d5a9e2f5ce14ae2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8c3b568f1adc6a626342305c8f60b203.svg b/charting_library/bundles/8c3b568f1adc6a626342305c8f60b203.svg new file mode 100644 index 00000000..996bef68 --- /dev/null +++ b/charting_library/bundles/8c3b568f1adc6a626342305c8f60b203.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8c6b45f07db2a25f33f279d2da19dc3b.svg b/charting_library/bundles/8c6b45f07db2a25f33f279d2da19dc3b.svg new file mode 100644 index 00000000..b9607c16 --- /dev/null +++ b/charting_library/bundles/8c6b45f07db2a25f33f279d2da19dc3b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8cf9d19315d87fe9bb98469d22f78a72.svg b/charting_library/bundles/8cf9d19315d87fe9bb98469d22f78a72.svg new file mode 100644 index 00000000..64bd2715 --- /dev/null +++ b/charting_library/bundles/8cf9d19315d87fe9bb98469d22f78a72.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8d4be41f3f5d5923bc7574128be4cbe4.svg b/charting_library/bundles/8d4be41f3f5d5923bc7574128be4cbe4.svg new file mode 100644 index 00000000..d21a19cb --- /dev/null +++ b/charting_library/bundles/8d4be41f3f5d5923bc7574128be4cbe4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8dafbfd19f6d49a5e3ee8e41edc3264c.svg b/charting_library/bundles/8dafbfd19f6d49a5e3ee8e41edc3264c.svg new file mode 100644 index 00000000..107f19df --- /dev/null +++ b/charting_library/bundles/8dafbfd19f6d49a5e3ee8e41edc3264c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8dd2c8c165617fcccdc1a1e26990caba.svg b/charting_library/bundles/8dd2c8c165617fcccdc1a1e26990caba.svg new file mode 100644 index 00000000..938ac18b --- /dev/null +++ b/charting_library/bundles/8dd2c8c165617fcccdc1a1e26990caba.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8dd843123d511ff5adee498714213548.svg b/charting_library/bundles/8dd843123d511ff5adee498714213548.svg new file mode 100644 index 00000000..13572235 --- /dev/null +++ b/charting_library/bundles/8dd843123d511ff5adee498714213548.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8e74262607de7641e1443e206ecf02d8.svg b/charting_library/bundles/8e74262607de7641e1443e206ecf02d8.svg new file mode 100644 index 00000000..48d37871 --- /dev/null +++ b/charting_library/bundles/8e74262607de7641e1443e206ecf02d8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8ed702249e5be2de3aa98fb61301b23f.svg b/charting_library/bundles/8ed702249e5be2de3aa98fb61301b23f.svg new file mode 100644 index 00000000..68b727fa --- /dev/null +++ b/charting_library/bundles/8ed702249e5be2de3aa98fb61301b23f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8f0a3dbc200954cc05d71f00f94c9918.svg b/charting_library/bundles/8f0a3dbc200954cc05d71f00f94c9918.svg new file mode 100644 index 00000000..8693a64d --- /dev/null +++ b/charting_library/bundles/8f0a3dbc200954cc05d71f00f94c9918.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/8fdaa57f804bba3dc62f43d8ee0e76ce.svg b/charting_library/bundles/8fdaa57f804bba3dc62f43d8ee0e76ce.svg new file mode 100644 index 00000000..f4c088eb --- /dev/null +++ b/charting_library/bundles/8fdaa57f804bba3dc62f43d8ee0e76ce.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9040.ef836fce63b5692a00a3.js b/charting_library/bundles/9040.ef836fce63b5692a00a3.js new file mode 100644 index 00000000..c266e272 --- /dev/null +++ b/charting_library/bundles/9040.ef836fce63b5692a00a3.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9040],{40994:(e,s,a)=>{e.exports=a.p+"e5dccab09e22148aa733ae7e0962f0a4.svg"},51564:(e,s,a)=>{e.exports=a.p+"042ec21ea57ec386282b5e437ced14a0.svg"},70912:(e,s,a)=>{e.exports=a.p+"7087220f54cd749f878bda12494954eb.svg"},35398:(e,s,a)=>{e.exports=a.p+"f10291bc2bf8e3dea0bb036041d3e89f.svg"},149:(e,s,a)=>{e.exports=a.p+"ad82bf804943b35baebe7dff417a2904.svg"},87699:(e,s,a)=>{e.exports=a.p+"cd8614eed2c9ecd0111030d6ae43b07c.svg"},99451:(e,s,a)=>{e.exports=a.p+"ab0aa08606b4a9db4f1d6115cbff1246.svg"},83623:(e,s,a)=>{e.exports=a.p+"2dab12e8a6c93cdc361b475dcd7b3074.svg"},91184:(e,s,a)=>{e.exports=a.p+"8e74262607de7641e1443e206ecf02d8.svg"},83327:(e,s,a)=>{e.exports=a.p+"a1276c0533823933334715fc20c6742e.svg"},98863:(e,s,a)=>{e.exports=a.p+"de7f5bc35af05c24d9640b6fd0910bdf.svg"},49797:(e,s,a)=>{e.exports=a.p+"f5ed10ec1625eb393ada7073b9afd17e.svg"},64035:(e,s,a)=>{e.exports=a.p+"c2a5c0fb8c6ef112474fde18c2946640.svg"},76142:(e,s,a)=>{e.exports=a.p+"9b5c4a3a01194407c91bf996bba0c1a4.svg"},80792:(e,s,a)=>{e.exports=a.p+"cc72d282b465b57676eca56e46cf1e8c.svg"},14426:(e,s,a)=>{e.exports=a.p+"8c3b568f1adc6a626342305c8f60b203.svg"},99655:(e,s,a)=>{e.exports=a.p+"95a7715d1c9835b4b280996e2493639c.svg"},22136:(e,s,a)=>{e.exports=a.p+"3ce97881321c8c909b3d05f641fad866.svg"},44331:(e,s,a)=>{e.exports=a.p+"e7b7ff011682d59763997a75104c9979.svg"},82532:(e,s,a)=>{e.exports=a.p+"ec6d305d7d06a84ea3f54c3d6db5e83a.svg"},12345:(e,s,a)=>{e.exports=a.p+"e7ed49ce872797c8630fd5f8446ffbee.svg"},5214:(e,s,a)=>{e.exports=a.p+"86e22a99d9d9ee81924e0b438e204dd7.svg"},56480:(e,s,a)=>{e.exports=a.p+"d369378aefaaed47363bffaedb308143.svg"},81665:(e,s,a)=>{e.exports=a.p+"d1f58926528e2a3debceb59dff7e58b0.svg"},56830:(e,s,a)=>{e.exports=a.p+"3fd81bada8bbd48683f94d307a01fac4.svg"},85503:(e,s,a)=>{e.exports=a.p+"c7b2bfd6a12a1c0991a575c3b31ad7b6.svg"},31969:(e,s,a)=>{e.exports=a.p+"95127900436e4305bca6653ca8d9957f.svg"},33663:(e,s,a)=>{e.exports=a.p+"65876f64a690a9c40a4f3d84367678ad.svg"},55451:(e,s,a)=>{e.exports=a.p+"47b1e1cc6cc78ac578822f22213f5eb3.svg"},2664:(e,s,a)=>{e.exports=a.p+"0788cb238b1a4b247dc64b6520a1de87.svg"},47141:(e,s,a)=>{e.exports=a.p+"f869295c1d9ceedfc8c6ddd92efb8ca2.svg"},26545:(e,s,a)=>{e.exports=a.p+"de4367c3fa9f075bbf58943188ba32b3.svg"},54677:(e,s,a)=>{e.exports=a.p+"a7de26af1e65164293180f1c5ddcf8de.svg"},64539:(e,s,a)=>{e.exports=a.p+"6cc5af4752574eb61f0c8075ca1b7881.svg"},1250:(e,s,a)=>{e.exports=a.p+"6b4a6bb049ac33e322b700e50fc5b926.svg"},38720:(e,s,a)=>{e.exports=a.p+"5c568c6ba25fd3ccffedc7df6cdbcfc6.svg"},67839:(e,s,a)=>{e.exports=a.p+"a6b73d85f90f4b55b4d8560f175fb635.svg"},82211:(e,s,a)=>{e.exports=a.p+"bc4c0e86357177d9b1ed96f8568684d1.svg"},51945:(e,s,a)=>{e.exports=a.p+"ed5c3ae146310a1a24fcde23e7b60bb1.svg"},49377:(e,s,a)=>{e.exports=a.p+"869b5f01bc7105cc3788b584c5bc1bef.svg"},14064:(e,s,a)=>{e.exports=a.p+"69938b544b1d77792db3e429284a98c1.svg"},53593:(e,s,a)=>{e.exports=a.p+"2d9e49752791b82092387b7ffd7e427f.svg"},56561:(e,s,a)=>{ +e.exports=a.p+"81f2326cf9c77d248b96f6bc5f80c13d.svg"},61894:(e,s,a)=>{e.exports=a.p+"5962c52be69d3c2cb79834452a20bf16.svg"},25927:(e,s,a)=>{e.exports=a.p+"a54eae35e396c3f9ec2c154c8389933e.svg"},31089:(e,s,a)=>{e.exports=a.p+"1a129ec3eee7754e48466838566ab14e.svg"},76736:(e,s,a)=>{e.exports=a.p+"ab02a73c827877d701e4dd32eb729ed9.svg"},64820:(e,s,a)=>{e.exports=a.p+"ed080993df791efad30f99a0e698601e.svg"},30388:(e,s,a)=>{e.exports=a.p+"6e8ce773ae74687cfa9576d1210fe5f6.svg"},31273:(e,s,a)=>{e.exports=a.p+"e8b18b343c3c9e2d653fc3a550de819f.svg"},74573:(e,s,a)=>{e.exports=a.p+"696572b26ab674046f403ec18f2b5e5d.svg"},50579:(e,s,a)=>{e.exports=a.p+"32cface5c212ebc32a5fd783e6072dd5.svg"},74478:(e,s,a)=>{e.exports=a.p+"cf8abee42c4cb03e0a2105caec8909eb.svg"},7494:(e,s,a)=>{e.exports=a.p+"52d1261e628f634b5e62c0d6071d82c1.svg"},8792:(e,s,a)=>{e.exports=a.p+"27419b53618cdc6022ec621a38a2e27e.svg"},84126:(e,s,a)=>{e.exports=a.p+"c3bf6a8b432dba36fcdb79e0e7b892e4.svg"},54672:(e,s,a)=>{e.exports=a.p+"52452294a138eb19309852a5bba8fdf2.svg"},69386:(e,s,a)=>{e.exports=a.p+"883627aca446035b3986466acc71a69b.svg"},8524:(e,s,a)=>{e.exports=a.p+"3332346bb9d5603152808536c3251c00.svg"},5555:(e,s,a)=>{e.exports=a.p+"5dfba3ffcfb87b70fcff70fe469745e0.svg"},25008:(e,s,a)=>{e.exports=a.p+"9a4ecd71d78aab6194857007fcc20464.svg"},79649:(e,s,a)=>{e.exports=a.p+"6474d98d9f212d0a5b3edc7c81fce0a4.svg"},68614:(e,s,a)=>{e.exports=a.p+"386646a0d8b2c0e75d201d07083beb35.svg"},28523:(e,s,a)=>{e.exports=a.p+"c416c4db2f76c13e5cfb1cd73b057264.svg"},57070:(e,s,a)=>{e.exports=a.p+"0f7af004dd47aafc17272eca6e543808.svg"},86474:(e,s,a)=>{e.exports=a.p+"fe631cd46d01b4816097228f3591db19.svg"},68198:(e,s,a)=>{e.exports=a.p+"062c248cf8d2c525bd9526653ab95657.svg"},39721:(e,s,a)=>{e.exports=a.p+"e62b523f0ed069cf4e2afa903fece44f.svg"},30412:(e,s,a)=>{e.exports=a.p+"1d3eecfc50933a84c28985cffe2fbb4e.svg"},64211:(e,s,a)=>{e.exports=a.p+"fe924d5d871ef07299ad5e11db2c8a70.svg"},76945:(e,s,a)=>{e.exports=a.p+"4c2b4fdaa4afbe49682badbe3e6d5092.svg"},30537:(e,s,a)=>{e.exports=a.p+"650a8fb9d8083fd5887fa14d5a48b917.svg"},97324:(e,s,a)=>{e.exports=a.p+"a846e4087642a8ea8bf05187847140c6.svg"},33594:(e,s,a)=>{e.exports=a.p+"e561e7a86e83dab817de9b4fba1be15e.svg"},1197:(e,s,a)=>{e.exports=a.p+"6c45a28c69aad8a75655bdd555d86f68.svg"},25387:(e,s,a)=>{e.exports=a.p+"dddac09a7572568f517e22700f4c8474.svg"},3483:(e,s,a)=>{e.exports=a.p+"e2fa422bd9aedee688fb7765794fd5c2.svg"},75157:(e,s,a)=>{e.exports=a.p+"9e8a00c2e2b16d8ece1e344906002df9.svg"},80823:(e,s,a)=>{e.exports=a.p+"cddf3ae477d555d4eed060347c2268eb.svg"},78538:(e,s,a)=>{e.exports=a.p+"4bc8348594c9430c735366fc72d9f36b.svg"},52138:(e,s,a)=>{e.exports=a.p+"e8e5b1c68e4f95acd9322863c0b363f6.svg"},96438:(e,s,a)=>{e.exports=a.p+"6cfd08ce7e4a1dbbd15225a8bf79a4e3.svg"},52813:(e,s,a)=>{e.exports=a.p+"44239307acfe2269d7827563273f2bfa.svg"},28090:(e,s,a)=>{e.exports=a.p+"4752624c631776e721a978174febf46b.svg"},94429:(e,s,a)=>{e.exports=a.p+"953f6834f68153142229a6d2237076cf.svg"},35740:(e,s,a)=>{e.exports=a.p+"5579d8b53d2a1a0e6007198f97b91039.svg"}, +13906:(e,s,a)=>{e.exports=a.p+"584a79e77d4432cf0ca27a1063d9ba0d.svg"},51607:(e,s,a)=>{e.exports=a.p+"2c713a3aca13638904167e66cf9eeab0.svg"},18363:(e,s,a)=>{e.exports=a.p+"4791e97b8673d0b0ec66d93ef3f02bb0.svg"},71327:(e,s,a)=>{e.exports=a.p+"f8f54d8b574077d60ffb81a4bc19ed57.svg"},56143:(e,s,a)=>{e.exports=a.p+"dea459c5c4ebb211e652e99cd6ba6354.svg"},36982:(e,s,a)=>{e.exports=a.p+"8bb7f62042bd238c645c4213b08db12e.svg"},56832:(e,s,a)=>{e.exports=a.p+"157dc69b8355dc521689079cb859216d.svg"},79317:(e,s,a)=>{e.exports=a.p+"885565ce0ebf9919066eb4196290c711.svg"},95892:(e,s,a)=>{e.exports=a.p+"1eafeadca5e616cc4525be1fb1caafc7.svg"},96250:(e,s,a)=>{e.exports=a.p+"8b5301ac782c0b3c5144e7aae810127a.svg"},62769:(e,s,a)=>{e.exports=a.p+"9d7b9ed22b710cbeeb852226989e1bc7.svg"},10472:(e,s,a)=>{e.exports=a.p+"a6ccd18373271b1e45b1ca35f8825c8d.svg"},2279:(e,s,a)=>{e.exports=a.p+"23b30bfe2f6b2e6edf84470252fa5d54.svg"},3311:(e,s,a)=>{e.exports=a.p+"c4ba5e799038b2fac1d8a5cee58aac2d.svg"},65665:(e,s,a)=>{e.exports=a.p+"e97d7f751ade192748c3e05a54ead255.svg"},29452:(e,s,a)=>{e.exports=a.p+"d9da6caea5ca1cd55417f1978b047b13.svg"},31451:(e,s,a)=>{e.exports=a.p+"2e59cb1da31075c39dc3b0c1e75e5fd7.svg"},33881:(e,s,a)=>{e.exports=a.p+"2aecc106c5eb83ecada117376a8c8f2a.svg"},83145:(e,s,a)=>{e.exports=a.p+"32c094ea79fdd66912058ade88c27860.svg"},95970:(e,s,a)=>{e.exports=a.p+"6ca6e081b7d7a80d94f38bf6ef9db3fa.svg"},62888:(e,s,a)=>{e.exports=a.p+"118186fbbe46a3201d049161d17aa76a.svg"},55108:(e,s,a)=>{e.exports=a.p+"a83c7f196f69856c6661350dcd280ca2.svg"},82885:(e,s,a)=>{e.exports=a.p+"b6a66bf5808bbb5de2d3bf45a5971fbd.svg"},19042:(e,s,a)=>{e.exports=a.p+"9d67227cfad5ec4cdbe9f0cd169856c5.svg"},94550:(e,s,a)=>{e.exports=a.p+"6d9fd8899d084d7f9698d9b2d5862c00.svg"},27312:(e,s,a)=>{e.exports=a.p+"e01f83be117e562a91ac14daa904e198.svg"},5765:(e,s,a)=>{e.exports=a.p+"802533204295f3c58b0072fdd6d46d1d.svg"},76003:(e,s,a)=>{e.exports=a.p+"c8d5bc45cecd625d597da5bc33011da7.svg"},33482:(e,s,a)=>{e.exports=a.p+"52d36f2ef75daabe5d00dc144cc9d4d6.svg"},75456:(e,s,a)=>{e.exports=a.p+"6ae825abf83e791f0247b4143d5a85ad.svg"},76126:(e,s,a)=>{e.exports=a.p+"1985b030fba93c1acee7ccb45534cabd.svg"},31781:(e,s,a)=>{e.exports=a.p+"b1cad18bd8a6be021c3177353bda5345.svg"},17678:(e,s,a)=>{e.exports=a.p+"c33468197e6cfac63316a6cd3a67cd6c.svg"},88833:(e,s,a)=>{e.exports=a.p+"a825a6c4082ba46b45131ab0bd16d96c.svg"},78210:(e,s,a)=>{e.exports=a.p+"8c6b45f07db2a25f33f279d2da19dc3b.svg"},50998:(e,s,a)=>{e.exports=a.p+"46eec22a6748063a64a9d7fdce4efc95.svg"},78113:(e,s,a)=>{e.exports=a.p+"e129b4d2d79d07ecf5b6b7c4d10b83fb.svg"},22547:(e,s,a)=>{e.exports=a.p+"f15ab85cea9ea5749e2befe786e1c9d3.svg"},51177:(e,s,a)=>{e.exports=a.p+"291ae25931a5df9f61006569e1fb2819.svg"},85210:(e,s,a)=>{e.exports=a.p+"428cfc463b541dfa1321f35af861fada.svg"},68618:(e,s,a)=>{e.exports=a.p+"548b90a6603f1a11a0104f3be28274d5.svg"},31829:(e,s,a)=>{e.exports=a.p+"b1ee1e8ecc3caeb6e4e1dd6d5a45e2c8.svg"},75800:(e,s,a)=>{e.exports=a.p+"ebca4cec794b70db74c63a7e6aca8ed8.svg"},32890:(e,s,a)=>{ +e.exports=a.p+"9b979eba8adb5bda46b48a4d26ccf2de.svg"},76401:(e,s,a)=>{e.exports=a.p+"5824a756d7227972e0d24375246ee236.svg"},67432:(e,s,a)=>{e.exports=a.p+"d4b8b8cb1909ea6d3f0a3182c8ec0a96.svg"},50760:(e,s,a)=>{e.exports=a.p+"2d4c81f5074ead4d91e24dce1782b828.svg"},4067:(e,s,a)=>{e.exports=a.p+"2c22bc38345265a3c18504acca3e0d56.svg"},68105:(e,s,a)=>{e.exports=a.p+"66b0098c00f242056c72b05aa3796de9.svg"},74457:(e,s,a)=>{e.exports=a.p+"7ef32ae8f080d2d6c6f0784e334e30e1.svg"},45802:(e,s,a)=>{e.exports=a.p+"49d1ea5b7ccbfbae29bbc21c506e617c.svg"},39579:(e,s,a)=>{e.exports=a.p+"ec31494f78cee41a02dbfbafba232515.svg"},83999:(e,s,a)=>{e.exports=a.p+"53fe5ab19eeaaea654235a0bdb7f71f1.svg"},7762:(e,s,a)=>{e.exports=a.p+"efef6421ade56c03ee355809562ecbc0.svg"},32745:(e,s,a)=>{e.exports=a.p+"7fb90d13db9ad6d2ddec01d48b241d85.svg"},88393:(e,s,a)=>{e.exports=a.p+"192a7bbb73684d1f6dae83700fb21173.svg"},27882:(e,s,a)=>{e.exports=a.p+"43c5b49b5b8e01e4505c7c251746a8b7.svg"},9403:(e,s,a)=>{e.exports=a.p+"74009555a8dd165b067723f234f915a5.svg"},93184:(e,s,a)=>{e.exports=a.p+"7231b99c7054c64e47372a672c441a6d.svg"},22629:(e,s,a)=>{e.exports=a.p+"e30c321e33a1859340a2bb6037bff515.svg"},72312:(e,s,a)=>{e.exports=a.p+"492d9a718a2c25d234151474b0206977.svg"},76482:(e,s,a)=>{e.exports=a.p+"7042e54b024475a394cb498377852b96.svg"},1779:(e,s,a)=>{e.exports=a.p+"c65f8d4a514fd5839e611a6c7f146acb.svg"},1137:(e,s,a)=>{e.exports=a.p+"aca94e827472fdbe847af7982d2e10f1.svg"},41647:(e,s,a)=>{e.exports=a.p+"27ed1587b819df769e0fcdb40c17bc0a.svg"},97163:(e,s,a)=>{e.exports=a.p+"455e18987c2c85ec010fd1456751ab61.svg"},79231:(e,s,a)=>{e.exports=a.p+"8bf52e61de18aca35d5a9e2f5ce14ae2.svg"},33644:(e,s,a)=>{e.exports=a.p+"f3530d099857810e5d04b52373b1cb41.svg"},6140:(e,s,a)=>{e.exports=a.p+"31dc9f78a1a526c14002cfcece0cc5d9.svg"},98745:(e,s,a)=>{e.exports=a.p+"61da80123bd4db4b54f857a53d7718da.svg"},34997:(e,s,a)=>{e.exports=a.p+"f4d0c0597f2db7dcd7cd774b822de366.svg"},76710:(e,s,a)=>{e.exports=a.p+"c229767ec3f6e517744b027e36b24831.svg"},27975:(e,s,a)=>{e.exports=a.p+"53f95b864ea8104267dc566bfb803a23.svg"},41778:(e,s,a)=>{e.exports=a.p+"c26643f969ec665d63ddfe7dbcf16871.svg"},58438:(e,s,a)=>{e.exports=a.p+"5980ed8829231afb216d42cd14dfc746.svg"},75914:(e,s,a)=>{e.exports=a.p+"33ead7196e74520279899683905fa945.svg"},43418:(e,s,a)=>{e.exports=a.p+"e9a1bd918b9924de48740078fc49f7c8.svg"},57746:(e,s,a)=>{e.exports=a.p+"1098c7da5fcb389d9ca6f1b830c9dc7b.svg"},95838:(e,s,a)=>{e.exports=a.p+"52be2cab70919abd4ba4dffefe331384.svg"},75671:(e,s,a)=>{e.exports=a.p+"47f09a2aa1752e19fb33290fcc46c47a.svg"},58578:(e,s,a)=>{e.exports=a.p+"0bfbdf5c0e06948136651805ba740256.svg"},3827:(e,s,a)=>{e.exports=a.p+"3952276d502a2b3659f3cb3c163e9541.svg"},72028:(e,s,a)=>{e.exports=a.p+"8cf9d19315d87fe9bb98469d22f78a72.svg"},21628:(e,s,a)=>{e.exports=a.p+"4f21dea2767b186965157eba97f085b2.svg"},13452:(e,s,a)=>{e.exports=a.p+"7fc3c4075dd1ab62905126ce5623a7b5.svg"},84943:(e,s,a)=>{e.exports=a.p+"939c709099ed020091dc58cbd5207cbd.svg"},2854:(e,s,a)=>{e.exports=a.p+"a685e425d7c7db0c14c7b97352f4dd4b.svg"},93202:(e,s,a)=>{ +e.exports=a.p+"a86b168bc533484e6274628d63888308.svg"},16702:(e,s,a)=>{e.exports=a.p+"ea2822078cff5228899c74ce3525125c.svg"},79609:(e,s,a)=>{e.exports=a.p+"f073a4ed2f2edbf549bad8b3c546af03.svg"},304:(e,s,a)=>{e.exports=a.p+"fd1f2a821ac21b8c757f95ba0b5032e0.svg"},78154:(e,s,a)=>{e.exports=a.p+"c4978c8d35ff46ddde11765f574e2586.svg"},28199:(e,s,a)=>{e.exports=a.p+"33e4a650ec09d861a47f0f2c2d912774.svg"},99436:(e,s,a)=>{e.exports=a.p+"e097b411b3e34f5a4a979cc428c289b1.svg"},55325:(e,s,a)=>{e.exports=a.p+"9b10f00f014bc0f9d1a452e07a0d161a.svg"},51237:(e,s,a)=>{e.exports=a.p+"b755b85a9536ead06ef26ecd24724e0c.svg"},30267:(e,s,a)=>{e.exports=a.p+"e33a72eb50fe28dc0289c2257014fc6a.svg"},16336:(e,s,a)=>{e.exports=a.p+"63bccd48089718d7044ce87890d1af22.svg"},96356:(e,s,a)=>{e.exports=a.p+"0dccec7ce2c9a2fe85d49d9ab8f1480b.svg"},72361:(e,s,a)=>{e.exports=a.p+"1bf2c1b06e7ab37b765dd3f5b891a241.svg"},63801:(e,s,a)=>{e.exports=a.p+"d3c2e6ce4be2a5b1bf9ca5a18d2d1238.svg"},8362:(e,s,a)=>{e.exports=a.p+"107e8251a0eb3758b47077295437a81e.svg"},75842:(e,s,a)=>{e.exports=a.p+"1e2e718c683b1d6325a427dff2d6c78f.svg"},61851:(e,s,a)=>{e.exports=a.p+"e8e5b1c68e4f95acd9322863c0b363f6.svg"},28302:(e,s,a)=>{e.exports=a.p+"36a36b038ee2b086d99f0dff97512fec.svg"},75064:(e,s,a)=>{e.exports=a.p+"e40ab9cc58df416f4b384648a7af369c.svg"},25878:(e,s,a)=>{e.exports=a.p+"d17555267bdf6ed9e01a7f4d525ef080.svg"},81617:(e,s,a)=>{e.exports=a.p+"3daf0fa39e9e67bfc0f12166dd01adfd.svg"},66278:(e,s,a)=>{e.exports=a.p+"62bf57b352114c25f178d892fef2c1d8.svg"},65306:(e,s,a)=>{e.exports=a.p+"6169c60c8d04924d194452dff1191b8e.svg"},57752:(e,s,a)=>{e.exports=a.p+"60542233074e88f72cb7738cd671069f.svg"},39252:(e,s,a)=>{e.exports=a.p+"85398f0b883442712a726600cec9c27d.svg"},6427:(e,s,a)=>{e.exports=a.p+"6ce4af2df856e7fd43f8786a3c3a2e5d.svg"},94444:(e,s,a)=>{e.exports=a.p+"bbd4456a4e25c099b7f49fe4f00e032f.svg"},56925:(e,s,a)=>{e.exports=a.p+"858bcfa8c8d9c8d8551fcb9a8cdc2499.svg"},48022:(e,s,a)=>{e.exports=a.p+"f071c28bf387d220afe4bd2c6f60323a.svg"},55117:(e,s,a)=>{e.exports=a.p+"bf89688b20c1bf96847619b6059daaf5.svg"},74319:(e,s,a)=>{e.exports=a.p+"c5bcb60600a07405427fb25b45bc6e53.svg"},40491:(e,s,a)=>{e.exports=a.p+"7cc409e9b4b8e2ad95146d0ae8be70e5.svg"},89079:(e,s,a)=>{e.exports=a.p+"5c347ffc08d08d0f94ff06366781743d.svg"},58092:(e,s,a)=>{e.exports=a.p+"cab55de6e22849402b5982a8e390c8fb.svg"},53663:(e,s,a)=>{e.exports=a.p+"ff8661f5c81b7137caa81145ed74b154.svg"},13654:(e,s,a)=>{e.exports=a.p+"54405675d653aa1a161b6abcb43291ed.svg"},91315:(e,s,a)=>{e.exports=a.p+"ca21ee51c72ab8851ed796a469ec00b8.svg"},38451:(e,s,a)=>{e.exports=a.p+"2fc23c00813c60848572b5d28ee7dfb9.svg"},71765:(e,s,a)=>{e.exports=a.p+"bf56aba49a57eba71be490bc83a7071c.svg"},90823:(e,s,a)=>{e.exports=a.p+"832264ecc6d4da63cbcff71ea9186b3e.svg"},98886:(e,s,a)=>{e.exports=a.p+"9f9bbea98fd39966101544a0c55e14e5.svg"},2891:(e,s,a)=>{e.exports=a.p+"b31adf0f45d2fb04730c422394eb6ae2.svg"},29434:(e,s,a)=>{e.exports=a.p+"3d1dbbd08f14657e981c2a0759373a97.svg"},91991:(e,s,a)=>{e.exports=a.p+"111e5d0e64351b2f7ac606b653993cbe.svg"}, +39723:(e,s,a)=>{e.exports=a.p+"c7232e3bcddb5cf2fedab803b86d4e88.svg"},93830:(e,s,a)=>{e.exports=a.p+"8dd843123d511ff5adee498714213548.svg"},91899:(e,s,a)=>{e.exports=a.p+"b119250cad0725ccc4f8288726f56f6b.svg"},43642:(e,s,a)=>{e.exports=a.p+"d92d6ecce7375134958d8e623f59dd3e.svg"},33228:(e,s,a)=>{e.exports=a.p+"2f71391908131b082aab4d129f7b5272.svg"},7327:(e,s,a)=>{e.exports=a.p+"5b42511a0696d2cbb686e323db88556c.svg"},47246:(e,s,a)=>{e.exports=a.p+"f89dbcaf40a5563735910a76243dc1b3.svg"},85738:(e,s,a)=>{e.exports=a.p+"ccac1949542b285e1ce6a4fe7f67d942.svg"},80907:(e,s,a)=>{e.exports=a.p+"70717ad43398a435ef78d38d226c6c37.svg"},11055:(e,s,a)=>{e.exports=a.p+"727ca3bc1d3c5915d9ccc4ba3eee978a.svg"},60296:(e,s,a)=>{e.exports=a.p+"a61ec3126315febd0304300cb8098ae5.svg"},63166:(e,s,a)=>{e.exports=a.p+"cbd8834b7f336d8d6aa529e87ea89c5d.svg"},61203:(e,s,a)=>{e.exports=a.p+"3bceb8e8c9086be15f6d9034fbb8ab90.svg"},79851:(e,s,a)=>{e.exports=a.p+"3f0b266c14a3e0a41685729a6dd63515.svg"},46831:(e,s,a)=>{e.exports=a.p+"6dfaf2afda613a97ef15734acea4f691.svg"},36765:(e,s,a)=>{e.exports=a.p+"9e8a00c2e2b16d8ece1e344906002df9.svg"},56337:(e,s,a)=>{e.exports=a.p+"b51b73c5dc965960d789d4616c9372e5.svg"},35561:(e,s,a)=>{e.exports=a.p+"752c67ea7ac85fb0cd2f01623bd213bc.svg"},82746:(e,s,a)=>{e.exports=a.p+"8ed702249e5be2de3aa98fb61301b23f.svg"},2269:(e,s,a)=>{e.exports=a.p+"9efe6680cb2318c0ff0e818ade988fa1.svg"},85836:(e,s,a)=>{e.exports=a.p+"842fcb191878b2812c044528ff533832.svg"},22162:(e,s,a)=>{e.exports=a.p+"743d0db623f41a2597c1e441233e4a78.svg"},1331:(e,s,a)=>{e.exports=a.p+"71968c0503e30bbb4fe32b57c8fdd68d.svg"},65204:(e,s,a)=>{e.exports=a.p+"fba03cbebf73ac8a537f901ec25dd0be.svg"},67008:(e,s,a)=>{e.exports=a.p+"f8385849a7dacc12bc2195528ceb1085.svg"},65407:(e,s,a)=>{e.exports=a.p+"727813bcf45ceaaa481f086bcd697b95.svg"},97622:(e,s,a)=>{e.exports=a.p+"e8e5b1c68e4f95acd9322863c0b363f6.svg"},44656:(e,s,a)=>{e.exports=a.p+"b8b5ebf760eccf4bd10d0c3ccd100800.svg"},77042:(e,s,a)=>{e.exports=a.p+"115d41d15c6f506cd74214a1b277d0c9.svg"},64917:(e,s,a)=>{e.exports=a.p+"8f0a3dbc200954cc05d71f00f94c9918.svg"},48310:(e,s,a)=>{e.exports=a.p+"8aac8f79a7e13ea8992d4cb7ea372de7.svg"},28936:(e,s,a)=>{e.exports=a.p+"b9a5c368e039eba4bf66e0f75e899eb7.svg"},41375:(e,s,a)=>{e.exports=a.p+"07958991e829b26257b34748fe61b908.svg"},19545:(e,s,a)=>{e.exports=a.p+"ba8de9bab341fb25cc068a78171500ba.svg"},51233:(e,s,a)=>{e.exports=a.p+"7eb7a15aebedb479210436be19e02f7f.svg"},62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},40872:()=>{},26996:(e,s,a)=>{"use strict";a.d(s,{Loader:()=>p});var g,f=a(59496),c=a(97754),r=a(74991),b=a(62092),d=a.n(b);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(g||(g={}));class p extends f.PureComponent{ +constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:g.Initial}}render(){const{className:e,color:s="black",size:a="medium",staticPosition:g}=this.props,r=c(d().item,d()[s],d()[a]);return f.createElement("span",{className:c(d().loader,g&&d().static,this._getStateClass(),e)},f.createElement("span",{className:r}),f.createElement("span",{className:r}),f.createElement("span",{className:r}))}componentDidMount(){this.setState({state:g.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:g.Active})},2*r.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case g.Initial:return d()["loader-initial"];case g.Appear:return d()["loader-appear"];default:return""}}}},44065:(e,s,a)=>{"use strict";a.d(s,{flagUrl:()=>r});var g=a(24633);const f={erl:"eu",uk:"gb",bitcoin:"btc"};function c(e,s){e in f&&(e=f[e]);try{return a(33207)("./flag-square-"+e+".svg")}catch(e){return function(e){return e===g.StdTheme.Dark?a(1137):a(41647)}(s)}}function r(e){return c(e)}},54325:(e,s,a)=>{"use strict";a.d(s,{toCountryCode:()=>f});(0,a(98125).getLogger)("Lib.CountryCode");const g=/^[A-Z]{2}$/;function f(e){if(function(e){return g.test(e)}(e))return e;throw new Error("Invalid country code")}},33207:(e,s,a)=>{var g={"./flag-square-ad.svg":40994,"./flag-square-ae.svg":51564,"./flag-square-af.svg":70912,"./flag-square-ag.svg":35398,"./flag-square-ai.svg":149,"./flag-square-al.svg":87699,"./flag-square-am.svg":99451,"./flag-square-ao.svg":83623,"./flag-square-ar.svg":91184,"./flag-square-as.svg":83327,"./flag-square-at.svg":98863,"./flag-square-au.svg":49797,"./flag-square-aw.svg":64035,"./flag-square-ax.svg":76142,"./flag-square-az.svg":80792,"./flag-square-ba.svg":14426,"./flag-square-bb.svg":99655,"./flag-square-bd.svg":22136,"./flag-square-be.svg":44331,"./flag-square-bf.svg":82532,"./flag-square-bg.svg":12345,"./flag-square-bh.svg":5214,"./flag-square-bi.svg":56480,"./flag-square-bj.svg":81665,"./flag-square-bl.svg":56830,"./flag-square-bm.svg":85503,"./flag-square-bn.svg":31969,"./flag-square-bo.svg":33663,"./flag-square-bq.svg":55451,"./flag-square-br.svg":2664,"./flag-square-bs.svg":47141,"./flag-square-bt.svg":26545,"./flag-square-btc.svg":54677,"./flag-square-bw.svg":64539,"./flag-square-by.svg":1250,"./flag-square-bz.svg":38720,"./flag-square-ca.svg":67839,"./flag-square-cc.svg":82211,"./flag-square-cd.svg":51945,"./flag-square-cf.svg":49377,"./flag-square-cg.svg":14064,"./flag-square-ch.svg":53593,"./flag-square-ci.svg":56561,"./flag-square-ck.svg":61894,"./flag-square-cl.svg":25927,"./flag-square-cm.svg":31089,"./flag-square-cn.svg":76736,"./flag-square-co.svg":64820,"./flag-square-cr.svg":30388,"./flag-square-cu.svg":31273,"./flag-square-cv.svg":74573,"./flag-square-cw.svg":50579,"./flag-square-cx.svg":74478,"./flag-square-cy.svg":7494,"./flag-square-cz.svg":8792,"./flag-square-de.svg":84126,"./flag-square-dj.svg":54672,"./flag-square-dk.svg":69386,"./flag-square-dm.svg":8524, +"./flag-square-do.svg":5555,"./flag-square-dz.svg":25008,"./flag-square-ec.svg":79649,"./flag-square-ee.svg":68614,"./flag-square-eg.svg":28523,"./flag-square-eh.svg":57070,"./flag-square-er.svg":86474,"./flag-square-es.svg":68198,"./flag-square-et.svg":39721,"./flag-square-eu.svg":30412,"./flag-square-fi.svg":64211,"./flag-square-fj.svg":76945,"./flag-square-fk.svg":30537,"./flag-square-fm.svg":97324,"./flag-square-fo.svg":33594,"./flag-square-forex.svg":1197,"./flag-square-fr.svg":25387,"./flag-square-ga.svg":3483,"./flag-square-gb.svg":75157,"./flag-square-gd.svg":80823,"./flag-square-ge.svg":78538,"./flag-square-gf.svg":52138,"./flag-square-gg.svg":96438,"./flag-square-gh.svg":52813,"./flag-square-gi.svg":28090,"./flag-square-gl.svg":94429,"./flag-square-gm.svg":35740,"./flag-square-gn.svg":13906,"./flag-square-gp.svg":51607,"./flag-square-gq.svg":18363,"./flag-square-gr.svg":71327,"./flag-square-gs.svg":56143,"./flag-square-gt.svg":36982,"./flag-square-gu.svg":56832,"./flag-square-gw.svg":79317,"./flag-square-gy.svg":95892,"./flag-square-hk.svg":96250,"./flag-square-hn.svg":62769,"./flag-square-hr.svg":10472,"./flag-square-ht.svg":2279,"./flag-square-hu.svg":3311,"./flag-square-id.svg":65665,"./flag-square-ie.svg":29452,"./flag-square-ik.svg":31451,"./flag-square-il.svg":33881,"./flag-square-im.svg":83145,"./flag-square-in.svg":95970,"./flag-square-io.svg":62888,"./flag-square-iq.svg":55108,"./flag-square-ir.svg":82885,"./flag-square-is.svg":19042,"./flag-square-it.svg":94550,"./flag-square-je.svg":27312,"./flag-square-jm.svg":5765,"./flag-square-jo.svg":76003,"./flag-square-jp.svg":33482,"./flag-square-ke.svg":75456,"./flag-square-kg.svg":76126,"./flag-square-kh.svg":31781,"./flag-square-ki.svg":17678,"./flag-square-km.svg":88833,"./flag-square-kn.svg":78210,"./flag-square-kp.svg":50998,"./flag-square-kr.svg":78113,"./flag-square-kw.svg":22547,"./flag-square-ky.svg":51177,"./flag-square-kz.svg":85210,"./flag-square-la.svg":68618,"./flag-square-lb.svg":31829,"./flag-square-lc.svg":75800,"./flag-square-li.svg":32890,"./flag-square-lk.svg":76401,"./flag-square-lr.svg":67432,"./flag-square-ls.svg":50760,"./flag-square-lt.svg":4067,"./flag-square-lu.svg":68105,"./flag-square-lv.svg":74457,"./flag-square-ly.svg":45802,"./flag-square-ma.svg":39579,"./flag-square-mc.svg":83999,"./flag-square-md.svg":7762,"./flag-square-me.svg":32745,"./flag-square-mf.svg":88393,"./flag-square-mg.svg":27882,"./flag-square-mh.svg":9403,"./flag-square-mk.svg":93184,"./flag-square-ml.svg":22629,"./flag-square-mm.svg":72312,"./flag-square-mn.svg":76482,"./flag-square-mo.svg":1779,"./flag-square-mock-dark.svg":1137,"./flag-square-mock.svg":41647,"./flag-square-mp.svg":97163,"./flag-square-mq.svg":79231,"./flag-square-mr.svg":33644,"./flag-square-ms.svg":6140,"./flag-square-mt.svg":98745,"./flag-square-mu.svg":34997,"./flag-square-mv.svg":76710,"./flag-square-mw.svg":27975,"./flag-square-mx.svg":41778,"./flag-square-my.svg":58438,"./flag-square-mz.svg":75914,"./flag-square-na.svg":43418,"./flag-square-nc.svg":57746, +"./flag-square-ne.svg":95838,"./flag-square-nf.svg":75671,"./flag-square-ng.svg":58578,"./flag-square-ni.svg":3827,"./flag-square-nl.svg":72028,"./flag-square-no.svg":21628,"./flag-square-np.svg":13452,"./flag-square-nr.svg":84943,"./flag-square-nu.svg":2854,"./flag-square-nz.svg":93202,"./flag-square-om.svg":16702,"./flag-square-pa.svg":79609,"./flag-square-pe.svg":304,"./flag-square-pf.svg":78154,"./flag-square-pg.svg":28199,"./flag-square-ph.svg":99436,"./flag-square-pk.svg":55325,"./flag-square-pl.svg":51237,"./flag-square-pm.svg":30267,"./flag-square-pr.svg":16336,"./flag-square-ps.svg":96356,"./flag-square-pt.svg":72361,"./flag-square-pw.svg":63801,"./flag-square-py.svg":8362,"./flag-square-qa.svg":75842,"./flag-square-re.svg":61851,"./flag-square-ro.svg":28302,"./flag-square-rs.svg":75064,"./flag-square-ru.svg":25878,"./flag-square-rw.svg":81617,"./flag-square-sa.svg":66278,"./flag-square-sb.svg":65306,"./flag-square-sc.svg":57752,"./flag-square-sd.svg":39252,"./flag-square-se.svg":6427,"./flag-square-sg.svg":94444,"./flag-square-sh.svg":56925,"./flag-square-si.svg":48022,"./flag-square-sj.svg":55117,"./flag-square-sk.svg":74319,"./flag-square-sl.svg":40491,"./flag-square-sm.svg":89079,"./flag-square-sn.svg":58092,"./flag-square-so.svg":53663,"./flag-square-sr.svg":13654,"./flag-square-ss.svg":91315,"./flag-square-st.svg":38451,"./flag-square-sv.svg":71765,"./flag-square-sx.svg":90823,"./flag-square-sy.svg":98886,"./flag-square-sz.svg":2891,"./flag-square-tc.svg":29434,"./flag-square-td.svg":91991,"./flag-square-tg.svg":39723,"./flag-square-th.svg":93830,"./flag-square-tj.svg":91899,"./flag-square-tk.svg":43642,"./flag-square-tl.svg":33228,"./flag-square-tm.svg":7327,"./flag-square-tn.svg":47246,"./flag-square-to.svg":85738,"./flag-square-tr.svg":80907,"./flag-square-tt.svg":11055,"./flag-square-tv.svg":60296,"./flag-square-tw.svg":63166,"./flag-square-tz.svg":61203,"./flag-square-ua.svg":79851,"./flag-square-ug.svg":46831,"./flag-square-uk.svg":36765,"./flag-square-us.svg":56337,"./flag-square-uy.svg":35561,"./flag-square-uz.svg":82746,"./flag-square-va.svg":2269,"./flag-square-vc.svg":85836,"./flag-square-ve.svg":22162,"./flag-square-vg.svg":1331,"./flag-square-vi.svg":65204,"./flag-square-vn.svg":67008,"./flag-square-vu.svg":65407,"./flag-square-wf.svg":97622,"./flag-square-ws.svg":44656,"./flag-square-ww.svg":77042,"./flag-square-xk.svg":64917,"./flag-square-ye.svg":48310,"./flag-square-yt.svg":28936,"./flag-square-za.svg":41375,"./flag-square-zm.svg":19545,"./flag-square-zw.svg":51233};function f(e){var s=c(e);return a(s)}function c(e){if(!a.o(g,e)){var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}return g[e]}f.keys=function(){return Object.keys(g)},f.resolve=c,e.exports=f,f.id=33207}}]); \ No newline at end of file diff --git a/charting_library/bundles/90751c9bb2971c193dfbff053292e624.svg b/charting_library/bundles/90751c9bb2971c193dfbff053292e624.svg new file mode 100644 index 00000000..ac0efc87 --- /dev/null +++ b/charting_library/bundles/90751c9bb2971c193dfbff053292e624.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9179ddcfe12cfa621d2c0a261757a2fb.svg b/charting_library/bundles/9179ddcfe12cfa621d2c0a261757a2fb.svg new file mode 100644 index 00000000..354dbe48 --- /dev/null +++ b/charting_library/bundles/9179ddcfe12cfa621d2c0a261757a2fb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9297.20467c2b9cdcf6544815.css b/charting_library/bundles/9297.20467c2b9cdcf6544815.css new file mode 100644 index 00000000..1de61286 --- /dev/null +++ b/charting_library/bundles/9297.20467c2b9cdcf6544815.css @@ -0,0 +1 @@ +.breadcrumbs-qk2FRuwQ{margin:-5px;overflow:hidden;position:relative;width:100%}.breadcrumbs-qk2FRuwQ:after,.breadcrumbs-qk2FRuwQ:before{content:"";display:block;height:100%;position:absolute;top:0;transition:opacity .35s ease-in-out,transform .35s ease-in-out;width:50px;z-index:2}.breadcrumbs-qk2FRuwQ:before{background:linear-gradient(90deg,#fff,#fff0);left:0;transform:translateX(-50px)}html.theme-dark .breadcrumbs-qk2FRuwQ:before{background:linear-gradient(90deg,#131722,#13172200)}.breadcrumbs-qk2FRuwQ:after{background:linear-gradient(-90deg,#fff,#fff0);right:0;transform:translateX(50px)}html.theme-dark .breadcrumbs-qk2FRuwQ:after{background:linear-gradient(-90deg,#131722,#13172200)}.breadcrumbs-qk2FRuwQ.left-fade-qk2FRuwQ:before,.breadcrumbs-qk2FRuwQ.right-fade-qk2FRuwQ:after{transform:translateX(0)}.breadcrumbs-inner-qk2FRuwQ{-webkit-overflow-scrolling:touch;overflow-x:scroll;padding:5px;scrollbar-width:none;white-space:nowrap;width:100%}.breadcrumbs-inner-qk2FRuwQ.sb-scrollbar-wrap{display:none}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar{display:none;height:0;width:0}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-thumb,.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-track{display:none}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-corner{display:none}.breadcrumb-qk2FRuwQ{color:#b2b5be;transition:color .35s ease}html.theme-dark .breadcrumb-qk2FRuwQ{color:#787b86}.breadcrumb-qk2FRuwQ:visited{fill:#b2b5be;color:#b2b5be}html.theme-dark .breadcrumb-qk2FRuwQ:visited{fill:#787b86;color:#787b86}@media (any-hover:hover){.breadcrumb-qk2FRuwQ:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .breadcrumb-qk2FRuwQ:hover{fill:#1e53e5;color:#1e53e5}}.breadcrumb-qk2FRuwQ:focus{outline:auto}.breadcrumb-qk2FRuwQ:focus-visible{outline:auto}.breadcrumb-qk2FRuwQ:focus:not(:focus-visible){outline:none}.breadcrumb-qk2FRuwQ:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .breadcrumb-qk2FRuwQ:active{fill:#1848cc;color:#1848cc}.breadcrumb-qk2FRuwQ{outline:none;overflow:visible;position:relative}.breadcrumb-qk2FRuwQ:focus{outline:none}.breadcrumb-qk2FRuwQ:focus-visible{outline:none}.breadcrumb-qk2FRuwQ:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.breadcrumb-qk2FRuwQ:focus:after{display:block}.breadcrumb-qk2FRuwQ:focus-visible:after{display:block}.breadcrumb-qk2FRuwQ:focus:not(:focus-visible):after{display:none}.breadcrumb-qk2FRuwQ:after{border-color:#2962ffcc;border-radius:8px}.breadcrumb-qk2FRuwQ[aria-disabled]{cursor:default}.breadcrumb-qk2FRuwQ[aria-disabled]:active{fill:#b2b5be;color:#b2b5be}@media (any-hover:hover){.breadcrumb-qk2FRuwQ[aria-disabled]:hover{fill:#b2b5be;color:#b2b5be}}html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:active{fill:#787b86}@media (any-hover:hover){html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:hover{fill:#787b86}}html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:active{color:#787b86}@media (any-hover:hover){html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:hover{color:#787b86}}.breadcrumb-qk2FRuwQ[aria-disabled]:focus{outline:none}.divider-qk2FRuwQ{color:#b2b5be;padding:0 .6em}html.theme-dark .divider-qk2FRuwQ{color:#787b86}.wizard-header-CjoBuNmK{align-items:center;display:flex;flex-flow:row wrap;flex-shrink:0;justify-content:space-between;margin-bottom:8px}.responsive-container-media-mf-tablet-vertical .wizard-header-CjoBuNmK{margin-bottom:24px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wizard-header-CjoBuNmK{margin-bottom:24px}}.wizard-header-CjoBuNmK.wizard-header-dialog-CjoBuNmK{margin-bottom:8px}.wizard-title-IDEICbHG{color:#131722;font-size:36px;font-style:normal;font-weight:600;line-height:44px;margin-bottom:16px;margin-right:24px}html.theme-dark .wizard-title-IDEICbHG{color:#b2b5be}@media screen and (max-width:767px){.wizard-title-IDEICbHG{font-size:28px;font-style:normal;font-weight:600;line-height:36px}}.responsive-container-media-mf-tablet-vertical .wizard-title-IDEICbHG{margin-bottom:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wizard-title-IDEICbHG{margin-bottom:0}}.wizard-title-IDEICbHG.wizard-title-dialog-IDEICbHG{margin-bottom:16px}.page-title-KvjIyxe2{color:#131722;font-size:24px;font-style:normal;font-weight:600;line-height:32px;margin-bottom:16px}html.theme-dark .page-title-KvjIyxe2{color:#b2b5be}.tiles-2ojDbEbo{grid-gap:8px 8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));justify-content:stretch;margin-bottom:52px;margin-left:-12px;margin-right:-12px;transform:translateZ(0)}@media screen and (min-width:480px){.tiles-2ojDbEbo{margin-left:0;margin-right:0}}.responsive-container-media-mf-tablet-vertical .tiles-2ojDbEbo{grid-gap:21px 18px;margin-right:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tiles-2ojDbEbo{grid-gap:21px 18px;margin-right:0}}.problems-nav-item-wrap-7e1JpK6O{height:82px}.problems-nav-item-7e1JpK6O{align-items:center;background-color:#f0f3fa;border:none;border-radius:4px;box-sizing:border-box;color:#131722;display:flex;font-size:18px;font-style:normal;font-weight:400;height:100%;justify-content:space-between;line-height:28px;line-height:21px;padding:0 20px;text-align:left;vertical-align:middle;width:100%}html.theme-dark .problems-nav-item-7e1JpK6O{background-color:#1e222d;color:#b2b5be}@media (any-hover:hover){.problems-nav-item-7e1JpK6O:hover{background-color:#2962ff;color:#fff}html.theme-dark .problems-nav-item-7e1JpK6O:hover{background-color:#1848cc;color:#fff}.problems-nav-item-7e1JpK6O:hover span,html.theme-dark .problems-nav-item-7e1JpK6O:hover span{color:#fff}}.problems-nav-item-7e1JpK6O:active{background-color:#1e53e5;color:#fff}html.theme-dark .problems-nav-item-7e1JpK6O:active{background-color:#1e53e5;color:#fff}.problems-nav-item-7e1JpK6O:active span,html.theme-dark .problems-nav-item-7e1JpK6O:active span{color:#fff}.problems-nav-item-7e1JpK6O{outline:none;overflow:visible;position:relative}.problems-nav-item-7e1JpK6O:focus{outline:none}.problems-nav-item-7e1JpK6O:focus-visible{outline:none}.problems-nav-item-7e1JpK6O:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);left:-4px;pointer-events:none;position:absolute;top:-4px;width:calc(100% + 8px);z-index:1}.problems-nav-item-7e1JpK6O:focus:after{display:block}.problems-nav-item-7e1JpK6O:focus-visible:after{display:block}.problems-nav-item-7e1JpK6O:focus:not(:focus-visible):after{display:none}.problems-nav-item-7e1JpK6O:after{border-color:#2962ffcc;border-radius:8px}.icon-7e1JpK6O,.icon-7e1JpK6O svg{height:32px;width:32px}.icon-7e1JpK6O svg{vertical-align:middle}.column-7e1JpK6O{display:flex;flex-direction:column}.count-7e1JpK6O{color:#787b86;font-size:13px;line-height:19px;padding-top:2px}.text-7e1JpK6O{vertical-align:middle}.blackfriday-tile-7e1JpK6O{background:#000;color:#fff;font-size:22px;font-weight:700;line-height:24px;text-transform:uppercase}html.theme-dark .blackfriday-tile-7e1JpK6O{background:#000;color:#fff}@media (any-hover:hover){.blackfriday-tile-7e1JpK6O:hover{background:#131722}html.theme-dark .blackfriday-tile-7e1JpK6O:hover{background:#0c0e15}}.list-xevOrWvR{list-style-type:none;margin:0 -20px;padding:0}@media screen and (min-width:768px){.list-xevOrWvR{margin:0 -8px}}.responsive-container-media-mf-legacy-phone .list-xevOrWvR{margin:0 -16px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .list-xevOrWvR{margin:0 -16px}}.button-xevOrWvR{align-items:baseline;background:#0000;border:none;border-top:1px solid #e0e3eb;box-sizing:border-box;color:#131722;cursor:pointer;display:flex;flex-flow:row nowrap;font-size:16px;font-style:normal;font-weight:400;justify-content:space-between;line-height:24px;padding:12px 20px;text-align:left;transition:color .35s ease;width:100%}html.theme-dark .button-xevOrWvR{border-top:1px solid #2a2e39;color:#b2b5be}.button-xevOrWvR:visited{fill:#131722;color:#131722}html.theme-dark .button-xevOrWvR:visited{fill:#b2b5be;color:#b2b5be}@media (any-hover:hover){.button-xevOrWvR:hover{fill:#131722;color:#131722;transition-duration:60ms}html.theme-dark .button-xevOrWvR:hover{fill:#b2b5be;color:#b2b5be}}.button-xevOrWvR:focus{outline:auto}.button-xevOrWvR:focus-visible{outline:auto}.button-xevOrWvR:focus:not(:focus-visible){outline:none}.button-xevOrWvR:active{fill:#131722;color:#131722;transition-duration:60ms}html.theme-dark .button-xevOrWvR:active{fill:#b2b5be;color:#b2b5be}@media screen and (min-width:768px){.button-xevOrWvR{padding:12px 8px}}.responsive-container-media-mf-legacy-phone .button-xevOrWvR{padding:12px 16px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-xevOrWvR{padding:12px 16px}}.button-xevOrWvR:active,.button-xevOrWvR:focus,.focus-xevOrWvR .button-xevOrWvR,.item-xevOrWvR.focus-xevOrWvR+.item-xevOrWvR .button-xevOrWvR,.item-xevOrWvR:active+.item-xevOrWvR .button-xevOrWvR,.item-xevOrWvR:first-child .button-xevOrWvR,.item-xevOrWvR:focus-within+.item-xevOrWvR .button-xevOrWvR{border-color:#fff}@media (any-hover:hover){.button-xevOrWvR:hover,.item-xevOrWvR:hover+.item-xevOrWvR:not(:focus-within):not(.focus-xevOrWvR) .button-xevOrWvR{border-color:#fff}}html.theme-dark .button-xevOrWvR:active,html.theme-dark .button-xevOrWvR:focus,html.theme-dark .focus-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR.focus-xevOrWvR+.item-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR:active+.item-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR:first-child .button-xevOrWvR,html.theme-dark .item-xevOrWvR:focus-within+.item-xevOrWvR .button-xevOrWvR{border-color:#131722}@media (any-hover:hover){html.theme-dark .button-xevOrWvR:hover,html.theme-dark .item-xevOrWvR:hover+.item-xevOrWvR:not(:focus-within):not(.focus-xevOrWvR) .button-xevOrWvR{border-color:#131722}}.button-xevOrWvR:active,.button-xevOrWvR:focus,.focus-xevOrWvR .button-xevOrWvR{border-radius:4px}@media (any-hover:hover){.button-xevOrWvR:hover{background:#f0f3fa;border-radius:4px}html.theme-dark .button-xevOrWvR:hover{background:#1e222d}}.button-xevOrWvR:active{background:#e0e3eb}html.theme-dark .button-xevOrWvR:active{background:#2a2e39}.button-xevOrWvR{outline:none;overflow:visible;position:relative}.button-xevOrWvR:focus{outline:none}.button-xevOrWvR:focus-visible{outline:none}.button-xevOrWvR:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.button-xevOrWvR:focus:after{display:block}.button-xevOrWvR:focus-visible:after{display:block}.button-xevOrWvR:focus:not(:focus-visible):after{display:none}.button-xevOrWvR:after{border-color:#2962ffcc;border-radius:4px}.focus-xevOrWvR .button-xevOrWvR:after{display:block}.content-xevOrWvR{width:calc(100% - 26px)}.icon-xevOrWvR{display:inline-flex;padding:0 11px 0 7px}.icon-xevOrWvR,.icon-xevOrWvR svg{height:12px;width:8px}.spinner-container-wvKRiFX3{height:150px;position:relative}.search-block-FdunOPoq{margin-bottom:40px;position:relative}.search-input-container-FdunOPoq{font-size:16px;font-style:normal;font-weight:400;line-height:24px;position:relative}.search-input-container-FdunOPoq input::placeholder{color:#a3a6af}html.theme-dark .search-input-container-FdunOPoq input::placeholder{color:#787b86}.search-icon-FdunOPoq{align-items:center;color:#a3a6af;display:inline-flex;padding:0 6px}html.theme-dark .search-icon-FdunOPoq{color:#b2b5be}.search-block-FdunOPoq:focus-within .search-icon-FdunOPoq{color:#131722}html.theme-dark .search-block-FdunOPoq:focus-within .search-icon-FdunOPoq{color:#b2b5be}.solution-FdunOPoq{color:#131722}html.theme-dark .solution-FdunOPoq{color:#b2b5be}.solution-FdunOPoq a{word-wrap:break-word;color:#2962ff;transition:color .35s ease}html.theme-dark .solution-FdunOPoq a{color:#2962ff}.solution-FdunOPoq a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .solution-FdunOPoq a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.solution-FdunOPoq a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .solution-FdunOPoq a:hover{fill:#1e53e5;color:#1e53e5}}.solution-FdunOPoq a:focus{outline:auto}.solution-FdunOPoq a:focus-visible{outline:auto}.solution-FdunOPoq a:focus:not(:focus-visible){outline:none}.solution-FdunOPoq a:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .solution-FdunOPoq a:active{fill:#1848cc;color:#1848cc}.solution-FdunOPoq ol,.solution-FdunOPoq ul{margin-left:40px}.solution-FdunOPoq ol,.solution-FdunOPoq p,.solution-FdunOPoq pre,.solution-FdunOPoq ul{margin-bottom:16px}.solution-FdunOPoq table td{border:1px solid #131722;padding:4px}html.theme-dark .solution-FdunOPoq table td{border:1px solid #b2b5be}.solution-FdunOPoq iframe{height:400px;width:100%}.solution-FdunOPoq [data-img-border]{background:#e3effd;border-radius:6px;box-sizing:border-box;display:flex;flex-flow:row nowrap;justify-content:center;margin:24px 0;padding:20px;width:100%}html.theme-dark .solution-FdunOPoq [data-img-border]{background:#2a2e39}.responsive-container-media-mf-legacy-phone .solution-FdunOPoq [data-img-border]{padding:40px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .solution-FdunOPoq [data-img-border]{padding:40px}}@media (any-hover:hover){.solution-FdunOPoq [data-img-border][role=button]:hover{cursor:zoom-in}}.solution-FdunOPoq [data-img-border]{outline:none;overflow:visible;position:relative}.solution-FdunOPoq [data-img-border]:focus{outline:none}.solution-FdunOPoq [data-img-border]:focus-visible{outline:none}.solution-FdunOPoq [data-img-border]:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 12px);left:-6px;pointer-events:none;position:absolute;top:-6px;width:calc(100% + 12px);z-index:1}.solution-FdunOPoq [data-img-border]:focus:after{display:block}.solution-FdunOPoq [data-img-border]:focus-visible:after{display:block}.solution-FdunOPoq [data-img-border]:focus:not(:focus-visible):after{display:none}.solution-FdunOPoq [data-img-border]:after,html.theme-dark .solution-FdunOPoq [data-img-border]:after{border-color:#2962ffcc}.solution-FdunOPoq [data-img-border]:after{border-radius:10px}.solution-FdunOPoq img:not([data-float-left]):not([data-float-right]){border-radius:6px;box-shadow:0 2px 4px #0003;display:block;height:auto;height:intrinsic;margin:0;max-width:100%;width:100%}html.theme-dark .solution-FdunOPoq img:not([data-float-left]):not([data-float-right]){box-shadow:0 2px 4px #0006}.solution-FdunOPoq img[data-float-left]{float:left;margin:0 1em 1em 0}.solution-FdunOPoq img[data-float-right]{float:right;margin:0 0 1em 1em}.solution-FdunOPoq blockquote{background-color:#e3effd;border-radius:6px;margin:0 0 16px;padding:24px}html.theme-dark .solution-FdunOPoq blockquote{background-color:#2a2e39}.solution-FdunOPoq blockquote ::selection{background-color:#bbd9fb}html.theme-dark .solution-FdunOPoq blockquote ::selection{background-color:#143a87}.solution-FdunOPoq blockquote ol:last-child,.solution-FdunOPoq blockquote p:last-child,.solution-FdunOPoq blockquote pre:last-child,.solution-FdunOPoq blockquote ul:last-child{margin-bottom:0}.support-textarea-FdunOPoq{max-height:490px;min-height:106px}.list-HVdG1RMD{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px #0003;left:0;margin:0;overflow:hidden;position:absolute;top:36px;width:100%;z-index:1}html.theme-dark .list-HVdG1RMD{background-color:#131722;box-shadow:0 2px 4px #0006}.responsive-container-media-mf-legacy-phone .list-HVdG1RMD{margin:0}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .list-HVdG1RMD{margin:0}}.empty-HVdG1RMD{font-size:18px;height:40px;line-height:40px;text-align:center}.itemWrapper-HVdG1RMD{word-wrap:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-HVdG1RMD,.responsive-container-base .item-HVdG1RMD{margin:0}.highlight-HVdG1RMD{color:#2962ff}.fixed-header-k70B48fN{background:#fff;border-bottom:1px solid #f0f3fa;box-sizing:border-box;height:72px;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transform:translateY(-20%);transition:opacity .2s ease-in-out,transform .2s ease-in-out;width:100%;z-index:4}html.theme-dark .fixed-header-k70B48fN{background:#131722;border-bottom:1px solid #2a2e39}.fixed-header-k70B48fN.visible-k70B48fN{opacity:1;pointer-events:auto;transform:translateY(0)}.fixed-header-content-k70B48fN{align-items:center;box-sizing:border-box;display:flex;flex-flow:row nowrap;height:100%;justify-content:space-between;margin:0 auto;max-width:904px;padding:0 20px;width:100%}@media screen and (min-width:320px){.fixed-header-content-k70B48fN{padding-left:27.5px;padding-right:32.5px;width:calc(100% - 5px)}}.responsive-container-media-mf-legacy-phone .fixed-header-content-k70B48fN{padding-left:77.5px;padding-right:102.5px}@supports (scrollbar-width:thin){@media screen and (min-width:320px){.fixed-header-content-k70B48fN{padding-left:24.5px;padding-right:35.5px;width:calc(100% - 11px)}}.responsive-container-media-mf-legacy-phone .fixed-header-content-k70B48fN{padding-left:74.5px;padding-right:105.5px}}.wrap-vLznnRjl{box-sizing:border-box;display:flex;flex-flow:column nowrap;flex-grow:1;margin:0 auto;max-width:904px;padding:55px 20px 40px;position:relative;-webkit-user-select:text;user-select:text;width:100%}.responsive-container-media-mf-legacy-phone-vertical .wrap-vLznnRjl{padding:55px 30px 40px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wrap-vLznnRjl{padding:55px 30px 40px}}.responsive-container-media-mf-legacy-phone .wrap-vLznnRjl{padding:66px 80px 66px 100px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wrap-vLznnRjl{padding:66px 80px 66px 100px}}.close-button-vLznnRjl{margin:0;position:absolute;right:12px;top:8px;z-index:1}.responsive-container-media-mf-legacy-phone-vertical .close-button-vLznnRjl{right:22px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl{right:22px}}.responsive-container-media-mf-legacy-phone .close-button-vLznnRjl{top:67px}.responsive-container-media-mf-legacy-phone .close-button-vLznnRjl.with-search-vLznnRjl{top:63px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl{top:67px}.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl.with-search-vLznnRjl{top:63px}}.back-button-vLznnRjl{left:8px;position:absolute;top:8px}.responsive-container-media-mf-legacy-phone-vertical .back-button-vLznnRjl{left:18px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl{left:18px}}.responsive-container-media-mf-legacy-phone .back-button-vLznnRjl{left:42px;top:100px}.responsive-container-media-mf-legacy-phone .back-button-vLznnRjl.with-search-vLznnRjl{top:174px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl{left:42px;top:100px}.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl.with-search-vLznnRjl{top:174px}}.responsive-container-base .fixed-header-button-vLznnRjl{right:auto;top:auto}.responsive-container-base .fixed-header-back-button-vLznnRjl{left:-12px;position:relative}.responsive-container-media-mf-legacy-phone .fixed-header-back-button-vLznnRjl{left:-38px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .fixed-header-back-button-vLznnRjl{left:-38px}}.fixed-header-close-button-vLznnRjl{position:absolute}.responsive-container-base .fixed-header-close-button-vLznnRjl{right:17px}@media screen and (min-width:320px){.responsive-container-base .fixed-header-close-button-vLznnRjl{right:27px}}@supports (scrollbar-width:thin){.responsive-container-base .fixed-header-close-button-vLznnRjl{right:12px}@media screen and (min-width:320px){.responsive-container-base .fixed-header-close-button-vLznnRjl{right:33px}}}.responsive-container-media-mf-legacy-phone .fixed-header-close-button-vLznnRjl{right:27px}@supports (scrollbar-width:thin){.responsive-container-media-mf-legacy-phone .fixed-header-close-button-vLznnRjl{right:33px}}.breadcrumbs-vLznnRjl{font-size:14px;font-style:normal;font-weight:400;line-height:21px;margin:0 -20px 16px;min-height:21px;position:relative;width:calc(100% + 40px)}.responsive-container-media-mf-legacy-phone-vertical .breadcrumbs-vLznnRjl{margin-left:-30px;margin-right:-30px;width:calc(100% + 60px)}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl{margin-left:-30px;margin-right:-30px;width:calc(100% + 60px)}}.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl{margin-left:-5px;margin-right:-5px;width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl{margin-left:-5px;margin-right:-5px;width:auto}}.breadcrumbs-vLznnRjl:after,.breadcrumbs-vLznnRjl:before{display:none}.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl:after,.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl:before{display:block}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl:after,.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl:before{display:block}}.breadcrumbs-inner-vLznnRjl{box-sizing:border-box;padding-left:20px;padding-right:20px}.responsive-container-media-mf-legacy-phone-vertical .breadcrumbs-inner-vLznnRjl{padding-left:30px;padding-right:30px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-inner-vLznnRjl{padding-left:30px;padding-right:30px}}.responsive-container-media-mf-legacy-phone .breadcrumbs-inner-vLznnRjl{padding-left:5px;padding-right:5px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-inner-vLznnRjl{padding-left:5px;padding-right:5px}}@supports (-webkit-overflow-scrolling:touch){.disabledForIos-vLznnRjl{display:none}}.title-TQlEhltv{margin-top:45px}.externalLink-TQlEhltv{align-items:center;border:1px solid #e0e3eb;border-radius:6px;display:flex;flex-flow:column nowrap;justify-content:center;padding:24px}html.theme-dark .externalLink-TQlEhltv{border:1px solid #363a45}@media (any-hover:hover){.externalLink-TQlEhltv:hover{background-color:#f8f9fd}html.theme-dark .externalLink-TQlEhltv:hover{background-color:#1e222d}}.externalLink-TQlEhltv:active{background-color:#e0e3eb}html.theme-dark .externalLink-TQlEhltv:active{background-color:#363a45}.externalLink-TQlEhltv{outline:none;overflow:visible;position:relative}.externalLink-TQlEhltv:focus{outline:none}.externalLink-TQlEhltv:focus-visible{outline:none}.externalLink-TQlEhltv:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);left:-5px;pointer-events:none;position:absolute;top:-5px;width:calc(100% + 10px);z-index:1}.externalLink-TQlEhltv:focus:after{display:block}.externalLink-TQlEhltv:focus-visible:after{display:block}.externalLink-TQlEhltv:focus:not(:focus-visible):after{display:none}.externalLink-TQlEhltv:after{border-color:#2962ffcc;border-radius:10px}.externalIcon-TQlEhltv{background-position:50%;background-repeat:no-repeat;background-size:contain;height:120px;width:120px}.externalIcon--free-user-faqs-TQlEhltv{background-image:url(186115d4ca74152914acd81e26836798.svg)}html.theme-dark .externalIcon--free-user-faqs-TQlEhltv{background-image:url(11cab6ced9c9b2073f5e8a987766f54f.svg)}.externalIcon--shortcuts-TQlEhltv{background-image:url(335343b286c304fe0ff472256b515659.svg)}html.theme-dark .externalIcon--shortcuts-TQlEhltv{background-image:url(8386a0d291cb7eb9183b942d59c52947.svg)}.externalIcon--new-TQlEhltv{background-image:url(0be05afe69640ce88aa24265aa2effab.svg)}html.theme-dark .externalIcon--new-TQlEhltv{background-image:url(9bd0f4d3395d3c7f81660e6885b07378.svg)}.externalIcon--feature-TQlEhltv{background-image:url(614cf27f508c538c23fd1e41dec69981.svg)}html.theme-dark .externalIcon--feature-TQlEhltv{background-image:url(9619f52114e3eb5ddafad0f641d090cf.svg)}.externalIcon--pine-TQlEhltv{background-image:url(2f1e9623d075ac187394740ee1f6c377.svg)}html.theme-dark .externalIcon--pine-TQlEhltv{background-image:url(576e6465e16da65acd139607cb0febde.svg)}.externalIcon--pine-script-TQlEhltv{background-image:url(4aaf8ecd499671f5404f7355e9b94ffa.svg)}html.theme-dark .externalIcon--pine-script-TQlEhltv{background-image:url(677ba99bfad6904fb5ff8b117e32715d.svg)}.externalIcon--update-TQlEhltv{background-image:url(1d59e7669186b321ec8cffdfd2369210.svg)}html.theme-dark .externalIcon--update-TQlEhltv{background-image:url(29545fef24e0ecc8478adab4816bba30.svg)}.externalIcon--status-TQlEhltv{background-image:url(f98fa40daa7d9e2981645268d2a38d52.svg)}html.theme-dark .externalIcon--status-TQlEhltv{background-image:url(3aeb0bb0575de40834fc666660380ae0.svg)}.externalTitle-TQlEhltv{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:center}html.theme-dark .externalTitle-TQlEhltv{color:#d1d4dc}.openingIcon-TQlEhltv{color:#131722;position:absolute;right:4px;top:4px}html.theme-dark .openingIcon-TQlEhltv{color:#d1d4dc}.actions-gJT1zWiK{display:flex;flex-flow:row wrap;justify-content:flex-start}.actions--align_center-gJT1zWiK,.actions--align_right-gJT1zWiK{flex-direction:row-reverse}.actions--align_center-gJT1zWiK{justify-content:center}.actions--align_right-gJT1zWiK .button-gJT1zWiK{margin-left:16px;margin-right:0}.actions--align_right-gJT1zWiK .button-gJT1zWiK:last-child{margin-left:0}.actions--align_center-gJT1zWiK .button-gJT1zWiK,.actions--align_center-gJT1zWiK .button-gJT1zWiK:last-child{margin-left:8px;margin-right:8px}.button-gJT1zWiK{margin-bottom:16px;margin-left:0;margin-right:16px}.button-gJT1zWiK:last-child{margin-right:0}.text-gJT1zWiK{opacity:0}.text-gJT1zWiK.shown-gJT1zWiK{opacity:1}.loader-gJT1zWiK{display:none}.loader-gJT1zWiK.shown-gJT1zWiK{display:block}.paragraph-q0Pd3eEh{color:#131722;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:16px}html.theme-dark .paragraph-q0Pd3eEh{color:#b2b5be}.success-page-w9EDOZYy{align-items:center;display:flex;flex-flow:column nowrap;height:100%;justify-content:center;text-align:center}.link-w9EDOZYy{color:#2962ff;transition:color .35s ease}html.theme-dark .link-w9EDOZYy{color:#2962ff}.link-w9EDOZYy:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-w9EDOZYy:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-w9EDOZYy:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-w9EDOZYy:hover{fill:#1e53e5;color:#1e53e5}}.link-w9EDOZYy:focus{outline:auto}.link-w9EDOZYy:focus-visible{outline:auto}.link-w9EDOZYy:focus:not(:focus-visible){outline:none}.link-w9EDOZYy:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-w9EDOZYy:active{fill:#1848cc;color:#1848cc}.responsive-container-media-mf-legacy-phone .success-page-title-w9EDOZYy{margin-bottom:16px}.responsive-container-media-mf-legacy-phone .success-page-text-w9EDOZYy{margin-bottom:32px}.icon-eFQRlZi6{display:inline-flex;left:20px;position:absolute;top:15px}@media screen and (min-width:768px){.icon-eFQRlZi6{left:8px}}.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6{left:16px;top:13px}.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6,.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6 svg{height:22px;width:22px}.container-eFQRlZi6{margin-top:28px;position:relative}.responsive-container-media-mf-legacy-phone .container-eFQRlZi6{margin-top:64px}.item-eFQRlZi6:only-child .innerItem-eFQRlZi6{border-top-color:#e0e3eb}html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{border-top-color:#434651}.item-eFQRlZi6:only-child .innerItem-eFQRlZi6:active{border-top-color:#0000}@media (any-hover:hover){.item-eFQRlZi6:only-child .innerItem-eFQRlZi6:hover{border-top-color:#0000}}html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6:active{border-top-color:#0000}@media (any-hover:hover){html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6:hover{border-top-color:#0000}}.responsive-container-base .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-left:46px}@media screen and (min-width:768px){.responsive-container-base .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-left:34px}}.responsive-container-media-mf-legacy-phone .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-left:49px}.code-highlighter-OSu8zI0r [rel=highlighter]{background-color:#e3effd;border-radius:6px;margin:0;overflow:hidden}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter]{background-color:#2a2e39}.code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js{background-color:initial;background-image:none;border:none;box-shadow:none;color:#131722;display:block;font-size:16px;font-style:normal;font-weight:400;line-height:24px;overflow:auto;padding:24px}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js{color:#d1d4dc}.code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js .token.operator{background-color:initial}.code-highlighter-OSu8zI0r [rel=highlighter] ::selection{background-color:#bbd9fb}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter] ::selection{background-color:#143a87}.code-highlighter-OSu8zI0r [rel=highlighter]:after,.code-highlighter-OSu8zI0r [rel=highlighter]:before{display:none}.wrapper-copy-link-button-v1B2IYZi{display:inline;white-space:nowrap}.copy-link-button-v1B2IYZi{background:#0000;border:none;box-sizing:initial;color:#131722;height:28px;margin:0 0 0 8px;padding:0;width:28px}html.theme-dark .copy-link-button-v1B2IYZi{color:#d1d4dc}@media (any-hover:hover){.copy-link-button-v1B2IYZi:hover{color:#000}html.theme-dark .copy-link-button-v1B2IYZi:hover{color:#f0f3fa}.copy-link-button-v1B2IYZi:hover:before{background:#f0f3fa}html.theme-dark .copy-link-button-v1B2IYZi:hover:before{background:#2a2e39}}.copy-link-button-v1B2IYZi:active:before{background:#e0e3eb}html.theme-dark .copy-link-button-v1B2IYZi:active:before{background:#1e222d}.copy-link-button-v1B2IYZi:before{background:#0000;border:none;border-radius:4px;content:"";height:calc(100% + 16px);left:-8px;position:absolute;top:-8px;width:calc(100% + 16px);z-index:-1}.copy-link-button-v1B2IYZi{outline:none;overflow:visible;position:relative}.copy-link-button-v1B2IYZi:focus{outline:none}.copy-link-button-v1B2IYZi:focus-visible{outline:none}.copy-link-button-v1B2IYZi:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 24px);left:-12px;pointer-events:none;position:absolute;top:-12px;width:calc(100% + 24px);z-index:1}.copy-link-button-v1B2IYZi:focus:after{display:block}.copy-link-button-v1B2IYZi:focus-visible:after{display:block}.copy-link-button-v1B2IYZi:focus:not(:focus-visible):after{display:none}.copy-link-button-v1B2IYZi:after{border-color:#2962ffcc;border-radius:8px}.icon-v1B2IYZi{display:inline-flex;height:100%;width:100%}.solution-Iy6Ippd7 h4{font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin:40px 0 8px}.solution-Iy6Ippd7 h5{font-size:18px;font-style:normal;font-weight:600;line-height:26px;margin:32px 0 4px}.solution-Iy6Ippd7 h5~ol,.solution-Iy6Ippd7 h5~p,.solution-Iy6Ippd7 h5~pre,.solution-Iy6Ippd7 h5~ul{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.solution-Iy6Ippd7 h6{font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin:24px 0 4px}.solution-Iy6Ippd7 h6~ol,.solution-Iy6Ippd7 h6~p,.solution-Iy6Ippd7 h6~pre,.solution-Iy6Ippd7 h6~ul{font-size:14px;font-style:normal;font-weight:400;line-height:21px}.solution-Iy6Ippd7 h5~h4~ol,.solution-Iy6Ippd7 h5~h4~p,.solution-Iy6Ippd7 h5~h4~pre,.solution-Iy6Ippd7 h5~h4~ul,.solution-Iy6Ippd7 h6~h4~ol,.solution-Iy6Ippd7 h6~h4~p,.solution-Iy6Ippd7 h6~h4~pre,.solution-Iy6Ippd7 h6~h4~ul,.solution-Iy6Ippd7 h6~h5~ol,.solution-Iy6Ippd7 h6~h5~p,.solution-Iy6Ippd7 h6~h5~pre,.solution-Iy6Ippd7 h6~h5~ul,.solution-Iy6Ippd7 ol,.solution-Iy6Ippd7 p,.solution-Iy6Ippd7 pre,.solution-Iy6Ippd7 ul{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 [data-img-border] img,.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 img[data-float-left],.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 img[data-float-right]{display:none}.spinner-Iy6Ippd7{height:5em;position:relative}.launch-chart-banner-Iy6Ippd7{margin-top:32px}.copy-link-button-Iy6Ippd7{display:inline-block;margin-top:-1px;vertical-align:middle}.item-title-bztm5Sql{display:block;width:100%}.solutions-count-bztm5Sql{color:#787b86;display:block;font-size:13px;font-style:normal;font-weight:400;line-height:19px}html.theme-dark .solutions-count-bztm5Sql{color:#787b86}.spinner-e4BIGvhd{height:5em;position:relative}.tv-support-portal{background-color:#fff;display:flex;flex-flow:column nowrap;min-height:80vh}html.theme-dark .tv-support-portal{background-color:#131722}.support_portal body{background-color:#fff}html.theme-dark .support_portal body{background-color:#131722}.wizard-nYCqoM4n{display:flex;flex-flow:column nowrap;flex-grow:1;position:relative;width:100%}.wizard-nYCqoM4n button:not(:disabled){cursor:pointer} \ No newline at end of file diff --git a/charting_library/bundles/9297.20467c2b9cdcf6544815.rtl.css b/charting_library/bundles/9297.20467c2b9cdcf6544815.rtl.css new file mode 100644 index 00000000..be077b05 --- /dev/null +++ b/charting_library/bundles/9297.20467c2b9cdcf6544815.rtl.css @@ -0,0 +1 @@ +.breadcrumbs-qk2FRuwQ{margin:-5px;overflow:hidden;position:relative;width:100%}.breadcrumbs-qk2FRuwQ:after,.breadcrumbs-qk2FRuwQ:before{content:"";display:block;height:100%;position:absolute;top:0;transition:opacity .35s ease-in-out,transform .35s ease-in-out;width:50px;z-index:2}.breadcrumbs-qk2FRuwQ:before{background:linear-gradient(-90deg,#fff,#fff0);right:0;transform:translateX(50px)}html.theme-dark .breadcrumbs-qk2FRuwQ:before{background:linear-gradient(-90deg,#131722,#13172200)}.breadcrumbs-qk2FRuwQ:after{background:linear-gradient(90deg,#fff,#fff0);left:0;transform:translateX(-50px)}html.theme-dark .breadcrumbs-qk2FRuwQ:after{background:linear-gradient(90deg,#131722,#13172200)}.breadcrumbs-qk2FRuwQ.left-fade-qk2FRuwQ:before,.breadcrumbs-qk2FRuwQ.right-fade-qk2FRuwQ:after{transform:translateX(0)}.breadcrumbs-inner-qk2FRuwQ{-webkit-overflow-scrolling:touch;overflow-x:scroll;padding:5px;scrollbar-width:none;white-space:nowrap;width:100%}.breadcrumbs-inner-qk2FRuwQ.sb-scrollbar-wrap{display:none}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar{display:none;height:0;width:0}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-thumb,.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-track{display:none}.breadcrumbs-inner-qk2FRuwQ::-webkit-scrollbar-corner{display:none}.breadcrumb-qk2FRuwQ{color:#b2b5be;transition:color .35s ease}html.theme-dark .breadcrumb-qk2FRuwQ{color:#787b86}.breadcrumb-qk2FRuwQ:visited{fill:#b2b5be;color:#b2b5be}html.theme-dark .breadcrumb-qk2FRuwQ:visited{fill:#787b86;color:#787b86}@media (any-hover:hover){.breadcrumb-qk2FRuwQ:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .breadcrumb-qk2FRuwQ:hover{fill:#1e53e5;color:#1e53e5}}.breadcrumb-qk2FRuwQ:focus{outline:auto}.breadcrumb-qk2FRuwQ:focus-visible{outline:auto}.breadcrumb-qk2FRuwQ:focus:not(:focus-visible){outline:none}.breadcrumb-qk2FRuwQ:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .breadcrumb-qk2FRuwQ:active{fill:#1848cc;color:#1848cc}.breadcrumb-qk2FRuwQ{outline:none;overflow:visible;position:relative}.breadcrumb-qk2FRuwQ:focus{outline:none}.breadcrumb-qk2FRuwQ:focus-visible{outline:none}.breadcrumb-qk2FRuwQ:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.breadcrumb-qk2FRuwQ:focus:after{display:block}.breadcrumb-qk2FRuwQ:focus-visible:after{display:block}.breadcrumb-qk2FRuwQ:focus:not(:focus-visible):after{display:none}.breadcrumb-qk2FRuwQ:after{border-color:#2962ffcc;border-radius:8px}.breadcrumb-qk2FRuwQ[aria-disabled]{cursor:default}.breadcrumb-qk2FRuwQ[aria-disabled]:active{fill:#b2b5be;color:#b2b5be}@media (any-hover:hover){.breadcrumb-qk2FRuwQ[aria-disabled]:hover{fill:#b2b5be;color:#b2b5be}}html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:active{fill:#787b86}@media (any-hover:hover){html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:hover{fill:#787b86}}html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:active{color:#787b86}@media (any-hover:hover){html.theme-dark .breadcrumb-qk2FRuwQ[aria-disabled]:hover{color:#787b86}}.breadcrumb-qk2FRuwQ[aria-disabled]:focus{outline:none}.divider-qk2FRuwQ{color:#b2b5be;padding:0 .6em}html.theme-dark .divider-qk2FRuwQ{color:#787b86}.wizard-header-CjoBuNmK{align-items:center;display:flex;flex-flow:row wrap;flex-shrink:0;justify-content:space-between;margin-bottom:8px}.responsive-container-media-mf-tablet-vertical .wizard-header-CjoBuNmK{margin-bottom:24px}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wizard-header-CjoBuNmK{margin-bottom:24px}}.wizard-header-CjoBuNmK.wizard-header-dialog-CjoBuNmK{margin-bottom:8px}.wizard-title-IDEICbHG{color:#131722;font-size:36px;font-style:normal;font-weight:600;line-height:44px;margin-bottom:16px;margin-left:24px}html.theme-dark .wizard-title-IDEICbHG{color:#b2b5be}@media screen and (max-width:767px){.wizard-title-IDEICbHG{font-size:28px;font-style:normal;font-weight:600;line-height:36px}}.responsive-container-media-mf-tablet-vertical .wizard-title-IDEICbHG{margin-bottom:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wizard-title-IDEICbHG{margin-bottom:0}}.wizard-title-IDEICbHG.wizard-title-dialog-IDEICbHG{margin-bottom:16px}.page-title-KvjIyxe2{color:#131722;font-size:24px;font-style:normal;font-weight:600;line-height:32px;margin-bottom:16px}html.theme-dark .page-title-KvjIyxe2{color:#b2b5be}.tiles-2ojDbEbo{grid-gap:8px 8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));justify-content:stretch;margin-bottom:52px;margin-left:-12px;margin-right:-12px;transform:translateZ(0)}@media screen and (min-width:480px){.tiles-2ojDbEbo{margin-left:0;margin-right:0}}.responsive-container-media-mf-tablet-vertical .tiles-2ojDbEbo{grid-gap:21px 18px;margin-left:0}@media screen and (min-width:768px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .tiles-2ojDbEbo{grid-gap:21px 18px;margin-left:0}}.problems-nav-item-wrap-7e1JpK6O{height:82px}.problems-nav-item-7e1JpK6O{align-items:center;background-color:#f0f3fa;border:none;border-radius:4px;box-sizing:border-box;color:#131722;display:flex;font-size:18px;font-style:normal;font-weight:400;height:100%;justify-content:space-between;line-height:28px;line-height:21px;padding:0 20px;text-align:right;vertical-align:middle;width:100%}html.theme-dark .problems-nav-item-7e1JpK6O{background-color:#1e222d;color:#b2b5be}@media (any-hover:hover){.problems-nav-item-7e1JpK6O:hover{background-color:#2962ff;color:#fff}html.theme-dark .problems-nav-item-7e1JpK6O:hover{background-color:#1848cc;color:#fff}.problems-nav-item-7e1JpK6O:hover span,html.theme-dark .problems-nav-item-7e1JpK6O:hover span{color:#fff}}.problems-nav-item-7e1JpK6O:active{background-color:#1e53e5;color:#fff}html.theme-dark .problems-nav-item-7e1JpK6O:active{background-color:#1e53e5;color:#fff}.problems-nav-item-7e1JpK6O:active span,html.theme-dark .problems-nav-item-7e1JpK6O:active span{color:#fff}.problems-nav-item-7e1JpK6O{outline:none;overflow:visible;position:relative}.problems-nav-item-7e1JpK6O:focus{outline:none}.problems-nav-item-7e1JpK6O:focus-visible{outline:none}.problems-nav-item-7e1JpK6O:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 8px);pointer-events:none;position:absolute;right:-4px;top:-4px;width:calc(100% + 8px);z-index:1}.problems-nav-item-7e1JpK6O:focus:after{display:block}.problems-nav-item-7e1JpK6O:focus-visible:after{display:block}.problems-nav-item-7e1JpK6O:focus:not(:focus-visible):after{display:none}.problems-nav-item-7e1JpK6O:after{border-color:#2962ffcc;border-radius:8px}.icon-7e1JpK6O,.icon-7e1JpK6O svg{height:32px;width:32px}.icon-7e1JpK6O svg{vertical-align:middle}.column-7e1JpK6O{display:flex;flex-direction:column}.count-7e1JpK6O{color:#787b86;font-size:13px;line-height:19px;padding-top:2px}.text-7e1JpK6O{vertical-align:middle}.blackfriday-tile-7e1JpK6O{background:#000;color:#fff;font-size:22px;font-weight:700;line-height:24px;text-transform:uppercase}html.theme-dark .blackfriday-tile-7e1JpK6O{background:#000;color:#fff}@media (any-hover:hover){.blackfriday-tile-7e1JpK6O:hover{background:#131722}html.theme-dark .blackfriday-tile-7e1JpK6O:hover{background:#0c0e15}}.list-xevOrWvR{list-style-type:none;margin:0 -20px;padding:0}@media screen and (min-width:768px){.list-xevOrWvR{margin:0 -8px}}.responsive-container-media-mf-legacy-phone .list-xevOrWvR{margin:0 -16px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .list-xevOrWvR{margin:0 -16px}}.button-xevOrWvR{align-items:baseline;background:#0000;border:none;border-top:1px solid #e0e3eb;box-sizing:border-box;color:#131722;cursor:pointer;display:flex;flex-flow:row nowrap;font-size:16px;font-style:normal;font-weight:400;justify-content:space-between;line-height:24px;padding:12px 20px;text-align:right;transition:color .35s ease;width:100%}html.theme-dark .button-xevOrWvR{border-top:1px solid #2a2e39;color:#b2b5be}.button-xevOrWvR:visited{fill:#131722;color:#131722}html.theme-dark .button-xevOrWvR:visited{fill:#b2b5be;color:#b2b5be}@media (any-hover:hover){.button-xevOrWvR:hover{fill:#131722;color:#131722;transition-duration:60ms}html.theme-dark .button-xevOrWvR:hover{fill:#b2b5be;color:#b2b5be}}.button-xevOrWvR:focus{outline:auto}.button-xevOrWvR:focus-visible{outline:auto}.button-xevOrWvR:focus:not(:focus-visible){outline:none}.button-xevOrWvR:active{fill:#131722;color:#131722;transition-duration:60ms}html.theme-dark .button-xevOrWvR:active{fill:#b2b5be;color:#b2b5be}@media screen and (min-width:768px){.button-xevOrWvR{padding:12px 8px}}.responsive-container-media-mf-legacy-phone .button-xevOrWvR{padding:12px 16px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .button-xevOrWvR{padding:12px 16px}}.button-xevOrWvR:active,.button-xevOrWvR:focus,.focus-xevOrWvR .button-xevOrWvR,.item-xevOrWvR.focus-xevOrWvR+.item-xevOrWvR .button-xevOrWvR,.item-xevOrWvR:active+.item-xevOrWvR .button-xevOrWvR,.item-xevOrWvR:first-child .button-xevOrWvR,.item-xevOrWvR:focus-within+.item-xevOrWvR .button-xevOrWvR{border-color:#fff}@media (any-hover:hover){.button-xevOrWvR:hover,.item-xevOrWvR:hover+.item-xevOrWvR:not(:focus-within):not(.focus-xevOrWvR) .button-xevOrWvR{border-color:#fff}}html.theme-dark .button-xevOrWvR:active,html.theme-dark .button-xevOrWvR:focus,html.theme-dark .focus-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR.focus-xevOrWvR+.item-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR:active+.item-xevOrWvR .button-xevOrWvR,html.theme-dark .item-xevOrWvR:first-child .button-xevOrWvR,html.theme-dark .item-xevOrWvR:focus-within+.item-xevOrWvR .button-xevOrWvR{border-color:#131722}@media (any-hover:hover){html.theme-dark .button-xevOrWvR:hover,html.theme-dark .item-xevOrWvR:hover+.item-xevOrWvR:not(:focus-within):not(.focus-xevOrWvR) .button-xevOrWvR{border-color:#131722}}.button-xevOrWvR:active,.button-xevOrWvR:focus,.focus-xevOrWvR .button-xevOrWvR{border-radius:4px}@media (any-hover:hover){.button-xevOrWvR:hover{background:#f0f3fa;border-radius:4px}html.theme-dark .button-xevOrWvR:hover{background:#1e222d}}.button-xevOrWvR:active{background:#e0e3eb}html.theme-dark .button-xevOrWvR:active{background:#2a2e39}.button-xevOrWvR{outline:none;overflow:visible;position:relative}.button-xevOrWvR:focus{outline:none}.button-xevOrWvR:focus-visible{outline:none}.button-xevOrWvR:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:1}.button-xevOrWvR:focus:after{display:block}.button-xevOrWvR:focus-visible:after{display:block}.button-xevOrWvR:focus:not(:focus-visible):after{display:none}.button-xevOrWvR:after{border-color:#2962ffcc;border-radius:4px}.focus-xevOrWvR .button-xevOrWvR:after{display:block}.content-xevOrWvR{width:calc(100% - 26px)}.icon-xevOrWvR{display:inline-flex;padding:0 7px 0 11px}.icon-xevOrWvR,.icon-xevOrWvR svg{height:12px;width:8px}.spinner-container-wvKRiFX3{height:150px;position:relative}.search-block-FdunOPoq{margin-bottom:40px;position:relative}.search-input-container-FdunOPoq{font-size:16px;font-style:normal;font-weight:400;line-height:24px;position:relative}.search-input-container-FdunOPoq input::placeholder{color:#a3a6af}html.theme-dark .search-input-container-FdunOPoq input::placeholder{color:#787b86}.search-icon-FdunOPoq{align-items:center;color:#a3a6af;display:inline-flex;padding:0 6px}html.theme-dark .search-icon-FdunOPoq{color:#b2b5be}.search-block-FdunOPoq:focus-within .search-icon-FdunOPoq{color:#131722}html.theme-dark .search-block-FdunOPoq:focus-within .search-icon-FdunOPoq{color:#b2b5be}.solution-FdunOPoq{color:#131722}html.theme-dark .solution-FdunOPoq{color:#b2b5be}.solution-FdunOPoq a{word-wrap:break-word;color:#2962ff;transition:color .35s ease}html.theme-dark .solution-FdunOPoq a{color:#2962ff}.solution-FdunOPoq a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .solution-FdunOPoq a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.solution-FdunOPoq a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .solution-FdunOPoq a:hover{fill:#1e53e5;color:#1e53e5}}.solution-FdunOPoq a:focus{outline:auto}.solution-FdunOPoq a:focus-visible{outline:auto}.solution-FdunOPoq a:focus:not(:focus-visible){outline:none}.solution-FdunOPoq a:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .solution-FdunOPoq a:active{fill:#1848cc;color:#1848cc}.solution-FdunOPoq ol,.solution-FdunOPoq ul{margin-right:40px}.solution-FdunOPoq ol,.solution-FdunOPoq p,.solution-FdunOPoq pre,.solution-FdunOPoq ul{margin-bottom:16px}.solution-FdunOPoq table td{border:1px solid #131722;padding:4px}html.theme-dark .solution-FdunOPoq table td{border:1px solid #b2b5be}.solution-FdunOPoq iframe{height:400px;width:100%}.solution-FdunOPoq [data-img-border]{background:#e3effd;border-radius:6px;box-sizing:border-box;display:flex;flex-flow:row nowrap;justify-content:center;margin:24px 0;padding:20px;width:100%}html.theme-dark .solution-FdunOPoq [data-img-border]{background:#2a2e39}.responsive-container-media-mf-legacy-phone .solution-FdunOPoq [data-img-border]{padding:40px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .solution-FdunOPoq [data-img-border]{padding:40px}}@media (any-hover:hover){.solution-FdunOPoq [data-img-border][role=button]:hover{cursor:zoom-in}}.solution-FdunOPoq [data-img-border]{outline:none;overflow:visible;position:relative}.solution-FdunOPoq [data-img-border]:focus{outline:none}.solution-FdunOPoq [data-img-border]:focus-visible{outline:none}.solution-FdunOPoq [data-img-border]:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 12px);pointer-events:none;position:absolute;right:-6px;top:-6px;width:calc(100% + 12px);z-index:1}.solution-FdunOPoq [data-img-border]:focus:after{display:block}.solution-FdunOPoq [data-img-border]:focus-visible:after{display:block}.solution-FdunOPoq [data-img-border]:focus:not(:focus-visible):after{display:none}.solution-FdunOPoq [data-img-border]:after,html.theme-dark .solution-FdunOPoq [data-img-border]:after{border-color:#2962ffcc}.solution-FdunOPoq [data-img-border]:after{border-radius:10px}.solution-FdunOPoq img:not([data-float-left]):not([data-float-right]){border-radius:6px;box-shadow:0 2px 4px #0003;display:block;height:auto;height:intrinsic;margin:0;max-width:100%;width:100%}html.theme-dark .solution-FdunOPoq img:not([data-float-left]):not([data-float-right]){box-shadow:0 2px 4px #0006}.solution-FdunOPoq img[data-float-left]{float:right;margin:0 0 1em 1em}.solution-FdunOPoq img[data-float-right]{float:left;margin:0 1em 1em 0}.solution-FdunOPoq blockquote{background-color:#e3effd;border-radius:6px;margin:0 0 16px;padding:24px}html.theme-dark .solution-FdunOPoq blockquote{background-color:#2a2e39}.solution-FdunOPoq blockquote ::selection{background-color:#bbd9fb}html.theme-dark .solution-FdunOPoq blockquote ::selection{background-color:#143a87}.solution-FdunOPoq blockquote ol:last-child,.solution-FdunOPoq blockquote p:last-child,.solution-FdunOPoq blockquote pre:last-child,.solution-FdunOPoq blockquote ul:last-child{margin-bottom:0}.support-textarea-FdunOPoq{max-height:490px;min-height:106px}.list-HVdG1RMD{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px #0003;margin:0;overflow:hidden;position:absolute;right:0;top:36px;width:100%;z-index:1}html.theme-dark .list-HVdG1RMD{background-color:#131722;box-shadow:0 2px 4px #0006}.responsive-container-media-mf-legacy-phone .list-HVdG1RMD{margin:0}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .list-HVdG1RMD{margin:0}}.empty-HVdG1RMD{font-size:18px;height:40px;line-height:40px;text-align:center}.itemWrapper-HVdG1RMD{word-wrap:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-HVdG1RMD,.responsive-container-base .item-HVdG1RMD{margin:0}.highlight-HVdG1RMD{color:#2962ff}.fixed-header-k70B48fN{background:#fff;border-bottom:1px solid #f0f3fa;box-sizing:border-box;height:72px;left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transform:translateY(-20%);transition:opacity .2s ease-in-out,transform .2s ease-in-out;width:100%;z-index:4}html.theme-dark .fixed-header-k70B48fN{background:#131722;border-bottom:1px solid #2a2e39}.fixed-header-k70B48fN.visible-k70B48fN{opacity:1;pointer-events:auto;transform:translateY(0)}.fixed-header-content-k70B48fN{align-items:center;box-sizing:border-box;display:flex;flex-flow:row nowrap;height:100%;justify-content:space-between;margin:0 auto;max-width:904px;padding:0 20px;width:100%}@media screen and (min-width:320px){.fixed-header-content-k70B48fN{padding-left:32.5px;padding-right:27.5px;width:calc(100% - 5px)}}.responsive-container-media-mf-legacy-phone .fixed-header-content-k70B48fN{padding-left:102.5px;padding-right:77.5px}@supports (scrollbar-width:thin){@media screen and (min-width:320px){.fixed-header-content-k70B48fN{padding-left:35.5px;padding-right:24.5px;width:calc(100% - 11px)}}.responsive-container-media-mf-legacy-phone .fixed-header-content-k70B48fN{padding-left:105.5px;padding-right:74.5px}}.wrap-vLznnRjl{box-sizing:border-box;display:flex;flex-flow:column nowrap;flex-grow:1;margin:0 auto;max-width:904px;padding:55px 20px 40px;position:relative;-webkit-user-select:text;user-select:text;width:100%}.responsive-container-media-mf-legacy-phone-vertical .wrap-vLznnRjl{padding:55px 30px 40px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wrap-vLznnRjl{padding:55px 30px 40px}}.responsive-container-media-mf-legacy-phone .wrap-vLznnRjl{padding:66px 100px 66px 80px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .wrap-vLznnRjl{padding:66px 100px 66px 80px}}.close-button-vLznnRjl{left:12px;margin:0;position:absolute;top:8px;z-index:1}.responsive-container-media-mf-legacy-phone-vertical .close-button-vLznnRjl{left:22px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl{left:22px}}.responsive-container-media-mf-legacy-phone .close-button-vLznnRjl{top:67px}.responsive-container-media-mf-legacy-phone .close-button-vLznnRjl.with-search-vLznnRjl{top:63px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl{top:67px}.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .close-button-vLznnRjl.with-search-vLznnRjl{top:63px}}.back-button-vLznnRjl{position:absolute;right:8px;top:8px}.responsive-container-media-mf-legacy-phone-vertical .back-button-vLznnRjl{right:18px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl{right:18px}}.responsive-container-media-mf-legacy-phone .back-button-vLznnRjl{right:42px;top:100px}.responsive-container-media-mf-legacy-phone .back-button-vLznnRjl.with-search-vLznnRjl{top:174px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl{right:42px;top:100px}.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .back-button-vLznnRjl.with-search-vLznnRjl{top:174px}}.responsive-container-base .fixed-header-button-vLznnRjl{left:auto;top:auto}.responsive-container-base .fixed-header-back-button-vLznnRjl{position:relative;right:-12px}.responsive-container-media-mf-legacy-phone .fixed-header-back-button-vLznnRjl{right:-38px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .fixed-header-back-button-vLznnRjl{right:-38px}}.fixed-header-close-button-vLznnRjl{position:absolute}.responsive-container-base .fixed-header-close-button-vLznnRjl{left:17px}@media screen and (min-width:320px){.responsive-container-base .fixed-header-close-button-vLznnRjl{left:27px}}@supports (scrollbar-width:thin){.responsive-container-base .fixed-header-close-button-vLznnRjl{left:12px}@media screen and (min-width:320px){.responsive-container-base .fixed-header-close-button-vLznnRjl{left:33px}}}.responsive-container-media-mf-legacy-phone .fixed-header-close-button-vLznnRjl{left:27px}@supports (scrollbar-width:thin){.responsive-container-media-mf-legacy-phone .fixed-header-close-button-vLznnRjl{left:33px}}.breadcrumbs-vLznnRjl{font-size:14px;font-style:normal;font-weight:400;line-height:21px;margin:0 -20px 16px;min-height:21px;position:relative;width:calc(100% + 40px)}.responsive-container-media-mf-legacy-phone-vertical .breadcrumbs-vLznnRjl{margin-left:-30px;margin-right:-30px;width:calc(100% + 60px)}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl{margin-left:-30px;margin-right:-30px;width:calc(100% + 60px)}}.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl{margin-left:-5px;margin-right:-5px;width:auto}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl{margin-left:-5px;margin-right:-5px;width:auto}}.breadcrumbs-vLznnRjl:after,.breadcrumbs-vLznnRjl:before{display:none}.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl:after,.responsive-container-media-mf-legacy-phone .breadcrumbs-vLznnRjl:before{display:block}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl:after,.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-vLznnRjl:before{display:block}}.breadcrumbs-inner-vLznnRjl{box-sizing:border-box;padding-left:20px;padding-right:20px}.responsive-container-media-mf-legacy-phone-vertical .breadcrumbs-inner-vLznnRjl{padding-left:30px;padding-right:30px}@media screen and (min-width:330px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-inner-vLznnRjl{padding-left:30px;padding-right:30px}}.responsive-container-media-mf-legacy-phone .breadcrumbs-inner-vLznnRjl{padding-left:5px;padding-right:5px}@media screen and (min-width:480px){.responsive-container-base:not(.responsive-container-media-mf-phone-vertical) .breadcrumbs-inner-vLznnRjl{padding-left:5px;padding-right:5px}}@supports (-webkit-overflow-scrolling:touch){.disabledForIos-vLznnRjl{display:none}}.title-TQlEhltv{margin-top:45px}.externalLink-TQlEhltv{align-items:center;border:1px solid #e0e3eb;border-radius:6px;display:flex;flex-flow:column nowrap;justify-content:center;padding:24px}html.theme-dark .externalLink-TQlEhltv{border:1px solid #363a45}@media (any-hover:hover){.externalLink-TQlEhltv:hover{background-color:#f8f9fd}html.theme-dark .externalLink-TQlEhltv:hover{background-color:#1e222d}}.externalLink-TQlEhltv:active{background-color:#e0e3eb}html.theme-dark .externalLink-TQlEhltv:active{background-color:#363a45}.externalLink-TQlEhltv{outline:none;overflow:visible;position:relative}.externalLink-TQlEhltv:focus{outline:none}.externalLink-TQlEhltv:focus-visible{outline:none}.externalLink-TQlEhltv:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 10px);pointer-events:none;position:absolute;right:-5px;top:-5px;width:calc(100% + 10px);z-index:1}.externalLink-TQlEhltv:focus:after{display:block}.externalLink-TQlEhltv:focus-visible:after{display:block}.externalLink-TQlEhltv:focus:not(:focus-visible):after{display:none}.externalLink-TQlEhltv:after{border-color:#2962ffcc;border-radius:10px}.externalIcon-TQlEhltv{background-position:50%;background-repeat:no-repeat;background-size:contain;height:120px;width:120px}.externalIcon--free-user-faqs-TQlEhltv{background-image:url(186115d4ca74152914acd81e26836798.svg)}html.theme-dark .externalIcon--free-user-faqs-TQlEhltv{background-image:url(11cab6ced9c9b2073f5e8a987766f54f.svg)}.externalIcon--shortcuts-TQlEhltv{background-image:url(335343b286c304fe0ff472256b515659.svg)}html.theme-dark .externalIcon--shortcuts-TQlEhltv{background-image:url(8386a0d291cb7eb9183b942d59c52947.svg)}.externalIcon--new-TQlEhltv{background-image:url(0be05afe69640ce88aa24265aa2effab.svg)}html.theme-dark .externalIcon--new-TQlEhltv{background-image:url(9bd0f4d3395d3c7f81660e6885b07378.svg)}.externalIcon--feature-TQlEhltv{background-image:url(614cf27f508c538c23fd1e41dec69981.svg)}html.theme-dark .externalIcon--feature-TQlEhltv{background-image:url(9619f52114e3eb5ddafad0f641d090cf.svg)}.externalIcon--pine-TQlEhltv{background-image:url(2f1e9623d075ac187394740ee1f6c377.svg)}html.theme-dark .externalIcon--pine-TQlEhltv{background-image:url(576e6465e16da65acd139607cb0febde.svg)}.externalIcon--pine-script-TQlEhltv{background-image:url(4aaf8ecd499671f5404f7355e9b94ffa.svg)}html.theme-dark .externalIcon--pine-script-TQlEhltv{background-image:url(677ba99bfad6904fb5ff8b117e32715d.svg)}.externalIcon--update-TQlEhltv{background-image:url(1d59e7669186b321ec8cffdfd2369210.svg)}html.theme-dark .externalIcon--update-TQlEhltv{background-image:url(29545fef24e0ecc8478adab4816bba30.svg)}.externalIcon--status-TQlEhltv{background-image:url(f98fa40daa7d9e2981645268d2a38d52.svg)}html.theme-dark .externalIcon--status-TQlEhltv{background-image:url(3aeb0bb0575de40834fc666660380ae0.svg)}.externalTitle-TQlEhltv{color:#131722;font-size:18px;line-height:28px;margin-top:10px;text-align:center}html.theme-dark .externalTitle-TQlEhltv{color:#d1d4dc}.openingIcon-TQlEhltv{color:#131722;left:4px;position:absolute;top:4px}html.theme-dark .openingIcon-TQlEhltv{color:#d1d4dc}.actions-gJT1zWiK{display:flex;flex-flow:row wrap;justify-content:flex-start}.actions--align_center-gJT1zWiK,.actions--align_right-gJT1zWiK{flex-direction:row-reverse}.actions--align_center-gJT1zWiK{justify-content:center}.actions--align_right-gJT1zWiK .button-gJT1zWiK{margin-left:0;margin-right:16px}.actions--align_right-gJT1zWiK .button-gJT1zWiK:last-child{margin-right:0}.actions--align_center-gJT1zWiK .button-gJT1zWiK,.actions--align_center-gJT1zWiK .button-gJT1zWiK:last-child{margin-left:8px;margin-right:8px}.button-gJT1zWiK{margin-bottom:16px;margin-left:16px;margin-right:0}.button-gJT1zWiK:last-child{margin-left:0}.text-gJT1zWiK{opacity:0}.text-gJT1zWiK.shown-gJT1zWiK{opacity:1}.loader-gJT1zWiK{display:none}.loader-gJT1zWiK.shown-gJT1zWiK{display:block}.paragraph-q0Pd3eEh{color:#131722;font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:16px}html.theme-dark .paragraph-q0Pd3eEh{color:#b2b5be}.success-page-w9EDOZYy{align-items:center;display:flex;flex-flow:column nowrap;height:100%;justify-content:center;text-align:center}.link-w9EDOZYy{color:#2962ff;transition:color .35s ease}html.theme-dark .link-w9EDOZYy{color:#2962ff}.link-w9EDOZYy:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-w9EDOZYy:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-w9EDOZYy:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-w9EDOZYy:hover{fill:#1e53e5;color:#1e53e5}}.link-w9EDOZYy:focus{outline:auto}.link-w9EDOZYy:focus-visible{outline:auto}.link-w9EDOZYy:focus:not(:focus-visible){outline:none}.link-w9EDOZYy:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-w9EDOZYy:active{fill:#1848cc;color:#1848cc}.responsive-container-media-mf-legacy-phone .success-page-title-w9EDOZYy{margin-bottom:16px}.responsive-container-media-mf-legacy-phone .success-page-text-w9EDOZYy{margin-bottom:32px}.icon-eFQRlZi6{display:inline-flex;position:absolute;right:20px;top:15px}@media screen and (min-width:768px){.icon-eFQRlZi6{right:8px}}.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6{right:16px;top:13px}.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6,.responsive-container-media-mf-legacy-phone .icon-eFQRlZi6 svg{height:22px;width:22px}.container-eFQRlZi6{margin-top:28px;position:relative}.responsive-container-media-mf-legacy-phone .container-eFQRlZi6{margin-top:64px}.item-eFQRlZi6:only-child .innerItem-eFQRlZi6{border-top-color:#e0e3eb}html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{border-top-color:#434651}.item-eFQRlZi6:only-child .innerItem-eFQRlZi6:active{border-top-color:#0000}@media (any-hover:hover){.item-eFQRlZi6:only-child .innerItem-eFQRlZi6:hover{border-top-color:#0000}}html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6:active{border-top-color:#0000}@media (any-hover:hover){html.theme-dark .item-eFQRlZi6:only-child .innerItem-eFQRlZi6:hover{border-top-color:#0000}}.responsive-container-base .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-right:46px}@media screen and (min-width:768px){.responsive-container-base .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-right:34px}}.responsive-container-media-mf-legacy-phone .item-eFQRlZi6:only-child .innerItem-eFQRlZi6{padding-right:49px}.code-highlighter-OSu8zI0r [rel=highlighter]{background-color:#e3effd;border-radius:6px;margin:0;overflow:hidden}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter]{background-color:#2a2e39}.code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js{background-color:initial;background-image:none;border:none;box-shadow:none;color:#131722;display:block;font-size:16px;font-style:normal;font-weight:400;line-height:24px;overflow:auto;padding:24px}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js{color:#d1d4dc}.code-highlighter-OSu8zI0r [rel=highlighter]>code.language-js .token.operator{background-color:initial}.code-highlighter-OSu8zI0r [rel=highlighter] ::selection{background-color:#bbd9fb}html.theme-dark .code-highlighter-OSu8zI0r [rel=highlighter] ::selection{background-color:#143a87}.code-highlighter-OSu8zI0r [rel=highlighter]:after,.code-highlighter-OSu8zI0r [rel=highlighter]:before{display:none}.wrapper-copy-link-button-v1B2IYZi{display:inline;white-space:nowrap}.copy-link-button-v1B2IYZi{background:#0000;border:none;box-sizing:initial;color:#131722;height:28px;margin:0 8px 0 0;padding:0;width:28px}html.theme-dark .copy-link-button-v1B2IYZi{color:#d1d4dc}@media (any-hover:hover){.copy-link-button-v1B2IYZi:hover{color:#000}html.theme-dark .copy-link-button-v1B2IYZi:hover{color:#f0f3fa}.copy-link-button-v1B2IYZi:hover:before{background:#f0f3fa}html.theme-dark .copy-link-button-v1B2IYZi:hover:before{background:#2a2e39}}.copy-link-button-v1B2IYZi:active:before{background:#e0e3eb}html.theme-dark .copy-link-button-v1B2IYZi:active:before{background:#1e222d}.copy-link-button-v1B2IYZi:before{background:#0000;border:none;border-radius:4px;content:"";height:calc(100% + 16px);position:absolute;right:-8px;top:-8px;width:calc(100% + 16px);z-index:-1}.copy-link-button-v1B2IYZi{outline:none;overflow:visible;position:relative}.copy-link-button-v1B2IYZi:focus{outline:none}.copy-link-button-v1B2IYZi:focus-visible{outline:none}.copy-link-button-v1B2IYZi:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:calc(100% + 24px);pointer-events:none;position:absolute;right:-12px;top:-12px;width:calc(100% + 24px);z-index:1}.copy-link-button-v1B2IYZi:focus:after{display:block}.copy-link-button-v1B2IYZi:focus-visible:after{display:block}.copy-link-button-v1B2IYZi:focus:not(:focus-visible):after{display:none}.copy-link-button-v1B2IYZi:after{border-color:#2962ffcc;border-radius:8px}.icon-v1B2IYZi{display:inline-flex;height:100%;width:100%}.solution-Iy6Ippd7 h4{font-size:20px;font-style:normal;font-weight:600;line-height:28px;margin:40px 0 8px}.solution-Iy6Ippd7 h5{font-size:18px;font-style:normal;font-weight:600;line-height:26px;margin:32px 0 4px}.solution-Iy6Ippd7 h5~ol,.solution-Iy6Ippd7 h5~p,.solution-Iy6Ippd7 h5~pre,.solution-Iy6Ippd7 h5~ul{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.solution-Iy6Ippd7 h6{font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin:24px 0 4px}.solution-Iy6Ippd7 h6~ol,.solution-Iy6Ippd7 h6~p,.solution-Iy6Ippd7 h6~pre,.solution-Iy6Ippd7 h6~ul{font-size:14px;font-style:normal;font-weight:400;line-height:21px}.solution-Iy6Ippd7 h5~h4~ol,.solution-Iy6Ippd7 h5~h4~p,.solution-Iy6Ippd7 h5~h4~pre,.solution-Iy6Ippd7 h5~h4~ul,.solution-Iy6Ippd7 h6~h4~ol,.solution-Iy6Ippd7 h6~h4~p,.solution-Iy6Ippd7 h6~h4~pre,.solution-Iy6Ippd7 h6~h4~ul,.solution-Iy6Ippd7 h6~h5~ol,.solution-Iy6Ippd7 h6~h5~p,.solution-Iy6Ippd7 h6~h5~pre,.solution-Iy6Ippd7 h6~h5~ul,.solution-Iy6Ippd7 ol,.solution-Iy6Ippd7 p,.solution-Iy6Ippd7 pre,.solution-Iy6Ippd7 ul{font-size:16px;font-style:normal;font-weight:400;line-height:24px}.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 [data-img-border] img,.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 img[data-float-left],.solution-Iy6Ippd7.images-hidden-Iy6Ippd7 img[data-float-right]{display:none}.spinner-Iy6Ippd7{height:5em;position:relative}.launch-chart-banner-Iy6Ippd7{margin-top:32px}.copy-link-button-Iy6Ippd7{display:inline-block;margin-top:-1px;vertical-align:middle}.item-title-bztm5Sql{display:block;width:100%}.solutions-count-bztm5Sql{color:#787b86;display:block;font-size:13px;font-style:normal;font-weight:400;line-height:19px}html.theme-dark .solutions-count-bztm5Sql{color:#787b86}.spinner-e4BIGvhd{height:5em;position:relative}.tv-support-portal{background-color:#fff;display:flex;flex-flow:column nowrap;min-height:80vh}html.theme-dark .tv-support-portal{background-color:#131722}.support_portal body{background-color:#fff}html.theme-dark .support_portal body{background-color:#131722}.wizard-nYCqoM4n{display:flex;flex-flow:column nowrap;flex-grow:1;position:relative;width:100%}.wizard-nYCqoM4n button:not(:disabled){cursor:pointer} \ No newline at end of file diff --git a/charting_library/bundles/93748b7538eb622034881a9206d82dda.svg b/charting_library/bundles/93748b7538eb622034881a9206d82dda.svg new file mode 100644 index 00000000..1b0b040c --- /dev/null +++ b/charting_library/bundles/93748b7538eb622034881a9206d82dda.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/939c709099ed020091dc58cbd5207cbd.svg b/charting_library/bundles/939c709099ed020091dc58cbd5207cbd.svg new file mode 100644 index 00000000..0e393449 --- /dev/null +++ b/charting_library/bundles/939c709099ed020091dc58cbd5207cbd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9410.cede90b73dc7bda7578a.css b/charting_library/bundles/9410.cede90b73dc7bda7578a.css new file mode 100644 index 00000000..8f79f0c2 --- /dev/null +++ b/charting_library/bundles/9410.cede90b73dc7bda7578a.css @@ -0,0 +1 @@ +.label-UvIfeuIB{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:block;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .label-UvIfeuIB{color:#787b86}.countrySelect-zsy9fYkd .flagSlot-zsy9fYkd{padding-left:6px}.countrySelect-zsy9fYkd .flag-zsy9fYkd{border-radius:50%;height:18px;width:18px}.countrySelect-zsy9fYkd .textSlot-zsy9fYkd{justify-content:flex-start;padding-left:4px} \ No newline at end of file diff --git a/charting_library/bundles/9410.cede90b73dc7bda7578a.rtl.css b/charting_library/bundles/9410.cede90b73dc7bda7578a.rtl.css new file mode 100644 index 00000000..ca7d1dd4 --- /dev/null +++ b/charting_library/bundles/9410.cede90b73dc7bda7578a.rtl.css @@ -0,0 +1 @@ +.label-UvIfeuIB{font-feature-settings:"tnum" on,"lnum" on;color:#787b86;display:block;font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:18px}html.theme-dark .label-UvIfeuIB{color:#787b86}.countrySelect-zsy9fYkd .flagSlot-zsy9fYkd{padding-right:6px}.countrySelect-zsy9fYkd .flag-zsy9fYkd{border-radius:50%;height:18px;width:18px}.countrySelect-zsy9fYkd .textSlot-zsy9fYkd{justify-content:flex-start;padding-right:4px} \ No newline at end of file diff --git a/charting_library/bundles/9505.033a769154fc53ff7eca.js b/charting_library/bundles/9505.033a769154fc53ff7eca.js deleted file mode 100644 index b4124464..00000000 --- a/charting_library/bundles/9505.033a769154fc53ff7eca.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9505],{55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},71123:e=>{e.exports={button:"button-khcLBZEz",hover:"hover-khcLBZEz",arrow:"arrow-khcLBZEz",arrowWrap:"arrowWrap-khcLBZEz",newStyles:"newStyles-khcLBZEz",isOpened:"isOpened-khcLBZEz"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,o)=>{"use strict";function r(e){return i(e,s)}function n(e){return i(e,a)}function i(e,t){const o=Object.entries(e).filter(t),r={};for(const[e,t]of o)r[e]=t;return r}function s(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function a(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>r,filterAriaProps:()=>n,filterProps:()=>i,isDataAttribute:()=>s,isAriaAttribute:()=>a})},40233:(e,t,o)=>{"use strict";o.d(t,{VerticalAttachEdge:()=>r,HorizontalAttachEdge:()=>n,VerticalDropDirection:()=>i,HorizontalDropDirection:()=>s,getPopupPositioner:()=>l});var r,n,i,s,a=o(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(r||(r={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(n||(n={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(i||(i={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(s||(s={}));const c={verticalAttachEdge:r.Bottom,horizontalAttachEdge:n.Left,verticalDropDirection:i.FromTopToBottom,horizontalDropDirection:s.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function l(e,t){return(o,l)=>{const d=(0,a.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:p=c.verticalAttachEdge,verticalDropDirection:u=c.verticalDropDirection,horizontalAttachEdge:h=c.horizontalAttachEdge,horizontalDropDirection:m=c.horizontalDropDirection,horizontalMargin:v=c.horizontalMargin,verticalMargin:f=c.verticalMargin,matchButtonAndListboxWidths:w=c.matchButtonAndListboxWidths}=t,g=p===r.Top?-1*f:f,D=h===n.Right?d.right:d.left,E=p===r.Top?d.top:d.bottom,b={x:D-(m===s.FromRightToLeft?o:0)+v,y:E-(u===i.FromBottomToTop?l:0)+g};return w&&(b.overrideWidth=d.width),b}}},4825:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>c,ToolWidgetButton:()=>l}) -;var r=o(59496),n=o(97754),i=o(9745),s=o(37669),a=o(55576);const c=a,l=r.forwardRef((e,t)=>{const{icon:o,isActive:c,isOpened:l,isDisabled:d,isGrouped:p,isHovered:u,onClick:h,text:m,textBeforeIcon:v,title:f,theme:w=a,className:g,forceInteractive:D,"data-name":E,...b}=e,C=n(g,w.button,f&&"apply-common-tooltip",{[w.isActive]:c,[w.isOpened]:l,[w.isInteractive]:(D||Boolean(h))&&!d,[w.isDisabled]:d,[w.isGrouped]:p,[w.hover]:u,[w.newStyles]:s.hasNewHeaderToolbarStyles}),O=o&&("string"==typeof o?r.createElement(i.Icon,{className:w.icon,icon:o}):r.cloneElement(o,{className:n(w.icon,o.props.className)}));return r.createElement("div",{...b,ref:t,"data-role":"button",className:C,onClick:d?void 0:h,title:f,"data-name":E},v&&m&&r.createElement("div",{className:n("js-button-text",w.text)},m),O,!v&&m&&r.createElement("div",{className:n("js-button-text",w.text)},m))})},35390:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetMenu:()=>m});var r=o(59496),n=o(97754),i=o(50628),s=o(10381),a=o(90186),c=o(37558),l=o(41590),d=o(40233),p=o(90692),u=o(37669),h=o(71123);class m extends r.PureComponent{constructor(e){super(e),this._wrapperRef=null,this._controller=r.createRef(),this._handleWrapperRef=e=>{this._wrapperRef=e,this.props.reference&&this.props.reference(e)},this._handleClick=e=>{e.target instanceof Node&&e.currentTarget.contains(e.target)&&(this._handleToggleDropdown(),this.props.onClick&&this.props.onClick(e,!this.state.isOpened))},this._handleToggleDropdown=e=>{const{onClose:t,onOpen:o}=this.props,{isOpened:r}=this.state,n="boolean"==typeof e?e:!r;this.setState({isOpened:n}),n&&o&&o(),!n&&t&&t()},this._handleClose=()=>{this.close()},this.state={isOpened:!1}}render(){const{id:e,arrow:t,content:o,isDisabled:i,isDrawer:c,isShowTooltip:l,title:d,className:h,hotKey:m,theme:v,drawerBreakpoint:f}=this.props,{isOpened:w}=this.state,g=n(h,v.button,{"apply-common-tooltip":l||!i,[v.isDisabled]:i,[v.isOpened]:w,[v.newStyles]:u.hasNewHeaderToolbarStyles});return r.createElement("div",{id:e,className:g,onClick:i?void 0:this._handleClick,title:d,"data-tooltip-hotkey":m,ref:this._handleWrapperRef,"data-role":"button",...(0,a.filterDataProps)(this.props)},o,t&&r.createElement("div",{className:v.arrow},r.createElement("div",{className:v.arrowWrap},r.createElement(s.ToolWidgetCaret,{dropped:w}))),this.state.isOpened&&(f?r.createElement(p.MatchMedia,{rule:f},e=>this._renderContent(e)):this._renderContent(c)))}close(){this._handleToggleDropdown(!1)}update(){null!==this._controller.current&&this._controller.current.update()}_renderContent(e){const{menuDataName:t,minWidth:o,menuClassName:n,maxHeight:s,drawerPosition:a="Bottom",children:p}=this.props,{isOpened:u}=this.state,h={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection,matchButtonAndListboxWidths:this.props.matchButtonAndListboxWidths -},m=Boolean(u&&e&&a),v=function(e){return"function"==typeof e}(p)?p({isDrawer:m}):p;return m?r.createElement(c.DrawerManager,null,r.createElement(l.Drawer,{onClose:this._handleClose,position:a,"data-name":t},v)):r.createElement(i.PopupMenu,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:u,minWidth:o,onClose:this._handleClose,position:(0,d.getPopupPositioner)(this._wrapperRef,h),className:n,maxHeight:s,"data-name":t},v)}}m.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:h}},37669:(e,t,o)=>{"use strict";o.d(t,{hasNewHeaderToolbarStyles:()=>r});o(67337);const r=!1},39640:(e,t,o)=>{"use strict";function r(e,t,o,r,n){function i(n){if(e>n.timeStamp)return;const i=n.target;void 0!==o&&null!==t&&null!==i&&i.ownerDocument===r&&(t.contains(i)||o(n))}return n.click&&r.addEventListener("click",i,!1),n.mouseDown&&r.addEventListener("mousedown",i,!1),n.touchEnd&&r.addEventListener("touchend",i,!1),n.touchStart&&r.addEventListener("touchstart",i,!1),()=>{r.removeEventListener("click",i,!1),r.removeEventListener("mousedown",i,!1),r.removeEventListener("touchend",i,!1),r.removeEventListener("touchstart",i,!1)}}o.d(t,{addOutsideEventListener:()=>r})},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>n,DrawerContext:()=>i});var r=o(59496);class n extends r.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.createElement(i.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const i=r.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>h});var r=o(59496),n=o(88537),i=o(97754),s=o(59142),a=o(99054),c=o(65718),l=o(37558),d=o(49483),p=o(29197),u=o(66998);function h(e){const{position:t="Bottom",onClose:o,children:h,className:m,theme:v=u}=e,f=(0,n.ensureNotNull)((0,r.useContext)(l.DrawerContext)),[w,g]=(0,r.useState)(0),D=(0,r.useRef)(null),E=(0,r.useContext)(p.CloseDelegateContext);return(0,r.useEffect)(()=>{const e=(0,n.ensureNotNull)(D.current);return e.focus({preventScroll:!0}),E.subscribe(f,o),0===f.currentDrawer&&(0,a.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,s.disableBodyScroll)(e),g(f.addDrawer()),()=>{E.unsubscribe(f,o);const t=f.removeDrawer();d.CheckMobile.iOS()&&(0,s.enableBodyScroll)(e),0===t&&(0,a.setFixedBodyState)(!1)}},[]),r.createElement(c.Portal,null,r.createElement("div",{className:i(u.wrap,u["position"+t])},w===f.currentDrawer&&r.createElement("div",{className:u.backdrop,onClick:o}),r.createElement("div",{className:i(u.drawer,v.drawer,u["position"+t],m),ref:D,tabIndex:-1,"data-name":e["data-name"]},h)))}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>l,PopupMenuItem:()=>u});var r=o(59496),n=o(97754),i=o(59064),s=o(51768),a=o(90186),c=o(23576);const l=c;function d(e){const{reference:t,...o}=e,n={ -...o,ref:t};return r.createElement(e.href?"a":"div",n)}function p(e){e.stopPropagation()}function u(e){const{id:t,role:o,"aria-selected":l,className:u,title:h,labelRowClassName:m,labelClassName:v,shortcut:f,forceShowShortcuts:w,icon:g,isActive:D,isDisabled:E,isHovered:b,appearAsDisabled:C,label:O,link:T,showToolboxOnHover:k,target:x,rel:N,toolbox:A,reference:y,onMouseOut:S,onMouseOver:L,suppressToolboxClick:B=!0,theme:M=c}=e,_=(0,a.filterDataProps)(e),F=(0,r.useRef)(null);return r.createElement(d,{..._,id:t,role:o,"aria-selected":l,className:n(u,M.item,g&&M.withIcon,{[M.isActive]:D,[M.isDisabled]:E||C,[M.hovered]:b}),title:h,href:T,target:x,rel:N,reference:function(e){F.current=e,"function"==typeof y&&y(e);"object"==typeof y&&(y.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:r,onClickArg:n,trackEventObject:a}=e;if(E)return;a&&(0,s.trackEvent)(a.category,a.event,a.label);r&&r(n,t);o||(0,i.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:r}=e;o&&r&&(0,s.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:r}=e;if(1===t.button&&T&&o){let e=o.label;r&&(e+="_mouseWheelClick"),(0,s.trackEvent)(o.category,o.event,e)}},onMouseOver:L,onMouseOut:S},void 0!==g&&r.createElement("div",{className:M.icon,dangerouslySetInnerHTML:{__html:g}}),r.createElement("div",{className:n(M.labelRow,m)},r.createElement("div",{className:n(M.label,v)},O)),(void 0!==f||w)&&r.createElement("div",{className:M.shortcut},(H=f)&&H.split("+").join(" + ")),void 0!==A&&r.createElement("div",{onClick:B?p:void 0,className:n(M.toolbox,{[M.showOnHover]:k})},A));var H}},50628:(e,t,o)=>{"use strict";o.d(t,{PopupMenu:()=>l});var r=o(59496),n=o(87995),i=o(65718),s=o(27317),a=o(29197),c=o(58095);function l(e){const{controller:t,children:o,isOpened:l,closeOnClickOutside:d=!0,doNotCloseOn:p,onClickOutside:u,onClose:h,...m}=e,v=(0,r.useContext)(a.CloseDelegateContext),f=(0,c.useOutsideEvent)({handler:function(e){u&&u(e);if(!d)return;if(p&&e.target instanceof Node){const t=n.findDOMNode(p);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return l?r.createElement(i.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.createElement("span",{ref:f,style:{pointerEvents:"auto"}},r.createElement(s.Menu,{...m,onClose:h,onScroll:function(t){const{onScroll:o}=e;o&&o(t)},customCloseDelegate:v,ref:t},o))):null}},10381:(e,t,o)=>{"use strict";o.d(t,{ToolWidgetCaret:()=>c});var r=o(59496),n=o(97754),i=o(9745),s=o(40367),a=o(81268);function c(e){const{dropped:t,className:o}=e;return r.createElement(i.Icon,{className:n(o,s.icon,{[s.dropped]:t}),icon:a})}},81268:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/95127900436e4305bca6653ca8d9957f.svg b/charting_library/bundles/95127900436e4305bca6653ca8d9957f.svg new file mode 100644 index 00000000..59ca5137 --- /dev/null +++ b/charting_library/bundles/95127900436e4305bca6653ca8d9957f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/953f6834f68153142229a6d2237076cf.svg b/charting_library/bundles/953f6834f68153142229a6d2237076cf.svg new file mode 100644 index 00000000..e0978d64 --- /dev/null +++ b/charting_library/bundles/953f6834f68153142229a6d2237076cf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9565.c69166c3f0d2b77c3979.css b/charting_library/bundles/9565.c69166c3f0d2b77c3979.css new file mode 100644 index 00000000..a490bba5 --- /dev/null +++ b/charting_library/bundles/9565.c69166c3f0d2b77c3979.css @@ -0,0 +1 @@ +.tv-flag-country{border-radius:50%;display:inline-block;height:20px;overflow:hidden;vertical-align:middle;width:20px}.tv-flag-country--size_block-title{height:22px;width:22px}.tv-flag-country--forex{border-radius:0;color:#363a45;overflow:visible}html.theme-dark .tv-flag-country--forex{color:#fff}.tv-flag-country--btc{border-radius:0;overflow:visible} \ No newline at end of file diff --git a/charting_library/bundles/9565.c69166c3f0d2b77c3979.rtl.css b/charting_library/bundles/9565.c69166c3f0d2b77c3979.rtl.css new file mode 100644 index 00000000..a490bba5 --- /dev/null +++ b/charting_library/bundles/9565.c69166c3f0d2b77c3979.rtl.css @@ -0,0 +1 @@ +.tv-flag-country{border-radius:50%;display:inline-block;height:20px;overflow:hidden;vertical-align:middle;width:20px}.tv-flag-country--size_block-title{height:22px;width:22px}.tv-flag-country--forex{border-radius:0;color:#363a45;overflow:visible}html.theme-dark .tv-flag-country--forex{color:#fff}.tv-flag-country--btc{border-radius:0;overflow:visible} \ No newline at end of file diff --git a/charting_library/bundles/957.7e1da618288b536c77d2.css b/charting_library/bundles/957.7e1da618288b536c77d2.css new file mode 100644 index 00000000..f201b313 --- /dev/null +++ b/charting_library/bundles/957.7e1da618288b536c77d2.css @@ -0,0 +1 @@ +.dialog-xvLVYmhd{overflow-x:hidden;overflow-y:auto}.container-xvLVYmhd{display:flex;flex-flow:column nowrap;height:100%;justify-content:space-between;padding:40px 20px 20px;position:relative}@media screen and (min-width:568px){.container-xvLVYmhd{height:auto;padding:40px}}.header-xvLVYmhd{align-items:center;display:flex;flex-flow:column nowrap;margin-bottom:8px}@media screen and (min-width:568px){.header-xvLVYmhd{margin-bottom:16px}}.image-xvLVYmhd{height:120px;margin-bottom:24px;width:120px}.title-xvLVYmhd{color:#131722;font-size:28px;font-style:normal;font-weight:600;line-height:36px;width:100%}html.theme-dark .title-xvLVYmhd{color:#d1d4dc}@media screen and (min-width:568px){.title-xvLVYmhd{font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-align:center}}.main-content-xvLVYmhd{color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:32px}html.theme-dark .main-content-xvLVYmhd{color:#d1d4dc}@media screen and (min-width:568px){.main-content-xvLVYmhd{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:40px}}.list-xvLVYmhd,.paragraph-xvLVYmhd{margin-bottom:10px}.list-xvLVYmhd:last-child,.paragraph-xvLVYmhd:last-child{margin-bottom:0}.list--bold-xvLVYmhd,.paragraph--bold-xvLVYmhd{font-weight:700}.list-xvLVYmhd{margin-top:16px}.list-item-xvLVYmhd{margin-bottom:12px;margin-left:20px}.list-item-xvLVYmhd:last-child{margin-bottom:0}@media screen and (min-width:568px){.list-item-xvLVYmhd{margin-left:30px}}.strong-xvLVYmhd{color:#131722;font-weight:700}html.theme-dark .strong-xvLVYmhd{color:#f0f3fa}.actions-xvLVYmhd{display:flex;flex-flow:column-reverse nowrap}.button-content-xvLVYmhd{display:flex;margin:auto}.button-xvLVYmhd{margin-bottom:8px}.button-xvLVYmhd:first-child{margin-bottom:0}@media screen and (min-width:568px){.button-xvLVYmhd{margin-bottom:16px}.button-xvLVYmhd:last-child{margin-right:0}}.countDown-xvLVYmhd{display:flex;justify-content:center;margin:24px 0 40px}.closeButton-xvLVYmhd{right:17px;top:17px} \ No newline at end of file diff --git a/charting_library/bundles/957.7e1da618288b536c77d2.rtl.css b/charting_library/bundles/957.7e1da618288b536c77d2.rtl.css new file mode 100644 index 00000000..fc3441b3 --- /dev/null +++ b/charting_library/bundles/957.7e1da618288b536c77d2.rtl.css @@ -0,0 +1 @@ +.dialog-xvLVYmhd{overflow-x:hidden;overflow-y:auto}.container-xvLVYmhd{display:flex;flex-flow:column nowrap;height:100%;justify-content:space-between;padding:40px 20px 20px;position:relative}@media screen and (min-width:568px){.container-xvLVYmhd{height:auto;padding:40px}}.header-xvLVYmhd{align-items:center;display:flex;flex-flow:column nowrap;margin-bottom:8px}@media screen and (min-width:568px){.header-xvLVYmhd{margin-bottom:16px}}.image-xvLVYmhd{height:120px;margin-bottom:24px;width:120px}.title-xvLVYmhd{color:#131722;font-size:28px;font-style:normal;font-weight:600;line-height:36px;width:100%}html.theme-dark .title-xvLVYmhd{color:#d1d4dc}@media screen and (min-width:568px){.title-xvLVYmhd{font-size:36px;font-style:normal;font-weight:600;line-height:44px;text-align:center}}.main-content-xvLVYmhd{color:#131722;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin-bottom:32px}html.theme-dark .main-content-xvLVYmhd{color:#d1d4dc}@media screen and (min-width:568px){.main-content-xvLVYmhd{font-size:18px;font-style:normal;font-weight:400;line-height:28px;margin-bottom:40px}}.list-xvLVYmhd,.paragraph-xvLVYmhd{margin-bottom:10px}.list-xvLVYmhd:last-child,.paragraph-xvLVYmhd:last-child{margin-bottom:0}.list--bold-xvLVYmhd,.paragraph--bold-xvLVYmhd{font-weight:700}.list-xvLVYmhd{margin-top:16px}.list-item-xvLVYmhd{margin-bottom:12px;margin-right:20px}.list-item-xvLVYmhd:last-child{margin-bottom:0}@media screen and (min-width:568px){.list-item-xvLVYmhd{margin-right:30px}}.strong-xvLVYmhd{color:#131722;font-weight:700}html.theme-dark .strong-xvLVYmhd{color:#f0f3fa}.actions-xvLVYmhd{display:flex;flex-flow:column-reverse nowrap}.button-content-xvLVYmhd{display:flex;margin:auto}.button-xvLVYmhd{margin-bottom:8px}.button-xvLVYmhd:first-child{margin-bottom:0}@media screen and (min-width:568px){.button-xvLVYmhd{margin-bottom:16px}.button-xvLVYmhd:last-child{margin-left:0}}.countDown-xvLVYmhd{display:flex;justify-content:center;margin:24px 0 40px}.closeButton-xvLVYmhd{left:17px;top:17px} \ No newline at end of file diff --git a/charting_library/bundles/9570.6e130410c18a92e289cd.css b/charting_library/bundles/9570.6e130410c18a92e289cd.css new file mode 100644 index 00000000..f2008c6e --- /dev/null +++ b/charting_library/bundles/9570.6e130410c18a92e289cd.css @@ -0,0 +1 @@ +.tv-control-material-input,.tv-control-material-input__control{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;background-color:initial!important;border:none;border-bottom:1px solid #dadde0;border-radius:2px;border-radius:0;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-material-input,html.theme-dark .tv-control-material-input__control{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-material-input::placeholder,.tv-control-material-input__control::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-material-input::placeholder,html.theme-dark .tv-control-material-input__control::placeholder{color:#50535e}.tv-control-material-input:-webkit-autofill,.tv-control-material-input__control:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-material-input--size_xsmall,.tv-control-material-input__control--size_xsmall{height:19px}.tv-control-material-input--size_small,.tv-control-material-input__control--size_small{height:27px}.tv-control-material-input--size_large,.tv-control-material-input__control--size_large{font-size:16px;height:48px}.tv-control-material-input--connect,.tv-control-material-input__control--connect{border-left:0;border-radius:0;border-right:0}.tv-control-material-input--connect_left,.tv-control-material-input__control--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-material-input--connect_right,.tv-control-material-input__control--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-control-material-input:hover,.tv-control-material-input__control:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-material-input:hover,html.theme-dark .tv-control-material-input__control:hover{border-color:#50535e}}.tv-control-material-input:focus,.tv-control-material-input__control:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-material-input[readonly],.tv-control-material-input__control[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-material-input[readonly]:focus,.tv-control-material-input__control[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-material-input[readonly]:hover,.tv-control-material-input__control[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-material-input[readonly]:focus,html.theme-dark .tv-control-material-input__control[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-material-input[readonly]:hover,html.theme-dark .tv-control-material-input__control[readonly]:hover{border-color:#2a2e39!important}}.tv-control-material-input--readonly_dark,.tv-control-material-input--readonly_dark[readonly],.tv-control-material-input__control--readonly_dark,.tv-control-material-input__control--readonly_dark[readonly],html.theme-dark .tv-control-material-input--readonly_dark,html.theme-dark .tv-control-material-input--readonly_dark[readonly],html.theme-dark .tv-control-material-input__control--readonly_dark,html.theme-dark .tv-control-material-input__control--readonly_dark[readonly]{color:#50535e}.tv-control-material-input.i-disabled,.tv-control-material-input[disabled],.tv-control-material-input__control.i-disabled,.tv-control-material-input__control[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled,html.theme-dark .tv-control-material-input[disabled],html.theme-dark .tv-control-material-input__control.i-disabled,html.theme-dark .tv-control-material-input__control[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-material-input.i-disabled::placeholder,.tv-control-material-input[disabled]::placeholder,.tv-control-material-input__control.i-disabled::placeholder,.tv-control-material-input__control[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled::placeholder,html.theme-dark .tv-control-material-input[disabled]::placeholder,html.theme-dark .tv-control-material-input__control.i-disabled::placeholder,html.theme-dark .tv-control-material-input__control[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-material-input.i-disabled:hover,.tv-control-material-input[disabled]:hover,.tv-control-material-input__control.i-disabled:hover,.tv-control-material-input__control[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled:hover,html.theme-dark .tv-control-material-input[disabled]:hover,html.theme-dark .tv-control-material-input__control.i-disabled:hover,html.theme-dark .tv-control-material-input__control[disabled]:hover{border-color:#2a2e39!important}}.tv-control-material-input.i-error,.tv-control-material-input__control.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-material-input.i-error:hover,.tv-control-material-input__control.i-error:hover{border-color:#f24965!important}}.tv-control-material-input.i-error:focus,.tv-control-material-input__control.i-error:focus{border-color:#ff173e!important}.tv-control-material-input.i-success,.tv-control-material-input__control.i-success{border-color:#089981!important}html.theme-dark .tv-control-material-input.i-success,html.theme-dark .tv-control-material-input__control.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-material-input.i-success:hover,.tv-control-material-input__control.i-success:hover,html.theme-dark .tv-control-material-input.i-success:hover,html.theme-dark .tv-control-material-input__control.i-success:hover{border-color:#06806b!important}}.tv-control-material-input.i-success:active,.tv-control-material-input.i-success:focus,.tv-control-material-input__control.i-success:active,.tv-control-material-input__control.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-material-input.i-success:active,html.theme-dark .tv-control-material-input.i-success:focus,html.theme-dark .tv-control-material-input__control.i-success:active,html.theme-dark .tv-control-material-input__control.i-success:focus{border-color:#089981!important}.tv-control-material-input--phone,.tv-control-material-input__control--phone{direction:ltr;text-align:left}@media (any-hover:hover){.tv-control-material-input:hover,.tv-control-material-input__control:hover{border-color:#4f5966}}.tv-control-material-input:focus,.tv-control-material-input__control:focus,html.theme-dark .tv-control-material-input:focus,html.theme-dark .tv-control-material-input__control:focus{border-color:#2962ff}.tv-control-material-input--reset-password,.tv-control-material-input__control--reset-password{font-size:16px;height:44px;margin:12px 0;padding:12px 0}.tv-control-material-input__wrap{display:block;position:relative;width:100%}.tv-control-material-input__label{color:#adaeb0;font-size:13px;left:0;pointer-events:none;position:absolute;top:9px;transform-origin:0 0;transition:color .35s ease,transform .35s ease;-webkit-user-select:none;user-select:none}.tv-control-material-input__label.i-up{transform:translateY(-24px) scale(.85)}.tv-control-material-input__label--reset-password{bottom:14px;color:#758696;font-size:14px;top:auto}.tv-control-material-input__hint{color:#4f5966}.tv-control-material-input--dark{border-color:#363c4e;color:#fff}.title-TQ5uusV5{font-size:24px;font-weight:400;margin-bottom:24px;text-align:center}.footer-TQ5uusV5{align-items:center;background:#fff;border-top:1px solid #e0e3eb;bottom:0;display:flex;height:63px;justify-content:center;left:0;opacity:1;position:fixed;right:0}html.theme-dark .footer-TQ5uusV5{background:#131722;border-top:1px solid #434651}.hide-animated-TQ5uusV5 .animated-TQ5uusV5,.tv-dialog__modal-wrap.i-closed .animated-TQ5uusV5,.tv-dialog__modal-wrap.i-closing .animated-TQ5uusV5{opacity:0}.animated-TQ5uusV5{opacity:1;transition:opacity 175ms cubic-bezier(.55,.055,.675,.19);will-change:opacity}.footer-padding-TQ5uusV5{padding-bottom:64px}.link-TQ5uusV5{color:#2962ff;cursor:pointer;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .link-TQ5uusV5{color:#2962ff}.link-TQ5uusV5:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-TQ5uusV5:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-TQ5uusV5:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-TQ5uusV5:hover{fill:#1e53e5;color:#1e53e5}}.link-TQ5uusV5:focus{outline:auto}.link-TQ5uusV5:focus-visible{outline:auto}.link-TQ5uusV5:focus:not(:focus-visible){outline:none}.link-TQ5uusV5:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-TQ5uusV5:active{fill:#1848cc;color:#1848cc}@media screen and (max-width:767px){.title-TQ5uusV5{margin-bottom:16px}}.tv-control-radio{-webkit-tap-highlight-color:transparent;cursor:pointer;margin-left:4px}.tv-control-radio--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-radio--in-actions{max-width:none}}.tv-control-radio,.tv-control-radio__label{display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.tv-control-radio--nowrap,.tv-control-radio__label--nowrap{white-space:nowrap}.tv-control-radio__input{height:18px;left:0;opacity:0;position:absolute;top:0;width:18px}.tv-control-radio__box{box-sizing:border-box;line-height:1;pointer-events:none;transition:background-color .35s ease}.tv-control-radio__box,.tv-control-radio__box:before{border-radius:3px;display:block;height:18px;width:18px}.tv-control-radio__box:before{background-color:initial;content:"";left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-radio__box:after{border:2px solid #758696;border-radius:3px;box-sizing:border-box;content:"";display:block;height:18px;left:0;position:absolute;top:0;transition:border-color .35s ease;width:18px}.tv-control-radio__box svg{stroke:#0000;display:block;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms;width:12px}.tv-control-radio__label{margin-right:10px;white-space:normal}.tv-control-radio__label--two-lines{width:155px}.tv-control-radio__label--nowrap{white-space:nowrap}.tv-control-radio__label--lil-line-height{line-height:16px;max-width:80%;min-width:45%}.tv-control-radio__label+.tv-control-radio{margin-left:0}.tv-control-radio+.tv-control-radio__label{margin-left:10px;margin-right:0;max-width:calc(100% - 1ex - 28px)}.tv-control-radio:active .tv-control-radio__box,.tv-control-radio__input:focus+.tv-control-radio__box{will-change:background-color}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box{will-change:background-color}}.tv-control-radio:active .tv-control-radio__box:before,.tv-control-radio__input:focus+.tv-control-radio__box:before{will-change:transform,border-radius}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box:before{will-change:transform,border-radius}}.tv-control-radio:active .tv-control-radio__box:after,.tv-control-radio__input:focus+.tv-control-radio__box:after{will-change:border-color}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box:after{border-color:#627384;will-change:border-color}}.tv-control-radio:active .tv-control-radio__box:after,.tv-control-radio__input:focus+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:active .tv-control-radio__box:after,html.theme-dark .tv-control-radio__input:focus+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box,html.theme-dark .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box,.tv-control-radio__input:checked+.tv-control-radio__box:after,.tv-control-radio__input:checked+.tv-control-radio__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-radio__input:checked+.tv-control-radio__box:before{border-radius:50%;transform:scale(0)}.tv-control-radio__input:checked+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input:checked+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box svg{stroke:#fff;transform:scale(1);transition-delay:.0875s;transition-timing-function:cubic-bezier(.215,.61,.355,1);will-change:stroke,transform}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#1e53e5}.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box:after{border-color:#1e53e5}}.tv-control-radio:active .tv-control-radio__input:checked+.tv-control-radio__box,.tv-control-radio__input:focus:checked+.tv-control-radio__box{background-color:#2962ff}.tv-control-radio:active .tv-control-radio__input:checked+.tv-control-radio__box:after,.tv-control-radio__input:focus:checked+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after,.tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#e0e3eb}}html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-control-radio:hover .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#363a45}}.tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:before,.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:before{background-color:#bbd9fb;transition:background-color .35s ease}html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:before,html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:before{background-color:#2a2e39}.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box{background-color:#dadde0}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box{background-color:#dadde0}}.tv-control-radio__ripple{border-radius:50%;display:block;height:100%;margin:-10px;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0);overflow:hidden;padding:10px;position:absolute;right:0;top:0;width:100%}.tv-control-radio__input:checked+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple{background-color:#2962ff40}.tv-control-radio__input[disabled]+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple{background-color:initial}.tv-control-radio.i-error .tv-control-radio__box:after{border-color:#ff4a68}.tv-control-radio.i-disabled{cursor:default}.tv-control-radio__box{border-radius:50%;height:10px;overflow:visible;width:10px}.tv-control-radio__box:after{border-radius:50%;left:-4px;top:-4px}.tv-control-radio__box:before{background-color:#2962ff;height:10px;margin-left:-5px;margin-top:-5px;transform:scale(0);width:10px}.tv-control-radio__input{left:-4px;top:-4px}.tv-control-radio__input:checked+.tv-control-radio__box:before{transform:scale(1);transition-duration:.06s}.tv-control-radio__input:checked+.tv-control-radio__box{background-color:#fff;transition-duration:.06s}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#fff;transition-duration:.06s}}.grecaptcha-badge{display:none!important}.remember-label-dNMMjHmM{cursor:pointer;-webkit-user-select:none;user-select:none}.remember-dNMMjHmM{color:#787b86;padding-right:5px;text-align:left}html.theme-dark .remember-dNMMjHmM{color:#787b86}.back-button-dNMMjHmM{left:-10px;position:absolute;top:calc(50% - 17px)}.title-dNMMjHmM{font-size:24px;font-weight:400;line-height:36px;margin-bottom:32px;text-align:center}.header-dNMMjHmM{box-sizing:border-box;padding:0 20px;position:relative}.forgot-dNMMjHmM{color:#2962ff;cursor:pointer;font-size:14px;margin-bottom:40px;transition:color .35s ease;-webkit-user-select:none;user-select:none;width:100%}html.theme-dark .forgot-dNMMjHmM{color:#2962ff}.forgot-dNMMjHmM:visited{fill:#2962ff;color:#2962ff}html.theme-dark .forgot-dNMMjHmM:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.forgot-dNMMjHmM:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .forgot-dNMMjHmM:hover{fill:#1e53e5;color:#1e53e5}}.forgot-dNMMjHmM:focus{outline:auto}.forgot-dNMMjHmM:focus-visible{outline:auto}.forgot-dNMMjHmM:focus:not(:focus-visible){outline:none}.forgot-dNMMjHmM:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .forgot-dNMMjHmM:active{fill:#1848cc;color:#1848cc}.recaptchaContainer-dNMMjHmM>div:first-of-type{margin:0 auto}@media screen and (max-width:1530px){.title-dNMMjHmM{margin-bottom:24px}}@media screen and (max-width:767px){.title-dNMMjHmM{margin-bottom:16px}}.second-authentication-BUCgUS88 .title-BUCgUS88{margin-bottom:24px}.second-authentication-BUCgUS88 .signin-input-BUCgUS88.code-input-BUCgUS88{color:#131722;margin:0}html.theme-dark .second-authentication-BUCgUS88 .signin-input-BUCgUS88.code-input-BUCgUS88{color:#fff}.second-authentication-BUCgUS88 .authenticator-link-BUCgUS88,.second-authentication-BUCgUS88 .backup-link-BUCgUS88,.second-authentication-BUCgUS88 .get-code-BUCgUS88{font-size:16px;line-height:24px}.second-authentication-BUCgUS88 .input-container-BUCgUS88{margin-bottom:40px;margin-top:12px;position:relative}.second-authentication-BUCgUS88 .get-code-BUCgUS88{align-items:center;bottom:0;display:inline-flex;position:absolute;right:0;top:0}.second-authentication-BUCgUS88 .button-link-BUCgUS88{background:none;border:none}.second-authentication-BUCgUS88 .button-link-BUCgUS88:disabled{color:#6a6d78}.second-authentication-BUCgUS88 .hide-BUCgUS88{display:none}.second-authentication-BUCgUS88 .spinner-container-BUCgUS88{height:100%;position:absolute;right:10px;top:0}.second-authentication-BUCgUS88 .code-ttl-BUCgUS88{color:#131722}html.theme-dark .second-authentication-BUCgUS88 .code-ttl-BUCgUS88{color:#fff}.second-authentication-BUCgUS88 .link-BUCgUS88{color:#2962ff;text-decoration:none;transition:color .35s ease}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88{color:#2962ff}.second-authentication-BUCgUS88 .link-BUCgUS88:visited{fill:#2962ff;color:#2962ff}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.second-authentication-BUCgUS88 .link-BUCgUS88:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:hover{fill:#1e53e5;color:#1e53e5}}.second-authentication-BUCgUS88 .link-BUCgUS88:focus{outline:auto}.second-authentication-BUCgUS88 .link-BUCgUS88:focus-visible{outline:auto}.second-authentication-BUCgUS88 .link-BUCgUS88:focus:not(:focus-visible){outline:none}.second-authentication-BUCgUS88 .link-BUCgUS88:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:active{fill:#1848cc;color:#1848cc}@media screen and (max-width:767px){.title-BUCgUS88{margin-bottom:16px}}@media screen and (max-width:1530px){.input-container-BUCgUS88{margin-bottom:32px}}@media screen and (max-width:767px){.input-container-BUCgUS88{margin-bottom:24px}}.tv-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;line-height:53px;overflow:hidden;padding:0 16px;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-tabs:before{background-color:#363a45}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;color:#131722;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-tabs__tab:hover{color:#2962ff}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363a45}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-left:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-tabs__slider,.tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{font-size:13px;line-height:23px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-left:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-right:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-left:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-left:0;padding-left:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-right:0;padding-right:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-left:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-right:0}.tv-tabs--secondary-active .tv-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#1848cc;color:#fff}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-tabs--searchbar_sub .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#434651}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#d1d4dc}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-signin-dialog-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;height:63px;line-height:53px;overflow:hidden;overflow:visible;padding:0 16px;position:relative;text-align:center;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-signin-dialog-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-signin-dialog-tabs:before{background-color:#363a45}.tv-signin-dialog-tabs::-webkit-scrollbar{display:none}.tv-signin-dialog-tabs.i-loaded{padding:0}.tv-signin-dialog-tabs--category-content{padding:0 6px}.tv-signin-dialog-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-signin-dialog-tabs__scroll-box{display:flex;position:relative}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0 16px}.tv-signin-dialog-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-signin-dialog-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}.tv-signin-dialog-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-signin-dialog-tabs__tab:hover{transition-duration:.06s}}.tv-signin-dialog-tabs__tab.i-disabled,.tv-signin-dialog-tabs__tab:disabled,.tv-signin-dialog-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-signin-dialog-tabs__tab.i-disabled,html.theme-dark .tv-signin-dialog-tabs__tab:disabled,html.theme-dark .tv-signin-dialog-tabs__tab[disabled]{color:#363a45}.tv-signin-dialog-tabs__tab--no-padding{padding:0}.tv-signin-dialog-tabs__tab--right-shifter{margin-left:auto}.tv-signin-dialog-tabs__tab--icon-tab{padding:0}.tv-signin-dialog-tabs--category-header{height:46px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:hover,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active{cursor:default}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff}.tv-signin-dialog-tabs--compact,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab{height:23px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab{font-size:13px;line-height:23px}.tv-signin-dialog-tabs--semi-compact,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{height:38px}.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{line-height:38px}.tv-signin-dialog-tabs--category-header.i-loaded,.tv-signin-dialog-tabs--category-header.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--compact,.tv-signin-dialog-tabs--compact.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--semi-compact,.tv-signin-dialog-tabs--semi-compact.i-loaded .tv-signin-dialog-tabs__scroll-box{padding-left:0;padding-right:0}.tv-signin-dialog-tabs--category-header,.tv-signin-dialog-tabs--category-header.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-signin-dialog-tabs--category-header:before,.tv-signin-dialog-tabs--compact:before,.tv-signin-dialog-tabs--semi-compact:before{bottom:0}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab:first-child,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab:first-child{margin-left:-16px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab:last-child,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab:last-child{margin-right:-16px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:first-child{margin-left:-24px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:last-child{margin-right:-24px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:first-child{margin-left:-32px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:last-child{margin-right:-32px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab.i-hidden:first-child+.tv-signin-dialog-tabs__tab{margin-left:-16px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-signin-dialog-tabs--with-wrap-padding-mobile .tv-signin-dialog-tabs__tab:first-child{margin-left:0;padding-left:0}.tv-signin-dialog-tabs--with-wrap-padding-mobile .tv-signin-dialog-tabs__tab:nth-last-child(2){margin-right:0;padding-right:0}}.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:first-child,.tv-signin-dialog-tabs--semi-compact.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:first-child{margin-left:0}.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:last-child,.tv-signin-dialog-tabs--semi-compact.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:last-child{margin-right:0}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap:hover{background-color:#363a45}}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__wrap{height:26px;padding:0 12px}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact{padding:0 14px}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{color:#b2b5be}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab.i-active .tv-signin-dialog-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab.i-active .tv-signin-dialog-tabs__wrap{background-color:#1848cc;color:#fff}.tv-signin-dialog-tabs--no-border:before{display:none}.tv-signin-dialog-tabs--no-padding,.tv-signin-dialog-tabs--no-padding.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0}.tv-signin-dialog-tabs--no-padding .tv-signin-dialog-tabs__tab{padding:0 16px}.tv-signin-dialog-tabs--no-padding .tv-signin-dialog-tabs__tab.tv-signin-dialog-tabs__tab--no-padding{padding:0}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__tab.i-active:after{content:none;display:none}.tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-signin-dialog-tabs__left-arrow:after,.tv-signin-dialog-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-signin-dialog-tabs__left-arrow:hover svg,.tv-signin-dialog-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-signin-dialog-tabs__left-arrow:hover svg,html.theme-dark .tv-signin-dialog-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-signin-dialog-tabs__left-arrow:active svg,.tv-signin-dialog-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-signin-dialog-tabs__left-arrow:active svg,html.theme-dark .tv-signin-dialog-tabs__right-arrow:active svg{fill:#9db2bd}.tv-signin-dialog-tabs__right-arrow{justify-content:flex-end}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow svg{vertical-align:top}.tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__right-arrow{width:23px}.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__right-arrow{width:34px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow{width:45px}.tv-signin-dialog-tabs--searchbar:before{display:none}.tv-signin-dialog-tabs--searchbar,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-signin-dialog-tabs--searchbar,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__scroll-box{height:54px}}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__tab.i-active:after{background-color:#fff}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow:active svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow:hover svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs--searchbar_sub,.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__scroll-box{height:40px;line-height:40px}.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{color:#434651}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{color:#d1d4dc}.tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-signin-dialog-tabs.tv-tabs:before{display:none}.tv-signin-dialog-tabs .tv-tabs__scroll-wrap{overflow-x:visible;overflow-y:visible}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0}.tv-signin-dialog-tabs .tv-tabs__slider{background-color:#2962ff;bottom:0}html.theme-dark .tv-signin-dialog-tabs .tv-tabs__slider{background-color:#2962ff}.tv-signin-dialog-tabs__tab{color:#131722;font-size:24px;margin:3px auto 0;padding:0;text-transform:uppercase}html.theme-dark .tv-signin-dialog-tabs__tab{color:#d1d4dc}@media screen and (max-width:479px){.tv-signin-dialog-tabs__tab{font-size:20px}}.tv-signin-dialog-tabs__tab.i-active,.tv-signin-dialog-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-signin-dialog-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-signin-dialog-tabs__tab.i-active,html.theme-dark .tv-signin-dialog-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-signin-dialog-tabs__tab:hover{color:#2962ff}}.tv-signin-dialog-tabs__scroll-box{height:63px}.tv-signin-dialog-tabs__wrap{margin-bottom:32px;position:relative}@media screen and (max-width:479px){.tv-signin-dialog-tabs__wrap{margin-bottom:24px}}.tv-signin-dialog-tabs__wrap:before{background-color:#e0e3eb;bottom:1px;content:"";display:block;height:1px;left:-3000px;left:-50vw;position:absolute;right:-3000px;right:-50vw;transition:left .35s cubic-bezier(.215,.61,.355,1) .175s,right .35s cubic-bezier(.215,.61,.355,1) .175s}html.theme-dark .tv-signin-dialog-tabs__wrap:before{background-color:#434651}.i-closed .tv-signin-dialog-tabs__wrap:before{left:0;right:0;transition-delay:.35s}.tv-signin-dialog{color:#131722}html.theme-dark .tv-signin-dialog{color:#d1d4dc}.tv-signin-dialog__title{font-size:24px;margin-bottom:60px;text-align:center}.tv-signin-dialog__title--withtext{color:#131722;margin-bottom:32px;max-width:calc(100% - 35px)}html.theme-dark .tv-signin-dialog__title--withtext{color:#d1d4dc}.tv-signin-dialog__title--logo{font-size:36px;padding-right:10px}.tv-signin-dialog__title--logo svg{display:inline-block;height:38.17px;margin-right:20px;vertical-align:initial;width:66px}.tv-signin-dialog__title--logo div{display:inline-block;vertical-align:text-top}.tv-signin-dialog__title--resend{line-height:1.6;margin-bottom:10px;margin-top:100px}.tv-signin-dialog__text{color:#131722;line-height:1.43;margin-bottom:32px}html.theme-dark .tv-signin-dialog__text{color:#d1d4dc}.tv-signin-dialog__text--description{color:#758696;margin:0}.tv-signin-dialog__text--link{color:#2962ff;cursor:pointer;display:inline-block;font-size:14px;margin:0;transition:color .35s ease}html.theme-dark .tv-signin-dialog__text--link{color:#2962ff}.tv-signin-dialog__text--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__text--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__text--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__text--link:focus{outline:auto}.tv-signin-dialog__text--link:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__text--link:-moz-focusring{outline:auto}.tv-signin-dialog__text--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--link:active{fill:#1848cc;color:#1848cc}.tv-signin-dialog__text--social-text{color:#131722;display:block;line-height:1.43;margin:24px 0 12px;text-align:left;width:100%}html.theme-dark .tv-signin-dialog__text--social-text{color:#d1d4dc}.tv-signin-dialog__text--text-retry{color:#2962ff;cursor:pointer;display:block;font-size:17px;margin-top:20px;text-align:center;transition:color .35s ease}html.theme-dark .tv-signin-dialog__text--text-retry{color:#2962ff}.tv-signin-dialog__text--text-retry:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__text--text-retry:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__text--text-retry:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--text-retry:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__text--text-retry:focus{outline:auto}.tv-signin-dialog__text--text-retry:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__text--text-retry:-moz-focusring{outline:auto}.tv-signin-dialog__text--text-retry:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--text-retry:active{fill:#1848cc;color:#1848cc}.tv-signin-dialog__text--text-email{margin-bottom:24px}.tv-signin-dialog__socials{display:flex;flex-wrap:nowrap;justify-content:space-between;margin:20px 0}@media screen and (max-width:479px){.tv-signin-dialog__socials{margin:12px 0}}.tv-signin-dialog__socials--resend{margin-bottom:10px}.tv-signin-dialog__social{align-items:center;background-color:#fff;border:1px solid #e0e3eb;border-radius:4px;color:#131722;cursor:pointer;display:flex;flex-grow:1;height:40px;justify-content:center;position:relative;transition:background-color .35s ease}html.theme-dark .tv-signin-dialog__social{background-color:#131722;border:1px solid #434651;color:#d1d4dc}@media (any-hover:hover){.tv-signin-dialog__social:hover{background-color:#f0f3fa}html.theme-dark .tv-signin-dialog__social:hover{background-color:#2a2e39}}.tv-signin-dialog__social:active{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog__social:active{background-color:#1e222d}.tv-signin-dialog__social:after{content:"";display:block;padding-bottom:100%}.tv-signin-dialog__social--big{background-color:#fff;font-size:16px;line-height:24px;width:160px}html.theme-dark .tv-signin-dialog__social--big{background-color:#131722}.tv-signin-dialog__social--big svg{margin-right:6px}@media (any-hover:hover){.tv-signin-dialog__social--big:hover{background-color:#f0f3fa}html.theme-dark .tv-signin-dialog__social--big:hover{background-color:#2a2e39}}.tv-signin-dialog__social--big:active{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog__social--big:active{background-color:#1e222d}.tv-signin-dialog__social--apple{color:#131722}@media (any-hover:hover){.tv-signin-dialog__social--apple:hover{color:#131722}}html.theme-dark .tv-signin-dialog__social--apple{color:#fff}@media (any-hover:hover){html.theme-dark .tv-signin-dialog__social--apple:hover{color:#fff}}.tv-signin-dialog .tv-social__title{padding-top:1px}.tv-signin-dialog__social:not(:last-child){margin-right:20px}@media screen and (max-width:479px){.tv-signin-dialog__social:not(:last-child){margin-right:12px}}.tv-signin-dialog__input.tv-signin-dialog__input{background-color:initial!important;border-color:#e0e3eb;color:#131722;font-size:16px;height:44px;margin:12px 0;padding:12px 0}html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input{border-color:#434651;color:#d1d4dc}.tv-signin-dialog__input--forgot{margin-bottom:24px}.tv-signin-dialog__input.tv-signin-dialog__input:-webkit-autofill{-webkit-text-fill-color:#131722!important;box-shadow:inset 0 0 0 1000px #fff!important;caret-color:#131722!important}html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input:-webkit-autofill{-webkit-text-fill-color:#d1d4dc!important;box-shadow:inset 0 0 0 1000px #131722!important;caret-color:#d1d4dc!important}@media (any-hover:hover){.tv-signin-dialog__input:hover,html.theme-dark .tv-signin-dialog__input:hover{border-color:#2962ff}}.tv-signin-dialog__input.tv-signin-dialog__input:focus,html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input:focus{border-color:#2962ff}.tv-signin-dialog__recaptcha{height:78px;margin-bottom:24px}.tv-signin-dialog__recaptcha>*{margin:0 auto}.tv-signin-dialog .tv-control-material-input__label{bottom:14px;color:#787b86;font-size:14px;top:auto;transform-origin:0 0}html.theme-dark .tv-signin-dialog .tv-control-material-input__label{color:#787b86}.tv-signin-dialog .tv-control-material-input__label.i-up{transform:translateY(-24px) scale(.85)}.tv-signin-dialog__separator{margin-bottom:34px;padding-top:6px;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.tv-signin-dialog__separator:before{background-color:#e0e3eb;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:15px}html.theme-dark .tv-signin-dialog__separator:before{background-color:#434651}.tv-signin-dialog__separator-text{background-color:#fff;border-radius:50%;color:#787b86;display:inline-block;padding:0 15px;position:relative}html.theme-dark .tv-signin-dialog__separator-text{background-color:#131722;color:#787b86}.tv-signin-dialog__toggle-email svg{margin-right:6px}.tv-signin-dialog__cancel{color:#2962ff;cursor:pointer;display:flex;font-size:17px;justify-content:center;line-height:48px;margin-top:30px;padding:0 20px}.tv-signin-dialog .tv-control-checkbox__box:before{background-color:#fff}html.theme-dark .tv-signin-dialog .tv-control-checkbox__box:before{background-color:#131722}.tv-signin-dialog .tv-control-checkbox__label{color:#131722;margin-left:4px}html.theme-dark .tv-signin-dialog .tv-control-checkbox__label{color:#d1d4dc}.tv-signin-dialog__gdpr,.tv-signin-dialog__marketing-emails{display:block;margin:20px 0 24px}.tv-signin-dialog__gdpr a,.tv-signin-dialog__marketing-emails a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-signin-dialog__gdpr a,html.theme-dark .tv-signin-dialog__marketing-emails a{color:#2962ff}.tv-signin-dialog__gdpr a:visited,.tv-signin-dialog__marketing-emails a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__gdpr a:visited,html.theme-dark .tv-signin-dialog__marketing-emails a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__gdpr a:hover,.tv-signin-dialog__marketing-emails a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .tv-signin-dialog__gdpr a:hover,html.theme-dark .tv-signin-dialog__marketing-emails a:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__gdpr a:focus,.tv-signin-dialog__marketing-emails a:focus{outline:auto}.tv-signin-dialog__gdpr a:focus-visible,.tv-signin-dialog__marketing-emails a:focus-visible{outline:auto}.tv-signin-dialog__gdpr a:focus:not(:focus-visible),.tv-signin-dialog__marketing-emails a:focus:not(:focus-visible){outline:none}.tv-signin-dialog__gdpr a:active,.tv-signin-dialog__marketing-emails a:active{fill:#2962ff;color:#2962ff;transition-duration:60ms}html.theme-dark .tv-signin-dialog__gdpr a:active,html.theme-dark .tv-signin-dialog__marketing-emails a:active{fill:#2962ff;color:#2962ff}.tv-signin-dialog__gdpr-checkbox.tv-control-checkbox,.tv-signin-dialog__marketing-emails-checkbox.tv-control-checkbox{vertical-align:top}.tv-signin-dialog__gdpr-text,.tv-signin-dialog__marketing-emails-text{color:#131722;font-size:14px;line-height:1.43}html.theme-dark .tv-signin-dialog__gdpr-text,html.theme-dark .tv-signin-dialog__marketing-emails-text{color:#d1d4dc}.tv-signin-dialog__footer{display:table;padding-bottom:1px;width:100%}.tv-signin-dialog__footer--login{margin:40px 0 0}.tv-signin-dialog__footer-item{display:table-cell;vertical-align:middle}.tv-signin-dialog__footer-item--login{padding-left:5px;text-align:right}.tv-signin-dialog__footer-item--activate-continue{text-align:center}.tv-signin-dialog__close{cursor:pointer;opacity:.5;padding:32px;position:absolute;right:0;top:0;transition:opacity .35s ease}@media screen and (max-width:1019px){.tv-signin-dialog__close{padding:30px}}@media screen and (max-width:767px){.tv-signin-dialog__close{padding:20px}}.tv-signin-dialog__close .i-opening{opacity:0}.tv-signin-dialog__close svg{color:#131722;display:block;height:25px;width:25px}html.theme-dark .tv-signin-dialog__close svg{color:#d1d4dc}@media screen and (max-width:767px){.tv-signin-dialog__close svg{height:15px;width:15px}}.tv-signin-dialog__close:active{opacity:1;transition-duration:.06s}@media (any-hover:hover){.tv-signin-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-signin-dialog__resend{margin-top:42px}.tv-signin-dialog__activation-link:active{transform:translateY(1px)}.tv-signin-dialog__dropzone{cursor:pointer;display:block;position:relative}.tv-signin-dialog__dropzone-wrap{border:1px dashed #4e5866;height:160px;margin:0 auto 40px;position:relative;-webkit-user-select:none;user-select:none;width:160px}.tv-signin-dialog__dropzone,.tv-signin-dialog__dropzone-img,.tv-signin-dialog__dropzone-preview,.tv-signin-dialog__dropzone-text{bottom:0;height:160px;left:0;position:absolute;right:0;top:0;width:160px}.tv-signin-dialog__dropzone-img{display:block;height:160px;width:160px}.tv-signin-dialog__dropzone-text{cursor:default;line-height:160px;text-align:center;transition:background-color .35s ease,opacity .35s ease;vertical-align:middle}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap:hover .tv-signin-dialog__dropzone-text{background-color:hsla(0,0%,100%,.075);transition-duration:.06s}}.tv-signin-dialog__dropzone-wrap.i-with-preview .tv-signin-dialog__dropzone-text{opacity:0}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap.i-with-preview:hover .tv-signin-dialog__dropzone-text{background-color:#2a2c3980;opacity:1}}.tv-signin-dialog__dropzone-wrap.i-processing .tv-signin-dialog__dropzone-text{opacity:0}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap.i-processing:hover .tv-signin-dialog__dropzone-text{opacity:0}}.tv-signin-dialog__label{color:#131722;text-align:left;white-space:nowrap}html.theme-dark .tv-signin-dialog__label{color:#d1d4dc}.tv-signin-dialog__label--reset-method{color:#131722}html.theme-dark .tv-signin-dialog__label--reset-method{color:#d1d4dc}@media screen and (max-width:479px){.tv-signin-dialog__label{white-space:normal}}.tv-signin-dialog__radio-wrap{display:inline-block;margin-bottom:18px;margin-left:-4px;text-align:left;width:100%}.tv-signin-dialog__radio-wrap:last-child{margin-bottom:32px}.tv-signin-dialog__reset-password-form{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.tv-signin-dialog__reset-password-form--link{color:#2962ff;cursor:pointer;display:inline-block;font-size:14px;margin-top:14px;transition:color .35s ease}html.theme-dark .tv-signin-dialog__reset-password-form--link{color:#2962ff}.tv-signin-dialog__reset-password-form--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__reset-password-form--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__reset-password-form--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__reset-password-form--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__reset-password-form--link:focus{outline:auto}.tv-signin-dialog__reset-password-form--link:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__reset-password-form--link:-moz-focusring{outline:auto}.tv-signin-dialog__reset-password-form--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__reset-password-form--link:active{fill:#1848cc;color:#1848cc} \ No newline at end of file diff --git a/charting_library/bundles/9570.6e130410c18a92e289cd.rtl.css b/charting_library/bundles/9570.6e130410c18a92e289cd.rtl.css new file mode 100644 index 00000000..ab886374 --- /dev/null +++ b/charting_library/bundles/9570.6e130410c18a92e289cd.rtl.css @@ -0,0 +1 @@ +.tv-control-material-input,.tv-control-material-input__control{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;background-color:initial!important;border:none;border-bottom:1px solid #dadde0;border-radius:2px;border-radius:0;box-sizing:border-box;color:#434651;display:block;font-size:13px;height:34px;padding:0;transition:border-color .35s ease,background-color .35s ease;width:100%}html.theme-dark .tv-control-material-input,html.theme-dark .tv-control-material-input__control{background-color:#1e222d;border-color:#363a45;color:#d1d4dc}.tv-control-material-input::placeholder,.tv-control-material-input__control::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-material-input::placeholder,html.theme-dark .tv-control-material-input__control::placeholder{color:#50535e}.tv-control-material-input:-webkit-autofill,.tv-control-material-input__control:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-material-input--size_xsmall,.tv-control-material-input__control--size_xsmall{height:19px}.tv-control-material-input--size_small,.tv-control-material-input__control--size_small{height:27px}.tv-control-material-input--size_large,.tv-control-material-input__control--size_large{font-size:16px;height:48px}.tv-control-material-input--connect,.tv-control-material-input__control--connect{border-left:0;border-radius:0;border-right:0}.tv-control-material-input--connect_left,.tv-control-material-input__control--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-control-material-input--connect_right,.tv-control-material-input__control--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-material-input--connect_right#id_username,.tv-control-material-input__control--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-material-input:hover,.tv-control-material-input__control:hover{border-color:#c1c4cd;transition-duration:.06s}html.theme-dark .tv-control-material-input:hover,html.theme-dark .tv-control-material-input__control:hover{border-color:#50535e}}.tv-control-material-input:focus,.tv-control-material-input__control:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-material-input[readonly],.tv-control-material-input__control[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-material-input[readonly]:focus,.tv-control-material-input__control[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-material-input[readonly]:hover,.tv-control-material-input__control[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-material-input[readonly]:focus,html.theme-dark .tv-control-material-input__control[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-material-input[readonly]:hover,html.theme-dark .tv-control-material-input__control[readonly]:hover{border-color:#2a2e39!important}}.tv-control-material-input--readonly_dark,.tv-control-material-input--readonly_dark[readonly],.tv-control-material-input__control--readonly_dark,.tv-control-material-input__control--readonly_dark[readonly],html.theme-dark .tv-control-material-input--readonly_dark,html.theme-dark .tv-control-material-input--readonly_dark[readonly],html.theme-dark .tv-control-material-input__control--readonly_dark,html.theme-dark .tv-control-material-input__control--readonly_dark[readonly]{color:#50535e}.tv-control-material-input.i-disabled,.tv-control-material-input[disabled],.tv-control-material-input__control.i-disabled,.tv-control-material-input__control[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled,html.theme-dark .tv-control-material-input[disabled],html.theme-dark .tv-control-material-input__control.i-disabled,html.theme-dark .tv-control-material-input__control[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-material-input.i-disabled::placeholder,.tv-control-material-input[disabled]::placeholder,.tv-control-material-input__control.i-disabled::placeholder,.tv-control-material-input__control[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled::placeholder,html.theme-dark .tv-control-material-input[disabled]::placeholder,html.theme-dark .tv-control-material-input__control.i-disabled::placeholder,html.theme-dark .tv-control-material-input__control[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-material-input.i-disabled:hover,.tv-control-material-input[disabled]:hover,.tv-control-material-input__control.i-disabled:hover,.tv-control-material-input__control[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-material-input.i-disabled:hover,html.theme-dark .tv-control-material-input[disabled]:hover,html.theme-dark .tv-control-material-input__control.i-disabled:hover,html.theme-dark .tv-control-material-input__control[disabled]:hover{border-color:#2a2e39!important}}.tv-control-material-input.i-error,.tv-control-material-input__control.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-material-input.i-error:hover,.tv-control-material-input__control.i-error:hover{border-color:#f24965!important}}.tv-control-material-input.i-error:focus,.tv-control-material-input__control.i-error:focus{border-color:#ff173e!important}.tv-control-material-input.i-success,.tv-control-material-input__control.i-success{border-color:#089981!important}html.theme-dark .tv-control-material-input.i-success,html.theme-dark .tv-control-material-input__control.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-material-input.i-success:hover,.tv-control-material-input__control.i-success:hover,html.theme-dark .tv-control-material-input.i-success:hover,html.theme-dark .tv-control-material-input__control.i-success:hover{border-color:#06806b!important}}.tv-control-material-input.i-success:active,.tv-control-material-input.i-success:focus,.tv-control-material-input__control.i-success:active,.tv-control-material-input__control.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-material-input.i-success:active,html.theme-dark .tv-control-material-input.i-success:focus,html.theme-dark .tv-control-material-input__control.i-success:active,html.theme-dark .tv-control-material-input__control.i-success:focus{border-color:#089981!important}.tv-control-material-input--phone,.tv-control-material-input__control--phone{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-material-input:hover,.tv-control-material-input__control:hover{border-color:#4f5966}}.tv-control-material-input:focus,.tv-control-material-input__control:focus,html.theme-dark .tv-control-material-input:focus,html.theme-dark .tv-control-material-input__control:focus{border-color:#2962ff}.tv-control-material-input--reset-password,.tv-control-material-input__control--reset-password{font-size:16px;height:44px;margin:12px 0;padding:12px 0}.tv-control-material-input__wrap{display:block;position:relative;width:100%}.tv-control-material-input__label{color:#adaeb0;font-size:13px;pointer-events:none;position:absolute;right:0;top:9px;transform-origin:100% 0;transition:color .35s ease,transform .35s ease;-webkit-user-select:none;user-select:none}.tv-control-material-input__label.i-up{transform:translateY(-24px) scale(.85)}.tv-control-material-input__label--reset-password{bottom:14px;color:#758696;font-size:14px;top:auto}.tv-control-material-input__hint{color:#4f5966}.tv-control-material-input--dark{border-color:#363c4e;color:#fff}.title-TQ5uusV5{font-size:24px;font-weight:400;margin-bottom:24px;text-align:center}.footer-TQ5uusV5{align-items:center;background:#fff;border-top:1px solid #e0e3eb;bottom:0;display:flex;height:63px;justify-content:center;left:0;opacity:1;position:fixed;right:0}html.theme-dark .footer-TQ5uusV5{background:#131722;border-top:1px solid #434651}.hide-animated-TQ5uusV5 .animated-TQ5uusV5,.tv-dialog__modal-wrap.i-closed .animated-TQ5uusV5,.tv-dialog__modal-wrap.i-closing .animated-TQ5uusV5{opacity:0}.animated-TQ5uusV5{opacity:1;transition:opacity 175ms cubic-bezier(.55,.055,.675,.19);will-change:opacity}.footer-padding-TQ5uusV5{padding-bottom:64px}.link-TQ5uusV5{color:#2962ff;cursor:pointer;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .link-TQ5uusV5{color:#2962ff}.link-TQ5uusV5:visited{fill:#2962ff;color:#2962ff}html.theme-dark .link-TQ5uusV5:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.link-TQ5uusV5:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .link-TQ5uusV5:hover{fill:#1e53e5;color:#1e53e5}}.link-TQ5uusV5:focus{outline:auto}.link-TQ5uusV5:focus-visible{outline:auto}.link-TQ5uusV5:focus:not(:focus-visible){outline:none}.link-TQ5uusV5:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .link-TQ5uusV5:active{fill:#1848cc;color:#1848cc}@media screen and (max-width:767px){.title-TQ5uusV5{margin-bottom:16px}}.tv-control-radio{-webkit-tap-highlight-color:transparent;cursor:pointer;margin-right:4px}.tv-control-radio--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-radio--in-actions{max-width:none}}.tv-control-radio,.tv-control-radio__label{display:inline-block;position:relative;-webkit-user-select:none;user-select:none;vertical-align:middle}.tv-control-radio--nowrap,.tv-control-radio__label--nowrap{white-space:nowrap}.tv-control-radio__input{height:18px;opacity:0;position:absolute;right:0;top:0;width:18px}.tv-control-radio__box{box-sizing:border-box;line-height:1;pointer-events:none;transition:background-color .35s ease}.tv-control-radio__box,.tv-control-radio__box:before{border-radius:3px;display:block;height:18px;width:18px}.tv-control-radio__box:before{background-color:initial;content:"";margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-radio__box:after{border:2px solid #758696;border-radius:3px;box-sizing:border-box;content:"";display:block;height:18px;position:absolute;right:0;top:0;transition:border-color .35s ease;width:18px}.tv-control-radio__box svg{stroke:#0000;display:block;height:12px;margin-right:-6px;margin-top:-6px;position:absolute;right:50%;top:50%;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms;width:12px}.tv-control-radio__label{margin-left:10px;white-space:normal}.tv-control-radio__label--two-lines{width:155px}.tv-control-radio__label--nowrap{white-space:nowrap}.tv-control-radio__label--lil-line-height{line-height:16px;max-width:80%;min-width:45%}.tv-control-radio__label+.tv-control-radio{margin-right:0}.tv-control-radio+.tv-control-radio__label{margin-left:0;margin-right:10px;max-width:calc(100% - 1ex - 28px)}.tv-control-radio:active .tv-control-radio__box,.tv-control-radio__input:focus+.tv-control-radio__box{will-change:background-color}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box{will-change:background-color}}.tv-control-radio:active .tv-control-radio__box:before,.tv-control-radio__input:focus+.tv-control-radio__box:before{will-change:transform,border-radius}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box:before{will-change:transform,border-radius}}.tv-control-radio:active .tv-control-radio__box:after,.tv-control-radio__input:focus+.tv-control-radio__box:after{will-change:border-color}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__box:after{border-color:#627384;will-change:border-color}}.tv-control-radio:active .tv-control-radio__box:after,.tv-control-radio__input:focus+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:active .tv-control-radio__box:after,html.theme-dark .tv-control-radio__input:focus+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box,html.theme-dark .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box,.tv-control-radio__input:checked+.tv-control-radio__box:after,.tv-control-radio__input:checked+.tv-control-radio__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-radio__input:checked+.tv-control-radio__box:before{border-radius:50%;transform:scale(0)}.tv-control-radio__input:checked+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input:checked+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio__input:checked+.tv-control-radio__box svg{stroke:#fff;transform:scale(1);transition-delay:.0875s;transition-timing-function:cubic-bezier(.215,.61,.355,1);will-change:stroke,transform}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#1e53e5}.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box:after{border-color:#1e53e5}}.tv-control-radio:active .tv-control-radio__input:checked+.tv-control-radio__box,.tv-control-radio__input:focus:checked+.tv-control-radio__box{background-color:#2962ff}.tv-control-radio:active .tv-control-radio__input:checked+.tv-control-radio__box:after,.tv-control-radio__input:focus:checked+.tv-control-radio__box:after{border-color:#2962ff}.tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after,.tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#e0e3eb}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input[disabled]+.tv-control-radio__box:after,.tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#e0e3eb}}html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#363a45}@media (any-hover:hover){html.theme-dark .tv-control-radio:hover .tv-control-radio__input[disabled]+.tv-control-radio__box:after,html.theme-dark .tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:after{border-color:#363a45}}.tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:before,.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:before{background-color:#bbd9fb;transition:background-color .35s ease}html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]+.tv-control-radio__box:before,html.theme-dark .tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box:before{background-color:#2a2e39}.tv-control-radio:active .tv-control-radio__input[disabled]:checked+.tv-control-radio__box,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box{background-color:#dadde0}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input[disabled]:checked+.tv-control-radio__box{background-color:#dadde0}}.tv-control-radio__ripple{border-radius:50%;display:block;height:100%;left:0;margin:-10px;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0);overflow:hidden;padding:10px;position:absolute;top:0;width:100%}.tv-control-radio__input:checked+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple{background-color:#2962ff40}.tv-control-radio__input[disabled]+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple,.tv-control-radio__input[disabled]:checked+.tv-control-radio__box+.tv-control-radio__ripple .tv-ripple{background-color:initial}.tv-control-radio.i-error .tv-control-radio__box:after{border-color:#ff4a68}.tv-control-radio.i-disabled{cursor:default}.tv-control-radio__box{border-radius:50%;height:10px;overflow:visible;width:10px}.tv-control-radio__box:after{border-radius:50%;right:-4px;top:-4px}.tv-control-radio__box:before{background-color:#2962ff;height:10px;margin-right:-5px;margin-top:-5px;transform:scale(0);width:10px}.tv-control-radio__input{right:-4px;top:-4px}.tv-control-radio__input:checked+.tv-control-radio__box:before{transform:scale(1);transition-duration:.06s}.tv-control-radio__input:checked+.tv-control-radio__box{background-color:#fff;transition-duration:.06s}@media (any-hover:hover){.tv-control-radio:hover .tv-control-radio__input:checked+.tv-control-radio__box{background-color:#fff;transition-duration:.06s}}.grecaptcha-badge{display:none!important}.remember-label-dNMMjHmM{cursor:pointer;-webkit-user-select:none;user-select:none}.remember-dNMMjHmM{color:#787b86;padding-left:5px;text-align:right}html.theme-dark .remember-dNMMjHmM{color:#787b86}.back-button-dNMMjHmM{position:absolute;right:-10px;top:calc(50% - 17px)}.title-dNMMjHmM{font-size:24px;font-weight:400;line-height:36px;margin-bottom:32px;text-align:center}.header-dNMMjHmM{box-sizing:border-box;padding:0 20px;position:relative}.forgot-dNMMjHmM{color:#2962ff;cursor:pointer;font-size:14px;margin-bottom:40px;transition:color .35s ease;-webkit-user-select:none;user-select:none;width:100%}html.theme-dark .forgot-dNMMjHmM{color:#2962ff}.forgot-dNMMjHmM:visited{fill:#2962ff;color:#2962ff}html.theme-dark .forgot-dNMMjHmM:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.forgot-dNMMjHmM:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .forgot-dNMMjHmM:hover{fill:#1e53e5;color:#1e53e5}}.forgot-dNMMjHmM:focus{outline:auto}.forgot-dNMMjHmM:focus-visible{outline:auto}.forgot-dNMMjHmM:focus:not(:focus-visible){outline:none}.forgot-dNMMjHmM:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .forgot-dNMMjHmM:active{fill:#1848cc;color:#1848cc}.recaptchaContainer-dNMMjHmM>div:first-of-type{margin:0 auto}@media screen and (max-width:1530px){.title-dNMMjHmM{margin-bottom:24px}}@media screen and (max-width:767px){.title-dNMMjHmM{margin-bottom:16px}}.second-authentication-BUCgUS88 .title-BUCgUS88{margin-bottom:24px}.second-authentication-BUCgUS88 .signin-input-BUCgUS88.code-input-BUCgUS88{color:#131722;margin:0}html.theme-dark .second-authentication-BUCgUS88 .signin-input-BUCgUS88.code-input-BUCgUS88{color:#fff}.second-authentication-BUCgUS88 .authenticator-link-BUCgUS88,.second-authentication-BUCgUS88 .backup-link-BUCgUS88,.second-authentication-BUCgUS88 .get-code-BUCgUS88{font-size:16px;line-height:24px}.second-authentication-BUCgUS88 .input-container-BUCgUS88{margin-bottom:40px;margin-top:12px;position:relative}.second-authentication-BUCgUS88 .get-code-BUCgUS88{align-items:center;bottom:0;display:inline-flex;left:0;position:absolute;top:0}.second-authentication-BUCgUS88 .button-link-BUCgUS88{background:none;border:none}.second-authentication-BUCgUS88 .button-link-BUCgUS88:disabled{color:#6a6d78}.second-authentication-BUCgUS88 .hide-BUCgUS88{display:none}.second-authentication-BUCgUS88 .spinner-container-BUCgUS88{height:100%;left:10px;position:absolute;top:0}.second-authentication-BUCgUS88 .code-ttl-BUCgUS88{color:#131722}html.theme-dark .second-authentication-BUCgUS88 .code-ttl-BUCgUS88{color:#fff}.second-authentication-BUCgUS88 .link-BUCgUS88{color:#2962ff;text-decoration:none;transition:color .35s ease}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88{color:#2962ff}.second-authentication-BUCgUS88 .link-BUCgUS88:visited{fill:#2962ff;color:#2962ff}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.second-authentication-BUCgUS88 .link-BUCgUS88:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:hover{fill:#1e53e5;color:#1e53e5}}.second-authentication-BUCgUS88 .link-BUCgUS88:focus{outline:auto}.second-authentication-BUCgUS88 .link-BUCgUS88:focus-visible{outline:auto}.second-authentication-BUCgUS88 .link-BUCgUS88:focus:not(:focus-visible){outline:none}.second-authentication-BUCgUS88 .link-BUCgUS88:active{fill:#1848cc;color:#1848cc;transition-duration:60ms}html.theme-dark .second-authentication-BUCgUS88 .link-BUCgUS88:active{fill:#1848cc;color:#1848cc}@media screen and (max-width:767px){.title-BUCgUS88{margin-bottom:16px}}@media screen and (max-width:1530px){.input-container-BUCgUS88{margin-bottom:32px}}@media screen and (max-width:767px){.input-container-BUCgUS88{margin-bottom:24px}}.tv-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;line-height:53px;overflow:hidden;padding:0 16px;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-tabs:before{background-color:#363a45}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;color:#131722;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-tabs__tab:hover{color:#2962ff}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363a45}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-right:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-tabs__slider,.tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{font-size:13px;line-height:23px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-right:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-left:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-right:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-right:0;padding-right:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-left:0;padding-left:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-right:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-left:0}.tv-tabs--secondary-active .tv-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#1848cc;color:#fff}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#2962ff}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#434651}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#d1d4dc}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-signin-dialog-tabs{-webkit-tap-highlight-color:transparent;display:flex;height:53px;height:63px;line-height:53px;overflow:hidden;overflow:visible;padding:0 16px;position:relative;text-align:center;-webkit-user-select:none;user-select:none;white-space:nowrap}.tv-signin-dialog-tabs:before{background-color:#e0e3eb;bottom:0;content:"";display:block;height:1px;left:0;position:absolute;right:0}html.theme-dark .tv-signin-dialog-tabs:before{background-color:#363a45}.tv-signin-dialog-tabs::-webkit-scrollbar{display:none}.tv-signin-dialog-tabs.i-loaded{padding:0}.tv-signin-dialog-tabs--category-content{padding:0 6px}.tv-signin-dialog-tabs__scroll-wrap{-webkit-overflow-scrolling:touch;display:block;height:100%;overflow-x:scroll;overflow-y:hidden;padding-bottom:100px;position:relative;-webkit-transform:translateZ(0);white-space:nowrap;width:100%}.tv-signin-dialog-tabs__scroll-box{display:flex;position:relative}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0 16px}.tv-signin-dialog-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-signin-dialog-tabs__tab{-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;display:block;font-size:14px;height:53px;line-height:53px;margin:0;padding:0 16px;position:relative;transition:color .35s ease;-webkit-user-select:none;user-select:none}.tv-signin-dialog-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover){.tv-signin-dialog-tabs__tab:hover{transition-duration:.06s}}.tv-signin-dialog-tabs__tab.i-disabled,.tv-signin-dialog-tabs__tab:disabled,.tv-signin-dialog-tabs__tab[disabled]{color:#e0e3eb;cursor:default}html.theme-dark .tv-signin-dialog-tabs__tab.i-disabled,html.theme-dark .tv-signin-dialog-tabs__tab:disabled,html.theme-dark .tv-signin-dialog-tabs__tab[disabled]{color:#363a45}.tv-signin-dialog-tabs__tab--no-padding{padding:0}.tv-signin-dialog-tabs__tab--right-shifter{margin-right:auto}.tv-signin-dialog-tabs__tab--icon-tab{padding:0}.tv-signin-dialog-tabs--category-header{height:46px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab{color:#131722;font-size:18px;height:46px;line-height:46px;padding-left:24px;padding-right:24px}@media (any-hover:hover){.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:hover,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:hover .tv-tabs__additional-info{color:#1e53e5}}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active{cursor:default}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab.i-active .tv-tabs__additional-info{color:#2962ff}.tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff;bottom:0;display:block;height:3px;pointer-events:none;position:absolute}html.theme-dark .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff}.tv-signin-dialog-tabs--compact,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab{height:23px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab{font-size:13px;line-height:23px}.tv-signin-dialog-tabs--semi-compact,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{height:38px}.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{line-height:38px}.tv-signin-dialog-tabs--category-header.i-loaded,.tv-signin-dialog-tabs--category-header.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--compact,.tv-signin-dialog-tabs--compact.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--semi-compact,.tv-signin-dialog-tabs--semi-compact.i-loaded .tv-signin-dialog-tabs__scroll-box{padding-left:0;padding-right:0}.tv-signin-dialog-tabs--category-header,.tv-signin-dialog-tabs--category-header.i-loaded .tv-signin-dialog-tabs__scroll-box,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-signin-dialog-tabs--category-header:before,.tv-signin-dialog-tabs--compact:before,.tv-signin-dialog-tabs--semi-compact:before{bottom:0}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab:first-child,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab:first-child{margin-right:-16px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab:last-child,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab:last-child{margin-left:-16px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:first-child{margin-right:-24px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:last-child{margin-left:-24px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:first-child{margin-right:-32px}.page-wide .tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__tab:last-child{margin-left:-32px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab.i-hidden:first-child+.tv-signin-dialog-tabs__tab{margin-right:-16px}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-signin-dialog-tabs--with-wrap-padding-mobile .tv-signin-dialog-tabs__tab:first-child{margin-right:0;padding-right:0}.tv-signin-dialog-tabs--with-wrap-padding-mobile .tv-signin-dialog-tabs__tab:nth-last-child(2){margin-left:0;padding-left:0}}.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:first-child,.tv-signin-dialog-tabs--semi-compact.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:first-child{margin-right:0}.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:last-child,.tv-signin-dialog-tabs--semi-compact.tv-signin-dialog-tabs--no-margin .tv-signin-dialog-tabs__tab:last-child{margin-left:0}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap{align-items:center;background-color:#f0f3fa;border-radius:25px;display:flex;height:23px;padding:0 14px}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover){.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap:hover{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__wrap:hover{background-color:#363a45}}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__wrap{height:26px;padding:0 12px}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact{padding:0 14px}.tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{color:#131722;padding:2px}html.theme-dark .tv-signin-dialog-tabs--secondary-active.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__tab{color:#b2b5be}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab{align-items:center;display:flex;font-size:13px;padding:0 6px}.tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab.i-active .tv-signin-dialog-tabs__wrap{background-color:#2962ff;color:#fff}html.theme-dark .tv-signin-dialog-tabs--secondary-active .tv-signin-dialog-tabs__tab.i-active .tv-signin-dialog-tabs__wrap{background-color:#1848cc;color:#fff}.tv-signin-dialog-tabs--no-border:before{display:none}.tv-signin-dialog-tabs--no-padding,.tv-signin-dialog-tabs--no-padding.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0}.tv-signin-dialog-tabs--no-padding .tv-signin-dialog-tabs__tab{padding:0 16px}.tv-signin-dialog-tabs--no-padding .tv-signin-dialog-tabs__tab.tv-signin-dialog-tabs__tab--no-padding{padding:0}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__tab.i-active:after{content:none;display:none}.tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs__right-arrow{align-items:center;background-color:#fff;bottom:0;box-sizing:initial;cursor:pointer;direction:ltr;display:flex;padding:0 5px;position:absolute;top:0;-webkit-user-select:none;user-select:none;width:36px}.tv-signin-dialog-tabs__left-arrow:after,.tv-signin-dialog-tabs__right-arrow:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs__right-arrow svg{display:inline-block;height:12px;transform:scale(1);transition:fill .35s ease;vertical-align:middle;width:12px}@media (any-hover:hover){.tv-signin-dialog-tabs__left-arrow:hover svg,.tv-signin-dialog-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}html.theme-dark .tv-signin-dialog-tabs__left-arrow:hover svg,html.theme-dark .tv-signin-dialog-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-signin-dialog-tabs__left-arrow:active svg,.tv-signin-dialog-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-signin-dialog-tabs__left-arrow:active svg,html.theme-dark .tv-signin-dialog-tabs__right-arrow:active svg{fill:#9db2bd}.tv-signin-dialog-tabs__right-arrow{justify-content:flex-end}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow svg{vertical-align:top}.tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#fff,#ffffffd9,#fff0);left:0;text-align:left;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#fff,#ffffffd9,#fff0);right:0;text-align:right;transform:translateX(0);transition:transform ease-in-out;transition-duration:.17s}html.theme-dark .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--compact .tv-signin-dialog-tabs__right-arrow{width:23px}.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--semi-compact .tv-signin-dialog-tabs__right-arrow{width:34px}.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--category-header .tv-signin-dialog-tabs__right-arrow{width:45px}.tv-signin-dialog-tabs--searchbar:before{display:none}.tv-signin-dialog-tabs--searchbar,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-signin-dialog-tabs--searchbar,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__scroll-box{height:54px}}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__tab.i-active:after{background-color:#fff;bottom:0}html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__tab.i-active:after{background-color:#fff}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__slider,.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff;bottom:0}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__slider,html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__tab.i-active:after{background-color:#2962ff}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow:active svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover){.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow:hover svg,.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,#1e222dd9,#1e222d00)}html.theme-dark .tv-signin-dialog-tabs--searchbar .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,#1e222dd9,#1e222d00)}.tv-signin-dialog-tabs--searchbar_sub,.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__scroll-box{height:40px;line-height:40px}.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#265aeb 0,#265aeb 15%,#265aeb00)}html.theme-dark .tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(270deg,#265aeb 0,#265aeb 15%,#265aeb00)}.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#265aeb00 0,#265aeb 85%,#265aeb)}html.theme-dark .tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#265aeb00 0,#265aeb 85%,#265aeb)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,#fff0)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(270deg,#1e222d 0,#1e222d 45%,#1e222d00)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#fff0 0,#fff 55%,#fff)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#1e222d00 0,#1e222d 55%,#1e222d)}.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow,.tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{color:#434651}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__left-arrow,html.theme-dark .tv-signin-dialog-tabs--searchbar-profile .tv-signin-dialog-tabs__right-arrow{color:#d1d4dc}.tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,#f0f3fa00)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__left-arrow{background:linear-gradient(270deg,#2a2e39 0,#2a2e39 45%,#2a2e3900)}.tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(90deg,#f0f3fa00 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-signin-dialog-tabs--searchbar-profile.tv-signin-dialog-tabs--searchbar_sub .tv-signin-dialog-tabs__right-arrow{background:linear-gradient(270deg,#2a2e3900 0,#2a2e39 55%,#2a2e39)}.tv-signin-dialog-tabs.tv-tabs:before{display:none}.tv-signin-dialog-tabs .tv-tabs__scroll-wrap{overflow-x:visible;overflow-y:visible}.tv-signin-dialog-tabs.i-loaded .tv-signin-dialog-tabs__scroll-box{padding:0}.tv-signin-dialog-tabs .tv-tabs__slider{background-color:#2962ff;bottom:0}html.theme-dark .tv-signin-dialog-tabs .tv-tabs__slider{background-color:#2962ff}.tv-signin-dialog-tabs__tab{color:#131722;font-size:24px;margin:3px auto 0;padding:0;text-transform:uppercase}html.theme-dark .tv-signin-dialog-tabs__tab{color:#d1d4dc}@media screen and (max-width:479px){.tv-signin-dialog-tabs__tab{font-size:20px}}.tv-signin-dialog-tabs__tab.i-active,.tv-signin-dialog-tabs__tab:active{color:#2962ff}@media (any-hover:hover){.tv-signin-dialog-tabs__tab:hover{color:#2962ff}}html.theme-dark .tv-signin-dialog-tabs__tab.i-active,html.theme-dark .tv-signin-dialog-tabs__tab:active{color:#2962ff}@media (any-hover:hover){html.theme-dark .tv-signin-dialog-tabs__tab:hover{color:#2962ff}}.tv-signin-dialog-tabs__scroll-box{height:63px}.tv-signin-dialog-tabs__wrap{margin-bottom:32px;position:relative}@media screen and (max-width:479px){.tv-signin-dialog-tabs__wrap{margin-bottom:24px}}.tv-signin-dialog-tabs__wrap:before{background-color:#e0e3eb;bottom:1px;content:"";display:block;height:1px;left:-3000px;left:-50vw;position:absolute;right:-3000px;right:-50vw;transition:right .35s cubic-bezier(.215,.61,.355,1) .175s,left .35s cubic-bezier(.215,.61,.355,1) .175s}html.theme-dark .tv-signin-dialog-tabs__wrap:before{background-color:#434651}.i-closed .tv-signin-dialog-tabs__wrap:before{left:0;right:0;transition-delay:.35s}.tv-signin-dialog{color:#131722}html.theme-dark .tv-signin-dialog{color:#d1d4dc}.tv-signin-dialog__title{font-size:24px;margin-bottom:60px;text-align:center}.tv-signin-dialog__title--withtext{color:#131722;margin-bottom:32px;max-width:calc(100% - 35px)}html.theme-dark .tv-signin-dialog__title--withtext{color:#d1d4dc}.tv-signin-dialog__title--logo{font-size:36px;padding-left:10px}.tv-signin-dialog__title--logo svg{display:inline-block;height:38.17px;margin-left:20px;vertical-align:initial;width:66px}.tv-signin-dialog__title--logo div{display:inline-block;vertical-align:text-top}.tv-signin-dialog__title--resend{line-height:1.6;margin-bottom:10px;margin-top:100px}.tv-signin-dialog__text{color:#131722;line-height:1.43;margin-bottom:32px}html.theme-dark .tv-signin-dialog__text{color:#d1d4dc}.tv-signin-dialog__text--description{color:#758696;margin:0}.tv-signin-dialog__text--link{color:#2962ff;cursor:pointer;display:inline-block;font-size:14px;margin:0;transition:color .35s ease}html.theme-dark .tv-signin-dialog__text--link{color:#2962ff}.tv-signin-dialog__text--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__text--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__text--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__text--link:focus{outline:auto}.tv-signin-dialog__text--link:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__text--link:-moz-focusring{outline:auto}.tv-signin-dialog__text--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--link:active{fill:#1848cc;color:#1848cc}.tv-signin-dialog__text--social-text{color:#131722;display:block;line-height:1.43;margin:24px 0 12px;text-align:right;width:100%}html.theme-dark .tv-signin-dialog__text--social-text{color:#d1d4dc}.tv-signin-dialog__text--text-retry{color:#2962ff;cursor:pointer;display:block;font-size:17px;margin-top:20px;text-align:center;transition:color .35s ease}html.theme-dark .tv-signin-dialog__text--text-retry{color:#2962ff}.tv-signin-dialog__text--text-retry:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__text--text-retry:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__text--text-retry:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--text-retry:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__text--text-retry:focus{outline:auto}.tv-signin-dialog__text--text-retry:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__text--text-retry:-moz-focusring{outline:auto}.tv-signin-dialog__text--text-retry:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__text--text-retry:active{fill:#1848cc;color:#1848cc}.tv-signin-dialog__text--text-email{margin-bottom:24px}.tv-signin-dialog__socials{display:flex;flex-wrap:nowrap;justify-content:space-between;margin:20px 0}@media screen and (max-width:479px){.tv-signin-dialog__socials{margin:12px 0}}.tv-signin-dialog__socials--resend{margin-bottom:10px}.tv-signin-dialog__social{align-items:center;background-color:#fff;border:1px solid #e0e3eb;border-radius:4px;color:#131722;cursor:pointer;display:flex;flex-grow:1;height:40px;justify-content:center;position:relative;transition:background-color .35s ease}html.theme-dark .tv-signin-dialog__social{background-color:#131722;border:1px solid #434651;color:#d1d4dc}@media (any-hover:hover){.tv-signin-dialog__social:hover{background-color:#f0f3fa}html.theme-dark .tv-signin-dialog__social:hover{background-color:#2a2e39}}.tv-signin-dialog__social:active{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog__social:active{background-color:#1e222d}.tv-signin-dialog__social:after{content:"";display:block;padding-bottom:100%}.tv-signin-dialog__social--big{background-color:#fff;font-size:16px;line-height:24px;width:160px}html.theme-dark .tv-signin-dialog__social--big{background-color:#131722}.tv-signin-dialog__social--big svg{margin-left:6px}@media (any-hover:hover){.tv-signin-dialog__social--big:hover{background-color:#f0f3fa}html.theme-dark .tv-signin-dialog__social--big:hover{background-color:#2a2e39}}.tv-signin-dialog__social--big:active{background-color:#e0e3eb}html.theme-dark .tv-signin-dialog__social--big:active{background-color:#1e222d}.tv-signin-dialog__social--apple{color:#131722}@media (any-hover:hover){.tv-signin-dialog__social--apple:hover{color:#131722}}html.theme-dark .tv-signin-dialog__social--apple{color:#fff}@media (any-hover:hover){html.theme-dark .tv-signin-dialog__social--apple:hover{color:#fff}}.tv-signin-dialog .tv-social__title{padding-top:1px}.tv-signin-dialog__social:not(:last-child){margin-left:20px}@media screen and (max-width:479px){.tv-signin-dialog__social:not(:last-child){margin-left:12px}}.tv-signin-dialog__input.tv-signin-dialog__input{background-color:initial!important;border-color:#e0e3eb;color:#131722;font-size:16px;height:44px;margin:12px 0;padding:12px 0}html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input{border-color:#434651;color:#d1d4dc}.tv-signin-dialog__input--forgot{margin-bottom:24px}.tv-signin-dialog__input.tv-signin-dialog__input:-webkit-autofill{-webkit-text-fill-color:#131722!important;box-shadow:inset 0 0 0 1000px #fff!important;caret-color:#131722!important}html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input:-webkit-autofill{-webkit-text-fill-color:#d1d4dc!important;box-shadow:inset 0 0 0 1000px #131722!important;caret-color:#d1d4dc!important}@media (any-hover:hover){.tv-signin-dialog__input:hover,html.theme-dark .tv-signin-dialog__input:hover{border-color:#2962ff}}.tv-signin-dialog__input.tv-signin-dialog__input:focus,html.theme-dark .tv-signin-dialog__input.tv-signin-dialog__input:focus{border-color:#2962ff}.tv-signin-dialog__recaptcha{height:78px;margin-bottom:24px}.tv-signin-dialog__recaptcha>*{margin:0 auto}.tv-signin-dialog .tv-control-material-input__label{bottom:14px;color:#787b86;font-size:14px;top:auto;transform-origin:100% 0}html.theme-dark .tv-signin-dialog .tv-control-material-input__label{color:#787b86}.tv-signin-dialog .tv-control-material-input__label.i-up{transform:translateY(-24px) scale(.85)}.tv-signin-dialog__separator{margin-bottom:34px;padding-top:6px;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.tv-signin-dialog__separator:before{background-color:#e0e3eb;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:15px}html.theme-dark .tv-signin-dialog__separator:before{background-color:#434651}.tv-signin-dialog__separator-text{background-color:#fff;border-radius:50%;color:#787b86;display:inline-block;padding:0 15px;position:relative}html.theme-dark .tv-signin-dialog__separator-text{background-color:#131722;color:#787b86}.tv-signin-dialog__toggle-email svg{margin-left:6px}.tv-signin-dialog__cancel{color:#2962ff;cursor:pointer;display:flex;font-size:17px;justify-content:center;line-height:48px;margin-top:30px;padding:0 20px}.tv-signin-dialog .tv-control-checkbox__box:before{background-color:#fff}html.theme-dark .tv-signin-dialog .tv-control-checkbox__box:before{background-color:#131722}.tv-signin-dialog .tv-control-checkbox__label{color:#131722;margin-right:4px}html.theme-dark .tv-signin-dialog .tv-control-checkbox__label{color:#d1d4dc}.tv-signin-dialog__gdpr,.tv-signin-dialog__marketing-emails{display:block;margin:20px 0 24px}.tv-signin-dialog__gdpr a,.tv-signin-dialog__marketing-emails a{color:#2962ff;transition:color .35s ease}html.theme-dark .tv-signin-dialog__gdpr a,html.theme-dark .tv-signin-dialog__marketing-emails a{color:#2962ff}.tv-signin-dialog__gdpr a:visited,.tv-signin-dialog__marketing-emails a:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__gdpr a:visited,html.theme-dark .tv-signin-dialog__marketing-emails a:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__gdpr a:hover,.tv-signin-dialog__marketing-emails a:hover{fill:#1e53e5;color:#1e53e5;transition-duration:60ms}html.theme-dark .tv-signin-dialog__gdpr a:hover,html.theme-dark .tv-signin-dialog__marketing-emails a:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__gdpr a:focus,.tv-signin-dialog__marketing-emails a:focus{outline:auto}.tv-signin-dialog__gdpr a:focus-visible,.tv-signin-dialog__marketing-emails a:focus-visible{outline:auto}.tv-signin-dialog__gdpr a:focus:not(:focus-visible),.tv-signin-dialog__marketing-emails a:focus:not(:focus-visible){outline:none}.tv-signin-dialog__gdpr a:active,.tv-signin-dialog__marketing-emails a:active{fill:#2962ff;color:#2962ff;transition-duration:60ms}html.theme-dark .tv-signin-dialog__gdpr a:active,html.theme-dark .tv-signin-dialog__marketing-emails a:active{fill:#2962ff;color:#2962ff}.tv-signin-dialog__gdpr-checkbox.tv-control-checkbox,.tv-signin-dialog__marketing-emails-checkbox.tv-control-checkbox{vertical-align:top}.tv-signin-dialog__gdpr-text,.tv-signin-dialog__marketing-emails-text{color:#131722;font-size:14px;line-height:1.43}html.theme-dark .tv-signin-dialog__gdpr-text,html.theme-dark .tv-signin-dialog__marketing-emails-text{color:#d1d4dc}.tv-signin-dialog__footer{display:table;padding-bottom:1px;width:100%}.tv-signin-dialog__footer--login{margin:40px 0 0}.tv-signin-dialog__footer-item{display:table-cell;vertical-align:middle}.tv-signin-dialog__footer-item--login{padding-right:5px;text-align:left}.tv-signin-dialog__footer-item--activate-continue{text-align:center}.tv-signin-dialog__close{cursor:pointer;left:0;opacity:.5;padding:32px;position:absolute;top:0;transition:opacity .35s ease}@media screen and (max-width:1019px){.tv-signin-dialog__close{padding:30px}}@media screen and (max-width:767px){.tv-signin-dialog__close{padding:20px}}.tv-signin-dialog__close .i-opening{opacity:0}.tv-signin-dialog__close svg{color:#131722;display:block;height:25px;width:25px}html.theme-dark .tv-signin-dialog__close svg{color:#d1d4dc}@media screen and (max-width:767px){.tv-signin-dialog__close svg{height:15px;width:15px}}.tv-signin-dialog__close:active{opacity:1;transition-duration:.06s}@media (any-hover:hover){.tv-signin-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-signin-dialog__resend{margin-top:42px}.tv-signin-dialog__activation-link:active{transform:translateY(1px)}.tv-signin-dialog__dropzone{cursor:pointer;display:block;position:relative}.tv-signin-dialog__dropzone-wrap{border:1px dashed #4e5866;height:160px;margin:0 auto 40px;position:relative;-webkit-user-select:none;user-select:none;width:160px}.tv-signin-dialog__dropzone,.tv-signin-dialog__dropzone-img,.tv-signin-dialog__dropzone-preview,.tv-signin-dialog__dropzone-text{bottom:0;height:160px;left:0;position:absolute;right:0;top:0;width:160px}.tv-signin-dialog__dropzone-img{display:block;height:160px;width:160px}.tv-signin-dialog__dropzone-text{cursor:default;line-height:160px;text-align:center;transition:background-color .35s ease,opacity .35s ease;vertical-align:middle}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap:hover .tv-signin-dialog__dropzone-text{background-color:hsla(0,0%,100%,.075);transition-duration:.06s}}.tv-signin-dialog__dropzone-wrap.i-with-preview .tv-signin-dialog__dropzone-text{opacity:0}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap.i-with-preview:hover .tv-signin-dialog__dropzone-text{background-color:#2a2c3980;opacity:1}}.tv-signin-dialog__dropzone-wrap.i-processing .tv-signin-dialog__dropzone-text{opacity:0}@media (any-hover:hover){.tv-signin-dialog__dropzone-wrap.i-processing:hover .tv-signin-dialog__dropzone-text{opacity:0}}.tv-signin-dialog__label{color:#131722;text-align:right;white-space:nowrap}html.theme-dark .tv-signin-dialog__label{color:#d1d4dc}.tv-signin-dialog__label--reset-method{color:#131722}html.theme-dark .tv-signin-dialog__label--reset-method{color:#d1d4dc}@media screen and (max-width:479px){.tv-signin-dialog__label{white-space:normal}}.tv-signin-dialog__radio-wrap{display:inline-block;margin-bottom:18px;margin-right:-4px;text-align:right;width:100%}.tv-signin-dialog__radio-wrap:last-child{margin-bottom:32px}.tv-signin-dialog__reset-password-form{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.tv-signin-dialog__reset-password-form--link{color:#2962ff;cursor:pointer;display:inline-block;font-size:14px;margin-top:14px;transition:color .35s ease}html.theme-dark .tv-signin-dialog__reset-password-form--link{color:#2962ff}.tv-signin-dialog__reset-password-form--link:visited{fill:#2962ff;color:#2962ff}html.theme-dark .tv-signin-dialog__reset-password-form--link:visited{fill:#2962ff;color:#2962ff}@media (any-hover:hover){.tv-signin-dialog__reset-password-form--link:hover{fill:#1e53e5;color:#1e53e5;transition-duration:.06s}html.theme-dark .tv-signin-dialog__reset-password-form--link:hover{fill:#1e53e5;color:#1e53e5}}.tv-signin-dialog__reset-password-form--link:focus{outline:auto}.tv-signin-dialog__reset-password-form--link:focus:not(:-moz-focusring){outline:none}.tv-signin-dialog__reset-password-form--link:-moz-focusring{outline:auto}.tv-signin-dialog__reset-password-form--link:active{fill:#1848cc;color:#1848cc;transition-duration:.06s}html.theme-dark .tv-signin-dialog__reset-password-form--link:active{fill:#1848cc;color:#1848cc} \ No newline at end of file diff --git a/charting_library/bundles/9593.734c4bb23892ab13dac8.css b/charting_library/bundles/9593.734c4bb23892ab13dac8.css new file mode 100644 index 00000000..31bdf234 --- /dev/null +++ b/charting_library/bundles/9593.734c4bb23892ab13dac8.css @@ -0,0 +1 @@ +.tv-control-select__wrap{display:block;min-width:40px;position:relative;-webkit-user-select:none;user-select:none}.tv-control-select__wrap--readonly{border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}.tv-control-select__control,select.tv-control-select{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;color:#535353;cursor:pointer;display:block;font-size:13px;height:34px;line-height:34px;padding:0 12px;position:relative;transition:border-color .35s ease,background-color .35s ease;transition:color .35s ease;white-space:nowrap;width:100%}html.theme-dark .tv-control-select__control,html.theme-dark select.tv-control-select{background-color:#1e222d;border-color:#363a45;color:#c5cbce;color:#d1d4dc}.tv-control-select__control::placeholder,select.tv-control-select::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-select__control::placeholder,html.theme-dark select.tv-control-select::placeholder{color:#50535e}.tv-control-select__control:-webkit-autofill,select.tv-control-select:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-select__control--size_xsmall,select.tv-control-select--size_xsmall{height:19px}.tv-control-select__control--size_small,select.tv-control-select--size_small{height:27px}.tv-control-select__control--size_large,select.tv-control-select--size_large{font-size:16px;height:48px}.tv-control-select__control--connect,select.tv-control-select--connect{border-left:0;border-radius:0;border-right:0}.tv-control-select__control--connect_left,select.tv-control-select--connect_left{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-select__control--connect_right,select.tv-control-select--connect_right{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}@media (any-hover:hover){.tv-control-select__control:hover,select.tv-control-select:hover{border-color:#c1c4cd;transition-duration:.06s}}.tv-control-select__control:focus,select.tv-control-select:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-select__control[readonly],select.tv-control-select[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-select__control[readonly]:focus,select.tv-control-select[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-select__control[readonly]:hover,select.tv-control-select[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-select__control[readonly]:focus,html.theme-dark select.tv-control-select[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-select__control[readonly]:hover,html.theme-dark select.tv-control-select[readonly]:hover{border-color:#2a2e39!important}}.tv-control-select__control--readonly_dark,.tv-control-select__control--readonly_dark[readonly],html.theme-dark .tv-control-select__control--readonly_dark,html.theme-dark .tv-control-select__control--readonly_dark[readonly],html.theme-dark select.tv-control-select--readonly_dark,html.theme-dark select.tv-control-select--readonly_dark[readonly],select.tv-control-select--readonly_dark,select.tv-control-select--readonly_dark[readonly]{color:#50535e}.tv-control-select__control.i-disabled,.tv-control-select__control[disabled],select.tv-control-select.i-disabled,select.tv-control-select[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled,html.theme-dark .tv-control-select__control[disabled],html.theme-dark select.tv-control-select.i-disabled,html.theme-dark select.tv-control-select[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-select__control.i-disabled::placeholder,.tv-control-select__control[disabled]::placeholder,select.tv-control-select.i-disabled::placeholder,select.tv-control-select[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled::placeholder,html.theme-dark .tv-control-select__control[disabled]::placeholder,html.theme-dark select.tv-control-select.i-disabled::placeholder,html.theme-dark select.tv-control-select[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-select__control.i-disabled:hover,.tv-control-select__control[disabled]:hover,select.tv-control-select.i-disabled:hover,select.tv-control-select[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled:hover,html.theme-dark .tv-control-select__control[disabled]:hover,html.theme-dark select.tv-control-select.i-disabled:hover,html.theme-dark select.tv-control-select[disabled]:hover{border-color:#2a2e39!important}}.tv-control-select__control.i-error,select.tv-control-select.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-select__control.i-error:hover,select.tv-control-select.i-error:hover{border-color:#f24965!important}}.tv-control-select__control.i-error:focus,select.tv-control-select.i-error:focus{border-color:#ff173e!important}.tv-control-select__control.i-success,select.tv-control-select.i-success{border-color:#089981!important}html.theme-dark .tv-control-select__control.i-success,html.theme-dark select.tv-control-select.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-select__control.i-success:hover,html.theme-dark .tv-control-select__control.i-success:hover,html.theme-dark select.tv-control-select.i-success:hover,select.tv-control-select.i-success:hover{border-color:#06806b!important}}.tv-control-select__control.i-success:active,.tv-control-select__control.i-success:focus,select.tv-control-select.i-success:active,select.tv-control-select.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-select__control.i-success:active,html.theme-dark .tv-control-select__control.i-success:focus,html.theme-dark select.tv-control-select.i-success:active,html.theme-dark select.tv-control-select.i-success:focus{border-color:#089981!important}.tv-control-select__control--phone,select.tv-control-select--phone{direction:ltr;text-align:left}@media (any-hover:hover){.tv-control-select__control:hover,select.tv-control-select:hover{border-color:#c1c4cd}html.theme-dark .tv-control-select__control:hover,html.theme-dark select.tv-control-select:hover{border-color:#50535e}}.tv-control-select__control.i-disabled,.tv-control-select__control[disabled],select.tv-control-select.i-disabled,select.tv-control-select[disabled]{border-color:#e0e3eb;cursor:default}html.theme-dark .tv-control-select__control.i-disabled,html.theme-dark .tv-control-select__control[disabled],html.theme-dark select.tv-control-select.i-disabled,html.theme-dark select.tv-control-select[disabled]{border-color:#2a2e39}.i-error .tv-control-select__control,.i-error select.tv-control-select{border-color:#ff4a68!important}@media (any-hover:hover){.i-error .tv-control-select__control:hover,.i-error select.tv-control-select:hover{border-color:#f04561!important}}.i-error .tv-control-select__control:focus,.i-error select.tv-control-select:focus{border-color:#ff173e!important}.tv-control-select--size_xsmall .tv-control-select__control{height:19px;line-height:19px}.tv-control-select--size_small .tv-control-select__control{height:27px;line-height:27px}.tv-control-select--size_large .tv-control-select__control{height:48px;line-height:48px}.tv-control-select__control-inner{display:block;margin-right:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-control-select__control-inner--option-disabled{color:#a3a6af}html.theme-dark .tv-control-select__control-inner--option-disabled{color:#50535e}.tv-control-select__control-inner--readonly{border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}.tv-control-select__control-inner:after{content:"\200E"}select.tv-control-select.i-inited{display:none}.tv-control-select__caret{bottom:0;cursor:pointer;position:absolute;right:0;top:0;width:40px}.tv-control-select__caret:after{border-left:4px solid #0000;border-right:4px solid #0000;border-top:4px solid #787b86;content:"";display:block;left:auto;margin-top:-2px;position:absolute;right:15px;top:50%;transition:transform .35s ease,border-color .35s ease}html.theme-dark .tv-control-select__caret:after{border-top-color:#787b86}@media (any-hover:hover){.tv-control-select__wrap:hover .tv-control-select__caret:after{border-color:#434651 #0000 #0000;transition-duration:.06s}html.theme-dark .tv-control-select__wrap:hover .tv-control-select__caret:after{border-color:#d1d4dc #0000 #0000}}.tv-control-select__wrap.i-opened .tv-control-select__caret:after{transform:rotate(-180deg)}@media (any-hover:hover){.tv-control-select__wrap.i-opened:hover .tv-control-select__caret:after,html.theme-dark .tv-control-select__wrap.i-opened:hover .tv-control-select__caret:after{border-color:#787b86 #0000 #0000}.tv-control-select__wrap.i-opened .tv-control-select__caret:hover:after{border-color:#434651 #0000 #0000;transition-duration:.06s}html.theme-dark .tv-control-select__wrap.i-opened .tv-control-select__caret:hover:after{border-color:#d1d4dc #0000 #0000}}.tv-control-select__wrap.i-closing .tv-control-select__caret{z-index:98}.tv-control-select__wrap.i-closing .tv-control-select__caret:after{transform:rotate(0)}.tv-control-select__wrap.i-disabled .tv-control-select__caret{cursor:default}.tv-control-select__wrap.i-disabled .tv-control-select__caret:after{border-color:#e0e3eb #0000 #0000}@media (any-hover:hover){.tv-control-select__wrap.i-disabled:hover .tv-control-select__caret:after{border-color:#e0e3eb #0000 #0000}}html.theme-dark .tv-control-select__wrap.i-disabled .tv-control-select__caret:after{border-color:#2a2e39 #0000 #0000}@media (any-hover:hover){html.theme-dark .tv-control-select__wrap.i-disabled:hover .tv-control-select__caret:after{border-color:#2a2e39 #0000 #0000}}.tv-control-select__dropdown{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;font-size:13px;left:0;line-height:1;padding:15px 0;position:absolute;top:-15px;z-index:99}html.theme-dark .tv-control-select__dropdown{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-control-select__dropdown--under-trigger{top:100%;top:calc(100% - 1px)}.tv-control-select__dropdown--over-trigger{top:0}.tv-control-select__dropdown--position_right{left:auto;right:0}.tv-control-select__dropdown--position_outer_right{left:100%}.tv-control-select__dropdown.tv-control-select__dropdown{cursor:default;left:-7px;right:-7px;top:-14px}.tv-control-select__scroll{height:100%}.tv-control-select__option-wrap{cursor:pointer;display:block;overflow:hidden;padding:10px 15px;position:relative;text-align:left;text-overflow:ellipsis;transition:color .35s ease,background-color .35s ease;white-space:nowrap}.tv-control-select__option-wrap,.tv-control-select__option-wrap:visited{color:#2f3241}html.theme-dark .tv-control-select__option-wrap,html.theme-dark .tv-control-select__option-wrap:visited{color:#d6d8e0}@media (any-hover:hover){.tv-control-select__option-wrap:hover:not(.i-active){background-color:#f0f3fa;color:#434651;transition-duration:.06s}html.theme-dark .tv-control-select__option-wrap:hover:not(.i-active){background-color:#2a2e39;color:#d1d4dc}}.tv-control-select__option-wrap:active{background-color:#3179f52e;color:#434651}html.theme-dark .tv-control-select__option-wrap:active{color:#d1d4dc}.tv-control-select__option-wrap.i-active{color:#434651}html.theme-dark .tv-control-select__option-wrap.i-active{color:#d1d4dc}.tv-control-select__option-wrap.i-active,.tv-control-select__option-wrap.i-active:active{background-color:#3179f52e}@media (any-hover:hover){.tv-control-select__option-wrap.i-active:hover{background-color:#3179f52e}}.tv-control-select__option-wrap.i-disabled,.tv-control-select__option-wrap.i-disabled:active{background-color:initial;color:#e5e5e8;cursor:default}@media (any-hover:hover){.tv-control-select__option-wrap.i-disabled:hover{background-color:initial;color:#e5e5e8;cursor:default}}html.theme-dark .tv-control-select__option-wrap.i-disabled,html.theme-dark .tv-control-select__option-wrap.i-disabled:active{color:#758696}@media (any-hover:hover){html.theme-dark .tv-control-select__option-wrap.i-disabled:hover{color:#758696}}.tv-control-select__option-wrap--subitem{padding:10px 15px 10px 30px}@media (any-hover:hover){.tv-control-select__option-wrap--not-interactive:hover{background-color:initial}}.tv-control-select__option-wrap--not-interactive.i-active,.tv-control-select__option-wrap--not-interactive:active{background-color:initial}@media (any-hover:hover){.tv-control-select__option-wrap--not-interactive.i-active:hover{background-color:initial}}.tv-control-select__option-wrap--not-interactive.i-active:active{background-color:initial}.tv-control-select__option-wrap.tv-control-select__option-wrap{font-size:13px;padding-left:20px;padding-right:20px}.tv-control-select__option.i-active .tv-control-select__option-wrap{color:#434651}html.theme-dark .tv-control-select__option.i-active .tv-control-select__option-wrap{color:#d1d4dc}.tv-control-select__option.i-active .tv-control-select__option-wrap,.tv-control-select__option.i-active .tv-control-select__option-wrap:active{background-color:#3179f52e}@media (any-hover:hover){.tv-control-select__option.i-active .tv-control-select__option-wrap:hover{background-color:#3179f52e}}.tv-control-select__option.i-disabled .tv-control-select__option-wrap{background-color:initial;color:#c1c4cd;cursor:default}@media (any-hover:hover){.tv-control-select__option.i-disabled .tv-control-select__option-wrap:hover{color:#c1c4cd}}html.theme-dark .tv-control-select__option.i-disabled .tv-control-select__option-wrap{color:#50535e}@media (any-hover:hover){html.theme-dark .tv-control-select__option.i-disabled .tv-control-select__option-wrap:hover{color:#50535e}.tv-control-select__option.i-disabled:hover .tv-control-select__option-wrap{background-color:initial}}.tv-control-select__optgroup{display:block}.tv-control-select__optgroup-label{color:#bdbec0;display:block;font-size:14px;font-size:13px;font-weight:700;line-height:1;margin-top:10px;padding:10px 20px;text-transform:uppercase}.tv-control-select__optgroup-label:first-child{margin-top:0}.tv-control-select__optgroup-separator{display:none}.tv-control-select__optgroup-separator:not(:last-of-type){background:#e0e3eb;border:none;display:block;height:1px;margin:8px 0}html.theme-dark .tv-control-select__optgroup-separator:not(:last-of-type){background:#434651}.tv-control-select__optgroup-items{display:block}.tv-control-select__wrap--touch .tv-control-select__caret,.tv-control-select__wrap--touch .tv-control-select__control{pointer-events:none}.tv-control-select__wrap--touch .tv-control-select.i-inited{bottom:0;display:block;left:0;opacity:0;position:absolute;right:0;top:0}.tv-dropdown{position:relative;vertical-align:middle}.tv-dropdown--inline{display:inline-block}.tv-dropdown.i-inactive .tv-dropdown__item,.tv-dropdown__group.i-inactive .tv-dropdown__item{background-color:initial;color:#adaeb0;cursor:default}@media (any-hover:hover){.tv-dropdown.i-inactive .tv-dropdown__item:hover,.tv-dropdown__group.i-inactive .tv-dropdown__item:hover{background-color:initial;color:#adaeb0;cursor:default}}.tv-dropdown__desc{color:#adaeb0;display:block;font-size:11px;margin-top:2px;transition:color .35s ease}@media (any-hover:hover){.tv-dropdown__item:hover .tv-dropdown__desc{color:#757575;transition-duration:.06s}}.tv-dropdown.i-inactive .tv-dropdown__desc,.tv-dropdown__group.i-inactive .tv-dropdown__desc{color:#c8c8c8;transition-duration:.06s}.tv-dropdown__button{cursor:pointer}.tv-dropdown__button--dashed{border-bottom-style:dashed}.tv-dropdown__group--divided{border-bottom:1px solid #eaecef}.tv-dropdown__group--divided:last-child{border-bottom:none}.tv-dropdown__body{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;font-size:13px;left:0;line-height:1;padding:15px 0;position:absolute;top:-15px;z-index:99}html.theme-dark .tv-dropdown__body{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-dropdown__body--under-trigger{top:100%;top:calc(100% - 1px)}.tv-dropdown__body--over-trigger{top:0}.tv-dropdown__body--position_right{left:auto;right:0}.tv-dropdown__body--position_outer_right{left:100%}.tv-dropdown__title{color:#bdbec0;font-size:14px;font-weight:700;margin-top:10px;padding:10px 15px;text-transform:uppercase}.tv-dropdown__title:first-child{margin-top:0}.tv-dropdown__item{cursor:pointer;display:block;overflow:hidden;padding:10px 15px;position:relative;text-align:left;text-overflow:ellipsis;transition:color .35s ease,background-color .35s ease;white-space:nowrap}.tv-dropdown__item,.tv-dropdown__item:visited{color:#2f3241}html.theme-dark .tv-dropdown__item,html.theme-dark .tv-dropdown__item:visited{color:#d6d8e0}@media (any-hover:hover){.tv-dropdown__item:hover:not(.i-active){background-color:#f0f3fa;color:#434651;transition-duration:.06s}html.theme-dark .tv-dropdown__item:hover:not(.i-active){background-color:#2a2e39;color:#d1d4dc}}.tv-dropdown__item:active{background-color:#3179f52e;color:#434651}html.theme-dark .tv-dropdown__item:active{color:#d1d4dc}.tv-dropdown__item.i-active{color:#434651}html.theme-dark .tv-dropdown__item.i-active{color:#d1d4dc}.tv-dropdown__item.i-active,.tv-dropdown__item.i-active:active{background-color:#3179f52e}@media (any-hover:hover){.tv-dropdown__item.i-active:hover{background-color:#3179f52e}}.tv-dropdown__item.i-disabled,.tv-dropdown__item.i-disabled:active{background-color:initial;color:#e5e5e8;cursor:default}@media (any-hover:hover){.tv-dropdown__item.i-disabled:hover{background-color:initial;color:#e5e5e8;cursor:default}}html.theme-dark .tv-dropdown__item.i-disabled,html.theme-dark .tv-dropdown__item.i-disabled:active{color:#758696}@media (any-hover:hover){html.theme-dark .tv-dropdown__item.i-disabled:hover{color:#758696}}.tv-dropdown__item--subitem{padding:10px 15px 10px 30px}@media (any-hover:hover){.tv-dropdown__item--not-interactive:hover{background-color:initial}}.tv-dropdown__item--not-interactive.i-active,.tv-dropdown__item--not-interactive:active{background-color:initial}@media (any-hover:hover){.tv-dropdown__item--not-interactive.i-active:hover{background-color:initial}}.tv-dropdown__item--not-interactive.i-active:active{background-color:initial}.tv-dropdown__item-text{vertical-align:middle}.tv-dropdown-behavior__body{box-sizing:border-box;display:none}.tv-dropdown-behavior__body.i-opened{display:block}.tv-dropdown-behavior__body--width_full{min-width:100%}.tv-dropdown-behavior__button{cursor:pointer}.tv-dropdown-behavior__inscroll,.tv-dropdown-behavior__item,.tv-dropdown-behavior__scroll{display:block;position:relative}.tv-dropdown-behavior__scroll{overflow:hidden} \ No newline at end of file diff --git a/charting_library/bundles/9593.734c4bb23892ab13dac8.rtl.css b/charting_library/bundles/9593.734c4bb23892ab13dac8.rtl.css new file mode 100644 index 00000000..22455cc0 --- /dev/null +++ b/charting_library/bundles/9593.734c4bb23892ab13dac8.rtl.css @@ -0,0 +1 @@ +.tv-control-select__wrap{display:block;min-width:40px;position:relative;-webkit-user-select:none;user-select:none}.tv-control-select__wrap--readonly{border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}.tv-control-select__control,select.tv-control-select{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #e0e3eb;border-radius:2px;box-sizing:border-box;color:#434651;color:#535353;cursor:pointer;display:block;font-size:13px;height:34px;line-height:34px;padding:0 12px;position:relative;transition:border-color .35s ease,background-color .35s ease;transition:color .35s ease;white-space:nowrap;width:100%}html.theme-dark .tv-control-select__control,html.theme-dark select.tv-control-select{background-color:#1e222d;border-color:#363a45;color:#c5cbce;color:#d1d4dc}.tv-control-select__control::placeholder,select.tv-control-select::placeholder{color:#a3a6af;opacity:1}html.theme-dark .tv-control-select__control::placeholder,html.theme-dark select.tv-control-select::placeholder{color:#50535e}.tv-control-select__control:-webkit-autofill,select.tv-control-select:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-select__control--size_xsmall,select.tv-control-select--size_xsmall{height:19px}.tv-control-select__control--size_small,select.tv-control-select--size_small{height:27px}.tv-control-select__control--size_large,select.tv-control-select--size_large{font-size:16px;height:48px}.tv-control-select__control--connect,select.tv-control-select--connect{border-left:0;border-radius:0;border-right:0}.tv-control-select__control--connect_left,select.tv-control-select--connect_left{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.tv-control-select__control--connect_right,select.tv-control-select--connect_right{border-bottom-left-radius:0;border-left:none;border-top-left-radius:0}.tv-control-select__control--connect_right#id_username,select.tv-control-select--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-select__control:hover,select.tv-control-select:hover{border-color:#c1c4cd;transition-duration:.06s}}.tv-control-select__control:focus,select.tv-control-select:focus{border-color:#2962ff!important;transition-duration:.06s}.tv-control-select__control[readonly],select.tv-control-select[readonly]{border-color:#dadde0;color:#8a8a8a}.tv-control-select__control[readonly]:focus,select.tv-control-select[readonly]:focus{border-color:#e0e3eb!important}@media (any-hover:hover){.tv-control-select__control[readonly]:hover,select.tv-control-select[readonly]:hover{border-color:#e0e3eb!important}}html.theme-dark .tv-control-select__control[readonly]:focus,html.theme-dark select.tv-control-select[readonly]:focus{border-color:#2a2e39!important}@media (any-hover:hover){html.theme-dark .tv-control-select__control[readonly]:hover,html.theme-dark select.tv-control-select[readonly]:hover{border-color:#2a2e39!important}}.tv-control-select__control--readonly_dark,.tv-control-select__control--readonly_dark[readonly],html.theme-dark .tv-control-select__control--readonly_dark,html.theme-dark .tv-control-select__control--readonly_dark[readonly],html.theme-dark select.tv-control-select--readonly_dark,html.theme-dark select.tv-control-select--readonly_dark[readonly],select.tv-control-select--readonly_dark,select.tv-control-select--readonly_dark[readonly]{color:#50535e}.tv-control-select__control.i-disabled,.tv-control-select__control[disabled],select.tv-control-select.i-disabled,select.tv-control-select[disabled]{border-color:#e0e3eb!important;color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled,html.theme-dark .tv-control-select__control[disabled],html.theme-dark select.tv-control-select.i-disabled,html.theme-dark select.tv-control-select[disabled]{border-color:#2a2e39!important;color:#2a2e39!important}.tv-control-select__control.i-disabled::placeholder,.tv-control-select__control[disabled]::placeholder,select.tv-control-select.i-disabled::placeholder,select.tv-control-select[disabled]::placeholder{color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled::placeholder,html.theme-dark .tv-control-select__control[disabled]::placeholder,html.theme-dark select.tv-control-select.i-disabled::placeholder,html.theme-dark select.tv-control-select[disabled]::placeholder{color:#2a2e39!important}@media (any-hover:hover){.tv-control-select__control.i-disabled:hover,.tv-control-select__control[disabled]:hover,select.tv-control-select.i-disabled:hover,select.tv-control-select[disabled]:hover{border-color:#e0e3eb!important}html.theme-dark .tv-control-select__control.i-disabled:hover,html.theme-dark .tv-control-select__control[disabled]:hover,html.theme-dark select.tv-control-select.i-disabled:hover,html.theme-dark select.tv-control-select[disabled]:hover{border-color:#2a2e39!important}}.tv-control-select__control.i-error,select.tv-control-select.i-error{border-color:#ff4a68!important}@media (any-hover:hover){.tv-control-select__control.i-error:hover,select.tv-control-select.i-error:hover{border-color:#f24965!important}}.tv-control-select__control.i-error:focus,select.tv-control-select.i-error:focus{border-color:#ff173e!important}.tv-control-select__control.i-success,select.tv-control-select.i-success{border-color:#089981!important}html.theme-dark .tv-control-select__control.i-success,html.theme-dark select.tv-control-select.i-success{border-color:#056656!important}@media (any-hover:hover){.tv-control-select__control.i-success:hover,html.theme-dark .tv-control-select__control.i-success:hover,html.theme-dark select.tv-control-select.i-success:hover,select.tv-control-select.i-success:hover{border-color:#06806b!important}}.tv-control-select__control.i-success:active,.tv-control-select__control.i-success:focus,select.tv-control-select.i-success:active,select.tv-control-select.i-success:focus{border-color:#056656!important}html.theme-dark .tv-control-select__control.i-success:active,html.theme-dark .tv-control-select__control.i-success:focus,html.theme-dark select.tv-control-select.i-success:active,html.theme-dark select.tv-control-select.i-success:focus{border-color:#089981!important}.tv-control-select__control--phone,select.tv-control-select--phone{direction:ltr;text-align:right}@media (any-hover:hover){.tv-control-select__control:hover,select.tv-control-select:hover{border-color:#c1c4cd}html.theme-dark .tv-control-select__control:hover,html.theme-dark select.tv-control-select:hover{border-color:#50535e}}.tv-control-select__control.i-disabled,.tv-control-select__control[disabled],select.tv-control-select.i-disabled,select.tv-control-select[disabled]{border-color:#e0e3eb;cursor:default}html.theme-dark .tv-control-select__control.i-disabled,html.theme-dark .tv-control-select__control[disabled],html.theme-dark select.tv-control-select.i-disabled,html.theme-dark select.tv-control-select[disabled]{border-color:#2a2e39}.i-error .tv-control-select__control,.i-error select.tv-control-select{border-color:#ff4a68!important}@media (any-hover:hover){.i-error .tv-control-select__control:hover,.i-error select.tv-control-select:hover{border-color:#f04561!important}}.i-error .tv-control-select__control:focus,.i-error select.tv-control-select:focus{border-color:#ff173e!important}.tv-control-select--size_xsmall .tv-control-select__control{height:19px;line-height:19px}.tv-control-select--size_small .tv-control-select__control{height:27px;line-height:27px}.tv-control-select--size_large .tv-control-select__control{height:48px;line-height:48px}.tv-control-select__control-inner{display:block;margin-left:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-control-select__control-inner--option-disabled{color:#a3a6af}html.theme-dark .tv-control-select__control-inner--option-disabled{color:#50535e}.tv-control-select__control-inner--readonly{border-color:#b4b4b4;color:#b4b4b4;cursor:text;-webkit-user-select:text;user-select:text}.tv-control-select__control-inner:after{content:"\200E"}select.tv-control-select.i-inited{display:none}.tv-control-select__caret{bottom:0;cursor:pointer;left:0;position:absolute;top:0;width:40px}.tv-control-select__caret:after{border-left:4px solid #0000;border-right:4px solid #0000;border-top:4px solid #787b86;content:"";display:block;left:15px;margin-top:-2px;position:absolute;right:auto;top:50%;transition:transform .35s ease,border-color .35s ease}html.theme-dark .tv-control-select__caret:after{border-top-color:#787b86}@media (any-hover:hover){.tv-control-select__wrap:hover .tv-control-select__caret:after{border-color:#434651 #0000 #0000;transition-duration:.06s}html.theme-dark .tv-control-select__wrap:hover .tv-control-select__caret:after{border-color:#d1d4dc #0000 #0000}}.tv-control-select__wrap.i-opened .tv-control-select__caret:after{transform:rotate(180deg)}@media (any-hover:hover){.tv-control-select__wrap.i-opened:hover .tv-control-select__caret:after,html.theme-dark .tv-control-select__wrap.i-opened:hover .tv-control-select__caret:after{border-color:#787b86 #0000 #0000}.tv-control-select__wrap.i-opened .tv-control-select__caret:hover:after{border-color:#434651 #0000 #0000;transition-duration:.06s}html.theme-dark .tv-control-select__wrap.i-opened .tv-control-select__caret:hover:after{border-color:#d1d4dc #0000 #0000}}.tv-control-select__wrap.i-closing .tv-control-select__caret{z-index:98}.tv-control-select__wrap.i-closing .tv-control-select__caret:after{transform:rotate(0)}.tv-control-select__wrap.i-disabled .tv-control-select__caret{cursor:default}.tv-control-select__wrap.i-disabled .tv-control-select__caret:after{border-color:#e0e3eb #0000 #0000}@media (any-hover:hover){.tv-control-select__wrap.i-disabled:hover .tv-control-select__caret:after{border-color:#e0e3eb #0000 #0000}}html.theme-dark .tv-control-select__wrap.i-disabled .tv-control-select__caret:after{border-color:#2a2e39 #0000 #0000}@media (any-hover:hover){html.theme-dark .tv-control-select__wrap.i-disabled:hover .tv-control-select__caret:after{border-color:#2a2e39 #0000 #0000}}.tv-control-select__dropdown{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;font-size:13px;line-height:1;padding:15px 0;position:absolute;right:0;top:-15px;z-index:99}html.theme-dark .tv-control-select__dropdown{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-control-select__dropdown--under-trigger{top:100%;top:calc(100% - 1px)}.tv-control-select__dropdown--over-trigger{top:0}.tv-control-select__dropdown--position_right{left:0;right:auto}.tv-control-select__dropdown--position_outer_right{right:100%}.tv-control-select__dropdown.tv-control-select__dropdown{cursor:default;left:-7px;right:-7px;top:-14px}.tv-control-select__scroll{height:100%}.tv-control-select__option-wrap{cursor:pointer;display:block;overflow:hidden;padding:10px 15px;position:relative;text-align:right;text-overflow:ellipsis;transition:color .35s ease,background-color .35s ease;white-space:nowrap}.tv-control-select__option-wrap,.tv-control-select__option-wrap:visited{color:#2f3241}html.theme-dark .tv-control-select__option-wrap,html.theme-dark .tv-control-select__option-wrap:visited{color:#d6d8e0}@media (any-hover:hover){.tv-control-select__option-wrap:hover:not(.i-active){background-color:#f0f3fa;color:#434651;transition-duration:.06s}html.theme-dark .tv-control-select__option-wrap:hover:not(.i-active){background-color:#2a2e39;color:#d1d4dc}}.tv-control-select__option-wrap:active{background-color:#3179f52e;color:#434651}html.theme-dark .tv-control-select__option-wrap:active{color:#d1d4dc}.tv-control-select__option-wrap.i-active{color:#434651}html.theme-dark .tv-control-select__option-wrap.i-active{color:#d1d4dc}.tv-control-select__option-wrap.i-active,.tv-control-select__option-wrap.i-active:active{background-color:#3179f52e}@media (any-hover:hover){.tv-control-select__option-wrap.i-active:hover{background-color:#3179f52e}}.tv-control-select__option-wrap.i-disabled,.tv-control-select__option-wrap.i-disabled:active{background-color:initial;color:#e5e5e8;cursor:default}@media (any-hover:hover){.tv-control-select__option-wrap.i-disabled:hover{background-color:initial;color:#e5e5e8;cursor:default}}html.theme-dark .tv-control-select__option-wrap.i-disabled,html.theme-dark .tv-control-select__option-wrap.i-disabled:active{color:#758696}@media (any-hover:hover){html.theme-dark .tv-control-select__option-wrap.i-disabled:hover{color:#758696}}.tv-control-select__option-wrap--subitem{padding:10px 30px 10px 15px}@media (any-hover:hover){.tv-control-select__option-wrap--not-interactive:hover{background-color:initial}}.tv-control-select__option-wrap--not-interactive.i-active,.tv-control-select__option-wrap--not-interactive:active{background-color:initial}@media (any-hover:hover){.tv-control-select__option-wrap--not-interactive.i-active:hover{background-color:initial}}.tv-control-select__option-wrap--not-interactive.i-active:active{background-color:initial}.tv-control-select__option-wrap.tv-control-select__option-wrap{font-size:13px;padding-left:20px;padding-right:20px}.tv-control-select__option.i-active .tv-control-select__option-wrap{color:#434651}html.theme-dark .tv-control-select__option.i-active .tv-control-select__option-wrap{color:#d1d4dc}.tv-control-select__option.i-active .tv-control-select__option-wrap,.tv-control-select__option.i-active .tv-control-select__option-wrap:active{background-color:#3179f52e}@media (any-hover:hover){.tv-control-select__option.i-active .tv-control-select__option-wrap:hover{background-color:#3179f52e}}.tv-control-select__option.i-disabled .tv-control-select__option-wrap{background-color:initial;color:#c1c4cd;cursor:default}@media (any-hover:hover){.tv-control-select__option.i-disabled .tv-control-select__option-wrap:hover{color:#c1c4cd}}html.theme-dark .tv-control-select__option.i-disabled .tv-control-select__option-wrap{color:#50535e}@media (any-hover:hover){html.theme-dark .tv-control-select__option.i-disabled .tv-control-select__option-wrap:hover{color:#50535e}.tv-control-select__option.i-disabled:hover .tv-control-select__option-wrap{background-color:initial}}.tv-control-select__optgroup{display:block}.tv-control-select__optgroup-label{color:#bdbec0;display:block;font-size:14px;font-size:13px;font-weight:700;line-height:1;margin-top:10px;padding:10px 20px;text-transform:uppercase}.tv-control-select__optgroup-label:first-child{margin-top:0}.tv-control-select__optgroup-separator{display:none}.tv-control-select__optgroup-separator:not(:last-of-type){background:#e0e3eb;border:none;display:block;height:1px;margin:8px 0}html.theme-dark .tv-control-select__optgroup-separator:not(:last-of-type){background:#434651}.tv-control-select__optgroup-items{display:block}.tv-control-select__wrap--touch .tv-control-select__caret,.tv-control-select__wrap--touch .tv-control-select__control{pointer-events:none}.tv-control-select__wrap--touch .tv-control-select.i-inited{bottom:0;display:block;left:0;opacity:0;position:absolute;right:0;top:0}.tv-dropdown{position:relative;vertical-align:middle}.tv-dropdown--inline{display:inline-block}.tv-dropdown.i-inactive .tv-dropdown__item,.tv-dropdown__group.i-inactive .tv-dropdown__item{background-color:initial;color:#adaeb0;cursor:default}@media (any-hover:hover){.tv-dropdown.i-inactive .tv-dropdown__item:hover,.tv-dropdown__group.i-inactive .tv-dropdown__item:hover{background-color:initial;color:#adaeb0;cursor:default}}.tv-dropdown__desc{color:#adaeb0;display:block;font-size:11px;margin-top:2px;transition:color .35s ease}@media (any-hover:hover){.tv-dropdown__item:hover .tv-dropdown__desc{color:#757575;transition-duration:.06s}}.tv-dropdown.i-inactive .tv-dropdown__desc,.tv-dropdown__group.i-inactive .tv-dropdown__desc{color:#c8c8c8;transition-duration:.06s}.tv-dropdown__button{cursor:pointer}.tv-dropdown__button--dashed{border-bottom-style:dashed}.tv-dropdown__group--divided{border-bottom:1px solid #eaecef}.tv-dropdown__group--divided:last-child{border-bottom:none}.tv-dropdown__body{background-color:#fff;border-radius:3px;box-shadow:0 2px 4px #0003;font-size:13px;line-height:1;padding:15px 0;position:absolute;right:0;top:-15px;z-index:99}html.theme-dark .tv-dropdown__body{background-color:#1e222d;box-shadow:0 2px 4px #0006}.tv-dropdown__body--under-trigger{top:100%;top:calc(100% - 1px)}.tv-dropdown__body--over-trigger{top:0}.tv-dropdown__body--position_right{left:0;right:auto}.tv-dropdown__body--position_outer_right{right:100%}.tv-dropdown__title{color:#bdbec0;font-size:14px;font-weight:700;margin-top:10px;padding:10px 15px;text-transform:uppercase}.tv-dropdown__title:first-child{margin-top:0}.tv-dropdown__item{cursor:pointer;display:block;overflow:hidden;padding:10px 15px;position:relative;text-align:right;text-overflow:ellipsis;transition:color .35s ease,background-color .35s ease;white-space:nowrap}.tv-dropdown__item,.tv-dropdown__item:visited{color:#2f3241}html.theme-dark .tv-dropdown__item,html.theme-dark .tv-dropdown__item:visited{color:#d6d8e0}@media (any-hover:hover){.tv-dropdown__item:hover:not(.i-active){background-color:#f0f3fa;color:#434651;transition-duration:.06s}html.theme-dark .tv-dropdown__item:hover:not(.i-active){background-color:#2a2e39;color:#d1d4dc}}.tv-dropdown__item:active{background-color:#3179f52e;color:#434651}html.theme-dark .tv-dropdown__item:active{color:#d1d4dc}.tv-dropdown__item.i-active{color:#434651}html.theme-dark .tv-dropdown__item.i-active{color:#d1d4dc}.tv-dropdown__item.i-active,.tv-dropdown__item.i-active:active{background-color:#3179f52e}@media (any-hover:hover){.tv-dropdown__item.i-active:hover{background-color:#3179f52e}}.tv-dropdown__item.i-disabled,.tv-dropdown__item.i-disabled:active{background-color:initial;color:#e5e5e8;cursor:default}@media (any-hover:hover){.tv-dropdown__item.i-disabled:hover{background-color:initial;color:#e5e5e8;cursor:default}}html.theme-dark .tv-dropdown__item.i-disabled,html.theme-dark .tv-dropdown__item.i-disabled:active{color:#758696}@media (any-hover:hover){html.theme-dark .tv-dropdown__item.i-disabled:hover{color:#758696}}.tv-dropdown__item--subitem{padding:10px 30px 10px 15px}@media (any-hover:hover){.tv-dropdown__item--not-interactive:hover{background-color:initial}}.tv-dropdown__item--not-interactive.i-active,.tv-dropdown__item--not-interactive:active{background-color:initial}@media (any-hover:hover){.tv-dropdown__item--not-interactive.i-active:hover{background-color:initial}}.tv-dropdown__item--not-interactive.i-active:active{background-color:initial}.tv-dropdown__item-text{vertical-align:middle}.tv-dropdown-behavior__body{box-sizing:border-box;display:none}.tv-dropdown-behavior__body.i-opened{display:block}.tv-dropdown-behavior__body--width_full{min-width:100%}.tv-dropdown-behavior__button{cursor:pointer}.tv-dropdown-behavior__inscroll,.tv-dropdown-behavior__item,.tv-dropdown-behavior__scroll{display:block;position:relative}.tv-dropdown-behavior__scroll{overflow:hidden} \ No newline at end of file diff --git a/charting_library/bundles/95a7715d1c9835b4b280996e2493639c.svg b/charting_library/bundles/95a7715d1c9835b4b280996e2493639c.svg new file mode 100644 index 00000000..8c993694 --- /dev/null +++ b/charting_library/bundles/95a7715d1c9835b4b280996e2493639c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9619f52114e3eb5ddafad0f641d090cf.svg b/charting_library/bundles/9619f52114e3eb5ddafad0f641d090cf.svg new file mode 100644 index 00000000..057a6e0d --- /dev/null +++ b/charting_library/bundles/9619f52114e3eb5ddafad0f641d090cf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9725.34bc625d639194ea9363.js b/charting_library/bundles/9725.34bc625d639194ea9363.js new file mode 100644 index 00000000..1d9a4f83 --- /dev/null +++ b/charting_library/bundles/9725.34bc625d639194ea9363.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9725,4002],{89725:(t,s,e)=>{e.r(s),e.d(s,{createDialog:()=>h});var i=e(976),o=e(77544);function h(t){const s=t.type||"popup";return delete t.type,"modal"===s?new i.TVModal(t):new o.TVPopup(t)}},976:(t,s,e)=>{e.d(s,{TVModal:()=>v});var i=e(28353),o=e(68587),h=e(49483),n=e(43989),r=e(51536),l=e(4185),a=e(85739),d=e(25760),c=e(23127),p=e(25977);let g=[];const u={ajax:{},closingDuration:o.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,i.t)("Error")}
`};class v extends r.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=c(this.options.overlayTemplate),this.$modalWrap=c(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{g.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||c.noop,s=this.options.ajax.success||!1,e=this.options.ajax.error||c.noop;c.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(s?s(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),e(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,s)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),c(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=c.ajax(this.options.ajax):this.showContent()};return h.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1, +this._keyboardBinderLockId&&a.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),g=p.without(g,this),this.options.fixBodyState&&(0,n.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),g.length>0&&g[g.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*o.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},77544:(t,s,e)=>{e.d(s,{TVPopup:()=>g});var i=e(68587),o=e(52150),h=e(51536),n=e(30812),r=e(35190),l=e(25760),a=e(23127);const d=a("body"),c=a(window),p={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class g extends h.TVDialogAbstract{constructor(t={}){super({...p,...t}),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(a(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(a(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new n.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const s=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=l.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(a(document).on("mousedown touchstart",()=>{this._preventClick=!1}),a(document).on("click.tv-popup-"+s,t=>{if(this._preventClick)return;const s=a(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===s.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>a(document).off("click.tv-popup-"+s))),this.on("change:zIndex",()=>{ +this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,i.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=c.height(),s=c.width(),e=this.$el.height(),i=this.$el.width();let o=this.options.position;return o||(o={top:t/2-e/2,left:s/2-i/2}),o.top>t-e&&(o.top=t-e),o.left>s-i&&(o.left=s-i),o.top<10&&(o.top=10),o.left<10&&(o.left=10),o})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,r.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,s)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),c.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,r.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),d.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),c.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),s={};t.bottom>o.mediaState.height-10&&(s.top=o.mediaState.height-10-t.height,s.top<10&&(s.top=10)),t.right>o.mediaState.width-10&&(s.left=o.mediaState.width-10-t.width,s.left<10&&(s.left=10)),(s.top||s.left)&&this.$el.css(s)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),s=this.$scrollWrapInner[0].getBoundingClientRect(),e=this.$scrollWrap[0].getBoundingClientRect();let i=this.options.height&&this.options.heighti)&&(i-=t.height-e.height,i<60&&(i=60),this.$scrollWrap.css({height:i})),this.options.withScroll&&this.scroll.resize();const n=i{e.d(s,{mediaState:()=>a});var i=e(85459),o=e.n(i),h=e(69677),n=e(74664),r=e(68722);class l extends(o()){constructor(){super(),this.width=0,this.height=0,this.device=null, +this.breakpoints=n.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(n.breakpoints).sort(([t,s],[e,i])=>s-i).forEach(([t,s],e,i)=>{let o;if(0!==e){const[,t]=i[e-1];o=t+1}else o=0;const h=(0,r.matchMediaMinMax)(o,s);h.matches&&this._setNewDevice(t),h.addListener(s=>{s.matches&&(this._checkDevice(),this._setNewDevice(t))})}),(0,h.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(t){const s=this.device;this.device=t,this.trigger("changeDevice",[t,s])}}const a=new l}}]); \ No newline at end of file diff --git a/charting_library/bundles/976.93143479d06a7878a2a0.css b/charting_library/bundles/976.93143479d06a7878a2a0.css new file mode 100644 index 00000000..2ff784d2 --- /dev/null +++ b/charting_library/bundles/976.93143479d06a7878a2a0.css @@ -0,0 +1 @@ +.wrapper-IbP2mmCe{align-content:flex-start;align-items:flex-start;background-color:#fff;color:#131722;display:flex;flex-direction:row;justify-content:space-between;padding:6px 10px 2px 12px;white-space:nowrap}html.theme-dark .wrapper-IbP2mmCe{background-color:#1e222d;color:#b2b5be}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{color:#131722}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{color:#131722}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{color:#c1c4cd}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{color:#c1c4cd}}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{background-color:#f0f3fa}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{background-color:#2a2e39}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{background-color:#2a2e39}}.wrapper-IbP2mmCe:before{content:"";display:block;height:20px}.labelRow-IbP2mmCe{flex:1 1 auto;min-width:0;padding:2px 0 6px}.label-IbP2mmCe{font-size:14px;margin-right:12px;overflow:hidden}.labelHint-IbP2mmCe{color:#787b86;contain:content;font-size:12px;font-weight:400;margin-top:0;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear;white-space:normal}.labelOn-IbP2mmCe+.labelHint-IbP2mmCe{margin-top:4px;max-height:34px;opacity:1;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear} \ No newline at end of file diff --git a/charting_library/bundles/976.93143479d06a7878a2a0.rtl.css b/charting_library/bundles/976.93143479d06a7878a2a0.rtl.css new file mode 100644 index 00000000..215931fe --- /dev/null +++ b/charting_library/bundles/976.93143479d06a7878a2a0.rtl.css @@ -0,0 +1 @@ +.wrapper-IbP2mmCe{align-content:flex-start;align-items:flex-start;background-color:#fff;color:#131722;display:flex;flex-direction:row;justify-content:space-between;padding:6px 12px 2px 10px;white-space:nowrap}html.theme-dark .wrapper-IbP2mmCe{background-color:#1e222d;color:#b2b5be}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{color:#131722}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{color:#131722}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{color:#c1c4cd}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{color:#c1c4cd}}.wrapper-IbP2mmCe.hovered-IbP2mmCe,.wrapper-IbP2mmCe:active{background-color:#f0f3fa}@media (any-hover:hover){.wrapper-IbP2mmCe:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-IbP2mmCe.hovered-IbP2mmCe,html.theme-dark .wrapper-IbP2mmCe:active{background-color:#2a2e39}@media (any-hover:hover){html.theme-dark .wrapper-IbP2mmCe:hover{background-color:#2a2e39}}.wrapper-IbP2mmCe:before{content:"";display:block;height:20px}.labelRow-IbP2mmCe{flex:1 1 auto;min-width:0;padding:2px 0 6px}.label-IbP2mmCe{font-size:14px;margin-left:12px;overflow:hidden}.labelHint-IbP2mmCe{color:#787b86;contain:content;font-size:12px;font-weight:400;margin-top:0;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear;white-space:normal}.labelOn-IbP2mmCe+.labelHint-IbP2mmCe{margin-top:4px;max-height:34px;opacity:1;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear} \ No newline at end of file diff --git a/charting_library/bundles/9811.b2796acbfd658ee82791.js b/charting_library/bundles/9811.b2796acbfd658ee82791.js deleted file mode 100644 index 47049349..00000000 --- a/charting_library/bundles/9811.b2796acbfd658ee82791.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9811],{96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},89185:e=>{e.exports={itemRow:"itemRow-9Sl1Rwzy",favoriteButton:"favoriteButton-9Sl1Rwzy",active:"active-9Sl1Rwzy",selected:"selected-9Sl1Rwzy",mobile:"mobile-9Sl1Rwzy",itemInfo:"itemInfo-9Sl1Rwzy",title:"title-9Sl1Rwzy",details:"details-9Sl1Rwzy",itemInfoWithPadding:"itemInfoWithPadding-9Sl1Rwzy",favorite:"favorite-9Sl1Rwzy",removeButton:"removeButton-9Sl1Rwzy"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},97623:e=>{e.exports={scrollWrap:"scrollWrap-9M00JHkT"}},62230:e=>{e.exports={wrap:"wrap-Shy8LdqT","wrap--horizontal":"wrap--horizontal-Shy8LdqT",bar:"bar-Shy8LdqT",barInner:"barInner-Shy8LdqT","barInner--horizontal":"barInner--horizontal-Shy8LdqT","bar--horizontal":"bar--horizontal-Shy8LdqT"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>D});var r=n(59496),o=n(88537);var i=n(97754),l=n.n(i),s=n(68335),a=n(35749),c=n(63016),u=n(1109),d=n(24437),h=n(90692),v=n(95711),m=n(52092),p=n(76422),f=n(9745);const g=r.createContext({setHideClose:()=>{}});var b=n(37257),w=n(91441);function E(e){const{title:t,subtitle:n,showCloseIcon:o=!0,onClose:i,renderBefore:s,renderAfter:a,draggable:c,className:u,unsetAlign:d}=e,[h,v]=(0,r.useState)(!1);return r.createElement(g.Provider,{value:{setHideClose:v}},r.createElement("div",{className:l()(w.container,u,(n||d)&&w.unsetAlign)},s,r.createElement("div",{"data-dragg-area":c,className:w.title},r.createElement("div",{className:w.ellipsis},t),n&&r.createElement("div",{className:l()(w.ellipsis,w.subtitle)},n)),a,o&&!h&&r.createElement(f.Icon,{className:w.close,icon:b,onClick:i,"data-name":"close","data-role":"button"})))}var C=n(67179);const N={vertical:20},S={vertical:0};class D extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})), -this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,s.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=(0,o.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,a.isTextEditingField)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;p.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;p.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:i,dataName:s,onClickOutside:a,additionalElementPos:m,additionalHeaderElement:p,backdrop:f,shouldForceFocus:g=!0,showSeparator:b,subtitle:w,draggable:D=!0,fullScreen:z=!1,showCloseIcon:_=!0,rounded:k=!0,isAnimationEnabled:y,growPoint:L,dialogTooltip:x,unsetHeaderAlign:P,onDragStart:O,dataDialogName:M}=this.props,R="after"!==m?p:void 0,A="after"===m?p:void 0,B="string"==typeof i?i:M||"";return r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>r.createElement(h.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>r.createElement(c.PopupDialog,{rounded:!(d||z)&&k,className:l()(C.dialog,e),isOpened:o,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:a,onClickBackdrop:a,fullscreen:d||z,guard:m?S:N,boundByScreen:d||z,shouldForceFocus:g,backdrop:f,draggable:D,isAnimationEnabled:y,growPoint:L,name:this.props.dataName,dialogTooltip:x,onDragStart:O},r.createElement("div",{className:l()(C.wrapper,t),"data-name":s,"data-dialog-name":B},void 0!==i&&r.createElement(E,{draggable:D&&!(d||z),onClose:this._handleClose,renderAfter:A,renderBefore:R,subtitle:w,title:i,showCloseIcon:_, -className:n,unsetAlign:P}),b&&r.createElement(u.Separator,{className:C.separator}),r.createElement(v.PopupContext.Consumer,null,e=>this._renderChildren(e,d||z))))))}}},64530:(e,t,n)=>{"use strict";n.d(t,{DialogContentItem:()=>d});var r=n(59496),o=n(97754),i=n.n(o),l=n(49483),s=n(36189),a=n(96040);function c(e){const{url:t,...n}=e;return t?r.createElement("a",{...n,href:t}):r.createElement("div",{...n})}var u=n(89185);function d(e){const{title:t,subtitle:n,removeBtnLabel:o,onClick:d,onClickFavorite:v,onClickRemove:m,isActive:p,isSelected:f,isFavorite:g,isMobile:b=!1,showFavorite:w=!0,...E}=e;return r.createElement(c,{...E,className:i()(u.itemRow,p&&!f&&u.active,b&&u.mobile,f&&u.selected),onClick:h.bind(null,d),"data-role":"list-item","data-active":p},w&&v&&r.createElement(s.FavoriteButton,{className:i()(u.favoriteButton,g&&u.favorite,l.CheckMobile.any()&&u.mobile),isActive:p&&!f,isFilled:g,onClick:h.bind(null,v),"data-name":"list-item-favorite-button","data-favorite":g}),r.createElement("div",{className:i()(u.itemInfo,!w&&u.itemInfoWithPadding)},r.createElement("div",{className:i()(u.title,p&&!f&&u.active,b&&u.mobile),"data-name":"list-item-title"},t),r.createElement("div",{className:i()(u.details,p&&!f&&u.active,b&&u.mobile)},n)),r.createElement(a.RemoveButton,{className:u.removeButton,isActive:p&&!f,onClick:h.bind(null,m),"data-name":"list-item-remove-button",title:o}))}function h(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},3085:(e,t,n)=>{"use strict";n.d(t,{OverlayScrollContainer:()=>v});var r=n(59496),o=n(97754),i=n.n(o),l=n(88537),s=n(64514),a=n(62820);const c=n(62230);function u(e){const{size:t,scrollSize:n,clientSize:o,scrollProgress:u,onScrollProgressChange:d,horizontal:h,theme:v=c,onDragStart:m,onDragEnd:p,minBarSize:f=40}=e,g=(0,r.useRef)(null),b=(0,r.useRef)(null),[w,E]=(0,r.useState)(!1),C=(0,r.useRef)(0);(0,r.useEffect)(()=>{const e=(0,l.ensureNotNull)(g.current).ownerDocument;return w?(m&&m(),e&&(e.addEventListener("mousemove",k),e.addEventListener("mouseup",y))):p&&p(),()=>{e&&(e.removeEventListener("mousemove",k),e.removeEventListener("mouseup",y))}},[w]);const N=t/n||0,S=o*N||0,D=Math.max(S,f),z=(t-D)/(t-S),_=function(e){if((0,a.isRtl)()&&h)return e-n+o;return e}((0,s.clamp)(u,0,n-t));return r.createElement("div",{ref:g,className:i()(v.wrap,h&&v["wrap--horizontal"]),style:{[h?"width":"height"]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const r=(0,l.ensureNotNull)(b.current).getBoundingClientRect();C.current=(h?r.width:r.height)/2;const o=n-t;let i=L(e.nativeEvent,(0,l.ensureNotNull)(g.current))-C.current;i<0?(i=0,C.current=L(e.nativeEvent,(0,l.ensureNotNull)(g.current))):i>o*N*z&&(i=o*N*z,C.current=L(e.nativeEvent,(0,l.ensureNotNull)(g.current))-i);d(i/N/z),E(!0)}},r.createElement("div",{ref:b,className:i()(v.bar,h&&v["bar--horizontal"]),style:{[h?"minWidth":"minHeight"]:f,[h?"width":"height"]:D,transform:`translate${h?"X":"Y"}(${_*N*z||0}px)`},onMouseDown:function(e){e.preventDefault(),C.current=L(e.nativeEvent,(0,l.ensureNotNull)(b.current)),E(!0)} -},r.createElement("div",{className:i()(v.barInner,h&&v["barInner--horizontal"])})));function k(e){const t=L(e,(0,l.ensureNotNull)(g.current))-C.current;d(t/N/z)}function y(e){E(!1)}function L(e,t){const n=t.getBoundingClientRect();return h?e.clientX-n.left:e.clientY-n.top}}var d=n(70412),h=n(97623);function v(e){const{reference:t,className:n,containerHeight:i=0,containerWidth:l=0,contentHeight:s=0,contentWidth:a=0,scrollPosTop:c=0,scrollPosLeft:v=0,onVerticalChange:m,onHorizontalChange:p,visible:f}=e,[g,b]=(0,d.useHover)(),[w,E]=(0,r.useState)(!1),C=i{"use strict";n.d(t,{FavoriteButton:()=>d});var r=n(28353),o=n(59496),i=n(97754),l=n(9745),s=n(20614),a=n(55783),c=n(16842);const u={add:(0,r.t)("Add to favorites"),remove:(0,r.t)("Remove from favorites")};function d(e){const{className:t,isFilled:n,isActive:r,onClick:d,...h}=e;return o.createElement(l.Icon,{...h,className:i(c.favorite,"apply-common-tooltip",n&&c.checked,r&&c.active,t),icon:n?s:a,onClick:d,title:n?u.remove:u.add})}},898:(e,t,n)=>{"use strict";n.d(t,{useDimensions:()=>o});var r=n(59496);function o(){const[e,t]=(0,r.useState)(null);return[(0,r.useCallback)(n=>{n.width===(null==e?void 0:e.width)&&n.height===e.height||t(n)},[e]),e]}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>i,useAccurateHover:()=>l,useHover:()=>o});var r=n(59496);function o(){const[e,t]=(0,r.useState)(!1);return[e,{onMouseOver:function(e){i(e)&&t(!0)},onMouseOut:function(e){i(e)&&t(!1)}}]}function i(e){return!e.currentTarget.contains(e.relatedTarget)}function l(e){const[t,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{const t=t=>{if(null===e.current)return;const r=e.current.contains(t.target);n(r)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},33127:(e,t,n)=>{"use strict";n.d(t,{useOverlayScroll:()=>a});var r=n(59496),o=n(88537),i=n(70412),l=n(49483);const s={onMouseOver:()=>{},onMouseOut:()=>{}};function a(e,t=l.CheckMobile.any()){const n=(0,r.useRef)(null),a=e||(0,r.useRef)(null),[c,u]=(0,i.useHover)(),[d,h]=(0,r.useState)({reference:n,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){h(t=>({...t,scrollPosTop:e})),(0,o.ensureNotNull)(a.current).scrollTop=e},onHorizontalChange:function(e){h(t=>({...t,scrollPosLeft:e})),(0,o.ensureNotNull)(a.current).scrollLeft=e},visible:c}),v=(0,r.useCallback)(()=>{if(!a.current)return -;const{clientHeight:e,scrollHeight:t,scrollTop:r,clientWidth:o,scrollWidth:i,scrollLeft:l}=a.current,s=n.current?n.current.offsetTop:0;h(n=>({...n,containerHeight:e-s,contentHeight:t-s,scrollPosTop:r,containerWidth:o,contentWidth:i,scrollPosLeft:l}))},[]);function m(){h(e=>({...e,scrollPosTop:(0,o.ensureNotNull)(a.current).scrollTop,scrollPosLeft:(0,o.ensureNotNull)(a.current).scrollLeft}))}return(0,r.useEffect)(()=>{c&&v(),h(e=>({...e,visible:c}))},[c]),(0,r.useEffect)(()=>{const e=a.current;return e&&e.addEventListener("scroll",m),()=>{e&&e.removeEventListener("scroll",m)}},[a]),[d,t?s:u,a,v]}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>l});var r=n(59496),o=n(97754),i=n(91626);function l(e){return r.createElement("div",{className:o(i.separator,e.className)})}},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>u});var r=n(28353),o=n(59496),i=n(97754),l=n(9745),s=n(73366),a=n(73432);const c={remove:(0,r.t)("Remove")};function u(e){const{className:t,isActive:n,onClick:r,onMouseDown:u,title:d,hidden:h,"data-name":v="remove-button",...m}=e;return o.createElement(l.Icon,{...m,"data-name":v,className:i(a.button,"apply-common-tooltip",n&&a.active,h&&a.hidden,t),icon:s,onClick:r,onMouseDown:u,title:d||c.remove})}},73366:e=>{e.exports=''},37257:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/9837.80435cf54dcab1a9fa8e.js b/charting_library/bundles/9837.80435cf54dcab1a9fa8e.js deleted file mode 100644 index a8b89ef0..00000000 --- a/charting_library/bundles/9837.80435cf54dcab1a9fa8e.js +++ /dev/null @@ -1,9 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9837,9255],{59255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_), -window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new r,E=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}}));const T=void 0!==i.ResizeObserver?i.ResizeObserver:E},9837:function(e,t,n){var r,o,i;e.exports=(r=n(59496),o=n(87995),i=n(59255),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=a.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,f.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);l.propTypes={whitelist:u.default.array,blacklist:u.default.array,includeMargin:u.default.bool,useClone:u.default.bool,cloneOptions:u.default.object,shouldMeasure:u.default.bool,onMeasure:u.default.func},l.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=l,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){ -throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){h&&p&&(h=!1,p.length?d=p.concat(d):v=-1,d.length&&s())}function s(){if(!h){var e=o(i);h=!0;for(var t=d.length;t;){for(p=d,d=[];++v1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,s=void 0;return t.margin&&(s=(0,r.default)(getComputedStyle(e))),t.margin?(o=s.left+n.width+s.right,i=s.top+n.height+s.bottom):(o=n.width,i=n.height),{width:o, -height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))}}]); \ No newline at end of file diff --git a/charting_library/bundles/984b9115a6a09b9e5aa9d3a9bee31479.svg b/charting_library/bundles/984b9115a6a09b9e5aa9d3a9bee31479.svg new file mode 100644 index 00000000..4e6a8378 --- /dev/null +++ b/charting_library/bundles/984b9115a6a09b9e5aa9d3a9bee31479.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/98d0d092bc4bf410d77c985fe872f359.webp b/charting_library/bundles/98d0d092bc4bf410d77c985fe872f359.webp new file mode 100644 index 00000000..a87bf771 Binary files /dev/null and b/charting_library/bundles/98d0d092bc4bf410d77c985fe872f359.webp differ diff --git a/charting_library/bundles/98e91cfdd60e63d2da3aaac9c6680376.svg b/charting_library/bundles/98e91cfdd60e63d2da3aaac9c6680376.svg new file mode 100644 index 00000000..3f302272 --- /dev/null +++ b/charting_library/bundles/98e91cfdd60e63d2da3aaac9c6680376.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9957.6106d5c99e3556405b69.js b/charting_library/bundles/9957.6106d5c99e3556405b69.js new file mode 100644 index 00000000..ba6caa00 --- /dev/null +++ b/charting_library/bundles/9957.6106d5c99e3556405b69.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9957],{6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},87823:e=>{e.exports={"back-button":"back-button-837Z5B3u",icon:"icon-837Z5B3u","button-m":"button-m-837Z5B3u"}},71036:(e,t,o)=>{"use strict";o.d(t,{SquareAnchorButton:()=>v,SquareButton:()=>h});var n=o(59496),a=o(97754),r=o(95604),s=o(9745),i=o(6539),c=o.n(i);function l(e){const{color:t="brand",size:o="medium",variant:n="primary",stretch:s=!1,icon:i,startIcon:l,endIcon:m,iconOnly:d=!1,className:p,isGrouped:u,cellState:h,disablePositionAdjustment:f=!1}=e,v=function(e){let t="";return 0!==e&&(1&e&&(t=a(t,c()["no-corner-top-left"])),2&e&&(t=a(t,c()["no-corner-top-right"])),4&e&&(t=a(t,c()["no-corner-bottom-right"])),8&e&&(t=a(t,c()["no-corner-bottom-left"]))),t}((0,r.getGroupCellRemoveRoundBorders)(h));return a(p,c().button,c()["size-"+o],c()["color-"+t],c()["variant-"+n],s&&c().stretch,(i||l)&&c()["with-start-icon"],m&&c()["with-end-icon"],d&&c()["icon-only"],v,u&&c().grouped,u&&!f&&c()["adjust-position"],u&&h.isTop&&c()["first-row"],u&&h.isLeft&&c()["first-col"])}function m(e){const{size:t,startIcon:o,icon:a,iconOnly:r,children:i,endIcon:l}=e,m=null!=o?o:a;return n.createElement(n.Fragment,null,m&&"xsmall"!==t&&n.createElement(s.Icon,{icon:m,className:c()["start-icon-wrap"]}),i&&n.createElement("span",{className:c().content},i),l&&!r&&"xsmall"!==t&&n.createElement(s.Icon,{icon:l,className:c()["end-icon-wrap"]}))}var d=o(86332),p=o(90186);function u(e){const{className:t,color:o,variant:n,size:a,stretch:r,animated:s,icon:i,iconOnly:c,startIcon:l,endIcon:m,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function h(e){ +const{reference:t,...o}=e,{isGrouped:a,cellState:r,disablePositionAdjustment:s}=(0,n.useContext)(d.ControlGroupContext),i=l({...o,isGrouped:a,cellState:r,disablePositionAdjustment:s});return n.createElement("button",{...u(o),className:i,ref:t},n.createElement(m,{...o}))}function f(e){const{className:t,color:o,variant:n,size:a,stretch:r,animated:s,icon:i,iconOnly:c,startIcon:l,endIcon:m,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function v(e){const{reference:t}=e,{isGrouped:o,cellState:a,disablePositionAdjustment:r}=(0,n.useContext)(d.ControlGroupContext),s=l({...e,isGrouped:o,cellState:a,disablePositionAdjustment:r});return n.createElement("a",{...f(e),className:s,ref:t},n.createElement(m,{...e}))}},35582:(e,t,o)=>{"use strict";o.d(t,{CloseButton:()=>h});var n=o(59496),a=o(97754),r=o(9745),s=o(64120),i=o(12565),c=o(95781),l=o(7801),m=o(33584),d=o(16178),p=o.n(d);function u(e="l"){switch(e){case"l":return s;case"m":return i;case"s":return c;case"xs":return l;case"xxs":return m;default:return i}}const h=n.forwardRef((e,t)=>{const{className:o,size:s,...i}=e,c=a(p()["close-button"],p()["button-"+s],o);return n.createElement("button",{...i,type:"button",className:c,ref:t},n.createElement(r.Icon,{icon:u(s),className:p()["close-icon"],"aria-hidden":!0}))})},74664:(e,t,o)=>{"use strict";o.d(t,{breakpoints:()=>n,mobileFirstBreakpoints:()=>a,mobileFirstLegacyBreakpoints:()=>r});const n={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},a={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},r={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},41145:(e,t,o)=>{"use strict";o.d(t,{BackButton:()=>m});var n=o(59496),a=o(97754),r=o(9745),s=o(70895),i=o(81925),c=o(99803),l=o(87823);const m=n.forwardRef((e,t)=>{const{className:o,size:m,...d}=e,p=a(l["back-button"],l["button-"+m],o);return n.createElement("button",{...d,type:"button",className:p,ref:t},n.createElement(r.Icon,{icon:function(e="l"){switch(e){case"l":return s;case"m":return i;case"s":return c;default:return s}}(m),className:l.icon}))})},67844:(e,t,o)=>{"use strict";o.d(t,{CloseButton:()=>n.CloseButton});var n=o(35582)},54690:(e,t,o)=>{"use strict";o.d(t,{ResponsiveContainer:()=>f});var n=o(59496),a=o(97754),r=o(59255),s=o(88537),i=o(74664);const c={...i.mobileFirstBreakpoints,...i.mobileFirstLegacyBreakpoints},l=["base","media-mf-phone-vertical","media-mf-legacy-phone-vertical","media-mf-legacy-phone","media-mf-phone-landscape","media-mf-tablet-vertical","media-mf-legacy-notebook","media-mf-tablet-landscape","media-mf-laptop","media-mf-desktop-medium","media-mf-legacy-desktop-medium","media-mf-legacy-desktop","media-mf-desktop-large","media-mf-desktop-extra-large"],m={base:!0,"media-mf-phone-vertical":!1, +"media-mf-phone-landscape":!1,"media-mf-tablet-vertical":!1,"media-mf-tablet-landscape":!1,"media-mf-laptop":!1,"media-mf-desktop-medium":!1,"media-mf-desktop-large":!1,"media-mf-desktop-extra-large":!1,"media-mf-legacy-phone-vertical":!1,"media-mf-legacy-phone":!1,"media-mf-legacy-notebook":!1,"media-mf-legacy-desktop-medium":!1,"media-mf-legacy-desktop":!1};var d;function p(e){const t=Object.values(c).filter(t=>t>e);return[...l].reverse().slice(t.length)}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(d||(d={}));const u={base:"responsive-container-base","media-mf-phone-vertical":"responsive-container-media-mf-phone-vertical","media-mf-phone-landscape":"responsive-container-media-mf-phone-landscape","media-mf-tablet-vertical":"responsive-container-media-mf-tablet-vertical","media-mf-tablet-landscape":"responsive-container-media-mf-tablet-landscape","media-mf-laptop":"responsive-container-media-mf-laptop","media-mf-desktop-medium":"responsive-container-media-mf-desktop-medium","media-mf-desktop-large":"responsive-container-media-mf-desktop-large","media-mf-desktop-extra-large":"responsive-container-media-mf-desktop-extra-large","media-mf-legacy-phone-vertical":"responsive-container-media-mf-legacy-phone-vertical","media-mf-legacy-phone":"responsive-container-media-mf-legacy-phone","media-mf-legacy-notebook":"responsive-container-media-mf-legacy-notebook","media-mf-legacy-desktop-medium":"responsive-container-media-mf-legacy-desktop-medium","media-mf-legacy-desktop":"responsive-container-media-mf-legacy-desktop"};const h=n.createContext(m);class f extends n.PureComponent{constructor(e){super(e),this._ref=n.createRef(),this._lastChange=null,this._floatingBreakpoints={...c},this._handleResize=e=>{const{activeBreakpoints:t,firstUpdate:o}=this.state,n=e[0].contentRect.width,a=l.filter(e=>n>=this._floatingBreakpoints[e]).reverse();a.length!==t.length&&(o||(this._lastChange=a.length>t.length?d.Increase:d.Decrease),this.setState({activeBreakpoints:a}))};const{initialBreakPoint:t}=e,o=void 0===t?document.documentElement.offsetWidth:c[t];this.state={activeBreakpoints:p(o),firstUpdate:!0},this._resizeObserver=new r.default(this._handleResize)}componentDidMount(){const e=(0,s.ensureNotNull)(this._ref.current);this._resizeObserver.observe(e),void 0!==this.props.initialBreakPoint&&this.setState({activeBreakpoints:p(e.offsetWidth)})}componentWillUnmount(){const e=(0,s.ensureNotNull)(this._ref.current);this._resizeObserver.unobserve(e)}render(){const{children:e,className:t,onMouseUp:o}=this.props,{activeBreakpoints:r}=this.state,s={...m};for(const e in s)s.hasOwnProperty(e)&&(s[e]=r.includes(e));const i=r.map(e=>u[e]);return n.createElement(h.Provider,{value:s},n.createElement("div",{ref:this._ref,onMouseUp:o,className:a(t,i),"data-name":this.props["data-name"]},e))}componentDidUpdate(){const e=(0,s.ensureNotNull)(this._ref.current).offsetWidth;if(this.state.firstUpdate)return void this.setState({firstUpdate:!1,activeBreakpoints:p(e)});const{activeBreakpoints:t}=this.state,o=t[0],n=l[t.length] +;this._floatingBreakpoints={...c},this._lastChange===d.Increase?this._floatingBreakpoints[o]=e:this._lastChange===d.Decrease&&(this._floatingBreakpoints[n]=e+1),this._lastChange=null}}},64120:e=>{e.exports=''},95781:e=>{e.exports=''},7801:e=>{e.exports=''},33584:e=>{e.exports=''},70895:e=>{e.exports=''},81925:e=>{e.exports=''},99803:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/9961.9ec3499981d0cb5615f7.css b/charting_library/bundles/9961.9ec3499981d0cb5615f7.css new file mode 100644 index 00000000..e52a1d30 --- /dev/null +++ b/charting_library/bundles/9961.9ec3499981d0cb5615f7.css @@ -0,0 +1 @@ +.wrap-2oYqsh7S{-webkit-overflow-scrolling:touch;bottom:0;left:0;overflow-x:hidden;overflow-y:auto;position:fixed;right:0;top:0;transform:translateZ(0)}.wrap-2oYqsh7S::-webkit-scrollbar{display:none}.container-2oYqsh7S{height:100%;text-align:center}.container-2oYqsh7S:after{content:"";display:inline-block;height:100%;vertical-align:middle}.backdrop-2oYqsh7S{background-color:#9598a180;bottom:0;left:0;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-2oYqsh7S{background-color:#0c0e1580}.modal-2oYqsh7S{display:inline-block;vertical-align:middle}.dialog-2oYqsh7S{margin:0 auto} \ No newline at end of file diff --git a/charting_library/bundles/9961.9ec3499981d0cb5615f7.rtl.css b/charting_library/bundles/9961.9ec3499981d0cb5615f7.rtl.css new file mode 100644 index 00000000..e52a1d30 --- /dev/null +++ b/charting_library/bundles/9961.9ec3499981d0cb5615f7.rtl.css @@ -0,0 +1 @@ +.wrap-2oYqsh7S{-webkit-overflow-scrolling:touch;bottom:0;left:0;overflow-x:hidden;overflow-y:auto;position:fixed;right:0;top:0;transform:translateZ(0)}.wrap-2oYqsh7S::-webkit-scrollbar{display:none}.container-2oYqsh7S{height:100%;text-align:center}.container-2oYqsh7S:after{content:"";display:inline-block;height:100%;vertical-align:middle}.backdrop-2oYqsh7S{background-color:#9598a180;bottom:0;left:0;position:fixed;right:0;top:0;transform:translateZ(0);z-index:-1}html.theme-dark .backdrop-2oYqsh7S{background-color:#0c0e1580}.modal-2oYqsh7S{display:inline-block;vertical-align:middle}.dialog-2oYqsh7S{margin:0 auto} \ No newline at end of file diff --git a/charting_library/bundles/9a4ecd71d78aab6194857007fcc20464.svg b/charting_library/bundles/9a4ecd71d78aab6194857007fcc20464.svg new file mode 100644 index 00000000..9f2ea869 --- /dev/null +++ b/charting_library/bundles/9a4ecd71d78aab6194857007fcc20464.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9b07bb7dc3737b56b1b93989582dfcae.webp b/charting_library/bundles/9b07bb7dc3737b56b1b93989582dfcae.webp new file mode 100644 index 00000000..3f34ef7a Binary files /dev/null and b/charting_library/bundles/9b07bb7dc3737b56b1b93989582dfcae.webp differ diff --git a/charting_library/bundles/9b10f00f014bc0f9d1a452e07a0d161a.svg b/charting_library/bundles/9b10f00f014bc0f9d1a452e07a0d161a.svg new file mode 100644 index 00000000..a70f38b6 --- /dev/null +++ b/charting_library/bundles/9b10f00f014bc0f9d1a452e07a0d161a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9b5c4a3a01194407c91bf996bba0c1a4.svg b/charting_library/bundles/9b5c4a3a01194407c91bf996bba0c1a4.svg new file mode 100644 index 00000000..911d04eb --- /dev/null +++ b/charting_library/bundles/9b5c4a3a01194407c91bf996bba0c1a4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9b979eba8adb5bda46b48a4d26ccf2de.svg b/charting_library/bundles/9b979eba8adb5bda46b48a4d26ccf2de.svg new file mode 100644 index 00000000..124cc132 --- /dev/null +++ b/charting_library/bundles/9b979eba8adb5bda46b48a4d26ccf2de.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9bd0f4d3395d3c7f81660e6885b07378.svg b/charting_library/bundles/9bd0f4d3395d3c7f81660e6885b07378.svg new file mode 100644 index 00000000..168ae472 --- /dev/null +++ b/charting_library/bundles/9bd0f4d3395d3c7f81660e6885b07378.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9ca15e62dcca53e34d89a4e5dc98522c.svg b/charting_library/bundles/9ca15e62dcca53e34d89a4e5dc98522c.svg new file mode 100644 index 00000000..a1f795ae --- /dev/null +++ b/charting_library/bundles/9ca15e62dcca53e34d89a4e5dc98522c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9cd754df5f0f7f46944a9abd08f279f6.svg b/charting_library/bundles/9cd754df5f0f7f46944a9abd08f279f6.svg new file mode 100644 index 00000000..70b49485 --- /dev/null +++ b/charting_library/bundles/9cd754df5f0f7f46944a9abd08f279f6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9d4c66fc04fd990e8bfd29411fb33650.svg b/charting_library/bundles/9d4c66fc04fd990e8bfd29411fb33650.svg new file mode 100644 index 00000000..5bc4e1b1 --- /dev/null +++ b/charting_library/bundles/9d4c66fc04fd990e8bfd29411fb33650.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9d67227cfad5ec4cdbe9f0cd169856c5.svg b/charting_library/bundles/9d67227cfad5ec4cdbe9f0cd169856c5.svg new file mode 100644 index 00000000..2bea4b7e --- /dev/null +++ b/charting_library/bundles/9d67227cfad5ec4cdbe9f0cd169856c5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9d7b9ed22b710cbeeb852226989e1bc7.svg b/charting_library/bundles/9d7b9ed22b710cbeeb852226989e1bc7.svg new file mode 100644 index 00000000..fc2ae6b4 --- /dev/null +++ b/charting_library/bundles/9d7b9ed22b710cbeeb852226989e1bc7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9e8a00c2e2b16d8ece1e344906002df9.svg b/charting_library/bundles/9e8a00c2e2b16d8ece1e344906002df9.svg new file mode 100644 index 00000000..fd89c2f7 --- /dev/null +++ b/charting_library/bundles/9e8a00c2e2b16d8ece1e344906002df9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9efe6680cb2318c0ff0e818ade988fa1.svg b/charting_library/bundles/9efe6680cb2318c0ff0e818ade988fa1.svg new file mode 100644 index 00000000..2250c042 --- /dev/null +++ b/charting_library/bundles/9efe6680cb2318c0ff0e818ade988fa1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/9f9bbea98fd39966101544a0c55e14e5.svg b/charting_library/bundles/9f9bbea98fd39966101544a0c55e14e5.svg new file mode 100644 index 00000000..b22da834 --- /dev/null +++ b/charting_library/bundles/9f9bbea98fd39966101544a0c55e14e5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a1276c0533823933334715fc20c6742e.svg b/charting_library/bundles/a1276c0533823933334715fc20c6742e.svg new file mode 100644 index 00000000..6c41dd20 --- /dev/null +++ b/charting_library/bundles/a1276c0533823933334715fc20c6742e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a2f98c60137c8c2eb3d3fb96c7767876.svg b/charting_library/bundles/a2f98c60137c8c2eb3d3fb96c7767876.svg new file mode 100644 index 00000000..87873ccc --- /dev/null +++ b/charting_library/bundles/a2f98c60137c8c2eb3d3fb96c7767876.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a54eae35e396c3f9ec2c154c8389933e.svg b/charting_library/bundles/a54eae35e396c3f9ec2c154c8389933e.svg new file mode 100644 index 00000000..473ed15f --- /dev/null +++ b/charting_library/bundles/a54eae35e396c3f9ec2c154c8389933e.svg @@ -0,0 +1 @@ + diff --git a/charting_library/bundles/a61ec3126315febd0304300cb8098ae5.svg b/charting_library/bundles/a61ec3126315febd0304300cb8098ae5.svg new file mode 100644 index 00000000..d215bffa --- /dev/null +++ b/charting_library/bundles/a61ec3126315febd0304300cb8098ae5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a6827773500226a7aa4fb09ce14ad72d.svg b/charting_library/bundles/a6827773500226a7aa4fb09ce14ad72d.svg new file mode 100644 index 00000000..9f4f9781 --- /dev/null +++ b/charting_library/bundles/a6827773500226a7aa4fb09ce14ad72d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a685e425d7c7db0c14c7b97352f4dd4b.svg b/charting_library/bundles/a685e425d7c7db0c14c7b97352f4dd4b.svg new file mode 100644 index 00000000..65485c78 --- /dev/null +++ b/charting_library/bundles/a685e425d7c7db0c14c7b97352f4dd4b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a6b73d85f90f4b55b4d8560f175fb635.svg b/charting_library/bundles/a6b73d85f90f4b55b4d8560f175fb635.svg new file mode 100644 index 00000000..f9b60129 --- /dev/null +++ b/charting_library/bundles/a6b73d85f90f4b55b4d8560f175fb635.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a6ccd18373271b1e45b1ca35f8825c8d.svg b/charting_library/bundles/a6ccd18373271b1e45b1ca35f8825c8d.svg new file mode 100644 index 00000000..e896d9b7 --- /dev/null +++ b/charting_library/bundles/a6ccd18373271b1e45b1ca35f8825c8d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a7de26af1e65164293180f1c5ddcf8de.svg b/charting_library/bundles/a7de26af1e65164293180f1c5ddcf8de.svg new file mode 100644 index 00000000..b875f3a1 --- /dev/null +++ b/charting_library/bundles/a7de26af1e65164293180f1c5ddcf8de.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a824441dbd28500e1d345c0b62aa4220.svg b/charting_library/bundles/a824441dbd28500e1d345c0b62aa4220.svg new file mode 100644 index 00000000..48c5f0ff --- /dev/null +++ b/charting_library/bundles/a824441dbd28500e1d345c0b62aa4220.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a825a6c4082ba46b45131ab0bd16d96c.svg b/charting_library/bundles/a825a6c4082ba46b45131ab0bd16d96c.svg new file mode 100644 index 00000000..658711ed --- /dev/null +++ b/charting_library/bundles/a825a6c4082ba46b45131ab0bd16d96c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a83c7f196f69856c6661350dcd280ca2.svg b/charting_library/bundles/a83c7f196f69856c6661350dcd280ca2.svg new file mode 100644 index 00000000..57522ebf --- /dev/null +++ b/charting_library/bundles/a83c7f196f69856c6661350dcd280ca2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a846e4087642a8ea8bf05187847140c6.svg b/charting_library/bundles/a846e4087642a8ea8bf05187847140c6.svg new file mode 100644 index 00000000..af74470d --- /dev/null +++ b/charting_library/bundles/a846e4087642a8ea8bf05187847140c6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/a86b168bc533484e6274628d63888308.svg b/charting_library/bundles/a86b168bc533484e6274628d63888308.svg new file mode 100644 index 00000000..90abf5b2 --- /dev/null +++ b/charting_library/bundles/a86b168bc533484e6274628d63888308.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ab02a73c827877d701e4dd32eb729ed9.svg b/charting_library/bundles/ab02a73c827877d701e4dd32eb729ed9.svg new file mode 100644 index 00000000..cd0bd2d6 --- /dev/null +++ b/charting_library/bundles/ab02a73c827877d701e4dd32eb729ed9.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ab0aa08606b4a9db4f1d6115cbff1246.svg b/charting_library/bundles/ab0aa08606b4a9db4f1d6115cbff1246.svg new file mode 100644 index 00000000..0b29dcef --- /dev/null +++ b/charting_library/bundles/ab0aa08606b4a9db4f1d6115cbff1246.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ab7157b7c6ad79e8d21141a860febcfa.svg b/charting_library/bundles/ab7157b7c6ad79e8d21141a860febcfa.svg new file mode 100644 index 00000000..1028f8c1 --- /dev/null +++ b/charting_library/bundles/ab7157b7c6ad79e8d21141a860febcfa.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/aca94e827472fdbe847af7982d2e10f1.svg b/charting_library/bundles/aca94e827472fdbe847af7982d2e10f1.svg new file mode 100644 index 00000000..2377c83f --- /dev/null +++ b/charting_library/bundles/aca94e827472fdbe847af7982d2e10f1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/acbf476d27fe229ca0b0c1fc6df67e35.svg b/charting_library/bundles/acbf476d27fe229ca0b0c1fc6df67e35.svg new file mode 100644 index 00000000..5baf7c2b --- /dev/null +++ b/charting_library/bundles/acbf476d27fe229ca0b0c1fc6df67e35.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ad82bf804943b35baebe7dff417a2904.svg b/charting_library/bundles/ad82bf804943b35baebe7dff417a2904.svg new file mode 100644 index 00000000..387f7bfa --- /dev/null +++ b/charting_library/bundles/ad82bf804943b35baebe7dff417a2904.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/add-compare-dialog.2967dfb4ca0b9cbae879.js b/charting_library/bundles/add-compare-dialog.2967dfb4ca0b9cbae879.js new file mode 100644 index 00000000..1fa77824 --- /dev/null +++ b/charting_library/bundles/add-compare-dialog.2967dfb4ca0b9cbae879.js @@ -0,0 +1,10 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[731],{59142:function(e,t){var o,n,r;n=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM", +dot:"dot-5Xd5conM"}},71489:e=>{e.exports={button:"button-MtWCmkmc",bordersVisible:"bordersVisible-MtWCmkmc",selected:"selected-MtWCmkmc"}},72142:e=>{e.exports={footer:"footer-C0oTZgbU"}},35725:e=>{e.exports={wrap:"wrap-IVoYCPDG",header:"header-IVoYCPDG",item:"item-IVoYCPDG"}},74618:e=>{e.exports={label:"label-jkX9S6js"}},61257:e=>{e.exports={scrollable:"scrollable-JgZSADtd",spinnerWrap:"spinnerWrap-JgZSADtd",item:"item-JgZSADtd",heading:"heading-JgZSADtd",checkboxWrap:"checkboxWrap-JgZSADtd",checkbox:"checkbox-JgZSADtd",emptyState:"emptyState-JgZSADtd",image:"image-JgZSADtd",text:"text-JgZSADtd"}},20512:e=>{e.exports={dialog:"dialog-VLZxw4Dg",tablet:"tablet-VLZxw4Dg"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},84413:(e,t,o)=>{"use strict";o.d(t,{CheckboxInput:()=>s});var n=o(59496),r=o(97754),a=o(9745),l=o(49154),c=o(37593),i=o.n(c);function s(e){const t=r(i().box,i()["intent-"+e.intent],{[i().check]:!Boolean(e.indeterminate),[i().dot]:Boolean(e.indeterminate),[i().noOutline]:-1===e.tabIndex}),o=r(i().wrapper,e.className);return n.createElement("span",{className:o,title:e.title},n.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:i().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),n.createElement("span",{className:t},n.createElement(a.Icon,{icon:l,className:i().icon})))}},39362:(e,t,o)=>{"use strict";o.d(t,{SymbolSearchDialogFooter:()=>c});var n=o(59496),r=o(97754),a=o.n(r),l=o(72142);function c(e){const{className:t,children:o}=e;return n.createElement("div",{className:a()(l.footer,t)},o)}},89035:(e,t,o)=>{"use strict";o.r(t),o.d(t,{getCompareDialogRenderer:()=>ie});var n=o(59496),r=o(28353),a=o(32563),l=o(67337),c=o(89453),i=o(97754),s=o.n(i),d=o(9837),u=o.n(d),m=o(88537),p=o(9745),h=o(86656),v=o(77975),f=o(61074),g=o(26843),b=o(45345),S=o(84524),C=o(5648);const w=n.createContext(null);var y=o(70412),x=o(78036);const E=n.createContext(null);var I=o(16396),k=o(41590),M=o(37558),D=o(71489);function N(e){const{theme:t=D,children:o,onClick:r,isSelected:a,areBordersVisible:l,isItemSelected:c,className:i,value:d,name:u}=e;return n.createElement("button",{type:"button",className:s()(i,t.button,a&&t.selected,l&&!a&&!c&&t.bordersVisible),name:u,value:d,onClick:r},o)}function O(e){const{value:t,onClick:o,...r}=e,a=(0,n.useCallback)(e=>o(t,e),[t,o]);return n.createElement(N,{...r,value:String(t),onClick:a})}var T=o(46148),A=o(35725);const _={sameScale:(0, +r.t)("Same % scale"),newPriceScale:(0,r.t)("New price scale"),newPane:(0,r.t)("New pane")};function P(e){const{fullSymbolName:t,isSelected:o,className:a}=e,{isMobile:l,searchRef:i,setMode:d}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:u,selectedCompareOption:m,setHoveredItemId:p,clearInput:h,allowExtendTimeScale:v}=(0,x.useEnsuredContext)(w),{callback:f}=(0,x.useEnsuredContext)(E);return l?n.createElement(M.DrawerManager,null,n.createElement(k.Drawer,{position:"Bottom",onClose:g.bind(null,!1)},n.createElement("div",{className:A.header},(0,r.t)("Add to")),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.SameScale,label:_.sameScale}),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.NewPriceScale,label:_.newPriceScale}),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.NewPane,label:_.newPane}))):n.createElement("div",{className:s()(A.wrap,a),"data-name":"compare-buttons-group"},n.createElement(O,{onClick:b,value:T.CompareOption.SameScale,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.SameScale},_.sameScale),n.createElement(O,{onClick:b,value:T.CompareOption.NewPriceScale,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.NewPriceScale},_.newPriceScale),n.createElement(O,{onClick:b,value:T.CompareOption.NewPane,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.NewPane},_.newPane));function g(e){l&&f&&f(),h&&e&&h(i,d)}function b(e,o){if(o.preventDefault(),u&&t&&void 0!==e){(0,c.getSymbolSearchCompleteOverrideFunction)()(t).then(t=>{u.applyStudy(t,e,v),p(""),g(!0)})}}}function B(e){const{isSelected:t,fullSymbolName:o,onExpandClick:r,actions:l,id:i,isOffset:s}=e,{isMobile:d,toggleExpand:u,searchSpreads:m,searchRef:p,setMode:h,mode:v}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:f,hoveredItemId:g,setHoveredItemId:b,clearInput:I,allowExtendTimeScale:k}=(0,x.useEnsuredContext)(w),[M,D]=(0,n.useState)(!1),N=(0,n.useRef)(null),O=(0,y.useAccurateHover)(N),A=(0,n.useMemo)(()=>({callback:R}),[R]),_=!Boolean(r)&&!Boolean(l),B=i===g;return n.createElement(E.Provider,{value:A},n.createElement(C.SymbolSearchDialogContentItem,{hideMarkedListFlag:"compare"===v,...e,reference:N,onClick:function(t){if(Boolean(r)&&i&&!s)return t.preventDefault(),void u(i);if(!M&&d)return void D(!0);if(m&&e.onClick)return void e.onClick(t);if((a.mobiletouch?B:!M)&&o){(0,c.getSymbolSearchCompleteOverrideFunction)()(o).then(e=>{f.applyStudy(e,T.CompareOption.SameScale,k)}),b(""),I&&I(p,h)}a.mobiletouch&&!d&&!B&&i&&b(i)},hoverComponent:function(){if(!_)return!1;if(d)return M;if(a.mobiletouch)return B;return Boolean(O||t)}()?P:void 0}));function R(){D(!1)}}var R=o(35932),H=o(68974),L=o(86440),z=o(61257);function F(e){const{handleListWidth:t}=(0,m.ensureNotNull)((0,n.useContext)(S.SymbolSearchItemsDialogContext)),{compareModel:o,selectedCompareIndex:a,selectedItemRef:l}=(0,m.ensureNotNull)((0,n.useContext)(w)),c=(0,v.useWatchedValueReadonly)({ +watchedValue:o.isDataReady()}),i=(0,v.useWatchedValueReadonly)({watchedValue:o.studies()}),d=(0,v.useWatchedValueReadonly)({watchedValue:o.highlightedSymbol()}),y=(0,n.useMemo)(()=>i.filter(e=>e.checked),[i]),x=(0,n.useMemo)(()=>i.filter(e=>!e.checked),[i]);return(0,n.useEffect)(()=>(o.chartModel().dataSourceCollectionChanged().subscribe(o,o.handleSourcesChange),()=>o.chartModel().dataSourceCollectionChanged().unsubscribe(o,o.handleSourcesChange)),[o]),n.createElement(u(),{onMeasure:function(e){t(e.width)}},n.createElement(h.TouchScrollContainer,{className:z.scrollable},function(){if(!c)return n.createElement("div",{className:z.spinnerWrap},n.createElement(f.Spinner,null));if(!Boolean(y.length)&&!Boolean(x.length)){const e=b.watchedTheme.value()===g.StdTheme.Dark?H:R;return n.createElement("div",{className:z.emptyState},n.createElement(p.Icon,{className:z.image,icon:e}),n.createElement("div",{className:z.text},(0,r.t)("No symbols here yet — why not add some?")))}return n.createElement(n.Fragment,null,Boolean(y.length)&&n.createElement(n.Fragment,null,n.createElement("div",{className:z.heading},(0,r.t)("Added symbols")),y.map((e,t)=>n.createElement(C.SymbolSearchDialogContentItem,{"data-role":"added-symbol-item",className:z.item,key:e.id,id:e.id,shortName:e.title,title:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,onClick:E.bind(null,e),isHighlighted:e.id===d,isSelected:I(e),itemRef:I(e)?l:void 0,actions:n.createElement("div",{className:z.checkboxWrap},n.createElement(N,{className:z.checkbox,onClick:E.bind(null,e),isSelected:I(e)},n.createElement(p.Icon,{icon:L})))}))),Boolean(x.length)&&n.createElement(n.Fragment,null,n.createElement("div",{className:z.heading},(0,r.t)("Recent symbols")),x.map(e=>n.createElement(B,{"data-role":"recent-symbol-item",className:s()(z.item,e.id===d&&z.highlighted),key:e.id,id:e.id,shortName:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,title:e.title,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,fullSymbolName:e.symbol,isSelected:I(e),itemRef:I(e)?l:void 0}))))}()));function E(e,t){t.preventDefault(),o.removeStudy(e)}function I(e){return i.indexOf(e)===a}}var V=o(56840);class W extends n.PureComponent{constructor(e){super(e),this._selectedItemRef=n.createRef(),this._getContextValue=()=>{const{compareModel:e}=this.props,{selectedCompareOption:t,selectedCompareIndex:o,hoveredItemId:n,allowExtendTimeScale:r}=this.state;return{compareModel:e,selectedCompareOption:t,setSelectedCompareOption:this._setSelectedCompareOption,hoveredItemId:n,setHoveredItemId:this._setHoveredItemId,selectedCompareIndex:o,setSelectedCompareIndex:this._setSelectedCompareIndex,selectedItemRef:this._selectedItemRef,clearInput:this._clearInput,allowExtendTimeScale:r, +toggleAllowExtendTimeScale:this._toggleAllowExtendTimeScale}},this._clearInput=(e,t)=>{e&&e.current&&(e.current.value="",t("compare"))},this._setSelectedCompareOption=e=>{this.setState({selectedCompareOption:e})},this._setHoveredItemId=e=>{this.setState({hoveredItemId:e})},this._setSelectedCompareIndex=(e,t)=>{this.setState({selectedCompareIndex:e},t)},this._toggleAllowExtendTimeScale=()=>{const e=!this.state.allowExtendTimeScale;V.setValue("showAddSymbolDialog.extendCheckboxState",e),this.setState({allowExtendTimeScale:e})},this.state={selectedCompareOption:0,selectedCompareIndex:-1,hoveredItemId:void 0,allowExtendTimeScale:Boolean(V.getBool("showAddSymbolDialog.extendCheckboxState"))}}render(){const{children:e}=this.props;return n.createElement(w.Provider,{value:this._getContextValue()},e)}}var G=o(68335),J=o(85457),Z=o(20512);const j=Object.keys(T.CompareOption).length/2;function X(e){const{openedItems:t,searchRef:o,feedItems:r,selectedIndex:a,toggleExpand:l,onSearchComplete:c,mode:s,setMode:d,setSelectedIndex:u,isMobile:m,isTablet:p,onClose:h,upperCaseEnabled:f}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:g,hoveredItemId:b,setHoveredItemId:C,selectedCompareOption:y,setSelectedCompareOption:E,selectedCompareIndex:I,setSelectedCompareIndex:k,selectedItemRef:M,clearInput:D,allowExtendTimeScale:N}=(0,x.useEnsuredContext)(w),O=(0,v.useWatchedValueReadonly)({watchedValue:g.studies()}),T=r[a],A="compare"===s;return(0,n.useEffect)(()=>{b&&C(""),I&&k(-1)},[s]),n.createElement(J.AdaptivePopupDialog,{...e,className:i(Z.dialog,!m&&p&&Z.tablet),onKeyDown:function(e){var n;const i=(0,G.hashFromEvent)(e),s=A?I:a,u=A?O:r;switch(i){case 38:if(e.preventDefault(),0===s)return;if(-1===s)return void _(0);_(s-1);break;case 40:if(e.preventDefault(),s===u.length-1)return;_(s+1);break;case 37:{const o=B();if(o&&t.has(o))return e.preventDefault(),void l(o);if(!y||o)return;e.preventDefault(),E(y-1);break}case 39:{const o=B();if(o&&!t.has(o))return e.preventDefault(),void l(o);if(y===j-1||o)return;e.preventDefault(),E(y+1);break}case 13:{if(A)return void function(){if(-1===I)return;const e=O[I];e.checked?g.removeStudy(e):g.applyStudy(e.symbol,y,N);k(-1)}();const t=B();if(t)return e.preventDefault(),void l(t);e.preventDefault();const r=null===(n=null==o?void 0:o.current)||void 0===n?void 0:n.value.trim();r&&D&&(c([{symbol:f?r.toUpperCase():r,resolved:!1,compareOption:y,allowExtendTimeScale:N}]),D(o,d));break}case 27:e.preventDefault(),h()}},dataName:"compare-dialog",draggable:!0});function _(e){A?k(e,P):u(e)}function P(){var e;null===(e=M.current)||void 0===e||e.scrollIntoView({block:"nearest"})}function B(){if(!T)return;const{id:e,isOffset:t,onExpandClick:o}=T;return!t&&Boolean(o)&&e?e:void 0}}var Q=o(87995),U=o(24389),Y=o(12045),K=(o(1861),o(22729));class q extends K.DialogRenderer{constructor(e){super(),this._props=e}show(){if(this.visible().value())return;const e=n.createElement(U.QuoteSessionContext.Provider,{value:null},n.createElement(Y.SymbolSearchItemsDialog,{...this._props, +initialMode:this._props.initialMode||"symbolSearch",onClose:()=>this.hide()}));Q.render(e,this._container),this._setVisibility(!0)}hide(){var e,t;Q.unmountComponentAtNode(this._container),this._visibility.setValue(!1),null===(t=(e=this._props).onClose)||void 0===t||t.call(e)}}var $=o(81319),ee=o(69654),te=o(70613);function oe(e){const{searchRef:t,setMode:o}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{currentMode:r}=(0,x.useEnsuredContext)(te.SymbolSearchDialogBodyContext);return(0,n.useEffect)(()=>{const e=t.current;if(e)return e.addEventListener("input",a),()=>{e&&e.removeEventListener("input",a)}},[]),n.createElement(ee.DialogSearch,{...e});function a(){var e,n,a,l;t.current&&r&&("compare"!==r.current||""===(null===(n=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.value)||void 0===n?void 0:n.trim())?"symbolSearch"===r.current&&""===(null===(l=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.value)||void 0===l?void 0:l.trim())&&o("compare"):o("symbolSearch"))}}var ne=o(84413),re=o(39362),ae=o(74618);function le(e){const{allowExtendTimeScale:t,toggleAllowExtendTimeScale:o}=(0,m.ensureNotNull)((0,n.useContext)(w));return n.createElement(re.SymbolSearchDialogFooter,null,n.createElement("label",null,n.createElement(ne.CheckboxInput,{checked:t,value:t?"on":"off",onChange:o}),n.createElement("span",{className:ae.label},(0,r.t)("Allow extend time scale"))))}const ce=l.enabled("secondary_series_extend_time_scale");function ie(e){return new q({wrapper:(t=e,e=>n.createElement(W,{...e,compareModel:t})),dialog:X,contentItem:B,initialScreen:F,searchInput:oe,footer:ce?n.createElement(le):void 0,initialMode:"compare",dialogTitle:(0,r.t)("Compare symbol"),autofocus:!a.mobiletouch,dialogWidth:"fixed",onSearchComplete:t=>{const{compareOption:o,allowExtendTimeScale:n}=t[0];if(void 0!==o){(0,c.getSymbolSearchCompleteOverrideFunction)()(t[0].symbol).then(t=>{e.applyStudy(t,o,n)})}},symbolTypes:(0,$.getAvailableSymbolTypes)(),showSpreadActions:l.enabled("show_spread_operators")&&l.enabled("compare_symbol_search_spread_operators")});var t}},46148:(e,t,o)=>{"use strict";var n;o.d(t,{CompareOption:()=>n}),function(e){e[e.SameScale=0]="SameScale",e[e.NewPriceScale=1]="NewPriceScale",e[e.NewPane=2]="NewPane"}(n||(n={}))},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>r,DrawerContext:()=>a});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>p});var n=o(59496),r=o(88537),a=o(97754),l=o(59142),c=o(43989),i=o(65718),s=o(37558),d=o(49483),u=o(29197),m=o(66998);function p(e){ +const{position:t="Bottom",onClose:o,children:p,className:h,theme:v=m}=e,f=(0,r.ensureNotNull)((0,n.useContext)(s.DrawerContext)),[g,b]=(0,n.useState)(0),S=(0,n.useRef)(null),C=(0,n.useContext)(u.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,r.ensureNotNull)(S.current);return e.focus({preventScroll:!0}),C.subscribe(f,o),0===f.currentDrawer&&(0,c.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,l.disableBodyScroll)(e),b(f.addDrawer()),()=>{C.unsubscribe(f,o);const t=f.removeDrawer();d.CheckMobile.iOS()&&(0,l.enableBodyScroll)(e),0===t&&(0,c.setFixedBodyState)(!1)}},[]),n.createElement(i.Portal,null,n.createElement("div",{className:a(m.wrap,m["position"+t])},g===f.currentDrawer&&n.createElement("div",{className:m.backdrop,onClick:o}),n.createElement("div",{className:a(m.drawer,v.drawer,m["position"+t],h),ref:S,tabIndex:-1,"data-name":e["data-name"]},p)))}},70412:(e,t,o)=>{"use strict";o.d(t,{hoverMouseEventFilter:()=>a,useAccurateHover:()=>l,useHover:()=>r});var n=o(59496);function r(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){a(e)&&t(!0)},onMouseOut:function(e){a(e)&&t(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}function l(e){const[t,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);o(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>s,PopupMenuItem:()=>m});var n=o(59496),r=o(97754),a=o(59064),l=o(51768),c=o(90186),i=o(23576);const s=i;function d(e){const{reference:t,...o}=e,r={...o,ref:t};return n.createElement(e.href?"a":"div",r)}function u(e){e.stopPropagation()}function m(e){const{id:t,role:o,"aria-selected":s,className:m,title:p,labelRowClassName:h,labelClassName:v,shortcut:f,forceShowShortcuts:g,icon:b,isActive:S,isDisabled:C,isHovered:w,appearAsDisabled:y,label:x,link:E,showToolboxOnHover:I,target:k,rel:M,toolbox:D,reference:N,onMouseOut:O,onMouseOver:T,suppressToolboxClick:A=!0,theme:_=i}=e,P=(0,c.filterDataProps)(e),B=(0,n.useRef)(null);return n.createElement(d,{...P,id:t,role:o,"aria-selected":s,className:r(m,_.item,b&&_.withIcon,{[_.isActive]:S,[_.isDisabled]:C||y,[_.hovered]:w}),title:p,href:E,target:k,rel:M,reference:function(e){B.current=e,"function"==typeof N&&N(e);"object"==typeof N&&(N.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:n,onClickArg:r,trackEventObject:c}=e;if(C)return;c&&(0,l.trackEvent)(c.category,c.event,c.label);n&&n(r,t);o||(0,a.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:n}=e;o&&n&&(0,l.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:n}=e;if(1===t.button&&E&&o){let e=o.label;n&&(e+="_mouseWheelClick"),(0,l.trackEvent)(o.category,o.event,e)}},onMouseOver:T,onMouseOut:O},void 0!==b&&n.createElement("div",{className:_.icon,dangerouslySetInnerHTML:{__html:b}}),n.createElement("div",{ +className:r(_.labelRow,h)},n.createElement("div",{className:r(_.label,v)},x)),(void 0!==f||g)&&n.createElement("div",{className:_.shortcut},(R=f)&&R.split("+").join(" + ")),void 0!==D&&n.createElement("div",{onClick:A?u:void 0,className:r(_.toolbox,{[_.showOnHover]:I})},D));var R}},29197:(e,t,o)=>{"use strict";o.d(t,{CloseDelegateContext:()=>a});var n=o(59496),r=o(59064);const a=n.createContext(r.globalCloseDelegate)},86656:(e,t,o)=>{"use strict";o.d(t,{TouchScrollContainer:()=>c});var n=o(59496),r=o(59142),a=o(88537),l=o(49483);function c(e){const{reference:t,children:o,...a}=e,c=(0,n.useRef)(null),s=(0,n.useCallback)(e=>{t&&(t.current=e),l.CheckMobile.iOS()&&(null!==c.current&&(0,r.enableBodyScroll)(c.current),c.current=e,null!==c.current&&(0,r.disableBodyScroll)(c.current,{allowTouchMove:i(c)}))},[t]);return n.createElement("div",{ref:s,...a},o)}function i(e){return t=>{const o=(0,a.ensureNotNull)(e.current),n=document.activeElement;return!o.contains(t)||null!==n&&o.contains(n)&&n.contains(t)}}},49154:e=>{e.exports=''},86440:e=>{e.exports=''},68974:e=>{ +e.exports=''},35932:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/add-compare-dialog.afe8089e0ca57f411f21.js b/charting_library/bundles/add-compare-dialog.afe8089e0ca57f411f21.js deleted file mode 100644 index 0dad510c..00000000 --- a/charting_library/bundles/add-compare-dialog.afe8089e0ca57f411f21.js +++ /dev/null @@ -1,11 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[731],{59142:function(e,t){var n,o,r;o=[t],void 0===(r="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM", -dot:"dot-5Xd5conM"}},71489:e=>{e.exports={button:"button-MtWCmkmc",bordersVisible:"bordersVisible-MtWCmkmc",selected:"selected-MtWCmkmc"}},72142:e=>{e.exports={footer:"footer-C0oTZgbU"}},35725:e=>{e.exports={wrap:"wrap-IVoYCPDG",header:"header-IVoYCPDG",item:"item-IVoYCPDG"}},74618:e=>{e.exports={label:"label-jkX9S6js"}},61257:e=>{e.exports={scrollable:"scrollable-JgZSADtd",spinnerWrap:"spinnerWrap-JgZSADtd",item:"item-JgZSADtd",heading:"heading-JgZSADtd",checkboxWrap:"checkboxWrap-JgZSADtd",checkbox:"checkbox-JgZSADtd",emptyState:"emptyState-JgZSADtd",image:"image-JgZSADtd",text:"text-JgZSADtd"}},20512:e=>{e.exports={dialog:"dialog-VLZxw4Dg",tablet:"tablet-VLZxw4Dg"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var o=n(59496),r=n(97754),a=n(9745),l=n(49154),i=n(37593),s=n.n(i);function c(e){const t=r(s().box,s()["intent-"+e.intent],{[s().check]:!Boolean(e.indeterminate),[s().dot]:Boolean(e.indeterminate),[s().noOutline]:-1===e.tabIndex}),n=r(s().wrapper,e.className);return o.createElement("span",{className:n,title:e.title},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:s().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),o.createElement("span",{className:t},o.createElement(a.Icon,{icon:l,className:s().icon})))}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(59496);const r=o.forwardRef((e,t)=>{const{icon:n="",...r}=e;return o.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const l=a.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-l}return e}})();function r(e,t,n){null!==e&&e.style.setProperty(t,n)}function a(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(a(e,t))}let i=0,s=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++i){const e=a(t,"overflow"),i=l(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(r(n,"right",o()+"px"),t.style.paddingRight=i+o()+"px",s=!0), -t.classList.add("i-no-scroll")}else if(!e&&i>0&&0==--i&&(t.classList.remove("i-no-scroll"),s)){r(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},39362:(e,t,n)=>{"use strict";n.d(t,{SymbolSearchDialogFooter:()=>i});var o=n(59496),r=n(97754),a=n.n(r),l=n(72142);function i(e){const{className:t,children:n}=e;return o.createElement("div",{className:a()(l.footer,t)},n)}},89035:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCompareDialogRenderer:()=>se});var o=n(59496),r=n(28353),a=n(32563),l=n(67337),i=n(89453),s=n(97754),c=n.n(s),d=n(9837),u=n.n(d),m=n(88537),h=n(9745),p=n(86656),v=n(77975),f=n(61074),g=n(26843),b=n(45345),w=n(84524),S=n(5648);const C=o.createContext(null);var y=n(70412),x=n(78036);const E=o.createContext(null);var I=n(16396),M=n(41590),D=n(37558),k=n(71489);function _(e){const{theme:t=k,children:n,onClick:r,isSelected:a,areBordersVisible:l,isItemSelected:i,className:s,value:d,name:u}=e;return o.createElement("button",{type:"button",className:c()(s,t.button,a&&t.selected,l&&!a&&!i&&t.bordersVisible),name:u,value:d,onClick:r},n)}function N(e){const{value:t,onClick:n,...r}=e,a=(0,o.useCallback)(e=>n(t,e),[t,n]);return o.createElement(_,{...r,value:String(t),onClick:a})}var O=n(46148),T=n(35725);const P={sameScale:(0,r.t)("Same % scale"),newPriceScale:(0,r.t)("New price scale"),newPane:(0,r.t)("New pane")};function A(e){const{fullSymbolName:t,isSelected:n,className:a}=e,{isMobile:l,searchRef:s,setMode:d}=(0,x.useEnsuredContext)(w.SymbolSearchItemsDialogContext),{compareModel:u,selectedCompareOption:m,setHoveredItemId:h,clearInput:p,allowExtendTimeScale:v}=(0,x.useEnsuredContext)(C),{callback:f}=(0,x.useEnsuredContext)(E);return l?o.createElement(D.DrawerManager,null,o.createElement(M.Drawer,{position:"Bottom",onClose:g.bind(null,!1)},o.createElement("div",{className:T.header},(0,r.t)("Add to")),o.createElement(I.PopupMenuItem,{className:T.item,onClick:b,onClickArg:O.CompareOption.SameScale,label:P.sameScale}),o.createElement(I.PopupMenuItem,{className:T.item,onClick:b,onClickArg:O.CompareOption.NewPriceScale,label:P.newPriceScale}),o.createElement(I.PopupMenuItem,{className:T.item,onClick:b,onClickArg:O.CompareOption.NewPane,label:P.newPane}))):o.createElement("div",{className:c()(T.wrap,a),"data-name":"compare-buttons-group"},o.createElement(N,{onClick:b,value:O.CompareOption.SameScale,isItemSelected:Boolean(n),isSelected:n&&m===O.CompareOption.SameScale},P.sameScale),o.createElement(N,{onClick:b,value:O.CompareOption.NewPriceScale,isItemSelected:Boolean(n),isSelected:n&&m===O.CompareOption.NewPriceScale},P.newPriceScale),o.createElement(N,{onClick:b,value:O.CompareOption.NewPane,isItemSelected:Boolean(n),isSelected:n&&m===O.CompareOption.NewPane},P.newPane));function g(e){l&&f&&f(),p&&e&&p(s,d)}function b(e,n){if(n.preventDefault(),u&&t&&void 0!==e){(0,i.getSymbolSearchCompleteOverrideFunction)()(t).then(t=>{u.applyStudy(t,e,v),h(""),g(!0)})}}}function B(e){ -const{isSelected:t,fullSymbolName:n,onExpandClick:r,actions:l,id:s,isOffset:c}=e,{isMobile:d,toggleExpand:u,searchSpreads:m,searchRef:h,setMode:p,mode:v}=(0,x.useEnsuredContext)(w.SymbolSearchItemsDialogContext),{compareModel:f,hoveredItemId:g,setHoveredItemId:b,clearInput:I,allowExtendTimeScale:M}=(0,x.useEnsuredContext)(C),[D,k]=(0,o.useState)(!1),_=(0,o.useRef)(null),N=(0,y.useAccurateHover)(_),T=(0,o.useMemo)(()=>({callback:L}),[L]),P=!Boolean(r)&&!Boolean(l),B=s===g;return o.createElement(E.Provider,{value:T},o.createElement(S.SymbolSearchDialogContentItem,{hideMarkedListFlag:"compare"===v,...e,reference:_,onClick:function(t){if(Boolean(r)&&s&&!c)return t.preventDefault(),void u(s);if(!D&&d)return void k(!0);if(m&&e.onClick)return void e.onClick(t);if((a.mobiletouch?B:!D)&&n){(0,i.getSymbolSearchCompleteOverrideFunction)()(n).then(e=>{f.applyStudy(e,O.CompareOption.SameScale,M)}),b(""),I&&I(h,p)}a.mobiletouch&&!d&&!B&&s&&b(s)},hoverComponent:function(){if(!P)return!1;if(d)return D;if(a.mobiletouch)return B;return Boolean(N||t)}()?A:void 0}));function L(){k(!1)}}var L=n(35932),R=n(68974),H=n(86440),z=n(61257);function W(e){const{handleListWidth:t}=(0,m.ensureNotNull)((0,o.useContext)(w.SymbolSearchItemsDialogContext)),{compareModel:n,selectedCompareIndex:a,selectedItemRef:l}=(0,m.ensureNotNull)((0,o.useContext)(C)),i=(0,v.useWatchedValueReadonly)({watchedValue:n.isDataReady()}),s=(0,v.useWatchedValueReadonly)({watchedValue:n.studies()}),d=(0,v.useWatchedValueReadonly)({watchedValue:n.highlightedSymbol()}),y=(0,o.useMemo)(()=>s.filter(e=>e.checked),[s]),x=(0,o.useMemo)(()=>s.filter(e=>!e.checked),[s]);return(0,o.useEffect)(()=>(n.chartModel().dataSourceCollectionChanged().subscribe(n,n.handleSourcesChange),()=>n.chartModel().dataSourceCollectionChanged().unsubscribe(n,n.handleSourcesChange)),[n]),o.createElement(u(),{onMeasure:function(e){t(e.width)}},o.createElement(p.TouchScrollContainer,{className:z.scrollable},function(){if(!i)return o.createElement("div",{className:z.spinnerWrap},o.createElement(f.Spinner,null));if(!Boolean(y.length)&&!Boolean(x.length)){const e=b.watchedTheme.value()===g.StdTheme.Dark?R:L;return o.createElement("div",{className:z.emptyState},o.createElement(h.Icon,{className:z.image,icon:e}),o.createElement("div",{className:z.text},(0,r.t)("No symbols here yet — why not add some?")))}return o.createElement(o.Fragment,null,Boolean(y.length)&&o.createElement(o.Fragment,null,o.createElement("div",{className:z.heading},(0,r.t)("Added symbols")),y.map((e,t)=>o.createElement(S.SymbolSearchDialogContentItem,{"data-role":"added-symbol-item",className:z.item,key:e.id,id:e.id,shortName:e.title,title:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,onClick:E.bind(null,e),isHighlighted:e.id===d,isSelected:I(e),itemRef:I(e)?l:void 0,actions:o.createElement("div",{className:z.checkboxWrap},o.createElement(_,{ -className:z.checkbox,onClick:E.bind(null,e),isSelected:I(e)},o.createElement(h.Icon,{icon:H})))}))),Boolean(x.length)&&o.createElement(o.Fragment,null,o.createElement("div",{className:z.heading},(0,r.t)("Recent symbols")),x.map(e=>o.createElement(B,{"data-role":"recent-symbol-item",className:c()(z.item,e.id===d&&z.highlighted),key:e.id,id:e.id,shortName:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,title:e.title,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,fullSymbolName:e.symbol,isSelected:I(e),itemRef:I(e)?l:void 0}))))}()));function E(e,t){t.preventDefault(),n.removeStudy(e)}function I(e){return s.indexOf(e)===a}}var F=n(56840);class V extends o.PureComponent{constructor(e){super(e),this._selectedItemRef=o.createRef(),this._getContextValue=()=>{const{compareModel:e}=this.props,{selectedCompareOption:t,selectedCompareIndex:n,hoveredItemId:o,allowExtendTimeScale:r}=this.state;return{compareModel:e,selectedCompareOption:t,setSelectedCompareOption:this._setSelectedCompareOption,hoveredItemId:o,setHoveredItemId:this._setHoveredItemId,selectedCompareIndex:n,setSelectedCompareIndex:this._setSelectedCompareIndex,selectedItemRef:this._selectedItemRef,clearInput:this._clearInput,allowExtendTimeScale:r,toggleAllowExtendTimeScale:this._toggleAllowExtendTimeScale}},this._clearInput=(e,t)=>{e&&e.current&&(e.current.value="",t("compare"))},this._setSelectedCompareOption=e=>{this.setState({selectedCompareOption:e})},this._setHoveredItemId=e=>{this.setState({hoveredItemId:e})},this._setSelectedCompareIndex=(e,t)=>{this.setState({selectedCompareIndex:e},t)},this._toggleAllowExtendTimeScale=()=>{const e=!this.state.allowExtendTimeScale;F.setValue("showAddSymbolDialog.extendCheckboxState",e),this.setState({allowExtendTimeScale:e})},this.state={selectedCompareOption:0,selectedCompareIndex:-1,hoveredItemId:void 0,allowExtendTimeScale:Boolean(F.getBool("showAddSymbolDialog.extendCheckboxState"))}}render(){const{children:e}=this.props;return o.createElement(C.Provider,{value:this._getContextValue()},e)}}var G=n(68335),J=n(85457),Z=n(20512);const q=Object.keys(O.CompareOption).length/2;function U(e){const{openedItems:t,searchRef:n,feedItems:r,selectedIndex:a,toggleExpand:l,onSearchComplete:i,mode:c,setMode:d,setSelectedIndex:u,isMobile:m,isTablet:h,onClose:p,upperCaseEnabled:f}=(0,x.useEnsuredContext)(w.SymbolSearchItemsDialogContext),{compareModel:g,hoveredItemId:b,setHoveredItemId:S,selectedCompareOption:y,setSelectedCompareOption:E,selectedCompareIndex:I,setSelectedCompareIndex:M,selectedItemRef:D,clearInput:k,allowExtendTimeScale:_}=(0,x.useEnsuredContext)(C),N=(0,v.useWatchedValueReadonly)({watchedValue:g.studies()}),O=r[a],T="compare"===c;return(0,o.useEffect)(()=>{b&&S(""),I&&M(-1)},[c]),o.createElement(J.AdaptivePopupDialog,{...e,className:s(Z.dialog,!m&&h&&Z.tablet),onKeyDown:function(e){var o;const s=(0,G.hashFromEvent)(e),c=T?I:a,u=T?N:r;switch(s){case 38:if(e.preventDefault(),0===c)return -;if(-1===c)return void P(0);P(c-1);break;case 40:if(e.preventDefault(),c===u.length-1)return;P(c+1);break;case 37:{const n=B();if(n&&t.has(n))return e.preventDefault(),void l(n);if(!y||n)return;e.preventDefault(),E(y-1);break}case 39:{const n=B();if(n&&!t.has(n))return e.preventDefault(),void l(n);if(y===q-1||n)return;e.preventDefault(),E(y+1);break}case 13:{if(T)return void function(){if(-1===I)return;const e=N[I];e.checked?g.removeStudy(e):g.applyStudy(e.symbol,y,_);M(-1)}();const t=B();if(t)return e.preventDefault(),void l(t);e.preventDefault();const r=null===(o=null==n?void 0:n.current)||void 0===o?void 0:o.value.trim();r&&k&&(i([{symbol:f?r.toUpperCase():r,resolved:!1,compareOption:y,allowExtendTimeScale:_}]),k(n,d));break}case 27:e.preventDefault(),p()}},dataName:"compare-dialog",draggable:!0});function P(e){T?M(e,A):u(e)}function A(){var e;null===(e=D.current)||void 0===e||e.scrollIntoView({block:"nearest"})}function B(){if(!O)return;const{id:e,isOffset:t,onExpandClick:n}=O;return!t&&Boolean(n)&&e?e:void 0}}var j=n(87995),X=n(24389),Q=n(12045),Y=(n(1861),n(22729));class K extends Y.DialogRenderer{constructor(e){super(),this._props=e}show(){if(this.visible().value())return;const e=o.createElement(X.QuoteSessionContext.Provider,{value:null},o.createElement(Q.SymbolSearchItemsDialog,{...this._props,initialMode:this._props.initialMode||"symbolSearch",onClose:()=>this.hide()}));j.render(e,this._container),this._setVisibility(!0)}hide(){var e,t;j.unmountComponentAtNode(this._container),this._visibility.setValue(!1),null===(t=(e=this._props).onClose)||void 0===t||t.call(e)}}var $=n(81319),ee=n(69654),te=n(70613);function ne(e){const{searchRef:t,setMode:n}=(0,x.useEnsuredContext)(w.SymbolSearchItemsDialogContext),{currentMode:r}=(0,x.useEnsuredContext)(te.SymbolSearchDialogBodyContext);return(0,o.useEffect)(()=>{const e=t.current;if(e)return e.addEventListener("input",a),()=>{e&&e.removeEventListener("input",a)}},[]),o.createElement(ee.DialogSearch,{...e});function a(){var e,o,a,l;t.current&&r&&("compare"!==r.current||""===(null===(o=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.value)||void 0===o?void 0:o.trim())?"symbolSearch"===r.current&&""===(null===(l=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.value)||void 0===l?void 0:l.trim())&&n("compare"):n("symbolSearch"))}}var oe=n(84413),re=n(39362),ae=n(74618);function le(e){const{allowExtendTimeScale:t,toggleAllowExtendTimeScale:n}=(0,m.ensureNotNull)((0,o.useContext)(C));return o.createElement(re.SymbolSearchDialogFooter,null,o.createElement("label",null,o.createElement(oe.CheckboxInput,{checked:t,value:t?"on":"off",onChange:n}),o.createElement("span",{className:ae.label},(0,r.t)("Allow extend time scale"))))}const ie=l.enabled("secondary_series_extend_time_scale");function se(e){return new K({wrapper:(t=e,e=>o.createElement(V,{...e,compareModel:t})),dialog:U,contentItem:B,initialScreen:W,searchInput:ne,footer:ie?o.createElement(le):void 0,initialMode:"compare",dialogTitle:(0,r.t)("Compare symbol"),autofocus:!a.mobiletouch,dialogWidth:"fixed", -onSearchComplete:t=>{const{compareOption:n,allowExtendTimeScale:o}=t[0];if(void 0!==n){(0,i.getSymbolSearchCompleteOverrideFunction)()(t[0].symbol).then(t=>{e.applyStudy(t,n,o)})}},symbolTypes:(0,$.getAvailableSymbolTypes)(),showSpreadActions:l.enabled("show_spread_operators")&&l.enabled("compare_symbol_search_spread_operators")});var t}},46148:(e,t,n)=>{"use strict";var o;n.d(t,{CompareOption:()=>o}),function(e){e[e.SameScale=0]="SameScale",e[e.NewPriceScale=1]="NewPriceScale",e[e.NewPane=2]="NewPane"}(o||(o={}))},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>r,DrawerContext:()=>a});var o=n(59496);class r extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>h});var o=n(59496),r=n(88537),a=n(97754),l=n(59142),i=n(99054),s=n(65718),c=n(37558),d=n(49483),u=n(29197),m=n(66998);function h(e){const{position:t="Bottom",onClose:n,children:h,className:p,theme:v=m}=e,f=(0,r.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[g,b]=(0,o.useState)(0),w=(0,o.useRef)(null),S=(0,o.useContext)(u.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,r.ensureNotNull)(w.current);return e.focus({preventScroll:!0}),S.subscribe(f,n),0===f.currentDrawer&&(0,i.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,l.disableBodyScroll)(e),b(f.addDrawer()),()=>{S.unsubscribe(f,n);const t=f.removeDrawer();d.CheckMobile.iOS()&&(0,l.enableBodyScroll)(e),0===t&&(0,i.setFixedBodyState)(!1)}},[]),o.createElement(s.Portal,null,o.createElement("div",{className:a(m.wrap,m["position"+t])},g===f.currentDrawer&&o.createElement("div",{className:m.backdrop,onClick:n}),o.createElement("div",{className:a(m.drawer,v.drawer,m["position"+t],p),ref:w,tabIndex:-1,"data-name":e["data-name"]},h)))}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>a,useAccurateHover:()=>l,useHover:()=>r});var o=n(59496);function r(){const[e,t]=(0,o.useState)(!1);return[e,{onMouseOver:function(e){a(e)&&t(!0)},onMouseOut:function(e){a(e)&&t(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}function l(e){const[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const t=t=>{if(null===e.current)return;const o=e.current.contains(t.target);n(o)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>a});var o=n(59496),r=n(39640);function a(e){const{click:t,mouseDown:n,touchEnd:a,touchStart:l,handler:i,reference:s,ownerDocument:c=document}=e,d=(0,o.useRef)(null),u=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n, -touchEnd:a,touchStart:l},o=s?s.current:d.current;return(0,r.addOutsideEventListener)(u.current,o,i,c,e)},[t,n,a,l,i]),s||d}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var o=n(59496);class r extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>a,getRootOverlapManager:()=>i});var o=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class a{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const l=new WeakMap;function i(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(l.get(t));{const t=new a(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return l.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}}, -16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>m});var o=n(59496),r=n(97754),a=n(59064),l=n(51768),i=n(90186),s=n(23576);const c=s;function d(e){const{reference:t,...n}=e,r={...n,ref:t};return o.createElement(e.href?"a":"div",r)}function u(e){e.stopPropagation()}function m(e){const{id:t,role:n,"aria-selected":c,className:m,title:h,labelRowClassName:p,labelClassName:v,shortcut:f,forceShowShortcuts:g,icon:b,isActive:w,isDisabled:S,isHovered:C,appearAsDisabled:y,label:x,link:E,showToolboxOnHover:I,target:M,rel:D,toolbox:k,reference:_,onMouseOut:N,onMouseOver:O,suppressToolboxClick:T=!0,theme:P=s}=e,A=(0,i.filterDataProps)(e),B=(0,o.useRef)(null);return o.createElement(d,{...A,id:t,role:n,"aria-selected":c,className:r(m,P.item,b&&P.withIcon,{[P.isActive]:w,[P.isDisabled]:S||y,[P.hovered]:C}),title:h,href:E,target:M,rel:D,reference:function(e){B.current=e,"function"==typeof _&&_(e);"object"==typeof _&&(_.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:r,trackEventObject:i}=e;if(S)return;i&&(0,l.trackEvent)(i.category,i.event,i.label);o&&o(r,t);n||(0,a.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&(0,l.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:o}=e;if(1===t.button&&E&&n){let e=n.label;o&&(e+="_mouseWheelClick"),(0,l.trackEvent)(n.category,n.event,e)}},onMouseOver:O,onMouseOut:N},void 0!==b&&o.createElement("div",{className:P.icon,dangerouslySetInnerHTML:{__html:b}}),o.createElement("div",{className:r(P.labelRow,p)},o.createElement("div",{className:r(P.label,v)},x)),(void 0!==f||g)&&o.createElement("div",{className:P.shortcut},(L=f)&&L.split("+").join(" + ")),void 0!==k&&o.createElement("div",{onClick:T?u:void 0,className:r(P.toolbox,{[P.showOnHover]:I})},k));var L}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>a});var o=n(59496),r=n(59064);const a=o.createContext(r.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>s,PortalContext:()=>c});var o=n(59496),r=n(87995),a=n(9423),l=n(88216),i=n(50655);class s extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,a.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(o.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,l.getRootOverlapManager)():this.context}}s.contextType=i.SlotContext;const c=o.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>a});var o=n(59496);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed", -zIndex:150,left:0,top:0},ref:this.props.reference})}}const a=o.createContext(null)},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(59496),r=n(59142),a=n(88537),l=n(49483);function i(e){const{reference:t,children:n,...a}=e,i=(0,o.useRef)(null),c=(0,o.useCallback)(e=>{t&&(t.current=e),l.CheckMobile.iOS()&&(null!==i.current&&(0,r.enableBodyScroll)(i.current),i.current=e,null!==i.current&&(0,r.disableBodyScroll)(i.current,{allowTouchMove:s(i)}))},[t]);return o.createElement("div",{ref:c,...a},n)}function s(e){return t=>{const n=(0,a.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},49154:e=>{e.exports=''},86440:e=>{e.exports=''},68974:e=>{e.exports=''},35932:e=>{ -e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/add0043e9139708b7ec71b15a1cfdf4c.svg b/charting_library/bundles/add0043e9139708b7ec71b15a1cfdf4c.svg new file mode 100644 index 00000000..07badc5b --- /dev/null +++ b/charting_library/bundles/add0043e9139708b7ec71b15a1cfdf4c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/af2c0f390cd0b5ef8d2bd4ba4e521a34.svg b/charting_library/bundles/af2c0f390cd0b5ef8d2bd4ba4e521a34.svg new file mode 100644 index 00000000..c440bb6a --- /dev/null +++ b/charting_library/bundles/af2c0f390cd0b5ef8d2bd4ba4e521a34.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/af585e7389cfe3a827192dbe445b4935.svg b/charting_library/bundles/af585e7389cfe3a827192dbe445b4935.svg new file mode 100644 index 00000000..7d68bda2 --- /dev/null +++ b/charting_library/bundles/af585e7389cfe3a827192dbe445b4935.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/aff9c5fc514db3e7e69d496ce27c6a19.svg b/charting_library/bundles/aff9c5fc514db3e7e69d496ce27c6a19.svg new file mode 100644 index 00000000..08eb943b --- /dev/null +++ b/charting_library/bundles/aff9c5fc514db3e7e69d496ce27c6a19.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/alarm_clock.48d3df0afe4d4981523b8a12e4e25f92.mp3 b/charting_library/bundles/alarm_clock.48d3df0afe4d4981523b8a12e4e25f92.mp3 new file mode 100644 index 00000000..8ee39eba Binary files /dev/null and b/charting_library/bundles/alarm_clock.48d3df0afe4d4981523b8a12e4e25f92.mp3 differ diff --git a/charting_library/bundles/alert-dialog.42e245eb82504c55c632.js b/charting_library/bundles/alert-dialog.42e245eb82504c55c632.js new file mode 100644 index 00000000..f0d09a2b --- /dev/null +++ b/charting_library/bundles/alert-dialog.42e245eb82504c55c632.js @@ -0,0 +1,25 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2465],{39227:()=>{},89213:()=>{},69423:()=>{},6891:()=>{},56912:()=>{},73168:()=>{},74437:()=>{},66927:t=>{t.exports={clock:"clock-LMkaUMzm",header:"header-LMkaUMzm",number:"number-LMkaUMzm",active:"active-LMkaUMzm",body:"body-LMkaUMzm",clockFace:"clockFace-LMkaUMzm",face:"face-LMkaUMzm",inner:"inner-LMkaUMzm",hand:"hand-LMkaUMzm",knob:"knob-LMkaUMzm",centerDot:"centerDot-LMkaUMzm"}},9745:(t,e,s)=>{"use strict";s.d(e,{Icon:()=>i});var n=s(59496);const i=n.forwardRef((t,e)=>{const{icon:s="",...i}=t;return n.createElement("span",{...i,ref:e,dangerouslySetInnerHTML:{__html:s}})})},1787:(t,e,s)=>{"use strict";s.d(e,{solutionIds:()=>n});const n=JSON.parse('{"EXTENDED_HOURS":43000502023,"PRE_MARKET":43000502023,"POST_MARKET":43000502023,"SPREAD_CHARTS":43000502298,"ALERTS":43000520149,"ALERT_ON_STRATEGY":43000481368,"ALERT_WEBHOOK":43000529348,"ALERT_DESCRIPTION_PLACEHOLDER":43000531021,"VOLUME_PROFILE":43000502040,"VOLUME_PROFILE_INDICATOR":43000557450,"RENKO":43000502284,"KAGI":43000502272,"LINE_BREAK":43000502273,"PNF":43000502276,"FINANCIAL_DATA":43000543506,"BROKER_RATING":43000542490,"CRYPTO_MARKET_CAP":43000540941,"CRYPTO_PAYMENT":43000485536,"ALERT_ON_SPREAD":43000478406,"ALERT_ON_CUSTOM_SCRIPT":43000478415,"ALERT_FUNCTION":43000597494,"SMS_VERIFICATION":43000553429,"MAGNET_MODE":43000537270,"PINE_CANNOT_DETERMINE":43000587849,"PRIVACY_SETTINGS":43000548335,"PUBLICATION_TYPE":43000609497,"SCRIPT_ACCESS":43000482573,"MEMORY_LIMITS_EXCEEDED":43000590233,"FREE_USER_FAQS":43000590947,"STRATEGY_UNREALISTIC_RESULTS":43000481029,"STRATEGY_FUTURE_DATA":43000614705,"STREAM_RULES":43000591348,"HOW_TO_USE_PAPER":43000516466,"HOW_TO_USE_CQG":43000516372,"HOW_TO_USE_OANDA":43000516375,"HOW_TO_USE_FOREXCOM":43000516374,"FAVORITE_IDEA":43000555216,"YOUTUBE_ERROR":43000612153,"AUTHORS_INSTRUCTIONS_PUBCLICATION":43000549951,"AUTHORS_INSTRUCTIONS_EDIT":43000614618,"SCRIPT_INSTRUCTIONS":43000482573,"BAR_REPLAY_UNAVAILABILITY":43000475470,"WHAT_IS_CBOE_BZX_EXCHANGE":43000473924,"GOPRO_UPGRADE_DESCRIPTION":43000473324,"GOPRO_DOWNGRADE_DESCRIPTION":43000485437,"BROKERAGE_REVIEWS":43000591351,"CHANGE_SUBSCRIPTION":43000635806,"PINE_LIBRARY_INFO":43000638371,"HOW_TO_CREATE_A_STREAM":43000560174,"HOW_DO_I_UPDATE_DESKTOP_APP":43000647779,"TECHNICAL_RATINGS":43000614331,"BACKTESTING_WIDGET":43000561856,"DEEP_BACKTESTING_WIDGET":43000670566,"DEEP_BACKTESTING":43000666199,"DEEP_BACKTESTING_AVAILABLE_DATA":43000668210}')},91426:(t,e,s)=>{"use strict";s.r(e),s.d(e,{AlertDialog:()=>Wt});s(46322);var n=s(97754),i=s.n(n),o=s(43370),a=s(4889),r=s(28353),l=(s(8250),s(42845),s(78754),s(22358),s(77544)),c=s(16256),d=s(52714),h=s.n(d);class p{constructor(t,e){this._src=t,this._state=new(h())(!1),e&&(this._selected=!0)}play(){c.play(this._src.path),this._state.setValue(!0),c.onStopped(this._src.path,()=>this._state.setValue(!1))}stop(){c.stop(this._src.path),this._state.setValue(!1)}toggle(){c.isPlaying(this._src.path)?this.stop():this.play()}get selected(){return!!this._selected} +get value(){return this._src.path}get caption(){return this._src.title}get state(){return this._state}}var u=s(72781);s(74437);var _=s(23127);const m="yes",v="close";class g{constructor({label:t,name:e,maxLength:s,error:n=""}){this._name=e,this._field=document.createElement("label"),this._field.classList.add("tv-rename-chart-dialog__field");const i=document.createElement("span");i.classList.add("tv-rename-chart-dialog__label"),i.innerHTML=t,this._inputElement=document.createElement("input"),this._inputElement.classList.add("tv-control-input"),this._inputElement.setAttribute("type","text"),this._inputElement.setAttribute("name",e),this._inputElement.setAttribute("maxlength",s),this._field.appendChild(i),this._field.appendChild(this._inputElement),this._error=n}appendTo(t){t.appendChild(this._field)}focus(){this._inputElement.focus()}select(){this.focus(),this._inputElement.select()}set value(t){this._inputElement.value=t}get value(){return this._inputElement.value}get name(){return this._name}get valid(){return!!this._inputElement.value.trim()}set error(t){this._error=t}get error(){return this._error}}class f extends g{constructor(t){const e=t.regExp;delete t.regExp,super(t),this._regExp=e}get valid(){return this._regExp.test(this.value)}}var b=s(76861),C=s(23127);class w extends class{constructor({fields:t,confirm:e,manager:s,title:n="",destroyOnClose:i=!0,modal:o=!1}={}){this._form=document.createElement("div"),this._fields=t,this._appendFieldsToForm(),this._title=n,this._destroyOnClose=i,this._modal=o,this._manager=s,this._isConfirmDialogOpened=!1,e&&(this._needCheckConfirm=!0,this._shouldShowConfirm=e.shouldShowDialog,this._getConfirmMessage=e.getMessage)}setField(t,e){this._fields.find(e=>e.name===t).value=e}show(){const t=this._createDialog();return new Promise(e=>{t.then(t=>{t.on("action:submit",t=>this._onSubmit(t,e)),t.open(),t.on("beforeClose",this._unmountFields.bind(this)),this._fields[0].select()})})}_appendFieldsToForm(){this._fields.forEach(t=>{t.appendTo(this._form)})}async _createDialog(){const{createDialog:t}=await Promise.all([s.e(509),s.e(3118),s.e(1729),s.e(6708),s.e(1536),s.e(7678),s.e(4834)]).then(s.bind(s,89725));return t({type:this._modal?"modal":"popup",title:this._title,content:_(this._form),actionsWrapTemplate:'
',width:470,destroyOnClose:this._destroyOnClose,manager:this._manager,isClickOutFn:()=>{if(this._isConfirmDialogOpened)return!1},actions:[{name:"submit",type:"primary",text:(0,r.t)("Save"),key:13,addClass:"js-submit-button"},{name:"cancel",type:"default",text:(0,r.t)("Cancel"),method:"close",addClass:"js-cancel-button"}]})}_onSubmit(t,e){const s=this._validate();if(s)t.error(s.error),s.focus();else{if(!this._needCheckConfirm)return e(this._collectValues(),t),void t.close();Promise.resolve(this._shouldShowConfirm(this._collectValues())).then(s=>{if(!s)return e(this._collectValues(),t),void t.close();this._showConfirmDialog().then(s=>{s===v&&(t.focus(),this._fields[0].focus()), +s===m&&(e(this._collectValues(),t),t.close())})})}}_showConfirmDialog(){return new Promise(t=>{Promise.resolve(this._getConfirmMessage(this._collectValues())).then(e=>{this._isConfirmDialogOpened=!0,async function(t){const e={actions:[{key:13,name:"yes",text:r.t("Yes"),type:"success"},{method:"close",name:"no",text:r.t("No"),type:"default"}],actionsWrapTemplate:'
',content:r.t("Are you sure?"),contentWrapTemplate:'

',destroyOnClose:!0,title:r.t("Confirmation"),width:400,dataset:{"dialog-type":"confirm-dialog"}},{createDialog:n}=await Promise.all([s.e(509),s.e(3118),s.e(1729),s.e(6708),s.e(1536),s.e(7678),s.e(4834)]).then(s.bind(s,89725));return n({...e,...t})}({type:"modal",content:document.createTextNode(e),manager:this._manager}).then(e=>{e.on("action:yes",e=>{t(m),e.close()}),e.on("afterClose",()=>{t(v),this._isConfirmDialogOpened=!1}),e.open()})})})}_validate(){return this._fields.find(t=>!t.valid)}_collectValues(){return this._fields.reduce((t,e)=>(t[e.name]=e.value,t),{})}_unmountFields(){this._fields.forEach(t=>{t.unmount&&t.unmount()})}}{constructor({paramName:t,dialogTitle:e="",initialValue:s="",fieldLabel:n="",maxLength:i=null,validateRegExp:o=null,error:a="",destroyOnClose:r=!0,modal:l=!1}={}){const c={label:n,name:t,maxLength:i,error:a};let d;o?(c.regExp=o,d=f):d=g;super({fields:[new d(c)],title:e,destroyOnClose:r,modal:l}),s&&(this.value=s),this._paramName=t}_onSubmit(t,e){if(this._isLoading(t))return;const s=this._validate();if(s)this._showError(t,s);else{this._setLoading(t);const s=this._collectValues()[this._paramName];this._updateValue(s).then(n=>{t.close(),n&&n.email_changed?(0,u.createNoticeDialog)({type:"modal",title:(0,r.t)("Confirm your email"),content:(0,r.t)("Check {changed_email} to confirm your email address. You won't get any notifications until you confirm it.").format({changed_email:s})}).then((function(t){t.open(),t.on("destroy",()=>{e(n)})})):e(n)}).catch(e=>{this._setLoading(t,"stop"),this._showError(t,this._fields[0],e&&e.message||(0,r.t)("Unknown Error"))})}}_isLoading(t){return t.$actions.find(".js-submit-button").is(".i-loading")}_setLoading(t,e="start"){t.$actions.find(".js-submit-button").tvButtonLoader(e)}_updateValue(t){return new Promise((e,s)=>{!function(t){if(!t||!t.name||void 0===t.value)return void console.warn("Required options.name and options.value");function e(t){var e=Array.prototype.slice.call(arguments);e.shift(),"function"==typeof t&&t.apply(this,e)}function s(s){403===s.status?e(t.onError,(0,r.t)("Please, try to reload page to edit user data")):e(t.onError,(0,b.isProd)()?(0,r.t)("Sorry, an error has occurred"):s.responseText)}if("sms_email"===t.name&&""===t.value.trim())return s({}),void e(t.onComplete);var n={};n[t.name]=t.value;let i="/accounts/change_status/";"email"===t.name&&(i="/api/v1/users/change-email/"),C.post(i,n,(function(s){ +!s.errors||C.isEmptyObject(s.errors)?("email"!==t.name&&(user[t.name]=s[t.name]),e(t.onSuccess,s)):"email"===t.name?e(t.onError,Object.values(s.errors)):e(t.onError,s.errors[t.name])})).error((function(t){s(t)})).always((function(){e(t.onComplete)}))}({name:this._paramName,value:t,onSuccess:e,onError:t=>s(new Error((t||[]).join(" ")))})})}_showError(t,e,s){t.error(s||e.error),e.focus()}}var E=s(2872),y=s.n(E),S=s(62867),x=s(55306),k=s(56840);var T=s(33550),I=s(85459),M=s.n(I),$=s(55532),O=s.n($),D=s(59496),P=s(87995),N=s(27404),A=s(88537),R=s(66927);class j extends D.PureComponent{constructor(){super(...arguments),this._renderNumber=(t,e)=>{const s=n(R.number,{[R.active]:t===this.props.activeNumber,[R.inner]:this.props.isInner}),i=this.props.format?this.props.format(t):t.toString();return D.createElement("span",{key:t,className:s,style:this._numberStyle(this.props.radius-this.props.spacing,e),"data-value":i},D.createElement("span",null,i))}}render(){return D.createElement("div",{className:R.face,style:this._faceStyle(),onMouseDown:this.props.onMouseDown,onTouchStart:this.props.onTouchStart},this.props.numbers.map(this._renderNumber))}_faceStyle(){return{height:2*this.props.radius,width:2*this.props.radius}}_numberStyle(t,e){const s=Math.PI/180*360/12*e;return{left:t+t*Math.sin(s)+this.props.spacing,top:t-t*Math.cos(s)+this.props.spacing}}}class L extends D.PureComponent{constructor(t){super(t),this._onMouseMove=t=>{this._move(W(t))},this._onTouchMove=t=>{this._move(z(t))},this._onMouseUp=()=>{document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),this._endMove()},this._onTouchEnd=t=>{document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd),this._endMove(t)}}componentWillUnmount(){document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd)}render(){const t={height:this.props.length,transform:`rotate(${this.props.angle}deg)`};return D.createElement("div",{className:R.hand,style:t},D.createElement("span",{className:R.knob}))}mouseStart(t){document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),this._move(W(t.nativeEvent))}touchStart(t){document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),this._move(z(t.nativeEvent)),t.stopPropagation()}_endMove(t){this.props.onMoveEnd&&this.props.onMoveEnd(t)}_move(t){const e=this._trimAngleToValue(this._positionToAngle(t)),s=this._getPositionRadius(t);!this.props.onMove||isNaN(e)||isNaN(s)||this.props.onMove(360===e?0:e,s)}_trimAngleToValue(t){return this.props.step*Math.round(t/this.props.step)}_positionToAngle(t){return function(t,e,s,n){const i=function(t,e,s,n){return 180*(Math.atan2(n-e,s-t)+Math.PI/2)/Math.PI}(t,e,s,n);return i<0?360+i:i +}(this.props.center.x,this.props.center.y,t.x,t.y)}_getPositionRadius(t){const e=this.props.center.x-t.x,s=this.props.center.y-t.y;return Math.sqrt(e*e+s*s)}}function W(t){return{x:t.pageX-window.scrollX,y:t.pageY-window.scrollY}}function z(t){return{x:t.touches[0].pageX-window.scrollX,y:t.touches[0].pageY-window.scrollY}}var F=s(23935);const V=[0,...(0,F.range)(13,24)],H=[12,...(0,F.range)(1,12)];class U extends D.PureComponent{constructor(t){super(t),this._onMouseDown=t=>{this._hand.mouseStart(t)},this._onTouchStart=t=>{this._hand.touchStart(t)},this._onHandMove=(t,e)=>{const s=e{this.props.onChange(this._valueFromDegrees(t))}):this.props.onChange(this._valueFromDegrees(t))},this._onHandMoveEnd=()=>{this.props.onSelect&&this.props.onSelect()},this.state={isInner:this.props.selected>0&&this.props.selected<=12}}render(){const{center:t,radius:e,spacing:s,selected:n}=this.props;return D.createElement("div",null,D.createElement(j,{radius:e,spacing:s,numbers:V,activeNumber:n,format:F.twoDigitsFormat,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),this._renderInnerFace(.46*e),D.createElement(L,{ref:t=>this._hand=t,length:e-(this.state.isInner?.46*e:s)-this.props.numberRadius,angle:30*n,step:30,center:t,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))}_renderInnerFace(t){return D.createElement(j,{radius:this.props.radius,spacing:t,numbers:H,activeNumber:this.props.selected,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart,isInner:!0})}_valueFromDegrees(t){return this.state.isInner?H[t/30]:V[t/30]}}const B=(0,F.range)(0,60,5);class G extends D.PureComponent{constructor(){super(...arguments),this._onMouseDown=t=>{this._hand.mouseStart(t)},this._onTouchStart=t=>{this._hand.touchStart(t)},this._onHandMove=t=>{this.props.onChange(t/6)},this._onHandMoveEnd=t=>{this.props.onSelect&&this.props.onSelect(t)}}render(){return D.createElement("div",null,D.createElement(j,{radius:this.props.radius,spacing:this.props.spacing,numbers:B,activeNumber:this.props.selected,format:F.twoDigitsFormat,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),D.createElement(L,{ref:t=>this._hand=t,length:this.props.radius-this.props.spacing-this.props.numberRadius,angle:6*this.props.selected,step:6,center:this.props.center,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))}}var Y;!function(t){t[t.Hours=0]="Hours",t[t.Minutes=1]="Minutes"}(Y||(Y={}));class q extends D.PureComponent{constructor(t){super(t),this._clockFace=null,this._raf=null,this._recalculateTimeout=null,this._calculateShapeBinded=this._calculateShape.bind(this),this._onChangeHours=t=>{this.state.time.hours()!==t&&this._onChange(this.state.time.clone().hours(t))},this._onChangeMinutes=t=>{this.state.time.minutes()!==t&&this._onChange(this.state.time.clone().minutes(t))},this._onSelectHours=()=>{this._displayMinutes()},this._onSelectMinutes=t=>{t&&t.target instanceof Node&&this._clockFace&&this._clockFace.contains(t.target)&&t.preventDefault(), +this.props.onSelect&&this.props.onSelect(this.state.time.clone())},this._displayHours=()=>{this.setState({faceType:Y.Hours})},this._displayMinutes=()=>{this.setState({faceType:Y.Minutes})},this._setClockFace=t=>{this._clockFace=t},this.state={center:{x:0,y:0},radius:0,time:this.props.selectedTime,faceType:Y.Hours}}render(){return D.createElement("div",{className:n(R.clock,this.props.className)},D.createElement("div",{className:R.header},D.createElement("span",{className:n(R.number,{[R.active]:this.state.faceType===Y.Hours}),onClick:this._displayHours},this.state.time.format("HH")),D.createElement("span",null,":"),D.createElement("span",{className:n(R.number,{[R.active]:this.state.faceType===Y.Minutes}),onClick:this._displayMinutes},this.state.time.format("mm"))),D.createElement("div",{className:R.body},D.createElement("div",{className:R.clockFace,ref:this._setClockFace},this.state.faceType===Y.Hours?this._renderHours():null,this.state.faceType===Y.Minutes?this._renderMinutes():null,D.createElement("span",{className:R.centerDot}))))}componentDidMount(){this._calculateShape(),this._recalculateTimeout=setTimeout(this._calculateShapeBinded,1),window.addEventListener("resize",this._calculateShapeBinded),window.addEventListener("scroll",this._calculateShapeBinded,!0)}componentWillUnmount(){this._clearTimeout(),window.removeEventListener("resize",this._calculateShapeBinded),window.removeEventListener("scroll",this._calculateShapeBinded,!0),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}_clearTimeout(){null!==this._recalculateTimeout&&(clearTimeout(this._recalculateTimeout),this._recalculateTimeout=null)}_renderHours(){return D.createElement(U,{center:this.state.center,radius:this.state.radius,spacing:.18*this.state.radius,selected:this.state.time.hours(),numberRadius:13,onChange:this._onChangeHours,onSelect:this._onSelectHours})}_renderMinutes(){return D.createElement(G,{center:this.state.center,radius:this.state.radius,spacing:.18*this.state.radius,selected:this.state.time.minutes(),numberRadius:13,onChange:this._onChangeMinutes,onSelect:this._onSelectMinutes})}_onChange(t){this.setState({time:t}),this.props.onChange&&this.props.onChange(t.clone())}_calculateShape(){null===this._raf&&(this._raf=requestAnimationFrame(()=>{const{left:t,top:e,width:s}=(0,A.ensureNotNull)(this._clockFace).getBoundingClientRect();this.setState({center:{x:t+s/2,y:e+s/2},radius:s/2}),this._raf=null}))}}var K=s(76685),X=s(32563),J=s(44384),Z=s(23982),Q=s(67029);class tt extends D.PureComponent{constructor(t){super(t),this._format="HH:mm",this._fixValue=t=>((t=(t=t.substring(0,5)).replace(/:+/g,":")).endsWith(":")||2!==t.length||(t+=":"),t),this._isValid=t=>/^[0-9]{2}:[0-9]{2}/.test(t)&&$(t,this._format).isValid(),this._onType=t=>{const e=this._isValid(t)?$(t,this._format):null;e?this.setState({time:e,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(e)},this._onSelect=t=>{this.setState({time:t,showClock:!1,isInvalid:!1}),this.props.onPick(t)},this._showClock=()=>{this.setState({showClock:!0})},this._hideClock=()=>{ +this.setState({showClock:!1})},this._getErrors=()=>{const t=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&t.push((0,r.t)("Please enter the right time format hh:mm")),t},this.state={time:t.initial,showClock:!1,isInvalid:!this._isValid(t.initial.format(this._format))}}render(){return X.mobiletouch?D.createElement(Z.NativePickerInput,{value:this.state.time.format(this._format),type:"time",onChange:this._onType,icon:K,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:n(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:this.props.InputComponent}):D.createElement(J.PickerInput,{value:this.state.time.format(this._format),inputRegex:/[0-9:]/,fixValue:this._fixValue,onType:this._onType,onShowPicker:this._showClock,onHidePicker:this._hideClock,showPicker:this.state.showClock,icon:K,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:n(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:this.props.InputComponent},D.createElement(q,{selectedTime:this.state.time,onSelect:this._onSelect}))}UNSAFE_componentWillReceiveProps(t){this.props.initial!==t.initial&&this.setState({time:t.initial,isInvalid:!this._isValid(t.initial.format(this._format))})}_getFontSizeClassName(t){return t?"large"===t?Q.InputClasses.FontSizeLarge:Q.InputClasses.FontSizeMedium:void 0}}class et extends(M()){constructor({min:t=new Date(-864e13),max:e=new Date(864e13),value:s=new Date,noRangeValidation:n=!1,showErrorMessages:i=!0,readonly:o=!1,dateContainer:a,timeContainer:r,size:l,dateName:c,timeName:d,className:h}){super(),this._min=t,this._max=e,this._momentMin=O()(t),this._momentMax=O()(e),this._initValue=O()(s),this._dateContainer=a,this._timeContainer=r,this._noRangeValidation=n,this._size=l,this._showErrorMessages=i,this._dateName=c,this._timeName=d,this._readonly=o,this._className=h,this._dateValue=this._initValue.clone().startOf("day"),this._timeValue=this._initValue.clone(),this._disabled=!1,this._customErrors=[],this._errors={time:!1,date:!1,dateRange:!this._noRangeValidation&&!this._isInRange(s)},this._onDatePick=t=>{const e=t?O()(t):null;this.emit("pick",e),e?(this._errors.date=!1,e.isSame(this._dateValue)||(this._dateValue=e,this._resolveFullDateUpdate(),this._renderComponents())):this._errors.date=!0},this._onTimePick=t=>{this.emit("pick",t),t?(this._errors.time=!1,t.isSame(this._timeValue)||(this._timeValue=t,this._resolveFullDateUpdate(),this._renderComponents())):this._errors.time=!0},this._renderComponents()}isValid(){return!Object.values(this._errors).some(t=>t)&&!this._customErrors.length}destroy(){P.unmountComponentAtNode(this._dateContainer),P.unmountComponentAtNode(this._timeContainer)}setDisabled(t){this._disabled=t,this._renderComponents()}setErrors(t){ +for(const e of t)this._customErrors.includes(e)||this._customErrors.push(e);this._renderComponents()}removeErrors(t){for(const e of t){const t=this._customErrors.indexOf(e);-1!==t&&this._customErrors.splice(t,1)}this._renderComponents()}setCurrentDateTime(){const t=O()(new Date);this._onDatePick(t.toDate()),this._onTimePick(t),this._initValue=t}_isInRange(t){return this._min<=t&&this._max>=t}_resolveFullDateUpdate(){const t=this._getFullDate();t&&(this._noRangeValidation||this._isInRange(t)?(this._errors.dateRange=!1,this.emit("change",t)):this._errors.dateRange=!0)}_getFullDate(){return this._errors.date||this._errors.time?null:this._dateValue.clone().hours(this._timeValue.hours()).minutes(this._timeValue.minutes()).toDate()}_renderComponents(){const t=[...this._customErrors];this._errors.dateRange&&t.push((0,r.t)("Specified date is not within the allowed range")),P.render(D.createElement(N.DatePicker,{initial:this._initValue.toDate(),onPick:this._onDatePick,minDate:this._momentMin.toDate(),maxDate:this._momentMax.toDate(),disabled:this._disabled,noRangeValidation:!0,errors:t,size:this._size,showErrorMessages:this._showErrorMessages,name:this._dateName,readonly:this._readonly,className:this._className}),this._dateContainer),P.render(D.createElement(tt,{initial:this._initValue,onPick:this._onTimePick,disabled:this._disabled,errors:t,size:this._size,showErrorMessages:this._showErrorMessages,name:this._timeName,readonly:this._readonly,className:this._className}),this._timeContainer)}}var st=s(87463),nt=s(94738),it=s(84015),ot=s(59255),at=s(35908),rt=s(51768),lt=s(48743),ct=s(1787),dt=s(30152),ht=s(51712),pt=s(78599),ut=s(81268),_t=s.n(ut),mt=s(68587),vt=(s(73168),s(39227),s(6891),s(69423),s(89213),s(56912),s(23127)),gt=s(13398);const ft=(0,r.t)("Click here to learn more about webhooks"),bt=(0,r.t)("Click here to learn more about placeholders"),Ct=(0,r.t)("Click here to learn more about alerts on strategy"),wt=(0,r.t)("Click here to learn more about alert function usage");function Et(t,e,n){return`\n\t\t\n\t\t\t${s(17681)}\n\t\t`}function yt(){return`\n\t\t
\n\t\t\t\n\t\t
`}function St(){ +return`\n\t\t
\n\t\t\t\n\t\t
`}function xt(){return`\n\t\t
\n\t\t\t\n\t\t
`}function kt(){return`\n\t\t
\n\t\t\t\n\t\t\t${Et("js-webhook-solution-btn",ft)}\n\t\t
\n\t\t
\n\t\t\t\n\t\t
`}function Tt(){return`\n\t\t
\n\t\t\t\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
`}function It(){return`\n\t\t
\n\t\t\t\n\t\t
`}function Mt(t,e){return`\n\t\t${t.join("\n")}\n\t\t\n\t\t
\n\t\t\t
${s(88613)}
\n\t\t\t${(0,r.t)("More actions")}\n\t\t\t${(0,r.t)("Fewer actions")}\n\t\t
\n\t\t
\n\t\t\t
\n\t\t\t\t${e.join("\n")}\n\t\t\t
\n\t\t
`}function $t(t,e){t.click(()=>{(0,dt.showSupportDialog)({solutionId:e})})}const Ot=(0,it.isOnMobileAppPage)("any"),Dt={title_wrap:'
{{title}}
',base:`
\n\t\t\t
\n\n\t\t\t\t{{#display_condition}}
\n\t\t\t\t
\n\t\t\t\t
{{/display_condition}}\n\n\t\t\t\t{{#display_frequency}}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{/display_frequency}}\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{{#display_open_ended}}\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t{{/display_open_ended}}\n\t\t\t\t
\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{#is_screener_alert}}\n\t\t\t\t\t${Mt([St(),xt()],[Tt(),It()])}\n\t\t\t\t\t{{/is_screener_alert}}\n\n\t\t\t\t\t{{^is_screener_alert}}\n\t\t\t\t\t\t{{#is_mobile_app}}\n\t\t\t\t\t\t${Mt([yt()],[St(),xt(),kt(),Tt(),It()])}\n\t\t\t\t\t\t{{/is_mobile_app}}\n\n\t\t\t\t\t\t{{^is_mobile_app}}\n\t\t\t\t\t\t${Mt([yt(),St(),xt(),kt()],[Tt(),It()])}\n\t\t\t\t\t\t{{/is_mobile_app}}\n\t\t\t\t\t{{/is_screener_alert}}\n\t\t\t\t\n\n\t\t\t\t{{#display_alert_name}}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{/display_alert_name}}\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t{{#display_placeholders_hint}}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t${(0,r.t)("You can use special placeholders such as {listOfPlaceholders}, etc.").format({listOfPlaceholders:"{{close}}, {{time}}, {{plot_0}}"})}\n\t\t\t\t\t\t\t${Et("js-placeholders-solution-btn",bt,"tv-alert-dialog__info--inside-text")}\n\t\t\t\t\t\t\n\t\t\t\t\t\t{{/display_placeholders_hint}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t
`,condition_row:'\n\t\t\n\t\t\t
\n\t\t\t
\n\t\t
',condition_operators_row:'\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t',select:'',groupedSelect:'',readonly:'{{#caption}}{{/caption}}', +select_placeholder_width_hidden_input:'{{#showStrategyHint}}'+Et("js-strategy-solution-btn",Ct,"tv-alert-dialog__info--no-indent")+'{{/showStrategyHint}}{{^showStrategyHint}} {{/showStrategyHint}}',number_input:`
\n\t\t\t\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${_t()}
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${_t()}
\n\t\t\t\t
\n\t\t\t
\n\t\t
`,number_input_label:'{{{text}}}'},Pt=t=>!1===t?Promise.resolve(!1):(k.getBool("alerts.push.showDialog",!0)&&s.e(1662).then(s.bind(s,80208)).then(({showAlertsPushDialog:t})=>t()).then(t=>{k.setValue("alerts.push.showDialog",!t)}),Promise.resolve(!0)),Nt=({$numberInput:t,step:e,min:s,max:n,formatter:i=null,value:o=null,onChange:a=(t=>{}),readonly:r=!1}={})=>{const l=t.find(".js-input-up"),c=t.find(".js-input-down"),d=t.find("input"),h=t=>Math.min(n,Math.max(s,t));let p,u;p=i&&i.format?t=>i.format(t):t=>""+Math.floor(t),u=i&&i.parse?t=>{const e=i.parse(t);return"number"==typeof e?e:e.res?e.value:NaN}:t=>parseInt(t);const _=()=>{const t=u(d.val());isNaN(t)||(o=h(t)),isNaN(o)&&(o=s)},m=(t,e)=>{const s=d.val(),n=p(h(o));(n!==s||e)&&(d.val(n),!0!==t&&d.trigger("change"),a(o))},v=(t=1)=>{r||(o=h(o+e*t),m())};null===o&&_(),l.on("click",()=>v()),c.on("click",()=>v(-1)),d.on("change",()=>{_(),m(!0,!0)}),X.mobiletouch?d.on("input",()=>{_(),a(o)}):d.on("mousewheel",t=>{var e=t.deltaY*(t.deltaFactor/100);t.preventDefault(),v(e)}),d.on("focus",()=>t.addClass("i-active")).on("blur",()=>t.removeClass("i-active")),m()},At=(t,e,s,n,i,o=!1)=>1===e.length?Lt(t,e[0],s,o):Rt(t,e,s,n,i),Rt=(t,e,s,n,i)=>{const o=vt(gt.render(Dt.select,{name:t,options:e}));return s.append(o),o.tvControlSelect({boundingElement:i}),"function"==typeof n&&o.on("change",n),o},jt=(t,e,s,n,i)=>{const o=vt(gt.render(Dt.groupedSelect,{name:t,groups:e}));return s.append(o),o.tvControlSelect({boundingElement:i,showOptgroupSeparators:!0}),"function"==typeof n&&o.on("change",n),o},Lt=(t,e,s,n=!1)=>{const i=vt(gt.render(Dt.readonly,{name:t,value:e.value,caption:n||!e.caption?null:e.caption}));return s.append(i),i};class Wt extends l.TVPopup{constructor(t={}){let e=!1;const s=t.conditionEditor;s&&(delete t.conditionEditor,e=s.hasCondition()) +;const n=t.alertState,i=t.readonly,a=t.hasInfiniteExpiration;delete t.alertState,delete t.readonly,delete t.hasInfiniteExpiration;const l=(d=n.soundParams.name,c.availableSounds.filter(t=>t.soundForAlerts).map(t=>new p(t,d===t.path)));var d;const h=function(t){const e=[{value:"0",caption:(0,r.t)("Once")},{value:"5",caption:(0,r.t)("5 seconds")},{value:"10",caption:(0,r.t)("10 seconds")},{value:"30",caption:(0,r.t)("30 seconds")},{value:"60",caption:(0,r.t)("Minute")}];return t&&e.forEach(e=>{e.value===t&&(e.selected=!0)}),e}(String((0,at.ensureDurationInSeconds)(n.soundParams.duration)));var u;i||((u=n).notifyWith.email&&!user.has_active_email&&(u.notifyWith.email=!1),u.notifyWith.sms&&!user.sms_email&&(u.notifyWith.sms=!1));const _=t.alertCategory===nt.AlertCategory.Price,m=t.alertCategory===nt.AlertCategory.Screener;t.content=gt.render(Dt.base,{is_mobile_app:Ot,is_screener_alert:m,display_condition:e,display_frequency:e&&Boolean(n.frequency),display_open_ended:a,display_placeholders_hint:_,display_alert_name:_,inf_exp:n.noExpiration,actions_popup:n.notifyWith.popup,actions_sound:n.notifyWith.sound,actions_email:n.notifyWith.email,actions_sms:n.notifyWith.sms,actions_push:n.notifyWith.push,sounds:l,sound_durations:h,description:n.message,description_textarea_rows:5,webhook_url_active:null!==n.webhookUrl,webhook_url_value:n.webhookUrl||"",name_value:n.name}),t.actions=[],i||t.actions.push({name:"submit",type:"primary",text:t.submitCaption||(0,r.t)("Create",{context:"alert"}),key:13,addClass:"js-submit-button"}),t.actions.push({name:"cancel",type:"default",text:(0,r.t)("Cancel"),addClass:"js-cancel-button"}),!i&&t.enableDeleteButton&&(t.actions.push({name:"delete",type:"danger",text:t.deleteCaption||(0,r.t)("Delete"),addClass:"tv-alert-dialog__delete-button js-delete-button"}),delete t.enableDeleteButton),t.title&&(t.title=gt.render(Dt.title_wrap,{title:t.title})),super(t),this.stateChange=new(y()),this._alertState=n,this._sounds=l,this._soundDurations=h,this._readonly=i,this._setupExpiration(),this._setupAction("popup","show-popup"),this._setupAction("sound","play-sound");const v=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;this._setupAction("email","send-email",t=>(({newValue:t,paramName:e,paramExistsFlagName:s,dialogTitle:n="",fieldLabel:i="",regExp:o=null,error:a=""})=>!1===t?Promise.resolve(t):user[e]||user[s]?Promise.resolve(!0):new w({paramName:e,dialogTitle:n,fieldLabel:i,maxLength:300,validateRegExp:o,error:a,modal:!0}).show().then(()=>!0))({newValue:t,paramName:"email",paramExistsFlagName:"has_active_email",dialogTitle:(0,r.t)("Set email"),fieldLabel:(0,r.t)("Please, enter your email"),regExp:v,error:(0,r.t)("Enter a valid email address")})),this._setupAction("sms","send-sms",t=>{return(e=t)&&!window.user.sms_email?(0,pt.createSMSEmailDialog)({featureSource:"alert_sms_to_email"}).then(t=>(t.open(),new Promise(e=>{t.on("verification:success",()=>e(!0)),t.on("verification:cancel",()=>e(!1)) +}))):Promise.resolve(e);var e}),this._setupAction("push","send-push",t=>Pt(t)),this._setupSoundControls(),this._setupWebhookControls(),this._setUpAlertName(),this._setupActionsWrapperToggle(),this._setupDescription(),this.$content.find("textarea").on("keydown",t=>t.stopPropagation()),e&&this._setupCondition(s);const g=this.$actions.find(".js-submit-button");g&&g.tvButtonLoader();const f=this.$actions.find(".js-delete-button");f&&f.size()&&f.tvButtonLoader();const b=this.$actions.find(".js-cancel-button");this.on("action:submit",()=>{if(this.isLoading())return;const{notifyWith:t}=this.getAlertState();for(const e in t)t[e]&&(0,rt.trackEvent)("alert","notification",e);this._disableTimeoutId=setTimeout(()=>this._setInputsDisabledState(!0),300),g.tvButtonLoader("start"),b.addClass("i-disabled")}).on("action:delete",()=>{this.isLoading()||(this._disableTimeoutId=setTimeout(()=>this._setInputsDisabledState(!0),300),f.tvButtonLoader("start"),b.addClass("i-disabled"))}).on("action:cancel",()=>{b.is(".i-disabled")||this.close()}),i&&this._setInputsReadonlyState();const C=new ot.default((0,o.default)(()=>{this.calcHeight(),this.fixPos()},100));C.observe(this.$scrollWrapInner[0]),this.on("destroy",()=>{C.disconnect()})}restoreButtons(){this.$actions.find(".js-submit-button").tvButtonLoader("stop"),this.$actions.find(".js-cancel-button").removeClass("i-disabled");const t=this.$actions.find(".js-delete-button");t.size()&&t.tvButtonLoader("stop"),clearTimeout(this._disableTimeoutId),this._setInputsDisabledState(!1)}getAlertState(){return this._alertState}setAlertState(t){this._alertState=t}isLoading(){if(this.$actions.find(".js-submit-button").tvButtonLoader("get","loading"))return!0;const t=this.$actions.find(".js-delete-button");return!(!t.size()||!t.tvButtonLoader("get","loading"))}error(t,e){let s=null;if(e){if("expirationDate"===e)return this.$scrollWrap.is(".i-scrollable")?void super.error(t):(this._dateTimeInput.setErrors([t]),void this._dateTimeInput.once("pick",()=>{this._dateTimeInput.removeErrors([t])}));s=this.$content.find(`[name="${e}"]`)}s&&s.size()?(s.is(".js-number-input")&&(s=s.closest(".js-number-input__wrap")),s.tvControlError("add",{id:t,message:t,maxWidth:210}).tvControlError("render").one("change input",e=>{s.tvControlError("remove",{id:t}).tvControlError("render")})):super.error(t)}_setInputsReadonlyState(){this.$content.find("select").tvControlSelect("setReadonly",!0),this.$content.find("input, textarea").toArray().forEach(t=>{const e=vt(t),s=e.attr("type");"text"===s||"url"===s?e.prop("readonly",!0):"checkbox"===s&&e.prop("disabled",!0)})}_setInputsDisabledState(t){this._dateTimeInput.setDisabled(t),this.$content.find("select").tvControlSelect(t?"disable":"enable"),this.$content.find("input, textarea").toArray().forEach(e=>{const s=vt(e),n=s.attr("type");"text"!==n&&"checkbox"!==n||(s.prop("disabled",t),s.is(".js-number-input")&&s.closest(".js-number-input__wrap").toggleClass("i-disabled",t))})}_onConditionMainSeriesChange(){ +const t=this._$mainSeriesInput.val(),e=this._conditionEditor.getMainSeriesSelectOptions().filter(e=>e.value===t).map(t=>t.actualSymbol)[0];this._conditionEditor.updateMainSeriesIdForAlert(t,e)&&this._setupConditionOperators(),this._updateConditionFirstOperand(),this._onConditionChange()}_setupConditionMainSeries(){this._conditionPlaceholders.$first.html(gt.render(Dt.condition_row,{label:(0,r.t)("Condition"),js_left_wrap_class:"js-main-series-select-wrap",js_right_wrap_class:"js-main-series-plot-index-select-wrap",left_width:"50%",right_width:"50%"})),this._$mainSeriesInput=At("main-series",this._conditionEditor.getMainSeriesSelectOptions(),this._conditionPlaceholders.$first.find(".js-main-series-select-wrap"),()=>this._onConditionMainSeriesChange(),this.$scrollWrap.get(0)),this._onConditionMainSeriesChange()}_onConditionOperatorChange(){const t=this._$operatorInput.val();this._conditionEditor.updateOperator(t)&&this._updateConditionFirstOperand(),this._onConditionChange()}_setupConditionOperators(){const t=this._conditionEditor.getOperatorOptionGroups(),e=1===t.length&&1===t[0].length?t[0][0]:null;if(e&&!e.caption)return void this._conditionPlaceholders.$operator.empty();this._conditionPlaceholders.$operator.html(Dt.condition_operators_row);const s=this._conditionPlaceholders.$operator.find(".js-condition-operator-input-wrap");s.empty(),this._$operatorInput=((t,e,s,n,i,o=!1)=>1===e.length&&1===e[0].length?Lt(t,e[0][0],s,o):jt(t,e,s,n,i))("condition-id",t,s,()=>this._onConditionOperatorChange(),this.$scrollWrap.get(0))}_setupSecondOperandMoving(t,e,s){const n=vt(gt.render(Dt.condition_row,{js_left_wrap_class:"js-second-operand-move-value-wrap",js_right_wrap_class:"js-second-operand-move-period-wrap",left_width:"45%",right_width:"55%",last:!0,with_labels:!0})),i=vt(gt.render(Dt.number_input,{js_wrap_class:"js-move-value-input-wrap",name:t.name})),o=vt(gt.render(Dt.number_input_label,{right:!0,text:s})),a=vt(gt.render(Dt.number_input_label,{left:!0,text:(0,r.t)("in")})),l=vt(gt.render(Dt.number_input,{js_wrap_class:"js-period-input-wrap",name:e.name})),c=vt(gt.render(Dt.number_input_label,{right:!0,text:(0,r.t)("bars")}));n.find(".js-second-operand-move-value-wrap").append(i).append(o),n.find(".js-second-operand-move-period-wrap").append(a).append(l).append(c),this._conditionPlaceholders.$second.append(n);Nt({$numberInput:i,value:t.value,step:t.step,min:t.min,max:t.max,formatter:t.formatter,onChange:t=>{this._conditionEditor.updateMovingValue(t),this._onConditionChange()},readonly:this._readonly}),Nt({$numberInput:l,value:e.value,step:e.step,min:e.min,max:e.max,onChange:t=>{this._conditionEditor.updateMovingPeriod(t),this._onConditionChange()},readonly:this._readonly})}_onSecondOperandSeriesChange(t,e){const s=e.val();this._conditionEditor.updateSecondOperandSeriesIdForAlert(s,t);const n=this._conditionEditor.getSecondOperandSeriesValueType(t),i=this._conditionPlaceholders.$second.find(".js-second-operand-value-wrap__"+t.name);i.empty();const o=t.valueName,a=e=>{this._conditionEditor.updateSecondOperandValue(e,t), +this._onConditionChange()};if("value"===n){const e="js-second-operand-value__"+o,s=vt(gt.render(Dt.number_input,{js_wrap_class:e,name:o}));i.append(s);const n=this._conditionEditor.getSecondOperandSeriesValueOptions(t);Nt({$numberInput:s,value:n.value,step:n.step||1,min:n.min||0,max:n.max||1/0,formatter:n.formatter,onChange:a,readonly:this._readonly}),a(n.value)}else if("plotIndex"===n){const e=this._conditionEditor.getSecondOperandPlotIndexOptions(s,t),n=At(o,e,i,()=>{a(n.val()),this._updateConditionSecondOperand()},this.$scrollWrap.get(0),this._conditionEditor.getSecondOperandPlots(t).length<=1);a(n.val())}}_setupSecondOperandSeries(t,e){const s="js-second-operand-select-wrap__"+t.name,n="js-second-operand-value-wrap__"+t.name,i=vt(gt.render(Dt.condition_row,{label:t.label,js_left_wrap_class:s,js_right_wrap_class:n,left_width:"50%",right_width:"50%",last:e}));this._conditionPlaceholders.$second.append(i);const o=this._conditionPlaceholders.$second.find("."+s),a=t.options;let r;const l=()=>{o.empty(),r=At(t.name,a,o,()=>{this._onSecondOperandSeriesChange(t,r),(()=>{const t=r.val(),e=a.length;for(let s=e-1;s>=0;--s){const e=a[s];e.value!==t&&e.removeOnChange&&a.splice(s,1)}return e!==a.length})()&&l(),this._updateConditionSecondOperand()},this.$scrollWrap.get(0))};l(),this._onSecondOperandSeriesChange(t,r)}_setupConditionSecondOperandRow(t,e){t.isMoving?this._setupSecondOperandMoving(t.value,t.period,t.unit):this._setupSecondOperandSeries(t,e)}_updateConditionFirstOperand(){const t=this._conditionEditor.getMainSeriesPlotIndexOptions(),e=this._conditionPlaceholders.$first.find(".js-main-series-plot-index-select-wrap");if(Array.isArray(t)&&t.length){e.empty();const s=()=>{this._conditionEditor.updateMainSeriesPlotIndex(n.val()),this._updateConditionSecondOperand(),this._onConditionChange()},n=At("main-series-plot-index",t,e,s,this.$scrollWrap.get(0),!0);s()}else{e.html(gt.render(Dt.select_placeholder_width_hidden_input,{name:"main-series-plot-index",value:"0",showStrategyHint:this._conditionEditor.isStrategy()&&!this._conditionEditor.isSeriesWithAlertFunction()}));$t(e.find(".js-strategy-solution-btn"),ct.solutionIds.ALERT_ON_STRATEGY),this._updateConditionSecondOperand()}}_updateConditionSecondOperand(){const t=this._conditionEditor.getSecondOperandInputs();if(Array.isArray(t)){this._conditionPlaceholders.$second.empty();for(let e=0;ethis._onConditionChangeImpl(),1),this._setupConditionOperators(),this._setupConditionMainSeries(),this._conditionEditor.isDescriptionSetByUser()?this._isCustomDescription=!0:this.$content.find('[name="description"]').one("input",()=>{this._isCustomDescription=!0}),this._conditionEditor.isNameSetByUser()?this._isCustomName=!0:this.$content.find('[name="alert-name"]').one("input",()=>{this._isCustomName=!0})}_updateFireRate(){const t=t=>{const{frequency:e,autoDeactivation:s}=(n=t,JSON.parse(n));var n;this._alertState.autoDeactivation=s,this._alertState.frequency=e,this.stateChange.fire([{name:"frequency"},{name:"autoDeactivation"}])},e=this._conditionEditor?this._conditionEditor.getFireRateOptions():[];e.forEach(t=>{t.value=zt(t.value.autoDeactivation,t.value.frequency)});let s=zt(this._alertState.autoDeactivation,this._alertState.frequency);!e.some(t=>t.value===s)&&e.length>0&&(s=e[0].value);const n=this.$content.find(".js-fire-rate-row");if(1\n\t\t\t
`);if(s.append(a),t.forEach(t=>{const s=vt(`
\n\t\t\t\t
${t.caption}
\n\t\t\t
`);t.disabled?s.addClass("i-disabled"):t.value===e&&s.addClass("i-active"),a.append(s)}),!i){a.find(".js-buttons-group-option").click(e=>{const i=vt(e.target).closest(".js-buttons-group-option");if(!i.hasClass("i-disabled")){s.find(".js-buttons-group-option").removeClass("i-active"),i.addClass("i-active") +;const e=t[i.index()];n&&e&&n(e.value)}})}}a>1&&s.find(".js-buttons-group").addClass("tv-buttons-group--table-like")}(e,s,i,t,this._readonly)}else n.addClass("i-hidden");t(s)}_setupExpiration(){const t=this._alertState.expirationDate;this._dateTimeInput=new et({min:this.options.minExpire instanceof Date?this.options.minExpire:new Date,max:this.options.maxExpire instanceof Date?this.options.maxExpire:void 0,value:t,dateContainer:this.$content.find(".js-date-container")[0],timeContainer:this.$content.find(".js-time-container")[0],noRangeValidation:!0,size:"small",dateName:"alert_exp_date",timeName:"alert_exp_time",readonly:this._readonly,className:"tv-alert-dialog__date-time-input container"}),this._dateTimeInput.on("change",t=>{this._alertState.expirationDate=t,this.stateChange.fire([{name:"expirationDate"}])}),this._dateTimeInput.on("pick",t=>{this.toggleAction("submit",!!t)}),this.on("beforeClose",()=>{this._dateTimeInput.destroy()});const e=this.$content.find(".js-inf-exp").get(0);if(e){function s(t){this._alertState.noExpiration=t,this.stateChange.fire([{name:"noExpiration"}]),e.checked=t,this._dateTimeInput.setDisabled(t)}e.addEventListener("click",()=>{(0,st.trackGoProFeature)("alertsNoExpiration"),e.checked=!e.checked,e.checked?s.call(this,!1):(0,ht.runOrGoPro)(()=>{s.call(this,!0)},S.ProductFeatures.ALERTS_NO_EXPIRATION,{feature:"alertsNoExpiration"})}),e.checked&&this._dateTimeInput.setDisabled(!0)}}_setupAction(t,e,s){const n=this.$content.find(`[name="${e}"]`);n.on("click",e=>setTimeout(()=>{if("function"==typeof s){const e=n.prop("checked");n.prop("checked",!e),s(e).then(e=>{n.prop("checked",e),e!==this._alertState.notifyWith[t]&&(this._alertState.notifyWith[t]=e,this.stateChange.fire([{name:["notifyWith",t]}]))})}else this._alertState.notifyWith[t]=n.prop("checked"),this.stateChange.fire([{name:["notifyWith",t]}])},0))}_setupWebhookControls(){const t=this.$content.find('input[name="webhook-toggle"]'),e=this.$content.find('input[name="webhook-url"]'),s=this.$content.find(".js-webhook-input-wrap"),n=this.$content.find(".js-webhook-solution-btn"),i=t=>{s.toggleClass("tv-alert-dialog__fieldset-value-item--collapsed",t)},o=t=>{n.toggleClass("i-hidden",!t)},a=()=>{const s=t.prop("checked");if(s&&!(0,T.enabled)(S.ProductFeatures.ALERTS_WEBHOOK))return(0,x.showGoProAlertsWebhookDialog)(),void t.prop("checked",!1);i(!s),o(s),r(s?e.val().trim():null)},r=t=>{this._alertState.webhookUrl=t,this.stateChange.fire([{name:"webhookUrl"}])},l=t.prop("checked");i(!l),o(l),t.on("change",()=>setTimeout(a,0)),e.on("change input",()=>{r(e.val().trim())}),$t(n,ct.solutionIds.ALERT_WEBHOOK)}_setUpAlertName(){const t=(0,r.t)("Alert name can't be longer than {charCount} character.",{plural:"Alert name can't be longer than {charCount} characters.",count:300}).format({charCount:300});this._setupLimitInputHandler(this.$content.find('input[name="alert-name"]'),300,"name",t)}_setupSoundControls(){ +const t=this.$content.find('input[name="play-sound"]'),e=this.$content.find(".js-sound-settings"),n=()=>e.toggleClass("tv-alert-dialog__fieldset-value-item--collapsed",!t.prop("checked"));n(),t.on("change",()=>setTimeout(n,0));const i=this.$content.find('select[name="sound-name"]'),o=this.$content.find('select[name="sound-duration"]');i.tvControlSelect(),o.tvControlSelect();const a=i.data("tvControlSelect"),r=()=>this._sounds.forEach(t=>{const e=a.items.find(e=>e.value===t.value).$el;if(e.is(".js-has-sound-player"))return;const n=vt(`${s(73362)}`).on("click",e=>{e.stopPropagation(),t.toggle()}).appendTo(e);t.state.subscribe(t=>n.toggleClass("tv-alert-dialog__sound-toggle--playing",t)),e.addClass("tv-alert-dialog__sound-select_option js-has-sound-player")});i.data("tvControlSelect").$el.on("beforeOpenMenu",()=>r()),i.on("change",t=>{const e=i.val();this._alertState.soundParams.name!==e&&(this._alertState.soundParams.name=e,this.stateChange.fire([{name:["soundParams","name"]}]))}),o.on("change",t=>{const e=Number(o.val());this._alertState.soundParams.duration!==e&&(this._alertState.soundParams.duration=e,this.stateChange.fire([{name:["soundParams","duration"]}]))})}_setupActionsWrapperToggle(){const t=mt.dur/1.5;let e=!1;const s=this.$content.find(".js-fieldset-wrapper"),n=this.$content.find(".js-fieldset-wrapper-container"),i=this.$content.find(".js-fieldset-wrapper-toggle").on("click",()=>{e||(e=!0,(0,lt.lazyVelocity)().then(()=>{const o=i.is(".i-active");i.toggleClass("i-active"),o&&s.css({maxHeight:s.height(),overflow:""}),s.velocity({"max-height":o?0:n.height()},{duration:t,complete(){o||s.css({maxHeight:"",overflow:"visible"}),e=!1}}),s.toggleClass("i-active")}))})}_setupDescription(){const t=(0,r.t)("Your message can't be longer than {charCount} character.",{plural:"Your message can't be longer than {charCount} characters.",count:4e3}).format({charCount:4e3});this._setupLimitInputHandler(this.$content.find('[name="description"]'),4e3,"message",t),$t(this.$content.find(".js-placeholders-solution-btn"),ct.solutionIds.ALERT_DESCRIPTION_PLACEHOLDER)}_setupLimitInputHandler(t,e,s,n){t.tvControlError("render"),t.on("change input",()=>{let i=t.val().trim();i.length>e?(i=i.slice(0,e),t.val(i),t.tvControlError("add",{id:n,message:n}).tvControlError("render")):t.tvControlError("hasErrors")&&t.tvControlError("remove",{id:n}).tvControlError("render"),this._alertState[s]!==i&&(this._alertState[s]=i,this.stateChange.fire([{name:s}]))})}}function zt(t,e){return JSON.stringify({autoDeactivation:t,frequency:e})}},77544:(t,e,s)=>{"use strict";s.d(e,{TVPopup:()=>u});var n=s(68587),i=s(52150),o=s(51536),a=s(30812),r=s(35190),l=s(25760),c=s(23127);const d=c("body"),h=c(window),p={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class u extends o.TVDialogAbstract{constructor(t={}){super({...p,...t}), +this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(c(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(c(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new a.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const e=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=l.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(c(document).on("mousedown touchstart",()=>{this._preventClick=!1}),c(document).on("click.tv-popup-"+e,t=>{if(this._preventClick)return;const e=c(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===e.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>c(document).off("click.tv-popup-"+e))),this.on("change:zIndex",()=>{this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,n.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=h.height(),e=h.width(),s=this.$el.height(),n=this.$el.width();let i=this.options.position;return i||(i={top:t/2-s/2,left:e/2-n/2}),i.top>t-s&&(i.top=t-s),i.left>e-n&&(i.left=e-n),i.top<10&&(i.top=10),i.left<10&&(i.left=10),i})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,r.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,e)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),h.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,r.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),d.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}), +h.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),e={};t.bottom>i.mediaState.height-10&&(e.top=i.mediaState.height-10-t.height,e.top<10&&(e.top=10)),t.right>i.mediaState.width-10&&(e.left=i.mediaState.width-10-t.width,e.left<10&&(e.left=10)),(e.top||e.left)&&this.$el.css(e)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),e=this.$scrollWrapInner[0].getBoundingClientRect(),s=this.$scrollWrap[0].getBoundingClientRect();let n=this.options.height&&this.options.heightn)&&(n-=t.height-s.height,n<60&&(n=60),this.$scrollWrap.css({height:n})),this.options.withScroll&&this.scroll.resize();const a=n{"use strict";s.d(e,{showSupportDialog:()=>n});s(51872);function n(t){return Promise.all([s.e(9685),s.e(5514),s.e(8463),s.e(9289),s.e(509),s.e(3118),s.e(5998),s.e(8844),s.e(1253),s.e(8247),s.e(9297),s.e(9255),s.e(3812),s.e(5376),s.e(1536),s.e(5423),s.e(9957),s.e(7274)]).then(s.bind(s,89053)).then(e=>new e.SupportDialog(t).open())}},78599:(t,e,s)=>{"use strict";async function n(t){return(await Promise.all([s.e(8463),s.e(509),s.e(3118),s.e(5998),s.e(3848),s.e(8844),s.e(9410),s.e(5113),s.e(9565),s.e(8138),s.e(3014),s.e(1536),s.e(9040),s.e(8606)]).then(s.bind(s,44279))).createPhoneDialog(t)}async function i(t){return(await Promise.all([s.e(8463),s.e(509),s.e(3118),s.e(5998),s.e(3848),s.e(8844),s.e(9410),s.e(5113),s.e(9565),s.e(8138),s.e(3014),s.e(1536),s.e(9040),s.e(8606)]).then(s.bind(s,44279))).createEmailDialog(t)}s.d(e,{createPhoneDialog:()=>n,createSMSEmailDialog:()=>i})},48743:(t,e,s)=>{"use strict";s.d(e,{lazyVelocity:()=>i});s(23127);var n=s(23127);async function i(){await s.e(2112).then(s.t.bind(s,37356,23))}n.fn.velocity=function(...t){return i().then(()=>{n.fn.velocity.apply(this,t)}),this}},39640:(t,e,s)=>{"use strict";function n(t,e,s,n,i){function o(i){if(t>i.timeStamp)return;const o=i.target;void 0!==s&&null!==e&&null!==o&&o.ownerDocument===n&&(e.contains(o)||s(i))}return i.click&&n.addEventListener("click",o,!1),i.mouseDown&&n.addEventListener("mousedown",o,!1),i.touchEnd&&n.addEventListener("touchend",o,!1),i.touchStart&&n.addEventListener("touchstart",o,!1),()=>{n.removeEventListener("click",o,!1),n.removeEventListener("mousedown",o,!1),n.removeEventListener("touchend",o,!1),n.removeEventListener("touchstart",o,!1)}}s.d(e,{addOutsideEventListener:()=>n})}, +74664:(t,e,s)=>{"use strict";s.d(e,{breakpoints:()=>n,mobileFirstBreakpoints:()=>i,mobileFirstLegacyBreakpoints:()=>o});const n={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},i={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},o={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},68722:(t,e,s)=>{"use strict";s.d(e,{getScrollbarWidth:()=>n,matchMediaMinMax:()=>i,setStyle:()=>o,getCSSProperty:()=>a,getCSSPropertyNumericValue:()=>r});const n=(()=>{let t;return()=>{var e;if(void 0===t){const s=document.createElement("div"),n=s.style;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(s);const i=s.offsetWidth;s.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",s.appendChild(o);const a=o.offsetWidth;null===(e=s.parentNode)||void 0===e||e.removeChild(s),t=i-a}return t}})();function i(t,e){return e===1/0?window.matchMedia(`(min-width: ${t}px)`):window.matchMedia(`(min-width: ${t}px) and (max-width: ${e}px)`)}function o(t,e,s){null!==t&&t.style.setProperty(e,s)}function a(t,e){return getComputedStyle(t,null).getPropertyValue(e)}function r(t,e){return parseInt(a(t,e))}},52150:(t,e,s)=>{"use strict";s.d(e,{mediaState:()=>c});var n=s(85459),i=s.n(n),o=s(69677),a=s(74664),r=s(68722);class l extends(i()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=a.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(a.breakpoints).sort(([t,e],[s,n])=>e-n).forEach(([t,e],s,n)=>{let i;if(0!==s){const[,t]=n[s-1];i=t+1}else i=0;const o=(0,r.matchMediaMinMax)(i,e);o.matches&&this._setNewDevice(t),o.addListener(e=>{e.matches&&(this._checkDevice(),this._setNewDevice(t))})}),(0,o.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(t){const e=this.device;this.device=t,this.trigger("changeDevice",[t,e])}}const c=new l},58095:(t,e,s)=>{"use strict";s.d(e,{useOutsideEvent:()=>o});var n=s(59496),i=s(39640);function o(t){const{click:e,mouseDown:s,touchEnd:o,touchStart:a,handler:r,reference:l,ownerDocument:c=document}=t,d=(0,n.useRef)(null),h=(0,n.useRef)(new CustomEvent("timestamp").timeStamp);return(0,n.useLayoutEffect)(()=>{const t={click:e,mouseDown:s,touchEnd:o,touchStart:a},n=l?l.current:d.current;return(0,i.addOutsideEventListener)(h.current,n,r,c,t)},[e,s,o,a,r]),l||d}},76594:(t,e,s)=>{"use strict";s.d(e,{OutsideEvent:()=>i});var n=s(58095);function i(t){const{children:e,...s}=t;return e((0,n.useOutsideEvent)(s))}},88216:(t,e,s)=>{"use strict";s.d(e,{ +OverlapManager:()=>o,getRootOverlapManager:()=>r});var n=s(88537);class i{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){this._storage=this._storage.filter(e=>t!==e)}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class o{constructor(t=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,s=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach(t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)})}(e,s),this._container=s}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const s=this._windows.get(t);if(void 0!==s)return s;this.registerWindow(t);const n=this._document.createElement("div");if(n.style.position=e.position,n.style.zIndex=this._index.toString(),n.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(n);else if(e.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(n,t)}}else"reverse"===e.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(t,n),++this._index,n}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")}moveToTop(t){if(this.getZindex(t)!==this._index){this.ensureWindow(t).style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const a=new WeakMap;function r(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return(0,n.ensureDefined)(a.get(e));{const e=new o(t),s=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return a.set(s,e),e.setContainer(s),t.body.appendChild(s),e}}},86431:(t,e,s)=>{"use strict";s.d(e,{makeOverlapable:()=>o});var n=s(59496),i=s(65718);function o(t){return class extends n.PureComponent{render(){const{isOpened:e,root:s}=this.props;if(!e)return null;const o=n.createElement(t,{...this.props,zIndex:150});return"parent"===s?o:n.createElement(i.Portal,null,o)}}}},65718:(t,e,s)=>{"use strict";s.d(e,{Portal:()=>l,PortalContext:()=>c});var n=s(59496),i=s(87995),o=s(9423),a=s(88216),r=s(50655);class l extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const t=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.right||"",t.style.pointerEvents=this.props.pointerEvents||"", +i.createPortal(n.createElement(c.Provider,{value:this},this.props.children),t)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=r.SlotContext;const c=n.createContext(null)},50655:(t,e,s)=>{"use strict";s.d(e,{Slot:()=>i,SlotContext:()=>o});var n=s(59496);class i extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const o=n.createContext(null)},81268:t=>{t.exports=''},88613:t=>{t.exports=''},76685:t=>{t.exports=''},73362:t=>{t.exports=''},17681:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/alert-editor-impl.31bd1bd6a919d8561787.js b/charting_library/bundles/alert-editor-impl.31bd1bd6a919d8561787.js new file mode 100644 index 00000000..fb35cfa1 --- /dev/null +++ b/charting_library/bundles/alert-editor-impl.31bd1bd6a919d8561787.js @@ -0,0 +1,15 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[273],{86782:(e,t,r)=>{e.exports=r.p+"alarm_clock.48d3df0afe4d4981523b8a12e4e25f92.mp3"},47740:(e,t,r)=>{"use strict";r.d(t,{AlertConditionEditor:()=>c});var i=r(28353),a=r(2495),n=r(37387),o=r.n(n),s=r(98125),l=r(9423),d=r(50993);const u=(0,s.getLogger)("Alerts.Price.ConditionEditor");class c{constructor(e){this._dialogCreator=e,this._alert=e.alert,this._extra=this._alert&&this._alert.get("extra")||null,this._operatorsData=o().defaults(),this._secondOperandIdsForAlert={},this._valueBands={}}hasCondition(){return!!this._extra}getMainSeriesPlotIndexOptions(){const e=this._extra.alertSeries();if(!e)return[];const t=this._extra.conditionData();return["pine_script","pine_alertcondition_plot","alerts"].includes(t.type)?[]:this._getPlotIndexOptions(e)}getMainSeriesSelectOptions(){const e=this._extra.alertSeries().id,t=this._extra.drawing(),r={selectedValue:e,shortTitle:!0};return t&&(r.excluded=[{id:t.id}],r.excludeAlertConditionsOnly=!0),this._dialogCreator.getSeriesSelectOptions(r)}updateMainSeriesIdForAlert(e,t){return this._extra.alertSeries().id!==e&&(this._dialogCreator.update({alertSeries:this._dialogCreator.prepareBandForExtra(e,void 0,t)}),!0)}updateMainSeriesPlotIndex(e){if("number"!=typeof e&&(e=+e),isFinite(e)){const t=this._extra.alertSeries();"number"==typeof t.plotIndex&&e!==t.plotIndex&&(t.plotIndex=e,this._dialogCreator.update({alertSeries:t}))}}getOperatorOptionGroups(){const e=this._extra.state().condition,t=o().ordered(this._extra,{isGrouped:!0}),r=[];for(const i of t){const t=[];for(const r of i)t.push({value:r.id,caption:r.title||null,selected:Boolean(e&&r.id===e.id)});r.push(t)}return r}updateOperator(e){const t=this._extra.state().condition,r=t&&this._operatorsData[t.id],i=this._operatorsData[e];return t.id!==e&&this._dialogCreator.update({conditionId:e}),this._getSecondOperandType(r)!==this._getSecondOperandType(i)}getSecondOperandInputs(){const e=this._extra.state().condition;if(!(e&&this._operatorsData[e.id])){const e=this._extra.conditionData();return["pine_script","pine_alertcondition_plot","alerts","strategy","strategy_and_alerts"].includes(e.type)?[]:void u.logError("Unable to get condition operator data")}const t=[],r=o().getData(e.id,this._extra);if("comparison"===r.type)if(r.isChannel)if(this._alert.isDrawing()){const e=this._extra.drawing();t.push({name:"fake-drawing-band-main",isDrawing:!0,options:[{value:e.id,caption:e.title}]})}else t.push({label:(0,i.t)("Upper Bound"),name:"upper-band-main",valueName:"upper-band-additional",options:this._getSecondOperandSeriesOptions(this._extra.getUpperBand(),"upper-band-main")}),t.push({label:(0,i.t)("Lower Bound"),name:"lower-band-main",valueName:"lower-band-additional",options:this._getSecondOperandSeriesOptions(this._extra.getLowerBand(),"lower-band-main")});else t.push({name:"band-main",valueName:"band-additional",options:this._getSecondOperandSeriesOptions(this._extra.getBand(),"band-main")});else if("moving"===r.type){const e=this._extra.value();let i=1,a=null +;r.percents?(i=.01,a={format:e=>Number(e).toFixed(2),parse:e=>parseFloat(e)}):(a=this._getFormatter(),i=this._getPriceStep(e,a)),t.push({isMoving:!0,unit:r.percents?"%":"",value:{name:"moving-value",value:e,min:i,max:1/0,step:i,formatter:a},period:{name:"moving-period",value:this._extra.period(),min:Math.max(1,this._dialogCreator.minMovingPeriod(this._extra.alertSeries())),max:this._dialogCreator.maxMovingPeriod(),step:1}})}return t}updateMovingValue(e){this._dialogCreator.update({value:e})}updateMovingPeriod(e){this._dialogCreator.update({period:e})}updateSecondOperandSeriesIdForAlert(e,t){const r=this._getBandNameByInputName(t.name);this._secondOperandIdsForAlert[r]=e}updateSecondOperandValue(e,t){const r=this._getBandNameByInputName(t.name),i=this._getBandByBandName(r);if("Value"===i.type)i.value=e,this._updateValueBand(r,e);else{const t=+e;isFinite(t)&&t!==i.plotIndex&&Array.isArray(i.plots)&&void 0!==i.plots[t]&&(i.plotIndex=t)}const a={};a[r]=i,this._dialogCreator.update(a)}getSecondOperandSeriesValueType(e){if(e.isDrawing)return"drawing";const t=this._getBandNameByInputName(e.name),r=this._getBandByBandName(t);if(r){if("band"===t){const e=this._extra.drawing();if(e&&e.id===r.id)return"drawing"}return"Value"===r.type?"value":"plotIndex"}u.logError("Unable to get band for second operand")}getSecondOperandSeriesValueOptions(e){const t=this._getBandNameByInputName(e.name),r=this._getValueBand(t),i=parseFloat(r.value);"Value"!==r.type&&u.logError(`Band "${t}" is not of "Value" type`);const a=this._getFormatter();return{value:i,formatter:a,step:this._getPriceStep(i,a),min:-1/0,max:1/0}}isStrategy(){if(!this._extra)return!1;const e=this._extra.conditionData();return"strategy"===e.type||"strategy_and_alerts"===e.type}isOnlyAlertFunctionCondition(){if(!this._extra)return!1;return"alerts"===this._extra.conditionData().type}isSeriesWithAlertFunction(){return!!this._extra&&this._extra.hasAlertFunction()}_getFormatter(){let e=this._alert.getFormatter();if(!e){const t=this._extra.alertSeries(),r=this._dialogCreator.getStateForAlertById(t.id);r&&r.formatter&&(e=r.formatter())}return e}_getPriceStep(e,t){let r=this._getPriceStepByFormatter(t);return r||(r=this._calculatePriceStep(e,t)),r}getSecondOperandPlotIndexOptions(e,t){const r=this._getBandByInputName(t.name),i=this._getSecondOperandPlotsToExclude(e,t.name);return this._getPlotIndexOptions(r,i)}getSecondOperandPlots(e){const t=this._getBandNameByInputName(e.name),r=this._getBandByBandName(t);return r&&Array.isArray(r.plots)?r.plots:[]}_getSecondOperandPlotsToExclude(e,t){const r=this,i=[],a=this._extra.alertSeries();if(a&&a.id===e&&n(a),"lower-band-main"===t){const t=this._getBandByInputName("upper-band-main");t&&t.id===e&&n(t)}function n(e){const t=r._getPlotIndexOptions(e);for(let e=0;ee.plots.length-e.plots.filter(d.isAlertConditionPlot).length,r=[];if("upper-band-main"===e){const e=this._getBandByInputName("lower-band-main");Array.isArray(e.plots)&&t(e)<=1&&r.push({id:e.id})}if("lower-band-main"===e){const e=this._getBandByInputName("upper-band-main");Array.isArray(e.plots)&&t(e)<=1&&r.push({id:e.id})}const i=this._extra.alertSeries();if(i&&"MainSeries"!==i.type)if(Array.isArray(i.plots)){const a=t(i);if(a<=1&&r.push({id:i.id}),2===a){if("upper-band-main"===e){const e=this._getIdForAlertByInputName("lower-band-main");i.id===e&&r.push({id:e})}if("lower-band-main"===e){const e=this._getIdForAlertByInputName("upper-band-main");i.id===e&&r.push({id:e})}}}else r.push({id:i.id});return r}_getBandNameByInputName(e){return"band-main"===e?"band":"upper-band-main"===e?"upperBand":"lower-band-main"===e?"lowerBand":null}_getBandByInputName(e){return this._getBandByBandName(this._getBandNameByInputName(e))}_getIdForAlertByInputName(e){return this._secondOperandIdsForAlert[this._getBandNameByInputName(e)]}_getBandByBandName(e){const t="function"==typeof this._extra[e]&&this._extra[e]()||null;if(null!=this._secondOperandIdsForAlert[e]){const r=this._secondOperandIdsForAlert[e],i=void 0 +;return this._dialogCreator.prepareBandForExtra(r,t?t.plotIndex:void 0,i)}return t}_getValueBand(e){if(this._valueBands[e])return this._valueBands[e];let t=this._extra[e]();if("Value"!==t.type){var r=(0,l.randomHashN)(6);t={id:r,uniqueId:r,type:"Value",value:0}}return this._valueBands[e]=t,t}_updateValueBand(e,t){this._getValueBand(e).value=t}_checkIsExistingAlertType(){return"edit_alert"===this._dialogCreator.getType()||"show_alert"===this._dialogCreator.getType()}}},79540:(e,t,r)=>{"use strict";var i=r(23127),a=r(28353).t,n=r(25531).Alert,o=r(7298).AlertExtra,s=r(37387),l=r(2495),d=l.alertBandFactory,u=l.AlertBandValue,c=l.AlertBandStudy,p=r(62591).isStudyStateForAlertType,h=r(47740).AlertConditionEditor,g=r(16256).DEFAULT_SOUNDS,_=r(82992).linking,m=r(38874).loadTVScript,f=r(76861);const{trackGoProFeature:y}=r(87463);var S=r(2872),v=r(66712),b=r(99486).getAlertDialogType,A=r(33550).enabled,w=r(62867).ProductFeatures,x=r(84015).isOnMobileAppPage,B=r(9423),P=r(98125).getLogger("Alerts.Price.AlertEditor"),D=r(94738).AlertCategory,I=r(72154).createAlertDataSourceBridge,T=r(58352).canSubmitAlert,O=r(58352).AlertSubmitFailReason,E=r(22822).canPlaceAlertOnResolution,C=r(24993).AlertEditorAbortReason,F=r(26978).validateWebhookUrl,V=r(26978).WebhookValidationResult,M=new Map([[V.EmptyUrl,a("A Webhook url is required")],[V.BadUrl,a("This url is invalid")],[V.BadScheme,a("A http(s) protocol is required")],[V.BadHTTPPort,a("Only port 80 is allowed for HTTP")],[V.BadHTTPSPort,a("Only port 443 is allowed for HTTPS")],[V.BadHost,a("This host is not allowed")]]);function k(e,t){f.isLocal()&&(window._exposed_alertEditor=this),this._options=t||{},this._prepareOptions();var r=this._options.abortSignal;if(r){var i=this._abort.bind(this,C.ManualAbort);if(r.value())return void i();r.subscribe(i),this._releaseAbortSignal=function(){r.unsubscribe(i)}}this._priceAlertsDispatcher=e,this._dataSourceHub=this._options.dataSourceHub,this.dialogOpened=new S,this._options.onDialogOpened&&this.dialogOpened.subscribe(null,this._options.onDialogOpened,!0),this._options.silent=this._options.silent||!1,this._type=b(this._options),this._saveAlertFunc=this._options.saveAlertFunc,this._deleteAlertFunc=this._options.deleteAlertFunc,this._cache={},this._createAlertEditor(this._dataSourceHub)}function N(e,t,r,i,a){r&&(!t||t.id()!==r.id())&&r.detachAlert(),t?t.setAlert(e.id).then(()=>{e.get("extra").mainSeries().id===t.model().mainSeries().stateForAlert().id&&t.synchronizeAlert(!0),i()}).catch(a):i()}k.prototype._prepareOptions=function(){this._options.series&&!this._options.series.alertCreationAvailable()&&delete this._options.series,this._options.drawing&&!this._options.drawing.alertCreationAvailable()&&delete this._options.drawing},k.prototype._createAlertEditor=function(e){var t=e?e.mainSeries():null,r=t?t.symbolInfo():null;if(!e||r)this._init();else{var i=this;!function(){e.mainSeries().dataEvents().symbolResolved().subscribe(null,r);var t=setTimeout((function(){e.mainSeries().dataEvents().symbolResolved().unsubscribe(null,r), +i._abort(C.SymbolInfoTimeout)}),2e4);function r(a){clearTimeout(t),a?(e.mainSeries().dataEvents().symbolResolved().unsubscribe(null,r),i._init()):i._abort(C.SymbolIsInvalid)}}()}m()},k.prototype._init=function(){var e;this._dataSourceHub?(e=this.mainSeries(),this._symbol=e.actualSymbol(),this._symbolInternal=e.getSymbolString(),this._resolution=e.interval()):(this._symbol=_.symbol.value(),this._resolution=_.interval.value()||"1"),I(this._dataSourceHub).then(function(e){this._dataSourceBridge=e,this._initCurrentAlert(),this._options.alert&&this._options.alert.saveState(),this._options.silent?T(this.alert,this._dataSourceBridge).then(function(e){e.canSubmit?this._placeAlert(this.alert):this._abort(e.reason===O.DangerousSource?C.SourceIsDangerous:C.MisleadingPriceScale)}.bind(this)):this._createDialog(),window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.hide()}.bind(this))},k.prototype._hide=function(){this.dialog&&this.dialog.hide()},k.prototype._show=function(){this.dialog&&this.dialog.show()},k.prototype.destroy=function(e){!0!==e&&this.dialog?this.dialog.close():this._onDestroyAsync()},k.prototype._onDestroyAsync=function(){if(this._generationPromise){var e=this;this._generationPromise.then((function(t){"cancelled: new alert already generating"!==t&&e._onDestroy()}))}else this._onDestroy()},k.prototype._onDestroy=function(){if("edit_alert"===this._type){if(this.alert&&this._onOkSucceed&&this.alert.saveState(),this._onOkSucceed&&"function"==typeof this._options.onEditSuccess&&this._options.onEditSuccess(),this.alert&&!this._onOkSucceed){const e=this.alert.state(),t=this._originalState,r=["active","fireTime","fire_bar_time","startTime","stopTime","stopReason"];for(const i of r)e.hasOwnProperty(i)&&(t[i]=e[i]);this.alert.restoreState(t)}this._onOkSucceed||"function"!=typeof this._options.onEditCancel||this._options.onEditCancel(),"function"==typeof this._options.onEditComplete&&this._options.onEditComplete()}this.alert&&(this.alert.off("destroy",this.destroy,this),this.alert.isNew()&&this._priceAlertsDispatcher.deleteAlert(this.alert)),"function"==typeof this._options.onDestroy&&this._options.onDestroy(),this._releaseAbortSignal&&this._releaseAbortSignal(),window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.refresh()},k._createValueDataSource=function(e){var t=B.randomHashN(6);return{id:t,uniqueId:t,type:"Value",value:e}},k.prototype._initCurrentAlert=function(){var e=this._options.alert,t=!1;if(e instanceof n)t=this._defaultDescriptionBySavedState(e)!==e.get("description"),this._originalState=e.getSavedState()||e.state(),e.saveState(),this.alert=e;else{if(!this._dataSourceHub)return void P.logError("Can't create alert without chart widget");var r=this.defaults({type:"alert"});e=this._priceAlertsDispatcher.createLocalAlert(r,!0),this.alert=e;var a=this.defaults({type:"extra"}),s=new o(a);e.set("extra",s);var l=s.getDependencies();if(e.set("scriptDeps",l),s.conditionId(this.defaults({name:"conditionId"})),this._options.drawing){var d=this._options.drawing.stateForAlert(),u=d.plots||[] +;d=i.extend(!0,{},d),1===u.length?s.band(i.extend(!0,{plotIndex:0},d)):1{e&&P.logError(String(e)),this._onDestroyAsync()},i={success:e=>N(e,t,null,()=>{},r),error:r,actionSource:this._options.actionSource};this._generationPromise="create_alert"===this._type?this._priceAlertsDispatcher.createAlert(e,i):this._priceAlertsDispatcher.restartAlert(e,i)},k.prototype.update=function(e){var t=this.alert;e=e||{};var r=this._dataSourceBridge.getMainSeriesState();if(t){var i=t.get("extra");if(i){var a=i.conditionId(),n=t.frequencyController.getAvailable();if(this._cachedConditionOptions||(this._cachedConditionOptions={}),e.alertSeries){var o=i.alertSeries().id;i.alertSeries(e.alertSeries);var l=i.alertSeries().id;const a=i.hasAlertCondition(),n=i.hasAlertFunction();o===l||!a&&!n||e.conditionId||(e.conditionId=s.ordered(i)[0].id),this._updateAlertSymbol(),r&&(this._bandIsInAlertState(e.alertSeries)?this._restoreMainSeriesAndResolution():i.mainSeries(r)),t.trigger("change:alertSeries",t)}for(var d=["upperBand","lowerBand","band","value","period"],u=d.length-1;u>=0;u--){var c=d[u];i[c]()&&(this._cachedConditionOptions[c]=i[c]())}e.conditionId&&i.conditionId(e.conditionId,!0);var p=i.conditionData(),h=void 0!==e.conditionId||a!==i.conditionId()||void 0!==e.upperBand||void 0!==e.lowerBand||void 0!==e.band||void 0!==e.value||void 0!==e.period;if(h){switch(i.clearOptionalConditions(!0),p.type){case"comparison":p.isChannel?(i.upperBand(e.upperBand||this._cachedConditionOptions.upperBand||this.defaults({name:"upperBand"}),!0),i.lowerBand(e.lowerBand||this._cachedConditionOptions.lowerBand||this.defaults({name:"lowerBand"}))):i.band(e.band||this._cachedConditionOptions.band||this.defaults({name:"band"}));break;case"moving":var g=e.value;void 0===g&&(g=this._cachedConditionOptions.value),void 0===g&&(g=this.defaults({name:"value"}));var _=e.period;void 0===_&&(_=this._cachedConditionOptions.period),void 0===_&&(_=this.defaults({name:"period"})),i.value(g),i.period(_);break;case"pine_alertcondition_plot":case"pine_script":case"alerts":case"strategy":case"strategy_and_alerts":break;default:P.logError("Unknown condition type")}var m=t.get("crossInterval"),f=t.getSavedState()&&t.getSavedState().crossInterval;if(r&&!m&&f){var y=i.alertSeries() +;"MainSeries"===y.type&&y.actualSymbol===r.actualSymbol&&(i.mainSeries(r),i.alertSeries(r),this._updateAlertSymbol())}}var S=i.getDependencies();t.set("scriptDeps",S);var v=t.frequencyController.getAvailable();i.getAvailableBands().forEach((function(r){e[r]&&JSON.stringify(n)!==JSON.stringify(v)&&t.frequencyController.switchFrequencies()})),(e.alertSeries||h)&&t.syncAlertType()}var b,A,w,x,B=["expired","showPopup","description","playSound","soundFile","soundDuration","sendSms","sendEmail","sendPush","noExpiration","webhookUrl","name"];for(u=0;u0&&t.set(D)}},k.prototype._updateAlertSymbol=function(){var e=this.alert.get("extra"),t=e&&e.getAlertSeries();t&&("MainSeries"===t.type()?this.alert.set({symbol:t.getActualSymbol(),symbolInternal:t.getSymbolString(),resolution:this.alert.get("crossInterval")?"1":t.getInterval()}):this.alert.set({symbol:this._symbol,symbolInternal:this._symbolInternal,resolution:this.alert.get("crossInterval")?"1":this._resolution}))},k.prototype._bandIsInAlertState=function(e){if(this.alert&&this.alert.getSavedState())for(var t=this.alert.getSavedState().extra.bandsArray("object"),r=0;r0){var h=void 0!==t&&t{t._validate(e)?T(t.alert,t._dataSourceBridge).then((function(r){r.canSubmit?t._onSubmit(e):e.restoreButtons()})):e.restoreButtons()},300)})).on("action:delete",(function(e){if(!e.isLoading()){var r={success:function(){t.destroy(),t._options.onDeleteSuccess&&t._options.onDeleteSuccess()},error:function(){e.error(a("Alert deleting failed. Please, try again"))}};t._deleteAlertFunc?t._deleteAlertFunc(t.alert,r):(r.showConfirm=!0,r.cancel=function(){e.restoreButtons()},t._priceAlertsDispatcher.deleteAlert(t.alert,r))}})).on("afterOpen",(function(e){t._validate(e),t.dialogOpened.fire()})).on("beforeClose",(function(){t.alert.set("isBeingEdited",!1),t.destroy(!0)})),t.dialog.open()}))},k.prototype._validate=function(e){if(!this.alert)return!1;if(!this.alert.get("noExpiration")){var t=this.alert.get("expired");if(t<=Date.now())return e.error(a("Expiration date must be in the future"),"expirationDate"),!1;var r=this.defaults({name:"maxExpired"});if(r&&t>r)return e.error(a("Maximum expiration time is {days} days",{replace:{days:Math.round((r-Date.now())/864e5)}}),"expirationDate"),!1}var i=this.alert.get("webhookUrl");if("string"==typeof i){var n=F(i);if(n!==V.Ok)return e.error(M.get(n),"webhook-url"),!1}var o=this.alert.get("extra"),s=o&&o.conditionData();if(s&&s.isChannel){var l=o.upperBand(),d=o.lowerBand();if("Value"===l.type&&"Value"===d.type){var u=+l.value;if(!isFinite(u))return e.error(a("Please enter correct upper bound value"),"upper-band-additional"),!1;var c=+d.value +;if(!isFinite(c))return e.error(a("Please enter correct lower bound value"),"lower-band-additional"),!1;if(u<=c){var p=a("Upper bound value must be greater than lower bound value");return e.error(p,"upper-band-additional"),e.error(p,"lower-band-additional"),!1}}}if("moving"===s.type){if(o.value()<=0)return e.error(a("Moving value should be a positive number"),"moving-value"),!1;var h=o.period(),g=this.minMovingPeriod(),_=this.maxMovingPeriod();if(h_)return e.error(a("Moving period must be in range from {min} to {max}",{replace:{min:g,max:_}}),"moving-period"),!1}return!0},k.prototype._onSubmit=function(e){const t=this,r=this.alert,i=this._getAlertPreviousDrawingDataSource(),n=this._getAlertDrawingDataSource(),o={success:e=>N(e,n,i,s,l),error:l,complete:function(){d()},actionSource:this._options.actionSource};function s(){d(),t._onOkSucceed=!0,t.destroy()}function l(r,i){r&&P.logError(String(r)),t._show(),!0!==i&&e&&e.error(a("Alert saving failed. Please, try again"))}function d(){e&&e.restoreButtons()}y("alerts",this._options.trackEvent),TVSettings.setValue("alerts.creating.send_email",!!r.get("sendEmail")),TVSettings.setValue("alerts.creating.send_sms",!!r.get("sendSms")),TVSettings.setValue("alerts.creating.send_push",!!r.get("sendPush")),TVSettings.setValue("alerts.creating.show_popup",!!r.get("showPopup")),TVSettings.setValue("alerts.creating.play_sound",!!r.get("playSound")),TVSettings.setValue("alerts.creating.sound_file",r.get("soundFile")),TVSettings.setValue("alerts.creating.sound_duration",r.get("soundDuration")),TVSettings.setValue("alerts.creating.webhook_url",r.get("webhookUrl")||""),TVSettings.setValue("alerts.creating.no_expiration",!!r.get("noExpiration")),t._hide(),t._saveAlertFunc?t._saveAlertFunc(r,o):"create_alert"===t._type?t._generationPromise=this._priceAlertsDispatcher.createAlert(r,o):(r.isDrawing()&&this._updateDrawing(),t._generationPromise=this._priceAlertsDispatcher.restartAlert(r,o))},k.prototype._updateDrawing=function(){var e=this.alert.get("extra"),t=e.drawing(),r=t&&this.getDataSourceById(t.id);if(r){var i=e.alertSeries(),a=r.model().mainSeries();"MainSeries"===i.type&&i.id===a.idForAlert()&&e.drawing(r)}},k.prototype.getSeriesSelectOptions=function(e){var t=e.prepend?Array.isArray(e.prepend)?e.prepend:[e.prepend]:[];e=e||{};var r=this.alert;function a(e,t){var i=e.id();if(t&&Array.isArray(t)&&i){if(-1!==t.map((function(e){return e.id})).indexOf(i))return!0;if(r.get("crossInterval")&&"MainSeries"===e.type()){var a=g(e),n=t.map((function(e){return e.band&&"MainSeries"===e.band.type()&&g(e.band)}));return a&&-1!==n.indexOf(a)}return!1}return!1}function n(e){return a(e,i.map(t,(function(e){return{id:e.value,band:e.band}})))}function o(t){return t.id()!==e.selectedValue&&(t.getStyleInputs&&t.getStyleInputs()&&"ATR"===t.getStyleInputs().style)}function s(t){if(t.id()===e.selectedValue)return!1;return(t.getActualSymbol()||"").startsWith("ECONOMICS:")}function l(t){return a(t,e.excluded)||e.excludeTypes&&e.excludeTypes.includes(v.type())}var p=!1;function h(r){ +void 0!==e.selectedValue&&r.value===e.selectedValue&&(r.selected=!0,p=!0),t.push(r)}function g(e){var t={actualSymbol:e.getActualSymbol(),sessionId:e.sessionId(),style:e.getStyle(),styleInputs:e.getStyleInputs()||{},dividendsAdjustment:e.getDividendsAdjustment(),backAdjustment:e.getBackAdjustment(),settlementAsClose:e.getSettlementAsClose()};return JSON.stringify(t,(function(e,t){return null!==t?t:void 0}))}function _(e){return e instanceof c&&e.isTVLibrary()}var m=this._dataSourceBridge.getMainSeriesState();if(r&&r.getSavedState())for(var f=r.getSavedState().extra.bandsArray("model"),y=0;y{"use strict";var i=r(23127);var a,n=(a=null,function(){return a||(a=i.Deferred(),r.e(3646).then(r.t.bind(r,16087,23)).then(()=>{a.resolve()})),a.promise()});TradingView.loadTVScript=n,t.loadTVScript=n},72154:(e,t,r)=>{"use strict";r.d(t,{createAlertDataSourceBridge:()=>o});var i=r(86811),a=r(14291);class n{constructor(e=null){this._idToState=new Map,this._dataSourceHub=e;const t=e&&e.mainSeries();this._mainSeriesId=t&&t.idForAlert();const r=t?t.lastValueData(4,!0,!0).price:void 0;this._mainSeriesLastPrice=void 0!==r?r:0}init(){return this._getChartDataSourcesForOptions().then(e=>{e.forEach(e=>{const t=e.stateForAlert&&e.stateForAlert();t&&this._idToState.set(t.id,t)})})}getStateById(e){return this._idToState.get(e)||null}getDataSourceById(e){return this._getChartDataSources().find(t=>t.alertCreationAvailable()&&t.idForAlert()===e)||null}getStatesForAlert(){return Array.from(this._idToState.values())}getMainSeriesState(){return this._mainSeriesId&&this._idToState.get(this._mainSeriesId)||null}getMainSeriesLastPrice(){return this._mainSeriesLastPrice}isSetOnLogarithmicScale(e){var t,r;return Boolean(null===(r=null===(t=this.getDataSourceById(e))||void 0===t?void 0:t.priceScale())||void 0===r?void 0:r.isLog())}_getChartDataSources(){return this._dataSourceHub?this._dataSourceHub.orderedDataSources():[]}_getChartDataSourcesForOptions(){if(!this._dataSourceHub)return Promise.resolve([]);const e=this._dataSourceHub.orderedDataSources(!0),t=this._dataSourceHub.mainSeries(),r=e.filter(e=>!(0,a.isLineTool)(e)&&e.alertCreationAvailable());return(0,i.filterAccessibleDataSources)(r).then(e=>(e.splice(e.indexOf(t),1),e.unshift(t),e))}}function o(e){return new Promise(t=>{const r=new n(e);r.init().then(()=>t(r))})}},58352:(e,t,r)=>{"use strict";r.d(t,{AlertSubmitFailReason:()=>n, +canSubmitAlert:()=>s});var i=r(56840);async function a(e){const t="alerts.no_warning."+e;if(i.getBool(t,!1))return!0;const{canContinue:a,doNotShow:n}=await(await Promise.all([r.e(5514),r.e(9129),r.e(2888),r.e(4956),r.e(8463),r.e(7427),r.e(5998),r.e(7552),r.e(279),r.e(5618),r.e(1e3),r.e(4364),r.e(7136)]).then(r.bind(r,71270))).showAlertsTriggerWarningDialogImpl(e);return n&&i.setValue(t,!0),a}var n,o=r(88537);async function s(e,t){return await async function(e){const t=(0,o.ensureDefined)(e.get("extra"));for(const e of t.bandsArray()){const t=e.dangerReason;if(t)return a(t)}return!0}(e)?await async function(e,t){const r=(0,o.ensureDefined)(e.get("extra")).alertSeries();if(r&&t.isSetOnLogarithmicScale(r.id))return a("logarithmic-scale");return!0}(e,t)?{canSubmit:!0}:{canSubmit:!1,reason:n.LogarithmicScale}:{canSubmit:!1,reason:n.DangerousSource}}!function(e){e[e.DangerousSource=0]="DangerousSource",e[e.LogarithmicScale=1]="LogarithmicScale"}(n||(n={}))},94738:(e,t,r)=>{"use strict";var i;r.d(t,{AlertCategory:()=>i}),function(e){e.Price="price",e.Screener="screener"}(i||(i={}))},26978:(e,t,r)=>{"use strict";r.d(t,{WebhookValidationResult:()=>i,validateWebhookUrl:()=>u});var i,a=r(75072);!function(e){e[e.Ok=0]="Ok",e[e.EmptyUrl=1]="EmptyUrl",e[e.BadUrl=2]="BadUrl",e[e.BadScheme=3]="BadScheme",e[e.BadHTTPPort=4]="BadHTTPPort",e[e.BadHTTPSPort=5]="BadHTTPSPort",e[e.BadHost=6]="BadHost"}(i||(i={}));const n={http:"80",https:"443"},o=Object.keys(n).map(e=>e+":"),s=new Set(["localhost","[::1]"]),l=function(){const e="(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])";return["0\\.0\\.0\\.0",`10\\.${e}\\.${e}\\.${e}`,`172\\.(?:1[6-9]|2[0-9]|3[0-1])\\.${e}\\.${e}`,`192\\.168\\.${e}\\.${e}`,`127\\.${e}\\.${e}\\.${e}`].map(e=>new RegExp(`^${e}$`))}(),d=new RegExp("^([a-z]+):\\/\\/(\\[[:.0-9A-Fa-f]+\\]|[^\\s/:#?@]+?)(?::(\\d+))?(\\/[^\\s#]*)?$");function u(e){if(""===e)return i.EmptyUrl;if(!o.some(t=>e.startsWith(t)))return i.BadScheme;const t=d.exec(e);if(null===t)return i.BadUrl;const r=t[1],u=t[2].toLowerCase(),c=t[3];return c&&n[r]!==c?"http"===r?i.BadHTTPPort:i.BadHTTPSPort:s.has(u)||(0,a.isInternalHost)(u,"tradingview.com")||(0,a.isInternalHost)(u,window.location.hostname)||l.some(e=>e.test(u))?i.BadHost:i.Ok}},66712:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createAlertDialog:()=>a});const i={title:(0,r(28353).t)("Create Alert"),width:450,destroyOnClose:!0,focusFirstControl:!1,closeOnOutsideClick:!1,closeOnClickAtOtherDialogs:!1,contentWrapTemplate:'

',actionsWrapTemplate:'
'};function a(e){return Promise.all([r.e(5514),r.e(9289),r.e(509),r.e(3118),r.e(1729),r.e(3713),r.e(6708),r.e(5708),r.e(9593),r.e(2006),r.e(2288),r.e(9255),r.e(1536),r.e(7678),r.e(7404),r.e(6055),r.e(2465)]).then(r.bind(r,91426)).then(t=>{const r=t.AlertDialog;return Promise.resolve(new r({...i,...e}))})}},75072:(e,t,r)=>{"use strict" +;function i(e){const t=new URL(e,document.baseURI);return o(t)&&n(t)&&a(t)}r.d(t,{isInternalUrl:()=>i,isInternalHost:()=>s});const a=e=>!e.username,n=e=>"http:"===e.protocol||"https:"===e.protocol,o=e=>e.hostname===location.hostname||!/^\d+\.\d+\.\d+\.\d+$/.test(e.hostname)&&s(e.hostname);function s(e,t=window.location.hostname){const r="."===t.slice(-1)?3:2,i=t.toLowerCase().split(".").slice(-r),a=e.toLowerCase().split(".").slice(-i.length);return i.join(".")===a.join(".")}},16256:(e,t,r)=>{"use strict";r.d(t,{DEFAULT_SOUNDS:()=>u,availableSounds:()=>c,play:()=>h,stop:()=>g,onStopped:()=>_,isPlaying:()=>m});var i=r(28353),a=r(84015),n=r(98125),o=r(52714),s=r.n(o),l=r(86782);const d=(0,n.getLogger)("Lib.Sound",{color:"#dea433"}),u={sound:"notification/notification",alert:"alert/fired"},c=[{title:(0,i.t)("Alarm Clock"),path:"alert/alarm_clock",soundForAlerts:!0,filePath:l}];const p={};function h(e=u.sound,t){if((0,a.isOnMobileAppPage)("any"))return Promise.resolve();d.logNormal(`Sound play attempt for "${e}" duration-${t}s;`);return y(e).play(t)}function g(e){if((0,a.isOnMobileAppPage)("any"))return;let t=[];e?t.push(y(e)):t=Object.values(p),t.forEach(e=>{e.stop()})}function _(e,t){(0,a.isOnMobileAppPage)("any")||y(e).playing.subscribe(e=>{e||t()},{once:!0})}function m(e){return!(0,a.isOnMobileAppPage)("any")&&y(e).playing.value()}function f(e){if((0,a.isOnMobileAppPage)("any"))return;if(!e)return;if(!/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi/i.test(window.navigator.userAgent))return;if(Array.isArray(e)||(e=[e]),0===(e=e.filter(e=>{const t=y(e);return!(!t||!t.el.load||t._mobilePreloadActive)&&(t._mobilePreloadActive=!0,!0)})).length)return void d.logNormal("enableForMobile no sounds passed");const t=()=>{const i=[];Array.isArray(e)&&e.forEach(e=>{const t=y(e);t.el.load();const r=t.play().catch(e=>{if("AbortError"!==e.name)throw d.logError(`enableForMobile for "${t.el.src}" preload error: - ${e.message}`),e});t.el.pause(),i.push(r)}),Promise.all(i).then(()=>{d.logNormal("enableForMobile sounds initialized")}),r.forEach(e=>{document.removeEventListener(e,t,!0)})},r=["click","touchend","keydown"];r.forEach(e=>{document.addEventListener(e,t,!0)})}const y=e=>{if(e in p)return p[e];d.logNormal(`requested sound ${e} not cached, building a new audio element`);const t=c.find(t=>t.path===e);if(void 0===t)throw new Error(`Cannot find sound "${e}"`);const r=new Audio(t.filePath),i={el:r,playing:new(s())(!1),play:(t=0)=>i.playing.value()?(d.logNormal("sound already playing"),Promise.reject("already playing")):(i.playing.setValue(!0),new Promise((r,a)=>{let n=t>0;const o=()=>{(function(e){try{d.logNormal(`"${e.el.src}" triggering html5 play method, readyState - ${e.el.readyState}; muted - ${e.el.muted}; volume - ${e.el.volume}; currentTime - ${e.el.currentTime}`);let t=e.el.play();return t||(t=Promise.resolve()),t}catch(t){return d.logError(`play method for "${e.el.src}" catch error - ${t.message}`),Promise.reject(t)}})(i).catch(t=>{d.logNormal(`stop counting sound "${e}"; as playing due to an error: ${t.message}`), +i.stop(),a(t)})};i._onEnded=()=>{n?o():(i.stop(),r())},i.el.addEventListener("ended",i._onEnded),n&&setTimeout(()=>{d.logNormal(`"${e}" repeat timeout - ${t}s off`),n=!1},1e3*t),o()})),stop:()=>{i.el.pause(),i.playing.setValue(!1),i._onEnded&&i.el.removeEventListener("ended",i._onEnded)}};p[e]=i;return["canplaythrough","error"].forEach(t=>{r.addEventListener(t,()=>{d.logNormal(`for sound "${e}", event - ${t} is fired`)},!1)}),d.logNormal("canPlayType - "+r.canPlayType("audio/mp3")),p[e]};f(c.filter(e=>!!e.common).map(e=>e.path))},95695:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var i=r(51768);const a={filterNamesMap:{script_type:"Indicators and Strategies","script_type-indicators":"Indicators","script_type-strategies":"Strategies",stream:"All Markets","stream-stocks":"Stocks","stream-indices":"Indices","stream-commodities":"Commodities","stream-currencies":"Currencies","stream-bitcoin":"Bitcoin","interval-all":"All Intervals","interval-m":"Short Term","interval-h":"Medium Term","interval-dwm":"Long Term","sort-unmoderated":"Unmoderated","sort-trending":"Trending","sort-discussed":"Most Discussed","sort-viewed":"Most Viewed","sort-agreed":"Most Agreed","sort-suggested":"Suggested","sort-recent":"All Ideas","time-day":"Today","time-week":"This Week","time-month":"This Month","time-all":"All Time","by-everyone":"Everyone","by-following":"Following","by-me":"My Ideas"},goProFeaturesMap:{customIntervals:"Add Custom Interval",intradaySpread:"Inraday Spread",kagiRenko:"Japanese Intraday Chart",alerts:{prefix:"New Alerts Limit",widget:"Widget",chart:"Chart Header"},multipleCharts:"Multiple Charts Layout",savedChartsLimit:"Save Chart Limit",studyLimit:"Studies Limit",multipleWatchLists:{prefix:"Watchlists",new:"Create New List",rename:"Rename List",saveAs:"Save List As"},importWatchlist:"Watchlists Import Watchlist",exportWatchlist:"Watchlists Export Watchlist",BATSExchangePopup:"BATS Exchange Popup",DataQualityPopup:"Data Quality Popup",FreeDelayPopup:"Free Delay Popup",proRTProduct:"Volume Profile",studyOnStudy:"Unlimited Study on Study"},trackFeature:{savedChartsLimit:!0,BATSExchangePopup:!0,FreeDelayPopup:!0,DataQualityPopup:!0,intradaySpread:!0,studyOnStudy:!0},trackGoPro:function(e,t,r){r&&!t&&(t=r,r=null);var n=a.goProFeaturesMap[t];if(n){if(r){if("string"==typeof n)return;n="{0} {1}".format(n.prefix,n[r])}(0,i.trackEvent)(e,n)}}},n=a},87463:(e,t,r)=>{"use strict";r.r(t),r.d(t,{trackGoProFeature:()=>a});var i=r(95695);function a(e,t){i.default.trackGoPro("Gopro Features",e,t)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/alert-utils-has-user-access-to-data-source.0e28597ad557f8895261.js b/charting_library/bundles/alert-utils-has-user-access-to-data-source.0e28597ad557f8895261.js new file mode 100644 index 00000000..a99a52ee --- /dev/null +++ b/charting_library/bundles/alert-utils-has-user-access-to-data-source.0e28597ad557f8895261.js @@ -0,0 +1,2 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3441],{93337:(e,r,t)=>{var n;e=t.nmd(e),"undefined"!=typeof window&&(n=window.TVScript=window.TVScript||{}),(n=n||{}).Access={},n.Access.ACCESS_OPEN_NO_AUTH="open_no_auth",n.Access.ACCESS_CLOSED_NO_AUTH="closed_no_auth",n.Access.ACCESS_CLOSED_NEEDS_AUTH="closed_needs_auth",n.Access.MAP_ID_TO_NAME={1:n.Access.ACCESS_OPEN_NO_AUTH,2:n.Access.ACCESS_CLOSED_NO_AUTH,3:n.Access.ACCESS_CLOSED_NEEDS_AUTH},n.Access.MAP_NAME_TO_ID={},Object.keys(n.Access.MAP_ID_TO_NAME).forEach((function(e){n.Access.MAP_NAME_TO_ID[n.Access.MAP_ID_TO_NAME[e]]=e})),n.PinePrefix={},n.PinePrefix.USER="USER;",n.PinePrefix.PUB="PUB;",n.PinePrefix.STD="STD;",n.PinePrefix.TV="TV_",n.PinePrefix.EDGR="EDGR_",n.PineType={},n.PineType.UserSaved="PineType_UserSaved",n.PineType.UserPublished="PineType_UserPublished",n.PineType.BuiltIn="PineType_BuiltIn",n.PineType.Addon="PineType_Addon",n.Type=n.Type||function(){},n.Type.VOID="void",n.Type.INTEGER="integer",n.Type.FLOAT="float",n.Type.STRING="string",n.Type.BOOL="bool",n.Type.COLOR="color",n.Type.SERIES="series",n.Type.PLOT="plot",n.Type.HLINE="hline",n.Type.BARCOLOR="barcolor",n.Type.BGCOLOR="bgcolor",n.Type.PLOTSHAPES="plotshape",n.Type.PLOTCHARS="plotchar",n.Type.PLOTARROWS="plotarrow",n.Type.NA="na",n.Type.ARRAY="array",n.TranslatorDefaultVersion=1,n.TranslatorReferenceVersioningIntroduced=4,n.TranslatorLastVersion=5,n.pineType=function(e){return e.startsWith(n.PinePrefix.USER)?n.PineType.UserSaved:e.startsWith(n.PinePrefix.PUB)?n.PineType.UserPublished:e.startsWith(n.PinePrefix.STD)||e.startsWith(n.PinePrefix.TV)||e.startsWith(n.PinePrefix.EDGR)?n.PineType.BuiltIn:n.PineType.Addon},n.patchILTemplate=function(e,r,t){var s=t||{};return n._patchTemplate(/<(in_\d+)>/g,e,r,s)},n.decorateQuotes=function(e){if(!e)return e;var r=/([^\\']+?)(')[^']*?/g,t=e;return"'"==t.charAt(0)&&"'"==t.charAt(t.length-1)?"'"+(t=t.substr(1,t.length-2)).replace(r,"$1\\$2")+"'":t.replace(r,"$1\\$2")},n.patchInputs=function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var s,i=e[n];s=i.isFake?{v:r[i.id],f:!0,t:i.type}:r[i.id],t[i.id]=s}return t},n._patchTemplate=function(e,r,t,s){var i=s||{};return r.replace(e,(function(e,r){for(var s=(r in i?i[r]:t.defaults.inputs[r]),a=0;a=0)s="'"+n.decorateQuotes(s)+"'";else if("source"===t.inputs[a].type){var o=s.split("$");o[0]="'"+o[0]+"'",s="source("+o.join(",")+")"}return s}))},n.isStrategy=function(e){return/^\s*strategy\s*\(/m.test(e)};var s=/^\s*\/\/\s*?@version\s*?=\s*?(\S*?)\s*?$/gm,i=/^[0-9]+$/;n.extractVersion=function(e){s.lastIndex=0;var r=s.exec(e);if(null===r)return n.TranslatorDefaultVersion;var t=r[1],a=i.test(t)?Number(t):NaN;return isNaN(a)?n.TranslatorDefaultVersion:a},n.canUpgradeVersion=function(e){return e>=3&&e=4&&e<=n.TranslatorLastVersion}, +e&&e.exports&&(e.exports=n)},57467:(e,r,t)=>{"use strict";t.r(r),t.d(r,{hasUserAccessToDataSource:()=>c,filterAccessibleDataSources:()=>u});var n=t(81851),s=t(14905),i=t(80815),a=t(88537),o=t(93337);async function c(e){return 1===(await u([e])).length}async function u(e){const r=new Set;if(e.forEach(e=>{(0,n.isStudy)(e)&&p(e)&&r.add(e.metaInfo().scriptIdPart)}),0===r.size)return[...e];const t=await(0,i.info)(Array.from(r),!0).promise(),s=new Set((0,a.ensureDefined)(t).filter(T).map(e=>e.scriptIdPart));return e.filter(e=>!(0,n.isStudy)(e)||!p(e)||s.has(e.metaInfo().scriptIdPart))}function p(e){const r=e.metaInfo();return r.scriptIdPart&&(0,s.isPublishedPineId)(r.scriptIdPart)}function T(e){return o.Access.MAP_ID_TO_NAME[e.access]!==o.Access.ACCESS_CLOSED_NEEDS_AUTH||e.userHaveAccess}},80815:(e,r,t)=>{"use strict";var n,s=t(23127),i=(n={},{suggest:function(e,r){var t=s.ajax({url:r||"/pubscripts-suggest-json/",type:"GET",data:{search:e},dataType:"json"});return t.done((function(e){if(e&&e.results)for(var r=0;r{"use strict";i.r(e),i.d(e,{showAlertsPushDialog:()=>r});var o=i(28353),s=(i(94419),i(89725)),n=i(82595);const a='

'+(0,o.t)("Install TradingView Mobile App")+"

"+(0,o.t)("To get notified about an alert on your phone you need to do the following:")+"

  • "+(0,o.t)("Download the latest TradingView app from {app_store_link}AppStore{link_end} or {google_play_link}Google Play{link_end}").format({app_store_link:'',google_play_link:'',link_end:""})+"
  • "+(0,o.t)("Login into your TradingView account on the app")+"
  • "+(0,o.t)("Allow the TradingView app to send push notifications. For iOS devices: go to Settings -> Notifications -> Select TradingView app -> Turn on Allow Notifications. For Android devices: open TradingView app settings and enable push notifications")+"
";function r(){const t={width:480,closeOnOutsideClick:!1,destroyOnClose:!0,closeButton:!1,focusFirstControl:!1,type:"modal",contentWrapTemplate:'
',actionsWrapTemplate:'
',content:a,actions:[{name:"confirm",type:"primary",text:(0,o.t)("Got it"),method:"close",key:[13,32]},{name:"do-not-show",type:"checkbox",text:(0,o.t)("Do not show this message again"),addClass:"tv-control-checkbox tv-control-checkbox--in-actions i-align_left i-float_left"}]};return new Promise(e=>{let i=!1;const o=(0,s.createDialog)(t);o.on("action:do-not-show",(t,e)=>{i=e}),o.on("destroy",()=>{e(i)}),o.open()})}},89725:(t,e,i)=>{"use strict";i.r(e),i.d(e,{createDialog:()=>n});var o=i(976),s=i(77544);function n(t){const e=t.type||"popup";return delete t.type,"modal"===e?new o.TVModal(t):new s.TVPopup(t)}},976:(t,e,i)=>{"use strict";i.d(e,{TVModal:()=>v});var o=i(28353),s=i(68587),n=i(49483),a=i(43989),r=i(51536),d=i(4185),l=i(85739),h=i(25760),c=i(23127),p=i(25977);let g=[];const u={ajax:{},closingDuration:s.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,o.t)("Error")}
`};class v extends r.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=c(this.options.overlayTemplate), +this.$modalWrap=c(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{g.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||c.noop,e=this.options.ajax.success||!1,i=this.options.ajax.error||c.noop;c.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(e?e(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,e)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),c(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=c.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&l.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),g=p.without(g,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),g.length>0&&g[g.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*s.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){ +return this.spinner=new d.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},43989:(t,e,i)=>{"use strict";i.d(e,{setFixedBodyState:()=>a});var o=i(68722);let s=0,n=!1;function a(t){const{body:e}=document,i=e.querySelector(".widgetbar-wrap");if(t&&1==++s){const t=(0,o.getCSSProperty)(e,"overflow"),s=(0,o.getCSSPropertyNumericValue)(e,"padding-right");"hidden"!==t.toLowerCase()&&e.scrollHeight>e.offsetHeight&&((0,o.setStyle)(i,"right",(0,o.getScrollbarWidth)()+"px"),e.style.paddingRight=s+(0,o.getScrollbarWidth)()+"px",n=!0),e.classList.add("i-no-scroll")}else if(!t&&s>0&&0==--s&&(e.classList.remove("i-no-scroll"),n)){(0,o.setStyle)(i,"right","0px");let t=0;0,e.scrollHeight<=e.clientHeight&&(t-=(0,o.getScrollbarWidth)()),e.style.paddingRight=(t<0?0:t)+"px",n=!1}}},82595:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/alerts-trigger-warning-dialog-impl.9bffee22d66ddcf75e00.js b/charting_library/bundles/alerts-trigger-warning-dialog-impl.9bffee22d66ddcf75e00.js new file mode 100644 index 00000000..ea08d1d8 --- /dev/null +++ b/charting_library/bundles/alerts-trigger-warning-dialog-impl.9bffee22d66ddcf75e00.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7136],{37593:e=>{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM",dot:"dot-5Xd5conM"}},96670:e=>{e.exports={checkbox:"checkbox-GxG6nBa7",reverse:"reverse-GxG6nBa7",label:"label-GxG6nBa7",baseline:"baseline-GxG6nBa7"}},71349:e=>{e.exports={description:"description-XND8Gzdp",link:"link-XND8Gzdp"}},18586:e=>{e.exports={checkbox:"checkbox-OpxH0OVy"}},74371:e=>{e.exports={icon:"icon-cKcckIVa"}},84413:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var a=n(59496),s=n(97754),o=n(9745),i=n(49154),r=n(37593),l=n.n(r);function c(e){const t=s(l().box,l()["intent-"+e.intent],{[l().check]:!Boolean(e.indeterminate),[l().dot]:Boolean(e.indeterminate),[l().noOutline]:-1===e.tabIndex}),n=s(l().wrapper,e.className);return a.createElement("span",{className:n,title:e.title},a.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:l().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),a.createElement("span",{className:t},a.createElement(o.Icon,{icon:i,className:l().icon})))}},15294:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>c,GroupedCheckbox:()=>u});var a=n(59496),s=n(97754),o=n(54349),i=n(84413),r=n(96670),l=n.n(r);class c extends a.PureComponent{render(){const{inputClassName:e,labelClassName:t,...n}=this.props,o=s(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),r=s(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=a.createElement("span",{className:r,title:this.props.title},this.props.label)),a.createElement("label",{className:o},a.createElement(i.CheckboxInput,{...n,className:e}),c)}}c.defaultProps={value:"on"};const u=(0,o.makeSwitchGroupItem)(c)},54349:(e,t,n)=>{"use strict";n.d(t,{SwitchGroup:()=>o,makeSwitchGroupItem:()=>i});var a=n(59496),s=n(19036);class o extends a.PureComponent{constructor(){super(...arguments),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)}}getChildContext(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return this.props.children}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach(t=>t(e))}_getUpdates(e,t){return[...t,...e].filter(n=>t.includes(n)?!e.includes(n):e.includes(n))}}function i(e){var t;return(t=class extends a.PureComponent{constructor(){super(...arguments),this._onChange=e=>{ +this.context.switchGroupContext.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.switchGroupContext.subscribe(this._onUpdate)}render(){return a.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.switchGroupContext.unsubscribe(this._onUpdate)}_getName(){return this.context.switchGroupContext.getName()}_isChecked(){return this.context.switchGroupContext.getValues().includes(this.props.value)}}).contextTypes={switchGroupContext:s.any.isRequired},t}o.childContextTypes={switchGroupContext:s.any.isRequired}},1787:(e,t,n)=>{"use strict";n.d(t,{solutionIds:()=>a});const a=JSON.parse('{"EXTENDED_HOURS":43000502023,"PRE_MARKET":43000502023,"POST_MARKET":43000502023,"SPREAD_CHARTS":43000502298,"ALERTS":43000520149,"ALERT_ON_STRATEGY":43000481368,"ALERT_WEBHOOK":43000529348,"ALERT_DESCRIPTION_PLACEHOLDER":43000531021,"VOLUME_PROFILE":43000502040,"VOLUME_PROFILE_INDICATOR":43000557450,"RENKO":43000502284,"KAGI":43000502272,"LINE_BREAK":43000502273,"PNF":43000502276,"FINANCIAL_DATA":43000543506,"BROKER_RATING":43000542490,"CRYPTO_MARKET_CAP":43000540941,"CRYPTO_PAYMENT":43000485536,"ALERT_ON_SPREAD":43000478406,"ALERT_ON_CUSTOM_SCRIPT":43000478415,"ALERT_FUNCTION":43000597494,"SMS_VERIFICATION":43000553429,"MAGNET_MODE":43000537270,"PINE_CANNOT_DETERMINE":43000587849,"PRIVACY_SETTINGS":43000548335,"PUBLICATION_TYPE":43000609497,"SCRIPT_ACCESS":43000482573,"MEMORY_LIMITS_EXCEEDED":43000590233,"FREE_USER_FAQS":43000590947,"STRATEGY_UNREALISTIC_RESULTS":43000481029,"STRATEGY_FUTURE_DATA":43000614705,"STREAM_RULES":43000591348,"HOW_TO_USE_PAPER":43000516466,"HOW_TO_USE_CQG":43000516372,"HOW_TO_USE_OANDA":43000516375,"HOW_TO_USE_FOREXCOM":43000516374,"FAVORITE_IDEA":43000555216,"YOUTUBE_ERROR":43000612153,"AUTHORS_INSTRUCTIONS_PUBCLICATION":43000549951,"AUTHORS_INSTRUCTIONS_EDIT":43000614618,"SCRIPT_INSTRUCTIONS":43000482573,"BAR_REPLAY_UNAVAILABILITY":43000475470,"WHAT_IS_CBOE_BZX_EXCHANGE":43000473924,"GOPRO_UPGRADE_DESCRIPTION":43000473324,"GOPRO_DOWNGRADE_DESCRIPTION":43000485437,"BROKERAGE_REVIEWS":43000591351,"CHANGE_SUBSCRIPTION":43000635806,"PINE_LIBRARY_INFO":43000638371,"HOW_TO_CREATE_A_STREAM":43000560174,"HOW_DO_I_UPDATE_DESKTOP_APP":43000647779,"TECHNICAL_RATINGS":43000614331,"BACKTESTING_WIDGET":43000561856,"DEEP_BACKTESTING_WIDGET":43000670566,"DEEP_BACKTESTING":43000666199,"DEEP_BACKTESTING_AVAILABLE_DATA":43000668210}')},71270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showAlertsTriggerWarningDialogImpl:()=>x});var a=n(59496),s=n(87995),o=n(28353),i=n(96050),r=n(9745),l=n(74371);function c(e){return a.createElement(a.Fragment,null,a.createElement(r.Icon,{icon:e.icon,className:l.icon}),e.text)}var u=n(15294),h=n(18586);function p(e){return a.createElement(u.Checkbox,{checked:e.checked,onChange:e.onChange,label:e.label||(0,o.t)("Don't show again"),className:h.checkbox})}var d=n(77975),E=n(45345);var _=n(26843),m=n(1787),T=n(30152),C=n(68361),A=n(55746),g=n(71349) +;const R=(0,o.t)("Got it"),I=(0,o.t)("Cancel"),N=(0,o.t)("Continue anyway"),O={spread:(0,o.t)("Spread alerts may trigger differently from what you expect"),"pine-repainting":(0,o.t)("Alert may trigger differently from what you expect"),cryptocap:(0,o.t)("CRYPTOCAP alerts may trigger differently from what you expect"),"logarithmic-scale":(0,o.t)("Alert may trigger differently from what you expect")},S={spread:(0,o.t)("This is because the tick data of price movements within a bar are not included in historical bars. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info."),"pine-repainting":(0,o.t)("This is because it’s based on an indicator or strategy that can get repainted. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info."),cryptocap:(0,o.t)("This is because the calculation for these symbols may return different results when using historical and real-time data. Have a read of our {solutionLinkStart}Help Center{linkEnd} for more info."),"logarithmic-scale":(0,o.t)("This is because, at the moment, calculations are based on a linear scale, not a logarithmic one.")},b={spread:m.solutionIds.ALERT_ON_SPREAD,"pine-repainting":m.solutionIds.ALERT_ON_CUSTOM_SCRIPT,cryptocap:m.solutionIds.CRYPTO_MARKET_CAP},f=/(.*){solutionLinkStart}(.*){linkEnd}(.*)/;function x(e){return new Promise(t=>{const n=document.createElement("div");let o=!1;function r(){s.render(a.createElement(i.SimpleDialog,{title:a.createElement(v,{title:O[e]}),onClose:c,content:a.createElement(a.Fragment,null,a.createElement("p",{className:g.description},w(e)),a.createElement(p,{checked:o,onChange:l,label:R})),actions:[{name:"continue",title:N,handler:u},{name:"cancel",title:I,intent:"default",appearance:"stroke",handler:c}],dataName:"alerts-trigger-warning-dialog-"+e}),n)}function l(){o=!o,r()}function c(){s.unmountComponentAtNode(n),t({doNotShow:o,canContinue:!1})}function u(){s.unmountComponentAtNode(n),t({doNotShow:o,canContinue:!0})}r()})}function w(e){const t=S[e],n=t.match(f),s=b[e];if(!n||!s)return t;return a.createElement(a.Fragment,null,n[1],a.createElement("a",{className:g.link,onClick:function(e){e.preventDefault(),(0,T.showSupportDialog)({solutionId:s})},href:`/support/solutions/${s}/`},n[2]),n[3])}function v(e){const t=(0,d.useWatchedValueReadonly)({watchedValue:E.watchedTheme});return a.createElement(c,{text:e.title,icon:t===_.StdTheme.Light?C:A})}},30152:(e,t,n)=>{"use strict";n.d(t,{showSupportDialog:()=>a});n(51872);function a(e){return Promise.all([n.e(9685),n.e(5514),n.e(8463),n.e(9289),n.e(509),n.e(3118),n.e(5998),n.e(8844),n.e(1253),n.e(8247),n.e(9297),n.e(9255),n.e(3812),n.e(5376),n.e(1536),n.e(5423),n.e(9957),n.e(7274)]).then(n.bind(n,89053)).then(t=>new t.SupportDialog(e).open())}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>s});var a=n(59496);const s=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,s="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,i]=(0,a.useState)(n?n.value():s);return(t?a.useLayoutEffect:a.useEffect)(()=>{if(n){i(n.value()) +;const e=e=>i(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),o}},49154:e=>{e.exports=''},55746:e=>{e.exports=''},68361:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/b0d7e0e6fa1209b8a82a5566879e8439.svg b/charting_library/bundles/b0d7e0e6fa1209b8a82a5566879e8439.svg new file mode 100644 index 00000000..5e311711 --- /dev/null +++ b/charting_library/bundles/b0d7e0e6fa1209b8a82a5566879e8439.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b119250cad0725ccc4f8288726f56f6b.svg b/charting_library/bundles/b119250cad0725ccc4f8288726f56f6b.svg new file mode 100644 index 00000000..f93f1d03 --- /dev/null +++ b/charting_library/bundles/b119250cad0725ccc4f8288726f56f6b.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b1cad18bd8a6be021c3177353bda5345.svg b/charting_library/bundles/b1cad18bd8a6be021c3177353bda5345.svg new file mode 100644 index 00000000..013a6d8f --- /dev/null +++ b/charting_library/bundles/b1cad18bd8a6be021c3177353bda5345.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b1ee1e8ecc3caeb6e4e1dd6d5a45e2c8.svg b/charting_library/bundles/b1ee1e8ecc3caeb6e4e1dd6d5a45e2c8.svg new file mode 100644 index 00000000..4188e3f1 --- /dev/null +++ b/charting_library/bundles/b1ee1e8ecc3caeb6e4e1dd6d5a45e2c8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b2011711183a64af88730986168af032.svg b/charting_library/bundles/b2011711183a64af88730986168af032.svg new file mode 100644 index 00000000..a065333a --- /dev/null +++ b/charting_library/bundles/b2011711183a64af88730986168af032.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b31adf0f45d2fb04730c422394eb6ae2.svg b/charting_library/bundles/b31adf0f45d2fb04730c422394eb6ae2.svg new file mode 100644 index 00000000..2c19de63 --- /dev/null +++ b/charting_library/bundles/b31adf0f45d2fb04730c422394eb6ae2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b4dd685fee80f6fff4b6e34f4e7725ac.svg b/charting_library/bundles/b4dd685fee80f6fff4b6e34f4e7725ac.svg new file mode 100644 index 00000000..d092e303 --- /dev/null +++ b/charting_library/bundles/b4dd685fee80f6fff4b6e34f4e7725ac.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b51b73c5dc965960d789d4616c9372e5.svg b/charting_library/bundles/b51b73c5dc965960d789d4616c9372e5.svg new file mode 100644 index 00000000..19ec34d8 --- /dev/null +++ b/charting_library/bundles/b51b73c5dc965960d789d4616c9372e5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b66a640126ab548895d37446e81edb06.svg b/charting_library/bundles/b66a640126ab548895d37446e81edb06.svg new file mode 100644 index 00000000..b9bca5ae --- /dev/null +++ b/charting_library/bundles/b66a640126ab548895d37446e81edb06.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b6a66bf5808bbb5de2d3bf45a5971fbd.svg b/charting_library/bundles/b6a66bf5808bbb5de2d3bf45a5971fbd.svg new file mode 100644 index 00000000..40d18170 --- /dev/null +++ b/charting_library/bundles/b6a66bf5808bbb5de2d3bf45a5971fbd.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b755b85a9536ead06ef26ecd24724e0c.svg b/charting_library/bundles/b755b85a9536ead06ef26ecd24724e0c.svg new file mode 100644 index 00000000..e5e57a9f --- /dev/null +++ b/charting_library/bundles/b755b85a9536ead06ef26ecd24724e0c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b8b5ebf760eccf4bd10d0c3ccd100800.svg b/charting_library/bundles/b8b5ebf760eccf4bd10d0c3ccd100800.svg new file mode 100644 index 00000000..4f7f9774 --- /dev/null +++ b/charting_library/bundles/b8b5ebf760eccf4bd10d0c3ccd100800.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b9a5c368e039eba4bf66e0f75e899eb7.svg b/charting_library/bundles/b9a5c368e039eba4bf66e0f75e899eb7.svg new file mode 100644 index 00000000..6971894d --- /dev/null +++ b/charting_library/bundles/b9a5c368e039eba4bf66e0f75e899eb7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/b9ef74d4cc68a3ee92fc345b70753629.svg b/charting_library/bundles/b9ef74d4cc68a3ee92fc345b70753629.svg new file mode 100644 index 00000000..cb0d6a84 --- /dev/null +++ b/charting_library/bundles/b9ef74d4cc68a3ee92fc345b70753629.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ba436c3f80a5432a73402891d8ed04bf.svg b/charting_library/bundles/ba436c3f80a5432a73402891d8ed04bf.svg new file mode 100644 index 00000000..3155c328 --- /dev/null +++ b/charting_library/bundles/ba436c3f80a5432a73402891d8ed04bf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ba8de9bab341fb25cc068a78171500ba.svg b/charting_library/bundles/ba8de9bab341fb25cc068a78171500ba.svg new file mode 100644 index 00000000..3e220144 --- /dev/null +++ b/charting_library/bundles/ba8de9bab341fb25cc068a78171500ba.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/bbcdb3a466a748485f84b550145804dc.svg b/charting_library/bundles/bbcdb3a466a748485f84b550145804dc.svg new file mode 100644 index 00000000..86b6a622 --- /dev/null +++ b/charting_library/bundles/bbcdb3a466a748485f84b550145804dc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/bbd4456a4e25c099b7f49fe4f00e032f.svg b/charting_library/bundles/bbd4456a4e25c099b7f49fe4f00e032f.svg new file mode 100644 index 00000000..ddc2f52d --- /dev/null +++ b/charting_library/bundles/bbd4456a4e25c099b7f49fe4f00e032f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/bc4c0e86357177d9b1ed96f8568684d1.svg b/charting_library/bundles/bc4c0e86357177d9b1ed96f8568684d1.svg new file mode 100644 index 00000000..2cf1e87f --- /dev/null +++ b/charting_library/bundles/bc4c0e86357177d9b1ed96f8568684d1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/bdb5b8a0770dc62f8db3d518656ad60f.webp b/charting_library/bundles/bdb5b8a0770dc62f8db3d518656ad60f.webp new file mode 100644 index 00000000..919bab9c Binary files /dev/null and b/charting_library/bundles/bdb5b8a0770dc62f8db3d518656ad60f.webp differ diff --git a/charting_library/bundles/bf56aba49a57eba71be490bc83a7071c.svg b/charting_library/bundles/bf56aba49a57eba71be490bc83a7071c.svg new file mode 100644 index 00000000..ffae3a80 --- /dev/null +++ b/charting_library/bundles/bf56aba49a57eba71be490bc83a7071c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/bf89688b20c1bf96847619b6059daaf5.svg b/charting_library/bundles/bf89688b20c1bf96847619b6059daaf5.svg new file mode 100644 index 00000000..19be8552 --- /dev/null +++ b/charting_library/bundles/bf89688b20c1bf96847619b6059daaf5.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/blackfriday-dialog-impl.376e62a20f73b99b196d.js b/charting_library/bundles/blackfriday-dialog-impl.376e62a20f73b99b196d.js new file mode 100644 index 00000000..720c1913 --- /dev/null +++ b/charting_library/bundles/blackfriday-dialog-impl.376e62a20f73b99b196d.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7713,9725,4002],{41632:(e,t,o)=>{e.exports=o.p+"14a6b7583a58202c653c5ddbb6c9dca5.jpeg"},55266:(e,t,o)=>{e.exports=o.p+"cec10b6e9e7839abaff324919dae8402.webp"},42829:(e,t,o)=>{e.exports=o.p+"c9fe6a08de1ec5ba4f5ab0f80ce4d761.jpeg"},19385:(e,t,o)=>{e.exports=o.p+"bdb5b8a0770dc62f8db3d518656ad60f.webp"},52164:(e,t,o)=>{e.exports=o.p+"5ca11f2dcd2b23a00d19e2160797c25d.jpeg"},97918:(e,t,o)=>{e.exports=o.p+"98d0d092bc4bf410d77c985fe872f359.webp"},60017:(e,t,o)=>{e.exports=o.p+"fa0f0ffdb522cb20d692df5233f45074.jpeg"},12668:(e,t,o)=>{e.exports=o.p+"d716b83b8ba7ad3cbabcf91275c88711.webp"},47917:(e,t,o)=>{e.exports=o.p+"db0cca97f734763ceccce1e1c3c88430.jpeg"},45318:(e,t,o)=>{e.exports=o.p+"8a93b4ee0b50a4c92979c153ece2bcbd.webp"},24738:(e,t,o)=>{e.exports=o.p+"3b2b883e642979810780b787f4769e95.jpeg"},49990:(e,t,o)=>{e.exports=o.p+"9b07bb7dc3737b56b1b93989582dfcae.webp"},14523:(e,t,o)=>{e.exports=o.p+"7c1bfcd1b31737c6e9ec505673a6b3c7.jpeg"},33868:(e,t,o)=>{e.exports=o.p+"673445ed0114e00b2249801cf1fa2810.webp"},37309:(e,t,o)=>{e.exports=o.p+"eb8399f5df28ee8b30713ca340c7dd8e.jpeg"},62643:(e,t,o)=>{e.exports=o.p+"72c3a3b432d2ad933ee80184f0524e7c.webp"},29558:(e,t,o)=>{e.exports=o.p+"5212daa031fa87a8a8ff5860132af72a.jpeg"},50075:(e,t,o)=>{e.exports=o.p+"5097be3164fb04ace2889628055b01cb.webp"},70176:(e,t,o)=>{e.exports=o.p+"1e9f070f7e9ad9001725ada71182816b.jpeg"},86139:(e,t,o)=>{e.exports=o.p+"d6d0f38ab696185b41d6421c65541584.webp"},6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},27471:e=>{e.exports={background:"background-19guwtkm",page:"page-19guwtkm",picture:"picture-19guwtkm","background-img":"background-img-19guwtkm","vertical-stretch":"vertical-stretch-19guwtkm",center:"center-19guwtkm",bottom:"bottom-19guwtkm",source:"source-19guwtkm",gradient:"gradient-19guwtkm","banner-main":"banner-main-19guwtkm",banner:"banner-19guwtkm",dialog:"dialog-19guwtkm"}},8981:e=>{e.exports={"css-value-cybermonday-button":"#00e5ff", +"css-value-cybermonday-button-hover":"#00B8D4","css-value-cybermonday-button-focus-outline":"rgba(0, 229, 255, 0.8)","cyber-monday-button":"cyber-monday-button-YrzjxNPj","variant-primary":"variant-primary-YrzjxNPj","variant-secondary":"variant-secondary-YrzjxNPj"}},99323:e=>{e.exports={countdown:"countdown-MqLubNEz","offer-ends":"offer-ends-MqLubNEz"}},76880:e=>{e.exports={"css-value-blackfriday-attention":"#F23645","css-value-cybermonday-attention":"#00e5ff","up-to":"up-to-v4RmmzYp",off:"off-v4RmmzYp","free-month":"free-month-v4RmmzYp",cyber_monday:"cyber_monday-v4RmmzYp"}},8013:e=>{e.exports={"css-value-blackfriday-attention":"#F23645","css-value-cybermonday-attention":"#00e5ff",title:"title-sE9E93fC",cyber_monday:"cyber_monday-sE9E93fC",offer:"offer-sE9E93fC"}},21314:e=>{e.exports={banner:"banner-VFW2MkIn","in-dialog":"in-dialog-VFW2MkIn",container:"container-VFW2MkIn","title-group":"title-group-VFW2MkIn","actions-wrapper":"actions-wrapper-VFW2MkIn","learn-more":"learn-more-VFW2MkIn"}},41600:()=>{},83131:e=>{e.exports={"dialog-close":"dialog-close-VulYnFJT",close:"close-VulYnFJT","tv-dialog":"tv-dialog-VulYnFJT","tv-blackfriday-popup":"tv-blackfriday-popup-VulYnFJT","modal-body":"modal-body-VulYnFJT",banner:"banner-VulYnFJT"}},71036:(e,t,o)=>{"use strict";o.d(t,{SquareAnchorButton:()=>f,SquareButton:()=>u});var i=o(59496),s=o(97754),n=o(95604),a=o(9745),r=o(6539),l=o.n(r);function c(e){const{color:t="brand",size:o="medium",variant:i="primary",stretch:a=!1,icon:r,startIcon:c,endIcon:d,iconOnly:h=!1,className:p,isGrouped:m,cellState:u,disablePositionAdjustment:g=!1}=e,f=function(e){let t="";return 0!==e&&(1&e&&(t=s(t,l()["no-corner-top-left"])),2&e&&(t=s(t,l()["no-corner-top-right"])),4&e&&(t=s(t,l()["no-corner-bottom-right"])),8&e&&(t=s(t,l()["no-corner-bottom-left"]))),t}((0,n.getGroupCellRemoveRoundBorders)(u));return s(p,l().button,l()["size-"+o],l()["color-"+t],l()["variant-"+i],a&&l().stretch,(r||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],h&&l()["icon-only"],f,m&&l().grouped,m&&!g&&l()["adjust-position"],m&&u.isTop&&l()["first-row"],m&&u.isLeft&&l()["first-col"])}function d(e){const{size:t,startIcon:o,icon:s,iconOnly:n,children:r,endIcon:c}=e,d=null!=o?o:s;return i.createElement(i.Fragment,null,d&&"xsmall"!==t&&i.createElement(a.Icon,{icon:d,className:l()["start-icon-wrap"]}),r&&i.createElement("span",{className:l().content},r),c&&!n&&"xsmall"!==t&&i.createElement(a.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var h=o(86332),p=o(90186);function m(e){const{className:t,color:o,variant:i,size:s,stretch:n,animated:a,icon:r,iconOnly:l,startIcon:c,endIcon:d,...h}=e;return{...h,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function u(e){const{reference:t,...o}=e,{isGrouped:s,cellState:n,disablePositionAdjustment:a}=(0,i.useContext)(h.ControlGroupContext),r=c({...o,isGrouped:s,cellState:n,disablePositionAdjustment:a});return i.createElement("button",{...m(o),className:r,ref:t},i.createElement(d,{...o}))}function g(e){ +const{className:t,color:o,variant:i,size:s,stretch:n,animated:a,icon:r,iconOnly:l,startIcon:c,endIcon:d,...h}=e;return{...h,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function f(e){const{reference:t}=e,{isGrouped:o,cellState:s,disablePositionAdjustment:n}=(0,i.useContext)(h.ControlGroupContext),a=c({...e,isGrouped:o,cellState:s,disablePositionAdjustment:n});return i.createElement("a",{...g(e),className:a,ref:t},i.createElement(d,{...e}))}},86332:(e,t,o)=>{"use strict";o.d(t,{ControlGroupContext:()=>i});const i=o(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,o)=>{"use strict";function i(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}o.d(t,{getGroupCellRemoveRoundBorders:()=>i})},15784:(e,t,o)=>{"use strict";o.r(t),o.d(t,{showBlackFridayDialog:()=>re});var i=o(59496),s=o(87995),n=o(89725),a=o(51768),r=o(97754),l=o.n(r),c=o(28353),d=o(93299),h=o(71036),p=o(8981);function m(e){const{offerType:t,variant:o="primary"}=e;return t===d.OFFERS.cyber_monday?r(p["cyber-monday-button"],p["variant-"+o]):void 0}function u(e){const{offerType:t,children:o,onClick:s,href:n,stretch:a,variant:l="primary",className:c}=e;return i.createElement(h.SquareAnchorButton,{color:t===d.OFFERS.cyber_monday?"brand":"red",className:r(c,m(e)),stretch:a,onClick:s,variant:l,href:n,size:"xlarge","aria-label":e["aria-label"],animated:!0},o)}var g=o(8013);function f(e){const{offerType:t,className:o}=e,s=t===d.OFFERS.cyber_monday?c.t("Cyber Monday"):c.t("Black Friday"),n=c.t("{offer} sale").split(/{offer}/);return i.createElement("h1",{className:r(g.title,o,g[t])},n[0],i.createElement("span",{className:g.offer},s),n[1])}var b=o(76880);function v(e){return i.createElement("div",{className:r(e.className,b[e.offerType])},i.createElement(f,{offerType:e.offerType}),i.createElement("div",{className:b["up-to"]},(0,c.t)("Up to")),i.createElement("div",{className:b.off},(0,c.t)("60% OFF")),i.createElement("div",{className:b["free-month"]},(0,c.t)("+1 free month")))}var w,y=o(53746),k=o(82760),C=o(99323);function x(e){var t;return i.createElement("div",{className:r(C["countdown-group"],e.className)},i.createElement("div",{className:C["offer-ends"]},null!==(t=e.title)&&void 0!==t?t:(0,c.t)("Offer ends in")),i.createElement("div",{className:C.countdown},i.createElement(y.OfferCountdown,{expiration:e.expiration,size:"s",theme:e.offerType===d.OFFERS.cyber_monday?k.CountdownTheme.CyberMonday:k.CountdownTheme.BlackFriday})))}!function(e){e.Page="page",e.Banner="banner",e.Dialog="dialog",e.BannerMain="banner-main"}(w||(w={}));var j=o(86240),_=o(12668),$=o(60017),E=o(45318),S=o(47917),T=o(19385),F=o(42829),O=o(55266),z=o(41632),V=o(97918),N=o(52164);const B=[{jpeg:F,webp:T,media:j["media-mf-laptop"]},{jpeg:S,webp:E,media:j["media-mf-tablet-vertical"]},{jpeg:$,webp:_}],D=[{jpeg:z,webp:O}],Y=[{jpeg:z,webp:O}],I=[{jpeg:N,webp:V}],W={[w.Page]:B,[w.Banner]:D,[w.Dialog]:Y,[w.BannerMain]:I} +;var R=o(50075),K=o(29558),P=o(86139),M=o(70176),A=o(33868),L=o(14523),G=o(49990),q=o(24738),J=o(62643),H=o(37309);const U=[{jpeg:L,webp:A,media:j["media-mf-laptop"]},{jpeg:M,webp:P,media:j["media-mf-tablet-vertical"]},{jpeg:K,webp:R}],Q=[{jpeg:q,webp:G}],X=[{jpeg:q,webp:G}],Z=[{jpeg:H,webp:J}],ee={[w.Page]:U,[w.Banner]:Q,[w.Dialog]:X,[w.BannerMain]:Z};var te=o(27471);const oe=i.memo((function(e){const{offerType:t,theme:o=w.Page,verticalAlign:s="top",verticalStretch:n=!1}=e,a=t===d.OFFERS.cyber_monday?ee[o]:W[o];return i.createElement("div",{className:r(te.background,te[t],te[o],te[s],n&&te["vertical-stretch"])},i.createElement("picture",{className:te.picture,role:"presentation"},a.map((e,t)=>{var o;return i.createElement(i.Fragment,{key:`${null!==(o=e.media)&&void 0!==o?o:""}_${t}`},i.createElement("source",{media:e.media,srcSet:e.webp,type:"image/webp",className:te.source}),i.createElement("source",{media:e.media,srcSet:e.jpeg,type:"image/jpeg",className:te.source}))}),i.createElement("img",{src:a[a.length-1].jpeg,alt:"Background image",className:te["background-img"]})),i.createElement("div",{className:te.gradient}))}));o(41600);var ie=o(21314);const se=i.memo((function(e){const{inDialog:t,availableOffers:o,className:s,onLearnMore:n}=e,a=d.OFFERS.cyber_monday in o?d.OFFERS.cyber_monday:d.OFFERS.black_friday,l=d.OFFERS.cyber_monday in o?o[d.OFFERS.cyber_monday]:o[d.OFFERS.black_friday];if(!l)return i.createElement(i.Fragment,null);const h=r(ie.banner,s,e.inDialog&&ie["in-dialog"]);return i.createElement("div",{className:h},i.createElement(oe,{offerType:a,theme:t?w.Dialog:w.Banner,verticalAlign:"bottom"}),i.createElement("div",{className:ie.container},i.createElement(v,{offerType:a,className:ie["title-group"]}),i.createElement("div",{className:ie["actions-wrapper"]},i.createElement(x,{offerType:a,expiration:l.date_end}),i.createElement(u,{href:"/black-friday/",offerType:a,onClick:n,"aria-label":c.t("Learn more"),className:ie["learn-more"]},c.t("Explore offers")))))}));var ne=o(9481),ae=o(83131);function re(){const e=(0,n.createDialog)({type:"modal",width:920,destroyOnClose:!0,closeOnOutsideClick:!1,containerTemplate:`
`,contentWrapTemplate:"
",closeButtonTemplate:`
${o(12565)}
`});return e.on("beforeOpen",e=>{const t=t=>{t.preventDefault(),(0,a.trackEvent)("Black Friday","BF pop-up Buy now"),window.open("/black-friday/","_blank"),e.destroy()};s.render(i.createElement("div",null,i.createElement(ne.KeyboardDocumentListener,{keyCode:13,handler:t}),i.createElement(se,{availableOffers:window.user.available_offers,className:ae.banner,onLearnMore:t,inDialog:!0})),e.$content.get(0))}),e.on("beforeClose",e=>{s.unmountComponentAtNode(e.$content.get(0))}),e.on("afterClose",()=>{(0,a.trackEvent)("Black Friday","BF pop-up close")}),e.open(),e}},89725:(e,t,o)=>{"use strict";o.r(t), +o.d(t,{createDialog:()=>n});var i=o(976),s=o(77544);function n(e){const t=e.type||"popup";return delete e.type,"modal"===t?new i.TVModal(e):new s.TVPopup(e)}},976:(e,t,o)=>{"use strict";o.d(t,{TVModal:()=>g});var i=o(28353),s=o(68587),n=o(49483),a=o(43989),r=o(51536),l=o(4185),c=o(85739),d=o(25760),h=o(23127),p=o(25977);let m=[];const u={ajax:{},closingDuration:s.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,i.t)("Error")}
`};class g extends r.TVDialogAbstract{constructor(e={}){if(super({...u,...e}),this.$overlay=h(this.options.overlayTemplate),this.$modalWrap=h(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(e=>{this.isEventOut(e)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const e=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(e,this.options.closingDuration)):e()}),this.on("beforeOpen",()=>{m.push(this)}),this.options.ajax.url){const e=this.options.ajax.beforeSend||h.noop,t=this.options.ajax.success||!1,o=this.options.ajax.error||h.noop;h.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),e(this)},success:e=>{this.trigger("afterLoading",[this]),this.renderContent(t?t(this,e):e).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),o(this),this.trigger("errorLoading",[this])}})}this.on("error",(e,t)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const e=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),h(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=h.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>e(),50):e(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&c.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null), +this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),m=p.without(m,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),m.length>0&&m[m.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*s.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},77544:(e,t,o)=>{"use strict";o.d(t,{TVPopup:()=>m});var i=o(68587),s=o(52150),n=o(51536),a=o(30812),r=o(35190),l=o(25760),c=o(23127);const d=c("body"),h=c(window),p={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class m extends n.TVDialogAbstract{constructor(e={}){super({...p,...e}),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(c(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(c(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new a.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const t=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=l.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(c(document).on("mousedown touchstart",()=>{this._preventClick=!1}),c(document).on("click.tv-popup-"+t,e=>{if(this._preventClick)return;const t=c(e.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===t.length)&&this.isEventOut(e)&&this.close()}))},0)}),this.on("beforeClose",()=>c(document).off("click.tv-popup-"+t))),this.on("change:zIndex",()=>{this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const e=()=>{this.$el.remove(),this._hotkeys.destroy()} +;this.opened?(this.close(),setTimeout(e,i.dur/2)):e()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const e=h.height(),t=h.width(),o=this.$el.height(),i=this.$el.width();let s=this.options.position;return s||(s={top:e/2-o/2,left:t/2-i/2}),s.top>e-o&&(s.top=e-o),s.left>t-i&&(s.left=t-i),s.top<10&&(s.top=10),s.left<10&&(s.left=10),s})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,r.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(e,t)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),h.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,r.lazyJqueryUI)(this.$el).draggable("instance").then(e=>{e&&e.destroy()}),this.$el.addClass("i-hidden").detach(),d.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),h.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const e=this.$el[0].getBoundingClientRect(),t={};e.bottom>s.mediaState.height-10&&(t.top=s.mediaState.height-10-e.height,t.top<10&&(t.top=10)),e.right>s.mediaState.width-10&&(t.left=s.mediaState.width-10-e.width,t.left<10&&(t.left=10)),(t.top||t.left)&&this.$el.css(t)}calcHeight(){const e=this.$el[0].getBoundingClientRect(),t=this.$scrollWrapInner[0].getBoundingClientRect(),o=this.$scrollWrap[0].getBoundingClientRect();let i=this.options.height&&this.options.heighti)&&(i-=e.height-o.height,i<60&&(i=60),this.$scrollWrap.css({height:i})),this.options.withScroll&&this.scroll.resize();const a=i{"use strict";o.d(t,{mediaState:()=>c});var i=o(85459),s=o.n(i),n=o(69677),a=o(74664),r=o(68722);class l extends(s()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=a.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice), +Object.entries(a.breakpoints).sort(([e,t],[o,i])=>t-i).forEach(([e,t],o,i)=>{let s;if(0!==o){const[,e]=i[o-1];s=e+1}else s=0;const n=(0,r.matchMediaMinMax)(s,t);n.matches&&this._setNewDevice(e),n.addListener(t=>{t.matches&&(this._checkDevice(),this._setNewDevice(e))})}),(0,n.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(e){const t=this.device;this.device=e,this.trigger("changeDevice",[e,t])}}const c=new l},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","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)"}')}}]); \ No newline at end of file diff --git a/charting_library/bundles/c229767ec3f6e517744b027e36b24831.svg b/charting_library/bundles/c229767ec3f6e517744b027e36b24831.svg new file mode 100644 index 00000000..6c3f73f0 --- /dev/null +++ b/charting_library/bundles/c229767ec3f6e517744b027e36b24831.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c26643f969ec665d63ddfe7dbcf16871.svg b/charting_library/bundles/c26643f969ec665d63ddfe7dbcf16871.svg new file mode 100644 index 00000000..a6b615d1 --- /dev/null +++ b/charting_library/bundles/c26643f969ec665d63ddfe7dbcf16871.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c2a5c0fb8c6ef112474fde18c2946640.svg b/charting_library/bundles/c2a5c0fb8c6ef112474fde18c2946640.svg new file mode 100644 index 00000000..1482f621 --- /dev/null +++ b/charting_library/bundles/c2a5c0fb8c6ef112474fde18c2946640.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c33468197e6cfac63316a6cd3a67cd6c.svg b/charting_library/bundles/c33468197e6cfac63316a6cd3a67cd6c.svg new file mode 100644 index 00000000..eea7af92 --- /dev/null +++ b/charting_library/bundles/c33468197e6cfac63316a6cd3a67cd6c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c3bf6a8b432dba36fcdb79e0e7b892e4.svg b/charting_library/bundles/c3bf6a8b432dba36fcdb79e0e7b892e4.svg new file mode 100644 index 00000000..0d207458 --- /dev/null +++ b/charting_library/bundles/c3bf6a8b432dba36fcdb79e0e7b892e4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c3e25206d17a8de5275c5c18c6377d52.svg b/charting_library/bundles/c3e25206d17a8de5275c5c18c6377d52.svg new file mode 100644 index 00000000..3ad0e8e6 --- /dev/null +++ b/charting_library/bundles/c3e25206d17a8de5275c5c18c6377d52.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c416c4db2f76c13e5cfb1cd73b057264.svg b/charting_library/bundles/c416c4db2f76c13e5cfb1cd73b057264.svg new file mode 100644 index 00000000..f9f635ad --- /dev/null +++ b/charting_library/bundles/c416c4db2f76c13e5cfb1cd73b057264.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c4978c8d35ff46ddde11765f574e2586.svg b/charting_library/bundles/c4978c8d35ff46ddde11765f574e2586.svg new file mode 100644 index 00000000..8c77b43e --- /dev/null +++ b/charting_library/bundles/c4978c8d35ff46ddde11765f574e2586.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c4ba5e799038b2fac1d8a5cee58aac2d.svg b/charting_library/bundles/c4ba5e799038b2fac1d8a5cee58aac2d.svg new file mode 100644 index 00000000..f28035a1 --- /dev/null +++ b/charting_library/bundles/c4ba5e799038b2fac1d8a5cee58aac2d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c5bcb60600a07405427fb25b45bc6e53.svg b/charting_library/bundles/c5bcb60600a07405427fb25b45bc6e53.svg new file mode 100644 index 00000000..2417a94e --- /dev/null +++ b/charting_library/bundles/c5bcb60600a07405427fb25b45bc6e53.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c65f8d4a514fd5839e611a6c7f146acb.svg b/charting_library/bundles/c65f8d4a514fd5839e611a6c7f146acb.svg new file mode 100644 index 00000000..47514c2b --- /dev/null +++ b/charting_library/bundles/c65f8d4a514fd5839e611a6c7f146acb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c6c91cffc0948504960b9ffa03ec3eb8.svg b/charting_library/bundles/c6c91cffc0948504960b9ffa03ec3eb8.svg new file mode 100644 index 00000000..0810c302 --- /dev/null +++ b/charting_library/bundles/c6c91cffc0948504960b9ffa03ec3eb8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c7232e3bcddb5cf2fedab803b86d4e88.svg b/charting_library/bundles/c7232e3bcddb5cf2fedab803b86d4e88.svg new file mode 100644 index 00000000..b84de633 --- /dev/null +++ b/charting_library/bundles/c7232e3bcddb5cf2fedab803b86d4e88.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c7b2bfd6a12a1c0991a575c3b31ad7b6.svg b/charting_library/bundles/c7b2bfd6a12a1c0991a575c3b31ad7b6.svg new file mode 100644 index 00000000..c418a240 --- /dev/null +++ b/charting_library/bundles/c7b2bfd6a12a1c0991a575c3b31ad7b6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c7c3797c2ad50f90c7c5e767a4822af2.svg b/charting_library/bundles/c7c3797c2ad50f90c7c5e767a4822af2.svg new file mode 100644 index 00000000..7d49ee8e --- /dev/null +++ b/charting_library/bundles/c7c3797c2ad50f90c7c5e767a4822af2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c8d5bc45cecd625d597da5bc33011da7.svg b/charting_library/bundles/c8d5bc45cecd625d597da5bc33011da7.svg new file mode 100644 index 00000000..480b080c --- /dev/null +++ b/charting_library/bundles/c8d5bc45cecd625d597da5bc33011da7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/c9fe6a08de1ec5ba4f5ab0f80ce4d761.jpeg b/charting_library/bundles/c9fe6a08de1ec5ba4f5ab0f80ce4d761.jpeg new file mode 100644 index 00000000..5b506313 Binary files /dev/null and b/charting_library/bundles/c9fe6a08de1ec5ba4f5ab0f80ce4d761.jpeg differ diff --git a/charting_library/bundles/ca21ee51c72ab8851ed796a469ec00b8.svg b/charting_library/bundles/ca21ee51c72ab8851ed796a469ec00b8.svg new file mode 100644 index 00000000..cd508408 --- /dev/null +++ b/charting_library/bundles/ca21ee51c72ab8851ed796a469ec00b8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cab55de6e22849402b5982a8e390c8fb.svg b/charting_library/bundles/cab55de6e22849402b5982a8e390c8fb.svg new file mode 100644 index 00000000..918c4fc8 --- /dev/null +++ b/charting_library/bundles/cab55de6e22849402b5982a8e390c8fb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cbd8834b7f336d8d6aa529e87ea89c5d.svg b/charting_library/bundles/cbd8834b7f336d8d6aa529e87ea89c5d.svg new file mode 100644 index 00000000..14ec52cf --- /dev/null +++ b/charting_library/bundles/cbd8834b7f336d8d6aa529e87ea89c5d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cc72d282b465b57676eca56e46cf1e8c.svg b/charting_library/bundles/cc72d282b465b57676eca56e46cf1e8c.svg new file mode 100644 index 00000000..a0302715 --- /dev/null +++ b/charting_library/bundles/cc72d282b465b57676eca56e46cf1e8c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ccac1949542b285e1ce6a4fe7f67d942.svg b/charting_library/bundles/ccac1949542b285e1ce6a4fe7f67d942.svg new file mode 100644 index 00000000..a5813109 --- /dev/null +++ b/charting_library/bundles/ccac1949542b285e1ce6a4fe7f67d942.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cd8614eed2c9ecd0111030d6ae43b07c.svg b/charting_library/bundles/cd8614eed2c9ecd0111030d6ae43b07c.svg new file mode 100644 index 00000000..52e1561f --- /dev/null +++ b/charting_library/bundles/cd8614eed2c9ecd0111030d6ae43b07c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cddf3ae477d555d4eed060347c2268eb.svg b/charting_library/bundles/cddf3ae477d555d4eed060347c2268eb.svg new file mode 100644 index 00000000..ee04f3b2 --- /dev/null +++ b/charting_library/bundles/cddf3ae477d555d4eed060347c2268eb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/cddf468f55cf701e442982e83f9a67f6.woff2 b/charting_library/bundles/cddf468f55cf701e442982e83f9a67f6.woff2 new file mode 100644 index 00000000..ebfb832d Binary files /dev/null and b/charting_library/bundles/cddf468f55cf701e442982e83f9a67f6.woff2 differ diff --git a/charting_library/bundles/cec10b6e9e7839abaff324919dae8402.webp b/charting_library/bundles/cec10b6e9e7839abaff324919dae8402.webp new file mode 100644 index 00000000..03a31f1c Binary files /dev/null and b/charting_library/bundles/cec10b6e9e7839abaff324919dae8402.webp differ diff --git a/charting_library/bundles/cf8abee42c4cb03e0a2105caec8909eb.svg b/charting_library/bundles/cf8abee42c4cb03e0a2105caec8909eb.svg new file mode 100644 index 00000000..bb911ad4 --- /dev/null +++ b/charting_library/bundles/cf8abee42c4cb03e0a2105caec8909eb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/change-interval-dialog.79c9929e7fd0b7e6c245.js b/charting_library/bundles/change-interval-dialog.79c9929e7fd0b7e6c245.js new file mode 100644 index 00000000..091dc98e --- /dev/null +++ b/charting_library/bundles/change-interval-dialog.79c9929e7fd0b7e6c245.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2077],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},86605:e=>{e.exports={dialog:"dialog-LHVt4Nih",dialogInner:"dialogInner-LHVt4Nih",titleWrapper:"titleWrapper-LHVt4Nih",title:"title-LHVt4Nih",infoHint:"infoHint-LHVt4Nih",form:"form-LHVt4Nih",inputWrapper:"inputWrapper-LHVt4Nih",input:"input-LHVt4Nih",hint:"hint-LHVt4Nih",error:"error-LHVt4Nih"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>y,InputClasses:()=>f});var o=n(59496),r=n(97754),i=n(88537),s=n(66092),l=n(90186),a=n(86332),u=n(95604);var c=n(21103),d=n.n(c);function p(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function h(e,t,n,o){const{removeRoundBorder:i,className:s,intent:l="default",borderStyle:a="thin",size:c,highlight:h,disabled:g,readonly:f,stretch:m,noReadonlyStyles:v,isFocused:y}=e,w=p(null!=i?i:(0,u.getGroupCellRemoveRoundBorders)(n)) +;return r(d().container,d()["intent-"+l],d()["border-"+a],c&&d()["size-"+c],w,h&&d()["with-highlight"],g&&d().disabled,f&&!v&&d().readonly,y&&d().focused,m&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function g(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const i=p(null!=o?o:(0,u.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,i)}const f={FontSizeMedium:(0,i.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,i.ensureDefined)(d()["font-size-large"])},m={passive:!1};function v(e,t){const{id:n,role:r,onFocus:i,onBlur:u,onMouseOver:c,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:v,onClick:y,tabIndex:w,startSlot:C,middleSlot:b,endSlot:S,onWheel:E,onWheelNoPassive:x=null}=e,{isGrouped:M,cellState:N,disablePositionAdjustment:_=!1}=(0,o.useContext)(a.ControlGroupContext),I=function(e,t=null,n){const r=(0,o.useRef)(null),i=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.addEventListener(e,t,n)},[]),l=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{l(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(i.current=[e,t,n],s(),l),[e,t,n]),a}("wheel",x,m);return o.createElement("span",{id:n,role:r,className:h(e,M,N,_),tabIndex:w,ref:(0,s.useMergedRefs)([t,I]),onFocus:i,onBlur:u,onMouseOver:c,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:v,onClick:y,onWheel:E,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},C,b,S,o.createElement("span",{className:g(e,N)}))}v.displayName="ControlSkeleton";const y=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{BeforeSlot:()=>l,StartSlot:()=>a,MiddleSlot:()=>u,EndSlot:()=>c,AfterSlot:()=>d});var o=n(59496),r=n(97754),i=n(10306),s=n.n(i);function l(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["before-slot"],t)},n)}function a(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function c(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function d(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>y});var o=n(59496),r=n(97754),i=n(90186),s=n(47201),l=n(48907),a=n(66092),u=n(48027),c=n(29202),d=n(45812),p=n(67029),h=n(78274),g=n(66579),f=n.n(g);function m(e){return!(0,i.isAriaAttribute)(e)&&!(0,i.isDataAttribute)(e)}function v(e){ +const{id:t,title:n,role:s,tabIndex:l,placeholder:a,name:u,type:c,value:d,defaultValue:g,draggable:v,autoComplete:y,autoFocus:w,maxLength:C,min:b,max:S,step:E,pattern:x,inputMode:M,onSelect:N,onFocus:_,onBlur:I,onKeyDown:D,onKeyUp:L,onKeyPress:R,onChange:O,onDragStart:j,size:k="medium",className:W,inputClassName:F,disabled:A,readonly:H,containerTabIndex:V,startSlot:z,endSlot:P,reference:B,containerReference:T,onContainerFocus:U,...G}=e,K=(0,i.filterProps)(G,m),q={...(0,i.filterAriaProps)(G),...(0,i.filterDataProps)(G),id:t,title:n,role:s,tabIndex:l,placeholder:a,name:u,type:c,value:d,defaultValue:g,draggable:v,autoComplete:y,autoFocus:w,maxLength:C,min:b,max:S,step:E,pattern:x,inputMode:M,onSelect:N,onFocus:_,onBlur:I,onKeyDown:D,onKeyUp:L,onKeyPress:R,onChange:O,onDragStart:j};return o.createElement(p.ControlSkeleton,{...K,disabled:A,readonly:H,tabIndex:V,className:r(f().container,W),size:k,ref:T,onFocus:U,startSlot:z,middleSlot:o.createElement(h.MiddleSlot,null,o.createElement("input",{...q,className:r(f().input,F,z&&f()["with-start-slot"],P&&f()["with-end-slot"]),disabled:A,readOnly:H,ref:B})),endSlot:P})}function y(e){e=(0,u.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:i,onBlur:p,reference:h,containerReference:g=null}=e,f=(0,o.useRef)(null),m=(0,o.useRef)(null),[y,w]=(0,c.useFocus)(),C=t?void 0:y?-1:r,b=t?void 0:y?r:-1,{isMouseDown:S,handleMouseDown:E,handleMouseUp:x}=(0,d.useIsMouseDown)(),M=(0,s.createSafeMulticastEventHandler)(w.onFocus,(function(e){n&&!S.current&&(0,l.selectAllContent)(e.currentTarget)}),i),N=(0,s.createSafeMulticastEventHandler)(w.onBlur,p),_=(0,o.useCallback)(e=>{f.current=e,h&&("function"==typeof h&&h(e),"object"==typeof h&&(h.current=e))},[f,h]);return o.createElement(v,{...e,isFocused:y,containerTabIndex:C,tabIndex:b,onContainerFocus:function(e){m.current===e.target&&null!==f.current&&f.current.focus()},onFocus:M,onBlur:N,reference:_,containerReference:(0,a.useMergedRefs)([m,g]),onMouseDown:E,onMouseUp:x})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>i});var o=n(47201),r=n(29202);function i(e){const{onFocus:t,onBlur:n,intent:i,highlight:s,disabled:l}=e,[a,u]=(0,r.useFocus)(void 0,l),c=(0,o.createSafeMulticastEventHandler)(l?void 0:u.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(l?void 0:u.onBlur,n);return{...e,intent:i||(a?"primary":"default"),highlight:null!=s?s:a,onFocus:c,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const i={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,i]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r}) +;var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(59496);const r=o.forwardRef((e,t)=>{const{icon:n="",...r}=e;return o.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function o(e){return i(e,s)}function r(e){return i(e,l)}function i(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function l(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>o,filterAriaProps:()=>r,filterProps:()=>i,isDataAttribute:()=>s,isAriaAttribute:()=>l})},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},30349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showChangeIntervalDialog:()=>E});var o=n(59496),r=n(87995),i=n(97754),s=n.n(i),l=n(28353),a=n(31261),u=n(67029),c=n(82992),d=n(81e3),p=n(9745),h=n(60495);const g=(0,l.t)("Type the interval number for minute charts (i.e. 5 if it is going to be a five minute chart). Or number plus letter for H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)"),f=(0,l.t)("Type the interval number for minute charts (i.e. 5 if it's going to be a five minute chart). Or number plus letter for other intervals: S for 1 second chart (15S for 15 second chart, etc.), H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)");function m(e){const{className:t,isSecondsEnabled:n}=e;return o.createElement(p.Icon,{icon:h,className:s()("apply-common-tooltip",t),title:n?f:g})}var v=n(38318),y=n(9315);var w=n(29823),C=n(86605);function b(e){const{initVal:t,selectOnInit:n,onClose:r}=e,i=(0,o.useRef)(null),[p,h]=(0,o.useState)(t.toUpperCase()),g=(0,o.useMemo)(()=>(0,v.parseIntervalValue)(p),[p]),f=function(e,t){return(0,o.useMemo)(()=>{let n=!t.error&&(0,v.intervalIsSupported)(e);if(!n)return!1;const o=t.unit;if("R"===o&&t.qty>(0,y.getMaxResolutionValue)("R"))n=!1;else if(null===o||"H"===o){t.qty*("H"===o?60:1)>(0,y.getMaxResolutionValue)("1")&&(n=!1)}else"S"===o?t.qty>(0,y.getMaxResolutionValue)("S")&&(n=!1):"T"===o&&1!==t.qty&&(n=!1);return n},[e,t])}(p,g),b=(0,o.useMemo)(()=>{if(!f)return null;const e=g.qty+(g.unit||"");return(0,y.getTranslatedResolutionModel)(e).hint},[f,g]);return(0,o.useLayoutEffect)(()=>{var e,t;n?null===(e=i.current)||void 0===e||e.select():null===(t=i.current)||void 0===t||t.focus()},[n]),o.createElement(d.PopupDialog,{className:C.dialog,"data-dialog-name":"change-interval-dialog",isOpened:!0,onClickOutside:r,onFocus:function(){var e;null===(e=i.current)||void 0===e||e.focus()},onKeyDown:function(e){27===e.keyCode&&(null==r||r())}},o.createElement("div",{className:C.dialogInner},o.createElement("div",{className:C.titleWrapper +},o.createElement("div",{className:C.title},(0,l.t)("Change interval")),o.createElement(m,{className:C.infoHint,isSecondsEnabled:(0,y.isSecondsEnabled)()})),o.createElement("form",{className:C.form,onSubmit:function(e){e.preventDefault();const t=c.linking.interval.value(),n=w.Interval.normalize(p);n&&t!==n&&f&&(o=n,(0,y.setLastUsedResolution)(o),c.linking.interval.setValue(o));var o;null==r||r()}},o.createElement(a.InputControl,{className:s()(C.inputWrapper,u.InputClasses.FontSizeLarge),inputClassName:C.input,type:"text",size:"large",reference:i,value:p,maxLength:8,intent:f?void 0:"danger",onChange:function(e){const{value:t}=e.target;h(t.toUpperCase())}})),f?o.createElement("div",{className:C.hint},b):o.createElement("div",{className:s()(C.hint,C.error)},(0,l.t)("Not applicable"))))}var S=n(51826);function E(e){if(S.dialogsOpenerManager.isOpened("ChangeIntervalDialog")||S.dialogsOpenerManager.isOpened("SymbolSearch"))return;const t=document.createElement("div"),{initVal:n,selectOnInit:i,onClose:s}=e,l=o.createElement(b,{initVal:n,selectOnInit:i,onClose:function(){r.unmountComponentAtNode(t),S.dialogsOpenerManager.setAsClosed("ChangeIntervalDialog"),null==s||s()}});r.render(l,t),S.dialogsOpenerManager.setAsOpened("ChangeIntervalDialog")}},39640:(e,t,n)=>{"use strict";function o(e,t,n,o,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),()=>{o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,{addOutsideEventListener:()=>o})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>o,matchMediaMinMax:()=>r,setStyle:()=>i,getCSSProperty:()=>s,getCSSPropertyNumericValue:()=>l});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-s}return e}})();function r(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function s(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(s(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>s});var o=n(68722);let r=0,i=!1;function s(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,o.getCSSProperty)(t,"overflow"),r=(0,o.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0, +o.setStyle)(n,"right",(0,o.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,o.getScrollbarWidth)()+"px",i=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),i)){(0,o.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,o.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",i=!1}}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>o,dialogsOpenerManager:()=>r});class o{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const r=new o},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>i});var o=n(59496),r=n(39640);function i(e){const{click:t,mouseDown:n,touchEnd:i,touchStart:s,handler:l,reference:a,ownerDocument:u=document}=e,c=(0,o.useRef)(null),d=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:s},o=a?a.current:c.current;return(0,r.addOutsideEventListener)(d.current,o,l,u,e)},[t,n,i,s,l]),a||c}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>r});var o=n(58095);function r(e){const{children:t,...n}=e;return t((0,o.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>i,getRootOverlapManager:()=>l});var o=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class i{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}} +removeWindow(e){this.unregisterWindow(e)}}const s=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(s.get(t));{const t=new i(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>i});var o=n(59496),r=n(65718);function i(e){return class extends o.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const i=o.createElement(e,{...this.props,zIndex:150});return"parent"===n?i:o.createElement(r.Portal,null,i)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>u});var o=n(59496),r=n(87995),i=n(9423),s=n(88216),l=n(50655);class a extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,i.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(o.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,s.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const u=o.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var o=n(59496);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=o.createContext(null)},60495:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/change-interval-dialog.d42e666ed16322d7bc67.js b/charting_library/bundles/change-interval-dialog.d42e666ed16322d7bc67.js deleted file mode 100644 index 64f7a279..00000000 --- a/charting_library/bundles/change-interval-dialog.d42e666ed16322d7bc67.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2077],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},86605:e=>{e.exports={dialog:"dialog-LHVt4Nih",dialogInner:"dialogInner-LHVt4Nih",titleWrapper:"titleWrapper-LHVt4Nih",title:"title-LHVt4Nih",infoHint:"infoHint-LHVt4Nih",form:"form-LHVt4Nih",inputWrapper:"inputWrapper-LHVt4Nih",input:"input-LHVt4Nih",hint:"hint-LHVt4Nih",error:"error-LHVt4Nih"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>y,InputClasses:()=>f});var o=n(59496),r=n(97754),i=n(88537),s=n(66092),l=n(90186),a=n(86332),u=n(95604);var c=n(21103),d=n.n(c);function p(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function g(e,t,n,o){const{removeRoundBorder:i,className:s,intent:l="default",borderStyle:a="thin",size:c,highlight:g,disabled:h,readonly:f,stretch:m,noReadonlyStyles:v,isFocused:y}=e,w=p(null!=i?i:(0,u.getGroupCellRemoveRoundBorders)(n)) -;return r(d().container,d()["intent-"+l],d()["border-"+a],c&&d()["size-"+c],w,g&&d()["with-highlight"],h&&d().disabled,f&&!v&&d().readonly,y&&d().focused,m&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function h(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const i=p(null!=o?o:(0,u.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,i)}const f={FontSizeMedium:(0,i.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,i.ensureDefined)(d()["font-size-large"])},m={passive:!1};function v(e,t){const{id:n,role:r,onFocus:i,onBlur:u,onMouseOver:c,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:v,onClick:y,tabIndex:w,startSlot:C,middleSlot:b,endSlot:E,onWheel:x,onWheelNoPassive:S=null}=e,{isGrouped:M,cellState:_,disablePositionAdjustment:N=!1}=(0,o.useContext)(a.ControlGroupContext),D=function(e,t=null,n){const r=(0,o.useRef)(null),i=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.addEventListener(e,t,n)},[]),l=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{l(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(i.current=[e,t,n],s(),l),[e,t,n]),a}("wheel",S,m);return o.createElement("span",{id:n,role:r,className:g(e,M,_,N),tabIndex:w,ref:(0,s.useMergedRefs)([t,D]),onFocus:i,onBlur:u,onMouseOver:c,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:v,onClick:y,onWheel:x,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},C,b,E,o.createElement("span",{className:h(e,_)}))}v.displayName="ControlSkeleton";const y=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{StartSlot:()=>l,MiddleSlot:()=>a,EndSlot:()=>u,AfterSlot:()=>c});var o=n(59496),r=n(97754),i=n(10306),s=n.n(i);function l(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function a(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>y});var o=n(59496),r=n(97754),i=n(90186),s=n(47201),l=n(48907),a=n(66092),u=n(48027),c=n(29202),d=n(45812),p=n(67029),g=n(78274),h=n(66579),f=n.n(h);function m(e){return!(0,i.isAriaAttribute)(e)&&!(0,i.isDataAttribute)(e)}function v(e){ -const{id:t,title:n,role:s,tabIndex:l,placeholder:a,name:u,type:c,value:d,defaultValue:h,draggable:v,autoComplete:y,autoFocus:w,maxLength:C,min:b,max:E,step:x,pattern:S,inputMode:M,onSelect:_,onFocus:N,onBlur:D,onKeyDown:I,onKeyUp:L,onKeyPress:R,onChange:O,onDragStart:j,size:k="medium",className:F,inputClassName:A,disabled:H,readonly:W,containerTabIndex:V,startSlot:z,endSlot:B,reference:P,containerReference:T,onContainerFocus:U,...G}=e,K=(0,i.filterProps)(G,m),q={...(0,i.filterAriaProps)(G),...(0,i.filterDataProps)(G),id:t,title:n,role:s,tabIndex:l,placeholder:a,name:u,type:c,value:d,defaultValue:h,draggable:v,autoComplete:y,autoFocus:w,maxLength:C,min:b,max:E,step:x,pattern:S,inputMode:M,onSelect:_,onFocus:N,onBlur:D,onKeyDown:I,onKeyUp:L,onKeyPress:R,onChange:O,onDragStart:j};return o.createElement(p.ControlSkeleton,{...K,disabled:H,readonly:W,tabIndex:V,className:r(f().container,F),size:k,ref:T,onFocus:U,startSlot:z,middleSlot:o.createElement(g.MiddleSlot,null,o.createElement("input",{...q,className:r(f().input,A,z&&f()["with-start-slot"],B&&f()["with-end-slot"]),disabled:H,readOnly:W,ref:P})),endSlot:B})}function y(e){e=(0,u.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:i,onBlur:p,reference:g,containerReference:h=null}=e,f=(0,o.useRef)(null),m=(0,o.useRef)(null),[y,w]=(0,c.useFocus)(),C=t?void 0:y?-1:r,b=t?void 0:y?r:-1,{isMouseDown:E,handleMouseDown:x,handleMouseUp:S}=(0,d.useIsMouseDown)(),M=(0,s.createSafeMulticastEventHandler)(w.onFocus,(function(e){n&&!E.current&&(0,l.selectAllContent)(e.currentTarget)}),i),_=(0,s.createSafeMulticastEventHandler)(w.onBlur,p),N=(0,o.useCallback)(e=>{f.current=e,g&&("function"==typeof g&&g(e),"object"==typeof g&&(g.current=e))},[f,g]);return o.createElement(v,{...e,isFocused:y,containerTabIndex:C,tabIndex:b,onContainerFocus:function(e){m.current===e.target&&null!==f.current&&f.current.focus()},onFocus:M,onBlur:_,reference:N,containerReference:(0,a.useMergedRefs)([m,h]),onMouseDown:x,onMouseUp:S})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>i});var o=n(47201),r=n(29202);function i(e){const{onFocus:t,onBlur:n,intent:i,highlight:s,disabled:l}=e,[a,u]=(0,r.useFocus)(void 0,l),c=(0,o.createSafeMulticastEventHandler)(l?void 0:u.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(l?void 0:u.onBlur,n);return{...e,intent:i||(a?"primary":"default"),highlight:null!=s?s:a,onFocus:c,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const i={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,i]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r}) -;var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(59496);const r=o.forwardRef((e,t)=>{const{icon:n="",...r}=e;return o.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function o(e){return i(e,s)}function r(e){return i(e,l)}function i(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function l(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>o,filterAriaProps:()=>r,filterProps:()=>i,isDataAttribute:()=>s,isAriaAttribute:()=>l})},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},30349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showChangeIntervalDialog:()=>x});var o=n(59496),r=n(87995),i=n(97754),s=n.n(i),l=n(28353),a=n(31261),u=n(67029),c=n(82992),d=n(63016),p=n(9745),g=n(60495);const h=(0,l.t)("Type the interval number for minute charts (i.e. 5 if it is going to be a five minute chart). Or number plus letter for H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)"),f=(0,l.t)("Type the interval number for minute charts (i.e. 5 if it's going to be a five minute chart). Or number plus letter for other intervals: S for 1 second chart (15S for 15 second chart, etc.), H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)");function m(e){const{className:t,isSecondsEnabled:n}=e;return o.createElement(p.Icon,{icon:g,className:s()("apply-common-tooltip",t),title:n?f:h})}var v=n(38318),y=n(9315);var w=n(29823),C=n(86605);function b(e){const{initVal:t,selectOnInit:n,onClose:r}=e,i=(0,o.useRef)(null),[p,g]=(0,o.useState)(t.toUpperCase()),h=(0,o.useMemo)(()=>(0,v.parseIntervalValue)(p),[p]),f=function(e,t){return(0,o.useMemo)(()=>{let n=!t.error&&(0,v.intervalIsSupported)(e);if(!n)return!1;const o=t.unit;if("R"===o&&t.qty>(0,y.getMaxResolutionValue)("R"))n=!1;else if(null===o||"H"===o){t.qty*("H"===o?60:1)>(0,y.getMaxResolutionValue)("1")&&(n=!1)}else"S"===o?t.qty>(0,y.getMaxResolutionValue)("S")&&(n=!1):"T"===o&&1!==t.qty&&(n=!1);return n},[e,t])}(p,h),b=(0,o.useMemo)(()=>{if(!f)return null;const e=h.qty+(h.unit||"");return(0,y.getTranslatedResolutionModel)(e).hint},[f,h]);return(0,o.useLayoutEffect)(()=>{var e,t;n?null===(e=i.current)||void 0===e||e.select():null===(t=i.current)||void 0===t||t.focus()},[n]),o.createElement(d.PopupDialog,{className:C.dialog,"data-dialog-name":"change-interval-dialog",isOpened:!0,onClickOutside:r,onFocus:function(){var e;null===(e=i.current)||void 0===e||e.focus()},onKeyDown:function(e){27===e.keyCode&&(null==r||r())}},o.createElement("div",{className:C.dialogInner},o.createElement("div",{className:C.titleWrapper -},o.createElement("div",{className:C.title},(0,l.t)("Change interval")),o.createElement(m,{className:C.infoHint,isSecondsEnabled:(0,y.isSecondsEnabled)()})),o.createElement("form",{className:C.form,onSubmit:function(e){e.preventDefault();const t=c.linking.interval.value(),n=w.Interval.normalize(p);n&&t!==n&&f&&(o=n,(0,y.setLastUsedResolution)(o),c.linking.interval.setValue(o));var o;null==r||r()}},o.createElement(a.InputControl,{className:s()(C.inputWrapper,u.InputClasses.FontSizeLarge),inputClassName:C.input,type:"text",size:"large",reference:i,value:p,maxLength:8,intent:f?void 0:"danger",onChange:function(e){const{value:t}=e.target;g(t.toUpperCase())}})),f?o.createElement("div",{className:C.hint},b):o.createElement("div",{className:s()(C.hint,C.error)},(0,l.t)("Not applicable"))))}var E=n(51826);function x(e){if(E.dialogsOpenerManager.isOpened("ChangeIntervalDialog")||E.dialogsOpenerManager.isOpened("SymbolSearch"))return;const t=document.createElement("div"),{initVal:n,selectOnInit:i,onClose:s}=e,l=o.createElement(b,{initVal:n,selectOnInit:i,onClose:function(){r.unmountComponentAtNode(t),E.dialogsOpenerManager.setAsClosed("ChangeIntervalDialog"),null==s||s()}});r.render(l,t),E.dialogsOpenerManager.setAsOpened("ChangeIntervalDialog")}},39640:(e,t,n)=>{"use strict";function o(e,t,n,o,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),()=>{o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,{addOutsideEventListener:()=>o})},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>u});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-s}return e}})();function r(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function s(e,t){return parseInt(i(e,t))}let l=0,a=!1;function u(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++l){const e=i(t,"overflow"),l=s(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(r(n,"right",o()+"px"),t.style.paddingRight=l+o()+"px",a=!0),t.classList.add("i-no-scroll")}else if(!e&&l>0&&0==--l&&(t.classList.remove("i-no-scroll"),a)){r(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",a=!1}}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>o,dialogsOpenerManager:()=>r});class o{constructor(){ -this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const r=new o},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>i});var o=n(59496),r=n(39640);function i(e){const{click:t,mouseDown:n,touchEnd:i,touchStart:s,handler:l,reference:a,ownerDocument:u=document}=e,c=(0,o.useRef)(null),d=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:s},o=a?a.current:c.current;return(0,r.addOutsideEventListener)(d.current,o,l,u,e)},[t,n,i,s,l]),a||c}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>i,getRootOverlapManager:()=>l});var o=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class i{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const s=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(s.get(t));{const t=new i(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>u});var o=n(59496),r=n(87995),i=n(9423),s=n(88216),l=n(50655);class a extends o.PureComponent{constructor(){ -super(...arguments),this._uuid=(0,i.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(o.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,s.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const u=o.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>i});var o=n(59496);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const i=o.createContext(null)},60495:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/change-plan-dialog-impl.010252ca2577d034ddb4.js b/charting_library/bundles/change-plan-dialog-impl.010252ca2577d034ddb4.js new file mode 100644 index 00000000..95c5e3d6 --- /dev/null +++ b/charting_library/bundles/change-plan-dialog-impl.010252ca2577d034ddb4.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1566],{2742:e=>{e.exports={body:"body-sm3KMBIc"}},13520:e=>{e.exports={header:"header-Dtkdqc5O",close:"close-Dtkdqc5O"}},82561:e=>{e.exports={message:"message-d3vP5HJI",error:"error-d3vP5HJI"}},64402:e=>{e.exports={actions:"actions-9KDBaBYj","hide-btn-text":"hide-btn-text-9KDBaBYj"}},30516:e=>{e.exports={content:"content-X3KKyG5H",checkboxes:"checkboxes-X3KKyG5H"}},69236:e=>{e.exports={"plans-container":"plans-container-GAQ9CocC","plan-box":"plan-box-GAQ9CocC","one-card-layout":"one-card-layout-GAQ9CocC","plan--next":"plan--next-GAQ9CocC","plan--current":"plan--current-GAQ9CocC","plan-box--title":"plan-box--title-GAQ9CocC","plan-box--description":"plan-box--description-GAQ9CocC","plan-box--days-left":"plan-box--days-left-GAQ9CocC",arrow:"arrow-GAQ9CocC"}},29856:e=>{e.exports={"checkbox-wrap":"checkbox-wrap-e1ycFYBm",checkbox:"checkbox-e1ycFYBm","label-p":"label-p-e1ycFYBm"}},35855:e=>{e.exports={dialog:"dialog-xQE4WxzT","change-plan":"change-plan-xQE4WxzT",body:"body-xQE4WxzT","close-button":"close-button-xQE4WxzT"}},82587:e=>{e.exports={"billing-date":"billing-date-EEnD87dn"}},96240:e=>{e.exports={footer:"footer-N3Bb7EMK",separator:"separator-N3Bb7EMK"}},64331:e=>{e.exports={"info-block":"info-block-pdxqWuDM","info-block-title":"info-block-title-pdxqWuDM","info-block-description":"info-block-description-pdxqWuDM"}},37050:e=>{e.exports={total:"total-JkT5MEd7","description-container":"description-container-JkT5MEd7",price:"price-JkT5MEd7",description:"description-JkT5MEd7",title:"title-JkT5MEd7"}},29883:e=>{e.exports={title:"title-iyvXI0en"}},37062:e=>{e.exports={footer:"footer-hDDUbPct"}},55701:(e,n,t)=>{"use strict";t.r(n),t.d(n,{ChangePlanDialog:()=>ve,changePlanDialog:()=>Pe});var a=t(59496),l=t(87995),r=t(97754),o=t(28353),c=t(9423),i=t(88216),s=t(67844),p=t(9182),d=t(3767),u=t(91955);function h(e,n,t,a,l){(0,u.getTracker)().then(r=>{r&&r.trackChangeProPlan(e,n,t,a,l)})}var y=t(33040),m=t(53402);function g(e){const{currency:n,price:t}=e;if("USD"===n)return a.createElement("span",{className:"i-no-break"},"$",(0,m.round2)(t)," ",(0,o.t)("US"));let l=t.toString();return"TVC"===n&&(l=(0,o.t)("{value} coin",{plural:"{value} coins",count:t,replace:{value:t.toString()}})),a.createElement("span",{className:"i-no-break"},l)}var v=t(82587);function f(e){const n=(0,o.t)("Payable on {billing_date}").split(/{billing_date}/);return a.createElement("div",{className:v["billing-date"]},n[0]," ",a.createElement("span",{className:"i-no-break"},e.billingDate))}var P=t(64464),x=t(33666),C=t(19514),b=t(15510);var E=t(7043);function w(e){return(0,o.t)("{daysCount} day",{plural:"{daysCount} days",count:e,replace:{daysCount:e.toString()}})}var T=t(83317),_=t(37050);function M(e){const{type:n,billingCycle:t,current:l,next:r}=e;if(!(l.days_left&&l.pro_plan&&r.days_left&&r.pro_plan&&n!==y.ChangePlanType.TvcoinsUpgrade))return null;const c=(0,m.isTrialProduct)(l.pro_plan),i=c?(0,m.getProductForTrial)(l.pro_plan):l.pro_plan,s=(0, +m.humanizeProPlan)(i,c),p=w(l.days_left),d=(0,m.humanizeProPlan)(r.pro_plan),u=w(r.days_left);let h=(0,o.t)("Your {currentDays} {currentProPlan} convert to {nextDays} of {nextProPlan}",{replace:{currentDays:p,currentProPlan:s,nextDays:u,nextProPlan:d}});return n===y.ChangePlanType.TvcoinsExtend&&(h=(0,o.t)("Your {currentProPlan} extend for a {billingCycle}",{replace:{currentProPlan:s,billingCycle:(0,m.billingCycleToTimeUnit)(t)}})),a.createElement("div",{className:_.description},h)}function k(e){const{currentPayment:n,...t}=e;return a.createElement("div",{className:_.total},a.createElement("div",{className:_["description-container"]},a.createElement("div",{className:_.title},(0,o.t)("Payable today")),a.createElement(M,{...t})),a.createElement("div",{className:_.price},a.createElement(g,{...n})))}function z(e){var n,t,l,r,c;const{nextPayment:i,type:s,productId:p,next:d}=e;let u=new Date(i.date);if(s===y.ChangePlanType.Upgrade||s===y.ChangePlanType.TvcoinsUpgrade||s===y.ChangePlanType.TvcoinsExtend){const e=null!==(n=d.days_left)&&void 0!==n?n:0;u=new Date(Date.now()),u.setDate(u.getDate()+e)}const h=E.dateFormatFunctions["MMM dd, yyyy"](u,!1),v=i.price,w=null!==(l=null===(t=null==v?void 0:v.tax)||void 0===t?void 0:t.tax)&&void 0!==l?l:0,M=0!==w,k=null==i?void 0:i.payment_method_details;let z;k&&(z=null===(r=function(e){const n=e.hint;if("P"===n){const e=(0,o.t)("PayPal account");return{icon:P,hint:e,fullHint:e}}if("A"===n){const e="Apple Pay";return{icon:b,hint:e,fullHint:e}}if("G"===n){const e="Google Pay";return{icon:C,hint:e,fullHint:e}}if(n){const e="*"+n,t=(0,o.t)("card *{paymentHint}",{replace:{paymentHint:n}});return{icon:x,hint:e,fullHint:t}}if(["apple","google"].includes(e.merchant)){const e="Mobile App";return{hint:e,fullHint:e}}return null}(k))||void 0===r?void 0:r.fullHint);const D=s===y.ChangePlanType.TvcoinsExtend||s===y.ChangePlanType.TvcoinsUpgrade,N=(0,m.humanizeProPlan)(p),A=(0,m.getReadableNumericCycle)(e.billingCycle),B=M?".":"";let S=(0,o.t)("{plan} plan ({billingCycle}){point}",{replace:{plan:N,billingCycle:A,point:B}});D&&z&&(S=(0,o.t)("{plan} plan ({billingCycle}), payment method - {paymentMethodHint}{point}",{replace:{plan:N,billingCycle:A,paymentMethodHint:z,point:B}}));const H=null!==(c=null==v?void 0:v.currency)&&void 0!==c?c:"",U=(0,T.getCurrencySign)(H),I=(0,o.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,m.round2)(w),currency:H,currencySign:U});return a.createElement("div",{className:_.total},a.createElement("div",{className:_["description-container"]},a.createElement(f,{billingDate:h}),a.createElement("div",{className:_.description},S," ",M&&I)),v&&a.createElement("div",{className:_.price},a.createElement(g,{price:v.total,currency:H})))}var D=t(64331),N=t.n(D);function A(e){var n;const{type:t,current:l,next:r}=e,c=void 0===l.pro_plan,i={title:(0,o.t)("You won't be billed today"),description:(0,o.t)("We'll just update the number of days left on your new subscription.")},s={title:(0,o.t)("Your subscription will change on the next billing cycle"),description:(0, +o.t)("We'll switch you onto your new plan after your current one finishes")};let p="";if(l.pro_plan&&l.days_left){const e=(0,m.isTrialProduct)(l.pro_plan),n=e?(0,m.getProductForTrial)(l.pro_plan):l.pro_plan,t=(0,m.humanizeProPlan)(n,e);p=(0,o.t)("Your account has {currentDays} day left in the current {currentProPlan} plan.",{plural:"Your account has {currentDays} days left in the current {currentProPlan} plan.",count:l.days_left,replace:{currentDays:l.days_left.toString(),currentProPlan:t}})}const d=(0,o.t)("We'll convert this remaining time into an equivalent value of days on your new plan.");let u="";if(r.pro_plan&&r.days_left){const e=(0,m.humanizeProPlan)(r.pro_plan);u=(0,o.t)("Your {nextProPlan} plan will have {nextDays} day after the purchase.",{plural:"Your {nextProPlan} plan will have {nextDays} days after the purchase.",count:r.days_left,replace:{nextDays:r.days_left.toString(),nextProPlan:e}})}const h={description:`${p} ${d} ${u}`,title:null},g=null!==(n=r.days_left)&&void 0!==n?n:0,v=new Date(Date.now());v.setDate(v.getDate()+g);const f={title:(0,o.t)("Your subscription will not auto renew"),description:(0,o.t)("You will have access until {date}.",{replace:{date:E.dateFormatFunctions["MMM dd, yyyy"](v,!1)}})},P={[y.ChangePlanType.Downgrade]:s,[y.ChangePlanType.Switch]:s,[y.ChangePlanType.Reactivate]:s,[y.ChangePlanType.Upgrade]:i,[y.ChangePlanType.TvcoinsUpgrade]:c?f:h,[y.ChangePlanType.TvcoinsExtend]:i}[t];return a.createElement("div",{className:N()["info-block"]},P.title&&a.createElement("h3",{className:N()["info-block-title"]},P.title),a.createElement("p",{className:N()["info-block-description"]},P.description))}var B=t(96240);function S(e){const{productData:n,billingCycle:t,current:l,next:r,type:o,nextPayment:c,currentPayment:i}=e,s=o===y.ChangePlanType.Upgrade||o===y.ChangePlanType.TvcoinsUpgrade||o===y.ChangePlanType.TvcoinsExtend,p=null!=c,d=o!==y.ChangePlanType.TvcoinsExtend;return a.createElement("div",{className:B.footer},s&&a.createElement(k,{currentPayment:i,current:l,next:r,billingCycle:t,type:o}),s&&p&&a.createElement("div",{className:B.separator}),c&&a.createElement(z,{billingCycle:t,productId:n.text_id,nextPayment:c,type:o,next:r}),d&&a.createElement(A,{type:o,current:l,next:r}))}var H=t(29883);function U(e){const n=(0,o.t)("Upgrade subscription to the next level"),t={[y.ChangePlanType.Reactivate]:(0,o.t)("Reactivate subscription"),[y.ChangePlanType.Downgrade]:(0,o.t)("Downgrade subscription"),[y.ChangePlanType.Upgrade]:n,[y.ChangePlanType.TvcoinsUpgrade]:n,[y.ChangePlanType.TvcoinsExtend]:(0,o.t)("Extend current subscription"),[y.ChangePlanType.Switch]:(0,o.t)("Switch subscription's billing cycle")}[e.type];return a.createElement("h2",{className:H.title},t)}var I,R=t(44943),F=t(15294),V=t(86629),Y=t(78540),O=t(76266),L=t(1405),G=t(29856);function Q(e){const n=(0,o.t)("I have read and agreed with the {policiesLinkTag}Terms of Use{linkCloseTag} and {pivacyPolicyLinkTag}Privacy Policy{linkCloseTag}"),t=(0, +o.t)("I authorize TradingView to charge me automatically every year until I cancel my subscription."),l=(0,o.t)("I authorize TradingView to charge me automatically every month until I cancel my subscription."),r=(0,o.t)("I acknowledge that refunds are NOT available for monthly payments."),c=(0,o.t)("If the auto renewal fails for an annual plan I will automatically be switched to a monthly plan for {cost} per month.").split(/{cost}/),{billingCycle:i,productData:s}=e,p=n.split(/{policiesLinkTag}|{linkCloseTag}|{pivacyPolicyLinkTag}/),d=window.pro.getCost(s,Y.BillingCycle.Monthly);return a.createElement("div",null,a.createElement("p",{className:G["label-p"]},i===Y.BillingCycle.OneYear?t:l),a.createElement("p",{className:G["label-p"]},i===Y.BillingCycle.Monthly&&r,i===Y.BillingCycle.OneYear&&!(0,O.isFeatureEnabled)("switching_trial_year_to_month_disabled")&&a.createElement("span",null,c[0]," ",a.createElement(g,{price:d,currency:"USD"})," ",c[2]),a.createElement("span",null,p[0],a.createElement("a",{target:"_blank",tabIndex:-1,href:"/policies/"},p[1]),p[2],a.createElement("a",{target:"_blank",tabIndex:-1,href:"/privacy-policy/"},p[3]),p[4])))}!function(e){e.ReadAndAcceptTerms="read_and_accept_terms"}(I||(I={}));const W={[I.ReadAndAcceptTerms]:!1};function K(e){const{validationResults:n,value:t,onChange:l,billingCycle:r,productData:o}=e,c=(0,V.useControlValidationLayout)({hasErrors:!n.isValid,errors:n.errors,messagesPosition:V.MessagesPosition.Attached,customErrorsAttachment:{attachment:L.anchors.top.attachment,targetAttachment:L.anchors.top.targetAttachment,attachmentOffsetY:-4}});return a.createElement("div",{className:G["checkbox-wrap"],onFocus:c.onFocus,onBlur:c.onBlur,onMouseOver:c.onMouseOver,onMouseOut:c.onMouseOut,ref:c.containerReference},a.createElement(F.Checkbox,{className:G.checkbox,checked:t,label:a.createElement(Q,{billingCycle:r,productData:o}),name:I.ReadAndAcceptTerms.toString(),onChange:l,intent:n.isValid?"primary":"danger"}),c.renderedErrors)}var q=t(46198);const J=(0,o.t)("You need to accept our Terms of Use and Privacy Policy to continue");function $(e=!1){const n=Boolean(e);return{isValid:n,errors:n?[]:[J]}}function j(e){var n;return null!==(n={[q.ProPlans.Pro]:(0,o.t)("Distraction-free trading and investing, with more charts, intervals and indicators"),[q.ProPlans.ProRealtime]:(0,o.t)("Intraday technical analysis for day traders looking to take things to the next level"),[q.ProPlans.ProPremium]:(0,o.t)("Highest precision and maximum data to capture all possible opportunities")}[e])&&void 0!==n?n:""}function X(e){return(0,o.t)("{daysCount} day",{plural:"{daysCount} days",count:e}).format({daysCount:e.toString()})}var Z=t(26996),ee=t(18662),ne=t(71036),te=t(76974),ae=t(64402);function le(e){const{validateForm:n,type:t,onSuccess:l,onError:c,next:i,offer:s}=e,[p,d]=(0,a.useState)(!1),u=i.pro_plan?(0,o.t)("Upgrade to {proPlan}",{replace:{proPlan:(0,m.humanizeProPlan)(i.pro_plan)}}):void 0,h={[y.ChangePlanType.Reactivate]:(0,o.t)("Reactivate"),[y.ChangePlanType.Downgrade]:(0,o.t)("Downgrade"), +[y.ChangePlanType.Upgrade]:u,[y.ChangePlanType.TvcoinsUpgrade]:u,[y.ChangePlanType.TvcoinsExtend]:(0,o.t)("Extend"),[y.ChangePlanType.Switch]:(0,o.t)("Switch")}[t],g=(0,te.useIsMounted)(),v=(0,a.useCallback)(async()=>{if(n()&&!p){d(!0);try{t===y.ChangePlanType.Upgrade?await(0,ee.postUpgrade)({pro_plan:i.pro_plan,billing_cycle:i.billing_cycle}):t===y.ChangePlanType.Downgrade||t===y.ChangePlanType.Reactivate||t===y.ChangePlanType.Switch?await(0,ee.postDowngrade)({pro_plan:i.pro_plan,billing_cycle:i.billing_cycle,offer:s}):t!==y.ChangePlanType.TvcoinsUpgrade&&t!==y.ChangePlanType.TvcoinsExtend||await(0,ee.postTvcoinsProPlan)({pro_plan:i.pro_plan,billing_cycle:i.billing_cycle}),l()}catch(e){c(e.message)}finally{g.current&&d(!1)}}},[p,n,t,i,s]);return a.createElement("div",{className:ae.actions},a.createElement(ne.SquareButton,{className:ae["footer-button"],onClick:v},a.createElement("span",{className:r(p&&ae["hide-btn-text"])},h),p&&a.createElement(Z.Loader,{color:"white"})))}var re=t(9745),oe=t(4585),ce=t(69236);const ie=E.dateFormatFunctions["MMM dd, yyyy"];function se(e){var n,t;const{type:l,current:c,next:i,nextPayment:s}=e,p=l===y.ChangePlanType.Reactivate,d=l===y.ChangePlanType.Downgrade,u=i.pro_plan,h=void 0!==c.pro_plan&&(0,m.isTrialProduct)(c.pro_plan),g=c.pro_plan&&h?(0,m.getProductForTrial)(c.pro_plan):c.pro_plan,v=p||!g;let f=X(null!==(n=c.days_left)&&void 0!==n?n:0),P=X(null!==(t=i.days_left)&&void 0!==t?t:0);const x=r(ce["plan--current"],ce["plan-box"],v&&ce["one-card-layout"]),C=r(ce["plan--next"],ce["plan-box"],v&&ce["one-card-layout"]);if(d&&s){const e=new Date(s.date);e.setDate(e.getDate()-1),f=(0,o.t)("Until {date}",{replace:{date:ie(e,!1)}});const n=new Date(s.date);P=(0,o.t)("Starting from {date}",{replace:{date:ie(n,!1)}})}return a.createElement("div",{className:ce["plans-container"]},g&&a.createElement("div",{className:x},a.createElement("span",{className:ce["plan-box--title"]},(0,m.humanizeProPlan)(g,h)),a.createElement("span",{className:ce["plan-box--description"]},j(g)),a.createElement("span",{className:ce["plan-box--days-left"]},f)),!v&&a.createElement(re.Icon,{icon:oe,className:ce.arrow}),!p&&u&&a.createElement("div",{className:C},a.createElement("span",{className:ce["plan-box--title"]},(0,m.humanizeProPlan)(u)),a.createElement("span",{className:ce["plan-box--description"]},j(u)),a.createElement("span",{className:ce["plan-box--days-left"]},P)))}var pe=t(30516);const de=[I.ReadAndAcceptTerms];function ue(e){const{type:n,nextPayment:t,current:l,next:r,currentPayment:o,onError:c,onSuccess:i,offer:s}=e,p=n===y.ChangePlanType.Switch,d=r.billing_cycle,u=r.pro_plan;if(!u||!d)return null;const h=window.pro.getProduct(u),m={[I.ReadAndAcceptTerms]:t?$:R.dumbValidator},[g,v,f]=(0,R.useFormValidation)(de,m,W);return a.createElement("div",{className:pe.content},a.createElement(U,{type:n}),!p&&a.createElement(se,{next:r,current:l,type:n,nextPayment:t}),a.createElement(S,{productData:h,billingCycle:d,nextPayment:t,type:n,current:l,next:r,currentPayment:o}),t&&a.createElement(K,{...g[I.ReadAndAcceptTerms], +billingCycle:d,productData:h,onChange:function(){const e=I.ReadAndAcceptTerms,n=!g[e].value;f({[e]:m[e](n)}),g[e].onChange(n)}}),a.createElement(le,{type:n,validateForm:v,next:r,onError:c,onSuccess:i,offer:s}))}var he=t(37005),ye=t(25760);var me=t(35855);const ge={[y.ChangePlanType.Downgrade]:"downgrade",[y.ChangePlanType.Switch]:"switch",[y.ChangePlanType.Upgrade]:"upgrade",[y.ChangePlanType.Reactivate]:"reactivate",[y.ChangePlanType.TvcoinsUpgrade]:"upgrade-tvcoins",[y.ChangePlanType.TvcoinsExtend]:"extend-tvcoins"};function ve(e){const{isOpened:n,...t}=e,{current:l,next:c,type:i}=t,u=(0,o.t)("Close",{context:"input"}),[y,m]=(0,a.useState)(null),g=(0,te.useIsMounted)(),v=l&&l.billing_cycle,f=c&&c.billing_cycle,P=(0,a.useCallback)(()=>{h(c.pro_plan,l.pro_plan,"close-"+ge[i],v,f),e.onClose()},[e.onClose]);return(0,a.useEffect)(()=>{h(c.pro_plan,l.pro_plan,"show-"+ge[i],v,f)},[]),(0,he.useFixedBody)(),function(e){const n=(0,a.useRef)(null),t=(0,a.useRef)(null);(0,a.useEffect)(()=>(n.current=ye.createGroup({desc:"Change plan popup",modal:!0}),t.current=n.current.add({desc:"close",hotkey:27,handler:e.onClose}),()=>{var e;null===(e=n.current)||void 0===e||e.destroy()}),[]),(0,a.useEffect)(()=>{var a,l;t.current&&(null===(a=n.current)||void 0===a||a.remove(t.current)),t.current=null===(l=n.current)||void 0===l?void 0:l.add({desc:"close",hotkey:27,handler:e.onClose})},[e.onClose])}({onClose:P}),a.createElement(d.Modal,{className:r(me.dialog,me["change-plan"]),width:768,isOpened:n,onClick:function(){null!==y&&m(null)}},null!==y&&a.createElement(p.Message,{isError:!0,text:y}),a.createElement(p.Body,{className:me.body},a.createElement(ue,{...t,onError:function(e){g.current&&m(e)}}),a.createElement(s.CloseButton,{className:me["close-button"],"aria-label":u,onClick:P})))}let fe=!1;async function Pe(e){const{current:n,next:t}=e;if(!n.pro_plan||!t.pro_plan||fe)return;const r=(0,c.guid)(),o=(0,i.getRootOverlapManager)(),s=o.ensureWindow(r);function p(){e.onSuccess&&e.onSuccess(),d()}function d(){fe=!1,l.unmountComponentAtNode(s),o.removeWindow(r)}window.pro.runOrUpdate((function(){fe=!0,l.render(a.createElement(ve,{...e,onSuccess:p,onClose:d,isOpened:!0}),s)}))}},9182:(e,n,t)=>{"use strict";t.d(n,{Body:()=>p,Header:()=>i,Message:()=>h});var a=t(59496),l=t(97754),r=t(13520),o=t(49370),c=t(9745);function i(e){const n=e.hideIcon?null:a.createElement(c.Icon,{className:r.close,icon:o,onClick:e.onClose});return a.createElement("div",{className:l(r.header,e.className),"data-dragg-area":!0,ref:e.reference},e.children,n)}t(37062);var s=t(2742);function p(e){return a.createElement("div",{className:l(s.body,e.className),ref:e.reference},e.children)}var d=t(58095),u=t(82561);function h(e){let n;e.text?n=a.createElement("span",null,e.text):e.html&&(n=a.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}));const t=(0,d.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:e.onClickOutside});if(!n)return null;const r=l(u.message,e.className,{[u.error]:e.isError});return a.createElement("div",{className:r,key:"0" +},a.createElement("span",{ref:t},n))}},4585:e=>{e.exports=''},15510:e=>{e.exports=''},33666:e=>{e.exports=''},19514:e=>{ +e.exports=''},64464:e=>{e.exports=''},49370:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-bottom-toolbar.398cd093b8aefc945d7a.js b/charting_library/bundles/chart-bottom-toolbar.398cd093b8aefc945d7a.js deleted file mode 100644 index 23efbdad..00000000 --- a/charting_library/bundles/chart-bottom-toolbar.398cd093b8aefc945d7a.js +++ /dev/null @@ -1,16 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7260],{59142:function(e,t){var s,n,i;n=[t],void 0===(i="function"==typeof(s=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,s=Array(e.length);t{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY", -white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},32925:e=>{e.exports={button:"button-WhrIKIq9",hover:"hover-WhrIKIq9",inner:"inner-WhrIKIq9"}},78966:e=>{e.exports={title:"title-mAu74Mtg"}},43527:e=>{e.exports={toolbar:"toolbar-sFd8og5Y",dateRangeWrapper:"dateRangeWrapper-sFd8og5Y",seriesControlWrapper:"seriesControlWrapper-sFd8og5Y",dateRangeExpanded:"dateRangeExpanded-sFd8og5Y",dateRangeCollapsed:"dateRangeCollapsed-sFd8og5Y",item:"item-sFd8og5Y",first:"first-sFd8og5Y",last:"last-sFd8og5Y",inline:"inline-sFd8og5Y",timezone:"timezone-sFd8og5Y",session:"session-sFd8og5Y",icon:"icon-sFd8og5Y",hidden:"hidden-sFd8og5Y",collapsed:"collapsed-sFd8og5Y"}},47393:e=>{e.exports={button:"button-YwWuPcCo",separator:"separator-YwWuPcCo"}},25033:e=>{e.exports={button:"button-wNyKS1Qc",hover:"hover-wNyKS1Qc",icon:"icon-wNyKS1Qc"}},71922:e=>{e.exports={separator:"separator-ArqK8T1e"}},70439:e=>{e.exports={headerMenuText:"headerMenuText-suXx3uas"}},17963:e=>{e.exports={button:"button-U8Px2hz6"}},22880:e=>{e.exports={item:"item-G1QqQDLk",hover:"hover-G1QqQDLk",isActive:"isActive-G1QqQDLk",isFirst:"isFirst-G1QqQDLk",isLast:"isLast-G1QqQDLk"}},72767:e=>{e.exports={slider:"slider-eR7xmZ00",inner:"inner-eR7xmZ00"}},38952:e=>{e.exports={sliderRow:"sliderRow-DtHrLXA3"}},19119:e=>{e.exports={item:"item-tPYeYcJa",interactive:"interactive-tPYeYcJa",hovered:"hovered-tPYeYcJa",disabled:"disabled-tPYeYcJa",active:"active-tPYeYcJa",shortcut:"shortcut-tPYeYcJa",normal:"normal-tPYeYcJa",big:"big-tPYeYcJa",iconCell:"iconCell-tPYeYcJa",icon:"icon-tPYeYcJa",checkmark:"checkmark-tPYeYcJa",content:"content-tPYeYcJa",label:"label-tPYeYcJa",checked:"checked-tPYeYcJa",toolbox:"toolbox-tPYeYcJa",showToolboxOnHover:"showToolboxOnHover-tPYeYcJa",arrowIcon:"arrowIcon-tPYeYcJa",subMenu:"subMenu-tPYeYcJa",invisibleHotkey:"invisibleHotkey-tPYeYcJa"}},61999:e=>{e.exports={item:"item-zoYF2FPa",emptyIcons:"emptyIcons-zoYF2FPa",loading:"loading-zoYF2FPa",disabled:"disabled-zoYF2FPa",interactive:"interactive-zoYF2FPa",hovered:"hovered-zoYF2FPa",normal:"normal-zoYF2FPa",big:"big-zoYF2FPa",icon:"icon-zoYF2FPa",label:"label-zoYF2FPa",title:"title-zoYF2FPa",nested:"nested-zoYF2FPa",shortcut:"shortcut-zoYF2FPa",remove:"remove-zoYF2FPa"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},26996:(e,t,s)=>{"use strict";s.d(t,{Loader:()=>c});var n,i=s(59496),a=s(97754),o=s(74991),r=s(62092),l=s.n(r);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(n||(n={}));class c extends i.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:n.Initial}}render(){ -const{className:e,color:t="black",size:s="medium",staticPosition:n}=this.props,o=a(l().item,l()[t],l()[s]);return i.createElement("span",{className:a(l().loader,n&&l().static,this._getStateClass(),e)},i.createElement("span",{className:o}),i.createElement("span",{className:o}),i.createElement("span",{className:o}))}componentDidMount(){this.setState({state:n.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:n.Active})},2*o.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case n.Initial:return l()["loader-initial"];case n.Appear:return l()["loader-appear"];default:return""}}}},49466:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenuSummary:()=>o});var n=s(59496),i=s(97754),a=s(78966);function o(e){return n.createElement("div",{className:i(e.className,a.title)},e.children)}},50168:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BottomToolbarRenderer:()=>nt});var n=s(59496),i=s(87995),a=s(28353),o=s(19036),r=s(97754),l=s(9837),c=s(67337),d=s(35390),h=s(40233),u=s(59064),m=s(90692),g=s(16396),p=s(51613),v=s(88537),b=s(51768),_=s(55402),C=s(2872),S=s.n(C),f=s(16654);class y{constructor(e){this._state={ranges:[]},this._change=new(S()),this._rangeChangedListenerBound=this._onRangeChanged.bind(this);const{chartWidget:t}=this._context=e;t.withModel(null,()=>{const e=t.model(),s=e.mainSeries();s.onStatusChanged().subscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().subscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.subscribe(this,this._updateAvailableRanges);const n=e.model().appliedTimeFrame();n.subscribe(this._rangeChangedListenerBound),this._rangeChangedListenerBound(n.value()),this._updateAvailableRanges()})}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,s={val:e.value,res:e.targetResolution};t.setTimeFrame(s)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,()=>{const t=e.model(),s=t.mainSeries();s.onStatusChanged().unsubscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)}),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.hasModel())return;const s=t.model().mainSeries(),n=s.status();if(n===f.STATUS_LOADING||n===f.STATUS_RESOLVING)return;const i=e(s.symbolInfo(),s.status());0!==i.length&&this._setState({ranges:i})}}const x=(0, -_.registryContextType)();function E(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{var t,s;(0,b.trackEvent)("GUI","Chart Bottom Toolbar","range "+e.value),null===(s=(t=this.props).onSelectRange)||void 0===s||s.call(t,e),this._binding.selectRange(e)},(0,_.validateRegistry)(t,{availableTimeFrames:o.any.isRequired,chartWidgetCollection:o.any.isRequired,chartWidget:o.any.isRequired}),M.has(t.chartWidget)||M.set(t.chartWidget,new y(t));const s=this._binding=(0,v.ensureDefined)(M.get(t.chartWidget));this.state=s.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return n.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=x,t}const M=new WeakMap;var R=s(94420),k=s(23829),w=s(1109),T=s(82724),A=s(52360),W=s(47393);function N(e){const{ranges:t,activeRange:s,onSelectRange:i}=e;return n.createElement(n.Fragment,null,t.map(e=>n.createElement(k.ContextMenuItem,{key:e.value.value,label:e.description||e.text,active:s===e.value.value,checked:s===e.value.value,checkable:!0,disabled:!1,onClick:a.bind(null,e),doNotCloseOnClick:!1,subItems:[]})));function a(e){e&&i&&i(e),(0,u.globalCloseMenu)()}}function B(e){const{onGoToDateClick:t}=e;return n.createElement(n.Fragment,null,n.createElement(w.Separator,{className:W.separator}),n.createElement(k.ContextMenuItem,{icon:A,label:(0,T.appendEllipsis)((0,a.t)("Go to")),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]}))}const F={title:(0,a.t)("Date Range"),goToDate:(0,T.appendEllipsis)((0,a.t)("Go to"))},P=(0,_.registryContextType)();class z extends n.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,R.showGoToDateDialog)(e),(0,u.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,u.globalCloseMenu)()},this._renderChildren=e=>{const{ranges:t,activeRange:s,goToDateButton:i}=this.props;return e?n.createElement(n.Fragment,null,n.createElement(N,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),i&&n.createElement(B,{onGoToDateClick:this._handleGoToDateClick})):n.createElement(n.Fragment,null,t.map(e=>n.createElement(g.PopupMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e})),i&&n.createElement(p.PopupMenuSeparator,null),i&&n.createElement(g.PopupMenuItem,{label:F.goToDate,onClick:this._handleGoToDateClick}))},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired})}render(){return n.createElement(m.MatchMedia,{rule:"screen and (max-width: 428px)"},e=>n.createElement(d.ToolWidgetMenu,{className:W.button,content:F.title,arrow:!0,verticalAttachEdge:h.VerticalAttachEdge.Top, -verticalDropDirection:h.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e)))}_trackClick(){0}}z.contextType=P;const D=E(z);var Y=s(64205),L=s(22880);function I(e){const t=r(e.className,L.item,{[L.isActive]:e.isActive,[L.isFirst]:e.isFirst,[L.isLast]:e.isLast});return n.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}var H=s(40173),j=s(72767);const Z=(0,H.mergeThemes)(Y.DEFAULT_SLIDER_THEME,j);var G=s(38952);const q=(0,Y.factory)((function(e){return n.createElement("div",{className:r(e.className,Z.slider),ref:e.reference},n.createElement("div",{className:Z.inner}))}));const O=E((function(e){const{className:t,ranges:s,activeRange:i,onSelectRange:a}=e;return n.createElement(q,{className:r(G.sliderRow,t),"data-name":"date-ranges-tabs"},s.map((e,t)=>n.createElement(I,{key:e.value.value,value:e.value.value,isFirst:0===t,isLast:t===s.length-1,isActive:i===e.value.value,onClick:a&&a.bind(null,e)},n.createElement("div",{title:e.description||e.text,className:"apply-common-tooltip"},e.text))))}));var U=s(9745),V=s(61814),J=s(68335),K=s(68139),Q=s(25033);const X=(0,V.hotKeySerialize)({keys:[(0,J.humanReadableModifiers)(J.Modifiers.Alt,!1),"G"],text:"{0} + {1}"}),$=(0,_.registryContextType)();class ee extends n.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidget:e}=this.context;(0,b.trackEvent)("GUI","Chart Bottom Toolbar","go to"),(0,R.showGoToDateDialog)(e)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired})}render(){const{className:e,ranges:t}=this.props;return t.length>0&&n.createElement("div",{className:r("apply-common-tooltip",Q.button,e),"data-name":"go-to-date","data-tooltip-hotkey":X,onClick:this._handleClick,title:(0,a.t)("Go to")},n.createElement(U.Icon,{className:Q.icon,icon:K}))}}ee.contextType=$;const te=E(ee);var se=s(32925);function ne(e){const{reference:t,className:s,children:i,...a}=e;return n.createElement("button",{...a,className:r(s,se.button),ref:t},n.createElement("span",{className:se.inner},i))}var ie=s(23095),ae=s(64806),oe=s(28296),re=s(97056);class le extends n.PureComponent{constructor(e){super(e),this._element=null,this._menuShown=!1,this._preventShowingMenu=!1,this._handleRef=e=>{this._element=e},this._onMouseDown=()=>{this._preventShowingMenu=this._menuShown},this._showMenu=()=>{if(this._preventShowingMenu)return void re.ContextMenuManager.hideAll();const{getActions:e}=this.props,t=(0,v.ensureNotNull)(this._element),s=e();if(0===s.length)return;const n=t.getBoundingClientRect();re.ContextMenuManager.showMenu(s,{clientX:n.left,clientY:n.top,attachToYBy:"bottom"},void 0,{menuName:"TimezoneMenuContextMenu"},()=>{this._menuShown=!1}).then(()=>{this._menuShown=!0})}}render(){const{children:e}=this.props;return n.createElement("span",{onClick:this._showMenu,onMouseDown:this._onMouseDown,ref:this._handleRef},e)}}var ce=s(10480),de=s(17963);const he={hint:(0,a.t)("Timezone")};const ue=(0,_.registryContextType)() -;class me extends n.PureComponent{constructor(e,t){super(e,t),this._timeFormatter=new ae.TimeFormatter,this._tickInterval=void 0,this._tickClock=()=>{const{chartApiInstance:e}=this.context;if(void 0!==this._timezone){const t=(0,ce.utc_to_cal)(this._timezone,e.serverTime());this.setState({time:this._timeFormatter.format(t)})}},this._getActions=()=>{if(!this.props.withMenu)return[];const{chartWidget:e}=this.context;return function(e){e.updateActions();const t=e.actions();return t&&t.applyTimeZone instanceof oe.Action?t.applyTimeZone.getSubItems():[]}(e)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired,chartApiInstance:o.any.isRequired}),this.state={time:""}}componentDidMount(){const{chartWidget:e}=this.context;this._tickInterval=setInterval(this._tickClock,1e3),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.subscribe(this,this.updateTimezonesButton)})}componentWillUnmount(){const{chartWidget:e}=this.context;clearInterval(this._tickInterval),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.unsubscribe(this,this.updateTimezonesButton)})}render(){const{className:e,withMenu:t}=this.props,{time:s}=this.state,i=void 0!==this._timezone?(0,ie.parseTzOffset)(this._timezone.name()).string:null;return n.createElement(le,{getActions:this._getActions},n.createElement(ne,{className:r(e,de.button,"apply-common-tooltip"),title:t?he.hint:void 0,disabled:!t,"data-name":"time-zone-menu"},s&&i&&`${s} (${i})`))}updateTimezonesButton(){const{chartWidget:e}=this.context;if(!e.hasModel())return;if(null===e.model().mainSeries().symbolInfo())return;let t=e.model().model().timezone();if("exchange"===t){const s=(0,v.ensureNotNull)(e.model().mainSeries().symbolInfo()).timezone;s&&(t=s)}this._timezone=(0,ce.get_timezone)(t),this._tickClock()}}me.contextType=ue;var ge=s(71922);function pe(e){return n.createElement("span",{className:r(ge.separator,e.className)})}var ve=s(4825),be=s(24980),_e=s(49483);class Ce{constructor(e,t,s){this._highlighted=!1,this._chartWidget=e,this._priceScaleGetter=t,this._owner=s,this._setHighlight=this._setHighlight.bind(this),this._removeHighlight=this._removeHighlight.bind(this)}destroy(){this._highlighted&&this._removeHighlight()}handlers(){const e=_e.CheckMobile.any();return{onMouseEnter:e?void 0:this._setHighlight,onMouseLeave:e?void 0:this._removeHighlight}}_setHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries()),s=this._priceScaleGetter();if(null===t||null===s)return;const n=this._chartWidget.paneByState(t);if(null!==n){const t=n.rightPriceAxisesContainer().findAxisWidgetForScale(s);let i=null;null!==t&&(i=t.axisInfo());const a=n.leftPriceAxisesContainer().findAxisWidgetForScale(s);null!==a&&(i=a.axisInfo());const o=n.highlightedPriceAxis() -;null!==i&&o.value().axis!==i&&(o.setValue({owner:this._owner,axis:i}),e.lightUpdate(),this._highlighted=!0)}}_removeHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries());if(null===t)return;const s=this._chartWidget.paneByState(t);if(null!==s){const t=s.highlightedPriceAxis(),n=t.value();null!==n.axis&&n.owner===this._owner&&(t.setValue({owner:this._owner,axis:null}),e.lightUpdate(),this._highlighted=!1)}}}const Se=(0,_.registryContextType)(),fe=new be.TranslatedString("toggle log scale",(0,a.t)("toggle log scale"));const ye=(0,_.registryContextType)(),xe=new be.TranslatedString("toggle auto scale",(0,a.t)("toggle auto scale"));const Ee=(0,_.registryContextType)(),Me=new be.TranslatedString("toggle percentage scale",(0,a.t)("toggle percentage scale"));const Re=(0,_.registryContextType)();var ke=s(42142),we=s(54475),Te=s(49466),Ae=s(56450),We=s(70439);const Ne=new be.TranslatedString("change session",(0,a.t)("change session")),Be={hint:(0,a.t)("Session"),headerMenuText:(0,a.t)("Sessions")},Fe=(0,_.registryContextType)();class Pe extends n.PureComponent{constructor(e,t){super(e,t),(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired,chartApiInstance:o.any.isRequired}),this.state={availableSessions:[]}}componentDidMount(){const{chartWidget:e}=this.context;e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.subscribe(this,this.updateSessionButton),this.updateSessionButton()})}componentWillUnmount(){const{chartWidget:e}=this.context;e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.unsubscribe(this,this.updateSessionButton)})}render(){const{className:e,withMenu:t}=this.props,{sessionName:s}=this.state;return n.createElement(d.ToolWidgetMenu,{arrow:!1,isDisabled:!t,content:s,className:e,closeOnClickOutside:!0,title:t?Be.hint:void 0,"data-name":"session-menu",verticalDropDirection:h.VerticalDropDirection.FromBottomToTop,verticalAttachEdge:h.VerticalAttachEdge.Top,onClick:this._trackClick},this._menuItems())}updateSessionButton(){var e,t;const{chartWidget:s}=this.context;if(!s.model())return;const n=s.model().mainSeries().symbolInfo();if(null===n)return;const i=n.subsession_id,a=null!==(t=null===(e=n.subsessions)||void 0===e?void 0:e.filter(e=>!e.private))&&void 0!==t?t:[],o=a.find(e=>e.id===i);this.setState({sessionId:i,sessionName:(0,Ae.translateSessionShortDescription)((null==o?void 0:o.description)||""),availableSessions:a})}_menuItems(){if(!this.props.withMenu)return[];const{chartWidget:e}=this.context,{availableSessions:t}=this.state;if(!e.model())return[];const s=e.model().mainSeries(),i=[n.createElement(Te.ToolWidgetMenuSummary,{key:"header_menu_text",className:We.headerMenuText},Be.headerMenuText.toUpperCase())];for(const a of t){const t={category:"SetSession", -event:a.id},o=()=>{e.model().setProperty(s.properties().childs().sessionId,a.id,Ne)};i.push(n.createElement(g.PopupMenuItem,{key:a.id,label:(0,Ae.translateSessionDescription)(a.description),isActive:this.state.sessionId===a.id,trackEventObject:t,onClick:o}))}return i}_trackClick(){0}}Pe.contextType=Fe;var ze=s(99499),De=s(11178),Ye=s(43527);const Le={extLabel:(0,a.t)("ext"),extHint:(0,a.t)("Extended Hours is available only for intraday charts"),percentageHint:(0,a.t)("Toggle Percentage"),logLabel:(0,a.t)("log",{context:"scale"}),logHint:(0,a.t)("Toggle Log Scale"),autoLabel:(0,a.t)("auto",{context:"scale"}),autoHint:(0,a.t)("Toggle Auto Scale"),fullscreenHint:(0,a.t)("Toggle Maximize Chart"),adjLabel:(0,a.t)("adj",{context:"adjustments"}),adjHint:(0,a.t)("Adjust data for dividends"),adjForDividendsOnlyHint:(0,a.t)("Main symbol data is adjusted for dividends only"),adjForSplitsOnlyHint:(0,a.t)("Main symbol data is adjusted for splits only"),backAdjustLabel:(0,a.t)("b-adj",{context:"adjustments"}),backAdjustHint:(0,a.t)("Adjust for contract changes"),settlementAsCloseLabel:(0,a.t)("set",{context:"adjustments"}),settlementAsCloseHint:(0,a.t)("Use settlement as close on daily interval")},Ie=(He=e=>n.createElement(ve.ToolWidgetButton,{text:Le.logLabel,title:Le.logHint,className:e.className,isActive:e.isLogarithm,isGrouped:!0,onClick:Qe(e.onClick,"log",e.isLogarithm),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"logarithm"}),(je=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series),s=t.priceScale(),n=s.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({log:!n.log},s,fe)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"logarithm")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},s.mode()),this.setState({isActive:t.priceScale().isLog(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:e}=this.props,{isActive:t,series:s}=this.state;return n.createElement(He,{...this._priceAxisHighlighter.handlers(),className:e,isLogarithm:t,isDisabled:null===s,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged), -this._handleModeChanged({},e.mode())}_handleModeChanged(e,t){Boolean(t.log)!==this.state.isActive&&this.setState({isActive:Boolean(t.log)})}}).contextType=Se,je);var He,je;const Ze=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series).priceScale(),s=t.mode();e.setPriceScaleMode({autoScale:!s.autoScale},t,xe)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"auto")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},s.mode()),this.setState({isActive:t.priceScale().isAutoScale(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:t}=this.props,{isActive:s,series:i}=this.state;return n.createElement(e,{...this._priceAxisHighlighter.handlers(),className:t,isAuto:s,isDisabled:null===i,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged),this._handleModeChanged({},e.mode())}_handleModeChanged(e,t){Boolean(t.autoScale)!==this.state.isActive&&this.setState({isActive:Boolean(t.autoScale)})}}).contextType=ye,t}(e=>n.createElement(ve.ToolWidgetButton,{text:Le.autoLabel,title:Le.autoHint,className:e.className,isActive:e.isAuto,isGrouped:!0,onClick:Qe(e.onClick,"auto",e.isAuto),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"auto"})),Ge=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series),s=t.priceScale(),n=s.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({percentage:!n.percentage},s,Me)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"percentage")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleScaleChange({},s.mode()),this.setState({isActive:t.priceScale().isPercentage(),series:t})})}componentWillUnmount(){ -const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:t}=this.props,{isActive:s,series:i}=this.state;return n.createElement(e,{...this._priceAxisHighlighter.handlers(),className:t,isPercentage:s,isDisabled:null===i,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleScaleChange),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleScaleChange),this._handleScaleChange({},e.mode())}_handleScaleChange(e,t){Boolean(t.percentage)!==this.state.isActive&&this.setState({isActive:Boolean(t.percentage)})}}).contextType=Ee,t}(e=>n.createElement(ve.ToolWidgetButton,{icon:ze,title:Le.percentageHint,className:e.className,isActive:e.isPercentage,isDisabled:e.isDisabled,isGrouped:!0,onClick:Qe(e.onClick,"percent",e.isPercentage),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"percentage"}));const qe=(0,V.hotKeySerialize)({keys:[(0,J.humanReadableModifiers)(J.Modifiers.Alt,!1),"Enter"],text:"{0} + {1}"}),Oe=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._handleClick=e=>{const{resizerDetacher:t,chartWidgetCollection:s}=this.context;e.shiftKey&&t.detachable.value()?t.detach():this.state.isFullscreen?t.exitFullscreen():t.requestFullscreen()},this._handleLayoutChange=e=>{this.setState({isFullscreen:e})},this._handlePhoneSize=()=>{0},(0,_.validateRegistry)(t,{chartWidgetCollection:o.any.isRequired,resizerDetacher:o.any.isRequired});const{resizerDetacher:s}=t;this.state={isFullscreen:s.fullscreen.value(),isChangeLayoutButton:this._isChangeLayoutButton()}}componentDidMount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:s}=this.props;e.fullscreen.subscribe(this._handleLayoutChange)}componentWillUnmount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:s}=this.props;e.fullscreen.unsubscribe(this._handleLayoutChange)}render(){const{className:t}=this.props,{isFullscreen:s,isChangeLayoutButton:i}=this.state;return n.createElement(e,{className:t,isFullscreen:s,onClick:this._handleClick})}_isChangeLayoutButton(){return!1}}).contextType=Re,t}(e=>n.createElement(ve.ToolWidgetButton,{icon:De,title:Le.fullscreenHint,className:e.className,isActive:e.isFullscreen,onClick:Qe(e.onClick,"maximize chart",e.isFullscreen),"data-tooltip-hotkey":qe,"data-name":"fullscreen"})),Ue={properties:!0,fullscreen:!0,preventPhoneLayout:!0},Ve={fullscreen:Number.MIN_SAFE_INTEGER,preventPhoneLayout:Number.MIN_SAFE_INTEGER,properties:Number.MIN_SAFE_INTEGER,separator:-2,timeZones:-1,auto:0,logarithm:1,percentage:2,session:3,adj:4,backAdj:5,settlementAsClose:6},Je=(()=>{const e=new Map;return e.set(Ie,"logarithm"),e.set(Ge,"percentage"), -e.set(Ze,"auto"),e.set(Pe,"session"),e.set(Oe,"fullscreen"),e})();function Ke(e){0}function Qe(e,t,s){return t=>{e(t)}}const Xe={dateRangeMode:"hidden",separator:!0,timeZones:!0,fullscreen:!0,preventPhoneLayout:!0,properties:!0,auto:!0,logarithm:!0,percentage:!0,session:!0,adj:!0,backAdj:!0,settlementAsClose:!0},$e=(0,_.registryContextType)();class et extends n.PureComponent{constructor(e,t){var s,a;super(e,t),this._timezoneButtonRef=null,this._layout=Object.assign({},Xe),this._raf=null,this._toolbar=null,this._rangeExpanded=null,this._rangeCollapsed=null,this._seriesComponents={},this._injector=(s=()=>this._layout,a=(e,t)=>this._seriesComponents[t]=e,(e,t,i)=>{if(n.isValidElement(e)&&"string"!=typeof e.type){const{props:o}=e;if("string"==typeof o.className){const l={className:r(o.className,0===t&&Ye.first,t===i.length-1&&Ye.last)},c=s(),d=(0,v.ensureDefined)(Je.get(e.type));return n.createElement("div",{key:null===e.key?void 0:e.key,className:r(Ye.inline,c[d]&&Ye.collapsed),ref:e=>a(e,d),onClick:()=>Ke()},n.cloneElement(e,l))}}return e}),this._updateButtonsVisibility=()=>{const{chartWidget:e}=this.context,t=e.model().model(),s=t.mainSeries(),n=s.symbolInfo(),i=!s.isDWMProperty().value();if(s.symbolResolvingActive().value())return void this._setStateWithResize({intervalAllowsSessionButton:i});const a=((null==n?void 0:n.subsessions)||[]).filter(e=>!e.private).length>1;this._setStateWithResize({intervalAllowsSessionButton:i,symbolAllowsSessionButton:a})},this._handleResize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const e=this._layout,t=(0,v.ensureNotNull)(this._toolbar),s=(0,v.ensureNotNull)(this._rangeExpanded),n=(a=function(e){const t={};return Object.keys(e).forEach(s=>{const n=e[s];if(null!==n){const e=i.findDOMNode(n);null!==e&&(t[s]=e)}}),t}(this._seriesComponents),Object.keys(a).map(e=>({name:e,width:a[e].offsetWidth})).sort((e,t)=>Ve[e.name]-Ve[t.name]));var a;const o=t.offsetWidth,r=n.reduce((e,t)=>e+t.width,0),l=s.offsetWidth,c=!Boolean(s.textContent)||o-r-l<=0?"collapsed":"expanded";if(Object.assign(e,{dateRangeMode:c}),"expanded"!==c){const t=o-(0,v.ensureNotNull)(this._rangeCollapsed).offsetWidth-0;let s=0,i=0;for(const a of n)s+=a.width,a.name in Ue?(i+=a.width,Object.assign(e,{[a.name]:!1})):Object.assign(e,{[a.name]:t<=s});t<=i&&Object.assign(e,{dateRangeMode:"hidden"})}else Object.assign(e,{separator:!1,timeZones:!1,fullscreen:!1,preventPhoneLayout:!1,properties:!1,auto:!1,logarithm:!1,percentage:!1,session:!1,adj:!1,settlementAsClose:!1,backAdj:!1});this._applyResizing(),this._raf=null}))},this._handleTimezoneButtonRef=e=>{this._timezoneButtonRef=e},this._handleMeasure=()=>{null!==this._toolbar&&this.resizeUI()},this._handleFullscreenableChange=e=>{this._setStateWithResize({isFullscreenable:e})},this._handlePreventPhoneLayoutButtonVisibility=()=>{0},this._handleToolbarRef=e=>this._toolbar=e,this._handleRangeCollapsedRef=e=>this._rangeCollapsed=e,this._handleRangeExpandedRef=e=>this._rangeExpanded=e,this._handleTimeZonesRef=e=>{this._seriesComponents.timeZones=e}, -this._handleSessionsRef=e=>{this._seriesComponents.session=e},this._handleSeparatorRef=e=>{this._seriesComponents.separator=e},(0,_.validateRegistry)(t,{onContentBoxChanged:o.any.isRequired,chartApiInstance:o.any.isRequired,chartWidget:o.any.isRequired,chartWidgetCollection:o.any.isRequired,resizerDetacher:o.any.isRequired});const{resizerDetacher:l}=this.context;this.state={isFullscreenable:l.fullscreenable.value(),isPreventPhoneLayoutButton:this._isPreventPhoneLayoutButton()}}componentDidMount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:s,chartWidget:n}=this.context;e.subscribe(this,this._handleResize),t.fullscreenable.subscribe(this._handleFullscreenableChange),n.withModel(null,()=>{const e=n.model(),t=e.model();e.mainSeries().isDWMProperty().subscribe(this,this._updateButtonsVisibility),t.symbolSourceResolvingActive().subscribe(this._updateButtonsVisibility),t.symbolSourceCollectionChanged().subscribe(this,this._updateButtonsVisibility),this._updateButtonsVisibility()}),this.updateTimezonesButton(),this.resizeUI()}componentWillUnmount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:s,chartWidget:n}=this.context;e.unsubscribe(this,this._handleResize),t.fullscreenable.unsubscribe(this._handleFullscreenableChange),n.withModel(null,()=>{const e=n.model(),t=e.model();e.mainSeries().isDWMProperty().unsubscribe(this,this._updateButtonsVisibility),e.mainSeries().isBackAdjustmentForbiddenProperty().unsubscribe(this,this._updateButtonsVisibility),e.mainSeries().isSettlementAsCloseForbiddenProperty().unsubscribe(this,this._updateButtonsVisibility),t.symbolSourceCollectionChanged().unsubscribe(this,this._updateButtonsVisibility),t.symbolSourceResolvingActive().unsubscribe(this._updateButtonsVisibility)}),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}render(){const e=this._layout,{timeFramesWidgetEnabled:t,timeWidgetEnabled:s,percentageScaleButtonEnabled:i,logScaleButtonEnabled:a,autoScaleButtonEnabled:o,fullscreenButtonEnabled:d}=this.props;return n.createElement("div",{className:Ye.toolbar,ref:this._handleToolbarRef,onContextMenu:we.preventDefault},t&&n.createElement(ke.FragmentMap,null,n.createElement("div",{className:r(Ye.dateRangeWrapper,"collapsed"!==e.dateRangeMode&&Ye.collapsed),ref:this._handleRangeCollapsedRef},n.createElement("div",{className:r(Ye.dateRangeCollapsed)},n.createElement(D,{goToDateButton:this.props.goToDateEnabled}))),n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Ye.dateRangeWrapper,"expanded"!==e.dateRangeMode&&Ye.collapsed),ref:this._handleRangeExpandedRef},n.createElement("div",{className:r(Ye.dateRangeExpanded)},n.createElement(O,{onSelectRange:this._trackRangeButtonClick}),this.props.goToDateEnabled&&n.createElement(pe,null),this.props.goToDateEnabled&&n.createElement(te,null))))),n.createElement("div",{className:Ye.seriesControlWrapper},s&&n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Ye.inline,e.timeZones&&Ye.collapsed),ref:this._handleTimeZonesRef -},n.createElement("div",{className:Ye.inline,onClick:this._trackTimezonesButtonClick},n.createElement(me,{className:Ye.timezone,withMenu:this.props.timezoneMenuEnabled,ref:this._handleTimezoneButtonRef})))),this.props.sessionIdButtonEnabled&&this.state.symbolAllowsSessionButton&&this.state.intervalAllowsSessionButton&&n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Ye.inline,e.session&&Ye.collapsed),ref:this._handleSessionsRef},n.createElement("div",{className:Ye.inline},n.createElement(Pe,{className:Ye.session,withMenu:this.props.sessionIdButtonEnabled})))),n.createElement("div",{ref:this._handleSeparatorRef,className:r(Ye.inline,e.separator&&Ye.collapsed)},n.createElement(pe,null)),n.createElement(ke.FragmentMap,{map:this._injector},!1,!1,!1,i&&!c.enabled("fundamental_widget")&&n.createElement(Ge,{className:Ye.icon}),a&&n.createElement(Ie,{className:Ye.item}),o&&n.createElement(Ze,{className:Ye.item}),d&&this.state.isFullscreenable&&n.createElement(Oe,{className:Ye.icon,mobileChangeLayoutEnabled:this.props.mobileChangeLayoutEnabled}),!1)))}updateTimezonesButton(){null!==this._timezoneButtonRef&&this._timezoneButtonRef.updateTimezonesButton()}resizeUI(){this._handleResize()}_trackRangeButtonClick(e){0}_trackTimezonesButtonClick(){Ke()}_setStateWithResize(e){Object.assign(this._layout,Xe),this._applyResizing(),this.setState(e,()=>this._handleResize())}_applyResizing(){const{dateRangeMode:e,...t}=this._layout;this._rangeExpanded&&this._rangeExpanded.classList.toggle(Ye.collapsed,"expanded"!==e),this._rangeCollapsed&&this._rangeCollapsed.classList.toggle(Ye.collapsed,"collapsed"!==e),Object.keys(t).forEach(e=>{const s=e,n=this._seriesComponents[s];n&&n.classList.toggle(Ye.collapsed,t[s])})}_isPreventPhoneLayoutButton(){return!1}}et.contextType=$e;const tt={onContentBoxChanged:o.any,computeContentBox:o.any,chartWidget:o.any,chartApiInstance:o.any,chartWidgetCollection:o.any,resizerDetacher:o.any,availableTimeFrames:o.any};class st extends n.PureComponent{constructor(e){super(e),this._setActiveChart=e=>{this._defineRegistry(e),this.setState({chartWidget:e})};const t=this.props.chartWidgetCollection.activeChartWidget.value();this.state={chartWidget:t},this._defineRegistry(t)}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._setActiveChart)}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._setActiveChart)}render(){const{chartWidget:e}=this.state;if(!e)return null;const{options:t}=this.props,s={timeFramesWidgetEnabled:t.timeFramesWidgetEnabled,goToDateEnabled:t.timeFramesWidget.goToDateEnabled,timeWidgetEnabled:t.timeWidgetEnabled,timezoneMenuEnabled:t.timeWidget&&t.timeWidget.timezoneMenuEnabled,sessionIdButtonEnabled:t.sessionIdButtonEnabled,backAdjustmentButtonEnabled:t.backAdjustmentButtonEnabled,settlementAsCloseButtonEnabled:t.settlementAsCloseButtonEnabled,adjustForDividendsButtonEnabled:t.adjustForDividendsButtonEnabled,logScaleButtonEnabled:t.logScaleButtonEnabled, -percentageScaleButtonEnabled:t.percentageScaleButtonEnabled,autoScaleButtonEnabled:t.autoScaleButtonEnabled,fullscreenButtonEnabled:t.fullscreenButtonEnabled,mobileChangeLayoutEnabled:t.mobileChangeLayoutEnabled};return n.createElement(_.RegistryProvider,{validation:tt,value:this._registry},n.createElement(et,{key:e.id(),...s}))}_defineRegistry(e){const{onContentBoxChanged:t,computeContentBox:s,chartApiInstance:n,chartWidgetCollection:i,options:{timeFramesWidgetEnabled:a,timeFramesWidget:o}}=this.props,r=a?o.availableTimeFrames:void 0;this._registry={onContentBoxChanged:t,computeContentBox:s,chartWidget:e,availableTimeFrames:r,chartApiInstance:n,chartWidgetCollection:i,resizerDetacher:e.getResizerDetacher()}}}class nt{constructor(e,t,s,a,o,r,l){this._container=e;const c=n.createElement(st,{onContentBoxChanged:t,computeContentBox:s,chartWidgetCollection:a,chartApiInstance:o,chartWidgetOptions:r,options:l});i.render(c,e),e.setAttribute("data-initialized","true")}destroy(){i.unmountComponentAtNode(this._container),this._container.removeAttribute("data-initialized")}}},55402:(e,t,s)=>{"use strict";s.d(t,{validateRegistry:()=>r,RegistryProvider:()=>l,registryContextType:()=>c});var n=s(59496),i=s(19036),a=s.n(i);const o=n.createContext({});function r(e,t){a().checkPropTypes(t,e,"context","RegistryContext")}function l(e){const{validation:t,value:s}=e;return r(s,t),n.createElement(o.Provider,{value:s},e.children)}function c(){return o}},56450:(e,t,s)=>{"use strict";s.d(t,{translateSessionDescription:()=>a,translateSessionShortDescription:()=>r});var n=s(28353);const i=new Map([["Premarket",(0,n.t)("Premarket",{context:"sessions"})],["Postmarket",(0,n.t)("Postmarket",{context:"sessions"})],["Regular Trading Hours",(0,n.t)("Regular trading hours",{context:"sessions"})],["Extended Trading Hours",(0,n.t)("Extended trading hours",{context:"sessions"})],["Electronic Trading Hours",(0,n.t)("Electronic trading hours",{context:"sessions"})]]);function a(e){var t;return null!==(t=i.get(e))&&void 0!==t?t:e}const o=new Map([["Premarket",(0,n.t)("PRE",{context:"sessions"})],["Postmarket",(0,n.t)("POST",{context:"sessions"})],["Regular Trading Hours",(0,n.t)("RTH",{context:"sessions"})],["Extended Trading Hours",(0,n.t)("ETH",{context:"sessions"})],["Electronic Trading Hours",(0,n.t)("ETH",{context:"sessions"})]]);function r(e){var t;return null!==(t=o.get(e))&&void 0!==t?t:e}},42142:(e,t,s)=>{"use strict";s.d(t,{FragmentMap:()=>i});var n=s(59496);function i(e){if(e.map){return n.Children.toArray(e.children).map(e.map)}return e.children}},99025:(e,t,s)=>{"use strict";s.d(t,{Hint:()=>r});var n=s(59496),i=s(97754),a=s.n(i),o=s(19119);function r(e){const{text:t="",className:s}=e;return n.createElement("span",{className:a()(o.shortcut,s)},t)}},23829:(e,t,s)=>{"use strict";s.d(t,{ContextMenuItem:()=>g});var n=s(59496),i=s(97754),a=s.n(i),o=s(9745),r=s(26996),l=s(54627),c=s(99025),d=s(86440),h=s(4585),u=s(74471),m=s(61999);function g(e){ -const{isTitle:t,isLoading:s,isHovered:i,active:g,checkable:p,disabled:v,checked:b,icon:_,iconChecked:C,hint:S,subItems:f,label:y,onClick:x,children:E,toolbox:M,jsxLabel:R,size:k="normal"}=e,w=(0,n.useContext)(l.EmptyIconsContext),T=!!f.length;return s?n.createElement("li",{className:a()(m.item,m.loading,m[k])},n.createElement(r.Loader,null)):n.createElement("li",{className:a()(m.item,m.interactive,t&&m.title,v&&m.disabled,i&&m.hovered,g&&m.active,w&&m.emptyIcons,m[k]),onClick:x},n.createElement(o.Icon,{className:a()(m.icon),icon:function(){if(p&&b)return C||_||d;return _}()}),n.createElement("span",{className:a()(m.label)},null!=R?R:y),!!M&&n.createElement(o.Icon,{onClick:function(){M&&M.action()},className:m.remove,icon:u}),!T&&S&&n.createElement(c.Hint,{className:m.shortcut,text:S}),T&&n.createElement(o.Icon,{className:m.nested,icon:h}),E)}},54627:(e,t,s)=>{"use strict";s.d(t,{EmptyIconsContext:()=>n});const n=s(59496).createContext(!1)},1109:(e,t,s)=>{"use strict";s.d(t,{Separator:()=>o});var n=s(59496),i=s(97754),a=s(91626);function o(e){return n.createElement("div",{className:i(a.separator,e.className)})}},51613:(e,t,s)=>{"use strict";s.d(t,{PopupMenuSeparator:()=>r});var n=s(59496),i=s(97754),a=s.n(i),o=s(524);function r(e){const{size:t="normal",className:s}=e;return n.createElement("div",{className:a()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,s)})}},64205:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_SLIDER_THEME:()=>r,SliderItem:()=>l,factory:()=>c});var n=s(59496),i=s(97754),a=s(88537),o=s(37740);const r=o;function l(e){const t=i(e.className,o.tab,{[o.active]:e.isActive,[o.disabled]:e.isDisabled,[o.defaultCursor]:!!e.shouldUseDefaultCursor,[o.noBorder]:!!e.noBorder});return n.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends n.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,a.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return n.createElement("div",{className:i(t,o.tabs),"data-name":this.props["data-name"]},s,n.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,n.Children.map(this.props.children,e=>{const t=e,s=Boolean(t.props.isActive),i={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return n.cloneElement(t,i)})}_componentDidUpdate(){const e=(0,a.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return n.createElement("div",{className:o.slider,ref:e.reference})}))},40173:(e,t,s)=>{"use strict";function n(e,t,s={}){ -const n=Object.assign({},t);for(const i of Object.keys(t)){const a=s[i]||i;a in e&&(n[i]=[e[a],t[i]].join(" "))}return n}function i(e,t,s={}){return Object.assign({},e,n(e,t,s))}s.d(t,{weakComposeClasses:()=>n,mergeThemes:()=>i})},4585:e=>{e.exports=''},11178:e=>{e.exports=''},99499:e=>{e.exports=''},86440:e=>{e.exports=''},74471:e=>{e.exports=''},52360:e=>{e.exports=''},68139:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-bottom-toolbar.61a521bae909ba6271cb.js b/charting_library/bundles/chart-bottom-toolbar.61a521bae909ba6271cb.js new file mode 100644 index 00000000..d2124f6e --- /dev/null +++ b/charting_library/bundles/chart-bottom-toolbar.61a521bae909ba6271cb.js @@ -0,0 +1,19 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7260],{62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},32925:e=>{e.exports={button:"button-WhrIKIq9",hover:"hover-WhrIKIq9",inner:"inner-WhrIKIq9"}},55576:e=>{e.exports={button:"button-9pA37sIi",hover:"hover-9pA37sIi",isInteractive:"isInteractive-9pA37sIi",isGrouped:"isGrouped-9pA37sIi",newStyles:"newStyles-9pA37sIi",isActive:"isActive-9pA37sIi",isOpened:"isOpened-9pA37sIi",isDisabled:"isDisabled-9pA37sIi",text:"text-9pA37sIi",icon:"icon-9pA37sIi"}},78966:e=>{e.exports={title:"title-mAu74Mtg"}},71123:e=>{e.exports={button:"button-khcLBZEz",hover:"hover-khcLBZEz",arrow:"arrow-khcLBZEz",arrowWrap:"arrowWrap-khcLBZEz",newStyles:"newStyles-khcLBZEz",isOpened:"isOpened-khcLBZEz"}},43527:e=>{e.exports={toolbar:"toolbar-sFd8og5Y",dateRangeWrapper:"dateRangeWrapper-sFd8og5Y",seriesControlWrapper:"seriesControlWrapper-sFd8og5Y",dateRangeExpanded:"dateRangeExpanded-sFd8og5Y",dateRangeCollapsed:"dateRangeCollapsed-sFd8og5Y",item:"item-sFd8og5Y",first:"first-sFd8og5Y",last:"last-sFd8og5Y",inline:"inline-sFd8og5Y",timezone:"timezone-sFd8og5Y",session:"session-sFd8og5Y",icon:"icon-sFd8og5Y",hidden:"hidden-sFd8og5Y",collapsed:"collapsed-sFd8og5Y"}},47393:e=>{e.exports={button:"button-YwWuPcCo",separator:"separator-YwWuPcCo"}},25033:e=>{e.exports={button:"button-wNyKS1Qc",hover:"hover-wNyKS1Qc",icon:"icon-wNyKS1Qc"}},71922:e=>{e.exports={separator:"separator-ArqK8T1e"}},70439:e=>{e.exports={headerMenuText:"headerMenuText-suXx3uas"}},17963:e=>{e.exports={button:"button-U8Px2hz6"}},22880:e=>{e.exports={item:"item-G1QqQDLk",hover:"hover-G1QqQDLk",isActive:"isActive-G1QqQDLk",isFirst:"isFirst-G1QqQDLk",isLast:"isLast-G1QqQDLk"}},72767:e=>{e.exports={slider:"slider-eR7xmZ00",inner:"inner-eR7xmZ00"}},38952:e=>{e.exports={sliderRow:"sliderRow-DtHrLXA3"}},19119:e=>{e.exports={item:"item-tPYeYcJa",interactive:"interactive-tPYeYcJa",hovered:"hovered-tPYeYcJa",disabled:"disabled-tPYeYcJa",active:"active-tPYeYcJa",shortcut:"shortcut-tPYeYcJa",normal:"normal-tPYeYcJa",big:"big-tPYeYcJa",iconCell:"iconCell-tPYeYcJa",icon:"icon-tPYeYcJa",checkmark:"checkmark-tPYeYcJa",content:"content-tPYeYcJa",label:"label-tPYeYcJa",checked:"checked-tPYeYcJa",toolbox:"toolbox-tPYeYcJa",showToolboxOnHover:"showToolboxOnHover-tPYeYcJa",arrowIcon:"arrowIcon-tPYeYcJa",subMenu:"subMenu-tPYeYcJa",invisibleHotkey:"invisibleHotkey-tPYeYcJa"}},61999:e=>{e.exports={item:"item-zoYF2FPa",emptyIcons:"emptyIcons-zoYF2FPa",loading:"loading-zoYF2FPa",disabled:"disabled-zoYF2FPa",interactive:"interactive-zoYF2FPa",hovered:"hovered-zoYF2FPa",normal:"normal-zoYF2FPa",big:"big-zoYF2FPa",icon:"icon-zoYF2FPa",label:"label-zoYF2FPa",title:"title-zoYF2FPa",nested:"nested-zoYF2FPa", +shortcut:"shortcut-zoYF2FPa",remove:"remove-zoYF2FPa"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},26996:(e,t,s)=>{"use strict";s.d(t,{Loader:()=>c});var n,i=s(59496),a=s(97754),o=s(74991),r=s(62092),l=s.n(r);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(n||(n={}));class c extends i.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:n.Initial}}render(){const{className:e,color:t="black",size:s="medium",staticPosition:n}=this.props,o=a(l().item,l()[t],l()[s]);return i.createElement("span",{className:a(l().loader,n&&l().static,this._getStateClass(),e)},i.createElement("span",{className:o}),i.createElement("span",{className:o}),i.createElement("span",{className:o}))}componentDidMount(){this.setState({state:n.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:n.Active})},2*o.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case n.Initial:return l()["loader-initial"];case n.Appear:return l()["loader-appear"];default:return""}}}},90186:(e,t,s)=>{"use strict";function n(e){return a(e,o)}function i(e){return a(e,r)}function a(e,t){const s=Object.entries(e).filter(t),n={};for(const[e,t]of s)n[e]=t;return n}function o(e){const[t,s]=e;return 0===t.indexOf("data-")&&"string"==typeof s}function r(e){return 0===e[0].indexOf("aria-")}s.d(t,{filterDataProps:()=>n,filterAriaProps:()=>i,filterProps:()=>a,isDataAttribute:()=>o,isAriaAttribute:()=>r})},40233:(e,t,s)=>{"use strict";s.d(t,{VerticalAttachEdge:()=>n,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>a,HorizontalDropDirection:()=>o,getPopupPositioner:()=>c});var n,i,a,o,r=s(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(n||(n={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(a||(a={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight", +e[e.FromRightToLeft=1]="FromRightToLeft"}(o||(o={}));const l={verticalAttachEdge:n.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:a.FromTopToBottom,horizontalDropDirection:o.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(s,c)=>{const h=(0,r.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:d=l.verticalAttachEdge,verticalDropDirection:u=l.verticalDropDirection,horizontalAttachEdge:m=l.horizontalAttachEdge,horizontalDropDirection:p=l.horizontalDropDirection,horizontalMargin:g=l.horizontalMargin,verticalMargin:v=l.verticalMargin,matchButtonAndListboxWidths:b=l.matchButtonAndListboxWidths}=t,_=d===n.Top?-1*v:v,C=m===i.Right?h.right:h.left,f=d===n.Top?h.top:h.bottom,S={x:C-(p===o.FromRightToLeft?s:0)+g,y:f-(u===a.FromBottomToTop?c:0)+_};return b&&(S.overrideWidth=h.width),S}}},4825:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_TOOL_WIDGET_BUTTON_THEME:()=>l,ToolWidgetButton:()=>c});var n=s(59496),i=s(97754),a=s(9745),o=s(37669),r=s(55576);const l=r,c=n.forwardRef((e,t)=>{const{icon:s,isActive:l,isOpened:c,isDisabled:h,isGrouped:d,isHovered:u,onClick:m,text:p,textBeforeIcon:g,title:v,theme:b=r,className:_,forceInteractive:C,"data-name":f,...S}=e,x=i(_,b.button,v&&"apply-common-tooltip",{[b.isActive]:l,[b.isOpened]:c,[b.isInteractive]:(C||Boolean(m))&&!h,[b.isDisabled]:h,[b.isGrouped]:d,[b.hover]:u,[b.newStyles]:o.hasNewHeaderToolbarStyles}),E=s&&("string"==typeof s?n.createElement(a.Icon,{className:b.icon,icon:s}):n.cloneElement(s,{className:i(b.icon,s.props.className)}));return n.createElement("div",{...S,ref:t,"data-role":"button",className:x,onClick:h?void 0:m,title:v,"data-name":f},g&&p&&n.createElement("div",{className:i("js-button-text",b.text)},p),E,!g&&p&&n.createElement("div",{className:i("js-button-text",b.text)},p))})},49466:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenuSummary:()=>o});var n=s(59496),i=s(97754),a=s(78966);function o(e){return n.createElement("div",{className:i(e.className,a.title)},e.children)}},35390:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenu:()=>p});var n=s(59496),i=s(97754),a=s(50628),o=s(10381),r=s(90186),l=s(37558),c=s(41590),h=s(40233),d=s(90692),u=s(37669),m=s(71123);class p extends n.PureComponent{constructor(e){super(e),this._wrapperRef=null,this._controller=n.createRef(),this._handleWrapperRef=e=>{this._wrapperRef=e,this.props.reference&&this.props.reference(e)},this._handleClick=e=>{e.target instanceof Node&&e.currentTarget.contains(e.target)&&(this._handleToggleDropdown(),this.props.onClick&&this.props.onClick(e,!this.state.isOpened))},this._handleToggleDropdown=e=>{const{onClose:t,onOpen:s}=this.props,{isOpened:n}=this.state,i="boolean"==typeof e?e:!n;this.setState({isOpened:i}),i&&s&&s(),!i&&t&&t()},this._handleClose=()=>{this.close()},this.state={isOpened:!1}}render(){const{id:e,arrow:t,content:s,isDisabled:a,isDrawer:l,isShowTooltip:c,title:h,className:m,hotKey:p,theme:g,drawerBreakpoint:v}=this.props,{isOpened:b}=this.state,_=i(m,g.button,{"apply-common-tooltip":c||!a,[g.isDisabled]:a,[g.isOpened]:b, +[g.newStyles]:u.hasNewHeaderToolbarStyles});return n.createElement("div",{id:e,className:_,onClick:a?void 0:this._handleClick,title:h,"data-tooltip-hotkey":p,ref:this._handleWrapperRef,"data-role":"button",...(0,r.filterDataProps)(this.props)},s,t&&n.createElement("div",{className:g.arrow},n.createElement("div",{className:g.arrowWrap},n.createElement(o.ToolWidgetCaret,{dropped:b}))),this.state.isOpened&&(v?n.createElement(d.MatchMedia,{rule:v},e=>this._renderContent(e)):this._renderContent(l)))}close(){this._handleToggleDropdown(!1)}update(){null!==this._controller.current&&this._controller.current.update()}_renderContent(e){const{menuDataName:t,minWidth:s,menuClassName:i,maxHeight:o,drawerPosition:r="Bottom",children:d}=this.props,{isOpened:u}=this.state,m={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection,matchButtonAndListboxWidths:this.props.matchButtonAndListboxWidths},p=Boolean(u&&e&&r),g=function(e){return"function"==typeof e}(d)?d({isDrawer:p}):d;return p?n.createElement(l.DrawerManager,null,n.createElement(c.Drawer,{onClose:this._handleClose,position:r,"data-name":t},g)):n.createElement(a.PopupMenu,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:u,minWidth:s,onClose:this._handleClose,position:(0,h.getPopupPositioner)(this._wrapperRef,m),className:i,maxHeight:o,"data-name":t},g)}}p.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:m}},50168:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BottomToolbarRenderer:()=>nt});var n=s(59496),i=s(87995),a=s(28353),o=s(19036),r=s(97754),l=s(9837),c=s(67337),h=s(35390),d=s(40233),u=s(59064),m=s(90692),p=s(16396),g=s(51613),v=s(88537),b=s(51768),_=s(55402),C=s(2872),f=s.n(C),S=s(16654);class x{constructor(e){this._state={ranges:[]},this._change=new(f()),this._rangeChangedListenerBound=this._onRangeChanged.bind(this);const{chartWidget:t}=this._context=e;t.withModel(null,()=>{const e=t.model(),s=e.mainSeries();s.onStatusChanged().subscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().subscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.subscribe(this,this._updateAvailableRanges);const n=e.model().appliedTimeFrame();n.subscribe(this._rangeChangedListenerBound),this._rangeChangedListenerBound(n.value()),this._updateAvailableRanges()})}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,s={val:e.value,res:e.targetResolution};t.setTimeFrame(s)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,()=>{const t=e.model(),s=t.mainSeries();s.onStatusChanged().unsubscribe(this,this._updateAvailableRanges), +c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)}),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.hasModel())return;const s=t.model().mainSeries(),n=s.status();if(n===S.STATUS_LOADING||n===S.STATUS_RESOLVING)return;const i=e(s.symbolInfo(),s.status());0!==i.length&&this._setState({ranges:i})}}const E=(0,_.registryContextType)();function y(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{var t,s;(0,b.trackEvent)("GUI","Chart Bottom Toolbar","range "+e.value),null===(s=(t=this.props).onSelectRange)||void 0===s||s.call(t,e),this._binding.selectRange(e)},(0,_.validateRegistry)(t,{availableTimeFrames:o.any.isRequired,chartWidgetCollection:o.any.isRequired,chartWidget:o.any.isRequired}),M.has(t.chartWidget)||M.set(t.chartWidget,new x(t));const s=this._binding=(0,v.ensureDefined)(M.get(t.chartWidget));this.state=s.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return n.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=E,t}const M=new WeakMap;var w=s(94420),T=s(23829),k=s(1109),R=s(82724),A=s(52360),N=s(47393);function D(e){const{ranges:t,activeRange:s,onSelectRange:i}=e;return n.createElement(n.Fragment,null,t.map(e=>n.createElement(T.ContextMenuItem,{key:e.value.value,label:e.description||e.text,active:s===e.value.value,checked:s===e.value.value,checkable:!0,disabled:!1,onClick:a.bind(null,e),doNotCloseOnClick:!1,subItems:[]})));function a(e){e&&i&&i(e),(0,u.globalCloseMenu)()}}function B(e){const{onGoToDateClick:t}=e;return n.createElement(n.Fragment,null,n.createElement(k.Separator,{className:N.separator}),n.createElement(T.ContextMenuItem,{icon:A,label:(0,R.appendEllipsis)((0,a.t)("Go to")),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]}))}const W={title:(0,a.t)("Date Range"),goToDate:(0,R.appendEllipsis)((0,a.t)("Go to"))},F=(0,_.registryContextType)();class P extends n.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,w.showGoToDateDialog)(e),(0,u.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,u.globalCloseMenu)()},this._renderChildren=e=>{ +const{ranges:t,activeRange:s,goToDateButton:i}=this.props;return e?n.createElement(n.Fragment,null,n.createElement(D,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),i&&n.createElement(B,{onGoToDateClick:this._handleGoToDateClick})):n.createElement(n.Fragment,null,t.map(e=>n.createElement(p.PopupMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e})),i&&n.createElement(g.PopupMenuSeparator,null),i&&n.createElement(p.PopupMenuItem,{label:W.goToDate,onClick:this._handleGoToDateClick}))},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired})}render(){return n.createElement(m.MatchMedia,{rule:"screen and (max-width: 428px)"},e=>n.createElement(h.ToolWidgetMenu,{className:N.button,content:W.title,arrow:!0,verticalAttachEdge:d.VerticalAttachEdge.Top,verticalDropDirection:d.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e)))}_trackClick(){0}}P.contextType=F;const z=y(P);var L=s(64205),I=s(22880);function H(e){const t=r(e.className,I.item,{[I.isActive]:e.isActive,[I.isFirst]:e.isFirst,[I.isLast]:e.isLast});return n.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}var Y=s(40173),O=s(72767);const j=(0,Y.mergeThemes)(L.DEFAULT_SLIDER_THEME,O);var G=s(38952);const Z=(0,L.factory)((function(e){return n.createElement("div",{className:r(e.className,j.slider),ref:e.reference},n.createElement("div",{className:j.inner}))}));const V=y((function(e){const{className:t,ranges:s,activeRange:i,onSelectRange:a}=e;return n.createElement(Z,{className:r(G.sliderRow,t),"data-name":"date-ranges-tabs"},s.map((e,t)=>n.createElement(H,{key:e.value.value,value:e.value.value,isFirst:0===t,isLast:t===s.length-1,isActive:i===e.value.value,onClick:a&&a.bind(null,e)},n.createElement("div",{title:e.description||e.text,className:"apply-common-tooltip"},e.text))))}));var U=s(9745),q=s(61814),J=s(68335),K=s(68139),Q=s(25033);const X=(0,q.hotKeySerialize)({keys:[(0,J.humanReadableModifiers)(J.Modifiers.Alt,!1),"G"],text:"{0} + {1}"}),$=(0,_.registryContextType)();class ee extends n.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidget:e}=this.context;(0,b.trackEvent)("GUI","Chart Bottom Toolbar","go to"),(0,w.showGoToDateDialog)(e)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired})}render(){const{className:e,ranges:t}=this.props;return t.length>0&&n.createElement("div",{className:r("apply-common-tooltip",Q.button,e),"data-name":"go-to-date","data-tooltip-hotkey":X,onClick:this._handleClick,title:(0,a.t)("Go to")},n.createElement(U.Icon,{className:Q.icon,icon:K}))}}ee.contextType=$;const te=y(ee);var se=s(32925);function ne(e){const{reference:t,className:s,children:i,...a}=e;return n.createElement("button",{...a,className:r(s,se.button),ref:t},n.createElement("span",{className:se.inner},i))}var ie=s(23095),ae=s(64806),oe=s(28296),re=s(97056);class le extends n.PureComponent{constructor(e){super(e), +this._element=null,this._menuShown=!1,this._preventShowingMenu=!1,this._handleRef=e=>{this._element=e},this._onMouseDown=()=>{this._preventShowingMenu=this._menuShown},this._showMenu=()=>{if(this._preventShowingMenu)return void re.ContextMenuManager.hideAll();const{getActions:e}=this.props,t=(0,v.ensureNotNull)(this._element),s=e();if(0===s.length)return;const n=t.getBoundingClientRect();re.ContextMenuManager.showMenu(s,{clientX:n.left,clientY:n.top,attachToYBy:"bottom"},void 0,{menuName:"TimezoneMenuContextMenu"},()=>{this._menuShown=!1}).then(()=>{this._menuShown=!0})}}render(){const{children:e}=this.props;return n.createElement("span",{onClick:this._showMenu,onMouseDown:this._onMouseDown,ref:this._handleRef},e)}}var ce=s(10480),he=s(17963);const de={hint:(0,a.t)("Timezone")};const ue=(0,_.registryContextType)();class me extends n.PureComponent{constructor(e,t){super(e,t),this._timeFormatter=new ae.TimeFormatter,this._tickInterval=void 0,this._tickClock=()=>{const{chartApiInstance:e}=this.context;if(void 0!==this._timezone){const t=(0,ce.utc_to_cal)(this._timezone,e.serverTime());this.setState({time:this._timeFormatter.format(t)})}},this._getActions=()=>{if(!this.props.withMenu)return[];const{chartWidget:e}=this.context;return function(e){e.updateActions();const t=e.actions();return t&&t.applyTimeZone instanceof oe.Action?t.applyTimeZone.getSubItems():[]}(e)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired,chartApiInstance:o.any.isRequired}),this.state={time:""}}componentDidMount(){const{chartWidget:e}=this.context;this._tickInterval=setInterval(this._tickClock,1e3),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.subscribe(this,this.updateTimezonesButton)})}componentWillUnmount(){const{chartWidget:e}=this.context;clearInterval(this._tickInterval),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.unsubscribe(this,this.updateTimezonesButton)})}render(){const{className:e,withMenu:t}=this.props,{time:s}=this.state,i=void 0!==this._timezone?(0,ie.parseTzOffset)(this._timezone.name()).string:null;return n.createElement(le,{getActions:this._getActions},n.createElement(ne,{className:r(e,he.button,"apply-common-tooltip"),title:t?de.hint:void 0,disabled:!t,"data-name":"time-zone-menu"},s&&i&&`${s} (${i})`))}updateTimezonesButton(){const{chartWidget:e}=this.context;if(!e.hasModel())return;if(null===e.model().mainSeries().symbolInfo())return;let t=e.model().model().timezone();if("exchange"===t){const s=(0,v.ensureNotNull)(e.model().mainSeries().symbolInfo()).timezone;s&&(t=s)}this._timezone=(0,ce.get_timezone)(t),this._tickClock()}}me.contextType=ue;var pe=s(71922);function ge(e){return n.createElement("span",{className:r(pe.separator,e.className)})}var ve=s(4825),be=s(24980),_e=s(49483);class Ce{constructor(e,t,s){this._highlighted=!1,this._chartWidget=e, +this._priceScaleGetter=t,this._owner=s,this._setHighlight=this._setHighlight.bind(this),this._removeHighlight=this._removeHighlight.bind(this)}destroy(){this._highlighted&&this._removeHighlight()}handlers(){const e=_e.CheckMobile.any();return{onMouseEnter:e?void 0:this._setHighlight,onMouseLeave:e?void 0:this._removeHighlight}}_setHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries()),s=this._priceScaleGetter();if(null===t||null===s)return;const n=this._chartWidget.paneByState(t);if(null!==n){const t=n.rightPriceAxisesContainer().findAxisWidgetForScale(s);let i=null;null!==t&&(i=t.axisInfo());const a=n.leftPriceAxisesContainer().findAxisWidgetForScale(s);null!==a&&(i=a.axisInfo());const o=n.highlightedPriceAxis();null!==i&&o.value().axis!==i&&(o.setValue({owner:this._owner,axis:i}),e.lightUpdate(),this._highlighted=!0)}}_removeHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries());if(null===t)return;const s=this._chartWidget.paneByState(t);if(null!==s){const t=s.highlightedPriceAxis(),n=t.value();null!==n.axis&&n.owner===this._owner&&(t.setValue({owner:this._owner,axis:null}),e.lightUpdate(),this._highlighted=!1)}}}const fe=(0,_.registryContextType)(),Se=new be.TranslatedString("toggle log scale",(0,a.t)("toggle log scale"));const xe=(0,_.registryContextType)(),Ee=new be.TranslatedString("toggle auto scale",(0,a.t)("toggle auto scale"));const ye=(0,_.registryContextType)(),Me=new be.TranslatedString("toggle percentage scale",(0,a.t)("toggle percentage scale"));const we=(0,_.registryContextType)();var Te=s(42142),ke=s(54475),Re=s(49466),Ae=s(56450),Ne=s(70439);const De=new be.TranslatedString("change session",(0,a.t)("change session")),Be={hint:(0,a.t)("Session"),headerMenuText:(0,a.t)("Sessions")},We=(0,_.registryContextType)();class Fe extends n.PureComponent{constructor(e,t){super(e,t),(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired,chartApiInstance:o.any.isRequired}),this.state={availableSessions:[]}}componentDidMount(){const{chartWidget:e}=this.context;e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.subscribe(this,this.updateSessionButton),this.updateSessionButton()})}componentWillUnmount(){const{chartWidget:e}=this.context;e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.unsubscribe(this,this.updateSessionButton)})}render(){const{className:e,withMenu:t}=this.props,{sessionName:s}=this.state;return n.createElement(h.ToolWidgetMenu,{arrow:!1,isDisabled:!t,content:s,className:e,closeOnClickOutside:!0,title:t?Be.hint:void 0,"data-name":"session-menu",verticalDropDirection:d.VerticalDropDirection.FromBottomToTop,verticalAttachEdge:d.VerticalAttachEdge.Top,onClick:this._trackClick +},this._menuItems())}updateSessionButton(){var e,t;const{chartWidget:s}=this.context;if(!s.model())return;const n=s.model().mainSeries().symbolInfo();if(null===n)return;const i=n.subsession_id,a=null!==(t=null===(e=n.subsessions)||void 0===e?void 0:e.filter(e=>!e.private))&&void 0!==t?t:[],o=a.find(e=>e.id===i);this.setState({sessionId:i,sessionName:(0,Ae.translateSessionShortDescription)((null==o?void 0:o.description)||""),availableSessions:a})}_menuItems(){if(!this.props.withMenu)return[];const{chartWidget:e}=this.context,{availableSessions:t}=this.state;if(!e.model())return[];const s=e.model().mainSeries(),i=[n.createElement(Re.ToolWidgetMenuSummary,{key:"header_menu_text",className:Ne.headerMenuText},Be.headerMenuText.toUpperCase())];for(const a of t){const t={category:"SetSession",event:a.id},o=()=>{e.model().setProperty(s.properties().childs().sessionId,a.id,De)};i.push(n.createElement(p.PopupMenuItem,{key:a.id,label:(0,Ae.translateSessionDescription)(a.description),isActive:this.state.sessionId===a.id,trackEventObject:t,onClick:o}))}return i}_trackClick(){0}}Fe.contextType=We;var Pe=s(99499),ze=s(11178),Le=s(43527);const Ie={extLabel:(0,a.t)("ext"),extHint:(0,a.t)("Extended Hours is available only for intraday charts"),percentageHint:(0,a.t)("Toggle Percentage"),logLabel:(0,a.t)("log",{context:"scale"}),logHint:(0,a.t)("Toggle Log Scale"),autoLabel:(0,a.t)("auto",{context:"scale"}),autoHint:(0,a.t)("Toggle Auto Scale"),fullscreenHint:(0,a.t)("Toggle Maximize Chart"),adjLabel:(0,a.t)("adj",{context:"adjustments"}),adjHint:(0,a.t)("Adjust data for dividends"),adjForDividendsOnlyHint:(0,a.t)("Main symbol data is adjusted for dividends only"),adjForSplitsOnlyHint:(0,a.t)("Main symbol data is adjusted for splits only"),backAdjustLabel:(0,a.t)("b-adj",{context:"adjustments"}),backAdjustHint:(0,a.t)("Adjust for contract changes"),settlementAsCloseLabel:(0,a.t)("set",{context:"adjustments"}),settlementAsCloseHint:(0,a.t)("Use settlement as close on daily interval")},He=(Ye=e=>n.createElement(ve.ToolWidgetButton,{text:Ie.logLabel,title:Ie.logHint,className:e.className,isActive:e.isLogarithm,isGrouped:!0,onClick:Qe(e.onClick,"log",e.isLogarithm),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"logarithm"}),(Oe=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series),s=t.priceScale(),n=s.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({log:!n.log},s,Se)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"logarithm")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},s.mode()),this.setState({isActive:t.priceScale().isLog(), +series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:e}=this.props,{isActive:t,series:s}=this.state;return n.createElement(Ye,{...this._priceAxisHighlighter.handlers(),className:e,isLogarithm:t,isDisabled:null===s,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged),this._handleModeChanged({},e.mode())}_handleModeChanged(e,t){Boolean(t.log)!==this.state.isActive&&this.setState({isActive:Boolean(t.log)})}}).contextType=fe,Oe);var Ye,Oe;const je=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series).priceScale(),s=t.mode();e.setPriceScaleMode({autoScale:!s.autoScale},t,Ee)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"auto")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},s.mode()),this.setState({isActive:t.priceScale().isAutoScale(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:t}=this.props,{isActive:s,series:i}=this.state;return n.createElement(e,{...this._priceAxisHighlighter.handlers(),className:t,isAuto:s,isDisabled:null===i,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged),this._handleModeChanged({},e.mode())}_handleModeChanged(e,t){Boolean(t.autoScale)!==this.state.isActive&&this.setState({isActive:Boolean(t.autoScale)})}}).contextType=xe,t}(e=>n.createElement(ve.ToolWidgetButton,{text:Ie.autoLabel,title:Ie.autoHint,className:e.className,isActive:e.isAuto,isGrouped:!0,onClick:Qe(e.onClick,"auto",e.isAuto),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"auto"})),Ge=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._priceScale=null, +this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=(0,v.ensureNotNull)(this.state.series),s=t.priceScale(),n=s.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({percentage:!n.percentage},s,Me)},(0,_.validateRegistry)(t,{chartWidget:o.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new Ce(this.context.chartWidget,()=>this._priceScale,"percentage")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),s=t.priceScale();this._handleMainSeriesPriceScaleChanged(s),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleScaleChange({},s.mode()),this.setState({isActive:t.priceScale().isPercentage(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:t}=this.props,{isActive:s,series:i}=this.state;return n.createElement(e,{...this._priceAxisHighlighter.handlers(),className:t,isPercentage:s,isDisabled:null===i,onClick:this._handleSelect})}_handleMainSeriesPriceScaleChanged(e){null!==this._priceScale&&this._priceScale.modeChanged().unsubscribe(this,this._handleScaleChange),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleScaleChange),this._handleScaleChange({},e.mode())}_handleScaleChange(e,t){Boolean(t.percentage)!==this.state.isActive&&this.setState({isActive:Boolean(t.percentage)})}}).contextType=ye,t}(e=>n.createElement(ve.ToolWidgetButton,{icon:Pe,title:Ie.percentageHint,className:e.className,isActive:e.isPercentage,isDisabled:e.isDisabled,isGrouped:!0,onClick:Qe(e.onClick,"percent",e.isPercentage),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"percentage"}));const Ze=(0,q.hotKeySerialize)({keys:[(0,J.humanReadableModifiers)(J.Modifiers.Alt,!1),"Enter"],text:"{0} + {1}"}),Ve=function(e){var t;return(t=class extends n.PureComponent{constructor(e,t){super(e,t),this._handleClick=e=>{const{resizerDetacher:t,chartWidgetCollection:s}=this.context;e.shiftKey&&t.detachable.value()?t.detach():this.state.isFullscreen?t.exitFullscreen():t.requestFullscreen()},this._handleLayoutChange=e=>{this.setState({isFullscreen:e})},this._handlePhoneSize=()=>{0},(0,_.validateRegistry)(t,{chartWidgetCollection:o.any.isRequired,resizerDetacher:o.any.isRequired});const{resizerDetacher:s}=t;this.state={isFullscreen:s.fullscreen.value(),isChangeLayoutButton:this._isChangeLayoutButton()}}componentDidMount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:s}=this.props;e.fullscreen.subscribe(this._handleLayoutChange)}componentWillUnmount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:s}=this.props;e.fullscreen.unsubscribe(this._handleLayoutChange)}render(){ +const{className:t}=this.props,{isFullscreen:s,isChangeLayoutButton:i}=this.state;return n.createElement(e,{className:t,isFullscreen:s,onClick:this._handleClick})}_isChangeLayoutButton(){return!1}}).contextType=we,t}(e=>n.createElement(ve.ToolWidgetButton,{icon:ze,title:Ie.fullscreenHint,className:e.className,isActive:e.isFullscreen,onClick:Qe(e.onClick,"maximize chart",e.isFullscreen),"data-tooltip-hotkey":Ze,"data-name":"fullscreen"})),Ue={properties:!0,fullscreen:!0,preventPhoneLayout:!0},qe={fullscreen:Number.MIN_SAFE_INTEGER,preventPhoneLayout:Number.MIN_SAFE_INTEGER,properties:Number.MIN_SAFE_INTEGER,separator:-2,timeZones:-1,auto:0,logarithm:1,percentage:2,session:3,adj:4,backAdj:5,settlementAsClose:6},Je=(()=>{const e=new Map;return e.set(He,"logarithm"),e.set(Ge,"percentage"),e.set(je,"auto"),e.set(Fe,"session"),e.set(Ve,"fullscreen"),e})();function Ke(e){0}function Qe(e,t,s){return t=>{e(t)}}const Xe={dateRangeMode:"hidden",separator:!0,timeZones:!0,fullscreen:!0,preventPhoneLayout:!0,properties:!0,auto:!0,logarithm:!0,percentage:!0,session:!0,adj:!0,backAdj:!0,settlementAsClose:!0},$e=(0,_.registryContextType)();class et extends n.PureComponent{constructor(e,t){var s,a;super(e,t),this._timezoneButtonRef=null,this._layout=Object.assign({},Xe),this._raf=null,this._toolbar=null,this._rangeExpanded=null,this._rangeCollapsed=null,this._seriesComponents={},this._injector=(s=()=>this._layout,a=(e,t)=>this._seriesComponents[t]=e,(e,t,i)=>{if(n.isValidElement(e)&&"string"!=typeof e.type){const{props:o}=e;if("string"==typeof o.className){const l={className:r(o.className,0===t&&Le.first,t===i.length-1&&Le.last)},c=s(),h=(0,v.ensureDefined)(Je.get(e.type));return n.createElement("div",{key:null===e.key?void 0:e.key,className:r(Le.inline,c[h]&&Le.collapsed),ref:e=>a(e,h),onClick:()=>Ke()},n.cloneElement(e,l))}}return e}),this._updateButtonsVisibility=()=>{const{chartWidget:e}=this.context,t=e.model().model(),s=t.mainSeries(),n=s.symbolInfo(),i=!s.isDWMProperty().value();if(s.symbolResolvingActive().value())return void this._setStateWithResize({intervalAllowsSessionButton:i});const a=((null==n?void 0:n.subsessions)||[]).filter(e=>!e.private).length>1;this._setStateWithResize({intervalAllowsSessionButton:i,symbolAllowsSessionButton:a})},this._handleResize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const e=this._layout,t=(0,v.ensureNotNull)(this._toolbar),s=(0,v.ensureNotNull)(this._rangeExpanded),n=(a=function(e){const t={};return Object.keys(e).forEach(s=>{const n=e[s];if(null!==n){const e=i.findDOMNode(n);null!==e&&(t[s]=e)}}),t}(this._seriesComponents),Object.keys(a).map(e=>({name:e,width:a[e].offsetWidth})).sort((e,t)=>qe[e.name]-qe[t.name]));var a;const o=t.offsetWidth,r=n.reduce((e,t)=>e+t.width,0),l=s.offsetWidth,c=!Boolean(s.textContent)||o-r-l<=0?"collapsed":"expanded";if(Object.assign(e,{dateRangeMode:c}),"expanded"!==c){const t=o-(0,v.ensureNotNull)(this._rangeCollapsed).offsetWidth-0;let s=0,i=0;for(const a of n)s+=a.width,a.name in Ue?(i+=a.width,Object.assign(e,{[a.name]:!1 +})):Object.assign(e,{[a.name]:t<=s});t<=i&&Object.assign(e,{dateRangeMode:"hidden"})}else Object.assign(e,{separator:!1,timeZones:!1,fullscreen:!1,preventPhoneLayout:!1,properties:!1,auto:!1,logarithm:!1,percentage:!1,session:!1,adj:!1,settlementAsClose:!1,backAdj:!1});this._applyResizing(),this._raf=null}))},this._handleTimezoneButtonRef=e=>{this._timezoneButtonRef=e},this._handleMeasure=()=>{null!==this._toolbar&&this.resizeUI()},this._handleFullscreenableChange=e=>{this._setStateWithResize({isFullscreenable:e})},this._handlePreventPhoneLayoutButtonVisibility=()=>{0},this._handleToolbarRef=e=>this._toolbar=e,this._handleRangeCollapsedRef=e=>this._rangeCollapsed=e,this._handleRangeExpandedRef=e=>this._rangeExpanded=e,this._handleTimeZonesRef=e=>{this._seriesComponents.timeZones=e},this._handleSessionsRef=e=>{this._seriesComponents.session=e},this._handleSeparatorRef=e=>{this._seriesComponents.separator=e},(0,_.validateRegistry)(t,{onContentBoxChanged:o.any.isRequired,chartApiInstance:o.any.isRequired,chartWidget:o.any.isRequired,chartWidgetCollection:o.any.isRequired,resizerDetacher:o.any.isRequired});const{resizerDetacher:l}=this.context;this.state={isFullscreenable:l.fullscreenable.value(),isPreventPhoneLayoutButton:this._isPreventPhoneLayoutButton()}}componentDidMount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:s,chartWidget:n}=this.context;e.subscribe(this,this._handleResize),t.fullscreenable.subscribe(this._handleFullscreenableChange),n.withModel(null,()=>{const e=n.model(),t=e.model();e.mainSeries().isDWMProperty().subscribe(this,this._updateButtonsVisibility),t.symbolSourceResolvingActive().subscribe(this._updateButtonsVisibility),t.symbolSourceCollectionChanged().subscribe(this,this._updateButtonsVisibility),this._updateButtonsVisibility()}),this.updateTimezonesButton(),this.resizeUI()}componentWillUnmount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:s,chartWidget:n}=this.context;e.unsubscribe(this,this._handleResize),t.fullscreenable.unsubscribe(this._handleFullscreenableChange),n.withModel(null,()=>{const e=n.model(),t=e.model();e.mainSeries().isDWMProperty().unsubscribe(this,this._updateButtonsVisibility),e.mainSeries().isBackAdjustmentForbiddenProperty().unsubscribe(this,this._updateButtonsVisibility),e.mainSeries().isSettlementAsCloseForbiddenProperty().unsubscribe(this,this._updateButtonsVisibility),t.symbolSourceCollectionChanged().unsubscribe(this,this._updateButtonsVisibility),t.symbolSourceResolvingActive().unsubscribe(this._updateButtonsVisibility)}),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}render(){const e=this._layout,{timeFramesWidgetEnabled:t,timeWidgetEnabled:s,percentageScaleButtonEnabled:i,logScaleButtonEnabled:a,autoScaleButtonEnabled:o,fullscreenButtonEnabled:h}=this.props;return n.createElement("div",{className:Le.toolbar,ref:this._handleToolbarRef,onContextMenu:ke.preventDefault},t&&n.createElement(Te.FragmentMap,null,n.createElement("div",{ +className:r(Le.dateRangeWrapper,"collapsed"!==e.dateRangeMode&&Le.collapsed),ref:this._handleRangeCollapsedRef},n.createElement("div",{className:r(Le.dateRangeCollapsed)},n.createElement(z,{goToDateButton:this.props.goToDateEnabled}))),n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Le.dateRangeWrapper,"expanded"!==e.dateRangeMode&&Le.collapsed),ref:this._handleRangeExpandedRef},n.createElement("div",{className:r(Le.dateRangeExpanded)},n.createElement(V,{onSelectRange:this._trackRangeButtonClick}),this.props.goToDateEnabled&&n.createElement(ge,null),this.props.goToDateEnabled&&n.createElement(te,null))))),n.createElement("div",{className:Le.seriesControlWrapper},s&&n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Le.inline,e.timeZones&&Le.collapsed),ref:this._handleTimeZonesRef},n.createElement("div",{className:Le.inline,onClick:this._trackTimezonesButtonClick},n.createElement(me,{className:Le.timezone,withMenu:this.props.timezoneMenuEnabled,ref:this._handleTimezoneButtonRef})))),this.props.sessionIdButtonEnabled&&this.state.symbolAllowsSessionButton&&this.state.intervalAllowsSessionButton&&n.createElement(l,{onMeasure:this._handleMeasure},n.createElement("div",{className:r(Le.inline,e.session&&Le.collapsed),ref:this._handleSessionsRef},n.createElement("div",{className:Le.inline},n.createElement(Fe,{className:Le.session,withMenu:this.props.sessionIdButtonEnabled})))),n.createElement("div",{ref:this._handleSeparatorRef,className:r(Le.inline,e.separator&&Le.collapsed)},n.createElement(ge,null)),n.createElement(Te.FragmentMap,{map:this._injector},!1,!1,!1,i&&!c.enabled("fundamental_widget")&&n.createElement(Ge,{className:Le.icon}),a&&n.createElement(He,{className:Le.item}),o&&n.createElement(je,{className:Le.item}),h&&this.state.isFullscreenable&&n.createElement(Ve,{className:Le.icon,mobileChangeLayoutEnabled:this.props.mobileChangeLayoutEnabled}),!1)))}updateTimezonesButton(){null!==this._timezoneButtonRef&&this._timezoneButtonRef.updateTimezonesButton()}resizeUI(){this._handleResize()}_trackRangeButtonClick(e){0}_trackTimezonesButtonClick(){Ke()}_setStateWithResize(e){Object.assign(this._layout,Xe),this._applyResizing(),this.setState(e,()=>this._handleResize())}_applyResizing(){const{dateRangeMode:e,...t}=this._layout;this._rangeExpanded&&this._rangeExpanded.classList.toggle(Le.collapsed,"expanded"!==e),this._rangeCollapsed&&this._rangeCollapsed.classList.toggle(Le.collapsed,"collapsed"!==e),Object.keys(t).forEach(e=>{const s=e,n=this._seriesComponents[s];n&&n.classList.toggle(Le.collapsed,t[s])})}_isPreventPhoneLayoutButton(){return!1}}et.contextType=$e;const tt={onContentBoxChanged:o.any,computeContentBox:o.any,chartWidget:o.any,chartApiInstance:o.any,chartWidgetCollection:o.any,resizerDetacher:o.any,availableTimeFrames:o.any};class st extends n.PureComponent{constructor(e){super(e),this._setActiveChart=e=>{this._defineRegistry(e),this.setState({chartWidget:e})};const t=this.props.chartWidgetCollection.activeChartWidget.value();this.state={ +chartWidget:t},this._defineRegistry(t)}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._setActiveChart)}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._setActiveChart)}render(){const{chartWidget:e}=this.state;if(!e)return null;const{options:t}=this.props,s={timeFramesWidgetEnabled:t.timeFramesWidgetEnabled,goToDateEnabled:t.timeFramesWidget.goToDateEnabled,timeWidgetEnabled:t.timeWidgetEnabled,timezoneMenuEnabled:t.timeWidget&&t.timeWidget.timezoneMenuEnabled,sessionIdButtonEnabled:t.sessionIdButtonEnabled,backAdjustmentButtonEnabled:t.backAdjustmentButtonEnabled,settlementAsCloseButtonEnabled:t.settlementAsCloseButtonEnabled,adjustForDividendsButtonEnabled:t.adjustForDividendsButtonEnabled,logScaleButtonEnabled:t.logScaleButtonEnabled,percentageScaleButtonEnabled:t.percentageScaleButtonEnabled,autoScaleButtonEnabled:t.autoScaleButtonEnabled,fullscreenButtonEnabled:t.fullscreenButtonEnabled,mobileChangeLayoutEnabled:t.mobileChangeLayoutEnabled};return n.createElement(_.RegistryProvider,{validation:tt,value:this._registry},n.createElement(et,{key:e.id(),...s}))}_defineRegistry(e){const{onContentBoxChanged:t,computeContentBox:s,chartApiInstance:n,chartWidgetCollection:i,options:{timeFramesWidgetEnabled:a,timeFramesWidget:o}}=this.props,r=a?o.availableTimeFrames:void 0;this._registry={onContentBoxChanged:t,computeContentBox:s,chartWidget:e,availableTimeFrames:r,chartApiInstance:n,chartWidgetCollection:i,resizerDetacher:e.getResizerDetacher()}}}class nt{constructor(e,t,s,a,o,r,l){this._container=e;const c=n.createElement(st,{onContentBoxChanged:t,computeContentBox:s,chartWidgetCollection:a,chartApiInstance:o,chartWidgetOptions:r,options:l});i.render(c,e),e.setAttribute("data-initialized","true")}destroy(){i.unmountComponentAtNode(this._container),this._container.removeAttribute("data-initialized")}}},37669:(e,t,s)=>{"use strict";s.d(t,{hasNewHeaderToolbarStyles:()=>n});s(67337);const n=!1},55402:(e,t,s)=>{"use strict";s.d(t,{validateRegistry:()=>r,RegistryProvider:()=>l,registryContextType:()=>c});var n=s(59496),i=s(19036),a=s.n(i);const o=n.createContext({});function r(e,t){a().checkPropTypes(t,e,"context","RegistryContext")}function l(e){const{validation:t,value:s}=e;return r(s,t),n.createElement(o.Provider,{value:s},e.children)}function c(){return o}},56450:(e,t,s)=>{"use strict";s.d(t,{translateSessionDescription:()=>a,translateSessionShortDescription:()=>r});var n=s(28353);const i=new Map([["Premarket",(0,n.t)("Premarket",{context:"sessions"})],["Postmarket",(0,n.t)("Postmarket",{context:"sessions"})],["Regular Trading Hours",(0,n.t)("Regular trading hours",{context:"sessions"})],["Extended Trading Hours",(0,n.t)("Extended trading hours",{context:"sessions"})],["Electronic Trading Hours",(0,n.t)("Electronic trading hours",{context:"sessions"})]]);function a(e){var t;return null!==(t=i.get(e))&&void 0!==t?t:e}const o=new Map([["Premarket",(0,n.t)("PRE",{context:"sessions"})],["Postmarket",(0,n.t)("POST",{context:"sessions" +})],["Regular Trading Hours",(0,n.t)("RTH",{context:"sessions"})],["Extended Trading Hours",(0,n.t)("ETH",{context:"sessions"})],["Electronic Trading Hours",(0,n.t)("ETH",{context:"sessions"})]]);function r(e){var t;return null!==(t=o.get(e))&&void 0!==t?t:e}},42142:(e,t,s)=>{"use strict";s.d(t,{FragmentMap:()=>i});var n=s(59496);function i(e){if(e.map){return n.Children.toArray(e.children).map(e.map)}return e.children}},99025:(e,t,s)=>{"use strict";s.d(t,{Hint:()=>r});var n=s(59496),i=s(97754),a=s.n(i),o=s(19119);function r(e){const{text:t="",className:s}=e;return n.createElement("span",{className:a()(o.shortcut,s)},t)}},23829:(e,t,s)=>{"use strict";s.d(t,{ContextMenuItem:()=>p});var n=s(59496),i=s(97754),a=s.n(i),o=s(9745),r=s(26996),l=s(54627),c=s(99025),h=s(86440),d=s(4585),u=s(74471),m=s(61999);function p(e){const{isTitle:t,isLoading:s,isHovered:i,active:p,checkable:g,disabled:v,checked:b,icon:_,iconChecked:C,hint:f,subItems:S,label:x,onClick:E,children:y,toolbox:M,jsxLabel:w,size:T="normal"}=e,k=(0,n.useContext)(l.EmptyIconsContext),R=!!S.length;return s?n.createElement("li",{className:a()(m.item,m.loading,m[T])},n.createElement(r.Loader,null)):n.createElement("li",{className:a()(m.item,m.interactive,t&&m.title,v&&m.disabled,i&&m.hovered,p&&m.active,k&&m.emptyIcons,m[T]),onClick:E},n.createElement(o.Icon,{className:a()(m.icon),icon:function(){if(g&&b)return C||_||h;return _}()}),n.createElement("span",{className:a()(m.label)},null!=w?w:x),!!M&&n.createElement(o.Icon,{onClick:function(){M&&M.action()},className:m.remove,icon:u}),!R&&f&&n.createElement(c.Hint,{className:m.shortcut,text:f}),R&&n.createElement(o.Icon,{className:m.nested,icon:d}),y)}},54627:(e,t,s)=>{"use strict";s.d(t,{EmptyIconsContext:()=>n});const n=s(59496).createContext(!1)},37558:(e,t,s)=>{"use strict";s.d(t,{DrawerManager:()=>i,DrawerContext:()=>a});var n=s(59496);class i extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.createContext(null)},41590:(e,t,s)=>{"use strict";s.d(t,{Drawer:()=>m});var n=s(59496),i=s(88537),a=s(97754),o=s(59142),r=s(43989),l=s(65718),c=s(37558),h=s(49483),d=s(29197),u=s(66998);function m(e){const{position:t="Bottom",onClose:s,children:m,className:p,theme:g=u}=e,v=(0,i.ensureNotNull)((0,n.useContext)(c.DrawerContext)),[b,_]=(0,n.useState)(0),C=(0,n.useRef)(null),f=(0,n.useContext)(d.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,i.ensureNotNull)(C.current);return e.focus({preventScroll:!0}),f.subscribe(v,s),0===v.currentDrawer&&(0,r.setFixedBodyState)(!0),h.CheckMobile.iOS()&&(0,o.disableBodyScroll)(e),_(v.addDrawer()),()=>{f.unsubscribe(v,s);const t=v.removeDrawer();h.CheckMobile.iOS()&&(0, +o.enableBodyScroll)(e),0===t&&(0,r.setFixedBodyState)(!1)}},[]),n.createElement(l.Portal,null,n.createElement("div",{className:a(u.wrap,u["position"+t])},b===v.currentDrawer&&n.createElement("div",{className:u.backdrop,onClick:s}),n.createElement("div",{className:a(u.drawer,g.drawer,u["position"+t],p),ref:C,tabIndex:-1,"data-name":e["data-name"]},m)))}},1109:(e,t,s)=>{"use strict";s.d(t,{Separator:()=>o});var n=s(59496),i=s(97754),a=s(91626);function o(e){return n.createElement("div",{className:i(a.separator,e.className)})}},16396:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>u});var n=s(59496),i=s(97754),a=s(59064),o=s(51768),r=s(90186),l=s(23576);const c=l;function h(e){const{reference:t,...s}=e,i={...s,ref:t};return n.createElement(e.href?"a":"div",i)}function d(e){e.stopPropagation()}function u(e){const{id:t,role:s,"aria-selected":c,className:u,title:m,labelRowClassName:p,labelClassName:g,shortcut:v,forceShowShortcuts:b,icon:_,isActive:C,isDisabled:f,isHovered:S,appearAsDisabled:x,label:E,link:y,showToolboxOnHover:M,target:w,rel:T,toolbox:k,reference:R,onMouseOut:A,onMouseOver:N,suppressToolboxClick:D=!0,theme:B=l}=e,W=(0,r.filterDataProps)(e),F=(0,n.useRef)(null);return n.createElement(h,{...W,id:t,role:s,"aria-selected":c,className:i(u,B.item,_&&B.withIcon,{[B.isActive]:C,[B.isDisabled]:f||x,[B.hovered]:S}),title:m,href:y,target:w,rel:T,reference:function(e){F.current=e,"function"==typeof R&&R(e);"object"==typeof R&&(R.current=e)},onClick:function(t){const{dontClosePopup:s,onClick:n,onClickArg:i,trackEventObject:r}=e;if(f)return;r&&(0,o.trackEvent)(r.category,r.event,r.label);n&&n(i,t);s||(0,a.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:s,trackRightClick:n}=e;s&&n&&(0,o.trackEvent)(s.category,s.event,s.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:s,trackMouseWheelClick:n}=e;if(1===t.button&&y&&s){let e=s.label;n&&(e+="_mouseWheelClick"),(0,o.trackEvent)(s.category,s.event,e)}},onMouseOver:N,onMouseOut:A},void 0!==_&&n.createElement("div",{className:B.icon,dangerouslySetInnerHTML:{__html:_}}),n.createElement("div",{className:i(B.labelRow,p)},n.createElement("div",{className:i(B.label,g)},E)),(void 0!==v||b)&&n.createElement("div",{className:B.shortcut},(P=v)&&P.split("+").join(" + ")),void 0!==k&&n.createElement("div",{onClick:D?d:void 0,className:i(B.toolbox,{[B.showOnHover]:M})},k));var P}},51613:(e,t,s)=>{"use strict";s.d(t,{PopupMenuSeparator:()=>r});var n=s(59496),i=s(97754),a=s.n(i),o=s(524);function r(e){const{size:t="normal",className:s}=e;return n.createElement("div",{className:a()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,s)})}},64205:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_SLIDER_THEME:()=>r,SliderItem:()=>l,factory:()=>c});var n=s(59496),i=s(97754),a=s(88537),o=s(37740);const r=o;function l(e){const t=i(e.className,o.tab,{[o.active]:e.isActive,[o.disabled]:e.isDisabled,[o.defaultCursor]:!!e.shouldUseDefaultCursor,[o.noBorder]:!!e.noBorder});return n.createElement("div",{className:t, +onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends n.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,a.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return n.createElement("div",{className:i(t,o.tabs),"data-name":this.props["data-name"]},s,n.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,n.Children.map(this.props.children,e=>{const t=e,s=Boolean(t.props.isActive),i={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return n.cloneElement(t,i)})}_componentDidUpdate(){const e=(0,a.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return n.createElement("div",{className:o.slider,ref:e.reference})}))},10381:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetCaret:()=>l});var n=s(59496),i=s(97754),a=s(9745),o=s(40367),r=s(81268);function l(e){const{dropped:t,className:s}=e;return n.createElement(a.Icon,{className:i(s,o.icon,{[o.dropped]:t}),icon:r})}},81268:e=>{e.exports=''},4585:e=>{e.exports=''},11178:e=>{e.exports=''},99499:e=>{e.exports=''},86440:e=>{e.exports=''},74471:e=>{e.exports=''},52360:e=>{ +e.exports=''},68139:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-event-hint.2772e96b4497fbe5a15b.js b/charting_library/bundles/chart-event-hint.2772e96b4497fbe5a15b.js deleted file mode 100644 index 300da089..00000000 --- a/charting_library/bundles/chart-event-hint.2772e96b4497fbe5a15b.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6166],{79995:e=>{e.exports={container:"container-4Rvuptlt",centerElement:"centerElement-4Rvuptlt",text:"text-4Rvuptlt"}},44443:e=>{e.exports={container:"container-vZPBcQQO",content:"content-vZPBcQQO",arrowHolder:"arrowHolder-vZPBcQQO","arrowHolder--below":"arrowHolder--below-vZPBcQQO","arrowHolder--above":"arrowHolder--above-vZPBcQQO","arrowHolder--before":"arrowHolder--before-vZPBcQQO","arrowHolder--after":"arrowHolder--after-vZPBcQQO","arrowHolder--above-fix":"arrowHolder--above-fix-vZPBcQQO","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-vZPBcQQO","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-vZPBcQQO",label:"label-vZPBcQQO",closeButton:"closeButton-vZPBcQQO"}},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>o});var n=r(59496);const o=n.forwardRef((e,t)=>{const{icon:r="",...o}=e;return n.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:r}})})},5015:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChartEventHintRenderer:()=>p});var n=r(59496),o=r(87995),s=r(97754),i=r(9745),a=(r(65718),r(73366)),l=r(44443);n.PureComponent;function c(e){const{className:t,containerClassName:r,contentClassName:o,reference:c,style:d,arrow:h=!0,arrowClassName:p,arrowReference:u,onClose:m,arrowStyle:w,children:v,..._}=e;return n.createElement("div",{..._,className:t,ref:c,style:d},h&&n.createElement("div",{className:p,ref:u,style:w}),n.createElement("div",{className:s(l.container,r)},n.createElement("div",{className:s(l.content,o)},v),m&&n.createElement(i.Icon,{className:l.closeButton,icon:a,onClick:m})))}var d=r(79995);function h(e){const{text:t,onClose:r}=e;return n.createElement("div",{className:d.container},n.createElement("div",{className:d.centerElement},n.createElement(c,{arrow:!1,onClose:r},n.createElement("div",{className:d.text},t))))}class p{constructor(e){this._wrap=document.createElement("div"),this._container=e}show(e,t){if(!this._wrap)return;this.hide(),this._container.append(this._wrap);const r={text:e,onClose:()=>{t&&t(),this.hide()}};o.render(n.createElement(h,{...r}),this._wrap)}hide(){this._wrap&&(o.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},88216:(e,t,r)=>{"use strict";r.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>a});var n=r(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,r=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,r),this._container=r}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const r=this._windows.get(e);if(void 0!==r)return r -;this.registerWindow(e);const n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(n,e)}}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,n.ensureDefined)(i.get(t));{const t=new s(e),r=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(r,t),t.setContainer(r),e.body.appendChild(r),t}}},65718:(e,t,r)=>{"use strict";r.d(t,{Portal:()=>l,PortalContext:()=>c});var n=r(59496),o=r(87995),s=r(9423),i=r(88216),a=r(50655);class l extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(n.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}l.contextType=a.SlotContext;const c=n.createContext(null)},50655:(e,t,r)=>{"use strict";r.d(t,{Slot:()=>o,SlotContext:()=>s});var n=r(59496);class o extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=n.createContext(null)},73366:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-event-hint.7174ec43ce875310edd1.js b/charting_library/bundles/chart-event-hint.7174ec43ce875310edd1.js new file mode 100644 index 00000000..a2b3d9f6 --- /dev/null +++ b/charting_library/bundles/chart-event-hint.7174ec43ce875310edd1.js @@ -0,0 +1,2 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6166],{79995:e=>{e.exports={container:"container-4Rvuptlt",centerElement:"centerElement-4Rvuptlt",text:"text-4Rvuptlt"}},44443:e=>{e.exports={container:"container-vZPBcQQO",content:"content-vZPBcQQO",arrowHolder:"arrowHolder-vZPBcQQO","arrowHolder--below":"arrowHolder--below-vZPBcQQO","arrowHolder--above":"arrowHolder--above-vZPBcQQO","arrowHolder--before":"arrowHolder--before-vZPBcQQO","arrowHolder--after":"arrowHolder--after-vZPBcQQO","arrowHolder--above-fix":"arrowHolder--above-fix-vZPBcQQO","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-vZPBcQQO","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-vZPBcQQO",label:"label-vZPBcQQO",closeButton:"closeButton-vZPBcQQO"}},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>o});var n=r(59496);const o=n.forwardRef((e,t)=>{const{icon:r="",...o}=e;return n.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:r}})})},91759:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ChartEventHintRenderer:()=>l});var n=r(59496),o=r(87995),s=r(18041),i=r(79995);function a(e){const{text:t,onClose:r}=e;return n.createElement("div",{className:i.container},n.createElement("div",{className:i.centerElement},n.createElement(s.TooltipWidget,{arrow:!1,onClose:r},n.createElement("div",{className:i.text},t))))}class l{constructor(e){this._wrap=document.createElement("div"),this._container=e}show(e,t){if(!this._wrap)return;this.hide(),this._container.append(this._wrap);const r={text:e,onClose:()=>{t&&t(),this.hide()}};o.render(n.createElement(a,{...r}),this._wrap)}hide(){this._wrap&&(o.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},88216:(e,t,r)=>{"use strict";r.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>a});var n=r(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,r=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,r),this._container=r}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const r=this._windows.get(e);if(void 0!==r)return r;this.registerWindow(e);const n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(n,e)} +}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,n.ensureDefined)(i.get(t));{const t=new s(e),r=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(r,t),t.setContainer(r),e.body.appendChild(r),t}}},65718:(e,t,r)=>{"use strict";r.d(t,{Portal:()=>l,PortalContext:()=>c});var n=r(59496),o=r(87995),s=r(9423),i=r(88216),a=r(50655);class l extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(n.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}l.contextType=a.SlotContext;const c=n.createContext(null)},50655:(e,t,r)=>{"use strict";r.d(t,{Slot:()=>o,SlotContext:()=>s});var n=r(59496);class o extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=n.createContext(null)},18041:(e,t,r)=>{"use strict";r.d(t,{TooltipWidget:()=>l});var n=r(59496),o=r(97754),s=r(9745),i=(r(65718),r(73366)),a=r(44443);n.PureComponent;function l(e){const{className:t,containerClassName:r,contentClassName:l,reference:c,style:d,arrow:h=!0,arrowClassName:p,arrowReference:u,onClose:m,arrowStyle:w,children:v,..._}=e;return n.createElement("div",{..._,className:t,ref:c,style:d},h&&n.createElement("div",{className:p,ref:u,style:w}),n.createElement("div",{className:o(a.container,r)},n.createElement("div",{className:o(a.content,l)},v),m&&n.createElement(s.Icon,{className:a.closeButton,icon:i,onClick:m})))}},73366:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-screenshot-hint.0cb36b737a8e2345986f.js b/charting_library/bundles/chart-screenshot-hint.0cb36b737a8e2345986f.js deleted file mode 100644 index b3ef8ecf..00000000 --- a/charting_library/bundles/chart-screenshot-hint.0cb36b737a8e2345986f.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[92],{16178:t=>{t.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},69599:t=>{t.exports={container:"container-PxtBx6dp","container-danger":"container-danger-PxtBx6dp",icon:"icon-PxtBx6dp",header:"header-PxtBx6dp","container-warning":"container-warning-PxtBx6dp","container-success":"container-success-PxtBx6dp","container-default":"container-default-PxtBx6dp","text-wrap":"text-wrap-PxtBx6dp","close-button":"close-button-PxtBx6dp"}},18546:t=>{t.exports={container:"container-64c268VA",bottomPadding:"bottomPadding-64c268VA",centerElement:"centerElement-64c268VA",notice:"notice-64c268VA","notice-showed":"notice-showed-64c268VA"}},9745:(t,e,n)=>{"use strict";n.d(e,{Icon:()=>s});var o=n(59496);const s=o.forwardRef((t,e)=>{const{icon:n="",...s}=t;return o.createElement("span",{...s,ref:e,dangerouslySetInnerHTML:{__html:n}})})},78621:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ChartScreenshotHintRenderer:()=>P});var o=n(59496),s=n(87995),r=n(4889),a=n(97754),i=n(9745),c=n(64120),l=n(12565),d=n(95781),h=n(7801),w=n(33584),u=n(16178),m=n.n(u);function x(t="l"){switch(t){case"l":return c;case"m":return l;case"s":return d;case"xs":return h;case"xxs":return w;default:return l}}const g=o.forwardRef((t,e)=>{const{className:n,size:s,...r}=t,c=a(m()["close-button"],m()["button-"+s],n);return o.createElement("button",{...r,type:"button",className:c,ref:e},o.createElement(i.Icon,{icon:x(s),className:m()["close-icon"],"aria-hidden":!0}))});var p=n(79704),v=n(26),b=n(87172),f=n(69599),E=n.n(f);const _={danger:p,warning:p,success:b,default:v};function B(t){const{informerIntent:e,content:n,className:s,header:r,isIconShown:c=!0,isCloseButtonShown:l,icon:d,onCloseClick:h,closeButtonLabel:w="Close"}=t;return o.createElement("div",{className:a(E().container,E()["container-"+e],s)},c&&o.createElement(i.Icon,{className:E().icon,icon:null!=d?d:_[e]}),o.createElement("div",{className:E()["text-wrap"]},o.createElement("span",{className:E().header},r)," ",n),l&&o.createElement(g,{"aria-label":w,onClick:h,className:E()["close-button"],size:"xs"}))}var M=n(18546);function C(t){const[e,n]=(0,o.useState)(!1);return(0,o.useLayoutEffect)(()=>{const t=setTimeout(()=>n(!0),50),e=setTimeout(()=>n(!1),2500);return()=>{clearTimeout(t),clearTimeout(e)}},[]),o.createElement("div",{className:a(M.container,t.bottomPadding&&M.bottomPadding)},o.createElement("div",{className:M.centerElement},o.createElement(B,{content:t.text,informerIntent:"success",className:a(M.notice,e&&M["notice-showed"])})))}class P{constructor(t,e){this._showed=!1,this._wrap=document.createElement("div"),this._container=t,this._debouncedHide=(0,r.default)(()=>this.hide(),3e3),this._bottomPadding=e.bottomPadding}show(t){this._wrap&&!this._showed&&(this._showed=!0,this._container.append(this._wrap),s.render(o.createElement(C,{text:t, -bottomPadding:this._bottomPadding}),this._wrap),this._debouncedHide())}hide(){this._wrap&&(this._showed=!1,s.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},87172:t=>{t.exports=''},79704:t=>{t.exports=''},26:t=>{t.exports=''},64120:t=>{t.exports=''},12565:t=>{t.exports=''},95781:t=>{t.exports=''},7801:t=>{t.exports=''},33584:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-screenshot-hint.49f947cd29db6dfcf59f.js b/charting_library/bundles/chart-screenshot-hint.49f947cd29db6dfcf59f.js new file mode 100644 index 00000000..b64b739a --- /dev/null +++ b/charting_library/bundles/chart-screenshot-hint.49f947cd29db6dfcf59f.js @@ -0,0 +1,2 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[92],{16178:t=>{t.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},69599:t=>{t.exports={container:"container-PxtBx6dp","container-danger":"container-danger-PxtBx6dp",icon:"icon-PxtBx6dp",header:"header-PxtBx6dp","container-warning":"container-warning-PxtBx6dp","container-success":"container-success-PxtBx6dp","container-default":"container-default-PxtBx6dp","text-wrap":"text-wrap-PxtBx6dp","close-button":"close-button-PxtBx6dp"}},18546:t=>{t.exports={container:"container-64c268VA",bottomPadding:"bottomPadding-64c268VA",centerElement:"centerElement-64c268VA",notice:"notice-64c268VA","notice-showed":"notice-showed-64c268VA"}},35582:(t,e,n)=>{"use strict";n.d(e,{CloseButton:()=>m});var o=n(59496),s=n(97754),r=n(9745),a=n(64120),i=n(12565),c=n(95781),l=n(7801),d=n(33584),h=n(16178),w=n.n(h);function u(t="l"){switch(t){case"l":return a;case"m":return i;case"s":return c;case"xs":return l;case"xxs":return d;default:return i}}const m=o.forwardRef((t,e)=>{const{className:n,size:a,...i}=t,c=s(w()["close-button"],w()["button-"+a],n);return o.createElement("button",{...i,type:"button",className:c,ref:e},o.createElement(r.Icon,{icon:u(a),className:w()["close-icon"],"aria-hidden":!0}))})},9745:(t,e,n)=>{"use strict";n.d(e,{Icon:()=>s});var o=n(59496);const s=o.forwardRef((t,e)=>{const{icon:n="",...s}=t;return o.createElement("span",{...s,ref:e,dangerouslySetInnerHTML:{__html:n}})})},21310:(t,e,n)=>{"use strict";n.d(e,{Informer:()=>u});var o=n(59496),s=n(97754),r=n(9745),a=n(35582),i=n(79704),c=n(26),l=n(87172),d=n(69599),h=n.n(d);const w={danger:i,warning:i,success:l,default:c};function u(t){const{informerIntent:e,content:n,className:i,header:c,isIconShown:l=!0,isCloseButtonShown:d,icon:u,onCloseClick:m,closeButtonLabel:x="Close"}=t;return o.createElement("div",{className:s(h().container,h()["container-"+e],i)},l&&o.createElement(r.Icon,{className:h().icon,icon:null!=u?u:w[e]}),o.createElement("div",{className:h()["text-wrap"]},o.createElement("span",{className:h().header},c)," ",n),d&&o.createElement(a.CloseButton,{"aria-label":x,onClick:m,className:h()["close-button"],size:"xs"}))}},34904:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ChartScreenshotHintRenderer:()=>d});var o=n(59496),s=n(87995),r=n(4889),a=n(97754),i=n(21310),c=n(18546);function l(t){const[e,n]=(0,o.useState)(!1);return(0,o.useLayoutEffect)(()=>{const t=setTimeout(()=>n(!0),50),e=setTimeout(()=>n(!1),2500);return()=>{clearTimeout(t),clearTimeout(e)}},[]),o.createElement("div",{className:a(c.container,t.bottomPadding&&c.bottomPadding)},o.createElement("div",{className:c.centerElement},o.createElement(i.Informer,{content:t.text,informerIntent:"success",className:a(c.notice,e&&c["notice-showed"])})))}class d{constructor(t,e){this._showed=!1,this._wrap=document.createElement("div"),this._container=t, +this._debouncedHide=(0,r.default)(()=>this.hide(),3e3),this._bottomPadding=e.bottomPadding}show(t){this._wrap&&!this._showed&&(this._showed=!0,this._container.append(this._wrap),s.render(o.createElement(l,{text:t,bottomPadding:this._bottomPadding}),this._wrap),this._debouncedHide())}hide(){this._wrap&&(this._showed=!1,s.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},87172:t=>{t.exports=''},79704:t=>{t.exports=''},26:t=>{t.exports=''},64120:t=>{t.exports=''},12565:t=>{t.exports=''},95781:t=>{t.exports=''},7801:t=>{t.exports=''},33584:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-widget-gui.3f2a59a4ea5dd17c785c.js b/charting_library/bundles/chart-widget-gui.1cae41f1cb32b31857bc.js similarity index 98% rename from charting_library/bundles/chart-widget-gui.3f2a59a4ea5dd17c785c.js rename to charting_library/bundles/chart-widget-gui.1cae41f1cb32b31857bc.js index 0266f4aa..b666d6c1 100644 --- a/charting_library/bundles/chart-widget-gui.3f2a59a4ea5dd17c785c.js +++ b/charting_library/bundles/chart-widget-gui.1cae41f1cb32b31857bc.js @@ -33,7 +33,7 @@ this._el.innerHTML=e||""}_updateClassName(e){this._prevCustomClass!==e&&(null!== k.t)("It'll open for pre-market trading in {remainingTime}."),fi=new Map([["market",new Map([["small",Qs],["medium",ei],["large",ei]])],["pre_market",new Map([["small",li],["medium",oi],["large",oi]])],["post_market",new Map([["small",si],["medium",ii],["large",ii]])],["out_of_session",new Map([["small",Js],["medium",Js],["large",Js]])],["holiday",new Map([["small",ti],["medium",ti],["large",ti]])]]),Ci=new Map([["market",zt.marketStatusOpen],["pre_market",zt.marketStatusPre],["post_market",zt.marketStatusPost],["out_of_session",zt.marketStatusClose],["holiday",zt.marketStatusHoliday]]),Ei=new Map([["market",ai],["pre_market",ni],["post_market",ri],["out_of_session",di],["holiday",hi]]),ki=new Map([["market",ai],["pre_market",ni],["post_market",ri],["out_of_session",di],["holiday",hi]]),Vi=new Map([["market",Ot.colorsPalette["color-market-open"]],["pre_market",Ot.colorsPalette["color-pre-market"]],["post_market",Ot.colorsPalette["color-post-market"]],["out_of_session",Ot.colorsPalette["color-market-closed"]],["holiday",Ot.colorsPalette["color-market-holiday"]]]),xi={market:ui,pre_market:ci,post_market:_i,out_of_session:pi,holiday:mi};function Ti(e){return(0,k.t)("{number} minute",{plural:"{number} minutes",count:e}).format({number:e.toString()})}function Wi(e){return(0,k.t)("{number} hour",{plural:"{number} hours",count:e}).format({number:e.toString()})}function Li(e){const t=Math.floor(e/86400),s=Math.floor((e-86400*t)/3600),i=Math.floor((e-86400*t-3600*s)/60);return 0===t&&0===s&&0===i?gi:t>0?bi.format({days:(l=t,(0,k.t)("{number} day",{plural:"{number} days",count:l}).format({number:l.toString()})),hours:Wi(s)}):s>0?vi.format({hours:Wi(s),minutes:Ti(i)}):Ti(i);var l}const Ai={market:e=>("post_market"===e.status?yi:Si).format({remainingTime:Li(e.remainingSeconds)}),pre_market:e=>wi.format({remainingTime:Li(e.remainingSeconds)}),post_market:e=>Si.format({remainingTime:Li(e.remainingSeconds)}),out_of_session:e=>("pre_market"===e.status?Mi:wi).format({remainingTime:Li(e.remainingSeconds)}),holiday:e=>("pre_market"===e.status?Mi:wi).format({remainingTime:Li(e.remainingSeconds)})},Hi=new Map([["market",null],["pre_market",null],["post_market",null],["out_of_session",null],["holiday",null]]);class Bi extends Nt{constructor(e,t){super({tooltipMap:Ei,iconMap:fi,classNameMap:Ci,titleMap:ki,titleColorMap:Vi,actionMap:Hi,size:t}),this._model=null,this._marketStatus=new(o())(null).spawn(),this._sessionEdge=new(o())(null).spawn(),this._updateTooltip=()=>{const e=this._status.value();null!==e&&this._updateFullTooltipByStatus(e)},this.setModel(e),Pe.showMarketOpenStatusProperty.subscribe(this,this._showMarketOpenStatusPropertyChanged)}destroy(){this._marketStatus.destroy(),this._sessionEdge.destroy(),this._model=null,Pe.showMarketOpenStatusProperty.unsubscribeAll(this)}setModel(e){if(this._marketStatus.destroy(),this._sessionEdge.destroy(),null===e)return this._marketStatus=new(o())(null).spawn(),void(this._sessionEdge=new(o())(null).spawn());this._model=e,this._marketStatus=e.status().spawn(), this._marketStatus.subscribe(this._updateStatus.bind(this),{callWithLast:!0}),this._sessionEdge=e.nextSessionEdge().spawn(),this._sessionEdge.subscribe(this._updateTooltip),this._updateTooltip()}async _getHtml(e){const t=[(0,It.htmlEscape)(xi[e])],s=this._marketStatus.value();if(null!==this._model&&null!==s){const s=this._model.nextSessionEdge().value();null!==s&&t.push({text:Ai[e](s),bold:!0})}return t}_shouldBeHiddenByStatus(e){return!Pe.showMarketOpenStatusProperty.value()&&"market"===e}_updateStatus(e){this._status.setValue(e)}_showMarketOpenStatusPropertyChanged(){this._updateByStatus(this._status.value())}}class Di{constructor(e,t){var s,i;this.visibleWidgetsCount=new(o())(0),this.errorWidgetIsShown=new(o())(!1),this._size=u.trackingModeIsAvailable?"medium":"small",this._tooltips=new(o())([]),this._visibilitySpawns=[],this._tooltipSpawns=[],this._statusWidgetInfos=[],this._renderer=new Zs(this._size,this.visibleWidgetsCount,this._tooltips,{onClick:this._handleToggleDropdown.bind(this)}),this._symbolInvalidViewModel=null,this._dataSourceErrorStatusViewModel=null,this._marketStatusViewModel=null,this._dataUpdatedModeViewModel=null,this._dataProblemViewModel=null,this._sessionWidget=null,this._dataSourceHasErrorVisible=null,this._dataSourceErrorCanBeShown=new(o())(!1),this._marketStatusCanBeShown=new(o())(!1),this._dataUpdatedModeCanBeShown=new(o())(!1),this._dataProblemCanBeShown=new(o())(!1),this._isDataProblemCritical=null,this._container=document.createElement("div"),this._menuOpened=!1,this._menuPosition=null,this._handleDropdownMenuClose=()=>{var e;this._menuOpened=!1,null===(e=this._source.symbol())||void 0===e||e.unsubscribe(this._handleDropdownMenuClose),this._updateDropdownMenu()},this._source=e,this._symbol=null!==(i=null===(s=e.symbol())||void 0===s?void 0:s.spawn())&&void 0!==i?i:null,this._options=t,this._recreateWidgets(),this._addSubscriptionForSymbolInvalid(),null!==this._dataSourceHasErrorVisible&&(this._dataSourceHasErrorVisible.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),this._dataSourceHasErrorVisible.subscribe(this._updateErrorWidgetIsShown.bind(this))),this._options.dataProblemEnabled&&null!==this._isDataProblemCritical&&this._isDataProblemCritical.subscribe(this._updateStatusWidgetsVisibilities.bind(this));for(const e of this._tooltipSpawns)e.subscribe(this._updateTooltips.bind(this));for(const e of this._visibilitySpawns)e.subscribe(this._updateVisibleWidgetsCount.bind(this)),e.subscribe(this._updateTooltips.bind(this));this._updateErrorWidgetIsShown(),this._updateStatusWidgetsVisibilities(),this._updateVisibleWidgetsCount(),this._updateTooltips()}destroy(){var e,t;this._source.destroy(),null===(e=this._symbol)||void 0===e||e.destroy(),null===(t=this._isDataProblemCritical)||void 0===t||t.destroy();for(const e of this._tooltipSpawns)e.destroy();for(const e of this._visibilitySpawns)e.destroy();this.visibleWidgetsCount.unsubscribe();for(const e of this._statusWidgetInfos)e.model.destroy();this._renderer.destroy()}getElement(){return this._renderer.element}updateSource(e){ var t,s,i;this._source!==e&&(null===(t=this._symbol)||void 0===t||t.destroy(),this._source.destroy(),this._source=e,this._symbol=null!==(i=null===(s=e.symbol())||void 0===s?void 0:s.spawn())&&void 0!==i?i:null,this._recreateWidgets(),this._updateStatusWidgetsVisibilities(),this._updateErrorWidgetIsShown(),this._updateVisibleWidgetsCount(),this._updateTooltips())}_updateStatusWidgetsVisibilities(){const e=this._isForceStatusActive();this._dataSourceErrorCanBeShown.setValue(!e),this._marketStatusCanBeShown.setValue(!e),this._dataUpdatedModeCanBeShown.setValue(!e),this._dataProblemCanBeShown.setValue(!this._isPrimaryWidgetShown())}_isPrimaryWidgetShown(){var e,t;return null!==(t=null===(e=this._source.isSymbolInvalid())||void 0===e?void 0:e.value())&&void 0!==t&&t}_isForceStatusActive(){var e,t;return this._isPrimaryWidgetShown()||null!==(t=null===(e=this._isDataProblemCritical)||void 0===e?void 0:e.value())&&void 0!==t&&t}_updateVisibleWidgetsCount(){const e=this._statusWidgetInfos.filter(e=>e.visible.value());this.visibleWidgetsCount.setValue(e.length)}_updateTooltips(){const e=[];for(let t=0;t0&&e.push(s)}this._tooltips.setValue(e)}_recreateWidgets(){var e;if(this._options.sourceStatusesEnabled){const e=this._source.isSymbolInvalid();if(null!==e)if(null===this._symbolInvalidViewModel){this._symbolInvalidViewModel=new Is(e,{tooltipMap:Us,iconMap:Fs,classNameMap:Ys,titleMap:Xs,titleColorMap:qs,htmlMap:Gs,actionMap:$s,size:this._size});const t=this._symbolInvalidViewModel.visible().spawn();this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._symbolInvalidViewModel.tooltip().spawn());const s={visible:t,model:this._symbolInvalidViewModel};this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._symbolInvalidViewModel.updateStatus(e),this._addSubscriptionForSymbolInvalid();if(null===this._dataSourceErrorStatusViewModel){this._dataSourceErrorStatusViewModel=new Ls(this._source,this._size,this._options.sourceStatuses),this._dataSourceHasErrorVisible=(0,K.combine)(()=>this._dataSourceErrorCanBeShown.value()&&(0,i.ensureNotNull)(this._dataSourceErrorStatusViewModel).visible().value(),this._dataSourceErrorCanBeShown,this._dataSourceErrorStatusViewModel.visible()),this._visibilitySpawns.push(this._dataSourceHasErrorVisible),this._tooltipSpawns.push(this._dataSourceErrorStatusViewModel.tooltip().spawn());const e={visible:this._dataSourceHasErrorVisible,model:this._dataSourceErrorStatusViewModel};this._statusWidgetInfos.push(e),this._renderer.addStatusModel(e)}else this._dataSourceErrorStatusViewModel.setSource(this._source)}if(this._options.marketStatusEnabled){const t=this._source.marketStatusModel();if(null===this._marketStatusViewModel){this._marketStatusViewModel=new Bi(t,this._size);const e=(0,K.combine)(()=>this._marketStatusCanBeShown.value()&&(0, -i.ensureNotNull)(this._marketStatusViewModel).visible().value(),this._marketStatusCanBeShown,this._marketStatusViewModel.visible());this._visibilitySpawns.push(e),this._tooltipSpawns.push(this._marketStatusViewModel.tooltip().spawn());const s={visible:e,model:this._marketStatusViewModel};null!==t&&(this._sessionWidget=new Pt(this._source),s.additionalWidgets=[this._sessionWidget]),this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._marketStatusViewModel.setModel(t),null===(e=this._sessionWidget)||void 0===e||e.updateSource(this._source)}if(this._options.dataUpdateModeEnabled){const e=this._source.dataUpdatedModeModel();if(null===this._dataUpdatedModeViewModel){this._dataUpdatedModeViewModel=new Ms(e,this._size,this._options.dataUpdateMode);const t=(0,K.combine)(()=>this._dataUpdatedModeCanBeShown.value()&&(0,i.ensureNotNull)(this._dataUpdatedModeViewModel).visible().value(),this._dataUpdatedModeCanBeShown,this._dataUpdatedModeViewModel.visible());this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._dataUpdatedModeViewModel.tooltip().spawn());const s={visible:t,model:this._dataUpdatedModeViewModel};this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._dataUpdatedModeViewModel.setModel(e)}if(this._options.dataProblemEnabled){const e=this._source.dataProblemModel();if(null===this._dataProblemViewModel){this._dataProblemViewModel=new Os(e,this._size),this._isDataProblemCritical=this._dataProblemViewModel.isDataProblemCritical().spawn();const t=(0,K.combine)(()=>this._dataProblemCanBeShown.value()&&(0,i.ensureNotNull)(this._dataProblemViewModel).visible().value(),this._dataProblemCanBeShown,this._dataProblemViewModel.visible());this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._dataProblemViewModel.tooltip().spawn());const s={visible:t,model:this._dataProblemViewModel};this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._dataProblemViewModel.setModel(e)}}_addSubscriptionForSymbolInvalid(){const e=this._source.isSymbolInvalid();this._options.sourceStatusesEnabled&&null!==e&&(e.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),e.subscribe(this._updateErrorWidgetIsShown.bind(this),{callWithLast:!0}))}_updateErrorWidgetIsShown(){var e,t,s,i;const l=null!==(t=null===(e=this._source.isSymbolInvalid())||void 0===e?void 0:e.value())&&void 0!==t&&t,o=null!==(i=null===(s=this._dataSourceHasErrorVisible)||void 0===s?void 0:s.value())&&void 0!==i&&i;this.errorWidgetIsShown.setValue(l||o)}_handleToggleDropdown(e){var t,s;this._menuPosition=e,this._menuOpened=!this._menuOpened,this._menuOpened&&(null===(t=this._source.symbol())||void 0===t||t.subscribe(this._handleDropdownMenuClose),s="Open full tooltip for statuses: "+this._tooltips.value().join(", "),(0,V.trackEvent)("GUI","Statuses widget's action",s)),this._updateDropdownMenu()}_updateDropdownMenu(){Promise.all([s.e(5514),s.e(2e3),s.e(3466),s.e(4102),s.e(1075),s.e(8643)]).then(s.bind(s,4872)).then(e=>{ +i.ensureNotNull)(this._marketStatusViewModel).visible().value(),this._marketStatusCanBeShown,this._marketStatusViewModel.visible());this._visibilitySpawns.push(e),this._tooltipSpawns.push(this._marketStatusViewModel.tooltip().spawn());const s={visible:e,model:this._marketStatusViewModel};null!==t&&(this._sessionWidget=new Pt(this._source),s.additionalWidgets=[this._sessionWidget]),this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._marketStatusViewModel.setModel(t),null===(e=this._sessionWidget)||void 0===e||e.updateSource(this._source)}if(this._options.dataUpdateModeEnabled){const e=this._source.dataUpdatedModeModel();if(null===this._dataUpdatedModeViewModel){this._dataUpdatedModeViewModel=new Ms(e,this._size,this._options.dataUpdateMode);const t=(0,K.combine)(()=>this._dataUpdatedModeCanBeShown.value()&&(0,i.ensureNotNull)(this._dataUpdatedModeViewModel).visible().value(),this._dataUpdatedModeCanBeShown,this._dataUpdatedModeViewModel.visible());this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._dataUpdatedModeViewModel.tooltip().spawn());const s={visible:t,model:this._dataUpdatedModeViewModel};this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._dataUpdatedModeViewModel.setModel(e)}if(this._options.dataProblemEnabled){const e=this._source.dataProblemModel();if(null===this._dataProblemViewModel){this._dataProblemViewModel=new Os(e,this._size),this._isDataProblemCritical=this._dataProblemViewModel.isDataProblemCritical().spawn();const t=(0,K.combine)(()=>this._dataProblemCanBeShown.value()&&(0,i.ensureNotNull)(this._dataProblemViewModel).visible().value(),this._dataProblemCanBeShown,this._dataProblemViewModel.visible());this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._dataProblemViewModel.tooltip().spawn());const s={visible:t,model:this._dataProblemViewModel};this._statusWidgetInfos.push(s),this._renderer.addStatusModel(s)}else this._dataProblemViewModel.setModel(e)}}_addSubscriptionForSymbolInvalid(){const e=this._source.isSymbolInvalid();this._options.sourceStatusesEnabled&&null!==e&&(e.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),e.subscribe(this._updateErrorWidgetIsShown.bind(this),{callWithLast:!0}))}_updateErrorWidgetIsShown(){var e,t,s,i;const l=null!==(t=null===(e=this._source.isSymbolInvalid())||void 0===e?void 0:e.value())&&void 0!==t&&t,o=null!==(i=null===(s=this._dataSourceHasErrorVisible)||void 0===s?void 0:s.value())&&void 0!==i&&i;this.errorWidgetIsShown.setValue(l||o)}_handleToggleDropdown(e){var t,s;this._menuPosition=e,this._menuOpened=!this._menuOpened,this._menuOpened&&(null===(t=this._source.symbol())||void 0===t||t.subscribe(this._handleDropdownMenuClose),s="Open full tooltip for statuses: "+this._tooltips.value().join(", "),(0,V.trackEvent)("GUI","Statuses widget's action",s)),this._updateDropdownMenu()}_updateDropdownMenu(){Promise.all([s.e(5514),s.e(2e3),s.e(3466),s.e(4102),s.e(8643)]).then(s.bind(s,4872)).then(e=>{ e.render(this._menuOpened,this._container,this._renderer.element,this._statusWidgetInfos,this._handleDropdownMenuClose,(0,i.ensureNotNull)(this._menuPosition))})}}s(38021);var Pi=s(3763);class Oi{constructor(e,t){this._symbol=null,this._symbolInfo=new(o())(null).spawn(),this._source=e,e.properties().hasChild("symbol")&&(this._symbol=(0,Y.createWVFromGetterAndSubscription)(()=>e.properties().symbol.value(),e.properties().symbol.listeners()));const s=[];if((0,pe.isStudy)(e)||(0,pe.isStudyStub)(e))this._isSymbolInvalid=(0,Pi.createWVFromGetterAndSubscriptions)(()=>e.isSymbolInvalid()&&e.isActualInterval(),s),s.push(e.onStatusChanged(),e.onIsActualIntervalChange());else{(0,i.assert)(e===t.mainSeries());const l=t.mainSeries();this._isSymbolInvalid=(0,Y.createWVFromGetterAndSubscription)(()=>l.isSymbolInvalid(),l.onStatusChanged()),s.push(l.onStatusChanged()),this._symbolInfo=(0,Y.createWVFromGetterAndSubscription)(l.symbolInfo.bind(l),l.dataEvents().symbolResolved())}this._dataSourceErrorStatus=(0,Pi.createWVFromGetterAndSubscriptions)(()=>this._source.statusProvider({}).errorStatus(),s)}destroy(){var e,t;null===(e=this._symbol)||void 0===e||e.destroy(),null===(t=this._isSymbolInvalid)||void 0===t||t.destroy(),this._dataSourceErrorStatus.destroy(),this._symbolInfo.destroy()}symbol(){return this._symbol}isSymbolInvalid(){return this._isSymbolInvalid}errorStatus(){return this._dataSourceErrorStatus}symbolInfo(){return this._symbolInfo}marketStatusModel(){return this._source.marketStatusModel()}dataProblemModel(){return this._source.dataProblemModel()}dataUpdatedModeModel(){return this._source.dataUpdatedModeModel()}}var Ii=s(14799);const zi=(0,k.t)("Replay mode"),Ni=(0,k.t)("You're in Replay mode. You're in Replay mode. You're in Replay mode.");new Map([[!0,new Map([["small",Ii],["medium",Ii],["large",Ii]])],[!1,new Map([["small",""],["medium",""],["large",""]])]]),new Map([[!0,zt.replayMode],[!1,null]]),new Map([[!0,zi],[!1,null]]),new Map([[!0,zi],[!1,null]]),new Map([[!0,Ot.colorsPalette["color-replay-mode"]],[!1,null]]),new Map([[!0,[Ni]],[!1,null]]),new Map([[!0,null],[!1,null]]);class Ri extends Di{constructor(e,t,s){super(new Oi(e,t),s),this._isInReplay=new(o())(!1).readonly().spawn(),this._isInReplayCanBeShown=null,this._inited=!1}destroy(){super.destroy()}_updateStatusWidgetsVisibilities(){super._updateStatusWidgetsVisibilities()}_isPrimaryWidgetShown(){var e,t;return super._isPrimaryWidgetShown()||null!==(t=null===(e=this._isInReplay)||void 0===e?void 0:e.value())&&void 0!==t&&t}}var ji=s(6087),Fi=s(43370);const Yi={readOnlyMode:!1,contextMenu:{settings:!0,mainSeries:!0,studies:!0,showOpenMarketStatus:!1},symbolMarkerEnabled:!1,showToggleButton:!0,canShowSourceCode:!1,statusesWidgets:{sourceStatusesEnabled:!1,sourceStatuses:{errorSolution:!0},marketStatusEnabled:!1,marketStatus:{preMarketSolution:!0,postMarketSolution:!0},dataUpdateModeEnabled:!1,dataUpdateMode:{subscriptionFullInfo:!0},dataProblemEnabled:!1}},Ui=(d.enabled("hide_legend_by_default"), d.enabled("fundamental_widget")),Xi=d.enabled("legend_context_menu"),qi=2*parseInt(S.marginlegendhoriz);class Gi{constructor(e,t,s,i,l,n,r,d){this._mainSeriesViewModel=null,this._dataSourceViewModels=[],this._visibleDataSourceCount=new(o())(0),this._themedColor=new(o())(""),this._mainSeriesRowHidden=null,this._dataSourceRowsHidden=[],this._customWidgetsVisibilities=[],this._allLegendHidden=new(o())(!1),this._studiesLegendHidden=new(o())(!1),this._customWidgetsHeights=[],this._onLegendVisibilityToggled=null,this._availableHeight=0,this._collapsedDataSourcesCount=new(o())(0),this._collapsedDataSourcesTitle=new(o())(""),this._mainSeriesStatusWidget=null,this._dataSourcesStatusesWidgets=[],this._size=null,this._customLegendWidgetsFactoriesMap=new Map,this._customLegendWidgetsMap=new Map,this._margin=0,this._model=e,this._paneWidget=t,this._options=(0,a.merge)((0,a.clone)(Yi),r),this._callbacks=d,this._mainSeriesViewModelsOptions={readOnlyMode:this._options.readOnlyMode,symbolMarkerEnabled:this._options.symbolMarkerEnabled},this._dataSourceViewModelsOptions={...this._mainSeriesViewModelsOptions,canShowSourceCode:this._options.canShowSourceCode},this._backgroundThemeName=s;const h=this._showLegendCalculatedProperty();this._isDataSourcesCollapsed=new(o())(h.value()),h.subscribe(this,()=>{this._isDataSourcesCollapsed.setValue(h.value())});const u=new(o())(this._getCustomTextColorValue()),c=this._model.model().properties().childs();c.scalesProperties.childs().textColor.subscribe(this,()=>{u.setValue(this._getCustomTextColorValue())});const _=c.paneProperties.childs().legendProperties.childs().showBackground,p=new(o())(_.value());_.subscribe(this,()=>{p.setValue(_.value())});const m=c.paneProperties.childs().legendProperties.childs().backgroundTransparency,g=new(o())(m.value());m.subscribe(this,()=>{g.setValue(m.value())}),this._hideNotMainSources=i,this._hideNotMainSources.subscribe(this._updateLegendVisibilities.bind(this)),this._hideAllExceptFirstLine=l,this._hideAllExceptFirstLine.subscribe(this._updateCollapsedSourcesMode.bind(this)),this._hideWholeLegend=n,this._hideWholeLegend.subscribe(this._updateLegendVisibilities.bind(this)),this._isPaneMain=new(o())(this._getIsPaneMainValue()),this._updateCollapsedSourcesModeThrottle=(0,Fi.default)(this._updateCollapsedSourcesMode.bind(this),100),this._renderer=new j({withActions:!this._options.readOnlyMode,showToggleButton:this._options.showToggleButton,isStudiesLegendHidden:this._studiesLegendHidden.readonly(),isAllLegendHidden:this._allLegendHidden.readonly(),customTextColor:u.readonly(),themedColor:this._themedColor.readonly(),showBackground:p.readonly(),backgroundTransparency:g.readonly(),collapsedDataSourcesCount:this._collapsedDataSourcesCount.readonly(),collapsedDataSourcesTitle:this._collapsedDataSourcesTitle.readonly(),showLegendWidgetContextMenu:this.onShowLegendWidgetContextMenu.bind(this),hideAllExceptFirstLine:this._hideAllExceptFirstLine},{visibleDataSourceCount:this._visibleDataSourceCount.readonly(),isDataSourcesCollapsed:this._isDataSourcesCollapsed.readonly(), showObjectsTree:this._isPaneMain.readonly(),onCollapseDataSources:this.onCollapseDataSources.bind(this),onShowObjectsTreeDialog:this._callbacks.showObjectsTreeDialog})}destroy(){this._backgroundThemeName.destroy(),this._hideNotMainSources.destroy(),this._hideAllExceptFirstLine.destroy(),this._hideWholeLegend.destroy(),null!==this._mainSeriesViewModel&&this._destroyMainDataSource();for(const e of this._dataSourceViewModels)e.destroy();for(const e of this._dataSourcesStatusesWidgets)e.destroy();this._clearSubscriptions();for(const e of Array.from(this._customLegendWidgetsMap.keys()))this._destroyCustomWidgetFromLayerBlock(e);this._customLegendWidgetsMap.clear(),this._renderer.destroy(),delete this._renderer,this._showLegendCalculatedProperty().unsubscribeAll(this),this._showLegendOriginalProperty().unsubscribeAll(this);const e=this._model.model().properties().childs();e.scalesProperties.childs().textColor.unsubscribeAll(this),e.paneProperties.childs().legendProperties.childs().showBackground.unsubscribeAll(this),e.paneProperties.childs().legendProperties.childs().backgroundTransparency.unsubscribeAll(this)}addCustomWidgetToLegend(e,t){const s=this._customLegendWidgetsFactoriesMap.get(t.block)||new Map,i=s.get(t.position)||[];i.push(e),s.set(t.position,i),this._customLegendWidgetsFactoriesMap.set(t.block,s),this.updateLayout(),this._updateCustomWidgetModeBySize()}onShowLegendWidgetContextMenu(e,t){if(this._options.readOnlyMode||!Xi)return Promise.resolve();x("Show legend context menu");const s=new Map;for(const e of Array.from(this._customLegendWidgetsMap.keys())){const t=(0,i.ensureDefined)(this._customLegendWidgetsMap.get(e)),l=new Map;for(const e of Array.from(t.keys())){const s=(0,i.ensureDefined)(t.get(e)),o=l.get(e)||[];for(const e of s)o.push(...e.contextMenuActions());l.set(e,o)}s.set(e,l)}return function(e,t,s,i,l,o){const a=[],n=i.get(0);if(void 0!==n){const e=n.get(1);void 0!==e&&e.length>0&&(a.push(...e),a.push(new Be.Separator))}const r=e.model().properties().childs().paneProperties.childs().legendProperties.childs();if(a.push(new Be.Action({actionId:"Chart.Legend.ToggleSymbolVisibility",checkable:!0,checked:r.showSeriesTitle.value(),label:$e,statName:"Show Symbol",onExecute:()=>Ne(e,r.showSeriesTitle,Re)})),t.showOpenMarketStatus&&"market"===e.mainSeries().marketStatusModel().status().value()&&a.push(new Be.Action({actionId:"Chart.Legend.ToggleOpenMarketStatusVisibility",checkable:!0,checked:Pe.showMarketOpenStatusProperty.value(),label:Ke,statName:"Show Open market status",onExecute:()=>Ne(e,Pe.showMarketOpenStatusProperty,je)})),a.push(new Be.Action({actionId:"Chart.Legend.ToggleOhlcValuesVisibility",checkable:!0,checked:r.showSeriesOHLC.value(),label:Ze,statName:"Show OHLC Values",onExecute:()=>Ne(e,r.showSeriesOHLC,Fe)})),a.push(new Be.Action({actionId:"Chart.Legend.ToggleBarChangeValuesVisibility",checkable:!0,checked:r.showBarChange.value(),label:Je,statName:"Show Bar Change Values",onExecute:()=>Ne(e,r.showBarChange,Ye)})),a.push(new Be.Action({actionId:"Chart.Legend.ToggleVolumeVisibility", @@ -45,8 +45,8 @@ const e=this._parentEl.classList.contains(c.touchMode)?Number(c.css_value_pane_c ;case"visibleOnMouseOver":e=this._globalVisibility.value()&&this._mouseOverWidget}this._parentEl.classList.toggle(c.hidden,!e),this._parentEl.classList.toggle(c.forceHidden,!this._globalVisibility.value()||t)}_updateThemedColor(e){if(e.length>0){const[t,s,i]=(0,d.parseRgb)(e);this._parentEl.style.color=(0,d.rgbaToString)([t,s,i,(0,d.normalizeAlphaComponent)(.8)])}else this._parentEl.style.removeProperty("color")}}var m=s(28296),g=s(97056),b=s(5123),v=s(48225),w=s(82313),S=s(54817),y=s(22184),M=s(92185);const f=(0,l.t)("Double click"),C=f,E=(0,o.humanReadableModifiers)(o.Modifiers.Mod)+f;var k=s(52714),V=s.n(k),x=s(6087),T=s(61814),W=s(35505),L=s(64716),A=s(73864),H=s(80610),B=s(7892),D=s(41174),P=s(37179),O=s(49941),I=s(54330);const z=i.mobiletouch,N=(0,l.t)("Delete pane"),R=(0,l.t)("Move pane up"),j=(0,l.t)("Move pane down"),F=(0,l.t)("Maximize pane"),Y=(0,l.t)("Restore pane"),U=(0,l.t)("Collapse pane"),X=(0,l.t)("Manage panes"),q=(0,l.t)("Double click"),G=(0,T.hotKeySerialize)({keys:[""],text:q}),$=(0,T.hotKeySerialize)({keys:[(0,o.humanReadableModifiers)(o.Modifiers.Mod,!1)],text:"{0} + "+q});class K{constructor(e,t,s,i,l){this._actions={},this._moreCMShown=!1,this._themedColor=new(V())(""),this._connectedToBroker=new(V())(!1),this._isDestroyed=!1,this._model=e,this._paneWidget=t,this._callbacks=i,this._closeButtonVisibility=new(V())(this._getCloseButtonVisibility()),this._upButtonVisibility=new(V())(this._getUpButtonVisibility()),this._downButtonVisibility=new(V())(this._getDownButtonVisibility()),this._maximizeButtonVisibility=new(V())(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility=new(V())(this._getMinimizeButtonVisibility()),this._collapseButtonVisibility=new(V())(this._getCollapseButtonVisibility()),this._restoreButtonVisibility=new(V())(this._getRestoreButtonVisibility()),this._createActions(),this._visibilityTypeProperty=(0,a.actualBehavior)(),this._visibilityTypeProperty.subscribe(this,e=>{this._visibilityType.setValue(e.value())}),this._visibilityType=new(V())(this._visibilityTypeProperty.value()),this._isPaneMaximize=new(V())(this._getIsPaneMaximizeValue()),this._isWidgetShow=new(V())(this._getIsWidgetShow()),this._backgroundThemeName=s.backgroundThemeName,this._renderer=new p(l,this._actions,{visibilityType:this._visibilityType.readonly(),globalVisibility:this._isWidgetShow.readonly(),doNotSwitchToContextMenuMode:this._isPaneMaximize.readonly(),forceContextMenuMode:this._connectedToBroker.readonly(),themedColor:this._themedColor.readonly()})}destroy(){this._visibilityTypeProperty.unsubscribeAll(this),this._renderer.destroy(),this._isDestroyed=!0}getElement(){return this._renderer.getElement()}bottomWithMargin(){return this._renderer.bottomWithMargin()}action(){return this._actions}update(){this._updateButtonsVisibility(),this._isPaneMaximize.setValue(this._getIsPaneMaximizeValue()),this._isWidgetShow.setValue(this._getIsWidgetShow())}updateWidgetModeByWidth(e){this._renderer.updateWidgetModeByWidth(e)}updateThemedColors(e){null===e&&(e=(0, x.getStdThemedValue)("chartProperties.paneProperties.background",this._backgroundThemeName.value())),this._themedColor.setValue(e||"")}async _subscribeOnConnectedToBroker(){const e=await waitTradingService();this._isDestroyed||(e.onConnectionStatusChange.subscribe(this,this._updateConnectedToBroker.bind(this)),this._updateConnectedToBroker(e.connectStatus()))}_updateConnectedToBroker(e){this._connectedToBroker.setValue(1===e)}_updateButtonsVisibility(){this._closeButtonVisibility.setValue(this._getCloseButtonVisibility()),this._upButtonVisibility.setValue(this._getUpButtonVisibility()),this._downButtonVisibility.setValue(this._getDownButtonVisibility()),this._maximizeButtonVisibility.setValue(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility.setValue(this._getMinimizeButtonVisibility()),this._collapseButtonVisibility.setValue(this._getCollapseButtonVisibility()),this._restoreButtonVisibility.setValue(this._getRestoreButtonVisibility())}_createActions(){this._actions.up={iconMap:new Map([["large",L],["small",L]]),action:this._onUpDownButton.bind(this,"up"),visible:this._upButtonVisibility,title:new(V())(R),className:c.up,dataset:{name:"pane-button-up"}},this._actions.down={iconMap:new Map([["large",A],["small",A]]),action:this._onUpDownButton.bind(this,"down"),visible:this._downButtonVisibility,title:new(V())(j),className:c.down,dataset:{name:"pane-button-down"}},this._actions.close={iconMap:new Map([["large",W],["small",W]]),action:this._onCloseButton.bind(this),visible:this._closeButtonVisibility,title:new(V())(N),dataset:{name:"pane-button-close"}},this._actions.maximize={iconMap:new Map([["large",D],["small",H]]),action:this._onToggleMaximizeButton.bind(this),visible:this._maximizeButtonVisibility,title:new(V())(F),hotKeyTitle:G,className:c.maximize,dataset:{name:"pane-button-maximize"}},this._actions.minimize={iconMap:new Map([["large",D],["small",H]]),action:this._onToggleMaximizeButton.bind(this),visible:this._minimizeButtonVisibility,title:new(V())(Y),hotKeyTitle:G,className:c.minimize,dataset:{name:"pane-button-minimize"}},this._actions.collapse={iconMap:new Map([["large",O],["small",O]]),action:this._onToggleCollapseButton.bind(this),visible:this._collapseButtonVisibility,title:new(V())(U),hotKeyTitle:$,className:c.collapse,dataset:{name:"pane-button-collapse"}},this._actions.restore={iconMap:new Map([["large",I],["small",I]]),action:this._onToggleCollapseButton.bind(this),visible:this._restoreButtonVisibility,title:new(V())(Y),hotKeyTitle:$,className:c.restore,dataset:{name:"pane-button-restore"}},this._actions.more={iconMap:new Map([["large",P],["small",B]]),action:this._showButtonsInContextMenu.bind(this),visible:new(V())(!z),title:new(V())(X),dataset:{name:"pane-button-more"}}}_getCloseButtonVisibility(){const e=this._paneWidget.state();let t=!1;return e.containsMainSeries()||e.maximized().value()||z||(t=e.dataSources().some(e=>(0,n.isStudy)(e))),t}_onCloseButton(){const e=this._model.model().panes().indexOf(this._paneWidget.state());this._model.removePane(e)}_getUpButtonVisibility(){ const e=this._paneWidget.state();return this._model.model().panes().indexOf(e)>0&&!e.maximized().value()&&!z}_getDownButtonVisibility(){const e=this._paneWidget.state(),t=this._model.model().panes();return t.indexOf(e)1&&!e.maximized().value()&&!z}_getMinimizeButtonVisibility(){const e=this._paneWidget.state();return this._model.model().panes().length>1&&e.maximized().value()}_getCollapseButtonVisibility(){if(z)return!1;const e=this._paneWidget.state();return!e.maximized().value()&&!e.collapsed().value()&&this._model.model().paneCollapsingAvailable().value()}_getRestoreButtonVisibility(){const e=this._paneWidget.state();return!e.maximized().value()&&e.collapsed().value()}_onToggleMaximizeButton(){this._callbacks.toggleMaximizePane(this._paneWidget)}_onToggleCollapseButton(){this._callbacks.toggleCollapsedPane(this._paneWidget)}_showButtonsInContextMenu(e){e.preventDefault(),this._moreCMShown||function(e,t,s){const i=[];if(e.maximize.visible.value()){const t=(0,r.ensure)(e.maximize.title),s=(0,r.ensureNotNull)(e.maximize.action);i.push(new m.Action({actionId:"Chart.PaneControls.MaximizePane",icon:S,label:t.value(),statName:"Maximize Pane",shortcutHint:C,onExecute:()=>s()}))}else if(e.minimize.visible.value()){const t=(0,r.ensure)(e.minimize.title),s=(0,r.ensureNotNull)(e.minimize.action);i.push(new m.Action({actionId:"Chart.PaneControls.MinimizePane",icon:S,label:t.value(),statName:"Minimize Pane",shortcutHint:C,onExecute:()=>s()}))}if(e.collapse.visible.value()){const t=(0,r.ensure)(e.collapse.title),s=(0,r.ensureNotNull)(e.collapse.action);i.push(new m.Action({actionId:"Chart.PaneControls.CollapsePane",icon:y,label:t.value(),statName:"Collapse pane",shortcutHint:E,onExecute:()=>s()}))}if(e.restore.visible.value()){const t=(0,r.ensure)(e.restore.title),s=(0,r.ensureNotNull)(e.restore.action);i.push(new m.Action({actionId:"Chart.PaneControls.RestorePane",icon:M,label:t.value(),statName:"Restore pane",shortcutHint:E,onExecute:()=>s()}))}if(e.up.visible.value()){const t=(0,r.ensure)(e.up.title),s=(0,r.ensureNotNull)(e.up.action);i.push(new m.Action({actionId:"Chart.PaneControls.MovePaneUp",icon:v,label:t.value(),statName:"Move pane up",onExecute:()=>s()}))}if(e.down.visible.value()){const t=(0,r.ensure)(e.down.title),s=(0,r.ensureNotNull)(e.down.action);i.push(new m.Action({actionId:"Chart.PaneControls.MovePaneDown",icon:w,label:t.value(),statName:"Move pane down",onExecute:()=>s()}))}if(e.close.visible.value()){const t=(0,r.ensure)(e.close.title),s=(0,r.ensureNotNull)(e.close.action);i.push(new m.Action({actionId:"Chart.PaneControls.DeletePane",icon:b,label:t.value(),statName:"Delete pane",onExecute:()=>s()}))}const l=(0,r.ensureNotNull)(t.target).getBoundingClientRect();return g.ContextMenuManager.showMenu(i,{clientX:l.right,clientY:l.top+l.height+3, -attachToXBy:"right"},void 0,void 0,s)}(this._actions,e,()=>{this._moreCMShown=!1}).then(()=>{this._moreCMShown=!0})}_getIsPaneMaximizeValue(){return this._paneWidget.state().maximized().value()}_getIsWidgetShow(){return this._model.model().panes().length>1}}},18166:(e,t,s)=>{"use strict";s.d(t,{createActionElement:()=>l});var i=s(80643);function l(e,t,s,l,o){const a=document.createElement("div");a.className=t,a.classList.toggle(l,!e.visible.value()),Object.assign(a.dataset,e.dataset),void 0!==e.className&&a.classList.add(e.className),void 0!==e.title&&(a.classList.add("apply-common-tooltip"),a.setAttribute("title",e.title.value()),void 0!==e.hotKeyTitle&&(a.dataset.tooltipHotkey=e.hotKeyTitle)),a.addEventListener("touchend",e.action),a.addEventListener("mousedown",t=>{0===t.button&&e.action(t)});const n=document.createElement("div");n.classList.add(s);const r=e.iconMap.get(o)||"";return(0,i.isString)(r)?n.innerHTML=r:n.appendChild(r),a.appendChild(n),a}},85197:(e,t,s)=>{"use strict";s.d(t,{trackingModeIsAvailable:()=>i});const i=s(49483).CheckMobile.any()},39640:(e,t,s)=>{"use strict";function i(e,t,s,i,l){function o(l){if(e>l.timeStamp)return;const o=l.target;void 0!==s&&null!==t&&null!==o&&o.ownerDocument===i&&(t.contains(o)||s(l))}return l.click&&i.addEventListener("click",o,!1),l.mouseDown&&i.addEventListener("mousedown",o,!1),l.touchEnd&&i.addEventListener("touchend",o,!1),l.touchStart&&i.addEventListener("touchstart",o,!1),()=>{i.removeEventListener("click",o,!1),i.removeEventListener("mousedown",o,!1),i.removeEventListener("touchend",o,!1),i.removeEventListener("touchstart",o,!1)}}s.d(t,{addOutsideEventListener:()=>i})},967:(e,t,s)=>{"use strict";s.d(t,{weekDaysShortNames:()=>o,weekDaysMiniNames:()=>a});var i=s(28353),l=s(84917);l.Months.JANUARY,(0,i.t)("January"),l.Months.FEBRUARY,(0,i.t)("February"),l.Months.MARCH,(0,i.t)("March"),l.Months.APRIL,(0,i.t)("April"),l.Months.MAY,(0,i.t)("May"),l.Months.JUNE,(0,i.t)("June"),l.Months.JULY,(0,i.t)("July"),l.Months.AUGUST,(0,i.t)("August"),l.Months.SEPTEMBER,(0,i.t)("September"),l.Months.OCTOBER,(0,i.t)("October"),l.Months.NOVEMBER,(0,i.t)("November"),l.Months.DECEMBER,(0,i.t)("December"),l.Months.JANUARY,(0,i.t)("Jan"),l.Months.FEBRUARY,(0,i.t)("Feb"),l.Months.MARCH,(0,i.t)("Mar"),l.Months.APRIL,(0,i.t)("Apr"),l.Months.MAY,(0,i.t)("May",{context:"short"}),l.Months.JUNE,(0,i.t)("Jun"),l.Months.JULY,(0,i.t)("Jul"),l.Months.AUGUST,(0,i.t)("Aug"),l.Months.SEPTEMBER,(0,i.t)("Sep"),l.Months.OCTOBER,(0,i.t)("Oct"),l.Months.NOVEMBER,(0,i.t)("Nov"),l.Months.DECEMBER,(0,i.t)("Dec"),l.WeekDays.SUNDAY,(0,i.t)("Sunday"),l.WeekDays.MONDAY,(0,i.t)("Monday"),l.WeekDays.TUESDAY,(0,i.t)("Tuesday"),l.WeekDays.WEDNESDAY,(0,i.t)("Wednesday"),l.WeekDays.THURSDAY,(0,i.t)("Thursday"),l.WeekDays.FRIDAY,(0,i.t)("Friday"),l.WeekDays.SATURDAY,(0,i.t)("Saturday");const o={[l.WeekDays.SUNDAY]:(0,i.t)("Sun"),[l.WeekDays.MONDAY]:(0,i.t)("Mon"),[l.WeekDays.TUESDAY]:(0,i.t)("Tue"),[l.WeekDays.WEDNESDAY]:(0,i.t)("Wed"),[l.WeekDays.THURSDAY]:(0,i.t)("Thu"),[l.WeekDays.FRIDAY]:(0,i.t)("Fri"), -[l.WeekDays.SATURDAY]:(0,i.t)("Sat")},a={[l.WeekDays.SUNDAY]:(0,i.t)("Su",{context:"day_of_week"}),[l.WeekDays.MONDAY]:(0,i.t)("Mo",{context:"day_of_week"}),[l.WeekDays.TUESDAY]:(0,i.t)("Tu",{context:"day_of_week"}),[l.WeekDays.WEDNESDAY]:(0,i.t)("We",{context:"day_of_week"}),[l.WeekDays.THURSDAY]:(0,i.t)("Th",{context:"day_of_week"}),[l.WeekDays.FRIDAY]:(0,i.t)("Fr",{context:"day_of_week"}),[l.WeekDays.SATURDAY]:(0,i.t)("Sa",{context:"day_of_week"})}},77975:(e,t,s)=>{"use strict";s.d(t,{useWatchedValueReadonly:()=>l});var i=s(59496);const l=(e,t=!1)=>{const s="watchedValue"in e?e.watchedValue:void 0,l="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,a]=(0,i.useState)(s?s.value():l);return(t?i.useLayoutEffect:i.useEffect)(()=>{if(s){a(s.value());const e=e=>a(e);return s.subscribe(e),()=>s.unsubscribe(e)}return()=>{}},[s]),o}},53448:e=>{e.exports=''},42125:e=>{e.exports=''},35067:e=>{ +attachToXBy:"right"},void 0,void 0,s)}(this._actions,e,()=>{this._moreCMShown=!1}).then(()=>{this._moreCMShown=!0})}_getIsPaneMaximizeValue(){return this._paneWidget.state().maximized().value()}_getIsWidgetShow(){return this._model.model().panes().length>1}}},18166:(e,t,s)=>{"use strict";s.d(t,{createActionElement:()=>l});var i=s(80643);function l(e,t,s,l,o){const a=document.createElement("div");a.className=t,a.classList.toggle(l,!e.visible.value()),Object.assign(a.dataset,e.dataset),void 0!==e.className&&a.classList.add(e.className),void 0!==e.title&&(a.classList.add("apply-common-tooltip"),a.setAttribute("title",e.title.value()),void 0!==e.hotKeyTitle&&(a.dataset.tooltipHotkey=e.hotKeyTitle)),a.addEventListener("touchend",e.action),a.addEventListener("mousedown",t=>{0===t.button&&e.action(t)});const n=document.createElement("div");n.classList.add(s);const r=e.iconMap.get(o)||"";return(0,i.isString)(r)?n.innerHTML=r:n.appendChild(r),a.appendChild(n),a}},85197:(e,t,s)=>{"use strict";s.d(t,{trackingModeIsAvailable:()=>i});const i=s(49483).CheckMobile.any()},39640:(e,t,s)=>{"use strict";function i(e,t,s,i,l){function o(l){if(e>l.timeStamp)return;const o=l.target;void 0!==s&&null!==t&&null!==o&&o.ownerDocument===i&&(t.contains(o)||s(l))}return l.click&&i.addEventListener("click",o,!1),l.mouseDown&&i.addEventListener("mousedown",o,!1),l.touchEnd&&i.addEventListener("touchend",o,!1),l.touchStart&&i.addEventListener("touchstart",o,!1),()=>{i.removeEventListener("click",o,!1),i.removeEventListener("mousedown",o,!1),i.removeEventListener("touchend",o,!1),i.removeEventListener("touchstart",o,!1)}}s.d(t,{addOutsideEventListener:()=>i})},967:(e,t,s)=>{"use strict";s.r(t),s.d(t,{monthsFullNames:()=>o,monthsShortNames:()=>a,weekDaysFullNames:()=>n,weekDaysShortNames:()=>r,weekDaysMiniNames:()=>d});var i=s(28353),l=s(84917);const o={[l.Months.JANUARY]:(0,i.t)("January"),[l.Months.FEBRUARY]:(0,i.t)("February"),[l.Months.MARCH]:(0,i.t)("March"),[l.Months.APRIL]:(0,i.t)("April"),[l.Months.MAY]:(0,i.t)("May"),[l.Months.JUNE]:(0,i.t)("June"),[l.Months.JULY]:(0,i.t)("July"),[l.Months.AUGUST]:(0,i.t)("August"),[l.Months.SEPTEMBER]:(0,i.t)("September"),[l.Months.OCTOBER]:(0,i.t)("October"),[l.Months.NOVEMBER]:(0,i.t)("November"),[l.Months.DECEMBER]:(0,i.t)("December")},a={[l.Months.JANUARY]:(0,i.t)("Jan"),[l.Months.FEBRUARY]:(0,i.t)("Feb"),[l.Months.MARCH]:(0,i.t)("Mar"),[l.Months.APRIL]:(0,i.t)("Apr"),[l.Months.MAY]:(0,i.t)("May",{context:"short"}),[l.Months.JUNE]:(0,i.t)("Jun"),[l.Months.JULY]:(0,i.t)("Jul"),[l.Months.AUGUST]:(0,i.t)("Aug"),[l.Months.SEPTEMBER]:(0,i.t)("Sep"),[l.Months.OCTOBER]:(0,i.t)("Oct"),[l.Months.NOVEMBER]:(0,i.t)("Nov"),[l.Months.DECEMBER]:(0,i.t)("Dec")},n={[l.WeekDays.SUNDAY]:(0,i.t)("Sunday"),[l.WeekDays.MONDAY]:(0,i.t)("Monday"),[l.WeekDays.TUESDAY]:(0,i.t)("Tuesday"),[l.WeekDays.WEDNESDAY]:(0,i.t)("Wednesday"),[l.WeekDays.THURSDAY]:(0,i.t)("Thursday"),[l.WeekDays.FRIDAY]:(0,i.t)("Friday"),[l.WeekDays.SATURDAY]:(0,i.t)("Saturday")},r={[l.WeekDays.SUNDAY]:(0,i.t)("Sun"),[l.WeekDays.MONDAY]:(0,i.t)("Mon"), +[l.WeekDays.TUESDAY]:(0,i.t)("Tue"),[l.WeekDays.WEDNESDAY]:(0,i.t)("Wed"),[l.WeekDays.THURSDAY]:(0,i.t)("Thu"),[l.WeekDays.FRIDAY]:(0,i.t)("Fri"),[l.WeekDays.SATURDAY]:(0,i.t)("Sat")},d={[l.WeekDays.SUNDAY]:(0,i.t)("Su",{context:"day_of_week"}),[l.WeekDays.MONDAY]:(0,i.t)("Mo",{context:"day_of_week"}),[l.WeekDays.TUESDAY]:(0,i.t)("Tu",{context:"day_of_week"}),[l.WeekDays.WEDNESDAY]:(0,i.t)("We",{context:"day_of_week"}),[l.WeekDays.THURSDAY]:(0,i.t)("Th",{context:"day_of_week"}),[l.WeekDays.FRIDAY]:(0,i.t)("Fr",{context:"day_of_week"}),[l.WeekDays.SATURDAY]:(0,i.t)("Sa",{context:"day_of_week"})}},77975:(e,t,s)=>{"use strict";s.d(t,{useWatchedValueReadonly:()=>l});var i=s(59496);const l=(e,t=!1)=>{const s="watchedValue"in e?e.watchedValue:void 0,l="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,a]=(0,i.useState)(s?s.value():l);return(t?i.useLayoutEffect:i.useEffect)(()=>{if(s){a(s.value());const e=e=>a(e);return s.subscribe(e),()=>s.unsubscribe(e)}return()=>{}},[s]),o}},53448:e=>{e.exports=''},42125:e=>{e.exports=''},35067:e=>{ e.exports=''},35671:e=>{ e.exports='' },96095:e=>{e.exports=''},13719:e=>{e.exports=''},44509:e=>{e.exports=''},97142:e=>{e.exports=''},51855:e=>{e.exports=''},38197:e=>{ diff --git a/charting_library/bundles/context-menu-renderer.c51a5b07782e9509b684.js b/charting_library/bundles/context-menu-renderer.c51a5b07782e9509b684.js deleted file mode 100644 index 5acf25ce..00000000 --- a/charting_library/bundles/context-menu-renderer.c51a5b07782e9509b684.js +++ /dev/null @@ -1,3 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1584],{59142:function(e,t){var o,n,r;n=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16842:e=>{e.exports={ -favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},46608:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ContextMenuRenderer:()=>c});var n=o(59496),r=o(87995),i=o(29332),s=o(62820),a=o(50655);class c{constructor(e,t,o,r){this._root=document.createElement("div"),this._isShown=!1,this._manager=null,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode,"data-name":t["data-name"]},this._onDestroy=o,this._onShow=r,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=n.createRef(),this._doNotCloseOn=t.doNotCloseOn,t.manager&&(this._manager=t.manager)}show(e){this._onShow&&this._onShow(),this._isShown=!0,this._render({...this._props,position:(t,o,n)=>{var r,i,a;e.touches&&e.touches.length>0&&(e={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY});let c;switch(null!==(r=e.attachToXBy)&&void 0!==r?r:(0,s.isRtl)()?"right":"left"){case"left":c=e.clientX;break;case"right":c=e.clientX-t}let l,u=null!==(i=e.attachToYBy)&&void 0!==i?i:"auto",d=e.clientY;if("auto-strict"===u){const t=d+(null!==(a=e.boxHeight)&&void 0!==a?a:0);n{this.hide(),this._unmount()},doNotCloseOn:this._doNotCloseOn,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef})}hide(){this._isShown=!1,this._render({...this._props,isOpened:!1})}isShown(){return this._isShown}_unmount(){this._isShown=!1,r.unmountComponentAtNode(this._root),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus({preventScroll:!0})}_render(e){r.render(n.createElement(a.SlotContext.Provider,{value:this._manager},n.createElement(i.OverlapContextMenu,{...e})),this._root)}}},39640:(e,t,o)=>{"use strict";function n(e,t,o,n,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==o&&null!==t&&null!==i&&i.ownerDocument===n&&(t.contains(i)||o(r))}return r.click&&n.addEventListener("click",i,!1),r.mouseDown&&n.addEventListener("mousedown",i,!1),r.touchEnd&&n.addEventListener("touchend",i,!1),r.touchStart&&n.addEventListener("touchstart",i,!1),()=>{n.removeEventListener("click",i,!1),n.removeEventListener("mousedown",i,!1),n.removeEventListener("touchend",i,!1),n.removeEventListener("touchstart",i,!1)}}o.d(t,{addOutsideEventListener:()=>n})},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>r,DrawerContext:()=>i});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(i.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer} -},this.props.children)}}const i=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>v});var n=o(59496),r=o(88537),i=o(97754),s=o(59142),a=o(99054),c=o(65718),l=o(37558),u=o(49483),d=o(29197),h=o(66998);function v(e){const{position:t="Bottom",onClose:o,children:v,className:m,theme:w=h}=e,p=(0,r.ensureNotNull)((0,n.useContext)(l.DrawerContext)),[f,g]=(0,n.useState)(0),E=(0,n.useRef)(null),_=(0,n.useContext)(d.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,r.ensureNotNull)(E.current);return e.focus({preventScroll:!0}),_.subscribe(p,o),0===p.currentDrawer&&(0,a.setFixedBodyState)(!0),u.CheckMobile.iOS()&&(0,s.disableBodyScroll)(e),g(p.addDrawer()),()=>{_.unsubscribe(p,o);const t=p.removeDrawer();u.CheckMobile.iOS()&&(0,s.enableBodyScroll)(e),0===t&&(0,a.setFixedBodyState)(!1)}},[]),n.createElement(c.Portal,null,n.createElement("div",{className:i(h.wrap,h["position"+t])},f===p.currentDrawer&&n.createElement("div",{className:h.backdrop,onClick:o}),n.createElement("div",{className:i(h.drawer,w.drawer,h["position"+t],m),ref:E,tabIndex:-1,"data-name":e["data-name"]},v)))}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>d});var n=o(28353),r=o(59496),i=o(97754),s=o(9745),a=o(20614),c=o(55783),l=o(16842);const u={add:(0,n.t)("Add to favorites"),remove:(0,n.t)("Remove from favorites")};function d(e){const{className:t,isFilled:o,isActive:n,onClick:d,...h}=e;return r.createElement(s.Icon,{...h,className:i(l.favorite,"apply-common-tooltip",o&&l.checked,n&&l.active,t),icon:o?a:c,onClick:d,title:o?u.remove:u.add})}},37049:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/context-menu-renderer.e8aa606750391369d706.js b/charting_library/bundles/context-menu-renderer.e8aa606750391369d706.js new file mode 100644 index 00000000..4090fdd7 --- /dev/null +++ b/charting_library/bundles/context-menu-renderer.e8aa606750391369d706.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1584],{66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>s});var r=n(59496);const s=r.forwardRef((e,t)=>{const{icon:n="",...s}=e;return r.createElement("span",{...s,ref:t,dangerouslySetInnerHTML:{__html:n}})})},46608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ContextMenuRenderer:()=>a});var r=n(59496),s=n(87995),o=n(29332),i=n(62820),l=n(50655);class a{constructor(e,t,n,s){this._root=document.createElement("div"),this._isShown=!1,this._manager=null,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode,"data-name":t["data-name"]},this._onDestroy=n,this._onShow=s,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=r.createRef(),this._doNotCloseOn=t.doNotCloseOn,t.manager&&(this._manager=t.manager)}show(e){this._onShow&&this._onShow(),this._isShown=!0,this._render({...this._props,position:(t,n,r)=>{var s,o,l;e.touches&&e.touches.length>0&&(e={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY});let a;switch(null!==(s=e.attachToXBy)&&void 0!==s?s:(0,i.isRtl)()?"right":"left"){case"left":a=e.clientX;break;case"right":a=e.clientX-t}let c,u=null!==(o=e.attachToYBy)&&void 0!==o?o:"auto",d=e.clientY;if("auto-strict"===u){const t=d+(null!==(l=e.boxHeight)&&void 0!==l?l:0);r{this.hide(),this._unmount()},doNotCloseOn:this._doNotCloseOn,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef})}hide(){this._isShown=!1,this._render({...this._props,isOpened:!1})}isShown(){return this._isShown}_unmount(){this._isShown=!1,s.unmountComponentAtNode(this._root),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus({preventScroll:!0})}_render(e){s.render(r.createElement(l.SlotContext.Provider,{value:this._manager},r.createElement(o.OverlapContextMenu,{...e})),this._root)}}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,s){function o(s){if(e>s.timeStamp)return;const o=s.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===r&&(t.contains(o)||n(s))}return s.click&&r.addEventListener("click",o,!1),s.mouseDown&&r.addEventListener("mousedown",o,!1), +s.touchEnd&&r.addEventListener("touchend",o,!1),s.touchStart&&r.addEventListener("touchstart",o,!1),()=>{r.removeEventListener("click",o,!1),r.removeEventListener("mousedown",o,!1),r.removeEventListener("touchend",o,!1),r.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>r})},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>r,matchMediaMinMax:()=>s,setStyle:()=>o,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>l});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const i=o.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=s-i}return e}})();function s(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function o(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(i(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>i});var r=n(68722);let s=0,o=!1;function i(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=(0,r.getCSSProperty)(t,"overflow"),s=(0,r.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,r.setStyle)(n,"right",(0,r.getScrollbarWidth)()+"px"),t.style.paddingRight=s+(0,r.getScrollbarWidth)()+"px",o=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),o)){(0,r.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,r.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",o=!1}}},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>s,DrawerContext:()=>o});var r=n(59496);class s extends r.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.createElement(o.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const o=r.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>p});var r=n(59496),s=n(88537),o=n(97754),i=n(59142),l=n(43989),a=n(65718),c=n(37558),u=n(49483),d=n(29197),h=n(66998);function p(e){const{position:t="Bottom",onClose:n,children:p,className:m,theme:v=h}=e,f=(0,s.ensureNotNull)((0,r.useContext)(c.DrawerContext)),[_,g]=(0,r.useState)(0),w=(0,r.useRef)(null),x=(0,r.useContext)(d.CloseDelegateContext);return(0,r.useEffect)(()=>{const e=(0,s.ensureNotNull)(w.current);return e.focus({preventScroll:!0}),x.subscribe(f,n),0===f.currentDrawer&&(0,l.setFixedBodyState)(!0),u.CheckMobile.iOS()&&(0,i.disableBodyScroll)(e), +g(f.addDrawer()),()=>{x.unsubscribe(f,n);const t=f.removeDrawer();u.CheckMobile.iOS()&&(0,i.enableBodyScroll)(e),0===t&&(0,l.setFixedBodyState)(!1)}},[]),r.createElement(a.Portal,null,r.createElement("div",{className:o(h.wrap,h["position"+t])},_===f.currentDrawer&&r.createElement("div",{className:h.backdrop,onClick:n}),r.createElement("div",{className:o(h.drawer,v.drawer,h["position"+t],m),ref:w,tabIndex:-1,"data-name":e["data-name"]},p)))}},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>d});var r=n(28353),s=n(59496),o=n(97754),i=n(9745),l=n(20614),a=n(55783),c=n(16842);const u={add:(0,r.t)("Add to favorites"),remove:(0,r.t)("Remove from favorites")};function d(e){const{className:t,isFilled:n,isActive:r,onClick:d,...h}=e;return s.createElement(i.Icon,{...h,className:o(c.favorite,"apply-common-tooltip",n&&c.checked,r&&c.active,t),icon:n?l:a,onClick:d,title:n?u.remove:u.add})}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>o});var r=n(59496),s=n(39640);function o(e){const{click:t,mouseDown:n,touchEnd:o,touchStart:i,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:o,touchStart:i},r=a?a.current:u.current;return(0,s.addOutsideEventListener)(d.current,r,l,c,e)},[t,n,o,i,l]),a||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>s});var r=n(59496);class s extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>r});const r=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>f,Menu:()=>_});var r=n(59496),s=n(97754),o=n.n(s),i=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),v=n(16059);const f=v;class _ extends r.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e), +"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,r,s,o;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,i.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const v=u.height>m;if(v){(0,i.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:f,height:_}=u,g="function"==typeof a?a(f,_,d):a,w=h-(null!==(r=g.overrideWidth)&&void 0!==r?r:f)-0,x=(0,l.clamp)(g.x,0,Math.max(0,w)),C=0+p,y=d-(null!==(s=g.overrideHeight)&&void 0!==s?s:_)-0;let S=(0,l.clamp)(g.y,C,Math.max(C,y));if(g.forbidCorrectYCoord&&S{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,i.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){ +const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":s,children:i,minWidth:l,theme:u=v,className:d,maxHeight:h,onMouseOver:f,onMouseOut:_,onKeyDown:w,onFocus:x,onBlur:C}=this.props,{appearingMenuHeight:y,appearingMenuWidth:S,appearingPosition:b,isMeasureValid:M}=this.state;return r.createElement(m.MenuContext.Provider,{value:this},r.createElement(p.SubmenuHandler,null,r.createElement(c.SlotContext.Provider,{value:this._manager},r.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":s,className:o()(d,u.menuWrap,!M&&u.isMeasuring),style:{height:y,left:b&&b.x,minWidth:l,position:"fixed",top:b&&b.y,width:S},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:f,onMouseOut:_,onKeyDown:w,onFocus:x,onBlur:C},r.createElement("div",{className:o()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==y?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},r.createElement(g,{className:u.menuBox},i)))),r.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function g(e){const t=(0,i.ensureNotNull)((0,r.useContext)(p.SubmenuContext)),n=r.useRef(null);return r.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(r=e.target,null===(s=n.current)||void 0===s?void 0:s.contains(r))))return;var r,s;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}_.contextType=p.SubmenuContext},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>o,getRootOverlapManager:()=>l});var r=n(88537);class s{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class o{constructor(e=document){this._storage=new s,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e) +;const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(i.get(t));{const t=new o(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>o});var r=n(59496),s=n(59064);const o=r.createContext(s.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var r=n(59496),s=n(87995),o=n(9423),i=n(88216),l=n(50655);class a extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",s.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const c=r.createContext(null)},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>u});var r=n(28353),s=n(59496),o=n(97754),i=n(9745),l=n(73366),a=n(73432);const c={remove:(0,r.t)("Remove")};function u(e){const{className:t,isActive:n,onClick:r,onMouseDown:u,title:d,hidden:h,"data-name":p="remove-button",...m}=e;return s.createElement(i.Icon,{...m,"data-name":p,className:o(a.button,"apply-common-tooltip",n&&a.active,h&&a.hidden,t),icon:l,onClick:r,onMouseDown:u,title:d||c.remove})}},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>s,SlotContext:()=>o});var r=n(59496);class s extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}} +const o=r.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>s,SubmenuHandler:()=>o});var r=n(59496);const s=r.createContext(null);function o(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(new Map);return(0,r.useEffect)(()=>()=>{null!==o.current&&clearTimeout(o.current)},[]),r.createElement(s.Provider,{value:{current:t,setCurrent:function(e){null!==o.current&&(clearTimeout(o.current),o.current=null);null===t?n(e):o.current=setTimeout(()=>{o.current=null,n(e)},100)},registerSubmenu:function(e,t){return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some(t=>t(e))}}},e.children)}},73366:e=>{e.exports=''},37049:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/cookies-notification.9ed1e7a17da61937dc4e.js b/charting_library/bundles/cookies-notification.9ed1e7a17da61937dc4e.js new file mode 100644 index 00000000..d6f614b8 --- /dev/null +++ b/charting_library/bundles/cookies-notification.9ed1e7a17da61937dc4e.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8869,4291],{26390:e=>{e.exports={switcher:"switcher-GT7Z98Io","disable-cursor-pointer":"disable-cursor-pointer-GT7Z98Io",input:"input-GT7Z98Io","thumb-wrapper":"thumb-wrapper-GT7Z98Io","size-small":"size-small-GT7Z98Io","size-large":"size-large-GT7Z98Io","intent-default":"intent-default-GT7Z98Io","disable-active-state-styles":"disable-active-state-styles-GT7Z98Io","intent-select":"intent-select-GT7Z98Io",track:"track-GT7Z98Io",thumb:"thumb-GT7Z98Io"}},5553:e=>{e.exports={toast:"toast-x9aer5B8","intent-success":"intent-success-x9aer5B8","intent-warning":"intent-warning-x9aer5B8","intent-danger":"intent-danger-x9aer5B8",image:"image-x9aer5B8","main-content":"main-content-x9aer5B8",title:"title-x9aer5B8","main-text":"main-text-x9aer5B8","secondary-text":"secondary-text-x9aer5B8",actions:"actions-x9aer5B8","close-icon":"close-icon-x9aer5B8","close-button":"close-button-x9aer5B8","adjust-for-close-button":"adjust-for-close-button-x9aer5B8"}},7881:e=>{e.exports={"toast-wrapper":"toast-wrapper-LaQcqQbu",compact:"compact-LaQcqQbu"}},19107:e=>{e.exports={cookiesNotification:"cookiesNotification-W4Y0hWcd","cookies-link":"cookies-link-W4Y0hWcd",actionBtn:"actionBtn-W4Y0hWcd",acceptAll:"acceptAll-W4Y0hWcd",managePreferences:"managePreferences-W4Y0hWcd"}},14070:e=>{e.exports={privacyPreferenceDialog:"privacyPreferenceDialog-vDbnNLqD",privacyPreference:"privacyPreference-vDbnNLqD",close:"close-vDbnNLqD",title:"title-vDbnNLqD",availableCookieElement:"availableCookieElement-vDbnNLqD",cookieTitle:"cookieTitle-vDbnNLqD",switchTitle:"switchTitle-vDbnNLqD",cookieContent:"cookieContent-vDbnNLqD",moreInfoLink:"moreInfoLink-vDbnNLqD",nowrap:"nowrap-vDbnNLqD",icon:"icon-vDbnNLqD",btnBlock:"btnBlock-vDbnNLqD",savePreferences:"savePreferences-vDbnNLqD"}},21942:e=>{e.exports={closeButton:"closeButton-oXu4cxSp",tabHeader:"tabHeader-oXu4cxSp",title:"title-oXu4cxSp",description:"description-oXu4cxSp",backButton:"backButton-oXu4cxSp"}},99062:e=>{e.exports={"toast-positioning-wrapper":"toast-positioning-wrapper-uEa3054V",compact:"compact-uEa3054V","location-bottom-left":"location-bottom-left-uEa3054V","location-bottom-right":"location-bottom-right-uEa3054V",hidden:"hidden-uEa3054V",added:"added-uEa3054V"}},86332:(e,t,o)=>{"use strict";o.d(t,{ControlGroupContext:()=>n});const n=o(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,o)=>{"use strict";function n(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}o.d(t,{getGroupCellRemoveRoundBorders:()=>n})},17946:(e,t,o)=>{"use strict";o.d(t,{CustomBehaviourContext:()=>n,presetDefault:()=>s,presetPlatform:()=>a});const n=(0,o(59496).createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0}),s={enableActiveStateStyles:!0,enablePointerOnHover:!0},a={enableActiveStateStyles:!1,enablePointerOnHover:!1}},9745:(e,t,o)=>{"use strict";o.d(t,{Icon:()=>s});var n=o(59496);const s=n.forwardRef((e,t)=>{ +const{icon:o="",...s}=e;return n.createElement("span",{...s,ref:t,dangerouslySetInnerHTML:{__html:o}})})},17290:(e,t,o)=>{"use strict";o.d(t,{Switch:()=>l});var n=o(59496),s=o(97754),a=o(17946),i=o(26390),r=o.n(i);function c(e){const t=(0,n.useContext)(a.CustomBehaviourContext),{className:o,intent:i="default",size:c="small",enablePointerOnHover:l=t.enablePointerOnHover,enableActiveStateStyles:u=t.enableActiveStateStyles}=e;return s(o,r().switcher,r()["size-"+c],r()["intent-"+i],!l&&r()["disable-cursor-pointer"],!u&&r()["disable-active-state-styles"])}function l(e){const{reference:t,size:o,intent:s,...a}=e;return n.createElement("div",{className:c(e)},n.createElement("input",{...a,type:"checkbox",className:r().input,ref:t}),n.createElement("div",{className:r()["thumb-wrapper"]},n.createElement("div",{className:r().track}),n.createElement("div",{className:r().thumb})))}},22032:(e,t,o)=>{"use strict";o.d(t,{Toast:()=>f});var n,s=o(59496),a=o(97754);!function(e){e.Default="default",e.Success="success",e.Warning="warning",e.Danger="danger"}(n||(n={}));var i=o(9745),r=o(95781),c=o(5553),l=o.n(c);const u=s.forwardRef((e,t)=>{const{className:o,onClick:n,tabIndex:c}=e;return s.createElement("button",{type:"button",className:a(l()["close-button"],o),tabIndex:c,onClick:n,ref:t},s.createElement(i.Icon,{icon:r,className:l()["close-icon"]}))});function d(e){const{children:t,role:o,className:i,intent:r=n.Default}=e,c=a(l().toast,r!==n.Default&&l()["intent-"+r],i);return s.createElement("article",{className:c,role:o},t)}function m(e){const{children:t}=e;return s.createElement("div",{className:l().image},t)}function h(e){const{children:t,className:o}=e;return s.createElement("h2",{className:a(l().title,o)},t)}function g(e){const{children:t,className:o}=e;return s.createElement("p",{className:a(l()["main-text"],o)},t)}function p(e){const{children:t}=e;return s.createElement("div",{className:l().actions},t)}function v(e){const{children:t}=e;return s.createElement("p",{className:l()["secondary-text"]},t)}const f=s.memo(e=>{const{title:t,text:o,secondaryText:n,image:i,actions:r,intent:c,role:f="status",showCloseButton:y=!1,onClose:k,onAutoFocus:_,className:C}=e,b=s.useRef(null),w=y&&!i?l()["adjust-for-close-button"]:void 0,S=!y||i||t?void 0:l()["adjust-for-close-button"];return s.useEffect(()=>{"alert"===f&&(void 0!==_?_():null!==b.current&&b.current.focus())},[]),s.createElement(d,{intent:c,role:f,className:C},y&&s.createElement(u,{ref:b,onClick:k}),i&&s.createElement(m,null,i),s.createElement("div",{className:a(l()["main-content"],y&&l()["with-close-button"])},t&&s.createElement(h,{className:w},t),o&&s.createElement(g,{className:S},o),r&&s.createElement(p,null,r),n&&s.createElement(v,null,n)))})},90186:(e,t,o)=>{"use strict";function n(e){return a(e,i)}function s(e){return a(e,r)}function a(e,t){const o=Object.entries(e).filter(t),n={};for(const[e,t]of o)n[e]=t;return n}function i(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function r(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>n, +filterAriaProps:()=>s,filterProps:()=>a,isDataAttribute:()=>i,isAriaAttribute:()=>r})},22064:(e,t,o)=>{"use strict";o.d(t,{createDomId:()=>c,joinDomIds:()=>l});const n=/\s/g;function s(e){return"string"==typeof e}function a(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function i(e){return e.trim().length>0}function r(e){return e.replace(n,"-")}function c(...e){const t=e.map(a).filter(s).filter(i).map(r);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function l(...e){return e.map(a).filter(s).filter(i).join(" ")}},56139:(e,t,o)=>{"use strict";o.r(t),o.d(t,{globalToasts:()=>L,showToast:()=>x});var n=o(59496),s=o(97754),a=o(87995),i=o(9423),r=o(65718),c=o(50655),l=o(88216),u=o(36947),d=o(65355);class m{constructor(e){this._animationStage=d.ToastAnimationStage.Add,this._keys=new Map,this._element=null,this.render=e=>this._render(e),this.remove=()=>this._currentToastsLayer.removeToast(this);const{priority:t,origin:o,currentLayer:n,onLayerChange:s,render:a,onMouseOver:i,onMouseOut:r}=e;this._staticData=Object.freeze({priority:t,origin:o,onLayerChange:s,onMouseOver:i,onMouseOut:r}),this._currentToastsLayer=n||o,this._render=a}getStaticData(){return this._staticData}migrate(e){this._currentToastsLayer=e,this._animationStage=d.ToastAnimationStage.Add}getCurrentLayer(){return this._currentToastsLayer}isForeign(){return this._staticData.origin!==this._currentToastsLayer}getAnimationStage(){return this._animationStage}setAnimationStage(e){this._animationStage=e}setKey(e,t){this._keys.set(e,t)}getKey(e=this._currentToastsLayer){return this._keys.get(e)}getElement(){return this._element}setElement(e){this._element=e}}var h=o(99062);const g={position:"fixed",left:"0",bottom:"0",right:"0",zIndex:145};class p{constructor(e,t,o=g,n){this._toasts={[d.ToastPriority.Low]:[],[d.ToastPriority.Medium]:[],[d.ToastPriority.High]:[]},this._container=void 0!==t?t:document.body,this._suggestedLayout=void 0!==e?e:"loose",this._location=null!=n?n:"bottom-left",this._manager=new l.OverlapManager(document),this._overlapManagerContainer=function(e,t={}){const o=e.createElement("div");return o.dataset.role="toast-container",f(o,{...g,...t}),o}(document,o),this._manager.setContainer(this._overlapManagerContainer),this._container.appendChild(this._overlapManagerContainer),this._detachedContainer=document.createElement("div")}showToast(e){const{render:t,priority:o=d.ToastPriority.Medium,index:n,origin:s=this,onLayerChange:a,onMouseOver:i,onMouseOut:r}=e,c=new m({priority:o,origin:s,currentLayer:this,render:t,onLayerChange:a,onMouseOver:i,onMouseOut:r}),l=this._getNextKey();return c.setKey(this,l),"compact"===this._suggestedLayout&&o===d.ToastPriority.Low?Promise.all(this._toasts[d.ToastPriority.Low].map(e=>this.removeToast(e))).then(()=>{this._add(c,n),this._render()}):(this._add(c,n),this._render()),c}showExistingToast(e){const t=this._getNextKey();return e.setKey(this,t),this._add(e),this._render(),e}removeToast(e){ +return new Promise(t=>{e.setAnimationStage(d.ToastAnimationStage.Remove),this._render(),setTimeout(()=>{this._remove(e),this._render(),t()},250)})}update(e){const{suggestedLayout:t,location:o,container:n,rootContainerOptions:s}=e;let a=!1,i=!1;void 0!==t&&t!==this._suggestedLayout&&(this._setSuggestedLayout(t),a=!0),void 0!==o&&(this._setLocation(o),i=!0),void 0!==n&&(this._setContainer(n),i=!0),void 0!==s&&(this._updateRootContainer(s),i=!0),a?"compact"===this._suggestedLayout&&this._toasts[d.ToastPriority.Low].slice(0,-1).forEach(e=>this.removeToast(e)):i&&this._render()}getToasts(){return this._toasts}forceRender(){this._render()}merge(e){v(e.getToasts()).forEach(async t=>{const o=t.getStaticData();await t.remove(),t.migrate(this),this.showExistingToast(t),void 0!==o.onLayerChange&&o.onLayerChange(e,this)})}split(e){v(this._toasts).filter(e=>e.isForeign()).forEach(async t=>{const o=t.getStaticData();await t.remove(),t.migrate(e),e.showExistingToast(t),void 0!==o.onLayerChange&&o.onLayerChange(this,e)})}reset(){this._toasts={[d.ToastPriority.Low]:[],[d.ToastPriority.Medium]:[],[d.ToastPriority.High]:[]},this._render()}destroy(){this._removeRootContainer()}_removeRootContainer(){a.unmountComponentAtNode(this._detachedContainer),this._detachedContainer.remove(),this._overlapManagerContainer.remove()}_getToastsList(e){const t=e.getStaticData().priority;return this._toasts[t]}_normalizeIndex(e,t){return e<0?0:e>t.length?t.length:e}_add(e,t){const o=this._getToastsList(e);if(void 0!==t){const n=this._normalizeIndex(t,o);o.splice(n,0,e)}else o.push(e)}_remove(e){const t=this._getToastsList(e),o=t.indexOf(e);o>=0&&t.splice(o,1)}_render(){const e=v(this._toasts);a.render(n.createElement(_,{toasts:e,suggestedLayout:this._suggestedLayout,location:this._location,manager:this._manager,layer:this}),this._detachedContainer)}_setSuggestedLayout(e){e!==this._suggestedLayout&&(this._suggestedLayout=e)}_setLocation(e){e!==this._location&&(this._location=e)}_setContainer(e){e!==this._container&&(this._container=e,this._container.appendChild(this._overlapManagerContainer))}_updateRootContainer(e){f(this._overlapManagerContainer,e)}_getNextKey(){return(0,i.randomHashN)(5)}}function v(e){return[...e[d.ToastPriority.Low],...e[d.ToastPriority.Medium],...e[d.ToastPriority.High]]}function f(e,t){const{top:o,right:n,bottom:s,left:a,position:i,zIndex:r}=t;void 0!==i&&(e.style.position=i),void 0!==r&&(e.style.zIndex=String(r)),void 0!==o&&(e.style.top=o),void 0!==n&&(e.style.right=n),void 0!==s&&(e.style.bottom=s),void 0!==a&&(e.style.left=a)}function y(e,t,o){return e.getKey(o)||t.toString(10)}function k(e){const{toast:t,toasts:o,layer:a,suggestedLayout:i,location:c,forceRender:l}=e,u=(0,n.useRef)(null),m=t.getAnimationStage(),g=m!==d.ToastAnimationStage.None,p=m===d.ToastAnimationStage.Add,v=function(e,t,o){var n;const s=t.indexOf(e),a=y(e,s,o);let i=0;for(const e of t){const r=t.indexOf(e),c=y(e,r,o),l=(null===(n=e.getElement())||void 0===n?void 0:n.offsetHeight)||0,u=e.getAnimationStage()!==d.ToastAnimationStage.None;let m=0 +;u&&c===a?m=1:!u&&s{if(t.getCurrentLayer()!==a||t.getAnimationStage()!==d.ToastAnimationStage.Add||null===u.current)return;const e=t.getElement();null===e||e!==u.current?(t.setElement(u.current),l()):(t.setAnimationStage(d.ToastAnimationStage.None),l())}),n.createElement(r.Portal,{layerOptions:{position:"absolute"},left:"0",right:"0"},n.createElement("div",{onMouseOver:t.getStaticData().onMouseOver,onMouseOut:t.getStaticData().onMouseOut,className:f,style:{transform:`translateY(${v}px)`},ref:u},t.render({onRemove:t.remove,suggestedLayout:i})))}function _(e){const{toasts:t,suggestedLayout:o,location:s,manager:a,layer:i}=e,r=(0,u.useForceUpdate)();return n.createElement(c.SlotContext.Provider,{value:a},t.map((e,a)=>n.createElement(k,{key:y(e,a,i),toast:e,toasts:t,layer:i,suggestedLayout:o,location:s,forceRender:r})))}var C=o(86240),b=o(7881);const w=C["media-mf-phone-landscape"];function S(e){const{suggestedLayout:t,children:o}=e;return n.createElement("div",{className:s(b["toast-wrapper"],"compact"===t&&b.compact)},o)}const L=new class{constructor(){var e;this._mediaQuery=window.matchMedia(w),this._handleMediaQueryChange=()=>{this._toastsLayer.update({suggestedLayout:this._getSuggestedLayout()})},this._handleLoginStateChange=()=>{this._toastsLayer.update({location:this._getLocation()})},this._toastsLayer=new p(this._getSuggestedLayout(),void 0,void 0,this._getLocation()),this._mediaQuery.addListener(this._handleMediaQueryChange),null===(e=window.loginStateChange)||void 0===e||e.subscribe(this,this._handleLoginStateChange)}destroy(){var e;this._toastsLayer.destroy(),this._mediaQuery.removeListener(this._handleMediaQueryChange),null===(e=window.loginStateChange)||void 0===e||e.unsubscribe(this,this._handleLoginStateChange)}showCustomToast(e){const{render:t,...o}=e;var s;return this._toastsLayer.showToast({render:(s=t,e=>n.createElement(S,{suggestedLayout:e.suggestedLayout,children:s(e)})),...o}).remove}reset(){this._toastsLayer.reset()}forceRender(){this._toastsLayer.forceRender()}merge(e){this._toastsLayer.merge(e)}split(e){this._toastsLayer.split(e)}_getSuggestedLayout(){return this._mediaQuery.matches?"loose":"compact"}_getLocation(){return"bottom-left"}};function x(e){return L.showCustomToast(e)}},44598:(e,t,o)=>{"use strict";o.r(t),o.d(t,{showCookiesNotification:()=>y});var n=o(59496),s=o(28353),a=o(71036),i=o(65355),r=o(22032),c=o(11417),l=o(11542),u=o(56139),d=o(5401),m=o(98999),h=o(57229),g=o(76422);var p=o(49483),v=o(19107);function f(e){const{onResolve:t,onRemove:i}=e;(0,n.useEffect)(()=>{c.TVLocalStorage.getItem("cookie_dialog_tracked")||((0,l.trackCookies)("show","cookies_dialog"),c.TVLocalStorage.setItem("cookie_dialog_tracked","1"))},[]);const u=(0,s.t)("This website uses cookies"),f=(0,s.t)("This app uses cookies"),y=(0,s.t)("We use cookies to ensure you get the best experience on our website."),k=(0, +s.t)("We use cookies to ensure you get the best experience on our app."),_=(0,s.t)("To learn more about cookies please read our {link_start}Cookies Policy{link_end}.").split(/{link_start}|{link_end}/),C=n.createElement(n.Fragment,null,((0,p.isDesktopApp)()?k:y)+" "+_[0],n.createElement("a",{target:"_blank",href:"/cookies-policy/",className:v["cookies-link"],onClick:()=>(0,l.trackCookies)("click","policy_info")},_[1]),_[2]),b=e=>(0,n.useCallback)(()=>{e===d.CookieAcceptButton.AcceptAll&&((0,m.setCookieSetting)(m.CookieSettings.Analytics,!0),(0,m.setCookieSetting)(m.CookieSettings.Advertising,!0),t(!0)),e===d.CookieAcceptButton.ManagePreferences&&(!function(e){Promise.all([o.e(509),o.e(3118),o.e(8247),o.e(1536),o.e(5423),o.e(8983)]).then(o.bind(o,13958)).then(t=>{const n={afterClose:async()=>{if(!(0,h.checkCookiePolicy)(h.bannerPrivacyPreferenceKey)){const{showCookiesNotification:e}=await Promise.resolve().then(o.bind(o,57229));e()}g.emit(h.bannerPrivacyPreferenceKey,(0,h.checkCookiePolicy)(h.bannerPrivacyPreferenceKey))}};new t.PrivacyPreferenceDialog({...e},n).open()})}(),t(!1)),i()},[t,i]),w=n.createElement("div",{className:v.actionBtn},n.createElement(a.SquareButton,{className:v.managePreferences,onClick:b(d.CookieAcceptButton.ManagePreferences),variant:"secondary",size:"xsmall"},(0,s.t)("Manage preferences")),n.createElement(a.SquareButton,{className:v.acceptAll,onClick:b(d.CookieAcceptButton.AcceptAll),size:"xsmall"},(0,s.t)("Accept all")));return n.createElement(r.Toast,{title:(0,p.isDesktopApp)()?f:u,className:v.cookiesNotification,text:C,actions:w,showCloseButton:!1,role:"status"})}function y(){return new Promise(e=>{(0,u.showToast)({priority:i.ToastPriority.High,render:({onRemove:t,...o})=>(g.subscribe(h.bannerPrivacyPreferenceKey,e=>{e&&t()},null),n.createElement(f,{...o,onResolve:e,onRemove:t}))})})}},5401:(e,t,o)=>{"use strict";o.r(t),o.d(t,{CookieAcceptButton:()=>p,PrivacyPreference:()=>w});var n=o(28353),s=o(59496),a=o(22064),i=o(17946),r=o(17290),c=o(71036),l=o(9745),u=o(97754),d=o(67844),m=o(41145),h=o(21942);const g=s.memo(e=>s.createElement(d.CloseButton,{className:u(h.closeButton,e.className),onClick:e.onClose,"aria-label":e.ariaLabel}));s.memo(e=>{const{text:t,description:o}=e;return s.createElement("div",{className:h.tabHeader},s.createElement("h3",{className:h.title},t),o&&s.createElement("p",{className:h.description},o))}),s.memo(e=>{const{className:t,...o}=e;return s.createElement(m.BackButton,{className:u(h.backButton,t),...o})});var p,v,f=o(11542),y=o(98999),k=o(57229),_=o(54690),C=o(63718),b=o(14070);function w(e){const{onClose:t}=e,[o,u]=(0,s.useState)((0,y.getCookieSetting)(y.CookieSettings.Analytics)),[d,m]=(0,s.useState)((0,y.getCookieSetting)(y.CookieSettings.Advertising));(0,s.useEffect)(()=>{(0,f.trackCookies)("click","manage_preferences_button")},[]);const h=async e=>{t&&(e||(0,f.trackCookies)("close","manage_preferences_dialog"),t())},w=e=>{e===v.AnalyticsCookies?(u(e=>!e),o?(0,f.trackCookies)("click","performance_cookies_off"):(0, +f.trackCookies)("click","performance_cookies_on")):(m(e=>!e),d?(0,f.trackCookies)("click","ad_cookies_off"):(0,f.trackCookies)("click","ad_cookies_on"))},S=e=>{e===p.SavePreferences?((0,y.setCookieSetting)(y.CookieSettings.Analytics,o),(0,y.setCookieSetting)(y.CookieSettings.Advertising,d),(0,f.trackCookies)("click","save_preferences")):((0,y.setCookieSetting)(y.CookieSettings.Analytics,!0),(0,y.setCookieSetting)(y.CookieSettings.Advertising,!0),(0,f.trackCookies)("click","allow_all")),(0,k.checkCookiePolicy)(k.bannerPrivacyPreferenceKey)||(0,k.onAccept)(),h(!0)},L=(0,n.t)("Manage your privacy preferences"),x=(0,n.t)("More information about Cookies {lastWord}Policy").split(/{lastWord}/);return s.createElement(i.CustomBehaviourContext.Provider,{value:window.TradingView.onChartPage?i.presetPlatform:i.presetDefault},s.createElement(_.ResponsiveContainer,{initialBreakPoint:"base"},s.createElement("div",{className:b.privacyPreferenceDialog,role:"dialog","aria-labelledby":(0,a.createDomId)(L)},s.createElement("div",{className:b.privacyPreference},s.createElement(g,{onClose:()=>h(),className:b.close,ariaLabel:(0,n.t)("Close")}),s.createElement("h2",{id:(0,a.createDomId)(L),className:b.title},L),function(){const e={[v.NecessaryCookies]:{title:(0,n.t)("Necessary cookies"),content:(0,n.t)("These cookies are used to provide users with services available through a Site and to use some of its features, such as the ability to log-in and access secure areas, provide pop-up notices, and accept language from sign-up forms. These cookies are essential for using and navigating a Site. Without them, basic functions of our Site would not work. Because these cookies are strictly necessary to deliver our Site's essential services, you cannot refuse them.")},[v.AnalyticsCookies]:{title:(0,n.t)("Performance/Analytics cookies"),content:(0,n.t)("These cookies are used to recognize and count the number of Site visitors, gather statistics regarding how visitors move around the Site (including number of page views and the amount time spent on each page) and for conversion tracking and click hotspots. This helps us improve the way our Site works and general user experience. For example, these cookies allow us to ensure that users are able to find what they need easily.")},[v.AdvertisingCookies]:{title:(0,n.t)("Advertising cookies"),content:(0,n.t)("These cookies are used to show advertising that is relevant to you.")}},t=[];return Object.keys(e).map(n=>{const i=e[n],c=n===v.AnalyticsCookies?o:d;t.push(s.createElement("div",{key:n,className:b.availableCookieElement},s.createElement("div",{className:b.cookieTitle},s.createElement(r.Switch,{id:(0,a.createDomId)(n),role:"switch",name:n,disabled:n===v.NecessaryCookies,defaultChecked:n===v.NecessaryCookies||void 0,checked:n!==v.NecessaryCookies?c:void 0,onChange:n!==v.NecessaryCookies?()=>w(n):void 0,"aria-checked":n===v.NecessaryCookies||c}),s.createElement("label",{htmlFor:(0,a.createDomId)(n),className:b.switchTitle},i.title)),s.createElement("p",{className:b.cookieContent},i.content)))}),t +}(),s.createElement("a",{href:"/cookies-policy/",target:"_blank",className:b.moreInfoLink,onClick:()=>(0,f.trackCookies)("click","policy_info")},x[0],s.createElement("span",{className:b.nowrap},x[1]," ",s.createElement(l.Icon,{icon:C,className:b.icon,"aria-hidden":!0})))),s.createElement("div",{className:b.btnBlock},s.createElement(c.SquareButton,{className:b.savePreferences,onClick:()=>S(p.SavePreferences),variant:"secondary",size:"medium"},(0,n.t)("Save preferences")),s.createElement(c.SquareButton,{onClick:()=>S(p.AllowAll),size:"medium"},(0,n.t)("Allow all"))))))}!function(e){e.AcceptAll="Accept all",e.AllowAll="Allow all",e.ManagePreferences="Manage preferences",e.SavePreferences="Save preferences"}(p||(p={})),function(e){e.NecessaryCookies="Necessary cookies",e.AnalyticsCookies="Performance/Analytics cookies",e.AdvertisingCookies="Advertising cookies"}(v||(v={}))},36947:(e,t,o)=>{"use strict";o.d(t,{useForceUpdate:()=>s});var n=o(59496);const s=()=>{const[,e]=(0,n.useReducer)((e,t)=>e+1,0);return e}},65718:(e,t,o)=>{"use strict";o.d(t,{Portal:()=>c,PortalContext:()=>l});var n=o(59496),s=o(87995),a=o(9423),i=o(88216),r=o(50655);class c extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,a.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",s.createPortal(n.createElement(l.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}c.contextType=r.SlotContext;const l=n.createContext(null)},50655:(e,t,o)=>{"use strict";o.d(t,{Slot:()=>s,SlotContext:()=>a});var n=o(59496);class s extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const a=n.createContext(null)},65355:(e,t,o)=>{"use strict";var n,s;o.d(t,{ToastAnimationStage:()=>n,ToastPriority:()=>s}),function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove",e[e.None=2]="None"}(n||(n={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(s||(s={}))},63718:e=>{e.exports=''},86240:e=>{"use strict" +;e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","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)"}')}}]); \ No newline at end of file diff --git a/charting_library/bundles/create-dialog.cf7e24e193258f0fb5c7.js b/charting_library/bundles/create-dialog.cf7e24e193258f0fb5c7.js new file mode 100644 index 00000000..1df20a06 --- /dev/null +++ b/charting_library/bundles/create-dialog.cf7e24e193258f0fb5c7.js @@ -0,0 +1,5 @@ +"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4834,9725,4002],{89725:(t,e,i)=>{i.r(e),i.d(e,{createDialog:()=>n});var s=i(976),o=i(77544);function n(t){const e=t.type||"popup";return delete t.type,"modal"===e?new s.TVModal(t):new o.TVPopup(t)}},976:(t,e,i)=>{i.d(e,{TVModal:()=>m});var s=i(28353),o=i(68587),n=i(49483),r=i(43989),h=i(51536),a=i(4185),l=i(85739),d=i(25760),c=i(23127),p=i(25977);let g=[];const u={ajax:{},closingDuration:o.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,s.t)("Error")}
`};class m extends h.TVDialogAbstract{constructor(t={}){if(super({...u,...t}),this.$overlay=c(this.options.overlayTemplate),this.$modalWrap=c(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{g.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||c.noop,e=this.options.ajax.success||!1,i=this.options.ajax.error||c.noop;c.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(e?e(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,e)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),c(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=c.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1, +this._keyboardBinderLockId&&l.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),g=p.without(g,this),this.options.fixBodyState&&(0,r.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),g.length>0&&g[g.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*o.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new a.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},77544:(t,e,i)=>{i.d(e,{TVPopup:()=>g});var s=i(68587),o=i(52150),n=i(51536),r=i(30812),h=i(35190),a=i(25760),l=i(23127);const d=l("body"),c=l(window),p={closeOnClickAtOtherDialogs:!0,draggable:!0,scrollWrap:'
',scrollWrapInner:'
',withScroll:!0};class g extends n.TVDialogAbstract{constructor(t={}){super({...p,...t}),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap(l(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap(l(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new r.SidebarCustomScroll(this.$scrollWrap[0],this.$scrollWrapInner[0]),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const e=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=a.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&(l(document).on("mousedown touchstart",()=>{this._preventClick=!1}),l(document).on("click.tv-popup-"+e,t=>{if(this._preventClick)return;const e=l(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===e.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>l(document).off("click.tv-popup-"+e))),this.on("change:zIndex",()=>{ +this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,s.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=c.height(),e=c.width(),i=this.$el.height(),s=this.$el.width();let o=this.options.position;return o||(o={top:t/2-i/2,left:e/2-s/2}),o.top>t-i&&(o.top=t-i),o.left>e-s&&(o.left=e-s),o.top<10&&(o.top=10),o.left<10&&(o.left=10),o})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,h.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,e)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),c.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,h.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),d.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),c.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),e={};t.bottom>o.mediaState.height-10&&(e.top=o.mediaState.height-10-t.height,e.top<10&&(e.top=10)),t.right>o.mediaState.width-10&&(e.left=o.mediaState.width-10-t.width,e.left<10&&(e.left=10)),(e.top||e.left)&&this.$el.css(e)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),e=this.$scrollWrapInner[0].getBoundingClientRect(),i=this.$scrollWrap[0].getBoundingClientRect();let s=this.options.height&&this.options.heights)&&(s-=t.height-i.height,s<60&&(s=60),this.$scrollWrap.css({height:s})),this.options.withScroll&&this.scroll.resize();const r=s{i.d(e,{breakpoints:()=>s,mobileFirstBreakpoints:()=>o,mobileFirstLegacyBreakpoints:()=>n});const s={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},o={base:0, +"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},n={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},68722:(t,e,i)=>{i.d(e,{getScrollbarWidth:()=>s,matchMediaMinMax:()=>o,setStyle:()=>n,getCSSProperty:()=>r,getCSSPropertyNumericValue:()=>h});const s=(()=>{let t;return()=>{var e;if(void 0===t){const i=document.createElement("div"),s=i.style;s.visibility="hidden",s.width="100px",s.msOverflowStyle="scrollbar",document.body.appendChild(i);const o=i.offsetWidth;i.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",i.appendChild(n);const r=n.offsetWidth;null===(e=i.parentNode)||void 0===e||e.removeChild(i),t=o-r}return t}})();function o(t,e){return e===1/0?window.matchMedia(`(min-width: ${t}px)`):window.matchMedia(`(min-width: ${t}px) and (max-width: ${e}px)`)}function n(t,e,i){null!==t&&t.style.setProperty(e,i)}function r(t,e){return getComputedStyle(t,null).getPropertyValue(e)}function h(t,e){return parseInt(r(t,e))}},52150:(t,e,i)=>{i.d(e,{mediaState:()=>l});var s=i(85459),o=i.n(s),n=i(69677),r=i(74664),h=i(68722);class a extends(o()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=r.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(r.breakpoints).sort(([t,e],[i,s])=>e-s).forEach(([t,e],i,s)=>{let o;if(0!==i){const[,t]=s[i-1];o=t+1}else o=0;const n=(0,h.matchMediaMinMax)(o,e);n.matches&&this._setNewDevice(t),n.addListener(e=>{e.matches&&(this._checkDevice(),this._setNewDevice(t))})}),(0,n.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(t){const e=this.device;this.device=t,this.trigger("changeDevice",[t,e])}}const l=new a},43989:(t,e,i)=>{i.d(e,{setFixedBodyState:()=>r});var s=i(68722);let o=0,n=!1;function r(t){const{body:e}=document,i=e.querySelector(".widgetbar-wrap");if(t&&1==++o){const t=(0,s.getCSSProperty)(e,"overflow"),o=(0,s.getCSSPropertyNumericValue)(e,"padding-right");"hidden"!==t.toLowerCase()&&e.scrollHeight>e.offsetHeight&&((0,s.setStyle)(i,"right",(0,s.getScrollbarWidth)()+"px"),e.style.paddingRight=o+(0,s.getScrollbarWidth)()+"px",n=!0),e.classList.add("i-no-scroll")}else if(!t&&o>0&&0==--o&&(e.classList.remove("i-no-scroll"),n)){(0,s.setStyle)(i,"right","0px");let t=0;0,e.scrollHeight<=e.clientHeight&&(t-=(0,s.getScrollbarWidth)()),e.style.paddingRight=(t<0?0:t)+"px",n=!1}}},88216:(t,e,i)=>{i.d(e,{OverlapManager:()=>n,getRootOverlapManager:()=>h});var s=i(88537);class o{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){ +this._storage=this._storage.filter(e=>t!==e)}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class n{constructor(t=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,i=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach(t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)})}(e,i),this._container=i}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const i=this._windows.get(t);if(void 0!==i)return i;this.registerWindow(t);const s=this._document.createElement("div");if(s.style.position=e.position,s.style.zIndex=this._index.toString(),s.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(s);else if(e.index<=0)this._container.insertBefore(s,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(s,t)}}else"reverse"===e.direction?this._container.insertBefore(s,this._container.firstChild):this._container.appendChild(s);return this._windows.set(t,s),++this._index,s}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")}moveToTop(t){if(this.getZindex(t)!==this._index){this.ensureWindow(t).style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const r=new WeakMap;function h(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return(0,s.ensureDefined)(r.get(e));{const e=new n(t),i=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return r.set(i,e),e.setContainer(i),t.body.appendChild(i),e}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/currency-label-menu.4cf6e944a1702031903f.js b/charting_library/bundles/currency-label-menu.4cf6e944a1702031903f.js deleted file mode 100644 index 95b6e9ed..00000000 --- a/charting_library/bundles/currency-label-menu.4cf6e944a1702031903f.js +++ /dev/null @@ -1,10 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2704],{50789:e=>{e.exports={summary:"summary-hk3Mmxts",hovered:"hovered-hk3Mmxts",caret:"caret-hk3Mmxts"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},17147:e=>{e.exports={scrollWrap:"scrollWrap-wu0oD0zz"}},75193:e=>{e.exports={container:"container-bD7VSobf",separator:"separator-bD7VSobf",section:"section-bD7VSobf"}},61936:e=>{e.exports={action:"action-cwmjKW8F",hovered:"hovered-cwmjKW8F",active:"active-cwmjKW8F",label:"label-cwmjKW8F",description:"description-cwmjKW8F",selected:"selected-cwmjKW8F",small:"small-cwmjKW8F",withDescription:"withDescription-cwmjKW8F",action__favoriteIcon:"action__favoriteIcon-cwmjKW8F",action__favoriteIcon_active:"action__favoriteIcon_active-cwmjKW8F",labelAndDescription:"labelAndDescription-cwmjKW8F",icon:"icon-cwmjKW8F",fakeIcon:"fakeIcon-cwmjKW8F",highlighted:"highlighted-cwmjKW8F"}},94953:e=>{e.exports={menu:"menu-CW6VX2O6",withDescriptions:"withDescriptions-CW6VX2O6",header:"header-CW6VX2O6",title:"title-CW6VX2O6",container:"container-CW6VX2O6",icon:"icon-CW6VX2O6",clear:"clear-CW6VX2O6",input:"input-CW6VX2O6",highlighted:"highlighted-CW6VX2O6",active:"active-CW6VX2O6",section:"section-CW6VX2O6"}},71091:()=>{},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,n)=>{"use strict";function o(e){return r(e,s)}function i(e){return r(e,a)}function r(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>o,filterAriaProps:()=>i,filterProps:()=>r,isDataAttribute:()=>s,isAriaAttribute:()=>a})},26005:(e,t,n)=>{"use strict";n.d(t,{CollapsibleSection:()=>c});var o=n(59496),i=n(97754),r=n.n(i),s=n(10381),a=n(50789);function c(e){return o.createElement(o.Fragment,null,o.createElement("div",{className:r()(e.className,a.summary),onClick:function(){ -e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,o.createElement(s.ToolWidgetCaret,{className:a.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>o,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>s,getPopupPositioner:()=>l});var o,i,r,s,a=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(s||(s={}));const c={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:s.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function l(e,t){return(n,l)=>{const d=(0,a.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=c.verticalAttachEdge,verticalDropDirection:h=c.verticalDropDirection,horizontalAttachEdge:m=c.horizontalAttachEdge,horizontalDropDirection:p=c.horizontalDropDirection,horizontalMargin:v=c.horizontalMargin,verticalMargin:g=c.verticalMargin,matchButtonAndListboxWidths:f=c.matchButtonAndListboxWidths}=t,C=u===o.Top?-1*g:g,E=m===i.Right?d.right:d.left,w=u===o.Top?d.top:d.bottom,x={x:E-(p===s.FromRightToLeft?n:0)+v,y:w-(h===r.FromBottomToTop?l:0)+C};return f&&(x.overrideWidth=d.width),x}}},11507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{currencyActions:()=>a});var o=n(88537),i=n(28353),r=n(82629),s=n(19868);function a(e,t,n){if(null===t||t.readOnly)return[];const a=[],c=t=>{e.setPriceScaleCurrency(n,t)},l=t.selectedCurrency,d=t.originalCurrencies,u=t.baseCurrencies,h=t.displayedValues,m=s.favoriteCurrencyUnitConversionService.get().currencies,p={id:"first_section",actions:[]};if(d.size>1){const e=(0,r.createAction)("Mixed",(0,i.t)("Mixed"),void 0,void 0,null===t.selectedCurrency,()=>c(null));p.actions.push(e)}const v=e.model().availableCurrencies();if(null!==l){const e=(0,o.ensureNotNull)(v.item(l)),t=(0,r.createAction)(l,(0,o.ensureDefined)(h.get(l)),e.logoUrl,e.description,!0,()=>{},m.has(l),()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",l));p.actions.push(t)}const g=v.filterConvertible(u,e=>e!==l&&d.has(e));for(const e of g){const n=(0,o.ensureNotNull)(v.item(e.id));p.actions.push((0,r.createAction)(e.id,e.code,n.logoUrl,n.description,t.selectedCurrency===e.id,()=>c(e.id),m.has(e.id),()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",e.id)))}p.actions.length>0&&a.push(p);const f=v.filterConvertible(u,e=>e!==l&&!d.has(e)),C=[],E=[];for(const e of f){const n=(0,o.ensureNotNull)(v.item(e.id)),i=m.has(e.id),a=(0,r.createAction)(e.id,e.code,n.logoUrl,n.description,t.selectedCurrency===e.id,()=>c(e.id),i,()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",e.id));i?C.push(a):E.push(a)}return(E.length>0||C.length>0)&&a.push({id:"second_section",actions:C.concat(E)}),a}}, -19868:(e,t,n)=>{"use strict";n.d(t,{favoriteCurrencyUnitConversionService:()=>a});var o=n(56840),i=n(21097),r=n(9127);class s extends r.AbstractJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CURRENCY_UNIT_CONVERSION_CHANGED","currencyUnitConversion.favorites",{currencies:new Set,units:new Set})}add(e,t){const n=this.get();n[e].add(t),this.set(n)}remove(e,t){const n=this.get();n[e].delete(t)&&this.set(n)}toggle(e,t){this.get()[e].has(t)?this.remove(e,t):this.add(e,t)}_serialize(e){return[[...e.currencies],[...e.units]]}_deserialize(e){return{currencies:new Set(e[0]),units:new Set(e[1])}}}const a=new s(i.TVXWindowEvents,o)},53997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{unitActions:()=>a});var o=n(88537),i=n(28353),r=n(82629),s=n(19868);function a(e,t,n){if(null===t||0===t.availableGroups.size)return[];const a=[],c=t=>{e.setPriceScaleUnit(n,t)},l=t.selectedUnit,d=t.originalUnits,u=t.names,h=t.descriptions,m=s.favoriteCurrencyUnitConversionService.get().units,p={actions:[],id:"first_section"};if(d.size>1){const e=(0,r.createAction)("Mixed",(0,i.t)("Mixed"),void 0,void 0,null===t.selectedUnit,()=>c(null));p.actions.push(e)}const v=e.model().availableUnits();if(null!==l){const e=(0,r.createAction)(l,(0,o.ensureDefined)(u.get(l)),void 0,(0,o.ensureDefined)(h.get(l)),!0,()=>{},m.has(l),()=>s.favoriteCurrencyUnitConversionService.toggle("units",l));p.actions.push(e)}const g=v.unitsByGroups(t.availableGroups),f=[],C=[];for(const e of g)for(const t of e.units){const e=m.has(t.id);if(t.id===l||!e&&!d.has(t.id))continue;const n=(0,r.createAction)(t.id,t.name,void 0,t.description,!1,()=>c(t.id),e,()=>s.favoriteCurrencyUnitConversionService.toggle("units",t.id));e?C.push(n):f.push(n)}(f.length>0||C.length>0)&&p.actions.push(...C.sort((e,t)=>e.label.toLowerCase().localeCompare(t.label.toLowerCase())),...f),p.actions.length>0&&a.push(p);const E=l&&v.unitGroupById(l);if(null!==E)for(const e of g){if(e.name!==E)continue;const t=[];for(const n of e.units)n.id===l||d.has(n.id)||m.has(n.id)||t.push((0,r.createAction)(n.id,n.name,void 0,n.description,!1,()=>c(n.id),!1,()=>s.favoriteCurrencyUnitConversionService.toggle("units",n.id)));t.length>0&&a.push({id:e.name,name:e.name,actions:t})}for(const e of g){if(e.name===E)continue;const t=[];for(const n of e.units)n.id===l||d.has(n.id)||m.has(n.id)||t.push((0,r.createAction)(n.id,n.name,void 0,n.description,!1,()=>c(n.id),!1,()=>s.favoriteCurrencyUnitConversionService.toggle("units",n.id)));t.length>0&&a.push({id:e.name,name:e.name,actions:t})}return a}},82629:(e,t,n)=>{"use strict";function o(e,t,n,o,i,r,s,a){return{id:e,label:t,icon:n,description:o,isActive:i,onClick:r,isFavorite:s,onFavoriteClick:a}}n.d(t,{createAction:()=>o})},39640:(e,t,n)=>{"use strict";function o(e,t,n,o,i){function r(i){if(e>i.timeStamp)return;const r=i.target;void 0!==n&&null!==t&&null!==r&&r.ownerDocument===o&&(t.contains(r)||n(i))}return i.click&&o.addEventListener("click",r,!1),i.mouseDown&&o.addEventListener("mousedown",r,!1),i.touchEnd&&o.addEventListener("touchend",r,!1), -i.touchStart&&o.addEventListener("touchstart",r,!1),()=>{o.removeEventListener("click",r,!1),o.removeEventListener("mousedown",r,!1),o.removeEventListener("touchend",r,!1),o.removeEventListener("touchstart",r,!1)}}n.d(t,{addOutsideEventListener:()=>o})},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>i});var o=n(96746);const i={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>D});var o=n(59496),i=n(88537);var r=n(97754),s=n.n(r),a=n(68335),c=n(35749),l=n(63016),d=n(1109),u=n(24437),h=n(90692),m=n(95711),p=n(52092),v=n(76422),g=n(9745);const f=o.createContext({setHideClose:()=>{}});var C=n(37257),E=n(91441);function w(e){const{title:t,subtitle:n,showCloseIcon:i=!0,onClose:r,renderBefore:a,renderAfter:c,draggable:l,className:d,unsetAlign:u}=e,[h,m]=(0,o.useState)(!1);return o.createElement(f.Provider,{value:{setHideClose:m}},o.createElement("div",{className:s()(E.container,d,(n||u)&&E.unsetAlign)},a,o.createElement("div",{"data-dragg-area":l,className:E.title},o.createElement("div",{className:E.ellipsis},t),n&&o.createElement("div",{className:s()(E.ellipsis,E.subtitle)},n)),c,i&&!h&&o.createElement(g.Icon,{className:E.close,icon:C,onClick:r,"data-name":"close","data-role":"button"})))}var x=n(67179);const y={vertical:20},b={vertical:0};class D extends o.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(u.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,a.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,o=(0,i.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,c.isTextEditingField)(n))return void o.focus();if(o.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))} -componentWillUnmount(){var e,t;v.unsubscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,i.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:i,title:r,dataName:a,onClickOutside:c,additionalElementPos:p,additionalHeaderElement:v,backdrop:g,shouldForceFocus:f=!0,showSeparator:C,subtitle:E,draggable:D=!0,fullScreen:S=!1,showCloseIcon:_=!0,rounded:N=!0,isAnimationEnabled:k,growPoint:A,dialogTooltip:O,unsetHeaderAlign:F,onDragStart:M,dataDialogName:z}=this.props,L="after"!==p?v:void 0,I="after"===p?v:void 0,U="string"==typeof r?r:z||"";return o.createElement(h.MatchMedia,{rule:u.DialogBreakpoints.SmallHeight},p=>o.createElement(h.MatchMedia,{rule:u.DialogBreakpoints.TabletSmall},u=>o.createElement(l.PopupDialog,{rounded:!(u||S)&&N,className:s()(x.dialog,e),isOpened:i,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:u||S,guard:p?b:y,boundByScreen:u||S,shouldForceFocus:f,backdrop:g,draggable:D,isAnimationEnabled:k,growPoint:A,name:this.props.dataName,dialogTooltip:O,onDragStart:M},o.createElement("div",{className:s()(x.wrapper,t),"data-name":a,"data-dialog-name":U},void 0!==r&&o.createElement(w,{draggable:D&&!(u||S),onClose:this._handleClose,renderAfter:I,renderBefore:L,subtitle:E,title:r,showCloseIcon:_,className:n,unsetAlign:F}),C&&o.createElement(d.Separator,{className:x.separator}),o.createElement(m.PopupContext.Consumer,null,e=>this._renderChildren(e,u||S))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var o=n(59496),i=n(97754),r=n.n(i),s=n(28353),a=n(9745),c=n(5639),l=n(28712);function d(e){const{children:t,renderInput:n,onCancel:i,...d}=e;return o.createElement("div",{className:l.container},o.createElement("div",{className:r()(l.inputContainer,i&&l.withCancel)},n||o.createElement(u,{...d})),t,o.createElement(a.Icon,{className:l.icon,icon:c}),i&&o.createElement("div",{className:l.cancel,onClick:i},(0,s.t)("Cancel")))}function u(e){const{className:t,reference:n,value:i,onChange:s,onFocus:a,onBlur:c,onKeyDown:d,onSelect:u,placeholder:h,...m}=e;return o.createElement("input",{...m,ref:n,type:"text",className:r()(t,l.input),autoComplete:"off","data-role":"search",placeholder:h,value:i,onChange:s,onFocus:a,onBlur:c,onSelect:u,onKeyDown:d})}},71834:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnitConversionRenderer:()=>P});var o=n(59496),i=n(87995),r=n(19868),s=n(90692),a=n(19785),c=n(68335);var l=n(24437),d=n(40233),u=n(97754),h=n.n(u),m=n(28353),p=n(9745),v=n(50628),g=n(27317),f=n(40173),C=n(51613),E=n(26005),w=n(36189);n(71091);function x(e){var t,n;const i=(r=e.size,s=e.className,u("tv-circle-logo","tv-circle-logo--"+r,s));var r,s -;const a=null!==(n=null!==(t=e.alt)&&void 0!==t?t:e.title)&&void 0!==n?n:"";return function(e){return"logoUrl"in e&&void 0!==e.logoUrl&&0!==e.logoUrl.length}(e)?o.createElement("img",{className:i,src:e.logoUrl,alt:a,title:e.title,loading:e.loading}):o.createElement("span",{className:i,title:e.title},e.placeholderLetter)}var y=n(24637),b=n(61936);const D=o.memo((function(e){const{label:t,icon:n,rules:i,search:r,description:s,onClick:a,onClose:c,isActive:l,isSmallSize:d,isSelected:u,selectedRef:m,hasDescriptions:p,hasIcons:v,isFavorite:g,onFavoriteClick:f}=e,C=(0,o.useCallback)(()=>{a(),c&&c()},[a,c]),E=d&&b.small;return o.createElement("div",{className:h()(b.action,l&&b.active,E,p&&b.withDescription,u&&b.selected),onClick:C,ref:m},v&&(void 0!==n?o.createElement(x,{logoUrl:n,size:p?"xsmall":"xxsmall",className:h()(b.icon,E)}):o.createElement("span",{className:h()(b.fakeIcon,E)})),o.createElement("div",{className:h()(b.labelAndDescription,E)},o.createElement("span",{className:h()(b.label,E)},D(t)),p&&o.createElement("br",null),p&&o.createElement("span",{className:h()(b.description,E)},s?D(s):"")),void 0!==g&&o.createElement("div",{className:h()(b.action__favoriteIcon,g&&b.action__favoriteIcon_active)},o.createElement(w.FavoriteButton,{isActive:l,isFilled:g,onClick:function(e){e.stopPropagation(),null==f||f()}})));function D(e){return o.createElement(y.HighlightedText,{text:e,rules:i,queryString:r,className:h()(l&&b.highlighted,l&&b.active)})}}),(e,t)=>Object.keys(t).filter(e=>!["onClick","onClose","onFavoriteClick"].includes(e)).every(n=>t[n]===e[n]));var S=n(21031),_=n(74471),N=n(94953),k=n(17147);const A=(0,f.mergeThemes)(g.DEFAULT_MENU_THEME,k);function O(e){const{title:t,sections:n,onClose:i,selectedId:r,selectedRef:s,search:a,setSearch:c,items:l,rules:d,searchRef:u,hasDescriptions:g,hasIcons:f,...w}=e,[x,y]=(0,o.useState)(()=>n.reduce((e,t,n)=>(t.name&&(e[t.id]=!0),e),{}));function b(e){const{id:t,...n}=e;return o.createElement(D,{key:t,rules:d,search:a,onClose:i,isSmallSize:!0,isSelected:t===r,selectedRef:t===r?s:void 0,hasDescriptions:g,hasIcons:f,...n})}return o.createElement(v.PopupMenu,{...w,onClose:i,className:h()(N.menu,g&&N.withDescriptions),theme:A,maxHeight:g?313:280,noMomentumBasedScroll:!0,isOpened:!0,onOpen:function(){var e;null===(e=u.current)||void 0===e||e.focus()}},o.createElement("div",{className:N.header},o.createElement("div",{className:N.title},t),o.createElement("div",{className:N.container},o.createElement(p.Icon,{icon:S,className:N.icon}),o.createElement("input",{size:1,type:"text",className:N.input,placeholder:(0,m.t)("Search"),autoComplete:"off","data-role":"search",onChange:function(e){c(e.target.value)},value:a,ref:u}),Boolean(a)&&o.createElement(p.Icon,{icon:_,className:N.clear,onClick:function(){c("")}}))),a?l.map(b):n.map((e,t)=>o.createElement(o.Fragment,{key:e.id},Boolean(t)&&o.createElement(C.PopupMenuSeparator,null),e.name?o.createElement(E.CollapsibleSection,{summary:e.name,className:N.section,open:x[e.id],onStateChange:t=>y({...x,[e.id]:t})},e.actions.map(b)):e.actions.map(b)))) -}var F=n(85457),M=n(69654),z=n(75193);function L(e){const{title:t,onClose:n,sections:i,selectedId:r,selectedRef:s,search:a,setSearch:c,items:l,rules:d,searchRef:u,hasIcons:h,hasDescriptions:p}=e;return o.createElement(F.AdaptivePopupDialog,{title:t,onClose:n,render:function(){return o.createElement(o.Fragment,null,o.createElement(M.DialogSearch,{placeholder:(0,m.t)("Search"),onChange:v,reference:u}),o.createElement("div",{className:z.container},a?l.map(e=>{const{id:t,isActive:i,...c}=e;return o.createElement(D,{key:t,isActive:i,onClose:n,rules:d,search:a,isSelected:t===r,selectedRef:t===r?s:void 0,hasIcons:h,hasDescriptions:p,...c})}):i.map((e,t)=>o.createElement(o.Fragment,{key:e.id},e.name&&o.createElement("div",{className:z.section},e.name),e.actions.map((c,l)=>{const{id:u,...m}=c,v=l===e.actions.length-1,g=t===i.length-1;return o.createElement(o.Fragment,{key:u},o.createElement(D,{rules:d,search:a,onClose:n,isSelected:u===r,selectedRef:u===r?s:void 0,hasIcons:h,hasDescriptions:p,...m}),!g&&v&&o.createElement("div",{className:z.separator}))})))))},dataName:"unit-conversion-dialog",draggable:!1,fullScreen:!0,isOpened:!0});function v(e){c(e.target.value)}}const I={horizontalAttachEdge:d.HorizontalAttachEdge.Right,horizontalDropDirection:d.HorizontalDropDirection.FromRightToLeft};function U(e){const{element:t,...n}=e,[i,r]=(0,o.useState)(E()),[u,h]=(0,o.useState)(""),m=(0,o.useRef)(null),p=(0,o.useRef)(null),v=(0,o.useMemo)(()=>(0,a.createRegExpList)(u),[u]),{activeIdx:g,setActiveIdx:f}=function(e,t,n,i="keydown"){const[r,s]=(0,o.useState)(-1);return(0,o.useEffect)(()=>{if(!e)return;const n=e=>{switch((0,c.hashFromEvent)(e)){case 40:if(r===t.length-1)break;e.preventDefault(),s(r+1);break;case 38:if(r<=0)break;e.preventDefault(),s(r-1);break}};return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}},[e,r,t]),(0,o.useEffect)(()=>{if(!e||!n)return;const o=e=>{var o;e.repeat||13===(0,c.hashFromEvent)(e)&&n(null!==(o=t[r])&&void 0!==o?o:null,e)};return e.addEventListener(i,o),()=>{e.removeEventListener(i,o)}},[e,r,t,n,i]),{activeIdx:r,setActiveIdx:s}}(m.current,i,(function(e){e&&(e.onClick(),n.onClose())}));!function(e,t=[]){(0,o.useEffect)(()=>{e(-1)},[...t])}(f,[i]),function(e,t){(0,o.useEffect)(()=>{var n;t>=0&&(null===(n=e.current)||void 0===n||n.scrollIntoView({block:"nearest"}))},[t])}(p,g),(0,o.useEffect)(()=>{r(u?function(e,t,n){const o=e.reduce((e,t)=>[...e,...t.actions],[]);return(0,a.rankedSearch)({data:o,rules:n,queryString:t,primaryKey:"label",secondaryKey:"description"})}(n.sections,u,v):E())},[u,n.sections,v]);const C=(0,o.useMemo)(()=>({selectedId:Boolean(g>=0&&i[g])?i[g].id:"",selectedRef:p,search:u,setSearch:h,searchRef:m,items:i,rules:v,hasIcons:i.some(e=>void 0!==e.icon),hasDescriptions:i.some(e=>void 0!==e.description)}),[g,p,u,h,m,i,v]);return o.createElement(s.MatchMedia,{rule:l.DialogBreakpoints.TabletSmall},e=>e?o.createElement(L,{...n,...C}):o.createElement(O,{...n,...C,position:(0,d.getPopupPositioner)(t,I),doNotCloseOn:t}));function E(){ -return n.sections.reduce((e,t)=>(e.push(...t.actions),e),[])}}class P{constructor(e,t,n){this._rootElem=document.createElement("div"),this.close=()=>{null!==this._rootElem&&(i.unmountComponentAtNode(this._rootElem),r.favoriteCurrencyUnitConversionService.getOnChange().unsubscribe(this,this._render),this._rootElem=null)},this.isOpened=()=>null!==this._rootElem,this._title=e,this._element=t,this._sectionsGetter=n,this._render(),r.favoriteCurrencyUnitConversionService.getOnChange().subscribe(this,this._render)}_render(){const e={title:this._title,sections:this._sectionsGetter(),element:this._element,onClose:this.close};i.render(o.createElement(U,{...e}),this._rootElem)}}},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var o=n(28353),i=n(59496),r=n(97754),s=n(9745),a=n(20614),c=n(55783),l=n(16842);const d={add:(0,o.t)("Add to favorites"),remove:(0,o.t)("Remove from favorites")};function u(e){const{className:t,isFilled:n,isActive:o,onClick:u,...h}=e;return i.createElement(s.Icon,{...h,className:r(l.favorite,"apply-common-tooltip",n&&l.checked,o&&l.active,t),icon:n?a:c,onClick:u,title:n?d.remove:d.add})}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>i,createRegExpList:()=>r,getHighlightedChars:()=>s});var o=n(80643);function i(e){const{data:t,rules:n,queryString:i,isPreventedFromFiltering:r,primaryKey:s,secondaryKey:a=s,optionalPrimaryKey:c}=e;return t.map(e=>{const t=c&&e[c]?e[c]:e[s],r=e[a];let l,d=0;return n.forEach(e=>{var n,s,a,c;const{re:u,fullMatch:h}=e;return u.lastIndex=0,t&&t.toLowerCase()===i.toLowerCase()?(d=3,void(l=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,o.isString)(t)&&h.test(t)?(d=2,void(l=null===(s=t.match(h))||void 0===s?void 0:s.index)):(0,o.isString)(r)&&h.test(r)?(d=1,void(l=null===(a=r.match(h))||void 0===a?void 0:a.index)):void((0,o.isString)(r)&&u.test(r)&&(d=1,l=null===(c=r.match(u))||void 0===c?void 0:c.index))}),{matchPriority:d,matchIndex:l,item:e}}).filter(e=>r||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function r(e,t){const n=[],o=e.toLowerCase(),i=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+a(e):a(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${a(e)})`,"i"),re:new RegExp("^"+i,"i"),reserveRe:new RegExp(i,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(o)&&n.push({fullMatch:t[o],re:t[o],fuzzyHighlight:!1}),n}function s(e,t,n){const o=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:i,reserveRe:r}=e;n.lastIndex=0,i.lastIndex=0;const s=n.exec(t),a=s||i.exec(t)||r&&r.exec(t);if(e.fuzzyHighlight=!s,a)if(e.fuzzyHighlight){let e=a.index;for(let t=1;t{"use strict";n.d(t,{HighlightedText:()=>a});var o=n(59496),i=n(97754),r=n(19785),s=n(81524);function a(e){const{queryString:t,rules:n,text:a,className:c}=e,l=(0,o.useMemo)(()=>(0,r.getHighlightedChars)(t,a,n),[t,n,a]);return o.createElement(o.Fragment,null,l.length?a.split("").map((e,t)=>o.createElement(o.Fragment,{key:t},l[t]?o.createElement("span",{className:i(s.highlighted,c)},e):o.createElement("span",null,e))):a)}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var o=n(59496),i=n(97754),r=n(91626);function s(e){return o.createElement("div",{className:i(r.separator,e.className)})}},51613:(e,t,n)=>{"use strict";n.d(t,{PopupMenuSeparator:()=>a});var o=n(59496),i=n(97754),r=n.n(i),s=n(524);function a(e){const{size:t="normal",className:n}=e;return o.createElement("div",{className:r()(s.separator,"small"===t&&s.small,"normal"===t&&s.normal,"large"===t&&s.large,n)})}},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>l});var o=n(59496),i=n(87995),r=n(65718),s=n(27317),a=n(29197),c=n(58095);function l(e){const{controller:t,children:n,isOpened:l,closeOnClickOutside:d=!0,doNotCloseOn:u,onClickOutside:h,onClose:m,...p}=e,v=(0,o.useContext)(a.CloseDelegateContext),g=(0,c.useOutsideEvent)({handler:function(e){h&&h(e);if(!d)return;if(u&&e.target instanceof Node){const t=i.findDOMNode(u);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return l?o.createElement(r.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ref:g,style:{pointerEvents:"auto"}},o.createElement(s.Menu,{...p,onClose:m,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:v,ref:t},n))):null}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>c});var o=n(59496),i=n(97754),r=n(9745),s=n(40367),a=n(81268);function c(e){const{dropped:t,className:n}=e;return o.createElement(r.Icon,{className:i(n,s.icon,{[s.dropped]:t}),icon:a})}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const r=n[i]||i;r in e&&(o[i]=[e[r],t[i]].join(" "))}return o}function i(e,t,n={}){return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>i})},81268:e=>{e.exports=''},37257:e=>{e.exports=''},74471:e=>{e.exports=''},21031:e=>{ -e.exports=''},5639:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/currency-label-menu.ccab0620dccaa2883306.js b/charting_library/bundles/currency-label-menu.ccab0620dccaa2883306.js new file mode 100644 index 00000000..3a997ab0 --- /dev/null +++ b/charting_library/bundles/currency-label-menu.ccab0620dccaa2883306.js @@ -0,0 +1,9 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2704],{50789:e=>{e.exports={summary:"summary-hk3Mmxts",hovered:"hovered-hk3Mmxts",caret:"caret-hk3Mmxts"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},17147:e=>{e.exports={scrollWrap:"scrollWrap-wu0oD0zz"}},75193:e=>{e.exports={container:"container-bD7VSobf",separator:"separator-bD7VSobf",section:"section-bD7VSobf"}},61936:e=>{e.exports={action:"action-cwmjKW8F",hovered:"hovered-cwmjKW8F",active:"active-cwmjKW8F",label:"label-cwmjKW8F",description:"description-cwmjKW8F",selected:"selected-cwmjKW8F",small:"small-cwmjKW8F",withDescription:"withDescription-cwmjKW8F",action__favoriteIcon:"action__favoriteIcon-cwmjKW8F",action__favoriteIcon_active:"action__favoriteIcon_active-cwmjKW8F",labelAndDescription:"labelAndDescription-cwmjKW8F",icon:"icon-cwmjKW8F",fakeIcon:"fakeIcon-cwmjKW8F",highlighted:"highlighted-cwmjKW8F"}},94953:e=>{e.exports={menu:"menu-CW6VX2O6",withDescriptions:"withDescriptions-CW6VX2O6",header:"header-CW6VX2O6",title:"title-CW6VX2O6",container:"container-CW6VX2O6",icon:"icon-CW6VX2O6",clear:"clear-CW6VX2O6",input:"input-CW6VX2O6",highlighted:"highlighted-CW6VX2O6",active:"active-CW6VX2O6",section:"section-CW6VX2O6"}},71091:()=>{},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},40367:e=>{e.exports={icon:"icon-AL2odtws",dropped:"dropped-AL2odtws"}},90186:(e,t,n)=>{"use strict";function i(e){return o(e,s)}function r(e){return o(e,a)}function o(e,t){const n=Object.entries(e).filter(t),i={};for(const[e,t]of n)i[e]=t;return i}function s(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>i,filterAriaProps:()=>r,filterProps:()=>o,isDataAttribute:()=>s,isAriaAttribute:()=>a})},26005:(e,t,n)=>{"use strict";n.d(t,{CollapsibleSection:()=>c});var i=n(59496),r=n(97754),o=n.n(r),s=n(10381),a=n(50789);function c(e){return i.createElement(i.Fragment,null,i.createElement("div",{className:o()(e.className,a.summary),onClick:function(){ +e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,i.createElement(s.ToolWidgetCaret,{className:a.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>i,HorizontalAttachEdge:()=>r,VerticalDropDirection:()=>o,HorizontalDropDirection:()=>s,getPopupPositioner:()=>l});var i,r,o,s,a=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(i||(i={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(r||(r={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(o||(o={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(s||(s={}));const c={verticalAttachEdge:i.Bottom,horizontalAttachEdge:r.Left,verticalDropDirection:o.FromTopToBottom,horizontalDropDirection:s.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function l(e,t){return(n,l)=>{const d=(0,a.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=c.verticalAttachEdge,verticalDropDirection:h=c.verticalDropDirection,horizontalAttachEdge:m=c.horizontalAttachEdge,horizontalDropDirection:p=c.horizontalDropDirection,horizontalMargin:v=c.horizontalMargin,verticalMargin:g=c.verticalMargin,matchButtonAndListboxWidths:f=c.matchButtonAndListboxWidths}=t,C=u===i.Top?-1*g:g,E=m===r.Right?d.right:d.left,w=u===i.Top?d.top:d.bottom,x={x:E-(p===s.FromRightToLeft?n:0)+v,y:w-(h===o.FromBottomToTop?l:0)+C};return f&&(x.overrideWidth=d.width),x}}},11507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{currencyActions:()=>a});var i=n(88537),r=n(28353),o=n(82629),s=n(19868);function a(e,t,n){if(null===t||t.readOnly)return[];const a=[],c=t=>{e.setPriceScaleCurrency(n,t)},l=t.selectedCurrency,d=t.originalCurrencies,u=t.baseCurrencies,h=t.displayedValues,m=s.favoriteCurrencyUnitConversionService.get().currencies,p={id:"first_section",actions:[]};if(d.size>1){const e=(0,o.createAction)("Mixed",(0,r.t)("Mixed"),void 0,void 0,null===t.selectedCurrency,()=>c(null));p.actions.push(e)}const v=e.model().availableCurrencies();if(null!==l){const e=(0,i.ensureNotNull)(v.item(l)),t=(0,o.createAction)(l,(0,i.ensureDefined)(h.get(l)),e.logoUrl,e.description,!0,()=>{},m.has(l),()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",l));p.actions.push(t)}const g=v.filterConvertible(u,e=>e!==l&&d.has(e));for(const e of g){const n=(0,i.ensureNotNull)(v.item(e.id));p.actions.push((0,o.createAction)(e.id,e.code,n.logoUrl,n.description,t.selectedCurrency===e.id,()=>c(e.id),m.has(e.id),()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",e.id)))}p.actions.length>0&&a.push(p);const f=v.filterConvertible(u,e=>e!==l&&!d.has(e)),C=[],E=[];for(const e of f){const n=(0,i.ensureNotNull)(v.item(e.id)),r=m.has(e.id),a=(0,o.createAction)(e.id,e.code,n.logoUrl,n.description,t.selectedCurrency===e.id,()=>c(e.id),r,()=>s.favoriteCurrencyUnitConversionService.toggle("currencies",e.id));r?C.push(a):E.push(a)}return(E.length>0||C.length>0)&&a.push({id:"second_section",actions:C.concat(E)}),a}}, +19868:(e,t,n)=>{"use strict";n.d(t,{favoriteCurrencyUnitConversionService:()=>a});var i=n(56840),r=n(21097),o=n(9127);class s extends o.AbstractJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CURRENCY_UNIT_CONVERSION_CHANGED","currencyUnitConversion.favorites",{currencies:new Set,units:new Set})}add(e,t){const n=this.get();n[e].add(t),this.set(n)}remove(e,t){const n=this.get();n[e].delete(t)&&this.set(n)}toggle(e,t){this.get()[e].has(t)?this.remove(e,t):this.add(e,t)}_serialize(e){return[[...e.currencies],[...e.units]]}_deserialize(e){return{currencies:new Set(e[0]),units:new Set(e[1])}}}const a=new s(r.TVXWindowEvents,i)},53997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{unitActions:()=>a});var i=n(88537),r=n(28353),o=n(82629),s=n(19868);function a(e,t,n){if(null===t||0===t.availableGroups.size)return[];const a=[],c=t=>{e.setPriceScaleUnit(n,t)},l=t.selectedUnit,d=t.originalUnits,u=t.names,h=t.descriptions,m=s.favoriteCurrencyUnitConversionService.get().units,p={actions:[],id:"first_section"};if(d.size>1){const e=(0,o.createAction)("Mixed",(0,r.t)("Mixed"),void 0,void 0,null===t.selectedUnit,()=>c(null));p.actions.push(e)}const v=e.model().availableUnits();if(null!==l){const e=(0,o.createAction)(l,(0,i.ensureDefined)(u.get(l)),void 0,(0,i.ensureDefined)(h.get(l)),!0,()=>{},m.has(l),()=>s.favoriteCurrencyUnitConversionService.toggle("units",l));p.actions.push(e)}const g=v.unitsByGroups(t.availableGroups),f=[],C=[];for(const e of g)for(const t of e.units){const e=m.has(t.id);if(t.id===l||!e&&!d.has(t.id))continue;const n=(0,o.createAction)(t.id,t.name,void 0,t.description,!1,()=>c(t.id),e,()=>s.favoriteCurrencyUnitConversionService.toggle("units",t.id));e?C.push(n):f.push(n)}(f.length>0||C.length>0)&&p.actions.push(...C.sort((e,t)=>e.label.toLowerCase().localeCompare(t.label.toLowerCase())),...f),p.actions.length>0&&a.push(p);const E=l&&v.unitGroupById(l);if(null!==E)for(const e of g){if(e.name!==E)continue;const t=[];for(const n of e.units)n.id===l||d.has(n.id)||m.has(n.id)||t.push((0,o.createAction)(n.id,n.name,void 0,n.description,!1,()=>c(n.id),!1,()=>s.favoriteCurrencyUnitConversionService.toggle("units",n.id)));t.length>0&&a.push({id:e.name,name:e.name,actions:t})}for(const e of g){if(e.name===E)continue;const t=[];for(const n of e.units)n.id===l||d.has(n.id)||m.has(n.id)||t.push((0,o.createAction)(n.id,n.name,void 0,n.description,!1,()=>c(n.id),!1,()=>s.favoriteCurrencyUnitConversionService.toggle("units",n.id)));t.length>0&&a.push({id:e.name,name:e.name,actions:t})}return a}},82629:(e,t,n)=>{"use strict";function i(e,t,n,i,r,o,s,a){return{id:e,label:t,icon:n,description:i,isActive:r,onClick:o,isFavorite:s,onFavoriteClick:a}}n.d(t,{createAction:()=>i})},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var i=n(96746);const r={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>_});var i=n(59496),r=n(88537) +;var o=n(97754),s=n.n(o),a=n(68335),c=n(35749),l=n(81e3),d=n(1109),u=n(24437),h=n(90692),m=n(95711),p=n(52092),v=n(76422),g=n(9745);const f=i.createContext({setHideClose:()=>{}});var C=n(37257),E=n(91441);function w(e){const{title:t,subtitle:n,showCloseIcon:r=!0,onClose:o,renderBefore:a,renderAfter:c,draggable:l,className:d,unsetAlign:u}=e,[h,m]=(0,i.useState)(!1);return i.createElement(f.Provider,{value:{setHideClose:m}},i.createElement("div",{className:s()(E.container,d,(n||u)&&E.unsetAlign)},a,i.createElement("div",{"data-dragg-area":l,className:E.title},i.createElement("div",{className:E.ellipsis},t),n&&i.createElement("div",{className:s()(E.ellipsis,E.subtitle)},n)),c,r&&!h&&i.createElement(g.Icon,{className:E.close,icon:C,onClick:o,"data-name":"close","data-role":"button"})))}var x=n(67179);const y={vertical:20},b={vertical:0};class _ extends i.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(u.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,a.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,i=(0,r.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,c.isTextEditingField)(n))return void i.focus();if(i.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;v.subscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;v.unsubscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){ +const{className:e,wrapperClassName:t,headerClassName:n,isOpened:r,title:o,dataName:a,onClickOutside:c,additionalElementPos:p,additionalHeaderElement:v,backdrop:g,shouldForceFocus:f=!0,showSeparator:C,subtitle:E,draggable:_=!0,fullScreen:D=!1,showCloseIcon:S=!0,rounded:N=!0,isAnimationEnabled:A,growPoint:k,dialogTooltip:F,unsetHeaderAlign:O,onDragStart:z,dataDialogName:M}=this.props,I="after"!==p?v:void 0,L="after"===p?v:void 0,U="string"==typeof o?o:M||"";return i.createElement(h.MatchMedia,{rule:u.DialogBreakpoints.SmallHeight},p=>i.createElement(h.MatchMedia,{rule:u.DialogBreakpoints.TabletSmall},u=>i.createElement(l.PopupDialog,{rounded:!(u||D)&&N,className:s()(x.dialog,e),isOpened:r,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:u||D,guard:p?b:y,boundByScreen:u||D,shouldForceFocus:f,backdrop:g,draggable:_,isAnimationEnabled:A,growPoint:k,name:this.props.dataName,dialogTooltip:F,onDragStart:z},i.createElement("div",{className:s()(x.wrapper,t),"data-name":a,"data-dialog-name":U},void 0!==o&&i.createElement(w,{draggable:_&&!(u||D),onClose:this._handleClose,renderAfter:L,renderBefore:I,subtitle:E,title:o,showCloseIcon:S,className:n,unsetAlign:O}),C&&i.createElement(d.Separator,{className:x.separator}),i.createElement(m.PopupContext.Consumer,null,e=>this._renderChildren(e,u||D))))))}}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var i=n(59496),r=n(97754),o=n.n(r),s=n(28353),a=n(9745),c=n(5639),l=n(28712);function d(e){const{children:t,renderInput:n,onCancel:r,...d}=e;return i.createElement("div",{className:l.container},i.createElement("div",{className:o()(l.inputContainer,r&&l.withCancel)},n||i.createElement(u,{...d})),t,i.createElement(a.Icon,{className:l.icon,icon:c}),r&&i.createElement("div",{className:l.cancel,onClick:r},(0,s.t)("Cancel")))}function u(e){const{className:t,reference:n,value:r,onChange:s,onFocus:a,onBlur:c,onKeyDown:d,onSelect:u,placeholder:h,...m}=e;return i.createElement("input",{...m,ref:n,type:"text",className:o()(t,l.input),autoComplete:"off","data-role":"search",placeholder:h,value:r,onChange:s,onFocus:a,onBlur:c,onSelect:u,onKeyDown:d})}},71834:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnitConversionRenderer:()=>P});var i=n(59496),r=n(87995),o=n(19868),s=n(90692),a=n(19785),c=n(68335);var l=n(24437),d=n(40233),u=n(97754),h=n.n(u),m=n(28353),p=n(9745),v=n(50628),g=n(27317),f=n(40173),C=n(51613),E=n(26005),w=n(36189);n(71091);function x(e){var t,n;const r=(o=e.size,s=e.className,u("tv-circle-logo","tv-circle-logo--"+o,s));var o,s;const a=null!==(n=null!==(t=e.alt)&&void 0!==t?t:e.title)&&void 0!==n?n:"";return function(e){return"logoUrl"in e&&void 0!==e.logoUrl&&0!==e.logoUrl.length}(e)?i.createElement("img",{className:r,src:e.logoUrl,alt:a,title:e.title,loading:e.loading}):i.createElement("span",{className:r,title:e.title},e.placeholderLetter)}var y=n(24637),b=n(61936);const _=i.memo((function(e){ +const{label:t,icon:n,rules:r,search:o,description:s,onClick:a,onClose:c,isActive:l,isSmallSize:d,isSelected:u,selectedRef:m,hasDescriptions:p,hasIcons:v,isFavorite:g,onFavoriteClick:f}=e,C=(0,i.useCallback)(()=>{a(),c&&c()},[a,c]),E=d&&b.small;return i.createElement("div",{className:h()(b.action,l&&b.active,E,p&&b.withDescription,u&&b.selected),onClick:C,ref:m},v&&(void 0!==n?i.createElement(x,{logoUrl:n,size:p?"xsmall":"xxsmall",className:h()(b.icon,E)}):i.createElement("span",{className:h()(b.fakeIcon,E)})),i.createElement("div",{className:h()(b.labelAndDescription,E)},i.createElement("span",{className:h()(b.label,E)},_(t)),p&&i.createElement("br",null),p&&i.createElement("span",{className:h()(b.description,E)},s?_(s):"")),void 0!==g&&i.createElement("div",{className:h()(b.action__favoriteIcon,g&&b.action__favoriteIcon_active)},i.createElement(w.FavoriteButton,{isActive:l,isFilled:g,onClick:function(e){e.stopPropagation(),null==f||f()}})));function _(e){return i.createElement(y.HighlightedText,{text:e,rules:r,queryString:o,className:h()(l&&b.highlighted,l&&b.active)})}}),(e,t)=>Object.keys(t).filter(e=>!["onClick","onClose","onFavoriteClick"].includes(e)).every(n=>t[n]===e[n]));var D=n(21031),S=n(74471),N=n(94953),A=n(17147);const k=(0,f.mergeThemes)(g.DEFAULT_MENU_THEME,A);function F(e){const{title:t,sections:n,onClose:r,selectedId:o,selectedRef:s,search:a,setSearch:c,items:l,rules:d,searchRef:u,hasDescriptions:g,hasIcons:f,...w}=e,[x,y]=(0,i.useState)(()=>n.reduce((e,t,n)=>(t.name&&(e[t.id]=!0),e),{}));function b(e){const{id:t,...n}=e;return i.createElement(_,{key:t,rules:d,search:a,onClose:r,isSmallSize:!0,isSelected:t===o,selectedRef:t===o?s:void 0,hasDescriptions:g,hasIcons:f,...n})}return i.createElement(v.PopupMenu,{...w,onClose:r,className:h()(N.menu,g&&N.withDescriptions),theme:k,maxHeight:g?313:280,noMomentumBasedScroll:!0,isOpened:!0,onOpen:function(){var e;null===(e=u.current)||void 0===e||e.focus()}},i.createElement("div",{className:N.header},i.createElement("div",{className:N.title},t),i.createElement("div",{className:N.container},i.createElement(p.Icon,{icon:D,className:N.icon}),i.createElement("input",{size:1,type:"text",className:N.input,placeholder:(0,m.t)("Search"),autoComplete:"off","data-role":"search",onChange:function(e){c(e.target.value)},value:a,ref:u}),Boolean(a)&&i.createElement(p.Icon,{icon:S,className:N.clear,onClick:function(){c("")}}))),a?l.map(b):n.map((e,t)=>i.createElement(i.Fragment,{key:e.id},Boolean(t)&&i.createElement(C.PopupMenuSeparator,null),e.name?i.createElement(E.CollapsibleSection,{summary:e.name,className:N.section,open:x[e.id],onStateChange:t=>y({...x,[e.id]:t})},e.actions.map(b)):e.actions.map(b))))}var O=n(85457),z=n(69654),M=n(75193);function I(e){const{title:t,onClose:n,sections:r,selectedId:o,selectedRef:s,search:a,setSearch:c,items:l,rules:d,searchRef:u,hasIcons:h,hasDescriptions:p}=e;return i.createElement(O.AdaptivePopupDialog,{title:t,onClose:n,render:function(){return i.createElement(i.Fragment,null,i.createElement(z.DialogSearch,{placeholder:(0, +m.t)("Search"),onChange:v,reference:u}),i.createElement("div",{className:M.container},a?l.map(e=>{const{id:t,isActive:r,...c}=e;return i.createElement(_,{key:t,isActive:r,onClose:n,rules:d,search:a,isSelected:t===o,selectedRef:t===o?s:void 0,hasIcons:h,hasDescriptions:p,...c})}):r.map((e,t)=>i.createElement(i.Fragment,{key:e.id},e.name&&i.createElement("div",{className:M.section},e.name),e.actions.map((c,l)=>{const{id:u,...m}=c,v=l===e.actions.length-1,g=t===r.length-1;return i.createElement(i.Fragment,{key:u},i.createElement(_,{rules:d,search:a,onClose:n,isSelected:u===o,selectedRef:u===o?s:void 0,hasIcons:h,hasDescriptions:p,...m}),!g&&v&&i.createElement("div",{className:M.separator}))})))))},dataName:"unit-conversion-dialog",draggable:!1,fullScreen:!0,isOpened:!0});function v(e){c(e.target.value)}}const L={horizontalAttachEdge:d.HorizontalAttachEdge.Right,horizontalDropDirection:d.HorizontalDropDirection.FromRightToLeft};function U(e){const{element:t,...n}=e,[r,o]=(0,i.useState)(E()),[u,h]=(0,i.useState)(""),m=(0,i.useRef)(null),p=(0,i.useRef)(null),v=(0,i.useMemo)(()=>(0,a.createRegExpList)(u),[u]),{activeIdx:g,setActiveIdx:f}=function(e,t,n,r="keydown"){const[o,s]=(0,i.useState)(-1);return(0,i.useEffect)(()=>{if(!e)return;const n=e=>{switch((0,c.hashFromEvent)(e)){case 40:if(o===t.length-1)break;e.preventDefault(),s(o+1);break;case 38:if(o<=0)break;e.preventDefault(),s(o-1);break}};return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}},[e,o,t]),(0,i.useEffect)(()=>{if(!e||!n)return;const i=e=>{var i;e.repeat||13===(0,c.hashFromEvent)(e)&&n(null!==(i=t[o])&&void 0!==i?i:null,e)};return e.addEventListener(r,i),()=>{e.removeEventListener(r,i)}},[e,o,t,n,r]),{activeIdx:o,setActiveIdx:s}}(m.current,r,(function(e){e&&(e.onClick(),n.onClose())}));!function(e,t=[]){(0,i.useEffect)(()=>{e(-1)},[...t])}(f,[r]),function(e,t){(0,i.useEffect)(()=>{var n;t>=0&&(null===(n=e.current)||void 0===n||n.scrollIntoView({block:"nearest"}))},[t])}(p,g),(0,i.useEffect)(()=>{o(u?function(e,t,n){const i=e.reduce((e,t)=>[...e,...t.actions],[]);return(0,a.rankedSearch)({data:i,rules:n,queryString:t,primaryKey:"label",secondaryKey:"description"})}(n.sections,u,v):E())},[u,n.sections,v]);const C=(0,i.useMemo)(()=>({selectedId:Boolean(g>=0&&r[g])?r[g].id:"",selectedRef:p,search:u,setSearch:h,searchRef:m,items:r,rules:v,hasIcons:r.some(e=>void 0!==e.icon),hasDescriptions:r.some(e=>void 0!==e.description)}),[g,p,u,h,m,r,v]);return i.createElement(s.MatchMedia,{rule:l.DialogBreakpoints.TabletSmall},e=>e?i.createElement(I,{...n,...C}):i.createElement(F,{...n,...C,position:(0,d.getPopupPositioner)(t,L),doNotCloseOn:t}));function E(){return n.sections.reduce((e,t)=>(e.push(...t.actions),e),[])}}class P{constructor(e,t,n){this._rootElem=document.createElement("div"),this.close=()=>{null!==this._rootElem&&(r.unmountComponentAtNode(this._rootElem),o.favoriteCurrencyUnitConversionService.getOnChange().unsubscribe(this,this._render),this._rootElem=null)},this.isOpened=()=>null!==this._rootElem,this._title=e,this._element=t, +this._sectionsGetter=n,this._render(),o.favoriteCurrencyUnitConversionService.getOnChange().subscribe(this,this._render)}_render(){const e={title:this._title,sections:this._sectionsGetter(),element:this._element,onClose:this.close};r.render(i.createElement(U,{...e}),this._rootElem)}}},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var i=n(28353),r=n(59496),o=n(97754),s=n(9745),a=n(20614),c=n(55783),l=n(16842);const d={add:(0,i.t)("Add to favorites"),remove:(0,i.t)("Remove from favorites")};function u(e){const{className:t,isFilled:n,isActive:i,onClick:u,...h}=e;return r.createElement(s.Icon,{...h,className:o(l.favorite,"apply-common-tooltip",n&&l.checked,i&&l.active,t),icon:n?a:c,onClick:u,title:n?d.remove:d.add})}},19785:(e,t,n)=>{"use strict";n.d(t,{rankedSearch:()=>r,createRegExpList:()=>o,getHighlightedChars:()=>s});var i=n(80643);function r(e){const{data:t,rules:n,queryString:r,isPreventedFromFiltering:o,primaryKey:s,secondaryKey:a=s,optionalPrimaryKey:c}=e;return t.map(e=>{const t=c&&e[c]?e[c]:e[s],o=e[a];let l,d=0;return n.forEach(e=>{var n,s,a,c;const{re:u,fullMatch:h}=e;return u.lastIndex=0,t&&t.toLowerCase()===r.toLowerCase()?(d=3,void(l=null===(n=t.match(h))||void 0===n?void 0:n.index)):(0,i.isString)(t)&&h.test(t)?(d=2,void(l=null===(s=t.match(h))||void 0===s?void 0:s.index)):(0,i.isString)(o)&&h.test(o)?(d=1,void(l=null===(a=o.match(h))||void 0===a?void 0:a.index)):void((0,i.isString)(o)&&u.test(o)&&(d=1,l=null===(c=o.match(u))||void 0===c?void 0:c.index))}),{matchPriority:d,matchIndex:l,item:e}}).filter(e=>o||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function o(e,t){const n=[],i=e.toLowerCase(),r=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+a(e):a(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${a(e)})`,"i"),re:new RegExp("^"+r,"i"),reserveRe:new RegExp(r,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(i)&&n.push({fullMatch:t[i],re:t[i],fuzzyHighlight:!1}),n}function s(e,t,n){const i=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:r,reserveRe:o}=e;n.lastIndex=0,r.lastIndex=0;const s=n.exec(t),a=s||r.exec(t)||o&&o.exec(t);if(e.fuzzyHighlight=!s,a)if(e.fuzzyHighlight){let e=a.index;for(let t=1;t{"use strict";n.d(t,{HighlightedText:()=>a});var i=n(59496),r=n(97754),o=n(19785),s=n(81524);function a(e){const{queryString:t,rules:n,text:a,className:c}=e,l=(0,i.useMemo)(()=>(0,o.getHighlightedChars)(t,a,n),[t,n,a]);return i.createElement(i.Fragment,null,l.length?a.split("").map((e,t)=>i.createElement(i.Fragment,{key:t},l[t]?i.createElement("span",{ +className:r(s.highlighted,c)},e):i.createElement("span",null,e))):a)}},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var i=n(59496),r=n(97754),o=n(91626);function s(e){return i.createElement("div",{className:r(o.separator,e.className)})}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>r});var i=n(58095);function r(e){const{children:t,...n}=e;return t((0,i.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>o});var i=n(59496),r=n(65718);function o(e){return class extends i.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const o=i.createElement(e,{...this.props,zIndex:150});return"parent"===n?o:i.createElement(r.Portal,null,o)}}}},51613:(e,t,n)=>{"use strict";n.d(t,{PopupMenuSeparator:()=>a});var i=n(59496),r=n(97754),o=n.n(r),s=n(524);function a(e){const{size:t="normal",className:n}=e;return i.createElement("div",{className:o()(s.separator,"small"===t&&s.small,"normal"===t&&s.normal,"large"===t&&s.large,n)})}},10381:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetCaret:()=>c});var i=n(59496),r=n(97754),o=n(9745),s=n(40367),a=n(81268);function c(e){const{dropped:t,className:n}=e;return i.createElement(o.Icon,{className:r(n,s.icon,{[s.dropped]:t}),icon:a})}},81268:e=>{e.exports=''},37257:e=>{e.exports=''},74471:e=>{e.exports=''},21031:e=>{e.exports=''},5639:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/custom-intervals-add-dialog.4f43b1b0de65b2b6006c.js b/charting_library/bundles/custom-intervals-add-dialog.4f43b1b0de65b2b6006c.js deleted file mode 100644 index 7204f519..00000000 --- a/charting_library/bundles/custom-intervals-add-dialog.4f43b1b0de65b2b6006c.js +++ /dev/null @@ -1,12 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4013],{6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},22169:e=>{e.exports={scrollable:"scrollable-fejnDJJf",content:"content-fejnDJJf",row:"row-fejnDJJf",title:"title-fejnDJJf",control:"control-fejnDJJf"}},91131:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-xe9kH1lJ",submitButton:"submitButton-xe9kH1lJ",buttons:"buttons-xe9kH1lJ"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY", -wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},66230:e=>{e.exports={button:"button-h8C3IU2n","button-children":"button-children-h8C3IU2n",hiddenArrow:"hiddenArrow-h8C3IU2n",invisibleFocusHandler:"invisibleFocusHandler-h8C3IU2n"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},79756:e=>{e.exports={placeholder:"placeholder-fKHYe1Lk"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},94720:(e,t,n)=>{"use strict";n.d(t,{Button:()=>C});var o=n(59496),r=n(97754),l=n(95604),s=n(9745),i=n(6539),a=n.n(i);function c(e){const{color:t="brand",size:n="medium",variant:o="primary",stretch:s=!1,icon:i,startIcon:c,endIcon:u,iconOnly:d=!1,className:p,isGrouped:h,cellState:m,disablePositionAdjustment:f=!1}=e,g=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,a()["no-corner-top-left"])),2&e&&(t=r(t,a()["no-corner-top-right"])),4&e&&(t=r(t,a()["no-corner-bottom-right"])),8&e&&(t=r(t,a()["no-corner-bottom-left"]))),t}((0,l.getGroupCellRemoveRoundBorders)(m));return r(p,a().button,a()["size-"+n],a()["color-"+t],a()["variant-"+o],s&&a().stretch,(i||c)&&a()["with-start-icon"],u&&a()["with-end-icon"],d&&a()["icon-only"],g,h&&a().grouped,h&&!f&&a()["adjust-position"],h&&m.isTop&&a()["first-row"],h&&m.isLeft&&a()["first-col"])}function u(e){const{size:t,startIcon:n,icon:r,iconOnly:l,children:i,endIcon:c}=e,u=null!=n?n:r;return o.createElement(o.Fragment,null,u&&"xsmall"!==t&&o.createElement(s.Icon,{icon:u,className:a()["start-icon-wrap"]}),i&&o.createElement("span",{className:a().content},i),c&&!l&&"xsmall"!==t&&o.createElement(s.Icon,{icon:c,className:a()["end-icon-wrap"]}))}var d=n(86332),p=n(90186);function h(e){const{className:t,color:n,variant:o,size:r,stretch:l,animated:s,icon:i,iconOnly:a,startIcon:c,endIcon:u,...d}=e;return{...d,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function m(e){const{reference:t,...n}=e,{isGrouped:r,cellState:l,disablePositionAdjustment:s}=(0,o.useContext)(d.ControlGroupContext),i=c({...n,isGrouped:r,cellState:l,disablePositionAdjustment:s});return o.createElement("button",{...h(n),className:i,ref:t},o.createElement(u,{...n}))}function f(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function g(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function b(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function v(e){const{intent:t,size:n,appearance:o,useFullWidth:r,icon:l,...s}=e;return{...s,color:g(t),size:b(n),variant:f(o),stretch:r,startIcon:l}}function C(e){return o.createElement(m,{...v(e)})}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o}) -;const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>v,InputClasses:()=>f});var o=n(59496),r=n(97754),l=n(88537),s=n(66092),i=n(90186),a=n(86332),c=n(95604);var u=n(21103),d=n.n(u);function p(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function h(e,t,n,o){const{removeRoundBorder:l,className:s,intent:i="default",borderStyle:a="thin",size:u,highlight:h,disabled:m,readonly:f,stretch:g,noReadonlyStyles:b,isFocused:v}=e,C=p(null!=l?l:(0,c.getGroupCellRemoveRoundBorders)(n));return r(d().container,d()["intent-"+i],d()["border-"+a],u&&d()["size-"+u],C,h&&d()["with-highlight"],m&&d().disabled,f&&!b&&d().readonly,v&&d().focused,g&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function m(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const l=p(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,l)}const f={FontSizeMedium:(0,l.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,l.ensureDefined)(d()["font-size-large"])},g={passive:!1};function b(e,t){const{id:n,role:r,onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:b,onClick:v,tabIndex:C,startSlot:w,middleSlot:S,endSlot:E,onWheel:x,onWheelNoPassive:y=null}=e,{isGrouped:k,cellState:N,disablePositionAdjustment:_=!1}=(0,o.useContext)(a.ControlGroupContext),A=function(e,t=null,n){const r=(0,o.useRef)(null),l=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.addEventListener(e,t,n)},[]),i=(0,o.useCallback)(()=>{if(null===r.current||null===l.current)return;const[e,t,n]=l.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{i(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(l.current=[e,t,n],s(),i),[e,t,n]),a}("wheel",y,g);return o.createElement("span",{id:n,role:r,className:h(e,k,N,_),tabIndex:C,ref:(0,s.useMergedRefs)([t,A]),onFocus:l,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:p,onMouseUp:f,onKeyDown:b,onClick:v,onWheel:x,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)},w,S,E,o.createElement("span",{className:m(e,N)}))}b.displayName="ControlSkeleton";const v=o.forwardRef(b)},78274:(e,t,n)=>{"use strict";n.d(t,{StartSlot:()=>i,MiddleSlot:()=>a,EndSlot:()=>c,AfterSlot:()=>u});var o=n(59496),r=n(97754),l=n(10306),s=n.n(l);function i(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function a(e){ -const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function c(e){const{className:t,interactive:n=!0,icon:l=!1,children:i}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,l&&s().icon,t)},i)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>v});var o=n(59496),r=n(97754),l=n(90186),s=n(47201),i=n(48907),a=n(66092),c=n(48027),u=n(29202),d=n(45812),p=n(67029),h=n(78274),m=n(66579),f=n.n(m);function g(e){return!(0,l.isAriaAttribute)(e)&&!(0,l.isDataAttribute)(e)}function b(e){const{id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:m,draggable:b,autoComplete:v,autoFocus:C,maxLength:w,min:S,max:E,step:x,pattern:y,inputMode:k,onSelect:N,onFocus:_,onBlur:A,onKeyDown:O,onKeyUp:D,onKeyPress:R,onChange:j,onDragStart:I,size:M="medium",className:B,inputClassName:z,disabled:K,readonly:F,containerTabIndex:L,startSlot:V,endSlot:T,reference:H,containerReference:P,onContainerFocus:Y,...W}=e,G=(0,l.filterProps)(W,g),U={...(0,l.filterAriaProps)(W),...(0,l.filterDataProps)(W),id:t,title:n,role:s,tabIndex:i,placeholder:a,name:c,type:u,value:d,defaultValue:m,draggable:b,autoComplete:v,autoFocus:C,maxLength:w,min:S,max:E,step:x,pattern:y,inputMode:k,onSelect:N,onFocus:_,onBlur:A,onKeyDown:O,onKeyUp:D,onKeyPress:R,onChange:j,onDragStart:I};return o.createElement(p.ControlSkeleton,{...G,disabled:K,readonly:F,tabIndex:L,className:r(f().container,B),size:M,ref:P,onFocus:Y,startSlot:V,middleSlot:o.createElement(h.MiddleSlot,null,o.createElement("input",{...U,className:r(f().input,z,V&&f()["with-start-slot"],T&&f()["with-end-slot"]),disabled:K,readOnly:F,ref:H})),endSlot:T})}function v(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:l,onBlur:p,reference:h,containerReference:m=null}=e,f=(0,o.useRef)(null),g=(0,o.useRef)(null),[v,C]=(0,u.useFocus)(),w=t?void 0:v?-1:r,S=t?void 0:v?r:-1,{isMouseDown:E,handleMouseDown:x,handleMouseUp:y}=(0,d.useIsMouseDown)(),k=(0,s.createSafeMulticastEventHandler)(C.onFocus,(function(e){n&&!E.current&&(0,i.selectAllContent)(e.currentTarget)}),l),N=(0,s.createSafeMulticastEventHandler)(C.onBlur,p),_=(0,o.useCallback)(e=>{f.current=e,h&&("function"==typeof h&&h(e),"object"==typeof h&&(h.current=e))},[f,h]);return o.createElement(b,{...e,isFocused:v,containerTabIndex:w,tabIndex:S,onContainerFocus:function(e){g.current===e.target&&null!==f.current&&f.current.focus()},onFocus:k,onBlur:N,reference:_,containerReference:(0,a.useMergedRefs)([g,m]),onMouseDown:x,onMouseUp:y})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>l});var o=n(47201),r=n(29202);function l(e){const{onFocus:t,onBlur:n,intent:l,highlight:s,disabled:i}=e,[a,c]=(0,r.useFocus)(void 0,i),u=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(i?void 0:c.onBlur,n);return{...e,intent:l||(a?"primary":"default"), -highlight:null!=s?s:a,onFocus:u,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const l={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,l]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r});var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},22064:(e,t,n)=>{"use strict";n.d(t,{createDomId:()=>a,joinDomIds:()=>c});const o=/\s/g;function r(e){return"string"==typeof e}function l(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function s(e){return e.trim().length>0}function i(e){return e.replace(o,"-")}function a(...e){const t=e.map(l).filter(r).filter(s).map(i);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(l).filter(r).filter(s).join(" ")}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},21317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ToolWidgetIntervalsAddDialog:()=>h});var o=n(59496),r=n(28353),l=n(50182),s=n(45685),i=n(31261),a=n(59064),c=n(86656),u=n(53374),d=n(22169);const p=u.INTERVALS.map(e=>({value:e.name,content:e.label}));function h(e){const{onAdd:t,onClose:n,onUnmount:h}=e,[m,f]=(0,o.useState)(u.INTERVALS[0].name),[g,b]=(0,o.useState)("1");return(0,o.useEffect)(()=>()=>{h&&h()},[]),o.createElement(l.AdaptiveConfirmDialog,{dataName:"add-custom-interval-dialog",title:(0,r.t)("Add custom time interval"),isOpened:!0,onSubmit:function(){t(g,m),n()},onCancel:n,onClickOutside:n,onClose:n,render:()=>o.createElement(c.TouchScrollContainer,{className:d.scrollable,onScroll:C},o.createElement("div",{className:d.content},o.createElement("div",{className:d.row},o.createElement("div",{className:d.title},(0,r.t)("Type")),o.createElement(s.Select,{id:"metric-items",className:d.control,value:m,items:p,onChange:w})),o.createElement("div",{className:d.row},o.createElement("div",{className:d.title},(0,r.t)("Interval")),o.createElement(i.InputControl,{className:d.control,inputMode:"numeric",maxLength:6,value:g,onChange:v})))),defaultActionOnClose:"none",submitButtonText:(0,r.t)("Add"),submitOnEnterKey:!1,fullScreen:!0});function v(e){const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&b(t)}function C(){a.globalCloseDelegate.fire()}function w(e){f(e)}}}, -50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>p});var o=n(59496),r=n(97754),l=n.n(r),s=n(94720),i=n(88537),a=n(28353),c=n(68335),u=n(85457),d=n(91131);class p extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,c.hashFromEvent)(e)&&o&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:r,footerLeftRenderer:l,submitButtonText:s,submitButtonDisabled:i,defaultActionOnClose:a,submitOnEnterKey:c,...d}=this.props;return o.createElement(u.AdaptivePopupDialog,{...d,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:r,submitButtonText:i,submitButtonDisabled:c,onSubmit:u,cancelButtonText:p,showCancelButton:h=!0,submitButtonClassName:m,cancelButtonClassName:f,buttonsWrapperClassName:g}=this.props;return o.createElement(o.Fragment,null,t(e),o.createElement("div",{className:d.footer},n&&n(e.isSmallWidth),o.createElement("div",{className:l()(d.buttons,g)},r,h&&o.createElement(s.Button,{className:f,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=p?p:(0,a.t)("Cancel")),o.createElement("span",{className:d.submitButton},o.createElement(s.Button,{className:m,disabled:c,name:"submit",onClick:u,"data-name":"submit-button"},null!=i?i:(0,a.t)("Ok"))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},85457:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>y});var o=n(59496),r=n(88537);var l=n(97754),s=n.n(l),i=n(68335),a=n(35749),c=n(63016),u=n(1109),d=n(24437),p=n(90692),h=n(95711),m=n(52092),f=n(76422),g=n(9745);const b=o.createContext({setHideClose:()=>{}});var v=n(37257),C=n(91441);function w(e){const{title:t,subtitle:n,showCloseIcon:r=!0,onClose:l,renderBefore:i,renderAfter:a,draggable:c,className:u,unsetAlign:d}=e,[p,h]=(0,o.useState)(!1);return o.createElement(b.Provider,{value:{setHideClose:h}},o.createElement("div",{className:s()(C.container,u,(n||d)&&C.unsetAlign)},i,o.createElement("div",{"data-dragg-area":c,className:C.title},o.createElement("div",{className:C.ellipsis},t),n&&o.createElement("div",{className:s()(C.ellipsis,C.subtitle)},n)),a,r&&!p&&o.createElement(g.Icon,{className:C.close,icon:v,onClick:l,"data-name":"close","data-role":"button"})))}var S=n(67179);const E={vertical:20},x={vertical:0};class y extends o.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t -})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(d.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,i.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,o=(0,r.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,a.isTextEditingField)(n))return void o.focus();if(o.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;f.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;f.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:r,title:l,dataName:i,onClickOutside:a,additionalElementPos:m,additionalHeaderElement:f,backdrop:g,shouldForceFocus:b=!0,showSeparator:v,subtitle:C,draggable:y=!0,fullScreen:k=!1,showCloseIcon:N=!0,rounded:_=!0,isAnimationEnabled:A,growPoint:O,dialogTooltip:D,unsetHeaderAlign:R,onDragStart:j,dataDialogName:I}=this.props,M="after"!==m?f:void 0,B="after"===m?f:void 0,z="string"==typeof l?l:I||"";return o.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.SmallHeight},m=>o.createElement(p.MatchMedia,{rule:d.DialogBreakpoints.TabletSmall},d=>o.createElement(c.PopupDialog,{rounded:!(d||k)&&_,className:s()(S.dialog,e),isOpened:r,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:a,onClickBackdrop:a,fullscreen:d||k,guard:m?x:E,boundByScreen:d||k,shouldForceFocus:b,backdrop:g,draggable:y,isAnimationEnabled:A,growPoint:O,name:this.props.dataName,dialogTooltip:D,onDragStart:j},o.createElement("div",{className:s()(S.wrapper,t),"data-name":i,"data-dialog-name":z},void 0!==l&&o.createElement(w,{draggable:y&&!(d||k),onClose:this._handleClose,renderAfter:B,renderBefore:M,subtitle:C,title:l,showCloseIcon:N, -className:n,unsetAlign:R}),v&&o.createElement(u.Separator,{className:S.separator}),o.createElement(h.PopupContext.Consumer,null,e=>this._renderChildren(e,d||k))))))}}},46059:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>S});var o=n(59496),r=n(97754),l=n.n(r),s=n(66092),i=n(67029),a=n(78274),c=n(50628),u=n(88537);function d(e,t){return(0,o.useCallback)(()=>function(e,t){const n=(0,u.ensureNotNull)(e).getBoundingClientRect(),o={x:n.left,y:n.top+n.height};return t&&(o.overrideWidth=n.width),o}(e.current,t),[e,t])}const p=JSON.parse('{"size-header-height":"64px"}'),h=parseInt(p["size-header-height"]);function m(e){const{button:t,popupChildren:n,buttonRef:r,listboxId:l,listboxClassName:s,listboxTabIndex:i,matchButtonAndListboxWidths:a,isOpened:u,scrollWrapReference:p,listboxReference:m,onClose:f,onOpen:g,onListboxFocus:b,onListboxBlur:v,onListboxKeyDown:C,listboxAria:w,repositionOnScroll:S=!0,closeOnHeaderOverlap:E=!1}=e,x=d(r,a),y=E?h:0;return o.createElement(o.Fragment,null,t,o.createElement(c.PopupMenu,{...w,id:l,className:s,tabIndex:i,isOpened:u,position:x,repositionOnScroll:S,onClose:f,onOpen:g,doNotCloseOn:r.current,reference:m,scrollWrapReference:p,onFocus:b,onBlur:v,onKeyDown:C,closeOnScrollOutsideOffset:y},n))}var f=n(9745),g=n(89974),b=n(99171);function v(e){const{isDropped:t}=e;return o.createElement(f.Icon,{className:l()(b.icon,t&&b.dropped),icon:g})}function C(e){const{className:t,disabled:n,isDropped:r}=e;return o.createElement("span",{className:l()(b.button,n&&b.disabled,t)},o.createElement(v,{isDropped:r}))}var w=n(66230);const S=o.forwardRef((e,t)=>{const{listboxId:n,className:r,listboxClassName:c,listboxTabIndex:u,hideArrowButton:d,matchButtonAndListboxWidths:p,disabled:h,isOpened:f,scrollWrapReference:g,repositionOnScroll:b,closeOnHeaderOverlap:v,listboxReference:S,size:E="medium",onClose:x,onOpen:y,onListboxFocus:k,onListboxBlur:N,onListboxKeyDown:_,buttonChildren:A,children:O,caretClassName:D,listboxAria:R,...j}=e,I=(0,o.useRef)(null),M=!d&&o.createElement(a.EndSlot,null,o.createElement(C,{isDropped:f,disabled:h,className:D}));return o.createElement(m,{buttonRef:I,listboxId:n,listboxClassName:c,listboxTabIndex:u,isOpened:f,onClose:x,onOpen:y,listboxReference:S,scrollWrapReference:g,onListboxFocus:k,onListboxBlur:N,onListboxKeyDown:_,listboxAria:R,matchButtonAndListboxWidths:p,button:o.createElement(i.ControlSkeleton,{...j,"data-role":"listbox",disabled:h,className:l()(w.button,r),size:E,ref:(0,s.useMergedRefs)([I,t]),middleSlot:o.createElement(a.MiddleSlot,null,o.createElement("span",{className:l()(w["button-children"],d&&w.hiddenArrow)},A)),endSlot:M}),popupChildren:O,repositionOnScroll:b,closeOnHeaderOverlap:v})});S.displayName="ControlDisclosureView"},68721:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>c});var o=n(59496),r=n(88537),l=n(29202),s=n(47201),i=n(22064),a=n(35749);function c(e){const{intent:t,highlight:n,...c}=e,{isFocused:u,...d}=function(e){const{id:t,disabled:n,buttonTabIndex:c=0,onFocus:u,onBlur:d,onClick:p}=e,[h,m]=(0,o.useState)(!1),[f,g]=(0, -l.useFocus)(),b=f||h,v=void 0!==t?(0,i.createDomId)(t,"listbox"):void 0,C=(0,o.useRef)(null),w=(0,o.useCallback)(e=>(0,r.ensureNotNull)(C.current).focus(e),[C]),S=(0,o.useRef)(null),E=(0,o.useCallback)(()=>(0,r.ensureNotNull)(S.current).focus(),[S]),x=(0,o.useCallback)(()=>m(!0),[m]),y=(0,o.useCallback)((e=!1)=>{m(!1);const{activeElement:t}=document;t&&(0,a.isTextEditingField)(t)||w({preventScroll:e})},[m,w]),k=(0,o.useCallback)(()=>{h?y():x()},[h,y,x]),N=n?[]:[u,g.onFocus],_=n?[]:[d,g.onBlur],A=n?[]:[p,k],O=(0,s.createSafeMulticastEventHandler)(...N),D=(0,s.createSafeMulticastEventHandler)(..._),R=(0,s.createSafeMulticastEventHandler)(...A);return{listboxId:v,isOpened:h,isFocused:b,buttonTabIndex:n?-1:c,listboxTabIndex:-1,open:x,close:y,toggle:k,onOpen:E,buttonFocusBindings:{onFocus:O,onBlur:D},onButtonClick:R,buttonRef:C,listboxRef:S,buttonAria:{"aria-controls":h?v:void 0,"aria-expanded":h,"aria-disabled":n}}}(c);return{...d,isFocused:u,highlight:null!=n?n:u,intent:null!=t?t:u?"primary":"default"}}},26597:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>s,useComposedKeyboardActionHandlers:()=>i,useKeyboardEventHandler:()=>a,useKeyboardToggle:()=>c,useKeyboardClose:()=>u,useKeyboardOpen:()=>d});var o=n(59496),r=n(68335);const l=()=>!0;function s(e,t,n=l){return(0,o.useCallback)(o=>{const r=e.map(e=>"function"==typeof e?e():e);return!(!n()||!r.includes(o))&&(t(),!0)},[...e,t,n])}function i(...e){return(0,o.useCallback)(t=>{for(const n of e)if(n(t))return!0;return!1},[...e])}function a(...e){const t=i(...e);return(0,o.useCallback)(e=>{t((0,r.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return s([13,32],e)}function u(e,t){return s([9,(0,o.useCallback)(()=>r.Modifiers.Shift+9,[]),27],t,(0,o.useCallback)(()=>e,[e]))}function d(e,t){return s([40,38],t,(0,o.useCallback)(()=>!e,[e]))}},45685:(e,t,n)=>{"use strict";n.d(t,{Select:()=>_});var o=n(59496),r=n(22064),l=n(66092),s=n(88537),i=n(74991);const a={duration:200,additionalScroll:0},c={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function u(e,t){const n=c[e];return t[n.scrollSize]>t[n.clientSize]}function d(e,t,n,o,r,l){const s=function(e,t,n,o=0){const r=c[e];return{start:-1*o,middle:-1*(Math.floor(n[r.size]/2)-Math.floor(t[r.size]/2)),end:-1*(n[r.size]-t[r.size])+o}}(e,o,r,l.additionalScroll);let a=0;if(function(e,t,n){const o=c[e];return t[o.start]n[o.end]+n[o.size]/2}(e,o,r))a=s.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,r=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),l=Math.min(...r.keys());return r.get(l)}(function(e,t,n,o=0){const r=c[e],l=t[r.start]+Math.floor(t[r.size]/2),s=n[r.start]+Math.floor(n[r.size]/2);return{start:t[r.start]-n[r.start]-o,middle:l-s,end:t[r.end]-n[r.end]+o}}(e,o,r,l.additionalScroll)) -;a=void 0!==t?s[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=i.dur,func:o=i.easingFunc.easeInOutCubic,onScrollEnd:r,target:l,wrap:s,direction:a="vertical"}=e;let{targetRect:c,wrapRect:u}=e;c=null!=c?c:l.getBoundingClientRect(),u=null!=u?u:s.getBoundingClientRect();const d=("vertical"===a?c.top-u.top:c.left-u.left)+t,p="vertical"===a?"scrollTop":"scrollLeft",h=s?s[p]:0;let m,f=0;return f=window.requestAnimationFrame((function e(t){let l;if(m?l=t-m:(l=0,m=t),l>=n)return s[p]=h+d,void(r&&r());const i=h+d*o(l/n);s[p]=Math.floor(i),f=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(f),r&&r()}}({...l,target:t,targetRect:o,wrap:n,wrapRect:r,additionalScroll:a,direction:e})}class p{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=a){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),u("vertical",this._container)&&(this._stopVerticalScroll=d("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),u("horizontal",this._container)&&(this._stopHorizontalScroll=d("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}getContainer(){return this._container}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}function h(e,t){const n=(0,o.useRef)(null),r=(0,o.useRef)(new WeakMap),l=function(e){const t=(0,o.useRef)(null);return(0,o.useEffect)(()=>(t.current=new p(e),()=>(0,s.ensureNotNull)(t.current).destroy()),[]),t}(n.current),i=(0,o.useCallback)(()=>{null!==l.current&&null!==n.current&&l.current.getContainer()!==n.current&&l.current.setContainer(n.current)},[l,n]),a=(0,o.useCallback)(e=>{n.current=e},[n]),c=(0,o.useCallback)((e,t)=>{r.current.set(e,t)},[r]),u=(0,o.useCallback)((e,t)=>{if(!e)return;const n=r.current.get(e);n&&(i(),(0,s.ensureNotNull)(l.current).scrollTo(n,t))},[r,l]);return(0,o.useEffect)(()=>u(e,t),[u,e]),[a,c,u]}var m=n(16396),f=n(4889),g=n(43370);var b=n(62820),v=n(26597);function C(e,t){return e>=0?e%t:(t-Math.abs(e)%t)%t}const w={next:[40,()=>(0,b.isRtl)()?37:39],previous:[38,()=>(0,b.isRtl)()?39:37],first:[33,36],last:[34,35]} -;var S=n(46059),E=n(68721),x=n(79756);function y(e){return!e.readonly}function k(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,r.createDomId)(e,"item",null==t?void 0:t.value)}function N(e){var t,n;const{selectedItem:r,placeholder:l}=e;if(!r)return o.createElement("span",{className:x.placeholder},l);const s=null!==(n=null!==(t=r.selectedContent)&&void 0!==t?t:r.content)&&void 0!==n?n:r.value;return o.createElement("span",null,s)}const _=o.forwardRef((e,t)=>{const{id:n,menuClassName:s,menuItemClassName:i,tabIndex:a,disabled:c,highlight:u,intent:d,hideArrowButton:p,placeholder:b,addPlaceholderToItems:x=!0,value:_,"aria-labelledby":A,onFocus:O,onBlur:D,onClick:R,onChange:j,repositionOnScroll:I=!0,...M}=e;let{items:B}=e;if(b&&x){B=[{value:void 0,content:b,id:(0,r.createDomId)(n,"placeholder")},...B]}const{listboxId:z,isOpened:K,isFocused:F,buttonTabIndex:L,listboxTabIndex:V,highlight:T,intent:H,open:P,onOpen:Y,close:W,toggle:G,buttonFocusBindings:U,onButtonClick:J,buttonRef:Q,listboxRef:q,buttonAria:$}=(0,E.useControlDisclosure)({id:n,disabled:c,buttonTabIndex:a,intent:d,highlight:u,onFocus:O,onBlur:D,onClick:R}),X=B.filter(y),Z=X.find(e=>e.value===_),[ee,te,ne]=h(Z),oe=(0,r.joinDomIds)(A,n),re=oe.length>0?oe:void 0,le=(0,o.useMemo)(()=>({role:"listbox","aria-labelledby":A,"aria-activedescendant":k(n,Z)}),[A,Z]),se=(0,o.useCallback)(e=>e.value===_,[_]),ie=(0,o.useCallback)(e=>j&&j(e.value),[j]),ae=function(e,t,n,r=!0,l={}){const s=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(o===e.length-1&&!r)return;const l=C(o+1,e.length);n&&n(e[l])},[e,t,n,r]),i=(0,o.useCallback)(()=>{const o=e.findIndex(t);if(0===o&&!r)return;const l=C(o-1,e.length);n&&n(e[l])},[e,t,n,r]),a=(0,o.useCallback)(()=>{n&&n(e[0])},[n,e]),c=(0,o.useCallback)(()=>{n&&n(e[e.length-1])},[n,e]),{next:u=w.next,previous:d=w.previous,first:p=w.first,last:h=w.last}=l;return(0,v.useComposedKeyboardActionHandlers)((0,v.useKeyboardActionHandler)(u,s),(0,v.useKeyboardActionHandler)(d,i),(0,v.useKeyboardActionHandler)(p,a),(0,v.useKeyboardActionHandler)(h,c))}(X,se,ie,!1,{next:[40],previous:[38]}),ce=(0,v.useKeyboardToggle)(G),ue=(0,v.useKeyboardClose)(K,W),de=(0,v.useKeyboardOpen)(K,P),pe=(0,v.useKeyboardEventHandler)(ce,ue,de),he=(0,v.useKeyboardEventHandler)(ae,ce,ue),me=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)(()=>(0,f.default)(()=>{t.current=""},500),[]),r=(0,o.useMemo)(()=>(0,g.default)(e,200),[e]);return(0,o.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,r(t.current,e),n())},[n,r])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return!e.readonly&&(!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)))})}(X,e);void 0!==n&&j&&(t.stopPropagation(),K||P(),j(n.value))});return o.createElement(S.ControlDisclosureView,{...M,...$,...U,id:n,role:"button",tabIndex:L,"aria-owns":$["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":re,disabled:c,hideArrowButton:p,isFocused:F, -isOpened:K,highlight:T,intent:H,ref:(0,l.useMergedRefs)([Q,t]),onClick:J,onOpen:function(){ne(Z,{duration:0}),Y()},onClose:W,onKeyDown:function(e){pe(e),e.defaultPrevented||me(e)},listboxId:z,listboxTabIndex:V,listboxClassName:s,listboxAria:le,listboxReference:q,scrollWrapReference:ee,onListboxKeyDown:function(e){he(e),e.defaultPrevented||me(e)},buttonChildren:o.createElement(N,{selectedItem:Z,placeholder:b}),repositionOnScroll:I},B.map((e,t)=>{var r;if(e.readonly)return o.createElement(o.Fragment,{key:"readonly_item_"+t},e.content);const l=k(n,e);return o.createElement(m.PopupMenuItem,{key:l,id:l,className:i,role:"option","aria-selected":_===e.value,isActive:_===e.value,label:null!==(r=e.content)&&void 0!==r?r:e.value,onClick:fe,onClickArg:e.value,isDisabled:e.disabled,reference:t=>te(e,t)})}));function fe(e){j&&j(e)}});_.displayName="Select"},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var o=n(59496),r=n(97754),l=n(91626);function s(e){return o.createElement("div",{className:r(l.separator,e.className)})}},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(59496),r=n(59142),l=n(88537),s=n(49483);function i(e){const{reference:t,children:n,...l}=e,i=(0,o.useRef)(null),c=(0,o.useCallback)(e=>{t&&(t.current=e),s.CheckMobile.iOS()&&(null!==i.current&&(0,r.enableBodyScroll)(i.current),i.current=e,null!==i.current&&(0,r.disableBodyScroll)(i.current,{allowTouchMove:a(i)}))},[t]);return o.createElement("div",{ref:c,...l},n)}function a(e){return t=>{const n=(0,l.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},89974:e=>{e.exports=''},37257:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/custom-intervals-add-dialog.920509097ccec051c51a.js b/charting_library/bundles/custom-intervals-add-dialog.920509097ccec051c51a.js new file mode 100644 index 00000000..d3893902 --- /dev/null +++ b/charting_library/bundles/custom-intervals-add-dialog.920509097ccec051c51a.js @@ -0,0 +1 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4013],{22169:e=>{e.exports={scrollable:"scrollable-fejnDJJf",content:"content-fejnDJJf",row:"row-fejnDJJf",title:"title-fejnDJJf",control:"control-fejnDJJf"}},21317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ToolWidgetIntervalsAddDialog:()=>f});var l=n(59496),o=n(28353),c=n(50182),r=n(58368),a=n(31261),i=n(59064),s=n(86656),u=n(53374),m=n(22169);const d=u.INTERVALS.map(e=>({value:e.name,content:e.label}));function f(e){const{onAdd:t,onClose:n,onUnmount:f}=e,[v,C]=(0,l.useState)(u.INTERVALS[0].name),[E,b]=(0,l.useState)("1");return(0,l.useEffect)(()=>()=>{f&&f()},[]),l.createElement(c.AdaptiveConfirmDialog,{dataName:"add-custom-interval-dialog",title:(0,o.t)("Add custom time interval"),isOpened:!0,onSubmit:function(){t(E,v),n()},onCancel:n,onClickOutside:n,onClose:n,render:()=>l.createElement(s.TouchScrollContainer,{className:m.scrollable,onScroll:S},l.createElement("div",{className:m.content},l.createElement("div",{className:m.row},l.createElement("div",{className:m.title},(0,o.t)("Type")),l.createElement(r.Select,{id:"metric-items",className:m.control,value:v,items:d,onChange:g})),l.createElement("div",{className:m.row},l.createElement("div",{className:m.title},(0,o.t)("Interval")),l.createElement(a.InputControl,{className:m.control,inputMode:"numeric",maxLength:6,value:E,onChange:N})))),defaultActionOnClose:"none",submitButtonText:(0,o.t)("Add"),submitOnEnterKey:!1,fullScreen:!0});function N(e){const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&b(t)}function S(){i.globalCloseDelegate.fire()}function g(e){C(e)}}},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>a});var l=n(59496),o=n(59142),c=n(88537),r=n(49483);function a(e){const{reference:t,children:n,...c}=e,a=(0,l.useRef)(null),s=(0,l.useCallback)(e=>{t&&(t.current=e),r.CheckMobile.iOS()&&(null!==a.current&&(0,o.enableBodyScroll)(a.current),a.current=e,null!==a.current&&(0,o.disableBodyScroll)(a.current,{allowTouchMove:i(a)}))},[t]);return l.createElement("div",{ref:s,...c},n)}function i(e){return t=>{const n=(0,c.ensureNotNull)(e.current),l=document.activeElement;return!n.contains(t)||null!==l&&n.contains(l)&&l.contains(t)}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/d17555267bdf6ed9e01a7f4d525ef080.svg b/charting_library/bundles/d17555267bdf6ed9e01a7f4d525ef080.svg new file mode 100644 index 00000000..9c0b1f9e --- /dev/null +++ b/charting_library/bundles/d17555267bdf6ed9e01a7f4d525ef080.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d19fbe51ce3d398848b6825d6618ad21.svg b/charting_library/bundles/d19fbe51ce3d398848b6825d6618ad21.svg new file mode 100644 index 00000000..aa49e2ed --- /dev/null +++ b/charting_library/bundles/d19fbe51ce3d398848b6825d6618ad21.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d1f58926528e2a3debceb59dff7e58b0.svg b/charting_library/bundles/d1f58926528e2a3debceb59dff7e58b0.svg new file mode 100644 index 00000000..30238b9c --- /dev/null +++ b/charting_library/bundles/d1f58926528e2a3debceb59dff7e58b0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d369378aefaaed47363bffaedb308143.svg b/charting_library/bundles/d369378aefaaed47363bffaedb308143.svg new file mode 100644 index 00000000..ee867371 --- /dev/null +++ b/charting_library/bundles/d369378aefaaed47363bffaedb308143.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d3c2e6ce4be2a5b1bf9ca5a18d2d1238.svg b/charting_library/bundles/d3c2e6ce4be2a5b1bf9ca5a18d2d1238.svg new file mode 100644 index 00000000..6b1dd4aa --- /dev/null +++ b/charting_library/bundles/d3c2e6ce4be2a5b1bf9ca5a18d2d1238.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d4b8b8cb1909ea6d3f0a3182c8ec0a96.svg b/charting_library/bundles/d4b8b8cb1909ea6d3f0a3182c8ec0a96.svg new file mode 100644 index 00000000..98dc27ab --- /dev/null +++ b/charting_library/bundles/d4b8b8cb1909ea6d3f0a3182c8ec0a96.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d6d0f38ab696185b41d6421c65541584.webp b/charting_library/bundles/d6d0f38ab696185b41d6421c65541584.webp new file mode 100644 index 00000000..a87533c7 Binary files /dev/null and b/charting_library/bundles/d6d0f38ab696185b41d6421c65541584.webp differ diff --git a/charting_library/bundles/d716b83b8ba7ad3cbabcf91275c88711.webp b/charting_library/bundles/d716b83b8ba7ad3cbabcf91275c88711.webp new file mode 100644 index 00000000..b1db7102 Binary files /dev/null and b/charting_library/bundles/d716b83b8ba7ad3cbabcf91275c88711.webp differ diff --git a/charting_library/bundles/d7b56af17bc6de43c045962d843a94f3.svg b/charting_library/bundles/d7b56af17bc6de43c045962d843a94f3.svg new file mode 100644 index 00000000..63d63a17 --- /dev/null +++ b/charting_library/bundles/d7b56af17bc6de43c045962d843a94f3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d83a6296db053e3ab36abfd851a88f66.svg b/charting_library/bundles/d83a6296db053e3ab36abfd851a88f66.svg new file mode 100644 index 00000000..9d7282d5 --- /dev/null +++ b/charting_library/bundles/d83a6296db053e3ab36abfd851a88f66.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d84b6cf7427c0922056517dad6f0d0bb.svg b/charting_library/bundles/d84b6cf7427c0922056517dad6f0d0bb.svg new file mode 100644 index 00000000..f5f3c146 --- /dev/null +++ b/charting_library/bundles/d84b6cf7427c0922056517dad6f0d0bb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d92d6ecce7375134958d8e623f59dd3e.svg b/charting_library/bundles/d92d6ecce7375134958d8e623f59dd3e.svg new file mode 100644 index 00000000..5126a1dd --- /dev/null +++ b/charting_library/bundles/d92d6ecce7375134958d8e623f59dd3e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/d9da6caea5ca1cd55417f1978b047b13.svg b/charting_library/bundles/d9da6caea5ca1cd55417f1978b047b13.svg new file mode 100644 index 00000000..a8dce0f0 --- /dev/null +++ b/charting_library/bundles/d9da6caea5ca1cd55417f1978b047b13.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/db0cca97f734763ceccce1e1c3c88430.jpeg b/charting_library/bundles/db0cca97f734763ceccce1e1c3c88430.jpeg new file mode 100644 index 00000000..6091d104 Binary files /dev/null and b/charting_library/bundles/db0cca97f734763ceccce1e1c3c88430.jpeg differ diff --git a/charting_library/bundles/dc280b6d3ed8a4c98e32fb60d6c17eca.svg b/charting_library/bundles/dc280b6d3ed8a4c98e32fb60d6c17eca.svg new file mode 100644 index 00000000..1b368ff5 --- /dev/null +++ b/charting_library/bundles/dc280b6d3ed8a4c98e32fb60d6c17eca.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/dddac09a7572568f517e22700f4c8474.svg b/charting_library/bundles/dddac09a7572568f517e22700f4c8474.svg new file mode 100644 index 00000000..15d21028 --- /dev/null +++ b/charting_library/bundles/dddac09a7572568f517e22700f4c8474.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/de4367c3fa9f075bbf58943188ba32b3.svg b/charting_library/bundles/de4367c3fa9f075bbf58943188ba32b3.svg new file mode 100644 index 00000000..7d15dd47 --- /dev/null +++ b/charting_library/bundles/de4367c3fa9f075bbf58943188ba32b3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/de7f5bc35af05c24d9640b6fd0910bdf.svg b/charting_library/bundles/de7f5bc35af05c24d9640b6fd0910bdf.svg new file mode 100644 index 00000000..2f6af15c --- /dev/null +++ b/charting_library/bundles/de7f5bc35af05c24d9640b6fd0910bdf.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/dea459c5c4ebb211e652e99cd6ba6354.svg b/charting_library/bundles/dea459c5c4ebb211e652e99cd6ba6354.svg new file mode 100644 index 00000000..1302af00 --- /dev/null +++ b/charting_library/bundles/dea459c5c4ebb211e652e99cd6ba6354.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/df2e77a08c4fed3f6d7a5e653e4ca2b2.svg b/charting_library/bundles/df2e77a08c4fed3f6d7a5e653e4ca2b2.svg new file mode 100644 index 00000000..7e96288c --- /dev/null +++ b/charting_library/bundles/df2e77a08c4fed3f6d7a5e653e4ca2b2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/drawing-toolbar.3ac6efdaf16c335ac4ea.js b/charting_library/bundles/drawing-toolbar.3ac6efdaf16c335ac4ea.js new file mode 100644 index 00000000..6ff3cf00 --- /dev/null +++ b/charting_library/bundles/drawing-toolbar.3ac6efdaf16c335ac4ea.js @@ -0,0 +1,16 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2878],{10745:e=>{e.exports={dropdown:"dropdown-m5d9X7vB",buttonWrap:"buttonWrap-m5d9X7vB",control:"control-m5d9X7vB",arrow:"arrow-m5d9X7vB",arrowIcon:"arrowIcon-m5d9X7vB",isOpened:"isOpened-m5d9X7vB",hover:"hover-m5d9X7vB",isGrayed:"isGrayed-m5d9X7vB"}},61226:e=>{e.exports={container:"container-68Nk42BD",mirror:"mirror-68Nk42BD",background:"background-68Nk42BD",arrow:"arrow-68Nk42BD"}},83860:e=>{e.exports={item:"item-x0Gb0fpu",label:"label-x0Gb0fpu"}},85494:e=>{e.exports={drawingToolbar:"drawingToolbar-3e32hIe9",isHidden:"isHidden-3e32hIe9",inner:"inner-3e32hIe9",popupMenuItem:"popupMenuItem-3e32hIe9",group:"group-3e32hIe9",noGroupPadding:"noGroupPadding-3e32hIe9",lastGroup:"lastGroup-3e32hIe9",fill:"fill-3e32hIe9",separator:"separator-3e32hIe9"}},84006:e=>{e.exports={toggleButton:"toggleButton-5IlBhjdP",collapsed:"collapsed-5IlBhjdP",background:"background-5IlBhjdP",arrow:"arrow-5IlBhjdP"}},88234:e=>{e.exports={wrap:"wrap-9Mqd4dY6",smallTablet:"smallTablet-9Mqd4dY6",mobileWrap:"mobileWrap-9Mqd4dY6",item:"item-9Mqd4dY6",hovered:"hovered-9Mqd4dY6",active:"active-9Mqd4dY6",title:"title-9Mqd4dY6",separator:"separator-9Mqd4dY6"}},48214:e=>{e.exports={buttonIcon:"buttonIcon-OGj1N2Ml",button:"button-OGj1N2Ml"}},60306:e=>{e.exports={wrap:"wrap-GVak88eE",scrollWrap:"scrollWrap-GVak88eE",noScrollBar:"noScrollBar-GVak88eE",content:"content-GVak88eE",icon:"icon-GVak88eE",scrollBot:"scrollBot-GVak88eE",scrollTop:"scrollTop-GVak88eE",isVisible:"isVisible-GVak88eE",iconWrap:"iconWrap-GVak88eE",fadeBot:"fadeBot-GVak88eE",fadeTop:"fadeTop-GVak88eE"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},63095:e=>{e.exports={item:"item-UZNJ2Dq5",label:"label-UZNJ2Dq5",labelRow:"labelRow-UZNJ2Dq5",toolbox:"toolbox-UZNJ2Dq5"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},90186:(e,t,o)=>{"use strict";function i(e){return s(e,a)}function n(e){return s(e,l)}function s(e,t){const o=Object.entries(e).filter(t),i={};for(const[e,t]of o)i[e]=t;return i}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function l(e){return 0===e[0].indexOf("aria-")} +o.d(t,{filterDataProps:()=>i,filterAriaProps:()=>n,filterProps:()=>s,isDataAttribute:()=>a,isAriaAttribute:()=>l})},26862:(e,t,o)=>{"use strict";o.r(t),o.d(t,{DrawingToolbarRenderer:()=>it});var i=o(59496),n=o(87995),s=o(88537),a=o(28353),l=o(97754),r=o.n(l),c=o(32563),h=o(56840),d=o(67337),u=o(85733),m=o(30460),p=o(76422),b=o(2872),g=o.n(b),v=o(49483),T=(o(84015),o(92469));class _{constructor(e){this._drawingsAccess=e||{tools:[],type:"black"}}isToolEnabled(e){const t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)}isToolGrayed(e){const t=this._findTool(e);return Boolean(t&&t.grayed)}_findTool(e){return this._drawingsAccess.tools.find(t=>t.name===e)}}var C=o(68335);const w=[{id:"linetool-group-cursors",title:(0,a.t)("Cursors"),items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"eraser"}],trackLabel:null},{id:"linetool-group-trend-line",title:(0,a.t)("Trend Line Tools"),items:[{name:"LineToolTrendLine",hotkeyHash:C.Modifiers.Alt+84},{name:"LineToolArrow"},{name:"LineToolRay"},{name:"LineToolInfoLine"},{name:"LineToolExtended"},{name:"LineToolTrendAngle"},{name:"LineToolHorzLine",hotkeyHash:C.Modifiers.Alt+72},{name:"LineToolHorzRay",hotkeyHash:C.Modifiers.Alt+74},{name:"LineToolVertLine",hotkeyHash:C.Modifiers.Alt+86},{name:"LineToolCrossLine",hotkeyHash:C.Modifiers.Alt+67},{name:"LineToolParallelChannel"},{name:"LineToolRegressionTrend"},{name:"LineToolFlatBottom"},{name:"LineToolDisjointAngle"},null].filter(Boolean),trackLabel:null},{id:"linetool-group-gann-and-fibonacci",title:(0,a.t)("Gann and Fibonacci Tools"),items:[{name:"LineToolFibRetracement",hotkeyHash:C.Modifiers.Alt+70},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"},{name:"LineToolFibChannel"},{name:"LineToolFibTimeZone"},{name:"LineToolGannSquare"},{name:"LineToolGannFixed"},{name:"LineToolGannComplex"},{name:"LineToolGannFan"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolPitchfan"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"}],trackLabel:null},{id:"linetool-group-geometric-shapes",title:(0,a.t)("Geometric Shapes"),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"},{name:"LineToolRectangle"},{name:"LineToolCircle"},{name:"LineToolEllipse"},{name:"LineToolPath"},{name:"LineToolBezierQuadro"},{name:"LineToolPolyline"},{name:"LineToolTriangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolArc"},{name:"LineToolBezierCubic"}],trackLabel:null},{id:"linetool-group-annotation",title:(0,a.t)("Annotation Tools"),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolNote"},{name:"LineToolNoteAbsolute"},{name:"LineToolSignpost"},null,null,null,{name:"LineToolCallout"},{name:"LineToolBalloon"},{name:"LineToolPriceLabel"},{name:"LineToolPriceNote"},{name:"LineToolArrowMarker"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"},{ +name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolFlagMark"}].filter(Boolean),trackLabel:null},{id:"linetool-group-patterns",title:(0,a.t)("Patterns"),items:[{name:"LineTool5PointsPattern"},{name:"LineToolCypherPattern"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"},{name:"LineToolHeadAndShoulders"},{name:"LineToolElliottImpulse"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottTripleCombo"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}],trackLabel:null},{id:"linetool-group-prediction-and-measurement",title:(0,a.t)("Prediction and Measurement Tools"),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolDateRange"},{name:"LineToolPriceRange"},{name:"LineToolDateAndPriceRange"},{name:"LineToolBarsPattern"},{name:"LineToolGhostFeed"},{name:"LineToolProjection"},{name:"LineToolFixedRangeVolumeProfile"}].filter(Boolean),trackLabel:null}];var k=o(85593),f=o(9837),S=o(9745),y=o(59199),M=o(68587),E=o(60306),D=o(33086);class L extends i.PureComponent{constructor(e){super(e),this._scroll=null,this._handleScrollTop=()=>{this.animateTo(Math.max(0,this.currentPosition()-(this.state.heightWrap-50)))},this._handleScrollBot=()=>{this.animateTo(Math.min((this.state.heightContent||0)-(this.state.heightWrap||0),this.currentPosition()+(this.state.heightWrap-50)))},this._handleResizeWrap=({height:e})=>{this.setState({heightWrap:e})},this._handleResizeContent=({height:e})=>{this.setState({heightContent:e})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtTop(),this.isAtBot()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleTopButton:e,isVisibleBotButton:t}=this.state,o=this.isAtTop(),i=this.isAtBot();o||e?o&&e&&this.setState({isVisibleTopButton:!1}):this.setState({isVisibleTopButton:!0}),i||t?i&&t&&this.setState({isVisibleBotButton:!1}):this.setState({isVisibleBotButton:!0})},this.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()}currentPosition(){return this._scroll?this._scroll.scrollTop:0}isAtTop(){return this.currentPosition()<=1}isAtBot(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1}animateTo(e,t=M.dur){const o=this._scroll;o&&(0,y.doAnimate)({onStep(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:M.easingFunc.easeInOutCubic,duration:t})}render(){const{children:e,isVisibleScrollbar:t,isVisibleFade:o,isVisibleButtons:n,onMouseOver:s,onMouseOut:a}=this.props,{heightContent:l,heightWrap:c,isVisibleBotButton:h,isVisibleTopButton:d}=this.state;return i.createElement(f,{whitelist:["height"],onMeasure:this._handleResizeWrap},i.createElement("div",{className:E.wrap,onMouseOver:s, +onMouseOut:a},i.createElement("div",{className:r()(E.scrollWrap,{[E.noScrollBar]:!t}),onScroll:this._handleScroll,ref:e=>this._scroll=e},i.createElement(f,{onMeasure:this._handleResizeContent,whitelist:["height"]},i.createElement("div",{className:E.content},e))),o&&i.createElement("div",{className:r()(E.fadeTop,{[E.isVisible]:d&&l>c})}),o&&i.createElement("div",{className:r()(E.fadeBot,{[E.isVisible]:h&&l>c})}),n&&i.createElement("div",{className:r()(E.scrollTop,{[E.isVisible]:d&&l>c}),onClick:this._handleScrollTop},i.createElement("div",{className:E.iconWrap},i.createElement(S.Icon,{icon:D,className:E.icon}))),n&&i.createElement("div",{className:r()(E.scrollBot,{[E.isVisible]:h&&l>c}),onClick:this._handleScrollBot},i.createElement("div",{className:E.iconWrap},i.createElement(S.Icon,{icon:D,className:E.icon})))))}}L.defaultProps={isVisibleScrollbar:!0};var A=o(25760),B=o(59064),I=o(16534);function N(e){const{id:t,action:o,isActive:n,isHidden:s,isTransparent:a,toolName:l}=e;return i.createElement(I.ToolButton,{id:t,icon:T.lineToolsInfo[l].icon,isActive:n,isHidden:s,isTransparent:a,onClick:o,title:T.lineToolsInfo[l].localizedName,"data-name":l})}var P=o(59803);const x=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61845,61440,61442,61444,61445,61446,61447,61452,61453,61454,61457,61458,61459,61461,61463,61466,61467,61470,61473,61476,61488,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61557,61558,61559,61560,61565,61566,61568,61572,61578,61601,61602,61603,61604,61605,61606,61607,61609,61610,61611,61654,61655,61656,61657,61658,61667,61669,61671,61675,61683,61698,61699,61700,61701,61702,61703,61708,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61749,61751,61753,61754,61757,61760,61768,61769,61770,61813,61814,61815,61816,61817,61820,61827,61829,61830,61832,61842];var F=o(50628),V=o(90186),W=o(41590),O=o(37049),G=o(10745);class R extends i.PureComponent{constructor(e){super(e),this._toggleDropdown=e=>{this.setState({isOpened:void 0!==e?e:!this.state.isOpened})},this._handleClose=()=>{this._toggleDropdown(!1)},this._getDropdownPosition=()=>{if(!this._control)return{x:0,y:0};const e=this._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},this._handleClickArrow=()=>{var e,t;null===(t=(e=this.props).onArrowClick)||void 0===t||t.call(e),this._toggleDropdown()},this._handleTouchStart=()=>{this.props.onClickButton&&this.props.onClickButton(),this._toggleDropdown()},this._handlePressStart=()=>{if(c.mobiletouch&&!this.props.checkable)!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton();else{if(this._doubleClickDelay)return clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay,void this._toggleDropdown(!0);this._doubleClickDelay=setTimeout(()=>{delete this._doubleClickDelay,!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton()},175)} +this._longPressDelay=setTimeout(()=>{delete this._longPressDelay,this._toggleDropdown(!0)},300)},this._cancelAllTimeouts=()=>{clearTimeout(this._longPressDelay),delete this._longPressDelay,clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay},this._handleTouchPressEnd=e=>{e.cancelable&&e.preventDefault(),this._handlePressEnd()},this._handlePressEnd=()=>{this._longPressDelay&&(clearTimeout(this._longPressDelay),delete this._longPressDelay,this.state.isOpened?this._toggleDropdown(!1):this.props.checkable||this.state.isOpened||c.mobiletouch||!this.props.isActive&&!this.props.openDropdownByClick?!this._doubleClickDelay&&this.props.onClickButton&&this.props.onClickButton():this._toggleDropdown(!0))},this.state={isOpened:!1}}render(){const{buttonActiveClass:e,buttonClass:t,buttonIcon:o,buttonTitle:n,buttonHotKey:s,dropdownTooltip:a,children:r,isActive:h,isGrayed:d,onClickWhenGrayed:u,checkable:m,isSmallTablet:p}=this.props,{isOpened:b}=this.state,g=(0,V.filterDataProps)(this.props);return i.createElement("div",{className:l(G.dropdown,{[G.isGrayed]:d,[G.isActive]:h,[G.isOpened]:b}),onClick:d?u:void 0},i.createElement("div",{...g,ref:e=>this._control=e,className:G.control},i.createElement("div",{...this._getButtonHandlers(),className:l(G.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(n||s)}),"data-tooltip-hotkey":s,"data-tooltip-delay":1500,"data-role":"button",title:n},i.createElement(I.ToolButton,{activeClass:e,className:t,icon:o,isActive:h,isGrayed:d,isTransparent:!m})),!d&&!c.mobiletouch&&i.createElement("div",{className:l(G.arrow,a&&"apply-common-tooltip common-tooltip-vertical"),title:a,onClick:this._handleClickArrow,"data-role":"menu-handle"},i.createElement(S.Icon,{className:G.arrowIcon,icon:O}))),!d&&(p?b&&i.createElement(W.Drawer,{onClose:this._handleClose,position:"Bottom"},r):i.createElement(F.PopupMenu,{doNotCloseOn:this,isOpened:b,onClose:this._handleClose,position:this._getDropdownPosition},r)))}_getButtonHandlers(){const{isGrayed:e,checkable:t}=this.props;return e?{}:c.mobiletouch?t?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}}}var H=o(51613),U=o(88234);class z extends i.Component{constructor(e){super(e),this._renderItem=(e,t)=>{const{isSmallTablet:o}=this.props,n=l(U.item,o&&U.smallTablet,t&&o&&this.state.isActive&&e===this.state.current&&U.active);return i.createElement("div",{className:n,key:e,onClick:()=>{this._handleSelect(e),(0,B.globalCloseMenu)()}},String.fromCharCode(e))},this._onChangeDrawingStateTool=()=>{this.setState({isActive:this._isActive()})},this._onChangeDrawingStateIcon=()=>{const e=u.iconTool.value();let{recents:t}=this.state;const o=t.indexOf(e);-1!==o&&t.splice(o,1),t=[e,...t.slice(0,9)],(0,h.setJSON)("linetoolicon.recenticons",t),this.setState({current:e,recents:t})},this._handleSelect=e=>{u.iconTool.setValue(e),u.tool.setValue("LineToolIcon")},this.state={current:(0, +P.defaults)("linetoolicon").icon,recents:(0,h.getJSON)("linetoolicon.recenticons")||[],isActive:this._isActive()}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingStateTool),u.iconTool.subscribe(this._onChangeDrawingStateIcon),h.onSync.subscribe(this,this._onSyncSettings)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingStateTool),u.iconTool.unsubscribe(this._onChangeDrawingStateIcon),h.onSync.unsubscribe(this,this._onSyncSettings)}render(){const{isSmallTablet:e,isMobileWrap:t}=this.props,{recents:o}=this.state,n=l(U.wrap,e&&U.smallTablet,t&&U.mobileWrap);return i.createElement(i.Fragment,null,o&&i.createElement(i.Fragment,null,e&&i.createElement("div",{className:U.title},(0,a.t)("Recently used")),i.createElement("div",{className:n},o.map(e=>this._renderItem(e,!0))),i.createElement(H.PopupMenuSeparator,{className:l(e&&U.separator)})),i.createElement("div",{key:"all",className:n},x.map(e=>this._renderItem(e))))}_isActive(){var e;return u.tool.value()===(null!==(e=this.props.toolName)&&void 0!==e?e:"LineToolIcon")}_onSyncSettings(){this.setState({recents:(0,h.getJSON)("linetoolicon.recenticons")})}}var j=o(48214);const Q={icon:(0,a.t)("Icon"),dropdownTooltip:(0,a.t)("Icons")};class J extends i.Component{constructor(e){super(e),this._onChangeDrawingStateTool=()=>{this.setState({isActive:this._isActive()})},this._onChangeDrawingStateIcon=()=>{const e=u.iconTool.value();this.setState({current:e})},this._handleSelect=e=>{u.iconTool.setValue(e),u.tool.setValue("LineToolIcon")},this._handleClick=()=>{const{current:e}=this.state;this._handleSelect(e||x[0]),this._trackClick()},this._handleArrowClick=()=>{this._trackClick("menu")},this.state={current:(0,P.defaults)("linetoolicon").icon,isActive:this._isActive()}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingStateTool),u.iconTool.subscribe(this._onChangeDrawingStateIcon)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingStateTool),u.iconTool.unsubscribe(this._onChangeDrawingStateIcon)}render(){const{isGrayed:e,toolName:t,isSmallTablet:o}=this.props,{current:n,isActive:s}=this.state,a=(0,V.filterDataProps)(this.props);return i.createElement(R,{buttonClass:j.button,buttonIcon:i.createElement("div",{className:j.buttonIcon},String.fromCharCode(n||x[0])),buttonTitle:Q.icon,dropdownTooltip:Q.dropdownTooltip,isActive:s,isGrayed:e,isSmallTablet:o,onClickButton:this._handleClick,onClickWhenGrayed:()=>(0,p.emit)("onGrayedObjectClicked",{type:"drawing",name:T.lineToolsInfo[t].localizedName}),onArrowClick:this._handleArrowClick,...a},i.createElement(z,{isSmallTablet:o,toolName:t}))}_isActive(){return u.tool.value()===this.props.toolName}_trackClick(e){0}}var q=o(88564);class K extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{this.props.saveDefaultOnChange&&(0,q.saveDefaultProperties)(!0);const e=!this.props.property.value();this.props.property.setValue(e),this.props.saveDefaultOnChange&&(0,q.saveDefaultProperties)(!1),this.props.onClick&&this.props.onClick(e)},this.state={isActive:this.props.property.value()}} +componentDidMount(){this.props.property.subscribe(this,this._onChange)}componentWillUnmount(){this.props.property.unsubscribe(this,this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=T.lineToolsInfo[e];return i.createElement(I.ToolButton,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}_onChange(e){this.setState({isActive:e.value()})}}class X extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{var e,t;u.tool.setValue(this.props.toolName),null===(t=(e=this.props).onClick)||void 0===t||t.call(e)},this._onChange=()=>{this.setState({isActive:u.tool.value()===this.props.toolName})},this.state={isActive:u.tool.value()===this.props.toolName}}componentDidMount(){u.tool.subscribe(this._onChange)}componentWillUnmount(){u.tool.unsubscribe(this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=T.lineToolsInfo[e];return i.createElement(I.ToolButton,{icon:T.lineToolsInfo[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}}class Y extends i.PureComponent{constructor(e){super(e),this._boundUndoModel=null,this._handleClick=()=>{const e=this._activeChartWidget();e.hasModel()&&e.model().zoomFromViewport()},this._syncUnzoomButton=()=>{const e=this._activeChartWidget();let t=!1;if(e.hasModel()){const o=e.model();this._boundUndoModel!==o&&(this._boundUndoModel&&this._boundUndoModel.zoomStack().onChange().unsubscribe(null,this._syncUnzoomButton),o.zoomStack().onChange().subscribe(null,this._syncUnzoomButton),this._boundUndoModel=o),t=!o.zoomStack().isEmpty()}else e.withModel(null,this._syncUnzoomButton);this.setState({isVisible:t})},this.state={isVisible:!1}}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)}render(){return this.state.isVisible?i.createElement(N,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):i.createElement("div",null)}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}}var Z=o(89377),$=o(36189),ee=o(16396),te=o(81332);class oe extends i.PureComponent{constructor(e){super(e),this._onChangeDrawingState=()=>{const e=this._getActiveToolIndex();this.setState({current:-1!==e?e:this.state.current,isActive:-1!==e})},this._handleClickButton=()=>{if(this._trackClick(),v.CheckMobile.any())return;const e=this._getCurrentToolName();this._selectTool(e)},this._handleClickItem=e=>{this._selectTool(e)},this._handleGrayedClick=e=>{(0,p.emit)("onGrayedObjectClicked",{type:"drawing",name:T.lineToolsInfo[e].localizedName})},this._handleClickFavorite=e=>{this.state.favState&&this.state.favState[e]?Z.LinetoolsFavoritesStore.removeFavorite(e):Z.LinetoolsFavoritesStore.addFavorite(e)},this._onAddFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!0}})}, +this._onRemoveFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!1}})},this._onSyncFavorites=()=>{this.setState({favState:this._composeFavState()})},this._handleArrowClick=()=>{this._trackClick("menu")},this._trackClick=e=>{const{trackLabel:t}=this.props};const t=this._getActiveToolIndex();this.state={current:-1===t?this._firstNonGrayedTool():t,favState:this._composeFavState(),isActive:-1!==t}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingState),Z.LinetoolsFavoritesStore.favoriteAdded.subscribe(null,this._onAddFavorite),Z.LinetoolsFavoritesStore.favoriteRemoved.subscribe(null,this._onRemoveFavorite),Z.LinetoolsFavoritesStore.favoritesSynced.subscribe(null,this._onSyncFavorites)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingState),Z.LinetoolsFavoritesStore.favoriteAdded.unsubscribe(null,this._onAddFavorite),Z.LinetoolsFavoritesStore.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),Z.LinetoolsFavoritesStore.favoritesSynced.unsubscribe(null,this._onSyncFavorites)}componentDidUpdate(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})}render(){const{favoriting:e,grayedTools:t,lineTools:o,dropdownTooltip:n,isSmallTablet:s}=this.props,{current:a,favState:l,isActive:r}=this.state,c=this._getCurrentToolName(),h=T.lineToolsInfo[c],d=this._showShortcuts(),u=(0,V.filterDataProps)(this.props);return i.createElement("span",null,i.createElement(R,{buttonIcon:h.icon,buttonTitle:h.localizedName,buttonHotKey:h.hotKey,dropdownTooltip:n,isActive:r,onClickButton:this._handleClickButton,onArrowClick:this._handleArrowClick,isSmallTablet:s,...u},o.map((o,n)=>{const c=o.name,h=T.lineToolsInfo[c],u=t[c];return i.createElement(ee.PopupMenuItem,{key:c,"data-name":o.name,theme:s?te.multilineLabelWithIconAndToolboxTheme:void 0,dontClosePopup:u,forceShowShortcuts:d,shortcut:!s&&o.hotkeyHash?(0,C.humanReadableHash)(o.hotkeyHash):void 0,icon:h.icon,isActive:r&&a===n,appearAsDisabled:u,label:h.localizedName,onClick:u?this._handleGrayedClick:this._handleClickItem,onClickArg:c,showToolboxOnHover:!l[c],toolbox:e&&!u?i.createElement($.FavoriteButton,{isActive:r&&a===n,isFilled:l[c],onClick:()=>this._handleClickFavorite(c)}):void 0})})))}_getCurrentToolName(){const{current:e}=this.state,{lineTools:t}=this.props;return t[e||0].name}_firstNonGrayedTool(){const{grayedTools:e,lineTools:t}=this.props;return t.findIndex(t=>!e[t.name])}_getActiveToolIndex(){return this.props.lineTools.findIndex(e=>e.name===u.tool.value())}_showShortcuts(){return this.props.lineTools.some(e=>"shortcut"in e)}_selectTool(e){u.tool.setValue(e)}_composeFavState(){const e={};return this.props.lineTools.forEach(t=>{e[t.name]=Z.LinetoolsFavoritesStore.isFavorite(t.name)}),e}}var ie=o(51768),ne=o(40173),se=o(83860);const ae=(0,ne.mergeThemes)(ee.DEFAULT_POPUP_MENU_ITEM_THEME,se),le={all:(0,a.t)("Remove Drawings & Indicators"),drawings:(0,a.t)("Remove Drawings"),studies:(0,a.t)("Remove Indicators")};class re extends i.PureComponent{constructor(){super(...arguments),this._handleRemoveToolClick=()=>{ +c.mobiletouch||this._handleRemoveDrawings(),he()},this._handleRemoveDrawings=()=>{ce("remove drawing"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},this._handleRemoveStudies=()=>{ce("remove indicator"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},this._handleRemoveAll=()=>{ce("remove all"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()}}render(){const e=this.props.isSmallTablet?ae:void 0;return i.createElement(R,{buttonIcon:T.lineToolsInfo[this.props.toolName].icon,buttonTitle:le.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName,onArrowClick:this._handleArrowClick,openDropdownByClick:!1},i.createElement(ee.PopupMenuItem,{"data-name":"remove-drawing-tools",label:le.drawings,onClick:this._handleRemoveDrawings,theme:e}),i.createElement(ee.PopupMenuItem,{"data-name":"remove-studies",label:le.studies,onClick:this._handleRemoveStudies,theme:e}),i.createElement(ee.PopupMenuItem,{"data-name":"remove-all",label:le.all,onClick:this._handleRemoveAll,theme:e}))}_handleArrowClick(){he("menu")}}function ce(e){(0,ie.trackEvent)("GUI","Chart Left Toolbar",e)}function he(e){0}var de=o(10458),ue=o(90995),me=o(14881);const pe=i.createContext({hideMode:"drawings",isActive:!1});function be(e){const{hideMode:t,option:{label:o,dataName:n,getBoxedValue:s},isSmallTablet:a,onClick:l}=e,{hideMode:r,isActive:c}=(0,i.useContext)(pe),h=null==s?void 0:s();return"all"===t||h?i.createElement(ee.PopupMenuItem,{label:o,isActive:r===t&&c,onClick:function(){l(t,(0,ue.toggleHideMode)(t))},"data-name":n,theme:a?ae:void 0}):i.createElement(i.Fragment,null)}const ge={drawings:{active:de.drawingToolsIcons.hideAllDrawingToolsActive,inactive:de.drawingToolsIcons.hideAllDrawingTools},indicators:{active:de.drawingToolsIcons.hideAllIndicatorsActive,inactive:de.drawingToolsIcons.hideAllIndicators},positions:{active:de.drawingToolsIcons.hideAllPositionsToolsActive,inactive:de.drawingToolsIcons.hideAllPositionsTools},all:{active:de.drawingToolsIcons.hideAllDrawingsActive,inactive:de.drawingToolsIcons.hideAllDrawings}};function ve(e){const{isSmallTablet:t}=e,[{isActive:o,hideMode:n},a]=(0,i.useState)(()=>({isActive:!1,hideMode:(0,ue.getSavedHideMode)()}));(0,i.useEffect)(()=>(me.hideStateChange.subscribe(null,a),()=>{me.hideStateChange.unsubscribe(null,a)}),[]);const l=T.lineToolsInfo.hideAllDrawings,{trackLabel:r,tooltip:c,dataName:h}=(0,s.ensureDefined)((0,ue.getHideOptions)().get(n)),d=ge[n][o?"active":"inactive"],u=o?c.active:c.inactive;return i.createElement(R,{buttonIcon:d,buttonTitle:u,buttonHotKey:l.hotKey,onClickButton:function(){(0,ue.toggleHideMode)(n),Te(r,!o),_e(o?"on":"off")},isSmallTablet:t,isActive:o,checkable:!0,"data-name":"hide-all","data-type":h,onArrowClick:function(){_e("menu")}},i.createElement(pe.Provider,{value:{isActive:o,hideMode:n}},Array.from((0,ue.getHideOptions)()).map(([e,o])=>i.createElement(be,{key:e,hideMode:e,option:o,isSmallTablet:t,onClick:m +}))));function m(e,t){Te((0,s.ensureDefined)((0,ue.getHideOptions)().get(e)).trackLabel,t)}}function Te(e,t){(0,ie.trackEvent)("GUI","Chart Left Toolbar",`${e} ${t?"on":"off"}`)}function _e(e){0}var Ce=o(12409),we=o(31330);const ke=(0,a.t)("Show Favorite Drawing Tools Toolbar");class fe extends i.PureComponent{constructor(){super(...arguments),this._instance=null,this._promise=null,this._bindedForceUpdate=()=>this.forceUpdate(),this._handleClick=()=>{null!==this._instance&&(this._instance.isVisible()?(this._instance.hide(),this._trackClick(!1)):(this._instance.show(),this._trackClick(!0)))}}componentDidMount(){const e=this._promise=(0,s.ensureNotNull)((0,Ce.getFavoriteDrawingToolbarPromise)());e.then(t=>{this._promise===e&&(this._instance=t,this._instance.canBeShown().subscribe(this._bindedForceUpdate),this._instance.visibility().subscribe(this._bindedForceUpdate),this.forceUpdate())})}componentWillUnmount(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)}render(){return null!==this._instance&&this._instance.canBeShown().value()?i.createElement(I.ToolButton,{id:this.props.id,icon:we,isActive:this._instance.isVisible(),onClick:this._handleClick,title:ke}):null}_trackClick(e){0}}var Se,ye=o(90373);!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(Se||(Se={}));var Me=o(70412),Ee=o(54475),De=o(45216),Le=o(29197),Ae=o(61226);const Be=Ae,Ie="http://www.w3.org/2000/svg";function Ne(e){const{direction:t,theme:o=Ae}=e;return i.createElement("svg",{xmlns:Ie,width:"9",height:"27",viewBox:"0 0 9 27",className:l(o.container,"right"===t?o.mirror:null),onContextMenu:Ee.preventDefault},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),i.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var Pe=o(84006);const xe=(0,ne.mergeThemes)(Be,Pe),Fe={hide:(0,a.t)("Hide Drawings Toolbar"),show:(0,a.t)("Show Drawings Toolbar")};class Ve extends i.PureComponent{constructor(){super(...arguments),this._toggleVisibility=()=>{k.isDrawingToolbarVisible.setValue(!k.isDrawingToolbarVisible.value())}}render(){const{toolbarVisible:e,"data-name":t}=this.props;return i.createElement("div",{className:l(xe.toggleButton,"apply-common-tooltip common-tooltip-vertical",!e&&xe.collapsed),onClick:this._toggleVisibility,title:e?Fe.hide:Fe.show,"data-name":t,"data-value":e?"visible":"collapsed"},i.createElement(Ne,{direction:e?"left":"right",theme:e?void 0:xe}))}}var We=o(37558),Oe=o(24437),Ge=o(90692);const Re={chartWidgetCollection:o(19036).any.isRequired};var He=o(55402),Ue=o(85494);const ze=d.enabled("right_toolbar"),je=d.enabled("keep_object_tree_widget_in_right_toolbar"),Qe={weakMagnet:(0,a.t)("Weak Magnet"),strongMagnet:(0,a.t)("Strong Magnet")},Je=(0, +v.onWidget)(),qe=new(g()),Ke=ie.trackEvent.bind(null,"GUI","Chart Left Toolbar"),Xe=(e,t)=>Ke(`${e} ${t?"on":"off"}`);function Ye(){const e=!u.properties().childs().magnet.value();Xe("magnet mode",e),ot("magnet mode",e?"on":"off"),(0,m.setIsMagnetEnabled)(e)}function Ze(){(0,ie.trackEvent)("GUI","Magnet mode","Weak"),(0,m.setMagnetMode)(ye.MagnetMode.WeakMagnet)}function $e(){(0,ie.trackEvent)("GUI","Magnet mode","Strong"),(0,m.setMagnetMode)(ye.MagnetMode.StrongMagnet)}function et(){ot("magnet mode","menu")}class tt extends i.PureComponent{constructor(e){var t;super(e),this._grayedTools={},this._handleMeasureClick=()=>{ot("measure")},this._handleZoomInClick=()=>{ot("zoom in")},this._handleDrawingClick=e=>{Xe("drawing mode",e),ot("drawing mode",e?"on":"off")},this._handleLockClick=e=>{Xe("lock all drawing",e),ot("lock",e?"on":"off")},this._handleSyncClick=e=>{Xe("sync",e),ot("sync",e?"on":"off")},this._handleObjectsTreeClick=()=>{this._activeChartWidget().showObjectsTreeDialog(),ot("object tree")},this._handleMouseOver=e=>{(0,Me.hoverMouseEventFilter)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{(0,Me.hoverMouseEventFilter)(e)&&this.setState({isHovered:!1})},this._handleChangeVisibility=e=>{this.setState({isVisible:e})},this._handleEsc=()=>{u.resetToCursor(!0)},this._updateMagnetEnabled=()=>{const e={magnet:(0,m.magnetEnabled)().value()};this.setState(e)},this._updateMagnetMode=()=>{const e={magnetMode:(0,m.magnetMode)().value()};this.setState(e)},this._handleWidgetbarSettled=e=>{var t;this.setState({isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:e})},this._handleWidgetbarVisible=e=>{this.setState({isWidgetbarVisible:e})},u.init(),this._toolsFilter=new _(this.props.drawingsAccess),this._filteredLineTools=w.map(e=>({id:e.id,title:e.title,items:e.items.filter(e=>this._toolsFilter.isToolEnabled(T.lineToolsInfo[e.name].localizedName)),trackLabel:e.trackLabel})).filter(e=>0!==e.items.length),this._filteredLineTools.forEach(e=>e.items.forEach(e=>{this._grayedTools[e.name]=this._toolsFilter.isToolGrayed(T.lineToolsInfo[e.name].localizedName)})),this.state={isHovered:!1,isVisible:k.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:u.properties().childs().magnet.value(),magnetMode:u.properties().childs().magnetMode.value()},this._features={favoriting:!Je&&d.enabled("items_favoriting"),multicharts:d.enabled("support_multicharts"),tools:!Je||d.enabled("charting_library_base")},this._registry={chartWidgetCollection:this.props.chartWidgetCollection},this._negotiateResizer()}componentDidMount(){var e;k.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),B.globalCloseDelegate.subscribe(this,this._handleGlobalClose),(0,m.magnetEnabled)().subscribe(this._updateMagnetEnabled),(0,m.magnetMode)().subscribe(this._updateMagnetMode),this._tool=u.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)), +this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),v.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))}componentWillUnmount(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),k.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),B.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose),(0,m.magnetEnabled)().unsubscribe(this._updateMagnetEnabled),(0,m.magnetMode)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()}componentDidUpdate(e,t){var o;const{isVisible:i,widgetbarSettled:n}=this.state;i!==t.isVisible&&(p.emit("toggle_sidebar",!i),h.setValue("ChartDrawingToolbarWidget.visible",i),this._negotiateResizer()),t.widgetbarSettled!==n&&n&&v.CheckMobile.any()&&(null===(o=window.widgetbar)||void 0===o||o.visible().subscribe(this._handleWidgetbarVisible))}render(){const{bgColor:e,chartWidgetCollection:t,readOnly:o}=this.props,{isHovered:n,isVisible:s,magnet:a,magnetMode:r}=this.state,h={backgroundColor:e&&"#"+e};let m;m=i.createElement(Ve,{toolbarVisible:s,"data-name":"toolbar-drawing-toggle-button"});const p=()=>!!this._features.tools&&!(!d.enabled("show_object_tree")||je&&!ze);return i.createElement(He.RegistryProvider,{validation:Re,value:this._registry},i.createElement(Le.CloseDelegateContext.Provider,{value:qe},i.createElement(We.DrawerManager,null,i.createElement(Ge.MatchMedia,{rule:Oe.DialogBreakpoints.TabletSmall},e=>i.createElement("div",{id:"drawing-toolbar",className:l(Ue.drawingToolbar,{[Ue.isHidden]:!s}),style:h,onClick:this.props.onClick,onContextMenu:Ee.preventDefaultForContextMenu},i.createElement(L,{onScroll:this._handleGlobalClose,isVisibleFade:c.mobiletouch,isVisibleButtons:!c.mobiletouch&&n,isVisibleScrollbar:!1,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:Ue.inner},!o&&i.createElement("div",{className:Ue.group,style:h},this._filteredLineTools.map((o,n)=>i.createElement(oe,{"data-name":o.id,chartWidgetCollection:t,favoriting:this._features.favoriting,grayedTools:this._grayedTools,key:n,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:e,trackLabel:o.trackLabel})),this._toolsFilter.isToolEnabled("Font Icons")&&i.createElement(J,{"data-name":"linetool-group-font-icons",isGrayed:this._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:e})),!o&&i.createElement("div",{className:Ue.group,style:h},i.createElement(X,{toolName:"measure",onClick:this._handleMeasureClick}),i.createElement(X,{toolName:"zoom",onClick:this._handleZoomInClick}),i.createElement(Y,{chartWidgetCollection:t})),!o&&i.createElement("div",{className:Ue.group,style:h},i.createElement(R,{"data-name":"magnet-button",buttonIcon:r===ye.MagnetMode.StrongMagnet?de.drawingToolsIcons.strongMagnet:de.drawingToolsIcons.magnet,buttonTitle:T.lineToolsInfo.magnet.localizedName,isActive:a,onClickButton:Ye, +buttonHotKey:T.lineToolsInfo.magnet.hotKey,checkable:!0,isSmallTablet:e,onArrowClick:et},i.createElement(ee.PopupMenuItem,{key:"weakMagnet",className:e?Ue.popupMenuItem:void 0,"data-name":"weakMagnet",icon:de.drawingToolsIcons.magnet,isActive:a&&r!==ye.MagnetMode.StrongMagnet,label:Qe.weakMagnet,onClick:Ze}),i.createElement(ee.PopupMenuItem,{key:"strongMagnet",className:e?Ue.popupMenuItem:void 0,"data-name":"strongMagnet",icon:de.drawingToolsIcons.strongMagnet,isActive:a&&r===ye.MagnetMode.StrongMagnet,label:Qe.strongMagnet,onClick:$e})),this._features.tools&&i.createElement(K,{property:u.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:this._handleDrawingClick}),this._features.tools&&i.createElement(K,{property:u.lockDrawings(),toolName:"lockAllDrawings",onClick:this._handleLockClick}),this._features.tools&&i.createElement(ve,{isSmallTablet:e}),!1),!o&&this._features.tools&&i.createElement("div",{className:Ue.group,style:h},i.createElement(re,{chartWidgetCollection:t,isSmallTablet:e,toolName:"removeAllDrawingTools"})),i.createElement("div",{className:Ue.fill,style:h}),!o&&(this._features.tools||!1)&&i.createElement("div",{className:l(Ue.group,Ue.lastGroup),style:h},!1,this._features.tools&&this._features.favoriting&&i.createElement(fe,{id:Se.FavoriteDrawings}),p()&&i.createElement(N,{id:Se.ObjectTree,action:this._handleObjectsTreeClick,toolName:"showObjectsTree"})))),m)))))}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}_negotiateResizer(){const e=De.TOOLBAR_WIDTH_COLLAPSED;this.props.resizerBridge.negotiateWidth(this.state.isVisible?De.TOOLBAR_WIDTH_EXPANDED:e)}_handleGlobalClose(){qe.fire()}_updateHotkeys(){this._hotkeys.promote()}_initHotkeys(){this._hotkeys=A.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:()=>this._handleEsc(),isDisabled:()=>u.toolIsCursor(u.tool.value())})}}function ot(e,t){0}class it{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,n.render(i.createElement(tt,{...t,ref:this._handleRef}),this._container)}destroy(){n.unmountComponentAtNode(this._container)}getComponent(){return(0,s.ensureNotNull)(this._component)}}},55402:(e,t,o)=>{"use strict";o.d(t,{validateRegistry:()=>l,RegistryProvider:()=>r,registryContextType:()=>c});var i=o(59496),n=o(19036),s=o.n(n);const a=i.createContext({});function l(e,t){s().checkPropTypes(t,e,"context","RegistryContext")}function r(e){const{validation:t,value:o}=e;return l(o,t),i.createElement(a.Provider,{value:o},e.children)}function c(){return a}},24437:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>n});var i=o(96746);const n={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>n,DrawerContext:()=>s});var i=o(59496);class n extends i.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({ +currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return i.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const s=i.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>m});var i=o(59496),n=o(88537),s=o(97754),a=o(59142),l=o(43989),r=o(65718),c=o(37558),h=o(49483),d=o(29197),u=o(66998);function m(e){const{position:t="Bottom",onClose:o,children:m,className:p,theme:b=u}=e,g=(0,n.ensureNotNull)((0,i.useContext)(c.DrawerContext)),[v,T]=(0,i.useState)(0),_=(0,i.useRef)(null),C=(0,i.useContext)(d.CloseDelegateContext);return(0,i.useEffect)(()=>{const e=(0,n.ensureNotNull)(_.current);return e.focus({preventScroll:!0}),C.subscribe(g,o),0===g.currentDrawer&&(0,l.setFixedBodyState)(!0),h.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),T(g.addDrawer()),()=>{C.unsubscribe(g,o);const t=g.removeDrawer();h.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,l.setFixedBodyState)(!1)}},[]),i.createElement(r.Portal,null,i.createElement("div",{className:s(u.wrap,u["position"+t])},v===g.currentDrawer&&i.createElement("div",{className:u.backdrop,onClick:o}),i.createElement("div",{className:s(u.drawer,b.drawer,u["position"+t],p),ref:_,tabIndex:-1,"data-name":e["data-name"]},m)))}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>d});var i=o(28353),n=o(59496),s=o(97754),a=o(9745),l=o(20614),r=o(55783),c=o(16842);const h={add:(0,i.t)("Add to favorites"),remove:(0,i.t)("Remove from favorites")};function d(e){const{className:t,isFilled:o,isActive:i,onClick:d,...u}=e;return n.createElement(a.Icon,{...u,className:s(c.favorite,"apply-common-tooltip",o&&c.checked,i&&c.active,t),icon:o?l:r,onClick:d,title:o?h.remove:h.add})}},70412:(e,t,o)=>{"use strict";o.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>a,useHover:()=>n});var i=o(59496);function n(){const[e,t]=(0,i.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function a(e){const[t,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{const t=t=>{if(null===e.current)return;const i=e.current.contains(t.target);o(i)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>u});var i=o(59496),n=o(97754),s=o(59064),a=o(51768),l=o(90186),r=o(23576);const c=r;function h(e){const{reference:t,...o}=e,n={...o,ref:t};return i.createElement(e.href?"a":"div",n)}function d(e){e.stopPropagation()}function u(e){ +const{id:t,role:o,"aria-selected":c,className:u,title:m,labelRowClassName:p,labelClassName:b,shortcut:g,forceShowShortcuts:v,icon:T,isActive:_,isDisabled:C,isHovered:w,appearAsDisabled:k,label:f,link:S,showToolboxOnHover:y,target:M,rel:E,toolbox:D,reference:L,onMouseOut:A,onMouseOver:B,suppressToolboxClick:I=!0,theme:N=r}=e,P=(0,l.filterDataProps)(e),x=(0,i.useRef)(null);return i.createElement(h,{...P,id:t,role:o,"aria-selected":c,className:n(u,N.item,T&&N.withIcon,{[N.isActive]:_,[N.isDisabled]:C||k,[N.hovered]:w}),title:m,href:S,target:M,rel:E,reference:function(e){x.current=e,"function"==typeof L&&L(e);"object"==typeof L&&(L.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:i,onClickArg:n,trackEventObject:l}=e;if(C)return;l&&(0,a.trackEvent)(l.category,l.event,l.label);i&&i(n,t);o||(0,s.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:i}=e;o&&i&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:i}=e;if(1===t.button&&S&&o){let e=o.label;i&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:B,onMouseOut:A},void 0!==T&&i.createElement("div",{className:N.icon,dangerouslySetInnerHTML:{__html:T}}),i.createElement("div",{className:n(N.labelRow,p)},i.createElement("div",{className:n(N.label,b)},f)),(void 0!==g||v)&&i.createElement("div",{className:N.shortcut},(F=g)&&F.split("+").join(" + ")),void 0!==D&&i.createElement("div",{onClick:I?d:void 0,className:n(N.toolbox,{[N.showOnHover]:y})},D));var F}},81332:(e,t,o)=>{"use strict";o.d(t,{multilineLabelWithIconAndToolboxTheme:()=>a});var i=o(40173),n=o(23576),s=o(63095);const a=(0,i.mergeThemes)(n,s)},51613:(e,t,o)=>{"use strict";o.d(t,{PopupMenuSeparator:()=>l});var i=o(59496),n=o(97754),s=o.n(n),a=o(524);function l(e){const{size:t="normal",className:o}=e;return i.createElement("div",{className:s()(a.separator,"small"===t&&a.small,"normal"===t&&a.normal,"large"===t&&a.large,o)})}},33086:e=>{e.exports=''},31330:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/drawing-toolbar.5b28dda6a3b56e3f7110.js b/charting_library/bundles/drawing-toolbar.5b28dda6a3b56e3f7110.js deleted file mode 100644 index a116185d..00000000 --- a/charting_library/bundles/drawing-toolbar.5b28dda6a3b56e3f7110.js +++ /dev/null @@ -1,15 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2878],{10745:e=>{e.exports={dropdown:"dropdown-m5d9X7vB",buttonWrap:"buttonWrap-m5d9X7vB",control:"control-m5d9X7vB",arrow:"arrow-m5d9X7vB",arrowIcon:"arrowIcon-m5d9X7vB",isOpened:"isOpened-m5d9X7vB",hover:"hover-m5d9X7vB",isGrayed:"isGrayed-m5d9X7vB"}},61226:e=>{e.exports={container:"container-68Nk42BD",mirror:"mirror-68Nk42BD",background:"background-68Nk42BD",arrow:"arrow-68Nk42BD"}},83860:e=>{e.exports={item:"item-x0Gb0fpu",label:"label-x0Gb0fpu"}},85494:e=>{e.exports={drawingToolbar:"drawingToolbar-3e32hIe9",isHidden:"isHidden-3e32hIe9",inner:"inner-3e32hIe9",popupMenuItem:"popupMenuItem-3e32hIe9",group:"group-3e32hIe9",noGroupPadding:"noGroupPadding-3e32hIe9",lastGroup:"lastGroup-3e32hIe9",fill:"fill-3e32hIe9",separator:"separator-3e32hIe9"}},84006:e=>{e.exports={toggleButton:"toggleButton-5IlBhjdP",collapsed:"collapsed-5IlBhjdP",background:"background-5IlBhjdP",arrow:"arrow-5IlBhjdP"}},88234:e=>{e.exports={wrap:"wrap-9Mqd4dY6",smallTablet:"smallTablet-9Mqd4dY6",mobileWrap:"mobileWrap-9Mqd4dY6",item:"item-9Mqd4dY6",hovered:"hovered-9Mqd4dY6",active:"active-9Mqd4dY6",title:"title-9Mqd4dY6",separator:"separator-9Mqd4dY6"}},48214:e=>{e.exports={buttonIcon:"buttonIcon-OGj1N2Ml",button:"button-OGj1N2Ml"}},60306:e=>{e.exports={wrap:"wrap-GVak88eE",scrollWrap:"scrollWrap-GVak88eE",noScrollBar:"noScrollBar-GVak88eE",content:"content-GVak88eE",icon:"icon-GVak88eE",scrollBot:"scrollBot-GVak88eE",scrollTop:"scrollTop-GVak88eE",isVisible:"isVisible-GVak88eE",iconWrap:"iconWrap-GVak88eE",fadeBot:"fadeBot-GVak88eE",fadeTop:"fadeTop-GVak88eE"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},63095:e=>{e.exports={item:"item-UZNJ2Dq5",label:"label-UZNJ2Dq5",labelRow:"labelRow-UZNJ2Dq5",toolbox:"toolbox-UZNJ2Dq5"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},90186:(e,t,o)=>{"use strict";function i(e){return s(e,a)}function n(e){return s(e,l)}function s(e,t){const o=Object.entries(e).filter(t),i={};for(const[e,t]of o)i[e]=t;return i}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function l(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>i,filterAriaProps:()=>n,filterProps:()=>s,isDataAttribute:()=>a,isAriaAttribute:()=>l})},26862:(e,t,o)=>{"use strict";o.r(t),o.d(t,{DrawingToolbarRenderer:()=>it}) -;var i=o(59496),n=o(87995),s=o(88537),a=o(28353),l=o(97754),r=o.n(l),c=o(32563),d=o(56840),h=o(67337),u=o(85733),m=o(30460),p=o(76422),g=o(2872),b=o.n(g),v=o(49483),T=(o(84015),o(92469));class _{constructor(e){this._drawingsAccess=e||{tools:[],type:"black"}}isToolEnabled(e){const t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)}isToolGrayed(e){const t=this._findTool(e);return Boolean(t&&t.grayed)}_findTool(e){return this._drawingsAccess.tools.find(t=>t.name===e)}}var C=o(68335);const w=[{id:"linetool-group-cursors",title:(0,a.t)("Cursors"),items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"eraser"}],trackLabel:null},{id:"linetool-group-trend-line",title:(0,a.t)("Trend Line Tools"),items:[{name:"LineToolTrendLine",hotkeyHash:C.Modifiers.Alt+84},{name:"LineToolArrow"},{name:"LineToolRay"},{name:"LineToolInfoLine"},{name:"LineToolExtended"},{name:"LineToolTrendAngle"},{name:"LineToolHorzLine",hotkeyHash:C.Modifiers.Alt+72},{name:"LineToolHorzRay",hotkeyHash:C.Modifiers.Alt+74},{name:"LineToolVertLine",hotkeyHash:C.Modifiers.Alt+86},{name:"LineToolCrossLine",hotkeyHash:C.Modifiers.Alt+67},{name:"LineToolParallelChannel"},{name:"LineToolRegressionTrend"},{name:"LineToolFlatBottom"},{name:"LineToolDisjointAngle"},null].filter(Boolean),trackLabel:null},{id:"linetool-group-gann-and-fibonacci",title:(0,a.t)("Gann and Fibonacci Tools"),items:[{name:"LineToolFibRetracement",hotkeyHash:C.Modifiers.Alt+70},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"},{name:"LineToolFibChannel"},{name:"LineToolFibTimeZone"},{name:"LineToolGannSquare"},{name:"LineToolGannFixed"},{name:"LineToolGannComplex"},{name:"LineToolGannFan"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolPitchfan"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"}],trackLabel:null},{id:"linetool-group-geometric-shapes",title:(0,a.t)("Geometric Shapes"),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"},{name:"LineToolRectangle"},{name:"LineToolCircle"},{name:"LineToolEllipse"},{name:"LineToolPath"},{name:"LineToolBezierQuadro"},{name:"LineToolPolyline"},{name:"LineToolTriangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolArc"},{name:"LineToolBezierCubic"}],trackLabel:null},{id:"linetool-group-annotation",title:(0,a.t)("Annotation Tools"),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolNote"},{name:"LineToolNoteAbsolute"},{name:"LineToolSignpost"},null,null,null,{name:"LineToolCallout"},{name:"LineToolBalloon"},{name:"LineToolPriceLabel"},{name:"LineToolPriceNote"},{name:"LineToolArrowMarker"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"},{name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolFlagMark"}].filter(Boolean),trackLabel:null},{id:"linetool-group-patterns",title:(0,a.t)("Patterns"),items:[{ -name:"LineTool5PointsPattern"},{name:"LineToolCypherPattern"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"},{name:"LineToolHeadAndShoulders"},{name:"LineToolElliottImpulse"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottTripleCombo"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}],trackLabel:null},{id:"linetool-group-prediction-and-measurement",title:(0,a.t)("Prediction and Measurement Tools"),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolDateRange"},{name:"LineToolPriceRange"},{name:"LineToolDateAndPriceRange"},{name:"LineToolBarsPattern"},{name:"LineToolGhostFeed"},{name:"LineToolProjection"},{name:"LineToolFixedRangeVolumeProfile"}].filter(Boolean),trackLabel:null}];var k=o(85593),f=o(9837),S=o(9745),E=o(59199),y=o(68587),M=o(60306),D=o(33086);class L extends i.PureComponent{constructor(e){super(e),this._scroll=null,this._handleScrollTop=()=>{this.animateTo(Math.max(0,this.currentPosition()-(this.state.heightWrap-50)))},this._handleScrollBot=()=>{this.animateTo(Math.min((this.state.heightContent||0)-(this.state.heightWrap||0),this.currentPosition()+(this.state.heightWrap-50)))},this._handleResizeWrap=({height:e})=>{this.setState({heightWrap:e})},this._handleResizeContent=({height:e})=>{this.setState({heightContent:e})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtTop(),this.isAtBot()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleTopButton:e,isVisibleBotButton:t}=this.state,o=this.isAtTop(),i=this.isAtBot();o||e?o&&e&&this.setState({isVisibleTopButton:!1}):this.setState({isVisibleTopButton:!0}),i||t?i&&t&&this.setState({isVisibleBotButton:!1}):this.setState({isVisibleBotButton:!0})},this.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()}currentPosition(){return this._scroll?this._scroll.scrollTop:0}isAtTop(){return this.currentPosition()<=1}isAtBot(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1}animateTo(e,t=y.dur){const o=this._scroll;o&&(0,E.doAnimate)({onStep(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:y.easingFunc.easeInOutCubic,duration:t})}render(){const{children:e,isVisibleScrollbar:t,isVisibleFade:o,isVisibleButtons:n,onMouseOver:s,onMouseOut:a}=this.props,{heightContent:l,heightWrap:c,isVisibleBotButton:d,isVisibleTopButton:h}=this.state;return i.createElement(f,{whitelist:["height"],onMeasure:this._handleResizeWrap},i.createElement("div",{className:M.wrap,onMouseOver:s,onMouseOut:a},i.createElement("div",{className:r()(M.scrollWrap,{[M.noScrollBar]:!t}),onScroll:this._handleScroll,ref:e=>this._scroll=e},i.createElement(f,{ -onMeasure:this._handleResizeContent,whitelist:["height"]},i.createElement("div",{className:M.content},e))),o&&i.createElement("div",{className:r()(M.fadeTop,{[M.isVisible]:h&&l>c})}),o&&i.createElement("div",{className:r()(M.fadeBot,{[M.isVisible]:d&&l>c})}),n&&i.createElement("div",{className:r()(M.scrollTop,{[M.isVisible]:h&&l>c}),onClick:this._handleScrollTop},i.createElement("div",{className:M.iconWrap},i.createElement(S.Icon,{icon:D,className:M.icon}))),n&&i.createElement("div",{className:r()(M.scrollBot,{[M.isVisible]:d&&l>c}),onClick:this._handleScrollBot},i.createElement("div",{className:M.iconWrap},i.createElement(S.Icon,{icon:D,className:M.icon})))))}}L.defaultProps={isVisibleScrollbar:!0};var A=o(25760),N=o(59064),I=o(16534);function B(e){const{id:t,action:o,isActive:n,isHidden:s,isTransparent:a,toolName:l}=e;return i.createElement(I.ToolButton,{id:t,icon:T.lineToolsInfo[l].icon,isActive:n,isHidden:s,isTransparent:a,onClick:o,title:T.lineToolsInfo[l].localizedName,"data-name":l})}var P=o(59803);const F=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61845,61440,61442,61444,61445,61446,61447,61452,61453,61454,61457,61458,61459,61461,61463,61466,61467,61470,61473,61476,61488,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61557,61558,61559,61560,61565,61566,61568,61572,61578,61601,61602,61603,61604,61605,61606,61607,61609,61610,61611,61654,61655,61656,61657,61658,61667,61669,61671,61675,61683,61698,61699,61700,61701,61702,61703,61708,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61749,61751,61753,61754,61757,61760,61768,61769,61770,61813,61814,61815,61816,61817,61820,61827,61829,61830,61832,61842];var x=o(50628),V=o(90186),O=o(41590),W=o(37049),G=o(10745);class R extends i.PureComponent{constructor(e){super(e),this._toggleDropdown=e=>{this.setState({isOpened:void 0!==e?e:!this.state.isOpened})},this._handleClose=()=>{this._toggleDropdown(!1)},this._getDropdownPosition=()=>{if(!this._control)return{x:0,y:0};const e=this._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},this._handleClickArrow=()=>{var e,t;null===(t=(e=this.props).onArrowClick)||void 0===t||t.call(e),this._toggleDropdown()},this._handleTouchStart=()=>{this.props.onClickButton&&this.props.onClickButton(),this._toggleDropdown()},this._handlePressStart=()=>{if(c.mobiletouch&&!this.props.checkable)!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton();else{if(this._doubleClickDelay)return clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay,void this._toggleDropdown(!0);this._doubleClickDelay=setTimeout(()=>{delete this._doubleClickDelay,!this._longPressDelay&&this.props.onClickButton&&this.props.onClickButton()},175)}this._longPressDelay=setTimeout(()=>{delete this._longPressDelay,this._toggleDropdown(!0)},300)},this._cancelAllTimeouts=()=>{clearTimeout(this._longPressDelay), -delete this._longPressDelay,clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay},this._handleTouchPressEnd=e=>{e.cancelable&&e.preventDefault(),this._handlePressEnd()},this._handlePressEnd=()=>{this._longPressDelay&&(clearTimeout(this._longPressDelay),delete this._longPressDelay,this.state.isOpened?this._toggleDropdown(!1):this.props.checkable||this.state.isOpened||c.mobiletouch||!this.props.isActive&&!this.props.openDropdownByClick?!this._doubleClickDelay&&this.props.onClickButton&&this.props.onClickButton():this._toggleDropdown(!0))},this.state={isOpened:!1}}render(){const{buttonActiveClass:e,buttonClass:t,buttonIcon:o,buttonTitle:n,buttonHotKey:s,dropdownTooltip:a,children:r,isActive:d,isGrayed:h,onClickWhenGrayed:u,checkable:m,isSmallTablet:p}=this.props,{isOpened:g}=this.state,b=(0,V.filterDataProps)(this.props);return i.createElement("div",{className:l(G.dropdown,{[G.isGrayed]:h,[G.isActive]:d,[G.isOpened]:g}),onClick:h?u:void 0},i.createElement("div",{...b,ref:e=>this._control=e,className:G.control},i.createElement("div",{...this._getButtonHandlers(),className:l(G.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(n||s)}),"data-tooltip-hotkey":s,"data-tooltip-delay":1500,"data-role":"button",title:n},i.createElement(I.ToolButton,{activeClass:e,className:t,icon:o,isActive:d,isGrayed:h,isTransparent:!m})),!h&&!c.mobiletouch&&i.createElement("div",{className:l(G.arrow,a&&"apply-common-tooltip common-tooltip-vertical"),title:a,onClick:this._handleClickArrow,"data-role":"menu-handle"},i.createElement(S.Icon,{className:G.arrowIcon,icon:W}))),!h&&(p?g&&i.createElement(O.Drawer,{onClose:this._handleClose,position:"Bottom"},r):i.createElement(x.PopupMenu,{doNotCloseOn:this,isOpened:g,onClose:this._handleClose,position:this._getDropdownPosition},r)))}_getButtonHandlers(){const{isGrayed:e,checkable:t}=this.props;return e?{}:c.mobiletouch?t?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}}}var H=o(51613),U=o(88234);class z extends i.Component{constructor(e){super(e),this._renderItem=(e,t)=>{const{isSmallTablet:o}=this.props,n=l(U.item,o&&U.smallTablet,t&&o&&this.state.isActive&&e===this.state.current&&U.active);return i.createElement("div",{className:n,key:e,onClick:()=>{this._handleSelect(e),(0,N.globalCloseMenu)()}},String.fromCharCode(e))},this._onChangeDrawingStateTool=()=>{this.setState({isActive:this._isActive()})},this._onChangeDrawingStateIcon=()=>{const e=u.iconTool.value();let{recents:t}=this.state;const o=t.indexOf(e);-1!==o&&t.splice(o,1),t=[e,...t.slice(0,9)],(0,d.setJSON)("linetoolicon.recenticons",t),this.setState({current:e,recents:t})},this._handleSelect=e=>{u.iconTool.setValue(e),u.tool.setValue("LineToolIcon")},this.state={current:(0,P.defaults)("linetoolicon").icon,recents:(0,d.getJSON)("linetoolicon.recenticons")||[],isActive:this._isActive()}}componentDidMount(){ -u.tool.subscribe(this._onChangeDrawingStateTool),u.iconTool.subscribe(this._onChangeDrawingStateIcon),d.onSync.subscribe(this,this._onSyncSettings)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingStateTool),u.iconTool.unsubscribe(this._onChangeDrawingStateIcon),d.onSync.unsubscribe(this,this._onSyncSettings)}render(){const{isSmallTablet:e,isMobileWrap:t}=this.props,{recents:o}=this.state,n=l(U.wrap,e&&U.smallTablet,t&&U.mobileWrap);return i.createElement(i.Fragment,null,o&&i.createElement(i.Fragment,null,e&&i.createElement("div",{className:U.title},(0,a.t)("Recently used")),i.createElement("div",{className:n},o.map(e=>this._renderItem(e,!0))),i.createElement(H.PopupMenuSeparator,{className:l(e&&U.separator)})),i.createElement("div",{key:"all",className:n},F.map(e=>this._renderItem(e))))}_isActive(){var e;return u.tool.value()===(null!==(e=this.props.toolName)&&void 0!==e?e:"LineToolIcon")}_onSyncSettings(){this.setState({recents:(0,d.getJSON)("linetoolicon.recenticons")})}}var j=o(48214);const q={icon:(0,a.t)("Icon"),dropdownTooltip:(0,a.t)("Icons")};class J extends i.Component{constructor(e){super(e),this._onChangeDrawingStateTool=()=>{this.setState({isActive:this._isActive()})},this._onChangeDrawingStateIcon=()=>{const e=u.iconTool.value();this.setState({current:e})},this._handleSelect=e=>{u.iconTool.setValue(e),u.tool.setValue("LineToolIcon")},this._handleClick=()=>{const{current:e}=this.state;this._handleSelect(e||F[0]),this._trackClick()},this._handleArrowClick=()=>{this._trackClick("menu")},this.state={current:(0,P.defaults)("linetoolicon").icon,isActive:this._isActive()}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingStateTool),u.iconTool.subscribe(this._onChangeDrawingStateIcon)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingStateTool),u.iconTool.unsubscribe(this._onChangeDrawingStateIcon)}render(){const{isGrayed:e,toolName:t,isSmallTablet:o}=this.props,{current:n,isActive:s}=this.state,a=(0,V.filterDataProps)(this.props);return i.createElement(R,{buttonClass:j.button,buttonIcon:i.createElement("div",{className:j.buttonIcon},String.fromCharCode(n||F[0])),buttonTitle:q.icon,dropdownTooltip:q.dropdownTooltip,isActive:s,isGrayed:e,isSmallTablet:o,onClickButton:this._handleClick,onClickWhenGrayed:()=>(0,p.emit)("onGrayedObjectClicked",{type:"drawing",name:T.lineToolsInfo[t].localizedName}),onArrowClick:this._handleArrowClick,...a},i.createElement(z,{isSmallTablet:o,toolName:t}))}_isActive(){return u.tool.value()===this.props.toolName}_trackClick(e){0}}var K=o(88564);class X extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{this.props.saveDefaultOnChange&&(0,K.saveDefaultProperties)(!0);const e=!this.props.property.value();this.props.property.setValue(e),this.props.saveDefaultOnChange&&(0,K.saveDefaultProperties)(!1),this.props.onClick&&this.props.onClick(e)},this.state={isActive:this.props.property.value()}}componentDidMount(){this.props.property.subscribe(this,this._onChange)}componentWillUnmount(){this.props.property.unsubscribe(this,this._onChange) -}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=T.lineToolsInfo[e];return i.createElement(I.ToolButton,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}_onChange(e){this.setState({isActive:e.value()})}}class Y extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{var e,t;u.tool.setValue(this.props.toolName),null===(t=(e=this.props).onClick)||void 0===t||t.call(e)},this._onChange=()=>{this.setState({isActive:u.tool.value()===this.props.toolName})},this.state={isActive:u.tool.value()===this.props.toolName}}componentDidMount(){u.tool.subscribe(this._onChange)}componentWillUnmount(){u.tool.unsubscribe(this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=T.lineToolsInfo[e];return i.createElement(I.ToolButton,{icon:T.lineToolsInfo[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}}class Z extends i.PureComponent{constructor(e){super(e),this._boundUndoModel=null,this._handleClick=()=>{const e=this._activeChartWidget();e.hasModel()&&e.model().zoomFromViewport()},this._syncUnzoomButton=()=>{const e=this._activeChartWidget();let t=!1;if(e.hasModel()){const o=e.model();this._boundUndoModel!==o&&(this._boundUndoModel&&this._boundUndoModel.zoomStack().onChange().unsubscribe(null,this._syncUnzoomButton),o.zoomStack().onChange().subscribe(null,this._syncUnzoomButton),this._boundUndoModel=o),t=!o.zoomStack().isEmpty()}else e.withModel(null,this._syncUnzoomButton);this.setState({isVisible:t})},this.state={isVisible:!1}}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)}render(){return this.state.isVisible?i.createElement(B,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):i.createElement("div",null)}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}}var Q=o(89377),$=o(36189),ee=o(16396),te=o(81332);class oe extends i.PureComponent{constructor(e){super(e),this._onChangeDrawingState=()=>{const e=this._getActiveToolIndex();this.setState({current:-1!==e?e:this.state.current,isActive:-1!==e})},this._handleClickButton=()=>{if(this._trackClick(),v.CheckMobile.any())return;const e=this._getCurrentToolName();this._selectTool(e)},this._handleClickItem=e=>{this._selectTool(e)},this._handleGrayedClick=e=>{(0,p.emit)("onGrayedObjectClicked",{type:"drawing",name:T.lineToolsInfo[e].localizedName})},this._handleClickFavorite=e=>{this.state.favState&&this.state.favState[e]?Q.LinetoolsFavoritesStore.removeFavorite(e):Q.LinetoolsFavoritesStore.addFavorite(e)},this._onAddFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!0}})},this._onRemoveFavorite=e=>{this.setState({favState:{...this.state.favState,[e]:!1}})},this._onSyncFavorites=()=>{this.setState({favState:this._composeFavState()})}, -this._handleArrowClick=()=>{this._trackClick("menu")},this._trackClick=e=>{const{trackLabel:t}=this.props};const t=this._getActiveToolIndex();this.state={current:-1===t?this._firstNonGrayedTool():t,favState:this._composeFavState(),isActive:-1!==t}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingState),Q.LinetoolsFavoritesStore.favoriteAdded.subscribe(null,this._onAddFavorite),Q.LinetoolsFavoritesStore.favoriteRemoved.subscribe(null,this._onRemoveFavorite),Q.LinetoolsFavoritesStore.favoritesSynced.subscribe(null,this._onSyncFavorites)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingState),Q.LinetoolsFavoritesStore.favoriteAdded.unsubscribe(null,this._onAddFavorite),Q.LinetoolsFavoritesStore.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),Q.LinetoolsFavoritesStore.favoritesSynced.unsubscribe(null,this._onSyncFavorites)}componentDidUpdate(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})}render(){const{favoriting:e,grayedTools:t,lineTools:o,dropdownTooltip:n,isSmallTablet:s}=this.props,{current:a,favState:l,isActive:r}=this.state,c=this._getCurrentToolName(),d=T.lineToolsInfo[c],h=this._showShortcuts(),u=(0,V.filterDataProps)(this.props);return i.createElement("span",null,i.createElement(R,{buttonIcon:d.icon,buttonTitle:d.localizedName,buttonHotKey:d.hotKey,dropdownTooltip:n,isActive:r,onClickButton:this._handleClickButton,onArrowClick:this._handleArrowClick,isSmallTablet:s,...u},o.map((o,n)=>{const c=o.name,d=T.lineToolsInfo[c],u=t[c];return i.createElement(ee.PopupMenuItem,{key:c,"data-name":o.name,theme:s?te.multilineLabelWithIconAndToolboxTheme:void 0,dontClosePopup:u,forceShowShortcuts:h,shortcut:!s&&o.hotkeyHash?(0,C.humanReadableHash)(o.hotkeyHash):void 0,icon:d.icon,isActive:r&&a===n,appearAsDisabled:u,label:d.localizedName,onClick:u?this._handleGrayedClick:this._handleClickItem,onClickArg:c,showToolboxOnHover:!l[c],toolbox:e&&!u?i.createElement($.FavoriteButton,{isActive:r&&a===n,isFilled:l[c],onClick:()=>this._handleClickFavorite(c)}):void 0})})))}_getCurrentToolName(){const{current:e}=this.state,{lineTools:t}=this.props;return t[e||0].name}_firstNonGrayedTool(){const{grayedTools:e,lineTools:t}=this.props;return t.findIndex(t=>!e[t.name])}_getActiveToolIndex(){return this.props.lineTools.findIndex(e=>e.name===u.tool.value())}_showShortcuts(){return this.props.lineTools.some(e=>"shortcut"in e)}_selectTool(e){u.tool.setValue(e)}_composeFavState(){const e={};return this.props.lineTools.forEach(t=>{e[t.name]=Q.LinetoolsFavoritesStore.isFavorite(t.name)}),e}}var ie=o(51768),ne=o(40173),se=o(83860);const ae=(0,ne.mergeThemes)(ee.DEFAULT_POPUP_MENU_ITEM_THEME,se),le={all:(0,a.t)("Remove Drawings & Indicators"),drawings:(0,a.t)("Remove Drawings"),studies:(0,a.t)("Remove Indicators")};class re extends i.PureComponent{constructor(){super(...arguments),this._handleRemoveToolClick=()=>{c.mobiletouch||this._handleRemoveDrawings(),de()},this._handleRemoveDrawings=()=>{ce("remove drawing"), -this.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},this._handleRemoveStudies=()=>{ce("remove indicator"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},this._handleRemoveAll=()=>{ce("remove all"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()}}render(){const e=this.props.isSmallTablet?ae:void 0;return i.createElement(R,{buttonIcon:T.lineToolsInfo[this.props.toolName].icon,buttonTitle:le.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName,onArrowClick:this._handleArrowClick,openDropdownByClick:!1},i.createElement(ee.PopupMenuItem,{"data-name":"remove-drawing-tools",label:le.drawings,onClick:this._handleRemoveDrawings,theme:e}),i.createElement(ee.PopupMenuItem,{"data-name":"remove-studies",label:le.studies,onClick:this._handleRemoveStudies,theme:e}),i.createElement(ee.PopupMenuItem,{"data-name":"remove-all",label:le.all,onClick:this._handleRemoveAll,theme:e}))}_handleArrowClick(){de("menu")}}function ce(e){(0,ie.trackEvent)("GUI","Chart Left Toolbar",e)}function de(e){0}var he=o(10458),ue=o(90995),me=o(14881);const pe=i.createContext({hideMode:"drawings",isActive:!1});function ge(e){const{hideMode:t,option:{label:o,dataName:n,getBoxedValue:s},isSmallTablet:a,onClick:l}=e,{hideMode:r,isActive:c}=(0,i.useContext)(pe),d=null==s?void 0:s();return"all"===t||d?i.createElement(ee.PopupMenuItem,{label:o,isActive:r===t&&c,onClick:function(){l(t,(0,ue.toggleHideMode)(t))},"data-name":n,theme:a?ae:void 0}):i.createElement(i.Fragment,null)}const be={drawings:{active:he.drawingToolsIcons.hideAllDrawingToolsActive,inactive:he.drawingToolsIcons.hideAllDrawingTools},indicators:{active:he.drawingToolsIcons.hideAllIndicatorsActive,inactive:he.drawingToolsIcons.hideAllIndicators},positions:{active:he.drawingToolsIcons.hideAllPositionsToolsActive,inactive:he.drawingToolsIcons.hideAllPositionsTools},all:{active:he.drawingToolsIcons.hideAllDrawingsActive,inactive:he.drawingToolsIcons.hideAllDrawings}};function ve(e){const{isSmallTablet:t}=e,[{isActive:o,hideMode:n},a]=(0,i.useState)(()=>({isActive:!1,hideMode:(0,ue.getSavedHideMode)()}));(0,i.useEffect)(()=>(me.hideStateChange.subscribe(null,a),()=>{me.hideStateChange.unsubscribe(null,a)}),[]);const l=T.lineToolsInfo.hideAllDrawings,{trackLabel:r,tooltip:c,dataName:d}=(0,s.ensureDefined)((0,ue.getHideOptions)().get(n)),h=be[n][o?"active":"inactive"],u=o?c.active:c.inactive;return i.createElement(R,{buttonIcon:h,buttonTitle:u,buttonHotKey:l.hotKey,onClickButton:function(){(0,ue.toggleHideMode)(n),Te(r,!o),_e(o?"on":"off")},isSmallTablet:t,isActive:o,checkable:!0,"data-name":"hide-all","data-type":d,onArrowClick:function(){_e("menu")}},i.createElement(pe.Provider,{value:{isActive:o,hideMode:n}},Array.from((0,ue.getHideOptions)()).map(([e,o])=>i.createElement(ge,{key:e,hideMode:e,option:o,isSmallTablet:t,onClick:m}))));function m(e,t){Te((0,s.ensureDefined)((0,ue.getHideOptions)().get(e)).trackLabel,t)}} -function Te(e,t){(0,ie.trackEvent)("GUI","Chart Left Toolbar",`${e} ${t?"on":"off"}`)}function _e(e){0}var Ce=o(12409),we=o(31330);const ke=(0,a.t)("Show Favorite Drawing Tools Toolbar");class fe extends i.PureComponent{constructor(){super(...arguments),this._instance=null,this._promise=null,this._bindedForceUpdate=()=>this.forceUpdate(),this._handleClick=()=>{null!==this._instance&&(this._instance.isVisible()?(this._instance.hide(),this._trackClick(!1)):(this._instance.show(),this._trackClick(!0)))}}componentDidMount(){const e=this._promise=(0,s.ensureNotNull)((0,Ce.getFavoriteDrawingToolbarPromise)());e.then(t=>{this._promise===e&&(this._instance=t,this._instance.canBeShown().subscribe(this._bindedForceUpdate),this._instance.visibility().subscribe(this._bindedForceUpdate),this.forceUpdate())})}componentWillUnmount(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)}render(){return null!==this._instance&&this._instance.canBeShown().value()?i.createElement(I.ToolButton,{id:this.props.id,icon:we,isActive:this._instance.isVisible(),onClick:this._handleClick,title:ke}):null}_trackClick(e){0}}var Se,Ee=o(90373);!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(Se||(Se={}));var ye=o(70412),Me=o(54475),De=o(45216),Le=o(29197),Ae=o(61226);const Ne=Ae,Ie="http://www.w3.org/2000/svg";function Be(e){const{direction:t,theme:o=Ae}=e;return i.createElement("svg",{xmlns:Ie,width:"9",height:"27",viewBox:"0 0 9 27",className:l(o.container,"right"===t?o.mirror:null),onContextMenu:Me.preventDefault},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),i.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var Pe=o(84006);const Fe=(0,ne.mergeThemes)(Ne,Pe),xe={hide:(0,a.t)("Hide Drawings Toolbar"),show:(0,a.t)("Show Drawings Toolbar")};class Ve extends i.PureComponent{constructor(){super(...arguments),this._toggleVisibility=()=>{k.isDrawingToolbarVisible.setValue(!k.isDrawingToolbarVisible.value())}}render(){const{toolbarVisible:e,"data-name":t}=this.props;return i.createElement("div",{className:l(Fe.toggleButton,"apply-common-tooltip common-tooltip-vertical",!e&&Fe.collapsed),onClick:this._toggleVisibility,title:e?xe.hide:xe.show,"data-name":t,"data-value":e?"visible":"collapsed"},i.createElement(Be,{direction:e?"left":"right",theme:e?void 0:Fe}))}}var Oe=o(37558),We=o(24437),Ge=o(90692);const Re={chartWidgetCollection:o(19036).any.isRequired};var He=o(55402),Ue=o(85494);const ze=h.enabled("right_toolbar"),je=h.enabled("keep_object_tree_widget_in_right_toolbar"),qe={weakMagnet:(0,a.t)("Weak Magnet"),strongMagnet:(0,a.t)("Strong Magnet")},Je=(0,v.onWidget)(),Ke=new(b()),Xe=ie.trackEvent.bind(null,"GUI","Chart Left Toolbar"),Ye=(e,t)=>Xe(`${e} ${t?"on":"off"}`) -;function Ze(){const e=!u.properties().childs().magnet.value();Ye("magnet mode",e),ot("magnet mode",e?"on":"off"),(0,m.setIsMagnetEnabled)(e)}function Qe(){(0,ie.trackEvent)("GUI","Magnet mode","Weak"),(0,m.setMagnetMode)(Ee.MagnetMode.WeakMagnet)}function $e(){(0,ie.trackEvent)("GUI","Magnet mode","Strong"),(0,m.setMagnetMode)(Ee.MagnetMode.StrongMagnet)}function et(){ot("magnet mode","menu")}class tt extends i.PureComponent{constructor(e){var t;super(e),this._grayedTools={},this._handleMeasureClick=()=>{ot("measure")},this._handleZoomInClick=()=>{ot("zoom in")},this._handleDrawingClick=e=>{Ye("drawing mode",e),ot("drawing mode",e?"on":"off")},this._handleLockClick=e=>{Ye("lock all drawing",e),ot("lock",e?"on":"off")},this._handleSyncClick=e=>{Ye("sync",e),ot("sync",e?"on":"off")},this._handleObjectsTreeClick=()=>{this._activeChartWidget().showObjectsTreeDialog(),ot("object tree")},this._handleMouseOver=e=>{(0,ye.hoverMouseEventFilter)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{(0,ye.hoverMouseEventFilter)(e)&&this.setState({isHovered:!1})},this._handleChangeVisibility=e=>{this.setState({isVisible:e})},this._handleEsc=()=>{u.resetToCursor(!0)},this._updateMagnetEnabled=()=>{const e={magnet:(0,m.magnetEnabled)().value()};this.setState(e)},this._updateMagnetMode=()=>{const e={magnetMode:(0,m.magnetMode)().value()};this.setState(e)},this._handleWidgetbarSettled=e=>{var t;this.setState({isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:e})},this._handleWidgetbarVisible=e=>{this.setState({isWidgetbarVisible:e})},u.init(),this._toolsFilter=new _(this.props.drawingsAccess),this._filteredLineTools=w.map(e=>({id:e.id,title:e.title,items:e.items.filter(e=>this._toolsFilter.isToolEnabled(T.lineToolsInfo[e.name].localizedName)),trackLabel:e.trackLabel})).filter(e=>0!==e.items.length),this._filteredLineTools.forEach(e=>e.items.forEach(e=>{this._grayedTools[e.name]=this._toolsFilter.isToolGrayed(T.lineToolsInfo[e.name].localizedName)})),this.state={isHovered:!1,isVisible:k.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:u.properties().childs().magnet.value(),magnetMode:u.properties().childs().magnetMode.value()},this._features={favoriting:!Je&&h.enabled("items_favoriting"),multicharts:h.enabled("support_multicharts"),tools:!Je||h.enabled("charting_library_base")},this._registry={chartWidgetCollection:this.props.chartWidgetCollection},this._negotiateResizer()}componentDidMount(){var e;k.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),N.globalCloseDelegate.subscribe(this,this._handleGlobalClose),(0,m.magnetEnabled)().subscribe(this._updateMagnetEnabled),(0,m.magnetMode)().subscribe(this._updateMagnetMode),this._tool=u.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled), -v.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))}componentWillUnmount(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),k.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),N.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose),(0,m.magnetEnabled)().unsubscribe(this._updateMagnetEnabled),(0,m.magnetMode)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()}componentDidUpdate(e,t){var o;const{isVisible:i,widgetbarSettled:n}=this.state;i!==t.isVisible&&(p.emit("toggle_sidebar",!i),d.setValue("ChartDrawingToolbarWidget.visible",i),this._negotiateResizer()),t.widgetbarSettled!==n&&n&&v.CheckMobile.any()&&(null===(o=window.widgetbar)||void 0===o||o.visible().subscribe(this._handleWidgetbarVisible))}render(){const{bgColor:e,chartWidgetCollection:t,readOnly:o}=this.props,{isHovered:n,isVisible:s,magnet:a,magnetMode:r}=this.state,d={backgroundColor:e&&"#"+e};let m;m=i.createElement(Ve,{toolbarVisible:s,"data-name":"toolbar-drawing-toggle-button"});const p=()=>!!this._features.tools&&!(!h.enabled("show_object_tree")||je&&!ze);return i.createElement(He.RegistryProvider,{validation:Re,value:this._registry},i.createElement(Le.CloseDelegateContext.Provider,{value:Ke},i.createElement(Oe.DrawerManager,null,i.createElement(Ge.MatchMedia,{rule:We.DialogBreakpoints.TabletSmall},e=>i.createElement("div",{id:"drawing-toolbar",className:l(Ue.drawingToolbar,{[Ue.isHidden]:!s}),style:d,onClick:this.props.onClick,onContextMenu:Me.preventDefaultForContextMenu},i.createElement(L,{onScroll:this._handleGlobalClose,isVisibleFade:c.mobiletouch,isVisibleButtons:!c.mobiletouch&&n,isVisibleScrollbar:!1,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:Ue.inner},!o&&i.createElement("div",{className:Ue.group,style:d},this._filteredLineTools.map((o,n)=>i.createElement(oe,{"data-name":o.id,chartWidgetCollection:t,favoriting:this._features.favoriting,grayedTools:this._grayedTools,key:n,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:e,trackLabel:o.trackLabel})),this._toolsFilter.isToolEnabled("Font Icons")&&i.createElement(J,{"data-name":"linetool-group-font-icons",isGrayed:this._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:e})),!o&&i.createElement("div",{className:Ue.group,style:d},i.createElement(Y,{toolName:"measure",onClick:this._handleMeasureClick}),i.createElement(Y,{toolName:"zoom",onClick:this._handleZoomInClick}),i.createElement(Z,{chartWidgetCollection:t})),!o&&i.createElement("div",{className:Ue.group,style:d},i.createElement(R,{"data-name":"magnet-button",buttonIcon:r===Ee.MagnetMode.StrongMagnet?he.drawingToolsIcons.strongMagnet:he.drawingToolsIcons.magnet,buttonTitle:T.lineToolsInfo.magnet.localizedName,isActive:a,onClickButton:Ze,buttonHotKey:T.lineToolsInfo.magnet.hotKey,checkable:!0,isSmallTablet:e,onArrowClick:et},i.createElement(ee.PopupMenuItem,{key:"weakMagnet", -className:e?Ue.popupMenuItem:void 0,"data-name":"weakMagnet",icon:he.drawingToolsIcons.magnet,isActive:a&&r!==Ee.MagnetMode.StrongMagnet,label:qe.weakMagnet,onClick:Qe}),i.createElement(ee.PopupMenuItem,{key:"strongMagnet",className:e?Ue.popupMenuItem:void 0,"data-name":"strongMagnet",icon:he.drawingToolsIcons.strongMagnet,isActive:a&&r===Ee.MagnetMode.StrongMagnet,label:qe.strongMagnet,onClick:$e})),this._features.tools&&i.createElement(X,{property:u.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:this._handleDrawingClick}),this._features.tools&&i.createElement(X,{property:u.lockDrawings(),toolName:"lockAllDrawings",onClick:this._handleLockClick}),this._features.tools&&i.createElement(ve,{isSmallTablet:e}),!1),!o&&this._features.tools&&i.createElement("div",{className:Ue.group,style:d},i.createElement(re,{chartWidgetCollection:t,isSmallTablet:e,toolName:"removeAllDrawingTools"})),i.createElement("div",{className:Ue.fill,style:d}),!o&&(this._features.tools||!1)&&i.createElement("div",{className:l(Ue.group,Ue.lastGroup),style:d},!1,this._features.tools&&this._features.favoriting&&i.createElement(fe,{id:Se.FavoriteDrawings}),p()&&i.createElement(B,{id:Se.ObjectTree,action:this._handleObjectsTreeClick,toolName:"showObjectsTree"})))),m)))))}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}_negotiateResizer(){const e=De.TOOLBAR_WIDTH_COLLAPSED;this.props.resizerBridge.negotiateWidth(this.state.isVisible?De.TOOLBAR_WIDTH_EXPANDED:e)}_handleGlobalClose(){Ke.fire()}_updateHotkeys(){this._hotkeys.promote()}_initHotkeys(){this._hotkeys=A.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:()=>this._handleEsc(),isDisabled:()=>u.toolIsCursor(u.tool.value())})}}function ot(e,t){0}class it{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,n.render(i.createElement(tt,{...t,ref:this._handleRef}),this._container)}destroy(){n.unmountComponentAtNode(this._container)}getComponent(){return(0,s.ensureNotNull)(this._component)}}},55402:(e,t,o)=>{"use strict";o.d(t,{validateRegistry:()=>l,RegistryProvider:()=>r,registryContextType:()=>c});var i=o(59496),n=o(19036),s=o.n(n);const a=i.createContext({});function l(e,t){s().checkPropTypes(t,e,"context","RegistryContext")}function r(e){const{validation:t,value:o}=e;return l(o,t),i.createElement(a.Provider,{value:o},e.children)}function c(){return a}},39640:(e,t,o)=>{"use strict";function i(e,t,o,i,n){function s(n){if(e>n.timeStamp)return;const s=n.target;void 0!==o&&null!==t&&null!==s&&s.ownerDocument===i&&(t.contains(s)||o(n))}return n.click&&i.addEventListener("click",s,!1),n.mouseDown&&i.addEventListener("mousedown",s,!1),n.touchEnd&&i.addEventListener("touchend",s,!1),n.touchStart&&i.addEventListener("touchstart",s,!1),()=>{i.removeEventListener("click",s,!1),i.removeEventListener("mousedown",s,!1),i.removeEventListener("touchend",s,!1),i.removeEventListener("touchstart",s,!1)}}o.d(t,{addOutsideEventListener:()=>i})}, -37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>n,DrawerContext:()=>s});var i=o(59496);class n extends i.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return i.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const s=i.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>m});var i=o(59496),n=o(88537),s=o(97754),a=o(59142),l=o(99054),r=o(65718),c=o(37558),d=o(49483),h=o(29197),u=o(66998);function m(e){const{position:t="Bottom",onClose:o,children:m,className:p,theme:g=u}=e,b=(0,n.ensureNotNull)((0,i.useContext)(c.DrawerContext)),[v,T]=(0,i.useState)(0),_=(0,i.useRef)(null),C=(0,i.useContext)(h.CloseDelegateContext);return(0,i.useEffect)(()=>{const e=(0,n.ensureNotNull)(_.current);return e.focus({preventScroll:!0}),C.subscribe(b,o),0===b.currentDrawer&&(0,l.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),T(b.addDrawer()),()=>{C.unsubscribe(b,o);const t=b.removeDrawer();d.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,l.setFixedBodyState)(!1)}},[]),i.createElement(r.Portal,null,i.createElement("div",{className:s(u.wrap,u["position"+t])},v===b.currentDrawer&&i.createElement("div",{className:u.backdrop,onClick:o}),i.createElement("div",{className:s(u.drawer,g.drawer,u["position"+t],p),ref:_,tabIndex:-1,"data-name":e["data-name"]},m)))}},70412:(e,t,o)=>{"use strict";o.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>a,useHover:()=>n});var i=o(59496);function n(){const[e,t]=(0,i.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function a(e){const[t,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{const t=t=>{if(null===e.current)return;const i=e.current.contains(t.target);o(i)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>u});var i=o(59496),n=o(97754),s=o(59064),a=o(51768),l=o(90186),r=o(23576);const c=r;function d(e){const{reference:t,...o}=e,n={...o,ref:t};return i.createElement(e.href?"a":"div",n)}function h(e){e.stopPropagation()}function u(e){const{id:t,role:o,"aria-selected":c,className:u,title:m,labelRowClassName:p,labelClassName:g,shortcut:b,forceShowShortcuts:v,icon:T,isActive:_,isDisabled:C,isHovered:w,appearAsDisabled:k,label:f,link:S,showToolboxOnHover:E,target:y,rel:M,toolbox:D,reference:L,onMouseOut:A,onMouseOver:N,suppressToolboxClick:I=!0,theme:B=r}=e,P=(0,l.filterDataProps)(e),F=(0,i.useRef)(null);return i.createElement(d,{...P,id:t,role:o,"aria-selected":c,className:n(u,B.item,T&&B.withIcon,{[B.isActive]:_,[B.isDisabled]:C||k,[B.hovered]:w}),title:m,href:S, -target:y,rel:M,reference:function(e){F.current=e,"function"==typeof L&&L(e);"object"==typeof L&&(L.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:i,onClickArg:n,trackEventObject:l}=e;if(C)return;l&&(0,a.trackEvent)(l.category,l.event,l.label);i&&i(n,t);o||(0,s.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:i}=e;o&&i&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:i}=e;if(1===t.button&&S&&o){let e=o.label;i&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:N,onMouseOut:A},void 0!==T&&i.createElement("div",{className:B.icon,dangerouslySetInnerHTML:{__html:T}}),i.createElement("div",{className:n(B.labelRow,p)},i.createElement("div",{className:n(B.label,g)},f)),(void 0!==b||v)&&i.createElement("div",{className:B.shortcut},(x=b)&&x.split("+").join(" + ")),void 0!==D&&i.createElement("div",{onClick:I?h:void 0,className:n(B.toolbox,{[B.showOnHover]:E})},D));var x}},81332:(e,t,o)=>{"use strict";o.d(t,{multilineLabelWithIconAndToolboxTheme:()=>a});var i=o(40173),n=o(23576),s=o(63095);const a=(0,i.mergeThemes)(n,s)},51613:(e,t,o)=>{"use strict";o.d(t,{PopupMenuSeparator:()=>l});var i=o(59496),n=o(97754),s=o.n(n),a=o(524);function l(e){const{size:t="normal",className:o}=e;return i.createElement("div",{className:s()(a.separator,"small"===t&&a.small,"normal"===t&&a.normal,"large"===t&&a.large,o)})}},50628:(e,t,o)=>{"use strict";o.d(t,{PopupMenu:()=>c});var i=o(59496),n=o(87995),s=o(65718),a=o(27317),l=o(29197),r=o(58095);function c(e){const{controller:t,children:o,isOpened:c,closeOnClickOutside:d=!0,doNotCloseOn:h,onClickOutside:u,onClose:m,...p}=e,g=(0,i.useContext)(l.CloseDelegateContext),b=(0,r.useOutsideEvent)({handler:function(e){u&&u(e);if(!d)return;if(h&&e.target instanceof Node){const t=n.findDOMNode(h);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return c?i.createElement(s.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.createElement("span",{ref:b,style:{pointerEvents:"auto"}},i.createElement(a.Menu,{...p,onClose:m,onScroll:function(t){const{onScroll:o}=e;o&&o(t)},customCloseDelegate:g,ref:t},o))):null}},33086:e=>{e.exports=''},31330:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/e01f83be117e562a91ac14daa904e198.svg b/charting_library/bundles/e01f83be117e562a91ac14daa904e198.svg new file mode 100644 index 00000000..d4877773 --- /dev/null +++ b/charting_library/bundles/e01f83be117e562a91ac14daa904e198.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e097b411b3e34f5a4a979cc428c289b1.svg b/charting_library/bundles/e097b411b3e34f5a4a979cc428c289b1.svg new file mode 100644 index 00000000..082e852a --- /dev/null +++ b/charting_library/bundles/e097b411b3e34f5a4a979cc428c289b1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e129b4d2d79d07ecf5b6b7c4d10b83fb.svg b/charting_library/bundles/e129b4d2d79d07ecf5b6b7c4d10b83fb.svg new file mode 100644 index 00000000..2779fd7c --- /dev/null +++ b/charting_library/bundles/e129b4d2d79d07ecf5b6b7c4d10b83fb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e16dc229d6775b39b80e8958d6095e05.svg b/charting_library/bundles/e16dc229d6775b39b80e8958d6095e05.svg new file mode 100644 index 00000000..d73bb302 --- /dev/null +++ b/charting_library/bundles/e16dc229d6775b39b80e8958d6095e05.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e2fa422bd9aedee688fb7765794fd5c2.svg b/charting_library/bundles/e2fa422bd9aedee688fb7765794fd5c2.svg new file mode 100644 index 00000000..aa4d87b0 --- /dev/null +++ b/charting_library/bundles/e2fa422bd9aedee688fb7765794fd5c2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e30c321e33a1859340a2bb6037bff515.svg b/charting_library/bundles/e30c321e33a1859340a2bb6037bff515.svg new file mode 100644 index 00000000..5e1a9b67 --- /dev/null +++ b/charting_library/bundles/e30c321e33a1859340a2bb6037bff515.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e33a72eb50fe28dc0289c2257014fc6a.svg b/charting_library/bundles/e33a72eb50fe28dc0289c2257014fc6a.svg new file mode 100644 index 00000000..f90c5d47 --- /dev/null +++ b/charting_library/bundles/e33a72eb50fe28dc0289c2257014fc6a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e40ab9cc58df416f4b384648a7af369c.svg b/charting_library/bundles/e40ab9cc58df416f4b384648a7af369c.svg new file mode 100644 index 00000000..6eebe942 --- /dev/null +++ b/charting_library/bundles/e40ab9cc58df416f4b384648a7af369c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e4bd61c262d0b67207545a967cb51d7f.svg b/charting_library/bundles/e4bd61c262d0b67207545a967cb51d7f.svg new file mode 100644 index 00000000..333802bb --- /dev/null +++ b/charting_library/bundles/e4bd61c262d0b67207545a967cb51d7f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e561e7a86e83dab817de9b4fba1be15e.svg b/charting_library/bundles/e561e7a86e83dab817de9b4fba1be15e.svg new file mode 100644 index 00000000..b904485a --- /dev/null +++ b/charting_library/bundles/e561e7a86e83dab817de9b4fba1be15e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e5dccab09e22148aa733ae7e0962f0a4.svg b/charting_library/bundles/e5dccab09e22148aa733ae7e0962f0a4.svg new file mode 100644 index 00000000..12b559fb --- /dev/null +++ b/charting_library/bundles/e5dccab09e22148aa733ae7e0962f0a4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e5f4dc26e80c421603f8b42336412643.svg b/charting_library/bundles/e5f4dc26e80c421603f8b42336412643.svg new file mode 100644 index 00000000..fe076616 --- /dev/null +++ b/charting_library/bundles/e5f4dc26e80c421603f8b42336412643.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e62b523f0ed069cf4e2afa903fece44f.svg b/charting_library/bundles/e62b523f0ed069cf4e2afa903fece44f.svg new file mode 100644 index 00000000..3ad18cc7 --- /dev/null +++ b/charting_library/bundles/e62b523f0ed069cf4e2afa903fece44f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e7b7ff011682d59763997a75104c9979.svg b/charting_library/bundles/e7b7ff011682d59763997a75104c9979.svg new file mode 100644 index 00000000..3be12496 --- /dev/null +++ b/charting_library/bundles/e7b7ff011682d59763997a75104c9979.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e7ed49ce872797c8630fd5f8446ffbee.svg b/charting_library/bundles/e7ed49ce872797c8630fd5f8446ffbee.svg new file mode 100644 index 00000000..c3cf900b --- /dev/null +++ b/charting_library/bundles/e7ed49ce872797c8630fd5f8446ffbee.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e8b18b343c3c9e2d653fc3a550de819f.svg b/charting_library/bundles/e8b18b343c3c9e2d653fc3a550de819f.svg new file mode 100644 index 00000000..de54d391 --- /dev/null +++ b/charting_library/bundles/e8b18b343c3c9e2d653fc3a550de819f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e8e5b1c68e4f95acd9322863c0b363f6.svg b/charting_library/bundles/e8e5b1c68e4f95acd9322863c0b363f6.svg new file mode 100644 index 00000000..b63db8f0 --- /dev/null +++ b/charting_library/bundles/e8e5b1c68e4f95acd9322863c0b363f6.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e97d7f751ade192748c3e05a54ead255.svg b/charting_library/bundles/e97d7f751ade192748c3e05a54ead255.svg new file mode 100644 index 00000000..d319b0f6 --- /dev/null +++ b/charting_library/bundles/e97d7f751ade192748c3e05a54ead255.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/e9a1bd918b9924de48740078fc49f7c8.svg b/charting_library/bundles/e9a1bd918b9924de48740078fc49f7c8.svg new file mode 100644 index 00000000..2c6bce79 --- /dev/null +++ b/charting_library/bundles/e9a1bd918b9924de48740078fc49f7c8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ea2822078cff5228899c74ce3525125c.svg b/charting_library/bundles/ea2822078cff5228899c74ce3525125c.svg new file mode 100644 index 00000000..4b7473b7 --- /dev/null +++ b/charting_library/bundles/ea2822078cff5228899c74ce3525125c.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/early-bird-banner.63639de641b064c620c2.js b/charting_library/bundles/early-bird-banner.63639de641b064c620c2.js new file mode 100644 index 00000000..ecf5f2bf --- /dev/null +++ b/charting_library/bundles/early-bird-banner.63639de641b064c620c2.js @@ -0,0 +1 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1854],{33492:e=>{e.exports={banner:"banner-EZ3DKk2H","countdown-section":"countdown-section-EZ3DKk2H","main-section":"main-section-EZ3DKk2H",title:"title-EZ3DKk2H","main-text":"main-text-EZ3DKk2H",image:"image-EZ3DKk2H"}},35301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{renderEarlyBirdBanner:()=>f});var a=n(59496),r=n(87995),i=(n(94419),n(28353)),o=n(77975),c=n(45345),s=n(26843),l=n(56299),m=n(81361),u=n(73480);function d(e){const{expiration:t,discount:n,onButtonClick:r}=e,d=(0,o.useWatchedValueReadonly)({watchedValue:c.watchedTheme})===s.StdTheme.Light?m:u,f=i.t("Early bird offer"),E=i.t("Buy an annual plan before your trial expires and get up to {discount}% off").format({discount:String(n)});return a.createElement(l.OfferBanner,{expiration:t,title:f,mainTitle:E,buttonProps:{href:"/gopro/?source=profile&feature=early_bird_banner",onClick:r},imgSrc:d})}function f(e,t){r.render(a.createElement(d,{...t}),e)}},56299:(e,t,n)=>{"use strict";n.d(t,{OfferBanner:()=>l});var a=n(59496),r=n(28353),i=n(53746),o=n(82760),c=n(5437),s=n(33492);function l(e){const{expiration:t,title:n,mainTitle:l,buttonProps:m,buttonText:u=r.t("Learn more"),imgSrc:d}=e;return a.createElement("article",{className:s.banner},a.createElement("section",{className:s["main-section"]},a.createElement("h2",{className:s.title},n),a.createElement("p",{className:s["main-text"]},l),a.createElement(c.RoundAnchorButton,{className:s["cta-button"],...m},u)),a.createElement("section",{className:s["countdown-section"]},a.createElement("img",{src:d,className:s.image,role:"presentation"}),a.createElement(i.OfferCountdown,{theme:o.CountdownTheme.Profile,expiration:t,size:"m"})))}}}]); \ No newline at end of file diff --git a/charting_library/bundles/early-bird-dialog.b9daeb69416b2c6d8d50.js b/charting_library/bundles/early-bird-dialog.b9daeb69416b2c6d8d50.js new file mode 100644 index 00000000..32df2a82 --- /dev/null +++ b/charting_library/bundles/early-bird-dialog.b9daeb69416b2c6d8d50.js @@ -0,0 +1,3 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8435],{73611:(e,t,a)=>{e.exports=a.p+"4f7347b954545a7137c5b906707789e6.svg"},39392:(e,t,a)=>{e.exports=a.p+"1e193459d0a9e9fc9ef95beffa15de1c.svg"},91636:(e,t,a)=>{e.exports=a.p+"a2f98c60137c8c2eb3d3fb96c7767876.svg"},32877:(e,t,a)=>{e.exports=a.p+"b9ef74d4cc68a3ee92fc345b70753629.svg"},27744:(e,t,a)=>{e.exports=a.p+"ec773b52c3fc4ccd7a5a86a577674e84.svg"},43517:(e,t,a)=>{e.exports=a.p+"6fcde21723892d962edac0d9998528d0.svg"},34265:(e,t,a)=>{e.exports=a.p+"75af36c37801a630adf29c84bcb12855.svg"},88001:(e,t,a)=>{e.exports=a.p+"3aedcdb787ab2003b4f84578eabe8839.svg"},39017:(e,t,a)=>{e.exports=a.p+"4bd2362d901778b20ccc963f023833f6.svg"},8992:(e,t,a)=>{e.exports=a.p+"559bbd43de542185b04c719bc152c540.svg"},80213:e=>{e.exports={dialog:"dialog-xvLVYmhd",container:"container-xvLVYmhd",header:"header-xvLVYmhd",image:"image-xvLVYmhd",title:"title-xvLVYmhd","main-content":"main-content-xvLVYmhd",paragraph:"paragraph-xvLVYmhd",list:"list-xvLVYmhd","paragraph--bold":"paragraph--bold-xvLVYmhd","list--bold":"list--bold-xvLVYmhd","list-item":"list-item-xvLVYmhd",strong:"strong-xvLVYmhd",actions:"actions-xvLVYmhd","button-content":"button-content-xvLVYmhd",button:"button-xvLVYmhd",countDown:"countDown-xvLVYmhd",closeButton:"closeButton-xvLVYmhd"}},38409:(e,t,a)=>{"use strict";a.r(t),a.d(t,{EarlyBirdDialog:()=>Y,renderEarlyBirdDialog:()=>P});var n=a(59496),o=a(87995),l=a(28353),c=a(5437),i=a(3767),r=a(90692),s=a(67844),m=a(37005),d=a(77975),u=a(45345),h=a(26843),p=(a(94419),a(53746)),f=a(82760),g=a(98020),x=a(93299);var v=a(39392),b=a(73611),y=a(32877),E=a(91636),w=a(43517),N=a(27744),T=a(88001),D=a(34265),S=a(8992),B=a(39017),C=a(80213),L=a(97754);const k={7:e=>({imageSrc:{[h.StdTheme.Light]:v,[h.StdTheme.Dark]:b},title:(0,l.t)("Need a discount?"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("You have access to a new member special offer: buy any annual plan right now and get up to {discount}% off. Plus, keep all of your unused trial days.").format({discount:(e.maxDiscount||"").toString()})),n.createElement("p",{className:C.paragraph},(0,l.t)("This is one of our best deals and we hope you take advantage of it."))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Explore deals")}),14:e=>({imageSrc:{[h.StdTheme.Light]:y,[h.StdTheme.Dark]:E},title:(0,l.t)("Tools that help you succeed"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("Make sure to try every Premium tool including:")),n.createElement("ul",{className:C.list},n.createElement("li",{className:C["list-item"]},(0,l.t)("Real-time alerts")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Volume Profile indicators")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Multiple chart layouts")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Second-based intervals")),n.createElement("li",{className:C["list-item"]},(0,l.t)("And much more…"))),n.createElement("p",{className:C.paragraph +},(0,l.t)("Don't forget, if you buy an annual plan today you're eligible for up to {discount}% off.").format({discount:(e.maxDiscount||"").toString()}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Get {discount}% off").format({discount:(e.maxDiscount||"").toString()})}),21:e=>({imageSrc:{[h.StdTheme.Light]:S,[h.StdTheme.Dark]:B},title:(0,l.t)("You still have time"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("Buy an annual plan today and get up to {discount}% off Pro, Pro+, and Premium.").format({discount:(e.maxDiscount||"").toString()}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Let's do this")}),28:e=>{return{imageSrc:{[h.StdTheme.Light]:w,[h.StdTheme.Dark]:N},title:(0,l.t)("The countdown begins"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("If you don't act soon, you'll miss out on our exclusive Early Bird deal. We know how important it is to have a platform you can trust, at the best cost and with the most tools — so explore our discounts now before time's up. Once they're gone, they're gone.")),n.createElement("div",{className:C.countDown},n.createElement(p.OfferCountdown,{theme:f.CountdownTheme.Profile,expiration:null===(a=null===(t=window.user.available_offers)||void 0===t?void 0:t[x.OFFERS.early_access])||void 0===a?void 0:a.expire_on,size:"m"}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Get {discount}% off now").format({discount:(e.maxDiscount||"").toString()})};var t,a},30:e=>{const t=(0,l.t)("Your trial ends today. It's also your last chance to {link_start}claim up to {discount}% off{link_end} an annual plan. Want this? Just click the button below. Don't want to continue with us? Please go to your billing settings and cancel your trial, otherwise you'll be charged our full normal price.").split(/\{\w+\}/),a=`${t[1]} ${(e.maxDiscount||"").toString()}${t[2]}`;return{imageSrc:{[h.StdTheme.Light]:T,[h.StdTheme.Dark]:D},title:(0,l.t)("Today's the day"),mainContent:n.createElement(n.Fragment,null,n.createElement("span",{className:C.paragraph},t[0],n.createElement("span",{className:L(C.paragraph,C["paragraph--bold"])},a),t[3])),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Claim offer")}}};var V=a(86240);function Y(e){const{content:t,actionHref:a,onActionClick:o,onClose:p}=e,{title:f,mainContent:g,cancelBtnText:x,yesBtnText:v,imageSrc:b,showCloseBtn:y}=t,E=(0,d.useWatchedValueReadonly)({watchedValue:u.watchedTheme})||h.StdTheme.Light;return(0,m.useFixedBody)(),n.createElement(r.MatchMedia,{rule:V["media-mf-phone-landscape"]},e=>n.createElement(i.Modal,{isOpened:!0,fullscreen:!e,rounded:e,width:720,className:C.dialog},n.createElement("div",{className:C.container},y&&n.createElement(s.CloseButton,{className:C.closeButton,onClick:p,"aria-label":l.t("Close",{context:"input"}),size:"m"}),n.createElement("div",null,n.createElement("div",{className:C.header},b&&b[E]&&n.createElement("img",{src:b[E],className:C.image}),n.createElement("h2",{ +className:C.title},f)),n.createElement("div",{className:C["main-content"]},g)),n.createElement("div",{className:C["button-content"]},n.createElement("div",{className:C.actions},!y&&n.createElement(c.RoundButton,{className:C.button,color:"red",variant:"ghost",onClick:p},x),n.createElement(c.RoundAnchorButton,{href:a,target:"_blank",className:C.button,onClick:o},v))))))}function P(e){const{root:t,onClose:a,actionHref:l,onActionClick:c}=e,i=()=>{o.unmountComponentAtNode(t),void 0!==a&&a()},r=()=>{o.unmountComponentAtNode(t),void 0!==c&&c()},s=function(e){const t=(0,g.getEarlyBirdDialogDay)(e.state,e.trialDaysPassed);return null!==t?k[t](e):null}(e);if(null!==s){const e={content:s,actionHref:l,onActionClick:r,onClose:i};o.render(n.createElement(Y,{...e}),t)}}},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","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)"}')}}]); \ No newline at end of file diff --git a/charting_library/bundles/eb8399f5df28ee8b30713ca340c7dd8e.jpeg b/charting_library/bundles/eb8399f5df28ee8b30713ca340c7dd8e.jpeg new file mode 100644 index 00000000..7cbe386a Binary files /dev/null and b/charting_library/bundles/eb8399f5df28ee8b30713ca340c7dd8e.jpeg differ diff --git a/charting_library/bundles/ebca4cec794b70db74c63a7e6aca8ed8.svg b/charting_library/bundles/ebca4cec794b70db74c63a7e6aca8ed8.svg new file mode 100644 index 00000000..11880793 --- /dev/null +++ b/charting_library/bundles/ebca4cec794b70db74c63a7e6aca8ed8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ec31494f78cee41a02dbfbafba232515.svg b/charting_library/bundles/ec31494f78cee41a02dbfbafba232515.svg new file mode 100644 index 00000000..9e9a5ef1 --- /dev/null +++ b/charting_library/bundles/ec31494f78cee41a02dbfbafba232515.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ec5d7209357ae85877aeb054c2bdb313.svg b/charting_library/bundles/ec5d7209357ae85877aeb054c2bdb313.svg new file mode 100644 index 00000000..48b64c59 --- /dev/null +++ b/charting_library/bundles/ec5d7209357ae85877aeb054c2bdb313.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ec6d305d7d06a84ea3f54c3d6db5e83a.svg b/charting_library/bundles/ec6d305d7d06a84ea3f54c3d6db5e83a.svg new file mode 100644 index 00000000..4df0a531 --- /dev/null +++ b/charting_library/bundles/ec6d305d7d06a84ea3f54c3d6db5e83a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ec773b52c3fc4ccd7a5a86a577674e84.svg b/charting_library/bundles/ec773b52c3fc4ccd7a5a86a577674e84.svg new file mode 100644 index 00000000..39a49fde --- /dev/null +++ b/charting_library/bundles/ec773b52c3fc4ccd7a5a86a577674e84.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ed080993df791efad30f99a0e698601e.svg b/charting_library/bundles/ed080993df791efad30f99a0e698601e.svg new file mode 100644 index 00000000..cb83cca0 --- /dev/null +++ b/charting_library/bundles/ed080993df791efad30f99a0e698601e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ed0ca2ab048260b30ad78d7b82749494.svg b/charting_library/bundles/ed0ca2ab048260b30ad78d7b82749494.svg new file mode 100644 index 00000000..81c2a144 --- /dev/null +++ b/charting_library/bundles/ed0ca2ab048260b30ad78d7b82749494.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ed5c3ae146310a1a24fcde23e7b60bb1.svg b/charting_library/bundles/ed5c3ae146310a1a24fcde23e7b60bb1.svg new file mode 100644 index 00000000..7dd63e12 --- /dev/null +++ b/charting_library/bundles/ed5c3ae146310a1a24fcde23e7b60bb1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ee2bdfea45e5aca4518fe3ae1e115904.svg b/charting_library/bundles/ee2bdfea45e5aca4518fe3ae1e115904.svg new file mode 100644 index 00000000..35bedebc --- /dev/null +++ b/charting_library/bundles/ee2bdfea45e5aca4518fe3ae1e115904.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ee399eb1fa7a749581dc585db32b9db4.svg b/charting_library/bundles/ee399eb1fa7a749581dc585db32b9db4.svg new file mode 100644 index 00000000..94552426 --- /dev/null +++ b/charting_library/bundles/ee399eb1fa7a749581dc585db32b9db4.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/efef6421ade56c03ee355809562ecbc0.svg b/charting_library/bundles/efef6421ade56c03ee355809562ecbc0.svg new file mode 100644 index 00000000..a87d2548 --- /dev/null +++ b/charting_library/bundles/efef6421ade56c03ee355809562ecbc0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/email-dialog.11c06641e902f3048b83.js b/charting_library/bundles/email-dialog.11c06641e902f3048b83.js new file mode 100644 index 00000000..1cb99041 --- /dev/null +++ b/charting_library/bundles/email-dialog.11c06641e902f3048b83.js @@ -0,0 +1,16 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8606],{52014:()=>{},6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},8714:e=>{e.exports={"button-box-code":"button-box-code-ykdczZxH","small-buttons":"small-buttons-ykdczZxH",arrowHolder:"arrowHolder-ykdczZxH","arrowHolder--below":"arrowHolder--below-ykdczZxH","arrowHolder--above":"arrowHolder--above-ykdczZxH","arrowHolder--before":"arrowHolder--before-ykdczZxH","arrowHolder--after":"arrowHolder--after-ykdczZxH",tooltip:"tooltip-ykdczZxH"}},96290:e=>{e.exports={"content-wrap-template":"content-wrap-template-SuBxKHcJ",title:"title-SuBxKHcJ",description:"description-SuBxKHcJ","close-button":"close-button-SuBxKHcJ","phone-block":"phone-block-SuBxKHcJ","email-block":"email-block-SuBxKHcJ",input:"input-SuBxKHcJ","code-block":"code-block-SuBxKHcJ","timer-block":"timer-block-SuBxKHcJ","spinner-wrap":"spinner-wrap-SuBxKHcJ","hide-country-select":"hide-country-select-SuBxKHcJ","okay-button":"okay-button-SuBxKHcJ","wrapper-content":"wrapper-content-SuBxKHcJ","wrapper-content-successful":"wrapper-content-successful-SuBxKHcJ",link:"link-SuBxKHcJ","labeled-input":"labeled-input-SuBxKHcJ"}},10660:e=>{e.exports={code:"code-w1JWVjk5","ui-kit-input":"ui-kit-input-w1JWVjk5",input:"input-w1JWVjk5","digit-1":"digit-1-w1JWVjk5","digit-2":"digit-2-w1JWVjk5","digit-3":"digit-3-w1JWVjk5","digit-4":"digit-4-w1JWVjk5","input-disable-mode-safari":"input-disable-mode-safari-w1JWVjk5"}},98898:e=>{e.exports={countrySelect:"countrySelect-zsy9fYkd",flagSlot:"flagSlot-zsy9fYkd",flag:"flag-zsy9fYkd",textSlot:"textSlot-zsy9fYkd"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},28335:e=>{ +e.exports={label:"label-UvIfeuIB"}},44443:e=>{e.exports={container:"container-vZPBcQQO",content:"content-vZPBcQQO",arrowHolder:"arrowHolder-vZPBcQQO","arrowHolder--below":"arrowHolder--below-vZPBcQQO","arrowHolder--above":"arrowHolder--above-vZPBcQQO","arrowHolder--before":"arrowHolder--before-vZPBcQQO","arrowHolder--after":"arrowHolder--after-vZPBcQQO","arrowHolder--above-fix":"arrowHolder--above-fix-vZPBcQQO","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-vZPBcQQO","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-vZPBcQQO",label:"label-vZPBcQQO",closeButton:"closeButton-vZPBcQQO"}},97737:(e,t,o)=>{"use strict";o.d(t,{AnchorButton:()=>u,Button:()=>c});var n=o(59496),r=o(71036);function s(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function i(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:o,appearance:n,useFullWidth:r,icon:l,...c}=e;return{...c,color:i(t),size:a(o),variant:s(n),stretch:r,startIcon:l}}function c(e){return n.createElement(r.SquareButton,{...l(e)})}function d(e){const{intent:t,size:o,appearance:n,useFullWidth:r,icon:l,...c}=e;return{...c,color:i(t),size:a(o),variant:s(n),stretch:r,startIcon:l}}function u(e){return n.createElement(r.SquareAnchorButton,{...d(e)})}},71036:(e,t,o)=>{"use strict";o.d(t,{SquareAnchorButton:()=>v,SquareButton:()=>p});var n=o(59496),r=o(97754),s=o(95604),i=o(9745),a=o(6539),l=o.n(a);function c(e){const{color:t="brand",size:o="medium",variant:n="primary",stretch:i=!1,icon:a,startIcon:c,endIcon:d,iconOnly:u=!1,className:h,isGrouped:m,cellState:p,disablePositionAdjustment:f=!1}=e,v=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,l()["no-corner-top-left"])),2&e&&(t=r(t,l()["no-corner-top-right"])),4&e&&(t=r(t,l()["no-corner-bottom-right"])),8&e&&(t=r(t,l()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(p));return r(h,l().button,l()["size-"+o],l()["color-"+t],l()["variant-"+n],i&&l().stretch,(a||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],u&&l()["icon-only"],v,m&&l().grouped,m&&!f&&l()["adjust-position"],m&&p.isTop&&l()["first-row"],m&&p.isLeft&&l()["first-col"])}function d(e){const{size:t,startIcon:o,icon:r,iconOnly:s,children:a,endIcon:c}=e,d=null!=o?o:r;return n.createElement(n.Fragment,null,d&&"xsmall"!==t&&n.createElement(i.Icon,{icon:d,className:l()["start-icon-wrap"]}),a&&n.createElement("span",{className:l().content},a),c&&!s&&"xsmall"!==t&&n.createElement(i.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var u=o(86332),h=o(90186);function m(e){const{className:t,color:o,variant:n,size:r,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function p(e){const{reference:t,...o}=e,{isGrouped:r,cellState:s,disablePositionAdjustment:i}=(0,n.useContext)(u.ControlGroupContext),a=c({...o,isGrouped:r, +cellState:s,disablePositionAdjustment:i});return n.createElement("button",{...m(o),className:a,ref:t},n.createElement(d,{...o}))}function f(e){const{className:t,color:o,variant:n,size:r,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function v(e){const{reference:t}=e,{isGrouped:o,cellState:r,disablePositionAdjustment:s}=(0,n.useContext)(u.ControlGroupContext),i=c({...e,isGrouped:o,cellState:r,disablePositionAdjustment:s});return n.createElement("a",{...f(e),className:i,ref:t},n.createElement(d,{...e}))}},35582:(e,t,o)=>{"use strict";o.d(t,{CloseButton:()=>p});var n=o(59496),r=o(97754),s=o(9745),i=o(64120),a=o(12565),l=o(95781),c=o(7801),d=o(33584),u=o(16178),h=o.n(u);function m(e="l"){switch(e){case"l":return i;case"m":return a;case"s":return l;case"xs":return c;case"xxs":return d;default:return a}}const p=n.forwardRef((e,t)=>{const{className:o,size:i,...a}=e,l=r(h()["close-button"],h()["button-"+i],o);return n.createElement("button",{...a,type:"button",className:l,ref:t},n.createElement(s.Icon,{icon:m(i),className:h()["close-icon"],"aria-hidden":!0}))})},22064:(e,t,o)=>{"use strict";o.d(t,{createDomId:()=>l,joinDomIds:()=>c});const n=/\s/g;function r(e){return"string"==typeof e}function s(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function i(e){return e.trim().length>0}function a(e){return e.replace(n,"-")}function l(...e){const t=e.map(s).filter(r).filter(i).map(a);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(s).filter(r).filter(i).join(" ")}},20497:(e,t,o)=>{"use strict";var n=o(23127);const r=o(98125).getLogger("CommonUI.CreateTVBlockPlugin");e.exports.createTvBlockWithInstance=function(e,t){if(e&&t)return e=e.toString(),function(s,i,a){var l,c,d;return"get"===s?l=i:(c=i,"object"==typeof s&&void 0===i?(c=s,s="init"):"string"!=typeof s&&(s="init")),"getInstance"===s?n(this).eq(0).data(e):"destroy"===s?(d=n(this).eq(0).data(e))?void("function"==typeof d.destroy?(o(d,"destroy",c),n(this).eq(0).removeData(e)):r.logError("[Block Plugin] "+e+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+e+" but it has not been inited"):"get"===s?(d=n(this).eq(0).data(e))?"function"==typeof d[l]?o(d,l,a):d[l]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+e+" but it has not been inited"):n(this).each((function(){var i=n(this),a=i.data(e);void 0===a&&(a=void 0===c?t(i):t(i,c),i.data(e,a)),"init"!==s&&("function"==typeof a[s]?o(a,s,c):r.logError("[Block Plugin] "+e+" does not support command "+s))}))};function o(e,t,o){return void 0===o?e[t]():e[t](o)}}},78754:(e,t,o)=>{"use strict";o.d(t,{buttonLoader:()=>i});o(52014);var n=o(20497),r=o(68587),s=o(23127);function i(e){return new a(s(e))}s.fn.tvButtonLoader=(0,n.createTvBlockWithInstance)("tv-button-loader",(function(e){return new a(e)})) +;class a{constructor(e){this.$btn=s(e).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html(''+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*r.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},r.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){this.loading?this.stop():this.start()}contentHtml(e){return e?(this.$btn.find(".tv-button__text").html(e),e):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0)}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},93573:(e,t,o)=>{"use strict";o.d(t,{getCountries:()=>s});var n=o(85198);let r=null;async function s(){var e;if(null!==r)return r;const t=await(0,n.fetch)("/accounts/countries/",{credentials:"include"});if(!t.ok){const e=await t.json();throw Error(String(e))}const o=await t.json();return r={...o,current_country_code:null!==(e=o.current_country_code)&&void 0!==e?e:"US"},r}},976:(e,t,o)=>{"use strict";o.d(t,{TVModal:()=>f});var n=o(28353),r=o(68587),s=o(49483),i=o(43989),a=o(51536),l=o(4185),c=o(85739),d=o(25760),u=o(23127),h=o(25977);let m=[];const p={ajax:{},closingDuration:r.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,n.t)("Error")}
`};class f extends a.TVDialogAbstract{constructor(e={}){if(super({...p,...e}),this.$overlay=u(this.options.overlayTemplate),this.$modalWrap=u(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(e=>{this.isEventOut(e)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const e=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(e,this.options.closingDuration)):e()}),this.on("beforeOpen",()=>{m.push(this)}),this.options.ajax.url){ +const e=this.options.ajax.beforeSend||u.noop,t=this.options.ajax.success||!1,o=this.options.ajax.error||u.noop;u.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),e(this)},success:e=>{this.trigger("afterLoading",[this]),this.renderContent(t?t(this,e):e).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),o(this),this.trigger("errorLoading",[this])}})}this.on("error",(e,t)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const e=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),u(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=u.ajax(this.options.ajax):this.showContent()};return s.isSafari?setTimeout(()=>e(),50):e(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&c.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),m=h.without(m,this),this.options.fixBodyState&&(0,i.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),m.length>0&&m[m.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*r.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},44279:(e,t,o)=>{"use strict";o.r(t),o.d(t,{createEmailDialog:()=>Le,createPhoneDialog:()=>Te});var n,r=o(59496),s=o(28353),i=o(87995),a=o(976),l=o(91955);!function(e){e.SmsEmail="smsEmail",e.Phone="phone"}(n||(n={}));const c={[n.SmsEmail]:null,[n.Phone]:null};function d(e,t,o,n){const{featureSource:s="",doNotShowConfirmation:d=!1}=t,{onVerificationSuccess:u}=n;let h=null,m=c[o];null===m&&(m=new a.TVModal({ +closeButton:!1,closeOnOutsideClick:!1,contentWrapTemplate:'
',containerTemplate:'
',focusFirstControl:!1,closeOnEsc:!1}),c[o]=m,h=m.$content.get(0),m.on("destroy",()=>{null!==h&&i.unmountComponentAtNode(h),c[o]=null}));const p=location.pathname,f=()=>{const[t,n]=r.useState(!1);return r.useEffect(()=>(null==m||m.on("afterOpen",()=>{var e,t;(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("shown",s,p)}),n(null!==(t=null===(e=c[o])||void 0===e?void 0:e.isOpened())&&void 0!==t&&t)}),null==m||m.on("afterClose",()=>{var e;return n(null!==(e=null==m?void 0:m.isOpened())&&void 0!==e&&e)}),()=>n(!1)),[]),r.createElement(e,{onClose:()=>{var e;return null===(e=c[o])||void 0===e?void 0:e.close()},opened:t,showConfirmation:!d,onVerificationCancel:()=>{(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("closed",s,p)}),null==m||m.trigger("verification:cancel",null)},onVerificationCodeExpired:()=>{(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("code_expired",s,p)}),null==m||m.trigger("verification:codeExpired",null)},onVerificationSuccess:e=>{u(e),null==m||m.trigger("verification:success",[e])}})};return h&&i.render(r.createElement(f,null),h),m}var u=o(85198);const h=window;function m(){return void 0!==h.AbortController}let p=null,f=null;function v(){m()&&(null==p||p.abort(),p=new AbortController,f=p.signal)}function g(e,t){return e[t.country_code]=t,e}function b(){const[e,t]=r.useState(null);return r.useEffect(()=>{(0,u.fetch)("/accounts/phone-options/",{signal:f}).then(e=>e.json()).then(({options:e,iso:o,phone:n})=>{t({iso:o,options:e.reduce(g,{}),phone:null==n?void 0:n.replace(/[^0-9]/g,"")})})},[]),e}var w;function y(e){return e.ok?e.json():e.json().then(({error:e})=>{throw new Error(e)})}function C(e){return 0===e.length?[s.t("This field is required")]:[]}function S(e,t){return(o,n,r,s)=>{const i=C(r);i.length>0?t(i):function(e,t,o){const n=new FormData;return n.append("phone",`+${t}${o}`),n.append("phone_country_code",e),(0,u.fetch)("/accounts/change-phone/",{method:"POST",credentials:"include",body:n,signal:f}).then(e=>e.ok?e.json():e.json().then(t=>{let o="";if([400,422,429].includes(e.status)){const e=[];Object.values(t.errors).forEach(t=>{e.push(...t)}),o=e.join("\n")}throw 403===e.status&&(o=t.error),new Error(o)}))}(o,n,r).then(()=>function(e){const t=new FormData;return t.append("channel",e),(0,u.fetch)("/accounts/phone-verify-send/",{method:"POST",credentials:"include",body:t}).then(e=>y(e))}(s)).then(t=>{e({...t,exp:Date.now()+1e3*t.exp})}).catch(e=>{t([e.message])})}}function x(e,t){return o=>{const n=C(o);n.length>0?t(n):function(e){const t=new FormData;return t.append("sms_email",e.sms_email),(0,u.fetch)("/accounts/sms-email/change/",{method:"POST",credentials:"include",body:t,signal:f}).then(e=>e.ok?e.json():e.json().then(t=>{if(400===e.status){const e=[] +;throw Object.values(t.errors).forEach(t=>{e.push(...t)}),new Error(e.join("\n"))}throw new Error(t.detail)}))}({sms_email:o}).then(t=>{e({...t,exp:Date.now()+1e3*t.exp})}).catch(e=>{t([e.message])})}}function E(e,t){return r.useCallback((o,n,r)=>{const s=C(n);s.length>0?t(s):function({code:e,sid:t}){const o=new FormData;return t&&o.append("sid",t),o.append("code",e),(0,u.fetch)("/accounts/phone-verify-check/",{method:"POST",credentials:"include",body:o,signal:f}).then(e=>y(e))}({code:n,sid:r}).then(()=>{e(o)}).catch(e=>{t([e.message])})},[])}function k(e,t){return r.useCallback((o,n,r)=>{const s=C(n);s.length>0?t(s):function({code:e,sid:t}){const o=new FormData;return t&&o.append("sid",t),o.append("code",e),(0,u.fetch)("/accounts/sms-email/check_code/",{method:"POST",credentials:"include",body:o,signal:f}).then(e=>e.ok?e.json():e.json().then(({detail:e})=>{throw new Error(e)}))}({code:n,sid:r}).then(()=>{e(o)}).catch(e=>{t([e.message])})},[])}m()&&(p=new AbortController,f=p.signal),function(e){e.Sms="sms",e.Call="call"}(w||(w={}));var _=o(97754),N=o(49483),B=o(78274),V=o(86623),j=o(86629),I=o(67029);const M=r.forwardRef((e,t)=>{const{className:o,...n}=e;return r.useEffect(()=>()=>{var e;t&&(null===(e=t.current)||void 0===e||e.blur())},[]),r.createElement(V.FormInput,{reference:e=>{e&&t&&(t.current=e)},className:_(I.InputClasses.FontSizeLarge,o),size:"large",messagesPosition:j.MessagesPosition.Attached,stretch:!0,...n})});var H=o(10660);const P=r.forwardRef((e,t)=>{const{value:o,disabled:n=!1,errors:i}=e,a=e.code?"+"+e.code:"",l=r.useCallback(t=>{const{value:o}=t.target;isNaN(Number(o))||e.onChange(o)},[]),c=N.isSafari&&"input-disable-mode-safari";return r.createElement(M,{ref:t,inputClassName:_(H["ui-kit-input"],H.input,H["digit-"+a.length],n&&H[c||""]),placeholder:a?s.t("Enter phone number"):"",startSlot:r.createElement(B.StartSlot,null,r.createElement("div",{className:H.code},a)),value:o,onChange:l,disabled:n,hasErrors:i&&i.length>0,errors:i})});var z=o(44065),O=o(11298);function K(e){const t=window.sessionStorage.getItem(e);if(null!==t)try{const o=JSON.parse(t);return Math.ceil((o.exp-Date.now())/1e3)<0?void L(e):o}catch(t){return void L(e)}}function W(){return K("_tempPhoneExp")}function D(){return K("_tempSmsEmailExp")}function T(e){window.sessionStorage.setItem("_tempPhoneExp",JSON.stringify(e))}function L(e){window.sessionStorage.removeItem(e)}function $(){window.sessionStorage.removeItem("_callIsAvailableExp")}function A(){const e=window.sessionStorage.getItem("_callIsAvailableExp");if(null===e)return!1;try{const t=Number(e);if(Date.now()n)||($(),!1)}catch(e){return $(),!1}}var F=o(67844),R=o(61074),Y=o(9481),J=o(71036),q=o(2998),Q=o(64118),G=o(4298),Z=o(18041),U=o(70412),X=o(42707),ee=o(86240),te=o(94254),oe=o(79826),ne=o(8714);const re=ee["media-mf-tablet-vertical"],se=s.t("Get the code via SMS"),ie=s.t("Get the code via phone call");function ae(e){const[t,o]=(0,U.useHover)(),{disabled:n,children:s,onClick:i,icon:a}=e,l=(0, +X.useMatchMedia)(re);return r.createElement(q.Manager,null,r.createElement(Q.Reference,null,e=>r.createElement(J.SquareButton,{...o,size:"large",variant:"secondary",className:ne.button,disabled:n,icon:a,iconOnly:!!l||void 0,reference:e.ref,onClick:i,stretch:!0},s)),r.createElement(G.Popper,{strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,9]}}],placement:"top"},e=>t&&!n&&r.createElement(Z.TooltipWidget,{reference:e.ref,style:e.style,arrowReference:e.arrowProps.ref,arrowStyle:e.arrowProps.style,arrowClassName:_(ne.arrowHolder,ne["arrowHolder--above"]),"data-placement":e.placement,containerClassName:ne.tooltip},r.createElement("div",{style:{padding:10}},s))))}function le(e){const{phoneCallAvailable:t,disabled:o,verifyWithCall:n}=e;return r.createElement("div",{className:ne["button-box-code"]},!t&&r.createElement(J.SquareButton,{stretch:!0,size:"large",disabled:o},s.t("Get code")),t&&r.createElement("div",{className:ne["small-buttons"]},r.createElement(ae,{disabled:o,icon:oe},se),r.createElement(ae,{disabled:o,onClick:n,icon:te},ie)))}var ce,de=o(6087),ue=o(26843),he=o(54325);function me(e){return void 0===e?0:Math.ceil((e-Date.now())/1e3)}function pe(e,t){var o,n;return(null!==(n=null===(o=t[e])||void 0===o?void 0:o.phone_code)&&void 0!==n?n:1).toString()}!function(e){e[e.WaitValue=0]="WaitValue",e[e.Verify=1]="Verify",e[e.WaitSMSCode=2]="WaitSMSCode",e[e.CheckingSMSCode=3]="CheckingSMSCode"}(ce||(ce={}));const fe={step:ce.WaitValue,smsCode:"",verifyErrors:[],timer:0,smsErrors:[],smsPartShowed:!1,phoneCallAvailable:!1};function ve(e,t,o){switch(t.type){case"waitValue":return A();case"waitSMSCode":return 0===o||A();case"codeExpired":return!0;default:return e.phoneCallAvailable}}function ge(e,t){switch(t.type){case"waitValue":return ce.WaitValue;case"verify":return ce.Verify;case"verifyErrors":return ce.WaitValue;case"waitSMSCode":return ce.WaitSMSCode;case"codeExpired":return ce.WaitValue;case"smsErrors":return e.timer<=0?ce.WaitValue:ce.WaitSMSCode;case"checkingSMSCode":return ce.CheckingSMSCode;default:return e.step}}function be(e,t){const{iso:o,options:n,phone:r}=e,{iso:s,code:i,phone:a}=t;return{iso:""===s&&o?o:s,code:""===i&&o?pe(o,n):i,phone:""===a&&r?r:a}}function we(e,t){let o=e;switch(t.type){case"setValue":o={...e,value:{...e.value,...t.value},verifyErrors:[]};break;case"verifyErrors":{const{errors:n}=t;o={...e,verifyErrors:n};break}case"waitSMSCode":{const{sid:n,exp:r,value:s={}}=t;o={...e,sid:n,exp:r,verifyErrors:[],timer:me(r),smsPartShowed:!0,value:{...e.value,...s}};break}case"timerId":o={...e,timerId:t.timerId};break;case"timerTick":o={...e,timer:t.timer};break;case"codeExpired":o={...e,timer:0,exp:void 0,sid:void 0};break;case"setSMSCode":o={...e,smsCode:t.smsCode,smsErrors:[]};break;case"smsErrors":o={...e,smsErrors:t.errors};break;case"close":o={...e,smsPartShowed:!1,exp:void 0,timer:0,sid:void 0,verifyErrors:[],smsErrors:[]}}return{...o,step:ge(e,t),phoneCallAvailable:ve(e,t,o.timer)}}const ye=()=>r.useReducer(we,function(){let e={...fe,phoneCallAvailable:A(),value:{iso:"",code:"", +phone:""}};const t=W();return void 0!==t&&(e={...e,...t,step:ce.WaitSMSCode,timer:me(t.exp)}),e}()),Ce=()=>r.useReducer(we,function(){let e={...fe,value:{email:""}};const t=D();return void 0!==t&&(e={...e,...t,step:ce.WaitSMSCode,timer:me(t.exp)}),e}());var Se=o(96722);const xe=r.forwardRef((e,t)=>{const{value:o,errors:n,disabled:s,id:i}=e,a=r.useCallback(t=>{e.onChange(t.target.value)},[]);return r.createElement(M,{id:i,ref:t,disabled:s,hasErrors:n&&n.length>0,errors:n,value:o,onChange:a})});var Ee=o(97737),ke=o(26996),_e=o(1787),Ne=o(30152),Be=o(96290);const Ve=s.t("You can request a new code in {timer} seconds. If you are not receiving it, check out possible {linkOpen}solutions{linkClose}."),[je,,Ie,,Me]=Ve.split(/({linkOpen}|{linkClose})/);function He(e){const{onSubmit:t,timer:o,step:n,smsCode:i,setSMSCode:a,errors:l,hidden:c,disableInput:d}=e,u=r.useRef(null);return r.useLayoutEffect(()=>{var e;c||n!==ce.WaitSMSCode||null===(e=u.current)||void 0===e||e.focus()},[c,n]),c?null:r.createElement(r.Fragment,null,r.createElement("form",{className:Be["code-block"],onSubmit:t},r.createElement("div",{className:Be["labeled-input"]},r.createElement(Se.Label,{className:Be.label,htmlFor:"code-verification-input"},s.t("Verification code")),r.createElement(xe,{id:"code-verification-input",value:i,onChange:a,errors:l,disabled:n===ce.CheckingSMSCode||d,ref:u})),r.createElement("div",{className:Be["button-box"]},r.createElement(Ee.Button,{useFullWidth:!0,size:"l",disabled:n===ce.CheckingSMSCode||d},n!==ce.CheckingSMSCode&&s.t("Submit"),n===ce.CheckingSMSCode&&r.createElement(ke.Loader,{color:(0,de.getCurrentTheme)().name===ue.StdTheme.Light?"white":"gray"})))),r.createElement("div",{className:Be["timer-block"]},je.format({timer:o}),r.createElement("a",{className:Be.link,onClick:()=>(0,Ne.showSupportDialog)({solutionId:_e.solutionIds.SMS_VERIFICATION})},Ie),Me))}function Pe(e){var t;const{responseOptions:o,onVerificationCancel:n,opened:i,onConfirmed:a}=e,[l,c]=ye(),{value:d,step:u,verifyErrors:h,exp:m,timer:p,timerId:f,smsCode:g,sid:b,smsPartShowed:y,smsErrors:C,phoneCallAvailable:x}=l,{iso:k,code:_,phone:N}=d,[B,V]=r.useState(!1),j=r.useRef(!1),I=S(e=>{T({phone:N,code:_,iso:k,...e}),function(e){const t=window.sessionStorage.getItem("_callIsAvailableExp");window.sessionStorage.setItem("_callIsAvailableExp",t?Date.now().toString():e.toString())}(e.exp),c({type:"waitSMSCode",...e}),V(!1)},e=>{c({type:"verifyErrors",errors:e})});r.useEffect(()=>v,[]),r.useEffect(()=>{if(i){const e=W();if(void 0!==e&&me(e.exp)>0){void 0!==e.verify&&V(!0);const t={iso:e.iso,code:e.code,phone:e.phone};c({type:"waitSMSCode",sid:e.sid,exp:e.exp,value:t})}else V(!1),c({type:"waitValue"})}},[i,B]);const M=E(t=>{e.onVerificationSuccess(t),a(),function(e){const t=window.sessionStorage.getItem("_tempPhoneExp");if(null!==t)try{const o=JSON.parse(t);T(Object.assign(o,e))}catch(e){return void L("_tempPhoneExp")}}({verify:!0})},e=>{c({type:"smsErrors",errors:e})});r.useEffect(()=>{null!==o&&c({type:"setValue",value:be(o,{phone:N,code:_,iso:k})})},[o]), +r.useLayoutEffect(()=>{let t;return void 0===m&&clearInterval(f),void 0!==m&&(clearInterval(f),t=setInterval(()=>{const t=me(m);t<=0?(e.onVerificationCodeExpired(),c({type:"codeExpired"})):c({type:"timerTick",timer:t})},500),c({type:"timerId",timerId:t})),()=>clearInterval(t)},[m]);const H=u===ce.Verify||u===ce.WaitSMSCode||null===o;const K=r.useRef(null);return r.useLayoutEffect(()=>{var e;i&&u===ce.WaitValue&&(null===(e=K.current)||void 0===e||e.focus())},[i,u]),r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:27,handler:function(){j.current||$()}}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:$}),r.createElement("div",{className:Be["wrapper-content"]},r.createElement("h5",{className:Be.title},s.t("Account verification")),r.createElement("p",{className:Be.description},s.t("Enter your phone number to receive a confirmation code. If there are any errors with SMS delivery, you can receive your code via automated phone call. Your phone number will not be used for any other purpose other than account verification.")),r.createElement("form",{className:Be["phone-block"],onSubmit:e=>{var t;e.preventDefault(),null===(t=K.current)||void 0===t||t.blur(),c({type:"verify"}),I(k,_,N,w.Sms)}},r.createElement("div",{className:Be["spinner-wrap"]},null===o&&r.createElement(R.Spinner,{size:"medium"}),r.createElement(O.CountrySelect,{className:null===o?Be["hide-country-select"]:void 0,countries:(D=null!==(t=null==o?void 0:o.options)&&void 0!==t?t:{},Object.values(D).map(e=>({name:e.country,code:(0,he.toCountryCode)(e.country_code),iconUrl:(0,z.flagUrl)(e.country_code.toLowerCase())}))),onSelected:e=>{o&&c({type:"setValue",value:{iso:e.code,code:pe(e.code,o.options)}})},onToggle:function(e){j.current=e},flagUrl:(0,z.flagUrl)(k.toLowerCase()),text:"",disabled:H})),r.createElement(P,{ref:K,code:_,value:N,onChange:function(e){c({type:"setValue",value:{phone:e}})},disabled:H,errors:h}),r.createElement(le,{disabled:H,phoneCallAvailable:x,verifyWithCall:()=>{c({type:"verify"}),I(k,_,N,w.Call)}})),r.createElement(He,{onSubmit:e=>{e.preventDefault(),c({type:"checkingSMSCode"}),M(`+${_}${N}`,g,null!=b?b:"")},smsCode:g,setSMSCode:function(e){c({type:"setSMSCode",smsCode:e})},errors:C,step:u,timer:p.toString(),hidden:!y,disableInput:B&&H})));var D;function $(){n(),c({type:"close"}),e.onClose()}}function ze(e){const{onVerificationCancel:t,opened:o,onConfirmed:n}=e,[i,a]=Ce(),{value:l,step:c,verifyErrors:d,exp:u,timer:h,timerId:m,smsCode:p,sid:f,smsPartShowed:g,smsErrors:b}=i,{email:w}=l,y=x(e=>{!function(e){window.sessionStorage.setItem("_tempSmsEmailExp",JSON.stringify(e))}({email:w,...e}),a({type:"waitSMSCode",...e})},e=>{a({type:"verifyErrors",errors:e})});r.useEffect(()=>v,[]),r.useEffect(()=>{if(o){const e=D();void 0!==e&&me(e.exp)>0?a({type:"waitSMSCode",sid:e.sid,exp:e.exp,value:{email:e.email}}):a({type:"waitValue"})}},[o]);const C=k(t=>{e.onVerificationSuccess(t),n()},e=>{a({type:"smsErrors",errors:e})});r.useLayoutEffect(()=>{let t +;return void 0===u&&clearInterval(m),void 0!==u&&(clearInterval(m),t=setInterval(()=>{const t=me(u);t<=0?(e.onVerificationCodeExpired(),a({type:"codeExpired"})):a({type:"timerTick",timer:t})},500),a({type:"timerId",timerId:t})),()=>clearInterval(t)},[u]);const S=c===ce.Verify||c===ce.WaitSMSCode;const E=r.useRef(null);return r.useLayoutEffect(()=>{var e;o&&c===ce.WaitValue&&(null===(e=E.current)||void 0===e||e.focus())},[o,c]),r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:27,handler:_}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:_}),r.createElement("div",{className:Be["wrapper-content"]},r.createElement("h5",{className:Be.title},s.t("Account verification")),r.createElement("p",{className:Be.description},s.t("Enter your email address below. We’ll send you a text message with a confirmation code.")),r.createElement("form",{className:Be["email-block"],onSubmit:e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.blur(),a({type:"verify"}),y(w)}},r.createElement(M,{ref:E,placeholder:s.t("Email"),value:w,onChange:e=>{return t=e.target.value,void a({type:"setValue",value:{email:t}});var t},disabled:S,hasErrors:d.length>0,errors:d,className:Be.input}),r.createElement(le,{disabled:S,phoneCallAvailable:!1})),r.createElement(He,{onSubmit:e=>{e.preventDefault(),a({type:"checkingSMSCode"}),C(w,p,null!=f?f:"")},smsCode:p,setSMSCode:function(e){a({type:"setSMSCode",smsCode:e})},errors:b,step:c,timer:h.toString(),hidden:!g})));function _(){t(),a({type:"close"}),e.onClose()}}var Oe=o(90692);function Ke(e){const{onClose:t,message:o}=e;return r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:13,handler:t}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:t}),r.createElement("div",{className:Be["wrapper-content-successful"]},r.createElement("h5",{className:Be.title},s.t("Verification successful")),r.createElement("p",{className:Be.description},o),r.createElement(Oe.MatchMedia,{rule:ee["media-phone"]},e=>r.createElement(Ee.Button,{useFullWidth:e,size:e?"l":"m",onClick:t,className:e?"":Be["okay-button"]},s.t("Okay")))))}function We(e){const t=b(),[o,n]=r.useState(!1),i=()=>{n(!1),e.onClose()},a=(0,s.t)("Now you have access to social features, such as chatting, publishing ideas and following other users.");return r.createElement("div",{className:Be["content-wrap-template"]},!o&&r.createElement(Pe,{responseOptions:t,onConfirmed:()=>e.showConfirmation?n(!0):i(),...e}),o&&r.createElement(Ke,{onClose:i,message:a}))}function De(e){const[t,o]=r.useState(!1),n=()=>{o(!1),e.onClose()},i=(0,s.t)("Now you can receive text messages alerts to your phone");return r.createElement("div",{className:Be["content-wrap-template"]},!t&&r.createElement(ze,{onConfirmed:()=>e.showConfirmation?o(!0):n(),...e}),t&&r.createElement(Ke,{onClose:n,message:i}))}function Te(e){const{featureSource:t=""}=e,o=location.pathname,r={onVerificationSuccess:e=>{ +window.user.has_phone=!0,(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("verified",t,o)})}};return d(We,e,n.Phone,r)}function Le(e){const t={onVerificationSuccess:e=>{window.user.sms_email=e}};return d(De,e,n.SmsEmail,t)}},43989:(e,t,o)=>{"use strict";o.d(t,{setFixedBodyState:()=>i});var n=o(68722);let r=0,s=!1;function i(e){const{body:t}=document,o=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,n.getCSSProperty)(t,"overflow"),r=(0,n.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,n.setStyle)(o,"right",(0,n.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,n.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),s)){(0,n.setStyle)(o,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,n.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},91955:(e,t,o)=>{"use strict";async function n(){if(!window.user||window.user.do_not_track)return null;{const e=(await Promise.all([o.e(2917),o.e(4081)]).then(o.bind(o,98491))).getTrackerInstance();return e||null}}o.d(t,{getTracker:()=>n})},11298:(e,t,o)=>{"use strict";o.d(t,{CountrySelect:()=>w,getCountries:()=>y});var n=o(59496),r=o(97754),s=o(28353),i=o(22064),a=o(67029),l=o(78274),c=o(93211),d=o(9481),u=o(68721),h=o(26597),m=o(86629),p=o(93573);const f=n.lazy(async()=>({default:(await Promise.all([o.e(9129),o.e(2888),o.e(4956),o.e(7245),o.e(1e3),o.e(6973)]).then(o.bind(o,56973))).CountryList}));function v(e){const{isOpen:t,countries:o,onSelected:r,selectedCountry:s,onClose:i,className:a,attachment:l,targetAttachment:c}=e;return n.createElement(n.Fragment,null,t&&n.createElement(n.Suspense,{fallback:null},n.createElement(f,{className:a,onClose:i,selectedCountry:s,onSelected:r,countries:o,attachment:l,targetAttachment:c})))}var g=o(98898);let b;function w(e){var t;const{flagUrl:o,disabled:s=!1,countries:p,selectedCountry:f,onSelected:b,onToggle:w,className:y,dropDownClassName:C,stretch:S,dropdownAttachment:x,text:E,buttonSize:k="large","aria-labelledby":_,id:N,hasErrors:B,errors:V}=e,j=(0,m.useControlValidationLayout)({hasErrors:B,errors:V}),{isOpened:I,isFocused:M,buttonTabIndex:H,highlight:P,intent:z,open:O,close:K,toggle:W,buttonFocusBindings:D,onButtonClick:T,buttonRef:L,buttonAria:$}=(0,u.useControlDisclosure)({id:N,disabled:s}),A=(0,i.joinDomIds)(_,N),F=A.length>0?A:void 0,R=(0,h.useKeyboardToggle)(W),Y=(0,h.useKeyboardClose)(I,K),J=(0,h.useKeyboardOpen)(I,O),q=(0,h.useKeyboardEventHandler)(R,Y,J);return(0,n.useEffect)(()=>{w&&w(I)},[I]),n.createElement(n.Fragment,null,n.createElement(d.KeyboardDocumentListener,{keyCode:27,handler:K}),n.createElement(v,{className:C,onClose:K,selectedCountry:f,onSelected:b,countries:p,isOpen:I,attachment:null==x?void 0:x.attachment,targetAttachment:null==x?void 0:x.targetAttachment}),n.createElement(a.ControlSkeleton,{...D,...$,className:r(g.countrySelect,y),intent:null!==(t=j.intent)&&void 0!==t?t:z,highlight:P,isFocused:M,size:k,stretch:S,disabled:s, +role:"button",tabIndex:H,"aria-haspopup":"listbox","aria-labelledby":F,ref:L,onClick:T,onKeyDown:q,startSlot:o&&n.createElement(l.StartSlot,{className:g.flagSlot},n.createElement("img",{className:g.flag,src:o,role:"presentation"})),middleSlot:n.createElement(l.MiddleSlot,{className:g.textSlot},E),endSlot:n.createElement(l.EndSlot,null,n.createElement(c.Caret,{isDropped:I,disabled:s,className:g.caretSelectBtn}))}),j.renderedErrors)}async function y(){return b||(b=(0,p.getCountries)().then(e=>{const t=[];if(Object.keys(e.countries).forEach(o=>{t.push({code:o,name:s.t(e.countries[o]),iconUrl:`/static/images/svg/common/flags/flag-square-${o.toLowerCase()}.svg`})}),t.length%3!=0){const e=t.length%3,o=e?3-e:0;for(let e=0;e{"use strict";o.d(t,{CloseButton:()=>n.CloseButton});var n=o(35582)},68721:(e,t,o)=>{"use strict";o.d(t,{useControlDisclosure:()=>c});var n=o(59496),r=o(88537),s=o(29202),i=o(47201),a=o(22064),l=o(35749);function c(e){const{intent:t,highlight:o,...c}=e,{isFocused:d,...u}=function(e){const{id:t,disabled:o,buttonTabIndex:c=0,onFocus:d,onBlur:u,onClick:h}=e,[m,p]=(0,n.useState)(!1),[f,v]=(0,s.useFocus)(),g=f||m,b=void 0!==t?(0,a.createDomId)(t,"listbox"):void 0,w=(0,n.useRef)(null),y=(0,n.useCallback)(e=>(0,r.ensureNotNull)(w.current).focus(e),[w]),C=(0,n.useRef)(null),S=(0,n.useCallback)(()=>(0,r.ensureNotNull)(C.current).focus(),[C]),x=(0,n.useCallback)(()=>p(!0),[p]),E=(0,n.useCallback)((e=!1)=>{p(!1);const{activeElement:t}=document;t&&(0,l.isTextEditingField)(t)||y({preventScroll:e})},[p,y]),k=(0,n.useCallback)(()=>{m?E():x()},[m,E,x]),_=o?[]:[d,v.onFocus],N=o?[]:[u,v.onBlur],B=o?[]:[h,k],V=(0,i.createSafeMulticastEventHandler)(..._),j=(0,i.createSafeMulticastEventHandler)(...N),I=(0,i.createSafeMulticastEventHandler)(...B);return{listboxId:b,isOpened:m,isFocused:g,buttonTabIndex:o?-1:c,listboxTabIndex:-1,open:x,close:E,toggle:k,onOpen:S,buttonFocusBindings:{onFocus:V,onBlur:j},onButtonClick:I,buttonRef:w,listboxRef:C,buttonAria:{"aria-controls":m?b:void 0,"aria-expanded":m,"aria-disabled":o}}}(c);return{...u,isFocused:d,highlight:null!=o?o:d,intent:null!=t?t:d?"primary":"default"}}},26597:(e,t,o)=>{"use strict";o.d(t,{useKeyboardActionHandler:()=>i,useComposedKeyboardActionHandlers:()=>a,useKeyboardEventHandler:()=>l,useKeyboardToggle:()=>c,useKeyboardClose:()=>d,useKeyboardOpen:()=>u});var n=o(59496),r=o(68335);const s=()=>!0;function i(e,t,o=s){return(0,n.useCallback)(n=>{const r=e.map(e=>"function"==typeof e?e():e);return!(!o()||!r.includes(n))&&(t(),!0)},[...e,t,o])}function a(...e){return(0,n.useCallback)(t=>{for(const o of e)if(o(t))return!0;return!1},[...e])}function l(...e){const t=a(...e);return(0,n.useCallback)(e=>{t((0,r.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return i([13,32],e)}function d(e,t){return i([9,(0,n.useCallback)(()=>r.Modifiers.Shift+9,[]),27],t,(0,n.useCallback)(()=>e,[e]))}function u(e,t){return i([40,38],t,(0,n.useCallback)(()=>!e,[e]))}}, +42707:(e,t,o)=>{"use strict";o.d(t,{useSafeMatchMedia:()=>r,useMatchMedia:()=>s});var n=o(59496);function r(e,t=!1){const[o,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{const t=window.matchMedia(e);function o(){r(t.matches)}return o(),t.addListener(o),()=>{t.removeListener(o)}},[e]),o}function s(e){const t=(0,n.useMemo)(()=>window.matchMedia(e).matches,[]);return r(e,t)}},93211:(e,t,o)=>{"use strict";o.d(t,{Caret:()=>d});var n=o(59496),r=o(97754),s=o.n(r),i=o(9745),a=o(89974),l=o(99171);function c(e){const{isDropped:t}=e;return n.createElement(i.Icon,{className:s()(l.icon,t&&l.dropped),icon:a})}function d(e){const{className:t,disabled:o,isDropped:r}=e;return n.createElement("span",{className:s()(l.button,o&&l.disabled,t)},n.createElement(c,{isDropped:r}))}},96722:(e,t,o)=>{"use strict";o.d(t,{Label:()=>l});var n=o(59496),r=o(97754),s=o.n(r),i=o(78274),a=o(28335);function l(e){const{htmlFor:t,children:o,className:r,id:l,...c}=e;return n.createElement(i.BeforeSlot,{...c,className:s()(a.label,r)},n.createElement("label",{id:l,htmlFor:t},o))}},9481:(e,t,o)=>{"use strict";o.d(t,{KeyboardDocumentListener:()=>r});var n=o(59496);class r extends n.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},90692:(e,t,o)=>{"use strict";o.d(t,{MatchMedia:()=>r});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},61074:(e,t,o)=>{"use strict";o.d(t,{Spinner:()=>i});var n=o(59496),r=o(97754),s=o(33134);o(24780);function i(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return n.createElement("div",{className:t,style:e.style,role:"progressbar"})}},18041:(e,t,o)=>{"use strict";o.d(t,{TooltipWidget:()=>l});var n=o(59496),r=o(97754),s=o(9745),i=(o(65718),o(73366)),a=o(44443);n.PureComponent;function l(e){const{className:t,containerClassName:o,contentClassName:l,reference:c,style:d,arrow:u=!0,arrowClassName:h,arrowReference:m,onClose:p,arrowStyle:f,children:v,...g}=e;return n.createElement("div",{...g,className:t,ref:c,style:d},u&&n.createElement("div",{className:h,ref:m,style:f}),n.createElement("div",{className:r(a.container,o)},n.createElement("div",{ +className:r(a.content,l)},v),p&&n.createElement(s.Icon,{className:a.closeButton,icon:i,onClick:p})))}},64120:e=>{e.exports=''},12565:e=>{e.exports=''},95781:e=>{e.exports=''},7801:e=>{e.exports=''},33584:e=>{e.exports=''},89974:e=>{e.exports=''},4135:e=>{e.exports=''},73366:e=>{e.exports=''},94254:e=>{e.exports=''},79826:e=>{ +e.exports=''},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","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)"}')}}]); \ No newline at end of file diff --git a/charting_library/bundles/f071c28bf387d220afe4bd2c6f60323a.svg b/charting_library/bundles/f071c28bf387d220afe4bd2c6f60323a.svg new file mode 100644 index 00000000..4519cd60 --- /dev/null +++ b/charting_library/bundles/f071c28bf387d220afe4bd2c6f60323a.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f073a4ed2f2edbf549bad8b3c546af03.svg b/charting_library/bundles/f073a4ed2f2edbf549bad8b3c546af03.svg new file mode 100644 index 00000000..eb17f498 --- /dev/null +++ b/charting_library/bundles/f073a4ed2f2edbf549bad8b3c546af03.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f10291bc2bf8e3dea0bb036041d3e89f.svg b/charting_library/bundles/f10291bc2bf8e3dea0bb036041d3e89f.svg new file mode 100644 index 00000000..db96acf2 --- /dev/null +++ b/charting_library/bundles/f10291bc2bf8e3dea0bb036041d3e89f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f15ab85cea9ea5749e2befe786e1c9d3.svg b/charting_library/bundles/f15ab85cea9ea5749e2befe786e1c9d3.svg new file mode 100644 index 00000000..ea9466bc --- /dev/null +++ b/charting_library/bundles/f15ab85cea9ea5749e2befe786e1c9d3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f29883fbecb99912bbfeb0897f8b4edc.svg b/charting_library/bundles/f29883fbecb99912bbfeb0897f8b4edc.svg new file mode 100644 index 00000000..16bb47d4 --- /dev/null +++ b/charting_library/bundles/f29883fbecb99912bbfeb0897f8b4edc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f3530d099857810e5d04b52373b1cb41.svg b/charting_library/bundles/f3530d099857810e5d04b52373b1cb41.svg new file mode 100644 index 00000000..4e2e16f6 --- /dev/null +++ b/charting_library/bundles/f3530d099857810e5d04b52373b1cb41.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f3fb677a4f9680b6b5f45fc41b04688d.svg b/charting_library/bundles/f3fb677a4f9680b6b5f45fc41b04688d.svg new file mode 100644 index 00000000..92525cea --- /dev/null +++ b/charting_library/bundles/f3fb677a4f9680b6b5f45fc41b04688d.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f4d0c0597f2db7dcd7cd774b822de366.svg b/charting_library/bundles/f4d0c0597f2db7dcd7cd774b822de366.svg new file mode 100644 index 00000000..c0bf1cd7 --- /dev/null +++ b/charting_library/bundles/f4d0c0597f2db7dcd7cd774b822de366.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f5ed10ec1625eb393ada7073b9afd17e.svg b/charting_library/bundles/f5ed10ec1625eb393ada7073b9afd17e.svg new file mode 100644 index 00000000..cfc1b615 --- /dev/null +++ b/charting_library/bundles/f5ed10ec1625eb393ada7073b9afd17e.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f6f3045f75b50af8eb75a84a81c1816f.svg b/charting_library/bundles/f6f3045f75b50af8eb75a84a81c1816f.svg new file mode 100644 index 00000000..0a012446 --- /dev/null +++ b/charting_library/bundles/f6f3045f75b50af8eb75a84a81c1816f.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f8385849a7dacc12bc2195528ceb1085.svg b/charting_library/bundles/f8385849a7dacc12bc2195528ceb1085.svg new file mode 100644 index 00000000..3b7a1357 --- /dev/null +++ b/charting_library/bundles/f8385849a7dacc12bc2195528ceb1085.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f869295c1d9ceedfc8c6ddd92efb8ca2.svg b/charting_library/bundles/f869295c1d9ceedfc8c6ddd92efb8ca2.svg new file mode 100644 index 00000000..44de3da6 --- /dev/null +++ b/charting_library/bundles/f869295c1d9ceedfc8c6ddd92efb8ca2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f89dbcaf40a5563735910a76243dc1b3.svg b/charting_library/bundles/f89dbcaf40a5563735910a76243dc1b3.svg new file mode 100644 index 00000000..ba2af0c6 --- /dev/null +++ b/charting_library/bundles/f89dbcaf40a5563735910a76243dc1b3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f8f54d8b574077d60ffb81a4bc19ed57.svg b/charting_library/bundles/f8f54d8b574077d60ffb81a4bc19ed57.svg new file mode 100644 index 00000000..a1d666df --- /dev/null +++ b/charting_library/bundles/f8f54d8b574077d60ffb81a4bc19ed57.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/f98fa40daa7d9e2981645268d2a38d52.svg b/charting_library/bundles/f98fa40daa7d9e2981645268d2a38d52.svg new file mode 100644 index 00000000..21251a7e --- /dev/null +++ b/charting_library/bundles/f98fa40daa7d9e2981645268d2a38d52.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fa0f0ffdb522cb20d692df5233f45074.jpeg b/charting_library/bundles/fa0f0ffdb522cb20d692df5233f45074.jpeg new file mode 100644 index 00000000..cd6beb96 Binary files /dev/null and b/charting_library/bundles/fa0f0ffdb522cb20d692df5233f45074.jpeg differ diff --git a/charting_library/bundles/fba03cbebf73ac8a537f901ec25dd0be.svg b/charting_library/bundles/fba03cbebf73ac8a537f901ec25dd0be.svg new file mode 100644 index 00000000..3a66ef88 --- /dev/null +++ b/charting_library/bundles/fba03cbebf73ac8a537f901ec25dd0be.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fbd9c87447564af33463832c85652af0.svg b/charting_library/bundles/fbd9c87447564af33463832c85652af0.svg new file mode 100644 index 00000000..04e6fb63 --- /dev/null +++ b/charting_library/bundles/fbd9c87447564af33463832c85652af0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fd1f2a821ac21b8c757f95ba0b5032e0.svg b/charting_library/bundles/fd1f2a821ac21b8c757f95ba0b5032e0.svg new file mode 100644 index 00000000..0e246698 --- /dev/null +++ b/charting_library/bundles/fd1f2a821ac21b8c757f95ba0b5032e0.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fd3642416e066a41978041df1fce04c8.svg b/charting_library/bundles/fd3642416e066a41978041df1fce04c8.svg new file mode 100644 index 00000000..4e00187f --- /dev/null +++ b/charting_library/bundles/fd3642416e066a41978041df1fce04c8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fe631cd46d01b4816097228f3591db19.svg b/charting_library/bundles/fe631cd46d01b4816097228f3591db19.svg new file mode 100644 index 00000000..d0f9d26f --- /dev/null +++ b/charting_library/bundles/fe631cd46d01b4816097228f3591db19.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/fe924d5d871ef07299ad5e11db2c8a70.svg b/charting_library/bundles/fe924d5d871ef07299ad5e11db2c8a70.svg new file mode 100644 index 00000000..7c713c38 --- /dev/null +++ b/charting_library/bundles/fe924d5d871ef07299ad5e11db2c8a70.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/ff8661f5c81b7137caa81145ed74b154.svg b/charting_library/bundles/ff8661f5c81b7137caa81145ed74b154.svg new file mode 100644 index 00000000..5cf48d7f --- /dev/null +++ b/charting_library/bundles/ff8661f5c81b7137caa81145ed74b154.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/charting_library/bundles/floating-toolbars.9319534e46a9e0511fbc.js b/charting_library/bundles/floating-toolbars.9319534e46a9e0511fbc.js deleted file mode 100644 index 57902ae8..00000000 --- a/charting_library/bundles/floating-toolbars.9319534e46a9e0511fbc.js +++ /dev/null @@ -1,27 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2306],{66783:t=>{"use strict";var e=Object.prototype.hasOwnProperty;function o(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,i){if(o(t,i))return!0;if("object"!=typeof t||null===t||"object"!=typeof i||null===i)return!1;var n=Object.keys(t),s=Object.keys(i);if(n.length!==s.length)return!1;for(var r=0;r{},42024:()=>{},6539:t=>{t.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},99376:()=>{},24302:()=>{},64547:t=>{t.exports={button:"button-SS83RYhy"}},69124:t=>{t.exports={wrap:"wrap-HhKLwxmq",icon:"icon-HhKLwxmq",colorBg:"colorBg-HhKLwxmq",color:"color-HhKLwxmq",multicolor:"multicolor-HhKLwxmq",white:"white-HhKLwxmq"}},88168:t=>{t.exports={button:"button-Ou6proUJ"}},2680:t=>{t.exports={item:"item-Fil3AvDD",withIcon:"withIcon-Fil3AvDD",icon:"icon-Fil3AvDD",labelRow:"labelRow-Fil3AvDD",multiWidth:"multiWidth-Fil3AvDD",buttonWrap:"buttonWrap-Fil3AvDD",buttonLabel:"buttonLabel-Fil3AvDD"}},10667:t=>{t.exports={container:"container-WiTVOllB",sectionTitle:"sectionTitle-WiTVOllB",separator:"separator-WiTVOllB",customButton:"customButton-WiTVOllB"}},99565:t=>{t.exports={container:"container-UpS01XRM",form:"form-UpS01XRM",swatch:"swatch-UpS01XRM",inputWrap:"inputWrap-UpS01XRM",inputHash:"inputHash-UpS01XRM",input:"input-UpS01XRM",buttonWrap:"buttonWrap-UpS01XRM",hueSaturationWrap:"hueSaturationWrap-UpS01XRM",saturation:"saturation-UpS01XRM",hue:"hue-UpS01XRM"}},24429:t=>{t.exports={hue:"hue-oQv2KoOx",pointer:"pointer-oQv2KoOx",pointerContainer:"pointerContainer-oQv2KoOx"}},15381:t=>{t.exports={opacity:"opacity-YL5Gjk00",opacitySlider:"opacitySlider-YL5Gjk00",opacitySliderGradient:"opacitySliderGradient-YL5Gjk00",pointer:"pointer-YL5Gjk00",dragged:"dragged-YL5Gjk00",opacityPointerWrap:"opacityPointerWrap-YL5Gjk00",opacityInputWrap:"opacityInputWrap-YL5Gjk00",opacityInput:"opacityInput-YL5Gjk00", -opacityInputPercent:"opacityInputPercent-YL5Gjk00"}},88440:t=>{t.exports={saturation:"saturation-lJHGRPyu",pointer:"pointer-lJHGRPyu"}},24590:t=>{t.exports={swatches:"swatches-qgksmXjR",swatch:"swatch-qgksmXjR",hover:"hover-qgksmXjR",empty:"empty-qgksmXjR",white:"white-qgksmXjR",selected:"selected-qgksmXjR",contextItem:"contextItem-qgksmXjR"}},94720:(t,e,o)=>{"use strict";o.d(e,{Button:()=>y});var i=o(59496),n=o(97754),s=o(95604),r=o(9745),a=o(6539),l=o.n(a);function c(t){const{color:e="brand",size:o="medium",variant:i="primary",stretch:r=!1,icon:a,startIcon:c,endIcon:d,iconOnly:h=!1,className:p,isGrouped:u,cellState:g,disablePositionAdjustment:_=!1}=t,m=function(t){let e="";return 0!==t&&(1&t&&(e=n(e,l()["no-corner-top-left"])),2&t&&(e=n(e,l()["no-corner-top-right"])),4&t&&(e=n(e,l()["no-corner-bottom-right"])),8&t&&(e=n(e,l()["no-corner-bottom-left"]))),e}((0,s.getGroupCellRemoveRoundBorders)(g));return n(p,l().button,l()["size-"+o],l()["color-"+e],l()["variant-"+i],r&&l().stretch,(a||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],h&&l()["icon-only"],m,u&&l().grouped,u&&!_&&l()["adjust-position"],u&&g.isTop&&l()["first-row"],u&&g.isLeft&&l()["first-col"])}function d(t){const{size:e,startIcon:o,icon:n,iconOnly:s,children:a,endIcon:c}=t,d=null!=o?o:n;return i.createElement(i.Fragment,null,d&&"xsmall"!==e&&i.createElement(r.Icon,{icon:d,className:l()["start-icon-wrap"]}),a&&i.createElement("span",{className:l().content},a),c&&!s&&"xsmall"!==e&&i.createElement(r.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var h=o(86332),p=o(90186);function u(t){const{className:e,color:o,variant:i,size:n,stretch:s,animated:r,icon:a,iconOnly:l,startIcon:c,endIcon:d,...h}=t;return{...h,...(0,p.filterDataProps)(t),...(0,p.filterAriaProps)(t)}}function g(t){const{reference:e,...o}=t,{isGrouped:n,cellState:s,disablePositionAdjustment:r}=(0,i.useContext)(h.ControlGroupContext),a=c({...o,isGrouped:n,cellState:s,disablePositionAdjustment:r});return i.createElement("button",{...u(o),className:a,ref:e},i.createElement(d,{...o}))}function _(t="default"){switch(t){case"default":return"primary";case"stroke":return"secondary"}}function m(t="primary"){switch(t){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function v(t="m"){switch(t){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function w(t){const{intent:e,size:o,appearance:i,useFullWidth:n,icon:s,...r}=t;return{...r,color:m(e),size:v(o),variant:_(i),stretch:n,startIcon:s}}function y(t){return i.createElement(g,{...w(t)})}},86332:(t,e,o)=>{"use strict";o.d(e,{ControlGroupContext:()=>i});const i=o(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(t,e,o)=>{"use strict";function i(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}o.d(e,{getGroupCellRemoveRoundBorders:()=>i})},14593:(t,e,o)=>{"use strict";o.d(e,{ToolWidgetIconButton:()=>a}) -;var i=o(59496),n=o(97754),s=o(4825),r=o(64547);const a=i.forwardRef((t,e)=>{const{className:o,id:a,...l}=t;return i.createElement(s.ToolWidgetButton,{"data-name":a,...l,ref:e,className:n(o,r.button)})})},56588:(t,e,o)=>{"use strict";o.r(e),o.d(e,{FavoriteDrawingToolbar:()=>_});var i=o(28353),n=o(95952),s=o(89377),r=o(32563),a=o(62046),l=o(28296),c=o(97056),d=o(85733),h=o(92469),p=o(56840),u=o(52714),g=o.n(u);o(99376);class _ extends n.FloatingToolbar{constructor(t){super({allowSortable:!r.mobiletouch,dragOnlyInsideToolbar:!0,defaultPosition:t,positionSettingsKey:"chart.favoriteDrawingsPosition",positionStorageType:"device"}),this._linetoolsWidgets={},this._canBeShownValue=new(g())(!1),this._attachHandlers(),this._loadVisibilityState(),this._hideAction=this._createHideToolbarAction()}show(){this._canBeShownValue.value()&&(p.setValue("ChartFavoriteDrawingToolbarWidget.visible",!0),this.isVisible()||this._renderAllLinetools(),super.show())}hide(){p.setValue("ChartFavoriteDrawingToolbarWidget.visible",!1),super.hide()}canBeShown(){return this._canBeShownValue.readonly()}_correctPosition(t){super._correctPosition(t);const e=this._getSavedPosition();if(!e)return;const o=this._getCorrectedWidgetRect();if(!o.width)return;const i=window.innerWidth-o.right,n=window.innerHeight-o.bottom;e.left>t.left&&i>0&&(t.left=Math.min(t.left+i,e.left)),e.top>t.top&&n>0&&(t.top=Math.min(t.top+n,e.top))}_onFavoriteAdded(t){this._canBeShownValue.setValue(!0),this.addWidget(this._createLinetoolWidget(t)),this.show()}_onFavoriteRemoved(t){this.removeWidget(this._linetoolsWidgets[t]),delete this._linetoolsWidgets[t],0===s.LinetoolsFavoritesStore.favoritesCount()&&(this._canBeShownValue.setValue(!1),this.hide())}_onFavoriteMoved(){this._renderAllLinetools()}_onSelectedLinetoolChanged(t){Object.keys(this._linetoolsWidgets).forEach(e=>{this._linetoolsWidgets[e].classList.toggle("i-active",t===e)})}_createLinetoolWidget(t){const e=`${h.lineToolsInfo[t].icon}`,o=(0,a.parseHtmlElement)(e);return o.addEventListener("click",e=>{e.preventDefault(),d.tool.value()!==t&&d.tool.setValue(t)}),this._linetoolsWidgets[t]=o,o}_renderAllLinetools(){this._linetoolsWidgets={},this.removeWidgets(),s.LinetoolsFavoritesStore.favorites().filter(t=>h.lineToolsInfo[t]).forEach(t=>{this.addWidget(this._createLinetoolWidget(t))})}_attachHandlers(){s.LinetoolsFavoritesStore.favoriteAdded.subscribe(this,this._onFavoriteAdded),s.LinetoolsFavoritesStore.favoriteRemoved.subscribe(this,this._onFavoriteRemoved),s.LinetoolsFavoritesStore.favoriteMoved.subscribe(this,this._onFavoriteMoved),s.LinetoolsFavoritesStore.favoritesSynced.subscribe(null,()=>{this._loadVisibilityState(),this._renderAllLinetools()}),this.onWidgetsReordered().subscribe(this,(t,e)=>{if(s.LinetoolsFavoritesStore.favoriteMoved.unsubscribe(this,this._onFavoriteMoved), -!s.LinetoolsFavoritesStore.moveFavorite(s.LinetoolsFavoritesStore.favorite(t),e))throw new Error("Something went wrong");s.LinetoolsFavoritesStore.favoriteMoved.subscribe(this,this._onFavoriteMoved)}),this.onContextMenu(t=>{t.preventDefault(),c.ContextMenuManager.showMenu([this._hideAction],t)}),d.tool.subscribe(this._onSelectedLinetoolChanged.bind(this))}_createHideToolbarAction(){return new l.Action({actionId:"Chart.FavoriteDrawingToolsToolbar.Hide",label:(0,i.t)("Hide Favorite Drawing Tools Toolbar"),onExecute:()=>{this.hide()}})}_loadVisibilityState(){const t=s.LinetoolsFavoritesStore.favoritesCount()>0;this._canBeShownValue.setValue(t);p.getBool("ChartFavoriteDrawingToolbarWidget.visible",!0)&&t?this.show():this.hide()}}},95952:(t,e,o)=>{"use strict";o.d(e,{FLOATING_TOOLBAR_REACT_WIDGETS_CLASS:()=>S,FloatingToolbar:()=>T});var i=o(59064),n=o(32563),s=o(68587),r=o(56840),a=o(2872),l=o.n(a),c=o(52714),d=o.n(c),h=o(38881);class p extends h.ChunkLoader{_startLoading(){return Promise.all([o.e(1553),o.e(2377)]).then(o.bind(o,13367)).then(t=>t.HammerJS)}}var u=o(11417),g=o(88537);function _(t,e=!1){const o=getComputedStyle(t),i=[o.height];return"border-box"!==o.boxSizing&&i.push(o.paddingTop,o.paddingBottom,o.borderTopWidth,o.borderBottomWidth),e&&i.push(o.marginTop,o.marginBottom),i.reduce((t,e)=>t+(parseFloat(e)||0),0)}function m(t,e=!1){const o=getComputedStyle(t),i=[o.width];return"border-box"!==o.boxSizing&&i.push(o.paddingLeft,o.paddingRight,o.borderLeftWidth,o.borderRightWidth),e&&i.push(o.marginLeft,o.marginRight),i.reduce((t,e)=>t+(parseFloat(e)||0),0)}var v=o(49483);class w{constructor(t){var e,o;this._helper=null,this._handleDragStart=t=>{var e;if(null!==this._helper)return;const o=this._source;o.classList.add("ui-draggable-dragging");const[i,n]=[m(o),_(o)];this._helper={startTop:parseFloat(o.style.top)||0,startLeft:parseFloat(o.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[i,n],containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(o).marginLeft)-parseInt(getComputedStyle(o).marginRight)-i,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(o).marginTop)-parseInt(getComputedStyle(o).marginBottom)-n]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-i,window.scrollY+document.documentElement.offsetHeight-n]:null},null===(e=this._start)||void 0===e||e.call(this)},this._handleDragMove=t=>{var e;if(null===this._helper)return -;const{current:o,initial:i}=t.detail,n=this._source,s=this._helper.nextTop,r=this._helper.nextLeft,a="y"===this._axis||!1===this._axis||0!==o.movementY;if(a){const t=this._helper.startTop;isFinite(t)&&(this._helper.nextTop=o.clientY-i.clientY+t)}const l="x"===this._axis||!1===this._axis||0!==o.movementY;if(l){const t=this._helper.startLeft;isFinite(t)&&(this._helper.nextLeft=o.clientX-i.clientX+t)}if(null!==this._helper.containment){const[t,e,o,i]=this._helper.containment;a&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,i),this._helper.nextTop=Math.max(this._helper.nextTop,e)),l&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,o),this._helper.nextLeft=Math.max(this._helper.nextLeft,t))}null!==this._helper.raf||s===this._helper.nextTop&&r===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame(()=>{null!==this._helper&&(null!==this._helper.nextTop&&(n.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(n.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)})),null===(e=this._drag)||void 0===e||e.call(this)},this._handleDragStop=t=>{var e;if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,null===(e=this._stop)||void 0===e||e.call(this)};const i=this._source=t.source;i.classList.add("ui-draggable");const n=this._handle=null!==(e=t.handle?i.querySelector(t.handle):null)&&void 0!==e?e:i;n.classList.add("ui-draggable-handle"),this._start=t.start,this._stop=t.stop,this._drag=t.drag,this._backend=new y({handle:n,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=null!==(o=t.axis)&&void 0!==o&&o,this._containment=t.containment}destroy(){const t=this._source;t.classList.remove("ui-draggable"),t.classList.remove("ui-draggable-dragging");this._handle.classList.remove("ui-draggable-handle"),this._backend.destroy(),null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),this._helper=null)}}class y{constructor(t){this._initial=null,this._handlePointerDown=t=>{if(null!==this._initial)return;if(!(t.target instanceof Element&&this._handle.contains(t.target)))return;if(this._initial=t,!this._dispatchEvent(this._createEvent("pointer-drag-start",t)))return void(this._initial=null);t.preventDefault();const e=this._getEventTarget();e.addEventListener("pointermove",this._handlePointerMove),e.addEventListener("pointerup",this._handlePointerUp),e.addEventListener("pointercancel",this._handlePointerUp),e.addEventListener("lostpointercapture",this._handlePointerUp),e.setPointerCapture(t.pointerId)},this._handlePointerMove=t=>{null!==this._initial&&this._initial.pointerId===t.pointerId&&(t.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",t)))},this._handlePointerUp=t=>{if(null===this._initial||this._initial.pointerId!==t.pointerId)return;t.preventDefault();const e=this._getEventTarget() -;e.removeEventListener("pointermove",this._handlePointerMove),e.removeEventListener("pointerup",this._handlePointerUp),e.removeEventListener("pointercancel",this._handlePointerUp),e.removeEventListener("lostpointercapture",this._handlePointerUp),e.releasePointerCapture(this._initial.pointerId),this._dispatchEvent(this._createEvent("pointer-drag-stop",t)),this._initial=null};const e=this._handle=t.handle;this._onDragStart=t.onDragStart,this._onDragMove=t.onDragMove,this._onDragStop=t.onDragStop,e.style.touchAction="none";this._getEventTarget().addEventListener("pointerdown",this._handlePointerDown)}destroy(){this._handle.style.touchAction="";const t=this._getEventTarget();t.removeEventListener("pointerdown",this._handlePointerDown),t.removeEventListener("pointermove",this._handlePointerMove),t.removeEventListener("pointerup",this._handlePointerUp),t.removeEventListener("pointercancel",this._handlePointerUp),t.removeEventListener("lostpointercapture",this._handlePointerUp),null!==this._initial&&(t.releasePointerCapture(this._initial.pointerId),this._initial=null)}_getEventTarget(){return v.CheckMobile.iOS()||(0,v.isMac)()&&n.touch?window.document.documentElement:this._handle}_dispatchEvent(t){switch(t.type){case"pointer-drag-start":this._onDragStart(t);break;case"pointer-drag-move":this._onDragMove(t);break;case"pointer-drag-stop":this._onDragStop(t)}return!t.defaultPrevented}_createEvent(t,e){return(0,g.assert)(null!==this._initial),new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:e}})}}var b=o(62046),f=o(51768),C=o(25570);o(24302);const S="floating-toolbar-react-widgets",x=`
${C}
`;class T{constructor(t){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new(d())(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new(l()),this._responsiveResizeFunction=null,this._showTimeStamp=null,this._draggable=null,this._preventClickUntilAnimation=t=>{null!==this._showTimeStamp&&performance.now()-this._showTimeStamp{this.isVisible()&&this._widget.classList.remove("i-closed")})):this._widget.classList.remove("i-closed"),this._onWindowResize())}hide(t=!1){if(!this.isVisible())return;const e=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||e)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{const t=setTimeout(()=>{this._setHiddingTimeout(null),this._widget.classList.add("i-hidden")},this.hideDuration());this._setHiddingTimeout(t)}window.removeEventListener("resize",this._windowResizeListener)}raise(){T._toolbars.length+T._startZIndex!==this._zIndex()&&(T._toolbars.splice(T._toolbars.indexOf(this),1),T._toolbars.push(this),T._updateAllZIndexes())}hideDuration(){return.75*s.dur}addWidget(t,e={}){const o=this.widgetsCount();if(void 0===e.index&&(e.index=o),e.index<0||e.index>o)throw new Error(`Index must be in [0, ${o}]`);const i=document.createElement("div");i.className="tv-floating-toolbar__widget js-widget",i.appendChild(t);const n=e.index===o?null:this._content.childNodes.item(e.index);this._content.insertBefore(i,n),this._onWindowResize()}getReactWidgetContainer(){return this._reactWidgetsContainer}removeWidget(t){const e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())}widgetsCount(){return this._content.childNodes.length}showWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")}hideWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")}removeWidgets(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()}onWidgetsReordered(){return this._reorderedDelegate}onContextMenu(t){if(n.mobiletouch){(new p).load().then(e=>{const o=new e(this._widget);o.get("press").set({time:500}),o.on("press",e=>{this._preventWidgetTouchEndEvent(),t(e.srcEvent)})})}else this._widget.addEventListener("contextmenu",t)}checkPosition(){const t=this._getCorrectedWidgetRect(),e={left:t.left,top:t.top};this._correctPosition(e),t.left===e.left&&t.top===e.top||(this._widget.style.left=e.left+"px",this._widget.style.top=e.top+"px")} -_determineCurrentLayoutVertical(t){const e=this._isVertical?t.height:t.width;return window.innerWidthwindow.innerWidth&&(t.left=Math.max(0,window.innerWidth-e.width)),t.top+e.height>window.innerHeight&&(t.top=Math.max(0,window.innerHeight-e.height)),t.left=Math.max(0,t.left),t.top=Math.max(0,t.top)}_getCorrectedWidgetRect(){const t=this._widget.getBoundingClientRect();if(this._widget.classList.contains("i-closed")){const e=1/.925-1,o=t.width*e,i=t.height*e;return{bottom:t.bottom+i/2,height:t.height+i,left:t.left-o/2,right:t.right+o/2,top:t.top-i/2,width:t.width+o}}return t}_getSavedPosition(){var t;let e;if("device"===this._options.positionStorageType){const t=u.TVLocalStorage.getItem(this._options.positionSettingsKey);e=null!==t?JSON.parse(t):null}else e=null!==(t=(0,r.getJSON)(this._options.positionSettingsKey))&&void 0!==t?t:null;return null!==e&&"top"in e&&"left"in e?e:null}_setHiddingTimeout(t){null!==this._hiddingTimeoutId&&clearTimeout(this._hiddingTimeoutId),this._hiddingTimeoutId=t}_preventWidgetTouchEndEvent(){const t=e=>{e.preventDefault(),this._widget.removeEventListener("touchend",t)};this._widget.addEventListener("touchend",t)}_updateLayoutType(){this._widget.classList.toggle("i-vertical",this._isVertical)}_updateAxisOption(){0}_onWindowResize(){if("auto"===(this._options.layout||"auto")){const t=this._isVertical,e=this._getCorrectedWidgetRect();this._isVertical=this._determineCurrentLayoutVertical(e),this._updateLayoutType(),t!==this._isVertical&&(this._onVerticalChanged(this._isVertical,t),this._updateAxisOption())}this.checkPosition(),this._resizeResponsive()}_resizeResponsive(){if(null===this._responsiveResizeFunction)return;let t=this._options.layout||"auto";"auto"===t&&(t=this._isVertical?"vertical":"horizontal");const e="vertical"===t?this._widget.clientHeight:this._widget.clientWidth,o=("vertical"===t?window.innerHeight:window.innerWidth)-e;this._responsiveResizeFunction(e,o,t)}_setZIndex(t){this._widget.style.zIndex=String(t)}_zIndex(){return Number(this._widget.style.zIndex)}_loadPosition(){var t;const e=null!==(t=this._getSavedPosition())&&void 0!==t?t:this._options.defaultPosition;this._widget.style.left=Math.round(e.left)+"px",this._widget.style.top=Math.round(e.top)+"px",this._onWindowResize()}_savePosition(){const t=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{u.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:t.left,top:t.top}))}catch(t){}else(0,r.setJSON)(this._options.positionSettingsKey,{left:t.left,top:t.top})}_init(){this._loadPosition(),this._draggable=new w({source:this._widget,containment:"window",handle:".js-drag",start:i.globalCloseMenu,stop:this._savePosition.bind(this) -}),this._widget.addEventListener("pointerdown",this.raise.bind(this))}_initSortable(){let t=-1;lazyJqueryUI(this._content).sortable({start:(e,o)=>{t=o.item.index()},stop:(e,o)=>{const i=o.item.index();t!==i&&((0,f.trackEvent)("Floating Toolbar","User Sort"),this._reorderedDelegate.fire(t,i))},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()}static _updateAllZIndexes(){T._toolbars.forEach((t,e)=>{t._setZIndex(T._startZIndex+e)})}}T._startZIndex=20,T._toolbars=[]},36052:(t,e,o)=>{"use strict";o.d(e,{LineToolPropertiesWidgetBase:()=>ft});var i=o(59496),n=o(87995),s=o(28353),r=o(24980),a=o(67337),l=o(52714),c=o.n(l),d=o(80643),h=o(14291),p=o(85733),u=o(37865),g=o(88537),_=o(2015),m=o.n(_);class v extends(m()){constructor(t,e,o){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t,this._propertyApplier=e,this._undoText=o}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(t,void 0,{applyValue:(t,e)=>this._propertyApplier.setProperty(t,e,this._undoText)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const o=o=>{this._isProcess||e.call(t,this)},i={obj:t,method:e,callback:o};this._listenersMappers.push(i),this._baseProperty.subscribe(t,o)}unsubscribe(t,e){var o;const i=(0,g.ensureDefined)(null===(o=this._listenersMappers.find(o=>o.obj===t&&o.method===e))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(t,i)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}var w=o(88451),y=o(84877),b=o(95952),f=o(24437);const C=b.FLOATING_TOOLBAR_REACT_WIDGETS_CLASS+"__button";function S(t){const{templateButton:e,propertyButtons:o,commonButtons:n,isDrawingFinished:s,activeChartWidget:r}=t,a=r.hasModel()&&r.model().selection().dataSources();return a&&a.length?i.createElement(y.MatchMediaMap,{rules:{isSmallWidth:f.DialogBreakpoints.TabletSmall,isSmallHeight:"screen and (max-height: 428px)"}},({isSmallWidth:t,isSmallHeight:e})=>i.createElement(i.Fragment,null,l(),s&&i.createElement(i.Fragment,null,Boolean(o.length)&&o.map((o,n)=>i.createElement(o.component,{...o.props,key:`${o.props.title}_${n}`,className:C,isSmallScreen:t||e})),Boolean(n.length)&&n.map((o,n)=>{const s=t||e;return s?o.showForSmallScreen?i.createElement(o.component,{...o.props,isSmallScreen:s,key:`${o.props.title}_${n}`,className:C}):null:i.createElement(o.component,{...o.props,key:`${o.props.title}_${n}`,className:C})})))):l();function l(){return null===e?null:i.createElement(e.component,{...e.props,isDrawingFinished:s,className:C})}}var x=o(51768),T=o(14593),P=o(57979);function W(t){const{title:e,activeChartWidget:o,className:n}=t;return i.createElement(T.ToolWidgetIconButton,{className:n,icon:P,title:e,onClick:async function(){(0,x.trackEvent)("GUI","Context action on drawings","Settings");const t=o.model().selection().lineDataSources(),e=t.length -;1===e?await o.showChartPropertiesForSource(t[0],void 0,{onWidget:o.onWidget()}):e>1&&await o.showChartPropertiesForSources({sources:t})},"data-name":"settings"})}var E=o(43982),k=o(97754),L=o(16534),B=o(88168);function I(t){const{className:e,...o}=t;return i.createElement(L.ToolButton,{className:k(e,B.button),tooltipPosition:"horizontal",...o})}var N=o(28358),M=o(56717);function A(t){const{activeChartWidget:e,className:o}=t,n=e.model().selection().lineDataSources();if(0===n.length)return null;const r=n[0].properties().frozen,a=(0,E.useProperty)(r),l=a?{title:(0,s.t)("Unlock"),icon:N}:{title:(0,s.t)("Lock"),icon:M};return i.createElement(I,{className:o,isActive:Boolean(a),onClick:function(){(0,x.trackEvent)("GUI","Context action on drawings","Lock"),e.toggleLockSelectedObject()},"data-name":Boolean(a)?"unlock":"lock",...l})}var D=o(78679);function V(t){const{title:e,activeChartWidget:o,className:n}=t;return i.createElement(T.ToolWidgetIconButton,{className:n,icon:D,title:e,"data-name":"remove",onClick:function(){(0,x.trackEvent)("GUI","Context action on drawings","Remove"),o.removeSelectedSources()}})}var R=o(9745),F=o(32563),z=o(68335),O=o(25760),j=o(35390),U=o(8312),H=o(28296),K=o(9481),Y=o(97056),G=o(61671),q=o(31328),$=o(26159),X=o(48111);function J(t){const{title:e,activeChartWidget:n,isSmallScreen:r,className:a}=t,l=n.model(),c=l.selection().lineDataSources(),[d,h]=(0,i.useState)([]),p=(0,i.useRef)(null),u=(0,i.useMemo)(()=>new G.ActionsProvider(n),[n]);return i.createElement(i.Fragment,null,i.createElement(K.KeyboardDocumentListener,{keyCode:27,eventType:"keyup",handler:function(){(0,g.ensureNotNull)(p.current).close()}}),i.createElement(j.ToolWidgetMenu,{className:a,ref:p,arrow:!1,onOpen:r?void 0:function(){const t=[new H.Action({actionId:"Chart.Source.VisualOrder",label:(0,s.t)("Visual order"),icon:$,subItems:_(),name:"visual-order"})],e=function(){const t=[],e=z.isMacKeyboard?" +":"",i=c.filter(t=>t.cloneable());i.length>0&&t.push(new H.Action({actionId:"Chart.LineTool.Clone",name:"clone",icon:o(16788),shortcutHint:z.humanReadableModifiers(O.Modifiers.Mod)+e+" Drag",label:(0,s.t)("Clone"),onExecute:()=>{l.cloneLineTools(i,!1),(0,x.trackEvent)("GUI","Context action on drawings","Clone")}}));const r=c.filter(t=>t.copiable());if(r.length>0){const o={actionId:"Chart.Clipboard.CopyLineTools",name:"copy",label:(0,s.t)("Copy"),shortcutHint:z.humanReadableModifiers(O.Modifiers.Mod)+e+" C",onExecute:()=>{n.chartWidgetCollection().clipboard.uiRequestCopy(r)}};t.push(new H.Action(o,"Copy"))}if(!function(){if(!(null==n?void 0:n.isMultipleLayout()))return!1;return c.some(t=>t.isSynchronizable())}())return t;return t.push(...(0,G.createSyncDrawingActions)(n,c)),t}();e.length&&t.push(new H.Separator,...e);t.push(new H.Separator,new H.Action({actionId:"Chart.SelectedObject.Hide",label:(0,s.t)("Hide"),icon:X,onExecute:()=>{n.hideSelectedObject()},name:"hide"})),h(Z(t))},onClick:r?function(t){u.contextMenuActionsForSources(c).then(e=>{ -window.matchMedia(f.DialogBreakpoints.TabletSmall).matches?Y.ContextMenuManager.showMenu(Z(e),t,{mode:"drawer","data-name":"more-menu"}):h(Z(e))})}:void 0,title:e,content:i.createElement(R.Icon,{icon:q}),"data-name":"more",menuDataName:"more-menu"},i.createElement(U.ActionsTable,{parentIsOpened:!0,items:d})));function _(){const t=[],e=l.availableZOrderOperations(c),o=new H.Action({actionId:"Chart.Source.VisualOrder.BringToFront",name:"bring-to-front",label:(0,s.t)("Bring to Front"),onExecute:()=>{l.bringToFront(c)},disabled:1===c.length&&!e.bringToFrontEnabled}),i=new H.Action({actionId:"Chart.Source.VisualOrder.SendToBack",name:"send-to-back",label:(0,s.t)("Send to Back"),onExecute:()=>{l.sendToBack(c)},disabled:1===c.length&&!e.sendToBackEnabled}),n=new H.Action({actionId:"Chart.Source.VisualOrder.BringForward",name:"bring-forward",label:(0,s.t)("Bring Forward"),onExecute:()=>{l.bringForward(c)},disabled:1===c.length&&!e.bringForwardEnabled}),r=new H.Action({actionId:"Chart.Source.VisualOrder.SendBackward",name:"send-backward",label:(0,s.t)("Send Backward"),onExecute:()=>{l.sendBackward(c)},disabled:1===c.length&&!e.sendBackwardEnabled});return t.push(o,i,n,r),t}}function Z(t){if(F.touch&&!window.matchMedia("(pointer:fine)").matches){const e=t.filter(t=>"Copy"!==t.id);if(e.length===t.length)return e;const o=[];return e.forEach(t=>{("separator"!==t.type||o.length>0&&"separator"!==o[o.length-1].type)&&o.push(t)}),o}return t}var Q=o(95936),tt=o(20618),et=o(19726),ot=o(56326);function it(t){const{property:e,propertyApplier:o,title:n,undoText:r,className:a}=t,l=(0,E.useProperty)(e),c=(0,i.useMemo)(()=>[new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToSolid",icon:tt,label:(0,s.t)("Line"),active:Q.LineStyle.Solid===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Solid,r)}),new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToDashed",icon:et,label:(0,s.t)("Dashed line"),active:Q.LineStyle.Dashed===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Dashed,r)}),new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToDotted",icon:ot,label:(0,s.t)("Dotted line"),active:Q.LineStyle.Dotted===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Dotted,r)})],[o,e,l]);return i.createElement(j.ToolWidgetMenu,{className:a,arrow:!1,content:i.createElement(R.Icon,{icon:nt(l)}),title:n,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},i.createElement(U.ActionsTable,{items:c}))}function nt(t){switch(t){case Q.LineStyle.Solid:return tt;case Q.LineStyle.Dashed:return et;case Q.LineStyle.Dotted:return ot;default:return""}}const st=[10,11,12,14,16,20,24,28,32,40];function rt(t){const{property:e,propertyApplier:o,title:n,undoText:s,className:r}=t,a=(0,E.useProperty)(e),l=st.map(t=>new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeFontSizeProperty",label:t.toString(),onExecute:()=>o.setProperty(e,t,s),active:t===a}));return i.createElement(j.ToolWidgetMenu,{arrow:!1,content:a,className:r,title:n,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},i.createElement(U.ActionsTable,{items:l}))} -var at=o(2872),lt=o.n(at);o(42024),o(62632);class ct extends b.FloatingToolbar{constructor(t){super(ct._prepareOptions(t)),this._onWidgetStateChangedDelegate=new(lt()),this._statedWidgets=[],this._currentPopup=null,this._onWindowClickedListener=this._onWindowClicked.bind(this)}show(){super.show(),document.addEventListener("mousedown",this._onWindowClickedListener)}hide(t){super.hide(t),document.removeEventListener("mousedown",this._onWindowClickedListener)}destroy(){this._closePopup(),super.destroy()}addGroupedWidget(t,e={}){(0,g.assert)(t.states.length>0&&-1!==ct._getStateIndexById(t,t.currentStateId),`Argument is invalid (count: ${t.states.length}, state: ${t.currentStateId})`);const o=document.createElement("div");o.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",t.widgetAddClass&&o.classList.add(t.widgetAddClass),o.setAttribute("title",t.tooltip);const i={isEnabled:!0,statedWidget:t,toolbarWidget:o},n=this._onWidgetClicked.bind(this,i);i.clickListener=n,o.addEventListener("click",n),this._updateWidgetPreview(i),this.addWidget(o,e),this._statedWidgets.push(i)}findGroupedWidget(t){const e=this._statedWidgets.length;for(let o=0;o{const s=this._createSubWidget(t,i),r=this._onSubWidgetClicked.bind(this,t,i.id);s.addEventListener("click",r), -e.widgets.push({clickListener:r,stateWidget:i,widget:s}),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-"+n),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-"+(o-n+1)),i.readonly||e.element.appendChild(s)}),this._currentPopup=e,this._updateSubWidgetsState(t.statedWidget),t.toolbarWidget.classList.add("i-dropped"),this._getWidget().appendChild(this._currentPopup.element),Promise.resolve().then(()=>{this._currentPopup&&this._currentPopup.element.classList.add("i-opened")}),this._updatePopupPosition()}_closePopup(){if(this._statedWidgets.forEach(t=>{t.toolbarWidget.classList.remove("i-dropped")}),!this._currentPopup)return;const t=this._currentPopup.widgets,e=this._currentPopup.element;this._currentPopup=null,t.forEach(t=>{t.widget.removeEventListener("click",t.clickListener)}),e.classList.remove("i-opened"),e.addEventListener("transitionend",t=>{t.target===e&&this._getWidget().removeChild(e)})}_updateWidgetPreview(t){const e=ct._getStateIndexById(t.statedWidget,t.statedWidget.currentStateId);(0,g.assert)(-1!==e,"Unknown state id: "+t.statedWidget.currentStateId);const o=t.statedWidget.states[e].widget.cloneNode(!0);t.toolbarWidget.firstChild?t.toolbarWidget.replaceChild(o,t.toolbarWidget.firstChild):(t.toolbarWidget.appendChild(o),t.toolbarWidget.appendChild(ct._createCaret()))}_updateSubWidgetsState(t){this._currentPopup&&this._isPopupCreatedForWidget(t.id)&&this._currentPopup.widgets.forEach(e=>{e.widget.classList.toggle(ct._activeSubWidgetClass,e.stateWidget.id===t.currentStateId)})}_updatePopupPosition(){if(!this._currentPopup)return;const t=this._currentPopup.createdFor,e=this._getWidget().getBoundingClientRect(),o=this._findWrapperForWidget(t);if(!o||!this._currentPopup)throw new Error("Toolbar has no wrapper for preview's widget or there is no popup");const i=o.getBoundingClientRect(),n=this._currentPopup.element.getBoundingClientRect(),s=this._currentPopup.element;if(this.isVertical())s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top=i.top-e.top+1+"px",s.style.left="",e.left>window.innerWidth-e.right?s.classList.add("tv-grouped-floating-toolbar__popup--at-left"):s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");let t=0;i.left+n.width>window.innerWidth?e.left+n.width>window.innerWidth&&(t=e.width-n.width):t=i.left-e.left+1,s.style.left=t+"px",e.bottom+n.height>window.innerHeight?s.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top="")}}_isPopupCreatedForWidget(t){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===t)}_createSubWidget(t,e){const o=document.createElement("div");return o.className+="tv-grouped-floating-toolbar__sub-widget",t.statedWidget.stateWidgetAddClass&&o.classList.add(t.statedWidget.stateWidgetAddClass),o.appendChild(e.widget),o}_onSubWidgetClicked(t,e){this._closePopup(), -t.statedWidget.currentStateId!==e&&(this.setGroupedWidgetState(t.statedWidget.id,e),this._onWidgetStateChangedDelegate.fire(t.statedWidget.id,e))}_onWindowClicked(t){if(this.isVisible()&&this._currentPopup&&!ct._isEventInElement(t,this._currentPopup.element)){for(let e=0;e{p.isDirectionalMovementActive.value()||(t?this._floatingToolbar.hide(!0):this._toolbarRendered&&this._floatingToolbar.show())},this._chartWidgetCollection=t,this._floatingToolbar=new ct({defaultPosition:{top:dt.HEADER_TOOLBAR_HEIGHT_EXPANDED+15,left:window.innerWidth/2},positionSettingsKey:"properties_toolbar.position",positionStorageType:"device",layout:"horizontal","data-name":"drawing-toolbar"}),this._container=this._floatingToolbar.getReactWidgetContainer(),this._isToolMovingNowSpawn=p.isToolMovingNow.spawn(),this._isToolEditingNowSpawn=p.isToolEditingNow.spawn(),this._toolSpawn=p.tool.spawn(),this._iconToolSpawn=p.iconTool.spawn(),this._selectedSourcesSpawn=this._chartWidgetCollection.selectedSources.spawn(),this._isToolMovingNowSpawn.subscribe(this._handleSourceEdit),this._isToolEditingNowSpawn.subscribe(this._handleSourceEdit),this._toolSpawn.subscribe(this._onToolChanged.bind(this),{callWithLast:!0}),this._iconToolSpawn.subscribe(()=>this._onToolChanged(p.tool.value())),this._selectedSourcesSpawn.subscribe(()=>this.onSourceChanged(this.selectedSources())),this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(this,this.destroy,!0)}destroy(){this._isToolMovingNowSpawn.destroy(),this._isToolEditingNowSpawn.destroy(),this._toolSpawn.destroy(),this._iconToolSpawn.destroy(),this._selectedSourcesSpawn.destroy()}activeChartWidget(){ -return this._chartWidgetCollection.activeChartWidget.value()}selectedSources(){return this._chartWidgetCollection.selectedSources.value().filter(h.isLineTool)}hide(){var t;this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{(0,h.unsetNewToolProperties)(),this._floatingToolbar.hide(!0),this._isToolbarRendered()&&this._unmountToolbar(),this._clearProperties(),this._clearCommonButtons()},0),null===(t=this._lineToolsDoNotAffectChartInvalidation)||void 0===t||t.destroy(),delete this._lineToolsDoNotAffectChartInvalidation,delete this._propertyApplier}_propertyApplierImpl(){return this._propertyApplier||(this._lineToolsDoNotAffectChartInvalidation||(this._lineToolsDoNotAffectChartInvalidation=new ut.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1)),this._propertyApplier=new pt.PropertyApplierWithoutSavingChart(()=>this.activeChartWidget().model(),this._lineToolsDoNotAffectChartInvalidation)),this._propertyApplier}_clearProperties(){this._clearPropertyButtons(),this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._currentProperties&&(this._currentProperties=null)}_show(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{this._renderToolbar(),this._floatingToolbar.show(),this._floatingToolbar.checkPosition()},0)}_addPropertyButton(t){this._propertyButtons.push(t),this._renderToolbar()}_addCommonButton(t){this._commonButtons.push(t),this._renderToolbar()}_addTemplatesButton(t){this._templatesButton=t}_renderToolbar(){null!==this._container&&this.activeChartWidget()&&this.activeChartWidget().hasModel()&&(n.render(i.createElement(S,{templateButton:this._templatesButton,propertyButtons:this._propertyButtons,commonButtons:this._commonButtons,isDrawingFinished:this._isDrawingFinished.value(),activeChartWidget:this.activeChartWidget()}),this._container),this._toolbarRendered=!0)}_unmountToolbar(){null!==this._container&&(n.unmountComponentAtNode(this._container),this._toolbarRendered=!1)}_clearTemplatesButton(){this._templatesButton=null}_clearPropertyButtons(){this._propertyButtons=[]}_clearCommonButtons(){this._commonButtons=[]}_isToolbarRendered(){return this._toolbarRendered}_createSettingsButton(){const t={component:W,props:{title:mt,activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createLockButton(){const t={component:A,props:{title:"Lock",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createRemoveButton(){const t={component:V,props:{title:vt,activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0};this._addCommonButton(t)}_createDotsButton(){this._addCommonButton({component:J,props:{title:wt,activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0})}_createAlertButton(){}_createSourceActions(){this._createLockButton()}_createLineStyleButton(t){ -const e=this.selectedSources();if(0===e.length)return!1;const o=e[0];if(!(0,ht.isDataSource)(o))return!1;const i={component:it,props:{property:o.properties().linestyle||t,title:yt,propertyApplier:this._propertyApplierImpl(),"data-name":"style",undoText:_t}};return this._addPropertyButton(i),!0}_createFontSizeButton(t){const e=this.selectedSources();if(0===e.length)return!1;const o=e[0];if(!(0,ht.isDataSource)(o))return!1;const i={component:rt,props:{property:o.properties().fontsize||t,title:bt,propertyApplier:this._propertyApplierImpl(),"data-name":"font-size",undoText:gt}};return this._addPropertyButton(i),!0}_createCommonButtons(){this._commonButtons.length&&this._clearCommonButtons(),a.enabled("property_pages")&&this._createSettingsButton(),this._createSourceActions(),this._createRemoveButton(),this._createDotsButton()}_prepareProperties(t){const e=this.selectedSources().filter(e=>e.properties()[t]);if(!(e.filter(e=>e.properties()[t].visible()).length<1))return e.map(e=>e.properties()[t]).filter(d.notNull)}_createProperty(t,e,o,i){if(e){const t=this._prepareProperties(o);if(!t)return;return this._isWidthProperty(t[0])?new v(new u.MultipleLineWidthsProperty(t),this._propertyApplierImpl(),i):new w.CollectibleColorPropertyUndoWrapper(new u.MultipleLineColorsProperty(t),this._propertyApplierImpl(),i)}if(t&&t.visible())return this._isWidthProperty(t)?new u.MultipleLineWidthsProperty([t]):new w.CollectibleColorPropertyDirectWrapper(new u.MultipleLineColorsProperty([t]))}_shouldShowBackgroundProperty(t,e){return!e||!e.fillBackground||!!e.fillBackground.value()}_isDrawingToolExcludingCustomUrlEventTool(t){return Boolean(null==t?void 0:t.toLowerCase().includes("linetool"))&&"LineToolTweet"!==t&&"LineToolIdea"!==t&&"LineToolImage"!==t}_isWidthProperty(t){return t instanceof u.LineToolWidthsProperty}}},87805:(t,e,o)=>{"use strict";var i=o(28353).t,n=o(24980).TranslatedString,s=(o(85733),o(36052).LineToolPropertiesWidgetBase),r=o(44601).isLineDrawnWithPressedButton;const a=o(70114).ColorPickerButton,l=o(61259).LineWidthButton;o(14291).setNewToolProperties;o(67337);var c=o(58912),d=o(98510),h=o(95990),p=(new n("apply drawing template",i("apply drawing template")),new n("change line tool(s) color",i("change line tool(s) color"))),u=new n("change line tool(s) background color",i("change line tool(s) background color")),g=new n("change line tool(s) text color",i("change line tool(s) text color")),_=new n("change line tool(s) line width",i("change line tool(s) line width")),m=i("Color"),v=i("Line tool colors"),w=i("Text color"),y=i("Line tool text colors"),b=i("Background color"),f=i("Line tool backgrounds"),C=i("Style"),S=i("Font Size"),x=i("Line tool width"),T=i("Line tool widths"),P=i("Profit background color"),W=i("Stop background color"),E=i("Marker color"),k=i("Background color 1"),L=i("Background color 2");class B extends s{constructor(t){super(t),this._hasAlertWathcedValue=null,this._templatesButton=null}_onToolChanged(t,e){this._currentTool=t;const o=this.selectedSources() -;this._isDrawingToolExcludingCustomUrlEventTool(t)?(this._isDrawingFinished.setValue(!1),this._updateVisibility()):o&&o.length?(o.length>1&&this._isDrawingFinished.setValue(!0),this.onSourceChanged(this.selectedSources())):this.hide()}findSourceOnWidget(t){for(var e=0;et.properties().linesWidths).length&&(o=T));return this._addPropertyButton({component:l,props:{title:o,multipleProperty:this._lineWidthsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"line-tool-width",undoText:_}}),!0}_createColorsButton(t,e){return this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._lineColorsProperty=this._createProperty(t,e,"linesColors",p),!this._lineColorsProperty||(this._addPropertyButton({component:a,props:{icon:c,title:v,property:this._lineColorsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"line-tool-color",undoText:p}}),!0)}_createBackgroundsButton(t,e){return this._backgroundsProperty&&(this._backgroundsProperty.destroy(),this._backgroundsProperty=null),this._backgroundsProperty=this._createProperty(t,e,"backgroundsColors",u),!this._backgroundsProperty||(this._addPropertyButton({component:a,props:{icon:d,title:f,property:this._backgroundsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"background-color",undoText:u}}),!0)}_createTextColorsButton(t,e){return this._textColorsProperty&&(this._textColorsProperty.destroy(),this._textColorsProperty=null),this._textColorsProperty=this._createProperty(t,e,"textsColors",g),!this._textColorsProperty||(this._addPropertyButton({component:a,props:{icon:h,title:y,property:this._textColorsProperty, -propertyApplier:this._propertyApplierImpl(),"data-name":"text-color",undoText:g}}),!0)}showTemplatesOf(t){}templatesList(){return this._templatesList}_getPossibleProperty(t){for(var e=[],o=this._defaultToolProperties(),i=0;i{"use strict";o.d(e,{CollectibleColorPropertyUndoWrapper:()=>a,CollectibleColorPropertyDirectWrapper:()=>l});var i=o(88537),n=o(2015),s=o.n(n);class r extends(s()){constructor(t){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t}destroy(){this._baseProperty.destroy()}value(){const t=this._baseProperty.value();return"mixed"===t?"":t}visible(){return this._baseProperty.visible()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(""===t?"mixed":t,void 0,{applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const o=o=>{this._isProcess||e.call(t,this)},i={obj:t,method:e,callback:o};this._listenersMappers.push(i),this._baseProperty.subscribe(t,o)}unsubscribe(t,e){var o;const n=(0,i.ensureDefined)(null===(o=this._listenersMappers.find(o=>o.obj===t&&o.method===e))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(t,n)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}class a extends r{constructor(t,e,o){super(t),this._propertyApplier=e,this._undoText=o}_applyValue(t,e){this._propertyApplier.setProperty(t,e,this._undoText)}}class l extends r{_applyValue(t,e){t.setValue(e)}}},44159:(t,e,o)=>{"use strict";o.d(e,{PropertyApplierWithoutSavingChart:()=>i});class i{constructor(t,e){this._undoModelSupplier=t,this._featureToggle=e}setProperty(t,e,o){this._undoModelSupplier().setProperty(t,e,o,this._featureToggle.value())}beginUndoMacro(t){return this._undoModelSupplier().beginUndoMacro(t,this._shouldWeKeepChartValidated())}endUndoMacro(){this._undoModelSupplier().endUndoMacro()}setWatchedValue(t,e,o){this._undoModelSupplier().undoHistory().setWatchedValue(t,e,o,!0)}_shouldWeKeepChartValidated(){const t=this._undoModelSupplier().model().isAutoSaveEnabled().value();return this._featureToggle.value()&&t}}},70114:(t,e,o)=>{"use strict";o.d(e,{ColorPickerButton:()=>m});var i=o(59496),n=o(97754),s=o.n(n),r=o(88537),a=o(9745),l=o(24377),c=o(68906),d=o(56512),h=o(27797),p=o(6914),u=o(35390),g=o(43982),_=o(69124);function m(t){const{property:e,icon:o,propertyApplier:n,title:m,undoText:v,className:w}=t,y=(0,g.useProperty)(e),b=(0,i.useRef)(null),f=y?(0,l.parseRgba)(y)[3]:void 0,C=""===y,S=String(W()).toLowerCase()===p.white,[x,T,P]=(0,d.useCustomColors)();return i.createElement(u.ToolWidgetMenu,{className:w,content:i.createElement("div",{className:_.wrap},i.createElement(a.Icon,{className:_.icon,icon:o}),i.createElement("div",{className:_.colorBg},i.createElement("div",{className:s()(_.color,C&&_.multicolor,S&&_.white),style:C?void 0:{backgroundColor:y}}))),arrow:!1,title:m,ref:b,"data-name":t["data-name"], -menuDataName:t["data-name"]+"-menu"},i.createElement(h.ColorPicker,{color:W(),opacity:f,onColorChange:function(t,e){const o=y?(0,c.alphaToTransparency)((0,l.parseRgba)(y)[3]):0;E((0,c.generateColor)(String(t),o,true)),e||(0,r.ensureNotNull)(b.current).close()},onOpacityChange:function(t){E((0,c.generateColor)(y,(0,c.alphaToTransparency)(t),!0))},selectOpacity:void 0!==f,selectCustom:!0,customColors:x,onAddColor:function(t){T(t),(0,r.ensureNotNull)(b.current).close()},onRemoveCustomColor:P}));function W(){return y?(0,l.rgbToHexString)((0,l.parseRgb)(y)):null}function E(t){n.setProperty(e,t,v)}}},61259:(t,e,o)=>{"use strict";o.d(e,{LineWidthButton:()=>y});var i=o(59496),n=o(97754),s=o(88537),r=o(9745),a=o(35390),l=o(43982),c=o(16396),d=o(40173),h=o(98985),p=o(47441),u=o(93129),g=o(37500),_=o(4873),m=o(2680);const v=(0,d.mergeThemes)(c.DEFAULT_POPUP_MENU_ITEM_THEME,m),w=[{value:1,icon:h},{value:2,icon:p},{value:3,icon:u},{value:4,icon:g}];function y(t){const{multipleProperty:e,title:o,undoText:d,propertyApplier:h,className:p,isSmallScreen:u}=t,g=(0,l.useProperty)((0,s.ensureDefined)(e)),y="mixed"===g||!g,b=function(t){const e=w.find(e=>e.value===t);if(!e)return _;return e.icon}(g);return i.createElement(a.ToolWidgetMenu,{className:p,arrow:!1,title:o,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu",content:i.createElement("div",null,y?i.createElement("div",{className:m.multiWidth},i.createElement(r.Icon,{icon:_})):i.createElement("div",{className:m.buttonWrap},!u&&i.createElement(r.Icon,{icon:b}),i.createElement("div",{className:n(!u&&m.buttonLabel)},g+"px")))},w.map(({value:t,icon:e})=>i.createElement(c.PopupMenuItem,{key:t,theme:v,label:t+"px",icon:e,isActive:t===g,onClick:f,onClickArg:t})));function f(t){t&&e&&(h.beginUndoMacro(d),e.setValue(t,void 0,{applyValue:(t,e)=>{h.setProperty(t,e,d)}}),h.endUndoMacro())}}},43982:(t,e,o)=>{"use strict";o.d(e,{useProperty:()=>n});var i=o(59496);const n=t=>{const[e,o]=(0,i.useState)(t.value());return(0,i.useEffect)(()=>{const e=t=>{o(t.value())};e(t);const i={};return t.subscribe(i,e),()=>t.unsubscribe(i,e)},[t]),e}},27797:(t,e,o)=>{"use strict";o.d(e,{ColorPicker:()=>I});var i=o(59496),n=o(97754),s=o.n(n),r=o(28353),a=o(24377),l=o(88537),c=o(49483),d=o(50628),h=o(16396);const p=i.createContext(void 0);var u=o(6914),g=o(78679),_=o(24590);function m(t){const{index:e,color:o,selected:s,onSelect:a}=t,[m,v]=(0,i.useState)(!1),w=(0,i.useContext)(p),y=(0,i.useRef)(null),b=Boolean(w)&&!c.CheckMobile.any();return i.createElement(i.Fragment,null,i.createElement("div",{ref:y,style:o?{color:o}:void 0,className:n(_.swatch,m&&_.hover,s&&_.selected,!o&&_.empty,String(o).toLowerCase()===u.white&&_.white),onClick:function(){a(o)},onContextMenu:b?f:void 0}),b&&i.createElement(d.PopupMenu,{isOpened:m,onClose:f,position:function(){const t=(0,l.ensureNotNull)(y.current).getBoundingClientRect();return{x:t.left,y:t.top+t.height+4}},onClickOutside:f},i.createElement(h.PopupMenuItem,{className:_.contextItem,label:(0,r.t)("Remove color"),icon:g,onClick:function(){f(),(0, -l.ensureDefined)(w)(e)},dontClosePopup:!0})));function f(){v(!m)}}class v extends i.PureComponent{constructor(){super(...arguments),this._onSelect=t=>{const{onSelect:e}=this.props;e&&e(t)}}render(){const{colors:t,color:e,children:o}=this.props;if(!t)return null;const n=e?(0,a.parseRgb)(String(e)):void 0;return i.createElement("div",{className:_.swatches},t.map((t,e)=>i.createElement(m,{key:String(t)+e,index:e,color:t,selected:n&&(0,a.areEqualRgb)(n,(0,a.parseRgb)(String(t))),onSelect:this._onSelect})),o)}}var w=o(54368),y=o(94720);function b(t){const e="Invalid RGB color: "+t;if(null===t)throw new Error(e);const o=t.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===o)throw new Error(e);const[,i,n,s]=o;if(!i||!n||!s)throw new Error(e);const r=parseInt(i,16)/255,a=parseInt(n,16)/255,l=parseInt(s,16)/255,c=Math.max(r,a,l),d=Math.min(r,a,l);let h;const p=c,u=c-d,g=0===c?0:u/c;if(c===d)h=0;else{switch(c){case r:h=(a-l)/u+(a{this._container=t},this._handlePosition=t=>{const{hsv:{h:e},onChange:o}=this.props;if(!o)return;const i=(0,l.ensureNotNull)(this._container).getBoundingClientRect(),n=t.clientX-i.left,s=t.clientY-i.top;let r=n/i.width;r<0?r=0:r>1&&(r=1);let a=1-s/i.height;a<0?a=0:a>1&&(a=1),o({h:e,s:r,v:a})},this._mouseDown=t=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=t=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(t)},this._mouseMove=(0,f.default)(this._handlePosition,100),this._handleTouch=t=>{this._handlePosition(t.nativeEvent.touches[0])}}render(){const{className:t,hsv:{h:e,s:o,v:n}}=this.props,r=`hsl(${360*e}, 100%, 50%)`;return i.createElement("div",{className:s()(C.saturation,t),style:{backgroundColor:r},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},i.createElement("div",{className:C.pointer,style:{left:100*o+"%",top:100*(1-n)+"%"}}))}}var x=o(24429);class T extends i.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=t=>{this._container=t},this._handlePosition=t=>{const{hsv:{s:e,v:o},onChange:i}=this.props;if(!i)return;const n=(0,l.ensureNotNull)(this._container).getBoundingClientRect();let s=(t.clientY-n.top)/n.height;s<0?s=0:s>1&&(s=1),i({h:s,s:e,v:o})},this._mouseDown=t=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=t=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(t)},this._mouseMove=(0,f.default)(this._handlePosition,100),this._handleTouch=t=>{this._handlePosition(t.nativeEvent.touches[0])}}render(){const{className:t,hsv:{h:e}}=this.props -;return i.createElement("div",{className:s()(x.hue,t)},i.createElement("div",{className:x.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},i.createElement("div",{className:x.pointer,style:{top:100*e+"%"}})))}}var P=o(99565);const W=(0,r.t)("Add",{context:"Color Picker"});class E extends i.PureComponent{constructor(t){super(t),this._handleHSV=t=>{const e=function(t){const{h:e,s:o,v:i}=t;let n,s,r;const a=Math.floor(6*e),l=6*e-a,c=i*(1-o),d=i*(1-l*o),h=i*(1-(1-l)*o);switch(a%6){case 0:n=i,s=h,r=c;break;case 1:n=d,s=i,r=c;break;case 2:n=c,s=i,r=h;break;case 3:n=c,s=d,r=i;break;case 4:n=h,s=c,r=i;break;case 5:n=i,s=c,r=d;break;default:n=0,s=0,r=0}return"#"+[255*n,255*s,255*r].map(t=>("0"+Math.round(t).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(t)||"#000000";this.setState({color:e,inputColor:e.replace(/^#/,""),hsv:t}),this.props.onSelect(e)},this._handleInput=t=>{const e=t.currentTarget.value;try{const t=b(e),o="#"+e;this.setState({color:o,inputColor:e,hsv:t}),this.props.onSelect(o)}catch(t){this.setState({inputColor:e})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const e=t.color||"#000000";this.state={color:e,inputColor:e.replace(/^#/,""),hsv:b(e)}}render(){const{color:t,hsv:e,inputColor:o}=this.state;return i.createElement("div",{className:P.container},i.createElement("div",{className:P.form},i.createElement("div",{className:P.swatch,style:{backgroundColor:t}}),i.createElement("div",{className:P.inputWrap},i.createElement("span",{className:P.inputHash},"#"),i.createElement("input",{type:"text",className:P.input,value:o,onChange:this._handleInput})),i.createElement("div",{className:P.buttonWrap},i.createElement(y.Button,{size:"s",onClick:this._handleAddColor},W))),i.createElement("div",{className:P.hueSaturationWrap},i.createElement(S,{className:P.saturation,hsv:e,onChange:this._handleHSV}),i.createElement(T,{className:P.hue,hsv:e,onChange:this._handleHSV})))}}var k=o(10667);const L=(0,r.t)("Add custom color",{context:"Color Picker"}),B=(0,r.t)("Opacity",{context:"Color Picker"});class I extends i.PureComponent{constructor(t){super(t),this._handleAddColor=t=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:e}=this.props;e&&e(t)},this._handleSelectColor=t=>{const{onColorChange:e}=this.props,{isCustom:o}=this.state;e&&e(t,o)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=t=>{const{onOpacityChange:e}=this.props;e&&e(t)},this.state={isCustom:!1}}componentDidUpdate(t,e){t.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:t,opacity:e,selectCustom:o,selectOpacity:n,customColors:r,onRemoveCustomColor:a}=this.props,{isCustom:l}=this.state,c="number"==typeof e?e:1;return l?i.createElement(E,{color:t,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):i.createElement("div",{className:k.container},i.createElement(v,{colors:u.basic,color:t,onSelect:this._handleSelectColor -}),i.createElement(v,{colors:u.extended,color:t,onSelect:this._handleSelectColor}),i.createElement("div",{className:k.separator}),i.createElement(p.Provider,{value:a},i.createElement(v,{colors:r,color:t,onSelect:this._handleSelectColor},o&&i.createElement("div",{className:s()(k.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:L}))),n&&i.createElement(i.Fragment,null,i.createElement("div",{className:k.sectionTitle},B),i.createElement(w.Opacity,{color:t,opacity:c,onChange:this._handleOpacity})))}_onToggleCustom(t){const{onToggleCustom:e}=this.props;e&&e(t)}}},54368:(t,e,o)=>{"use strict";o.d(e,{Opacity:()=>l});var i=o(59496),n=o(97754),s=o(88537),r=o(64514),a=o(15381);class l extends i.PureComponent{constructor(t){super(t),this._container=null,this._pointer=null,this._raf=null,this._refContainer=t=>{this._container=t},this._refPointer=t=>{this._pointer=t},this._handlePosition=t=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const e=(0,s.ensureNotNull)(this._container),o=(0,s.ensureNotNull)(this._pointer),i=e.getBoundingClientRect(),n=o.offsetWidth,a=t.clientX-n/2-i.left,l=(0,r.clamp)(a/(i.width-n),0,1);this.setState({inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null}))},this._onSliderClick=t=>{this._handlePosition(t.nativeEvent),this._dragSubscribe()},this._mouseUp=t=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(t)},this._mouseMove=t=>{this.setState({isPointerDragged:!0}),this._handlePosition(t)},this._onTouchStart=t=>{this._handlePosition(t.nativeEvent.touches[0])},this._handleTouch=t=>{this.setState({isPointerDragged:!0}),this._handlePosition(t.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=t=>{const e=t.currentTarget.value,o=Number(e)/100;this.setState({inputOpacity:e}),Number.isNaN(o)||o>1||this.props.onChange(o)},this.state={inputOpacity:Math.round(100*t.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:t,opacity:e,hideInput:o}=this.props,{inputOpacity:s,isPointerDragged:r}=this.state,l={color:t||void 0};return i.createElement("div",{className:a.opacity},i.createElement("div",{className:a.opacitySlider,style:l,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},i.createElement("div",{className:a.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${t})`}}),i.createElement("div",{className:a.opacityPointerWrap},i.createElement("div",{className:n(a.pointer,r&&a.dragged),style:{left:100*e+"%"},ref:this._refPointer}))),!o&&i.createElement("div",{className:a.opacityInputWrap},i.createElement("input",{type:"text",className:a.opacityInput,value:s,onChange:this._handleInput}),i.createElement("span",{className:a.opacityInputPercent},"%")))}_dragSubscribe(){const t=(0, -s.ensureNotNull)(this._container).ownerDocument;t&&(t.addEventListener("mouseup",this._mouseUp),t.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const t=(0,s.ensureNotNull)(this._container).ownerDocument;t&&(t.removeEventListener("mousemove",this._mouseMove),t.removeEventListener("mouseup",this._mouseUp))}}},6914:(t,e,o)=>{"use strict";o.d(e,{white:()=>n,basic:()=>a,extended:()=>c});var i=o(45112);const n=i.colorsPalette["color-white"],s=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],r=[200,300,400,500,600,700,800,900].map(t=>"color-cold-gray-"+t);r.unshift("color-white"),r.push("color-black"),s.forEach(t=>{r.push(`color-${t}-500`)});const a=r.map(t=>i.colorsPalette[t]),l=[];[100,200,300,400,700,900].forEach(t=>{s.forEach(e=>{l.push(`color-${e}-${t}`)})});const c=l.map(t=>i.colorsPalette[t])},56512:(t,e,o)=>{"use strict";o.d(e,{useCustomColors:()=>l});var i=o(59496),n=o(56840),s=o(76422);function r(t,e){(0,i.useEffect)(()=>(s.subscribe(t,e,null),()=>{s.unsubscribe(t,e,null)}),[t,e])}var a=o(24377);function l(){const[t,e]=(0,i.useState)((0,n.getJSON)("pickerCustomColors",[]));r("add_new_custom_color",o=>e(c(o,t))),r("remove_custom_color",o=>e(d(o,t)));const o=(0,i.useCallback)(e=>{const o=e?(0,a.parseRgb)(e):null;t.some(t=>null!==t&&null!==o&&(0,a.areEqualRgb)((0,a.parseRgb)(t),o))||(s.emit("add_new_custom_color",e),(0,n.setJSON)("pickerCustomColors",c(e,t)))},[t]),l=(0,i.useCallback)(e=>{(e>=0||e29&&o.shift(),o}function d(t,e){return e.filter((e,o)=>t!==o)}},84877:(t,e,o)=>{"use strict";o.d(e,{MatchMediaMap:()=>r});var i=o(59496),n=o(66783),s=o.n(n);class r extends i.Component{constructor(t){super(t),this._handleMediaChange=()=>{const t=l(this.state.queries,(t,e)=>e.matches);let e=!1;for(const o in t)if(t.hasOwnProperty(o)&&this.state.matches[o]!==t[o]){e=!0;break}e&&this.setState({matches:t})};const{rules:e}=this.props;this.state=a(e)}shouldComponentUpdate(t,e){return!s()(t,this.props)||(!s()(e.rules,this.state.rules)||!s()(e.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(t,e){s()(t.rules,this.props.rules)||this._migrate(e.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(t,e){if(s()(t.rules,e.rules))return null;const{rules:o}=t;return a(o)}_migrate(t,e){null!==t&&l(t,(t,e)=>{e.removeListener(this._handleMediaChange)}),null!==e&&l(e,(t,e)=>{e.addListener(this._handleMediaChange)})}}function a(t){const e=l(t,(t,e)=>window.matchMedia(e));return{queries:e,matches:l(e,(t,e)=>e.matches),rules:{...t}}}function l(t,e){const o={};for(const i in t)t.hasOwnProperty(i)&&(o[i]=e(i,t[i]));return o}},31328:t=>{ -t.exports=''},19726:t=>{t.exports=''},56326:t=>{t.exports=''},20618:t=>{t.exports=''},16788:t=>{t.exports=''},98510:t=>{t.exports=''},25570:t=>{t.exports=''},98985:t=>{t.exports=''},47441:t=>{t.exports=''},93129:t=>{t.exports=''},37500:t=>{t.exports=''},4873:t=>{t.exports=''},58912:t=>{ -t.exports=''},95990:t=>{t.exports=''},57979:t=>{t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/floating-toolbars.eba8db3eef8c6a5ad047.js b/charting_library/bundles/floating-toolbars.eba8db3eef8c6a5ad047.js new file mode 100644 index 00000000..ef664405 --- /dev/null +++ b/charting_library/bundles/floating-toolbars.eba8db3eef8c6a5ad047.js @@ -0,0 +1,28 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2306],{66783:t=>{"use strict";var e=Object.prototype.hasOwnProperty;function o(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,i){if(o(t,i))return!0;if("object"!=typeof t||null===t||"object"!=typeof i||null===i)return!1;var n=Object.keys(t),r=Object.keys(i);if(n.length!==r.length)return!1;for(var s=0;s{},42024:()=>{},6539:t=>{t.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},99376:()=>{},24302:()=>{},69124:t=>{t.exports={wrap:"wrap-HhKLwxmq",icon:"icon-HhKLwxmq",colorBg:"colorBg-HhKLwxmq",color:"color-HhKLwxmq",multicolor:"multicolor-HhKLwxmq",white:"white-HhKLwxmq"}},88168:t=>{t.exports={button:"button-Ou6proUJ"}},2680:t=>{t.exports={item:"item-Fil3AvDD",withIcon:"withIcon-Fil3AvDD",icon:"icon-Fil3AvDD",labelRow:"labelRow-Fil3AvDD",multiWidth:"multiWidth-Fil3AvDD",buttonWrap:"buttonWrap-Fil3AvDD",buttonLabel:"buttonLabel-Fil3AvDD"}},10667:t=>{t.exports={container:"container-WiTVOllB",sectionTitle:"sectionTitle-WiTVOllB",separator:"separator-WiTVOllB",customButton:"customButton-WiTVOllB"}},99565:t=>{t.exports={container:"container-UpS01XRM",form:"form-UpS01XRM",swatch:"swatch-UpS01XRM",inputWrap:"inputWrap-UpS01XRM",inputHash:"inputHash-UpS01XRM",input:"input-UpS01XRM",buttonWrap:"buttonWrap-UpS01XRM",hueSaturationWrap:"hueSaturationWrap-UpS01XRM",saturation:"saturation-UpS01XRM",hue:"hue-UpS01XRM"}},24429:t=>{t.exports={hue:"hue-oQv2KoOx",pointer:"pointer-oQv2KoOx",pointerContainer:"pointerContainer-oQv2KoOx"}},15381:t=>{t.exports={opacity:"opacity-YL5Gjk00",opacitySlider:"opacitySlider-YL5Gjk00",opacitySliderGradient:"opacitySliderGradient-YL5Gjk00",pointer:"pointer-YL5Gjk00",dragged:"dragged-YL5Gjk00",opacityPointerWrap:"opacityPointerWrap-YL5Gjk00",opacityInputWrap:"opacityInputWrap-YL5Gjk00",opacityInput:"opacityInput-YL5Gjk00",opacityInputPercent:"opacityInputPercent-YL5Gjk00"}},88440:t=>{t.exports={ +saturation:"saturation-lJHGRPyu",pointer:"pointer-lJHGRPyu"}},24590:t=>{t.exports={swatches:"swatches-qgksmXjR",swatch:"swatch-qgksmXjR",hover:"hover-qgksmXjR",empty:"empty-qgksmXjR",white:"white-qgksmXjR",selected:"selected-qgksmXjR",contextItem:"contextItem-qgksmXjR"}},97737:(t,e,o)=>{"use strict";o.d(e,{AnchorButton:()=>h,Button:()=>c});var i=o(59496),n=o(71036);function r(t="default"){switch(t){case"default":return"primary";case"stroke":return"secondary"}}function s(t="primary"){switch(t){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(t="m"){switch(t){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(t){const{intent:e,size:o,appearance:i,useFullWidth:n,icon:l,...c}=t;return{...c,color:s(e),size:a(o),variant:r(i),stretch:n,startIcon:l}}function c(t){return i.createElement(n.SquareButton,{...l(t)})}function d(t){const{intent:e,size:o,appearance:i,useFullWidth:n,icon:l,...c}=t;return{...c,color:s(e),size:a(o),variant:r(i),stretch:n,startIcon:l}}function h(t){return i.createElement(n.SquareAnchorButton,{...d(t)})}},71036:(t,e,o)=>{"use strict";o.d(e,{SquareAnchorButton:()=>m,SquareButton:()=>g});var i=o(59496),n=o(97754),r=o(95604),s=o(9745),a=o(6539),l=o.n(a);function c(t){const{color:e="brand",size:o="medium",variant:i="primary",stretch:s=!1,icon:a,startIcon:c,endIcon:d,iconOnly:h=!1,className:p,isGrouped:u,cellState:g,disablePositionAdjustment:_=!1}=t,m=function(t){let e="";return 0!==t&&(1&t&&(e=n(e,l()["no-corner-top-left"])),2&t&&(e=n(e,l()["no-corner-top-right"])),4&t&&(e=n(e,l()["no-corner-bottom-right"])),8&t&&(e=n(e,l()["no-corner-bottom-left"]))),e}((0,r.getGroupCellRemoveRoundBorders)(g));return n(p,l().button,l()["size-"+o],l()["color-"+e],l()["variant-"+i],s&&l().stretch,(a||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],h&&l()["icon-only"],m,u&&l().grouped,u&&!_&&l()["adjust-position"],u&&g.isTop&&l()["first-row"],u&&g.isLeft&&l()["first-col"])}function d(t){const{size:e,startIcon:o,icon:n,iconOnly:r,children:a,endIcon:c}=t,d=null!=o?o:n;return i.createElement(i.Fragment,null,d&&"xsmall"!==e&&i.createElement(s.Icon,{icon:d,className:l()["start-icon-wrap"]}),a&&i.createElement("span",{className:l().content},a),c&&!r&&"xsmall"!==e&&i.createElement(s.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var h=o(86332),p=o(90186);function u(t){const{className:e,color:o,variant:i,size:n,stretch:r,animated:s,icon:a,iconOnly:l,startIcon:c,endIcon:d,...h}=t;return{...h,...(0,p.filterDataProps)(t),...(0,p.filterAriaProps)(t)}}function g(t){const{reference:e,...o}=t,{isGrouped:n,cellState:r,disablePositionAdjustment:s}=(0,i.useContext)(h.ControlGroupContext),a=c({...o,isGrouped:n,cellState:r,disablePositionAdjustment:s});return i.createElement("button",{...u(o),className:a,ref:e},i.createElement(d,{...o}))}function _(t){const{className:e,color:o,variant:i,size:n,stretch:r,animated:s,icon:a,iconOnly:l,startIcon:c,endIcon:d,...h}=t;return{...h,...(0,p.filterDataProps)(t),...(0,p.filterAriaProps)(t)}}function m(t){ +const{reference:e}=t,{isGrouped:o,cellState:n,disablePositionAdjustment:r}=(0,i.useContext)(h.ControlGroupContext),s=c({...t,isGrouped:o,cellState:n,disablePositionAdjustment:r});return i.createElement("a",{..._(t),className:s,ref:e},i.createElement(d,{...t}))}},86332:(t,e,o)=>{"use strict";o.d(e,{ControlGroupContext:()=>i});const i=o(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(t,e,o)=>{"use strict";function i(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}o.d(e,{getGroupCellRemoveRoundBorders:()=>i})},56588:(t,e,o)=>{"use strict";o.r(e),o.d(e,{FavoriteDrawingToolbar:()=>_});var i=o(28353),n=o(23908),r=o(89377),s=o(32563),a=o(62046),l=o(28296),c=o(97056),d=o(85733),h=o(92469),p=o(56840),u=o(52714),g=o.n(u);o(99376);class _ extends n.FloatingToolbar{constructor(t){super({allowSortable:!s.mobiletouch,dragOnlyInsideToolbar:!0,defaultPosition:t,positionSettingsKey:"chart.favoriteDrawingsPosition",positionStorageType:"device"}),this._linetoolsWidgets={},this._canBeShownValue=new(g())(!1),this._attachHandlers(),this._loadVisibilityState(),this._hideAction=this._createHideToolbarAction()}show(){this._canBeShownValue.value()&&(p.setValue("ChartFavoriteDrawingToolbarWidget.visible",!0),this.isVisible()||this._renderAllLinetools(),super.show())}hide(){p.setValue("ChartFavoriteDrawingToolbarWidget.visible",!1),super.hide()}canBeShown(){return this._canBeShownValue.readonly()}_correctPosition(t){super._correctPosition(t);const e=this._getSavedPosition();if(!e)return;const o=this._getCorrectedWidgetRect();if(!o.width)return;const i=window.innerWidth-o.right,n=window.innerHeight-o.bottom;e.left>t.left&&i>0&&(t.left=Math.min(t.left+i,e.left)),e.top>t.top&&n>0&&(t.top=Math.min(t.top+n,e.top))}_onFavoriteAdded(t){this._canBeShownValue.setValue(!0),this.addWidget(this._createLinetoolWidget(t)),this.show()}_onFavoriteRemoved(t){this.removeWidget(this._linetoolsWidgets[t]),delete this._linetoolsWidgets[t],0===r.LinetoolsFavoritesStore.favoritesCount()&&(this._canBeShownValue.setValue(!1),this.hide())}_onFavoriteMoved(){this._renderAllLinetools()}_onSelectedLinetoolChanged(t){Object.keys(this._linetoolsWidgets).forEach(e=>{this._linetoolsWidgets[e].classList.toggle("i-active",t===e)})}_createLinetoolWidget(t){const e=`${h.lineToolsInfo[t].icon}`,o=(0,a.parseHtmlElement)(e);return o.addEventListener("click",e=>{e.preventDefault(),d.tool.value()!==t&&d.tool.setValue(t)}),this._linetoolsWidgets[t]=o,o}_renderAllLinetools(){this._linetoolsWidgets={},this.removeWidgets(),r.LinetoolsFavoritesStore.favorites().filter(t=>h.lineToolsInfo[t]).forEach(t=>{this.addWidget(this._createLinetoolWidget(t))})}_attachHandlers(){r.LinetoolsFavoritesStore.favoriteAdded.subscribe(this,this._onFavoriteAdded), +r.LinetoolsFavoritesStore.favoriteRemoved.subscribe(this,this._onFavoriteRemoved),r.LinetoolsFavoritesStore.favoriteMoved.subscribe(this,this._onFavoriteMoved),r.LinetoolsFavoritesStore.favoritesSynced.subscribe(null,()=>{this._loadVisibilityState(),this._renderAllLinetools()}),this.onWidgetsReordered().subscribe(this,(t,e)=>{if(r.LinetoolsFavoritesStore.favoriteMoved.unsubscribe(this,this._onFavoriteMoved),!r.LinetoolsFavoritesStore.moveFavorite(r.LinetoolsFavoritesStore.favorite(t),e))throw new Error("Something went wrong");r.LinetoolsFavoritesStore.favoriteMoved.subscribe(this,this._onFavoriteMoved)}),this.onContextMenu(t=>{t.preventDefault(),c.ContextMenuManager.showMenu([this._hideAction],t)}),d.tool.subscribe(this._onSelectedLinetoolChanged.bind(this))}_createHideToolbarAction(){return new l.Action({actionId:"Chart.FavoriteDrawingToolsToolbar.Hide",label:(0,i.t)("Hide Favorite Drawing Tools Toolbar"),onExecute:()=>{this.hide()}})}_loadVisibilityState(){const t=r.LinetoolsFavoritesStore.favoritesCount()>0;this._canBeShownValue.setValue(t);p.getBool("ChartFavoriteDrawingToolbarWidget.visible",!0)&&t?this.show():this.hide()}}},23908:(t,e,o)=>{"use strict";o.d(e,{FLOATING_TOOLBAR_REACT_WIDGETS_CLASS:()=>w,FloatingToolbar:()=>b});var i=o(59064),n=o(32563),r=o(68587),s=o(56840),a=o(2872),l=o.n(a),c=o(52714),d=o.n(c),h=o(38881);class p extends h.ChunkLoader{_startLoading(){return Promise.all([o.e(1553),o.e(2377)]).then(o.bind(o,13367)).then(t=>t.HammerJS)}}var u=o(11417),g=o(53364),_=o(62046),m=o(51768),v=o(25570);o(24302);const w="floating-toolbar-react-widgets",y=`
${v}
`;class b{constructor(t){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new(d())(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new(l()),this._responsiveResizeFunction=null,this._showTimeStamp=null,this._draggable=null,this._preventClickUntilAnimation=t=>{null!==this._showTimeStamp&&performance.now()-this._showTimeStamp{this.isVisible()&&this._widget.classList.remove("i-closed")})):this._widget.classList.remove("i-closed"),this._onWindowResize())}hide(t=!1){if(!this.isVisible())return;const e=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||e)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{const t=setTimeout(()=>{this._setHiddingTimeout(null),this._widget.classList.add("i-hidden")},this.hideDuration());this._setHiddingTimeout(t)}window.removeEventListener("resize",this._windowResizeListener)}raise(){b._toolbars.length+b._startZIndex!==this._zIndex()&&(b._toolbars.splice(b._toolbars.indexOf(this),1),b._toolbars.push(this),b._updateAllZIndexes())}hideDuration(){return.75*r.dur}addWidget(t,e={}){const o=this.widgetsCount();if(void 0===e.index&&(e.index=o),e.index<0||e.index>o)throw new Error(`Index must be in [0, ${o}]`);const i=document.createElement("div");i.className="tv-floating-toolbar__widget js-widget",i.appendChild(t);const n=e.index===o?null:this._content.childNodes.item(e.index);this._content.insertBefore(i,n),this._onWindowResize()}getReactWidgetContainer(){return this._reactWidgetsContainer}removeWidget(t){const e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())}widgetsCount(){return this._content.childNodes.length}showWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")}hideWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")}removeWidgets(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()}onWidgetsReordered(){return this._reorderedDelegate}onContextMenu(t){if(n.mobiletouch){(new p).load().then(e=>{const o=new e(this._widget);o.get("press").set({time:500}),o.on("press",e=>{this._preventWidgetTouchEndEvent(),t(e.srcEvent)})})}else this._widget.addEventListener("contextmenu",t)}checkPosition(){const t=this._getCorrectedWidgetRect(),e={left:t.left,top:t.top};this._correctPosition(e),t.left===e.left&&t.top===e.top||(this._widget.style.left=e.left+"px",this._widget.style.top=e.top+"px")}_determineCurrentLayoutVertical(t){ +const e=this._isVertical?t.height:t.width;return window.innerWidthwindow.innerWidth&&(t.left=Math.max(0,window.innerWidth-e.width)),t.top+e.height>window.innerHeight&&(t.top=Math.max(0,window.innerHeight-e.height)),t.left=Math.max(0,t.left),t.top=Math.max(0,t.top)}_getCorrectedWidgetRect(){const t=this._widget.getBoundingClientRect();if(this._widget.classList.contains("i-closed")){const e=1/.925-1,o=t.width*e,i=t.height*e;return{bottom:t.bottom+i/2,height:t.height+i,left:t.left-o/2,right:t.right+o/2,top:t.top-i/2,width:t.width+o}}return t}_getSavedPosition(){var t;let e;if("device"===this._options.positionStorageType){const t=u.TVLocalStorage.getItem(this._options.positionSettingsKey);e=null!==t?JSON.parse(t):null}else e=null!==(t=(0,s.getJSON)(this._options.positionSettingsKey))&&void 0!==t?t:null;return null!==e&&"top"in e&&"left"in e?e:null}_setHiddingTimeout(t){null!==this._hiddingTimeoutId&&clearTimeout(this._hiddingTimeoutId),this._hiddingTimeoutId=t}_preventWidgetTouchEndEvent(){const t=e=>{e.preventDefault(),this._widget.removeEventListener("touchend",t)};this._widget.addEventListener("touchend",t)}_updateLayoutType(){this._widget.classList.toggle("i-vertical",this._isVertical)}_updateAxisOption(){0}_onWindowResize(){if("auto"===(this._options.layout||"auto")){const t=this._isVertical,e=this._getCorrectedWidgetRect();this._isVertical=this._determineCurrentLayoutVertical(e),this._updateLayoutType(),t!==this._isVertical&&(this._onVerticalChanged(this._isVertical,t),this._updateAxisOption())}this.checkPosition(),this._resizeResponsive()}_resizeResponsive(){if(null===this._responsiveResizeFunction)return;let t=this._options.layout||"auto";"auto"===t&&(t=this._isVertical?"vertical":"horizontal");const e="vertical"===t?this._widget.clientHeight:this._widget.clientWidth,o=("vertical"===t?window.innerHeight:window.innerWidth)-e;this._responsiveResizeFunction(e,o,t)}_setZIndex(t){this._widget.style.zIndex=String(t)}_zIndex(){return Number(this._widget.style.zIndex)}_loadPosition(){var t;const e=null!==(t=this._getSavedPosition())&&void 0!==t?t:this._options.defaultPosition;this._widget.style.left=Math.round(e.left)+"px",this._widget.style.top=Math.round(e.top)+"px",this._onWindowResize()}_savePosition(){const t=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{u.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:t.left,top:t.top}))}catch(t){}else(0,s.setJSON)(this._options.positionSettingsKey,{left:t.left,top:t.top})}_init(){this._loadPosition(),this._draggable=new g.Draggable({source:this._widget,containment:"window",handle:".js-drag",start:i.globalCloseMenu,stop:this._savePosition.bind(this)}), +this._widget.addEventListener("pointerdown",this.raise.bind(this))}_initSortable(){let t=-1;lazyJqueryUI(this._content).sortable({start:(e,o)=>{t=o.item.index()},stop:(e,o)=>{const i=o.item.index();t!==i&&((0,m.trackEvent)("Floating Toolbar","User Sort"),this._reorderedDelegate.fire(t,i))},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()}static _updateAllZIndexes(){b._toolbars.forEach((t,e)=>{t._setZIndex(b._startZIndex+e)})}}b._startZIndex=20,b._toolbars=[]},36052:(t,e,o)=>{"use strict";o.d(e,{LineToolPropertiesWidgetBase:()=>ft});var i=o(59496),n=o(87995),r=o(28353),s=o(24980),a=o(67337),l=o(52714),c=o.n(l),d=o(80643),h=o(14291),p=o(85733),u=o(37865),g=o(88537),_=o(2015),m=o.n(_);class v extends(m()){constructor(t,e,o){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t,this._propertyApplier=e,this._undoText=o}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(t,void 0,{applyValue:(t,e)=>this._propertyApplier.setProperty(t,e,this._undoText)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const o=o=>{this._isProcess||e.call(t,this)},i={obj:t,method:e,callback:o};this._listenersMappers.push(i),this._baseProperty.subscribe(t,o)}unsubscribe(t,e){var o;const i=(0,g.ensureDefined)(null===(o=this._listenersMappers.find(o=>o.obj===t&&o.method===e))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(t,i)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}var w=o(88451),y=o(84877),b=o(23908),f=o(24437);const C=b.FLOATING_TOOLBAR_REACT_WIDGETS_CLASS+"__button";function S(t){const{templateButton:e,propertyButtons:o,commonButtons:n,isDrawingFinished:r,activeChartWidget:s}=t,a=s.hasModel()&&s.model().selection().dataSources();return a&&a.length?i.createElement(y.MatchMediaMap,{rules:{isSmallWidth:f.DialogBreakpoints.TabletSmall,isSmallHeight:"screen and (max-height: 428px)"}},({isSmallWidth:t,isSmallHeight:e})=>i.createElement(i.Fragment,null,l(),r&&i.createElement(i.Fragment,null,Boolean(o.length)&&o.map((o,n)=>i.createElement(o.component,{...o.props,key:`${o.props.title}_${n}`,className:C,isSmallScreen:t||e})),Boolean(n.length)&&n.map((o,n)=>{const r=t||e;return r?o.showForSmallScreen?i.createElement(o.component,{...o.props,isSmallScreen:r,key:`${o.props.title}_${n}`,className:C}):null:i.createElement(o.component,{...o.props,key:`${o.props.title}_${n}`,className:C})})))):l();function l(){return null===e?null:i.createElement(e.component,{...e.props,isDrawingFinished:r,className:C})}}var x=o(51768),T=o(14593),P=o(57979);function W(t){const{title:e,activeChartWidget:o,className:n}=t;return i.createElement(T.ToolWidgetIconButton,{className:n,icon:P,title:e,onClick:async function(){(0,x.trackEvent)("GUI","Context action on drawings","Settings");const t=o.model().selection().lineDataSources(),e=t.length +;1===e?await o.showChartPropertiesForSource(t[0],void 0,{onWidget:o.onWidget()}):e>1&&await o.showChartPropertiesForSources({sources:t})},"data-name":"settings"})}var E=o(43982),L=o(97754),k=o(16534),B=o(88168);function I(t){const{className:e,...o}=t;return i.createElement(k.ToolButton,{className:L(e,B.button),tooltipPosition:"horizontal",...o})}var N=o(28358),M=o(56717);function A(t){const{activeChartWidget:e,className:o}=t,n=e.model().selection().lineDataSources();if(0===n.length)return null;const s=n[0].properties().frozen,a=(0,E.useProperty)(s),l=a?{title:(0,r.t)("Unlock"),icon:N}:{title:(0,r.t)("Lock"),icon:M};return i.createElement(I,{className:o,isActive:Boolean(a),onClick:function(){(0,x.trackEvent)("GUI","Context action on drawings","Lock"),e.toggleLockSelectedObject()},"data-name":Boolean(a)?"unlock":"lock",...l})}var D=o(78679);function V(t){const{title:e,activeChartWidget:o,className:n}=t;return i.createElement(T.ToolWidgetIconButton,{className:n,icon:D,title:e,"data-name":"remove",onClick:function(){(0,x.trackEvent)("GUI","Context action on drawings","Remove"),o.removeSelectedSources()}})}var R=o(9745),F=o(32563),z=o(68335),O=o(25760),j=o(35390),U=o(8312),H=o(28296),G=o(9481),K=o(97056),Y=o(61671),q=o(31328),$=o(26159),X=o(48111);function J(t){const{title:e,activeChartWidget:n,isSmallScreen:s,className:a}=t,l=n.model(),c=l.selection().lineDataSources(),[d,h]=(0,i.useState)([]),p=(0,i.useRef)(null),u=(0,i.useMemo)(()=>new Y.ActionsProvider(n),[n]);return i.createElement(i.Fragment,null,i.createElement(G.KeyboardDocumentListener,{keyCode:27,eventType:"keyup",handler:function(){(0,g.ensureNotNull)(p.current).close()}}),i.createElement(j.ToolWidgetMenu,{className:a,ref:p,arrow:!1,onOpen:s?void 0:function(){const t=[new H.Action({actionId:"Chart.Source.VisualOrder",label:(0,r.t)("Visual order"),icon:$,subItems:_(),name:"visual-order"})],e=function(){const t=[],e=z.isMacKeyboard?" +":"",i=c.filter(t=>t.cloneable());i.length>0&&t.push(new H.Action({actionId:"Chart.LineTool.Clone",name:"clone",icon:o(16788),shortcutHint:z.humanReadableModifiers(O.Modifiers.Mod)+e+" Drag",label:(0,r.t)("Clone"),onExecute:()=>{l.cloneLineTools(i,!1),(0,x.trackEvent)("GUI","Context action on drawings","Clone")}}));const s=c.filter(t=>t.copiable());if(s.length>0){const o={actionId:"Chart.Clipboard.CopyLineTools",name:"copy",label:(0,r.t)("Copy"),shortcutHint:z.humanReadableModifiers(O.Modifiers.Mod)+e+" C",onExecute:()=>{n.chartWidgetCollection().clipboard.uiRequestCopy(s)}};t.push(new H.Action(o,"Copy"))}if(!function(){if(!(null==n?void 0:n.isMultipleLayout()))return!1;return c.some(t=>t.isSynchronizable())}())return t;return t.push(...(0,Y.createSyncDrawingActions)(n,c)),t}();e.length&&t.push(new H.Separator,...e);t.push(new H.Separator,new H.Action({actionId:"Chart.SelectedObject.Hide",label:(0,r.t)("Hide"),icon:X,onExecute:()=>{n.hideSelectedObject()},name:"hide"})),h(Z(t))},onClick:s?function(t){u.contextMenuActionsForSources(c).then(e=>{ +window.matchMedia(f.DialogBreakpoints.TabletSmall).matches?K.ContextMenuManager.showMenu(Z(e),t,{mode:"drawer","data-name":"more-menu"}):h(Z(e))})}:void 0,title:e,content:i.createElement(R.Icon,{icon:q}),"data-name":"more",menuDataName:"more-menu"},i.createElement(U.ActionsTable,{parentIsOpened:!0,items:d})));function _(){const t=[],e=l.availableZOrderOperations(c),o=new H.Action({actionId:"Chart.Source.VisualOrder.BringToFront",name:"bring-to-front",label:(0,r.t)("Bring to Front"),onExecute:()=>{l.bringToFront(c)},disabled:1===c.length&&!e.bringToFrontEnabled}),i=new H.Action({actionId:"Chart.Source.VisualOrder.SendToBack",name:"send-to-back",label:(0,r.t)("Send to Back"),onExecute:()=>{l.sendToBack(c)},disabled:1===c.length&&!e.sendToBackEnabled}),n=new H.Action({actionId:"Chart.Source.VisualOrder.BringForward",name:"bring-forward",label:(0,r.t)("Bring Forward"),onExecute:()=>{l.bringForward(c)},disabled:1===c.length&&!e.bringForwardEnabled}),s=new H.Action({actionId:"Chart.Source.VisualOrder.SendBackward",name:"send-backward",label:(0,r.t)("Send Backward"),onExecute:()=>{l.sendBackward(c)},disabled:1===c.length&&!e.sendBackwardEnabled});return t.push(o,i,n,s),t}}function Z(t){if(F.touch&&!window.matchMedia("(pointer:fine)").matches){const e=t.filter(t=>"Copy"!==t.id);if(e.length===t.length)return e;const o=[];return e.forEach(t=>{("separator"!==t.type||o.length>0&&"separator"!==o[o.length-1].type)&&o.push(t)}),o}return t}var Q=o(95936),tt=o(20618),et=o(19726),ot=o(56326);function it(t){const{property:e,propertyApplier:o,title:n,undoText:s,className:a}=t,l=(0,E.useProperty)(e),c=(0,i.useMemo)(()=>[new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToSolid",icon:tt,label:(0,r.t)("Line"),active:Q.LineStyle.Solid===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Solid,s)}),new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToDashed",icon:et,label:(0,r.t)("Dashed line"),active:Q.LineStyle.Dashed===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Dashed,s)}),new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeLineStyleToDotted",icon:ot,label:(0,r.t)("Dotted line"),active:Q.LineStyle.Dotted===l,onExecute:()=>o.setProperty(e,Q.LineStyle.Dotted,s)})],[o,e,l]);return i.createElement(j.ToolWidgetMenu,{className:a,arrow:!1,content:i.createElement(R.Icon,{icon:nt(l)}),title:n,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},i.createElement(U.ActionsTable,{items:c}))}function nt(t){switch(t){case Q.LineStyle.Solid:return tt;case Q.LineStyle.Dashed:return et;case Q.LineStyle.Dotted:return ot;default:return""}}const rt=[10,11,12,14,16,20,24,28,32,40];function st(t){const{property:e,propertyApplier:o,title:n,undoText:r,className:s}=t,a=(0,E.useProperty)(e),l=rt.map(t=>new H.Action({actionId:"Chart.LineTool.Toolbar.ChangeFontSizeProperty",label:t.toString(),onExecute:()=>o.setProperty(e,t,r),active:t===a}));return i.createElement(j.ToolWidgetMenu,{arrow:!1,content:a,className:s,title:n,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},i.createElement(U.ActionsTable,{items:l}))} +var at=o(2872),lt=o.n(at);o(42024),o(62632);class ct extends b.FloatingToolbar{constructor(t){super(ct._prepareOptions(t)),this._onWidgetStateChangedDelegate=new(lt()),this._statedWidgets=[],this._currentPopup=null,this._onWindowClickedListener=this._onWindowClicked.bind(this)}show(){super.show(),document.addEventListener("mousedown",this._onWindowClickedListener)}hide(t){super.hide(t),document.removeEventListener("mousedown",this._onWindowClickedListener)}destroy(){this._closePopup(),super.destroy()}addGroupedWidget(t,e={}){(0,g.assert)(t.states.length>0&&-1!==ct._getStateIndexById(t,t.currentStateId),`Argument is invalid (count: ${t.states.length}, state: ${t.currentStateId})`);const o=document.createElement("div");o.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",t.widgetAddClass&&o.classList.add(t.widgetAddClass),o.setAttribute("title",t.tooltip);const i={isEnabled:!0,statedWidget:t,toolbarWidget:o},n=this._onWidgetClicked.bind(this,i);i.clickListener=n,o.addEventListener("click",n),this._updateWidgetPreview(i),this.addWidget(o,e),this._statedWidgets.push(i)}findGroupedWidget(t){const e=this._statedWidgets.length;for(let o=0;o{const r=this._createSubWidget(t,i),s=this._onSubWidgetClicked.bind(this,t,i.id);r.addEventListener("click",s), +e.widgets.push({clickListener:s,stateWidget:i,widget:r}),r.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-"+n),r.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-"+(o-n+1)),i.readonly||e.element.appendChild(r)}),this._currentPopup=e,this._updateSubWidgetsState(t.statedWidget),t.toolbarWidget.classList.add("i-dropped"),this._getWidget().appendChild(this._currentPopup.element),Promise.resolve().then(()=>{this._currentPopup&&this._currentPopup.element.classList.add("i-opened")}),this._updatePopupPosition()}_closePopup(){if(this._statedWidgets.forEach(t=>{t.toolbarWidget.classList.remove("i-dropped")}),!this._currentPopup)return;const t=this._currentPopup.widgets,e=this._currentPopup.element;this._currentPopup=null,t.forEach(t=>{t.widget.removeEventListener("click",t.clickListener)}),e.classList.remove("i-opened"),e.addEventListener("transitionend",t=>{t.target===e&&this._getWidget().removeChild(e)})}_updateWidgetPreview(t){const e=ct._getStateIndexById(t.statedWidget,t.statedWidget.currentStateId);(0,g.assert)(-1!==e,"Unknown state id: "+t.statedWidget.currentStateId);const o=t.statedWidget.states[e].widget.cloneNode(!0);t.toolbarWidget.firstChild?t.toolbarWidget.replaceChild(o,t.toolbarWidget.firstChild):(t.toolbarWidget.appendChild(o),t.toolbarWidget.appendChild(ct._createCaret()))}_updateSubWidgetsState(t){this._currentPopup&&this._isPopupCreatedForWidget(t.id)&&this._currentPopup.widgets.forEach(e=>{e.widget.classList.toggle(ct._activeSubWidgetClass,e.stateWidget.id===t.currentStateId)})}_updatePopupPosition(){if(!this._currentPopup)return;const t=this._currentPopup.createdFor,e=this._getWidget().getBoundingClientRect(),o=this._findWrapperForWidget(t);if(!o||!this._currentPopup)throw new Error("Toolbar has no wrapper for preview's widget or there is no popup");const i=o.getBoundingClientRect(),n=this._currentPopup.element.getBoundingClientRect(),r=this._currentPopup.element;if(this.isVertical())r.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),r.style.top=i.top-e.top+1+"px",r.style.left="",e.left>window.innerWidth-e.right?r.classList.add("tv-grouped-floating-toolbar__popup--at-left"):r.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{r.classList.remove("tv-grouped-floating-toolbar__popup--at-left");let t=0;i.left+n.width>window.innerWidth?e.left+n.width>window.innerWidth&&(t=e.width-n.width):t=i.left-e.left+1,r.style.left=t+"px",e.bottom+n.height>window.innerHeight?r.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(r.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),r.style.top="")}}_isPopupCreatedForWidget(t){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===t)}_createSubWidget(t,e){const o=document.createElement("div");return o.className+="tv-grouped-floating-toolbar__sub-widget",t.statedWidget.stateWidgetAddClass&&o.classList.add(t.statedWidget.stateWidgetAddClass),o.appendChild(e.widget),o}_onSubWidgetClicked(t,e){this._closePopup(), +t.statedWidget.currentStateId!==e&&(this.setGroupedWidgetState(t.statedWidget.id,e),this._onWidgetStateChangedDelegate.fire(t.statedWidget.id,e))}_onWindowClicked(t){if(this.isVisible()&&this._currentPopup&&!ct._isEventInElement(t,this._currentPopup.element)){for(let e=0;e{p.isDirectionalMovementActive.value()||(t?this._floatingToolbar.hide(!0):this._toolbarRendered&&this._floatingToolbar.show())},this._chartWidgetCollection=t,this._floatingToolbar=new ct({defaultPosition:{top:dt.HEADER_TOOLBAR_HEIGHT_EXPANDED+15,left:window.innerWidth/2},positionSettingsKey:"properties_toolbar.position",positionStorageType:"device",layout:"horizontal","data-name":"drawing-toolbar"}),this._container=this._floatingToolbar.getReactWidgetContainer(),this._isToolMovingNowSpawn=p.isToolMovingNow.spawn(),this._isToolEditingNowSpawn=p.isToolEditingNow.spawn(),this._toolSpawn=p.tool.spawn(),this._iconToolSpawn=p.iconTool.spawn(),this._selectedSourcesSpawn=this._chartWidgetCollection.selectedSources.spawn(),this._isToolMovingNowSpawn.subscribe(this._handleSourceEdit),this._isToolEditingNowSpawn.subscribe(this._handleSourceEdit),this._toolSpawn.subscribe(this._onToolChanged.bind(this),{callWithLast:!0}),this._iconToolSpawn.subscribe(()=>this._onToolChanged(p.tool.value())),this._selectedSourcesSpawn.subscribe(()=>this.onSourceChanged(this.selectedSources())),this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(this,this.destroy,!0)}destroy(){this._isToolMovingNowSpawn.destroy(),this._isToolEditingNowSpawn.destroy(),this._toolSpawn.destroy(),this._iconToolSpawn.destroy(),this._selectedSourcesSpawn.destroy()}activeChartWidget(){ +return this._chartWidgetCollection.activeChartWidget.value()}selectedSources(){return this._chartWidgetCollection.selectedSources.value().filter(h.isLineTool)}hide(){var t;this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{(0,h.unsetNewToolProperties)(),this._floatingToolbar.hide(!0),this._isToolbarRendered()&&this._unmountToolbar(),this._clearProperties(),this._clearCommonButtons()},0),null===(t=this._lineToolsDoNotAffectChartInvalidation)||void 0===t||t.destroy(),delete this._lineToolsDoNotAffectChartInvalidation,delete this._propertyApplier}_propertyApplierImpl(){return this._propertyApplier||(this._lineToolsDoNotAffectChartInvalidation||(this._lineToolsDoNotAffectChartInvalidation=new ut.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1)),this._propertyApplier=new pt.PropertyApplierWithoutSavingChart(()=>this.activeChartWidget().model(),this._lineToolsDoNotAffectChartInvalidation)),this._propertyApplier}_clearProperties(){this._clearPropertyButtons(),this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._currentProperties&&(this._currentProperties=null)}_show(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{this._renderToolbar(),this._floatingToolbar.show(),this._floatingToolbar.checkPosition()},0)}_addPropertyButton(t){this._propertyButtons.push(t),this._renderToolbar()}_addCommonButton(t){this._commonButtons.push(t),this._renderToolbar()}_addTemplatesButton(t){this._templatesButton=t}_renderToolbar(){null!==this._container&&this.activeChartWidget()&&this.activeChartWidget().hasModel()&&(n.render(i.createElement(S,{templateButton:this._templatesButton,propertyButtons:this._propertyButtons,commonButtons:this._commonButtons,isDrawingFinished:this._isDrawingFinished.value(),activeChartWidget:this.activeChartWidget()}),this._container),this._toolbarRendered=!0)}_unmountToolbar(){null!==this._container&&(n.unmountComponentAtNode(this._container),this._toolbarRendered=!1)}_clearTemplatesButton(){this._templatesButton=null}_clearPropertyButtons(){this._propertyButtons=[]}_clearCommonButtons(){this._commonButtons=[]}_isToolbarRendered(){return this._toolbarRendered}_createSettingsButton(){const t={component:W,props:{title:mt,activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createLockButton(){const t={component:A,props:{title:"Lock",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createRemoveButton(){const t={component:V,props:{title:vt,activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0};this._addCommonButton(t)}_createDotsButton(){this._addCommonButton({component:J,props:{title:wt,activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0})}_createAlertButton(){}_createSourceActions(){this._createLockButton()}_createLineStyleButton(t){ +const e=this.selectedSources();if(0===e.length)return!1;const o=e[0];if(!(0,ht.isDataSource)(o))return!1;const i={component:it,props:{property:o.properties().linestyle||t,title:yt,propertyApplier:this._propertyApplierImpl(),"data-name":"style",undoText:_t}};return this._addPropertyButton(i),!0}_createFontSizeButton(t){const e=this.selectedSources();if(0===e.length)return!1;const o=e[0];if(!(0,ht.isDataSource)(o))return!1;const i={component:st,props:{property:o.properties().fontsize||t,title:bt,propertyApplier:this._propertyApplierImpl(),"data-name":"font-size",undoText:gt}};return this._addPropertyButton(i),!0}_createCommonButtons(){this._commonButtons.length&&this._clearCommonButtons(),a.enabled("property_pages")&&this._createSettingsButton(),this._createSourceActions(),this._createRemoveButton(),this._createDotsButton()}_prepareProperties(t){const e=this.selectedSources().filter(e=>e.properties()[t]);if(!(e.filter(e=>e.properties()[t].visible()).length<1))return e.map(e=>e.properties()[t]).filter(d.notNull)}_createProperty(t,e,o,i){if(e){const t=this._prepareProperties(o);if(!t)return;return this._isWidthProperty(t[0])?new v(new u.MultipleLineWidthsProperty(t),this._propertyApplierImpl(),i):new w.CollectibleColorPropertyUndoWrapper(new u.MultipleLineColorsProperty(t),this._propertyApplierImpl(),i)}if(t&&t.visible())return this._isWidthProperty(t)?new u.MultipleLineWidthsProperty([t]):new w.CollectibleColorPropertyDirectWrapper(new u.MultipleLineColorsProperty([t]))}_shouldShowBackgroundProperty(t,e){return!e||!e.fillBackground||!!e.fillBackground.value()}_isDrawingToolExcludingCustomUrlEventTool(t){return Boolean(null==t?void 0:t.toLowerCase().includes("linetool"))&&"LineToolTweet"!==t&&"LineToolIdea"!==t&&"LineToolImage"!==t}_isWidthProperty(t){return t instanceof u.LineToolWidthsProperty}}},87805:(t,e,o)=>{"use strict";var i=o(28353).t,n=o(24980).TranslatedString,r=(o(85733),o(36052).LineToolPropertiesWidgetBase),s=o(44601).isLineDrawnWithPressedButton;const a=o(70114).ColorPickerButton,l=o(61259).LineWidthButton;o(14291).setNewToolProperties;o(67337);var c=o(58912),d=o(98510),h=o(95990),p=(new n("apply drawing template",i("apply drawing template")),new n("change line tool(s) color",i("change line tool(s) color"))),u=new n("change line tool(s) background color",i("change line tool(s) background color")),g=new n("change line tool(s) text color",i("change line tool(s) text color")),_=new n("change line tool(s) line width",i("change line tool(s) line width")),m=i("Color"),v=i("Line tool colors"),w=i("Text color"),y=i("Line tool text colors"),b=i("Background color"),f=i("Line tool backgrounds"),C=i("Style"),S=i("Font Size"),x=i("Line tool width"),T=i("Line tool widths"),P=i("Profit background color"),W=i("Stop background color"),E=i("Marker color"),L=i("Background color 1"),k=i("Background color 2");class B extends r{constructor(t){super(t),this._hasAlertWathcedValue=null,this._templatesButton=null}_onToolChanged(t,e){this._currentTool=t;const o=this.selectedSources() +;this._isDrawingToolExcludingCustomUrlEventTool(t)?(this._isDrawingFinished.setValue(!1),this._updateVisibility()):o&&o.length?(o.length>1&&this._isDrawingFinished.setValue(!0),this.onSourceChanged(this.selectedSources())):this.hide()}findSourceOnWidget(t){for(var e=0;et.properties().linesWidths).length&&(o=T));return this._addPropertyButton({component:l,props:{title:o,multipleProperty:this._lineWidthsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"line-tool-width",undoText:_}}),!0}_createColorsButton(t,e){return this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._lineColorsProperty=this._createProperty(t,e,"linesColors",p),!this._lineColorsProperty||(this._addPropertyButton({component:a,props:{icon:c,title:v,property:this._lineColorsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"line-tool-color",undoText:p}}),!0)}_createBackgroundsButton(t,e){return this._backgroundsProperty&&(this._backgroundsProperty.destroy(),this._backgroundsProperty=null),this._backgroundsProperty=this._createProperty(t,e,"backgroundsColors",u),!this._backgroundsProperty||(this._addPropertyButton({component:a,props:{icon:d,title:f,property:this._backgroundsProperty,propertyApplier:this._propertyApplierImpl(),"data-name":"background-color",undoText:u}}),!0)}_createTextColorsButton(t,e){return this._textColorsProperty&&(this._textColorsProperty.destroy(),this._textColorsProperty=null),this._textColorsProperty=this._createProperty(t,e,"textsColors",g),!this._textColorsProperty||(this._addPropertyButton({component:a,props:{icon:h,title:y,property:this._textColorsProperty, +propertyApplier:this._propertyApplierImpl(),"data-name":"text-color",undoText:g}}),!0)}showTemplatesOf(t){}templatesList(){return this._templatesList}_getPossibleProperty(t){for(var e=[],o=this._defaultToolProperties(),i=0;i{"use strict";o.d(e,{CollectibleColorPropertyUndoWrapper:()=>a,CollectibleColorPropertyDirectWrapper:()=>l});var i=o(88537),n=o(2015),r=o.n(n);class s extends(r()){constructor(t){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t}destroy(){this._baseProperty.destroy()}value(){const t=this._baseProperty.value();return"mixed"===t?"":t}visible(){return this._baseProperty.visible()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(""===t?"mixed":t,void 0,{applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const o=o=>{this._isProcess||e.call(t,this)},i={obj:t,method:e,callback:o};this._listenersMappers.push(i),this._baseProperty.subscribe(t,o)}unsubscribe(t,e){var o;const n=(0,i.ensureDefined)(null===(o=this._listenersMappers.find(o=>o.obj===t&&o.method===e))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(t,n)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}class a extends s{constructor(t,e,o){super(t),this._propertyApplier=e,this._undoText=o}_applyValue(t,e){this._propertyApplier.setProperty(t,e,this._undoText)}}class l extends s{_applyValue(t,e){t.setValue(e)}}},44159:(t,e,o)=>{"use strict";o.d(e,{PropertyApplierWithoutSavingChart:()=>i});class i{constructor(t,e){this._undoModelSupplier=t,this._featureToggle=e}setProperty(t,e,o){this._undoModelSupplier().setProperty(t,e,o,this._featureToggle.value())}beginUndoMacro(t){return this._undoModelSupplier().beginUndoMacro(t,this._shouldWeKeepChartValidated())}endUndoMacro(){this._undoModelSupplier().endUndoMacro()}setWatchedValue(t,e,o){this._undoModelSupplier().undoHistory().setWatchedValue(t,e,o,!0)}_shouldWeKeepChartValidated(){const t=this._undoModelSupplier().model().isAutoSaveEnabled().value();return this._featureToggle.value()&&t}}},53364:(t,e,o)=>{"use strict";o.d(e,{Draggable:()=>a});var i=o(88537),n=o(15828),r=o(49483),s=o(32563);class a{constructor(t){var e,o;this._helper=null,this._handleDragStart=t=>{var e;if(null!==this._helper)return;const o=this._source;o.classList.add("ui-draggable-dragging");const[i,r]=[(0,n.outerWidth)(o),(0,n.outerHeight)(o)];this._helper={startTop:parseFloat(o.style.top)||0,startLeft:parseFloat(o.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[i,r], +containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(o).marginLeft)-parseInt(getComputedStyle(o).marginRight)-i,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(o).marginTop)-parseInt(getComputedStyle(o).marginBottom)-r]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-i,window.scrollY+document.documentElement.offsetHeight-r]:null},null===(e=this._start)||void 0===e||e.call(this)},this._handleDragMove=t=>{var e;if(null===this._helper)return;const{current:o,initial:i}=t.detail,n=this._source,r=this._helper.nextTop,s=this._helper.nextLeft,a="y"===this._axis||!1===this._axis||0!==o.movementY;if(a){const t=this._helper.startTop;isFinite(t)&&(this._helper.nextTop=o.clientY-i.clientY+t)}const l="x"===this._axis||!1===this._axis||0!==o.movementY;if(l){const t=this._helper.startLeft;isFinite(t)&&(this._helper.nextLeft=o.clientX-i.clientX+t)}if(null!==this._helper.containment){const[t,e,o,i]=this._helper.containment;a&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,i),this._helper.nextTop=Math.max(this._helper.nextTop,e)),l&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,o),this._helper.nextLeft=Math.max(this._helper.nextLeft,t))}null!==this._helper.raf||r===this._helper.nextTop&&s===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame(()=>{null!==this._helper&&(null!==this._helper.nextTop&&(n.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(n.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)})),null===(e=this._drag)||void 0===e||e.call(this)},this._handleDragStop=t=>{var e;if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,null===(e=this._stop)||void 0===e||e.call(this)};const i=this._source=t.source;i.classList.add("ui-draggable");const r=this._handle=null!==(e=t.handle?i.querySelector(t.handle):null)&&void 0!==e?e:i;r.classList.add("ui-draggable-handle"),this._start=t.start,this._stop=t.stop,this._drag=t.drag,this._backend=new l({handle:r,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=null!==(o=t.axis)&&void 0!==o&&o,this._containment=t.containment}destroy(){const t=this._source;t.classList.remove("ui-draggable"),t.classList.remove("ui-draggable-dragging");this._handle.classList.remove("ui-draggable-handle"),this._backend.destroy(), +null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),this._helper=null)}}class l{constructor(t){this._initial=null,this._handlePointerDown=t=>{if(null!==this._initial)return;if(!(t.target instanceof Element&&this._handle.contains(t.target)))return;if(this._initial=t,!this._dispatchEvent(this._createEvent("pointer-drag-start",t)))return void(this._initial=null);t.preventDefault();const e=this._getEventTarget();e.addEventListener("pointermove",this._handlePointerMove),e.addEventListener("pointerup",this._handlePointerUp),e.addEventListener("pointercancel",this._handlePointerUp),e.addEventListener("lostpointercapture",this._handlePointerUp),e.setPointerCapture(t.pointerId)},this._handlePointerMove=t=>{null!==this._initial&&this._initial.pointerId===t.pointerId&&(t.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",t)))},this._handlePointerUp=t=>{if(null===this._initial||this._initial.pointerId!==t.pointerId)return;t.preventDefault();const e=this._getEventTarget();e.removeEventListener("pointermove",this._handlePointerMove),e.removeEventListener("pointerup",this._handlePointerUp),e.removeEventListener("pointercancel",this._handlePointerUp),e.removeEventListener("lostpointercapture",this._handlePointerUp),e.releasePointerCapture(this._initial.pointerId),this._dispatchEvent(this._createEvent("pointer-drag-stop",t)),this._initial=null};const e=this._handle=t.handle;this._onDragStart=t.onDragStart,this._onDragMove=t.onDragMove,this._onDragStop=t.onDragStop,e.style.touchAction="none";this._getEventTarget().addEventListener("pointerdown",this._handlePointerDown)}destroy(){this._handle.style.touchAction="";const t=this._getEventTarget();t.removeEventListener("pointerdown",this._handlePointerDown),t.removeEventListener("pointermove",this._handlePointerMove),t.removeEventListener("pointerup",this._handlePointerUp),t.removeEventListener("pointercancel",this._handlePointerUp),t.removeEventListener("lostpointercapture",this._handlePointerUp),null!==this._initial&&(t.releasePointerCapture(this._initial.pointerId),this._initial=null)}_getEventTarget(){return r.CheckMobile.iOS()||(0,r.isMac)()&&s.touch?window.document.documentElement:this._handle}_dispatchEvent(t){switch(t.type){case"pointer-drag-start":this._onDragStart(t);break;case"pointer-drag-move":this._onDragMove(t);break;case"pointer-drag-stop":this._onDragStop(t)}return!t.defaultPrevented}_createEvent(t,e){return(0,i.assert)(null!==this._initial),new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:e}})}}},15828:(t,e,o)=>{"use strict";o.d(e,{contentHeight:()=>n,outerHeight:()=>r,outerWidth:()=>s,position:()=>l});var i=o(88537);function n(t){const{paddingTop:e,paddingBottom:o}=window.getComputedStyle(t);return[e,o].reduce((t,e)=>t-Number((e||"").replace("px","")),t.clientHeight)}function r(t,e=!1){const o=getComputedStyle(t),i=[o.height];return"border-box"!==o.boxSizing&&i.push(o.paddingTop,o.paddingBottom,o.borderTopWidth,o.borderBottomWidth),e&&i.push(o.marginTop,o.marginBottom), +i.reduce((t,e)=>t+(parseFloat(e)||0),0)}function s(t,e=!1){const o=getComputedStyle(t),i=[o.width];return"border-box"!==o.boxSizing&&i.push(o.paddingLeft,o.paddingRight,o.borderLeftWidth,o.borderRightWidth),e&&i.push(o.marginLeft,o.marginRight),i.reduce((t,e)=>t+(parseFloat(e)||0),0)}function a(t){if(!t.getClientRects().length)return{top:0,left:0};const e=t.getBoundingClientRect(),o=(0,i.ensureNotNull)(t.ownerDocument.defaultView);return{top:e.top+o.pageYOffset,left:e.left+o.pageXOffset}}function l(t){const e=getComputedStyle(t);let o,i={top:0,left:0};if("fixed"===e.position)o=t.getBoundingClientRect();else{o=a(t);const e=t.ownerDocument;let n=t.offsetParent||e.documentElement;for(;n&&(n===e.body||n===e.documentElement)&&"static"===getComputedStyle(n).position;)n=n.parentElement;n&&n!==t&&1===n.nodeType&&(i=a(n),i.top+=parseFloat(getComputedStyle(n).borderTopWidth),i.left+=parseFloat(getComputedStyle(n).borderLeftWidth))}return{top:o.top-i.top-parseFloat(e.marginTop),left:o.left-i.left-parseFloat(e.marginLeft)}}},70114:(t,e,o)=>{"use strict";o.d(e,{ColorPickerButton:()=>m});var i=o(59496),n=o(97754),r=o.n(n),s=o(88537),a=o(9745),l=o(24377),c=o(68906),d=o(56512),h=o(27797),p=o(6914),u=o(35390),g=o(43982),_=o(69124);function m(t){const{property:e,icon:o,propertyApplier:n,title:m,undoText:v,className:w}=t,y=(0,g.useProperty)(e),b=(0,i.useRef)(null),f=y?(0,l.parseRgba)(y)[3]:void 0,C=""===y,S=String(W()).toLowerCase()===p.white,[x,T,P]=(0,d.useCustomColors)();return i.createElement(u.ToolWidgetMenu,{className:w,content:i.createElement("div",{className:_.wrap},i.createElement(a.Icon,{className:_.icon,icon:o}),i.createElement("div",{className:_.colorBg},i.createElement("div",{className:r()(_.color,C&&_.multicolor,S&&_.white),style:C?void 0:{backgroundColor:y}}))),arrow:!1,title:m,ref:b,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},i.createElement(h.ColorPicker,{color:W(),opacity:f,onColorChange:function(t,e){const o=y?(0,c.alphaToTransparency)((0,l.parseRgba)(y)[3]):0;E((0,c.generateColor)(String(t),o,true)),e||(0,s.ensureNotNull)(b.current).close()},onOpacityChange:function(t){E((0,c.generateColor)(y,(0,c.alphaToTransparency)(t),!0))},selectOpacity:void 0!==f,selectCustom:!0,customColors:x,onAddColor:function(t){T(t),(0,s.ensureNotNull)(b.current).close()},onRemoveCustomColor:P}));function W(){return y?(0,l.rgbToHexString)((0,l.parseRgb)(y)):null}function E(t){n.setProperty(e,t,v)}}},61259:(t,e,o)=>{"use strict";o.d(e,{LineWidthButton:()=>y});var i=o(59496),n=o(97754),r=o(88537),s=o(9745),a=o(35390),l=o(43982),c=o(16396),d=o(40173),h=o(98985),p=o(47441),u=o(93129),g=o(37500),_=o(4873),m=o(2680);const v=(0,d.mergeThemes)(c.DEFAULT_POPUP_MENU_ITEM_THEME,m),w=[{value:1,icon:h},{value:2,icon:p},{value:3,icon:u},{value:4,icon:g}];function y(t){const{multipleProperty:e,title:o,undoText:d,propertyApplier:h,className:p,isSmallScreen:u}=t,g=(0,l.useProperty)((0,r.ensureDefined)(e)),y="mixed"===g||!g,b=function(t){const e=w.find(e=>e.value===t);if(!e)return _;return e.icon}(g) +;return i.createElement(a.ToolWidgetMenu,{className:p,arrow:!1,title:o,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu",content:i.createElement("div",null,y?i.createElement("div",{className:m.multiWidth},i.createElement(s.Icon,{icon:_})):i.createElement("div",{className:m.buttonWrap},!u&&i.createElement(s.Icon,{icon:b}),i.createElement("div",{className:n(!u&&m.buttonLabel)},g+"px")))},w.map(({value:t,icon:e})=>i.createElement(c.PopupMenuItem,{key:t,theme:v,label:t+"px",icon:e,isActive:t===g,onClick:f,onClickArg:t})));function f(t){t&&e&&(h.beginUndoMacro(d),e.setValue(t,void 0,{applyValue:(t,e)=>{h.setProperty(t,e,d)}}),h.endUndoMacro())}}},43982:(t,e,o)=>{"use strict";o.d(e,{useProperty:()=>n});var i=o(59496);const n=t=>{const[e,o]=(0,i.useState)(t.value());return(0,i.useEffect)(()=>{const e=t=>{o(t.value())};e(t);const i={};return t.subscribe(i,e),()=>t.unsubscribe(i,e)},[t]),e}},27797:(t,e,o)=>{"use strict";o.d(e,{ColorPicker:()=>I});var i=o(59496),n=o(97754),r=o.n(n),s=o(28353),a=o(24377),l=o(88537),c=o(49483),d=o(50628),h=o(16396);const p=i.createContext(void 0);var u=o(6914),g=o(78679),_=o(24590);function m(t){const{index:e,color:o,selected:r,onSelect:a}=t,[m,v]=(0,i.useState)(!1),w=(0,i.useContext)(p),y=(0,i.useRef)(null),b=Boolean(w)&&!c.CheckMobile.any();return i.createElement(i.Fragment,null,i.createElement("div",{ref:y,style:o?{color:o}:void 0,className:n(_.swatch,m&&_.hover,r&&_.selected,!o&&_.empty,String(o).toLowerCase()===u.white&&_.white),onClick:function(){a(o)},onContextMenu:b?f:void 0}),b&&i.createElement(d.PopupMenu,{isOpened:m,onClose:f,position:function(){const t=(0,l.ensureNotNull)(y.current).getBoundingClientRect();return{x:t.left,y:t.top+t.height+4}},onClickOutside:f},i.createElement(h.PopupMenuItem,{className:_.contextItem,label:(0,s.t)("Remove color"),icon:g,onClick:function(){f(),(0,l.ensureDefined)(w)(e)},dontClosePopup:!0})));function f(){v(!m)}}class v extends i.PureComponent{constructor(){super(...arguments),this._onSelect=t=>{const{onSelect:e}=this.props;e&&e(t)}}render(){const{colors:t,color:e,children:o}=this.props;if(!t)return null;const n=e?(0,a.parseRgb)(String(e)):void 0;return i.createElement("div",{className:_.swatches},t.map((t,e)=>i.createElement(m,{key:String(t)+e,index:e,color:t,selected:n&&(0,a.areEqualRgb)(n,(0,a.parseRgb)(String(t))),onSelect:this._onSelect})),o)}}var w=o(54368),y=o(97737);function b(t){const e="Invalid RGB color: "+t;if(null===t)throw new Error(e);const o=t.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===o)throw new Error(e);const[,i,n,r]=o;if(!i||!n||!r)throw new Error(e);const s=parseInt(i,16)/255,a=parseInt(n,16)/255,l=parseInt(r,16)/255,c=Math.max(s,a,l),d=Math.min(s,a,l);let h;const p=c,u=c-d,g=0===c?0:u/c;if(c===d)h=0;else{switch(c){case s:h=(a-l)/u+(a{this._container=t}, +this._handlePosition=t=>{const{hsv:{h:e},onChange:o}=this.props;if(!o)return;const i=(0,l.ensureNotNull)(this._container).getBoundingClientRect(),n=t.clientX-i.left,r=t.clientY-i.top;let s=n/i.width;s<0?s=0:s>1&&(s=1);let a=1-r/i.height;a<0?a=0:a>1&&(a=1),o({h:e,s,v:a})},this._mouseDown=t=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=t=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(t)},this._mouseMove=(0,f.default)(this._handlePosition,100),this._handleTouch=t=>{this._handlePosition(t.nativeEvent.touches[0])}}render(){const{className:t,hsv:{h:e,s:o,v:n}}=this.props,s=`hsl(${360*e}, 100%, 50%)`;return i.createElement("div",{className:r()(C.saturation,t),style:{backgroundColor:s},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},i.createElement("div",{className:C.pointer,style:{left:100*o+"%",top:100*(1-n)+"%"}}))}}var x=o(24429);class T extends i.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=t=>{this._container=t},this._handlePosition=t=>{const{hsv:{s:e,v:o},onChange:i}=this.props;if(!i)return;const n=(0,l.ensureNotNull)(this._container).getBoundingClientRect();let r=(t.clientY-n.top)/n.height;r<0?r=0:r>1&&(r=1),i({h:r,s:e,v:o})},this._mouseDown=t=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=t=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(t)},this._mouseMove=(0,f.default)(this._handlePosition,100),this._handleTouch=t=>{this._handlePosition(t.nativeEvent.touches[0])}}render(){const{className:t,hsv:{h:e}}=this.props;return i.createElement("div",{className:r()(x.hue,t)},i.createElement("div",{className:x.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},i.createElement("div",{className:x.pointer,style:{top:100*e+"%"}})))}}var P=o(99565);const W=(0,s.t)("Add",{context:"Color Picker"});class E extends i.PureComponent{constructor(t){super(t),this._handleHSV=t=>{const e=function(t){const{h:e,s:o,v:i}=t;let n,r,s;const a=Math.floor(6*e),l=6*e-a,c=i*(1-o),d=i*(1-l*o),h=i*(1-(1-l)*o);switch(a%6){case 0:n=i,r=h,s=c;break;case 1:n=d,r=i,s=c;break;case 2:n=c,r=i,s=h;break;case 3:n=c,r=d,s=i;break;case 4:n=h,r=c,s=i;break;case 5:n=i,r=c,s=d;break;default:n=0,r=0,s=0}return"#"+[255*n,255*r,255*s].map(t=>("0"+Math.round(t).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(t)||"#000000";this.setState({color:e,inputColor:e.replace(/^#/,""),hsv:t}),this.props.onSelect(e)},this._handleInput=t=>{const e=t.currentTarget.value;try{const t=b(e),o="#"+e;this.setState({color:o,inputColor:e,hsv:t}),this.props.onSelect(o)}catch(t){this.setState({inputColor:e})}},this._handleAddColor=()=>this.props.onAdd(this.state.color) +;const e=t.color||"#000000";this.state={color:e,inputColor:e.replace(/^#/,""),hsv:b(e)}}render(){const{color:t,hsv:e,inputColor:o}=this.state;return i.createElement("div",{className:P.container},i.createElement("div",{className:P.form},i.createElement("div",{className:P.swatch,style:{backgroundColor:t}}),i.createElement("div",{className:P.inputWrap},i.createElement("span",{className:P.inputHash},"#"),i.createElement("input",{type:"text",className:P.input,value:o,onChange:this._handleInput})),i.createElement("div",{className:P.buttonWrap},i.createElement(y.Button,{size:"s",onClick:this._handleAddColor},W))),i.createElement("div",{className:P.hueSaturationWrap},i.createElement(S,{className:P.saturation,hsv:e,onChange:this._handleHSV}),i.createElement(T,{className:P.hue,hsv:e,onChange:this._handleHSV})))}}var L=o(10667);const k=(0,s.t)("Add custom color",{context:"Color Picker"}),B=(0,s.t)("Opacity",{context:"Color Picker"});class I extends i.PureComponent{constructor(t){super(t),this._handleAddColor=t=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:e}=this.props;e&&e(t)},this._handleSelectColor=t=>{const{onColorChange:e}=this.props,{isCustom:o}=this.state;e&&e(t,o)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=t=>{const{onOpacityChange:e}=this.props;e&&e(t)},this.state={isCustom:!1}}componentDidUpdate(t,e){t.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:t,opacity:e,selectCustom:o,selectOpacity:n,customColors:s,onRemoveCustomColor:a}=this.props,{isCustom:l}=this.state,c="number"==typeof e?e:1;return l?i.createElement(E,{color:t,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):i.createElement("div",{className:L.container},i.createElement(v,{colors:u.basic,color:t,onSelect:this._handleSelectColor}),i.createElement(v,{colors:u.extended,color:t,onSelect:this._handleSelectColor}),i.createElement("div",{className:L.separator}),i.createElement(p.Provider,{value:a},i.createElement(v,{colors:s,color:t,onSelect:this._handleSelectColor},o&&i.createElement("div",{className:r()(L.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:k}))),n&&i.createElement(i.Fragment,null,i.createElement("div",{className:L.sectionTitle},B),i.createElement(w.Opacity,{color:t,opacity:c,onChange:this._handleOpacity})))}_onToggleCustom(t){const{onToggleCustom:e}=this.props;e&&e(t)}}},54368:(t,e,o)=>{"use strict";o.d(e,{Opacity:()=>l});var i=o(59496),n=o(97754),r=o(88537),s=o(64514),a=o(15381);class l extends i.PureComponent{constructor(t){super(t),this._container=null,this._pointer=null,this._raf=null,this._refContainer=t=>{this._container=t},this._refPointer=t=>{this._pointer=t},this._handlePosition=t=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const e=(0,r.ensureNotNull)(this._container),o=(0,r.ensureNotNull)(this._pointer),i=e.getBoundingClientRect(),n=o.offsetWidth,a=t.clientX-n/2-i.left,l=(0,s.clamp)(a/(i.width-n),0,1);this.setState({ +inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null}))},this._onSliderClick=t=>{this._handlePosition(t.nativeEvent),this._dragSubscribe()},this._mouseUp=t=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(t)},this._mouseMove=t=>{this.setState({isPointerDragged:!0}),this._handlePosition(t)},this._onTouchStart=t=>{this._handlePosition(t.nativeEvent.touches[0])},this._handleTouch=t=>{this.setState({isPointerDragged:!0}),this._handlePosition(t.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=t=>{const e=t.currentTarget.value,o=Number(e)/100;this.setState({inputOpacity:e}),Number.isNaN(o)||o>1||this.props.onChange(o)},this.state={inputOpacity:Math.round(100*t.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:t,opacity:e,hideInput:o}=this.props,{inputOpacity:r,isPointerDragged:s}=this.state,l={color:t||void 0};return i.createElement("div",{className:a.opacity},i.createElement("div",{className:a.opacitySlider,style:l,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},i.createElement("div",{className:a.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${t})`}}),i.createElement("div",{className:a.opacityPointerWrap},i.createElement("div",{className:n(a.pointer,s&&a.dragged),style:{left:100*e+"%"},ref:this._refPointer}))),!o&&i.createElement("div",{className:a.opacityInputWrap},i.createElement("input",{type:"text",className:a.opacityInput,value:r,onChange:this._handleInput}),i.createElement("span",{className:a.opacityInputPercent},"%")))}_dragSubscribe(){const t=(0,r.ensureNotNull)(this._container).ownerDocument;t&&(t.addEventListener("mouseup",this._mouseUp),t.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const t=(0,r.ensureNotNull)(this._container).ownerDocument;t&&(t.removeEventListener("mousemove",this._mouseMove),t.removeEventListener("mouseup",this._mouseUp))}}},6914:(t,e,o)=>{"use strict";o.d(e,{white:()=>n,basic:()=>a,extended:()=>c});var i=o(45112);const n=i.colorsPalette["color-white"],r=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],s=[200,300,400,500,600,700,800,900].map(t=>"color-cold-gray-"+t);s.unshift("color-white"),s.push("color-black"),r.forEach(t=>{s.push(`color-${t}-500`)});const a=s.map(t=>i.colorsPalette[t]),l=[];[100,200,300,400,700,900].forEach(t=>{r.forEach(e=>{l.push(`color-${e}-${t}`)})});const c=l.map(t=>i.colorsPalette[t])},56512:(t,e,o)=>{"use strict";o.d(e,{useCustomColors:()=>l});var i=o(59496),n=o(56840),r=o(76422);function s(t,e){(0,i.useEffect)(()=>(r.subscribe(t,e,null),()=>{r.unsubscribe(t,e,null)}),[t,e])}var a=o(24377);function l(){const[t,e]=(0,i.useState)((0,n.getJSON)("pickerCustomColors",[])) +;s("add_new_custom_color",o=>e(c(o,t))),s("remove_custom_color",o=>e(d(o,t)));const o=(0,i.useCallback)(e=>{const o=e?(0,a.parseRgb)(e):null;t.some(t=>null!==t&&null!==o&&(0,a.areEqualRgb)((0,a.parseRgb)(t),o))||(r.emit("add_new_custom_color",e),(0,n.setJSON)("pickerCustomColors",c(e,t)))},[t]),l=(0,i.useCallback)(e=>{(e>=0||e29&&o.shift(),o}function d(t,e){return e.filter((e,o)=>t!==o)}},84877:(t,e,o)=>{"use strict";o.d(e,{MatchMediaMap:()=>s});var i=o(59496),n=o(66783),r=o.n(n);class s extends i.Component{constructor(t){super(t),this._handleMediaChange=()=>{const t=l(this.state.queries,(t,e)=>e.matches);let e=!1;for(const o in t)if(t.hasOwnProperty(o)&&this.state.matches[o]!==t[o]){e=!0;break}e&&this.setState({matches:t})};const{rules:e}=this.props;this.state=a(e)}shouldComponentUpdate(t,e){return!r()(t,this.props)||(!r()(e.rules,this.state.rules)||!r()(e.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(t,e){r()(t.rules,this.props.rules)||this._migrate(e.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(t,e){if(r()(t.rules,e.rules))return null;const{rules:o}=t;return a(o)}_migrate(t,e){null!==t&&l(t,(t,e)=>{e.removeListener(this._handleMediaChange)}),null!==e&&l(e,(t,e)=>{e.addListener(this._handleMediaChange)})}}function a(t){const e=l(t,(t,e)=>window.matchMedia(e));return{queries:e,matches:l(e,(t,e)=>e.matches),rules:{...t}}}function l(t,e){const o={};for(const i in t)t.hasOwnProperty(i)&&(o[i]=e(i,t[i]));return o}},31328:t=>{t.exports=''},19726:t=>{t.exports=''},56326:t=>{t.exports=''},20618:t=>{t.exports=''},98510:t=>{ +t.exports=''},25570:t=>{t.exports=''},98985:t=>{t.exports=''},47441:t=>{t.exports=''},93129:t=>{t.exports=''},37500:t=>{t.exports=''},4873:t=>{t.exports=''},58912:t=>{t.exports=''},95990:t=>{t.exports=''},57979:t=>{ +t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/full-tooltips-popup.7ab1067f92b52f07297b.js b/charting_library/bundles/full-tooltips-popup.7ab1067f92b52f07297b.js new file mode 100644 index 00000000..b9d4dcf8 --- /dev/null +++ b/charting_library/bundles/full-tooltips-popup.7ab1067f92b52f07297b.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8643],{59142:function(e,t){var n,o,r;o=[t],void 0===(r="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={"css-value-small-size":"18px","css-value-medium-size":"22px","css-value-large-size":"28px","css-value-border-radius-small-size":"9px","css-value-border-radius-medium-size":"11px", +"css-value-border-radius-large-size":"8px",popupWidget:"popupWidget-QCFoCG9e",large:"large-QCFoCG9e",desc:"desc-QCFoCG9e",icon:"icon-QCFoCG9e",small:"small-QCFoCG9e",medium:"medium-QCFoCG9e",title:"title-QCFoCG9e",text:"text-QCFoCG9e",item:"item-QCFoCG9e",boldItem:"boldItem-QCFoCG9e",action:"action-QCFoCG9e",additionalWidget:"additionalWidget-QCFoCG9e"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(59496);const r=o.forwardRef((e,t)=>{const{icon:n="",...r}=e;return o.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},4872:(e,t,n)=>{"use strict";n.r(t),n.d(t,{render:()=>y});var o=n(59496),r=n(87995),s=(n(28353),n(50628)),i=n(90692),l=n(41590),a=n(37558),c=n(9423),u=n(97754),d=n(88537),h=n(9745),p=n(77975),m=n(80643),f=n(66273);const v=new WeakMap,g=new WeakMap;function _(e){const t=(0,p.useWatchedValueReadonly)({watchedValue:e.info});if(null===t)return null;const n=t.map(t=>{const{title:n,titleColor:r,icon:s,iconClassName:i,html:l,action:a,size:p}=t;v.has(t)||v.set(t,(0,c.randomHash)());let _=[];return void 0!==e.additionalWidgets&&(_=e.additionalWidgets.map(e=>(g.has(e)||g.set(e,(0,c.randomHash)()),e.renderer((0,d.ensureDefined)(g.get(e)),f.additionalWidget)))),o.createElement("div",{key:v.get(t),className:u(f.popupWidget,f[p])},o.createElement(h.Icon,{className:u(f.icon,i,f[p]),icon:s||void 0}),o.createElement("div",{className:f.desc},o.createElement("span",{style:{color:r||void 0},className:u(f.title,f[p])},n),l&&o.createElement("p",{className:u(f.text,f[p])},l.map((e,t)=>{let n,r;return(0,m.isObject)(e)?(n=e.text,r=e.bold):n=e,o.createElement("span",{key:"html_item_"+t,className:u(f.item,r&&f.boldItem),dangerouslySetInnerHTML:{__html:n}})})),a&&o.createElement("span",{className:u(a.tooltip&&"apply-common-tooltip",f.action,f[p]),onClick:()=>{e.onClose(),null==a||a.onClick()},title:a.tooltip},a.text),_))});return o.createElement(o.Fragment,null,n)}const w=new WeakMap;function C(e){const{statusWidgetInfos:t}=e,n=t.filter(e=>e.visible.value()).map(t=>(w.has(t)||w.set(t,(0,c.randomHash)()),o.createElement(_,{key:w.get(t),info:t.model.fullInfo(),onClose:e.onClose,additionalWidgets:t.additionalWidgets})));return o.createElement(a.DrawerManager,null,o.createElement(i.MatchMedia,{rule:"screen and (max-width: 428px)"},t=>t?o.createElement(l.Drawer,{onClose:e.onClose,position:"Bottom"},n):o.createElement(s.PopupMenu,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},n)))}function y(e,t,n,s,i,l){const a={rendererButton:n,position:l,statusWidgetInfos:s,onClose:i};e?r.render(o.createElement(C,{...a}),t):r.unmountComponentAtNode(t)}},68722:(e,t,n)=>{"use strict";n.d(t,{ +getScrollbarWidth:()=>o,matchMediaMinMax:()=>r,setStyle:()=>s,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>l});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-i}return e}})();function r(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function s(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(i(e,t))}},43989:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>i});var o=n(68722);let r=0,s=!1;function i(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,o.getCSSProperty)(t,"overflow"),r=(0,o.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,o.setStyle)(n,"right",(0,o.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,o.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),s)){(0,o.setStyle)(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,o.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>r,DrawerContext:()=>s});var o=n(59496);class r extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const s=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>p});var o=n(59496),r=n(88537),s=n(97754),i=n(59142),l=n(43989),a=n(65718),c=n(37558),u=n(49483),d=n(29197),h=n(66998);function p(e){const{position:t="Bottom",onClose:n,children:p,className:m,theme:f=h}=e,v=(0,r.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[g,_]=(0,o.useState)(0),w=(0,o.useRef)(null),C=(0,o.useContext)(d.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,r.ensureNotNull)(w.current);return e.focus({preventScroll:!0}),C.subscribe(v,n),0===v.currentDrawer&&(0,l.setFixedBodyState)(!0),u.CheckMobile.iOS()&&(0,i.disableBodyScroll)(e),_(v.addDrawer()),()=>{C.unsubscribe(v,n);const t=v.removeDrawer();u.CheckMobile.iOS()&&(0,i.enableBodyScroll)(e),0===t&&(0,l.setFixedBodyState)(!1)}},[]),o.createElement(a.Portal,null,o.createElement("div",{className:s(h.wrap,h["position"+t])},g===v.currentDrawer&&o.createElement("div",{className:h.backdrop,onClick:n}),o.createElement("div",{ +className:s(h.drawer,f.drawer,h["position"+t],m),ref:w,tabIndex:-1,"data-name":e["data-name"]},p)))}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var o=n(59496),r=n(39640);function s(e){const{click:t,mouseDown:n,touchEnd:s,touchStart:i,handler:l,reference:a,ownerDocument:c=document}=e,u=(0,o.useRef)(null),d=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:s,touchStart:i},o=a?a.current:u.current;return(0,r.addOutsideEventListener)(d.current,o,l,c,e)},[t,n,s,i,l]),a||u}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>r});var o=n(59496);class r extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>o});const o=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>v,Menu:()=>g});var o=n(59496),r=n(97754),s=n.n(r),i=n(88537),l=n(64514),a=n(54475),c=n(50655),u=n(59064),d=n(88216),h=n(25760),p=n(14758),m=n(64706),f=n(16059);const v=f;class g extends o.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,o,r,s;if(this.state.isMeasureValid&&!t)return;const{position:a}=this.props,c=(0,i.ensureNotNull)(this._containerRef);let u=c.getBoundingClientRect();const d=document.documentElement.clientHeight,h=document.documentElement.clientWidth,p=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=d-0-p;const f=u.height>m;if(f){(0,i.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",u=c.getBoundingClientRect()}const{width:v,height:g}=u,_="function"==typeof a?a(v,g,d):a,w=h-(null!==(o=_.overrideWidth)&&void 0!==o?o:v)-0,C=(0,l.clamp)(_.x,0,Math.max(0,w)),y=0+p,x=d-(null!==(r=_.overrideHeight)&&void 0!==r?r:g)-0;let b=(0,l.clamp)(_.y,y,Math.max(y,x)) +;if(_.forbidCorrectYCoord&&b<_.y&&(m-=_.y-b,b=_.y),t&&void 0!==this.props.closeOnScrollOutsideOffset&&_.y<=this.props.closeOnScrollOutsideOffset)return void this._handleGlobalClose(!0);const E=null!==(s=_.overrideHeight)&&void 0!==s?s:f?m:void 0;this.setState({appearingMenuHeight:t?this.state.appearingMenuHeight:E,appearingMenuWidth:t?this.state.appearingMenuWidth:_.overrideWidth,appearingPosition:{x:C,y:b},isMeasureValid:!0},()=>{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,i.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,i.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=h.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,children:i,minWidth:l,theme:u=f,className:d,maxHeight:h,onMouseOver:v,onMouseOut:g,onKeyDown:w,onFocus:C,onBlur:y}=this.props,{appearingMenuHeight:x,appearingMenuWidth:b,appearingPosition:E,isMeasureValid:S}=this.state;return o.createElement(m.MenuContext.Provider,{ +value:this},o.createElement(p.SubmenuHandler,null,o.createElement(c.SlotContext.Provider,{value:this._manager},o.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,className:s()(d,u.menuWrap,!S&&u.isMeasuring),style:{height:x,left:E&&E.x,minWidth:l,position:"fixed",top:E&&E.y,width:b},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:a.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:v,onMouseOut:g,onKeyDown:w,onFocus:C,onBlur:y},o.createElement("div",{className:s()(u.scrollWrap,!this.props.noMomentumBasedScroll&&u.momentumBased),style:{overflowY:void 0!==x?"scroll":"auto",maxHeight:h},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},o.createElement(_,{className:u.menuBox},i)))),o.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}}function _(e){const t=(0,i.ensureNotNull)((0,o.useContext)(p.SubmenuContext)),n=o.useRef(null);return o.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(o=e.target,null===(r=n.current)||void 0===r?void 0:r.contains(o))))return;var o,r;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}g.contextType=p.SubmenuContext},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>l});var o=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){ +this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function l(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(i.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>s});var o=n(59496),r=n(59064);const s=o.createContext(r.globalCloseDelegate)},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>c});var o=n(59496),r=n(87995),s=n(65718),i=n(27317),l=n(29197),a=n(58095);function c(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:u=!0,doNotCloseOn:d,onClickOutside:h,onClose:p,...m}=e,f=(0,o.useContext)(l.CloseDelegateContext),v=(0,a.useOutsideEvent)({handler:function(e){h&&h(e);if(!u)return;if(d&&e.target instanceof Node){const t=r.findDOMNode(d);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?o.createElement(s.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ref:v,style:{pointerEvents:"auto"}},o.createElement(i.Menu,{...m,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:f,ref:t},n))):null}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>a,PortalContext:()=>c});var o=n(59496),r=n(87995),s=n(9423),i=n(88216),l=n(50655);class a extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(o.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}a.contextType=l.SlotContext;const c=o.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>s});var o=n(59496);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=o.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>r,SubmenuHandler:()=>s});var o=n(59496);const r=o.createContext(null);function s(e){const[t,n]=(0,o.useState)(null),s=(0,o.useRef)(null),i=(0,o.useRef)(new Map);return(0,o.useEffect)(()=>()=>{null!==s.current&&clearTimeout(s.current)},[]),o.createElement(r.Provider,{value:{current:t,setCurrent:function(e){null!==s.current&&(clearTimeout(s.current),s.current=null);null===t?n(e):s.current=setTimeout(()=>{s.current=null,n(e)},100)},registerSubmenu:function(e,t){ +return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some(t=>t(e))}}},e.children)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/full-tooltips-popup.d80e5db5b5d195e2517b.js b/charting_library/bundles/full-tooltips-popup.d80e5db5b5d195e2517b.js deleted file mode 100644 index c386d323..00000000 --- a/charting_library/bundles/full-tooltips-popup.d80e5db5b5d195e2517b.js +++ /dev/null @@ -1,3 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8643],{59142:function(e,t){var o,n,r;n=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{e.exports={"css-value-small-size":"18px","css-value-medium-size":"22px","css-value-large-size":"28px","css-value-border-radius-small-size":"9px","css-value-border-radius-medium-size":"11px", -"css-value-border-radius-large-size":"8px",popupWidget:"popupWidget-QCFoCG9e",large:"large-QCFoCG9e",desc:"desc-QCFoCG9e",icon:"icon-QCFoCG9e",small:"small-QCFoCG9e",medium:"medium-QCFoCG9e",title:"title-QCFoCG9e",text:"text-QCFoCG9e",item:"item-QCFoCG9e",boldItem:"boldItem-QCFoCG9e",action:"action-QCFoCG9e",additionalWidget:"additionalWidget-QCFoCG9e"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},4872:(e,t,o)=>{"use strict";o.r(t),o.d(t,{render:()=>y});var n=o(59496),r=o(87995),a=(o(28353),o(50628)),i=o(90692),l=o(41590),s=o(37558),c=o(9423),d=o(97754),u=o(88537),m=o(9745),p=o(77975),v=o(80643),f=o(66273);const h=new WeakMap,g=new WeakMap;function w(e){const t=(0,p.useWatchedValueReadonly)({watchedValue:e.info});if(null===t)return null;const o=t.map(t=>{const{title:o,titleColor:r,icon:a,iconClassName:i,html:l,action:s,size:p}=t;h.has(t)||h.set(t,(0,c.randomHash)());let w=[];return void 0!==e.additionalWidgets&&(w=e.additionalWidgets.map(e=>(g.has(e)||g.set(e,(0,c.randomHash)()),e.renderer((0,u.ensureDefined)(g.get(e)),f.additionalWidget)))),n.createElement("div",{key:h.get(t),className:d(f.popupWidget,f[p])},n.createElement(m.Icon,{className:d(f.icon,i,f[p]),icon:a||void 0}),n.createElement("div",{className:f.desc},n.createElement("span",{style:{color:r||void 0},className:d(f.title,f[p])},o),l&&n.createElement("p",{className:d(f.text,f[p])},l.map((e,t)=>{let o,r;return(0,v.isObject)(e)?(o=e.text,r=e.bold):o=e,n.createElement("span",{key:"html_item_"+t,className:d(f.item,r&&f.boldItem),dangerouslySetInnerHTML:{__html:o}})})),s&&n.createElement("span",{className:d(s.tooltip&&"apply-common-tooltip",f.action,f[p]),onClick:()=>{e.onClose(),null==s||s.onClick()},title:s.tooltip},s.text),w))});return n.createElement(n.Fragment,null,o)}const C=new WeakMap;function E(e){const{statusWidgetInfos:t}=e,o=t.filter(e=>e.visible.value()).map(t=>(C.has(t)||C.set(t,(0,c.randomHash)()),n.createElement(w,{key:C.get(t),info:t.model.fullInfo(),onClose:e.onClose,additionalWidgets:t.additionalWidgets})));return n.createElement(s.DrawerManager,null,n.createElement(i.MatchMedia,{rule:"screen and (max-width: 428px)"},t=>t?n.createElement(l.Drawer,{onClose:e.onClose,position:"Bottom"},o):n.createElement(a.PopupMenu,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},o)))}function y(e,t,o,a,i,l){const s={rendererButton:o,position:l,statusWidgetInfos:a,onClose:i};e?r.render(n.createElement(E,{...s}),t):r.unmountComponentAtNode(t)}},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>r,DrawerContext:()=>a});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(a.Provider,{value:{addDrawer:this._addDrawer, -removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>p});var n=o(59496),r=o(88537),a=o(97754),i=o(59142),l=o(99054),s=o(65718),c=o(37558),d=o(49483),u=o(29197),m=o(66998);function p(e){const{position:t="Bottom",onClose:o,children:p,className:v,theme:f=m}=e,h=(0,r.ensureNotNull)((0,n.useContext)(c.DrawerContext)),[g,w]=(0,n.useState)(0),C=(0,n.useRef)(null),E=(0,n.useContext)(u.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,r.ensureNotNull)(C.current);return e.focus({preventScroll:!0}),E.subscribe(h,o),0===h.currentDrawer&&(0,l.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,i.disableBodyScroll)(e),w(h.addDrawer()),()=>{E.unsubscribe(h,o);const t=h.removeDrawer();d.CheckMobile.iOS()&&(0,i.enableBodyScroll)(e),0===t&&(0,l.setFixedBodyState)(!1)}},[]),n.createElement(s.Portal,null,n.createElement("div",{className:a(m.wrap,m["position"+t])},g===h.currentDrawer&&n.createElement("div",{className:m.backdrop,onClick:o}),n.createElement("div",{className:a(m.drawer,f.drawer,m["position"+t],v),ref:C,tabIndex:-1,"data-name":e["data-name"]},p)))}},50628:(e,t,o)=>{"use strict";o.d(t,{PopupMenu:()=>c});var n=o(59496),r=o(87995),a=o(65718),i=o(27317),l=o(29197),s=o(58095);function c(e){const{controller:t,children:o,isOpened:c,closeOnClickOutside:d=!0,doNotCloseOn:u,onClickOutside:m,onClose:p,...v}=e,f=(0,n.useContext)(l.CloseDelegateContext),h=(0,s.useOutsideEvent)({handler:function(e){m&&m(e);if(!d)return;if(u&&e.target instanceof Node){const t=r.findDOMNode(u);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?n.createElement(a.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},n.createElement("span",{ref:h,style:{pointerEvents:"auto"}},n.createElement(i.Menu,{...v,onClose:p,onScroll:function(t){const{onScroll:o}=e;o&&o(t)},customCloseDelegate:f,ref:t},o))):null}}}]); \ No newline at end of file diff --git a/charting_library/bundles/fullscreen-image-dialog-impl.96661b3d18a6fe1cf637.js b/charting_library/bundles/fullscreen-image-dialog-impl.96661b3d18a6fe1cf637.js new file mode 100644 index 00000000..20cc9f8a --- /dev/null +++ b/charting_library/bundles/fullscreen-image-dialog-impl.96661b3d18a6fe1cf637.js @@ -0,0 +1 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4632],{37810:e=>{e.exports={dialog:"dialog-VogZFLY8",border:"border-VogZFLY8",closeButton:"closeButton-VogZFLY8",container:"container-VogZFLY8",img:"img-VogZFLY8"}},93497:(e,t,o)=>{"use strict";o.r(t),o.d(t,{renderFullscreenImageDialog:()=>u});var l=o(59496),r=o(87995),i=o(28353),n=o(97754),a=o(58095),s=o(81e3),c=o(67844),g=o(68335),d=o(37810);function u(e){const t=document.createElement("div"),{imageSrc:o}=e;r.render(l.createElement(m,{onClose:function(){r.unmountComponentAtNode(t)},imageSrc:o}),t)}function m(e){const{onClose:t,imageSrc:o}=e,r=(0,a.useOutsideEvent)({click:!0,handler:t});return l.createElement(s.PopupDialog,{isOpened:!0,fullscreen:!0,onKeyDown:e=>{27===(0,g.hashFromEvent)(e)&&t()},className:n(d.dialog,d.border),"data-dialog-name":"fullscreen-image-dialog",autofocus:!0},l.createElement("div",{className:d.container},l.createElement(c.CloseButton,{onClick:t,className:d.closeButton,"aria-label":(0,i.t)("Close",{context:"input"}),size:"l"}),l.createElement("img",{className:d.img,ref:r,src:o})))}},43989:(e,t,o)=>{"use strict";o.d(t,{setFixedBodyState:()=>n});var l=o(68722);let r=0,i=!1;function n(e){const{body:t}=document,o=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,l.getCSSProperty)(t,"overflow"),r=(0,l.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,l.setStyle)(o,"right",(0,l.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,l.getScrollbarWidth)()+"px",i=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),i)){(0,l.setStyle)(o,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,l.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",i=!1}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-chart-properties-dialog.f56362c75973e41ee012.js b/charting_library/bundles/general-chart-properties-dialog.c03cba9c7cf0c46b99e6.js similarity index 99% rename from charting_library/bundles/general-chart-properties-dialog.f56362c75973e41ee012.js rename to charting_library/bundles/general-chart-properties-dialog.c03cba9c7cf0c46b99e6.js index c18a32a0..cb57ffa5 100644 --- a/charting_library/bundles/general-chart-properties-dialog.f56362c75973e41ee012.js +++ b/charting_library/bundles/general-chart-properties-dialog.c03cba9c7cf0c46b99e6.js @@ -1,5 +1,5 @@ (self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7078],{59142:function(e,t){var n,i,o;i=[t],void 0===(o="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={backButton:"backButton-ydU3v7fN"}},54565:e=>{e.exports={wrapper:"wrapper-Zcmov9JL",container:"container-Zcmov9JL",tab:"tab-Zcmov9JL",active:"active-Zcmov9JL",title:"title-Zcmov9JL", -icon:"icon-Zcmov9JL",titleText:"titleText-Zcmov9JL",nested:"nested-Zcmov9JL",isTablet:"isTablet-Zcmov9JL",isMobile:"isMobile-Zcmov9JL"}},79349:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tablet-small-breakpoint":"screen and (max-width: 428px)",withSidebar:"withSidebar-26RvWdey",content:"content-26RvWdey",tabContent:"tabContent-26RvWdey",applyToAllButton:"applyToAllButton-26RvWdey"}},12662:e=>{e.exports={themesButtonText:"themesButtonText-FIFiZujG",themesButtonIcon:"themesButtonIcon-FIFiZujG",defaultsButtonText:"defaultsButtonText-FIFiZujG",defaultsButtonItem:"defaultsButtonItem-FIFiZujG"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},22265:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>m,DialogSidebarWrapper:()=>d,DialogSidebarItem:()=>h});var i=n(59496),o=n(97754),l=n.n(o),a=n(9745),s=n(30360),r=n(54565);function c(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function m(e){const{mode:t,className:n,...o}=e,{isMobile:a,isTablet:s}=c(t),m=l()(r.container,s&&r.isTablet,a&&r.isMobile,n);return i.createElement("div",{...o,className:m,"data-role":"dialog-sidebar"})}function d(e){return i.createElement("div",{className:r.wrapper,...e})}function h(e){const{mode:t,title:n,icon:o,isActive:m,onClick:d,...h}=e,{isMobile:u,isTablet:p}=c(t);return i.createElement("div",{...h,className:l()(r.tab,p&&r.isTablet,u&&r.isMobile,m&&r.active),onClick:d},i.createElement(a.Icon,{className:r.icon,icon:o}),!p&&i.createElement("span",{className:r.title},i.createElement("span",{className:r.titleText},n),u&&i.createElement(a.Icon,{className:r.nested,icon:s})))}},72811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GeneralChartPropertiesDialogRenderer:()=>U});var i=n(28353),o=n(59496),l=n(87995),a=n(94720),s=n(90545),r=n(50182),c=n(66849),m=n(35868),d=n(56840),h=n.n(d),u=n(42060),p=n(90692),b=n(9745),g=n(95276),v=n(16396),y=n(51613),f=n(6087),C=(n(94419),n(3615));const T=(0,i.t)("Do you really want to delete Color Theme '{name}' ?");var _=n(50655),S=n(82724),k=n(96040),A=n(51768),E=n(70412),w=n(32563),P=n(12662);function B(e){const{themeName:t,chartWidgetCollection:n,onRemove:i,manager:l}=e,[a,s]=(0,E.useHover)(),r=o.useCallback(()=>function(e,t,n){window.is_authenticated&&(0,C.showConfirm)({text:T.format({name:e}),onConfirm:({dialogClose:n})=>{(0,f.removeTheme)(e),t&&t(e),n()}},n)}(t,i,l),[t,i,l]),c=o.useCallback(()=>{(0,f.loadTheme)(n,{themeName:t,standardTheme:!1}).then(()=>{n.readOnly()||window.saver.saveChartSilently(),(0,A.trackEvent)("GUI","Switch to custom theme")})},[t,n]);return o.createElement("div",{...s},o.createElement(v.PopupMenuItem,{className:P.defaultsButtonItem,isActive:!1,label:t,onClick:c,toolbox:o.createElement(k.RemoveButton,{hidden:!w.mobiletouch&&!a,onClick:r})}))}var M=n(31328);const x=(0,i.t)("Template"),I=(0,i.t)("Apply defaults"),L=((0,S.appendEllipsis)((0,i.t)("Save as")),(0,i.t)("Apply to all"));class D extends o.PureComponent{constructor(e){super(e),this._manager=null, +icon:"icon-Zcmov9JL",titleText:"titleText-Zcmov9JL",nested:"nested-Zcmov9JL",isTablet:"isTablet-Zcmov9JL",isMobile:"isMobile-Zcmov9JL"}},79349:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tablet-small-breakpoint":"screen and (max-width: 428px)",withSidebar:"withSidebar-26RvWdey",content:"content-26RvWdey",tabContent:"tabContent-26RvWdey",applyToAllButton:"applyToAllButton-26RvWdey"}},12662:e=>{e.exports={themesButtonText:"themesButtonText-FIFiZujG",themesButtonIcon:"themesButtonIcon-FIFiZujG",defaultsButtonText:"defaultsButtonText-FIFiZujG",defaultsButtonItem:"defaultsButtonItem-FIFiZujG"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},22265:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>m,DialogSidebarWrapper:()=>d,DialogSidebarItem:()=>h});var i=n(59496),o=n(97754),l=n.n(o),a=n(9745),s=n(30360),r=n(54565);function c(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function m(e){const{mode:t,className:n,...o}=e,{isMobile:a,isTablet:s}=c(t),m=l()(r.container,s&&r.isTablet,a&&r.isMobile,n);return i.createElement("div",{...o,className:m,"data-role":"dialog-sidebar"})}function d(e){return i.createElement("div",{className:r.wrapper,...e})}function h(e){const{mode:t,title:n,icon:o,isActive:m,onClick:d,...h}=e,{isMobile:u,isTablet:p}=c(t);return i.createElement("div",{...h,className:l()(r.tab,p&&r.isTablet,u&&r.isMobile,m&&r.active),onClick:d},i.createElement(a.Icon,{className:r.icon,icon:o}),!p&&i.createElement("span",{className:r.title},i.createElement("span",{className:r.titleText},n),u&&i.createElement(a.Icon,{className:r.nested,icon:s})))}},72811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GeneralChartPropertiesDialogRenderer:()=>U});var i=n(28353),o=n(59496),l=n(87995),a=n(97737),s=n(90545),r=n(50182),c=n(66849),m=n(35868),d=n(56840),h=n.n(d),u=n(42060),p=n(90692),b=n(9745),g=n(95276),v=n(16396),y=n(51613),f=n(6087),C=(n(94419),n(3615));const T=(0,i.t)("Do you really want to delete Color Theme '{name}' ?");var _=n(50655),S=n(82724),k=n(96040),A=n(51768),E=n(70412),w=n(32563),P=n(12662);function B(e){const{themeName:t,chartWidgetCollection:n,onRemove:i,manager:l}=e,[a,s]=(0,E.useHover)(),r=o.useCallback(()=>function(e,t,n){window.is_authenticated&&(0,C.showConfirm)({text:T.format({name:e}),onConfirm:({dialogClose:n})=>{(0,f.removeTheme)(e),t&&t(e),n()}},n)}(t,i,l),[t,i,l]),c=o.useCallback(()=>{(0,f.loadTheme)(n,{themeName:t,standardTheme:!1}).then(()=>{n.readOnly()||window.saver.saveChartSilently(),(0,A.trackEvent)("GUI","Switch to custom theme")})},[t,n]);return o.createElement("div",{...s},o.createElement(v.PopupMenuItem,{className:P.defaultsButtonItem,isActive:!1,label:t,onClick:c,toolbox:o.createElement(k.RemoveButton,{hidden:!w.mobiletouch&&!a,onClick:r})}))}var M=n(31328);const x=(0,i.t)("Template"),I=(0,i.t)("Apply defaults"),L=((0,S.appendEllipsis)((0,i.t)("Save as")),(0,i.t)("Apply to all"));class D extends o.PureComponent{constructor(e){super(e),this._manager=null, this._handleApplyDefaults=()=>{const{model:e,chartWidgetCollection:t}=this.props;e.restorePreferences();const n=(0,f.getCurrentTheme)().name;(0,f.loadTheme)(t,{themeName:n,standardTheme:!0,applyOverrides:!0})},this._handleSaveAs=()=>{0},this._handleRemoveTheme=e=>{this.setState({themes:this.state.themes.filter(t=>t!==e)})},this._syncThemeList=()=>{0},this.state={themes:[]},this._syncThemeList()}render(){return o.createElement(_.SlotContext.Consumer,null,e=>(this._manager=e,o.createElement(p.MatchMedia,{rule:"screen and (max-width: 768px)"},e=>o.createElement(g.ControlDisclosure,{id:"series-theme-manager",className:!e&&P.themesButtonText,hideArrowButton:e,"data-name":"theme-select",buttonChildren:this._getPlaceHolderItem(e)},this._getThemeItems(e)))))}_getPlaceHolderItem(e){return e?o.createElement(b.Icon,{className:P.themesButtonIcon,icon:M}):x}_getThemeItems(e){const{isApplyToAllVisible:t,chartWidgetCollection:n,applyToAllCallback:i}=this.props,{themes:l}=this.state;return o.createElement(o.Fragment,null,e&&t&&o.createElement(v.PopupMenuItem,{className:P.defaultsButtonItem,isActive:!1,label:L,onClick:i}),o.createElement(v.PopupMenuItem,{className:P.defaultsButtonItem,isActive:!1,label:I,onClick:this._handleApplyDefaults}),!1,l.length>0&&o.createElement(o.Fragment,null,o.createElement(y.PopupMenuSeparator,{key:"separator"}),l.map(e=>o.createElement(B,{key:e,themeName:e,onRemove:this._handleRemoveTheme,chartWidgetCollection:n,manager:this._manager}))))}}var N=n(59064),z=n(71953),W=n(24437),R=n(22265),V=n(86656);const F={areaSymbolMinTick:"normal",areaSymbolTimezone:"normal",barSymbolMinTick:"normal",barSymbolTimezone:"normal",baselineSymbolMinTick:"normal",baselineSymbolTimezone:"normal",candleSymbolMinTick:"normal",candleSymbolTimezone:"normal",dateFormat:"normal",haSymbolMinTick:"normal",haSymbolTimezone:"normal",hiloSymbolMinTick:"normal",hiloSymbolTimezone:"normal",hollowCandleSymbolMinTick:"normal",hollowCandleSymbolTimezone:"normal",kagiAtrLength:"normal",kagiReversalAmount:"normal",kagiStyle:"normal",kagiSymbolMinTick:"normal",kagiSymbolTimezone:"normal",lineSymbolMinTick:"normal",lineSymbolTimezone:"normal",sessionId:"normal",lockScale:"normal",mainSeriesSymbolAreaPriceSource:"normal",mainSeriesSymbolBaseLevelPercentage:"normal",mainSeriesSymbolBaseLinePriceSource:"normal",mainSeriesSymbolLinePriceSource:"normal",mainSeriesSymbolStyleType:"normal",navButtons:"big",paneButtons:"big",scalesCurrencyUnit:"big",pbLb:"normal",pbSymbolMinTick:"normal",pbSymbolTimezone:"normal",pnfAtrLength:"normal",pnfBoxSize:"normal",pnfReversalAmount:"normal",pnfSources:"normal",pnfStyle:"normal",pnfSymbolMinTick:"normal",pnfSymbolTimezone:"normal",rangeSymbolMinTick:"normal",rangeSymbolTimezone:"normal",renkoAtrLength:"normal",renkoBoxSize:"normal",renkoStyle:"normal",renkoSymbolMinTick:"normal",renkoSymbolTimezone:"normal",scalesPlacement:"normal",symbolLastValueLabel:"big",symbolTextSource:"normal"};var Z=n(24929),G=n(64360);function J(e){return o.createElement(b.Icon,{className:Z.backButton,icon:G,onClick:e.onClick})} var O=n(79349);class H extends o.PureComponent{constructor(e){var t;super(e),this._renderChildren=({requestResize:e,isSmallWidth:t})=>(this._requestResize=e,o.createElement("div",{className:O.content},this._renderTabs(t),this._renderTabContent(t))),this._renderApplyToAllButton=()=>o.createElement(p.MatchMedia,{rule:W.DialogBreakpoints.TabletNormal},e=>this._renderApplyToAll(e)),this._renderFooterLeft=()=>{const{model:e,chartWidgetCollection:t}=this.props,{isApplyToAllVisible:n}=this.state;return o.createElement(D,{model:e,isApplyToAllVisible:n,applyToAllCallback:this._handleApplyToAll,chartWidgetCollection:t})},this._createTabClickHandler=e=>()=>this._selectPage(e),this._selectPage=(e,t)=>{const{activePage:n}=this.state;e!==n&&(n&&n.definitions.unsubscribe(this._onChangeActivePageDefinitions),null!==e&&(t||h().setValue("properties_dialog.last_page_id",e.id),e.definitions.subscribe(this._onChangeActivePageDefinitions)),this.setState({activePage:e,tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()}))},this._onChangeActivePageDefinitions=()=>{z.logger.logNormal("Definition collection was updated"),this.setState({tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()})},this._onTabVisibilityChanged=()=>{const e=this.props.pages.filter(e=>e.visible.value());this.setState({visiblePages:e});const t=this.state.activePage;null===t||e.includes(t)||this._selectPage(0===e.length?null:e[0],!0)},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()},this._handleScroll=()=>{N.globalCloseDelegate.fire()},this._handleApplyToAll=()=>{const{chartWidgetCollection:e,model:t}=this.props,{isApplyToAllVisible:n}=this.state;n&&e.applyPreferencesToAllCharts(t)},this._syncApplyToAllVisibility=()=>{const{chartWidgetCollection:e}=this.props;this.setState({isApplyToAllVisible:(0,u.isMultipleLayout)(e.layout.value())})},this._handleBackClick=()=>{const{activePage:e}=this.state;e&&e.definitions.unsubscribe(this._onChangeActivePageDefinitions),this.setState({activePage:null})};const{pages:n,activePageId:i}=e,l=n.filter(e=>e.visible.value());let a=null!==(t=l.find(e=>e.id===i))&&void 0!==t?t:null;if(!a){const e=h().getValue("properties_dialog.last_page_id"),t=l.find(t=>t.id===e);a=t||(l.length>0?l[0]:null)}this.state={activePage:a,visiblePages:l,isApplyToAllVisible:(0,u.isMultipleLayout)(e.chartWidgetCollection.layout.value()),tableKey:Date.now()}}componentDidMount(){const{chartWidgetCollection:e,pages:t}=this.props,{activePage:n}=this.state;e.layout.subscribe(this._syncApplyToAllVisibility),n&&n.definitions.subscribe(this._onChangeActivePageDefinitions),t.forEach(e=>e.visible.subscribe(this._onTabVisibilityChanged))}componentWillUnmount(){const{chartWidgetCollection:e,pages:t}=this.props,{activePage:n}=this.state;n&&n.definitions.unsubscribe(this._onChangeActivePageDefinitions),e.layout.unsubscribe(this._syncApplyToAllVisibility),t.forEach(e=>e.visible.unsubscribe(this._onTabVisibilityChanged))}render(){ const{isOpened:e,onClose:t}=this.props,{activePage:n}=this.state;return o.createElement(p.MatchMedia,{rule:W.DialogBreakpoints.TabletSmall},l=>o.createElement(r.AdaptiveConfirmDialog,{className:O.withSidebar,dataName:"series-properties-dialog",onClose:t,isOpened:e,title:null!==n&&l?n.title:(0,i.t)("Chart settings"),footerLeftRenderer:this._renderFooterLeft,additionalButtons:this._renderApplyToAllButton(),additionalHeaderElement:null!==n&&l?o.createElement(J,{onClick:this._handleBackClick}):void 0,onSubmit:this._handleSubmit,onCancel:this._handleCancel,render:this._renderChildren,submitOnEnterKey:!1}))}_renderTabContent(e){const{pages:t}=this.props,n=this._getCurrentPage(e);if(n){const e=t.find(e=>e.id===n.id),i=e?e.definitions.value():[];return o.createElement(V.TouchScrollContainer,{className:O.tabContent,onScroll:this._handleScroll},o.createElement(c.ControlCustomWidthContext.Provider,{value:F},o.createElement(m.PropertyTable,{key:this.state.tableKey},i.map(e=>o.createElement(s.Section,{key:e.id,definition:e})))))}return null}_renderTabs(e){const{activePage:t,visiblePages:n}=this.state;if(t&&e)return null;const i=this._getCurrentPage(e);return o.createElement(p.MatchMedia,{rule:W.DialogBreakpoints.TabletNormal},e=>o.createElement(p.MatchMedia,{rule:W.DialogBreakpoints.TabletSmall},t=>{const l=t?"mobile":e?"tablet":void 0;return o.createElement(R.DialogSidebarContainer,{mode:l,onScroll:this._handleScroll},n.map(e=>o.createElement(R.DialogSidebarItem,{key:e.id,mode:l,"data-name":e.id,title:e.title,icon:e.icon,onClick:this._createTabClickHandler(e),isActive:i?e.id===i.id:void 0})))}))}_renderApplyToAll(e){const{isApplyToAllVisible:t}=this.state;return!e&&t&&o.createElement("span",{className:O.applyToAllButton},o.createElement(a.Button,{appearance:"stroke",onClick:this._handleApplyToAll},(0,i.t)("Apply to all")))}_getCurrentPage(e){const{pages:t}=this.props,{activePage:n}=this.state;let i=null;return n?i=n:!e&&t.length&&(i=t[0]),i}}var j=n(76422),q=n(22729);const K=(0,i.t)("Chart settings");class U extends q.DialogRenderer{constructor(e){super(),this._handleClose=()=>{l.unmountComponentAtNode(this._container),this._setVisibility(!1),this._onClose&&this._onClose()},this._handleSubmit=()=>{},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._propertyPages=e.propertyPages,this._model=e.model,this._activePageId=e.activePageId,this._onClose=e.onClose,this._chartWidgetCollection=e.chartWidgetCollection,this._checkpoint=this._ensureCheckpoint(e.undoCheckPoint)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(){l.render(o.createElement(H,{title:K,isOpened:!0,onSubmit:this._handleSubmit,onClose:this._handleClose,onCancel:this._handleCancel,pages:this._propertyPages,model:this._model,activePageId:this._activePageId,chartWidgetCollection:this._chartWidgetCollection}),this._container),this._setVisibility(!0),j.emit("edit_object_dialog",{objectType:"mainSeries",scriptTitle:this._model.mainSeries().title()})}_ensureCheckpoint(e){ diff --git a/charting_library/bundles/general-property-page.1d681e46e32eeb7bd566.js b/charting_library/bundles/general-property-page.0218f1b33618fc491a70.js similarity index 99% rename from charting_library/bundles/general-property-page.1d681e46e32eeb7bd566.js rename to charting_library/bundles/general-property-page.0218f1b33618fc491a70.js index ca93bb2b..3564a199 100644 --- a/charting_library/bundles/general-property-page.1d681e46e32eeb7bd566.js +++ b/charting_library/bundles/general-property-page.0218f1b33618fc491a70.js @@ -1,4 +1,4 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{47806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>Pt});var r=i(88537),n=i(28353),o=i(67337),a=(i(27759),i(92033),i(52714)),s=i.n(a),l=i(50366),c=i(80331),p=i(95707),h=i(62428),d=i(74325),g=i(87387),y=i(13647),u=i(24980),b=i(81465),v=i(79680),P=i(54089);const m=new u.TranslatedString("change symbol description visibility",(0,n.t)("change symbol description visibility")),f=new u.TranslatedString("change symbol legend format",(0,n.t)("change symbol legend format")),w=new u.TranslatedString("change open market status visibility",(0,n.t)("change open market status visibility")),S=new u.TranslatedString("change OHLC values visibility",(0,n.t)("change OHLC values visibility")),D=new u.TranslatedString("change bar change visibility",(0,n.t)("change bar change visibility")),T=new u.TranslatedString("change indicator arguments visibility",(0,n.t)("change indicator arguments visibility")),_=new u.TranslatedString("change indicator titles visibility",(0,n.t)("change indicator titles visibility")),k=new u.TranslatedString("change indicator values visibility",(0,n.t)("change indicator values visibility")),C=new u.TranslatedString("change legend background visibility",(0,n.t)("change legend background visibility")),V=new u.TranslatedString("change legend background transparency",(0,n.t)("change legend background transparency")),L=new u.TranslatedString("change volume values visibility",(0,n.t)("change volume values visibility")),M=(0,n.t)("Symbol"),x=(0,n.t)("OHLC values"),O=(0,n.t)("Bar change values"),z=(0,n.t)("Volume"),A=(0,n.t)("Indicator titles"),G=(0,n.t)("Indicator arguments"),E=(0,n.t)("Indicator values"),H=(0,n.t)("Background"),R=(0,n.t)("Open market status");var N=i(3825),W=i(37787),F=i(76166),B=i(8175);const j=o.enabled("show_average_close_price_line_and_label"),I=new u.TranslatedString("change symbol labels visibility",(0,n.t)("change symbol labels visibility")),U=new u.TranslatedString("change symbol last value visibility",(0,n.t)("change symbol last value visibility")),q=new u.TranslatedString("change symbol last value mode",(0,n.t)("change symbol last value mode")),J=(new u.TranslatedString("change symbol previous close value visibility",(0,n.t)("change symbol previous close value visibility")),new u.TranslatedString("change bid and ask labels visibility",(0,n.t)("change bid and ask labels visibility")),new u.TranslatedString("change pre/post market price label visibility",(0,n.t)("change pre/post market price label visibility")),new u.TranslatedString("change high and low price labels visibility",(0,n.t)("change high and low price labels visibility"))),K=new u.TranslatedString("change average close price label visibility",(0,n.t)("change average close price label visibility")),Q=(new u.TranslatedString("change indicators and financials name labels visibility",(0,n.t)("change indicators and financials name labels visibility")),new u.TranslatedString("change indicators name labels visibility",(0, +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3596],{57695:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ChartPropertyDefinitionsViewModel:()=>Pt});var r=i(88537),n=i(28353),o=i(67337),a=(i(27759),i(92033),i(52714)),s=i.n(a),l=i(50366),c=i(80331),p=i(95707),h=i(62428),d=i(74325),g=i(87387),y=i(13647),u=i(24980),b=i(81465),v=i(79680),P=i(54089);const m=new u.TranslatedString("change symbol description visibility",(0,n.t)("change symbol description visibility")),f=new u.TranslatedString("change symbol legend format",(0,n.t)("change symbol legend format")),w=new u.TranslatedString("change open market status visibility",(0,n.t)("change open market status visibility")),S=new u.TranslatedString("change OHLC values visibility",(0,n.t)("change OHLC values visibility")),D=new u.TranslatedString("change bar change visibility",(0,n.t)("change bar change visibility")),T=new u.TranslatedString("change indicator arguments visibility",(0,n.t)("change indicator arguments visibility")),_=new u.TranslatedString("change indicator titles visibility",(0,n.t)("change indicator titles visibility")),k=new u.TranslatedString("change indicator values visibility",(0,n.t)("change indicator values visibility")),C=new u.TranslatedString("change legend background visibility",(0,n.t)("change legend background visibility")),V=new u.TranslatedString("change legend background transparency",(0,n.t)("change legend background transparency")),L=new u.TranslatedString("change volume values visibility",(0,n.t)("change volume values visibility")),M=(0,n.t)("Symbol"),x=(0,n.t)("OHLC values"),O=(0,n.t)("Bar change values"),z=(0,n.t)("Volume"),A=(0,n.t)("Indicator titles"),G=(0,n.t)("Indicator arguments"),E=(0,n.t)("Indicator values"),H=(0,n.t)("Background"),R=(0,n.t)("Open market status");var N=i(3825),W=i(37787),F=i(76166),B=i(8175);const j=o.enabled("show_average_close_price_line_and_label"),I=new u.TranslatedString("change symbol labels visibility",(0,n.t)("change symbol labels visibility")),U=new u.TranslatedString("change symbol last value visibility",(0,n.t)("change symbol last value visibility")),q=new u.TranslatedString("change symbol last value mode",(0,n.t)("change symbol last value mode")),J=(new u.TranslatedString("change symbol previous close value visibility",(0,n.t)("change symbol previous close value visibility")),new u.TranslatedString("change bid and ask labels visibility",(0,n.t)("change bid and ask labels visibility")),new u.TranslatedString("change pre/post market price label visibility",(0,n.t)("change pre/post market price label visibility")),new u.TranslatedString("change high and low price labels visibility",(0,n.t)("change high and low price labels visibility"))),K=new u.TranslatedString("change average close price label visibility",(0,n.t)("change average close price label visibility")),Q=(new u.TranslatedString("change indicators and financials name labels visibility",(0,n.t)("change indicators and financials name labels visibility")),new u.TranslatedString("change indicators name labels visibility",(0, n.t)("change indicators name labels visibility"))),X=(new u.TranslatedString("change indicators and financials value labels visibility",(0,n.t)("change indicators and financials value labels visibility")),new u.TranslatedString("change indicators value labels visibility",(0,n.t)("change indicators value labels visibility"))),Y=new u.TranslatedString("change no overlapping labels",(0,n.t)("change no overlapping labels")),Z=new u.TranslatedString("change countdown to bar close visibility",(0,n.t)("change countdown to bar close visibility")),$=new u.TranslatedString("change currency label visibility",(0,n.t)("change currency label visibility")),ee=new u.TranslatedString("change unit label visibility",(0,n.t)("change unit label visibility")),te=new u.TranslatedString("change currency and unit labels visibility",(0,n.t)("change currency and unit labels visibility")),ie=new u.TranslatedString("change plus button visibility",(0,n.t)("change plus button visibility")),re=new u.TranslatedString("toggle lock scale",(0,n.t)("toggle lock scale")),ne=new u.TranslatedString("change price to bar ratio",(0,n.t)("change price to bar ratio")),oe=new u.TranslatedString("change date format",(0,n.t)("change date format")),ae=(0,n.t)("Symbol name label"),se=(0,n.t)("Symbol last price label"),le=((0,n.t)("Symbol previous day close price label"),(0,n.t)("Indicators and financials name labels"),(0,n.t)("Indicators name labels")),ce=((0,n.t)("Indicators and financials value labels"),(0,n.t)("Indicators value labels")),pe=((0,n.t)("Bid and ask labels"),(0,n.t)("Pre/post market price label"),(0,n.t)("Average close price label")),he=(0,n.t)("Countdown to bar close"),de=(0,n.t)("Currency"),ge=(0,n.t)("Unit"),ye=(0,n.t)("Currency and Unit"),ue=(0,n.t)("Plus button"),be=(0,n.t)("Scales placement"),ve=(0,n.t)("Date format"),Pe=(0,n.t)("Lock price to bar ratio"),me=(0,n.t)("No overlapping labels"),fe=[{value:N.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:(0,n.t)("Price and percentage value")},{value:N.PriceAxisLastValueMode.LastValueAccordingToScale,title:(0,n.t)("Value according to scale")}];var we=i(32449);const Se=new u.TranslatedString("change chart background color",(0,n.t)("change chart background color")),De=new u.TranslatedString("change chart background type",(0,n.t)("change chart background type")),Te=new u.TranslatedString("change vert grid lines color",(0,n.t)("change vert grid lines color")),_e=new u.TranslatedString("change vert grid lines style",(0,n.t)("change vert grid lines style")),ke=new u.TranslatedString("change horz grid lines color",(0,n.t)("change horz grid lines color")),Ce=new u.TranslatedString("change horz grid lines style",(0,n.t)("change horz grid lines style")),Ve=new u.TranslatedString("change sessions breaks visibility",(0,n.t)("change sessions breaks visibility")),Le=new u.TranslatedString("change sessions breaks color",(0,n.t)("change sessions breaks color")),Me=new u.TranslatedString("change sessions breaks width",(0, n.t)("change sessions breaks width")),xe=new u.TranslatedString("change sessions breaks style",(0,n.t)("change sessions breaks style")),Oe=new u.TranslatedString("change scales text color",(0,n.t)("change scales text color")),ze=new u.TranslatedString("change scales font size",(0,n.t)("change scales font size")),Ae=new u.TranslatedString("change scales lines color",(0,n.t)("change scales lines color")),Ge=new u.TranslatedString("change pane separators color",(0,n.t)("change pane separators color")),Ee=new u.TranslatedString("change crosshair color",(0,n.t)("change crosshair color")),He=new u.TranslatedString("change crosshair width",(0,n.t)("change crosshair width")),Re=new u.TranslatedString("change crosshair style",(0,n.t)("change crosshair style")),Ne=new u.TranslatedString("change symbol watermark visibility",(0,n.t)("change symbol watermark visibility")),We=new u.TranslatedString("change symbol watermark color",(0,n.t)("change symbol watermark color")),Fe=new u.TranslatedString("change navigation buttons visibility",(0,n.t)("change navigation buttons visibility")),Be=new u.TranslatedString("change pane buttons visibility",(0,n.t)("change pane buttons visibility")),je=new u.TranslatedString("change top margin",(0,n.t)("change top margin")),Ie=new u.TranslatedString("change bottom margin",(0,n.t)("change bottom margin")),Ue=new u.TranslatedString("change right margin",(0,n.t)("change right margin")),qe=(0,n.t)("Background"),Je=(0,n.t)("Vert grid lines"),Ke=(0,n.t)("Horz grid lines"),Qe=(0,n.t)("Session breaks"),Xe=(0,n.t)("Scales text"),Ye=(0,n.t)("Scales lines"),Ze=(0,n.t)("Pane separators"),$e=(0,n.t)("Crosshair"),et=(0,n.t)("Watermark"),tt=(0,n.t)("Top margin"),it=(0,n.t)("Navigation buttons"),rt=(0,n.t)("Pane buttons"),nt=(0,n.t)("Bottom margin"),ot=(0,n.t)("Right margin"),at=(0,n.t)("bars",{context:"unit"});var st=i(7043),lt=i(21761),ct=i(1860),pt=i(39277);const ht={symbol:i(41509),legend:i(23426),scales:i(85612),appearance:i(15516),events:i(73257),trading:i(1784)},dt=(0,n.t)("Symbol"),gt=(0,n.t)("Status line"),yt=(0,n.t)("Scales"),ut=(0,n.t)("Appearance");(0,n.t)("Events"),(0,n.t)("Trading"),(0,n.t)("money"),(0,n.t)("pips"),(0,n.t)("ticks");function bt(){const e=new Date(Date.UTC(1997,8,29));return st.availableDateFormats.map(t=>({value:t,title:new ct.DateFormatter(t).format(e)}))}const vt=[{id:"symbol-text-source-description",value:"description",title:(0,n.t)("Description")},{id:"symbol-text-source-ticker",value:"ticker",title:(0,n.t)("Ticker")},{id:"symbol-text-source-ticker-and-description",value:"ticker-and-description",title:(0,n.t)("Ticker and description")}];class Pt{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._profitLossOptions=null,this._pipValueTypeSpawn=null,this._isDestroyed=!1,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel(),this._legendPropertyPage=this._createLegendPropertyPage(), this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}destroy(){var e;null!==this._propertyPages&&this._propertyPages.filter((e,t)=>0!==t).forEach(e=>{(0,l.destroyDefinitions)(e.definitions.value())}),this._seriesPropertyDefinitionViewModel.destroy(),null===(e=this._pipValueTypeSpawn)||void 0===e||e.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);(0,r.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then(e=>{if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage),null!==this._eventsPropertyPage&&this._propertyPages.push(this._eventsPropertyPage)),this._propertyPages}):Promise.resolve(this._propertyPages)}_updatePlDisplayOptions(){(0,r.ensureNotNull)(this._pipValueTypeSpawn).value();(0,r.ensureNotNull)(this._profitLossOptions).setValue([])}_updateDefinitions(){(0,l.destroyDefinitions)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e.definitions)}_createSeriesViewModel(){const e={property:this._model.properties().childs().timezone,values:pt.availableTimezones.map(e=>({value:e.id,title:e.title}))};return new g.SeriesPropertyDefinitionsViewModel(this._series,this._undoModel,"symbol",dt,ht.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:vt},i=function(e,t,i,r,n){const o=[],a=[],c=(0,l.createOptionsPropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showSeriesTitle,m),option:(0,l.convertToDefinitionProperty)(e,i.property,f)},{id:"symbolTextSource",title:M,options:new(s())(i.values)});if(a.push(c),null!==r){const t=(0,P.combineWithFilteredUpdate)(e=>"market"===e,e=>null!==e,e.mainSeries().marketStatusModel().status()),i=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,r,w),visible:(0,l.convertFromReadonlyWVToDefinitionProperty)(t)},{id:"showOpenMarketStatus",title:R});a.push(i)}const p=(0,l.createCheckablePropertyDefinition)({checked:(0,l.convertToDefinitionProperty)(e,t.showSeriesOHLC,S)},{id:"ohlcTitle",title:x});a.push(p);const h=(0, diff --git a/charting_library/bundles/global-toasts.4e2377e6bac59b8285e6.js b/charting_library/bundles/global-toasts.4e2377e6bac59b8285e6.js new file mode 100644 index 00000000..b82ab5f1 --- /dev/null +++ b/charting_library/bundles/global-toasts.4e2377e6bac59b8285e6.js @@ -0,0 +1,3 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4291],{7881:t=>{t.exports={"toast-wrapper":"toast-wrapper-LaQcqQbu",compact:"compact-LaQcqQbu"}},99062:t=>{t.exports={"toast-positioning-wrapper":"toast-positioning-wrapper-uEa3054V",compact:"compact-uEa3054V","location-bottom-left":"location-bottom-left-uEa3054V","location-bottom-right":"location-bottom-right-uEa3054V",hidden:"hidden-uEa3054V",added:"added-uEa3054V"}},56139:(t,e,o)=>{"use strict";o.r(e),o.d(e,{globalToasts:()=>M,showToast:()=>E});var s=o(59496),a=o(97754),i=o(87995),n=o(9423),r=o(65718),h=o(50655),d=o(88216),u=o(36947),g=o(65355);class c{constructor(t){this._animationStage=g.ToastAnimationStage.Add,this._keys=new Map,this._element=null,this.render=t=>this._render(t),this.remove=()=>this._currentToastsLayer.removeToast(this);const{priority:e,origin:o,currentLayer:s,onLayerChange:a,render:i,onMouseOver:n,onMouseOut:r}=t;this._staticData=Object.freeze({priority:e,origin:o,onLayerChange:a,onMouseOver:n,onMouseOut:r}),this._currentToastsLayer=s||o,this._render=i}getStaticData(){return this._staticData}migrate(t){this._currentToastsLayer=t,this._animationStage=g.ToastAnimationStage.Add}getCurrentLayer(){return this._currentToastsLayer}isForeign(){return this._staticData.origin!==this._currentToastsLayer}getAnimationStage(){return this._animationStage}setAnimationStage(t){this._animationStage=t}setKey(t,e){this._keys.set(t,e)}getKey(t=this._currentToastsLayer){return this._keys.get(t)}getElement(){return this._element}setElement(t){this._element=t}}var l=o(99062);const m={position:"fixed",left:"0",bottom:"0",right:"0",zIndex:145};class _{constructor(t,e,o=m,s){this._toasts={[g.ToastPriority.Low]:[],[g.ToastPriority.Medium]:[],[g.ToastPriority.High]:[]},this._container=void 0!==e?e:document.body,this._suggestedLayout=void 0!==t?t:"loose",this._location=null!=s?s:"bottom-left",this._manager=new d.OverlapManager(document),this._overlapManagerContainer=function(t,e={}){const o=t.createElement("div");return o.dataset.role="toast-container",p(o,{...m,...e}),o}(document,o),this._manager.setContainer(this._overlapManagerContainer),this._container.appendChild(this._overlapManagerContainer),this._detachedContainer=document.createElement("div")}showToast(t){const{render:e,priority:o=g.ToastPriority.Medium,index:s,origin:a=this,onLayerChange:i,onMouseOver:n,onMouseOut:r}=t,h=new c({priority:o,origin:a,currentLayer:this,render:e,onLayerChange:i,onMouseOver:n,onMouseOut:r}),d=this._getNextKey();return h.setKey(this,d),"compact"===this._suggestedLayout&&o===g.ToastPriority.Low?Promise.all(this._toasts[g.ToastPriority.Low].map(t=>this.removeToast(t))).then(()=>{this._add(h,s),this._render()}):(this._add(h,s),this._render()),h}showExistingToast(t){const e=this._getNextKey();return t.setKey(this,e),this._add(t),this._render(),t}removeToast(t){return new Promise(e=>{t.setAnimationStage(g.ToastAnimationStage.Remove),this._render(),setTimeout(()=>{this._remove(t),this._render(),e()},250)})}update(t){ +const{suggestedLayout:e,location:o,container:s,rootContainerOptions:a}=t;let i=!1,n=!1;void 0!==e&&e!==this._suggestedLayout&&(this._setSuggestedLayout(e),i=!0),void 0!==o&&(this._setLocation(o),n=!0),void 0!==s&&(this._setContainer(s),n=!0),void 0!==a&&(this._updateRootContainer(a),n=!0),i?"compact"===this._suggestedLayout&&this._toasts[g.ToastPriority.Low].slice(0,-1).forEach(t=>this.removeToast(t)):n&&this._render()}getToasts(){return this._toasts}forceRender(){this._render()}merge(t){y(t.getToasts()).forEach(async e=>{const o=e.getStaticData();await e.remove(),e.migrate(this),this.showExistingToast(e),void 0!==o.onLayerChange&&o.onLayerChange(t,this)})}split(t){y(this._toasts).filter(t=>t.isForeign()).forEach(async e=>{const o=e.getStaticData();await e.remove(),e.migrate(t),t.showExistingToast(e),void 0!==o.onLayerChange&&o.onLayerChange(this,t)})}reset(){this._toasts={[g.ToastPriority.Low]:[],[g.ToastPriority.Medium]:[],[g.ToastPriority.High]:[]},this._render()}destroy(){this._removeRootContainer()}_removeRootContainer(){i.unmountComponentAtNode(this._detachedContainer),this._detachedContainer.remove(),this._overlapManagerContainer.remove()}_getToastsList(t){const e=t.getStaticData().priority;return this._toasts[e]}_normalizeIndex(t,e){return t<0?0:t>e.length?e.length:t}_add(t,e){const o=this._getToastsList(t);if(void 0!==e){const s=this._normalizeIndex(e,o);o.splice(s,0,t)}else o.push(t)}_remove(t){const e=this._getToastsList(t),o=e.indexOf(t);o>=0&&e.splice(o,1)}_render(){const t=y(this._toasts);i.render(s.createElement(T,{toasts:t,suggestedLayout:this._suggestedLayout,location:this._location,manager:this._manager,layer:this}),this._detachedContainer)}_setSuggestedLayout(t){t!==this._suggestedLayout&&(this._suggestedLayout=t)}_setLocation(t){t!==this._location&&(this._location=t)}_setContainer(t){t!==this._container&&(this._container=t,this._container.appendChild(this._overlapManagerContainer))}_updateRootContainer(t){p(this._overlapManagerContainer,t)}_getNextKey(){return(0,n.randomHashN)(5)}}function y(t){return[...t[g.ToastPriority.Low],...t[g.ToastPriority.Medium],...t[g.ToastPriority.High]]}function p(t,e){const{top:o,right:s,bottom:a,left:i,position:n,zIndex:r}=e;void 0!==n&&(t.style.position=n),void 0!==r&&(t.style.zIndex=String(r)),void 0!==o&&(t.style.top=o),void 0!==s&&(t.style.right=s),void 0!==a&&(t.style.bottom=a),void 0!==i&&(t.style.left=i)}function L(t,e,o){return t.getKey(o)||e.toString(10)}function v(t){const{toast:e,toasts:o,layer:i,suggestedLayout:n,location:h,forceRender:d}=t,u=(0,s.useRef)(null),c=e.getAnimationStage(),m=c!==g.ToastAnimationStage.None,_=c===g.ToastAnimationStage.Add,y=function(t,e,o){var s;const a=e.indexOf(t),i=L(t,a,o);let n=0;for(const t of e){const r=e.indexOf(t),h=L(t,r,o),d=(null===(s=t.getElement())||void 0===s?void 0:s.offsetHeight)||0,u=t.getAnimationStage()!==g.ToastAnimationStage.None;let c=0;u&&h===i?c=1:!u&&a{if(e.getCurrentLayer()!==i||e.getAnimationStage()!==g.ToastAnimationStage.Add||null===u.current)return;const t=e.getElement();null===t||t!==u.current?(e.setElement(u.current),d()):(e.setAnimationStage(g.ToastAnimationStage.None),d())}),s.createElement(r.Portal,{layerOptions:{position:"absolute"},left:"0",right:"0"},s.createElement("div",{onMouseOver:e.getStaticData().onMouseOver,onMouseOut:e.getStaticData().onMouseOut,className:p,style:{transform:`translateY(${y}px)`},ref:u},e.render({onRemove:e.remove,suggestedLayout:n})))}function T(t){const{toasts:e,suggestedLayout:o,location:a,manager:i,layer:n}=t,r=(0,u.useForceUpdate)();return s.createElement(h.SlotContext.Provider,{value:i},e.map((t,i)=>s.createElement(v,{key:L(t,i,n),toast:t,toasts:e,layer:n,suggestedLayout:o,location:a,forceRender:r})))}var f=o(86240),C=o(7881);const w=f["media-mf-phone-landscape"];function S(t){const{suggestedLayout:e,children:o}=t;return s.createElement("div",{className:a(C["toast-wrapper"],"compact"===e&&C.compact)},o)}const M=new class{constructor(){var t;this._mediaQuery=window.matchMedia(w),this._handleMediaQueryChange=()=>{this._toastsLayer.update({suggestedLayout:this._getSuggestedLayout()})},this._handleLoginStateChange=()=>{this._toastsLayer.update({location:this._getLocation()})},this._toastsLayer=new _(this._getSuggestedLayout(),void 0,void 0,this._getLocation()),this._mediaQuery.addListener(this._handleMediaQueryChange),null===(t=window.loginStateChange)||void 0===t||t.subscribe(this,this._handleLoginStateChange)}destroy(){var t;this._toastsLayer.destroy(),this._mediaQuery.removeListener(this._handleMediaQueryChange),null===(t=window.loginStateChange)||void 0===t||t.unsubscribe(this,this._handleLoginStateChange)}showCustomToast(t){const{render:e,...o}=t;var a;return this._toastsLayer.showToast({render:(a=e,t=>s.createElement(S,{suggestedLayout:t.suggestedLayout,children:a(t)})),...o}).remove}reset(){this._toastsLayer.reset()}forceRender(){this._toastsLayer.forceRender()}merge(t){this._toastsLayer.merge(t)}split(t){this._toastsLayer.split(t)}_getSuggestedLayout(){return this._mediaQuery.matches?"loose":"compact"}_getLocation(){return"bottom-left"}};function E(t){return M.showCustomToast(t)}},36947:(t,e,o)=>{"use strict";o.d(e,{useForceUpdate:()=>a});var s=o(59496);const a=()=>{const[,t]=(0,s.useReducer)((t,e)=>t+1,0);return t}},65355:(t,e,o)=>{"use strict";var s,a;o.d(e,{ToastAnimationStage:()=>s,ToastPriority:()=>a}),function(t){t[t.Add=0]="Add",t[t.Remove=1]="Remove",t[t.None=2]="None"}(s||(s={})),function(t){t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High"}(a||(a={}))}}]); \ No newline at end of file diff --git a/charting_library/bundles/go-to-date-dialog-impl.2bf2c3f997463af55494.js b/charting_library/bundles/go-to-date-dialog-impl.2bf2c3f997463af55494.js deleted file mode 100644 index 376890bd..00000000 --- a/charting_library/bundles/go-to-date-dialog-impl.2bf2c3f997463af55494.js +++ /dev/null @@ -1,14 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1859],{45228:e=>{e.exports={calendar:"calendar-wVs9kh0I"}},55400:e=>{e.exports={row:"row-9XF0QIKT",mobileRow:"mobileRow-9XF0QIKT"}},26074:e=>{e.exports={dialogWrapper:"dialogWrapper-70bfoXiO",dialogWrapperSmall:"dialogWrapperSmall-70bfoXiO",tabs:"tabs-70bfoXiO",content:"content-70bfoXiO",contentMobile:"contentMobile-70bfoXiO",bodyWrapper:"bodyWrapper-70bfoXiO"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},67179:e=>{e.exports={dialog:"dialog-HExheUfY",wrapper:"wrapper-HExheUfY",separator:"separator-HExheUfY"}},91441:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-tuOy5zvD",unsetAlign:"unsetAlign-tuOy5zvD",title:"title-tuOy5zvD",subtitle:"subtitle-tuOy5zvD",ellipsis:"ellipsis-tuOy5zvD",close:"close-tuOy5zvD"}},12539:e=>{e.exports={calendar:"calendar-U9DgB4FB",popupStyle:"popupStyle-U9DgB4FB",header:"header-U9DgB4FB",title:"title-U9DgB4FB",switchBtn:"switchBtn-U9DgB4FB",prev:"prev-U9DgB4FB",month:"month-U9DgB4FB",weekdays:"weekdays-U9DgB4FB",weeks:"weeks-U9DgB4FB",week:"week-U9DgB4FB",day:"day-U9DgB4FB",disabled:"disabled-U9DgB4FB",selected:"selected-U9DgB4FB",currentDay:"currentDay-U9DgB4FB",isOnHighlightedEdge:"isOnHighlightedEdge-U9DgB4FB",withinSelectedRange:"withinSelectedRange-U9DgB4FB"}},34020:e=>{e.exports={container:"container-tZN1pb1A",icon:"icon-tZN1pb1A",tooltip:"tooltip-tZN1pb1A",date:"date-tZN1pb1A",time:"time-tZN1pb1A"}},554:e=>{e.exports={pickerInput:"pickerInput-sZbzL9zH",icon:"icon-sZbzL9zH",disabled:"disabled-sZbzL9zH",picker:"picker-sZbzL9zH",fixed:"fixed-sZbzL9zH",absolute:"absolute-sZbzL9zH",nativePicker:"nativePicker-sZbzL9zH"}},93632:e=>{e.exports={tooltip:"tooltip-QKiUU4Ng"}},64886:e=>{e.exports={slider:"slider-Q7h4o6oW",inner:"inner-Q7h4o6oW"}},42545:e=>{e.exports={scrollWrap:"scrollWrap-VabV7Fn8",tabsWrap:"tabsWrap-VabV7Fn8",tabs:"tabs-VabV7Fn8",withoutBorder:"withoutBorder-VabV7Fn8",tab:"tab-VabV7Fn8",withHover:"withHover-VabV7Fn8",headerBottomSeparator:"headerBottomSeparator-VabV7Fn8",fadeWithoutSlider:"fadeWithoutSlider-VabV7Fn8",withBadge:"withBadge-VabV7Fn8"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},91626:e=>{e.exports={separator:"separator-jtAq6E4V"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},90186:(e,t,s)=>{"use strict";function n(e){return i(e,o)}function r(e){ -return i(e,a)}function i(e,t){const s=Object.entries(e).filter(t),n={};for(const[e,t]of s)n[e]=t;return n}function o(e){const[t,s]=e;return 0===t.indexOf("data-")&&"string"==typeof s}function a(e){return 0===e[0].indexOf("aria-")}s.d(t,{filterDataProps:()=>n,filterAriaProps:()=>r,filterProps:()=>i,isDataAttribute:()=>o,isAriaAttribute:()=>a})},54801:(e,t,s)=>{"use strict";s.r(t),s.d(t,{showGoToDateDialog:()=>Re});var n=s(59496),r=s(87995),i=s(88537),o=s(82992);function a(e){return("0"+e).slice(-2)}function l(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function c(e,t=!1){const s=l(e),n=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(s.getDay()):s.getDay();return s.setDate(s.getDate()-n),s}function h(e){const t=l(e);return t.setDate(1),t}function u(e,t){return Number(l(e))===Number(l(t))}function d(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}function p(e,t,s){const n=!t||Number(l(t))-Number(l(e))<=0;return(!s||Number(l(s))-Number(l(e))>=0)&&n}function m(e){return new Date(e).getTimezoneOffset()/60}function f(e){const t=new Date(e);return t.setHours(t.getHours()+m(t)),t}function v(e){const t=new Date(e);return t.setHours(t.getHours()-m(t)),t}var g=s(51826),w=s(10480),D=s.n(w);const b=n.createContext(null);function _(e){const{initialGoToDate:t,children:s}=e,[r,i]=(0,n.useState)(t),o=r.valueOf()<=function(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}(new Date).valueOf(),a=(0,n.useMemo)(()=>({date:r,setDate:i,isValid:o}),[r,o]);return n.createElement(b.Provider,{value:a},s)}const C=n.createContext(null);function E(e){const{initialRanges:t,children:s}=e,[r,i]=(0,n.useState)(t.from),[o,a]=(0,n.useState)(t.to),l=r.valueOf()<=o.valueOf(),c=(0,n.useMemo)(()=>({dateFrom:r,dateTo:o,setDateFrom:i,setDateTo:a,isValid:l}),[r,o,l]);return n.createElement(C.Provider,{value:c},s)}var S=s(28353),N=s(97754),y=s.n(N),k=s(76422),M=s(56840),F=s.n(M),x=s(52092),B=s(24437),R=s(50182),O=s(55400);function P(e){const{children:t}=e;return n.createElement("div",{className:y()(O.row,_e&&O.mobileRow)},t)}var T=s(32563),I=s(1860),z=s(9745),V=s(12539);class A extends n.PureComponent{constructor(){super(...arguments),this._dateFormatter=new I.DateFormatter,this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){const e=N(V.day,{[V.selected]:this.props.isSelected,[V.disabled]:this.props.isDisabled,[V.withinSelectedRange]:this._withinSelectedRange(),[V.isOnHighlightedEdge]:this._isOnHighlightedEdge(),[V.currentDay]:this._isCurrentDay()});return n.createElement("span",{className:e,onClick:this._onClick,"data-day":this._dateFormatter.formatLocal(this.props.day)},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:s}=this.props;return!(!t||!s)&&(u(e,t)||u(e,s))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:s}=this.props;return!(!t||!s)&&this._isBetweenByDay(t,e,s)} -_isCurrentDay(){return u(new Date,this.props.day)}_isBetweenByDay(e,t,s){const n=l(e),r=l(t),i=l(s);return nL.map(e=>n.createElement("span",{key:e},e))}render(){return n.createElement("div",{className:V.month},n.createElement("div",{className:V.weekdays},this._renderWeekdays()),n.createElement("div",{className:V.weeks},this._renderWeeks()))}_renderWeeks(){const e=[];let t=c(h(this.props.viewDate),!0);for(let s=0;s<6;s++)e.push(this._renderWeek(t)),t=new Date(d(t));return e}_renderWeek(e){const t=[];for(let i=0;i<7;i++){const o=new Date(e);o.setDate(o.getDate()+i),(s=o,r=this.props.viewDate,Number(h(s))===Number(h(r)))&&t.push(n.createElement(A,{key:i,day:o,isDisabled:this._isDayDisabled(o),isSelected:u(o,this.props.selectedDate),onClick:this.props.onClickDay,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}var s,r;if(0===t.length)return null;const i=function(e){const t=new Date(e.getFullYear(),0,1),s=(Number(e)-Number(t))/864e5;return Math.ceil((s+t.getDay()+1)/7)}(e);return n.createElement("div",{className:V.week,key:i},t)}_isDayDisabled(e){if(!p(e,this.props.minDate,this.props.maxDate))return!0;const t=[6,0].includes(e.getDay());return!!this.props.disableWeekends&&t}}var W=s(30360);const U=[(0,S.t)("January"),(0,S.t)("February"),(0,S.t)("March"),(0,S.t)("April"),(0,S.t)("May"),(0,S.t)("June"),(0,S.t)("July"),(0,S.t)("August"),(0,S.t)("September"),(0,S.t)("October"),(0,S.t)("November"),(0,S.t)("December")];class K extends n.PureComponent{constructor(e){super(e),this._prevMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()-1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._nextMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()+1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._onClickDay=e=>{this.setState({viewDate:new Date(e)}),this.props.onSelect&&this.props.onSelect(new Date(e))},this.state={viewDate:e.selectedDate}}render(){return n.createElement("div",{className:N(V.calendar,this.props.popupStyle&&V.popupStyle,this.props.className),tabIndex:-1},n.createElement("div",{className:V.header},n.createElement(z.Icon,{icon:W,onClick:this._prevMonth,className:N(V.switchBtn,V.prev)}),n.createElement("div",{className:V.title},`${U[this.state.viewDate.getMonth()]} ${this.state.viewDate.getFullYear()}`),n.createElement(z.Icon,{icon:W,onClick:this._nextMonth,className:N(V.switchBtn,V.next)})),n.createElement(H,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,minDate:this.props.minDate,onClickDay:this._onClickDay,disableWeekends:this.props.disableWeekends, -highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}}K.defaultProps={popupStyle:!0};var G=s(86623),Y=s(84275),Z=s(78274),$=s(76594),Q=s(65718),X=s(554);class j extends n.PureComponent{constructor(e){super(e),this._input=null,this._inputContainer=null,this._handleFocus=()=>{this.props.showOnFocus&&this.props.onShowPicker()},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._handleContainerRef=e=>{this._inputContainer=e},this._onShowPicker=e=>{if(e&&this._inputContainer){const t=e.getBoundingClientRect(),s=this._inputContainer.getBoundingClientRect();t.width&&t.width>window.innerWidth-s.left?(e.style.right="0",e.style.left="auto"):(e.style.right="auto",e.style.left=s.left+"px");const n=window.innerHeight-s.bottom,r=s.top;if(n>=t.height)return void(e.style.top=s.bottom+"px");e.style.top="auto",e.style.bottom=r{const e=(0,i.ensureNotNull)(this._input).value;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.onHidePicker()},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=(0,i.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this.state={value:e.value}}UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){const{position:e="fixed",className:t,size:s,disabled:r,readonly:i,errors:o,icon:a,InputComponent:l=G.FormInput}=this.props;return n.createElement("div",{className:X.pickerInput,ref:this._handleContainerRef},n.createElement(l,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:t,size:s,disabled:r,errors:o,messagesPosition:Y.MessagesPosition.Attached,hasErrors:this.props.showErrorMessages&&o&&o.length>0,name:this.props.name,readonly:i,endSlot:o&&o.length?void 0:n.createElement(Z.EndSlot,null,n.createElement(z.Icon,{icon:a,className:N(X.icon,r&&X.disabled),onClick:r||i?void 0:this.props.onShowPicker})),"data-name":this.props.name}),this.props.showPicker&&!i?n.createElement(Q.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},n.createElement($.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},t=>n.createElement("span",{ref:t,style:{pointerEvents:"auto"}},n.createElement("div",{className:N(X.picker,X[e]),key:"0",ref:this._onShowPicker},this.props.children)))):null)}}j.defaultProps={showOnFocus:!0};class q extends n.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=n.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{ -this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.state.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,disabled:t,errors:s,InputComponent:r=G.FormInput}=this.props,i=!this.props.readonly&&!t,o=this.props.showErrorMessages&&s&&s.length>0;return n.createElement("div",{className:X.pickerInput},n.createElement(r,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,endSlot:s&&s.length?void 0:n.createElement(Z.EndSlot,null,n.createElement(z.Icon,{icon:this.props.icon,className:N(X.icon,t&&X.disabled)})),className:e,inputClassName:X.textInput,size:this.props.size,disabled:t,hasErrors:o,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:Y.MessagesPosition.Attached,name:i?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!o&&this.state.isFocused?"primary":void 0}),i&&n.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:X.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var J=s(67029),ee=s(71767);class te extends n.PureComponent{constructor(e){super(e),this._pickerInputContainerRef=n.createRef(),this._dateFormatter=new I.DateFormatter,this._fixValue=e=>(e=(e=e.substring(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),this._isValid=e=>{if(/^[0-9]{4}(-[0-9]{2}){2}/.test(e)){const t=new Date(e.concat("T00:00"));return!function(e){return Number.isNaN(Number(e))}(t)&&(!!this.props.noRangeValidation||p(t,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{var t;if(!this.props.revertInvalidData||(null===(t=this._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget)))return;const{value:s}=e.target;if(!this._isValid(s)){const t=new Date(this.state.date);this.setState({pickerInputKey:e.timeStamp,date:t,isInvalid:!1}),this.props.onPick(t)}},this._onType=e=>{const t=this._isValid(e)?new Date(e.concat("T00:00")):null;t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState({date:e,showCalendar:!1,isInvalid:!1}),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push((0,S.t)("Please enter the right date format yyyy-mm-dd")),e},this.state={pickerInputKey:0,date:e.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(e.initial))}}render(){return T.mobiletouch?n.createElement(q,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:ee,disabled:this.props.disabled, -size:this.props.size,min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:N(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):n.createElement("div",{ref:this._pickerInputContainerRef},n.createElement(j,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:ee,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:N(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent},n.createElement(K,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect})))}UNSAFE_componentWillReceiveProps(e){this.props.initial!==e.initial&&this.setState({date:e.initial})}_getFontSizeClassName(e){return e?"large"===e?J.InputClasses.FontSizeLarge:J.InputClasses.FontSizeMedium:void 0}}te.defaultProps={position:"fixed",withCalendar:!0};var se=s(93632);function ne(e){const{className:t,text:s}=e;return n.createElement("span",{className:y()(se.tooltip,t)},s)}var re=s(56712);const ie=s(34020);function oe(e){const{hasErrors:t,onClick:s,errors:r,className:i,theme:o=ie,...a}=e;return n.createElement("div",{className:o.container,onClick:s},n.createElement(G.FormInput,{...a,className:o.date,hasErrors:t,errors:[],endSlot:!t&&n.createElement(Z.EndSlot,{icon:!0,interactive:!1},n.createElement(z.Icon,{icon:re,className:o.icon}))}),t&&n.createElement(ne,{text:(0,S.t)("Please enter the right date"),className:o.tooltip}))}const ae=n.createContext({isActive:!1,isFocused:!1});function le(e){const{value:t,reference:s,isActive:r,onPick:i,onFocus:o}=e,[a,l]=(0,n.useState)(!1);return n.createElement(ae.Provider,{value:{isActive:r,isFocused:a}},n.createElement("div",{onFocus:function(){l(!0),o&&o()},onBlur:function(){l(!1)}},n.createElement(te,{initial:t,inputReference:s,InputComponent:ce,withCalendar:!1,onPick:function(e){if(!e)return;i(new Date(e))},revertInvalidData:!0,name:e.name})))}function ce(e){const{isActive:t,isFocused:s}=(0,n.useContext)(ae);return n.createElement(oe,{...e,highlight:t||s})}var he=s(36565);function ue(e){const{value:t,isDisabled:s,onPick:r}=e;return n.createElement(he.TimeInput,{value:(i=t,a(i.getHours())+":"+a(i.getMinutes())),onChange:r,disabled:s});var i}var de=s(45228);function pe(e){return n.createElement(K,{...e,className:de.calendar, -popupStyle:!1})}function me(e,t){const s=new Date(t);return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(e.getDate()),s}function fe(e,t){const s=new Date(t);return s.setHours(e.getHours()),s.setMinutes(e.getMinutes()),s}function ve(e){const{dateOnly:t,onCalendarMonthSwitch:s}=e,{date:r,setDate:o}=(0,i.ensureNotNull)((0,n.useContext)(b)),a=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useEffect)(()=>{_e||null===l.current||l.current.focus()},[]),n.createElement("div",{ref:a,tabIndex:-1},n.createElement(P,null,n.createElement(le,{reference:function(e){l.current=e},value:new Date(r),onPick:function(e){const t=me(e,r);o(t)},isActive:!_e}),n.createElement(ue,{value:new Date(r),isDisabled:t,onPick:function(e){var t;const[s,n]=e.split(":"),i=new Date;i.setHours(Number(s)),i.setMinutes(Number(n));const l=fe(i,r);o(l),_e||null===(t=a.current)||void 0===t||t.focus({preventScroll:!0})}})),!_e&&n.createElement(pe,{key:`${r.getFullYear()}-${r.getMonth()}-${r.getDate()}`,selectedDate:new Date(r),onSelect:function(e){var t;const s=me(e,r);o(s),null===(t=a.current)||void 0===t||t.focus({preventScroll:!0})},onMonthSwitch:s,maxDate:new Date}))}function ge(e){const{dateOnly:t,onCalendarMonthSwitch:s,onDateInputFocus:r}=e,{dateFrom:o,dateTo:a,setDateFrom:l,setDateTo:c}=(0,i.ensureNotNull)((0,n.useContext)(C)),[h,u]=(0,n.useState)("from"),d=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(null),f=(0,n.useMemo)(()=>"from"===h?new Date(o):new Date(a),[h,a,o]);return(0,n.useEffect)(()=>{_e||null===p.current||p.current.focus()},[]),n.createElement("div",{ref:d,tabIndex:-1},n.createElement(P,null,n.createElement(le,{value:o,reference:function(e){p.current=e},isActive:!_e&&"from"===h,onPick:function(e){const t=me(e,o);l(t)},onFocus:function(){u("from"),r()},name:"start-date-range"}),n.createElement(ue,{value:o,isDisabled:t,onPick:function(e){v(e,o,l)}})),n.createElement(P,null,n.createElement(le,{value:a,reference:function(e){m.current=e},isActive:!_e&&"to"===h,onPick:function(e){const t=me(e,a);c(t)},onFocus:function(){u("to"),r()},name:"end-date-range"}),n.createElement(ue,{value:a,isDisabled:t,onPick:function(e){v(e,a,c)}})),!_e&&n.createElement(pe,{key:`${f.getFullYear()}-${f.getMonth()}-${f.getDate()}`,selectedDate:new Date(f),onSelect:function(e){const t=me(e,"from"===h?o:a);({from:()=>{var e;l(t),null===(e=m.current)||void 0===e||e.focus({preventScroll:!0})},to:()=>{var e;c(t),null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})}})[h]()},onMonthSwitch:s,highlightedFrom:new Date(o),highlightedTo:new Date(a),maxDate:"from"===h?new Date(a):void 0,minDate:"to"===h?new Date(o):void 0}));function v(e,t,s){var n;const[r,i]=e.split(":"),o=new Date;o.setHours(Number(r)),o.setMinutes(Number(i));s(fe(o,t)),_e||null===(n=d.current)||void 0===n||n.focus({preventScroll:!0})}}var we=s(31807),De=s(90692),be=s(26074);const _e=T.mobiletouch,Ce=()=>!0,Ee={byId:{Date:{title:(0,S.t)("Date")},CustomRange:{title:(0,S.t)("Custom range")}},allIds:["Date","CustomRange"]};function Se(e){ -const{dateOnly:t,onClose:s,onGoToDate:r,onGoToRange:o}=e,a=(0,n.useRef)(null),[l,c]=(0,n.useState)(F().getValue("GoToDialog.activeTab","Date")),[h,u]=(0,n.useState)(0),{date:d,isValid:p}=(0,i.ensureNotNull)((0,n.useContext)(b)),{dateFrom:m,dateTo:f,isValid:v}=(0,i.ensureNotNull)((0,n.useContext)(C));return(0,n.useEffect)(()=>(k.subscribe(x.CLOSE_POPUPS_AND_DIALOGS_COMMAND,_,null),()=>{k.unsubscribe(x.CLOSE_POPUPS_AND_DIALOGS_COMMAND,_,null)}),[s]),(0,n.useEffect)(()=>{null!==a.current&&a.current()},[h,l,d,m,f]),n.createElement(De.MatchMedia,{rule:B.DialogBreakpoints.TabletSmall},e=>n.createElement(R.AdaptiveConfirmDialog,{className:y()(be.dialogWrapper,e&&be.dialogWrapperSmall),title:(0,S.t)("Go to"),dataName:"go-to-date-dialog",render:g,defaultActionOnClose:"cancel",onClose:_,onClickOutside:_,onCancel:_,onSubmit:D,submitButtonDisabled:w(),submitButtonText:(0,S.t)("Go to"),forceCloseOnEsc:Ce,shouldForceFocus:!1,fullScreen:e,isOpened:!0}));function g({requestResize:e}){return a.current=e,n.createElement(n.Fragment,null,n.createElement("div",{className:be.tabs},n.createElement(we.DialogTabs,{activeTabId:l,tabs:Ee,onSelect:E})),n.createElement("div",{className:y()(be.content,_e&&be.contentMobile)},n.createElement("div",{className:be.bodyWrapper},n.createElement(Ne,{onCalendarMonthSwitch:N,onDateInputFocus:N,activeTab:l,dateOnly:t}))))}function w(){return{CustomRange:!v,Date:!p}[l]}function D(){switch(l){case"Date":r(d);break;case"CustomRange":o(m,f)}}function _(){s()}function E(e){c(e),F().setValue("GoToDialog.activeTab",e)}function N(){u(h+1)}}function Ne(e){const{activeTab:t,dateOnly:s,onCalendarMonthSwitch:r,onDateInputFocus:i}=e;switch(t){case"Date":return n.createElement(ve,{dateOnly:s,onCalendarMonthSwitch:r});case"CustomRange":return n.createElement(ge,{dateOnly:s,onCalendarMonthSwitch:r,onDateInputFocus:i})}}function ye(e){const{dateOnly:t,onClose:s,onGoToDate:r,onGoToRange:i,initialGoToDate:o,initialRanges:a}=e;return n.createElement(_,{initialGoToDate:o},n.createElement(E,{initialRanges:a},n.createElement(Se,{dateOnly:t,onClose:s,onGoToDate:r,onGoToRange:i})))}var ke=s(9315),Me=s(71053);const Fe=new class{constructor(){this._hasError=!1}getItemOrDefault(e,t){return!sessionStorage||this._hasError?t:sessionStorage.getItem(e)}setItem(e,t="true"){try{sessionStorage.setItem(e,t),this._hasError=!1}catch(e){this._hasError=!0}}};var xe=s(27365);const Be=new g.DialogsOpenerManager;function Re(e){if(Be.isOpened("goTo"))return;if(!e.hasModel())return;const t=e.model(),s=document.createElement("div"),i=n.createElement(ye,{onClose:a,dateOnly:t.model().mainSeries().isDWM(),initialGoToDate:Oe(),initialRanges:Pe(e),onGoToDate:e=>{!function(e,t){Fe.setItem("goToDateTabLastPickedDate",String(t.valueOf()));if(void 0===e.model().timeScale().tickMarks().minIndex)return;const s=v(t).valueOf();e.model().gotoTime(s).then(t=>{const s=e.model().mainSeries();void 0===t?s.clearGotoDateResult():s.setGotoDateResult(t)})}(t,e),a()},onGoToRange:(t,s)=>{!function(e,t,s){const n=(0,xe.getTimezoneName)(e.model());if(!n)return -;const r=o.linking.interval.value(),i=r&&(0,ke.normalizeIntervalString)(r),a=D().get_timezone(n),l=e=>(0,w.cal_to_utc)(a,new Date(e)),c=v(t).valueOf(),h=v(s).valueOf(),u={val:{type:"time-range",from:l(c)/1e3,to:l(h)/1e3},res:i};e.chartWidgetCollection().setTimeFrame(u)}(e,t,s),a()}});function a(){r.unmountComponentAtNode(s),Be.setAsClosed("goTo")}r.render(i,s),Be.setAsOpened("goTo")}function Oe(){const e=Fe.getItemOrDefault("goToDateTabLastPickedDate",null);return null===e?l(new Date):new Date(Number(e))}function Pe(e){const t=function(e){const t=e.model().timeScale(),s=t.visibleBarsStrictRange();if(null===s)return;const n=e.model().mainSeries(),r=n.nearestIndex(s.firstBar(),Me.PlotRowSearchMode.NearestRight),o=n.nearestIndex(s.lastBar(),Me.PlotRowSearchMode.NearestLeft);if(void 0===r||void 0===o)return;return{from:(0,i.ensureNotNull)(t.indexToUserTime(r)),to:(0,i.ensureNotNull)(t.indexToUserTime(o))}}(e);return t?{from:f(t.from),to:f(t.to)}:{from:f(new Date),to:f(new Date)}}},39640:(e,t,s)=>{"use strict";function n(e,t,s,n,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==s&&null!==t&&null!==i&&i.ownerDocument===n&&(t.contains(i)||s(r))}return r.click&&n.addEventListener("click",i,!1),r.mouseDown&&n.addEventListener("mousedown",i,!1),r.touchEnd&&n.addEventListener("touchend",i,!1),r.touchStart&&n.addEventListener("touchstart",i,!1),()=>{n.removeEventListener("click",i,!1),n.removeEventListener("mousedown",i,!1),n.removeEventListener("touchend",i,!1),n.removeEventListener("touchstart",i,!1)}}s.d(t,{addOutsideEventListener:()=>n})},24437:(e,t,s)=>{"use strict";s.d(t,{DialogBreakpoints:()=>r});var n=s(96746);const r={SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},85457:(e,t,s)=>{"use strict";s.d(t,{AdaptivePopupDialog:()=>S});var n=s(59496),r=s(88537);var i=s(97754),o=s.n(i),a=s(68335),l=s(35749),c=s(63016),h=s(1109),u=s(24437),d=s(90692),p=s(95711),m=s(52092),f=s(76422),v=s(9745);const g=n.createContext({setHideClose:()=>{}});var w=s(37257),D=s(91441);function b(e){const{title:t,subtitle:s,showCloseIcon:r=!0,onClose:i,renderBefore:a,renderAfter:l,draggable:c,className:h,unsetAlign:u}=e,[d,p]=(0,n.useState)(!1);return n.createElement(g.Provider,{value:{setHideClose:p}},n.createElement("div",{className:o()(D.container,h,(s||u)&&D.unsetAlign)},a,n.createElement("div",{"data-dragg-area":c,className:D.title},n.createElement("div",{className:D.ellipsis},t),s&&n.createElement("div",{className:o()(D.ellipsis,D.subtitle)},s)),l,r&&!d&&n.createElement(v.Icon,{className:D.close,icon:w,onClick:i,"data-name":"close","data-role":"button"})))}var _=s(67179);const C={vertical:20},E={vertical:0};class S extends n.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e, -this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(u.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),(0,a.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:s}=document,n=(0,r.ensureNotNull)(this._reference);if(null!==s){if(e.preventDefault(),"true"===(t=s).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,l.isTextEditingField)(s))return void n.focus();if(n.contains(s))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){var e,t;f.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t))}componentWillUnmount(){var e,t;f.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(e=this._orientationMediaQuery,t=this._handleOpen,(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t))}focus(){(0,r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,s;return null!==(s=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==s&&s}render(){const{className:e,wrapperClassName:t,headerClassName:s,isOpened:r,title:i,dataName:a,onClickOutside:l,additionalElementPos:m,additionalHeaderElement:f,backdrop:v,shouldForceFocus:g=!0,showSeparator:w,subtitle:D,draggable:S=!0,fullScreen:N=!1,showCloseIcon:y=!0,rounded:k=!0,isAnimationEnabled:M,growPoint:F,dialogTooltip:x,unsetHeaderAlign:B,onDragStart:R,dataDialogName:O}=this.props,P="after"!==m?f:void 0,T="after"===m?f:void 0,I="string"==typeof i?i:O||"";return n.createElement(d.MatchMedia,{rule:u.DialogBreakpoints.SmallHeight},m=>n.createElement(d.MatchMedia,{rule:u.DialogBreakpoints.TabletSmall},u=>n.createElement(c.PopupDialog,{rounded:!(u||N)&&k,className:o()(_.dialog,e),isOpened:r,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:u||N,guard:m?E:C,boundByScreen:u||N,shouldForceFocus:g,backdrop:v,draggable:S,isAnimationEnabled:M,growPoint:F,name:this.props.dataName,dialogTooltip:x,onDragStart:R},n.createElement("div",{className:o()(_.wrapper,t),"data-name":a,"data-dialog-name":I},void 0!==i&&n.createElement(b,{draggable:S&&!(u||N),onClose:this._handleClose,renderAfter:T,renderBefore:P,subtitle:D,title:i,showCloseIcon:y,className:s,unsetAlign:B -}),w&&n.createElement(h.Separator,{className:_.separator}),n.createElement(p.PopupContext.Consumer,null,e=>this._renderChildren(e,u||N))))))}}},51826:(e,t,s)=>{"use strict";s.d(t,{DialogsOpenerManager:()=>n,dialogsOpenerManager:()=>r});class n{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const r=new n},31807:(e,t,s)=>{"use strict";s.d(t,{DialogTabs:()=>m});var n=s(59496),r=s(97754),i=s(64205),o=s(40173),a=s(64886);const l=(0,o.mergeThemes)(i.DEFAULT_SLIDER_THEME,a);var c=s(39440),h=s(32563),u=s(42545);const d=u,p=(0,i.factory)((function(e){return n.createElement("div",{className:l.slider,ref:e.reference},n.createElement("div",{className:l.inner}))}));class m extends n.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=d,hiddenBottomBorders:t,fadedSlider:s=!0,ScrollComponent:i=c.HorizontalScroll}=this.props,o=this._generateDialogTabs();return n.createElement("div",{className:r(e.scrollWrap)},!t&&n.createElement("div",{className:e.headerBottomSeparator}),n.createElement(i,{isVisibleFade:h.mobiletouch,isVisibleButtons:!h.mobiletouch,isVisibleScrollbar:!1,fadeClassName:r({[e.fadeWithoutSlider]:!s})},n.createElement("div",{className:e.tabsWrap},n.createElement(p,{className:r(e.tabs,t&&e.withoutBorder)},o))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:s=d}=this.props;return t.allIds.map(o=>{const a=e===o,l=t.byId[o].withNotificationsBadge;return n.createElement(i.SliderItem,{key:o,value:o,className:r(s.tab,!a&&s.withHover,l&&u.withBadge),isActive:a,onClick:this._createClickHandler(o)},t.byId[o].title)})}}},39440:(e,t,s)=>{"use strict";s.d(t,{HorizontalScroll:()=>D});var n=s(59496),r=s(97754),i=s(9837),o=s(88537),a=s(9745),l=s(59199),c=s(68587),h=s(62820),u=s(33086),d=s(41814);const p={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function m(e){return n.createElement("div",{className:r(d.fadeLeft,e.className,{[d.isVisible]:e.isVisible})})}function f(e){return n.createElement("div",{className:r(d.fadeRight,e.className,{[d.isVisible]:e.isVisible})})}function v(e){return n.createElement(w,{...e,className:d.scrollLeft})}function g(e){return n.createElement(w,{...e,className:d.scrollRight})}function w(e){return n.createElement("div",{className:r(e.className,{[d.isVisible]:e.isVisible}),onClick:e.onClick},n.createElement("div",{className:d.iconWrap},n.createElement(a.Icon,{icon:u,className:d.icon})))}const D=function(e=v,t=g,s=m,a=f){var u;return(u=class extends n.PureComponent{constructor(e){super(e),this._scroll=n.createRef(),this._wrapMeasureRef=n.createRef(),this._contentMeasureRef=n.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{ -if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:s}=this.props;t&&s?this.setState({widthContent:e.width+2*s}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,s=this.isAtLeft(),n=this.isAtRight();s||e?s&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),n||t?n&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,h.isRtl)()?(0,h.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,o.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,o.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const s=this._scroll.current;s&&((0,h.isRtl)()&&(e=(0,h.getLTRScrollLeftOffset)(s,e)),t<=0?s.scrollLeft=Math.round(e):(0,l.doAnimate)({onStep(e,t){s.scrollLeft=Math.round(t)},from:s.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:o,isVisibleScrollbar:l,isVisibleFade:c,isVisibleButtons:h,shouldMeasure:u,shouldDecreaseWidthContent:p,buttonsWidthIfDecreasedWidthContent:m,onMouseOver:f,onMouseOut:v,scrollWrapClassName:g,fadeClassName:w}=this.props,{isVisibleRightButton:D,isVisibleLeftButton:b}=this.state,_=p&&m;return n.createElement(i,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:u,ref:this._wrapMeasureRef},n.createElement("div",{className:d.wrapOverflow,onMouseOver:f,onMouseOut:v},n.createElement("div",{className:r(d.wrap,_?d.wrapWithArrowsOuting:"")},n.createElement("div",{className:r(d.scrollWrap,g,{[d.noScrollBar]:!l}),onScroll:this._handleScroll,ref:this._scroll},n.createElement(i,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:u,ref:this._contentMeasureRef -},o)),c&&n.createElement(s,{isVisible:b,className:w}),c&&n.createElement(a,{isVisible:D,className:w}),h&&n.createElement(e,{onClick:this._handleScrollLeft,isVisible:b}),h&&n.createElement(t,{onClick:this._handleScrollRight,isVisible:D}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=p,u}(v,g,m,f)},1109:(e,t,s)=>{"use strict";s.d(t,{Separator:()=>o});var n=s(59496),r=s(97754),i=s(91626);function o(e){return n.createElement("div",{className:r(i.separator,e.className)})}},64205:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_SLIDER_THEME:()=>a,SliderItem:()=>l,factory:()=>c});var n=s(59496),r=s(97754),i=s(88537),o=s(37740);const a=o;function l(e){const t=r(e.className,o.tab,{[o.active]:e.isActive,[o.disabled]:e.isDisabled,[o.defaultCursor]:!!e.shouldUseDefaultCursor,[o.noBorder]:!!e.noBorder});return n.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends n.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,i.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return n.createElement("div",{className:r(t,o.tabs),"data-name":this.props["data-name"]},s,n.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,n.Children.map(this.props.children,e=>{const t=e,s=Boolean(t.props.isActive),r={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return n.cloneElement(t,r)})}_componentDidUpdate(){const e=(0,i.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return n.createElement("div",{className:o.slider,ref:e.reference})}))},40173:(e,t,s)=>{"use strict";function n(e,t,s={}){const n=Object.assign({},t);for(const r of Object.keys(t)){const i=s[r]||r;i in e&&(n[r]=[e[i],t[r]].join(" "))}return n}function r(e,t,s={}){return Object.assign({},e,n(e,t,s))}s.d(t,{weakComposeClasses:()=>n,mergeThemes:()=>r})},33086:e=>{e.exports=''},30360:e=>{e.exports=''},56712:e=>{ -e.exports=''},71767:e=>{e.exports=''},37257:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/go-to-date-dialog-impl.9a15fd8109d81fcece3b.js b/charting_library/bundles/go-to-date-dialog-impl.9a15fd8109d81fcece3b.js new file mode 100644 index 00000000..0cd0708f --- /dev/null +++ b/charting_library/bundles/go-to-date-dialog-impl.9a15fd8109d81fcece3b.js @@ -0,0 +1,16 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1859],{45228:e=>{e.exports={calendar:"calendar-wVs9kh0I"}},55400:e=>{e.exports={row:"row-9XF0QIKT",mobileRow:"mobileRow-9XF0QIKT"}},26074:e=>{e.exports={dialogWrapper:"dialogWrapper-70bfoXiO",dialogWrapperSmall:"dialogWrapperSmall-70bfoXiO",tabs:"tabs-70bfoXiO",content:"content-70bfoXiO",contentMobile:"contentMobile-70bfoXiO",bodyWrapper:"bodyWrapper-70bfoXiO"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},34020:e=>{e.exports={container:"container-tZN1pb1A",icon:"icon-tZN1pb1A",tooltip:"tooltip-tZN1pb1A",date:"date-tZN1pb1A",time:"time-tZN1pb1A"}},93632:e=>{e.exports={tooltip:"tooltip-QKiUU4Ng"}},64886:e=>{e.exports={slider:"slider-Q7h4o6oW",inner:"inner-Q7h4o6oW"}},42545:e=>{e.exports={scrollWrap:"scrollWrap-VabV7Fn8",tabsWrap:"tabsWrap-VabV7Fn8",tabs:"tabs-VabV7Fn8",withoutBorder:"withoutBorder-VabV7Fn8",tab:"tab-VabV7Fn8",withHover:"withHover-VabV7Fn8",headerBottomSeparator:"headerBottomSeparator-VabV7Fn8",fadeWithoutSlider:"fadeWithoutSlider-VabV7Fn8",withBadge:"withBadge-VabV7Fn8"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},88722:e=>{e.exports={wrap:"wrap-TyQYOCnx",input:"input-TyQYOCnx"}},24451:e=>{e.exports={icon:"icon-P882WPW5"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},9837:function(e,t,n){var r,o,i;e.exports=(r=n(59496),o=n(87995),i=n(59255),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=l.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,u.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:s.default.array,blacklist:s.default.array,includeMargin:s.default.bool,useClone:s.default.bool,cloneOptions:s.default.object,shouldMeasure:s.default.bool,onMeasure:s.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){ +"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){h&&d&&(h=!1,d.length?p=d.concat(p):m=-1,p.length&&a())}function a(){if(!h){var e=o(i);h=!0;for(var t=p.length;t;){for(d=p,p=[];++m1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,a=void 0;return t.margin&&(a=(0,r.default)(getComputedStyle(e))),t.margin?(o=a.left+n.width+a.right,i=a.top+n.height+a.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))},50773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showGoToDateDialog:()=>le});var r=n(59496),o=n(87995),i=n(88537),a=n(82992),s=n(23935),l=n(51826),c=n(10480),u=n.n(c);const f=r.createContext(null);function d(e){const{initialGoToDate:t,children:n}=e,[o,i]=(0,r.useState)(t),a=o.valueOf()<=(0,s.resetToDayEnd)(new Date).valueOf(),l=(0,r.useMemo)(()=>({date:o,setDate:i,isValid:a}),[o,a]);return r.createElement(f.Provider,{value:l},n)}const p=r.createContext(null);function h(e){const{initialRanges:t,children:n}=e,[o,i]=(0,r.useState)(t.from),[a,s]=(0,r.useState)(t.to),l=o.valueOf()<=a.valueOf(),c=(0,r.useMemo)(()=>({dateFrom:o,dateTo:a,setDateFrom:i,setDateTo:s,isValid:l}),[o,a,l]);return r.createElement(p.Provider,{value:c},n)}var m=n(28353),v=n(97754),b=n.n(v),g=n(76422),y=n(56840),w=n.n(y),E=n(52092),S=n(24437),O=n(50182),T=n(55400);function N(e){const{children:t}=e;return r.createElement("div",{className:b()(T.row,Q&&T.mobileRow)},t)}var D=n(27404),C=n(9745),_=n(78274),M=n(86623),k=n(93632);function x(e){const{className:t,text:n}=e;return r.createElement("span",{className:b()(k.tooltip,t)},n)}var R=n(56712);const P=n(34020);function F(e){const{hasErrors:t,onClick:n,errors:o,className:i,theme:a=P,...s}=e;return r.createElement("div",{className:a.container,onClick:n},r.createElement(M.FormInput,{...s,className:a.date,hasErrors:t,errors:[],endSlot:!t&&r.createElement(_.EndSlot,{icon:!0,interactive:!1},r.createElement(C.Icon,{icon:R,className:a.icon}))}),t&&r.createElement(x,{text:(0,m.t)("Please enter the right date"),className:a.tooltip}))}const I=r.createContext({isActive:!1,isFocused:!1});function V(e){const{value:t,reference:n,isActive:o,onPick:i,onFocus:a}=e,[s,l]=(0,r.useState)(!1);return r.createElement(I.Provider,{value:{isActive:o,isFocused:s}},r.createElement("div",{onFocus:function(){l(!0),a&&a()},onBlur:function(){l(!1)}},r.createElement(D.DatePicker,{initial:t,inputReference:n,InputComponent:A,withCalendar:!1,onPick:function(e){if(!e)return;i(new Date(e))},revertInvalidData:!0,name:e.name})))}function A(e){ +const{isActive:t,isFocused:n}=(0,r.useContext)(I);return r.createElement(F,{...e,highlight:t||n})}var B=n(36565);function L(e){const{value:t,isDisabled:n,onPick:o}=e;return r.createElement(B.TimeInput,{value:(i=t,(0,s.twoDigitsFormat)(i.getHours())+":"+(0,s.twoDigitsFormat)(i.getMinutes())),onChange:o,disabled:n});var i}var W=n(48154),j=n(45228);function H(e){return r.createElement(W.Calendar,{...e,className:j.calendar,popupStyle:!1})}function z(e,t){const n=new Date(t);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),n}function G(e,t){const n=new Date(t);return n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n}function U(e){const{dateOnly:t,onCalendarMonthSwitch:n}=e,{date:o,setDate:a}=(0,i.ensureNotNull)((0,r.useContext)(f)),s=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{Q||null===l.current||l.current.focus()},[]),r.createElement("div",{ref:s,tabIndex:-1},r.createElement(N,null,r.createElement(V,{reference:function(e){l.current=e},value:new Date(o),onPick:function(e){const t=z(e,o);a(t)},isActive:!Q}),r.createElement(L,{value:new Date(o),isDisabled:t,onPick:function(e){var t;const[n,r]=e.split(":"),i=new Date;i.setHours(Number(n)),i.setMinutes(Number(r));const l=G(i,o);a(l),Q||null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})}})),!Q&&r.createElement(H,{key:`${o.getFullYear()}-${o.getMonth()}-${o.getDate()}`,selectedDate:new Date(o),onSelect:function(e){var t;const n=z(e,o);a(n),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})},onMonthSwitch:n,maxDate:new Date}))}function Y(e){const{dateOnly:t,onCalendarMonthSwitch:n,onDateInputFocus:o}=e,{dateFrom:a,dateTo:s,setDateFrom:l,setDateTo:c}=(0,i.ensureNotNull)((0,r.useContext)(p)),[u,f]=(0,r.useState)("from"),d=(0,r.useRef)(null),h=(0,r.useRef)(null),m=(0,r.useRef)(null),v=(0,r.useMemo)(()=>"from"===u?new Date(a):new Date(s),[u,s,a]);return(0,r.useEffect)(()=>{Q||null===h.current||h.current.focus()},[]),r.createElement("div",{ref:d,tabIndex:-1},r.createElement(N,null,r.createElement(V,{value:a,reference:function(e){h.current=e},isActive:!Q&&"from"===u,onPick:function(e){const t=z(e,a);l(t)},onFocus:function(){f("from"),o()},name:"start-date-range"}),r.createElement(L,{value:a,isDisabled:t,onPick:function(e){b(e,a,l)}})),r.createElement(N,null,r.createElement(V,{value:s,reference:function(e){m.current=e},isActive:!Q&&"to"===u,onPick:function(e){const t=z(e,s);c(t)},onFocus:function(){f("to"),o()},name:"end-date-range"}),r.createElement(L,{value:s,isDisabled:t,onPick:function(e){b(e,s,c)}})),!Q&&r.createElement(H,{key:`${v.getFullYear()}-${v.getMonth()}-${v.getDate()}`,selectedDate:new Date(v),onSelect:function(e){const t=z(e,"from"===u?a:s);({from:()=>{var e;l(t),null===(e=m.current)||void 0===e||e.focus({preventScroll:!0})},to:()=>{var e;c(t),null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})}})[u]()},onMonthSwitch:n,highlightedFrom:new Date(a),highlightedTo:new Date(s),maxDate:"from"===u?new Date(s):void 0,minDate:"to"===u?new Date(a):void 0}));function b(e,t,n){var r +;const[o,i]=e.split(":"),a=new Date;a.setHours(Number(o)),a.setMinutes(Number(i));n(G(a,t)),Q||null===(r=d.current)||void 0===r||r.focus({preventScroll:!0})}}var $=n(31807),K=n(90692),q=n(32563),X=n(26074);const Q=q.mobiletouch,Z=()=>!0,J={byId:{Date:{title:(0,m.t)("Date")},CustomRange:{title:(0,m.t)("Custom range")}},allIds:["Date","CustomRange"]};function ee(e){const{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:a}=e,s=(0,r.useRef)(null),[l,c]=(0,r.useState)(w().getValue("GoToDialog.activeTab","Date")),[u,d]=(0,r.useState)(0),{date:h,isValid:v}=(0,i.ensureNotNull)((0,r.useContext)(f)),{dateFrom:y,dateTo:T,isValid:N}=(0,i.ensureNotNull)((0,r.useContext)(p));return(0,r.useEffect)(()=>(g.subscribe(E.CLOSE_POPUPS_AND_DIALOGS_COMMAND,M,null),()=>{g.unsubscribe(E.CLOSE_POPUPS_AND_DIALOGS_COMMAND,M,null)}),[n]),(0,r.useEffect)(()=>{null!==s.current&&s.current()},[u,l,h,y,T]),r.createElement(K.MatchMedia,{rule:S.DialogBreakpoints.TabletSmall},e=>r.createElement(O.AdaptiveConfirmDialog,{className:b()(X.dialogWrapper,e&&X.dialogWrapperSmall),title:(0,m.t)("Go to"),dataName:"go-to-date-dialog",render:D,defaultActionOnClose:"cancel",onClose:M,onClickOutside:M,onCancel:M,onSubmit:_,submitButtonDisabled:C(),submitButtonText:(0,m.t)("Go to"),forceCloseOnEsc:Z,shouldForceFocus:!1,fullScreen:e,isOpened:!0}));function D({requestResize:e}){return s.current=e,r.createElement(r.Fragment,null,r.createElement("div",{className:X.tabs},r.createElement($.DialogTabs,{activeTabId:l,tabs:J,onSelect:k})),r.createElement("div",{className:b()(X.content,Q&&X.contentMobile)},r.createElement("div",{className:X.bodyWrapper},r.createElement(te,{onCalendarMonthSwitch:x,onDateInputFocus:x,activeTab:l,dateOnly:t}))))}function C(){return{CustomRange:!N,Date:!v}[l]}function _(){switch(l){case"Date":o(h);break;case"CustomRange":a(y,T)}}function M(){n()}function k(e){c(e),w().setValue("GoToDialog.activeTab",e)}function x(){d(u+1)}}function te(e){const{activeTab:t,dateOnly:n,onCalendarMonthSwitch:o,onDateInputFocus:i}=e;switch(t){case"Date":return r.createElement(U,{dateOnly:n,onCalendarMonthSwitch:o});case"CustomRange":return r.createElement(Y,{dateOnly:n,onCalendarMonthSwitch:o,onDateInputFocus:i})}}function ne(e){const{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:i,initialGoToDate:a,initialRanges:s}=e;return r.createElement(d,{initialGoToDate:a},r.createElement(h,{initialRanges:s},r.createElement(ee,{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:i})))}var re=n(9315),oe=n(71053);const ie=new class{constructor(){this._hasError=!1}getItemOrDefault(e,t){return!sessionStorage||this._hasError?t:sessionStorage.getItem(e)}setItem(e,t="true"){try{sessionStorage.setItem(e,t),this._hasError=!1}catch(e){this._hasError=!0}}};var ae=n(27365);const se=new l.DialogsOpenerManager;function le(e){if(se.isOpened("goTo"))return;if(!e.hasModel())return;const t=e.model(),n=document.createElement("div"),i=r.createElement(ne,{onClose:l,dateOnly:t.model().mainSeries().isDWM(),initialGoToDate:ce(),initialRanges:ue(e),onGoToDate:e=>{!function(e,t){ +ie.setItem("goToDateTabLastPickedDate",String(t.valueOf()));if(void 0===e.model().timeScale().tickMarks().minIndex)return;const n=(0,s.addLocalTime)(t).valueOf();e.model().gotoTime(n).then(t=>{const n=e.model().mainSeries();void 0===t?n.clearGotoDateResult():n.setGotoDateResult(t)})}(t,e),l()},onGoToRange:(t,n)=>{!function(e,t,n){const r=(0,ae.getTimezoneName)(e.model());if(!r)return;const o=a.linking.interval.value(),i=o&&(0,re.normalizeIntervalString)(o),l=u().get_timezone(r),f=e=>(0,c.cal_to_utc)(l,new Date(e)),d=(0,s.addLocalTime)(t).valueOf(),p=(0,s.addLocalTime)(n).valueOf(),h={val:{type:"time-range",from:f(d)/1e3,to:f(p)/1e3},res:i};e.chartWidgetCollection().setTimeFrame(h)}(e,t,n),l()}});function l(){o.unmountComponentAtNode(n),se.setAsClosed("goTo")}o.render(i,n),se.setAsOpened("goTo")}function ce(){const e=ie.getItemOrDefault("goToDateTabLastPickedDate",null);return null===e?(0,s.resetToDayStart)(new Date):new Date(Number(e))}function ue(e){const t=function(e){const t=e.model().timeScale(),n=t.visibleBarsStrictRange();if(null===n)return;const r=e.model().mainSeries(),o=r.nearestIndex(n.firstBar(),oe.PlotRowSearchMode.NearestRight),a=r.nearestIndex(n.lastBar(),oe.PlotRowSearchMode.NearestLeft);if(void 0===o||void 0===a)return;return{from:(0,i.ensureNotNull)(t.indexToUserTime(o)),to:(0,i.ensureNotNull)(t.indexToUserTime(a))}}(e);return t?{from:(0,s.subtractLocalTime)(t.from),to:(0,s.subtractLocalTime)(t.to)}:{from:(0,s.subtractLocalTime)(new Date),to:(0,s.subtractLocalTime)(new Date)}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},27365:(e,t,n)=>{"use strict";n.d(t,{getTimezoneName:()=>r});n(10480);function r(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},31807:(e,t,n)=>{"use strict";n.d(t,{DialogTabs:()=>h});var r=n(59496),o=n(97754),i=n(64205),a=n(40173),s=n(64886);const l=(0,a.mergeThemes)(i.DEFAULT_SLIDER_THEME,s);var c=n(39440),u=n(32563),f=n(42545);const d=f,p=(0,i.factory)((function(e){return r.createElement("div",{className:l.slider,ref:e.reference},r.createElement("div",{className:l.inner}))}));class h extends r.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=d,hiddenBottomBorders:t,fadedSlider:n=!0,ScrollComponent:i=c.HorizontalScroll}=this.props,a=this._generateDialogTabs();return r.createElement("div",{className:o(e.scrollWrap)},!t&&r.createElement("div",{className:e.headerBottomSeparator}),r.createElement(i,{isVisibleFade:u.mobiletouch, +isVisibleButtons:!u.mobiletouch,isVisibleScrollbar:!1,fadeClassName:o({[e.fadeWithoutSlider]:!n})},r.createElement("div",{className:e.tabsWrap},r.createElement(p,{className:o(e.tabs,t&&e.withoutBorder)},a))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:n=d}=this.props;return t.allIds.map(a=>{const s=e===a,l=t.byId[a].withNotificationsBadge;return r.createElement(i.SliderItem,{key:a,value:a,className:o(n.tab,!s&&n.withHover,l&&f.withBadge),isActive:s,onClick:this._createClickHandler(a)},t.byId[a].title)})}}},39440:(e,t,n)=>{"use strict";n.d(t,{HorizontalScroll:()=>y});var r=n(59496),o=n(97754),i=n(9837),a=n(88537),s=n(9745),l=n(59199),c=n(68587),u=n(62820),f=n(33086),d=n(41814);const p={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function h(e){return r.createElement("div",{className:o(d.fadeLeft,e.className,{[d.isVisible]:e.isVisible})})}function m(e){return r.createElement("div",{className:o(d.fadeRight,e.className,{[d.isVisible]:e.isVisible})})}function v(e){return r.createElement(g,{...e,className:d.scrollLeft})}function b(e){return r.createElement(g,{...e,className:d.scrollRight})}function g(e){return r.createElement("div",{className:o(e.className,{[d.isVisible]:e.isVisible}),onClick:e.onClick},r.createElement("div",{className:d.iconWrap},r.createElement(s.Icon,{icon:f,className:d.icon})))}const y=function(e=v,t=b,n=h,s=m){var f;return(f=class extends r.PureComponent{constructor(e){super(e),this._scroll=r.createRef(),this._wrapMeasureRef=r.createRef(),this._contentMeasureRef=r.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:n}=this.props;t&&n?this.setState({widthContent:e.width+2*n}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,n=this.isAtLeft(),r=this.isAtRight();n||e?n&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),r||t?r&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()} +componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,u.isRtl)()?(0,u.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,a.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,a.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const n=this._scroll.current;n&&((0,u.isRtl)()&&(e=(0,u.getLTRScrollLeftOffset)(n,e)),t<=0?n.scrollLeft=Math.round(e):(0,l.doAnimate)({onStep(e,t){n.scrollLeft=Math.round(t)},from:n.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:a,isVisibleScrollbar:l,isVisibleFade:c,isVisibleButtons:u,shouldMeasure:f,shouldDecreaseWidthContent:p,buttonsWidthIfDecreasedWidthContent:h,onMouseOver:m,onMouseOut:v,scrollWrapClassName:b,fadeClassName:g}=this.props,{isVisibleRightButton:y,isVisibleLeftButton:w}=this.state,E=p&&h;return r.createElement(i,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:f,ref:this._wrapMeasureRef},r.createElement("div",{className:d.wrapOverflow,onMouseOver:m,onMouseOut:v},r.createElement("div",{className:o(d.wrap,E?d.wrapWithArrowsOuting:"")},r.createElement("div",{className:o(d.scrollWrap,b,{[d.noScrollBar]:!l}),onScroll:this._handleScroll,ref:this._scroll},r.createElement(i,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:f,ref:this._contentMeasureRef},a)),c&&r.createElement(n,{isVisible:w,className:g}),c&&r.createElement(s,{isVisible:y,className:g}),u&&r.createElement(e,{onClick:this._handleScrollLeft,isVisible:w}),u&&r.createElement(t,{onClick:this._handleScrollRight,isVisible:y}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=p,f}(v,b,h,m)},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>I});var r=n(49483),o=n(59496),i=n(97754),a=n.n(i),s=n(88537),l=n(47201),c=n(78274),u=n(31261),f=n(9745),d=n(24451),p=n(35692);function h(e){return o.createElement(f.Icon,{className:d.icon,icon:p})}var m=n(29202),v=n(88722);var b=n(58095),g=n(64514);const y={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function w(e,t,n){const r=[],o=n;let i=0,a=0;const s=e.length,l=o.length;let c=-1,u=0;const f=[],d=s-1,p=[];let h;for(;i{const[n,r]=w(e,!1,t);c(n),v(r)},[t,e]),(0,o.useLayoutEffect)(()=>{const e=(0,s.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),p(!1)),f(S(e))},[d]),[t,m,{onChange:function(){const t=(0,s.ensureNotNull)(n.current),r=t.value,[o,i]=w(e,!1,r);c(o),m.current=o;const a=v(i),d=function(e,t,n,r,o,i){if(e!==t){const a=t.length,s=e.length;let l=0,c=0,u=0,f=0,d=0;for(d=r;d=0&&o[d];d--)l++;for(d=r-1;d>=0;d--)o[d]&&u++;for(d=n-1;d>=0;d--)i[d]&&f++;if(r>s)r=10*a;else if(n>=r&&n!==s){if(i[r]){const e=r;r-=f-u,o[r-=l]&&(r=e)}}else r>n&&(r+=u-f,r+=c)}return r}(l,o,u,S(t),i,a);f(d),p(!0)},onSelect:function(){const e=(0,s.ensureNotNull)(n.current);f(S(e))},maxLength:r}];function v(e){const t=h.current;return h.current=e,t}}function S(e){return e.selectionStart||0}function O(e){const{value:t,mask:n,onChange:r,...i}=e,a=(0,o.useRef)(null),[s,l,c]=E(n,t,a);return(0,o.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=a.current)},[e.reference]),o.createElement(u.InputControl,{...i,maxLength:c.maxLength,value:s,autoComplete:"off",reference:function(e){a.current=e},onChange:function(){c.onChange(),r(l.current)},onSelect:c.onSelect})}var T=n(68335),N=n(50628),D=n(16396),C=n(55257);const _=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[r,o]=[P(t.toString()),P(n.toString())],i=`${r}:${o}`,a=x(i)?i:R(i);e.push(a)}return e})();function M(e){let t=!1;const n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(null),l=(0,o.useRef)(null),[u,f]=(0,m.useFocus)(),[d,p]=(0,o.useState)(e.value),v=k(d),y=x(v)?v:R(v),[w,E]=(0,o.useState)(y),S=u||W().some(e=>null!==e&&e.contains(document.activeElement));(0,o.useLayoutEffect)(()=>p(e.value),[e.value]),(0,o.useLayoutEffect)(()=>E(y),[d,S]),(0,o.useEffect)(()=>j(w===y?"auto":"smooth"),[w]);const M=(0,C.lowerbound)(_,y,(e,t)=>er&&o>t){const n=(0,g.clamp)(o,0,r),a=(0,g.clamp)(o,0,t);o=Math.max(n,a),i=n>a?e.top-n:e.bottom}else o>t&&(i=e.top-o);return{x:e.left,y:i,overrideWidth:e.width,overrideHeight:o}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:i},P.map(e=>o.createElement(D.PopupMenuItem,{key:e,label:e,isActive:e===y,isHovered:e===w,reference:e===w?V:void 0,onClick:A,onClickArg:e}))));function I(n){const r=k(n),o=x(r)?r:R(r);p(o),t||(t=!0,e.onChange(o))}function V(e){l.current=e}function A(e){I((0,s.ensureDefined)(e)),(0,s.ensureNotNull)(i.current).blur()}function B(e){return u&&(null!==L(document.activeElement)||null!==L(e.relatedTarget))}function L(e){return e instanceof Node&&W().find(t=>null!==t&&t.contains(e))||null}function W(){return[i.current,r.current]}function j(e="auto"){if(null!==l.current){const t=(0,s.ensureNotNull)(i.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom{d.current&&r&&(d.current.defaultValue=r)},[]),(0,o.useLayoutEffect)(()=>{d.current&&r&&(d.current.value=r)},[r]),o.createElement("div",{className:a()(v.wrap,i)},o.createElement(u.InputControl,{...f,type:"text",endSlot:o.createElement(c.EndSlot,{icon:!0},o.createElement(h,null)),value:r,highlight:p,intent:p?"primary":void 0,onFocus:function(e){(0,s.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),o.createElement("input",{...b,disabled:e.disabled,className:v.input,type:"time",onBlur:g,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:M},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>d}) +;var r=n(59496),o=n(97754),i=n(59064),a=n(51768),s=n(90186),l=n(23576);const c=l;function u(e){const{reference:t,...n}=e,o={...n,ref:t};return r.createElement(e.href?"a":"div",o)}function f(e){e.stopPropagation()}function d(e){const{id:t,role:n,"aria-selected":c,className:d,title:p,labelRowClassName:h,labelClassName:m,shortcut:v,forceShowShortcuts:b,icon:g,isActive:y,isDisabled:w,isHovered:E,appearAsDisabled:S,label:O,link:T,showToolboxOnHover:N,target:D,rel:C,toolbox:_,reference:M,onMouseOut:k,onMouseOver:x,suppressToolboxClick:R=!0,theme:P=l}=e,F=(0,s.filterDataProps)(e),I=(0,r.useRef)(null);return r.createElement(u,{...F,id:t,role:n,"aria-selected":c,className:o(d,P.item,g&&P.withIcon,{[P.isActive]:y,[P.isDisabled]:w||S,[P.hovered]:E}),title:p,href:T,target:D,rel:C,reference:function(e){I.current=e,"function"==typeof M&&M(e);"object"==typeof M&&(M.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:r,onClickArg:o,trackEventObject:s}=e;if(w)return;s&&(0,a.trackEvent)(s.category,s.event,s.label);r&&r(o,t);n||(0,i.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:r}=e;n&&r&&(0,a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:r}=e;if(1===t.button&&T&&n){let e=n.label;r&&(e+="_mouseWheelClick"),(0,a.trackEvent)(n.category,n.event,e)}},onMouseOver:x,onMouseOut:k},void 0!==g&&r.createElement("div",{className:P.icon,dangerouslySetInnerHTML:{__html:g}}),r.createElement("div",{className:o(P.labelRow,h)},r.createElement("div",{className:o(P.label,m)},O)),(void 0!==v||b)&&r.createElement("div",{className:P.shortcut},(V=v)&&V.split("+").join(" + ")),void 0!==_&&r.createElement("div",{onClick:R?f:void 0,className:o(P.toolbox,{[P.showOnHover]:N})},_));var V}},64205:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_SLIDER_THEME:()=>s,SliderItem:()=>l,factory:()=>c});var r=n(59496),o=n(97754),i=n(88537),a=n(37740);const s=a;function l(e){const t=o(e.className,a.tab,{[a.active]:e.isActive,[a.disabled]:e.isDisabled,[a.defaultCursor]:!!e.shouldUseDefaultCursor,[a.noBorder]:!!e.noBorder});return r.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,i.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return r.createElement("div",{className:o(t,a.tabs),"data-name":this.props["data-name"]},n,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),o={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,o)})}_componentDidUpdate(){const e=(0, +i.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return r.createElement("div",{className:a.slider,ref:e.reference})}))},33086:e=>{e.exports=''},56712:e=>{e.exports=''},35692:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/go-to-tradingview-referral-dialog.3ff513f8887e148c67d1.js b/charting_library/bundles/go-to-tradingview-referral-dialog.3ff513f8887e148c67d1.js new file mode 100644 index 00000000..c9e2c83c --- /dev/null +++ b/charting_library/bundles/go-to-tradingview-referral-dialog.3ff513f8887e148c67d1.js @@ -0,0 +1,5 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6066],{16581:(e,t,n)=>{e.exports=n.p+"ee2bdfea45e5aca4518fe3ae1e115904.svg"},99804:(e,t,n)=>{e.exports=n.p+"4958ef32c0c1820de94cfe8a01f2f1cf.svg"},97848:e=>{e.exports={"round-button":"round-button-p9ma7wH8",content:"content-p9ma7wH8","color-brand":"color-brand-p9ma7wH8","variant-primary":"variant-primary-p9ma7wH8","disable-themes":"disable-themes-p9ma7wH8","variant-quiet-primary":"variant-quiet-primary-p9ma7wH8","variant-secondary":"variant-secondary-p9ma7wH8","variant-ghost":"variant-ghost-p9ma7wH8","color-gray":"color-gray-p9ma7wH8","color-red":"color-red-p9ma7wH8","size-xsmall":"size-xsmall-p9ma7wH8","icon-only":"icon-only-p9ma7wH8","size-small":"size-small-p9ma7wH8","size-medium":"size-medium-p9ma7wH8","size-large":"size-large-p9ma7wH8","size-xlarge":"size-xlarge-p9ma7wH8","size-xxlarge":"size-xxlarge-p9ma7wH8",animated:"animated-p9ma7wH8",stretch:"stretch-p9ma7wH8"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},56734:e=>{e.exports={dialog:"dialog-sXuYOF5A",radius:"radius-sXuYOF5A",container:"container-sXuYOF5A",closeButton:"closeButton-sXuYOF5A",icon:"icon-sXuYOF5A",title:"title-sXuYOF5A",featureDescription:"featureDescription-sXuYOF5A",description:"description-sXuYOF5A",wrapperButton:"wrapperButton-sXuYOF5A",actionButton:"actionButton-sXuYOF5A"}},21935:e=>{e.exports={wrap:"wrap-2oYqsh7S",container:"container-2oYqsh7S",backdrop:"backdrop-2oYqsh7S",modal:"modal-2oYqsh7S",dialog:"dialog-2oYqsh7S"}},5437:(e,t,n)=>{"use strict";n.d(t,{RoundAnchorButton:()=>m,RoundButton:()=>l});var r=n(97754);function a(e,t){const{className:n,color:a="brand",variant:s="primary",size:o="xlarge",stretch:i,animated:c=!1,disableThemes:u=!1,iconOnly:l=!1}=t;return r(n,e["round-button"],e["color-"+a],e["variant-"+s],e["size-"+o],c&&e.animated,i&&e.stretch,u&&e["disable-themes"],l&&e["icon-only"])}var s=n(59496),o=n(90186),i=n(97848),c=n.n(i);function u(e){const{className:t,color:n,variant:r,size:a,stretch:s,animated:i,disableThemes:c,...u}=e;return{...u,...(0,o.filterDataProps)(e),...(0,o.filterAriaProps)(e)}}function l(e){const{reference:t,children:n,...r}=e,o=a(c(),e);return s.createElement("button",{...u(r),className:o,ref:t},s.createElement("span",{className:c().content},n))}function d(e){const{className:t,color:n,variant:r,size:a,stretch:s,animated:i,disableThemes:c,Component:u,...l}=e;return{...l,...(0,o.filterDataProps)(e),...(0,o.filterAriaProps)(e)}}function m(e){const{reference:t,children:n,...r}=e,o=a(c(),e),i=e.Component||"a";return s.createElement(i,{...d(r),className:o,ref:t},s.createElement("span",{className:c().content},n))}},35582:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>h});var r=n(59496),a=n(97754),s=n(9745),o=n(64120),i=n(12565),c=n(95781),u=n(7801),l=n(33584),d=n(16178),m=n.n(d);function p(e="l"){switch(e){case"l":return o;case"m": +return i;case"s":return c;case"xs":return u;case"xxs":return l;default:return i}}const h=r.forwardRef((e,t)=>{const{className:n,size:o,...i}=e,c=a(m()["close-button"],m()["button-"+o],n);return r.createElement("button",{...i,type:"button",className:c,ref:t},r.createElement(s.Icon,{icon:p(o),className:m()["close-icon"],"aria-hidden":!0}))})},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>a});var r=n(59496);const a=r.forwardRef((e,t)=>{const{icon:n="",...a}=e;return r.createElement("span",{...a,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function r(e){return s(e,o)}function a(e){return s(e,i)}function s(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function o(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function i(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterDataProps:()=>r,filterAriaProps:()=>a,filterProps:()=>s,isDataAttribute:()=>o,isAriaAttribute:()=>i})},70148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GoToTradingViewReferralDialog:()=>z,renderGoToTradingViewReferralDialog:()=>R});var r=n(59496),a=n(87995),s=n(28353),o=n(88216),i=n(9423),c=n(51768),u=n(37005),l=n(26843),d=n(77975),m=n(45345),p=n(74607),h=n(80054);const f=["utm_source","utm_medium","utm_campaign"];function v(e){return function(e,t=!1){const n=(0,p.createUrlParams)(e);return n&&t?"?"+n:n}(function(e){const t={};return f.forEach(n=>{const r=e[n];"string"==typeof r&&""!==r&&(t[n]=(0,h.htmlEscape)(r))}),t}((0,p.getUrlParams)()),e)}n(67337);let w;function g(){const e="https://www.tradingview.com";return w?e+"?aff_id="+w+"&"+v(!1):e+v(!0)}var b=n(97754),y=n(74664),E=n(90692),x=n(76594),k=n(9481),C=n(67844),_=n(3767),O=n(81e3),D=n(56734);function M(e){const{children:t,onClose:n,width:a}=e,o=r.createElement(r.Fragment,null,r.createElement(k.KeyboardDocumentListener,{keyCode:27,handler:n}),r.createElement(C.CloseButton,{className:D.closeButton,"aria-label":s.t("Close",{context:"input"}),onClick:n}),t);return r.createElement(x.OutsideEvent,{mouseDown:!0,handler:n},e=>r.createElement(E.MatchMedia,{rule:`screen and (max-width: ${y.breakpoints.phone}px)`},t=>t?r.createElement(O.PopupDialog,{reference:e,isOpened:!0,fullscreen:!0,className:b(D.dialog,D.radius)},o):r.createElement(_.Modal,{reference:e,className:D.dialog,width:a,isOpened:!0},o)))}var N=n(5437),B=n(99804),L=n(16581);const S=/{\w+}/,P={features:{alerts:s.t("Stay on top of market moves! Alerts are immediate notifications when markets meet your custom criteria. Pick from visual popups, audio signals & email alerts."),pinescript:s.t("Create your own indicators and strategies! Pine Script™ is a flexible and efficient language for doing just that."),saveload:s.t("Save the analysis you do! Your custom settings, indicator setups and so on are saved onsite as individual charts for later access from anywhere."),customIntervals:s.t("Customize how you look at the markets! View charts in custom timeframes, such as 7 minutes, 12 minutes, or even 8 hours per bar."), +kagiRenko:s.t("Get a new look at the markets with advanced chart types! Use Kagi and Renko charts with intraday resolutions for a complete picture."),plusMenu:s.t("Stay on top of market moves. Set alerts and place orders in one click!"),indicators:s.t("Maximum number of indicators on TradingView widget is 3.")}};function z(e){const{onClose:t,featureDescription:n}=e,a=((0,d.useWatchedValueReadonly)({watchedValue:m.watchedTheme})||l.StdTheme.Light)===l.StdTheme.Light?B:L,o=s.t("This feature is available only on TradingView"),i=s.t("You can become PRO to use this and many other features with the full version of {link_start}TradingView{link_end}.").split(S),c=r.createElement("p",null,i[0],r.createElement("a",{href:""+g(),target:"_blank"},i[1]),i[2]);return(0,u.useFixedBody)(),r.createElement(M,{width:720,onClose:t},r.createElement("div",{className:D.container},r.createElement("img",{src:a,className:D.icon}),r.createElement("div",{className:D.title},o),r.createElement("div",{className:D.featureDescription},n),r.createElement("div",{className:D.description},c),r.createElement("div",{className:D.wrapperButton},r.createElement(N.RoundButton,{onClick:function(){window.open(g(),"_blank")},className:D.actionButton},s.t("Let’s go!")))))}function R(e){const t=(0,i.guid)(),n=(0,o.getRootOverlapManager)(),s=n.ensureWindow(t);let u="";void 0!==e&&e.feature&&(u=P.features[e.feature],(0,c.trackEvent)("Referral program enabled","feature "+e.feature));a.render(r.createElement(z,{featureDescription:u,onClose:()=>{a.unmountComponentAtNode(s),n.removeWindow(t)}}),s)}},39640:(e,t,n)=>{"use strict";function r(e,t,n,r,a){function s(a){if(e>a.timeStamp)return;const s=a.target;void 0!==n&&null!==t&&null!==s&&s.ownerDocument===r&&(t.contains(s)||n(a))}return a.click&&r.addEventListener("click",s,!1),a.mouseDown&&r.addEventListener("mousedown",s,!1),a.touchEnd&&r.addEventListener("touchend",s,!1),a.touchStart&&r.addEventListener("touchstart",s,!1),()=>{r.removeEventListener("click",s,!1),r.removeEventListener("mousedown",s,!1),r.removeEventListener("touchend",s,!1),r.removeEventListener("touchstart",s,!1)}}n.d(t,{addOutsideEventListener:()=>r})},74664:(e,t,n)=>{"use strict";n.d(t,{breakpoints:()=>r,mobileFirstBreakpoints:()=>a,mobileFirstLegacyBreakpoints:()=>s});const r={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},a={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},s={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},67844:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>r.CloseButton});var r=n(35582)},3767:(e,t,n)=>{"use strict";n.d(t,{Modal:()=>l});var r=n(59496),a=n(97754),s=n(98526),o=n(86431),i=n(76594),c=n(21935);class u extends r.PureComponent{constructor(){super(...arguments), +this._containerRef=null,this._handleContainerRef=e=>{this._containerRef=e}}componentDidMount(){var e;this.props.autofocus&&(null===(e=this._containerRef)||void 0===e||e.focus())}render(){const{zIndex:e,onClickOutside:t,children:n,className:o}=this.props;return r.createElement("div",{ref:this._handleContainerRef,style:{zIndex:e},"data-dialog-name":this.props["data-dialog-name"],tabIndex:-1},r.createElement("div",{className:c.backdrop}),r.createElement("div",{className:c.wrap},r.createElement("div",{className:c.container},r.createElement(i.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:t},e=>r.createElement("div",{className:c.modal,ref:e},r.createElement(s.Dialog,{...this.props,className:a(o,c.dialog)},n))))))}}u.defaultProps={width:500};const l=(0,o.makeOverlapable)(u)},37005:(e,t,n)=>{"use strict";n.d(t,{useFixedBody:()=>s});var r=n(59496),a=n(43989);function s(){(0,r.useEffect)(()=>((0,a.setFixedBodyState)(!0),()=>{(0,a.setFixedBodyState)(!1)}),[])}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var r=n(59496),a=n(39640);function s(e){const{click:t,mouseDown:n,touchEnd:s,touchStart:o,handler:i,reference:c,ownerDocument:u=document}=e,l=(0,r.useRef)(null),d=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:s,touchStart:o},r=c?c.current:l.current;return(0,a.addOutsideEventListener)(d.current,r,i,u,e)},[t,n,s,o,i]),c||l}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>a});var r=n(59496);const a=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,a="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,o]=(0,r.useState)(n?n.value():a);return(t?r.useLayoutEffect:r.useEffect)(()=>{if(n){o(n.value());const e=e=>o(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),s}},9481:(e,t,n)=>{"use strict";n.d(t,{KeyboardDocumentListener:()=>a});var r=n(59496);class a extends r.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>a});var r=n(59496);class a extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>a}) +;var r=n(58095);function a(e){const{children:t,...n}=e;return t((0,r.useOutsideEvent)(n))}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var r=n(59496),a=n(65718);function s(e){return class extends r.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=r.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:r.createElement(a.Portal,null,s)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>c,PortalContext:()=>u});var r=n(59496),a=n(87995),s=n(9423),o=n(88216),i=n(50655);class c extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",a.createPortal(r.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,o.getRootOverlapManager)():this.context}}c.contextType=i.SlotContext;const u=r.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>a,SlotContext:()=>s});var r=n(59496);class a extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=r.createContext(null)},64120:e=>{e.exports=''},95781:e=>{e.exports=''},7801:e=>{e.exports=''},33584:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/gopro-dialog.10fd967147ea7ef9c57b.js b/charting_library/bundles/gopro-dialog.10fd967147ea7ef9c57b.js new file mode 100644 index 00000000..12c94550 --- /dev/null +++ b/charting_library/bundles/gopro-dialog.10fd967147ea7ef9c57b.js @@ -0,0 +1,33 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5246],{13597:(e,t,a)=>{e.exports=a.p+"1cab1bbf2efbf21183e3f253d0cdd698.svg"},30666:(e,t,a)=>{e.exports=a.p+"245f40c6e1d758167db8571398efaef2.svg"},94758:(e,t,a)=>{e.exports=a.p+"14f7aa04dc24cf83929c244ccad5273d.svg"},78806:(e,t,a)=>{e.exports=a.p+"7f429d95a310b5fadba4ee69da66b4eb.svg"},82310:(e,t,a)=>{e.exports=a.p+"98e91cfdd60e63d2da3aaac9c6680376.svg"},96082:(e,t,a)=>{e.exports=a.p+"add0043e9139708b7ec71b15a1cfdf4c.svg"},39111:(e,t,a)=>{e.exports=a.p+"8dafbfd19f6d49a5e3ee8e41edc3264c.svg"},53397:(e,t,a)=>{e.exports=a.p+"b66a640126ab548895d37446e81edb06.svg"},81591:(e,t,a)=>{e.exports=a.p+"516336a4fcc5f7b651673adeedd38b68.svg"},66661:(e,t,a)=>{e.exports=a.p+"6543950df881e52d4ca8007a6013f7d0.svg"},96775:(e,t,a)=>{e.exports=a.p+"d84b6cf7427c0922056517dad6f0d0bb.svg"},64626:(e,t,a)=>{e.exports=a.p+"f29883fbecb99912bbfeb0897f8b4edc.svg"},95889:(e,t,a)=>{e.exports=a.p+"c3e25206d17a8de5275c5c18c6377d52.svg"},8265:(e,t,a)=>{e.exports=a.p+"7b48652cf0047a3b3b7bad1b1741ad9f.svg"},94836:(e,t,a)=>{e.exports=a.p+"a6827773500226a7aa4fb09ce14ad72d.svg"},39449:(e,t,a)=>{e.exports=a.p+"833a14929e5d24379a09b7fab2f54002.svg"},13867:(e,t,a)=>{e.exports=a.p+"60df35582c6fbf690ee8aad4f66b528c.svg"},98143:(e,t,a)=>{e.exports=a.p+"aff9c5fc514db3e7e69d496ce27c6a19.svg"},57513:(e,t,a)=>{e.exports=a.p+"8dd2c8c165617fcccdc1a1e26990caba.svg"},36208:(e,t,a)=>{e.exports=a.p+"93748b7538eb622034881a9206d82dda.svg"},76385:(e,t,a)=>{e.exports=a.p+"9ca15e62dcca53e34d89a4e5dc98522c.svg"},4390:(e,t,a)=>{e.exports=a.p+"8bb689bddb6ff6d200d2aaaea2402f9f.svg"},16581:(e,t,a)=>{e.exports=a.p+"ee2bdfea45e5aca4518fe3ae1e115904.svg"},99804:(e,t,a)=>{e.exports=a.p+"4958ef32c0c1820de94cfe8a01f2f1cf.svg"},50362:(e,t,a)=>{e.exports=a.p+"ba436c3f80a5432a73402891d8ed04bf.svg"},97109:(e,t,a)=>{e.exports=a.p+"26b5353498b2ca25fcc597890e574005.svg"},89732:(e,t,a)=>{e.exports=a.p+"f3fb677a4f9680b6b5f45fc41b04688d.svg"},75934:(e,t,a)=>{e.exports=a.p+"8a2b9871f3bdcda5fc3c8633ef6eef01.svg"},41711:(e,t,a)=>{e.exports=a.p+"5c8483c70efc4d71c6bec8491e2ea918.svg"},41913:(e,t,a)=>{e.exports=a.p+"d83a6296db053e3ab36abfd851a88f66.svg"},18114:(e,t,a)=>{e.exports=a.p+"4bba9cb57057b411f436fdcb98ab3e32.svg"},50347:(e,t,a)=>{e.exports=a.p+"90751c9bb2971c193dfbff053292e624.svg"},95681:(e,t,a)=>{e.exports=a.p+"ed0ca2ab048260b30ad78d7b82749494.svg"},83345:(e,t,a)=>{e.exports=a.p+"b0d7e0e6fa1209b8a82a5566879e8439.svg"},24136:(e,t,a)=>{e.exports=a.p+"e16dc229d6775b39b80e8958d6095e05.svg"},27591:(e,t,a)=>{e.exports=a.p+"fbd9c87447564af33463832c85652af0.svg"},44921:(e,t,a)=>{e.exports=a.p+"df2e77a08c4fed3f6d7a5e653e4ca2b2.svg"},92008:(e,t,a)=>{e.exports=a.p+"c7c3797c2ad50f90c7c5e767a4822af2.svg"},80092:(e,t,a)=>{e.exports=a.p+"ee399eb1fa7a749581dc585db32b9db4.svg"},19861:(e,t,a)=>{e.exports=a.p+"1ca623399e6a505e1816c5f4169c60a3.svg"},24759:(e,t,a)=>{e.exports=a.p+"04ec25351d493cec3ade55e686f71c3b.svg"},70785:(e,t,a)=>{e.exports=a.p+"206725c980d03acbd1cc0e7f5ce69e40.svg"},7274:(e,t,a)=>{ +e.exports=a.p+"703f250335bd4e9b78c998de059612b2.svg"},7246:(e,t,a)=>{e.exports=a.p+"e5f4dc26e80c421603f8b42336412643.svg"},50214:(e,t,a)=>{e.exports=a.p+"7f2643ac80c1d0560f78aa22b6e8b501.svg"},3560:(e,t,a)=>{e.exports=a.p+"73dfc43daa272490acc92fd18d2efa97.svg"},75757:(e,t,a)=>{e.exports=a.p+"1d27ff98c6f9247fd9df181f3fba5d3e.svg"},32249:(e,t,a)=>{e.exports=a.p+"85f9662bfe09fc2b79d5d962fc3b6e1a.svg"},19882:(e,t,a)=>{e.exports=a.p+"67ffddaaa5ddf676068d1d3f2fb47029.svg"},89378:(e,t,a)=>{e.exports=a.p+"637fc842362a44cdfab2f5a1945f5ad8.svg"},9364:(e,t,a)=>{e.exports=a.p+"9179ddcfe12cfa621d2c0a261757a2fb.svg"},49637:(e,t,a)=>{e.exports=a.p+"553d50cd29b02ff10f3cb53302bece54.svg"},72272:(e,t,a)=>{e.exports=a.p+"5096c47e88bb219a61b3192d3f3ee85c.svg"},96309:(e,t,a)=>{e.exports=a.p+"b2011711183a64af88730986168af032.svg"},19200:(e,t,a)=>{e.exports=a.p+"ab7157b7c6ad79e8d21141a860febcfa.svg"},43806:(e,t,a)=>{e.exports=a.p+"756e573bd5155c508a91d07c586c3669.svg"},87162:(e,t,a)=>{e.exports=a.p+"e4bd61c262d0b67207545a967cb51d7f.svg"},47268:(e,t,a)=>{e.exports=a.p+"bbcdb3a466a748485f84b550145804dc.svg"},19836:(e,t,a)=>{e.exports=a.p+"2b993200d16755e7ff303ad0c32f4919.svg"},37479:(e,t,a)=>{e.exports=a.p+"fd3642416e066a41978041df1fce04c8.svg"},37636:(e,t,a)=>{e.exports=a.p+"c6c91cffc0948504960b9ffa03ec3eb8.svg"},66786:(e,t,a)=>{e.exports=a.p+"f6f3045f75b50af8eb75a84a81c1816f.svg"},80985:(e,t,a)=>{e.exports=a.p+"25b2c84d5406c64eefab940998518f5c.svg"},23965:(e,t,a)=>{e.exports=a.p+"dc280b6d3ed8a4c98e32fb60d6c17eca.svg"},86750:(e,t,a)=>{e.exports=a.p+"d19fbe51ce3d398848b6825d6618ad21.svg"},75027:(e,t,a)=>{e.exports=a.p+"7585c22521c2b4c30ed2c64d13bcb872.svg"},86209:(e,t,a)=>{e.exports=a.p+"1b4c2ab61dabdd769b277a4707937a9d.svg"},64115:(e,t,a)=>{e.exports=a.p+"9d4c66fc04fd990e8bfd29411fb33650.svg"},73480:(e,t,a)=>{e.exports=a.p+"af585e7389cfe3a827192dbe445b4935.svg"},81361:(e,t,a)=>{e.exports=a.p+"984b9115a6a09b9e5aa9d3a9bee31479.svg"},81012:(e,t,a)=>{e.exports=a.p+"0da4ec054e8a1847302dceafff367d5f.svg"},28328:(e,t,a)=>{e.exports=a.p+"9cd754df5f0f7f46944a9abd08f279f6.svg"},97848:e=>{e.exports={"round-button":"round-button-p9ma7wH8",content:"content-p9ma7wH8","color-brand":"color-brand-p9ma7wH8","variant-primary":"variant-primary-p9ma7wH8","disable-themes":"disable-themes-p9ma7wH8","variant-quiet-primary":"variant-quiet-primary-p9ma7wH8","variant-secondary":"variant-secondary-p9ma7wH8","variant-ghost":"variant-ghost-p9ma7wH8","color-gray":"color-gray-p9ma7wH8","color-red":"color-red-p9ma7wH8","size-xsmall":"size-xsmall-p9ma7wH8","icon-only":"icon-only-p9ma7wH8","size-small":"size-small-p9ma7wH8","size-medium":"size-medium-p9ma7wH8","size-large":"size-large-p9ma7wH8","size-xlarge":"size-xlarge-p9ma7wH8","size-xxlarge":"size-xxlarge-p9ma7wH8",animated:"animated-p9ma7wH8",stretch:"stretch-p9ma7wH8"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G", +"button-xxs":"button-xxs-WaM0Er9G"}},43458:e=>{e.exports={countdown:"countdown-7K6OansE","size-m":"size-m-7K6OansE",card:"card-7K6OansE","size-s":"size-s-7K6OansE","size-custom":"size-custom-7K6OansE",number:"number-7K6OansE",label:"label-7K6OansE",profile:"profile-7K6OansE","cyber-monday":"cyber-monday-7K6OansE","black-friday":"black-friday-7K6OansE"}},53561:e=>{e.exports={container:"container-7Eixwdg2","countdown-ended-text":"countdown-ended-text-7Eixwdg2"}},64051:e=>{e.exports={upgradeNotificationDescription:"upgradeNotificationDescription-N6e9zdP9",countDown:"countDown-N6e9zdP9"}},42360:e=>{e.exports={dialog:"dialog-78lAG3GO",radius:"radius-78lAG3GO",container:"container-78lAG3GO",closeButton:"closeButton-78lAG3GO",wrapperImage:"wrapperImage-78lAG3GO",title:"title-78lAG3GO",subtitle:"subtitle-78lAG3GO",description:"description-78lAG3GO",center:"center-78lAG3GO",left:"left-78lAG3GO",wrapperButton:"wrapperButton-78lAG3GO",actionButton:"actionButton-78lAG3GO"}},55367:e=>{e.exports={"upgrade-not-available":"upgrade-not-available-tlc6NtlG"}},21935:e=>{e.exports={wrap:"wrap-2oYqsh7S",container:"container-2oYqsh7S",backdrop:"backdrop-2oYqsh7S",modal:"modal-2oYqsh7S",dialog:"dialog-2oYqsh7S"}},57845:e=>{e.exports={container:"container-xBgZHjTk",wrap:"wrap-xBgZHjTk",digit:"digit-xBgZHjTk",animated:"animated-xBgZHjTk"}},38472:e=>{e.exports={price:"price-fplyypVB"}},5437:(e,t,a)=>{"use strict";a.d(t,{RoundAnchorButton:()=>m,RoundButton:()=>c});var n=a(97754);function o(e,t){const{className:a,color:o="brand",variant:r="primary",size:i="xlarge",stretch:s,animated:l=!1,disableThemes:u=!1,iconOnly:c=!1}=t;return n(a,e["round-button"],e["color-"+o],e["variant-"+r],e["size-"+i],l&&e.animated,s&&e.stretch,u&&e["disable-themes"],c&&e["icon-only"])}var r=a(59496),i=a(90186),s=a(97848),l=a.n(s);function u(e){const{className:t,color:a,variant:n,size:o,stretch:r,animated:s,disableThemes:l,...u}=e;return{...u,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)}}function c(e){const{reference:t,children:a,...n}=e,i=o(l(),e);return r.createElement("button",{...u(n),className:i,ref:t},r.createElement("span",{className:l().content},a))}function d(e){const{className:t,color:a,variant:n,size:o,stretch:r,animated:s,disableThemes:l,Component:u,...c}=e;return{...c,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)}}function m(e){const{reference:t,children:a,...n}=e,i=o(l(),e),s=e.Component||"a";return r.createElement(s,{...d(n),className:i,ref:t},r.createElement("span",{className:l().content},a))}},35582:(e,t,a)=>{"use strict";a.d(t,{CloseButton:()=>h});var n=a(59496),o=a(97754),r=a(9745),i=a(64120),s=a(12565),l=a(95781),u=a(7801),c=a(33584),d=a(16178),m=a.n(d);function p(e="l"){switch(e){case"l":return i;case"m":return s;case"s":return l;case"xs":return u;case"xxs":return c;default:return s}}const h=n.forwardRef((e,t)=>{const{className:a,size:i,...s}=e,l=o(m()["close-button"],m()["button-"+i],a);return n.createElement("button",{...s,type:"button",className:l,ref:t},n.createElement(r.Icon,{icon:p(i),className:m()["close-icon"], +"aria-hidden":!0}))})},9745:(e,t,a)=>{"use strict";a.d(t,{Icon:()=>o});var n=a(59496);const o=n.forwardRef((e,t)=>{const{icon:a="",...o}=e;return n.createElement("span",{...o,ref:t,dangerouslySetInnerHTML:{__html:a}})})},90186:(e,t,a)=>{"use strict";function n(e){return r(e,i)}function o(e){return r(e,s)}function r(e,t){const a=Object.entries(e).filter(t),n={};for(const[e,t]of a)n[e]=t;return n}function i(e){const[t,a]=e;return 0===t.indexOf("data-")&&"string"==typeof a}function s(e){return 0===e[0].indexOf("aria-")}a.d(t,{filterDataProps:()=>n,filterAriaProps:()=>o,filterProps:()=>r,isDataAttribute:()=>i,isAriaAttribute:()=>s})},82760:(e,t,a)=>{"use strict";a.d(t,{Countdown:()=>b,CountdownTheme:()=>y});var n=a(59496),o=a(97754),r=a.n(o),i=a(93751),s=a(57845);class l extends n.PureComponent{constructor(e){super(e),this._rafIds=new Set,this.state={value:this.props.value}}componentDidUpdate(){const e=requestAnimationFrame(()=>{const t=requestAnimationFrame(()=>{this._rafIds.size>0&&this.setState({value:this.props.value}),this._rafIds.delete(t)});this._rafIds.delete(e),this._rafIds.add(t)});this._rafIds.add(e)}componentWillUnmount(){this._rafIds.size>0&&(this._rafIds.forEach(cancelAnimationFrame),this._rafIds.clear())}render(){const e={transform:`translateY(-${this.state.value}em)`};return n.createElement("div",{className:o(s.container,this.props.className),"aria-hidden":!0},n.createElement("div",{className:o(s.wrap,s.animated),style:e,key:this.props.value},n.createElement("span",{className:s.digit},0),n.createElement("span",{className:s.digit},1),n.createElement("span",{className:s.digit},2),n.createElement("span",{className:s.digit},3),n.createElement("span",{className:s.digit},4),n.createElement("span",{className:s.digit},5),n.createElement("span",{className:s.digit},6),n.createElement("span",{className:s.digit},7),n.createElement("span",{className:s.digit},8),n.createElement("span",{className:s.digit},9)))}}const u=(0,a(9423).randomHashN)(6);function c(e){return`digit-${e}-${u}`}function d(e,t=10){return Math.sign(e)<0?t+e%t:e%t}class m extends n.PureComponent{constructor(e){super(e),this._rafIds=new Set,this.state={value:this.props.value,shownSequence:[this.props.value]}}componentDidUpdate(){if(this.props.value===this.state.value)return;const e=requestAnimationFrame(()=>{const t=requestAnimationFrame(()=>{if(this._rafIds.size>0){const t=function(e,t,a){const n=[e];let o=e;for(;o!==t;)o=d(o+a),1===a?n.push(o):n.unshift(o);return n}(this.state.value,this.props.value,this.props.changeDirection);e=this.state.shownSequence,a=t,e.length===a.length&&e.every((e,t)=>e===a[t])?this.setState({value:this.props.value}):this.setState({shownSequence:t})}var e,a;this._rafIds.delete(t)});this._rafIds.delete(e),this._rafIds.add(t)});this._rafIds.add(e)}componentWillUnmount(){this._rafIds.size>0&&(this._rafIds.forEach(cancelAnimationFrame),this._rafIds.clear())}render(){const{value:e,className:t}=this.props,{value:a,shownSequence:r}=this.state,i=e===a,l={transform:`translateY(-${r.indexOf(a)}em)`};return n.createElement("div",{ +className:o(s.container,t),"aria-hidden":!0},n.createElement("div",{className:o(s.wrap,i&&s.animated),style:l},r.map(e=>this._renderElementaryDigit(e))))}_renderElementaryDigit(e){return n.createElement("span",{key:c(e),className:s.digit},e)}}var p=a(38472);function h(e){const{value:t,role:a,letterClassName:o,changeDirection:r}=e,s=t.split(""),u=s.map((e,t)=>{const a=s.length-t,u=parseInt(e);return(0,i.isInteger)(u)?void 0!==r?n.createElement(m,{value:u,changeDirection:r,className:o,key:a}):n.createElement(l,{value:u,className:o,key:a}):n.createElement("span",{className:o,key:a,"aria-hidden":!0},e)});return n.createElement("span",{className:p.price,"aria-label":t,role:a},u)}var f,g=a(28353);!function(e){e.Day="d",e.Hour="h",e.Min="m",e.Secs="s"}(f||(f={}));function v(e){const t=Date.now(),a=e>t?e-t:0,n=Math.floor(a/864e5),o=a-864e5*n,r=Math.floor(o/36e5),i=o-36e5*r,s=Math.floor(i/6e4),l=i-6e4*s,u=Math.floor(l/1e3);return[{value:n.toString(10).padStart(2,"0"),label:g.t("day",{plural:"days",count:n,context:"time"}),type:f.Day},{value:r.toString(10).padStart(2,"0"),label:g.t("hour",{plural:"hours",count:r,context:"time"}),type:f.Hour},{value:s.toString(10).padStart(2,"0"),label:g.t("min",{plural:"mins",count:s,context:"time"}),type:f.Min},{value:u.toString(10).padStart(2,"0"),label:g.t("secs",{context:"time"}),type:f.Secs}]}var y,P=a(43458);!function(e){e.Default="",e.Profile="profile",e.BlackFriday="black-friday",e.CyberMonday="cyber-monday"}(y||(y={}));const w=n.memo(e=>{const{mainText:t,secondaryText:a,type:o}=e;return n.createElement("div",{className:r()(P.card,P["type-"+o]),role:"presentation"},n.createElement("span",{className:P.number,"aria-hidden":!0},n.createElement(h,{value:t,changeDirection:-1})),n.createElement("span",{className:P.label,"aria-hidden":!0},a))});function b(e){const{size:t="custom",theme:a}=e,o=function(e){const[t,a]=(0,n.useState)(v(e));return(0,n.useEffect)(()=>{const t=setTimeout(()=>a(v(e)),1e3);return()=>{clearTimeout(t)}}),t}(e.countToTimestamp),i=o.map(({value:e,label:t,type:a})=>a!==f.Secs?e+" "+t:"").join(" "),s=o.map(({value:e,type:t})=>e+t).join(" ");return n.createElement("time",{className:r()(P.countdown,P[a],P["size-"+t],e.className),"aria-label":i,dateTime:s,role:"text"},o.map(({value:e,label:t,type:a},o)=>n.createElement(w,{mainText:e,secondaryText:t,key:""+a,type:a})))}},53746:(e,t,a)=>{"use strict";a.d(t,{GoproOfferCountdown:()=>l,OfferCountdown:()=>u});var n=a(59496),o=a(28353),r=a(93299),i=a(82760),s=a(53561);function l(e){const{userAuthenticated:t,availableOffers:a}=e;if(!t)return n.createElement(n.Fragment,null);let o;const i=a[r.OFFERS.early_access];i&&(o=i.expire_on);const l=a[r.OFFERS.six_months];l&&(o=l.expire_on);const c=a[r.OFFERS.last_chance];c&&(o=c.expire_on);const d=a[r.OFFERS.one_usd];return d&&(o=d.expire_on),o?n.createElement("div",{className:s.container},n.createElement(u,{expiration:o,size:"m"})):n.createElement(n.Fragment,null)}function u(e){const{expiration:t=NaN,theme:a=i.CountdownTheme.Default,size:r,className:l}=e,u=1e3*t +;return!Number.isNaN(u)&&u>Date.now()?n.createElement(i.Countdown,{theme:a,countToTimestamp:u,size:r,className:l}):n.createElement("strong",{className:s["countdown-ended-text"]},o.t("This offer expires soon"))}},38335:(e,t,a)=>{"use strict";a.d(t,{getEarlyAccessDiscount:()=>l,getVisitEarlyAccessPaymentPageProperties:()=>u,visitEarlyAccessPaymentPage:()=>c,fill:()=>d});var n=a(78540),o=a(46198),r=a(53402),i=a(23578),s=a(93299);function l(){return window.user&&window.user.available_offers&&window.user.available_offers.early_access?window.user.available_offers.early_access.max_discount:null}function u(e,t,a={}){return e=e||o.ProPlans.ProRealtime,(t=t||l())&&(e="{0}_{1}{2}".format(e,t,r.EA_SUFFIX)),{billingCycle:n.BillingCycle.OneYear,options:{fixedCycle:!1,paymentMethod:a.paymentMethod,productName:e}}}function c(e,t,a={}){const{billingCycle:n,options:o}=u(e,t,a);(0,i.visitPaymentPage)(n,o)}function d(e){var t;const n=document.querySelector(".js-early-access-area"),o=l(),r=window.user.available_offers?null===(t=window.user.available_offers[s.OFFERS.early_access])||void 0===t?void 0:t.expire_on:void 0;n&&o&&r&&async function(e,t){(await Promise.all([a.e(8756),a.e(1854)]).then(a.bind(a,35301))).renderEarlyBirdBanner(e,t)}(n,{discount:o,onButtonClick:e,expiration:r}).then(()=>{n.classList.remove("js-hidden")})}},93573:(e,t,a)=>{"use strict";a.d(t,{getCountries:()=>r});var n=a(85198);let o=null;async function r(){var e;if(null!==o)return o;const t=await(0,n.fetch)("/accounts/countries/",{credentials:"include"});if(!t.ok){const e=await t.json();throw Error(String(e))}const a=await t.json();return o={...a,current_country_code:null!==(e=a.current_country_code)&&void 0!==e?e:"US"},o}},82531:(e,t,a)=>{"use strict";function n(){return 30}a.d(t,{getTrialLength:()=>n})},87887:(e,t,a)=>{"use strict";var n=a(23127),o=a(28353).t,r=a(11417).TVLocalStorage,i=a(90732).trialMessageSuccessDialog,s=a(46901).startFreeTrialDialog,l=a(98020).getEarlyBirdDialogDay,u=a(1237).showEarlyBirdDialog,c=a(24846).showSixMonthsDialog,d=a(92098).blackFridayDialog,m=a(74607).getUrlParams,p=a(23578).visitPaymentPage,h=a(51768).trackEvent,f=a(53402),g=a(38335).fill,v=a(118).fill,y=a(118).getLastChanceFeatureKey,P=a(48026).fill,w=a(6775).fill,b=a(38335).visitEarlyAccessPaymentPage,_=a(38335).getEarlyAccessDiscount,S=a(56840),E=a(93299).OFFERS,T=a(85787).TrialTokenStates;const{qaGlobals:x}=a(51872);var k=a(85198).fetch,C=a(46198).ProPlans,R=a(78540).BillingCycle,D=a(91955).getTracker,F=a(49483).onGoPro,A=a(49483).onOrder,O=a(12620).createGoProDialog,I=a(96783).PredefinedAction,L=a(17136).check;function N(){this._inited=!1}var U=new N;N.prototype.init=function(){if(!this._inited)return this._inited=!0,H(),!0} +;var M=o("Now you have even more tools and features to make your trading successful."),B=o("Your trial was successfully downgraded. You can always upgrade again to a more powerful plan before it runs out."),z=o("The amount charged at the end of the trial (if you don’t cancel) also reflects the new plan."),G="

"+M+"

"+z+"

",W="

"+B+"

"+z+"

",H=function(){function e(e){h("ProRT trial",e)}function t(e,t){return function(e){var t=n.Deferred();e=e||{};var r=new FormData;return r.append("product_id",e.product_id),k("/trial/change/",{method:"POST",credentials:"include",headers:new Headers({acccept:"application/json","X-Requested-With":"XMLHttpRequest"}),body:r}).then((function(e){return e.json()})).then((function(n){!function(e,t){if(!e.code)return!1;var n,r=f.humanizeProPlan(t.product_id),i="",s=o("{proPlanName} Trial").format({proPlanName:r}),l=o("Sorry, {proPlanName} trial could not be set.").format({proPlanName:r}),u=o("Close",{context:"input"});switch(e.code){case"user_has_product":i=x(o("You already have {proPlanName} trial.").format({proPlanName:r}),l);break;case"trial_failed":i=x(o("You are already PRO. {proPlanName} trial cannot be activated on PRO accounts.").format({proPlanName:r}),l);break;case"unable_find_order":case"unable_change_trial":case"unable_update_subscription":i=x(o("We were unable to change your subscription plan to {proPlanName}. Please try again.").format({proPlanName:r}),o("Something went wrong."));break;case"user_not_on_trial":i=x(o("Wrong product for trial"),l);break;case"trial_not_available":s=o("Trial is not available",{context:"prohibited_trial"}),i=x(o("A trial could not be applied to this account. You can purchase a plan to take advantage of extra features.")),u=o("Pay now",{context:"prohibited_trial"}),n=function(){p(R.OneYear,{paymentMethod:"paypal",productName:t.product_id})}}return Promise.all([a.e(509),a.e(3118),a.e(1729),a.e(6708),a.e(1536),a.e(7678),a.e(9201)]).then(a.bind(a,25258)).then(({warningDialog:e})=>{const t=e({title:s,content:i,closeButtonText:u}).open();n&&t.on("action:no",n)}),!0}(n,e)?t.resolve():t.reject()})),t.promise()}({product_id:e}).done((function(){i({title:o("Congrats! Your new trial is setup"),content:t||G}).then((function(e){e.on("afterClose",(function(){TradingView.onChartPage||location.reload()}))}))}))}function x(e,t){return t&&(t="

"+t+"

"),"
"+(t||"")+(e?"

"+e+"

":"")+"
"}function N(e){q()&&(e=e||{},is_authenticated&&L().then(t=>{t?Promise.resolve().then(a.bind(a,78820)).then(({showRestrictedCountryNotificationDialog:e})=>{e()}):function(e){var t={startTrial:(e=e||{}).product_id,billingCycle:e.billing_cycle,proContext:e.proContext};window.TVDialogs&&window.TVDialogs.signModal?window.TVDialogs.signModal.on("afterClose",(function(){s(t)})):s(t)}(e)}))}function M(t){var a=function(){var a=(t=t||{}).discount=t.discount||_();if(user.is_trial&&a&&!A()&&!F()){var n=user.available_offers[E.early_access],o=t.trialDaysPassed||void 0!==n&&n.trial_days_passed,r=function(e,t){ +return"early_bird_dialog_"+l(e,t)}(t.state,o),i={state:t.state,trialDaysPassed:o,discount:a,maxDiscount:n.max_discount,actionHref:"/gopro/?source=early_bird_dialog&feature=show_options",onActionClick:function(){H(r,"accept",window.user.id),runOrSignIn((function(){B("popup with discount: {0}%".format(a))}),{source:"Early access trial dialog"})},onClose:function(){H(r,"decline",window.user.id),t.onDecline?t.onDecline():function(t){e("Offer declined with discount: {0}%".format(t)),z()}(a)},root:document.createElement("div")};u(i),H(r,"open",window.user.id),e(t.ga_shown_msg||"Early access dialog shown with {0}% discount".format(a))}};"undefined"!=typeof pro?pro.runOrUpdate(a):a()}function B(t){z(),e("GoPro after trial: {0}".format(t))}function z(){n.get("/accounts/update-trial-marker/"),window.user&&user.available_offers&&user.available_offers[E.early_access]&&delete user.available_offers[E.early_access].offer_state}function H(e,t,a){D().then((function(n){null!==n&&n.trackPermissionDialog(e,t,(a||"").toString())}))}function V(){is_authenticated&&user.is_trial&&TradingView.setTrialAvailiable(!1),function(){if(window.is_authenticated&&window.user&&window.user.available_offers&&window.user.available_offers[E.early_access]){var e=_();g((function(){B("from billing page with discount: {0}%".format(e))}));var t=window.user.available_offers[E.early_access];if(t.actual_state){switch(t.offer_state){case T.Week1:case T.Week2:case T.Week3:case T.Week4:case T.Finished:M({state:t.offer_state})}delete t.offer_state}}}(),function(){var e=user.available_offers&&user.available_offers[E.six_months];if(!is_authenticated||!e)return;const t=parseInt(e.expire_on,10),a="six_months.week_shown_popup."+t,n="six_months.last_day_shown_popup."+t;if(w(),!A()&&!F()){if(!S.getValue(n)){var r=new Date(1e3*(t-86400));if(new Date>r)return c({actionHref:"/gopro/?source=six_months_last_day_popup&feature=show_options",onActionClick:function(){H("six_months_dialog_last_day","accept",window.user.id)},onClose:function(){H("six_months_dialog_last_day","decline",window.user.id)},root:document.createElement("div")}),S.setValue(n,1,{forceFlush:!0}),void H("six_months_dialog_last_day","open",window.user.id)}if(!S.getValue(a)){r=new Date(1e3*(t-1987200));new Date>r&&(O({feature:"SixMonths",actions:[{text:o("Explore offer"),action:I.OpenGopro},{text:o("Decline offer"),action:I.Close,variant:"ghost",color:"red"}],closeButton:!1,closeOnEsc:!1,goproSource:"six_months_first_week_popup"}),S.setValue(a,1,{forceFlush:!0}))}}}(),function(){var e=user.available_offers&&user.available_offers[E.upgrade];if(is_authenticated&&e&&e.last_payment_date){if(!m().upgrade_popup){if(S.getValue("upgrade.shown_popup"))return;var t=new Date(1e3*e.last_payment_date);const a=Math.abs(new Date-t);if(Math.ceil(a/864e5)<30)return}O({feature:"upgradeNotification",actions:[{text:o("Show my options"),action:I.OpenGopro},{text:o("Don't need"),action:I.Close,variant:"ghost",color:"red"}],closeButton:!1,closeOnEsc:!1,goproSource:"upgrade_info_popup"}),S.setValue("upgrade.shown_popup",1,{forceFlush:!0})} +}(),function(){if(!F()&&!A()){var e=user.available_offers&&user.available_offers[E.last_chance];if(is_authenticated&&e){var t=y();if(t){v();var a=t+".shown_popup";S.getValue(a)||(O({feature:t,actions:[{text:o("Explore special offers"),action:I.OpenGopro},{text:o("Decline offer"),action:I.Close,variant:"ghost",color:"red"}],closeButton:!1,closeOnEsc:!1,goproSource:"last_chance_info_popup"}),S.setValue(a,1,{forceFlush:!0}))}}}}(),function(){var e=user.available_offers&&user.available_offers[E.one_usd];if(!F()&&!A()&&is_authenticated&&e){P();var t=new Date(1e3*e.expire_on),a="oneUsd.shown_popup_"+t.getFullYear()+"_"+t.getMonth();S.getValue(a)||(O({feature:"oneUsd",actions:[{text:o("Upgrade Now"),action:I.OpenGopro},{text:o("Decline offer"),action:I.Close,variant:"ghost",color:"red"}],closeButton:!1,closeOnEsc:!1,goproSource:"one_usd_info_popup"}),S.setValue(a,1,{forceFlush:!0}))}}();const e=user.available_offers[E.black_friday]||{},t=user.available_offers[E.cyber_monday]||{};(e.show_popup||t.show_popup)&&d(user.available_offers)}var Y=!1;function q(){var e=r.getItem("trial_availiable");return null!=e&&1==+e}return U.startTrial=function(e){var t={product_id:C.ProRealtime,billing_cycle:R.Monthly};Object.assign(t,e||{}),runOrSignIn(N.bind(this,t),{mode:"signup",source:"before_start_trial",verifiedPhoneRequired:!0,doNotCheckSocialActivity:!0,doNotShowConfirmation:!0,startTrial:!0,paidAccountCheck:!0})},U.earlyAccessDialog=M,U.changeTrial=t,U.upgradeTrial=function(e){return t(e,G)},U.downgradeTrial=function(e){return t(e,W)},U.isTrialAvailable=q,U.openEarlyAccessPaymentPage=function(t){var a;b((t=t||{}).product_id,t.discount,{paymentMethod:t.paymentMethod}),a=t.reason,z(),e("Order after trial: {0}".format(a))},function(){if(Y)return!1;Y=!0;var e=function(){var e=n(document.documentElement);window.is_authenticated&&q()?e.addClass("is-trial-available").removeClass("is-not-trial-available"):e.addClass("is-not-trial-available").removeClass("is-trial-available")};loginStateChange.subscribe(null,(function(t){t||e()})),e(),n(V)}}();e.exports=U},118:(e,t,a)=>{"use strict";a.d(t,{getLastChanceFeatureKey:()=>r,fill:()=>i});var n=a(93299);function o(){var e,t;return null===(t=null===(e=window.user.available_offers)||void 0===e?void 0:e[n.OFFERS.last_chance])||void 0===t?void 0:t.expire_on}function r(){const e=o();if(!e)return;const t=t=>new Date(1e3*(e-24*t*60*60));let a=n.LastChanceType.TwoWeeks;const r=new Date;if(r>=new Date(1e3*e))return;const i=t(2),s=t(1);return r>i&&(a=n.LastChanceType.TwoDays),r>s&&(a=n.LastChanceType.Hours),a}function i(){const e=document.querySelector(".js-last-chance-area"),t=o(),i=null===(l=null===(s=window.user.available_offers)||void 0===s?void 0:s[n.OFFERS.last_chance])||void 0===l?void 0:l.max_discount;var s,l;e&&t&&i&&async function(e,t){(await Promise.all([a.e(8756),a.e(1611)]).then(a.bind(a,66359))).renderLastChanceBanner(e,t)}(e,{expiration:t,maxDiscount:i,lastChanceType:r()}).then(()=>{e.classList.remove("js-hidden")})}},93299:(e,t,a)=>{"use strict";a.d(t,{OFFERS:()=>n,OfferKind:()=>o, +LastChanceType:()=>r});const n={trial:"trial",early_access:"early_access",black_friday:"black_friday",cyber_monday:"cyber_monday",custom_discount:"custom_discount",longer_cycle:"longer_cycle",upgrade:"upgrade",last_chance:"last_chance",one_usd:"one_usd",six_months:"six_months"},o={early_access:"early_access",black_friday:"black_friday",last_chance:"last_chance",one_usd:"1 usd offer",six_months:"six_months",custom_discount:"custom_discount"};var r;!function(e){e.TwoWeeks="LastChance_2w",e.TwoDays="LastChance_2d",e.Hours="LastChance_24h"}(r||(r={}))},48026:(e,t,a)=>{"use strict";a.d(t,{fill:()=>o});var n=a(93299);function o(){var e;const t=document.querySelector(".js-one-usd-area"),o=window.user.available_offers?null===(e=window.user.available_offers[n.OFFERS.one_usd])||void 0===e?void 0:e.expire_on:void 0;t&&async function(e,t){(await Promise.all([a.e(8756),a.e(7550)]).then(a.bind(a,11042))).renderOneUsdBanner(e,t)}(t,{expiration:o}).then(()=>{t.classList.remove("js-hidden")})}},6775:(e,t,a)=>{"use strict";a.d(t,{fill:()=>o});var n=a(93299);function o(){var e,t;const o=document.querySelector(".js-six-months-area"),r=null===(t=null===(e=window.user.available_offers)||void 0===e?void 0:e[n.OFFERS.six_months])||void 0===t?void 0:t.expire_on;o&&r&&async function(e,t){(await Promise.all([a.e(8756),a.e(850)]).then(a.bind(a,95197))).renderBanner(e,t)}(o,{expiration:r}).then(()=>{o.classList.remove("js-hidden")})}},85787:(e,t,a)=>{"use strict";var n;a.d(t,{TrialTokenStates:()=>n}),function(e){e.Started="started",e.Week1="after 1 week",e.Week2="after 2 weeks",e.Week3="after 3 weeks",e.Week4="after 4 weeks",e.Finished="finished"}(n||(n={}))},92098:(e,t,a)=>{"use strict";a.d(t,{blackFridayDialog:()=>s});var n=a(56840),o=a(93299),r=a(84015);async function i(e){const{showBlackFridayDialog:t}=await Promise.all([a.e(8463),a.e(509),a.e(3118),a.e(1729),a.e(6708),a.e(5911),a.e(1536),a.e(7678),a.e(7713)]).then(a.bind(a,15784));t().on("afterClose",()=>{n.setValue(e+".shown_popup_2021",!0,{forceFlush:!0})})}function s(e){const t=o.OFFERS.cyber_monday in e?o.OFFERS.cyber_monday:o.OFFERS.black_friday,a=window.location.pathname.split("/")[1];if((0,r.isOnMobileAppPage)("any"))return Promise.resolve();if("gopro"===a)return i(t);if(n.getBool(t+".shown_popup_2021"))return Promise.resolve();const s=e[o.OFFERS.cyber_monday];return s&&(1e3*s.date_end-Date.now())/864e5>1||["","black-friday","order","paypal","accounts","account-recovery"].includes(a)?Promise.resolve():i(t)}},1237:(e,t,a)=>{"use strict";async function n(e){(await Promise.all([a.e(957),a.e(8435)]).then(a.bind(a,38409))).renderEarlyBirdDialog(e)}a.d(t,{showEarlyBirdDialog:()=>n})},98020:(e,t,a)=>{"use strict";a.d(t,{getEarlyBirdDialogDay:()=>o});var n=a(85787);function o(e,t){switch(e){case n.TrialTokenStates.Week1:return"7";case n.TrialTokenStates.Week2:return"14";case n.TrialTokenStates.Week3:return"21";case n.TrialTokenStates.Week4:case n.TrialTokenStates.Finished:return 28===t?"28":"30";default:return null}}},46901:(e,t,a)=>{"use strict";a.d(t,{startFreeTrialDialog:()=>r}) +;var n=a(76266),o=a(52953);function r(e){return(0,n.isFeatureEnabled)("braintree-trial-in-order-dialog")?(0,o.showPaymentOrderDialog)({productId:e.startTrial,billingCycle:e.billingCycle,isTrial:!0}):(0,n.isFeatureEnabled)("braintree-trial-implementation")?Promise.all([a.e(5514),a.e(8463),a.e(2e3),a.e(9289),a.e(6363),a.e(7427),a.e(3713),a.e(3848),a.e(7552),a.e(1692),a.e(6750),a.e(9410),a.e(2525),a.e(1726),a.e(1424),a.e(2624),a.e(1201),a.e(2947),a.e(8178),a.e(3738),a.e(1946),a.e(8132)]).then(a.bind(a,79290)).then(t=>{(0,t.showStartFreeTrialDialog)(e)}):Promise.all([a.e(2e3),a.e(9289),a.e(6363),a.e(509),a.e(1729),a.e(3713),a.e(3848),a.e(1692),a.e(6708),a.e(9410),a.e(5708),a.e(2525),a.e(9593),a.e(1424),a.e(4497),a.e(2947),a.e(7678),a.e(3738),a.e(6055),a.e(9144)]).then(a.bind(a,28170)).then(t=>{(0,t.showStartFreeTrialDialog)(e)})}},95227:(e,t,a)=>{"use strict";async function n(e){(await Promise.all([a.e(5514),a.e(9129),a.e(2888),a.e(4956),a.e(8844),a.e(9961),a.e(5380),a.e(1065),a.e(1e3),a.e(6066)]).then(a.bind(a,70148))).renderGoToTradingViewReferralDialog(e)}a.d(t,{showGoToTradingViewReferralDialog:()=>n})},61494:(e,t,a)=>{"use strict";a.r(t),a.d(t,{renderGoproDialog:()=>et});var n=a(59496),o=a(87995),r=a(67337),i=a(88216),s=a(9423),l=a(95695),u=a(87463);var c=a(51768),d=a(76266),m=a(84015),p=a(95227),h=a(96783),f=a(28353),g=(a(94419),a(26843)),v=a(33550),y=a(62867),P=a(53746),w=a(82760),b=a(53402),_=a(46198);function S(e){return window.pro?e===_.ProPlans.Free?-1:window.pro.getProduct((0,b.getProductForTrial)(e)).upgrade_weight:0}function E(e){return function(e){return e.sort((e,t)=>S(e)-S(t))}(function(e){return Object.values(_.ProPlans).filter(t=>{const a=(0,v.getConfig)(e,(0,b.getProductForTrial)(t));return a&&!((0,b.isTrialProduct)(t)&&a[y.ProductFeatures.DISABLE_ON_TRIAL])})}(e).filter(e=>!(0,b.isTrialProduct)(e)))[0]||null}var T=a(93299),x=a(30666),k=a(13597),C=a(37479),R=a(19836),D=a(43806),F=a(19200),A=a(53397),O=a(39111),I=a(39449),L=a(94836),N=a(32249),U=a(75757),M=a(19861),B=a(80092),z=a(92008),G=a(44921),W=a(83345),H=a(95681),V=a(36208),Y=a(57513),q=a(4390),j=a(76385),K=a(78806),X=a(94758),$=a(66661),Z=a(81591),Q=a(96082),J=a(82310),ee=a(41913),te=a(41711),ae=a(23965),ne=a(80985),oe=a(98143),re=a(13867),ie=a(89378),se=a(19882),le=a(96309),ue=a(72272),ce=a(49637),de=a(9364),me=a(75934),pe=a(89732),he=a(50347),fe=a(18114),ge=a(66786),ve=a(37636),ye=a(97109),Pe=a(50362),we=a(3560),be=a(50214),_e=a(64115),Se=a(86209),Ee=a(64626),Te=a(96775),xe=a(75027),ke=a(86750),Ce=a(47268),Re=a(87162),De=a(7246),Fe=a(7274),Ae=a(81361),Oe=a(73480),Ie=a(27591),Le=a(24136),Ne=a(70785),Ue=a(24759),Me=a(28328),Be=a(81012),ze=a(8265),Ge=a(95889),We=a(64051);const He=/{\w+}/,Ve=(0,f.t)("If you switch trials to a different plan, the amount charged at the end of the trial (if you don't cancel) will change according to the new plan."),Ye=(0, +f.t)("Renko, Kagi, Line Break and Point & Figure charts are powerful tools because they reduce random noise and help you see trends clearer. Get intraday intervals on these charts only on our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans."),qe=(0,f.t)("Find a better perspective with intraday spreads. From price inversions to currency conversions and more, see the markets in a whole new light using our intraday charts based on custom formulas (spreads), only on our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans. You'll now be switched to a Daily interval."),je={image:{[g.StdTheme.Light]:V,[g.StdTheme.Dark]:Y},title:(0,f.t)("Sort your symbols better with more watchlists"),content:n.createElement("p",null,(0,f.t)("Monitor even more watchlists, plus import/export functionality with one of our upgraded plans — perfect for those who like to keep their opportunities organized."))},Ke={kagiRenko:()=>{const e=Ye.split(He);return{imageUrl:{[g.StdTheme.Light]:W,[g.StdTheme.Dark]:H},title:(0,f.t)("Filter out the noise with Japanese charts"),content:n.createElement(n.Fragment,null,n.createElement("p",null,e[0],n.createElement("strong",null,e[1]),e[2],n.createElement("strong",null,e[3]),e[4]))}},intradaySpread:()=>{const e=qe.split(He);return{imageUrl:{[g.StdTheme.Light]:he,[g.StdTheme.Dark]:fe},title:(0,f.t)("Find a better perspective with intraday spreads"),content:n.createElement(n.Fragment,null,n.createElement("p",null,e[0],n.createElement("strong",null,e[1]),e[2],n.createElement("strong",null,e[3]),e[4]))}},customIntervals:()=>({imageUrl:{[g.StdTheme.Light]:oe,[g.StdTheme.Dark]:re},title:(0,f.t)("See what others don't with custom intervals"),content:(0,f.t)("If you're doing analysis the same way as everyone else, how will you find your edge? With custom intervals spot the patterns most traders don't see — available only on our upgraded plans.")}),secondsIntervals:()=>{const e=(0,f.t)("Trade fast and with utmost granularity using Seconds intervals, only available on our {plan} plan. For advanced traders looking to find their edge.").split(/{plan}/);return{imageUrl:{[g.StdTheme.Light]:D,[g.StdTheme.Dark]:F},title:(0,f.t)("See the markets second by second"),content:n.createElement(n.Fragment,null,e[0],n.createElement("strong",null,(0,b.humanizeProPlan)(_.ProPlans.ProPremium)),e[1])}},multipleCharts:e=>{var t,a,n,o,r,i,s,l,u,c,d,m,p;const h=e.state,P=(0,f.t)("Your {plan} plan has a {number} chart per tab limit. But our upgraded plans let you see up to 8 linked charts — perfectly synced — all in the same window.",{plural:"Your {plan} plan has {number} charts per tab limit. But our upgraded plans let you see up to 8 linked charts — perfectly synced — all in the same window.",count:null===(t=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===t?void 0:t.limit});let w;switch(h){case _.ProPlans.Pro:w=P.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(n=null===(a=(0, +v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===a?void 0:a.limit)||void 0===n?void 0:n.toString())||""});break;case _.ProPlans.ProRealtime:w=P.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(r=null===(o=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===o?void 0:o.limit)||void 0===r?void 0:r.toString())||""});break;case _.ProPlans.Pro+b.TRIAL_SUFFIX:w=P.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(s=null===(i=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===i?void 0:i.limit)||void 0===s?void 0:s.toString())||""});break;case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:w=P.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(u=null===(l=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===l?void 0:l.limit)||void 0===u?void 0:u.toString())||""});break;case _.ProPlans.ProMiniAlerts:case _.ProPlans.ProMiniAds:case _.ProPlans.ProEdu:w=P.format({plan:"",number:(null===(d=null===(c=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===c?void 0:c.limit)||void 0===d?void 0:d.toString())||""});break;default:w=P.format({plan:"",number:(null===(p=null===(m=(0,v.getConfig)(y.ProductFeatures.MULTIPLE_CHARTS))||void 0===m?void 0:m.limit)||void 0===p?void 0:p.toString())||""})}return{imageUrl:{[g.StdTheme.Light]:z,[g.StdTheme.Dark]:G},title:(0,f.t)("You're going to need a bigger monitor"),content:w}},flaggedSymbols:()=>({imageUrl:{[g.StdTheme.Light]:ee,[g.StdTheme.Dark]:te},title:(0,f.t)("Multicolor flagged symbols"),content:(0,f.t)("Flag marks are useful for noting points of significance on your watchlists, screeners and charts. Customize your planning with multicolored flags, only on our upgraded plans.")}),useBarMagnifier:()=>({imageUrl:{[g.StdTheme.Light]:V,[g.StdTheme.Dark]:Y},title:(0,f.t)("Get more precise entries and exits"),content:(0,f.t)("Upgrade to our Premium plan for access to the Bar Magnifier. It uses more details on intrabar movement to provide entry and exit levels that better reflect actual market movements.")}),studyTemplates:e=>({imageUrl:{[g.StdTheme.Light]:ae,[g.StdTheme.Dark]:ne},title:(0,f.t)("Save your indicators with more templates"),content:(0,f.t)("Flip between unlimited customized sets of saved indicators without having to individually toggle them on and off each time, only available on upgraded plans.")}),alerts:e=>{var t,a,n,o,r,i,s,l,u,c,d,m,p;const h=e.state;let P;const w=(0,f.t)("Stay on top of market activity, even away from your desk, with up to 400 instant and backed-up alerts — only on our upgraded plans. Right now, your {plan} plan has a {number} alert limit.",{plural:"Stay on top of market activity, even away from your desk, with up to 400 instant and backed-up alerts — only on our upgraded plans. Right now, your {plan} plan has {number} alerts limit.",count:null===(t=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===t?void 0:t.limit}),S=(0, +f.t)("Looks like you've reached the limit of {number} alert. The only way to add more alerts is to stop some of your existing ones.",{plural:"Looks like you've reached the limit of {number} alerts. The only way to add more alerts is to stop some of your existing ones.",count:null===(a=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===a?void 0:a.limit});switch(h){case _.ProPlans.Pro:case _.ProPlans.Pro+b.TRIAL_SUFFIX:P=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(o=null===(n=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===n?void 0:n.limit)||void 0===o?void 0:o.toString())||""});break;case _.ProPlans.ProRealtime:case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:P=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(i=null===(r=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===r?void 0:r.limit)||void 0===i?void 0:i.toString())||""});break;case _.ProPlans.ProPremium:P=S.format({number:(null===(l=null===(s=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===s?void 0:s.limit)||void 0===l?void 0:l.toString())||""});break;case _.ProPlans.ProPremium+b.TRIAL_SUFFIX:P=S.format({number:(null===(c=null===(u=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===u?void 0:u.limit)||void 0===c?void 0:c.toString())||""});break;default:P=(0,f.t)("Stay on top of market activity, even away from your desk, with up to 400 instant and backed-up alerts — only on our upgraded plans. Right now, your plan has a {number} alert limit.",{plural:"Stay on top of market activity, even away from your desk, with up to 400 instant and backed-up alerts — only on our upgraded plans. Right now, your plan has {number} alerts limit.",count:null===(d=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===d?void 0:d.limit}).format({number:(null===(p=null===(m=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===m?void 0:m.limit)||void 0===p?void 0:p.toString())||""})}return{imageUrl:{[g.StdTheme.Light]:K,[g.StdTheme.Dark]:X},title:(0,f.t)("Never miss a trade with our server-side alerts"),content:P}},primitiveAlerts:e=>{var t,a;const n=e.state||_.ProPlans.Free,o=null===(t=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===t?void 0:t.primitive_limit,r=(null===(a=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.ProPremium))||void 0===a?void 0:a.primitive_limit)||400;let i,s;switch(n){case _.ProPlans.ProPremium:case _.ProPlans.ProPremiumTrial:i=(0,f.t)("Oops... too many alerts"),s=(0,f.t)("Uh oh, looks like you've reached the limit of {limit} price alert. The only way to add more alerts is to stop some of your existing ones. Choose wisely.",{plural:"Uh oh, looks like you've reached the limit of {limit} price alerts. The only way to add more alerts is to stop some of your existing ones. Choose wisely.",count:o}).format({limit:(null==o?void 0:o.toString())||""});break;default:i=(0,f.t)("Never miss a price movement"),s=(0, +f.t)("Stay on top of market activity, even away from your desk, with up to {max_number} instant and backed-up alert — only on our upgraded plans.",{plural:"Stay on top of market activity, even away from your desk, with up to {max_number} instant and backed-up alerts — only on our upgraded plans.",count:r}).format({max_number:r.toString()})+" "+(0,f.t)("Right now, your {plan} plan has a {number} price alert limit.",{plural:"Right now, your {plan} plan has {number} price alerts limit.",count:o}).format({number:(null==o?void 0:o.toString())||"",plan:(0,b.humanizeProPlan)((0,b.isTrialProduct)(n)?(0,b.getProductForTrial)(n):n)})}return{imageUrl:{[g.StdTheme.Light]:$,[g.StdTheme.Dark]:Z},title:i,content:s}},complexAlerts:e=>{var t;const a=e.state||_.ProPlans.Free,n=null===(t=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS))||void 0===t?void 0:t.complex_limit;let o,r;switch(a){case _.ProPlans.ProPremium:case _.ProPlans.ProPremium+b.TRIAL_SUFFIX:o=(0,f.t)("Oops... too many alerts"),r=(0,f.t)("Uh oh, looks like you've reached the limit of {limit} technical alert. The only way to add more alerts is to stop some of your existing ones. Choose wisely.",{plural:"Uh oh, looks like you've reached the limit of {limit} technical alerts. The only way to add more alerts is to stop some of your existing ones. Choose wisely.",count:n}).format({limit:(null==n?void 0:n.toString())||""});break;default:o=(0,f.t)("Get personalized alerts"),r=(0,f.t)("Supplement your analysis and get notified when your indicators, strategies, and even drawings meet the criteria you've set — only on our upgraded plans. Right now, your {plan} plan has a {limit} technical alert limit.",{plural:"Supplement your analysis and get notified when your indicators, strategies, and even drawings meet the criteria you've set — only on our upgraded plans. Right now, your {plan} plan has {limit} technical alerts limit.",count:n}).format({limit:(null==n?void 0:n.toString())||"",plan:(0,b.humanizeProPlan)((0,b.isTrialProduct)(a)?(0,b.getProductForTrial)(a):a)})}return{imageUrl:{[g.StdTheme.Light]:Q,[g.StdTheme.Dark]:J},title:o,content:r}},screenerAlerts:()=>({title:(0,f.t)("Screener alerts"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Alerts are a great way to stay on top of market changes while you are away from the desk. Free plans support 1 alert at a time. If you need more, choose an upgraded plan that suits your needs.")),n.createElement("p",null,(0,f.t)("TradingView alerts run on powerful servers with backups, so you'll always get notified when something happens.")))}),intradayExchange:()=>({title:(0,f.t)("Official real-time, intraday and volume data"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("The free account features End-Of-Day US futures data only.")),n.createElement("p",null,(0,f.t)("Delayed or real-time CME data can be purchased separately by any user with an upgraded plan. The trial also comes with access to and real-time data from premium exchanges and extra features.")),n.createElement("p",null,(0, +f.t)("Exchanges charge TradingView redistribution fees and per-user fees for delivery of intraday and real-time data, So, we can't give this data for free to everyone (as much as we'd like to).")))}),savedChartsLimit:e=>{var t,a,n,o,r,i,s,l,u,c,d,m,p,h;const P=e.state,w=(0,f.t)("Your {plan} plan has a {number} chart layout limit. But, no stress, our upgraded plans let you save multiple layouts — perfect if you want to revisit your market analysis at a moment's notice.",{plural:"Your {plan} plan has {number} charts layout limit. But, no stress, our upgraded plans let you save multiple layouts — perfect if you want to revisit your market analysis at a moment's notice.",count:null===(t=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===t?void 0:t.limit}),S=(0,f.t)("Your plan has a {number} chart layout limit. But, no stress, our upgraded plans let you save multiple layouts — perfect if you want to revisit your market analysis at a moment's notice.",{plural:"Your plan has {number} charts layout limit. But, no stress, our upgraded plans let you save multiple layouts — perfect if you want to revisit your market analysis at a moment's notice.",count:null===(a=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===a?void 0:a.limit});let E;switch(P){case _.ProPlans.Pro+b.TRIAL_SUFFIX:E=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(o=null===(n=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===n?void 0:n.limit)||void 0===o?void 0:o.toString())||""});break;case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:E=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(i=null===(r=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===r?void 0:r.limit)||void 0===i?void 0:i.toString())||""});break;case _.ProPlans.Pro:E=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(l=null===(s=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===s?void 0:s.limit)||void 0===l?void 0:l.toString())||""});break;case _.ProPlans.ProRealtime:E=w.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(c=null===(u=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===u?void 0:u.limit)||void 0===c?void 0:c.toString())||""});break;case _.ProPlans.ProMiniAlerts:case _.ProPlans.ProMiniAds:case _.ProPlans.ProMiniLayouts:case _.ProPlans.ProEdu:E=S.format({number:(null===(m=null===(d=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===d?void 0:d.limit)||void 0===m?void 0:m.toString())||""});break;default:E=S.format({number:(null===(h=null===(p=(0,v.getConfig)(y.ProductFeatures.CHART_STORAGE))||void 0===p?void 0:p.limit)||void 0===h?void 0:h.toString())||""})}return{imageUrl:{[g.StdTheme.Light]:N,[g.StdTheme.Dark]:U},title:(0,f.t)("Simplify your trading by saving more charts layouts"),content:E}},studyLimit:e=>{var t,a,o,r,i,s,l,u,c,d,m,p,h,P,w,S,E,T,x,k,D,F,A,O,I,L,N,U,M,B;const z=e.state,G=e.options.join(", ");let W;const H=(0,f.t)("Right now, your {plan} plan has a {number} indicator limit.",{ +plural:"Right now, your {plan} plan has {number} indicators limit.",count:null===(t=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===t?void 0:t.limit}),V=z===_.ProPlans.ProPremium?(0,f.t)("You're at maximum indicator-ness"):(0,f.t)("More indicators, more trading possibilities"),Y=n.createElement("p",null,(0,f.t)("The indicators currently on your chart are: {studiesList}").format({studiesList:G}));switch(z){case _.ProPlans.Pro+b.TRIAL_SUFFIX:W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Reveal hidden trends and trading opportunities with up to {number} indicator per chart, only on our upgraded plans.",{plural:"Reveal hidden trends and trading opportunities with up to {number} indicators per chart, only on our upgraded plans.",count:null===(a=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===a?void 0:a.limit}).format({number:(null===(r=null===(o=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===o?void 0:o.limit)||void 0===r?void 0:r.toString())||"25"})," ",H.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(s=null===(i=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===i?void 0:i.limit)||void 0===s?void 0:s.toString())||""})),Y);break;case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Reveal hidden trends and trading opportunities with up to {number} indicator per chart, only on our upgraded plans.",{plural:"Reveal hidden trends and trading opportunities with up to {number} indicators per chart, only on our upgraded plans.",count:null===(l=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===l?void 0:l.limit}).format({number:(null===(c=null===(u=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===u?void 0:u.limit)||void 0===c?void 0:c.toString())||"25"})," ",H.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(m=null===(d=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===d?void 0:d.limit)||void 0===m?void 0:m.toString())||""})),Y);break;case _.ProPlans.Pro:W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Reveal hidden trends and trading opportunities with up to {number} indicator per chart, only on our upgraded plans.",{plural:"Reveal hidden trends and trading opportunities with up to {number} indicators per chart, only on our upgraded plans.",count:null===(p=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===p?void 0:p.limit}).format({number:(null===(P=null===(h=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===h?void 0:h.limit)||void 0===P?void 0:P.toString())||"25"})," ",H.format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro),number:(null===(S=null===(w=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===w?void 0:w.limit)||void 0===S?void 0:S.toString())||""})),Y);break;case _.ProPlans.ProRealtime: +W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Reveal hidden trends and trading opportunities with up to {number} indicator per chart, only on our upgraded plans.",{plural:"Reveal hidden trends and trading opportunities with up to {number} indicators per chart, only on our upgraded plans.",count:null===(E=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===E?void 0:E.limit}).format({number:(null===(x=null===(T=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===T?void 0:T.limit)||void 0===x?void 0:x.toString())||"25"})," ",H.format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),number:(null===(D=null===(k=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===k?void 0:k.limit)||void 0===D?void 0:D.toString())||""})),Y);break;case _.ProPlans.ProPremium:W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Premium plans have a {number} indicator limit and you've hit it. Please have a think about which ones you 'really' need, and remove any you don't, to free up more space.",{plural:"Premium plans have a {number} indicators limit and you've hit it. Please have a think about which ones you 'really' need, and remove any you don't, to free up more space.",count:null===(F=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===F?void 0:F.limit}).format({number:(null===(O=null===(A=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===A?void 0:A.limit)||void 0===O?void 0:O.toString())||"25"})));break;default:W=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Reveal hidden trends and trading opportunities with up to {number} indicator per chart, only on our upgraded plans.",{plural:"Reveal hidden trends and trading opportunities with up to {number} indicators per chart, only on our upgraded plans.",count:null===(I=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===I?void 0:I.limit}).format({number:(null===(N=null===(L=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART,_.ProPlans.ProPremium))||void 0===L?void 0:L.limit)||void 0===N?void 0:N.toString())||"25"})," ",(0,f.t)("Right now, your plan has a {number} indicator limit.",{plural:"Right now, your plan has {number} indicators limit.",count:null===(U=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===U?void 0:U.limit}).format({number:(null===(B=null===(M=(0,v.getConfig)(y.ProductFeatures.INDICATORS_ON_CHART))||void 0===M?void 0:M.limit)||void 0===B?void 0:B.toString())||""})),Y)}return{imageUrl:{[g.StdTheme.Light]:C,[g.StdTheme.Dark]:R},title:V,content:W}},savedChartsForAlertLimit:e=>{var t,a,o,r,i,s,l,u,c;let d;switch(e.state){case _.ProPlans.Pro:d=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently on the {plan} plan, which supports up to 5 saved charts.").format({plan:(0, +b.humanizeProPlan)(_.ProPlans.Pro)})),n.createElement("p",null,(0,f.t)("If you need more, the {proPlusPlan} plan handles 10 and the {premiumPlan} plan unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.").format({proPlusPlan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),premiumPlan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})));break;case _.ProPlans.ProRealtime:d=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently on the {plan} plan, which supports up to 10 saved charts.").format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime)})),n.createElement("p",null,(0,f.t)("If you need more, the {premiumPlan} plan unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.").format({premiumPlan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})));break;case _.ProPlans.Pro+b.TRIAL_SUFFIX:d=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Setting alerts on drawing requires saving the chart, and you've run out of space. You are currently trying the {plan} plan, which supports up to 5 saved charts.").format({plan:(0,b.humanizeProPlan)(_.ProPlans.Pro)})),n.createElement("p",null,(0,f.t)("If you need more, you can switch your trial for FREE to the {proPlusPlan} (up to 10 saved charts) or the {premiumPlan} plan (unlimited saved charts). The plans also comes with many other exciting features.").format({proPlusPlan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),premiumPlan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})),n.createElement("p",null,Ve));break;case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:d=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Setting alerts on drawing requires saving the chart, and you've run out of space. You are trying the {plan} plan, which supports up to 10 saved charts.").format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime)})),n.createElement("p",null,(0,f.t)("If you need more, you can switch your trial for FREE to the {plan} plan with unlimited number of saved charts. The plan also comes with many other exciting features!").format({plan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})),n.createElement("p",null,Ve));break;default:d=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Setting alerts on drawing requires saving the chart, and you've run out of space. Free plans support {number} saved chart.",{plural:"Setting alerts on drawing requires saving the chart, and you've run out of space. Free plans support {number} saved charts.",count:null===(t=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.Free))||void 0===t?void 0:t.limit}).format({number:(null===(o=null===(a=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.Free))||void 0===a?void 0:a.limit)||void 0===o?void 0:o.toString())||""})),n.createElement("p",null,(0,f.t)("The PRO plan supports {number} saved chart,",{plural:"The PRO plan supports {number} saved charts,",count:null===(r=(0, +v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.Pro))||void 0===r?void 0:r.limit,context:"pro_plan_supports"}).format({number:(null===(s=null===(i=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.Pro))||void 0===i?void 0:i.limit)||void 0===s?void 0:s.toString())||""})," ",(0,f.t)("PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.",{plural:"PRO Plus handles {number} and Premium unlocks unlimited saved charts! Upgrade now and enjoy many other exciting features.",count:null===(l=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.ProRealtime))||void 0===l?void 0:l.limit,context:"pro_plan_supports"}).format({number:(null===(c=null===(u=(0,v.getConfig)(y.ProductFeatures.SERVER_SIDE_ALERTS,_.ProPlans.ProRealtime))||void 0===u?void 0:u.limit)||void 0===c?void 0:c.toString())||""})))}return{title:(0,f.t)("Saved charts"),content:d}},TickByTick:()=>({imageUrl:{[g.StdTheme.Light]:xe,[g.StdTheme.Dark]:ke},title:(0,f.t)("Unlock the fastest data flow possible"),content:(0,f.t)("To catch every small change, you need to see every trade, only on our upgraded plans. Never miss a beat again.")}),DelayToRealtime:e=>{const t=(0,f.t)("Data is delayed by {time} minute. If you don't want to make decisions with data that's {time} minute old, you can buy the real-time {openBold}{description}{closeBold} feed for this symbol from your {startLink}User Profile page > Account & Billing{endLink} tab. Note: you'll need a paid or trial plan to add this data to your chart.",{plural:"Data is delayed by {time} minutes. If you don't want to make decisions with data that's {time} minutes old, you can buy the real-time {openBold}{description}{closeBold} feed for this symbol from your {startLink}User Profile page > Account & Billing{endLink} tab. Note: you'll need a paid or trial plan to add this data to your chart.",count:e.options.time}).format({time:""+e.options.time,description:""+e.options.description}).split(He),a=n.createElement(n.Fragment,null,(!(0,d.isFeatureEnabled)("hide_gopro_popup_upgrade_button")||!(0,m.isOnMobileAppPage)("old"))&&n.createElement("p",null,t[0],n.createElement("b",null,t[1]),t[2],n.createElement("a",{href:`/u/${e.options.username}/#billing`,target:"_blank"},t[3]),t[4]));return{imageUrl:{[g.StdTheme.Light]:q,[g.StdTheme.Dark]:j},title:(0,f.t)("Data is delayed by {time} minutes").format({time:""+e.options.time}),content:a}},studyOnStudy:e=>{var t,a,n,o,r,i,s,l;const u=e.state;let c,d;switch(u){case _.ProPlans.ProPremium+b.TRIAL_SUFFIX:case _.ProPlans.ProPremium:d=(0,f.t)("You're at maximum indicator-ness"),c=(0,f.t)("{plan} plans have a limit of {max_number} indicator-on-indicators per chart layout... and you've hit it. Please have a think about which ones you 'really' need, and remove any you don't, to free up more space!",{ +plural:"{plan} plans have a limit of {max_number} indicators-on-indicators per chart layout... and you've hit it. Please have a think about which ones you 'really' need, and remove any you don't, to free up more space!",count:null===(t=(0,v.getConfig)(y.ProductFeatures.STUDY_ON_STUDY))||void 0===t?void 0:t.child_limit}).format({plan:(0,b.humanizeProPlan)((0,b.getProductForTrial)(u)),max_number:(null===(n=null===(a=(0,v.getConfig)(y.ProductFeatures.STUDY_ON_STUDY))||void 0===a?void 0:a.child_limit)||void 0===n?void 0:n.toString())||""});break;default:d=(0,f.t)("Unlock more insight with our indicator-on-indicator feature"),c=(0,f.t)("Adding indicators on top of each other unlocks new insights — like adding a Moving Average to a Volume indicator to get Average Volume over time. Stack up to {max_number} indicators-on-indicators with our upgraded plans. Right now, your {plan} plan has a {number} indicator-on-indicator limit.",{plural:"Adding indicators on top of each other unlocks new insights — like adding a Moving Average to a Volume indicator to get Average Volume over time. Stack up to {max_number} indicators-on-indicators with our upgraded plans. Right now, your {plan} plan has a {number} indicators-on-indicators limit.",count:null===(o=(0,v.getConfig)(y.ProductFeatures.STUDY_ON_STUDY))||void 0===o?void 0:o.child_limit}).format({max_number:(null===(i=null===(r=(0,v.getConfig)(y.ProductFeatures.STUDY_ON_STUDY,_.ProPlans.ProPremium))||void 0===r?void 0:r.child_limit)||void 0===i?void 0:i.toString())||"",plan:u?(0,b.humanizeProPlan)((0,b.getProductForTrial)(u)):"Basic",number:(null===(l=null===(s=(0,v.getConfig)(y.ProductFeatures.STUDY_ON_STUDY))||void 0===s?void 0:s.child_limit)||void 0===l?void 0:l.toString())||""})}return{imageUrl:{[g.StdTheme.Light]:ge,[g.StdTheme.Dark]:ve},title:d,content:c}},editCreatePublicChat:e=>{let t;switch(e.state){case _.ProPlans.Pro+b.TRIAL_SUFFIX:case _.ProPlans.ProRealtime+b.TRIAL_SUFFIX:case _.ProPlans.ProPremium+b.TRIAL_SUFFIX:t=n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Only users with paid subscriptions can create new public chats.")),n.createElement("p",null,(0,f.t)("Once your trial period is over and the payment for membership renewal is received, you'll be able to create new public chats.")));break;default:t=(0,f.t)("Don't see a public chat room on the topic you're most interested in? Then create it — only available on our upgraded plans.")}return{imageUrl:{[g.StdTheme.Light]:ye,[g.StdTheme.Dark]:Pe},title:(0,f.t)("Create new public chats"),content:t}},adFree:()=>({imageUrl:{[g.StdTheme.Light]:x,[g.StdTheme.Dark]:k},title:(0,f.t)("Go ad-free. Everywhere"),content:(0,f.t)("Ads are important for any business like ours, but you can go ad-free at any time via our upgraded plans. This way, you can enjoy trading without any distractions (and you'll get a load of extra features too).")}),screenerAutoRefresh:()=>({imageUrl:{[g.StdTheme.Light]:ie,[g.StdTheme.Dark]:se},title:(0,f.t)("Fresh opportunities, every 10 seconds"),content:(0, +f.t)("Keep your wish list updated with a screener that auto-refreshes every 10 seconds or one minute — only on our upgraded plans (plus you'll get a load of powerful extra features).")}),idcFreeUser:()=>({title:(0,f.t)("Delayed market data access"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("This market data is temporary not available for basic account holders according to the exchange regulations. We are working on making the delayed data available for all users on the free basis in the near future.")),n.createElement("p",null,(0,f.t)("Subscribe to any of our upgraded plans and you will be able to receive delayed data from this exchange right now!")))}),alertsNoExpiration:()=>({imageUrl:{[g.StdTheme.Light]:A,[g.StdTheme.Dark]:O},title:(0,f.t)("Want alerts that never die?"),content:(0,f.t)("Alerts on your plan expire after two months. But, good news, non-expiring alerts are available on our {premiumPlan} plan. Great if you're thinking about long-term trading opportunities.").format({premiumPlan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})}),barReplayIntraday:()=>({imageUrl:{[g.StdTheme.Light]:I,[g.StdTheme.Dark]:L},title:(0,f.t)("Test your strategies with intraday bar replays"),content:(0,f.t)("Practice predicting price movements, hour by hour, minute by minute and second by second — only on our upgraded plans. As the old saying goes, practice makes perfect (and profit).")}),screenerExportData:()=>({imageUrl:{[g.StdTheme.Light]:ce,[g.StdTheme.Dark]:de},title:(0,f.t)("Export data to where you need it"),content:(0,f.t)("Export all the Screener info you need with one of our upgraded plans. Simple.")}),screenerIntervals:()=>({imageUrl:{[g.StdTheme.Light]:le,[g.StdTheme.Dark]:ue},title:(0,f.t)("Monitor changes by the minute with our Screener's intraday time frames"),content:(0,f.t)("Be the first to know when an asset matches your chosen criteria, with our Screener's intraday time frame settings — only on our upgraded plans.")}),screenerIntervalsEod:()=>({title:(0,f.t)("Screener with all time frames"),content:(0,f.t)("{proPlan}, {proPlusPlan} and {premiumPlan} users can use the Screener on any time frame!").format({proPlan:(0,b.humanizeProPlan)(_.ProPlans.Pro),proPlusPlan:(0,b.humanizeProPlan)(_.ProPlans.ProRealtime),premiumPlan:(0,b.humanizeProPlan)(_.ProPlans.ProPremium)})}),publishInviteOnlyScripts:()=>({imageUrl:{[g.StdTheme.Light]:we,[g.StdTheme.Dark]:be},title:(0,f.t)("Publish invite-only scripts"),content:(0,f.t)("Publish invite-only scripts and build your community further via our Premium plan. Everyone else can publish open scripts only.")}),publishProtectedScripts:()=>({imageUrl:{[g.StdTheme.Light]:we,[g.StdTheme.Dark]:be},title:(0,f.t)("Publish protected scripts"),content:(0,f.t)("Build a community while guarding your secrets to success. Only upgraded plans can shield their scripts' code – everyone else must publish open-source scripts.")}),alertsWebhook:()=>({imageUrl:{[g.StdTheme.Light]:Ee,[g.StdTheme.Dark]:Te},title:(0,f.t)("React instantly with webhook notifications"), +content:(0,f.t)("Unlock endless algorithmic trading opportunities with instant reactions to triggered alerts — only on our upgraded plans. Take your analysis and algo trading to a whole new level.")}),exportChartData:()=>{const e=(0,f.t)("Export all the chart info you need with our {bold_start}Pro+{bold_end} and {bold_start}Premium{bold_end} plans. Easy.").split(He),t=n.createElement("p",null,e[0],n.createElement("strong",null,e[1]),e[2],n.createElement("strong",null,e[3]),e[4]);return{imageUrl:{[g.StdTheme.Light]:me,[g.StdTheme.Dark]:pe},title:(0,f.t)("Export data to where you need it"),content:t}},alertsOnSeconds:()=>({title:(0,f.t)("Second-Based Chart Alerts"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Upgrade to the {pro_plan_name} plan to unlock this feature. Get alerts on a second-based chart delivered through email, mobile or desktop notifications. Premium plans also come with additional features like the fastest data flow, volume profile indicators, and other exciting tools.").format({pro_plan_name:(0,b.humanizeProPlan)(E(y.ProductFeatures.ALERTS_ON_SECONDS)||"")})),n.createElement("p",null,(0,f.t)("Alerts are how you save time and make markets work for you. The {pro_plan_name} plan allows you to create alerts for price, specific indicators or custom drawings on a second-based chart.").format({pro_plan_name:(0,b.humanizeProPlan)(E(y.ProductFeatures.ALERTS_ON_SECONDS)||"")})))}),volumeProfile:()=>({imageUrl:{[g.StdTheme.Light]:_e,[g.StdTheme.Dark]:Se},title:(0,f.t)("Volume Profile"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("This is an extremely valuable tool that highlights the most traded prices over a timeframe. Volume profile is often used by traders to identify basic support and resistance levels so they can time their trades and maximize profits.")),n.createElement("p",null,(0,f.t)("It's available only on our upgraded plans.")))}),sessionLogout:e=>{let t;if(e.options){const{device:a,ip:o,browser:r}=e.options,i=(0,f.t)("Device: {nameDevice}, IP: {valueIp}, Browser: {nameBrowser}").split(He);t=n.createElement("p",null,(0,f.t)("Your session was terminated from device:"),n.createElement("br",null),i[0],n.createElement("strong",null,a),i[1],n.createElement("strong",null,o),i[2],n.createElement("strong",null,r))}const a=n.createElement(n.Fragment,null,t,n.createElement("p",null,(0,f.t)("You need to refresh the page and log in to continue surfing.")));return{imageUrl:{[g.StdTheme.Light]:Ce,[g.StdTheme.Dark]:Re},title:(0,f.t)("This session is terminated"),content:a}},sessionLock:e=>{let t;if(e.options){const{device:a,ip:o,browser:r}=e.options,i=(0,f.t)("Device: {nameDevice}, IP: {valueIp}, Browser: {nameBrowser}").split(He);t=n.createElement("p",null,(0,f.t)("You or somebody else just logged into your account from a different device:"),n.createElement("br",null),i[0],n.createElement("strong",null,a),i[1],n.createElement("strong",null,o),i[2],n.createElement("strong",null,r))}const a=n.createElement(n.Fragment,null,t,n.createElement("p",null,(0, +f.t)("If this was indeed you, just click on the Connect button and you can continue working from here. If not, please change your password and turn on two-factor authentication.")));return{imageUrl:{[g.StdTheme.Light]:Ce,[g.StdTheme.Dark]:Re},title:(0,f.t)("Session disconnected"),content:a}},deepFundamentalsNotification:()=>({imageUrl:{[g.StdTheme.Light]:De,[g.StdTheme.Dark]:Fe},title:(0,f.t)("Get financial data over longer time periods"),content:(0,f.t)("Access fundamental data over even longer time periods with one of our upgraded plans.")}),multipleWatchLists:()=>({imageUrl:{[g.StdTheme.Light]:V,[g.StdTheme.Dark]:Y},title:(0,f.t)("Sort your symbols better with more watchlists"),content:n.createElement("p",null,(0,f.t)("Monitor even more watchlists, plus import/export functionality with one of our upgraded plans — perfect for those who like to keep their opportunities organized."))}),importWatchlist:()=>({imageUrl:{[g.StdTheme.Light]:V,[g.StdTheme.Dark]:Y},title:(0,f.t)("Sort your symbols better with more watchlists"),content:n.createElement("p",null,(0,f.t)("Monitor even more watchlists, plus import/export functionality with one of our upgraded plans — perfect for those who like to keep their opportunities organized."))}),exportWatchlist:()=>({imageUrl:{[g.StdTheme.Light]:V,[g.StdTheme.Dark]:Y},title:(0,f.t)("Sort your symbols better with more watchlists"),content:n.createElement("p",null,(0,f.t)("Monitor even more watchlists, plus import/export functionality with one of our upgraded plans — perfect for those who like to keep their opportunities organized."))}),upgradeNotification:()=>({imageUrl:{[g.StdTheme.Light]:Ae,[g.StdTheme.Dark]:Oe},contentAlign:h.ContentAlign.Center,title:(0,f.t)("Take your subscription to the next level"),content:n.createElement("p",{className:We.upgradeNotificationDescription},(0,f.t)("Get all our upgraded features — no extra charge"))}),[T.LastChanceType.TwoWeeks]:()=>{var e;const t=((null===(e=window.user.available_offers[T.OFFERS.last_chance])||void 0===e?void 0:e.max_discount)||"").toString();return{imageUrl:{[g.StdTheme.Light]:Ie,[g.StdTheme.Dark]:Le},contentAlign:h.ContentAlign.Center,title:(0,f.t)("Wait, don't go"),content:n.createElement("p",null,(0,f.t)("Get up to {discount}% off a new plan if you decide to renew with us before your current one ends.").format({discount:t}))}},[T.LastChanceType.TwoDays]:()=>{var e;const t=((null===(e=window.user.available_offers[T.OFFERS.last_chance])||void 0===e?void 0:e.max_discount)||"").toString();return{imageUrl:{[g.StdTheme.Light]:Ie,[g.StdTheme.Dark]:Le},contentAlign:h.ContentAlign.Center,title:(0,f.t)("Time's running out!"),content:n.createElement("p",null,(0,f.t)("Your subscription expires soon – claim your special offer and save up to {discount}% before it's too late.").format({discount:t}))}},[T.LastChanceType.Hours]:()=>{var e,t +;const a=null===(e=window.user.available_offers[T.OFFERS.last_chance])||void 0===e?void 0:e.expire_on,o=((null===(t=window.user.available_offers[T.OFFERS.last_chance])||void 0===t?void 0:t.max_discount)||"").toString(),r=(0,f.t)("Your subscription isn't set to auto-renew, so you'll lose your benefits very soon... This is your last chance to claim up to {discount}% discount.").format({discount:o});return{imageUrl:{[g.StdTheme.Light]:Ie,[g.StdTheme.Dark]:Le},contentAlign:h.ContentAlign.Center,title:(0,f.t)("The countdown has started."),content:n.createElement(n.Fragment,null,n.createElement("p",null,r),n.createElement("div",{className:We.countDown},n.createElement(P.OfferCountdown,{theme:w.CountdownTheme.Profile,expiration:a,size:"m"})))}},oneUsd:()=>({imageUrl:{[g.StdTheme.Light]:Ne,[g.StdTheme.Dark]:Ue},title:(0,f.t)("Get an upgrade for $1"),content:n.createElement("p",null,(0,f.t)("Time to make the math work for you. We've got an offer: one month of upgraded features for one dollar."))}),SixMonths:()=>({imageUrl:{[g.StdTheme.Light]:Me,[g.StdTheme.Dark]:Be},title:(0,f.t)("Buy 6 months, get 6 months free"),content:n.createElement("p",null,(0,f.t)("What's better than an annual TradingView plan? An annual TradingView plan with 50% off.")+" "+(0,f.t)("Get yours now"))}),manyDesktopWindows:()=>({imageUrl:{[g.StdTheme.Light]:M,[g.StdTheme.Dark]:B},title:(0,f.t)("More windows mean more options"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("With our free account you can open as many windows as you like and get the most out of your multi-monitor setup. Don't have an account yet? Click the button below to get started and start working with multiple windows."))),upgradeMessage:(0,f.t)("Sign up for free")}),backtestingExport:()=>({imageUrl:{[g.StdTheme.Light]:ze,[g.StdTheme.Dark]:Ge},title:(0,f.t)("Export your strategy data"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Take your strategies with you: export your performance and overview data to a CSV file, only with our Premium plan. Upgrade today.")))}),checkingNSE:()=>({imageUrl:{[g.StdTheme.Light]:q,[g.StdTheme.Dark]:j},title:(0,f.t)("Attention"),content:n.createElement(n.Fragment,null,n.createElement("p",null,(0,f.t)("Please note all NSE data is available free of charge to any visiting user. You'll be redirected to an open website now.")))}),deepHistoryBacktest:()=>({imageUrl:{[g.StdTheme.Light]:ge,[g.StdTheme.Dark]:ve},title:(0,f.t)("Deep Backtesting"),content:(0,f.t)("Upgrade to Premium today to access backtesting data for any date in a symbol's entire history – at the moment your subscription only allows you to calculate using data loaded on the chart.")})};var Xe=a(22385),$e=a(36772),Ze=a(55367);function Qe(e){return n.createElement(n.Fragment,null,e.children,n.createElement("p",{className:Ze["upgrade-not-available"]},f.t("You can't upgrade to Premium in the app. It sucks, we know.")))}let Je=!1;async function et(e){var t,a;if(r.enabled("referral_program_for_widget_owners"))return(0, +p.showGoToTradingViewReferralDialog)(e);if("sessionLock"!==e.feature&&"manyDesktopWindows"!==e.feature||(Je=!1),Je)return;const f=(0,s.guid)(),g=(0,i.getRootOverlapManager)(),v=g.ensureWindow(f),y=e.actionAfterClose,P=()=>{o.unmountComponentAtNode(v),g.removeWindow(f),Je=!1,y&&y()},w=e.template?e.template:function(e){return e.feature?Ke[e.feature](e):je}({feature:e.feature,options:e.customParams,state:window.user.pro_plan});w.upgradeMessage&&(e.upgradeMessage=w.upgradeMessage);const b=[(0,Xe.getGoproDefaultAction)(e)];let _=null!==(a=null===(t=e.actions)||void 0===t?void 0:t.map(t=>{const a=t.options;return"action"in t&&t.action===h.PredefinedAction.OpenGopro&&void 0===a?{...t,options:(0,Xe.getOpenGoProOptions)(e)}:void 0===(null==a?void 0:a.feature)?{...t,options:{...a,feature:e.feature}}:t}))&&void 0!==a?a:b;(0,d.isFeatureEnabled)("hide_gopro_popup_upgrade_button")&&(0,m.isOnMobileAppPage)("old")&&(_=[],w.content=n.createElement(Qe,null,w.content));const S={closeOnOutsideClick:e.closeOnOutsideClick,closeOnEsc:e.closeOnEsc,closeButton:e.closeButton,template:w,actions:_,afterOpen:function(){e.feature&&e.featureLocation&&(t=e.feature,a=e.featureLocation,t&&t in l.default.trackFeature&&(0,u.trackGoProFeature)(t,a));var t,a;(0,Xe.sendSnowplowAnalitycs)(e.feature,"open",window.user.id),(0,c.trackEvent)("GoPro Dialog",e.feature)},onCloseButton:function(){(0,Xe.sendSnowplowAnalitycs)(e.feature,"close_button",window.user.id),P()},onClose:P,onCloseEsc:function(){(0,Xe.sendSnowplowAnalitycs)(e.feature,"close_esc",window.user.id),P()}};Je=!0,o.render(n.createElement($e.PromotionLayout,{...S}),v)}},96783:(e,t,a)=>{"use strict";var n,o;a.d(t,{PredefinedAction:()=>n,ContentAlign:()=>o}),function(e){e.Close="close",e.OpenGopro="openGopro"}(n||(n={})),function(e){e.Center="center",e.Left="left"}(o||(o={}))},36772:(e,t,a)=>{"use strict";a.d(t,{PromotionLayout:()=>E});var n=a(59496),o=a(97754),r=a(77975),i=a(37005),s=a(96783),l=a(22385),u=a(26843),c=a(28353),d=a(74664),m=a(90692),p=a(9481),h=a(67844),f=a(3767),g=a(81e3),v=a(42360);function y(e){const{children:t,width:a,autofocus:r,closeButton:i,closeOnEsc:s}=e,l=n.createElement(n.Fragment,null,s&&n.createElement(p.KeyboardDocumentListener,{keyCode:27,handler:function(t){t.stopPropagation(),e.onCloseEsc()}}),i&&n.createElement(h.CloseButton,{className:v.closeButton,"aria-label":c.t("Close",{context:"input"}),onClick:function(){e.onCloseButton()}}),t);return n.createElement(m.MatchMedia,{rule:`screen and (max-width: ${d.breakpoints.phone}px)`},t=>t?n.createElement(g.PopupDialog,{isOpened:!0,fullscreen:!0,className:o(v.dialog,v.radius),"data-dialog-name":e["data-dialog-name"],autofocus:r},l):n.createElement(f.Modal,{className:v.dialog,width:a,isOpened:!0,"data-dialog-name":e["data-dialog-name"],autofocus:r},l))}var P=a(5437);function w(e){const{addClass:t,text:a,variant:r,color:i,onClick:s}=e;return n.createElement(P.RoundButton,{className:o(t,v.actionButton),onClick:s,variant:r,color:i},a)}var b=a(45345),_=a(99804),S=a(16581);function E(e){ +const{onClose:t,onCloseEsc:a,onCloseButton:c=t,actions:d,closeOnOutsideClick:m,closeButton:p=!0,closeOnEsc:h=!0,afterOpen:f}=e,{title:g,subtitle:P,content:E,imageUrl:T,contentAlign:x=s.ContentAlign.Left}=e.template,k=(0,r.useWatchedValueReadonly)({watchedValue:b.watchedTheme})||u.StdTheme.Light,C=k===u.StdTheme.Light?_:S;(0,i.useFixedBody)(),n.useEffect(()=>{f&&f()},[]);return n.createElement(y,{width:720,onCloseButton:c,onCloseEsc:null!=a?a:t,closeOnOutsideClick:m,"data-dialog-name":"gopro",autofocus:!0,closeButton:p,closeOnEsc:h},n.createElement("div",{className:v.container},T&&T[k]?n.createElement("div",{className:v.wrapperImage},n.createElement("img",{src:T[k]})):n.createElement("div",{className:v.wrapperImage},n.createElement("img",{src:C})),n.createElement("div",{className:v.title},g),P&&n.createElement("div",{className:v.subtitle},P),n.createElement("div",{className:o(v.description,v[x])},E,n.createElement("div",{className:v.wrapperButton},d.map((e,a)=>{let o;return o="action"in e?e.action===s.PredefinedAction.Close?{...e,onClick:()=>{e.onClick&&e.onClick(),c()}}:e.action===s.PredefinedAction.OpenGopro?{...e,onClick:()=>{var e;return(0,l.openGoPro)(null!==(e=o.options)&&void 0!==e?e:{},t)}}:{onClick:t}:e,n.createElement(w,{...o,key:a})})))))}},22385:(e,t,a)=>{"use strict";a.d(t,{getGoproDefaultAction:()=>b,getOpenGoProOptions:()=>w,openGoPro:()=>P,sendSnowplowAnalitycs:()=>y});var n=a(28353),o=a(87887),r=a.n(o),i=a(23578),s=a(96783),l=a(91955),u=a(53402);var c=a(82531),d=a(46198),m=a(42879),p=a(11203),h=a(76266),f=a(84015);const g="gopro-dialog",v="gopro_dialog";function y(e,t,a){(0,l.getTracker)().then(n=>{n&&n.trackPermissionDialog(e||g,t,(a||"").toString())})}function P(e,t){var a;t(),y(null!==(a=e.feature)&&void 0!==a?a:g,"accept",window.user.id),!(0,h.isFeatureEnabled)("braintree-gopro-in-order-dialog")||window.TVD||(0,f.isOnMobileAppPage)("any")?function(e){const{feature:t,visitPaymentPage:a,goproSource:n=v,goOnMarkets:o}=e;if(void 0!==a)return void(0,i.visitPaymentPage)(a.billing_cycle,a.options);const r=new URL("./gopro/",window.location.origin);r.searchParams.append("source",n),t&&r.searchParams.append("feature",t);o&&(r.hash="markets");window.open(r.href,"_blank")}(e):async function(e){var t;const{feature:a=g,visitPaymentPage:n,goOnMarkets:o}=e,r=null!==(t=e.goproSource)&&void 0!==t?t:v+"__"+a;window.runOrSignIn(()=>{var e;if(void 0!==n||o&&Boolean(window.user.is_pro)){const t=null!==(e=null==n?void 0:n.options)&&void 0!==e?e:{};let{productName:a}=t;return void 0===a&&(a=!window.user.is_pro&&o?d.ProPlans.ProRealtime:a),void(0,i.visitPaymentPage)(null==n?void 0:n.billing_cycle,{...t,productName:a,exchangesOnly:window.user.is_pro&&o,exchangesExpanded:o})}(0,p.showGoProOrderDialog)({source:r,feature:a,statusExtraData:o?m.StatusExtraData.Enable:void 0})},{source:r,feature:a,startTrial:e.triaIfSignIn})}(e)}function w(e){const{feature:t,goproSource:a,goOnMarkets:n,blank:o}=e;return{feature:t,visitPaymentPage:e.visitPaymentPage,goproSource:a,goOnMarkets:n,blank:o}}function b(e){var t +;const{upgradeMessage:a,forceUpgradeBtn:o}=e,i=null!==(t=e.isTrialAvailable)&&void 0!==t?t:r().isTrialAvailable(),l=(0,c.getTrialLength)(),d=w(e);return!window.is_authenticated||i?{action:s.PredefinedAction.OpenGopro,text:a||n.t("{days}-day free trial",{plural:"{days}-day free trial",context:"free_trial",count:l}).format({days:l.toString()}),options:{...d,triaIfSignIn:!0}}:o||(!window.user.is_trial||function(){const e=window.user;if(!e.is_trial)return[];const t=window.pro.getProPlans(!0),a=t.indexOf((0,u.getProductForTrial)(e.pro_plan));return a>-1?(t.splice(0,a+1),t):[]}().length)&&function(){const e=window.pro.getProPlans(!0),t=window.user.pro_plan;if(t){const a=e.indexOf(t);a>-1&&e.splice(0,a+1)}return e}().length?{action:s.PredefinedAction.OpenGopro,text:a||n.t("Upgrade now"),options:d}:{action:s.PredefinedAction.Close,text:a||n.t("Cancel",{context:"input"})}}},11203:(e,t,a)=>{"use strict";function n(e){return Promise.all([a.e(9685),a.e(5514),a.e(8463),a.e(2e3),a.e(9289),a.e(6363),a.e(7427),a.e(5998),a.e(3713),a.e(3848),a.e(7552),a.e(1692),a.e(6750),a.e(9410),a.e(1253),a.e(6767),a.e(2525),a.e(1726),a.e(9565),a.e(8948),a.e(1201),a.e(3812),a.e(2947),a.e(8178),a.e(3738),a.e(1946),a.e(9040),a.e(8357)]).then(a.bind(a,88930)).then(t=>t.openGoProOrderDialog(e))}a.d(t,{showGoProOrderDialog:()=>n})},52953:(e,t,a)=>{"use strict";function n(e){return Promise.all([a.e(9685),a.e(5514),a.e(8463),a.e(2e3),a.e(9289),a.e(6363),a.e(7427),a.e(5998),a.e(3713),a.e(3848),a.e(7552),a.e(1692),a.e(6750),a.e(9410),a.e(1253),a.e(6767),a.e(2525),a.e(1726),a.e(9565),a.e(8948),a.e(1201),a.e(3812),a.e(2947),a.e(8178),a.e(3738),a.e(1946),a.e(9040),a.e(8357)]).then(a.bind(a,88930)).then(t=>t.openPaymentOrderDialog(e))}a.d(t,{showPaymentOrderDialog:()=>n})},42879:(e,t,a)=>{"use strict";var n;a.d(t,{StatusExtraData:()=>n}),function(e){e.Enable="enable",e.Disable="disable"}(n||(n={}))},17136:(e,t,a)=>{"use strict";a.d(t,{check:()=>o});var n=a(93573);async function o(){const{is_restricted:e}=await(0,n.getCountries)();return e}},78820:(e,t,a)=>{"use strict";a.r(t),a.d(t,{showRestrictedCountryNotificationDialog:()=>r});var n=a(28353),o=a(3615);function r(){(0,o.showWarning)({title:(0,n.t)("We can't accept your payment right now"),text:(0,n.t)("TradingView needs to comply with U.S. trade embargoes and economic sanctions, so we're unable to accept any payments from the region you're in at the moment.")})}},24846:(e,t,a)=>{"use strict";async function n(e){(await Promise.all([a.e(5030),a.e(4816)]).then(a.bind(a,35419))).renderSixMonthsDialog(e)}a.d(t,{showSixMonthsDialog:()=>n})},90732:(e,t,a)=>{"use strict";async function n(e={}){return(await Promise.all([a.e(509),a.e(3118),a.e(1729),a.e(6708),a.e(5904),a.e(1536),a.e(7678),a.e(1653)]).then(a.bind(a,10293))).trialMessageSuccessDialog(e)}a.d(t,{trialMessageSuccessDialog:()=>n})},74607:(e,t,a)=>{"use strict";function n(e){return decodeURIComponent(e.replace(/\+/g," ")).replace(/<\/?[^>]+(>|$)/g,"")}function o(e){const t=/([^&=]+)=?([^&]*)/g,a={};if(!e)return a;let o=t.exec(e);for(;o;)a[n(o[1])]=n(o[2]), +o=t.exec(e);return a}function r(){return o(window.location.search.substring(1))}function i(e){const t=[];for(const a in e)e.hasOwnProperty(a)&&null!=e[a]&&t.push({key:a,pair:encodeURIComponent(a)+"="+encodeURIComponent(e[a])});return t.sort((e,t)=>e.key>t.key?1:e.keye.pair).join("&")}a.d(t,{getUrlParams:()=>r,createUrlParams:()=>i})},23578:(e,t,a)=>{"use strict";a.d(t,{visitPaymentPage:()=>d});var n=a(28353),o=a(62046),r=a(52953),i=a(78540),s=a(76266),l=a(42879),u=a(17136),c=a(78820);function d(e="y",t={}){var a;const d=null!==(a=t.productName)&&void 0!==a?a:"pro",m=t.paymentMethod||"paypal",p="bitcoin"===m?"Bitcoin payment":"Paypal payment";window.runOrSignIn(async()=>{if(await(0,u.check)())return void(0,c.showRestrictedCountryNotificationDialog)();if("function"==typeof t.canVisit&&!t.canVisit())return void(location.href="/");if((0,s.isFeatureEnabled)("braintree-trial-implementation"))return void(0,r.showPaymentOrderDialog)({productId:t.productName,billingCycle:t.exchangesOnly?i.BillingCycle.Monthly:e,fixedCycle:t.fixedCycle,statusExtraData:t.exchangesExpanded?l.StatusExtraData.Enable:void 0});const a=(0,o.parseHtmlElement)(`
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
`);a&&(document.body.appendChild(a),a.submit())},{source:p,paidAccountCheck:window.pro&&window.pro.getProduct(d).type===window.pro.PRODUCT_TYPES.pro_plan,paidAccountSuccessButtonText:(0,n.t)("Continue purchasing")})}},39640:(e,t,a)=>{"use strict";function n(e,t,a,n,o){function r(o){if(e>o.timeStamp)return;const r=o.target;void 0!==a&&null!==t&&null!==r&&r.ownerDocument===n&&(t.contains(r)||a(o))}return o.click&&n.addEventListener("click",r,!1),o.mouseDown&&n.addEventListener("mousedown",r,!1),o.touchEnd&&n.addEventListener("touchend",r,!1),o.touchStart&&n.addEventListener("touchstart",r,!1),()=>{n.removeEventListener("click",r,!1),n.removeEventListener("mousedown",r,!1),n.removeEventListener("touchend",r,!1),n.removeEventListener("touchstart",r,!1)}}a.d(t,{addOutsideEventListener:()=>n})},74664:(e,t,a)=>{"use strict";a.d(t,{breakpoints:()=>n,mobileFirstBreakpoints:()=>o,mobileFirstLegacyBreakpoints:()=>r});const n={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},o={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920, +"media-mf-desktop-extra-large":2560},r={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},68722:(e,t,a)=>{"use strict";a.d(t,{getScrollbarWidth:()=>n,matchMediaMinMax:()=>o,setStyle:()=>r,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>s});const n=(()=>{let e;return()=>{var t;if(void 0===e){const a=document.createElement("div"),n=a.style;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(a);const o=a.offsetWidth;a.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",a.appendChild(r);const i=r.offsetWidth;null===(t=a.parentNode)||void 0===t||t.removeChild(a),e=o-i}return e}})();function o(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function r(e,t,a){null!==e&&e.style.setProperty(t,a)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function s(e,t){return parseInt(i(e,t))}},43989:(e,t,a)=>{"use strict";a.d(t,{setFixedBodyState:()=>i});var n=a(68722);let o=0,r=!1;function i(e){const{body:t}=document,a=t.querySelector(".widgetbar-wrap");if(e&&1==++o){const e=(0,n.getCSSProperty)(t,"overflow"),o=(0,n.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,n.setStyle)(a,"right",(0,n.getScrollbarWidth)()+"px"),t.style.paddingRight=o+(0,n.getScrollbarWidth)()+"px",r=!0),t.classList.add("i-no-scroll")}else if(!e&&o>0&&0==--o&&(t.classList.remove("i-no-scroll"),r)){(0,n.setStyle)(a,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,n.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",r=!1}}},91955:(e,t,a)=>{"use strict";async function n(){if(!window.user||window.user.do_not_track)return null;{const e=(await Promise.all([a.e(2917),a.e(4081)]).then(a.bind(a,98491))).getTrackerInstance();return e||null}}a.d(t,{getTracker:()=>n})},95695:(e,t,a)=>{"use strict";a.d(t,{default:()=>r});var n=a(51768);const o={filterNamesMap:{script_type:"Indicators and Strategies","script_type-indicators":"Indicators","script_type-strategies":"Strategies",stream:"All Markets","stream-stocks":"Stocks","stream-indices":"Indices","stream-commodities":"Commodities","stream-currencies":"Currencies","stream-bitcoin":"Bitcoin","interval-all":"All Intervals","interval-m":"Short Term","interval-h":"Medium Term","interval-dwm":"Long Term","sort-unmoderated":"Unmoderated","sort-trending":"Trending","sort-discussed":"Most Discussed","sort-viewed":"Most Viewed","sort-agreed":"Most Agreed","sort-suggested":"Suggested","sort-recent":"All Ideas","time-day":"Today","time-week":"This Week","time-month":"This Month","time-all":"All Time","by-everyone":"Everyone","by-following":"Following","by-me":"My Ideas"},goProFeaturesMap:{customIntervals:"Add Custom Interval",intradaySpread:"Inraday Spread",kagiRenko:"Japanese Intraday Chart",alerts:{prefix:"New Alerts Limit",widget:"Widget",chart:"Chart Header"}, +multipleCharts:"Multiple Charts Layout",savedChartsLimit:"Save Chart Limit",studyLimit:"Studies Limit",multipleWatchLists:{prefix:"Watchlists",new:"Create New List",rename:"Rename List",saveAs:"Save List As"},importWatchlist:"Watchlists Import Watchlist",exportWatchlist:"Watchlists Export Watchlist",BATSExchangePopup:"BATS Exchange Popup",DataQualityPopup:"Data Quality Popup",FreeDelayPopup:"Free Delay Popup",proRTProduct:"Volume Profile",studyOnStudy:"Unlimited Study on Study"},trackFeature:{savedChartsLimit:!0,BATSExchangePopup:!0,FreeDelayPopup:!0,DataQualityPopup:!0,intradaySpread:!0,studyOnStudy:!0},trackGoPro:function(e,t,a){a&&!t&&(t=a,a=null);var r=o.goProFeaturesMap[t];if(r){if(a){if("string"==typeof r)return;r="{0} {1}".format(r.prefix,r[a])}(0,n.trackEvent)(e,r)}}},r=o},87463:(e,t,a)=>{"use strict";a.r(t),a.d(t,{trackGoProFeature:()=>o});var n=a(95695);function o(e,t){n.default.trackGoPro("Gopro Features",e,t)}},67844:(e,t,a)=>{"use strict";a.d(t,{CloseButton:()=>n.CloseButton});var n=a(35582)},3767:(e,t,a)=>{"use strict";a.d(t,{Modal:()=>c});var n=a(59496),o=a(97754),r=a(98526),i=a(86431),s=a(76594),l=a(21935);class u extends n.PureComponent{constructor(){super(...arguments),this._containerRef=null,this._handleContainerRef=e=>{this._containerRef=e}}componentDidMount(){var e;this.props.autofocus&&(null===(e=this._containerRef)||void 0===e||e.focus())}render(){const{zIndex:e,onClickOutside:t,children:a,className:i}=this.props;return n.createElement("div",{ref:this._handleContainerRef,style:{zIndex:e},"data-dialog-name":this.props["data-dialog-name"],tabIndex:-1},n.createElement("div",{className:l.backdrop}),n.createElement("div",{className:l.wrap},n.createElement("div",{className:l.container},n.createElement(s.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:t},e=>n.createElement("div",{className:l.modal,ref:e},n.createElement(r.Dialog,{...this.props,className:o(i,l.dialog)},a))))))}}u.defaultProps={width:500};const c=(0,i.makeOverlapable)(u)},37005:(e,t,a)=>{"use strict";a.d(t,{useFixedBody:()=>r});var n=a(59496),o=a(43989);function r(){(0,n.useEffect)(()=>((0,o.setFixedBodyState)(!0),()=>{(0,o.setFixedBodyState)(!1)}),[])}},58095:(e,t,a)=>{"use strict";a.d(t,{useOutsideEvent:()=>r});var n=a(59496),o=a(39640);function r(e){const{click:t,mouseDown:a,touchEnd:r,touchStart:i,handler:s,reference:l,ownerDocument:u=document}=e,c=(0,n.useRef)(null),d=(0,n.useRef)(new CustomEvent("timestamp").timeStamp);return(0,n.useLayoutEffect)(()=>{const e={click:t,mouseDown:a,touchEnd:r,touchStart:i},n=l?l.current:c.current;return(0,o.addOutsideEventListener)(d.current,n,s,u,e)},[t,a,r,i,s]),l||c}},77975:(e,t,a)=>{"use strict";a.d(t,{useWatchedValueReadonly:()=>o});var n=a(59496);const o=(e,t=!1)=>{const a="watchedValue"in e?e.watchedValue:void 0,o="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[r,i]=(0,n.useState)(a?a.value():o);return(t?n.useLayoutEffect:n.useEffect)(()=>{if(a){i(a.value());const e=e=>i(e);return a.subscribe(e),()=>a.unsubscribe(e)}return()=>{}},[a]),r}},9481:(e,t,a)=>{"use strict";a.d(t,{ +KeyboardDocumentListener:()=>o});var n=a(59496);class o extends n.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},90692:(e,t,a)=>{"use strict";a.d(t,{MatchMedia:()=>o});var n=a(59496);class o extends n.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},76594:(e,t,a)=>{"use strict";a.d(t,{OutsideEvent:()=>o});var n=a(58095);function o(e){const{children:t,...a}=e;return t((0,n.useOutsideEvent)(a))}},88216:(e,t,a)=>{"use strict";a.d(t,{OverlapManager:()=>r,getRootOverlapManager:()=>s});var n=a(88537);class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class r{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,a=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,a),this._container=a}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const a=this._windows.get(e);if(void 0!==a)return a;this.registerWindow(e);const n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(n,e)}}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}} +removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function s(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,n.ensureDefined)(i.get(t));{const t=new r(e),a=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(a,t),t.setContainer(a),e.body.appendChild(a),t}}},86431:(e,t,a)=>{"use strict";a.d(t,{makeOverlapable:()=>r});var n=a(59496),o=a(65718);function r(e){return class extends n.PureComponent{render(){const{isOpened:t,root:a}=this.props;if(!t)return null;const r=n.createElement(e,{...this.props,zIndex:150});return"parent"===a?r:n.createElement(o.Portal,null,r)}}}},65718:(e,t,a)=>{"use strict";a.d(t,{Portal:()=>l,PortalContext:()=>u});var n=a(59496),o=a(87995),r=a(9423),i=a(88216),s=a(50655);class l extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,r.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(n.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}l.contextType=s.SlotContext;const u=n.createContext(null)},50655:(e,t,a)=>{"use strict";a.d(t,{Slot:()=>o,SlotContext:()=>r});var n=a(59496);class o extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const r=n.createContext(null)},64120:e=>{e.exports=''},12565:e=>{e.exports=''},95781:e=>{e.exports=''},7801:e=>{e.exports=''},33584:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/gopro-order-dialog.a9d6c7f1fa03844e1cfb.js b/charting_library/bundles/gopro-order-dialog.a9d6c7f1fa03844e1cfb.js new file mode 100644 index 00000000..aff9ad2c --- /dev/null +++ b/charting_library/bundles/gopro-order-dialog.a9d6c7f1fa03844e1cfb.js @@ -0,0 +1,59 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8357],{15746:e=>{e.exports={badge:"badge-yHuWj4ze",content:"content-yHuWj4ze",anchor:"anchor-yHuWj4ze",button:"button-yHuWj4ze","size-xsmall":"size-xsmall-yHuWj4ze","size-small":"size-small-yHuWj4ze","size-medium":"size-medium-yHuWj4ze","size-large":"size-large-yHuWj4ze","size-xlarge":"size-xlarge-yHuWj4ze"}},88755:e=>{e.exports={"light-button-group":"light-button-group-7mI4HslZ"}},14488:e=>{e.exports={"light-button":"light-button-1f5iHRsw","disable-cursor-pointer":"disable-cursor-pointer-1f5iHRsw",content:"content-1f5iHRsw","ellipsis-container":"ellipsis-container-1f5iHRsw",icon:"icon-1f5iHRsw","variant-primary":"variant-primary-1f5iHRsw","color-gray":"color-gray-1f5iHRsw","size-small":"size-small-1f5iHRsw","force-direction-ltr":"force-direction-ltr-1f5iHRsw","force-direction-rtl":"force-direction-rtl-1f5iHRsw","with-grouped":"with-grouped-1f5iHRsw","variant-quiet-primary":"variant-quiet-primary-1f5iHRsw",selected:"selected-1f5iHRsw","typography-small":"typography-small-1f5iHRsw","typography-medium":"typography-medium-1f5iHRsw","with-start-icon":"with-start-icon-1f5iHRsw","with-end-icon":"with-end-icon-1f5iHRsw","no-content":"no-content-1f5iHRsw",caret:"caret-1f5iHRsw","disable-active-state-styles":"disable-active-state-styles-1f5iHRsw","size-medium":"size-medium-1f5iHRsw","color-green":"color-green-1f5iHRsw","color-red":"color-red-1f5iHRsw","variant-secondary":"variant-secondary-1f5iHRsw","variant-ghost":"variant-ghost-1f5iHRsw"}},57336:e=>{e.exports={"text-button":"text-button-jmRlvG08",content:"content-jmRlvG08","text-button-brand-small":"text-button-brand-small-jmRlvG08",background:"background-jmRlvG08","with-start-icon":"with-start-icon-jmRlvG08","with-end-icon":"with-end-icon-jmRlvG08","start-icon":"start-icon-jmRlvG08","end-icon":"end-icon-jmRlvG08",selected:"selected-jmRlvG08",caret:"caret-jmRlvG08","text-button-brand-medium":"text-button-brand-medium-jmRlvG08","text-button-brand-large":"text-button-brand-large-jmRlvG08","text-button-gray-small":"text-button-gray-small-jmRlvG08","text-button-gray-medium":"text-button-gray-medium-jmRlvG08","text-button-gray-large":"text-button-gray-large-jmRlvG08"}},79370:e=>{e.exports={group:"group-7eb3l0ph"}},69599:e=>{e.exports={container:"container-PxtBx6dp","container-danger":"container-danger-PxtBx6dp",icon:"icon-PxtBx6dp",header:"header-PxtBx6dp","container-warning":"container-warning-PxtBx6dp","container-success":"container-success-PxtBx6dp","container-default":"container-default-PxtBx6dp","text-wrap":"text-wrap-PxtBx6dp","close-button":"close-button-PxtBx6dp"}},1365:e=>{e.exports={"agreement-switch":"agreement-switch-xGfsY7aB",legend:"legend-xGfsY7aB","error-wrapper":"error-wrapper-xGfsY7aB","error-icon":"error-icon-xGfsY7aB","switch-group":"switch-group-xGfsY7aB"}},12032:e=>{e.exports={checkbox:"checkbox-PDtI2r2Z","error-wrapper":"error-wrapper-PDtI2r2Z","error-icon":"error-icon-PDtI2r2Z"}},51556:e=>{e.exports={occupation:"occupation-GVt2ue8G","nothing-selected":"nothing-selected-GVt2ue8G", +"occupation-menu":"occupation-menu-GVt2ue8G"}},55315:e=>{e.exports={"subscribers-inputs":"subscribers-inputs-okfUHTUP",dropdown:"dropdown-okfUHTUP","country-select-container":"country-select-container-okfUHTUP"}},74660:e=>{e.exports={page:"page-RRWggudg",sheet:"sheet-RRWggudg","page-title":"page-title-RRWggudg","page-sub-title":"page-sub-title-RRWggudg","exchange-agreement-description":"exchange-agreement-description-RRWggudg","exchange-file-link":"exchange-file-link-RRWggudg","section-title":"section-title-RRWggudg","section-terms-description":"section-terms-description-RRWggudg","questions-title":"questions-title-RRWggudg",questions:"questions-RRWggudg",question:"question-RRWggudg",actions:"actions-RRWggudg","checkbox-margin":"checkbox-margin-RRWggudg","accept-terms-checkbox-margin":"accept-terms-checkbox-margin-RRWggudg"}},14333:e=>{e.exports={container:"container-13Vfp93l",switcher:"switcher-13Vfp93l","arrow-curve":"arrow-curve-13Vfp93l",emoji:"emoji-13Vfp93l",nowrap:"nowrap-13Vfp93l"}},99925:e=>{e.exports={label:"label-GH2s1rfd"}},74364:e=>{e.exports={button:"button-oKQ8GSG1",link:"link-oKQ8GSG1"}},86326:e=>{e.exports={cardDescription:"cardDescription-nrU0JU6d"}},42155:e=>{e.exports={wrapperFeatures:"wrapperFeatures-YtR0Roin",padding:"padding-YtR0Roin card-padding-ErxLIKiI",titleFeatures:"titleFeatures-YtR0Roin",listFeatures:"listFeatures-YtR0Roin",itemFeatures:"itemFeatures-YtR0Roin",tooltipIcon:"tooltipIcon-YtR0Roin",tooltipTitle:"tooltipTitle-YtR0Roin"}},64790:e=>{e.exports={label:"label-HkY0BJBZ",icon:"icon-HkY0BJBZ",discount:"discount-HkY0BJBZ",gift:"gift-HkY0BJBZ","no-active-card":"no-active-card-HkY0BJBZ","label-discount-upsell":"label-discount-upsell-HkY0BJBZ","label-discount--pro":"label-discount--pro-HkY0BJBZ","label-discount--pro_realtime":"label-discount--pro_realtime-HkY0BJBZ","label-discount--pro_premium":"label-discount--pro_premium-HkY0BJBZ","label-gift--pro":"label-gift--pro-HkY0BJBZ","label-gift--pro_realtime":"label-gift--pro_realtime-HkY0BJBZ","label-gift--pro_premium":"label-gift--pro_premium-HkY0BJBZ"}},63332:e=>{e.exports={cardTitle:"cardTitle-omURZg64"}},84895:e=>{e.exports={"card-padding":"card-padding-ErxLIKiI",card:"card-ErxLIKiI card-padding-ErxLIKiI",button:"button-ErxLIKiI",cardLayout:"cardLayout-ErxLIKiI"}},70191:e=>{e.exports={"border-radius":"12px","cards-wrap":"cards-wrap-QQXm7yVo",cards:"cards-QQXm7yVo","cards-scroll-wrap":"cards-scroll-wrap-QQXm7yVo","secondary-action-sizes":"secondary-action-sizes-QQXm7yVo","has-active":"has-active-QQXm7yVo","top-0":"top-0-QQXm7yVo","is-active":"is-active-QQXm7yVo","top-1":"top-1-QQXm7yVo","bottom-0":"bottom-0-QQXm7yVo","bottom-1":"bottom-1-QQXm7yVo",top:"top-QQXm7yVo","top-2":"top-2-QQXm7yVo",bottom:"bottom-QQXm7yVo","bottom-2":"bottom-2-QQXm7yVo"}},3412:e=>{e.exports={"change-trial":"change-trial-ntk0pgwQ secondary-action-sizes-QQXm7yVo","current-trial":"current-trial-ntk0pgwQ secondary-action-sizes-QQXm7yVo"}},71360:e=>{e.exports={"info-icon":"info-icon-PvYAVz99","info-icon-wrap":"info-icon-wrap-PvYAVz99",label:"label-PvYAVz99", +"tooltip-wrap":"tooltip-wrap-PvYAVz99"}},9716:e=>{e.exports={offerPrice:"offerPrice-wCGVDggm",measure:"measure-wCGVDggm",mainPrice:"mainPrice-wCGVDggm","color-red":"color-red-wCGVDggm",mainPriceLetter:"mainPriceLetter-wCGVDggm",sup:"sup-wCGVDggm","color-green":"color-green-wCGVDggm"}},33848:e=>{e.exports={description:"description-d5Tocwga secondary-action-sizes-QQXm7yVo",link:"link-d5Tocwga"}},84235:e=>{e.exports={skipTrial:"skipTrial-7OCYXd1m secondary-action-sizes-QQXm7yVo",link:"link-7OCYXd1m"}},96644:e=>{e.exports={container:"container-5CQYJZ9F",text:"text-5CQYJZ9F",icon:"icon-5CQYJZ9F"}},29201:e=>{e.exports={icon:"icon-mrROUtv5"}},31976:e=>{e.exports={"border-radius":"12px","under-cards":"under-cards-5bi7tudm"}},228:e=>{e.exports={badge:"badge-3HaOrC7Y",stocks:"stocks-3HaOrC7Y",futures:"futures-3HaOrC7Y",indices:"indices-3HaOrC7Y",currency:"currency-3HaOrC7Y",certificates:"certificates-3HaOrC7Y",cryptocurrency:"cryptocurrency-3HaOrC7Y"}},22020:e=>{e.exports={title:"title-vrUcGhJD",secondary:"secondary-vrUcGhJD",link:"link-vrUcGhJD"}},75246:e=>{e.exports={title:"title-vjlx3nMq",secondary:"secondary-vjlx3nMq",titleContainer:"titleContainer-vjlx3nMq"}},6331:e=>{e.exports={container:"container-1PoDYo3m","dropdown-item":"dropdown-item-1PoDYo3m",icon:"icon-1PoDYo3m"}},59353:e=>{e.exports={next:"next-1Ts5vcta"}},23078:e=>{e.exports={"padding-top-notebook":"105px",cart:"cart-bjdgLkZK","purchase-info":"purchase-info-bjdgLkZK","mobile-opened":"mobile-opened-bjdgLkZK","row-layout":"row-layout-bjdgLkZK","product-name":"product-name-bjdgLkZK","product-cost":"product-cost-bjdgLkZK",productTrial:"productTrial-bjdgLkZK","mobile-total-title":"mobile-total-title-bjdgLkZK","mobile-total-cost":"mobile-total-cost-bjdgLkZK",actions:"actions-bjdgLkZK",withPaymentDropdown:"withPaymentDropdown-bjdgLkZK","mobile-wrapper":"mobile-wrapper-bjdgLkZK","mobile-wrapper-opened":"mobile-wrapper-opened-bjdgLkZK","mobile-total":"mobile-total-bjdgLkZK","caret-button":"caret-button-bjdgLkZK","header-caret-button":"header-caret-button-bjdgLkZK",icon:"icon-bjdgLkZK",dropped:"dropped-bjdgLkZK"}},73015:e=>{e.exports={badge:"badge-35MDaV7L",description:"description-35MDaV7L","product-name":"product-name-35MDaV7L"}},15359:e=>{e.exports={exchanges:"exchanges-hTiOOCdh"}},658:e=>{e.exports={"next-payment-info":"next-payment-info-bDg2DFsp"}},83110:e=>{e.exports={"purchase-info":"purchase-info-8I7iMxAC","cart-section":"cart-section-8I7iMxAC","exchange-item":"exchange-item-8I7iMxAC",total:"total-8I7iMxAC","total-title":"total-title-8I7iMxAC","total-cost":"total-cost-8I7iMxAC","billing-freq":"billing-freq-8I7iMxAC",highlightTitle:"highlightTitle-8I7iMxAC",highlight:"highlight-8I7iMxAC","product-trial":"product-trial-8I7iMxAC","cost-trial":"cost-trial-8I7iMxAC","total-tax":"total-tax-8I7iMxAC"}},89989:e=>{e.exports={"row-layout":"row-layout-O7MPIjhm","row-name":"row-name-O7MPIjhm","row-value":"row-value-O7MPIjhm"}},84266:e=>{e.exports={"back-button-space":"20px","back-button":"back-button-ysmLHxY9",hidden:"hidden-ysmLHxY9",textButton:"textButton-ysmLHxY9", +"close-button":"close-button-ysmLHxY9"}},38823:e=>{e.exports={logo:"logo-jrIJiOY8"}},24169:e=>{e.exports={title:"title-X4q9jvDs",secondary:"secondary-X4q9jvDs",titleContainer:"titleContainer-X4q9jvDs"}},39908:e=>{e.exports={button:"button-c4OTPHT1"}},41285:e=>{e.exports={termsCheckboxesContainer:"termsCheckboxesContainer-IxYXs9Hp",nonProLable:"nonProLable-IxYXs9Hp",infoIcon:"infoIcon-IxYXs9Hp"}},90514:e=>{e.exports={title:"title-i6YYU4Ty",description:"description-i6YYU4Ty"}},58751:e=>{e.exports={"highlight-wrap":"highlight-wrap-iKO7WU8n","highligh-extra-data":"highligh-extra-data-iKO7WU8n","payment-highlight-light":"payment-highlight-light-iKO7WU8n","payment-highlight-dark":"payment-highlight-dark-iKO7WU8n"}},40893:e=>{e.exports={"back-button-space":"20px","padding-top-notebook":"105px",dialog:"dialog-ekStf8bO","open-animation":"open-animation-ekStf8bO","dialog-section":"dialog-section-ekStf8bO","two-column":"two-column-ekStf8bO","one-column":"one-column-ekStf8bO",body:"body-ekStf8bO",main:"main-ekStf8bO",mainMobile:"mainMobile-ekStf8bO",cart:"cart-ekStf8bO",hidden:"hidden-ekStf8bO"}},10287:e=>{e.exports={"billing-cycle-item":"billing-cycle-item-1JAaqBgk","billing-cycle":"billing-cycle-1JAaqBgk",description:"description-1JAaqBgk",highlight:"highlight-1JAaqBgk",price:"price-1JAaqBgk","full-price":"full-price-1JAaqBgk",disabled:"disabled-1JAaqBgk"}},14724:e=>{e.exports={"billing-cycles":"billing-cycles-qU0k2PxV"}},21810:e=>{e.exports={"vertical-alignment-height":"vertical-alignment-height-z3YnaYkd",wrapper:"wrapper-z3YnaYkd",container:"container-z3YnaYkd",icon:"icon-z3YnaYkd",title:"title-z3YnaYkd",cheque:"cheque-z3YnaYkd",highlightBlock:"highlightBlock-z3YnaYkd",grid:"grid-z3YnaYkd",flex:"flex-z3YnaYkd",paymentInfo:"paymentInfo-z3YnaYkd",description:"description-z3YnaYkd",descriptionBlock:"descriptionBlock-z3YnaYkd",border:"border-z3YnaYkd",paddingRow:"paddingRow-z3YnaYkd",trialPaddingRow:"trialPaddingRow-z3YnaYkd",proPlanPaddingRow:"proPlanPaddingRow-z3YnaYkd",trialFirstPaddingRow:"trialFirstPaddingRow-z3YnaYkd",exchangesListWrapper:"exchangesListWrapper-z3YnaYkd",productText:"productText-z3YnaYkd",wrapperTotalCost:"wrapperTotalCost-z3YnaYkd",total:"total-z3YnaYkd",totalCost:"totalCost-z3YnaYkd",button:"button-z3YnaYkd",tax:"tax-z3YnaYkd","trial-tax":"trial-tax-z3YnaYkd","product-trial":"product-trial-z3YnaYkd","cost-trial":"cost-trial-z3YnaYkd"}},11264:e=>{e.exports={container:"container-jJ28DorJ",icon:"icon-jJ28DorJ",title:"title-jJ28DorJ",description:"description-jJ28DorJ",button:"button-jJ28DorJ"}},30649:e=>{e.exports={container:"container-XzdX3itL",icon:"icon-XzdX3itL",title:"title-XzdX3itL",descriptionBlock:"descriptionBlock-XzdX3itL"}},37438:e=>{e.exports={container:"container-gg7uxeBC"}},46248:e=>{e.exports={button:"button-RmahEtr8",item:"item-RmahEtr8",title:"title-RmahEtr8",description:"description-RmahEtr8"}},51491:e=>{e.exports={list:"list-YclYOAXu",item:"item-YclYOAXu","item-disabled":"item-disabled-YclYOAXu",info:"info-YclYOAXu",checkbox:"checkbox-YclYOAXu",title:"title-YclYOAXu", +"exchange-name":"exchange-name-YclYOAXu",exchangeBadge:"exchangeBadge-YclYOAXu",flag:"flag-YclYOAXu",description:"description-YclYOAXu",prices:"prices-YclYOAXu",price:"price-YclYOAXu",month:"month-YclYOAXu",year:"year-YclYOAXu","resident-price":"resident-price-YclYOAXu",infoIcon:"infoIcon-YclYOAXu",tooltipTitle:"tooltipTitle-YclYOAXu",infoIconContainer:"infoIconContainer-YclYOAXu",spinner:"spinner-YclYOAXu",badge:"badge-YclYOAXu"}},60033:e=>{e.exports={footer:"footer-ENI3UToR",info:"info-ENI3UToR",title:"title-ENI3UToR",text:"text-ENI3UToR",description:"description-ENI3UToR","description-logo":"description-logo-ENI3UToR","ice-icon":"ice-icon-ENI3UToR",icon:"icon-ENI3UToR"}},14284:e=>{e.exports={info:"info-Y4tMc12a",link:"link-Y4tMc12a",text:"text-Y4tMc12a",informer:"informer-Y4tMc12a"}},28672:e=>{e.exports={group:"group-kxBajQCf",switcher:"switcher-kxBajQCf",margin:"margin-kxBajQCf",tabs:"tabs-kxBajQCf"}},76221:e=>{e.exports={swithcherContainer:"swithcherContainer-OB6hG3Dv"}},78365:e=>{e.exports={cards:"cards-xDk5tnZJ",container:"container-xDk5tnZJ","vertical-alignment-height":"vertical-alignment-height-xDk5tnZJ","block-wrap":"block-wrap-xDk5tnZJ"}},71323:e=>{e.exports={swithcherContainer:"swithcherContainer-RrUqgK2t",trialSubtitle:"trialSubtitle-RrUqgK2t",changeTrialTerms:"changeTrialTerms-RrUqgK2t"}},75223:e=>{e.exports={childrenWrapper:"childrenWrapper-W0mNxTYg",shown:"shown-W0mNxTYg",loader:"loader-W0mNxTYg"}},87823:e=>{e.exports={"back-button":"back-button-837Z5B3u",icon:"icon-837Z5B3u","button-m":"button-m-837Z5B3u"}},17946:(e,t,n)=>{"use strict";n.d(t,{CustomBehaviourContext:()=>a,presetDefault:()=>r,presetPlatform:()=>o});const a=(0,n(59496).createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0}),r={enableActiveStateStyles:!0,enablePointerOnHover:!0},o={enableActiveStateStyles:!1,enablePointerOnHover:!1}},21310:(e,t,n)=>{"use strict";n.d(t,{Informer:()=>p});var a=n(59496),r=n(97754),o=n(9745),i=n(35582),c=n(79704),l=n(26),s=n(87172),u=n(69599),d=n.n(u);const m={danger:c,warning:c,success:s,default:l};function p(e){const{informerIntent:t,content:n,className:c,header:l,isIconShown:s=!0,isCloseButtonShown:u,icon:p,onCloseClick:g,closeButtonLabel:h="Close"}=e;return a.createElement("div",{className:r(d().container,d()["container-"+t],c)},s&&a.createElement(o.Icon,{className:d().icon,icon:null!=p?p:m[t]}),a.createElement("div",{className:d()["text-wrap"]},a.createElement("span",{className:d().header},l)," ",n),u&&a.createElement(i.CloseButton,{"aria-label":h,onClick:g,className:d()["close-button"],size:"xs"}))}},9168:(e,t,n)=>{"use strict";var a;n.d(t,{ExchangeDataType:()=>a}),function(e){e.Stocks="stocks",e.Indices="indices",e.Futures="futures",e.Currency="currency",e.Certificates="certificates",e.Cryptocurrency="cryptocurrency",e.Bist100="bist_100",e.Bist30="bist_30",e.Rofex20="rofex_20"}(a||(a={}))},1787:(e,t,n)=>{"use strict";n.d(t,{solutionIds:()=>a}) +;const a=JSON.parse('{"EXTENDED_HOURS":43000502023,"PRE_MARKET":43000502023,"POST_MARKET":43000502023,"SPREAD_CHARTS":43000502298,"ALERTS":43000520149,"ALERT_ON_STRATEGY":43000481368,"ALERT_WEBHOOK":43000529348,"ALERT_DESCRIPTION_PLACEHOLDER":43000531021,"VOLUME_PROFILE":43000502040,"VOLUME_PROFILE_INDICATOR":43000557450,"RENKO":43000502284,"KAGI":43000502272,"LINE_BREAK":43000502273,"PNF":43000502276,"FINANCIAL_DATA":43000543506,"BROKER_RATING":43000542490,"CRYPTO_MARKET_CAP":43000540941,"CRYPTO_PAYMENT":43000485536,"ALERT_ON_SPREAD":43000478406,"ALERT_ON_CUSTOM_SCRIPT":43000478415,"ALERT_FUNCTION":43000597494,"SMS_VERIFICATION":43000553429,"MAGNET_MODE":43000537270,"PINE_CANNOT_DETERMINE":43000587849,"PRIVACY_SETTINGS":43000548335,"PUBLICATION_TYPE":43000609497,"SCRIPT_ACCESS":43000482573,"MEMORY_LIMITS_EXCEEDED":43000590233,"FREE_USER_FAQS":43000590947,"STRATEGY_UNREALISTIC_RESULTS":43000481029,"STRATEGY_FUTURE_DATA":43000614705,"STREAM_RULES":43000591348,"HOW_TO_USE_PAPER":43000516466,"HOW_TO_USE_CQG":43000516372,"HOW_TO_USE_OANDA":43000516375,"HOW_TO_USE_FOREXCOM":43000516374,"FAVORITE_IDEA":43000555216,"YOUTUBE_ERROR":43000612153,"AUTHORS_INSTRUCTIONS_PUBCLICATION":43000549951,"AUTHORS_INSTRUCTIONS_EDIT":43000614618,"SCRIPT_INSTRUCTIONS":43000482573,"BAR_REPLAY_UNAVAILABILITY":43000475470,"WHAT_IS_CBOE_BZX_EXCHANGE":43000473924,"GOPRO_UPGRADE_DESCRIPTION":43000473324,"GOPRO_DOWNGRADE_DESCRIPTION":43000485437,"BROKERAGE_REVIEWS":43000591351,"CHANGE_SUBSCRIPTION":43000635806,"PINE_LIBRARY_INFO":43000638371,"HOW_TO_CREATE_A_STREAM":43000560174,"HOW_DO_I_UPDATE_DESKTOP_APP":43000647779,"TECHNICAL_RATINGS":43000614331,"BACKTESTING_WIDGET":43000561856,"DEEP_BACKTESTING_WIDGET":43000670566,"DEEP_BACKTESTING":43000666199,"DEEP_BACKTESTING_AVAILABLE_DATA":43000668210}')},57229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bannerPrivacyPreferenceKey:()=>p,checkCookiePolicy:()=>f,cookieBannerDelegate:()=>g,initCookiesNotification:()=>b,oldBannerKey:()=>m,onAccept:()=>y,removeOldCookieBannerKey:()=>h,showCookiesNotification:()=>C});var a=n(11417),r=n(84015),o=(n(51872),n(81836)),i=n(46433),c=n(85198);const l=(0,n(98125).getLogger)("User.GeoInfo");let s;var u=n(98999),d=n(11542);const m="cookieBanner",p="cookiePrivacyPreferenceBanner",g=(0,o.createDeferredPromise)();function h(){return a.TVLocalStorage.removeItem(m)}function f(e){return"accepted"===a.TVLocalStorage.getItem(e)||"notApplicable"===a.TVLocalStorage.getItem(e)}function y(){a.TVLocalStorage.setItem(p,"accepted")}let v=!1;async function C(){if(v)return;v=!0;const e=await Promise.all([n.e(5514),n.e(8463),n.e(8844),n.e(4408),n.e(1253),n.e(6464),n.e(5064),n.e(724),n.e(9255),n.e(9957),n.e(8869)]).then(n.bind(n,44598));await e.showCookiesNotification()&&(y(),(0,d.trackCookies)("click","accept_all")),v=!1}async function b(){var e;const t=document.querySelector(".js-main-page-promo-container");if(!f(p)&&!(0,r.isOnMobileAppPage)("any")){t||g.resolve();if((null===(e=(0, +i.getFreshInitData)().currentLocaleInfo)||void 0===e?void 0:e.is_in_european_union)||"ignored"===a.TVLocalStorage.getItem(p))return g.promise.then(()=>C());{const e=await(void 0!==s||(s=(0,c.fetch)("/check_language/",{method:"POST"}).then(e=>{if(e.ok)return e.json();throw new Error(e.statusText)}).catch(e=>(l.logWarn(e.message),{}))),s);if(e.is_in_european_union||(n=e.country_code,["is","li","no","uk"].includes(n)))return a.TVLocalStorage.setItem(p,"ignored"),g.promise.then(()=>C());a.TVLocalStorage.setItem(p,"notApplicable"),(0,u.setCookieSetting)(u.CookieSettings.Analytics,!0),(0,u.setCookieSetting)(u.CookieSettings.Advertising,!0)}}var n}},23651:(e,t,n)=>{"use strict";n.d(t,{getPrice:()=>l});var a=n(85198),r=n(10878);const o=(0,n(98125).getLogger)("Payment.Price");class i{constructor(){this._cache={}}get(e){const t=this._getKey(e);return t in this._cache?this._cache[t]:void 0}add(e,t){this._cache[this._getKey(e)]=t}static getInstance(){return i._instance||(i._instance=new i),i._instance}_getKey(e){const{productId:t,billingCycle:n="",country_code_alpha2:a="",region:r="",postal_code:o="",locality:i="",currency:c,withTax:l}=e;return`${t}_${n}_${a}_${c}_${r}_${o}_${i}_${l?"tax":""}`}}class c{constructor(){this._cache={}}getCache(e){return e in this._cache||(this._cache[e]=i.getInstance()),this._cache[e]}static getInstance(){return c._instance||(c._instance=new c),c._instance}}async function l(e){const{products:t,billingCycle:n,billingAddress:i,currency:l=r.Currencies.Usd,withTax:s=!1}=e,u=c.getInstance().getCache(l),d=[],m=[],p=s?i:{country_code_alpha2:i.country_code_alpha2};t.forEach(e=>{const t=u.get({productId:e,billingCycle:n,withTax:s,currency:l,...p});t?d.push(t):(m.push(e),d.push(null))});const g={products:m,billing_cycle:n,currency:l,billing_address:p,with_tax:s},h=await async function(e){if(0===e.products.length)return Promise.resolve({results:[]});const t=await(0,a.fetch)("/order/price/",{method:"POST",body:JSON.stringify(e),credentials:"include"});if(!t.ok){const e=await t.json(),n=Error(e.detail);throw n.name="ApiError:"+e.code,o.logError(e.detail),n}return t.json()}(g);m.forEach((e,t)=>{const a=h.results[t];a&&u.add({productId:e,billingCycle:n,withTax:s,currency:l,...p},a)});const f=[...h.results];return{results:d.map(e=>null!=e?e:f.shift())}}},18662:(e,t,n)=>{"use strict";n.d(t,{getDowngrade:()=>r,postDowngrade:()=>o,getUpgrade:()=>i,postUpgrade:()=>c,postTvcoinsProPlan:()=>l});var a=n(28353);async function r(e){const t=new URL("/pro-plans/downgrade/",window.location.href);t.searchParams.append("pro_plan",e.pro_plan),e.billing_cycle&&t.searchParams.append("billing_cycle",e.billing_cycle),e.offer&&t.searchParams.append("offer",e.offer);const n=await fetch(t.href);if(!n.ok){const e=await n.json(),t=Error(e.detail);throw t.name="ApiError:"+e.code,t}return n.json()}async function o(e){const t=new FormData;t.append("pro_plan",e.pro_plan),e.billing_cycle&&t.append("billing_cycle",e.billing_cycle),e.offer&&t.append("offer",e.offer);const n=await fetch("/pro-plans/downgrade/",{method:"POST", +credentials:"include",body:t});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function i(e){const t=new URL("/pro-plans/upgrade/",window.location.href);t.searchParams.append("pro_plan",e.pro_plan),e.billing_cycle&&t.searchParams.append("billing_cycle",e.billing_cycle);const n=await fetch(t.href);if(!n.ok){const e=await n.json(),t=Error(e.detail);throw t.name="ApiError:"+e.code,t}return n.json()}async function c(e){const t=new FormData;t.append("pro_plan",e.pro_plan),e.billing_cycle&&t.append("billing_cycle",e.billing_cycle);const n=await fetch("/pro-plans/upgrade/",{method:"POST",credentials:"include",body:t});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function l(e){const t=await fetch("/tvcoins/pro-plan/",{method:"POST",credentials:"include",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})});if(!t.ok){const e=await t.json();if("failed_to_redeem"===e.code)throw Error((0,a.t)("Sorry, your subscription can’t currently be extended, downgraded or upgraded because your payment method doesn’t support recurring payments. Please head to profile settings to update your payment method, then try again."));throw Error(e.detail)}return t.json()}},11313:(e,t,n)=>{"use strict";function a(e){return Promise.all([n.e(5399),n.e(1865),n.e(1566)]).then(n.bind(n,55701)).then(t=>{t.changePlanDialog(e)})}n.d(t,{changePlanDialog:()=>a})},33040:(e,t,n)=>{"use strict";var a;n.d(t,{ChangePlanType:()=>a}),function(e){e[e.Downgrade=0]="Downgrade",e[e.Upgrade=1]="Upgrade",e[e.Reactivate=2]="Reactivate",e[e.TvcoinsUpgrade=3]="TvcoinsUpgrade",e[e.TvcoinsExtend=4]="TvcoinsExtend",e[e.Switch=5]="Switch"}(a||(a={}))},88930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{openGoProOrderDialog:()=>di,openPaymentOrderDialog:()=>si});var a=n(59496),r=n(87995),o=n(83812),i=n(91955),c=n(9423),l=n(78540),s=n(93299);n(49483);class u{showAfterTimeout(e,t){!window.is_authenticated||s.OFFERS.trial in window.user.available_offers?this._timeoutId=setTimeout(async()=>{if(window.is_authenticated&&!(s.OFFERS.trial in window.user.available_offers))return void t();const{globalToasts:a}=await Promise.all([n.e(5064),n.e(4291)]).then(n.bind(n,56139));!async function(e,t,a){(await Promise.all([n.e(6464),n.e(2340),n.e(4278)]).then(n.bind(n,43159))).showTrialNotification(e,t,a)}(a,e,t)},3e4):t()}clear(){clearTimeout(this._timeoutId)}static getInstance(){return u._instance||(u._instance=new u),u._instance}}function d(){return u.getInstance()}var m=n(88216),p=n(53402);function g(e){return[s.OFFERS.early_access,s.OFFERS.last_chance,s.OFFERS.one_usd].some(t=>t in e)}function h(e,t,n){const a=null==n?void 0:n.billing_cycle;let r=e.isPaidPro()?l.BillingCycle.OneYear:a||l.BillingCycle.Monthly;const o=t.available_offers;return s.OFFERS.trial in o?r=l.BillingCycle.Monthly:s.OFFERS.early_access in o||s.OFFERS.six_months in o?r=l.BillingCycle.OneYear:g(o)?r=null!=a?a:l.BillingCycle.OneYear:a===l.BillingCycle.TwoYears&&(r=l.BillingCycle.TwoYears),r}function f(e,t){(0,i.getTracker)().then(n=>{ +null!==n&&n.trackGoproCardsClicks(e,t)})}var y=n(76974),v=n(2872),C=n.n(v),b=n(98125),E=n(28353),w=n(21097);const x=(0,b.getLogger)("SubscriptionNotification"),_="subscriptionPermissionHasChanged";var P;!function(e){e.Subscribe="subscribe",e.Unsubscribe="unsubscribe",e.Downgrade="downgrade",e.Upgrade="upgrade",e.Change="change"}(P||(P={}));class S{constructor(){this.stateChanged=new(C())}on(e,t){w.TVXWindowEvents.on(_,n=>{let a=null;try{a=JSON.parse(n)}catch(e){return void x.logWarn("Failed to parse JSON: "+n)}e!==P.Change&&e!==a.type||t(a)}),this.stateChanged.subscribe(null,n=>{e!==P.Change&&e!==n.type||t(n)})}showNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({pushReload:!0})})}showChartNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({content:E.t("You've upgraded your subscription. Please reload the chart to fire up the new changes.")})})}showBillingTimeoutNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({title:E.t("Subscription details are no longer valid"),content:E.t("You were inactive for a long period of time. Please refresh the page to see your subscription status."),pushReload:!0})})}xWindowEventsEmit(e){w.TVXWindowEvents.emit(_,JSON.stringify(e))}currentTabEmit(e){this.stateChanged.fire(e)}emit(e){this.currentTabEmit(e),this.xWindowEventsEmit(e)}static getInstance(){return S._instance||(S._instance=new S),S._instance}}function k(){return S.getInstance()}var T=n(20120);const N=(0,b.getLogger)("Conversion.Context"),A={user:null,state:{bannedTrial:!1,canDowngrade:!1,subscriptionDetails:void 0}},D=a.createContext({pro:null,...A});var I;!function(e){e.LoginStateChange="loginStateChange",e.Initial="initial",e.Subscribe="subscribe",e.Unsubscribe="unsubscribe",e.Downgrade="downgrade",e.Upgrade="upgrade"}(I||(I={}));class R{constructor(e,t){this.updateDelegate=new(C()),this.needUpdate=!0,this.pro=null,this.userState=A,t&&(this.userState=t,this.needUpdate=!1),this.pro=e,this.subscribe()}update(e){return(0,T.syncUserConversionData)(e).catch(()=>(N.logError("Gopro update request fail"),null)).then(e=>{var t,n,a;return null===e||(this.userState={user:e.user,state:{bannedTrial:null!==(t=e.banned_trial)&&void 0!==t&&t,canDowngrade:null!==(n=e.can_downgrade)&&void 0!==n&&n,subscriptionDetails:e.subscription_details,affiliateUsername:e.affiliate_username}},(null==e?void 0:e.user)&&(null===(a=this.pro)||void 0===a||a.updateUser(e.user)),this.needUpdate=!1),this.getContext()})}getContext(){return{pro:this.pro,...this.userState}}subscribe(){k().on(P.Change,e=>{var t;this.needUpdate=!0,e.invalidateShopConf&&(null===(t=this.pro)||void 0===t||t.invalidateShopConf());try{const t=function(e){switch(e){case P.Subscribe:return I.Subscribe;case P.Unsubscribe:return I.Unsubscribe;case P.Downgrade:return I.Downgrade;case P.Upgrade:return I.Upgrade;default:throw Error("Unknown eventType")}}(e.type);this.updateDelegate.fire(t)}catch(e){N.logError(e.message)}}), +window.loginStateChange.subscribe(null,()=>{var e;this.needUpdate=!0,null===(e=this.pro)||void 0===e||e.invalidateShopConf(),this.updateDelegate.fire(I.LoginStateChange)})}static getInstance(e,t){return R._instance||(R._instance=new R(e,t)),R._instance}}const O=a.memo((function(e){var t;const{initialState:n,updateShopConf:r,onMounted:o,source:i}=e;let c,l;n?(c={user:n.user,state:n.state},l=n.pro):l=null!==(t=window.pro)&&void 0!==t?t:null;const s=R.getInstance(l,c),[u,d]=a.useState(s.getContext()),m=(0,y.useIsMounted)();async function p(t){var n,a;const o=s.update(i);let c=null;r&&(null===(n=s.pro)||void 0===n?void 0:n.isInvalidShopConf())&&(c=null===(a=s.pro)||void 0===a?void 0:a.updateShopConf());const[l]=await Promise.all([o,c]);m.current&&(d(l),e.onUpdate&&e.onUpdate(l,t))}return(0,a.useEffect)(()=>{var e,t;const n=s.getContext();o&&o(n),s.needUpdate?p(I.Initial):r&&(null===(e=n.pro)||void 0===e?void 0:e.isInvalidShopConf())&&(null===(t=n.pro)||void 0===t||t.updateShopConf())},[]),(0,a.useEffect)(()=>(s.updateDelegate.unsubscribe(null,p),s.updateDelegate.subscribe(null,p),()=>s.updateDelegate.unsubscribe(null,p)),[p]),a.createElement(D.Provider,{value:u},e.children)}));var B=n(97754),M=n.n(B),L=n(37005),Y=n(81e3),U=n(1938),F=n(59401),z=n(25760),H=n(10878),V=n(76266),j=n(85739),G=n(51768),W=n(78599),q=n(11417),$=n(67337),K=n(23127);let Q=K.Deferred();function X(e,t){var n=TVSettings.getBool("_phone_verif_dlg_initial",!0);TVSettings.setValue("_phone_verif_dlg_initial",!1),(0,G.trackEvent)("Phone verification",e+(n?" initial":""),t)}function Z(e){const t=K.Deferred();return(0,W.createPhoneDialog)({featureSource:e.source,doNotShowConfirmation:e.doNotShowConfirmation}).then(n=>{n.on("afterOpen",()=>X("Show dialog",e.source)).on("verification:success",n=>{t.resolve(n),X("Verified",e.source)}).on("verification:cancel",()=>{t.reject("cancelled"),X("Cancelled",e.source)}).on("verification:codeExpired",()=>X("Show dialog",e.source)).open()}),t}function J(e={}){return new Promise(t=>{!window.is_authenticated||user.is_staff||user.is_superuser||user.is_pro||user.is_moderator?t([!1]):e.customPhoneCheck?e.customPhoneCheck()?t([!0,"date-joined"]):t([!1]):$.enabled("phone_verification")&&!user.has_phone?!0!==e.doNotCheckSocialActivity?t([!0,"date-joined"]):(!0!==e.doNotCheckSuspicious&&t([Boolean(q.TVLocalStorage.getItem("is_suspicious")),"suspicious"]),t([!0,"default"])):t([!1])})}window.loginStateChange&&loginStateChange.subscribe(null,()=>{window.is_authenticated&&(Q=K.Deferred(),J().then(([e,t])=>{e||Q.resolve()}))});var ee=n(93573),te=n(57762),ne=n(60679);const ae=(0,b.getLogger)("GoPro.VisitPaymentPageContext"),re={visitPaymentPage:()=>{ae.logError("visitPaymentPage not implement")},startTrial:()=>{ae.logError("startTrial not implement")},changeTrial:()=>{ae.logError("changeTrial not implement")},upgradePlan:()=>{ae.logError("upgradePlan not implement")}},oe=a.createContext(re);var ie=n(83317),ce=n(9745),le=n(23298),se=n(57336),ue=n.n(se);const de=e=>{ +const{className:t,isSelected:n,size:a="medium",color:r,startIcon:o,endIcon:i,showCaret:c}=e;return B(t,ue()["text-button"],n&&ue().selected,ue()[`text-button-${r}-${a}`],o&&ue()["with-start-icon"],(c||i)&&ue()["with-end-icon"])};function me(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:ue().background}),e.startIcon&&a.createElement(ce.Icon,{className:ue()["start-icon"],icon:e.startIcon}),a.createElement("span",{className:ue().content},e.children),(e.endIcon||e.showCaret)&&(e=>a.createElement(ce.Icon,{className:B(ue()["end-icon"],e.showCaret&&ue().caret),icon:e.showCaret?le:e.endIcon}))(e))}function pe(e){const{reference:t,className:n,isSelected:r,children:o,startIcon:i,showCaret:c,color:l,endIcon:s,size:u,...d}=e;return a.createElement("button",{...d,className:de({className:n,isSelected:r,startIcon:i,showCaret:c,endIcon:s,color:l,size:u}),ref:t},a.createElement(me,{showCaret:c,startIcon:i,endIcon:s},o))}var ge=n(41145),he=n(67844),fe=n(158),ye=n(38823);function ve(e){return a.createElement("div",{className:ye.logo},a.createElement(ce.Icon,{icon:fe}))}var Ce=n(81925),be=n(84266);const Ee=a.memo((function(e){const{hideBackButton:t,hideCloseButton:n,onPrevious:r,onClose:o}=e;return a.createElement("div",null,a.createElement(ge.BackButton,{"aria-label":(0,E.t)("Back",{context:"input"}),onClick:r,className:B(be["back-button"],t&&be.hidden)}),a.createElement(pe,{onClick:r,startIcon:Ce,size:"medium","aria-label":(0,E.t)("Back",{context:"input"}),color:"gray",className:B(be.textButton,t&&be.hidden)},(0,E.t)("Back")),a.createElement(ve,null),a.createElement(he.CloseButton,{"aria-label":(0,E.t)("Close",{context:"input"}),onClick:o,className:B(be["close-button"],n&&be.hidden)}))}));var we=n(14972),xe=(n(94419),n(82531)),_e=n(7043),Pe=n(1860);E.t("Real-time markets"),E.t("year"),E.t("Next payment on {next_payment_date}"),E.t("{plan_name} plan at regular price");function Se(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function ke(e,t){let n=function(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}(new Date,(0,p.billingCycleToMonth)(e));return void 0!==t&&(n=Se(n,t)),_e.dateFormatFunctions["MMM dd, yyyy"](n,!1)}function Te(e){if(void 0===e)return function(){const e=new Pe.DateFormatter("MMM dd, yyyy"),t=24*((0,xe.getTrialLength)()+1)*60*60*1e3;return e.formatLocal(new Date(Date.now()+t))}();return new Pe.DateFormatter("MMM dd, yyyy").formatLocal(Se(new Date(e.expire_on),1))}var Ne=n(658);function Ae(e){const{product:t,billingCycle:n,pro:r,exchangesCost:o,proPlanCost:i,currency:c}=e;let{extraDays:l}=e;const s=r.getProduct(r.getProductId(t));!l&&s.billing_cycle===n&&s.extra_days&&(l=s.extra_days);const u=E.t("Next payment on {next_payment_date}").format({next_payment_date:ke(n,l)}),d=E.t("{plan_name} plan at regular price").format({plan_name:t.name}),m=E.t("Real-time markets");return a.createElement(tt,null,a.createElement("p",{className:Ne["next-payment-info"]},u,": ",d," — ",De(i,n,c),".",0!==o&&a.createElement("span",null," ",m," — ",De(o,n,c),".")))}function De(e,t,n){ +const a=n===H.Currencies.Usd?"$":"",r=n===H.Currencies.Rub?" "+E.t("RUB"):"";return`${a}${(0,p.round2)(e)}${r}/${(0,p.billingCycleToTimeUnit)(t)}`}function Ie(e,t,n){let a=30;return"y"===t?a=365:"2y"===t&&(a=730),n.getCost(e,t)/a}function Re(e,t,n,a){if(void 0===n.pro_plan)return;const r=n.pro_plan_days_left;let o,i,c=!1;if(n.is_trial||a.isOffer(e,"six_months")?(c=!0,o=(0,p.getProductForTrial)(n.pro_plan),i=l.BillingCycle.Monthly):(o=n.pro_plan_original_name,i=n.pro_plan_billing_cycle),!r||!o||!i)return;const s=function(e,t,n,a,r,o,i=!1){const c=o.getProduct(t),l=o.getProduct(a);if(!o.isPlan(l))return;if(!o.isProductDefined(c)||!o.isProductDefined(l))return;if(l.type!==o.PRODUCT_TYPES.pro_plan)return;const s=c.upgrade_weight,u=l.upgrade_weight;if(!i&&s>u)return;let d=0;if(l.billing_cycle===r&&(d=l.extra_days||0),i||c.text_id===l.text_id)return e+d;const m=Ie(c,n,o)*e,p=Ie(l,r,o);return Math.ceil(m/p)+d}(r,o,i,e,t,a,c);if(!s)return;let u;const d=a.getProduct(o),m=a.getProduct(e),g=(0,p.getAmountOfDaysForBillingCycle)(t)+s;return u=n.is_trial?E.t("You have {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in your free trial. These days will be added to your new subscription. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.").format({daysLeft:r.toString(),proPlan:(0,p.humanizeProPlan)(m.text_id),amountOfDaysForBillingCycle:g.toString(),boldHighlightStart:"",boldHighlightEnd:""}):E.t("Your account has {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in the current {currentProPlan} plan. We'll convert this remaining time into an equivalent value of days on your new plan. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.").format({daysLeft:r.toString(),currentProPlan:(0,p.humanizeProPlan)(d.text_id),proPlan:(0,p.humanizeProPlan)(m.text_id),amountOfDaysForBillingCycle:g.toString(),boldHighlightStart:"",boldHighlightEnd:""}),{text:u,extraDays:s,totalAmountOfDays:g}}var Oe=n(23078);const Be=a.memo((function(e){const{pro:t,cost:n,cartData:r,classNameProductName:o,classNameProductCost:i,modifier:c,trialDays:l=(0,xe.getTrialLength)(),currency:s=""}=e,{isTrial:u}=r,d=Me(t,r,void 0===c?l:void 0),m=`${(0,ie.getCurrencySign)(s)}${u?"0":n} ${s}`;return a.createElement("div",{className:Oe["row-layout"]},a.createElement("div",{className:B(Oe["product-name"],o)},a.createElement("span",null,d)),a.createElement("div",{className:B(Oe["product-cost"],i)},m))}));function Me(e,t,n){const{proPlanProductId:a,isTrial:r}=t,o=a?e.getProduct(a):null;if(!o)return"";let i="";return i=r?n?(0,E.t)("{proPlanName} trial ({days_count} day)",{plural:"{proPlanName} trial ({days_count} days)",context:"free_trial",count:n}).format({proPlanName:o.name,days_count:n.toString()}):(0,E.t)("{proPlanName} trial").format({proPlanName:o.name}):(0,E.t)("{proPlanName} plan").format({proPlanName:o.name}),i}var Le,Ye=n(9168);!function(e){e.XSmall="xsmall",e.Small="small", +e.Medium="medium",e.Large="large",e.XLarge="xlarge"}(Le||(Le={}));var Ue=n(15746),Fe=n.n(Ue);function ze(e){const{size:t=Le.Medium,className:n}=e;return M()(Fe().badge,t&&Fe()["size-"+t],n)}function He(e){const{children:t,contentClassName:n}=e;return a.createElement("span",{className:M()(Fe().content,n)},t)}function Ve(e){const{size:t,children:n,className:r,contentClassName:o,...i}=e;return a.createElement("span",{...i,className:ze({size:t,className:r})},a.createElement(He,{contentClassName:o},n))}var je=n(228);const Ge={[Ye.ExchangeDataType.Stocks]:je.stocks,[Ye.ExchangeDataType.Indices]:je.indices,[Ye.ExchangeDataType.Futures]:je.futures,[Ye.ExchangeDataType.Currency]:je.currency,[Ye.ExchangeDataType.Certificates]:je.certificates,[Ye.ExchangeDataType.Cryptocurrency]:je.cryptocurrency,[Ye.ExchangeDataType.Bist100]:je.indices,[Ye.ExchangeDataType.Bist30]:je.indices,[Ye.ExchangeDataType.Rofex20]:je.indices};function We(e){const t={[Ye.ExchangeDataType.Stocks]:E.t("Stocks"),[Ye.ExchangeDataType.Indices]:E.t("Indices"),[Ye.ExchangeDataType.Futures]:E.t("Futures"),[Ye.ExchangeDataType.Currency]:E.t("Currency"),[Ye.ExchangeDataType.Certificates]:E.t("Certificates"),[Ye.ExchangeDataType.Cryptocurrency]:E.t("Cryptocurrency"),[Ye.ExchangeDataType.Bist100]:E.t("Bist 100"),[Ye.ExchangeDataType.Bist30]:E.t("Bist 30"),[Ye.ExchangeDataType.Rofex20]:E.t("Rofex 20")};return a.createElement(Ve,{className:B(je.badge,e.className,Ge[e.type]),size:Le.Small},t[e.type])}var qe=n(73015);const $e=a.memo((function(e){const{cost:t,classNameExchangeItem:n,classNameExchangeItemText:r,localPriceProduct:o,isCart:i,exchange:c,currency:l=""}=e,s=o?(0,p.round2)(o.total):t,u=`${(0,ie.getCurrencySign)(l)}${s} ${l}`,d=i?c.name:c.description,m=(0,ie.getExchangeType)(c);return a.createElement("li",{className:B(qe["exchange-item"],Oe["row-layout"],n)},a.createElement("div",{className:qe.description},a.createElement("span",{className:B(Oe["product-name"],qe["product-name"])},d),!i&&m.map(e=>a.createElement(We,{key:"exchange_badge_"+e,className:qe.badge,type:e}))),a.createElement("div",{className:B(Oe["product-cost"],r)},u))}));var Ke=n(15359);function Qe(e){const{pro:t,cartData:n,isCart:r,classNameExchangeItem:o,classNameExchangeItemText:i,cartPrices:c,exchanges:l}=e,{billingCycle:s}=n;return a.createElement("ul",{className:Ke.exchanges},l.map(n=>{var l,u,d;const m=c?c[n.text_id]:void 0,g=null!==(u=null===(l=null==m?void 0:m.price)||void 0===l?void 0:l.total)&&void 0!==u?u:t.getCost(n,s);return a.createElement($e,{key:"order_cart_"+n.text_id,cost:(0,p.round2)(g),classNameExchangeItem:o,classNameExchangeItemText:i,isCart:r,exchange:n,currency:null!==(d=null==m?void 0:m.currency)&&void 0!==d?d:e.currency})}))}var Xe=n(89989);function Ze(e){const{tax:t,currency:n,subtotal:r,costClassName:o}=e;return a.createElement("div",{className:Xe["row-layout"]},a.createElement("div",{className:Xe["row-name"]},(0,E.t)("Subtotal")),a.createElement("div",{className:B(Xe["row-value"],o)},(0,ie.getCurrencySign)(n),r," ",n),a.createElement("div",{className:Xe["row-name"]},(0, +E.t)("Tax")),a.createElement("div",{className:B(Xe["row-value"],o)},(0,ie.getCurrencySign)(n),t," ",n))}var Je=n(83110);function et(e){return(0,E.t)("Payable on {billingDate}").format({billingDate:Te(e)})}function tt(e){return a.createElement("div",{className:B(Je.highlight,e.className)},e.children)}function nt(e){const{title:t,description:n}=e;return a.createElement(tt,null,t&&a.createElement("p",{className:Je.highlightTitle},t),a.createElement("p",{dangerouslySetInnerHTML:{__html:n}}))}function at(e){return e===l.BillingCycle.Monthly?(0,E.t)("You will not be billed today"):(0,E.t)("Further billing")}function rt(e){return`${e}`}function ot(e,t){const n={[H.Currencies.Usd]:(0,E.t)("US"),[H.Currencies.Rub]:(0,E.t)("RUB")},a={[H.Currencies.Usd]:"$",[H.Currencies.Rub]:""},r=n[t];return`${a[t]}${(0,p.round2)(e)} ${r}`}const it=a.memo((function(e){const{cartData:t,cartPrices:n,listLocalPricesProducts:r,isCart:o,showNextPaymentData:i,modifier:c,className:s}=e,{proPlanProductId:u,billingCycle:d,isTrial:m}=t,{pro:g,user:h,state:f}=a.useContext(D),{subscriptionDetails:y}=f;if(null===g||null===h)return a.createElement("div",null);const v=(0,E.t)("{currencySymbol}{cost} {currency}").format({currency:n.currency,cost:(0,p.round2)(n.totalCostWithTax),currencySymbol:(0,ie.getCurrencySign)(n.currency)}),C=(0,ie.getListExchanges)(g,t),b=u?g.getProduct(u):void 0,w=!m&&u?Re(u,d,h,g):void 0,x=m?et(y):(0,E.t)("Total"),_=!m&&i&&u&&(g.isOffer(u,"early_access")||g.isOffer(u,"six_months")||g.isOffer(u,"1 usd offer")||g.isOffer(u,"last_chance")||g.isOffer(u,"custom_discount")||g.isOffer(u,"black_friday")),P=(0,E.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,p.round2)(n.tax),currency:n.currency,currencySign:(0,ie.getCurrencySign)(n.currency)});return a.createElement("div",{className:B(s,Je["purchase-info"])},t.proPlanProductId&&a.createElement("div",{className:Je["cart-section"]},a.createElement(Be,{pro:g,cost:(0,p.round2)(n.proPlanCost),cartData:t,modifier:c,currency:n.currency,classNameProductName:B({[Je["product-trial"]]:m}),classNameProductCost:B({[Je["cost-trial"]]:m})})),C.length>0&&a.createElement("div",{className:B(Je["cart-section"])},a.createElement(Qe,{pro:g,cartData:t,isCart:o,exchanges:C,cartPrices:r,currency:n.currency,classNameExchangeItem:Je["exchange-item"]})),0!==n.tax&&!m&&a.createElement("div",{className:B(Je["cart-section"])},a.createElement(Ze,{tax:(0,p.round2)(n.tax),currency:n.currency,subtotal:(0,p.round2)(n.subtotal)})),a.createElement("div",{className:B(Je.total,Je["cart-section"])},a.createElement("h3",{className:Je["total-title"]},x),a.createElement("div",{className:Je["total-cost"]},v),0!==n.tax&&m&&a.createElement("p",{className:Je["total-tax"]},P),m?a.createElement(a.Fragment,null,g&&u&&a.createElement(nt,{title:at(d),description:function(){const e=n.proPlanCostWithTax,t=n.currency,a=rt(Te(y));if(d!==l.BillingCycle.Monthly){return(0, +E.t)("Accounting for your Early Bird discount, the chosen payment method will be charged {cost} on {billing_date}. The annual payments after this one will be {full_cost}, our regular price.").format({cost:ot(e,t),billing_date:a,full_cost:ot(n.baseProPlanCostWithTax,t)})}return(0,E.t)("Your card will be charged {cost} on {billing_date}.").format({cost:ot(e,t),billing_date:a})}()}),a.createElement(nt,{title:(0,E.t)("You can cancel auto-renewal"),description:function(){const e=rt(Te(y));return(0,E.t)("You can cancel your trial & auto-renewal BEFORE {billing_date} and you will not be charged at all.").format({billing_date:e})}()})):i&&a.createElement("div",{className:Je["billing-freq"]},(0,p.billingPeriodText)(d)),w&&a.createElement(nt,{description:w.text}),_&&b&&a.createElement(Ae,{product:b,billingCycle:d,pro:g,proPlanCost:n.baseProPlanCostWithTax,exchangesCost:n.exchangesCost,extraDays:null==w?void 0:w.extraDays,currency:n.currency})))}));var ct,lt=n(42879),st=n(59407),ut=n(42707),dt=n(86240),mt=n(68769),pt=n(40161),gt=n(6331);function ht(e){const{paymentMethods:t,token:n,onMethodChange:r}=e;return a.createElement("div",{className:gt.container},a.createElement(pt.FormSelect,{id:"one-click-payment-method",value:n||"default",size:"large",items:function(){const e=t.map(e=>function(e){let t,n;1===e.method?(t="*"+e.acct,n=mt.braintreePaymentTypeToIconMap[e.cardtype]):2===e.method?(t=E.t("PayPal account"),n=mt.paymentTypeToIconMap.paypal):3===e.method?(t="Google Pay",n=mt.paymentTypeToIconMap["google-pay"]):4===e.method&&(t="Apple Pay",n=mt.paymentTypeToIconMap["apple-pay"]);return{value:e.token,content:a.createElement("div",{className:gt["dropdown-item"]},a.createElement("img",{src:n||mt.paymentTypeToIconMap.default,className:gt.icon}),a.createElement("span",null,t))}}(e));return e.push({value:"default",content:a.createElement("div",{className:gt["dropdown-item"]},a.createElement(ce.Icon,{icon:mt.paymentTypeToIconMap.default,className:gt.icon}),a.createElement("span",null,E.t("Add new method")))}),e}(),onChange:r}))}!function(e){e.Untouched="untouched",e.Unsettled="unsettled",e.Resolved="resolved",e.Rejected="rejected"}(ct||(ct={}));var ft=n(5437),yt=n(45345),vt=n(26843),Ct=n(26996),bt=n(71036),Et=n(75223);function wt(e){const{onClick:t,loaderColor:n,disabled:r,showLoader:o=!1}=e,[i,c]=function(e){const[t,n]=(0,a.useState)(ct.Untouched),r=(0,y.useIsMounted)(),o=(0,a.useCallback)((...t)=>{e&&(i(ct.Unsettled),e(...t).then(()=>i(ct.Resolved)).catch(()=>i(ct.Rejected)))},[e]),i=(0,a.useCallback)(e=>{r.current&&n(e)},[]);return[o,t]}(t),[l,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s(c===ct.Unsettled&&o)},[c]);const u=B(Et.childrenWrapper,!l&&Et.shown),d=B(Et.loader,l&&Et.shown);return{onClickhandler:i,disabled:r||c===ct.Unsettled,childrenWrapperClassNames:u,laoderClassNames:d,loaderColor:null!=n?n:yt.watchedTheme.value()===vt.StdTheme.Light?"white":"gray"}}function xt(e){const{disabled:t,showLoader:n,loaderColor:a,onClick:r,...o}=e;return o}function _t(e){ +const{onClickhandler:t,disabled:n,childrenWrapperClassNames:r,laoderClassNames:o,loaderColor:i}=wt(e),{children:c,size:l="small",...s}=e;return a.createElement(bt.SquareButton,{...xt(s),disabled:n,onClick:t,size:l},a.createElement("span",{className:r},c),a.createElement(Ct.Loader,{className:o,color:i}))}var Pt=n(59353);function St(e){const{token:t,onClick:n,currentPaymentMethod:r,hideDefaultButton:o,showPaymentDropdown:i,allowOneClickPurchase:c,reference:l,onMethodChange:s,disabled:u,activePaymentMethods:d}=e,m=i&&c&&!o&&d&&d.length>0,p=m&&r?E.t("Purchase"):E.t("Next"),g=(0,ut.useSafeMatchMedia)(dt["media-mf-tablet-landscape"]);return a.createElement(a.Fragment,null,m&&a.createElement(ht,{token:t,paymentMethods:d||[],onMethodChange:s}),a.createElement("div",{className:Pt.next,ref:l},!o&&a.createElement(_t,{onClick:n,size:g?"medium":"large",disabled:u,showLoader:!0,stretch:!0},p)))}var kt=n(25293);var Tt;function Nt(e,t){return e!==te.PaymentTab.Coinbase&&!(e===te.PaymentTab.Ecommpay&&t.filter(e=>Boolean(e)).length>1)}!function(e){e[e.Highligh=0]="Highligh",e[e.ChangeTrial=1]="ChangeTrial",e[e.Next=2]="Next",e[e.OrderPurchase=3]="OrderPurchase",e[e.Disabled=4]="Disabled"}(Tt||(Tt={}));const At=a.memo((function(e){const{pro:t,cartData:n,currentStep:r,reference:o,clientToken:i,currentPaymentMethod:c,currentPaymentTab:l,isOnlyExchanges:s,statusExtraData:u,token:d,activePaymentMethods:m,modifier:g,setStep:h,onHighlight:f,setErrorText:v,setAllowTryAgain:C,onNext:b,onSuccessPurchase:w,onMethodChange:x,listLocalPricesProducts:_,currency:P}=e,{isTrial:S,exchanges:k}=n,T=r===st.Steps.PaymentMethod||r===st.Steps.Trial&&void 0===g,N=(0,y.useIsMounted)(),[A,D]=(0,a.useState)(!1),[I,R]=(0,a.useState)(!1),O=a.useMemo(()=>(0,ie.getPricesForCart)({pro:t,cartData:n,currency:P,listLocalPricesProducts:_}),[t,n,_,P]),M=(O.currency!==H.Currencies.Usd?(0,E.t)("{cost}"):(0,E.t)("${cost}")).format({cost:(0,p.round2)(S?0:O.totalCostWithTax)}),[L,Y]=(0,a.useState)(""),U=(0,V.isFeatureEnabled)("braintree-order-one-click-dropdown")&&r===st.Steps.MarketData&&!I&&!s&&0===n.exchanges.length&&u===lt.StatusExtraData.Disable,F=r===st.Steps.MarketData&&!I,z=function(e,t,n){const{currentStep:a,cartData:r,statusExtraData:o,modifier:i,token:c}=e;if(function(e){const{currentStep:t,cartData:n,modifier:a,orderTermsChecked:r}=e;return t===st.Steps.MarketData&&void 0===n.proPlanProductId&&0===n.exchanges.length||t===st.Steps.Trial&&void 0!==a&&!r}(e))return Tt.Disabled;if(a===st.Steps.MarketData&&void 0===o)return Tt.Highligh;if(void 0!==i&&r.isTrial&&r.proPlanProductId)return Tt.ChangeTrial;if(!n||!c||!t)return Tt.Next;return Tt.OrderPurchase}(e,U,F);(0,a.useEffect)(()=>{const e=()=>R(window.innerWidth<1020);return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{I&&x("default")},[I]);const j=(0,a.useCallback)(async e=>{const t=await e.json();N.current&&t.detail&&t.code&&(v&&v(t.detail),["payments_banned","anonymization_activated","order_forbidden"].includes(t.code)&&C(!1),h(st.Steps.Error)) +},[]),G=a.useCallback(async()=>{q();const{proPlanProductId:e}=n;if(z===Tt.Highligh)return f();if(z===Tt.Next)return b();let t=null;if(z===Tt.ChangeTrial&&e&&(t=await(0,ne.onChangeTrial)(e)),z===Tt.OrderPurchase&&null!==d){const a=e?[e,...k]:n.exchanges;t=await(0,ne.onOrderPurchase)(d,a,ne.PaymentDataType.Token,n.billingCycle,{device_data:L})}N.current&&null!==t&&(t.ok?w(t):j(t))},[z,n.proPlanProductId,n.exchanges,n.billingCycle,d,b,w]);(0,a.useEffect)(()=>{i&&(0,we.getDeviceData)(i).then(e=>{N.current&&Y(e)})},[c,i]);const W=B(Oe.cart,{[Oe["mobile-opened"]]:A}),q=(0,a.useCallback)(()=>D(!1),[]),$=(0,a.useCallback)(()=>D(!0),[]);return a.createElement("div",{className:W},a.createElement("div",{className:B(Oe["caret-button"],Oe["header-caret-button"])},a.createElement(ce.Icon,{icon:kt,onClick:q,className:Oe.icon})),a.createElement(it,{isCart:!0,cartData:n,cartPrices:O,listLocalPricesProducts:_,showNextPaymentData:Nt(l,[n.proPlanProductId,...n.exchanges]),modifier:g,className:Oe["purchase-info"]}),a.createElement("div",{className:B(Oe.actions,U&&Oe.withPaymentDropdown)},a.createElement("div",{className:Oe["caret-button"]},a.createElement(ce.Icon,{icon:kt,onClick:$,className:B(Oe.icon,Oe.dropped)})),a.createElement("div",{className:B(Oe["mobile-wrapper"],A&&Oe["mobile-wrapper-opened"])},a.createElement("div",{className:Oe["mobile-total"]},a.createElement("h3",{className:Oe["mobile-total-title"]},(0,E.t)("Total:")),a.createElement("div",{className:Oe["mobile-total-cost"]},M)),a.createElement(St,{token:d,onClick:G,currentPaymentMethod:c,onMethodChange:x,showPaymentDropdown:U,hideDefaultButton:T,allowOneClickPurchase:F,disabled:z===Tt.Disabled,reference:o,activePaymentMethods:m}))))}));var Dt=n(60670),It=n(54349),Rt=n(90514);function Ot(e){return a.createElement("span",{className:B(Rt.description,e.className)},e.children)}const Bt=a.memo((function(e){return a.createElement("h2",{className:B(Rt.title,e.className)},e.text)}));var Mt=n(45631),Lt=n(46248);function Yt(e){const{status:t,disabled:n}=e;return a.createElement("label",{className:Lt.item},a.createElement(Mt.RadioButton,{className:Lt.button,value:t,"aria-label":t,disabled:n}),a.createElement("div",{className:Lt.wrapper},a.createElement("p",{className:Lt.title},function(e){if(e===lt.StatusExtraData.Enable)return E.t("I need that data");return E.t("I'm good without it")}(t)),a.createElement("p",{className:Lt.description},function(e){if(e===lt.StatusExtraData.Enable)return E.t("Show me the available market packages");return E.t("I'll just buy the plan as it is for now")}(t))))}var Ut=n(44065),Ft=n(77540);function zt(e){const{name:t,className:n,size:r,title:o,alt:i,role:c}=e,l=B("tv-flag-country tv-flag-country--"+t,r&&"tv-flag-country--size_"+r,n);if("forex"===t)return a.createElement(ce.Icon,{icon:Ft,className:l});const s=(0,Ut.flagUrl)(t);return a.createElement("img",{title:o,alt:i,className:l,src:s,role:c})}var Ht=n(38780),Vt=n(32563),jt=n(15294),Gt=n(61074),Wt=n(66026);function qt(e){return a.createElement(ce.Icon,{icon:Wt,title:e.residentTooltipText, +className:B(e.className,"apply-common-tooltip")})}var $t=n(30152),Kt=n(17681),Qt=n(51491);const Xt=new Set(["exchange-bist_mixed"]),Zt={"exchange-bist_mixed":43000609137},Jt=a.memo((function(e){const{exchange:t,pro:n,billingCycle:r,questionMark:o,solutionId:i,isDisabledExchange:c}=e,{name:s,description:u,country:d,text_id:m}=t,p=n.getCost(t,l.BillingCycle.Monthly),g=n.getCost(t,l.BillingCycle.OneYear),h=(0,ie.getExchangeType)(t),f=E.t("This is a special price for residents of the exchange's home country. The final cost is applied after entering your address in the next step.");return a.createElement("label",{className:B(Qt.item,c&&Qt["item-disabled"])},a.createElement("div",{className:Qt.info},a.createElement(jt.GroupedCheckbox,{disabled:c,value:m,className:Qt.checkbox,"aria-label":m}),a.createElement(zt,{className:Qt.flag,name:d.toLowerCase()}),a.createElement("div",{className:Qt.title},a.createElement("span",{className:Qt["exchange-name"]},(0,ie.translateExchangeData)(s)),h.length>0&&h.map((e,t)=>a.createElement(We,{type:e,className:Qt.exchangeBadge,key:t}))),a.createElement(Ot,{className:Qt.description},(0,ie.translateExchangeData)(u),o&&i&&a.createElement(nn,{solutionId:i}))),a.createElement("div",{className:Qt.prices},t.has_resident_price&&t.cost_local&&a.createElement("div",{className:Qt["resident-price"]},a.createElement(tn,{billingCycle:r,monthlyPrice:t.cost_local,annualPrice:12*t.cost_local})),a.createElement(tn,{billingCycle:r,monthlyPrice:p,annualPrice:g}),t.has_resident_price&&a.createElement(qt,{className:Qt.badge,residentTooltipText:f})))}));function en(e){const{pro:t,currentTab:n,billingCycle:r,selectedExchanges:o,onChangeListExchanges:i,disableSF:c}=e,[l,s]=a.useState(t.getProductsByType(t.PRODUCT_TYPES.exchange));function u(){s(t.getProductsByType(t.PRODUCT_TYPES.exchange))}(0,a.useEffect)(()=>(t.packagesUpdated.subscribe(null,u),()=>t.packagesUpdated.unsubscribe(null,u)),[]);const d=(0,ie.getAvailableExchanges)(l),m=function(e,t){for(const n in t)if(t[n].hasOwnProperty("name")&&t[n].name===e)return t[n].exchanges;return[]}(n,(0,ie.getExchangesOrderedByRegion)(d)),p=(0,a.useMemo)(()=>m.filter(e=>t.hasPackage(e.text_id)).map(e=>e.text_id),[l,n,t]),g=(0,a.useMemo)(()=>m.filter(e=>c&&Boolean(e.idc_service_codes)).map(e=>e.text_id),[l,n,c]),h=(0,a.useMemo)(()=>[...o,...p],[o,p]);return t.isInvalidShopConf()?a.createElement("div",{className:Qt.spinner},a.createElement(Gt.Spinner,null)):a.createElement(It.SwitchGroup,{name:"list_exchanges",onChange:i,values:h},m.map(e=>a.createElement(Jt,{key:e.text_id,exchange:e,pro:t,billingCycle:r,questionMark:Xt.has(e.text_id),solutionId:Zt[e.text_id],isDisabledExchange:p.includes(e.text_id)||g.includes(e.text_id)})))}function tn(e){const{billingCycle:t,monthlyPrice:n,annualPrice:r}=e;return a.createElement("div",{className:Qt.price},a.createElement("div",{className:Qt.month},a.createElement("span",null,"$"),a.createElement("span",null,E.t("{price} /mo").format({price:n.toString()}))),t!==l.BillingCycle.Monthly&&a.createElement("div",{className:Qt.year +},a.createElement("span",null,"$"),a.createElement("span",null,E.t("{price} /year").format({price:r.toString()}))))}function nn(e){const{solutionId:t}=e,n=(0,a.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),(0,$t.showSupportDialog)({solutionId:t})},[t]);return a.createElement("span",{title:E.t("Click to learn more"),className:B("apply-common-tooltip","common-tooltip-html",Qt.tooltipTitle),onClick:rn,onMouseOver:on},a.createElement("a",{href:`/support/solutions/${t}/`,role:"button",className:Qt.infoIcon},a.createElement(ce.Icon,{icon:Kt,className:Qt.infoIconContainer,onClick:n})))}function an(){document.removeEventListener("scroll",an),document.removeEventListener("touchstart",an),(0,Ht.hide)()}function rn(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",an),document.addEventListener("touchstart",an))}function on(e){(0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0})}var cn=n(14284),ln=n(21310);const sn=a.memo((function(e){const{valueCheckbox:t,countryIsNotAllowed:n}=e,r=(0,E.t)("We provide real-time data for free if it's allowed. {link_start}Some data is delayed{link_end} due to specific exchange regulations and real-time data must be purchased separately on this page below. We are required to collect these payments and remit them to the exchanges.").split(/{link_start}|{link_end}/),o=a.createElement(a.Fragment,null,r[0],a.createElement("a",{href:"/?solution=43000471705",className:cn.link},r[1]),r[2]),i=(0,E.t)("US stock market data is real-time, but provided by CBOE BZX. {link_start}This data is slightly different{link_end} from primary exchanges. If you would like to get real-time data directly from NASDAQ, NYSE or ARCA, you can add this data to your plan.").split(/{link_start}|{link_end}/),c=a.createElement(a.Fragment,null,i[0],a.createElement("a",{href:"/?solution=43000473924",className:cn.link},i[1]),i[2]),l=(0,E.t)("Extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus");return t===lt.StatusExtraData.Enable?null:a.createElement("div",{className:cn.info},n?a.createElement(ln.Informer,{className:cn.informer,content:l,informerIntent:"warning"}):a.createElement(a.Fragment,null,a.createElement("p",{className:cn.text},o),a.createElement("p",{className:cn.text},c)))}));var un=n(43861),dn=n(55348),mn=n(60033);const pn=a.memo((function(e){return a.createElement("div",{className:mn.footer},a.createElement("div",{className:mn.info},a.createElement("div",{className:mn.title},a.createElement(ce.Icon,{className:mn.icon,icon:un}),a.createElement(Ot,{className:mn.text},E.t("Residents price"))),a.createElement(Ot,{className:mn.description},E.t("This is a special price for residents of the exchange's home country. The final cost is applied after entering your address in the next step."))),a.createElement("div",{className:mn.info},a.createElement("div",{className:mn.title},a.createElement(ce.Icon,{icon:dn,className:mn["ice-icon"]})),a.createElement(Ot,{className:mn["description-logo"] +},E.t("Market Data Provided by ICE Data services"))))}));var gn,hn=n(58751),fn=n(28672);!function(e){e.NorthAmerica="North America",e.Europe="Europe",e.EastAfrica="Middle East/Africa",e.Mexico="Mexico and South America",e.AsiaPacific="Asia/Pacific"}(gn||(gn={}));const yn=[lt.StatusExtraData.Disable,lt.StatusExtraData.Enable],vn=[gn.NorthAmerica,gn.Europe,gn.EastAfrica,gn.Mexico,gn.AsiaPacific],Cn=(0,V.isFeatureEnabled)("RU_SF_disable"),bn=(0,V.isFeatureEnabled)("RU_VOR_disable");const En=a.memo((function(e){const{pro:t,billingCycle:n,selectedExchanges:r,isOnlyExchanges:o,statusExtraData:i,setExtraDataStatus:c,setExchanges:l,defaultCountryCode:s}=e,u=o?(0,E.t)("Extra market data"):(0,E.t)("Need extra market data?"),d=(0,mt.isRussian)(s),[m,p]=(0,a.useState)(gn.NorthAmerica),g=d&&Cn&&bn,h=i===lt.StatusExtraData.Enable||o&&!g,f=a.useCallback(e=>{r.includes(e)?l(r.filter(t=>t!==e)):l([...r,e])},[r]),y=a.useCallback(e=>{c(e),e===lt.StatusExtraData.Disable&&l([])},[]),v=vn.map((e,t)=>({onClick:()=>p(e),children:a.createElement("span",null,(0,ie.exchangeGroupTabTranslate)(e)),isChecked:m===e,key:`tab_${e}_${t}`,role:"tabpanel","aria-controls":"tab-region-"+t,"aria-selected":m===e,id:"tabpanel-region-"+t})),C=!o||o&&g;return a.createElement("div",null,a.createElement(Bt,{text:u}),C&&a.createElement(a.Fragment,null,a.createElement("div",{className:B(fn.group,hn["highligh-extra-data"])},a.createElement(It.SwitchGroup,{name:"switcher_extra_data",onChange:y,values:i?[i]:[]},yn.map(e=>a.createElement(Yt,{status:e,key:e,disabled:g})))),a.createElement(sn,{valueCheckbox:i,countryIsNotAllowed:g})),h&&a.createElement(a.Fragment,null,d&&Cn&&a.createElement(ln.Informer,{className:fn.informer,content:(0,E.t)("Some extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus"),informerIntent:"warning"}),a.createElement("div",{className:fn.tabs,role:"tablist","aria-label":u},a.createElement(Dt.RoundTabsButtons,{tabs:v,align:"start",size:"xsmall",theme:Dt.DEFAULT_ROUND_TABS_THEME})),a.createElement("div",{role:"tabpanel",id:"tab-region-"+m,"aria-expanded":!0,"aria-labelledby":"tabpanel-region-"+m},a.createElement(en,{pro:t,currentTab:m,billingCycle:n,selectedExchanges:r,onChangeListExchanges:f,disableSF:d&&Cn})),a.createElement(pn,null)))}));var wn=n(63897),xn=n(11264);function _n(e){const{errorText:t,allowTryAgain:n,onClose:r,onTryAgain:o}=e,i=null!=t?t:(0,E.t)("Connection Error");return a.createElement("div",{className:xn.container},a.createElement(ce.Icon,{icon:wn,className:xn.icon}),a.createElement(Bt,{text:(0,E.t)("Payment error"),className:xn.title}),a.createElement(Ot,{className:xn.description},i),a.createElement(ft.RoundButton,{className:xn.button,onClick:n?o:r},n?(0,E.t)("Try again"):(0,E.t)("Close")))}var Pn=n(46198),Sn=n(33550),kn=n(62867),Tn=n(65417),Nn=n(42155);function An(e){return(0,E.t)("{indicatorQuantity} indicator per chart",{plural:"{indicatorQuantity} indicators per chart",count:e,replace:{indicatorQuantity:e.toString()}})}function Dn(e){return(0, +E.t)("{chartQuantity} chart in one layout",{plural:"{chartQuantity} charts in one layout",count:e,replace:{chartQuantity:e.toString()}})}function In(e){return(0,E.t)("{alertQuantity} server-side alert",{plural:"{alertQuantity} server-side alerts",count:e,replace:{alertQuantity:e.toString()}})}function Rn(){document.removeEventListener("scroll",Rn),document.removeEventListener("touchstart",Rn),(0,Ht.hide)()}function On(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",Rn),document.addEventListener("touchstart",Rn))}class Bn extends a.PureComponent{render(){const{proPlan:e,className:t}=this.props,n=B(Nn.wrapperFeatures,t);let r;switch(e){case Pn.ProPlans.Pro:r=(0,E.t)("Key benefits of Pro:");break;case Pn.ProPlans.ProRealtime:r=(0,E.t)("All the benefits of Pro, plus:");break;case Pn.ProPlans.ProPremium:r=(0,E.t)("The complete package, with:")}return a.createElement("div",{className:n},a.createElement("div",{className:Nn.padding},r&&a.createElement("p",{className:Nn.titleFeatures},r),a.createElement("ul",{className:Nn.listFeatures},function(e){var t,n,r,o,i,c,l,s,u;const d={pro:[{text:An((null===(t=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.Pro))||void 0===t?void 0:t.limit)||0)},{text:(0,E.t)("2 charts in one window")},{text:In((null===(n=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.Pro))||void 0===n?void 0:n.limit)||0)},{text:(0,E.t)("Ad-free")},{text:(0,E.t)("Volume profile indicators")},{text:(0,E.t)("Custom time intervals")},{text:(0,E.t)("Multiple enhanced watchlists")},{text:(0,E.t)("Bar replay on intraday bars")},{text:(0,E.t)("Multi-monitor support in Desktop app")}],pro_realtime:[{text:An((null===(r=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.ProRealtime))||void 0===r?void 0:r.limit)||0)},{text:Dn((null===(o=(0,Sn.getConfig)(kn.ProductFeatures.MULTIPLE_CHARTS,Pn.ProPlans.ProRealtime))||void 0===o?void 0:o.limit)||0)},{text:In((null===(i=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.ProRealtime))||void 0===i?void 0:i.limit)||0)},{text:(m=(null===(c=(0,Sn.getConfig)(kn.ProductFeatures.CHART_STORAGE,Pn.ProPlans.ProRealtime))||void 0===c?void 0:c.limit)||0,(0,E.t)("{chartLayoutsQuantity} saved chart layout",{plural:"{chartLayoutsQuantity} saved chart layouts",count:m,replace:{chartLayoutsQuantity:m.toString()}}))},{text:(0,E.t)("Intraday exotic charts")},{text:(0,E.t)("Charts based on custom formulas")},{text:(0,E.t)("Chart data export")},{text:(0,E.t)("Indicators on indicators")}],pro_premium:[{text:An((null===(l=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.ProPremium))||void 0===l?void 0:l.limit)||0)},{text:Dn((null===(s=(0,Sn.getConfig)(kn.ProductFeatures.MULTIPLE_CHARTS,Pn.ProPlans.ProPremium))||void 0===s?void 0:s.limit)||0)},{text:In((null===(u=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.ProPremium))||void 0===u?void 0:u.limit)||0)},{text:(0,E.t)("Unlimited saved chart layouts")},{text:(0, +E.t)("Second-based intervals")},{text:(0,E.t)("Alerts that don't expire")},{text:(0,E.t)("4x more data on charts (20K bars)")},{text:(0,E.t)("Publishing invite-only indicators")}]};var m;return a.createElement(a.Fragment,null,d[e].map((e,t)=>a.createElement("li",{key:t,className:Nn.itemFeatures},e.text,e.tooltip&&a.createElement("span",{title:e.tooltip,"aria-label":e.tooltip,className:B("apply-common-tooltip",Nn.tooltipTitle),onClick:On},a.createElement(ce.Icon,{icon:Tn,className:Nn.tooltipIcon})))))}(e))))}}var Mn=n(9716);const Ln=/{\w+}/;var Yn;function Un(e){const{price:t,period:n,color:r=Yn.Black}=e,o=E.t("Special price: ${price} {measure}"),i=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}mo{htmlCloseTag}"),c=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}year{htmlCloseTag}"),s=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}2 years{htmlCloseTag}"),u=E.t("USD/mo"),d=E.t("USD/year"),m=E.t("USD/2 years");let p=i,g=u;switch(n){case l.BillingCycle.OneYear:p=c,g=d;break;case l.BillingCycle.TwoYears:p=s,g=m}const h=p.split(Ln).filter(e=>e.length>0),f=o.format({price:t,measure:g}),y=B(Mn.offerPrice,Mn[r]);return a.createElement("div",{className:y,"aria-label":f},a.createElement("span",{className:Mn.sup,"aria-hidden":!0},"$"),a.createElement("ins",{className:Mn.mainPrice,"aria-hidden":!0},t),a.createElement("span",{className:B(Mn.measure),"aria-hidden":!0},a.createElement(a.Fragment,null,a.createElement("span",null,h[0]),a.createElement("span",null,h[1]))))}!function(e){e.Gray="color-gray",e.Red="color-red",e.Black="color-black",e.Green="color-green"}(Yn||(Yn={}));var Fn=n(3615);function zn(e){(0,Fn.showWarning)({title:(0,E.t)("Manage account via app"),text:(0,E.t)("You can manage your subscription via the {app_name} TradingView app. In order to make changes, please go to the payment section of the app, found under profile settings.").format({app_name:e})})}var Hn=n(33040),Vn=n(84303),jn=n(38335),Gn=n(11313),Wn=n(18662);const qn=k();async function $n(e){const{proPlan:t,billingCycle:n,offer:a,type:r}=e,o=(0,E.t)("Sorry, your subscription can’t currently be extended, downgraded or upgraded because your payment method doesn’t support recurring payments. Please head to profile settings to update your payment method, then try again."),i=(0,E.t)("Recurring payment issue");let c=null;try{c=await(0,Wn.getDowngrade)({pro_plan:t,billing_cycle:n,offer:a})}catch(e){return["ApiError:downgrade_not_permitted"].includes(e.name)?void(0,Fn.showWarning)({title:i,text:o}):void(0,Fn.showWarning)({title:(0,E.t)("Error"),text:e.message})}if(!c)return void(0,Fn.showWarning)({title:(0,E.t)("Error"),text:(0,E.t)("Something went wrong")});const{current:l,downgrade:s,next_billing:u}=c;s?(0,Gn.changePlanDialog)({current:l,next:s,nextPayment:u,type:r,currentPayment:{currency:"USD",price:0},offer:a,onSuccess:function(){qn.emit({type:P.Downgrade})}}):(0,Fn.showWarning)({title:i,text:o})}var Kn=n(74364);function Qn(e){const{color:t,children:n,disabled:r,variant:o="primary",onClick:i,isLink:c=!1}=e,l=(0, +ut.useSafeMatchMedia)(dt["media-mf-tablet-landscape"],!0)?"xlarge":"medium";return a.createElement("div",null,c?a.createElement("a",{role:"button",href:"#",className:Kn.link,onClick:function(e){e.preventDefault(),void 0!==i&&i()}},n):a.createElement(bt.SquareButton,{color:t||"brand",size:l,variant:o,disabled:r,onClick:i,tabIndex:0,stretch:!0,className:Kn.button},n))}function Xn(e){const t=(0,E.t)("Start now");return a.createElement(Qn,{...e},e.text||t)}function Zn(e){const t=(0,E.t)("Buy now");return a.createElement(Qn,{...e},e.text||t)}function Jn(e){const t=(0,E.t)("Included");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function ea(e){const t=(0,E.t)("Extend",{context:"plan"});return a.createElement(Qn,{...e},e.text||t)}function ta(e){const t=(0,E.t)("Switch",{context:"plan"});return a.createElement(Qn,{...e},e.text||t)}function na(e){const t=(0,E.t)("Not available");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function aa(e){const t=(0,E.t)("Upgrade");return a.createElement(Qn,{...e},e.text||t)}function ra(e){const t=(0,E.t)("Downgrade");return a.createElement(Qn,{...e},e.text||t)}function oa(e){const t=(0,E.t)("Get 6 months free");return a.createElement(Qn,{...e},e.text||t)}function ia(e){const t=(0,E.t)("Get {discount}% off"),{discount:n=0,...r}=e,o=e.text||t.format({discount:n.toString()});return a.createElement(Qn,{...r},o)}function ca(e){const t=(0,E.t)("Try free for {days} day",{plural:"Try free for {days} days",context:"free_trial",count:e.trialLength}).format({days:(e.trialLength||"").toString()});return a.createElement(Qn,{...e},e.text||t)}function la(e){const t=(0,E.t)("Start now",{context:"basic"});return a.createElement(Qn,{...e},e.text||t)}function sa(e){const t=(0,E.t)("Downgrade activated");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function ua(e){const t=(0,E.t)("Reactivate current");return a.createElement(Qn,{...e},e.text||t)}var da,ma;!function(e){e[e.Free=0]="Free",e[e.Trial=1]="Trial",e[e.StartPlan=2]="StartPlan",e[e.EarlyAccess=3]="EarlyAccess",e[e.LastChance=4]="LastChance",e[e.CurrentLastChance=5]="CurrentLastChance",e[e.CurrentEarlyAccess=6]="CurrentEarlyAccess",e[e.SixMonthUpgrade=7]="SixMonthUpgrade",e[e.CurrentSixMonthUpgrade=8]="CurrentSixMonthUpgrade",e[e.Upgrade=9]="Upgrade",e[e.Downgrade=10]="Downgrade",e[e.Current=11]="Current",e[e.CurrentTrial=12]="CurrentTrial",e[e.BuyNow=13]="BuyNow",e[e.Included=14]="Included",e[e.Markets=15]="Markets",e[e.NotAvailable=16]="NotAvailable",e[e.OneUsdUpgrade=17]="OneUsdUpgrade",e[e.DowngradeActivated=18]="DowngradeActivated",e[e.ReactivateCurrent=19]="ReactivateCurrent",e[e.Switch=20]="Switch"}(da||(da={})),function(e){e[e.UpgradeTrial=0]="UpgradeTrial",e[e.DowngradeTrial=1]="DowngradeTrial",e[e.SkipTrial=2]="SkipTrial",e[e.DateStarted=3]="DateStarted",e[e.DateEnd=4]="DateEnd",e[e.DowngradeDescription=5]="DowngradeDescription",e[e.UpgradeDescription=6]="UpgradeDescription",e[e.CurrentPlan=7]="CurrentPlan"}(ma||(ma={}));const pa=a.memo(e=>{ +const{action:t,offerId:r,...o}=e,{visitPaymentPage:i,startTrial:c,upgradePlan:u}=a.useContext(oe);function d(t){if(e.appName)return void zn(e.appName);const n={[Hn.ChangePlanType.Reactivate]:"reactivate",[Hn.ChangePlanType.Downgrade]:"downgrade",[Hn.ChangePlanType.Switch]:"switch"};g(`${e.proPlan} ${n[t]}`),$n({billingCycle:e.billingCycle||l.BillingCycle.OneYear,proPlan:e.proPlan,type:t})}switch(t){case da.EarlyAccess:case da.CurrentEarlyAccess:return a.createElement(ia,{...o,onClick:function(){const{discount:t,proPlan:n,appName:a}=e;if(a)return void zn(a);if(void 0!==t){g(`${n} early access ${t}`);const e=(0,jn.getVisitEarlyAccessPaymentPageProperties)(n,t);i(e.billingCycle,e.options)}}});case da.LastChance:case da.CurrentLastChance:return a.createElement(ia,{...o,onClick:function(){if(e.appName)return void zn(e.appName);e.isLowerWeightOffer?($n({billingCycle:e.billingCycle||l.BillingCycle.OneYear,proPlan:e.proPlan,offer:s.OFFERS.last_chance,type:Hn.ChangePlanType.Downgrade}),g(`${e.proPlan} ${s.OFFERS.last_chance} downgrade`)):r&&(i(e.billingCycle,{productName:e.offerId,fixedCycle:!0}),g(`${e.proPlan} ${s.OFFERS.last_chance}`))}});case da.SixMonthUpgrade:case da.CurrentSixMonthUpgrade:return a.createElement(oa,{...o,onClick:function(){if(e.appName)return void zn(e.appName);void 0!==r&&(i(l.BillingCycle.OneYear,{productName:e.offerId,fixedCycle:!0}),g(r),e.onClick&&e.onClick())}});case da.OneUsdUpgrade:return a.createElement(aa,{...o,onClick:function(){if(e.appName)return void zn(e.appName);void 0!==r&&(i(e.billingCycle,{productName:e.offerId,fixedCycle:!0}),g(r),e.onClick&&e.onClick())}});case da.Upgrade:return a.createElement(aa,{...o,onClick:async function(){if(e.appName)return void zn(e.appName);g(e.proPlan+" upgrade");const{isFeatureEnabled:t}=await Promise.resolve().then(n.t.bind(n,76266,19));if(t("pro_plan_upgrades_disabled"))return m();u(e.proPlan,e.billingCycle||l.BillingCycle.OneYear,()=>m())}});case da.DowngradeActivated:return a.createElement(sa,{...o});case da.ReactivateCurrent:return a.createElement(ua,{...o,onClick:()=>d(Hn.ChangePlanType.Reactivate)});case da.Downgrade:return a.createElement(ra,{...o,onClick:()=>d(Hn.ChangePlanType.Downgrade)});case da.Trial:return a.createElement(ca,{...o,onClick:function(){const{proPlan:t,billingCycle:n,discount:a,appName:r}=e;if(r)return void zn(r);if(!window.is_authenticated)return void(0,Vn.showSignModal)({source:"Go pro page"});let o=t.toString();a&&e.billingCycle===l.BillingCycle.OneYear&&(o=(0,p.toEarlyAccess)(o,a));g(t+" trial"),c(o,n||l.BillingCycle.Monthly)}});case da.Free:return a.createElement(la,{...o,onClick:function(){g("basic"),(0,Vn.showSignModal)({mode:"signup",source:"Go pro page"})}});case da.StartPlan:return a.createElement(Xn,{...o,onClick:h});case da.CurrentTrial:case da.BuyNow:return a.createElement(Zn,{...o,onClick:function(){m()}});case da.Current:return a.createElement(ea,{...o,onClick:h});case da.Switch:return a.createElement(ta,{...o,onClick:()=>d(Hn.ChangePlanType.Switch)});case da.NotAvailable:return a.createElement(na,{...o});default: +return a.createElement(Jn,{...o})}function m(){const{proPlan:t,billingCycle:n,appName:a}=e;a?zn(a):(g(t),i(n,{productName:t,fixedCycle:!1}))}function g(e){f("gopro",e)}function h(){m()}});var ga=n(71360),ha=n(60495);function fa(){document.removeEventListener("scroll",fa),document.removeEventListener("touchstart",fa),(0,Ht.hide)()}function ya(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",fa),document.addEventListener("touchstart",fa))}function va(e){const{discount:t,fullMonthlyPrice:n,fullYearlyPrice:r,isEarlyBird:o=!1,isVisibleInformationIcon:i=!0,isLastChance:c=!1}=e,l=E.t("Compared to paying monthly."),s=E.t("All of your unused trial days will be added to your subscription. This offer expires soon."),u=E.t("The full monthly price is ${monthlyPrice}. The monthly price within the yearly subscription is ${yearlyPrice}.").format({monthlyPrice:n,yearlyPrice:r}),d=E.t("Compared to paying monthly. This offer expires soon."),m=E.t("You save {strongTag}${amount}{strongTag} a year"),[p,g,h,f]=m.split(/{strongTag}|{amount}/),y=c?d:l+" "+(o?s:u);if(0===t)return a.createElement(a.Fragment,null);const v=B(ga["tooltip-wrap"],i&&"apply-common-tooltip");return a.createElement("div",{className:ga.label},a.createElement("span",null,p,a.createElement("strong",null,g+t.toString()+h),f),i&&a.createElement("span",{className:ga["info-icon-wrap"]},a.createElement(ce.Icon,{icon:ha,className:ga["info-icon"]})),i&&a.createElement("div",{title:y,"aria-label":y,onClick:ya,className:v}))}var Ca=n(63332);class ba extends a.PureComponent{render(){const{proPlan:e}=this.props;return a.createElement("div",{className:Ca.cardTitle},(0,p.humanizeCardPlan)(e))}}var Ea=n(86326);class wa extends a.PureComponent{render(){let e;switch(this.props.proPlan){case Pn.ProPlans.Free:e=E.t("For new traders and investors starting their journey");break;case Pn.ProPlans.Pro:e=E.t("Distraction-free trading and investing, with more charts, intervals and indicators");break;case Pn.ProPlans.ProRealtime:e=E.t("Intraday technical analysis for day traders looking to take things to the next level");break;case Pn.ProPlans.ProPremium:e=E.t("Highest precision and maximum data to capture all possible opportunities")}return a.createElement("div",{className:Ea.cardDescription},e)}}var xa=n(54417),_a=n(64790);function Pa(e){const{proPlan:t,isActiveCard:n,labelType:r,isSixMonthsOffer:o}=e;if(1===r)return a.createElement("div",{className:B(_a.label,_a.gift,_a["label-gift--"+t],!n&&_a["no-active-card"]),dir:"ltr"},a.createElement(ce.Icon,{icon:xa,className:_a.icon}));const i=E.t("-{numberDiscount}% off").format({numberDiscount:e.discount.toString()}),c=o?_a["label-discount-upsell"]:_a["label-discount--"+t];return a.createElement("div",{className:B(_a.label,_a.discount,c,!n&&_a["no-active-card"]),dir:"ltr"},i)}var Sa=n(84235);const ka=/{\w+}/;function Ta(e){ +const t=E.t("or skip trial and {openLink}pay now{closeLink}"),{visitPaymentPage:n}=a.useContext(oe),{proPlan:r,billingCycle:o,offerId:i}=e,c=t.split(ka).filter(e=>e.length>0),l=(0,a.useCallback)(e=>{e.preventDefault(),window.runOrSignIn(()=>n(o,{productName:i||r}),{source:"Skip trial"}),(0,G.trackEvent)("Gopro","click_CTA_pay_now",r),f("gopro",r+" skip trial")},[r,o,i]);return a.createElement("div",{className:Sa.skipTrial},c[0],a.createElement("a",{href:"/order/",onClick:l,className:Sa.link},c[1]))}var Na;!function(e){e[e.Downgrade=0]="Downgrade",e[e.Upgrade=1]="Upgrade"}(Na||(Na={}));var Aa=n(3412);function Da(e){const{action:t,eventAction:n,proPlan:r,offerId:o}=e,{changeTrial:i}=a.useContext(oe),{state:c}=a.useContext(D),s=t===ma.DowngradeTrial?E.t("Trial downgrade"):E.t("Trial upgrade");return a.createElement("a",{href:"",className:Aa["change-trial"],onClick:function(e){var a,s;e.preventDefault();const u=null===(s=null===(a=null==c?void 0:c.subscriptionDetails)||void 0===a?void 0:a.renewal)||void 0===s?void 0:s.billing_cycle;if(void 0===u)return;let d=r.toString();o&&u===l.BillingCycle.OneYear&&(d=o);t===ma.DowngradeTrial?(i(d,u,Na.Downgrade),(0,G.trackEvent)("Gopro",n,"Downgrade trial"),f("gopro",d+" downgrade trial")):t===ma.UpgradeTrial&&(i(d,u,Na.Upgrade),(0,G.trackEvent)("Gopro",n,"Upgrade trial"),f("gopro",d+" upgrade trial"))},role:"button"},s)}function Ia(e){const{user:t}=a.useContext(D),{proPlan:n}=e,r=(null==t?void 0:t.is_trial)&&void 0!==(null==t?void 0:t.pro_plan)&&(0,p.getProductForTrial)(null==t?void 0:t.pro_plan)===n;return a.createElement("div",{className:Aa["current-trial"]},r&&E.t("Current trial"))}var Ra=n(1787),Oa=n(33848);function Ba(e){const{secondaryAction:t,proPlan:n,offerId:r,billingCycle:o,showChangeTrial:i,currentSubscriptionExpireOn:c}=e;if(t===ma.SkipTrial)return a.createElement(Ta,{proPlan:n,billingCycle:o,offerId:r});if(i&&(t===ma.UpgradeTrial||t===ma.DowngradeTrial))return a.createElement(Da,{action:t,eventAction:`click_CTA_${n}_top'}`,proPlan:n,offerId:r});if(c&&t===ma.DateStarted)return a.createElement("div",{className:Oa.description},E.t("Starting on {date}").format({date:_e.dateFormatFunctions["MMM dd, yyyy"](new Date(c),!1)}));if(c&&t===ma.DateEnd)return a.createElement("div",{className:Oa.description},E.t("Ending on {date}").format({date:_e.dateFormatFunctions["MMM dd, yyyy"](new Date(c),!1)}));if(t===ma.DowngradeDescription){const e=E.t("If chosen, this'll start {solution_link}once the existing plan ends{close_solution_link}").split(/{solution_link}|{close_solution_link}/);return a.createElement("div",{className:Oa.description},e[0],a.createElement("a",{className:Oa.link,href:"?solution="+Ra.solutionIds.GOPRO_DOWNGRADE_DESCRIPTION,role:"button"},e[1]),e[2])}if(t===ma.UpgradeDescription){const e=E.t("Pay nothing extra — {solution_link}here's how{solution_link}").split(/{solution_link}|{close_solution_link}/);return a.createElement("div",{className:Oa.description},e[0],a.createElement("a",{className:Oa.link,href:"?solution="+Ra.solutionIds.GOPRO_UPGRADE_DESCRIPTION, +role:"button"},e[1]),e[2])}return t===ma.CurrentPlan?a.createElement("div",{className:Oa.description},E.t("This is your current plan")):a.createElement(Ia,{proPlan:n})}var Ma=n(84895);function La(e){return e===da.CurrentSixMonthUpgrade||e===da.SixMonthUpgrade}function Ya(e){const{primaryAction:t,secondaryAction:n,billingCycle:r,offerProduct:o,product:i,isLowerWeightOffer:c,appName:s,currentSubscriptionExpireOn:u,trialLength:d,isActive:m,className:g,priceProps:h,label:f}=e,{cost:y}=i,v=i.text_id,C=function(e){return e===da.CurrentEarlyAccess||e===da.EarlyAccess}(t),b=function(e){return e===da.LastChance||e===da.CurrentLastChance}(t),E=function(e){return e===da.OneUsdUpgrade}(t),w=La(t),x=!s&&function(e){return e===ma.UpgradeTrial||e===ma.DowngradeTrial}(n);let _;o&&o.product_id?_=o.product_id:o&&(_=o.product.text_id);const P=(0,p.countDiscountByBillingCycle)(h.price,y,r),S=B(Ma.card,Ma[v],g);return a.createElement("div",{className:S},void 0!==f&&a.createElement(Pa,{isSixMonthsOffer:w,isActiveCard:m,proPlan:v,discount:h.discount,labelType:f}),a.createElement(ba,{proPlan:v}),a.createElement(wa,{proPlan:v}),a.createElement(Un,{price:(0,p.round2)(h.price),period:l.BillingCycle.Monthly,color:E?Yn.Red:Yn.Black}),a.createElement(va,{discount:E?0:P,fullMonthlyPrice:(0,p.round2)(h.canceledPrice),fullYearlyPrice:(0,p.round2)(h.price),isEarlyBird:C,isLastChance:b,isVisibleInformationIcon:!w}),a.createElement("div",{className:Ma.button},a.createElement(pa,{proPlan:v,discount:h.discount,action:t,trialLength:d,offerId:_,billingCycle:r,variant:t===da.Downgrade?"secondary":"primary",isLowerWeightOffer:c,appName:s})),a.createElement(Ba,{secondaryAction:n,proPlan:v,offerId:_,billingCycle:r,showChangeTrial:x,currentSubscriptionExpireOn:u}))}var Ua=n(70191);function Fa(e){const{card:t,gridKey:n}=e;let r;La(t.primaryAction)&&(r=1),t.priceProps.discount>0&&(r=0);const o=B(Ua.top,Ua["top-"+n],{[Ua["is-active"]]:t.isActive,[Ua["with-label"]]:void 0!==r}),i=B(Ua.bottom,Ua["bottom-"+n],{[Ua["is-active"]]:t.isActive});return a.createElement(a.Fragment,null,a.createElement(Ya,{...t,isLowerWeightOffer:t.isLowerWeightOffer,appName:t.appName,className:o,label:r}),a.createElement(Bn,{proPlan:t.product.text_id,className:i}))}var za=n(87239),Ha=n(96644),Va=n(29201);const ja=a.memo((function(e){const t=`/share-your-love/?source=${e.source}&feature=card_referral_note`,n=(0,E.t)("Refer a friend and earn ${bonus} to upgrade your plan").format({bonus:"30"});return a.createElement("a",{className:Ha.container,href:t,target:"_blank"},a.createElement("span",{className:Ha.text},n),a.createElement(ce.Icon,{icon:za,className:B(Ha.icon,Va.icon)}))}));var Ga;!function(e){e.Plans="plans",e.Compare="compare",e.Markets="markets",e.WallOfLove="walloflove",e.FAQ="faq"}(Ga||(Ga={}));Ga.Plans,Ga.Compare,Ga.Markets,Ga.WallOfLove,Ga.FAQ;var Wa=n(61975);function qa(e){const t=E.t("Compare all features"),n=new URL("./gopro/",window.location.origin);return n.searchParams.append("source",e.source),n.searchParams.append("feature","card_compare_features"),n.hash=Ga.Compare, +a.createElement("a",{className:Ha.container,href:n.href,target:"_blank"},a.createElement("span",{className:Ha.text},t),a.createElement(ce.Icon,{icon:Wa,className:Ha.icon}))}var $a,Ka=n(31976);!function(e){e[e.CompareFeatures=0]="CompareFeatures",e[e.ReferralNote=1]="ReferralNote"}($a||($a={}));const Qa=a.memo((function(e){const{type:t,source:n}=e;return a.createElement("div",{className:Ka["under-cards"]},t===$a.CompareFeatures&&a.createElement(qa,{source:n}),t===$a.ReferralNote&&a.createElement(ja,{source:n}))}));var Xa=n(88537);function Za(e,t,n,a){var r,o,i,c,l;let s=null!==(r=e.getCost({...t,fixed_cost:!0},n))&&void 0!==r?r:0;const u=t.cost;let d=0,m=null!==(o=e.getCost(t,n))&&void 0!==o?o:0;const p={...t};delete p.cost_annual,delete p.cost_biennial;const g=null!==(i=e.getCost(p,n))&&void 0!==i?i:0;void 0!==a&&(s=null!==(c=e.getCost({...a,fixed_cost:!0},n))&&void 0!==c?c:0,d=a.discount.discount_percent||0,m=null!==(l=e.getCost(a,n))&&void 0!==l?l:0);const h=Math.round(100*(1-s/t.cost));return{price:s,canceledPrice:u,discount:d,fullPrice:m,canceledFullPrice:g,annualProfit:Math.round(100*(1-s/t.cost_annual)),profit:h}}class Ja{constructor(e){this.createCardInfo=e=>{const{pro:t,appName:n,trialLength:a,userProduct:r,availableOffers:o,userAuthenticated:i,subscriptionDetails:c}=this._cardsData,l=i?this._getCardPrimaryAction(e):da.Trial,u=i?this._getCardSecondaryAction(e,l):ma.SkipTrial,d=null!==r&&e.upgrade_weight{var t,n,a;const{isTrialPlan:r,userProduct:o,bannedTrial:i,billingCycle:c,trialAvailable:l,availableOffers:s,subscriptionDetails:u}=this._cardsData,d=null==u?void 0:u.billing_cycle,{early_access:m,last_chance:p,one_usd:g,six_months:h}=s,f=this._getCardOfferProduct(e,m),y=this._getCardOfferProduct(e,h),v=this._getCardOfferProduct(e,p) +;return void 0!==m&&f?(null==o?void 0:o.text_id)===(null===(t=null==f?void 0:f.product)||void 0===t?void 0:t.text_id)?da.CurrentEarlyAccess:da.EarlyAccess:void 0!==h&&void 0!==y?(null==o?void 0:o.text_id)===(null===(n=y.product)||void 0===n?void 0:n.text_id)?da.CurrentSixMonthUpgrade:da.SixMonthUpgrade:void 0!==p&&v?(null==o?void 0:o.text_id)===(null===(a=null==v?void 0:v.product)||void 0===a?void 0:a.text_id)?da.CurrentLastChance:da.LastChance:void 0!==g&&g.products[e.text_id]?da.OneUsdUpgrade:null!==o&&r&&e.upgrade_weight===o.upgrade_weight?da.CurrentTrial:null!==o&&void 0!==d?this._getRegularCard(e,o,c,d):l?da.Trial:i?da.BuyNow:da.StartPlan},this._getCardSecondaryAction=(e,t)=>{const{isTrialPlan:n,userProduct:a,trialAvailable:r,subscriptionDetails:o}=this._cardsData,i=null==o?void 0:o.billing_cycle,c=n&&e.upgrade_weight===(null==a?void 0:a.upgrade_weight);if(null!==a&&n){if(e.upgrade_weighta.upgrade_weight)return ma.UpgradeTrial}return!c&&r?ma.SkipTrial:t===da.Downgrade||t===da.Switch?ma.DowngradeDescription:t===da.Upgrade&&i!==l.BillingCycle.Monthly?ma.UpgradeDescription:t===da.DowngradeActivated?ma.DateStarted:t===da.ReactivateCurrent?ma.DateEnd:null===a||n||e.text_id!==a.text_id?void 0:ma.CurrentPlan},this._getCardOfferProduct=(e,t)=>{if(!t)return;const n=e.text_id,a=t.products[n];if(!a||!a.product.discount.billing_cycle)return;const r=this._cardsData.billingCycle===l.BillingCycle.TwoYears?l.BillingCycle.OneYear:this._cardsData.billingCycle,o=[String(Pn.ProPlans.Pro),String(Pn.ProPlans.ProRealtime),String(Pn.ProPlans.ProPremium)].includes(n),i=a.product.discount.billing_cycle===r;return o&&i?a:void 0},this._getAvailableOffer=e=>{const{text_id:t}=e,{one_usd:n}=this._cardsData.availableOffers;if(n)return n.products[t]},this._getRegularCard=(e,t,n,a)=>{var r,o;const{subscriptionDetails:i}=this._cardsData,c=null===(r=null==i?void 0:i.renewal)||void 0===r?void 0:r.product_id,l=null===(o=null==i?void 0:i.renewal)||void 0===o?void 0:o.billing_cycle,s=this._downgradeAvailable(),u=function(e,t){var n,a;if(!(null===(n=null==e?void 0:e.renewal)||void 0===n?void 0:n.is_active))return!1;const r=null===(a=null==e?void 0:e.renewal)||void 0===a?void 0:a.offer_kind;return t?t===r:void 0!==r&&["downgrade","last_chance","downgrade_black_friday"].includes(r)}(this._cardsData.subscriptionDetails);if(e.upgrade_weight===t.upgrade_weight){if(u){if(c===e.text_id&&l===n)return da.DowngradeActivated;if(s&&a===n)return da.ReactivateCurrent}return s&&nt.upgrade_weight?da.Upgrade:s&&e.upgrade_weight!this._cardsData.isDowngradeDisabled&&this._cardsData.canDowngrade,this._cardsData={pro:e.pro,appName:e.appName,userProduct:e.userProduct,trialLength:e.trialLength,isTrialPlan:e.isTrialPlan,canDowngrade:e.canDowngrade,billingCycle:e.billingCycle,bannedTrial:e.bannedTrial,trialAvailable:e.trialAvailable, +availableOffers:e.availableOffers,userAuthenticated:e.userAuthenticated,isDowngradeDisabled:e.isDowngradeDisabled,subscriptionDetails:e.subscriptionDetails}}}function er(e){return[da.CurrentEarlyAccess,da.CurrentSixMonthUpgrade,da.CurrentLastChance,da.Current,da.CurrentTrial].includes(e)}function tr(e){const{className:t,proPlans:n,underCards:r}=e,o=(0,a.useMemo)(()=>new Ja(e),[e]),i=n.map(o.createCardInfo),c=i.some(e=>e.isActive);return a.createElement("div",{className:B(t,Ua["cards-wrap"])},a.createElement("div",{className:Ua.cards},a.createElement("div",{className:B(Ua["cards-scroll-wrap"],c&&Ua["has-active"])},i.map((e,t)=>a.createElement(Fa,{card:e,gridKey:t,key:e.product.text_id})))),a.createElement(Qa,{type:r,source:e.source}))}var nr=n(17946),ar=n(14488),rr=n.n(ar);function or(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}const ir=(e,t)=>{const n=(0,a.useContext)(nr.CustomBehaviourContext),{className:r,isSelected:o,children:i,startIcon:c,showCaret:l,endIcon:s,forceDirection:u,iconOnly:d,color:m="gray",variant:p="primary",size:g="medium",enableActiveStateStyles:h=n.enableActiveStateStyles,enablePointerOnHover:f=n.enablePointerOnHover}=e;return B(r,rr()["light-button"],o&&rr().selected,or(i,d)&&rr()["no-content"],c&&rr()["with-start-icon"],(l||s)&&rr()["with-end-icon"],t&&rr()["with-grouped"],u&&rr()["force-direction-"+u],rr()["variant-"+p],rr()["color-"+m],rr()["size-"+g],rr()["typography-"+g],!f&&rr()["disable-cursor-pointer"],!h&&rr()["disable-active-state-styles"])};function cr(e){const{startIcon:t,endIcon:n,showCaret:r,iconOnly:o,ellipsis:i=!0,children:c}=e;return a.createElement(a.Fragment,null,t&&a.createElement(ce.Icon,{className:rr().icon,icon:t}),!or(c,o)&&a.createElement("span",{className:rr().content},i?a.createElement("span",{className:rr()["ellipsis-container"]},c):c),(n||r)&&(e=>a.createElement(ce.Icon,{className:B(rr().icon,e.showCaret&&rr().caret),icon:e.showCaret?le:e.endIcon}))(e))}var lr=n(86332);function sr(e){const{isGrouped:t}=a.useContext(lr.ControlGroupContext),{reference:n,className:r,isSelected:o,children:i,startIcon:c,iconOnly:l,ellipsis:s,showCaret:u,forceDirection:d,endIcon:m,color:p,variant:g,size:h,enableActiveStateStyles:f,enablePointerOnHover:y,...v}=e;return a.createElement("button",{...v,className:ir({className:r,isSelected:o,children:i,startIcon:c,iconOnly:l,showCaret:u,forceDirection:d,endIcon:m,color:p,variant:g,size:h,enableActiveStateStyles:f,enablePointerOnHover:y},t),ref:n},a.createElement(cr,{showCaret:u,startIcon:c,endIcon:m,iconOnly:l,ellipsis:s},i))}var ur=n(79370),dr=n.n(ur);function mr(e,t,n){return{isTop:e=t*(n-1),isLeft:e%t==0}}function pr(e){const{children:t,rows:n,cols:r,disablePositionAdjustment:o,className:i,...c}=e,l=a.Children.count(t),s=null!=r?r:l,u=null!=n?n:function(e,t){return Math.ceil(e/t)}(l,s),d=(0,a.useMemo)(()=>{const e=[];for(let t=0;ta.createElement(lr.ControlGroupContext.Provider,{value:d[t]},e)),p={"--ui-lib-control-group-cols":s.toString(10),"--ui-lib-control-group-rows":u.toString(10)};return a.createElement("span",{className:B(dr().group,i),style:p,...c},m)}var gr=n(88755),hr=n.n(gr);function fr(e){const{children:t,className:n,...r}=e;return a.createElement(pr,{className:M()(hr()["light-button-group"],n),...r},t)}var yr=n(99925);const vr=a.memo((function(e){return a.createElement("div",{className:yr.label},e.children)}));var Cr=n(59899),br=n(14333);const Er=a.memo((function(e){const{billingCycle:t,hide:n=!1,discount:r,labelType:o,onChange:i}=e,c=E.t("Monthly"),s=E.t("Annually");let u;u=0===o?r?E.t("Going annual will save you up to {discount}% {noWrapTag}this year {emoji}{noWrapTagClose}").format({discount:r}):E.t("Annually you have {discount}% off which is 2 months {noWrapTag}free {emoji}{noWrapTagClose}").format({discount:"16"}):E.t("Go for a year plan, get 6 months free. {noWrapTag}Good times {emoji}{noWrapTagClosed}");const d=u.split(/{emoji}|{noWrapTag}|{noWrapTagClose}/);if(n)return null;const m=t===l.BillingCycle.Monthly,p=t===l.BillingCycle.OneYear,g=a.useCallback(()=>{i&&i(l.BillingCycle.Monthly)},[]),h=a.useCallback(()=>{i&&i(l.BillingCycle.OneYear)},[]);return a.createElement("div",{className:br.container},a.createElement("div",{className:br.switcher,role:"radiogroup"},a.createElement(fr,{cols:2},a.createElement(sr,{"aria-label":c,"aria-checked":m,onClick:g,role:"radio",tabIndex:0,isSelected:m,variant:"quiet-primary"},c),a.createElement(sr,{"aria-label":s,"aria-checked":p,onClick:h,role:"radio",tabIndex:0,isSelected:p,variant:"quiet-primary"},s)),a.createElement(ce.Icon,{icon:Cr,className:br["arrow-curve"]})),a.createElement(vr,null,d[0],a.createElement("span",{className:br.nowrap}," ",d[1],a.createElement("span",{className:br.emoji}," ",0===o?"😍":"🎁"),d[3])))}));var wr=n(53746),xr=n(75246);function _r(e){const{title:t,secondary:n,className:r,secondaryClassName:o}=e;return a.createElement("div",{className:B(xr.titleContainer,r)},a.createElement("h1",{className:xr.title},t),n&&a.createElement("p",{className:B(xr.secondary,o)},n))}var Pr=n(22020);a.memo(e=>{const[t,n]=Sr(e);return a.createElement(_r,{className:Pr.title,secondaryClassName:Pr.secondary,title:t,secondary:n})});function Sr(e){const{availableOffers:t,userAuthenticated:n,userBillingCycle:a,userProduct:r,affiliateName:o,userHadPro:i,isTrialPlan:c}=e,u=E.t("Plans for every level of ambition"),d=E.t("Try any of our plans, free for {days} day",{plural:"Try any of our plans, free for {days} days",context:"free_trial",count:e.trialLength}).format({days:e.trialLength.toString()}),m=E.t("Early bird offer"),p=E.t("Limited offer for monthly subscribers"),g=E.t("Wait, don't go"),h=E.t("Get an upgrade for $1"),f=E.t("You've got the most powerful plan. Enjoy!"),y=E.t("Your bonus is waiting for you");return n?s.OFFERS.trial in t?[d]:function(e,t){return e&&s.OFFERS.early_access in t&&void 0!==t.early_access +}(c,t)?[m]:s.OFFERS.six_months in t?[p]:s.OFFERS.last_chance in t?[g]:s.OFFERS.one_usd in t?[h]:null!==r&&r.text_id===Pn.ProPlans.ProPremium&&void 0!==a&&[l.BillingCycle.OneYear,l.BillingCycle.TwoYears].includes(a)?[f]:o&&!i?[y]:[u]:[u]}var kr=n(24169);const Tr=a.memo((function(e){const[t,n]=Sr(e);return a.createElement("div",{className:kr.titleContainer},a.createElement("h2",{className:kr.title},t),n&&a.createElement("p",{className:kr.secondary},n))}));var Nr=n(78365);const Ar=a.memo((function(e){var t,n;const{onChangeBillingCycle:r}=e,{user:o,pro:i,state:c}=a.useContext(D),{bannedTrial:u,canDowngrade:d,subscriptionDetails:m,affiliateUsername:f}=c,y=a.useMemo(()=>{var e,t;return null!==(t=null===(e=null==i?void 0:i.getProductsByType(i.PRODUCT_TYPES.pro_plan))||void 0===e?void 0:e.filter(e=>!e.is_limited))&&void 0!==t?t:[]},[i]),v=i&&o?h(i,o,null==c?void 0:c.subscriptionDetails):l.BillingCycle.Monthly,[C,b]=a.useState(v);a.useEffect(()=>{i&&o&&b(h(i,o,null==c?void 0:c.subscriptionDetails))},[o,i,c]);const E=a.useCallback(e=>{b(e),r(e)},[r]);if(null===o||null===i||0===y.length)return a.createElement("div",{className:Nr.container});const{userBillingCycle:w,isTrialPlan:x,userProduct:_}=function(e,t){let n=!1,a=null;const r=null==t?void 0:t.billing_cycle,o=null==t?void 0:t.product_id;if(o){n=(0,p.isTrialProduct)(o);const t=n?(0,p.getProductForTrial)(o):o;a=e.getProduct(t)}return{userBillingCycle:r,isTrialPlan:n,userProduct:a}}(i,m),P=null!==(t=null==o?void 0:o.available_offers)&&void 0!==t?t:{},S=g(P),k=s.OFFERS.trial in P,T=window.is_authenticated,N=(0,V.isFeatureEnabled)("pro_plan_downgrades_disabled"),A=null!==(n=null==o?void 0:o.app_name)&&void 0!==n?n:"",I=(0,xe.getTrialLength)();return a.createElement("div",{className:Nr["vertical-alignment-height"]},a.createElement("div",{className:Nr.container},a.createElement("div",{className:Nr["block-wrap"]},a.createElement(Tr,{affiliateName:f,userAuthenticated:T,availableOffers:P,userBillingCycle:w,userHadPro:Boolean(null==o?void 0:o.had_pro),userProduct:_,isTrialPlan:x,trialLength:I}),a.createElement(wr.GoproOfferCountdown,{userAuthenticated:T,availableOffers:P}),a.createElement(Er,{billingCycle:C,onChange:E,hide:S||(null==o?void 0:o.is_trial)||void 0!==w&&w!==l.BillingCycle.Monthly,labelType:P[s.OFFERS.six_months]?1:0}),a.createElement(tr,{className:Nr.cards,availableOffers:P,trialAvailable:k,proPlans:y,userAuthenticated:T,bannedTrial:u,billingCycle:C,isTrialPlan:x,userProduct:_,isDowngradeDisabled:N,appName:A,canDowngrade:d,subscriptionDetails:m,trialLength:I,underCards:$a.CompareFeatures,pro:i,source:"gopro_order_dialog"}))))}));var Dr=n(31946),Ir=n(74745),Rr=n(41285);const Or=new Set(["exchange-iceusa"]);function Br(e){const{onChecked:t,products:n,hasExchanges:r,billingCycle:o,paymentTab:i,showError:c}=e,[l,s]=(0,a.useState)(!1),[u,d]=(0,a.useState)(r),[m,p]=(0,a.useState)({nonPro:!1,terms:!1,ice:!1});(0,a.useEffect)(()=>{const e=n.some(e=>Or.has(e));s(e),d(r)},[n,r]),(0,a.useEffect)(()=>{const e=[m.terms];l&&e.push(m.ice),u&&e.push(m.nonPro);const n=e.every(e=>e);t(n) +},[m,l,u,i]);const g=(0,a.useCallback)(e=>{p({...m,[e]:!m[e]})},[m]),h=E.t("Non-professional trader means any natural person who receives market data solely for his/her personal, non-business use and cannot be a corporation, trust, organization, institution or partnership account.");return a.createElement("div",{className:Rr.termsCheckboxesContainer},l&&a.createElement(Ir.TermsCheckbox,{checked:m.ice,onChange:()=>g("ice"),labelText:E.t("I have read and agree with the {iceLink}ICE Subscriber Agreement{closeLink}.").format({iceLink:'',closeLink:""}),checkboxId:"ice",showError:c}),u&&a.createElement(Ir.TermsCheckbox,{checked:m.nonPro,onChange:()=>g("nonPro"),labelText:E.t("I'm a non-professional trader"),checkboxId:"non-pro",showError:c},a.createElement("span",{className:M()("apply-common-tooltip",Rr.nonProLable),title:h,"aria-label":h},E.t("I'm a non-professional trader"),a.createElement(ce.Icon,{icon:Tn,className:Rr.infoIcon}))),a.createElement(Ir.TermsCheckbox,{checked:m.terms,onChange:()=>g("terms"),labelText:Mr(i,o,n),checkboxId:"terms-of-use",showError:c}))}function Mr(e,t,n){return e===te.PaymentTab.Ecommpay&&n.length>1?`${Yr()} ${Lr()}`:e===te.PaymentTab.Coinbase?E.t("{policyText} I confirm that refunds will only be made in line with the situations they describe.").format({policyText:Yr()}):function(e){return`${{[l.BillingCycle.OneYear]:E.t("I authorize TradingView to charge me automatically every year, until I cancel my subscription."),[l.BillingCycle.Monthly]:E.t("I authorize TradingView to charge me automatically every month, until I cancel my subscription."),[l.BillingCycle.ThreeMonths]:E.t("I authorize TradingView to charge me automatically every three months, until I cancel my subscription."),[l.BillingCycle.TwoYears]:E.t("I authorize TradingView to charge me automatically every two years, until I cancel my subscription.")}[e]} ${E.t("{acknowledgeText} The subscription can be canceled at any time from the Account and Billing section in the Profile settings. {policyText}").format({termsLink:'',privacyLink:'',closeLink:"",policyText:Yr(),acknowledgeText:Lr()})}`}(t)}function Lr(){return E.t("I acknowledge that refunds are made according to the Terms of Use.")}function Yr(){return E.t("I have read, and agree to, TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}.").format({termsLink:'',privacyLink:'',closeLink:""})}var Ur=n(76221);function Fr(e){const{products:t,defaultTab:n,currentTab:r,buttonContainerRef:o,billingCycle:i,hasExchanges:c,ipCountryCode:s,onSuccessPurchase:u,onTabChange:d,onError:m,onClose:p,onBillingAddressChange:g,currency:h,price:f,blockedCountries:y}=e,[v,C]=(0,a.useState)(!1),[b,w]=(0,a.useState)(!1),[x,_]=(0, +a.useState)([]);(0,a.useEffect)(()=>{var e,t;const n=[];try{(0,V.isFeatureEnabled)("braintree-apple-pay")&&(null===(e=window.ApplePaySession)||void 0===e?void 0:e.supportsVersion(3))&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||n.push(te.PaymentTab.ApplePay)}catch(e){n.push(te.PaymentTab.ApplePay)}(0,V.isFeatureEnabled)("braintree-google-pay")||n.push(te.PaymentTab.GooglePay),(0,V.isFeatureEnabled)("ecommpay_ru")&&(0,mt.showEcommpay)(s)&&i===l.BillingCycle.Monthly&&n.push(te.PaymentTab.Coinbase),(0,mt.canShowPaypalPaymentMethod)(s)||n.push(te.PaymentTab.Paypal),_(n)},[i,s]);const P=(0,a.useCallback)(e=>{d(e),w(!1)},[d]);return a.createElement("div",null,a.createElement(Bt,{text:E.t("Payment method")}),a.createElement(Dr.PaymentMethod,{onPurchase:ne.onOrderPurchase,defaultTab:n,products:t,billingCycle:i,onTabChange:P,onSuccess:u,onError:m,buttonContainer:o,checked:v,switcherContainerClassName:Ur.swithcherContainer,excludedTabs:x,onCheckboxValidityChange:w,onClose:p,onBillingAddressChange:g,price:f,hideTotalPrice:!0,defaultCountry:s,currency:h,blockedCountries:y},a.createElement(Br,{onChecked:C,products:t,hasExchanges:c,billingCycle:i,paymentTab:r,showError:b})))}var zr=n(71323);function Hr(e){const{modifier:t,onChangeOrderTerms:n,billingCycle:r,planName:o}=e;let i=E.t("Downgrade trial to {plan_name}"),c=E.t("You can downgrade your trial and pick the one that meets your needs. This way you’ll know exactly what you are paying for if wish to continue using this plan after the free trial period."),l=E.t("If you switch to a different plan, the amount charged at the end of the trial (if you don’t cancel) will change according to the new plan.");return t===Na.Upgrade&&(i=E.t("Upgrade trial to {plan_name}"),c=E.t("You can continue your trial with a different plan for free to check out more features."),l=E.t("If you switch to a better plan, the amount charged at the end of the trial (if you don’t cancel) will change according to the new plan.")),a.createElement("div",null,a.createElement(Bt,{text:i.format({plan_name:o})}),a.createElement("p",{className:zr.trialSubtitle},c),a.createElement("p",{className:zr.trialSubtitle},l),a.createElement("div",{className:zr.changeTrialTerms},a.createElement(Br,{billingCycle:r,onChecked:n,products:[],hasExchanges:!1})))}var Vr=n(12107);const jr=(0,b.getLogger)("Payment.TrialPaymentMethod"),Gr=[te.PaymentTab.OneClick,te.PaymentTab.Coinbase],Wr=te.PaymentTab.CreditCard;const qr=a.memo((function(e){var t,n,r,o;const{proPlanProductId:i,onSuccessPurchase:c,buttonContainerRef:l,onBillingAddressChange:s,billingCycle:u,modifier:d,onChangeOrderTerm:m,orderTermsChecked:g,ipCountryCode:h,onTabChange:f,currency:y,blockedCountries:v}=e,[C,b]=(0,a.useState)(!1),w=(0,xe.getTrialLength)();(0,a.useEffect)(()=>{(0,Vr.trackTrialAction)(i,u,"show","braintree"),(0,ie.trackPaymentOrderDialogInitial)(st.Steps.Trial,[i],u)},[]);try{(0, +V.isFeatureEnabled)("braintree-apple-pay-trial")&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))&&(null===(n=window.ApplePaySession)||void 0===n?void 0:n.canMakePayments())||Gr.push(te.PaymentTab.ApplePay)}catch(e){Gr.push(te.PaymentTab.ApplePay)}(0,V.isFeatureEnabled)("braintree-google-pay-trial")||Gr.push(te.PaymentTab.GooglePay),(0,mt.canShowPaypalPaymentMethod)(h)||Gr.push(te.PaymentTab.Paypal);const{pro:x}=a.useContext(D),_=null==x?void 0:x.getProduct(i),P=null!==(r=null==_?void 0:_.text_id)&&void 0!==r?r:i,S=(0,a.useCallback)(e=>jr.logError(e.message),[]);if(void 0!==d)return a.createElement(Hr,{onChangeOrderTerms:m,billingCycle:u,modifier:d,planName:null!==(o=null==_?void 0:_.name)&&void 0!==o?o:""});const k=(0,a.useMemo)(()=>({totalCostWithTax:0}),[]);return a.createElement("div",null,a.createElement(Bt,{text:(T=P,N=w,E.t("Start free {daysCount}-day {proPlan}",{plural:"Start free {daysCount}-day {proPlan}",context:"free_trial",count:N}).format({proPlan:(0,p.humanizeProPlan)(T,!0),daysCount:N.toString()}))}),a.createElement("p",{className:zr.trialSubtitle},function(e){return{[Pn.ProPlans.Pro]:E.t("Distraction-free trading and investing, with more charts, intervals and indicators"),[Pn.ProPlans.ProRealtime]:E.t("Intraday technical analysis for day traders looking to take things to the next level"),[Pn.ProPlans.ProPremium]:E.t("Highest precision and maximum data to capture all possible opportunities")}[e]||""}(P)),a.createElement(Dr.PaymentMethod,{onPurchase:ne.onStartTrial,defaultTab:Wr,products:[i],billingCycle:u,onSuccess:c,onError:S,buttonContainer:l,checked:g,onTabChange:f,switcherContainerClassName:zr.swithcherContainer,excludedTabs:Gr,purchaseButtonText:E.t("Start {days}-day free trial",{plural:"Start {days}-day free trial",context:"free_trial",count:w}).format({days:w.toString()}),hideTryAgainButtonCodes:["trial_not_available"],onCheckboxValidityChange:e=>b(e),onBillingAddressChange:s,price:k,hideTotalPrice:!0,defaultCountry:h,blockedCountries:v,currency:y,isTrial:!0},a.createElement(Br,{onChecked:m,products:[],hasExchanges:!1,billingCycle:u,showError:C})));var T,N}));var $r=n(10287);function Kr(e){const{billingCycle:t,product:n,pro:r,discount:o,disabled:i}=e,c=Za(r,n,t),l=(null==o?void 0:o.billing_cycle)===t&&(null==o?void 0:o.offer_type)!==s.OfferKind.one_usd,u=B($r["billing-cycle-item"],{[$r["has-highlight"]]:null!==o&&o.offer_type!==s.OfferKind.one_usd,[$r.disabled]:i});return a.createElement("label",{className:u},a.createElement(Mt.RadioButton,{value:t,disabled:i}),a.createElement("p",{className:$r["billing-cycle"]},(0,p.getReadableCycle)(t)),a.createElement(Qr,{isHighlight:l,billingCycle:t,priceProps:c,discount:o}),a.createElement("div",{className:$r.price},"$",(0,p.round2)(c.price)," ",E.t("/mo")),c.fullPrice>c.price&&a.createElement("div",{className:$r["full-price"]},"$",(0,p.round2)(c.fullPrice)," ",function(e){var t;return null!==(t={y:E.t("/year"),m:E.t("/mo"),"2y":E.t("/2years")}[e])&&void 0!==t?t:""}(t)))}function Qr(e){ +const{billingCycle:t,priceProps:n,discount:r}=e,o=(0,p.billingPeriodText)(t),i=B($r.description,{[$r.highlight]:e.isHighlight});if(t===l.BillingCycle.Monthly&&(null==r?void 0:r.offer_type)===s.OfferKind.one_usd)return a.createElement("p",{className:i},E.t("Special offer. First month of upgraded features for one dollar."));if(t===l.BillingCycle.OneYear&&(null==r?void 0:r.offer_type)===s.OfferKind.one_usd)return a.createElement("p",{className:i},o);if(t===l.BillingCycle.Monthly)return a.createElement("p",{className:i},E.t("Most flexible option.")," ",o);if((null==r?void 0:r.offer_type)===s.OfferKind.six_months&&t===(null==r?void 0:r.billing_cycle))return a.createElement("div",{className:i},a.createElement("p",null,E.t("Special offer — pay for half a year, get the other half at no cost.")),a.createElement("p",null,E.t("We only give this discount for your first year.")));const c=Math.round(n.canceledFullPrice-n.fullPrice);return(null==r?void 0:r.offer_type)===s.OfferKind.early_access&&t===(null==r?void 0:r.billing_cycle)?a.createElement("div",{className:i},a.createElement("p",null,E.t("Save ${amount} ({profit}%) when compared to the monthly plan.").format({amount:c.toString(),profit:n.profit.toString()})," ",o),a.createElement("p",null,E.t("We only offer this discount for your first year."))):((null==r?void 0:r.offer_type)===s.OfferKind.last_chance&&(null==r||r.billing_cycle),a.createElement("p",{className:i},E.t("Save ${amount} ({profit}%) when compared to the monthly plan.").format({amount:c.toString(),profit:n.profit.toString()})))}var Xr=n(14724);const Zr=[l.BillingCycle.OneYear,l.BillingCycle.Monthly],Jr=a.memo(e=>{const{proPlanProductId:t,onChange:n,pro:r,fixedCycle:o,initialBillingCycle:i}=e,c=r.getProduct(t),l=r.isDiscountProductId(t)?r.getDiscountProduct(t):null,s=void 0===i||Zr.includes(i)?Zr:[i,...Zr];return a.useEffect(()=>{(0,ie.trackPaymentOrderDialogInitial)(st.Steps.BillingCycle,[t],e.billingCycle)},[]),a.createElement("div",null,a.createElement(Bt,{text:E.t("{plan_name} plan").format({plan_name:c.name})}),a.createElement("div",{className:Xr["billing-cycles"]},a.createElement(It.SwitchGroup,{name:"billing_cycle",onChange:e=>n(e),values:e.billingCycle?[e.billingCycle]:[]},s.map(t=>a.createElement(Kr,{product:c,pro:r,billingCycle:t,discount:l,key:"billingCycle_"+String(t),disabled:o&&e.billingCycle!==t})))))});var eo=n(39908);function to(e){const t=window.TradingView.onChartPage?E.t("Back to the chart"):E.t("Start charting");return a.createElement(ft.RoundButton,{className:eo.button,onClick:function(){window.TradingView.onChartPage||window.open("/chart/","_blank");e.onClose()}},t)}var no=n(65151),ao=n(21810);function ro(e){return a.createElement(ft.RoundButton,{className:ao.button,onClick:e.onClick},(0,E.t)("Next"))}function oo(e){const{cartData:t,receiptInfo:n,modifier:r,onClose:o,onExchangeAgreement:i,cartPrices:c}=e,{isTrial:l}=t,{pro:s,state:u}=a.useContext(D);return a.createElement("div",{className:ao["vertical-alignment-height"]},a.createElement("div",{className:ao.container +},!l&&s&&n&&a.createElement(io,{pro:s,cartData:t,receiptInfo:n,modifier:r,needExchangeAgreement:null==n?void 0:n.needExchangeAgreement,onExchangeAgreement:i,onClose:o}),l&&s&&a.createElement(co,{pro:s,cartData:t,modifier:r,subsciptionDetails:null==u?void 0:u.subscriptionDetails,needExchangeAgreement:null==n?void 0:n.needExchangeAgreement,onExchangeAgreement:i,onClose:o,cartPrices:c})))}function io(e){const{pro:t,cartData:n,receiptInfo:r,modifier:o}=e,{currency:i="",total:c}=r,{proPlanProductId:l}=n,s=(0,E.t)("Payment #{receiptId}").format({receiptId:r.transactionId}),u=a.useMemo(()=>(0,ie.getPricesForCart)({pro:t,cartData:n,listLocalPricesProducts:r.resultPricesProducts}),[t,n,r.resultPricesProducts]),d=l?(0,p.round2)(r.resultPricesProducts[l].price.total):"0",m=`${(0,ie.getCurrencySign)(i)}${(0,p.round2)(c)} ${i}`,g=function(e){const t=e.getDate().toString(),n=t.length<2?"0"+t:t,a=(e.getMonth()+1).toString(),r=a.length<2?"0"+a:a;return n+"."+r+"."+e.getFullYear()+", "+e.toLocaleTimeString([],{hour:"numeric",minute:"numeric"})}(new Date(r.date)),h=(0,ie.getListExchanges)(t,n);return a.createElement(a.Fragment,null,a.createElement("div",{className:ao.wrapper},a.createElement(ce.Icon,{icon:no,className:ao.icon}),a.createElement(Bt,{text:(0,E.t)("Thanks for purchasing"),className:ao.title}),a.createElement(lo,{needExchangeAgreement:e.needExchangeAgreement,onExchangeAgreement:e.onExchangeAgreement,onClose:e.onClose})),a.createElement("div",{className:ao.cheque},a.createElement("div",null,a.createElement("div",{className:B(ao.flex,ao.paymentInfo)},a.createElement("p",null,s),a.createElement("p",null,g)),a.createElement("div",{className:B(ao.flex,ao.description)},a.createElement("p",null,(0,E.t)("Description")),a.createElement("p",null,(0,E.t)("Subtotal"))),l&&a.createElement("div",{className:B(ao.grid,ao.proPlanPaddingRow)},a.createElement(Be,{pro:t,cartData:n,cost:d,classNameProductCost:ao.productText,modifier:o,currency:i})),h.length>0&&a.createElement("div",{className:B(ao.grid,ao.border,ao.exchangesListWrapper)},a.createElement(Qe,{pro:t,cartData:n,cartPrices:r.resultPricesProducts,classNameExchangeItem:ao.paddingRow,classNameExchangeItemText:ao.productText,exchanges:h})),0!==u.tax&&a.createElement("div",{className:B(ao.grid,ao.border,ao.tax)},a.createElement(Ze,{tax:(0,p.round2)(u.tax),currency:u.currency,subtotal:(0,p.round2)(u.subtotal),costClassName:ao.productText}))),a.createElement("div",{className:B(ao.flex,ao.wrapperTotalCost,ao.border)},a.createElement("p",{className:ao.total},(0,E.t)("Total:")),a.createElement("p",{className:ao.totalCost},m))))}function co(e){const{pro:t,cartData:n,modifier:r,subsciptionDetails:o,cartPrices:i}=e,{totalCostWithTax:c,currency:l}=i,s=(0,xe.getTrialLength)(),u=Me(t,n,void 0===r?s:void 0),d=(0,E.t)("We'll charge your card {price} on {date}. If you cancel auto-renewal before this time, you'll not be charged at all."),m=`${(0,ie.getCurrencySign)(l)}${(0,p.round2)(c)} ${l}`,g=void 0===r?(0,E.t)("Woohoo! Let the fun begin"):(0,E.t)("Congrats! Your new trial is setup"),h=(0, +E.t)("Your {daysCount}-day free trial is live and kicking, and you've now got free access to loads of additional features. Don't forget: we may also have a special offer or two for you during this trial – keep your eyes peeled.").format({daysCount:s.toString()}),f={description:{[Na.Downgrade]:(0,E.t)("Your trial was successfully downgraded. You can always upgrade again to a more powerful plan before it runs out."),[Na.Upgrade]:(0,E.t)("Now you have even more tools and features to make your trading successful.")}},y=(0,E.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,p.round2)(i.tax),currency:i.currency,currencySign:(0,ie.getCurrencySign)(i.currency)});return a.createElement(a.Fragment,null,a.createElement("div",{className:ao.wrapper},a.createElement(ce.Icon,{icon:no,className:ao.icon}),a.createElement(Bt,{text:g,className:ao.title}),a.createElement(Ot,{className:ao.descriptionBlock},void 0===r&&h,void 0!==r&&f.description[r]),void 0!==r&&a.createElement(Ot,{className:ao.descriptionBlock},(0,E.t)("The amount charged at the end of the trial (if you don’t cancel) also reflects the new plan.")),a.createElement(lo,{needExchangeAgreement:e.needExchangeAgreement,onExchangeAgreement:e.onExchangeAgreement,onClose:e.onClose})),a.createElement("div",{className:ao.cheque},a.createElement("div",{className:B(ao.flex,ao.productText,ao.trialFirstPaddingRow)},a.createElement("p",{className:ao["product-trial"]},u),a.createElement("p",{className:ao["cost-trial"]},(0,E.t)("$0.00 USD"))),a.createElement("div",{className:ao.trialPaddingRow},a.createElement("div",{className:B(ao.flex,ao.productText)},a.createElement("p",{className:ao["product-trial"]},et(o)),a.createElement("p",{className:ao["cost-trial"]},m)),0!==i.tax&&a.createElement("div",{className:ao["trial-tax"]},y)),a.createElement("div",{className:B(ao.flex,ao.wrapperTotalCost,ao.border)},a.createElement("p",{className:ao.total},(0,E.t)("Total:")),a.createElement("p",{className:ao.totalCost},(0,E.t)("$0.00 USD")))),a.createElement(tt,{className:ao.highlightBlock},a.createElement("p",null,d.format({price:m,date:Te(o)}))))}function lo(e){return e.needExchangeAgreement?a.createElement(ro,{onClick:e.onExchangeAgreement}):a.createElement(to,{onClose:e.onClose})}var so=n(85198),uo=n(18609);function mo(e=!1){const t=Boolean(e);return{isValid:t,errors:t?[]:[E.t("You need to accept this")]}}function po(){return E.t("This agreement is for NON-PROFESSIONALS only. If you qualify as a Professional under exchange regulations you may not use this service")}function go(e){let t=!0;const n=[];return void 0!==e&&0!==e.length||(t=!1,n.push(E.t("This field is required"))),void 0===e||(0,uo.isLatin)(e)||(t=!1,n.push(E.t("Only English language is allowed"))),{isValid:t,errors:n}}var ho=n(44943),fo=n(10959),yo=n(86629),vo=n(1365);function Co(e){const{name:t,validationResults:n,legend:r,reference:o}=e;let i=[];void 0!==e.value&&(i=e.value?["yes"]:["no"]);const c=(0,yo.useControlValidationLayout)({hasErrors:!n.isValid,errors:n.errors,messagesPosition:yo.MessagesPosition.Attached +}),l=c.containerReference.current;return o&&l&&o(l),a.createElement("fieldset",{className:vo["agreement-switch"]},a.createElement("legend",{className:vo.legend},r),a.createElement("div",{className:vo["error-wrapper"],onFocus:c.onFocus,onBlur:c.onBlur,onMouseOver:c.onMouseOver,onMouseOut:c.onMouseOut,ref:c.containerReference},a.createElement("div",{className:vo["switch-group"]},a.createElement(It.SwitchGroup,{name:t,onChange:function(t){e.onChange("yes"===t)},values:i},a.createElement(Mt.RadioButton,{value:"yes",label:E.t("Yes")}),a.createElement(Mt.RadioButton,{value:"no",label:E.t("No")}))),!n.isValid&&a.createElement("div",{className:vo["error-icon"]},a.createElement(fo.ErrorIcon,{intent:"danger"})),c.renderedErrors))}var bo=n(12032);function Eo(e){const{validationResults:t,value:n,wrapperClassName:r,reference:o,...i}=e,c=(0,yo.useControlValidationLayout)({hasErrors:!t.isValid,errors:t.errors,messagesPosition:yo.MessagesPosition.Attached});return o&&c.containerReference.current&&o(c.containerReference.current),a.createElement("div",{className:B(bo["error-wrapper"],r),onFocus:c.onFocus,onBlur:c.onBlur,onMouseOver:c.onMouseOver,onMouseOut:c.onMouseOut,ref:c.containerReference},a.createElement(jt.Checkbox,{className:bo.checkbox,...i,checked:n}),!t.isValid&&a.createElement("div",{className:bo["error-icon"]},a.createElement(fo.ErrorIcon,{intent:"danger"})),c.renderedErrors)}var wo=n(86623);function xo(e){const{validationBinding:t,...n}=e;return a.createElement(wo.FormInput,{...n,value:t.value,hasErrors:!t.validationResults.isValid,errors:t.validationResults.errors})}var _o,Po=n(51556);!function(e){e.Occupation="occupation",e.NameAndAddressEmployer="name_and_address_employer",e.Position="position",e.EmploymentFunctions="employment_functions"}(_o||(_o={}));const So=[_o.Occupation,_o.NameAndAddressEmployer,_o.Position,_o.EmploymentFunctions],ko={[_o.Occupation]:function(e=""){const t=["bookkeeper_or_auditor_or_tax_consultant","civil_service","computer_specialist","construction_professional","CPA","engineer","individual_investor","farmer","legal_professional","management","marketing_professional","medical_professional","public_relations","real_estate","retired_or_homemaker","sales_or_service_representative_or_clerical","store_manager_or_owner","student_or_educator_or_child_care_provider","transportation","tv_or_radio_announcer","veterinarian"].includes(e);return{isValid:t,errors:t?[]:[po()]}},[_o.NameAndAddressEmployer]:go,[_o.Position]:go,[_o.EmploymentFunctions]:go},To={type:"text",maxLength:265,messagesPosition:yo.MessagesPosition.Attached,size:"large"};function No(e){const{bindings:t,setValidationResults:n,handleReference:r}=e,o=E.t("Name(s) and address(es) of Subscriber's employer(s)"),i=E.t("Subscriber's title(s) and/or position(s)"),c=E.t("Subscriber's employment functions (description)");return a.createElement("div",{className:Po.occupation},a.createElement(pt.FormSelect,{items:[{content:a.createElement("span",{className:Po["nothing-selected"]},E.t("Subscriber's occupations")),readonly:!0},{ +id:"banker_or_insurance_representative",value:"banker_or_insurance_representative",content:E.t("Banker/Insurance Representative")},{id:"bookkeeper_or_auditor_or_tax_consultant",value:"bookkeeper_or_auditor_or_tax_consultant",content:E.t("Bookkeeper/Auditor/Tax Consultant")},{id:"broker_or_dealer",value:"broker_or_dealer",content:E.t("Broker/Dealer")},{id:"civil_service",value:"civil_service",content:E.t("Civil Service")},{id:"commodity_trading_advisor",value:"commodity_trading_advisor",content:E.t("Commodity Trading Advisor")},{id:"commodities_introducing_broker",value:"commodities_introducing_broker",content:E.t("Commodities Introducing Broker")},{id:"computer_specialist",value:"computer_specialist",content:E.t("Computer Specialist")},{id:"construction_professional",value:"construction_professional",content:E.t("Construction Professional")},{id:"CPA",value:"CPA",content:E.t("CPA")},{id:"engineer",value:"engineer",content:E.t("Engineer")},{id:"individual_investor",value:"individual_investor",content:E.t("Individual Investor")},{id:"farmer",value:"farmer",content:E.t("Farmer")},{id:"financial_analyst",value:"financial_analyst",content:E.t("Financial Analyst")},{id:"futures_commission_merchant",value:"futures_commission_merchant",content:E.t("Futures Commission Merchant")},{id:"investment_advisor_or_banker",value:"investment_advisor_or_banker",content:E.t("Investment Advisor/Banker")},{id:"legal_professional",value:"legal_professional",content:E.t("Legal Professional")},{id:"management",value:"management",content:E.t("Management")},{id:"marketing_professional",value:"marketing_professional",content:E.t("Marketing Professional")},{id:"medical_professional",value:"medical_professional",content:E.t("Medical Professional")},{id:"money_manager",value:"money_manager",content:E.t("Money Manager")},{id:"public_relations",value:"public_relations",content:E.t("Public Relations")},{id:"real_estate",value:"real_estate",content:E.t("Real Estate")},{id:"retired_or_homemaker",value:"retired_or_homemaker",content:E.t("Retired/Homemaker")},{id:"sales_or_service_representative_or_clerical",value:"sales_or_service_representative_or_clerical",content:E.t("Sales/Service Representative/Clerical")},{id:"securities_exchange_or_association_futures_contract",value:"securities_exchange_or_association_futures_contract",content:E.t("Securities Exchange/Association, Futures Contract")},{id:"registered_representative",value:"registered_representative",content:E.t("Registered Representative")},{id:"store_manager_or_owner",value:"store_manager_or_owner",content:E.t("Store Manager/Owner")},{id:"student_or_educator_or_child_care_provider",value:"student_or_educator_or_child_care_provider",content:E.t("Student/Educator/Child Care Provider")},{id:"transportation",value:"transportation",content:E.t("Transportation")},{id:"tv_or_radio_announcer",value:"tv_or_radio_announcer",content:E.t("TV/Radio Announcer")},{id:"veterinarian",value:"veterinarian",content:E.t("Veterinarian")}],value:t[_o.Occupation].value,onChange:e=>l(_o.Occupation,e),size:"large", +hasErrors:!t[_o.Occupation].validationResults.isValid,errors:t[_o.Occupation].validationResults.errors,messagesPosition:yo.MessagesPosition.Attached,menuClassName:Po["occupation-menu"],ref:e=>r(_o.Occupation,e)}),a.createElement(xo,{name:String(_o.NameAndAddressEmployer),placeholder:o,"aria-label":o,onChange:e=>l(_o.NameAndAddressEmployer,e.target.value),validationBinding:t[_o.NameAndAddressEmployer],reference:e=>r(_o.NameAndAddressEmployer,e),...To}),a.createElement(xo,{name:String(_o.Position),placeholder:i,"aria-label":i,onChange:e=>l(_o.Position,e.target.value),validationBinding:t[_o.Position],reference:e=>r(_o.Position,e),...To}),a.createElement(xo,{name:String(_o.EmploymentFunctions),placeholder:c,"aria-label":c,onChange:e=>l(_o.EmploymentFunctions,e.target.value),validationBinding:t[_o.EmploymentFunctions],reference:e=>r(_o.EmploymentFunctions,e),...To}));function l(e,a){n({[e]:ko[e](a)}),t[e].onChange(a)}}var Ao=n(11298),Do=n(54325);var Io,Ro=n(18244),Oo=n(55315);!function(e){e.SubscriberName="subscriber_name",e.CountryCode="country_code",e.State="state",e.City="city",e.Street="street",e.Zip="zip"}(Io||(Io={}));const Bo=[Io.SubscriberName,Io.Street,Io.City,Io.State,Io.CountryCode,Io.Zip],Mo={[Io.SubscriberName]:go,[Io.CountryCode]:ho.dumbValidator,[Io.State]:go,[Io.City]:go,[Io.Street]:go,[Io.Zip]:go},Lo={type:"text",maxLength:265,messagesPosition:yo.MessagesPosition.Attached,size:"large"};function Yo(e){var t;const{bindings:n,setValidationResults:r,handleReference:o,showStateSelect:i}=e,c=a.useMemo(()=>Object.entries(e.countries).map(e=>function(e){const[t,n]=e;return{code:(0,Do.toCountryCode)(t),iconUrl:(0,Ut.flagUrl)(t.toLowerCase()),name:n}}(e)),[e.countries]),l=null!==(t=n[Io.CountryCode].value)&&void 0!==t?t:"US",s=e.countries[l],u=(0,Ut.flagUrl)(l.toLowerCase()),d=E.t("Subscriber's name"),m=E.t("State/Region"),p=E.t("City"),g=E.t("Street"),h=E.t("Zip/Postal code");return a.createElement("div",{className:Oo["subscribers-inputs"]},a.createElement(xo,{placeholder:d,name:"subscriber_name","aria-label":d,validationBinding:n[Io.SubscriberName],onChange:e=>f(Io.SubscriberName,e.target.value),reference:e=>o(Io.SubscriberName,e),...Lo}),a.createElement("div",{className:Oo["country-select-container"]},a.createElement(Ao.CountrySelect,{countries:c,flagUrl:u,onSelected:e=>f(Io.CountryCode,e.code),stretch:!0,text:s,dropdownAttachment:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"top"}}})),i?a.createElement(pt.FormSelect,{placeholder:a.createElement("span",{className:Oo.selectPlaceholder},m),items:Ro.stateItems[l]||[],value:n[Io.State].value,onChange:e=>f(Io.State,e),size:"large",hasErrors:!n[Io.State].validationResults.isValid,errors:n[Io.State].validationResults.errors,messagesPosition:yo.MessagesPosition.Attached,ref:e=>o(Io.State,e)}):a.createElement(xo,{placeholder:m,name:"state","aria-label":m,validationBinding:n[Io.State],onChange:e=>f(Io.State,e.target.value),reference:e=>o(Io.State,e),...Lo}),a.createElement(xo,{placeholder:p,name:"city","aria-label":p, +validationBinding:n[Io.City],onChange:e=>f(Io.City,e.target.value),reference:e=>o(Io.City,e),...Lo}),a.createElement(xo,{placeholder:g,name:"street","aria-label":g,validationBinding:n[Io.Street],onChange:e=>f(Io.Street,e.target.value),reference:e=>o(Io.Street,e),...Lo}),a.createElement(xo,{placeholder:h,name:"zip","aria-label":h,validationBinding:n[Io.Zip],onChange:e=>f(Io.Zip,e.target.value),reference:e=>o(Io.Zip,e),...Lo}));function f(e,t){r({[e]:Mo[e](t)}),n[e].onChange(t)}}var Uo=n(97737),Fo=n(10777);var zo,Ho=n(66302),Vo=n(71131),jo=n(74660);!function(e){e.ReadAndAcceptTerms="read_and_accept_terms",e.ConfirmSection1="confirm_section_1",e.BusinessUse="business_use",e.ReceiveBenefits="receive_benefits",e.Certification="certification",e.ConfirmSection2="confirm_section_2"}(zo||(zo={}));const Go=[zo.ReadAndAcceptTerms,...Bo,...So,zo.ConfirmSection1,zo.BusinessUse,zo.ReceiveBenefits,zo.Certification,zo.ConfirmSection2],Wo={[zo.ReadAndAcceptTerms]:mo,...Mo,...ko,[zo.ConfirmSection1]:mo,[zo.Certification]:mo,[zo.ConfirmSection2]:mo,[zo.BusinessUse]:function(e){const t=void 0!==e&&e;return{isValid:t,errors:t?[]:[po()]}},[zo.ReceiveBenefits]:function(e){const t=void 0!==e&&!e;return{isValid:t,errors:t?[]:[po()]}}};function qo(e){const{exchange_agreements:t,user_billing_info:n,countries:r,user_name:o,onSuccess:i}=e,c=[],l=[];Object.values(t).forEach(e=>{const t=e.exchange_name;l.includes(t)||(l.push(t),c.push(e))});const s=c.every(e=>e.free_exchange);s&&So.forEach(e=>{Wo[e]=ho.dumbValidator});const u=(0,Vo.useScrollIntoViewHelper)(),[d,m]=(0,a.useState)(Ho.COUNTRY_WITH_STATE_SELECT.includes(""===n.billing_countrycode?"US":n.billing_countrycode)),[p,g]=(0,a.useState)(r),[h,f,y]=(0,ho.useFormValidation)(Go,Wo,{[zo.ReadAndAcceptTerms]:!1,[Io.SubscriberName]:o,[Io.CountryCode]:""===n.billing_countrycode?"US":n.billing_countrycode,[Io.State]:n.billing_state,[Io.City]:n.billing_city,[Io.Street]:n.billing_street,[Io.Zip]:n.billing_zip,[_o.NameAndAddressEmployer]:"",[_o.Position]:"",[_o.EmploymentFunctions]:"",[zo.ConfirmSection1]:!1,[zo.Certification]:!1,[zo.ConfirmSection2]:!1}),v=(0,a.useRef)(new Map),C=(0,a.useRef)(!0);(0,a.useEffect)(()=>{e.container&&u.current&&u.current.setContainer(e.container)},[e.container]),(0,a.useEffect)(()=>{if(!(0,V.isFeatureEnabled)("RU_VOR_disable"))return;const e={};Object.keys(r).forEach(t=>{mt.marketBlockedCountries.includes(t)||(e[t]=r[t])}),g(e)},[r]);const b=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{const e=Ho.COUNTRY_WITH_STATE_SELECT.includes(h[Io.CountryCode].value);m(e),b.current?b.current=!1:h[Io.State].onChange("")},[h[Io.CountryCode].value]),(0,a.useEffect)(()=>{let e=!0;for(const t in h)h[t].validationResults.isValid||(e=!1);e!==C.current&&P(),C.current=e},[h]),a.createElement("form",{method:"post",onSubmit:function(e){var n,a,r,o,c;e.preventDefault();const l=f();l||C.current||P();if(!l)return;const u=h[Io.CountryCode].value;let d={subscriber_name:null!==(n=h[Io.SubscriberName].value)&&void 0!==n?n:"",country:null!=u?u:"",state:null!==(a=h[Io.State].value)&&void 0!==a?a:"", +city:null!==(r=h[Io.City].value)&&void 0!==r?r:"",street:null!==(o=h[Io.Street].value)&&void 0!==o?o:"",zip:null!==(c=h[Io.Zip].value)&&void 0!==c?c:""};s||(d={...d,occupation:h[_o.Occupation].value,position:h[_o.Position].value,employment_functions:h[_o.EmploymentFunctions].value,name_and_address_employer:h[_o.NameAndAddressEmployer].value});(m={exchange_agreement_data:d,exchanges:Object.keys(t)},(0,so.fetch)("/exchange-agreement/",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(m)}).then(e=>e.ok?e.json():e.json().then(t=>{throw new Fo.AggregateError((0,Fo.accumulateErrors)(t.errors,e.status))}))).then(()=>i?i():window.location.reload()).catch(e=>{const t={},n=e.errors;n&&(n.forEach(e=>{var n,a;const[,r]=null!==(a=null===(n=e.type)||void 0===n?void 0:n.split("."))&&void 0!==a?a:[];r&&(t[r]={isValid:!1,errors:[e.message]})}),y(t))});var m}},a.createElement("h1",{className:jo["page-title"]},E.t("Agreement for market data display services")),a.createElement("p",{className:jo["page-sub-title"]},"(",E.t("Usage-Based Services/Non-professional Subscriber Status"),")"),a.createElement("p",{className:jo["exchange-agreement-description"]},E.t("Following exchanges require agreements to be completed before TradingView, Inc. can provide real-time data:")),c.map(e=>{const t=new URL(e.path,"https://s3.tradingview.com/exchange-agreements/");return a.createElement("p",{key:"exchange-agreements-file-"+e.exchange_name},a.createElement("a",{href:t.href,className:jo["exchange-file-link"],target:"_blank",onClick:e=>function(e,t){window.open(t,"NYSE Exhibit B","width=1000,height=1000"),e.preventDefault()}(e,t.href)},E.t("{exchange_name} Subscriber Agreement").format({exchange_name:e.agreement_name})))}),a.createElement(Eo,{...h[zo.ReadAndAcceptTerms],onChange:()=>w(zo.ReadAndAcceptTerms),name:String(zo.ReadAndAcceptTerms),label:E.t("I've read and accept the terms and conditions."),wrapperClassName:jo["accept-terms-checkbox-margin"],reference:e=>_(zo.ReadAndAcceptTerms,e)}),a.createElement("h2",{className:jo["section-title"]},E.t("Section 1")),a.createElement(Yo,{countries:p,bindings:{[Io.SubscriberName]:h[Io.SubscriberName],[Io.State]:h[Io.State],[Io.City]:h[Io.City],[Io.Street]:h[Io.Street],[Io.Zip]:h[Io.Zip],[Io.CountryCode]:h[Io.CountryCode]},setValidationResults:y,handleReference:_,showStateSelect:d}),!s&&a.createElement(No,{bindings:{[_o.Occupation]:h[_o.Occupation],[_o.NameAndAddressEmployer]:h[_o.NameAndAddressEmployer],[_o.Position]:h[_o.Position],[_o.EmploymentFunctions]:h[_o.EmploymentFunctions]},setValidationResults:y,handleReference:_}),a.createElement(Eo,{...h[zo.ConfirmSection1],onChange:()=>w(zo.ConfirmSection1),name:String(zo.ConfirmSection1),label:E.t("Accepted and agreed:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.ConfirmSection1,e)}),a.createElement("p",{className:jo["section-terms-description"] +},E.t('I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 1, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.')),a.createElement("h2",{className:jo["section-title"]},E.t("Section 2")),a.createElement(Co,{...h[zo.BusinessUse],onChange:e=>x(e,zo.BusinessUse),name:String(zo.BusinessUse),legend:E.t("Do you use Market Data solely for your personal, non-business use?"),reference:e=>_(zo.BusinessUse,e)}),a.createElement("h3",{className:jo["questions-title"]},E.t("Please read the following 10 questions:")),a.createElement("ol",{type:"A",className:jo.questions},a.createElement("li",{className:jo.question},E.t("Do you receive Market Data for your business or any other entity?")),a.createElement("li",{className:jo.question},E.t("Are you currently registered or qualified with the SEC or the CFTC?")),a.createElement("li",{className:jo.question},E.t("Are you currently registered or qualified with any securities agency, any securities exchange, association or regulatory body, or any commodities or futures contract market, association or regulatory body, in the United States or elsewhere?")),a.createElement("li",{className:jo.question},E.t("Whether you are located within or outside of the United States, do you perform any functions that are similar to those that require an individual to register or qualify with the SEC, the CFTC, any other securities agency or regulatory body, any securities exchange or association, or any commodities or futures contract market, association or regulatory body?")),a.createElement("li",{className:jo.question},E.t("Are you engaged to provide investment advice to any individual or entity?")),a.createElement("li",{className:jo.question},E.t("Are you engaged as an asset manager?")),a.createElement("li",{className:jo.question},E.t("Do you use the capital of any other individual or entity in the conduct of your trading?")),a.createElement("li",{className:jo.question},E.t("Do you conduct trading for the benefit of a corporation, partnership, or other entity?")),a.createElement("li",{className:jo.question},E.t("Have you entered into any agreement to share the profit of your trading activities or receive compensation for your trading activities?")),a.createElement("li",{className:jo.question},E.t("Are you receiving office space, and equipment or other benefits in exchange for your trading or work as a financial consultant to any person, firm or business entity?"))),a.createElement(Co,{...h[zo.ReceiveBenefits],onChange:e=>x(e,zo.ReceiveBenefits),name:String(zo.ReceiveBenefits),legend:E.t("If any of the above applies, then mark Yes. If none applies, then tick No."),reference:e=>_(zo.ReceiveBenefits,e)}),a.createElement(Eo,{...h[zo.Certification],onChange:()=>w(zo.Certification),name:String(zo.Certification),label:E.t("Certification:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.Certification,e) +}),a.createElement("p",{className:jo["section-terms-description"]},E.t('By executing this Agreement, Subscriber hereby certifies that he or she falls within Paragraph 9\'s definition of "Non-professional Subscriber" and that the personal and employment information that he or she has included in Paragraph 12 is truthful and accurate.')),a.createElement(Eo,{...h[zo.ConfirmSection2],onChange:()=>w(zo.ConfirmSection2),name:String(zo.ConfirmSection2),label:E.t("Accepted and agreed:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.ConfirmSection2,e)}),a.createElement("p",{className:jo["section-terms-description"]},E.t('I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 2, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.')),a.createElement("div",{className:jo.actions},s&&a.createElement(Uo.Button,{size:"l",appearance:"stroke",onClick:function(){e.onRefuse?e.onRefuse():window.close()}},E.t("Refuse")),a.createElement(Uo.Button,{type:"submit",size:"l"},E.t("I Agree"))));function w(e){const t=!h[e].value;y({[e]:Wo[e](t)}),h[e].onChange(t)}function x(e,t){y({[t]:Wo[t](e)}),h[t].onChange(e)}function _(e,t){t&&v.current.set(t,e)}function P(e){const t=function(){const e=[];if(v.current.forEach((t,n)=>{h[t].validationResults.isValid||e.push(n)}),0===e.length)return null;const t={element:e[0],top:window.innerHeight};return e.forEach(e=>{const n=e.getBoundingClientRect();n.top{const n=new URL("/exchange-agreement/",window.location.origin);t&&n.searchParams.append("exchange",t),(0,so.fetch)(n.href).then(e=>e.json()).then(t=>{0===Object.keys(t.exchange_agreements).length?e.onSuccess&&e.onSuccess():r(t)})},[]),void 0===n?a.createElement(a.Fragment,null):a.createElement("div",{className:$o.container},a.createElement(qo,{...n,onSuccess:e.onSuccess,onRefuse:e.onRefuse,container:e.container}))}var Qo=n(30649);function Xo(e){return a.createElement("div",{className:Qo.container},a.createElement(ce.Icon,{icon:no,className:Qo.icon}),a.createElement(Bt,{text:(0,E.t)("Success!"),className:Qo.title}),a.createElement(Ot,{className:Qo.descriptionBlock},(0,E.t)("Go now, dive into your new data")),a.createElement(to,{onClose:e.onClose}))}const Zo={[st.Steps.SelectPlan]:st.Steps.BillingCycle,[st.Steps.BillingCycle]:st.Steps.MarketData,[st.Steps.MarketData]:st.Steps.PaymentMethod,[st.Steps.PaymentMethod]:st.Steps.Cheque,[st.Steps.Trial]:void 0,[st.Steps.Cheque]:st.Steps.ExchangeAgreement,[st.Steps.Error]:void 0,[st.Steps.ExchangeAgreement]:st.Steps.ExchangeAgreementSuccess,[st.Steps.ExchangeAgreementSuccess]:void 0},Jo={[st.Steps.Trial]:st.Steps.SelectPlan,[st.Steps.BillingCycle]:st.Steps.SelectPlan,[st.Steps.MarketData]:st.Steps.BillingCycle, +[st.Steps.PaymentMethod]:st.Steps.MarketData,[st.Steps.SelectPlan]:void 0,[st.Steps.Cheque]:void 0,[st.Steps.Error]:void 0,[st.Steps.ExchangeAgreement]:void 0,[st.Steps.ExchangeAgreementSuccess]:void 0};var ei=n(17136),ti=n(78820),ni=n(23651),ai=n(40893);const ri=(0,b.getLogger)("Payments.Payment-Order-Dialog"),oi=k(),ii=new Set([st.Steps.Error,st.Steps.Cheque,st.Steps.SelectPlan,st.Steps.ExchangeAgreement,st.Steps.ExchangeAgreementSuccess]);const ci=a.memo((function(e){var t;const{initialStep:r,cart:i,initialBillingCycle:c,setBillingCycle:s,setCart:u,setPlanProduct:d}=e,{pro:m}=a.useContext(D),[p,g]=(0,a.useState)(e.statusExtraData),[h,f]=(0,a.useState)(""),[v,C]=(0,a.useState)(null),[b,w]=(0,a.useState)(),[x,_]=(0,a.useState)(),[S,k]=(0,a.useState)([]),[T,N]=(0,a.useState)(H.Currencies.Usd),[A,I]=(0,a.useState)(void 0),[R,O]=(0,a.useState)({receiptId:0,transactionId:"",date:"",total:0,resultPricesProducts:{},needExchangeAgreement:!1,currency:void 0}),[M,G]=(0,a.useState)(e.modifier),{currentStep:W,onNextStep:q,onPreviousStep:$,setStep:X}=function(e){const[t,n]=(0,a.useState)(e),r=(0,o.useHistory)(),i=(0,a.useCallback)(()=>{const e=Zo[t];e&&(r.push(e),s(e))},[t]),c=(0,a.useCallback)(()=>{const e=Jo[t];e&&(r.goBack(),s(e))},[t]),l=(0,a.useCallback)(e=>{r.push(e),s(e)},[]);function s(e){n(e),(0,ie.trackPaymentOrderDialogChanges)("changeStep",e)}return{currentStep:t,onNextStep:i,onPreviousStep:c,setStep:l}}(r),ae=(0,a.useMemo)(()=>({visitPaymentPage:rt,startTrial:ot,changeTrial:it,upgradePlan:ct}),[q]),[re,ce]=(0,a.useState)(te.PaymentTab.CreditCard),[le,se]=(0,a.useState)(te.PaymentTab.CreditCard),[ue,de]=(0,a.useState)(null),[me,pe]=(0,a.useState)(""),[ge,he]=(0,a.useState)(null),[fe,ye]=(0,a.useState)(!1),[ve,Ce]=(0,a.useState)(null!==(t=e.fixedCycle)&&void 0!==t&&t),be=(0,a.useRef)(null),we=(0,y.useIsMounted)(),[xe,_e]=function(){const[e,t]=a.useState(!1),n=(0,y.useIsMounted)(),r=a.useCallback(()=>{e||(t(!0),setTimeout(()=>{n.current&&t(!1)},1350))},[e]);return[e,r]}(),[Pe,Se]=(0,a.useState)(!1),[ke,Te]=(0,a.useState)(!0),[Ne,Ae]=(0,a.useState)([]),De=(0,a.useRef)(null),[Ie,Re]=(0,a.useState)({}),Oe=i.proPlanProductId,Be=(0,a.useCallback)(()=>{i.exchanges.length>0?Ae(mt.marketBlockedCountries):Ae([])},[i,x]);async function Me(e,t,n=!1){const a=[...e.exchanges];if(e.proPlanProductId&&(a.push(e.proPlanProductId),null==m?void 0:m.isDiscountProductId(e.proPlanProductId))){const t=null==m?void 0:m.getDiscountProduct(e.proPlanProductId).product;t&&a.push(t)}if(0===a.length)return{};try{const r=await(0,ni.getPrice)({products:a,billingCycle:e.billingCycle,billingAddress:t,currency:T,withTax:n});return(0,ie.getLocalPricesProducts)(a,r.results)}catch(e){const t=Error(e.message);throw t.name=e.name,t}}(0,a.useEffect)(()=>Be(),[i,x,S]),(0,a.useEffect)(()=>{if(void 0!==b){Me(i,b,void 0!==M).then(e=>{we.current&&Re(e)}).catch(e=>{we.current&&(f("ApiError:wrong_details"===e.name?(0, +E.t)("Sorry, your subscription can’t currently be extended, downgraded or upgraded because your payment method doesn’t support recurring payments. Please head to profile settings to update your payment method, then try again."):e.message),X(st.Steps.Error))})}else Re({})},[Oe,i.exchanges,i.billingCycle,null==b?void 0:b.country_code_alpha2,T]),(0,a.useEffect)(()=>{r===st.Steps.Trial&&(0,mt.showEcommpay)(x)&&(N(H.Currencies.Rub),Ae(S.filter(e=>!mt.ecommpayAvailableCountries.includes(e))))},[r,x,S]);const Le=R.needExchangeAgreement&&W===st.Steps.ExchangeAgreement,Ye=a.useRef(Le);(0,L.useFixedBody)(),(0,a.useEffect)(()=>{Promise.all([(0,ee.getCountries)(),(0,ne.orderDetails)()]).then(([e,t])=>{var n;if(!we.current)return;const{current_country_code:a,countries:r}=e;_(a),k(Object.keys(r)),(0,mt.isRussian)(a)&&g(lt.StatusExtraData.Disable);const{payment_methods:o,client_token:i}=t,[c]=o;w({country_code_alpha2:null!==(n=null==c?void 0:c.billing_address.country_code_alpha2)&&void 0!==n?n:a,region:null==c?void 0:c.billing_address.region,street_address:null==c?void 0:c.billing_address.street_address,locality:null==c?void 0:c.billing_address.locality,postal_code:null==c?void 0:c.billing_address.postal_code}),pe(i),C(o),je(o)}).catch(e=>ri.logWarn("Failed to fetch: "+e));const e=j.disable(),t=(0,z.createGroup)({desc:"Payment order dialog",modal:!0});return t.add({desc:"Close Dialog",hotkey:27,handler:He,isDisabled:()=>Ye.current}),()=>{e&&j.enable(e),t.destroy()}},[]),(0,a.useEffect)(()=>{Ye.current=Le},[Le]),(0,a.useLayoutEffect)(()=>Se(!0),[]);const Ue=(0,a.useCallback)(e=>{s(e),(0,ie.trackPaymentOrderDialogChanges)("changeBillingCycle",e)},[]),Fe=Oe?[Oe,...i.exchanges]:i.exchanges,ze=(0,a.useCallback)(e=>{e.json().then(e=>{if(we.current){if(i.proPlanProductId&&m&&(window.user.pro_plan=m.getProduct(i.proPlanProductId).text_id,window.user.pro_plan_billing_cycle=i.billingCycle,window.user.is_pro=!0,window.user.is_trial=i.isTrial),oi.xWindowEventsEmit({type:P.Subscribe,invalidateShopConf:i.exchanges.length>0}),i.isTrial)return X(st.Steps.Cheque),(0,U.trackGTagAdsEvent)(U.GTagEvent.TrialSignUp),void(0,F.trackTwitterEvent)(F.TwitterEvent.TrialSignUp);(0,U.trackGTagAdsEvent)(U.GTagEvent.PaidPlanAcquired,{value:e.total,transaction_id:e.transaction_id}),(0,F.trackTwitterEvent)(F.TwitterEvent.PaidPlanAcquired),O({receiptId:e.receipt_id,transactionId:e.transaction_id,date:e.date,total:e.total,resultPricesProducts:(0,ie.getLocalPricesProducts)(Fe,e.result),needExchangeAgreement:e.need_exchange_agreement,currency:e.currency}),X(st.Steps.Cheque)}})},[m,i,Fe]),He=(0,a.useCallback)(()=>{Se(!1),e.onClose&&e.onClose(),W===st.Steps.Trial&&(0,Vr.trackTrialAction)(Oe,i.billingCycle,"close","braintree"),ie.afterPaymentSteps.has(W)&&oi.currentTabEmit({type:P.Subscribe,invalidateShopConf:i.exchanges.length>0})},[W,e.onClose,i.billingCycle,i.proPlanProductId]),Ve=(0,a.useCallback)((e,t)=>{const n="default"===e,a=t.find(t=>t.token===e);ce(!n&&a?te.PaymentTab.OneClick:te.PaymentTab.CreditCard),I(null!=a?a:null),w({ +country_code_alpha2:""!==(null==a?void 0:a.billing_address.country_code_alpha2)?null==a?void 0:a.billing_address.country_code_alpha2:x}),de(n?null:e)},[x]),je=(0,a.useCallback)(e=>{if(!e)return;const t=e.filter(e=>e.is_address_complete);he(t);const n=t[0];void 0===A&&n||null!=A&&!t.includes(A)&&n?Ve(n.token,e):n||Ve("default",e)},[Ve]),Ge=(0,a.useCallback)(e=>{const t=i.proPlanProductId?[i.proPlanProductId,...e]:e;u({...i,exchanges:e}),(0,ie.trackPaymentOrderDialogChanges)("changeProducts",t.join(";"))},[i,v]),We=(0,a.useCallback)(e=>{v&&Ve(e,v)},[v]),qe=(0,a.useCallback)(e=>{(0,ie.trackPaymentOrderDialogChanges)("changePaymentTab",e),se(e),e===te.PaymentTab.Ecommpay&&(0,mt.showEcommpay)(x)&&(0,V.isFeatureEnabled)("ecommpay_ru")?(N(H.Currencies.Rub),Ae(S.filter(e=>!mt.ecommpayAvailableCountries.includes(e)))):(N(H.Currencies.Usd),Be())},[x,S,i]),$e=(0,a.useCallback)(()=>{W===st.Steps.PaymentMethod&&T!==H.Currencies.Usd&&N(H.Currencies.Usd),$()},[$,W,T]),Ke=(0,a.useCallback)(()=>{X(r),f("")},[]),Qe=(0,a.useCallback)(()=>X(st.Steps.ExchangeAgreement),[]),Xe=ii.has(W)||W===r,Ze=W===st.Steps.Cheque,Je=ie.hideCartSteps.has(W),et=r===st.Steps.MarketData,tt=B(ai["dialog-section"],{[hn["highlight-wrap"]]:xe,[ai["one-column"]]:Je,[ai["two-column"]]:!Je}),nt=(0,a.useCallback)(async(e,t)=>{const n=await Me(i,e,t);we.current&&Re(n)},[m,i,T]),at=a.useMemo(()=>(0,ie.getPricesForCart)({pro:m,cartData:i,listLocalPricesProducts:Ie}),[m,i,Ie]);return a.createElement(Y.PopupDialog,{isOpened:!0,fullscreen:!0,draggable:!1,rounded:!1,className:B(ai.dialog,Pe&&ai["open-animation"])},a.createElement("section",{className:tt},a.createElement(Ee,{onPrevious:$e,onClose:He,hideBackButton:Xe,hideCloseButton:Le}),a.createElement("div",{ref:De,className:ai.body},a.createElement("div",{className:B(ai.main,Ze&&ai.mainMobile)},a.createElement(o.Switch,null,a.createElement(o.Route,{path:st.Steps.SelectPlan},a.createElement(oe.Provider,{value:ae},a.createElement(Ar,{onChangeBillingCycle:Ue}))),a.createElement(o.Route,{path:st.Steps.BillingCycle},m&&Oe&&a.createElement(Jr,{proPlanProductId:Oe,billingCycle:i.billingCycle,onChange:Ue,pro:m,fixedCycle:ve,initialBillingCycle:c})),a.createElement(o.Route,{path:st.Steps.MarketData},m&&a.createElement(En,{pro:m,billingCycle:i.billingCycle,selectedExchanges:i.exchanges,isOnlyExchanges:et,setExchanges:Ge,statusExtraData:p,setExtraDataStatus:g,defaultCountryCode:x})),a.createElement(o.Route,{path:st.Steps.PaymentMethod},a.createElement(Fr,{onSuccessPurchase:ze,defaultTab:re,currentTab:le,onTabChange:qe,products:Fe,onError:$,buttonContainerRef:be,onBillingAddressChange:nt,price:at,billingCycle:i.billingCycle,hasExchanges:i.exchanges.length>0,onClose:He,ipCountryCode:x,currency:T,blockedCountries:Ne})),m&&x&&a.createElement(o.Route,{path:st.Steps.Trial},Oe&&a.createElement(qr,{onSuccessPurchase:ze,proPlanProductId:Oe,buttonContainerRef:be,onBillingAddressChange:nt,billingCycle:i.billingCycle,modifier:M,orderTermsChecked:fe,onChangeOrderTerm:ye,ipCountryCode:x,onTabChange:qe,currency:T,blockedCountries:Ne +})),a.createElement(o.Route,{path:st.Steps.Error},a.createElement(_n,{onTryAgain:Ke,errorText:h,allowTryAgain:ke,onClose:He})),a.createElement(o.Route,{path:st.Steps.Cheque},a.createElement(oo,{cartData:i,receiptInfo:R,onClose:He,modifier:M,onExchangeAgreement:R&&R.needExchangeAgreement?Qe:void 0,cartPrices:at})),a.createElement(o.Route,{path:st.Steps.ExchangeAgreement},a.createElement(Ko,{onSuccess:q,container:De.current,onRefuse:He})),a.createElement(o.Route,{path:st.Steps.ExchangeAgreementSuccess},a.createElement(Xo,{onClose:He})))),a.createElement("div",{className:B(ai.cart,Je&&ai.hidden)},m&&!Je&&a.createElement(At,{statusExtraData:p,pro:m,cartData:i,currentPaymentTab:le,currentStep:W,reference:be,currentPaymentMethod:A,onSuccessPurchase:ze,onNext:q,onMethodChange:We,onHighlight:_e,isOnlyExchanges:et,setErrorText:f,token:ue,activePaymentMethods:ge,modifier:M,orderTermsChecked:fe,setStep:X,clientToken:me,setAllowTryAgain:Te,listLocalPricesProducts:Ie,currency:T})))));async function rt(e,t){var n;if(await(0,ei.check)())return void(0,ti.showRestrictedCountryNotificationDialog)();const a=null==t?void 0:t.productName;a&&(d(a,null!=e?e:l.BillingCycle.Monthly),Ce(null!==(n=null==t?void 0:t.fixedCycle)&&void 0!==n&&n),q())}async function ot(e,t){await(0,ei.check)()?(0,ti.showRestrictedCountryNotificationDialog)():function(e={}){const t=K.Deferred();return J({doNotCheckSuspicious:e.doNotCheckSuspicious,doNotCheckSocialActivity:e.doNotCheckSocialActivity,customPhoneCheck:e.customPhoneCheck}).then(([n,a])=>{if(!n)return Q.resolve(),t.resolve();if(n&&e.silentPhoneVerification)return t.reject("phone_verification_required");if(!e.showDialog)return Q.done(()=>t.resolve());const r={source:e.source,doNotShowConfirmation:e.doNotShowConfirmation};"suspicious"!==a&&(r.topMessage=(0,E.t)("Verify your phone number and get access to more tools on TradingView.")),Z(r).done(()=>t.resolve()).always(()=>t.reject("phone_verification_declined"))}).catch(e=>e),t.promise()}({showDialog:!0,doNotCheckSocialActivity:!0,doNotShowConfirmation:!0,doNotCheckSuspicious:!1,source:"before_start_trial"}).then(()=>{we.current&&(d(e,t,!0),X(st.Steps.Trial))})}function it(e,t,n){d(e,t,!0),X(st.Steps.Trial),G(n)}async function ct(e,t,a){const{upgradeDialog:r}=await n.e(9347).then(n.bind(n,47684));r({fallback:a,billingCycle:t,proPlan:e,onSuccess:()=>{oi.emit({type:P.Upgrade}),He()}})}})),li=(0,c.guid)();function si(e){const{onClose:t,...n}=e;d().clear();const o=(0,m.getRootOverlapManager)().ensureWindow(li);r.render(a.createElement(ui,{...n,onClose:function(){t&&t(),r.unmountComponentAtNode(o)}}),o)}function ui(e){var t,n;const{statusExtraData:r,billingCycle:i}=e;let c=st.Steps.BillingCycle,s=!0;e.productId||(c=st.Steps.MarketData),e.isTrial&&(c=st.Steps.Trial,s=!1);const[u,d]=a.useState({proPlanProductId:e.productId,billingCycle:null!=i?i:l.BillingCycle.Monthly,exchanges:null!==(t=e.exchanges)&&void 0!==t?t:[],isTrial:null!==(n=e.isTrial)&&void 0!==n&&n});return a.createElement(o.MemoryRouter,{initialEntries:[c],initialIndex:0},a.createElement(O,{ +updateShopConf:s,source:"payment-dialog"},a.createElement(ci,{...e,initialBillingCycle:i,initialStep:c,statusExtraData:e.productId?r:lt.StatusExtraData.Enable,cart:u,setCart:d,setBillingCycle:function(e){d({...u,billingCycle:e})},setPlanProduct:function(e,t,n=!1){d({...u,proPlanProductId:e,billingCycle:t,isTrial:n})}})))}function di(e){const{onClose:t,...n}=e;d().clear();const o=(0,m.getRootOverlapManager)(),i=o.ensureWindow(li);r.render(a.createElement(pi,{...n,onClose:function(){t&&t(),r.unmountComponentAtNode(i),o.removeWindow(li)}}),i)}function mi(e,t){var n;switch(t.type){case"setCart":return{...t.cart};case"setBillingCycle":return{...e,billingCycle:t.billingCycle};case"setPlanProduct":return{...e,proPlanProductId:t.productId,isTrial:null!==(n=t.isTrial)&&void 0!==n&&n,billingCycle:t.billingCycle};default:return e}}function pi(e){const[t,n]=a.useReducer(mi,{billingCycle:l.BillingCycle.Monthly,exchanges:[],isTrial:!1});a.useEffect(()=>{(0,i.getTracker)().then(t=>{null==t||t.trackGoproVisits(e.source,e.feature,"dialog")})},[]);const r=a.useCallback(e=>{n({type:"setCart",cart:e})},[]),c=a.useCallback(e=>{n({type:"setBillingCycle",billingCycle:e})},[]),s=a.useCallback((e,t,a)=>{n({type:"setPlanProduct",productId:e,billingCycle:t,isTrial:a})},[]),u=a.useCallback(e=>{var t;const{pro:n,user:a}=e;null!==n&&null!==a&&c(h(n,a,null===(t=e.state)||void 0===t?void 0:t.subscriptionDetails))},[]);return a.createElement(o.MemoryRouter,{initialEntries:[st.Steps.SelectPlan],initialIndex:0},a.createElement(O,{onUpdate:u,onMounted:u,updateShopConf:!0,source:"gopro-payment-dialog"},a.createElement(ci,{...e,initialStep:st.Steps.SelectPlan,cart:t,setCart:r,setBillingCycle:c,setPlanProduct:s})))}},59407:(e,t,n)=>{"use strict";var a;n.d(t,{Steps:()=>a}),function(e){e.SelectPlan="/select-plan",e.BillingCycle="/billing-cycle",e.MarketData="/market-data",e.PaymentMethod="/payment-method",e.Cheque="/cheque",e.Error="/error",e.Trial="/trial",e.ExchangeAgreement="/exchange-agreement",e.ExchangeAgreementSuccess="/exchange-agreement-success"}(a||(a={}))},83317:(e,t,n)=>{"use strict";n.d(t,{getExchangeType:()=>s,exchangeGroupTabTranslate:()=>u,getExchangesOrderedByRegion:()=>m,getAvailableExchanges:()=>p,getLocalPricesProducts:()=>g,getListExchanges:()=>h,trackPaymentOrderDialogChanges:()=>f,trackPaymentOrderDialogInitial:()=>y,getPricesForCart:()=>v,translateExchangeData:()=>C,hideCartSteps:()=>b,afterPaymentSteps:()=>E,getCurrencySign:()=>w});var a,r=n(28353),o=n(9168),i=n(91955),c=n(59407),l=n(10878);function s(e){let t=[];const n=new Map([[o.ExchangeDataType.Stocks,e.is_stocks?o.ExchangeDataType.Stocks:null],[o.ExchangeDataType.Indices,e.is_indices?o.ExchangeDataType.Indices:null],[o.ExchangeDataType.Futures,e.is_futures?o.ExchangeDataType.Futures:null],[o.ExchangeDataType.Currency,e.is_currency?o.ExchangeDataType.Currency:null],[o.ExchangeDataType.Certificates,e.is_certificates?o.ExchangeDataType.Certificates:null],[o.ExchangeDataType.Bist100,null],[o.ExchangeDataType.Bist30,null],[o.ExchangeDataType.Rofex20,null]]) +;return"bist_mixed"===e.exchange&&(n.set(o.ExchangeDataType.Indices,null),n.set(o.ExchangeDataType.Bist100,o.ExchangeDataType.Bist100),n.set(o.ExchangeDataType.Bist30,o.ExchangeDataType.Bist30)),"matbarofex"===e.exchange&&(n.set(o.ExchangeDataType.Indices,null),n.set(o.ExchangeDataType.Rofex20,o.ExchangeDataType.Rofex20)),n.forEach(e=>{e&&(t=[...t,e])}),t}function u(e){return{[a.NorthAmerica]:r.t("North America"),[a.Europe]:r.t("Europe"),[a.EastAfrica]:r.t("Middle East / Africa"),[a.Mexico]:r.t("Mexico and South America"),[a.AsiaPacific]:r.t("Asia / Pacific")}[e]}!function(e){e.NorthAmerica="North America",e.Europe="Europe",e.EastAfrica="Middle East/Africa",e.Mexico="Mexico and South America",e.AsiaPacific="Asia/Pacific"}(a||(a={}));const d=new Map([[0,a.NorthAmerica],[1,a.Europe],[2,a.EastAfrica],[3,a.Mexico],[4,a.AsiaPacific]]);function m(e){const t={};for(const n of e){const e=n.region;void 0!==d.get(e)&&(t.hasOwnProperty(e)||(t[""+e]={name:d.get(e),exchanges:[]}),t[""+e].exchanges.push(n))}for(const e in t)if(t.hasOwnProperty(e)){const n=t[""+e].exchanges;"0"===e?n.sort((e,t)=>e.order>t.order?1:-1):n.sort((e,t)=>e.name>t.name?1:-1)}return t}function p(e){return e.filter(e=>!e.disabled)}function g(e,t){const n={};for(let a=0;ae.getProduct(t))}async function f(e,t){const n=await(0,i.getTracker)();null!==n&&n.trackPaymentOrderDialogChanges(e,t)}async function y(e,t,n){const a=await(0,i.getTracker)();null!==a&&a.trackPaymentOrderDialogInitial(e,t.join(";"),n)}function v(e){var t,n,a,r,o;const{pro:i,cartData:c,listLocalPricesProducts:s,currency:u}=e,{proPlanProductId:d,billingCycle:m}=c;let p=0,g=0,f=u||l.Currencies.Usd,y=0,v=0,C=0,b=0,E=0;if(null===i)return{proPlanCost:p,exchangesCost:b,totalCostWithTax:v,currency:f,tax:y,proPlanCostWithTax:p,baseProPlanCostWithTax:C,subtotal:E};const w=h(i,c);if(void 0===s||0===Object.keys(s).length){const e=d?i.getProduct(d):null,t=e?i.getProduct(e.text_id):null;return C=t?i.getCost(t,m):0,p=e?i.getCost(e,m):0,b=w.reduce((e,t)=>i.getCost(t,m)+e,0),E=p+b,{proPlanCost:p,exchangesCost:b,totalCostWithTax:E,currency:f,tax:y,proPlanCostWithTax:p,baseProPlanCostWithTax:C,subtotal:E}}const x=void 0!==d?s[d]:null,_=null!==(n=null===(t=null==x?void 0:x.tax)||void 0===t?void 0:t.tax)&&void 0!==n?n:0;x&&(p=x.price.total,f=null!==(a=x.price.currency)&&void 0!==a?a:"");const P=x?s[x.text_id]:null;P&&(C=P.price.total+(null!==(o=null===(r=P.tax)||void 0===r?void 0:r.tax)&&void 0!==o?o:0)),b=w.reduce((e,t)=>{var n,a;return(null!==(a=null===(n=s[t.text_id])||void 0===n?void 0:n.price.total)&&void 0!==a?a:0)+e},0);const S=w.reduce((e,t)=>{var n,a,r;return(null!==(r=null===(a=null===(n=s[t.text_id])||void 0===n?void 0:n.tax)||void 0===a?void 0:a.tax)&&void 0!==r?r:0)+e},0);g=p+_;return y=_+S,E=p+b,v=E+y,{proPlanCost:p,exchangesCost:b+S,totalCostWithTax:v,currency:f,tax:y,proPlanCostWithTax:g,baseProPlanCostWithTax:C,subtotal:E}}function C(e){return r.t(e)} +const b=new Set([c.Steps.Cheque,c.Steps.Error,c.Steps.SelectPlan,c.Steps.ExchangeAgreement,c.Steps.ExchangeAgreementSuccess]),E=new Set([c.Steps.Cheque,c.Steps.ExchangeAgreement,c.Steps.ExchangeAgreementSuccess]);function w(e){return"USD"===e?"$":""}},10777:(e,t,n)=>{"use strict";n.r(t),n.d(t,{firstLoginDataUrl:()=>r,accumulateErrors:()=>o,fetchPost:()=>i,firstLoginData:()=>c,resendLink:()=>l,signinUrl:()=>s,signin:()=>d,signupUrl:()=>m,signup:()=>p,ApiError:()=>g,AggregateError:()=>h,recoverPasswordUrl:()=>f,recoverPassword:()=>y,resetPassword:()=>v});var a=n(85198);const r="/accounts/first_login_data/";function o(e,t){return Object.entries(e).map(e=>new g(e[1].join("\n"),t,e[0]))}function i(e,t){return(0,a.fetch)(e,{method:"POST",credentials:"include",mode:"same-origin",body:t})}function c(e){return i(r,e).then(e=>e.ok?e.json():e.json().then(t=>{throw new h(o(t.errors,e.status))}))}function l(){return i("/api/v1/users/anon/change-email/resend/").then(e=>e.ok?e.json():e.json().then(e=>{throw Error(e.error)}))}const s="/accounts/signin/";function u(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);return t})}function d(e){return i(s,e).then(u)}const m="/accounts/signup/";function p(e){return i(m,e).then(e=>e.json().then(t=>{if("errors"in t&&""!==t.errors)throw new h(o(t.errors,e.status))}))}class g extends Error{constructor(e,t,n,a){super(e),this.type=n,this.status=t}}class h extends Error{constructor(e){super(e.map(e=>e.message).join("\n")),this.errors=[],this.errors=e}}const f="/api/v1/recover_password/search/";function y(e){return i(f,e).then(u)}function v(e){return i("/accounts/reset_password/",e).then(e=>400===e.status?e.json().then(t=>{if("errors"in t)throw new h(o(t.errors,e.status));throw new g(t.detail,e.status,t.code)}):u(e))}},30152:(e,t,n)=>{"use strict";n.d(t,{showSupportDialog:()=>a});n(51872);function a(e){return Promise.all([n.e(9685),n.e(5514),n.e(8463),n.e(9289),n.e(509),n.e(3118),n.e(5998),n.e(8844),n.e(1253),n.e(8247),n.e(9297),n.e(9255),n.e(3812),n.e(5376),n.e(1536),n.e(5423),n.e(9957),n.e(7274)]).then(n.bind(n,89053)).then(t=>new t.SupportDialog(e).open())}},78599:(e,t,n)=>{"use strict";async function a(e){return(await Promise.all([n.e(8463),n.e(509),n.e(3118),n.e(5998),n.e(3848),n.e(8844),n.e(9410),n.e(5113),n.e(9565),n.e(8138),n.e(3014),n.e(1536),n.e(9040),n.e(8606)]).then(n.bind(n,44279))).createPhoneDialog(e)}async function r(e){return(await Promise.all([n.e(8463),n.e(509),n.e(3118),n.e(5998),n.e(3848),n.e(8844),n.e(9410),n.e(5113),n.e(9565),n.e(8138),n.e(3014),n.e(1536),n.e(9040),n.e(8606)]).then(n.bind(n,44279))).createEmailDialog(e)}n.d(t,{createPhoneDialog:()=>a,createSMSEmailDialog:()=>r})},1768:(e,t,n)=>{"use strict";n.d(t,{createImage:()=>r,marketingAnalyticsEnabled:()=>o});var a=n(76266);function r(e){const t=document.createElement("img");return t.src=e,t}function o(){return(0,a.isFeatureEnabled)("marketing-analytics")}},1938:(e,t,n)=>{"use strict";n.d(t,{GTagEvent:()=>d, +trackGTagAdsEvent:()=>p});var a=n(76422),r=n(98999),o=n(84015),i=n(49483),c=n(46433),l=n(38663),s=n(1768);let u=!1;var d;function m(){u||!(0,s.marketingAnalyticsEnabled)()||(0,o.isOnMobileAppPage)("any")||i.CheckMobile.iOS()||((0,c.updateInitData)(),(0,c.getInitData)().gadwId&&(u=!0,(0,l.appendScript)("https://www.googletagmanager.com/gtag/js?id="+(0,c.getInitData)().gadwId),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("consent","default",{ad_storage:(0,r.getCookieSetting)(r.CookieSettings.Advertising)?"granted":"denied"}),window.gtag("config",(0,c.getInitData)().gadwId),a.subscribe(r.cookieSettingsChangeEvent,(e,t)=>{e===r.CookieSettings.Advertising&&window.gtag("consent","update",{ad_storage:t?"granted":"denied"})},null)))}function p(e,t={}){if(m(),!u)return;const n=(0,c.getInitData)().gadwId;window.gtag("event","conversion",{send_to:`${n}/${e}`,user_id:window.user.id,...t})}!function(e){e.PageView="kwnRCP6AwqsBEOTvvuED",e.TrialSignUp="6_gCCOyejsACEK3sq6gB",e.RegistrationCompleted="JzYhCIOr578CEK3sq6gB",e.PaidPlanAcquired="ca8iCNrG578CEK3sq6gB"}(d||(d={}))},59401:(e,t,n)=>{"use strict";n.d(t,{TwitterEvent:()=>a,trackTwitterEvent:()=>i});var a,r=n(1768),o=n(98999);!function(e){e.SiteVisit="o2eg2",e.TrialSignUp="o1wjo",e.RegistrationCompleted="o1wjq",e.PaidPlanAcquired="o1wjr"}(a||(a={}));function i(e){(0,r.marketingAnalyticsEnabled)()&&(0,o.getCookieSetting)(o.CookieSettings.Analytics)&&(e=>[`https://analytics.twitter.com/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0`,`https://t.co/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0"`])(e).map(r.createImage)}},38663:(e,t,n)=>{"use strict";n.d(t,{appendScript:()=>r});var a=n(15298);function r(e){const t=document.createElement("script");t.async=!0,t.src=e;const n=(0,a.getCspNonce)();return n&&t.setAttribute("nonce",n),document.head.appendChild(t),t}},98999:(e,t,n)=>{"use strict";n.d(t,{CookieSettings:()=>a,cookieSettingsChangeEvent:()=>c,setCookieSetting:()=>s,getCookieSetting:()=>u});var a,r=n(76422),o=n(11417),i=n(57229);!function(e){e.Analytics="analytics",e.Advertising="advertising"}(a||(a={}));const c="cookie_settings_changed",l={[a.Analytics]:!1,[a.Advertising]:!1};function s(e,t){l[e]=t,o.TVLocalStorage.setItem("cookiesSettings",JSON.stringify(l)),r.emit(c,e,t)}function u(e){return l[e]}!function(){const e=o.TVLocalStorage.getItem("cookiesSettings");if(e)try{const t=JSON.parse(e);l[a.Analytics]=(null==t?void 0:t[a.Analytics])||!1,l[a.Advertising]=(null==t?void 0:t[a.Advertising])||!1}catch(e){}else(0,i.checkCookiePolicy)(i.oldBannerKey)&&(s(a.Analytics,!0),s(a.Advertising,!0),(0,i.onAccept)(),(0,i.removeOldCookieBannerKey)())}()},46433:(e,t,n)=>{"use strict";n.d(t,{updateInitData:()=>i,getInitData:()=>c,getFreshInitData:()=>l});var a=n(88537);const r=(0,n(98125).getLogger)("Common.InitData"),o=window.initData||{};function i(){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{"use strict";n.d(t,{trackCookies:()=>r});var a=n(91955);async function r(e,t){var n;let r,o;r="/"===window.location.pathname?"index":window.location.pathname.split("/")[1];const i=null!==(n=window.user.pro_plan)&&void 0!==n?n:window.is_authenticated?"free":"visitor";window.is_authenticated&&(o=window.user.id);const c=await(0,a.getTracker)();c&&c.trackToastDialog("cookies",e,t,r,i,o)}},41145:(e,t,n)=>{"use strict";n.d(t,{BackButton:()=>u});var a=n(59496),r=n(97754),o=n(9745),i=n(70895),c=n(81925),l=n(99803),s=n(87823);const u=a.forwardRef((e,t)=>{const{className:n,size:u,...d}=e,m=r(s["back-button"],s["button-"+u],n);return a.createElement("button",{...d,type:"button",className:m,ref:t},a.createElement(o.Icon,{icon:function(e="l"){switch(e){case"l":return i;case"m":return c;case"s":return l;default:return i}}(u),className:s.icon}))})},44943:(e,t,n)=>{"use strict";n.d(t,{dumbValidator:()=>r,useFormValidation:()=>o});var a=n(59496);function r(){return{isValid:!0,errors:[]}}function o(e,t,n){const a={},r={},o={};for(const c of e){const e=void 0!==n?n[c]:void 0,[l,s,u,d,m]=i(t[c],e);a[c]={value:l,onChange:s,validationResults:u},r[c]=d,o[c]=m}return[a,function(){let e=!0;for(const t in r)if(r.hasOwnProperty(t)){const n=r[t];if(void 0!==n){const t=n();e=e&&t}}return e},function(e){for(const t in e)e.hasOwnProperty(t)&&e[t]&&o[t](e[t])}]}function i(e,t){const[n,r]=(0,a.useState)(t),[o,i]=(0,a.useState)(!0),[c,l]=(0,a.useState)([]);function s(t=n){const{isValid:a,errors:r}=e(t);return a!==o&&i(a),(r.length!==c.length||r.filter(e=>c.includes(e)).length>0)&&l(r),a}return[n,function(e){r(e),o||s(e)},{isValid:o,errors:c},s,function(e){i(e.isValid),l(e.errors)}]}},23298:e=>{e.exports=''},87172:e=>{e.exports=''},79704:e=>{e.exports=''},26:e=>{ +e.exports=''},25293:e=>{e.exports=''},87239:e=>{e.exports=''},70895:e=>{e.exports=''},81925:e=>{e.exports=''},99803:e=>{e.exports=''},59899:e=>{e.exports=''},61975:e=>{e.exports=''},77540:e=>{e.exports=''},63897:e=>{e.exports=''},54417:e=>{ +e.exports=''},43861:e=>{e.exports=''},66026:e=>{e.exports=''},55348:e=>{ +e.exports='DATA SERVICES'},60495:e=>{e.exports=''},65417:e=>{ +e.exports=''},158:e=>{e.exports=''},65151:e=>{ +e.exports=''},17681:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/header-toolbar.6e0f6b8f50c83c8a6dc1.js b/charting_library/bundles/header-toolbar.6e0f6b8f50c83c8a6dc1.js new file mode 100644 index 00000000..557c2976 --- /dev/null +++ b/charting_library/bundles/header-toolbar.6e0f6b8f50c83c8a6dc1.js @@ -0,0 +1,16 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3005],{77511:e=>{e.exports={group:"group-T57LDNqT",noLeftDecoration:"noLeftDecoration-T57LDNqT",noRightDecoration:"noRightDecoration-T57LDNqT",noMinimalWidth:"noMinimalWidth-T57LDNqT",newStyles:"newStyles-T57LDNqT",separator:"separator-T57LDNqT",separatorWrap:"separatorWrap-T57LDNqT"}},71747:e=>{e.exports={"css-value-header-toolbar-height":"38px",wrap:"wrap-7mUBPdQo"}},85291:e=>{e.exports={"css-value-header-toolbar-height":"38px",toolbar:"toolbar-ymEQuMuZ",isHidden:"isHidden-ymEQuMuZ",overflowWrap:"overflowWrap-ymEQuMuZ",customButton:"customButton-ymEQuMuZ",hovered:"hovered-ymEQuMuZ"}},36971:e=>{e.exports={wrap:"wrap-zQWNyqoF",icon:"icon-zQWNyqoF"}},93067:e=>{e.exports={"css-value-header-toolbar-height":"38px",inner:"inner-Kbdz4qEM",fake:"fake-Kbdz4qEM",fill:"fill-Kbdz4qEM",collapse:"collapse-Kbdz4qEM",button:"button-Kbdz4qEM",iconButton:"iconButton-Kbdz4qEM",hidden:"hidden-Kbdz4qEM",content:"content-Kbdz4qEM",desktopPublish:"desktopPublish-Kbdz4qEM",mobilePublish:"mobilePublish-Kbdz4qEM"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},9745:(e,t,r)=>{"use strict";r.d(t,{Icon:()=>i});var n=r(59496);const i=n.forwardRef((e,t)=>{const{icon:r="",...i}=e;return n.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:r}})})},53374:(e,t,r)=>{"use strict";r.d(t,{INTERVALS:()=>i});var n=r(28353);const i=[{name:"",label:(0,n.t)("minutes",{context:"interval"})},{name:"H",label:(0,n.t)("hours",{context:"interval"})},{name:"D",label:(0,n.t)("days",{context:"interval"})},{name:"W",label:(0,n.t)("weeks",{context:"interval"})},{name:"M",label:(0,n.t)("months",{context:"interval"})}]},53335:(e,t,r)=>{"use strict";r.r(t),r.d(t,{HeaderToolbarRenderer:()=>ge});var n=r(59496),i=r(87995),o=r(88537),s=r(97754),a=r(85459),l=r.n(a),u=r(43370),c=r(67337),d=r(76422),h=r(19036),p=r(9837),f=r(32563),m=r(42142),v=r(37669),y=r(77511);function g(e){const{children:t,className:r,noLeftDecoration:i,noRightDecoration:o,noMinimalWidth:a,onClick:l,removeSeparator:u}=e;return n.createElement(n.Fragment,null,v.hasNewHeaderToolbarStyles&&!u&&n.createElement("div",{className:y.separatorWrap},n.createElement("div",{className:y.separator})),n.createElement("div",{className:s(r,y.group,{[y.noMinimalWidth]:a,[y.noLeftDecoration]:i,[y.noRightDecoration]:o,[y.newStyles]:v.hasNewHeaderToolbarStyles}),onClick:l},t))}var b=r(71747);class S extends n.PureComponent{constructor(){super(...arguments),this._handleMeasure=({width:e})=>{this.props.onWidthChange(e)}}render(){const{children:e,shouldMeasure:t}=this.props;return n.createElement(p,{shouldMeasure:t,onMeasure:this._handleMeasure,whitelist:["width"]},n.createElement("div",{ +className:b.wrap},e))}}var w=r(28353),_=r(9745),E=r(36971),C=r(59266);const M={text:(0,w.t)("View Only Mode")};function T(e){return n.createElement("div",{className:E.wrap},n.createElement(_.Icon,{className:E.icon,icon:C}),M.text)}var k,R=r(39440),O=r(54475);!function(e){e.SymbolSearch="header-toolbar-symbol-search",e.Intervals="header-toolbar-intervals",e.ChartStyles="header-toolbar-chart-styles",e.Compare="header-toolbar-compare",e.Indicators="header-toolbar-indicators",e.StudyTemplates="header-toolbar-study-templates",e.Dropdown="header-toolbar-dropdown",e.Alerts="header-toolbar-alerts",e.Layouts="header-toolbar-layouts",e.SaveLoad="header-toolbar-save-load",e.UndoRedo="header-toolbar-undo-redo",e.Properties="header-toolbar-properties",e.PublishDesktop="header-toolbar-publish-desktop",e.PublishMobile="header-toolbar-publish-mobile",e.Fullscreen="header-toolbar-fullscreen",e.Screenshot="header-toolbar-screenshot",e.Replay="header-toolbar-replay",e.Financials="header-toolbar-financials",e.StartTrial="header-toolbar-start-trial"}(k||(k={}));var N=r(70412),I=r(55402),x=r(93067);const P=(0,I.registryContextType)();class V extends n.PureComponent{constructor(e,t){super(e,t),this._handleMouseOver=e=>{(0,N.hoverMouseEventFilter)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{(0,N.hoverMouseEventFilter)(e)&&this.setState({isHovered:!1})},this._handleInnerResize=e=>{const{onWidthChange:t}=this.props;t&&t(e)},this._handleMeasureAvailableSpace=({width:e})=>{const{onAvailableSpaceChange:t}=this.props;t&&t(e)},this._processCustoms=e=>{const{isFake:t,displayMode:r}=this.props,{tools:i}=this.context;return e.map(e=>n.createElement(g,{key:e.id},(e=>{switch(e.type){case"Button":return n.createElement(i.Custom,{...e.params,isFake:t});case"TradingViewStyledButton":return n.createElement(i.CustomTradingViewStyledButton,{...e.params,className:x.button,displayMode:r});case"Dropdown":return n.createElement(i.Dropdown,{displayMode:r,params:e.params});default:return null}})(e)))},this._fixLastGroup=(e,t,r)=>{if(t===r.length-1&&n.isValidElement(e)&&e.type===g){const t=void 0!==this.context.tools.Publish&&!this.props.readOnly;return n.cloneElement(e,{noRightDecoration:t})}return e},(0,I.validateRegistry)(t,{tools:h.any.isRequired}),this.state={isHovered:!1,isAuthenticated:void 0}}componentDidMount(){0}componentWillUnmount(){0}render(){const{tools:e}=this.context,{features:t,displayMode:r,chartSaver:i,studyMarket:o,readOnly:a,saveLoadSyncEmitter:l,leftCustomElements:u,rightCustomElements:c,showScrollbarWhen:d,isFake:h=!1}=this.props,{isHovered:y,isAuthenticated:b}=this.state,w=this._processCustoms(u),_=this._processCustoms(c),E=d.includes(r);return n.createElement("div",{className:s(x.inner,{[x.fake]:h}),onContextMenu:O.preventDefaultForContextMenu,"data-is-fake-main-panel":h},n.createElement(p,{onMeasure:this._handleMeasureAvailableSpace,whitelist:["width"],shouldMeasure:!h},n.createElement(R.HorizontalScroll,{isVisibleFade:f.mobiletouch&&E,isVisibleButtons:!f.mobiletouch&&E&&y,isVisibleScrollbar:!1,shouldMeasure:E&&!h, +onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},n.createElement("div",{className:x.content},n.createElement(S,{onWidthChange:this._handleInnerResize,shouldMeasure:h},n.createElement(m.FragmentMap,{map:this._fixLastGroup},!a&&n.Children.toArray([e.SymbolSearch&&n.createElement(g,{key:"symbol"},n.createElement(e.SymbolSearch,{id:h?void 0:k.SymbolSearch,isActionsVisible:t.allowSymbolSearchSpread}),v.hasNewHeaderToolbarStyles&&e.Compare&&n.createElement(e.Compare,{id:h?void 0:k.Compare,className:x.button,displayMode:r})),e.DateRange&&n.createElement(g,{key:"range"},n.createElement(e.DateRange,null)),e.Intervals&&n.createElement(g,{key:"intervals"},n.createElement(e.Intervals,{id:h?void 0:k.Intervals,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:r,isFake:h})),e.Bars&&n.createElement(g,{key:"styles"},n.createElement(e.Bars,{id:h?void 0:k.ChartStyles,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:r,isFake:h})),!v.hasNewHeaderToolbarStyles&&e.Compare&&n.createElement(g,{key:"compare"},n.createElement(e.Compare,{id:h?void 0:k.Compare,className:x.button,displayMode:r})),e.Indicators&&n.createElement(g,{key:"indicators"},n.createElement(e.Indicators,{id:h?void 0:k.Indicators,className:x.button,studyMarket:o,displayMode:r}),v.hasNewHeaderToolbarStyles&&e.Templates&&n.createElement(e.Templates,{id:h?void 0:k.StudyTemplates,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:r})),!v.hasNewHeaderToolbarStyles&&e.Templates&&n.createElement(g,{key:"templates"},n.createElement(e.Templates,{id:h?void 0:k.StudyTemplates,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:r})),e.Alert&&n.createElement(g,{key:"alert"},n.createElement(e.Alert,{id:h?void 0:k.Alerts,className:x.button,displayMode:r}),v.hasNewHeaderToolbarStyles&&e.Replay&&n.createElement(e.Replay,{id:h?void 0:k.Replay,className:x.button,displayMode:r})),e.AlertReferral&&n.createElement(g,{key:"alert-referral"},n.createElement(e.AlertReferral,{className:x.button,displayMode:r})),!v.hasNewHeaderToolbarStyles&&e.Replay&&n.createElement(g,{key:"replay"},n.createElement(e.Replay,{id:h?void 0:k.Replay,className:x.button,displayMode:r})),!v.hasNewHeaderToolbarStyles&&e.UndoRedo&&n.createElement(g,{key:"undo-redo"},n.createElement(e.UndoRedo,{id:h?void 0:k.UndoRedo})),e.ScalePercentage&&n.createElement(g,{key:"percentage"},n.createElement(e.ScalePercentage,null)),e.ScaleLogarithm&&n.createElement(g,{key:"logarithm"},n.createElement(e.ScaleLogarithm,null)),...w]),function(e){const t=e.findIndex(e=>n.isValidElement(e)&&!!e.key&&-1!==e.key.toString().indexOf("view-only-badge"));return[t].filter(e=>e>=0).forEach(t=>{e=n.Children.map(e,(e,r)=>{if(n.isValidElement(e)){switch([t-1,t,t+1].indexOf(r)){case 0:const t={noRightDecoration:!0};e=n.cloneElement(e,t);break;case 1:const r={noLeftDecoration:!0,noRightDecoration:!0};e=n.cloneElement(e,r);break;case 2:const i={noLeftDecoration:!0};e=n.cloneElement(e,i)}}return e})}),e +}(n.Children.toArray([a&&n.createElement(g,{key:"view-only-badge",removeSeparator:v.hasNewHeaderToolbarStyles},n.createElement(T,null)),n.createElement(g,{key:"gap",className:s(x.fill,h&&x.collapse),removeSeparator:v.hasNewHeaderToolbarStyles}),v.hasNewHeaderToolbarStyles&&!a&&e.UndoRedo&&n.createElement(g,{key:"undo-redo",removeSeparator:!0},n.createElement(e.UndoRedo,{id:h?void 0:k.UndoRedo})),(!a||v.hasNewHeaderToolbarStyles)&&e.Layout&&n.createElement(g,{key:"layout",removeSeparator:v.hasNewHeaderToolbarStyles&&a},!a&&n.createElement(e.Layout,{id:h?void 0:k.Layouts}),v.hasNewHeaderToolbarStyles&&e.SaveLoad&&n.createElement(e.SaveLoad,{id:h?void 0:k.SaveLoad,chartSaver:i,isReadOnly:a,displayMode:r,isFake:h,stateSyncEmitter:l})),!v.hasNewHeaderToolbarStyles&&e.SaveLoad&&n.createElement(g,{key:"save-load-right"},n.createElement(e.SaveLoad,{id:h?void 0:k.SaveLoad,chartSaver:i,isReadOnly:a,displayMode:r,isFake:h,stateSyncEmitter:l})),e.SaveLoadReferral&&n.createElement(g,{key:"save-load-referral"},n.createElement(e.SaveLoadReferral,{isReadOnly:a,displayMode:r})),t.showLaunchInPopupButton&&e.OpenPopup&&n.createElement(g,{key:"popup"},n.createElement(e.OpenPopup,null)),(!a||v.hasNewHeaderToolbarStyles)&&e.Properties&&n.createElement(g,{key:"properties",removeSeparator:v.hasNewHeaderToolbarStyles&&a},!a&&n.createElement(e.Properties,{id:h?void 0:k.Properties,className:x.iconButton}),v.hasNewHeaderToolbarStyles&&n.createElement(n.Fragment,null,!a&&e.Fullscreen&&n.createElement(e.Fullscreen,{id:h?void 0:k.Fullscreen}),e.Screenshot&&n.createElement(e.Screenshot,{id:h?void 0:k.Screenshot,className:x.iconButton}))),!v.hasNewHeaderToolbarStyles&&!a&&e.Fullscreen&&n.createElement(g,{key:"fullscreen",onClick:this._trackFullscreenButtonClick},n.createElement(e.Fullscreen,{id:h?void 0:k.Fullscreen})),!v.hasNewHeaderToolbarStyles&&e.Screenshot&&n.createElement(g,{key:"screenshot"},n.createElement(e.Screenshot,{id:h?void 0:k.Screenshot,className:x.iconButton})),!a&&e.Publish&&n.createElement(g,{key:"publish",className:x.mobilePublish,removeSeparator:v.hasNewHeaderToolbarStyles},n.createElement(e.Publish,{id:h?void 0:k.PublishMobile})),..._]))))))),e.Publish&&!a&&!h&&n.createElement(e.Publish,{id:k.PublishDesktop,className:x.desktopPublish}))}_onLoginStateChange(){0}_trackFullscreenButtonClick(){0}}V.contextType=P;var W=r(52714),D=r.n(W),F=r(9127);class L extends F.CommonJsonStoreService{constructor(e,t,r=[]){super(e,t,"FAVORITE_CHART_STYLES_CHANGED","StyleWidget.quicks",r)}}var A=r(9315),H=r(96397);class B extends F.AbstractJsonStoreService{constructor(e,t,r){super(e,t,"FAVORITE_INTERVALS_CHANGED","IntervalWidget.quicks",r)}_serialize(e){return(0,H.uniq)(e.map(A.normalizeIntervalString))}_deserialize(e){return(0,H.uniq)((0,A.convertResolutionsFromSettings)(e).filter(A.isResolutionMultiplierValid).map(A.normalizeIntervalString))}}var z=r(82992),j=r(2872),q=r.n(j),U=r(56840),K=r(21097);class Q extends F.AbstractJsonStoreService{constructor(e,t,r=[]){super(e,t,"CUSTOM_INTERVALS_CHANGED","IntervalWidget.intervals",r)}set(e,t){e.length, +this.get().length,super.set(e,t)}_serialize(e){return(0,H.uniq)(e.map(A.normalizeIntervalString))}_deserialize(e){return(0,H.uniq)((0,A.convertResolutionsFromSettings)(e).filter(A.isResolutionMultiplierValid).map(A.normalizeIntervalString))}}const J=new Q(K.TVXWindowEvents,U);var X=r(53374);class G{constructor(e){this._customIntervalsService=J,this._supportedIntervalsMayChange=new(q()),this._fireSupportedIntervalsMayChange=()=>{this._supportedIntervalsMayChange.fire()},this._chartApiInstance=e,z.linking.supportedResolutions.subscribe(this._fireSupportedIntervalsMayChange),z.linking.range.subscribe(this._fireSupportedIntervalsMayChange),z.linking.seconds.subscribe(this._fireSupportedIntervalsMayChange),z.linking.ticks.subscribe(this._fireSupportedIntervalsMayChange),z.linking.intraday.subscribe(this._fireSupportedIntervalsMayChange)}destroy(){z.linking.supportedResolutions.unsubscribe(this._fireSupportedIntervalsMayChange),z.linking.range.unsubscribe(this._fireSupportedIntervalsMayChange),z.linking.seconds.unsubscribe(this._fireSupportedIntervalsMayChange),z.linking.ticks.unsubscribe(this._fireSupportedIntervalsMayChange),z.linking.intraday.unsubscribe(this._fireSupportedIntervalsMayChange)}getDefaultIntervals(){return null===this._chartApiInstance?[]:this._chartApiInstance.defaultResolutions().map(A.normalizeIntervalString)}getCustomIntervals(){return this._customIntervalsService.get()}add(e,t,r){if(!this.isValidInterval(e,t))return null;const n=(0,A.normalizeIntervalString)(`${e}${t}`),i=this.getCustomIntervals();return this._isIntervalDefault(n)||i.includes(n)?null:(this._customIntervalsService.set((0,A.sortResolutions)([...i,n])),n)}remove(e){this._customIntervalsService.set(this.getCustomIntervals().filter(t=>t!==e))}isValidInterval(e,t){return(0,A.isResolutionMultiplierValid)(`${e}${t}`)}isSupportedInterval(e){return(0,A.isAvailable)(e)}supportedIntervalsMayChange(){return this._supportedIntervalsMayChange}getOnChange(){return this._customIntervalsService.getOnChange()}getPossibleIntervals(){return X.INTERVALS}getResolutionUtils(){return{getMaxResolutionValue:A.getMaxResolutionValue,getTranslatedResolutionModel:A.getTranslatedResolutionModel,mergeResolutions:A.mergeResolutions,sortResolutions:A.sortResolutions}}_isIntervalDefault(e){return this.getDefaultIntervals().includes(e)}}var $=r(18387),Y=r(88145),Z=r(14905);const ee={};let te=null;class re{constructor(e=U){this._favorites=[],this._favoritesChanged=new(q()),this._settings=e,K.TVXWindowEvents.on("StudyFavoritesChanged",e=>{const t=JSON.parse(e);this._loadFromState(t.favorites||[])}),this._settings.onSync.subscribe(this,this._loadFavs),this._loadFavs()}isFav(e){const t=this.favId(e);return-1!==this._findFavIndex(t)}toggleFavorite(e){this.isFav(e)?this.removeFavorite(e):this.addFavorite(e)}addFavorite(e){const t=this.favId(e);this._favorites.push(ie(t)),this._favoritesChanged.fire(),this._saveFavs()}removeFavorite(e){const t=this.favId(e),r=this._findFavIndex(t);-1!==r&&(this._favorites.splice(r,1),this._favoritesChanged.fire()),this._saveFavs()}favId(e){ +return(0,Z.isPineIdString)(e)?e:(0,Z.extractPineId)(e)||(0,Y.extractStudyId)(e)}favorites(){return this._favorites}favoritePineIds(){return this._favorites.filter(e=>"pine"===e.type).map(e=>e.pineId)}favoritesChanged(){return this._favoritesChanged}static getInstance(){return null===te&&(te=new re),te}static create(e){return new re(e)}_loadFavs(){const e=this._settings.getJSON("studyMarket.favorites",[]);this._loadFromState(e)}_saveFavs(){const e=this._stateToSave();this._settings.setJSON("studyMarket.favorites",e,{forceFlush:!0}),K.TVXWindowEvents.emit("StudyFavoritesChanged",JSON.stringify({favorites:e}))}_stateToSave(){return this._favorites.map(ne)}_loadFromState(e){this._favorites=e.map(e=>ie(function(e){return e in ee?ee[e]:e}(e))),this._favoritesChanged.fire()}_findFavIndex(e){return this._favorites.findIndex(t=>e===ne(t))}}function ne(e){return"java"===e.type?e.studyId:e.pineId}function ie(e){return(0,Z.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}var oe=r(29823);const se={[oe.ResolutionKind.Ticks]:!1,[oe.ResolutionKind.Seconds]:!1,[oe.ResolutionKind.Minutes]:!1,[oe.SpecialResolutionKind.Hours]:!1,[oe.ResolutionKind.Days]:!1,[oe.ResolutionKind.Range]:!1};class ae extends F.CommonJsonStoreService{constructor(e,t,r=se){super(e,t,"INTERVALS_MENU_VIEW_STATE_CHANGED","IntervalWidget.menu.viewState",r)}isAllowed(e){return Object.keys(se).includes(e)}}var le=r(22668);const ue={Area:3,Bars:0,Candles:1,"Heiken Ashi":8,"Hollow Candles":9,Line:2,Renko:4,Kagi:5,"Point & figure":6,"Line Break":7,Baseline:10},ce=["1","30","60"];function de(e=[]){let t=e.map(e=>ue[e])||[1,4,5,6];return c.enabled("widget")&&(t=[0,1,3]),t}function he(e=[]){return(0,A.mergeResolutions)(e,c.enabled("star_some_intervals_by_default")?ce:[])}new B(K.TVXWindowEvents,U,he()),new L(K.TVXWindowEvents,U,de()),new le.FavoriteStudyTemplateService(K.TVXWindowEvents,U);const pe={tools:h.any.isRequired,isFundamental:h.any,chartApiInstance:h.any,availableTimeFrames:h.any,chartWidgetCollection:h.any,windowMessageService:h.any,favoriteChartStylesService:h.any,favoriteIntervalsService:h.any,intervalService:h.any,favoriteStudyTemplatesService:h.any,studyTemplates:h.any,chartChangesWatcher:h.any,saveChartService:h.any,sharingChartService:h.any,loadChartService:h.any,chartWidget:h.any,favoriteScriptsModel:h.any,intervalsMenuViewStateService:h.any,templatesMenuViewStateService:h.any,financialsDialogController:h.any,snapshotUrl:h.any};var fe=r(62046),me=r(85291);const ve=[];class ye extends n.PureComponent{constructor(e){super(e),this._saveLoadSyncEmitter=new(l()),this._handleFullWidthChange=e=>{this._fullWidth=e,this.setState({measureValid:!1})},this._handleFavoritesWidthChange=e=>{this._favoritesWidth=e,this.setState({measureValid:!1})},this._handleCollapseWidthChange=e=>{this._collapseWidth=e,this.setState({measureValid:!1})},this._handleMeasure=e=>{this.setState({availableWidth:e,measureValid:!1})} +;const{tools:t,windowMessageService:r,chartWidgetCollection:n,chartApiInstance:i,availableTimeFrames:s,isFundamental:a,favoriteIntervalsService:d,favoriteChartStylesService:h,favoriteStudyTemplatesService:p,studyTemplates:f,saveChartService:m,sharingChartService:v,loadChartService:y,financialsDialogController:g,snapshotUrl:b}=e;this._showScrollbarWhen=(0,o.ensureDefined)(e.allowedModes).slice(-1),this._panelWidthChangeHandlers={full:this._handleFullWidthChange,medium:this._handleFavoritesWidthChange,small:this._handleCollapseWidthChange};const{chartChangesWatcher:S}=e;this._chartChangesWatcher=S;const w=de(this.props.defaultFavoriteStyles);this._favoriteChartStylesService=h||new L(K.TVXWindowEvents,U,w);const _=he(this.props.defaultFavoriteIntervals);this._favoriteIntervalsService=d||new B(K.TVXWindowEvents,U,_),this._intervalsMenuViewStateService=new ae(K.TVXWindowEvents,U),this._intervalService=new G(i),this._registry={tools:t,isFundamental:a,chartWidgetCollection:n,windowMessageService:r,chartApiInstance:i,availableTimeFrames:s,favoriteStudyTemplatesService:p,studyTemplates:f,saveChartService:m,sharingChartService:v,loadChartService:y,intervalsMenuViewStateService:this._intervalsMenuViewStateService,favoriteChartStylesService:this._favoriteChartStylesService,favoriteIntervalsService:this._favoriteIntervalsService,intervalService:this._intervalService,chartChangesWatcher:this._chartChangesWatcher,chartWidget:n.activeChartWidget.value(),favoriteScriptsModel:re.getInstance(),templatesMenuViewStateService:this._templatesMenuVuewStateService,financialsDialogController:g,snapshotUrl:b},this.state={isVisible:!0,availableWidth:0,displayMode:"full",measureValid:!1,leftCustomElements:[],rightCustomElements:[]},this._readOnly=n.readOnly(),this._features={allowFavoriting:c.enabled("items_favoriting"),showIdeasButton:Boolean(this.props.ideas),showLaunchInPopupButton:Boolean(this.props.popupButton),allowSymbolSearchSpread:c.enabled("header_symbol_search")&&c.enabled("show_spread_operators"),allowToolbarHiding:c.enabled("collapsible_header")},this._setDisplayMode=(0,u.default)(this._setDisplayMode,100),this._negotiateResizer()}componentDidUpdate(e,t){const{isVisible:r,measureValid:n}=this.state;r!==t.isVisible&&(d.emit("toggle_header",r),this._negotiateResizer()),n||this._setDisplayMode()}render(){const{resizerBridge:e,allowedModes:t,...r}=this.props,{displayMode:i,isVisible:a,leftCustomElements:l,rightCustomElements:u}=this.state,c={features:this._features,readOnly:this._readOnly,isFake:!1,saveLoadSyncEmitter:this._saveLoadSyncEmitter,leftCustomElements:l,rightCustomElements:u,...r},d={...c,isFake:!0,showScrollbarWhen:ve},h=(0,o.ensureDefined)(t),p=this.props.tools.PublishButtonManager||n.Fragment;return n.createElement(I.RegistryProvider,{value:this._registry,validation:pe},n.createElement(p,null,n.createElement("div",{className:s(me.toolbar,{[me.isHidden]:!a}),onClick:this.props.onClick},n.createElement("div",{className:me.overflowWrap},n.createElement(V,{key:"live",showScrollbarWhen:this._showScrollbarWhen,displayMode:i, +onAvailableSpaceChange:this._handleMeasure,...c}),h.map(e=>n.createElement(V,{key:e,displayMode:e,onWidthChange:this._panelWidthChangeHandlers[e],...d}))))))}addButton(e,t){if(!t.useTradingViewStyle)return this._addCustomHTMLButton(e,t.align);this._addCustomTradingViewStyledButton(e,t)}addDropdown(e,t){const{leftCustomElements:r,rightCustomElements:n}=this.state,i={type:"Dropdown",id:e,params:t};"left"===t.align?this.setState({leftCustomElements:[...r,i]}):this.setState({rightCustomElements:[...n,i]})}updateDropdown(e,t){const r=t=>"Dropdown"===t.type&&t.id===e,n=this.state.leftCustomElements.find(r)||this.state.rightCustomElements.find(r);void 0!==n&&(n.params={...n.params,...t},this.setState({leftCustomElements:this.state.leftCustomElements.slice(),rightCustomElements:this.state.rightCustomElements.slice()}))}removeDropdown(e){const t=t=>"Dropdown"===t.type&&t.id!==e,r=this.state.leftCustomElements.filter(t),n=this.state.rightCustomElements.filter(t);this.setState({leftCustomElements:r,rightCustomElements:n})}_negotiateResizer(){this.props.resizerBridge.negotiateHeight(this.state.isVisible?$.HEADER_TOOLBAR_HEIGHT_EXPANDED:$.HEADER_TOOLBAR_HEIGHT_COLLAPSED)}_setDisplayMode(){const{availableWidth:e}=this.state,{allowedModes:t}=this.props,r={full:this._fullWidth,medium:this._favoritesWidth,small:this._collapseWidth},n=(0,o.ensureDefined)(t);let i=n.map(e=>r[e]).findIndex(t=>e>=t);-1===i&&(i=n.length-1);const s=n[i];this.setState({measureValid:!0,displayMode:s})}_addCustomHTMLButton(e,t="left"){const r=new(D())(0),n=(0,fe.parseHtmlElement)(`
`),i={type:"Button",id:e,params:{key:Number(new Date),element:n,width:r}};return this._addCustomElementToState(t,i),n}_addCustomTradingViewStyledButton(e,t){const r={type:"TradingViewStyledButton",id:e,params:{key:Number(new Date),text:t.text,title:t.title,onClick:t.onClick}};this._addCustomElementToState(t.align,r)}_addCustomElementToState(e,t){const{leftCustomElements:r,rightCustomElements:n}=this.state;"left"===e?this.setState({leftCustomElements:[...r,t]}):this.setState({rightCustomElements:[...n,t]})}}ye.defaultProps={allowedModes:["full","medium"]};class ge{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,i.render(n.createElement(ye,{...t,ref:this._handleRef}),this._container)}destroy(){i.unmountComponentAtNode(this._container)}getComponent(){return(0,o.ensureNotNull)(this._component)}}},37669:(e,t,r)=>{"use strict";r.d(t,{hasNewHeaderToolbarStyles:()=>n});r(67337);const n=!1},55402:(e,t,r)=>{"use strict";r.d(t,{validateRegistry:()=>a,RegistryProvider:()=>l,registryContextType:()=>u});var n=r(59496),i=r(19036),o=r.n(i);const s=n.createContext({});function a(e,t){o().checkPropTypes(t,e,"context","RegistryContext")}function l(e){const{validation:t,value:r}=e;return a(r,t),n.createElement(s.Provider,{value:r},e.children)}function u(){return s}},9837:function(e,t,r){var n,i,o;e.exports=(n=r(59496),i=r(87995),o=r(59255),function(e){function t(n){if(r[n])return r[n].exports +;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="dist/",t(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1));t.default=n.default,e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:r.props.includeMargin;if(r.props.shouldMeasure){r._node.parentNode||r._setDOMNode();var t=r.getDimensions(r._node,e),n="function"==typeof r.props.children;r._propsToMeasure.some((function(e){if(t[e]!==r._lastDimensions[e])return r.props.onMeasure(t),n&&void 0!==r&&r.setState({dimensions:t}),r._lastDimensions=t,!0}))}},r.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},r._node=null,r._propsToMeasure=r._getPropsToMeasure(e),r._lastDimensions={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new u.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),r=e.blacklist;this.props.whitelist===t&&this.props.blacklist===r||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:r}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=l.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,c.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,r=e.blacklist;return t.filter((function(e){return r.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children +;return o.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(o.Component);d.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},d.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=d,e.exports=t.default},function(e,t){e.exports=n},function(e,t,r){(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r(5)((function(e){return"object"===(void 0===e?"undefined":n(e))&&null!==e&&e.$$typeof===i}),!0)}else e.exports=r(12)()}).call(t,r(4))},function(e,t){"use strict";function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(u===setTimeout)return setTimeout(e,0);if((u===r||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(){f&&h&&(f=!1,h.length?p=h.concat(p):m=-1,p.length&&s())}function s(){if(!f){var e=i(o);f=!0;for(var t=p.length;t;){for(h=p,p=[];++m1)for(var r=1;r1?t-1:0),n=1;n2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{},r=e.getBoundingClientRect(),i=void 0,o=void 0,s=void 0;return t.margin&&(s=(0,n.default)(getComputedStyle(e))),t.margin?(i=s.left+r.width+s.right,o=s.top+r.height+s.bottom):(i=r.width,o=r.height),{width:i,height:o,top:r.top,right:r.right,bottom:r.bottom,left:r.left}};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:r((e=e||{}).marginTop),right:r(e.marginRight),bottom:r(e.marginBottom),left:r(e.marginLeft)}};var r=function(e){return parseInt(e)||0};e.exports=t.default}]))},42142:(e,t,r)=>{"use strict";r.d(t,{FragmentMap:()=>i});var n=r(59496);function i(e){if(e.map){return n.Children.toArray(e.children).map(e.map)}return e.children}},70412:(e,t,r)=>{"use strict";r.d(t,{hoverMouseEventFilter:()=>o,useAccurateHover:()=>s,useHover:()=>i});var n=r(59496);function i(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){o(e)&&t(!0)},onMouseOut:function(e){o(e)&&t(!1)}}]}function o(e){return!e.currentTarget.contains(e.relatedTarget)}function s(e){const[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);r(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},39440:(e,t,r)=>{"use strict";r.d(t,{HorizontalScroll:()=>b});var n=r(59496),i=r(97754),o=r(9837),s=r(88537),a=r(9745),l=r(59199),u=r(68587),c=r(62820),d=r(33086),h=r(41814);const p={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function f(e){return n.createElement("div",{className:i(h.fadeLeft,e.className,{[h.isVisible]:e.isVisible})})}function m(e){return n.createElement("div",{className:i(h.fadeRight,e.className,{[h.isVisible]:e.isVisible})})} +function v(e){return n.createElement(g,{...e,className:h.scrollLeft})}function y(e){return n.createElement(g,{...e,className:h.scrollRight})}function g(e){return n.createElement("div",{className:i(e.className,{[h.isVisible]:e.isVisible}),onClick:e.onClick},n.createElement("div",{className:h.iconWrap},n.createElement(a.Icon,{icon:d,className:h.icon})))}const b=function(e=v,t=y,r=f,a=m){var d;return(d=class extends n.PureComponent{constructor(e){super(e),this._scroll=n.createRef(),this._wrapMeasureRef=n.createRef(),this._contentMeasureRef=n.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:r}=this.props;t&&r?this.setState({widthContent:e.width+2*r}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,r=this.isAtLeft(),n=this.isAtRight();r||e?r&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),n||t?n&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,c.isRtl)()?(0,c.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,s.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,s.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=u.dur){const r=this._scroll.current;r&&((0,c.isRtl)()&&(e=(0,c.getLTRScrollLeftOffset)(r,e)),t<=0?r.scrollLeft=Math.round(e):(0,l.doAnimate)({onStep(e,t){r.scrollLeft=Math.round(t)},from:r.scrollLeft,to:Math.round(e),easing:u.easingFunc.easeInOutCubic,duration:t}))}render(){ +const{children:s,isVisibleScrollbar:l,isVisibleFade:u,isVisibleButtons:c,shouldMeasure:d,shouldDecreaseWidthContent:p,buttonsWidthIfDecreasedWidthContent:f,onMouseOver:m,onMouseOut:v,scrollWrapClassName:y,fadeClassName:g}=this.props,{isVisibleRightButton:b,isVisibleLeftButton:S}=this.state,w=p&&f;return n.createElement(o,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:d,ref:this._wrapMeasureRef},n.createElement("div",{className:h.wrapOverflow,onMouseOver:m,onMouseOut:v},n.createElement("div",{className:i(h.wrap,w?h.wrapWithArrowsOuting:"")},n.createElement("div",{className:i(h.scrollWrap,y,{[h.noScrollBar]:!l}),onScroll:this._handleScroll,ref:this._scroll},n.createElement(o,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:d,ref:this._contentMeasureRef},s)),u&&n.createElement(r,{isVisible:S,className:g}),u&&n.createElement(a,{isVisible:b,className:g}),c&&n.createElement(e,{onClick:this._handleScrollLeft,isVisible:S}),c&&n.createElement(t,{onClick:this._handleScrollRight,isVisible:b}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=p,d}(v,y,f,m)},33086:e=>{e.exports=''},59266:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/header-toolbar.cfb40d569cc84fb5a999.js b/charting_library/bundles/header-toolbar.cfb40d569cc84fb5a999.js deleted file mode 100644 index d298bac8..00000000 --- a/charting_library/bundles/header-toolbar.cfb40d569cc84fb5a999.js +++ /dev/null @@ -1,11 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3005],{77511:e=>{e.exports={group:"group-T57LDNqT",noLeftDecoration:"noLeftDecoration-T57LDNqT",noRightDecoration:"noRightDecoration-T57LDNqT",noMinimalWidth:"noMinimalWidth-T57LDNqT",newStyles:"newStyles-T57LDNqT",separator:"separator-T57LDNqT",separatorWrap:"separatorWrap-T57LDNqT"}},71747:e=>{e.exports={"css-value-header-toolbar-height":"38px",wrap:"wrap-7mUBPdQo"}},85291:e=>{e.exports={"css-value-header-toolbar-height":"38px",toolbar:"toolbar-ymEQuMuZ",isHidden:"isHidden-ymEQuMuZ",overflowWrap:"overflowWrap-ymEQuMuZ",customButton:"customButton-ymEQuMuZ",hovered:"hovered-ymEQuMuZ"}},36971:e=>{e.exports={wrap:"wrap-zQWNyqoF",icon:"icon-zQWNyqoF"}},93067:e=>{e.exports={"css-value-header-toolbar-height":"38px",inner:"inner-Kbdz4qEM",fake:"fake-Kbdz4qEM",fill:"fill-Kbdz4qEM",collapse:"collapse-Kbdz4qEM",button:"button-Kbdz4qEM",iconButton:"iconButton-Kbdz4qEM",hidden:"hidden-Kbdz4qEM",content:"content-Kbdz4qEM",desktopPublish:"desktopPublish-Kbdz4qEM",mobilePublish:"mobilePublish-Kbdz4qEM"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},9745:(e,t,s)=>{"use strict";s.d(t,{Icon:()=>r});var a=s(59496);const r=a.forwardRef((e,t)=>{const{icon:s="",...r}=e;return a.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:s}})})},53374:(e,t,s)=>{"use strict";s.d(t,{INTERVALS:()=>r});var a=s(28353);const r=[{name:"",label:(0,a.t)("minutes",{context:"interval"})},{name:"H",label:(0,a.t)("hours",{context:"interval"})},{name:"D",label:(0,a.t)("days",{context:"interval"})},{name:"W",label:(0,a.t)("weeks",{context:"interval"})},{name:"M",label:(0,a.t)("months",{context:"interval"})}]},53335:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HeaderToolbarRenderer:()=>ge});var a=s(59496),r=s(87995),i=s(88537),n=s(97754),o=s(85459),l=s.n(o),c=s(43370),d=s(67337),h=s(76422),u=s(19036),m=s(9837),p=s(32563),v=s(42142),S=s(37669),f=s(77511);function g(e){const{children:t,className:s,noLeftDecoration:r,noRightDecoration:i,noMinimalWidth:o,onClick:l,removeSeparator:c}=e;return a.createElement(a.Fragment,null,S.hasNewHeaderToolbarStyles&&!c&&a.createElement("div",{className:f.separatorWrap},a.createElement("div",{className:f.separator})),a.createElement("div",{className:n(s,f.group,{[f.noMinimalWidth]:o,[f.noLeftDecoration]:r,[f.noRightDecoration]:i,[f.newStyles]:S.hasNewHeaderToolbarStyles}),onClick:l},t))}var y=s(71747);class b extends a.PureComponent{constructor(){super(...arguments),this._handleMeasure=({width:e})=>{this.props.onWidthChange(e)}}render(){const{children:e,shouldMeasure:t}=this.props;return a.createElement(m,{shouldMeasure:t,onMeasure:this._handleMeasure,whitelist:["width"]},a.createElement("div",{ -className:y.wrap},e))}}var w=s(28353),_=s(9745),E=s(36971),C=s(59266);const M={text:(0,w.t)("View Only Mode")};function R(e){return a.createElement("div",{className:E.wrap},a.createElement(_.Icon,{className:E.icon,icon:C}),M.text)}var k,T=s(39440),I=s(54475);!function(e){e.SymbolSearch="header-toolbar-symbol-search",e.Intervals="header-toolbar-intervals",e.ChartStyles="header-toolbar-chart-styles",e.Compare="header-toolbar-compare",e.Indicators="header-toolbar-indicators",e.StudyTemplates="header-toolbar-study-templates",e.Dropdown="header-toolbar-dropdown",e.Alerts="header-toolbar-alerts",e.Layouts="header-toolbar-layouts",e.SaveLoad="header-toolbar-save-load",e.UndoRedo="header-toolbar-undo-redo",e.Properties="header-toolbar-properties",e.PublishDesktop="header-toolbar-publish-desktop",e.PublishMobile="header-toolbar-publish-mobile",e.Fullscreen="header-toolbar-fullscreen",e.Screenshot="header-toolbar-screenshot",e.Replay="header-toolbar-replay",e.Financials="header-toolbar-financials",e.StartTrial="header-toolbar-start-trial"}(k||(k={}));var N=s(70412),W=s(55402),F=s(93067);const V=(0,W.registryContextType)();class L extends a.PureComponent{constructor(e,t){super(e,t),this._handleMouseOver=e=>{(0,N.hoverMouseEventFilter)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{(0,N.hoverMouseEventFilter)(e)&&this.setState({isHovered:!1})},this._handleInnerResize=e=>{const{onWidthChange:t}=this.props;t&&t(e)},this._handleMeasureAvailableSpace=({width:e})=>{const{onAvailableSpaceChange:t}=this.props;t&&t(e)},this._processCustoms=e=>{const{isFake:t,displayMode:s}=this.props,{tools:r}=this.context;return e.map(e=>a.createElement(g,{key:e.id},(e=>{switch(e.type){case"Button":return a.createElement(r.Custom,{...e.params,isFake:t});case"TradingViewStyledButton":return a.createElement(r.CustomTradingViewStyledButton,{...e.params,className:F.button,displayMode:s});case"Dropdown":return a.createElement(r.Dropdown,{displayMode:s,params:e.params});default:return null}})(e)))},this._fixLastGroup=(e,t,s)=>{if(t===s.length-1&&a.isValidElement(e)&&e.type===g){const t=void 0!==this.context.tools.Publish&&!this.props.readOnly;return a.cloneElement(e,{noRightDecoration:t})}return e},(0,W.validateRegistry)(t,{tools:u.any.isRequired}),this.state={isHovered:!1,isAuthenticated:void 0}}componentDidMount(){0}componentWillUnmount(){0}render(){const{tools:e}=this.context,{features:t,displayMode:s,chartSaver:r,studyMarket:i,readOnly:o,saveLoadSyncEmitter:l,leftCustomElements:c,rightCustomElements:d,showScrollbarWhen:h,isFake:u=!1}=this.props,{isHovered:f,isAuthenticated:y}=this.state,w=this._processCustoms(c),_=this._processCustoms(d),E=h.includes(s);return a.createElement("div",{className:n(F.inner,{[F.fake]:u}),onContextMenu:I.preventDefaultForContextMenu,"data-is-fake-main-panel":u},a.createElement(m,{onMeasure:this._handleMeasureAvailableSpace,whitelist:["width"],shouldMeasure:!u},a.createElement(T.HorizontalScroll,{isVisibleFade:p.mobiletouch&&E,isVisibleButtons:!p.mobiletouch&&E&&f,isVisibleScrollbar:!1,shouldMeasure:E&&!u, -onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},a.createElement("div",{className:F.content},a.createElement(b,{onWidthChange:this._handleInnerResize,shouldMeasure:u},a.createElement(v.FragmentMap,{map:this._fixLastGroup},!o&&a.Children.toArray([e.SymbolSearch&&a.createElement(g,{key:"symbol"},a.createElement(e.SymbolSearch,{id:u?void 0:k.SymbolSearch,isActionsVisible:t.allowSymbolSearchSpread}),S.hasNewHeaderToolbarStyles&&e.Compare&&a.createElement(e.Compare,{id:u?void 0:k.Compare,className:F.button,displayMode:s})),e.DateRange&&a.createElement(g,{key:"range"},a.createElement(e.DateRange,null)),e.Intervals&&a.createElement(g,{key:"intervals"},a.createElement(e.Intervals,{id:u?void 0:k.Intervals,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:s,isFake:u})),e.Bars&&a.createElement(g,{key:"styles"},a.createElement(e.Bars,{id:u?void 0:k.ChartStyles,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:s,isFake:u})),!S.hasNewHeaderToolbarStyles&&e.Compare&&a.createElement(g,{key:"compare"},a.createElement(e.Compare,{id:u?void 0:k.Compare,className:F.button,displayMode:s})),e.Indicators&&a.createElement(g,{key:"indicators"},a.createElement(e.Indicators,{id:u?void 0:k.Indicators,className:F.button,studyMarket:i,displayMode:s}),S.hasNewHeaderToolbarStyles&&e.Templates&&a.createElement(e.Templates,{id:u?void 0:k.StudyTemplates,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:s})),!S.hasNewHeaderToolbarStyles&&e.Templates&&a.createElement(g,{key:"templates"},a.createElement(e.Templates,{id:u?void 0:k.StudyTemplates,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:s})),e.Alert&&a.createElement(g,{key:"alert"},a.createElement(e.Alert,{id:u?void 0:k.Alerts,className:F.button,displayMode:s}),S.hasNewHeaderToolbarStyles&&e.Replay&&a.createElement(e.Replay,{id:u?void 0:k.Replay,className:F.button,displayMode:s})),e.AlertReferral&&a.createElement(g,{key:"alert-referral"},a.createElement(e.AlertReferral,{className:F.button,displayMode:s})),!S.hasNewHeaderToolbarStyles&&e.Replay&&a.createElement(g,{key:"replay"},a.createElement(e.Replay,{id:u?void 0:k.Replay,className:F.button,displayMode:s})),!S.hasNewHeaderToolbarStyles&&e.UndoRedo&&a.createElement(g,{key:"undo-redo"},a.createElement(e.UndoRedo,{id:u?void 0:k.UndoRedo})),e.ScalePercentage&&a.createElement(g,{key:"percentage"},a.createElement(e.ScalePercentage,null)),e.ScaleLogarithm&&a.createElement(g,{key:"logarithm"},a.createElement(e.ScaleLogarithm,null)),...w]),function(e){const t=e.findIndex(e=>a.isValidElement(e)&&!!e.key&&-1!==e.key.toString().indexOf("view-only-badge"));return[t].filter(e=>e>=0).forEach(t=>{e=a.Children.map(e,(e,s)=>{if(a.isValidElement(e)){switch([t-1,t,t+1].indexOf(s)){case 0:const t={noRightDecoration:!0};e=a.cloneElement(e,t);break;case 1:const s={noLeftDecoration:!0,noRightDecoration:!0};e=a.cloneElement(e,s);break;case 2:const r={noLeftDecoration:!0};e=a.cloneElement(e,r)}}return e})}),e -}(a.Children.toArray([o&&a.createElement(g,{key:"view-only-badge",removeSeparator:S.hasNewHeaderToolbarStyles},a.createElement(R,null)),a.createElement(g,{key:"gap",className:n(F.fill,u&&F.collapse),removeSeparator:S.hasNewHeaderToolbarStyles}),S.hasNewHeaderToolbarStyles&&!o&&e.UndoRedo&&a.createElement(g,{key:"undo-redo",removeSeparator:!0},a.createElement(e.UndoRedo,{id:u?void 0:k.UndoRedo})),(!o||S.hasNewHeaderToolbarStyles)&&e.Layout&&a.createElement(g,{key:"layout",removeSeparator:S.hasNewHeaderToolbarStyles&&o},!o&&a.createElement(e.Layout,{id:u?void 0:k.Layouts}),S.hasNewHeaderToolbarStyles&&e.SaveLoad&&a.createElement(e.SaveLoad,{id:u?void 0:k.SaveLoad,chartSaver:r,isReadOnly:o,displayMode:s,isFake:u,stateSyncEmitter:l})),!S.hasNewHeaderToolbarStyles&&e.SaveLoad&&a.createElement(g,{key:"save-load-right"},a.createElement(e.SaveLoad,{id:u?void 0:k.SaveLoad,chartSaver:r,isReadOnly:o,displayMode:s,isFake:u,stateSyncEmitter:l})),e.SaveLoadReferral&&a.createElement(g,{key:"save-load-referral"},a.createElement(e.SaveLoadReferral,{isReadOnly:o,displayMode:s})),t.showLaunchInPopupButton&&e.OpenPopup&&a.createElement(g,{key:"popup"},a.createElement(e.OpenPopup,null)),(!o||S.hasNewHeaderToolbarStyles)&&e.Properties&&a.createElement(g,{key:"properties",removeSeparator:S.hasNewHeaderToolbarStyles&&o},!o&&a.createElement(e.Properties,{id:u?void 0:k.Properties,className:F.iconButton}),S.hasNewHeaderToolbarStyles&&a.createElement(a.Fragment,null,!o&&e.Fullscreen&&a.createElement(e.Fullscreen,{id:u?void 0:k.Fullscreen}),e.Screenshot&&a.createElement(e.Screenshot,{id:u?void 0:k.Screenshot,className:F.iconButton}))),!S.hasNewHeaderToolbarStyles&&!o&&e.Fullscreen&&a.createElement(g,{key:"fullscreen",onClick:this._trackFullscreenButtonClick},a.createElement(e.Fullscreen,{id:u?void 0:k.Fullscreen})),!S.hasNewHeaderToolbarStyles&&e.Screenshot&&a.createElement(g,{key:"screenshot"},a.createElement(e.Screenshot,{id:u?void 0:k.Screenshot,className:F.iconButton})),!o&&e.Publish&&a.createElement(g,{key:"publish",className:F.mobilePublish,removeSeparator:S.hasNewHeaderToolbarStyles},a.createElement(e.Publish,{id:u?void 0:k.PublishMobile})),..._]))))))),e.Publish&&!o&&!u&&a.createElement(e.Publish,{id:k.PublishDesktop,className:F.desktopPublish}))}_onLoginStateChange(){0}_trackFullscreenButtonClick(){0}}L.contextType=V;var D=s(52714),H=s.n(D),A=s(9127);class B extends A.CommonJsonStoreService{constructor(e,t,s=[]){super(e,t,"FAVORITE_CHART_STYLES_CHANGED","StyleWidget.quicks",s)}}var P=s(9315),x=s(96397);class z extends A.AbstractJsonStoreService{constructor(e,t,s){super(e,t,"FAVORITE_INTERVALS_CHANGED","IntervalWidget.quicks",s)}_serialize(e){return(0,x.uniq)(e.map(P.normalizeIntervalString))}_deserialize(e){return(0,x.uniq)((0,P.convertResolutionsFromSettings)(e).filter(P.isResolutionMultiplierValid).map(P.normalizeIntervalString))}}var O=s(82992),q=s(2872),K=s.n(q),U=s(56840),Q=s(21097);class X extends A.AbstractJsonStoreService{constructor(e,t,s=[]){super(e,t,"CUSTOM_INTERVALS_CHANGED","IntervalWidget.intervals",s)}set(e,t){e.length, -this.get().length,super.set(e,t)}_serialize(e){return(0,x.uniq)(e.map(P.normalizeIntervalString))}_deserialize(e){return(0,x.uniq)((0,P.convertResolutionsFromSettings)(e).filter(P.isResolutionMultiplierValid).map(P.normalizeIntervalString))}}const G=new X(Q.TVXWindowEvents,U);var J=s(53374);class Z{constructor(e){this._customIntervalsService=G,this._supportedIntervalsMayChange=new(K()),this._fireSupportedIntervalsMayChange=()=>{this._supportedIntervalsMayChange.fire()},this._chartApiInstance=e,O.linking.supportedResolutions.subscribe(this._fireSupportedIntervalsMayChange),O.linking.range.subscribe(this._fireSupportedIntervalsMayChange),O.linking.seconds.subscribe(this._fireSupportedIntervalsMayChange),O.linking.ticks.subscribe(this._fireSupportedIntervalsMayChange),O.linking.intraday.subscribe(this._fireSupportedIntervalsMayChange)}destroy(){O.linking.supportedResolutions.unsubscribe(this._fireSupportedIntervalsMayChange),O.linking.range.unsubscribe(this._fireSupportedIntervalsMayChange),O.linking.seconds.unsubscribe(this._fireSupportedIntervalsMayChange),O.linking.ticks.unsubscribe(this._fireSupportedIntervalsMayChange),O.linking.intraday.unsubscribe(this._fireSupportedIntervalsMayChange)}getDefaultIntervals(){return null===this._chartApiInstance?[]:this._chartApiInstance.defaultResolutions().map(P.normalizeIntervalString)}getCustomIntervals(){return this._customIntervalsService.get()}add(e,t,s){if(!this.isValidInterval(e,t))return null;const a=(0,P.normalizeIntervalString)(`${e}${t}`),r=this.getCustomIntervals();return this._isIntervalDefault(a)||r.includes(a)?null:(this._customIntervalsService.set((0,P.sortResolutions)([...r,a])),a)}remove(e){this._customIntervalsService.set(this.getCustomIntervals().filter(t=>t!==e))}isValidInterval(e,t){return(0,P.isResolutionMultiplierValid)(`${e}${t}`)}isSupportedInterval(e){return(0,P.isAvailable)(e)}supportedIntervalsMayChange(){return this._supportedIntervalsMayChange}getOnChange(){return this._customIntervalsService.getOnChange()}getPossibleIntervals(){return J.INTERVALS}getResolutionUtils(){return{getMaxResolutionValue:P.getMaxResolutionValue,getTranslatedResolutionModel:P.getTranslatedResolutionModel,mergeResolutions:P.mergeResolutions,sortResolutions:P.sortResolutions}}_isIntervalDefault(e){return this.getDefaultIntervals().includes(e)}}var $=s(18387),j=s(88145),Y=s(14905);const ee={};let te=null;class se{constructor(e=U){this._favorites=[],this._favoritesChanged=new(K()),this._settings=e,Q.TVXWindowEvents.on("StudyFavoritesChanged",e=>{const t=JSON.parse(e);this._loadFromState(t.favorites||[])}),this._settings.onSync.subscribe(this,this._loadFavs),this._loadFavs()}isFav(e){const t=this.favId(e);return-1!==this._findFavIndex(t)}toggleFavorite(e){this.isFav(e)?this.removeFavorite(e):this.addFavorite(e)}addFavorite(e){const t=this.favId(e);this._favorites.push(re(t)),this._favoritesChanged.fire(),this._saveFavs()}removeFavorite(e){const t=this.favId(e),s=this._findFavIndex(t);-1!==s&&(this._favorites.splice(s,1),this._favoritesChanged.fire()),this._saveFavs()}favId(e){ -return(0,Y.isPineIdString)(e)?e:(0,Y.extractPineId)(e)||(0,j.extractStudyId)(e)}favorites(){return this._favorites}favoritePineIds(){return this._favorites.filter(e=>"pine"===e.type).map(e=>e.pineId)}favoritesChanged(){return this._favoritesChanged}static getInstance(){return null===te&&(te=new se),te}static create(e){return new se(e)}_loadFavs(){const e=this._settings.getJSON("studyMarket.favorites",[]);this._loadFromState(e)}_saveFavs(){const e=this._stateToSave();this._settings.setJSON("studyMarket.favorites",e,{forceFlush:!0}),Q.TVXWindowEvents.emit("StudyFavoritesChanged",JSON.stringify({favorites:e}))}_stateToSave(){return this._favorites.map(ae)}_loadFromState(e){this._favorites=e.map(e=>re(function(e){return e in ee?ee[e]:e}(e))),this._favoritesChanged.fire()}_findFavIndex(e){return this._favorites.findIndex(t=>e===ae(t))}}function ae(e){return"java"===e.type?e.studyId:e.pineId}function re(e){return(0,Y.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}var ie=s(29823);const ne={[ie.ResolutionKind.Ticks]:!1,[ie.ResolutionKind.Seconds]:!1,[ie.ResolutionKind.Minutes]:!1,[ie.SpecialResolutionKind.Hours]:!1,[ie.ResolutionKind.Days]:!1,[ie.ResolutionKind.Range]:!1};class oe extends A.CommonJsonStoreService{constructor(e,t,s=ne){super(e,t,"INTERVALS_MENU_VIEW_STATE_CHANGED","IntervalWidget.menu.viewState",s)}isAllowed(e){return Object.keys(ne).includes(e)}}var le=s(22668);const ce={Area:3,Bars:0,Candles:1,"Heiken Ashi":8,"Hollow Candles":9,Line:2,Renko:4,Kagi:5,"Point & figure":6,"Line Break":7,Baseline:10},de=["1","30","60"];function he(e=[]){let t=e.map(e=>ce[e])||[1,4,5,6];return d.enabled("widget")&&(t=[0,1,3]),t}function ue(e=[]){return(0,P.mergeResolutions)(e,d.enabled("star_some_intervals_by_default")?de:[])}new z(Q.TVXWindowEvents,U,ue()),new B(Q.TVXWindowEvents,U,he()),new le.FavoriteStudyTemplateService(Q.TVXWindowEvents,U);const me={tools:u.any.isRequired,isFundamental:u.any,chartApiInstance:u.any,availableTimeFrames:u.any,chartWidgetCollection:u.any,windowMessageService:u.any,favoriteChartStylesService:u.any,favoriteIntervalsService:u.any,intervalService:u.any,favoriteStudyTemplatesService:u.any,studyTemplates:u.any,chartChangesWatcher:u.any,saveChartService:u.any,sharingChartService:u.any,loadChartService:u.any,chartWidget:u.any,favoriteScriptsModel:u.any,intervalsMenuViewStateService:u.any,templatesMenuViewStateService:u.any,financialsDialogController:u.any,snapshotUrl:u.any};var pe=s(62046),ve=s(85291);const Se=[];class fe extends a.PureComponent{constructor(e){super(e),this._saveLoadSyncEmitter=new(l()),this._handleFullWidthChange=e=>{this._fullWidth=e,this.setState({measureValid:!1})},this._handleFavoritesWidthChange=e=>{this._favoritesWidth=e,this.setState({measureValid:!1})},this._handleCollapseWidthChange=e=>{this._collapseWidth=e,this.setState({measureValid:!1})},this._handleMeasure=e=>{this.setState({availableWidth:e,measureValid:!1})} -;const{tools:t,windowMessageService:s,chartWidgetCollection:a,chartApiInstance:r,availableTimeFrames:n,isFundamental:o,favoriteIntervalsService:h,favoriteChartStylesService:u,favoriteStudyTemplatesService:m,studyTemplates:p,saveChartService:v,sharingChartService:S,loadChartService:f,financialsDialogController:g,snapshotUrl:y}=e;this._showScrollbarWhen=(0,i.ensureDefined)(e.allowedModes).slice(-1),this._panelWidthChangeHandlers={full:this._handleFullWidthChange,medium:this._handleFavoritesWidthChange,small:this._handleCollapseWidthChange};const{chartChangesWatcher:b}=e;this._chartChangesWatcher=b;const w=he(this.props.defaultFavoriteStyles);this._favoriteChartStylesService=u||new B(Q.TVXWindowEvents,U,w);const _=ue(this.props.defaultFavoriteIntervals);this._favoriteIntervalsService=h||new z(Q.TVXWindowEvents,U,_),this._intervalsMenuViewStateService=new oe(Q.TVXWindowEvents,U),this._intervalService=new Z(r),this._registry={tools:t,isFundamental:o,chartWidgetCollection:a,windowMessageService:s,chartApiInstance:r,availableTimeFrames:n,favoriteStudyTemplatesService:m,studyTemplates:p,saveChartService:v,sharingChartService:S,loadChartService:f,intervalsMenuViewStateService:this._intervalsMenuViewStateService,favoriteChartStylesService:this._favoriteChartStylesService,favoriteIntervalsService:this._favoriteIntervalsService,intervalService:this._intervalService,chartChangesWatcher:this._chartChangesWatcher,chartWidget:a.activeChartWidget.value(),favoriteScriptsModel:se.getInstance(),templatesMenuViewStateService:this._templatesMenuVuewStateService,financialsDialogController:g,snapshotUrl:y},this.state={isVisible:!0,availableWidth:0,displayMode:"full",measureValid:!1,leftCustomElements:[],rightCustomElements:[]},this._readOnly=a.readOnly(),this._features={allowFavoriting:d.enabled("items_favoriting"),showIdeasButton:Boolean(this.props.ideas),showLaunchInPopupButton:Boolean(this.props.popupButton),allowSymbolSearchSpread:d.enabled("header_symbol_search")&&d.enabled("show_spread_operators"),allowToolbarHiding:d.enabled("collapsible_header")},this._setDisplayMode=(0,c.default)(this._setDisplayMode,100),this._negotiateResizer()}componentDidUpdate(e,t){const{isVisible:s,measureValid:a}=this.state;s!==t.isVisible&&(h.emit("toggle_header",s),this._negotiateResizer()),a||this._setDisplayMode()}render(){const{resizerBridge:e,allowedModes:t,...s}=this.props,{displayMode:r,isVisible:o,leftCustomElements:l,rightCustomElements:c}=this.state,d={features:this._features,readOnly:this._readOnly,isFake:!1,saveLoadSyncEmitter:this._saveLoadSyncEmitter,leftCustomElements:l,rightCustomElements:c,...s},h={...d,isFake:!0,showScrollbarWhen:Se},u=(0,i.ensureDefined)(t),m=this.props.tools.PublishButtonManager||a.Fragment;return a.createElement(W.RegistryProvider,{value:this._registry,validation:me},a.createElement(m,null,a.createElement("div",{className:n(ve.toolbar,{[ve.isHidden]:!o}),onClick:this.props.onClick},a.createElement("div",{className:ve.overflowWrap},a.createElement(L,{key:"live",showScrollbarWhen:this._showScrollbarWhen,displayMode:r, -onAvailableSpaceChange:this._handleMeasure,...d}),u.map(e=>a.createElement(L,{key:e,displayMode:e,onWidthChange:this._panelWidthChangeHandlers[e],...h}))))))}addButton(e,t){if(!t.useTradingViewStyle)return this._addCustomHTMLButton(e,t.align);this._addCustomTradingViewStyledButton(e,t)}addDropdown(e,t){const{leftCustomElements:s,rightCustomElements:a}=this.state,r={type:"Dropdown",id:e,params:t};"left"===t.align?this.setState({leftCustomElements:[...s,r]}):this.setState({rightCustomElements:[...a,r]})}updateDropdown(e,t){const s=t=>"Dropdown"===t.type&&t.id===e,a=this.state.leftCustomElements.find(s)||this.state.rightCustomElements.find(s);void 0!==a&&(a.params={...a.params,...t},this.setState({leftCustomElements:this.state.leftCustomElements.slice(),rightCustomElements:this.state.rightCustomElements.slice()}))}removeDropdown(e){const t=t=>"Dropdown"===t.type&&t.id!==e,s=this.state.leftCustomElements.filter(t),a=this.state.rightCustomElements.filter(t);this.setState({leftCustomElements:s,rightCustomElements:a})}_negotiateResizer(){this.props.resizerBridge.negotiateHeight(this.state.isVisible?$.HEADER_TOOLBAR_HEIGHT_EXPANDED:$.HEADER_TOOLBAR_HEIGHT_COLLAPSED)}_setDisplayMode(){const{availableWidth:e}=this.state,{allowedModes:t}=this.props,s={full:this._fullWidth,medium:this._favoritesWidth,small:this._collapseWidth},a=(0,i.ensureDefined)(t);let r=a.map(e=>s[e]).findIndex(t=>e>=t);-1===r&&(r=a.length-1);const n=a[r];this.setState({measureValid:!0,displayMode:n})}_addCustomHTMLButton(e,t="left"){const s=new(H())(0),a=(0,pe.parseHtmlElement)(`
`),r={type:"Button",id:e,params:{key:Number(new Date),element:a,width:s}};return this._addCustomElementToState(t,r),a}_addCustomTradingViewStyledButton(e,t){const s={type:"TradingViewStyledButton",id:e,params:{key:Number(new Date),text:t.text,title:t.title,onClick:t.onClick}};this._addCustomElementToState(t.align,s)}_addCustomElementToState(e,t){const{leftCustomElements:s,rightCustomElements:a}=this.state;"left"===e?this.setState({leftCustomElements:[...s,t]}):this.setState({rightCustomElements:[...a,t]})}}fe.defaultProps={allowedModes:["full","medium"]};class ge{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,r.render(a.createElement(fe,{...t,ref:this._handleRef}),this._container)}destroy(){r.unmountComponentAtNode(this._container)}getComponent(){return(0,i.ensureNotNull)(this._component)}}},37669:(e,t,s)=>{"use strict";s.d(t,{hasNewHeaderToolbarStyles:()=>a});s(67337);const a=!1},55402:(e,t,s)=>{"use strict";s.d(t,{validateRegistry:()=>o,RegistryProvider:()=>l,registryContextType:()=>c});var a=s(59496),r=s(19036),i=s.n(r);const n=a.createContext({});function o(e,t){i().checkPropTypes(t,e,"context","RegistryContext")}function l(e){const{validation:t,value:s}=e;return o(s,t),a.createElement(n.Provider,{value:s},e.children)}function c(){return n}},42142:(e,t,s)=>{"use strict";s.d(t,{FragmentMap:()=>r});var a=s(59496);function r(e){if(e.map){ -return a.Children.toArray(e.children).map(e.map)}return e.children}},70412:(e,t,s)=>{"use strict";s.d(t,{hoverMouseEventFilter:()=>i,useAccurateHover:()=>n,useHover:()=>r});var a=s(59496);function r(){const[e,t]=(0,a.useState)(!1);return[e,{onMouseOver:function(e){i(e)&&t(!0)},onMouseOut:function(e){i(e)&&t(!1)}}]}function i(e){return!e.currentTarget.contains(e.relatedTarget)}function n(e){const[t,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{const t=t=>{if(null===e.current)return;const a=e.current.contains(t.target);s(a)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},39440:(e,t,s)=>{"use strict";s.d(t,{HorizontalScroll:()=>y});var a=s(59496),r=s(97754),i=s(9837),n=s(88537),o=s(9745),l=s(59199),c=s(68587),d=s(62820),h=s(33086),u=s(41814);const m={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function p(e){return a.createElement("div",{className:r(u.fadeLeft,e.className,{[u.isVisible]:e.isVisible})})}function v(e){return a.createElement("div",{className:r(u.fadeRight,e.className,{[u.isVisible]:e.isVisible})})}function S(e){return a.createElement(g,{...e,className:u.scrollLeft})}function f(e){return a.createElement(g,{...e,className:u.scrollRight})}function g(e){return a.createElement("div",{className:r(e.className,{[u.isVisible]:e.isVisible}),onClick:e.onClick},a.createElement("div",{className:u.iconWrap},a.createElement(o.Icon,{icon:h,className:u.icon})))}const y=function(e=S,t=f,s=p,o=v){var h;return(h=class extends a.PureComponent{constructor(e){super(e),this._scroll=a.createRef(),this._wrapMeasureRef=a.createRef(),this._contentMeasureRef=a.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:s}=this.props;t&&s?this.setState({widthContent:e.width+2*s}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,s=this.isAtLeft(),a=this.isAtRight();s||e?s&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),a||t?a&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0, -widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,d.isRtl)()?(0,d.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,n.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,n.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const s=this._scroll.current;s&&((0,d.isRtl)()&&(e=(0,d.getLTRScrollLeftOffset)(s,e)),t<=0?s.scrollLeft=Math.round(e):(0,l.doAnimate)({onStep(e,t){s.scrollLeft=Math.round(t)},from:s.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:n,isVisibleScrollbar:l,isVisibleFade:c,isVisibleButtons:d,shouldMeasure:h,shouldDecreaseWidthContent:m,buttonsWidthIfDecreasedWidthContent:p,onMouseOver:v,onMouseOut:S,scrollWrapClassName:f,fadeClassName:g}=this.props,{isVisibleRightButton:y,isVisibleLeftButton:b}=this.state,w=m&&p;return a.createElement(i,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:h,ref:this._wrapMeasureRef},a.createElement("div",{className:u.wrapOverflow,onMouseOver:v,onMouseOut:S},a.createElement("div",{className:r(u.wrap,w?u.wrapWithArrowsOuting:"")},a.createElement("div",{className:r(u.scrollWrap,f,{[u.noScrollBar]:!l}),onScroll:this._handleScroll,ref:this._scroll},a.createElement(i,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:h,ref:this._contentMeasureRef},n)),c&&a.createElement(s,{isVisible:b,className:g}),c&&a.createElement(o,{isVisible:y,className:g}),d&&a.createElement(e,{onClick:this._handleScrollLeft,isVisible:b}),d&&a.createElement(t,{onClick:this._handleScrollRight,isVisible:y}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=m,h}(S,f,p,v)},33086:e=>{e.exports=''},59266:e=>{ -e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/jquery.06844b74f8270fb0698b.js b/charting_library/bundles/jquery.06844b74f8270fb0698b.js new file mode 100644 index 00000000..d49b55d8 --- /dev/null +++ b/charting_library/bundles/jquery.06844b74f8270fb0698b.js @@ -0,0 +1,70 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1729],{23127:t=>{var e=window.document,i=window.navigator,n=window.location,s=function(){var t,n,s,r,o=function(e,i){return new o.fn.init(e,i,t)},a=window.jQuery,l=window.$,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,c=/\S/,u=/^\s+/,d=/\s+$/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,f=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,m=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,_=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z]|[0-9])/gi,k=/^-ms-/,D=function(t,e){return(e+"").toUpperCase()},C=i.userAgent,T=Object.prototype.toString,N=Object.prototype.hasOwnProperty,S=Array.prototype.push,M=Array.prototype.slice,P=String.prototype.trim,E=Array.prototype.indexOf,I={};function A(){if(!o.isReady){try{e.documentElement.doScroll("left")}catch(t){return void setTimeout(A,1)}o.ready()}}return o.fn=o.prototype={constructor:o,init:function(t,i,n){var s,r,a,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!i&&e.body)return this.context=e,this[0]=e.body,this.selector=t,this.length=1,this;if("string"==typeof t){if(!(s="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:h.exec(t))||!s[1]&&i)return!i||i.jquery?(i||n).find(t):this.constructor(i).find(t);if(s[1])return l=(i=i instanceof o?i[0]:i)?i.ownerDocument||i:e,(a=p.exec(t))?o.isPlainObject(i)?(t=[e.createElement(a[1])],o.fn.attr.call(t,i,!0)):t=[l.createElement(a[1])]:t=((a=o.buildFragment([s[1]],[l])).cacheable?o.clone(a.fragment):a.fragment).childNodes,o.merge(this,t);if((r=e.getElementById(s[2]))&&r.parentNode){if(r.id!==s[2])return n.find(t);this.length=1,this[0]=r}return this.context=e,this.selector=t,this}return o.isFunction(t)?n.ready(t):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),o.makeArray(t,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(t){return null==t?this.toArray():t<0?this[this.length+t]:this[t]},pushStack:function(t,e,i){var n=this.constructor();return o.isArray(t)?S.apply(n,t):o.merge(n,t),n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+i:e&&(n.selector=this.selector+"."+e+"("+i+")"),n},each:function(t,e){return o.each(this,t,e)},ready:function(t){return o.bindReady(),s.add(t),this},eq:function(t){return-1===(t=+t)?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),"slice",M.call(arguments).join(","))},map:function(t){return this.pushStack(o.map(this,(function(e,i){return t.call(e,i,e)})))},end:function(){return this.prevObject||this.constructor(null)},push:S,sort:[].sort,splice:[].splice},o.fn.init.prototype=o.fn,o.extend=o.fn.extend=function(){var t,e,i,n,s,r,a=arguments[0]||{},l=1,h=arguments.length,c=!1 +;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},l=2),"object"==typeof a||o.isFunction(a)||(a={}),h===l&&(a=this,--l);l0)return;s.fireWith(e,[o]),o.fn.trigger&&o(e).trigger("ready").off("ready")}},bindReady:function(){if(!s){if(s=o.Callbacks("once memory"),"complete"===e.readyState)return setTimeout(o.ready,1);if(e.addEventListener)e.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",o.ready,!1);else if(e.attachEvent){e.attachEvent("onreadystatechange",r),window.attachEvent("onload",o.ready);var t=!1;try{t=null==window.frameElement}catch(t){}e.documentElement.doScroll&&t&&A()}}},isFunction:function(t){return"function"===o.type(t)},isArray:Array.isArray||function(t){return"array"===o.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):I[T.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==o.type(t)||t.nodeType||o.isWindow(t))return!1;try{if(t.constructor&&!N.call(t,"constructor")&&!N.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}var e;for(e in t);return void 0===e||N.call(t,e)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(t){return"string"==typeof t&&t?(t=o.trim(t),window.JSON&&window.JSON.parse?window.JSON.parse(t):f.test(t.replace(g,"@").replace(m,"]").replace(v,""))?new Function("return "+t)():void o.error("Invalid JSON: "+t)):null},parseXML:function(t){if("string"!=typeof t||!t)return null;var e;try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||o.error("Invalid XML: "+t),e},noop:function(){},globalEval:function(t){t&&c.test(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(k,"ms-").replace(x,D)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,e,i){var n,s=0,r=t.length,a=void 0===r||o.isFunction(t);if(i)if(a){for(n in t)if(!1===e.apply(t[n],i))break}else for(;s0&&t[0]&&t[l-1]||0===l||o.isArray(t)))for(;a1?o.call(arguments,0):i,--a||l.resolveWith(l,e)}}function u(t){return function(e){r[t]=arguments.length>1?o.call(arguments,0):e,l.notifyWith(h,r)}}if(n>1){for(;i
a",i=p.getElementsByTagName("*"),n=p.getElementsByTagName("a")[0],!i||!i.length||!n)return{};o=(r=e.createElement("select")).appendChild(e.createElement("option")),a=p.getElementsByTagName("input")[0],t={leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected, +getSetAttribute:"t"!==p.className,enctype:!!e.createElement("form").enctype,html5Clone:"<:nav>"!==e.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},s.boxModel=t.boxModel="CSS1Compat"===e.compatMode,a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,r.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(e){t.deleteExpando=!1}if(!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",(function(){t.noCloneEvent=!1})),p.cloneNode(!0).fireEvent("onclick")),(a=e.createElement("input")).value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),p.appendChild(a),(l=e.createDocumentFragment()).appendChild(p.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,l.removeChild(a),l.appendChild(p),p.attachEvent)for(u in{submit:1,change:1,focusin:1})(d=(c="on"+u)in p)||(p.setAttribute(c,"return;"),d="function"==typeof p[c]),t[u+"Bubbles"]=d;return l.removeChild(p),l=r=o=p=a=null,s((function(){var i,n,r,o,a,l,c,u=e.getElementsByTagName("body")[0];u&&(c="style='position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:5px solid #000;",(i=e.createElement("div")).style.cssText="padding:0;margin:0;border:0;visibility:hidden;width:0;height:0;position:static;top:0;margin-top:1px",u.insertBefore(i,u.firstChild),p=e.createElement("div"),i.appendChild(p),p.innerHTML="
t
",h=p.getElementsByTagName("td"),d=0===h[0].offsetHeight,h[0].style.display="",h[1].style.display="none",t.reliableHiddenOffsets=d&&0===h[0].offsetHeight,window.getComputedStyle&&(p.innerHTML="",(l=e.createElement("div")).style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),t.reliableMarginRight=0===(parseInt((window.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)),void 0!==p.style.zoom&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,t.inlineBlockNeedsLayout=3===p.offsetWidth,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",t.shrinkWrapBlocks=3!==p.offsetWidth),p.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:0;visibility:hidden;",p.innerHTML="
",r=(n=p.firstChild).firstChild,o=n.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==r.offsetTop, +doesAddBorderForTableAndCells:5===o.offsetTop},r.style.position="fixed",r.style.top="20px",a.fixedPosition=20===r.offsetTop||15===r.offsetTop,r.style.position=r.style.top="",n.style.overflow="hidden",n.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===r.offsetTop,a.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,window.getComputedStyle&&(p.style.marginTop="1%",t.pixelMargin="1%"!==(window.getComputedStyle(p,null)||{marginTop:0}).marginTop),void 0!==i.style.zoom&&(i.style.zoom=1),u.removeChild(i),l=p=i=null,s.extend(t,a))})),t}();var a=/^(?:\{.*\}|\[.*\])$/,l=/([A-Z])/g;function h(t,e,i){if(void 0===i&&1===t.nodeType){var n="data-"+e.replace(l,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:s.isNumeric(i)?+i:a.test(i)?s.parseJSON(i):i)}catch(t){}s.data(t,e,i)}else i=void 0}return i}function c(t){for(var e in t)if(("data"!==e||!s.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,i){var n=e+"defer",r=e+"queue",o=e+"mark",a=s._data(t,n);!a||"queue"!==i&&s._data(t,r)||"mark"!==i&&s._data(t,o)||setTimeout((function(){s._data(t,r)||s._data(t,o)||(s.removeData(t,n,!0),a.fire())}),0)}s.extend({cache:{},uuid:0,expando:"jQuery"+(s.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return!!(t=t.nodeType?s.cache[t[s.expando]]:t[s.expando])&&!c(t)},data:function(t,e,i,n){if(s.acceptData(t)){var r,o,a,l=s.expando,h="string"==typeof e,c=t.nodeType,u=c?s.cache:t,d=c?t[l]:t[l]&&l,p="events"===e;if(d&&u[d]&&(p||n||u[d].data)||!h||void 0!==i)return d||(c?t[l]=d=++s.uuid:d=l),u[d]||(u[d]={},c||(u[d].toJSON=s.noop)),"object"!=typeof e&&"function"!=typeof e||(n?u[d]=s.extend(u[d],e):u[d].data=s.extend(u[d].data,e)),r=o=u[d],n||(o.data||(o.data={}),o=o.data),void 0!==i&&(o[s.camelCase(e)]=i),p&&!o[e]?r.events:(h?null==(a=o[e])&&(a=o[s.camelCase(e)]):a=o,a)}},removeData:function(t,e,i){if(s.acceptData(t)){var n,r,o,a=s.expando,l=t.nodeType,h=l?s.cache:t,u=l?t[a]:a;if(h[u]){if(e&&(n=i?h[u]:h[u].data)){s.isArray(e)||(e=e in n||(e=s.camelCase(e))in n?[e]:e.split(" "));for(r=0,o=e.length;r1,null,!1))},removeData:function(t){return this.each((function(){s.removeData(this,t)}))}}),s.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",s._data(t,e,(s._data(t,e)||0)+1))},_unmark:function(t,e,i){if(!0!==t&&(i=e,e=t,t=!1),e){var n=(i=i||"fx")+"mark",r=t?0:(s._data(e,n)||1)-1;r?s._data(e,n,r):(s.removeData(e,n,!0),u(e,i,"mark"))}},queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=s._data(t,e),i&&(!n||s.isArray(i)?n=s._data(t,e,s.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=s.queue(t,e),n=i.shift(),r={};"inprogress"===n&&(n=i.shift()),n&&("fx"===e&&i.unshift("inprogress"),s._data(t,e+".run",r),n.call(t,(function(){s.dequeue(t,e)}),r)),i.length||(s.removeData(t,e+"queue "+e+".run",!0),u(t,e,"queue"))}}),s.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length1)},removeAttr:function(t){return this.each((function(){s.removeAttr(this,t)}))},prop:function(t,e){return s.access(this,s.prop,t,e,arguments.length>1)},removeProp:function(t){return t=s.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))},addClass:function(t){var e,i,n,r,o,a,l;if(s.isFunction(t))return this.each((function(e){s(this).addClass(t.call(this,e,this.className))}));if(t&&"string"==typeof t)for(e=t.split(m),i=0,n=this.length;i-1)return!0;return!1},val:function(t){var e,i,n,r=this[0];return arguments.length?(n=s.isFunction(t),this.each((function(i){var r,o=s(this);1===this.nodeType&&(null==(r=n?t.call(this,i,o.val()):t)?r="":"number"==typeof r?r+="":s.isArray(r)&&(r=s.map(r,(function(t){return null==t?"":t+""}))),(e=s.valHooks[this.type]||s.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=s.valHooks[r.type]||s.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(v,""):null==i?"":i:void 0}}),s.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,i,n,r,o=t.selectedIndex,a=[],l=t.options,h="select-one"===t.type;if(o<0)return null;for(i=h?o:0,n=h?o+1:l.length;i=0})),i.length||(t.selectedIndex=-1),i}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,e,i,n){var r,o,a,l=t.nodeType;if(t&&3!==l&&8!==l&&2!==l)return n&&e in s.attrFn?s(t)[e](i):void 0===t.getAttribute?s.prop(t,e,i):((a=1!==l||!s.isXMLDoc(t))&&(e=e.toLowerCase(),o=s.attrHooks[e]||(w.test(e)?p:d)),void 0!==i?null===i?void s.removeAttr(t,e):o&&"set"in o&&a&&void 0!==(r=o.set(t,i,e))?r:(t.setAttribute(e,""+i),i):o&&"get"in o&&a&&null!==(r=o.get(t,e))?r:null===(r=t.getAttribute(e))?void 0:r)},removeAttr:function(t,e){var i,n,r,o,a,l=0;if(e&&1===t.nodeType)for(o=(n=e.toLowerCase().split(m)).length;l=0}})})) +;var k=/^(?:textarea|input|select)$/i,D=/^([^\.]*)?(?:\.(.+))?$/,C=/(?:^|\s)hover(\.\S+)?\b/,T=/^key/,N=/^(?:mouse|contextmenu)|click/,S=/^(?:focusinfocus|focusoutblur)$/,M=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,P=function(t){var e=M.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},E=function(t,e){var i=t.attributes||{};return(!e[1]||t.nodeName.toLowerCase()===e[1])&&(!e[2]||(i.id||{}).value===e[2])&&(!e[3]||e[3].test((i.class||{}).value))},I=function(t){return s.event.special.hover?t:t.replace(C,"mouseenter$1 mouseleave$1")};function A(){return!1}function F(){return!0}s.event={add:function(t,e,i,n,r){var o,a,l,h,c,u,d,p,f,g,m;if(3!==t.nodeType&&8!==t.nodeType&&e&&i&&(o=s._data(t))){for(i.handler&&(i=(f=i).handler,r=f.selector),i.guid||(i.guid=s.guid++),(l=o.events)||(o.events=l={}),(a=o.handle)||(o.handle=a=function(t){return void 0===s||t&&s.event.triggered===t.type?void 0:s.event.dispatch.apply(a.elem,arguments)},a.elem=t),e=s.trim(I(e)).split(" "),h=0;h=0&&(g=g.slice(0,-1),o=!0),g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),i&&!s.event.customEvent[g]||s.event.global[g]))if((t="object"==typeof t?t[s.expando]?t:new s.Event(g,t):new s.Event(g)).type=g,t.isTrigger=!0,t.exclusive=o,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,c=g.indexOf(":")<0?"on"+g:"",i){if(t.result=void 0,t.target||(t.target=i), +(e=null!=e?s.makeArray(e):[]).unshift(t),!(u=s.event.special[g]||{}).trigger||!1!==u.trigger.apply(i,e)){if(p=[[i,u.bindType||g]],!n&&!u.noBubble&&!s.isWindow(i)){for(f=u.delegateType||g,l=S.test(f+g)?i:i.parentNode,h=null;l;l=l.parentNode)p.push([l,f]),h=l;h&&h===i.ownerDocument&&p.push([h.defaultView||h.parentWindow||window,f])}for(a=0;ap&&v.push({elem:this,matches:d.slice(p)}),e=0;e0?this.on(e,null,t,i):this.trigger(e)},s.attrFn&&(s.attrFn[e]=!0),T.test(e)&&(s.event.fixHooks[e]=s.event.keyHooks), +N.test(e)&&(s.event.fixHooks[e]=s.event.mouseHooks)})),function(){var t=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),n=0,r=Object.prototype.toString,o=!1,a=!0,l=/\\/g,h=/\r\n/g,c=/\W/;[0,0].sort((function(){return a=!1,0}));var u=function(i,n,s,o){s=s||[];var a=n=n||e;if(1!==n.nodeType&&9!==n.nodeType)return[];if(!i||"string"!=typeof i)return s;var l,h,c,d,g,m,v,y,_=!0,w=u.isXML(n),x=[],D=i;do{if(t.exec(""),(l=t.exec(D))&&(D=l[3],x.push(l[1]),l[2])){d=l[3];break}}while(l);if(x.length>1&&f.exec(i))if(2===x.length&&p.relative[x[0]])h=k(x[0]+x[1],n,o);else for(h=p.relative[x[0]]?[n]:u(x.shift(),n);x.length;)i=x.shift(),p.relative[i]&&(i+=x.shift()),h=k(i,h,o);else if(!o&&x.length>1&&9===n.nodeType&&!w&&p.match.ID.test(x[0])&&!p.match.ID.test(x[x.length-1])&&(n=(g=u.find(x.shift(),n,w)).expr?u.filter(g.expr,g.set)[0]:g.set[0]),n)for(h=(g=o?{expr:x.pop(),set:b(o)}:u.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!n.parentNode?n:n.parentNode,w)).expr?u.filter(g.expr,g.set):g.set,x.length>0?c=b(h):_=!1;x.length;)v=m=x.pop(),p.relative[m]?v=x.pop():m="",null==v&&(v=n),p.relative[m](c,v,w);else c=x=[];if(c||(c=h),c||u.error(m||i),"[object Array]"===r.call(c))if(_)if(n&&1===n.nodeType)for(y=0;null!=c[y];y++)c[y]&&(!0===c[y]||1===c[y].nodeType&&u.contains(n,c[y]))&&s.push(h[y]);else for(y=0;null!=c[y];y++)c[y]&&1===c[y].nodeType&&s.push(h[y]);else s.push.apply(s,c);else b(c,s);return d&&(u(d,a,s,o),u.uniqueSort(s)),s};u.uniqueSort=function(t){if(v&&(o=a,t.sort(v),o))for(var e=1;e0},u.find=function(t,e,i){var n,s,r,o,a,h;if(!t)return[];for(s=0,r=p.order.length;s":function(t,e){var i,n="string"==typeof e,s=0,r=t.length;if(n&&!c.test(e)){for(e=e.toLowerCase();s=0)?i||n.push(o):i&&(e[a]=!1));return!1},ID:function(t){return t[1].replace(l,"")},TAG:function(t,e){return t[1].replace(l,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||u.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===t[2]?"2n":"odd"===t[2]&&"2n+1")||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&u.error(t[0]);return t[0]=n++,t},ATTR:function(t,e,i,n,s,r){var o=t[1]=t[1].replace(l,"");return!r&&p.attrMap[o]&&(t[1]=p.attrMap[o]),t[4]=(t[4]||t[5]||"").replace(l,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(e,i,n,s,r){if("not"===e[1]){if(!((t.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=u.filter(e[3],i,n,!0^r);return n||s.push.apply(s,o),!1}e[3]=u(e[3],null,null,i) +}else if(p.match.POS.test(e[0])||p.match.CHILD.test(e[0]))return!0;return e},POS:function(t){return t.unshift(!0),t}},filters:{enabled:function(t){return!1===t.disabled&&"hidden"!==t.type},disabled:function(t){return!0===t.disabled},checked:function(t){return!0===t.checked},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,i){return!!u(i[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),i=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===i&&(e===i||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,i,n){return e===n.length-1},even:function(t,e){return e%2==0},odd:function(t,e){return e%2==1},lt:function(t,e,i){return ei[3]-0},nth:function(t,e,i){return i[3]-0===e},eq:function(t,e,i){return i[3]-0===e}},filter:{PSEUDO:function(t,e,i,n){var s=e[1],r=p.filters[s];if(r)return r(t,i,e,n);if("contains"===s)return(t.textContent||t.innerText||d([t])||"").indexOf(e[3])>=0;if("not"===s){for(var o=e[3],a=0,l=o.length;a=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var i=e[1],n=u.attr?u.attr(t,i):p.attrHandle[i]?p.attrHandle[i](t):null!=t[i]?t[i]:t.getAttribute(i),s=n+"",r=e[2],o=e[4] +;return null==n?"!="===r:!r&&u.attr?null!=n:"="===r?s===o:"*="===r?s.indexOf(o)>=0:"~="===r?(" "+s+" ").indexOf(o)>=0:o?"!="===r?s!==o:"^="===r?0===s.indexOf(o):"$="===r?s.substr(s.length-o.length)===o:"|="===r&&(s===o||s.substr(0,o.length+1)===o+"-"):s&&!1!==n},POS:function(t,e,i,n){var s=e[2],r=p.setFilters[s];if(r)return r(t,i,e,n)}}},f=p.match.POS,g=function(t,e){return"\\"+(e-0+1)};for(var m in p.match)p.match[m]=new RegExp(p.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[m]=new RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[m].source.replace(/\\(\d+)/g,g));p.match.globalPOS=f;var v,y,_,b=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call(e.documentElement.childNodes,0)[0].nodeType}catch(t){b=function(t,e){var i=0,n=e||[];if("[object Array]"===r.call(t))Array.prototype.push.apply(n,t);else if("number"==typeof t.length)for(var s=t.length;i0){c=h;break}h=h[t]}s[a]=c}}}e.documentElement.compareDocumentPosition?v=function(t,e){return t===e?(o=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(v=function(t,e){if(t===e)return o=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var i,n,s=[],r=[],a=t.parentNode,l=e.parentNode,h=a;if(a===l)return y(t,e);if(!a)return-1;if(!l)return 1;for(;h;)s.unshift(h),h=h.parentNode;for(h=l;h;)r.unshift(h),h=h.parentNode;i=s.length,n=r.length;for(var c=0;c",n.insertBefore(t,n.firstChild),e.getElementById(i)&&(p.find.ID=function(t,e,i){if(void 0!==e.getElementById&&!i){var n=e.getElementById(t[1]);return n?n.id===t[1]||void 0!==n.getAttributeNode&&n.getAttributeNode("id").nodeValue===t[1]?[n]:void 0:[]}},p.filter.ID=function(t,e){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&i&&i.nodeValue===e}),n.removeChild(t),n=t=null}(),(_=e.createElement("div")).appendChild(e.createComment("")),_.getElementsByTagName("*").length>0&&(p.find.TAG=function(t,e){var i=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var n=[],s=0;i[s];s++)1===i[s].nodeType&&n.push(i[s]);i=n}return i}),_.innerHTML="", +_.firstChild&&void 0!==_.firstChild.getAttribute&&"#"!==_.firstChild.getAttribute("href")&&(p.attrHandle.href=function(t){return t.getAttribute("href",2)}),_=null,e.querySelectorAll&&function(){var t=u,i=e.createElement("div");if(i.innerHTML="

",!i.querySelectorAll||0!==i.querySelectorAll(".TEST").length){for(var n in u=function(i,n,s,r){if(n=n||e,!r&&!u.isXML(n)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(i);if(o&&(1===n.nodeType||9===n.nodeType)){if(o[1])return b(n.getElementsByTagName(i),s);if(o[2]&&p.find.CLASS&&n.getElementsByClassName)return b(n.getElementsByClassName(o[2]),s)}if(9===n.nodeType){if("body"===i&&n.body)return b([n.body],s);if(o&&o[3]){var a=n.getElementById(o[3]);if(!a||!a.parentNode)return b([],s);if(a.id===o[3])return b([a],s)}try{return b(n.querySelectorAll(i),s)}catch(t){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var l=n,h=n.getAttribute("id"),c=h||"__sizzle__",d=n.parentNode,f=/^\s*[+~]/.test(i);h?c=c.replace(/'/g,"\\$&"):n.setAttribute("id",c),f&&d&&(n=n.parentNode);try{if(!f||d)return b(n.querySelectorAll("[id='"+c+"'] "+i),s)}catch(t){}finally{h||l.removeAttribute("id")}}}return t(i,n,s,r)},t)u[n]=t[n];i=null}}(),function(){var t=e.documentElement,i=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(i){var n=!i.call(e.createElement("div"),"div"),s=!1;try{i.call(e.documentElement,"[test!='']:sizzle")}catch(t){s=!0}u.matchesSelector=function(t,e){if(e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!u.isXML(t))try{if(s||!p.match.PSEUDO.test(e)&&!/!=/.test(e)){var r=i.call(t,e);if(r||!n||t.document&&11!==t.document.nodeType)return r}}catch(t){}return u(e,null,null,[t]).length>0}}}(),function(){var t=e.createElement("div");t.innerHTML="
",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length&&(t.lastChild.className="e",1!==t.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(t,e,i){if(void 0!==e.getElementsByClassName&&!i)return e.getElementsByClassName(t[1])},t=null))}(),e.documentElement.contains?u.contains=function(t,e){return t!==e&&(!t.contains||t.contains(e))}:e.documentElement.compareDocumentPosition?u.contains=function(t,e){return!!(16&t.compareDocumentPosition(e))}:u.contains=function(){return!1},u.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return!!e&&"HTML"!==e.nodeName};var k=function(t,e,i){for(var n,s=[],r="",o=e.nodeType?[e]:e;n=p.match.PSEUDO.exec(t);)r+=n[0],t=t.replace(p.match.PSEUDO,"");t=p.relative[t]?t+"*":t;for(var a=0,l=o.length;a=0===i}))}function q(t){var e=X.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}s.fn.extend({find:function(t){var e,i,n=this;if("string"!=typeof t)return s(t).filter((function(){for(e=0,i=n.length;e0)for(o=r;o=0:s.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var i,n,r=[],o=this[0];if(s.isArray(t)){for(var a=1;o&&o.ownerDocument&&o!==e;){for(i=0;i-1:s.find.matchesSelector(o,t)){r.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===e||11===o.nodeType)break}return r=r.length>1?s.unique(r):r,this.pushStack(r,"closest",t)},index:function(t){return t?"string"==typeof t?s.inArray(this[0],s(t)):s.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var i="string"==typeof t?s(t,e):s.makeArray(t&&t.nodeType?[t]:t),n=s.merge(this.get(),i);return this.pushStack(Y(i[0])||Y(n[0])?n:s.unique(n))},andSelf:function(){return this.add(this.prevObject)}}),s.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return s.dir(t,"parentNode")},parentsUntil:function(t,e,i){return s.dir(t,"parentNode",i)},next:function(t){return s.nth(t,2,"nextSibling")},prev:function(t){return s.nth(t,2,"previousSibling")},nextAll:function(t){return s.dir(t,"nextSibling")},prevAll:function(t){return s.dir(t,"previousSibling")},nextUntil:function(t,e,i){return s.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return s.dir(t,"previousSibling",i)},siblings:function(t){return s.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return s.sibling(t.firstChild)},contents:function(t){return s.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:s.makeArray(t.childNodes)}},(function(t,e){s.fn[t]=function(i,n){var r=s.map(this,e,i);return H.test(t)||(n=i),n&&"string"==typeof n&&(r=s.filter(n,r)),r=this.length>1&&!R[t]?s.unique(r):r, +(this.length>1||L.test(n))&&z.test(t)&&(r=r.reverse()),this.pushStack(r,t,j.call(arguments).join(","))}})),s.extend({filter:function(t,e,i){return i&&(t=":not("+t+")"),1===e.length?s.find.matchesSelector(e[0],t)?[e[0]]:[]:s.find.matches(t,e)},dir:function(t,e,i){for(var n=[],r=t[e];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!s(r).is(i));)1===r.nodeType&&n.push(r),r=r[e];return n},nth:function(t,e,i,n){e=e||1;for(var s=0;t&&(1!==t.nodeType||++s!==e);t=t[i]);return t},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var X="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",$=/ jQuery\d+="(?:\d+|null)"/g,K=/^\s+/,U=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,V=/<([\w:]+)/,J=/]","i"),et=/checked\s*(?:[^=]|=\s*.checked.)/i,it=/\/(java|ecma)script/i,nt=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},rt=q(e);function ot(t,e){return s.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function at(t,e){if(1===e.nodeType&&s.hasData(t)){var i,n,r,o=s._data(t),a=s._data(e,o),l=o.events;if(l)for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n","
"]),s.fn.extend({text:function(t){return s.access(this,(function(t){ +return void 0===t?s.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(t))}),null,t,arguments.length)},wrapAll:function(t){if(s.isFunction(t))return this.each((function(e){s(this).wrapAll(t.call(this,e))}));if(this[0]){var e=s(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return s.isFunction(t)?this.each((function(e){s(this).wrapInner(t.call(this,e))})):this.each((function(){var e=s(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=s.isFunction(t);return this.each((function(i){s(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(){return this.parent().each((function(){s.nodeName(this,"body")||s(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(t){1===this.nodeType&&this.appendChild(t)}))},prepend:function(){return this.domManip(arguments,!0,(function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this)}));if(arguments.length){var t=s.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(t){this.parentNode.insertBefore(t,this.nextSibling)}));if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,s.clean(arguments)),t}},remove:function(t,e){for(var i,n=0;null!=(i=this[n]);n++)t&&!s.filter(t,[i]).length||(e||1!==i.nodeType||(s.cleanData(i.getElementsByTagName("*")),s.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&s.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return s.clone(this,t,e)}))},html:function(t){return s.access(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace($,""):null;if("string"==typeof t&&!Q.test(t)&&(s.support.leadingWhitespace||!K.test(t))&&!st[(V.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(U,"<$1>");try{for(;i1&&c0?this.clone(!0):this).get();s(r[a])[e](h),n=n.concat(h)}return this.pushStack(n,t,r.selector)}})),s.extend({clone:function(t,i,n){var r,o,a,l=s.support.html5Clone||s.isXMLDoc(t)||!tt.test("<"+t.nodeName+">")?t.cloneNode(!0):function(t){var i=e.createElement("div");return rt.appendChild(i),i.innerHTML=t.outerHTML,i.firstChild}(t);if(!(s.support.noCloneEvent&&s.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||s.isXMLDoc(t)))for(lt(t,l),r=ht(t),o=ht(l),a=0;r[a];++a)o[a]&<(r[a],o[a]);if(i&&(at(t,l),n))for(r=ht(t),o=ht(l),a=0;r[a];++a)at(r[a],o[a]);return r=o=null,l},clean:function(t,i,n,r){var o,a,l,h=[];void 0===(i=i||e).createElement&&(i=i.ownerDocument||i[0]&&i[0].ownerDocument||e);for(var c,u=0;null!=(c=t[u]);u++)if("number"==typeof c&&(c+=""),c){if("string"==typeof c)if(G.test(c)){c=c.replace(U,"<$1>");var d,p=(V.exec(c)||["",""])[1].toLowerCase(),f=st[p]||st._default,g=f[0],m=i.createElement("div"),v=rt.childNodes;for(i===e?rt.appendChild(m):q(i).appendChild(m),m.innerHTML=f[1]+c+f[2];g--;)m=m.lastChild;if(!s.support.tbody){var y=J.test(c),_="table"!==p||y?""!==f[1]||y?[]:m.childNodes:m.firstChild&&m.firstChild.childNodes;for(l=_.length-1;l>=0;--l)s.nodeName(_[l],"tbody")&&!_[l].childNodes.length&&_[l].parentNode.removeChild(_[l])}!s.support.leadingWhitespace&&K.test(c)&&m.insertBefore(i.createTextNode(K.exec(c)[0]),m.firstChild), +c=m.childNodes,m&&(m.parentNode.removeChild(m),v.length>0&&(d=v[v.length-1])&&d.parentNode&&d.parentNode.removeChild(d))}else c=i.createTextNode(c);var b;if(!s.support.appendChecked)if(c[0]&&"number"==typeof(b=c.length))for(l=0;l0){if("border"!==i)for(;r<4;r+=2)i||(n-=parseFloat(s.css(t,"padding"+kt[r]))||0),"margin"===i?n+=parseFloat(s.css(t,i+kt[r]))||0:n-=parseFloat(s.css(t,"border"+kt[r]+"Width"))||0;return n+"px"}if(((n=dt(t,e))<0||null==n)&&(n=t.style[e]),_t.test(n))return n;if(n=parseFloat(n)||0,i)for(;r<4;r+=2)n+=parseFloat(s.css(t,"padding"+kt[r]))||0,"padding"!==i&&(n+=parseFloat(s.css(t,"border"+kt[r]+"Width"))||0),"margin"===i&&(n+=parseFloat(s.css(t,i+kt[r]))||0);return n+"px"}s.fn.css=function(t,e){return s.access(this,(function(t,e,i){return void 0!==i?s.style(t,e,i):s.css(t,e)}),t,e,arguments.length>1)},s.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=dt(t,"opacity");return""===i?"1":i}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:s.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a=s.camelCase(e),l=t.style,h=s.cssHooks[a];if(e=s.cssProps[a]||a,void 0===i)return h&&"get"in h&&void 0!==(r=h.get(t,!1,n))?r:l[e];if(!("string"===(o=typeof i)&&(r=bt.exec(i))&&(i=+(r[1]+1)*+r[2]+parseFloat(s.css(t,e)),o="number"),null==i||"number"===o&&isNaN(i)||("number"!==o||s.cssNumber[a]||(i+="px"),h&&"set"in h&&void 0===(i=h.set(t,i)))))try{l[e]=i}catch(t){}}},css:function(t,e,i){var n,r;return e=s.camelCase(e),r=s.cssHooks[e],"cssFloat"===(e=s.cssProps[e]||e)&&(e="float"),r&&"get"in r&&void 0!==(n=r.get(t,!0,i))?n:dt?dt(t,e):void 0},swap:function(t,e,i){var n,s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];for(s in n=i.call(t),e)t.style[s]=r[s];return n}}),s.curCSS=s.css, +e.defaultView&&e.defaultView.getComputedStyle&&(pt=function(t,e){var i,n,r,o,a=t.style;return e=e.replace(vt,"-$1").toLowerCase(),(n=t.ownerDocument.defaultView)&&(r=n.getComputedStyle(t,null))&&(""!==(i=r.getPropertyValue(e))||s.contains(t.ownerDocument.documentElement,t)||(i=s.style(t,e))),!s.support.pixelMargin&&r&&wt.test(e)&&_t.test(i)&&(o=a.width,a.width=i,i=r.width,a.width=o),i}),e.documentElement.currentStyle&&(ft=function(t,e){var i,n,s,r=t.currentStyle&&t.currentStyle[e],o=t.style;return null==r&&o&&(s=o[e])&&(r=s),_t.test(r)&&(i=o.left,(n=t.runtimeStyle&&t.runtimeStyle.left)&&(t.runtimeStyle.left=t.currentStyle.left),o.left="fontSize"===e?"1em":r,r=o.pixelLeft+"px",o.left=i,n&&(t.runtimeStyle.left=n)),""===r?"auto":r}),dt=pt||ft,s.each(["height","width"],(function(t,e){s.cssHooks[e]={get:function(t,i,n){if(i)return 0!==t.offsetWidth?Dt(t,e,n):s.swap(t,xt,(function(){return Dt(t,e,n)}))},set:function(t,e){return yt.test(e)?e+"px":e}}})),s.support.opacity||(s.cssHooks.opacity={get:function(t,e){return mt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,r=s.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||i.filter||"";i.zoom=1,e>=1&&""===s.trim(o.replace(gt,""))&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=gt.test(o)?o.replace(gt,r):o+" "+r)}}),s((function(){s.support.reliableMarginRight||(s.cssHooks.marginRight={get:function(t,e){return s.swap(t,{display:"inline-block"},(function(){return e?dt(t,"margin-right"):t.style.marginRight}))}})})),s.expr&&s.expr.filters&&(s.expr.filters.hidden=function(t){var e=t.offsetWidth,i=t.offsetHeight;return 0===e&&0===i||!s.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||s.css(t,"display"))},s.expr.filters.visible=function(t){return!s.expr.filters.hidden(t)}),s.each({margin:"",padding:"",border:"Width"},(function(t,e){s.cssHooks[t+e]={expand:function(i){var n,s="string"==typeof i?i.split(" "):[i],r={};for(n=0;n<4;n++)r[t+kt[n]+e]=s[n]||s[n-2]||s[0];return r}}}));var Ct,Tt,Nt=/%20/g,St=/\[\]$/,Mt=/\r?\n/g,Pt=/#.*$/,Et=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,It=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,At=/^(?:GET|HEAD)$/,Ft=/^\/\//,Ht=/\?/,zt=/)<[^<]*)*<\/script>/gi,Lt=/^(?:select|textarea)/i,Ot=/\s+/,jt=/([?&])_=[^&]*/,Wt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Rt=s.fn.load,Yt={},Bt={},qt=["*/"]+["*"];try{Ct=n.href}catch(t){(Ct=e.createElement("a")).href="",Ct=Ct.href}function Xt(t){return function(e,i){if("string"!=typeof e&&(i=e,e="*"),s.isFunction(i))for(var n,r,o=e.toLowerCase().split(Ot),a=0,l=o.length;a=0){var r=t.slice(n,t.length);t=t.slice(0,n)}var o="GET";e&&(s.isFunction(e)?(i=e,e=void 0):"object"==typeof e&&(e=s.param(e,s.ajaxSettings.traditional),o="POST"));var a=this;return s.ajax({url:t,type:o,dataType:"html",data:e,complete:function(t,e,n){n=t.responseText,t.isResolved()&&(t.done((function(t){n=t})),a.html(r?s("
").append(n.replace(zt,"")).find(r):n)),i&&a.each(i,[n,e,t])}}),this},serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?s.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Lt.test(this.nodeName)||It.test(this.type))})).map((function(t,e){var i=s(this).val();return null==i?null:s.isArray(i)?s.map(i,(function(t,i){return{name:e.name,value:t.replace(Mt,"\r\n")}})):{name:e.name,value:i.replace(Mt,"\r\n")}})).get()}}),s.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(t,e){s.fn[e]=function(t){return this.on(e,t)}})),s.each(["get","post"],(function(t,e){s[e]=function(t,i,n,r){return s.isFunction(i)&&(r=r||n,n=i,i=void 0),s.ajax({type:e,url:t,data:i,success:n,dataType:r})}})),s.extend({getScript:function(t,e){return s.get(t,void 0,e,"script")},getJSON:function(t,e,i){return s.get(t,e,i,"json")},ajaxSetup:function(t,e){return e?Kt(t,s.ajaxSettings):(e=t,t=s.ajaxSettings),Kt(t,e),t},ajaxSettings:{url:Ct,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Tt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":qt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":!0,"text json":s.parseJSON,"text xml":s.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Xt(Yt),ajaxTransport:Xt(Bt),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,n,r,o,a,l,h,c,u=s.ajaxSetup({},e),d=u.context||u,p=d!==u&&(d.nodeType||d instanceof s)?s(d):s.event,f=s.Deferred(),g=s.Callbacks("once memory"),m=u.statusCode||{},v={},y={},_=0,b={readyState:0,setRequestHeader:function(t,e){if(!_){var i=t.toLowerCase();t=y[i]=y[i]||t,v[t]=e}return this},getAllResponseHeaders:function(){return 2===_?n:null},getResponseHeader:function(t){var e;if(2===_){ +if(!r)for(r={};e=Et.exec(n);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return void 0===e?null:e},overrideMimeType:function(t){return _||(u.mimeType=t),this},abort:function(t){return t=t||"abort",o&&o.abort(t),w(0,t),this}};function w(t,e,r,l){if(2!==_){_=2,a&&clearTimeout(a),o=void 0,n=l||"",b.readyState=t>0?4:0;var c,v,y,w,x,k=e,D=r?function(t,e,i){var n,s,r,o,a=t.contents,l=t.dataTypes,h=t.responseFields;for(s in h)s in i&&(e[h[s]]=i[s]);for(;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("content-type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)r=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),i[r]}(u,b,r):void 0;if(t>=200&&t<300||304===t)if(u.ifModified&&((w=b.getResponseHeader("Last-Modified"))&&(s.lastModified[i]=w),(x=b.getResponseHeader("Etag"))&&(s.etag[i]=x)),304===t)k="notmodified",c=!0;else try{v=function(t,e){t.dataFilter&&(e=t.dataFilter(e,t.dataType));var i,n,r,o,a,l,h,c,u=t.dataTypes,d={},p=u.length,f=u[0];for(i=1;i0&&(a=setTimeout((function(){b.abort("timeout")}),u.timeout));try{_=1,o.send(v,w)}catch(t){if(!(_<2))throw t;w(-1,t)}}else w(-1,"No Transport");return b},param:function(t,e){var i=[],n=function(t,e){e=s.isFunction(e)?e():e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=s.ajaxSettings.traditional),s.isArray(t)||t.jquery&&!s.isPlainObject(t))s.each(t,(function(){n(this.name,this.value)}));else for(var r in t)Ut(r,t[r],e,n);return i.join("&").replace(Nt,"+")}}),s.extend({active:0,lastModified:{},etag:{}});var Vt=s.now(),Jt=/(\=)\?(&|$)|\?\?/i;s.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return s.expando+"_"+Vt++}}),s.ajaxPrefilter("json jsonp",(function(t,e,i){var n="string"==typeof t.data&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if("jsonp"===t.dataTypes[0]||!1!==t.jsonp&&(Jt.test(t.url)||n&&Jt.test(t.data))){var r,o=t.jsonpCallback=s.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a=window[o],l=t.url,h=t.data,c="$1"+o+"$2";return!1!==t.jsonp&&(l=l.replace(Jt,c),t.url===l&&(n&&(h=h.replace(Jt,c)),t.data===h&&(l+=(/\?/.test(l)?"&":"?")+t.jsonp+"="+o))),t.url=l,t.data=h,window[o]=function(t){r=[t]},i.always((function(){window[o]=a,r&&s.isFunction(a)&&window[o](r[0])})),t.converters["script json"]=function(){return r||s.error(o+" was not called"),r[0]},t.dataTypes[0]="json","script"}})),s.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return s.globalEval(t),t}}}),s.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),s.ajaxTransport("script",(function(t){if(t.crossDomain){var i,n=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(s,r){(i=e.createElement("script")).async="async",t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(t,e){(e||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,n&&i.parentNode&&n.removeChild(i),i=void 0,e||r(200,"success"))},n.insertBefore(i,n.firstChild)},abort:function(){i&&i.onload(0,1)}}}}));var Gt,Qt,Zt=!!window.ActiveXObject&&function(){for(var t in Gt)Gt[t](0,1)},te=0;function ee(){try{return new window.XMLHttpRequest}catch(t){}}s.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&ee()||function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:ee,Qt=s.ajaxSettings.xhr(),s.extend(s.support,{ajax:!!Qt,cors:!!Qt&&"withCredentials"in Qt}), +s.support.ajax&&s.ajaxTransport((function(t){var e;if(!t.crossDomain||s.support.cors)return{send:function(i,n){var r,o,a=t.xhr();if(t.username?a.open(t.type,t.url,t.async,t.username,t.password):a.open(t.type,t.url,t.async),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(o in i)a.setRequestHeader(o,i[o])}catch(t){}a.send(t.hasContent&&t.data||null),e=function(i,o){var l,h,c,u,d;try{if(e&&(o||4===a.readyState))if(e=void 0,r&&(a.onreadystatechange=s.noop,Zt&&delete Gt[r]),o)4!==a.readyState&&a.abort();else{l=a.status,c=a.getAllResponseHeaders(),u={},(d=a.responseXML)&&d.documentElement&&(u.xml=d);try{u.text=a.responseText}catch(i){}try{h=a.statusText}catch(t){h=""}l||!t.isLocal||t.crossDomain?1223===l&&(l=204):l=u.text?200:404}}catch(t){o||n(-1,t)}u&&n(l,h,u,c)},t.async&&4!==a.readyState?(r=++te,Zt&&(Gt||(Gt={},s(window).unload(Zt)),Gt[r]=e),a.onreadystatechange=e):e()},abort:function(){e&&e(0,1)}}}));var ie,ne,se,re,oe={},ae=/^(?:toggle|show|hide)$/,le=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,he=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function ce(){return setTimeout(ue,0),re=s.now()}function ue(){re=void 0}function de(t,e){var i={};return s.each(he.concat.apply([],he.slice(0,e)),(function(){i[this]=t})),i}function pe(t){if(!oe[t]){var i=e.body,n=s("<"+t+">").appendTo(i),r=n.css("display");n.remove(),"none"!==r&&""!==r||(ie||((ie=e.createElement("iframe")).frameBorder=ie.width=ie.height=0),i.appendChild(ie),ne&&ie.createElement||((ne=(ie.contentWindow||ie.contentDocument).document).write((s.support.boxModel?"":"")+""),ne.close()),n=ne.createElement(t),ne.body.appendChild(n),r=s.css(n,"display"),i.removeChild(ie)),oe[t]=r}return oe[t]}s.fn.extend({show:function(t,e,i){var n,r;if(t||0===t)return this.animate(de("show",3),t,e,i);for(var o=0,a=this.length;o=l.duration+this.startTime){for(e in this.now=this.end,this.pos=this.state=1,this.update(),l.animatedProperties[this.prop]=!0,l.animatedProperties)!0!==l.animatedProperties[e]&&(o=!1);if(o){if(null==l.overflow||s.support.shrinkWrapBlocks||s.each(["","X","Y"],(function(t,e){a.style["overflow"+e]=l.overflow[t]})),l.hide&&s(a).hide(),l.hide||l.show)for(e in l.animatedProperties)s.style(a,e,l.orig[e]),s.removeData(a,"fxshow"+e,!0),s.removeData(a,"toggle"+e,!0);(n=l.complete)&&(l.complete=!1,n.call(a))}return!1}return l.duration==1/0?this.now=r:(i=r-this.startTime,this.state=i/l.duration,this.pos=s.easing[l.animatedProperties[this.prop]](this.state,i,0,1,l.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},s.extend(s.fx,{tick:function(){for(var t,e=s.timers,i=0;i-1?(r=(d=a.position()).top,o=d.left):(r=parseFloat(h)||0,o=parseFloat(c)||0),s.isFunction(e)&&(e=e.call(t,i,l)),null!=e.top&&(u.top=e.top-l.top+r),null!=e.left&&(u.left=e.left-l.left+o),"using"in e?e.using.call(t,u):a.css(u)}},s.fn.extend({position:function(){if(!this[0])return null;var t=this[0],e=this.offsetParent(),i=this.offset(),n=me.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(s.css(t,"marginTop"))||0,i.left-=parseFloat(s.css(t,"marginLeft"))||0,n.top+=parseFloat(s.css(e[0],"borderTopWidth"))||0,n.left+=parseFloat(s.css(e[0],"borderLeftWidth"))||0,{top:i.top-n.top,left:i.left-n.left}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||e.body;t&&!me.test(t.nodeName)&&"static"===s.css(t,"position");)t=t.offsetParent;return t}))}}),s.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i=/Y/.test(e);s.fn[t]=function(n){return s.access(this,(function(t,n,r){var o=ve(t);if(void 0===r)return o?e in o?o[e]:s.support.boxModel&&o.document.documentElement[n]||o.document.body[n]:t[n];o?o.scrollTo(i?s(o).scrollLeft():r,i?r:s(o).scrollTop()):t[n]=r}),t,n,arguments.length,null)}})),s.each({Height:"height",Width:"width"},(function(t,e){ +var i="client"+t,n="scroll"+t,r="offset"+t;s.fn["inner"+t]=function(){var t=this[0];return t?t.style?parseFloat(s.css(t,e,"padding")):this[e]():null},s.fn["outer"+t]=function(t){var i=this[0];return i?i.style?parseFloat(s.css(i,e,t?"margin":"border")):this[e]():null},s.fn[e]=function(t){return s.access(this,(function(t,e,o){var a,l,h,c;return s.isWindow(t)?(l=(a=t.document).documentElement[i],s.support.boxModel&&l||a.body&&a.body[i]||l):9===t.nodeType?(a=t.documentElement)[i]>=a[n]?a[i]:Math.max(t.body[n],a[n],t.body[r],a[r]):void 0===o?(h=s.css(t,e),c=parseFloat(h),s.isNumeric(c)?c:h):void s(t).css(e,o)}),e,t,arguments.length,null)}})),t.exports=window.jQuery=window.$=s},46322:(t,e,i)=>{var n,s,r;s=[i(23127)],void 0===(r="function"==typeof(n=function(t){var e,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(t.event.fixHooks)for(var o=n.length;o;)t.event.fixHooks[n[--o]]=t.event.mouseHooks;var a=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=s.length;e;)this.addEventListener(s[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",a.getLineHeight(this)),t.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=s.length;e;)this.removeEventListener(s[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var s=n||window.event,o=r.call(arguments,1),l=0,u=0,d=0,p=0,f=0,g=0;if((n=t.event.fix(s)).type="mousewheel","detail"in s&&(d=-1*s.detail),"wheelDelta"in s&&(d=s.wheelDelta),"wheelDeltaY"in s&&(d=s.wheelDeltaY),"wheelDeltaX"in s&&(u=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(u=-1*d,d=0),l=0===d?u:d,"deltaY"in s&&(l=d=-1*s.deltaY),"deltaX"in s&&(u=s.deltaX,0===d&&(l=-1*u)),0!==d||0!==u){if(1===s.deltaMode){var m=t.data(this,"mousewheel-line-height");l*=m,d*=m,u*=m}else if(2===s.deltaMode){var v=t.data(this,"mousewheel-page-height");l*=v,d*=v,u*=v}if(p=Math.max(Math.abs(d),Math.abs(u)),(!i||p=1?"floor":"ceil"](l/i),u=Math[u>=1?"floor":"ceil"](u/i),d=Math[d>=1?"floor":"ceil"](d/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=n.clientX-y.left,g=n.clientY-y.top}return n.deltaX=u,n.deltaY=d,n.deltaFactor=i,n.offsetX=f,n.offsetY=g,n.deltaMode=0,o.unshift(n,l,u,d),e&&clearTimeout(e),e=setTimeout(h,200),(t.event.dispatch||t.event.handle).apply(this,o)}}function h(){i=null}function c(t,e){return a.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0} +t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?n.apply(e,s):n)||(t.exports=r)},94822:(t,e,i)=>{!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,i=t.ui.mouse.prototype,n=i._mouseInit,s=i._mouseDestroy;i._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,r(t,"mouseover"),r(t,"mousemove"),r(t,"mousedown"))},i._touchMove=function(t){e&&(this._touchMoved=!0,r(t,"mousemove"))},i._touchEnd=function(t){e&&(r(t,"mouseup"),r(t,"mouseout"),this._touchMoved||r(t,"click"),e=!1)},i._mouseInit=function(){this.element.bind({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),n.call(this)},i._mouseDestroy=function(){this.element.unbind({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),s.call(this)}}function r(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}}(i(23127))},51699:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,s):n)||(t.exports=r)},39525:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?n.apply(e,s):n)||(t.exports=r)},58264:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,s):n)||(t.exports=r)},20294:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?n.apply(e,s):n)||(t.exports=r)},42353:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.ui.plugin={add:function(e,i,n){var s,r=t.ui[e].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,r=t.plugins[e];if(r&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){ +return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?n.apply(e,s):n)||(t.exports=r)},78734:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?n.apply(e,s):n)||(t.exports=r)},15925:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&r.length?r:t(this[0].ownerDocument||document)}})?n.apply(e,s):n)||(t.exports=r)},34912:(t,e,i)=>{var n,s,r;s=[i(23127)],void 0===(r="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?n.apply(e,s):n)||(t.exports=r)},62066:(t,e,i)=>{var n,s,r;s=[i(23127),i(34912)],void 0===(r="function"==typeof(n=function(t){var e,i=0,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)try{(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove")}catch(t){}e(i)}),t.widget=function(e,i,n){var s,r,o,a={},l=e.split(".")[0],h=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},s=t[l][e],r=t[l][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(o=new i).options=t.widget.extend({},o.options),t.each(n,(function(e,n){t.isFunction(n)?a[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,r=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=r,e}}():a[e]=n})),r.prototype=t.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||e},a,{constructor:r,namespace:l,widgetName:e,widgetFullName:h}),s?(t.each(s._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)})),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var i,s,r=n.call(arguments,1),o=0,a=r.length;o",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,r,o=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(o={},n=e.split("."),e=n.shift(),n.length){for(s=o[e]=t.widget.extend({},this.options[e]),r=0;r{var n,s,r;s=[i(23127),i(34912),i(20294)],void 0===(r="function"==typeof(n=function(t){var e;function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("
"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,s)}function s(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function r(e,i){ +for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}return t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return r(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,r;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):s&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("
")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,r,o=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=t(""+o+""),e[a?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):t("").addClass(this._triggerClass).html(r?t("").attr({src:r,alt:s,title:s}):s)),e[a?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,r=new Date(2009,11,20),o=this._get(t,"dateFormat");o.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;si&&(i=t[s].length,n=s);return n},r.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,o){var a,l,h,c,u,d=this._dialogInst +;return d||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t(""),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",d)),r(d.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,h/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(i){var n,s=t(i),r=t.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||s.removeClass(this.markerClassName).empty(),e===r&&(e=null))},_enableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,r.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,r.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,s,o,a,l,h;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(r(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each((function(){return!(o|="fixed"===t(this).css("position"))})),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,o),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),h):i.dpDiv[l||"show"](l?h:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,e=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,r=this._getNumberOfMonths(i),o=r[1],a=i.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&s.apply(a.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&i.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),i.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout((function(){ +n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year:first").replaceWith(i.yearshtml),n=i.yearshtml=null}),0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),h=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-o:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+r>h&&h>r?Math.abs(r+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s,r,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),n=this._get(o,"duration"),s=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),n,s):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(r=this._get(o,"onClose"))&&r.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i+("M"===n?this._get(r,"showCurrentAtPos"):0),n),this._updateDatepicker(r))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10), +this._notifyChange(r),this._adjustDate(s)},_selectDay:function(e,i,n,s){var r,o=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((r=this._getInst(o[0])).selectedDay=r.currentDay=t("a",s).html(),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,r=this._get(e,"altField");r&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(r).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,r,o,a,l=0,h=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),u=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,_=!1,b=function(t){var i=s+1-1)for(m=1,v=y;!(v<=(r=this._getDaysInMonth(g,m-1)));)m++,v-=r;if((a=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+112?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,r=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),s===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,i,n,s,r,o,a,l,h,c,u,d,p,f,g,m,v,y,_,b,w,x,k,D,C,T,N,S,M,P,E,I,A,F,H,z,L,O,j,W=new Date,R=this._daylightSavingAdjust(new Date(W.getFullYear(),W.getMonth(),W.getDate())),Y=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),X=this._get(t,"navigationAsDateFormat"),$=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),U=this._get(t,"stepMonths"),V=1!==$[0]||1!==$[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),Z=t.drawMonth-K,tt=t.drawYear;if(Z<0&&(Z+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-$[0]*$[1]+1,Q.getDate())),e=G&&ee;)--Z<0&&(Z=11,tt--);for(t.drawMonth=Z,t.drawYear=tt,i=this._get(t,"prevText"), +i=X?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Z-U,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,Z)?""+i+"":q?"":""+i+"",s=this._get(t,"nextText"),s=X?this.formatDate(s,this._daylightSavingAdjust(new Date(tt,Z+U,1)),this._getFormatConfig(t)):s,r=this._canAdjustMonth(t,1,tt,Z)?""+s+"":q?"":""+s+"",o=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?J:R,o=X?this.formatDate(o,a,this._getFormatConfig(t)):o,l=t.inline?"":"",h=B?"
"+(Y?l:"")+(this._isInRange(t,a)?"":"")+(Y?"":l)+"
":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",x=0;x<$[0];x++){for(k="",this.maxRows=4,D=0;D<$[1];D++){if(C=this._daylightSavingAdjust(new Date(tt,Z,t.selectedDay)),T=" ui-corner-all",N="",V){if(N+="
"}for(N+="
"+(/all|left/.test(T)&&0===x?Y?r:n:"")+(/all|right/.test(T)&&0===x?Y?n:r:"")+this._generateMonthYearHeader(t,Z,tt,G,Q,x>0||D>0,f,g)+"
",S=u?"":"",w=0;w<7;w++)S+="";for(N+=S+"",P=this._getDaysInMonth(tt,Z),tt===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),E=(this._getFirstDayOfMonth(tt,Z)-c+7)%7,I=Math.ceil((E+P)/7),A=V&&this.maxRows>I?this.maxRows:I,this.maxRows=A, +F=this._daylightSavingAdjust(new Date(tt,Z,1-E)),H=0;H",z=u?"":"",w=0;w<7;w++)L=m?m.apply(t.input?t.input[0]:null,[F]):[!0,""],j=(O=F.getMonth()!==Z)&&!y||!L[0]||G&&FQ,z+="",F.setDate(F.getDate()+1),F=this._daylightSavingAdjust(F);N+=z+""}++Z>11&&(Z=0,tt++),k+=N+="
"+this._get(t,"weekHeader")+"=5?" class='ui-datepicker-week-end'":"")+">"+p[M]+"
"+this._get(t,"calculateWeek")(F)+""+(O&&!v?" ":j?""+F.getDate()+"":""+F.getDate()+"")+"
"+(V?"
"+($[0]>0&&D===$[1]-1?"
":""):"")}b+=k}return b+=h,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,s,r,o,a){var l,h,c,u,d,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="
",b="";if(r||!m)b+=""+o[e]+"";else{for(l=n&&n.getFullYear()===i,h=s&&s.getFullYear()===i,b+=""}if(y||(_+=b+(!r&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",r||!v)_+=""+i+"";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e})(u[0]),g=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!r&&m&&v?"":" ")+b),_+="
"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,r)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(), +t.drawYear=t.selectedYear=o.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&en?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),o=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||e.getTime()>=s.getTime())&&(!r||e.getTime()<=r.getTime())&&(!o||e.getFullYear()>=o)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker})?n.apply(e,s):n)||(t.exports=r)},29224:(t,e,i)=>{var n,s,r;s=[i(23127),i(52282),i(51699),i(42353),i(8002),i(78734),i(15925),i(34912),i(62066)], +void 0===(r="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("
").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()), +this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0, +left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options,r=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,t(r).width()-this.helperProportions.width-this.margins.left,(t(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,r,o=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(), +left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),o.grid&&(s=o.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,h=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-o.grid[1]:s+o.grid[1]:s,r=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-o.grid[0]:r+o.grid[0]:r),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){this.isOver?(this.isOver=0,n.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(e),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",e,s))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs, +this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&t.contains(r.element[0],this.element[0])&&(s=!1),s}))),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},e.target=r.currentItem[0],r._mouseCapture(e,!0),r._mouseStart(e,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",e),n.dropped=r.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(e),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",e,r._uiHash(r)),r._mouseStop(e,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,r=!1,o=n.scrollParentNotHidden[0],a=n.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+o.offsetHeight-e.pageY=0;d--)h=(l=n.snapElements[d].left-n.margins.left)+n.snapElements[d].width,u=(c=n.snapElements[d].top-n.margins.top)+n.snapElements[d].height,vh+g||_u+g||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(c-_)<=g,r=Math.abs(u-y)<=g,o=Math.abs(l-v)<=g,a=Math.abs(h-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left)),p=s||r||o||a,"outer"!==f.snapMode&&(s=Math.abs(c-y)<=g,r=Math.abs(u-_)<=g,o=Math.abs(l-m)<=g,a=Math.abs(h-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||r||o||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||r||o||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,r=n.options,o=t.makeArray(t(r.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));o.length&&(s=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each((function(e){t(this).css("zIndex",s+e)})),this.css("zIndex",s+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable})?n.apply(e,s):n)||(t.exports=r)},52282:(t,e,i)=>{var n,s,r +;s=[i(23127),i(58264),i(34912),i(62066)],void 0===(r="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,r=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(s&&!r&&this._mouseCapture(i)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){ +return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,s):n)||(t.exports=r)},98135:(t,e,i)=>{var n,s,r;s=[i(23127),i(52282),i(39525),i(42353),i(34912),i(62066)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n,s=i&&"left"===i?"scrollLeft":"scrollTop";return e[s]>0||(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){ +case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,i,n,s,r,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i"),this._addClass(r,"ui-resizable-handle "+s),r.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(r);this._renderAxis=function(e){var i,n,s,r;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,r),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(r=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=r&&r[1]?r[1]:"se")})),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s,r=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),r.containment&&(i+=t(r.containment).scrollLeft()||0,n+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0}, +_mouseDrag:function(e){var i,n,s=this.originalMousePosition,r=this.axis,o=e.pageX-s.left||0,a=e.pageY-s.top||0,l=this._change[r];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,s,r,o,a,l,h=this.options;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:this.sizeDiff.height,r=n?0:this.sizeDiff.width,o={width:this.helper.width()-r,height:this.helper.height()-s},a=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,l=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,h.animate||this.element.css(t.extend(o,{top:l,left:a})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,s,r,o=this.options;r={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),n>r.minHeight&&(r.minHeight=n),it.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return r&&(t.width=e.minWidth),o&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),r&&h&&(t.left=a-e.minWidth),n&&h&&(t.left=a-e.maxWidth),o&&c&&(t.top=l-e.minHeight),s&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e
"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size, +originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,r=s.length&&/textarea/i.test(s[0].nodeName),o=r&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=r?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,s,r,o,a,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=l._num(e.css("padding"+n))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,r=l.containerSize.width,o=l._hasScroll(d,"left")?d.scrollWidth:r,a=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:n.left,top:n.top,width:o,height:a}))},resize:function(e){var i,n,s,r,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,h=o.position,c=o._aspectRatio||e.shiftKey,u={top:0,left:0},d=o.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-u.left),c&&(o.size.height=o.size.width/o.aspectRatio,p=!1),o.position.left=a.helper?l.left:0),h.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),c&&(o.size.width=o.size.height*o.aspectRatio,p=!1),o.position.top=o._helper?l.top:0),s=o.containerElement.get(0)===o.element.parent().get(0),r=/relative|absolute/.test(o.containerElement.css("position")),s&&r?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-u.left:o.offset.left-l.left)),n=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-u.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,c&&(o.size.height=o.size.width/o.aspectRatio, +p=!1)),n+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-n,c&&(o.size.width=o.size.height*o.aspectRatio,p=!1)),p||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.containerPosition,r=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,h=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var n=t(this).resizable("instance"),s=n.options,r=n.originalSize,o=n.originalPosition,a={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0};t(s.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},r=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,(function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||null)})),e.css(s)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,s=i.size,r=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,h=l[0]||1,c=l[1]||1,u=Math.round((s.width-r.width)/h)*h,d=Math.round((s.height-r.height)/c)*c,p=r.width+u,f=r.height+d,g=n.maxWidth&&n.maxWidthp,y=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=h),y&&(f+=c),g&&(p-=h),m&&(f-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=o.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=o.left-u):((f-c<=0||p-h<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f, +i.position.top=o.top-d):(f=c-e.height,i.size.height=f,i.position.top=o.top+r.height-f),p-h>0?(i.size.width=p,i.position.left=o.left-u):(p=h-e.width,i.size.width=p,i.position.left=o.left+r.width-p))}}),t.ui.resizable})?n.apply(e,s):n)||(t.exports=r)},68363:(t,e,i)=>{var n,s,r;s=[i(23127),i(52282),i(51699),i(58264),i(15925),i(34912),i(62066)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,r,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt), +this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",o.cursor),this.storedStylesheet=t("").appendTo(r)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,r,o=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(s=(n=this.items[i]).item[0], +(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,o={};r&&"x"!==r||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,o=r+t.width,a=t.top,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||n+h>a&&n+hr&&e+ct[this.floating?"width":"height"]?p:r0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,r,o=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function h(){o.push(this)}for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(h);return t(o)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i=0;i--)for(n=(s=t(d[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(u.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem +}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=u.length-1;i>=0;i--)for(o=u[i][1],n=0,h=(a=u[i][0]).length;n=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t(" ",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,r,o,a,l,h,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0) +;if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,o=(c=d.floating||this._isFloating(this.currentItem))?"left":"top",a=c?"width":"height",u=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[o],h=!1,e[u]-l>this.items[n][a]/2&&(h=!0),Math.abs(e[u]-l)this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1],o=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity), +this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i{},56479:(t,e,i)=>{"use strict";var n=i(23127),s=i(32563).mobiletouch;!function(t,e,i){function n(i,n){n=n||i+"outside";var s=t(),r=i+"."+n+"-special-event";function o(e){t(s).each((function(){var i=t(this);this===e.target||i.has(e.target).length||i.triggerHandler(n,[e.target])}))}t.event.special[n]={setup:function(){delete(s=s.add(this)).prevObject,1===s.length&&t(e).bind(r,o)},teardown:function(){delete(s=s.not(this)).prevObject,0===s.length&&t(e).unbind(r)},add:function(t){var e=t.handler;t.handler=function(t,i){t.target=i,e.apply(this,arguments)}}}}t.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),(function(t){n(t)})),n("focusin","focusoutside"),n("focusout","bluroutside"),s&&(n("touchstart","mousedownoutside"),n("touchmove","mousemoveoutside"),n("touchend","mouseupoutside")),t.addOutsideEvent=n}(n,document)},74312:(t,e,i)=>{"use strict";i.r(e);i(59535),i(29224),i(68363),i(72994),i(98135),i(94822),i(11773)},35190:(t,e,i)=>{"use strict";i.d(e,{lazyJqueryUI:()=>a});i(23127);var n=i(23127);let s;async function r(t){if(!(t in n.fn))return s||(s=i.e(1729).then(i.bind(i,74312)).then()),s}class o{constructor(t){this._$elem=t}draggable(){const t=arguments,e=this._$elem;return r("draggable").then(()=>e.draggable.apply(e,t))}resizable(){const t=arguments,e=this._$elem;return r("resizable").then(()=>e.resizable.apply(e,t))}sortable(){const t=arguments,e=this._$elem;return r("sortable").then(()=>e.sortable.apply(e,t))}datepicker(){const t=arguments,e=this._$elem;return r("datepicker").then(()=>e.datepicker.apply(e,t))}}function a(t){return new o(n(t))}},11773:(t,e,i)=>{var n=i(23127);n.ui.sortable.prototype._addClass=function(t,e){return"string"==typeof t||null===t?this.element.addClass(t):t.addClass(e),this},n.ui.sortable.prototype._removeClass=function(t,e){return"string"==typeof t||null===t?this.element.removeClass(t):t.removeClass(e),this}}}]); \ No newline at end of file diff --git a/charting_library/bundles/last-chance-banner.0210ab3cfb4e94797db1.js b/charting_library/bundles/last-chance-banner.0210ab3cfb4e94797db1.js new file mode 100644 index 00000000..8d2cb51f --- /dev/null +++ b/charting_library/bundles/last-chance-banner.0210ab3cfb4e94797db1.js @@ -0,0 +1 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1611],{33492:e=>{e.exports={banner:"banner-EZ3DKk2H","countdown-section":"countdown-section-EZ3DKk2H","main-section":"main-section-EZ3DKk2H",title:"title-EZ3DKk2H","main-text":"main-text-EZ3DKk2H",image:"image-EZ3DKk2H"}},66359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{renderLastChanceBanner:()=>p});var o=n(59496),a=n(87995),r=n(28353),i=n(77975),s=n(45345),c=n(26843),u=n(56299),l=n(27591),m=n(24136),d=n(93299);function f(e){const{expiration:t,maxDiscount:n="",lastChanceType:a}=e,f=(0,i.useWatchedValueReadonly)({watchedValue:s.watchedTheme})===c.StdTheme.Light?l:m,p=r.t("Explore special offers"),h=n.toString();let w=r.t("Wait, don't go"),b=r.t("Get up to {discount}% off a new plan if you decide to renew with us before your current one ends.").format({discount:h});switch(a){case d.LastChanceType.TwoDays:w=r.t("Time's running out!"),b=r.t("Your subscription expires soon – claim your special offer and save up to {discount}% before it's too late.").format({discount:h});break;case d.LastChanceType.Hours:w=r.t("The countdown has started."),b=r.t("Your subscription isn't set to auto-renew, so you'll lose your benefits very soon... This is your last chance to claim up to {discount}% discount.").format({discount:h})}return o.createElement(u.OfferBanner,{expiration:t,title:w,mainTitle:b,buttonProps:{href:"/gopro/?source=profile&feature=last_chance_banner"},buttonText:p,imgSrc:f})}function p(e,t){a.render(o.createElement(f,{...t}),e)}},56299:(e,t,n)=>{"use strict";n.d(t,{OfferBanner:()=>u});var o=n(59496),a=n(28353),r=n(53746),i=n(82760),s=n(5437),c=n(33492);function u(e){const{expiration:t,title:n,mainTitle:u,buttonProps:l,buttonText:m=a.t("Learn more"),imgSrc:d}=e;return o.createElement("article",{className:c.banner},o.createElement("section",{className:c["main-section"]},o.createElement("h2",{className:c.title},n),o.createElement("p",{className:c["main-text"]},u),o.createElement(s.RoundAnchorButton,{className:c["cta-button"],...l},m)),o.createElement("section",{className:c["countdown-section"]},o.createElement("img",{src:d,className:c.image,role:"presentation"}),o.createElement(r.OfferCountdown,{theme:i.CountdownTheme.Profile,expiration:t,size:"m"})))}}}]); \ No newline at end of file diff --git a/charting_library/bundles/lazy-velocity.c4899589f501eea00e5f.js b/charting_library/bundles/lazy-velocity.c4899589f501eea00e5f.js new file mode 100644 index 00000000..fd7ffc34 --- /dev/null +++ b/charting_library/bundles/lazy-velocity.c4899589f501eea00e5f.js @@ -0,0 +1,15 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2112],{37356:(e,t,r)=>{var a,i,n=r(23127);!function(e){"use strict";if(!e.jQuery){var t=function(e,r){return new t.fn.init(e,r)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?a[n.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var r;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!i.call(e,"constructor")&&!i.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(r in e);return void 0===r||i.call(e,r)},t.each=function(e,t,r){var a=0,i=e.length,n=l(e);if(r){if(n)for(;a0&&r-1 in e))}}(window),function(n){"use strict";"object"==typeof e.exports?e.exports=n():void 0===(i="function"==typeof(a=n)?a.call(t,r,t,e):a)||(e.exports=i)}((function(){"use strict";return function(e,t,r,a){var i,o=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]>=0?t:Math.max(0,a+t),s=(r<0?a+r:Math.min(r,a))-o;if(s>0)if(n=new Array(s),this.charAt)for(i=0;i=0}:function(e,t){for(var r=0;r1e-4&&Math.abs(s.v)>1e-4;);return n?function(e){return u[e*(u.length-1)|0]}:c}}();m.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}}, +p.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],(function(e,t){m.Easings[t[0]]=V.apply(null,t[1])}));var y=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205", +lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return r}}},register:function(){o&&!(o>9)||m.State.isGingerbread||(y.Lists.transformsBase=y.Lists.transformsBase.concat(y.Lists.transforms3D));for(var e=0;e8)&&3===i.split(" ").length&&(i+=" 1"),i;case"inject": +return/^rgb/.test(a)?a:(o<=8?4===a.split(" ").length&&(a=a.split(/\s+/).slice(0,3).join(" ")):3===a.split(" ").length&&(a+=" 1"),(o<=8?"rgb":"rgba")+"("+a.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function r(e,t,r){if("border-box"===y.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(r||!1)){var a,i,n=0,o="width"===e?["Left","Right"]:["Top","Bottom"],s=["padding"+o[0],"padding"+o[1],"border"+o[0]+"Width","border"+o[1]+"Width"];for(a=0;a=2&&console.log("Get "+r+": "+s),s},setPropertyValue:function(e,r,a,i,n){var s=r;if("scroll"===r)n.container?n.container["scroll"+n.direction]=a:"Left"===n.direction?t.scrollTo(a,n.alternateValue):t.scrollTo(n.alternateValue,a);else if(y.Normalizations.registered[r]&&"transform"===y.Normalizations.registered[r]("name",e))y.Normalizations.registered[r]("inject",e,a),s="transform",a=w(e).transformCache[r];else{if(y.Hooks.registered[r]){var l=r,u=y.Hooks.getRoot(r);i=i||y.getPropertyValue(e,u),a=y.Hooks.injectValue(l,a,i),r=u}if(y.Normalizations.registered[r]&&(a=y.Normalizations.registered[r]("inject",e,a),r=y.Normalizations.registered[r]("name",e)),s=y.Names.prefixCheck(r)[0],o<=8)try{e.style[s]=a}catch(e){m.debug&&console.log("Browser does not support ["+a+"] for ["+s+"]")}else{var c=w(e);c&&c.isSVG&&y.Names.SVGAttribute(r)?e.setAttribute(r,a):e.style[s]=a} +m.debug>=2&&console.log("Set "+r+" ("+s+"): "+a)}return[s,a]},flushTransformCache:function(e){var t="",r=w(e);if((o||m.State.isAndroid&&!m.State.isChrome)&&r&&r.isSVG){var a=function(t){return parseFloat(y.getPropertyValue(e,t))},i={translate:[a("translateX"),a("translateY")],skewX:[a("skewX")],skewY:[a("skewY")],scale:1!==a("scale")?[a("scale"),a("scale")]:[a("scaleX"),a("scaleY")],rotate:[a("rotateZ"),0,0]};p.each(w(e).transformCache,(function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),i[e]&&(t+=e+"("+i[e].join(" ")+") ",delete i[e])}))}else{var n,s;p.each(w(e).transformCache,(function(r){if(n=w(e).transformCache[r],"transformPerspective"===r)return s=n,!0;9===o&&"rotateZ"===r&&(r="rotate"),t+=r+n+" "})),s&&(t="perspective"+s+" "+t)}y.setPropertyValue(e,"transform",t)}};y.Hooks.register(),y.Normalizations.register(),m.hook=function(e,t,r){var a;return e=d(e),p.each(e,(function(e,i){if(void 0===w(i)&&m.init(i),void 0===r)void 0===a&&(a=y.getPropertyValue(i,t));else{var n=y.setPropertyValue(i,t,r);"transform"===n[0]&&m.CSS.flushTransformCache(i),a=n}})),a};var v=function(){var e;function a(){return i?h.promise||null:n}var i,n,o,s,l,u,g=arguments[0]&&(arguments[0].p||p.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||f.isString(arguments[0].properties));f.isWrapped(this)?(i=!1,o=0,s=this,n=this):(i=!0,o=1,s=g?arguments[0].elements||arguments[0].e:arguments[0]);var h={promise:null,resolver:null,rejecter:null};if(i&&m.Promise&&(h.promise=new m.Promise((function(e,t){h.resolver=e,h.rejecter=t}))),g?(l=arguments[0].properties||arguments[0].p,u=arguments[0].options||arguments[0].o):(l=arguments[o],u=arguments[o+1]),s=d(s)){var b,x=s.length,k=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(l)&&!p.isPlainObject(u)){var V=o+1;u={};for(var F=V;F=4&&"("===H?F++:(F&&F<5||F>=4&&")"===H&&--F<5)&&(F=0),0===E&&"r"===H||1===E&&"g"===H||2===E&&"b"===H||3===E&&"a"===H||E>=3&&"("===H?(3===E&&"a"===H&&(N=1),E++):N&&","===H?++N>3&&(E=N=0):(N&&E<(N?5:4)||E>=(N?4:3)&&")"===H&&--E<(N?5:4))&&(E=N=0)}}V===b.length&&T===c.length||(m.debug&&console.error('Trying to pattern match mis-matched strings ["'+c+'", "'+b+'"]'),s=void 0),s&&(C.length?(m.debug&&console.log('Pattern found "'+s+'" -> ',C,A,"["+b+","+c+"]"),b=C,c=A,w=S=""):s=void 0)}s||(b=(x=k(a,b))[0],S=x[1],c=(x=k(a,c))[0].replace(/^([+-\/*])=/,(function(e,t){return P=t,""})),w=x[1],b=parseFloat(b)||0,c=parseFloat(c)||0,"%"===w&&(/^(fontSize|lineHeight)$/.test(a)?(c/=100,w="em"):/^scale/.test(a)?(c/=100,w=""):/(Red|Green|Blue)$/i.test(a)&&(c=c/100*255,w="")));if(/[\/*]/.test(P))w=S;else if(S!==w&&0!==b)if(0===c)w=S;else{i=i||function(){var a={myParent:e.parentNode||r.body,position:y.getPropertyValue(e,"position"),fontSize:y.getPropertyValue(e,"fontSize")},i=a.position===j.lastPosition&&a.myParent===j.lastParent,n=a.fontSize===j.lastFontSize;j.lastParent=a.myParent,j.lastPosition=a.position,j.lastFontSize=a.fontSize;var o={};if(n&&i)o.emToPx=j.lastEmToPx,o.percentToPxWidth=j.lastPercentToPxWidth,o.percentToPxHeight=j.lastPercentToPxHeight;else{var s=g&&g.isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div");m.init(s),a.myParent.appendChild(s),p.each(["overflow","overflowX","overflowY"],(function(e,t){m.CSS.setPropertyValue(s,t,"hidden")})),m.CSS.setPropertyValue(s,"position",a.position),m.CSS.setPropertyValue(s,"fontSize",a.fontSize),m.CSS.setPropertyValue(s,"boxSizing","content-box"),p.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],(function(e,t){m.CSS.setPropertyValue(s,t,"100%")})),m.CSS.setPropertyValue(s,"paddingLeft","100em"),o.percentToPxWidth=j.lastPercentToPxWidth=(parseFloat(y.getPropertyValue(s,"width",null,!0))||1)/100,o.percentToPxHeight=j.lastPercentToPxHeight=(parseFloat(y.getPropertyValue(s,"height",null,!0))||1)/100,o.emToPx=j.lastEmToPx=(parseFloat(y.getPropertyValue(s,"paddingLeft"))||1)/100,a.myParent.removeChild(s)}return null===j.remToPx&&(j.remToPx=parseFloat(y.getPropertyValue(r.body,"fontSize"))||16),null===j.vwToPx&&(j.vwToPx=parseFloat(t.innerWidth)/100,j.vhToPx=parseFloat(t.innerHeight)/100),o.remToPx=j.remToPx,o.vwToPx=j.vwToPx,o.vhToPx=j.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(o),e),o}();var I=/margin|padding|left|right|width|text|word|letter/i.test(a)||/X$/.test(a)||"x"===a?"x":"y";switch(S){case"%":b*="x"===I?i.percentToPxWidth:i.percentToPxHeight;break;case"px":break;default:b*=i[S+"ToPx"]}switch(w){case"%":b*=1/("x"===I?i.percentToPxWidth:i.percentToPxHeight);break;case"px":break;default:b*=1/i[w+"ToPx"]}}switch(P){case"+":c=b+c;break;case"-":c=b-c;break;case"*":c*=b;break;case"/":c=b/c}d[a]={rootPropertyValue:u,startValue:b,currentValue:b,endValue:c,unitType:w,easing:h},s&&(d[a].pattern=s), +m.debug&&console.log("tweensContainer ("+a+"): "+JSON.stringify(d[a]),e)}else m.debug&&console.log("Skipping ["+l+"] due to a lack of browser support.")};for(var q in l)if(l.hasOwnProperty(q)){var z=y.Names.camelCase(q),R=H(l[q]);if(c(y.Lists.colors)){var M=R[0],$=R[1],B=R[2];if(y.RegEx.isHex.test(M)){for(var W=["Red","Green","Blue"],I=y.Values.hexToRgb(M),D=B?y.Values.hexToRgb(B):void 0,G=0;G0?i=o:r=o}while(Math.abs(n)>s&&++u=o?b(t,s):0===l?s:w(t,r,r+c)}var P=!1;function k(){P=!0,e===r&&a===i||x()}var V=function(t){return P||k(),e===r&&a===i?t:0===t?0:1===t?1:y(S(t),r,i)};V.getControlPoints=function(){return[{x:e,y:r},{x:a,y:i}]};var T="generateBezier("+[e,r,a,i]+")";return V.toString=function(){return T},V}function T(e,t){var r=e;return f.isString(e)?m.Easings[e]||(r=!1):r=f.isArray(e)&&1===e.length?k.apply(null,e):f.isArray(e)&&2===e.length?h.apply(null,e.concat([t])):!(!f.isArray(e)||4!==e.length)&&V.apply(null,e),!1===r&&(r=m.Easings[m.defaults.easing]?m.defaults.easing:"swing"),r}function C(e){if(e){var t=m.timestamp&&!0!==e?e:l.now(),r=m.State.calls.length;r>1e4&&(m.State.calls=function(e){for(var t=-1,r=e?e.length:0,a=[];++t{e.exports={"css-value-chart-controls-bar-height-with-border":"calc(38px + 1px)","css-value-chart-controls-bar-border":"1px"}},70606:()=>{},24780:e=>{e.exports={"tv-spinner__container-rotate":"tv-spinner__container-rotate-z2AhmXBd"}},25966:e=>{e.exports={"tv-transition--fade-in":"tv-transition--fade-in-VA2P0ZT5","tv-transition--fade-out":"tv-transition--fade-out-VA2P0ZT5","tv-transition--slide-out":"tv-transition--slide-out-VA2P0ZT5"}},65592:e=>{e.exports={container:"container-RqLxZVKU",inner:"inner-RqLxZVKU","border-left":"border-left-RqLxZVKU","border-right":"border-right-RqLxZVKU","border-top":"border-top-RqLxZVKU","border-bottom":"border-bottom-RqLxZVKU","top-right-radius":"top-right-radius-RqLxZVKU","top-left-radius":"top-left-radius-RqLxZVKU","bottom-right-radius":"bottom-right-radius-RqLxZVKU","bottom-left-radius":"bottom-left-radius-RqLxZVKU"}},74228:()=>{},4103:e=>{e.exports={css_value_currency_label_radius:"4",css_wrapper_margin:"1",css_row_left_right_margin:"3",css_row_left_right_padding:"6",css_first_row_top_padding:"4",css_fade_height:"10","price-axis-currency-label-wrapper":"price-axis-currency-label-wrapper-vSuZFrDG","price-axis-currency-label":"price-axis-currency-label-vSuZFrDG",hidden:"hidden-vSuZFrDG",row:"row-vSuZFrDG",readonly:"readonly-vSuZFrDG","price-axis-currency-label-fade":"price-axis-currency-label-fade-vSuZFrDG","price-axis-currency-label-text":"price-axis-currency-label-text-vSuZFrDG","price-axis-currency-label-arrow-down":"price-axis-currency-label-arrow-down-vSuZFrDG"}},43842:e=>{e.exports={labelwidth:"19px",labelheight:"19px",bordersize:"2px",bottommargin:"5px",gearheight:"15px",gearwidth:"15px","price-axis-stub":"price-axis-stub-MAhpkWoV",wrapper:"wrapper-MAhpkWoV",label:"label-MAhpkWoV",symbol:"symbol-MAhpkWoV",gear:"gear-MAhpkWoV","fixed-gear":"fixed-gear-MAhpkWoV","fixed-symbol":"fixed-symbol-MAhpkWoV"}},1597:()=>{},97845:()=>{},98033:e=>{e.exports={"css-value-header-toolbar-height":"38px"}},87027:e=>{e.exports={chartsSplitter:"chartsSplitter-jXbRzI5l",hovered:"hovered-jXbRzI5l","i-active":"i-active-jXbRzI5l"}},50869:e=>{e.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px"}},72045:e=>{e.exports={paneSeparator:"paneSeparator-9uSVw3Vg",handle:"handle-9uSVw3Vg",hovered:"hovered-9uSVw3Vg",active:"active-9uSVw3Vg"}},95306:()=>{},89405:e=>{e.exports={"common-tooltip":"common-tooltip-3cIbUUfe","common-tooltip--hidden":"common-tooltip--hidden-3cIbUUfe","common-tooltip--horizontal":"common-tooltip--horizontal-3cIbUUfe","common-tooltip--farther":"common-tooltip--farther-3cIbUUfe","common-tooltip--vertical":"common-tooltip--vertical-3cIbUUfe","common-tooltip-farther":"common-tooltip-farther-3cIbUUfe","common-tooltip--direction_normal":"common-tooltip--direction_normal-3cIbUUfe","common-tooltip__body":"common-tooltip__body-3cIbUUfe","common-tooltip__button-container":"common-tooltip__button-container-3cIbUUfe", -"common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-3cIbUUfe","common-tooltip__button":"common-tooltip__button-3cIbUUfe","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-3cIbUUfe","common-tooltip__ear-holder":"common-tooltip__ear-holder-3cIbUUfe","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-3cIbUUfe","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-3cIbUUfe","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-3cIbUUfe","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-3cIbUUfe","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-3cIbUUfe","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-3cIbUUfe","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-3cIbUUfe","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-3cIbUUfe","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-3cIbUUfe","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-3cIbUUfe","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-3cIbUUfe","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-3cIbUUfe","common-tooltip__plus-sign":"common-tooltip__plus-sign-3cIbUUfe"}},45112:(e,t,i)=>{"use strict";i.r(t),i.d(t,{colorsPalette:()=>h,getHexColorByName:()=>d}) -;const s=JSON.parse('{"color-white":"#ffffff","color-black":"#000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#ff9100","color-tan-orange-a700":"#FF6D00","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#ffd600","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a700":"#24B29B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-aqua-spring":"#ebf9f5","color-army-green":"#3d2c12","color-army-green-2":"#31230d","color-athens-gray-1":"#f2f3f5","color-athens-gray-2":"#f7f8fa","color-athens-gray-3":"#eceff2","color-black-180":"#b4b4b4","color-blue-dianne":"#21384d","color-bluish":"#2185cc","color-bright-gray":"#363c4e","color-brownish-grey":"#8d6e63","color-carnation":"#f04561","color-catskill-white":"#e1ecf2","color-charade":"#2f3241","color-charcoal-grey":"#323337","color-curious-blue":"#299dcd","color-dark-blue-grey":"#123440","color-darkness-blue-grey":"#12213b","color-dark-grey":"#292a2d","color-dark-grey-blue":"#28415a","color-dark-sky-blue":"#37a6ef","color-deep-sea-blue":"#016087","color-ebony-clay":"#262b3e","color-foam":"#d7f0fb","color-gull-gray":"#9db2bd","color-humming-bird":"#d3eef9","color-keppel-1":"#37bc9b","color-keppel-2":"#34b293","color-lavender-blush":"#ffedf0","color-lightish-purple":"#a75ee8","color-loblolly":"#c5cbce","color-manatee":"#878ca8","color-mandy":"#eb4d5c","color-medium-blue":"#2e7bb2","color-milk-chocolate":"#6f2626","color-mirage-1":"#131722","color-mirage-2":"#171b29","color-mirage-3":"#1c2030","color-mischka":"#d6d8e0","color-morning-glory":"#9addcc","color-oslo-gray":"#8b8e95","color-pale":"#fff2cf","color-pale-grey-1":"#f9fafb","color-pale-grey-2":"#e7ebee","color-pale-sky":"#6b7988","color-picton-blue-1":"#3bb3e4","color-puerto-rico":"#3bc2a1","color-purple-brown":"#4e2934","color-purple-brown-2":"#3d2028","color-radical-red":"#ff4a68","color-regent-gray":"#8797a5","color-scooter":"#38acdb","color-silver-tree":"#53b987","color-slate-gray":"#758696","color-sundown":"#ffa4b3","color-sunglow":"#ffca3b","color-tan-hide":"#ff9850","color-trout-1":"#4c525e","color-trout-2":"#4f5966","color-violet-1":"#332738","color-violet-2":"#271d2b","color-white-ice":"#ebf7fc","color-wild-watermelon":"#ff5773","color-readonly-input":"#b4b4b4","color-brand-dark":"#2a2c39","color-seeking-alpha-brand":"#ff7200"}'),r=JSON.parse('{"color-bg-primary":"color-white","color-bg-primary-hover":"color-cold-gray-100","color-bg-secondary":"color-white","color-bg-highlight":"color-cold-gray-50","color-bg-scroll-buttons":"color-cold-gray-100","color-legacy-bg-scroll-buttons":"color-cold-gray-850","color-legacy-bg-widget":"color-white","color-text-primary":"color-cold-gray-900","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-300","color-accent-content":"color-cold-gray-900","color-box-shadow":"color-cold-gray-300","color-divider":"color-cold-gray-150","color-divider-hover":"color-cold-gray-100","color-divider-secondary":"color-cold-gray-100","color-active-hover-text":"color-cold-gray-900","color-alert-text":"color-cold-gray-900","color-border-table":"color-cold-gray-100","color-brand":"color-tv-blue-500","color-brand-active":"color-tv-blue-700","color-brand-hover":"color-tv-blue-600","color-chart-page-bg":"color-cold-gray-150","color-common-tooltip-bg":"color-cold-gray-800","color-danger":"color-ripe-red-400","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-600","color-depthrenderer-stroke-style":"color-cold-gray-100","color-highlight-new":"color-tan-orange-50","color-input-bg":"color-white","color-input-publish-bg":"color-white","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-nth-child-bg":"color-cold-gray-50","color-pane-bg":"color-white","color-pane-secondary-bg":"color-cold-gray-100","color-popup-menu-item-hover-bg":"color-cold-gray-100","color-popup-menu-separator":"color-cold-gray-150","color-screener-description":"color-cold-gray-650","color-success":"color-minty-green-500","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-700","color-toolbar-button-text":"color-cold-gray-900","color-toolbar-button-text-hover":"color-cold-gray-900","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-100","color-toolbar-button-background-secondary-hover":"color-cold-gray-150","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-900","color-toolbar-interactive-element-text-hover":"color-cold-gray-900","color-toolbar-opened-element-bg":"color-cold-gray-100","color-tooltip-bg":"color-cold-gray-800","color-tv-dialog-caption":"color-cold-gray-650","color-tv-dropdown-item-hover-bg":"color-cold-gray-100","color-underlined-text":"color-cold-gray-500","color-widget-pages-bg":"color-white","color-warning":"color-tan-orange-500","color-growing":"color-minty-green-400","color-falling":"color-ripe-red-400","color-forex-icon":"color-cold-gray-750","color-list-item-active-bg":"color-tv-blue-400","color-list-item-hover-bg":"color-tv-blue-50","color-list-item-text":"color-cold-gray-800","color-price-axis-label-back":"color-cold-gray-150","color-price-axis-label-text":"color-cold-gray-650","color-price-axis-gear":"color-cold-gray-900","color-price-axis-gear-hover":"color-black","color-price-axis-highlight":"color-cold-gray-150","color-bid":"color-tv-blue-500","color-border":"color-cold-gray-150","color-border-chat-fields":"color-cold-gray-250","color-border-hover":"color-cold-gray-250","color-button-hover-bg":"color-cold-gray-150","color-depthrenderer-fill-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-150","color-disabled-input":"color-cold-gray-150","color-empty-container-message":"color-cold-gray-500","color-icons":"color-cold-gray-500","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-350","color-item-active-blue":"color-tv-blue-50","color-item-hover-active-bg":"color-tv-blue-100","color-item-hover-bg":"color-tv-blue-100","color-item-hover-blue":"color-tv-blue-100","color-item-selected-blue":"color-tv-blue-50","color-item-active-text":"color-white","color-item-active-bg":"color-tv-blue-500","color-list-item":"color-cold-gray-450","color-news-highlight":"color-tv-blue-100","color-placeholder":"color-cold-gray-350","color-row-hover-active-bg":"color-cold-gray-100","color-sb-scrollbar-body-bg":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-300","color-separator-table-chat":"color-cold-gray-150","color-tag-active-bg":"color-cold-gray-200","color-tag-hover-bg":"color-cold-gray-150","color-text-regular":"color-cold-gray-700","color-tv-button-checked":"color-cold-gray-550","color-scroll-bg":"color-cold-gray-400","color-scroll-border":"color-cold-gray-100","color-widget-border":"color-cold-gray-100","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-200","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-700","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-white","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-700","color-list-item-bg-highlighted":"color-tv-blue-50","color-list-item-bg-selected":"color-tv-blue-100","color-list-item-bg-highlighted-hover":"color-tv-blue-100","color-list-item-bg-selected-hover":"color-tv-blue-200","color-screener-header-bg":"color-white","color-screener-header-bg-hover":"color-cold-gray-100","color-marker-flagged":"color-ripe-red-400","color-marker-flagged-hovered":"color-ripe-red-600","color-ask":"color-ripe-red-400","color-sell":"color-ripe-red-400","color-buy":"color-tv-blue-500","color-neutral":"color-cold-gray-500","color-pro":"color-minty-green-400","color-pro-hover":"color-minty-green-600","color-pro-plus":"color-tv-blue-500","color-pro-plus-hover":"color-tv-blue-600","color-pro-premium":"color-tan-orange-500","color-pro-premium-hover":"color-tan-orange-700","color-trial":"color-cold-gray-500","color-trial-hover":"color-cold-gray-600","color-mod":"color-ripe-red-400","color-mod-hover":"color-ripe-red-600","color-ad":"color-tan-orange-500","color-broker-featured":"color-minty-green-400","color-broker-featured-hover":"color-minty-green-600","color-alert-status-active":"color-minty-green-400","color-alert-status-stopped":"color-ripe-red-500","color-alert-status-triggered":"color-tan-orange-500","color-overlay":"color-cold-gray-400","color-search-button-hover":"color-cold-gray-150","color-common-tooltip-text":"color-cold-gray-100","color-replay-data-mode":"color-radical-red","color-legacy-success":"color-keppel-1","color-collapse-tabs-border":"color-athens-gray-3","color-site-widget-hover":"color-athens-gray-1","color-attention":"color-sunglow","color-card-border":"color-cold-gray-150","color-card-border-hover":"color-cold-gray-300","color-background-special-primary":"color-white","color-stroke-special-primary":"color-cold-gray-150","color-selection-bg":"color-tv-blue-100"}') -;var n=i(88537);const o={...s,...r},a={},l=Object.keys(o).length,c=/^#[0-9A-F]{6}$/i;Object.keys(o).forEach(e=>{const t=function e(t,i=[]){const s=o[t];if(!s)return null;if(c.test(s))return s;const r=s;return i.push(t),-1!==i.indexOf(r)?(console.warn("Colors definitions cycled"),s):i.length>l?(console.warn("Too many variables-link in HEX-color search: "+i[0]),null):e(r,i)}(e);a[e]=(0,n.ensureNotNull)(t)});const h=a;function d(e){const t=h[e];if(!t)throw new Error("No such color "+e);return t}},74991:(e,t,i)=>{"use strict";i.d(t,{dur:()=>s,easingFunc:()=>r,CubicBezier:()=>n});const s=350,r={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};class n{constructor(e,t,i,s){this._mX1=e,this._mY1=t,this._mX2=i,this._mY2=s}easingFunc(e){return this._mX1===this._mY1&&this._mX2===this._mY2?e:this._calcBezier(this._getTForX(e))}_a(e,t){return 1-3*t+3*e}_b(e,t){return 3*t-6*e}_c(e){return 3*e}_calcBezier(e){return((this._a(this._mY1,this._mY2)*e+this._b(this._mY1,this._mY2))*e+this._c(this._mY1))*e}_getSlope(e){return 3*this._a(this._mX1,this._mX2)*e*e+2*this._b(this._mX1,this._mX2)*e+this._c(this._mX1)}_getTForX(e){let t=e;for(let i=0;i<4;++i){const i=this._getSlope(t);if(0===i)return t;t-=(this._calcBezier(t)-e)/i}return t}}},77317:(e,t,i)=>{"use strict";i.d(t,{setupChartEventHint:()=>d});var s=i(88537),r=i(28353),n=i(56840),o=i(85733),a=i(44601),l=i(49483),c=i(68335),h=i(67337);function d(e,t=!1){if(!h.enabled("popup_hints"))return;const d=e.getContainer();let u=null,p=null;function _(e,t){if(u)u.show(e,g.bind(null,t));else{const s=o.tool.value();Promise.all([i.e(5514),i.e(3402),i.e(6166)]).then(i.bind(i,5015)).then(i=>{u=new i.ChartEventHintRenderer(d),s===o.tool.value()&&u.show(e,g.bind(null,t))})}}function m(e){return!Boolean(n.getBool(e))}function g(e){n.setValue(e,!0,{forceFlush:!0}),(0,s.ensureNotNull)(u).destroy(),null!==p&&p(),u=null}o.tool.subscribe((function(){if(!m("hint.touchPainting"))return;const e=o.tool.value(),t=(0,a.isLineToolDrawWithoutPoints)(e),i=l.CheckMobile.any();!(0,a.isStudyLineToolName)(e)||"LineToolRegressionTrend"===e||t||i?(0,a.isLineToolName)(e)&&!(0,a.isLineDrawnWithPressedButton)(e)&&!t&&i?_((0,r.t)("Move the point to position the anchor then tap to place"),"hint.touchPainting"):u&&u.hide():_((0,r.t)("Click to set a point"),"hint.touchPainting")})),o.createdLineTool.subscribe(null,(function(){const e=o.tool.value();"LineToolPath"===e&&m("hint.finishBuildPathByDblClick")?_((0,r.t)("Double-click to finish Path"),"hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&m("hint.finishBuildPolylineByDblClick")&&_((0,r.t)("Double-click to finish Polyline"),"hint.finishBuildPolylineByDblClick")})),o.finishedLineTool.subscribe(null,(function(){if(u){ -const e=o.tool.value();"LineToolPath"===e?g("hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&g("hint.finishBuildPolylineByDblClick")}})),e.layoutSizesChanged().subscribe((function(){if(!m("hint.startResizingChartInLayout"))return;_((0,r.t)("Double-click any edge to reset layout grid"),"hint.startResizingChartInLayout")})),t||l.CheckMobile.any()||!m("hint.startFocusedZoom")||(p=function(e,t){let i=!1;const s=r=>{r?(i&&t(r),e.onZoom().unsubscribe(null,s)):i||(t(r),i=!0)};return e.onZoom().subscribe(null,s),()=>e.onZoom().unsubscribe(null,s)}(e,(function(e){if(!m("hint.startFocusedZoom"))return;if(e)u&&(p=null,g("hint.startFocusedZoom"));else{const e=c.isMacKeyboard?"⌘":"Ctrl";_((0,r.t)("Press and hold {key} while zooming to maintain the chart position").format({key:e}),"hint.startFocusedZoom")}})))}},81602:(e,t,i)=>{"use strict";i.d(t,{setupChartScreenshotHint:()=>o});var s=i(28353),r=i(76422),n=i(88537);function o(e,t){const o=(0,s.t)("Link to the chart image copied to clipboard {emoji}").format({emoji:"👍"}),a=(0,s.t)("Chart image copied to clipboard {emoji}").format({emoji:"👍"});r.on("onServerScreenshotCopiedToClipboard",()=>h(o),null),r.on("onClientScreenshotCopiedToClipboard",()=>h(a),null);let l=null;const c=e.getContainer();function h(e){l?l.show(e):Promise.all([i.e(5514),i.e(7037),i.e(92)]).then(i.bind(i,78621)).then(i=>{l||(l=new i.ChartScreenshotHintRenderer((0,n.ensureNotNull)(c),{bottomPadding:t.seriesControlBarEnabled}),l.show(e))})}}},94194:(e,t,i)=>{"use strict";i.d(t,{getTooltipData:()=>r,setTooltipData:()=>n});const s=new WeakMap;function r(e,t){const i=s.get(e);return i instanceof Function?i(t):i&&i[t]}function n(e,t,i){if(i instanceof Function)return void s.set(e,i);const r=s.get(e),n=void 0===r||r instanceof Function?{}:r;n[t]=i,s.set(e,n)}},61814:(e,t,i)=>{"use strict";i.d(t,{hotKeySerialize:()=>r,hotKeyDeserialize:()=>n});var s=i(11372);function r(e){return(0,s.clean)(JSON.stringify(e))}function n(e){return JSON.parse((0,s.clean)(e,!0))}},38780:(e,t,i)=>{"use strict";i.d(t,{hide:()=>G,show:()=>U,showOnElement:()=>z});var s=i(32563);let r=0,n=0,o=0;function a(){clearTimeout(r),clearTimeout(n),clearTimeout(o)}function l(e,t){r=setTimeout(e,t)}const c="tooltip-root-element";let h;function d(){const e=document.getElementById(c);e?h=e:(h=document.createElement("div"),h.id=c,document.body.appendChild(h))}function u(){h&&(h.innerHTML="")}"interactive"===document.readyState?d():document.addEventListener("DOMContentLoaded",d);var p=i(88537);const _={default:"",white:"theme-white","round-shadow":"theme-round-shadow"},m=Object.keys(_);var g=i(94194),f=i(61814),v=i(62046),S=i(62820),y=(i(94419),i(54475)),b=i(64514),w=i(49483),C=i(89405);function P(e){const t=function(e){const t=e.hasAttribute("data-tooltip")?e.getAttribute("data-tooltip"):e.getAttribute("title");return t&&((0,g.setTooltipData)(e,"text",t),e.removeAttribute("title")),(0,g.getTooltipData)(e,"text")||""}(e),i=e.getBoundingClientRect(),s={h:i.height,w:i.width,x:i.left,y:i.top -},r=e.getAttribute("data-color-theme")||"",n=e.classList.contains("common-tooltip-html"),o=parseInt(e.getAttribute("data-tooltip-delay")||""),a=parseInt(e.getAttribute("data-tooltip-debounce")||"");let l={type:"none"};return t&&(l={type:n?"html":"text",data:t}),{above:e.classList.contains("common-tooltip-above"),below:e.classList.contains("common-tooltip-below"),otl:e.classList.contains("common-tooltip-otl"),otr:e.classList.contains("common-tooltip-otr"),vertical:e.classList.contains("common-tooltip-vertical"),hotkey:e.getAttribute("data-tooltip-hotkey"),narrow:e.classList.contains("common-tooltip-narrow"),wide:e.classList.contains("common-tooltip-wide"),colorTheme:r,tooltipDelay:o,tooltipDebounce:a,rect:s,content:l,target:e}}function T(e){const t=k.cloneNode(!0),i=B(t),{content:s}=e;switch(s.type){case"element":i.innerHTML="",i.appendChild(s.data);break;case"html":i.innerHTML=s.data;break;case"text":if(e.hotkey){const e=V.cloneNode(!0);e.innerText=s.data,i.appendChild(e)}else i.innerText=s.data}if(e.hotkey){const t="none"!==s.type,r=D.cloneNode(!0),n=(0,f.hotKeyDeserialize)(e.hotkey),o=n.keys.map(e=>`${e}`);r.innerHTML=function(e,t){return e.replace(/{\d}|{hotkey_\d}/gi,e=>{const i=Number(e.match(/\d/));return t[i]})}(n.text,o).replace(/\s\+\s/g,`+`),i.classList.add(C["common-tooltip__body--with-hotkey"]),t&&r.classList.add(C["common-tooltip__hotkey-block--divider"]),i.appendChild(r)}return t.addEventListener("contextmenu",y.preventDefault),t}function x(e,t){const i=t.rect;if(!i)return;!function(e,t){const i=m.includes(t)?_[t]:"";e.classList.remove(...m.map(e=>_[e]).filter(e=>!!e)),i&&!e.classList.contains(i)&&e.classList.add(i)}(e,t.colorTheme||"default"),t.addClass&&e.classList.add(t.addClass);const s=B(e),r=e.querySelector("."+C["common-tooltip__button-container"]);s.classList.toggle(C["common-tooltip__body--width_wide"],Boolean(t.wide)),s.classList.toggle(C["common-tooltip__body--no-padding"],Boolean(t.noPadding)),s.classList.toggle(C["common-tooltip__body--width_narrow"],Boolean(t.narrow)),s.classList.toggle(C["common-tooltip__body--no-buttons"],!0),s.style.left=M(0),s.style.width=M(s.clientWidth+(Boolean(t.noPadding)?0:2));const n=document.body.clientWidth,o=w.CheckMobile.iOS()||(0,w.supportTouch)()&&(0,w.isMac)()?window.innerHeight:document.body.clientHeight,a=t.vertical,l=t.extendMargin||a&&i.w<20||!a&&i.h<20;e.classList.toggle(C["common-tooltip--farther"],l),e.classList.toggle(C["common-tooltip--vertical"],a),e.classList.toggle(C["common-tooltip--horizontal"],!a);const c=function(e){return e.querySelector("."+C["common-tooltip__ear-holder"])}(e),h=e.offsetHeight;if(a){const a=10,l=o-10,d=12,u=a+d,p=l-d,_=(0,b.clamp)(i.y+i.h/2,u,p)-h/2,m=_+h;e.style.left=M(i.x+i.w),e.style.top=M(_),_l&&(s.style.top=r.style.top=M(l-m));const{right:g}=(e.querySelector(":last-child")||s).getBoundingClientRect(),f=g+10>n -;e.classList.toggle(C["common-tooltip--direction_reversed"],f),e.classList.toggle(C["common-tooltip--direction_normal"],!f);let v=f?"after":"before";(0,S.isRtl)()?(v=t.otr?"after":v,v=t.otl?"before":v):(v=t.otr?"before":v,v=t.otl?"after":v),c.classList.toggle(C["common-tooltip__ear-holder--before"],"before"===v),c.classList.toggle(C["common-tooltip__ear-holder--after"],"after"===v),"after"===v&&(e.style.left="auto",e.style.right=M(n-i.x))}else{const a=i.x-(s.offsetWidth-i.w)/2,l=n-10-e.offsetWidth,d=Math.max(10,Math.min(a,l));e.style.left=M(d);const u=l\n\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t
\n`,A=`\n\t
\n`,E=`\n\t
\n`,k=(0,v.parseHtmlElement)(L),D=(0,v.parseHtmlElement)(A),V=(0,v.parseHtmlElement)(E);function B(e){return e.querySelector("."+C["common-tooltip__body"])}function N(e,t){return 10+ez(t);if(i()){const e=e=>{e.target instanceof Element&&e.target.contains(t)&&s(null,!0)},s=(r,n=!1)=>{t.removeEventListener("common-tooltip-update",i),t.removeEventListener("mouseleave",s),t.removeEventListener("mousedown",s),document.removeEventListener("scroll",e,{capture:!0}),W&&(W.destroy(),W=null),G(n)};t.addEventListener("common-tooltip-update",i),t.addEventListener("mouseleave",s),t.addEventListener("mousedown",s),document.addEventListener("scroll",e,{capture:!0}),null===W&&(W=(0,R.createGroup)({desc:"Tooltip"}),W.add({desc:"Hide",hotkey:27, -handler:s}));break}}}),!0);const H=new MutationObserver(()=>{if(F&&F.options.target){let e;e="isConnected"in F.options.target?F.options.target.isConnected:document.body.contains(F.options.target),e||G()}}),z=(e,t={})=>{const{content:i,...s}=Y(t),r=P(e),n=Object.assign(r,s);return"none"!==i.type&&(n.content=i),!("none"===n.content.type&&!n.hotkey)&&(n.target=e,U(n),!0)},U=e=>{const t=Y(e),i=T(t);var s;if(F={options:t,element:i},s=i,u(),h&&h.appendChild(s),a(),!O)return I(i),void l(()=>q(i),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:r}=e;"number"!=typeof r||isNaN(r)?q(i):l(()=>q(i),r)};function j(){u(),O=!1,F=null}const G=e=>{if(a(),H.disconnect(),!F)return;if(!e&&!O)return;const{element:t,options:i}=F,s=()=>{t.removeEventListener("mouseleave",s),I(t),e?j():o=setTimeout(()=>{j()},250)};var r,l;i.tooltipHideDelay?(r=()=>{t.querySelector(":hover")?t.addEventListener("mouseleave",s):s()},l=i.tooltipHideDelay,n=setTimeout(r,l)):s()};function q(e){const{options:t}=(0,p.ensureNotNull)(F);if(x(e,t),function(e){e.classList.toggle(C["common-tooltip--hidden"],!1)}(e),H.observe(document,{childList:!0,subtree:!0}),O=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),G()};document.addEventListener("mousemove",e)}}function Y(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:i,text:s,...r}=e;let n={type:"none"};return t&&(n={type:"element",data:t}),s&&(n={type:i?"html":"text",data:s}),{content:n,...r}}},28325:(e,t,i)=>{"use strict";i.d(t,{ChartPage:()=>d});var s=i(52714),r=i.n(s),n=i(31940);function o(e,t){let i=0;for(const{min:s,max:r}of t){if(e0&&t.push({min:e,max:s})}return t.sort((e,t)=>e.min-t.min||e.max-t.max),t}function l(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}var c=i(67337);const h=c.enabled("no_min_chart_width");class d{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)=>{let i=t;this._fullscreenArea!==e.name&&(e.availWidth.setValue(t),e.canNegotiate.width&&(i=o(t,e.negotiations.width)));const s=e.container.value();return s&&(s.style.width=i+"px"),e.width.setValue(i),i},this._setHeight=(e,t)=>{let i=t;this._fullscreenArea!==e.name&&(e.availHeight.setValue(t),e.canNegotiate.height&&(i=o(t,e.negotiations.height)));const s=e.container.value();return s&&(s.style.height=i+"px"),e.height.setValue(i),i};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),s={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]===s&&this.free(e)},negotiateWidth:e=>{if(!s.canNegotiate.width)return;const t=a(e);l(s.negotiations.width,t)||(s.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!s.canNegotiate.height)return;const t=a(e);l(s.negotiations.height,t)||(s.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(r()),height:new(r()),availWidth:new(r()),availHeight:new(r()),alive:new(r())(!0),container:new(r())(i),visible:new(r())(!0),fullscreen:new(r())(!1),fullscreenable:new(r())("right"===t||"center"===t),rdState:new n.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[t]=s,s.rdState.owner.subscribe(e=>{const i=s.container.value();if(e!==s)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}),s.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,s=this._areas.tradingpanel,r=this._areas.right,n=this._areas.top,o=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),d=this._height.value();let u=0,p=0,_=0,m=0,g=0,f=0,v=0,S=0;if(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(S=this._setHeight(l,d),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t)){v=this._setHeight(t,d),f=this._setWidth(t,c);const e=t.container.value();e&&(e.style.top=S+"px")}let y=0;if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){const e=n.container.value();e&&(e.style.left=f+"px",e.style.top=S+"px") -;const t=c-f;this._setWidth(n,t),u=this._setHeight(n,d),u&&(y=1)}if(e===this._recalcSingleRunToken&&i&&this._processVisibility(i)){const e=Math.max(v,u),t=i.container.value();_=this._setWidth(i,c),_&&(_+=4),_&&1===y&&(y=4),t&&(t.style.top=e+S+y+"px"),this._setHeight(i,d-e-S)}if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){let e=c-_;h||(e-=300),g=this._setWidth(s,e),g&&1===y&&(y=4),this._setHeight(s,d-S-u-y)}if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){let e=c-_-g;h||(e-=300),m=this._setWidth(r,e),m&&1===y&&(y=4),this._setHeight(r,d-S-u-y);const t=r.container.value();t&&(t.style.top=u+S+y+"px",t.classList.toggle("no-border-top-left-radius",Boolean(g)))}const b=g+m;let w=0;const C=c-_-g-m-(b?4:0);if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){const e=o.container.value();e&&(e.style.left=_+"px",e.classList.toggle("no-border-top-left-radius",!_),e.classList.toggle("no-border-top-right-radius",!b)),this._setWidth(o,C);const t=d-S;w=Math.min(300,t-0),p=this._setHeight(o,t)+4}const P=Boolean(u&&(_||b));if(this._container.classList.toggle("layout-with-border-radius",P),e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){const e=a.container.value();e&&(e.style.left=_+"px",e.style.top=u+S+y+"px",e.classList.toggle("no-border-bottom-left-radius",!p||!_),e.classList.toggle("no-border-bottom-right-radius",!b||!p),e.classList.toggle("no-border-top-left-radius",Boolean(!_&&b)),e.classList.toggle("no-border-top-right-radius",Boolean(_&&!b))),this._setWidth(a,C);const t=d-u-p-S-y;this._setHeight(a,Math.max(t,w))}if(e===this._recalcSingleRunToken&&s&&this._affectsLayout("tradingpanel")){const e=s.container.value();e&&(e.style.right=m+"px",e.style.top=S+u+y+"px",e.style.borderTopLeftRadius=P?"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 u(e);if(this._width.value()<=567||this._height.value()<=445){if(!["center","top","left","topleft","extratop"].includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;t{"use strict";i.d(t,{ResizerDetacherState:()=>o});var s=i(88537),r=i(52714),n=i.n(r);class o{constructor(e){this._alive=new(n()),this._container=new(n()),this._width=new(n()),this._height=new(n()),this._fullscreen=new(n()),this._detachable=new(n()),this._fullscreenable=new(n()),this._visible=new(n()),this._availWidth=new(n()),this._availHeight=new(n()),this._owner=new(n()),this._ownersStack=[],this.owner=this._owner.readonly(),this._bridge={alive:this._alive.readonly(),container:this._container.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),fullscreenable:this._fullscreenable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:()=>{const e=this._owner.value();e&&e.remove&&e.remove()},negotiateWidth:e=>{const t=this._owner.value();t&&t.negotiateWidth&&t.negotiateWidth(e)},negotiateHeight:e=>{const t=this._owner.value();t&&t.negotiateHeight&&t.negotiateHeight(e)},requestFullscreen:()=>{const e=this._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:()=>{const e=this._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:e=>{const t=this._owner.value();t&&t.detach&&t.detach(e)},attach:()=>{const e=this._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const e of this._ownersStack)this._unsubscribeOwner(e);const t={owner:e};this._ownersStack.push(t),this._subscribeOwner(t)}_subscribeOwner(e){const t=e.owner;if(e.deathWatcher||(this._alive.setValue(!0),e.deathWatcher=t.alive.spawn(),e.deathWatcher.subscribe(t=>{t||this._deadHandler(e)})),this._owner.setValue(t),!e.subscriptions){const i=e.subscriptions=[];this._visible.setValue(!1);const s=(e,t)=>{if(e){const s=e.spawn();i.push(s),s.subscribe(e=>{t.setValue(e)},{callWithLast:!0})}else t.deleteValue()};s(t.container,this._container),s(t.width,this._width),s(t.height,this._height),s(t.fullscreen,this._fullscreen),s(t.detachable,this._detachable),s(t.fullscreenable,this._fullscreenable),s(t.availWidth,this._availWidth),s(t.availHeight,this._availHeight),s(t.visible,this._visible)}}_unsubscribeOwner(e,t){if(e.subscriptions){for(const t of e.subscriptions)t.unsubscribe();e.subscriptions=null}t&&e.deathWatcher&&(e.deathWatcher.unsubscribe(),e.deathWatcher=null)}_deadHandler(e){const t=this._ownersStack.indexOf(e);(0,s.assert)(-1!==t,"sanitized owner should be in stack");for(let e=this._ownersStack.length-1;e>=t;e--)this._unsubscribeOwner(this._ownersStack[e],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())}}}, -89356:(e,t,i)=>{"use strict";i.d(t,{Root:()=>d});i(28353);var s=i(52714),r=i.n(s),n=i(31940);class o{constructor(e){this._document=e,this.isFullscreen=new(r());const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[r])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var l=i(84015),c=i(88537),h=i(49483);class d{constructor(e){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",e+"px","important")},this._window=e,this._fullscreenApi=new o(e.document),this._viewportType=h.CheckMobile.iOS()&&!(0,l.isOnMobileAppPage)("any")&&this._window.visualViewport?"visual":"quirks","visual"===this._viewportType?this._viewport=(0,c.ensureDefined)(this._window.visualViewport):this._viewport=this._window;const t=this._layoutSizeSensor=this._window.document.createElement("div");t.id="layout-size-sensor",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.pointerEvents="none",t.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 a(this._window.document);const i={alive:new(r())(!0),fullscreenable:new(r())(!0),container:new(r())(t),width:new(r()),height:new(r()),availWidth:new(r()),availHeight:new(r()),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 n.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()})}}},33134:(e,t,i)=>{"use strict";i.d(t,{DEFAULT_SIZE:()=>s,spinnerSizeMap:()=>r});const s="large",r={mini:"xsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"}},4185:(e,t,i)=>{"use strict";i.d(t,{Spinner:()=>o});i(24780);var s=i(62046),r=i(33134);const n=(0,s.parseHtmlElement)(function(e=""){return`
`}());class o{constructor(e){this._shown=!1,this._el=n.cloneNode(!0),this.setSize(r.spinnerSizeMap[e||r.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){return Object.keys(e).forEach(t=>{const i=e[t];void 0!==i&&this._el.style.setProperty(t,i)}),this}style(){return this._el.style}setSize(e){const t=void 0!==e?"tv-spinner--size_"+e:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}},5683:(e,t,i)=>{"use strict";i.d(t,{createStubElem:()=>r});var s=i(65592);function r(e=[],t=[]){const i=document.createElement("div"),r=document.createElement("div");return i.appendChild(r),i.classList.add(s.container),r.classList.add(s.inner),e.forEach(e=>{i.classList.add(s[e])}),t.forEach(e=>{i.classList.add(s[e])}),i}},45973:(e,t,i)=>{"use strict";i.r(t),i.d(t,{lineToolEntityInfo:()=>o,studyEntityInfo:()=>a,seriesEntityInfo:()=>l,entityForDataSource:()=>c});var s=i(81851),r=i(16906),n=i(14291);function o(e){return{id:e.id(),name:(t=e.toolname,Object.keys(r.supportedLineTools).find(e=>r.supportedLineTools[e].name===t)||null)};var t}function a(e){return{id:e.id(),name:e.metaInfo().description}}function l(e){return{id:e.id(),name:"Main Series"}}function c(e,t){return t===e.mainSeries()?l(e.mainSeries()):(0,s.isStudy)(t)?a(t):(0, -n.isLineTool)(t)?o(t):null}},68582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isLineToolRiskReward:()=>a,LineDataSourceApi:()=>c});var s=i(88537),r=i(80643);const n=new Map([["LineToolRiskRewardLong",2],["LineToolRiskRewardShort",2],["LineToolBezierQuadro",3],["LineToolBezierCubic",4]]);function o(e){const t=n.get(e.toolname);if(void 0!==t)return t;const i=e.pointsCount();return-1===i?e.points().length:i}function a(e){return"LineToolRiskRewardLong"===e||"LineToolRiskRewardShort"===e}const l=["alwaysShowStats","entryPrice","inputs.first bar time","inputs.last bar time","interval","linesWidths","points","snapTo45Degrees","stopPrice","symbol","symbolStateVersion","currencyId","unitId","targetPrice","zOrderVersion"];class c{constructor(e,t,i){this._source=e,this._undoModel=t,this._model=t.model(),this._pointsConverter=i}isSelectionEnabled(){return this._source.isSelectionEnabled()}setSelectionEnabled(e){this._source.setSelectionEnabled(e)}isSavingEnabled(){return this._source.isSavedInChart()}setSavingEnabled(e){this._source.setSavingInChartEnabled(e)}isShowInObjectsTreeEnabled(){return this._source.showInObjectTree()}setShowInObjectsTreeEnabled(e){this._source.setShowInObjectsTreeEnabled(e)}isUserEditEnabled(){return this._source.userEditEnabled()}setUserEditEnabled(e){this._source.setUserEditEnabled(e)}bringToFront(){this._model.bringToFront([this._source])}sendToBack(){this._model.sendToBack([this._source])}getProperties(){return this._source.properties().state(l,!0)}setProperties(e){this._setProps(this._source.properties(),e,"")}getPoints(){let e=this._source.points();const t=o(this._source);return e.length>t&&((0,s.assert)(a(this._source.toolname)),e=e.slice(0,t)),this._pointsConverter.dataSourcePointsToPriced(e)}setPoints(e){if(this._source.isFixed())return;const t=o(this._source);if(t!==e.length)throw new Error(`Wrong points count. Required: ${t}, provided: ${e.length}`);const i=this._pointsConverter.apiPointsToDataSource(e);this._model.startChangingLinetool(this._source),this._model.changeLinePoints(this._source,i),this._model.endChangingLinetool(!0),this._source.createServerPoints()}ownerSourceId(){return(0,s.ensureNotNull)(this._source.ownerSource()).id()}changePoint(e,t){if(this._source.isFixed())return;const i=this._pointsConverter.apiPointsToDataSource([e])[0];this._model.startChangingLinetool(this._source,{...i},t),this._model.changeLinePoint({...i}),this._model.endChangingLinetool(!1),this._source.createServerPoints()}isHidden(){return this._source.isSourceHidden()}getRawPoints(){return this._source.points()}setRawPoint(e,t){this._model.startChangingLinetool(this._source,{...t},e),this._model.changeLinePoint({...t}),this._model.endChangingLinetool(!1)}move(e,t){this._model.startMovingSources([this._source],{logical:e},null,new Map),this._model.moveSources({logical:t},new Map),this._model.endMovingSources(!1)}dataAndViewsReady(){return this._source.dataAndViewsReady()}zorder(){return this._source.zorder()}symbol(){return this._source.properties().symbol.value()}currency(){ -return this._source.properties().currencyId.value()}unit(){return this._source.properties().unitId.value()}share(e){this._undoModel.shareLineTools([this._source],e)}sharingMode(){return this._source.sharingMode().value()}_setProps(e,t,i){for(const s in t){if(!t.hasOwnProperty(s))continue;const n=0===i.length?s:`${i}.${s}`;if(e.hasOwnProperty(s)){const i=t[s];(0,r.isHashObject)(i)?this._setProps(e[s],i,n):e[s].setValue(i)}else console.warn(`Unknown property "${n}"`)}}}},56233:(e,t,i)=>{"use strict";i.d(t,{PaneApi:()=>u});var s=i(88537),r=i(42534),n=i(45973),o=i(80643),a=i(28353),l=i(24980),c=i(35762);const h=new l.TranslatedString("change pane height",(0,a.t)("change pane height"));class d extends c.UndoCommand{constructor(e,t,i){super(h),this._model=e,this._paneIndex=t,this._paneHeight=i,this._prevStretchFactors=this._model.panes().map(e=>e.stretchFactor())}redo(){this._model.changePanesHeight(this._paneIndex,this._paneHeight)}undo(){const e=this._model.panes();for(let t=0;t(0,n.entityForDataSource)(e,t)).filter(o.notNull).filter(e=>null!==e.name)}getHeight(){return this._pane.height()}setHeight(e){const t=this._chartWidget.model().model(),i=t.panes();(0,s.assert)(i.length>1,"Unable to change pane's height if there is only one pane");const r=i.indexOf(this._pane);(0,s.assert)(-1!==r,"Invalid pane index");const n=new d(t,r,e);this._chartWidget.model().undoHistory().pushUndoCommand(n)}moveTo(e){const t=this.paneIndex();t!==e&&((0,s.assert)(e>=0&&e{"use strict";i.d(t,{PriceScaleApi:()=>s});class s{constructor(e,t){this._chartUndoModel=e,this._chartModel=e.model(),this._priceScale=t}getMode(){const e=this._priceScale.properties().childs();return e.percentage.value()?2:e.indexedTo100.value()?3:e.log.value()?1:0}setMode(e){this._priceScale.setMode({percentage:2===e,log:1===e,indexedTo100:3===e})}isInverted(){return this._priceScale.isInverted()}setInverted(e){this._priceScale.properties().childs().isInverted.setValue(e)}isLocked(){return this._priceScale.isLockScale()}setLocked(e){this._priceScale.setMode({lockScale:e})}isAutoScale(){return this._priceScale.isAutoScale()}setAutoScale(e){this._priceScale.setMode({autoScale:e})}getVisiblePriceRange(){return this._priceScale.priceRangeInPrice()}setVisiblePriceRange(e){this._priceScale.setPriceRangeInPrice(e),this._chartModel.lightUpdate()}hasMainSeries(){return this._priceScale.hasMainSeries()}getStudies(){return this._priceScale.getStudies().map(e=>e.id())}currency(){const e=this._priceScale.currency(this._chartModel.availableCurrencies());return null===e?null:{selectedCurrency:e.selectedCurrency,readOnly:e.readOnly}}setCurrency(e){this._chartUndoModel.setPriceScaleCurrency(this._priceScale,e)}unit(){const e=this._priceScale.unit(this._chartModel.availableUnits());return null===e?null:{selectedUnit:e.selectedUnit,readOnly:0===e.availableGroups.size,availableGroups:Array.from(e.availableGroups)}}setUnit(e){this._chartUndoModel.setPriceScaleUnit(this._priceScale,e)}}},32112:(e,t,i)=>{"use strict";function s(e,t){const i=e.dataSourceForId(t);if(null===i)throw new Error(`Chart has no study or shape with id "${t}"`);return i}i.d(t,{SelectionApi:()=>r});class r{constructor(e){this._model=e}add(e){Array.isArray(e)?this._model.selectionMacro(t=>{e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.add([e])}canBeAddedToSelection(e){const t=s(this._model,e);return this._model.selection().canBeAddedToSelection(t)}set(e){Array.isArray(e)?this._model.selectionMacro(t=>{t.clearSelection(),e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.set([e])}remove(e){Array.isArray(e)?this._model.selectionMacro(t=>{e.map(s.bind(null,this._model)).forEach(e=>t.removeSourceFromSelection(e))}):this.remove([e])}contains(e){const t=s(this._model,e);return this._model.selection().isSelected(t)}allSources(){return this._model.selection().dataSources().map(e=>e.id())}isEmpty(){return this._model.selection().isEmpty()}clear(){this._model.selectionMacro(e=>{e.clearSelection()})}onChanged(){return this._model.onSelectedSourceChanged()}}},82650:(e,t,i)=>{"use strict";i.d(t,{SeriesApi:()=>l});var s=i(88537),r=i(8597),n=i(36551),o=i(27579),a=i(42534) -;class l{constructor(e,t){this._series=e,this._undoModel=t,this._model=t.model()}isUserEditEnabled(){return this._series.userEditEnabled()}setUserEditEnabled(e){this._series.setUserEditEnabled(e)}mergeUp(){this._model.isMergeUpAvailableForSource(this._series)&&new r.MergeUpUndoCommand(this._model,this._series,null).redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._series)&&new r.MergeDownUndoCommand(this._model,this._series,null).redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._series)&&new n.UnmergeUpUndoCommand(this._model,this._series,null).redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._series)&&new n.UnmergeDownUndoCommand(this._model,this._series,null).redo()}detachToRight(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"right",null).redo()}detachToLeft(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"left",null).redo()}detachNoScale(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"overlay",null).redo()}changePriceScale(e){const t=(0,s.ensureNotNull)(this._model.paneForSource(this._series));switch(e){case"new-left":new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"left",null).redo();break;case"new-right":new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"right",null).redo();break;case"no-scale":(0,s.assert)(t.actionNoScaleIsEnabled(this._series),"Unable to leave a pane without any non-overlay price scale"),new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"overlay",null).redo();break;default:const i=this._model.dataSourceForId(e);if(null===i)throw new Error(`There is no study with entityId='${e}'`);const r=this._model.paneForSource(i)===t;(0,s.assert)(r,"Study should be on the main pane");const n=(0,s.ensureNotNull)(i.priceScale());new o.MoveToExistingPriceScaleUndoCommand(this._model,this._series,t,n,null).redo()}}isVisible(){return this._series.properties().childs().visible.value()}setVisible(e){this._series.properties().childs().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._series])}sendToBack(){this._model.sendToBack([this._series])}entityId(){return this._series.id()}chartStyleProperties(e){return this._series.properties().childs()[c(e)].state(["inputs","inputsInfo"])}setChartStyleProperties(e,t){this._series.properties().childs()[c(e)].mergeAndFire(t)}barsCount(){return this._series.bars().size()}symbolSource(){return{symbol:this._series.symbol(),currencyId:this._series.currency(),unitId:this._series.unit()}}isLoading(){return this._series.isLoading()}data(){return this._series.data()}priceScale(){return new a.PriceScaleApi(this._undoModel,this._series.priceScale())}_pane(){return(0,s.ensureNotNull)(this._model.paneForSource(this._series))}}function c(e){switch(e){case 0:return"barStyle";case 1:return"candleStyle";case 2:return"lineStyle";case 3:return"areaStyle";case 4:return"renkoStyle";case 5:return"kagiStyle";case 6:return"pnfStyle";case 7:return"pbStyle";case 8:return"haStyle";case 9: -return"hollowCandleStyle";case 10:return"baselineStyle";case 11:return"rangeStyle";case 12:return"hiloStyle";case 13:return"columnStyle";default:(0,s.ensureNever)(e)}throw new Error("unsupported chart style: "+e)}},67e3:(e,t,i)=>{"use strict";i.d(t,{StudyApi:()=>y});var s=i(88537),r=i(2872),n=i.n(r),o=i(80643),a=i(59572),l=i(97401),c=i(13795),h=i(36551),d=i(8597),u=i(27579),p=i(61671),_=i(79222),m=i(35588),g=i(42534),f=i(13933),v=i(152),S=i(70120);class y{constructor(e,t){this._onStudyCompleted=new(n()),this._onStudyError=new(n()),this._study=e,this._chartWidget=t,this._undoModel=this._chartWidget.model(),this._model=this._undoModel.model(),this._study.onAboutToBeDestroyed().subscribe(this,()=>{this._study.onStatusChanged().unsubscribeAll(this),this._study.onAboutToBeDestroyed().unsubscribeAll(this)}),this._study.onStatusChanged().subscribe(this,e=>{switch(e.type){case f.StudyStatusType.Completed:this._onStudyCompleted.fire();break;case f.StudyStatusType.Error:this._onStudyError.fire()}})}isUserEditEnabled(){return this._study.userEditEnabled()}setUserEditEnabled(e){this._study.setUserEditEnabled(e)}getInputsInfo(){return(0,v.getStudyInputsInfo)(this._study.metaInfo())}getInputValues(){const e=this._study.inputs({symbolsForChartApi:!1,asObject:!0});return Object.keys(e).map(t=>{const i=e[t];return{id:t,value:(0,o.isObject)(i)?i.v:i}})}getStyleInfo(){return(0,S.getStudyStylesInfo)(this._study.metaInfo())}getStyleValues(){const{plots:e,styles:t,bands:i,filledAreas:s,palettes:r}=this._study.properties().state(),n={};return void 0!==e&&(n.plots=e),void 0!==t&&(n.styles=t),void 0!==i&&(n.bands=i),void 0!==s&&(n.filledAreas=s),void 0!==r&&(n.palettes=r),n}setInputValues(e){const t=this.getInputValues();for(const i of e){void 0!==t.find(e=>e.id===i.id)?this._study.properties().inputs[i.id].setValue(i.value):console.warn(`There is no such input: "${i.id}"`)}}mergeUp(){this._model.isMergeUpAvailableForSource(this._study)&&new d.MergeUpUndoCommand(this._model,this._study,null).redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._study)&&new d.MergeDownUndoCommand(this._model,this._study,null).redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._study)&&new h.UnmergeUpUndoCommand(this._model,this._study,null).redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._study)&&new h.UnmergeDownUndoCommand(this._model,this._study,null).redo()}onDataLoaded(){return this._onStudyCompleted}onStudyError(){return this._onStudyError}mergeUpWithUndo(){this._model.isMergeUpAvailableForSource(this._study)&&this._undoModel.mergeSourceUp(this._study)}mergeDownWithUndo(){this._model.isMergeDownAvailableForSource(this._study)&&this._undoModel.mergeSourceDown(this._study)}unmergeUpWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceUp(this._study)}unmergeDownWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceDown(this._study)}priceScale(){return new g.PriceScaleApi(this._undoModel,(0,s.ensureNotNull)(this._study.priceScale()))} -symbolSource(){const e=(0,s.ensureNotNull)(this._study.symbolSource());return{symbol:e.symbol(),currencyId:e.currency(),unitId:e.unit()}}currency(){return this._study.currency()}changePriceScale(e){const t=(0,s.ensureNotNull)(this._model.paneForSource(this._model.mainSeries())),i=(0,s.ensureNotNull)(this._model.paneForSource(this._study));switch(e){case"no-scale":(0,s.assert)(i.actionNoScaleIsEnabled(this._study),"Unable to leave a pane without any non-overlay price scale"),new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"overlay",null).redo();break;case"as-series":(0,s.assert)(i===t,"Study should be on the main pane"),new u.MoveToExistingPriceScaleUndoCommand(this._model,this._study,i,this._model.mainSeries().priceScale(),null).redo();break;case"new-left":new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"left",null).redo();break;case"new-right":new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"right",null).redo();break;default:const r=this._model.dataSourceForId(e);if(null===r)throw new Error(`There is no study with entityId='${e}'`);const n=i===this._model.paneForSource(r);(0,s.assert)(n,"Both studies should be on the same pane");const o=(0,s.ensureNotNull)(r.priceScale()),a=(0,c.sourceNewCurrencyOnPinningToPriceScale)(this._study,o,this._model),h=(0,_.sourceNewUnitOnPinningToPriceScale)(this._study,o,this._model);new u.MoveToExistingPriceScaleUndoCommand(this._model,this._study,i,o,null).redo(),null!==a&&new l.SetPriceScaleCurrencyUndoCommand(o,a,this._undoModel.chartWidget(),null).redo(),null!==h&&new m.SetPriceScaleUnitUndoCommand(o,h,this._undoModel.chartWidget(),null).redo()}}isVisible(){return this._study.properties().visible.value()}setVisible(e){this._study.properties().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._study])}sendToBack(){this._model.sendToBack([this._study])}applyOverrides(e){(0,a.applyOverridesToStudy)(this._study,e)}dataLength(){return this._study.status().type!==f.StudyStatusType.Completed?0:this._study.metaInfo().plots.length>0?this._study.data().size():this._model.mainSeries().bars().size()}isLoading(){return this._study.isLoading()}properties(){return this._study.properties()}async applyToEntireLayout(){const e=new p.ActionsProvider(this._chartWidget),t=(await e.contextMenuActionsForSources([this._study])).find(e=>"applyStudyToEntireLayout"===e.id);t&&t.execute()}}},152:(e,t,i)=>{"use strict";i.d(t,{getStudyInputsInfo:()=>r});var s=i(28353);function r(e){return void 0===e.inputs?[]:e.inputs.map(e=>({...e,id:e.id,localizedName:void 0!==e.name?(0,s.t)(e.name,{context:"input"}):""}))}},70120:(e,t,i)=>{"use strict";i.d(t,{getStudyStylesInfo:()=>n});var s,r=i(27788);function n(e){const t={};if(e.defaults){const i=(0,r.default)(e.defaults);t.defaults=i}return void 0!==e.plots&&(t.plots=(0,r.default)(e.plots)),void 0!==e.styles&&(t.styles=(0,r.default)(e.styles)),void 0!==e.bands&&(t.bands=(0,r.default)(e.bands)),void 0!==e.filledAreas&&(t.filledAreas=(0,r.default)(e.filledAreas)),void 0!==e.palettes&&(t.palettes=(0, -r.default)(e.palettes)),t}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={}))},817:(e,t,i)=>{"use strict";i.d(t,{ChartSession:()=>u});var s=i(2872),r=i.n(s),n=i(88537),o=i(52714),a=i.n(o),l=i(9423),c=i(98125);const h=(0,c.getLogger)("ChartApi.AbstractSession");var d=i(80643);(0,c.getLogger)("ChartSession");class u extends class{constructor(e,t,i){this._isConnected=new(a())(!1),this._state=0,this._isConnectForbidden=!1,this._sessionId="",this._sessionIdChanged=new(r()),this._chartApi=e,this._sessionPrefix=t,this._shouldReconnectAfterCriticalError=i}destroy(){this._logNormal("Destroying session"),this._isConnected.unsubscribe(),this.disconnect(),this._sessionIdChanged.destroy(),delete this._chartApi,this._logNormal("Session has been destroyed")}isConnected(){return this._isConnected}sessionId(){return this._sessionId}onSessionIdChanged(){return this._sessionIdChanged}connect(){0===this._state&&((0,n.assert)(!this._isConnectForbidden,"Cannot call connect because it is forbidden at this moment"),this._setSessionId(`${this._sessionPrefix}_${(0,l.randomHash)()}`),this._logNormal("Connecting session - wait until transport stay connected"),this._state=1,this._chartApi.createSession(this._sessionId,this))}disconnect(){0!==this._state&&((0,n.assert)(""!==this._sessionId,"sessionId must not be invalid"),this._logNormal("Disconnecting session..."),this._forbidConnectWhile(()=>{this._chartApi.connected()&&this._sendRemoveSession(),this._processDestroyingOnServer()}))}onMessage(e){switch(e.method){case"connected":return void this._onChartApiConnected();case"disconnected":return void this._onChartApiDisconnected();case"critical_error":const t=String(e.params[0]),i=String(e.params[1]);return void this._onCriticalError(t,i)}this._onMessage(e)}_getChartApi(){return this._chartApi}_generateLogMessage(e){return`[${this._sessionId}] ${e}`}_onCriticalError(e,t){this._logError(`Critical error. Reason=${e}, info=${t}.`),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this._shouldReconnectAfterCriticalError?(this._logNormal("Reconnecting after critical error..."),this.connect()):this._logNormal("Reconnecting after critical error skipped")}_onChartApiConnected(){(0,n.assert)(1===this._state,"Session is not registered"),this._logNormal("Transport is connected. Creating session on the server"),this._sendCreateSession(),this._state=2,this._isConnected.setValue(!0)}_onChartApiDisconnected(){this._logNormal("Transport is disconnected. Reconnecting..."),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this.connect()}_setSessionId(e){const t=this._sessionId;this._logNormal(`Changing sessionId: old=${t}, new=${e}`),this._sessionId=e,this._sessionIdChanged.fire(e,t)}_logNormal(e){h.logNormal(this._generateLogMessage(e))}_logError(e){h.logError(this._generateLogMessage(e))}_processDestroyingOnServer(){this._state=0,this._isConnected.setValue(!1),this._chartApi.removeSession(this._sessionId),this._setSessionId("")}_forbidConnectWhile(e){this._isConnectForbidden=!0,e(), -this._isConnectForbidden=!1}}{constructor(e,t=!1){super(e,"cs",!1),this._sessionDisabled=!1,this._handler=null,this._criticalError=new(r()),this._symbolResolveMap=new Map,this._disableStatistics=t}destroy(){this._criticalError.destroy(),this._handler=null,this._symbolResolveMap.clear(),super.destroy()}serverTimeOffset(){return this._getChartApi().serverTimeOffset()}switchTimezone(e){return this._getChartApi().switchTimezone(this.sessionId(),e)}defaultResolutions(){return this._getChartApi().defaultResolutions()}availableCurrencies(){return this._getChartApi().availableCurrencies()}availableUnits(){return this._getChartApi().availableUnits()}resolveSymbol(e,t,i){if(this._symbolResolveMap.has(t)){const[e,s]=this._symbolResolveMap.get(t);return Array.isArray(s)?s.push(i):s.then(i),e}{const s=[i];return this._getChartApi().resolveSymbol(this.sessionId(),e,t,i=>{"symbol_error"===i.method?this._symbolResolveMap.delete(t):this._symbolResolveMap.set(t,[e,Promise.resolve(i)]),s.forEach(e=>e(i))}),this._symbolResolveMap.set(t,[e,s]),e}}requestFirstBarTime(e,t,i){return this._getChartApi().requestFirstBarTime(this.sessionId(),e,t,i)}createSeries(e,t,i,s,r,n,o){return this._getChartApi().createSeries(this.sessionId(),e,t,i,s,r,n,o)}modifySeries(e,t,i,s,r,n){return this._getChartApi().modifySeries(this.sessionId(),e,t,i,s,r,n)}removeSeries(e){return!!this.isConnected().value()&&this._getChartApi().removeSeries(this.sessionId(),e)}requestMoreData(e,t,i){return"number"==typeof e?this._getChartApi().requestMoreData(this.sessionId(),e):this._getChartApi().requestMoreData(this.sessionId(),e,t,i)}requestMoreTickmarks(e,t,i){return(0,d.isNumber)(e)?this._getChartApi().requestMoreTickmarks(this.sessionId(),e):this._getChartApi().requestMoreTickmarks(this.sessionId(),e,t,i)}requestMetadata(e,t){(()=>{this._getChartApi().requestMetadata(this.sessionId(),e,t)})()}isCanCreateStudy(e){return this._getChartApi().isCanCreateStudy(e)}createStudy(e,t,i,s,r,n,o){return this._getChartApi().createStudy(this.sessionId(),e,t,i,s,r,n,o)}rebindStudy(e,t,i,s,r,n,o){return this._getChartApi().rebindStudy(this.sessionId(),e,t,i,s,r,n,o)}modifyStudy(e,t,i,s){return this._getChartApi().modifyStudy(this.sessionId(),e,t,i,s)}removeStudy(e,t){return this._getChartApi().removeStudy(this.sessionId(),e,t)}createPointset(e,t,i,s,r,n){return this._getChartApi().createPointset(this.sessionId(),e,t,i,s,r,n)}modifyPointset(e,t,i,s){return this._getChartApi().modifyPointset(this.sessionId(),e,t,i,s)}removePointset(e){return this._getChartApi().removePointset(this.sessionId(),e)}setVisibleTimeRange(e,t,i,s,r,n){this._getChartApi().setVisibleTimeRange(this.sessionId(),e,t,i,s,!0,r,n)}criticalError(){return this._criticalError}connect(e=null){null!==e&&(this._handler=e),this._symbolResolveMap.clear(),super.connect()}setHandler(e){this._handler=e}connected(){return this.isConnected().value()&&!this._sessionDisabled}disable(){this._sessionDisabled=!0}chartApi(){return this._getChartApi()}_sendCreateSession(){Object.keys(this).forEach(e=>{ -/^(s|st|symbol_)\d+$/.test(e)&&delete this[e]}),this._getChartApi().chartCreateSession(this.sessionId(),this._disableStatistics)}_sendRemoveSession(){this._getChartApi().chartDeleteSession(this.sessionId())}_onMessage(e){this._handler&&this._handler(e)}_onCriticalError(e,t){this._criticalError.fire(e,t),super._onCriticalError(e,t)}}},84801:(e,t,i)=>{"use strict";var s=i(80643).declareClassAsPureInterface;function r(){}TradingView.WEB_SOCKET_WAS_CONNECTED=!1,r.REBIND_STUDY_STANDALONE_TO_CHILD=1,r.REBIND_STUDY_CHILD_TO_STANDALONE=2,r.prototype.defaultWatchlistSymbols=function(){},r.prototype.defaultResolutions=function(){},r.prototype.availableCurrencies=function(){},r.prototype.availableUnits=function(){},r.prototype.supportedSymbolsTypes=function(){},r.prototype.supportedExchangesList=function(){},r.prototype.symbolsGrouping=function(){},r.prototype.quoteCreateSession=function(e){},r.prototype.quoteDeleteSession=function(e){},r.prototype.quoteSetFields=function(e,t){},r.prototype.quoteAddSymbols=function(e,t){},r.prototype.quoteRemoveSymbols=function(e,t){},r.prototype.quoteFastSymbols=function(e,t){},r.prototype.depthCreateSession=function(e,t,i){},r.prototype.depthDeleteSession=function(e){},r.prototype.depthSetSymbol=function(e,t){},r.prototype.depthClearSymbol=function(e){},r.prototype.depthSetScale=function(e,t){},r.prototype.chartCreateSession=function(e,t){},r.prototype.chartDeleteSession=function(e){},r.prototype.createSession=function(e,t){},r.prototype.removeSession=function(e){},r.prototype.connected=function(){},r.prototype.connect=function(){},r.prototype.disconnect=function(){},r.prototype.switchTimezone=function(e,t){},r.prototype.resolveSymbol=function(e,t,i,s){},r.prototype.createSeries=function(e,t,i,s,r,n,o,a){},r.prototype.removeSeries=function(e,t,i){},r.prototype.modifySeries=function(e,t,i,s,r,n,o){},r.prototype.requestMoreData=function(e,t,i,s){},r.prototype.requestMetadata=function(e,t,i){},r.prototype.isCanCreateStudy=function(e,t){},r.prototype.createStudy=function(e,t,i,s,r,n,o){},r.prototype.rebindStudy=function(e,t,i,s,r,n,o,a){},r.prototype.removeStudy=function(e,t,i){},r.prototype.modifyStudy=function(e,t,i,s,r){},r.prototype.createPointset=function(e,t,i,s,r,n,o){},r.prototype.modifyPointset=function(e,t,i,s,r){},r.prototype.removePointset=function(e,t,i){},r.prototype.requestMoreTickmarks=function(e,t,i,s){},r.prototype.requestFirstBarTime=function(e,t,i,s){},r.prototype._invokeHandler=function(e,t){},r.prototype._sendRequest=function(e,t){},r.prototype._onMessage=function(e){},r.prototype._dispatchNotification=function(e){},r.prototype._invokeNotificationHandler=function(e,t,i){},r.prototype._notifySessions=function(e){},r.prototype.unpack=function(e){},r.prototype.searchSymbols=function(e,t,i,s,r,n,o,a,l,c){},r.prototype.serverTimeOffset=function(){},r.prototype.getMarks=function(e,t,i,s,r){},r.prototype.getTimescaleMarks=function(e,t,i,s,r){},s(r,"ChartApiInterface"),e.exports.HandlerInfo=function(e,t){this.handler=e,this.customId=t},e.exports.ChartApiInterface=r},17437:(e,t,i)=>{ -"use strict";i.r(t),i.d(t,{setCustomAdapter:()=>_,initialize:()=>m,updateUser:()=>g,getChartsCount:()=>f,getCharts:()=>v,removeChart:()=>S,saveChart:()=>y,getChartContent:()=>b,loadChart:()=>w,removeStudyTemplate:()=>C,getStudyTemplateContent:()=>P,saveStudyTemplate:()=>T,getStudyTemplatesList:()=>x,invalidateStudyTemplatesList:()=>I,getStudyTemplateContentById:()=>M,getStandardStudyTemplateContentById:()=>L,removeStudyTemplateById:()=>A,renameStudyTemplate:()=>E,replaceStudyTemplate:()=>k,getDrawingTemplates:()=>D,loadDrawingTemplate:()=>V,removeDrawingTemplate:()=>B,saveDrawingTemplate:()=>N});var s=i(76422),r=i(98125),n=i(88461);const o=(0,r.getLogger)("Chart.SaveloadAdapter.Library");let a,l,c,h,d=null,u=null;function p(e){return`${c}/${encodeURIComponent(h)}/${e}?client=${encodeURIComponent(a)}&user=${encodeURIComponent(l)}`}function _(e){d=e}function m(e,t,i,s){a=e,l=t,c=i,h=s}function g(e){l=e}function f(e,t){throw new Error("Not implemented")}async function v(){const e=e=>e.map(e=>({id:e.id,name:e.name,image_url:String(e.id),modified_iso:e.timestamp,short_symbol:e.symbol,interval:e.resolution}));if(d)return d.getAllCharts().then(e);try{const t=await fetch(""+p("charts"),{credentials:"same-origin"});if(!t.ok)throw new Error(`Getting chart content response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Get chart content request failed: "+i.message);return e(i.data)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function S(e){if(d)d.removeChart(e);else try{const t=await fetch(`${p("charts")}&chart=${encodeURIComponent(e)}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error(`Remove chart response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Remove drawing template request failed: "+i.message)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function y(e,t,i,s,r){const a=r.id.value(),l={name:e,content:JSON.stringify(s),symbol:t,resolution:i};if(d)return d.saveChart({...l,id:a});try{const e=new FormData;for(const t in l)e.append(t,l[t]);let t=p("charts");null!=a&&(t+="&chart="+encodeURIComponent(a));const i=await fetch(t,{credentials:"same-origin",method:"POST",body:e});if(!i.ok)throw new Error(`Saving chart content response was not OK. Status: ${i.status}.`);const s=await i.json();if("ok"!==s.status)throw new Error("Saving chart content request failed: "+s.message);return s.id.toString()}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function b(e){const t=t=>{const i=JSON.parse(t);return i.uid=e.id,i};if(d)return d.getChartContent(e.id).then(e=>t(e));try{const i=await fetch(`${p("charts")}&chart=${encodeURIComponent(e.id)}`,{credentials:"same-origin"});if(!i.ok)throw new Error(`Getting chart content response was not OK. Status: ${i.status}.`);const s=await i.json();if("ok"!==s.status)throw new Error("Get chart content request failed: "+s.message);return t(s.data.content)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}function w(e){b(e).then(e=>{ -s.emit("chart_load_requested",e)},()=>{o.logWarn("Error loading chart")})}async function C(e){try{if(d)return d.removeStudyTemplate({name:e});const t=await fetch(`${p("study_templates")}&template=${encodeURIComponent(e)}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error(`Remove study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Remove study template request failed: "+i.message)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function P(e){try{if(d){return{content:await d.getStudyTemplateContent({name:e})}}const t=await fetch(`${p("study_templates")}&template=${encodeURIComponent(e)}`,{credentials:"same-origin"});if(!t.ok)throw new Error(`Get study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Get study template request failed: "+i.message);return i.data}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function T(e){try{if(d)return d.saveStudyTemplate(e).then(()=>({error:""})).catch(e=>({error:null!=e?(0,n.errorToString)(e):"error"}));const t=new FormData;t.append("name",e.name),t.append("content",e.content);const i=await fetch(p("study_templates"),{method:"POST",body:t,credentials:"same-origin"});if(!i.ok)throw new Error(`Save study template response was not OK. Status: ${i.status}.`);const s=await i.json();return{error:"ok"===s.status?"":s.status}}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function x(){try{if(u)return u;u=[];const e=e=>(u=e.map(e=>({is_default:!1,name:e.name})),u);if(d)return d.getAllStudyTemplates().then(e);const t=await fetch(p("study_templates"),{method:"GET",credentials:"same-origin"});if(!t.ok)throw new Error(`Study templates list response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Study templates list request failed: "+i.message);return e(i.data)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}function I(){u=null}function M(e,t){throw new Error("Not implemented")}function L(e,t){throw new Error("Not implemented")}function A(e,t){throw new Error("Not implemented")}function E(e,t,i){throw new Error("Not implemented")}function k(e,t,i){throw new Error("Not implemented")}async function D(e){throw new Error("Not implemented")}async function V(e,t){throw new Error("Not implemented")}async function B(e,t){throw new Error("Not implemented")}async function N(e,t,i){throw new Error("Not implemented")}},87983:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(69177),n=i(29823).Interval,o=i(16616),a=i(84093),l=i(84801),c=l.ChartApiInterface,h=l.HandlerInfo,d=i(80643).requireFullInterfaceImplementation,u=i(98125).getLogger("Chart.ChartApiLocal"),p=i(73383).TIMEFRAMETYPE,_=i(65862).createDwmAligner,m=i(67337);TradingView.STUDY_COUNT_LIMIT=210,JSServer.ChartApi=function(e){this._notificationHandlers={},this._sessions={},this.studyCounter=0,this._connected=!1,this._enabled=!1,this._studyEngine=new o(e),this._callbacks={},this._serverTimeOffset=0;var t=this -;this._studyEngine.on("configuration_received",(function(){t._fireEvent("configuration_received")})),this._studyEngine.on("realtime_tick",(function(e){var i={time:e.value[0]/1e3,open:e.value[1],high:e.value[2],low:e.value[3],close:e.value[4],volume:e.value[5]};t._fireEvent("realtime_tick",i,!0)})),this._setVisibleRangeTimeout={}},JSServer.ChartApi.prototype.destroy=function(){this._studyEngine.destroy(),this._studyEngine=null},JSServer.ChartApi.prototype.purgeCache=function(e){this._studyEngine.purgeCache(),this._studyEngine.purgeDataCache()},JSServer.ChartApi.prototype.defaultWatchlistSymbols=function(){const e=this._watchlistSettings.default_symbols;return m.enabled("uppercase_instrument_names")?e.map(e=>e.toUpperCase()):e},JSServer.ChartApi.prototype.defaultResolutions=function(){return this._studyEngine.supportedResolutions()||["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"]},JSServer.ChartApi.prototype.availableCurrencies=function(){var e=this._studyEngine.supportedCurrencies().map((function(e){return"string"==typeof e?{id:e,code:e}:e}));return Promise.resolve(e)},JSServer.ChartApi.prototype.availableUnits=function(){return Promise.resolve(this._studyEngine.supportedUnits())},JSServer.ChartApi.prototype.supportedSymbolsTypes=function(){return this._studyEngine.supportedSymbolsTypes()},JSServer.ChartApi.prototype.supportedExchangesList=function(){return this._studyEngine.supportedExchangesList()},JSServer.ChartApi.prototype.symbolsGrouping=function(){return this._studyEngine.symbolsGrouping()},JSServer.ChartApi.prototype.start=function(){this._enabled=!0,this._fireEvent("start_enabled")},JSServer.ChartApi.prototype.unsubscribe=function(e,t){var i=this._callbacks[e];i&&i.splice(i.indexOf(t),1)},JSServer.ChartApi.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},JSServer.ChartApi.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){var s=this._callbacks[e].slice(0);i||(this._callbacks[e]=[]);for(var r=0;rn||(TradingView.ChartapiMessagerInstances[e].onSeriesTimeframeUpdate(t,i,_,n,a),l&&setTimeout(l,0))}}}if(this._studyEngine.isTimeScaleExtendedTo(e,1e3*r))p();else{var m=TradingView.ChartapiMessagerInstances[e].seriesCompleted,g=TradingView.ChartapiMessagerInstances[e].seriesError;void 0!==this._setVisibleRangeTimeout[e]&&clearTimeout(this._setVisibleRangeTimeout[e]),this._setVisibleRangeTimeout[e]=setTimeout(function(){delete this._setVisibleRangeTimeout[e],m.subscribe(null,f,!0),g.subscribe(null,v,!0),this._studyEngine.ensureExtendedTo(t,e,1e3*r)}.bind(this),0)}function f(e,s){e===t&&s===i&&(m.unsubscribe(null,f),g.unsubscribe(null,v),p())}function v(e,s){e===t&&s===i&&m.unsubscribe(null,f)}},JSServer.ChartApi.prototype._applyTimeFrame=function(e,t,i,s,o){var a,l,c={},h=!0;if(o.type===p.PeriodBack){var d=this._studyEngine.getSeriesLastBarTime(e,i);if(null===d)return;l=d/1e3;var u=n.parse(o.value),m=this._studyEngine.getSeriesSymbolInfo(e,i);a=r.alignPeriodsBackForVisibleRange(m.session,m.session_holidays,m.corrections,u.letter(),u.multiplier(),1,d)/1e3 -;var g=_(this._studyEngine.getSeriesInterval(e,i),m);null!==g&&(l=g.timeToExchangeTradingDay(1e3*l)/1e3,a=g.timeToExchangeTradingDay(1e3*a)/1e3),c={applyDefaultRightMargin:!0},h=!1}else a=o.from,l=o.to;this.setVisibleTimeRange(e,i,s,a,l,h,c)},JSServer.ChartApi.prototype.modifySeries=function(e,t,i,s,r,n,o){var a=this;this._notificationHandlers[e][t]=new h((function(r){"series_completed"===r.method&&null!==n&&(a._applyTimeFrame(e,s,t,i,n),n=null),o(r)}),t),this._studyEngine.modifySeries(e,t,s,r,i)},JSServer.ChartApi.prototype.requestMoreData=function(e,t){this._studyEngine.extendSeriesRange(e,t)},JSServer.ChartApi.prototype.setStudiesAccessController=function(e){this.studiesAccessController=e},JSServer.ChartApi.prototype.setWatchlistSettings=function(e){this._watchlistSettings=e},JSServer.ChartApi.prototype.allStudiesMetadata=function(){return this._studyEngine.studiesMetadata()},JSServer.ChartApi.prototype.requestMetadata=function(e,t,i){this._notificationHandlers[e][t]=new h(i,t);var s=this.studiesAccessController.getEnabledTools();TradingView.ChartapiMessagerInstances[e].onRequestMetadata(t,s)},JSServer.ChartApi.prototype.isCanCreateStudy=function(){return this.studyCounter{"use strict";var s=i(2872),r=function(e,t){this._server=e,this._session=t,this.seriesCompleted=new s,this.seriesError=new s};r.prototype.onRequestMetadata=function(e,t){this._server.receiveLocalResponse({method:"studies_metadata",params:[this._session,e,{errors:[],hash:"",metainfo:t,migrations:[]}]})},r.prototype.onSymbolResolved=function(e,t){this._server.receiveLocalResponse({method:"symbol_resolved",params:[this._session,e,t]})},r.prototype.onSymbolError=function(e,t){this._server.receiveLocalResponse({method:"symbol_error",params:[this._session,e,t]})},r.prototype.onStudyError=function(e,t,i){this._server.receiveLocalResponse({method:"study_error",params:[this._session,e,t,i]})},r.prototype.onSeriesLoading=function(e,t){this._server.receiveLocalResponse({method:"series_loading",params:[this._session,e,t]})},r.prototype.onSeriesCompleted=function(e,t,i){this._server.receiveLocalResponse({method:"series_completed",params:[this._session,e,i,t]}),this.seriesCompleted.fire(e,t)},r.prototype.onSeriesError=function(e,t,i){this._server.receiveLocalResponse({method:"series_error",params:[this._session,e,t,i]}),this.seriesError.fire(e,t)},r.prototype.onStudyCompleted=function(e,t){this._server.receiveLocalResponse({method:"study_completed",params:[this._session,e,t]})},r.prototype.onStudyLoading=function(e,t){this._server.receiveLocalResponse({method:"study_loading",params:[this._session,e,t]})},r.prototype.onTickmarksUpdated=function(e,t){var i={method:"tickmark_update",params:[this._session,{index:e,zoffset:0,changes:[],marks:t,index_diff:[] -}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleUpdate=function(e,t){var i={method:"timescale_update",params:[this._session,this._prepareDataUpdateObjects(t),{index:e.pointsIndex,zoffset:0,changes:e.points,marks:e.marks,index_diff:e.indexChange,baseIndex:e.baseIndex}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleCompleted=function(e){this._server.receiveLocalResponse({method:"timescale_completed",params:[this._session,e]})},r.prototype.onSeriesTimeframeUpdate=function(e,t,i,s,r){var n={method:"series_timeframe",params:[this._session,e,t,i,s,null,!0,r]};this._server.receiveLocalResponse(n)},r.prototype.onPointsetDataUpdate=function(e,t,i){this.onDataUpdate(e,t,i,null)},r.prototype._prepareDataUpdateObjects=function(e){var t={};return e.forEach((function(e){t[e.objId]={series:e.data,turnaround:e.turnaround},e.nonSeriesData&&(e.nonSeriesData.data?t[e.objId].nonseries={d:JSON.stringify(e.nonSeriesData.data),indexes:e.nonSeriesData.indexes}:t[e.objId].nonseries={d:"",indexes:[]})})),t},r.prototype.onDataUpdate=function(e,t,i,s){var r={method:"data_update",params:[this._session,this._prepareDataUpdateObjects([{objId:e,turnaround:t,data:i,nonSeriesData:s}])]};this._server.receiveLocalResponse(r)},r.prototype.onQuotesData=function(e){this._server.receiveLocalResponse({method:"quote_symbol_data",params:e})},r.prototype.onDepthData=function(e){this._server.receiveLocalResponse({method:"dd",params:e})},r.prototype.onDepthUpdate=function(e){this._server.receiveLocalResponse({method:"dpu",params:e})},r.prototype.onClearData=function(e){this._server.receiveLocalResponse({method:"clear_data",params:[this._session,e]})},TradingView.ChartapiMessagerInstances=[],e.exports=r},41986:(e,t,i)=>{"use strict";i.d(t,{DatafeedRequestsCachedProcessor:()=>_});var s=i(88537),r=i(29823),n=i(55257),o=i(216),a=i(67337),l=i(69177),c=i(65862),h=i(90388);i(94419);function d(e,t){return e.ticker+(e.currency_code?"_#_"+e.currency_code:"")+(e.unit_id?"_#_"+e.unit_id:"")+(e.subsession_id?"_#_"+e.subsession_id:"")+"_#_"+t}function u(e){return new Date(e).toISOString()}class p{constructor(e,t,i,s,n,o){this._cache={bars:[]},this._nextSubscriptionId=0,this._pendingSubscribers=[],this._subscribers=[],this._requesting=!1,this._leftDate=null,this._nextTime=null,this._realtimeOn=!1,this._endOfData=!1,this._resetCacheTimeout=null,this._errorMessage=null,this._destroyed=!1,this._emptyResponsesCount=0,this._datafeed=e,this._symbolInfo=t,this._interval=r.Interval.parse(i),this._resolution=this._interval.value(),this._dwmAligner=n,this._serverTimeOffsetGetter=s,this._resetCacheTimePeriod=void 0===o?1e4:o,this._sessionSpec=new h.SessionSpec(t.timezone,t.session,t.session_holidays,t.corrections),this._updateDatesFromExpirationDate()}destroy(){0!==this._subscribers.length&&console.warn("Destroying with not-empty state"),this._clearResetCacheTimeout(),this._unsubscribeRealtime(),this._purgeCache(),delete this._datafeed,this._destroyed=!0}addSubscription(e,t,i){const s=this._getNextSubscriptionId();this._pendingSubscribers.push({key:s, -range:e,onHistoryCallback:t,onErrorCallback:i}),r.Interval.isDWM(this._resolution)&&void 0!==e.to&&null!==this._dwmAligner&&e.to%864e5&&console.warn(`Internal error: invalid date for DWM resolution ${u(e.to)}, expected time without a time part`),this._clearResetCacheTimeout();return setTimeout(()=>{this._destroyed||this._processPendingSubscribers()},0),s}removeSubscription(e){const t=this._pendingSubscribers.find(t=>t.key===e);if(t)return void this._pendingSubscribers.splice(this._pendingSubscribers.indexOf(t),1);const i=this._subscribers.find(t=>t.key===e);if(i)return this._subscribers.splice(this._subscribers.indexOf(i),1),void(this._subscribers.length||(this._resetCacheTimeout=setTimeout(()=>{this._resetCacheTimeout=null,this._purgeCache(),this._unsubscribeRealtime()},this._resetCacheTimePeriod)));console.warn("Unknown subscription symbol={0}, resolution={1}, key={2}".format(this._symbolInfo.name,this._resolution,e))}_logMessage(e,t){if(a.enabled("charting_library_debug_mode")||t){const t=this._symbolInfo.currency_code,i=this._symbolInfo.unit_id;console.log(`FEED [${this._symbolInfo.name}|${this._resolution}${t?"|"+t:""}${i?"|"+i:""}]: ${e}`)}}_clearResetCacheTimeout(){null!==this._resetCacheTimeout&&(clearTimeout(this._resetCacheTimeout),this._resetCacheTimeout=null)}_purgeCache(){this._logMessage("Reset cache"),this._cache={bars:[]},this._errorMessage=null,this._leftDate=null,this._endOfData=!1,this._updateDatesFromExpirationDate()}_updateDatesFromExpirationDate(){void 0!==this._symbolInfo.expiration_date&&(this._nextTime=1e3*this._symbolInfo.expiration_date,this._leftDate=1e3*(this._symbolInfo.expiration_date+1))}_dealignTime(e){return null===this._dwmAligner?e:this._dwmAligner.timeToExchangeTradingDay(e)}_normalizeRange(e){const t=void 0!==e.to?e.to:this._dealignTime(this._now());if(0===this._cache.bars.length||void 0!==e.to&&t<=(0,s.ensureNotNull)(this._leftDate))return{countBack:e.countBack,to:t};const i=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(t):t,r=(0,n.lowerbound)(this._cache.bars,i,(e,t)=>e.time{e.onErrorCallback(t)})}let t=this._normalizeRange(e[0].range);for(const i of e.map(e=>this._normalizeRange(e.range)))(i.tot.countBack)&&(t=i);this._logMessage(`Leftmost subscriber requires ${t.countBack} bars prior ${u(t.to)}`) -;!(null===this._leftDate||t.to{const t=this._moveSubscriberToRealtime(e);this._returnHistoryDataToSubscriber(e,t)}),this._subscribeRealtimeIfNeeded()):this._ensureRequestedTo(t)}_moveSubscriberToRealtime(e){const t={key:e.key,onHistoryCallback:e.onHistoryCallback,barset:null};return this._subscribers.push(t),t}_isSymbolExpired(){return this._symbolInfo.expired||void 0!==this._symbolInfo.expiration_date}_subscribeRealtimeIfNeeded(){!this._subscribers.length||this._realtimeOn||this._isSymbolExpired()||this._subscribeRealtime()}_subscribeRealtime(){if(this._symbolInfo.expired||this._realtimeOn)return;this._realtimeOn=!0,this._datafeed.subscribeBars(this._symbolInfo,this._resolution,e=>{null!==this._dwmAligner&&(e.time=this._dwmAligner.timeToSessionStart(e.time)),this._putToCacheNewBar(e),this._subscribers.forEach(t=>{const i=t.barset;if(null===i)throw new Error("subscriber.barset is null");i.add(e),t.onHistoryCallback(i)})},d(this._symbolInfo,this._resolution),()=>{this._unsubscribeRealtime();const e=this._leftDate;this._purgeCache(),null!==e&&this._ensureRequestedTo({to:e,countBack:0})}),this._logMessage("Subscribed to realtime")}_unsubscribeRealtime(){!this._isSymbolExpired()&&this._realtimeOn&&(this._datafeed.unsubscribeBars(d(this._symbolInfo,this._resolution)),this._logMessage("Unsubscribed from realtime"),this._realtimeOn=!1)}_returnHistoryDataToSubscriber(e,t){const i=this._normalizeRange(e.range),s=this._createBarsetForRange(i);s.count()>0?this._logMessage("Bars to return for request {0}: total {1} bars in [{2} ... {3}] ".format(e.key,s.count(),u(s.bars[0].time),u(s.bars[s.count()-1].time))):this._logMessage("Request {0}. Nothing to return.".format(e.key)),t.barset=s,this._endOfData&&null!==this._leftDate&&i.to<=this._leftDate&&(s.endOfData=!0),e.onHistoryCallback(s)}_createBarsetForRange(e){const t=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(e.to):e.to,i=(0,n.lowerbound)(this._cache.bars,t,(e,t)=>e.time{if(!this._destroyed)if(a)this._logMessage("getBars callback is already called before",!0);else{if(a=!0,e.length>0){const t=` [${u(e[0].time)} ... ${u(e[e.length-1].time)}]`;this._logMessage(`Receiving bars: total ${e.length} bars in ${t}, requested range: ${o}`)}else this._logMessage("Receiving bars: barset is empty, requested range: "+o);this._requesting=!1,this._processBars(e,t)}},e=>{this._destroyed||(a?this._logMessage("getBars callback is already called before",!0):(a=!0,this._requesting=!1,this._errorMessage=e||null,this._processPendingSubscribers()))})}_processBars(e,t){this._checkBars(e),this._alignBarsTime(e),e.length>0?(this._emptyResponsesCount=0,this._processFullBarset(e,t)):(this._emptyResponsesCount+=1,this._processEmptyBarset(t)),this._processPendingSubscribers()}_processEmptyBarset(e){e&&e.nextTime?(this._logMessage("Next time received: `{0}`".format(u(1e3*e.nextTime))),this._nextTime=1e3*e.nextTime):e&&e.noData?(this._logMessage("EOD received"),this._setEndOfData()):this._logMessage("nextTime or noData should present in metainfo when empty barset is returned"),50===this._emptyResponsesCount&&(this._logMessage("EOD detected due 50 empty responses in a row"),this._setEndOfData())}_setEndOfData(){this._endOfData=!0,this._cache.bars.length&&(this._leftDate=this._dealignTime(this._cache.bars[0].time))}_processFullBarset(e,t){this._putToCache(e)?null!==this._leftDate&&0!==this._cache.bars.length&&(this._interval.isTicks()?this._leftDate=this._dealignTime(this._cache.bars[0].time):this._leftDate=Math.min(this._leftDate,this._dealignTime(this._cache.bars[0].time))):this._logMessage("Incremental update failed. Starting full update. Returned data should be in the requested range.",!0),t&&t.nextTime?console.warn("nextTime should be set when there is no data in the requested period only"):t&&t.noData&&console.warn("noData should be set when there is no data in the requested period and earlier only")}_getNextSubscriptionId(){return this._nextSubscriptionId++}_checkBars(e,t=!1){ -if(a.enabled("charting_library_debug_mode"))for(let i=1;i"number"!=typeof e[i][t]||!isFinite(e[i][t]))&&console.error("Wrong bars values: all OHLC values should be numbers")}}_putToCache(e){if(0===e.length)return!0;if(this._cache.bars.length===e.length&&this._cache.bars[0].time===e[0].time&&this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time)return this._logMessage("Time range of received data is the same as cached one. Skip the update."),!0;if(0!==this._cache.bars.length&&e[e.length-1].time===this._cache.bars[0].time&&this._cache.bars.splice(0,1),0!==this._cache.bars.length&&e[e.length-1].time>=this._cache.bars[0].time){const t=this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time;if(this._cache.bars=[],!t)return this._leftDate=null,!1;this._logMessage("Received history up to now instead of incremental update. Return exactly what is requested.")}return this._cache.bars=[...e,...this._cache.bars],this._checkBars(this._cache.bars,!0),!0}_putToCacheNewBar(e){const t=this._cache.bars.length,i=e.time,s=0===t?NaN:this._cache.bars[t-1].time;0===t||st.destroy()),this._threads={},delete this._datafeed}purgeCache(){this._forEachThread((e,t)=>t.destroy()),this._threads={}}subscribe(e,t,i,s,r){const n=d(e,t);this._threads[n]||(this._threads[n]=this._createThread(e,t));return n+'"'+this._threads[n].addSubscription(i,s,r)}unsubscribe(e){const t=e.split('"');if(2!==t.length)return void console.warn("Wrong guid format");const i=t[0],s=parseInt(t[1]);this._threads.hasOwnProperty(i)?this._threads[i].removeSubscription(s):console.warn("Data thread doesnt exist: "+e)}_createThread(e,t){return new p(this._datafeed,e,t,this._serverTimeOffsetGetter,(0,c.createDwmAligner)(t,e),this._resetCacheTimePeriod)}_forEachThread(e){Object.keys(this._threads).forEach(t=>e(t,this._threads[t]))}}},42934:(e,t,i)=>{"use strict";i.d(t,{barTimeToEndOfPeriod:()=>r,endOfPeriodToBarTime:()=>n});var s=i(68684);function r(e,t,i){if(i.isDays())return t;if(e.moveTo(1e3*t),i.isIntraday()){const i=e.indexOfBar(1e3*t);if(i<0)throw new Error(t+" is out of the instrument session ");return e.endOfBar(i)/1e3} -return e.startOfBar(s.SessionStage.LASTBAR_SESSION)/1e3}function n(e,t,i){if(i.isDays())return t;const s=1e3*t-1;if(e.moveTo(s),i.isIntraday()){const i=e.indexOfBar(s);if(i<0)throw new Error(t+" is out of the instrument session ");return e.startOfBar(i)/1e3}return t=e.startOfBar(0)/1e3}},79283:(e,t,i)=>{"use strict";i.d(t,{replaceGraphicsTimesWithTimePointIndexIndex:()=>n});const s=new Map([["horizlines",e=>[e.startIndex,e.endIndex]],["hhists",e=>[e.firstBarTime,e.firstBarTime]],["vertlines",e=>[e.index]],["polygons",e=>e.points.map(e=>e.index)],["backgrounds",e=>[e.start,e.stop]]]),r=new Map([["horizlines",(e,t)=>{const i=e;i.startIndex=t.get(i.startIndex),i.endIndex=t.get(i.endIndex)}],["hhists",(e,t)=>{const i=e;i.firstBarTime=t.get(i.firstBarTime),i.lastBarTime=t.get(i.lastBarTime)}],["vertlines",(e,t)=>{const i=e;i.index=t.get(i.index)}],["polygons",(e,t)=>{const i=e;for(const e of i.points)e.index=t.get(e.index)}],["backgrounds",(e,t)=>{const i=e;i.start=t.get(i.start),i.stop=t.get(i.stop)}]]);function n(e){const t=e.data&&e.data.graphicsCmds&&e.data.graphicsCmds.create;if(!t)return[];const i=new Map,n=new Set;s.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data){const t=e(s);for(const e of t)i.set(e,-1),n.add(e)}});const o=Array.from(n).sort((e,t)=>e-t);return o.forEach((e,t)=>i.set(e,t)),r.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data)e(s,i)}),o}},65235:(e,t,i)=>{"use strict";var s=i(67337);window.onload=function(){location.hostname.indexOf(".")>=0&&!function(){try{return/^(192|172|10)\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]/.test(location.hostname)||/^.*((?:\.local)|localhost)$/.test(location.hostname)}catch(e){return!1}}()&&setTimeout((function(){try{var e=function(){var e=0;return JSON.parse(urlParams.logo).image&&(e="C",s.enabled("link_to_tradingview")||(e="D")),e}();window.ga&&(0!==e&&window.ga("send","event","s",e),urlParams.utm||window.ga("send","event","l"))}catch(e){}}),3e4)}},41728:(e,t,i)=>{"use strict";var s=i(69177),r={};e.exports=function(e,t,i){var n,o,a={},l=r[i]||"out_of_session",c=!1,h=i,d=t,u=null;function p(){var e={};e.symbolname=h,e.status="ok",e.values={},e.values.current_session=l,r[h]=l,TradingView.ChartapiMessagerInstances[d].onQuotesData([d].concat([e]))}function _(){if(n)if(o)l="out_of_session";else{var e=s.isTradingNow((new Date).getTime(),n)?"market":"out_of_session";e!==l&&(l=e,p())}}return e(i,null,(function(e){c||function(e){n=new s.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),o=e.expired,u=setInterval(_,6e4),_(),p()}(e)}),(function(){})),a.stop=function(){c=!0,u&&clearInterval(u)},a.marketStatus=function(){return l},a}},11565:(e,t,i)=>{"use strict";i.d(t,{getChartStyleStudy:()=>n});var s=i(216);class r{main(e){const t=e.new_var(s.Std.open(e)),i=e.new_var(s.Std.close(e)),r=t.get(1),n=i.get(1),o=s.Std.ohlc4(e),a=s.Std.na(t.get(1))?(s.Std.open(e)+s.Std.close(e))/2:(r+n)/2;t.set(a),i.set(o) -;const l=s.Std.max(s.Std.high(e),s.Std.max(a,o)),c=s.Std.min(s.Std.low(e),s.Std.min(a,o)),h=s.Std.volume(e),d=e.symbol;return[d.time,a,l,c,o,h,d.updatetime,d.isBarClosed]}}function n(e){if(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-"))return new r;const t="unknown builder type: "+e.type;throw console.error(t),new Error(t)}},37750:(e,t,i)=>{"use strict";var s=i(29823).Interval,r=i(65862).isAlignmentEnabled,n=i(11565).getChartStyleStudy,o=i(19234).decodeExtendedSymbol,a=i(983).findSuitableResolutionToBuildFrom,l=i(28930).SubsessionId,c=function(){var e=i(216),t=e.StudyEngine,c=e.BarBuilder,h=e.BarSet;function d(e){this.host=e,this.cache={}}function u(t){console.error(t),e.Std.error(t)}d.prototype.getCache=function(e){return this.cache[e]},d.prototype.putCache=function(e,t){this.cache[e]=t},d.prototype.subscribe=function(e,t,i,s,r,n,o,a,l,c,h){var d=l(o),u=function(e,t,i,s,r,n,o,a,l){var c=r.has_empty_bars?"_":"";return n+e+s+(t||"")+(i||"")+(l||"")+c+"_"+o.countBack+"_"+o.to+"_"+Boolean(a)}(e,t,i,s,o,a,d,c,h),p=this.getCache(u);return p||(p=this.createItem(e,t,i,s,o,d,a,c,h),this.putCache(u,p)),p.listeners.addListener(r,n),{key:u,listener:r}},d.prototype.unsubscribe=function(e){var t=this.getCache(e.key);t&&t.listeners.removeListener(e.listener)},d.prototype.removeUnused=function(){var e=[];for(var t in this.cache){if(this.cache[t])0===this.cache[t].listeners.listenersCount()&&e.push(t)}if(0!==e.length){for(var i=0;i{"use strict";i.d(t,{findSuitableResolutionToBuildFrom:()=>o});var s=i(29823);function r(e,t){const i=t.multiplier();for(let s=e.length-1;s>=0;s--){const r=Number(e[s]);if(i%r==0)return{error:!1,resolution:`${r}${t.letter()}`}}return{error:!0,errorMessage:n(t.value())}} -function n(e){return`Misconfiguration error: it is trying to request ${e} but we cannot build it from lower resolution`}function o(e,t){const i=s.Interval.parse(e);if((i.isWeeks()||i.isMonths())&&t.has_weekly_and_monthly){let e=["1"];i.isWeeks()&&void 0!==t.weekly_multipliers&&(e=t.weekly_multipliers),i.isMonths()&&void 0!==t.monthly_multipliers&&(e=t.monthly_multipliers);const s=r(e,i);if(!s.error)return s}if(i.isDWM()&&(void 0===t.has_daily||t.has_daily))return i.isDays()&&void 0!==t.daily_multipliers?r(t.daily_multipliers,i):void 0===t.daily_multipliers||t.daily_multipliers.includes("1")?{error:!1,resolution:"1D"}:{error:!0,errorMessage:"Misconfiguration error: it is trying to request a resolution but symbol does not support it"};if(i.isDWM())return{error:!0,errorMessage:n(i.value())};if(i.isMinutes()&&!t.has_intraday)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request intraday resolution but symbol does not support it"};if(i.isSeconds()&&!t.has_seconds)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request seconds resolution but symbol does not support it"};if(i.isTicks())return!t.has_ticks||i.multiplier()>1?{error:!0,errorMessage:`Misconfiguration error: it is trying to request ${i.multiplier()} ticks resolution but symbol does not support it`}:{error:!1,resolution:"1T"};const o=i.isSeconds()?t.seconds_multipliers:t.intraday_multipliers;return void 0===o?{error:!1,resolution:i.value()}:r(o,i)}},216:function(e,t,i){"use strict";var s=i(54631).StudyError,r=i(55257),n=i(80643).inherit,o=i(68684).SessionStage,a=i(29823).Interval,l=i(65862).createDwmAligner,c=i(65862).createTimeToBarTimeAligner,h=i(19234).decodeExtendedSymbol,d=i(19234).encodeExtendedSymbolOrGetSimpleSymbolString,u=i(28930).SubsessionId,p=i(37415).PrePostMarketBarIdentifier,_=i(90388).SessionSpec,m=function(){var e,t="undefined"!=typeof window?window:i.g,g=t.PineJsCalendar?t.PineJsCalendar:i(10480),f=i(69177),v=i(11075).extrapolateBarsFrontToTime,S={};function y(e,t,i,s,r){var n=r,o=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(var a=0;a1&&(this._currentIndex.set(n),this._currentValue.set(o),this._pivotIndex.set(a))}function w(e,t,i){this._deviation=e;var s=i.new_var(S.high(i)),r=i.new_var(S.low(i));s.get(2*t+1),r.get(2*t+1),this._pivotHigh=new b(t,t,b.HIGH,s,i),this._pivotLow=new b(t,t,b.LOW,r,i),this._lastVal=i.new_var(NaN),this._lastIndex=i.new_var(-1),this._lastType=i.new_var(),this._index=S.n(i),this._isNewBar=i.symbol.isNewBar,this._isBarClosed=i.symbol.isBarClosed;var n=this._lastIndex.get(1),o=this._lastVal.get(1),a=this._lastType.get(1);this._index>1&&this.addPivot(n,o,a), -this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}function C(e){this.symbol=e,this.vars=[],this.vars_index=0,this.ctx=[],this.ctx_index=0,this.minimumAdditionalDepth=null}function P(e){this.mindepth=0,this.original=NaN,this.modified=!1,this.symbol=e}function T(e){P.call(this,e)}function x(e,t,i,s,r,n,o){var l=h(e);const c="string"==typeof l.symbol?l:l.symbol;this.ticker=c.symbol,this.currencyCode=i||c["currency-id"],this.unitId=s||c["unit-id"],this.subsessionId=o||c.session;var u=c["currency-id"]!==this.currencyCode||c["unit-id"]!==this.unitId;c["currency-id"]=this.currencyCode,c["unit-id"]=this.unitId,u&&(e=d(l)),this.tickerid=e;var p=a.parse(t);this.resolution=p.letter(),this.interval=p.multiplier(),this.period=p.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.session=new f.SessionInfo("Etc/UTC","24x7"),this.regularSubsession=null,this.preMarketSubsession=null,this.postMarketSubsession=null,this.script=r,this.isAdditionalDepthAllowed=void 0===l.type,n&&this.set_symbolinfo(n)}function I(e,t,i,s,r,n,o,a,l,c,h){this.body=n,this.symbols=[],this.runner=r,this.inputCallback=a,this.out=o,this.nonseriesOut=l,this.ctx=new C(this.add_sym(e,t,i,s,c,h)),this.init()}function M(e){this.symbols=[],this.barsets=[],this.subscription=[],this.host=e,this.isRecalculated=!1,this.isStarted=!1,this.start()}function L(e){this.runner=new M(e)}function A(e,t){this.info=e,this.bars=t||[],this.isBarClosed=!0,this.firstLoadedTimeMs=0!==this.bars.length?this.bars[0].time:1/0,this._emptyBarCount=0,this._lastBarIsEmpty=!1}function E(e,t){this.period=e,this.generateEmptyBars=!!t}function k(){}return S.max_series_default_size=10001,S.n=function(e){return e.symbol.index+1},S.nz=function(e,t){return t=t||0,isFinite(e)?e:t},S.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},S.isZero=function(e){return Math.abs(e)<=1e-10},S.toBool=function(e){return isFinite(e)&&!S.isZero(e)},S.eq=function(e,t){return S.isZero(e-t)},S.neq=function(e,t){return!S.eq(e,t)},S.ge=function(e,t){return S.isZero(e-t)||e>t},S.gt=function(e,t){return!S.isZero(e-t)&&e>t},S.lt=function(e,t){return!S.isZero(e-t)&&e(i||1e-10)},S.less=function(e,t,i){return t-e>(i||1e-10)},S.compare=function(e,t,i){return S.equal(e,t,i)?0:S.greater(e,t,i)?1:-1},S.max=Math.max,S.min=Math.min,S.pow=Math.pow,S.abs=Math.abs,S.log=Math.log,S.log10=function(e){return Math.log(e)/Math.LN10},S.sqrt=Math.sqrt,S.sign=function(e){return isNaN(e)?NaN:S.isZero(e)?0:e>0?1:-1 -},S.exp=Math.exp,S.sin=Math.sin,S.cos=Math.cos,S.tan=Math.tan,S.asin=Math.asin,S.acos=Math.acos,S.atan=Math.atan,S.floor=Math.floor,S.ceil=Math.ceil,S.round=Math.round,S.avg=function(e,t,i,s,r,n){if(2===arguments.length)return(e+t)/2;for(var o=0,a=0;a=0;--n){var o=t[n];if(!(o>=i.startOfBar(0))){i.moveTo(o);var a=t[n+1];s.push(a)}}s.reverse()}return s},S.iff=function(e,t,i){return S.not(e)?i:t},S.rising=function(e,t){for(var i=1;ie.get(0))return 0;return 1},S.falling=function(e,t){for(var i=1;i=0;r--){s+=(t-r)*e.get(r)}return 2*s/(t*(t+1))},S.vwma=function(e,t,i){var s=i.new_var(S.volume(i)),r=i.new_var(e.get(0)*S.volume(i));return S.sma(r,t,i)/S.sma(s,t,i)},S.swma=function(e,t){return(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6},S.supertrend=function(e,t,i){var s=m.Std.atr(t,i),r=i.new_var(s).get(1),n=m.Std.hl2(i),o=n+s*e,a=n-s*e,l=m.Std.close(i),c=i.new_var(l).get(1),h=i.new_var(),d=m.Std.nz(h.get(1)),u=i.new_var(),p=m.Std.nz(u.get(1));a=S.gt(a,d)||S.lt(c,d)?a:d,h.set(a),o=S.lt(o,p)||S.gt(c,p)?o:p,u.set(o);var _=m.Std.na(),g=i.new_var(),f=g.get(1),v=-1===(_=m.Std.na(r)?1:f===p?l>o?-1:1:l2&&(T=Math.min(T,y))):(T=Math.max(T,b),S.n(s)>2&&(T=Math.max(T,w))),p.set(T),T},S.alma=function(e,t,i,s){for(var r=Math.floor(i*(t-1)),n=t/s*(t/s),o=[],a=0,l=0;lthis._currentValue.get():ithis._areaRight},b.prototype.update=function(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){for(var e=!0,t=0;tthis._deviation&&this.addPivot(e,t,i);else(i===b.HIGH?t>s:t0&&i.set(e),i},C.prototype.new_unlimited_var=function(e){var t=this.vars;t.length<=this.vars_index&&t.push(new T(this.symbol));var i=t[this.vars_index++];return arguments.length>0&&i.set(e),i},C.prototype.new_ctx=function(){return this.ctx.length<=this.ctx_index&&this.ctx.push(new C(this.symbol)),this.ctx[this.ctx_index++]},C.prototype.prepare=function(e){this.ctx_index=0,this.vars_index=0;for(var t=0;te&&(e=i)}return e},C.prototype.stop=function(){this.symbol=null,this.vars=null},C.prototype.setMinimumAdditionalDepth=function(e){this.minimumAdditionalDepth=e},P.prototype.valueOf=function(){return this.get(0)},P.prototype.get=function(e){return isNaN(e)&&(e=0),e=e||0,this.hist?e>=this.hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=S.max(this.mindepth,e),NaN)},P.prototype._get=function(e){var t=this.hist_pos-e;return t<0&&(t+=this.hist.length),this.hist[t]},P.prototype.set=function(e){this.hist&&(this.hist[this.hist_pos]=e,this.modified=!0)},P.prototype.prepare=function(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this.hist||this.add_hist()):this.set(this.original),this.modified=!1)},P.prototype.add_hist=function(){if(!this.hist){var e=S.na(this.mindepth)?S.max_series_default_size:S.max(this.mindepth+1,1);e=Math.round(e);for(var t=new Array(e),i=0;ie.id===u.Regular),i=e.subsessions.find(e=>e.id===u.PreMarket),s=e.subsessions.find(e=>e.id===u.PostMarket);void 0!==t&&(this.regularSubsession=new _(e.timezone,t.session,e.session_holidays,t["session-correction"])),void 0!==i&&(this.preMarketSubsession=new _(e.timezone,i.session,e.session_holidays,i["session-correction"])),void 0!==s&&(this.postMarketSubsession=new _(e.timezone,s.session,e.session_holidays,s["session-correction"]))}},x.prototype.isdwm=function(){return""!==this.resolution&&"S"!==this.resolution&&"T"!==this.resolution},x.prototype.enable_dwm_aligning=function(e,t){ -this.dwm_aligner=f.newBarBuilder(this.period,e,t)},x.prototype.bartime=function(){var e=this.time;if(!this.isdwm()||isNaN(e))return e;var t=g.utc_to_cal(this.timezone,e);return this.session.spec.correctTradingDay(t),g.cal_to_utc(this.timezone,t)},x.prototype.lastbar=function(e){if(!isNaN(e.time)){var t=e.time;this.dwm_aligner&&(this.dwm_aligner.moveTo(t),t=this.dwm_aligner.startOfBar(0));var i=this.time!==t;i&&this.index>=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=e.volume,this.updatetime=e.updatetime,this.isNewBar=i,this.isBarClosed=e.isBarClosed,this.isLastBar=e.isLastBar,this.isNewBar&&(this.index++,this.isFirstBar=0===this.index),this.script.calc(this)}},I.prototype.calc=function(e){var t=this.ctx,i=this.body;t.prepare(e);var s=i.main(t,this.inputCallback,e);if(s&&"composite"===s.type)for(let e=0;e1&&o.enable_dwm_aligning(this.symbols[0].session,o.session),o},I.prototype.maxAdditionalDepth=function(){return this.symbols[0].isAdditionalDepthAllowed?this.ctx.maxAdditionalDepth():0},I.prototype.stop=function(){this.symbols=null,this.ctx.stop(),this.ctx=null},I.prototype.get_sym=function(e){return this.symbols[e]},M.prototype.add_sym=function(e,t,i,s,r,n,o){var a=new x(e,t,i,s,r,n);return this.symbols.push(a),a},M.prototype.get_sym=function(e){return this.symbols[e]},M.prototype.out=function(e,t){if(this.nonseriesUpdate){var i=Object.assign({},this.nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)},M.prototype.start=function(){this.isStarted=!0;var e=this.host;this._script=new I(e.tickerid,e.period,e.currencyCode,e.unitId,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo,e.subsessionId);var t=this,i=[],s=this.symbols,r=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+t._script.maxAdditionalDepth()}),n=s[0];function o(t,s,r){i.push(M.feed.subscribe(t.tickerid,t.currencyCode,t.unitId,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,s,e.forceAlignBars,t.subsessionId))}function h(i,s){"series"===(s.nonseries?"nonseries":"series")?t.update(i,s):s.lastBar?(t.nonseriesUpdate=s,s.lastBar.isLastBar=!0,t.symbols[0].lastbar(s.lastBar),t.nonseriesUpdate=null):e.nonseriesOut(p,s)}function d(){return r}o(n,d,(function(e){!e.nonseries&&Number.isFinite(e.firstLoadedTimeMs)&&function(e){ -function i(i,s){var r=c(i,s)(e),n=l(i,s);return null!==n&&(r=n.timeToExchangeTradingDay(r)),{to:r,countBack:t._script.maxAdditionalDepth()}}for(var r=1;r=0;i--)for(var s=e[i],r=this.barsets[i],n=r.count(),o=0;o{"use strict";const s=i(45112).getHexColorByName;var r=i(216);i(27595);var n=i(99294).pivotPointsStandardStudyItem,o=i(62839).volumeProfileVisibleRangeStudyItem,a=i(5748).volumeProfileFixedRangeVbPStudyItem,l=i(5748).volumeProfileFixedRangeBSStudyItem,c=i(65754).spreadStudyItem,h=i(82366).ratioStudyItem,d=i(13463).regressionTrendStudyItem;const u=s("color-ripe-red-400"),p=s("color-minty-green-400");JSServer.studyLibrary=JSServer.studyLibrary.concat([{name:"Compare",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{compare:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#9C27B0"}},inputs:{source:"close",symbol:""}},plots:[{id:"compare",type:"line"}],styles:{compare:{title:"Plot",histogramBase:0}},description:"Compare",shortDescription:"Compare",is_price_study:!0,inputs:[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol",name:"Symbol",type:"symbol",isHidden:!0}],id:"Compare@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(1),r.Std.period(this._context))},this.main=function(e,t){this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),n=r.Std[t(0)](this._context),o=this._context.new_unlimited_var(n);return this._context.select_sym(0),[o.adopt(s,i,0)]}}},{name:"Overlay",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{},inputs:{symbol:""}},plots:[{id:"open",type:"line"},{id:"high",type:"line"},{id:"low",type:"line"},{id:"close",type:"line"}],styles:{open:{title:"Open"},high:{title:"High"},low:{title:"Low"},close:{title:"Close"}},description:"Overlay",shortDescription:"Overlay",is_price_study:!1,inputs:[{id:"symbol",name:"symbol",defval:"",type:"symbol",isHidden:!0}], -id:"Overlay@tv-basicstudies-1",format:{type:"price",precision:4}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(0),r.Std.period(this._context))},this.main=function(e,t){this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),n=this._context.new_unlimited_var(r.Std.open(this._context)),o=this._context.new_unlimited_var(r.Std.high(this._context)),a=this._context.new_unlimited_var(r.Std.low(this._context)),l=this._context.new_unlimited_var(r.Std.close(this._context));return this._context.select_sym(0),[n.adopt(s,i,1),o.adopt(s,i,1),a.adopt(s,i,1),l.adopt(s,i,1)]}}},{name:"Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{vol:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:50,visible:!0,color:"#000080"},vol_ma:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"}},palettes:{volumePalette:{colors:{0:{color:u,width:1,style:0},1:{color:p,width:1,style:0}}}},inputs:{showMA:!1,length:20,col_prev_close:!1,symbol:"",smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"vol",type:"line"},{id:"volumePalette",palette:"volumePalette",target:"vol",type:"colorer"},{id:"vol_ma",type:"line"},{id:"smoothedMA",type:"line"}],styles:{vol:{title:"Volume",histogramBase:0},vol_ma:{title:"Volume MA",histogramBase:0},smoothedMA:{title:"Smoothed MA",histogramBase:0}},description:"Volume",shortDescription:"Volume",is_price_study:!1,palettes:{volumePalette:{colors:{0:{name:"Falling"},1:{name:"Growing"}}}},inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"showMA",name:"show MA",defval:!1,type:"bool",isHidden:!0},{id:"length",name:"MA Length",defval:20,type:"integer",min:1,max:2e3},{defval:!1,id:"col_prev_close",name:"Color based on previous close",type:"bool"},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4}],id:"Volume@tv-basicstudies-1",format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,""!==t(0)&&this._context.new_sym(t(0),r.Std.period(this._context))},this.f_0=function(e,t){return r.Std.gt(e,t)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.volume(this._context),s=r.Std.open(this._context),n=r.Std.close(this._context),o=this._context.new_var(this._context.symbol.time),a=this._input(4),l=this._input(5);if(this._context.setMinimumAdditionalDepth(this._input(2)+l),""!==this._input(0)){this._context.select_sym(1);var c=this._context.new_var(this._context.symbol.time),h=this._context.new_var(r.Std.volume(this._context)),d=this._context.new_var(r.Std.open(this._context)),u=this._context.new_var(r.Std.close(this._context));i=h.adopt(c,o,1), -s=d.adopt(c,o,1),n=u.adopt(c,o,1),this._context.select_sym(0)}var p,_,m=this._context.new_var(i),g=r.Std.sma(m,this._input(2),this._context),f=this._context.new_var(g),v=this._context.new_var(n);return p=v.get(1)&&this._input(3)?this.f_0(v.get(1),n):this.f_0(s,n),"EMA"===a?_=r.Std.ema(f,l,this._context):"WMA"===a?_=r.Std.wma(f,l,this._context):"SMA"===a&&(_=r.Std.sma(f,l,this._context)),[i,p,g,_]}}},{name:"ZigZag",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",target:"plot_0",type:"dataoffset"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Zig Zag",shortDescription:"ZigZag",is_price_study:!0,classId:"ScriptWithDataOffset",inputs:[{id:"in_0",name:"deviation",defval:5,type:"float",min:.001,max:100},{id:"in_1",name:"depth",defval:10,type:"integer",min:2,max:1e3}],id:"ZigZag@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=i/100,o=Math.ceil(s/2);return[r.Std.zigzag(n,o,this._context),r.Std.zigzagbars(n,o,this._context)]}}},{name:"Sessions",metainfo:{_metainfoVersion:52,defaults:{graphics:{vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}},backgrounds:{preMarket:{color:"#FF9800",transparency:92,visible:!0},postMarket:{color:"#2196F3",transparency:92,visible:!0}}},linkedToSeries:!0},description:"Sessions",graphics:{vertlines:{sessBreaks:{name:"Session Break",halign:"left"}},backgrounds:{preMarket:{name:"Pre market"},postMarket:{name:"Post market"}}},id:"Sessions@tv-basicstudies-1",inputs:[],is_hidden_study:!0,is_price_study:!0,name:"Sessions@tv-basicstudies",palettes:{},plots:[],shortDescription:"Sessions",format:{type:"inherit"}},constructor:function(){function e(e,t){return{id:e,index:e,extendBottom:!0,extendTop:!0}}function t(e){return{id:e.start,start:e.start,stop:e.stop}}this.init=function(){this._times=[]},this._getVerticalLineData=function(t){return r.Std.selectSessionBreaks(t,this._times).map(e)},this._getPreAndPostMarketBackgroundsData=function(e){const i=r.Std.selectPreAndPostMarketTimes(e,this._times);return{preMarket:i.preMarket.map(t),postMarket:i.postMarket.map(t)}},this.main=function(e,t){if(r.Std.isdwm(e))return null;var i=r.Std.time(e);if(isNaN(i))return null;var s=this._times.length;if(0!==s&&this._times[s-1]===i||this._times.push(i),!e.symbol.isLastBar||!e.symbol.isNewBar)return null;var n=this._getVerticalLineData(e),o=this._getPreAndPostMarketBackgroundsData(e);return 0===n.length&&0===o.preMarket.length&&0===o.postMarket?null:{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{vertlines:[{styleId:"sessBreaks",data:n}],backgrounds:[{styleId:"preMarket",data:o.preMarket},{styleId:"postMarket",data:o.postMarket}]},erase:[{action:"all"}]}}}}}},{name:"SuperTrend",metainfo:{_metainfoVersion:52,isTVScript:!1, -isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:3,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"},plot_2:{linestyle:0,linewidth:3,plottype:"shape_arrow_up",trackPrice:!1,location:"BelowBar",transparency:35,visible:!0,color:"#00FF00"},plot_3:{linestyle:0,linewidth:3,plottype:"shape_arrow_down",trackPrice:!1,location:"AboveBar",transparency:35,visible:!0,color:"#FF0000"}},palettes:{palette_0:{colors:{0:{color:"#008000",width:3,style:0},1:{color:"#800000",width:3,style:0}}}},inputs:{in_0:10,in_1:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"},{id:"plot_2",type:"shapes"},{id:"plot_3",type:"shapes"}],styles:{plot_0:{title:"SuperTrend",histogramBase:0,joinPoints:!1,isHidden:!1},plot_2:{title:"Up Arrow",histogramBase:0,joinPoints:!1,isHidden:!1},plot_3:{title:"Down Arrow",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"SuperTrend",shortDescription:"SuperTrend",is_price_study:!0,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}},valToIndex:{0:0,1:1}}},inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:100},{id:"in_1",name:"Factor",defval:3,type:"float",min:1,max:100}],id:"SuperTrend@tv-basicstudies-1",scriptIdPart:"",name:"SuperTrend",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0),s=t(1),[n,o]=r.Std.supertrend(s,i,e),a=e.new_var(o).get(1);return[n,-1===o?0:1,-1===o&&a!==o?1:NaN,1===o&&a!==o?1:NaN]}}},n,o,a,l,c,h,d])},99294:(e,t,i)=>{"use strict";i.d(t,{pivotPointsStandardStudyItem:()=>d});var s=i(216),r=i(29823),n=i(983);class o{constructor(){this.p=NaN,this.r1=NaN,this.s1=NaN,this.r2=NaN,this.s2=NaN,this.r3=NaN,this.s3=NaN,this.r4=NaN,this.s4=NaN,this.r5=NaN,this.s5=NaN,this.startIndex__t=NaN,this.endIndex__t=NaN}}class a{constructor(){this.pivots=[]}}function l(e,t){e.setUTCMonth(e.getUTCMonth()+t)}function c(e,t){if(s.Std.ismonthly(e)){let i=new Date(t);return i.getUTCDay()=1&&t.multiplier()<=15?"1D":"1W";case r.ResolutionKind.Seconds:case r.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}const d={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15, -pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe",options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:1,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots",format:{type:"price",precision:4}},constructor:class{constructor(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN}init(e,t){const i=t(0),r=t(1),o=t(2),l=t(3);this._data=new a,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=r,this._historicalPivotsToKeep=l,this._pivTimeFrame=o,this._isValidResolution=function(e,t){return(!s.Std.isdaily(e)||"Daily"!==t)&&((!s.Std.isweekly(e)||"Daily"!==t&&"Weekly"!==t)&&(!s.Std.ismonthly(e)||"Daily"!==t&&"Weekly"!==t&&"Monthly"!==t))}(e,this._pivTimeFrame),this._isValidResolution||s.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=h(e,this._pivTimeFrame),void 0!==e.symbol.info&&(0,n.findSuitableResolutionToBuildFrom)(this._secondaryRes,e.symbol.info).error&&(this._isValidResolution=!1,s.Std.error(`Resolution ${this._secondaryRes} is not supported for this symbol`))),e.new_sym(e.symbol.tickerid,this._secondaryRes)}main(e,t,i){if(!this._isValidResolution)return null;if(e.is_main_symbol(i))return isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);const r=e.new_var(s.Std.open(e)),n=e.new_var(s.Std.high(e)),a=e.new_var(s.Std.low(e)),l=e.new_var(s.Std.close(e)),h=e.new_var(s.Std.time(e)),d=this._data,u=r.get(0),p=h.get(0),_=r.get(1),m=n.get(1),g=a.get(1),f=l.get(1),v=e.symbol.isLastBar;if(0!==d.pivots.length&&e.symbol.isNewBar){const e=d.pivots[d.pivots.length-1];e.endIndex__t!==p&&(e.endIndex__t=p)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;const S=function(e,t,i,r,n,a,l,c){const h=new o;let d=NaN;const u=i-r;switch(c){case 0:d=(i+r+n)/3,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+(i-r),h.s2=d-(i-r),h.r3=2*d+(i-2*r),h.s3=2*d-(2*i-r),h.r4=3*d+(i-3*r),h.s4=3*d-(3*i-r),h.r5=4*d+(i-4*r),h.s5=4*d-(4*i-r);break;case 1:d=(i+r+n)/3,h.p=d,h.r1=d+.382*u,h.s1=d-.382*u,h.r2=d+.618*u,h.s2=d-.618*u,h.r3=d+u,h.s3=d-u;break;case 2:d=(i+r+2*e)/4,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=i+2*(d-r),h.s3=r-2*(i-d),h.r4=h.r3+u,h.s4=h.s3-u;break;case 3:d=(i+r+n)/3,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=d+2*u, -h.s3=d-2*u,h.r4=d+3*u,h.s4=d-3*u;break;case 4:let o=NaN;o=s.Std.equal(t,n)?i+r+2*n:s.Std.greater(n,t)?2*i+r+n:2*r+i+n,d=o/4,h.p=d,h.r1=o/2-r,h.s1=o/2-i;break;case 5:d=(i+r+n)/3,h.p=d,h.r1=n+1.1*u/12,h.s1=n-1.1*u/12,h.r2=n+1.1*u/6,h.s2=n-1.1*u/6,h.r3=n+1.1*u/4,h.s3=n-1.1*u/4,h.r4=n+1.1*u/2,h.s4=n-1.1*u/2;break;default:throw new Error("Unknown kind")}return h.startIndex__t=a,h.endIndex__t=l,h}(u,_,m,g,f,p,c(e,p),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(d.pivots=[]),d.pivots.push(S),d.pivots.length>this._historicalPivotsToKeep&&d.pivots.shift(),v?this._createResponse():null}_createResponse(){return 0===this._data.pivots.length?null:{nonseries:!0,type:"non_series_data",data:{data:this._data}}}_removeUnusedPivots(){const e=Math.max(this._data.pivots.findIndex(e=>e.startIndex__t>this._firstMainSeriesBarTime)-1,0);e>0&&this._data.pivots.splice(0,e)}}}},82366:(e,t,i)=>{"use strict";i.d(t,{ratioStudyItem:()=>n});var s=i(84707);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t/(i*s)}}const n={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Ratio@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},13463:(e,t,i)=>{"use strict";i.d(t,{regressionTrendStudyItem:()=>n});var s=i(216);function r(e,t,i){const r={slope:NaN,average:NaN,intercept:NaN,stdDev:NaN,upDev:NaN,downDev:NaN,pearsons:NaN};return 0===e.length||(function(e,t){let i=0,s=0,r=0,n=0;for(let t=0;tn&&(n=u),u=d-i[s],u>o&&(o=u),u=e[s];const _=u-r.average,m=d-p;u-=d,a+=u*u,l+=_*_,c+=m*m,h+=_*m,d+=r.slope}r.stdDev=Math.sqrt(a/(0===u?1:u)),r.pearsons=s.Std.isZero(l)||s.Std.isZero(c)?0:h/Math.sqrt(l*c),r.upDev=n,r.downDev=o}(e,t,i,r)),r}const n={name:"Regression Trend",metainfo:{_metainfoVersion:51,description:"Regression Trend",format:{type:"inherit"},id:"RegressionTrend@tv-basicstudies-144",is_hidden_study:!0,is_price_study:!0,shortDescription:"Reg Trend",defaults:{inputs:{"first bar time":0,"last bar time":0,"lower diviation":-2,source:"close","upper diviation":2,"use lower diviation":!0,"use upper diviation":!0}},inputs:[{defval:2,id:"upper diviation",max:500,min:-500,name:"Upper Deviation",type:"float"},{defval:-2,id:"lower diviation",max:500,min:-500,name:"Lower Deviation",type:"float"},{defval:!0,id:"use upper diviation",name:"Use Upper Deviation",type:"bool"},{defval:!0,id:"use lower diviation",name:"Use Lower Deviation",type:"bool"},{defval:0,id:"first bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"First bar time",type:"time"},{defval:0,id:"last bar time",isHidden:!0,max:253370764800,min:-253370764800, -name:"Last bar time",type:"time"},{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[]},constructor:class{constructor(){this._resultSent=!1}init(e,t){this._resultSent=!1,this._data={baseLine:{startPrice:NaN,endPrice:NaN},upLine:{startPrice:NaN,endPrice:NaN},downLine:{startPrice:NaN,endPrice:NaN},pearsons:NaN,startIndex__t:NaN,endIndex__t:NaN}}main(e,t){const i=t(6),n=e.new_unlimited_var(s.Std.time(e)),o=e.new_unlimited_var(s.Std.high(e)),a=e.new_unlimited_var(s.Std.low(e)),l=e.new_unlimited_var(s.Std[i](e));if(!e.symbol.isLastBar)return null;if(this._resultSent)return null;const c=t(0),h=t(1),d=t(2),u=t(3),p=t(4),_=t(5),m=n.indexOf(p),g=n.indexOf(_),f=[],v=[],S=[],y=[];for(let e=m;e>=g;--e)f.push(n.get(e)),v.push(o.get(e)),S.push(a.get(e)),y.push(l.get(e));return this._updateData(f,d,c,u,h,p,_,r(y,v,S)),this._resultSent=!0,{type:"non_series_data",nonseries:!0,data:{data:this._data}}}_updateData(e,t,i,s,r,n,o,a){const l=e.length-1;this._data.baseLine.startPrice=a.intercept,this._data.baseLine.endPrice=a.intercept+a.slope*l;const c=a.intercept+(t?a.stdDev*i:a.upDev);this._data.upLine.startPrice=c,this._data.upLine.endPrice=c+a.slope*l;const h=a.intercept+(s?a.stdDev*r:-a.downDev);this._data.downLine.startPrice=h,this._data.downLine.endPrice=h+a.slope*l,this._data.pearsons=a.pearsons,this._data.startIndex__t=n,this._data.endIndex__t=o}}}},84707:(e,t,i)=>{"use strict";i.d(t,{SpreadRatioBase:()=>r,spreadRatioDefaults:()=>n,spreadRatioInputs:()=>o,spreadRatioPlots:()=>a,spreadRatioStyles:()=>l});var s=i(216);class r{init(e,t){e.new_sym(t(1),s.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1}main(e,t){const i=e.symbol.time,r=s.Std[this._source](e);e.select_sym(1);const n=s.Std[this._source](e),o=e.new_unlimited_var(n),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;let l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);const c=l<0?NaN:o.get(l);return[this._doCalculation(this._scaleFactor1,r,this._scaleFactor2,c)]}}const n={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},o=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],a=[{id:"plot1",type:"line"}],l={plot1:{title:"Plot",histogramBase:0}}},65754:(e,t,i)=>{"use strict";i.d(t,{spreadStudyItem:()=>n});var s=i(84707);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t-i*s}}const n={name:"Spread",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Spread",shortDescription:"Spread",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Spread@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},9345:(e,t,i)=>{"use strict";i.d(t,{VbPCheckHaveVolumeExpr:()=>r});var s=i(216);class r{constructor(e){this._haveAnyVolume=!1, -this._isDisabled=!1,this._seriesGetter=e}update(e,t){if(this._haveAnyVolume||this._isDisabled)return;const i=this._seriesGetter.volume().get(e);0!==i&&Number.isFinite(i)&&(this._haveAnyVolume=!0),t&&(this._haveAnyVolume||s.Std.error("The data vendor doesn't provide volume data for this symbol."),this._isDisabled=!0)}}},62876:(e,t,i)=>{"use strict";i.d(t,{VolumeByPriceExpr:()=>_});var s=i(88537),r=i(64514),n=i(29823),o=i(216),a=i(31738);class l extends a.GraphicsObj{constructor(e,t,i,r,n,o){super(e),(0,s.assert)(t({index:e.index,offset:e.offset,level:e.level}))}}}class u extends a.GraphicsObj{constructor(e,t,i,s,r=!1,n=!1){super(e),this._endIndex=this._mixinJSONObject.createTimeField(i,"endIndex"),this._extendLeft=this._mixinJSONObject.createField(r,"extendLeft"),this._extendRight=this._mixinJSONObject.createField(n,"extendRight"),this._level=this._mixinJSONObject.createDoubleField(s,"level"),this._startIndex=this._mixinJSONObject.createTimeField(t,"startIndex")}isNaN(){return super.isNaN()||Number.isNaN(this._level.get())||this._startIndex.get()<0||this._endIndex.get()<0||this._startIndex.get()===this._endIndex.get()&&!this._extendLeft.get()&&!this._extendRight.get()}jsonName(){return"horizlines"}primitiveData(){return{id:this.id(),startIndex:this._startIndex.get(),endIndex:this._endIndex.get(),extendLeft:this._extendLeft.get(),extendRight:this._extendRight.get(),level:this._level.get()}}startIndex(){return this._startIndex.get()}setStartIndex(e){this._startIndex.set(e)&&this._processObjUpdate()}endIndex(){return this._endIndex.get()}setEndIndex(e){this._endIndex.set(e)&&this._processObjUpdate()}level(){return this._level.get()}setLevel(e){this._level.set(e)&&this._processObjUpdate()}isExtendLeft(){return this._extendLeft.get()}setExtendLeft(e){this._extendLeft.set(e)&&this._processObjUpdate()}extendLeft(){return this.isExtendLeft()}isExtendRight(){return this._extendRight.get()}setExtendRight(e){this._extendRight.set(e)&&this._processObjUpdate()}extendRight(){return this.isExtendRight()}}class p{constructor(){this._map=new Map}get(e){const t=this._innerMap(e.start);return t&&t.get(e.end)}set(e,t){this._innerMap(e.start,!0).set(e.end,t)}clear(){this._map.clear()}size(){let e=0;return this._map.forEach(t=>e+=t.size),e}_innerMap(e,t){let i=this._map.get(e);return void 0===i&&t&&(i=new Map,this._map.set(e,i)),i}}class _{constructor(e,t,i,r,n,o,a,l,h,d,u,_,m,g){this._freezedBoxes=new c.GraphicsList,this._freezedHists=new c.GraphicsList,this._freezedPocs=new c.GraphicsList,this._freezedVAHists=new c.GraphicsList,this._currentHistsGr=new c.GraphicsList,this._currentVAHistsGr=new c.GraphicsList,this._currentHists=[],this._currentHistsMap=new p,this._currentBox=null,this._currentPoc=null,this._historyBarSet=[],this._prevRtBar=null,this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._leftBoxTime=null,this._rightBoxTime=null,this._needRecalc=!1,this._largestHistItem=null,this._rowsLayout=null,this._currentVAStart=0,this._currentVAEnd=0,this._previousVAStart=0,this._previousVAEnd=0,this._idsGenerator=null,(0,s.assert)(1===e||2===e),this._numOfSubHists=e,this._outHists=r,this._outBoxLines=n,this._outPocLines=o,this._extendPocLeftRight=a,this._outVAHists=l,this._vaVolumePercent=h,this._rowsLayoutSupplier=d,this._outHists.addStable(this._freezedHists),this._outVAHists.addStable(this._freezedVAHists),this._maxHHistItems=u,this._layoutIsAutoselected=g,this._leftBoxTimeMutable=_,this._rightBoxTimeMutable=m,this._ctx=t,this._seriesGetter=i}update(e){this._supplyRowsLayout(this._ctx), -null===this._currentBox&&this._initCurrentBox(),null===this._currentPoc&&this._initCurrentPoc();const t=this._timeScale().get(e);this._leftBoxTime=this._leftBoxTimeMutable,this._rightBoxTime=this._rightBoxTimeMutable,this._ctx.symbol.isLastBar&&!Number.isNaN(this._rightBoxTime)&&(this._rightBoxTime=Math.min(t+n.Interval.parse(this._ctx.symbol.interval+this._ctx.symbol.resolution).inMilliseconds(t)-1,this._rightBoxTime));const i=o.Std.greaterOrEqual(this._seriesClose().get(e),this._seriesOpen().get(e)),s={high:this._seriesHigh().get(e),low:this._seriesLow().get(e),volume:this._seriesVol().get(e),isUp:i,time:t};this._updateCurrentHistogram(s),this._currentHists.length>0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()}setIdsGeneratorProxy(e){this._idsGenerator=e}nextGraphicsObjId(){return(0,s.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()}pushEraseObjCmd(e,t){(0,s.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)}popEraseCmds(){return(0,s.ensureNotNull)(this._idsGenerator).popEraseCmds()}_timeScale(){return this._seriesGetter.time()}_seriesLow(){return this._seriesGetter.low()}_seriesHigh(){return this._seriesGetter.high()}_seriesVol(){return this._seriesGetter.volume()}_seriesOpen(){return this._seriesGetter.open()}_seriesClose(){return this._seriesGetter.close()}_freezeCurrentHistogramAndCleanup(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox),o.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(),this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null}_supplyRowsLayout(e){null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())}_updateCurrentHistogram(e){if(this._needRecalc=!1,o.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),o.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){const t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===(0,s.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0), -this._ctx.symbol.isBarClosed?((0,s.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e}_getMidLevel(e){return(e.priceHigh()+e.priceLow())/2}_getMidLevelFromList(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])}_getLargestHistItem(){let e=[],t=this._currentHists[0];for(const i of this._currentHists)o.Std.greater(i.ratesSum(),t.ratesSum())?(t=i,e=[t]):o.Std.equal(i.ratesSum(),t.ratesSum())&&e.push(i);if(e.length>1){const i=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(let s=e.length-2;s>=0;s--){const r=e[s];o.Std.lessOrEqual(Math.abs(this._getMidLevel(r)-i),Math.abs(this._getMidLevel(t)-i))&&(t=r)}}return t}_initCurrentPoc(){this._currentPoc=new u(this,0,0,0)}_updateCurrentPoc(){const e=(0,s.ensureNotNull)(this._currentPoc);e.setStartIndex((0,s.ensureNotNull)(this._leftBoxTime)),e.setEndIndex((0,s.ensureNotNull)(this._rightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);const t=this._getMidLevel((0,s.ensureNotNull)(this._largestHistItem));e.setLevel(t)}_getVolume(e){let t=0;for(const i of e)t+=i.ratesSum();return t}_getPocHistItemIndex(){for(let e=0;e=0,"ERROR - PocHistItemIndex == "+e),this._currentVAStart=e-1,this._currentVAEnd=e+1;const t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01;let i=this._currentHists[e].ratesSum(),r=0,n=null;for(;o.Std.lessOrEqual(i+r,t)&&(i+=r,0===n?--this._currentVAStart:1===n&&++this._currentVAEnd,-1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){let t,i;if(this._currentVAStart>-1)if(t=this._currentHists[this._currentVAStart].ratesSum(),this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh());const i=[],r=(0,s.ensureNotNull)(this._leftBoxTime),n=(0,s.ensureNotNull)(this._rightBoxTime);i.push(new h(r,e)),i.push(new h(r,t)),i.push(new h(n,t)),i.push(new h(n,e)),(0,s.ensureNotNull)(this._currentBox).setPoints(i)}_recalculateCurrentResultsOnHistoryBarSet(){for(let e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()}_applyUpdateToCurrentResults(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1),this._updateLastBarTimeInHistogram(this._currentHists)}_addHistoryBarToHistogram(e,t,i,r,n){(0,s.assert)(-1===n||1===n,"Please set sign argument either +1 or -1");const a=e.low,l=e.high,c=isNaN(e.volume)?0:e.volume,h=e.isUp,d=(0,s.ensureNotNull)(this._rowsLayout);d.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,a,l);const u=d.rowWidth();if(!o.Std.greater(u,0))return;d.calculate();const p=d.getIndexLowVbP(),_=d.getIndexHighVbP(),m=d.getStartPrice();if(p===_){const e=p*u+m,t=(p+1)*u+m;this._updateResult({start:e,end:t},n*c,h,i,r)}else{let e=0;for(let t=p;t<=_;t++){const s=t*u+m,o=(t+1)*u+m,d=this._rowCoeff(s,o,a,l),p=d*c;e+=d,this._updateResult({start:s,end:o},n*p,h,i,r)}(0,s.assert)(o.Std.equal(e,1,.05),"totalCoeff not equal 1! totalConf = "+e)}}_updateResult(e,t,i,r,n){const a=this._createRates(i,t);(0,s.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),(0,s.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");const c=(0,s.ensureNotNull)(this._leftBoxTime),h=(0,s.ensureNotNull)(this._rightBoxTime);let d=n.get(e);if(void 0===d)d=new l(this,e.start,e.end,a,c,h),n.set(e,d),this._verifyHistogramSizeIsNotTooLarge(n.size()),this._currentHistsGr.add(d),_._addInOrder(d,r,0,r.length,(e,t)=>{let i=o.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i?i:(i=o.Std.compare(e.priceLow(),t.priceLow()), -0!==i?i:o.Std.compare(e.priceHigh(),t.priceHigh()))});else{const e=[];for(let t=0;td,maxHHistItems:()=>c,numOfSubHists:()=>h});var s=i(216),r=i(29823);class n{constructor(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}init(e,t,i,s,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=s,this._high=r}getStartPrice(){return this._startPrice}setStartPrice(e){this._startPrice=e}getIndexLowVbP(){return this._indexLowVbP}setIndexLowVbP(e){this._indexLowVbP=e}getIndexHighVbP(){return this._indexHighVbP}setIndexHighVbP(e){this._indexHighVbP=e}type(){return this._type}}class o extends n{constructor(e){super(e,0)}calculate(){this.setStartPrice(this._minPrice);const e=this.rowWidth();let t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)}}class a extends n{constructor(e){super(e,1)}calculate(){this.setStartPrice(0);const e=this.rowWidth();let t=Math.floor(this._low/e) -;const i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return this._minTick*this._rowSize}}var l=i(67337);function c(){return 6e3}function h(e){switch(e){case"Delta":case"Up/Down":return 2;case"Total":return 1;default:s.Std.error("Invalid study argument value: "+e)}}class d{findBasicResolutionForFromTo(e,t,i,n){const o=(0,s.getVolumeProfileResolutionForPeriod)(e.value(),t,i,n),a=r.Interval.parse(o);return l.enabled("charting_library_debug_mode")&&console.log(`Selected resolution ${a.value()} for (${e.value()}, ${t}, ${i})`),a}verifyRowSizeInput(e,t){"Number Of Rows"===t&&e>6e3&&s.Std.error('Histogram is too large, please reduce "Row Size" input.')}_getRowsLayout(e,t){return"Number Of Rows"===e?new o(t):new a(t)}}},5748:(e,t,i)=>{"use strict";i.d(t,{volumeProfileFixedRangeBSStudyItem:()=>w,volumeProfileFixedRangeVbPStudyItem:()=>b});var s=i(88537),r=i(96761),n=i(216),o=i(50993),a=i(95018),l=i(29823),c=i(78002),h=i(34574),d=i(18317),u=i(79113),p=i(45548),_=i(9345),m=i(95936),g=i(62876);class f extends g.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,h,d){super(e,t,i,n,o,a,!1,l,c,()=>h,d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}function y(e){return{constructor:S,name:e.description,metainfo:{_metainfoVersion:51,shortDescription:"VPFR",format:{type:"volume"},is_price_study:!0,defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:a.HHistDirection.LeftToRight,percentWidth:30, -showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:a.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:m.LineStyle.Solid,visible:!0,width:2}},polygons:{histBoxBg:{color:"#37a6ef",transparency:94}}},inputs:{first_bar_time:0,last_bar_time:0,rows:24,rowsLayout:"Number Of Rows",subscribeRealtime:!0,vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1}}},graphics:{hhists:{histBars2:{location:a.HHistLocation.Absolute,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:a.HHistLocation.Absolute,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}},polygons:{histBoxBg:{mouseTouchable:!1,name:"Histogram Box",showBorder:!1}}},inputs:[{defval:"Number Of Rows",id:"rowsLayout",name:"Rows Layout",options:["Number Of Rows","Ticks Per Row"],type:"text"},{defval:24,id:"rows",max:1e6,min:1,name:"Row Size",type:"integer"},{defval:"Up/Down",id:"volume",name:"Volume",options:["Up/Down","Total","Delta"],type:"text"},{defval:0,id:"first_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"First Bar Time",type:"time"},{defval:0,id:"last_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last Bar Time",type:"time"},{defval:70,id:"vaVolume",max:100,min:0,name:"Value Area Volume",type:"integer"},{defval:!0,id:"subscribeRealtime",isHidden:!0,name:"SubscribeRealtime",type:"bool"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}},...e}}}const b=y({id:"VbPFixed@tv-volumebyprice-57",description:"Volume Profile Fixed Range"}),w=y({id:"VbPFixed@tv-basicstudies-152",description:"Fixed Range",is_hidden_study:!0})},79258:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileOutputSeries:()=>n});var s=i(88537),r=i(55257);class n{constructor(){this._histPos=-1,this._hist=new Float64Array(2e3),this._times=new Float64Array(2e3)}addHist(e){if(this._histPos>=0){const t=this._times[this._histPos];(0,s.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){const e=new Float64Array(2*this._hist.length);e.set(this._hist),this._hist=e;const t=new Float64Array(this._hist.length);t.set(this._times),this._times=t}this._hist[this._histPos]=NaN, -this._times[this._histPos]=e}removeLastIfNaN(){Number.isNaN(this.get(0))&&(this._histPos-=1)}get(e){(0,s.assert)(0===e);const t=this._histPos-e;return this._hist[t]}getLeftOrEqual(e){const t=(0,r.upperbound)(this._times,e,(e,t)=>e{"use strict";i.d(t,{volumeProfileVisibleRangeStudyItem:()=>v});var s=i(88537),r=i(96761),n=i(216),o=i(95018),a=i(29823),l=i(78002),c=i(62876),h=i(79113);class d extends c.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,d){super(e,t,i,n,new h.GraphicsList,o,!0,a,l,()=>c,d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}const v={constructor:f,name:"Volume Profile Visible Range",metainfo:{_metainfoVersion:51,id:"VbPVisible@tv-basicstudies-49",description:"Volume Profile Visible Range",shortDescription:"VPVR",format:{type:"volume"},is_price_study:!0,linkedToSeries:!0,palettes:{},inputs:[{id:"rowsLayout",name:"Rows Layout",defval:"Number Of Rows",options:["Number Of Rows","Ticks Per Row"],type:"text"},{id:"rows",name:"Row Size",defval:24,max:1e6,min:1,type:"integer"},{id:"volume",name:"Volume",defval:"Up/Down",options:["Up/Down","Total","Delta"],type:"text"},{id:"first_visible_bar_time",name:"First Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"last_visible_bar_time",name:"Last Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"vaVolume",name:"Value Area Volume",defval:70,max:100,min:0,type:"integer"}],plots:[{ -id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],graphics:{hhists:{histBars2:{location:o.HHistLocation.Relative,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:o.HHistLocation.Relative,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}}},defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:0,visible:!0,width:2}}},inputs:{first_visible_bar_time:0,last_visible_bar_time:0,rows:24,rowsLayout:"Number Of Rows",vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1}}},styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}}}}},54631:(e,t,i)=>{"use strict";i.d(t,{StudyError:()=>s});class s extends Error{constructor(e){super(e),this.studyError=!0}}},18317:(e,t,i)=>{"use strict";i.d(t,{EraseObj:()=>s,EraseAll:()=>r,GraphicsCmds:()=>n});class s{constructor(e,t){this.id=e,this.type=t}primitiveData(){return{action:"one",id:this.id,type:this.type}}}class r{primitiveData(){return{action:"all"}}}class n{constructor(){this.erase=[],this.create=null,this._modified=!1}primitiveData(e){if(this.isNaN())return null;const t={},i=this.create&&this.create.primitiveData(e);return null!==i&&(t.create=i),null!==this.erase&&this.erase.length>0&&(t.erase=this.erase.map(e=>e.primitiveData())),void 0===t.create&&void 0===t.erase?null:t}setCreate(e){this.create=e,this.create.forEachList(e=>e.setOwner(this))}isNaN(){return(null===this.erase||0===this.erase.length)&&null===this.create}isModified(){return this._modified}setModified(e){this._modified=e}dirty(){this._modified=!0}setOwner(e){throw new Error("Unsupported")}}},78002:(e,t,i)=>{"use strict";i.d(t,{GraphicsListColl:()=>s});class s{constructor(){this._stable=[],this._variable=null,this._owner=null}addStable(e){e.setOwner(this),this._stable.push(e)}setVariable(e){this._variable=e,null!==this._variable&&this._variable.setOwner(this)}primitivesData(e){const t=[];return this._forEach(i=>t.push(...i.primitivesData(e))),t}deleteErasedItems(){this._forEach(e=>e.deleteErasedItems())}markPostedItems(){this._forEach(e=>e.markPostedItems())}isNaN(){return this._all(e=>e.isNaN())}dirty(){null!==this._owner&&this._owner.dirty()}setOwner(e){this._owner=e}_forEach(e){ -for(const t of this._stable)e(t);null!==this._variable&&e(this._variable)}_all(e){for(const t of this._stable)if(!e(t))return!1;return null===this._variable||e(this._variable)}}},79113:(e,t,i)=>{"use strict";i.d(t,{GraphicsList:()=>n});var s=i(31738),r=i(28329);class n{constructor(){this._items=[],this._owner=null}primitivesData(e){const t=[];for(const i of this._items)e.isIgnoredObj(i)||t.push(i.primitiveData());return t}get(e){return this._items[e]}set(e,t){return this.dirty(),t.setOwner(this),this._items[e]=t,t}addAtIndex(e,t){this.dirty(),t.setOwner(this),this._items[e]=t}clear(){this._unsetOwner(this._items),this._items=[],this.dirty()}addAllFromNumber(e,t){this.setOwner(t),this._items.splice(e,0,...t._items);return this._setCachedDataValid(!1),!0}addAll(e){this.setOwner(e),this._items.push(...e._items);return this._setCachedDataValid(!1),!0}remove(e){const t=this._items[e];return this._items.splice(e,1),t.unsetOwner(this),this.dirty(),t}getItems(){return this._items}size(){return this._items.length}add(e){e.setOwner(this),this._items.push(e);return this._setCachedDataValid(!1),!0}deleteErasedItems(){this._items=this._items.filter(e=>!e.isErased())}markPostedItems(){for(const e of this._items)e.markAsPosted()}isNaN(){if(0===this._items.length)return!0;for(const e of this._items){if(!(0,r.isNaNable)(e))return!1;if(!e.isNaN())return!1}return!0}setOwner(e){this._owner=e}dirty(){null!==this._owner&&this._owner.dirty()}_unsetOwner(e){for(const t of e)t instanceof s.GraphicsObj&&t.unsetOwner(this)}_setCachedDataValid(e){e||this.dirty()}}},31738:(e,t,i)=>{"use strict";i.d(t,{GraphicsObj:()=>l});var s=i(216);class r{constructor(e,t,i,s){this._value=e,this._name=t,this._owner=i,this._comparer=void 0!==s?s:(e,t)=>null==e?null!=t:e===t}getName(){return this._name}set(e){const t=this._comparer(this._value,e);return t&&this._owner.dirty(),this._value=e,t}get(){return this._value}}class n{constructor(e,t,i){this._owner=null,this._value=e,this._name=t,this._owner=i}getName(){return this._name}set(e){return this._value!==e&&(this._value=e,null!==this._owner&&this._owner.dirty(),!0)}get(){return this._value}}class o extends r{constructor(e,t,i,s){super(e,t,i,s)}}class a{constructor(e){this._owner=e}createField(e,t){return new r(e,t,this)}createDoubleField(e,t){return new r(e,t,this,(e,t)=>!s.Std.equal(e,t))}createDoubleArrayField(e,t){return new o(e,t,this,(e,t)=>{if(e===t)return!1;const i=e.length;if(t.length!==i)return!0;for(let r=0;r{"use strict";function s(e){return Boolean(e.isNaN)}i.d(t,{isNaNable:()=>s})},45548:(e,t,i)=>{"use strict";i.d(t,{JStudyDataUpdate:()=>d});var s=i(18317);class r{constructor(){this.isUpdate=!1,this.graphicsCmds=new s.GraphicsCmds,this._offsetsChanged=!1,this._disableGraphicsAndData=!1}isNaN(){return this.graphicsCmds.isNaN()}primitiveData(e){const t={};if(!this._disableGraphicsAndData){const i=this.graphicsCmds.primitiveData(e);null!==i&&(t.graphicsCmds=i)}return this.isUpdate&&(t.isUpdate=!0),void 0===t.graphicsCmds?void 0:t}disable(){this._disableGraphicsAndData=!0}checkForChangeAndResetChangedState(e){const t=this._offsetsChanged,i=this.graphicsCmds.isModified();this.graphicsCmds.setModified(!1),this._offsetsChanged=!1;return i||t||0!==e.length}}var n=i(80643),o=i(28329);function a(e){return Boolean(e.isPosted)}class l{isIgnoredObj(e,t){return l.isIgnoredObjDefault(e,t)}static isIgnoredObjDefault(e,t){if(void 0===t)return l.isIgnoredObjNaNable(e);const i=e[t];return l.isIgnoredByGeneralRules(e,t)||l.isIgnoredObjNaNable(i)||l.isIgnoredObjListOfNaNables(i)}static isIgnoredObjNaNable(e){return(0,o.isNaNable)(e)&&e.isNaN()}static isIgnoredObjListOfNaNables(e){if(!(0,n.isArray)(e))return!1;let t=!0;for(const i of e)if(!(0,o.isNaNable)(i)||!i.isNaN()){t=!1;break}return t}static isIgnoredObjPosted(e){return a(e)&&e.isPosted()}static isIgnoredObjErased(e){return a(e)&&e.isErased()}static isIgnoredByGeneralRules(e,t){const i=e[t];return(0,n.isArray)(i)&&0===i.length}}class c{isIgnoredObj(e,t){if(void 0===t)return l.isIgnoredObjDefault(e)||l.isIgnoredObjErased(e);const i=e[t];return l.isIgnoredObjDefault(e,t)||l.isIgnoredObjErased(i)}}class h{isIgnoredObj(e,t){if(void 0===t)return l.isIgnoredObjDefault(e)||l.isIgnoredObjErased(e)||l.isIgnoredObjPosted(e);const i=e[t];return l.isIgnoredObjDefault(e,t)||l.isIgnoredObjErased(i)||l.isIgnoredObjPosted(i)}}class d extends class extends class{constructor(e){this._dataObj=new r,this._isDirty=!1,this._eraseCmds=[],this._enableCmdDataStudy=e}init(e){this._dataObj.graphicsCmds.setCreate(e),this.update(!0)}dataObj(){return this._dataObj}setEraseCmds(e){this._eraseCmds=e}resetDirtyState(){this._isDirty=!1}disable(){this._dataObj.disable()}}{constructor(e){super(e),this._snapshotPredicate=new c,this._dataSnapShot={}}getData(){return this._dataSnapShot}getUpdate(){return this._isDirty?this._dataSnapShot:{}}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.create.deleteErasedObjs(),this._dataObj.graphicsCmds.erase=[new s.EraseAll]),this._makeSnapshot(), -this._isDirty=!0)}_makeSnapshot(){this._json=this._dataObj.primitiveData(this._snapshotPredicate),this._dataSnapShot={json:this._json}}}{constructor(e){super(e),this._updatePredicate=new h,this._sendShapshotOnly=!0,this._isFirstNotForcedUpdate=!0}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=[new s.EraseAll]),this._dataObj.isUpdate=!0,this._makeSnapshot(),null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=this._eraseCmds),this._dataObj.isUpdate=!0,this._jsonUpdate=this._dataObj.primitiveData(this._updatePredicate),null!==this._dataObj.graphicsCmds.create&&this._dataObj.graphicsCmds.create.deleteErasedAndMarkPostedObjs(),this._sendShapshotOnly=e||this._isFirstNotForcedUpdate,this._isFirstNotForcedUpdate=Boolean(e),this._isDirty=!0)}getUpdate(){return this._isDirty?this._enableCmdDataStudy?{json:this._sendShapshotOnly?this._json:void 0,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{json:this._json,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{}}}},34574:(e,t,i)=>{"use strict";i.d(t,{StudyGraphicsData:()=>r,Container:()=>n});var s=i(88537);class r{constructor(){this._horizlines=[],this._hhists=[],this._polygons=[],this._vertlines=[],this._containersCache=[],this._containerNamesCache=[],this._containersMapCache=new Map,this._addToCache("horizlines",this._horizlines),this._addToCache("hhists",this._hhists),this._addToCache("polygons",this._polygons),this._addToCache("vertlines",this._vertlines)}primitiveData(e){const t={};let i=!1;for(const s of this._containerNamesCache){const r=[],n=this.getObjsContainer(s);for(const t of n){if(t.isNaN())continue;const i=t.primitiveData(e);i.data.length>0&&r.push(i)}r.length>0&&(t[s]=r,i=!0)}return i?t:null}deleteErasedAndMarkPostedObjs(){this.forEachList(e=>{e.deleteErasedItems(),e.markPostedItems()})}deleteErasedObjs(){this.forEachList(e=>e.deleteErasedItems())}getObjsContainer(e){return(0,s.ensureDefined)(this._containersMapCache.get(e))}forEachList(e){for(const t of this._containersCache)for(const i of t)e(i.data)}_addToCache(e,t){this._containersCache.push(t),this._containerNamesCache.push(e),this._containersMapCache.set(e,t)}}class n{constructor(e,t){this.styleId=e,this.data=t}isNaN(){return this.data.isNaN()}primitiveData(e){return{styleId:this.styleId,data:this.data.primitivesData(e)}}}},27595:(e,t,i)=>{"use strict";const s=i(45112).getHexColorByName;var r=i(216);const n=s("color-ripe-red-100"),o=s("color-ripe-red-200"),a=s("color-ripe-red-500"),l=s("color-ripe-red-900"),c=s("color-ripe-red-a200"),h=s("color-minty-green-100"),d=s("color-minty-green-400"),u=s("color-minty-green-500");JSServer.studyLibrary=[{name:"Accumulation/Distribution",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot", -histogramBase:0,joinPoints:!1}},description:"Accumulation/Distribution",shortDescription:"Accum/Dist",is_price_study:!1,inputs:[],id:"Accumulation/Distribution@tv-basicstudies-1",scriptIdPart:"",name:"Accumulation/Distribution",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,s){return r.Std.or(r.Std.and(r.Std.eq(e,t),r.Std.eq(e,i)),r.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*s},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0(r.Std.close(this._context),r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context));return[r.Std.cum(i,this._context)]}}},{name:"Accumulative Swing Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ASI",histogramBase:0,joinPoints:!1}},description:"Accumulative Swing Index",shortDescription:"ASI",is_price_study:!1,inputs:[{id:"in_0",name:"Limit Move Value",defval:10,type:"float",min:.1,max:1e5}],id:"Accumulative Swing Index@tv-basicstudies-1",scriptIdPart:"",name:"Accumulative Swing Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){var i=t.new_var(r.Std.open(t)),s=t.new_var(r.Std.high(t)),n=t.new_var(r.Std.low(t)),o=t.new_var(r.Std.close(t)),a=r.Std.abs(s-o.get(1)),l=r.Std.abs(n-o.get(1)),c=r.Std.abs(s-n),h=r.Std.abs(o.get(1)-i.get(1)),d=r.Std.max(a,l),u=r.Std.iff(a>=r.Std.max(l,c),a-.5*l+.25*h,r.Std.iff(l>=r.Std.max(a,c),l-.5*a+.25*h,c+.25*h));return r.Std.iff(0===u,0,(o-o.get(1)+.5*(o-i)+.25*(o.get(1)-i.get(1)))/u*d/e*50)},this.f_1=function(e,t){var i=this.f_0(e,t);return r.Std.cum(i,t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);return[this.f_1(i,this._context)]}}},{name:"Advance/Decline",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Advance/Decline",shortDescription:"AD",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Advance/Decline@tv-basicstudies-1",scriptIdPart:"",name:"Advance/Decline",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return r.Std.gt(e,t)},this.f_1=function(e,t){return r.Std.lt(e,t)},this.f_2=function(e,t){return 0===t?e:e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.open(this._context)),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=this.f_1(r.Std.close(this._context),r.Std.open(this._context)),l=this._context.new_var(a),c=r.Std.sum(l,i,this._context);return[this.f_2(o,c)]}}},{name:"Arnaud Legoux Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1, -is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:.85,in_2:6}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Arnaud Legoux Moving Average",shortDescription:"ALMA",is_price_study:!0,inputs:[{id:"in_0",name:"Window Size",defval:9,type:"integer",min:0,max:5e3},{id:"in_1",name:"Offset",defval:.85,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"Sigma",defval:6,type:"float",min:-1e12,max:1e12}],id:"Arnaud Legoux Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Arnaud Legoux Moving Average",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2),a=this._context.new_var(i);return[r.Std.alma(a,s,n,o)]}}},{name:"Aroon",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FB8C00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Upper",histogramBase:0,joinPoints:!1},plot_1:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Aroon",shortDescription:"Aroon",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Aroon@tv-basicstudies-1",scriptIdPart:"",name:"Aroon",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e+t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.high(this._context),n=i+1,o=this._context.new_var(s),a=r.Std.highestbars(o,n,this._context),l=this.f_0(a,i),c=r.Std.low(this._context),h=this._context.new_var(c),d=r.Std.lowestbars(h,n,this._context);return[l,this.f_0(d,i)]}}},{name:"Average Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"AveragePrice@tv-basicstudies-1",scriptIdPart:"",name:"Average Price",description:"Average Price",shortDescription:"Average Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.Std.ohlc4(this._context)]}}},{name:"Average Directional Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ADX",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Average Directional Index",shortDescription:"ADX",is_price_study:!1, -inputs:[{id:"in_0",name:"ADX Smoothing",defval:14,type:"integer",min:-1e12,max:1e12},{id:"in_1",name:"DI Length",defval:14,type:"integer",min:-1e12,max:1e12}],id:"average_directional_Index@tv-basicstudies-1",scriptIdPart:"",name:"Average Directional Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){var t=this._context.new_var(r.Std.high(this._context)),i=r.Std.change(t),s=this._context.new_var(r.Std.low(this._context)),n=-r.Std.change(s),o=this._context.new_var(r.Std.tr(void 0,this._context)),a=r.Std.rma(o,e,this._context),l=this._context.new_var(r.Std.and(r.Std.gt(i,n),r.Std.gt(i,0))?i:0),c=r.Std.fixnan(100*r.Std.rma(l,e,this._context)/a,this._context),h=this._context.new_var(r.Std.and(r.Std.gt(n,i),r.Std.gt(n,0))?n:0);return[c,r.Std.fixnan(100*r.Std.rma(h,e,this._context)/a,this._context)]},this.f_1=function(e,t){var i=this.f_0(e),s=i[0],n=i[1],o=s+n,a=this._context.new_var(r.Std.abs(s-n)/(r.Std.eq(o,0)?1:o));return[100*r.Std.rma(a,t,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)),this.f_1(this._input(1),this._input(0))}}},{name:"Average True Range",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:l}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Average True Range",shortDescription:"ATR",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Average True Range@tv-basicstudies-1",scriptIdPart:"",name:"Average True Range",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0);return[r.Std.atr(i,e)]}}},{name:"Awesome Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:a,width:1,style:0},1:{color:u,width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Awesome Oscillator",shortDescription:"AO",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}}}},inputs:[],id:"Awesome Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Awesome Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){return r.Std.le(e,0)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.hl2(this._context),s=this._context.new_var(i),n=r.Std.sma(s,5,this._context),o=this._context.new_var(i),a=r.Std.sma(o,34,this._context),l=this.f_0(n,a),c=l,h=this._context.new_var(l),d=r.Std.change(h);return[c,this.f_1(d)]}}},{name:"Balance of Power",metainfo:{_metainfoVersion:52,isTVScript:!1, -isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Balance of Power",shortDescription:"Balance of Power",is_price_study:!1,inputs:[],id:"Balance of Power@tv-basicstudies-1",scriptIdPart:"",name:"Balance of Power",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,s){return(e-t)/(i-s)},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0(r.Std.close(this._context),r.Std.open(this._context),r.Std.high(this._context),r.Std.low(this._context))]}}},{name:"Bollinger Bands",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Median",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands",shortDescription:"BB",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c);return[a,this.f_1(a,h),this.f_2(a,h)]}}},{name:"Bollinger Bands %B",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:d}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:1},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],filledAreasStyle:{fill_0:{color:"#26A69A",transparency:90,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands %B",shortDescription:"BB %B",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0", -objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands %B@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands %B",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/(i-t)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c),d=this.f_1(a,h),u=this.f_2(a,h);return[this.f_3(i,u,d)]}}},{name:"Bollinger Bands Width",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands Width",shortDescription:"BBW",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands Width@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands Width",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/i},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c),d=this.f_1(a,h),u=this.f_2(a,h);return[this.f_3(d,u,a)]}}},{name:"Chaikin Money Flow",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Money Flow",shortDescription:"CMF",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Chaikin Money Flow@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Money Flow",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,s){return r.Std.or(r.Std.and(r.Std.eq(e,t),r.Std.eq(e,i)),r.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*s},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t -;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context)),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=r.Std.volume(this._context),l=this._context.new_var(a),c=r.Std.sum(l,i,this._context);return[this.f_1(o,c)]}}},{name:"Chaikin Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#EC407A"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:3,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Oscillator",shortDescription:"Chaikin Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"short",defval:3,type:"integer",min:1,max:2e3},{id:"in_1",name:"long",defval:10,type:"integer",min:1,max:2e3}],id:"Chaikin Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Oscillator",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.accdist(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Chaikin Volatility",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Chaikin Volatility@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Volatility",description:"Chaikin Volatility",shortDescription:"Chaikin Volatility",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#AB47BC"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{periods:10,rocLookback:10}},styles:{plot_0:{title:"Plot"}},bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"periods",type:"integer",name:"Periods"},{id:"rocLookback",type:"integer",name:"Rate of Change Lookback"}],format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.rocLookback=this._input(1)},this.main=function(e,t){this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this.period+this.rocLookback);var i=this._context.new_var(r.Std.high(this._context)-r.Std.low(this._context)),s=this._context.new_var(r.Std.ema(i,this.period,this._context));return[r.Std.roc(s,this.rocLookback)]}}},{name:"Chande Kroll Stop",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:10,in_1:1,in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Long",histogramBase:0, -joinPoints:!1},plot_1:{title:"Short",histogramBase:0,joinPoints:!1}},description:"Chande Kroll Stop",shortDescription:"Chande Kroll Stop",is_price_study:!0,inputs:[{id:"in_0",name:"p",defval:10,type:"integer",min:1,max:4999},{id:"in_1",name:"x",defval:1,type:"integer",min:1,max:1e12},{id:"in_2",name:"q",defval:9,type:"integer",min:1,max:1e12}],id:"Chande Kroll Stop@tv-basicstudies-1",scriptIdPart:"",name:"Chande Kroll Stop",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return e-t*i},this.f_1=function(e,t,i){return e+t*i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=r.Std.high(this._context),a=this._context.new_var(o),l=r.Std.highest(a,i,this._context),c=r.Std.atr(i,this._context),h=this.f_0(l,s,c),d=this._context.new_var(o),u=r.Std.lowest(d,i,this._context),p=this.f_1(u,s,c),_=this._context.new_var(h),m=r.Std.highest(_,n,this._context),g=this._context.new_var(p);return[r.Std.lowest(g,n,this._context),m]}}},{name:"Chande Momentum Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chande Momentum Oscillator",shortDescription:"ChandeMO",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:2e3}],id:"Chande Momentum Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chande Momentum Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e){return r.Std.ge(e,0)?e:0},this.f_1=function(e){return r.Std.ge(e,0)?0:-e},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return this.f_2(e-t,e+t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.change(n),a=this.f_0(o),l=this.f_1(o),c=this._context.new_var(a),h=r.Std.sum(c,i,this._context),d=this._context.new_var(l),u=r.Std.sum(d,i,this._context);return[this.f_3(h,u)]}}},{name:"Chop Zone",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:"#26C6DA",width:1,style:0},1:{color:"#43A047",width:1,style:0},2:{color:"#A5D6A7",width:1,style:0},3:{color:u,width:1,style:0},4:{color:"#D50000",width:1,style:0},5:{color:"#E91E63",width:1,style:0},6:{color:"#FF6D00",width:1,style:0},7:{color:"#FFB74D",width:1,style:0},8:{color:"#FDD835",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Chop Zone",shortDescription:"Chop Zone",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{ -name:"Color 2"},3:{name:"Color 3"},4:{name:"Color 4"},5:{name:"Color 5"},6:{name:"Color 6"},7:{name:"Color 7"},8:{name:"Color 8"}},valToIndex:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8}}},inputs:[],id:"chop_zone@tv-basicstudies-1",scriptIdPart:"",name:"Chop Zone",format:{precision:0,type:"price"}},constructor:function(){this.f_0=function(){var e=r.Std.close(this._context),t=r.Std.hlc3(this._context),i=this._context.new_var(r.Std.high(this._context)),s=r.Std.highest(i,30,this._context),n=r.Std.lowest(i,30,this._context),o=25/(s-n)*n,a=this._context.new_var(e),l=this._context.new_var(r.Std.ema(a,34,this._context)),c=(l.get(1)-l.get(0))/t*o,h=r.Std.sqrt(1+c*c),d=r.Std.round(180*r.Std.acos(1/h)/3.141592653589793),u=r.Std.iff(r.Std.gt(c,0),-d,d),p=r.Std.and(r.Std.gt(u,-2.14),r.Std.le(u,-.71))?7:8,_=r.Std.and(r.Std.gt(u,-3.57),r.Std.le(u,-2.14))?6:p,m=r.Std.and(r.Std.gt(u,-5),r.Std.le(u,-3.57))?5:_,g=r.Std.le(u,-5)?4:m,f=r.Std.and(r.Std.lt(u,2.14),r.Std.ge(u,.71))?3:g,v=r.Std.and(r.Std.lt(u,3.57),r.Std.ge(u,2.14))?2:f,S=r.Std.and(r.Std.lt(u,5),r.Std.ge(u,3.57))?1:v;return[1,r.Std.ge(u,5)?0:S]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Choppiness Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:61.8},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:38.2}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Choppiness Index",shortDescription:"CHOP",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Choppiness Index@tv-basicstudies-1",scriptIdPart:"",name:"Choppiness Index",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t,i,s){return 100*r.Std.log10(e/(t-i))/s},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.atr(1,this._context),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=r.Std.high(this._context),l=this._context.new_var(a),c=r.Std.highest(l,i,this._context),h=r.Std.low(this._context),d=this._context.new_var(h),u=r.Std.lowest(d,i,this._context),p=r.Std.log10(i);return[this.f_0(o,c,u,p)]}}},{name:"Commodity Channel Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:100},{color:"#787B86",linestyle:2,linewidth:1, -visible:!0,value:-100}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:20,smoothingLine:"SMA",smoothingLength:20}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Commodity Channel Index",shortDescription:"CCI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:20,type:"integer",min:1,max:1e4}],id:"Commodity Channel Index@tv-basicstudies-1",scriptIdPart:"",name:"Commodity Channel Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return(e-t)/(.015*i)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.hlc3(this._context),s=this._input(0),n=this._input(1),o=this._input(2);this._context.setMinimumAdditionalDepth(s+o);var a,l=this._context.new_var(i),c=r.Std.sma(l,s,this._context),h=this._context.new_var(i),d=r.Std.dev(h,s,this._context),u=this.f_0(i,c,d),p=this._context.new_var(u);return"EMA"===n?a=r.Std.ema(p,o,this._context):"WMA"===n?a=r.Std.wma(p,o,this._context):"SMA"===n&&(a=r.Std.sma(p,o,this._context)),[u,a]}}},{name:"Connors RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:3,in_1:2,in_2:100}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"CRSI",histogramBase:0,joinPoints:!1}},description:"Connors RSI",shortDescription:"CRSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"RSI Length",defval:3,type:"integer",min:1},{id:"in_1",name:"UpDown Length",defval:2,type:"integer",min:1},{id:"in_2",name:"ROC Length",defval:100,type:"integer",min:1}],id:"Connors RSI@tv-basicstudies-1",scriptIdPart:"",name:"Connors RSI",format:{precision:2,type:"price"}},constructor:function(){var e;this.f_1=function(e,t,i){var s=i.new_var(r.Std.max(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_2=function(e,t,i){var s=i.new_var(-r.Std.min(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_3=(e=0,function(t){var i=t.get(0),s=t.get(1);return e=i===s?0:i>s?r.Std.nz(e)<=0?1:r.Std.nz(e)+1:r.Std.nz(e)>=0?-1:r.Std.nz(e)-1,this._context.new_var(e)}),this.main=function(e,t){this._context=e, -this._input=t;var i=r.Std.close(this._context),s=this._context.new_var(i),n=this._input(0),o=this._input(1),a=this._input(2);this._context.setMinimumAdditionalDepth(a);var l=r.Std.rsi(this.f_1(s,n,this._context),this.f_2(s,n,this._context)),c=this.f_3(s),h=r.Std.rsi(this.f_1(c,o,this._context),this.f_2(c,o,this._context)),d=this._context.new_var(r.Std.roc(s,1)),u=r.Std.percentrank(d,a);return[r.Std.avg(l,h,u)]}}},{name:"Coppock Curve",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10,in_1:14,in_2:11}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Coppock Curve",shortDescription:"Coppock Curve",is_price_study:!1,inputs:[{id:"in_0",name:"WMA Length",defval:10,type:"integer",min:-1e12,max:5e3},{id:"in_1",name:"Long RoC Length",defval:14,type:"integer",min:1,max:4999},{id:"in_2",name:"Short RoC Length",defval:11,type:"integer",min:1,max:4999}],id:"Coppock Curve@tv-basicstudies-1",scriptIdPart:"",name:"Coppock Curve",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e+t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+Math.max(s,n));var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.roc(a,s),c=this._context.new_var(o),h=r.Std.roc(c,n),d=this.f_0(l,h),u=this._context.new_var(d);return[r.Std.wma(u,i,this._context)]}}},{name:"Correlation Coeff",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:4,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:"",in_1:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Correlation Coefficient",shortDescription:"CC",is_price_study:!1,inputs:[{id:"in_0",name:"sym",defval:"",type:"symbol"},{id:"in_1",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Correlation Coeff@tv-basicstudies-1",scriptIdPart:"",name:"Correlation Coeff",format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),r.Std.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_unlimited_var(this._context.symbol.time),s=(this._input(0),r.Std.period(this._context),r.Std.close(this._context)),n=this._input(1);this._context.select_sym(1);var o=this._context.new_unlimited_var(this._context.symbol.time),a=r.Std.close(this._context),l=this._context.new_unlimited_var(a);this._context.select_sym(0);var c=l.adopt(o,i,0),h=this._context.new_var(s),d=this._context.new_var(c);return[r.Std.correlation(h,d,n,this._context)]}}},{name:"Correlation - Log",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1, -id:"Correlation - Log@tv-basicstudies-1",scriptIdPart:"",name:"Correlation - Log",description:"Correlation - Log",shortDescription:"Correlation - Log",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{instrument:"",instrument2:"",periods:25}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"instrument",name:"Instrument 1",type:"symbol",defval:"",confirm:!0},{id:"instrument2",name:"Instrument 2",type:"symbol",defval:"",confirm:!0},{id:"periods",name:"Periods",type:"integer",defval:25}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),r.Std.period(this._context)),this._context.new_sym(this._input(1),r.Std.period(this._context)),this.period=this._input(2)},this.correlationLog=function(e,t,i,s){var n=r.Std.sma(e,i,s),o=r.Std.sma(t,i,s),a=s.new_var(e.get()*t.get());return(r.Std.sma(a,i,s)-n*o)/Math.sqrt(r.Std.variance2(e,n,i)*r.Std.variance2(t,o,i))},this.main=function(e,t){this._context=e,this._input=t,this._context.select_sym(1);var i=this._context.new_var(this._context.symbol.time);this._context.select_sym(2);var s=this._context.new_var(r.Std.close(this._context)),n=this._context.new_var(r.Std.log(s.get()/s.get(1))),o=this._context.new_var(this._context.symbol.time);this._context.select_sym(1);var a=this._context.new_var(r.Std.close(this._context)),l=this._context.new_var(r.Std.log(a.get()/a.get(1))),c=this._context.new_var(n.adopt(o,i,0)),h=this.correlationLog(l,c,this.period,this._context);return[r.Std.round(1e3*h)/1e3]}}},{name:"Detrended Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:21,in_1:!1}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"DPO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Detrended Price Oscillator",shortDescription:"DPO",is_price_study:!1,is_hidden_study:!1,id:"detrended_price_oscillator@tv-basicstudies-1",bands:[{id:"hline_0",name:"Zero",isHidden:!1}],inputs:[{id:"in_0",name:"Period",defval:21,type:"integer",min:1,max:1e12},{id:"in_1",name:"isCentered",defval:!1,type:"bool"}],scriptIdPart:"",name:"Detrended Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._input(1),i=Math.floor(e/2+1);this._context.setMinimumAdditionalDepth(e+i);var s=this._context.new_var(r.Std.close(this._context)),n=this._context.new_var(r.Std.sma(s,e,this._context)),o=this._context.new_var(r.Std.close(this._context)).get(i)-n,a=r.Std.close(this._context)-n.get(i);return[t?o:a,t?-i:0]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:i[1]}]}}},{name:"Directional Movement Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1, -is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_3:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FFA726"},plot_4:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#ab47bc"}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"},{id:"plot_3",type:"line"},{id:"plot_4",type:"line"}],styles:{plot_0:{title:"+DI",histogramBase:0,joinPoints:!1},plot_1:{title:"-DI",histogramBase:0,joinPoints:!1},plot_2:{title:"DX",histogramBase:0,joinPoints:!1},plot_3:{title:"ADX",histogramBase:0,joinPoints:!1},plot_4:{title:"ADXR",histogramBase:0,joinPoints:!1}},description:"Directional Movement",shortDescription:"DMI",is_price_study:!1,inputs:[{id:"in_0",name:"DI Length",defval:14,type:"integer",min:1,max:2e3},{id:"in_1",name:"ADX Smoothing",defval:14,type:"integer",min:1,max:50}],id:"Directional Movement Index@tv-basicstudies-1",scriptIdPart:"",name:"Directional Movement Index",format:{precision:4,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1);return this._context.setMinimumAdditionalDepth(2*i+s),r.Std.dmi(i,s,this._context)}}},{name:"Donchian Channels",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Lower",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Basis",histogramBase:0,joinPoints:!1}},description:"Donchian Channels",shortDescription:"DC",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_0",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Donchian Channels@tv-basicstudies-1",scriptIdPart:"",name:"Donchian Channels",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.low(this._context),n=this._context.new_var(s),o=r.Std.lowest(n,i,this._context),a=r.Std.high(this._context),l=this._context.new_var(a),c=r.Std.highest(l,i,this._context);return[o,c,r.Std.avg(c,o)]}}},{name:"Double Exponential Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1, -is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Double EMA",shortDescription:"DEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Double Exponential Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Double Exponential Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return 2*e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(2*i);var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context);return[this.f_0(o,l)]}}},{name:"Ease of Movement",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:1e4,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Ease Of Movement",shortDescription:"EOM",is_price_study:!1,inputs:[{id:"in_0",name:"Divisor",defval:1e4,type:"integer",min:1,max:1e9},{id:"in_1",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Ease of Movement@tv-basicstudies-1",scriptIdPart:"",name:"Ease of Movement",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,s,r){return e*t*(i-s)/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.hl2(this._context),o=this._context.new_var(n),a=r.Std.change(o),l=this.f_0(i,a,r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context)),c=this._context.new_var(l);return[r.Std.sma(c,s,this._context)]}}},{name:"Elders Force Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:13}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Elder's Force Index",shortDescription:"EFI",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:13,type:"integer",min:1,max:2e3}],id:"Elders Force Index@tv-basicstudies-1",scriptIdPart:"",name:"Elders Force Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.change(n),a=this.f_0(o,r.Std.volume(this._context)),l=this._context.new_var(a);return[r.Std.ema(l,i,this._context)]}}},{name:"EMA Cross",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{ -plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"},plot_2:{linestyle:0,linewidth:4,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:26}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Short",histogramBase:0,joinPoints:!1},plot_1:{title:"Long",histogramBase:0,joinPoints:!1},plot_2:{title:"Crosses",histogramBase:0,joinPoints:!1}},description:"EMA Cross",shortDescription:"EMA Cross",is_price_study:!0,inputs:[{id:"in_0",name:"Short",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Long",defval:26,type:"integer",min:1,max:2e3}],id:"EMA Cross@tv-basicstudies-1",scriptIdPart:"",name:"EMA Cross",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e?t:r.Std.na()},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.close(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context),h=a,d=c,u=r.Std.cross(a,c,this._context);return[h,d,this.f_0(u,a)]}}},{name:"Envelopes",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:10,in_2:10,in_3:"Simple",in_4:"close"}},plots:[{id:"plot_1",type:"line"},{id:"plot_0",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Average",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Envelopes",shortDescription:"Envelopes",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Upper Percentage",defval:2,type:"float",min:0},{id:"in_2",name:"Lower Percentage",defval:2,type:"float",min:0},{id:"in_3",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]},{id:"in_4",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"Envelope@tv-basicstudies-1",scriptIdPart:"",name:"Envelopes",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*(1+t)},this.f_1=function(e,t){return e*(1-t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std[this._input(4)](this._context)),s=r.Std.sma(i,this._input(0),this._context) -;return"Exponential"===this._input(3)?s=r.Std.ema(i,this._input(0),this._context):"Weighted"===this._input(3)&&(s=r.Std.wma(i,this._input(0),this._context)),[this.f_0(s,this._input(1)/100),s,this.f_1(s,this._input(2)/100)]}}},{name:"Standard Error",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Standard Error@tv-basicstudies-1",scriptIdPart:"",name:"Standard Error",description:"Standard Error",shortDescription:"Standard Error",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{length:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"length",type:"integer",name:"Length",min:3}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0)},this.main=function(e,t){this._context=e,this._input=t;for(var i,s,n=this._context.new_var(r.Std.close(this._context)),o=0,a=0,l=0;l0?1:3,i=r.Std.change(this._context.new_var(e));return t-(r.Std.le(i,0)?0:1)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(2)](this._context),s=this._input(0),n=this._input(1),o=this._input(3);this._context.setMinimumAdditionalDepth(Math.max(s,n)+o);var a=this._context.new_var(i),l=r.Std.ema(a,s,this._context),c=this._context.new_var(i),h=r.Std.ema(c,n,this._context),d=this.f_0(l,h),u=this._context.new_var(d),p=r.Std.ema(u,o,this._context),_=this.f_0(d,p);return[_,d,p,this.f_1(_)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{length:9,source:"close",offset:0,smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential",shortDescription:"EMA",is_price_study:!0,inputs:[{id:"length",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"source",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"offset",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9, -type:"integer",min:1,max:1e4}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._input(3),a=this._input(4);this._context.setMinimumAdditionalDepth(s+a);var l,c=this._context.new_var(i),h=r.Std.ema(c,s,this._context),d=this._context.new_var(h);return"EMA"===o?l=r.Std.ema(d,a,this._context):"WMA"===o?l=r.Std.wma(d,a,this._context):"SMA"===o&&(l=r.Std.sma(d,a,this._context)),[{value:h,offset:n},{value:l,offset:n}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:r.Std.wma(o,s,this._context),offset:n}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{firstPeriods:14,secondPeriods:21,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n=this._context.new_var(r.Std.close(this._context));return"Exponential"===this._input(2)?(i=r.Std.ema(n,this._input(0),this._context),s=r.Std.ema(n,this._input(1),this._context)):"Weighted"===this._input(2)?(i=r.Std.wma(n,this._input(0),this._context), -s=r.Std.wma(n,this._input(1),this._context)):(i=r.Std.sma(n,this._input(0),this._context),s=r.Std.sma(n,this._input(1),this._context)),[i,s]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n,o=this._context.new_var(r.Std.close(this._context));return"Exponential"===this._input(3)?(i=r.Std.ema(o,this._input(0),this._context),s=r.Std.ema(o,this._input(1),this._context),n=r.Std.ema(o,this._input(2),this._context)):"Weighted"===this._input(3)?(i=r.Std.wma(o,this._input(0),this._context),s=r.Std.wma(o,this._input(1),this._context),n=r.Std.wma(o,this._input(2),this._context)):(i=r.Std.sma(o,this._input(0),this._context),s=r.Std.sma(o,this._input(1),this._context),n=r.Std.sma(o,this._input(2),this._context)),[i,s,n]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:2,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0)},this.ama=function(e,t){var i=this.periods,s=this._context.new_var(),n=e.get(),o=r.Std.stdev(t,i,this._context),a=r.Std.log(n/e.get(i))/(o*Math.sqrt(i)),l=.1*Math.abs(a),c=(n-s.get(1))*l+s.get(1);return s.set(isNaN(c)?n:c),c},this.main=function(e,t){this._context=e,this._input=t -;var i=this._context.new_var(r.Std.close(this._context)),s=this._context.new_var(r.Std.log(i.get()/i.get(1)));return[this.ama(i,s)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],s=0,r=1;r<=this.periods;++r){var n=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(n),s+=n}this.hmaFactors=i,this.hmaFactorsSum=s},this.hma=function(e){for(var t=this.periods,i=0,s=0;sthis._context.new_var(s).get(1)?1:0,[100*r.Std.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume",shortDescription:"Net Volume",is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.Std.gt(e,0)?t:r.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._context.new_var(i),n=r.Std.change(s);return[this.f_0(n,r.Std.volume(this._context),n)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0, -color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4}],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.Std.gt(e,0)?t:r.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.close(this._context),o=this._context.new_var(n),a=r.Std.change(o),l=this.f_0(a,r.Std.volume(this._context),a),c=r.Std.cum(l,this._context);this._context.setMinimumAdditionalDepth(s);var h,d=this._context.new_var(c);return"EMA"===i?h=r.Std.ema(d,s,this._context):"WMA"===i?h=r.Std.wma(d,s,this._context):"SMA"===i&&(h=r.Std.sma(d,s,this._context)),[c,h]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);return[r.Std.sar(i,s,n,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1", -name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}],id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.high(this._context),s=this._context.new_var(i),n=r.Std.low(this._context),o=this._context.new_var(n),a=this._input(0),l=this._input(1),c=r.Std.highest(s,a,this._context),h=r.Std.lowest(o,a,this._context);return[{value:c,offset:l},{value:h,offset:l},{value:r.Std.avg(c,h),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u}},inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.sma(l,n,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend",format:{type:"volume"}},constructor:function(){this.f_0=function(){var e=this._context.new_var(r.Std.close(this._context));return[r.Std.cum(r.Std.change(e)/e.get(1)*r.Std.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rate Of Change",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ROC",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Rate Of Change",shortDescription:"ROC",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1}],inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e12}],id:"rate_of_change@tv-basicstudies-1",scriptIdPart:"",name:"Rate Of Change",format:{precision:2,type:"price"}}, -constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std.close(this._context)),s=this._input(0);return[100*(i.get(0)-i.get(s))/i.get(s)]}}},{name:"Relative Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{length:14,smoothingLine:"SMA",smoothingLength:14}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Relative Strength Index",shortDescription:"RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"length",name:"Length",defval:14,type:"integer",min:1,max:2e3},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:14,type:"integer",min:1,max:1e4}],id:"Relative Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Strength Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return r.Std.max(e,0)},this.f_1=function(e){return-r.Std.min(e,0)},this.f_2=function(e,t){return r.Std.eq(e,0)?100:r.Std.eq(t,0)?0:100-100/(1+t/e)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2);this._context.setMinimumAdditionalDepth(s+o);var a,l=this._context.new_var(i),c=r.Std.change(l),h=this.f_0(c),d=this._context.new_var(h),u=r.Std.rma(d,s,this._context),p=this.f_1(c),_=this._context.new_var(p),m=r.Std.rma(_,s,this._context),g=this.f_2(m,u),f=this._context.new_var(g);return"EMA"===n?a=r.Std.ema(f,o,this._context):"WMA"===n?a=r.Std.wma(f,o,this._context):"SMA"===n&&(a=r.Std.sma(f,o,this._context)),[{value:g},{value:a}]}}},{name:"Relative Vigor Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"RVGI",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"Relative Vigor Index",shortDescription:"RVGI",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3}], -id:"Relative Vigor Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Vigor Index",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.open(this._context)),n=this._context.new_var(s),o=r.Std.swma(n,this._context),a=this._context.new_var(o),l=r.Std.sum(a,i,this._context),c=this.f_0(r.Std.high(this._context),r.Std.low(this._context)),h=this._context.new_var(c),d=r.Std.swma(h,this._context),u=this._context.new_var(d),p=r.Std.sum(u,i,this._context),_=this.f_1(l,p),m=this._context.new_var(_);return[_,r.Std.swma(m,this._context)]}}},{name:"Relative Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Volatility Index",shortDescription:"RVI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Volatility Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return r.Std.le(e,0)?0:t},this.f_1=function(e,t){return r.Std.gt(e,0)?0:t},this.f_2=function(e,t){return e/(e+t)*100},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(i+12);var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.stdev(n,i,this._context),a=this._context.new_var(s),l=r.Std.change(a),c=this.f_0(l,o),h=this._context.new_var(c),d=r.Std.ema(h,14,this._context),u=this.f_1(l,o),p=this._context.new_var(u),_=r.Std.ema(p,14,this._context);return[this.f_2(d,_)]}}},{name:"SMI Ergodic Indicator/Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{in_0:5,in_1:20,in_2:5}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Indicator",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1},plot_2:{title:"Oscillator",histogramBase:0, -joinPoints:!1}},description:"SMI Ergodic Indicator/Oscillator",shortDescription:"SMIIO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:20,type:"integer",min:1,max:2e3},{id:"in_2",name:"siglen",defval:5,type:"integer",min:1,max:2e3}],id:"SMI Ergodic Indicator/Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"SMI Ergodic Indicator/Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.tsi(a,i,s,this._context),c=this._context.new_var(l),h=r.Std.ema(c,n,this._context);return[l,h,this.f_0(l,h)]}}},{name:"Smoothed Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#673AB7"}},inputs:{in_0:7,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Smoothed Moving Average",shortDescription:"SMMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"smoothed_moving_average@tv-basicstudies-1",scriptIdPart:"",name:"Smoothed Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=r.Std[this._input(1)](this._context);return[r.Std.smma(t,e,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Standard Deviation",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Standard Deviation@tv-basicstudies-1",scriptIdPart:"",name:"Standard Deviation",description:"Standard Deviation",shortDescription:"Standard Deviation",is_price_study:!1,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:u}},inputs:{periods:5,deviations:1}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"deviations",name:"Deviations",type:"float"}],format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._context.new_var(r.Std.close(this._context));return[r.Std.stdev(n,i,this._context)*s]}}},{name:"Stochastic",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2, -linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:1,in_2:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic",shortDescription:"Stoch",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"K",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"D",defval:1,type:"integer",min:1,max:1e4},{id:"in_2",name:"smooth",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic",format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.Std.close(this._context),a=r.Std.high(this._context),l=r.Std.low(this._context),c=this._context.new_var(o),h=this._context.new_var(a),d=this._context.new_var(l),u=r.Std.stoch(c,h,d,i,this._context),p=this._context.new_var(u),_=r.Std.sma(p,s,this._context),m=this._context.new_var(_);return[_,r.Std.sma(m,n,this._context)]}}},{name:"Stochastic RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:14,in_2:3,in_3:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic RSI",shortDescription:"Stoch RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"lengthRSI",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"lengthStoch",defval:14,type:"integer",min:1,max:1e4},{id:"in_2",name:"smoothK",defval:3,type:"integer",min:1,max:1e4},{id:"in_3",name:"smoothD",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic RSI@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic RSI",format:{precision:2,type:"price"}},constructor:function(){this.f_1=function(e,t,i){var s=i.new_var(r.Std.max(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_2=function(e,t,i){var s=i.new_var(-r.Std.min(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.main=function(e,t){this._context=e,this._input=t -;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3);e.setMinimumAdditionalDepth(s+n+o+a);var l=this._context.new_var(i),c=r.Std.rsi(this.f_1(l,s,this._context),this.f_2(l,s,this._context)),h=this._context.new_var(c),d=this._context.new_var(c),u=this._context.new_var(c),p=r.Std.stoch(h,d,u,n,this._context),_=this._context.new_var(p),m=r.Std.sma(_,o,this._context),g=this._context.new_var(m);return[m,r.Std.sma(g,a,this._context)]}}},{name:"TRIX",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:18}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"TRIX",histogramBase:0,joinPoints:!1}},description:"TRIX",shortDescription:"TRIX",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:18,type:"integer",min:1,max:2e3}],id:"TRIX@tv-basicstudies-1",scriptIdPart:"",name:"TRIX",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return r.Std.log(e)},this.f_1=function(e){return 1e4*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);e.setMinimumAdditionalDepth(3*i);var s=this.f_0(r.Std.close(this._context)),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context),c=this._context.new_var(l),h=r.Std.ema(c,i,this._context),d=this._context.new_var(h),u=r.Std.change(d);return[this.f_1(u)]}}},{name:"Triple EMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Triple EMA",shortDescription:"TEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Triple EMA@tv-basicstudies-1",scriptIdPart:"",name:"Triple EMA",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return 3*(e-t)+i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(3*i);var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context),c=this._context.new_var(l),h=r.Std.ema(c,i,this._context);return[this.f_0(o,l,h)]}}},{name:"True Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:25,in_1:13,in_2:13}},plots:[{id:"plot_0",type:"line" -},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"True Strength Index",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"True Strength Index",shortDescription:"True Strength Index",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"long",defval:25,type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer",min:1,max:4999},{id:"in_2",name:"siglen",defval:13,type:"integer",min:1,max:4999}],id:"True Strength Indicator@tv-basicstudies-1",scriptIdPart:"",name:"True Strength Index",format:{precision:4,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)+this._input(2));var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.tsi(a,s,i,this._context),c=this._context.new_var(l);return[l,r.Std.ema(c,n,this._context)]}}},{name:"Trend Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Trend Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Trend Strength Index",description:"Trend Strength Index",shortDescription:"Trend Strength Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",type:"integer",name:"Periods"}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.invertedPeriod=1/this.period,this.sumX=(this.period-1)*this.period/2,this.sumXX=(this.period-1)*this.period*(2*this.period-1)/6,this.invertedPeriodSumXSumX=this.invertedPeriod*this.sumX*this.sumX},this.trendStrengthIndex=function(){for(var e=this._context.new_var(r.Std.close(this._context)),t=r.Std.sum(e,this.period,this._context),i=0,s=0,n=0;n0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.Std.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{ -linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){var s=this._context.new_var(e),n=this._context.new_var(t);return[r.Std.sum(s,i,this._context)/r.Std.sum(n,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),s=this._context.new_var(r.Std.close(this._context)),n=r.Std.max(r.Std.high(this._context),s.get(1)),o=this._context.new_var(r.Std.close(this._context)),a=r.Std.min(r.Std.low(this._context),o.get(1)),l=r.Std.close(this._context)-a,c=n-a,h=this.f_0(l,c,e),d=this.f_0(l,c,t),u=this.f_0(l,c,i);return[100*(4*h[0]+2*d[0]+u[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10,min:2},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252,min:1,max:366}],format:{precision:2,type:"percent"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var s=this.variance(e,t,i);return r.Std.sqrt(s)},this.variance=function(e,t,i){var s=r.Std.sma(e,t,i);return this.variance2(e,s,t)},this.variance2=function(e,t,i){var s,r,n=0;for(s=0;s0&&(l=.12*this.square(e.get()-s.get(1))/this.marketClosedPercentage+.88*l/(1-this.marketClosedPercentage)),l/=a,l*=this.secondsPerYear;var c=this._context.new_var(l);return 100*Math.sqrt(r.Std.sum(c,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0, -id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null,this._context.setMinimumAdditionalDepth("Exponential"===this.maMethod?2*this.period+2:this.period)},this.computeATR=function(){var e=r.Std.high(this._context)-r.Std.low(this._context),t=r.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.Std.low(this._context);return this.tr=Math.max(e,t,i),"Exponential"===this.maMethod?this.atr=r.Std.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(r.Std.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(r.Std.close(this._context)),1===this.count)this.atr=r.Std.high(this._context)-r.Std.low(this._context),this.sic=r.Std.close(this._context);else if(this.countthis.sic&&(this.sic=r.Std.close(this._context))}else if(this.count===this.period){e=r.Std.high(this._context)-r.Std.low(this._context),t=r.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.Std.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period,r.Std.close(this._context)>this.sic&&(this.sic=r.Std.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var s=this.nextsar;"LONG"===this.position?r.Std.close(this._context)s?(this.position="LONG",this.sic=r.Std.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(r.Std.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=s}return this.count++,s},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0), -[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP",format:{type:"inherit"}},constructor:function(){this.f_1=function(e){e.hist=null,e.add_hist()},this.init=function(e,t){this._isNewSession=null},this.main=function(e,t){this._context=e,this._input=t;var i=e.new_var(),s=e.new_var(),n=this._context.symbol.time;return n&&(null===this._isNewSession&&(this._isNewSession=r.Std.createNewSessionCheck(e)),this._isNewSession(n)&&(this.f_1(i),this.f_1(s))),i.set(r.Std.nz(i.get(1))+r.Std.hlc3(this._context)*r.Std.volume(this._context)),s.set(r.Std.nz(s.get(1))+r.Std.volume(this._context)),[i.get(0)/s.get(0)]}}},{name:"VWMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._context.new_var(i);return[r.Std.vwma(n,s,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Volume Oscillator",shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.volume(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0, -visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period",defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(r.Std.low(this._context)),i=this._context.new_var(r.Std.abs(r.Std.high(this._context)-t.get(1))),s=r.Std.sum(i,e,this._context),n=this._context.new_var(r.Std.high(this._context)),o=this._context.new_var(r.Std.abs(r.Std.low(this._context)-n.get(1))),a=r.Std.sum(o,e,this._context),l=this._context.new_var(r.Std.atr(1,this._context)),c=r.Std.sum(l,e,this._context);return[s/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.high(this._context),n=this._context.new_var(s),o=r.Std.highest(n,i,this._context),a=r.Std.low(this._context),l=this._context.new_var(a),c=r.Std.lowest(l,i,this._context);return[this.f_0(r.Std.close(this._context),o,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},inputs:{in_0:21,in_1:13,in_2:8,in_3:8,in_4:5,in_5:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}], -styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"Jaw Length",defval:21,type:"integer",min:1,max:2e3},{id:"in_1",name:"Teeth Length",defval:13,type:"integer",min:1,max:2e3},{id:"in_2",name:"Lips Length",defval:8,type:"integer",min:1,max:2e3},{id:"in_3",name:"Jaw Offset",defval:8,type:"integer",min:1,max:2e3},{id:"in_4",name:"Teeth Offset",defval:5,type:"integer",min:1,max:2e3},{id:"in_5",name:"Lips Offset",defval:3,type:"integer",min:1,max:2e3}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=this._input(3),a=this._input(4),l=this._input(5),c=r.Std.hl2(this._context);return[{value:r.Std.smma(c,i,this._context),offset:o},{value:r.Std.smma(c,s,this._context),offset:a},{value:r.Std.smma(c,n,this._context),offset:l}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:a},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:u}},inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.f_0=function(){for(var e=this._input(0),t=this._context.new_var(r.Std.high(this._context)),i=!0,s=!0,n=!0,o=!0,a=!0,l=!0,c=1;c<=e;c++)i=r.Std.and(i,r.Std.lt(t.get(e-c),t.get(e))),s=r.Std.and(s,r.Std.lt(t.get(e+c),t.get(e))),n=r.Std.and(n,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.lt(t.get(e+c+1),t.get(e)))),o=r.Std.and(o,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.lt(t.get(e+c+2),t.get(e))))),a=r.Std.and(a,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.and(r.Std.le(t.get(e+3),t.get(e)),r.Std.lt(t.get(e+c+3),t.get(e)))))),l=r.Std.and(l,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.and(r.Std.le(t.get(e+3),t.get(e)),r.Std.and(r.Std.le(t.get(e+4),t.get(e)),r.Std.lt(t.get(e+c+4),t.get(e)))))));var h=r.Std.or(s,r.Std.or(n,r.Std.or(o,r.Std.or(a,l)))),d=r.Std.and(i,h),u=this._context.new_var(r.Std.low(this._context)),p=1,_=1,m=1,g=1,f=1,v=1;for(c=1;c<=e;c++)p=r.Std.and(p,r.Std.gt(u.get(e-c),u.get(e))),_=r.Std.and(_,r.Std.gt(u.get(e+c),u.get(e))), -m=r.Std.and(m,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.gt(u.get(e+c+1),u.get(e)))),g=r.Std.and(g,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.gt(u.get(e+c+2),u.get(e))))),f=r.Std.and(f,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.and(r.Std.ge(u.get(e+3),u.get(e)),r.Std.gt(u.get(e+c+3),u.get(e)))))),v=r.Std.and(v,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.and(r.Std.ge(u.get(e+3),u.get(e)),r.Std.and(r.Std.ge(u.get(e+4),u.get(e)),r.Std.gt(u.get(e+c+4),u.get(e)))))));var S=r.Std.or(_,r.Std.or(m,r.Std.or(g,r.Std.or(f,v))));return[r.Std.and(p,S),d]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10,traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},investorEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer"},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer"},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer"},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer"},{defval:12,id:"traderEMA5Length",max:1e3,min:1, -name:"Trader EMA 5 length",type:"integer"},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer"},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer"},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer"},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer"},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer"},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer"},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer"}],plots:[{id:"traderEMA1",type:"line"},{id:"traderEMA2",type:"line"},{id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"investorEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std.close(this._context)),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),h=r.Std.ema(i,s,this._context),d=r.Std.ema(i,n,this._context),u=r.Std.ema(i,o,this._context),p=r.Std.ema(i,a,this._context),_=r.Std.ema(i,l,this._context),m=r.Std.ema(i,c,this._context),g=this._input(6),f=this._input(7),v=this._input(8),S=this._input(9),y=this._input(10),b=this._input(11);return[h,d,u,p,_,m,r.Std.ema(i,g,this._context),r.Std.ema(i,f,this._context),r.Std.ema(i,v,this._context),r.Std.ema(i,S,this._context),r.Std.ema(i,y,this._context),r.Std.ema(i,b,this._context)]}}}]},28930:(e,t,i)=>{"use strict";var s;i.d(t,{SubsessionId:()=>s}),function(e){e.Regular="regular",e.Extended="extended",e.PreMarket="premarket",e.PostMarket="postmarket"}(s||(s={}))},64326:(e,t,i)=>{"use strict";i.d(t,{PointsetsManager:()=>n});var s=i(29823);const r=(0,i(98125).getLogger)("ChartApi.PointsetsManager");class n{ -constructor(){this._pointsetsDataBySymbol=new Map}destroy(){this._pointsetsDataBySymbol.clear()}createPointset(e,t,i,s,n){let o=this._pointsetsDataBySymbol.get(t);void 0===o&&(o=new Map,this._pointsetsDataBySymbol.set(t,o));const a=[];for(const t of s){const[i,s]=t;"number"!=typeof i||Number.isNaN(i)?r.logWarn(`Pointset time is invalid: id=${e}, ${i} of type ${typeof i}`):a.push({point:t,extrapolation:n.extrapolateTimeWithOffsetToTime(1e3*i,s)})}s.length===a.length&&o.set(e,{resolution:i,points:a})}removePointset(e){const t=[];this._pointsetsDataBySymbol.forEach((i,s)=>{i.delete(e),0===i.size&&t.push(s)});for(const e of t)this._pointsetsDataBySymbol.delete(e)}invalidatePointsetsForSymbol(e,t){const i=this._pointsetsDataBySymbol.get(e);void 0!==i&&i.forEach((e,i)=>{if(s.Interval.isEqual(e.resolution,t))for(const t of e.points)null!==t.extrapolation&&t.extrapolation.exact&&(t.extrapolation.exact=!1)})}getUpdatesForSymbol(e,t,i,s){const r=new Map,n=this._pointsetsDataBySymbol.get(e);return void 0!==n&&n.forEach((e,n)=>{const o=this._refreshPointsetData(e,t,i,s);null!==o&&r.set(n,o)}),r}_refreshPointsetData(e,t,i,n){if(s.Interval.isEqual(e.resolution,t))for(let t=0;t ${t}`),null;o.push({index:i,value:[a.index,a.timeMs/1e3]})}return o}}},34972:(e,t,i)=>{"use strict";i.d(t,{SessionTimeScale:()=>v});var s=i(88537),r=i(67337),n=i(10480),o=i(55257),a=i(65862),l=i(2271),c=i(42934);function h(e){return 60*e*60*1e3}function d(e){return 60*e*1e3}const u=[{divisor:1,weight:18},{divisor:(p=1,1e3*p),weight:19},{divisor:d(1),weight:20},{divisor:d(5),weight:21},{divisor:d(30),weight:22},{divisor:h(1),weight:30},{divisor:h(3),weight:31},{divisor:h(6),weight:32},{divisor:h(12),weight:33}];var p;function _(e,t){if(null!==t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;const i=t.getTime(),s=e.getTime();for(let e=u.length-1;e>=0;--e)if(Math.floor(i/u[e].divisor)!==Math.floor(s/u[e].divisor))return u[e].weight}return 18}function m(e,t,i=0){if(0===e.length)return[];let s=i,r=i;const n=[];for(;s=t.length?(n.push({old:s,new:l.INVALID_TIME_POINT_INDEX}),s++):e[s].timeMs===t[r].timeMs?(s!==r&&n.push({old:s,new:r}),s++,r++):e[s].timeMs{if(e.new===t.new&&e.new===l.INVALID_TIME_POINT_INDEX)return e.old-t.old;if(e.new===l.INVALID_TIME_POINT_INDEX)return-1;if(t.new===l.INVALID_TIME_POINT_INDEX)return 1;const i=e.old-e.new,s=t.old-t.new;return i>0?s>0?e.old-t.old:-1:s<0?t.new-e.new:1})}function g(e,t){return{ -span:e.markWeight,time:e.displayTime,index:t}}const f=r.enabled("end_of_period_timescale_marks");class v{constructor(){this._completed=!0,this._mainSymbolExtrapolator=null,this._pointDataByTimePoint=new Map,this._seriesIds=new Set,this._displayTimezone=null,this._minFutureBarsCount=0,this._sortedTimePoints=[]}destroy(){this.clearTimeScale()}setCompleted(e){this._completed=e}isCompleted(){return this._completed}clearTimeScale(){return this._pointDataByTimePoint.clear(),this._seriesIds.clear(),this._sortedTimePoints=[],{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]}}indexOfTime(e){if(0===this._sortedTimePoints.length)return null===this._mainSymbolExtrapolator?null:this._mainSymbolExtrapolator.indexOfTime(e);if(ethis._sortedTimePoints[this._sortedTimePoints.length-1].timeMs){if(null===this._mainSymbolExtrapolator)return null;const t=this._mainSymbolExtrapolator.indexOfTime(e),i=this._mainSymbolExtrapolator.indexOfTime(this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs);if(null===t||null===i)return null;const s=t.index-i.index-1;return{index:this._sortedTimePoints.length+s,timeMs:t.timeMs}}let t=(0,o.lowerbound)(this._sortedTimePoints,e,(e,t)=>e.timeMs({timeMs:e,markWeight:0,displayTime:NaN}));this._fillPointsData(i,0,0!==this._sortedTimePoints.length?this._sortedTimePoints[this._sortedTimePoints.length-1].displayTime:null);const r=[];for(let t=e;tg(e,i+t));return r.concat(n)}setTimezone(e){this._displayTimezone="exchange"===e?null:(0,n.get_timezone)(e),this._fillPointsData(this._sortedTimePoints,0)}fillIndexesInRows(e){if(0===e.length)return;let t=-1,i=(0,o.lowerbound)(this._sortedTimePoints,Math.round(1e3*e[0].value[0]),(e,t)=>e.timeMse.timeMs{for(;i=this._sortedTimePoints.length){const t=this.indexOfTime(e);if(null===t)return l.INVALID_TIME_POINT_INDEX;i=t.timeMs!==e?t.index+1:t.index}return(0,s.assert)(i>t,"data must have unique sorted times"),t=i,i})}firstSeriesBarTime(){return 0===this._sortedTimePoints.length?null:this._sortedTimePoints[0].timeMs}replaceSeriesBarsTimesTail(e,t){if(0===t.length)return null;if(!this._seriesIds.has(e))return this.setSeriesBarsTimes(e,t);const i=[],s=(0,o.lowerbound)(this._sortedTimePoints,t[0],(e,t)=>e.timeMs({timeMs:e.timeMs,pointData:e.pointData,markWeight:0,displayTime:NaN}));for(let e=s;ee.timeMs-t.timeMs);const a=this._updateTimeScalePointsTail(n);return this._applyTimeScaleChanges(a,!1)}setSeriesBarsTimes(e,t){let i=0!==this._pointDataByTimePoint.size;if(this._seriesIds.has(e))if(1===this._seriesIds.size)i=!1,this._pointDataByTimePoint.clear();else for(const t of this._sortedTimePoints)t.pointData.series.delete(e);this._addBarsTimesToSeries(e,t,!1);const s=this._seriesIds.size;0===t.length?this._seriesIds.delete(e):this._seriesIds.add(e),i&&this._cleanupPointsData(this._sortedTimePoints);const r=sthis._seriesIds.size,o=r&&2===this._seriesIds.size||n&&1===this._seriesIds.size,a=[];this._pointDataByTimePoint.forEach((e,t)=>{a.push({markWeight:0,timeMs:t,displayTime:NaN,pointData:e})}),a.sort((e,t)=>e.timeMs-t.timeMs);const l=this._updateTimeScalePoints(a);return this._applyTimeScaleChanges(l,o)}_updateFutureBars(){if(0===this._minFutureBarsCount||null===this._mainSymbolExtrapolator)return;if(0!==this._sortedTimePoints.length){const e=this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs;this._mainSymbolExtrapolator.ensureExtrapolatedToFutureTime(e)}const e=this._futureBarsFirstPointIndex();this._mainSymbolExtrapolator.setMinFutureBarsCount(e+this._minFutureBarsCount)}_addBarsTimesToSeries(e,t,i){const s=i?[]:null;for(const i of t){const t=this._pointDataByTimePoint.get(i);if(void 0===t){const t=new Set;t.add(e);const r={index:0,series:t};this._pointDataByTimePoint.set(i,r),null!==s&&s.push({timeMs:i,pointData:r})}else t.series.add(e)}return s}_futureBarsFirstPointIndex(){ -if(null===this._mainSymbolExtrapolator||0===this._sortedTimePoints.length)return 0;const e=this._mainSymbolExtrapolator.futureBars();return(0,o.upperbound_int)(e,this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs)}_futureBars(){return null===this._mainSymbolExtrapolator?[]:this._mainSymbolExtrapolator.futureBars().slice(this._futureBarsFirstPointIndex(),this._futureBarsFirstPointIndex()+1e3)}_cleanupPointsData(e){for(const t of e)0===t.pointData.series.size&&this._pointDataByTimePoint.delete(t.timeMs)}_updateTimeScalePoints(e){let t=-1;for(let i=0;ie.timeMs=this._sortedTimePoints.length)continue;this._sortedTimePoints[n].timeMs!==r.timeMs&&-1===i&&(i=n)}const s=t+e.length;if(i=S(i,this._sortedTimePoints.length,s),-1===i)return null;this._fillPointsData(e,0,0===t||0===this._sortedTimePoints.length?null:this._sortedTimePoints[t-1].displayTime);const r=m(this._sortedTimePoints.slice(t),e).map(e=>({old:e.old+t,new:e.new===l.INVALID_TIME_POINT_INDEX?e.new:e.new+t}));{const i=this._sortedTimePoints;let r=0;for(;t+r1&&null===i){const t=Math.ceil(n/(e.length-1)),i=new Date(1e3*(e[0].displayTime-t));e[0].markWeight=_(new Date(1e3*e[0].displayTime),i)}}(e,t,i)}_applyTimeScaleChanges(e,t){if(null===e)return t?(this._fillPointsData(this._sortedTimePoints,0),{points:[],pointsIndex:0,baseIndex:this._getBaseIndex(),indexChange:[],marks:this.tickMarks(0)}):null;let i=e.pointsIndex;if(0!==i&&t&&(this._fillPointsData(this._sortedTimePoints,0),i=0),0===this._sortedTimePoints.length)return{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]};const s=[];for(let t=e.pointsIndex;t{"use strict";var s=i(41728),r=i(216),n=i(37750),o=i(66482).SymbolExtrapolator,a=i(34972).SessionTimeScale,l=i(64326).PointsetsManager,c=i(69177),h=i(65862).createDwmAligner,d=i(29823).Interval,u=i(76422),p=i(45415).visitObject,_=i(80643).isObject;i(27595),i(84093);var m=i(41986).DatafeedRequestsCachedProcessor,g=i(39277).timezoneIsAvailable,f=i(65862).isAlignmentEnabled,v=i(19234),S=v.isEncodedExtendedSymbol,y=v.decodeExtendedSymbol,b=i(37667).extractSymbolNameFromSymbolInfo,w=i(79283).replaceGraphicsTimesWithTimePointIndexIndex,C=i(67337),P=i(28930).SubsessionId,T=i(69177).getPeriodsBetweenDates;const x=C.enabled("pre_post_market_sessions");function I(e){var t=e.findIndex((function(e){return-5e6!==e.index}));return-1===t?[]:0===t?e:e.slice(t)}function M(e,t){return e+"_"+t}var L=function(e){var t=this;this._studiesCache={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&r.overwriteVolumeProfileResolutionForPeriodGetter((function(t,i,s,r){return e.getVolumeProfileResolutionForPeriod(t,i,s,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._resolvePromisesBySymbolId=new Map,this._symbolIdToSymbolRequestString=new Map,this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._symbolExtrapolators={},this._timeScales={},this._cachedDatafeed=new m(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),n.setupFeed({resolve:function(e,i,s,r){t._resolveSymbolByName(e,i,s,r)},subscribe:function(e,i,s,r,n){return t._cachedDatafeed.subscribe(e,i,s,function(e,i,s){ -var r=new c.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),n=c.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();n.moveTo(i),n.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}s(e)}}(e,i,r),n)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function A(e,t){return e+"_"+t}function E(e,t,i,s){return e+(t?"_#_"+t:"")+(i?"_#_"+i:"")+(s?"_#_"+s:"")}L.prototype._getSymbolExtrapolator=function(e,t,i){var s=d.normalize(i),r=function(e,t,i){const s=void 0!==t.subsession_id?","+t.subsession_id:"";return e+","+t.full_name+","+i+s}(e,t,s),n=this._symbolExtrapolators[r];return void 0===n&&(n=new o(t,s),this._symbolExtrapolators[r]=n),n},L.prototype._barsCoefficients=function(e,t){if(void 0===y(e).type)return{};var i=e+t;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]},L.prototype.destroy=function(){this._cachedDatafeed.destroy(),this._externalDatafeed=null,Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={}},L.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._studiesCache={},this._resolvePromisesBySymbolId.clear(),this._symbolIdToSymbolRequestString.clear(),Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScales).forEach((function(e){this._timeScales[e].destroy()}),this),this._timeScales={},Object.keys(this._symbolExtrapolators).forEach((function(e){this._symbolExtrapolators[e].destroy()}),this),this._symbolExtrapolators={}},L.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},L.prototype._logMessage=function(e){C.enabled("charting_library_debug_mode")&&console.log(e)},L.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},L.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var s=this._callbacks[e],r=0;r_[a].timeMs;l?_.push({index:g(s,_.length),value:[s/1e3].concat(r),timeMs:s}):(_[a].index=g(s,a),_[a].value=[s/1e3].concat(r),_[a].timeMs=s),p||u.onRealtimeCallback([_[_.length-1]],l,_.length,v,i)}(e,t,i)},nonseriesOut:function(e,t){u.onNonSeriesDataUpdate(t,i)},setNoMoreData:function(){S=!0},recalc:function(e,s){p=!1,_.endOfData=S,_.emptyBarCount=s.emptyBarCount,t.error&&null!==t.error()||(null!==l&&(y._objectsDataCache[l]=_),u.onDataReadyCallback(_,v,i,s))}});if(!y._studiesCache[e]||!y._studiesCache[e][n])throw Error("This should never happen");y._studiesCache[e][n].engine=w}catch(e){if(!e.studyError)throw e;u.onErrorCallback(e.message)}}else u.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")}(w,P)},L.prototype._createStudy=function(e,t,i,s,r,n,o,a){var l=this;function c(e,t,i){e=I(e),l._timeScales[s].fillIndexesInRows(e),TradingView.ChartapiMessagerInstances[s].onDataUpdate(r,n,e,t),TradingView.ChartapiMessagerInstances[s].onStudyCompleted(r,n)}function h(e){var t={};if(0!==e.size){var i={},n=l._studiesCache[s][r].metainfo;e.forEach((function(e,t){i[n.plots[t].id]=e})),t.data={offsets:i}}return t}a=function(e){if(Array.isArray(e))return e;for(var t=[],i=l._studiesCache[s][r].metainfo.inputs,n=0;n=0},L.prototype.ensureExtendedTo=function(e,t,i){if(!this._studiesCache[t][e])throw Error("This should never happen");var s=this;setTimeout((function(){s._recreateSourcesForDataRange(t,{to:i})}),0)},L.prototype.extendSeriesRange=function(e,t){var i=this._timeScales[e].firstSeriesBarTime();if(null!==i){var s=this._mainSeriesRecord(e);if(d.isDWM(s.resolution)&&null!=s.symbolInfo){var r=h(s.resolution,s.symbolInfo);null!==r&&(i=r.timeToExchangeTradingDay(i))}var n=this._symbolIdToSymbolRequestString.get(M(e,s.symbolId)),o=this._barsCoefficients(n,s.resolution),a=o.barsCoefficient||1;if(!o.barsCoefficient){var l=this._getSeriesData(e,s.guid);null!==l&&(o.expectedBarsCount=l.length+t)}var c=this;setTimeout((function(){c._recreateSourcesForDataRange(e,{to:i,countBack:(t+2)*a})}),0)}else this._logMessage("Nothing to extend - there is no points on time scale")},L.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},L.prototype._seriesDataRange=function(e,t){var i=this._studiesCache[e][t];return null!==i.firstLoadedTimeMs?{ -to:i.firstLoadedTimeMs,countBack:0}:i.dataRange},L.prototype._applyTimeScaleUpdate=function(e,t){if(null!==t){var i=[];for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if(r&&"study"===r.type){var n=this._studiesNonSeriesTimes[e][s];if(n){var o={indexes:this._timeScales[e].convertTimesToIndexes(n),data:{indexes_replace:!0}};i.push({objId:s,turnaround:r.turnaround,data:[],nonSeriesData:o})}}}TradingView.ChartapiMessagerInstances[e].onTimescaleUpdate(t,i),Promise.resolve().then(function(){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._pointsetsManagers[e].getUpdatesForSymbol(t.symbolInfo.full_name,t.resolution,i,this._timeScales[e]).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t)}))}}.bind(this))}},L.prototype._updateMainTsBuilder=function(e){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._timeScales[e].setMainSymbolExtrapolator(i)}},L.prototype._updateTimeScaleState=function(e){var t=!0,i=!0;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];"series"===r.type&&(i=i&&this._isEndOfData(e,s,r.turnaround),t=t&&r.completed)}this._timeScales[e].isCompleted()!==t&&(this._timeScales[e].setCompleted(t),t&&TradingView.ChartapiMessagerInstances[e].onTimescaleCompleted(i))},L.prototype._mainSeriesRecord=function(e){var t=null,i=null;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if("series"===r.type&&(null===t&&(t=r),r.isMain)){i=r;break}}return null===i&&(i=t),null!==i&&(i.isMain=!0),i},L.prototype._seriesCount=function(e){var t=0;for(var i in this._studiesCache[e]){"series"===this._studiesCache[e][i].type&&(t+=1)}return t},L.prototype._prepareSeriesNonSeriesData=function(e,t,i){var s=i.data[i.data.length-1],r=this._getSeriesData(e,t),n=null===r?[]:i.data;return{data:{data:{reversalAmount:i.reversalAmount,boxSize:i.boxSize,price:s?s[4]:i.price,bars:n.map((function(e,t){return{time:t,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5],factor:e[6],additionalPrice:e[6]}}))}},indexes:this._timeScales[e].convertTimesToIndexes(n.map((function(e){var t=e[0]||0;return t<0?r[r.length+t].timeMs:i.projectionTime+t})))}},L.prototype.createSeries=function(e,t,i,s,n,o,a){this._setEndOfData(e,t,i,!1);var l=new r.OHLCV;this._studiesCache[e]=this._studiesCache[e]||{};var c=this._getSeriesData(e,t),h=this._studiesCache[e][t],u=this._seriesCount(e),p=this._mainSeriesRecord(e);if(!h||d.isEqual(h.resolution,n)&&h.symbolId===s)void 0!==o.countBack&&null!==c&&0!==c.length&&(o.to=c[0].timeMs),h&&null!=h.firstLoadedTimeMs?o.to=void 0!==o.to?Math.min(h.firstLoadedTimeMs,o.to):h.firstLoadedTimeMs:h||0===u||null!==p&&(null!=p.firstLoadedTimeMs?(o.to=p.firstLoadedTimeMs,o.countBack=0):o=Object.assign({},p.dataRange));else if(1===u)o=Object.assign({},h.initialDatarange);else{var _=this._timeScales[e].firstSeriesBarTime();(void 0===o.to||null!==_&&_{"use strict";i.d(t,{SymbolExtrapolator:()=>c});var s=i(88537),r=i(55257),n=i(69177),o=i(11075),a=i(29823);function l(e,t){return e.length>t}class c{constructor(e,t,i=2e5){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._symbolInfo=e,this._interval=a.Interval.parse(t),this._extrapolateLimit=i,this._barBuilder=(0,n.newBarBuilder)(t,new n.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),null)}destroy(){this.clear()}interval(){return this._interval}barBuilder(){return this._barBuilder}symbolInfo(){return this._symbolInfo}clear(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0}firstFutureBarIndex(){return this._barsTimes.length}futureBars(){return this._futureBarsCache}replaceBarsTimesTail(e,t=e.length){if(0===e.length)return;if(0===this._barsTimes.length)return void this.setBarsTimes(e,t);const i=e[0],n=this._barsTimes[this._barsTimes.length-1],o=i>n?this._barsTimes.length:(0,r.lowerbound_int)(this._barsTimes,i);0!==o?(this._barsTimes.splice(o,this._barsTimes.length,...e),this._projectionFirstIndex=t===e.length?this._barsTimes.length:this._barsTimes.indexOf(e[t]),(0,s.assert)(-1!==this._projectionFirstIndex,"something went wrong"),n!==e[e.length-1]&&this._setLastRealBarTime(e[e.length-1])):this.setBarsTimes(e,t)}setBarsTimes(e,t=e.length){const i=this._barsTimes;if(this._barsTimes=e.slice(),this._projectionFirstIndex=0===this._barsTimes.length?1/0:t,0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);0!==i.length&&i[i.length-1]===e[e.length-1]||this._setLastRealBarTime(e[e.length-1]),0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])}extrapolateTimeWithOffsetToTime(e,t){if(0===t)return{timeMs:e,exact:!0} -;0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));const i=this.indexOfTime(e);if(null===i)return null;const s=this._timeOfBarIndex(i.index+t);return null===s?null:((i.index<0||this._projectionFirstIndex<=i.index)&&(s.exact=!1),s)}indexOfTime(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);let t=(0,r.lowerbound_int)(this._futureBarsCache,e);if(0!==this._futureBarsCache.length&&t===this._futureBarsCache.length&&e>this._futureBarsCache[this._futureBarsCache.length-1])return null;this._futureBarsCache[t]!==e&&(t-=1);const i=Math.max(1,this._barsTimes.length)+t;return{index:i,timeMs:i===this._barsTimes.length-1?(0,s.ensureNotNull)(this._lastRealBarTimeMs):this._futureBarsCache[t]}}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?{index:0,timeMs:(0,s.ensureNotNull)(this._timeOfBarIndex(0)).timeMs}:null;let t=(0,r.lowerbound_int)(this._barsTimes,e);return this._barsTimes[t]!==e&&(t-=1),{index:t,timeMs:this._barsTimes[t]}}setMinFutureBarsCount(e){this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)}ensureExtrapolatedToFutureTime(e){this._ensureExtrapolatedToFutureTime(e)}_setLastRealBarTime(e){const t=this._futureBarsCache.length,i=(0,r.upperbound_int)(this._futureBarsCache,e);0===i?this._extendFutureCacheToTimeFromLeft(e):(this._lastRealBarTimeMs=e,this._futureBarsCache=this._futureBarsCache.slice(i)),this._ensureExtrapolatedToFutureBar(Math.max(t,this._minFutureBarsCount))}_timeOfBarIndex(e){var t;if(e<0){const t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);const i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:(0,s.ensureNotNull)(null!==(t=this._firstRealBarTimeMs)&&void 0!==t?t:this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){const t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)return;if((0,s.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0===this._historyBarsCache.length)return;const t=(0,o.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}_ensureExtrapolatedToFutureBar(e){return!(this._futureBarsCache.length>=e||l(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight((t,i)=>(0,o.extrapolateBarsFrontByCount)(this._barBuilder,t,e-i,!0).times)}_ensureExtrapolatedToFutureTime(e){null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||l(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight((t,i)=>(0,o.extrapolateBarsFrontToTime)(this._barBuilder,t,e,this._extrapolateLimit,!0).times),this._futureBarsCache[this._futureBarsCache.length-1]=e||l(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft((t,i)=>(0,o.extrapolateBarsFrontByCount)(this._barBuilder,t,-(e-i),!0).times.reverse())}_ensureExtrapolatedToHistoryTime(e){null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||l(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft((t,i)=>{const s=(0,o.extrapolateBarsFrontToTime)(this._barBuilder,t-1,e-1,this._extrapolateLimit,!0).times;return s[s.length-1]===t?s.slice(0,-1):s}),(0===this._historyBarsCache.length||this._historyBarsCache[0]>e)&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))}}},43007:(e,t,i)=>{"use strict";i.d(t,{backend:()=>s});const s=i(17437)},73383:(e,t,i)=>{"use strict";var s,r;function n(e,t){ -return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}i.d(t,{TIMEFRAMETYPE:()=>r,areEqualTimeFrames:()=>n}),function(e){e.extractErrorReason=function(e){return e.params[1]}}(s||(s={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(r||(r={}))},87980:()=>{"use strict";TradingView.Pro=function(){this.hasPackage=function(){return!1}},window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]}},56910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QuoteCache:()=>r,QUOTE_FIELDS:()=>n,QUOTE_FIELDS_CACHE:()=>o});var s=i(88537);class r{constructor(e){this._cache=new Map,this._fields=[...e.fields]}update(e,t,i){const r=(0,s.ensureDefined)(e.symbolname);if(this._cache.has(r)||this._cache.set(r,{symbolname:r,status:e.status,values:{}}),"error"===e.status)return;const n=(0,s.ensureDefined)(this._cache.get(r));n.status=e.status;for(const s of this._fields){if(!t.has(s))continue;const r=e.values[s];(i||void 0!==r)&&(n.values[s]=r)}}get(e){var t;return null!==(t=this._cache.get(e))&&void 0!==t?t:null}fields(){return this._fields}}const n=new Set(["pro_name","logoid","currency-logoid","base-currency-logoid","short_name","description","exchange","type","country_code","provider_id","sector","type","industry","currency_id","last_price","fractional","minmov","minmove2","pricescale","change","change_percent","volume","average_volume","market_cap_basic","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","earnings_release_next_date","earnings_per_share_forecast_next_fq","earnings_release_date","earnings_per_share_fq","fundamental_currency_code","symbol-primaryname","update_mode"]),o=new r({fields:n})},39138:(e,t,i)=>{"use strict";i.d(t,{getQuoteSessionInstance:()=>o,destroyQuoteSessions:()=>a});var s=i(87467),r=i.n(s);const n={};function o(e="full"){return n[e]||function(e="full",t){n[e]=t}(e,new(r())(e)),n[e]}function a(){for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];void 0!==t&&t.destroy(),delete n[e]}}},67311:(e,t,i)=>{"use strict";i.d(t,{QuoteSession:()=>r});var s=i(9423);class r{constructor(e,t=(0,s.randomHash)()){this._sessionstarted=!1,this._globalHandler=null,this._chartApi=e,this._sessionid="qs_"+t}destroy(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionstarted=!1)}connected(){return this._chartApi.connected()}connect(e){this._globalHandler=e,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()}disconnect(){this._chartApi.disconnect()}quoteAddSymbols(e){this._chartApi.quoteAddSymbols(this._sessionid,e)}quoteRemoveSymbols(e){this._chartApi.quoteRemoveSymbols(this._sessionid,e)}quoteFastSymbols(e){this._chartApi.quoteFastSymbols(this._sessionid,e)}quoteSetFields(e){ -this._chartApi.quoteSetFields(this._sessionid,e)}onMessage(e){var t;switch(e.method){case"connected":this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}null===(t=this._globalHandler)||void 0===t||t.call(this,e)}quoteHibernateAll(){this._chartApi.quoteHibernateAll(this._sessionid)}}window.TradingView.QuoteSession=r},87467:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(2872),r=i(43370).default,n=i(4889).default,o=i(97098).PriceFormatter;const{uniq:a}=i(96397);var l=i(9423),c=i(5370).parseUpdateMode,h=i(15840).deepExtend;const{QUOTE_FIELDS_CACHE:d,QUOTE_FIELDS:u}=i(56910);var p;function _(e,t){this.options=Object.assign({throttleTimeout:125},t),this._connected=!1,this._symbol_data={},this._subscriptions={},this.onConnect=new s,this.onDisconnect=new s,this._quoteApi=new p(window.ChartApiInstance),this._type=e||"full",this._delayUpdateFastSymbols=n(this._updateFastSymbols,250),this._throttledSymbolData={},this._formatterValuesCache={},this._waitingForFormatters={},this._snapshotValuesCache={},this._waitingForSnapshot={},this.connect()}p=i(67311).QuoteSession,_.prototype.destroy=function(){this._quoteApi.destroy(),this._quoteApi=null,this._connected=!1,this.onDisconnect.fire()},_.prototype.typeFields={},_.prototype.typeFields.simple=["base-currency-logoid","ch","chp","currency-logoid","currency_code","currency_id","base_currency_id","current_session","description","exchange","format","fractional","is_tradable","language","local_description","listed_exchange","logoid","lp","lp_time","minmov","minmove2","original_name","pricescale","pro_name","short_name","type","typespecs","update_mode","volume"],_.prototype.typeFields.simpleDetailed=[].concat(_.prototype.typeFields.simple,["ask","bid","fundamentals","high_price","is_tradable","low_price","open_price","prev_close_price","rch","rchp","rtc","rtc_time","status","basic_eps_net_income","beta_1_year","earnings_per_share_basic_ttm","industry","market_cap_basic","price_earnings_ttm","sector","volume","dividends_yield","timezone"]),_.prototype.typeFields.full=[],_.prototype.typeFields.watchlist=[].concat(_.prototype.typeFields.simple,["rchp","rtc","country_code","provider_id"]),_.prototype.typeFields.portfolio=["pro_name","short_name","exchange","listed_exchange","description","sector","type","typespecs","industry","currency_code","currency_id","ch","chp","logoid","currency-logoid","base-currency-logoid","earnings_per_share_forecast_next_fq","earnings_release_next_date","earnings_release_date","earnings_per_share_fq","lp","fractional","minmov","minmove2","pricescale","volume","average_volume","market_cap_basic","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","fundamental_currency_code","rates_mc","rates_fy","rates_ttm","value_unit_id"],_.prototype.typeFields.notes=["short_name","pro_name","logoid","currency-logoid","base-currency-logoid","symbol-primaryname","type","typespecs"], -_.prototype.connect=function(e){this._quoteApi.connect(this.quoteHandler.bind(this))},_.prototype.quoteHandler=function(e){var t=e.method,i=e.params;switch(t){case"connected":this._connected||(this._connected=!0,this.onConnected());break;case"quote_list_fields":break;case"quote_symbol_data":this._connected&&this.onSymbolData(i[0]);break;case"quote_completed":this._connected&&this.onSymbolData({symbolname:i[0],complete:performance.now(),values:{}});break;case"disconnected":this._connected&&(this._connected=!1,this.onDisconnect.fire())}},_.prototype.onConnected=function(){this.setFields();var e=Object.keys(this._symbol_data);e.length&&(this._quoteApi.quoteAddSymbols(e),this._delayUpdateFastSymbols()),this.onConnect.fire()},_.prototype.setFields=function(){var e=_.prototype.typeFields[this._type];e&&e.length&&this._quoteApi.quoteSetFields(e)},_.prototype.onSymbolData=function(e){try{e.status&&d.update(e,u,!1)}catch(e){}var t=e.symbolname,i=this._throttledSymbolData[t];i||(i=this._throttledSymbolData[t]={fnDispatch:r(this.dipatchSymbolData.bind(this),this.options.throttleTimeout)}),i.cache?h(i.cache,e):i.cache=e,i.fnDispatch(t)},_.prototype._parseUpdateMode=function(e){var t=c(e.update_mode);null!==t&&(e.update_mode=t.mode,e.update_mode_seconds=t.interval)},_.prototype.dipatchSymbolData=function(e){var t=this._symbol_data[e],i=this._throttledSymbolData[e].cache;if(delete this._throttledSymbolData[e].cache,this._symbol_data[e])for(var s in h(t,i),t.values&&this._parseUpdateMode(t.values),this._subscriptions){var r=this._subscriptions[s];r.has(e)&&r.get(e).forEach((function(e){e(t,i)}))}},_.prototype.subscribe=function(e,t,i){this._subscriptions[e]=this._subscriptions[e]||new Map;var s=this._subscriptions[e];t=[].concat(t);var r=[];t.forEach((function(e){this._symbol_data[e]?s&&s.has(e)||this._symbol_data[e].subscribers_count++:(this._symbol_data[e]={subscribers_count:1},r.push(e)),s.has(e)||s.set(e,[]),s.get(e).push(i),s.get(e).fast=!0,this._symbol_data[e]&&this._symbol_data[e].values&&i(this._symbol_data[e],this._symbol_data[e])}),this),r.length&&this._connected&&(this._quoteApi.quoteAddSymbols(r),this._delayUpdateFastSymbols())},_.prototype.unsubscribe=function(e,t,i){t=[].concat(t);for(var s=this._subscriptions[e],r=[],n=0;n{"use strict";function s(e,t,i){const s=e.get(t);return void 0!==s?s:(e.set(t,i),i)}function r(e,t,i){const s=e.get(t);if(void 0!==s)return s;const r=i();return e.set(t,r),r}function n(e,t,i,n){return r(s(e,t,new Map),i,n)}function o(e,t,i,r,n){const o=s(e,t,new Map),a=s(o,i,new Map);return s(a,r,n)}i.d(t,{getDefault2Lazy:()=>n,getDefault3:()=>o,AbstractMapContainer:()=>a});class a{constructor(){this._map=new Map,this._size=0}size(){return this._size}clear(){this._map.clear(),this._size=0}}},55257:(e,t,i)=>{"use strict";function s(e,t){return e>1,o=s+r;i(e(o),t)?(s=o+1,n-=r+1):n=r}return s}function n(e,t,i,s=0,n=e.length){return r(t=>e[t],t,i,s,n)}function o(e,t,i=0,r=e.length){return n(e,t,s,i,r)}function a(e,t,i,s=0,r=e.length){let n=r-s;for(;0>1,o=s+r;i(t,e[o])?n=r:(s=o+1,n-=r+1)}return s}function l(e,t,i=0,r=e.length){return a(e,t,s,i,r)}function c(e,t){return e.filter(e=>!t.includes(e))}function h(e,t){const i=e.indexOf(t);return i<0?e.slice():[t].concat(e.slice(0,i)).concat(e.slice(i+1))}function d(e,t,i){const s=new Set(t),r=[],n=[],a=[];return e.forEach((e,t)=>{s.has(e)?n.push(e):(r.push(e),a.push(t))}),i=i{s.has(e)?n.push(e):(r.push(e),a.push(t))}),i=i<=e.length-1?o(a,i):r.length, -r.splice(i,0,...n),{newItems:r,movedItemsStartIndex:i}}function p(e,t){const i=new Set;return e.forEach(e=>{t.has(e)&&i.add(e)}),i}i.r(t),i.d(t,{lowerboundExt:()=>r,lowerbound:()=>n,lowerbound_int:()=>o,upperbound:()=>a,upperbound_int:()=>l,subtract:()=>c,moveToHead:()=>h,moveAfter:()=>d,moveBefore:()=>u,intersect:()=>p})},10480:(e,t,i)=>{"use strict";var s=i(84917),r=i(84296).tzData;function n(e){this._name=e;var t=r[e];if(t||(t={time:[],offset:[]},this._invalid=!0),t.time.length!==t.offset.length&&(t={time:[],offset:[]},this._invalid=!0),!t.time_utc){for(var i=t.time,s=t.offset,n=i.length,o=new Array(n),a=0;at){if((r=n-1)0&&e-t[s-1]<=r)return r;return 0},n.prototype.is_valid=function(){return!this._invalid},n._offset=function(e,t,i){var s=o(e,i);return-1===s?0:t[s]};var a=function(e){return 0|e},l=function(e){return 60*e*1e3},c=function(e,t){return h(e)-h(t)},h=function(e){return e<0?a(e/1e3)-(e%1e3!=0?1:0):a(e/1e3)};function d(e){return e%4==0&&(e%100!=0||e%400==0)}var u={0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334},p={...s.WeekDays,...s.Months,YEAR:1,MONTH:2,WEEK_OF_YEAR:3,DAY_OF_MONTH:5,DAY_OF_YEAR:6,DAY_OF_WEEK:7,HOUR_OF_DAY:11,MINUTE:12,SECOND:13,minutesPerDay:1440,millisecondsPerDay:l(1440),get_minutes_from_hhmm:function(e){return-1!==e.indexOf(":")&&(e=e.split(":").join("")),e%100+60*a(e/100)},get_year:function(e){return e.getUTCFullYear()},get_month:function(e){return e.getUTCMonth()},get_hours:function(e){return e.getUTCHours()},get_minutes:function(e){return e.getUTCMinutes()},get_seconds:function(e){return e.getUTCSeconds()},get_day_of_month:function(e){return e.getUTCDate()},get_day_of_week:function(e){return e.getUTCDay()+1},get_day_of_year:function(e){var t=e.getUTCMonth(),i=u[t];return t>p.JANUARY+1&&d(e.getUTCFullYear())&&(i+=1),i+e.getUTCDate()},get_week_of_year:function(e){var t=new Date(Date.UTC(e.getUTCFullYear(),0,1)).getUTCDay(),i=0===t?1:8-t,s=p.get_day_of_year(e)-i;return Math.ceil(s/7)+1},get_minutes_from_midnight:function(e){return 60*p.get_hours(e)+p.get_minutes(e)},set_hms:function(e,t,i,s,r,n){e.setUTCHours(t),e.setUTCMinutes(i),e.setUTCSeconds(s),e.setUTCMilliseconds(r),void 0!==n&&p.correct_time(e,n)},correct_time:function(e,t){var i=e.getTime(),s=t.correction_loc(i);e.setTime(i+s)},add_days_considering_dst:function(e,t,i){var s=e.offset_utc(t),r=this.clone(t);this.add_date(r,i);var n=e.offset_utc(r);return r.setTime(r.getTime()+s-n),r},add_date:function(e,t){ -e.setTime(e.getTime()+t*p.millisecondsPerDay)},add_minutes:function(e,t){e.setTime(e.getTime()+l(t))},clone:function(e){return new Date(e.getTime())},get_days_per_year:function(e){var t=e.getUTCFullYear();return this.days_per_year(t)},days_per_year:function(e){return d(e)?366:365},get_days_in_month:function(e,t){let i;switch(e){case 0:case 2:case 4:case 6:case 7:case 9:case 11:i=31;break;case 1:i=28,d(t)&&i++;break;default:i=30}return i},get_part:function(e,t){switch(t){case p.YEAR:return p.get_year(e);case p.MONTH:return p.get_month(e);case p.DAY_OF_MONTH:return p.get_day_of_month(e);case p.WEEK_OF_YEAR:return p.get_week_of_year(e);case p.DAY_OF_WEEK:return p.get_day_of_week(e);case p.HOUR_OF_DAY:return p.get_hours(e);case p.MINUTE:return p.get_minutes(e);case p.DAY_OF_YEAR:return p.get_day_of_year(e);case p.SECOND:return p.get_seconds(e);default:return e.getTime()}},time_minutes:l,time_seconds:function(e){return 1e3*e},time_minutes_diff:function(e,t){return a(c(e,t)/60)},time_seconds_diff:c,utc_to_cal:function(e,t){return new Date(p.utc_to_cal_ts(e,t))},utc_to_cal_ts:function(e,t){return t+e.offset_utc(t)},get_cal:function(e,t,i,s,r,n,o){var a=new Date(Date.UTC(t,i,s,r||0,n||0,o||0)),l=e.offset_utc(+a);return new Date(a.valueOf()-l)},get_cal_from_unix_timestamp_ms:function(e,t){return new Date(t+e.offset_utc(t))},get_cal_utc:function(e,t,i){return new Date(Date.UTC(e,t,i))},cal_to_utc:function(e,t){var i=t.getTime();return i-e.offset_loc(i)},get_timezone:function(e){return new n(e)},shift_day:function(e,t){var i=e-1;return(i+=t)>6?i%=7:i<0&&(i=(7+i%7)%7),i+1}};e.exports=p},43891:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LINESTYLE_SOLID:()=>s,LINESTYLE_DOTTED:()=>r,LINESTYLE_DASHED:()=>n,LINESTYLE_LARGE_DASHED:()=>o,LINESTYLE_SPARSE_DOTTED:()=>a,LINESTYLE_SMALL_DASHED:()=>l});const s=0,r=1,n=2,o=3,a=4,l=5},29892:(e,t,i)=>{"use strict";var s=i(64514),r=s.greaterThan,n=s.lessThan,o=window.CanvasEx=i(43891);o.computeDashPattern=function(e){return[[e.lineWidth,2*e.lineWidth],[5*e.lineWidth,6*e.lineWidth],[6*e.lineWidth,6*e.lineWidth],[e.lineWidth,4*e.lineWidth],[2*e.lineWidth,e.lineWidth]][e.lineStyle-1]},o.drawLine=function(e,t,i,s,r){isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)&&(e.lineStyle!==o.LINESTYLE_SOLID?o.drawDashedLine(e,t,i,s,r):o.drawSolidLine(e,t,i,s,r))},o.drawArrow=function(e,t,i,s,r,n){if(isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)){var o=Math.round(n/2),a=t+o,l=s+o;e.beginPath(),e.moveTo(l,r),e.lineTo(a,i),e.moveTo(t,i+o),e.lineTo(a,i),e.lineTo(t+n,i+o),e.stroke()}},o.drawSolidLine=function(e,t,i,s,r){e.beginPath(),e.moveTo(t,i),e.lineTo(s,r),e.stroke()},o.setLineStyle=function(e,t){e.lineStyle=t;var i=[];t!==o.LINESTYLE_SOLID&&(i=o.computeDashPattern(e)),o.setLineDash(e,i)},o.setLineDash=function(e,t){"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t)},o.drawPoly=function(e,t,i){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var s=0;s0&&(c.thereYet=n,c.cap=Math.max),t-s>0&&(l.thereYet=n,l.cap=Math.max),e.moveTo(t,i);for(var h=t,d=i,u=0,p=!0;!l.thereYet(h,s)||!c.thereYet(d,o);){var _=Math.atan2(o-i,s-t),m=a[u];h=l.cap(s,h+Math.cos(_)*m),d=c.cap(o,d+Math.sin(_)*m),p?e.lineTo(h,d):e.moveTo(h,d),u=(u+1)%a.length,p=!p}},o.setFont=function(e,t){if(e.font!==t)try{e.font=t}catch(e){}},"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.setFont=function(e){o.setFont(this,e)},CanvasRenderingContext2D.prototype.lineStyle=o.LINESTYLE_SOLID),e.exports=o},54089:(e,t,i)=>{"use strict";i.d(t,{combineWithFilteredUpdate:()=>o,combine:()=>a});var s=i(52714),r=i.n(s);function n(e,t,...i){const s=(...t)=>e(...t.map(e=>e.value())),n=new(r())(s(...i)),o=()=>{t(...i.map(e=>e.value()))&&n.setValue(s(...i))},a=i.map(e=>e.spawn());for(const e of a)e.subscribe(o);return n.readonly().spawn(()=>a.forEach(e=>e.destroy()))}function o(e,t,...i){return n(e,t,...i)}function a(e,...t){return n(e,()=>!0,...t)}},39277:(e,t,i)=>{"use strict";i.r(t),i.d(t,{availableTimezones:()=>l,timezoneIsAvailable:()=>c,timezoneTitle:()=>h});var s=i(28353),r=i(23095);const n=[{id:"Etc/UTC",title:(0,s.t)("UTC")},{id:"exchange",title:(0,s.t)("Exchange")}],o=[{id:"Africa/Cairo",title:(0,s.t)("Cairo"),offset:0},{id:"Africa/Johannesburg",title:(0,s.t)("Johannesburg"),offset:0},{id:"Africa/Lagos",title:(0,s.t)("Lagos"),offset:0},{id:"America/Argentina/Buenos_Aires",title:(0,s.t)("Buenos Aires"),offset:0},{id:"America/Bogota",title:(0,s.t)("Bogota"),offset:0},{id:"America/Caracas",title:(0,s.t)("Caracas"),offset:0},{id:"America/Chicago",title:(0,s.t)("Chicago"),offset:0},{id:"America/El_Salvador",title:(0,s.t)("San Salvador"),offset:0},{id:"America/Juneau",title:(0,s.t)("Juneau"),offset:0},{id:"America/Lima",title:(0,s.t)("Lima"),offset:0},{id:"America/Los_Angeles",title:(0,s.t)("Los Angeles"),offset:0},{id:"America/Mexico_City",title:(0,s.t)("Mexico City"),offset:0},{id:"America/New_York",title:(0,s.t)("New York"),offset:0},{id:"America/Phoenix",title:(0,s.t)("Phoenix"),offset:0},{id:"America/Santiago",title:(0,s.t)("Santiago"),offset:0},{id:"America/Sao_Paulo",title:(0, -s.t)("Sao Paulo"),offset:0},{id:"America/Toronto",title:(0,s.t)("Toronto"),offset:0},{id:"America/Vancouver",title:(0,s.t)("Vancouver"),offset:0},{id:"US/Mountain",title:(0,s.t)("Denver"),offset:0},{id:"Asia/Almaty",title:(0,s.t)("Almaty"),offset:0},{id:"Asia/Ashkhabad",title:(0,s.t)("Ashgabat"),offset:0},{id:"Asia/Bahrain",title:(0,s.t)("Bahrain"),offset:0},{id:"Asia/Bangkok",title:(0,s.t)("Bangkok"),offset:0},{id:"Asia/Chongqing",title:(0,s.t)("Chongqing"),offset:0},{id:"Asia/Dubai",title:(0,s.t)("Dubai"),offset:0},{id:"Asia/Ho_Chi_Minh",title:(0,s.t)("Ho Chi Minh"),offset:0},{id:"Asia/Hong_Kong",title:(0,s.t)("Hong Kong"),offset:0},{id:"Asia/Jakarta",title:(0,s.t)("Jakarta"),offset:0},{id:"Asia/Jerusalem",title:(0,s.t)("Jerusalem"),offset:0},{id:"Asia/Karachi",title:(0,s.t)("Karachi"),offset:0},{id:"Asia/Kathmandu",title:(0,s.t)("Kathmandu"),offset:0},{id:"Asia/Kolkata",title:(0,s.t)("Kolkata"),offset:0},{id:"Asia/Kuwait",title:(0,s.t)("Kuwait"),offset:0},{id:"Asia/Manila",title:(0,s.t)("Manila"),offset:0},{id:"Asia/Muscat",title:(0,s.t)("Muscat"),offset:0},{id:"Asia/Qatar",title:(0,s.t)("Qatar"),offset:0},{id:"Asia/Riyadh",title:(0,s.t)("Riyadh"),offset:0},{id:"Asia/Seoul",title:(0,s.t)("Seoul"),offset:0},{id:"Asia/Shanghai",title:(0,s.t)("Shanghai"),offset:0},{id:"Asia/Singapore",title:(0,s.t)("Singapore"),offset:0},{id:"Asia/Taipei",title:(0,s.t)("Taipei"),offset:0},{id:"Asia/Tehran",title:(0,s.t)("Tehran"),offset:0},{id:"Asia/Tokyo",title:(0,s.t)("Tokyo"),offset:0},{id:"Atlantic/Reykjavik",title:(0,s.t)("Reykjavik"),offset:0},{id:"Australia/Adelaide",title:(0,s.t)("Adelaide"),offset:0},{id:"Australia/Brisbane",title:(0,s.t)("Brisbane"),offset:0},{id:"Australia/Perth",title:(0,s.t)("Perth"),offset:0},{id:"Australia/Sydney",title:(0,s.t)("Sydney"),offset:0},{id:"Europe/Amsterdam",title:(0,s.t)("Amsterdam"),offset:0},{id:"Europe/Athens",title:(0,s.t)("Athens"),offset:0},{id:"Europe/Belgrade",title:(0,s.t)("Belgrade"),offset:0},{id:"Europe/Berlin",title:(0,s.t)("Berlin"),offset:0},{id:"Europe/Bratislava",title:(0,s.t)("Bratislava"),offset:0},{id:"Europe/Brussels",title:(0,s.t)("Brussels"),offset:0},{id:"Europe/Bucharest",title:(0,s.t)("Bucharest"),offset:0},{id:"Europe/Budapest",title:(0,s.t)("Budapest"),offset:0},{id:"Europe/Copenhagen",title:(0,s.t)("Copenhagen"),offset:0},{id:"Europe/Dublin",title:(0,s.t)("Dublin"),offset:0},{id:"Europe/Helsinki",title:(0,s.t)("Helsinki"),offset:0},{id:"Europe/Istanbul",title:(0,s.t)("Istanbul"),offset:0},{id:"Europe/Lisbon",title:(0,s.t)("Lisbon"),offset:0},{id:"Europe/London",title:(0,s.t)("London"),offset:0},{id:"Europe/Luxembourg",title:(0,s.t)("Luxembourg"),offset:0},{id:"Europe/Madrid",title:(0,s.t)("Madrid"),offset:0},{id:"Europe/Malta",title:(0,s.t)("Malta"),offset:0},{id:"Europe/Moscow",title:(0,s.t)("Moscow"),offset:0},{id:"Europe/Oslo",title:(0,s.t)("Oslo"),offset:0},{id:"Europe/Paris",title:(0,s.t)("Paris"),offset:0},{id:"Europe/Riga",title:(0,s.t)("Riga"),offset:0},{id:"Europe/Rome",title:(0,s.t)("Rome"),offset:0},{id:"Europe/Stockholm",title:(0,s.t)("Stockholm"), -offset:0},{id:"Europe/Tallinn",title:(0,s.t)("Tallinn"),offset:0},{id:"Europe/Vilnius",title:(0,s.t)("Vilnius"),offset:0},{id:"Europe/Warsaw",title:(0,s.t)("Warsaw"),offset:0},{id:"Europe/Zurich",title:(0,s.t)("Zurich"),offset:0},{id:"Pacific/Auckland",title:(0,s.t)("New Zealand"),offset:0},{id:"Pacific/Chatham",title:(0,s.t)("Chatham Islands"),offset:0},{id:"Pacific/Fakaofo",title:(0,s.t)("Tokelau"),offset:0},{id:"Pacific/Honolulu",title:(0,s.t)("Honolulu"),offset:0},{id:"Pacific/Norfolk",title:(0,s.t)("Norfolk Island"),offset:0}],a=o.map(({id:e,title:t})=>{const{string:i,offset:s}=(0,r.parseTzOffset)(e);return{id:e,offset:s,title:`(${i}) ${t}`}}).sort((e,t)=>{const i=e.offset-t.offset;return 0!==i?i:e.title.localeCompare(t.title)}),l=n.concat(a);function c(e){for(let t=0;t{"use strict";e=i.nmd(e);const s=i(98125).getLogger("Common.Delegate");function r(){this._listeners=[]}function n(e){return!e.singleshot}r.prototype.subscribe=function(e,t,i){const s={object:e,member:t,singleshot:!!i,skip:!1};this._listeners.push(s)},r.prototype.unsubscribe=function(e,t){for(let i=0;i=0;--t){const i=this._listeners[t];i.object===e&&(i.skip=!0,this._listeners.splice(t,1))}},r.prototype.destroy=function(){delete this._listeners},r.prototype.fire=function(){const e=this._listeners;this._listeners=this._listeners.filter(n);const t=e.length;for(let i=0;i{"use strict";function s(e,t){return e<=t}function r(e,t){return e>=t}function n(e,t,i){return Math.min(Math.max(e,t),i)}function o(e){return e<0?-1:e>0?1:0}function a(e){if(e<0)return!1;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 c(e,t,i){return Math.abs(e-t)t?1:0}function u(e,t=d){if(e.length<1)throw Error("array is empty");let i=e[0];for(let s=0;s0&&(i=e[s]);return i}function _(e){const t=Math.ceil(e);return t%2!=0?t-1:t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}i.r(t),i.d(t,{lessThan:()=>s,greaterThan:()=>r,clamp:()=>n,sign:()=>o,isBaseDecimal:()=>a,greaterOrEqual:()=>l,equal:()=>c,log10:()=>h,defComparator:()=>d,min:()=>u,max:()=>p,ceiledEven:()=>_,toInt:()=>m})},23095:(e,t,i)=>{"use strict";i.d(t,{parseTzOffset:()=>r});var s=i(10480);function r(e,t=Date.now()){const i=(0, -s.get_timezone)(e).offset_utc(t);let r="";const n=i/1e3/60/60;n%1&&(r=":"+n%1*60);let o="";return o=n>0?"+"+(n-n%1)+r:0===n?"":String(n-n%1+r),{offset:i,string:"UTC"+o}}},82029:(e,t,i)=>{"use strict";var s=i(67337),r=[{d:"E-Mini S&P 500",t:"ES"},{d:"E-Mini Nasdaq 100",t:"NQ"},{d:"Gold",t:"GC"},{d:"Silver",t:"SI"},{d:"Crude Oil WTI",t:"CL"},{d:"Natural Gas",t:"NG"},{d:"Australian Dollar",t:"6A"},{d:"Australian Dollar (Floor)",t:"AD"},{d:"Euro FX",t:"6E"},{d:"Euro FX (Floor)",t:"EC"},{d:"Corn",t:"ZC"},{d:"Corn (Floor)",t:"C"},{d:"Eurodollar",t:"GE"},{d:"Eurodollar (Floor)",t:"ED"}],n=function(){var e=[{pattern:"(",ctor:o},{pattern:")",ctor:a},{pattern:"+",ctor:c},{pattern:"-",ctor:h},{pattern:"*",ctor:d},{pattern:"/",ctor:u},{pattern:"^",ctor:p},{pattern:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,ctor:f},{pattern:/\./,ctor:y},{pattern:s.enabled("charting_library_base")?/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&]*|'.+?'/:/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&]*|'.+?'/,ctor:g},{pattern:/'[^']*/,ctor:S},{pattern:/[\0-\x20\s]+/,ctor:n}];function t(e,t){var i=function(){};return i.prototype=t.prototype,e.prototype=new i,e}function i(){}function n(e){this.value=e}function o(){}function a(){}function l(){}function c(){}function h(){}function d(){}function u(){}function p(){}i.prototype.toString=function(){return this.value},t(n,i),t(o,i),o.prototype.value="(",t(a,i),a.prototype.value=")",t(l,i),t(c,l),c.prototype.value="+",c.prototype.precedence=0,c.prototype.commutative=!0,t(h,l),h.prototype.value="-",h.prototype.precedence=0,h.prototype.commutative=!1,t(d,l),d.prototype.value="*",d.prototype.precedence=1,d.prototype.commutative=!0,t(u,l),u.prototype.value="/",u.prototype.precedence=1,u.prototype.commutative=!1,t(p,l),p.prototype.value="^",p.prototype.precedence=2,p.prototype.commutative=!1;var _=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i,m=/[+\-/*]/;function g(e){this.value=e}function f(e){this.value=e}function v(e){this.value=e}function S(){g.apply(this,arguments)}function y(){f.apply(this,arguments)}t(g,i),g.prototype.toString=function(){if(this.hasOwnProperty("_ticker")){var e=m.test(this._ticker)?"'":"";return e+(this._exchange?this._exchange+":":"")+this._ticker+e}return this.value},g.prototype.parse=function(){var e=_.exec(this.value);e[1]&&(this._exchange=e[1]),this._ticker=e[2]},g.prototype.parseAsFutures=function(){this.hasOwnProperty("_ticker")||this.parse();for(var e=function(e){return r.some((function(t){return t.t===e}))},t=2;t>=1;--t){var i=this._ticker.slice(0,t);if(e(i)){this._root=i,this._contract=this._ticker.slice(t);break}}},g.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},g.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract}, -g.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},g.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},t(f,i),f.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},f.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},v.prototype.toString=function(){return this.value},t(S,g),S.prototype.isIncomplete=!0,S.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},t(y,f),y.prototype.isIncomplete=!0;var b=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function w(t,i){var s,r=[];e:for(;s=b.exec(t);){for(var o=e.length;o--;)if(s[o+1]){if(e[o].ctor){var a=new e[o].ctor(s[o+1]);a._offset=s.index,r.push(a)}continue e}var l=new v(s[0]);l._offset=s.index,r.push(l)}if(i&&i.recover){var c;for(o=r.length;o--;){var h=r[o];if(h instanceof f||h instanceof g){if(void 0!==c){var d=new g(""),u=r.splice(o,c-o+1,d);d.value=u.map((function(e){return e.value})).join("")}c=o}else h instanceof n||(c=void 0)}}return r}function C(e){for(var t=[],i=0;in.precedence&&(s[s.length-1].minPrecedence=n.precedence);else if(n instanceof o)s.push(t={minPrecedence:1/0,openBraceIndex:r});else if(n instanceof a){var c=e[(t=s.pop()).openBraceIndex-1],h=e[r+1];h instanceof l&&!(h.precedence<=t.minPrecedence)||!(!(c instanceof l)||c.precedencet.minPrecedence&&(s[s.length-1].minPrecedence=t.minPrecedence))}}for(r=i.length;r--;)e.splice(i[r],1);return e}function T(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=w(e)).filter((function(e){return e instanceof g})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function x(e){return 1!==(e=T(e)).length?null:e[0]}function I(e,t){return(e=T(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function M(e){return e.join("")}return{tokenize:w,validate:function(e){if(s.enabled("charting_library_base"))return{currentState:"var"};for(var t="init",i={warnings:[],errors:[],isEmpty:!0},r=[],c=0;c{"use strict";i.d(t,{TranslatedString:()=>s});class s{constructor(e,t){this._originalText=e,this._translatedText=t}originalText(){return this._originalText}translatedText(){return this._translatedText}format(e){const t={},i={};for(const r of Object.keys(e)){const n=e[r];n instanceof s?(t[r]=n.originalText(),i[r]=n.translatedText()):(t[r]=n.toString(), -i[r]=n.toString())}const r=this._originalText.format(t),n=this._translatedText.format(i);return new s(r,n)}}},84296:e=>{e.exports.tzData={"America/New_York":{time:[-2717668562,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1536530400,-1523224800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-76941e4,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], -offset:[-17762,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Los_Angeles":{ -time:[-2717668378,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-769420800,-765410400,-687995940,-662680800,-620866800,-608162400,-589417200,-576108e3,-557967600,-544658400,-526518e3,-513208800,-495068400,-481759200,-463618800,-450309600,-431564400,-418255200,-400114800,-386805600,-368665200,-355356e3,-337215600,-323906400,-305766e3,-292456800,-273711600,-261007200,-242262e3,-226533600,-210812400,-195084e3,-179362800,-163634400,-147913200,-13158e4,-116463600,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[-28378,-28800,-25200,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Chicago":{ -time:[-2717668236,-1633298400,-1615154400,-1601848800,-1583704800,-1563746400,-1551650400,-1538949600,-1520200800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1067810400,-1045432800,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-769413600,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], -offset:[-21036,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"America/Phoenix":{time:[-2717670498,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-820540740,-812678340,-796867140,-84405600,-68680800,1924966800],offset:[-26898,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"America/Toronto":{ -time:[-2366755200,-1632088800,-1615154400,-1601771400,-1583712e3,-1567375200,-1554681600,-1534716e3,-1524088800,-1503266400,-149238e4,-1471816800,-1460930400,-1440972e3,-1428876e3,-1409522400,-1397426400,-1378072800,-1365976800,-1346623200,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1188770400,-1176069600,-1157320800,-1144015200,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-880232400,-76941e4,-765410400,-747266400,-733960800,-715824e3,-702518400,-684374400,-671068800,-652924800,-634176e3,-620863200,-602719200,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], -offset:[-19052,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Vancouver":{ -time:[-2713910400,-1632088800,-1615154400,-880236e3,-769420800,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-386805600,-368661600,-355356e3,-337212e3,-323906400,-305762400,-292456800,-273708e3,-261007200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], -offset:[-29548,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Argentina/Buenos_Aires":{time:[-2372112e3,-1567468800,-1233446400,-1222992e3,-1205971200,-1194048e3,-117288e4,-1162512e3,-1141344e3,-1130976e3,-1109808e3,-109944e4,-1078272e3,-1067817600,-1046649600,-1036281600,-1015113600,-1004745600,-983577600,-973209600,-952041600,-941587200,-931046400,-900892800,-890352e3,-83376e4,-82728e4,-752284800,-733795200,-197337600,-190857600,-184204800,-164505600,-152668800,-132969600,-121132800,-101433600,-86832e3,-71107200,-54777600,-39052800,-23328e3,-7603200,128131200,136598400,596937600,605059200,624412800,636508800,656467200,667958400,687916800,699408e3,719366400,731462400,938908800,952041600,1198972800,1205625600,1224374400,1237075200,1924981200],offset:[-14028,-15408,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-10800,-10800,-7200,-10800,-7200,-10800]},"America/El_Salvador":{time:[-1546300800,546998400,559699200,578448e3,591148800,1924970400],offset:[-21408,-21600,-18e3,-21600,-18e3,-21600]},"America/Sao_Paulo":{ -time:[-1767225600,-1206968400,-1191369600,-1175385600,-1159833600,-633830400,-622076400,-602294400,-59184e4,-570758400,-560217600,-539136e3,-53136e4,-195436800,-184204800,-155174400,-150076800,-128908800,-121132800,-99964800,-89596800,-68428800,-57974400,499737600,511228800,530582400,540259200,562118400,571190400,592963200,602035200,624412800,634694400,656467200,666748800,687916800,697593600,719971200,728438400,750816e3,761702400,782265600,793152e3,813715200,823996800,84456e4,856051200,876096e3,888710400,908064e3,919555200,938908800,951609600,970963200,982454400,1003017600,1013904e3,1036281600,1045353600,1066521600,1076803200,1099353600,1108857600,1129420800,1140307200,1162684800,1172361600,119232e4,1203206400,1224374400,1234656e3,1255824e3,1266710400,1287273600,129816e4,1318723200,1330214400,1350777600,1361059200,1382227200,1392508800,1413676800,1424563200,1445126400,1456012800,1476576e3,1487462400,1508025600,1518912e3,1541289600,1550361600,1924981200],offset:[-11188,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800]},"America/Bogota":{time:[-2707689600,-1739059200,704851200,733881600,1924974e3],offset:[-17776,-17776,-18e3,-14400,-18e3]},"America/Caracas":{time:[-2524521600,-1826755200,-157766400,1197169200,1462069800,1924977600],offset:[-16064,-16060,-16200,-14400,-16200,-14400]},"Europe/Moscow":{time:[-2840140800,-1688256e3,-165681e4,-1641340800,-1627956e3,-1618700400,-1596416400,-1593804521,-1589846400,-1542416400,-1539478800,-1525305600,-1522713600,-1491177600,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1414288800,1925002800], -offset:[9017,9017,9079,12679,9079,16279,12679,16279,14400,10800,14400,18e3,14400,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800]},"Europe/Athens":{time:[-2344636800,-1686095940,-1182988800,-1178150400,-906854400,-904867200,-85725e4,-844473600,-828230400,-812419200,-552355200,-541641600,166492800,186195600,198036e3,213764400,228880800,244090800,260330400,275457600,291805200,307418400,323395200,338947200,354682800,370411200,386132400,401860800,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5692,5692,7200,10800,7200,10800,7200,3600,7200,3600,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Belgrade":{ -time:[-2713910400,-905821200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-777938400,-766616400,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4920,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Berlin":{time:[-2422051200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-938901600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-776556e3,-765925200,-761173200,-748476e3,-733266e3,-717627600,-714603600,-71037e4,-701902800,-684972e3,-670453200,-654127200,-639003600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[3208,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Bratislava":{time:[-3786825600,-2469398400,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-938901600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-765320400,-746575200,-733352400,-728514e3,-72126e4,-716421600,-701902800,-684972e3,-670453200,-654213600,-639003600,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[3464,3464,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Bucharest":{ -time:[-2469398400,-1213142400,-1187049600,-1175468400,-1159747200,-1144018800,-1127692800,-1111964400,-1096243200,-1080514800,-1064793600,-1049065200,-1033344e3,-1017615600,-1001894400,-986166e3,-970444800,-954716400,296611200,307497600,323823600,338950800,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670377600,686106e3,701827200,717555600,733276800,749005200,764726400,780451200,796176e3,811900800,828230400,846374400,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[6264,6264,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Budapest":{ -time:[-2498256e3,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1600466400,-1587243600,-1569708e3,-1555189200,-906771600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-778467600,-762649200,-749685600,-733269600,-717631200,-701902800,-686181600,-670453200,-654127200,-639003600,-492652800,-481161600,-461196e3,-449701200,-428536800,-418251600,-397087200,-386802e3,323827200,338950800,354672e3,370400400,386121600,40185e4,417571200,433299600,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4580,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/London":{ -time:[-3852662400,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-904514400,-896043600,-875484e3,-864594e3,-844034400,-832539600,-812584800,-798066e3,-781048800,-772059600,-764802e3,-748476e3,-733352400,-719445600,-717026400,-706741200,-699483600,-687996e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,-37238400,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800], -offset:[-75,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Luxembourg":{time:[-2069712e3,-1692493200,-1680476400,-1662339600,-165015e4,-1632002400,-1618693200,-1612656e3,-1604278800,-1585515600,-1574038800,-1552255200,-1539997200,-1520546400,-1507510800,-1490569200,-1473642e3,-1459116e3,-1444006800,-142767e4,-1411866e3,-1396220400,-1379293200,-1364770800,-1348448400,-1333321200,-1316394e3,-1301266800,-1284339600,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-935182800,-85725e4,-844552800,-828219600,-812498400,-797979600,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[1476,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Madrid":{time:[-2177453684,-1631926800,-1616886e3,-1601168400,-158535e4,-1442451600,-142767e4,-1379293200,-1364770800,-1348448400,-1333321200,-1316390400,-1301266800,-1284339600,-1269817200,-1026954e3,-1017615600,-1001898e3,-999478800,-986083200,-954111600,-940208400,-873075600,-862614e3,-842835600,-828313200,-811386e3,-796863600,-779936400,-765414e3,-748486800,-733964400,-652323600,-639010800,135126e3,150253200,166575600,181702800,196815600,212547600,22887e4,243997200,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[-884,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Paris":{time:[-2486592e3,-1855958400,-1689814800,-1680393600,-1665363600,-1648339200,-1635123600,-1616889600,-1604278800,-158544e4,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1470618e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1253494800,-1238371200,-1221440400,-1206921600,-1191200400,-1175472e3,-1160355600,-1143417600,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942012e3,-932432400,-85725e4,-844552800,-828219600,-812498400,-800064e3,-796258800,-781048800,-766616400,196822800,212547600,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[561,561,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Rome":{time:[-3252096e3,-2403562204,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,107913600,118198800,138758400,149648400,170812800,181098e3,202262400,212547600,233107200,243997200,265161600,276051600,296611200,307501200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[2996,2996,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Warsaw":{time:[-2840140800,-1717027200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1600466400,-1587157200,-1501718400,-931730400,-85725e4,-844552800,-828219600,-812498400,-796600800,-778723200,-762652800,-748483200,-733266e3,-715212e3,-701902800,-684972e3,-670453200,-654127200,-639003600,-397090800,-386805600,-371084400,-355356e3,-334191600,-323301600,-307580400,-291852e3,-271292400,-260402400,-239842800,-228952800,-208393200,-197503200,-176338800,-166053600,228877200,244000800,260326800,276055200,291776400,307504800,323830800,338954400,354675600,370404e3,386125200,401853600,417574800,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[5040,5040,3600,7200,3600,7200,3600,7200,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Istanbul":{time:[-2840140800,-1869868800,-1693699200,-168048e4,-1570406400,-1552176e3,-1538352e3,-1522540800,-1507507200,-1490572800,-1440201600,-1428019200,-1409702400,-1396483200,-931046400,-922665600,-917827200,-892425600,-875836800,-764726400,-744336e3,-733795200,-716428800,-701913600,-684979200,-670464e3,-654134400,-639014400,-62208e4,-60696e4,-590025600,-575510400,-235612800,-194832e3,-177724800,-165715200,107917200,121226400,133927200,152676e3,164685600,184125600,196221600,215575200,228880800,245815200,260330400,267926400,428464800,433908e3,468122400,482806800,496720800,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733280400,749008800,764125200,780458400,796179600,811908e3,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301281200,1319947200,1332644400,1351396800,1364698800,1382846400,1396234800,1414296e3,1427598e3,1446955200,1459047600,1473206400,1925002800],offset:[6952,7016,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800]},"Europe/Zurich":{ -time:[-3675196800,-2385244800,-904431600,-891122400,-872982e3,-859672800,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2048,1786,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Australia/Sydney":{time:[-2364076800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], -offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Australia/Brisbane":{time:[-2366755200,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,625629600,636519600,657079200,667969200,688528800,699418800,1925028e3],offset:[36728,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3]},"Australia/Adelaide":{time:[-2364076800,-2230156800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,637729200,657079200,667969200,688528800,701233200,719978400,731473200,752032800,764132400,783482400,796186800,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,972784800,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], -offset:[33260,32400,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800]},"Australia/ACT":{time:[-2364076800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Asia/Almaty":{ -time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1925013600],offset:[18468,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,21600,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600]},"Asia/Ashkhabad":{time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,192501e4],offset:[14012,14400,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,18e3,14400,18e3]},"Asia/Tokyo":{time:[-2587678861,-683769600,-672274800,-654739200,-640825200,-620265600,-609375600,-588816e3,-577926e3,1925024400],offset:[33539,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400]},"Asia/Taipei":{time:[-2335219200,-1017792e3,-766191600,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-639100800,-620784e3,-607564800,-589248e3,-576028800,-562896e3,-541728e3,-528681600,-510192e3,-497145600,-478656e3,-465609600,-449798400,-433987200,-418176e3,-402451200,-38664e4,-370915200,-355104e3,-339379200,-323568e3,-302486400,-291945600,-270950400,-260409600,134006400,149817600,165542400,181353600,299635200,307584e3,1925020800],offset:[29160,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Singapore":{time:[-2177452800,-2038176e3,-1167609600,-1073001600,-894153600,-879638400,-766972800,378691200,1925020800],offset:[24925,24925,25200,26400,26400,27e3,32400,27e3,28800]},"Asia/Karachi":{time:[-1988150400,-862617600,-764121600,-576115200,38793600,1018137600,1033862400,1212278400,1225497600,1239753600,1257033600,192501e4],offset:[16092,19800,23400,19800,18e3,18e3,21600,18e3,21600,18e3,21600,18e3]},"Asia/Manila":{time:[-3944678400,-2229292800,-1046649600,-1038700800,-873244800,-794188800,-496195200,-489283200,259372800,275184e3,1925020800],offset:[-57360,29040,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Shanghai":{ -time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Seoul":{time:[-1948752e3,-1830384e3,-767318400,-681177600,-672192e3,-654739200,-640828800,-623376e3,-609379200,-588816e3,-577929600,-498096e3,-462672e3,-451699200,-429753600,-418262400,-399513600,-387417600,-368064e3,-355968e3,-336614400,-324518400,-305164800,-293068800,-264902400,547610400,560919600,57906e4,592369200,1925024400],offset:[30472,30600,32400,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,32400,36e3,32400,36e3,32400]},"Asia/Tehran":{time:[-1704153600,-757382400,247190400,259286400,277776e3,283996800,290822400,306547200,322444800,338515200,673228800,685497600,701222400,71712e4,732758400,748656e3,764294400,780192e3,795830400,811728e3,827366400,843264e3,858988800,874886400,890524800,906422400,922060800,937958400,953596800,969494400,985219200,1001116800,1016755200,1032652800,1048291200,1064188800,1079827200,1095724800,1111449600,1127347200,1206057600,1221955200,123768e4,1253577600,1269216e3,1285113600,1300752e3,1316649600,1332288e3,1348185600,1363910400,1379808e3,1395446400,1411344e3,1426982400,144288e4,1458518400,1474416e3,1490140800,1506038400,1521676800,1537574400,1553212800,1569110400,1584748800,1600646400,1616371200,1632268800,1647907200,1663804800,1679443200,1695340800,1710979200,1726876800,1742601600,1758499200,1774137600,1790035200,1805673600,1821571200,1837209600,1853107200,1868745600,1884643200,1900368e3,1916265600,1931904e3],offset:[12344,12344,12600,14400,18e3,14400,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600]},"Asia/Dubai":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Kolkata":{time:[-3645216e3,-3155673600,-2019686400,-891561600,-872035200,-862617600,-764121600,1925011800],offset:[21208,21200,19270,19800,23400,19800,23400,19800]},"Asia/Hong_Kong":{ -time:[-2056663398,-900882e3,-891547200,-884217600,-761176800,-747878400,-728508600,-717021e3,-697059e3,-683757e3,-668028600,-654726600,-636579e3,-623277e3,-605129400,-591827400,-573679800,-559773e3,-541625400,-528323400,-510179400,-498083400,-478729800,-466633800,-446675400,-435184200,-415225800,-403129800,-383776200,-371680200,-352326600,-340230600,-320877e3,-308781e3,-288822600,-277331400,-257373e3,-245881800,-225923400,-213827400,-194473800,-182377800,-163024200,-148509e3,-132784200,-117059400,-101334600,-85609800,-69280200,-53555400,-37830600,-22105800,-6381e3,9343800,25068600,40793400,56518200,72243e3,88572600,104297400,120022200,126070200,151471800,167196600,182921400,198646200,214371e3,295414200,309324600,1925020800],offset:[27402,28800,32400,30600,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Bangkok":{time:[-2840140800,-1570060800,1925017200],offset:[24124,24124,25200]},"Asia/Chongqing":{time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Jerusalem":{ -time:[-2840140800,-1640995200,-933631200,-923086800,-919029600,-857336400,-844293600,-825800400,-812671200,-794178e3,-779839200,-762642e3,-748303200,-731106e3,-681948e3,-673214400,-667947600,-652312800,-636411600,-622072800,-608936400,-591832800,-572475600,-558568800,-542840400,-527724e3,-514414800,-490831200,-482965200,-459381600,-451515600,-428536800,-418251600,-400111200,-387406800,142387200,150854400,167184e3,178675200,334108800,337741200,452649600,46233e4,482284800,494380800,516758400,526435200,545443200,558489600,576633600,589334400,609897600,620784e3,638323200,651628800,669772800,683683200,701827200,715737600,733708800,747187200,765158400,778032e3,796608e3,810086400,826848e3,842832e3,858902400,874195200,890352e3,90504e4,923018400,936324e3,955677600,970794e3,986778e3,1001293200,1017363600,1033952400,1048813200,1065142800,1081299600,1095814800,1112320800,1128823200,1143770400,1159668e3,117522e4,1189908e3,1206669600,1223172e3,1238119200,1254016800,1269568800,1284256800,1301623200,1317520800,1333072800,1348365600,1364522400,1382839200,1395972e3,1414288800,1427421600,1445738400,1458871200,1477792800,1490320800,1509242400,1521770400,1540692e3,1553824800,1572141600,1585274400,1603591200,1616724e3,1635645600,1648173600,1667095200,1679623200,1698544800,1711677600,1729994400,1743127200,1761444e3,1774576800,1792893600,1806026400,1824948e3,1837476e3,1856397600,1868925600,1887847200,190098e4,1919296800,1932429600],offset:[8454,8440,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Asia/Kuwait":{time:[-719625600,1925002800],offset:[11212,10800]},"Asia/Muscat":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Qatar":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Riyadh":{time:[-719625600,1925002800],offset:[11212,10800]},"Pacific/Auckland":{ -time:[-3192393600,-1330293600,-1320012e3,-1300658400,-1287352800,-1269208800,-1255903200,-1237759200,-1224453600,-1206309600,-1192399200,-117486e4,-1160949600,-1143410400,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-757382400,152676e3,162356400,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,510116400,530676e3,541566e3,562125600,573620400,59418e4,60507e4,623815200,637729200,655264800,669178800,686714400,700628400,718164e3,732682800,749613600,764132400,781063200,795582e3,812512800,827031600,844567200,858481200,876016800,889930800,907466400,921985200,938916e3,953434800,970365600,984884400,100242e4,1016334e3,1033869600,1047783600,1065319200,1079838e3,1096768800,1111287600,1128218400,1142737200,1159668e3,1174186800,1191117600,1207450800,1222567200,1238900400,1254016800,127035e4,1285466400,1301799600,1316916e3,1333249200,1348970400,1365303600,138042e4,1396753200,1411869600,1428202800,1443319200,1459652400,1474768800,1491102e3,1506218400,1522551600,1538272800,1554606e3,1569722400,1586055600,1601172e3,1617505200,1632621600,1648954800,1664071200,1680404400,1695520800,1712458800,1727575200,1743908400,1759024800,1775358e3,1790474400,1806807600,1821924e3,1838257200,1853373600,1869706800,1885428e3,1901761200,1916877600,1933210800],offset:[41944,41400,45e3,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800]},"Pacific/Chatham":{ -time:[-3192393600,-757382400,152678700,162359100,183523500,195018300,215577900,226467900,247027500,257917500,278477100,289367100,309926700,320816700,341376300,352266300,372825900,384320700,404880300,415770300,436329900,447219900,467779500,478669500,499229100,510119100,530678700,541568700,562128300,573623100,594182700,605072700,623817900,637731900,655267500,669181500,686717100,700631100,718166700,732685500,749616300,764135100,781065900,795584700,812515500,827034300,844569900,858483900,876019500,889933500,907469100,921987900,938918700,953437500,970368300,984887100,1002422700,1016336700,1033872300,1047786300,1065321900,1079840700,1096771500,1111290300,1128221100,1142739900,1159670700,1174189500,1191120300,1207453500,1222569900,1238903100,1254019500,1270352700,1285469100,1301802300,1316918700,1333251900,1348973100,1365306300,1380422700,1396755900,1411872300,1428205500,1443321900,1459655100,1474771500,1491104700,1506221100,1522554300,1538275500,1554608700,1569725100,1586058300,1601174700,1617507900,1632624300,1648957500,1664073900,1680407100,1695523500,1712461500,1727577900,1743911100,1759027500,1775360700,1790477100,1806810300,1821926700,1838259900,1853376300,1869709500,1885430700,1901763900,1916880300,1933213500],offset:[44028,44100,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500]},"Pacific/Fakaofo":{time:[-2177452800,1325203200,1925038800],offset:[-41096,-39600,46800]},"Pacific/Honolulu":{time:[-2334139200,-1157320800,-1155470400,-880236e3,-769429800,-765410400,-712188e3,1924956e3],offset:[-37886,-37800,-34200,-37800,-34200,-34200,-37800,-36e3]},"America/Mexico_City":{ -time:[-1514763396,-1343091600,-1234828800,-1220317200,-1207180800,-1191369600,-975283200,-963187200,-917136e3,-907372800,-821923200,-810086400,-627523200,-613008e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,989114400,1001815200,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1175392800,1193536800,1207447200,1224986400,1238896800,1256436e3,1270346400,1288490400,1301796e3,131994e4,1333245600,1351389600,13653e5,1382839200,1396749600,1414288800,1428199200,1445738400,1459648800,1477792800,1491098400,1509242400,1522548e3,1540692e3,1554602400,1572141600,1586052e3,1603591200,1617501600,1635645600,1648951200,1667095200,1680400800,1698544800,1712455200,1729994400,1743904800,1761444e3,1775354400,1792893600,1806804e3,1824948e3,1838253600,1856397600,1869703200,1887847200,1901757600,1919296800,1933207200],offset:[-23796,-25200,-21600,-25200,-21600,-25200,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"Africa/Cairo":{time:[-2185401600,-929836800,-923097600,-906163200,-892857600,-875836800,-857779200,-844300800,-825811200,-812678400,-794188800,-779846400,-762652800,-399081600,-38664e4,-368323200,-355104e3,-336783600,-323643600,-305161200,-292021200,-273625200,-260485200,-242089200,-228949200,-210553200,-197413200,-178930800,-165790800,-147394800,-134254800,-115858800,-102632400,-84322800,-71096400,-52700400,-39474e3,-21164400,-7938e3,10371600,23598e3,41907600,55134e3,7353e4,86756400,105066e3,118292400,136602e3,149828400,168138e3,181364400,199760400,212986800,231296400,244522800,262832400,276058800,294368400,307594800,325990800,339217200,357526800,370753200,396406800,402289200,426819600,433825200,452221200,465447600,483757200,496983600,515293200,528519600,546829200,560055600,578451600,591678e3,610419600,623214e3,641523600,65475e4,673059600,686286e3,704682e3,717908400,736218e3,749444400,767754e3,780980400,799027200,812332800,830476800,843782400,861926400,875232e3,893376e3,906681600,925430400,938736e3,95688e4,970185600,988329600,1001635200,1019779200,1033084800,1051228800,1064534400,1083283200,1096588800,1114732800,1128038400,1146182400,1158883200,1177632e3,1189123200,1209081600,1219968e3,1240531200,1250812800,1272585600,1281484800,1284076800,1285891200,1400198400,1403827200,1406851200,1411689600,1924999200], -offset:[7509,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Africa/Johannesburg":{time:[-2458166400,-2109283200,-860968800,-845244e3,-829519200,-813794400,1924999200],offset:[6720,5400,7200,10800,7200,10800,7200]},"Asia/Kathmandu":{time:[-1577923200,504921600,1925012700],offset:[20476,19800,20700]},"US/Mountain":{time:[-2717668796,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1538949600,-1534111200,-880236e3,-769417200,-765410400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], -offset:[-25196,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"Europe/Helsinki":{time:[-2890252800,-1535932800,-875664e3,-859762800,354679200,370407600,386128800,401857200,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5989,5989,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Stockholm":{ -time:[-2871676800,-2208988800,-1692493200,-1680476400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4332,3614,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Copenhagen":{time:[-2524521600,-2398291200,-1692493200,-1680483600,-935107200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-769381200,-747007200,-736376400,-715212e3,-706741200,-683157600,-675291600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], -offset:[3020,3020,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Atlantic/Reykjavik":{time:[-1956614400,-1668214800,-1647212400,-1636678800,-161343e4,-1605142800,-1581894e3,-1539565200,-153135e4,-968029200,-952293600,-942012e3,-920239200,-909961200,-888789600,-877906800,-857944800,-846457200,-826495200,-815007600,-795045600,-783558e3,-762991200,-752108400,-731541600,-717634800,-700092e3,-686185200,-668642400,-654735600,-636588e3,-623286e3,-605743200,-591836400,-573688800,-559782e3,-542239200,-528332400,-510789600,-496882800,-47934e4,-465433200,-447890400,-433983600,-415836e3,-401929200,-384386400,-370479600,-352936800,-33903e4,-321487200,-307580400,-290037600,-276130800,-258588e3,-244681200,-226533600,-212626800,-195084e3,-181177200,-163634400,-149727600,-132184800,-118278e3,-100735200,-86828400,-68680800,-54774e3,1924992e3],offset:[-5280,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0]},"Europe/Tallinn":{time:[-2840140800,-1638316800,-1632002400,-1618693200,-1593820800,-1535932800,-927936e3,-892944e3,-85725e4,-844552800,-828219600,-812498400,-797644800,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909288e3,92259e4,941342400,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3], -offset:[5940,5940,3600,7200,3600,5940,7200,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Riga":{time:[-2840140800,-1632002400,-1618693200,-1601676e3,-1597266e3,-1377302400,-928022400,-899510400,-85725e4,-844552800,-828219600,-812498400,-79677e4,-795830400,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,843966e3,859690800,877838400,891140400,909288e3,92259e4,941342400,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5794,5794,9394,5794,9394,5794,7200,10800,7200,3600,7200,3600,7200,3600,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Vilnius":{ -time:[-2840140800,-1672531200,-1585094400,-1561248e3,-1553558400,-928195200,-900115200,-85725e4,-844552800,-828219600,-812498400,-802137600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891140400,909284400,922586400,941338800,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[6076,5040,5736,3600,7200,3600,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,7200,3600,7200,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"America/Lima":{time:[-2524521600,-1938556800,-1009843200,-1002067200,-986774400,-971049600,-955324800,-9396e5,504921600,512697600,536457600,544233600,631152e3,638928e3,757382400,765158400,1924974e3],offset:[-18492,-18516,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Santiago":{ -time:[-2524521600,-1892678400,-1688428800,-1619222400,-1593820800,-1336003200,-13176e5,-1304380800,-1286064e3,-1272844800,-1254528e3,-1241308800,-1222992e3,-1209772800,-1191369600,-1178150400,-870566400,-865296e3,-740534400,-736387200,-718070400,-713667600,-36633600,-23932800,-3369600,7516800,24451200,37756800,55900800,69206400,87955200,100656e3,118195200,132105600,150854400,163555200,182304e3,195609600,213753600,227059200,245203200,258508800,277257600,289958400,308707200,321408e3,340156800,353462400,371606400,384912e3,403056e3,416361600,434505600,447811200,46656e4,479260800,498009600,510710400,529459200,545184e3,560908800,574214400,592358400,605664e3,624412800,637113600,653443200,668563200,687312e3,700617600,718761600,732067200,750211200,763516800,781660800,794966400,813715200,826416e3,845164800,85968e4,876614400,88992e4,906854400,923184e3,939513600,952819200,971568e3,984268800,1003017600,1015718400,1034467200,1047168e3,1065916800,1079222400,1097366400,1110672e3,1128816e3,1142121600,1160870400,1173571200,119232e4,1206835200,1223769600,1237075200,1255219200,1270339200,1286668800,1304812800,1313884800,1335657600,1346544e3,1367107200,1378598400,1398556800,1410048e3,1463270400,1471132800,149472e4,1502582400,1526169600,1534032e3,1554595200,1567900800,1586044800,1599350400,1617494400,16308e5,1648944e3,1662249600,1680393600,1693699200,1712448e3,1725753600,1743897600,1757203200,1775347200,1788652800,1806796800,1820102400,1838246400,1851552e3,1870300800,1883001600,1901750400,1915056e3,19332e5],offset:[-16966,-16966,-18e3,-16966,-14400,-16966,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-10800,-14400,-18e3,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800]},"Asia/Bahrain":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Jakarta":{time:[-3231273600,-1451693568,-117288e4,-876614400,-766022400,-683856e3,-620784e3,-189388800,1925017200],offset:[25632,25632,26400,27e3,32400,27e3,28800,27e3,25200]},"Africa/Lagos":{time:[-2035584e3,-1940889600,-1767225600,-1588464e3,1924995600],offset:[815,0,815,1800,3600]},"Pacific/Norfolk":{ -time:[-2177452800,-599616e3,152071200,162961200,1443924e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[40312,40320,41400,45e3,41400,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200]},"America/Juneau":{time:[-3225169588,-2188987200,-880236e3,-769420800,-765410400,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,438998400,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[54139,-32261,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-28800,-28800,-25200,-28800,-25200,-28800,-25200,-32400,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400]},"Asia/Ho_Chi_Minh":{time:[-2004048e3,-1851552e3,-852080400,-782614800,-767836800,-718070400,-457747200,-315622800,171849600,1925017200],offset:[25600,25590,25200,28800,32400,25200,28800,25200,28800,25200]},"Australia/Perth":{ -time:[-2337897600,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,152071200,162961200,436327200,447217200,690343200,699418800,1165111200,1174791600,1193536800,1206846e3,1224986400,1238295600,1925020800],offset:[27804,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Europe/Malta":{time:[-2403475200,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812584800,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,102384e3,118112400,135734400,148525200,167191200,180496800,198640800,211946400,230090400,243396e3,26154e4,274845600,292989600,306295200,323316e3,338349600,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[3484,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Amsterdam":{ -time:[-4260211200,-1693699200,-168048e4,-1663452e3,-1650142800,-1633212e3,-1617483600,-1601157600,-1586034e3,-1569708e3,-1554584400,-1538258400,-1523134800,-15075e5,-1490562e3,-1470175200,-1459112400,-1443996e3,-1427662800,-1406671200,-1396213200,-1376949600,-1364763600,-1345413600,-1333314e3,-1313791200,-1301259600,-1282255200,-126981e4,-1250719200,-1238360400,-1219183200,-1206910800,-1186956e3,-1175461200,-1156024800,-1143406800,-1124488800,-1111957200,-1092952800,-1080507600,-1061330400,-1049058e3,-1029189600,-1025740800,-1017608400,-998258400,-986158800,-966722400,-954104400,-935020800,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-766616400,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1172,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,4800,1200,4800,1200,4800,1200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Brussels":{ -time:[-2840140800,-2450994150,-1740355200,-1693699200,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1613822400,-1604278800,-1585526400,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1473642e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-934664400,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1050,1050,0,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Lisbon":{ -time:[-1830386205,-1689555600,-1677798e3,-1667437200,-1647734400,-1635814800,-1616198400,-1604365200,-1584662400,-1572742800,-155304e4,-1541206800,-1521504e3,-1442451600,-1426809600,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1221440400,-1206921600,-1191200400,-1175472e3,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942022800,-922665600,-906944400,-891129600,-877309200,-873680400,-864e6,-857952e3,-845859600,-842835600,-831340800,-825897600,-81441e4,-810781200,-799891200,-794448e3,-782960400,-779331600,-768441600,-762998400,-749091600,-733363200,-717631200,-701902800,-686181600,-670453200,-654732e3,-639003600,-623282400,-607554e3,-591832800,-575499600,-559778400,-54405e4,-528328800,-512600400,-496879200,-481150800,-465429600,-449701200,-43398e4,-417646800,-401925600,-386197200,-370476e3,-354747600,-339026400,-323298e3,-307576800,-291848400,-276127200,-260398800,-244677600,-228344400,-212623200,-196894800,-181173600,-165445200,-149724e3,-133995600,-118274400,212547600,228268800,243997200,260323200,276051600,291772800,307504800,323222400,338954400,354675600,370404e3,386125200,401853600,417578400,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-2205,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,7200,3600,7200,3600,7200,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Dublin":{ -time:[-2821651200,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-733352400,-719445600,-699483600,-684972e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-1500,-1521,2079,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Oslo":{ -time:[-2366755200,-1691881200,-1680566400,-927507600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-765320400,-340840800,-324507600,-308786400,-293058e3,-277336800,-261608400,-245887200,-230158800,-214437600,-198709200,-182988e3,-166654800,-147909600,-135205200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2580,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]}}},15625:(e,t,i)=>{"use strict";i.d(t,{Version:()=>r});var s=i(88537);class r{constructor(e,t){this._major=e,this._minor=t}major(){return this._major}minor(){return this._minor}isZero(){return 0===this._major&&0===this._minor}toString(){return this._major+"."+this._minor}compareTo(e){return this._majore._major?1:this._minore._minor?1:0}isLess(e){return this.compareTo(e)<0}isLessOrEqual(e){return this.compareTo(e)<=0}isEqual(e){return 0===this.compareTo(e)}isGreater(e){return this.compareTo(e)>0}isGreaterOrEqual(e){return this.compareTo(e)>=0}static parse(e){if(e instanceof r)return new r(e.major(),e.minor());if("number"==typeof e)return(0,s.assert)(Math.floor(e)===e,"Version should not be a float number"),new r(e,0);if("string"==typeof e){const t=e.split(".");if(1===t.length){const i=parseInt(t[0],10);return(0,s.assert)(!isNaN(i),"Bad version string: "+e),new r(i,0)}if(2===t.length){const i=parseInt(t[0],10);(0,s.assert)(!isNaN(i),"Bad version string: "+e);const n=parseInt(t[1],10);return(0, -s.assert)(!isNaN(n),"Bad version string: "+e),new r(i,n)}throw new Error("Bad version string (one dot expected): "+e)}throw new Error("Bad version: "+e)}}r.ZERO=new r(0,0)},40144:(e,t,i)=>{"use strict";i.d(t,{WatchedObject:()=>a});var s=i(52714),r=i.n(s),n=i(80643);function o(e,t){return(0,n.deepEquals)(e,t)[0]}class a extends(r()){constructor(e,t=o){super(e),this._comparator=t}setValue(e,t){!1===this._comparator(this.value(),e)&&super.setValue(e,t)}}},52714:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(98125).getLogger("Common.WatchedValue");function r(){}function n(e){if(!(this instanceof n))return new n(e);arguments.length>0&&(this._value=e),this._listeners=[]}n.prototype.value=function(){return this._owner?this._owner._value:this._value},n.prototype.setValue=function(e,t){var i=this._owner?this._owner:this;if("function"==typeof i.hook&&(e=i.hook(e)),i.writeLock)return i._value;var r=i._value===e||Number.isNaN(i._value)&&Number.isNaN(e);if(!t&&r&&i.hasOwnProperty("_value"))return e;i._value=e;for(var n=i._listeners.slice(),o=0,a=0;a{"use strict";i.d(t,{TOOLBAR_WIDTH_EXPANDED:()=>s,TOOLBAR_WIDTH_COLLAPSED:()=>r});const s=52,r=5},84746:(e,t,i)=>{"use strict";i.d(t,{DrawingToolbarBootloader:()=>a});var s=i(85593),r=i(45216),n=i(38881),o=i(5683);class a extends n.ChunkLoader{constructor(e){super(),this._opts=e,s.isDrawingToolbarVisible.value()&&(this._opts.resizerBridge.negotiateWidth(r.TOOLBAR_WIDTH_EXPANDED),this._opts.resizerBridge.container.value().appendChild((0,o.createStubElem)()))}_startLoading(){return Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(1112),i.e(4763),i.e(323),i.e(5175),i.e(7757),i.e(9837),i.e(1075),i.e(1890),i.e(1784),i.e(2878)]).then(i.bind(i,26862)).then(e=>new e.DrawingToolbarRenderer(this._opts.resizerBridge.container.value(),{...this._opts}))}}},85593:(e,t,i)=>{"use strict";i.d(t,{isDrawingToolbarVisible:()=>c});var s=i(56840),r=i(67337),n=i(52714),o=i.n(n);const a=!r.enabled("hide_left_toolbar_by_default"),l=s.getBool("ChartDrawingToolbarWidget.visible",a),c=new(o())(l)},9753:(e,t,i)=>{"use strict";i.d(t,{HeaderToolbarBootloader:()=>o});var s=i(18387),r=i(5683),n=i(38881);class o extends n.ChunkLoader{constructor(e,t){super(),this._toolsBootloader=e,this._headerProps=t,this._headerProps.resizerBridge.negotiateHeight(s.HEADER_TOOLBAR_HEIGHT_EXPANDED),this._headerProps.resizerBridge.container.value().appendChild((0,r.createStubElem)())}_startLoading(){return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then(([e,t])=>new t(this._headerProps.resizerBridge.container.value(),{...this._headerProps,tools:e}))}_loadHeaderToolbar(){return Promise.all([i.e(5514),i.e(8268),i.e(1320),i.e(9837),i.e(3005)]).then(i.bind(i,53335)).then(e=>e.HeaderToolbarRenderer)}}},18387:(e,t,i)=>{"use strict";i.d(t,{HEADER_TOOLBAR_HEIGHT_EXPANDED:()=>r,HEADER_TOOLBAR_HEIGHT_COLLAPSED:()=>n});var s=i(98033);const r=parseInt(s["css-value-header-toolbar-height"]),n=3},84120:(e,t,i)=>{"use strict";i.d(t,{RestrictedToolsetBootloader:()=>r});var s=i(38881);class r extends s.ChunkLoader{_startLoading(){return Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(3921),i.e(1112),i.e(6909),i.e(5998),i.e(4763),i.e(7419),i.e(9042),i.e(6560),i.e(4474),i.e(1594),i.e(5175),i.e(3944),i.e(3645),i.e(9837),i.e(1075),i.e(9505),i.e(5516)]).then(i.bind(i,79389)).then(e=>e.getRestrictedToolSet())}}},22668:(e,t,i)=>{"use strict";i.d(t,{FavoriteStudyTemplateService:()=>r});var s=i(9127);class r extends s.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_STUDY_TEMPLATES_CHANGED","StudyTemplates.quicks",[])}remove(e){this.set(this.get().filter(t=>t!==e))}}},52741:(e,t,i)=>{"use strict";i.d(t,{DropdownApi:()=>s});class s{constructor(e,t){this._headerToolbar=e,this._dropdownId=t}applyOptions(e){this._headerToolbar.updateDropdown(this._dropdownId,e)}remove(){this._headerToolbar.removeDropdown(this._dropdownId)}}},62060:(e,t,i)=>{"use strict";var s -;i.d(t,{ACTION_ID:()=>s}),function(e){e.TVActionId="TVActionId",e.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",e.ChartChangeTimeZone="Chart.ChangeTimeZone",e.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",e.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",e.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",e.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",e.ChartDialogsShowGeneralSettingsScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",e.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",e.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",e.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",e.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",e.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",e.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",e.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",e.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",e.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",e.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",e.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",e.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",e.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",e.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",e.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",e.ChartMoveChartInLayout="Chart.MoveChartInLayout",e.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",e.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",e.ChartObjectTreeShow="Chart.ObjectTree.Show",e.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",e.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",e.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",e.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",e.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",e.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",e.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",e.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",e.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft", -e.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",e.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",e.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",e.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",e.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",e.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",e.ChartRedo="Chart.Redo",e.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",e.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",e.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",e.ChartScalesReset="Chart.Scales.Reset",e.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",e.ChartSelectedObjectHide="Chart.SelectedObject.Hide",e.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",e.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",e.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",e.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",e.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",e.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",e.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",e.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",e.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",e.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",e.ChartTimeScaleReset="Chart.TimeScale.Reset",e.ChartUndo="Chart.Undo"}(s||(s={}))},28296:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Action:()=>l,ActionAsync:()=>c,Separator:()=>h,Loader:()=>d});var s=i(88537),r=i(2872),n=i.n(r),o=i(68335),a=i(9423);class l{constructor(e,t=a.guid()){this.type="action",this._destroyed=!1,this._binding=null,(0,s.assert)(void 0!==e.actionId,"actionId must be defined"),this.id=t,this._onUpdate=new(n()),this._options=e,this.update(e)}execute(){this._options.checkable&&this.update({checked:!this._options.checked}),this._options.onExecute&&this._options.onExecute(this)}getLabel(){return this._options.label||""}getSubItems(){return this._options.subItems||[]}isDisabled(){return!0===this._options.disabled}isActive(){return!0===this._options.active}isCheckable(){return!0===this._options.checkable}isChecked(){return!0===this._options.checked}isLoading(){return!0===this._options.loading}getSize(){var e;return null!==(e=this._options.size)&&void 0!==e?e:"normal"}getPayload(){return this._options.payload}update(e){this._destroyed||(this._unbindShortcut(),e.hotkeyHash&&(this._options.shortcutHint=(0,o.humanReadableHash)(e.hotkeyHash)),this._options=Object.assign(this._options,e),this._bindShortcut(),this._onUpdate.fire(this))}onUpdate(){return this._onUpdate}getState(){return{actionId:this._options.actionId,label:this.getLabel(),disabled:this.isDisabled(), -active:this.isActive(),subItems:this.getSubItems(),checkable:this.isCheckable(),checked:this.isChecked(),loading:this.isLoading(),size:this.getSize(),doNotCloseOnClick:this._options.doNotCloseOnClick||!1,shortcutHint:this._options.shortcutHint,hint:this._options.hint,icon:this._options.icon,iconChecked:this._options.iconChecked,toolbox:this._options.toolbox,showToolboxOnHover:this._options.showToolboxOnHover||!1,statName:this._options.statName,name:this._options.name,invisibleHotkey:this._options.invisibleHotkey,noInteractive:this._options.noInteractive}}getBinding(){return this._binding}setBinding(e){this._binding=e}destroy(){var e,t;this._destroyed=!0,this._onUpdate.destroy(),null!==this._binding&&this._binding.destroy(),this._unbindShortcut(),null===(t=(e=this._options).onDestroy)||void 0===t||t.call(e)}options(){return this._options}_bindShortcut(){if(!this._options.hotkeyGroup||!this._options.hotkeyHash)return;const e="string"==typeof this._options.label?this._options.label:this._options.name;this._hotkeyAction=this._options.hotkeyGroup.add({hotkey:this._options.hotkeyHash,desc:e,handler:()=>this.execute(),isDisabled:()=>this.isDisabled()})}_unbindShortcut(){this._hotkeyAction&&(this._hotkeyAction.destroy(),delete this._hotkeyAction)}}class c extends l{constructor(e,t,i){super({actionId:e},i),this._loader=t,this._loaded=!1}loadOptions(){return this._loadingPromise||(this._loadingPromise=this._loader().then(e=>{this._loaded=!0,this.update(e)})),this._loadingPromise}getState(){return this.loadOptions(),super.getState()}isLoading(){return!this.isLoaded()}isLoaded(){return this._loaded}}class h{constructor(e){this.type="separator",this.id=a.guid(),this._hint=e}getHint(){return this._hint}}class d extends l{constructor(e){super({actionId:e})}isLoading(){return!0}getSize(){return"big"}}},61671:(e,t,i)=>{"use strict";i.d(t,{defaultContextMenuOptions:()=>Ie,createPasteAction:()=>Me,createActionCopyPrice:()=>Le,createMTPredictorActions:()=>Ae,createLinesAction:()=>Ee,createSyncDrawingActions:()=>ke,ActionsProvider:()=>De});var s=i(88537),r=i(98125),n=(i(60521),i(80643)),o=i(67337),a=i(28296),l=i(62138),c=i(41847),h=i(81851),d=(i(73591),i(13672)),u=i(56756),p=i(68335),_=(i(25812),i(9771)),m=i(55153),g=(i(37667),i(88679)),f=i(94578),v=i(14291),S=i(79680),y=i(82724),b=i(28353),w=i(24980);i(85733);(0,r.getLogger)("Chart.ActionsProvider"),new w.TranslatedString("show alert label lines",(0,b.t)("show alert label lines")),new w.TranslatedString("hide alert label lines",(0,b.t)("hide alert label lines"));const C=new w.TranslatedString("change visibility",(0,b.t)("change visibility")),P=new w.TranslatedString("pin to scale {label}",(0,b.t)("pin to scale {label}")),T=new w.TranslatedString("pin to right scale",(0,b.t)("pin to right scale")),x=new w.TranslatedString("pin to left scale",(0,b.t)("pin to left scale")),I=(new w.TranslatedString("change earnings visibility",(0,b.t)("change earnings visibility")),new w.TranslatedString("change dividends visibility",(0,b.t)("change dividends visibility")), -new w.TranslatedString("change splits visibility",(0,b.t)("change splits visibility")),new w.TranslatedString("change continuous contract switch visibility",(0,b.t)("change continuous contract switch visibility")),new w.TranslatedString("show all ideas",(0,b.t)("show all ideas"))),M=new w.TranslatedString("show ideas of followed users",(0,b.t)("show ideas of followed users")),L=new w.TranslatedString("show my ideas only",(0,b.t)("show my ideas only")),A=(new w.TranslatedString("change events visibility on chart",(0,b.t)("change events visibility on chart")),new w.TranslatedString("add this symbol to entire layout",(0,b.t)("add this symbol to entire layout"))),E=new w.TranslatedString("add this indicator to entire layout",(0,b.t)("add this indicator to entire layout")),k=(new w.TranslatedString("add this strategy to entire layout",(0,b.t)("add this strategy to entire layout")),new w.TranslatedString("add this financial metric to entire layout",(0,b.t)("add this financial metric to entire layout")),new w.TranslatedString("apply drawing template",(0,b.t)("apply drawing template")),new w.TranslatedString("lock objects",(0,b.t)("lock objects"))),D=new w.TranslatedString("unlock objects",(0,b.t)("unlock objects")),V=((0,b.t)("Add alert"),(0,b.t)("Add alert on {series}"),(0,b.t)("Add alert on {drawing}"),(0,y.appendEllipsis)((0,b.t)("Edit {title} alert"))),B=((0,b.t)("Extend alert lines"),(0,b.t)("Trade"),(0,y.appendEllipsis)((0,b.t)("Create limit order")),(0,b.t)("Show")),N=(0,b.t)("Hide"),R=((0,b.t)("MTPredictor"),(0,b.t)("Apply Manual Risk/Reward"),(0,b.t)("Apply Manual Decision Point"),(0,b.t)("Analyze Trade Setup"),(0,b.t)("Apply Elliott Wave"),(0,b.t)("Apply Elliott Wave Intermediate"),(0,b.t)("Apply Elliott Wave Major"),(0,b.t)("Apply Elliott Wave Minor"),(0,b.t)("Apply WPT Up Wave"),(0,b.t)("Up Wave 1 or A"),(0,b.t)("Up Wave 2 or B"),(0,b.t)("Up Wave C"),(0,b.t)("Up Wave 3"),(0,b.t)("Up Wave 4"),(0,b.t)("Up Wave 5"),(0,b.t)("Apply WPT Down Wave"),(0,b.t)("Down Wave 1 or A"),(0,b.t)("Down Wave 2 or B"),(0,b.t)("Down Wave C"),(0,b.t)("Down Wave 3"),(0,b.t)("Down Wave 4"),(0,b.t)("Down Wave 5"),(0,b.t)("Pinned to scale {label} (hidden)")),O=(0,b.t)("Pinned to right scale (hidden)"),F=(0,b.t)("Pin to scale {label} (hidden)"),W=(0,b.t)("Pin to right scale (hidden)"),H=(0,b.t)("Pinned to scale {label}"),z=(0,b.t)("Pinned to right scale"),U=(0,b.t)("Pin to scale {label}"),j=(0,b.t)("Pin to right scale"),G=(0,b.t)("Pinned to left scale (hidden)"),q=(0,b.t)("Pin to left scale (hidden)"),Y=(0,b.t)("Pinned to left scale"),K=(0,b.t)("Pin to left scale"),$=(0,b.t)("Pin to new left scale"),X=(0,b.t)("Pin to new right scale"),Z=(0,b.t)("Pin to scale (now {label})"),J=(0,b.t)("Pin to scale (now no scale)"),Q=(0,b.t)("Pin to scale (now left)"),ee=(0,b.t)("Pin to scale (now right)"),te=(0,b.t)("No scale (fullscreen)"),ie=(0,b.t)("Move to"),se=(0,b.t)("Existing pane above"),re=(0,b.t)("New pane above"),ne=(0,b.t)("Existing pane below"),oe=(0,b.t)("New pane below"),ae=(0,b.t)("Bring to front"),le=(0,b.t)("Send to back"),ce=(0, -b.t)("Bring forward"),he=(0,b.t)("Send backward"),de=(0,b.t)("Visual order"),ue=(0,b.t)("Lines"),pe=((0,y.appendEllipsis)((0,b.t)("Add indicator/strategy on {studyTitle}")),(0,y.appendEllipsis)((0,b.t)("Add financial metric for {instrumentName}")),(0,y.appendEllipsis)((0,b.t)("Settings"))),_e=((0,b.t)("Apply default"),(0,y.appendEllipsis)((0,b.t)("Save as")),(0,b.t)("Copy")),me=(0,b.t)("Clone"),ge=((0,b.t)("Template"),(0,b.t)("Go to {lineToolName}")),fe=(0,b.t)("Unlock"),ve=(0,b.t)("Lock"),Se=((0,b.t)("Show earnings"),(0,b.t)("Show dividends"),(0,b.t)("Show splits"),(0,b.t)("Show continuous contract switch"),(0,b.t)("Show all ideas")),ye=(0,b.t)("Show ideas of followed users"),be=(0,b.t)("Show my ideas only"),we=((0,y.appendEllipsis)((0,b.t)("Settings")),(0,b.t)("Hide events on chart"),(0,b.t)("Add this symbol to entire layout")),Ce=(0,b.t)("Add this indicator to entire layout"),Pe=((0,b.t)("Add this strategy to entire layout"),(0,b.t)("Add this financial metric to entire layout"),(0,b.t)("No sync"),(0,b.t)("Sync in layout"),(0,b.t)("Sync globally"),(0,y.appendEllipsis)((0,b.t)("Symbol info"))),Te=(0,b.t)("Paste"),xe=(0,b.t)("Copy price"),Ie={general:!0,mainSeries:!0,mainSeriesTrade:!1,esdStudies:!0,studies:!0,fundamentals:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!0,chartEvents:!0,objectTree:!0,gotoLineTool:!1};function Me(e,t){return!t.isEmpty()&&o.enabled("datasource_copypaste")?new a.Action({actionId:"Chart.Clipboard.PasteSource",label:Te.trim(),shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+86),statName:"Paste",onExecute:()=>e.chartWidgetCollection().clipboard.uiRequestPaste(t)}):null}function Le(e,t){var i,s,r;const n=e.defaultPriceScale(),o=void 0!==t?n.coordinateToPrice(t,null!==(s=null===(i=e.mainDataSource())||void 0===i?void 0:i.firstValue())&&void 0!==s?s:0):e.model().mainSeries().lastValueData(4,!0,!0).price,l=null===(r=e.mainDataSource())||void 0===r?void 0:r.formatter();if(void 0===o||!l)return null;const c=l.format(o);return new a.Action({actionId:"Chart.Clipboard.CopyPrice",label:`${xe} (${c})`,statName:"CopyPrice",onExecute:()=>window.navigator.clipboard.writeText(c)})}function Ae(e,t,i,s){return null}function Ee(e){const t=e.actions(),i=[t.showPriceLine];return i.push(t.showHighLowPriceLines),o.enabled("show_average_close_price_line_and_label")&&i.push(t.showAverageClosePriceLine),new a.Action({actionId:"Chart.Lines",label:ue,statName:"Lines",subItems:i})}function ke(e,t){return[]}class De{constructor(e,t){this._chartWidget=e,this._options=(0,n.merge)((0,n.clone)(Ie),t||{})}async contextMenuActionsForSources(e,t){const i=e[0],s=this._options;if(i===this._chartWidget.model().mainSeries()&&s.mainSeries)return this._contextMenuActionsForSeries(i,t);if((0,h.isStudy)(i)&&s.studies)return this._contextMenuActionsForStudy(i);if((0,v.isLineTool)(i)&&s.lineTools){const t=e.filter(v.isLineTool);return this._contextMenuActionsForLineTool(t)}return[]}_isReadOnly(){return this._chartWidget.readOnly()}_createActionHide(e){return new a.Action({actionId:"Chart.SelectedObject.Hide", -label:N,icon:i(48111),statName:"HideSelectedObject",onExecute:this._chartWidget.hideDataSources.bind(this._chartWidget,[e])})}_createActionShow(e){const t=new a.Action({actionId:"Chart.SelectedObject.Show",checkable:!0,label:B,icon:i(93418),statName:"ToggleShow"}),s=new l.ActionBinder(t,e.properties().visible,this._chartWidget.model(),C);return t.setBinding(s),s.setValue(e.properties().visible.value()),t}_createActionScale(e){const t=(0,s.ensureNotNull)(e.priceScale()),r=this._chartWidget.model().model(),n=(0,s.ensureNotNull)(r.paneForSource(e)),o=n.priceScalePosition(t),l=("left"===o?n.leftPriceScales():n.rightPriceScales()).indexOf(t),h=r.priceScaleSlotsCount().totallySlots<2?"dontneedname":"needname",d="overlay"===o?"":(0,c.getPriceAxisNameInfo)(o,l).label,u=Z.format({label:d}),p={"left-needname":u,"left-dontneedname":Q,"right-needname":u,"right-dontneedname":ee,"overlay-needname":J,"overlay-dontneedname":J}[o+"-"+h];return new a.Action({actionId:"Chart.Source.ChangePriceScale",label:p,icon:i(74645),subItems:this._createActionScaleItems(e)})}_createActionScaleDetach(e,t,i,r){const n=this._chartWidget.model().model(),o=(0,s.ensureNotNull)(n.paneForSource(e));if(!o.canCreateNewPriceScale())return null;const l=(0,s.ensureNotNull)(e.priceScale()),h=l.canDetachSource(e),d=o.priceScalePosition(l),u=h||d!==t;if(!u)return null;const p=n.priceScaleSlotsCount(),_={left:{labelled:U,sided:$},right:{labelled:U,sided:X}},m="left"===t?o.leftPriceScales().length:o.rightPriceScales().length,g=p[t]>m?"labelled":"sided",f=(0,c.getPriceAxisNameInfo)(t,m).label,v=_[t][g].format({label:f});return new a.Action({actionId:"Chart.Source.ChangePriceScale",checkable:!1,disabled:!u,label:v,statName:r,payload:e,onExecute:i})}_onDetachLeft(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToLeft(t,r)}_onDetachRight(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToRight(t,r)}_createActionScaleDetachLeft(e){return this._createActionScaleDetach(e,"left",this._onDetachLeft.bind(this),"ToggleScaleLeft")}_createActionScaleDetachRight(e){return this._createActionScaleDetach(e,"right",this._onDetachRight.bind(this),"ToggleScaleRight")}_onMoveToScale(e){const t=e.getPayload();if(t.datasource.priceScale()===t.priceScale)return;const i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t.datasource));this._chartWidget.model().moveToScale(t.datasource,r,t.priceScale,t.undoText)}_createMoveToScaleAction(e,t,i,s){const r=e.priceScale()===t;return new a.Action({actionId:"Chart.Source.MoveToOtherScale",checkable:!0,checked:r,label:i,statName:"ToggleScale",payload:{datasource:e,priceScale:t,undoText:s},onExecute:this._onMoveToScale.bind(this)})}_onNoScale(e){const t=e.getPayload().datasource,i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));r.isOverlay(t)||this._chartWidget.model().detachNoScale(t,r)}_createActionNoScale(e){ -const t=this._chartWidget.model().model(),i=(0,s.ensureNotNull)(t.paneForSource(e)),r=i.actionNoScaleIsEnabled(e);return new a.Action({actionId:"Chart.Source.MoveToNoScale",checkable:!0,checked:i.isOverlay(e),label:te,disabled:!r,statName:"ToggleNoScale",payload:{datasource:e},onExecute:this._onNoScale.bind(this)})}_createActionScaleItems(e){const t=[],i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(e)),n=i.priceScaleSlotsCount().totallySlots>1,o=r.rightPriceScales(),l=r.leftPriceScales(),h=this._createActionScaleDetachRight(e),d=this._createActionScaleDetachLeft(e),u=o.length+l.length+(null===h?0:1)+(null===d?0:1)>2,p={right:{hidden:{checked:{labelled:R,sided:O},unchecked:{labelled:F,sided:W}},visible:{checked:{labelled:H,sided:z},unchecked:{labelled:U,sided:j}}},left:{hidden:{checked:{labelled:R,sided:G},unchecked:{labelled:F,sided:q}},visible:{checked:{labelled:H,sided:Y},unchecked:{labelled:U,sided:K}}}},_={right:T,left:x},m={left:r.visibleLeftPriceScales(),right:r.visibleRightPriceScales()},g=(t,i)=>{const s=("right"===i?o:l)[t],r=m[i].includes(s)?"visible":"hidden",a=e.priceScale()===s?"checked":"unchecked",h=n?"labelled":"sided",d=p[i],u=(0,c.getPriceAxisNameInfo)(i,t).label;return{actionText:d[r][a][h].format({label:u}),undoText:n?P.format({label:u}):_[i]}};t.push(...o.map((t,i)=>{const s=g(i,"right");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==h&&t.push(h);u&&(o.length>0||null!==h)&&t.push(new a.Separator);t.push(...l.map((t,i)=>{const s=g(i,"left");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==d&&t.push(d);u&&(l.length>0||null!==d)&&t.push(new a.Separator);return t.push(this._createActionNoScale(e)),t}_createVisualOrderAction(e){const t=this._chartWidget.model(),s=t.availableZOrderOperations(e),r=[new a.Action({actionId:"Chart.Source.VisualOrder.BringToFront",label:ae,statName:"BringToFront",disabled:!s.bringToFrontEnabled,onExecute:()=>t.bringToFront(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.SendToBack",label:le,statName:"SendToBack",disabled:!s.sendToBackEnabled,onExecute:()=>t.sendToBack(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.BringForward",label:ce,statName:"BringForward",disabled:!s.bringForwardEnabled,onExecute:()=>t.bringForward(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.SendBackward",label:he,statName:"SendBackward",disabled:!s.sendBackwardEnabled,onExecute:()=>t.sendBackward(e)})];return new a.Action({actionId:"Chart.Source.VisualOrder",label:de,icon:i(26159),statName:"VisualOrder",subItems:r})}_createActionMergeUp(e){const t=this._chartWidget.model();return t.model().isMergeUpAvailableForSource(e)?new a.Action({actionId:"Chart.Source.MergeUp",label:se,statName:"MergeUp",onExecute:()=>t.mergeSourceUp(e)}):null}_createActionUnmergeUp(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({actionId:"Chart.Source.UnmergeUp",label:re,statName:"UnmergeUp",onExecute:()=>t.unmergeSourceUp(e)}):null}_createActionMergeDown(e){ -const t=this._chartWidget.model();return t.model().isMergeDownAvailableForSource(e)?new a.Action({actionId:"Chart.Source.MergeDown",label:ne,statName:"MergeDown",onExecute:()=>t.mergeSourceDown(e)}):null}_createActionUnmergeDown(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({actionId:"Chart.Source.UnmergeDown",label:oe,statName:"UnmergeDown",onExecute:()=>t.unmergeSourceDown(e)}):null}_mergeContentMenuItems(e){return[this._createActionMergeUp(e),this._createActionUnmergeUp(e),this._createActionMergeDown(e),this._createActionUnmergeDown(e)].filter(n.notNull)}_createActionMove(e){const t=this._mergeContentMenuItems(e);return t.length>0?new a.Action({actionId:"Chart.Source.MoveToPane",label:ie,icon:i(6354),subItems:t}):null}_contextMenuActionsForSeries(e,t){var i;const r=[],n=e.properties().childs().visible.value(),l=this._chartWidget.model().model(),c=(0,s.ensureNotNull)(l.paneForSource(e)),h=this._chartWidget.actions();if(this._isReadOnly())r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(new a.Separator),r.push(this._createActionScale(e));else{0,r.length>0&&!(r[r.length-1]instanceof a.Separator)&&r.push(new a.Separator),o.enabled("symbol_info")&&r.push(h.showSymbolInfoDialog);l.mainSeries().symbolInfo();if(r.length>0&&!(r[r.length-1]instanceof a.Separator)&&r.push(new a.Separator),!c.isEmpty()&&o.enabled("datasource_copypaste")){const e=Le(c,t&&"localY"in t?t.localY:void 0),i=Me(this._chartWidget,c);(e||i)&&(e&&r.push(e),i&&r.push(i),r.push(new a.Separator))}r.push(this._createVisualOrderAction([e]));const s=this._createActionMove(e);null!==s&&r.push(s),r.push(this._createActionScale(e)),r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(new a.Separator),r.push(Ee(this._chartWidget)),r.push(new a.Separator);Boolean(null===(i=window.widgetbar)||void 0===i?void 0:i.widget("watchlist"))&&h.addToWatchlist&&r.push(h.addToWatchlist),o.enabled("text_notes")&&r.push(h.addToTextNotes),r[r.length-1]instanceof a.Separator||r.push(new a.Separator),o.enabled("show_chart_property_page")&&!this._chartWidget.onWidget()&&r.push(h.mainSeriesPropertiesAction),r[r.length-1]instanceof a.Separator&&r.pop()}return r}_createActionAddChildStudy(e){throw new Error("unsupported")}_createActionAddFundamentals(e){return null}_createActionShowSymbolInfoDialog(e,t){return new a.Action({actionId:"Chart.Dialogs.ShowSymbolInfo",label:Pe,icon:i(69061),checkable:!1,statName:"SymbolInfo",onExecute:()=>{const i=e.symbol(),s={symbolInfo:e.symbolInfo(),unitDescription:e=>t.description(e)};(0,g.showSymbolInfoDialog)(i,s)}})}_createActionShowProperties(e){return new a.Action({actionId:"Chart.Indicator.ShowSettingsDialog",label:pe,icon:i(44368),statName:"EditSelectedObject",onExecute:()=>this._chartWidget.showSourceProperties(e)})}_contextMenuActionsForStudy(e){const t=this._chartWidget.actions(),i=e.properties().visible.value(),s=[];if(!e.userEditEnabled())return s;if(this._chartWidget.readOnly())s.push(i?this._createActionHide(e):this._createActionShow(e)), -s.push(new a.Separator),e.constructor instanceof d.NonSeriesStudy||s.push(this._createActionScale(e));else{0,o.enabled("study_on_study")&&e.canHaveChildren()&&s.push(this._createActionAddChildStudy(e));const r=this._createApplyToEntireLayoutCommand(e);if(null!==r&&s.push(r),s.length>0&&!(s[s.length-1]instanceof a.Separator)&&s.push(new a.Separator),o.enabled("symbol_info")&&(e instanceof m.StudyCompare||e instanceof _.study_Overlay)&&null!==e.symbolInfo()&&(s.push(this._createActionShowSymbolInfoDialog(e,this._chartWidget.model().model().availableUnits())),s.push(new a.Separator)),s.push(this._createVisualOrderAction([e])),!(e.constructor instanceof d.NonSeriesStudy)){const t=this._createActionMove(e);null!==t&&s.push(t),s.push(this._createActionScale(e))}s.push(new a.Separator);const n=e.metaInfo();if(e.copiable()){const t=new a.Action({actionId:"Chart.Clipboard.CopySource",label:_e,shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+67),statName:"Copy",onExecute:()=>{this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy([e])}});s.push(t)}s.push(i?this._createActionHide(e):this._createActionShow(e)),s.push(t.studyRemove),s.push(new a.Separator),o.enabled("property_pages")&&new u.MetaInfoHelper(n).hasUserEditableOptions()&&s.push(this._createActionShowProperties(e)),s[s.length-1]instanceof a.Separator&&s.pop()}return s}_createEditAlertDrawingAction(e){return new TVAction({label:V.format({title:e.title()}),icon:TbbiEditAlertSvg,statName:"EditAlert",onExecute:()=>{window.runOrSignIn(()=>{e.editAlert("pane_context_menu_edit_alert")},{source:"Alert edit from pane context menu"})}})}_createLineToolTemplateAction(e){return null}_createActionToggleLockLineTools(e){const t=e[0].properties().frozen.value(),s=t?fe:ve;return new a.Action({actionId:"Chart.SelectedObject.ToggleLocked",label:s,statName:"ToggleLockSelectedObject",checkable:!0,icon:i(t?76576:54859),onExecute:()=>{if(1===e.length)this._chartWidget.toggleLockSelectedObject();else{const i=t?D:k,s=this._chartWidget.model();s.withMacro(i,()=>{e.forEach(e=>{s.setProperty(e.properties().frozen,!t,i)})})}}})}async _contextMenuActionsForLineTool(e){const t=[],s=this._chartWidget.actions(),r=(this._chartWidget.model().model(),()=>{t.push(this._createVisualOrderAction(e))}),n=()=>{const s=e.filter(e=>e.cloneable());if(s.length>0){const e=new a.Action({actionId:"Chart.LineTool.Clone",label:me,icon:i(17191),shortcutHint:(0,p.humanReadableModifiers)(p.Modifiers.Mod)+"Drag",statName:"Clone",onExecute:()=>this._chartWidget.model().cloneLineTools(s,!1)},"Clone");t.push(e)}return!!s.length},l=()=>{const i=e.filter(e=>e.copiable());if(i.length>0){const e=new a.Action({actionId:"Chart.Clipboard.CopyLineTools",label:_e,shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+67),statName:"Copy",onExecute:()=>this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy(i)},"Copy");t.push(e)}return!!i.length},c=()=>{const e=(this._chartWidget,[]);return t.push(...e),e.length>0},h=e=>{const i=new a.Action({actionId:"Chart.ScrollToLineTool",label:ge.format({ -lineToolName:e.title()}),statName:"GoToLineTool",checkable:!1,onExecute:async()=>this._chartWidget.model().scrollToLineTool(e)});t.push(i)},d=e=>{const t=this._chartWidget.model().model().lineToolsGroupModel(),i=e.map(e=>t.groupForLineTool(e));return new Set(i).size<=1};if(1===e.length){const i=e[0];if(this._chartWidget.readOnly())t.push(s.lineHide);else if(i.userEditEnabled()){0,r(),this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),t.push(new a.Separator);let e=n();e=l()||e,e=c()||e,e&&t.push(new a.Separator),t.push(this._createActionToggleLockLineTools([i])),t.push(s.lineHide),t.push(s.lineRemove),i.points().length>0&&this._options.gotoLineTool&&(t.push(new a.Separator),h(i));const d=await this._chartWidget.propertiesDefinitionsForSource(i);if(o.enabled("property_pages")&&null!==d&&(t.push(new a.Separator),t.push(s.format)),i.additionalActions){t.push(new a.Separator);const e=i.additionalActions(this._chartWidget.model());t.push(...e)}}}else this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),d(e)&&r(),t.length>0&&t.push(new a.Separator),n(),l(),c(),t.push(new a.Separator),t.push(this._createActionToggleLockLineTools(e)),t.push(s.lineHide),t.push(s.lineRemove),o.enabled("property_pages")&&(t.push(new a.Separator),t.push(s.format));return t}_createEarningsShow(){return null}_createRollDatesShow(){return null}_createDividendsShow(){return null}_createSplitsShow(){return null}_contextMenuActionsForESD(){return[]}_contextMenuActionsForRollDates(){return[]}_contextMenuActionsForPublishedTimeline(e){const t=this._chartWidget.actions(),i=[];if(i.push(t.lineHide),window.is_authenticated){const t=e.properties().childs().filter,s=new TVAction({checked:t.value()===PublishedChartsFilter.None,checkable:!0,label:Se,name:"ToggleAllIdeas",statName:"ToggleAllIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.None,I)}),r=new TVAction({checked:t.value()===PublishedChartsFilter.Following,checkable:!0,label:ye,name:"ToggleIdeasOfPeopleAndUser",statName:"ToggleIdeasOfPeopleAndUser",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Following,M)}),n=new TVAction({checked:t.value()===PublishedChartsFilter.Private,checkable:!0,label:be,name:"ToggleUserIdeas",statName:"ToggleUserIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Private,L)});i.push(new a.Separator,s,r,n)}return i}_contextMenuActionsForTradingDrawings(e){return e.contextMenuItems()}_createAlertToggleHorzLineLabelAction(){throw new Error("Not implemented")}_contextMenuActionsForAlertLabel(e){throw new Error("Not implemented")}_contextMenuActionsForChartEvents(e){return[]}_createApplyToEntireLayoutCommand(e){if(!this._chartWidget.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return null;const t=this._chartWidget.model().model();if(e.parentSource()!==t.mainSeries())return null;const i=(0, -s.ensureNotNull)(t.paneForSource(e)),r=t.paneForSource(t.mainSeries())===i,n=e instanceof m.StudyCompare&&e.priceScale()===t.mainSeries().priceScale()&&(0,s.ensureNotNull)(e.priceScale()).isPercentage(),o=r?void 0:t.panes().indexOf(i);let l=Ce,c=E,h="AddStudyToEntireLayout";return(0,S.isActingAsSymbolSource)(e)&&(l=we,c=A,h="AddSymbolToEntireLayout"),new a.Action({actionId:"Chart.AddIndicatorToAllCharts",label:l,statName:h,onExecute:()=>{const i=(0,s.ensureNotNull)((0,f.clipboardDataForSources)(t.id(),[e])),a=this._chartWidget.chartWidgetCollection(),l={isOnMainPane:r,asCompare:n,paneIndex:o};a.applyIndicatorToAllCharts(this._chartWidget,i,l,c)}},"applyStudyToEntireLayout")}}},16906:(e,t,i)=>{"use strict";i.r(t),i.d(t,{supportedLineTools:()=>s});const s={cursor:{name:"cursor",onlySelectable:!0},dot:{name:"dot",onlySelectable:!0},arrow_cursor:{name:"arrow",onlySelectable:!0},eraser:{name:"eraser",onlySelectable:!0},measure:{name:"measure",onlySelectable:!0},zoom:{name:"zoom",onlySelectable:!0},brush:{name:"LineToolBrush"},highlighter:{name:"LineToolHighlighter"},text:{name:"LineToolText"},anchored_text:{name:"LineToolTextAbsolute"},note:{name:"LineToolNote"},anchored_note:{name:"LineToolNoteAbsolute"},signpost:{name:"LineToolSignpost"},callout:{name:"LineToolCallout"},balloon:{name:"LineToolBalloon"},arrow_up:{name:"LineToolArrowMarkUp"},arrow_down:{name:"LineToolArrowMarkDown"},arrow_left:{name:"LineToolArrowMarkLeft"},arrow_right:{name:"LineToolArrowMarkRight"},price_label:{name:"LineToolPriceLabel"},price_note:{name:"LineToolPriceNote"},arrow_marker:{name:"LineToolArrowMarker"},flag:{name:"LineToolFlagMark"},vertical_line:{name:"LineToolVertLine"},horizontal_line:{name:"LineToolHorzLine"},cross_line:{name:"LineToolCrossLine"},horizontal_ray:{name:"LineToolHorzRay"},trend_line:{name:"LineToolTrendLine"},info_line:{name:"LineToolInfoLine"},trend_angle:{name:"LineToolTrendAngle"},arrow:{name:"LineToolArrow"},ray:{name:"LineToolRay"},extended:{name:"LineToolExtended"},parallel_channel:{name:"LineToolParallelChannel"},disjoint_angle:{name:"LineToolDisjointAngle"},flat_bottom:{name:"LineToolFlatBottom"},pitchfork:{name:"LineToolPitchfork"},schiff_pitchfork_modified:{name:"LineToolSchiffPitchfork"},schiff_pitchfork:{name:"LineToolSchiffPitchfork2"},inside_pitchfork:{name:"LineToolInsidePitchfork"},pitchfan:{name:"LineToolPitchfan"},gannbox:{name:"LineToolGannSquare"},gannbox_square:{name:"LineToolGannComplex"},gannbox_fixed:{name:"LineToolGannFixed"},gannbox_fan:{name:"LineToolGannFan"},fib_retracement:{name:"LineToolFibRetracement"},fib_trend_ext:{name:"LineToolTrendBasedFibExtension"},fib_speed_resist_fan:{name:"LineToolFibSpeedResistanceFan"},fib_timezone:{name:"LineToolFibTimeZone"},fib_trend_time:{name:"LineToolTrendBasedFibTime"},fib_circles:{name:"LineToolFibCircles"},fib_spiral:{name:"LineToolFibSpiral"},fib_speed_resist_arcs:{name:"LineToolFibSpeedResistanceArcs"},fib_wedge:{name:"LineToolFibWedge"},fib_channel:{name:"LineToolFibChannel"},xabcd_pattern:{name:"LineTool5PointsPattern"},cypher_pattern:{ -name:"LineToolCypherPattern"},abcd_pattern:{name:"LineToolABCD"},triangle_pattern:{name:"LineToolTrianglePattern"},"3divers_pattern":{name:"LineToolThreeDrivers"},head_and_shoulders:{name:"LineToolHeadAndShoulders"},elliott_impulse_wave:{name:"LineToolElliottImpulse"},elliott_triangle_wave:{name:"LineToolElliottTriangle"},elliott_triple_combo:{name:"LineToolElliottTripleCombo"},elliott_correction:{name:"LineToolElliottCorrection"},elliott_double_combo:{name:"LineToolElliottDoubleCombo"},cyclic_lines:{name:"LineToolCircleLines"},time_cycles:{name:"LineToolTimeCycles"},sine_line:{name:"LineToolSineLine"},long_position:{name:"LineToolRiskRewardLong"},short_position:{name:"LineToolRiskRewardShort"},forecast:{name:"LineToolPrediction"},date_range:{name:"LineToolDateRange"},price_range:{name:"LineToolPriceRange"},date_and_price_range:{name:"LineToolDateAndPriceRange"},bars_pattern:{name:"LineToolBarsPattern"},ghost_feed:{name:"LineToolGhostFeed"},projection:{name:"LineToolProjection"},rectangle:{name:"LineToolRectangle"},rotated_rectangle:{name:"LineToolRotatedRectangle"},circle:{name:"LineToolCircle"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},path:{name:"LineToolPath"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"},regression_trend:{name:"LineToolRegressionTrend"},fixed_range_volume_profile:{name:"LineToolFixedRangeVolumeProfile"}}},94578:(e,t,i)=>{"use strict";i.d(t,{clipboardDataForSources:()=>o});var s=i(88537),r=i(81851),n=i(14291);function o(e,t){if(1===t.length&&(0,r.isStudy)(t[0])){const e=t[0];return{title:e.title(),sources:[{source:(0,s.ensureNotNull)(e.state()),type:"study"}]}}const i={sources:[],title:""};return i.sources=t.filter(e=>e.copiable()&&(0,n.isLineTool)(e)).map(t=>{const i={type:"drawing",geometry:t.geometry(),source:{...t.state(!1),points:t.normalizedPoints()},modelId:e};return delete i.source.alertId,i}),i.sources.length>0?(1===i.sources.length?i.title=t[0].title&&t[0].title():i.title="Drawings",i):null}},17937:(e,t,i)=>{"use strict";i.d(t,{addBrandingSource:()=>z});var s=i(4889),r=i(86441),n=i(34026),o=i(45112),a=i(88537),l=i(28353),c=i(67337),h=i(99305),d=i(84346),u=i(68587),p=i(68906),_=i(59199),m=i(42759),g=i(93435),f=i(52892),v=i(22799),S=i(76818);i(95306);const y=c.enabled("adaptive_logo"),b=c.enabled("small_no_display"),w=c.enabled("38914"),C="Ch{0}ar{1}t{2}by{3}{4}".format("",""," "," ","TradingView"),P="po{0}wer{1}ed{2}by{3}{4}".format("",""," "," ","TradingView"),T="by{3}{4}".format("",""," "," ","TradingView"),x=w?T:P,I=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),M=window.urlParams||{};window.initData;M.no_referral_id&&enable(M.referral_id||"","aggressive");(0,l.t)("By TradingView"),(0,l.t)("{symbol} financials by TradingView"),(0,l.t)("More features on tradingview.com"),(0,l.t)("powered by");const L=(0,l.t)(C),A=(0,l.t)(x);function E(e){return"px EuclidCircular"===e?.1:0} -class k extends h.CustomSourceBase{constructor(e,t,i,r){super(e,t),this._canvasWidth=0,this._paneHeight=0,this._left=13,this._bottom=16,this._layout="site_branding",this._needToShow=!0,this._showBranding=!1,this._customLogoSrc="",this._customLogoLink="",this._cubicBezier=new u.CubicBezier(.4,.01,.22,1),this._openAnimation=null,this._closeAnimation=null,this._powBy=null,this._custom=null,this._mainSeries=this._model.mainSeries(),this._showAllowance=i,this._showForPro=Boolean(r),this._checkLayout(),"widget_custom_branding"!==this._layout&&"fundamental_custom_branding"!==this._layout||(this._left=8,this._bottom=5);const n=()=>{this._needToShow?this._showBranding=!0:this._showBranding=!1};this._resizeHandlerDelayed=(0,s.default)(n,200),n(),window.addEventListener("resize",this._resizeHandlerDelayed),this._monitorCanvas=(0,g.createDisconnectedBoundCanvas)(document,new g.Size(0,0)),this._monitorCanvas.subscribeCanvasConfigured(()=>{this._init()}),this._model.isSnapshot()?this._init():(this._mainSeries.dataEvents().symbolResolved().subscribe(this,this._init),null!==this._mainSeries.symbolInfo()&&this._init()),this._renderer={draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)}}destroy(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy()}paneViews(e){if(window.TradingView.printing)return[];if(!this._showAllowance())return[];if("site_branding"===this._layout&&!this._showForPro&&window.user&&window.user.is_pro)return[];const t=c.enabled("move_logo_to_main_pane");let i=!1;if(e.maximized().value())i=!0;else if(t)i=this._model.mainPane().collapsed().value()?e===this._model.panes().find(e=>!e.collapsed().value()):e.isMainPane();else if(this._model.lastPane().collapsed().value()){const t=this._model.panes();for(let s=t.length-1;s>=0;--s){const r=t[s];if(!r.collapsed().value()){i=r===e;break}}}else i=e.isLast();return i?[{renderer:this.renderer.bind(this)}]:[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateAllViews(){}updateViewsForPane(e){}priceScale(){return null}renderer(e,t){return this._paneHeight=e,this._canvasWidth=t,this._renderer}hasContextMenu(){return!1}onClickOutside(){this._hasAnimation()&&this._startCloseAnimation()}hitTest(e){return!this._showBranding||c.enabled("logo_without_link")?null:this._powBy&&"widget_custom_no_powered_branding"!==this._layout&&"fundamental_custom_no_powered_branding"!==this._layout&&(this._powBy.hitTest(e)||this._custom&&this._custom.hitTest(e))?new d.HitTestResult(d.HitTestResult.CUSTOM,{hideCrosshairLinesOnHover:!0,clickHandler:()=>{this._openLink()},tapHandler:()=>{this._hasAnimation()?this._toggleOpenAnimatedOrOpenLink():this._openLink()},mouseEnterHandler:()=>{this._hasAnimation()&&this._startOpenAnimation()},mouseLeaveHandler:()=>{this._hasAnimation()&&this._startCloseAnimation()}}):null}tvUrl(){let e=new URL("https://www.tradingview.com/");if(this._customLogoLink)return this._customLogoLink -;if("library_branding"===this._layout||"library_custom_branding"===this._layout){let t;switch(!0){case c.enabled("charting_library"):t="library";break;case c.enabled("trading_terminal"):t="trading-terminal"}return e.searchParams.append("utm_source",window.location.origin),e.searchParams.append("utm_medium","library"),t&&e.searchParams.append("utm_campaign",t),e.toString()}return e.toString()}draw(e,t){if(!this._showBranding)return;let i=0;M.utm=!0,(0,g.drawScaled)(e,t.pixelRatio,()=>{this._powBy&&this._powBy.show&&(i=this._powBy.height,e.save(),e.translate(this._left,this._paneHeight-this._bottom-i),this._powBy.draw(e,t,this._canvasWidth),e.restore()),this._custom&&this._custom.show&&(e.save(),e.translate(this._left,this._paneHeight-this._bottom-i-this._custom.height),this._custom.draw(e,t),e.restore())})}_init(){const e=this._mainSeries.symbolInfo();this._powBy&&this._powBy.destroy(),this._powBy=new W(this._layout,(null==e?void 0:e.name)||"",this._model,()=>this._model.fullUpdate()),this._custom=new H(this._layout,this._customLogoSrc,()=>this._model.fullUpdate()),this._openAnimation=null,this._closeAnimation=null}_checkLayout(){if(c.enabled("widget"))0;else if(c.enabled("charting_library")||c.enabled("trading_terminal")){const e=JSON.parse(M.logo)||{};e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=c.enabled("widget_logo"),c.enabled("link_to_tradingview")?this._layout="library_custom_branding":this._layout="library_custom_no_powered_branding"):(this._layout="library_branding",this._needToShow=c.enabled("widget_logo"))}else this._layout="site_branding"}_startOpenAnimation(){null===this._openAnimation&&(null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null),this._openAnimation=(0,_.doAnimate)({from:this._currentStateForAnimation(),to:this._openedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}_startCloseAnimation(){null===this._closeAnimation&&(null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null),this._closeAnimation=(0,_.doAnimate)({from:this._currentStateForAnimation(),to:this._closedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}_currentStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).width}_closedStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).minimizedAnimationWidth()}_openedStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).maximizedAnimationWidth()}_animatedDrawStep(e,t){(0,a.ensureNotNull)(this._powBy).animatedDrawStep(e,t),this._model.lightUpdate()}_hasAnimation(){return null!==this._powBy&&this._powBy.hasAnimation()}_openLink(){if("site_branding"===this._layout)return!1;c.enabled("widget");return(0,a.ensureNotNull)(window.open(this.tvUrl(),"_blank")).opener=null,!0}_toggleOpenAnimatedOrOpenLink(){null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}}function D(e){return!y||e>500} -const V={customBrandingTradingViewText:o.colorsPalette["color-brand"],customBrandingText:o.colorsPalette["color-cold-gray-850"],background:o.colorsPalette["color-cold-gray-900"],shadow:(0,p.generateColor)(o.colorsPalette["color-white"],91),text:o.colorsPalette["color-white"],staticTextBackground:(0,p.generateColor)(o.colorsPalette["color-cold-gray-800"],20),logo:o.colorsPalette["color-white"]},B={customBrandingTradingViewText:o.colorsPalette["color-brand"],customBrandingText:o.colorsPalette["color-cold-gray-850"],background:o.colorsPalette["color-white"],shadow:(0,p.generateColor)(o.colorsPalette["color-black"],91),text:o.colorsPalette["color-cold-gray-900"],staticTextBackground:(0,p.generateColor)(o.colorsPalette["color-white"],20),logo:o.colorsPalette["color-cold-gray-900"]};const N={};function R(e,t){const i=N[e];if(void 0!==i)return i.image||null;const s={};return N[e]=s,function(e){return new Promise(t=>{const i=f.replace(/fill="#[\da-f]{6}"/i,`fill="${e}"`),s=new Image;s.onload=()=>{s.onload=null,t(s)},s.src=URL.createObjectURL(new Blob([i],{type:"image/svg+xml"}))})}(e).then(e=>{s.image=e,t()}),null}function O(e){const{a:t,d:i,e:s,f:n}=e;return new r.Point(s/t,n/i)}class F{constructor(){this._originPoint=null}hitTest(e){const t=this._getHitTestBox();if(t)return(0,n.pointInBox)(e,t)}_getHitTestBox(){const e=this._originPoint;if(e){const{x:t,y:i}=e;return(0,r.box)(e,new r.Point(t+this.width,i+this.height))}}}class W extends F{constructor(e,t,i,s){if(super(),this.show=!0,this.borderRadius=0,this._needDisplayImage=!1,this._imageWidth=22,this._imageHeight=11,this._animatedWidth=32,this._font="px "+v.CHART_FONT_FAMILY,this._txt="TradingView",this._textWidth=0,this._maximizedAnimationTextWidth=0,this._textWidthCache=new S.TextWidthCache,this._pixelRatio=1,this._model=i,this._layout=e,this._symbol=t,this.showAnimatedBranding=c.enabled("show_animated_logo")||"widget_branding"===this._layout,this._fontSize=this.showAnimatedBranding?11:14,this.showAnimatedBranding||"widget_custom_branding"!==this._layout&&"fundamental_custom_branding"!==this._layout||(this._fontSize=12),this.width=32,this.height=this._fontSize+2,this._onReadyCallback=s,this._init(),document.fonts&&document.fonts.check&&document.fonts.load){document.fonts.check(this._fontSize+"px EuclidCircular")?this._font="px EuclidCircular":document.fonts.load(this._fontSize+"px EuclidCircular",this._txt).then(()=>{this._font="px EuclidCircular",this._recalculateMetrics()})}this._recalculateMetrics()}destroy(){this._model.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}hasAnimation(){return this.showAnimatedBranding}minimizedAnimationWidth(){return 32}maximizedAnimationWidth(){return this._maximizedAnimationTextWidth+32-3}animatedDrawStep(e,t){this._animatedWidth=t}draw(e,t,i){t.pixelRatio!==this._pixelRatio&&(this._textWidthCache.reset(),this._pixelRatio=t.pixelRatio);const s=this._colors;if(this.showAnimatedBranding)this._needDisplayImage&&null!==this._getLogoImage(s.logo)&&(e.save(), -e.translate(-Math.ceil((32-this._imageWidth)/2),Math.floor((32-this._imageHeight)/2)),this._originPoint=O(e.getTransform()),this.borderRadius=16,this._drawFillRectWithRoundedCorner(e,-.5,0,this._animatedWidth,32,this.borderRadius),this._drawLogoImage(e,Math.round((32-this._imageWidth)/2),Math.round((32-this._imageHeight)/2)+0),this._animatedWidth>32&&(e.translate(Math.round(32),Math.round(this._fontSize*E(this._font))),this._drawFillTextCropWidth(e,this._animatedWidth-32)),e.restore(),this.width=this._animatedWidth);else if("widget_custom_branding"===this._layout||"fundamental_custom_branding"===this._layout){e.font=this._fontSize+this._font;const t=e.measureText(this._txt).width+2;this.width=t+e.measureText("TradingView").width+2,this._originPoint=O(e.getTransform()),e.save(),e.globalAlpha=.7,e.fillStyle=this._colors.customBrandingText,e.fillText(this._txt,0,12),e.fillStyle=this._colors.customBrandingTradingViewText,e.fillText("TradingView",t,12),e.restore()}else if(function(e){return!b||e>480}(i))if(this._needDisplayImage&&null!==this._getLogoImage(s.logo)){e.save(),e.translate(-Math.ceil((32-this._imageWidth)/2),Math.floor((32-this._imageHeight)/2)),this._originPoint=O(e.getTransform()),this.borderRadius=16,this._drawBgCircle(e),e.drawImage((0,a.ensureNotNull)(this._getLogoImage(s.logo)),Math.round((32-this._imageWidth)/2),Math.round((32-this._imageHeight)/2)+0);const t=D(i);t&&(e.translate(37,Math.round(this._fontSize*E(this._font))),this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),this.width=32,t&&(this.width+=this._maximizedAnimationTextWidth)}else{const t=D(i);t&&(e.save(),e.translate(I?-.5:0,-.5),this._drawTextStroke(e),this._drawTextFill(e),e.restore()),t&&(this.width=this._maximizedAnimationTextWidth)}else this.width=0}_init(){this._checkLayout(),this.show&&(this.height=this._needDisplayImage?32:this._fontSize+2,this._updateColors(),this._model.properties().childs().paneProperties.childs().background.subscribe(this,this._updateColors),this._model.onChartThemeLoaded().subscribe(this,this._updateColors))}_recalculateMetrics(){const e=(0,g.createDisconnectedBoundCanvas)(document,new g.Size(0,0)),t=(0,g.getPretransformedContext2D)(e,!0);t.font=this._fontSize+this._font,this._textWidth=Math.ceil(t.measureText(this._txt).width)+2;let i=this._textWidth+8;i%2==0&&(i+=1),this._maximizedAnimationTextWidth=i,this._textWidthCache.reset()}_updateColors(){this._colors=this._model.isDark()?V:B}_getLogoImage(e){return R(e,this._onReadyCallback)}_checkLayout(){switch(this._layout){case"widget_branding":case"widget_referral_branding":case"widget_custom_branding":case"fundamental_branding":case"fundamental_custom_branding":case"library_custom_branding":case"library_branding":case"site_branding":this.show=!0;break;case"widget_custom_no_powered_branding":case"fundamental_custom_no_powered_branding":case"library_custom_no_powered_branding":this.show=!1}switch(this._layout){case"library_branding":this._needDisplayImage=!0,this._txt=L;break;case"library_custom_branding":this._txt=A}}_drawTextStroke(e){e.save(), -e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.strokeStyle=this._colors.staticTextBackground,e.lineWidth=4,e.lineJoin="round",e.strokeText(this._txt,0,16+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawTextFill(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.fillStyle=this._colors.text,e.fillText(this._txt,0,16+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawFillTextCropWidth(e,t){e.save(),e.beginPath(),e.rect(0,0,t,this.height),e.clip(),this._drawTextFill(e),e.restore()}_drawBgCircle(e){const t=this.borderRadius,i=2*Math.PI;e.save(),e.beginPath(),e.fillStyle=this._colors.shadow,e.arc(t,t,t+1,0,i),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._colors.background,e.arc(t,t,t,0,i,!1),e.fill(),e.closePath(),e.restore()}_drawFillRectWithRoundedCorner(e,t,i,s,r,n){e.save(),(0,m.drawRoundRect)(e,t-1,i-1,s+2,r+2,n),e.fillStyle=this._colors.shadow,e.fill(),e.closePath(),e.restore(),e.save(),(0,m.drawRoundRect)(e,t,i,s,r,n),e.fillStyle=this._colors.background,e.fill(),e.closePath(),e.restore()}_drawLogoImage(e,t,i){e.drawImage((0,a.ensureNotNull)(this._getLogoImage(this._colors.logo)),t,i)}}class H extends F{constructor(e,t,i){super(),this.show=!1,this.width=0,this.height=0,this._ready=!1,this._layout=e,this._src=t,this._onReadyCallback=i,this._checkLayout();const s=new Image;this._img=s,this.show&&(s.addEventListener("load",()=>{this.width=Math.round(s.width),this.height=Math.round(s.height),this._ready=!0,this._onReadyCallback&&this._onReadyCallback()}),s.crossOrigin="anonymous",s.src=this._src)}draw(e,t){this._ready&&(e.drawImage(this._img,-.5,-.5,this.width,this.height),this._originPoint=O(e.getTransform()))}_checkLayout(){switch(this._layout){case"widget_custom_branding":case"widget_custom_no_powered_branding":case"fundamental_custom_branding":case"fundamental_custom_no_powered_branding":case"library_custom_branding":case"library_custom_no_powered_branding":this.show=!0;break;case"site_branding":case"widget_branding":case"widget_referral_branding":case"fundamental_branding":case"library_branding":this.show=!1}}}function z(e,t){function i(t){const i=e.getAll();if(1===i.length)return!0;const s=i[0].hasModel()&&i[0].model();return s&&s.model()===t}e.addCustomSource("branding",(e,s)=>new k(e,s,i.bind(null,s),t))}},93435:(e,t,i)=>{"use strict";i.d(t,{Size:()=>o,getCanvasDevicePixelRatio:()=>a,getContext2D:()=>l,getPrescaledContext2D:()=>c,getPretransformedContext2D:()=>h,fillRect:()=>d,clearRect:()=>u,drawScaled:()=>p,createDisconnectedCanvas:()=>_,createDisconnectedBoundCanvas:()=>m,createBoundCanvas:()=>f,calcTextHorizontalShift:()=>v,disableSelection:()=>S});var s=i(81746),r=i(88537),n=i(62820);class o{constructor(e,t){this.w=e,this.h=t}equals(e){return this.w===e.w&&this.h===e.h}}function a(e){var t,i;return Math.max(1,(null===(i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||void 0===i?void 0:i.devicePixelRatio)||1)}function l(e){const t=(0, -r.ensureNotNull)(e.getContext("2d"));return t.setTransform(1,0,0,1,0,0),t}function c(e){const t=(0,r.ensureNotNull)(e.getContext("2d")),i=a(e);return t.setTransform(i,0,0,i,0,0),t}function h(e,t){const i=(0,r.ensureNotNull)(e.canvas.getContext("2d"));return i.setTransform(e.pixelRatio,0,0,e.pixelRatio,0,0),t||i.translate(.5,.5),i}function d(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function u(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.globalCompositeOperation="copy",e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function p(e,t,i){e.save(),e.scale(t,t),i(),e.restore()}function _(e,t,i){const s=g(e);return void 0===i&&(i=a(s)),s.width=t.w*i,s.height=t.h*i,s}function m(e,t){const i=g(e),r=(0,s.bindToDevicePixelRatio)(i,{allowDownsampling:!1});return r.resizeCanvas({width:t.w,height:t.h}),r}function g(e){const t=e.createElement("canvas");return S(t),t}function f(e,t){const i=g((0,r.ensureNotNull)(e.ownerDocument));e.appendChild(i);const n=(0,s.bindToDevicePixelRatio)(i,{allowDownsampling:!1});return n.resizeCanvas({width:t.w,height:t.h}),n}function v(e,t){return"center"===e.textAlign?0:(0,n.isRtl)()?"start"===e.textAlign||"right"===e.textAlign?t:0:"start"===e.textAlign||"left"===e.textAlign?0:t}function S(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.msUserSelect="none",e.style.MozUserSelect="none",e.style.webkitTapHighlightColor="transparent"}},68425:(e,t,i)=>{"use strict";i.d(t,{ChartChangesWatcher:()=>n});var s=i(2872),r=i.n(s);class n{constructor(e,t,i,s){this._undoHistoryHasChanges=!1,this._hasChanges=!1,this._recalculateHaveChanges=()=>{const e=this._undoHistoryHasChanges||this._lineToolsHaveChanges.value();e!==this._hasChanges&&(this._hasChanges=e,this._onValueChanged.fire(e))},this._undoHistory=e,this._lineToolsHaveChanges=t,this._chartSaver=i,this._globalEvents=s,this._onValueChanged=new(r()),this._subscribe()}destroy(){this._unsubscribe(),this._onValueChanged.destroy()}hasChanges(){return this._hasChanges}getOnChange(){return this._onValueChanged}_subscribe(){this._globalEvents.subscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().subscribe(this,this._handleUndoHistoryChange),this._chartSaver.chartSaved().subscribe(this,this._handleChartSaved),this._lineToolsHaveChanges.subscribe(this._recalculateHaveChanges)}_unsubscribe(){this._globalEvents.unsubscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().unsubscribe(this,this._handleUndoHistoryChange),this._chartSaver.chartSaved().unsubscribe(this,this._handleChartSaved),this._lineToolsHaveChanges.unsubscribe(this._recalculateHaveChanges)}_setUndoHistoryHasChanges(e){this._undoHistoryHasChanges=e,this._recalculateHaveChanges()}_handleChartLoaded(){this._setUndoHistoryHasChanges(!1)}_handleUndoHistoryChange(e){e&&!e.customFlag("doesnt_affect_save")&&this._setUndoHistoryHasChanges(!0)}_handleChartSaved(e){e&&this._setUndoHistoryHasChanges(!1)}}},76367:(e,t,i)=>{"use strict";i.d(t,{shiftPressed:()=>p, -modifierPressed:()=>_,globalEnvironmentState:()=>m,ChartHotkeysListener:()=>g});var s=i(25760),r=i(68335),n=i(35749),o=i(52714),a=i.n(o),l=i(77216);const c=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Shift)),h=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Mod)),d=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Alt)),u=[r.Modifiers.None,r.Modifiers.Alt,r.Modifiers.Mod,r.Modifiers.Alt+r.Modifiers.Shift];function p(){return c}function _(){return h}function m(){return new l.EnvironmentState({altKey:d.value(),ctrlKey:_().value(),metaKey:_().value(),shiftKey:p().value()})}s.pressedKeys.subscribe(e=>{c.setValue(Boolean(e&r.Modifiers.Shift)),h.setValue(Boolean(e&r.Modifiers.Mod)),d.setValue(Boolean(e&r.Modifiers.Alt))});class g{constructor(e,t){this._pressedKeyCode=null,this._boundKeydownHandler=null,this._boundKeyupHandler=null,this._chartWidget=e,this._parent=t,this._boundKeydownHandler=this._keydownHandler.bind(this),this._boundKeyupHandler=this._keyupHandler.bind(this),this._parent.ownerDocument.addEventListener("keydown",this._boundKeydownHandler),this._parent.ownerDocument.addEventListener("keyup",this._boundKeyupHandler)}destroy(){null!==this._boundKeydownHandler&&(this._parent.ownerDocument.removeEventListener("keydown",this._boundKeydownHandler),this._boundKeydownHandler=null),null!==this._boundKeyupHandler&&(this._parent.ownerDocument.removeEventListener("keyup",this._boundKeyupHandler),this._boundKeyupHandler=null)}_keydownHandler(e){this._chartWidget.hasModel()&&window.document.activeElement===window.document.body&&this._chartWidget.isActive()&&(this._handleMoveDrawingsKeyDown(e)||this._handleScrollKeyDown(e)||this._handleZoomKeyDown(e))&&e.preventDefault()}_keyupHandler(e){this._chartWidget.hasModel()&&this._handleScrollKeyUp(e)}_handleMoveDrawingsKeyDown(e){const t=255&(0,r.hashFromEvent)(e),i=this._chartWidget.model();switch(t){case 37:return i.moveSelectedToolsLeft();case 39:return i.moveSelectedToolsRight();case 38:return i.moveSelectedToolsUp();case 40:return i.moveSelectedToolsDown()}return!1}_handleScrollKeyDown(e){if(null!==this._pressedKeyCode)return!1;const t=(0,r.hashFromEvent)(e),i=255&t,s=(0,r.modifiersFromEvent)(e);let o;if(37===i)o=1;else{if(39!==i)return!1;o=-1}return!(r.isMacKeyboard&&s===r.Modifiers.Mod||!u.includes(s))&&(!(0,n.isNativeUIInteraction)(t,e.target)&&(this._pressedKeyCode=i,s===r.Modifiers.None?this._chartWidget.scrollHelper().moveByBar(o):s===r.Modifiers.Alt||s===r.Modifiers.Mod?this._chartWidget.scrollHelper().move(o):-1===o?this._chartWidget.model().timeScale().scrollToRealtime(!0):this._chartWidget.model().timeScale().scrollToFirstBar(),!0))}_handleScrollKeyUp(e){if(null===this._pressedKeyCode)return!1;const t=(0,r.hashFromEvent)(e);if((0,n.isNativeUIInteraction)(t,e.target))return!1;return(255&t)===this._pressedKeyCode&&(this._pressedKeyCode=null,this._chartWidget.scrollHelper().stopMove(),!0)}_handleZoomKeyDown(e){const t=(0,r.hashFromEvent)(e),i=255&t;if((0,r.modifiersFromEvent)(e)!==r.Modifiers.Mod||(0,n.isNativeUIInteraction)(t,e.target))return!1 -;const s=this._chartWidget.model();if(38===i)s.zoomIn();else{if(40!==i)return!1;s.zoomOut()}return!0}}},37786:(e,t,i)=>{"use strict";i.d(t,{ChartWidgetApiBase:()=>C});var s=i(88537),r=i(28353),n=i(24980),o=i(29823),a=i(69177),l=i(42934);class c{constructor(e){this._timeScale=e}coordinateToTime(e){const t=this._timeScale.coordinateToIndex(e);return this._timeScale.indexToTimePoint(t)}barSpacingChanged(){return this._timeScale.barSpacingChanged()}rightOffsetChanged(){return this._timeScale.rightOffsetChanged()}setRightOffset(e){this._timeScale.setRightOffset(e)}setBarSpacing(e){this._timeScale.setBarSpacing(e)}barSpacing(){return this._timeScale.barSpacing()}rightOffset(){return this._timeScale.rightOffset()}width(){return this._timeScale.width()}defaultRightOffset(){return this._timeScale.defaultRightOffset()}isEmpty(){return this._timeScale.isEmpty()}}var h=i(2872),d=i.n(h),u=i(39277);const p=new n.TranslatedString("change timezone",(0,r.t)("change timezone"));class _{constructor(e){this._onTimezoneChanged=new(d()),this._chartWidget=e,this._timezoneProperty=e.properties().childs().timezone,this._timezoneProperty.subscribe(this,e=>{this._onTimezoneChanged.fire(e.value())}),e.onAboutToBeDestroyed().subscribe(this,()=>{this._timezoneProperty.unsubscribeAll(this)},!0)}availableTimezones(){return u.availableTimezones}getTimezone(){const e=this._timezoneProperty.value();return(0,s.ensureDefined)(u.availableTimezones.find(t=>t.id===e))}setTimezone(e,t){(0,s.assert)((0,u.timezoneIsAvailable)(e),"Incorrect timezone: "+e),(null==t?void 0:t.disableUndo)?this._timezoneProperty.setValue(e):this._chartWidget.model().setProperty(this._timezoneProperty,e,p)}onTimezoneChanged(){return this._onTimezoneChanged}}var m=i(45973),g=i(59836),f=i(870);function v(e,t){const i=()=>{e.completed().unsubscribe(null,s),t(!1)},s=()=>{e.error().unsubscribe(null,i),t(!0)};e.completed().subscribe(null,i,!0),e.error().subscribe(null,s,!0)}var S=i(65862);const y=new n.TranslatedString("change price to bar ratio",(0,r.t)("change price to bar ratio")),b=new n.TranslatedString("toggle lock scale",(0,r.t)("toggle lock scale")),w=new n.TranslatedString("change series style",(0,r.t)("change series style"));class C{constructor(e,t){this._visibleBarsChanged=new(d()),this._crosshairMoved=new(d()),this._ranges=null,this._alignerResolution=o.Interval.parse(""),this._alignerSymbolInfo=null,this._dwmAligner=null,this._chartWidget=e,this._activateChart=t,this._timezoneApi=new _(e),this._chartWidget.withModel(this,()=>{this._chartWidget.model().crossHairSource().moved().subscribe(this,this._onCrosshairMoved)})}getPriceToBarRatio(){return this._chartWidget.model().model().mainSeriesScaleRatioProperty().value()}setPriceToBarRatio(e,t){const i=this._chartWidget.model(),s=i.model(),r=s.mainSeriesScaleRatioProperty();(null==t?void 0:t.disableUndo)?new f.SetScaleRatioPropertiesCommand(r,e,null,s).redo():i.setScaleRatioProperty(r,e,y)}isPriceToBarRatioLocked(){return this._chartWidget.model().model().mainSeries().priceScale().isLockScale()}setPriceToBarRatioLocked(e,t){ -const i=this._chartWidget.model(),s=i.model(),r=s.mainSeries().priceScale();(null==t?void 0:t.disableUndo)?new g.SetPriceScaleModeCommand({lockScale:e},r,null,s).redo():i.setPriceScaleMode({lockScale:e},r,b)}onDataLoaded(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().completed())}onSymbolChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().symbolResolved())}onIntervalChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onIntervalChanged())}onVisibleRangeChanged(){return this._makeSubscriptionFromDelegate(this._visibleBarsChanged)}onChartTypeChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onStyleChanged())}onSeriesTimeframe(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().seriesTimeFrame())}whenChartReady(e){this._chartWidget.withModel(this,e)}crossHairMoved(){return this._makeSubscriptionFromDelegate(this._crosshairMoved)}setSymbol(e,t){if(e===this.symbol())return void(null==t||t());const i=e=>{!e&&t&&t()},s=this._chartWidget.model().mainSeries().dataEvents();t&&v(s,i),this._activateChart(),this._chartWidget.setSymbol(e)}setResolution(e,t){const i=o.Interval.normalize(e);if(null===i||i===this.resolution())return void(null==t||t());const s=e=>{!e&&t&&t()},r=this._chartWidget.model().mainSeries().dataEvents();t&&v(r,s),this._activateChart(),this._chartWidget.setResolution(i)}setChartType(e,t){const i=this._chartWidget.model().mainSeries().properties().childs().style;if(i.value()===e)return void(null==t||t());const s=e=>{!e&&t&&t()},r=this._chartWidget.model().mainSeries().dataEvents();t&&v(r,s),this._chartWidget.model().setChartStyleProperty(i,e,w)}getAllStudies(){return this._chartWidget.model().model().allStudies(!0).map(m.studyEntityInfo)}getAllPanesHeight(){const e=this._chartWidget.model().model().panes();if(this._chartWidget.isMaximizedPane()){let t=0,i=0;e.forEach(e=>{t+=e.height(),i+=e.stretchFactor()});const s=i/t;return e.map(e=>Math.round(e.stretchFactor()/s*100)/100)}return e.map(e=>e.height())}setAllPanesHeight(e){const t=this._chartWidget.model().model(),i=t.panes();(0,s.assert)(i.length===e.length,"There`s a mismatch between the number of heights you provided and the number of panes.");const r=i.reduce((e,t)=>e+t.stretchFactor(),0)/e.reduce((e,t)=>e+t);e.forEach((e,t)=>{const s=e*r;i[t].setStretchFactor(s)}),t.fullUpdate()}maximizeChart(){this._chartWidget.getResizerDetacher().requestFullscreen()}restoreChart(){this._chartWidget.getResizerDetacher().exitFullscreen()}sessions(){return this._chartWidget.model().model().sessions()}getTimeScaleLogicalRange(){return this._chartWidget.model().timeScale().logicalRange()}getTimezoneApi(){return this._timezoneApi}exportData(e){const t={...e};return void 0!==t.from&&(t.from=this._convertTimeFromPublic(t.from)),void 0!==t.to&&(t.to=this._convertTimeFromPublic(t.to)), -i.e(9498).then(i.bind(i,29630)).then(e=>e.exportData(this._chartWidget.model().model(),t))}barTimeToEndOfPeriod(e){const t=this._prepareEndOfPeriodArgs();return(0,l.barTimeToEndOfPeriod)(t.barBuilder,e,t.intervalObj)}endOfPeriodToBarTime(e){const t=this._prepareEndOfPeriodArgs();return(0,l.endOfPeriodToBarTime)(t.barBuilder,e,t.intervalObj)}properties(){return this._chartWidget.properties()}setBarSpacing(e){this._chartWidget.model().timeScale().setBarSpacing(e)}scrollChartByBar(e){this._chartWidget.model().scrollChartByBar(e)}mergeAllScales(e){this._chartWidget.model().mergeAllScales(e)}chartPainted(){return this._chartWidget.chartPainted()}axesSizeReady(){for(const e of this._chartWidget.paneWidgets()){for(const t of e.leftPriceAxisesContainer().axes())if(!t.sizeReady())return!1;for(const t of e.rightPriceAxisesContainer().axes())if(!t.sizeReady())return!1}return!0}applyOverrides(e){this._chartWidget.applyOverrides(e)}addOverlayStudy(e,t,i){return this._chartWidget.addOverlayStudy(e,t,i)}lineToolsSynchronizer(){return this._chartWidget.lineToolsSynchronizer()}ranges(){throw new Error("not implemented")}getTimeScale(){return new c(this._chartWidget.model().timeScale())}_destroy(){this._chartWidget.hasModel()&&this._chartWidget.model().crossHairSource().moved().unsubscribeAll(this)}_createStudy(e){return Promise.reject("Pine Script™ and java studies are not supported")}_convertTimeToPublic(e){const t=this._getSeriesAligner();return null!==t?t.timeToExchangeTradingDay(1e3*e)/1e3:e}_convertIndexToPublicTime(e){const t=this._chartWidget.model(),i=t.timeScale();if(i.isEmpty())return null;const r=i.points(),n=(0,s.ensureNotNull)(r.firstIndex()),o=(0,s.ensureNotNull)(r.lastIndex());let a=null;if(n<=e&&e<=o)a=r.valueAt(e);else if(e>o){const r=t.mainSeries().syncModel();if(null!==r){const t=(0,s.ensureNotNull)(i.indexToTimePoint(o));a=r.projectTime(t,e-o)}}return null!==a&&(a=this._convertTimeToPublic(a)),a}_getDefaultCreateMultipointShapeOptions(){return{filled:!0}}_convertTimeFromPublic(e){const t=this._getSeriesAligner();return null!==t?t.timeToSessionStart(1e3*e)/1e3:e}_getSeriesAligner(){const e=this._chartWidget.model().mainSeries(),t=e.interval(),i=o.Interval.parse(t),s=e.symbolInfo();return this._alignerResolution.isEqualTo(i)&&this._alignerSymbolInfo===s||(this._dwmAligner=null===s?null:(0,S.createDwmAligner)(t,s),this._alignerResolution=i,this._alignerSymbolInfo=s),this._dwmAligner}_onCrosshairMoved(e){const t=this._convertIndexToPublicTime(e.index);null!==t&&this._crosshairMoved.fire({price:e.price,time:t})}_makeSubscriptionFromDelegate(e){return{subscribe:e.subscribe.bind(e),unsubscribe:e.unsubscribe.bind(e),unsubscribeAll:e.unsubscribeAll.bind(e)}}_prepareEndOfPeriodArgs(){const e=this._chartWidget.model().model(),t=e.timezone(),i=(0,s.ensureNotNull)(e.mainSeries().symbolInfo()),r=e.mainSeries().interval(),n=new a.SessionInfo(t,i.session,i.session_holidays,i.corrections);return{barBuilder:(0,a.newBarBuilder)(r,n,n),intervalObj:o.Interval.parse(r)}}}},79500:(e,t,i)=>{"use strict";i.d(t,{ChartWidgetBase:()=>ui}) -;var s=i(88537),r=i(28353),n=i(98125);function o(e,t){const i=Object.create(Object.getPrototypeOf(e));for(const s of t)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s]);return i}var a=i(56840),l=i(49483),c=i(81836),h=i(76422),d=i(22729);let u;class p extends d.DialogRenderer{constructor(){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)}}show(){this._load().then(e=>e.show())}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}static getInstance(){return u||(u=new p),u}_load(){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(9289),i.e(3921),i.e(1112),i.e(6909),i.e(7419),i.e(9042),i.e(6427),i.e(9283),i.e(9837),i.e(3199),i.e(5827),i.e(4707),i.e(3016),i.e(1075),i.e(9505),i.e(9811),i.e(4862)]).then(i.bind(i,49469)).then(e=>{var t,i;return null===(t=this._dialog)||void 0===t||t.hide(),null===(i=this._dialog)||void 0===i||i.visible().unsubscribe(this._subscribe),this._dialog=new e.ObjectTreeDialogRenderer,this._dialog.visible().subscribe(this._subscribe),this._dialog})}}var _=i(80643),m=i(54089),g=i(24431);var f=i(14291),v=i(81851),S=i(81465),y=i(88564),b=i(23653),w=i(16230),C=i(86441),P=i(45112),T=i(24980),x=i(71413),I=i(15840),M=i(84346),L=i(27759),A=i(77216),E=i(35878),k=i(85733),D=i(16757),V=i(4676),B=i(54386),N=i(93435),R=i(42759),O=i(52640),F=i(6087),W=i(15917),H=i(43842),z=i(22799);const U=parseInt(H.labelheight),j=parseInt(H.bottommargin);function G(e){return e/11}class q{constructor(){this._wrapper=document.createElement("div"),this._element=document.createElement("div"),this._labelElement=document.createElement("div"),this._gearElement=document.createElement("div"),this._currentScale=1,this._info=null,this._mode="auto",this._wrapper.appendChild(this._element),this._wrapper.classList.add(H.wrapper),this._element.classList.add(H.label),this._labelElement.className=H.symbol,this._element.appendChild(this._labelElement),this._gearElement.className=H.gear,this._gearElement.innerHTML=W,this._element.appendChild(this._gearElement)}getElement(){return this._wrapper}setMode(e){this._mode!==e&&(this._mode=e)}align(e,t){const i=G(t);Math.abs(i-this._currentScale)>.1&&(this._currentScale=i,Math.abs(this._currentScale-1)>.1?this._element.style.transform=`scale(${this._currentScale})`:(this._currentScale=1,this._element.style.transform=""))}drawLabelForScreenshot(e,t){if(null===this._info||"gear"===this._mode)return;const i=(0,O.makeFont)(t.fontSize,z.CHART_FONT_FAMILY);e.fillStyle=F.themes[t.theme].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath();const s=G(t.fontSize)*U/2,r=(0,C.point)(t.offset+t.width/2,t.height/2);e.arc(r.x,r.y,s,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=F.themes[t.theme].getThemedColor("color-price-axis-label-text"),e.textAlign="center",e.font=i,e.textBaseline="middle",e.fillText(this._info.label,r.x,r.y)}setAxisNameInfo(e){this._info=e,null!==e&&(this._labelElement.textContent=e.label)}static height(e){return(U+j)*e}}var Y=i(2872),K=i.n(Y),$=i(97056),X=i(94194) -;const Z={enableTooltip:!0,showLabels:!0,enableMenu:!0,enableHighlight:!0};class J{constructor(e,t,i,s,r,n=null){this._invalidated=!0,this._size=new N.Size(0,0),this._offset=0,this._axisInfo=null,this._onLabelHovered=new(K()),this._highlighted=!1,this._labelMode="auto",this._fixedLabelMode=null,this._canvasConfiguredHandler=()=>this.update(),this._timeAxisWidget=n,this._isLeft="left"===e,this._rendererOptionsProvider=s.rendererOptionsProvider,this._sourcesTitlesProvider=s.sourcesTitlesProvider,this._contextMenuItemsProvider=s.contextMenuItemsProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._showHorizontalBorder=Boolean(s.showHorizontalBorder),this._properties=t,this._axisInfo=i,this._labelOptions={...Z,...r},this._properties.lineColor.subscribe(this,this._onPropertyChanged),this._cell=document.createElement("div"),this._cell.classList.add(H["price-axis-stub"]),this._labelOptions.enableTooltip&&this._cell.classList.add("apply-common-tooltip"),this._cell.style.width="25px",this._cell.style.height="100%",this._cell.style.position="absolute",this._cell.style.left="0",this._cell.style.overflow="hidden",this._labelOptions.showLabels?(this._label=new q,this._label.setAxisNameInfo(this._axisInfo),this._cell.appendChild(this._label.getElement()),this._labelOptions.enableTooltip&&(0,X.setTooltipData)(this._cell,"text",e=>this._tooltipContent())):this._label=null,this._mouseEventHandler=new B.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const o=this._canvasBinding.canvas;o.style.position="absolute",o.style.left="0",o.style.top="0"}destroy(){this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._properties.lineColor.unsubscribe(this,this._onPropertyChanged),this._mouseEventHandler.destroy()}mouseEnterEvent(e){this._mouseOrTouchEnterEvent(e)}touchStartEvent(e){this._mouseOrTouchEnterEvent(e)}mouseLeaveEvent(e){this._mouseOrTouchLeaveEvent(e)}touchEndEvent(e){this._mouseOrTouchLeaveEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}update(){this._invalidated=!0}getElement(){return this._cell}onLabelHovered(){return this._onLabelHovered}setSizeAndOffset(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.minWidth=e.w+"px",this._cell.style.height=e.h+"px",this._invalidated=!0),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}paint(e){if(e{this.setLabelMode((0,s.ensureNotNull)(this._fixedLabelMode)),this._fixedLabelMode=null})}}var Q=i(41847);class ee{constructor(e,t,i,s,r,n=null){this._axises=[],this._stubs=[],this._size=new N.Size(0,0),this._onLabelHovered=new(K()),this._scalesProperties=e,this._priceAxisWidgetFactory=i,this._timeAxisWidget=n,this._rendererOptionsProvider=s.rendererOptionsProvider,this._titlesProvider=s.titlesProvider,this._stubContextMenuProvider=s.stubContextMenuProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._showHorisontalBorder=Boolean(s.showHorizontalBorder),this._labelsOptions={...Z,...r};const o=this._scalesProperties.childs();this._stubProperties={lineColor:o.lineColor,fontSize:o.fontSize},this._side=t,this._cell=document.createElement("td"),this._cell.classList.add("chart-markup-table","price-axis-container"),this._cell.style.width="25px",this._cell.style.position="relative"}destroy(){this.setScales([],0,0,0)}onLabelHovered(){return this._onLabelHovered}setScales(e,t,i,r){for(;e.length>this._axises.length&&this._axises.lengtho;){const e=(0,s.ensureDefined)(this._stubs.pop());e.onLabelHovered().unsubscribeAll(this),this._cell.removeChild(e.getElement()),e.destroy()}for(;this._stubs.length{this._labelsOptions.showLabels&&this._labelsOptions.enableHighlight&&this._onLabelHovered.fire({owner:t,axis:(0,s.ensureNotNull)(e)},i)}),this._stubs.push(t),this._cell.appendChild(t.getElement())}const a=this._labelsOptions.enableMenu;1===r?this._stubs.forEach((e,t)=>e.setLabelMode(a?"gear":"symbol")):this._stubs.forEach((e,t)=>e.setLabelMode(te.updateCurrencyLabel())}optimalWidths(){return this._axises.map(e=>e.optimalWidth())}setSizes(e,t){this._size=new N.Size(t.reduce((e,t)=>e+t,0),e),this._cell.style.width=this._size.w+"px",this._cell.style.minWidth=this._size.w+"px", -this._cell.style.height=this._size.h+"px",t.length!==this._axises.length+this._stubs.length&&(0,s.assert)(t.length===this._axises.length+this._stubs.length,"Widgets count should be the same as widths one");let i=0;this._forEachWidgetFromLeft((s,r)=>{const n=t[r];s.setSizeAndOffset(new N.Size(n,e),i),i+=n})}update(){this._axises.forEach(e=>e.update()),this._stubs.forEach(e=>e.update())}paint(e){this._axises.forEach((t,i)=>t.paint(e(i))),this._stubs.forEach((t,i)=>t.paint(e(i)))}paintStubs(e){this._stubs.forEach(t=>t.paint(e))}restoreDefaultCursor(){this._axises.forEach(e=>e.restoreDefaultCursor())}getWidth(){return this._size.w}findAxisWidgetForScale(e){const t=this._axises.find(t=>t.priceScale()===e);return void 0===t?null:t}getScreenshotData(){const e=this._getImage();return{canvas:e,content:e.toDataURL(),contentHeight:this._size.h,contentWidth:this._size.w}}getImage(){return this._getImage()}slotsCount(){return this._axises.length+this._stubs.length}highlightPriceAxisByLabel(e){this._axises.forEach(t=>{const i=t.axisInfo();t.setHighlighted(null!==i&&i.equals(e))})}axes(){return this._axises}_stubParams(e){return{rendererOptionsProvider:this._rendererOptionsProvider,backgroundBasedTheme:this._backgroundBasedTheme,sourcesTitlesProvider:()=>this._titlesProvider(this._side,e),contextMenuItemsProvider:()=>this._stubContextMenuProvider(this._side,e),getBackgroundTopColor:this._getBackgroundTopColor,getBackgroundBottomColor:this._getBackgroundBottomColor,showHorizontalBorder:this._showHorisontalBorder}}_getImage(){const e=(0,N.createDisconnectedCanvas)(document,this._size),t=(0,N.getPrescaledContext2D)(e);let i=0;return this._forEachWidgetFromLeft((e,s)=>{const r=e.getWidth();0!==r&&(t.drawImage(e.getImage(),i,0,r,this._size.h),i+=r)}),e}_forEachWidgetFromLeft(e){const t=[...this._axises,...this._stubs],i="left"===this._side,s=i?-1:t.length,r=i?-1:1;for(let n=i?t.length-1:0;n!==s;n+=r)e(t[n],n,t)}}var te=i(29892),ie=i(76818),se=i(51768),re=i(24377),ne=i(68906),oe=i(45345),ae=i(24633),le=i(64514),ce=i(91216),he=i(4103);const de=(0,P.getHexColorByName)("color-white"),ue=(0,P.getHexColorByName)("color-cold-gray-100"),pe=(0,ne.applyTransparency)((0,P.getHexColorByName)("color-white"),60),_e=(0,P.getHexColorByName)("color-cold-gray-800"),me=(0,ne.applyTransparency)((0,P.getHexColorByName)("color-black"),60);function ge(e){const t=(0,ne.isHexColor)(e)?e.toLowerCase():(0,re.rgbToHexString)((0,re.parseRgb)(e));return oe.watchedTheme.value()===ae.StdTheme.Light?t===de?ue:pe:"#181c27"===t?_e:me}class fe{constructor(){this._width=null,this._currencyInfo=null,this._unitInfo=null,this._fontSize=0,this._backgroundColor="",this._hoverColor="",this._fadeEndColor="",this._hoveredLabel=null,this._currencyAndUnitLabelsWrapper=document.createElement("div"),this._currencyAndUnitLabelsWrapper.className=he["price-axis-currency-label-wrapper"],this._controlsContainer=document.createElement("div"),this._controlsContainer.className=he["price-axis-currency-label"],this._currencyAndUnitLabelsWrapper.appendChild(this._controlsContainer), -this._currencyLabelDiv=document.createElement("div"),this._currencyLabelDiv.className=he.row,this._currencyLabelDiv.classList.add("apply-common-tooltip"),(0,X.setTooltipData)(this._currencyLabelDiv,"text",e=>this._currencyTooltipContent()),this._currencyText=document.createElement("span"),this._currencyText.className=he["price-axis-currency-label-text"],this._currencyLabelDiv.appendChild(this._currencyText),this._currencyArrowDown=document.createElement("span"),this._currencyArrowDown.className=he["price-axis-currency-label-arrow-down"],this._currencyArrowDown.innerHTML=ce,this._currencyLabelDiv.appendChild(this._currencyArrowDown),this._unitLabelDiv=document.createElement("div"),this._unitLabelDiv.className=he.row,this._unitLabelDiv.classList.add("apply-common-tooltip"),(0,X.setTooltipData)(this._unitLabelDiv,"text",e=>this._unitTooltipContent()),this._unitText=document.createElement("span"),this._unitText.className=he["price-axis-currency-label-text"],this._unitLabelDiv.appendChild(this._unitText),this._unitArrowDown=document.createElement("span"),this._unitArrowDown.className=he["price-axis-currency-label-arrow-down"],this._unitArrowDown.innerHTML=ce,this._unitLabelDiv.appendChild(this._unitArrowDown),this._controlsContainer.appendChild(this._currencyLabelDiv),this._controlsContainer.appendChild(this._unitLabelDiv),this._fadeDiv=document.createElement("div"),this._fadeDiv.className=he["price-axis-currency-label-fade"],this._currencyAndUnitLabelsWrapper.appendChild(this._fadeDiv);const e=e=>{null!==this._hoveredLabel&&this._hoveredLabel!==e&&(this._hoveredLabel.style.background=""),this._hoveredLabel=e,""===this._hoverColor&&(this._hoverColor=ge(this._backgroundColor)),null!==e&&(e.style.background=this._hoverColor)};this._currencyLabelDiv.addEventListener("mouseover",()=>e(this._currencyLabelDiv)),this._currencyLabelDiv.addEventListener("mouseout",()=>e(null)),this._unitLabelDiv.addEventListener("mouseover",()=>e(this._unitLabelDiv)),this._unitLabelDiv.addEventListener("mouseout",()=>e(null)),this.disableCurrency(),this.disableUnit()}element(){return this._currencyAndUnitLabelsWrapper}currencyLabelElement(){return this._currencyLabelDiv}unitLabelElement(){return this._unitLabelDiv}isEnabled(){return this.currencyLabelEnabled()||this.unitLabelEnabled()}width(){if(null!==this._width)return this._width;let e=0;if(this.currencyLabelEnabled()){const t=this._currencyText.getBoundingClientRect(),i=this._currencyArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}if(this.unitLabelEnabled()){const t=this._unitText.getBoundingClientRect(),i=this._unitArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}return this._width=e}drawLabel(e,t,i){if(!this.isEnabled())return;const s=this.currencyLabelEnabled()?this._currencyText.textContent||"":this._unitText.textContent||"",r=this._unitText.textContent||"";e.font=(0,O.makeFont)(this._fontSize,z.CHART_FONT_FAMILY) -;const n=new ie.TextWidthCache,o=n.yMidCorrection(e,s),a=n.yMidCorrection(e,r),l=Math.round(Number(he.css_wrapper_margin)*i),c=(0,le.ceiledEven)(t*i)-2*l,h=Math.round(this.labelBottom()*i);e.fillStyle=this._backgroundColor,e.fillRect(l,0,c,h);const d=Math.round(Number(he.css_fade_height)*i),u=e.createLinearGradient(0,h,0,h+d);u.addColorStop(0,this._backgroundColor),u.addColorStop(1,this._fadeEndColor),e.fillStyle=u;const p=Math.round(Number(he.css_value_currency_label_radius)*i);(0,R.drawRoundRect)(e,l,h,c,d,[0,0,p,p]),e.fill();const _=Math.round(Number(he.css_first_row_top_padding)*i),m=Math.round(this._textMarginAndPadding()*i)+l,g=this._oneLineHeight()/2*i,f=_+g,v=Math.ceil(f+2*g);e.fillStyle=this._controlsContainer.style.color,e.textBaseline="middle",e.textAlign="left",(0,N.drawScaled)(e,i,()=>e.fillText(s,m/i,(f+o)/i)),this._isMultiLine()&&(0,N.drawScaled)(e,i,()=>e.fillText(r,m/i,(v+a)/i))}setHidden(e){this._controlsContainer.classList.toggle(he.hidden,e),this._fadeDiv.classList.toggle(he.hidden,e)}enableCurrency(){this._currencyLabelDiv.classList.remove("js-hidden"),this._width=null,this._updateVisibility()}disableCurrency(){this._currencyLabelDiv.classList.add("js-hidden"),this._width=null,this._updateVisibility()}enableUnit(){this._unitLabelDiv.classList.remove("js-hidden"),this._width=null,this._updateVisibility()}disableUnit(){this._unitLabelDiv.classList.add("js-hidden"),this._width=null,this._updateVisibility()}currencyLabelEnabled(){return!this._currencyLabelDiv.classList.contains("js-hidden")}unitLabelEnabled(){return!this._unitLabelDiv.classList.contains("js-hidden")}setCurrencyInfo(e){if(this._currencyInfo===e)return!1;this._currencyInfo=e;const t=null===e.selectedCurrency?(0,r.t)("Mixed"):(0,s.ensureDefined)(e.displayedValues.get(e.selectedCurrency));return this._currencyText.textContent!==t&&(this._currencyText.textContent=t,this._width=null),this._currencyArrowDown.classList.contains("js-hidden")!==e.readOnly&&(this._currencyArrowDown.classList.toggle("js-hidden",e.readOnly),this._currencyLabelDiv.classList.toggle(he.readonly,e.readOnly),this._width=null),!0}setUnitInfo(e){if(null!==this._unitInfo&&this._unitInfo.selectedUnit===e.selectedUnit&&0===this._unitInfo.availableGroups.size==(0===e.availableGroups.size)&&this._unitInfo.originalUnits.size===e.originalUnits.size)return this._unitInfo=e,!1;this._unitInfo=e;const t=null===e.selectedUnit?(0,r.t)("Mixed"):(0,s.ensureDefined)(e.names.get(e.selectedUnit));return this._unitText.textContent!==t&&(this._unitText.textContent=t,this._width=null),this._unitArrowDown.classList.contains("js-hidden")!==(0===e.availableGroups.size)&&(this._unitArrowDown.classList.toggle("js-hidden",0===e.availableGroups.size),this._unitLabelDiv.classList.toggle(he.readonly,0===e.availableGroups.size),this._width=null),!0}updateColors(e,t){this._controlsContainer.style.color=t,this._backgroundColor!==e&&(this._backgroundColor=e,this._fadeEndColor=(0,ne.applyTransparency)(e,100),this._hoverColor=ge(e)),this._controlsContainer.style.background=this._backgroundColor, -null!==this._hoveredLabel&&(this._hoveredLabel.style.background=this._hoverColor),this._fadeDiv.style.background=`linear-gradient(${this._backgroundColor}, ${this._fadeEndColor})`}currencyInfo(){return this._currencyInfo}unitInfo(){return this._unitInfo}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this._currencyLabelDiv.style.fontSize=e+"px",this._unitLabelDiv.style.fontSize=e+"px",this._width=null,this._setLineHeight(this._oneLineHeight()))}labelBottom(){const e=this._oneLineHeight();let t=e+Number(he.css_first_row_top_padding);return this._isMultiLine()&&(t+=e),t}_textMarginAndPadding(){return Number(he.css_row_left_right_margin)+Number(he.css_row_left_right_padding)}_currencyTooltipContent(){const e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map(t=>(0,s.ensureDefined)(e.displayedValues.get(t))).join(", "):""}_unitTooltipContent(){const e=this._unitInfo;return null===e?"":null===e.selectedUnit?Array.from(e.units).map(t=>(0,s.ensureDefined)(e.names.get(t))).join(", "):e.descriptions.get(e.selectedUnit)||""}_setLineHeight(e){this._currencyLabelDiv.style.lineHeight=e+"px",this._unitLabelDiv.style.lineHeight=e+"px"}_updateVisibility(){const e=this.isEnabled();this._currencyAndUnitLabelsWrapper.classList.toggle("js-hidden",!e),this._fadeDiv.classList.toggle("js-hidden",!e)}_oneLineHeight(){return 7+this._fontSize}_isMultiLine(){return this.unitLabelEnabled()&&this.currencyLabelEnabled()}}async function ve(e,t,s){const{UnitConversionRenderer:r}=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(3016),i.e(1075),i.e(2704)]).then(i.bind(i,71834));return new r(e,s,t)}function Se(e,t){let{deltaX:i,deltaY:s}=e;switch(i/=100,s/=100,t.deltaMode){case t.DOM_DELTA_PAGE:i*=120,s*=120;break;case t.DOM_DELTA_LINE:i*=32,s*=32}return{deltaX:i,deltaY:s}}class ye{constructor(){this._totalDeltaX=0,this._totalDeltaY=0,this._prevWheelTime=0}processWheel(e){e.timeStamp-this._prevWheelTime>100&&this._reset(),this._totalDeltaX+=e.deltaX,this._totalDeltaY+=e.deltaY,this._prevWheelTime=e.timeStamp;const t={deltaX:e.deltaX,deltaY:e.deltaY};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(t.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(t.deltaX=0)),Se(t,e)}_reset(){this._totalDeltaX=0,this._totalDeltaY=0}}var be=i(68335),we=i(62138),Ce=i(51264),Pe=i(67337),Te=i(61671),xe=i(28296),Ie=i(8175),Me=i(27966);i(1597);const Le=new T.TranslatedString("change no overlapping labels",(0,r.t)("change no overlapping labels")),Ae=(0,r.t)("Merge all scales into one"),Ee=(0,r.t)("Labels"),ke=(0,r.t)("Currencies"),De=(0,r.t)("Units"),Ve=(0,r.t)("Reset price scale"),Be=(0,r.t)("Auto (fits data to screen)"),Ne=(0,r.t)("Percent",{context:"scale_menu"}),Re=(0,r.t)("Indexed to 100",{context:"scale_menu"}),Oe=(0,r.t)("Logarithmic",{context:"scale_menu"}),Fe=(0,r.t)("Regular",{context:"scale_menu"}),We=(0,r.t)("No overlapping labels",{ -context:"scale_menu"}),He=(0,r.t)("Invert scale",{context:"scale_menu"});const ze=function(e){const t=new Ce.LimitedPrecisionNumericFormatter(e);return(e,i)=>(0,_.isNumber)(i)&&!e.isLog()?t.format(i):""}(4),Ue={contextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,mouseWheelScale:!0,pinchScale:!0,croppedTickMarks:!0};class je{constructor(e,t,i,s,r,n,o,a,l){this._actions=null,this._priceScale=null,this._widthCache=new ie.TextWidthCache(1e3),this._color=null,this._fontSize=null,this._currencyFontSize=0,this._currencyLabelWidth=null,this._isVisible=!0,this._updateTimeout=null,this._currencyMenu=null,this._unitMenu=null,this._prevOptimalWidth=0,this._size=new N.Size(-1,-1),this._currentCursorClassName="",this._destroyed=!1,this._highlighted=!1,this._mouseWheelHelper=null,this._dragScaleActive=!1,this._offset=NaN,this._pinching=!1,this._recalcCurrencyAndUnitVisibility=()=>{if(null===this._currencyLabel)return;const e=(0,Ie.currencyUnitVisibilityProperty)().value(),t="alwaysOff"===e||!this._chart.anyPriceAxisHovered().value()&&"visibleOnMouseOver"===e;this._currencyLabel.setHidden(t)},this._chart=e,this._pane=t,this._undoModel=i,this._properties=s,this._isLeft="left"===n,this._options=(0,_.merge)((0,_.clone)(Ue),o),this._rendererOptionsProvider=r,this._backgroundBasedTheme=l,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=()=>{this._undoModel.model().lightUpdate()},this._canvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const c=this._canvasBinding.canvas;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasConfiguredHandler=()=>this._undoModel.model().lightUpdate(),this._topCanvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const h=this._topCanvasBinding.canvas;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._mouseEventHandler=new B.MouseEventHandler(this._cell,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._options.currencyConversionEnabled||this._options.unitConversionEnabled?(this._currencyLabel=new fe,this._cell.appendChild(this._currencyLabel.element())):this._currencyLabel=null,this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged),this._options.mouseWheelScale&&(this._mouseWheelHelper=new ye,this._cell.addEventListener("wheel",this._onMousewheel.bind(this),{passive:!1})),this._axisInfo=a,this._offset=0,this.restoreDefaultCursor(),(0,Ie.currencyUnitVisibilityProperty)().subscribe(this,this._recalcCurrencyAndUnitVisibility),this._chart.anyPriceAxisHovered().subscribe(this._recalcCurrencyAndUnitVisibility),this._recalcCurrencyAndUnitVisibility(),this.update()}getContextMenuActions(){ -this._initActions();const e=(0,s.ensureNotNull)(this._actions),t=this._chart.actions(),i=[];return i.push(e.reset,new xe.Separator,this._autoScaleAction()),this._isMainSeriesAxis()&&i.push(this._lockScaleAction()),i.push(t.scaleSeriesOnly,this._invertAction(),new xe.Separator,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new xe.Separator),l.CheckMobile.any()||(i.push(this._createMergeScalesAction()),i.push(new xe.Separator)),Pe.enabled("fundamental_widget")||i.push(new xe.Action({actionId:"Chart.PriceScale.Labels",label:Ee,subItems:[t.showSymbolLabelsAction,t.showSeriesLastValue,null,null,t.showHighLowPriceLabels,Pe.enabled("show_average_close_price_line_and_label")?t.showAverageClosePriceLabel:null,null,t.showStudyPlotNamesAction,t.showStudyLastValue,e.alignLabels].filter(Boolean)})),i.push((0,Te.createLinesAction)(this._chart)),this._options.countdownEnabled&&i.push(t.showCountdown),this._undoModel.crossHairSource().isMenuEnabled()&&i.push(t.addPlusButton),!(0,l.onWidget)()&&Pe.enabled("show_chart_property_page")&&Pe.enabled("chart_property_page_scales")&&t.scalesProperties&&i.push(new xe.Separator,t.scalesProperties),i}getElement(){return this._cell}onOptimalWidthNeedToBeRecalculated(e){const t=this.optimalWidth();(this._prevOptimalWidth{this._undoModel.model().fullUpdate(),this._updateTimeout=null},100)),this._prevOptimalWidth=t}optimalWidth(){var e;if(!this.isVisible())return 0;let t=0;const i=this.rendererOptions();if(this._pane.hasState()){const i=(0,N.getContext2D)(this._canvasBinding.canvas);(0,te.setFont)(i,this.baseFont());const s=this.backLabels(!0);for(let e=s.length;e--;){if(!s[e].isAxisLabelVisible())continue;const r=this._widthCache.measureText(i,s[e].text());t=Math.max(t,r);const n=s[e].secondLineText();n&&(t=Math.max(t,this._widthCache.measureText(i,n)));const o=s[e].thirdLineText();o&&(t=Math.max(t,this._widthCache.measureText(i,o)))}const r=this.priceScale(),n=r.marks();n.length>0&&(t=Math.max(t,this._widthCache.measureText(i,n[0].label),this._widthCache.measureText(i,n[n.length-1].label)));const o=(null===(e=r.mainSource())||void 0===e?void 0:e.firstValue())||null;if(null!==o){const e=r.coordinateToPrice(1,o),s=r.coordinateToPrice(this._size.h-2,o);t=Math.max(t,this._widthCache.measureText(i,r.formatPrice(Math.floor(Math.min(e,s))+.11111111111111,o)),this._widthCache.measureText(i,r.formatPrice(Math.ceil(Math.max(e,s))-.11111111111111,o)))}}let r=0;this._isCurrencyLabelEnabled()&&(null===this._currencyLabelWidth&&(this._currencyLabelWidth=(0,s.ensureNotNull)(this._currencyLabel).width()),r=Math.round(this._currencyLabelWidth));const n=t||34;let o=Math.max(r,Math.ceil(i.borderSize+i.offsetSize+i.paddingInner+i.paddingOuter+n+4));return o+=o%2,o}backLabels(e){const t=[],i=this._grouppedSources(),s=s=>{for(const r of s){if(!e&&i.topLevelSources.has(r))continue;const s=r.priceAxisViews(this._pane.state(),this.priceScale());if(s)for(const e of s)t.push(e)}};return s(i.sources), -s(this._pane.state().customSources()),t}setSizeAndOffset(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisWidget "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.height=e.h+"px",this._cell.style.minWidth=e.w+"px"),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}getWidth(){return this._size.w}getImage(){const e=this._size,t=(0,N.createDisconnectedCanvas)(document,e);return(0,N.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvas,0,0,e.w,e.h),null!==this._currencyLabel&&this._currencyLabel.isEnabled()&&this._currencyLabel.drawLabel((0,N.getContext2D)(t),e.w,(0,N.getCanvasDevicePixelRatio)(t)),t}update(){}paint(e){if(!this._isVisible)return;if(e===b.InvalidationLevel.None)return;const t=this._pane.state(),i=!t.maximized().value()&&t.collapsed().value();if(e>b.InvalidationLevel.Cursor){const e=(0,N.getContext2D)(this._canvasBinding.canvas);i||this._alignLabels(),this._drawBackground(e,this._canvasBinding.pixelRatio),this._drawBorder(e,this._canvasBinding.pixelRatio),this._pane.hasState()&&(this.updateCurrencyLabel(),i||(this._drawTickMarks(e,this._canvasBinding.pixelRatio),this._drawBackLabels(e,this._canvasBinding.pixelRatio)))}if(this._pane.hasState()&&!i){const e=(0,N.getContext2D)(this._topCanvasBinding.canvas),t=this._topCanvasBinding.pixelRatio;e.clearRect(0,0,Math.ceil(this._size.w*t)+1,Math.ceil(this._size.h*t)+1),this._drawCrossHairLabel(e,t)}}restoreDefaultCursor(){this._setCursor("")}priceScale(){return(0,s.ensureNotNull)(this._priceScale)}setPriceScale(e){this._priceScale!==e&&(null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=e,null!==e&&(e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated),e.modeChanged().subscribe(this,()=>this.onOptimalWidthNeedToBeRecalculated(!0))))}isVisible(){return this._isVisible}setVisible(e){(e=!!e)!==this._isVisible&&(this._cell.style.display=e?"table-cell":"none",this._isVisible=e)}destroy(){null!==this._currencyMenu&&(this._currencyMenu.close(),this._currencyMenu=null),null!==this._unitMenu&&(this._unitMenu.close(),this._unitMenu=null),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=null,this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._mouseEventHandler.destroy(),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged), -null!==this._actions&&this._actions.reset&&this._actions.reset.destroy(),(0,Ie.currencyUnitVisibilityProperty)().unsubscribeAll(this),this._chart.anyPriceAxisHovered().unsubscribe(this._recalcCurrencyAndUnitVisibility),this._chart.setPriceAxisHovered(this,!1),this._destroyed=!0}axisInfo(){return this._axisInfo}setHighlighted(e){this._highlighted=e}backgroundColor(){return this._pane.state().model().backgroundColor().value()}backgroundTopColor(){return this._pane.state().model().backgroundTopColor().value()}lineColor(){return this._properties.childs().lineColor.value()}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY,"")}rendererOptions(){let e=this._rendererOptionsProvider.options();return this._color===e.color&&this._fontSize===e.fontSize||(this._color=e.color),this._fontSize!==e.fontSize&&(this._widthCache.reset(),this._fontSize=e.fontSize,this._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()),e}mouseEnterEvent(e){this._chart.setPriceAxisHovered(this,!0),this._mouseEnterOrTouchStartEvent(e)}mouseMoveEvent(e){this._mouseOrTouchMoveEvent(e)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseOrTouchMoveEvent(e),this._mouseEnterOrTouchStartEvent(e),this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}pinchStartEvent(){}pinchEvent(e,t,i){if(this._zoomAvailable()&&this._options.pinchScale){if(this._dragScaleActive&&this._finishScale(),!this._pinching)return this._pinching=!0,void this._undoModel.startTwoPointsScalePrice(this._pane.state(),this.priceScale(),t.y,i.y);this._undoModel.twoPointsScalePriceTo(this._pane.state(),this.priceScale(),t.y,i.y)}}pinchEndEvent(){this._pinching=!1,this._undoModel.endTwoPointsScalePrice(this._pane.state(),this.priceScale())}mouseDownOutsideEvent(){this._finishScale()}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseLeaveOrTouchEndEvent(e),this._mouseUpOrTouchEndEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}mouseLeaveEvent(e){this._chart.setPriceAxisHovered(this,!1),this._mouseLeaveOrTouchEndEvent(e)}mouseDoubleClickEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}doubleTapEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}contextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}touchContextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}dataSourceAtPoint(e,t){const i=this._pane.state();if(!i.maximized().value()&&i.collapsed().value())return null;const s=this._grouppedSources(),r=[...s.sources,...s.topLevelSources,...i.customSources()];let n=null,o=null;if(!this._priceScale)return null;const a=(e,t)=>{var i;const s=null!==(i=null==o?void 0:o.result())&&void 0!==i?i:0;e.result()>s&&(o=e,n=t)},l=new C.Point(e,t);for(let e=r.length-1;e>=0;--e){ -const t=r[e],s=t.priceAxisViews(i,this._priceScale);if(s&&0!==s.length)for(let e=s.length-1;e>=0;--e){const i=s[e].renderer();if(void 0!==i.hitTest){const e=i.hitTest(l,this._size.w,this._isLeft?"left":"right");null!==e&&a(e,t)}}}return n}reset(){const e=this._pane.state(),t=this.priceScale();this._undoModel.resetPriceScale(e,t),this.onOptimalWidthNeedToBeRecalculated(!0)}sizeReady(){return this.getWidth()>=this.optimalWidth()&&null===this._updateTimeout}updateCurrencyLabel(){if(null===this._currencyLabel)return;let e=!1;if(this._options.currencyConversionEnabled){const t=this.priceScale().currency(this._undoModel.model().availableCurrencies());null===t||"alwaysOff"===(0,Ie.currencyUnitVisibilityProperty)().value()?(e=this._currencyLabel.currencyLabelEnabled(),this._currencyLabel.disableCurrency()):(e=!this._currencyLabel.currencyLabelEnabled(),this._currencyLabel.enableCurrency(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),e=this._currencyLabel.setCurrencyInfo(t)||e)}if(this._options.unitConversionEnabled){const t=this.priceScale().unit(this._undoModel.model().availableUnits());null===t||"alwaysOff"===(0,Ie.currencyUnitVisibilityProperty)().value()?(e=e||this._currencyLabel.unitLabelEnabled(),this._currencyLabel.disableUnit()):(e=e||!this._currencyLabel.unitLabelEnabled(),this._currencyLabel.enableUnit(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),e=this._currencyLabel.setUnitInfo(t)||e)}this._updateCurrencyLabelFont(),e&&(this._currencyLabelWidth=null)}_grouppedSources(){var e;const t=this._pane,i=t.state().model(),s=this._sameSideSources().slice(),r=t.state(),n=this.priceScale(),o=new Set,a=null!==(e=i.lineBeingEdited())&&void 0!==e?e:i.lineBeingCreated();a&&o.add(a);const l=i.customSourceBeingMoved();null!==l&&o.add(l),i.sourcesBeingMoved().forEach(e=>o.add(e)),i.selection().allSources().forEach(e=>o.add(e));const c=i.hoveredSource();null!==c&&o.add(c);if(n===r.defaultPriceScale()){const e=this._pane.state().dataSources();for(const t of e)r.isOverlay(t)&&s.push(t)}return{sources:s,topLevelSources:o}}_isCurrencyLabelEnabled(){return null!==this._currencyLabel&&this._currencyLabel.isEnabled()}_updateCurrencyLabelFont(){if(null===this._currencyLabel)return;const e=this.fontSize();e!==this._currencyFontSize&&(this._currencyLabel.setFontSize(e),this._currencyFontSize=e,this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())}_alignLabels(){const e=this._size.h;let t=e/2;const i=[],s=this.priceScale(),r=s.orderedSources().slice(),n=this._pane.state(),o=this.rendererOptions();if(s===n.defaultPriceScale()){const e=n.priceDataSources();for(let t=0;t{if(t.ignoreAlignment()||!t.isVisible())return!1;const i=t.height(o),s=t.floatCoordinate();return s>-i&&se.floatCoordinate()<=t),c=i.filter(e=>e.floatCoordinate()>t);l.sort((e,t)=>t.floatCoordinate()-e.floatCoordinate()),l.length>0&&c.length>0&&c.push(l[0]),c.sort((e,t)=>e.floatCoordinate()-t.floatCoordinate());for(const e of i)e.setFixedCoordinate(e.coordinate());if(s.properties().childs().alignLabels.value()){for(let e=1;en-s&&t.setFixedCoordinate(n-s)}for(let e=1;e{if(this._options.croppedTickMarks)return{visible:!0,yCorrection:this._widthCache.yMidCorrection(e,t.label)};const i=t.coord-a/2,s=t.coord+a/2,r=!(s>this._size.h||ithis._size.h||i{for(let s=i.length;s--;){if(!c[s].visible)continue;const r=i[s];e.fillText(r.label,o/t,r.coord+c[s].yCorrection)}}),e.restore()}_hasAlertLabel(){return!1}async _showCurrenciesContextMenu(){if(null!==this._currencyMenu&&this._currencyMenu.isOpened())return void this._currencyMenu.close();(0,se.trackEvent)("GUI","Currency conversion");const{currencyActions:e}=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(3016),i.e(1075),i.e(2704)]).then(i.bind(i,11507)),t=await ve(ke,()=>e(this._undoModel,(0,s.ensureNotNull)(this._currencyLabel).currencyInfo(),this.priceScale()),(0,s.ensureNotNull)(this._currencyLabel).currencyLabelElement());this._destroyed?t.close():this._currencyMenu=t}async _showUnitsContextMenu(){if(null!==this._unitMenu&&this._unitMenu.isOpened())return void this._unitMenu.close();(0,se.trackEvent)("GUI","Unit conversion");const{unitActions:e}=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(3016),i.e(1075),i.e(2704)]).then(i.bind(i,53997)),t=await ve(De,()=>e(this._undoModel,(0,s.ensureNotNull)(this._currencyLabel).unitInfo(),this.priceScale()),(0,s.ensureNotNull)(this._currencyLabel).unitLabelElement());this._destroyed?t.close():this._unitMenu=t}_onFontSizeChanged(){this._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()}_mouseOrTouchMoveEvent(e){if(!this._priceScale)return;this.dataSourceAtPoint(e.localX,e.localY)?this._setCursorClassName("pointer"):this._setResizeCursor()} -_mouseDownOrTouchStartEvent(e){this._zoomAvailable()&&this._options.pressedMouseMoveScale&&!this._pinching&&(this._dragScaleActive=!0,this._undoModel.startScalePrice(this._pane.state(),this.priceScale(),e.localY))}_mouseEnterOrTouchStartEvent(e){this._setResizeCursor()}_pressedMouseOrTouchMoveEvent(e){if(this._dragScaleActive){const t=this.priceScale();this._undoModel.scalePriceTo(this._pane.state(),t,e.localY)}}_mouseUpOrTouchEndEvent(e){this._finishScale()}_finishScale(){this._dragScaleActive&&(this._undoModel.endScalePrice(this._pane.state(),this.priceScale()),this.restoreDefaultCursor(),this._dragScaleActive=!1)}_mouseClickOrTapEvent(e){if(this._currencyLabel){if(this._currencyLabel.currencyLabelElement().contains(e.target))return void this._showCurrenciesContextMenu();if(this._currencyLabel.unitLabelElement().contains(e.target))return void this._showUnitsContextMenu()}const t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._undoModel.selectionMacro(e=>{e.selection().isSelected(t)||(e.clearSelection(),e.addSourceToSelection(t))})}_mouseLeaveOrTouchEndEvent(e){this._setCursorClassName("")}_mouseDoubleClickOrDoubleTapEvent(e){const t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t):(this.reset(),(0,se.trackEvent)("GUI","Double click price scale"))}_contextMenuOrTouchContextMenuEvent(e){if(this._options.contextMenuEnabled){const t=this.dataSourceAtPoint(e.localX,e.localY);if(null!==t&&this._options.contextMenu.source){return void this._undoModel.model().selectionMacro(i=>{i.selection().isSelected(t)||(i.clearSelection(),i.addSourceToSelection(t)),this._pane.showContextMenuForSelection(e)})}this._options.contextMenu.general&&$.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"PriceScaleContextMenu"},{menuName:"PriceScaleContextMenu"})}}_setResizeCursor(){const e=this.priceScale();e.isPercentage()||e.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&(this._options.pressedMouseMoveScale||this._options.mouseWheelScale)&&this._setCursorClassName("ns-resize")}_setCursorClassName(e){let t="";e&&(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t)}_zoomAvailable(){return!this.priceScale().isEmpty()&&this._undoModel.model().zoomEnabled()}_onMousewheel(e){if(!this._zoomAvailable()||!this._options.mouseWheelScale)return;const t=(0,s.ensureNotNull)(this._mouseWheelHelper).processWheel(e).deltaY;if(0===t)return;e.cancelable&&e.preventDefault();const i=this._undoModel,r=this._pane.state(),n=this.priceScale(),o=this._cell.getBoundingClientRect(),a=e.clientY-o.top,l=a+15*t;i.startScalePrice(r,this.priceScale(),a,!0),i.scalePriceTo(r,n,l),i.endScalePrice(r,n),e.stopPropagation()}_drawCrossHairLabel(e,t){var i,s;e.save();const r=this._pane.state(),n=r.model(),o=this.priceScale(),a=[],l=this.priceScale()===r.defaultPriceScale(),c=null!==(i=n.lineBeingEdited())&&void 0!==i?i:n.lineBeingCreated() -;if(c&&(c.priceScale()===o||l&&r.isOverlay(c))){const e=c.priceAxisViews(r,o);e&&e.length&&a.push(e)}const h=n.customSourceBeingMoved();this._addViewsOrMaxMin(null===h?[]:[h],a),this._addViewsOrMaxMin(n.sourcesBeingMoved(),a),this._addViewsOrMaxMin(n.selection().allSources(),a);const d=n.hoveredSource();if(d){const e=r.customSources().includes(d)?o:d.priceScale();if(!n.selection().isSelected(d)&&(this._isFromSameSide(e)||l&&r.isOverlay(d))){const e=null===(s=n.hoveredSource())||void 0===s?void 0:s.priceAxisViews(r,o);e&&e.length&&a.push(e)}}const u=n.crossHairSource().priceAxisViews(r,o);u&&u.length&&a.push(u);const p=this.rendererOptions(),_=this._isLeft?"right":"left";a.forEach(i=>{i.forEach(i=>{e.save(),i.renderer().draw(e,p,this._widthCache,this._size.w,this._size.h,_,t),e.restore()})}),e.restore()}_drawBackground(e,t){const i=Math.ceil(this._size.w*t),s=Math.ceil(this._size.h*t),r=this.backgroundTopColor(),n=this.backgroundColor();if(r===n?(0,N.clearRect)(e,0,0,i+1,s+1,this.backgroundColor()):(0,R.clearRectWithGradient)(e,0,0,i+1,s+1,r,n),this._highlighted){e.globalAlpha=.5;const t=F.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,N.fillRect)(e,0,0,i+1,s+1,t),e.globalAlpha=1}const o=this._pane.state().model(),a=this.priceScale(),l=o.selection().lineDataSources().filter(e=>e.priceScale()===a).reduce((e,t)=>{const i=t.priceAxisPoints();return 0===i.length?e:e.concat(i)},[]);l.length>0&&this._hightlightBackground(e,l,this.priceScale().mainSource(),t);const c=o.crossHairSource();c.startMeasurePoint()&&this._hightlightBackground(e,c.measurePoints(),this.priceScale().mainSource(),t)}_drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)),s=this._isLeft?Math.floor(this._size.w*t)-i:0;e.fillRect(s,0,i,Math.ceil(this._size.h*t)+1),e.restore()}_drawBackLabels(e,t){e.save();const i=this.backLabels(),s=this.rendererOptions(),r=this._isLeft?"right":"left";for(const n of i)n.isAxisLabelVisible()&&(e.save(),n.renderer().draw(e,s,this._widthCache,this._size.w,this._size.h,r,t),e.restore());e.restore()}_hightlightBackground(e,t,i,s){if(!i)return;const r=i.firstValue();if(null===r)return;let n=t[0].price,o=t[0].price;for(let e=1;ei.isOverlay(e)||this._isFromSameSide(e.priceScale()))),0!==e.length)if(1===e.length){const r=e[0].priceAxisViews(i,s);r&&r.length&&t.push(r)}else t.push(this._minMaxViews(e))}_minMaxViews(e){const t=this._pane.state(),i=this.priceScale(),s=[];let r=1/0,n=-1/0,o=null,a=null;for(const s of e){const e=s.priceAxisViews(t,i);if(e&&e.length)for(let t=0;t=n&&(n=s,a=i),s<=r&&(r=s,o=i)}}return a&&s.push(a),o&&s.push(o),s}_isFromSameSide(e){return null!==e&&(this._isLeft?this._pane.state().leftPriceScales():this._pane.state().rightPriceScales()).includes(e)}_sameSideSources(){const e=this._pane.state().sourcesByGroup();return this._isLeft?e.leftPriceScalesSources():e.rightPriceScalesSources()}_initActions(){if(!this._pane.hasState()||null!==this._actions)return;const e=this._undoModel,t=new xe.Action({actionId:"Chart.PriceScale.Reset",label:Ve,icon:Me,shortcutHint:(0,be.humanReadableHash)(be.Modifiers.Alt+82),statName:"ResetScale",onExecute:()=>this.reset()}),i=new xe.Action({actionId:"Chart.PriceScale.ToggleAutoScale",label:Be,checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:()=>{e.togglePriceScaleAutoScaleMode(this.priceScale()),this._updateScalesActions()}}),s=new xe.Action({actionId:"Chart.PriceScale.TogglePercentage",label:Ne,checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:()=>{e.togglePriceScalePercentageScaleMode(this.priceScale()),this._updateScalesActions()}}),r=new xe.Action({actionId:"Chart.PriceScale.ToggleIndexedTo100",label:Re,checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:()=>{e.togglePriceScaleIndexedTo100ScaleMode(this.priceScale()),this._updateScalesActions()}}),n=new xe.Action({actionId:"Chart.PriceScale.ToggleLogarithmic",label:Oe,checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:()=>{e.togglePriceScaleLogScaleMode(this.priceScale()),this._updateScalesActions()}}),o=new xe.Action({actionId:"Chart.PriceScale.ToggleRegular",label:Fe,checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:()=>{e.setPriceScaleRegularScaleMode(this.priceScale()),this._updateScalesActions()}}),a=new xe.Action({actionId:"Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",label:We,checkable:!0,checked:this.priceScale().properties().childs().alignLabels.value(),statName:"TogglePreciseLabels"});a.setBinding(new we.ActionBinder(a,this.priceScale().properties().childs().alignLabels,e,Le));const l=new xe.Action({actionId:"Chart.PriceScale.ToggleInvertScale",label:He,checkable:!0,checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:()=>{e.invertPriceScale(this.priceScale()),this._updateScalesActions()}});this._actions={reset:t,setAutoScale:i,setPercentage:s,setIndexedTo100:r,setLog:n,setRegular:o,alignLabels:a,invertScale:l},this._updateScalesActions()}_logAction(){return this._isMainSeriesAxis()?this._chart.actions().logSeriesScale:(0,s.ensureNotNull)(this._actions).setLog}_percentageAction(){return this._isMainSeriesAxis()?this._chart.actions().percentSeriesScale:(0,s.ensureNotNull)(this._actions).setPercentage}_indexedTo100Action(){return this._isMainSeriesAxis()?this._chart.actions().indexedTo100SeriesScale:(0,s.ensureNotNull)(this._actions).setIndexedTo100}_autoScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().autoSeriesScale:(0, -s.ensureNotNull)(this._actions).setAutoScale}_regularScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().regularSeriesScale:(0,s.ensureNotNull)(this._actions).setRegular}_lockScaleAction(){const e=this._chart.actions().lockSeriesScale,t=ze(this.priceScale(),this._undoModel.model().mainSeriesScaleRatio());return e.update({hint:t}),e}_invertAction(){return this._isMainSeriesAxis()?this._chart.actions().invertSeriesScale:(0,s.ensureNotNull)(this._actions).invertScale}_isMainSeriesAxis(){return this.priceScale().hasMainSeries()}_updateScalesActions(){const e=this.priceScale(),t=this._isMainSeriesAxis(),i=(0,s.ensureNotNull)(e.mainSource()).properties(),r=t&&e.isLockScale(),n=t&&6===i.style.value(),o=(0,s.ensureNotNull)(this._actions);o.setRegular.update({checked:e.isRegular(),disabled:r||n}),o.setPercentage.update({checked:e.isPercentage(),disabled:r||n}),o.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:r||n}),o.setLog.update({checked:e.isLog(),disabled:r||n}),o.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().childs().autoScaleDisabled.value()})}_createMergeScalesAction(){const e=this._chart.actions(),t=this._undoModel.model().priceScaleSlotsCount();if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;const i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new xe.Action({actionId:"Chart.PriceScale.MergeAllScales",label:Ae,subItems:i})}_setCursor(e){let t="";"grabbing"!==e&&"ns-resize"!==e||(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}}function Ge(e,t){return e.position-t.position}function qe(e,t,i){const s=(e.position-t.position)/(e.time-t.time);return Math.sign(s)*Math.min(Math.abs(s),i)}class Ye{constructor(e,t,i,s){this._position1=null,this._position2=null,this._position3=null,this._position4=null,this._animationStartPosition=null,this._durationMsecs=0,this._speedPxPerMsec=0,this._terminated=!1,this._minSpeed=e,this._maxSpeed=t,this._dumpingCoeff=i,this._minMove=s}addPosition(e,t){if(null!==this._position1){if(this._position1.time===t)return void(this._position1.position=e);if(Math.abs(this._position1.position-e)50)return;let i=0;const s=qe(this._position1,this._position2,this._maxSpeed),r=Ge(this._position1,this._position2),n=[s],o=[r];if(i+=r,null!==this._position3){const e=qe(this._position2,this._position3,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=Ge(this._position2,this._position3);if(n.push(e),o.push(t),i+=t,null!==this._position4){const e=qe(this._position3,this._position4,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=Ge(this._position3,this._position4) -;n.push(e),o.push(t),i+=t}}}}let a=0;for(let e=0;ea&&(e.hittest=t,e.source=i,e.renderer=s,e.isCustom=r)}const xt={contextMenuEnabled:!0,contextMenu:Te.defaultContextMenuOptions,priceScaleContextMenuEnabled:!0,legendWidgetEnabled:!0,controlsEnabled:!0,propertyPagesEnabled:!0,sourceSelectionEnabled:!0,countdownEnabled:!0},It=new Map([[M.AreaName.Text,"Text"],[M.AreaName.Style,"Style"]]),Mt=!Pe.enabled("display_legend_on_all_charts");function Lt(e,t){return!(0,M.shouldDefaultActionBeExecuted)(e,t,"pressedMouseMoveHandler","touchMoveHandler")}class At{constructor(e,t,i,s){this._legendWidget=null,this._paneControls=null,this._isDestroyed=!1,this._trackCrosshairOnlyAfterLongTap=(0,x.lastMouseOrTouchEventInfo)().isTouch,this._startTrackPoint=null,this._exitTrackingModeOnNextTry=!1,this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._preventSourceChange=!1,this._clonningAtMoveLineTools=null,this._startCloningPoint=null,this._size=new N.Size(0,0),this._themedTopColor=null,this._initCrossHairPosition=null,this._firstZoomPoint=null,this._editDialog=null, -this._processing=!1,this._touchMove=!1,this._startTouchPoint=null,this._isSelecting=!1,this._prevHoveredHittest=null,this._contextMenuX=0,this._contextMenuY=0,this._startScrollingPos=null,this._isScrolling=!1,this._scrollPriceScale=null,this._scrollXAnimation=null,this._scrollYAnimation=null,this._prevPinchScale=1,this._pinching=!1,this._wasPinched=!1,this._longTap=!1,this._contextMenuOpenedOnLastTap=!1,this._paneControlsResizeObserver=null,this._lastClickedSource=null,this._customLegendWidgetsFactoryMap=new Map,this._prevMoveEventPosition=null,this._onMagnetStateChangedListener=this._onMagnetStateChanged.bind(this),this._onShiftKeyStateChangedListener=this._onShiftKeyStateChanged.bind(this),this._currentCursorClassName="",this._lastFinishedToolId=null,this._needResetMeasureLater=!1,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._prevTooltipData=null,this._errorRenderer=null,this._highlightedPriceAxis=new($e())({owner:"",axis:null}),this._visuallyCollapsed=new($e())(!1),this._canvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._topCanvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._updateVisuallyCollapsed=()=>{this._visuallyCollapsed.setValue(!this.state().maximized().value()&&this.state().collapsed().value())},this._chart=e,this._state=t,this._options=(0,_.merge)((0,_.clone)(xt),i),this._paneWidgetsSharedState=s,this._state&&this._subscribeToState();const r={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks};void 0!==this._options.priceScaleContextMenu&&(r.contextMenu=this._options.priceScaleContextMenu);const n=(e,t,i,s,n)=>new je(this._chart,this,this._chartUndoModel(),i,t,e,r,s,n),o=e.properties().childs().scalesProperties,a=this._chartModel().rendererOptionsProvider(),l={backgroundBasedTheme:e.backgroundBasedTheme(),rendererOptionsProvider:a,getBackgroundTopColor:()=>this._chartModel().backgroundTopColor().value(),getBackgroundBottomColor:()=>this._chartModel().backgroundColor().value()},c={showLabels:!1};this._lhsPriceAxisesContainer=new ee(o,"left",n,l,c),this._rhsPriceAxisesContainer=new ee(o,"right",n,l,c),this._paneCell=document.createElement("td"),this._paneCell.classList.add("chart-markup-table","pane"),this._div=document.createElement("div"),this._div.classList.add("chart-gui-wrapper"),this._div.setAttribute("data-name","pane-widget-chart-gui-wrapper"),this._paneCell.appendChild(this._div),this._canvasBinding=(0,N.createBoundCanvas)(this._div,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const h=this._canvasBinding.canvas;h.style.position="absolute",h.style.left="0",h.style.top="0",this._topCanvasBinding=(0, -N.createBoundCanvas)(this._div,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const d=this._topCanvasBinding.canvas;d.style.position="absolute",d.style.left="0",d.style.top="0",this._rowElement=document.createElement("tr"),this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()),this._options.legendWidgetEnabled&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),this._state&&!this._chart.readOnly()&&this._options.controlsEnabled&&this._loadAndCreatePaneControlsWidget(),(0,nt.magnetEnabled)().subscribe(this._onMagnetStateChangedListener),(0,ot.shiftPressed)().subscribe(this._onShiftKeyStateChangedListener),this._paneCell.addEventListener("dragover",e=>{e.dataTransfer&&Array.from(e.dataTransfer.files).some(blobImageFilter)&&e.preventDefault()}),this.setCursorForTool(),this._mouseEventHandler=new B.MouseEventHandler(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag}),this._prevHoveredHittest=null,this._highlightedPriceAxis.subscribe(e=>this._highlightPriceAxisByLabel(e.axis)),this._prevPinchScale=0,this._isDestroyed=!1}destroy(){var e;this._chart.onPaneWidgetDestroyed(this),this._customLegendWidgetsFactoryMap.clear(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._legendWidget&&(this._legendWidget.destroy(),this._legendWidget=null),null!==this._paneControlsResizeObserver&&this._paneControlsResizeObserver.disconnect(),null!==this._paneControls&&(this._paneControls.destroy(),this._paneControls=null),this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this.hasState()&&this._unsubscribeFromState(),(0,nt.magnetEnabled)().unsubscribe(this._onMagnetStateChangedListener),(0,ot.shiftPressed)().unsubscribe(this._onShiftKeyStateChangedListener),this._paneWidgetsSharedState.onPaneDestroyed(this),this._errorRenderer&&this._errorRenderer.then(e=>{e.destroy(),this._errorRenderer=null}),this._prevHoveredHittest=null,this._mouseEventHandler.destroy(),null===(e=this._rowElement.parentElement)||void 0===e||e.removeChild(this._rowElement),this._isDestroyed=!0}size(){return this._size}setSize(e){(0,s.assert)(e.w>=0&&e.h>=0,"Try to set invalid size to PaneWidget "+JSON.stringify(e)),this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._paneCell.style.width=e.w+"px",this._paneCell.style.height=e.h+"px",this._div.style.width=e.w+"px",this._div.style.height=e.h+"px", -this._rowElement.classList.toggle("js-hidden",0===e.h),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e),null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.w))}width(){return this._size.w}height(){return this._size.h}backgroundColor(){return this._chartModel().backgroundColor().value()}highlightedPriceAxis(){return this._highlightedPriceAxis}processDoubleClickOnSource(e,t){(0,E.isDataSource)(e)&&e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)}stretchFactor(){return this._state?this._state.stretchFactor():0}setStretchFactor(e){this.hasState()&&this.state().setStretchFactor(e)}setCursorForTool(e,t,i){if(t&&t.mod()&&e)return void this._setCursorClassName("pointer");if(void 0!==i){switch(i){case it.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case it.PaneCursorType.HorizontalResize:this._setCursorClassName("ew-resize");break;case it.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case it.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case it.PaneCursorType.Default:this._setCursorClassName("default");break;case it.PaneCursorType.Pointer:this._setCursorClassName("pointer");break;case it.PaneCursorType.Grabbing:this._setCursorClassName("grabbing")}return}const s=k.tool.value();if((0,k.toolIsCursor)(s)){if(null!==this._paneWidgetsSharedState.draggingSource()||this._isScrolling||this._chartUndoModel()&&this._chartUndoModel().model().sourcesBeingMoved().length)return void this._setCursorClassName("grabbing");if(e&&this._options.sourceSelectionEnabled)return void this._setCursorClassName("pointer")}if("eraser"===s)return void this._setCursorClassName("eraser");if("zoom"===s)return void this._setCursorClassName("zoom-in");const r=k.cursorTool.value();"dot"!==r?"arrow"!==r?this._setCursorClassName(""):this._setCursorClassName("default"):this._setCursorClassName("dot")}showContextMenuForSelection(e){const t=this._chartUndoModel().selection();if(t.isEmpty())return;const i=t.dataSources().filter(e=>e.hasContextMenu());this.showContextMenuForSources(i,e)}async showContextMenuForSources(e,t,i){var s;if(!e.length)return Promise.resolve(null);const r=e[0],n=(0,_.merge)((0,_.clone)(this._options.contextMenu),i||{}),o=new Te.ActionsProvider(this._chart,n);if(r===this._chartUndoModel().crossHairSource())return r.handleContextMenuEvent(t),Promise.resolve(null);{const i=await o.contextMenuActionsForSources(e,t);if(0===i.length)return Promise.resolve(null);{let e;return e=r instanceof lt.Series?{menuName:"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,f.isLineTool)(r)?{menuName:"ObjectTreeContextMenu",detail:{type:"shape",id:null!==(s=null==r?void 0:r.id())&&void 0!==s?s:null}}:{menuName:"ObjectTreeContextMenu",detail:{type:"study",id:(null==r?void 0:r.id())||null}},$.ContextMenuManager.createMenu(i,void 0,e).then(e=>(e.show(t),e))}}}leftPriceAxisesContainer(){return this._lhsPriceAxisesContainer}rightPriceAxisesContainer(){return this._rhsPriceAxisesContainer} -setPriceAxisSizes(e,t,i){this._priceAxisesContainer(e).setSizes(t,i)}state(){return(0,s.ensureNotNull)(this._state)}hasState(){return null!==this._state}setState(e){this._state!==e&&(this.hasState()&&this._unsubscribeFromState(),this._state=e,this.hasState()&&(this._subscribeToState(),this.updatePriceAxisWidgets()))}getScreenshotData(e){const t=[],i=[];let s,r=[];const n=this.state().sourcesByGroup().priceSources().slice().reverse(),o=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();for(const a of n){const n=a.statusView();if((0,v.isStudy)(a)&&(o.showLegend.value()||(null==e?void 0:e.showCollapsedStudies))){const s=o.showStudyTitles.value(),r=s;a.properties().visible.value()&&n&&r&&(t.push(s?a.statusProvider(null==e?void 0:e.status).text():""),i.push(a.valuesProvider().getValues(null)))}else a===this._chartModel().mainSeries()&&n&&o.showSeriesTitle.value()&&(s=a.statusProvider((null==e?void 0:e.status)||{}).text(),r=a.valuesProvider().getValues(null))}return{type:"pane",leftAxis:this._lhsPriceAxisesContainer.getScreenshotData(),rightAxis:this._rhsPriceAxisesContainer.getScreenshotData(),content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this._size.w,contentHeight:this._size.h,studies:t,studiesValues:i,containsMainSeries:this.containsMainSeries(),mainSeriesText:s,mainSeriesValues:r}}updatePriceAxisWidgets(){if(!this.hasState())return;const e=this._chartModel(),t=e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount(),s=this.state(),r=s.visibleLeftPriceScales(),n=s.visibleRightPriceScales();this._lhsPriceAxisesContainer.setScales(r,i.left,t.leftPriceScales().length,i.left+i.right),this._rhsPriceAxisesContainer.setScales(n,i.right,t.rightPriceScales().length,i.left+i.right)}update(){this.hasState()&&(this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls())}updateStatusWidget(e=b.InvalidationLevel.None){this.hasState()&&null!==this._legendWidget&&(e===b.InvalidationLevel.Full?this._legendWidget.updateLayout():this._legendWidget.update())}updateControls(){this.hasState()&&null!==this._paneControls&&this._paneControls.update()}updateThemedColors(e){this._themedTopColor=e.topColor,this._updateByThemedColors()}statusWidget(){return this._legendWidget}getElement(){return this._rowElement}canvasElement(){return this._canvasBinding.canvas}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}pinchStartEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&null===this._paneWidgetsSharedState.pinchingPane()&&(this._onTouchEvent(),this._options.handleScale.pinch&&(this._terminateActiveAnimations(),this._prevPinchScale=1,this._pinching=!0,this._wasPinched=!0,this._paneWidgetsSharedState.setPinchingPane(this)))}pinchEvent(e,t,i,s){if(null!==this._paneWidgetsSharedState.scrollingPane()||this._paneWidgetsSharedState.pinchingPane()!==this)return;if(this._onTouchEvent(), -!this._options.handleScale.pinch)return;const r=10*(s-this._prevPinchScale);this._prevPinchScale=s,this._chartModel().zoomTime(e.x,r,!0),this._prevPinchScale=s}pinchEndEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&this._paneWidgetsSharedState.pinchingPane()===this&&(this._onTouchEvent(),this._pinching=!1,this._paneWidgetsSharedState.setPinchingPane(null))}mouseClickEvent(e){this._onMouseEvent(),this._mouseClickOrTapEvent(e)}tapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseClickOrTapEvent(e))}mouseDownEvent(e){this._onMouseEvent(),this.hasState()&&this._mouseDownOrTouchStartEvent(e,(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY)))}touchStartEvent(e){if(this._paneWidgetsSharedState.startTouch(this),this._preventTouchEventsExceptPinch())return;const t=this._chartModel().crossHairSource(),i=!this._trackCrosshairOnlyAfterLongTap&&t.pane===this._state&&Number.isFinite(t.originX())&&Number.isFinite(t.originY())&&Math.abs(t.originX()-e.localX)+Math.abs(t.originY()-e.localY)<5;this._onTouchEvent(),this._chart.setActivePaneWidget(this);const r=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));i&&(r.source===t||t.selectPointMode().value()?this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY)):!this._chart.readOnly()&&(0,f.isLineTool)(r.source)&&r.source.userEditEnabled()&&this._chartUndoModel().selectionMacro(e=>{var t;e.clearSelection(),e.addSourceToSelection(r.source,null===(t=r.hittest)||void 0===t?void 0:t.data())})),this._mouseDownOrTouchStartEvent(e,r),this._mouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._onMouseEvent(),this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._paneWidgetsSharedState.endTouch(this),this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseOrTouchLeaveEvent(e),this._mouseUpOrTouchEndEvent(e))}mouseMoveEvent(e){this._onMouseEvent(),this._mouseOrTouchMoveEvent(e)}pressedMouseMoveEvent(e){this._onMouseEvent(),this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._pressedMouseOrTouchMoveEvent(e))}mouseLeaveEvent(e){this._onMouseEvent(),this._mouseOrTouchLeaveEvent(e)}mouseDoubleClickEvent(e){this._onMouseEvent(),this._mouseDoubleClickOrDoubleTapEvent(e)}wheelClickEvent(e){var t,i;if(this._chart.readOnly())return;const r=this._dataSourceAtPoint(e.localX,e.localY);if(null===r||r.isCustom||null===r.source)return;if(((null===(t=r.hittest)||void 0===t?void 0:t.result())||0)<=M.HitTestResult.MOVEPOINT_BACKGROUND)return;const n=new A.EnvironmentState(e),o=null===(i=r.hittest)||void 0===i?void 0:i.eraseMarker();if(n.mod()&&void 0!==o&&r.source.processErase)return void r.source.processErase(this._chartUndoModel(),o);const a=this._chartUndoModel();a.selection().isSelected(r.source)||a.selectionMacro(e=>{e.clearSelection();const t=(0,s.ensureNotNull)(r.source);e.addSourceToSelection(t,Pt(r,t))}),this._chart.removeSelectedSources()}doubleTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(), -this._mouseDoubleClickOrDoubleTapEvent(e))}longTapEvent(e){if(null===this._state||this._preventTouchEventsExceptPinch())return;if(this._onTouchEvent(),this._longTap=!0,null!==this._startTrackPoint||!this._trackingModeShouldBeActive())return;const t=this._chartModel().selection();if(!t.isEmpty()){const i=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));if(null!==i.source&&t.isSelected(i.source))return}this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY),new A.EnvironmentState(e))}mouseEnterEvent(e){this._onMouseEvent(),this.hasState()&&(this._chart.setActivePaneWidget(this),this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e)))}contextMenuEvent(e){this._onMouseEvent(),this._contextMenuEvent(e)}touchContextMenuEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._contextMenuEvent(e))}mouseDownOutsideEvent(){this._processOutsideClick({hittest:null,isCustom:!1,renderer:null,source:null})}cancelZoom(){this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,this._preventCrossHairMove()&&this._clearCursorPosition()}startTrackingMode(e,t,i){this._startChangeLineToolParams=null,this._startMoveSourceParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._chartUndoModel().selectionMacro(e=>e.clearSelection()),this._startTrackPoint=e,this._exitTrackingModeOnNextTry=!1,this._setCursorPosition(t.x,t.y,i),this._initCrossHairPosition=this._chartModel().crossHairSource().currentPoint()}setDragToAnotherPaneCursor(){this._setCursorClassName("grabbing")}cloneLineTools(e,t){return this._chartUndoModel().cloneLineTools(e,t)}exitTrackingMode(){null!==this._state&&null!==this._startTrackPoint&&(this._exitTrackingModeOnNextTry=!0,this._tryExitTrackingMode())}trackingModeEnabled(){return null!==this._state&&null!==this._startTrackPoint}addCustomWidgetToLegend(e,t){this._options.legendWidgetEnabled&&(this._customLegendWidgetsFactoryMap.set(e,t),null!==this._legendWidget&&this._legendWidget.addCustomWidgetToLegend(e,t))}containsMainSeries(){return!!this.hasState()&&this.state().containsMainSeries()}paint(e,t){if(!this._chartUndoModel()||!this.hasState())return;this._state&&(e.priceScaleSideMaxLevel("left")>b.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>b.InvalidationLevel.Cursor)&&(this._recalculatePriceScales((0,ht.viewportChangeEvent)()),this._chartModel().updateCrosshairPositionByOriginCoords());const i=e.fullInvalidation();if(i>b.InvalidationLevel.Cursor){const e=this._chartModel().crossHairSource(),t=e.originX(),i=e.originY();if(e.pane===this._state&&Number.isFinite(t)&&Number.isFinite(i)){const e=this._dataSourceAtPoint(t,i);null!==e&&this._updateHoveredSource(e,(0,ot.globalEnvironmentState)())}}if(this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left")),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right")),i===b.InvalidationLevel.None)return -;const r=this._state&&(this._state.maximized().value()||!this._state.collapsed().value());if(i>b.InvalidationLevel.Cursor){const e=(0,s.ensureNotNull)(this._canvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const i=this._canvasRenderParams();this._drawBackground(e,i),r&&this._drawSources(e,i,t)}if(null!==this._state){const e=(0,s.ensureNotNull)(this._topCanvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=this._topCanvasRenderParams();e.clearRect(0,0,Math.ceil(this._size.w*t.pixelRatio),Math.ceil(this._size.h*t.pixelRatio)),r&&this._drawSeriesTopViews(e,t),this._drawCrossHair(e,t),r&&this._drawActiveLineTools(e,t)}}cancelCreatingLineTool(){const e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0&&!(0,et.isLineDrawnWithPressedButton)(t.toolname)){const i=t.points();if(i.length>2){const s=i[i.length-2];e.continueCreatingLine(s),this._finishTool(t)}else e.cancelCreatingLine()}else e.cancelCreatingLine();null!==this._firstZoomPoint&&this.cancelZoom(),this.setCursorForTool()}drawRightThere(e){if((0,f.isLineToolName)(e)&&this.hasState()){const t=this._chartUndoModel(),i=t.crossHairSource(),s=t.model().magnet().align(i.price,i.index,this.state());t.createLineTool({pane:this.state(),point:{index:i.index,price:s},linetool:e})}}cancelMeasuring(){this._chartUndoModel().crossHairSource().clearMeasure(),(0,k.resetToCursor)(),this.setCursorForTool()}async setErrorMessage(e){var t,i,s;e&&!this._errorRenderer&&(this._errorRenderer=this._createErrorBlock()),null===(t=await this._errorRenderer)||void 0===t||t.update({message:null==e?void 0:e.message,icon:(null===(i=this._state)||void 0===i?void 0:i.containsMainSeries())||(null===(s=this._state)||void 0===s?void 0:s.maximized().value())?null==e?void 0:e.icon:void 0,backgroundColor:`linear-gradient(${this._chartModel().backgroundTopColor().value()}, ${this._chartModel().backgroundColor().value()})`,textColor:this._chartModel().isDark()?_t:pt})}collapsedHeight(){var e,t;return Math.max(Math.ceil(null!==(t=null===(e=this._paneControls)||void 0===e?void 0:e.bottomWithMargin())&&void 0!==t?t:0),33)}_topCanvasRenderParams(){return{pixelRatio:this._topCanvasBinding.pixelRatio,physicalWidth:this._topCanvasBinding.canvas.width,physicalHeight:this._topCanvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_canvasRenderParams(){return{pixelRatio:this._canvasBinding.pixelRatio,physicalWidth:this._canvasBinding.canvas.width,physicalHeight:this._canvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_tryExitTrackingMode(e){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,e||this._clearCursorPosition())}_tryStartMeasure(e,t,i,s,r){return!(!(0,k.toolIsMeasure)(k.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,i),s=this._chartModel().magnet().align(s,r,this.state()),t.startMeasuring({price:s,index:r},this.state()),!0)}_tryFinishMeasure(e,t){ -if(t.startMeasurePoint()&&!t.endMeasurePoint()){let i=t.price;const s=t.index;return i=this._chartModel().magnet().align(i,s,this.state()),t.finishMeasure({price:i,index:s}),e.isTouch?(0,k.resetToCursor)():this._needResetMeasureLater=!0,this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1}_tryStartZoom(e,t,i,s){const r=this._chart.model().model().zoomEnabled();if("zoom"===k.tool.value()&&r){const r=this._chartUndoModel(),n=r.timeScale().indexToCoordinate(i)-.5*r.timeScale().barSpacing();return this._firstZoomPoint={price:t,index:i,x:n,y:e.localY},this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,s),this._chartModel().crossHairSource().startSelection(this.state()),!0}return!1}_finishZoom(e){const t=this.state(),i=t.defaultPriceScale(),r=(0,s.ensureNotNull)(t.mainDataSource()).firstValue(),n=i.coordinateToPrice(e.localY,(0,s.ensureNotNull)(r)),o=this._chartUndoModel(),a=Math.round(o.timeScale().coordinateToIndex(e.localX)),l=(0,s.ensureNotNull)(this._firstZoomPoint);a!==l.index&&o.zoomToViewport(l.index,a,l.price,n,t),this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,(0,k.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition()}_tryFinishZoom(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}_tryHandleEraserMouseDown(e,t){if(e.source&&"eraser"===k.tool.value()&&!e.isCustom&&(!(i=e.source)||!i.customization||!i.customization.disableErasing)){const i=this._chartUndoModel();if(null!==e.hittest&&((0,f.isLineTool)(e.source)||(0,v.isStudy)(e.source))){const s=e.hittest.eraseMarker();return t.mod()&&void 0!==s&&e.source.processErase?e.source.processErase(i,s):i.removeSource(e.source,!1),!0}}var i;return!1}_tryStartChangingLineTool(e,t,i,r){var n,o;if(e.isTouch&&null!==this._startTrackPoint)return!1;const a=t.hittest;if((!e.isTouch||!this._preventSourceChange)&&a&&(0,f.isLineTool)(t.source)&&a.result()===M.HitTestResult.CHANGEPOINT){const l=this._chartUndoModel(),c=(0,s.ensure)(null===(n=this.state().mainDataSource())||void 0===n?void 0:n.firstValue()),h=(0,s.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,c);l.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(t.source,a.data())});const d=l.model().magnet().align(h,r,this.state()),u=null===(o=a.data())||void 0===o?void 0:o.pointIndex;return this._startChangeLineToolParams={source:t.source,startPoint:{index:r,price:d},screenPoint:{x:e.localX,y:e.localY},pointIndex:u,envState:i},!0}return this._startChangeLineToolParams=null,!1}_tryStartCloning(e,t,i,s){if(i.mod()){const t=this._chartUndoModel().selection().dataSources().filter(e=>e.cloneable());if(s&&s.cloneable()&&t.push(s),t.length>0)return this._clonningAtMoveLineTools=t.map(e=>e.id()),this._startCloningPoint=new C.Point(e.localX,e.localY),!0}return!1}_tryFinishClonning(e,t,i){const r=this._chartUndoModel(),n=this._chartModel();if(t.mod()&&this._clonningAtMoveLineTools){const o=new C.Point(e.localX,e.localY),a=(0,s.ensureNotNull)(this._startCloningPoint).subtract(o).length(),l=[] -;for(const e of this._clonningAtMoveLineTools){const t=n.dataSourceForId(e);null!==t&&l.push(t)}if(0===l.length)return!1;if(a>8){const n=this.cloneLineTools(l,!0).map(e=>(0,s.ensureNotNull)(r.model().dataSourceForId(e)));r.selectionMacro(e=>{e.clearSelection();let t=null;n.forEach(s=>{null===t&&(t=Pt(i,s)),e.addSourceToSelection(s,t)})});const o=new C.Point(e.localX,e.localY),a=(0,s.ensureNotNull)(n[0].priceScale()),c=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue(),h={index:r.timeScale().coordinateToIndex(e.localX),price:a.coordinateToPrice(e.localY,(0,s.ensureNotNull)(c))};r.startMovingSources(n,{logical:h,screen:o},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1}_mouseDownEventForLineTool(e,t,i,r){var n,o;const a=k.tool.value();if(!this.hasState()||(0,et.isLineToolDrawWithoutPoints)(a))return;const l=this._chartUndoModel();let c=!1,h=null;(0,k.hideAllDrawings)().value()&&(0,ct.toggleHideMode)(),(0,k.lockDrawings)().setValue(!1),e.isTouch&&!e.stylus&&((0,f.isLineToolName)(a)&&!(0,et.isLineDrawnWithPressedButton)(a)||l.lineBeingCreated())&&this._initToolCreationModeParams(e);const d=l.lineBeingCreated();if(d&&!(0,et.isLineDrawnWithPressedButton)(d.toolname)){const a=(0,s.ensure)(null===(n=d.ownerSource())||void 0===n?void 0:n.firstValue());if(e.isTouch&&!e.stylus){if(!this._startTouchPoint){this._startTouchPoint=new C.Point(e.pageX,e.pageY);const t=d.points(),i=t[t.length-1],r=l.timeScale().indexToCoordinate(i.index),n=(0,s.ensureNotNull)(d.priceScale()).priceToCoordinate(i.price,a);return void(this._initCrossHairPosition=new C.Point(r,n))}}else if(!e.isTouch){h=d;const n=l.model().paneForSource(d);if(n!==this._state&&null!==n){const i=this._externalPaneXCoord(n,e.localX),r=this._externalPaneYCoord(n,e.localY);c=l.continueCreatingLine({index:Math.round(l.timeScale().coordinateToIndex(i)),price:(0,s.ensure)(null===(o=d.priceScale())||void 0===o?void 0:o.coordinateToPrice(r,a))},t)}else{const e=l.model().magnet().align(r,i,this.state());c=l.continueCreatingLine({index:i,price:e},t)}}}else if(!e.isTouch||e.stylus||(0,et.isLineDrawnWithPressedButton)(a)){const e={index:i,price:l.model().magnet().align(r,i,this.state())};h=l.createLineTool({pane:this.state(),point:e,linetool:a}),l.lineBeingCreated()||(c=!0)}const u=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));h&&l.selectionMacro(e=>{var t;return e.addSourceToSelection((0,s.ensureNotNull)(h),null===(t=u.hittest)||void 0===t?void 0:t.data())}),c&&h&&(this._finishTool(h,u),e.preventDefault())}_handleSelectionMouseDownAndGetJustDeselectedSource(e,t,i){const s=this._chartUndoModel();let r=null;if(null===t.source||t.source.isSelectionEnabled()){let n=e.isTouch?Boolean(t.hittest&&t.hittest.result()>=M.HitTestResult.MOVEPOINT_BACKGROUND):Boolean(t.hittest&&t.hittest.result()>M.HitTestResult.MOVEPOINT_BACKGROUND);this._preventSourceChange&&(n=!1),s.selectionMacro(e=>{var s;n&&t.source?(i.mod()||e.selection().isSelected(t.source)||e.clearSelection(),i.mod()&&e.selection().isSelected(t.source)?(r=t.source, -e.removeSourceFromSelection(t.source)):e.addSourceToSelection(t.source,null===(s=t.hittest)||void 0===s?void 0:s.data()),e.selection().allSources().length>1&&(0,se.trackEvent)("GUI","Multiselect","Click Select")):i.mod()||e.clearSelection()})}return r}_processMouseMoveWhileZoom(e,t){this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,t)}_updateCommonTooltip(e,t){let i=null;if(null!==e&&null!==e.hittest){const t=e.hittest.data();t&&(i=t.tooltip||null)}if(null===this._prevTooltipData&&null===i)return;if(null===i||""===i.text)return this._prevTooltipData=null,void(0,st.hide)(t);if(this._prevTooltipData&&(0,w.default)(i,this._prevTooltipData))return;this._prevTooltipData=i;const s=(0,_.clone)(i);if(void 0!==s.rect){const e=this._paneCell.getBoundingClientRect();s.rect.x+=e.left,s.rect.y+=e.top}(0,st.show)(s)}_setCursorPositionOnExternalPane(e,t,i,s){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i);this._chart.paneByState(e)._setCursorPosition(t,i,s)}_setCursorPosition(e,t,i){this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)}_setCursorClassName(e){let t="";e&&(t="pane--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._paneCell.classList.remove(this._currentCursorClassName),t&&this._paneCell.classList.add(t),this._currentCursorClassName=t,this._paneCell.style.cursor)}_processMouseUpOrTouchEndHandler(e){var t;null===(t=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY)).hittest)||void 0===t||t.tryCallMouseUpOrTouchEndHandler(e)}_crossHairShouldBeVisible(){const e=this._chartModel().crossHairSource();return(0,f.isLineToolName)(k.tool.value())||(0,k.toolIsMeasure)(k.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()}_clearCursorPosition(){this._chartModel().clearCurrentPosition()}_dataSourceAtPoint(e,t){if(!this.hasState())return null;const i={source:null,hittest:null,isCustom:!1,renderer:null},s=this._chartUndoModel();if((0,f.isLineToolName)(k.tool.value())||null!==s.lineBeingCreated())return i;if(this._currentChangingLineToolHitTest)return this._currentChangingLineToolHitTest;if(this._currentMovingHitTest)return this._currentMovingHitTest;const r=this.state(),n=r.height(),o=r.width(),a=Tt.bind(null,i),l=this._canvasRenderParams(),c=new C.Point(e,t);if(!this.state().maximized().value()&&this.state().collapsed().value()||(0,x.lastMouseOrTouchEventInfo)().isTouch&&(k.isPointSelectedNow.value()||null!==this._startTrackPoint))return this._hitTestSources(l,[s.crossHairSource()],c,a,!1),i;const h=r.sourcesByGroup(),d=s.selection();this._hitTestSources(l,d.dataSources(),c,a,!1),this._hitTestSources(l,d.customSources(),c,a,!0);const u=new Set(d.allSources().map(e=>e.id()));this._hitTestSources(l,[s.crossHairSource()],c,a,!1,u),this._hitTestSources(l,r.customSources(L.CustomSourceLayer.Topmost),c,a,!0,u),this._hitTestSources(l,h.tradingSources(),c,a,!1,u), -this._hitTestSources(l,r.customSources(L.CustomSourceLayer.Foreground),c,a,!0,u);const p=[...this._chartModel().multiPaneSources(r),...h.hitTestSources()];if(this._hitTestSources(l,p,c,a,!1,u),this.containsMainSeries()){const e=s.barsMarksSources();for(let t=0;t=0;--s){const h=t[s];if(void 0!==o&&o.has(h.id()))continue;const d=h.paneViews(a);if(null!==d&&0!==d.length)for(let t=d.length-1;t>=0;--t){const s=d[t].renderer(l,c);if(s&&s.hitTest){const t=s.hitTest(i,e);null!==t&&r(t,h,s,n)}}}}_tryStartMovingLineTool(e,t,i,r){var n,o;if(null===t.source||!t.source.movable()||null!==this._startTrackPoint)return!1;if(!this._preventSourceChange){const a=this._chartUndoModel(),l=(0,s.ensureNotNull)((0,s.ensureNotNull)(this._state).mainDataSource()).firstValue(),c=(0,s.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,(0,s.ensureNotNull)(l));let h=(t.source.isSelectionEnabled()?a.selection().allSources():[t.source]).filter(at);const d=h.filter(f.isLineTool);h=d.length>0?d:h.includes(t.source)?[t.source]:[h[0]];const u=new C.Point(e.localX,e.localY),p={index:r,price:c},_=null===(o=null===(n=t.hittest)||void 0===n?void 0:n.data())||void 0===o?void 0:o.activeItem;return this._startMoveSourceParams={source:h,startPoint:{logical:p,screen:u},activeItem:void 0===_?null:_,envState:i},!0}return this._startMoveSourceParams=null,!1}_chartModel(){return this._chart.model().model()}_chartUndoModel(){return this._chart.model()}_externalPaneXCoord(e,t){t+=this._div.getBoundingClientRect().left+document.body.scrollLeft;const i=(0,s.ensureNotNull)(this._chart.paneByState(e)),r=i._div.getBoundingClientRect().left+document.body.scrollLeft;return i._correctXCoord(t-r)}_externalPaneYCoord(e,t){t+=this._div.getBoundingClientRect().top+document.body.scrollTop;const i=(0,s.ensureNotNull)(this._chart.paneByState(e)),r=i._div.getBoundingClientRect().top+document.body.scrollTop;return i._correctYCoord(t-r)}_correctXCoord(e){return Math.max(0,Math.min(e,this._size.w-1))}_correctYCoord(e){return Math.max(0,Math.min(e,this._size.h-1))}_processScroll(e){if(!this._chart.model().model().scrollEnabled())return;const t=Date.now();this._startScrollingPos||this._preventScroll()||(this._startScrollingPos={x:e.clientX,y:e.clientY,timestamp:t,localX:e.localX,localY:e.localY}),null!==this._scrollXAnimation&&this._scrollXAnimation.addPosition(e.localX,t),null!==this._scrollYAnimation&&this._scrollYAnimation.addPosition(e.localY,t);const i=this._chartUndoModel();let s=this.state().defaultPriceScale() -;if(this._startScrollingPos&&!this._isScrolling&&(this._startScrollingPos.x!==e.clientX||this._startScrollingPos.y!==e.clientY))return i.beginUndoMacro(mt,!0),null===this._scrollXAnimation&&this._options.useKineticScroll&&(this._scrollXAnimation=new Ye(.2,7,.997,15),this._scrollXAnimation.addPosition(this._startScrollingPos.localX,this._startScrollingPos.timestamp),this._scrollXAnimation.addPosition(e.localX,t)),this._scrollYAnimation,i.selection().isEmpty()||(s=i.selection().allSources()[0].priceScale()),null===s||s.isEmpty()||(this._scrollPriceScale=s,i.startScrollPrice(this.state(),s,e.localY)),i.startScrollTime(e.localX),this._isScrolling=!0,this.setCursorForTool(),void this._paneWidgetsSharedState.setScrollingPane(this);this._isScrolling&&(null!==this._scrollPriceScale&&i.scrollPriceTo(this.state(),this._scrollPriceScale,e.localY),i.scrollTimeTo(e.localX))}_finishScroll(){const e=this._chartUndoModel();e.endScrollTime(),null!==this._scrollPriceScale&&e.endScrollPrice(this.state(),this._scrollPriceScale),e.endUndoMacro(),this._isScrolling=!1,this._startScrollingPos=null,this._scrollPriceScale=null,this.setCursorForTool(),this._paneWidgetsSharedState.setScrollingPane(null)}_endScroll(e){if(!this._isScrolling)return!1;const t=this._isScrolling&&this._scrollUndoCommandInStack();if(this._isScrolling){const i=Date.now();null!==this._scrollXAnimation&&this._scrollXAnimation.start(e.localX,i),null!==this._scrollYAnimation&&this._scrollYAnimation.start(e.localY,i);const s=this._chartUndoModel(),r=null===this._scrollXAnimation||this._scrollXAnimation.finished(i),n=null===this._scrollYAnimation||this._scrollYAnimation.finished(i);if(r&&n)return this._finishScroll(),t;r?(s.endScrollTime(),this._paneWidgetsSharedState.setScrollingPane(null)):n&&(this._scrollPriceScale&&s.endScrollPrice(this.state(),this._scrollPriceScale),this._scrollPriceScale=null);const o=s.timeScale(),a=this._scrollXAnimation,l=this._scrollYAnimation,c=()=>{if((null===a||a.terminated())&&(null===l||l.terminated()))return;const e=Date.now();let t=null===a||a.finished(e);const i=null===l||l.finished(e);if(null!==a&&!a.terminated()){const i=o.rightOffset();s.scrollTimeTo(a.getPosition(e)),i===o.rightOffset()&&(t=!0,this._scrollXAnimation=null)}null===l||l.terminated()||null===this._scrollPriceScale||s.scrollPriceTo(this.state(),this._scrollPriceScale,l.getPosition(e)),t&&i?this._finishScroll():requestAnimationFrame(c)};requestAnimationFrame(c)}return t}_terminateActiveAnimations(){const e=Date.now(),t=null===this._scrollXAnimation||this._scrollXAnimation.finished(e),i=null===this._scrollYAnimation||this._scrollYAnimation.finished(e);null===this._scrollXAnimation&&null===this._scrollYAnimation||t&&i||this._finishScroll(),null!==this._scrollXAnimation&&(this._scrollXAnimation.terminate(),this._scrollXAnimation=null),null!==this._scrollYAnimation&&(this._scrollYAnimation.terminate(),this._scrollYAnimation=null)}_preventScroll(){return this._trackCrosshairOnlyAfterLongTap&&this._longTap||this._contextMenuOpenedOnLastTap||(0, -f.isLineToolName)(k.tool.value())||Boolean(this._chartUndoModel().lineBeingCreated())||null!==this._startTrackPoint}_isSelectPointModeEnabled(){return this._chartUndoModel().crossHairSource().selectPointMode().value()}_preventCrossHairMove(){return!!this._trackCrosshairOnlyAfterLongTap&&(null===this._chart.trackingModePaneWidget()&&(!!this._contextMenuOpenedOnLastTap||!this._crossHairShouldBeVisible()&&null===this._startTrackPoint))}_finishTool(e,t=null){const i=this._chartUndoModel(),s=k.tool.value();if((0,k.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),i.selectionMacro(i=>{i.addSourceToSelection(e,Pt(t,e))}),(0,et.isTextToolName)(s)){const t=i.createUndoCheckpoint();this._chart.showChartPropertiesForSource(e,tt.TabNames.text,void 0,t).then(e=>{0})}this._lastFinishedToolId=e.id(),(0,h.emit)("drawing_event",e.id(),"create"),(0,Qe.trackDrawingCreated)(e)}_alignSourcesThatBeingMoved(e,t,i,s){const r=this._chartUndoModel(),n=r.timeScale().coordinateToIndex(t);r.model().sourcesBeingMoved().forEach(e=>{var o,a;let l=n,c=e.convertYCoordinateToPriceForMoving(i,this.state().mainDataSource());if(null!==c){if((0,v.isStudy)(e)){const e=r.mainSeries(),t=e.bars().firstIndex(),i=e.bars().lastIndex();null!==t&&null!==i&&(l=Math.min(Math.max(n,t),i)),c=this._chartModel().magnet().align(c,n,this.state())}null!==this._currentMovingHitTest&&void 0!==(null===(a=null===(o=this._currentMovingHitTest.hittest)||void 0===o?void 0:o.data())||void 0===a?void 0:a.cursorType)||this.setCursorForTool(),r.moveSources({screen:new C.Point(t,i),logical:{index:l,price:c}},s)}})}_resetMeasureIfRequired(){this._needResetMeasureLater&&((0,k.resetToCursor)(),this._needResetMeasureLater=!1)}_drawBackground(e,t){const i=Math.ceil(t.pixelRatio*this._size.w),s=Math.ceil(t.pixelRatio*this._size.h),r=this._chartModel(),n=r.backgroundTopColor().value(),o=r.backgroundColor().value();n===o?(0,N.clearRect)(e,0,0,i+1,s+1,o):(0,R.clearRectWithGradient)(e,0,0,i+1,s+1,n,o)}_drawWatermark(e,t){const i=this._chartModel().watermarkSource();if(null===i)return;const s=this.state();if(!s.containsMainSeries())return;const r=i.paneViews(),n=s.height(),o=s.width();for(const i of r){e.save();const s=i.renderer(n,o);s&&s.draw(e,t),e.restore()}}_drawCrossHair(e,t){const i=this._chartUndoModel().crossHairSource();!i.visible&&(0,k.lockTimeAxis)().value()&&(i.setLockedPosition((0,s.ensureNotNull)(this._state)),i.updateAllViews((0,ht.dataSourceChangeEvent)(i.id()))),this._drawSourceImpl(e,t,yt,St,i)}_drawActiveLineTools(e,t){const i=this._chartModel(),s=[i.lineBeingCreated(),i.lineBeingEdited(),...i.sourcesBeingMoved(),i.customSourceBeingMoved()].filter(e=>!!e);for(const r of s){(i.paneForSource(r)===this.state()||(0,E.isDataSource)(r)&&r.isMultiPaneEnabled())&&this._drawSourceImpl(e,t,yt,St,r)}}_drawSeriesTopViews(e,t){this.state().containsMainSeries()&&this._drawSourceImpl(e,t,bt,St,this._chartUndoModel().mainSeries())}_drawSources(e,t,i){ -const s=this.state(),r=s.model(),n=s.sourcesByGroup(),o=n.tradingSources(),a=[...r.multiPaneSources(s),...n.generalSources()],l=n.phantomSources(),c=s.customSources(L.CustomSourceLayer.Background).slice(),h=s.customSources(L.CustomSourceLayer.Foreground).slice(),d=s.customSources(L.CustomSourceLayer.Topmost).slice();{const e=r.panes();for(let t=e.length-1;t>=0;t--)e[t].createDrawingsCaches()}this._drawSourceImpl(e,t,yt,St,r.gridSource()),this._drawWatermark(e,t);for(const i of c)this._drawSourceImpl(e,t,yt,vt,i);for(const i of a)this._drawSourceImpl(e,t,yt,vt,i);for(const i of h)this._drawSourceImpl(e,t,yt,vt,i);for(const i of l)this._drawSourceImpl(e,t,yt,vt,i);const u=new Set;[r.lineBeingCreated(),r.lineBeingEdited(),...r.sourcesBeingMoved(),r.customSourceBeingMoved()].filter(_.notNull).forEach(e=>u.add(e.id()));let p=r.hoveredSource();null!==p&&(ft(p)||u.has(p.id())||(0,E.isDataSource)(p)&&!a.includes(p)?p=null:u.add(p.id()));const m=r.selection().allSources().filter(e=>!((0,E.isDataSource)(e)&&!a.includes(e))&&(!u.has(e.id())&&!ft(e)));m.forEach(e=>u.add(e.id()));{for(const i of c)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of a)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of h)this._drawSourceImpl(e,t,yt,St,i,u);const i=r.activeStrategySource().value();i&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Ct,St,i)}for(const i of o)this._drawSourceImpl(e,t,yt,vt,i);for(const i of d)this._drawSourceImpl(e,t,yt,vt,i);for(const i of a)this._drawSourceImpl(e,t,wt,St,i,u);for(const i of h)this._drawSourceImpl(e,t,wt,St,i,u);this._drawBarsMarks(e,t,i);for(const i of o)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of d)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of m)this._drawSourceImpl(e,t,yt,St,i);for(const i of m)this._drawSourceImpl(e,t,wt,St,i);p&&(this._drawSourceImpl(e,t,yt,St,p),this._drawSourceImpl(e,t,wt,St,p));for(const i of l)this._drawSourceImpl(e,t,yt,St,i,u);{const e=r.panes();for(let t=e.length-1;t>=0;t--)e[t].clearDrawingCaches()}}_drawSourceImpl(e,t,i,s,r,n){if(n&&n.has(r.id()))return;const o=this.state(),a=o.height(),l=o.width(),c=i(r,this.state());if(c)for(const i of c){const r=i.renderer(a,l);r&&(e.save(),s(r,e,t),e.restore())}}_drawBarsMarks(e,t,i){if(this.containsMainSeries()&&!i){const i=this._chartUndoModel().barsMarksSources();for(const s of i)this._drawSourceImpl(e,t,yt,St,s)}}_updateByThemedColors(){null!==this._legendWidget&&this._legendWidget.updateThemedColors(this._themedTopColor),null!==this._paneControls&&this._paneControls.updateThemedColors(this._themedTopColor)}_scrollUndoCommandInStack(){const e=this._chartUndoModel().undoHistory().undoStack();if(e.isEmpty())return!1;const t=e.head();if(!(t instanceof D.UndoMacroCommand))return!1;if(t.isEmpty())return!1;const i=t.commands()[0];return i instanceof Ze.PriceScaleChangeUndoCommand||i instanceof Xe.TimeScaleChangeUndoCommand}_onStateDestroyed(){this.setState(null)}_onDataSourcesCollectionChanged(){this._startMoveSourceParams=null}_processMouseEnterLeaveMoveHandlers(e,t){var i,s,r,n -;null!==this._prevHoveredHittest&&this._prevHoveredHittest.renderer!==e.renderer&&((0,M.tryCallHandler)(t,null===(s=null===(i=this._prevHoveredHittest.hittest)||void 0===i?void 0:i.data())||void 0===s?void 0:s.mouseLeaveHandler),this._prevHoveredHittest=null),t.isTouch||(e.hittest&&(null===(r=this._prevHoveredHittest)||void 0===r?void 0:r.renderer)!==e.renderer&&(e.hittest.tryCallMouseEnterHandler(t),this._prevHoveredHittest=e),null===(n=e.hittest)||void 0===n||n.tryCallMouseMoveHandler(t))}_startChangeOrMoveLineToolIfNeeded(){if(null!==this._startChangeLineToolParams){const e=this._startChangeLineToolParams;this._chartUndoModel().startChangingLinetool(e.source,e.startPoint,e.pointIndex,e.envState)}if(null!==this._startMoveSourceParams){const e=this._startMoveSourceParams;this._chartUndoModel().startMovingSources(e.source,e.startPoint,e.activeItem,e.envState)}this._startMoveSourceParams=null,this._startChangeLineToolParams=null}_trackingModeShouldBeActive(){return!(!this._trackCrosshairOnlyAfterLongTap||this._contextMenuOpenedOnLastTap||this._crossHairShouldBeVisible())&&this._longTap}_processOutsideClick(e){let t=null;const i=this._chartModel();if(e.source&&(t=e.isCustom?i.customSourceName(e.source):e.source.id()),null!==this._lastClickedSource&&this._lastClickedSource.id!==t){const e=this._lastClickedSource.id;let t=this._lastClickedSource.isCustom?i.customSourceForName(e):i.dataSourceForId(e);null!==t||this._lastClickedSource.isCustom||(t=this._chartUndoModel().barMarksSourceForId(e)),null!==t&&t.onClickOutside&&(t.onClickOutside(),this._chartModel().updateSource(t))}this._lastClickedSource=null!==t?{id:t,isCustom:e.isCustom}:null}_mouseClickOrTapEvent(e){var t,i,r;if(!this.hasState())return;const n=this._dataSourceAtPoint(e.localX,e.localY),o=n&&n.source,a=this._chartUndoModel(),l=Boolean(null===(i=null===(t=null==n?void 0:n.hittest)||void 0===t?void 0:t.data())||void 0===i?void 0:i.hideCrosshairLinesOnHover);this._processOutsideClick((0,s.ensureNotNull)(n)),!this._isSelectPointModeEnabled()||l||e.isTouch&&this.trackingModeEnabled()&&!this._exitTrackingModeOnNextTry||a.crossHairSource().trySelectCurrentPoint(),(null===(r=null==n?void 0:n.hittest)||void 0===r?void 0:r.tryCallClickOrTapHandler(e))&&a.model().updateSource((0,s.ensureNotNull)(o)),!e.isTouch||this._isSelectPointModeEnabled()||n&&n.source===a.crossHairSource()||this._tryExitTrackingMode(),o instanceof V.BarsMarksContainer&&n&&n.hittest&&n.hittest.data()&&o.onClicked((0,s.ensureNotNull)(n.hittest).data()),o&&(0,f.isLineTool)(o)&&this._lastFinishedToolId!==o.id()&&(0,h.emit)("drawing_event",o.id(),"click"),this._resetMeasureIfRequired()}_mouseDownOrTouchStartEvent(e,t){var i,r,n,o,a,l,c,d;if(e.isTouch&&(this._longTap=!1,this._exitTrackingModeOnNextTry=null!==this._startTrackPoint,this._paneWidgetsSharedState.clearDraggingSource()),this._contextMenuOpenedOnLastTap=!1,this._lastFinishedToolId=null,this._terminateActiveAnimations(),e.isTouch&&this._switchTrackingModeFromAnotherPaneIfNeeded(e), -document.activeElement!==document.body&&document.activeElement!==document.documentElement)document.activeElement&&document.activeElement.blur?document.activeElement.blur():document.body.focus();else{const e=document.getSelection();null!==e&&e.removeAllRanges()}(0,h.emit)("mouse_down",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),this._updateCommonTooltip(null);const u=this._chartUndoModel(),p=new A.EnvironmentState(e);u.mainSeries().clearGotoDateResult();const _=this.state().defaultPriceScale();if(_.isEmpty()||u.timeScale().isEmpty())return;const m=u.crossHairSource();if(!e.isTouch&&!(0,et.isLineDrawnWithPressedButton)(k.tool.value())){const t=u.lineBeingCreated(),i=null!==t?u.model().paneForSource(t):null;null!==i&&i!==this._state?this._setCursorPositionOnExternalPane(i,e.localX,e.localY,p):this._setCursorPosition(e.localX,e.localY,p)}e.isTouch&&(0,f.isLineToolName)(k.tool.value())&&((0,et.isLineDrawnWithPressedButton)(k.tool.value())||null!==m.pane?(0,et.isLineDrawnWithPressedButton)(k.tool.value())&&this._clearCursorPosition():this._chart.updateCrossHairPositionIfNeeded());const g=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue();if(null===g)return void(this._chart.readOnly()||(this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,p),t.source&&(0,Je.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this)));let v=_.coordinateToPrice(e.localY,g),S=this._chartModel().timeScale().coordinateToIndex(e.localX);if(m.startMeasurePoint()&&m.endMeasurePoint()&&m.clearMeasure(),p.shift()&&!(null===(n=null===(r=null===(i=t.hittest)||void 0===i?void 0:i.data())||void 0===r?void 0:r.hasOwnShortcutsBehaviourFor)||void 0===n?void 0:n.shiftKey)&&(0,k.toolIsCursor)(k.tool.value())&&u.selection().isEmpty()&&k.tool.setValue("measure"),(e.isTouch&&!e.stylus||!this._tryStartMeasure(e,m,p,v,S))&&(e.isTouch&&!e.stylus||!this._tryFinishMeasure(e,m))&&!this._tryFinishZoom(e)&&!this._tryStartZoom(e,v,S,p)){if(e.isTouch&&(null!==this._startTrackPoint?(this._initCrossHairPosition=m.currentPoint(),this._startTrackPoint=new C.Point(e.localX,e.localY)):this._isSelectPointModeEnabled()&&null===this._chart.trackingModePaneWidget()&&this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY),new A.EnvironmentState(e))),e.isTouch&&(this._preventSourceChange=null===t.source||!u.selection().isSelected(t.source)),!this._isSelectPointModeEnabled()&&!this._isScrolling){if(e.isTouch&&!e.stylus&&((0,k.toolIsMeasure)(k.tool.value())||null!==m.measurePane().value()))return void this._initToolCreationModeParams(e);if((0,f.isLineToolName)(k.tool.value())||u.lineBeingCreated())return p.shift()||u.selectionMacro(e=>e.clearSelection()),void this._mouseDownEventForLineTool(e,p,S,v)}if(null===(o=t.hittest)||void 0===o||o.tryCallMouseDownOrTouchStartHandler(e),!this._chart.readOnly()){const i=this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,p) -;if(t.hittest&&t.source&&!this._preventSourceChange){const i=t.hittest.data();if(t.isCustom){if(t.hittest.hasPressedMoveHandler(e))return u.model().setMovingCustomSource(t.source,i),this._currentMovingHitTest=t,void u.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection((0,s.ensureNotNull)(t.source),(0,s.ensureNotNull)(i))})}else if((null==i?void 0:i.areaName)===M.AreaName.SourceItemMove){const r=null==i?void 0:i.activeItem;if(void 0!==r)return u.startCustomMoving(t.source,r,e),this._currentMovingHitTest=t,void u.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection((0,s.ensureNotNull)(t.source),(0,s.ensureNotNull)(i))})}}if(this._tryHandleEraserMouseDown(t,p))return;const r=t.source&&(0,f.isLineTool)(t.source)&&t.source.isLocked&&t.source.isLocked();if(!((0,k.lockDrawings)().value()||r)&&!t.isCustom){if(t.source&&!t.source.userEditEnabled())return;const s=null===(l=null===(a=t.hittest)||void 0===a?void 0:a.data())||void 0===l?void 0:l.snappingPrice,r=null===(d=null===(c=t.hittest)||void 0===c?void 0:c.data())||void 0===d?void 0:d.snappingIndex;let n=e.localY,o=e.localX;if(void 0!==s&&(n=_.priceToCoordinate(s,g),v=s),void 0!==r&&(o=this._chartModel().timeScale().indexToCoordinate(r),S=r),n===e.localY&&o===e.localX||(e={...e,localY:n,localX:o},this._setCursorPosition(e.localX,e.localY,p)),this._tryStartChangingLineTool(e,t,p,S))return void(this._currentChangingLineToolHitTest=t);if(this._currentChangingLineToolHitTest=null,t.hittest&&((y=t.hittest.result())===M.HitTestResult.MOVEPOINT||y===M.HitTestResult.MOVEPOINT_BACKGROUND&&(0,x.lastMouseOrTouchEventInfo)().isTouch)){if(this._tryStartCloning(e,t,p,i))return;if(this._tryStartMovingLineTool(e,t,p,S))return void(this._currentMovingHitTest=t);this._currentMovingHitTest=null}}if(t.source&&(0,Je.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this))return}var y;t&&t.hittest&&t.hittest.result()===M.HitTestResult.REGULAR||(this._processing=!0)}}_mouseUpOrTouchEndEvent(e){var t,i;if(!this.hasState())return;const r=e.isTouch&&null!==this._startTrackPoint,n=e.isTouch&&this._wasPinched;e.isTouch&&(this._wasPinched=!1,this._longTap=!1),this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null;const o=this._chartUndoModel(),a=o.model().customSourceMovingHitTestData();null!==a||o.customMoveBeingProcessed()||this._processMouseUpOrTouchEndHandler(e),this._isSelecting=!1;const l=o.model(),c=l.crossHairSource(),d=this._dataSourceAtPoint(e.localX,e.localY),u=null==d?void 0:d.hittest;if(c.selection()&&null===this._firstZoomPoint){const e=this.state().lineToolsForArea(c.selection());o.selectionMacro(t=>{let i=null;e.forEach(e=>{null===i&&(i=Pt(d,e)),t.addSourceToSelection(e,i)})}),c.clearSelection(),(0,se.trackEvent)("GUI","Multiselect","Area Select")}(0,h.emit)("mouse_up",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});const p=e.isTouch&&this._touchMove -;e.isTouch&&(this._touchMove=!1);const _=new A.EnvironmentState(e),m=k.tool.value();if(e.isTouch&&((0,k.toolIsMeasure)(m)||null!==c.measurePane().value())){if(!p&&!e.stylus&&null===c.measurePane().value()&&c.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY);if(!p&&!e.stylus&&this._tryStartMeasure(e,c,_,c.price,c.index))return;if((!p||e.stylus)&&this._tryFinishMeasure(e,c))return}if(e.isTouch&&!p&&!(0,et.isLineDrawnWithPressedButton)(m)&&(0,f.isLineToolName)(m)&&!o.lineBeingCreated()){if(this._chart.justActivated())return;if(c.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY,_);const i=c.currentPoint(),r=this.state().defaultPriceScale(),n=(0,s.ensure)(null===(t=this.state().mainDataSource())||void 0===t?void 0:t.firstValue()),a={index:Math.round(o.timeScale().coordinateToIndex(i.x)),price:r.coordinateToPrice(i.y,n)},l=(0,s.ensureNotNull)(o.createLineTool({pane:this.state(),point:a,linetool:m}));return o.selectionMacro(e=>{e.addSourceToSelection(l)}),o.lineBeingCreated()||(this._finishTool(l,d),e.preventDefault()),void(this._startTouchPoint=null)}const g=o.lineBeingCreated();if(g&&!(0,et.isLineDrawnWithPressedButton)(g.toolname)&&e.isTouch&&(this._startTouchPoint||e.stylus)){if(this._startTouchPoint=null,!p||e.stylus){const t=g.points()[g.points().length-1],i=o.continueCreatingLine({index:t.index,price:t.price},new A.EnvironmentState(e));this._initCrossHairPosition=null,i&&(this._finishTool(g,d),e.preventDefault())}return}if(null!==this._firstZoomPoint&&this._firstZoomPoint.draggingMode)return void this._finishZoom(e);if(this._processing=!1,o.customMoveBeingProcessed())return void o.endCustomMoving();if(null!==a&&(a.beingMoved&&((0,M.tryCallHandler)(e,a.mouseUpHandler,a.touchEndHandler),this.setCursorForTool()),l.setMovingCustomSource(null,null),Lt(e,a)))return;if(l.lineBeingEdited())return o.endChangingLinetool(!1),void(this._preventCrossHairMove()&&this._clearCursorPosition());if((0,et.isLineDrawnWithPressedButton)(m)&&!this._isSelectPointModeEnabled()){const t=o.lineBeingCreated();null!==t&&((0,Qe.trackDrawingCreated)(t),t.finish());const r=this.state().defaultPriceScale();if(r.isEmpty())return;if(!t)return;const n=(0,s.ensure)(null===(i=t.ownerSource())||void 0===i?void 0:i.firstValue()),a=r.coordinateToPrice(e.localY,n),l={index:Math.round(o.timeScale().coordinateToIndex(e.localX)),price:a};return void o.continueCreatingLine(l)}if(l.sourcesBeingMoved().length)return o.endMovingSource(!1,!1),l.sourcesBeingMoved().filter(f.isLineTool).forEach(e=>{this.setCursorForTool(e)}),void l.invalidate(b.InvalidationMask.cursor());if(!this._chart.readOnly()){const t=e.localX>=0&&e.localXM.HitTestResult.MOVEPOINT_BACKGROUND||(0,x.lastMouseOrTouchEventInfo)().isTouch)&&o.selectionMacro(e=>{e.clearSelection();const t=(0,s.ensureNotNull)(d.source);e.addSourceToSelection(t,Pt(d,t))}),e.isTouch&&(this._touchMove=!1)}_mouseOrTouchMoveEvent(e){if(!this.hasState())return;this._resetMeasureIfRequired();const t=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));this._processMouseEnterLeaveMoveHandlers(t,e);const i=this._chartUndoModel();if(!i)return;const r=e.localX,n=e.localY;this._prevMoveEventPosition=new C.Point(r,n);const o=new A.EnvironmentState(e);if(null===this._firstZoomPoint){if(this._updateHoveredSource(t,o,e),!e.isTouch&&i.lineBeingCreated()){const e=i.lineBeingCreated(),t=null===e?null:i.model().paneForSource(e);if(null!==t&&t!==this._state)return void this._setCursorPositionOnExternalPane(t,r,n,o)}e.isTouch||this._setCursorPosition(r,n,o)}else this._processMouseMoveWhileZoom(e,o)}_pressedMouseOrTouchMoveEvent(e){var t;if(!this.hasState()||this._pinching||e.isTouch&&this._contextMenuOpenedOnLastTap)return;this._resetMeasureIfRequired(),this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);const i=new A.EnvironmentState(e),r=this._chartUndoModel(),n=r.crossHairSource(),o=e.localX,a=e.localY;if(this._prevMoveEventPosition=new C.Point(o,a),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);const l=k.tool.value();if(e.isTouch&&this._startTouchPoint&&(0,f.isLineToolName)(l)&&!(0,et.isLineDrawnWithPressedButton)(l)&&!r.lineBeingCreated()&&!this._isSelectPointModeEnabled())return void this._updateCrosshairPositionInToolCreationMode(e,this.state());const c=n.measurePane().value();if(e.isTouch&&(this._startTouchPoint||e.stylus)&&((0,k.toolIsMeasure)(l)||null!==c))return void(e.stylus?this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e)):this._updateCrosshairPositionInToolCreationMode(e,c||this.state()));const h=r.lineBeingCreated();if(e.isTouch&&!e.stylus&&h&&!(0,et.isLineDrawnWithPressedButton)(h.toolname)){if(this._startTouchPoint){const t=(0,s.ensureNotNull)(r.lineBeingCreated()),i=(0,s.ensureNotNull)(r.model().paneForSource(t)) -;this._updateCrosshairPositionInToolCreationMode(e,i)}return}if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;const e=(0,s.ensureNotNull)(this._initCrossHairPosition),t=new C.Point(o,a).subtract(this._startTrackPoint),r=e.add(t);this._setCursorPosition(r.x,r.y,i)}else e.isTouch&&this._preventCrossHairMove()||this._setCursorPosition(o,a,i);const d=this._isSelectPointModeEnabled();if((0,f.isLineToolName)(l)&&!(0,et.isLineDrawnWithPressedButton)(l)&&!d&&!i.mod())return;if((0,et.isLineDrawnWithPressedButton)(l)&&!d){const i=this.state().defaultPriceScale();if(i.isEmpty())return;const n=r.lineBeingCreated();if(!n)return;const o=new C.Point(e.localX,e.localY),a=(0,s.ensure)(null===(t=n.ownerSource())||void 0===t?void 0:t.firstValue());return o.price=i.coordinateToPrice(e.localY,a),o.index=Math.round(r.timeScale().coordinateToIndex(e.localX)),void r.continueCreatingLine(o)}if(null!==this._paneWidgetsSharedState.draggingSource()){const t=e.target,i=this._chart.paneByCanvas(t);i&&(i!==this?i.setDragToAnotherPaneCursor():i.setCursorForTool());const s=this._chart.timeAxisByCanvas(t);s&&s.setCursor("grabbing")}if(r.timeScale().isEmpty())return;const u=this._options.handleScroll;if((!u.pressedMouseMove||e.isTouch)&&(!u.horzTouchDrag&&!u.vertTouchDrag||!e.isTouch))return;if(r.customMoveBeingProcessed())return void r.processCustomMove(e);const p=r.model().customSourceMovingHitTestData();if(null!==p&&(this._updateCommonTooltip(null,!0),r.model().processingCustomSourceMove(),(0,M.tryCallHandler)(e,p.pressedMouseMoveHandler,p.touchMoveHandler),Lt(e,p)))return;if(r.model().lineBeingEdited())return void this._setCursorPosition(o,a,i);if(r.model().sourcesBeingMoved().length)return void this._alignSourcesThatBeingMoved(r.model().sourcesBeingMoved(),e.localX,e.localY,i);const _=this._dataSourceAtPoint(e.localX,e.localY);if(this._tryFinishClonning(e,new A.EnvironmentState(e),_))return;const m=(0,k.toolIsMeasure)(l)||n.startMeasurePoint()&&n.endMeasurePoint();this._chart.readOnly()||!i.mod()||(0,f.isLineToolName)(l)||m||d?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e))):this._isSelecting||(n.startSelection(this.state()),this._isSelecting=!0)}_mouseOrTouchLeaveEvent(e){var t,i;if(!this.hasState())return;const s=this._chartUndoModel();if(!s)return;const r=s.crossHairSource();e.isTouch||null!==r.measurePane().value()&&null===r.endMeasurePoint()||this._clearCursorPosition(),s.model().setHoveredSource(null,null),null!==this._prevHoveredHittest&&((0,M.tryCallHandler)(e,null===(i=null===(t=this._prevHoveredHittest.hittest)||void 0===t?void 0:t.data())||void 0===i?void 0:i.mouseLeaveHandler),this._prevHoveredHittest=null),this._updateCommonTooltip(null),this._chart.unsetActivePaneWidget()}_mouseDoubleClickOrDoubleTapEvent(e){var t;if(!this.hasState())return;const i=!this._chart.readOnly()&&!(0,f.isLineToolName)(k.tool.value())&&(0, -s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY))||null;if(null===i)return;if(i.isCustom)return void(null===(t=i.hittest)||void 0===t||t.tryCallDblClickOrDblTapHandler(e));let r=i.hittest&&i.source||null;r&&i.hittest&&i.hittest.result()<=M.HitTestResult.MOVEPOINT_BACKGROUND&&!e.isTouch&&(r=null),r&&!r.isSelectionEnabled()&&(r=null);const n=this.state();r?this.processDoubleClickOnSource(r,i.hittest?i.hittest:void 0):this._chart.readOnly()||(0,f.isLineToolName)(k.tool.value())||this._chartUndoModel().lineBeingCreated()||!this._chartUndoModel().selection().isEmpty()||(new A.EnvironmentState(e).mod()&&!n.maximized().value()?(n.collapsed().value()||this._chartModel().paneCollapsingAvailable().value())&&this._chart.toggleCollapsedPane(this):this._chart.toggleMaximizePane(this))}_contextMenuEvent(e){var t;const i=this._chartUndoModel();if(i.crossHairSource().startMeasurePoint()&&!this._trackCrosshairOnlyAfterLongTap)return i.crossHairSource().clearMeasure(),void(0,k.resetToCursor)(!0);if(this._pinching)return;if(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),!(0,k.toolIsCursor)(k.tool.value())||this._isSelectPointModeEnabled()){if(e.isTouch)return;return(0,k.resetToCursor)(!0),this.setCursorForTool(),void(i.lineBeingCreated()&&i.cancelCreatingLine())}if(!this._options.contextMenuEnabled)return;const s=this._dataSourceAtPoint(e.localX,e.localY),r=s?s.source:null;if(e.isTouch&&null!==this._startTrackPoint){if(this._preventSourceChange)return;this._clearCursorPosition()}e.isTouch&&(this._contextMenuOpenedOnLastTap=!0,this._startTrackPoint=null),this._contextMenuX=e.localX,this._contextMenuY=e.localY;const n=s&&s.hittest?s.hittest.result():0,o=n>=M.HitTestResult.REGULAR||n>=M.HitTestResult.MOVEPOINT_BACKGROUND&&e.isTouch;this._chart.updateActions(),i.selectionMacro(t=>{null!==r&&o?t.selection().isSelected(r)||(t.clearSelection(),t.addSourceToSelection(r,Pt(s,r))):(this._options.contextMenu.general&&this._showContextMenu(e),t.clearSelection())}),s&&o&&null!==r&&((0,E.isDataSource)(r)&&r.hasContextMenu()?r.isSelectionEnabled()?this.showContextMenuForSelection(e):this.showContextMenuForSources([r],e):null===(t=s.hittest)||void 0===t||t.tryCallContextMenuHandler(e))}_onMouseEvent(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1}_onTouchEvent(){this._trackCrosshairOnlyAfterLongTap=!0}_switchTrackingModeFromAnotherPaneIfNeeded(e){const t=this._chart.trackingModePaneWidget();if(null!==t&&t!==this){const i=this._chartModel().crossHairSource().currentPoint();t._exitTrackingModeOnNextTry=!0,t._tryExitTrackingMode(!0),this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(i.x,e.localY),new A.EnvironmentState(e))}}_showContextMenu(e){const t=e=>e instanceof xe.Separator,i=this._customActions(),s=this._initActions(e).filter(e=>null!==e);i.remove.forEach(e=>{for(let t=0;t0;e--)t(r[e])&&t(r[e-1])&&r.splice(e,1);r.length&&t(r[0])&&r.splice(0,1),r.length&&t(r[r.length-1])&&r.splice(r.length-1,1),$.ContextMenuManager.showMenu(r,e,{statName:"ChartContextMenu"},{menuName:"ChartContextMenu"})}_initActions(e){var t,i;const s=this._chart.actions(),r=[];if(r.push(s.chartReset),r.push(new xe.Separator),!this.state().isEmpty()&&Pe.enabled("datasource_copypaste")){const t=(0,Te.createActionCopyPrice)(this.state(),e.localY),i=(0,Te.createPasteAction)(this._chart,this.state());(t||i)&&(t&&r.push(t),i&&r.push(i),r.push(new xe.Separator))}r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator);return Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.widget("watchlist"))&&s.addToWatchlist&&r.push(s.addToWatchlist),Pe.enabled("text_notes")&&r.push(s.addToTextNotes),r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator),r.push(this._createLockTimeAxisAction(e)),r.push(new xe.Separator),r.push((0,Te.createLinesAction)(this._chart)),!Pe.enabled("charting_library_base")&&s.applyColorTheme&&r.push(s.applyColorTheme),r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator),this._chart.applyIndicatorsToAllChartsAvailable()&&(r.push(s.applyStudiesToAllCharts),r.push(new xe.Separator)),r.push(s.paneRemoveAllDrawingTools),r.push(s.paneRemoveAllStudies),r.push(new xe.Separator),(null===(i=window.pro)||void 0===i?void 0:i.hasPackage("mtp-mtpredictor"))&&this.state().containsMainSeries()&&r.push((0,Te.createMTPredictorActions)(this._chart,this.state(),this._contextMenuX,this._contextMenuY),new xe.Separator),r.push(s.hideAllMarks),r.push(new xe.Separator),Pe.enabled("show_chart_property_page")&&r.push(s.chartProperties),r[r.length-1]instanceof xe.Separator&&r.pop(),r}_loadAndCreateLegendWidget(){Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,74335)).then(e=>{if(this._isDestroyed)return;const t=e.LegendWidget,i=(0,I.deepExtend)({},this._options.legendWidget);i.canShowSourceCode=!this._chart.onWidget()&&!l.CheckMobile.any(),i.readOnlyMode=i.readOnlyMode||this._chart.readOnly(),i.statusesWidgets={sourceStatusesEnabled:this._options.sourceStatusesWidgetEnabled,sourceStatuses:this._options.sourceStatusesWidget||{},marketStatusEnabled:this._options.marketStatusWidgetEnabled,dataUpdateModeEnabled:this._options.chartWarningWidgetEnabled,dataUpdateMode:this._options.chartWarningWidget||{},dataProblemEnabled:this._options.dataProblemWidgetEnabled};const r=(0,m.combine)((e,t)=>Mt&&this._chart!==e&&!t,this._chart.chartWidgetCollection().activeChartWidget,this._chart.chartWidgetCollection().lock.crosshair),n=(0,m.combine)((e,t)=>null!==e?e===this._state:(0,k.toolIsMeasure)(t),this._chartModel().crossHairSource().measurePane(),k.tool);this._legendWidget=new t(this._chartUndoModel(),this,this._chart.backgroundTopTheme().spawn(),r,this._visuallyCollapsed.spawn(),n,i,{showContextMenuForSelection:this.showContextMenuForSelection.bind(this),showContextMenuForSources:this.showContextMenuForSources.bind(this), -updateActions:this._chart.updateActions.bind(this._chart),showChartPropertiesForSource:this._chart.showChartPropertiesForSource.bind(this._chart),showGeneralChartProperties:this._chart.showGeneralChartProperties.bind(this._chart),showObjectsTreeDialog:this._chart.showObjectsTreeDialog.bind(this._chart)}),this._div.appendChild(this._legendWidget.getElement()),this._legendWidget.updateLayout(),this._legendWidget.updateWidgetModeBySize(this._size),this._legendWidget.updateThemedColors(this._themedTopColor);for(const e of Array.from(this._customLegendWidgetsFactoryMap.keys()))this._legendWidget.addCustomWidgetToLegend(e,(0,s.ensureDefined)(this._customLegendWidgetsFactoryMap.get(e)))})}_loadAndCreatePaneControlsWidget(){Promise.all([Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,20648)),Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,59255))]).then(([e,t])=>{var i;if(this._isDestroyed)return;const s=e.PaneControlsWidget;this._paneControls=new s(this._chartUndoModel(),this,{backgroundThemeName:this._chart.backgroundTopTheme()},{toggleMaximizePane:this._chart.toggleMaximizePane.bind(this._chart),toggleCollapsedPane:this._chart.toggleCollapsedPane.bind(this._chart)},this._div),this._paneControls.updateWidgetModeByWidth(this._size.w),this._paneControls.updateThemedColors(this._themedTopColor),this._paneControlsResizeObserver=new t.default(this._handleRestrictLegendWidth.bind(this)),this._paneControlsResizeObserver.observe(this._paneControls.getElement()),(null===(i=this._state)||void 0===i?void 0:i.collapsed().value())&&this._chartModel().fullUpdate()})}_handleRestrictLegendWidth(e){if(null===this._legendWidget||null===this._paneControls)return;const t=e[e.length-1].contentRect.width,i=0===t?0:t+dt+ut;this._legendWidget.addMargin(i)}_onMagnetStateChanged(){this._chart.isActive()&&(this._isSelectPointModeEnabled()||this._isToolActionActiveOnPane(!0))&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift()}_onShiftKeyStateChanged(){this._chart.isActive()&&this._isToolActionActiveOnPane(!1)&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift(A.EnvironmentState.create((0,ot.shiftPressed)().value()))}_isToolActionActiveOnPane(e){const t=this._chartModel(),i=t.lineBeingCreated()||t.lineBeingEdited()||t.sourcesBeingMoved().length>0&&t.sourcesBeingMoved()[0];return i?t.paneForSource(i)===this._state:e&&(0,f.isLineToolName)(k.tool.value())&&t.crossHairSource().pane===this._state}_updateLineToolUsingMagnetOrShift(e){if(null===this._prevMoveEventPosition)return;const{x:t,y:i}=this._prevMoveEventPosition,s=this._chartModel().sourcesBeingMoved();s.length>0?(k.isStudyEditingNow.value()&&this._setCursorPosition(t,i,e),this._alignSourcesThatBeingMoved(s,t,i,e)):this._setCursorPosition(t,i,e)}_showEditDialogForSource(e,t){if(this._options.propertyPagesEnabled&&e.userEditEnabled())if(e===this._chartUndoModel().mainSeries())this._chart.showGeneralChartProperties(tt.TabNames.symbol);else if((0,f.isLineTool)(e)||(0,v.isStudy)(e)){let i -;const s=null==t?void 0:t.data();if(null!=s){const e=s.areaName;void 0!==e&&(i=It.get(e))}this._chart.showChartPropertiesForSource(e,i).then(e=>{this._editDialog=e})}}_initToolCreationModeParams(e){this._startTouchPoint=new C.Point(e.pageX,e.pageY),this._initCrossHairPosition=this._chartModel().crossHairSource().currentPoint()}_updateCrosshairPositionInToolCreationMode(e,t){if(t!==this._state){const i=this._chart.paneByState(t);return i._startTouchPoint=this._startTouchPoint,i._initCrossHairPosition=this._initCrossHairPosition,void i._updateCrosshairPositionInToolCreationMode(e,t)}const i=this._chartModel().crossHairSource();this._chart.justActivated()&&(this._initCrossHairPosition=i.currentPoint());const r=e.pageX,n=e.pageY,o=(0,s.ensureNotNull)(this._initCrossHairPosition),a=new C.Point(r,n).subtract((0,s.ensureNotNull)(this._startTouchPoint)),l=o.add(a);this._setCursorPosition(l.x,l.y,new A.EnvironmentState(e))}_priceAxisesContainer(e){return"left"===e?this._lhsPriceAxisesContainer:this._rhsPriceAxisesContainer}_recalculatePriceScales(e){const t=this.state();for(const i of t.leftPriceScales())t.recalculatePriceScale(i,e);for(const i of t.rightPriceScales())t.recalculatePriceScale(i,e);for(const i of t.sourcesByGroup().overlayPriceScaleSources())(0,f.isLineTool)(i)||t.recalculatePriceScale(i.priceScale(),e)}_createLockTimeAxisAction(e){const t=(0,k.lockTimeAxis)().value();return new xe.Action({actionId:"Chart.Crosshair.LockVerticalCursor",label:gt,statName:"LockCursorInTime",checkable:!0,checked:t,onExecute:()=>this._toggleLockTimeAxis(e.localX,!t)})}_toggleLockTimeAxis(e,t){if(t){const t=this._chartUndoModel().timeScale(),i=t.coordinateToIndex(e),s=t.points().roughTime(i);null!==s&&k.lockTimeAxisTime.setValue(s)}(0,k.lockTimeAxis)().setValue(t)}_preventTouchEventsExceptPinch(){return this._paneWidgetsSharedState.hasTouchesOnOtherPanes(this)||null!==this._paneWidgetsSharedState.pinchingPane()}_updateHoveredSource(e,t,i){var s,r,n;const o=this._chartUndoModel(),a=o.model();let l=!1;const c=e&&e.source,h=this._chart.readOnly();if(h&&!(0,f.isLineTool)(e.source)||this._editDialog&&this._editDialog.visible().value())h&&(a.setHoveredSource(null,null),this.setCursorForTool());else{const d=k.tool.value();let u=null;if(!this._processing&&((0,k.toolIsCursor)(d)||"eraser"===d&&!h||t.mod()||!o.lineBeingCreated())){const{hittest:t}=e;l=Boolean(null===(s=null==t?void 0:t.data())||void 0===s?void 0:s.hideCrosshairLinesOnHover),t&&t.result()>M.HitTestResult.MOVEPOINT_BACKGROUND?(u=c,!(null==c?void 0:c.isHoveredEnabled())||"eraser"===d&&c===o.mainSeries()?a.setHoveredSource(null,null):a.setHoveredSource(c,null==t?void 0:t.data())):a.setHoveredSource(null,null)}h?this.setCursorForTool(u,t,it.PaneCursorType.Default):this._options.sourceSelectionEnabled&&(this._isSelectPointModeEnabled()?this._setCursorClassName("pointer"):this.setCursorForTool(u,t,null===(n=null===(r=null==e?void 0:e.hittest)||void 0===r?void 0:r.data())||void 0===n?void 0:n.cursorType)) -;const p=a.customSourceBeingMoved(),_=null!==p?[p]:a.sourcesBeingMoved(),m=e.source;if((!_.length||null!==m&&-1===_.indexOf(m))&&this._updateCommonTooltip(e),!h&&null!==e.hittest&&i&&e.hittest.hasPressedMoveHandler(i)){switch((e.hittest.data()||{}).cursorType){case it.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case it.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case it.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case it.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize")}}}this._preventCrossHairMove()&&this._clearCursorPosition(),a.crossHairSource().setLinesShouldBeHidden(l)}async _createErrorBlock(){const e=new(await async function(){return(await Promise.all([i.e(5514),i.e(8879),i.e(139)]).then(i.bind(i,81200))).ErrorCardRenderer}());return this._div.insertBefore(e.container,this._topCanvasBinding.canvas.nextSibling),e}_customActions(){const e={top:[],bottom:[],remove:[]},t=this._chartUndoModel().timeScale(),i=this._state&&this._state.defaultPriceScale();if(!Pe.enabled("custom_items_in_context_menu"))return e;const r=t.isEmpty()?void 0:t.indexToUserTime(t.coordinateToIndex(this._contextMenuX));let n;if(i&&!i.isEmpty()){const e=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue();n=i.coordinateToPrice(this._contextMenuY,(0,s.ensureNotNull)(e))}return(0,h.emit)("onContextMenu",{unixtime:null!=r?r.getTime()/1e3:void 0,price:n,callback:t=>{[...t].forEach(t=>{if(t.text)if(t.text.length>1&&"-"===t.text[0])e.remove.push(t.text.slice(1));else{let i;i="-"===t.text?new xe.Separator:new xe.Action({actionId:"Chart.ExternalActionId",label:t.text,onExecute:t.click}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)}})}}),e}_highlightPriceAxisByLabel(e){this._lhsPriceAxisesContainer.highlightPriceAxisByLabel(e),this._rhsPriceAxisesContainer.highlightPriceAxisByLabel(e)}_subscribeToState(){const e=this.state();e.onDestroyed().subscribe(this,this._onStateDestroyed,!0),e.dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),e.maximized().subscribe(this._updateVisuallyCollapsed),e.collapsed().subscribe(this._updateVisuallyCollapsed)}_unsubscribeFromState(){const e=this.state();e.onDestroyed().unsubscribeAll(this),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.maximized().unsubscribe(this._updateVisuallyCollapsed),e.collapsed().unsubscribe(this._updateVisuallyCollapsed)}}var Et=i(72045);class kt{constructor(e,t,i){this._handleEl=null,this._resizeInfo=null,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._chart=e,this._topPaneIndex=t,this._bottomPaneIndex=i,this._row=document.createElement("tr"),this._cell=document.createElement("td"),this._row.appendChild(this._cell),this._cell.classList.add(Et.paneSeparator),this._cell.setAttribute("colspan","3"),this._cell.style.background=this._color(),this.adjustSize(),this._cell.addEventListener("click",()=>{});const s=document.createElement("div");s.classList.add(Et.handle),this._cell.appendChild(s), -this._mouseEventHandler=new B.MouseEventHandler(s,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._handleEl=s}destroy(){this._mouseEventHandler.destroy(),this._row.parentElement&&this._row.parentElement.removeChild(this._row)}getElement(){return this._row}hide(){this._row.classList.add("js-hidden")}show(){this._row.classList.remove("js-hidden")}adjustSize(){this._row.style.height=kt.height()+"px"}mouseEnterEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);null!==t&&null!==i&&(0,s.ensureNotNull)(this._handleEl).classList.add(Et.hovered)}mouseLeaveEvent(e){(0,s.ensureNotNull)(this._handleEl).classList.remove(Et.hovered)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}update(){this._cell.style.background=this._color().toString()}paint(){}image(){const{topPane:e}=this._topBottomPane(!1),t=e.leftPriceAxisesContainer().getWidth(),i=e.width(),s=e.rightPriceAxisesContainer().getWidth(),r=this._color(),n=(0,N.createDisconnectedCanvas)(document,new N.Size(t,1)),o=(0,N.getPrescaledContext2D)(n);o.fillStyle=r,o.fillRect(0,0,t,1);const a=(0,N.createDisconnectedCanvas)(document,new N.Size(i,1)),l=(0,N.getPrescaledContext2D)(a);l.fillStyle=r,l.fillRect(0,0,i,1);const c=(0,N.createDisconnectedCanvas)(document,new N.Size(s,1)),h=(0,N.getPrescaledContext2D)(c);return h.fillStyle=r,h.fillRect(0,0,s,1),{type:"separator",leftAxis:{content:n.toDataURL(),canvas:n,contentWidth:t,contentHeight:1},rightAxis:{content:c.toDataURL(),canvas:c,contentWidth:s,contentHeight:1},content:a.toDataURL(),canvas:a,contentWidth:i,contentHeight:1}}static height(){const e=window.devicePixelRatio||1;return e>=1?1:1/e}_mouseDownOrTouchStartEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);if(null===t||null===i)return;const r=t.state().stretchFactor()+i.state().stretchFactor(),n=r/(t.height()+i.height()),o=30*n;r<=2*o||(this._resizeInfo={startY:e.pageY,prevStretchTopPane:t.state().stretchFactor(),maxPaneStretch:r-o,totalStretch:r,pixelStretchFactor:n,minPaneStretch:o},(0,s.ensureNotNull)(this._handleEl).classList.add(Et.active))}_pressedMouseOrTouchMoveEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;if(null===s||null===t||null===i)return;const r=(e.pageY-s.startY)*s.pixelStretchFactor,n=(0,le.clamp)(s.prevStretchTopPane+r,s.minPaneStretch,s.maxPaneStretch);t.state().setStretchFactor(n),i.state().setStretchFactor(s.totalStretch-n),this._chart.model().model().fullUpdate()}_mouseUpOrTouchEndEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),r=this._resizeInfo;null!==r&&null!==t&&null!==i&&(this._chart.model().addPaneStretchFactorUndoCommand(t.state(),i.state(),r.prevStretchTopPane,t.state().stretchFactor()),this._resizeInfo=null,(0, -s.ensureNotNull)(this._handleEl).classList.remove(Et.active))}_color(){const e=this._chart.properties().childs().paneProperties.childs().separatorColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){const i=(0,re.parseRgba)(t),s=(0,re.parseRgba)(e),r=0===i[3]&&0===s[3]?"rgba(0,0,0,0)":(0,re.rgbaToString)((0,re.blendRgba)(i,s));this._colorCache={lineColor:e,backgroundColor:t,color:r}}return this._colorCache.color}_topBottomPane(e){const t=this._chart.paneWidgets();let i=null,s=null;for(let s=this._topPaneIndex;s>=0;--s){const r=t[s];if(!e||!r.state().collapsed().value()){i=r;break}}for(let i=this._bottomPaneIndex;ithis.backgroundColor(),o=()=>{throw new Error("Time axis does not support real price scales")},a={titlesProvider:i,stubContextMenuProvider:(e,t)=>{const i=this.getContextMenuActions(!0);let r=s(e,t);if(r[r.length-1]===this.chart.actions().scalesProperties){const e=[new xe.Separator].concat(i);Array.prototype.splice.apply(r,[r.length-2,0,...e])}else r.push(new xe.Separator),r=r.concat(i);return r},backgroundBasedTheme:r,rendererOptionsProvider:e.model().model().rendererOptionsProvider(),getBackgroundTopColor:n,getBackgroundBottomColor:n,showHorizontalBorder:!0};this._lhsStubContainer=new ee(this._properties,"left",o,a,this._options.priceAxisLabelsOptions,this),this._lhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._rhsStubContainer=new ee(this._properties,"right",o,a,this._options.priceAxisLabelsOptions,this),this._rhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._element.appendChild(this._lhsStubContainer.getElement()),this._cell=document.createElement("td"),this._element.appendChild(this._cell),this._cell.classList.add("chart-markup-table","time-axis"),this._cell.style.height="25px",this._dv=document.createElement("div"),this._dv.style.width="100%",this._dv.style.height="100%",this._dv.style.position="relative",this._dv.style.overflow="hidden",this._cell.appendChild(this._dv),this._canvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._canvasBinding=(0,N.createBoundCanvas)(this._dv,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const l=this._canvasBinding.canvas;l.style.position="absolute",l.style.zIndex="1", -l.style.left="0",l.style.top="0",this._topCanvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._topCanvasBinding=(0,N.createBoundCanvas)(this._dv,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const c=this._topCanvasBinding.canvas;c.style.position="absolute",c.style.zIndex="2",c.style.left="0",c.style.top="0",this._element.appendChild(this._rhsStubContainer.getElement()),this.restoreDefaultCursor(),this.update(),this._minVisibleSpan=Dt.MINUTE_SPAN,this._mouseEventHandler=new B.MouseEventHandler(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!0,treatHorzTouchDragAsPageScroll:!1}),this.size=new N.Size(0,0),(0,k.hideMarksOnBars)().subscribe(this,()=>this.chart.model().model().lightUpdate())}destroy(){this._mouseEventHandler.destroy(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._rhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.destroy(),this._rhsStubContainer.destroy(),this.chart.properties().childs().paneProperties.childs().background.unsubscribeAll(this),(0,k.hideMarksOnBars)().unsubscribeAll(this)}setCursor(e){let t="";"grabbing"!==e&&"ew-resize"!==e||(t="time-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}restoreDefaultCursor(){this.setCursor("")}getElement(){return this._element}optimalHeight(){const e=this.rendererOptions();return Math.ceil(e.borderSize+e.offsetSize+e.fontSize+e.paddingTop+e.paddingBottom+e.labelBottomOffset)}setSizes(e,t,i){this.size&&this.size.equals(e)||(this.size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.height=e.h+"px"),this._lhsStubContainer.setSizes(e.h,t),this._rhsStubContainer.setSizes(e.h,i)}rendererOptions(){if(!this._rendererOptions||this._rendererOptions.fontSize!==this.fontSize()){const e=this.fontSize();this._rendererOptions={borderSize:1,offsetSize:5,fontSize:e,font:(0,O.makeFont)(e,z.CHART_FONT_FAMILY,""),widthCache:new ie.TextWidthCache,paddingTop:3*e/12,paddingBottom:3*e/12,paddingHorizontal:9*e/12,labelBottomOffset:4*e/12}}return this._rendererOptions}backgroundColor(){return this.chart.model().model().backgroundColor().value()}lineColor(){const e=this._properties.childs().lineColor.value();if(0===(0,re.parseRgba)(e)[3]){const e=this.chart.model().model().lastPane();if(e&&(e.collapsed().value()||e.isMainPane()&&this._areEventsEnabled()))return this.chart.properties().childs().paneProperties.childs().separatorColor.value()}return e}textColor(){return this._properties.childs().textColor.value()}fontSize(){ -return this._properties.childs().fontSize.value()}baseFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY)}baseBoldFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY,"","bold")}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}onLabelHovered(){return this._onLabelHovered}getScreenshotData(){return{content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this.size.w,contentHeight:this.size.h,lhsStub:this._lhsStubContainer.getScreenshotData(),rhsStub:this._rhsStubContainer.getScreenshotData()}}getContextMenuActions(e){var t;const i=this.chart;i.updateActions();const s=i.actions(),r=[];if(e||r.push(s.timeScaleReset,new xe.Separator),this._options.timezoneMenuEnabled&&r.push(s.applyTimeZone),r.push(s.sessionBreaks),!i.model().mainSeries().isDWM()){const e=null===(t=i.model())||void 0===t?void 0:t.mainSeries().symbolInfo();if(e){const t=i.model().mainSeries().properties().childs().sessionId,s=(e.subsessions||[]).filter(e=>!e.private);if(s.length>1){const e=s.map(e=>{const s={label:translateSessionDescription(e.description),checkable:!0,checked:t.value()===e.id,statName:"SetSession",onExecute:()=>{i.model().setProperty(t,e.id,Bt)}};return new xe.Action({...s,actionId:"Chart.SetSession"})}),n={label:Nt,statName:"SetSession",subItems:e},o=new xe.Action({...n,actionId:"Chart.SetSession"});r.push(o)}}}return r}update(){if(!this.chart.hasModel())return;const e=this.chart.model().timeScale().marks();if(e){this._minVisibleSpan=Dt.YEAR_SPAN;for(const t of e)this._minVisibleSpan=Math.min(t.span,this._minVisibleSpan)}}updatePriceAxisStubs(){const e=this.chart.model().model(),t=this.chart.isMaximizedPane()?(0,s.ensureNotNull)(this.chart.maximizedPaneWidget()).state():e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount();this._lhsStubContainer.setScales([],i.left,t.leftPriceScales().length,i.left+i.right),this._rhsStubContainer.setScales([],i.right,t.rightPriceScales().length,i.left+i.right)}paint(e){if(e===b.InvalidationLevel.None)return;const t=(0,N.getContext2D)(this._topCanvasBinding.canvas);if(e>b.InvalidationLevel.Cursor){const i=(0,N.getContext2D)(this._canvasBinding.canvas),s=this._canvasBinding.pixelRatio;this.drawBackground(i,s),this.chart.hasModel()&&(this.drawBorder(i,s),this.drawTickMarks(i,s),this.drawBackLabels(i,s),this.drawCrossHairLabel(t,s)),this._lhsStubContainer.paintStubs(e),this._rhsStubContainer.paintStubs(e)}this.drawCrossHairLabel(t,this._topCanvasBinding.pixelRatio)}drawBackground(e,t){if((0,N.clearRect)(e,0,0,Math.ceil(this.size.w*t)+1,Math.ceil(this.size.h*t)+1,this.backgroundColor()),!this.chart.hasModel())return;const i=this.chart.model();if(!i.timeScale().isEmpty()){const s=i.model().selection().lineDataSources().reduce((e,t)=>{const i=t.timeAxisPoints();return 0===i.length?e:e.concat(i)},[]);s.length>0&&this._hightlightBackground(e,s,t)}const s=i.model().crossHairSource();s.startMeasurePoint()&&this._hightlightBackground(e,s.measurePoints(),t)}drawBorder(e,t){e.save(), -e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)),s=Math.ceil(this.size.w*t);e.fillRect(0,0,s+1,i),e.restore()}drawTickMarks(e,t){const i=this.chart.model().timeScale().marks();if(!i||0===i.length)return;let s=i.reduce((e,t)=>e.span>t.span?e:t,i[0]).span;s>30&&s<40&&(s=30),e.save(),e.strokeStyle=this.lineColor();const r=this.rendererOptions(),n=r.borderSize+r.offsetSize+r.paddingTop+r.fontSize/2;e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.textColor(),(0,N.drawScaled)(e,t,()=>{e.font=this.baseFont();for(let t=0;t=s&&e.fillText(r.label,r.coord,n)}}),e.restore()}drawBackLabels(e,t){var i;e.save();const s=new Set,r=this.chart.model().model();let n=r.dataSources();const o=r.selection().allSources();for(const e of o)s.add(e);r.hoveredSource()&&s.add(r.hoveredSource());for(const e of r.sourcesBeingMoved())s.add(e);const a=r.customSourceBeingMoved();null!==a&&s.add(a);const l=null!==(i=r.lineBeingEdited())&&void 0!==i?i:r.lineBeingCreated();l&&s.add(l),s.add(this.chart.model().crossHairSource()),n=n.concat(r.customSources());const c=this.rendererOptions();for(let i=0;i=s&&(s=a,n=o),a<=i&&(i=a,r=o)}}return n&&t.push(n),r&&t.push(r),t}_zoomAvailable(){return!this.chart.model().timeScale().isEmpty()&&this.chart.model().model().zoomEnabled()&&this._options.pressedMouseMoveScale}_mouseDownOrTouchStartEvent(e){if(this._mousedown||!this._zoomAvailable())return;this._mousedown=!0;const t=this.chart.model();t.timeScale().isEmpty()||t.startScaleTime(e.localX)}_pressedMouseOrTouchMoveEvent(e){this._zoomAvailable()&&this.chart.model().scaleTimeTo(e.localX)}_mouseUpOrTouchEndEvent(e){this._zoomAvailable()&&(this._mousedown=!1,this.chart.model().endScaleTime(),this.restoreDefaultCursor())}_contextMenuOrTouchContextMenuEvent(e){this._options.contextMenuEnabled&&$.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"TimeScaleContextMenu"},{menuName:"TimeScaleContextMenu"})}_mouseOrTouchEnterEvent(e){this._zoomAvailable()&&this.setCursor("ew-resize")}_mouseOrTouchLeaveEvent(e){this.restoreDefaultCursor()}_mouseDoubleClickOrDoubleTapEvent(e){(0,se.trackEvent)("GUI","Double click time scale"),this.chart.model().resetTimeScale()}_areEventsEnabled(){return!(0,k.hideMarksOnBars)().value()}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ft(e){return e.reduce((e,t)=>{for(const i in t)if(Ot(t,i)){const s=t[i],r=e[i];r?r.push(s):e[i]=[s]}return e},{})}const Wt=new T.TranslatedString("move left",(0,r.t)("move left")),Ht=new T.TranslatedString("move right",(0,r.t)("move right")),zt={moving:"wait_finishing",wait_finishing:"stop",stop:"moving"};class Ut{constructor(e){this._chartModel=null,this._currentDistance=0,this._deferredFinishTimeout=0,this._finishingTimeout=0,this._moveType="",this._startTime=0,this._state="stop",this._movingTimeout=0,this._chart=e,this._chart.withModel(this,()=>{this._chartModel=this._chart.model()})}destroy(){clearTimeout(this._movingTimeout)}move(e){if(null!==this._chartModel&&"stop"===this._state&&this._chartModel.beginUndoMacro(1===e?Wt:Ht),this._state=zt.stop,this._moveType="animated",this._deferredFinishTimeout&&(clearTimeout(this._deferredFinishTimeout),this._deferredFinishTimeout=0),this._finishingTimeout&&(clearTimeout(this._finishingTimeout),this._finishingTimeout=0),this._startTime=Date.now(),0===this._movingTimeout){ -const t=this._startTime,i=10,s=()=>{this.moveStep(t,0,50*e,1e3),this._movingTimeout=setTimeout(s,i)};this._movingTimeout=setTimeout(s,i)}}moveStep(e,t,i,s){if(null!==this._chartModel&&!this._chartModel.timeScale().isEmpty()){const r=Date.now();r1||!isFinite(n))&&(n=1);const o=1-Math.pow(1-n,3);return this._currentDistance=(i-t)*o+t,this._chartModel.scrollChart(this._currentDistance),n}}moveByBar(e){if(null!==this._chartModel){const t=this._chartModel.timeScale();if(t.isEmpty())return;if("stop"===this._state&&this._chartModel.beginUndoMacro(1===e?Wt:Ht),null!==t.visibleBarsStrictRange()){const e=t.indexToCoordinate(t.visibleBarsStrictRange().lastBar())+t.barSpacing()/2;Math.abs(t.width()-e)>t.barSpacing()/6&&this._chartModel.scrollChart(t.width()-e)}if(this._state=zt.stop,this._moveType="by_bar",this._startTime=Date.now(),!this._movingTimeout){let t=0,i=150;const s=400,r=()=>{this._moveByBarStep(e),t++,i>100&&(i-=t/5*20),this._movingTimeout=setTimeout(r,i)};this._movingTimeout=setTimeout(r,s),this._moveByBarStep(e)}}}stopMove(){"by_bar"===this._moveType?this.stopMoveByBar():this._stopMove()}stopMoveByBar(){"moving"===this._state&&(clearTimeout(this._movingTimeout),this._movingTimeout=0,this._state=zt.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,null!==this._chartModel&&this._chartModel.endUndoMacro())}scrollToRealtime(e){null!==this._chartModel&&this._chartModel.timeScale().scrollToRealtime(e)}_finishMove(){clearTimeout(this._movingTimeout),this._movingTimeout=0,this._deferredFinishTimeout=0;const e=this._currentDistance,t=Date.now(),i=()=>{const s=this.moveStep(t,e,0,700);s&&s<1?this._finishingTimeout=setTimeout(i,10):null!==this._chartModel&&(this._state=zt.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,this._chartModel.endUndoMacro())};this._finishingTimeout=setTimeout(i,10)}_stopMove(){"moving"===this._state&&(this._state=zt.moving,Date.now()-this._startTime<200?this._deferredFinishTimeout=setTimeout(this._finishMove.bind(this),200-(Date.now()-this._startTime)):this._finishMove())}_moveByBarStep(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;this._chartModel.scrollChartByBar(e)}}}var jt=i(37667),Gt=i(9315);class qt{constructor(){this._draggingSource=null,this._activeTouchPanes=new Set,this._scrollingPane=null,this._pinchingPane=null}onPaneDestroyed(e){this._activeTouchPanes.delete(e),this._scrollingPane===e&&(this._scrollingPane=null),this._pinchingPane===e&&(this._pinchingPane=null)}startTouch(e){this._activeTouchPanes.add(e)}endTouch(e){this._activeTouchPanes.delete(e)}hasTouchesOnOtherPanes(e){return this._activeTouchPanes.size>1||1===this._activeTouchPanes.size&&!this._activeTouchPanes.has(e)}trySetDraggingSource(e,t){return!this.hasTouchesOnOtherPanes(t)&&((0,s.assert)(null===this._draggingSource||this._draggingSource===e),this._draggingSource=e,!0)}clearDraggingSource(){null!==this._draggingSource&&(this._draggingSource=null)}draggingSource(){return this._draggingSource} -setScrollingPane(e){(0,s.assert)(null===e||null===this._scrollingPane||this._scrollingPane===e),this._scrollingPane=e}scrollingPane(){return this._scrollingPane}setPinchingPane(e){(0,s.assert)(null===e||null===this._pinchingPane||this._pinchingPane===e),this._pinchingPane=e}pinchingPane(){return this._pinchingPane}}let Yt=null;function Kt(e,t,s,r,n){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(6909),i.e(7345),i.e(2153),i.e(4763),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(8268),i.e(9055),i.e(2205),i.e(2358),i.e(6560),i.e(7635),i.e(3682),i.e(9837),i.e(3199),i.e(5827),i.e(2301),i.e(6085),i.e(4891),i.e(8883),i.e(6265)]).then(i.bind(i,73562)).then(i=>{const o=new(0,i.EditObjectDialogRenderer)(e,t,r,n);return o.show(s),o})}let $t=null;var Xt=i(20299);const Zt={[tt.TabNames.symbol]:"symbol",[tt.TabNames.legend]:"legend",[tt.TabNames.scales]:"scales",[tt.TabNames.trading]:"trading",[tt.TabNames.events]:"events",[tt.TabNames.timezoneSessions]:"appearance",[tt.TabNames.text]:"text",[tt.TabNames.style]:"style",[tt.TabNames.visibility]:"visibility"},Jt={[tt.TabNames.style]:"style",[tt.TabNames.visibility]:"visibilities"};async function Qt(e,t,s={},r,n){const o=r.activeChartWidget.value(),{initialTab:a,tabName:l}=s;if(l&&!a&&(s.initialTab=Jt[l]),(0,f.isStudyLineTool)(e)&&function(e){return[Xt.LineToolVbPFixed].some(t=>e instanceof t)}(e))return o.propertiesDefinitionsForSource(e).then(i=>null!==i?Kt(e,t,s,n,i):null);if((0,v.isStudy)(e)&&function(e){const{shortId:t}=e.metaInfo();return"Overlay"===t}(e)||(0,f.isLineTool)(e))return o.propertiesDefinitionsForSource(e).then(s=>{if(null!==s){return function(e){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(6909),i.e(7345),i.e(2153),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(8268),i.e(9055),i.e(2205),i.e(2358),i.e(7635),i.e(8090),i.e(9837),i.e(3199),i.e(5827),i.e(2301),i.e(6085),i.e(4891),i.e(8883),i.e(6780)]).then(i.bind(i,75892)).then(t=>{const i=new(0,t.SourcePropertiesEditorRenderer)(e);return null!==$t&&$t.hide(),i.show(),$t=i,i})}({propertyPages:s,model:t,source:e,activePageId:l&&Zt[l]})}return null});if((0,v.isStudy)(e))return Kt(e,t,s,n);{const e=l&&Zt[l],t=r.getChartPropertiesDialogRenderer();return t.setActivePage(e),t.show()}}var ei=i(39277),ti=i(15618),ii=i(49642),si=i(95836);class ri{constructor(e,t){this._showed=!1,this._cw=e,this._element=document.createElement("div"),this._element.classList.add("chart-loading-screen"),this._shield=document.createElement("div"),this._shield.classList.add("chart-loading-screen-shield"),this._element.appendChild(this._shield),t.appendChild(this._element),this._cw.withModel(this,this._connectToModel)}show(){this._cw.setInLoadingState(!0),this._showed||(this._showed=!0,this._show())}hide(){this._cw.setInLoadingState(!1),this._showed&&this._hide()}isShown(){ -return this._showed}_connectToModel(){const e=this._cw.model().mainSeries().dataEvents();e.symbolError().subscribe(this,e=>{e!==si.permissionDenied&&this.hide()}),e.seriesError().subscribe(this,()=>{(0,Pe.enabled)("hide_loading_screen_on_series_error")&&this.hide()}),e.completed().subscribe(this,this.hide)}_show(){const e=this._cw.properties().childs().paneProperties.childs();let t;if(e.backgroundType.value()===ii.ColorType.Solid)t=e.background.value();else{t=`linear-gradient(${e.backgroundGradientStartColor.value()},${e.backgroundGradientEndColor.value()})`}this._shield.style.background=t,this._element.classList.add("fade")}_hide(){this._showed=!1,this._element.classList.remove("fade")}}var ni=i(55257),oi=i(36759);const ai=(0,Pe.enabled)("chart_content_overrides_by_defaults"),li=(0,n.getLogger)("ChartWidget",{color:"#606"}),ci=new T.TranslatedString("hide {title}",(0,r.t)("hide {title}"));const hi={addToWatchlistEnabled:!0,showFinancialsEnabled:!1,sourceSelectionEnabled:!0,propertyPagesEnabled:!0,paneContextMenuEnabled:!0,priceScaleContextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,goToDateEnabled:!1,marketStatusWidgetEnabled:!0,chartWarningWidgetEnabled:!0,dataProblemWidgetEnabled:!0,paneControlsEnabled:!0,isSymbolAvailable:e=>Promise.resolve(!0),legendWidgetEnabled:!0,chartEventsEnabled:!0,esdEnabled:!1,croppedTickMarks:!0,countdownEnabled:!0,lastPriceAnimationEnabled:!0,useKineticScroll:l.CheckMobile.any(),indicatorsDialogShortcutEnabled:!0,handleScale:{mouseWheel:!0,pinch:!0,axisPressedMouseMove:{time:!0,price:!0}},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0}};function di(e,t,i,s=0){const r=t.mainSeries().syncModel(),n=e.mainSeries().syncModel();let o=i;if(null!==r&&null!==n){const t=e.createSyncPoint(r.syncSourceTarget(),n.syncSourceTarget());0!==s&&(i=r.projectTime(i,s)),o=t.sourceTimeToTargetTime(i)}return e.timeScale().points().roughIndex(o,n&&n.distance.bind(n))}class ui{constructor(e,t,i){this.activePaneWidget=null,this._model=null,this._paneWidgets=[],this._maximizedPaneWidget=null,this._timeAxisWidget=null,this._paneSeparators=[],this._controlBarNavigation=null,this._lineToolsSynchronizer=null,this._modelCreated=new(K()),this._isDestroyed=!1,this._customLegendWidgetsFactoryMap=new Map,this._backgroundTopTheme=new($e())("light"),this._backgroundBasedTheme=new($e())("light"),this._backgroundBottomTheme=new($e())("light"),this._lhsAxesWidth=0,this._rhsAxesWidth=0,this._lhsPriceAxisWidthChanged=new(K()),this._rhsPriceAxisWidthChanged=new(K()),this._mainDiv=null,this._parent=null,this._elTooltipDiv=null,this._hotkeysListener=null,this._mouseWheelHelper=null,this._onWheelBound=null,this._justActivated=!1,this._inited=!1,this._containsData=!1,this._initialLoading=!1,this._defTimeframe=void 0,this._removeMaximizeHotkey=null,this._metaInfoRepository=null,this._invalidationMask=null,this._drawPlanned=!1,this._drawRafId=0,this._inLoadingState=!1,this._timingsMeter=null,this._tagsChanged=new(K()),this._redraw=new(K()),this._isVisible=new($e())(!0), -this._collapsed=new($e())(!1),this._dataWindowWidget=null,this._mainSeriesErrorMessage=null,this._resizeHandler=null,this._spinner=null,this._keydownEventListener=null,this._properties=null,this._updateThemedColorBound=this._updateThemedColor.bind(this),this._saveChartService=null,this._objectTreeDialogController=null,this._chartPaintedPromise=null,this._noExchangeSubscrptionWarning=null,this._paneWidgetsSharedState=new qt,this._brokerName="",this._onZoom=new(K()),this._onScroll=new(K()),this._availableScreen=null,this._hoveredPriceAxes=new Set,this._anyAxisHovered=new($e())(!1),this._invalidationHandler=e=>{if(!(e instanceof b.InvalidationMask))throw new Error("Invalid mask");null!==this._invalidationMask?this._invalidationMask.merge(e):this._invalidationMask=e,this._drawPlanned||(this._drawPlanned=!0,this._options.visible.when(()=>{const e=!document.hidden,t=this.screen&&this.screen.isShown();null!==this._timingsMeter&&e&&!t&&this._timingsMeter.startWaitingDraw();const i=(0,s.ensureNotNull)((0,s.ensureNotNull)(this._parent).ownerDocument.defaultView);this._drawRafId=i.requestAnimationFrame(this._invalidationRAFCallback.bind(this))}))},this._id=t,this._layoutId=i,this._options=(0,_.merge)((0,_.clone)(hi),e),this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._subscribeToDrawingState(),this._chartWidgetCollection=this._options.chartWidgetCollection,this.withModel(this,()=>{const e=this.model().model();e.backgroundTopColor().subscribe(this._updateThemedColorBound),e.backgroundColor().subscribe(this._updateThemedColorBound)}),this._subscribeToMainSeriesErrors(),this._scrollHelper=new Ut(this),this._objectTreeDialogController=p.getInstance(),this._showChartEvents=Boolean(!this._options.containsData&&this._options.chartEventsEnabled),this._properties=new y.DefaultProperty("chartproperties",void 0,void 0,this._options.useUserChartPreferences),this._properties.addExclusion("scalesProperties.axisHighlightColor"),this._properties.addExclusion("scalesProperties.axisLineToolLabelBackgroundColorActive"),this._properties.addExclusion("scalesProperties.axisLineToolLabelBackgroundColorCommon"),this._properties.addExclusion("scalesProperties.showPriceScaleCrosshairLabel"),this._properties.addExclusion("scalesProperties.showTimeScaleCrosshairLabel")}destroy(){var e,t,i;null===(e=this._lineToolsSynchronizer)||void 0===e||e.destroy(),null===(t=this._noExchangeSubscrptionWarning)||void 0===t||t.destroy(),window.loginStateChange.unsubscribe(this,this._handleLoginStateChanged),null!==this._model&&(this._model.model().backgroundTopColor().unsubscribe(this._updateThemedColorBound),this._model.model().backgroundColor().unsubscribe(this._updateThemedColorBound),this._model.destroy()),this._customLegendWidgetsFactoryMap.clear(),this._scrollHelper.destroy(),null===(i=this._mainSeriesErrorMessage)||void 0===i||i.destroy(),this._isDestroyed=!0}lineToolsSynchronizer(){return this._lineToolsSynchronizer}model(){return(0,s.ensureNotNull)(this._model)}id(){return this._id} -layoutId(){return this._layoutId}crossHairSyncEnabled(){return this._chartWidgetCollection.lock.crosshair.value()}isVisible(){return this._isVisible.value()}setVisible(e){this._isVisible.setValue(e)}setCollapsed(e){this._collapsed.setValue(e)}isJustClonedChart(){return!!(this._options||{}).justCloned}setSymbol(e){this._model?this._model.setSymbol(this._model.mainSeries(),e):this.properties().childs().mainSeriesProperties.merge({symbol:e})}setResolution(e){this._model?this._model.setResolution(this._model.mainSeries(),e):this.properties().childs().mainSeriesProperties.merge({interval:e})}async showGeneralChartProperties(e){if(!Pe.enabled("show_chart_property_page"))return Promise.resolve(null);const t=await this._showChartProperties(this.model().mainSeries(),e,{doNotCloseOnBgClick:!0,onResetToDefault:async()=>{this.model().restorePreferences();const e=await Promise.resolve().then(i.bind(i,6087)),t=e.getCurrentTheme().name;e.loadTheme(this.chartWidgetCollection(),{themeName:t,standardTheme:!0})}});if(null===t)return null;const s=()=>{t.hide(),this._chartWidgetCollection.activeChartWidget.unsubscribe(s)};return this._chartWidgetCollection.activeChartWidget.subscribe(s),t}async showChartPropertiesForSources(e){if(!(0,Pe.enabled)("property_pages"))return Promise.resolve(null);const{sources:t,title:n,tabName:o,renamable:a}=e,l=(0,s.ensureNotNull)(this._model),c=Ft(t.map(e=>e.properties().childs())),h=Ft(t.map(e=>e.properties().childs().intervalsVisibilities)),[{createPropertyPage:d},{getSelectionStylePropertiesDefinitions:u},{getSelectionIntervalsVisibilitiesPropertiesDefinition:p}]=await Promise.all([Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80331)),Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,23206)),Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80975))]),_=[];return _.push(d(u(c,l),"Style",(0,r.t)("Style"))),_.push(d(p(h,l),"Visibility",(0,r.t)("Visibility"))),async function(e){const{SourcesPropertiesEditorRenderer:t}=await Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(6909),i.e(7345),i.e(2153),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(8268),i.e(9055),i.e(2205),i.e(2358),i.e(7635),i.e(8090),i.e(9837),i.e(3199),i.e(5827),i.e(2301),i.e(6085),i.e(4891),i.e(8883),i.e(6780)]).then(i.bind(i,66512)),s=new t(e);return null!==Yt&&(Yt.hide(),Yt=s),s.show(),s}({sources:t,propertyPages:_,undoModel:l,title:n,activeTabId:o,renamable:a})}getPriceAxisWidthChangedByName(e){return"left"===e?this._lhsPriceAxisWidthChanged:this._rhsPriceAxisWidthChanged}getPriceAxisMaxWidthByName(e){return"left"===e?this._lhsAxesWidth:this._rhsAxesWidth}timeAxisHeight(){return null!==this._timeAxisWidget?this._timeAxisWidget.size.h:0}withModel(e,t){null!==this._model?t.call(e):this.modelCreated().subscribe(e,t,!0)}hasModel(){return null!==this._model}copyLineToOtherCharts(){const e=(0,s.ensureNotNull)(this._model),t=e.selection().lineDataSources().filter(e=>e.isSynchronizable()) -;e.copyToOtherCharts(t)}hideDataSources(e){if(e.length){const t=e.map(e=>e.properties().visible),i=e.map(()=>!1);this.model().setProperties(t,i,ci.format({title:new T.TranslatedString(e[0].name(),e[0].title())}))}}hideSelectedObject(){this.hideDataSources(this.model().selection().dataSources().filter(e=>!0))}unlinkSelectedLine(){const e=(0,s.ensureNotNull)(this._model),t=e.selection().lineDataSources();e.unlinkLines(t)}onScroll(){return this._onScroll}onZoom(){return this._onZoom}images(e){window.TradingView.printing=!0;const t=this.model().selection().allSources();this.model().selectionMacro(e=>e.clearSelection()),this.model().model().recalculateAllPanes((0,ht.globalChangeEvent)());const i=(t,i)=>{t.paint(i,this.onWidget());const s={showCollapsedStudies:Boolean(null==e?void 0:e.showCollapsedStudies),status:null==e?void 0:e.status};return t.getScreenshotData(s)},s=[];if(null!==this._maximizedPaneWidget){const e=this._paneWidgets.indexOf(this._maximizedPaneWidget);s.push(i(this._maximizedPaneWidget,b.InvalidationMask.light().invalidateForPane(e)))}else for(let e=0;e{t.forEach(t=>{e.addSourceToSelection(t)})}),this.model().model().recalculateAllPanes((0,ht.globalChangeEvent)()),this.model().model().lightUpdate();const n=this.mainSeriesQuotesAndMetainfo();return{panes:s,timeAxis:r,colors:{text:this.properties().childs().scalesProperties.childs().textColor.value(),bg:this.properties().childs().paneProperties.childs().background.value(),scales:this.properties().childs().scalesProperties.childs().lineColor.value()},meta:n.meta,ohlc:n.ohlc,quotes:n.quotes}}setSaveChartService(e){this._saveChartService=e,null!==this._lineToolsSynchronizer&&this._lineToolsSynchronizer.setSaveChartService(e)}getSaveChartService(){return this._saveChartService}mainSeriesQuotesAndMetainfo(){let e,t,i;const s=this._model&&this._model.mainSeries();if(s){const r=e=>null==e?"":s.formatter().format(e,void 0,void 0,!0,!1)+"",n=e=>null==e?"":e+"";e={resolution:s.interval(),symbol:s.symbol(),values:s.valuesProvider().getValues(null)};const o=s.symbolInfo();o&&(e.symbol=o.full_name,e.description=o.description,e.exchange=o.exchange);const a=s.bars().last();null!==a&&(t=a.value.slice(1,5).map(r));const l=s.quotes();l&&(i={change:r(l.change),changePercent:n(l.change_percent),last:r(l.last_price)})}return{meta:e,ohlc:t,quotes:i}}updateCrossHairPositionIfNeeded(){if(this._model){const e=k.tool.value();this._model.model().setCurrentTool(e);const t=(0,x.lastMouseOrTouchEventInfo)();if(t.isTouch){const e=this._maximizedPaneWidget||this._paneWidgets[0];if(e.hasState()&&(!t.stylus&&(this._isLineToolModeExceptBrush()||(0,k.toolIsMeasure)(k.tool.value()))||this.selectPointMode().value())){ -const t=e.state(),i=.5*this._model.model().timeScale().width(),s=.5*t.defaultPriceScale().height();this._model.model().setAndSaveCurrentPosition(i,s,t)}}if(this._model&&t.isTouch){const e=this._model.model().crossHairSource();e.updateAllViews((0,ht.dataSourceChangeEvent)(e.id()))}}}trackingModePaneWidget(){if(!(0,x.lastMouseOrTouchEventInfo)().isTouch)return null;for(const e of this.paneWidgets())if(e.trackingModeEnabled())return e;return null}startTrackingMode(){if((0,x.lastMouseOrTouchEventInfo)().isTouch){this.exitTrackingMode(),this.updateCrossHairPositionIfNeeded();const e=this._maximizedPaneWidget||this._paneWidgets[0],t=this.model().model().crossHairSource().currentPoint();e.startTrackingMode(t,t)}}exitTrackingMode(){(0,x.lastMouseOrTouchEventInfo)().isTouch&&this.paneWidgets().some(e=>e.trackingModeEnabled())&&(this.paneWidgets().forEach(e=>e.exitTrackingMode()),this.model().model().clearCurrentPosition())}onToolChanged(){this.selectPointMode().value()&&this.cancelRequestSelectPoint(),this.exitTrackingMode()}setInLoadingState(e){this._inLoadingState=e}paint(e){const t=null!=e?e:b.InvalidationMask.full();t.validationActions().forEach(e=>e()),this._paneWidgets.forEach((e,i)=>{null!==this._maximizedPaneWidget&&this._maximizedPaneWidget!==e||e.paint(t.invalidateForPane(i),!1)}),this._timeAxisWidget&&this._timeAxisWidget.paint(t.invalidateForTimeScale()),this._redraw.fire()}GUIResetScales(){(0,se.trackEvent)("GUI","Reset Scales"),null!==this._model&&this._model.resetScales()}toggleMaximizePane(e){var t;if(!(this._paneWidgets.length<2)){this._maximizedPaneWidget?(this._maximizedPaneWidget.state().maximized().setValue(!1),this._maximizedPaneWidget=null,this._paneSeparators.forEach(e=>e.show())):(this._maximizedPaneWidget=e,this._maximizedPaneWidget.state().maximized().setValue(!0),this._paneSeparators.forEach(e=>e.hide()));for(let e=this._paneWidgets.length;e--;)this._paneWidgets[e].updateControls(),this._paneWidgets[e].updatePriceAxisWidgets(),this._paneWidgets[e].setErrorMessage(this._mainSeriesErrorMessage?this._mainSeriesErrorMessage.value():null);null===(t=this._timeAxisWidget)||void 0===t||t.updatePriceAxisStubs(),this._adjustSize(),this.updateCrossHairPositionIfNeeded()}}maximizedPaneWidget(){return this._maximizedPaneWidget}isMaximizedPane(){return null!==this._maximizedPaneWidget}toggleCollapsedPane(e){const t=e.state();t.collapsed().setValue(!t.collapsed().value()),this._paneWidgets.forEach(e=>e.updateControls()),this._adjustSize(),this.updateCrossHairPositionIfNeeded()}unsetActivePaneWidget(){this.activePaneWidget=null}setActivePaneWidget(e){this.activePaneWidget=e}onPaneWidgetDestroyed(e){this.activePaneWidget===e&&(this.activePaneWidget=null)}backgroundTopTheme(){return this._backgroundTopTheme.readonly()}backgroundBasedTheme(){return this._backgroundBasedTheme.readonly()}backgroundBottomTheme(){return this._backgroundBottomTheme.readonly()}lineToolsAndGroupsDTO(){return(0,s.ensureNotNull)(this._lineToolsSynchronizer).prepareDTO()}resetLineToolsInvalidated(e,t,i){(0, -s.ensureNotNull)(this._lineToolsSynchronizer).resetInvalidated(e,t,i)}applyLineToolUpdateNotification(e,t){(0,s.ensureNotNull)(this._lineToolsSynchronizer).applyLineToolUpdateNotification(e,t)}reloadAllLineTools(){(0,s.ensureNotNull)(this._lineToolsSynchronizer).reloadAllLineTools()}startApplyingLineToolUpdateNotification(){var e;null===(e=this._lineToolsSynchronizer)||void 0===e||e.startApplyingLineToolUpdateNotification()}endApplyingLineToolUpdateNotification(){var e;null===(e=this._lineToolsSynchronizer)||void 0===e||e.endApplyingLineToolUpdateNotification()}applyAlertIdByExternalSource(e,t){var i;null===(i=this._lineToolsSynchronizer)||void 0===i||i.applyAlertIdByExternalSource(e,t)}deleteAlertByExternalSource(e,t){var i;null===(i=this._lineToolsSynchronizer)||void 0===i||i.deleteAlertByExternalSource(e)}shouldBeSavedEvenIfHidden(){return this.model().model().shouldBeSavedEvenIfHidden()}showObjectsTreeDialog(){var e;null===(e=this._objectTreeDialogController)||void 0===e||e.show()}addCustomWidgetToLegend(e,t){this._customLegendWidgetsFactoryMap.set(e,t);for(const i of this.paneWidgets())i.addCustomWidgetToLegend(e,t)}applyIndicatorsToAllChartsAvailable(){if(!this.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return!1;for(const e of this.model().model().panes()){if(e.sourcesByGroup().all().some(e=>(0,v.isStudy)(e)&&!0))return!0}return!1}restoreState(e,t,i){this._adjustSize();(0,s.ensureNotNull)(this._model).restoreState(this._content,t,i);this._setActions()}addCompareAsOverlay(e,t){const i=this.model();return(0,s.ensureDefined)(this._options.isSymbolAvailable)(e).then(s=>{if(!s)return null;const r=i.createStudyInserter({type:"java",studyId:"Overlay@tv-basicstudies"});return r.setForceOverlay(!0),r.setPreferredPriceScale("as-series"),r.setTargetPriceScaleMode({percentage:!0}),void 0!==t&&r.setPropertiesState({allowExtendTimeScale:t}),r.insert(async()=>({inputs:{symbol:e}}))})}scrollHelper(){return this._scrollHelper}setBroker(e){var t;this._brokerName=e,null===(t=this._lineToolsSynchronizer)||void 0===t||t.setBroker(e)}chartPainted(){return this._drawPlanned?(null===this._chartPaintedPromise&&(this._chartPaintedPromise=(0,c.createDeferredPromise)()),this._chartPaintedPromise.promise):Promise.resolve()}setDataWindowWidget(e){this._dataWindowWidget=e}removeDataWindowWidget(){this._dataWindowWidget=null}showSelectedSourcesProperties(e){const t=(0,s.ensureNotNull)(this._model).selection().dataSources();if(1===t.length)this.showSourceProperties(t[0],e);else{const i=t.filter(f.isLineTool);i.length>0&&this.showChartPropertiesForSources({sources:i,tabName:e})}}update(){if(this.hasModel()){for(const e of this._paneWidgets)e.update();this._timeAxisWidget&&this._timeAxisWidget.update()}}setPriceAxisHovered(e,t){t?this._hoveredPriceAxes.add(e):this._hoveredPriceAxes.delete(e),this._anyAxisHovered.setValue(this._hoveredPriceAxes.size>0)}anyPriceAxisHovered(){return this._anyAxisHovered.readonly()}async _showChartProperties(e,t,i,s){if(!this._model)return null;t&&((0, -a.setValue)("properties_dialog.active_tab.chart",t),i.tabName=t);const r=await Qt(e,this._model,i,this._options.chartWidgetCollection,s);return(null==r?void 0:r.visible().value())?r:null}_createLineToolsSynchronizerIfNeeded(){0}_updateThemedColor(){const e=this.model().model(),t=e.backgroundColorAtYPercentFromTop(.5);let i=e.backgroundTopColor().value(),s=e.backgroundColor().value();const r=(0,ne.isColorDark)(t),n=(0,ne.isColorDark)(i),o=(0,ne.isColorDark)(s);this.widget().classList.toggle("chart-widget--themed-dark",r),this.widget().classList.toggle("chart-widget--themed-light",!r),this.widget().classList.toggle("chart-widget__top--themed-dark",n),this.widget().classList.toggle("chart-widget__top--themed-light",!n),this.widget().classList.toggle("chart-widget__bottom--themed-dark",o),this.widget().classList.toggle("chart-widget__bottom--themed-light",!o),this._backgroundTopTheme.setValue(n?"dark":"light"),this._backgroundBasedTheme.setValue(r?"dark":"light"),this._backgroundBottomTheme.setValue(o?"dark":"light"),i===s&&(0,F.isStdThemedDefaultValue)("chartProperties.paneProperties.background",i,this._backgroundBasedTheme.value())&&(i=null,s=null);for(const e of this._paneWidgets)e.updateThemedColors({topColor:i,bottomColor:s})}_isLineToolModeExceptBrush(){const e=k.tool.value();return(0,f.isLineToolName)(e)&&!(0,f.isLineDrawnWithPressedButton)(e)&&!this.selectPointMode().value()}_cancelCreatingLine(){const e=(0,s.ensureNotNull)(this._model).model(),t=e.lineBeingCreated();if(null!==t){const i=(0,s.ensureNotNull)(e.paneForSource(t));(0,s.ensureNotNull)(this.paneByState(i)).cancelCreatingLineTool()}const i=e.crossHairSource().measurePane().value();if(null!==i){(0,s.ensureNotNull)(this.paneByState(i)).cancelMeasuring()}}_adjustSize(e){var t;let i=0;const s=null===this._model?null:this._model.model().priceScaleSlotsCount(),r=new Uint32Array(null===s?0:s.left),n=new Uint32Array(null===s?0:s.right),o=(0,N.getCanvasDevicePixelRatio)(document.body),a=(e,t)=>e+t,l=(e,t)=>{t.forEach((t,i)=>{e[i]=Math.max(e[i],t)})},c=this._width(),d=this._height(),u=this._paneSeparators.length,p=this.isMaximizedPane()?0:kt.height()*u,_=null!==this._timeAxisWidget?this._timeAxisWidget.optimalHeight():0;let m=d-_>=61?_:0;m%2&&(m+=1);const g=Math.max(1,Math.floor((d-p-m)/this._paneWidgets.length));let f=0,v=null;for(const e of this._paneWidgets)if(!this._maximizedPaneWidget||this._maximizedPaneWidget===e){e.leftPriceAxisesContainer().updateCurrencyLabels();const t=e.leftPriceAxisesContainer().optimalWidths();e.rightPriceAxisesContainer().updateCurrencyLabels();const s=e.rightPriceAxisesContainer().optimalWidths();l(r,t),l(n,s),this._maximizedPaneWidget!==e&&e.state().collapsed().value()?f+=Math.min(g,e.collapsedHeight()):(i+=e.stretchFactor(),v=e)}let S=r.reduce(a,0),y=n.reduce(a,0),b=Math.max(c-S-y,0);if(b<=102){S=0,y=0,b=c;for(let e=0;e0){const e=new kt(this,s-1,s);this._paneSeparators.push(e),this._timeAxisWidget?this._elMainTable.insertBefore(e.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(e.getElement())}this._timeAxisWidget?this._elMainTable.insertBefore(i.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(i.getElement())}for(let i=0;ib.InvalidationLevel.Cursor&&(null===(t=this._timeAxisWidget)||void 0===t||t.update()),this.paint(e),this._dataWindowWidget){const t=e.maxPaneInvalidation();t===b.InvalidationLevel.Full?this._dataWindowWidget.fullUpdate():t>b.InvalidationLevel.None&&this._dataWindowWidget.update()}for(let t=0;t{i.appendChild(r),r.addEventListener("mousedown",this._beginRequestActive.bind(this)),r.addEventListener("mouseup",this._endRequestActive.bind(this)),r.addEventListener("touchstart",this._beginRequestActive.bind(this)),r.addEventListener("touchmove",this._endRequestActive.bind(this)),r.addEventListener("touchend",this._endRequestActive.bind(this)),r.addEventListener("click",this._requestActive.bind(this))}),this._inited&&(null!==this._timeAxisWidget&&(this._timeAxisWidget.destroy(),this._timeAxisWidget=null),this._paneWidgets.forEach(e=>{e.destroy()}),this._paneWidgets.length=0,this._paneSeparators.forEach(e=>{e.destroy()}),this._paneSeparators.length=0,this._update(b.InvalidationMask.full()))}_init(){this.hasModel()&&this.model().mainSeries().clearData(),this._initColors(),this._makeDefaultGui();this._makeDefaultModel(),(()=>{this._checkObsoleteTimezone(),this._chartSession&&this._chartSession.connected()&&this.model().model().restart(),this._content&&(this._initColors(),this._updateGui(),this.update()),this._resizeHandler=()=>{this._invalidationHandler(b.InvalidationMask.full())},this._resizeHandler(),(0,s.ensureNotNull)(this._parent).appendChild((0,s.ensureNotNull)(this._mainDiv)),this._spinner&&(this._spinner.stop(),this._spinner=null),this._keydownEventListener=e=>{27===e.which&&e.preventDefault()},window.addEventListener("keydown:chart_"+this._id,this._keydownEventListener),this._initBarsMarksSources(),this._activateSymbolSearchHotkeys(),this.model().timeScale().onScroll().subscribe(this,()=>this._onScroll.fire()),this._inited=!0})()}_makeDefaultModel(){let e;if(this._content&&this._content.timeScale.points){const t=this._content.timeScale.points.items[0];e={startDate:t}}if(!(0,s.ensureNotNull)(this._metaInfoRepository).getInternalMetaInfoArray())throw new Error("Cannot create chart model: studies metainfo is absent");const t=()=>{var t,i;const r={readOnly:this.readOnly(),isSnapshot:!!this._containsData,...o(this._options,["timeScale","crossHair","esdEnabled","countdownEnabled","lastPriceAnimationEnabled","currencyConversionEnabled","unitConversionEnabled","watermarkEnabled","shiftVisibleRangeOnNewBar","hideIdeas","onWidget"])};let n;n=this._collapsed;const a=function(e,t,i,s,r,n,o,a,l,c,h){const d=new g.ChartUndoModel(e,t,i,s,r,n,o,a,l,c,h);return d.model().fullUpdate(),d -}(this._chartSession,this._invalidationHandler,this.properties(),e,(0,s.ensureNotNull)(this._metaInfoRepository),this,this._options.undoHistory,this._options.barsMarksContainersFactory,r,n,null!==(i=null===(t=this._saveChartService)||void 0===t?void 0:t.autoSaveEnabled())&&void 0!==i?i:new($e())(!0));return this._createSessions(a.model()),a};(0,Pe.enabled)("lean_chart_load")?this._model=this._model||t():this._model=t(),this._model.model().setChartSaveTime(1e3*this._chartWidgetCollection.metaInfo.lastModified.value()),this._createVolumeIfNeeded();if(this._content){let e={};ai&&this._initialLoading&&(e={symbol:this._defSymbol,interval:this._defInterval,style:this._defStyle}),this.restoreState(this._content,this._containsData,e),ai&&this._defSymbol&&this.model().model().recalculatePriceRangeOnce()}else this._setActions();this._createLineToolsSynchronizerIfNeeded(),(()=>{const e=(0,s.ensureNotNull)(this._model);e.onTagsChanged().subscribe(this,()=>this.onModelTagsChanged()),this._initBackgroundColor(),this._updateGui(),this._modelCreated.fire(e),this._tagsChanged.fire();const t=e.mainSeries(),i=t.properties().childs();this._defTimeframe&&t.setDefaultTimeframe(this._defTimeframe),e.lineCancelled().subscribe(this,()=>this.onLineCancelled()),t.dataEvents().symbolNotPermitted().subscribe(null,e=>t.setSymbolParams({symbol:e})),i.style.unsubscribe(this,this._onChartStyleChanged),i.style.subscribe(this,this._onChartStyleChanged),t.dataEvents().completed().subscribe(this,()=>this._addPerfMark("SeriesCompleted"),!0),t.dataEvents().barReceived().subscribe(this,()=>this._addPerfMark("SeriesFirstDataReceived"),!0);this._options;t.dataEvents().chartTypeNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.dataEvents().intradaySpreadNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.dataEvents().customIntervalNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:(0,Gt.getDefaultResolution)((0,jt.isRangeStyle)(i.style.value()))})}),t.dataEvents().intradayExchangeNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.requestingResolutionWhenNotSupported.subscribe(null,e=>t.setInterval(e)),t.requestingStyleIsNotSupported.subscribe(null,()=>{const i=t.interval(),s=e.model().defaultResolutions(),r=(0,jt.getLastUsedSingleValueBasedStyle)(),n=(0,Gt.getResolutionByChartStyle)(r,i,s);t.setChartStyleWithIntervalIfNeeded(r,n)}),t.requestingStyleSupportRecovered.subscribe(null,i=>{const s=t.interval(),r=e.model().defaultResolutions(),n=(0,Gt.getResolutionByChartStyle)(i,s,r);t.setChartStyleWithIntervalIfNeeded(i,n)})})()}_initBarsMarksSources(){this.withModel(this,()=>{for(const e of this.model().barsMarksSources())e.onNeedRepaint.subscribe(this,()=>this.model().model().lightUpdate())})}_handleLoginStateChanged(){0}_checkObsoleteTimezone(){const e=this.properties().childs().timezone.value();(0,ei.timezoneIsAvailable)(e)||this.properties().childs().timezone.setValue({UTC:"Etc/UTC",EST:"America/New_York",CST:"America/Chicago",PST:"America/Los_Angeles"}[e]||"exchange")} -_initColors(){const e=this.properties().childs(),t=e.scalesProperties.childs();t.lineColor.listeners().subscribe(this,this._updateAndPaint),t.textColor.listeners().subscribe(this,this._updateAndPaint),e.paneProperties.childs().separatorColor.listeners().subscribe(this,this._setPaneSeparatorLineColor)}_setPaneSeparatorLineColor(){this._paneSeparators.forEach(e=>e.update()),this._updateAndPaint()}_updateAndPaint(){this.update(),this.paint()}_makeDefaultGui(){this._makeLoadingScreen(),this.hasModel()&&(this._makeTimeAxisWidget(),this._makePaneWidgetsAndSeparators()),this._adjustSize(),this._updateScalesActions(),(0,N.disableSelection)(this._elMainTable),this.update(),this.paint()}_makeLoadingScreen(){if(Pe.enabled("lean_chart_load")){if(this.screen)return;this.screen=new ri(this,(0,s.ensureNotNull)(this._parent))}else this.screen=new ri(this,(0,s.ensureNotNull)(this._mainDiv))}_makeAvailableOnTVPopup(){throw new Error("Not implemented")}_createChartEventsSource(){throw new Error("Not implemented")}_activateSymbolSearchHotkeys(){this.readOnly()||this._options.hideSymbolSearch||(0,ti.activateKeyPressHandler)()}_makeTimeAxisWidget(){if(this._timeAxisWidget)return void this._timeAxisWidget.updatePriceAxisStubs();const e=this.model();this._timeAxisWidget=new Rt(this,this._options.timeScaleWidget,this._titlesProvider.bind(this),this._menuItemsProvider.bind(this),this._backgroundBasedTheme),this._elMainTable.appendChild(this._timeAxisWidget.getElement()),this._timeAxisWidget.updatePriceAxisStubs(),this._timeAxisWidget.onLabelHovered().subscribe(this,(t,i)=>{const r=this._maximizedPaneWidget?this._maximizedPaneWidget.state():e.paneForSource(e.mainSeries()),n=(0,s.ensureNotNull)(this.paneByState((0,s.ensureNotNull)(r))).highlightedPriceAxis(),o=n.value();(i||o.owner===t.owner)&&(n.setValue({owner:t.owner,axis:i?t.axis:null}),this.model().model().lightUpdate())})}_titlesProvider(e,t){const i=this.model(),r=(0,s.ensureNotNull)(this._maximizedPaneWidget?this._maximizedPaneWidget.state():i.paneForSource(i.mainSeries())),n="right"===e?r.rightPriceScales():r.leftPriceScales();if(n.lengthe===i.mainSeries()||(0,v.isStudy)(e));return o.reverse(),o=(0,ni.moveToHead)(o,i.mainSeries()),o.map(e=>e.title(!0,void 0,!1))}_menuItemsProvider(e,t){const i=this.model(),r=(0,s.ensureNotNull)(this._maximizedPaneWidget?this._maximizedPaneWidget.state():i.paneForSource(i.mainSeries())),n="right"===e?r.visibleRightPriceScales():r.visibleLeftPriceScales();if(n.length{const e=this.model().model().mainSeries();let t;t=new($e())(null).readonly(),this._mainSeriesErrorMessage=(0,m.combine)((e,t,i)=>{switch(t){case 4:{const e=this.model().model().mainSeries().seriesErrorMessage();if(!(null!==e&&("resolution_not_entitled"===e||"custom_resolution"===e||"seconds_not_entitled"===e||e.startsWith("study_not_auth:"))))return{message:(0,r.t)("Invalid symbol"),icon:(0,Pe.enabled)("hide_image_invalid_symbol")?void 0:"ghost"};break}case 1:case 2:break;default:if(i)return{message:(0,r.t)("No data here"),icon:"ghost"}}return null},t,(0,S.createWVFromGetterAndSubscription)(()=>e.status(),e.onStatusChanged()),(0,S.createWVFromGetterAndSubscription)(()=>!e.bars().size(),e.dataEvents().dataUpdated()),(0,S.createWVFromGetterAndSubscription)(()=>({}),this.model().model().onChartThemeLoaded())),this._mainSeriesErrorMessage.subscribe(e=>{this._paneWidgets.forEach(t=>t.setErrorMessage(e))},{callWithLast:!0})})}async _createControlBar(){const e=await Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,62101));this._controlBarNavigation=new e.ControlBarNavigation(this,(0,s.ensureNotNull)(this._mainDiv),this._options.controlBar),this._model&&this._adjustSize()}_subscribeToDrawingState(){if(this._options.readOnly)return;(0,k.init)();const e=(e,t)=>{const i=this._model;if(null===i)return;const s=i.model();e.model!==s&&(this._lineToolsSynchronizer?this._lineToolsSynchronizer.executeSyncedAction(()=>t(s,i)):t(s,i))};k.createdLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=(0,s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n,o=null;if(void 0===t.pointPositionPercents){if(o=di(e,t.model,t.point.timeStamp),null===o)return;n=t.point.price}else{const i=t.pointPositionPercents.x*e.timeScale().width(),s=e.mainSeries().priceScale(),r=t.pointPositionPercents.y*s.height(),a=e.mainSeries().firstValue();if(null===a)return;o=e.timeScale().coordinateToIndex(i),n=s.coordinateToPrice(r,a)}const a={index:(0,s.ensureNotNull)(o),price:n},l=i.createLineTool({pane:r,point:a,linetool:t.linetool,properties:t.properties,linkKey:t.linkKey,ownerSource:e.mainSeries(),disableSynchronization:!0,id:t.id});null!==l&&!Boolean(this.model().lineBeingCreated())&&t.finalState&&l.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),k.continuedLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=di(e,t.model,t.point.timeStamp);if(null===r)return;const n={index:r,price:t.point.price},o=e.lineBeingCreated();if(null===o)return;i.continueExternalLine(n,null!==(s=t.envState)&&void 0!==s?s:void 0,!!t.finalState)&&t.finalState&&o.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),k.cancelledLineTool.subscribe(null,t=>{e(t,(e,t)=>{e.cancelCreatingLine()})}),k.beenSetLineToolLastPoint.subscribe(null,t=>{e(t,(e,i)=>{const s=e.lineBeingCreated();if(null===s||s.linkKey().value()!==t.linkKey)return;const r=di(e,t.model,t.point.timeStamp);if(null===r)return;const n={index:r,price:t.point.price};s.setLastPoint(n),s.updateAllViews((0, -ht.dataSourceChangeEvent)(s.id())),e.lightUpdate()})}),k.startedMovingLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=t.linkKeys.map(f.lineToolByLinkKey.bind(null,e)).filter(_.notNull);if(r.length){const i=di(e,t.model,t.point.timeStamp);if(null===i)return;const n={index:i,price:t.point.price},o=null!==(s=t.activeItem)&&void 0!==s?s:null,a=r[0].pointToScreenPoint(n);a&&e.startMovingSources(r,{logical:n,screen:a},o,t.pointPositionPercents,null===t.envState?void 0:t.envState,!0)}})}),k.movedLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=e.sourcesBeingMoved().filter(f.isLineTool).filter(e=>(e=>t.linkKeys.some(t=>e.linkKey().value()===t))(e));if(!r.length)return;const n=di(e,t.model,t.point.timeStamp);if(null===n)return;const o={index:n,price:t.point.price},a=r[0].pointToScreenPoint(o);a&&e.moveSources({logical:o,screen:a},t.pointPositionPercents,null!==(s=t.envState)&&void 0!==s?s:void 0,!0)})}),k.finishedMovingLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=e.sourcesBeingMoved().filter(f.isLineTool);if(0===s.length)return;s.forEach(i=>{const s=(e=>{for(let i=0;i{e(t,(e,i)=>{var s;const r=(0,f.lineToolByLinkKey)(e,t.linkKey);if(null!==r){const i=r.getPoint(t.pointIndex),n=i?i.index:di(e,t.model,t.point.timeStamp);if(null===n)return;if(r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const i={index:n,price:t.point.price};e.startChangingLinetool(r,i,t.pointIndex,null!==(s=t.envState)&&void 0!==s?s:void 0,!0)}}})}),k.changedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=e.lineBeingEdited();if(null===r||r.linkKey().value()!==t.linkKey)return;let n=null;if(n=t.changes.indexesChanged?di(e,t.model,t.point.timeStamp):(0,s.ensureNotNull)(e.linePointBeingChanged()).index,null!==n&&r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const i={index:n,price:t.point.price};e.changeLinePoint(i,void 0,!0)}})}),k.finishedChangingLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&s.isActualSymbol()&&s.isActualCurrency()&&s.isActualUnit()&&null!==e.lineBeingEdited()&&e.endChangingLinetool(!!t.finalState,!0),null!==s&&t.finalState&&s.restoreExternalPoints(t.finalState,t.changes)})}),k.removedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const{withUndo:s,unlink:r,linkKey:n}=t,o=(0,f.lineToolByLinkKey)(e,n);if(null!==o)r&&o.detachAlert(),s?i.removeSource(o,!1):e.removeSource(o);else if(this._lineToolsSynchronizer){const{sourceTitle:e,symbol:o,lineToolState:a}=t;i.removeUnloadedLineTool({lineToolsSynchronizer:this._lineToolsSynchronizer,state:a,unlink:r,sourceTitle:e,linkKey:n,symbol:o,withUndo:s})}})}),k.finishedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&(0, -et.isLineToolFinishRequiredWhenCreatedByApi)(s.toolname)&&s.finish()})}),k.changedLineStyle.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&(s.restoreExternalState(t.state),s.propertiesChanged(!0),t.alertId&&s.syncAlert(t.alertId))})}),k.restoredLineToolState.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);if(null!==s){const i={...t.state};i.indexes=t.state.points.map(i=>({index:di(e,t.model,i.time_t),price:i.price})),e.restoreLineToolState(s,i,!1)}})}),k.restoredLineTool.subscribe(null,t=>{e(t,(e,i)=>{e.restoreSource(t.state.restorePane,t.state.paneIndex,t.state.paneState,t.state.sourceState,null)})}),k.copiedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=(0,s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n;const o={...t.state,intervalsVisibilities:(0,oi.mergeIntervalVisibilitiesDefaults)(t.state.intervalsVisibilities)},a=(0,f.createLineToolProperties)(t.linetool,o,e),l=e.dataSourceForId(t.id);if(l){if(!(0,f.isLineTool)(l))return void li.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and it is not a line tool`);if(l.toolname!==t.linetool)return void li.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and its type differs: ${l.toolname} and ${t.linetool}`)}if(l&&(l.linkKey().setValue(t.linkKey),l.share(t.sharingMode)),t.pointPositionPercents){const e={index:0,price:0};if(n=null!=l?l:i.createLineTool({pane:r,point:e,linetool:t.linetool,properties:a,linkKey:t.linkKey,disableSynchronization:!0,id:t.id}),null===n)return;n.restorePositionPercents((0,s.ensureDefined)(t.pointPositionPercents))}else{const o=t.points.map(i=>({index:(0,s.ensureNotNull)(di(e,t.model,i.timeStamp)),price:i.price})),c=o[0];if(n=null!=l?l:i.createLineTool({pane:r,point:c,linetool:t.linetool,properties:a,linkKey:t.linkKey,sharingMode:t.sharingMode,disableSynchronization:!0,id:t.id}),null===n)return;if(e.lineBeingCreated())for(let e=1;e{"use strict";i.r(t),i.d(t,{allInitialModelsCreated:()=>It,allInitialSymbolsResolved:()=>xt,applyIndicatorToAllChartsImpl:()=>je,applyIndicatorsToAllChartsImpl:()=>Ue,applyLineToolUpdateNotificationImpl:()=>Xe,applyThemeImpl:()=>At,chartsSymbolsImpl:()=>Qe,checkProFeatureImpl:()=>Mt,computeContentBoxImpl:()=>at,copyScreenshotToClipboard:()=>rt,createBroadcastChannel:()=>Ct,createChartStorageSubscriptionsIfRequired:()=>et,createClipboardHandler:()=>Ze,destroyBroadcastChannel:()=>Pt,downloadScreenshot:()=>st,generateNewChartId:()=>_t,getAsyncStateForChartImpl:()=>Ke,getClientSnapshot:()=>ot, -getSnapshot:()=>nt,getStateForChartImpl:()=>Ye,getVisuallyAdjacentDefImpl:()=>ut,hideChartImpl:()=>vt,lineToolsAndGroupsDTOsImpl:()=>qe,removeChartWidgetSubscriptionsImpl:()=>St,resetLineToolsInvalidatedImpl:()=>$e,setBrokerImpl:()=>Je,setChartLayoutWithUndoImpl:()=>Lt,setLayoutImpl:()=>yt,syncCrosshairImpl:()=>wt,syncScrollImpl:()=>Tt,takeScreenshot:()=>tt,takeServerScreenshot:()=>it,updateLayoutImpl:()=>dt,updateLayoutPartialImpl:()=>ht});var s=i(88537),r=i(86441),n=i(28353),o=i(24980),a=i(49483);function l(e){const t={};return{promise:new Promise((i,s)=>{e.subscribe(t,i,!0)}),destroy:()=>{e.unsubscribeAll(t)}}}i(54427);var c=i(35762);class h extends c.UndoCommand{constructor(e,t){super(null),this._chartModel=e,this._targetIndex=t}redo(){const e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()}undo(){const e=(0,s.ensureDefined)(this._paneId),t=this._chartModel.panes().find(t=>t.id()===e);void 0!==t&&this._chartModel.removePane(t)}createdPaneId(){return this._paneId}}class d extends c.UndoCommand{constructor(e,t,i,s){super(s),this._setter=e,this._oldValue=t,this._newValue=i}redo(){this._setter(this._newValue)}undo(){this._setter(this._oldValue)}}class u extends d{constructor(e,t,i,s){super(e=>this._vwState.setValue(e),t,i,s),this._vwState=e}}var p=i(98125),_=i(80054),m=i(65446);const g=(0,p.getLogger)("Clipboard");class f{constructor(e){this._e=e}write(e){return(0,m.writeImpl)(this._toRaw(e),this._e)}_toRaw(e){const t={files:[]};t.text=e.text,void 0!==e.app?t.html=this._serializeAppData(e.app,e.text):e.html&&(t.html=e.html);for(const i of e.files||[])t.files.push(i);return t}_serializeAppData(e,t){return`${t?(0,_.htmlEscape)(t.slice(0,256)):"📈"}`}}class v{constructor(e){this._e=e}async read(){this._e&&0===this._e.eventPhase&&(g.logWarn("Cannot use an already dispatched ClipboardEvent for reading"),this._e=null);const e=this._e?this._readUsingEvent(this._e):await this._readUsingApi();return this._fromRaw(e)}_readUsingEvent(e){const t=(0,s.ensure)(e.clipboardData);e.preventDefault();const i={files:[]};for(let e=0;e0&&(t.files=e.files),t}_parseAppData(e){if(-1===e.slice(0,1024).indexOf("data-tradingview-clip"))return;const t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-tradingview-clip]");return t?t.getAttribute("data-tradingview-clip")||"":void 0}_readBlobAsText(e){return new Promise((t,i)=>{const s=new FileReader;s.onloadend=()=>{t(s.result)},s.onerror=()=>{i(s.error)},s.readAsText(e)})}}var S=i(35749);function y(e){const t=e.target;return null!==t&&1===t.nodeType&&(0,S.isTextEditingField)(t)}function b(e){const t=e.target;if(null===t)return!1;const i=(t.ownerDocument||t).getSelection();return null!==i&&!i.isCollapsed}class w extends class{constructor(e){this._callbacks=Object.assign({},e),this._boundOnCopy=this._onCopyEv.bind(this),this._boundOnCut=this._onCutEv.bind(this),this._boundOnPaste=this._onPasteEv.bind(this)}listen(){document.addEventListener("copy",this._boundOnCopy),document.addEventListener("cut",this._boundOnCut),document.addEventListener("paste",this._boundOnPaste)}async peek(){if("granted"!==(await navigator.permissions.query({name:"clipboard-read"})).state)throw new Error("clipboard-read is not granted");return new v(null).read()}uiRequestCopy(e){this._callbacks.copyRequested&&this._callbacks.copyRequested(new f(null),e)}uiRequestCut(e){this._callbacks.cutRequested&&this._callbacks.cutRequested(new f(null),e)}uiRequestPaste(e){this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new v(null),e)}destroy(){document.removeEventListener("copy",this._boundOnCopy),document.removeEventListener("cut",this._boundOnCut),document.removeEventListener("paste",this._boundOnPaste)}_onCopyEv(e){e.defaultPrevented||this._callbacks.copyRequested&&this._callbacks.copyRequested(new f(e))}_onCutEv(e){e.defaultPrevented||this._callbacks.cutRequested&&this._callbacks.cutRequested(new f(e))}_onPasteEv(e){e.defaultPrevented||this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new v(e))}}{_onCopyEv(e){if(!y(e)&&!b(e))return super._onCopyEv(e)}_onCutEv(e){if(!y(e)&&!b(e))return super._onCutEv(e)}_onPasteEv(e){if(!y(e))return super._onPasteEv(e)}}const C=()=>i.e(4389).then(i.bind(i,4897));function P(e,t={}){return C().then(i=>i.copyToClipboardImageOfChart(e,t))}function T(e,t={}){return C().then(i=>i.getImageOfChartSilently(e,t))}var x=i(76422),I=i(84015),M=i(6087),L=i(42060),A=i(24377),E=i(26843),k=i(55257),D=i(93435),V=i(22799),B=i(52640),N=i(38069),R=i(67337),O=i(34954);const F=!R.enabled("widget_logo");function W(e,t=null,i=null){let s={};if("number"==typeof e)return{relativePositions:{[e]:{l:t,t:i}},nextElementLeft:e,nextElementTop:e};const[r,...n]=e;if("v"===r){let e=null;for(const r of n){const n=W(r,t,i);s={...s,...n.relativePositions},i=n.nextElementTop,e=n.nextElementLeft}t=e}if("h"===r){let e=null;for(const r of n){const n=W(r,t,i);s={...s,...n.relativePositions},t=n.nextElementLeft,e=n.nextElementTop}i=e}return{relativePositions:s,nextElementTop:i,nextElementLeft:t}}const H=function(e){const t={};for(const i of Object.keys(e)){const s=W(e[i]).relativePositions -;t[i]=s}return t}(N);function z(e,t,i,s){return(0,D.drawScaled)(e,s,()=>{e.fillText(i,t.x/s,t.y/s)}),e.measureText(i).width*s}function U(e){return e.map(e=>({...e,title:""}))}function j(e,t){const i=[{text:e.trim()}];for(const e of t)e.visible&&(""!==i[i.length-1].text&&i.push({text:" "}),e.title&&i.push({text:e.title}),i.push({text:e.value,color:e.color}));return i}class G{constructor(e,t){this._logoTextColor=null,this._snapshotData=e,t=t||{},this._options={backgroundColor:M.themes[e.theme].getThemedColor("color-bg-primary"),borderColor:M.themes[e.theme].getThemedColor("color-border"),font:V.CHART_FONT_FAMILY,fontSize:12,legendMode:"vertical",hideResolution:!1,showHeaderPublishedBy:!1,showHeaderMainSymbol:!1,...t};const i=H[e.layout],s=e.charts.map(e=>function(e){const t=e.panes[0],i=t.canvas.width+t.leftAxis.canvas.width+t.rightAxis.canvas.width;let s=0;for(const t of e.panes)s+=t.canvas.height;return void 0!==e.timeAxis&&(s+=e.timeAxis.canvas.height),new D.Size(i,s)}(e));if(this._pixelRatio=e.hidpiRatio,this._chartsGeometry=e.charts.map((e,t)=>function e(t,i,s,r){let n=Math.round(10*r),o=Math.round(10*r);const a=s[t];if(null!==a.l){const t=e(a.l,i,s,r);n=t.x+t.width+Math.round(5*r)}if(null!==a.t){const t=e(a.t,i,s,r);o=t.y+t.height+Math.round(5*r)}const l=i[t];return{x:n,y:o,width:l.w,height:l.h}}(t,s,i,this._pixelRatio)),!F){let i=e.theme;void 0!==t.backgroundColor&&(i="black"===(0,A.rgbToBlackWhiteString)((0,A.parseRgb)(t.backgroundColor),150)?E.StdTheme.Dark:E.StdTheme.Light),this._logoTextColor=M.themes[i].getThemedColor("color-text-primary")}this._headerDefaultTextColor=M.themes[e.theme].getThemedColor("color-text-primary")}async getImage(){const e=this._pixelRatio;let t=0,i=0,s=0;const n=this._headerItems();if(n.length>0){s=Math.ceil(1.4*this._options.fontSize*e)*n.length}i+=s;let o=0,a=0;for(const e of this._chartsGeometry)o=Math.max(o,e.x+e.width),a=Math.max(a,e.y+e.height);const l=i;t+=o,i+=a,t+=Math.round(10*e);const c=F?Math.round(10*e):Math.round(35*e),h=i;i+=c;const d=(0,D.createDisconnectedCanvas)(document,new D.Size(t,i),1),u=(0,D.getContext2D)(d);u.font=(0,B.makeFont)(this._options.fontSize,this._options.font),u.textBaseline="top",u.fillStyle=this._options.backgroundColor,u.fillRect(0,0,t,i),n.length>0&&this._drawHeader(u,n,t,new r.Point(Math.round(10*e),Math.round(10*e)));for(let e=0;e{const s=new Image;s.width=e,s.height=t,s.onload=()=>{i({image:s,width:e,height:t})},s.src=n})}(Math.round(20*e),Math.round(15*e),this._logoTextColor);u.fillStyle=this._logoTextColor,u.font=(0,B.makeFont)(13,V.CHART_FONT_FAMILY) -;const i=h+Math.round(c/2-t.height/2);!function(e,t,i,s,r){e.save(),e.drawImage(s.image,t,i,s.width,s.height),e.textBaseline="bottom";const n=(t+s.width)/r+3,o=(i+s.height)/r;(0,D.drawScaled)(e,r,()=>{e.fillText("TradingView",n,o)}),e.restore()}(u,Math.round(10*e),i,t,e)}return d}_drawChart(e,t,i,s){i.save(),i.translate(t.x+s.x,t.y+s.y);let n=0;for(const t of e.panes){let s=0;const o=t.leftAxis.canvas.width+Math.round(8*this._pixelRatio),a=n,l=n+Math.round(10*this._pixelRatio);t.leftAxis.contentWidth>0&&(i.drawImage(t.leftAxis.canvas,s,n),s+=t.leftAxis.canvas.width),i.drawImage(t.canvas,s,n),s+=t.canvas.width,t.rightAxis.contentWidth>0&&i.drawImage(t.rightAxis.canvas,s,n),"pane"===t.type&&(i.fillStyle=e.colors.text,this._drawLegend(t,i,new r.Point(o,l),a)),n+=t.canvas.height}if(void 0!==e.timeAxis){let t=0;e.timeAxis.lhsStub.contentWidth>0&&(i.drawImage(e.timeAxis.lhsStub.canvas,t,n),t+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,t,n),t+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,t,n)}i.strokeStyle=this._options.borderColor,i.strokeRect(0,0,t.width,t.height),i.restore()}_headerItems(){var e,t,i,s;const r=[];if(this._options.showHeaderPublishedBy&&this._snapshotData.publishedBy)for(const e of this._snapshotData.publishedBy)r.push([{text:e}]);if(this._options.showHeaderMainSymbol){const n=this._snapshotData.charts[0],o=`${null===(e=n.meta)||void 0===e?void 0:e.symbol}, ${null===(t=n.meta)||void 0===t?void 0:t.resolution}`;r.push(j(o,null!==(s=null===(i=n.meta)||void 0===i?void 0:i.values)&&void 0!==s?s:[]))}return r}_drawHeader(e,t,i,s){e.save(),e.fillStyle=this._headerDefaultTextColor;const n=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);t.forEach((t,o)=>{this._drawLegendLine(e,new r.Point(s.x,s.y+n*o),i,t,!0)}),e.restore()}_drawLegend(e,t,i,s){let n=!0;const o=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);let a=i.x,l=i.y;if(e.mainSeriesText&&l+oe.text).join("");let a=t.x;const l=function(e,t,i,s){if(e.measureText(t).width*s<=i)return{text:t,elided:!1};const r=e.measureText("...").width*s,n=[];for(let e=0;ee.measureText(t.slice(0,o+1)).width*s+r>i);return{text:(t=t.slice(0,o)).trim(),elided:!0}}(e,o,i-a,this._pixelRatio);if(l.elided&&!n)return null;const c=[];let h=0;for(const e of s){if(h+e.text.length>l.text.length)break;c.push(e.text), -h+=e.text.length}const d=c.join("").trim().length;h=0;for(const i of s){if(h+i.text.length>d)break;i.color&&(e.save(),e.fillStyle=i.color),a+=z(e,new r.Point(a,t.y),i.text,this._pixelRatio),i.color&&e.restore(),h+=i.text.length}return l.elided&&(a+=z(e,new r.Point(a,t.y),"...",this._pixelRatio)),a}}var q=i(9423),Y=i(4676),K=i(85733),$=i(45112),X=i(80643),Z=i(94804),J=i(76818),Q=i(44349),ee=i(34026),te=i(29892),ie=i(43891),se=i(42759),re=i(49094);class ne{constructor(e,t,i){this._data=e,this._hittest=t,this._textWidthCache=i}draw(e,t){const i=t.pixelRatio,s=this._data.centerPoint,n=Math.round(s.x*i),o=Math.round(s.y*i),a=Math.max(1,Math.floor(i))%2/2,l=new r.Point(n+a,o-a);this._drawLollipop(e,l,t),this._drawLabel(e,l,t.pixelRatio),this._drawImage(e,l,t.pixelRatio)}hitTest(e,t){const i=(0,re.interactionTolerance)().esd,s=this._data.centerPoint.y-this._data.style.lollipop.height/2-i,n=this._data.centerPoint.x-this._data.style.lollipop.width/2-i,o=(0,r.box)(new r.Point(n,s),new r.Point(n+this._data.style.lollipop.width+2*i,s+this._data.style.lollipop.height+2*i));return(0,ee.pointInBox)(e,o)?this._hittest:null}_drawLollipop(e,t,i){const s=this._data.style,r=i.pixelRatio,n=Math.max(1,Math.floor(r));let o=Math.round(s.lollipop.width*r);o%2!=n%2&&(o+=1);const a=o/2;s.lollipop.fillCircle&&s.lollipop.backgroundColor&&(e.fillStyle=s.lollipop.backgroundColor,(0,se.createCircle)(e,t.x,t.y,a),e.fill());const l=Math.round(s.lollipop.lineWidth*r);e.strokeStyle=s.lollipop.strokeStyle,e.lineWidth=l,(0,te.setLineStyle)(e,ie.LINESTYLE_SOLID);const c=a-Math.round(1*r+l/2);(0,se.createCircle)(e,t.x,t.y,c),s.lollipop.fillCircle&&s.lollipop.fillStyle&&(e.fillStyle=s.lollipop.fillStyle,e.fill()),e.stroke()}_drawLabel(e,t,i){const s=this._data.style.lollipop.text,r=s.label;if(""===r)return;e.textAlign="center",e.textBaseline="middle",e.fillStyle=s.strokeStyle,e.font=s.font;const n=this._textWidthCache.yMidCorrection(e,r);e.translate(t.x,t.y+((s.deltaY||0)+n)*i),(0,D.drawScaled)(e,i,()=>{e.fillText(r,0,0)})}_drawImage(e,t,i){const s=this._data.style.lollipop.image;if(void 0===s)return;const{width:r,height:n}=s,o=Math.round(r*i),a=Math.round(n*i),l=Math.round(t.x-o/2),c=Math.round(t.y-a/2);e.drawImage(s,0,0,r,n,l,c,o,a)}}var oe=i(84346);const ae={fillPath:new Path2D("M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z"),strokePath:new Path2D("M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z")},le={fillPath:new Path2D("M8.961 22.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 15.025V3a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 17.6l7.5 4.48z"),strokePath:new Path2D("M9.866 20.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V3c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z")},ce={ -fillPath:new Path2D("M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z"),strokePath:new Path2D("M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z")};function he(e,t,i,s,r){const n=i.pixelRatio;e.save(),e.translate(t.x-s.lollipop.width*n/2,t.y-s.lollipop.height*n/2),e.scale(n,n),s.lollipop.fillCircle&&s.lollipop.backgroundColor&&(e.fillStyle=s.lollipop.backgroundColor,e.fill(r.fillPath)),e.strokeStyle=s.lollipop.strokeStyle,e.lineWidth=Math.round(s.lollipop.lineWidth*n)/n,(0,te.setLineStyle)(e,ie.LINESTYLE_SOLID),s.lollipop.fillCircle&&s.lollipop.fillStyle&&(e.fillStyle=s.lollipop.fillStyle,e.fill(r.strokePath)),e.stroke(r.strokePath),e.restore()}function de(e,t,i,s){he(e,t,i,s,ae)}function ue(e,t,i,s){he(e,t,i,s,le)}function pe(e,t,i,s){he(e,t,i,s,ce)}class _e extends ne{_drawLollipop(e,t,i){const s=this._data.style;switch(s.shape){case"earningUp":de(e,t,i,s);break;case"earningDown":ue(e,t,i,s);break;case"earning":pe(e,t,i,s);break;default:super._drawLollipop(e,t,i)}}}const me={backgroundDark:(0,$.getHexColorByName)("color-cold-gray-900"),backgroundLight:(0,$.getHexColorByName)("color-white")};class ge extends class{constructor(e,t,i){this._invalidated=!1,this._renderer=new Z.CompositeRenderer,this._textWidthCache=new J.TextWidthCache,this._stylesCache=null,this._lollipops={},this._lollipopsCounter=0,this._lastClickedId=null,this.onPaneBgChange=()=>{this._recreateStyles(this._model)},this._lastClickedId=null,this._model=e,this._source=t,this._hitTestHandler=i,this._recreateStyles(e),e.backgroundColor().subscribe(this.onPaneBgChange),e.mainSeries().onSymbolIntervalChanged().subscribe(this,this._onSymbolOrIntervalChanged)}destroy(){this._model.backgroundColor().unsubscribe(this.onPaneBgChange),this._model.mainSeries().onSymbolIntervalChanged().unsubscribeAll(this)}onClickOutside(e){var t;if(null===this._lastClickedId||!e)return void this.clearLastClicked();let i=null;if(function(e){return void 0!==e.touches}(e)){if(1!==e.touches.length)return;{const t=(0,s.ensureNotNull)(e.target).getBoundingClientRect(),n=e.touches[0];i=new r.Point(n.clientX-t.left,n.clientY-t.top)}}else i=new r.Point(e.offsetX,e.offsetY);const n=this._renderer.hitTest(i,{physicalHeight:0,physicalWidth:0,pixelRatio:1,cssHeight:0,cssWidth:0});null!==n&&(null===(t=n.data())||void 0===t?void 0:t.activeItem)===(0,s.ensureDefined)(this._lollipops[this._lastClickedId]).itemIndex||this.clearLastClicked()}clearLastClicked(){const e=null!==this._lastClickedId&&this._lollipops[this._lastClickedId]||null;null!==e&&(e.active=!1),this._lastClickedId=null}getLastClickedLollipopId(){return this._lastClickedId}update(){this._invalidated=!0}afterUpdate(e,t,i,s){}getStyle(e){const t=e.active?"active":e.hovered?"hovered":"default";let i=t;if(e.stack&&(i+="_stack:"+e.stack),"active"===i)return this._activeStyle;if("hovered"===i)return this._hoveredStyle;if("default"===i)return this._defaultStyle;if(this._stylesCache||(this._stylesCache={}), -!this._stylesCache[i]){const s=(0,X.clone)("active"===t?this._activeStyle:"hovered"===t?this._hoveredStyle:this._defaultStyle);e.stack&&(s.lollipop.incHeight=25*e.stack),this._stylesCache[i]=s}return this._stylesCache[i]}hasTooltip(e){return!0}_getY(){let e=0;const t=this._model.panes();for(let i=t.length;i--;){const s=t[i];s.containsMainSeries()&&(e+=s.height())}return e}_showBarLine(e){return this.hasTooltip(e)&&(e.hovered||e.active)}_createRenderers(e,t){this._renderer.clear();const i=new D.Size(e,t);for(const e in this._lollipops)if(this._lollipops.hasOwnProperty(e)){const t=(0,s.ensureDefined)(this._lollipops[e]);if(t.visible){const e=this.getStyle(t),s={id:t.id,centerPoint:new r.Point(t.basePoint.x,t.basePoint.y-e.lollipop.bottom-e.lollipop.height/2-(e.lollipop.incHeight||0)),style:e},n={activeItem:t.itemIndex,clickHandler:this._lollipopMouseClickHandler.bind(this,s,i),tapHandler:this._lollipopMouseClickHandler.bind(this,s,i)};if(this._renderer.append(this._createRendererForLollipop(s,n)),this._showBarLine(t)){const{strokeStyle:i,lineStyle:s,lineWidth:r}=e.barLine,n={color:i,linestyle:s,linewidth:r,x:t.basePoint.x,top:0,bottom:t.basePoint.y-e.lollipop.bottom-e.lollipop.height},o=new Q.VerticalLineRenderer;o.setData(n),this._renderer.insert(o,0)}}}}_recreateStyles(e){this._stylesCache=null}_createRendererForLollipop(e,t){return new ne(e,new oe.HitTestResult(oe.HitTestResult.CUSTOM,t),this._textWidthCache)}_lollipopMouseClickHandler(e,t,i){i.preventDefault();const n=e.id;if(this._lastClickedId=this._lastClickedId===n?null:n,null===this._lastClickedId)return;const o={target:i.target,targetSize:t,point:new r.Point(e.centerPoint.x,e.centerPoint.y-e.style.lollipop.height/2-8),marginTop:15};this._hitTestHandler(o,()=>{const e=(0,s.ensureDefined)(this._lollipops[n]),t=this.createTooltipContent(e);return t?[t]:null})}_onSymbolOrIntervalChanged(){this._lollipops={},this._lollipopsCounter=0,this._renderer.clear(),this.clearLastClicked()}}{constructor(e,t,i){super(e,t,i),this.stylesCache={},this.templatesCache={},this._itemIndexToId=new Map,this.source=t}createTooltipContent(e){const t=e.items;return t?{subTitle:Array.isArray(t)?t.map(e=>({value:e})):[{value:t}],style:{color:e.color}}:null}clearCaches(){this.clearLastClicked(),this._lollipops={},this._lollipopsCounter=0}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._createLollipops(t,e),this._invalidated=!1),this._renderer}getStyle(e){const t=e.active?"active":e.hovered?"hovered":"default";return this._generateStyle(t,e.color,e.label,e.stack,e.shape)}hasTooltip(e){return Boolean(e.items&&e.items.length)}getLollipopIdByIndex(e){return this._itemIndexToId.get(e)}_createRendererForLollipop(e,t){return new _e(e,new oe.HitTestResult(oe.HitTestResult.CUSTOM,t),this._textWidthCache)}_createLollipops(e,t){const i=this._model.timeScale(),s=super._getY(),n=this._model.lastHittestData(),o=this._model.hoveredSource(),a=this.source.marks(),l=new Map;Object.keys(a).forEach(e=>{var t;const c=a[e],h=c.id,d=c.index;if(null!=d){ -const e=h===this.getLastClickedLollipopId(),a=this._lollipops[h],u=void 0!==a?a.itemIndex:this._lollipopsCounter++;this._itemIndexToId.has(u)||this._itemIndexToId.set(u,h);const p=o===this.source&&null!==n&&n.activeItem===u,_=(null!==(t=l.get(d))&&void 0!==t?t:-1)+1;l.set(d,_),this._lollipops[h]={id:h,itemIndex:u,basePoint:new r.Point(i.indexToCoordinate(d)+1,s),hovered:p,active:e,label:c.label,color:c.color,items:c.tooltip,visible:!0,stack:_,shape:c.shape}}}),super._createRenderers(e,t)}_generateStyle(e,t,i,s,r){let n=e+t+i;if(void 0!==s&&(n+="_stack"+s),!(n in this.stylesCache)){const o=this._model.isDark()?me.backgroundDark:me.backgroundLight;let a,l=t;if("active"===e)a=t,l="rgba(255, 255, 255, 0.92)";else if("hovered"===e){const e=(0,A.tryParseRgba)(t);if(null!==e){const t=e[3]*(1-.85);a=(0,A.rgbaToString)((0,A.rgba)(e[0],e[1],e[2],t))}}let c=23,h=23,d=1,u=0;"earning"===r?(h=21,c=21,d=2):"earningUp"===r?(c=21,u=1,d=2):"earningDown"===r&&(c=21,u=-.5,d=.5);const p={barLine:{lineStyle:ie.LINESTYLE_DASHED,lineWidth:1,strokeStyle:t},lollipop:{width:c,height:h,bottom:d,backgroundColor:o,lineWidth:1.5,fillStyle:a,strokeStyle:t,fillCircle:!0,text:{label:i,deltaY:u,strokeStyle:l,font:(0,B.makeFont)(12,V.CHART_FONT_FAMILY,"bold")}},shape:r};void 0!==s&&(p.lollipop.incHeight=25*s),this.stylesCache[n]=p}return this.stylesCache[n]}}class fe extends Y.BarsMarksContainer{constructor(e){super(e),this.toolname="UserDefinedTimescaleMarks",this._requestedPointsets=new Set,(0,K.hideMarksOnBars)().subscribe(this,()=>this._properties.childs().visible.setValue(!(0,K.hideMarksOnBars)().value())),this._paneView=new ge(e,this,this._showTooltip.bind(this))}destroy(){(0,K.hideMarksOnBars)().unsubscribeAll(this),super.destroy()}userEditEnabled(){return!1}onClicked(e){if(null!==e){const t=this._paneView.getLollipopIdByIndex(e.activeItem);(0,x.emit)("onTimescaleMarkClick",t)}}clearMarks(){const e=this._model.chartApi();e.isConnected().value()&&Object.keys(this._marks).forEach(t=>{const i=this._getPointsetId(t);e.removePointset(i)}),this._requestedPointsets.clear(),super.clearMarks(),this._paneView.clearCaches(),this.onNeedRepaint.fire()}updatePlateData(e,t){return{...t,barWidth:this.barWidth(),text:e.text,tooltipMargin:-1*Math.max(e.minSize/2,.4*this.barWidth())}}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?[this._paneView]:[]}updateAllViews(){this._paneView.update()}onClickOutside(e){this._paneView.onClickOutside(e)}_createTooltipRenderer(){return null}_initialize(){this._properties.childs().visible.setValue(!0)}_plateViewData(e){return{text:e.text}}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),r=this._model.mainSeries(),n=r.seriesSource().symbolInstanceId(),o=r.properties().childs().interval.value();window.ChartApiInstance.getTimescaleMarks(t,i.start,i.end,t=>{const i=this._model.chartApi();for(const e of t){e.index=null;const t=e.id,r=this._getPointsetId(t.toString()),a=this._marks[t] -;if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:this._requestedPointsets.has(r)&&i.isConnected().value()&&(i.removePointset(r),this._requestedPointsets.delete(r))),this._marks[t]=e,null===e.index&&i.isConnected().value()){this._requestedPointsets.add(r);const t=[[e.tickmark,0]];i.createPointset(r,"turnaround",(0,s.ensureNotNull)(n),o,t,e=>this._onPointsetData(e))}}this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViews(),this.onNeedRepaint.fire()},o)}_getPointsetId(e){return"pointsetMark_"+e}_onPointsetData(e){if("data_update"===e.method){const t=e.params.customId.split("_")[1],i=this._marks[t],s=e.params.plots;i&&1===s.length&&(i.index=s[0].value[0])}this.updateAllViews()}async _showTooltip(e,t){const s=t();if(!s)return;const r=this._model.timeScale(),n=[r.onScroll(),r.barSpacingChanged(),this._model.mainSeries().onSymbolIntervalChanged()],o=this.onClickOutside.bind(this);(await Promise.all([i.e(5514),i.e(2e3),i.e(3466),i.e(2731),i.e(1075),i.e(9039)]).then(i.bind(i,22838))).showLollipopTooltip({items:s,position:e,customCloseSubscriptions:n,onClickOutside:o})}}function ve(e,t,i){return new Promise(s=>{i&&e.classList.remove(i),e.classList.add(t);const r=i=>{i.target===e&&i.animationName===t&&(e.removeEventListener(i.type,r),s(i))};e.addEventListener("animationend",r,!1),e.addEventListener("webkitAnimationEnd",r,!1),e.addEventListener("MSAnimationEnd",r,!1)})}function Se(e){return ve(e,"tv-transition--fade-in","tv-transition--fade-out")}class ye extends class{constructor(){this._source=null,this._tooltipHovered=!1,this._layout=null,this._container=null,this._context=null,this._plateArrowSize=14,this._handleTouchMouseLeave=e=>{(0,s.ensureNotNull)(this._layout).contains(e.target)||this._clearHovered()},this._setHovered=()=>{this._tooltipHovered=!0,document.addEventListener("touchstart",this._handleTouchMouseLeave),Se((0,s.ensureNotNull)(this._layout))},this._clearHovered=()=>{var e;this._tooltipHovered=!1,document.removeEventListener("touchstart",this._handleTouchMouseLeave),null===(e=this._source)||void 0===e||e.onNeedRepaint.fire()}}showPlate(e,t){if(this._currentId!==e.id||!this._layout||null===this._layout.parentNode){this._currentId=e.id,this._createLayout();const i=(0,s.ensureNotNull)(this._layout);this._getContainer(t).appendChild(i),i.addEventListener("mouseenter",this._setHovered),i.addEventListener("mouseleave",this._clearHovered)}const i=(0,s.ensureNotNull)(this._layout);let r=Math.round(e.barWidth/2);r>15&&(r=15),r<10&&(r=10),this._updatePlate(e);const n=t.canvas.getBoundingClientRect(),o=e.x-i.offsetWidth{t.remove(),e()})} -setSource(e){this._source=e}removeLayout(){var e;this._tooltipHovered||null===(e=this._layout)||void 0===e||e.remove()}toggleLayout(e){(0,s.ensureNotNull)(this._layout).style.visibility=e?"visible":"hidden"}_getContainer(e){return this._container&&this._context===e||(this._context=e,this._container=e.canvas.parentElement),(0,s.ensureNotNull)(this._container)}}{constructor(){super(...arguments),this._layoutText=null}_createLayout(){this._layout=document.createElement("div"),this._layout.classList.add("bar-mark-tooltip"),this._layoutText=document.createElement("div"),this._layoutText.classList.add("text"),this._layout.appendChild(this._layoutText)}_updatePlate(e){this._currentId=e.id;const t=(0,s.ensureNotNull)(this._layout);t.style.borderColor=e.theme.border,t.style.marginTop=e.tooltipMargin+"px";const i=(0,s.ensureNotNull)(this._layoutText);i.innerHTML=e.text,t.appendChild(i)}}class be{constructor(e,t){this._tooltips={},this._hoveredId=null,this._tooltipFactory=e,this.source=t}showPlate(e,t){const i=this._findOrCreateTooltip(e);null!==i&&(i.drawPlate(e,t),i.plateData=e)}draw(e,t){this._hoveredId=null;for(const t of e)t.hovered&&(this._hoveredId=t.id);for(const i of e)this.showPlate(i,t)}endDraw(){var e,t;for(const i in this._tooltips)if(this._tooltips.hasOwnProperty(i)){const r=(0,s.ensureDefined)(this._tooltips[i]);r.toggleVisibility(),this._hoveredId&&(null===(e=r.plateData)||void 0===e?void 0:e.id)!==this._hoveredId&&!(null===(t=r.plateData)||void 0===t?void 0:t.pinned)&&(r.remove(),delete this._tooltips[i])}}removeAll(){for(const e in this._tooltips)if(this._tooltips.hasOwnProperty(e)){(0,s.ensureDefined)(this._tooltips[e]).remove()}this._tooltips={}}removeTooltip(e){delete this._tooltips[e]}_createTooltip(){return new we(this,this._tooltipFactory())}_findOrCreateTooltip(e){let t=this._tooltips[e.id];return void 0===t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this._tooltips[e.id]=t),t||null}}class we{constructor(e,t){this._visible=!1,this._renderer=e,this._tooltip=t}drawPlate(e,t){this._visible=!0,this._tooltip.setSource(this._renderer.source),this._tooltip.showPlate(e,t),e.hovered||e.pinned||this._tooltip.hide(()=>this._renderer.removeTooltip(e.id))}remove(){this._tooltip.removeLayout()}toggleVisibility(){this._tooltip.toggleLayout(this._visible),this._visible=!1}}class Ce extends Y.BarsMarksContainer{constructor(e){super(e),this.toolname="UserDefinedBarsMarks",(0,K.hideMarksOnBars)().subscribe(this,()=>{this.properties().childs().visible.setValue(!(0,K.hideMarksOnBars)().value())})}destroy(){(0,K.hideMarksOnBars)().unsubscribeAll(this),super.destroy()}userEditEnabled(){return!1}onClicked(e){var t,i,s;const r=null===(t=null==e?void 0:e.activeItem)||void 0===t?void 0:t.id;null===(s=(i=this._marks[r]).onClicked)||void 0===s||s.call(i)}clearMarks(){super.clearMarks(),this.onNeedRepaint.fire()}updatePlateData(e,t){return{...t,barWidth:this.barWidth(),text:e.text,tooltipMargin:-1*Math.max(e.minSize/2,.4*this.barWidth())}}hasContextMenu(){return!1}calcIsActualCurrency(){this._isActualCurrency=!0} -calcIsActualUnit(){this._isActualUnit=!0}_initialize(){this.properties().childs().visible.setValue(!0)}_plateViewData(e){const t={text:e.text};return"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background),t}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),s=this._model.mainSeries().properties().childs().interval.value();window.ChartApiInstance.getMarks(t,i.start,i.end,t=>{for(const e of t)this._marks[e.id]=e;this._loadedRange=this._rangeUnion(e,this._loadedRange),this.onNeedRepaint.fire()},s)}_createTooltipRenderer(){return new be(()=>new ye,this)}}var Pe=i(31940),Te=i(35548),xe=i(37416),Ie=i(98619),Me=i(54386),Le=i(76367);const Ae=new o.TranslatedString("change chart layout to {title}",(0,n.t)("change chart layout to {title}"));class Ee extends c.UndoCommand{constructor(e,t){super(Ae.format({title:L.layouts[t].title})),this._chartWidgetCollection=e,this._newLayoutType=t,this._oldLayoutType=e.layout.value()}redo(){this._chartWidgetCollection.setLayout(this._newLayoutType)}undo(){this._chartWidgetCollection.setLayout(this._oldLayoutType)}}var ke=i(45345);const De=new o.TranslatedString("apply toolbars theme",(0,n.t)("apply toolbars theme"));class Ve extends c.UndoCommand{constructor(e,t,i=!0){super(De),this._prevThemeName=e,this._themeName=t,this._syncState=i}undo(){(0,M.isStdThemeName)(this._prevThemeName)&&((0,ke.setTheme)(this._prevThemeName),this._syncState&&(0,M.syncTheme)())}redo(){(0,M.isStdThemeName)(this._themeName.toLowerCase())&&((0,ke.setTheme)(this._themeName.toLowerCase()),this._syncState&&(0,M.syncTheme)())}}var Be=i(87027),Ne=i(52714);const Re=!a.CheckMobile.any(),Oe=new o.TranslatedString("apply indicators to entire layout",(0,n.t)("apply indicators to entire layout")),Fe=new o.TranslatedString("sync time",(0,n.t)("sync time")),We=new o.TranslatedString("resize layout",(0,n.t)("resize layout")),He=new o.TranslatedString("reset layout sizes",(0,n.t)("reset layout sizes")),ze=new o.TranslatedString("apply chart theme",(0,n.t)("apply chart theme"));(0,n.t)("Please give us a clipboard writing permission in your browser or press {keystroke}"),(0,n.t)("Couldn't copy"),(0,n.t)("Couldn't cut"),(0,n.t)("Couldn't paste"),(0,n.t)("{userName} published on {customer}, {date}"),(0,n.t)("Published on {customer}, {date}");function Ue(e,t){const i=t.model().model().studyTemplate();e.undoHistory.beginUndoMacro(Oe);for(let s=0;se.id()===n))}const l=t.pasteSourceFromClip(o,i,!0);if(l&&1===l.length){const e=l[0];if(r.asCompare){const i=(0,s.ensureNotNull)(t.mainSeries().priceScale());t.moveToScale(e,(0,s.ensureDefined)(o),i,n),t.setPriceScaleMode({percentage:!0},i,null)}}t.model().lightUpdate()}}e.undoHistory.endUndoMacro()}function Ge(e){let t=1;for(;e.has(""+t);)t++;return""+t}function qe(e){const t=new Map,i=e.chartsCountToSave(),s=new Set;for(let r=0;r{const s=(r=i.chartId,null!==(o=null===(n=e.chartWidgetsDefs.find(e=>e.chartWidget.id()===r))||void 0===n?void 0:n.chartWidget)&&void 0!==o?o:null);var r,n,o;null==s||s.resetLineToolsInvalidated(t,i.savedDto,i.sharingMode)})}function Xe(e,t,i,s){const r=e.map(e=>e.chartWidget);r.forEach(e=>e.startApplyingLineToolUpdateNotification());try{r.filter(e=>e.id()===t||0!==s).forEach(e=>e.applyLineToolUpdateNotification(i,s))}finally{r.forEach(e=>e.endApplyingLineToolUpdateNotification())}}function Ze(e){return new w({copyRequested:(t,i)=>{e.activeChartWidget.value().model().clipboardCopy(t,i)},cutRequested:(t,i)=>{e.activeChartWidget.value().model().clipboardCut(t,i)},pasteRequested:(t,i)=>{(i?i.model().undoModel():e.activeChartWidget.value().model()).clipboardPaste(t,i)}})}function Je(e,t){0}function Qe(e){const t={};return e.chartWidgetsDefs.map(e=>e.chartWidget).forEach(e=>t[e.id()]=function(e){var t,i;const s={},r=e.model().mainSeries(),n=r.properties().childs(),o=r.symbolInfo();s.resolution=n.interval.value(),s.symbol_type=null!==o&&o.type||"",s.exchange=null!==o&&o.exchange||"",s.listed_exchange=null!==o&&o.listed_exchange||"";const a=null!==(t=null==o?void 0:o.legs)&&void 0!==t?t:[];if(null!==o&&r.isSpread()){const e=a[0];let t=o.base_name[0];t=t.split(":")[1],s.symbol=e,s.short_name=t,s.expression=o.full_name}else s.symbol=null!==o&&o.ticker||n.symbol.value(),s.short_name=n.shortName.value();const l=null!==(i=null==o?void 0:o.base_name)&&void 0!==i?i:[];return s.legs=a.map((e,t)=>({symbol:e,pro_symbol:l[t]})),s}(e)),t}function et(e,t){0}function tt(e,t){return T(t,{snapshotUrl:e}).then(e=>((0,x.emit)("onScreenshotReady",e),e))}function it(e,t){const i={snapshotUrl:e};const s=(0,I.isOnMobileAppPage)("any") -;return(s?T:P)(t,i).then(e=>((0,x.emit)("onScreenshotReady",e),s||(0,x.emit)("onServerScreenshotCopiedToClipboard"),e))}function st(e){return function(e){return C().then(t=>t.downloadClientScreenshot(e))}(e)}function rt(e){return function(e){return C().then(t=>t.copyToClipboardClientScreenshot(e))}(e).then(()=>{(0,x.emit)("onClientScreenshotCopiedToClipboard")})}function nt(e,t,i,s){const r=Math.max(1,window.devicePixelRatio||1),n=e.getAll();const o=e.maximizedChartWidget();if(s&&s.onlyActiveChart||o)return{layout:"s",hidpiRatio:r,theme:(0,M.getCurrentTheme)().name,charts:[e.activeChartWidget.value().images(s)],publishedBy:void 0};const a=[],l=L.layouts[e.layout.value()].count,c={showCollapsedStudies:(s=s||{}).showCollapsedStudies,status:s.status};for(let e=0;e{const t=this._state.currentLayoutResizeAction.value();t&&this._applyMouseMove(t.delta,e)},this._state=e,this._splitterElement=t,this._splitter=i,(0,Le.shiftPressed)().subscribe(this._onShiftPressed)}destroy(){(0,Le.shiftPressed)().unsubscribe(this._onShiftPressed)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}mouseEnterEvent(e){this._highlightSplitters(e.shiftKey)}mouseLeaveEvent(e){const t=lt(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(t)).forEach(e=>e.classList.remove(Be.hovered))}mouseDoubleClickEvent(e){const t=(0,xe.layoutInitialSizingState)(this._state.layoutTemplate.value().expression);this._state.undoHistory.beginUndoMacro(He),this._state.undoHistory.pushUndoCommand(new u(this._state.sizingState.spawn(),this._state.sizingState.value(),t,He));const i=this._state.layoutTemplate.value().layoutType;this._state.undoHistory.pushUndoCommand(new d(e=>e?this._state.allLayoutSizesState.set(i,e):this._state.allLayoutSizesState.delete(i),this._state.allLayoutSizesState.get(this._state.layoutTemplate.value().layoutType),t,He)),this._state.undoHistory.endUndoMacro()}_highlightSplitters(e){const t=lt(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(t)).forEach(e=>e.classList.remove(Be.hovered)) -;(e?Array.from(this._state.parent.getElementsByClassName(t)):[this._splitterElement]).forEach(e=>e.classList.add(Be.hovered))}_mouseDownOrTouchStartEvent(e){const t=new r.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop),i=(0,Ie.deepCopy)(this._state.sizingState.value());this._state.currentLayoutResizeAction.setValue({point:t,splitter:this._splitter,initialState:i,alignedState:this._state.layoutTemplate.value().syncSublayoutsBySplitter(this._splitter,(0,Ie.deepCopy)(i)),shiftState:e.shiftKey,delta:0}),this._splitterElement.classList.add(Be["i-active"]),this._highlightSplitters(e.shiftKey)}_pressedMouseOrTouchMoveEvent(e){const t=this._state.currentLayoutResizeAction.value();if(!t)return;t.shiftState!==e.shiftKey&&(this._highlightSplitters(e.shiftKey),t.shiftState=e.shiftKey);const i=new r.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop);t.delta="v"===t.splitter.orientation?i.y-t.point.y:i.x-t.point.x,this._applyMouseMove(t.delta,e.shiftKey)}_mouseUpOrTouchEndEvent(e){const t=this._state.currentLayoutResizeAction.value();if(t&&(this._splitterElement.classList.remove(Be["i-active"]),this._state.currentLayoutResizeAction.setValue(null),t.currentState)){this._state.undoHistory.beginUndoMacro(We),this._state.undoHistory.pushUndoCommand(new u(this._state.sizingState.spawn(),t.initialState,t.currentState,We));const e=this._state.layoutTemplate.value().layoutType;this._state.undoHistory.pushUndoCommand(new d(t=>t?this._state.allLayoutSizesState.set(e,t):this._state.allLayoutSizesState.delete(e),this._state.allLayoutSizesState.get(this._state.layoutTemplate.value().layoutType),this._state.sizingState.value(),He)),this._state.undoHistory.endUndoMacro(),this._state.layoutSizesChanged.setValue(!0)}}_applyMouseMove(e,t){var i;const r=(0,s.ensureNotNull)(this._state.currentLayoutResizeAction.value()),n=t?r.alignedState:r.initialState,o=null!==(i=this._state.options.padding)&&void 0!==i?i:2,a=at(this._state);r.currentState=this._state.layoutTemplate.value().resizeApplier(a,o,e,r.splitter,(0,Ie.deepCopy)(n),t),this._state.sizingState.setValue(r.currentState)}}function ht(e,t,i,s,r){var n,o;const a=null!==(n=e.options.padding)&&void 0!==n?n:2,l=null!==(o=e.options.border)&&void 0!==o?o:0;r=null!=r?r:e.layoutTemplate.value();const c=at(e),h=r.sizer(c,i,s,a+l,Re?e.sizingState.value():void 0);h.width=Math.max(Math.round(h.width),0),h.height=Math.max(Math.round(h.height),0),h.top=Math.round(h.top),h.left=Math.round(h.left),t.metrics=h;const d=t.container.value();if(d){d.style.width=h.width+"px",d.style.height=h.height+"px",d.style.top=h.top+"px",d.style.left=h.left+"px";const e=1===s;0;const t=Math.round(c.width),i=0===h.top&&0===h.left,r=0===h.top&&h.left+h.width===t,n=0===h.top&&h.width===t;d.classList.toggle("top-left-chart",!e&&!n&&i),d.classList.toggle("top-right-chart",!e&&!n&&r),d.classList.toggle("top-full-width-chart",e||n)}t.width.setValue(h.width),t.height.setValue(h.height)}function dt(e){var t,i,s;let r -;const n=e.layoutTemplate.value(),o=e.maximizedChartDef.value();if(r=o?[o]:e.chartWidgetsDefs.slice(0,n.count).filter(e=>!e.hiddenInLayout.value()),r.forEach((t,i)=>ht(e,t,i,r.length)),Re&&!e.maximizedChartDef.value()){const r=at(e),o=null!==(t=e.options.padding)&&void 0!==t?t:2,a=null!==(i=e.options.border)&&void 0!==i?i:0,l=n.splitters(r,o+a,e.sizingState.value()),c=null!==(s=e.splitters.value())&&void 0!==s?s:[];c.forEach((e,t)=>{t>=l.length&&(e.splitterElement.remove(),e.mouseHandler.destroy(),e.mouseListener.destroy())});const h=l.map((t,i)=>{const s=i({def:t,metrics:e.layoutTemplate.value().sizer({top:0,left:0,width:256,height:256},i,s.length,0)})).sort((e,t)=>e.metrics.top-t.metrics.top||e.metrics.left-t.metrics.left).map(e=>e.def);if(s.length<2)return null;let r=s.indexOf(t);return-1===r?null:(r=(r+(i?s.length-1:1))%s.length,s[r])}function pt(e,t){return e.chartWidgetsDefs.some(e=>{var i;return(null===(i=e.chartWidget)||void 0===i?void 0:i.id())===t})}function _t(e){let t=1;for(;e(""+t);)t++;return""+t}function mt(e){const t=e.activeChartWidget.value();if(t){const i=t.state();return i.chartId=_t(t=>pt(e,t)),i.shouldBeSavedEvenIfHidden=!1,{content:i}}}function gt(e,t,i){const r=e.toastsFactory;let n={chartWidgetCollection:t,isActive:0===e.chartWidgetsDefs.length,barsMarksContainersFactory:t=>function(e,t,i){const s=[];{const t=new Ce(e);s.push(t);const i=new fe(e);s.push(i)}return s}(t,0,e.options),undoHistory:e.undoHistory,readOnly:e.readOnly,initialLoading:e.initialLoading,getToasts:r?()=>r.getChartToasts():void 0,...null!=i?i:{}};void 0!==e.customLegendWidgetsFactoriesMap&&(n.customLegendWidgetFactories=new Map(e.customLegendWidgetsFactoriesMap));const o=document.createElement("div");o.classList.add("chart-container"),o.style.position="absolute",o.style.overflow="hidden",e.parent.appendChild(o),a.isEdge&&(o.style.touchAction="none",o.style.msTouchAction="none"),n.className&&o.classList.add(n.className);const l={alive:new Ne(!0),container:new Ne(o),width:new Ne,height:new Ne,collapsed:new Ne(!1),hiddenInLayout:new Ne(!1),visible:new Ne,rdState:new Pe.ResizerDetacherState,requestFullscreen:()=>{e.globalDetachable.value()&&(e.setMaximized(l),e.activeChartWidget.setValue((0,s.ensureNotNull)(l.chartWidget)))}, -exitFullscreen:()=>{e.activeChartWidget.value()===l.chartWidget&&e.setMaximized(null)},detachable:e.globalDetachable,fullscreenable:e.globalDetachable,fullscreen:new Ne,chartWidget:null};l.rdState.pushOwner(l),e.chartWidgetsDefs.push(l);const c=()=>{l.visible.setValue(!l.hiddenInLayout.value()&&e.options.resizerBridge.visible.value())};l.hiddenInLayout.subscribe(()=>{(0,s.ensureNotNull)(l.chartWidget).setVisible(!l.hiddenInLayout.value()),c()}),l.collapsed.subscribe(()=>(0,s.ensureNotNull)(l.chartWidget).setCollapsed(l.collapsed.value())),e.options.resizerBridge.visible.subscribe(c),c(),function(e,t){let i=0,s=0;const r=t.layoutTemplate.value();for(let n=0;npt(e,t)),d=new Te.ChartWidget(n,h,t.metaInfo.uid.value());return l.chartWidget=d,e.saveChartService&&l.chartWidget.setSaveChartService(e.saveChartService),n.containsData?d.finishInitWithoutConnect():d.connect(),d.withModel(null,()=>{const t=d.model().model();e.customSources.forEach((e,i)=>{t.addCustomSource(i,e.factory,e.layer)})}),e.updateWatchedValue(),e.updateActivityView(),e.chartWidgetCreatedDelegate.fire(d),l}function ft(e,t,i,s){const r={...e.widgetOptions,...e.savedChartWidgetOptions.shift()||mt(e),...0===i||e.symbolLock.value()?void 0:{defSymbol:null}},n=gt(e,t,r),o=n.chartWidget;return o.modelCreated().subscribe(null,()=>{s?s():e.checkAllPendingModelsAlreadyCreated(),e.dateRangeLock.value()&&e.subscribeToCompletedEventForDateRangeSync(o,!0)},!0),n}function vt(e){e.hiddenInLayout.setValue(!0);const t=e.container.value();t.parentNode&&t.parentNode.removeChild(t),e.fullscreen.setValue(!1)}function St(e,t){e.chartWidgetsDefs.forEach(i=>{const r=(0,s.ensureNotNull)(i.chartWidget);r.onZoom().unsubscribeAll(t),r.onScroll().unsubscribeAll(t),r.withModel(null,()=>{const t=r.lineToolsSynchronizer();null!==t&&(t.hasChanges().unsubscribe(e.recalcHasChanges),e.recalcHasChanges())})})}async function yt(e,t,i){var r,n;const o=e.chartWidgetsDefs.map(e=>{var t,i,s;return null!==(s=null===(i=null===(t=e.chartWidget)||void 0===t?void 0:t.lineToolsSynchronizer())||void 0===i?void 0:i.flushPendingSavings())&&void 0!==s?s:null}).filter(X.notNull);o.length&&await Promise.all(o),(t=e.checkProFeature(t))in L.layouts||(t="s"),St(e,i);const a=e.layoutType,l=L.layouts[t].count;(0,x.emit)("layout_about_to_be_changed",t),e.layoutWV.setValue(t),e.setLayoutType(t),(null!==(r=e.splitters.value())&&void 0!==r?r:[]).forEach((e,t)=>{e.splitterElement.remove(),e.mouseHandler.destroy()}),e.splitters.setValue([]);const c=L.layouts[t];e.layoutTemplate.setValue(c);const h=null!==(n=e.allLayoutSizesState.get(c.layoutType))&&void 0!==n?n:(0,xe.layoutInitialSizingState)(c.expression);e.allLayoutSizesState.set(c.layoutType,h),e.sizingState.setValue(h);const d=e.maximizedChartDef.value();a!==t&&e.maximizedChartDef.value()&&e.maximizedChartDef.setValue(null),d&&e.activeChartWidget.setValue((0,s.ensureNotNull)(d.chartWidget)) -;for(let t=0;t=l;if(r=e.maximizedChartDef.value()?e.maximizedChartDef.value()===n:t1),n.fullscreen.setValue(e.maximizedChartDef.value()===n),n.collapsed.setValue(o)}else n&&(vt(n),n.collapsed.setValue(o))}e.sizingState.setValue(h),dt(e),e.updateWatchedValue(),function(e){const t=e.layoutTemplate.value().count;e.inlineChartsCount.setValue(t),e.globalDetachable.setValue(t>1)}(e),e.checkAllPendingModelsAlreadyCreated(),function(e,t){e.chartWidgetsDefs.forEach(i=>{const r=(0,s.ensureNotNull)(i.chartWidget);r.onZoom().subscribe(t,t=>e.onZoom.fire(t)),r.onScroll().subscribe(t,()=>e.onScroll.fire()),r.withModel(null,()=>{const t=r.lineToolsSynchronizer();null!==t&&(t.hasChanges().subscribe(e.recalcHasChanges),e.recalcHasChanges())})})}(e,i),e.inlineChartsCount.value()<1&&l>0&&e.chartWidgetsDefs[l-1].rdState.bridge().attach()}function bt(e,t,i,s,r){if(!s&&!e.crosshairLockRaw)return!1;const n=e.actualLayoutCount();return e.chartWidgetsDefs.slice(0,n).filter(e=>e.rdState.bridge().visible.value()).map(e=>e.chartWidget).filter(e=>e.id()!==i&&e.hasModel()).forEach(e=>e.model().model().setExternalPosition(t,r)),!0}function wt(e,t,i,s,r){if(bt(e,t,i,s,r)){const i=e.crossHairSyncBroadcast;if(i){const e={type:"crosshair",payload:{point:t,envState:r,sourceUniqueId:i.uniqueId}};i.channel.postMessage(e)}}}function Ct(e){const t=new BroadcastChannel("ChartWidgetsCollection");return t.onmessage=t=>{const i=t.data,s=e();if(s.crossHairSyncBroadcast)switch(i.type){case"crosshair":s.crossHairSyncBroadcast.uniqueId!==i.payload.sourceUniqueId&&bt(s,i.payload.point,null,!1,i.payload.envState)}},{channel:t,uniqueId:(0,q.randomHashN)(6)}}function Pt(e){var t;null===(t=e.crossHairSyncBroadcast)||void 0===t||t.channel.close()}function Tt(e,t,i){if(!e.trackTimeLock.value()||e.dateRangeLock.value())return;const s=e.layoutTemplate.value().count;e.undoHistory.beginUndoMacro(Fe),e.chartWidgetsDefs.slice(0,s).filter(e=>e.chartWidget.hasModel()&&e.chartWidget.model().model()!==i).forEach(e=>{const i=e.chartWidget.model().model(),s=i.mainSeries().syncModel();s&&i.syncTimeWithModel(s.syncSourceTarget(),t)}),e.undoHistory.endUndoMacro()}function xt(e){return Promise.all(e.map(e=>{const t=e.model().mainSeries();return t.symbolResolvingActive().value()?l(t.dataEvents().symbolResolved()).promise:t.symbolInfo()}))}function It(e){return e.chartWidgetsDefs.every(e=>e.chartWidget.hasModel())?Promise.resolve(e.chartWidgetsDefs.map(e=>e.chartWidget)):Promise.all(e.chartWidgetsDefs.map(e=>e.chartWidget.hasModel()||l(e.chartWidget.modelCreated()).promise)).then(()=>It(e))}function Mt(e,t){var i;if((0, -R.enabled)("charting_library_base"))return t;if("s"===t||e.widgetOptions.containsData||e.readOnly||isProductFeatureEnabled(ProductFeatures.MULTIPLE_CHARTS)&&(0,s.ensure)(null===(i=getProductFeatureConfig(ProductFeatures.MULTIPLE_CHARTS))||void 0===i?void 0:i.limit)>=L.layouts[t].count)return t;return"s"}async function Lt(e,t,i){if(i=Mt(e,i),e.layoutWV.value()===i)return!1;const s=e.chartWidgetsDefs.map(e=>{var t,i,s;return null!==(s=null===(i=null===(t=e.chartWidget)||void 0===t?void 0:t.lineToolsSynchronizer())||void 0===i?void 0:i.flushPendingSavings())&&void 0!==s?s:null}).filter(X.notNull);return s.length&&await Promise.all(s),e.undoHistory.pushUndoCommand(new Ee(t,i)),!0}async function At(e,t,i){const{theme:s,onlyActiveChart:r,restoreNonThemeDefaults:n,themeName:o,standardTheme:a,syncState:l=!0,noUndo:c}=i,h=(0,M.getCurrentTheme)().name;let d;r?d=[e.activeChartWidget.value()]:(await Promise.all(e.savedChartWidgetOptions.map((i,s)=>new Promise(i=>{vt(ft(e,t,s,i))}))),d=e.chartWidgetsDefs.map(e=>e.chartWidget)),c?(a&&new Ve(h,o,l).redo(),d.forEach(e=>{e.model().model().restoreTheme(s,n,c)})):(e.undoHistory.beginUndoMacro(ze),a&&e.undoHistory.pushUndoCommand(new Ve(h,o,l)),d.forEach(e=>{e.model().model().restoreTheme(s,n)}),e.undoHistory.endUndoMacro())}},22799:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setChartFontFamily:()=>s,CHART_FONT_FAMILY:()=>r});function s(e){r=e}let r="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif"},35548:(e,t,i)=>{"use strict";var s=i(2872);i(70150);var r=i(28353).t,n=i(24980).TranslatedString,o=i(88537),a=o.assert,l=o.ensureDefined,c=i(56972).Series,h=i(67337),d=i(62138).ActionBinder,u=i(56840).setValue,p=i(73591).TabNames,_=i(94420).showGoToDateDialog,m=i(68335),g=i(25760),f=i(15219).showConfirmInputsDialog,v=i(66101).Study,S=i(25270).StudyStub,y=i(81851).isStudy,b=i(89857).LineDataSource,w=i(14291),C=w.isLineTool,P=w.isStudyLineTool,T=i(28296).Action,x=i(62060).ACTION_ID,I=i(85733),M=i(29823).Interval,L=i(37667),A=L.getDefaultStyle,E=L.hasVolume,k=i(88679).showSymbolInfoDialog,D=i(23653).InvalidationMask,V=i(82992).linking,B=i(8636).showChangeIntervalDialogAsync,N=i(15618).showDialog,R=i(39277),O=R.availableTimezones,F=R.timezoneIsAvailable,W=i(90995).toggleHideMode,H=i(817).ChartSession,z=i(67072),U=i(4185).Spinner,j=i(51768).trackEvent,G=i(71413).lastMouseOrTouchEventInfo,q=i(59803),Y=i(98125).getLogger("ChartWidget",{color:"#606"}),K=i(82724).appendEllipsis,$=i(43181).StudyMetaInfoRepository,X=i(42060).isMultipleLayout,Z=i(19334).addPerfMark,J=i(81465).combineProperty,Q=i(79500).ChartWidgetBase,ee=i(49483).CheckMobile.any(),te=i(73383).TIMEFRAMETYPE,ie=i(81836).createDeferredPromise,se=i(76166).addPlusButtonProperty;const re=h.enabled("show_average_close_price_line_and_label");var ne=new n("change timezone",r("change timezone")),oe=new n("scale price chart only",r("scale price chart only")),ae=new n("stay in drawing mode",r("stay in drawing mode")),le=(new n("hide all drawing tools",r("hide all drawing tools")), -new n("hide marks on bars",r("hide marks on bars"))),ce=new n("change symbol last value visibility",r("change symbol last value visibility")),he=(new n("change symbol previous close value visibility",r("change symbol previous close value visibility")),new n("change previous close price line visibility",r("change previous close price line visibility")),new n("change symbol labels visibility",r("change symbol labels visibility"))),de=new n("change indicators name labels visibility",r("change indicators name labels visibility")),ue=new n("change indicators value labels visibility",r("change indicators value labels visibility")),pe=(new n("change bid and ask labels visibility",r("change bid and ask labels visibility")),new n("change bid and ask lines visibility",r("change bid and ask lines visibility")),new n("change pre/post market price label visibility",r("change pre/post market price label visibility")),new n("change pre/post market price line visibility",r("change pre/post market price line visibility")),new n("change high and low price lines visibility",r("change high and low price lines visibility"))),_e=new n("change high and low price labels visibility",r("change high and low price labels visibility")),me=new n("change average close price line visibility",r("change average close price line visibility")),ge=new n("change average close price label visibility",r("change average close price label visibility")),fe=new n("change countdown to bar close visibility",r("change countdown to bar close visibility")),ve=new n("change plus button visibility",r("change plus button visibility")),Se=new n("change price line visibility",r("change price line visibility")),ye=new n("unlock {title}",r("unlock {title}")),be=new n("lock {title}",r("lock {title}")),we=new n("change session breaks visibility",r("change session breaks visibility")),Ce=r("On the left"),Pe=r("On the right"),Te=r("Move scale to left"),xe=r("Move scale to right");e.exports.ChartWidget=class extends Q{constructor(e,t,i){super(e,t,i),this._options.timeScaleWidget&&(this._options.timeScaleWidget.pressedMouseMoveScale=this._options.handleScale.axisPressedMouseMove.time);var r=this;this._startSpinner(this._options.container.value());var n=this._options.content,o=this._options.readOnly;this._removeMaximizeHotkey=null,r._hotkeys=g.createGroup({desc:"Chart actions",isDisabled:function(){return!r._isActive}});var a=this._options.containsData,l=this._options.onWidget,c=this._options.onCmeWidget;c&&Y.logWarn("[ChartWidget] 'onCmeWidget' option is depricated");var h=this._options.widgetCustomer,d=this._options.timezone,u=this._options.hideSymbolSearch,p=this._options.defSymbol,_=M.isValid(this._options.defInterval)?this._options.defInterval:void 0,m=parseInt(this._options.defStyle),f=L.isValidStyle(m)?m:void 0,v=this._options.defSessionId,S=void 0!==this._options.defTimeframe?"string"==typeof this._options.defTimeframe?{value:this._options.defTimeframe.toUpperCase(),type:te.PeriodBack}:{...this._options.defTimeframe,type:te.TimeRange}:void 0;this._content=n, -this._initialLoading=this._options.initialLoading,this._readOnly=o,this._containsData=a,this._defSymbol=p,this._defInterval=_,this._defTimeframe=S,this._defStyle=f,this._onWidget=!!l,this._compareSymbols=this._options.compareSymbols,this._onWidget&&(c?this._widgetCustomer="cme":h&&(this._widgetCustomer=h)),this._hideSymbolSearch=u,this._frameTime=30,this._model=null,this._metaInfo={},this._drawRafId=0,this._compareDialog=this._chartWidgetCollection.getCompareDialogRenderer();var y=this._contentSeriesProperties();y&&(p=y.symbol,_=y.interval),void 0===this._options.useUserChartPreferences&&(this._options.useUserChartPreferences=!0);var b=this._options.useUserChartPreferences?q.defaults("chartproperties.mainSeriesProperties"):q.factoryDefaults("chartproperties.mainSeriesProperties");this._properties.mainSeriesProperties.merge(b),this._properties.mainSeriesProperties.hasChild("esdBreaksStyle")&&this._properties.mainSeriesProperties.removeProperty("esdBreaksStyle"),_=_||b.interval||"D",L.isValidStyle(f)||(f=L.isValidStyle(b.style)?b.style:A(M.isRange(_))),this._properties.mainSeriesProperties.merge({visible:!0,symbol:p||DEFAULT_SYMBOL,shortName:"",timeframe:"",onWidget:this._onWidget,interval:_,currencyId:null,unitId:null,style:f,sessionId:v,lineStyle:{styleType:q.factoryDefaults("chartproperties.mainSeriesProperties.lineStyle.styleType")}}),this._containsData&&this._properties.mainSeriesProperties.merge({showCountdown:!1}),d&&F(d)&&this._properties.timezone.setValue(d),this._tagsChanged=new s,this._disconnected=new s,this._reconnectBailout=new s,this._connected=new s,this.chartWidgetInitialized=new s,this._chartSession=new H(ChartApiInstance),this._metaInfoRepository=new $(this._chartSession),this._timingsMeter=null,this._isActive=this._options.isActive,this._options.container.subscribe((function(e){r._setElement(e)}),{callWithLast:!0});var w=function(){r.resize()};this._options.width.subscribe(w),this._options.height.subscribe(w),this._options.visible.subscribe(this._updateTimingsMeterState.bind(this)),this._aboutToBeDestroyed=new s,this._actions=null,this._definitionsViewModel=null,this._backgroundTopColorSpawn=null,this._backgroundBottomColorSpawn=null,this._hintDefferedPromise=null,this._activeHint=null}isInitialized(){return Boolean(this._inited)}compareSymbols(){return this._compareSymbols}async _getChartPropertyDefinitionsViewModel(){if(null===this._definitionsViewModel){const{ChartPropertyDefinitionsViewModel:e}=await Promise.all([i.e(1369),i.e(7387),i.e(3596)]).then(i.bind(i,47806));if(this._isDestroyed)throw new Error("Chart widget already destroyed");await new Promise(e=>this.withModel(null,e)),null===this._definitionsViewModel&&(this._definitionsViewModel=new e(this.model(),this.properties(),this._options))}return this._definitionsViewModel}_initMaximizeHotkey(e){var t=this;function i(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&e.stopPropagation()}function s(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&(e.preventDefault(),e.stopPropagation(),t.toggleFullscreen())} -return e.addEventListener("mousedown",i,!0),e.addEventListener("click",s,!0),function(){e.removeEventListener("mousedown",i,!0),e.removeEventListener("click",s,!0)}}toggleFullscreen(){var e=this.getResizerDetacher();e.fullscreenable.value()&&(e.fullscreen.value()?e.exitFullscreen():e.requestFullscreen())}_beginRequestActive(){var e=this._chartWidgetCollection.activeChartWidget.value()!==this;if(this._chartWidgetCollection.activeChartWidget.setValue(this),e){const e=G();e.isTouch&&!e.stylus&&this._isLineToolModeExceptBrush()&&this.updateCrossHairPositionIfNeeded(),this._justActivated=!0}}_endRequestActive(){var e=this;this._justActivated&&setTimeout((function(){e._justActivated=!1}),0)}_requestActive(){this._beginRequestActive(),this._endRequestActive()}justActivated(){return this._justActivated}setTimezone(e){e&&F(e)?this._properties.timezone.setValue(e):console.warn("Incorrect timezone: "+JSON.stringify(e))}getTimezone(){return this._properties.timezone.value()}refreshMarks(){this.model().barsMarksSources().forEach((function(e){e.refreshData()}))}clearMarks(){this.model().barsMarksSources().forEach((function(e){e.clearMarks()}))}metaInfoRepository(){return this._metaInfoRepository}_initBackgroundColor(){null===this._backgroundTopColorSpawn&&(this._backgroundTopColorSpawn=this._model.model().backgroundTopColor().spawn(),this._backgroundTopColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this))),null===this._backgroundBottomColorSpawn&&(this._backgroundBottomColorSpawn=this._model.model().backgroundColor().spawn(),this._backgroundBottomColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this)))}paneWidgets(){return this._paneWidgets}paneByCanvas(e){for(var t=0;t{null!==t&&e()})}));var s=new T({actionId:x.ChartScalesReset,label:r("Reset chart"),icon:i(27966),statName:"ResetChart",onExecute:this.GUIResetScales.bind(this),hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+82}),n=new T({actionId:x.ChartSeriesPriceScaleToggleInvertPriceScale,label:r("Invert scale"),statName:"Invert Scale",checkable:!0,onExecute:function(){t._model.invertPriceScale(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+73}),o=new T({actionId:x.ChartSeriesPriceScaleToggleAutoScale,label:r("Auto (fits data to screen)"),checkable:!0,onExecute:function(){var e=t._model.mainSeries().priceScale();t._model.togglePriceScaleAutoScaleMode(e),o.update({checked:e.isAutoScale()})}}),a=new T({ -actionId:x.ChartScalesToggleLockPriceToBarRatio,label:r("Lock price to bar ratio"),checkable:!0,statName:"ToggleLockScale",onExecute:function(){t._model.togglePriceScaleLockScaleMode(t._model.mainSeries().priceScale())}}),l=new T({actionId:x.ChartSeriesPriceScaleToggleRegular,label:r("Regular"),checkable:!0,statName:"ToggleRegularScale",onExecute:function(){var e=t._model.mainSeries().priceScale();t._model.setPriceScaleRegularScaleMode(e),l.update({checked:e.isRegular()})}}),c=new T({actionId:x.ChartSeriesPriceScaleTogglePercentage,label:r("Percent"),checkable:!0,statName:"TogglePercantage",onExecute:function(){t._model.togglePriceScalePercentageScaleMode(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+80}),f=new T({actionId:x.ChartSeriesPriceScaleToggleIndexedTo100,label:r("Indexed to 100"),checkable:!0,statName:"ToggleIndexedTo100",onExecute:function(){t._model.togglePriceScaleIndexedTo100ScaleMode(t._model.mainSeries().priceScale())}}),v=new T({actionId:x.ChartSeriesPriceScaleToggleLogarithmic,label:r("Logarithmic"),statName:"ToggleLogScale",checkable:!0,onExecute:function(){t._model.togglePriceScaleLogScaleMode(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+76}),S=new T({actionId:x.ChartUndo,label:r("Undo"),onExecute:function(){j("GUI","Undo"),t._model.undoHistory().undo()},disabled:!0,hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+90}),y=new T({actionId:x.ChartRedo,label:r("Redo"),onExecute:function(){j("GUI","Redo"),t._model.undoHistory().redo()},disabled:!0,hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+89});t.withModel(null,(function(){t._model.undoHistory().undoStack().onChange().subscribe(t,t.updateUndoRedo),t._model.undoHistory().redoStack().onChange().subscribe(t,t.updateUndoRedo)}));var b=new T({actionId:x.ChartChangeTimeZone,label:r("Time zone"),statName:"TimeZone"}),w=new T({actionId:x.ChartDialogsShowChangeSymbol,label:K(r("Change Symbol")),statName:"ChangeSymbol",onExecute:function(){N({defaultValue:""})}});u("symboledit.dialog_last_entry","");var C={actionId:x.ChartDialogsShowChangeInterval,label:K(r("Change interval")),statName:"ChangeInterval",onExecute:function(){B({initVal:V.interval.value(),selectOnInit:!0})}};!h.enabled("show_interval_dialog_on_key_press")||this.readOnly()||this._hideSymbolSearch||(C.shortcutHint=",",C.hotkeyGroup=this._hotkeys,C.hotkeyHash=188);var P,M=new T(C);if(!TradingView.onWidget()){if(this._options.addToWatchlistEnabled){const e={hotkeyGroup:this._hotkeys};P=new WatchListAction(this,e)}0}var L=new T({actionId:x.ChartTimeScaleReset,label:r("Reset time scale"),icon:i(27966),statName:"ResetScale",onExecute:function(){t.model().resetTimeScale()},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+g.Modifiers.Alt+81}),A=new T({actionId:x.ChartRemoveAllIndicators,label:r("Remove indicators"),statName:"RemoveAllIndicators",onExecute:this.removeAllStudies.bind(this)}),E=new T({actionId:x.ChartRemoveAllLineTools,label:r("Remove drawings"),statName:"RemoveAllDrawingTools", -onExecute:this.removeAllDrawingTools.bind(this)}),R=new T({actionId:x.ChartRemoveAllIndicatorsAndLineTools,label:r("All indicators and drawing tools"),statName:"RemoveAllIndicatorsAndDrawingTools",onExecute:this.removeAllStudiesDrawingTools.bind(this)}),O=this.chartWidgetCollection(),F=new T({actionId:x.ChartApplyIndicatorsToAllCharts,label:r("Apply these indicators to entire layout"),statName:"ApplyIndicatorsToAllCharts",onExecute:function(){O.applyIndicatorsToAllCharts(t)}}),H={actionId:x.ChartDialogsShowInsertIndicators,label:K(r("Insert indicator")),statName:"InsertIndicator",onExecute:function(){t.showIndicators()}};this._options.indicatorsDialogShortcutEnabled&&(H.hotkeyGroup=this._hotkeys,H.hotkeyHash=191,this._hotkeys.add({handler:function(){this.showIndicators()}.bind(this),desc:"Show insert indicator dialog",hotkey:111}));var z,U=new T(H),G=new T({actionId:x.ChartDialogsShowCompareOrAddSymbol,label:K(r("Compare or Add Symbol")),statName:"CompareOrAddSymbol",onExecute:this.toggleCompareOrAdd.bind(this)}),q=new T({actionId:x.ChartObjectTreeShow,label:K(r("Object Tree")),statName:"ObjectsTree",onExecute:this.showObjectsTreePanelOrDialog.bind(this)}),Y=new T({actionId:x.ChartDialogsShowGeneralSettings,label:K(r("Settings")),icon:i(44368),statName:"ChartProperties",onExecute:function(){t.showGeneralChartProperties()}}),$=new T({actionId:x.ChartDialogsShowGeneralSettingsSymbolTab,label:K(r("Settings")),icon:i(44368),statName:"MainSeriesProperties",onExecute:function(){t.showGeneralChartProperties(p.symbol)}}),X=new T({actionId:x.ChartSelectedObjectToggleLocked,label:r("Lock/unlock"),statName:"ToggleLockSelectedObject",onExecute:this.toggleLockSelectedObject.bind(this)}),Z=new T({actionId:x.ChartSelectedObjectHide,label:r("Hide"),icon:i(48111),statName:"HideSelectedObject",onExecute:this.hideSelectedObject.bind(this)});h.enabled("property_pages")&&(z=new T({actionId:x.ChartSelectedObjectShowSettingsDialog,label:K(r("Settings")),icon:i(44368),statName:"EditSelectedObject",onExecute:function(){t.showSelectedSourcesProperties()}})),this.withModel(null,(function(){var e=t.model().mainSeries(),i=e.properties();i.priceAxisProperties.subscribe(t,t._updateScalesActions),e.priceScaleAboutToBeChanged().subscribe(t,(function(){i.priceAxisProperties.unsubscribeAll(t)})),e.priceScaleChanged().subscribe(t,(function(){i.priceAxisProperties.subscribe(t,t._updateScalesActions),t._updateScalesActions()}))}));var Q=new T({actionId:x.ChartPriceScaleToggleAutoScaleSeriesOnly,label:r("Scale price chart only"),checkable:!0,statName:"ScalePriceChartOnly"});Q.binder=new d(Q,this._properties.scalesProperties.scaleSeriesOnly,this.model(),oe);var ee=this.model().model();this._properties.scalesProperties.scaleSeriesOnly.listeners().subscribe(null,(function(){ee.recalculateAllPanes(),ee.invalidate(D.full())}));var te=new T({actionId:x.ChartDrawingToolbarToggleVisibility,label:r("Drawings toolbar"),checkable:!0,statName:"ToggleDrawingToolbar"}),ie=this._options.isDrawingToolbarVisible;ie&&(ie.subscribe((function(e){te.update({checked:e})}),{ -callWithLast:!0}),te.update({onExecute:function(){ie.setValue(!ie.value())}}));var ne=new T({actionId:"",label:r("Stay in drawing mode"),checkable:!0,statName:"ToggleStayInDrawingMode"});ne.binder=new d(ne,I.properties().stayInDrawingMode,this.model(),ae),this._hotkeys.add({handler:function(){W()},desc:"Hide all drawing tools",hotkey:g.Modifiers.Mod+g.Modifiers.Alt+72});var ye=new T({actionId:x.ChartMarksToggleVisibility,label:r("Hide marks on bars"),checkable:!0,statName:"ToggleHideMarksOnBars"});ye.binder=new d(ye,I.hideMarksOnBars(),this.model(),le,(function(){I.hideMarksOnBars().setValue(this.value())}));const be=this.properties().scalesProperties;var we=new T({actionId:x.ChartPriceScaleLabelsToggleSeriesLastValueVisibility,label:r("Symbol last price label"),checkable:!0,checked:!1,statName:"ToggleSymbolLastValue"});we.binder=new d(we,be.showSeriesLastValue,this.model(),ce);var Ie=new T({actionId:x.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility,label:r("Symbol name label"),checkable:!0,checked:!1,statName:"ToggleSymbolLabels"});Ie.binding=new d(Ie,be.showSymbolLabels,this.model(),he);const Me=J((e,t)=>e||!1,be.showStudyLastValue,be.showFundamentalLastValue);var Le=new T({actionId:x.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility,label:r("Indicators value labels"),checkable:!0,checked:!1,statName:"ToggleStudiesAndFundamentalsPriceLabels"});Le.binder=new d(Le,Me,this.model(),null,()=>{const e=!Me.value();this.model().beginUndoMacro(ue),this.model().setProperty(be.showStudyLastValue,e,null),this.model().endUndoMacro()});const Ae=J((e,t)=>e||!1,be.showStudyPlotLabels,be.showFundamentalNameLabel);var Ee=new T({actionId:x.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility,label:r("Indicators name labels"),checkable:!0,checked:!1,statName:"ToggleStudiesAndFundamentalsNameLabels"});Ee.binding=new d(Ee,Ae,this.model(),null,()=>{const e=!Ae.value();this.model().beginUndoMacro(de),this.model().setProperty(be.showStudyPlotLabels,e,null),this.model().endUndoMacro()});var ke=this.model().mainSeries().properties().highLowAvgPrice,De=new T({actionId:x.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility,label:r("High and low price labels"),checkable:!0,checked:!1,statName:"ToggleHighLowPriceLabels"});De.binding=new d(De,ke.highLowPriceLabelsVisible,this.model(),_e);var Ve=new T({actionId:x.ChartLinesToggleHighLowLinesVisibility,label:r("High and low price lines"),checkable:!0,checked:!1,statName:"ToggleHighLowPriceLine"});if(Ve.binding=new d(Ve,ke.highLowPriceLinesVisible,this.model(),pe),re){var Be=new T({actionId:x.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility,label:r("Average close price label"),checkable:!0,checked:!1,statName:"ToggleAverageClosePriceLabel"});Be.binding=new d(Be,ke.averageClosePriceLabelVisible,this.model(),ge);var Ne=new T({actionId:x.ChartLinesToggleAverageLineVisibility,label:r("Average close price line"),checkable:!0,checked:!1,statName:"ToggleAverageClosePriceLine"});Ne.binding=new d(Ne,ke.averageClosePriceLineVisible,this.model(),me)}var Re=new T({ -actionId:x.ChartPriceScaleToggleCountdownToBarCloseVisibility,label:r("Countdown to bar close"),checkable:!0,checked:!1,statName:"ToggleCountdown"});Re.binder=new d(Re,this.model().mainSeries().properties().showCountdown,this.model(),fe);var Oe=new T({actionId:x.ChartPriceScaleToggleAddOrderPlusButtonVisibility,label:r("Plus button"),checkable:!0,checked:se.value(),statName:"ToggleAddOrderPlusButton"});Oe.binder=new d(Oe,se,this.model(),ve);var Fe=null;this._options.goToDateEnabled&&(Fe=new T({actionId:x.ChartDialogsShowGoToDate,label:K(r("Go to date")),statName:"GoToDate",onExecute:function(){var e=t._chartWidgetCollection.activeChartWidget.value();_(e)},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+71}));var We=new T({actionId:x.ChartDialogsShowSymbolInfo,label:K(r("Symbol info")),icon:i(69061),checkable:!1,statName:"SymbolInfo",onExecute:function(){var e=t.model().mainSeries().symbol(),i=t.model().mainSeries().symbolInfo(),s=t.model().model().availableUnits(),r=t.model().model().unitConversionEnabled();k(e,{symbolInfo:i,showUnit:r,unitDescription:e=>s.description(e)})}}),He=new T({actionId:x.ChartPriceScaleMergeAllScalesToLeft,label:Ce,statName:"MergeAllScalesToLeft",onExecute:function(){t.model().mergeAllScales("left")}}),ze=new T({actionId:x.ChartPriceScaleMergeAllScalesToRight,label:Pe,statName:"MergeAllScalesToRight",onExecute:function(){t.model().mergeAllScales("right")}}),Ue=new T({actionId:x.ChartPriceScaleMoveToLeft,label:Te,statName:"MoveScaleToLeft",onExecute:function(){t.model().mergeAllScales("left")}}),je=new T({actionId:x.ChartPriceScaleMoveToRight,label:xe,statName:"MoveScaleToRight",onExecute:function(){t.model().mergeAllScales("right")}});var Ge=h.enabled("show_object_tree");if(this._actions={chartProperties:Y,mainSeriesPropertiesAction:$,timeScaleReset:L,chartReset:s,invertSeriesScale:n,logSeriesScale:v,autoSeriesScale:o,lockSeriesScale:a,regularSeriesScale:l,percentSeriesScale:c,indexedTo100SeriesScale:f,compareOrAdd:G,paneObjectTree:Ge?q:void 0,insertIndicator:U,symbolSearch:w,showSymbolInfoDialog:We,changeInterval:M,seriesHide:Z,studyHide:Z,lineToggleLock:X,lineHide:Z,scaleSeriesOnly:Q,drawingToolbarAction:te,stayInDrawingModeAction:ne,hideAllMarks:ye,applyTimeZone:b,showCountdown:Re,addPlusButton:Oe,showSeriesLastValue:we,showHighLowPriceLabels:De,showHighLowPriceLines:Ve,showAverageClosePriceLabel:Be,showAverageClosePriceLine:Ne,showSymbolLabelsAction:Ie,showStudyLastValue:Le,showStudyPlotNamesAction:Ee,undo:S,redo:y,mergeLeftScalesAction:He,mergeRightScalesAction:ze,moveScaleToLeft:Ue,moveScaleToRight:je,moveChartAction:void 0},e&&(this._actions.scalesProperties=e),P&&(this._actions.addToWatchlist=P),h.enabled("show_source_code")&&(this._actions.viewSourceCode=new TVAction({label:K(r("Source code")),statName:"OpenSelectedObjectSource",onExecute:this.openSelectedObjectSource.bind(this)})),!TradingView.onWidget()&&h.enabled("text_notes")&&(this._actions.addToTextNotes=void 0),null!==Fe&&(this._actions.gotoDate=Fe),this.createSessionBreaksActions(),!this.readOnly()){var qe=new T({ -actionId:x.ChartSelectedObjectRemove,label:r("Remove"),icon:i(78679),statName:"RemoveSelectedObject",onExecute:function(){var e=this._chartWidgetCollection.activeChartWidget.value();e||(e=this),e.removeSelectedSources()}.bind(this),hotkeyGroup:this._hotkeys,hotkeyHash:m.isMacKeyboard?8:46});this._hotkeys.add({handler:function(){this.removeSelectedSources()}.bind(this),desc:"Remove selected source",hotkey:m.isMacKeyboard?46:8}),this._actions.paneRemoveAllStudies=A,this._actions.paneRemoveAllDrawingTools=E,this._actions.paneRemoveAllStudiesDrawingTools=R,this._actions.applyStudiesToAllCharts=F,this._actions.studyRemove=qe,this._actions.lineRemove=qe,h.enabled("property_pages")&&(this._actions.format=z)}this._actions.showPriceLine=new T({actionId:x.ChartLinesToggleSeriesPriceLineVisibility,label:r("Price line"),checkable:!0,statName:"TogglePriceLine"}),this._actions.showPriceLine.binding=new d(this._actions.showPriceLine,this.model().mainSeries().properties().showPriceLine,this.model(),Se),this.readOnly()||(this._hotkeys.add({desc:"Draw Horizontal Line here",hotkey:g.Modifiers.Alt+72,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolHorzLine")}}),this._hotkeys.add({desc:"Draw Horizontal Ray here",hotkey:g.Modifiers.Alt+74,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolHorzRay")}}),this._hotkeys.add({desc:"Draw Vertical Line here",hotkey:g.Modifiers.Alt+86,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolVertLine")}}),this._hotkeys.add({desc:"Draw Cross Line here",hotkey:g.Modifiers.Alt+67,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolCrossLine")}}),this._hotkeys.add({desc:"Draw Trend Line",hotkey:g.Modifiers.Alt+84,handler:function(){t.activePaneWidget&&I.tool.setValue("LineToolTrendLine")}}),this._hotkeys.add({desc:"Draw Fib Retracement",hotkey:g.Modifiers.Alt+70,handler:function(){t.activePaneWidget&&I.tool.setValue("LineToolFibRetracement")}})),this._updateScalesActions()}options(){return this._options}executeActionById(e){if("takeScreenshot"===e)return console.warn('Action "takeScreenshot" is deprecated. Use method "takeScreenshot" instead'),void this._chartWidgetCollection.takeScreenshot();e in this._actions?this._actions[e]instanceof T&&this._actions[e].execute():console.warn("Unknown action id: "+e)}getCheckableActionState(e){if(e in this._actions){var t=this._actions[e];if(t instanceof T&&t.isCheckable())return t.isChecked();console.warn("Action "+e+" has no state")}else console.warn("Unknown action id: "+e);return null}_updateScalesActions(){if(null!==this._actions){var e=this.model().mainSeries(),t=e.priceScale(),i=e.properties(),s=t.isLockScale(),r=i.style.value()===c.STYLE_PNF;this._actions.percentSeriesScale.update({disabled:s||r,checked:t.isPercentage()}),this._actions.logSeriesScale.update({disabled:s||r,checked:t.isLog()}),this._actions.regularSeriesScale.update({disabled:s||r,checked:t.isRegular()}),this._actions.indexedTo100SeriesScale.update({disabled:s||r, -checked:t.isIndexedTo100()}),this._actions.invertSeriesScale.update({checked:t.isInverted()}),this._actions.lockSeriesScale.update({checked:t.isLockScale()}),this._actions.autoSeriesScale.update({checked:t.isAutoScale(),disabled:t.properties().autoScaleDisabled.value()})}}removeAllStudies(){this._model.removeAllStudies()}removeAllDrawingTools(){this._model.removeAllDrawingTools()}removeAllStudiesDrawingTools(){this._model.removeAllStudiesAndDrawingTools()}defaultSymbol(){return this._defSymbol}connect(){this._handler=function(e){this._onData(e)}.bind(this),this._boundOnChartSessionIsConnectedChanged=this._onChartSessionIsConnectedChanged.bind(this),this._chartSession.isConnected().subscribe(this._boundOnChartSessionIsConnectedChanged),this._chartSession.criticalError().subscribe(this,this._onChartSessionCriticalError),this._chartSession.connect(this._handler)}finishInitWithoutConnect(){this._chartSession.disable(),this._init(),this.chartWidgetInitialized.fire()}reconnect(){this._chartSession.disconnect(),this._chartSession.connect()}widget(){return this._mainDiv}_onBackgroundColorChanged(){for(var e=0;e0;)for(var t=this._content.panes[e].sources,i=t.length;i-- >0;)if("MainSeries"===t[i].type)return t[i].state}updateUndoRedo(){this._model&&(this.actions().undo.update({disabled:this._model.undoHistory().undoStack().isEmpty()}),this.actions().redo.update({disabled:this._model.undoHistory().redoStack().isEmpty()}))}createSessionBreaksActions(){var e=new T({actionId:x.ChartSessionBreaksToggleVisibility,label:r("Session breaks"),checkable:!0,statName:"ToggleSessionBreaks"});e.binder=new d(e,this._model.chartModel().sessions().properties().graphics.vertlines.sessBreaks.visible,this.model(),we),this._actions.sessionBreaks=e}updateActionForIntradayOnly(e){e&&e instanceof T&&e.update({disabled:this.model().mainSeries().isDWM()})}containsVolume(){return this.model().dataSources().some((function(e){ -return e instanceof v&&"Volume"===e.metaInfo().shortId}))}containsStudyByPredicate(e){return!!this._model&&this._model.dataSources().some((function(t){if(!(t instanceof v))return!1;var i=t.metaInfo();return e(i)}))}containsStudy(e){return this.containsStudyByPredicate((function(t){return t.id===e||t.fullId===e}))}isSmall(){return this._width()<550||this._height()<300}onWidget(){return this._onWidget}onCmeWidget(){return"cme"===this.widgetCustomer()}widgetCustomer(){return this._widgetCustomer}resize(){var e=this._height()+"px",t=this._width()+"px";this._mainDiv.style.height=e,this._mainDiv.style.width=t,this._elMainTable.style.height=e,this._elMainTable.style.width=t,this._resizeHandler&&this._mainDiv&&this._resizeHandler()}chartSession(){return this._chartSession}onLineCancelled(){I.resetToCursor()}_startSpinner(e){this._spinner||e&&(this._spinner=(new U).spin(e))}applyOverrides(e){var t={};for(var i in e)i.startsWith("mainSeriesProperties.priceAxisProperties")||(t[i]=e[i]);if(applyPropertiesOverrides(this.properties(),null,!1,t,null),this._model){applyPropertiesOverrides(this._model.model().properties(),null,!1,t),applyPropertiesOverrides(this._model.mainSeries().properties(),null,!1,t,"mainSeriesProperties"),this._model.model().sessions().applyOverrides(t);const e=this._model.chartModel().watermarkSource();null!==e&&e.applyOverrides(t)}}applyStudiesOverrides(e){z.mergeDefaultsOverrides(e),this._applyStudiesOverrides()}setActive(e){this._isActive=e,G().isTouch&&(e&&this.selectPointMode().value()?this.startTrackingMode():this.exitTrackingMode()),this._paneWidgets.forEach((function(e){e.update()})),e||this.model().selectionMacro((function(e){e.clearSelection()}))}isActive(){return this._isActive}trackTime(){return this._chartWidgetCollection.lock.trackTime}isMultipleLayout(){return X(this._chartWidgetCollection.layout.value())}selectPointMode(){return this._model.model().selectPointMode()}cancelRequestSelectPoint(){this._model.model().cancelRequestSelectPoint()}requestSelectPoint(e,t){var i=this;return new Promise((function(s,r){if(a()){I.resetToCursor(!0),i._model.lineBeingCreated()&&i._model.cancelCreatingLine();var n=!1,o={};i._model.model().onPointSelected().subscribe(o,(function(e,t){n=!0,i._isVisible.unsubscribe(a),i._hideHint(),s({point:e,pane:t})}),!0),i._model.model().requestSelectPoint(e),i.startTrackingMode(),void 0!==t&&i._showHint(t),i._isVisible.subscribe(a),i.selectPointMode().subscribe((function(){setTimeout((function(){n||(i.selectPointMode().value()||i._hideHint(),i._model.model().onPointSelected().unsubscribeAll(o),i._isVisible.unsubscribe(a),r("cancelled"))}))}),{once:!0})}function a(){return!!i.isVisible()||(r("Chartwidget must be visible"),i.cancelRequestSelectPoint(),!1)}}))}showReplayOrderConfirmationDialog(){if(!this.model().isInReplay())return Promise.resolve()}_addPerfMark(e){Z("ChartWidget."+this._id+"."+e)}requestFullscreen(){this._options.requestFullscreen()}getResizerDetacher(){return this._options}_createHint(){if(null===this._hintDefferedPromise){var e=ie();this._hintDefferedPromise=e -;var t=this;Promise.all([i.e(5514),i.e(3402),i.e(6166)]).then(i.bind(i,5015)).then((function(i){e.resolve(new i.ChartEventHintRenderer(t._chartWidgetCollection.getContainer()))}))}return this._hintDefferedPromise?l(this._hintDefferedPromise).promise:null}_showHint(e){if(h.enabled("popup_hints"))if(null!==this._activeHint)this._activeHint.show(e);else{var t=this,i=this._createHint();null!==i&&i.then((function(i){if(null!==i){if(t._activeHint=i,void 0===e)return;t._activeHint.show(e)}}))}}_hideHint(){null!==this._activeHint&&this._activeHint.hide()}}},21269:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(59572).applyOverridesToStudy,n=i(67072),o=i(68582),a=o.LineDataSourceApi,l=o.isLineToolRiskReward,c=i(67e3).StudyApi,h=i(82650).SeriesApi,d=i(32112).SelectionApi,u=i(56233).PaneApi,p=i(65862).createDwmAligner,_=i(29823).Interval,m=i(16906).supportedLineTools,g=i(65645).showTooManyStudiesNotice,f=i(80643),v=f.isNumber,S=f.deepEquals,y=i(14291).createLineToolProperties,b=i(14291).prepareLineToolPropertiesByOwnerSource,w=i(45973).lineToolEntityInfo,C=i(7099).LineToolsGroupControllerApi,P=i(65284).RemoveSourcesCommand;const{isLineDrawnWithPressedButton:T,isLineToolFinishRequiredWhenCreatedByApi:x}=i(44601),I=i(77216).EnvironmentState;var M=i(37786).ChartWidgetApiBase,L=i(85733);i(51768).trackEvent;function A(e,t){return t.map((function(t){return e.dataSourceForId(t)}))}e.exports=class extends M{constructor(e,t){super(e,t),this._panes=new WeakMap,this._studies=new WeakMap,this._lineDataSources=new WeakMap,this._selectionApi=null,this._prevVisibleRange=null,this._chartWidget.onAboutToBeDestroyed().subscribe(this,this._destroy,!0),this._chartWidget.withModel(this,(function(){this._chartWidget.model().timeScale().logicalRangeChanged().subscribe(this,this._onLogicalRangeChanged)}))}id(){return this._chartWidget.id()}_getPaneApi(e){var t=this._panes.get(e);return void 0===t&&(t=new u(e,this._chartWidget),this._panes.set(e,t)),t}_getStudyApi(e){var t=this._studies.get(e);return void 0===t&&(t=new c(e,this._chartWidget),this._studies.set(e,t)),t}_getLineDataSourceApi(e){var t=this._lineDataSources.get(e);return void 0===t&&(t=new a(e,this._chartWidget.model(),{apiPointsToDataSource:this._convertUserPointsToDataSource.bind(this),dataSourcePointsToPriced:e=>{var t=this._chartWidget.model().mainSeries().syncModel(),i=this._chartWidget.model().timeScale();return e.map(e=>{var s=i.normalizeBarIndex(e.index);return{price:e.price,time:this._convertTimeToPublic(t.projectTime(s.time_t,s.offset))}})}}),this._lineDataSources.set(e,t)),t}executeActionById(e){this._chartWidget.executeActionById(e)}getCheckableActionState(e){return this._chartWidget.getCheckableActionState(e)}setZoomEnabled(e){this._chartWidget.model().model().setZoomEnabled(e)}setScrollEnabled(e){this._chartWidget.model().model().setScrollEnabled(e)}refreshMarks(){this._chartWidget.refreshMarks()}clearMarks(){this._chartWidget.clearMarks()}symbol(){return this._chartWidget.getSymbol()}symbolExt(){var e=this._chartWidget.model().mainSeries().symbolInfo();return e?{ -symbol:e.name,full_name:e.full_name,exchange:e.exchange,description:e.description,type:e.type,pro_name:e.pro_name,typespecs:e.typespecs}:null}resolution(){return this._chartWidget.model().mainSeries().properties().interval.value()}resetData(){this._chartWidget.model().mainSeries().rerequestData()}setEntityVisibility(e,t){console.warn("`setEntityVisibility` is deprecated. Use shape/study API instead");var i=this._chartWidget.model().model().dataSourceForId(e);if(i){var s=i.properties();s&&s.visible&&s.visible.setValue(t)}}availableZOrderOperations(e){var t=A(this._chartWidget.model().model(),e);return this._chartWidget.model().availableZOrderOperations(t)}sendToBack(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendToBack(t)}bringToFront(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringToFront(t)}insertAfter(e,t){var i=this._chartWidget.model().model(),s=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertAfter(s,r)}insertBefore(e,t){var i=this._chartWidget.model().model(),s=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertBefore(s,r)}bringForward(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringForward(t)}sendBackward(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendBackward(t)}showPropertiesDialog(e){var t=this._chartWidget.model().model().dataSourceForId(e);if(null===t)throw new Error("Study or shape "+e+" does not exist");this._chartWidget.showChartPropertiesForSource(t)}getAllShapes(){return this._chartWidget.model().model().allLineTools().map(w).filter((function(e){return null!==e.name}))}removeAllShapes(){this._chartWidget.removeAllDrawingTools()}removeAllStudies(){this._chartWidget.removeAllStudies()}removeEntity(e,t){var i=this._chartWidget.model().chartModel().dataSourceForId(e);i?t&&t.disableUndo?new P(this._chartWidget.model().chartModel(),[i],"").redo():this._chartWidget.model().removeSource(i,!0,!0):console.warn("Can't find a source with id: "+e)}removeEntityWithUndo(e){var t=this._chartWidget.model().chartModel().dataSourceForId(e);this._chartWidget.model().removeSource(t,!1)}selection(){return null===this._selectionApi&&(this._selectionApi=new d(this._chartWidget.model().model())),this._selectionApi}createStudyTemplate(e){return this._chartWidget.model().model().studyTemplate(e.saveSymbol,e.saveInterval)}drawOnAllCharts(e){L.drawOnAllCharts.setValue(e)}applyStudyTemplate(e){this._chartWidget.model().applyStudyTemplate(e,""+1e3*Math.random())}setVisibleRange(e,t){return new Promise(function(i){this._chartWidget.setVisibleTimeRange(e.from,e.to,t,i)}.bind(this))}getVisibleRange(){var e={from:0,to:0},t=this._chartWidget.model().timeScale();if(t.isEmpty())return e;var i=t.coordinateToVisibleIndex(0),s=t.coordinateToVisibleIndex(t.width()-1),r=this._convertIndexToPublicTime(s);return null===r||(e.from=this._convertIndexToPublicTime(Math.max(t.points().firstIndex(),i)),e.to=r),e}getVisiblePriceRange(){ -return console.warn("`getVisiblePriceRange` is deprecated. Use Price Scale API instead"),this._chartWidget.model().mainSeries()?this._chartWidget.model().mainSeries().priceScale().priceRangeInPrice():null}scrollPosition(){return console.warn("`scrollPosition` is deprecated. Use rightOffset from Time Scale API instead"),this._chartWidget.model().timeScale().rightOffset()}defaultScrollPosition(){return console.warn("`defaultScrollPosition` is deprecated. Use defaultRightOffset from Time Scale API instead"),this._chartWidget.model().timeScale().defaultRightOffset().value()}_createTradingPrimitive(e,t){var i,r=this._chartWidget.model(),n=r.model(),o=n.paneForSource(n.mainSeries());function a(){var e=TradingView.CLOSE_PLOT,t=s(r.mainSeries().bars().last());return{index:t.index,price:t.value[e]}}return(i=t?n.createLineTool(o,a(),e):r.createLineTool({pane:o,point:a(),linetool:e}))?i._adapter:void 0}createOrderLine(e){e=e||{};return this._createTradingPrimitive("LineToolOrder",e.disableUndo)}createPositionLine(e){e=e||{};return this._createTradingPrimitive("LineToolPosition",e.disableUndo)}createExecutionShape(e){e=e||{};return this._createTradingPrimitive("LineToolExecution",e.disableUndo)}createShape(e,t){return this.createMultipointShape([e],t)}_alignPoints(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=i.interval();if(t.timeScale().isEmpty()||!_.isDWM(s))return e;var r=p(s,i.symbolInfo());return null===r?e:e.map((function(e){return r.timeToSessionStart(1e3*e)/1e3}))}_convertUserPointsToDataSource(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=t.timeScale().points(),r=i.data();if(t.timeScale().isEmpty())return null;var n=e.map((function(e){return e.time||0})),o=this._alignPoints(n);function a(e,t,n){var o=s.closestIndexLeft(e)||0,a={index:o},l=s.valueAt(o);if(e>l&&o===s.lastIndex())(c=i.syncModel().distance(l,e)).success&&(a.index=a.index+c.result);else if(e2)throw new Error("Wrong points count for "+i.shape+". Required 1 or 2");2===c.length&&(d.startChanging(1,c[1]),d.setPoint(1,c[1]),d.endChanging())}else{var _=d.pointsCount();if(_!==c.length&&-1!==_)throw new Error("Wrong points count for "+i.shape+". Required "+_);for(var g=new I(void 0,!0),f=T(s.name),v=1;v{"use strict";var s=i(2872),r=i(88537).assert,n=i(28353).t,o=i(81836).createDeferredPromise,a=(n=i(28353).t,i(24980).TranslatedString),l=i(42060).layouts,c=i(49483).supportTouch,h=i(52940).createUndoHistory,d=i(85733),u=i(25760),p=i(68335),_=i(76422),m=i(67337),g=i(52714),f=i(98125).getLogger("Chart.ChartWidgetCollection"),v=i(54475).preventDefaultForContextMenu,S=i(16654),y=i(64237).rangesAreEqual,b=i(13323).GeneralChartPropertiesRenderer,w=i(9315).setLastUsedResolution,C=i(42120).CompareDialogRenderer,P=i(84015).isOnMobileAppPage,T=i(10480),x=i(37667),I=i(8578),M=I.applyIndicatorsToAllChartsImpl,L=I.applyIndicatorToAllChartsImpl,A=I.lineToolsAndGroupsDTOsImpl,E=I.getStateForChartImpl,k=I.resetLineToolsInvalidatedImpl,D=I.applyLineToolUpdateNotificationImpl,V=I.createClipboardHandler,B=I.chartsSymbolsImpl,N=I.updateLayoutImpl,R=I.computeContentBoxImpl,O=(I.getVisuallyAdjacentDefImpl, -I.setLayoutImpl),F=I.removeChartWidgetSubscriptionsImpl,W=I.createChartWidgetImpl,H=I.generateNewChartId,z=I.syncCrosshairImpl,U=I.createBroadcastChannel,j=I.destroyBroadcastChannel,G=I.syncScrollImpl,q=I.allInitialModelsCreated,Y=I.allInitialSymbolsResolved,K=I.applyThemeImpl,$={saveChartEnabled:!0,takeScreenshotEnabled:!0,publishedChartsEnabled:!0},X=new a("symbol lock",n("symbol lock")),Z=new a("interval lock",n("interval lock")),J=new a("date range lock",n("date range lock")),Q=new a("track time",n("track time")),ee=new a("change symbol",n("change symbol")),te=new a("change resolution",n("change resolution")),ie=new a("change series style",n("change series style"));n("Bar Replay isn't available for this chart type. Do you want to exit Bar Replay?");e.exports=function(e){var t=this,n=Object.assign({},$,e),a=new g,se=n.readOnly||!1,re=[],ne=0,oe=new g,ae=new g,le=new g,ce="s",he=new g(null),de=new Map,ue=new g([]),pe=new g,_e=[],me=!1,ge=!1,fe=new g(!1),ve=new g(null),Se=new g(!1),ye=new g(!1),be=new g(!1),we=new g(!1),Ce=new g(!1);Ce.subscribe(Ct),he.subscribe(Pt);var Pe=new g(TVSettings.getBool("chart.syncCrosshair",!0)),Te=u.createGroup({desc:"Layout"}),xe=null,Ie=null,Me=null,Le=null;if(window.TVD){var Ae=window.TVD.crosshairSyncEnabled;Ae?(Ae.value()&&(Me=U(Qe)),Le=Ae.subscribe(e=>{e?Me=U(Qe):(j(Qe()),Me=null)})):Me=U(Qe)}var Ee=Pe.value();Pe.subscribe((function(e){Ee=e=!!e,TVSettings.setValue("chart.syncCrosshair",e);for(var t=0;t{var i=n.resizerBridge,r=[i.container.spawn(),i.width.spawn(),i.height.spawn()],o=i.container.value(),a=new s,l=function(){a.fire()};r.forEach((function(e){e.subscribe(l)})),Ye=new e(qe.value(),a,(function(){var e=o.getBoundingClientRect(),t=R(Qe());return t.top=e.top+t.top,t.left=e.left+t.left,t}),t,ChartApiInstance,Ne,n.seriesControlBar),Ke=function(){null!==Ye&&(Ye.destroy(),Ye=null,qe.value().remove(),qe.setValue(null)),r.forEach((function(e){e.destroy()})),a.destroy() -}}));var $e=new b(t),Xe=new C(t);function Ze(){Ge.setValue(re.some(e=>{const t=e.chartWidget.lineToolsSynchronizer();return null!==t&&t.hasChanges().value()}))}function Je(e){return I.checkProFeatureImpl(Qe(),e)}function Qe(){return{undoHistory:Fe,chartWidgetsDefs:re,chartsCountToSave:et,actualLayoutCount:tt,savedChartWidgetOptions:_e,activeChartWidget:a,options:n,parent:We,toastsFactory:null,crosshairLockRaw:Ee,crossHairSyncBroadcast:Me,setChartStorageNotificationSubscription:e=>{Ie=e},maximizedChartDef:Be,setMaximized:ot,layoutTemplate:le,widthWV:De,heightWV:Ve,checkProFeature:Je,lineToolsSynchronizerHasChanges:Ge,recalcHasChanges:Ze,onZoom:Ue,onScroll:je,layoutType:ce,layoutWV:ke,setLayoutType:e=>{ce=e},isPhoneSize:fe,viewMode:pe,updateViewMode:lt,loadingContent:me,setLoadingContent:e=>{me=e},initialLoading:ge,inlineChartsCount:ae,updateWatchedValue:ct,checkAllPendingModelsAlreadyCreated:at,readOnly:se,symbolLock:ye,customLegendWidgetsFactoriesMap:Ot,globalDetachable:oe,saveChartService:xe,customSources:Rt,updateActivityView:ht,chartWidgetCreatedDelegate:ze,sizingState:ve,currentLayoutResizeAction:he,allLayoutSizesState:de,splitters:ue,trackTimeLock:we,widgetOptions:Ne,dateRangeLock:Ce,bottomToolbar:qe,layoutSizesChanged:Se,subscribeToCompletedEventForDateRangeSync:yt}}function et(){return tt()}function tt(){return l[ce].count}function it(e,t,i,s,r){return E(Qe(),e,t,i,s,r)}function st(){N(Qe())}function rt(e){return e.rdState.owner.value()!==e}function nt(e){return O(Qe(),e,t)}function ot(e){Be.value()!==e&&(Be.setValue(e),nt(ce))}function at(){re.every(e=>e.chartWidget.hasModel())&&(ct(),_.emit("layout_changed"))}function lt(){"s"===ce||Be.value()?pe.setValue((void 0).ForceFullscreen):pe.setValue((void 0).Multichart)}function ct(){var e=Math.min(le.value().count,re.length)-1;if(e<0)a.deleteValue();else{var t=ne;t<0&&(t=0),t>e&&(t=e),a.setValue(re[t].chartWidget)}}function ht(){for(var e=re.length;e--;){var t=e===ne;re[e].container.value().classList.toggle("active",t),re[e].container.value().classList.toggle("inactive",!t)}}function dt(e){}ve.subscribe(()=>st()),De.subscribe(st),Ve.subscribe(st),this.updateLayout=st;var ut=new s,pt=new g,_t=new g([]),mt=null;function gt(e){var t=e.mainSeries().properties();t.style.subscribe(null,ft),ft(t.style),e.model().onSelectedSourceChanged().subscribe(null,vt),Ce.value()&&(bt(e),xt()),vt(e.selection().allSources())}function ft(e){pt.setValue(e.value())}function vt(){var e=mt.model();_t.setValue(e.selection().allSources())}a.subscribe((function(e){if(e){for(var t,i=re.length;i--;)if(re[i].chartWidget===e){t=i;break}if(!isFinite(t))throw new Error("Cannot make detached ChartWidget active");if(ne!==t){Be.value()&&(rt(re[t])||Be.setValue(re[t])),ne=t,ht();for(i=re.length;i--;)re[i].chartWidget!==e&&re[i].chartWidget.setActive(!1);Ht(),e.setActive(!0)}!function(e){if(mt!==e){if(mt&&(mt.modelCreated().unsubscribe(null,gt),mt.hasModel())){var t=mt.model();Ce.value()&&wt(t),t.mainSeries().properties().style.unsubscribe(null,ft), -t.model().onSelectedSourceChanged().unsubscribe(null,vt),mt=null}e&&(mt=e,e.hasModel()?gt(e.model()):e.modelCreated().subscribe(null,gt))}}(e)}}),{callWithLast:!0});var St=new Map;function yt(e,t){var i=e.id();if(!St.has(i)){var s=function(){St.delete(e.id()),xt(t?e:void 0)};e.model().mainSeries().dataEvents().completed().subscribe(null,s,!0),St.set(i,{cw:e,callback:s})}}function bt(e){e.timeScale().visibleBarsStrictRangeChanged().subscribe(null,Tt)}function wt(e){e.timeScale().visibleBarsStrictRangeChanged().unsubscribe(null,Tt),St.forEach((function(e){var t=e.cw,i=e.callback;t.model().mainSeries().dataEvents().completed().unsubscribe(null,i)})),St.clear()}function Ct(e){var t=a.value();if(t&&t.hasModel()){var i=t.model();e?(bt(i),xt()):wt(i)}}function Pt(e){Ce.value()&&null===e&&xt()}function Tt(e,t){xt()}function xt(e){if(Ce.value()&&null===he.value()){var t=a.value(),i=t.model().mainSeries();if(x.isTimeBasedStyle(i.style())){var s=t.model().timeScale(),r=s.visibleBarsStrictRange();if(null!==r){var n=r.firstBar(),o=Math.min(r.lastBar(),s.points().lastIndex()),l=s.indexToTimePoint(n);null===l&&i.endOfData()&&(l=s.indexToTimePoint(s.points().firstIndex()));var c=s.indexToTimePoint(o);if(null!==l&&null!==c){var h=i.barCloseTime();null!==h&&hnull===Be.value()?null:Be.value().chartWidget,destroy:function(){if(Et.fire(),Nt(!1),null!==Ke&&(Ke(),Ke=null),F(Qe()),Ce.unsubscribe(Ct),he.unsubscribe(Pt),re.forEach((function(e){void 0!==e.timingsMeter&&e.timingsMeter.destroy(),e.chartWidget.destroy()})),n.resizerBridge.remove(),ue.value().forEach(e=>{e.mouseHandler.destroy(),e.mouseListener.destroy()}),window.removeEventListener("resize",st),d.tool.unsubscribe(Ht),d.tool.unsubscribe(zt),He.resolve(),We.remove(),Rt.clear(),Ot.clear(),Te.destroy(),Ie&&Ie.destroy(),Ft&&Ft.destroy(),window.TVD){const e=window.TVD.crosshairSyncEnabled;e&&e.unsubscribe(Le),j(Qe())}},onAboutToBeDestroyed:Et,layout:ke.readonly(),setLayout:nt,activeChartWidget:a,viewMode:pe,activeChartStyle:pt.readonly(),setChartStyleToWidget:function(e,t){t||(t=a.value()),t&&function(e,t){var i=e.model(),s=i.mainSeries().properties().style;i.setChartStyleProperty(s,t,ie)}(t,e)},selectedSources:_t.readonly(),metaInfo:Oe,state:function(e,i,s,r){for(var n=[],o=et(),a=0;a{c.layoutsSizes[t]=e}),c},lineToolsAndGroupsDTOs:function(){return A(Qe())},resetLineToolsInvalidated:function(e,t){return k(Qe(),e,t)},applyLineToolUpdateNotification:D.bind(null,re),readOnly:function(){return se},onZoom:function(){return Ue},onScroll:function(){return je},resizerBridge:function(){return n.resizerBridge},lock:{symbol:ye,setSymbolLockWithUndo:function(e){if(e!==ye.value()){if(Fe.beginUndoMacro(X),e)for(var t=a.value(),i=t.getSymbol(),s=0;sz(Qe(),e,t,i,s),syncScroll:function(e,t){return G(Qe(),e,t)},setSymbolAll:Mt,clearChartMetaInfo:function(){Oe.id.setValue(null),Oe.uid.setValue(void 0),Oe.name.setValue(void 0)},takeScreenshot:I.takeScreenshot.bind(this,n.snapshotUrl,this),takeServerScreenshot:I.takeServerScreenshot.bind(this,n.snapshotUrl,this),loadContent:Wt,purgeUnusedWidgets:function(){for(var e=l[ce].count;e1},applyIndicatorToAllCharts:function(e,t,i,s){L(Qe(),e,t,i,s)},setActive:Nt,inlineChartsCount:ae.readonly(),revertToInline:function(){ot(null);for(var e=0;eSe}),Wt(n.content,!0),ke.subscribe((function(){ht()})),ke.hook=function(e){return e===this.value()?e:Je(e)},se&&(ke.writeLock=!0),window.addEventListener("resize",st);var Ut=0;function jt(){0===--Ut&&_.emitOnce("onChartReady")}if(re.forEach((function(e){if(e){Ut++;var t=e.chartWidget;t.withModel(null,(function(){n.metaInfo&&t.model().model().setChartSaveTime(1e3*n.metaInfo.lastModified);var e=t.model().mainSeries();if(e.bars().size()>0||e.isStatusBad())jt();else{var i=e.dataEvents(),s=function(){jt(),i.barReceived().unsubscribe(null,s),i.completed().unsubscribe(null,s),i.error().unsubscribe(null,s)};i.barReceived().subscribe(null,s),i.completed().subscribe(null,s),i.error().subscribe(null,s)}}))}})),c()){var Gt=d.tool.setValue;d.tool.setValue=function(){t.selectedSources.value()&&t.activeChartWidget.value().model().lineBeingCreated()&&t.activeChartWidget.value().model().cancelCreatingLine(),Gt.apply(d.tool,arguments)}}q(Qe()).then(Y).then((function(){window.saver&&window.is_authenticated&&n.widgetOptions.justCloned&&window.saver.saveChartSilently()})).catch(f.logError.bind(f))}},97056:(e,t,i)=>{"use strict";i.d(t,{ContextMenuManager:()=>s});var s,r=i(28296),n=i(59064);!function(e){let t=null,s=null;const o=[],a={createAction:e=>new r.Action({...e,actionId:"Chart.CustomActionId"}),createAsyncAction:e=>new r.ActionAsync("Chart.CustomActionId",e),createSeparator:()=>new r.Separator};async function l(e,r={},n={menuName:""},l){let h;null!==t&&(e=await t(e,a));const d=()=>{const e=o.indexOf(h);-1!==e&&o.splice(e,1),void 0!==l&&l()} -;if(null!==s)h=await s(e,n,d),c();else{const t=await Promise.all([i.e(5514),i.e(2e3),i.e(3466),i.e(7427),i.e(1112),i.e(6909),i.e(5998),i.e(3520),i.e(2849),i.e(1075),i.e(7210),i.e(1584)]).then(i.bind(i,46608));h=new t.ContextMenuRenderer(e,r,d,c)}return o.push(h),h}function c(){(0,n.globalCloseMenu)()}e.createMenu=l,e.showMenu=function(e,t,i={},s,r){return l(e,i,s,r).then(e=>e.show(t))},e.setCustomRendererFactory=function(e){s=e},e.setCustomItemsProcessor=function(e){t=e},e.hideAll=c,e.getShown=function(){for(let e=0;e{"use strict";i.d(t,{DialogRenderer:()=>n});var s=i(52714),r=i.n(s);class n{constructor(){this._container=document.createElement("div"),this._visibility=new(r())(!1)}visible(){return this._visibility.readonly()}_setVisibility(e){this._visibility.setValue(e)}}},73591:(e,t,i)=>{"use strict";var s;i.d(t,{TabNames:()=>s}),function(e){e.background="Background",e.coordinates="Coordinates",e.drawings="Drawings",e.events="Events",e.eventsAndAlerts="Events & Alerts",e.inputs="Inputs",e.properties="Properties",e.scales="Scales",e.legend="Legend",e.sourceCode="Source Code",e.style="Style",e.symbol="Symbol",e.timezoneSessions="Timezone/Sessions",e.trading="Trading",e.visibility="Visibility",e.text="Text"}(s||(s={}))},33225:(e,t,i)=>{"use strict";function s(e){return e.getAll().some(e=>e.isInitialized())}function r(e,t){const i=e.getAll(),s=()=>{t(),i.forEach(e=>{e.chartWidgetInitialized.unsubscribe(null,s)})};i.forEach(e=>{e.chartWidgetInitialized.subscribe(null,s,!0)})}i.r(t),i.d(t,{isAnyChartWidgetInitialized:()=>s,waitAnyChartWidgetInitialized:()=>r})},12409:(e,t,i)=>{"use strict";i.d(t,{getFavoriteDrawingToolbarPromise:()=>o,createFavoriteDrawingToolbar:()=>a});i(28353);var s=i(18387);let r=null,n=null;function o(){return n}function a(){null===n&&(n=Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(3921),i.e(7427),i.e(1112),i.e(6909),i.e(5998),i.e(6416),i.e(7419),i.e(3520),i.e(9042),i.e(323),i.e(2849),i.e(880),i.e(1075),i.e(9505),i.e(1890),i.e(1784),i.e(7210),i.e(2306)]).then(i.bind(i,56588)).then(({FavoriteDrawingToolbar:e})=>(r=null!==r?r:new e({left:window.innerWidth/2,top:s.HEADER_TOOLBAR_HEIGHT_EXPANDED+61}),r)))}},41847:(e,t,i)=>{"use strict";i.d(t,{getPriceAxisNameInfo:()=>o});const s=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"];class n{constructor(e){this.label=e}equals(e){return null!==e&&this.label===e.label}}function o(e,t){const i="left"===e?s:r;return new n(t{"use strict";i.d(t,{CHART_WIDGET_COLLECTION_SERVICE:()=>s});i(16216);const s={id:"ChartWidgetCollectionService"};var r;!function(e){e.Multichart="multichart",e.ForceFullscreen="force-fullscreen"}(r||(r={}))},23653:(e,t,i)=>{"use strict";i.d(t,{InvalidationLevel:()=>s,InvalidationMask:()=>a,defaultInvalidationLevel:()=>o});var s,r=i(88537);class n{constructor(e=o){this._paneInvalidationLevel=o,this._leftPriceScalesInvalidationMap=new Map, -this._rightPriceScalesInvalidationMap=new Map,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)}invalidatePriceScale(e,t,i){const s="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap,r=s.get(t)||o;s.set(t,Math.max(r,i))}invalidationLevelForPane(){return Math.max(this._paneInvalidationLevel,this._invalidationLevel)}getterForPriceScaleInvalidationLevelBySide(e){const t="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap;return e=>Math.max(t.get(e)||o,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)||o;this._leftPriceScalesInvalidationMap.set(t,Math.max(i,e))}),e._rightPriceScalesInvalidationMap.forEach((e,t)=>{const i=this._rightPriceScalesInvalidationMap.get(t)||o;this._rightPriceScalesInvalidationMap.set(t,Math.max(i,e))})}}!function(e){e[e.None=0]="None",e[e.Cursor=1]="Cursor",e[e.Light=2]="Light",e[e.Full=3]="Full"}(s||(s={}));const o=s.None;class a{constructor(e=o){this._panesOrderChanged=!1,this._keepVisibleTimeRangeOnResize=!1,this._timeAxisInvalidationLevel=o,this._invalidatedPanes=new Map,this._additionalActions=[],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 n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(e)).invalidateAll(t)}invalidatePriceScale(e,t,i,s){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(e)).invalidatePriceScale(t,i,s)}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 n(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 n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(t)).merge(e)}),this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e._timeAxisInvalidationLevel);for(let t=0;t{"use strict";i.d(t,{lastMouseOrTouchEventInfo:()=>r,setLastMouseOrTouchEventInfo:()=>n});let s=(0,i(49483).supportTouch)()?{isTouch:!0,stylus:!1}:{isTouch:!1};function r(){return s}function n(e){s=e.isTouch?{isTouch:!0,stylus:e.stylus}:{isTouch:!1}}},37416:(e,t,i)=>{"use strict";i.d(t,{layoutInitialSizingState:()=>r});var s=i(3308);i(88537);function r(e){return function e(t){return t.map(i=>{if((0,s.default)(i))return{percent:1/t.length};{const s=i.slice(1);return{percent:1/t.length,substate:e(s)}}})}(e.slice(1))}},42060:(e,t,i)=>{"use strict";i.d(t,{layouts:()=>r,isMultipleLayout:()=>n});i(38069),i(37416);let s;s={};const r={...{s:{title:"1 chart",count:1,layoutType:"s",sizer:(e,t)=>{if(0!==t)throw new RangeError("invalid index");return e},splitters:()=>[],resizeApplier:(e,t,i,s,r)=>r,syncSublayoutsBySplitter:(e,t)=>t,expression:["h",0]}},...s};function n(e){return!function(e){return"s"===e}(e)}},7099:(e,t,i)=>{"use strict";i.d(t,{LineToolsGroupControllerApi:()=>o});var s=i(59555),r=i(88537),n=i(14291);class o{constructor(e,t){this._controller=e,this._model=t}createGroupFromSelection(){return this._controller.createGroupFromSelection().id}removeGroup(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.removeGroup(t)}groups(){return this._controller.groups().map(e=>e.id)}shapesInGroup(e){const t=(0,r.ensureDefined)(this._groupById(e));return(0,s.sortSources)(t.lineTools()).map(e=>e.id())}excludeShapeFromGroup(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._model.dataSourceForId(t));(0,r.assert)((0,n.isLineTool)(s),"Passed shapeId is not a line tool"),this._controller.excludeLineToolFromGroup(i,s)}addShapeToGroup(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._model.dataSourceForId(t));(0,r.assert)((0,n.isLineTool)(s),"Passed shapeId is not a line tool"),this._controller.addLineToolToGroup(i,s)}availableZOrderOperations(e){ -const t=(0,r.ensureDefined)(this._groupById(e));return this._controller.availableZOrderOperations(t)}bringToFront(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.bringToFront(t)}bringForward(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.bringForward(t)}sendBackward(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.sendBackward(t)}sendToBack(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.sendToBack(t)}insertAfter(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertAfter(i,s)}insertBefore(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertBefore(i,s)}groupVisibility(e){return(0,r.ensureDefined)(this._groupById(e)).visibility()}setGroupVisibility(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupVisibility(i,t)}groupLock(e){return(0,r.ensureDefined)(this._groupById(e)).locked()}setGroupLock(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupLock(i,t)}getGroupName(e){return(0,r.ensureDefined)(this._groupById(e)).name()}setGroupName(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupName(i,t)}canBeGroupped(e){const t=e.map(e=>(0,r.ensureNotNull)(this._model.dataSourceForId(e)));return!t.some(e=>!(0,n.isLineTool)(e))&&this._controller.canBeGroupped(t)}_groupById(e){return this._controller.groups().find(t=>t.id===e)}}},54386:(e,t,i)=>{"use strict";i.d(t,{MouseEventHandler:()=>h});var s=i(49483),r=i(88537),n=i(80643),o=i(80007),a=i(71413);const l=s.isSafari?"click":"auxclick",c={treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!1};class h{constructor(e,t,i){this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY},this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartPosition=null,this._touchMoveStartPosition=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddlePoint=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!s.CheckMobile.iOS(),this._onFirefoxOutsideMouseUp=e=>{this._mouseUpHandler(e)},this._onMobileSafariDoubleClick=e=>{if(this._firesTouchEvents(e)){const t=this._makeCompatEvent(e);if(++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._tapPosition) -;i<30&&!this._cancelTap&&this._processTouchEvent(t,this._handler.doubleTapEvent),this._resetTapTimeout()}}else{const t=this._makeCompatEvent(e);if(++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition);i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}}},this._target=e,this._handler=t,this._options=(0,n.merge)((0,n.clone)(c),i||{}),this._init()}destroy(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()}_mouseEnterHandler(e){this._unsubscribeMousemove&&this._unsubscribeMousemove();const t=this._mouseMoveHandler.bind(this);if(this._unsubscribeMousemove=()=>{this._target.removeEventListener("mousemove",t)},this._target.addEventListener("mousemove",t),this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseEnterEvent),this._acceptMouseLeave=!0}_resetClickTimeout(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_resetTapTimeout(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_mouseMoveHandler(e){if(this._mousePressed||null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseMoveEvent),this._acceptMouseLeave=!0}_touchMoveHandler(e){const t=m(e.changedTouches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t)return;if(this._lastTouchEventTimeStamp=_(e),null!==this._startPinchMiddlePoint)return;if(this._preventTouchDragProcess)return;this._pinchPrevented=!0;const i=this._touchMouseMoveWithDownInfo(u(t),(0,r.ensureNotNull)(this._touchMoveStartPosition)),{xOffset:s,yOffset:n,manhattanDistance:a}=i;if(this._touchMoveExceededManhattanDistance||!(a<5)){if(!this._touchMoveExceededManhattanDistance){const e=.5*s,t=n>=e&&!this._options.treatVertTouchDragAsPageScroll,i=e>n&&!this._options.treatHorzTouchDragAsPageScroll;t||i||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(), -this._resetTapTimeout()}if(!this._preventTouchDragProcess){const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.touchMoveEvent),(0,o.preventDefault)(e)}}}_mouseMoveWithDownHandler(e){if(0!==e.button)return;const t=this._touchMouseMoveWithDownInfo(u(e),(0,r.ensureNotNull)(this._mouseMoveStartPosition)),{manhattanDistance:i}=t;if(i>=5&&(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick){const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.pressedMouseMoveEvent)}}_touchMouseMoveWithDownInfo(e,t){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return{xOffset:i,yOffset:s,manhattanDistance:i+s}}_touchEndHandler(e){let t=m(e.changedTouches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t&&0===e.touches.length&&(t=e.changedTouches[0]),null===t)return;this._activeTouchId=null,this._lastTouchEventTimeStamp=_(e),this._clearLongTapTimeout(),this._touchMoveStartPosition=null,this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);const i=this._makeCompatEvent(e,t);if(this._processTouchEvent(i,this._handler.touchEndEvent),++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:e}=this._touchMouseMoveWithDownInfo(u(t),this._tapPosition);e<30&&!this._cancelTap&&this._processTouchEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout()}else this._cancelTap||(this._processTouchEvent(i,this._handler.tapEvent),this._handler.tapEvent&&(0,o.preventDefault)(e));0===this._tapCount&&(0,o.preventDefault)(e),0===e.touches.length&&this._longTapActive&&(this._longTapActive=!1,(0,o.preventDefault)(e))}_mouseUpHandler(e){if(0!==e.button)return;const t=this._makeCompatEvent(e);if(this._mouseMoveStartPosition=null,this._mousePressed=!1,this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),s.isFF){this._target.ownerDocument.documentElement.removeEventListener("mouseleave",this._onFirefoxOutsideMouseUp)}if(!this._firesTouchEvents(e))if(this._processMouseEvent(t,this._handler.mouseUpEvent),++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition);i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}else this._cancelClick||this._processMouseEvent(t,this._handler.mouseClickEvent)}_clearLongTapTimeout(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)}_touchStartHandler(e){if(null!==this._activeTouchId)return;const t=e.changedTouches[0];this._activeTouchId=t.identifier,this._lastTouchEventTimeStamp=_(e);const i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartPosition=u(t),this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);{const t=this._touchMoveHandler.bind(this),s=this._touchEndHandler.bind(this) -;this._unsubscribeRootTouchEvents=()=>{i.removeEventListener("touchmove",t),i.removeEventListener("touchend",s)},i.addEventListener("touchmove",t,{passive:!1}),i.addEventListener("touchend",s,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,e),240)}const s=this._makeCompatEvent(e,t);this._processTouchEvent(s,this._handler.touchStartEvent),this._tapTimeoutId||(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapPosition=u(t))}_wheelClickHandler(e){if(1!==e.button)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.wheelClickEvent)}_mouseDownHandler(e){if(0!==e.button)return;const t=this._target.ownerDocument.documentElement;s.isFF&&t.addEventListener("mouseleave",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartPosition=u(e),this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);{const e=this._mouseMoveWithDownHandler.bind(this),i=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=()=>{t.removeEventListener("mousemove",e),t.removeEventListener("mouseup",i)},t.addEventListener("mousemove",e),t.addEventListener("mouseup",i)}if(this._mousePressed=!0,this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseDownEvent),this._clickTimeoutId||(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickPosition=u(e))}_init(){this._target.addEventListener("mouseenter",this._mouseEnterHandler.bind(this)),this._target.addEventListener("touchcancel",this._clearLongTapTimeout.bind(this));{const e=this._target.ownerDocument,t=e=>{this._handler.mouseDownOutsideEvent&&(e.target&&this._target.contains(e.target)||this._handler.mouseDownOutsideEvent())};this._unsubscribeOutsideTouchEvents=()=>{e.removeEventListener("touchstart",t)},this._unsubscribeOutsideMouseEvents=()=>{e.removeEventListener("mousedown",t)},e.addEventListener("mousedown",t),e.addEventListener("touchstart",t,{passive:!0})}s.CheckMobile.iOS()&&(this._unsubscribeMobileSafariEvents=()=>{this._target.removeEventListener("dblclick",this._onMobileSafariDoubleClick)},this._target.addEventListener("dblclick",this._onMobileSafariDoubleClick)),this._target.addEventListener("mouseleave",this._mouseLeaveHandler.bind(this)),this._target.addEventListener("contextmenu",this._contextMenuHandler.bind(this)),this._target.addEventListener("touchstart",this._touchStartHandler.bind(this),{passive:!0}),(0,o.preventScrollByWheelClick)(this._target),this._target.addEventListener("mousedown",this._mouseDownHandler.bind(this)),this._target.addEventListener(l,this._wheelClickHandler.bind(this)),this._initPinch(),this._target.addEventListener("touchmove",()=>{},{passive:!1})}_initPinch(){ -void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener("touchstart",e=>this._checkPinchState(e.touches),{passive:!0}),this._target.addEventListener("touchmove",e=>{if(2===e.touches.length&&null!==this._startPinchMiddlePoint&&void 0!==this._handler.pinchEvent){const t=e.touches[0],i=e.touches[1],s=p(t,i)/this._startPinchDistance,r=d(this._target);this._handler.pinchEvent(this._startPinchMiddlePoint,{x:t.clientX-r.left,y:t.clientY-r.top},{x:i.clientX-r.left,y:i.clientY-r.top},s),(0,o.preventDefault)(e)}},{passive:!1}),this._target.addEventListener("touchend",e=>{this._checkPinchState(e.touches)}))}_checkPinchState(e){1===e.length&&(this._pinchPrevented=!1),2!==e.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(e)}_startPinch(e){if(void 0!==this._handler.pinchStartEvent){const t=d(this._target),i=e[0],s=e[1],r={x:i.clientX-t.left,y:i.clientY-t.top},n={x:s.clientX-t.left,y:s.clientY-t.top};this._startPinchMiddlePoint={x:(r.x+n.x)/2,y:(r.y+n.y)/2},this._startPinchDistance=p(i,s),this._handler.pinchStartEvent(this._startPinchMiddlePoint,r,n)}this._clearLongTapTimeout()}_stopPinch(){null!==this._startPinchMiddlePoint&&(this._startPinchMiddlePoint=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent())}_mouseLeaveHandler(e){if(this._unsubscribeMousemove&&this._unsubscribeMousemove(),this._firesTouchEvents(e))return;if(!this._acceptMouseLeave)return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseLeaveEvent),this._acceptMouseLeave=!s.CheckMobile.iOS()}_longTapHandler(e){const t=m(e.touches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t)return;const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.longTapEvent),this._processTouchEvent(i,this._handler.touchContextMenuEvent),this._cancelTap=!0,this._longTapActive=!0}_contextMenuHandler(e){if((0,o.preventDefault)(e),null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.contextMenuEvent),this._cancelClick=!0}_firesTouchEvents(e){return e.sourceCapabilities&&void 0!==e.sourceCapabilities.firesTouchEvents?e.sourceCapabilities.firesTouchEvents:_(e){ -"touchstart"!==e.type&&(0,o.preventDefault)(e)}}}}function d(e){return e.getBoundingClientRect()||{left:0,top:0}}function u(e){return{x:e.pageX,y:e.pageY}}function p(e,t){const i=e.clientX-t.clientX,s=e.clientY-t.clientY;return Math.sqrt(i*i+s*s)}function _(e){return e.timeStamp||performance.now()}function m(e,t){for(let i=0;i{"use strict";i.d(t,{navigationButtonsVisibilityKey:()=>r,property:()=>n,availableValues:()=>o,actualBehavior:()=>a});var s=i(10133);const r="NavigationButtons.visibility",{property:n,availableValues:o,actualBehavior:a}=(0,s.createVisibilityController)(r)},62428:(e,t,i)=>{"use strict";i.d(t,{property:()=>n,availableValues:()=>o,actualBehavior:()=>a});var s=i(10133),r=i(95707);const{property:n,availableValues:o,actualBehavior:a}=(0,s.createVisibilityController)("PaneButtons.visibility",r.navigationButtonsVisibilityKey)},62138:(e,t,i)=>{"use strict";i.d(t,{ActionBinder:()=>s});class s{constructor(e,t,i,s,r=null){this._property=t,this._undoModel=i,this._undoText=s,this._action=e,this.setValue(t.value()),t.subscribe(this,this._propertyChanged),null!==r?e.update({onExecute:r.bind(this)}):e.update({onExecute:this._onActionCallback.bind(this)})}destroy(){this._property.unsubscribe(this,this._propertyChanged)}value(){return this._action.isChecked()}setValue(e){this._action.update({checked:Boolean(e)})}_onActionCallback(){this._undoModel.setProperty(this._property,this.value(),this._undoText)}_propertyChanged(e){this.setValue(e.value())}}},37701:(e,t,i)=>{"use strict";i.d(t,{isCustomStudy:()=>r});const s={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0};function r(e){return e in s}},56756:(e,t,i)=>{"use strict";i.d(t,{MetaInfoHelper:()=>p});var s=i(88537),r=i(67072),n=i.n(r),o=i(50993),a=i(80643),l=i(98125);const c=["first_visible_bar_time","last_visible_bar_time"];function h(e){return!e.groupId&&!e.isHidden&&!c.includes(e.id)}var d=i(37701);const u=(0,l.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class p{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(h)}getUserEditableInputs(){return this._metaInfo.inputs.filter(h)}hasUserEditableProperties(){return n().isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,d.isCustomStudy)(e.shortId)||n().isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some(e=>void 0!==e)}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter(i=>{if((0,o.isColorerPlot)(i)||(0,o.isTextColorerPlot)(i)||(0,o.isDataOffsetPlot)(i)||(0,o.isOhlcColorerPlot)(i)||(0,o.isAlertConditionPlot)(i))return!1;if((0,o.isOhlcPlot)(i)){const r=i.target;if(e.has(r))return!1;e.add(r);const n=(0,s.ensureDefined)(t.ohlcPlots);return!(0,s.ensureDefined)(n[r]).isHidden}{const e=t.styles?t.styles[i.id]:void 0;return void 0===e||!e.isHidden}})}hasUserEditableOptions(){ -return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(m),i={..._};for(const s of t){const t=s.internalID;i[t]=s,_.hasOwnProperty(t)||u.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,a.clone)(i)}}const _={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0,use_bar_magnifier:void 0};function m(e){return"strategy_props"===e.groupId}},27772:(e,t,i)=>{"use strict";i.d(t,{checkAuthBeforeSaveLoad:()=>r});var s=i(67337);function r(e,t){s.enabled("saveload_requires_authentication")?window.runOrSignIn(e,t):e()}},9127:(e,t,i)=>{"use strict";i.d(t,{AbstractJsonStoreService:()=>n,CommonJsonStoreService:()=>o});var s=i(2872),r=i.n(s);class n{constructor(e,t,i,s,n){this._onChange=new(r()),this._handleChange=()=>{this._onChange.fire(this.get())},this._crossTabEvents=e,this._jsonKeyValueStore=t,this.CROSSTAB_EVENT_NAME=i,this.JSON_STORE_KEY=s,this.defaultStoreValue=this._serialize(n),this._subscribe()}get(){const e=this._jsonKeyValueStore.getJSON(this.JSON_STORE_KEY,this.defaultStoreValue);return this._deserialize(e)}set(e,t){const i=this._serialize(e);this._jsonKeyValueStore.setJSON(this.JSON_STORE_KEY,i,t),this._crossTabEvents.emit(this.CROSSTAB_EVENT_NAME),this._onChange.fire(e)}getOnChange(){return this._onChange}destroy(){this._unsubscribe(),this._onChange.destroy(),delete this._onChange}_subscribe(){this._crossTabEvents.on(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.subscribe(this,this._handleChange)}_unsubscribe(){this._crossTabEvents.off(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.unsubscribe(this,this._handleChange)}}class o extends n{_serialize(e){return e}_deserialize(e){return e}}},86879:(e,t,i)=>{"use strict";i.d(t,{LoadChartService:()=>d});var s=i(67337),r=i(9127);class n extends r.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})}}var o=i(43007),a=i(21097),l=i(56840),c=i(27772),h=i(22729);class d extends h.DialogRenderer{constructor(e=null){super(),this._favoriteChartsService=new n(a.TVXWindowEvents,l),this._chartWidgetCollection=null,this._promise=null,this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._getChartEntry=e=>({id:e.id,url:e.url,title:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,active:()=>this._isActiveChart(e.id),openAction:()=>o.backend.loadChart(e),deleteAction:()=>o.backend.removeChart(e.image_url).then(()=>this._deleteChart(e.id)),favoriteAction:this._updateFavorites}),this._updateFavorites=e=>this._favoriteChartsService.set(e),this._isActiveChart=e=>null!==this._chartWidgetCollection&&e===this._chartWidgetCollection.metaInfo.id.value(), -this._deleteChart=e=>{this._isActiveChart(e)&&(s.enabled("saveload_storage_customization")?null!==this._chartWidgetCollection&&this._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)},this._chartWidgetCollection=e}showLoadDialog(){(0,c.checkAuthBeforeSaveLoad)(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})}show(){this.showLoadDialog()}hide(){var e,t;null===(e=this._dialog)||void 0===e||e.hide(),null===(t=this._dialog)||void 0===t||t.visible().unsubscribe(this._subscribe)}_showLoadDialog(){(s.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):o.backend.getCharts()).then(e=>e.map(this._getChartEntry)).then(e=>{const t=this._promise=Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(5774),i.e(1112),i.e(6909),i.e(6427),i.e(5325),i.e(9837),i.e(3199),i.e(3016),i.e(1075),i.e(9811),i.e(5009)]).then(i.bind(i,9512)).then(i=>{if(this._promise===t){this._dialog&&(this._dialog.hide(),this._dialog.visible().unsubscribe(this._subscribe));const t={charts:e,favoriteChartsService:this._favoriteChartsService,chartWidgetCollection:this._chartWidgetCollection};this._dialog=new i.LoadChartDialogRenderer(t),this._dialog.visible().subscribe(this._subscribe),this._dialog.show()}})})}}},41051:(e,t,i)=>{"use strict";i.d(t,{SaveChartService:()=>v});var s=i(67337),r=i(52714),n=i.n(r),o=i(76422),a=i(68425),l=i(27772);i(94419);var c=i(28353),h=i(43007);async function d(){return!0}var u=i(3615);const p=s.enabled("confirm_overwrite_if_chart_layout_with_name_exists");class _{constructor(e,t,i){this._visibility=new(n())(!1),this._chartWidgetCollection=e,this._doSave=t,this._doLoad=i}hide(){var e;null===(e=this._hide)||void 0===e||e.call(this),this._visibility.setValue(!1)}visible(){return this._visibility.readonly()}_showRenameDialog(e,t,i,s){return(0,u.showRename)({title:this._renameDialogTitle(),text:this._renameDialogText(),maxLength:64,initValue:e,onRename:async e=>{if(!p)return void this._renameActionHandler(e,t,i,s);const{newValue:r,dialogClose:n}=e,o=(await this._doLoad()).find(e=>e.name===r);n(),void 0!==o?this._hide=await(0,u.showConfirm)({title:(0,c.t)("A layout with that name already exists"),text:(0,c.t)("A layout with that name already exists. Do you want to overwrite it?"),onConfirm:({dialogClose:e})=>{e(),this._doOverwriteExistingLayout(o.id,r,t,i,s)},onCancel:({dialogClose:e})=>{e(),this._showRenameDialog(r,t,i,s)}}):this._renameActionHandler({newValue:r,dialogClose:n},t,i,s)},onClose:()=>this._visibility.setValue(!1)})}_doSaveCurrentLayout(e,t,i,s){const r=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(t,i,()=>{this._chartWidgetCollection.metaInfo.name.setValue(r),null==s||s()})}_doOverwriteExistingLayout(e,t,i,s,r){const n=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.id.setValue(e),this._chartWidgetCollection.metaInfo.name.setValue(t),this._doSave(i,s,()=>{ -this._chartWidgetCollection.metaInfo.name.setValue(n),null==r||r()})}}class m extends _{cloneChart(){this._cloneChart().then(()=>this._visibility.setValue(!0))}show(){(0,l.checkAuthBeforeSaveLoad)(()=>this.cloneChart(),{source:"Clone chart"})}_renameDialogTitle(){return(0,c.t)("Copy Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t}){s.enabled("saveload_storage_customization")&&this._doCloneCurrentLayout(e),t()}async _cloneChart(){const e=await d();e&&(this._hide=await this._showRenameDialog(this._getInitialRenameDialogInput()))}_doCloneCurrentLayout(e){const t=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.uid.deleteValue(),this._chartWidgetCollection.metaInfo.id.deleteValue(),this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(void 0,void 0,()=>{this._chartWidgetCollection.metaInfo.name.setValue(t)})}_getInitialRenameDialogInput(){return(0,c.t)("{title} copy",{context:"ex: AAPL chart copy"}).format({title:this._chartWidgetCollection.metaInfo.name.value()})}}class g extends _{show(e,t,i){this._saveNewChart(e,t,i).then(()=>this._visibility.setValue(!0))}_renameDialogTitle(){return(0,c.t)("Save New Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t},i,s,r){this._doSaveCurrentLayout(e,i,s,r),t()}async _saveNewChart(e,t,i){await d();const s=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showRenameDialog(s,e,t,i)}}class f extends _{show(){(0,l.checkAuthBeforeSaveLoad)(()=>this._show(),{source:"Rename chart"})}_renameDialogTitle(){return(0,c.t)("Rename Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t}){this._doSaveCurrentLayout(e),t()}async _show(){await this._renameChart(),this._visibility.setValue(!0)}async _renameChart(){const e=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showRenameDialog(e)}}class v{constructor(e,t){this._autosaveTimer=null,this._watchedAutoSaveEnabled=new(n()),this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=(e,t,i,s)=>{const r=this._chartWidgetCollection;void 0!==e&&e(),this._chartSaver.saveChartSilently(e=>{var i;i=r.metaInfo.uid.value(),"/chart/"===location.pathname&&(location.href="/chart/"+i),void 0!==t&&t(e)},()=>{void 0!==i&&i()},{autoSave:Boolean(s)})},this._doLoad=()=>h.backend.getCharts(),this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new g(e,this._doSave,this._doLoad),this._renameController=new f(e,this._doSave,this._doLoad),this._saveAsController=new m(e,this._doSave,this._doLoad),this._chartChangesWatcher=new a.ChartChangesWatcher(e.undoHistory,e.lineToolsSynchronizerHasChanges,t,o),e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged)}autoSaveEnabled(){ -return this._watchedAutoSaveEnabled}destroy(){0}getCreateController(){return this._createController}getRenameController(){return this._renameController}getSaveAsController(){return this._saveAsController}cloneChart(){this._saveAsController.cloneChart()}saveChartAs(){this._saveAsController.show()}renameChart(){this._renameController.show()}saveNewChart(e,t,i){this._createController.show(e,t,i)}saveExistentChart(e,t,i){this._doSave(e,t,i)}hasChanges(){return this._chartChangesWatcher.hasChanges()}saveChartOrShowTitleDialog(e,t,i){const s=window.saver.isSaveInProcess(),r=this._chartChangesWatcher.hasChanges(),n=!!this._chartWidgetCollection.metaInfo.id.value();window.is_authenticated&&(s||!r&&n)||(0,l.checkAuthBeforeSaveLoad)(()=>{null!=this._chartWidgetCollection.metaInfo.id.value()?this.saveExistentChart(e,t,i):this.saveNewChart(e,t,i)},{source:"Save chart",sourceMeta:"Chart"})}whenReadyToSave(e){this._chartSaver.whenReadyToSave(e)}saveToJSON(){return this._chartSaver.saveToJSON()}saveChartSilently(e,t,i){this._chartSaver.saveChartSilently(e,t,i)}setAutoSaveEnabled(e){window.is_authenticated&&window.saver.isSaveInProcess()||(0,l.checkAuthBeforeSaveLoad)(()=>{this._watchedAutoSaveEnabled.setValue(e)},{source:"AutoSave chart"})}saveChartLineTools(e,t,i){return this._chartSaver.saveChartLineTools(e,t,i)}_autoSaveEnabledSettingHandler(e){0}_toggleAutoSaveEnabled(e){0}_enableAutoSave(){0}_disableAutoSave(){0}_onStateChanged(e){e?this._startAutosave():this._stopAutosave()}_startAutosave(){s.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout(()=>{this._autosaveTimer=null,this._chartWidgetCollection.metaInfo.id.value()&&this._doSave(void 0,void 0,void 0,!0)},6e4))}_stopAutosave(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)}}},13647:(e,t,i)=>{"use strict";i.d(t,{showMarketOpenStatusProperty:()=>o,restoreShowMarketOpenStatusProperty:()=>a});var s=i(32255),r=i(56840);function n(){return r.getBool("Chart.ShowMarketOpenStatus",!0)}const o=(0,s.createPrimitiveProperty)(n());function a(){o.setValue(!0),r.remove("Chart.ShowMarketOpenStatus")}r.onSync.subscribe(null,()=>o.setValue(n())),o.subscribe(null,()=>r.setValue("Chart.ShowMarketOpenStatus",o.value()))},46723:(e,t,i)=>{"use strict";i.d(t,{StudyTemplates:()=>p});var s=i(28353),r=i(43007),n=i(51768),o=i(2872),a=i.n(o),l=i(52714),c=i.n(l),h=i(3615);const d=(0,i(98125).getLogger)("Platform.StudyTemplates"),u=(0,s.t)("Do you really want to delete Study Template '{name}' ?");class p{constructor(e){this._chartWidgetCollection=e.chartWidgetCollection,this._favoriteStudyTemplatesService=e.favoriteStudyTemplatesService,window.loginStateChange.subscribe(null,r.backend.invalidateStudyTemplatesList),this._list=new(c())([]),this._onChange=new(a()),this._list.subscribe(()=>this._onChange.fire())}findRecordByName(e){return this._list.value().find(t=>t.name===e)||null}showSaveAsDialog(){const e=this._chartWidgetCollection.activeChartWidget.value().model() -;Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(7962),i.e(8986),i.e(7836),i.e(8463),i.e(9289),i.e(7427),i.e(7345),i.e(5998),i.e(7552),i.e(5804),i.e(3016),i.e(6631)]).then(i.bind(i,33165)).then(t=>{new t.StudyTemplateSaver({controller:e,onSave:e=>{this._list.setValue(e)}}).show()})}applyTemplate(e){const t=this.findRecordByName(e);null!==t?window.runOrSignIn(()=>{const e=this._chartWidgetCollection.activeChartWidget.value(),i=i=>{(0,n.trackEvent)("GUI","Load Study Template"),e.model().applyStudyTemplate(JSON.parse(i.content),t.name)};void 0!==t.id?t.is_default?r.backend.getStandardStudyTemplateContentById(t.id,i):r.backend.getStudyTemplateContentById(t.id,i):r.backend.getStudyTemplateContent(t.name).then(i)},{source:"Study templates apply"}):d.logNormal(`Template ${e} not found in cache`)}deleteStudyTemplate(e){const t=this.findRecordByName(e);null!==t?this._removeTemplate(t):d.logNormal(`Template ${e} not found in cache`)}list(){return this._list.value()}getOnChange(){return this._onChange}refreshStudyTemplateList(e){r.backend.getStudyTemplatesList().then(t=>{this._list.setValue(t),void 0!==e&&e()})}invalidate(){r.backend.invalidateStudyTemplatesList()}_removeTemplate(e){window.runOrSignIn(()=>{(0,h.showConfirm)({text:u.format({name:e.name}),onConfirm:({dialogClose:t})=>new Promise(i=>{const s=()=>{this.refreshStudyTemplateList(()=>{const s=this.list();this._list.setValue(s.filter(t=>t!==e)),this._favoriteStudyTemplatesService&&this._favoriteStudyTemplatesService.remove(e.name),i(),t()})};r.backend.invalidateStudyTemplatesList(),void 0!==e.id?r.backend.removeStudyTemplateById(e.id,s):r.backend.removeStudyTemplate(e.name).then(s)})})},{source:"Study templates delete"})}}},38318:(e,t,i)=>{"use strict";i.d(t,{canShowSpreadActions:()=>c,globalKeypressMatches:()=>h,intervalIsSupported:()=>l,parseIntervalValue:()=>a});var s=i(67337),r=i(9315),n=i(82992),o=i(29823);new RegExp("^quandl","i");function a(e){let t;t=/^[,\s]*(^[1-9][0-9]*)?\s*([hdwmst]?)\s*$/i;const i=t.exec(e)||[],s=~~i[1],r=i[2]&&i[2].toUpperCase()||null,n={qty:!s&&r?1:s,unit:r};return n.error=!s&&!r,n.intraday=!(n.error||n.unit&&"H"!==n.unit&&"S"!==n.unit&&"T"!==n.unit),n}function l(e){if(s.enabled("allow_supported_resolutions_set_only")){const t=o.Interval.normalize(e);return null!==t&&(0,r.isAvailable)(t)}{const t=a(e);if(t.error)return!1;if(t.intraday)return n.linking.intraday.value();{const e=n.linking.supportedResolutions.value();return!e||null!==t.unit&&!!~e.indexOf(t.unit)}}}function c(){let e=!1;return s.enabled("show_spread_operators")&&(e=!0),e}function h(e){return!e.ctrlKey&&(!e.metaKey&&(!!e.charCode&&(!(!e.which||e.which<=32)&&(null===e.target||!/^(input|textarea)$/i.test(e.target.tagName)))))}},11181:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(7962),i.e(8986),i.e(7836),i.e(3921),i.e(5774),i.e(2153),i.e(9837),i.e(3199),i.e(3016),i.e(2301),i.e(1754)]).then(i.bind(i,89324))}i.d(t,{loadNewSymbolSearch:()=>s})},92033:(e,t,i)=>{"use strict";i.d(t,{tradingService:()=>n});var s=i(16216);const r={ -id:"TradingService"};function n(){return(0,s.hasService)(r)?(0,s.service)(r):null}},88060:(e,t,i)=>{"use strict";i.d(t,{TradingViewApiBase:()=>S});var s=i(88537),r=i(82992),n=i(67337),o=i(51768),a=i(6087),l=i(45345),c=i(2872),h=i.n(c);class d{constructor(e){this._toolbarThemeChanged=new(h()),this._onWatchedThemeChanged=e=>{this._toolbarThemeChanged.fire(e)},this._opts=e,l.watchedTheme.subscribe(this._onWatchedThemeChanged)}destroy(){l.watchedTheme.unsubscribe(this._onWatchedThemeChanged)}isStdTheme(){const e=this._opts.chartWidgetCollection.getAll().every(e=>(0,a.isStdTheme)((0,a.extractThemeFromModel)(e.model())));return Promise.resolve(e)}async setStdTheme(e,t=!0,i){await(0,a.loadTheme)(this._opts.chartWidgetCollection,{themeName:e,standardTheme:!0,syncState:t,noUndo:i})}setStdThemeForLayout(e,t=!0){(0,l.setTheme)(e),t&&(0,a.syncTheme)()}getCurrentThemeName(){return(0,a.getCurrentTheme)().name}toolbarThemeChanged(){return this._toolbarThemeChanged}}var u=i(16906),p=i(85733),_=i(52714),m=i.n(_),g=i(88564);const f=new(h());function v(){throw new Error("not implemented")}class S{constructor(e){this._studyTemplatesDrawer=null,this._fontIconsSettingsDrawer=null,this._favoriteDrawingsToolbar=null,this._themesApi=null,this._newsApiDeferredPromise=null,this._newsApiRejectionReason=null,this._watchlistApiDeferredPromise=null,this._watchlistApiRejectionReason=null,this._widgetbarApiDeferredPromise=null,this._widgetbarApiRejectionReason=null,this._isDestroyed=!1,this._widgebarApi=null,this._magnetEnabledWatchedValue=null,this._magnetModeWatchedValue=null;const{chartApiInstance:t,chartWidgetCollection:i,studyMarket:s,financialsDialog:n,saveChartService:o,loadChartService:a,sharingChartService:l=null}=e;this._chartWidgetCollection=i,this._studyMarket=s,this._financialsDialog=n,this._saveChartService=o,this._sharingChartService=l,this._loadChartLayoutDialog=a,this._intervalsService=null,this._alertsWidgetDialog=null,this._detailsDialogController=null,this._supportedChartStylesSpawn=r.linking.supportedChartStyles.spawn(),this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(null,()=>this.destroy(),!0)}destroy(){var e,t,i;this._supportedChartStylesSpawn.destroy(),null===(e=this._intervalsService)||void 0===e||e.destroy(),null===(t=this._themesApi)||void 0===t||t.destroy(),null===(i=this._widgebarApi)||void 0===i||i.destroy(),this._widgetbarApiRejectionReason="This ITradingViewApi instance has been destroyed",this._isDestroyed=!0}themes(){return null===this._themesApi&&(this._themesApi=new d({chartWidgetCollection:this._chartWidgetCollection})),this._themesApi}dialogs(){var e,t,i,s,r,n;return{Indicators:this._studyMarket,Financials:this._financialsDialog,Compare:this._chartWidgetCollection.getCompareDialogRenderer(),ObjectsTree:null,ChartProperties:this._chartWidgetCollection.getChartPropertiesDialogRenderer(),ChartLayoutSaveAs:null!==(t=null===(e=this._saveChartService)||void 0===e?void 0:e.getSaveAsController())&&void 0!==t?t:null, -ChartLayoutRename:null!==(s=null===(i=this._saveChartService)||void 0===i?void 0:i.getRenameController())&&void 0!==s?s:null,ChartLayoutCreate:null!==(n=null===(r=this._saveChartService)||void 0===r?void 0:r.getCreateController())&&void 0!==n?n:null,ChartLayoutLoad:this._loadChartLayoutDialog,Alerts:this._alertsWidgetDialog,Details:this._detailsDialogController,FinancialsCharts:null}}studyTemplatesDrawerApi(){v()}fontIconsSettingsDrawer(){v()}intervalsService(){v()}supportedChartTypes(){return this._supportedChartStylesSpawn}setBrokerName(e){this._chartWidgetCollection.setBroker(e)}drawOnAllChartsMode(e){(0,p.drawOnAllChartsMode)().setValue(e)}disableTrackingEvents(){(0,o.disableTrackingEvents)()}setSymbolSearchUI(e){v()}setLayout(e,t){(null==t?void 0:t.withUndo)?this._chartWidgetCollection.setChartLayoutWithUndo(e):this._chartWidgetCollection.setLayout(e)}selectLineTool(e,t){if(!u.supportedLineTools[e])return;const i=u.supportedLineTools[e].name;if("icon"===e){const e=null==t?void 0:t.icon;void 0!==e&&p.iconTool.setValue(e)}p.tool.setValue(i)}favoriteDrawingsToolbar(){return i.e(5551).then(i.bind(i,88823)).then(e=>(this._favoriteDrawingsToolbar||(this._favoriteDrawingsToolbar=new e.FavoriteDrawingsApi),this._favoriteDrawingsToolbar))}sharingChart(){return this._sharingChartService}watchlist(){v()}setWatchlistApiPromise(e){v()}news(){v()}setNewsApiPromise(e){v()}widgetbar(){v()}setWidgetbarApiPromise(e){v()}setDebugMode(e){n.setEnabled("charting_library_debug_mode",e)}setFeatureEnabled(e,t){n.setEnabled(e,t)}magnetEnabled(){return null===this._magnetEnabledWatchedValue&&(this._magnetEnabledWatchedValue=new(m())((0,p.properties)().childs().magnet.value()),this._magnetEnabledWatchedValue.subscribe(e=>{(0,g.saveDefaultProperties)(!0),(0,p.properties)().childs().magnet.setValue(e),(0,g.saveDefaultProperties)(!1)}),(0,p.properties)().childs().magnet.subscribe(this,()=>{(0,s.ensureNotNull)(this._magnetEnabledWatchedValue).setValue((0,p.properties)().childs().magnet.value())})),this._magnetEnabledWatchedValue}magnetMode(){return null===this._magnetModeWatchedValue&&(this._magnetModeWatchedValue=new(m())((0,p.properties)().childs().magnetMode.value()),this._magnetModeWatchedValue.subscribe(e=>{(0,g.saveDefaultProperties)(!0),(0,p.properties)().childs().magnetMode.setValue(e),(0,g.saveDefaultProperties)(!1)}),(0,p.properties)().childs().magnetMode.subscribe(this,()=>{(0,s.ensureNotNull)(this._magnetModeWatchedValue).setValue((0,p.properties)().childs().magnetMode.value())})),this._magnetModeWatchedValue}flushBufferedData(){f.fire()}}},28399:(e,t,i)=>{"use strict";var s=i(2872),r=i(52714),n=i(82992).linking,o=(i(81836).createDeferredPromise, -i(21269)),a=i(42060).layouts,l=i(76422),c=i(97056).ContextMenuManager,h=i(85733),d=i(9315),u=i(43007).backend,p=i(98125),_=i(3615).showWarning,m=i(3615).showConfirm,g=i(16906),f=i(52092).CLOSE_POPUPS_AND_DIALOGS_COMMAND,v=i(29823).Interval,S=i(88564).saveDefaultProperties,y=i(68425).ChartChangesWatcher,b=i(88060).TradingViewApiBase,w=i(67072),C=i(152).getStudyInputsInfo,P=i(70120).getStudyStylesInfo;e.exports=class extends b{constructor(e){const{chartWidgetCollection:t,saveChartService:i,loadChartService:r,sharingChartService:o,alertsDispatcher:a,supportTicketData:l,favoriteServices:c,chartApiInstance:h=null,studyMarket:d=null,financialsDialog:u=null}=e;super({chartApiInstance:h,chartWidgetCollection:t,studyMarket:d,financialsDialog:u,saveChartService:i,loadChartService:r,sharingChartService:o}),this._chartApiInstance=h,this._loadChartService=r,this._alertsDispatcher=a,this._supportTicketData=l,this._favoriteServices=c,this._proxyWatchListChangedDelegate=null,this._lockDrawingsWatchedValue=null,this._hideDrawingsWatchedValue=null,this._hideIndicatorsWatchedValue=null,this._magnetEnabledWatchedValue=null,this._magnetModeWatchedValue=null,this._replayApi=null,this._chartChangesWatcher=null,this._hasChartChangesWatchedValue=null,this._getDataSourceHub=function(){return t.activeChartWidget.value().model().model()},this._chartWidgetCollection.getResizerDetacher=function(){return t.activeChartWidget.value().getResizerDetacher()},this._alertService=this._alertsDispatcher?new(void 0)(this._alertsDispatcher,this._getDataSourceHub):null,this._activeChangedChangedDelegate=new s,this._chartWidgetCollection.activeChartWidget.subscribe(function(){this._activeChangedChangedDelegate.fire()}.bind(this)),this._chartWidgets=new WeakMap,this._activateChart=function(e){t.activeChartWidget.setValue(e)},this.linking=n}subscribe(e,t){l.subscribe(e,t)}unsubscribe(e,t){l.unsubscribe(e,t)}onContextMenu(e){l.subscribe("onContextMenu",(function(t){t.callback(e(t.unixtime,t.price))}))}onGrayedObjectClicked(e){l.subscribe("onGrayedObjectClicked",e)}activeChart(){return this._getChartWidgetApi(this._chartWidgetCollection.activeChartWidget.value())}_getChartWidgetApi(e){var t=this._chartWidgets.get(e);return void 0===t&&(t=new o(e,this._activateChart.bind(null,e)),this._chartWidgets.set(e,t)),t}onActiveChartChanged(){return this._activeChangedChangedDelegate}changeSymbol(e,t,i){n.interval.setValue(v.normalize(t)),n.symbol.setValue(e),i&&this.activeChart().onDataLoaded().subscribe(null,i,!0)}layout(){return this._chartWidgetCollection.layout.value()}layoutName(){return this._chartWidgetCollection.metaInfo.name.value()}layoutNameWatchedValue(){return this._chartWidgetCollection.metaInfo.name.readonly()}layoutSettingsDrawer(){throw new Error("not implemented")}chartsCount(){return a[this.layout()].count}viewMode(){throw new Error("not implemented")}viewModeWatchedValue(){throw new Error("not implemented")}setForceFullscreenMode(){throw new Error("not implemented")}setMultichartMode(){throw new Error("not implemented")}setActiveChart(e){ -throw new Error("not implemented")}chart(e){if(void 0===e&&(e=0),e<0||e>=this.chartsCount())throw Error("Incorrect index: "+e);return this._getChartWidgetApi(this._chartWidgetCollection.getAll()[e])}getSymbolInterval(e){var t={symbol:n.symbol.value(),interval:n.interval.value()};return e&&e(t),t}saveChart(e){if(this._saveChartService){var t=this;this._saveChartService.whenReadyToSave((function(){var i=t._saveChartService.saveToJSON();return e&&e(JSON.parse(i.content))}))}}loadChart(e){this._chartApiInstance.disconnect(),this._chartWidgetCollection.loadContent(e.json),this._chartWidgetCollection.purgeUnusedWidgets(),e.extendedData&&(this._chartWidgetCollection.metaInfo.id.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.uid.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.name.setValue(e.extendedData.name)),this._chartApiInstance.connect(),n.symbol.setValue(this.activeChart().symbol()),l.emit("chart_loaded")}getStudiesList(){return this._chartApiInstance.allStudiesMetadata().filter((function(e){return!e.is_hidden_study})).map((function(e){return e.description}))}getStudyInputs(e){{const t=w.findStudyMetaInfoByDescription(this._chartApiInstance.allStudiesMetadata(),e);return C(t)}}getStudyStyles(e){{const t=w.findStudyMetaInfoByDescription(this._chartApiInstance.allStudiesMetadata(),e);return P(t)}}getSavedCharts(e){u.getCharts().then(e)}loadChartFromServer(e){u.loadChart(e)}saveChartToServer(e,t,i){this._saveChartService&&this._saveChartService.saveChartSilently(e,t,i)}setAutosave(e){this._saveChartService&&this._saveChartService.autoSaveEnabled().setValue(e)}removeChartFromServer(e,t){u.removeChart(e).then(t)}getIntervals(){var e=[],t=d.getCustomResolutions();return null!==this._chartApiInstance&&(e=this._chartApiInstance.defaultResolutions()),d.mergeResolutions(e,t)}closePopupsAndDialogs(){c.hideAll(),l.emit(f)}selectedLineTool(){for(var e=Object.keys(g.supportedLineTools),t=h.tool.value(),i=0;i{"use strict";i.d(t,{addPlusButtonProperty:()=>o,restoreAddPlusButtonSettingsValue:()=>a});var s=i(56840),r=i(32255);function n(){return s.getBool("add_plus_button",!0)}const o=(0,r.createPrimitiveProperty)(n());function a(){o.setValue(!0),s.remove("add_plus_button")}s.onSync.subscribe(null,()=>o.setValue(n())),o.listeners().subscribe(null,()=>s.setValue("add_plus_button",o.value()))},20165:(e,t,i)=>{"use strict";i.d(t,{alignToStep:()=>n});var s=i(60521),r=i.n(s);function n(e,t){return r()(e).div(t).round(0,r().roundHalfUp).mul(t).toNumber()}},44419:(e,t,i)=>{"use strict";i.d(t,{AppliedTimeFrame:()=>r});var s=i(40144);class r{constructor(e){this._appliedTimeFrame=new s.WatchedObject(null),this._appliedTimeFrameInfo=null,this._appliedTimeFrameChangedBound=this._appliedTimeFrameChanged.bind(this),this._model=e,e.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),this._appliedTimeFrame.subscribe(this._appliedTimeFrameChangedBound)}destroy(){this._appliedTimeFrame.unsubscribe(this._appliedTimeFrameChangedBound),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.mainSeries().dataEvents().seriesTimeFrame().unsubscribeAll(this)}appliedTimeFrame(){return this._appliedTimeFrame}_appliedTimeFrameChanged(){this._model.timeScale().logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame)}_onSeriesTimeFrame(e,t,i,s){if(s){const e=this._model.timeScale();this._appliedTimeFrameInfo={logicalRange:e.logicalRange(), -baseIndex:e.baseIndex()},e.logicalRangeChanged().subscribe(this,this._invalidateAppliedTimeFrame)}}_invalidateAppliedTimeFrame(){if(null===this._appliedTimeFrameInfo)return;const e=this._model.timeScale(),t=e.logicalRange(),i=e.baseIndex(),s=this._appliedTimeFrameInfo.logicalRange,r=this._appliedTimeFrameInfo.baseIndex;(null===t||null===s||Math.abs(i-t.left()-(r-s.left()))>=.01||Math.abs(i-t.right()-(r-s.right()))>=.01)&&this._appliedTimeFrame.setValue(null)}}},67396:(e,t,i)=>{"use strict";i.d(t,{defaultsPreferencesByWhiteList:()=>P,preferencesByWhiteList:()=>C});var s=i(80643),r=i(27759);var n=i(98125),o=i(3825),a=i(59803),l=i(47484),c=i(15840),h=i(49642);const d=(0,n.getLogger)("Chart.ApplyPreferencesToAllCharts"),u={color:"",style:0},p={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1,isInverted:!1,indexedTo100:!1},_={backgroundType:h.ColorType.Solid,background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,rightOffset:0,horzGridProperties:(0,c.deepExtend)({},u),vertGridProperties:(0,c.deepExtend)({},u),crossHairProperties:(0,c.deepExtend)({},{color:"",style:0,transparency:0,width:0}),legendProperties:(0,c.deepExtend)({},{showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showBarChange:!0,showVolume:!1,showBackground:!0,backgroundTransparency:0}),axisProperties:(0,c.deepExtend)({},p),separatorColor:""},m={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:o.PriceAxisLastValueMode.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},g={...m},f={visible:!1,futureOnly:!1,breaks:(0,c.deepExtend)({},{color:"",visible:!1,style:0,width:0})},v={style:0,minTick:"",showPriceLine:!1,priceLineWidth:0,priceLineColor:"",baseLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,sessionId:"regular",prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,showContinuousContractSwitches:!1,showContinuousContractSwitchesBreaks:!1,dividendsAdjustment:!1,backAdjustment:!1,settlementAsClose:!0,statusViewStyle:(0,c.deepExtend)({},{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"}),priceAxisProperties:(0,c.deepExtend)({},p),highLowAvgPrice:(0,c.deepExtend)({},{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLabelVisible:!1,averageClosePriceLineVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:0,averagePriceLineColor:"",averagePriceLineWidth:0}),candleStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",barColorsOnPrevClose:!1 -}),hollowCandleStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:""}),barStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0}),lineStyle:(0,c.deepExtend)({},{color:"",linestyle:0,linewidth:0,styleType:0}),areaStyle:(0,c.deepExtend)({},{color1:"",color2:"",linecolor:"",linestyle:0,linewidth:0,transparency:0}),baselineStyle:(0,c.deepExtend)({},{topFillColor1:"",topFillColor2:"",bottomFillColor1:"",bottomFillColor2:"",topLineColor:"",bottomLineColor:"",baselineColor:"",topLineWidth:0,bottomLineWidth:0,transparency:0,baseLevelPercentage:0}),hiloStyle:(0,c.deepExtend)({},{color:"",showBorders:!1,borderColor:"",showLabels:!1,labelColor:"",fontSize:0,drawBody:!0}),haStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{}}),renkoStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",wickUpColor:"",wickDownColor:"",inputs:{boxSize:0,style:"",atrLength:0,wicks:!1,sources:"",source:""}}),pbStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",inputs:{source:"",lb:0}}),kagiStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{style:"",atrLength:0,reversalAmount:0}}),pnfStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{reversalAmount:0,boxSize:0,style:"",atrLength:0}}),rangeStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",thinBars:!1,inputs:{range:0,phantomBars:!1}}),columnStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1})},S={priceScaleSelectionStrategyName:"auto",timeScale:(0,c.deepExtend)({},{defaultRightOffset:0}),mainSeries:(0,c.deepExtend)({},v),sessions:(0,c.deepExtend)({},l.sessionsPreferencesDefault),paneProperties:(0,c.deepExtend)({},_),chartEventsSourceProperties:(0,c.deepExtend)({},f),tradingProperties:(0,c.deepExtend)({},r.tradingPreferencesDefault)},y={timezone:"",scalesProperties:(0,c.deepExtend)({},g),...S},b={scalesProperties:(0,c.deepExtend)({},m),...S};function w(e,t,i,r,n=!0){if(void 0===t[e])return d.logDebug(`We haven't had this property ${r}.${e} yet, please, remove it from whiteList`),null;if((0,s.isObject)(i[e])){const s=Object.keys(i[e]);let o="";return s.map(s=>({[s]:w(s,t[e],i[e],`${r}.${e}`,n)})).reduce((e,t)=>(o=Object.keys(t)[0],e[o]=t[o],e),{})}return n?t[e].value():t[e]}function C(e,t,i=y){const s={timezone:"",priceScaleSelectionStrategyName:"auto",timeScale:{ -defaultRightOffset:e.timeScale().defaultRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),a=Object.keys(n),l=t.properties(),c=e.properties(),h=i.sessions,d=Object.keys(h),u=e.sessions().properties();return a.forEach(e=>{s.mainSeries[e]=w(e,l,n,"mainSeries")}),d.forEach(e=>{s.sessions[e]=w(e,u,h,"sessions")}),o.forEach(e=>{r.includes(e)||(s[e]=w(e,c,i,"preferences"))}),s}function P(e,t,i=b){const s={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue()},mainSeries:{},sessions:(0,c.deepExtend)({},l.sessionsPreferencesDefault),paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),h=Object.keys(n),d=(0,a.factoryDefaults)("chartproperties.mainSeriesProperties"),u=(0,a.factoryDefaults)("chartproperties");return h.forEach(e=>{s.mainSeries[e]=w(e,d,n,"mainSeries",!1)}),o.forEach(e=>{r.includes(e)||(s[e]=w(e,u,i,"preferences",!1))}),s}},87426:(e,t,i)=>{"use strict";i.d(t,{axisLabelBackgroundColor:()=>r});var s=i(45112);const r={common:s.colorsPalette["color-tv-blue-500"],active:s.colorsPalette["color-tv-blue-800"]}},65862:(e,t,i)=>{"use strict";i.d(t,{createDwmAligner:()=>c,isAlignmentEnabled:()=>h,createTimeToBarTimeAligner:()=>d});var s=i(10480),r=i(67337),n=i(29823),o=i(29617),a=i(69177);const l=new o.SessionInfo("Etc/UTC","0000-0000:1234567");function c(e,t){if(!h()||!n.Interval.isDWM(e))return null;const i=new o.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),r=(0,a.newBarBuilder)(e,i,l);return{timeToSessionStart:e=>r.tradingDayToSessionStart(e),timeToExchangeTradingDay:e=>{const t=s.utc_to_cal(i.timezone,e),r=i.spec.correctTradingDay(t);return s.set_hms(r,0,0,0,0,s.get_timezone("Etc/UTC")),r.getTime()}}}function h(){return!r.enabled("disable_resolution_rebuild")}function d(e,t){if(!h())return e=>e;const i=new o.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),s=(0,a.newBarBuilder)(e,i,i,!1);return e=>s.alignTimeIfPossible(e)}},29617:(e,t,i)=>{"use strict";i.d(t,{SessionInfo:()=>o,BarBuilderBase:()=>a});var s=i(10480),r=i(68684),n=i(90388);class o{constructor(e,t,i,s){this.init(e,t,i,s),this._state={timezone:e,spec:t,holidays:i,corrections:s}}init(e,t,i,r){this.timezone=s.get_timezone(e),this.spec=new n.SessionSpec(e,t,i,r)}state(){return this._state}static fromState(e){return new o(e.timezone,e.spec,e.holidays,e.corrections)}}class a{alignTime(e){if(isNaN(e))return NaN;let t=this.indexOfBar(e);return t===r.SessionStage.POST_SESSION&&(this.moveTo(e),t=this.indexOfBar(e)),t<0?NaN:this.startOfBar(t)}}},69177:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SessionInfo:()=>o.SessionInfo,alignExchangeTimeToSessionStartAndReturnUTC:()=>P,alignPeriodsBackForDataRequest:()=>y,alignPeriodsBackForVisibleRange:()=>b,getPeriodsBetweenDates:()=>C,isTradingNow:()=>T,newBarBuilder:()=>S}) -;var s=i(10480),r=i(29823),n=i(64514),o=i(29617),a=i(68684);class l extends o.BarBuilderBase{constructor(e,t){super(),this._sessionStartMs=-Number.MAX_VALUE,this._sessionEndMs=-Number.MAX_VALUE,this._periodSec=e,this._session=t}alignTimeIfPossible(e){const t=this.alignTime(e);return isNaN(t)?e:t}indexOfBar(e){return e=this._sessionEndMs?a.SessionStage.POST_SESSION:(0,n.toInt)(s.time_seconds_diff(e,this._sessionStartMs)/this._periodSec)}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._session.timezone,this._sessionStartMs-1),t=this._session.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._session.timezone,t)}if(e===a.SessionStage.POST_SESSION)return this._sessionEndMs;if(e<0)throw new Error("Negative offset is not supported");return this._sessionStartMs+s.time_seconds(this._periodSec*e)}endOfBar(e){if(e<0)throw new Error("Index cannot be negative");const t=this.startOfBar(e)+1e3*this._periodSec;return t>this._sessionEndMs?this._sessionEndMs:t}isLastBar(e,t){return t>=this._sessionStartMs+s.time_seconds(this._periodSec*(e+1)-1)}moveTo(e){const t=this._session.timezone,i=s.utc_to_cal(t,e),r=this._session.spec.alignToSessionStart(i);this._sessionStartMs=s.cal_to_utc(t,i),s.add_minutes(i,r),this._sessionEndMs=s.cal_to_utc(t,i)}indexOfLastBarInSession(){return(0,n.toInt)((this._sessionEndMs-1-this._sessionStartMs)/1e3/this._periodSec)}moveNext(){this.moveTo(this._sessionEndMs)}}var c=i(26985);function h(e,t){const i=s.clone(t),r=e.businessDaysToCalendarDays(i,1);r>1&&s.add_date(i,r-1);const n=e.leftBorderOfDailyBar(i);if(null===n)throw new Error("Cannot calculate left border of daily bar");return s.cal_to_utc(s.get_timezone(e.timezone()),n)}class d extends o.BarBuilderBase{constructor(e,t,i,s,r=!1){super(),this._periodStart=-Number.MAX_VALUE,this._periodEnd=-Number.MAX_VALUE,this._periodLastBarStart=-Number.MAX_VALUE,this._periodStartDay=new c.BusinessDay(0,0,0),this._periodEndDay=new c.BusinessDay(0,0,0),this._period=i,this._sessionTgt=e,this._builder=s,this._useBusinessDays=r,this._sessionSrc=r?new o.SessionInfo("Etc/UTC","24x7"):t||e}builder(){return this._builder}alignTimeIfPossible(e){return this.tradingDayToSessionStart(e)}tradingDayToSessionStart(e){return this.moveTo(e),this.startOfBar(0)}indexOfBar(e){if(this._useBusinessDays){const t=c.BusinessDay.fromCalendar(s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e));return t.before(this._periodStartDay)?a.SessionStage.PRE_SESSION:this._periodEndDay.before(t)?a.SessionStage.POST_SESSION:0}return e=this._periodEnd?a.SessionStage.POST_SESSION:0}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._sessionTgt.timezone,this._periodStart-1),t=this._sessionTgt.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._sessionTgt.timezone,t)-1} -return e===a.SessionStage.POST_SESSION||e>0?this._periodEnd:e===a.SessionStage.LASTBAR_SESSION?this._periodLastBarStart:this._periodStart}moveTo(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e);this._sessionSrc.spec.correctTradingDay(t);const i=s.get_year(t),r=this._indexOfPeriodInYear(t),n=r+this._period,o=this._sessionTgt.spec,a=this._sessionTgt.timezone,l=this._builder.startOfPeriod(a,r,i);this._periodStart=h(o,l);const d=s.clone(l),u=o.businessDaysToCalendarDays(d,1);u>1&&s.add_date(d,u-1),this._periodStartDay=c.BusinessDay.fromCalendar(d);const p=this._builder.startOfPeriod(a,n,i);this._periodEnd=h(o,p);const _=s.clone(p);for(s.add_date(_,-1);o.isCalWeekEnd(_);)s.add_date(_,-1);this._periodEndDay=c.BusinessDay.fromCalendar(_),s.add_date(p,-1),function(e,t){for(;e.isCalWeekEnd(t);)s.add_date(t,-1)}(this._sessionTgt.spec,p),this._periodLastBarStart=h(o,p),(this._periodLastBarStart=this._periodLastBarStart}currentRange(){return{from:this._periodStartDay,to:this._periodEndDay}}indexOfBarInYear(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e),i=s.get_year(t),r=this._builder.indexOfPeriod(t),o=this._sessionTgt.timezone;let a=this._builder.startOfPeriod(o,r,i),l=h(this._sessionTgt.spec,a);return a=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),l),i=0&&(r-=7),(0,n.toInt)((r+i)/7))}class _{indexOfPeriod(e){return s.get_day_of_year(e)-1}startOfPeriod(e,t,i){const r=s.days_per_year(i);return s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1+Math.min(t,r))}}class m extends _{constructor(e){super(),this._sessionsSpec=e}indexOfPeriod(e){return super.indexOfPeriod(e)-function(e,t){const i=p(e,t),r=s.get_cal(s.get_timezone("Etc/UTC"),s.get_year(t),s.JANUARY,1);s.add_date(r,7*i);const n=i*e.weekEndsCount()+e.holidaysFromYearStart(r),o=s.get_day_of_year(t)-s.get_day_of_year(r);return n+o-e.calendarDaysToBusinessDays(r,o)}(this._sessionsSpec,e)}startOfPeriod(e,t,i){const r=7-this._sessionsSpec.weekEndsCount(),o=Math.max(0,(0,n.toInt)(t/r)-1),a=s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1),l=s.get_days_per_year(a);if(s.add_date(a,7*o),(t-=r*o-this._sessionsSpec.holidaysFromYearStart(a))>0){const e=this._sessionsSpec.businessDaysToCalendarDays(a,t);s.add_date(a,e)}let c=s.get_day_of_year(a)-1 -;return is.get_days_per_year(r)?this.startOfPeriod(e,0,i+1):(s.add_date(r,a),r)}}class v{indexOfPeriod(e){return s.get_month(e)}startOfPeriod(e,t,i){if(t<0){const e=(0,n.toInt)((11-t)/12);i-=e,t+=12*e}else t>s.DECEMBER&&(i++,t=s.JANUARY);return s.get_cal(s.get_timezone("Etc/UTC"),i,t,1)}}function S(e,t,i,s=!1){const n=r.Interval.parse(e),o=n.multiplier();return n.isMinutes()?new l(60*o,t):n.isSeconds()?new l(o,t):n.isTicks()?new l(1,t):n.isRange()?new l(60*o,t):new d(t,i,o,function(e,t){switch(e){case r.ResolutionKind.Days:return new g(t);case r.ResolutionKind.Weeks:return new f(t);case r.ResolutionKind.Months:return new v}throw new Error("Unknown dwm resolution: "+e)}(n.kind(),t),s)}function y(e,t,i,s,r,n,o){return w(e,t,i,s,r,n,o,0)}function b(e,t,i,s,r,n,o){return w(e,t,i,s,r,n,o,1)}function w(e,t,i,s,n,a,l,c){const h=r.Interval.parse(n+s);if(h.isMonths()){const e=new Date(l);return 0===c&&e.setUTCDate(1),function(e,t){x(e,Math.floor(t/12));let i=e.getUTCMonth()-t%12;i<0&&(x(e,1),i+=12);e.setUTCMonth(i);for(;e.getUTCMonth()!==i;)I(e,1)}(e,a*h.multiplier()),e.getTime()}const d=new o.SessionInfo("Etc/UTC",e,t,i),u=h.inMilliseconds(),p=h.isDWM();let _;_=p?864e5:60*d.spec.maxTradingDayLength()*1e3;let m=0;m=h.isWeeks()?7:7-d.spec.weekEndsCount();const g=_/u,f=m*g;let v;if(a=g&&(f=_/6048e5*g),Math.ceil(f)}function P(e,t){const i=s.clone(t);return e.alignToSessionStart(i),s.cal_to_utc(s.get_timezone(e.timezone()),i)}function T(e,t){const i=s.utc_to_cal(t.timezone,+e);let r=s.get_day_of_week(i),n=s.get_minutes_from_midnight(i);const o=t.spec.findSession(t.spec.getWeekIndex(i),r,n).getEntry() -;return o.isOvernight()&&n>o.startOffset()+o.length()&&r===o.dayOfWeek()-1&&(r++,n-=1440),r===o.dayOfWeek()&&n>=o.startOffset()&&n{"use strict";i.d(t,{BusinessDay:()=>r});var s=i(10480);class r{constructor(e,t,i){this.year=e,this.month=t,this.day=i}toString(){return`${this.year}-${this.month}-${this.day}`}compareTo(e){return this.year>e.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1}before(e){return-1===this.compareTo(e)}toCalendar(e){return s.get_cal(s.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)}addDays(e){const t=this.toCalendar(s.get_timezone("Etc/UTC"));return s.add_date(t,e),r.fromCalendar(t)}static fromCalendar(e){return new r(s.get_year(e),s.get_month(e)+1,s.get_day_of_month(e))}}},68684:(e,t,i)=>{"use strict";var s;i.d(t,{SessionStage:()=>s}),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(s||(s={}))},11075:(e,t,i)=>{"use strict";i.d(t,{extrapolateBarsFrontToTime:()=>r,extrapolateBarsFrontByCount:()=>n});var s=i(68684);function r(e,t,i,s,n=!1){if(t>i){const o=r(e,i,t,s,n);return o.count=-o.count,o}return o(e,t,1,(e,t)=>t>i||0!==s&&e>s,n)}function n(e,t,i,s=!1){const r=i<0?-1:1;return o(e,t,r,(e,t)=>e>=i*r,s)}function o(e,t,i,r,n){let o=0,a=t;e.moveTo(a);let l=0,c=Number.MAX_VALUE,h=!1,d=t;const u=[];for(;!r(o,a);){if(l>15)throw new Error("Internal error 0x10 while extrapolating.");const r=e.indexOfBar(a);if(r===s.SessionStage.PRE_SESSION&&1===i)a=e.startOfBar(0),e.moveTo(a);else if(r===s.SessionStage.PRE_SESSION&&-1===i)a=e.startOfBar(s.SessionStage.PRE_SESSION),e.moveTo(a);else if(r===s.SessionStage.POST_SESSION&&1===i)a=e.startOfBar(s.SessionStage.POST_SESSION),e.moveTo(a);else{if(r===s.SessionStage.POST_SESSION&&-1===i)throw new Error("Internal error 0x12 while extrapolating.");{const p=e.startOfBar(r);if(p>t&&i>0||t>p&&i<0){if(h&&c===p)throw new Error("Internal error 0x11 while extrapolating.");h=!0,c=p,l=0,o++,d=p,n&&u.push(d)}if(0===r&&-1===i)a=p-1;else{a=e.startOfBar(r+i);const t=e.startOfBar(s.SessionStage.POST_SESSION);a>t&&(e.moveTo(t),a=e.startOfBar(0))}}}l++}return{time:d,times:u,count:o}}},37415:(e,t,i)=>{"use strict";i.d(t,{PrePostMarketBarIdentifier:()=>n});var s=i(10480);function r(e,t){return null!==t&&t.to>e&&e>=t.from}class n{constructor(e,t,i,s){this._timezone=e,this._regularSessionSpec=t,this._preMarketSessionSpec=i,this._postMarketSessionSpec=s}getPreAndPostMarketTimes(e){if(0===e.length)return{preMarket:[],postMarket:[]};const t=[],i=[];let r=null,n=null,o=e[0],a=(0,s.utc_to_cal)(this._timezone,o);this._isInPreMarketSession(a)&&(n=o);for(let l=1;l{"use strict";i.d(t,{SessionSpec:()=>f});var s=i(10480),r=i(55257),n=i(26985);function o(e,t){return e.compareTo(t)}class a{constructor(e,t,i){this._dayOfWeek=e,this._start=t,this._length=i}start(){return this._start+s.minutesPerDay*this.sessionStartDaysOffset()}startOffset(){return this._start}sessionStartDaysOffset(){return this._start>=0?0:this._start%s.minutesPerDay==0?-Math.ceil(this._start/s.minutesPerDay):-Math.floor(this._start/s.minutesPerDay)}sessionEndDaysOffset(){const e=this._start+this._length;return e>=0?0:e%s.minutesPerDay==0?-Math.ceil(e/s.minutesPerDay):-Math.floor(e/s.minutesPerDay)}isOvernight(){return this._start<0}dayOfWeek(){return this._dayOfWeek}sessionStartDayOfWeek(){let e=this._dayOfWeek-this.sessionStartDaysOffset();return es.SATURDAY&&(e=1),e}length(){return this._length}weight(){return this._dayOfWeek*s.minutesPerDay+this._start}compareTo(e){const t=this.weight(),i=t+this._length,s=e.weight(),r=s+e._length;return t<=s&&ss?1:-1}contains(e){const t=60*s.get_hours(e)+s.get_minutes(e);let i=s.get_day_of_week(e)-this._dayOfWeek;i>0&&(i-=7);const r=i*s.minutesPerDay+t;return r>=this._start&&r=48&&e<=57}class _{constructor(){this.entries=[],this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1,this.maxTradingDayLength=0}parseSessions(e,t){var i;let s=!1;this._clear(),this.timezone=e;const{hasErrors:r,spec:n}=this._parseFirstDayOfWeek(t);if("24x7"===n.toLowerCase())for(const e of d)this.entries.push(_._createSessionEntry(e,0,0,0,0));else{let e=!1;const t=new Map;for(const i of n.split("|")){const r=i.split(":");if(1!==r.length&&2!==r.length){s=!0,u.logError("Bad session section: "+i);continue}const n=1===r.length;if(n){if(e){s=!0,u.logError("Duplicated default section: "+i);continue}e=!0}const o=n?h:_._parseWorkingDays(r[1]);for(const e of o)n&&t.has(e)||t.set(e,r[0])}for(const e of d){const i=t.get(e);if(void 0!==i)for(const t of i.split(",")){ -const{hasErrors:i,sessionEntry:r}=_._parseSessionEntry(e,t);i&&(s=i),this.entries.push(r)}}}this.entries.sort(o);const a=new Map;for(const e of this.entries){const t=e.dayOfWeek();a.set(t,e.length()+(null!==(i=a.get(t))&&void 0!==i?i:0))}return this.maxTradingDayLength=0,a.forEach(e=>{this.maxTradingDayLength=Math.max(this.maxTradingDayLength,e)}),this.weekEndsCount=7-a.size,s||r}static parseHolidaysAndCorrections(e,t,i){const r=new Map,n=new Map,o=e=>{const t=this._parseDay(e),i=t.toString(),s=n.get(i);return void 0!==s?s:(n.set(i,t),t)};if(""!==t){const e=[];for(const i of t.split(",")){if(8!==i.length)throw new Error("bad holiday date: "+i);const t=o(i);r.set(t,e)}}if(""===i)return r;const l=s.get_timezone("Etc/UTC");for(const e of i.split(";")){const t=e.split(":");if(2!==t.length)throw new Error("bad correction section: "+e);const i=[];if("dayoff"!==t[0])for(const e of t[0].split(","))i.push(this._parseSessionEntry(1,e).sessionEntry);for(const e of t[1].split(",")){if(8!==e.length)throw new Error("bad correction date: "+e);const t=o(e),n=s.get_day_of_week(s.get_cal(l,t.year,t.month-1,t.day)),c=[];for(const e of i)c.push(new a(n,e.startOffset(),e.length()));r.set(t,c)}}return r}_clear(){this.entries=[],this.timezone="",this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1}_parseFirstDayOfWeek(e){const t=e.split(";");if(t.length>2)return u.logError("Only one `first day` specification expected @ session "+e),{hasErrors:!0,spec:e};if(1===t.length)return{hasErrors:!1,spec:e};let i=1;let r=t[0].indexOf("-")>=0?NaN:parseInt(t[0]);return isNaN(r)&&(i=0,r=parseInt(t[1])),rs.SATURDAY?(u.logError(`Unexpected day index @ session: ${e}; day index ${r}`),{hasErrors:!0,spec:e}):(this.firstDayOfWeek=r,{hasErrors:!1,spec:t[i]})}static _parseDay(e){const t=parseInt(e.substring(0,4)),i=parseInt(e.substring(4,6)),s=parseInt(e.substring(6,8));return new n.BusinessDay(t,i,s)}static _parseSessionEntry(e,t){let i=!1,s=t.split("-");2!==s.length&&(i=!0,u.logError("Bad sessions entry: "+t),s=["0000","0000"]);let r=0,n=s[0];if(n.includes("F")){const e=n.split("F");n=e[0],r=""!==e[1]?parseInt(e[1]):1}let o=0,a=s[1];if(a.includes("F")){const e=a.split("F");a=e[0],o=""!==e[1]?parseInt(e[1]):1}if(!this._isCorrectSession(n)||!this._isCorrectSession(a))throw new Error("Incorrect entry syntax: "+t);const l=n,c=a;return{hasErrors:i,sessionEntry:this._createSessionEntry(e,_._minutesFromHHMM(l),_._minutesFromHHMM(c),r,o)}}static _isCorrectSession(e){return 4===e.length&&p(e.charCodeAt(0))&&p(e.charCodeAt(1))&&p(e.charCodeAt(2))&&p(e.charCodeAt(3))}static _parseWorkingDays(e){const t=[];for(let i=0;i0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);return new a(e,t,i-t)}}function m(e,t){return e.compareTo(t)<0}function g(e,t){const i=(0,r.lowerbound)(e,t,(e,t)=>-1===e.day.compareTo(t));return i===e.length?null:e[i]}class f{ -constructor(e="Etc/UTC",t="0000-0000",i="",r=""){this._entries=[],this._firstDayOfWeek=s.MONDAY,this._entriesHash=new Map,this._holidayAndCorrectionMap=new Map,this._holidaySessions=[];const n=new _;n.parseSessions(e,t),this._entries=n.entries,this._timezone=n.timezone,this._spec=t,this._firstDayOfWeek=n.firstDayOfWeek,this._weekEndsCount=n.weekEndsCount,this._maxTradingDayLength=n.maxTradingDayLength;const o=_.parseHolidaysAndCorrections(e,i,r),a=s.get_timezone(e);this._isThereCorrections=""!==i||""!==r,o.forEach((e,t)=>{this._holidayAndCorrectionMap.set(t.toString(),e),this._holidaySessions.push({day:t,sessions:e});const i=this.getWeekIndex(t.toCalendar(a));this._entriesHash.set(i,null)}),this._holidaySessions.sort((e,t)=>e.day.compareTo(t.day))}entries(){return this._entries}timezone(){return this._timezone}spec(){return this._spec}firstDayOfWeek(){return this._firstDayOfWeek}addSessionEntry(e,t,i,r,n){0===i&&(i=s.minutesPerDay),r===n&&i<=t&&(r+=1),r>0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);const o=i-t;this._entries.push(new a(e,t,o))}longestSessionLength(){let e=0,t=0;for(const t of this._holidaySessions)t.sessions.forEach(t=>{e=Math.max(e,t.length())});return this._entries.forEach(e=>{t=Math.max(t,e.length())}),Math.max(e,t)}isWeekEnd(e){const t=(0,r.lowerbound)(this._entries,new a(e,0,0),(e,t)=>e.dayOfWeek()this._entries.length-1||this._entries[t].dayOfWeek()!==e}isCalWeekEnd(e){const t=s.get_day_of_week(e);if(!this._isThereCorrections)return this.isWeekEnd(t);const i=n.BusinessDay.fromCalendar(e),r=this._holidayAndCorrectionMap.get(i.toString());return void 0===r?this.isWeekEnd(t):0===r.length}hasWeekEnds(){return this.weekEndsCount()>0}weekEndsCount(){return this._weekEndsCount}maxTradingDayLength(){return this._maxTradingDayLength}holidaysFromYearStart(e){if(!this._isThereCorrections)return 0;const t=s.get_timezone(this._timezone),i=new n.BusinessDay(s.get_year(e),s.JANUARY,1),r=n.BusinessDay.fromCalendar(e);let o=0;const a=this._selectHolidays(i,r);for(let e=0;et.start()%e==0&&t.length()%e==0)}indexOfSession(e,t,i){const n=this._getEntriesForWeek(e);let o=(0,r.lowerbound)(n,new a(t,i,0),m);if(o!==n.length)return new l(e,o,n);let c=e;const h=7-t+this._firstDayOfWeek-1;for(i=-(s.minutesPerDay-i+h*s.minutesPerDay);;){c++;const e=this._getEntriesForWeek(c);if(0!==e.length)return o=(0,r.lowerbound)(e,new a(this._firstDayOfWeek,i,0),m),new l(c,o,e)}}findSession(e,t,i,s=0){const r=this.indexOfSession(e,t,i),n=r.entries;let o=r.entryIndex;if(0!==s){const e=n[o].dayOfWeek(),t=s>0?1:-1;for(;;){const i=o+t;if(i<0||i>=n.length||n[i].dayOfWeek()!==e)break;o=i}}return new l(r.weekIndex,o,n)}getWeekIndex(e){if(!this._isThereCorrections)return 0 -;const t=s.get_day_of_week(e)-s.SUNDAY,i=s.get_timezone("Etc/UTC"),r=s.get_cal(i,s.get_year(e),s.get_month(e),s.get_day_of_month(e)-t);return Math.floor((r.getTime()+621672192e5)/1e3/86400/7)}correctTradingDay(e){const t=s.get_day_of_week(e),i=60*s.get_hours(e)+s.get_minutes(e),r=this.getWeekIndex(e),n=this.findSession(r,t,i,0),o=n.getEntry().dayOfWeek()-t+7*(n.weekIndex-r);return 0!==o&&s.add_date(e,o),e}alignToSessionStart(e,t=0){const i=s.get_day_of_week(e),r=60*s.get_hours(e)+s.get_minutes(e),n=this.getWeekIndex(e),o=this.findSession(n,i,r,t),a=o.getEntry(),l=a.dayOfWeek()-i+7*(o.weekIndex-n);0!==l&&s.add_date(e,l);const c=a.startOffset();return s.set_hms(e,c/60,c%60,0,0,s.get_timezone(this._timezone)),a.length()}businessDaysToCalendarDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;oi);)e[a].dayOfWeek()=t)return n}i++,r=s.SUNDAY}return n}calendarDaysToBusinessDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;ni);)e[a].dayOfWeek()=t)return o}i++,r=s.SUNDAY}return o}alignToNearestSessionStart(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionStart.bind(this))}alignToNearestSessionEnd(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionEnd.bind(this))}leftBorderOfDailyBar(e){const t=this._getEntriesForDay(e);return 0===t.length?null:(t.sort(o),this._getLeftEntryBorder(e,t[0]))}bordersOfDailyBar(e){const t=this._getEntriesForDay(e);if(0===t.length)return null;t.sort(o);const i=this._getLeftEntryBorder(e,t[0]),r=t[t.length-1],n=s.clone(e);let a=60*(r.startOffset()+r.length())-1;const l=Math.floor(a/3600);return a-=3600*l,s.set_hms(n,l,a/60,a%60,0,s.get_timezone(this._timezone)),{from:i,to:n}}getEntriesForWeekByCalendar(e){const t=this.getWeekIndex(e);return this._getEntriesForWeek(t)}_getEntriesForWeek(e){let t=this._entriesHash.get(e);if(void 0===t)return this._entries;if(null!==t)return t;const i=s.get_timezone(this._timezone);t=this._entries.slice();const r=this._weekIndexToCalendar(e),a=this._weekIndexToCalendar(e+1),l=n.BusinessDay.fromCalendar(r),c=n.BusinessDay.fromCalendar(a),h=this._selectHolidays(l,c);for(const e of h){const r=e.day.toCalendar(i),n=s.get_day_of_week(r);t=t.filter(e=>e.dayOfWeek()!==n),t=t.concat(e.sessions)}return t.sort(o),this._entriesHash.set(e,t),t}_selectHolidays(e,t){const i=[];let s=e;for(;;){const e=g(this._holidaySessions,s);if(null===e)return i;if(!e.day.before(t))return i;i.push(e),s=e.day.addDays(1)}}_weekIndexToCalendar(e){const t=1e3*(86400*e*7+86400)-621672192e5,i=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),t),r=s.get_timezone("Etc/UTC");return s.get_cal(r,s.get_year(i),s.get_month(i),s.get_day_of_month(i))}_alignToNearestSessionValue(e,t,i){ -const r=s.get_day_of_week(e),n=60*s.get_hours(e)+s.get_minutes(e),o=this.getWeekIndex(e);let a=this.findSession(o,r,n);if(a.getEntry().contains(e)&&o===a.weekIndex||1===t)return i(a,s.clone(e),t);let c=a.entryIndex-1;if(c<0){let e=a.weekIndex,t=a.entries;for(;c<0;)e--,t=this._getEntriesForWeek(e),c+=t.length;a=new l(e,c,t)}else a=new l(a.weekIndex,c,a.entries);return i(a,s.clone(e),t)}_entrySessionStart(e,t,i){return this._entrySessionValue(e,t,i,e=>60*e.start())}_entrySessionEnd(e,t,i){return this._entrySessionValue(e,t,i,e=>60*(e.start()+e.length())-1)}_entrySessionValue(e,t,i,r){let n=s.get_day_of_week(t);const o=e.getEntry();let a=o.dayOfWeek()-o.sessionStartDaysOffset();const l=this.getWeekIndex(t);let c=e.weekIndex-l,h=!1;if(a0&&i>=0||c<0&&i<0)&&s.add_date(t,7*c),!o.contains(t)){let e=a-n;h&&i<0&&(e=-(7-a+n)),s.add_date(t,e),n=s.get_day_of_week(t)}o.isOvernight()&&n===o.dayOfWeek()&&s.add_date(t,-o.sessionStartDaysOffset());let d=r(o);const u=Math.floor(d/3600);return d-=3600*u,s.set_hms(t,u,d/60,d%60,0,s.get_timezone(this._timezone)),t}_getEntriesForDay(e){const t=s.get_day_of_week(e);return this._getEntriesForWeek(this.getWeekIndex(e)).filter(e=>e.dayOfWeek()===t)}_getLeftEntryBorder(e,t){const i=s.clone(e),r=t.startOffset();return s.set_hms(i,r/60,r%60,0,0,s.get_timezone(this._timezone)),i}}},33981:(e,t,i)=>{"use strict";var s=i(71053).PlotRowSearchMode,r=i(68906).rgbaFromInteger;function n(){this.backColorers=[]}function o(e){n.call(this),this._series=e}function a(e,t){n.call(this),this._study=e,this._plotIndex=t}n.prototype.barStyle=function(e,t,i){for(var s={},r=this.backColorers.length-1;r>=0;r--)this.backColorers[r].applyBarStyle(e,t,s,i);return this.applyBarStyle(e,t,s,i),s},n.prototype.pushBackBarColorer=function(e){this.backColorers.push(e)},n.prototype.applyBarStyle=function(e,t,i){throw new Error("This function is supposed to be reimplemented in a subclass")},inherit(o,n),o.upColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.upColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.upColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.upColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.upColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.topLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value();case TradingView.Series.STYLE_COLUMNS:return e.columnStyle.upColor.value()}throw new Error("Unknown series style")},o.downColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.downColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.downColor.value() -;case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.downColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.downColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.bottomLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value();case TradingView.Series.STYLE_COLUMNS:return e.columnStyle.downColor.value()}throw new Error("Unknown series style")},o.prototype._applyLineStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyAreaStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyBarStyle=function(e,t,i,s,r){var n=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,s);if(r.barStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,s);i.barColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a}else i.barColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a},o.prototype._applyCandleStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.candleStyle.borderUpColor?r.candleStyle.borderUpColor.value():r.candleStyle.borderColor.value(),h=r.candleStyle.borderDownColor?r.candleStyle.borderDownColor.value():r.candleStyle.borderColor.value(),d=r.candleStyle.wickUpColor?r.candleStyle.wickUpColor.value():r.candleStyle.wickColor.value(),u=r.candleStyle.wickDownColor?r.candleStyle.wickDownColor.value():r.candleStyle.wickColor.value(),p=this.findBar(e,!1,s);r.candleStyle.barColorsOnPrevClose.value()&&this._series.data().first().index!==e?n=this.findPrevBar(e,!1,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u},o.prototype._applyHollowCandleStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.hollowCandleStyle.borderUpColor?r.hollowCandleStyle.borderUpColor.value():r.hollowCandleStyle.borderColor.value(),h=r.hollowCandleStyle.borderDownColor?r.hollowCandleStyle.borderDownColor.value():r.hollowCandleStyle.borderColor.value(),d=r.hollowCandleStyle.wickUpColor?r.hollowCandleStyle.wickUpColor.value():r.hollowCandleStyle.wickColor.value(),u=r.hollowCandleStyle.wickDownColor?r.hollowCandleStyle.wickDownColor.value():r.hollowCandleStyle.wickColor.value(),p=this.findBar(e,!1,s),_=this.findPrevBar(e,!1,s);n=this._series.data().first().index!==e?_[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT],i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u,i.isBarHollow=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT]},o.prototype._applyHAStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.haStyle.borderUpColor.value(),h=r.haStyle.borderDownColor.value(),d=r.haStyle.wickUpColor.value(),u=r.haStyle.wickDownColor.value(),p=this.findBar(e,t,s) -;r.haStyle.barColorsOnPrevClose.value()?n=this.findPrevBar(e,t,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u},o.prototype._applyBaseLineStyle=function(e,t,i,s,r){var n=this.findBar(e,t,s),a=r.baselineStyle,l=this._series.priceScale(),c=Math.round(l.height()*(Math.abs(100-a.baseLevelPercentage.value())/100)),h=this._series.firstValue(),d=l.coordinateToPrice(c,h);n[TradingView.CLOSE_PLOT]>d?i.barColor=o.upColor(r,t):i.barColor=o.downColor(r,t)},o.prototype._applyHiLoStyle=function(e,t,i,s,r){i.barColor=o.upColor(r,t),i.barBorderColor=r.hiloStyle.borderColor.value()},o.prototype._applyColumnStyle=function(e,t,i,s,r){var n=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,s);if(r.columnStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,s);i.color=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a}else i.color=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a;i.barColor=i.color},o.prototype.applyBarStyle=function(e,t,i,s){i||(i={}),i.barColor=null,i.barBorderColor=null,i.barWickColor=null,i.isBarHollow=null,i.isBarUp=null,i.upColor=null,i.downColor=null,i.isTwoColorBar=null,i.isMergedBar=null;var r=this._series.properties();switch(r.style.value()){case TradingView.Series.STYLE_LINE:this._applyLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_AREA:this._applyAreaStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BARS:this._applyBarStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_CANDLES:this._applyCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HOLLOW_CANDLES:this._applyHollowCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HEIKEN_ASHI:this._applyHAStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BASELINE:this._applyBaseLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HILO:this._applyHiLoStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_COLUMNS:this._applyColumnStyle(e,t,i,s,r)}return i},o.prototype.getSeriesBars=function(e){return e?this._series.nsBars():this._series.bars()},o.prototype._findBarFieldValue=function(e,t,i){var s=this.getSeriesBars(i).valueAt(e);if(null!==s)return s[t]},o.prototype.findBar=function(e,t,i){return i?i.value:this.getSeriesBars(t).valueAt(e)||[]},o.prototype.findPrevBar=function(e,t,i){if(i&&i.previousValue)return i.previousValue;var r=this._series.bars().search(e-1,s.NearestLeft,TradingView.CLOSE_PLOT);return null!==r?r.value:[]},inherit(a,n),a.prototype.getBars=function(){return this._study.series().bars()},a.prototype.firstColoredBar=function(e){for(var t=e,i=0;ie+l)return i;var c=s.styles[a.id];if(c.visible&&!c.visible.value())return i;var h=o.valueAt(e-l);if(null===h)return i;var d=h[this._plotIndex+1];if(null==d)return i;if(d=Math.round(d),n.isRGB)i.barColor=r(d),i.upColor=i.barColor,i.downColor=i.barColor;else{var u=n.plots[this._plotIndex].palette,p=s.palettes[u],_=n.palettes[u].valToIndex?n.palettes[u].valToIndex[d]:d,m=p.colors[_].color.value();i.barColor=m,i.upColor=m.color,i.downColor=m.color}return i},t.SeriesBarColorer=o,t.StudyBarColorer=a},81688:(e,t,i)=>{"use strict";i.d(t,{BarsRange:()=>r});var s=i(88537);class r{constructor(e,t){(0,s.assert)(e<=t,"The last bar in the bars range should be greater than or equal to the first bar"),this._firstBar=e,this._lastBar=t}firstBar(){return this._firstBar}lastBar(){return this._lastBar}count(){return this._lastBar-this._firstBar+1}contains(e){return this._firstBar<=e&&e<=this._lastBar}equals(e){return this._firstBar===e.firstBar()&&this._lastBar===e.lastBar()}static compare(e,t){return null===e||null===t?e===t:e.equals(t)}}},36244:(e,t,i)=>{"use strict";i.d(t,{ChartModelBase:()=>Vi});var s=i(4889),r=i(88537),n=i(86441),o=i(24377),a=i(45112),l=i(45345),c=i(6087),h=i(51768),d=i(81836),u=i(76422),p=i(11417),_=i(27759),m=i(35878),g=i(55257),f=i(14291);function v(e){return(0,f.isLineTool)(e)&&e.boundToSymbol()||!1}class S{constructor(){this._items=[],this._set=new Set,this._dataSourcesCache=null,this._customSourcesCache=null,this._lineSourcesCache=null}isEmpty(){return 0===this._items.length}add(e){if(this._items.length>0&&!v(this._items[0])&&this.clear(),v(e)){const t=(0,g.lowerbound)(this._items,e,(e,t)=>e.zorder()!(0,m.isDataSource)(e))),this._customSourcesCache}checkLineToolSelection(){this._items.forEach(e=>(0,f.isLineTool)(e)&&e.calcIsActualSymbol()),this._items=this._items.filter(e=>!(0,f.isLineTool)(e)||e.isActualSymbol()),this._invalidateCache()}remove(e){this._items=this._items.filter(t=>t!==e),this._set.delete(e),this._invalidateCache()}clear(){this._items=[],this._set.clear(),this._invalidateCache()}_invalidateCache(){this._customSourcesCache=null,this._dataSourcesCache=null,this._lineSourcesCache=null}}var y=i(31752),b=i.n(y),w=i(25270),C=i(29823),P=i(88564),T=i(2015),x=i.n(T),I=i(52640),M=i(22799) -;class L{constructor(e){this._rendererOptions={borderSize:1,offsetSize:5,fontSize:NaN,font:"",color:"",paneBackgroundColor:"",paddingBottom:0,paddingInner:0,paddingOuter:0,paddingTop:0,lineSpacing:0},this._chartModel=e}options(){const e=this._rendererOptions,t=this._chartModel.properties().childs(),i=t.scalesProperties.childs().fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=(0,I.makeFont)(i,M.CHART_FONT_FAMILY,""),e.paddingTop=2.5/12*i,e.paddingBottom=e.paddingTop,e.paddingInner=i/12*e.offsetSize,e.paddingOuter=i/12*e.offsetSize,e.lineSpacing=2/12*i),e.color=t.scalesProperties.childs().textColor.value(),e.paneBackgroundColor=t.paneProperties.childs().background.value(),this._rendererOptions}}var A=i(27982),E=i(54376),k=i(97098),D=i(59803),V=i(99305),B=i(67337),N=i(37667),R=i(47484),O=i(33291);const F=new k.PriceFormatter;class W extends V.CustomSourceBase{constructor(e,t,i){super(e,t),this._studySource=null,this._paneViews=[],this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._loadedGraphics=null,this._doubleClickHandler=i;const s=t.mainSeries();this._properties=new P.DefaultProperty("sessions"),(0,D.applyDefaultsOverrides)(this._properties.childs().graphics,void 0,!1,"sessions"),this._removeDuplicateProperties(),this._properties.subscribe(this,this._onPropertiesChanged),t.studyMetaInfoRepository().findById({type:"java",studyId:"Sessions@tv-basicstudies"}).then(i=>{this._destroyed||null===this._loadedGraphics&&(this._setMetaInfo(i),null!==this._metaInfo&&(this._studySource=new A.StudyDataSource(t.chartApi(),s.seriesSource(),"sessions_",this._metaInfo),this._createPaneViews(),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,O.dataSourceChangeEvent)(e))),this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,O.dataSourceChangeEvent)(e))),this._studySource.setInputs({}),this._processHibernate()))}),t.timeScale().onReset().subscribe(this,this._clearData),t.timeScale().logicalRangeChanged().subscribe(this,this.updateAllViews.bind(this,(0,O.viewportChangeEvent)())),t.mainSeries().sessionIdProxyProperty().subscribe(this,this._updateVisibleOfPreAndPostMarketBackground),t.mainSeries().properties().childs().interval.subscribe(this,this._processHibernate),this._updateVisibleOfPreAndPostMarketBackground(t.mainSeries().properties().childs().sessionId)}applyOverrides(e){(0,D.applyPropertiesOverrides)(this._properties.childs().graphics,void 0,!1,e,"sessions"),this._model.updateSource(this)}start(){this._isStarted=!0,this._processHibernate()}restart(){this._clearData(),B.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted}stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}paneViews(e){return this._paneViews}updateAllViews(e){this._paneViews.forEach(t=>t.update(e))}updateViewsForPane(e,t){this.updateAllViews(t)}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this), -this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.timeScale().onReset().unsubscribeAll(this),this._model.mainSeries().sessionIdProxyProperty().unsubscribeAll(this),this._model.mainSeries().properties().childs().interval.unsubscribeAll(this),this._properties.unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}graphics(){return this._loadedGraphics||(0,r.ensureNotNull)(this._studySource).graphics()}properties(){return this._properties}graphicsInfo(){return(0,r.ensureNotNull)(this._metaInfo).graphics}firstValue(e){return this._model.mainSeries().firstValue()}formatter(){return F}state(e){const t={properties:this._properties.state()};return e&&null!==this._metaInfo&&(t.data={graphics:(0,E.saveStudyGraphics)(this.graphics()),metaInfo:this._metaInfo}),t}restoreState(e,t){const i=e.properties;this._migrateOutOfSessionProperty(i),this._properties.mergeAndFire(i),this._removeDuplicateProperties(),this._updateVisibleOfPreAndPostMarketBackground(this._model.mainSeries().properties().childs().sessionId),void 0!==e.data&&t&&(this._loadStudyGraphics(e.data.graphics),this._setMetaInfo(e.data.metaInfo),this._createPaneViews())}restoreOldState(e,t){const i={properties:{graphics:e.state.graphics}};void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),this.restoreState(i,t)}applyPreferences(e){this._properties.mergePreferences(e)}metaInfo(){return(0,r.ensureNotNull)(this._metaInfo)}_loadStudyGraphics(e){const t=e.backgrounds;if(void 0!==t){const e=t.findIndex(e=>"inSession"===e.styleId);-1!==e&&t.splice(e,1)}this._loadedGraphics=(0,E.loadStudyGraphics)(e)}_setMetaInfo(e){const t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e}_updateVisibleOfPreAndPostMarketBackground(e){const t=!(0,N.isRegularSessionId)(e.value());this._outOfSessionVisibilityProperty().setValue(t),this._preMarketVisibilityProperty().setValue(t),this._postMarketVisibilityProperty().setValue(t)}_clearData(){null!==this._studySource&&this._studySource.clearData()}_createPaneViews(){const e={doubleClickHandler:this._doubleClickHandler};(0,E.createGraphicsPaneViews)(this,this._model,e).then(e=>{this._paneViews=e,this._model.lightUpdate()})}_onPropertiesChanged(){this._processHibernate(),this.updateAllViews((0,O.dataSourceChangeEvent)(this.id()))}_processHibernate(){if(null!==this._studySource){const e=this._canBeHibernated(),t=this._isHibernated(),i=this._studySource.isStarted();!t&&e&&i?this._studySource.stop():!t||e||i||this._studySource.start()}}_canBeHibernated(){const e=this._model.mainSeries(),t=this._preMarketVisibilityProperty().value()&&this._postMarketVisibilityProperty().value()&&this._outOfSessionVisibilityProperty().value();return e.isDWM()||!t&&!this._vertLinesVisibleProperty().value()}_isHibernated(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())} -_outOfSessionVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().outOfSession.childs().visible}_preMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().preMarket.childs().visible}_postMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().postMarket.childs().visible}_vertLinesVisibleProperty(){return this._properties.childs().graphics.childs().vertlines.childs().sessBreaks.childs().visible}_removeDuplicateProperties(){this._properties.hasChild("properties")&&(this._properties.removeProperty("properties"),(0,P.saveDefaultProperties)(!0),this._properties.childChanged(null),(0,P.saveDefaultProperties)(!1))}_migrateOutOfSessionProperty(e){const t=e.graphics.backgrounds;if(void 0!==t){const i=t.outOfSession;i.color===(0,r.ensureDefined)(R.sessionsPreferencesDefault.graphics.backgrounds).outOfSession.color||"postMarket"in t||(e.graphics.backgrounds={...t,postMarket:{color:i.color,transparency:i.transparency,visible:i.visible},preMarket:{color:i.color,transparency:i.transparency,visible:i.visible}})}}}var H=i(81851),z=i(2872),U=i.n(z),j=i(52714),G=i.n(j),q=i(23653),Y=i(8175),K=i(28353),$=i(98125),X=i(9423),Z=i(39593),J=i(22932),Q=i(74325),ee=i(59555);const te=new Map([["price",e=>(0,J.isPriceDataSource)(e)],["trading",e=>(0,f.isTrading)(e)],["drawing",e=>(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)&&!e.isPhantom()],["drawingsForAllSymbols",e=>(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)&&!e.isPhantom()],["phantom",e=>(0,f.isLineTool)(e)&&e.isPhantom()],["restRowSources",e=>!(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)],["leftPriceScale",(e,t)=>"left"===se(e,t)],["rightPriceScale",(e,t)=>"right"===se(e,t)],["overlayPriceScale",(e,t)=>"overlay"===se(e,t)]]),ie=new Map([["price","visibleSorted"],["trading","visibleSorted"],["drawing","visibleSorted"],["drawingsForAllSymbols","allSorted"],["phantom","visibleSorted"],["restRowSources","visibleSorted"],["leftPriceScale","visibleSorted"],["rightPriceScale","visibleSorted"],["overlayPriceScale","visibleSorted"]]);function se(e,t){const i=e.priceScale();return null===i?"overlay":t.priceScalePosition(i)}class re{constructor(e){this._groupedSources=new Map,this._sources=null,this._pane=e}clear(){this._groupedSources.clear(),this._sources=null}destroy(){this.clear()}all(){return this._groupedSources.has("visibleSorted")||this._sortSources(),(0,r.ensureDefined)(this._groupedSources.get("visibleSorted"))}allIncludingHidden(){return this._groupedSources.has("allSorted")||this._sortSources(),(0,r.ensureDefined)(this._groupedSources.get("allSorted"))}allExceptSpecialSources(){if(!this._groupedSources.has("exceptSpecial")){const e=this.allIncludingHidden().filter(e=>!e.isSpeciallyZOrderedSource());this._groupedSources.set("exceptSpecial",e)}return(0,r.ensureDefined)(this._groupedSources.get("exceptSpecial"))}tradingSources(){return this._getSourcesByGroupType("trading")}priceSources(){return this._getSourcesByGroupType("price")}lineSources(){ -return this._getSourcesByGroupType("drawing")}lineSourcesForAllSymbols(){return this._getSourcesByGroupType("drawingsForAllSymbols")}phantomSources(){return this._getSourcesByGroupType("phantom")}allExceptLineAndTradingSources(){return this._getSourcesByGroupType("restRowSources")}hitTestSources(){if(!this._groupedSources.has("hitTest")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("hitTest",e)}return(0,r.ensureDefined)(this._groupedSources.get("hitTest"))}generalSources(){if(!this._groupedSources.has("general")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("general",(0,ee.sortSources)(e))}return(0,r.ensureDefined)(this._groupedSources.get("general"))}leftPriceScalesSources(){return this._getSourcesByGroupType("leftPriceScale")}rightPriceScalesSources(){return this._getSourcesByGroupType("rightPriceScale")}overlayPriceScaleSources(){return this._getSourcesByGroupType("overlayPriceScale")}_getSourcesByGroupType(e){const t=(0,r.ensureDefined)(ie.get(e));return this._groupedSources.has(t)?this._groupedSources.has(e)||this._groupSources(e):(this._sortSources(),this._groupSources(e)),(0,r.ensureDefined)(this._groupedSources.get(e))}_sortSources(){null===this._sources&&(this._sources=this._pane.dataSources());const e=(0,ee.sortSources)(this._sources),t=e.filter(e=>!(0,f.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()&&e.isActualUnit());this._groupedSources.set("allSorted",e),this._groupedSources.set("visibleSorted",t)}_groupSources(e){const t=(0,r.ensureDefined)(ie.get(e)),i=te.get(e);if(void 0!==i){const s=(0,r.ensureDefined)(this._groupedSources.get(t)).filter(e=>i(e,this._pane));this._groupedSources.set(e,s)}}}var ne=i(28372),oe=i(22423),ae=i(69927),le=i(79680),ce=i(26161),he=i(50669),de=i(16654),ue=i(67072),pe=i.n(ue),_e=i(80643),me=i(13933);const ge=[],fe=[];class ve{constructor(e){this._studies={},this._deferreds={},this._container=e,ge.push(e),fe.push(this)}add(e,t){this._deferreds[e]&&(this._deferreds[e].resolve(t),delete this._deferreds[e]),this._studies[e]=t}get(e){return this._studies[e]?Promise.resolve(this._studies[e]):(this._deferreds[e]||(this._deferreds[e]=(0,d.createDeferredPromise)()),this._deferreds[e].promise)}reset(){const e=ge.indexOf(this._container);~e&&(ge.splice(e,1),fe.splice(e,1))}static instance(e){const t=ge.indexOf(e);return~t?fe[t]:new ve(e)}}var Se=i(66101),ye=i(97917);var be=i(36759),we=i(98802),Ce=i(95536),Pe=i(86225),Te=i(82241),xe=i(78898);const Ie=(0,$.getLogger)("Chart.Pane");function Me(e,t,i){e.setMargins({top:t,bottom:i})}class Le{constructor(e,t,i,s){this.m_dataSources=[],this._sourceWatchedValuesSubscriptions=new Map,this.m_mainDataSource=null,this._cachedOrderedSources=new re(this),this._sourcesById=new Map,this._priceSourcesById=new Map,this._sourcePropertiesChanged=new(U()),this._sourcesZOrderChanged=new(U()),this._tagsChanged=new(U()),this._stretchFactor=1e3,this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null,this._rightPriceScales=[], -this._leftPriceScales=[],this._lockedPriceScale=null,this._currentPriceScaleRatio=null,this._onPriceScalesChanged=new(U()),this._isRecalculatingScales=!1,this._priceDataSources=[],this._symbolSources=[],this._symbolSourceResolved=new(U()),this._symbolSourceResolvingActive=new(G())(!1),this._bulkActions={activeCounter:0},this._height=0,this._width=0,this._dataSourcesCollectionChanged=new(U()),this._symbolSourceCollectionChanged=new(U()),this._maximized=new(G())(!1),this._collapsed=new(G())(!1),this._destroyed=new(U()),this._executionsPositionController=null,this._recalcSymbolSourceResolvingActive=()=>{for(const e of this._symbolSources)if(e.symbolResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._onSymbolSourceCollectionChanged=()=>{0===this._bulkActions.activeCounter?this._symbolSourceCollectionChanged.fire():this._bulkActions.symbolSourceCollectionChanged=!0},this._priceScaleSelectionStrategy=(0,Q.createPriceScaleSelectionStrategy)(i.properties().childs().priceScaleSelectionStrategyName.value()),this._id=null!=s?s:(0,X.randomHashN)(6),this._timeScale=e,this.m_mainDataSource=null,this._properties=t,this._model=i,i.properties().childs().priceScaleSelectionStrategyName.subscribe(null,e=>{this._priceScaleSelectionStrategy=(0,Q.createPriceScaleSelectionStrategy)(e.value()),this._priceScaleSelectionStrategy.apply(this)}),this._timeScale.barSpacingChanged().subscribe(this,()=>{this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())}),t.childs().topMargin.subscribe(this,this._updateMargins),t.childs().bottomMargin.subscribe(this,this._updateMargins),this._updateMargins()}destroy(){this._properties.childs().topMargin.unsubscribeAll(this),this._properties.childs().bottomMargin.unsubscribeAll(this),this._model.properties().childs().priceScaleSelectionStrategyName.unsubscribeAll(this),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach(e=>{e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this)});for(const e of this.m_dataSources)this.removeSourceFromPriceScale(e),e.destroy&&e.destroy();this._destroyed.fire()}id(){return this._id}bulkActionMacro(e){const t=this._bulkActions;t.activeCounter+=1,e(),t.activeCounter-=1,0===t.activeCounter&&(this._dataSourcesCollectionChanged.fire(),t.symbolSourceCollectionChanged&&this._symbolSourceCollectionChanged.fire(),t.symbolSourceCollectionChanged=!1)}defaultPriceScale(){var e,t;const i=null!==(t=null===(e=this.m_mainDataSource)||void 0===e?void 0:e.priceScale())&&void 0!==t?t:null;if(null!==i)return i;const s=this.properties().childs().axisProperties.state();return s.autoScale=!0,new ne.PriceScale(this._model.properties().childs().scalesProperties,s)}leftPriceScales(){return this._leftPriceScales}rightPriceScales(){return this._rightPriceScales}visibleLeftPriceScales(){var e -;const t=this._model.priceScaleSlotsCount();if(this._leftPriceScales.length>t.left){const i=(0,g.moveToHead)(this._leftPriceScales,null===(e=this.mainDataSource())||void 0===e?void 0:e.priceScale());return i.splice(t.left),i}return this._leftPriceScales}visibleRightPriceScales(){var e;const t=this._model.priceScaleSlotsCount();if(this._rightPriceScales.length>t.right){const i=(0,g.moveToHead)(this._rightPriceScales,null===(e=this.mainDataSource())||void 0===e?void 0:e.priceScale());return i.splice(t.right),i}return this._rightPriceScales}clearSeries(e){const t=this._model.mainSeries();for(let i=this.m_dataSources.length-1;i>=0;i--)this.m_dataSources[i]===t&&this._removeSourceFromCollections(i,e)}sourcesByGroup(){return this._cachedOrderedSources}dataSourceForId(e){return this._sourcesById.get(e)||null}changeSourceId(e,t){(0,r.assert)(this.hasDataSource(e));const i=e.id();e.setId(t),this._sourcesById.delete(i),this._sourcesById.set(t,e),(0,J.isPriceDataSource)(e)&&(this._priceSourcesById.delete(i),this._priceSourcesById.set(t,e))}movePriceScale(e,t,i){const s=this.priceScalePosition(e);if(s!==t)this.removePriceScale(e),this._placePriceScale(e,t,i),e.invalidateMargins(),this._invalidateSourcesCache();else if(void 0!==i&&"overlay"!==s){const t="left"===s?this._leftPriceScales:this._rightPriceScales,r=t.indexOf(e);t.splice(r,1),t.splice(i,0,e)}}mainDataSource(){return this.m_mainDataSource}isEmpty(){return null===this.m_mainDataSource}recalculatePriceScale(e,t){if(!e)return;const i=e.sourcesForAutoscale();if((e.isAutoScale()||e.priceRangeShouldBeRecalculatedOnce())&&i&&i.length>0&&!this.timeScale().isEmpty()){const t=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(t)}e.updateAllViews(t)}onSourceTagsChanged(){this._tagsChanged.fire()}insertDataSource(e,t,i){e.setZorder(i),t||(t=this.findSuitableScale(e)),this._addSourceToCollections(e);let s=!1;e===this.model().mainSeries()?(this.m_mainDataSource=this.model().mainSeries(),s=!0):null===this.m_mainDataSource&&(0,J.isPriceDataSource)(e)&&(this.m_mainDataSource=e,s=!0),t.addDataSource(e,this._isInInsertManyDataSourcesState),e.setPriceScale(t),t.invalidateMargins(),e.onTagsChanged&&e.onTagsChanged().subscribe(this,this.onSourceTagsChanged),s&&this._processMainSourceChange(),this._tagsChanged.fire(),(0,J.isPriceDataSource)(e)&&this.recalculatePriceScale(t,(0,O.dataSourceChangeEvent)(e.id())),this._invalidateSourcesCache()}addDataSource(e,t,i){let s=e.zorder();i||((0,f.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()?(s=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder+1:this.newLineToolZOrder(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=s)):(0,H.isStudy)(e)&&!e.isSpeciallyZOrderedSource()&&(s=this.newStudyZOrder())),this.insertDataSource(e,t,s)}removeDataSource(e,t,i){const s=this.m_dataSources.indexOf(e);if(-1===s)return void Ie.logDebug("removeDataSource: invalid data source");this._removeSourceFromCollections(s,!!i),e!==this.m_mainDataSource||t||(this.m_mainDataSource=null);const r=e.priceScale() -;this.removeSourceFromPriceScale(e),e.onTagsChanged&&e.onTagsChanged().unsubscribe(this,this.onSourceTagsChanged),(0,J.isPriceDataSource)(e)&&!t&&this._processMainSourceChange(),this._tagsChanged.fire(),r&&(0,J.isPriceDataSource)(e)&&this.recalculatePriceScale(r,(0,O.dataSourceChangeEvent)(e.id())),this._invalidateSourcesCache()}hasDataSource(e){return this._sourcesById.has(e.id())}hasPriceDataSource(e){return this._priceSourcesById.has(e.id())}dataSources(){return this.m_dataSources}priceDataSources(){return this._priceDataSources}symbolSources(){return this._symbolSources}replaceSource(e,t,i){const s=this.m_mainDataSource===e,r=e.zorder();this.insertDataSource(t,i,r),this.removeDataSource(e,s),this._sourcesById.set(t.id(),t),(0,J.isPriceDataSource)(t)&&this._priceSourcesById.set(t.id(),t),s&&(this.m_mainDataSource=t,this._processMainSourceChange())}findSuitableScale(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)}createNewPriceScaleIfPossible(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)}canCreateNewPriceScale(){return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)}isOverlay(e){const t=e.priceScale();return null===t||"overlay"===this.priceScalePosition(t)}recalculate(e){this._leftPriceScales.forEach(t=>this.recalculatePriceScale(t,e)),this._rightPriceScales.forEach(t=>this.recalculatePriceScale(t,e));for(const t of this.m_dataSources)this.isOverlay(t)&&!(0,f.isLineTool)(t)&&this.recalculatePriceScale(t.priceScale(),e);this.updateAllViews(e),this._model.updatePane(this)}updateAllViews(e){for(const t of this.m_dataSources)t.updateAllViews(e);for(const t of this.model().customSources())t.updateViewsForPane(this,e)}priceScalePosition(e){return this._leftPriceScales.includes(e)?"left":this._rightPriceScales.includes(e)?"right":"overlay"}createPriceScaleAtPosition(e,t){const i=this.properties().childs().axisProperties.state();i.autoScale=!0;const s=new ne.PriceScale(this.model().properties().childs().scalesProperties,i);return s.setHeight(this.height()),Me(s,this._defaultTopMargin(),this._defaultBottomMargin()),this._placePriceScale(s,e,t),s}removePriceScale(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e===this._lockedPriceScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null);const t=this._leftPriceScales.indexOf(e);-1!==t&&(this._leftPriceScales[t].invalidateMargins(),this._leftPriceScales.splice(t,1));const i=this._rightPriceScales.indexOf(e);if(-1!==i&&(this._rightPriceScales[i].invalidateMargins(),this._rightPriceScales.splice(i,1)),null===e.mainSource()){const t=e.dataSources().length;0!==t&&Ie.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+t)}this._onPriceScalesChanged.fire()}priceScaleIndex(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}}move(e,t,i){const s=e.priceScale();this.removeSourceFromPriceScale(e),t.addDataSource(e), -e.setPriceScale(t),t.invalidateMargins(),this._processMainSourceChange(),this._invalidateSourcesCache(),e.isIncludedInAutoScale()&&(null!==s&&this.recalculatePriceScale(s,(0,O.dataSourceChangeEvent)(e.id())),this.recalculatePriceScale(t,(0,O.dataSourceChangeEvent)(e.id()))),this._onPriceScalesChanged.fire()}setZOrders(e){e.forEach((e,t)=>{t.setZorder(e)}),this._invalidateSourcesCache(),0===this._bulkActions.activeCounter&&this._dataSourcesCollectionChanged.fire(),this.model().lightUpdate()}isMainPane(){return this.hasDataSource(this.model().mainSeries())}isLast(){const e=this.model().panes();return e[e.length-1]===this}newStudyZOrder(){return(0,ce.newStudyZOrder)(this._priceDataSources)}newLineToolZOrder(e){return(0,ce.newLineToolZOrder)(this.m_dataSources,e)}model(){return this._model}containsMainSeries(){return this._sourcesById.has(this.model().mainSeries().id())}applyPriceScaleRatio(e,t){var i;null!==this._lockedPriceScale&&this._lockedPriceScale!==e||this._currentPriceScaleRatio===t||!this.isMainPane()||null===this._lockedPriceScale&&e!==(null===(i=this.mainDataSource())||void 0===i?void 0:i.priceScale())||(this._setNewPriceRangeByScaleRatio(e,t,this._mainSourceVisiblePriceRange(e),!0,!0),null!==this._lockedPriceScale?this._tryToApplyNewPriceScaleRatio():e.isLog()||this.model().mainSeriesScaleRatioPropertyOnChanged())}sendToBack(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[0],ce.moveBeforeSource)}bringToFront(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[t.length-1],ce.moveAfterSource)}sendBackward(e){const t=this.sourcesByGroup().allIncludingHidden(),i=t.indexOf(e[0]);if(0===i)this.bringToFront(e);else{const s=t[i-1];this.insertBefore(e,s)}}bringForward(e){const t=this.sourcesByGroup().allExceptSpecialSources(),i=t.indexOf(e[e.length-1]);if(i===t.length-1)this.sendToBack(e);else{const s=t[i+1];this.insertAfter(e,s)}}insertAfter(e,t){this._batchReorder(e,t,ce.moveAfterSource)}insertBefore(e,t){this._batchReorder(e,t,ce.moveBeforeSource)}maximized(){return this._maximized}collapsed(){return this._collapsed}getPriceScaleById(e){const t=this.m_dataSources.find(t=>{var i;return(null===(i=t.priceScale())||void 0===i?void 0:i.id())===e});return void 0===t?null:t.priceScale()}priceScaleSelectionStrategy(){return this._priceScaleSelectionStrategy}setPriceScaleSelectionStrategy(e){this._priceScaleSelectionStrategy=e,e.apply(this)}findTargetPriceAxisViews(e,t,i,s){if((0,m.isDataSource)(e)&&this.model().paneForSource(e)!==this)return[];const r=e.priceScale();if(t===r)return i;if(null===r)return[];if("overlay"===this.priceScalePosition(r))return t===this.defaultPriceScale()?i:[];const n=this.priceScalePosition(t);if(n!==this.priceScalePosition(r))return[];const o="left"===n?this.leftPriceScales():this.rightPriceScales();return o.indexOf(t)1}properties(){return this._properties}setPriceAutoScale(e,t){e.setMode({ -autoScale:t}),this.timeScale().isEmpty()||this.recalculatePriceScale(e,(0,O.viewportChangeEvent)())}state(e,t,i,s,r,n){var o,a;const l={sources:[],mainSourceId:null===(o=this.m_mainDataSource)||void 0===o?void 0:o.id(),stretchFactor:this._stretchFactor,leftAxisesState:[],rightAxisesState:[],overlayPriceScales:{},priceScaleRatio:this._currentPriceScaleRatio},c=new Map,h=e=>{if(c.has(e))return c.get(e);let o=null;const a=i&&!e.isSavedInStudyTemplates()||!e.state||(0,f.isLineTool)(e)&&n||!(o=e.state(t,r))||!e.isSavedInChart(Boolean(t))||s&&(0,f.isLineTool)(e)&&e.isActualSymbol&&!e.isActualSymbol()||e.isPhantom()?null:o;return c.set(e,a),a};if(e){l.sources=[];for(let e=0;enull!==c.get(e),u=e=>!n||!(0,f.isLineTool)(e);l.leftAxisesState=this._leftPriceScales.map(e=>({state:e.state(),sources:e.dataSources().filter(d).filter(u).map(e=>e.id())})),l.rightAxisesState=this._rightPriceScales.map(e=>({state:e.state(),sources:e.dataSources().filter(d).filter(u).map(e=>e.id())})),l.overlayPriceScales={};for(const e of this.m_dataSources)if(this.isOverlay(e)&&e.isSavedInChart(Boolean(t))){const t=e.priceScale();l.overlayPriceScales[e.id()]=null!==(a=null==t?void 0:t.state())&&void 0!==a?a:null}return l}restoreState(e,t,i,s,n,o){var a;s=s||{},e.stretchFactor&&(this._stretchFactor=e.stretchFactor);const l={};if(e.sources){const r=e.sources.filter(e=>{var t;return!!e&&("MainSeries"===e.type||(!(null===(t=e.points)||void 0===t?void 0:t.some(e=>null===e.time_t||!isFinite(e.time_t)))||(Ie.logNormal("Dropped invalid "+e.type+". Reason: non-numeric point time"),!1)))}),a=r.findIndex(he.isMainSeriesState);-1!==a&&this.model().mainSeries().setObsoleteZOrder(r[a].zorder),i<3&&(0,ce.reorderDataSourcesStateZOrder)(r);const c=-1!==this.m_dataSources.indexOf(this._model.mainSeries());this.clearSeries(Boolean(o)),this.m_mainDataSource=null,c&&this._addSourceToCollections(this._model.mainSeries(),o),(()=>{const t=r.find(t=>t.id===e.mainSourceId);if(void 0===t)return void Ie.logWarn("There is no main source with id "+e.mainSourceId+", total sources="+r.length);if(!window.TradingView[t.type]||!(0,f.isLineToolName)(t.type))return void Ie.logNormal("The type of main source is not line tool - fix is unnecessary");let i=null;for(const e of r)if(!window.TradingView[t.type]||!(0,f.isLineToolName)(e.type)){if(null!==i)return void Ie.logWarn("Pane contains more than 1 possibly main sources - auto fix cannot be applied");i=e}if(null===i)return void Ie.logWarn("Pane contains only line tools - possible we need to remove this pane?");const s=e.mainSourceId;let n=0;e.mainSourceId=i.id,r.forEach(e=>{e.ownerSource===s&&(e.ownerSource=null==i?void 0:i.id,n+=1)}),Ie.logNormal("Auto fix broken pane is applied, changed line tools="+n+", changed from="+s+" to="+i.id)})();for(const e of r)if("study_Sessions"===e.type){this.model().sessions().restoreOldState(e,t);break}for(const e of r){if("study_Sessions"===e.type)continue;const i=e.id -;null===this._model.dataSourceForId(e.id)||"MainSeries"===e.type?(l[i]=e.ownerSource,(0,he.isMainSeriesState)(e)?this._restoreMainSeries(e,t,c,s,n,o):(0,he.isStudyState)(e)?this.restoreStudy(e,t,s,o):(0,he.isLineToolState)(e)?(e.state&&(e.state.zOrderVersion=2),this.restoreLineTool(e,t,void 0,o)):"ChartEventsSource"===e.type&&this._restoreSpecialSource(e,t,o)):Ie.logError("Duplicate id while restoring pane: "+e.type+","+e.id)}}const c=new Set,h=(e,t)=>{e.priceScale()!==t&&(this.removeSourceFromPriceScale(e),e.setPriceScale(t),t.addDataSource(e))},d=(e,t,i)=>{if(c.has(e))return;c.add(e);const s=i.m_showSymbolLabels;void 0!==s&&e===this.model().mainSeries()&&this.model().properties().childs().scalesProperties.childs().showSymbolLabels.setValue(s),this._model.children(e,!0).forEach(e=>d(e,t,i)),h(e,t)},u=e=>{const t=(0,D.defaults)("chartproperties").paneProperties.axisProperties,i=new ne.PriceScale(this.model().properties().childs().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach(e=>{const s=this.dataSourceForId(e);s&&d(s,i,t)}),0===i.dataSources().length?null:i},p=e=>e.map(u).filter(e=>null!==e);let _;if(e.leftAxisesState)_=p(e.leftAxisesState);else{const t=u({state:e.leftAxisState,sources:e.leftAxisSources});_=null!==t?[t]:[]}let m;if(this._leftPriceScales.slice().forEach(e=>this.removePriceScale(e)),this._leftPriceScales=[],_.forEach(e=>this._placePriceScale(e,"left")),e.rightAxisesState)m=p(e.rightAxisesState);else{const t=u({state:e.rightAxisState,sources:e.rightAxisSources});m=null!==t?[t]:[]}this._rightPriceScales.slice().forEach(e=>this.removePriceScale(e)),this._rightPriceScales=[],m.forEach(e=>this._placePriceScale(e,"right")),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;const g=new Map;for(const t of this.m_dataSources){if(c.has(t))continue;let i;if(e.overlayPriceScales&&e.overlayPriceScales[t.id()]){let s=e.overlayPriceScales[t.id()];g.has(null==s?void 0:s.id)?i=g.get(null==s?void 0:s.id):(s=(0,r.ensure)(s),i=new ne.PriceScale(this._model.properties().childs().scalesProperties),i.setHeight(this._height),s.m_isAutoScale=!0,s.m_isLog=!1,s.m_isPercentage=!1,s.m_isLockScale=!1,i.restoreState(s),g.set(s.id,i))}else i=new ne.PriceScale(this._model.properties().childs().scalesProperties),i.setHeight(this._height);h(t,i)}for(const e of Object.keys(l)){const t=l[e];t&&(null===(a=this.dataSourceForId(e))||void 0===a||a.setOwnerSource(this.dataSourceForId(t)))}if(e.mainSourceId&&!this.containsMainSeries()&&(this.m_mainDataSource=this.dataSourceForId(e.mainSourceId)),!this.m_mainDataSource)for(const e of this.m_dataSources)if((0,J.isPriceDataSource)(e)){this.m_mainDataSource=e;break}for(const e of this.m_dataSources)if((0,f.isLineTool)(e))e.ownerSource()||e.setOwnerSource(this.mainDataSource()),e.isFixed()&&e.restoreFixedPoints();else if((0,H.isStudy)(e)){const t=e.properties();t.linkedToSeries&&t.linkedToSeries.value()&&(e.ownerSource()||e.setOwnerSource(this.model().mainSeries()))}this._updateMargins(),this._cachedOrderedSources.clear()} -onPriceScalesChanged(){return this._onPriceScalesChanged}setPaneSize(e){let t;switch(e){case"large":t=1;break;case"medium":t=.6;break;case"small":t=.3;break;case"tiny":t=.15;break;default:throw new Error("Unknown size enum value: "+e)}this._stretchFactor=1e3*t}stretchFactor(){return this._stretchFactor}setStretchFactor(e){this._stretchFactor=e}customSources(e){return this.model().customSources(e)}createDrawingsCaches(){Z.ExecutionsPositionController.recreateOrderedByBarsSourcesCache(this)}clearDrawingCaches(){Z.ExecutionsPositionController.clearOrderedByBarsSourcesCache()}executionsPositionController(){return this._executionsPositionController||(this._executionsPositionController=new Z.ExecutionsPositionController(this,this._model.timeScale())),this._executionsPositionController}width(){return this._width}height(){return this._height}setHeight(e){this._height=e,this._leftPriceScales.forEach(t=>t.setHeight(e)),this._rightPriceScales.forEach(t=>t.setHeight(e));for(let t=0;t(e.paneViews(this)||[]).some(e=>{const r=e.renderer(t,i);return r&&r.doesIntersectWithBox&&r.doesIntersectWithBox(s)}))}logicalRectToPixels(e){const t=this.defaultPriceScale(),i=this.timeScale(),s=(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainSource()).firstValue()),o=t.priceToCoordinate(e.p1.price,s),a=i.indexToCoordinate(e.p1.index),l=t.priceToCoordinate(e.p2.price,s),c=i.indexToCoordinate(e.p2.index),h=new n.Point(Math.min(a,c),Math.min(o,l)),d=new n.Point(Math.max(a,c),Math.max(o,l));return(0,n.box)(h,d)}timeScale(){return this._timeScale}restoreLineTool(e,t,i,s){var n,o,a,l,c,h,d,u,p,_,m;delete e.state.lastUpdateTime,e.state.intervalsVisibilities=(0,be.mergeIntervalVisibilitiesDefaults)(e.state.intervalsVisibilities),i=void 0===i||i,ye.LineToolElliott.migrateState(e),"LineToolGannComplex"!==(m=e).type||void 0!==m.version&&1!==m.version||(m.type="LineToolGannFixed");const g=e.type,v=e.id,S=e.state,y=i?e.zorder:this.newLineToolZOrder();(0,r.assert)((0,f.isLineToolName)(g),"invalid data source type:"+g+" (expected to be a Line Tool)");let b,w,C=null;if((0,he.isStudyLineToolState)(e)){C=this._model.studyVersioning() -;const t=C.patchPointsBasedStudyState(e);e=t;const i=t.metaInfo;Object.assign(i,pe().parseIdString(null==i?void 0:i.fullId));const s=C.updateMetaInfo(i)||i;w=(0,f.createStudyLineToolProperties)(g,i,s,S,C),b=(0,f.createLineTool)(g,this._model,w,s,!0)}else w=(0,f.createLineToolProperties)(g,S,this._model),t?null===(n=w.child("fixedSize"))||void 0===n||n.setValue(!1):null===(o=w.child("fixedSize"))||void 0===o||o.setValue(!0),b=(0,f.createLineTool)(g,this._model,w,null,!0);b.setId(v),b.linkKey().setValue(e.linkKey||null);const P=e.alertId;P&&b.canHasAlert()&&B.enabled("alerts")&&!this._model.readOnly()&&!this._model.isJustClonedChart()&&b.setAlert(P,{noChartSave:!0});let T=null!==(a=e.indexes)&&void 0!==a?a:[];if(T=T.slice(0,null!==(c=null===(l=e.points)||void 0===l?void 0:l.length)&&void 0!==c?c:T.length),b.isFixed()?e.positionPercents&&b.restorePositionPercents(e.positionPercents):e.points&&b.restorePoints(e.points,T,t),b instanceof we.LineToolBarsPattern||b instanceof Ce.LineToolCallout||b instanceof Pe.LineToolTrendAngle||b instanceof Te.LineToolGhostFeed||b instanceof xe.LineToolParallelChannel)null===(d=(h=b).restoreData)||void 0===d||d.call(h,e);else if(t&&(0,he.isStudyLineToolState)(e)&&b.restoreData){const t=e;C&&(t.graphics=C.patchPointsBasedStudyData(t.metaInfo,t.graphics)),null===(u=b.restoreData)||void 0===u||u.call(b,t)}const x=null==e.version?1:e.version,I=null==b.version?1:b.version;return x!==I&&(null===(_=(p=b).migrateVersion)||void 0===_||_.call(p,x,I,{pane:this,model:this._model,properties:w})),void 0!==y&&b.setZorder(y),this._addSourceToCollections(b,s),this._cachedOrderedSources.clear(),b}restoreStudy(e,t,i,s){if(t&&void 0===e.data&&void 0===e.nonSeriesData&&void 0===e.indexes)return Ie.logError("Cannot restore (skipping) study without data "+e.id+", "+e.metaInfo.id),null;const r=e.id,n=e.state,o=e.zorder,a=e.ownerSource;let l=(0,_e.clone)(e.metaInfo);if(Object.assign(l,pe().parseIdString(l.id)),function(e){return"Script$TV_EARNINGS@tv-scripting"===e||"Script$TV_DIVIDENDS@tv-scripting"===e||"Script$TV_SPLITS@tv-scripting"===e||"ESD$TV_EARNINGS@tv-scripting"===e||"ESD$TV_DIVIDENDS@tv-scripting"===e||"ESD$TV_SPLITS@tv-scripting"===e||"Earnings@tv-basicstudies"===e||"Dividends@tv-basicstudies"===e||"Splits@tv-basicstudies"===e||"BarSetContinuousRollDates@tv-basicstudies"===e}(l.id)&&!t)return Ie.logNormal("Skipping study "+l.id),null;let c=n;const h=this._model.studyVersioning(),d=h.patchPropsStateAndMetaInfo(c,l,{oldShowStudyLastValueProperty:t&&!i.showStudyLastValueProperty});c=d.propsState,l=d.metaInfo;const u=new w.StudyStub(this._model,e,l.shortDescription);let p;u.setId(r),u.setZorder(o);const _=i=>{u.setStatus({type:me.StudyStatusType.Undefined});const s=i||new(pe())(l),n=ve.instance(this._model),o=o=>{var a;const d=(0,Se.prepareStudyPropertiesForLoadChart)(l,i,c,null,h),_=(0,H.createStudy)(this._model,d,o||this._model.mainSeries(),s);if(_.setId(r),_.setOwnFirstValue(null!==(a=e.ownFirstValue)&&void 0!==a?a:null),t){ -const t=e,{data:i,nsData:s,indexes:r}=h.patchStudyData(l,t.data,t.nonSeriesData,t.indexes);_.restoreData(i,s,r)}this._model.replaceStudyStub(u,_)||(p=_),n.add(r,_)};a&&e.state.isChildStudy?n.get(a).then(o):o()};if(t)_(null);else{const e=h.updateMetaInfoAsync(l);e.sync?_(e.result):e.result.then(_).catch(e=>u.setFailed("error: "+e))}const m=null!=p?p:u;return m&&(m.setZorder(o),this._addSourceToCollections(m,s),this._processMainSourceChange()),this._cachedOrderedSources.clear(),m}clipboardLineToolOwnerSource(e){const t=this.dataSourceForId(e);if(null!==t){const e=t.ownerSource();if(null!==e&&null!==e.firstValue())return e}const i=this.mainDataSource();if(null!==i&&null!==i.firstValue())return i;for(const e of this.dataSources())if((0,J.isPriceDataSource)(e)&&null!==e.firstValue())return e;return null}realignLineTools(e){var t;let i=!1;for(const s of this.m_dataSources)!(0,f.isLineTool)(s)||void 0!==e&&(null===(t=null==s?void 0:s.ownerSource())||void 0===t?void 0:t.symbolSource())!==e&&(0,le.isActingAsSymbolSource)(e)||(s.realign(),s.updateAllViews((0,O.dataSourceChangeEvent)(s.id())),i=!0);return i&&this._invalidateSourcesCache(),i}startScalePrice(e,t){e.startScale(t)}scalePriceTo(e,t){e.scaleTo(t),this.updateAllViews((0,O.viewportChangeEvent)())}endScalePrice(e){e.endScale()}startScrollPrice(e,t){e.startScroll(t)}scrollPriceTo(e,t){e.scrollTo(t),this.updateAllViews((0,O.viewportChangeEvent)())}endScrollPrice(e){e.endScroll()}resetPriceScale(e){const t=this.timeScale().visibleBarsStrictRange();e.isLockScale()||e.setMode({autoScale:!0}),e.recalculatePriceRange(t),this.updateAllViews((0,O.viewportChangeEvent)())}restorePriceScaleState(e,t){e.restoreState(t),this.updateAllViews((0,O.viewportChangeEvent)())}beginInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null}endInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null}removeSourceFromPriceScale(e){const t=e.priceScale();if(null!==t){const i=t.dataSources();i.indexOf(e)>=0&&t.removeDataSource(e),0===i.length&&this.removePriceScale(t)}}_invalidateSourcesCache(){this._cachedOrderedSources.clear(),this._leftPriceScales.forEach(e=>e.invalidateSourcesCache()),this._rightPriceScales.forEach(e=>e.invalidateSourcesCache())}_processMainSourceChange(){let e=!1;if(null===this.m_mainDataSource)for(const t of this.m_dataSources)if((0,J.isPriceDataSource)(t)&&!this.isOverlay(t)&&(!t.properties().linkedToSeries||!t.properties().linkedToSeries.value())){this.m_mainDataSource=t,e=!0;break}if(this.m_mainDataSource&&e){let e=this.m_dataSources.filter(f.isLineTool);e=(0,ee.sortSources)(e);for(const t of e)this.move(t,(0,r.ensureNotNull)(this.m_mainDataSource.priceScale()),!0)}else if(!this.m_mainDataSource||this.isOverlay(this.m_mainDataSource)&&0===this._nonOverlayPricesSourcesCount()){let e=null;if(this.m_dataSources.includes(this._model.mainSeries()))e=this._model.mainSeries();else for(const t of this.m_dataSources)if((0,J.isPriceDataSource)(t)&&this.isOverlay(t)&&t.showInObjectTree()){e=t -;break}if(null!==e){const t=this.m_mainDataSource===e;this.m_mainDataSource=e;const i=this.createNewPriceScaleIfPossible();if(t&&e===this._model.mainSeries()){const t=(0,r.ensureNotNull)(e.priceScale());this._model.children(e,!0).forEach(e=>{this.removeSourceFromPriceScale(e),i.addDataSource(e),e.setPriceScale(i)}),this.removePriceScale(t)}this.move(e,i,!0),this.recalculatePriceScale(e.priceScale(),(0,O.globalChangeEvent)())}}}_addSourceToCollections(e,t){this.m_dataSources.push(e),this._sourcesById.set(e.id(),e),this._invalidateSourcesCache();const i=()=>{this._sourcePropertiesChanged.fire(e)};e.properties().subscribe(this,i),e.zOrderChanged().subscribe(this,t=>this._sourcesZOrderChanged.fire(e,t)),(0,f.isLineTool)(e)&&(e.normalizedPointsChanged().subscribe(this,i),e.fixedPointsChanged().subscribe(this,i),e.hasAlert.subscribe(i),e.sharingMode().subscribe(i),e.linkKey().subscribe(i),this._sourceWatchedValuesSubscriptions.set(e.id(),i));const s=(0,le.isSymbolSource)(e)?e:null;(0,J.isPriceDataSource)(e)&&(this._priceSourcesById.set(e.id(),e),e.currencyChanged().subscribe(this,()=>this._invalidateSourcesCache()),e.unitChanged().subscribe(this,()=>this._invalidateSourcesCache()),this._priceDataSources.push(e),null!==s&&(this._symbolSources.push(s),s.symbolResolved().subscribe(this,()=>this._symbolSourceResolved.fire(e)),s.symbolResolvingActive().subscribe(this._recalcSymbolSourceResolvingActive),s.symbolHibernated().subscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged())),e.isMultiPaneAvailable()&&this.model().addMultiPaneSource(e),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_removeSourceFromCollections(e,t){const i=this.m_dataSources[e];i.properties().unsubscribeAll(this),i.zOrderChanged().unsubscribeAll(this),this.m_dataSources.splice(e,1),this._sourcesById.delete(i.id());const s=i.id();if((0,f.isLineTool)(i)&&(i.normalizedPointsChanged().unsubscribeAll(this),i.fixedPointsChanged().unsubscribeAll(this),this._sourceWatchedValuesSubscriptions.has(s))){const e=this._sourceWatchedValuesSubscriptions.get(s);i.hasAlert.unsubscribe(e),i.linkKey().unsubscribe(e)}this._invalidateSourcesCache();const n=(0,le.isSymbolSource)(i)?i:null;if((0,J.isPriceDataSource)(i)){this._priceSourcesById.delete(i.id()),i.currencyChanged().unsubscribeAll(this),i.unitChanged().unsubscribeAll(this);const e=this._priceDataSources.indexOf(i);if((0,r.assert)(-1!==e),this._priceDataSources.splice(e,1),null!==n){const e=this._symbolSources.indexOf(n);(0,r.assert)(-1!==e,"Source is not found"),this._symbolSources.splice(e,1),n.symbolResolved().unsubscribeAll(this),n.symbolResolvingActive().unsubscribe(this._recalcSymbolSourceResolvingActive),n.symbolHibernated().unsubscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged()}}i.isMultiPaneAvailable()&&this.model().removeMultiPaneSource(i),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()} -_recalculatePriceScaleByScaleRatio(e){this.isMainPane()&&e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToPriceScale():this._tryToApplyNewPriceScaleRatio())}_defaultBottomMargin(){return.01*this.properties().childs().bottomMargin.value()}_defaultTopMargin(){return.01*this.properties().childs().topMargin.value()}_updateMargins(){const e=this._defaultTopMargin(),t=this._defaultBottomMargin();for(const i of this._leftPriceScales)Me(i,e,t);for(const i of this._rightPriceScales)Me(i,e,t);for(const i of this.m_dataSources)if(this.isOverlay(i)){const s=i.priceScale();null!==s&&(Me(s,e,t),this.recalculatePriceScale(s,(0,O.viewportChangeEvent)()))}for(const e of this._leftPriceScales)this.recalculatePriceScale(e,(0,O.viewportChangeEvent)());for(const e of this._rightPriceScales)this.recalculatePriceScale(e,(0,O.viewportChangeEvent)());this.updateAllViews((0,O.viewportChangeEvent)())}_batchReorder(e,t,i){i(this.sourcesByGroup().allExceptSpecialSources(),e,t),this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire(),this.model().fullUpdate()}_placePriceScale(e,t,i){if("overlay"===t)return void e.invalidateMargins();const s="left"===t?this._leftPriceScales:this._rightPriceScales,n=void 0===i?s.length:i;s.splice(n,0,e),e.modeChanged().subscribe(this,this._onPriceScaleModeChanged.bind(this,e)),e.internalHeightChanged().subscribe(this,this._recalculatePriceScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._recalculateTimeScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._onPriceScaleSetMinMaxPriceRange.bind(this,e)),e.isLockScale()&&((0,r.assert)(null===this._lockedPriceScale),this._lockedPriceScale=e,this._currentPriceScaleRatio=null),e.invalidateMargins(),this._onPriceScalesChanged.fire()}_onPriceScaleModeChanged(e,t,i){if(i.lockScale&&(this._lockedPriceScale!==e&&null!==this._lockedPriceScale&&this._lockedPriceScale.setMode({lockScale:!1}),this._lockedPriceScale=e,this._currentPriceScaleRatio=(0,oe.scaleRatio)(this.timeScale(),e)),t.lockScale&&!i.lockScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null),t.percentage===i.percentage&&t.indexedTo100===i.indexedTo100)return;const s=this.timeScale().visibleBarsStrictRange();null!==s&&(e.recalculatePriceRange(s),e.updateAllViews((0,O.viewportChangeEvent)()))}_applyOldScaleRatioToPriceScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||null===this._lockedPriceScale||(this._isRecalculatingScales=!0,this._setNewPriceRangeByScaleRatio(this._lockedPriceScale,this._currentPriceScaleRatio,this._mainSourceVisiblePriceRange(this._lockedPriceScale)),this._isRecalculatingScales=!1)}_setNewPriceRangeByScaleRatio(e,t,i,s,r){const n=(0,oe.priceRangeByScaleRatio)(e,this.timeScale().barSpacing(),t);e.setPriceRange(null!==n?n:i,s,r)}_applyOldScaleRatioToTimeScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||(this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(),this._isRecalculatingScales=!1)} -_tryToApplyNewPriceScaleRatio(){const e=(0,r.ensureNotNull)(this._lockedPriceScale),t=(0,oe.scaleRatio)(this.timeScale(),e);this._currentPriceScaleRatio===t||e.isLog()||(this._currentPriceScaleRatio=t,this.model().mainSeriesScaleRatioPropertyOnChanged())}_recalculateTimeScaleByScaleRatio(e){e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToTimeScale():this._tryToApplyNewPriceScaleRatio())}_setNewBarSpacingByScaleRatio(){const e=this.timeScale().getValidBarSpacing((0,oe.barSpacingByScaleRatio)((0,r.ensureNotNull)(this._lockedPriceScale),this._currentPriceScaleRatio));this.timeScale().isValidBarSpacing(e)&&this.timeScale().setBarSpacing(e)}_mainSourceVisiblePriceRange(e){const t=this.timeScale().visibleBarsStrictRange();return null!==t?(0,r.ensureNotNull)((0,r.ensureNotNull)(e.mainSource()).priceRange(t.firstBar(),t.lastBar())):new ae.PriceRange(-.5,.5)}_setMinMaxPriceRange(){const e=(0,r.ensureNotNull)(this._lockedPriceScale),t=(0,oe.priceRangeByScaleRatio)(e,this.timeScale().maxBarSpacing(),this._currentPriceScaleRatio),i=(0,oe.priceRangeByScaleRatio)(e,this.timeScale().minBarSpacing(),this._currentPriceScaleRatio);null!==t&&e.setMaxPriceRange(t),null!==i&&e.setMinPriceRange(i)}_onPriceScaleSetMinMaxPriceRange(e){e===this._lockedPriceScale&&this._setMinMaxPriceRange()}_nonOverlayPricesSourcesCount(){return this.m_dataSources.filter(e=>(!e.properties().linkedToSeries||!e.properties().linkedToSeries.value())&&((0,J.isPriceDataSource)(e)&&e.showInObjectTree()&&!this.isOverlay(e))).length}_restoreMainSeries(e,t,i,s,r,n){const o=e.id,a=e.state;if(a&&r&&(a.style=r.style||a.style,a.interval=r.interval||a.interval,r.symbol&&r.symbol!==a.symbol&&(a.symbol=r.symbol,delete a.currencyId,delete a.unitId)),a&&a.style,a&&["candleStyle","hollowCandleStyle","haStyle"].forEach(e=>{a[e]&&(a[e].wickUpColor=a[e].wickUpColor||a[e].wickColor,a[e].wickDownColor=a[e].wickDownColor||a[e].wickColor)}),a&&(a.statusViewStyle=a.statusViewStyle||{},!a.statusViewStyle.symbolTextSource)){const e=!!a.statusViewStyle.showSymbolAsDescription;a.statusViewStyle.symbolTextSource=e?"ticker":"description"}if(a&&(a.extendedHours?a.sessionId="extended":a.sessionId||(a.sessionId="regular"),delete a.extendedHours),!i){const e=this._model.mainSeries();this._model.mainPane().removeDataSource(e,!1,n),this._addSourceToCollections(e,n)}const l=this.model().mainSeries(),c=l.properties().childs();this.m_mainDataSource=l;const h=a&&a.style?a.style:void 0;if(6===h&&"ATR"===c.pnfStyle.childs().inputs.childs().style.value()?c.pnfStyle.childs().inputs.childs().style.setValueSilently("Traditional"):4===h&&"ATR"===c.renkoStyle.childs().inputs.childs().style.value()&&c.renkoStyle.childs().inputs.childs().style.setValueSilently("Traditional"),a&&!a.hasOwnProperty("showSessions")&&(a.showSessions=!1),a&&void 0===a.settlementAsClose&&(a.settlementAsClose=!1),a&&t&&(a.showCountdown=!1), -a&&(t&&!("showSeriesLastValueProperty"in s)&&"showLastValue"in a&&this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.setValue(a.showLastValue),delete a.showLastValue),a){const t={haStyle:(0,N.chartStyleStudyId)(8,!0),renkoStyle:(0,N.chartStyleStudyId)(4,!0),pbStyle:(0,N.chartStyleStudyId)(7,!0),kagiStyle:(0,N.chartStyleStudyId)(5,!0),pnfStyle:(0,N.chartStyleStudyId)(6,!0),rangeStyle:(0,N.chartStyleStudyId)(11,!0)},i=this._model.studyVersioning(),s=l.styleStudyInfos(),r=Object.keys(de.SYMBOL_STRING_DATA);for(let n=0;nthis._zoffset&&e+t>0)return Ne.logError("merge: when the first time point index is updated, we should fill the time points starting from the first one"),[];if(0===this._items.length)return this._items=i.slice(),this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];const s=e+this._zoffset;if(s<0){const r=Math.abs(s);if(i.lengththis._items.length){const e=o-this._items.length;for(let t=n;tthis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(let i=0;io){const i=e-o;if(i<500&&null!=t)return t(l,i);return l+i*c}return null}roughIndex(e,t=null){const i=this._items;if(!i.length||i.length<2)return null;const s=i.length-1,r=this._validOffsetToIndex(0),n=this._validOffsetToIndex(s),o=i[0],a=i[s];if(e>=o&&e<=a)return this.closestIndexLeft(e);const l=(a-o)/(n-r);if(ea){const i=e-a;let s=Math.trunc(i/l);if(s<500&&null!==t){const i=t(a,e);i.success&&(s=i.result)}return n+s}return null}closestIndexLeft(e){const t=this._items;if(!t.length)return null;if(Number.isNaN(e))return null;let i=t.length-1;if(e>=t[i])return this._validOffsetToIndex(i);let s=0;const r=t[s];if(es+1;){const r=s+i>>1,n=t[r];if(n>e)i=r;else{if(!(n{this.setRightOffset(e)}),this._options.preserveBarSpacing&&(this._barSpacing=this._scalesProperties.childs().barSpacing.value()||6),this._barSpacingChanged.subscribe(this,this._maxRightOffsetOnChanged),this._widthChanged.subscribe(this,this._maxRightOffsetOnChanged)}destroy(){this._barSpacingChanged.unsubscribeAll(this),this._barSpacingChanged.destroy(),this._widthChanged.unsubscribeAll(this),this._widthChanged.destroy()}isEmpty(){return 0===this._width||!this.canNormalize()}canNormalize(){return this._points.size()>0}update(e,t,i,s){this._visibleBarsInvalidated=!0,i.length>0&&this._points.merge(e,t,i),this._tickMarks.merge(s),this._correctOffset()}addTail(e,t,i){this._tickMarks.removeTail(t);const s=e.params,n=(0,r.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1);for(let e=0;e0&&(i*=this._width/e.width)),this._tryToUpdateBarSpacing(this._barSpacing,i),this._correctOffset(),this._rightOffsetChanged.fire(this._rightOffset)}marks(){if(this.isEmpty())return null;const e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),s=(0,r.ensureNotNull)(this.visibleBarsStrictRange()),n=Math.max(s.firstBar(),s.firstBar()-i),o=Math.max(s.lastBar(),s.lastBar()-i),a=this._tickMarks.build(e,t),l=[];for(const e of a){if(!(n<=e.index&&e.index<=o))continue;const t=this._tickMarks.indexToTime(e.index);null!==t&&l.push({coord:this.indexToCoordinate(e.index),label:this.formatLabel(t,e.span),span:e.span,major:e.label>=He.DAY_SPAN})}return l}visibleBarsStrictRange(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()}visibleBarsStrictRangeChanged(){return this._visibleBarsChanged}logicalRangeChanged(){return this._logicalRangeChanged}tickMarks(){return this._tickMarks}points(){return this._points}width(){return this._width}setWidth(e,t){if(!Number.isFinite(e)||e<=0)return void Ke.logWarn("setWidth: invalid argument: "+e);if(this._width===e)return;if(this._visibleBarsInvalidated=!0,(t||this._options.lockVisibleTimeRangeOnResize)&&this._width){const t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}else this._width&&this.setBarSpacing(this._barSpacing);if(null!==this._leftEdgeIndex){if((0,r.ensureNotNull)(this.visibleBarsStrictRange()).firstBar()<=this._leftEdgeIndex){const t=this._width-e;this._rightOffset-=Math.round(t/this._barSpacing)+1}}this._width=e,this._widthChanged.fire(e);const i=this._rightOffset;this._correctOffset(),this._rightOffset!==i&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}setLeftEdgeFix(e){this._leftEdgeIndex=e;const t=this.visibleBarsStrictRange();if(null===t)return;const i=t.firstBar()-e;if(i<0){const e=this._rightOffset-i-1;this.scrollToOffsetAnimated(e,500)}}indexToCoordinate(e){if(this.isEmpty())return 0;if(!(0,_e.isInteger)(e))return 0;const t=this.baseIndex()+this._rightOffset-e;return this._width-(t+.5)*this._barSpacing-1}indexToUserTime(e){return this._tickMarks.indexToTime(e)}timePointToIndex(e){return this._points.indexOf(e,!0)}indexToTimePoint(e){return this._points.valueAt(e)}timeToCoordinate(e){const t=this._points.closestIndexLeft(e);if(null===t)return null;const i=(0,r.ensureNotNull)(this._points.valueAt(t)),s=this.indexToCoordinate(t);if(s<=0||s>=this._width)return null;const n=this.barSpacing(),o=this.baseIndex(),a=s+(e-i)/((0,r.ensureNotNull)(this._points.valueAt(o))-(0,r.ensureNotNull)(this._points.valueAt(o-1)))*n+1;return a<=0||a>=this._width?null:a}barIndexesToCoordinates(e){const t=this.baseIndex();for(const i of e){ -const e=i.time,s=t+this._rightOffset-e,r=this._width-(s+.5)*this._barSpacing-1;i.time=r,i.exactTime=r}}timedValuesToCoordinates(e,t){var i,s;const r=this.baseIndex()+this._rightOffset,n=this._width-r*this._barSpacing-.5*this._barSpacing-1,o=null!==(i=null==t?void 0:t.startItemIndex)&&void 0!==i?i:0,a=null!==(s=null==t?void 0:t.endItemIndex)&&void 0!==s?s:e.length;for(let t=o;t{void 0!==t&&t(),this._requestMoreData()};if(e){const e=this._rightOffset,t=this.maxRightOffset();t>0&&i>t&&(i=t);const r=this._model;(0,Ee.doAnimate)({from:e,to:i,duration:1e3,easing:Ae.easingFunc.easeInOutQuint,onComplete:s,onStep:(e,t)=>{this._visibleBarsInvalidated=!0,this._updateRightOffset(t),r.recalculateAllPanes((0,O.viewportChangeEvent)()),r.lightUpdate(),r.recalcVisibleRangeStudies()}})}else this._visibleBarsInvalidated=!0,this._updateRightOffset(i),s()}scrollToFirstBar(){this._model.gotoTime(new Date("1800-01-01").getTime())}scrollToOffsetAnimated(e,t){if(!isFinite(e))throw new RangeError("offset is required and must be finite number");const i=void 0===t?400:t;if(!isFinite(i)||i<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const s=this._rightOffset,r=Date.now(),n=()=>{this._visibleBarsInvalidated=!0;const t=(Date.now()-r)/i;if(t>=1)return this._updateRightOffset(e),this._visibleBarsInvalidated=!0,this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),void this._model.lightUpdate();const o=s+(e-s)*t;this._updateRightOffset(o),this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),setTimeout(n,20)};n()}defaultRightOffset(){return this._defaultRightOffset}rightOffsetDefaultValue(){return 10}barSpacing(){return this._barSpacing}setBarSpacing(e){Number.isFinite(e)?(e=this.getValidBarSpacing(e),this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this._correctOffset(),this._options.preserveBarSpacing&&((0,P.saveDefaultProperties)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),(0,P.saveDefaultProperties)(!1)),this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),this._model.lightUpdate())):Ke.logWarn("setBarSpacing: invalid argument: "+e)}barSpacingChanged(){return this._barSpacingChanged}getValidBarSpacing(e){return null==e&&(e=this.barSpacing()),ethis.maxBarSpacing()?this.maxBarSpacing():e}isValidBarSpacing(e){return e>=this.minBarSpacing()&&e<=this.maxBarSpacing()}preserveBarSpacing(){return this._options.preserveBarSpacing}normalizeBarIndex(e){let t=0,i=0 -;const s=this.baseIndex(),n=(0,r.ensureNotNull)(this._points.firstIndex());return es?(t=(0,r.ensureNotNull)(this._points.valueAt(s)),i=e-s):(t=(0,r.ensureNotNull)(this._points.valueAt(e)),i=0),{time_t:t,offset:i}}denormalizeTimePoint(e){const t=this._points.indexOf(e.time_t,!1);if(null!==t)return t+e.offset}rightOffset(){return this._rightOffset}rightOffsetChanged(){return this._rightOffsetChanged}minRightOffset(){const e=this.points().firstIndex(),t=this._baseIndex;if(null===e||null===t)return null;if(null!==this._leftEdgeIndex){const e=this.width()/this._barSpacing;return this._leftEdgeIndex-t+e-1}return e-t-1+Ye}maxRightOffset(){return this.width()/this._barSpacing-Ye}maxRightOffsetChanged(){return this._maxRightOffsetChanged}onReset(){return this._resetDelegate}scrollStartPoint(){return this._scrollStartPoint}baseIndex(){return this._baseIndex||0}zoom(e,t,i){if(!Number.isFinite(e)||!Number.isFinite(t))return void Ke.logWarn(`zoom: invalid arguments: ${e}, ${t}, ${i}`);const s=this.coordinateToIndex(e),r=this.barSpacing(),n=r+t*(r/10);this.setBarSpacing(n);(void 0!==i?!i:this._options.rightBarStaysOnScroll)||this.setRightOffset(this.rightOffset()-.5+(s-this._coordinateToFloatIndex(e))),this._requestMoreData()}zoomToBarsRange(e,t){if(null!==this._leftEdgeIndex&&(e=Math.max(e,this._leftEdgeIndex)),t<=e)return;const i=this.baseIndex(),s=this._rightOffset;this._rightOffset=t-i;const r=Math.max(t-e+1,Ye);this.setBarSpacing(this.width()/r),this._visibleBarsInvalidated=!0,this._correctOffset(),this._rightOffset!==s&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}coordinateToIndex(e){return Math.ceil(this._coordinateToFloatIndex(e))}coordinateToVisibleIndex(e){let t;if(0===e){const e=this._coordinateToFloatIndex(-1);t=Math.floor(e)+1}else t=this.coordinateToIndex(e);const i=this.visibleBarsStrictRange();return null===i||i.contains(t)||(t=Math.min(Math.max(i.firstBar(),t),i.lastBar())),t}canZoomIn(){return this.barSpacing()this._options.minBarSpacing}minBarSpacing(){return this._options.minBarSpacing}maxBarSpacing(){const e=this.width();return qe?e:e/Ye}resetRightOffset(){this.setRightOffset(this._defaultRightOffset.value())}reset(){this._visibleBarsInvalidated=!0,this._points=new Re,this._scrollStartPoint=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire(),this.disconnect()}disconnect(){this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1}setBaseIndex(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._baseIndex=e,this._correctOffset()):Ke.logDebug("setBaseIndex: invalid argument: "+e)}resetBaseIndex(){this._visibleBarsInvalidated=!0,this._baseIndex=null}setRightOffset(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._updateRightOffset(e)):Ke.logWarn("setRightOffset: invalid argument: "+e)}correctBarSpacing(){ -this.isEmpty()||this.points().size()this.formatLabelImpl(e,t)),this._formattedBySpan.set(t,i)),i.format(new Date(e))}formatLabelImpl(e,t){if(!(e&&e instanceof Date))return"incorrect time";const i=function(e,t){if(ee&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);const t=this.minRightOffset();null!==t&&this._rightOffset{e.onChanged().subscribe(null,t=>this._onChanged.fire(e.id,t))})}groups(){return this._groups.filter(e=>e.isActualSymbol())}groupsForAllSymbols(){return this._groups}createGroup(e,t,i){t=t||this._generateNextName();const s=new et.LineToolsGroup(e,t,i);this._groups.push(s),s.onChanged().subscribe(null,e=>this._onChanged.fire(s.id,e));const r={visibilityChanged:!1,lockedChanged:!1,titleChanged:!1,isActualIntervalChanged:!1,affectedLineTools:e.map(e=>e.id())};return this._onChanged.fire(s.id,r),s}addGroup(e){this._groups.push(e),e.onChanged().subscribe(null,t=>this._onChanged.fire(e.id,t)),this._onChanged.fire(e.id)}removeGroup(e){const t=this._groups.findIndex(t=>t.id===e.id);this._groups.splice(t,1),this._onChanged.fire(e.id)}groupForId(e){return this._groups.find(t=>t.id===e)||null}groupForLineTool(e){return this._groups.find(t=>t.containsLineTool(e))||null}removeLineTools(e){this._groups.forEach(t=>{const i=e.filter(t.containsLineTool.bind(t));i.length&&t.excludeLineTools(i)});this._groups.filter(e=>0===e.lineTools().length).forEach(e=>this.removeGroup(e))}state(e){return{groups:(e?this._groups.filter(e=>e.isActualSymbol()):this._groups).map(e=>e.state())}}onChanged(){return this._onChanged}fireChangedAll(){this._groups.forEach(e=>{this._onChanged.fire(e.id)})}static fromState(e,t){const i=[];for(const s of t.groups){const t=et.LineToolsGroup.fromState(e,s);null!==t&&i.push(t)}return new tt(i)}_generateNextName(){const e=new Set(this.groups().map(e=>e.name()));for(let t=1;;t++){const i="Group "+t,s="Group_"+t;if(!e.has(i)&&!e.has(s))return i}}}var it=i(10480),st=i.n(it),rt=i(69177);let nt=null;function ot(e){return Boolean(e.symbolInfo.timezone)&&Boolean(e.symbolInfo.session)}class at{constructor(e,t){var i,s;this._sourceTargetBarBuilder=null,this._cache=new Map,this._source=e,this._sourceSession=rt.SessionInfo.fromState(e.session),this._target=t,this._targetSession=rt.SessionInfo.fromState(t.session),this._isResolutionTheSame=C.Interval.isEqual(e.resolution,t.resolution),this._isSessionTheSame=(i=e.symbolInfo,s=t.symbolInfo,i.timezone===s.timezone&&i.session===s.session&&i.session_holidays===s.session_holidays&&i.corrections===s.corrections),this._shouldCorrectTradingDay=C.Interval.isDWM(e.resolution)&&!this._isSessionTheSame}sourceTimeToTargetTime(e){if(this._isSessionTheSame&&this._isResolutionTheSame)return e;if(!ot(this._source)||!ot(this._target))return e;let t=this._cache.get(e);if(void 0===t){let i=1e3*e -;if(this._shouldCorrectTradingDay){let e=st().utc_to_cal(this._sourceSession.timezone,i);e=this._sourceSession.spec.correctTradingDay(e);const t=new Date(e);st().set_hms(t,0,0,0,0,this._sourceSession.timezone),i=t.valueOf()}const s=this._sourceTargetBuilder();s.moveTo(i);const r=s.indexOfBar(i);t=s.startOfBar(Math.max(0,r))/1e3,this._cache.set(e,t)}return t}_sourceTargetBuilder(){if(null===this._sourceTargetBarBuilder){const e=this._isSessionTheSame?this._targetSession:(null===nt&&(nt=new rt.SessionInfo("Etc/UTC","24x7")),nt);this._sourceTargetBarBuilder=(0,rt.newBarBuilder)(this._target.resolution,this._targetSession,e)}return this._sourceTargetBarBuilder}}var lt=i(85733),ct=i(68906),ht=i(4676),dt=i(49642);function ut(e,t){return e.codet.code?1:0}class pt{constructor(e){this._convertibleItems=e,this._idsToItems=new Map;for(const t of e)this._idsToItems.set(t.id,t)}convertible(e){return void 0!==this._idsToItems.get(e)}item(e){var t;return null!==(t=this._idsToItems.get(e))&&void 0!==t?t:null}size(){return this._convertibleItems.length}filterConvertible(e,t){const i=this._convertibleItems.filter(function(e,t){return i=>!e.has(i.id)&&t(i.id)}(e,t));return i.sort(ut),i}}class _t{constructor(e){this._allGroups=new Set,this._idToName=new Map,this._idToDescription=new Map,this._groupedUnitIds=new Map,this._groupedUnits=new Map,this._groupById=new Map,this._size=0,this._units=e;for(const t in e)if(e.hasOwnProperty(t)){this._allGroups.add(t),this._groupedUnitIds.set(t,new Set(e[t].map(e=>e.id))),this._groupedUnits.set(t,e[t]);for(const i of e[t])this._size++,this._idToName.set(i.id,i.name),this._idToDescription.set(i.id,i.description),this._groupById.set(i.id,t)}}unitsChanged(e){return this._units!==e}size(){return this._size}name(e){return this._idToName.get(e)||e}description(e){return this._idToDescription.get(e)||e}unitGroupById(e){return this._groupById.get(e)||null}allGroups(){return new Set(this._allGroups)}unitsByGroups(e){const t=[];return e.forEach(e=>{const i=this._groupedUnits.get(e);void 0!==i&&t.push({name:e,units:i})}),t}convertible(e,t){for(const i of t){const t=this._groupedUnitIds.get(i);if(void 0!==t&&t.has(e))return!0}return!1}}var mt=i(93751);class gt{constructor(e){this._source=null,this._sourcePane=null,this._currentToolSupportsPhantomMode=!1,this._model=e}destroy(){this._source=null,this._sourcePane=null}source(){return this._source}onToolChanged(){this._removeSource();const e=this._model.currentTool();this._currentToolSupportsPhantomMode=(0,f.isLineToolName)(e)&&(0,f.supportsPhantomMode)(e)}onCursorPositionUpdated(){if(!this._currentToolSupportsPhantomMode)return;const e=this._model.crossHairSource();if(this._sourcePane!==e.pane&&this._removeSource(),null===e.pane||!(0,mt.isNumber)(e.index)||!(0,mt.isNumber)(e.price))return void this._removeSource();const t={index:e.index,price:e.price};null!==this._source?this._source.setPoint(0,t):(this._source=this._model.createLineTool(e.pane,t,this._model.currentTool(),void 0,null),this._sourcePane=e.pane)}_removeSource(){ -null!==this._source&&(this._model.removeSource(this._source),this._source=null,this._sourcePane=null)}}var ft=i(71053),vt=i(73383),St=i(90373),yt=i(30460);class bt{align(e,t,i){let s=e;if(!(0,yt.magnetEnabled)().value())return s;const n=i.mainDataSource();if(null===n)return s;const o=n.model().mainSeries();if(n!==o)return s;const a=o.priceScale(),l=o.bars();if(a.isEmpty()||!l.contains(t))return s;const c=l.valueAt(t);if(null===c)return s;const h=[];null!==o.priceSource()?h.push(o.barFunction()(c)):h.push(c[1],c[2],c[3],c[4]);const d=(0,r.ensure)(o.firstValue()),u=h.map(e=>({y:a.priceToCoordinate(e,d),price:e})),p=a.priceToCoordinate(e,d);u.sort((e,t)=>Math.abs(e.y-p)-Math.abs(t.y-p));const _=u[0];return((0,yt.magnetMode)().value()===St.MagnetMode.StrongMagnet||Math.abs(_.y-p)<50)&&(s=_.price),s}}var wt=i(65862),Ct=i(62443),Pt=i(29892),Tt=i(42759);class xt{constructor(){this._data=null}setData(e){this._data=e}draw(e,t){if(null===this._data)return;const i=t.pixelRatio,s=Math.max(1,Math.floor(i));e.lineWidth=s;const r=Math.ceil(this._data.h*i),n=Math.ceil(this._data.w*i);if(e.save(),e.lineCap="butt",this._data.vertLinesVisible){e.strokeStyle=this._data.vertLinesColor,(0,Pt.setLineStyle)(e,this._data.vertLineStyle);for(const t of this._data.timeMarks){const s=Math.round(t.coord*i);(0,Tt.drawVerticalLine)(e,s,0,r)}}if(this._data.horzLinesVisible){e.strokeStyle=this._data.horzLinesColor,(0,Pt.setLineStyle)(e,this._data.horzLineStyle);for(const t of this._data.priceMarks){const s=Math.round(t.coord*i);(0,Tt.drawHorizontalLine)(e,s,0,n)}}e.restore()}hitTest(e){return null}}class It{constructor(e){this._renderer=new xt,this._pane=e}update(){}renderer(){const e=this._pane.defaultPriceScale(),t=this._pane.model().timeScale();if(e.isEmpty()||t.isEmpty())return null;const i=this._pane.model().properties().childs().paneProperties.childs(),s=t.marks(),r={horzLinesVisible:!0,vertLinesVisible:!0,horzLinesColor:i.horzGridProperties.childs().color.value(),vertLinesColor:i.vertGridProperties.childs().color.value(),horzLineStyle:i.horzGridProperties.childs().style.value(),vertLineStyle:i.vertGridProperties.childs().style.value(),priceMarks:e.marks(),timeMarks:null!==s?s:[],w:this._pane.width(),h:this._pane.height()};return this._renderer.setData(r),this._renderer}}class Mt extends Ct.DataSource{id(){return"grid"}paneViews(e){return[new It(e)]}}var Lt=i(97938);class At extends Lt.PriceAxisView{constructor(e,t,i){super(),this._source=e,this._priceScale=t,this._priceProvider=i,this._properties=e.model().properties().childs().scalesProperties}setHitTestData(e){this._hitTestData=e}additionalPadding(e){return 0}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._priceScale,r=s.mainSource(),n=null!==r?r.firstValue():null;if(!this._isVisible()||s.isEmpty()||null===n)return;const o=this._priceProvider(s);if(null===o)return;i.background=this._bgColor(),i.textColor=this.generateTextColor(i.background);const a=this.additionalPadding(s.fontSize());i.additionalPaddingTop=a,i.additionalPaddingBottom=a, -i.coordinate=s.priceToCoordinate(o,n),e.text=s.formatPrice(o,n),e.visible=!0,t.visible=!0,t.hitTestData=this._hitTestData}}const Et={normalBgColor:a.colorsPalette["color-cold-gray-750"],hoveredBgColor:a.colorsPalette["color-cold-gray-600"]},kt={normalBgColor:a.colorsPalette["color-cold-gray-900"],hoveredBgColor:a.colorsPalette["color-cold-gray-650"]};class Dt extends At{additionalPadding(e){return 2/12*e}_isVisible(){return this._properties.childs().showPriceScaleCrosshairLabel.value()&&this._source.visible&&null!==this._source.pane}_bgColor(){return this._getThemedColors().normalBgColor}_updateRendererData(e,t,i){const s=t.visible;super._updateRendererData(e,t,i),this._source.isHovered()?t.backgroung=this._getThemedColors().hoveredBgColor:t.backgroung=void 0,s||(t.visible=s)}_getThemedColors(){return this._source.model().isDark()?Et:kt}}class Vt extends At{_isVisible(){return null!==this._source.measurePane().value()}_bgColor(){return this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}}var Bt=i(28978),Nt=(i(28296),i(97056));function Rt(e){const t=e.priceScale();return null===t?0:t.isPercentage()||t.isIndexedTo100()?2:1}const Ot=B.enabled("show_context_menu_in_crosshair_if_only_one_item");class Ft extends Bt.PanePriceAxisView{constructor(e,t,i,s,r){super(e,t,s),this._crossHairMenuCachedState=null,this._hasActions=!1,this._tooltipText=null,this._gaOrigin="CH menu",this._crosshairPriceAxisView=e,e.setPaneRendererLabelIcon(0),this._crosshair=t,this._scale=i,this._options=r}_updateImpl(e,t){super._updateImpl(e,t);const i=this._crosshair.y,s=this._chartModel.properties().childs().scalesProperties.childs().fontSize.value(),r=this._chartModel.timeScale().width(),n=this._crosshair.model().priceAxisRendererOptions(),o=s+2*this._crosshairPriceAxisView.additionalPadding(s)+n.paddingTop+n.paddingBottom,a=o,l=i-o/2,c=r-a,h=this._crosshair.pane,d=this._mainDataSourceOnPane(),u=d&&d.symbolSource(),p=!!u&&(u.isConvertedToOtherCurrency()||u.isConvertedToOtherUnit());if(null!==d){const e=Rt(d),t=d.idForAlert(),i=this._chartModel.isInReplay(),s=this._crossHairMenuCachedState;null!==s&&s.id===t&&s.priceScale===e&&s.isCurrencyOrUnitConverted===p&&s.isInReplay===i||(this._updateTooltipAndActionsAvaliability(d,e,p),this._crossHairMenuCachedState={id:t,priceScale:e,isCurrencyOrUnitConverted:p,isInReplay:i})}const _=null!==d&&(0,le.isActingAsSymbolSource)(d)?d.symbol():null,m=null!==h&&(h.maximized().value()||!h.collapsed().value())&&(Boolean(_)||!1);this._crosshairPriceAxisView.setPaneLabelVisible(m);const g=null!==h&&0!==h.leftPriceScales().length&&m,f=null!==h&&0!==h.rightPriceScales().length&&m,v=r-a/2,S=this._tooltipText?{text:this._tooltipText,rect:{x:v,y:l,w:0,h:0}}:void 0;this._data={left:g,right:f,xl:0,xr:c,y:l,containerWidth:a,containerHeight:o,clickHandler:this._handleClick.bind(this),tooltip:S},this._crosshairPriceAxisView.setHitTestData(this._data)}_priceScale(){return this._scale}_updateTooltipAndActionsAvaliability(e,t,i){this._tooltipText=null,this._hasActions=!1;if(!(1===t))return -;this._chartModel.isInReplay();let s=0;let r=0;1!==s||Ot||(this._tooltipText=""),this._crosshairPriceAxisView.setPaneRendererLabelIcon(r),this._hasActions=0!==s}_handleClick(e,t,i){(0,h.trackEvent)(this._gaOrigin,"click");const s=this._mainDataSourceOnPane(),r=null!==s&&(0,le.isActingAsSymbolSource)(s)?s.symbol():null,n={pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,screenX:i.screenX,screenY:i.screenY,price:this._crosshair.price,symbol:r};u.emit("onPlusClick",n)}_getMenuItems(e){return Promise.resolve([])}_createAlertMenuItems(e){return Promise.resolve([])}_createTradingMenuItems(){return Promise.resolve([])}_createAddHorizontalLineMenuItem(){return[]}_getActionAddAlert(e){return null}_getActionAddHorizontalLine(e){return null}_getValue(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return null;return i.isPercentage()||i.isIndexedTo100()?null:i.coordinateToPrice(t,s)}_formatValue(e,t){return t.formatter().format(e)}_addAlert(e,t){}_addHorizontalLineTool(e,t){}_showContextMenu(e,t,i,s){const n="left"===s;setTimeout(()=>{const t=(0,r.ensureDefined)(this._data),s=n?t.xl:t.xr,o=i.localX-s,a=i.clientX-o,l=i.clientX-o+t.containerWidth;Nt.ContextMenuManager.showMenu(e,{clientX:n?a:l,clientY:i.clientY-t.containerHeight/2,boxHeight:t.containerHeight,attachToXBy:n?"left":"right",attachToYBy:"auto-strict"},void 0,{menuName:"CrosshairMenuView"})})}_mainDataSourceOnPane(){const e=this._crosshair.pane;return null!==e?e.mainDataSource():null}}var Wt=i(43891),Ht=i(71413),zt=i(84346);class Ut{constructor(e){this._data=e}hitTest(e){return void 0===this._data.clickHandler?null:new zt.HitTestResult(zt.HitTestResult.CUSTOM,{clickHandler:this._data.clickHandler,tapHandler:this._data.clickHandler})}draw(e,t){const i=t.pixelRatio,s=this._data.vertLinesVisible,r=this._data.horzLinesVisible;if(!s&&!r)return;e.save(),e.lineWidth=Math.max(1,Math.floor(this._data.lineWidth*i)),e.strokeStyle=this._data.color,e.fillStyle=this._data.color,e.lineCap="butt",(0,Pt.setLineStyle)(e,this._data.lineStyle);const n=Math.round(this._data.x*i),o=Math.round(this._data.y*i),a=Math.ceil(this._data.w*i),l=Math.ceil(this._data.h*i);s&&n>=0&&(0,Tt.drawVerticalLine)(e,n,0,l),r&&o>=0&&(0,Tt.drawHorizontalLine)(e,o,0,a),this._data.drawCenter&&(e.beginPath(),e.arc(n,o,Math.round(3*i),0,2*Math.PI,!0),e.fillStyle=this._data.color,e.fill()),e.restore()}}const jt=a.colorsPalette["color-tv-blue-500"];class Gt{constructor(e,t){this._rendererData={},this._renderer=new Ut(this._rendererData),this._source=e,this._pane=t}update(){}renderer(e,t){const i=this._source.selectPointMode().value(),s=this._source.visible&&(this._source.areLinesVisible||i)&&!this._source.linesShouldBeHidden(),n=this._rendererData;if(!s||null===this._pane)return null;const o=this._source.paneForPointSelect(),a=null!==o?this._source.pane===o&&this._pane===o:this._pane===this._source.pane;if(i&&this._source.isOnHoveredChartWidget()&&a){const e=(0,r.ensureNotNull)(this._source.pointToSelect());n.color=this._source.lineColor()||jt,n.lineWidth=1, -n.lineStyle=Wt.LINESTYLE_SOLID,n.horzLinesVisible=!0,n.vertLinesVisible=!0,n.drawCenter=!1,"time"===e?n.horzLinesVisible=!1:"price"===e&&(n.vertLinesVisible=!1)}else{const e=this._source.properties(),t=this._source.model().currentTool(),i=(0,Ht.lastMouseOrTouchEventInfo)(),s=i.isTouch&&!i.stylus&&((0,f.isLineToolName)(t)||(0,lt.toolIsMeasure)(t));let r;r=s?jt:e.childs().color.value();const o=e.childs().transparency.value();!s&&o>0&&(r=(0,ct.generateColor)(r,o)),n.color=r,n.horzLinesVisible=this._pane===this._source.pane&&(this._pane.maximized().value()||!this._pane.collapsed().value()),n.vertLinesVisible=!0,n.lineWidth=e.childs().width.value(),n.lineStyle=e.childs().style.value(),n.drawCenter=s&&this._pane===this._source.pane}return n.w=this._pane.width(),n.h=this._pane.height(),n.x=void 0!==this._source.lockedX&&isFinite(this._source.lockedX)&&this._source.lockedX||this._source.x,n.y=this._source.y,this._renderer}}var qt=i(55776);const Yt={backgroundColor:(0,ct.generateColor)(a.colorsPalette["color-tv-blue-500"],70),borderColor:(0,ct.generateColor)(a.colorsPalette["color-tv-blue-500"],20)};class Kt{constructor(e){this._renderer=new qt.RectangleRenderer,this._rectangle=null,this._crosshair=e}update(){const e=this._crosshair.selection();null!==e&&null!==this._crosshair.pane?this._rectangle=this._crosshair.pane.logicalRectToPixels(e):this._rectangle=null}renderer(e,t){if(!this._rectangle)return null;const i={backcolor:Yt.backgroundColor,color:Yt.borderColor,fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(i),this._renderer}}var $t=i(62820),Xt=i(26811),Zt=i(97645),Jt=i(92242),Qt=i(67802),ei=i(63300),ti=i(98664),ii=i(94804),si=i(49612);const ri=(0,K.t)("{count} bars"),ni=(0,K.t)("Vol"),oi=new Xt.PercentageFormatter,ai=new Jt.TimeSpanFormatter,li=new Qt.VolumeFormatter,ci=(0,a.getHexColorByName)("color-tv-blue-500"),hi=(0,a.getHexColorByName)("color-ripe-red-400"),di={bgColorPositive:(0,ct.generateColor)(ci,80),bgColorNegative:(0,ct.generateColor)(hi,80),colorPositive:(0,a.getHexColorByName)("color-tv-blue-600"),colorNegative:(0,a.getHexColorByName)("color-ripe-red-400"),labelBgColorPositive:ci,labelBgColorNegative:hi};class ui{constructor(e,t){this._pipFormatter=null,this._lastSymbolInfo=null,this._horzTrenRenderer=new ei.TrendLineRenderer,this._vertTrenRenderer=new ei.TrendLineRenderer,this._bgRenderer=new qt.RectangleRenderer,this._labelRenderer=new ti.TextRenderer,this._p1=null,this._p2=null,this._label=null,this._source=e,this._pane=t}update(e){const[t,i]=this._source.measurePoints();if(void 0===i)return this._p1=null,void(this._p2=null);const s=(0,r.ensureNotNull)(this._source.measurePane().value()),o=t.price,a=i.price,l=i.price-o,c=i.index-t.index,h=(0,$t.forceLTRStr)(""+c),d=(0,r.ensureNotNull)(s.mainDataSource());let u=(0,r.ensureNotNull)(d.formatter()).format(l);if(Math.abs(o)>1e-8){const e=l/Math.abs(o);u+=" ("+oi.format(100*e)+")"}const p=(0,$t.forceLTRStr)(u);this._label=p+"\n"+ri.format({count:h});const _=(0, -r.ensureNotNull)(d.firstValue()),m=this._source.model().timeScale().indexToCoordinate(t.index),g=this._source.model().timeScale().indexToCoordinate(i.index),f=s.defaultPriceScale().priceToCoordinate(o,_),v=s.defaultPriceScale().priceToCoordinate(a,_);this._p1=new n.Point(m,f),this._p2=new n.Point(g,v);const S=this._source.model().timeScale().indexToUserTime(t.index),y=this._source.model().timeScale().indexToUserTime(i.index);let b=null;if(null!==S&&null!==y){const e=this._pane.model().mainSeries().symbolInfo();null!==e&&e!==this._lastSymbolInfo&&(this._pipFormatter=new Zt.PipFormatter(e.pricescale,e.minmov,e.type,e.minmove2),this._lastSymbolInfo=e),b=(y.valueOf()-S.valueOf())/1e3}const w=this._pipFormatter?this._pipFormatter.format(l):null,C=null!==w?" , "+w:"",P=null!==b?ai.format(b):null,T=null!==P?", "+(0,$t.startWithLTR)(P):"";this._label=(0,$t.forceLTRStr)(p+C)+"\n"+ri.format({count:h})+T;const x=this._source.measureVolume();Number.isNaN(x)||(this._label+=`\n${ni} ${li.format(x)}`);const I=a=50?si.LineEnd.Arrow:si.LineEnd.Normal};this._horzTrenRenderer.setData(s)}{const e=Math.round(k.x),t=new n.Point(e,this._p1.y),i=new n.Point(e,this._p2.y),s={points:[t,i],color:L,linewidth:1,linestyle:Wt.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:si.LineEnd.Normal,rightend:Math.abs(t.y-i.y)>=50?si.LineEnd.Arrow:si.LineEnd.Normal};this._vertTrenRenderer.setData(s)}const D={x:0,y:10},V=.5*(this._p1.x+this._p2.x),B=this._p2.y,N=new n.Point(V,B),R=(O=(0,r.ensureNotNull)(this._label),{points:[N],text:O,color:"#FFFFFF",horzAlign:"center",vertAlign:"middle",font:M.CHART_FONT_FAMILY,offsetX:D.x,offsetY:D.y,bold:!1,italic:!1,fontsize:12,padding:8,highlightBorder:!1,backgroundColor:A,backgroundTransparency:10,backgroundVertInflate:5,backgroundHorzInflate:5,backgroundRoundRect:4});var O;this._labelRenderer.setData(R);const F=this._labelRenderer.measure(),W=(0,ti.calculateLabelPosition)(F,this._p1,this._p2,D,this._pane.height());this._labelRenderer.setPoints([W])}renderer(){if(null===this._p1||null===this._p2)return null;const e=new ii.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer),e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e}}var pi=i(16282);class _i extends pi.ScaledPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){return null}_drawImpl(e){e.translate(this._data.x-this._data.width/2,this._data.y-this._data.height/2),e.strokeStyle="rgba(153,153,153,.3)",e.lineWidth=2,e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(), -e.strokeStyle="rgba(153,153,153,.7)",e.lineWidth=1,e.beginPath(),e.rect(0,this._data.height-this._data.bodyHeight+.5,this._data.width,this._data.bodyHeight),e.closePath(),e.stroke(),e.translate(0,-1),e.strokeStyle="#777",e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.fillStyle="rgba(255,255,255,.7)",e.beginPath(),e.rect(1,this._data.height-this._data.bodyHeight+1.5,this._data.width-2,this._data.bodyHeight-2),e.fill(),e.beginPath(),e.rect(.5,this._data.height-this._data.bodyHeight+1,this._data.width-1,this._data.bodyHeight-1),e.stroke(),e.closePath(),e.fillStyle="#777",e.fillRect(this._data.width/2-.5,this._data.height-this._data.bodyHeight/2,1,2)}_drawShackle(e){const t=(this._data.width-3)/2,i=this._data.height-this._data.bodyHeight;e.moveTo(1.5,t),e.arc(this._data.width/2,t,t,Math.PI,2*Math.PI),i>t&&(e.moveTo(1.5,t),e.lineTo(1.5,i),e.moveTo(this._data.width-1.5,t),e.lineTo(this._data.width-1.5,i))}}class mi{constructor(e,t,i){this._horzVisible=!1,this._source=e,this._pane=t,this._axis=i||"x"}update(){}renderer(e,t){const i=this._source.visible&&this._source.areLinesVisible,s=(0,lt.lockTimeAxis)().value(),n=i&&this._horzVisible,o=i||s;if("y"===this._axis&&!n||!o)return null;const a="y"===this._axis?this._pane.width()-4.5:(0,r.ensureDefined)(this._source.lockedX)+1,l="y"===this._axis?this._source.y:this._pane.height()-5.5-1;return new _i({x:a,y:l,width:9,height:11,bodyHeight:7})}}var gi=i(49483),fi=i(76166),vi=i(14445),Si=i(57626);class yi extends vi.DataWindowView{constructor(e){super(),this._invalidated=!0,this._dateItem=new vi.DataWindowItem((0,K.t)("Date"),""),this._timeItem=new vi.DataWindowItem((0,K.t)("Time"),""),this._model=e,this._items.push(this._dateItem),this._items.push(this._timeItem)}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){const e=this._model.mainSeries().isDWM();if(this._timeItem.setVisible(!e),this._timeItem.setValue(Si.notAvailable),this._dateItem.setValue(Si.notAvailable),this._model.timeScale().isEmpty())return;let t=this._model.crossHairSource().appliedIndex();if(!(0,mt.isNumber)(t)){const e=this._model.mainSeries().data().last();if(null===e)return;t=e.index}const i=this._model.timeScale().indexToUserTime(t);null!==i&&(this._dateItem.setValue(this._model.dateFormatter().format(i)),e||this._timeItem.setValue(this._model.timeFormatter().format(i)))}}var bi=i(85578);class wi extends bi.TimeAxisView{constructor(e,t,i=!1){super(e),this._indexProvider=t,this._highlighted=i,this._properties=e.properties().childs().scalesProperties}_getBgColor(){const e=this._model.isDark();return this._highlighted?this._properties.childs().axisLineToolLabelBackgroundColorCommon.value():e?a.colorsPalette["color-cold-gray-750"]:a.colorsPalette["color-cold-gray-900"]}_getIndex(){return this._model.crossHairSource().visible?this._indexProvider():null}_isVisible(){return this._properties.childs().showTimeScaleCrosshairLabel.value()}}var Ci=i(34081);const Pi={menuEnabled:!1,menuForMainSourceOnly:!1, -disableTradingMenuActions:!1,disableDrawHorizLineMenuAction:!1};class Ti extends Ct.DataSource{constructor(e,t,i){super(),this.pane=null,this.price=NaN,this.index=NaN,this.visible=!0,this.areLinesVisible=!0,this.x=NaN,this.y=NaN,this._measurePane=new(G())(null),this._startMeasurePoint=null,this._endMeasurePoint=null,this._lastValidMeasurePoint=null,this._isOnHoveredChartWidget=!1,this._selectPointMode=new(G())(!1),this._selectionPane=null,this._selectionView=new Kt(this),this._selectionStartPoint=null,this._measurePaneView=null,this._timeLockPaneView=null,this._priceAxisViews=new Map,this._panePriceAxisViews=new Map,this._startMeasurePriceAxisViews=new Map,this._endMeasurePriceAxisViews=new Map,this._originX=NaN,this._originY=NaN,this._subscribed=!1,this._movedDelegate=new(U()),this._pointSelectedDelegate=new(U()),this._requestedPoint=null,this._paneForRequestedPoint=null,this._selectLineColor=null,this._volumeCalculator=null,this._model=e,this._options=Object.assign({},Pi,i||{}),this._linesShouldBeHidden=this._model.readOnly(),this._dataWindowView=new yi(e),this.setSelectionEnabled(!1);const s=e=>t=>t===(0,r.ensureNotNull)(this._measurePane.value()).defaultPriceScale()?e():null;this._currentPosPriceProvider=e=>{const t=(0,r.ensureNotNull)(this.pane);if(e===t.defaultPriceScale())return this.price;const i=(0,r.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;const s=t.defaultPriceScale().priceToCoordinate(this.price,i),n=(0,r.ensureNotNull)(e.mainSource()).firstValue();return null===n?null:e.coordinateToPrice(s,n)},this._startMeasurePriceProvider=s(()=>(0,r.ensureNotNull)(this._startMeasurePoint).price),this._endMeasurePriceProvider=s(()=>(0,r.ensureNotNull)(this._lastMeasurePoint()).price),this._properties=t;this._timeAxisView=new wi(e,()=>this.appliedIndex(),!1),this._startMeasureTimeAxisView=new wi(e,()=>(0,r.ensureNotNull)(this._startMeasurePoint).index,!0),this._endMeasureTimeAxisView=new wi(e,()=>(0,r.ensureNotNull)(this._lastMeasurePoint()).index,!0),e.readOnly()||lt.cursorTool.subscribe(e=>this.areLinesVisible="arrow"!==e,{callWithLast:!0})}destroy(){null!==this._volumeCalculator&&this._volumeCalculator.destroy(),this._measurePane.setValue(null)}moved(){return this._movedDelegate}originX(){return this._originX}originY(){return this._originY}saveOriginCoords(e,t){this._originX=e,this._originY=t}clearOriginCoords(){this._originX=NaN,this._originY=NaN}currentPoint(){return new n.Point(this.x,this.y)}model(){return this._model}appliedIndex(){return Number.isFinite(this.lockedIndex)?this.lockedIndex:this.index}startMeasurePoint(){return this._startMeasurePoint||null}endMeasurePoint(){return this._endMeasurePoint||null}measureVolume(){if(null===this._volumeCalculator)return NaN;const[e,t]=this.measurePoints();return void 0===t?NaN:this._volumeCalculator.volume(e.index,t.index)}measurePane(){return this._measurePane.readonly()}startMeasuring(e,t){this._startMeasurePoint=e,this._measurePane.setValue(t),t.containsMainSeries()&&((0,r.assert)(null===this._volumeCalculator), -this._volumeCalculator=new Ci.SeriesTimeRangeVolumeCalculator(this.model().mainSeries())),this._model.updatePane(t)}finishMeasure(e){this._endMeasurePoint=e}clearMeasure(){this._measurePane.setValue(null),delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate(),null!==this._volumeCalculator&&(this._volumeCalculator.destroy(),this._volumeCalculator=null)}measurePoints(){const e=[(0,r.ensureNotNull)(this._startMeasurePoint)],t=this._lastMeasurePoint();return null!==t&&e.push(t),e}startSelection(e){this._selectionStartPoint=this.currentLogicalPoint(),this._selectionPane=e}clearSelection(){this._selectionStartPoint=null,this._selectionPane=null}selection(){return this._selectionStartPoint?{p1:this._selectionStartPoint,p2:this.currentLogicalPoint()}:null}currentLogicalPoint(){return{index:this.appliedIndex(),price:this.price}}selectPointMode(){return this._selectPointMode}lineColor(){return this._selectLineColor}cancelRequestSelectPoint(){this._selectPointMode.value()&&this._setSelectPointModeState(!1)}requestSelectPoint(e){(0,r.assert)(!this._selectPointMode.value(),"Point already requested");const{pointType:t,pane:i,lineColor:s=null}=e;i&&((0,r.assert)(-1!==this._model.panes().indexOf(i),"Chartmodel doesn't contains specified pane"),this._paneForRequestedPoint=i,this._model.panesCollectionChanged().subscribe(this,this._paneCollectionChanged)),this._selectLineColor=s,this._requestedPoint=t,this._setSelectPointModeState(!0)}onPointSelected(){return this._pointSelectedDelegate}trySelectCurrentPoint(){const e=(0,r.ensureNotNull)(this._requestedPoint);if(!this._model.mainSeries().bars().contains(this.index)&&"price"!==e)return;const t=(0,r.ensureNotNull)(this.pane);if(this._paneForRequestedPoint&&this._paneForRequestedPoint!==t)return;let i,s;if("price"===e||(i=this._model.timeScale().indexToTimePoint(this.index),null!==i)){if("time"!==e){const e=t.mainDataSource();if(null===e)return;const i=e.firstValue(),r=e.priceScale();if(null===i||null===r)return;s=r.coordinateToPrice(this.y,i)}this._setSelectPointModeState(!1),this._pointSelectedDelegate.fire({time:i,price:s},t)}}isOnHoveredChartWidget(){return this._isOnHoveredChartWidget}setOnHoveredChartWidget(e){this._isOnHoveredChartWidget=e}clearPosition(){this.visible=!1,this.index=NaN,this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoords()}setPosition(e,t,i){return this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,this.clearMeasure),this._subscribed=!0),this.setLockedPosition(i),this.visible=!0,this._tryToUpdateViews(e,t,i)}setLinesShouldBeHidden(e){this._linesShouldBeHidden=e}linesShouldBeHidden(){return this._linesShouldBeHidden}handleContextMenuEvent(e){this._selectPointMode.value()&&this._setSelectPointModeState(!1)}properties(){return this._properties}priceAxisViews(e,t){const i=null===this._requestedPoint||"time"!==this._requestedPoint||!this._isOnHoveredChartWidget,s=[] -;return this.pane===e&&i&&s.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,Dt,!0)[0]),this._startMeasurePoint&&s.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,Vt)[0]),this._lastMeasurePoint()&&s.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,Vt)[0]),s}timeAxisViews(){const e=[],t=null===this._requestedPoint||"price"!==this._requestedPoint||!this._isOnHoveredChartWidget;return!this._linesShouldBeHidden&&(this.visible||(0,lt.lockTimeAxis)().value())&&t&&e.push(this._timeAxisView),this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView),this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e}paneViews(e){if(void 0===e)return null;const t=[new Gt(this,e)];if(e===this._selectionPane&&t.push(this._selectionView),e===this._measurePane.value()&&(null===this._measurePaneView&&(this._measurePaneView=new ui(this,e)),this._measurePaneView.update((0,O.dataSourceChangeEvent)(this.id())),t.push(this._measurePaneView)),fi.addPlusButtonProperty.value()){const i=e===this.pane,s=!gi.CheckMobile.any()||window.screen.width>=320,r=lt.tool.value(),n=(0,f.isLineToolName)(r),o=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0||null!==this._model.customSourceBeingMoved()||(0,lt.toolIsMeasure)(r);if(i&&this._isOnHoveredChartWidget&&!this._selectPointMode.value()&&s&&!n&&!o){const i=e.mainDataSource();if(null!==i){const s=i.priceScale();if(null!==s){const i=this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,s,this._currentPosPriceProvider,Dt,!0)[1];null!==i&&t.push(i)}}}}return(0,lt.lockTimeAxis)().value()&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new mi(this,e)),t.push(this._timeLockPaneView)),t}dataWindowView(){return this._dataWindowView}updateAllViews(e){this._priceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._panePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._startMeasureTimeAxisView.update(e)),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._endMeasureTimeAxisView.update(e)),this._timeAxisView.update(e),this._selectionView.update(),this._dataWindowView.update()}setLockedPosition(e){delete this.lockedIndex,delete this.lockedX,e!==this._measurePane.value()&&(0,lt.lockTimeAxis)().value()&&(this.lockedIndex=this._model.timeScale().points().roughIndex(lt.lockTimeAxisTime.value()),null!==this.lockedIndex&&(this.lockedX=this._model.timeScale().indexToCoordinate(this.lockedIndex)))}isMenuEnabled(){return this._options.menuEnabled}isHoveredEnabled(){return fi.addPlusButtonProperty.value()}isHovered(){return this._model.hoveredSource()===this}pointToSelect(){return this._requestedPoint}paneForPointSelect(){return this._paneForRequestedPoint} -_lastMeasurePoint(){return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane.value()===this.pane&&(this._lastValidMeasurePoint={price:this._model.magnet().align(this.price,this.index,this.pane),index:this.index}),this._lastValidMeasurePoint||null)}_createPriceAxisViewOnDemand(e,t,i,s,n,o,a=!1){let l=e.get(i),c=null!==t?t.get(i):void 0;void 0===l&&(l=new Map,e.set(i,l),this._options.menuEnabled&&null!==t&&(c=new Map,t.set(i,c)),a&&i.onDestroyed().subscribe(this,()=>this._onPaneDestroyed(i)));let h=l.get(s);if(void 0===h){if(h=new o(this,s,n),l.set(s,h),void 0!==c){const e=new Ft(h,this,s,this._model,this._options);c.set(s,e)}a&&s.lastSourceRemoved().subscribe(this,()=>this._onPriceScaleCleared(s))}let d=null;return void 0!==c&&(d=(0,r.ensureDefined)(c.get(s))),[h,d]}_onPaneDestroyed(e){e.onDestroyed().unsubscribeAll(this),this._priceAxisViews.delete(e),this._panePriceAxisViews.delete(e),this._startMeasurePriceAxisViews.delete(e),this._endMeasurePriceAxisViews.delete(e)}_onPriceScaleCleared(e){e.lastSourceRemoved().unsubscribeAll(this),this._priceAxisViews.forEach(t=>t.delete(e)),this._panePriceAxisViews.forEach(t=>t.delete(e)),this._startMeasurePriceAxisViews.forEach(t=>t.delete(e)),this._endMeasurePriceAxisViews.forEach(t=>t.delete(e))}_tryToUpdateViews(e,t,i){return!!this._tryToUpdateData(e,t,i)&&(this.updateAllViews((0,O.dataSourceChangeEvent)(this.id())),this._movedDelegate.fire({index:this.index,price:this.price}),!0)}_tryToUpdateData(e,t,i){const s=this.x,n=this.y,o=this.price,a=this.index,l=this.pane,c=this._priceScaleByPane(i);if(this.index=e,this.x=isNaN(e)?NaN:this._model.timeScale().indexToCoordinate(e),null!==c&&null!==i){this.pane=i,this.price=t;const e=(0,r.ensureNotNull)(i.mainDataSource()).firstValue();this.y=null===e?NaN:c.priceToCoordinate(t,e)}else this.pane=null,this.price=NaN,this.y=NaN;return s!==this.x||n!==this.y||a!==this.index||o!==this.price||l!==this.pane}_priceScaleByPane(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null}_setSelectPointModeState(e){e||(this._requestedPoint=null,this._selectLineColor=null,this._paneForRequestedPoint&&(this._paneForRequestedPoint=null,this._model.panesCollectionChanged().unsubscribe(this,this._paneCollectionChanged))),lt.isPointSelectedNow.setValue(e),this._selectPointMode.setValue(e),this._model.lightUpdate()}_paneCollectionChanged(e){const t=this._paneForRequestedPoint;null!==t&&-1===e.indexOf(t)&&this.cancelRequestSelectPoint()}}var xi=i(56972),Ii=i(40236),Mi=i(67396),Li=i(52418);const Ai=(0,$.getLogger)("Chart.ChartModel");function Ei(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function ki(e){var t,i;for(let s=e.length;s--;){const r=e[s].dataSources();for(let e=r.length;e--;)null===(t=r[e].dataWindowView())||void 0===t||t.update();const n=e[s].priceDataSources();for(let e=n.length;e--;)null===(i=n[e].legendView())||void 0===i||i.update()}}const Di={isSnapshot:!1,readOnly:!1,watermarkEnabled:!0,shiftVisibleRangeOnNewBar:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1, -countdownEnabled:!0,lastPriceAnimationEnabled:!0,onWidget:!1,hideIdeas:!1};class Vi{constructor(e,t,i,r,n,o,a,c,h,d){this._onRearrangePanes=new(U()),this._lineToolsGroupModel=new tt,this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,this._lineBeingEdited=null,this._linePointBeingEdited=null,this._linePointBeingChanged=null,this._customSourceBeingMovedHitTestData=null,this._customSourceBeingMoved=null,this._dataSourceCollectionChanged=new(U()),this._sourceProperitesChanged=new(U()),this._sourceZOrderChanged=new(U()),this._symbolSourceResolved=new(U()),this._symbolSourceResolvingActive=new(G())(!1),this._adjustForDividendsAvailability=new(G())(0),this._adjustForDividendsEnabled=new(G())(!1),this._sessions=null,this._currentTool="",this._lineBeingCreated=null,this._paneBeingCreatedLineOn=null,this._lineCancelled=new(U()),this._phantomSourceContainer=new gt(this),this._destroyed=!1,this._isSettingsExternalPosition=!1,this._isTimeScrolling=!1,this._magnet=new bt,this._scrollingState=null,this._modelIntervals=[],this._rendererOptionsProvider=new L(this),this._cachedStudiesMaxOffset=0,this._panes=[],this._tagsChanged=new(U()),this._strategySources=[],this._strategySourcesChange=new(U()),this._activeStrategySource=new(G())(null),this._paneCollapsingAvailable=new(G())(!1),this._panesCollectionChanged=new(U()),this._scrollEnabled=B.enabled("chart_scroll"),this._zoomEnabled=B.enabled("chart_zoom"),this._isScalesResetAvailableChanged=new(U()),this._isScalesResetAvailable=!1,this._esdWatcher=null,this._alertsWatcher=null,this._hoveredSource=null,this._hoveredSourceChanged=new(U()),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,this._topmostCustomSources=[],this._fgCustomSources=[],this._bgCustomSources=[],this._allCustomSources=[],this._customSourcesMap=new Map,this._multiPaneSources=[],this._showLegendProperty=new(x()),this._id=(0,X.guid)(),this._chartSaveTime=null,this._availableCurrenciesList=null,this._availableCurrencies=new pt([]),this._availableUnitsObject=null,this._availableUnits=new _t({}),this._shouldBeSavedEvenIfHidden=!1,this._watchedThemeSpawn=l.watchedTheme.spawn(),this._gradientColorsCache=null,this._recalcVRStudiesParams={},this._recalcColorStudiesParams={},this._recalcVisibleRangeStudiesImplDebounced=(0,s.default)(this._recalcVisibleRangeStudiesImpl.bind(this,this._recalcVRStudiesParams),500),this._recalcColorStudiesImplDebounced=(0,s.default)(this._recalcColorStudiesImpl.bind(this,this._recalcColorStudiesParams),250),this._width=0,this._resetScales=new(U()),this._chartThemeLoaded=new(U()),this._selection=new S,this._selectedSourceChanged=new(U()),this._symbolSourceCollectionChanged=new(U()),this._gridSource=new Mt,this._syncPointCache=new Map,this._lastAppliedTimeRange=null,this._clearSelection=()=>{this._lastSelectedHittestData=null,this._selection.clear()},this._removeSourceFromSelection=e=>{this._selection.remove(e)},this._addSourceToSelection=(e,t)=>{const i=this._selection.isSelected(e) -;i&&this._lastSelectedHittestData===t||e&&!e.isSelectionEnabled()||(this._lastSelectedHittestData=t||null,i||this._selection.add(e))},this._recalcSymbolResolvingActive=()=>{for(const e of this._panes)if(e.symbolSourceResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._recalcAdjustForDividendsAvailibility=()=>{var e,t,i,s;if(this._symbolSourceResolvingActive.value())return void this._adjustForDividendsAvailability.setValue(0);const r=this.mainSeries();switch(null!==(t=null===(e=r.symbolInfo())||void 0===e?void 0:e.allowed_adjustment)&&void 0!==t?t:"none"){case"dividends":return void this._adjustForDividendsAvailability.setValue(2);case"splits":return void this._adjustForDividendsAvailability.setValue(1);case"any":return void this._adjustForDividendsAvailability.setValue(3)}for(const e of this.symbolSources().filter(le.isActingAsSymbolSource)){if(e.symbolHibernated().value()||e===r)continue;if("any"===(null!==(s=null===(i=e.symbolInfo())||void 0===i?void 0:i.allowed_adjustment)&&void 0!==s?s:"none"))return void this._adjustForDividendsAvailability.setValue(3)}this._adjustForDividendsAvailability.setValue(0)},this._recalcAdjustForDividendsEnabled=()=>{switch(this._adjustForDividendsAvailability.value()){case 2:return void this._adjustForDividendsEnabled.setValue(!0);case 0:case 1:return void this._adjustForDividendsEnabled.setValue(!1)}this._adjustForDividendsEnabled.setValue(this.mainSeries().properties().childs().dividendsAdjustment.value())},this._recalcPaneCollapsingAvailable=e=>{let t=this._panes.filter(e=>!e.collapsed().value()).length;0===t&&e&&this._panes.length>0&&(this._panes[0].collapsed().setValue(!1),t=1),this._paneCollapsingAvailable.setValue(t>1)},this._chartApi=e,this._invalidateHandler=t,this._undoModel=o,this._properties=i,this._options=(0,_e.merge)((0,_e.clone)(Di),c),this._collapsedWV=h,this._isAutoSaveEnabled=d,this._studiesMetaInfoRepository=n,this._readOnly=this._options.readOnly,this._isSnapshot=this._options.isSnapshot,this._chartSaveTime=(new Date).valueOf(),this._backgroundColor=new(G())(this._getBackgroundColor()),this._backgroundTopColor=new(G())(this._getBackgroundColor(!0)),this._properties.childs().paneProperties.childs().background.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundType.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.subscribe(this,this._updateBackgroundColor),this._backgroundColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._backgroundTopColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._watchedThemeSpawn.subscribe(this._updateBackgroundColor.bind(this)),this._symbolSourceResolvingActive.subscribe(this._recalcAdjustForDividendsAvailibility), -this.setStudiesMetaData(this._studiesMetaInfoRepository.getInternalMetaInfoArray(),this._studiesMetaInfoRepository.getMigrations()),(0,lt.init)();const u=this._readOnly?new(x())((0,D.defaults)("chartproperties.paneProperties.crossHairProperties")):this._properties.childs().paneProperties.childs().crossHairProperties;this.m_crossHairSource=new Ti(this,u,this._options.crossHair),this.m_crossHairSource.selectPointMode().subscribe(e=>{if(e&&this.lineBeingCreated()){const e=lt.tool.value();this.cancelCreatingLine(),lt.tool.setValue(e)}}),this._tagsChanged=new(U());const p=new P.DefaultProperty("chartproperties.mainSeriesProperties");p.addExclusion("minTick"),p.addExclusion("priceAxisProperties.lockScale"),p.addExclusion("priceAxisProperties.percentage"),p.addExclusion("priceAxisProperties.indexedTo100"),p.addExclusion("priceAxisProperties.isInverted"),p.addExclusion("priceAxisProperties.log"),p.addExclusion("priceAxisProperties.logDisabled"),p.addExclusion("priceAxisProperties.percentageDisabled"),p.addExclusion("priceAxisProperties.autoScaleDisabled"),p.merge(i.childs().mainSeriesProperties.state()),this._timeScale=new $e(this,this._options.timeScale);const _={countdownEnabled:this._options.countdownEnabled,lastPriceAnimationEnabled:this._options.lastPriceAnimationEnabled};this.m_mainSeries=new xi.Series(this,p,_,r),this.m_mainSeries.onStyleChanged().subscribe(this._timeScale,this._timeScale.invalidateVisibleBars);const m=()=>this.fullUpdate();this.m_mainSeries.properties().childs().showCountdown.subscribe(this,()=>{this.m_mainSeries.updateAllViews((0,O.dataSourceChangeEvent)(this.m_mainSeries.id())),m()}),(0,Y.currencyUnitVisibilityProperty)().subscribe(this,m),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this.m_mainSeries,this.m_mainSeries.clearHighLowPriceCache),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this.m_mainSeries,this.m_mainSeries.clearAveragePriceCache),this.createPane(void 0,{axisProperties:p.childs().priceAxisProperties.state(["autoScale"])}),this._adjustForDividendsAvailability.subscribe(this._recalcAdjustForDividendsEnabled),this.mainSeries().properties().childs().dividendsAdjustment.subscribe(this,this._recalcAdjustForDividendsEnabled),this._recalcAdjustForDividendsEnabled(),this._boundUpdateStudiesMaxOffset=this._updateStudiesMaxOffset.bind(this),this.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,(e,t,i,s)=>{if(null!==this._lastAppliedTimeRange&&null!==i&&s&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,i)){const e=this.appliedTimeFrame().value();null!==e&&!this._lastAppliedTimeRange.actual&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,e.val)&&this.appliedTimeFrame().setValue(null),this._lastAppliedTimeRange=null}})}setStudiesMetaData(e,t){this._studiesMetaData=e,this._studyVersioning=new(b())(this._studiesMetaData,t)}restart(){this._chartApi.switchTimezone(this.timezone()),this._timeScale.reset(),this.m_mainSeries.restart();for(const e of this.dataSources())e.restart&&e!==this.m_mainSeries&&e.restart();this.sessions().restart()} -version(){return 3}collapsed(){return this._collapsedWV}chartSaveTime(){return this._chartSaveTime}setChartSaveTime(e){this._chartSaveTime=e}destroy(){this._phantomSourceContainer.destroy(),this._hoveredSourceChanged.destroy(),null!==this._watermarkSource&&(this._watermarkSource.destroy(),this._watermarkSource=null),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),(0,r.assert)(0===this._topmostCustomSources.length),(0,r.assert)(0===this._fgCustomSources.length),(0,r.assert)(0===this._bgCustomSources.length),(0,r.assert)(0===this._allCustomSources.length),(0,r.assert)(0===this._customSourcesMap.size),null!==this._esdWatcher&&(this._esdWatcher.destroy(),this._esdWatcher=null),null!==this._alertsWatcher&&(this._alertsWatcher.destroy(),this._alertsWatcher=null),this._properties.childs().paneProperties.childs().background.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundType.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.unsubscribeAll(this),this._watchedThemeSpawn.destroy(),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,(0,Y.currencyUnitVisibilityProperty)().unsubscribeAll(this),this._destroyed=!0}undoModel(){return this._undoModel}onData(e){switch(e.method){case"timescale_update":{const t=e.params;this._updateTimeScale({index:t.index,zoffset:t.zoffset,values:t.changes,indexDiffs:t.index_diff,baseIndex:t.baseIndex,marks:t.marks,clearFlag:t.clear});break}case"timescale_completed":{const t=Boolean(e.params[0]);this._timeScale.onTimeScaleCompleted(t);break}}}addStrategySource(e,t){1!==t&&-1===this._strategySources.indexOf(e)&&(this._strategySources.push(e),this._strategySourcesChange.fire(t),this.setActiveStrategySource(e))}removeStrategySource(e,t){if(1===t)return;const i=this._strategySources.indexOf(e);if(-1!==i){if(this._strategySources.splice(i,1)[0]===this._activeStrategySource.value()&&this.unsetActiveStrategySource(),this._strategySources.length>0){const e=this._strategySources[this._strategySources.length-1];this.setActiveStrategySource(e)}this._strategySourcesChange.fire(t)}}setActiveStrategySource(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)}unsetActiveStrategySource(){this._activeStrategySource.setValue(null)}activeStrategySource(){return this._activeStrategySource}strategySources(){return this._strategySources}strategySourcesChange(){return this._strategySourcesChange}setScrollEnabled(e){this._scrollEnabled=e}scrollEnabled(){return this._scrollEnabled}setZoomEnabled(e){this._zoomEnabled=e}zoomEnabled(){return this._zoomEnabled}zoomToViewport(e,t,i,s,r){this.setTimeViewport(e,t);let n=Math.min(i,s),o=Math.max(i,s);const a=r.defaultPriceScale();a.isPercentage()||a.setMode({autoScale:!1}),a.isLog()&&(n=a.priceToLogical(n),o=a.priceToLogical(o)),a.setPriceRange(new ae.PriceRange(n,o)),this.recalculateAllPanes((0,O.viewportChangeEvent)()), -this.invalidate(this._paneInvalidationMask(r,q.InvalidationLevel.Light)),this._setScalesResetAvailable(!0)}setTimeViewport(e,t){const i=this.appliedTimeFrame().value();null!==this._lastAppliedTimeRange&&null!==i&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,i.val)&&!this._lastAppliedTimeRange.actual||(this.timeScale().zoomToBarsRange(e,t),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies(),this.lightUpdate())}onTagsChanged(){return this._tagsChanged}canZoomIn(){return this._timeScale.canZoomIn()&&this._zoomEnabled}canZoomOut(){return this._timeScale.canZoomOut()&&this._zoomEnabled}onPaneTagsChanged(){this._tagsChanged.fire()}panesCollectionChanged(){return this._panesCollectionChanged}dataSourceCollectionChanged(){return this._dataSourceCollectionChanged}symbolSourceCollectionChanged(){return this._symbolSourceCollectionChanged}symbolSourceResolved(){return this._symbolSourceResolved}symbolSourceResolvingActive(){return this._symbolSourceResolvingActive}adjustForDividendsAvailability(){return this._adjustForDividendsAvailability}adjustForDividendsEnabled(){return this._adjustForDividendsEnabled}paneCollapsingAvailable(){return this._paneCollapsingAvailable}sourcePropertiesChanged(){return this._sourceProperitesChanged}sourceZOrderChanged(){return this._sourceZOrderChanged}updateCrosshairPositionByOriginCoords(){const e=this.crossHairSource(),t=e.pane;let i=e.originX(),s=e.originY();if(Number.isFinite(i)||(i=e.x,s=e.y),null!==t&&Number.isFinite(i)&&Number.isFinite(s)){const n=this._timeScale.coordinateToVisibleIndex(i);let o=NaN;const a=t.defaultPriceScale();if(!a.isEmpty()){const e=(0,r.ensureNotNull)(t.mainDataSource()).firstValue();null!==e&&(o=a.coordinateToPrice(s,(0,r.ensureNotNull)(e)))}this.crossHairSource().setPosition(n,o,t)&&e.isOnHoveredChartWidget()&&this._syncCrosshair()}}zoomTime(e,t,i){if(!this._zoomEnabled)return;const s=this.timeScale();if(s.isEmpty()||0===t)return;const r=s.width();e=Math.max(1,Math.min(e,r-2)),s.zoom(e,t,i),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._setScalesResetAvailable(!0)}linePointBeingEdited(){return this._linePointBeingEdited}activeItemBeingMoved(){return this._activeItemBeingMoved}linePointBeingChanged(){return this._linePointBeingChanged}updateAllPaneViews(e){for(const t of this._panes)t.updateAllViews(e);for(const t of this.barsMarksSources())t.updateAllViews(e)}dataSources(){const e=[this.crossHairSource()];for(const t of this._panes)for(const i of t.dataSources())e.push(i);return e}priceDataSources(){const e=[];for(const t of this._panes)for(const i of t.priceDataSources())e.push(i);return e}symbolSources(){const e=[];for(const t of this._panes)for(const i of t.symbolSources())e.push(i);return e}selection(){return this._selection}selectionMacro(e){const t=this.selection().allSources();e({removeSourceFromSelection:this._removeSourceFromSelection,addSourceToSelection:this._addSourceToSelection,clearSelection:this._clearSelection, -selection:this.selection.bind(this)});const i=(0,g.subtract)(t,this.selection().allSources()),s=(0,g.subtract)(this.selection().allSources(),t);s.concat(t).forEach(e=>e.updateAllViews((0,O.selectionChangeEvent)())),i.forEach(e=>{const t=(0,f.isLineTool)(e)&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!1)}),s.forEach(e=>{const t=(0,f.isLineTool)(e)&&e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!0)}),this.lightUpdate(),(i.length>0||s.length>0)&&this._selectedSourceChanged.fire()}onSelectedSourceChanged(){return this._selectedSourceChanged}checkLineToolSelection(){const e=this.selection().allSources();this._selection.checkLineToolSelection(),e.length!==this.selection().allSources().length&&this._selectedSourceChanged.fire()}lineToolsGroupModel(){return this._lineToolsGroupModel}restoreLineToolsGroups(e){this._lineToolsGroupModel=tt.fromState(this,e)}realignLineTools(e){for(const t of this._panes)(void 0===e||t.hasDataSource(e))&&t.realignLineTools(e)&&this._dataSourceCollectionChanged.fire(t)}isSnapshot(){return this._isSnapshot}onWidget(){return this._options.onWidget}hideIdeas(){return this._options.hideIdeas}updateSource(e){const t=this._invalidationMaskForSource(e);null!==t&&this.invalidate(t)}updateSourcePriceScale(e){const t=this._invalidationMaskForSourcePriceScale(e);null!==t&&this.invalidate(t)}updatePane(e){this.invalidate(this._paneInvalidationMask(e))}replaceStudyStub(e,t){const i=this.paneForSource(e);if(null===i)return!1;const s=e.priceScale(),r=e.zorder(),n=e.ownerSource();return this.paneForSource(e)===i?i.replaceSource(e,t,s):(i.insertDataSource(t,s,r),this.removeSource(e)),t.setOwnerSource(n),this.dataSources().forEach(i=>{i.ownerSource()===e&&i.setOwnerSource(t)}),t.start(),this.recalculatePane(i,(0,O.dataSourceChangeEvent)(t.id())),this.fullUpdate(),!0}insertStudyStub(e){const t=this.mainSeries(),i=(0,r.ensureNotNull)(this.paneForSource(t)),s=new w.StudyStub(this,null,e),n=i.createPriceScaleAtPosition("overlay");return i.addDataSource(s,n,!1),this.recalculatePane(i,(0,O.dataSourceChangeEvent)(s.id())),this.fullUpdate(),s}removeStudyStub(e){const t=this.dataSourceForId(e);return null===t?(Ai.logNormal("StudyStub id="+e+" is not found in chart model"),!1):(this.removeSource(t),!0)}setHoveredSource(e,t=null){const i=this._hoveredSource!==e;if(!i&&this._lastHoveredHittestData===t)return;this._lastHoveredHittestData=t;let s=null;if(this._hoveredSource){this._hoveredSource.updateAllViews((0,O.selectionChangeEvent)()),s=new q.InvalidationMask(q.InvalidationLevel.Cursor);const e=this._invalidationMaskForSource(this._hoveredSource,q.InvalidationLevel.Light);null!==e&&s.merge(e)}if(this._hoveredSource=e,e){e.updateAllViews((0,O.selectionChangeEvent)()),s||(s=new q.InvalidationMask(q.InvalidationLevel.Cursor));const t=this._invalidationMaskForSource(e,q.InvalidationLevel.Light);null!==t&&s.merge(t)}s&&this.invalidate(s),i&&this._hoveredSourceChanged.fire(e)}properties(){return this._properties}disconnect(){this.sessions().stop() -;for(const e of this.dataSources())e.disconnect&&e.disconnect();this._timeScale.disconnect()}gridSource(){return this._gridSource}hoveredSource(){return this._hoveredSource}hoveredSourceChanged(){return this._hoveredSourceChanged}lastHittestData(){return this._lastHoveredHittestData}lastSelectedHittestData(){return this._lastSelectedHittestData}syncTimeWithModel(e,t){const i=this.mainSeries().syncModel();if(null===i)return;const s=1e3*this.createSyncPoint(e,i.syncSourceTarget()).sourceTimeToTargetTime(t/1e3),r=(0,it.get_timezone)(this.timezone());let n=(0,it.utc_to_cal)(r,s);this.mainSeries().isDWM()&&(n=i.getSession().spec.correctTradingDay(n),(0,it.set_hms)(n,0,0,0,0,(0,it.get_timezone)("Etc/UTC"))),this._gotoTimeImpl(n.getTime(),{centerIfVisible:!1})}gotoTime(e){return this._gotoTimeImpl(e,{centerIfVisible:!0})}recalculatePane(e,t){null==e||e.recalculate(t)}recalculateAllPanes(e){this._panes.forEach(t=>t.recalculate(e)),this.updateAllPaneViews(e),this.crossHairSource().updateAllViews(e)}gotoTimeRange(e,t){const i=this.timeScale(),s=i.tickMarks(),n=this.mainSeries();if(void 0===s.minIndex)return;let o=e,a=t;const l=n.symbolInfo();if(null!==l){let i=this.properties().childs().timezone.value();"exchange"===i&&(i=l.timezone);const s=(0,it.get_timezone)(i),r=(0,it.utc_to_cal)(s,e),c=(0,it.utc_to_cal)(s,t);if(n.isDWM()){const e=(0,it.get_timezone)("Etc/UTC");(0,it.set_hms)(r,0,0,0,0,e),(0,it.set_hms)(c,0,0,0,0,e)}o=r.getTime(),a=c.getTime()}const c=(0,r.ensureDefined)(s.maxIndex),h=(0,r.ensureNotNull)(s.indexToTime((0,r.ensureDefined)(s.minIndex))).valueOf();if(h-o<=0&&h-a<=0){const e=(e,t)=>e(0,r.ensureNotNull)(s.indexToTime(e)).valueOf(),n=(0,g.lowerboundExt)(t,o,e,s.nearestIndex(o),c),l=(0,g.lowerboundExt)(t,a,e,s.nearestIndex(a),c);if(null!==this._lastAppliedTimeRange&&(this._lastAppliedTimeRange.actual=!1),n!==l)i.zoomToBarsRange(n,l),this.lightUpdate();else{this.startScrollTime(0);const e=((0,r.ensureNotNull)(i.logicalRange()).left()-n+1)*i.barSpacing();this.scrollTimeTo(e),this.endScrollTime()}}else{const i={type:"time-range",from:e/1e3,to:t/1e3};this._lastAppliedTimeRange={range:i,actual:!0},n.loadDataTo(i)}}paneForSource(e){if(!(0,m.isDataSource)(e))return Array.from(this._customSourcesMap.values()).includes(e)?this.paneForSource(this.mainSeries()):null;for(let t=this._panes.length-1;t>=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof ht.BarsMarksContainer?this.paneForSource(this.mainSeries()):null}mainPane(){for(const e of this._panes)if(e.isMainPane())return e;throw new Error("Main pane is not found")}lastPane(){return this._panes[this._panes.length-1]}removeSource(e,t){this.selectionMacro(t=>t.removeSourceFromSelection(e)),this._hoveredSource===e&&(this._hoveredSource=null,this._lastHoveredHittestData=null),this._sourcesBeingMoved.includes(e)&&(this._sourcesBeingMoved=this._sourcesBeingMoved.filter(t=>t!==e),this._sourcesBeingMoved.length||(this._activeItemBeingMoved=null)),e===this._lineBeingEdited&&(this._lineBeingEdited=null,lt.isToolEditingNow.setValue(!1)), -e===this._lineBeingCreated&&(this._lineBeingCreated=null,lt.isToolCreatingNow.setValue(!1)),e.stop&&e.stop();const i=this.detachSource(e),s=this.mainSeries().priceScale();return(0,H.isStudy)(e)&&(0,le.isActingAsSymbolSource)(e)&&e.priceScale()===s&&s.isPercentage()&&1===s.seriesLikeSources().filter(le.isActingAsSymbolSource).length&&s.setMode({percentage:!1}),this.fullUpdate(),this._invalidateBarColorerCaches(),(0,H.isStudy)(e)&&((0,u.emit)("study_event",e.id(),"remove"),e.isChildStudy()&&e.parentSource().unsetChild(e),e.maxOffset().unsubscribe(this._boundUpdateStudiesMaxOffset)),e.destroy&&e.destroy(),(0,f.isLineTool)(e)&&(e.removeAlert(),(0,u.emit)("drawing_event",e.id(),"remove")),i}allStudies(e){const t=e?e=>(0,H.isStudy)(e)&&!0:H.isStudy;return this._getAllSources(t)}findNonOverlayStudyWithGroupingKey(e,t){const i=void 0!==t?[t]:this._panes;for(const t of i){const i=t.dataSources().find(i=>(0,H.isStudy)(i)&&i.metaInfo().groupingKey===e&&!t.isOverlay(i));if(void 0!==i)return{pane:t,study:i}}return null}movePaneUp(e){this.movePane(e,e-1)}movePaneDown(e){this.movePane(e,e+1)}movePane(e,t){const i=this._panes[e];this._panes.splice(e,1),this._panes.splice(t,0,i),this._panesCollectionChanged.fire(this._panes),this._onRearrangePanes.fire(),this.invalidate(q.InvalidationMask.panesOrder())}backgroundColor(){return this._backgroundColor}backgroundTopColor(){return this._backgroundTopColor}backgroundColorAtYPercentFromTop(e){const t=this.backgroundColor().value(),i=this.backgroundTopColor().value();if(t===i)return t;if(e=Math.max(0,Math.min(100,Math.round(100*e))),null===this._gradientColorsCache||this._gradientColorsCache.topColor!==i||this._gradientColorsCache.bottomColor!==t)this._gradientColorsCache={topColor:i,bottomColor:t,colors:new Map};else{const t=this._gradientColorsCache.colors.get(e);if(void 0!==t)return t}const s=(0,ct.gradientColorAtPercent)(i,t,e/100);return this._gradientColorsCache.colors.set(e,s),s}backgroundCounterColor(){const e=this.backgroundColor().value();if(void 0===this._lastBackgroundColor||void 0===this._lastOriginalColor||e!==this._lastBackgroundColor){const t=(0,o.rgbToBlackWhiteString)((0,o.parseRgb)(e),150);this._lastBackgroundColor=e,this._lastOriginalColor="black"===t?"white":"black"}return this._lastOriginalColor}isDark(){return"white"===this.backgroundCounterColor()}defaultResolutions(){return this.chartApi().defaultResolutions()}availableCurrencies(){const e=this._getAvailableCurrencies();return e.length!==this._availableCurrencies.size()&&(this._availableCurrencies=new pt(e)),this._availableCurrencies}currencyConversionEnabled(){return this._options.currencyConversionEnabled}availableUnits(){const e=this._getAvailableUnits();return this._availableUnits.unitsChanged(e)&&(this._availableUnits=new _t(e)),this._availableUnits}unitConversionEnabled(){return this._options.unitConversionEnabled}resetDeferredStudies(){ve.instance(this).reset()}isJustClonedChart(){return this._undoModel.isJustClonedChart()}studyTemplate(e,t,i){const s={panes:[],version:this.version()} -;for(const e of this.panes())s.panes.push(e.state(!0,!1,!0));const r=this.mainSeries();return e&&(s.symbol=r.symbol(),this.currencyConversionEnabled()&&i&&(s.currency=r.currency()),this.unitConversionEnabled()&&i&&(s.unit=r.unit())),t&&(s.interval=r.interval()),s}restoreLineToolState(e,t,i){e.restorePoints(t.points,t.indexes||[]),e.properties().merge(t.state),e.restoreData&&e.restoreData(t),e.linkKey().setValue(t.linkKey||null),e.createServerPoints(),this.fullUpdate();const s=e.linkKey().value();null!==s&&i&&(0,lt.restoreLineToolState)({model:this,linkKey:s,state:t})}preferences(){return(0,Mi.preferencesByWhiteList)(this,this.mainSeries())}restoreTheme(e,t,i){e.mainSourceProperties.hollowCandleStyle||(e.mainSourceProperties.hollowCandleStyle=e.mainSourceProperties.candleStyle),this._undoModel.chartLoadTheme(e,t,i)}onResetScales(){return this._resetScales}startMovingSources(e,t,i,s,n,o){this._sourcesBeingMoved=e,this._activeItemBeingMoved=i;let a=!1;if(this._sourcesBeingMoved.forEach(e=>{!a&&(0,H.isStudy)(e)&&(a=!0);const l=(0,r.ensureNotNull)(this.paneForSource(e)),c=(0,f.isLineTool)(e),h=c&&e.linkKey().value();if(!1!==h&&null!==h&&s.has(h)&&c&&e.isFixed()){const t=(0,r.ensureDefined)(s.get(h)),a={screen:this._percentPositionToPoint(t,l)};e.startMoving(a,i,n,o)}else e.startMoving(t,i,n,o);const d=this._paneInvalidationMask(l,q.InvalidationLevel.Light);this.invalidate(d)}),!o){const s=e.filter(f.isLineTool).filter(e=>e.linkKey().value()&&e.isSynchronizable()).map(e=>e.linkKey().value());if(s.length&&t.logical){const o=this.externalTimeStamp(t.logical.index),a={linkKeys:s,model:this,symbol:this.mainSeries().symbol(),point:{price:t.logical.price,timeStamp:o},activeItem:null!==i?i:void 0,envState:n,pointPositionPercents:new Map};e.forEach(e=>{if((0,f.isLineTool)(e)){const i=e.linkKey().value();if(i&&e.isSynchronizable()&&e.isFixed()){const s=(0,r.ensureNotNull)(this.paneForSource(e));a.pointPositionPercents.set(i,this._pointToPercentPosition((0,r.ensureDefined)(t.screen),s))}}}),(0,lt.startMovingLineTool)(a)}}lt.isToolMovingNow.setValue(!0),a&<.isStudyEditingNow.setValue(!0)}moveSources(e,t,i,s){if(this._sourcesBeingMoved.filter(e=>!e.isLocked||!e.isLocked()).forEach(n=>{const o=(0,f.isLineTool)(n)?n.linkKey().value():null;if(null!==o&&t.has(o)){const e=(0,r.ensureNotNull)(this.paneForSource(n)),a=(0,r.ensureDefined)(t.get(o)),l={screen:this._percentPositionToPoint(a,e)};n.move(l,this._activeItemBeingMoved,i,s)}else n.move(e,this._activeItemBeingMoved,i,s)}),this.lightUpdate(),!s&&e.logical){const t=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey().value()).map(e=>e.linkKey().value()),s=this.externalTimeStamp(e.logical.index),n={linkKeys:t,model:this,point:{price:e.logical.price,timeStamp:s},envState:i,pointPositionPercents:new Map};this._sourcesBeingMoved.filter(f.isLineTool).forEach(t=>{if(t.linkKey().value()&&t.isSynchronizable()&&t.isFixed()){const i=(0,r.ensureNotNull)(this.paneForSource(t));n.pointPositionPercents.set(t.linkKey().value(),this._pointToPercentPosition((0, -r.ensureDefined)(e.screen),i))}}),(0,lt.moveLineTool)(n)}}endMovingSources(e,t,i){const s=this._sourcesBeingMoved.map(s=>{const n=(0,r.ensureNotNull)(this.paneForSource(s)),o=s.endMoving(e,t,i),a=this._paneInvalidationMask(n,q.InvalidationLevel.Light);return a.invalidateAll(q.InvalidationLevel.Light),this.invalidate(a),o}),n=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey().value()).map(e=>e.linkKey().value()),o=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey).map(e=>{const t={points:e.normalizedPoints(),interval:this.mainSeries().interval()};return e.isFixed()&&(t.pointPositionPercents=e.calcPositionPercents()),t});n.length&&(0,lt.finishMovingLineTool)({linkKeys:n,model:this,finalStates:o,changes:s}),this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,lt.isToolMovingNow.setValue(!1),lt.isStudyEditingNow.setValue(!1)}sourcesBeingMoved(){return this._sourcesBeingMoved}setMovingCustomSource(e,t){this._customSourceBeingMoved=e,this._customSourceBeingMovedHitTestData=null!==t?{beingMoved:!1,...t}:null}processingCustomSourceMove(){null!==this._customSourceBeingMovedHitTestData&&(this._customSourceBeingMovedHitTestData.beingMoved=!0)}customSourceMovingHitTestData(){return this._customSourceBeingMovedHitTestData}customSourceBeingMoved(){return null!==this._customSourceBeingMovedHitTestData&&this._customSourceBeingMovedHitTestData.beingMoved?this._customSourceBeingMoved:null}width(){return this._width}setWidth(e,t){this._width=e,this._timeScale.setWidth(e,t);for(const t of this._panes)t.setWidth(e);this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies()}setPaneHeight(e,t){e.setHeight(t),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate()}isScalesResetAvailableChanged(){return this._isScalesResetAvailableChanged}isScalesResetAvailable(){return this._isScalesResetAvailable}panes(){return this._panes}paneForId(e){return this._panes.find(t=>t.id()===e)||null}createPane(e,t,i){const s=this._undoModel.chartWidget();s.isMaximizedPane()&&s.toggleMaximizePane(null);const r=this._properties.childs().paneProperties;t&&r.merge(t);const n=new Le(this._timeScale,r,this,i);return void 0!==e?this._panes.splice(e,0,n):this._panes.push(n),n.onTagsChanged().subscribe(this,Vi.prototype.onPaneTagsChanged),n.dataSourcesCollectionChanged().subscribe(this,()=>this._dataSourceCollectionChanged.fire(n)),n.symbolSourceCollectionChanged().subscribe(this,()=>this._onSymbolSourceCollectionChanged(n)),n.sourcePropertiesChanged().subscribe(this,e=>this._sourceProperitesChanged.fire(n,e)),n.sourceZOrderChanged().subscribe(this,e=>this._sourceZOrderChanged.fire(n,e)),n.symbolSourceResolved().subscribe(this,e=>this._symbolSourceResolved.fire(n,e)),n.symbolSourceResolvingActive().subscribe(this._recalcSymbolResolvingActive),n.collapsed().subscribe(this._recalcPaneCollapsingAvailable),this._recalcPaneCollapsingAvailable(),this._panesCollectionChanged.fire(this._panes),this.invalidate(q.InvalidationMask.panesOrder()),n} -removePane(e){const t=this._undoModel.chartWidget();t.isMaximizedPane()&&t.toggleMaximizePane(null);const i=e;i.destroy();const s=this._panes.indexOf(i);-1!==s&&(this._panes.splice(s,1),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.symbolSourceCollectionChanged().unsubscribeAll(this),e.sourcePropertiesChanged().unsubscribeAll(this),e.onTagsChanged().unsubscribeAll(this),e.symbolSourceResolved().unsubscribeAll(this),i.symbolSourceResolvingActive().unsubscribe(this._recalcSymbolResolvingActive),e.collapsed().unsubscribe(this._recalcPaneCollapsingAvailable),this._recalcPaneCollapsingAvailable(!0));this.crossHairSource().pane===e&&this.clearCurrentPosition(),this._panesCollectionChanged.fire(this._panes),this.invalidate(q.InvalidationMask.panesOrder())}changePanesHeight(e,t){if(this._panes.length<2)return;(0,r.assert)(e>=0&&ee+t.stretchFactor(),0),n=this._panes.reduce((e,t)=>e+t.height(),0),o=n-30*(this._panes.length-1);t=Math.min(o,Math.max(30,t));const a=s/n,l=i.height();i.setStretchFactor(t*a);let c=t-l,h=this._panes.length-1;for(const e of this._panes)if(e!==i){const t=Math.min(o,Math.max(30,e.height()-c/h));c-=e.height()-t,h-=1;const i=t*a;e.setStretchFactor(i)}this.fullUpdate()}clearCurrentPosition(){const e=this.crossHairSource();e.clearPosition(),(0,r.ensureNotNull)(e.dataWindowView()).update(),ki(this._panes),this.invalidate(q.InvalidationMask.cursor());const t=this._undoModel.chartWidget();t.chartWidgetCollection().syncCrosshair(null,t.id()),this._phantomSourceContainer.onCursorPositionUpdated()}setAndSaveCurrentPosition(e,t,i,s){this.crossHairSource().saveOriginCoords(e,t),this.setCurrentPosition(e,t,i,s)}setCurrentPosition(e,t,i,s){let n=NaN;const o=this._timeScale.coordinateToVisibleIndex(e),a=i.defaultPriceScale();let l=null;!a.isEmpty()&&Number.isFinite(t)&&(l=(0,r.ensureNotNull)(i.mainDataSource()).firstValue(),null!==l&&(n=a.coordinateToPrice(t,l)));const c=this.crossHairSource(),h=c.selectPointMode().value(),d=this.currentTool(),u=this.mainSeries(),p=h||lt.isStudyEditingNow.value(),_=this._lineBeingCreated||this._lineBeingEdited||(0,f.isLineToolName)(d)||(0,lt.toolIsMeasure)(d)||p;!this._isSettingsExternalPosition&&_&&(n=this._magnet.align(n,o,i),null!==l&&c.saveOriginCoords(c.originX(),a.priceToCoordinate(n,l)));let m=null;if(isNaN(n)||(m=i),this._isTimeScrolling){if(!this._isSettingsExternalPosition&&h){const e=u.bars().firstIndex(),t=u.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(o,e),t);s!==o&&this._setCorrectedPositionToCrosshair(s,n,l,i)}}else c.setPosition(c.index,n,m);return}c.setOnHoveredChartWidget(!0),c.setPosition(o,n,m),(0,r.ensureNotNull)(c.dataWindowView()).update(),ki(this._panes);const g=u.syncModel();if(this.crossHairSource().startMeasurePoint()||this._lineBeingCreated?this.lightUpdate():this.invalidate(q.InvalidationMask.cursor()),this._lineBeingCreated){const e=this._lineBeingCreated.linkKey().value();if(!this._isSettingsExternalPosition){ -const t=this._lineBeingCreated.setLastPoint({index:o,price:n},s);if(this._lineBeingCreated.updateAllViews((0,O.dataSourceChangeEvent)(this._lineBeingCreated.id())),t.price===n&&t.index===o||this._setCorrectedPositionToCrosshair(t.index,t.price,l,i),g&&e){const i=this._timeScale.points().roughTime(t.index,g.projectTime.bind(g));(0,lt.setLineToolLastPoint)({model:this,linkKey:e,point:{timeStamp:(0,r.ensureNotNull)(i),price:t.price}})}}}if(!this._isSettingsExternalPosition&&null!==this._lineBeingEdited&&null!==this._linePointBeingEdited){const e={index:o,price:n};this.changeLinePoint(e,s);const t=this._lineBeingEdited.alignCrossHairToAnchor(this._linePointBeingEdited)?this._lineBeingEdited.getPoint(this._linePointBeingEdited):e;null!==t&&this._setCorrectedPositionToCrosshair(t.index,t.price,l,i)}if(!this._isSettingsExternalPosition&&p){const e=u.bars().firstIndex(),t=u.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(o,e),t);s!==o&&this._setCorrectedPositionToCrosshair(s,n,l,i)}}this._syncCrosshair(s)}setExternalPosition(e,t){let i;const s=this.crossHairSource();if(s.setOnHoveredChartWidget(!1),null!==e&&(0,_e.isNumber)(e.timeStamp)){const t=this.mainSeries().syncModel();if(t){const s=this.createSyncPoint(e.syncSourceTarget,t.syncSourceTarget()).sourceTimeToTargetTime(e.timeStamp);i=this._timeScale.points().roughIndex(s,t.distance.bind(t))}}if(null!==e&&null!=i&&Number.isFinite(i)){this._isSettingsExternalPosition=!0;const n=(0,r.ensureNotNull)(this.paneForSource(this.mainSeries())),o=this._timeScale.indexToCoordinate(i),a=(0,r.ensureNotNull)(n.mainDataSource()).firstValue();if(null!==a){let i=NaN;void 0!==e.price&&Number.isFinite(e.price)&&(i=this.mainSeries().priceScale().priceToCoordinate(e.price,a)),s.clearOriginCoords(),this.setCurrentPosition(o,i,n,t)}return s.setOnHoveredChartWidget(!1),void(this._isSettingsExternalPosition=!1)}s.clearPosition(),(0,r.ensureNotNull)(s.dataWindowView()).update(),ki(this._panes),this.invalidate(q.InvalidationMask.cursor())}startScaleTime(e){this._timeScale.startScale(e)}scaleTimeTo(e){this._timeScale.scaleTo(e),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(),this._setScalesResetAvailable(!0)}endScaleTime(){this._timeScale.endScale(),this.lightUpdate(),this.recalcVisibleRangeStudies()}resetTimeScale(){this._timeScale.restoreDefault(),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies(),this.lightUpdate(),this._resetScales.fire(),this._setScalesResetAvailable(!1)}startScalePrice(e,t,i){e.startScalePrice(t,i)}scalePriceTo(e,t,i){e.scalePriceTo(t,i),this.mainSeries().priceScale().isLockScale()?this.lightUpdate():this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light)),this._setScalesResetAvailable(!0)}endScalePrice(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}startTwoPointsScalePrice(e,t,i,s){t.startTwoPointsScale(i,s)}twoPointsScalePriceTo(e,t,i,s){t.twoPointsScale(i,s),this.invalidate(this._paneInvalidationMask(e)), -this._setScalesResetAvailable(!0)}endTwoPointsScalePrice(e,t){t.endTwoPointsScale(),this.invalidate(this._paneInvalidationMask(e))}resetPriceScale(e,t){this._setScalesResetAvailable(!1),e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}restorePriceScaleState(e,t,i){e.restorePriceScaleState(t,i),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}currentTool(){return this._currentTool}setCurrentTool(e){this._currentTool!==e&&((0,f.isLineToolName)(e)&&this.selectionMacro(e=>{e.clearSelection()}),this._currentTool=e,this._phantomSourceContainer.onToolChanged())}detachSource(e){const t=this.paneForSource(e);return!!t&&(t.removeDataSource(e),t.isEmpty()?(this._lineBeingCreated&&t===this._paneBeingCreatedLineOn&&this.cancelCreatingLine(),this.removePane(t),!0):(this.fullUpdate(),!1))}onRearrangePanes(){return this._onRearrangePanes}finishLineTool(e){const t=e.linkKey().value();(0,lt.drawOnAllCharts)().value()&&null!==t&&e.isSynchronizable()&&(0,lt.finishLineTool)({linkKey:t,model:this})}startChangingLinetool(e,t,i,s,n){this._lineBeingEdited=e,this._linePointBeingChanged=t||null,this._linePointBeingEdited=void 0===i?null:i,this._lineBeingEdited.startChanging(i,t,n),lt.isToolEditingNow.setValue(!0);const o=(0,r.ensureNotNull)(this.paneForSource(e));this._lineBeingEdited.startDragPoint&&void 0!==i&&void 0!==t&&this._lineBeingEdited.startDragPoint(i,t),n||void 0===i||void 0===t||this._lineBeingEdited.setPoint(i,t,s,n),this._lineBeingEdited.updateAllViews((0,O.dataSourceChangeEvent)(this._lineBeingEdited.id()));const a=this._paneInvalidationMask(o,q.InvalidationLevel.Light);this.invalidate(a);const l=e.linkKey().value();if(l&&e.isSynchronizable()&&void 0!==i&&void 0!==t){const e=(0,r.ensureNotNull)(this.externalTimeStamp(t.index));(0,lt.startChangingLineTool)({linkKey:l,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:e},pointIndex:i,envState:s||null})}}createLineTool(e,t,i,s,o,a,l){if((0,r.assert)((0,f.isLineToolName)(i),"Cannot create unknown line tool: "+i),s){const e={...Li.intervalsVisibilitiesDefaults},t=s.childs().intervalsVisibilities.state();(0,_e.merge)(e,null!=t?t:{});const r=s.state();r.intervalsVisibilities=e,s=(0,f.createLineToolProperties)(i,r,this)}const c=(0,f.createLineTool)(i,this,s,null,void 0,l);if("LineToolExecution"!==i){const e="LineToolIcon"===i?c.properties().childs().icon.value().toString(16).toUpperCase():void 0;(0,h.trackEvent)("drawings","Study_Drawing_"+i,e)}const d=!c.linkKey().value()&&!o;a=(0,r.ensureDefined)(a||(0,r.ensureNotNull)(e.mainDataSource())),s||(0,f.prepareLineToolPropertiesByOwnerSource)(c.properties(),a),c.setOwnerSource(a);const u=a.priceScale();if(e.addDataSource(c,u,!1),(0,lt.drawOnAllCharts)().value()){const e=c.isSynchronizable()?o||(0,X.randomHash)():null;c.linkKey().setValue(e)}else c.linkKey().setValue(o);let p;if(c.isFixed()){const i=(0,r.ensureNotNull)((0,r.ensureNotNull)(e.mainDataSource()).firstValue()),s=this._timeScale.indexToCoordinate(t.index),o=(0, -r.ensureNotNull)(u).priceToCoordinate(t.price,i);p=c.addFixedPoint(new n.Point(s,o))}else p=c.addPoint(t);return p||(this._lineBeingCreated=c,this._paneBeingCreatedLineOn=e,lt.isToolCreatingNow.setValue(!0)),d&&c.enableCurrentIntervalVisibility(),this.fullUpdate(),c}endChangingLinetool(e,t){const i=(0,r.ensureNotNull)(this._lineBeingEdited),s=i.endChanging(!1,e,t);this._lineBeingEdited=null,lt.isToolEditingNow.setValue(!1),this._linePointBeingEdited=null,this._linePointBeingChanged=null,this.lightUpdate();const n={points:i.normalizedPoints(),interval:this.mainSeries().interval()},o=i.linkKey().value();null!==o&&i.isSynchronizable()&&!t&&(0,lt.finishChangingLineTool)({model:this,linkKey:o,symbol:this.mainSeries().symbol(),finalState:n,changes:s})}continueCreatingLine(e,t,i,s){const n=(0,r.ensureNotNull)(this._lineBeingCreated),o=n.addPoint(e,t,i);n.updateAllViews((0,O.dataSourceChangeEvent)(n.id()));const a=new q.InvalidationMask(q.InvalidationLevel.Light);return o&&(this._paneBeingCreatedLineOn=null,this._lineBeingCreated=null,lt.isToolCreatingNow.setValue(!1)),this.invalidate(a),o}cancelCreatingLine(){if(!this._lineBeingCreated)return;const e=this._lineBeingCreated;this.removeSource(this._lineBeingCreated),this._lineBeingCreated=null,this._lineCancelled.fire(),lt.isToolCreatingNow.setValue(!1),(0,lt.drawOnAllCharts)().value()&&e.isSynchronizable()&&(0,lt.cancelLineTool)({model:this})}lineBeingCreated(){return this._lineBeingCreated}paneBeingCreatedLineOn(){return this._paneBeingCreatedLineOn}lineCancelled(){return this._lineCancelled}isPhantomLine(e){return this._phantomSourceContainer.source()===e}changeLinePoint(e,t,i){const s=(0,r.ensureNotNull)(this._lineBeingEdited),n=(0,r.ensureNotNull)(this._linePointBeingEdited);let o=e.price,a=e.index;if(s.setPoint(n,e,t,i),!i){const t=s.alignCrossHairToAnchor(n)?s.getPoint(n):e;null!==t&&(a=t.index,o=t.price)}s.updateAllViews((0,O.dataSourceChangeEvent)(s.id())),this.lightUpdate();const l=s.linkKey().value();if(!i&&null!==l&&s.isSynchronizable()){const e=(0,r.ensureNotNull)(this._linePointBeingChanged),i={indexesChanged:a!==e.index,pricesChanged:o!==e.price},c=s.getChangePointForSync(n);if(null!==c){const e=this.externalTimeStamp(a);null!==e&&(o=c.price,(0,lt.changeLineTool)({linkKey:l,model:this,symbol:this.mainSeries().symbol(),point:{price:o,timeStamp:e},envState:t,changes:i}))}}}changeLinePoints(e,t,i){const s=e.points(),n=e.linkKey().value();!i&&n&&e.isSynchronizable()&&t.forEach((t,i)=>{const o=s[i],a=o.price!==t.price,l=o.index!==t.index;if(e.getChangePointForSync(i)){const e=(0,r.ensureNotNull)(this.externalTimeStamp(t.index));(0,lt.changeLineTool)({linkKey:n,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:e},changes:{pricesChanged:a,indexesChanged:l}})}}),e.setPoints(t),e.updateAllViews((0,O.dataSourceChangeEvent)(e.id())),this.lightUpdate()}startScrollTime(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0}scrollTimeTo(e){this._timeScale.scrollTo(e),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(), -this._setScalesResetAvailable(!0)}endScrollTime(){this._timeScale.endScroll(),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._isTimeScrolling=!1}startScrollPrice(e,t,i){e.startScrollPrice(t,i)}scrollPriceTo(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}endScrollPrice(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}addCustomSource(e,t,i=_.CustomSourceLayer.Foreground){this._customSourcesMap.has(e)&&Ai.logWarn(`Attempt to add the same custom source multiple time "${e}"`),Ai.logNormal(`Adding custom source "${e}"`);const s=t(e,this);switch(i){case _.CustomSourceLayer.Background:this._bgCustomSources.push(s);break;case _.CustomSourceLayer.Foreground:this._fgCustomSources.push(s);break;case _.CustomSourceLayer.Topmost:this._topmostCustomSources.push(s);break;default:throw new Error("Unknown custom sources layer "+i)}this._allCustomSources.push(s),this._customSourcesMap.set(e,s),this.lightUpdate()}removeCustomSource(e){this._removeCustomSource(e),this.lightUpdate()}hasCustomSource(e){return this._customSourcesMap.has(e)}customSourceForName(e){return this._customSourcesMap.get(e)||null}customSourceName(e){let t=null;return this._customSourcesMap.forEach((i,s)=>{i===e&&(t=s)}),t}customSources(e){switch(e){case _.CustomSourceLayer.Background:return this._bgCustomSources;case _.CustomSourceLayer.Foreground:return this._fgCustomSources;case _.CustomSourceLayer.Topmost:return this._topmostCustomSources;default:return this._allCustomSources}}addMultiPaneSource(e){this._multiPaneSources.push(e),this.lightUpdate()}removeMultiPaneSource(e){const t=this._multiPaneSources.indexOf(e);-1===t?Ai.logWarn("Attempt to remove multi-pane source which does not exist in the model"):this._multiPaneSources.splice(t,1),this.lightUpdate()}multiPaneSources(e){return this._multiPaneSources.filter(t=>!e.hasDataSource(t))}dateTimeFormatter(){return this._dateTimeFormatter}dateFormatter(){return this._dateFormatter}timeFormatter(){return this._timeFormatter}sessions(){return(0,r.ensureNotNull)(this._sessions)}createSessions(e){(0,r.assert)(null===this._sessions,"Sessions are already created"),this.addCustomSource("sessions",(t,i)=>(this._sessions=new W(t,i,e),this._sessions.start(),this._sessions),_.CustomSourceLayer.Background)}createPrePostMarket(e){this.addCustomSource("prePostMarket",(t,i)=>new PrePostMarket(t,i,e))}theme(){const e=this.properties().childs().paneProperties.state();delete e.topMargin,delete e.bottomMargin;const t=this.mainSeries().state().state;t&&(delete t.symbol,delete t.interval,delete t.currencyId,delete t.unitId);const i={mainSourceProperties:t,sessions:this.sessions().properties().state(),chartProperties:{paneProperties:e,scalesProperties:this.properties().childs().scalesProperties.state()},version:this.version()};return i.version=this.version(),i}onChartThemeLoaded(){return this._chartThemeLoaded}chartThemeLoaded(){this._chartThemeLoaded.fire()}state(e,t,i,s){var r -;const n=this.publishedChartsTimelineSource(),o=this.properties().childs(),a=o.tradingProperties.state(),l={panes:this._panes.map(r=>r.state(!0,e,!1,t,i,s)),timeScale:this._timeScale.state(e),chartProperties:{paneProperties:o.paneProperties.state(),scalesProperties:o.scalesProperties.state(),publishedChartsTimelineProperties:n?n.state(e):void 0,chartEventsSourceProperties:null===(r=o.chartEventsSourceProperties)||void 0===r?void 0:r.state(),tradingProperties:a,priceScaleSelectionStrategyName:o.priceScaleSelectionStrategyName.value()},sessions:this.sessions().state(e),version:this.version(),timezone:this.timezone(),shouldBeSavedEvenIfHidden:this._shouldBeSavedEvenIfHidden};return s||(l.lineToolsGroups=this.lineToolsGroupModel().state(t)),l}restoreState(e,t,i){ve.instance(this).reset();const s={};if(!e.panes)return void Ai.logDebug("ChartModel.restoreState: invalid state");if(!Array.isArray(e.panes))return void Ai.logDebug("ChartModel.restoreState: invalid state");if(e.panes.length<1)return void Ai.logDebug("ChartModel.restoreState: invalid state");if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){const i=(0,D.factoryDefaults)("chartproperties").scalesProperties;(0,_e.merge)(i,e.chartProperties.scalesProperties),!("showLastValue"in i)||"showSeriesLastValue"in i||"showStudyLastValue"in i||(i.showSeriesLastValueProperty=i.showLastValue,i.showStudyLastValueProperty=i.showLastValue),"showSeriesLastValue"in i&&(s.showSeriesLastValueProperty=!0),"showStudyLastValue"in i&&(s.showStudyLastValueProperty=!0),(!this.isSnapshot()&&!this.readOnly()&&"showCurrency"in i||"showUnit"in i)&&(0,Y.migrateShowCurrencyAndShowUnitProperties)(i.showCurrency,i.showUnit),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||(0,_e.clone)(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||(0,_e.clone)(e.chartProperties.paneProperties.gridProperties),"backgroundType"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.backgroundType=dt.ColorType.Solid),"separatorColor"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.separatorColor=(0,c.getThemedColor)("color-chart-page-bg")),this._properties.childs().paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.childs().scalesProperties.mergeAndFire(i),e.chartProperties.timezone&&this._properties.childs().timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.hasChild("chartEventsSourceProperties")&&this._properties.childs().chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties), -e.chartProperties.tradingProperties&&this._properties.hasChild("tradingProperties")&&(void 0===e.chartProperties.tradingProperties.horizontalAlignment&&(e.chartProperties.tradingProperties.horizontalAlignment=(r=e.chartProperties.tradingProperties.lineLength)<=40?_.TradingSourcesHorizontalAlignment.Right:r>=60?_.TradingSourcesHorizontalAlignment.Left:_.TradingSourcesHorizontalAlignment.Center),this._properties.childs().tradingProperties.mergeAndFire(e.chartProperties.tradingProperties)),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}var r;if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){const t=this._getExceedingChildStudies(e.panes);if(t.length){for(let i=e.panes.length-1;i>=0;--i){const s=e.panes[i];for(let e=s.sources.length-1;e>=0;--e){const i=s.sources[e];~t.indexOf(i)&&s.sources.splice(e,1)}s.sources.length||e.panes.splice(i,1)}0}}const n=e.version||0,o=e.panes;this.panes()[0].restoreState(o[0],t,n,s,i,!0);let a=1;for(let r=1;rd&&h%100==0?{lines_limit_exceeded:!0,line_tools_count:h}:(this.panes().forEach(e=>this._dataSourceCollectionChanged.fire(e)),this._lineToolsGroupModel.fireChangedAll(),{})}shouldBeSavedEvenIfHidden(){return this._shouldBeSavedEvenIfHidden}setShouldBeSavedEvenIfHidden(e){this._shouldBeSavedEvenIfHidden=e}externalTimeStamp(e){const t=this.mainSeries().syncModel();return this.timeScale().points().roughTime(e,t&&t.projectTime.bind(t))}syncESD(){null!==this._esdWatcher&&this._esdWatcher.syncESDStudies()}recalcVisibleRangeStudies(e){this._recalcVRStudiesParams.force=this._recalcVRStudiesParams.force||Boolean(e),this._recalcVisibleRangeStudiesImplDebounced()}recalcColorStudies(e){this._recalcColorStudiesParams.force=this._recalcColorStudiesParams.force||Boolean(e),this._recalcColorStudiesImplDebounced()}alertsWatcher(){return this._alertsWatcher}showLegend(){return this._showLegendProperty}id(){return this._id}recalculatePriceRangeOnce(){const e=this.mainSeries();for(const t of this._panes)for(const i of t.priceDataSources())i.symbolSource()===e&&i.disablePriceRangeReady()}invalidate(e){var t;null===(t=this._invalidateHandler)||void 0===t||t.call(this,e)}appliedTimeFrame(){ -return this._appliedTimeFrame.appliedTimeFrame()}barsMarksSources(){return this._barsMarksSources}barMarksSourceForId(e){for(const t of this._barsMarksSources)if(t.id()===e)return t;return null}createSyncPoint(e,t){return(0,Ii.getDefault2Lazy)(this._syncPointCache,e.uniqueId,t.uniqueId,()=>new at(e,t))}isAutoSaveEnabled(){return this._isAutoSaveEnabled}studyAwareDefaultRightOffset(){return Math.max(this._timeScale.defaultRightOffset().value(),this._cachedStudiesMaxOffset)}clearAllStudies(){this.dataSources().forEach(e=>{var t;return null===(t=e.clearData)||void 0===t?void 0:t.call(e)})}_updateStudiesMaxOffset(){const e=Math.max(...this.allStudies().map(e=>e.maxOffset().value()));this._cachedStudiesMaxOffset=e;const t=this._timeScale.rightOffset();t<0||this._timeScale.setRightOffset(Math.max(t,e))}_updateBaseIndex(e,t){const i=this._timeScale,s=i.baseIndex(),r=i.visibleBarsStrictRange(),n=i.logicalRange();if(null!==n&&t){const t=n.contains(s),o=e-s;let a=t?null:i.rightOffset()-o;if(!this._options.shiftVisibleRangeOnNewBar&&t){const e=i.indexToCoordinate(s)+i.barSpacing()/2+1,t=s-n.left()+o,l=e/t;if(l>=i.minBarSpacing()){i.setBarSpacing(l);a=i.width()/l-t}else(null==r?void 0:r.lastBar())!==s&&(a=i.rightOffset()-o)}null!==a&&i.setRightOffset(a)}i.setBaseIndex(e)}_createESDWatcher(){}_updateDateTimeFormatter(){const e=Je.dateFormatProperty.value(),t=new Ze.DateFormatter(e);if(this._dateFormatter=t,this.mainSeries().isDWM())this._dateTimeFormatter=t,this._timeFormatter=new Qe.TimeFormatter("%h:%m");else{const t=C.Interval.parse(this.mainSeries().interval()),i=t.isSeconds()||t.isTicks()?"%h:%m:%s":"%h:%m";this._dateTimeFormatter=new Xe.DateTimeFormatter({dateFormat:e,timeFormat:i,dateTimeSeparator:" "}),this._timeFormatter=new Qe.TimeFormatter(i)}}_setScalesResetAvailable(e){this._isScalesResetAvailable!==e&&(this._isScalesResetAvailable=e,this._isScalesResetAvailableChanged.fire())}_invalidationMaskForSource(e,t=q.InvalidationLevel.Light){if(e===this.crossHairSource())return q.InvalidationMask.cursor();if(this._watermarkSource===e)return this._paneInvalidationMask((0,r.ensureNotNull)(this.paneForSource(this.mainSeries())),t);if(-1!==this._allCustomSources.indexOf(e)){const e=new q.InvalidationMask;return e.invalidateAll(t),e}if(!(0,m.isDataSource)(e))return null;if(e.isMultiPaneEnabled())return new q.InvalidationMask(t);const i=this.paneForSource(e);return null!==i?this._paneInvalidationMask(i,t):null}_paneInvalidationMask(e,t=q.InvalidationLevel.Light){const i=new q.InvalidationMask,s=this._panes.indexOf(e);return i.invalidateAllPane(s,t),i}_invalidationMaskForSourcePriceScale(e,t=q.InvalidationLevel.Light){if(!(0,m.isDataSource)(e))return new q.InvalidationMask(t);const i=this.paneForSource(e);if(null===i)return null;let s=e.priceScale();if(null===s)return null;const r=this._panes.indexOf(i);let n=i.priceScalePosition(s);if("overlay"===n){const e=this._panes[r].defaultPriceScale();s=e,n=i.priceScalePosition(e)}const o=i.priceScaleIndex(s,n);if(void 0===o)return null;const a=new q.InvalidationMask -;return a.invalidatePriceScale(r,n,o,t),a}_removeCustomSource(e){const t=this._customSourcesMap.get(e);if(void 0===t)return void Ai.logWarn(`Attempt to remove custom source which does not exist in the model - "${e}"`);Ai.logNormal(`Removing custom source "${e}"`),this.selectionMacro(e=>{e.removeSourceFromSelection(t)}),this._hoveredSource===t&&this.setHoveredSource(null),this._customSourceBeingMoved===t&&this.setMovingCustomSource(null,null);const i=Ei(this._bgCustomSources,t),s=Ei(this._fgCustomSources,t),n=Ei(this._topmostCustomSources,t),o=Ei(this._allCustomSources,t);(0,r.assert)(i||s||n,"Source should be presented in one of the layers"),(0,r.assert)(o,"Source should be presented in the array"),this._customSourcesMap.delete(e),t.destroy()}_updateShowLegendProperty(){const e=this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend,t=this._showLegendProperty;if(e.value())t.setValue(!0);else{for(const e of this._panes){let i=0;for(const s of e.priceDataSources())if(s!==this.mainSeries()&&null!==s.statusView()&&(i++,i>1))return void t.setValue(!1)}t.setValue(!0)}}_pointToPercentPosition(e,t){return{x:e.x/this._timeScale.width(),y:e.y/(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainDataSource()).priceScale()).height()}}_percentPositionToPoint(e,t){const i=e.x*this._timeScale.width(),s=e.y*(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new n.Point(i,s)}_recalcVisibleRangeStudiesImpl(e){var t,i,s;if(e.timerId=null,this.timeScale().isEmpty())return;const r=this.timeScale().visibleBarsStrictRange();if(null===r)return;const n=this.mainSeries().bars(),o=n.search(r.firstBar(),ft.PlotRowSearchMode.NearestRight),a=n.search(r.lastBar(),ft.PlotRowSearchMode.NearestLeft),l=n.lastIndex(),c=o?o.index:void 0,h=a?a.index:void 0,d=c===e.oldStartVisibleIndex,u=h===e.oldEndVisibleIndex;if(d&&u&&!e.force)return;e.force=!1,e.oldStartVisibleIndex=void 0!==c?c:NaN,e.oldEndVisibleIndex=void 0!==h?h:NaN;const p={first_visible_bar_time:1e3*(null!==(t=null==o?void 0:o.value[0])&&void 0!==t?t:0),last_visible_bar_time:1e3*(null!==(i=null==a?void 0:a.value[0])&&void 0!==i?i:0),subscribeRealtime:(null==a?void 0:a.index)===l},_=null!==(s=e.studies)&&void 0!==s?s:this.priceDataSources();e.studies=void 0;for(const e of _)if((0,H.isStudy)(e)){const t=e.metaInfo().inputs,i=[];for(const e of t)p.hasOwnProperty(e.id)&&i.push(e.id);const s=e.properties().inputs;for(const e of i)s[e].setValueSilently(p[e]);i.length>0&&s.listeners().fire(s)}}_recalcColorStudiesImpl(e){var t;e.timerId=null;const i=this.backgroundColorAtYPercentFromTop(.5),s=this.isDark()?a.colorsPalette["color-cold-gray-200"]:a.colorsPalette["color-cold-gray-900"],r=i===e.oldBgColor,n=s===e.oldFgColor;if(r&&n&&!e.force)return;e.force=!1,e.oldBgColor=i,e.oldFgColor=s;const o={__chart_bgcolor:i,__chart_fgcolor:s},l=null!==(t=e.studies)&&void 0!==t?t:this.priceDataSources();e.studies=void 0;for(const e of l)if((0,H.isStudy)(e)){const t=e.metaInfo().inputs,i=[];for(const e of t)o.hasOwnProperty(e.id)&&i.push(e.id) -;const s=e.properties().inputs;for(const e of i)s[e].setValueSilently(o[e]);i.length>0&&s.listeners().fire(s)}}_getAllSources(e){const t=[];for(const i of this._panes){const s=i.sourcesByGroup().all();for(const i of s)e(i)&&t.push(i)}return t}_invalidateBarColorerCaches(){this.mainSeries().invalidateBarColorerCache()}_updateTimeScale(e){var t,i;const{index:s,zoffset:r,values:n,indexDiffs:o,baseIndex:a,marks:l,clearFlag:c}=e;if(c){this._timeScale.reset();for(const e of this.dataSources())null===(t=e.clearData)||void 0===t||t.call(e)}if(o.length>0)for(const e of this.dataSources())null===(i=e.moveData)||void 0===i||i.call(e,o);const h=this._timeScale.indexToTimePoint(this._timeScale.baseIndex()),d=this._timeScale.canNormalize();this._timeScale.update(s,r,n,l);let u="ChartModel.prototype._updateTimeScale("+s+","+r+","+n.length+","+o.length+","+l.length+","+c+")";if(u+="TimeScale: {first:"+this._timeScale.points().firstIndex()+",last:"+this._timeScale.points().lastIndex()+"}",null===a){this._timeScale.resetBaseIndex();const e=this._timeScale.rightOffset();e<0?this._timeScale.setRightOffset(this.studyAwareDefaultRightOffset()):this._timeScale.setRightOffset(Math.max(e,this._cachedStudiesMaxOffset))}else if(void 0!==a){const e=this._timeScale.indexToTimePoint(a),t=null!==h&&null!==e&&e>h;this._updateBaseIndex(a,t)}if(Ai.logDebug(u),!d&&d!==this._timeScale.canNormalize())for(const e of this.dataSources())!(0,f.isLineTool)(e)||e.isFixed()||e.isSourceHidden()||e.processHibernate();this.recalculateAllPanes((0,O.globalChangeEvent)()),this.lightUpdate()}_getAvailableCurrencies(){return!this.currencyConversionEnabled()||this.isSnapshot()?[]:(0,_e.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then(e=>{this._destroyed||(this._availableCurrenciesList=e,this.fullUpdate())}).catch(e=>{Ai.logWarn("An error occurred while getting currencies config: "+e)})),[])}_getAvailableUnits(){return!this.unitConversionEnabled()||this.isSnapshot()?{}:this._availableUnitsObject instanceof Promise||null===this._availableUnitsObject?(null!==this._availableUnitsObject||(this._availableUnitsObject=this.chartApi().availableUnits(),this._availableUnitsObject.then(e=>{this._destroyed||(this._availableUnitsObject=e,this.fullUpdate())}).catch(e=>{Ai.logWarn("An error occurred while getting units config: "+e)})),{}):this._availableUnitsObject}_getBackgroundColor(e){const t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===dt.ColorType.Gradient){const i=t.backgroundGradientStartColor.value(),s=t.backgroundGradientEndColor.value();return e?i:s}return t.background.value()}_updateBackgroundColor(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))}_syncCrosshair(e){if(!this._isSettingsExternalPosition){ -const t=this._undoModel.chartWidget(),i=this._undoModel.mainSeries(),s=i.syncModel(),r=this._undoModel.crossHairSource(),n=r.pane;if(null!==s&&null!==n){const o={timeStamp:this._timeScale.points().roughTime(r.index,s.projectTime.bind(s)),syncSourceTarget:s.syncSourceTarget()};n.mainDataSource()===i&&(o.price=r.price,o.symbol=i.symbol());let a=this._lineBeingCreated||null!==this._linePointBeingEdited||Boolean(this._sourcesBeingMoved.length);a=a&&(0,lt.drawOnAllCharts)().value(),t.chartWidgetCollection().syncCrosshair(o,t.id(),a,e)}this._phantomSourceContainer.onCursorPositionUpdated()}}_gotoTimeImpl(e,t){const i=this.timeScale(),s=this.mainSeries();let n;if(void 0!==e){if(this._scrollingState&&this._scrollingState.deferred.reject(),n=(0,d.createDeferredPromise)(),!s.isDWM()){const t=s.symbolInfo();if(null!==t){let i=this.properties().childs().timezone.value();"exchange"===i&&(i=t.timezone);const r=(0,it.cal_to_utc)((0,it.get_timezone)(i),new Date(e)),n=(0,wt.createTimeToBarTimeAligner)(s.interval(),t)(r);e=(0,it.utc_to_cal)((0,it.get_timezone)(i),n).getTime()}}this._scrollingState={targetDate:e,deferred:n,centerIfVisible:t.centerIfVisible}}else{if(!this._scrollingState)return Ai.logError("scrollTo called without an argument"),Promise.reject();e=this._scrollingState.targetDate,n=this._scrollingState.deferred}if(void 0===i.tickMarks().minIndex)return n.resolve(void 0),n.promise;let o=((e,t)=>{if((e=>(0,r.ensureNotNull)(i.tickMarks().indexToTime((0,r.ensureDefined)(i.tickMarks().minIndex))).valueOf()-e)(t)<0){let n=i.tickMarks().nearestIndex(t);const o=s.bars().lastIndex();if(null===o)return null;n=Math.min(n,o);let a=(0,r.ensureNotNull)(i.tickMarks().indexToTime(n)).valueOf();for(;a1&&s.push(e)),n=(n+1)%t.length}return s}}},15943:(e,t,i)=>{"use strict";i.d(t,{japaneseChartStyles:()=>r,commonChartStyles:()=>n,allChartStyles:()=>o});var s=i(67337);function r(){return s.enabled("japanese_chart_styles"),[8]}function n(){const e=[0,1,9,13,2,3,10];return s.enabled("chart_style_hilo")&&e.push(12),e}function o(){return n().concat(r())}},97205:(e,t,i)=>{"use strict";i.d(t,{ChartUndoModelBase:()=>Hi});var s=i(85459),r=i.n(s),n=i(16230),o=i(88537),a=i(86441),l=i(28353),c=i(24980),h=i(68587),d=i(65645),u=i(67072),p=i.n(u),_=i(98125);const m=new c.TranslatedString("move all scales to left",(0,l.t)("move all scales to left")),g=new c.TranslatedString("move all scales to right",(0,l.t)("move all scales to right")),f=(0,_.getLogger)("Chart.MergeAllScales");var v=i(44556),S=i(35762);class y extends S.UndoCommand{constructor(e,t,i,s,r,n){super(n),this._model=e,this._paneIndex=e.panes().indexOf(t),this._targetPosition=s,this._targetIndex=r,this._scaleId=i.id(),this._sourcePosition=t.priceScalePosition(i),"overlay"!==this._sourcePosition&&(this._sourceIndex=t.priceScaleIndex(i,this._sourcePosition))}redo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._targetPosition,this._targetIndex),this._model.fullUpdate()}undo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._sourcePosition,this._sourceIndex),this._model.fullUpdate()}}var b=i(14291);class w extends S.UndoCommand{constructor(e,t,i,s){super(s),this._createdIds=[],this._model=e,this._withoutShift=i,this._origStates=t.map(e=>e.state(!0));const r=e.lineToolsGroupModel();this._origGroups=t.map(e=>{const t=r.groupForLineTool(e);return t&&t.id})}redo(){const e=this._model.lineToolsGroupModel(),t=this._origStates.map((t,i)=>{const s=(0,o.ensureNotNull)(this._model.dataSourceForId(t.id)),r=0===this._createdIds.length?void 0:(0,o.ensureDefined)(this._createdIds[i]),n=(0,b.cloneLineTool)(this._model,s,!this._withoutShift,r),a=(0,o.ensureNotNull)(s.priceScale());(0,o.ensureNotNull)(this._model.paneForSource(s)).addDataSource(n,a,!1);const l=this._origGroups[i];if(null!==l){const t=e.groupForId(l);t&&t.addLineTools([n])}return this._model.updateSource(n),n});0===this._createdIds.length&&(this._createdIds=t.map(e=>e.id())),this._model.selectionMacro(e=>{e.clearSelection(),t.forEach(t=>{e.addSourceToSelection(t)})}),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=this._model.lineToolsGroupModel();this._createdIds.forEach(t=>{const i=(0,o.ensureNotNull)(this._model.dataSourceForId(t)),s=e.groupForLineTool(i);null!==s&&s.excludeLineTool(i),this._model.removeSource(i)})}newIds(){return this._createdIds}}var C=i(65284),P=i(79495),T=i(80643),x=i(81851);class I extends S.UndoCommand{constructor(e,t,i,s=!0){super(i,s),this._newStates=[],this._model=e, -this._savedStates=t.map(e=>e.state(!1))}redo(){this._applyState(this._newStates)}undo(){0===this._newStates.length&&this.saveNewState(),this._applyState(this._savedStates)}saveNewState(){const e=this._savedStates.filter(T.notNull).map(e=>(0,o.ensureNotNull)(this._model.dataSourceForId(e.id)));this._newStates=e.map(e=>e.state(!1))}_applyState(e){for(const t of e)if(null!==t){const e=this._model.dataSourceForId(t.id);if(null!==e)if((0,x.isStudy)(e)){const i=t.state.inputs,s=e.properties().inputs;for(const e in i)s[e]&&s[e].setValue(i[e])}else this._model.restoreLineToolState(e,t,!0)}}}var M=i(36551),L=i(8597),A=i(59555),E=i(60870);const k=new c.TranslatedString("create {tool}",(0,l.t)("create {tool}"));class D extends S.UndoCommand{constructor(e,t,i,s,r=0,n){super(k.format({tool:new c.TranslatedString(i,E.lineToolsLocalizedNames[i])}),!1),this._lineId=null,this._lineState=null,this._model=e,this._paneIndex=e.panes().indexOf(t),this._lineTool=i,this._ownerSourceId=s.id(),this._lineId=null!=n?n:null,this._drawOnAllChartsMode=r}startCreatingLine(e,t,i){var s;const r=this._model.panes()[this._paneIndex],n=this._model.dataSourceForId(this._ownerSourceId),o=this._model.createLineTool(r,e,this._lineTool,t,i,n,null!==(s=this._lineId)&&void 0!==s?s:void 0);return this._lineId=o.id(),!this._model.lineBeingCreated()}continueCreatingLine(e,t,i,s){const r=this._model.continueCreatingLine(e,t,i,s);return r&&this._model.setShouldBeSavedEvenIfHidden(!0),r}line(){return null===this._lineId?null:this._model.dataSourceForId(this._lineId)}undo(){const e=this.line();null!==e&&(this._lineState=e.state(!1),this._model.removeSource(e),this._lineId=null)}redo(){if(null===this._lineState)return;const e=this._model.restoreSource(!1,this._paneIndex,null,(0,o.ensureNotNull)(this._lineState),null);null!==e&&(this._lineId=e.id(),this._lineState=null,e.share(this._drawOnAllChartsMode))}drawOnAllCharts(){return 0!==this._drawOnAllChartsMode}}var V=i(94578);const B=new c.TranslatedString("bring {title} to front",(0,l.t)("bring {title} to front")),N=new c.TranslatedString("send {title} to back",(0,l.t)("send {title} to back")),R=new c.TranslatedString("insert {title} after {targetTitle}",(0,l.t)("insert {title} after {targetTitle}")),O=new c.TranslatedString("insert {title} before {targetTitle}",(0,l.t)("insert {title} before {targetTitle}")),F=new c.TranslatedString("send {title} backward",(0,l.t)("send {title} backward")),W=new c.TranslatedString("bring {title} forward",(0,l.t)("bring {title} forward")),H=new c.TranslatedString("send group {title} backward",(0,l.t)("send group {title} backward")),z=new c.TranslatedString("bring group {title} forward",(0,l.t)("bring group {title} forward"));function U(e){return new c.TranslatedString(e.name(),e.title())}class j extends S.UndoCommand{constructor(e,t,i){super(i),this._sourcesByPanes=new Map,this._originalState=new Map,this._model=e,t.forEach(t=>{const i=(0,o.ensureNotNull)(e.paneForSource(t)),s=e.panes().indexOf(i),r=this._sourcesByPanes.get(s)||[];r.push(t.id()),this._sourcesByPanes.set(s,r)}), -Array.from(this._sourcesByPanes.keys()).forEach(t=>{const i=e.panes()[t],s=new Map;i.sourcesByGroup().allIncludingHidden().forEach(e=>{s.set(e.id(),e.zorder())}),this._originalState.set(t,s)})}undo(){this._originalState.forEach((e,t)=>{const i=this._model.panes()[t],s=new Map;e.forEach((e,t)=>{const r=(0,o.ensureNotNull)(i.dataSourceForId(t));s.set(r,e)}),i.setZOrders(s)})}redo(){this._sourcesByPanes.forEach((e,t)=>{const i=this._model.panes()[t],s=e.map(e=>(0,o.ensureNotNull)(i.dataSourceForId(e)));this._paneOperation(i,s)})}}class G extends j{constructor(e,t){super(e,t,B.format({title:U(t[0])}))}_paneOperation(e,t){e.bringToFront(t)}}class q extends j{constructor(e,t){super(e,t,N.format({title:U(t[0])}))}_paneOperation(e,t){e.sendToBack(t)}}class Y extends j{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertAfter(t,this._targetSource)}}class K extends Y{constructor(e,t,i){super(e,t,i,R.format({title:U(t[0]),targetTitle:U(i)}))}}class $ extends j{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertBefore(t,this._targetSource)}}class X extends ${constructor(e,t,i){super(e,t,i,O.format({title:U(t[0]),targetTitle:U(i)}))}}function Z(e,t){const i=t[0],s=e.sourcesByGroup().all().filter(e=>e.zorder()e.zorder()>i.zorder());if(0===s.length)throw new Error("Cannot bring forward source that alreadt on back");let r=s[0];if((0,b.isLineTool)(r)){const t=e.model().lineToolsGroupModel().groupForLineTool(r);if(null!==t){const e=t.lineTools();r=e[e.length-1]}}return r}class ee extends Y{constructor(e,t,i){super(e,i,Q(t,i),W.format({title:U(i[0])}))}}function te(e,t){return(0,o.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}class ie extends ${constructor(e,t){super(e,t.lineTools(),Z(te(e,t),t.lineTools()),H.format({title:t.name()}))}}class se extends Y{constructor(e,t){super(e,t.lineTools(),Q(te(e,t),t.lineTools()),z.format({title:t.name()}))}}const re=new c.TranslatedString("rearrange panes",(0,l.t)("rearrange panes"));class ne extends S.UndoCommand{constructor(e,t,i){super(re),this._chartModel=e,this._index=t,(0,T.isNumber)(i)?this._dstIndex=i:this._dstIndex="up"===i?t-1:t+1}redo(){this._checkIndices()&&this._chartModel.movePane(this._index,this._dstIndex)}undo(){this._checkIndices()&&this._chartModel.movePane(this._dstIndex,this._index)}_checkIndices(){const e=this._chartModel.panes().length;return this._index>=0&&this._index=0&&this._dstIndexe.id())}redo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId));this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e)),t=new Se.LineToolsGroup(e,this._groupName,this._groupId);this._model.lineToolsGroupModel().addGroup(t)}}const be=new c.TranslatedString("create line tools group",(0,l.t)("create line tools group"));class we extends S.UndoCommand{constructor(e,t){super(be),this._groupId=null,this._model=e,this._sourcesIds=t.map(e=>e.id())}redo(){const e=this._sourcesIds.map(e=>this._model.dataSourceForId(e)),t=null===this._groupId?void 0:this._groupId;this._groupId=this._model.lineToolsGroupModel().createGroup(e,this._title,t).id}undo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId((0,o.ensureNotNull)(this._groupId)));this._model.lineToolsGroupModel().removeGroup(e)}createdGroupId(){return this._groupId}}const Ce=new c.TranslatedString("add line tool(s) to group {group}",(0,l.t)("add line tool(s) to group {group}"));class Pe extends S.UndoCommand{constructor(e,t,i){super(Ce.format({group:t.name()})),this._model=e,this._groupId=t.id,this._lineToolsIds=i.map(e=>e.id())}redo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));e.addLineTools(t)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)).excludeLineTools(e)}}var Te=i(46627);class xe extends S.UndoCommand{constructor(e,t,i,s,r){super(i),this._targetObj=e,this._newValue=t,this._oldValue=this._targetObj.value(),this._model=s,r&&this.setCustomFlag("doesnt_affect_save",!0)}redo(){(0,le.saveDefaultProperties)(!0),this._targetObj.setValue(this._newValue),(0,le.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,ue.globalChangeEvent)()),this._model.lightUpdate()}undo(){(0,le.saveDefaultProperties)(!0),this._targetObj.setValue(this._oldValue),(0,le.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,ue.globalChangeEvent)()),this._model.lightUpdate()}}class Ie extends S.UndoCommand{constructor(e,t,i,s){super(s),this._chartModel=e,this._groupId=t.id,this._oldName=t.name(),this._newName=i}redo(){(0,o.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._newName)}undo(){(0,o.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._oldName)}}var Me=i(85733);const Le=new c.TranslatedString("create line tools group from selection",(0,l.t)("create line tools group from selection")),Ae=new c.TranslatedString("removing line tools group {name}",(0,l.t)("removing line tools group {name}")),Ee=new c.TranslatedString("add line tool {lineTool} to group {name}",(0,l.t)("add line tool {lineTool} to group {name}")),ke=new c.TranslatedString("make group {group} visible",(0, -l.t)("make group {group} visible")),De=new c.TranslatedString("make group {group} invisible",(0,l.t)("make group {group} invisible")),Ve=new c.TranslatedString("lock group {group}",(0,l.t)("lock group {group}")),Be=new c.TranslatedString("unlock group {group}",(0,l.t)("unlock group {group}")),Ne=new c.TranslatedString("rename group {group} to {newName}",(0,l.t)("rename group {group} to {newName}"));class Re{constructor(e){this._lineToolsAffectChartInvalidation=new Te.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._environment=e}createGroupFromSelection(){const e=this._environment.model();(0,o.assert)(!e.selection().isEmpty(),"Cannot create group from empty selection");const t=(0,A.sortSources)(e.selection().lineDataSources());(0,o.assert)(t.length===e.selection().allSources().length,"A group could contain line tools only");const i=t.length>1||null!==this._environment.model().lineToolsGroupModel().groupForLineTool(t[0]),s=t.reduce((e,t)=>e.zorder()>t.zorder()?e:t,t[0]);let r=s;const n=e.lineToolsGroupModel().groupForLineTool(s);if(null!==n){const e=n.lineTools();r=e[e.length-1]}this._environment.beginUndoMacro(Le,this._lineToolsAffectChartInvalidation.value());const a=new Map,l=new Set;t.forEach(t=>{const i=this._groupForLineTool(t);if(null===i)return;const s=a.get(i)||[];s.push(t),a.set(i,s);const r=(0,o.ensureNotNull)(e.paneForSource(t));l.add(r)}),(0,o.assert)(l.size<=1,"All selected sources should be on the same pane"),a.forEach((t,i)=>{const s=new P.ExcludeLineToolsFromGroupUndoCommand(e,i,t);this._environment.pushUndoCommand(s)});const c=new we(e,(0,A.sortSources)(t));if(this._environment.pushUndoCommand(c),i){const i=new K(e,t,r);this._environment.pushUndoCommand(i)}this._environment.endUndoMacro();const h=(0,o.ensureNotNull)(c.createdGroupId());return(0,o.ensureNotNull)(e.lineToolsGroupModel().groupForId(h))}removeGroup(e){const t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(Ae.format({name:e.name()}),this._lineToolsAffectChartInvalidation.value());const s=new ye(t,e,null);this._environment.pushUndoCommand(s);const r=new C.RemoveSourcesCommand(t,i,null);this._environment.pushUndoCommand(r);const n=t.mainSeries().symbol();i.forEach(e=>{null!==e.linkKey().value()&&(0,Me.removeLineTool)({withUndo:!0,model:t,symbol:n,sourceTitle:new c.TranslatedString(e.name(),e.title()),lineToolState:e.state(!1),linkKey:(0,o.ensureNotNull)(e.linkKey().value())})}),this._environment.endUndoMacro()}groups(){return this._environment.model().lineToolsGroupModel().groups()}excludeLineToolFromGroup(e,t){const i=this._environment.model(),s=new P.ExcludeLineToolsFromGroupUndoCommand(i,e,[t]);s.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(s)}addLineToolToGroup(e,t){const i=this._environment.model(),s=i.lineToolsGroupModel().groupForLineTool(t);if(s===e)return;const r=Ee.format({lineTool:new c.TranslatedString(t.name(),t.title()),name:e.name()}) -;this._environment.beginUndoMacro(r,this._lineToolsAffectChartInvalidation.value()),null!==s&&this._environment.pushUndoCommand(new P.ExcludeLineToolsFromGroupUndoCommand(i,s,[t])),this._environment.pushUndoCommand(new Pe(i,e,[t])),this._environment.endUndoMacro()}bringToFront(e){const t=this._environment.model(),i=new G(t,e.lineTools());i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendToBack(e){const t=this._environment.model(),i=new q(t,e.lineTools());i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}bringForward(e){const t=this._environment.model(),i=new se(t,e);i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendBackward(e){const t=this._environment.model(),i=new ie(t,e);i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertAfter(e,t){const i=this._environment.model();let s;if(t instanceof Se.LineToolsGroup){const e=t.lineTools();s=e[e.length-1]}else s=t;const r=new K(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertBefore(e,t){const i=this._environment.model();let s;if(t instanceof Se.LineToolsGroup){s=t.lineTools()[0]}else s=t;const r=new X(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}availableZOrderOperations(e){const t=this._environment.model(),i=e.lineTools(),s=i[0],r=i[i.length-1],n=(0,o.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=n[0],l=n[n.length-1];return{bringForwardEnabled:r!==l,bringToFrontEnabled:r!==l,sendBackwardEnabled:s!==a,sendToBackEnabled:s!==a}}setGroupVisibility(e,t){const i=(t?ke:De).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i,this._lineToolsAffectChartInvalidation.value()),e.lineTools().forEach(e=>{const i=e.properties().visible,r=new xe(i,t,null,s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupLock(e,t){const i=(t?Ve:Be).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i,this._lineToolsAffectChartInvalidation.value()),e.lineTools().forEach(e=>{const i=e.properties().frozen,r=new xe(i,t,null,s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupName(e,t){const i=this._environment.model(),s=Ne.format({group:e.name(),newName:t}),r=new Ie(i,e,t,s);r.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(r)}canBeGroupped(e){const t=this._environment.model() -;return new Set(e.map(e=>t.paneForSource(e))).size<=1}_groupForLineTool(e){return this._environment.model().lineToolsGroupModel().groups().find(t=>t.containsLineTool(e))||null}}var Oe=i(58121),Fe=i(52546),We=i(50669),He=i(26161);const ze=new c.TranslatedString("apply study template {template}",(0,l.t)("apply study template {template}"));function Ue(e){for(const t of e.panes)for(const e of t.sources)if((0,We.isMainSeriesState)(e))return e.id;return null}class je extends S.UndoCommand{constructor(e,t,i){var s,r;super(ze.format({template:i})),this._newSymbolParams={},this._model=e,this._templateContent=function(e,t){const i=(0,Oe.default)({},e),s=(0,o.ensureNotNull)(Ue(i));for(const e of i.panes){e.mainSourceId===s&&(e.mainSourceId=t);for(const i of e.sources)if(i.id===s){i.id=t;const r=e=>{const i=e.indexOf(s);-1!==i&&e.splice(i,1,t)};if(e.leftAxisesState&&e.rightAxisesState?(e.leftAxisesState.forEach(e=>r(e.sources)),e.rightAxisesState.forEach(e=>r(e.sources))):(r(e.leftAxisSources),r(e.rightAxisSources)),e.overlayPriceScales){const i=e.overlayPriceScales[s];i&&(delete e.overlayPriceScales[s],e.overlayPriceScales[t]=i)}}else i.ownerSource===s&&(i.ownerSource=t)}return i}(t,e.mainSeries().id()),this._initialState=e.studyTemplate(!0,!0,!0);const n=e.mainSeries();t.symbol&&(this._newSymbolParams={symbol:t.symbol,currency:null!==(s=t.currency)&&void 0!==s?s:null,unit:null!==(r=t.unit)&&void 0!==r?r:null}),t.interval&&(this._newSymbolParams.interval=t.interval,this._newSymbolParams.style=(0,ce.getChartStyleByResolution)(t.interval,n.style())),this._initialSymbolParams={symbol:n.symbol(),currency:n.currency(),unit:n.unit(),interval:n.interval(),style:n.style()},this._initialState=e.studyTemplate(),this._initialGroupsState=e.lineToolsGroupModel().state()}redo(){this._model.mainSeries().setSymbolParams(this._newSymbolParams);const e=this._merge(this._templateContent).filter(b.isLineTool);this._model.lineToolsGroupModel().removeLineTools(e);const t=this._model.mainSeries().properties();(0,ce.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(!0),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){this._model.mainSeries().setSymbolParams(this._initialSymbolParams),this._merge(this._initialState)}_merge(e){const t=e.version||0,i=this._model,s=i.mainSeries();(0,o.assert)(s.id()===Ue(e)),s.priceScale().properties().childs().lockScale.setValue(!1);const r=i.panes(),n=[];for(let e=r.length;e--;){const t=r[e],i=t.containsMainSeries(),s=t.dataSources();for(let e=s.length;e--;){const t=s[e];(!i||(0,x.isStudy)(t)&&t.isRemovedByStudyTemplates())&&n.push(t)}}i.resetDeferredStudies();const a=(0,Fe.closeSourcesSet)(i,n);for(let e=0;ee.zorder-t.zorder);for(let e=0;e-1,a=o?r[e]:i.createPane(e);o&&t<3&&(0,He.reorderDataSourcesStateZOrder)(n.sources),a.restoreState(n,!1,t), -null!==a.mainDataSource()||i.removePane(a)}return i.syncESD(),s.priceScale().setMode({autoScale:!0}),i.startNotStartedStudies(),i.recalculateAllPanes((0,ue.globalChangeEvent)()),i.fullUpdate(),a}}var Ge=i(9423),qe=i(79680);const Ye=(0,_.getLogger)("Chart.ChartUndoModel"),Ke=new c.TranslatedString("paste drawing",(0,l.t)("paste drawing"));class $e extends S.UndoCommand{constructor(e,t,i,s,r){super(Ke),this._needCopyToOtherCharts=!1,this._sourceState=null,this._model=e,this._clipboardData=t,this._paneIndex=this._model.panes().indexOf(i||(0,o.ensureNotNull)(this._model.paneForSource(this._model.mainSeries()))),this._pasteWithData=!!s,this._keepZIndex=!!r}redo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.clipboardLineToolOwnerSource(this._clipboardData.source.id));null===this._sourceState&&(this._sourceState=this._getSourceState(t));const i=(0,o.ensureNotNull)(e.restoreLineTool(this._sourceState,this._pasteWithData,this._keepZIndex));this._clipboardData.centeredOnChart&&i.centerPosition&&i.centerPosition();const s=(0,o.ensureNotNull)(t.priceScale());i.setOwnerSource(t),i.setPriceScale(s),s.addDataSource(i),i.restoreFixedPoints(),(0,b.prepareLineToolPropertiesByOwnerSource)(i.properties(),t),i.calcIsActualSymbol(),i.createServerPoints();const r=(0,qe.isActingAsSymbolSource)(t)||t.metaInfo().is_price_study;this._needCopyToOtherCharts=Boolean(r&&((0,Me.drawOnAllCharts)().value()||i.linkKey().value()&&i.isSynchronizable())),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){if(!this._sourceState)return void Ye.logError("This command was never executed - nothing to undo");const e=this.source();this._clipboardData.centeredOnChart&&(this._clipboardData.centeredOnChart=!1,this._sourceState.points=e.normalizedPoints()),this._model.removeSource(e)}source(){return(0,o.ensureNotNull)(this._model.dataSourceForId((0,o.ensureNotNull)(this._sourceState).id))}needCopyToOtherCharts(){return this._needCopyToOtherCharts}_getSourceState(e){const t=(0,T.clone)(this._clipboardData.source);delete t.state.symbol,null!=t.linkKey&&(t.linkKey=(0,Ge.randomHash)());const i=(0,o.ensureNotNull)(e.priceScale()),s=this._model,{symbol:r,currencyId:n,unitId:l}=this._clipboardData.source.state,c=(0,o.ensureNotNull)(e.symbolSource());let h=!1;!c.symbolSameAsCurrent(r)||(null!==n?n!==(0,ce.symbolCurrency)(c.symbolInfo(),void 0,!0):c.isConvertedToOtherCurrency())||(null!==l?l!==(0,ce.symbolUnit)(c.symbolInfo(),this._model.unitConversionEnabled()):c.isConvertedToOtherUnit())||((0,qe.isActingAsSymbolSource)(e)?h=!0:(0,x.isStudy)(e)&&(h=Boolean(e.metaInfo().is_price_study)));const d=e=>{const t=e.x*s.timeScale().width(),r=e.y*i.height()-40;return new a.Point(t,r)},u=(0,o.ensureNotNull)(e.firstValue());if(this._model.id()===this._clipboardData.modelId||!h)for(let e=0;e(0,tt.trackEvent)("SOS","Apply SOS","Rebind SOS")),this._chartModel.setShouldBeSavedEvenIfHidden(!0),null!==this._paneState){(0,o.ensureNotNull)(this._chartModel.paneForSource(t)).restoreState(this._paneState,!1,this._chartModel.version()),this._paneState=null}}undo(){const e=(0,o.ensureNotNull)(this._chartModel.dataSourceForId((0,o.ensureNotNull)(this._studyId))),t=(0,o.ensureNotNull)(this._chartModel.paneForSource(e)).state();this._chartModel.removeSource(e)&&(this._paneState=t)}insertedStudy(){return this._chartModel.dataSourceForId((0,o.ensureNotNull)(this._studyId))}}var dt=i(59836),ut=i(88735),pt=i.n(ut),_t=i(79222),mt=i(69746),gt=i(67337);const ft=new c.TranslatedString("zoom",(0,l.t)("zoom"));class vt extends S.UndoCommand{constructor(e,t,i,s,r,n){super(ft),this._barSpacing=null,this._rightBarsOffset=null,this._leftBarsOffset=null,this._priceMode=null,this._model=e,this._startBar=t,this._endBar=i,this._startPrice=s,this._endPrice=r,this._pane=n}redo(){const e=(0,o.ensureNotNull)(this._model.timeScale().visibleBarsStrictRange());this._leftBarsOffset=e.firstBar()-this._startBar,this._rightBarsOffset=e.lastBar()-this._endBar,this._barSpacing=this._model.timeScale().barSpacing(),this._priceMode=this._pane.defaultPriceScale().mode(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)}undo(){const e=this._model.timeScale(),t=this._pane.defaultPriceScale(),i=(0,o.ensureNotNull)(e.visibleBarsStrictRange());e.setBarSpacing((0,o.ensureNotNull)(this._barSpacing)),e.zoomToBarsRange(i.firstBar()+(0,o.ensureNotNull)(this._leftBarsOffset),i.lastBar()+(0,o.ensureNotNull)(this._rightBarsOffset)),t.setMode((0,o.ensureNotNull)(this._priceMode)),t.recalculatePriceRange((0,o.ensureNotNull)(e.visibleBarsStrictRange())),this._model.recalculateAllPanes((0,ue.viewportChangeEvent)()),this._model.lightUpdate()}}const St=(0,_.getLogger)("Chart.ChartUndoModel"),yt=new c.TranslatedString("zoom",(0,l.t)("zoom")) -;class bt extends S.UndoCommand{constructor(e,t,i){super(yt),this._baseCmd=e,this._zoomStack=t,this._inOut=i}undo(){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void St.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}else this._baseCmd.redo(),this._zoomStack.push(this._baseCmd)}redo(){if(this._inOut)this._baseCmd.redo(),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void St.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}}}const wt=new c.TranslatedString("stop syncing drawing",(0,l.t)("stop syncing drawing"));class Ct extends S.UndoCommand{constructor(e,t){super(wt),this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey().value()}redo(){(0,o.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(null)}undo(){(0,o.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(this._linkKey)}}const Pt=new c.TranslatedString("restore defaults",(0,l.t)("restore defaults"));class Tt extends S.UndoCommand{constructor(e,t,i=Pt){super(i),this._chartModel=e,this._defaultProperty=t,this._state=t.state()}redo(){this._chartModel.restoreFactoryDefaults(this._defaultProperty)}undo(){this._defaultProperty.mergeAndFire(this._state),this._chartModel.mainSeries().onChartStyleChanged()}}var xt=i(52418);class It extends Tt{redo(){this._defaultProperty.hasChild("intervalsVisibilities")&&this._defaultProperty.childs().intervalsVisibilities.mergeAndFire(xt.intervalsVisibilitiesDefaults),super.redo()}}class Mt extends It{redo(){super.redo(),this._chartModel.recalcColorStudies(!0)}undo(){super.undo(),this._chartModel.recalcColorStudies(!0)}}var Lt=i(36759),At=i(15840),Et=i(59803);function kt(e){const{visible:t,...i}=e;return i}function Dt(e){const{visible:t,...i}=e;return i}function Vt(e){const{drawWick:t,drawBorder:i,drawBody:s,barColorsOnPrevClose:r,...n}=e;return n}function Bt(e){const{drawWick:t,drawBorder:i,drawBody:s,...r}=e;return r}function Nt(e){const{drawWick:t,drawBorder:i,drawBody:s,showRealLastPrice:r,inputs:n,...o}=e;return o}function Rt(e){const{barColorsOnPrevClose:t,dontDrawOpen:i,thinBars:s,...r}=e;return r}function Ot(e){const{showBorders:t,showLabels:i,fontSize:s,drawBody:r,...n}=e;return n}function Ft(e){const{linestyle:t,linewidth:i,styleType:s,priceSource:r,...n}=e;return n}function Wt(e){const{linestyle:t,linewidth:i,priceSource:s,...r}=e;return r}function Ht(e){const{inputs:t,...i}=e;return i}function zt(e){const{inputs:t,...i}=e;return i}function Ut(e){const{inputs:t,...i}=e;return i}function jt(e){const{inputs:t,...i}=e;return i}function Gt(e){const{topLineWidth:t,bottomLineWidth:i,baseLevelPercentage:s,priceSource:r,...n}=e;return n}function qt(e){const{thinBars:t,inputs:i,...s}=e;return s}function Yt(e){ -const{visible:t,style:i,symbol:s,interval:r,sessionId:n,highLowAvgPrice:o,showCountdown:a,bidAsk:l,prePostMarket:c,priceAxisProperties:h,candleStyle:d,hollowCandleStyle:u,haStyle:p,barStyle:_,hiloStyle:m,lineStyle:g,areaStyle:f,renkoStyle:v,pbStyle:S,kagiStyle:y,pnfStyle:b,baselineStyle:w,rangeStyle:C,...P}=e;return{bidAsk:kt(l),prePostMarket:Dt(c),candleStyle:Vt(d),hollowCandleStyle:Bt(u),haStyle:Nt(p),barStyle:Rt(_),hiloStyle:Ot(m),lineStyle:Ft(g),areaStyle:Wt(f),renkoStyle:Ht(v),pbStyle:zt(S),kagiStyle:Ut(y),pnfStyle:jt(b),baselineStyle:Gt(w),rangeStyle:qt(C),...P}}function Kt(e){const{scaleSeriesOnly:t,showSeriesLastValue:i,showStudyLastValue:s,showSymbolLabels:r,showBidAskLabels:n,showPrePostMarketPriceLabel:o,showStudyPlotLabels:a,showFundamentalNameLabel:l,showFundamentalLastValue:c,seriesLastValueMode:h,...d}=e;return d}function $t(e){const{topMargin:t,bottomMargin:i,...s}=e;return s}const Xt=new c.TranslatedString("apply chart theme",(0,l.t)("apply chart theme"));class Zt extends S.UndoCommand{constructor(e,t,i){var s,r,n;super(Xt),this._model=e,this._newSessionProps=t.sessions||(0,Et.factoryDefaults)("sessions"),["candleStyle","hollowCandleStyle","haStyle"].forEach(e=>{t.mainSourceProperties[e].wickUpColor=t.mainSourceProperties[e].wickUpColor||t.mainSourceProperties[e].wickColor,t.mainSourceProperties[e].wickDownColor=t.mainSourceProperties[e].wickDownColor||t.mainSourceProperties[e].wickColor}),t.chartProperties=null!==(s=t.chartProperties)&&void 0!==s?s:{paneProperties:void 0,scalesProperties:void 0},t.chartProperties.paneProperties.vertGridProperties=null!==(r=t.chartProperties.paneProperties.vertGridProperties)&&void 0!==r?r:t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.horzGridProperties=null!==(n=t.chartProperties.paneProperties.horzGridProperties)&&void 0!==n?n:t.chartProperties.paneProperties.gridProperties;const o=this._model.properties().state().paneProperties.legendProperties;delete o.backgroundTransparency,t.chartProperties.paneProperties.legendProperties={...t.chartProperties.paneProperties.legendProperties,...o};const a=(0,Et.factoryDefaults)("chartproperties"),l=(0,At.deepExtend)({},a,t.chartProperties);this._newChartProps={paneProperties:$t(l.paneProperties),scalesProperties:Kt(l.scalesProperties)},e.timeScale().preserveBarSpacing()&&delete this._newChartProps.scalesProperties.barSpacing;const c=(0,Et.factoryDefaults)("chartproperties.mainSeriesProperties"),h=(0,At.deepExtend)({},c,t.mainSourceProperties);this._newSeriesProps=i?h:Yt(h);const d=e.properties().state();this._oldChartProps={paneProperties:$t(d.paneProperties),scalesProperties:Kt(d.scalesProperties)};const u=e.mainSeries().properties().state();this._oldSeriesProps=i?u:Yt(u),this._oldSessionProps=this._model.sessions().properties().state()}undo(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}redo(){ -this._merge(this._newChartProps,this._newSeriesProps,this._newSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}_merge(e,t,i){var s,r,n,o;const a=this._model;(0,le.saveDefaultProperties)(!0),e&&(a.properties().childs().paneProperties.mergeAndFire(e.paneProperties),a.properties().childs().scalesProperties.mergeAndFire(e.scalesProperties)),"priceAxisProperties"in t&&a.mainSeries().priceScale().setMode({autoScale:null===(s=t.priceAxisProperties)||void 0===s?void 0:s.autoScale,percentage:null===(r=t.priceAxisProperties)||void 0===r?void 0:r.percentage,log:null===(n=t.priceAxisProperties)||void 0===n?void 0:n.log,lockScale:null===(o=t.priceAxisProperties)||void 0===o?void 0:o.lockScale}),a.mainSeries().properties().mergeAndFire(t),a.mainSeries().properties().saveDefaults(),a.mainSeries().createPaneView(),a.mainSeries().invalidateBarStylesCache(),a.recalculateAllPanes((0,ue.globalChangeEvent)()),a.fullUpdate(),a.properties().saveDefaults(),a.sessions().restoreState({properties:i},!1),(0,le.saveDefaultProperties)(!1)}}const Jt=new c.TranslatedString("change resolution",(0,l.t)("change resolution"));class Qt extends S.UndoCommand{constructor(e,t,i){let s;super(Jt),this._sourceId=e.id();const r=(0,ce.isRangeStyle)(e.style()),n=me.Interval.isRange(t);!r&&n?s=11:r&&!n&&(s=(0,ce.getLastUsedStyle)()),this._newSymbolParams={interval:t,style:s},this._prevSymbolParams={symbol:e.symbol(),currency:e.currency(),unit:e.unit(),interval:e.interval(),style:e.style()},this._chartWidget=i}redo(){this._chartWidget.screen.show();this._symbolSource().setSymbolParams(this._newSymbolParams)}undo(){this._chartWidget.screen.show();this._symbolSource().setSymbolParams(this._prevSymbolParams)}_symbolSource(){return(0,o.ensureNotNull)(this._chartWidget.model().model().dataSourceForId(this._sourceId))}}var ei=i(76422);const ti=new c.TranslatedString("send {title} backward",(0,l.t)("send {title} backward")),ii=new c.TranslatedString("bring {title} forward",(0,l.t)("bring {title} forward")),si=new c.TranslatedString("insert {title} after {target}",(0,l.t)("insert {title} after {target}")),ri=new c.TranslatedString("insert {title} before {target}",(0,l.t)("insert {title} before {target}")),ni=new c.TranslatedString("cut {title}",(0,l.t)("cut {title}")),oi=new c.TranslatedString("cut sources",(0,l.t)("cut sources")),ai=new c.TranslatedString("remove {title}",(0,l.t)("remove {title}")),li=new c.TranslatedString("remove drawings group",(0,l.t)("remove drawings group")),ci=new c.TranslatedString("move scale",(0,l.t)("move scale")),hi=new c.TranslatedString("stop syncing line tool(s)",(0,l.t)("stop syncing line tool(s)")),di=new c.TranslatedString("zoom out",(0,l.t)("zoom out")),ui=new c.TranslatedString("zoom in",(0,l.t)("zoom in")),pi=new c.TranslatedString("move drawing(s)",(0,l.t)("move drawing(s)")),_i=new c.TranslatedString("load default drawing template",(0,l.t)("load default drawing template")),mi=new c.TranslatedString("change currency",(0, -l.t)("change currency")),gi=new c.TranslatedString("change unit",(0,l.t)("change unit")),fi=new c.TranslatedString("clone line tools",(0,l.t)("clone line tools")),vi=new c.TranslatedString("merge up",(0,l.t)("merge up")),Si=new c.TranslatedString("merge down",(0,l.t)("merge down")),yi=new c.TranslatedString("merge to pane",(0,l.t)("merge to pane")),bi=new c.TranslatedString("unmerge up",(0,l.t)("unmerge up")),wi=new c.TranslatedString("unmerge down",(0,l.t)("unmerge down")),Ci=new c.TranslatedString("unmerge to new bottom pane",(0,l.t)("unmerge to new bottom pane")),Pi=new c.TranslatedString("move {title} to new right scale",(0,l.t)("move {title} to new right scale")),Ti=new c.TranslatedString("move {title} to new left scale",(0,l.t)("move {title} to new left scale")),xi=new c.TranslatedString("make {title} no scale (Full screen)",(0,l.t)("make {title} no scale (Full screen)")),Ii=new c.TranslatedString("scroll time",(0,l.t)("scroll time")),Mi=new c.TranslatedString("scale time",(0,l.t)("scale time")),Li=new c.TranslatedString("reset time scale",(0,l.t)("reset time scale")),Ai=new c.TranslatedString("reset scales",(0,l.t)("reset scales")),Ei=new c.TranslatedString("create {tool}",(0,l.t)("create {tool}")),ki=new c.TranslatedString("change {pointIndex} point",(0,l.t)("change {pointIndex} point")),Di=new c.TranslatedString("paste {title}",(0,l.t)("paste {title}")),Vi=new c.TranslatedString("insert {title}",(0,l.t)("insert {title}")),Bi=new c.TranslatedString("remove all studies",(0,l.t)("remove all studies")),Ni=new c.TranslatedString("remove drawings",(0,l.t)("remove drawings")),Ri=new c.TranslatedString("remove all studies and drawing tools",(0,l.t)("remove all studies and drawing tools"));new c.TranslatedString("turn line tools sharing off",(0,l.t)("turn line tools sharing off")),new c.TranslatedString("share line tools in layout",(0,l.t)("share line tools in layout")),new c.TranslatedString("share line tools globally",(0,l.t)("share line tools globally"));function Oi(e,t){return{bringForwardEnabled:e.bringForwardEnabled||t.bringForwardEnabled,bringToFrontEnabled:e.bringToFrontEnabled||t.bringToFrontEnabled,sendBackwardEnabled:e.sendBackwardEnabled||t.sendBackwardEnabled,sendToBackEnabled:e.sendToBackEnabled||t.sendToBackEnabled}}function Fi(e){return new c.TranslatedString(e.name(),e.title())}function Wi(){return(0,Me.drawOnAllCharts)().value()?1:0}class Hi extends(r()){constructor(e,t,i,s,r,n,o,a,l,c,h){super(),this._createLineCommand=null,this._initialTimeScrollState=null,this._initialTimeScrollPos=null,this._scalePriceInfo=null,this._currentSourceMoveCommand=null,this._currentLineChangeCommand=null,this._currentCustomMoveCommand=null,this._zoomStack=new v.UndoStack,this._lineToolsDoNotAffectChartInvalidation=new Te.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._chartWidget=n,this.m_model=new(pt())(e,t,i,s,r,this,a,l,c,h),this._undoHistory=o,this._lineToolsGroupController=new Re({model:this._model.bind(this),pushUndoCommand:this._pushUndoCommand.bind(this), -beginUndoMacro:(e,t)=>{this._undoHistory.beginUndoMacro(e).setCustomFlag("doesnt_affect_save",!!t)},endUndoMacro:this._undoHistory.endUndoMacro.bind(this._undoHistory),emitEvent:this.emitEvent.bind(this)})}undoHistory(){return this._undoHistory}setWatchedValue(e,t,i){this._undoHistory.setWatchedValue(e,t,i)}lineToolsGroupController(){return this._lineToolsGroupController}mergeAllScales(e){!function(e,t){e.beginUndoMacro("left"===t?m:g),e.model().panes().forEach(i=>{const s="left"===t?i.rightPriceScales():i.leftPriceScales(),r=("left"===t?i.leftPriceScales():i.rightPriceScales()).concat(s),n="overlay"===i.priceScalePosition(i.defaultPriceScale())?r[0]:i.defaultPriceScale();e.movePriceScale(i,n,t,0),r.forEach(t=>{if(t===n)return;let s=t.mainSource();for(;null!==s;){e.moveToScale(s,i,n,null,!0);const r=t.mainSource();if(r===s){f.logError("Loop detected while trying to merge scales");break}s=r}})}),e.endUndoMacro(),e.model().fullUpdate()}(this,e)}movePriceScale(e,t,i,s){const r=new y(this._model(),e,t,i,s,ci);this._pushUndoCommand(r)}createLineTool({pane:e,point:t,linetool:i,properties:s,linkKey:r,ownerSource:n,disableSynchronization:a,sharingMode:l=Wi(),id:h}){if(("LineToolRegressionTrend"===i||"LineToolAnchoredVWAP"===i)&&!this.canCreateStudy())return(0,d.showTooManyStudiesNotice)(),null;const u=Ei.format({tool:new c.TranslatedString(i,E.lineToolsLocalizedNames[i])});this.beginUndoMacro(u,this._lineToolsDoNotAffectChartInvalidation.value());const p=!a;this._createLineCommand=new D(this._model(),e,i,n||(0,o.ensureNotNull)(e.mainDataSource()),l,h);const _=this._createLineCommand.startCreatingLine(t,s,r||null),m=(0,o.ensureNotNull)(this._createLineCommand.line());let g=null;if(_&&(p&&this.finishLineTool(m),this._pushUndoCommand(this._createLineCommand),this._createLineCommand=null,g={points:m.normalizedPoints(),interval:this.mainSeries().interval()}),p&&void 0===r&&(0,Me.drawOnAllCharts)().value()&&m.isSynchronizable()){const e=(0,o.ensureNotNull)(this.model().externalTimeStamp(t.index)),s={point:{price:t.price,timeStamp:e},linetool:i,properties:m.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:(0,o.ensureNotNull)(m.linkKey().value()),finalState:g,id:m.id()};m.isFixed()&&(s.pointPositionPercents=m.calcPositionPercents()[0]),(0,Me.createLineTool)(s)}return this.endUndoMacro(),m}continueCreatingLine(e,t,i,s){const r=(0,o.ensureNotNull)(this._createLineCommand);this.beginUndoMacro(r.text(),this._lineToolsDoNotAffectChartInvalidation.value());const n=(0,o.ensureNotNull)(this._model().lineBeingCreated()),a=r.continueCreatingLine(e,t,i,s);let l=null;if(a&&(this.finishLineTool(n),this._pushUndoCommand(r),this._createLineCommand=null,l={points:n.normalizedPoints(),interval:this.mainSeries().interval()}),r.drawOnAllCharts()&&n.isSynchronizable()){const i=(0,o.ensureNotNull)(this._model().externalTimeStamp(e.index));(0,Me.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a}continueExternalLine(e,t,i){const s=(0, -o.ensureNotNull)(this._createLineCommand),r=s.continueCreatingLine(e,t,i);return r&&(this._pushUndoCommand(s),this._createLineCommand=null),r}finishLineTool(e){this._model().finishLineTool(e)}pasteImageAsLineTool(e,t,i,s){return null}loadRange(e){this._pushUndoCommand(new fe(this._model(),e))}unlinkLines(e){const t=this.model();this.beginUndoMacro(hi,this._lineToolsDoNotAffectChartInvalidation.value());for(const i of e)null!==i.linkKey().value()&&(0,Me.removeLineTool)({withUndo:!0,model:this.model(),symbol:i.symbol(),linkKey:(0,o.ensureNotNull)(i.linkKey().value()),sourceTitle:Fi(i),lineToolState:i.state(!1),unlink:!0}),this._pushUndoCommand(new Ct(t,i));this.endUndoMacro()}zoomFromViewport(){const e=new bt((0,o.ensureDefined)(this._zoomStack.head()),this._zoomStack,!1);this._pushUndoCommand(e)}zoomToViewport(e,t,i,s,r){const n=new vt(this.m_model,e,t,i,s,r),o=new bt(n,this._zoomStack,!0);this._pushUndoCommand(o)}zoomStack(){return this._zoomStack}hoveredSource(){return this.m_model.hoveredSource()}setProperty(e,t,i,s){if(e&&e.value()!==t){const r=new xe(e,t,i,this.m_model,s);this._pushUndoCommand(r),this.emitEvent("setProperty")}}withMacro(e,t,i){const s=this.beginUndoMacro(e,i);try{t()}finally{this.endUndoMacro()}return s}barsMarksSources(){return this.m_model.barsMarksSources()}barMarksSourceForId(e){return this.m_model.barMarksSourceForId(e)}removeAllDrawingTools(){this.beginUndoMacro(Ni,!0),this._removeAllDrawingToolsImpl(),this.endUndoMacro()}removeAllStudiesAndDrawingTools(){this.beginUndoMacro(Ri),this._removeAllDrawingToolsImpl(),this._removeAllStudiesImpl(),this.endUndoMacro()}removeAllStudies(){this.beginUndoMacro(Bi),this._removeAllStudiesImpl(),this.endUndoMacro()}canZoomIn(){return this.model().canZoomIn()}canZoomOut(){return this.model().canZoomOut()}zoomOut(){const e=this.timeScale().width();if(this.canZoomOut()){try{this.beginUndoMacro(di)}catch(e){return}(0,ve.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(0),this.scaleTimeTo(e),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}zoomIn(){const e=this.timeScale().width();if(this.canZoomIn()){try{this.beginUndoMacro(ui)}catch(e){return}(0,ve.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(e),this.scaleTimeTo(0),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}startMovingSources(e,t,i,s){e.filter(e=>e.doesMovingAffectsUndo()).length&&(this._currentSourceMoveCommand=new I(this.model(),e,pi,!1),e.every(b.isLineTool)&&this._currentSourceMoveCommand.setCustomFlag("doesnt_affect_save",this._lineToolsDoNotAffectChartInvalidation.value())),this.model().startMovingSources(e,t,i,new Map,s)}moveSources(e,t){this.model().moveSources(e,new Map,t)}endMovingSource(e,t){this.model().endMovingSources(e,void 0,t),null!==this._currentSourceMoveCommand&&(this._currentSourceMoveCommand.saveNewState(),this._pushUndoCommand(this._currentSourceMoveCommand)),this._currentSourceMoveCommand=null}startChangingLinetool(e,t,i,s,r){this._currentLineChangeCommand=new I(this.model(),[e],ki.format({pointIndex:i}),!1), -this._currentLineChangeCommand.setCustomFlag("doesnt_affect_save",this._lineToolsDoNotAffectChartInvalidation.value()),this.model().startChangingLinetool(e,t,i,s,r)}changeLinePoint(e,t){this.model().changeLinePoint(e,t)}endChangingLinetool(e){this.model().endChangingLinetool(e),null!==this._currentLineChangeCommand&&(this._currentLineChangeCommand.saveNewState(),this._pushUndoCommand(this._currentLineChangeCommand)),this._currentLineChangeCommand=null}setChartStyleProperty(e,t,i){if(e.value()!==t){const s=new pe(e,t,this.mainSeries(),i,this.model(),this.chartWidget());this._pushUndoCommand(s),this.emitEvent("setChartStyleProperty"),(0,ae.trackChartStyleChanged)(e.value())}}restorePropertiesForSource(e){(0,b.isLineTool)(e)?this._restoreLineToolFactoryDefaults(e):this._restoreStudyFactoryDefaults(e)}restoreState(e,t,i){return this.m_model.restoreState(e,t,i)}async clipboardCopy(e,t=this.selection().dataSources()){if(!(0,gt.enabled)("datasource_copypaste"))return;const i=t.filter(e=>e.copiable());if(0===i.length)return;for(const e of i)if((0,x.isStudy)(e)&&e.isChildStudy())throw new Error("Can not copy child study");const s=(0,V.clipboardDataForSources)(this._model().id(),i);return null!==s?e.write({app:JSON.stringify(s),text:s.title}):void 0}async clipboardCut(e,t=this.selection().dataSources()){if(!(0,gt.enabled)("datasource_copypaste"))return;const i=t.filter(e=>e.copiable());if(0===i.length)return;await this.clipboardCopy(e,i);const s=i.filter(e=>e.isUserDeletable());if(0===s.length)return;const r=(1===s.length?ni:oi).format({title:Fi(s[0])});this.beginUndoMacro(r),this.m_model.selectionMacro(()=>{this.removeSources(s,!1,r)}),this.endUndoMacro()}async clipboardPaste(e,t){let i=null;if((0,gt.enabled)("datasource_copypaste")&&(i=i||await e.read(),i.app)){const e=JSON.parse(i.app);if(null!==this.pasteSourceFromClip(t,e))return}await this._processSpecialLineToolsContents(e,i,t)}applyStudyTemplate(e,t){const i=new je(this._model(),e,t);this._pushUndoCommand(i)}startCustomMoving(e,t,i){this._currentCustomMoveCommand=new ct(this.model(),e,t,i)}customMoveBeingProcessed(){return null!==this._currentCustomMoveCommand}processCustomMove(e){(0,o.ensureNotNull)(this._currentCustomMoveCommand).move(e)}endCustomMoving(){null!==this._currentCustomMoveCommand&&this._currentCustomMoveCommand.hasChanges()&&(this._pushUndoCommand(this._currentCustomMoveCommand),this._currentCustomMoveCommand=null)}cloneLineTools(e,t){for(let t=0;t(0,o.ensureNotNull)(this.model().dataSourceForId(e)));this.copyToOtherCharts(e)}return this.endUndoMacro(),this.emitEvent("cloneLineTools"),i.newIds()}removeSource(e,t,i){this.lineBeingCreated()!==e?this.removeSources([e],t,ai.format({title:Fi(e)}),i):this.cancelCreatingLine()}removeSelectedSources(){const e=this._model().selection().dataSources() -;if(!e.length)return;const t=(e.length>1?li:ai).format({title:Fi(e[0])});this.removeSources(e,!1,t)}removeSources(e,t,i,s){s||(e=e.filter(e=>e.isUserDeletable()));const r=this._model(),n=r.lineToolsGroupModel(),a=e.every(b.isLineTool)&&this._lineToolsDoNotAffectChartInvalidation.value();this.beginUndoMacro(i,a),r.selectionMacro(s=>{const a=new Map;e.forEach(e=>{if((0,b.isLineTool)(e)){const t=n.groupForLineTool(e);if(null!==t){const i=a.get(t)||[];i.push(e),a.set(t,i)}null!==e.linkKey().value()&&(0,Me.removeLineTool)({withUndo:!0,model:this.model(),linkKey:(0,o.ensureNotNull)(e.linkKey().value()),symbol:this.model().mainSeries().symbol(),lineToolState:e.state(!1),sourceTitle:Fi(e)})}}),a.forEach((e,t)=>{const i=new P.ExcludeLineToolsFromGroupUndoCommand(r,t,e);this._pushUndoCommand(i)});const l=new C.RemoveSourcesCommand(r,e,i),c=l.removedIds();this._pushUndoCommand(l),!t&&c.length>0&&(1===c.length?this.emitEvent("removeSource",[c[0]]):this.emitEvent("removeSources",[c]))}),this.endUndoMacro()}removeUnloadedLineTool({lineToolsSynchronizer:e,sourceTitle:t,linkKey:i,symbol:s,state:r,withUndo:n,unlink:o}){}async scrollToLineTool(e){const t=this.timeScale().logicalRange();if(null===t)return;const i=this.timeScale().barSpacing();let s=t.left();const r=e.points().map(e=>e.index);let n=this.timeScale().points().firstIndex();const a=this.timeScale().points().lastIndex();if(null===n||null===a)return;const l=t.length()/2;if(0===r.length||r.some(e=>t.contains(e)))return;const c=()=>{const t=e.points().map(e=>e.index),i=t.filter(e=>e<=a).reduce((e,t)=>null===e?t:Math.max(e,t),null);return null!==i?i:t.reduce((e,t)=>Math.min(e,t))};let d,u=c();if(n-l>u){const t=e.points().map(e=>e.time).filter(T.notUndefined).map(e=>e.valueOf()/1e3);if(0===t.length)return;const i=t.reduce((e,t)=>Math.min(e,t),t[0]);await this.model().gotoTime(i),u=c();s=(0,o.ensureNotNull)(this.timeScale().logicalRange()).left(),n=(0,o.ensureNotNull)(this.timeScale().points().firstIndex())}n-l>u?(d=(s-n+l)*i,this.mainSeries().setGotoDateResult({timestamp:(0,o.ensureNotNull)(this.timeScale().points().valueAt(n)),eod:!0})):d=(s-u+1+l)*i,this.startScrollTime(0),(0,ve.doAnimate)({onStep:(e,t)=>this.scrollTimeTo(t),from:0,to:Math.round(d),easing:h.easingFunc.easeInOutCubic,duration:h.dur,onComplete:()=>this.endScrollTime()})}mergeSourceUp(e){const t=new L.MergeUpUndoCommand(this._model(),e,vi);this._mergeUnmergeSource(e,t)}mergeSourceDown(e){const t=new L.MergeDownUndoCommand(this._model(),e,Si);this._mergeUnmergeSource(e,t)}mergeToPane(e,t){const i=this._model().panes().indexOf(t),s=new L.MergeToTargetPane(this._model(),e,i,yi);this._mergeUnmergeSource(e,s)}unmergeSourceUp(e){const t=new M.UnmergeUpUndoCommand(this._model(),e,bi);this._mergeUnmergeSource(e,t)}unmergeSourceDown(e){const t=new M.UnmergeDownUndoCommand(this._model(),e,wi);this._mergeUnmergeSource(e,t)}unmergeToNewBottomPane(e){const t=new M.UnmergeToNewBottomPane(this._model(),e,Ci);this._mergeUnmergeSource(e,t)}availableZOrderOperations(e){ -const t=this._model().lineToolsGroupModel(),i=e.filter(b.isLineTool),s=i.map(e=>t.groupForLineTool(e));(0,o.assert)(new Set(s).size<=1,"Cannot move line tools from different group");const r=0===s.length?null:s[0];let n={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1};const a=new Set(i);for(const t of(0,A.sortSources)(e)){if((0,b.isLineTool)(t)&&null!==r){const e=(0,A.sortSources)(r.lineTools().filter(e=>!a.has(e)||e===t));n=Oi(n,{bringForwardEnabled:t!==e[e.length-1],bringToFrontEnabled:t!==e[e.length-1],sendBackwardEnabled:t!==e[0],sendToBackEnabled:t!==e[0]});continue}const e=(0,o.ensureNotNull)(this._model().paneForSource(t)).sourcesByGroup().allExceptSpecialSources();if(0===e.length)continue;const i=t.zorder(),s=e[0].zorder(),l=e[e.length-1].zorder();n=Oi(n,{bringForwardEnabled:i!==l,bringToFrontEnabled:i!==l,sendBackwardEnabled:i!==s,sendToBackEnabled:i!==s})}return n}sendToBack(e){if(!this.availableZOrderOperations(e).sendToBackEnabled)throw new Error("Send to back operation is unavailable");let t=null;const i=e[0];if((0,b.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new X(this.model(),(0,A.sortSources)(e),i[0])}}null===t&&(t=new q(this.model(),(0,A.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}bringToFront(e){if(!this.availableZOrderOperations(e).bringToFrontEnabled)throw new Error("Bring to front operation is unavailable");let t=null;const i=e[0];if((0,b.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new K(this.model(),(0,A.sortSources)(e),i[i.length-1])}}null===t&&(t=new G(this.model(),(0,A.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}sendBackward(e){if(!this.availableZOrderOperations(e).sendBackwardEnabled)throw new Error("Send backward operation is unavailable");const t=ti.format({title:Fi(e[0])});this._sendBackOrBringForward(t,(0,A.sortSources)(e),(e,t)=>new J(this.model(),e,t))}bringForward(e){if(!this.availableZOrderOperations(e).bringForwardEnabled)throw new Error("Bring forward operation is unavailable");const t=ii.format({title:Fi(e[0])});this._sendBackOrBringForward(t,(0,A.sortSources)(e),(e,t)=>new ee(this.model(),e,t))}insertAfter(e,t){e=(0,A.sortSources)(e);const i=si.format({title:Fi(e[0]),target:Fi(t)});this._insertAfterOrBefore(i,e,t,()=>new K(this.model(),e,t))}insertBefore(e,t){e=(0,A.sortSources)(e);const i=ri.format({title:Fi(e[0]),target:Fi(t)});this._insertAfterOrBefore(i,e,t,()=>new X(this.model(),e,t))}detachToRight(e,t){(0,tt.trackEvent)("Chart","Move to new right scale");const i=Pi.format({title:Fi(e)}),s=new Je.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"right",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachToLeft(e,t){(0,tt.trackEvent)("Chart","Move to new left scale");const i=Ti.format({title:Fi(e)}),s=new Je.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"left",i);this._pushUndoCommand(s), -this.emitEvent("moveSource",[e])}detachNoScale(e,t){(0,tt.trackEvent)("Chart","Make source no scale");const i=xi.format({title:Fi(e)}),s=new Je.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"overlay",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}moveToScale(e,t,i,s,r){(0,tt.trackEvent)("Chart","Move source to target scale"),this.beginUndoMacro(s);const n=new Je.MoveToExistingPriceScaleUndoCommand(this.model(),e,t,i,s),o=r?null:(0,it.sourceNewCurrencyOnPinningToPriceScale)(e,i,this._model()),a=r?null:(0,_t.sourceNewUnitOnPinningToPriceScale)(e,i,this._model());this._pushUndoCommand(n),null!==o&&this.setPriceScaleCurrency(i,o),null!==a&&this.setPriceScaleUnit(i,a),this.endUndoMacro(),this.emitEvent("moveSource",[e])}startScrollTime(e){const t=this.timeScale();this._initialTimeScrollState={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()},this._initialTimeScrollPos=e,this.model().startScrollTime(e)}scrollTimeTo(e){let t=!1;return null!==this._initialTimeScrollPos&&null!==this._initialTimeScrollState&&Math.abs(e-this._initialTimeScrollPos)>20&&(this._pushUndoCommand(new oe.TimeScaleChangeUndoCommand(this.model(),this._initialTimeScrollState,Ii)),this._initialTimeScrollPos=null,this._initialTimeScrollState=null,t=!0),this.model().scrollTimeTo(e),t}endScrollTime(){this.model().endScrollTime(),this._initialTimeScrollPos=null,this._initialTimeScrollState=null}startScaleTime(e){const t=this.timeScale(),i={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()};this._pushUndoCommand(new oe.TimeScaleChangeUndoCommand(this.model(),i,Mi)),this.model().startScaleTime(e)}scaleTimeTo(e){this.model().scaleTimeTo(e)}endScaleTime(){this.model().endScaleTime()}resetTimeScale(){const e=this.timeScale(),t={rightOffset:e.rightOffset(),barSpacing:e.barSpacing()};this._pushUndoCommand(new oe.TimeScaleChangeUndoCommand(this.model(),t,Li)),this.model().resetTimeScale()}startScalePrice(e,t,i,s){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:s},this.model().startScalePrice(e,t,i)}scalePriceTo(e,t,i){this.model().scalePriceTo(e,t,i)}endScalePrice(e,t){this.model().endScalePrice(e,t);const i=(0,o.ensureNotNull)(this._scalePriceInfo);(0,n.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new mt.PriceScaleChangeUndoCommand(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}startTwoPointsScalePrice(e,t,i,s,r){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:r},this.model().startTwoPointsScalePrice(e,t,i,s)}twoPointsScalePriceTo(e,t,i,s){this.model().twoPointsScalePriceTo(e,t,i,s)}endTwoPointsScalePrice(e,t){this.model().endTwoPointsScalePrice(e,t);const i=(0,o.ensureNotNull)(this._scalePriceInfo);(0,n.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new mt.PriceScaleChangeUndoCommand(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}resetPriceScale(e,t){const i=t.state();this.model().resetPriceScale(e,t),(0, -n.default)(i,t.state())||this._pushUndoCommand(new mt.PriceScaleChangeUndoCommand(this.m_model,e,t,i))}rearrangePanes(e,t){const i=new ne(this._model(),e,t);this._pushUndoCommand(i)}movePane(e,t){const i=new ne(this._model(),e,t);this._pushUndoCommand(i)}pasteSourceFromClip(e,t,i){const s=t;if(!s||0===s.sources.length)return null;const r=e||(0,o.ensureNotNull)(this.model().paneForSource(this.mainSeries()));if(!s.sources.some(e=>"drawing"!==e.type||null!==r.clipboardLineToolOwnerSource(e.source.id)))return null;this.beginUndoMacro(Di.format({title:s.title}));let n=0;const a=[],l=[];for(const t of s.sources)if("drawing"===t.type&&null!==r.clipboardLineToolOwnerSource(t.source.id)){const e=this.pasteLineTool(r,t);n<5&&((0,ae.trackDrawingPasted)(e),n+=1),l.push(e),a.push(e)}else"study"===t.type&&t.source&&t.source.metaInfo&&this.checkIfFeatureAvailable(new(p())(t.source.metaInfo))&&a.push(this.pasteStudy(t,i?e:void 0));return l.length&&this.selectionMacro(e=>{e.clearSelection(),l.forEach(t=>{e.addSourceToSelection(t,null)})}),this.endUndoMacro(),a}pasteLineTool(e,t,i,s){t.source.state.intervalsVisibilities=(0,Lt.mergeIntervalVisibilitiesDefaults)(t.source.state.intervalsVisibilities),(0,Lt.makeIntervalsVisibilitiesVisibleAtInterval)(t.source.state.intervalsVisibilities,me.Interval.parse(this.model().mainSeries().interval()));const r=new $e(this.model(),t,e,i,s);this._pushUndoCommand(r);const n=r.source();return r.needCopyToOtherCharts()&&this.copyToOtherCharts([n]),this.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(n,null)}),n}pasteStudy(e,t){const i=new nt(this.model(),e,null==t?void 0:t.id());this._pushUndoCommand(i);const s=(0,o.ensureNotNull)(i.state()).id;return(0,ei.emit)("study_event",s,"paste_study"),(0,o.ensureNotNull)(this._model().dataSourceForId(s))}setPriceScaleCurrency(e,t){const i=new Xe.SetPriceScaleCurrencyUndoCommand(e,t,this.chartWidget(),mi);this._pushUndoCommand(i)}setPriceScaleUnit(e,t){const i=new Ze.SetPriceScaleUnitUndoCommand(e,t,this.chartWidget(),gi);this._pushUndoCommand(i)}setSymbol(e,t){e.symbol()!==t&&this._pushUndoCommand(new et(e,t,this.chartWidget()))}setResolution(e,t){me.Interval.isEqual(e.interval(),t)||this._pushUndoCommand(new Qt(e,t,this.chartWidget()))}chartLoadTheme(e,t,i){const s=new Zt(this.model(),e,t);i?s.redo():this._pushUndoCommand(s)}isJustClonedChart(){return this._chartWidget.isJustClonedChart()}copyToOtherCharts(e){const t=this.mainSeries(),i=t.syncModel(),s=this.timeScale();if(i)for(const r of e){if(!r.isSynchronizable())continue;const e=r.linkKey().value()||(0,Ge.randomHash)();r.linkKey().setValue(e);const n=r.state(!1),a=r.normalizedPoints(),l=r.properties().interval.value(),c=t.interval();let h;if(me.Interval.isEqual(l,c))h=a.map(e=>{const t=(0,o.ensureNotNull)(s.timePointToIndex(e.time_t))+e.offset;return{price:e.price,timeStamp:(0,o.ensureNotNull)(this.model().externalTimeStamp(t))}});else{const e=i.createNewModelWithResolution(l);h=a.map(t=>({price:t.price,timeStamp:0===t.offset?t.time_t:e.projectTime(t.time_t,t.offset)}))}const d={...n,id:r.id(), -linkKey:e,points:h,linetool:r.toolname,model:this.model(),symbol:t.symbol(),finalState:{points:a,interval:l},pointPositionPercents:r.isFixed()?r.calcPositionPercents():void 0,sharingMode:r.sharingMode().value()};(0,Me.copyLineTool)(d)}}addPaneStretchFactorUndoCommand(e,t,i,s){const r=new ot(this.model(),e,t,i,s);this._pushUndoCommand(r)}paneForSource(e){return this.m_model.paneForSource(e)}destroy(){this._lineToolsDoNotAffectChartInvalidation.destroy(),this.m_model.destroy()}moveSelectedToolsLeft(){return this._moveSelectedTools(2)}moveSelectedToolsUp(){return this._moveSelectedTools(0)}moveSelectedToolsRight(){return this._moveSelectedTools(3)}moveSelectedToolsDown(){return this._moveSelectedTools(1)}insertStudyWithoutCheck(e,t){return this._insertStudy(e,t,{},!1,void 0,void 0,void 0,void 0,void 0,null,void 0)}saveLineToolState(e,t){this._pushUndoCommand(new I(this.m_model,[e],t))}resetScales(){this.beginUndoMacro(Ai),this.resetTimeScale();for(const e of this.m_model.panes()){for(const t of e.leftPriceScales())this.resetPriceScale(e,t);for(const t of e.rightPriceScales())this.resetPriceScale(e,t)}this.endUndoMacro(),this.m_model.recalculateAllPanes((0,ue.viewportChangeEvent)())}shareLineTools(e,t){}_mergeUnmergeSource(e,t){this.beginUndoMacro(t.text());const i=(0,o.ensureNotNull)(this._model().paneForSource(e)),s=new Set(i.sourcesByGroup().lineSources().filter(t=>t.ownerSource()===e));this._model().lineToolsGroupModel().groups().filter(e=>{const t=e.lineTools().some(e=>s.has(e)),i=e.lineTools().some(e=>!s.has(e));return t&&i}).forEach(e=>{this._pushUndoCommand(new P.ExcludeLineToolsFromGroupUndoCommand(this._model(),e,e.lineTools()))}),this._pushUndoCommand(t),this.endUndoMacro()}_insertStudy(e,t,i,s,r,n,a,l,c,h,d){const u=Vi.format({title:e.description});this.beginUndoMacro(u);const p=new ht(this.model(),e,t,i,s,r,n,a,l,c,h||null,u);this._pushUndoCommand(p);const _=p.insertedStudy();if(void 0!==d){const e=new dt.SetPriceScaleModeCommand(d,(0,o.ensureNotNull)(_.priceScale()),null,this.model());this._pushUndoCommand(e)}return this.endUndoMacro(),_}async _processSpecialLineToolsContents(e,t,i){0}_insertAfterOrBefore(e,t,i,s){const r=(0,o.ensureNotNull)(this._model().paneForSource(i));if(t.some(e=>(0,b.isLineTool)(e)&&this._model().paneForSource(e)!==r))throw new Error("Cannot insert line tool after target on another pane");this.beginUndoMacro(e),t.forEach(e=>{(0,o.ensureNotNull)(this.model().paneForSource(e))!==r&&this.mergeToPane(e,r)});const n=s();this._pushUndoCommand(n),this.emitEvent("changeZOrder",[t]),this.endUndoMacro()}_sendBackOrBringForward(e,t,i){const s=new Map;t.forEach(e=>{const t=(0,o.ensureNotNull)(this._model().paneForSource(e)),i=s.get(t)||[];i.push(e),s.set(t,i)}),this.beginUndoMacro(e),s.forEach((e,t)=>{this._pushUndoCommand(i(t,e))}),this.endUndoMacro(),this.emitEvent("changeZOrder",[t])}_moveSelectedTools(e){const t=this.model().selection().lineDataSources();if(0===t.length)return!1;if((0,Me.lockDrawings)().value())return!0;const i=this.timeScale().visibleBarsStrictRange();if(null===i)return!1 -;const s=function(e){const t=new Map;for(const i of e){const e=i.ownerSource();if(null===e)continue;let s=t.get(e);if(void 0===s){const r=e.priceScale(),n=e.priceStep(),o=e.firstValue();if(null===r||null===n||null===o)continue;if(null===r.priceRange())continue;s={sources:[],priceScale:r,priceStep:n,startPrice:i.points()[0].price,firstValue:o},t.set(e,s)}s.sources.push(i)}return t}(t);if(0===s.size)return!1;this.beginUndoMacro(pi,this._lineToolsDoNotAffectChartInvalidation.value());const r=i.firstBar(),n=this.timeScale().indexToCoordinate(r),o=r+(3===e?1:2===e?-1:0),l=this.timeScale().indexToCoordinate(o);return Me.isDirectionalMovementActive.setValue(!0),s.forEach(t=>{const{startPrice:i,priceStep:s,priceScale:c,firstValue:h}=t,d=i+(0===e?s:1===e?-s:0),u=c.priceToCoordinate(i,h),p=c.priceToCoordinate(d,h),_={logical:{index:r,price:i},screen:new a.Point(n,u)},m={logical:{index:o,price:d},screen:new a.Point(l,p)};this.startMovingSources(t.sources,_,null),this.moveSources(m),this.endMovingSource(!1,!0)}),Me.isDirectionalMovementActive.setValue(!1),this.endUndoMacro(),!0}_restoreStudyFactoryDefaults(e){const t=new Mt(this.m_model,e.properties());this._pushUndoCommand(t)}_restoreLineToolFactoryDefaults(e){this.beginUndoMacro(_i,this._lineToolsDoNotAffectChartInvalidation.value()),this.saveLineToolState(e,_i);const t=new It(this.m_model,e.properties(),_i);this._pushUndoCommand(t),this.saveLineToolState(e,_i),this.endUndoMacro(),this.model().updateSource(e)}_removeAllDrawingToolsImpl(e){this.selectionMacro(()=>{this.lineBeingCreated()&&this.cancelCreatingLine();this.dataSources().filter(b.isLineTool).filter(e=>e.isActualSymbol()&&e.isUserDeletable()).filter(t=>!e||e===t.toolname).forEach(e=>this.removeSource(e,!1))})}_removeAllStudiesImpl(){const e=this.dataSources(),t=e.filter(x.isStudy).filter(e=>!e.isChildStudy()&&e.removeByRemoveAllStudies()),i=e.filter(x.isStudyStub);t.concat(i).forEach(e=>this.removeSource(e,!1))}}},88735:(e,t,i)=>{"use strict";var s=i(2872),r=i(88537).ensureNotNull,n=i(56840),o=i(88537).assert,a=i(36244).ChartModelBase,l=i(14291),c=l.isLineTool,h=l.isStudyLineTool,d=i(39094).Watermark,u=i(49483).CheckMobile,p=i(23653).InvalidationMask,_=i(23653).InvalidationLevel;const{globalChangeEvent:m,dataSourceChangeEvent:g}=i(33291);var f=i(66101),v=f.Study,S=i(13672).NonSeriesStudy,y=i(81851),b=y.createStudy,w=y.isStudy,C=y.isFundamentalStudy,P=f.prepareStudyProperties,T=i(85733),x=i(88564).saveDefaultProperties,I=i(32050).MainSeriesScaleRatioProperty,M=i(22423).scaleRatio,L=i(90998).StudyInserter,A=i(21761).dateFormatProperty,E=i(79680).isActingAsSymbolSource,k=i(13795).sourceNewCurrencyOnPinningToPriceScale,D=i(79222).sourceNewUnitOnPinningToPriceScale,V=i(76422),B=i(56606).StudyColorRotatorFactory,N=i(67337),R=i(44419).AppliedTimeFrame,O=N.enabled("auto_enable_symbol_labels");N.enabled("fix_left_edge");class F extends a{constructor(e,t,i,r,n,o,a,l,c,h){super(e,t,i,r,n,o,a,l,c,h);var u=this,p=this.m_mainSeries.properties(),_=this._panes[0];_.setStretchFactor(2*_.stretchFactor()), -this._properties.listeners().subscribe(this,F.prototype.propertyChangeHandler),this._properties.timezone.listeners().subscribe(null,(function(){u._chartApi&&u._chartApi.isConnected().value()&&u._chartApi.switchTimezone(u.timezone())})),_.addDataSource(this.m_mainSeries,this._panes[0].findSuitableScale(this.m_mainSeries)),this._mainSeriesScaleRatioProperty=new I(this),this.m_mainSeries.dataEvents().completed().subscribe(this,function(){this._scrollingState&&this.gotoTime()}.bind(this)),this.m_mainSeries.onIntervalChanged().subscribe(this,(function(){this._recalcVRStudiesParams.oldStartVisibleIndex=NaN,this._recalcVRStudiesParams.oldEndVisibleIndex=NaN})),this._readOnly||(p.addChild("priceAxisProperties",this.m_mainSeries.m_priceScale.properties()),this._properties.paneProperties.legendProperties.showStudyTitles.listeners().subscribe(this,(function(e){e.value()||u._properties.paneProperties.legendProperties.showStudyArguments.setValue(!1)}))),this._barsMarksSources=a(this);for(var m=0;m0),n?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:e+t}}setPriceAutoScale(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,_.Light))}updateScales(e,t){this._undoModel._chartWidget._updateScalesActions()}mainSeriesScaleRatioProperty(){return this._mainSeriesScaleRatioProperty}mainSeriesScaleRatioPropertyOnChanged(){this._mainSeriesScaleRatioProperty.listeners().fire(this._mainSeriesScaleRatioProperty)}mainSeriesScaleRatio(){return M(this._timeScale,this.m_mainSeries.priceScale())}setMainSeriesScaleRatio(e){this.paneForSource(this.m_mainSeries).applyPriceScaleRatio(this.m_mainSeries.priceScale(),e)}recalcStudyBasedLineTools(){this.dataSources().forEach((function(e){h(e)&&e.recalcStudyIfNeeded&&e.recalcStudyIfNeeded()}))}restoreFactoryDefaults(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(!0)}orderedDataSources(e){var t=[];t.push(this.m_crossHairSource);for(var i=0;i0)}createStudyInserter(e){return new L(e,this._studiesMetaInfoRepository,{createStudy:this.insertStudyWithParams.bind(this)})}insertStudyWithParams(e,t,i,s,r,o,a,l,c,h,d){null==o&&(o=this.mainSeries());var u=null;if(!r&&void 0!==e.groupingKey){var p=this.findNonOverlayStudyWithGroupingKey(e.groupingKey);null!==p&&(u=p.pane)}null===u&&(r||e.is_price_study?u=this.paneForSource(o):(u=this.createPane(),void 0!==h&&u.setPaneSize(h))),"Compare@tv-basicstudies"===e.id&&this.m_mainSeries.priceScale().setMode({log:!1,percentage:!0});var _=Object.assign({},s,{inputs:t}),m=P(e,_,u,this.studyVersioning(),o),f=b(this,m,o,e,d);this._recalcVisibleRangeStudiesImpl({studies:[f],oldEndVisibleIndex:-1,oldStartVisibleIndex:-1,force:!0,timerId:null});var v=u.findSuitableScale(f,o,a);if(v===this.mainSeries().priceScale()&&E(f)){var S=l?k(f,v,this,!0):null,y=c?D(f,v,this,!0):null;null===S&&null===y||f.setSymbolParams({currency:S||void 0,unit:y||void 0})}return E(f)&&u.hasDataSource(this.mainSeries())&&O&&!n.getBool("enable_symbol_labels_on_inserting_compare_once",!1)&&(x(!0),this.properties().scalesProperties.showSymbolLabels.setValue(!0),x(!1),n.setValue("enable_symbol_labels_on_inserting_compare_once",!0)),f.start(),null!==i&&u.id()===i.paneId?u.insertDataSource(f,v,i.zorder):u.addDataSource(f,v),f.properties().linkedToSeries&&f.properties().linkedToSeries.value()&&f.setOwnerSource(this.mainSeries()),this.recalculatePane(u,g(f.id())),this.fullUpdate(),this._invalidateBarColorerCaches(),this._recalcVisibleRangeStudiesImpl({studies:[f],force:!0}),this._recalcColorStudiesImpl({studies:[f],force:!0}),this._studyInserted.fire(f),f.maxOffset().subscribe(this._boundUpdateStudiesMaxOffset,{callWithLast:!0}),f}studyInserted(){return this._studyInserted}_unmergeAvailable(e){return e===this.m_mainSeries||TradingView.isInherited(e.constructor,v)&&!e.isLinkedToSeries()&&!TradingView.isInherited(e.constructor,S)&&e.showInObjectTree()}isMergeUpAvailableForSource(e){return!!this._unmergeAvailable(e)&&this.paneForSource(e)!==this.panes()[0]}isMergeDownAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;var t=this.paneForSource(e),i=this.panes();return t!==i[i.length-1]}isUnmergeAvailableForSource(e){return!!this._unmergeAvailable(e)&&this.paneForSource(e).dataSources().filter(this._unmergeAvailable,this).length>1}lineBeingEdited(){return this._lineBeingEdited}linePointBeingEdited(){return this._linePointBeingEdited}calculateDefaultTags(){for(var e=[],t=this.dataSources(),i=0;i-1&&this._modelIntervals.splice(t,1)}clearIntervals(){for(var e=0;ethis.removeSource(e)),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),o(0===this._topmostCustomSources.length),o(0===this._fgCustomSources.length),o(0===this._bgCustomSources.length),o(0===this._allCustomSources.length),o(0===this._customSourcesMap.size);for(e=0;e{"use strict";var s=i(52640).makeFont,r=i(52640).parseFont,n=(0,i(98125).getLogger)("Model.ChartTradingUtils"),o={_fontHeightCache:{},_parsedColorCache:{},_parseColor:function(e){if(this._parsedColorCache[e])return this._parsedColorCache[e];var t=document.createElement("div");t.style.color=e;var i=t.style.color.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i)||t.style.color.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d*\.?\d+)\s*\)$/i),s={r:i[1],g:i[2],b:i[3],a:i[4]||"1"};return this._parsedColorCache[e]=s,s},getColorFromProperties:function(e,t){var i=1-t.value()/100,s=this._parseColor(e.value());return"rgba("+s.r+","+s.g+","+s.b+","+i+")"},setColorToProperties:function(e,t,i){var s=this._parseColor(e);t.setValue("rgb("+s.r+","+s.g+","+s.b+")");var r=100*(1-s.a);i.setValue(Math.max(0,Math.min(r,100)))},getFontFromProperties:function(e,t,i,r){ -return s(t.value(),e.value(),r.value()?"italic":"",i.value()?"bold":"")},setFontToProperties:function(e,t,i,s,o){var a=r(e);null!==a?(a.family.length>0&&t.setValue(a.family),i.setValue(a.size),s.setValue(a.bold),o.setValue(a.italic)):n.logError("Invalid font: "+e)},fontHeight:function(e){if(!this._fontHeightCache[e]){var t=document.createElement("span");t.appendChild(document.createTextNode("height")),document.body.appendChild(t),t.style.cssText="font: "+e+"; white-space: nowrap; display: inline;";var i=t.offsetHeight;document.body.removeChild(t),this._fontHeightCache[e]=Math.ceil(i)}return this._fontHeightCache[e]},drawPolyHoverOrPress:function(e,t,i,s){s?(e.save(),e.fillStyle="rgba(0, 0, 0, 0.15)",CanvasEx.drawPoly(e,t,!0),e.restore()):i&&(e.save(),e.fillStyle="rgba(0, 0, 0, 0.1)",CanvasEx.drawPoly(e,t,!0),e.restore())},repaint:function(e){e.lightUpdate()},roundToMinTick:function(e,t){var i=1/e.mainSource().base();return i*Math.round(t/i)}};e.exports=o},24431:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(59199).doAnimate,o=i(97205).ChartUndoModelBase,a=(i(88564).saveDefaultProperties,i(66101).Study),l=i(65645).showTooManyStudiesNotice,c=(i(35762).UndoCommand,i(17691).ApplyLineToolTemplateUndoCommand),h=i(89730).SetPriceScaleSelectionStrategyCommand,d=i(870).SetScaleRatioPropertiesCommand,u=i(90998).StudyInserter,p=i(51768).trackEvent,_=i(98125).getLogger("Chart.ChartUndoModel"),m=i(91794).RestoreDefaultsPreferencesUndoCommand,g=i(59836).SetPriceScaleModeCommand,f=i(69746).PriceScaleChangeUndoCommand,v=new r("move left",s("move left")),S=new r("move right",s("move right")),y=new r("toggle auto scale",s("toggle auto scale")),b=new r("toggle lock scale",s("toggle lock scale")),w=new r("toggle regular scale",s("toggle regular scale")),C=new r("toggle indexed to 100 scale",s("toggle indexed to 100 scale")),P=new r("toggle percentage scale",s("toggle percentage scale")),T=new r("toggle log scale",s("toggle log scale")),x=new r("invert scale",s("invert scale")),I=new r("remove pane",s("remove pane")),M=(new r("apply all chart properties",s("apply all chart properties")),new r("set price scale selection strategy to {title}",s("set price scale selection strategy to {title}")));s("Cheers");t.ChartUndoModel=class extends o{constructor(e,t,i,s,r,n,o,a,l,c,h){super(e,t,i,s,r,n,o,a,l,c,h),this.beginUndoMacro=(e,t)=>{var i=o.beginUndoMacro(e);return i.setCustomFlag("doesnt_affect_save",t),i},this.endUndoMacro=o.endUndoMacro.bind(o),this.createUndoCheckpoint=o.createUndoCheckpoint.bind(o),this.undoToCheckpoint=o.undoToCheckpoint.bind(o)}version(){return this.m_model.version()}createPane(e){return this.m_model.createPane(e)}readOnly(){return this.m_model.readOnly()}restart(){this.m_model.restart()}disconnect(){this.m_model.disconnect()}studiesMetaData(){return this.m_model.studiesMetaData()}studyVersioning(){return this.m_model.studyVersioning()}chartModel(){return this._model()}_model(){return this.m_model}pushUndoCommand(e){this._pushUndoCommand(e)}_pushUndoCommand(e){this._undoHistory.pushUndoCommand(e) -}startScrollPrice(e,t,i){t.isAutoScale()||(this._initialPriceScrollState=t.state(),this._initialPriceScrollPos=i,this.chartModel().startScrollPrice(e,t,i))}scrollPriceTo(e,t,i){t.isAutoScale()||(this._initialPriceScrollPos&&Math.abs(this._initialPriceScrollPos-i)>20&&(this.pushUndoCommand(new f(this.m_model,e,t,this._initialPriceScrollState)),delete this._initialPriceScrollState,delete this._initialPriceScrollPos),this.chartModel().scrollPriceTo(e,t,i))}endScrollPrice(e,t){t.isAutoScale()||(delete this._initialPriceScrollState,delete this._initialPriceScrollPos,this.chartModel().endScrollPrice(e,t))}setPriceAutoScale(e,t,i){this.pushUndoCommand(new f(this.m_model,e,t,t.state())),this.chartModel().setPriceAutoScale(e,t,i)}setWidth(e){this.m_model.setWidth(e)}setPaneHeight(e,t){this.m_model.setPaneHeight(e,t)}gridSource(){return this.m_model.gridSource()}watermarkSource(){return this.m_model.watermarkSource()}addAlertsSource(e){return this.m_model.addAlertsSource(e)}alertsSources(){return this.m_model.alertsSources()}publishedChartsTimelineSource(){return this.m_model.publishedChartsTimelineSource()}crossHairSource(){return this.m_model.crossHairSource()}model(){return this.m_model}chartWidget(){return this._chartWidget}mainSeries(){return this.m_model.m_mainSeries}mainSeriesScaleRatioProperty(){return this.m_model.mainSeriesScaleRatioProperty()}panes(){return this.m_model.panes()}timeScale(){return this.m_model.timeScale()}selectionMacro(e){return this.m_model.selectionMacro(e)}setHoveredSource(e,t){this.m_model.setHoveredSource(e,t)}selection(){return this.m_model.selection()}onSelectedSourceChanged(){return this.m_model.onSelectedSourceChanged()}activeStrategySource(){return this.m_model.activeStrategySource()}invalidate(e){this.m_model.invalidate(e)}setCurrentPosition(e,t,i,s){this.m_model.setCurrentPosition(e,t,i,s)}setAndSaveCurrentPosition(e,t,i,s){this.m_model.setAndSaveCurrentPosition(e,t,i,s)}canCreateStudy(e){return this.model().chartApi().chartApi().isCanCreateStudy(e)}_isCountedStudy(e){throw new Error("Not implemented")}checkIfFeatureAvailable(e,t){var i=this.canCreateStudy(),s=t&&t instanceof a;return!this.readOnly()&&s&&(i=this.canCreateStudy(!0)),!!i||(s||l(),!1)}createStudyInserter(e,t,i){var s=this,r=null,n={createStudy:function(e,t,i,n,o,a,l,c,h,d,u){return s.checkIfFeatureAvailable(e,a)?(p("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&p("compare","symbol:"+t.symbol),s._insertStudy(e,t,n,o,a,l,c,h,d,r,u)):(_.logNormal("Cannot insert study "+e.id),null)}};void 0!==i&&(n.createStub=function(){var e=s.m_model.insertStudyStub(i);return r={targetPaneId:s.m_model.paneForSource(e).id(),targetZOrder:e.zorder()},e.id()},n.removeStub=function(e){return s.m_model.removeStudyStub(e)});var o=new u(e,this.m_model._studiesMetaInfoRepository,n);return o.setParentSource(t),o}setProperties(e,t,i){var s=this;this.beginUndoMacro(i),this.m_model.selectionMacro((function(){for(var r=0;r{"use strict";var s;i.d(t,{ColorType:()=>s}),function(e){e.Solid="solid",e.Gradient="gradient"}(s||(s={}))},8175:(e,t,i)=>{"use strict";i.d(t,{currencyUnitVisibilityProperty:()=>o,currencyUnitVisibilityOptions:()=>a,migrateShowCurrencyAndShowUnitProperties:()=>c});var s=i(10133),r=i(56840),n=i.n(r);const{property:o,availableValues:a}=(0,s.createVisibilityController)("PriceAxisCurrencyAndUnit.visibility");let l=!1;function c(e,t){l||(l=!0,void 0===n().getValue("PriceAxisCurrencyAndUnit.visibility")&&o().setValue(e||t?"alwaysOn":"alwaysOff"))}},13795:(e,t,i)=>{"use strict";i.d(t,{sourceNewCurrencyOnPinningToPriceScale:()=>r});var s=i(79680);function r(e,t,i,r){let n=null;if(i.currencyConversionEnabled()&&(0,s.isActingAsSymbolSource)(e)){const s=i.availableCurrencies(),o=t.currency(s),a=e.currency();null!==o&&null!==o.selectedCurrency&&!o.allCurrenciesAreOriginal&&o.selectedCurrency!==a&&(r&&null===a||null!==a&&s.convertible(a))&&(n=o.selectedCurrency)}return n}},99305:(e,t,i)=>{"use strict";i.d(t,{CustomSourceBase:()=>s});class s{constructor(e,t){this._id=e,this._model=t}id(){return this._id}isHoveredEnabled(){return!0}isSelectionEnabled(){return!1}priceScale(){return null}paneViews(e){return[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateViewsForPane(e,t){e.containsMainSeries()&&this.updateAllViews(t)}}},50669:(e,t,i)=>{"use strict";i.d(t,{isMainSeriesState:()=>r,isStudyState:()=>n,isLineToolState:()=>o,isStudyLineToolState:()=>a});var s=i(14291);function r(e){return"MainSeries"===e.type}function n(e){return Boolean(e.type)&&e.type.toLowerCase().startsWith("study")}function o(e){return Boolean(e.type)&&(0,s.isLineToolName)(e.type)}function a(e){return Boolean(e.type)&&(0,s.isStudyLineToolName)(e.type)}},62443:(e,t,i)=>{"use strict";i.d(t,{DataSource:()=>l});i(67337);var s=i(52714),r=i.n(s),n=i(9423),o=i(2872),a=i.n(o);class l{constructor(e){this.hasAlert=new(r())(!1),this._zorder=0,this.m_priceScale=null,this._ownerSource=null,this._userEditEnabled=!0,this._onPriceScaleChanged=new(a()),this._isSelectionEnabled=!0,this._instanceId=(0,n.randomHashN)(6),this._ownerSourceChanged=new(a()),this._zOrderChanged=new(a()),this._id=null!=e?e:(0,n.randomHashN)(6)}id(){return this._id}instanceId(){return this._instanceId}preferNoScale(){return!1}setId(e){this._id=e}zorder(){return this._zorder}setZorder(e){"number"==typeof e&&this._zorder!==e&&(this._zorder=e,this._zOrderChanged.fire(e))}isSpeciallyZOrderedSource(){return!1}title(){throw new Error("Implement this fun in a subclass")}name(){throw new Error("Implement this fun in a subclass")}priceScale(){return this.m_priceScale}setPriceScale(e){this.m_priceScale=e,this._onPriceScaleChanged.fire()}ownerSource(){return this._ownerSource}setOwnerSource(e){ -this._ownerSource=e,this._ownerSourceChanged.fire()}ownerSourceChanged(){return this._ownerSourceChanged}zOrderChanged(){return this._zOrderChanged}isSavedInChart(e){return!0}isSavedInStudyTemplates(){return!0}isRemovedByStudyTemplates(){return!0}hasContextMenu(){return!0}showInObjectTree(){return!0}setUserEditEnabled(e){this._userEditEnabled=e}userEditEnabled(){return this._userEditEnabled}canBeHidden(){return this.userEditEnabled()}isUserDeletable(){return this.userEditEnabled()}properties(){throw new Error("Implement this fun in a subclass")}isVisible(){return this.properties().visible.value()}dataWindowView(){return null}priceAxisViews(e,t){return null}timeAxisViews(){return null}updateAllViews(e){}paneViews(e){return null}labelPaneViews(){return null}isFailed(){return!1}isLoading(){return!1}isPhantom(){return!1}isChildStudy(){return!1}hasChildren(){return!1}canHaveChildren(){return!1}onClickOutside(){}getSourceIcon(){return null}state(e){throw new Error("Implement this fun in a subclass")}onPriceScaleChanged(){return this._onPriceScaleChanged}doesMovingAffectsUndo(){return!0}isMultiPaneAvailable(){return!1}isMultiPaneEnabled(){return!1}copiable(){return!1}cloneable(){return!1}movable(){return!1}isIncludedInAutoScale(){return!1}isHoveredEnabled(){return this.isSelectionEnabled()}isSelectionEnabled(){return this._isSelectionEnabled}setSelectionEnabled(e){this._isSelectionEnabled=e}firstValue(){return null}priceRange(e,t){return null}autoScaleInfo(e,t){return{range:this.priceRange(e,t)}}stateForAlert(){return null}canHasAlert(){return!1}alertCreationAvailable(){return this.hasStateForAlert()}hasStateForAlert(){return!1}idForAlert(){return this._id}}},14445:(e,t,i)=>{"use strict";i.d(t,{DataWindowItem:()=>s,DataWindowView:()=>r});class s{constructor(e,t,i=!1){this._visible=!0,this._title=e,this._value=t,this._unimportant=i}title(){return this._title}setTitle(e){this._title=e}text(){return this._value}value(){return this._value}setValue(e){this._value=e}visible(){return this._visible}setVisible(e){this._visible=e}color(){return this._color}setColor(e){this._color=e}unimportant(){return this._unimportant}}class r{constructor(){this._items=[],this._header="",this._title=""}header(){return this._header}title(){return this._title}items(){return this._items}update(){}}},21761:(e,t,i)=>{"use strict";i.d(t,{dateFormatProperty:()=>a,restoreDateFormatSettingsValue:()=>l});var s=i(56840),r=i(32255),n=i(7043);function o(){return s.getValue("date_format",(0,n.defaultDateFormat)())}const a=(0,r.createPrimitiveProperty)(o());function l(){a.setValue((0,n.defaultDateFormat)()),s.remove("date_format")}s.onSync.subscribe(null,()=>a.setValue(o())),a.listeners().subscribe(null,()=>s.setValue("date_format",a.value()))},88564:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createDefaultsState:()=>u,saveDefaultProperties:()=>_,DefaultProperty:()=>m});var s=i(27788),r=i(58121),n=i(15736),o=i(59803),a=i(2015),l=i.n(a),c=i(2872),h=i.n(c);function d(e,t){const i=(0,s.default)(e);return t.forEach(e=>(0,n.default)(i,e.split("."))),i}function u(e,t,i,n){ -const a=e?o.defaults:o.factoryDefaults,l=t.startsWith("study_")?(0,s.default)(a("study")):{};let c=(0,s.default)(a(t,n));return t.startsWith("study_")&&c.inputs&&delete c.inputs.symbol,"linetoolicon"===t&&e&&(c.icon=(0,o.defaults)(t).icon),c=d(c,i),(0,r.default)(l,c),l}let p=!1;function _(e){p=e}class m extends(l()){constructor(e,t,i,s){super(function(e,t,i,s){let n;return void 0===s&&(s=!0),i?n=t:(n=u(s,e,[],null),t&&(0,r.default)(n,t)),n}(e,t,i,s)),this._exclusions=[],this._restoreFactoryDefaultsEvent=new(h()),this._defaultName=e,this._useUserPreferences=null==s||s,this.listeners().subscribe(this,m.prototype.onPropertyChanged),this._restoreFactoryDefaultsEvent=new(h())}preferences(){return this.state(this._exclusions)}mergePreferences(e){this.mergeAndFire(d(e,this._exclusions))}addExclusion(e){this._exclusions.indexOf(e)<0&&this._exclusions.push(e)}removeExclusion(e){const t=this._exclusions.indexOf(e);-1!==t&&this._exclusions.splice(t,1)}restoreFactoryDefaults(){const e=u(!1,this._defaultName,this._exclusions,null);this.mergeAndFire(e),this._defaultName.startsWith("study_")&&!this._defaultName.startsWith("study_VbPFixed")||(0,o.saveDefaults)(this._defaultName,void 0),this._restoreFactoryDefaultsEvent.fire()}onRestoreFactoryDefaults(){return this._restoreFactoryDefaultsEvent}onPropertyChanged(){!p||this._defaultName.startsWith("study_")&&!this._defaultName.startsWith("study_VbPFixed")||this.saveDefaults()}saveDefaults(){this._useUserPreferences&&(0,o.saveDefaults)(this._defaultName,this.preferences())}clone(e){const t=new m(this._defaultName,this.state(),null==e?void 0:e.replaceByState,this._useUserPreferences);for(let e=0;e{"use strict";var s=i(27759).PlDisplay;const{getHexColorByName:r}=i(45112),{generateColor:n}=i(68906);var o=i(27759).TradingSourcesHorizontalAlignment,a=i(16654),l=i(30823).LineToolPitchforkStyle,c=i(8059).LineToolBarsPatternMode,h=i(50993).LineStudyPlotStyle,d=i(5816),u=i(3825).PriceAxisLastValueMode,p=i(245).StoriesTimeLineItemType,_=i(90373).MagnetMode,m=i(49612).LineEnd,g=i(49642).ColorType,f=i(13632).StatsPosition,v=i(47484).sessionsPreferencesDefault,S=i(87426).axisLabelBackgroundColor,y=i(98125).getLogger("Chart.Defaults") -;const b=r("color-black"),w=r("color-white"),C=n(w,75),P=r("color-tv-blue-50"),T=r("color-tv-blue-500"),x=n(T,30),I=n(T,70),M=n(T,72),L=n(T,75),A=n(T,80),E=r("color-tv-blue-600"),k=r("color-deep-blue-200"),D=r("color-deep-blue-300"),V=r("color-deep-blue-400"),B=n(V,80),N=r("color-deep-blue-500"),R=r("color-sky-blue-500"),O=n(R,80),F=n(R,50),W=r("color-sky-blue-700"),H=n(W,30),z=r("color-youtube"),U=r("color-ripe-red-200"),j=r("color-ripe-red-300"),G=r("color-ripe-red-400"),q=r("color-ripe-red-500"),Y=n(q,70),K=n(q,80),$=n(q,72),X=n(q,95),Z=r("color-ripe-red-600"),J=r("color-grapes-purple-400"),Q=n(J,80),ee=r("color-grapes-purple-500"),te=n(ee,100),ie=n(ee,80),se=n(ee,30),re=n(r("color-berry-pink-400"),85),ne=r("color-berry-pink-500"),oe=n(ne,80),ae=r("color-minty-green-100"),le=r("color-minty-green-500"),ce=n(le,80),he=n(le,72),de=n(le,95),ue=r("color-iguana-green-300"),pe=r("color-iguana-green-500"),_e=n(pe,80),me=r("color-tan-orange-300"),ge=r("color-tan-orange-500"),fe=n(ge,80),ve=r("color-tan-orange-600"),Se=r("color-tan-orange-700"),ye=n(Se,80),be=r("color-tan-orange-a700"),we=r("color-cold-gray-150"),Ce=r("color-cold-gray-300"),Pe=r("color-cold-gray-400"),Te=r("color-cold-gray-500"),xe=r("color-cold-gray-800"),Ie=n(xe,94),Me=n(xe,100),Le=r("color-cold-gray-900"),Ae=r("color-slate-gray"),Ee=r("color-silver-tree"),ke=n(Ee,95),De=r("color-mandy"),Ve=n(De,95);var Be=function(e){var t=function(e,t){return{color:e,visible:t}},i=function(e,t,i){return{coeff:e,color:t,visible:i}},r=function(e,t,i,s,r){return{coeff:e,color:t,visible:i,linestyle:void 0===s?CanvasEx.LINESTYLE_SOLID:s,linewidth:void 0===r?1:r}},y=function(e,t,i){return{color:e,width:i,visible:t}},xe=function(e,t,i,s,r){return{color:e,visible:t,width:i,x:s,y:r}},Be=function(e,t,i,s,r,n){return{coeff1:e,coeff2:t,color:i,visible:s,linestyle:void 0===r?CanvasEx.LINESTYLE_SOLID:r,linewidth:void 0===n?1:n}};if(void 0===TradingView.defaultProperties){var Ne;switch(window.locale){case"ar_AE":Ne="Asia/Dubai";break;case"au":Ne="Australia/Sydney";break;case"br":Ne="America/Sao_Paulo";break;case"ca":Ne="America/Toronto";break;case"de_DE":case"it":Ne="Europe/Berlin";break;case"es":Ne="Europe/Madrid";break;case"fa_IR":Ne="Asia/Tehran";break;case"fr":case"sv_SE":Ne="Europe/Paris";break;case"he_IL":case"tr":Ne="Europe/Athens";break;case"hu_HU":case"pl":Ne="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":Ne="Asia/Bangkok";break;case"in":Ne="Asia/Kolkata";break;case"ja":case"kr":Ne="Asia/Tokyo";break;case"ms_MY":Ne="Asia/Singapore";break;case"ru":Ne="Europe/Moscow";break;case"uk":Ne="Europe/London";break;case"zh_CN":case"zh_TW":Ne="Asia/Shanghai";break;default:Ne="Etc/UTC"}TradingView.defaultProperties={chartproperties:{timezone:Ne,priceScaleSelectionStrategyName:"auto",paneProperties:{backgroundType:g.Solid,background:w,backgroundGradientStartColor:w,backgroundGradientEndColor:w,vertGridProperties:{color:Ie,style:CanvasEx.LINESTYLE_SOLID},horzGridProperties:{color:Ie,style:CanvasEx.LINESTYLE_SOLID},crossHairProperties:{color:Pe,style:CanvasEx.LINESTYLE_DASHED, -transparency:0,width:1},topMargin:10,bottomMargin:8,axisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1},legendProperties:{showStudyArguments:!0,showStudyTitles:!0,showStudyValues:!0,showSeriesTitle:!0,showSeriesOHLC:!0,showLegend:!0,showBarChange:!0,showVolume:!1,showBackground:!0,backgroundTransparency:50},separatorColor:we},scalesProperties:{backgroundColor:w,lineColor:Me,textColor:Le,fontSize:12,scaleSeriesOnly:!1,showSeriesLastValue:!0,seriesLastValueMode:u.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!0,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalNameLabel:!1,showFundamentalLastValue:!0,barSpacing:d.DEFAULT_BAR_SPACING,axisHighlightColor:L,axisLineToolLabelBackgroundColorCommon:S.common,axisLineToolLabelBackgroundColorActive:S.active,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},mainSeriesProperties:{style:a.STYLE_CANDLES,esdShowDividends:!0,esdShowSplits:!0,esdShowEarnings:!0,esdShowBreaks:!1,esdFlagSize:2,showContinuousContractSwitches:!0,showContinuousContractSwitchesBreaks:!1,showCountdown:!0,bidAsk:{visible:!1,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,bidLineColor:T,askLineColor:G},prePostMarket:{visible:!0,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,preMarketColor:ve,postMarketColor:T},highLowAvgPrice:{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLineVisible:!1,averageClosePriceLabelVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:1,averagePriceLineColor:"",averagePriceLineWidth:1},visible:!0,showPriceLine:!0,priceLineWidth:1,priceLineColor:"",baseLineColor:Ce,showPrevClosePriceLine:!1,prevClosePriceLineWidth:1,prevClosePriceLineColor:"#555555",minTick:"default",dividendsAdjustment:void 0,backAdjustment:!1,settlementAsClose:!0,sessionId:"regular",sessVis:!1,statusViewStyle:{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},candleStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,barColorsOnPrevClose:!1,drawBody:!0},hollowCandleStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,drawBody:!0},haStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{},inputInfo:{},drawBody:!0},barStyle:{upColor:le,downColor:q,barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},hiloStyle:{color:T,showBorders:!0,borderColor:T,showLabels:!0,labelColor:T,fontSize:7,drawBody:!0},columnStyle:{upColor:n(le,50),downColor:n(q,50),barColorsOnPrevClose:!0,priceSource:"close"},lineStyle:{color:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2, -priceSource:"close",styleType:a.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:M,color2:T,linecolor:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:100},priceAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,isInverted:!1,alignLabels:!0},renkoStyle:{upColor:le,downColor:q,borderUpColor:le,borderDownColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae",wickUpColor:le,wickDownColor:q,inputs:{source:"close",sources:"Close",boxSize:3,style:"ATR",atrLength:14,wicks:!0},inputInfo:{source:{name:"Source"},sources:{name:"Source"},boxSize:{name:"Box size"},style:{name:"Style"},atrLength:{name:"ATR length"},wicks:{name:"Wicks"}}},pbStyle:{upColor:le,downColor:q,borderUpColor:le,borderDownColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae",inputs:{source:"close",lb:3},inputInfo:{source:{name:"Source"},lb:{name:"Number of line"}}},kagiStyle:{upColor:le,downColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{source:"close",style:"ATR",atrLength:14,reversalAmount:1},inputInfo:{source:{name:"Source"},style:{name:"Style"},atrLength:{name:"ATR length"},reversalAmount:{name:"Reversal amount"}}},pnfStyle:{upColor:le,downColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{sources:"Close",reversalAmount:3,boxSize:1,style:"ATR",atrLength:14,oneStepBackBuilding:!1},inputInfo:{sources:{name:"Source"},boxSize:{name:"Box size"},reversalAmount:{name:"Reversal amount"},style:{name:"Style"},atrLength:{name:"ATR length"},oneStepBackBuilding:{name:"One step back building"}}},baselineStyle:{baselineColor:Ae,topFillColor1:he,topFillColor2:de,bottomFillColor1:X,bottomFillColor2:$,topLineColor:le,bottomLineColor:q,topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},rangeStyle:{upColor:le,downColor:q,thinBars:!0,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{range:10,phantomBars:!1},inputInfo:{range:{name:"Range"},phantomBars:{name:"Phantom bars"}}}},chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"#555555",visible:!1,style:CanvasEx.LINESTYLE_DASHED,width:1}},tradingProperties:{showPositions:!0,positionPL:{visibility:!0,display:s.Money},bracketsPL:{visibility:!0,display:s.Money},showOrders:!0,showExecutions:!0,showExecutionsLabels:!1,showReverse:!0,horizontalAlignment:o.Right,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:CanvasEx.LINESTYLE_SOLID},editorFontsList:["Verdana","Courier New","Times New Roman","Arial"],volumePaneSize:"large"},sessions:v,drawings:{magnet:!1,magnetMode:_.WeakMagnet,stayInDrawingMode:!1,drawOnAllCharts:!0,drawOnAllChartsMode:1},linetoolorder:{extendLeft:"inherit",lineLength:"inherit",lineColor:z,lineActiveBuyColor:"#4094e8",lineInactiveBuyColor:"rgba(64, 148, 232, 0.5)",lineActiveSellColor:"#e75656", -lineInactiveSellColor:"rgba(231, 86, 86, 0.5)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderActiveBuyColor:"#4094e8",bodyBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyBorderActiveSellColor:"#e75656",bodyBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyBackgroundColor:C,bodyBackgroundTransparency:25,bodyTextInactiveLimitColor:"rgba(38, 140, 2, 0.5)",bodyTextActiveLimitColor:"#268c02",bodyTextInactiveStopColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveStopColor:"#e75656",bodyTextInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyTextActiveBuyColor:"#4094e8",bodyTextInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveSellColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderActiveBuyColor:"#4094e8",quantityBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBorderActiveSellColor:"#e75656",quantityBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBackgroundActiveBuyColor:"#4094e8",quantityBackgroundInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundActiveSellColor:"#e75656",quantityTextColor:w,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderActiveBuyColor:"#4094e8",cancelButtonBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonBorderActiveSellColor:"#e75656",cancelButtonBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",cancelButtonBackgroundColor:C,cancelButtonBackgroundTransparency:25,cancelButtonIconActiveBuyColor:"#4094e8",cancelButtonIconInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonIconActiveSellColor:"#e75656",cancelButtonIconInactiveSellColor:"rgba(231, 86, 86, 0.5)",tooltip:"",modifyTooltip:"",cancelTooltip:""},linetoolposition:{extendLeft:"inherit",lineLength:"inherit",lineBuyColor:"#4094e8",lineSellColor:"#e75656",lineStyle:"inherit",lineWidth:"inherit",bodyBorderBuyColor:"#4094e8",bodyBorderSellColor:"#e75656",bodyBackgroundColor:C,bodyBackgroundTransparency:25,bodyTextPositiveColor:"#268c02",bodyTextNeutralColor:"#646464",bodyTextNegativeColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderBuyColor:"#4094e8",quantityBorderSellColor:"#e75656",quantityBackgroundBuyColor:"#4094e8",quantityBackgroundSellColor:"#e75656",quantityTextColor:w,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,reverseButtonBorderBuyColor:"#4094e8",reverseButtonBorderSellColor:"#e75656",reverseButtonBackgroundColor:C,reverseButtonBackgroundTransparency:25,reverseButtonIconBuyColor:"#4094e8",reverseButtonIconSellColor:"#e75656",closeButtonBorderBuyColor:"#4094e8",closeButtonBorderSellColor:"#e75656",closeButtonBackgroundColor:C,closeButtonBackgroundTransparency:25,closeButtonIconBuyColor:"#4094e8",closeButtonIconSellColor:"#e75656",tooltip:"",protectTooltip:"",closeTooltip:"",reverseTooltip:""},linetoolexecution:{direction:"buy",arrowHeight:8,arrowSpacing:1, -arrowBuyColor:"#4094e8",arrowSellColor:"#e75656",text:"",textColor:b,textTransparency:0,fontFamily:"Verdana",fontSize:10,fontBold:!1,fontItalic:!1,tooltip:""},linetoolicon:{color:T,size:40,icon:61720,angle:.5*Math.PI},linetoolimage:{transparency:0,cssWidth:0,cssHeight:0,angle:0},linetoolbezierquadro:{linecolor:T,linewidth:1,fillBackground:!1,backgroundColor:A,transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal},linetoolbeziercubic:{linecolor:R,linewidth:1,fillBackground:!1,backgroundColor:O,transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal},linetooltrendline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolinfoline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!0,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!0,showBarsRange:!0,showDateTimeRange:!0,showDistance:!0,showAngle:!0,statsPosition:f.Center},linetooltimecycles:{linecolor:"#159980",linewidth:1,fillBackground:!0,backgroundColor:"rgba(106, 168, 79, 0.5)",transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolsineline:{linecolor:"#159980",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetooltrendangle:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,textcolor:T,fontsize:12,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,extendRight:!1,extendLeft:!1,statsPosition:f.Right},linetooldisjointangle:{linecolor:le,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:ce,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,textcolor:le,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1},linetoolflatbottom:{linecolor:ge,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:fe,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,textcolor:ge,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1},linetoolfibspiral:{counterclockwise:!1,linecolor:le,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolriskrewardshort:{linecolor:Te,linewidth:1,textcolor:w,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:K,profitBackground:ce,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents", -accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolriskrewardlong:{linecolor:Te,linewidth:1,textcolor:w,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:K,profitBackground:ce,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolarrow:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Arrow,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolray:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!0,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolextended:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!0,extendRight:!0,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolhorzline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,textcolor:T,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolhorzray:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,textcolor:T,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolvertline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLine:!0,showTime:!0,showLabel:!1,horzLabelsAlign:"right",vertLabelsAlign:"top",textcolor:T,textOrientation:"vertical",fontsize:14,bold:!1,italic:!1},linetoolcrossline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showTime:!0},linetoolcirclelines:{trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},linecolor:"#80ccdb",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolfibtimezone:{horzLabelsAlign:"right",vertLabelsAlign:"bottom",baselinecolor:"#808080",linecolor:"#0055db",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showLabels:!0,fillBackground:!1,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(0,Te,!0),level2:r(1,T,!0),level3:r(2,T,!0),level4:r(3,T,!0),level5:r(5,T,!0),level6:r(8,T,!0),level7:r(13,T,!0),level8:r(21,T,!0),level9:r(34,T,!0),level10:r(55,T,!0), -level11:r(89,T,!0)},linetooltext:{color:T,fontsize:14,fillBackground:!1,backgroundColor:"rgba(91, 133, 191, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"#667b8b",bold:!1,italic:!1,fixedSize:!0,wordWrap:!1,wordWrapWidth:200},linetooltextabsolute:{color:T,fontsize:14,fillBackground:!1,backgroundColor:"rgba(155, 190, 213, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"#667b8b",bold:!1,italic:!1,fixedSize:!1,wordWrap:!1,wordWrapWidth:200},linetoolballoon:{color:w,backgroundColor:se,borderColor:te,fontsize:14,transparency:30},linetoolbrush:{linecolor:R,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,smooth:5,fillBackground:!1,backgroundColor:F,transparency:50,leftEnd:m.Normal,rightEnd:m.Normal},linetoolhighlighter:{linecolor:re,smooth:5,transparency:85},linetoolpolyline:{linecolor:V,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:B,transparency:50,filled:!1},linetoolsignpost:{itemType:p.Emoji,emoji:"🙂",showImage:!1,plateColor:T,fontSize:12,bold:!1,italic:!1},linetoolpath:{lineColor:T,lineWidth:2,lineStyle:CanvasEx.LINESTYLE_SOLID,leftEnd:m.Normal,rightEnd:m.Arrow},linetoolarrowmarkleft:{color:T,arrowColor:T,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkup:{color:le,arrowColor:le,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkright:{color:T,arrowColor:T,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkdown:{color:Z,arrowColor:Z,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolflagmark:{flagColor:T},linetoolnote:{markerColor:T,textColor:w,backgroundColor:x,backgroundTransparency:0,borderColor:T,fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolnoteabsolute:{markerColor:T,textColor:w,backgroundColor:x,backgroundTransparency:0,borderColor:T,fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolpricelabel:{color:w,backgroundColor:T,borderColor:T,fontWeight:"bold",fontsize:14,transparency:0},linetoolpricenote:{showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textColor:T,fontSize:14,bold:!1,italic:!1,lineColor:T,priceLabelBackgroundColor:T,priceLabelBorderColor:T,priceLabelTextColor:w,priceLabelFontSize:12,priceLabelBold:!1,priceLabelItalic:!1},linetoolarrowmarker:{backgroundColor:E,textColor:E,bold:!0,italic:!1,fontsize:16,showLabel:!0},linetoolrectangle:{color:ee,fillBackground:!0,backgroundColor:ie,linewidth:1,transparency:50,showLabel:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",textColor:ee,fontSize:14,bold:!1,italic:!1,extendLeft:!1,extendRight:!1},linetoolrotatedrectangle:{color:pe,fillBackground:!0,backgroundColor:_e,transparency:50,linewidth:1},linetoolcircle:{color:ge,backgroundColor:fe,fillBackground:!0,linewidth:1,showLabel:!1,textColor:ge,fontSize:14,bold:!1,italic:!1},linetoolellipse:{color:ne,fillBackground:!0,backgroundColor:oe,transparency:50,linewidth:1,showLabel:!1,textColor:ne,fontSize:14,bold:!1,italic:!1},linetoolarc:{color:J,fillBackground:!0,backgroundColor:Q,transparency:50,linewidth:1},linetoolprediction:{linecolor:T,linewidth:1,sourceBackColor:T,sourceTextColor:w, -sourceStrokeColor:T,targetStrokeColor:T,targetBackColor:T,targetTextColor:w,successBackground:pe,successTextColor:w,failureBackground:q,failureTextColor:w,intermediateBackColor:"#ead289",intermediateTextColor:"#6d4d22",transparency:10,centersColor:"#202020"},linetooltriangle:{color:Se,fillBackground:!0,backgroundColor:ye,transparency:50,linewidth:1},linetoolcallout:{color:w,backgroundColor:H,transparency:50,linewidth:1,fontsize:14,bordercolor:W,bold:!1,italic:!1,wordWrap:!1,wordWrapWidth:200},linetoolparallelchannel:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,fillBackground:!0,backgroundColor:A,transparency:20,showMidline:!0,midlinecolor:T,midlinewidth:1,midlinestyle:CanvasEx.LINESTYLE_DASHED},linetoolelliottimpulse:{degree:7,showWave:!0,color:"#3d85c6",linewidth:1},linetoolelliotttriangle:{degree:7,showWave:!0,color:ge,linewidth:1},linetoolelliotttriplecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:1},linetoolelliottcorrection:{degree:7,showWave:!0,color:"#3d85c6",linewidth:1},linetoolelliottdoublecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:1},linetoolbarspattern:{color:T,mode:c.Bars,mirrored:!1,flipped:!1},linetoolghostfeed:{averageHL:20,variance:50,candleStyle:{upColor:ae,downColor:U,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:Te},transparency:50},study:{inputs:{},styles:{},palettes:{},bands:{},area:{},graphics:{},visible:!0,showLegendValues:!0,showLabelsOnPriceScale:!0,precision:"default"},linetoolpitchfork:{fillBackground:!0,transparency:80,style:l.Original,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolpitchfan:{fillBackground:!0,transparency:80,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolgannfan:{showLabels:!0,fillBackground:!0,transparency:80,level1:Be(1,8,me,!0),level2:Be(1,4,ue,!0),level3:Be(1,3,pe,!0),level4:Be(1,2,le,!0),level5:Be(1,1,"#64b5f6",!0),level6:Be(2,1,T,!0),level7:Be(3,1,ee,!0),level8:Be(4,1,ne,!0),level9:Be(8,1,j,!0)},linetoolganncomplex:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,scaleRatio:"",showLabels:!0,labelsStyle:{fontSize:12,bold:!1,italic:!1},levels:[y(Te,!0,1),y(ge,!0,1),y(ue,!0,1),y(pe,!0,1),y(le,!0,1),y(Te,!0,1)],fanlines:[xe(k,!1,1,8,1),xe(q,!1,1,5,1),xe(Te,!1,1,4,1),xe(ge,!1,1,3,1),xe(ue,!0,1,2,1),xe(pe,!0,1,1,1),xe(le,!0,1,1,2),xe(le,!1,1,1,3),xe(T,!1,1,1,4),xe(D,!1,1,1,5),xe(k,!1,1,1,8)],arcs:[xe(ge,!0,1,1,0),xe(ge,!0,1,1,1),xe(ge,!0,1,1.5,0),xe(ue,!0,1,2,0),xe(ue,!0,1,2,1),xe(pe,!0,1,3,0),xe(pe,!0,1,3,1),xe(le,!0,1,4,0),xe(le,!0,1,4,1),xe(T,!0,1,5,0),xe(T,!0,1,5,1)]}, -linetoolgannfixed:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,levels:[y(Te,!0,1),y(ge,!0,1),y(ue,!0,1),y(pe,!0,1),y(le,!0,1),y(Te,!0,1)],fanlines:[xe(k,!1,1,8,1),xe(q,!1,1,5,1),xe(Te,!1,1,4,1),xe(ge,!1,1,3,1),xe(ue,!0,1,2,1),xe(pe,!0,1,1,1),xe(le,!0,1,1,2),xe(le,!1,1,1,3),xe(T,!1,1,1,4),xe(D,!1,1,1,5),xe(k,!1,1,1,8)],arcs:[xe(ge,!0,1,1,0),xe(ge,!0,1,1,1),xe(ge,!0,1,1.5,0),xe(ue,!0,1,2,0),xe(ue,!0,1,2,1),xe(pe,!0,1,3,0),xe(pe,!0,1,3,1),xe(le,!0,1,4,0),xe(le,!0,1,4,1),xe(T,!0,1,5,0),xe(T,!0,1,5,1)]},linetoolgannsquare:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,fillHorzBackground:!0,horzTransparency:80,fillVertBackground:!0,vertTransparency:80,reverse:!1,fans:t(Pe,!1),hlevel1:i(0,Te,!0),hlevel2:i(.25,Se,!0),hlevel3:i(.382,ue,!0),hlevel4:i(.5,pe,!0),hlevel5:i(.618,le,!0),hlevel6:i(.75,T,!0),hlevel7:i(1,Te,!0),vlevel1:i(0,Te,!0),vlevel2:i(.25,Se,!0),vlevel3:i(.382,ue,!0),vlevel4:i(.5,pe,!0),vlevel5:i(.618,le,!0),vlevel6:i(.75,T,!0),vlevel7:i(1,Te,!0)},linetoolfibspeedresistancefan:{fillBackground:!0,transparency:80,grid:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,visible:!0},linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,reverse:!1,hlevel1:i(0,Te,!0),hlevel2:i(.25,Se,!0),hlevel3:i(.382,ue,!0),hlevel4:i(.5,pe,!0),hlevel5:i(.618,le,!0),hlevel6:i(.75,T,!0),hlevel7:i(1,Te,!0),vlevel1:i(0,Te,!0),vlevel2:i(.25,Se,!0),vlevel3:i(.382,ue,!0),vlevel4:i(.5,pe,!0),vlevel5:i(.618,le,!0),vlevel6:i(.75,T,!0),vlevel7:i(1,Te,!0)},linetoolfibretracement:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0),level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0),level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetoolfibchannel:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLeft:!1,extendRight:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",coeffsAsPercents:!1,labelFontSize:12,levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0),level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0), -level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetoolprojection:{showCoeffs:!0,fillBackground:!0,transparency:80,color1:A,color2:ie,linewidth:1,trendline:{visible:!0,color:Pe,linestyle:CanvasEx.LINESTYLE_SOLID},level1:r(1,"#808080",!0)},linetool5pointspattern:{color:T,textcolor:w,fillBackground:!0,backgroundColor:T,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolcypherpattern:{color:T,textcolor:w,fillBackground:!0,backgroundColor:T,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetooltrianglepattern:{color:N,textcolor:w,fillBackground:!0,backgroundColor:N,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolabcd:{color:le,textcolor:w,fontsize:12,bold:!1,italic:!1,linewidth:1},linetoolthreedrivers:{color:N,textcolor:w,fillBackground:!0,backgroundColor:"rgba(149, 40, 204, 0.5)",fontsize:12,bold:!1,italic:!1,transparency:50,linewidth:1},linetoolheadandshoulders:{color:le,textcolor:w,fillBackground:!0,backgroundColor:le,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolfibwedge:{showCoeffs:!0,fillBackground:!0,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!1),level8:r(2.618,q,!1),level9:r(3.618,N,!1),level10:r(4.236,ne,!1),level11:r(4.618,ne,!1)},linetoolfibcircles:{showCoeffs:!0,fillBackground:!0,transparency:80,coeffsAsPercents:!1,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!0),level8:r(2.618,q,!0),level9:r(3.618,N,!0),level10:r(4.236,ne,!0),level11:r(4.618,ne,!0)},linetoolfibspeedresistancearcs:{showCoeffs:!0,fillBackground:!0,transparency:80,fullCircles:!1,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!0),level8:r(2.618,q,!0),level9:r(3.618,N,!0),level10:r(4.236,ne,!0),level11:r(4.618,ne,!0)},linetooltrendbasedfibextension:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0), -level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0),level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetooltrendbasedfibtime:{showCoeffs:!0,fillBackground:!0,transparency:80,horzLabelsAlign:"right",vertLabelsAlign:"bottom",trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(0,Te,!0),level2:r(.382,q,!0),level3:r(.5,ue,!1),level4:r(.618,pe,!0),level5:r(1,le,!0),level6:r(1.382,"#64b5f6",!0),level7:r(1.618,Te,!0),level8:r(2,T,!0),level9:r(2.382,q,!0),level10:r(2.618,ee,!0),level11:r(3,ne,!0)},linetoolschiffpitchfork:{fillBackground:!0,transparency:80,style:l.Schiff,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolschiffpitchfork2:{fillBackground:!0,transparency:80,style:l.Schiff2,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolinsidepitchfork:{fillBackground:!0,transparency:80,style:l.Inside,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolregressiontrend:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,styles:{upLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2},downLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2},baseLine:{visible:!0,color:Y,linestyle:CanvasEx.LINESTYLE_DASHED,linewidth:1},extendLines:!1,showPearsons:!0,transparency:70}}},Re(TradingView.defaultProperties.chartproperties),Fe()}if(void 0===TradingView.defaultProperties["study_MA@tv-basicstudies"]&&(TradingView.defaultProperties["study_MA@tv-basicstudies"]={description:"Moving Average",shortDescription:"MA",inputs:{length:9,source:"close"},styles:{MovAvg:{visible:!0,color:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={fontsize:10,borderColor:T,backColor:P,textColor:Le}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]){TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,fontsize:11,levelsStyle:{ -showLabels:!0,visibility:{P:!0,"S1/R1":!0,"S2/R2":!0,"S3/R3":!0,"S4/R4":!0,"S5/R5":!0},colors:{P:ve,"S1/R1":ve,"S2/R2":ve,"S3/R3":ve,"S4/R4":ve,"S5/R5":ve},widths:{P:1,"S1/R1":1,"S2/R2":1,"S3/R3":1,"S4/R4":1,"S5/R5":1}}}}if(void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:T,linewidth:2}),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:t(z,!1),level1:t("#008000",!1),level2:t("#0000ff",!1),level3:t("#ff00ff",!1),level4:t("#0080ff",!0),level5:t(z,!0),level6:t("#008000",!0),level7:t("#0000ff",!0),level8:t("#ff00ff",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:Y,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},extendLines:!0,showPearsons:!0,backgroundColor:"rgba(153, 21, 21, 0.3)",transparency:70}}),void 0===TradingView.defaultProperties["study_Compare@tv-basicstudies"]&&(TradingView.defaultProperties["study_Compare@tv-basicstudies"]={minTick:"default"}),void 0===TradingView.defaultProperties["study_Overlay@tv-basicstudies"]){TradingView.defaultProperties["study_Overlay@tv-basicstudies"]={style:a.STYLE_LINE,allowExtendTimeScale:!1,showPriceLine:!1,minTick:"default",candleStyle:{upColor:"#6ba583",downColor:"#d75442",drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:"#225437",borderDownColor:"#5b1a13",wickColor:"#737375",wickUpColor:"#737375",wickDownColor:"#737375",barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:"#6ba583",downColor:"#d75442",drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:"#225437",borderDownColor:"#5b1a13",wickColor:"#737375",wickUpColor:"#737375",wickDownColor:"#737375",barColorsOnPrevClose:!1},barStyle:{upColor:"#6ba583",downColor:"#d75442",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},lineStyle:{color:be,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",styleType:a.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:T,color2:T,linecolor:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:95},baselineStyle:{baselineColor:Ae,topFillColor1:ke,topFillColor2:ke,bottomFillColor1:Ve,bottomFillColor2:Ve,topLineColor:Ee,bottomLineColor:De,topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},columnStyle:{upColor:n(le,50),downColor:n(q,50),barColorsOnPrevClose:!0,priceSource:"close"},styles:{open:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0},high:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0},low:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1, -plottype:h.Line,histogramBase:0},close:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0}}}}for(var Oe=e.split("."),We=TradingView.defaultProperties,He=0;He1?h(e[r],t.slice(1),i):(e[r]&&e[r].setValue?e[r].setValue(i):e[r]=i,!0))}function d(e){i||y.logWarn("Path `"+e+"` does not exist.")}}function Re(e,t,i,s){window.__defaultsOverrides&&Ne(e,t,i,window.__defaultsOverrides,s)}function Oe(e,t){window.__settingsOverrides&&Ne(e,null,!1,window.__settingsOverrides,t)}function Fe(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&Re(TradingView.defaultProperties[t],null,!1,t)}))}function We(e,t){return t?function(e,t){var i=Be(e);if(!window._UNIT_TESTS){var s=TradingView.clone(TVSettings.getJSON(e,null));if(function(e){var t=new Set(["linetoolregressiontrend"]);return e.startsWith("study_")||t.has(e)}(e)&&s&&function(e){if(!e)return!1;e=e.toString();var t=new RegExp("\\d+").exec(e);return null!==t&&t[0]===e}(s.version)){var r=s.inputs,n=t.updateStudyInputs(s.id,s.version,"last",r,null);s.inputs=n;var o=t.updateStudyState(s,s);s=o}TradingView.merge(i,s),Oe(i,e)}return i}(e,t):function(e){var t=Be(e);if(!window._UNIT_TESTS){var i=TradingView.clone(TVSettings.getJSON(e,null));if(i){TradingView.merge(t,i);const s=e.split(".");Oe(t,void 0===s[1]?e:s[1])}}return t}(e)}We.create=function(e,t){if(t){var i=Be(e);TradingView.defaultProperties[e]=Object.assign(t,i)}},We.remove=function(e){TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){void 0===t?TVSettings.remove(e):TVSettings.setJSON(e,t)},TradingView.factoryDefaults=Be,window.applyDefaultOverridesToLinetools=Fe,window.applyDefaultsOverrides=Re,window.applyPropertiesOverrides=Ne,window.defaults=We,t.applyDefaultOverridesToLinetools=Fe,t.applyDefaultsOverrides=Re,t.applyPropertiesOverrides=Ne,t.defaults=We,t.factoryDefaults=Be,t.saveDefaults=TradingView.saveDefaults},85733:(e,t,i)=>{"use strict";i.r(t),i.d(t,{toolIsCursor:()=>p,toolIsMeasure:()=>_,resetToCursor:()=>m,lockTimeAxisTime:()=>w,tool:()=>C,iconTool:()=>P,cursorTool:()=>T,isToolCreatingNow:()=>x,isToolEditingNow:()=>I,isToolMovingNow:()=>M,isDirectionalMovementActive:()=>L,createdLineTool:()=>A,continuedLineTool:()=>E,cancelledLineTool:()=>k,beenSetLineToolLastPoint:()=>D,startedMovingLineTool:()=>V,movedLineTool:()=>B,finishedMovingLineTool:()=>N,startedChangingLineTool:()=>R,changedLineTool:()=>O,finishedChangingLineTool:()=>F,removedLineTool:()=>W,finishedLineTool:()=>H,changedLineStyle:()=>z,copiedLineTool:()=>U,restoredLineTool:()=>j,restoredLineToolState:()=>G,isPointSelectedNow:()=>q,isStudyEditingNow:()=>Y, -createLineTool:()=>X,continueLineTool:()=>Z,cancelLineTool:()=>J,setLineToolLastPoint:()=>Q,startMovingLineTool:()=>ee,moveLineTool:()=>te,finishMovingLineTool:()=>ie,startChangingLineTool:()=>se,changeLineTool:()=>re,finishChangingLineTool:()=>ne,removeLineTool:()=>oe,finishLineTool:()=>ae,changeLineStyle:()=>le,copyLineTool:()=>ce,restoreLineTool:()=>he,restoreLineToolState:()=>de,init:()=>_e,runOnDrawingStateReady:()=>me,properties:()=>ge,hideAllDrawings:()=>fe,hideAllIndicators:()=>ve,lockDrawings:()=>Se,hideMarksOnBars:()=>ye,drawOnAllCharts:()=>be,drawOnAllChartsMode:()=>we,lockTimeAxis:()=>Ce});var s=i(88537),r=i(32255),n=i(88564),o=i(59803),a=i(52714),l=i.n(a),c=i(2872),h=i.n(c),d=i(56840),u=i(76422);function p(e){return"cursor"===e||"arrow"===e||"dot"===e}function _(e){return"measure"===e}function m(e=!1){if(!e&&g){if(g.childs().stayInDrawingMode.value())return}C.setValue(T.value())}let g=null,f=null,v=null,S=null,y=null,b=null;const w=new(l()),C=new(l()),P=new(l()),T=new(l()),x=new(l())(!1),I=new(l())(!1),M=new(l())(!1),L=new(l())(!1),A=new(h()),E=new(h()),k=new(h()),D=new(h()),V=new(h()),B=new(h()),N=new(h()),R=new(h()),O=new(h()),F=new(h()),W=new(h()),H=new(h()),z=new(h()),U=new(h()),j=new(h()),G=new(h()),q=new(l())(!1),Y=new(l())(!1);function K(e,t){const i=t||{value:!1};return t=>{i.value||(i.value=!0,e.fire(t),i.value=!1)}}const $={value:!1},X=K(A,$),Z=K(E,$),J=K(k,$),Q=K(D,$),ee=K(V),te=K(B),ie=K(N),se=K(R),re=K(O),ne=K(F),oe=K(W),ae=K(H),le=K(z,$),ce=K(U,$),he=K(j),de=K(G);let ue=!1,pe=[];function _e(){ue||(C.setValue(d.getValue("chart.cursorPreference","cursor")),C.subscribe(e=>p(e)&&T.setValue(e),{callWithLast:!0}),T.subscribe(e=>{e&&d.setValue("chart.cursorPreference",e)}),g=new n.DefaultProperty("drawings"),f=(0,r.createPrimitiveProperty)(),v=(0,r.createPrimitiveProperty)(),S=(0,r.createPrimitiveProperty)(),y=(0,r.createPrimitiveProperty)(),b=(0,r.createPrimitiveProperty)(),f.setValue(!1),v.setValue(!1),S.setValue(!1),y.setValue(!1),b.setValue(!1),C.subscribe(()=>{(0,u.emit)("onSelectedLineToolChanged")}),P.subscribe(()=>{(0,o.saveDefaults)("linetoolicon",{...(0,o.defaults)("linetoolicon"),icon:P.value()})}),ue=!0,pe.forEach(e=>e()),pe=[])}function me(e){ue?e():pe.push(e)}function ge(){return(0,s.ensureNotNull)(g)}function fe(){return(0,s.ensureNotNull)(f)}function ve(){return(0,s.ensureNotNull)(v)}function Se(){return(0,s.ensureNotNull)(S)}function ye(){return(0,s.ensureNotNull)(y)}function be(){return ge().childs().drawOnAllCharts}function we(){return ge().childs().drawOnAllChartsMode}function Ce(){return(0,s.ensureNotNull)(b)}},77216:(e,t,i)=>{"use strict";i.d(t,{EnvironmentState:()=>r});var s=i(49483);class r{constructor(e,t=!1){this._shift=!1,this._mod=!1,this._alt=!1,void 0!==e&&(this._shift=Boolean(e.shiftKey),this._mod=Boolean((0,s.isMac)()?e.metaKey:e.ctrlKey),this._alt=Boolean(e.altKey)),this._isApiEvent=t}shift(){return this._shift}mod(){return this._mod}alt(){return this._alt}shiftOnly(){return this._shift&&!this._mod&&!this._alt}modOnly(){return this._mod&&!this._shift&&!this._alt} -altOnly(){return this._alt&&!this._shift&&!this._mod}modShift(){return this._shift&&this._mod&&!this._alt}isApiEvent(){return this._isApiEvent}static create(e=!1,t=!1,i=!1){return new r({shiftKey:e,ctrlKey:t,metaKey:t,altKey:i})}}},19234:(e,t,i)=>{"use strict";function s(e){return"="+JSON.stringify(function e(t){return Object.keys(t).sort().reduce((i,s)=>("[object Object]"===Object.prototype.toString.call(t[s])?i[s]=e(t[s]):i[s]=t[s],i),{})}(e))}function r(e){return s(e)}function n(e){return"="===e[0]}function o(e){if(!n(e))return{symbol:e};try{return JSON.parse(e.slice(1))}catch(t){return{symbol:e}}}function a(e){return"string"==typeof e?e:a(e.symbol)}i.r(t),i.d(t,{encodeExtendedSymbolOrGetSimpleSymbolString:()=>r,isEncodedExtendedSymbol:()=>n,decodeExtendedSymbol:()=>o,unwrapSimpleSymbol:()=>a})},69147:(e,t,i)=>{"use strict";i.d(t,{customFormatters:()=>s});const s={dateFormatter:null,timeFormatter:null,tickMarkFormatter:null,priceFormatterFactory:null,studyFormatterFactory:null}},7043:(e,t,i)=>{"use strict";i.d(t,{dateFormatFunctions:()=>p,availableDateFormats:()=>_,defaultDateFormat:()=>m});var s=i(28353),r=i(97098);const n={1:()=>(0,s.t)("Jan"),2:()=>(0,s.t)("Feb"),3:()=>(0,s.t)("Mar"),4:()=>(0,s.t)("Apr"),5:()=>(0,s.t)("May",{context:"short"}),6:()=>(0,s.t)("Jun"),7:()=>(0,s.t)("Jul"),8:()=>(0,s.t)("Aug"),9:()=>(0,s.t)("Sep"),10:()=>(0,s.t)("Oct"),11:()=>(0,s.t)("Nov"),12:()=>(0,s.t)("Dec")},o=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,a=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),l=(e,t)=>(0,r.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),c=(e,t)=>n[o(e,t)](),h=(e,t)=>(0,r.numberToStringWithLeadingZero)(o(e,t),2),d=(e,t)=>(0,r.numberToStringWithLeadingZero)(a(e,t)%100,2),u=(e,t)=>(0,r.numberToStringWithLeadingZero)(a(e,t),4),p={"dd MMM 'yy":(e,t)=>`${l(e,t)} ${c(e,t)} '${d(e,t)}`,"MMM dd, yyyy":(e,t)=>`${c(e,t)} ${l(e,t)}, ${u(e,t)}`,"MMM dd":(e,t)=>`${c(e,t)} ${l(e,t)}`,"yyyy-MM-dd":(e,t)=>`${u(e,t)}-${h(e,t)}-${l(e,t)}`,"yy-MM-dd":(e,t)=>`${d(e,t)}-${h(e,t)}-${l(e,t)}`,"yy/MM/dd":(e,t)=>`${d(e,t)}/${h(e,t)}/${l(e,t)}`,"yyyy/MM/dd":(e,t)=>`${u(e,t)}/${h(e,t)}/${l(e,t)}`,"dd-MM-yyyy":(e,t)=>`${l(e,t)}-${h(e,t)}-${u(e,t)}`,"dd-MM-yy":(e,t)=>`${l(e,t)}-${h(e,t)}-${d(e,t)}`,"dd/MM/yy":(e,t)=>`${l(e,t)}/${h(e,t)}/${d(e,t)}`,"dd/MM/yyyy":(e,t)=>`${l(e,t)}/${h(e,t)}/${u(e,t)}`,"MM/dd/yy":(e,t)=>`${h(e,t)}/${l(e,t)}/${d(e,t)}`,"MM/dd/yyyy":(e,t)=>`${h(e,t)}/${l(e,t)}/${u(e,t)}`},_=Object.keys(p),m=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},1860:(e,t,i)=>{"use strict";i.d(t,{DateFormatter:()=>n});var s=i(69147),r=i(7043);class n{constructor(e="yyyy-MM-dd"){this._dateFormatFunc=r.dateFormatFunctions[e]}format(e){return s.customFormatters&&s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!1)}formatLocal(e){ -return s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.formatLocal?s.customFormatters.dateFormatter.formatLocal(e):s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!0)}}},95792:(e,t,i)=>{"use strict";i.d(t,{DateTimeFormatter:()=>o});var s=i(64806),r=i(1860);const n={dateFormat:"yyyy-MM-dd",timeFormat:"%h:%m:%s",dateTimeSeparator:" "};class o{constructor(e={}){const t=Object.assign({},n,e);this._dateFormatter=new r.DateFormatter(t.dateFormat),this._timeFormatter=new s.TimeFormatter(t.timeFormat),this._separator=t.dateTimeSeparator}format(e){return`${this._dateFormatter.format(e)}${this._separator}${this._timeFormatter.format(e)}`}formatLocal(e){return`${this._dateFormatter.formatLocal(e)}${this._separator}${this._timeFormatter.formatLocal(e)}`}}},51264:(e,t,i)=>{"use strict";i.d(t,{LimitedPrecisionNumericFormatter:()=>r});var s=i(80643);class r{constructor(e=1){this._precision=e}format(e){(0,s.isNumber)(e)||(e=parseFloat(e));const t=e.toFixed(this._precision),i=Math.pow(10,-this._precision);return Math.max(parseFloat(t),i)+""}parse(e){const t=parseFloat(e);return isNaN(t)?{res:!1}:{res:!0,value:t,suggest:this.format(t)}}}},95505:(e,t,i)=>{"use strict";i.d(t,{NumericFormatter:()=>n});var s=i(97098),r=i(60521);class n{constructor(e){this._precision=e}format(e){return(void 0!==this._precision?e.toFixed(this._precision):n.formatNoE(e)).replace(".",s.formatterOptions.decimalSign)}parse(e){const t=e.replace(s.formatterOptions.decimalSign,".");let i=parseFloat(t);return this._precision&&(i=+i.toFixed(this._precision)),i}static formatNoE(e){if(!Number.isFinite(e))return String(e);const t=new r.Big(e);return t.lt(1)?t.toFixed():t.toString()}}},26811:(e,t,i)=>{"use strict";i.d(t,{PercentageFormatter:()=>n});var s=i(97098),r=i(62820);class n extends s.PriceFormatter{constructor(e){super(e),this.type="percentage"}state(){const e=s.PriceFormatter.prototype.state.call(this);return e.percent=!0,e}parse(e){return e=e.replace("%",""),super.parse(e)}format(e,t,i,s,n=!0){const o=super.format(e,t,i,s,!1)+"%";return n?(0,r.forceLTRStr)(o):o}static serialize(e){return e.state()}static deserialize(e){return new n(e.priceScale)}}},97645:(e,t,i)=>{"use strict";i.d(t,{PipFormatter:()=>r});var s=i(97098);class r extends s.PriceFormatter{constructor(e,t,i,s){t||(t=1),"forex"!==i&&"cfd"!==i||!s?(super(1),this._isForex=!1):(super(s),this._isForex=!0),this._pipPriceScale=e,this._pipMinMove=t,this._pipMinMove2=s}format(e,t,i){let s=this._isForex?this._pipMinMove2:this._pipMinMove;return void 0===s&&(s=NaN),super.format(e*this._pipPriceScale/s,t,i)}}},97098:(e,t,i)=>{"use strict";i.r(t),i.d(t,{formatterOptions:()=>l,numberToStringWithLeadingZero:()=>c,isFormatterHasForexAdditionalPrecision:()=>h,PriceFormatter:()=>d});var s=i(28353),r=i(80643),n=i(62820);const o=(0,i(98125).getLogger)("Chart.PriceFormatter"),a=new RegExp(/^(-?)[0-9]+$/),l={decimalSign:".",decimalSignFractional:"'"};function c(e,t){if(!(0,r.isNumber)(e))return"n/a";if(!(0,r.isInteger)(t))throw new TypeError("invalid length") -;if(t<0||t>16)throw new TypeError("invalid length");if(0===t)return e.toString();return("0000000000000000"+e.toString()).slice(-t)}function h(e){return"hasForexAdditionalPrecision"in e}class d{constructor(e,t,i,n){if(this.type="price",this._formatterErrors={custom:(0,s.t)("Price format is invalid."),fraction:(0,s.t)("Fraction part is invalid."),secondFraction:(0,s.t)("Second fraction part is invalid.")},t||(t=1),(0,r.isNumber)(e)&&(0,r.isInteger)(e)||(e=100),e<0)throw new TypeError("invalid base");this._priceScale=e,this._minMove=t,this._minMove2=n,i&&void 0!==n&&n>0&&2!==n&&4!==n&&8!==n?o.logDebug("invalid minmove2"):(this._fractional=i,this.calculateDecimal())}isFractional(){return!!this._fractional}state(){return{fractional:this._fractional,fractionalLength:this._fractionalLength,minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale}}calculateDecimal(){if(this._fractionalLength=0,this._priceScale>0&&this._minMove>0){let e=this._priceScale;for(this._fractional&&this._minMove2&&(e/=this._minMove2);e>1;)e/=10,this._fractionalLength++}}format(e,t,i,s=!0,r=!0){let o,a="";return e<0?(a=!1===s?"":"−",e=-e):e&&!0===t&&(a="+"),o=this._fractional?a+this._formatAsFractional(e,i):a+this._formatAsDecimal(e,i),r?(0,n.forceLTRStr)(o):o}parse(e){return e=(e=(0,n.stripLTRMarks)(e)).replace("−","-"),this._fractional?this._minMove2?this._parseAsDoubleFractional(e):this._parseAsSingleFractional(e):this._parseAsDecimal(e)}hasForexAdditionalPrecision(){return!this._fractional&&10===this._minMove2}static serialize(e){return e.state()}static deserialize(e){return new d(e.priceScale,e.minMove,e.fractional,e.minMove2)}_formatAsDecimal(e,t){let i;t=t||0,i=this._fractional?Math.pow(10,this._fractionalLength||0):Math.pow(10,t)*this._priceScale/this._minMove;const s=1/i;let r;if(i>1)r=Math.floor(e);else{const t=Math.floor(Math.round(e/s)*s);r=0===Math.round((e-t)/s)?t:t+s}let n="";if(i>1){let s=parseFloat((Math.round(e*i)-r*i).toFixed(this._fractionalLength));s>=i&&(s-=i,r+=1);const o=void 0!==this._fractionalLength?this._fractionalLength:NaN;n=l.decimalSign+c(parseFloat(s.toFixed(this._fractionalLength))*this._minMove,o+t),n=this._removeEndingZeros(n,t)}return r.toString()+n}_getFractPart(e,t,i){const s=[0,5],r=[0,2,5,7],n=[0,1,2,3,5,6,7,8];return 2===i?void 0===s[e]?-1:s[e]:4===i?void 0===r[e]?-1:r[e]:8===i&&2===t?void 0===n[e]?-1:n[e]:e}_formatAsFractional(e,t){const i=this._priceScale/this._minMove;let s=Math.floor(e),r=t?Math.floor(e*i)-s*i:Math.round(e*i)-s*i;r===i&&(r=0,s+=1);let n="";if(t){let o=(e-s-r/i)*i;o=Math.round(o*Math.pow(10,t)),n=c(o,t),n=this._removeEndingZeros(n,t)}if(!this._fractionalLength)throw new Error("_fractionalLength is not calculated");let o="";if(this._minMove2){const e=r%this._minMove2;r=(r-e)/this._minMove2;const t=c(r,this._fractionalLength),i=this._getFractPart(e,2,this._minMove2);o=t+l.decimalSignFractional+i}else r=this._getFractPart(r,1,this._priceScale),o=c(r*this._minMove,this._fractionalLength);return s.toString()+l.decimalSignFractional+o+n}_removeEndingZeros(e,t){ -for(let i=0;i=s||r<0)return{error:this._formatterErrors.fraction,res:!1};let n=i+r/s;return e&&(n=-n),{value:n,res:!0,suggest:this.format(n)}}return{error:this._formatterErrors.custom,res:!1}}_parseAsDoubleFractional(e){let t=a.exec(e);if(t){const t=parseFloat(e);return{value:t,res:!0,suggest:this.format(t)}}if(t=new RegExp("^(-?)([0-9]+)\\"+l.decimalSignFractional+"([0-9]+)\\"+l.decimalSignFractional+"([0-9]+)$").exec(e),t){const e=!!t[1],i=parseInt(t[2]),s=void 0!==this._minMove2?this._minMove2:NaN,r=this._priceScale/s,n=this._minMove2,o=this._patchFractPart(parseInt(t[3]),1,r),a=this._patchFractPart(parseInt(t[4]),2,n);if(o>=r||o<0)return{error:this._formatterErrors.fraction,res:!1};if(void 0!==n&&a>=n||a<0)return{error:this._formatterErrors.secondFraction,res:!1};let l=void 0!==n?i+o/r+a/(r*n):NaN;return e&&(l=-l),{value:l,res:!0,suggest:this.format(l)}}return{error:this._formatterErrors.custom,res:!1}}}},64806:(e,t,i)=>{"use strict";i.d(t,{TimeFormatter:()=>n});var s=i(69147),r=i(97098);class n{constructor(e){this._formatStr=e||"%h:%m:%s"}format(e){return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",(0,r.numberToStringWithLeadingZero)(e.getUTCHours(),2)).replace("%m",(0,r.numberToStringWithLeadingZero)(e.getUTCMinutes(),2)).replace("%s",(0,r.numberToStringWithLeadingZero)(e.getUTCSeconds(),2))}formatLocal(e){return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.formatLocal?s.customFormatters.timeFormatter.formatLocal(e):s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",(0,r.numberToStringWithLeadingZero)(e.getHours(),2)).replace("%m",(0,r.numberToStringWithLeadingZero)(e.getMinutes(),2)).replace("%s",(0,r.numberToStringWithLeadingZero)(e.getSeconds(),2))}}},92242:(e,t,i)=>{"use strict";i.d(t,{TimeSpanFormatter:()=>r});var s=i(28353);class r{format(e){const t=e<0;e=Math.abs(e);const i=Math.floor(e/86400);e-=86400*i;const r=Math.floor(e/3600);e-=3600*r;const n=Math.floor(e/60);e-=60*n;let o="";return i&&(o+=i+(0,s.t)("d",{context:"dates"})+" "),r&&(o+=r+(0,s.t)("h",{context:"dates"})+" "),n&&(o+=n+(0,s.t)("m",{context:"dates"})+" "),e&&(o+=e+(0, -s.t)("s",{context:"dates"})+" "),t&&(o="-"+o),o.trim()}}},67802:(e,t,i)=>{"use strict";i.d(t,{VolumeFormatter:()=>a});var s=i(28353),r=i(95505),n=i(80643),o=i(93751);class a{constructor(e){this.type="volume",this._numericFormatter=new r.NumericFormatter,this._fractionalValues=void 0!==e&&e>0,this._precision=e}state(){return{precision:this._precision}}format(e,t){if(!(0,n.isNumber)(e))return"---";let i="";return e<0?(i="−",e=-e):e>0&&t&&(i="+"),e>=1e100?(0,s.t)("N/A"):(!this._fractionalValues||e>=995?e=Math.round(e):this._fractionalValues&&(e=+e.toFixed(this._precision)),e<995?i+this._formatNumber(e):e<999995?i+this._formatNumber(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),i+this._formatNumber(e/1e6)+"M"):e<999999999995?(e=1e6*Math.round(e/1e6),i+this._formatNumber(e/1e9)+"B"):(e=1e9*Math.round(e/1e9),i+this._formatNumber(e/1e12)+"T"))}parse(e){if("---"===e)return{error:"not a number",res:!1,value:NaN};const t={K:1e3,M:1e6,B:1e9},i=e.slice(-1);if(t.hasOwnProperty(i)){const s=this._numericFormatter.parse(e.slice(0,-1));return(0,n.isNumber)(s)?{res:!0,value:s*t[i]}:{error:"not a number",res:!1,value:NaN}}{const t=this._numericFormatter.parse(e);return(0,n.isNumber)(t)?{res:!0,value:t}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new a(e.precision)}_formatNumber(e){return this._fractionalValues&&(e=(0,o.fixComputationError)(e)),this._numericFormatter.format(e).replace(/(\.[1-9]*)0+$/,(e,t)=>t)}}},88129:(e,t,i)=>{"use strict";i.d(t,{shouldBeFormattedAsPercent:()=>n,shouldBeFormattedAsIndexedTo100:()=>o,getPriceValueFormatterForSource:()=>a});var s=i(37667),r=i(79680);function n(e){const t=e.priceScale();return!(null===t||!t.isPercentage())&&(!(0,r.isActingAsSymbolSource)(e)||(0,s.isPriceSourceStyle)(e.style()))}function o(e){const t=e.priceScale();return!(null===t||!t.isIndexedTo100())&&(!(0,r.isActingAsSymbolSource)(e)||(0,s.isPriceSourceStyle)(e.style()))}function a(e){const t=e.priceScale();if(o(e)&&null!==t)return i=>{var s;return t.formatPriceIndexedTo100(i,null!==(s=e.firstValue())&&void 0!==s?s:100)};if(n(e)&&null!==t)return i=>{var s;return t.formatPricePercentage(i,null!==(s=e.firstValue())&&void 0!==s?s:100)};const i=e.formatter();return i.format.bind(i)}},84346:(e,t,i)=>{"use strict";function s(e,t,i){if(e.isTouch){if(void 0!==i)return i(e),!0}else if(void 0!==t)return t(e),!0;return!1}function r(e,t,i,s){return void 0!==t.executeDefaultAction&&(e.isTouch?Boolean(t.executeDefaultAction[s]):Boolean(t.executeDefaultAction[i]))}var n;i.d(t,{tryCallHandler:()=>s,shouldDefaultActionBeExecuted:()=>r,AreaName:()=>n,HitTestResult:()=>o}),function(e){e.Style="Style",e.Text="Text",e.SourceItemMove="SourceItemMove"}(n||(n={}));class o{constructor(e,t,i){this._result=e,this._data=t||null,this._eraseMarker=i}result(){return this._result}data(){return this._data}hasPressedMoveHandler(e){return null!==this._data&&function(e,t,i){if(e.isTouch){if(void 0!==i)return!0}else if(void 0!==t)return!0;return!1 -}(e,this._data.pressedMouseMoveHandler,this._data.touchMoveHandler)}tryCallMouseDownOrTouchStartHandler(e){return null!==this._data&&s(e,this._data.mouseDownHandler,this._data.touchStartHandler)}tryCallMouseUpOrTouchEndHandler(e){return null!==this._data&&s(e,this._data.mouseUpHandler,this._data.touchEndHandler)}tryCallMouseEnterHandler(e){return null!==this._data&&s(e,this._data.mouseEnterHandler)}tryCallMouseLeaveHandler(e){return null!==this._data&&s(e,this._data.mouseLeaveHandler)}tryCallMouseMoveHandler(e){return null!==this._data&&s(e,this._data.mouseMoveHandler)}tryCallClickOrTapHandler(e){return null!==this._data&&s(e,this._data.clickHandler,this._data.tapHandler)}tryCallDblClickOrDblTapHandler(e){return null!==this._data&&s(e,this._data.doubleClickHandler,this._data.doubleTapHandler)}tryCallContextMenuHandler(e){return null!==this._data&&s(e,this._data.contextMenuHandler,this._data.touchContextMenuHandler)}eraseMarker(){return this._eraseMarker}}o.MOVEPOINT_BACKGROUND=1,o.REGULAR=2,o.MOVEPOINT=3,o.CHANGEPOINT=4,o.CUSTOM=5},22221:(e,t,i)=>{"use strict";i.d(t,{HorizontalLinePaneView:()=>n});var s=i(40254),r=i(43891);class n{constructor(){this._lineRendererData={y:0,color:"rgba(0, 0, 0, 0)",linewidth:1,linestyle:r.LINESTYLE_SOLID,visible:!1},this._lineRenderer=new s.HorizontalLineRenderer,this._invalidated=!0,this._lineRenderer.setData(this._lineRendererData)}update(e){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._lineRenderer}}},27759:(e,t,i)=>{"use strict";var s,r;i.d(t,{PlDisplay:()=>s,TradingSourcesHorizontalAlignment:()=>r,tradingPreferencesDefault:()=>n,CustomSourceLayer:()=>o}),function(e){e[e.Money=0]="Money",e[e.Pips=1]="Pips",e[e.Percentage=2]="Percentage"}(s||(s={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(r||(r={}));const n={showPositions:!1,positionPL:{visibility:!1,display:s.Money},bracketsPL:{visibility:!1,display:s.Money},showOrders:!1,showExecutions:!1,showExecutionsLabels:!1,showReverse:!1,extendLeft:!1,lineLength:0,horizontalAlignment:r.Right,lineWidth:0,lineStyle:0};var o;!function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(o||(o={}))},29823:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ResolutionKind:()=>n,SpecialResolutionKind:()=>o,Interval:()=>h,isHour:()=>u});const s=/^(\d*)([TSHDWMR])$/,r=/^(\d+)$/;var n,o;!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"}(n||(n={})),function(e){e.Hours="hours"}(o||(o={}));const a={};a[n.Ticks]=1e3,a[n.Seconds]=1e3,a[n.Minutes]=60*a[n.Seconds],a[n.Days]=1440*a[n.Minutes],a[n.Weeks]=7*a[n.Days];const l={T:n.Ticks,S:n.Seconds,D:n.Days,W:n.Weeks,M:n.Months,R:n.Range},c=new Set([n.Ticks,n.Seconds,n.Minutes]);class h{constructor(e,t){this._kind=n.Invalid,this._multiplier=0,e!==n.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}multiplier(){return this._multiplier}isValid(){ -return this.kind()!==n.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=c.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===n.Seconds}isMinutes(){return this.kind()===n.Minutes}isMinuteHours(){return this.kind()===n.Minutes&&u(this.multiplier())}isDays(){return this.kind()===n.Days}isWeeks(){return this.kind()===n.Weeks}isMonths(){return this.kind()===n.Months}isRange(){return this.kind()===n.Range}isTicks(){return this.kind()===n.Ticks}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==n.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===n.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof h))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||h.parse(e).isEqualTo(h.parse(t))}static parseExt(e){e=(e+"").toUpperCase().split(",")[0];let t=s.exec(e);return null!==t?"H"===t[2]?{interval:new h(n.Minutes,60*d(t[1])),guiResolutionKind:o.Hours}:{interval:new h(l[t[2]],d(t[1])),guiResolutionKind:l[t[2]]}:(t=r.exec(e),null!==t?{interval:new h(n.Minutes,d(t[1])),guiResolutionKind:n.Minutes}:{interval:new h(n.Invalid,0),guiResolutionKind:n.Invalid})}static parse(e){return h.parseExt(e).interval}static kind(e){return h.parse(e).kind()}static isValid(e){return h.parse(e).isValid()}static isDWM(e){return h.parse(e).isDWM()}static isIntraday(e){return h.parse(e).isIntraday()}static isSeconds(e){return h.parse(e).isSeconds()}static isMinutes(e){return h.parse(e).isMinutes()}static isMinuteHours(e){return h.parse(e).isMinuteHours()}static isDays(e){return h.parse(e).isDays()}static isWeeks(e){return h.parse(e).isWeeks()}static isMonths(e){return h.parse(e).isMonths()}static isRange(e){return h.parse(e).isRange()}static isTicks(e){return h.parse(e).isTicks()}static isTimeBased(e){return h.parse(e).isTimeBased()}static normalize(e){const t=h.parse(e);return t.isValid()?t.value():null}}function d(e){return 0===e.length?1:parseInt(e,10)}function u(e){return e>=60&&!(e%60)}},52418:(e,t,i)=>{"use strict";i.d(t,{intervalsVisibilitiesDefaults:()=>s});const s={ticks:!0,seconds:!0,secondsFrom:1,secondsTo:59,minutes:!0,minutesFrom:1,minutesTo:59,hours:!0,hoursFrom:1,hoursTo:24,days:!0,daysFrom:1,daysTo:366,weeks:!0,weeksFrom:1,weeksTo:52,months:!0,monthsFrom:1,monthsTo:12,ranges:!0}},20838:(e,t,i)=>{"use strict";i.d(t,{IntervalsVisibilitiesProperty:()=>n});var s=i(2015),r=i.n(s);i(36759);class n extends(r()){state(e){return super.state(e)}storeStateIfUndefined(){return!1}}},36759:(e,t,i)=>{"use strict";i.d(t,{makeIntervalsVisibilitiesVisibleAtInterval:()=>a, -isActualInterval:()=>c,nonDefaultIntervalsVisibilities:()=>h,mergeIntervalVisibilitiesDefaults:()=>d});var s=i(88537),r=i(29823),n=i(52418),o=i(80643);function a(e,t){let i=t.multiplier();if(t.isTicks()&&(e.ticks=!0),t.isSeconds()&&(i<60?(e.seconds=!0,e.secondsFrom=Math.min(e.secondsFrom,i),e.secondsTo=Math.max(e.secondsTo,i)):(i/=60,t=new r.Interval(r.ResolutionKind.Minutes,i))),t.isMinutes())if(i<60)e.minutes=!0,e.minutesFrom=Math.min(e.minutesFrom,i),e.minutesTo=Math.max(e.minutesTo,i);else{const t=Math.floor(i/60);e.hours=!0,e.hoursFrom=Math.min(e.hoursFrom,t),e.hoursTo=Math.max(e.hoursTo,t)}t.isDays()&&(e.days=!0,e.daysFrom=Math.min(e.daysFrom,i),e.daysTo=Math.max(e.daysTo,i)),t.isWeeks()&&(e.weeks=!0,e.weeksFrom=Math.min(e.weeksFrom,i),e.weeksTo=Math.max(e.weeksTo,i)),t.isMonths()&&(e.months=!0,e.monthsFrom=Math.min(e.monthsFrom,i),e.monthsTo=Math.max(e.monthsTo,i)),t.isRange()&&(e.ranges=!0)}function l(e,t,i,s){return e&&s>=t&&s<=i}function c(e,t){const i=t.childs();switch(e.kind()){case r.ResolutionKind.Ticks:return i.ticks.value();case r.ResolutionKind.Seconds:if(e.multiplier()<60)return l(i.seconds.value(),i.secondsFrom.value(),i.secondsTo.value(),e.multiplier());{const t=Math.floor(e.multiplier()/60);return l(i.minutes.value(),i.minutesFrom.value(),i.minutesTo.value(),t)}case r.ResolutionKind.Minutes:if(e.multiplier()<60)return l(i.minutes.value(),i.minutesFrom.value(),i.minutesTo.value(),e.multiplier());{const t=Math.floor(e.multiplier()/60);return l(i.hours.value(),i.hoursFrom.value(),i.hoursTo.value(),t)}case r.ResolutionKind.Days:return l(i.days.value(),i.daysFrom.value(),i.daysTo.value(),e.multiplier());case r.ResolutionKind.Weeks:return l(i.weeks.value(),i.weeksFrom.value(),i.weeksTo.value(),e.multiplier());case r.ResolutionKind.Months:return l(i.months.value(),i.monthsFrom.value(),i.monthsTo.value(),e.multiplier());case r.ResolutionKind.Range:return i.ranges.value()}return(0,s.assert)(!1,"Unsupported resolution: "+e.value()),!1}function h(e){const t=Object.keys(e).filter(t=>n.intervalsVisibilitiesDefaults[t]!==e[t]);return 0===t.length?null:t.reduce((t,i)=>(t[i]=e[i],t),{})}function d(e){return(0,o.merge)((0,o.clone)(n.intervalsVisibilitiesDefaults),null!=e?e:{})}},35878:(e,t,i)=>{"use strict";function s(e){return Boolean(e.showInObjectTree)}i.d(t,{isDataSource:()=>s})},95836:(e,t,i)=>{"use strict";var s;i.d(t,{SymbolErrorPermissionDeniedReason:()=>s,permissionDenied:()=>r,invalidSymbol:()=>n}),function(e){e.Symbol="symbol",e.GroupPermission="group"}(s||(s={}));const r="permission denied",n="invalid symbol"},79680:(e,t,i)=>{"use strict";function s(e){const t=(null==e?void 0:e.symbolSource)&&e.symbolSource()===e,i=void 0!==(null==e?void 0:e.isActingAsSymbolSource);return t||i}function r(e){return s(e)&&e.isActingAsSymbolSource().value()}i.d(t,{isSymbolSource:()=>s,isActingAsSymbolSource:()=>r})},34580:(e,t,i)=>{"use strict";i.d(t,{LevelsProperty:()=>p});var s=i(80643),r=i(88564),n=i(59803);const o={prefixes:[""],range:[0,0],names:["coeff","color","visible","linestyle","linewidth"],typecheck:{ -pack:()=>Object(),unpack:()=>[]}};function a(e,t,i,s){return s.push(i[t]),s}function l(e,t,i,s){return s[t]=i[e],s}function c(){return[]}function h(){return{}}function d(e,t,i){return i.prefixes.forEach(r=>{const n=r+"level";for(let r=i.range[0];r<=i.range[1];r++)if(e[n+r]&&(0,s.isSameType)(e[n+r],t.typecheck())){let s=t.tpl();i.names.forEach((i,o)=>{s=t.fill(""+o,i,e[n+r],s)}),e[n+r]=s}}),e}function u(e,t,i){return i(e,{tpl:h,fill:l,typecheck:t.typecheck.unpack},t)}class p extends r.DefaultProperty{constructor(e,t,i,s,r){r=null!=r?r:d;const n={...o,...null!=s?s:{}};super(e,t?u(t,n,r):t,i),this._map=n,this._levelsIterator=r}state(e,t){const i=super.state(e);return t?i:(s=i,r=this._map,(0,this._levelsIterator)(s,{tpl:c,fill:a,typecheck:r.typecheck.pack},r));var s,r}saveDefaults(){this._useUserPreferences&&(0,n.saveDefaults)(this._defaultName,this.state(this._exclusions,!0))}clone(){const e=this.state(),t=new p(this._defaultName,e);for(let e=0;e{"use strict";i.d(t,{LineToolsGroup:()=>l});var s=i(2872),r=i.n(s),n=i(9423);function o(e){return e.properties().visible.value()}function a(e){return!o(e)}class l{constructor(e,t,i){this._instanceId=(0,n.randomHashN)(6),this._onChanged=new(r()),this._lineToolsSet=new Set,this._lineTools=[...e],this._lineToolsSet=new Set(this._lineTools),this._name=t,this.id=i||(0,n.randomHashN)(6)}instanceId(){return this._instanceId}lineTools(){return this._lineTools}name(){return this._name}setName(e){this._doAndFireOnChange(()=>{this._name=e})}isActualSymbol(){return this._lineTools.length>0&&this._lineTools[0].isActualSymbol()&&this._lineTools[0].isActualCurrency()&&this._lineTools[0].isActualUnit()}symbol(){return this._lineTools[0].symbol()}currencyId(){var e;return null!==(e=this._lineTools[0].properties().childs().currencyId.value())&&void 0!==e?e:null}unitId(){var e;return null!==(e=this._lineTools[0].properties().childs().unitId.value())&&void 0!==e?e:null}sharingMode(){return this._lineTools[0].sharingMode()}share(e){this._lineTools.forEach(t=>t.share(e))}containsLineTool(e){return this._lineToolsSet.has(e)}addLineTools(e){this._doAndFireOnChange(t=>{e.forEach(e=>this._lineToolsSet.add(e)),this._lineTools.push(...e),t.push(...e.map(e=>e.id()))})}excludeLineTool(e){this._doAndFireOnChange(t=>{this._lineToolsSet.delete(e);const i=this._lineTools.indexOf(e);this._lineTools.splice(i,1),t.push(e.id())})}excludeLineTools(e){this._doAndFireOnChange(t=>{const i=new Set(e);e.forEach(e=>this._lineToolsSet.delete(e)),this._lineTools=this._lineTools.filter(e=>!i.has(e)),t.push(...e.map(e=>e.id()))})}state(){return{id:this.id,name:this._name,tools:this._lineTools.map(e=>e.id())}}visibility(){const e=this._lineTools.some(o),t=this._lineTools.some(a);return e&&!t?"Visible":t&&!e?"Invisible":"Partial"}locked(){const e=this._lineTools.some(e=>e.properties().frozen.value()),t=this._lineTools.some(e=>!e.properties().frozen.value()) -;return e&&!t?"Locked":t&&!e?"Unlocked":"Partial"}isActualInterval(){const e=this._lineTools.some(e=>e.isActualInterval()),t=this._lineTools.some(e=>!e.isActualInterval());return e&&!t?"IsActualInterval":t&&!e?"IsNotActualInterval":"Partial"}onChanged(){return this._onChanged}static fromState(e,t){const i=[];for(const s of t.tools){const t=e.dataSourceForId(s);null!==t&&i.push(t)}return i.length>0?new l(i,t.name,t.id):null}_doAndFireOnChange(e){const t=[],i=this.visibility(),s=this.locked(),r=this.name(),n=this.isActualInterval();e(t),this._onChanged.fire({affectedLineTools:t,visibilityChanged:i!==this.visibility(),lockedChanged:s!==this.locked(),titleChanged:r!==this.name(),isActualIntervalChanged:n!==this.isActualInterval()})}}},656:(e,t,i)=>{"use strict";i.d(t,{LineTool5PointsPattern:()=>a});var s=i(88537),r=i(88564),n=i(89857),o=i(37865);class a extends n.LineDataSource{constructor(e,t,i,s){super(e,t||a.createProperties(),i,s),this._loadPaneViews(e)}pointsCount(){return 5}name(){return"XABCD Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetool5pointspattern",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}_loadPaneViews(e){i.e(1583).then(i.bind(i,46010)).then(t=>{this._setPaneViews([new t.Pattern5pointsPaneView(this,e)])})}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("textcolor"))]))}}},82203:(e,t,i)=>{"use strict";i.d(t,{LineToolABCD:()=>a});var s=i(88537),r=i(88564),n=i(89857),o=i(37865);class a extends n.LineDataSource{constructor(e,t,s,r){const n=t||a.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,5040)).then(t=>{this._setPaneViews([new t.ABCDPaneView(this,e)])})}pointsCount(){return 4}name(){return"ABCD Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetoolabcd",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,98890)).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("textcolor"))]))}}},17337:(e,t,i)=>{"use strict";i.d(t,{LineToolArc:()=>h});var s=i(88537),r=i(4652),n=i(86441),o=i(25422),a=i(88564),l=i(89857),c=i(37865);class h extends l.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),this.version=2,this._dist=null,i.e(1583).then(i.bind(i,24843)).then(({ArcPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){const e=(0, -s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));this._dist=(0,r.distanceToLine)(e,t,i).distance;const o=t.subtract(e),a=new n.Point(-o.y,o.x),l=e.add(t).scaled(.5);i.subtract(l).dotProduct(a)<0&&(this._dist=-this._dist)}}endChanging(e,t){return this._dist=null,super.endChanging(e,t)}pointsCount(){return 3}name(){return"Arc"}hasEditableCoordinates(){return!1}setPoint(e,t){const i={...t},a=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));switch(e){case 0:{const e=(0,s.ensureNotNull)(this._dist),t=(0,s.ensureNotNull)(this.pointToScreenPoint(i)),r=l.subtract(t),o=t.add(l).scaled(.5);let a=new n.Point(-r.y,r.x);a=a.normalized();const c=o.add(a.scaled(e));this._points[0]=i,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(c));break}case 1:{const e=(0,s.ensureNotNull)(this._dist),t=(0,s.ensureNotNull)(this.pointToScreenPoint(i)),r=t.subtract(a),o=a.add(t).scaled(.5),l=new n.Point(-r.y,r.x).normalized(),c=o.add(l.scaled(e));this._points[1]=i,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(c));break}case 2:{let e=(0,s.ensureNotNull)(this.pointToScreenPoint(i));const t=(0,r.distanceToLine)(a,l,e).distance,c=l.subtract(a),h=a.add(l).scaled(.5),d=new n.Point(-c.y,c.x).normalized(),u=h.add(d.scaled(t)),p=h.add(d.scaled(-t)),_=c.length(),m=c.x/_,g=c.y/_;let f=Math.acos(m);g<0&&(f=-f);let v=(0,o.translationMatrix)(-h.x,-h.y);e=(0,o.transformPoint)(v,e);let S=(0,o.transformPoint)(v,u);v=(0,o.rotationMatrix)(-f),e=(0,o.transformPoint)(v,e),S=(0,o.transformPoint)(v,S),v=(0,o.scalingMatrix)(1,_/(2*t)),e=(0,o.transformPoint)(v,e),S=(0,o.transformPoint)(v,S);const y=e.y*S.y>=0?new n.Point(u.x,u.y):new n.Point(p.x,p.y);this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(y));break}}this.normalizePoints()}migrateVersion(e,t,i){if(1===e&&2===this._points.length){const e=(2*this._points[0].price+3*this._points[1].price)/5;this._points.push({price:e,index:this._points[1].index})}if(1===e&&2===this._timePoint.length){const e={price:(2*this._timePoint[0].price+3*this._timePoint[1].price)/5,offset:this._timePoint[1].offset,time_t:this._timePoint[1].time_t};this._timePoint.push(e)}}static createProperties(e){const t=new a.DefaultProperty("linetoolarc",e);return h._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModelBase}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.addChild("linesColors",new c.LineToolColorsProperty([e.childs().color]))}}},18659:(e,t,i)=>{"use strict";i.d(t,{LineToolArrowMark:()=>l,LineToolArrowMarkLeft:()=>c,LineToolArrowMarkUp:()=>h,LineToolArrowMarkRight:()=>d,LineToolArrowMarkDown:()=>u});var s=i(88564),r=i(89857),n=i(2015),o=i.n(n),a=i(37865);class l extends r.LineDataSource{constructor(e,t,s,r,n){ -const o=t||l.createProperties(null,s);super(e,o,r,n),this._textPaneView=null,i.e(1583).then(i.bind(i,71407)).then(({ArrowMarkPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}paneViews(e){const t=super.paneViews();return null!==t&&this._textPaneView&&t.push(this._textPaneView),t}pointsCount(){return 1}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e,t){const i=new s.DefaultProperty(t,e);return l._configureProperties(i),i}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,72930)).then(e=>e.ArrowMarkDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().arrowColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().color])),e.hasChild("text")||e.addChild("text",new(o())("")),e.addExclusion("text")}}l.version=2;class c extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkleft",i,s)}direction(){return"left"}name(){return"Arrow Mark Left"}textAlignParams(){return{horzAlign:"left",vertAlign:"middle",offsetX:22,offsetY:3}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkleft")}}class h extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkup",i,s)}direction(){return"up"}name(){return"Arrow Mark Up"}textAlignParams(){return{horzAlign:"center",vertAlign:"top",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkup")}}class d extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkright",i,s)}direction(){return"right"}name(){return"Arrow Mark Right"}textAlignParams(){return{horzAlign:"right",vertAlign:"middle",offsetX:22,offsetY:3,forceTextAlign:!0}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkright")}}class u extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkdown",i,s)}direction(){return"down"}name(){return"Arrow Mark Down"}textAlignParams(){return{horzAlign:"center",vertAlign:"bottom",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkdown")}}},10167:(e,t,i)=>{"use strict";i.d(t,{LineToolArrowMarker:()=>a});var s=i(89857),r=i(88564),n=i(2015),o=i.n(n);class a extends s.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:a.createProperties(),s,r),i.e(1583).then(i.bind(i,39833)).then(({ArrowMarkerPaneView:e})=>{this._setPaneViews([new e(this,this.model())])})}pointsCount(){return 2}name(){return"Trend Line"}static createProperties(e){const t=new r.DefaultProperty("linetoolarrowmarker",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,92138)).then(e=>e.ArrowMarkerDefinitionsViewModel)}static _configureProperties(e){s.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(o())("")), -e.addExclusion("text")}}},59358:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Arrow"}static createProperties(e){var t=new r("linetoolarrow",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolArrow=n},57666:(e,t,i)=>{"use strict";i.d(t,{LineToolBalloon:()=>h});var s=i(28353),r=i(88564),n=i(89857),o=i(2015),a=i.n(o),l=i(37865);const c=(0,s.t)("Comment");class h extends n.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,17952)).then(t=>{this._setPaneViews([new t.BalloonPaneView(this,e)])})}pointsCount(){return 1}name(){return"Balloon"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolballoon",e);return h._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,60991)).then(e=>e.BalloonDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())(c)),e.addExclusion("text"),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new l.LineToolColorsProperty([e.childs().color]))}}},4676:(e,t,i)=>{"use strict";i.d(t,{BarsMarksContainer:()=>T});var s=i(88537),r=i(98125),n=i(56840),o=i.n(n),a=i(67337),l=i(89857),c=i(2872),h=i.n(c),d=i(29823),u=i(80643),p=i(37667);class _{constructor(e,t){this.source=e,this._rendererFactory=t}update(){}renderer(e,t){return this._rendererFactory(this.source)}}var m=i(16282),g=i(22799),f=i(86441),v=i(84346),S=i(34026);const y={green:{border:"#78C143",background:"#8DDD54"},red:{border:"#CC4545",background:"#ED5A5A"},neutral:{border:"#EAC300",background:"#FFD400"},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}};class b extends m.ScaledPaneRenderer{constructor(e,t){super(),this._highlightByAuthor=!1,this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}hitTest(e){for(let t=this._plates.length-1;t>=0;--t){const i=this._hitTestDot(this._plates[t],e);if(i)return i}return null}_drawImpl(e){var t,i;e.save();for(let e=0;ethis._plateTransform(e));null===(t=this._tooltip)||void 0===t||t.draw(s,e),null===(i=this._tooltip)||void 0===i||i.endDraw(),e.restore()}_drawItem(e,t){e.save(),this._highlightByAuthor&&!t.highlightByAuthor&&(e.globalAlpha=.4);const i=this._dotTransform(t);i.mine?this._drawTriangle(e,i):this._drawDot(e,i),e.restore()}_commonTransform(e){const t=Math.max(1.4*e.minSize,this._barWidth+4),i={up:-1,down:1 -}[e.direction]*(e.yInverted?-1:1)*(t*(e.order+.6)+.25*t),s=e.y+i,r=(0,u.clone)(e.overridedTheme||y[e.theme]);return r.dotBorderWidth=e.hovered||e.highlightByAuthor?4:2,{id:e.id,theme:r,themeName:e.theme,x:Math.round(e.x+1),y:Math.round(s),yInverted:e.yInverted,pinned:Boolean(e.pinned),hovered:Boolean(e.hovered)}}_dotTransform(e){const t=Math.max(e.minSize/2,.4*this._barWidth),i={...this._commonTransform(e),radius:t,label:e.label,labelFontColor:e.labelFontColor,labelFontSize:Math.ceil(Math.max(10,Math.min(t,20)))};return this._model.updateDotData(e,i)}_plateTransform(e){const t=this._commonTransform(e);return this._model.updatePlateData(e,t)}_drawTriangle(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth||2;const i=t,s=t.radius,r=Math.cos(Math.PI/6)*s,n=Math.sin(Math.PI/6)*s;e.translate(i.x,i.y);"up"===t.direction!==t.yInverted&&e.rotate(Math.PI),t.public||(e.lineWidth/=2),e.beginPath(),e.moveTo(0,-s),e.lineTo(r,n),e.lineTo(-r,n),e.lineTo(0,-s),e.closePath(),e.stroke(),t.public&&e.fill()}_drawDot(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth||2,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.fill(),t.label&&t.radius>=7&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+g.CHART_FONT_FAMILY,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))}_hitTestDot(e,t){const i=this._dotTransform(e),s=new f.Point(i.x,i.y);return(0,S.pointInCircle)(t,s,Math.max(i.radius,8))?new v.HitTestResult(v.HitTestResult.REGULAR,{activeItem:e}):null}}var w=i(88564);const C=(0,r.getLogger)("Chart.BarsMarksContainer"),P=Math.round(new Date(2037,0,1).getTime()/1e3);class T extends l.LineDataSource{constructor(e,t,i,r){const n=e.onWidget();let c;if(c=n?!e.hideIdeas():!!a.enabled("bars_marks")&&o().getBool("BarsMarksContainer.visibile",!1),t)t.merge({visible:c,frozen:!1});else{t=new w.DefaultProperty("barmarks",{visible:c,frozen:!1})}t.childs().visible.listeners().subscribe(null,t=>{n||e.isSnapshot()||!a.enabled("bars_marks")||o().setValue("BarsMarksContainer.visibile",!!t.value()),this._tooltip&&this._tooltip.removeAll()}),l.LineDataSource._configureProperties(t),super(e,t,i,r),this.onNeedRepaint=new(h()),this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._lastRange=null,this._model.mainSeries().onSymbolIntervalChanged().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().symbolResolved().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().completed().subscribe(this,()=>{var e,t;const i=this._model.mainSeries().data();if(0===i.size())return;const r=(0,s.ensureNotNull)(i.first()).index,n=(0,s.ensureNotNull)(i.last()).index,o=this.timeScale();this.getData({start:null!==(e=o.indexToTimePoint(r))&&void 0!==e?e:1/0,end:null!==(t=o.indexToTimePoint(n))&&void 0!==t?t:-1/0})}),this._initialize(),this._pinnedTooltips={},this._tooltip=this._createTooltipRenderer()}marks(){return this._marks -}updateDotData(e,t){return t}isAvailableInFloatingWidget(){return!1}pinTooltip(e,t){this._pinnedTooltips[e]=t}timeScale(){return this._model.timeScale()}getIntervalInTicks(){const e=this._model.mainSeries().properties().childs().interval.value(),t=d.Interval.parse(e);if(!t.isValid())throw new TypeError("Unexpected interval");return t.isRange()?60:t.inMilliseconds()/1e3}getVisibleTickMarksRange(){var e,t;if(this.timeScale().isEmpty())return{start:0,end:0};const i=(0,s.ensureNotNull)(this.timeScale().visibleBarsStrictRange()),r=(0,s.ensureNotNull)(this.timeScale().points().firstIndex()),n=(0,s.ensureNotNull)(this.timeScale().points().lastIndex());if(!(i.lastBar()>r&&i.firstBar(){var r,n;const o=this._marks[s],a=o.tickmark;a>=(null!==(r=t.start)&&void 0!==r?r:1/0)&&a<=(null!==(n=t.end)&&void 0!==n?n:-1/0)+i&&e.push(o)}),e}getPublishedPlates(){const e={};return window.is_authenticated?(this.getVisibleRangePlates().forEach(t=>{t.is_public&&(this._pinnedTooltips[t.id]||t.user__id===window.user.id)&&(e[t.id]=t)}),e):e}filterDisplayedPlates(e){const t=e.reduce((e,t)=>{const i=this._getIndex(t.tickmark);return null!==i&&(e[i]=e[i]||[],e[i].push(t)),e},{});return Object.keys(t).reduce((e,i)=>{let s=t[i];return s=s.sort((e,t)=>t.views_count-e.views_count),s=s.slice(0,10),e.concat(s)},[])}getViewData(){return{barWidth:this.barWidth(),plates:this.getPlatesViewData(),tooltip:this._tooltip}}barWidth(){return this.timeScale().barSpacing()}getPlatesViewData(){var e,t,i;const r=this._model.mainSeries();if(r.data().isEmpty())return[];const n=(0,p.isPriceSourceStyle)(r.style())?r.barFunction():null,o=this.filterDisplayedPlates(this.getVisibleRangePlates()),a={},l=null!==(e=this._model.lastHittestData())&&void 0!==e?e:this._model.lastSelectedHittestData(),c=[];for(const e of o){const i=(0,s.ensureNotNull)(this._getIndex(e.tickmark)),r=this._getBar(i);if(null===r)continue;const o=this._layout(e.direction),h=this._theme(e.direction);let d=null;null!==l&&this._model.hoveredSource()===this&&(d=null!==(t=l.activeItem)&&void 0!==t?t:null);const p=null!==d&&d.id===e.id,_=this.timeScale().indexToCoordinate(i),m=this._offset(o,r,n),g=(0,s.ensureNotNull)(this.priceScale()).isInverted();let f=0;i in a||(a[i]={up:0,down:0}),f=a[i][o]++,c.push((0,u.merge)({id:e.id,x:_,y:m,yInverted:g,order:f,direction:o,theme:h,hovered:p,pinned:!0===this._pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5},this._plateViewData(e)))}const h=c.filter(e=>!0===e.hovered);for(let e=0;ee.hovered&&!t.hovered?1:0),c}paneViews(){return this._properties.childs().visible.value()?[new _(this,e=>new b(e.getViewData(),this))]:[]}priceAxisViews(){return null}updateAllViews(){}pointsCount(){return 0}roundRange(e){return{start:Math.round(e.start),end:Math.round(e.end)}}refreshData(){null!==this._lastRange&&this.getData(this._lastRange)}getData(e){(0,u.isNumber)(e.start)&&(0,u.isNumber)(e.end)?(this._lastRange=e,e.end=P,this._pushGetDataStack(Object.assign({},e))):C.logError("Wrong range")}clearMarks(){this._abortAllRequests(),this._marks={},this._loadedRange=null}isUserDeletable(){return!1}_plateViewData(e){return{}}_layout(e){switch(e){default:case 0:return"up";case 1:return"down";case 2:return"up";case 3:case 4:case 5:case 6:return"up"}}_theme(e){switch(e){default:case 0:return"neutral";case 1:return"green";case 2:return"red";case 3:return"yellow";case 4:return"blue";case 5:return"green";case 6:return"red"}}_offset(e,t,i){let r;switch(e){default:case"up":r=null===i?t[2]:i(t);break;case"down":r=null===i?t[3]:i(t)}return(0,s.ensureNotNull)(this.priceScale()).priceToCoordinate(r,(0,s.ensureNotNull)((0,s.ensureNotNull)(this.ownerSource()).firstValue()))}_getIndex(e){return this.timeScale().timePointToIndex(e)}_getBar(e){return this._model.mainSeries().data().valueAt(e)}_rangeDifference(e){return e=Object.assign({start:1/0,end:-1/0},e),this._loadedRange&&(e.startthis._loadedRange.end&&(e.start=this._loadedRange.end)),e}_rangeUnion(e,t){return e=Object.assign({start:1/0,end:-1/0},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e}_pushGetDataStack(e){(0,u.isNumber)(e.start)&&(0,u.isNumber)(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout(()=>{this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null},300)):C.logError("Wrong tickmark range")}_abortAllRequests(){this._requests.forEach(e=>{e.cancel()}),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null}}},8059:(e,t,i)=>{"use strict";var s;i.d(t,{LineToolBarsPatternMode:()=>s}),function(e){e[e.Bars=0]="Bars",e[e.Line=1]="Line",e[e.OpenClose=2]="OpenClose",e[e.LineOpen=3]="LineOpen",e[e.LineHigh=4]="LineHigh",e[e.LineLow=5]="LineLow",e[e.LineHL2=6]="LineHL2"}(s||(s={}))},98802:(e,t,i)=>{"use strict";i.d(t,{LineToolBarsPattern:()=>S});var s=i(88537),r=i(28353),n=i(24980),o=i(80643),a=i(28296),l=i(88564),c=i(71053),h=i(89857),d=i(8059),u=i(33291);const p=new n.TranslatedString("mirror bars pattern",(0,r.t)("mirror bars pattern")),_=new n.TranslatedString("flip bars pattern",(0,r.t)("flip bars pattern")),m=(0,r.t)("Mirrored"),g=(0,r.t)("Flipped"),f={0:2,1:4,2:1,3:1,4:2,5:3,6:-1},v={0:3,1:4,2:4,3:1,4:2,5:3,6:-1};class S extends h.LineDataSource{constructor(e,t=S.createProperties(),s,r){super(e,t,s,r),this._pattern=[],this._scale=1,this._pointsCoordinatePricesDiff=null -;const n=t.childs().mode.value();(0,o.isString)(n)&&t.childs().mode.setValue(parseInt(n)),t.childs().mirrored.listeners().subscribe(this,this._mirror),t.childs().flipped.listeners().subscribe(this,this._flip),t.childs().mode.subscribe(this,this._updateLastPoint),this.version=2,i.e(1583).then(i.bind(i,27106)).then(t=>{this._setPaneViews([new t.BarsPatternPaneView(this,e)])})}pattern(){return this._pattern}isSynchronizable(){return!1}additionalActions(e){return[new a.Action({actionId:"Chart.LineTool.BarsPattern.ToggleMirrored",checked:this.properties().childs().mirrored.value(),checkable:!0,label:m,onExecute:()=>{e.setProperty(this.properties().childs().mirrored,!this.properties().childs().mirrored.value(),p),this.updateAllViews((0,u.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}}),new a.Action({actionId:"Chart.LineTool.BarsPattern.ToggleFlipped",checked:this.properties().childs().flipped.value(),checkable:!0,label:g,onExecute:()=>{e.setProperty(this.properties().childs().flipped,!this.properties().childs().flipped.value(),_),this.updateAllViews((0,u.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}})]}pointsCount(){return 2}state(e){return{...super.state(e),pattern:this._pattern,scale:this._scale,diff:this._pointsCoordinatePricesDiff}}restoreData(e){const{pattern:t=this._pattern,scale:i=this._scale,diff:s=this._pointsCoordinatePricesDiff}=e;this._pattern=t,this._scale=i,this._pointsCoordinatePricesDiff=s}name(){return"Bars Pattern"}hasEditableCoordinates(){return!1}cloneData(e){this._pattern=(0,o.clone)(e._pattern),this._scale=e._scale,this._pointsCoordinatePricesDiff=e._pointsCoordinatePricesDiff}firstPatternPrice(){const{mode:e,flipped:t}=this.properties().childs(),i=this._pattern[0];return e.value()===d.LineToolBarsPatternMode.LineHL2?(i[2]+i[3])/2:t.value()?i[v[e.value()]]:i[f[e.value()]]}lastPatternPrice(){const{mode:e,flipped:t}=this.properties().childs(),i=this._pattern[this._pattern.length-1];return e.value()===d.LineToolBarsPatternMode.LineHL2?(i[2]+i[3])/2:t.value()?i[f[e.value()]]:i[v[e.value()]]}addPoint(e,t,i){const r=super.addPoint(e,t,!0);if(r){const e=this._model.mainSeries(),[{index:t},{index:i}]=this.points(),r=(0,s.ensureDefined)(e.nearestIndex(Math.min(t,i),c.PlotRowSearchMode.NearestRight)),n=(0,s.ensureDefined)(e.nearestIndex(Math.max(t,i),c.PlotRowSearchMode.NearestLeft));this._pattern=this._createPattern(r,n),this._pattern.length>0&&(t>i&&this._points.reverse(),this._points[1].price=this._points[0].price+this._patternPriceDiff(),this._points[1].index=this._points[0].index+(n-r),this.normalizePoints(),this.createServerPoints()),this._updatePointsCoordinatePricesDiff()}return r}setPoint(e,t,i,s){1===e&&t.index<=this._points[0].index&&(t.index=this._points[0].index+1),0===e&&t.index>=this._points[1].index&&(t.index=this._points[1].index-1),super.setPoint(e,t,i),this._updatePointsCoordinatePricesDiff()}move(e,t,i,s){super.move(e,t,i,s),this._updatePointsCoordinatePricesDiff()}migrateVersion(e,t,i){if(1===e&&this._pattern.length>0){ -const e=this._patternPriceDiff();2===this._timePoint.length&&(this._timePoint[1].price=this._timePoint[0].price+e),2===this._points.length&&(this._points[1].price=this._points[0].price+e)}}getScale(){return this._scale=this._calculateScale()}static createProperties(e){const t=new l.DefaultProperty("linetoolbarspattern",e);return S._configureProperties(t),t}_preparePoint(e,t){var i;const r=this._alignPointToRangeOfActualData(e),n=this._model.mainSeries(),o=(0,s.ensureNotNull)(n.bars().valueAt(r.index));this.properties().childs().mode.value()===d.LineToolBarsPatternMode.Bars?r.price=(0,s.ensure)(o[2]):r.price=(0,s.ensure)(o[4]);const a=(0,s.ensureNotNull)(this.priceScale()),l=(0,s.ensure)(null===(i=this.ownerSource())||void 0===i?void 0:i.firstValue()),c=.05*a.height(),h=a.priceToCoordinate(r.price,l)-c;return r.price=a.coordinateToPrice(h,l),super._preparePoint(r,t)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14725))).BarsPatternDefinitionsViewModel}static _configureProperties(e){h.LineDataSource._configureProperties(e),e.addExclusion("mirrored"),e.addExclusion("flipped")}_calculatePatternCoordinatePricesDiff(){var e;return this._pattern.length>0&&null!==(e=this._priceCoordinateDiff([this.firstPatternPrice(),this.lastPatternPrice()]))&&void 0!==e?e:null}_updatePointsCoordinatePricesDiff(){this._pointsCoordinatePricesDiff=this._calculatePointsCoordinatePricesDiff()}_calculatePointsCoordinatePricesDiff(){var e;if(2===this._points.length){const[{price:t},{price:i}]=this.points();return null!==(e=this._priceCoordinateDiff([t,i]))&&void 0!==e?e:null}return null}_createPattern(e,t){const i=this._model.mainSeries().data(),r=[];for(let n=e;n<=t;n++)r.push((0,o.clone)((0,s.ensureNotNull)(i.valueAt(n))));return r}_switchPointsPrice(){const e=this._points[0].price;this._timePoint[0].price=this._points[0].price=this._points[1].price,this._timePoint[1].price=this._points[1].price=e}_mirror(){const e=this._pattern;let t=Math.min(e[0][3],e[0][2]),i=Math.max(e[0][3],e[0][2]);for(let s=1;ss-(e-s);for(let t=0;ts.priceToCoordinate(e,r))}_priceCoordinateDiff(e){const t=this._pricesToCoordinates(e);if(t)return t[1]-t[0]}_calculateScale(){let e=1;if(2===this._points.length){const t=this._calculatePatternCoordinatePricesDiff();if(!t)return e -;const i=this._calculatePointsCoordinatePricesDiff();if(t&&null!==i&&(e=+(i/t).toFixed(8)),this._pointsCoordinatePricesDiff!==i){if(this._scale!==e)return this._updateLastPoint(),this._scale;this._updatePointsCoordinatePricesDiff()}}return e}_updateLastPoint(){var e,t;if(this._points.length<2)return;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===s||null===i||i.isEmpty())return;const r=this._calculatePatternCoordinatePricesDiff(),n=this._pricesToCoordinates([this.points()[0].price]);null!==r&&n&&(this._timePoint[1].price=this._points[1].price=i.coordinateToPrice(+(this._scale*r).toFixed(8)+n[0],s),this._updatePointsCoordinatePricesDiff())}}},47679:(e,t,i)=>{"use strict";i.d(t,{LineToolBezierCubic:()=>o});var s=i(88537),r=i(88564),n=i(89857);class o extends n.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),this._controlPoints=null,i.e(1583).then(i.bind(i,11933)).then(t=>{this._setPaneViews([new t.BezierCubicPaneView(this,e)])})}pointsCount(){return 2}name(){return"Double Curve"}setLastPoint(e,t){const i=super.setLastPoint(e,t);return this._controlPoints=this._calculateControlPoints(),i}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoints();this._controlPoints=null,this._points.push(e[0]),this._points.push(e[1]),i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2),this._createPointProperty(3)}controlPoints(){return this._controlPoints}static createProperties(e){const t=new r.DefaultProperty("linetoolbeziercubic",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,79462)).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e)}_calculateControlPoints(){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[1])),i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.33),n=e.add(t).scaled(.67),o=r.add(i),a=n.subtract(i);return[(0,s.ensureNotNull)(this.screenPointToPoint(o)),(0,s.ensureNotNull)(this.screenPointToPoint(a))]}}},30899:(e,t,i)=>{"use strict";i.d(t,{LineToolBezierQuadro:()=>o});var s=i(88537),r=i(88564),n=i(89857);class o extends n.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),this._controlPoint=null,i.e(1583).then(i.bind(i,79998)).then(t=>{this._setPaneViews([new t.BezierQuadroPaneView(this,e)])})}pointsCount(){return 2}name(){return"Curve"}setLastPoint(e,t){const i=super.setLastPoint(e,t);return this._controlPoint=this._calculateControlPoint(),i}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoint();this._points.push(e),this._controlPoint=null,i||(this.normalizePoints(),this.createServerPoints()), -this._createPointProperty(2)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2)}controlPoint(){return this._controlPoint}static createProperties(e){const t=new r.DefaultProperty("linetoolbezierquadro",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,79462)).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e)}_calculateControlPoint(){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[1])),i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.5).add(i);return(0,s.ensureNotNull)(this.screenPointToPoint(r))}}},27258:(e,t,i)=>{"use strict";i.d(t,{LineToolBrushBase:()=>n});var s=i(88537),r=i(89857);class n extends r.LineDataSource{constructor(){super(...arguments),this._finished=!1}pointsCount(){return-1}finished(){return this._finished}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}hasEditableCoordinates(){return!1}addPoint(e,t,i){if(this._finished)return!0;if(this._lastPoint=null,this._points.length>0){const t=this._points[this._points.length-1],i=(0,s.ensureNotNull)(this.pointToScreenPoint(t));if((0,s.ensureNotNull)(this.pointToScreenPoint(e)).subtract(i).length()<2)return this._finished}return super.addPoint(e),this._finished}restorePoints(e,t,i){super.restorePoints(e,t,i),this._finished=!0}}},43871:(e,t,i)=>{"use strict";i.d(t,{LineToolBrush:()=>o});var s=i(88564),r=i(27258),n=i(37865);class o extends r.LineToolBrushBase{constructor(e,t,i,s){super(e,t||o.createProperties(),i,s),this._loadPaneViews(e)}smooth(){return this.properties().childs().smooth.value()}name(){return"Brush"}hasEditableCoordinates(){return!1}static createProperties(e){const t=new s.DefaultProperty("linetoolbrush",e);return o._configureProperties(t),t}_loadPaneViews(e){i.e(1583).then(i.bind(i,87394)).then(t=>{this._setPaneViews([new t.BrushPaneView(this,e)])})}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,288)).then(e=>e.BrushDefinitionsViewModel)}static _configureProperties(e){r.LineToolBrushBase._configureProperties(e),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor],e.childs().fillBackground))}}},73932:(e,t,i)=>{"use strict";var s;i.d(t,{CalloutConsts:()=>s}),function(e){e[e.RoundRadius=8]="RoundRadius",e[e.TextMargins=2]="TextMargins",e[e.MinWidth=100]="MinWidth"}(s||(s={}))},95536:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(89857).LineDataSource,n=i(62443).DataSource,o=i(2015),a=i(88564).DefaultProperty,l=i(73932).CalloutConsts,c=i(37865).LineToolColorsProperty;class h extends r{constructor(e,t,s,r){super(e,t||h.createProperties(),s,r),this._barOffset=0,this._timeScale=e.timeScale(),i.e(1583).then(i.t.bind(i,86449,19)).then(({CalloutPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){ -return 2}name(){return"Callout"}_correctPoints(e,t){var i=this._currentMovingPoint.logical.index-this._startMovingPoint.logical.index,s=this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price,r=e[1];r.index+=i,r.price+=s,e[1]=r}addPoint(e){var t=r.prototype.addPoint.call(this,e);return t&&this._calculateBarOffset(),t}_calculateBarOffset(){this.points().length>1&&(this._barOffset=this.points()[1].index-this.points()[0].index)}setLastPoint(e){var t=super.setLastPoint(e);return 2===this.points().length&&this._calculateBarOffset(),t}setPoint(e,t){switch(e){case 0:super.setPoint(e,t),this._calculateBarOffset();break;case 1:var i=this.properties();if(!i.wordWrapWidth)return;var s=this._points,r=this._dragStartLeftEdgeIndex,n=Math.round((t.index-r)/2);if(isFinite(r)&&isFinite(n)){s[1]={index:r+n,price:s[1].price},this._calculateBarOffset(),this.normalizePoints();var o=this._timeScale.indexToCoordinate(r+2*n)-this._timeScale.indexToCoordinate(r)-l.RoundRadius-l.TextMargins;if(!isFinite(o))return;i.wordWrapWidth.setValue(Math.max(l.MinWidth,o));break}s[1]=t,this._calculateBarOffset(),this.normalizePoints()}}setPoints(e){super.setPoints(e);var t=this.properties();if(t.wordWrapWidth){var i=this._dragStartLeftEdgeIndex,s=Math.round((e[1].index-i)/2);if(this._calculateBarOffset(),this.normalizePoints(),isFinite(i)&&isFinite(s)){var r=this._timeScale.indexToCoordinate(i+2*s)-this._timeScale.indexToCoordinate(i)-l.RoundRadius-l.TextMargins;if(!isFinite(r))return;t.wordWrapWidth.setValue(Math.max(l.MinWidth,r))}}}_onPointsetUpdated(e){super._onPointsetUpdated(e),0!==e.length&&(this._dragStartLeftEdgeIndex=this.points()[1].index)}move(e,t,i){super.move(e,t,i),this._calculateBarOffset()}state(e){var t=r.prototype.state.call(this,e);return t.barOffset=this._barOffset,t}restoreData(e){e.barOffset?this._barOffset=e.barOffset:this._calculateBarOffset(),this._calculatePoint2()}setPriceScale(e){n.prototype.setPriceScale.call(this,e),e&&e.priceRange()&&this._calculatePoint2()}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_calculatePoint2(){if(!(this._model.lineBeingEdited()===this||this._model.sourcesBeingMoved().includes(this)||this._points.length<2)){var e=this.points()[0],t=this.points()[1];this._points[1]={price:t.price,index:e.index+this._barOffset}}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,26599))).CalloutDefinitionsViewModel}static createProperties(e){var t=new a("linetoolcallout",e);return h._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new o(s("Text"))),e.addExclusion("text"),e.addChild("textsColors",new c([e.childs().color]))}}t.LineToolCallout=h},49802:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r), -i.e(1583).then(i.t.bind(i,99517,19)).then(({LineToolCircleLinesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Cyclic Lines"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,66819))).CyclicAndSineLinesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetoolcirclelines",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolCircleLines=n},2039:(e,t,i)=>{"use strict";i.d(t,{LineToolCircle:()=>l});var s=i(2015),r=i.n(s),n=i(88564),o=i(89857),a=i(37865);class l extends o.LineDataSource{constructor(e,t,s,r){const n=t||l.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,13167)).then(({CirclePaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}pointsCount(){return 2}name(){return"Circle"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new n.DefaultProperty("linetoolcircle",e);return l._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3410))).EllipseCircleDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(r())("")),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().color])),e.addChild("linesWidths",new a.LineToolWidthsProperty([e.childs().linewidth])),e.addChild("backgroundsColors",new a.LineToolColorsProperty([e.childs().backgroundColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().textColor],e.childs().showLabel)),e.addExclusion("linesColors"),e.addExclusion("linesWidths"),e.addExclusion("backgroundsColors"),e.addExclusion("text")}}},53193:(e,t,i)=>{"use strict";i.d(t,{LineToolCrossLine:()=>a});var s=i(88564),r=i(10198),n=i(67103),o=i(89857);class a extends o.LineDataSource{constructor(e,t,s,o){super(e,t||a.createProperties(),s,o),this._priceAxisView=new r.LineToolHorzLinePriceAxisView(this),this._timeAxisView=new n.LineToolVertLineTimeAxisView(this),i.e(1583).then(i.bind(i,62105)).then(({CrossLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Cross Line"}priceAxisViews(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().childs().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null}timeAxisViews(){return this.isSourceHidden()?null:this.properties().childs().showTime.value()?[this._timeAxisView]:null}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e),this._timeAxisView.update()}canHasAlert(){return!1}lineColor(){return this.properties().childs().linecolor.value()}lineWidth(){return this.properties().childs().linewidth.value()}lineStyle(){ -return this.properties().childs().linestyle.value()}static createProperties(e){const t=new s.DefaultProperty("linetoolcrossline",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,99645)).then(e=>e.CrossLineDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e)}}},980:(e,t,i)=>{"use strict";i.d(t,{LineToolCypherPattern:()=>n});var s=i(656),r=i(88564);class n extends s.LineTool5PointsPattern{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Cypher Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetoolcypherpattern",e);return n._configureProperties(t),t}_loadPaneViews(e){i.e(1583).then(i.bind(i,58062)).then(t=>{this._setPaneViews([new t.CypherPaneView(this,e)])})}static _configureProperties(e){s.LineTool5PointsPattern._configureProperties(e)}}},85402:(e,t,i)=>{"use strict";i.d(t,{nonThemedFactoryDefaultsBase:()=>l,themedFactoryDefaultsBase:()=>c});var s=i(45112),r=i(24633),n=i(68906),o=i(52418);const a=(0,s.getHexColorByName)("color-tv-blue-500"),l={linewidth:1,fontsize:12,fillLabelBackground:!0,fillBackground:!0,backgroundTransparency:60,intervalsVisibilities:{...o.intervalsVisibilitiesDefaults}},c=new Map([[r.StdTheme.Light,{textcolor:(0,s.getHexColorByName)("color-black"),labelBackgroundColor:(0,s.getHexColorByName)("color-white"),linecolor:a,backgroundColor:(0,n.generateColor)(a,85),shadow:"rgba(0, 0, 0, 0.2)"}],[r.StdTheme.Dark,{textcolor:(0,s.getHexColorByName)("color-white"),labelBackgroundColor:(0,s.getHexColorByName)("color-cold-gray-800"),linecolor:a,backgroundColor:(0,n.generateColor)(a,85),shadow:"rgba(0, 0, 0, 0.4)"}]])},26215:(e,t,i)=>{"use strict";i.d(t,{LineToolDateAndPriceRange:()=>g});var s=i(88537),r=i(89857),n=i(34081),o=i(24633),a=i(45112),l=i(45383),c=i(85402);const h=(0,a.getHexColorByName)("color-tv-blue-500"),d={...c.nonThemedFactoryDefaultsBase,drawBorder:!1,borderWidth:1},u=new Map([[o.StdTheme.Light,{...c.themedFactoryDefaultsBase.get(o.StdTheme.Light),borderColor:h}],[o.StdTheme.Dark,{...c.themedFactoryDefaultsBase.get(o.StdTheme.Dark),borderColor:h}]]),p=(0,l.extractAllPropertiesKeys)((0,s.ensureDefined)(u.get(o.StdTheme.Light))),_=(0,l.extractAllPropertiesKeys)(d);class m extends l.ThemedDefaultProperty{static create(e){return new m("linetooldateandpricerange",()=>(0,l.factoryDefaultsForCurrentTheme)(d,u),_,p,e)}}class g extends r.LineDataSource{constructor(e,t,s,r){super(e,t||g.createProperties(),s,r),this._volumeCalculator=null,i.e(1583).then(i.bind(i,81226)).then(e=>{this._setPaneViews([new e.DateAndPriceRangePaneView(this,this._model)])})}destroy(){super.destroy(),null!==this._volumeCalculator&&this._volumeCalculator.destroy()}pointsCount(){return 2}name(){return"Date and Price Range"}volume(){if(null===this._volumeCalculator)return NaN;const e=this.points();return this._volumeCalculator.volume(e[0].index,e[1].index)}setOwnerSource(e){e===this._model.mainSeries()&&((0,s.assert)(null===this._volumeCalculator), -this._volumeCalculator=new n.SeriesTimeRangeVolumeCalculator(this._model.mainSeries())),super.setOwnerSource(e)}static createProperties(e){const t=m.create(e);return g._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){r.LineDataSource._configureProperties(e)}}},45669:(e,t,i)=>{"use strict";i.d(t,{LineToolDateRange:()=>_});var s=i(88537),r=i(89857),n=i(34081),o=i(24633),a=i(45383),l=i(85402);const c={...l.nonThemedFactoryDefaultsBase,extendTop:!1,extendBottom:!1},h=l.themedFactoryDefaultsBase,d=(0,a.extractAllPropertiesKeys)((0,s.ensureDefined)(h.get(o.StdTheme.Light))),u=(0,a.extractAllPropertiesKeys)(c);class p extends a.ThemedDefaultProperty{static create(e){return new p("linetooldaterange",()=>(0,a.factoryDefaultsForCurrentTheme)(c,h),u,d,e)}}class _ extends r.LineDataSource{constructor(e,t,s,r){super(e,t||_.createProperties(),s,r),this._volumeCalculator=null,i.e(1583).then(i.bind(i,27913)).then(e=>{this._setPaneViews([new e.DateRangePaneView(this,this._model)])})}destroy(){super.destroy(),null!==this._volumeCalculator&&this._volumeCalculator.destroy()}pointsCount(){return 2}name(){return"Date Range"}volume(){if(null===this._volumeCalculator)return NaN;const e=this.points();return this._volumeCalculator.volume(e[0].index,e[1].index)}setOwnerSource(e){e===this._model.mainSeries()&&((0,s.assert)(null===this._volumeCalculator),this._volumeCalculator=new n.SeriesTimeRangeVolumeCalculator(this._model.mainSeries())),super.setOwnerSource(e)}static createProperties(e){const t=p.create(e);return _._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){r.LineDataSource._configureProperties(e)}}},46512:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),this.version=n.version,i.e(1583).then(i.t.bind(i,56863,19)).then(({DisjointChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Disjoint Channel"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){var s=.5*(this._points[1].price+this._points[2].price);if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])}if(e<3&&super.setPoint(e,t),0!==e&&2!==e){if(1===e){var r=this._points[1].price-s;this._points[2].price=this._points[1].price-2*r}else if(3===e){r=t.price-this._points[2].price;this._points[0].price=this._points[1].price-r, -this._points[0].index=t.index}this.normalizePoints()}}getPoint(e){if(e<3)return s.prototype.getPoint.call(this,e);var t=this._points[0].price-this._points[2].price;return{index:this._points[0].index,price:this._points[1].price-t}}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price+(t.price-e.price),time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),d=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=d):(o=d,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",o,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14145))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooldisjointangle",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolDisjointChannel=n},97917:(e,t,i)=>{"use strict";i.d(t,{LineToolElliott:()=>u,LineToolElliottImpulse:()=>m,LineToolElliottTriangle:()=>f,LineToolElliottTripleCombo:()=>S,LineToolElliottCorrection:()=>w,LineToolElliottDoubleCombo:()=>P});var s=i(28353),r=i(24980),n=i(89857),o=i(28296),a=i(88564),l=i(37865);const c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],h=new r.TranslatedString("change Elliott degree",(0,s.t)("change Elliott degree")),d=[{value:0,title:(0,s.t)("Supermillennium")},{value:1,title:(0,s.t)("Millennium")},{value:2,title:(0,s.t)("Submillennium")},{value:3,title:(0,s.t)("Grand supercycle")},{value:4,title:(0,s.t)("Supercycle")},{value:5,title:(0,s.t)("Cycle")},{value:6,title:(0,s.t)("Primary")},{value:7,title:(0,s.t)("Intermediate")},{value:8,title:(0,s.t)("Minor",{context:"wave"})},{value:9,title:(0,s.t)("Minute",{context:"wave"})},{value:10,title:(0,s.t)("Minuette")},{value:11,title:(0,s.t)("Subminuette")},{value:12,title:(0,s.t)("Micro")},{value:13,title:(0,s.t)("Submicro")},{value:14,title:(0,s.t)("Minuscule")}];class u extends n.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:u.createProperties(),s,r),this.version=4,i.e(1583).then(i.bind(i,5761)).then(e=>{this._setPaneViews([new e.ElliottLabelsPaneView(this,this._model)])})}migrateVersion(e,t,i){if(i.properties.hasChild("background")&&i.properties.removeProperty("background"),i.properties.hasChild("backgroundColor")&&i.properties.removeProperty("backgroundColor"),i.properties.hasChild("showBackground")&&i.properties.removeProperty("showBackground"),1===e){const e=Object.assign({},this._timePoint[0]);if(this._timePoint.unshift(e),this._points.length>0){const e=Object.assign({},this._points[0]);this._points.unshift(e)}}}applyTemplate(e){const t=e;delete t.background,delete t.backgroundColor,delete t.showBackground,super.applyTemplate(e)}name(){ -return"Elliott Labels"}additionalActions(e){return[new o.Action({actionId:"Chart.LineTool.Elliot.ChangeDegreeProperty",label:(0,s.t)("Degree"),subItems:c.map(t=>{const i=d.filter(e=>e.value===t)[0];return new o.Action({actionId:"Chart.LineTool.Elliot.ChangeDegreeProperty",label:i.title,checkable:!0,checked:this.properties().childs().degree.value()===t,onExecute:()=>{e.setProperty(this.properties().childs().degree,t,h)}})})})]}label(e){const t=c.length-this.properties().childs().degree.value()-1,i=Math.floor(t/3);return{group:i,bold:!!(i%2),decoration:["","brackets","circle"][t%3],label:this.labelsGroup()[i][e]}}availableDegreesValues(){return d}static createProperties(e){const t=new a.DefaultProperty("linetoolelliott",e);return u._configureProperties(t),t}static migrateState(e){const t={0:11,1:10,2:9,3:8,4:7,5:6,6:5,7:4,8:3},i={0:11,1:8};"LineToolElliottSubminuette"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinor"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottCircle"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize]),"LineToolElliottMajorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize])}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,31522))).ElliottPatternDefinitionsViewModel}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().color])),e.addExclusion("linesColors")}}class p extends u{pointsCount(){return 6}static _configureProperties(e){u._configureProperties(e)}}const _=[["0","1","2","3","4","5"],["0","i","ii","iii","iv","v"],["0","1","2","3","4","5"],["0","I","II","III","IV","V"],["0","1","2","3","4","5"]];class m extends p{constructor(e,t,i,s){super(e,t||m.createProperties(),i,s)}name(){return"Elliott Impulse Wave (12345)"}labelsGroup(){return _}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottimpulse",e);return m._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}const g=[["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"]];class f extends p{constructor(e,t,i,s){super(e,t||f.createProperties(),i,s)}name(){return"Elliott Triangle Wave (ABCDE)"}labelsGroup(){return g}static createProperties(e){const t=new a.DefaultProperty("linetoolelliotttriangle",e);return f._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}const v=[["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"]];class S extends p{constructor(e,t,i,s){super(e,null!=t?t:S.createProperties(),i,s)}name(){return"Elliott Triple Combo Wave (WXYXZ)"}labelsGroup(){return v} -static createProperties(e){const t=new a.DefaultProperty("linetoolelliotttriplecombo",e);return S._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}class y extends u{pointsCount(){return 4}static _configureProperties(e){u._configureProperties(e)}}const b=[["0","A","B","C"],["0","a","b","c"],["0","A","B","C"],["0","a","b","c"],["0","A","B","C"]];class w extends y{constructor(e,t,i,s){super(e,null!=t?t:w.createProperties(),i,s)}name(){return"Elliott Correction Wave (ABC)"}labelsGroup(){return b}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottcorrection",e);return w._configureProperties(t),t}static _configureProperties(e){y._configureProperties(e)}}const C=[["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"]];class P extends y{constructor(e,t,i,s){super(e,null!=t?t:P.createProperties(),i,s)}name(){return"Elliott Double Combo Wave (WXY)"}labelsGroup(){return C}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottdoublecombo",e);return P._configureProperties(t),t}static _configureProperties(e){y._configureProperties(e)}}},38430:(e,t,i)=>{"use strict";i.d(t,{LineToolEllipse:()=>d});var s=i(88537),r=i(4652),n=i(86441),o=i(2015),a=i.n(o),l=i(89857),c=i(88564),h=i(37865);class d extends l.LineDataSource{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=2,this._dist=null,this._fakePointAdded=!1,i.e(1583).then(i.bind(i,58446)).then(({EllipsePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));this._dist=(0,r.distanceToLine)(e,t,i).distance||0}}addPoint(e,t,i){const s=l.LineDataSource.prototype.addPoint.call(this,e,t,i);return s&&(this._fakePointAdded=!1),s}setPoint(e,t,i,o){const a={...t};let l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),c=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),h=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));switch(e){case 0:{if(i&&i.shift()){this._snapPoint45Degree(a,this._points[1]),this._points[0]=a,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[0],this._points[1],this._points[2]);break}l=(0,s.ensureNotNull)(this.pointToScreenPoint(a));const e=c.subtract(l),t=l.add(c).scaled(.5),r=new n.Point(-e.y,e.x).normalized();h=t.add(r.scaled((0,s.ensureNotNull)(this._dist))),this._points[0]=a,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 1:{if(i&&i.shift()){this._snapPoint45Degree(a,this._points[0]),this._points[1]=a,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],this._points[2]);break}c=(0, -s.ensureNotNull)(this.pointToScreenPoint(a));const e=c.subtract(l),t=l.add(c).scaled(.5),r=new n.Point(-e.y,e.x).normalized();h=t.add(r.scaled((0,s.ensureNotNull)(this._dist))),this._points[1]=a,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 2:{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(a)),t=(0,r.distanceToLine)(l,c,e).distance,i=c.subtract(l),o=l.add(c).scaled(.5),d=new n.Point(-i.y,i.x).normalized();h=o.add(d.scaled(t)),this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 3:{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(a)),t=(0,r.distanceToLine)(l,c,e).distance,i=c.subtract(l),o=l.add(c).scaled(.5),d=new n.Point(-i.y,i.x).normalized();h=o.add(d.scaled(t)),this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}}this.normalizePoints()}pointsCount(){return 3}name(){return"Ellipse"}hasEditableCoordinates(){return!1}migrateVersion(e,t,i){if(1===e&&2===this._points.length){const e=this._points[0].price,t=.5*(this._points[0].price+this._points[1].price);this._points[0]={price:t,index:this._points[0].index},this._points[1]={price:t,index:this._points[1].index},this._points.push({price:e,index:this._points[0].index})}if(1===e&&2===this._timePoint.length){const e=this._timePoint[0].price,t=.5*(this._timePoint[0].price+this._timePoint[1].price);this._timePoint[0].price=t,this._timePoint[1].price=t;const i={price:e,offset:this._timePoint[0].offset,time_t:this._timePoint[0].time_t};this._timePoint.push(i)}}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new c.DefaultProperty("linetoolellipse",e);return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3410))).EllipseCircleDefinitionsViewModel}_preparePoint(e,t){const i=this._preparePointInternal(e,t,!1);return t&&t.shift()&&this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],i),i}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())("")),e.addChild("linesColors",new h.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new h.LineToolColorsProperty([e.childs().textColor],e.childs().showLabel)),e.addExclusion("text")}_preparePointInternal(e,t,i){let r={...e};if(t&&t.shift()){const t=this.points().length;if(!this._fakePointAdded&&3===t&&!i)return r;if(this._fakePointAdded||2===t||i){this._snapPoint45Degree(e,this._points[0]),this._fakePointAdded?this._points[1]=e:i||(this._fakePointAdded=!0,super._addPointIntenal(e));const t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),o=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),a=o.x-t.x,l=o.y-t.y,c=Math.sqrt(a*a+l*l)/2,h=o.subtract(t),d=t.add(o).scaled(.5),u=new n.Point(-h.y,h.x).normalized(),p=d.add(u.scaled(c));r=(0, -s.ensureNotNull)(this.screenPointToPoint(p)),(isNaN(r.price)||isNaN(r.index))&&(r=(0,s.ensureNotNull)(this.screenPointToPoint(d)))}}else this._fakePointAdded&&(this._points.splice(1,1),this._fakePointAdded=!1);return r}_fixVerticalDiameterPoints(e,t,i){const r=(0,s.ensureNotNull)(this.pointToScreenPoint(e)),o=(0,s.ensureNotNull)(this.pointToScreenPoint(t)),a=this._model.timeScale(),l=a.indexToCoordinate(e.index),c=a.indexToCoordinate(i.index);let h=2*Math.abs(l-c);h*=t.price>e.price?1:-1,e.price=(0,s.ensureNotNull)(this.screenPointToPoint(new n.Point(r.x,o.y+h))).price}}},39593:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(53664),n=i(88564).DefaultProperty,o=i(71053).PlotRowSearchMode;const a=i(67337);var l=i(59555).sortSourcesPreOrdered.LineToolExecution;class c{constructor(e,t){this._pane=e,this._timeScale=t}static recreateOrderedByBarsSourcesCache(e){c.clearOrderedByBarsSourcesCache();for(var t=c.prototype,i=e.sourcesByGroup().all(),s=0;s_.lastBar()||i<_.firstBar())return{x:-1,y:-1};for(var m=this._cachedByBarIndexOrderedExecutions[i]||this._pane.sourcesByGroup().all(),g=m.length-1;g>=0;--g){var f=m[g];if(f instanceof d&&f._adapter._index===i&&f._adapter.getDirection()===r){if(f===e._line)break;var v=f._adapter._height();s=n?s+v:s-v}}return{x:t.indexToCoordinate(i),y:s}}}c.prototype._cachedByBarIndexOrderedExecutions={};class h{constructor(e){this._line=e}_height(){var e=this.getArrowHeight(),t=this.getArrowSpacing();this.getText()&&r.fontHeight(this.getFont());return e+t+0+10}getIndex(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index}setIndex(e){var t=this._line._model.timeScale().baseIndex()-Math.abs(e);this._line.startMoving({logical:this._line.points()[0]});var i=TradingView.merge({},this._line.points()[0]);return i.index=t,this._line.move({logical:i}),this._line.endMoving(),this}getTime(){return this._unixtime}setTime(e){return this._unixtime=e,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){return this._line.points().length>0&&(this._line.points()[0].price=e), -this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._line.properties().text.value()}setText(e){return this._line.properties().text.setValue(e||""),this._line.updateAllViewsAndRedraw(),this}getArrowHeight(){return this._line.properties().arrowHeight.value()}setArrowHeight(e){return this._line.properties().arrowHeight.setValue(e||5),this}getArrowSpacing(){return this._line.properties().arrowSpacing.value()}setArrowSpacing(e){return this._line.properties().arrowSpacing.setValue(e||1),this}getDirection(){return this._line.properties().direction.value()}setDirection(e){return this._line.properties().direction.setValue(e||"buy"),this}getArrowColor(){var e=this._line.properties();return"buy"===this.getDirection()?e.arrowBuyColor.value():e.arrowSellColor.value()}setArrowColor(e){return"buy"===this.getDirection()?this.setArrowBuyColor(e):this.setArrowSellColor(e),this}setArrowBuyColor(e){return this._line.properties().arrowBuyColor.setValue(e),this}setArrowSellColor(e){return this._line.properties().arrowSellColor.setValue(e),this}getTextColor(){return r.getColorFromProperties(this._line.properties().textColor,this._line.properties().textTransparency)}setTextColor(e){return r.setColorToProperties(e,this._line.properties().textColor,this._line.properties().textTransparency),this}getFont(){return r.getFontFromProperties(this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic)}setFont(e){return r.setFontToProperties(e,this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic),this}setTooltip(e){return null==e?e="":e+="",this._line.properties().tooltip.setValue(e),this}getTooltip(){return this._line.properties().tooltip.value()}remove(){this._line._model.removeSource(this._line),delete this._line}getPoints(){return this._line.points()}}class d extends s{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this._adapter=new h(this),this.customization.forcePriceAxisLabel=!1,this.customization.disableErasing=!0,this.customization.showInObjectTree=!1,this.setSelectionEnabled(!1),i.e(1583).then(i.t.bind(i,90216,19)).then(({ExecutionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return l}isSpeciallyZOrderedSource(){return!0}pointsCount(){return d.POINTS_COUNT}name(){return"Execution"}hasContextMenu(){return!1}state(){return null}updateAllViews(){return this._isVisible()?s.prototype.updateAllViews.call(this):null}priceAxisViews(e,t){return this._isVisible()?s.prototype.priceAxisViews.call(this,e,t):null}_isVisible(){return this._model.properties().tradingProperties.showExecutions.value()}paneViews(){return TradingView.printing&&!a.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showExecutions.value()?s.prototype.paneViews.call(this):null}userEditEnabled(){return!1}showInObjectTree(){return!1}cloneable(){return!1}copiable(){return!1}isSynchronizable(){return!1} -static createProperties(e){var t=new n("linetoolexecution",e,!1,!1);return d._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}d.POINTS_COUNT=1,t.ExecutionsPositionController=c,t.LineToolExecution=d},41239:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Extended Line"}static createProperties(e){var t=new r("linetoolextended",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolExtended=n},48917:(e,t,i)=>{"use strict";i.d(t,{LineToolFibChannel:()=>h});var s=i(88537),r=i(28353),n=i(24980),o=i(89857),a=i(34580),l=i(37865);const c=new n.TranslatedString("erase level line",(0,r.t)("erase level line"));class h extends o.LineDataSource{constructor(e,t,s,r){super(e,t||h.createProperties(),s,r),this.version=2,i.e(1583).then(i.bind(i,74042)).then(({FibChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return 24}migrateVersion(e,t,i){i.properties.removeProperty("reverse")}pointsCount(){return 3}name(){return"Fib Channel"}processErase(e,t){const i="level"+t,s=this.properties().child(i).childs().visible;e.setProperty(s,!1,c)}static createProperties(e){const t=new a.LevelsProperty("linetoolfibchannel",e,!1,{range:[1,24],names:["coeff","color","visible"]});return h._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){o.LineDataSource._configureProperties(e);const t=[];for(let i=1;i<=24;i++){const r=(0,s.ensureDefined)(e.child("level"+i));t.push((0,s.ensureDefined)(r.child("color")))}e.addChild("linesColors",new l.LineToolColorsProperty(t))}}},54502:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.t.bind(i,24227,19)).then(({FibCirclesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Fib Circles"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibcircles",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,9948))).FibCirclesDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color")) -;e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibCircles=d},44860:(e,t,i)=>{"use strict";i.d(t,{LineToolFibRetracement:()=>c});var s=i(28353),r=i(24980),n=i(34580),o=i(89857),a=i(37865);const l=new r.TranslatedString("erase level line",(0,s.t)("erase level line"));class c extends o.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this.version=2,i.e(1583).then(i.bind(i,22567)).then(e=>{this._setPaneViews([new e.FibRetracementPaneView(this,this._model)])})}levelsCount(){return 24}pointsCount(){return 2}name(){return"Fib Retracement"}migrateVersion(e){1===e&&this.properties().childs().extendLines.setValue(!0)}processErase(e,t){const i="level"+t,{visible:s}=this.properties().childs()[i].childs();e.setProperty(s,!1,l)}fibLevelsBasedOnLogScale(){var e;return this.properties().childs().fibLevelsBasedOnLogScale.value()&&!!(null===(e=this.priceScale())||void 0===e?void 0:e.isLog())}static createProperties(e){const t=new n.LevelsProperty("linetoolfibretracement",e,!1,{range:[1,24],names:["coeff","color","visible"]});return c._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){var t;const i=e;super._configureProperties(i);const s=[i.childs().trendline.childs().linewidth,i.childs().levelsStyle.childs().linewidth],r=[i.childs().trendline.childs().color];for(let e=1;e<=24;e++){const s=null===(t=i.child("level"+e))||void 0===t?void 0:t.child("color");r.push(s)}i.addChild("linesColors",new a.LineToolColorsProperty(r)),i.addChild("linesWidths",new a.LineToolWidthsProperty(s))}}},19857:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,52832)).then(({FibSpeedResistanceArcsPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Arcs"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibspeedresistancearcs",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,17770))).FibSpeedResistanceArcsDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibSpeedResistanceArcs=d},70673:(e,t,i)=>{ -"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865).LineToolColorsProperty,l=new r("erase level line",s("erase level line"));class c extends n{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),i.e(1583).then(i.bind(i,95294)).then(({FibSpeedResistanceFanPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return c.HLevelsCount}vLevelsCount(){return c.VLevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Fan"}processErase(e,t){var i="h"===t.type?"hlevel"+t.index:"vlevel"+t.index,s=this.properties()[i].visible;e.setProperty(s,!1,l)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,51697))).FibSpeedResistanceFanDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){void 0!==e&&void 0===e.reverse&&(e.reverse=!0);var t=new o("linetoolfibspeedresistancefan",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return c._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);var t=[e.child("grid").child("color")];for(let i=1;i<=c.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(let i=1;i<=c.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new a(t)),e.addExclusion("linesColors")}}c.HLevelsCount=7,c.VLevelsCount=7,t.LineToolFibSpeedResistanceFan=c},29638:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.bind(i,22115)).then(({FibSpiralPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Fib Spiral"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,29216))).FibSpiralDefinitionsViewModel}static createProperties(e){var t=new r("linetoolfibspiral",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolFibSpiral=n},63835:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,28550,19)).then(({FibTimeZonePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}migrateVersion(e,t,i){if(1===e){i.properties.level1.color.setValue(i.properties.baselinecolor.value());for(var s=2;s<=11;s++)i.properties["level"+s].color.setValue(i.properties.linecolor.value());for(s=1;s<=11;s++)i.properties["level"+s].linewidth.setValue(i.properties.linewidth.value()),i.properties["level"+s].linestyle.setValue(i.properties.linestyle.value())}}pointsCount(){return 2}name(){return"Fib Time Zone"}processErase(e,t){ -var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,45384))).FibTimezoneDefinitionsViewModel}static createProperties(e){var t=new o("linetoolfibtimezone",e,!1,{range:[1,11]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));for(t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.version=2,d.LevelsCount=11,t.LineToolFibTimeZone=d},53804:(e,t,i)=>{"use strict";i.d(t,{LineToolFibWedgeBase:()=>o});var s=i(88537),r=i(86441),n=i(89857);class o extends n.LineDataSource{pointsCount(){return 3}hasEditableCoordinates(){return!1}setPoint(e,t){if(super.setPoint(e,t),!this._recursiveGuard)try{if(this._recursiveGuard=!0,2===e){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0]));let t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));const i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2])).subtract(e).length();let n=t.subtract(e);n.length()<=0&&(n=new r.Point(1,0)),t=e.add(n.normalized().scaled(i));const o=(0,s.ensureNotNull)(this.screenPointToPoint(t)),a=this._pointsProperty.childs().points[1];a.childs().price.setValue(o.price),a.childs().bar.setValue(o.index)}else{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));const n=t.subtract(e).length();let o=i.subtract(e);o.length()<=0&&(o=new r.Point(1,0)),i=e.add(o.normalized().scaled(n));const a=(0,s.ensureNotNull)(this.screenPointToPoint(i)),l=this._pointsProperty.childs().points[2];l.childs().price.setValue(a.price),l.childs().bar.setValue(a.index)}}finally{this._recursiveGuard=!1}}addPoint(e){if(2===this._points.length){const t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let r=(0,s.ensureNotNull)(this.pointToScreenPoint(e));const n=i.subtract(t).length(),o=r.subtract(t).normalized();r=t.add(o.scaled(n));const a=(0,s.ensureNotNull)(this.ownerSource()),l=(0,s.ensureNotNull)(a.firstValue()),c=(0,s.ensureNotNull)(this.priceScale()).coordinateToPrice(r.y,l);e={index:Math.round(this._model.timeScale().coordinateToIndex(r.x)),price:c}}return n.LineDataSource.prototype.addPoint.call(this,e)}}},41668:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(53804).LineToolFibWedgeBase,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r), -i.e(1583).then(i.t.bind(i,82522,19)).then(({FibWedgePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}levelsCount(){return d.LevelsCount}name(){return"Fib Wedge"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibwedge",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90156))).FibWedgeDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibWedge=d},53342:(e,t,i)=>{"use strict";i.d(t,{LineToolFlagMark:()=>a});var s=i(86441),r=i(89857),n=i(88564),o=i(37865);class a extends r.LineDataSource{constructor(e,t,r,n){super(e,t||a.createProperties(),r,n),i.e(1583).then(i.bind(i,16089)).then(({FlagMarkPaneView:e})=>{const t=new e(this,this.model());t.setAnchors(new s.Point(0,0)),this._setPaneViews([t])})}pointsCount(){return 1}name(){return"Flag Mark"}static createProperties(e){e&&void 0===e.flagColor&&(e.flagColor="#318757");const t=new n.DefaultProperty("linetoolflagmark",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,18661)).then(e=>e.FlagMarkDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new o.LineToolColorsProperty([e.childs().flagColor])),e.addExclusion("backgroundsColors")}}a.version=2},47047:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),this.version=n.version,i.e(1583).then(i.t.bind(i,82830,19)).then(({FlatBottomPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Flat Bottom"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])}if(2===e)this._points[1].index=t.index;else if(3===e)return this._points[0].index=t.index,this._points[2].price=t.price,void this.normalizePoints();super.setPoint(e,t)}getPoint(e){return e<3?s.prototype.getPoint.call(this,e):3===e?{index:this._points[0].index,price:this._points[2].price}:void 0}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e), -i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price,time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),d=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=d):(o=d,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",h,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14145))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetoolflatbottom",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolFlatBottom=n},50301:(e,t,i)=>{"use strict";i.d(t,{createPropertiesObject:()=>a});var s=i(80643),r=i(34580);function n(e,t,i){var r;for(const n of Object.keys(null!==(r=e.levels)&&void 0!==r?r:{}))if(e.levels[n]&&(0,s.isSameType)(e.levels[n],t.typecheck())){let s=t.tpl();i.names.forEach((i,r)=>{s=t.fill(""+r,i,e.levels[n],s)}),e.levels[n]=s}return e}class o extends r.LevelsProperty{constructor(e,t){super(e,t,!1,{names:["width","color","visible"]},n)}}function a(e,t){return new o(e,t)}},52870:(e,t,i)=>{"use strict";i.d(t,{LineToolGannComplex:()=>d});var s=i(86441),r=i(88537),n=i(51264),o=i(89857),a=i(22423),l=i(50301),c=i(37865),h=i(22799);class d extends o.LineDataSource{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=2,this._scaleRatioFormatter=new n.LimitedPrecisionNumericFormatter(7),this.version=2,i.e(1583).then(i.bind(i,72e3)).then(({GannComplexPaneView:e})=>{this._setPaneViews([new e(this,this.model())])});const o=this.properties();this._adjustScaleRatio(o),o.subscribe(this,this._adjustScaleRatio),o.childs().scaleRatio.subscribe(this,this._correctFirstPoint),this._syncStateExclusions=["scaleRatio"],o.onRestoreFactoryDefaults().subscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.subscribe(this,this._handleTemplateApplying),this._onTemplateApplied.subscribe(this,this._correctFirstPoint)}migrateVersion(e,t,i){1===e&&(this._points.length>=this.pointsCount()?setTimeout(()=>this._migratePoint()):this._timePoint.length>=this.pointsCount()&&this._pointAdded.subscribe(this,this._migratePoint))}destroy(){const e=this.properties();e.unsubscribe(this,this._adjustScaleRatio),e.childs().scaleRatio.unsubscribe(this,this._correctFirstPoint),e.onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.unsubscribe(this,this._handleTemplateApplying),this._onTemplateApplied.unsubscribe(this,this._correctFirstPoint),super.destroy()}pointsCount(){return 2}name(){return"Gann Square"}addPoint(e,t,i){this._points.length>1&&this._points.pop();const s=super.addPoint(e,t,i),n=this.priceScale();return!(0,r.ensureNotNull)(n).isLog()&&s&&this._correctFirstPoint(),s}setPoint(e,t,i){ -super.setPoint(e,t,i),void 0!==i&&i.shift()?this._correctPoint(e):this._correctScaleRatio()}setLastPoint(e,t){const i=this.priceScale();return(0,r.ensureNotNull)(i).isLog()||(this._points[1]=e,this._correctPoint(1)),super.setLastPoint(e,t)}isReversed(){return this.properties().childs().reverse.value()}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.addExclusion("scaleRatio");const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0,o=s.index-r.index>0;let a=n&&!o||!n&&o?-1:1;0===e&&(a=-a),s.price=r.price+a*t*i,this._pointChanged.fire(e)}this.normalizePoints()}_correctFirstPoint(){this._correctPoint(this.isReversed()?0:1)}_handleRestoringFactoryDefaults(){this.properties().childs().scaleRatio.setValue(this._getAdjustedScaleRatio())}_handleTemplateApplying(e){""===e.scaleRatio&&(e.scaleRatio=this._getAdjustedScaleRatio())}_migratePoint(){if(this.points().length0){s=s.normalized();let e=Math.acos(s.x);return s.y>0&&(e=-e),e}return null}}},5094:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,66323)).then(({GannFanPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Gann Fan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,73511))).GannFanDefinitionsViewModel}static createProperties(e){var t=new o("linetoolgannfan",e,!1,{range:[1,9]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)), -e.addChild("linesWidths",new l(t))}}d.LevelsCount=9,t.LineToolGannFan=d},33209:(e,t,i)=>{"use strict";i.d(t,{LineToolGannFixed:()=>l});var s=i(86441),r=i(88537),n=i(89857),o=i(37865),a=i(50301);class l extends n.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._constructor="LineToolGannFixed",i.e(1583).then(i.bind(i,93695)).then(({GannFixedPaneView:e})=>{this._setPaneViews([new e(this,this.model())])}),this.properties().childs().reverse.subscribe(this,this._reversePoints)}pointsCount(){return 2}name(){return"Gann Square Fixed"}axisPoints(){const e=this.points(),t=this.getScreenPoints();return e.length<2||t.length<2?[]:[e[0],(0,r.ensureNotNull)(this.screenPointToPoint(t[1]))]}getScreenPoints(){const e=this.points();if(e.length<2)return[];const t=this._calcAngle();if(null===t)return[];const[i,n]=e,o=(0,r.ensureNotNull)(this.pointToScreenPoint(i)),a=(0,r.ensureNotNull)(this.pointToScreenPoint(n)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),c=new s.Point(Math.cos(t),-Math.sin(t)),h=c.normalized(),d=h.x<0?-1:1,u=h.y<0?-1:1;return[o.addScaled(c,l),o.add(new s.Point(5*l*d,5*l*u))]}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e);const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0&&(o=-o),o}_reversePoints(){const[e,t]=this._points;this._points[0]=t,this._points[1]=e,this.normalizePoints(),this.restart()}}},97433:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(34580).LevelsProperty,n=i(37865).LineToolColorsProperty,o=[4.5,9,11.25,18,22.5,36,45],a=function(){for(var e=[],t=o.length-1,i=1,s=0,r=0;r<1e10;)r=o[s]*i,e.push(Math.round(r)),e.push(Math.ceil(-r)),s===t-1&&(i*=10),s=(s+1)%t;return e.sort((function(e,t){return et?1:0})),e}();class l extends s{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),i.e(1583).then(i.t.bind(i,50527,19)).then(({GannSquarePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return l.HLevelsCount}vLevelsCount(){return l.VLevelsCount}pointsCount(){return 2}name(){return"Gann Box"}_alignPriceOnPattern(e,t){var i=Math.round(1e6*(e.price-t.price))/1e6;if(0===i)return t.price;for(var s=o[0],r=o[o.length-1],n=1,a=Math.abs(i);a=0&&!(o[c]*n=0?l:-l),e}_alignTimeOnPattern(e,t){var i=e.index-t.index;if(0===i)return 0;for(var s=a.length-2;s>=0&&!(a[s]0?1:0,e.index=t.index+a[s],e}_alignPointsFixedIncrement(e,t){return this._alignTimeOnPattern(e,t),this._alignPriceOnPattern(e,t),e}_preparePoint(e,t){return t&&t.shift()&&0!==this._points.length&&this._alignPointsFixedIncrement(e,this._points[0]),super._preparePoint(e,t)}getPoint(e){if(e<2)return super.getPoint(e);var t=null;switch(e){case 2:case 3:var i=this.points();if(i.length===this.pointsCount()){var s=i[0].index,r=i[1].price;3===e&&(s=i[1].index,r=i[0].price),t={index:s,price:r}}}return t}setPoint(e,t,i){if(i&&i.shift()){var s=e%2==0?this._points[1]:this._points[0];this._alignPointsFixedIncrement(t,s)}switch(e){case 2:this._points[0].index=t.index,this._points[1].price=t.price;break;case 3:this._points[1].index=t.index,this._points[0].price=t.price;break;default:super.setPoint(e,t,i)}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,58026))).GannSquareDefinitionsViewModel}static createProperties(e){var t=new r("linetoolgannsquare",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("color"),e.child("fans").child("color")],i=1;i<=l.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(i=1;i<=l.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new n(t)),e.addExclusion("linesColors")}}l.HLevelsCount=7,l.VLevelsCount=7, -t.LineToolGannSquare=l},82241:(e,t,i)=>{"use strict";i.d(t,{LineToolGhostFeed:()=>c});var s=i(88564),r=i(89857),n=i(88537),o=i(80643);class a{constructor(e,t,i){this._source=e,this._segmentIndex=t,this._bars=null!=i?i:[]}setBars(e){this._bars=e}clone(e){return new a(e,this._segmentIndex,(0,o.clone)(this._bars))}generate(){this._bars=[];const e=this._source.points(),t=e[this._segmentIndex],i=e[this._segmentIndex+1];if(!t||!i||t.index===i.index)return;const s=this._segmentIndex?t.index+1:t.index,r=Math.sign(i.index-t.index);for(let e=s;e!==i.index;e+=r)this._bars.push(this._createBar())}bars(){return this._bars}setSize(e){if(e{this._setPaneViews([new t.GhostFeedPaneView(this,e)])})}isSynchronizable(){return!1}destroy(){this.properties().onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),super.destroy()}propertiesChanged(){super.propertiesChanged(),this._currentAverageHL===this.properties().childs().averageHL.value()&&this._currentVariance===this.properties().childs().variance.value()||this._regenerate()}pointsCount(){return-1}name(){return"Ghost Feed"}segmentBars(e){return this._segments[e].bars()}segments(){return this._segments}generateBars(e){this._segments.length<=e&&this._segments.push(new a(this,e)),this._segments[e].generate()}addPoint(e,t,i){if(this._finished)return!0;if(this._points.length>0){const i=this._points[this._points.length-1];if(!(null==t?void 0:t.isApiEvent())&&i.index===e.index){this._lastPoint=null,this.normalizePoints(),this.createServerPoints();for(let e=0;e1&&this.generateBars(this._points.length-2),s}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}setPoint(e,t,i,s){if(super.setPoint(e,t,i),e>0){const i=this.points()[e-1],s=t.index-i.index -;this._segments[e-1].setSize(Math.abs(s))}if(e({bars:[...e.bars()]})),t}restoreData(e){e.segments&&(this._segments=e.segments.map((e,t)=>new a(this,t,e.bars))),this._currentAverageHL=this.properties().childs().averageHL.value(),this._currentVariance=this.properties().childs().variance.value()}onData(e){super.onData(e);if(!this.pointsProperty().childs().points.child("0"))for(let e=0;ee.clone(this))}startMoving(e,t,i,s){super.startMoving(e,t,i,s),this._preparePixelSegments()}move(e,t,i,s){super.move(e,t,i,s),this._restoreSegmentsFromPixels()}endMoving(e,t){return this._segmentsPixelsWhileMoving=null,super.endMoving(e,t)}static createProperties(e){const t=new s.DefaultProperty("linetoolghostfeed",e);return c._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,65818))).GhostFeedDefinitionsViewModel}_handleRestoringFactoryDefaults(){const e=Math.round(this._calculateATR());this.properties().childs().averageHL.setValue(e)}_regenerate(){this._currentAverageHL=this.properties().childs().averageHL.value(),this._currentVariance=this.properties().childs().variance.value(),this._segments.forEach(e=>e.generate()),this.updateAllViews((0,l.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}_calculateATR(){const e=this._model.mainSeries(),t=[];e.bars().each((e,i)=>{const s=i[2],r=i[3];return null!=s&&null!=r&&t.push(s-r),!1});let i=0===t.length?0:t.reduce((e,t)=>e+t,0)/t.length;return i*=e.base(),i}_preparePixelSegments(){var e,t;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===i||null===s||i.isEmpty()||!i.isLog())return;const r=this.points();this._segmentsPixelsWhileMoving=this._segments.map((e,t)=>{const n=r[t].price,o=r[t+1].price,a=i.priceToCoordinate(n,s),l=(i.priceToCoordinate(o,s)-a)/(e.bars().length-1);return{bars:e.bars().map((e,t)=>{const r=a+t*l,n=i.coordinateToPrice(r,s);return{open:i.priceToCoordinate(n+e.o,s)-r,high:i.priceToCoordinate(n+e.h,s)-r,low:i.priceToCoordinate(n+e.l,s)-r,close:i.priceToCoordinate(n+e.c,s)-r}})}})}_restoreSegmentsFromPixels(){var e,t;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===i||null===s||null===this._segmentsPixelsWhileMoving)return;const r=this.points();this._segmentsPixelsWhileMoving.forEach((e,t)=>{const n=this._segments[t],o=r[t].price,a=r[t+1].price,l=i.priceToCoordinate(o,s),c=(i.priceToCoordinate(a,s)-l)/(e.bars.length-1),h=n.bars().map((t,r)=>{ -const n=e.bars[r],o=l+r*c,a=i.coordinateToPrice(o,s);return{...t,o:i.coordinateToPrice(n.open+o,s)-a,h:i.coordinateToPrice(n.high+o,s)-a,l:i.coordinateToPrice(n.low+o,s)-a,c:i.coordinateToPrice(n.close+o,s)-a}});n.setBars(h)})}}},90378:(e,t,i)=>{"use strict";i.d(t,{LineToolHeadAndShoulders:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,75545)).then(t=>{this._setPaneViews([new t.LineToolHeadAndShouldersPaneView(this,e)])})}pointsCount(){return 7}name(){return"Head and Shoulders"}static createProperties(e){const t=new s.DefaultProperty("linetoolheadandshoulders",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor]))}}},65649:(e,t,i)=>{"use strict";i.d(t,{LineToolHighlighter:()=>n});var s=i(88564),r=i(27258);class n extends r.LineToolBrushBase{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s),this._loadPaneViews(e)}smooth(){return this.properties().childs().smooth.value()}name(){return"Highlighter"}static createProperties(e){const t=new s.DefaultProperty("linetoolhighlighter",e);return n._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,19461)).then(e=>e.HighlighterDefinitionsViewModel)}_loadPaneViews(e){i.e(1583).then(i.bind(i,94672)).then(t=>{this._setPaneViews([new t.HighlighterPaneView(this,e)])})}static _configureProperties(e){r.LineToolBrushBase._configureProperties(e)}}},10198:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzLinePriceAxisView:()=>r});var s=i(97938);class r extends s.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.points(),r=this._source.priceScale();if(0===s.length||null===r||r.isEmpty())return;const n=s[0];if(!isFinite(n.price))return;const o=this._source.ownerSource(),a=null!==o?o.firstValue():null;if(null===a)return;const l=this._source.properties().linecolor.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=r.priceToCoordinate(n.price,a),e.text=r.formatPrice(n.price,a),e.visible=!0}}},8877:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzLine:()=>l});var s=i(2015),r=i.n(s),n=i(88564),o=i(89857),a=i(10198);class l extends o.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._priceAxisView=new a.LineToolHorzLinePriceAxisView(this),i.e(1583).then(i.bind(i,8196)).then(({HorzLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}state(e){const t=super.state(e);return t.points&&0!==t.points.length&&(t.points[0].offset=0),t}pointsCount(){return 1}name(){return"Horizontal Line"}priceAxisViews(e,t){ -return this.isSourceHidden()||t!==this.priceScale()||!this._model.selection().isSelected(this)&&!this.properties().childs().showPrice.value()||e!==this._model.paneForSource(this)?null:[this._priceAxisView]}timeAxisViews(){return null}timeAxisPoints(){return[]}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e)}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}denormalizeTimePoints(){this._points=[],this._timePoint.length>0&&this._points.push({price:this._timePoint[0].price,index:0})}clearData(){const e=this._points;super.clearData(),this._points=e}static createProperties(e){const t=new n.DefaultProperty("linetoolhorzline",e);return l._configureProperties(t),t}_getAlertPlots(){return[this.points()[0].price]}_pointsForPointset(){return[]}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,81204)).then(e=>e.HorizontalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(r())("")),e.addExclusion("text")}}},10471:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzRay:()=>l});var s=i(88564),r=i(2015),n=i.n(r),o=i(10198),a=i(89857);class l extends a.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:l.createProperties(),s,r),this._priceAxisView=new o.LineToolHorzLinePriceAxisView(this),i.e(1583).then(i.bind(i,95325)).then(({HorzRayPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Horizontal Ray"}priceAxisViews(e,t){return this.isSourceHidden()||t!==this.priceScale()||!this._model.selection().isSelected(this)&&!this.properties().childs().showPrice.value()||e!==this._model.paneForSource(this)?null:[this._priceAxisView]}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}canHasAlert(){return!0}static createProperties(e){const t=new s.DefaultProperty("linetoolhorzray",e);return l._configureProperties(t),t}_getAlertPlots(){const e=this._points[0],t={index:e.index+1,price:e.price};return[this._linePointsToAlertPlot([e,t],null,!1,!0)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,58148))).HorizontalRayDefinitionsViewModel}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(n())("")),e.addExclusion("text")}}},74468:(e,t,i)=>{"use strict";i.d(t,{LineToolIcon:()=>l});var s=i(88537),r=i(86441),n=i(88564),o=i(89857),a=i(37865);class l extends o.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this.version=1, -document.fonts&&document.fonts.check&&document.fonts.load&&!document.fonts.check("12px FontAwesome")&&document.fonts.load("12px FontAwesome","☺").then(()=>{this._isDestroyed||e.updateSource(this)}),i.e(1583).then(i.bind(i,78583)).then(t=>{this._setPaneViews([new t.IconPaneView(this,e)])})}pointsCount(){return 1}name(){return"Icon"}hasEditableCoordinates(){return!1}getAnchorLimit(){return 80}applyTemplate(e){delete e.icon,super.applyTemplate(e)}getChangePointForSync(e){return null}setPoint(e,t,i){const n=Object.assign({},t),o=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),a=(0,s.ensureNotNull)(this.pointToScreenPoint(n)).subtract(o),l=this.properties().childs();if(0===e||1===e){const t=a.normalized();let i=Math.acos(-t.x);Math.asin(t.y)>0&&(i=2*Math.PI-i),0===e&&(i+=Math.PI),l.angle.setValue(i)}else{const t=a.add(new r.Point(15*(3===e?-1:1),0));l.size.setValue(2*Math.abs(t.x))}}getSourceIcon(){return{type:"text",text:String.fromCharCode(this.properties().childs().icon.value())}}static createProperties(e){const t=new n.DefaultProperty("linetoolicon",e);return l._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80449)).then(e=>e.IconsDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new a.LineToolColorsProperty([e.childs().color])),e.addExclusion("angle")}}},51139:(e,t,i)=>{"use strict";i.d(t,{LineToolInfoLine:()=>n});var s=i(88564),r=i(57649);class n extends r.LineToolTrendLine{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}pointsCount(){return 2}name(){return"Info Line"}static createProperties(e){const t=new s.DefaultProperty("linetoolinfoline",e);return n._configureProperties(t),t}static _configureProperties(e){r.LineToolTrendLine._configureProperties(e)}}},87639:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Inside Pitchfork"}static createProperties(e){var t=new s("linetoolinsidepitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolInsidePitchfork=n},44601:(e,t,i)=>{"use strict";var s;i.r(t),i.d(t,{isMtpPredictorToolName:()=>o,isStudyLineToolName:()=>a,isLineToolName:()=>l,isLineDrawnWithPressedButton:()=>c,isLineToolFinishRequiredWhenCreatedByApi:()=>h,isLineToolDrawWithoutPoints:()=>d,isImageToolName:()=>u,isTextToolName:()=>p});var r=i(72708);const n=new Set([]);function o(e){return n.has(e)}function a(e){return"LineToolRegressionTrend"===e||"LineToolVbPFixed"===e||"LineToolFixedRangeVolumeProfile"===e}function l(e){return e in(s||(s=i.t(r,2)))||a(e)}function c(e){return"LineToolBrush"===e||"LineToolHighlighter"===e}function h(e){return c(e)||"LineToolPath"===e||"LineToolPolyline"===e||"LineToolGhostFeed"===e}function d(e){return"LineToolTweet"===e||"LineToolIdea"===e||"LineToolImage"===e}function u(e){return"LineToolImage"===e} -function p(e){switch(e){case"LineToolBalloon":case"LineToolText":case"LineToolTextAbsolute":case"LineToolCallout":case"LineToolNote":case"LineToolNoteAbsolute":case"LineToolSignpost":return!0}return!1}},50144:(e,t,i)=>{"use strict";i.d(t,{LineDataSourceBase:()=>B});var s=i(86441),r=i(88537),n=i(76422),o=i(98125),a=i(62443),l=i(85733),c=i(2872),h=i.n(c),d=i(2015),u=i.n(d),p=i(37865),_=i(22474),m=i(19528);class g extends(u()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t,e.pointAdded().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)}),e.pointChanged().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)})}value(){const e=this._lineSource.points()[this._pointIndex].price,t=(0,r.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){const i=t.format(e),s=t.parse(i);return s.res?s.value:e}return e}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.price=parseFloat(""+e),this._lineSource.startChanging(this._pointIndex,t),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i)}}var f=i(38015),v=i(29823),S=i(98619),y=i(14791),b=i(37667),w=i(52714),C=i.n(w),P=i(23653),T=i(9315),x=i(36759),I=i(52418),M=i(20838),L=i(80643),A=i(33291),E=i(79680);const k=(0,o.getLogger)("Chart.LineDataSource");class D{constructor(){this._states=[]}start(e){this._states.push(e)}finish(e){const t=(0,r.ensureDefined)(this._states.pop());return s=t,(i=e).length!==s.length?{indexesChanged:!0,pricesChanged:!0}:i.reduce((e,t,i)=>{const r=s[i];return e.indexesChanged=e.indexesChanged||t.index!==r.index,e.pricesChanged=e.pricesChanged||t.price!==r.price,e},{indexesChanged:!1,pricesChanged:!1});var i,s}isEmpty(){return 0===this._states.length}}let V=0;class B extends a.DataSource{constructor(e,t,i,s){if(super(s),this.version=1,this.customization={forcePriceAxisLabel:!1,disableErasing:!1,disableSave:!1,showInObjectsTree:!0},this._currentPointsetAndSymbolId=null,this._pointChanged=new(h()),this._pointAdded=new(h()),this._alertUndoMode=!1,this._priceAxisViews=[],this._timeAxisViews=[],this._timePoint=[],this._points=[],this._lastPoint=null,this._paneViews=new Map,this._normalizedPointsChanged=new(h()),this._fixedPointsChanged=new(h()),this._changeStatesStack=new D,this._startMovingPoint=null,this._currentMovingPoint=null,this._fixedPoints=[],this._isActualSymbol=!1,this._isActualInterval=!1,this._isActualCurrency=!1,this._isActualUnit=!1,this._isDestroyed=!1,this._sharingMode=new(C())(0),this._onTemplateApplying=new(h()),this._onTemplateApplied=new(h()),this._syncStateExclusions=[],this._definitionsViewModel=null,this._syncLineStyleMuted=!1,this._onIsActualIntervalChange=new(h()),this._linkKey=new(C())(null),this._serverUpdateTime=null,this._boundCalcIsActualSymbol=this.calcIsActualSymbol.bind(this),this._model=e,this._properties=t,this._localAndServerAlertsMismatch=!1, -this._properties.hasChild("interval")||this._properties.addChild("interval",new(u())(e.mainSeries().interval())),this.calcIsActualSymbol(),this._properties.childs().intervalsVisibilities.listeners().subscribe(this,this.calcIsActualSymbol),this._properties.subscribe(this,()=>this.propertiesChanged()),this._createPointsProperties(),this.pointsCount()>0)for(let e=0;e{const t=!1===(0,l.hideAllDrawings)().value();e.value()?e.value()&&t&&n.emit("drawing_event",this._id,"show"):(this._model.selection().isSelected(this)&&this._model.selectionMacro(e=>{e.removeSourceFromSelection(this)}),t&&n.emit("drawing_event",this._id,"hide")),this._onSourceHiddenMayChange()}),(0,l.hideAllDrawings)().subscribe(this,this._onSourceHiddenMayChange),this._definitionsViewModel=null,this._isDestroyed=!1}destroy(){this._paneViews.forEach((e,t)=>this._destroyPanePaneViews(t)),this.stop(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),null!==this._ownerSource&&(this._ownerSource.currencyChanged().unsubscribeAll(this),this._ownerSource.unitChanged().unsubscribeAll(this),(0,E.isSymbolSource)(this._ownerSource)&&(this._ownerSource.symbolResolved().subscribe(this,this._boundCalcIsActualSymbol),this._ownerSource.isActingAsSymbolSource().unsubscribe(this._boundCalcIsActualSymbol))),this.ownerSourceChanged().unsubscribeAll(this),(0,l.hideAllDrawings)().unsubscribeAll(this),this.deleteAlert(),this._isDestroyed=!0}createPriceAxisView(e){return new _.LineToolPriceAxisView(this,{pointIndex:e})}model(){return this._model}linkKey(){return this._linkKey}serverUpdateTime(){return this._serverUpdateTime}setServerUpdateTime(e){this._serverUpdateTime=e}boundToSymbol(){return!0}points(){const e=[];for(let t=0;t0&&(this._points=e)}restorePoints(e,t,i){const s=this._timePoint.length>0&&!(0,L.deepEquals)(this._timePoint,e)[0];this._timePoint=(0,S.deepCopy)(e),this._points=t,i||this.denormalizeTimePoints(),s&&this._normalizedPointsChanged.fire()}restorePositionPercents(e){this._positionPercents=e}calcIsActualSymbol(){if(this._model.mainSeries().hasDelayedSymbolIntervalChange())return;const e=this.ownerSource();if(null===e)this._isActualSymbol=!1;else{const t=(0,r.ensureNotNull)(e.symbolSource());this._migrateSymbolProperty();const i=this._properties.childs().symbol,s=i.value();if(this._isActualSymbol=t.symbolSameAsCurrent(s),this._isActualSymbol){const e=t.symbol();(0,y.areEqualSymbols)(s,e)||(k.logWarn('Possible drawing "migrating" detected from "'+s+'" to "'+e+'"'),k.logWarn("Series symbolInfo: "+JSON.stringify(t.symbolInfo())),k.logWarn(""+(new Error).stack)),i.setValue(e)}}this.calcIsActualInterval(),this.calcIsActualCurrency(),this.calcIsActualUnit(),this._onSourceHiddenMayChange()}calcIsActualCurrency(){const e=this.ownerSource();if(null===e)return void(this._isActualCurrency=!1);let t=this._properties.childs().currencyId.value();if(null!==t){const i=e.symbolSource();if(null===i)return;0,this._isActualCurrency=t===(0,b.symbolCurrency)(i.symbolInfo(),void 0,!0)}else{const t=(0,r.ensureNotNull)(e.symbolSource()).symbolInfo();this._isActualCurrency=null!==t&&(0,b.symbolCurrency)(t)===(0,b.symbolOriginalCurrency)(t)}this._onSourceHiddenMayChange()}calcIsActualUnit(){const e=this.ownerSource();if(null===e)return void(this._isActualUnit=!1);const t=this._properties.childs().unitId.value();if(null!==t)this._isActualUnit=t===(0,r.ensureNotNull)(e.symbolSource()).unit();else{const t=(0,r.ensureNotNull)(e.symbolSource()).symbolInfo(),i=this._model.unitConversionEnabled();this._isActualUnit=null!==t&&(0,b.symbolUnit)(t,i)===(0,b.symbolOriginalUnit)(t,i)}this._onSourceHiddenMayChange()}calcIsActualInterval(){const e=this._isActualInterval,t=this._properties,i=this._model.mainSeries();this._isActualInterval=(0,x.isActualInterval)(v.Interval.parse(i.interval()),t.childs().intervalsVisibilities),!this._isActualInterval&&this._model.selection().isSelected(this)&&this._model.selectionMacro(e=>e.removeSourceFromSelection(this)),this._isActualInterval!==e&&this._onIsActualIntervalChange.fire(),this._onSourceHiddenMayChange()}paneViews(e){if(this.isSourceHidden())return null;const t=this._getPaneViews(this.isMultiPaneAvailable()?e:void 0);if(null===t)return null;if(1===t.length)return[t[0]];const i=[];for(let e=t.length-1;e>=0;--e)i.push(t[e]);return i}isSavedInChart(){return!this.customization.disableSave}setSavingInChartEnabled(e){this.customization.disableSave=!e}detachAlert(){const e=this.getAlertSync() -;if(e&&this._alertCallbacks){const t=this._alertCallbacks;e.off("destroy",t.remove),e.off("change:hovered",t.hovered),e.off("change:selected",t.selected)}this.hasAlert.setValue(!1),this._alertId=void 0}removeAlert(){this._alertId=void 0,this.hasAlert.setValue(!1)}deleteAlert(){0}areLocalAndServerAlertsMismatch(){return this._localAndServerAlertsMismatch}showInObjectTree(){return this.customization.showInObjectsTree}setShowInObjectsTreeEnabled(e){this.customization.showInObjectsTree=e}start(){this.createServerPoints()}processHibernate(){this.isSourceHidden()?this.isStarted()&&this.stop():this.isStarted()||this.start()}onData(e){"pointset_error"!==e.method?e.params.customId===this._currentPointsetIdWithPrefix()&&this._onPointsetUpdated(e.params.plots):k.logError(`Error getting pointset: ${e.params[0]} ${e.params[1]}`)}isActualSymbol(){return this._isActualSymbol}isActualCurrency(){return this._isActualCurrency}isActualInterval(){return this._isActualInterval}isActualUnit(){return this._isActualUnit}onIsActualIntervalChange(){return this._onIsActualIntervalChange}setOwnerSource(e){null!==this._ownerSource&&(this._ownerSource.currencyChanged().unsubscribeAll(this),this._ownerSource.unitChanged().unsubscribeAll(this)),null!==this._ownerSource&&(0,E.isSymbolSource)(this._ownerSource)&&(this._ownerSource.symbolResolved().unsubscribe(this,this._boundCalcIsActualSymbol),this._ownerSource.isActingAsSymbolSource().unsubscribe(this._boundCalcIsActualSymbol)),super.setOwnerSource(e),e&&(this.setPriceScale(e.priceScale()),e.currencyChanged().subscribe(this,this.calcIsActualCurrency),e.unitChanged().subscribe(this,this.calcIsActualUnit),this.calcIsActualSymbol(),this._migrateZOrder()),(0,E.isSymbolSource)(e)&&(e.symbolResolved().subscribe(this,this._boundCalcIsActualSymbol),e.isActingAsSymbolSource().subscribe(this._boundCalcIsActualSymbol))}dataAndViewsReady(){return this._paneViews.size>0}pointAdded(){return this._pointAdded}pointChanged(){return this._pointChanged}pointToScreenPoint(e){var t;const i=this._model.timeScale(),r=this.priceScale(),n=null===(t=this.ownerSource())||void 0===t?void 0:t.firstValue();if(!r||r.isEmpty()||i.isEmpty()||null==n)return null;const o=i.indexToCoordinate(e.index),a=r.priceToCoordinate(e.price,n);return new s.Point(o,a)}screenPointToPoint(e){var t;const i=this.priceScale(),s=null===(t=this.ownerSource())||void 0===t?void 0:t.firstValue();if(null==s||!isFinite(s)||null===i)return null;const r=this._model.timeScale().coordinateToIndex(e.x);return{price:i.coordinateToPrice(e.y,s),index:r}}addPoint(e,t,i){const s=this._preparePoint(e,t);return this._addPointIntenal(s,t,i)}propertiesChanged(e){this.calcIsActualInterval(),this.updateAllViewsAndRedraw((0,A.dataSourceChangeEvent)(this.id())),e||this._syncLineStyleIfNeeded(),void 0===this._pendingPropertyChangedEvent&&(this._pendingPropertyChangedEvent=setTimeout(()=>{this._pendingPropertyChangedEvent=void 0,n.emit("drawing_event",this._id,"properties_changed")},0))}state(e){var t,i;const s={type:this.toolname,id:this.id(), -state:this.properties().state(null!==(t=this._propertiesStateExclusions())&&void 0!==t?t:void 0),points:(0,S.deepCopy)(this._timePoint),zorder:this.zorder(),ownerSource:null===(i=this.ownerSource())||void 0===i?void 0:i.id()};return this.linkKey().value()&&(s.linkKey=this.linkKey().value()),delete s.state.points,e&&(s.indexes=this._points),this.isFixed()&&(s.positionPercents=this._positionPercents||this.calcPositionPercents()),"version"in this&&1!==this.version&&(s.version=this.version),this._saveAlertIdInState()&&this.hasAlert.value()&&void 0!==this._alertId&&(s.alertId=this._alertId.toString()),s}updateAllViews(e){this._isActualSymbol&&this._isActualCurrency&&this._isActualUnit&&this._isActualInterval&&this._properties.childs().visible.value()&&(this._updateAllPaneViews(e),this._priceAxisViews.forEach(t=>t.update(e)),this._timeAxisViews.forEach(t=>t.update(e)))}updateAllViewsAndRedraw(e){this.updateAllViews(e),this._model.updateSource(this)}properties(){return this._properties}restoreExternalPoints(e,t){if(this._timePoint=(0,S.deepCopy)(e.points),t.indexesChanged){if(this.properties().childs().interval.setValue(e.interval),!this.isActualSymbol())return this._clearServerPoints(),void this._normalizedPointsChanged.fire();this.createServerPoints()}else{const t=Math.min(this._points.length,e.points.length);for(let i=0;i0&&this.normalizePoints(),!this._readyToCreatePointset())return;const e=this._pointsForPointset();if(0===e.length)return;++V,this._currentPointsetAndSymbolId={pointsetId:V,symbolId:(0,r.ensureNotNull)(this._model.mainSeries().seriesSource().symbolInstanceId())};const t=(0,T.getServerInterval)(this.properties().childs().interval.value());this._model.chartApi().createPointset(this._currentPointsetIdWithPrefix(),"turnaround",this._currentPointsetAndSymbolId.symbolId,t,e,this.onData.bind(this))} -finish(){}realign(){var e;this.calcIsActualSymbol(),this.isFixed()||this.isSourceHidden()||this._model.lineBeingCreated()===this||this._model.lineBeingEdited()===this||(null===(e=this._currentPointsetAndSymbolId)||void 0===e?void 0:e.symbolId)===this._model.mainSeries().seriesSource().symbolInstanceId()||this._clearServerPoints(),this.updateAllViews((0,A.dataSourceChangeEvent)(this.id()))}stop(){this._clearServerPoints()}restart(){this.isFixed()||(this._currentPointsetAndSymbolId=null,this.createServerPoints())}isStarted(){return null!==this._currentPointsetAndSymbolId}convertYCoordinateToPriceForMoving(e,t){var i;const s=(0,r.ensureNotNull)(this.priceScale());if(s.isEmpty())return null;const n=this.ownerSource(),o=(0,r.ensure)(null===(i=n||t)||void 0===i?void 0:i.firstValue());return s.coordinateToPrice(e,o)}syncMultichartState(e){const t={points:this._timePoint,interval:this._model.mainSeries().interval()},i=this.linkKey().value();if(null!==i&&this.isSynchronizable()){const s={model:this._model,linkKey:i,symbol:this._model.mainSeries().symbol(),finalState:t,changes:e};(0,l.finishChangingLineTool)(s)}}enableCurrentIntervalVisibility(){const e=this.properties().childs().intervalsVisibilities.state();void 0!==e&&((0,x.makeIntervalsVisibilitiesVisibleAtInterval)(e,v.Interval.parse(this._model.mainSeries().interval())),this.properties().childs().intervalsVisibilities.mergeAndFire(e))}clonePositionOffset(){return this.isFixed()?{barOffset:0,xCoordOffset:20,yCoordOffset:20}:{barOffset:0,xCoordOffset:0,yCoordOffset:-40}}sharingMode(){return this._sharingMode}share(e){this.isSynchronizable()&&this._sharingMode.setValue(e)}syncLineStyleState(){const e=this.properties().state(this._syncStateExclusions);return delete e.interval,e.intervalsVisibilities=(0,x.mergeIntervalVisibilitiesDefaults)(e.intervalsVisibilities),e}_correctLastPoint(e){return(0,L.clone)(e)}_pointsForPointset(){return this._timePoint.map(e=>[e.time_t,e.offset])}_snapPoint45Degree(e,t,i){const s=this._model.timeScale(),n=s.indexToCoordinate(t.index),o=s.indexToCoordinate(e.index)-n,a=(0,r.ensureNotNull)(this.priceScale()),l=t.price,c=e.price,h=(0,r.ensureNotNull)((0,r.ensureNotNull)(this.ownerSource()).firstValue()),d=a.priceToCoordinate(l,h),u=a.priceToCoordinate(c,h)-d,p=Math.round(Math.atan2(o,u)/Math.PI*4);if(2===Math.abs(p))i||(e.price=l);else if(0===Math.abs(p)||4===Math.abs(p))i||(e.index=t.index);else{const t=Math.sqrt(o*o+u*u),i=o<0?-1:1,r=u<0?-1:1;let l=Math.max(Math.abs(u),Math.abs(o));l/=l*Math.sqrt(2)/t;const c=Math.round(s.coordinateToIndex(n+l*i)),p=Math.abs(s.indexToCoordinate(c)-n),_=a.coordinateToPrice(d+p*r,h);e.index=c,e.price=_}}normalizePoint(e){return{...this._model.timeScale().normalizeBarIndex(e.index),price:e.price}}normalizePoints(){this._timePoint=[];for(let e=0;ethis._destroyPanePaneViews(t)),this._model.lightUpdate()}_getPaneViews(e){return this._paneViews.get(e)||null}_updateAllPaneViews(e){this._paneViews.forEach(t=>{for(const i of t)i.update(e)})}_alignPointHorizontallyOrVertically(e){const t=(0,r.ensureNotNull)(this.pointToScreenPoint(e)),i=(0,r.ensureDefined)((0,r.ensureNotNull)(this._startMovingPoint).logical),s=(0,r.ensureDefined)((0,r.ensureNotNull)(this._startMovingPoint).screen),n=Math.abs(s.x-t.x),o=Math.abs(s.y-t.y);if(n<10&&o<10)return e;return{index:n=1){for(let t=0;t=2&&this._snapTo45DegreesAvailable()&&this._snapPoint45Degree(i,this.points()[this.points().length-2]),i}_addPointIntenal(e,t,i){this._points.push(e);const s=this._points.length===this.pointsCount();return s?(this._lastPoint=null,i||(this.normalizePoints(),this.createServerPoints())):this._lastPoint=e,this._pointAdded.fire(this._points.length-1),s}_onSourceHiddenMayChange(){this._model.invalidate(P.InvalidationMask.validateAction(()=>{this!==this._model.lineBeingCreated()&&(this._isDestroyed||this.processHibernate())}))}_saveAlertIdInState(){return!0}_onPointsetUpdated(e){if(0===e.length)return;for(let t=0;t0}_onAlertData(e){}_propertiesStateExclusions(){return null}_syncLineStyleIfNeeded(){const e=this.linkKey().value();!this._syncLineStyleMuted&&e&&(0,l.changeLineStyle)({linkKey:e,state:this.syncLineStyleState(),model:this._model})}_muteSyncLineStyle(){this._syncLineStyleMuted=!0}_unmuteSyncLineStyleWithoutApplyingChanges(){this.propertiesChanged(),this._syncLineStyleMuted=!1}_applyTemplateImpl(e){e.intervalsVisibilities=(0,x.mergeIntervalVisibilitiesDefaults)(e.intervalsVisibilities);const t=this.properties();t.mergePreferences(e),t.saveDefaults(),this.propertiesChanged()}_getPropertyDefinitionsViewModelClass(){return Promise.resolve(null)}static _configureProperties(e){if(B._addCollectedProperties(e),e.hasChild("symbolStateVersion")||e.addChild("symbolStateVersion",new(u())(B._initialSymbolStateVersion())),e.hasChild("zOrderVersion")||e.addChild("zOrderVersion",new(u())(B._initialZOrderVersion())),e.hasChild("visible")||e.addChild("visible",new(u())(!0)),e.hasChild("frozen")||e.addChild("frozen",new(u())(!1)),e.hasChild("symbol")||e.addChild("symbol",new(u())("")),e.hasChild("currencyId")||e.addChild("currencyId",new(u())(null)),e.hasChild("unitId")||e.addChild("unitId",new(u())(null)),e.addExclusion("symbolStateVersion"),e.addExclusion("zOrderVersion"),e.addExclusion("visible"),e.addExclusion("frozen"),e.addExclusion("symbol"),e.addExclusion("currencyId"),e.addExclusion("unitId"),e.hasChild("intervalsVisibilities")){const t=(0,L.merge)((0,L.clone)(I.intervalsVisibilitiesDefaults),e.childs().intervalsVisibilities.state()) -;e.removeProperty("intervalsVisibilities"),e.addChild("intervalsVisibilities",new M.IntervalsVisibilitiesProperty(t))}else e.addChild("intervalsVisibilities",new M.IntervalsVisibilitiesProperty(I.intervalsVisibilitiesDefaults));e.hasChild("title")||e.addChild("title",new(u())("")),e.addExclusion("symbolInfo"),e.addExclusion("points"),e.addExclusion("interval"),e.addExclusion("title"),e.hasChild("singleChartOnly")&&e.removeProperty("singleChartOnly"),e.hasChild("font")&&e.removeProperty("font")}static _addCollectedProperties(e){e.hasChild("linewidth")&&e.addChild("linesWidths",new p.LineToolWidthsProperty([(0,r.ensureDefined)(e.child("linewidth"))])),e.hasChild("linecolor")&&e.addChild("linesColors",new p.LineToolColorsProperty([(0,r.ensureDefined)(e.child("linecolor"))])),e.hasChild("backgroundColor")&&e.addChild("backgroundsColors",new p.LineToolColorsProperty([(0,r.ensureDefined)(e.child("backgroundColor"))])),e.hasChild("textColor")&&e.addChild("textsColors",new p.LineToolColorsProperty([(0,r.ensureDefined)(e.child("textColor"))])),e.addExclusion("linesWidths"),e.addExclusion("linesColors"),e.addExclusion("backgroundsColors"),e.addExclusion("textsColors")}static _initialSymbolStateVersion(){return 1}static _initialZOrderVersion(){return 1}_destroyPanePaneViews(e){const t=this._paneViews.get(e);if(void 0!==t)for(const e of t)e.destroy&&e.destroy();void 0!==e&&e.onDestroyed().unsubscribeAll(this),this._paneViews.delete(e)}_copyPricesWithoutNormalization(){const e=Math.min(this._points.length,this._timePoint.length);for(let t=0;t{"use strict";i.d(t,{LineDataSourcePointIndexProperty:()=>n});var s=i(2015),r=i.n(s);class n extends(r()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t}value(){return this._lineSource.points()[this._pointIndex].index}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.index=e,this._lineSource.startChanging(this._pointIndex,t),this._setPointImpl(t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i)}_setPointImpl(e){this._lineSource.setPoint(this._pointIndex,e)}}},22474:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceAxisView:()=>n});var s=i(88537),r=i(97938);class n extends r.PriceAxisView{constructor(e,t){super(),this._active=!1,this._source=e,this._data=t,this._properties=e.model().properties().childs().scalesProperties}setActive(e){this._active=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.model();if(!s.timeScale()||s.timeScale().isEmpty())return;const r=this._source.priceScale();if(null===r||r.isEmpty())return;if(!s.selection().isSelected(this._source)&&!this._source.isForcedDrawPriceAxisLabel())return;if(null===s.timeScale().visibleBarsStrictRange())return;const n=this._source.priceAxisPoints(),o=this._data.pointIndex;if(n.length<=o)return;const a=n[o];if(!isFinite(a.price))return;const l=this._source.ownerSource(),c=null!==l?l.firstValue():null -;if(null===c)return;let h=this._data.backgroundPropertyGetter?this._data.backgroundPropertyGetter():null;null===h&&(h=this._getBgColor()),i.background=h,i.borderColor="#2E84A6",i.textColor=this.generateTextColor(h),i.coordinate=r.priceToCoordinate(a.price,c),e.text=this._formatPrice(a.price,c),e.visible=!0}_getBgColor(){return this._active?this._properties.childs().axisLineToolLabelBackgroundColorActive.value():this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}_formatPrice(e,t){return(0,s.ensureNotNull)(this._source.priceScale()).formatPrice(e,t)}}},19528:(e,t,i)=>{"use strict";i.d(t,{LineDataSourceTimeAxisView:()=>r});var s=i(85578);class r extends s.TimeAxisView{constructor(e,t){super(e.model()),this._active=!1,this._source=e,this._pointIndex=t,this._properties=e.model().properties().childs().scalesProperties}setActive(e){this._active=e}_getBgColor(){return this._active?this._properties.childs().axisLineToolLabelBackgroundColorActive.value():this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}_getIndex(){if(!this._model.selection().isSelected(this._source))return null;const e=this._source.timeAxisPoints();return e.length<=this._pointIndex?null:e[this._pointIndex].index}_isVisible(){return!0}}},89857:(e,t,i)=>{"use strict";var s=i(86441).Point,r=i(22474).LineToolPriceAxisView,n=(i(85733),i(29823).Interval),o=i(98125).getLogger("Chart.LineDataSource"),a=i(67337),l=i(60870).lineToolsLocalizedNames,c=a.enabled("datasource_copypaste"),h=i(50144).LineDataSourceBase;class d extends h{isAvailableInFloatingWidget(){return!0}visibilityKeyByInterval(e){var t,i=n.parse(e);return d.IntervalsVisibilities.forEach((function(e){e.kind===i.kind()&&e.from<=i.multiplier()&&e.to>=i.multiplier()&&(t=e.key)})),t}priceScale(){return this._ownerSource?this._ownerSource.m_priceScale:null}symbol(){return this._properties.symbol.value()}isSavedInStudyTemplates(){return!1}fixedPoints(){var e=[];if(this._positionPercents&&!this.priceScale().isEmpty())for(var t=0;t{"use strict";i.r(t),i.d(t,{LineToolMultiplePropertyBaseImpl:()=>l,LineToolCollectedProperty:()=>c,LineToolWidthsProperty:()=>h,LineToolColorsProperty:()=>d,MultipleLineWidthsProperty:()=>p,MultipleLineColorsProperty:()=>_});var s=i(98125),r=i(2872),n=i.n(r);const o=(0,s.getLogger)("Chart.LineToolCollectedProperty");class a{applyValue(e,t){e.setValue(t)}}class l{constructor(e,t){this._onChange=new(n()),this._properties=e,e.forEach(e=>e.subscribe(this,()=>{this._onChange.fire(this)})),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 o.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))}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}}class c extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>s.applyValue(t,e))}}class h extends c{}class d extends c{firstColor(){return this._properties[0].value()}}class u extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>t.setValue(e,void 0,s))}}class p extends u{}class _ extends u{}},72708:(e,t,i)=>{"use strict" -;t.LineToolFibRetracement=i(44860).LineToolFibRetracement,t.LineToolFibChannel=i(48917).LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i(19857).LineToolFibSpeedResistanceArcs,t.LineToolProjection=i(35344).LineToolProjection,t.LineToolTrendBasedFibExtension=i(25861).LineToolTrendBasedFibExtension,t.LineToolElliott=i(97917).LineToolElliott,t.LineToolFibCircles=i(54502).LineToolFibCircles,t.LineToolVertLine=i(51922).LineToolVertLine,t.LineToolCrossLine=i(53193).LineToolCrossLine,t.LineToolBarsPattern=i(98802).LineToolBarsPattern,t.LineToolTrendBasedFibTime=i(6245).LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i(63835).LineToolFibTimeZone,t.LineToolCircleLines=i(49802).LineToolCircleLines,t.LineToolDateRange=i(45669).LineToolDateRange,t.LineToolPriceRange=i(66602).LineToolPriceRange,t.LineToolDateAndPriceRange=i(26215).LineToolDateAndPriceRange,t.LineToolParallelChannel=i(78898).LineToolParallelChannel,t.LineToolTrendAngle=i(86225).LineToolTrendAngle,t.LineToolTrendLine=i(57649).LineToolTrendLine,t.LineToolInfoLine=i(51139).LineToolInfoLine,t.LineToolArrowMark=i(18659).LineToolArrowMark,t.LineToolExecution=i(39593).LineToolExecution,t.LineToolPitchfan=i(18977).LineToolPitchfan,t.LineToolGannSquare=i(97433).LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i(70673).LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i(52870).LineToolGannComplex,t.LineToolGannFixed=i(33209).LineToolGannFixed,t.LineToolGannFan=i(5094).LineToolGannFan,t.LineToolFibWedge=i(41668).LineToolFibWedge,t.LineToolPitchfork=i(40100).LineToolPitchfork,t.LineToolDisjointAngle=i(46512).LineToolDisjointChannel,t.LineToolFlatBottom=i(47047).LineToolFlatBottom,t.LineToolIcon=i(74468).LineToolIcon,t.LineToolRotatedRectangle=i(61272).LineToolRotatedRectangle,t.LineToolFibSpiral=i(29638).LineToolFibSpiral,t.LineToolHeadAndShoulders=i(90378).LineToolHeadAndShoulders,t.LineToolTriangle=i(99092).LineToolTriangle,t.LineToolTrianglePattern=i(53403).LineToolTrianglePattern,t.LineTool5PointsPattern=i(656).LineTool5PointsPattern,t.LineToolThreeDrivers=i(6980).LineToolThreeDrivers,t.LineToolABCD=i(82203).LineToolABCD,t.LineToolPolyline=i(19085).LineToolPolyline,t.LineToolPath=i(48950).LineToolPath,t.LineToolPrediction=i(12346).LineToolPrediction,t.LineToolPriceLabel=i(3113).LineToolPriceLabel,t.LineToolArrowMarker=i(10167).LineToolArrowMarker,t.LineToolNote=i(87517).LineToolNote,t.LineToolNoteAbsolute=i(87517).LineToolNoteAbsolute,t.LineToolSignpost=i(52827).LineToolSignpost,t.LineToolBrush=i(43871).LineToolBrush,t.LineToolArc=i(17337).LineToolArc,t.LineToolCallout=i(95536).LineToolCallout,t.LineToolBalloon=i(57666).LineToolBalloon,t.LineToolText=i(74971).LineToolText,t.LineToolHorzLine=i(8877).LineToolHorzLine,t.LineToolHorzRay=i(10471).LineToolHorzRay,t.LineToolRectangle=i(20258).LineToolRectangle,t.LineToolCircle=i(2039).LineToolCircle,t.LineToolEllipse=i(38430).LineToolEllipse,t.LineToolTimeCycles=i(38513).LineToolTimeCycles,t.LineToolSineLine=i(15718).LineToolSineLine,t.LineToolGhostFeed=i(82241).LineToolGhostFeed, -t.LineToolBezierQuadro=i(30899).LineToolBezierQuadro,t.LineToolBezierCubic=i(47679).LineToolBezierCubic,t.LineToolArrow=i(59358).LineToolArrow,t.LineToolRay=i(31702).LineToolRay,t.LineToolExtended=i(41239).LineToolExtended,t.LineToolSchiffPitchfork=i(98390).LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i(98225).LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i(87639).LineToolInsidePitchfork,t.LineToolTextAbsolute=i(74971).LineToolTextAbsolute,t.LineToolArrowMarkLeft=i(18659).LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i(18659).LineToolArrowMarkRight,t.LineToolArrowMarkUp=i(18659).LineToolArrowMarkUp,t.LineToolArrowMarkDown=i(18659).LineToolArrowMarkDown,t.LineToolFlagMark=i(53342).LineToolFlagMark,t.LineToolCypherPattern=i(980).LineToolCypherPattern,t.LineToolElliottImpulse=i(97917).LineToolElliottImpulse,t.LineToolElliottTriangle=i(97917).LineToolElliottTriangle,t.LineToolElliottTripleCombo=i(97917).LineToolElliottTripleCombo,t.LineToolElliottCorrection=i(97917).LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i(97917).LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i(34291).LineToolRiskRewardLong,t.LineToolRiskRewardShort=i(34291).LineToolRiskRewardShort,t.LineToolPosition=i(2157).LineToolPosition,t.LineToolOrder=i(86858).LineToolOrder,t.LineToolHighlighter=i(65649).LineToolHighlighter,t.LineToolPriceNote=i(7648).LineToolPriceNote},60870:(e,t,i)=>{"use strict";i.d(t,{lineToolsLocalizedNames:()=>r});var s=i(28353);const r={LineTool5PointsPattern:(0,s.t)("XABCD Pattern"),LineToolABCD:(0,s.t)("ABCD Pattern"),LineToolArc:(0,s.t)("Arc"),LineToolArrow:(0,s.t)("Arrow"),LineToolArrowMarkDown:(0,s.t)("Arrow Mark Down"),LineToolArrowMarkLeft:(0,s.t)("Arrow Mark Left"),LineToolArrowMarkRight:(0,s.t)("Arrow Mark Right"),LineToolArrowMarkUp:(0,s.t)("Arrow Mark Up"),LineToolBalloon:(0,s.t)("Balloon"),LineToolBarsPattern:(0,s.t)("Bars Pattern"),LineToolBezierCubic:(0,s.t)("Double Curve"),LineToolBezierQuadro:(0,s.t)("Curve"),LineToolBrush:(0,s.t)("Brush"),LineToolCallout:(0,s.t)("Callout"),LineToolCircleLines:(0,s.t)("Cyclic Lines"),LineToolCypherPattern:(0,s.t)("Cypher Pattern"),LineToolDateAndPriceRange:(0,s.t)("Date and Price Range"),LineToolDateRange:(0,s.t)("Date Range"),LineToolDisjointAngle:(0,s.t)("Disjoint Channel"),LineToolElliottCorrection:(0,s.t)("Elliott Correction Wave (ABC)"),LineToolElliottDoubleCombo:(0,s.t)("Elliott Double Combo Wave (WXY)"),LineToolElliottImpulse:(0,s.t)("Elliott Impulse Wave (12345)"),LineToolElliottTriangle:(0,s.t)("Elliott Triangle Wave (ABCDE)"),LineToolElliottTripleCombo:(0,s.t)("Elliott Triple Combo Wave (WXYXZ)"),LineToolEllipse:(0,s.t)("Ellipse"),LineToolExtended:(0,s.t)("Extended Line"),LineToolFibChannel:(0,s.t)("Fib Channel"),LineToolFibCircles:(0,s.t)("Fib Circles"),LineToolFibRetracement:(0,s.t)("Fib Retracement"),LineToolFibSpeedResistanceArcs:(0,s.t)("Fib Speed Resistance Arcs"),LineToolFibSpeedResistanceFan:(0,s.t)("Fib Speed Resistance Fan"),LineToolFibSpiral:(0,s.t)("Fib Spiral"),LineToolFibTimeZone:(0,s.t)("Fib Time Zone"),LineToolFibWedge:(0, -s.t)("Fib Wedge"),LineToolFlagMark:(0,s.t)("Flag Mark"),LineToolImage:(0,s.t)("Image"),LineToolFlatBottom:(0,s.t)("Flat Top/Bottom"),LineToolAnchoredVWAP:(0,s.t)("Anchored VWAP"),LineToolGannComplex:(0,s.t)("Gann Square"),LineToolGannFixed:(0,s.t)("Gann Square Fixed"),LineToolGannFan:(0,s.t)("Gann Fan"),LineToolGannSquare:(0,s.t)("Gann Box"),LineToolHeadAndShoulders:(0,s.t)("Head and Shoulders"),LineToolHorzLine:(0,s.t)("Horizontal Line"),LineToolHorzRay:(0,s.t)("Horizontal Ray"),LineToolIcon:(0,s.t)("Icon"),LineToolInsidePitchfork:(0,s.t)("Inside Pitchfork"),LineToolNote:(0,s.t)("Note"),LineToolNoteAbsolute:(0,s.t)("Anchored Note"),LineToolSignpost:(0,s.t)("Signpost"),LineToolParallelChannel:(0,s.t)("Parallel Channel"),LineToolPitchfan:(0,s.t)("Pitchfan"),LineToolPitchfork:(0,s.t)("Pitchfork"),LineToolPolyline:(0,s.t)("Polyline"),LineToolPath:(0,s.t)("Path"),LineToolPrediction:(0,s.t)("Forecast"),LineToolPriceLabel:(0,s.t)("Price Label"),LineToolArrowMarker:(0,s.t)("Arrow Marker"),LineToolPriceRange:(0,s.t)("Price Range"),LineToolProjection:(0,s.t)("Projection"),LineToolRay:(0,s.t)("Ray"),LineToolRectangle:(0,s.t)("Rectangle"),LineToolCircle:(0,s.t)("Circle"),LineToolRegressionTrend:(0,s.t)("Regression Trend"),LineToolRiskRewardLong:(0,s.t)("Long Position"),LineToolRiskRewardShort:(0,s.t)("Short Position"),LineToolFixedRangeVolumeProfile:(0,s.t)("Fixed Range Volume Profile"),LineToolRotatedRectangle:(0,s.t)("Rotated Rectangle"),LineToolSchiffPitchfork:(0,s.t)("Modified Schiff Pitchfork"),LineToolSchiffPitchfork2:(0,s.t)("Schiff Pitchfork"),LineToolSineLine:(0,s.t)("Sine Line"),LineToolText:(0,s.t)("Text",{context:"tool"}),LineToolTextAbsolute:(0,s.t)("Anchored Text"),LineToolThreeDrivers:(0,s.t)("Three Drives Pattern"),LineToolTimeCycles:(0,s.t)("Time Cycles"),LineToolTrendAngle:(0,s.t)("Trend Angle"),LineToolTrendBasedFibExtension:(0,s.t)("Trend-Based Fib Extension"),LineToolTrendBasedFibTime:(0,s.t)("Trend-Based Fib Time"),LineToolTrendLine:(0,s.t)("Trend Line"),LineToolInfoLine:(0,s.t)("Info Line"),LineToolTriangle:(0,s.t)("Triangle"),LineToolTrianglePattern:(0,s.t)("Triangle Pattern"),LineToolVertLine:(0,s.t)("Vertical Line"),LineToolCrossLine:(0,s.t)("Cross Line"),LineToolHighlighter:(0,s.t)("Highlighter"),LineToolPriceNote:(0,s.t)("Price Note"),LineToolVbPFixed:(0,s.t)("Volume Profile Fixed Range")};r.LineToolGhostFeed=(0,s.t)("Ghost Feed")},14291:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cloneLineTool:()=>W,createLineTool:()=>E,createLineToolProperties:()=>D,createStudyLineToolProperties:()=>V,getNewToolProperties:()=>A,isLineDrawnWithPressedButton:()=>C.isLineDrawnWithPressedButton,isLineTool:()=>N,isLineToolName:()=>C.isLineToolName,isStudyLineTool:()=>R,isStudyLineToolName:()=>C.isStudyLineToolName,isTrading:()=>O,lineToolByLinkKey:()=>H,prepareLineToolPropertiesByOwnerSource:()=>k,setNewToolProperties:()=>M,supportsPhantomMode:()=>B,tryFindStudyLineToolNameByStudyId:()=>F,unsetNewToolProperties:()=>L}) -;var s=i(88537),r=i(86441),n=i(51934),o=i(89857),a=i(72708),l=i.t(a,2),c=i(2271),h=i(88145),d=i(67072),u=i.n(d),p=i(66101),_=i(37865),m=i(80643),g=i(88564);const f=(0,h.studyIdString)("RegressionTrend","tv-basicstudies");function v(e){return void 0!==e.startPrice&&void 0!==e.endPrice}class S extends n.StudyLineDataSource{constructor(e,t,r,n,o){r=null!=r?r:(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:f}));super(e,r,"linreg_",null!=t?t:S.createProperties(e),n,o),this.version=2,this._trendData=null,i.e(1583).then(i.bind(i,79752)).then(e=>{this._setPaneViews([new e.RegressionTrendPaneView(this,this._model)])})}formatter(){throw new Error("This method should never be called")}pointsCount(){return 2}clearData(){this._trendData=null,super.clearData()}state(e){var t;const i=super.state(e);return e?{...i,nonseriesdata:null!==(t=this._trendData)&&void 0!==t?t:void 0}:i}restoreData(e){var t;super.restoreData(e),this._trendData=null!==(t=e.nonseriesdata)&&void 0!==t?t:null}startIndex(){if(null===this._trendData||null===this._indexes)return null;const e=this._indexes[this._trendData.startIndex];return e!==c.INVALID_TIME_POINT_INDEX?e:null}endIndex(){if(null===this._trendData||null===this._indexes)return null;const e=this._indexes[this._trendData.endIndex];return e!==c.INVALID_TIME_POINT_INDEX?e:null}baseLine(){return null===this._trendData?null:this._trendData.baseLine}downLine(){return null===this._trendData?null:this._trendData.downLine}upLine(){return null===this._trendData?null:this._trendData.upLine}pearsons(){return null===this._trendData?null:this._trendData.pearsons}recalcStudyIfNeeded(){this._onStudyInputsMayChange()}cloneable(){return!1}static createProperties(e,t){const i=u().getStudyPropertyRootNameById(f),r=(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:f})),n=(0,g.createDefaultsState)(!0,i,[],e.studyVersioning());return V("LineToolRegressionTrend",r,r,(0,m.merge)((0,m.clone)(n),null!=t?t:{}),e.studyVersioning())}static createRegressionTrendPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,p.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return S._configureProperties(r),r}static studyId(){return f}_studyInputs(e){(0,s.assert)(2===e.length,"all the line tool points should be defined");const[t,i]=e;if(t.index===i.index)return null;const r=this._getPointTime(t.index<=i.index?t:i,!0),n=this._getPointTime(i.index>=t.index?i:t,!0);return null===r||null===n?(this._subscribeApplyInputsOnSeriesCompleted(),null):{...this.properties().childs().inputs.state(),"first bar time":1e3*r,"last bar time":1e3*n}}_onDataUpdated(e,t,i){null!==t&&(t.indexes_replace||(this._trendData=t.data),"nochange"!==i&&(this._indexes=i),super._onDataUpdated(e,t,i))}_isReady(){return null!==this._trendData&&void 0!==this._trendData.startIndex&&void 0!==this._trendData.endIndex&&v(this._trendData.upLine)&&v(this._trendData.baseLine)&&v(this._trendData.downLine)}_updateAnchorsPrice(){if(!this._trendData||(0,m.isNaN)(this._trendData.baseLine.startPrice)||(0, -m.isNaN)(this._trendData.baseLine.endPrice))return;const{startPrice:e,endPrice:t}=this._trendData.baseLine;2===this._points.length&&(this._points[0].price=(0,s.ensureDefined)(e),this._points[1].price=(0,s.ensureDefined)(t),this._timePoint[0].price=(0,s.ensureDefined)(e),this._timePoint[1].price=(0,s.ensureDefined)(t))}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,96457))).RegressionTrendDefinitionsViewModel}static _configureProperties(e){n.StudyLineDataSource._configureProperties(e);const t=e.childs().styles.childs(),i=[t.upLine.childs().linewidth,t.downLine.childs().linewidth,t.baseLine.childs().linewidth];e.addChild("linesWidths",new _.LineToolWidthsProperty(i))}}var y=i(20299);const b=(0,h.studyIdString)("VbPFixed","tv-basicstudies");class w extends y.LineToolVbPFixed{constructor(e,t,i,s,r,n){const o=i||e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:b});super(e,t,o,s,r,n)}calcIsActualSymbol(){n.StudyLineDataSource.prototype.calcIsActualSymbol.apply(this)}boundToSymbol(){return!0}isSynchronizable(){return this.priceScale()===this._model.mainSeries().priceScale()}static studyId(){return b}static createProperties(e,t){const i=u().getStudyPropertyRootNameById(b),r=(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:b})),n=(0,g.createDefaultsState)(!0,i,[],e.studyVersioning());return V("LineToolFixedRangeVolumeProfile",r,r,(0,m.merge)((0,m.clone)(n),null!=t?t:{}),e.studyVersioning())}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,p.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return w._configureProperties(r),r}}var C=i(44601),P=i(2587),T=i(36759);function x(e){for(const t of Object.keys(e))TradingView[t]=e[t]}x(l),x({LineToolRegressionTrend:S,LineToolVbPFixed:y.LineToolVbPFixed,LineToolFixedRangeVolumeProfile:w});let I=null;function M(e,t,i){return null!==I&&I.tool===e&&I.toolData===t||(I={properties:D(e,void 0,i),tool:e,toolData:t}),I.properties}function L(){I=null}function A(e){return null!==I&&I.tool===e?I.properties:null}function E(e,t,i,r,n,o){let a;if((0,s.assert)((0,C.isLineToolName)(e),"Unknown line tool: "+e),n||i||(i=A(e)||void 0),"LineToolVbPFixed"===e)a=new y.LineToolVbPFixed(t,i,(0,s.ensureDefined)(r),t.mainSeries(),n,o);else if("LineToolFixedRangeVolumeProfile"===e)a=new w(t,i,(0,s.ensureDefined)(r),t.mainSeries(),n,o);else if("LineToolRegressionTrend"===e)a=new S(t,i,(0,s.ensureDefined)(r),n,o);else{a=new((0,s.ensureDefined)(l[e]))(t,i,n,o)}return a.toolname=e,L(),a}function k(e,t){const i=(0,s.ensureNotNull)(t.symbolSource());e.childs().symbol.setValue(i.symbol()),i.model().currencyConversionEnabled()&&e.childs().currencyId.setValue(i.currency()),i.model().unitConversionEnabled()&&e.childs().unitId.setValue(i.unit()),e.childs().symbolStateVersion.setValue(2),e.childs().zOrderVersion.setValue(2)}function D(e,t,i){if((0,s.assert)((0,C.isLineToolName)(e),e+" should be name of the line tool"), -"LineToolVbPFixed"===e)return y.LineToolVbPFixed.createProperties(i,t);if("LineToolFixedRangeVolumeProfile"===e)return w.createProperties(i,t);if("LineToolRegressionTrend"===e)return S.createProperties(i,t);return(0,s.ensureDefined)(l[e]).createProperties(t)}function V(e,t,i,r,n){if((0,s.assert)((0,C.isStudyLineToolName)(e),e+" should be name of the study line tool"),"LineToolVbPFixed"===e)return y.LineToolVbPFixed.createPropertiesFromStudyMetaInfoAndState(t,i,r,n);if("LineToolFixedRangeVolumeProfile"===e)return w.createPropertiesFromStudyMetaInfoAndState(t,i,r,n);if("LineToolRegressionTrend"===e)return S.createRegressionTrendPropertiesFromStudyMetaInfoAndState(t,i,r,n);throw new Error("Property creation is not implemented for study line tool "+e)}function B(e){(0,s.assert)((0,C.isLineToolName)(e),e+" should be name of the line tool");const t=l[e];return void 0!==t&&Boolean(t.supportPhantomMode)}function N(e){return e instanceof o.LineDataSource}function R(e){return e instanceof n.StudyLineDataSource}function O(e){return e instanceof P.LineToolTrading}function F(e){let t=null;return e===S.studyId()?t="LineToolRegressionTrend":e===y.LineToolVbPFixed.studyId()?t="LineToolVbPFixed":e===w.studyId()&&(t="LineToolFixedRangeVolumeProfile"),t}function W(e,t,i,n){const o=t.toolname,a=t.properties().state();a.intervalsVisibilities=(0,T.mergeIntervalVisibilitiesDefaults)(null==a?void 0:a.intervalsVisibilities);const l=D(t.toolname,a,e);l.childs().visible.setValue(!0);const c=(0,s.ensureNotNull)(t.ownerSource()),h=E(o,e,l);void 0!==n&&h.setId(n),h.setOwnerSource(c),h.toolname=o;const d=h.clonePositionOffset(),u=t.fixedPoints();(i?u.map(e=>e.add(new r.Point(d.xCoordOffset,d.yCoordOffset))):u).forEach(e=>h.addFixedPoint(e));const p=t.normalizedPoints(),_=i?function(e,t,i){const r=(0,s.ensureNotNull)(t.priceScale()),n=(0,s.ensureNotNull)(t.firstValue());return e.map(e=>{const t=e.price,s=r.priceToCoordinate(t,n)+i.yCoordOffset,o=r.coordinateToPrice(s,n);return{time_t:e.time_t,price:o,offset:e.offset+i.barOffset}})}(p,c,d):p,m=t.points();return h.restorePoints(_,m),h.cloneData&&h.cloneData(t),h.checkAlert&&h.checkAlert(),h}function H(e,t){var i;return null!==(i=e.dataSources().find(e=>N(e)&&e.linkKey().value()===t))&&void 0!==i?i:null}},87517:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(89857).LineDataSource,n=i(2015),o=i(88564).DefaultProperty;class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this.version=a.version,i.e(1583).then(i.bind(i,99578)).then(({NotePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Note"}getTooltipWidth(){return a.TOOLTIP_WIDTH}getTooltipPadding(){return a.TOOLTIP_PADDING}getTooltipLineSpacing(){return a.TOOLTIP_LINESPACING}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static createProperties(e){ -void 0!==e&&void 0!==e.markerColor&&void 0===e.borderColor&&(e.borderColor=e.markerColor);var t=new o("linetoolnote",e);return a._configureProperties(t),t}state(e){var t=r.prototype.state.call(this,e);return e&&(t.state.fixedSize=!1),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,55510))).NoteDefinitionsViewModel}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new n(s("Text"))),e.addExclusion("text")}}a.TOOLTIP_WIDTH=300,a.TOOLTIP_PADDING=10,a.TOOLTIP_LINESPACING=5,a.version=1;class l extends a{constructor(e,t){super(e,t||l.createProperties())}title(){return s("Anchored Note")}name(){return"Anchored Note"}isFixed(){return!0}hasEditableCoordinates(){return!1}static createProperties(e){var t=new o("linetoolnoteabsolute",e);return l._configureProperties(t),t}static _configureProperties(e){a._configureProperties(e)}}t.LineToolNote=a,t.LineToolNoteAbsolute=l},86858:(e,t,i)=>{"use strict";var s=i(2587).LineToolTrading,r=i(22474).LineToolPriceAxisView,n=i(53664),o=i(89857).LineDataSource,a=i(88564).DefaultProperty;const l=i(67337);var c=i(59555).sortSourcesPreOrdered.LineToolOrder;function h(e){return null==e?e="":e+="",e}class d{constructor(e){this._line=e,this._data={bodyText:"order",quantityText:"0"},this._editable=!0,this._cancellable=!0,this._mode="",this._direction="buy",this._active=!0}setMode(e){return this._mode=e,this._line.updateAllViewsAndRedraw(),this}setDirection(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this}setActive(e){return this._active=e,this._line.updateAllViewsAndRedraw(),this}setEditable(e){return this._editable=e,this._line.updateAllViewsAndRedraw(),this}getEditable(){return this._editable}setCancellable(e){return this._cancellable=e,this._line.updateAllViewsAndRedraw(),this}getCancellable(){return this._cancellable}hasMoveCallback(){return this.isFunction(this._onMoveCallback)}hasModifyCallback(){return this.isFunction(this._onModifyCallback)}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){return this._line.properties().tooltip.setValue(h(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setModifyTooltip(e){return this._line.properties().modifyTooltip.setValue(h(e)),this}getModifyTooltip(){return this._line.properties().modifyTooltip.value()}setCancelTooltip(e){return this._line.properties().cancelTooltip.setValue(h(e)),this}getCancelTooltip(){return this._line.properties().cancelTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){ -return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this}getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()}setLineColor(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this}setLineActiveBuyColor(e){return this._line.properties().lineActiveBuyColor.setValue(e),this}setLineInactiveBuyColor(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this}setLineActiveSellColor(e){return this._line.properties().lineActiveSellColor.setValue(e),this}setLineInactiveSellColor(e){return this._line.properties().lineInactiveSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()}setBodyBorderColor(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this}setBodyBorderActiveBuyColor(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this}setBodyBorderInactiveBuyColor(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this}setBodyBorderActiveSellColor(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this}setBodyBorderInactiveSellColor(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this}getBodyBackgroundColor(){return n.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){ -var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()}setBodyTextColor(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this}setBodyTextInactiveLimitColor(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this}setBodyTextActiveLimitColor(e){return this._line.properties().bodyTextActiveLimitColor.setValue(e),this}setBodyTextInactiveStopColor(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this}setBodyTextActiveStopColor(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this}setBodyTextInactiveBuyColor(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this}setBodyTextActiveBuyColor(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this}setBodyTextInactiveSellColor(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this}setBodyTextActiveSellColor(e){return this._line.properties().bodyTextActiveSellColor.setValue(e),this}getBodyFont(){return n.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return n.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()}setQuantityBorderColor(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this}setQuantityBorderActiveBuyColor(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this}setQuantityBorderInactiveBuyColor(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this}setQuantityBorderActiveSellColor(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this}setQuantityBorderInactiveSellColor(e){ -return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this}setQuantityBackgroundActiveBuyColor(e){return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this}setQuantityBackgroundInactiveBuyColor(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this}setQuantityBackgroundActiveSellColor(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this}setQuantityBackgroundInactiveSellColor(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this}getQuantityTextColor(){return n.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return n.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return n.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){return n.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getCancelButtonBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()}setCancelButtonBorderColor(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this}setCancelButtonBorderActiveBuyColor(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this}setCancelButtonBorderInactiveBuyColor(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this}setCancelButtonBorderActiveSellColor(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this}setCancelButtonBorderInactiveSellColor(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this}getCancelButtonBackgroundColor(){ -return n.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)}setCancelButtonBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this}getCancelButtonIconColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()}setCancelButtonIconColor(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this}setCancelButtonIconActiveBuyColor(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this}setCancelButtonIconInactiveBuyColor(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this}setCancelButtonIconActiveSellColor(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this}setCancelButtonIconInactiveSellColor(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}getBlocked(){return this._blocked}isFunction(e){return"function"==typeof e}onCancel(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this}callOnCancel(){this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)}isOnCancelCallbackPresent(){return this.isFunction(this._onCancelCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onMove(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this}callOnMove(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class u extends s{constructor(e,t){super(e,t||u.createProperties()),this._adapter=new d(this),this.setSelectionEnabled(!0),i.e(1583).then(i.bind(i,45175)).then(({OrderPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return c} -isSpeciallyZOrderedSource(){return!0}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Order"}endMoving(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;super.endMoving(),!e&&t&&this._adapter.callOnMove()}createPriceAxisView(e){var t={pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()};return this._priceAxisView=new r(this,t),this._priceAxisView}paneViews(){return TradingView.printing&&!l.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.paneViews.call(this):null}priceAxisViews(e,t){return TradingView.printing&&!l.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.priceAxisViews.call(this,e,t):null}adapter(){return this._adapter}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}movable(){return Boolean(this._adapter._onMoveCallback)}static createProperties(e){var t=new a("linetoolorder",e,!1,!1);return u._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolOrder=u},78898:(e,t,i)=>{"use strict";i.d(t,{LineToolParallelChannel:()=>c});var s=i(88537),r=i(86441),n=i(88564),o=i(85733),a=i(89857),l=i(80643);class c extends a.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this._priceAxisViews.push(this.createPriceAxisView(3)),this._coordOffsetWhileMovingOrChanging=null,this._pendingPriceOffset=null,i.e(1583).then(i.bind(i,74143)).then(({ParallelChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}paneViews(e){return null!==this._pendingPriceOffset&&this._applyPendingPriceOffset(),super.paneViews(e)}setLastPoint(e,t){t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[0]);const i=(0,l.clone)(e);return super.setLastPoint(e),i}startMoving(e,t,i,s){super.startMoving(e,t,i,s),this._coordOffsetWhileMovingOrChanging=this._findPixelsHeight()}endMoving(e,t,i){return this._coordOffsetWhileMovingOrChanging=null,super.endMoving(e,t,i)}startChanging(e,t){super.startChanging(e,t),this._coordOffsetWhileMovingOrChanging=this._findPixelsHeight()}endChanging(e,t,i){return this._coordOffsetWhileMovingOrChanging=null,super.endChanging(e,t)}restoreExternalPoints(e,t,i){const s=i?e.points:this._timePoint.map((t,i)=>({price:t.price,offset:e.points[i].offset,time_t:e.points[i].time_t}));if(super.restoreExternalPoints({...e,points:s},t),t.pricesChanged&&this._points.length===s.length)for(let e=0;e=4)return;this._snapPointBeforeChange(e,t,i);const a=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),c=(0, -s.ensureNotNull)(this.pointToScreenPoint(t)),h=(0,s.ensureNotNull)(this._coordOffsetWhileMovingOrChanging),d=(0,s.ensureNotNull)(this.priceScale()),u=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue());switch(e){case 0:super.setPoint(e,t,i),this._points[2].price=d.coordinateToPrice(c.y+h,u);break;case 1:super.setPoint(e,t,i);break;case 2:super.setPoint(e,t,i),this._points[0].price=d.coordinateToPrice(c.y-h,u),this._points[0].index=t.index;break;case 3:this._points[1].price=d.coordinateToPrice(c.y-h,u),this._points[1].index=t.index;break;case 4:{const e=l.subtract(a),t=(c.x-a.x)/e.x,i=a.addScaled(e,t),s=c.y-i.y;this._points[2].price=d.coordinateToPrice(a.y+s,u);break}case 5:{const e=l.subtract(a),t=(c.x-a.x)/e.x,i=a.addScaled(e,t),s=c.y-i.y;this._points[0].price=d.coordinateToPrice(a.y+s,u),this._points[1].price=d.coordinateToPrice(l.y+s,u);break}}const p=this.linkKey().value();if(p&&!r&&e<4){const e=this._points.map(e=>e.price);(0,o.changeLineStyle)({model:this._model,linkKey:p,state:{prices:e}})}}state(e){const t=a.LineDataSource.prototype.state.call(this,e);return this._pendingPriceOffset&&(t.priceOffset=this._pendingPriceOffset),t}restoreExternalState(e){const t={...e};if(t.prices&&this.isActualSymbol())for(let e=0;ee.index<=t.index?[e,t]:[t,e],s=i(t[0],t[1]),r=i(t[2],t[3]);let n,o,a,l;t[2].price{"use strict";i.d(t,{LineToolPath:()=>c});var s=i(88537),r=i(86441),n=i(88564),o=i(49094),a=i(89857),l=i(37865);class c extends a.LineDataSource{constructor(e,t,s,r){const n=t||c.createProperties();super(e,n,s,r),this._finished=!1,i.e(1583).then(i.bind(i,10155)).then(t=>{this._setPaneViews([new t.PathPaneView(this,e)])})}pointsCount(){return-1}name(){return"Path"}hasEditableCoordinates(){return!1}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}addPoint(e,t,i){var n;if(this._finished)return!0;const a=(0, -s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),d=a.priceToCoordinate(c,h);if(this._points.length>0){const e=this._points[this._points.length-1],i=this._model.timeScale().indexToCoordinate(e.index),s=e.price,n=a.priceToCoordinate(s,h),c=new r.Point(l,d).subtract(new r.Point(i,n)).length();if(!(null==t?void 0:t.isApiEvent())&&c<(0,o.interactionTolerance)().minDistanceBetweenPoints)return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}return super.addPoint(e,t,i)}static createProperties(e){const t=new n.DefaultProperty("linetoolpath",e);return c._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,4283)).then(e=>e.PathDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addChild("linesWidths",new l.LineToolWidthsProperty([(0,s.ensureDefined)(e.child("lineWidth"))])),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().lineColor]))}}},18977:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,92669)).then(({PitchfanLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Pitchfan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34879))).PitchBaseDefinitionsViewModel}static createProperties(e){var t=new o("linetoolpitchfan",e,!1,{range:[0,8]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],s=0;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=8,t.LineToolPitchfan=d},30823:(e,t,i)=>{"use strict";var s;i.d(t,{LineToolPitchforkStyle:()=>s}),function(e){e[e.Original=0]="Original",e[e.Schiff=1]="Schiff",e[e.Inside=2]="Inside",e[e.Schiff2=3]="Schiff2"}(s||(s={}))},40100:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(28296).Action,l=i(62060).ACTION_ID,c=i(30823).LineToolPitchforkStyle,h=null,d=i(37865),u=d.LineToolWidthsProperty,p=d.LineToolColorsProperty,_=new r("erase level line",s("erase level line")),m=new r("change {title} style",s("change {title} style"));class g extends n{constructor(e,t,i,s){super(e,t||g.createProperties(),i,s), -this._properties.style.listeners().subscribe(this,g.prototype._recreatePaneView),this._recreatePaneView()}levelsCount(){return g.LevelsCount}additionalActions(e){for(var t=[],i=[{title:s("Original"),actionId:l.ChartLineToolPitchforkChangeTypeToOriginal},{title:s("Modified Schiff"),actionId:l.ChartLineToolPitchforkChangeTypeToModifiedSchiff},{title:s("Inside"),actionId:l.ChartLineToolPitchforkChangeTypeToInside},{title:s("Schiff"),actionId:l.ChartLineToolPitchforkChangeTypeToSchiff}],n=0;n<4;n++){var o=new a({actionId:i[n].actionId,checked:this.properties().style.value()===n,checkable:!0,label:i[n].title,payload:{target:this,value:n},onExecute:function(t){var i=t.getPayload(),s=i.target;e.setProperty(s.properties().style,i.value,m.format({title:new r(s.name(),s.title())})),s.updateAllViews(),s._model.updateSource(s)}});t.push(o)}return[t[0],t[3],t[1],t[2]]}_recreatePaneView(){if(null!==h){var e=[];this._properties.style.value()===c.Original?e=[new h.PitchforkLinePaneView(this,this._model)]:this._properties.style.value()===c.Schiff?e=[new h.SchiffPitchforkLinePaneView(this,this._model)]:this._properties.style.value()===c.Schiff2?e=[new h.SchiffPitchfork2LinePaneView(this,this._model)]:this._properties.style.value()===c.Inside&&(e=[new h.InsidePitchforkLinePaneView(this,this._model)]),this._setPaneViews(e)}else i.e(1583).then(i.bind(i,41829)).then(e=>{null===h&&(h=e),this._recreatePaneView()})}pointsCount(){return 3}name(){return"Pitchfork"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,_)}static createProperties(e){var t=new o("linetoolpitchfork",e,!1,{range:[0,8]});return g._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,84806))).PitchForkDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],s=0;s<=g.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new p(i)),e.addChild("linesWidths",new u(t))}}g.LevelsCount=8,t.LineToolPitchfork=g},19085:(e,t,i)=>{"use strict";i.d(t,{LineToolPolyline:()=>l});var s=i(88537),r=i(86441),n=i(88564),o=i(49094),a=i(89857);class l extends a.LineDataSource{constructor(e,t,s,r){const n=t||l.createProperties();super(e,n,s,r),this._finished=!1,i.e(1583).then(i.bind(i,95907)).then(t=>{this._setPaneViews([new t.PolylinePaneView(this,e)])})}pointsCount(){return-1}name(){return"Polyline"}hasEditableCoordinates(){return!1}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}addPoint(e,t,i){var n;if(this._finished)return!0;const a=(0,s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),d=a.priceToCoordinate(c,h),u=(0,o.interactionTolerance)().minDistanceBetweenPoints;if(this._points.length>0){ -const e=this._points[this._points.length-1],i=this._model.timeScale().indexToCoordinate(e.index),s=e.price,n=a.priceToCoordinate(s,h),o=new r.Point(l,d).subtract(new r.Point(i,n)).length();if(!(null==t?void 0:t.isApiEvent())&&oe.PolylinesDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addExclusion("filled")}}},96295:(e,t,i)=>{"use strict";i.d(t,{PositionAveragePriceAxisView:()=>r});var s=i(22474);class r extends s.LineToolPriceAxisView{_formatPrice(e,t){return this._source.formatter().format(e)}}},2157:(e,t,i)=>{"use strict";var s=i(2587).LineToolTrading,r=i(89857).LineDataSource,n=i(96295).PositionAveragePriceAxisView,o=i(53664),a=i(88564).DefaultProperty,l=i(97098).PriceFormatter;const c=i(67337);var h=i(59555).sortSourcesPreOrdered.LineToolPosition;function d(e){return null==e?e="":e+="",e}class u{constructor(e){this._line=e,this._data={bodyText:"position",quantityText:"0"},this._closeEnabled=!0,this._direction="buy",this._profitState="neutral"}setDirection(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this}setProfitState(e){return this._profitState=e,this._line.updateAllViewsAndRedraw(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){ -return this._line.properties().tooltip.setValue(d(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setProtectTooltip(e){return this._line.properties().protectTooltip.setValue(d(e)),this}getProtectTooltip(){return this._line.properties().protectTooltip.value()}setCloseTooltip(e){return this._line.properties().closeTooltip.setValue(d(e)),this}getCloseTooltip(){return this._line.properties().closeTooltip.value()}setReverseTooltip(e){return this._line.properties().reverseTooltip.setValue(d(e)),this}getReverseTooltip(){return this._line.properties().reverseTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this}getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return("buy"===this._direction?e.lineBuyColor:e.lineSellColor).value()}setLineColor(e){return"buy"===this._direction?this.setLineBuyColor(e):this.setLineSellColor(e),this}setLineBuyColor(e){return this._line.properties().lineBuyColor.setValue(e),this}setLineSellColor(e){return this._line.properties().lineSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.bodyBorderBuyColor:e.bodyBorderSellColor).value()}setBodyBorderColor(e){return"buy"===this._direction?this.setBodyBorderBuyColor(e):this.setBodyBorderSellColor(e),this}setBodyBorderBuyColor(e){return this._line.properties().bodyBorderBuyColor.setValue(e),this}setBodyBorderSellColor(e){return this._line.properties().bodyBorderSellColor.setValue(e),this}getBodyBackgroundColor(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){var e=this._line.properties();return("positive"===this._profitState?e.bodyTextPositiveColor:"negative"===this._profitState?e.bodyTextNegativeColor:e.bodyTextNeutralColor).value()}setBodyTextColor(e){ -return"positive"===this._profitState?this.setBodyTextPositiveColor(e):"negative"===this._profitState?this.setBodyTextNegativeColor(e):this.setBodyTextNeutralColor(e),this}setBodyTextPositiveColor(e){return this._line.properties().bodyTextPositiveColor.setValue(e),this}setBodyTextNegativeColor(e){return this._line.properties().bodyTextNegativeColor.setValue(e),this}setBodyTextNeutralColor(e){return this._line.properties().bodyTextNeutralColor.setValue(e),this}getBodyFont(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBorderBuyColor:e.quantityBorderSellColor).value()}setQuantityBorderColor(e){return"buy"===this._direction?this.setQuantityBorderBuyColor(e):this.setQuantityBorderSellColor(e),this}setQuantityBorderBuyColor(e){return this._line.properties().quantityBorderBuyColor.setValue(e),this}setQuantityBorderSellColor(e){return this._line.properties().quantityBorderSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBackgroundBuyColor:e.quantityBackgroundSellColor).value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this.setQuantityBackgroundBuyColor(e):this.setQuantityBackgroundSellColor(e),this}setQuantityBackgroundBuyColor(e){return this._line.properties().quantityBackgroundBuyColor.setValue(e),this}setQuantityBackgroundSellColor(e){return this._line.properties().quantityBackgroundSellColor.setValue(e),this}getQuantityTextColor(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getReverseButtonBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonBorderBuyColor:e.reverseButtonBorderSellColor).value()}setReverseButtonBorderColor(e){return"buy"===this._direction?this.setReverseButtonBorderBuyColor(e):this.setReverseButtonBorderSellColor(e),this}setReverseButtonBorderBuyColor(e){return this._line.properties().reverseButtonBorderBuyColor.setValue(e),this}setReverseButtonBorderSellColor(e){ -return this._line.properties().reverseButtonBorderSellColor.setValue(e),this}getReverseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency)}setReverseButtonBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency),this}getReverseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonIconBuyColor:e.reverseButtonIconSellColor).value()}setReverseButtonIconColor(e){return"buy"===this._direction?this.setReverseButtonIconBuyColor(e):this.setReverseButtonIconSellColor(e),this}setReverseButtonIconBuyColor(e){return this._line.properties().reverseButtonIconBuyColor.setValue(e),this}setReverseButtonIconSellColor(e){return this._line.properties().reverseButtonIconSellColor.setValue(e),this}getCloseButtonBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonBorderBuyColor:e.closeButtonBorderSellColor).value()}setCloseButtonBorderColor(e){return"buy"===this._direction?this.setCloseButtonBorderBuyColor(e):this.setCloseButtonBorderSellColor(e),this}setCloseButtonBorderBuyColor(e){return this._line.properties().closeButtonBorderBuyColor.setValue(e),this}setCloseButtonBorderSellColor(e){return this._line.properties().closeButtonBorderSellColor.setValue(e),this}getCloseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency)}setCloseButtonBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency),this}getCloseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonIconBuyColor:e.closeButtonIconSellColor).value()}setCloseButtonIconColor(e){return"buy"===this._direction?this.setCloseButtonIconBuyColor(e):this.setCloseButtonIconSellColor(e),this}setCloseButtonIconBuyColor(e){return this._line.properties().closeButtonIconBuyColor.setValue(e),this}setCloseButtonIconSellColor(e){return this._line.properties().closeButtonIconSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}isFunction(e){return"function"==typeof e}onReverse(e,t){return t?this.isFunction(t)&&(this._onReverseData=e,this._onReverseCallback=t):this.isFunction(e)&&(this._onReverseCallback=e),this}callOnReverse(){this.isFunction(this._onReverseCallback)&&this._onReverseCallback.call(this,this._onReverseData)}isOnReverseCallbackPresent(){return this.isFunction(this._onReverseCallback)}onClose(e,t){return t?this.isFunction(t)&&(this._onCloseData=e,this._onCloseCallback=t):this.isFunction(e)&&(this._onCloseCallback=e),this}setCloseEnabled(e){return this._closeEnabled===e||(this._closeEnabled=e, -this._onCloseCallback&&this._line.updateAllViewsAndRedraw()),this}isCloseEnabled(){return this._closeEnabled}callOnClose(){this.isFunction(this._onCloseCallback)&&this._closeEnabled&&this._onCloseCallback.call(this,this._onCloseData)}isOnCloseCallbackPresent(){return this._closeEnabled&&this.isFunction(this._onCloseCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class p extends s{constructor(e,t){super(e,t||p.createProperties()),this._adapter=new u(this),i.e(1583).then(i.t.bind(i,69127,19)).then(({PositionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])});var s=e.mainSeries().symbolInfo(),r=null!==s?s.pricescale:100,n=null!==s&&s.fractional?s.minmov:1,o=null!==s&&s.fractional,a=null!==s?s.minmove2:void 0;this._formatter=new l(r,n,o,a)}zorder(){return h}isSpeciallyZOrderedSource(){return!0}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Position"}createPriceAxisView(e){return this._priceAxisView=new n(this,{pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()}),this._priceAxisView}paneViews(){return TradingView.printing&&!c.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.paneViews.call(this):null}priceAxisViews(e,t){return TradingView.printing&&!c.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.priceAxisViews.call(this,e,t):null}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}formatter(){return this._formatter}static createProperties(e){var t=new a("linetoolposition",e,!1,!1);return p._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolPosition=p},19582:(e,t,i)=>{"use strict";var s,r;i.r(t),i.d(t,{AlertStatus:()=>s,Direction:()=>r}),function(e){e[e.Waiting=0]="Waiting",e[e.Success=1]="Success",e[e.Failure=2]="Failure"}(s||(s={})),function(e){e[e.Up=1]="Up",e[e.Down=2]="Down"}(r||(r={}))},12346:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(89857).LineDataSource,n=i(88564).DefaultProperty,o=i(19582);class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this._predictionPaneView=null;const n=this._model.mainSeries() -;n.properties().interval.subscribe(this,()=>{this.setStatus(o.AlertStatus.Waiting)}),n.dataEvents().dataUpdated().subscribe(this,this.checkAlert),i.e(1583).then(i.t.bind(i,58090,19)).then(({PredictionPaneView:e})=>{this._predictionPaneView=new e(this,this._model),this._setPaneViews([this._predictionPaneView])})}destroy(){const e=this._model.mainSeries();e.properties().interval.unsubscribeAll(this),e.dataEvents().dataUpdated().unsubscribeAll(this),super.destroy()}dataAndViewsReady(){return r.prototype.dataAndViewsReady.call(this)&&this._predictionPaneView&&this._predictionPaneView.iconsReady()}isSynchronizable(){return!1}status(){return this._properties.status.value()}setStatus(e){return this._properties.status.setValue(e)}pointsCount(){return 2}name(){return"Forecast"}restorePoints(e,t,i){super.restorePoints(e,t,i),this.checkAlert()}checkAlert(){if(!this.isSourceHidden()&&!(this._points.length<2||this._model.mainSeries().bars().isEmpty())){var e=this._points[1];if(this.status())e.index>this._model.timeScale().baseIndex()&&this.setStatus(o.AlertStatus.Waiting);else{var t=this._model.mainSeries().bars().valueAt(e.index);if(null!==t){var i=this.direction();if(i===o.Direction.Up&&t[TradingView.HIGH_PLOT]>=e.price)this.setStatus(o.AlertStatus.Success);else if(i===o.Direction.Down&&t[TradingView.LOW_PLOT]<=e.price)this.setStatus(o.AlertStatus.Success);else{var r=s(this._model.mainSeries().bars().lastIndex());e.index!==r&&this.setStatus(o.AlertStatus.Failure)}}}}}addPoint(e){var t=r.prototype.addPoint.call(this,e);return t&&this.checkAlert(),t}endChanging(){super.endChanging(),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}onData(e){super.onData(e),this.checkAlert()}endMoving(e,t,i){super.endMoving(e,t,i),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}direction(){if(this.points().length<2)return o.Direction.Up;var e=this.points()[0];return this.points()[1].price>e.price?o.Direction.Up:o.Direction.Down}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,53697))).PredictionDefinitionsViewModel}cloneable(){return!1}static createProperties(e){var t=new n("linetoolprediction",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.merge({status:o.AlertStatus.Waiting})}}t.LineToolPrediction=a},3113:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty,n=i(37865).LineToolColorsProperty;class o extends s{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,69741,19)).then(({PriceLabelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Price Label"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,61641))).PriceLabelDefinitionsViewModel}static createProperties(e){var t=new r("linetoolpricelabel",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e), -e.addChild("linesColors",new n([e.childs().borderColor])),e.addChild("textsColors",new n([e.childs().color]))}}t.LineToolPriceLabel=o},7648:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceNote:()=>c});var s=i(88537),r=i(88564),n=i(2015),o=i.n(n),a=i(89857),l=i(33291);class c extends a.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this._labelMovingDelta=null,i.e(1583).then(i.bind(i,19226)).then(t=>{this._setPaneViews([new t.PriceNotePaneView(this,e)])})}pointsCount(){return 2}name(){return"Price Note"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}startMoving(e,t,i){if(1===t){if(this.isSourceHidden())return;const i=(0,s.ensureDefined)(e.logical),r=this.points()[1];this._labelMovingDelta={index:r.index-i.index,price:r.price-i.price},this.startChanging(t,i)}else this._labelMovingDelta=null,super.startMoving(e,t,i)}move(e,t,i){if(null!==this._labelMovingDelta){const t=(0,s.ensureDefined)(e.logical),r={index:t.index+this._labelMovingDelta.index,price:t.price+this._labelMovingDelta.price};this.setPoint(1,r,i),this.updateAllViews((0,l.dataSourceChangeEvent)(this.id()))}else super.move(e,t,i)}endMoving(e,t,i){return null!==this._labelMovingDelta?(this._labelMovingDelta=null,this.endChanging(!1,e)):super.endMoving(e,t,i)}static createProperties(e){const t=new r.DefaultProperty("linetoolpricenote",e);return c._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90727)).then(e=>e.PriceNoteDefinitionsViewModel)}_snapTo45DegreesAvailable(){return!0}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(o())("")),e.addExclusion("text"),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors"),e.hasChild("textsColors")&&e.removeProperty("textsColors")}}},66602:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceRange:()=>p});var s=i(89857),r=i(88537),n=i(24633),o=i(45383),a=i(85402);const l={...a.nonThemedFactoryDefaultsBase,extendLeft:!1,extendRight:!1},c=a.themedFactoryDefaultsBase,h=(0,o.extractAllPropertiesKeys)((0,r.ensureDefined)(c.get(n.StdTheme.Light))),d=(0,o.extractAllPropertiesKeys)(l);class u extends o.ThemedDefaultProperty{static create(e){return new u("linetoolpricerange",()=>(0,o.factoryDefaultsForCurrentTheme)(l,c),d,h,e)}}class p extends s.LineDataSource{constructor(e,t,s,r){super(e,t||p.createProperties(),s,r),i.e(1583).then(i.bind(i,25965)).then(e=>{this._setPaneViews([new e.PriceRangePaneView(this,this._model)])})}pointsCount(){return 2}name(){return"Price Range"}static createProperties(e){const t=u.create(e);return p._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){s.LineDataSource._configureProperties(e)}}},35344:(e,t,i)=>{ -"use strict";var s=i(34580).LevelsProperty,r=i(53804).LineToolFibWedgeBase,n=i(37865).LineToolColorsProperty;class o extends r{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,76207,19)).then(({ProjectionLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return 1}name(){return"Projection"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,12590))).ProjectionDefinitionsViewModel}static createProperties(e){var t=new s("linetoolprojection",e,!1,{range:[1,1]});return o._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.addChild("linesColors",new n([e.trendline.color]))}}t.LineToolProjection=o},31702:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Ray"}static createProperties(e){var t=new r("linetoolray",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolRay=n},20258:(e,t,i)=>{"use strict";i.d(t,{LineToolRectangle:()=>h});var s=i(86441),r=i(88564),n=i(2015),o=i.n(n),a=i(89857),l=i(37865),c=i(88537);class h extends a.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,79090)).then(({RectanglePaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}pointsCount(){return 2}textColorsProperty(){return this.properties().childs().showLabel.value()?super.textColorsProperty():null}name(){return"Rectangle"}setPoint(e,t,i){if(e<2&&super.setPoint(e,t,i),i&&i.shift()){const i=this._getAnchorPointForIndex(e);if(e>=4)return this._correctMiddlePoints(e,t,i),void this.normalizePoints();this._snapPoint45Degree(t,i)}switch(e){case 2:this._points[1].price=t.price,this._points[0].index=t.index;break;case 3:this._points[0].price=t.price,this._points[1].index=t.index;break;case 4:this._points[0].index=t.index;break;case 5:this._points[1].index=t.index;break;case 6:this._points[0].price=t.price;break;case 7:this._points[1].price=t.price}this.normalizePoints()}getPoint(e){return e<2?super.getPoint(e):this._getAnchorPointForIndex(e)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolrectangle",e);return h._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,39457)).then(e=>e.RectangleDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_snapPoint45Degree(e,t,i){const s=this.m_priceScale,r=this.ownerSource();if(null===s||null===r)return;const n=r.firstValue();if(null===n)return;const o=this._model.timeScale(),a=(0,c.ensureNotNull)(this.pointToScreenPoint(e)),l=(0, -c.ensureNotNull)(this.pointToScreenPoint(t)),h=a.x-l.x,d=a.y-l.y,u=h<0?-1:1,p=d<0?-1:1,_=Math.max(Math.abs(h),Math.abs(d)),m=Math.round(o.coordinateToIndex(l.x+_*u)),g=Math.abs(o.indexToCoordinate(m)-l.x),f=s.coordinateToPrice(l.y+g*p,n);e.index=m,e.price=f}_correctMiddlePoints(e,t,i){e<6?this._correctRightLeftMiddlePoint(e,t,i):this._correctTopBottomMiddlePoint(e,t,i)}_correctRightLeftMiddlePoint(e,t,i){const r=(0,c.ensureNotNull)(this.pointToScreenPoint(t)),n=(0,c.ensureNotNull)(this.pointToScreenPoint(i)),o=(0,c.ensureNotNull)(this.pointToScreenPoint(this._points[0])),a=(0,c.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let l=r.x-n.x;if(0===l)return;const h=o.x{"use strict";i.d(t,{LineToolRiskRewardBase:()=>v});var s=i(88537),r=i(95505),n=i(71053),o=i(69927),a=i(89857),l=i(10324),c=i(41628),h=i(97938);class d extends h.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){if(e.visible=!1,!this._showAxisLabel())return;const s=this._source.priceScale();if(0===this._source.points().length||null===s||s.isEmpty())return;const r=this._source.ownerSource(),n=null!==r?r.firstValue():null;if(null===n)return;const o=this._data.priceProperty.value(),a=this._data.colorProperty.value();i.background=a,i.textColor=this.generateTextColor(a),i.coordinate=s.priceToCoordinate(o,n),e.text=s.formatPrice(o,n),e.visible=!0}_showAxisLabel(){return this._source.properties().childs().showPriceLabels.value()}}var u=i(2015),p=i.n(u);class _ extends(p()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t}value(){const e=this._lineSource.points()[this._pointIndex].price;return this._formatAndParsePrice(e)}state(){return this.value()}merge(e,t){return this.setValue(e),t?[]:null}_formatAndParsePrice(e){const t=(0,s.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){const i=t.format(e),s=t.parse(i);return s.res?s.value:e}return e}}class m extends _{constructor(e){super(e,0)}setValue(e){const t=this._lineSource.points()[this._pointIndex];this._lineSource.startChanging(this._pointIndex,t),t.price=parseFloat(""+e),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.recalculate(),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this),this._lineSource.endChanging(!1,!1),this._lineSource.syncPriceLevels()}}class g extends _{constructor(e){super(e,1)}value(){const e=this._lineSource.stopPrice();return this._formatAndParsePrice(e)}setValue(e){const t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource.model().mainSeries().base());this._lineSource.properties().childs().stopLevel.setValue(t),this._lineSource.syncPriceLevels()}}class f extends _{constructor(e){super(e,2)}value(){const e=this._lineSource.profitPrice();return this._formatAndParsePrice(e)}setValue(e){const t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource.model().mainSeries().base());this._lineSource.properties().childs().profitLevel.setValue(t),this._lineSource.syncPriceLevels()}}class v extends a.LineDataSource{constructor(e,t,n,a){if(super(e,t,n,a),this._syncStateExclusions=["points","entryPrice","stopPrice","targetPrice","stopLevel","profitLevel","riskSize","qty","amountTarget","amountStop"],!t.hasChild("stopLevel")&&!t.hasChild("profitLevel")){const i=(0,s.ensureNotNull)(e.timeScale().visibleBarsStrictRange()),r=i.firstBar(),n=i.lastBar();let a=(0, -s.ensureNotNull)(e.mainSeries().priceRange(r,n));const l=e.mainSeries().priceScale();if(l.isLog()){const e=l.logicalToPrice(a.minValue()),t=l.logicalToPrice(a.maxValue());a=new o.PriceRange(e,t)}if(a&&!a.isEmpty()){const i=Math.round(.2*a.length()*e.mainSeries().base());t.merge({stopLevel:i,profitLevel:i})}}t.childs().stopLevel.listeners().subscribe(this,this.recalculate),t.childs().stopLevel.listeners().subscribe(null,()=>{this.properties().childs().stopPrice.childChanged(null)}),t.childs().profitLevel.listeners().subscribe(this,this.recalculate),t.childs().profitLevel.listeners().subscribe(null,()=>{this.properties().childs().targetPrice.childChanged(null)}),t.addChild("entryPrice",new m(this)),t.addChild("stopPrice",new g(this)),t.addChild("targetPrice",new f(this)),t.hasChild("riskSize")||t.addProperty("riskSize",0),t.hasChild("qty")||t.addProperty("qty",0),t.hasChild("amountTarget")||t.addProperty("amountTarget",t.childs().accountSize.value()),t.hasChild("amountStop")||t.addProperty("amountStop",t.childs().accountSize.value()),t.addExclusion("riskSize"),t.addExclusion("qty"),t.addExclusion("amountTarget"),t.addExclusion("amountStop"),this._riskInPercentsFormatter=new r.NumericFormatter(2),this._riskInMoneyFormatter=new r.NumericFormatter,t.childs().risk.subscribe(this,this._recalculateRiskSize),t.childs().accountSize.subscribe(this,this._recalculateRiskSize),t.childs().riskDisplayMode.subscribe(this,this._recalculateRisk),t.childs().riskDisplayMode.subscribe(this,this._recalculateRiskSize),t.childs().entryPrice.subscribe(this,this._recalculateRiskSize),t.childs().stopPrice.subscribe(this,this._recalculateRiskSize),t.childs().profitLevel.subscribe(this,this._recalculateRiskSize),t.childs().profitLevel.subscribe(this,this.syncPriceLevels.bind(this)),t.childs().stopLevel.subscribe(this,this._recalculateRiskSize),t.childs().stopLevel.subscribe(this,this.syncPriceLevels.bind(this)),t.childs().qty.subscribe(this,this._recalculateRiskSize),e.mainSeries().dataEvents().dataUpdated().subscribe(this,this._onSeriesUpdated),this.pointAdded().subscribe(this,e=>{switch(e){case c.RiskRewardPointIndex.Entry:case c.RiskRewardPointIndex.Close:this._recalculateRiskSize(),this._recalculateQty()}}),this.pointChanged().subscribe(this,e=>{switch(e){case c.RiskRewardPointIndex.Entry:case c.RiskRewardPointIndex.Close:this._recalculateRiskSize(),this._recalculateQty()}}),t.childs().riskDisplayMode.value()===l.RiskDisplayMode.Percentage&&t.childs().risk.value()>100&&t.childs().riskDisplayMode.setValueSilently(l.RiskDisplayMode.Money),this.version=2,this._entryPriceAxisView=new d(this,{colorProperty:t.childs().linecolor,priceProperty:t.childs().entryPrice}),this._stopPriceAxisView=new d(this,{colorProperty:t.childs().stopBackground,priceProperty:t.childs().stopPrice}),this._profitPriceAxisView=new d(this,{colorProperty:t.childs().profitBackground,priceProperty:t.childs().targetPrice}),i.e(1583).then(i.bind(i,35362)).then(({RiskRewardPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}destroy(){ -this._model.mainSeries().dataEvents().dataUpdated().unsubscribeAll(this),super.destroy()}checkAlert(){this.recalculate()}calculatePL(e){return this.entryPrice()-e}lastBarData(){const e=this._model.mainSeries().bars().firstIndex(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t||isNaN(e)||isNaN(t))return null;const i=this.points();if(4===i.length){const s=i[c.RiskRewardPointIndex.ActualClose];return s.indexMath.max(this._points[0].index,this._points[1].index)||this.checkAlert()}}},10324:(e,t,i)=>{"use strict";var s;i.d(t,{RiskDisplayMode:()=>s}),function(e){e.Percentage="percents",e.Money="money"}(s||(s={}))},41628:(e,t,i)=>{"use strict";var s;i.d(t,{RiskRewardPointIndex:()=>s}),function(e){e[e.Entry=0]="Entry",e[e.Close=1]="Close",e[e.ActualEntry=2]="ActualEntry",e[e.ActualClose=3]="ActualClose"}(s||(s={}))},34291:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(89857).LineDataSource,n=i(85733),o=i(88564).DefaultProperty,a=i(41628).RiskRewardPointIndex,l=i(10324).RiskDisplayMode,c=i(79029).LineToolRiskRewardBase,h=i(80643).isNumber;class d extends c{riskFormatter(e){return e===l.Percentage?this._riskInPercentsFormatter:this._riskInMoneyFormatter}getRiskStep(e){return e===l.Percentage?.01:1}_roundValue(e){return parseFloat(e.toFixed(2))}hasEditableCoordinates(){return!1}_recalculateRisk(){var e=this.properties(),t=e.riskDisplayMode.value(),i=e.riskSize.value(),s=e.accountSize.value(),r=e.risk.value();r=t===l.Percentage?this._roundValue(i/s*100):this._roundValue(s/100*r),this._riskInChange=!0,e.risk.setValue(this.riskFormatter(t).format(r)),this._riskInChange=!1}_recalculateRiskSize(){if(!this._riskInChange){var e=this.properties(),t=e.risk.value(),i=e.riskDisplayMode.value(),s=e.accountSize.value();i===l.Percentage?e.riskSize.setValue(t/100*s):t>s?(e.risk.setValue(s),e.riskSize.setValue(s)):e.riskSize.setValue(t)}}migrateVersion(e,t,i){if(1===e&&this._points.length>=1){var s=[];if(s.push(this._points[0]),n={price:(n=this._points[0]).price,index:this._getClosePointIndex(n.index)},s.push(n),this._points[1]&&s.push(this._points[1]),this._points[2]&&s.push(this._points[2]),this._points=s,this._timePoint.length>=1){var r=[],n=this._timePoint[0];r.push(n);var o={price:n.price,time_t:n.time_t,offset:this._getClosePointIndex(n.offset)};r.push(o),this._timePoint[1]&&s.push(this._points[1]),this._timePoint[2]&&s.push(this._points[2]),this._timePoint=r}}}priceAxisViews(e,t){return this.isSourceHidden()||t!==this.priceScale()||this._model.paneForSource(this)!==e?null:[this._entryPriceAxisView,this._stopPriceAxisView,this._profitPriceAxisView]}updateAllViews(){ -this.isActualSymbol()&&this._properties.visible.value()&&(n.hideAllDrawings().value()&&this.userEditEnabled()||(super.updateAllViews(),this._entryPriceAxisView.update(),this._stopPriceAxisView.update(),this._profitPriceAxisView.update()))}restoreExternalState(e){if(h(e.entryPrice)){if(e=Object.assign({},e),!this.isActualSymbol())this._timePoint[0].price=e.entryPrice,delete e.entryPrice;this.properties().merge(e)}else super.restoreExternalState(e)}_changeEntryPoint(e){var t=this.properties().stopPrice.value(),i=this.properties().targetPrice.value(),s=1/this._model.mainSeries().base(),r=Math.min(t,i)+s,n=Math.max(t,i)-s;e.price=Math.max(r,Math.min(n,this._roundPrice(e.price))),super.setPoint(0,e),this.properties().stopPrice.setValue(t),this.properties().targetPrice.setValue(i)}setPoint(e,t,i){if(this.isActualSymbol()){switch(this._muteSyncLineStyle(),e){case 0:this._changeEntryPoint(t);break;case 2:this.properties().stopPrice.setValue(this.preparseStopPrice(t.price));break;case 3:this.properties().targetPrice.setValue(this.preparseProfitPrice(t.price));break;case 1:t.price=this._roundPrice(t.price),super.setPoint(1,t),this.recalculate()}this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}}getPoint(e){switch(e){case 0:return this._points[0];case 1:return{index:this._points[1].index,price:this._points[0].price};case 2:return{index:this._points[0].index,price:this.stopPrice()};case 3:return{index:this._points[0].index,price:this.profitPrice()}}return null}setPoints(e){this._muteSyncLineStyle(),super.setPoints(e),this.recalculate(),this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}syncPriceLevels(){if(this.linkKey().value()){var e=this.properties(),t={entryPrice:e.entryPrice.value(),stopLevel:e.stopLevel.value(),profitLevel:e.profitLevel.value()};n.changeLineStyle({linkKey:this.linkKey().value(),state:t,model:this._model})}}pointsCount(){return 1}name(){return"Risk/Reward"}addPoint(e){e.price=this._roundPrice(e.price),super.addPoint(e,null,!0);var t={price:e.price,index:this._getClosePointIndex(e.index)};super._addPointIntenal(t,null,!0);var i=this.calculateActualEntry(e,t);i&&(super._addPointIntenal(i,null,!0),(t=this.findClosePoint(i,t))&&super._addPointIntenal(t,null,!0));return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}setOwnerSource(e){super.setOwnerSource(e),this._model.mainSeries().symbolInfo()&&(this._recalculateAmount(),this._recalculateRiskSize(),this._recalculateQty())}_roundPrice(e){var t=this._model.mainSeries().base();return Math.round(e*t)/t}recalculate(){if(0!==this.points().length){var e=this.properties().targetPrice.value(),t=this.properties().stopPrice.value(),i=[this._points[0],this._points[1]],s=this.calculateActualEntry(this.points()[0],this.points()[1]);if(s){i.push(s);var r=this.findClosePoint(s,this.points()[1]);r&&i.push(r)}this._points=i,e!==this.properties().targetPrice.value()&&this.properties().targetPrice._listeners.fire(this.properties().targetPrice), -t!==this.properties().stopPrice.value()&&this.properties().stopPrice._listeners.fire(this.properties().stopPrice)}}start(){super.start(),this.recalculate()}startMoving(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.startMoving(e,t,i)}move(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.move(e,t,i),this.recalculate(),this._entryPriceAxisView.update()}_correctPoints(e,t){return!!this.isActualSymbol()&&r.prototype._correctPoints.call(this,[e[0],e[1]],t)}entryPrice(){return this.points()[0].price}findClosePoint(e,t){for(var i=this._model.mainSeries().bars(),r=s(i.firstIndex()),n=Math.max(e.index,r),o=s(i.lastIndex()),a=Math.min(o,t.index),l=n;l<=a;l++){var c=i.valueAt(l);if(null!==c){var h=this.checkStopPrice(c);if(null!=h)return{index:l,price:h}}}return null}calculateActualEntry(e,t){var i=this._model.mainSeries().bars();if(i.isEmpty())return null;for(var r=s(i.firstIndex()),n=Math.max(e.index,r),o=e.price,a=s(i.lastIndex()),l=Math.min(a,t.index),c=n;c<=l;c++){var h=i.valueAt(c);if(null!==h&&h[TradingView.HIGH_PLOT]>=o&&h[TradingView.LOW_PLOT]<=o)return{index:c,price:o}}return null}axisPoints(){if(!this._points[a.ActualEntry])return[];var e=this._points[a.ActualEntry],t=null;if(4===this._points.length)t=this._points[a.ActualClose];else{var i=this.lastBarData();if(!i)return[];t={index:i.index,price:i.closePrice}}return[e,t]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,18736))).RiskRewardDefinitionsViewModel}template(){var e=this.properties(),t=r.prototype.template.call(this);return t.stopLevel=e.stopLevel.value(),t.profitLevel=e.profitLevel.value(),t}_applyTemplateImpl(e){delete e.targetPrice,delete e.stopPrice,delete e.entryPrice,super._applyTemplateImpl(e);var t=this.properties();void 0!==e.stopLevel&&t.stopLevel.setValue(e.stopLevel),void 0!==e.profitLevel&&t.profitLevel.setValue(e.profitLevel)}getOrderTemplate(){return null}_propertiesStateExclusions(){return["entryPrice","stopPrice","targetPrice"]}static _configureProperties(e){r._configureProperties(e),e.addExclusion("stopLevel"),e.addExclusion("profitLevel"),e.addExclusion("stopPrice"),e.addExclusion("targetPrice"),e.addExclusion("entryPrice")}_getClosePointIndex(e){var t=this._model.timeScale(),i=Math.round(t.width()/t.barSpacing());return e+Math.max(3,Math.round(.15*i))}}d.version=2;class u extends d{constructor(e,t,i,s){super(e,t||u.createProperties(),i,s);var r=this.properties();r.entryPrice.subscribe(this,this._recalculateQty),r.stopPrice.subscribe(this,this._recalculateQty),r.riskSize.subscribe(this,this._recalculateQty),r.entryPrice.subscribe(this,this._recalculateAmount),r.profitLevel.subscribe(this,this._recalculateAmount),r.stopLevel.subscribe(this,this._recalculateAmount),r.accountSize.subscribe(this,this._recalculateAmount),r.riskSize.subscribe(this,this._recalculateAmount),r.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){ -var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=s/(Math.abs(i-t)*r);e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(i-n)*s*o),l=this._roundValue(t-(r-i)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}name(){return"Risk/Reward short"}stopPrice(){return this.entryPrice()+this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()-this.properties().profitLevel.value()/this._model.mainSeries().base()}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.HIGH_PLOT]>=t?this.stopPrice():e[TradingView.LOW_PLOT]<=i?this.profitPrice():null}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new o("linetoolriskrewardshort",e);return u._configureProperties(t),t}static _configureProperties(e){d._configureProperties(e)}}class p extends d{constructor(e,t,i,s){super(e,t||p.createProperties(),i,s);var r=this.properties();r.entryPrice.subscribe(this,this._recalculateQty),r.stopPrice.subscribe(this,this._recalculateQty),r.riskSize.subscribe(this,this._recalculateQty),r.entryPrice.subscribe(this,this._recalculateAmount),r.profitLevel.subscribe(this,this._recalculateAmount),r.stopLevel.subscribe(this,this._recalculateAmount),r.accountSize.subscribe(this,this._recalculateAmount),r.riskSize.subscribe(this,this._recalculateAmount),r.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=s/(Math.abs(t-i)*r);e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(n-i)*s*o),l=this._roundValue(t-(i-r)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}stopPrice(){return this.entryPrice()-this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()+this.properties().profitLevel.value()/this._model.mainSeries().base()}calculatePL(e){return e-this.entryPrice()}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice() -;return e[TradingView.LOW_PLOT]<=t?this.stopPrice():e[TradingView.HIGH_PLOT]>=i?this.profitPrice():null}name(){return"Risk/Reward long"}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new o("linetoolriskrewardlong",e);return p._configureProperties(t),t}static _configureProperties(e){d._configureProperties(e)}}t.LineToolRiskRewardLong=p,t.LineToolRiskRewardShort=u},61272:(e,t,i)=>{"use strict";var s=i(86441).Point,r=i(4652).distanceToLine,n=i(89857).LineDataSource,o=i(88564).DefaultProperty,a=i(37865).LineToolColorsProperty;class l extends n{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),i.e(1583).then(i.t.bind(i,33261,19)).then(({RotatedRectanglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){var i=this._getPaneViews()[0],s=i._points[0],n=i._points[1],o=i._points[2];this._distance=r(s,n,o).distance}}setPoint(e,t,i){if(super.setPoint(e,t,i),0===e||1===e){var r=this._getPaneViews()[0];r.update();var n=r._points[0],o=r._points[1].subtract(n),a=new s(o.y,-o.x).normalized().scaled(this._distance),l=n.add(a),c=this.screenPointToPoint(l);this._points[2]=c}}endChanging(e,t){delete this._distance,super.endChanging(e,t)}pointsCount(){return 3}name(){return"Rotated Rectangle"}hasEditableCoordinates(){return!1}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetoolrotatedrectangle",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e),e.addChild("linesColors",new a([e.color]))}}t.LineToolRotatedRectangle=l},98390:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Modified Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork=n},98225:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork2",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork2=n},52827:(e,t,i)=>{"use strict";i.d(t,{LineToolSignpost:()=>f});var s=i(28353),r=i(88564),n=i(89857),o=i(2015),a=i.n(o);class l extends(a()){constructor(e){super(),this._source=e,e.pointAdded().subscribe(this,()=>this.listeners().fire(this)),e.pointChanged().subscribe(this,()=>this.listeners().fire(this))}value(){const e=this._source.properties().childs().position.value();return parseFloat(e.toFixed(2))}setValue(e){this._source.properties().childs().position.setValue(e), -this._source.model().updateSource(this._source),this.listeners().fire(this),this._source.syncMultichartState({pricesChanged:!1,indexesChanged:!1})}}var c=i(38015);class h extends c.LineDataSourcePointIndexProperty{constructor(e,t){super(e,t),this._source=e}_setPointImpl(e){this._source.setPointAndChangeIndex(this._pointIndex,e)}}var d=i(37865),u=i(88537),p=i(70581),_=i(85733);class m extends n.LineDataSource{constructor(){super(...arguments),this._startMovingAnchorY=NaN}priceSource(){return this.ownerSource()}addPoint(e,t,i){return super.addPoint(this._updatePositionAndCorrectPoint(e),t,i)}setPoint(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!this.isPhantom()&&!this._allowChangeAnchorHorizontally()),i),this._syncPosition()}setPointAndChangeIndex(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!1),i),this._syncPosition()}startMoving(e,t,i,s){s||(this._startMovingAnchorY=(0,u.ensureNotNull)(this._anchorYCoordinate())),super.startMoving(e,t,i)}move(e,t,i,s){var r;const n=(0,u.ensureDefined)((0,u.ensureNotNull)(this.startMovingPoint()).logical),o=(0,u.ensureDefined)(e.logical);if(!s&&0===t){const e=this._points[0],t=o.index-n.index,i=(0,u.ensureNotNull)(this.priceScale()),s=(0,u.ensure)(null===(r=this.ownerSource())||void 0===r?void 0:r.firstValue()),a=i.priceToCoordinate(o.price,s)-i.priceToCoordinate(n.price,s),l=this._startMovingAnchorY+a,c=i.coordinateToPrice(l,s);this._updatePositionAndCorrectPoint({index:e.index+t,price:c})}super.move(e,t,i),s||this._syncPosition()}_allowChangeAnchorHorizontally(){return!1}_updatePositionAndCorrectPoint(e,t){t&&(e.index=this._points[0].index);const i=this.priceSource();if(null===i)return e;const s=i.priceScale(),r=i.firstValue();if(null===s||s.isEmpty()||null===r)return e;const n=s.height();let o=n/2,a=e.price>=s.coordinateToPrice(o,r)?1:-1;const l=this._model.mainSeries();if(i===l){const t=l.data().search(this._baseSeriesIndexForPoint(e));if(null!==t){const i=(0,p.seriesPrice)(l,t,-1),n=(0,p.seriesPrice)(l,t,1);a=e.price>=i?1:-1,o=s.priceToCoordinate(1===a?n:i,r),e.price=1===a?Math.max(n,e.price):e.price}}const c=1===(-1===a!==s.isInverted()?-1:1)?o:n-o,h=s.priceToCoordinate(e.price,r),d=Math.min(n,Math.abs(h-o)),u=Math.max(0,Math.min(100,100*d/c))*a;return this.properties().childs().position.setValue(u),e}_baseSeriesIndexForPoint(e){return e.index}_syncPosition(){const e=this.linkKey().value();if(null!==e){const t={position:this.properties().childs().position.value()};(0,_.changeLineStyle)({linkKey:e,state:t,model:this._model})}}_anchorYCoordinate(){const e=this.priceSource();if(null===e)return null;const t=e.priceScale(),i=e.firstValue();if(null===t||t.isEmpty()||null===i)return null;const s=this._model.mainSeries(),r=this.customEvent();if(null===r)return null;let n=null;if(e===s&&(n=(0,p.seriesBasePosition)(s,r)),null===n&&(n=(0,p.noDataBasePosition)(r,t,i)),null===n)return null;const o=r.position(),a=t.priceToCoordinate(n.price,i);return(0,p.positionToCoordinate)(o,t.height(),a,(0,p.positionVisualDirection)(o,t.isInverted()))}}var g=i(72077) -;class f extends m{constructor(e,t,s,r){super(e,null!=t?t:f.createProperties(),s,r),this._image=null,this._currentImageURL=null,this._imageReady=!1,this._updateImage(),this.properties().childs().emoji.subscribe(this,()=>this._updateImage()),i.e(1583).then(i.bind(i,74328)).then(t=>{this._setPaneViews([new t.SignpostPaneView(this,e)])})}pointsCount(){return 1}name(){return"Signpost"}customEvent(){return{index:()=>{var e,t;return null!==(t=null===(e=this.points()[0])||void 0===e?void 0:e.index)&&void 0!==t?t:null},position:()=>this.properties().childs().position.value()}}image(){return this._imageReady&&this.properties().childs().showImage.value()?this._image:null}showInObjectTree(){return!this.isPhantom()&&super.showInObjectTree()}isPhantom(){return this._model.isPhantomLine(this)}clonePositionOffset(){return{barOffset:1,xCoordOffset:0,yCoordOffset:0}}template(){const e=super.template(),t=this.properties().childs();return e.text=t.text.value(),e.position=t.position.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolsignpost",e);return f._configureProperties(t),t.hasChild("text")||t.addChild("text",new(a())((0,s.t)("Text"))),t.hasChild("position")||t.addChild("position",new(a())(50)),t.addExclusion("text"),t.addExclusion("position"),t.addChild("backgroundsColors",new d.LineToolColorsProperty([t.childs().plateColor])),t}_createPointProperty(e){super._createPointProperty(e);const t=this._pointsProperty.childs().points[e];t.removeProperty("price"),t.removeProperty("bar"),t.addChild("price",new l(this)),t.addChild("bar",new h(this,0))}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text),this.properties().childs().position.setValue(e.position)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,30882)).then(e=>e.SignpostDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e)}_updateImage(){const e=this._imageURL();if(this._currentImageURL!==e&&(this._currentImageURL=e,this._image=null,this._imageReady=!1,null!==this._currentImageURL)){const e=new Image;this._image=e,e.onload=()=>{this._imageReady=!0,this._model.updateSource(this),e.onload=null},e.crossOrigin="anonymous",e.src=this._currentImageURL}}_imageURL(){const e=this.properties().childs().emoji.value();return(0,g.getTwemojiUrl)(e,"png")||null}}f.supportPhantomMode=!0},15718:(e,t,i)=>{"use strict";i.d(t,{LineToolSineLine:()=>n});var s=i(88564),r=i(89857);class n extends r.LineDataSource{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.bind(i,85)).then(e=>{this._setPaneViews([new e.SineLinePaneView(this,this._model)])})}pointsCount(){return 2}name(){return"Sine Line"}static createProperties(e){const t=new s.DefaultProperty("linetoolsineline",e);return n._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,66819))).CyclicAndSineLinesPatternDefinitionsViewModel}static _configureProperties(e){ -r.LineDataSource._configureProperties(e)}}},51934:(e,t,i)=>{"use strict";i.d(t,{StudyLineDataSource:()=>v});var s=i(88537),r=i(80643),n=i(71053),o=i(89857),a=i(88564),l=i(67072),c=i.n(l),h=i(54376),d=i(33266),u=i(27982),p=i(8671),_=i(66101),m=i(10480),g=i(65862),f=i(33291);class v extends o.LineDataSource{constructor(e,t,s,r,n,o){super(e,r,n,o),this._indexes=null,this._inputs=null,this._definitionsViewModel=null,this._pointsetPoints=null,this._loadedPlots=null,this._loadedGraphics=null,this._beingCreatedPaneView=null,this._anchorsPaneView=null,this._alignerCache=null,Promise.all([i.e(1583).then(i.bind(i,15788)),i.e(1583).then(i.bind(i,77557))]).then(t=>{const{LineToolBeingCreatedPaneView:i}=t[0],{StudyLineDataSourceAnchorsPaneView:s}=t[1];this._beingCreatedPaneView=new i(this,e),this._anchorsPaneView=new s(this,this.model()),this._model.lightUpdate()}),this._metaInfo=t,this._dataSource=new u.StudyDataSource(e.chartApi(),e.mainSeries().seriesSource(),s,t),this._dataSource.dataCleared().subscribe(this,this._onDataCleared),this._dataSource.dataUpdated().subscribe(this,this._onDataUpdated)}destroy(){this._dataSource.dataUpdated().unsubscribe(this,this._onDataUpdated),this._dataSource.dataCleared().unsubscribe(this,this._onDataCleared),this._dataSource.destroy(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._unsubscribeApplyInputsOnSeriesCompleted(),this._isDestroyed=!0,super.destroy()}stop(){super.stop(),this._isDestroyed||(this._dataSource.stop(),this.clearData())}start(){super.start(),this._isDestroyed||null===this._inputs||this._dataSource.start()}metaInfo(){return this._metaInfo}graphicsInfo(){return this._metaInfo.graphics}series(){return this._model.mainSeries()}translatedType(){return this._metaInfo.description}name(){return this._metaInfo.description}studyId(){return this._metaInfo.id}setPoint(e,t,i){super.setPoint(e,this._preparePoint(t,i))}move(e){}clearData(){this._clearAllDataExceptPointsetPoints(),this._pointsetPoints=null,this.updateAllViews((0,f.dataSourceChangeEvent)(this.id()))}data(){return this.plots()}plots(){return this._loadedPlots||this._dataSource.plots()}graphics(){return this._loadedGraphics||this._dataSource.graphics()}firstValue(){return this._model.mainSeries().firstValue()}state(e){const t=super.state(e);let i;this.metaInfo()instanceof c()?i=this.metaInfo().state():(i=(0,r.clone)(this.metaInfo()),i.id=c().parseIdString(i.id+(i.version?"-"+i.version:"")).fullId);const s={...t,metaInfo:i};return e&&(s.data=this.plots().state(),s.nonseriesindexes=this._indexes,s.graphics=(0,h.saveStudyGraphics)(this.graphics())),s}restoreData(e){var t;void 0!==e.data&&(this._loadedPlots=new n.PlotList((0,p.studyPlotFunctionMap)(this._metaInfo),p.studyEmptyPlotValuePredicate),this._loadedPlots.restoreState(e.data)),this._indexes=null!==(t=e.nonseriesindexes)&&void 0!==t?t:this._indexes,this._loadedGraphics=e.graphics?(0,h.loadStudyGraphics)(e.graphics):this._loadedGraphics}getPropertyDefinitionsViewModel(){ -return null===this._definitionsViewModel?this._getPropertyDefinitionsViewModelClass().then(e=>null===e||this._isDestroyed?null:(null===this._definitionsViewModel&&(this._definitionsViewModel=new e(this._model.undoModel(),this)),this._definitionsViewModel)):Promise.resolve(this._definitionsViewModel)}paneViews(e){let t=[];if(this.isSourceHidden())return t;if(this._isReady()&&this._changeStatesStack.isEmpty()){const i=super.paneViews(e);null!==i&&(t=t.concat(i))}else null!==this._beingCreatedPaneView&&t.push(this._beingCreatedPaneView);return null!==this._anchorsPaneView&&t.push(this._anchorsPaneView),t}propertiesChanged(e){super.propertiesChanged(e),this._onStudyInputsMayChange()}dataAndViewsReady(){return super.dataAndViewsReady()&&this._isReady()}endChanging(e,t){const i=super.endChanging(e,t);return i.indexesChanged?this.clearData():this._updateAnchorsPrice(!0),i}moveData(e){this._dataSource.moveData(e)}restorePoints(e,t,i){super.restorePoints(e,t,i),this._updateAnchorsPrice(!0)}realign(){super.realign(),null===this._model.mainSeries().symbolInfo()&&(this._alignerCache=null)}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,_.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return v._configureProperties(r),r}_studyId(){return this._dataSource.studyId()}_isReady(){return!0}_updateAllPaneViews(e){var t,i;super._updateAllPaneViews(e),null===(t=this._beingCreatedPaneView)||void 0===t||t.update(),null===(i=this._anchorsPaneView)||void 0===i||i.update(e)}_getPointTime(e,t){const i=e.index,s=this._model.timeScale().indexToTimePoint(i);if(null!==s)return s;if(t||void 0===e.time)return null;const r=this._model.mainSeries().symbolInfo();if(null===r)return null;let n=this._model.properties().childs().timezone.value();"exchange"===n&&(n=r.timezone);const o=(0,m.cal_to_utc)((0,m.get_timezone)(n),e.time);return this._getStartBarAligner()(o)/1e3}_updateAnchorsPrice(e){}_onPointsetUpdated(e){super._onPointsetUpdated(e),this._pointsetPoints=this._points.map(e=>({price:e.price,index:e.index,time:e.time})),this._onStudyInputsMayChange()}_onDataCleared(){this.updateAllViews((0,f.dataSourceChangeEvent)(this.id(),void 0,!0)),this._model.updateSource(this)}_onDataUpdated(e,t,i){var s;this._updateAnchorsPrice(),this.updateAllViews((0,f.dataSourceChangeEvent)(this.id(),null===(s=e[0])||void 0===s?void 0:s.index)),this._model.updateSource(this)}_onStudyInputsMayChange(){let e=null;if(null!==this._pointsetPoints&&this._pointsetPoints.length===this.pointsCount()&&(e=this._studyInputs(this._pointsetPoints),null===e&&(this._clearAllDataExceptPointsetPoints(),this.updateAllViews((0,f.dataSourceChangeEvent)(this.id())))),null!==e){const t=this.metaInfo().inputs.map(e=>e.id),i=Object.keys(e);for(const s of i)t.includes(s)||delete e[s]}this._areInputsEqual(this._inputs,e)||this._applyStudyInputs(e)}_preparePoint(e,t){return super._preparePoint(this._alignPointToRangeOfActualData(e),t)}_getPropertyDefinitionsViewModelClass(){return Promise.resolve(null)}_subscribeApplyInputsOnSeriesCompleted(){ -this._unsubscribeApplyInputsOnSeriesCompleted(),this._model.mainSeries().dataEvents().completed().subscribe(this,()=>this._onStudyInputsMayChange(),!0)}_unsubscribeApplyInputsOnSeriesCompleted(){this._model.mainSeries().dataEvents().completed().unsubscribeAll(this)}_onInputsChanged(){0}static _createPropertiesFromStudyIdAndState(e,t){const i=c().getStudyPropertyRootNameById(e),s=new a.DefaultProperty(i,t);return v._configureProperties(s),s}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.removeExclusion("intervalsVisibilities")}_areInputsEqual(e,t){return null===t?null===e:null!==e&&(0,d.areStudyInputsEqual)(this._metaInfo.inputs,e,t)}_applyStudyInputs(e){const t=this._inputs;this._inputs=e,null!==e&&(this._unsubscribeApplyInputsOnSeriesCompleted(),this._dataSource.setInputs(e),null===t&&this.isStarted()&&!this._dataSource.isStarted()&&this._dataSource.start()),this._onInputsChanged()}_clearAllDataExceptPointsetPoints(){this._inputs=null,this._dataSource.clearData(),this._loadedPlots=null,this._indexes=null,this._loadedGraphics=null}_getStartBarAligner(){const e=this._model.mainSeries().interval();return null!==this._alignerCache&&this._alignerCache.resolution===this._model.mainSeries().interval()||(this._alignerCache={resolution:e,aligner:(0,g.createTimeToBarTimeAligner)(e,(0,s.ensureNotNull)(this._model.mainSeries().symbolInfo()))}),this._alignerCache.aligner}}},74971:(e,t,i)=>{"use strict";i.d(t,{LineToolText:()=>u,LineToolTextAbsolute:()=>p});var s=i(88537),r=i(86441),n=i(28353),o=i(89857),a=i(2015),l=i.n(a),c=i(88564),h=i(37865),d=i(33291);class u extends o.LineDataSource{constructor(e,t,s,r){const n=t||u.createProperties();super(e,n,s,r),this._barSpacing=e.timeScale().barSpacing(),this._recalculatePointsOnCenter=!1,i.e(1583).then(i.bind(i,44074)).then(({TextPaneView:t})=>{const i=this._recalculatePointsOnCenter?(e,t)=>{this._recalculatePointsOnCenter&&this._recalculateCenterPosition(e,t)}:void 0;this._setPaneViews([new t(this,e,void 0,void 0,void 0,void 0,void 0,i)])})}centerPosition(){this._recalculatePointsOnCenter=!0}setPoint(e,t,i){const s=this.properties().childs();let r;if(1===e&&s.wordWrapWidth.value()){const e=this.model().timeScale();r=this.isFixed()?this.fixedPoints()[0].x:e.indexToCoordinate(this.points()[0].index);const i=e.indexToCoordinate(t.index)-r-~~(s.fontsize.value()/6);if(!isFinite(i))return;s.wordWrapWidth.setValue(Math.max(100,i))}}pointsCount(){return 1}name(){return"Text"}setPriceScale(e){super.setPriceScale(e),e&&e.priceRange()&&(this._priceDencity=e.height()/(0,s.ensureNotNull)(e.priceRange()).length(),this._isPriceDencityLog=e.isLog())}restoreSize(){const e=(0,s.ensureNotNull)(this.priceScale());this._barSpacing=this.model().timeScale().barSpacing(),this._priceDencity=e.height()/(0,s.ensureNotNull)(e.priceRange()).length(),this.redraw((0,d.dataSourceChangeEvent)(this.id()))}redraw(e){this.updateAllViews(e),this._model.updateSource(this)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}state(e){const t=super.state(e) -;return e&&(t.state.fixedSize=!1),t}barSpacing(){return this._barSpacing}priceDencity(){return this._priceDencity}isPriceDencityLog(){return this._isPriceDencityLog}hasEditableCoordinates(){return!1}static createProperties(e){const t=new c.DefaultProperty("linetooltext",e);return u._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,99734)).then(e=>e.TextDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(l())((0,n.t)("Text"))),e.addChild("linesColors",new h.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new h.LineToolColorsProperty([e.childs().color])),e.addExclusion("text"),e.addExclusion("linesColors"),e.addExclusion("textsColors")}_recalculateCenterPosition(e,t){const i=this.isFixed()?this.fixedPoints()[0]:(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),n=new r.Point(i.x-e/2,i.y-t/2),o=(0,s.ensureNotNull)(this.screenPointToPoint(n));this.setPoints([o]),this.normalizePoints(),this.createServerPoints(),this.redraw((0,d.dataSourceChangeEvent)(this.id()))}}class p extends u{constructor(e,t){super(e,t||p.createProperties())}name(){return"Anchored Text"}hasEditableCoordinates(){return!1}isFixed(){return!0}static createProperties(e){const t=new c.DefaultProperty("linetooltextabsolute",e);return p._configureProperties(t),t}static _configureProperties(e){u._configureProperties(e)}}},6980:(e,t,i)=>{"use strict";i.d(t,{LineToolThreeDrivers:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,88993)).then(t=>{this._setPaneViews([new t.LineToolThreeDrivesPaneView(this,e)])})}pointsCount(){return 7}name(){return"Three Drives Pattern"}static createProperties(e){const t=new s.DefaultProperty("linetoolthreedrivers",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,98890)).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("linesWidths",new n.LineToolWidthsProperty([e.childs().linewidth])),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors")}}},38513:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.t.bind(i,59905,19)).then(({TimeCyclesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Time Cycles"}setPoint(e,t,i){var s=Object.assign({},t),r=this._points[0],n=this._points[1];r.price=s.price, -n.price=s.price,this._points[e]=s,this.normalizePoints()}addPoint(e,t,i){var r=s.prototype.addPoint.call(this,e,t,!0);if(r){var n=this._points[0];this._points[1].price=n.price,i||(this.normalizePoints(),this.createServerPoints())}return r}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3956))).TimeCyclesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetooltimecycles",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolTimeCycles=n},2587:(e,t,i)=>{"use strict";const s=i(89857).LineDataSource,r=i(20165).alignToStep;class n extends s{constructor(e,t){super(e,t),this.customization.forcePriceAxisLabel=!0,this.customization.disableErasing=!0,this.customization.showInObjectsTree=!1,this.setSelectionEnabled(!1)}isSynchronizable(){return!1}pointsCount(){return n.POINTS_COUNT}hasContextMenu(){return!1}state(){return null}startMoving(){s.prototype.startMoving.apply(this,arguments),this._cursorMoved=!1}endMoving(){s.prototype.endMoving.apply(this,arguments),this._cursorMoved=!1}_correctPoints(e,t){this._currentMovingPoint&&this._startMovingPoint?this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price&&(this._cursorMoved=!0):this._cursorMoved=!1;for(var i=1/this.priceScale().mainSource().base(),s=0;s{"use strict";var s=i(2015),r=i(86441).Point,n=i(89857).LineDataSource,o=i(88564).DefaultProperty;class a extends s{constructor(e){super(),this._lineSource=e}value(){var e=180*this._lineSource._angle/Math.PI;return Math.round(e)}setValue(e){var t=e*Math.PI/180;this._lineSource._angle=t;var i=this._lineSource.pointToScreenPoint(this._lineSource.points()[0]),s=Math.cos(this._lineSource._angle),n=-Math.sin(this._lineSource._angle),o=new r(s,n),a=i.addScaled(o,this._lineSource._distance),l=this._lineSource.screenPointToPoint(a);this._lineSource._points[1]=l,this._lineSource._model.updateSource(this._lineSource),this._lineSource.updateAllViews(),this._lineSource._model.updateSource(this._lineSource)}}class l extends n{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._properties.addChild("angle",new a(this)),i.e(1583).then(i.t.bind(i,74108,19)).then(({TrendAnglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}pointsCount(){return 2}name(){return"Trend Angle"}_calculateAngle(){var e=this.pointToScreenPoint(this.points()[0]),t=this.pointToScreenPoint(this.points()[1]),i=t.subtract(e);i.length()>0?(i=i.normalized(), -this._angle=Math.acos(i.x),i.y>0&&(this._angle=-this._angle),this._distance=t.subtract(e).length()):delete this._angle,this.properties().hasOwnProperty("angle")&&this.properties().angle.listeners().fire(this.properties().angle)}addPoint(e,t){var i=n.prototype.addPoint.call(this,e,t);return i&&this._calculateAngle(),i}setLastPoint(e,t){var i=super.setLastPoint(e,t);return this.points().length>1&&this._calculateAngle(),i}axisPoints(){if(this.points().length<2)return[];var e=[this.points()[0]],t=this.pointToScreenPoint(this.points()[0]),i=Math.cos(this._angle)*this._distance,s=-Math.sin(this._angle)*this._distance,n=t.add(new r(i,s)),o=this.screenPointToPoint(n);return e.push(o),e}setPoint(e,t,i){super.setPoint(e,t,i),this.points().length>1&&1===e&&this._calculateAngle()}restoreData(e){this._angle=e.angle,this._distance=e.distance}state(e){var t=n.prototype.state.call(this,e);return t.angle=this._angle,t.distance=this._distance,t}cloneData(e){this._angle=e._angle,this._distance=e._distance}canHasAlert(){return!0}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,38909))).TrendAngleDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetooltrendangle",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e)}}t.LineToolTrendAngle=l},25861:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,80741,19)).then(({TrendBasedFibExtensionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Extension"}migrateVersion(e,t,i){1===e&&this.properties().extendLines.setValue(!0)}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetooltrendbasedfibextension",e,!1,{range:[0,8]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth"),e.child("levelsStyle").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}fibLevelsBasedOnLogScale(){return this.properties().fibLevelsBasedOnLogScale.value()&&this.priceScale().isLog()}}d.version=2,d.LevelsCount=24, -t.LineToolTrendBasedFibExtension=d},6245:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,78343,19)).then(({TrendBasedFibTimePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Time"}migrateVersion(e,t,i){}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,42882))).TrendBasedFibTimeDefinitionsViewModel}static createProperties(e){var t=new o("linetooltrendbasedfibtime",e,!1,{range:[1,11]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,d.version=1,t.LineToolTrendBasedFibTime=d},57649:(e,t,i)=>{"use strict";var s=i(2015),r=i(89857).LineDataSource,n=i(22474).LineToolPriceAxisView,o=i(88564).DefaultProperty;class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this._trendLinePaneView=null,i.e(1583).then(i.t.bind(i,38743,19)).then(({TrendLinePaneView:e})=>{this._trendLinePaneView=new e(this,this._model),this._setPaneViews([this._trendLinePaneView])})}dataAndViewsReady(){return r.prototype.dataAndViewsReady.call(this)&&this._trendLinePaneView&&this._trendLinePaneView.iconsReady()}stop(){super.stop()}pointsCount(){return 2}name(){return"Trend Line"}canHasAlert(){return!0}showPriceLabels(){return this._properties.childs().showPriceLabels.value()}createPriceAxisView(e){return new n(this,{pointIndex:e,backgroundPropertyGetter:()=>this.showPriceLabels()?this._properties.linecolor.value():null})}isForcedDrawPriceAxisLabel(){return this.showPriceLabels()}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,43266))).TrendLineDefinitionsViewModel}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetooltrendline",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new s("")),e.addExclusion("text")}} -t.LineToolTrendLine=a},53403:(e,t,i)=>{"use strict";i.d(t,{LineToolTrianglePattern:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,51145)).then(t=>{this._setPaneViews([new t.LineToolTrianglePatternPaneView(this,e)])})}pointsCount(){return 4}name(){return"Triangle Pattern"}static createProperties(e){const t=new s.DefaultProperty("linetooltrianglepattern",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor]))}}},99092:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty,n=i(37865).LineToolColorsProperty;class o extends s{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,12258,19)).then(({TrianglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Triangle"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooltriangle",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new n([e.childs().color]))}}t.LineToolTriangle=o},67103:(e,t,i)=>{"use strict";i.d(t,{LineToolVertLineTimeAxisView:()=>r});var s=i(19528);class r extends s.LineDataSourceTimeAxisView{constructor(e){super(e,0)}_getBgColor(){return this._source.properties().linecolor.value()}_getAlwaysInViewPort(){return!1}_getIndex(){const e=this._source.points();return 0===e.length?null:e[0].index}}},51922:(e,t,i)=>{"use strict";i.d(t,{LineToolVertLine:()=>h});var s=i(88537),r=i(86441),n=i(88564),o=i(2015),a=i.n(o),l=i(89857),c=i(67103);class h extends l.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),this._timeAxisView=new c.LineToolVertLineTimeAxisView(this),this._paneViewFactory=null,this.properties().childs().extendLine.subscribe(this,()=>e.lightUpdate()),i.e(1583).then(i.bind(i,68022)).then(t=>{this._paneViewFactory=i=>new t.VertLinePaneView(this,e,i),this._model.lightUpdate()})}destroy(){this.properties().childs().extendLine.unsubscribeAll(this),super.destroy()}pointsCount(){return 1}name(){return"Vertical Line"}timeAxisViews(){return this.isSourceHidden()?null:this.properties().childs().showTime.value()?[this._timeAxisView]:null}updateAllViews(e){super.updateAllViews(e),this._timeAxisView.update(e)}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e} -isMultiPaneAvailable(){return!0}isMultiPaneEnabled(){return this.properties().childs().extendLine.value()}paneViews(e){return e=(0,s.ensureDefined)(e),this.isMultiPaneEnabled()||this._model.paneForSource(this)===e?(null===this._getPaneViews(e)&&null!==this._paneViewFactory&&this._setPaneViews([this._paneViewFactory(e)],e,!0),super.paneViews(e)):null}priceAxisViews(){return null}priceAxisPoints(){return[]}pointToScreenPoint(e){const t=this._model.timeScale();if(t.isEmpty())return null;const i=t.indexToCoordinate(e.index);return new r.Point(i,0)}convertYCoordinateToPriceForMoving(e){return 0}static createProperties(e){null!=e&&(void 0===e.textOrientation&&(e.textOrientation="horizontal"),void 0===e.extendLine&&(e.extendLine=!1));const t=new n.DefaultProperty("linetoolvertline",e);return h._configureProperties(t),t}_getAlertPlots(){const e=this._points[0],t={index:e.index,price:e.price+1};return[this._linePointsToAlertPlot([e,t],null,!0,!0)]}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90308)).then(e=>e.VerticalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())("")),e.addExclusion("text")}}},20299:(e,t,i)=>{"use strict";i.d(t,{LineToolVbPFixed:()=>f});var s=i(77973),r=i(88537),n=i(88145),o=i(67072),a=i.n(o),l=i(51934),c=i(54376),h=i(2662),d=i(33291),u=i(80643),p=i(88564),_=i(14291),m=i(66101);const g=(0,n.studyIdString)("VbPFixed","tv-volumebyprice");class f extends l.StudyLineDataSource{constructor(e,t,i,s,r,n){const o=i||e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:g}),a=null!=t?t:f.createProperties(e);super(e,o,"vbpfixed_",a,r,n),(0,c.createGraphicsPaneViews)(this,e).then(t=>{if(s=e.mainSeries(),o.plots.length>0){const i=new h.StudyPlotPaneView(this,s,e,o.plots[0].id);t.push(i)}if(o.plots.length>1){const i=new h.StudyPlotPaneView(this,s,e,o.plots[1].id);t.push(i)}if(o.plots.length>2){const i=new h.StudyPlotPaneView(this,s,e,o.plots[2].id);t.push(i)}this._setPaneViews(t)}),this.clearData()}pointsCount(){return 2}boundToSymbol(){return!1}offset(e){return 0}getMinFirstBarIndexForPlot(){return-1/0}calcIsActualSymbol(){this._isActualSymbol=!0,this._isActualCurrency=!0,this._isActualUnit=!0,this.calcIsActualInterval()}cloneable(){return!1}isSynchronizable(){return!1}static createProperties(e,t){const i=a().getStudyPropertyRootNameById(g),s=(0,r.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:g})),n=(0,p.createDefaultsState)(!0,i,[],e.studyVersioning());return(0,_.createStudyLineToolProperties)("LineToolVbPFixed",s,s,(0,u.merge)((0,u.clone)(n),null!=t?t:{}),e.studyVersioning())}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,m.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return f._configureProperties(r),r}static studyId(){return g}_studyInputs(e){(0, -r.assert)(2===e.length,"all the line tool points should be defined");const[t,i]=e,s=Math.max(t.index,i.index),n=this._model.mainSeries().bars().lastIndex(),o=this._getPointTime(t.index<=i.index?t:i,!0),a=this._getPointTime(i.index>=t.index?i:t,!0);if(null===o||null===a)return this._subscribeApplyInputsOnSeriesCompleted(),null;return{...this.properties().childs().inputs.state(),first_bar_time:1e3*o,last_bar_time:1e3*a,subscribeRealtime:n===s}}_isReady(){return!(0,c.isStudyGraphicsEmpty)(this.graphics())}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,26667))).StudyLineDataSourceDefinitionsViewModel}_onDataUpdated(){this._updateAnchors(),this.updateAllViews((0,d.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}_updateAnchors(){const e=this._calculateAnchors();if(!e)return;const[{index:t,price:i},{index:s,price:r}]=e;if(this._timePoint.length&&(this._timePoint[0].price=i,this._timePoint[1].price=r),this._points.length){const e=this.model().timeScale(),n=e.indexToTimePoint(t),o=e.indexToTimePoint(t);this._points[0]={index:t,price:i,time:(0,u.isNumber)(n)?new Date(1e3*n):void 0},this._points[1]={index:s,price:r,time:(0,u.isNumber)(o)?new Date(1e3*o):void 0}}}_calculateAnchors(){let e=null,t=null,i=null,r=null;if(this.graphics().hhists().forEach(s=>{s.forEach(s=>{const{priceLow:n,priceHigh:o,firstBarTime:a,lastBarTime:l}=s;(!e||nt)&&(t=o),(!i||ar)&&(r=l)})}),!((0,s.default)(e)||(0,s.default)(t)||(0,s.default)(r)||(0,s.default)(i)))return[{price:t,index:i},{price:e,index:r}]}_updateAnchorsPrice(){const e=this._calculateAnchors();if(!e)return;const[{price:t},{price:i}]=e;this._timePoint.length&&(this._timePoint[0].price=t,this._timePoint[1].price=i),this._points.length&&(this._points[0].price=t,this._points[1].price=i)}}},90373:(e,t,i)=>{"use strict";var s;i.d(t,{MagnetMode:()=>s}),function(e){e[e.WeakMagnet=0]="WeakMagnet",e[e.StrongMagnet=1]="StrongMagnet"}(s||(s={}))},30460:(e,t,i)=>{"use strict";i.d(t,{magnetEnabled:()=>m,magnetMode:()=>g,setIsMagnetEnabled:()=>f,setMagnetMode:()=>v});var s=i(88564),r=i(52714),n=i.n(r),o=i(90373),a=i(85733),l=i(14291),c=i(76367);const h=new(n())(!1),d=new(n())(o.MagnetMode.WeakMagnet),u=(0,c.modifierPressed)(),p=(0,c.shiftPressed)();function _(){const e=u.value();if(p.value()&&(a.isToolEditingNow.value()||a.isToolCreatingNow.value()))return void h.setValue(!1);const t=a.tool.value(),i=a.isStudyEditingNow.value()||a.isPointSelectedNow.value(),s=e&&((0,l.isLineToolName)(t)||a.isToolEditingNow.value()||(0,a.toolIsMeasure)(t)||i),r=(0,a.properties)().childs().magnet.value();d.setValue(!r&&s?o.MagnetMode.StrongMagnet:(0,a.properties)().childs().magnetMode.value()),h.setValue(s?!r:r)}function m(){return h}function g(){return d}function f(e){(0,s.saveDefaultProperties)(!0),(0,a.properties)().childs().magnet.setValue(e),(0,s.saveDefaultProperties)(!1)}function v(e){(0,s.saveDefaultProperties)(!0),(0,a.properties)().childs().magnetMode.setValue(e),(0, -a.properties)().childs().magnet.setValue(!0),(0,s.saveDefaultProperties)(!1)}(0,a.runOnDrawingStateReady)(()=>{(0,a.properties)().childs().magnet.subscribe(null,_),(0,a.properties)().childs().magnetMode.subscribe(null,_),u.subscribe(_),p.subscribe(_),a.tool.subscribe(_),a.isToolEditingNow.subscribe(_),_()})},32050:(e,t,i)=>{"use strict";i.d(t,{MainSeriesScaleRatioProperty:()=>n});var s=i(2872),r=i.n(s);class n{constructor(e){this._changed=new(r()),this._model=e}getStepChangeValue(){return.1}getMinValue(){return 1e-7}getMaxValue(){return 99999999}value(){return this._model.mainSeriesScaleRatio()}setValue(e,t){(e!==this.value()||t)&&(this._model.setMainSeriesScaleRatio(e),this._onChanged())}state(){return null}clone(){return new n(this._model)}listeners(){return this._changed}subscribe(e,t){this._changed.subscribe(e,t)}unsubscribe(e,t){this._changed.unsubscribe(e,t)}unsubscribeAll(e){this._changed.unsubscribeAll(e)}storeStateIfUndefined(){return!0}_onChanged(){this._changed.fire(this)}}},33291:(e,t,i)=>{"use strict";function s(e,t,i){return{type:"data-source-change",dataSourceId:e,firstUpdatedTimePointIndex:t,clearData:i}}i.r(t),i.d(t,{dataSourceChangeEvent:()=>s,globalChangeEvent:()=>n,viewportChangeEvent:()=>a,selectionChangeEvent:()=>c});const r={type:"global-change"};function n(){return r}const o={type:"viewport-change"};function a(){return o}const l={type:"selection-change"};function c(){return l}},51344:(e,t,i)=>{"use strict";i.d(t,{ensureTimePointIndexIndex:()=>n,unpackNonSeriesData:()=>o});var s=i(6617),r=i(88537);function n(e){if(e<0)throw new Error("TimePointIndexIndex should be non-negative integer");return e}async function o(e){if(""===e)return null;const t=JSON.parse(e);if(!(0,s.isObject)(t)||"function"==typeof t)throw new Error("Non-object content in the non-series envelope");if((0,s.hasProperty)(t,"indexes_replace"))return{indexes_replace:!0};const i={indexes_replace:!1};if((0,s.hasProperty)(t,"offsets")&&(i.offsets=t.offsets),(0,s.hasProperty)(t,"isUpdate")){if("boolean"!=typeof t.isUpdate)throw new Error('Invalid type of "isUpdate" field');i.isUpdate=t.isUpdate}return(0,s.hasProperty)(t,"data")&&(i.data=t.data),(0,s.hasProperty)(t,"graphicsCmds")&&(i.graphicsCmds=function(e){if(!(0,s.isObject)(e))throw new Error("Graphics commands should be wrapped in an object");if((0,s.hasProperty)(e,"create"),(0,s.hasProperty)(e,"erase")){const t=e.erase;(0,r.assert)(Array.isArray(t),"Collection of erase commands should be array");for(const e of t){if(!(0,s.isObject)(e)||!(0,s.hasProperty)(e,"action"))throw new Error("Command should be an object with 'action' property");(0,r.assert)("all"===e.action||"one"===e.action,"Erase command action should be 'all' or 'one'")}}return e}(t.graphicsCmds)),i}},57626:(e,t,i)=>{"use strict";i.d(t,{notAvailable:()=>r});var s=i(28353);const r=i(67337).enabled("use_na_string_for_not_available_values")?(0,s.t)("n/a"):"∅"},56589:(e,t,i)=>{"use strict";var s;i.d(t,{PaneCursorType:()=>s}),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"}(s||(s={}))},28978:(e,t,i)=>{"use strict";i.d(t,{PanePriceAxisView:()=>n});var s=i(76818);class r{constructor(e){this._priceAxisViewRenderer=null,this._rendererOptions=null,this._align="right",this._width=0,this._height=0,this._textWidthCache=e}setParams(e,t,i,s,r){this._priceAxisViewRenderer=e,this._rendererOptions=t,this._width=i,this._height=s,this._align=r}draw(e,t){null!==this._rendererOptions&&null!==this._priceAxisViewRenderer&&this._priceAxisViewRenderer.draw(e,this._rendererOptions,this._textWidthCache,this._width,this._height,this._align,t.pixelRatio)}hitTest(e){var t,i;return void 0===(null===(t=this._priceAxisViewRenderer)||void 0===t?void 0:t.hitTest)?null:null===(i=this._priceAxisViewRenderer)||void 0===i?void 0:i.hitTest(e,this._width,this._align)}}class n{constructor(e,t,i){this._renderer=null,this._invalidated=!0,this._priceAxisView=e,this._textWidthCache=new s.TextWidthCache(100),this._dataSource=t,this._chartModel=i,this._fontSize=-1,this._panePriceAxisViewRenderer=new r(this._textWidthCache)}update(e){this._invalidated=!0}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){this._renderer=null;const i=this._chartModel.crossHairSource(),s=this._dataSource===i?i.pane:this._chartModel.paneForSource(this._dataSource);if(null===s)return;const r=this._priceScale();if(null===r)return;let n=s.priceScalePosition(r);if("overlay"===n&&(n=s.priceScalePosition(s.defaultPriceScale())),"overlay"===n)return;const o=this._chartModel.priceAxisRendererOptions();o.fontSize!==this._fontSize&&(this._fontSize=o.fontSize,this._textWidthCache.reset()),this._panePriceAxisViewRenderer.setParams(this._priceAxisView.paneRenderer(),o,t,e,n),this._renderer=this._panePriceAxisViewRenderer,this._invalidated=!1}_priceScale(){return this._dataSource.priceScale()}}},84705:(e,t,i)=>{"use strict";i.d(t,{PaneRendererArea:()=>a});var s=i(88537),r=i(46214),n=i(29892),o=i(49094);class a extends r.PaneRendererLine{constructor(e){e.forceLineColor=!1,super(e)}draw(e,t){var i,r,a,l,c;const h=this._data;if(0===h.items.length)return;let d=null!==(r=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==r?r:0,u=(null!==(l=null===(a=this._data.visibleItemsRange)||void 0===a?void 0:a.endItemIndex)&&void 0!==l?l:this._data.items.length)-1;for(;d=0&&!(0,o.coordinateIsValid)(h.items[u].y);)u--;if(d>u)return;e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.lineCap="butt",e.strokeStyle=h.lineColor,e.lineWidth=h.lineWidth,(0,n.setLineStyle)(e,h.lineStyle),e.lineWidth=1;const p={},_=h.items;for(let e=d;e<=u;e++){const t=_[e];let i;if(i=t.style?t.style.color:h.lineColor,e{"use strict";i.d(t,{CompositeRenderer:()=>s});class s{constructor(){this._renderers=[],this._globalAlpha=1}setGlobalAlpha(e){this._globalAlpha=e}append(e){this._renderers.push(e)}insert(e,t){this._renderers.splice(t,0,e)}clear(){this._renderers.length=0}isEmpty(){return 0===this._renderers.length}draw(e,t){for(let i=0;i=0;s--){const r=this._renderers[s].hitTest(e,t);null!==r&&(null===i||r.result()>i.result())&&(i=r)}return i}doesIntersectWithBox(e){return this._renderers.some(t=>!!t.doesIntersectWithBox&&t.doesIntersectWithBox(e))}}},42759:(e,t,i)=>{"use strict";i.d(t,{clearRectWithGradient:()=>o,fillRectInnerBorder:()=>a,drawHorizontalLine:()=>l,drawVerticalLine:()=>c,drawRoundRect:()=>d,drawRoundRectWithInnerBorder:()=>u,fillRectWithBorder:()=>p,createCircle:()=>_});var s=i(86441),r=i(29892),n=i(95936);function o(e,t,i,s,r,n,o){e.save(),e.globalCompositeOperation="copy";const a=e.createLinearGradient(0,0,0,r);a.addColorStop(0,n),a.addColorStop(1,o),e.fillStyle=a,e.fillRect(t,i,s,r),e.restore()}function a(e,t,i,s,r,n){e.fillRect(t+n,i,s-2*n,n),e.fillRect(t+n,i+r-n,s-2*n,n),e.fillRect(t,i,n,r),e.fillRect(t+s-n,i,n,r)}function l(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(i,t+r),e.lineTo(s,t+r),e.stroke()}function c(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(t+r,i),e.lineTo(t+r,s),e.stroke()}function h(e,t){return Array.isArray(e)?e.map(e=>0===e?e:e+t):e+t}function d(e,t,i,s,r,n,o){let a,l,c,h;if(Array.isArray(n))if(2===n.length){const e=Math.max(0,n[0]),t=Math.max(0,n[1]);a=e,l=e,c=t,h=t}else{if(4!==n.length)throw new Error("Wrong border radius - it should be like css border radius");a=Math.max(0,n[0]),l=Math.max(0,n[1]),c=Math.max(0,n[2]),h=Math.max(0,n[3])}else{const e=Math.max(0,n);a=e,l=e,c=e,h=e}o||e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-l,i),0!==l&&e.arcTo(t+s,i,t+s,i+l,l),e.lineTo(t+s,i+r-c),0!==c&&e.arcTo(t+s,i+r,t+s-c,i+r,c),e.lineTo(t+h,i+r),0!==h&&e.arcTo(t,i+r,t,i+r-h,h),e.lineTo(t,i+a),0!==a&&e.arcTo(t,i,t+a,i,a)}function u(e,t,i,s,o,a,l=0,c=0,u="",p=n.LineStyle.Solid){if(e.save(), -!c||!u||u===a)return d(e,t,i,s,o,l),e.fillStyle=a,e.fill(),void e.restore();const _=c/2;if("transparent"!==a){const r="transparent"!==u&&p!==n.LineStyle.Solid;d(e,r?t:t+c,r?i:i+c,r?s:s-2*c,r?o:o-2*c,r?l:h(l,-c)),e.fillStyle=a,e.fill()}if("transparent"!==u){d(e,t+_,i+_,s-c,o-c,h(l,-_)),e.lineWidth=c,e.strokeStyle=u,(0,r.setLineStyle)(e,p),e.closePath(),e.stroke()}e.restore()}function p(e,t,i,n,o,a,l,c,h,d,u,p,_,m,g){const f=d?0:t,v=u?_:n;if(void 0!==a&&(e.fillStyle=a,e.fillRect(f,i,v-f+m,o-i)),void 0!==l&&c>0){if(e.beginPath(),(0,r.setLineStyle)(e,h),void 0!==g){const t=g.map(e=>e*c);(0,r.setLineDash)(e,t)}let a=(0,s.point)(0,0),d=(0,s.point)(0,0),u=(0,s.point)(0,0),_=(0,s.point)(0,0);switch(p){case"outer":{const e=.5*c;u=(0,s.point)(0,e),_=(0,s.point)(0,e),a=(0,s.point)(e,-c),d=(0,s.point)(e,-c);break}case"center":{const e=c%2?.5:0,t=c%2?.5:m;u=(0,s.point)(.5*c-e,-e),_=(0,s.point)(t+.5*c,-e),a=(0,s.point)(-e,e+.5*c),d=(0,s.point)(t,e+.5*c);break}case"inner":{const e=.5*c;u=(0,s.point)(0,-e),_=(0,s.point)(1,-e),a=(0,s.point)(-e,c),d=(0,s.point)(1-e,c);break}}e.lineWidth=c,e.strokeStyle=l,e.moveTo(f-u.x,i-u.y),e.lineTo(v+_.x,i-_.y),e.moveTo(n+d.x,i+d.y),e.lineTo(n+d.x,o-d.y),e.moveTo(f-u.x,o+u.y),e.lineTo(v+_.x,o+_.y),e.moveTo(t-a.x,i+a.y),e.lineTo(t-a.x,o-a.y),e.stroke()}}function _(e,t,i,s){e.beginPath(),e.arc(t,i,s,0,2*Math.PI,!1),e.closePath()}},49094:(e,t,i)=>{"use strict";i.d(t,{extendAndClipLineSegment:()=>h,getArrowPoints:()=>d,optimalBarWidth:()=>u,optimalCandlestickWidth:()=>p,optimalHiLoWidth:()=>_,interactionTolerance:()=>m,coordinateIsValid:()=>g,setValidLineStyle:()=>f,fillScaledRadius:()=>v,strokeScaledRadius:()=>S});var s=i(86441),r=i(5531),n=i(71413),o=i(80643),a=i(29892);const l={line:13,minDistanceBetweenPoints:10,series:14,curve:10,anchor:13,esd:4},c={line:3,minDistanceBetweenPoints:5,series:2,curve:3,anchor:2,esd:0};function h(e,t,i,n,o,a){if((0,s.equalPoints)(e,t))return null;const l=new s.Point(0,0),c=new s.Point(i,n);if(o){if(a){const i=(0,r.intersectLineAndBox)((0,s.lineThroughPoints)(e,t),(0,s.box)(l,c));return Array.isArray(i)?i:null}{const i=(0,r.intersectRayAndBox)(t,e,(0,s.box)(l,c));return null===i||(0,s.equalPoints)(t,i)?null:(0,s.lineSegment)(t,i)}}if(a){const i=(0,r.intersectRayAndBox)(e,t,(0,s.box)(l,c));return null===i||(0,s.equalPoints)(e,i)?null:(0,s.lineSegment)(e,i)}{const i=(0,r.intersectLineSegmentAndBox)((0,s.lineSegment)(e,t),(0,s.box)(l,c));return Array.isArray(i)?i:null}}function d(e,t,i,s){const r=.5*i,n=Math.sqrt(2),o=t.subtract(e),a=o.normalized();let l=5*i;s&&(l=Math.min(l,.35*o.length()));const c=1*r;if(l*n*.2<=c)return[];const h=a.scaled(l),d=t.subtract(h),u=a.transposed(),p=1*l,_=u.scaled(p),m=d.add(_),g=d.subtract(_),f=m.subtract(t).normalized().scaled(c),v=g.subtract(t).normalized().scaled(c),S=t.add(f),y=t.add(v),b=r*(n-1),w=u.scaled(b),C=Math.min(l-1*r/n,r*n*1),P=a.scaled(C),T=t.subtract(w),x=t.add(w),I=t.subtract(P);return[[m,S],[g,y],[T,I.subtract(w)],[x,I.add(w)]]}function u(e,t){return t=t||1,Math.floor(.3*e*t)}function p(e,t){ -if(e>=2.5&&e<=4)return Math.floor(3*t);const i=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),s=Math.floor(e*i*t),r=Math.floor(e*t),n=Math.min(s,r);return Math.max(Math.floor(t),n)}function _(e){return.4*e}function m(){return(0,n.lastMouseOrTouchEventInfo)().isTouch?l:c}function g(e){return null!=e&&!(0,o.isNaN)(e)}function f(e,t){void 0!==t&&(0,a.setLineStyle)(e,t)}function v(e,t){const i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}function S(e,t,i){const s=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+(s!==i%2?.5:0)}},40254:(e,t,i)=>{"use strict";i.d(t,{HorizontalLineRenderer:()=>a});var s=i(84346),r=i(29892),n=i(42759),o=i(49094);class a{constructor(){this._data=null,this._hitTest=new s.HitTestResult(s.HitTestResult.REGULAR)}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data||!1===this._data.visible||null===this._hitTest)return null;const t=(0,o.interactionTolerance)().line,i=Math.abs(e.y-this._data.y)<=t+this._data.linewidth/2,s=void 0===this._data.left||this._data.left-e.x<=t,r=void 0===this._data.right||e.x-this._data.right<=t;return i&&s&&r?this._hitTest:null}draw(e,t){if(null===this._data)return;if(!1===this._data.visible)return;if(this._data.y<-this._data.linewidth/2||this._data.y>t.cssHeight+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&(0,r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.left?Math.max(this._data.left,0):0,o=void 0!==this._data.right?Math.min(this._data.right,t.cssWidth):t.cssWidth,a=Math.round(this._data.y*i),l=Math.floor(s*i),c=Math.ceil(o*i);(0,n.drawHorizontalLine)(e,a,l,c)}}},15712:(e,t,i)=>{"use strict";function s(e,t){return e.pixelRatio===t.pixelRatio}i.d(t,{areEqualPaneRenderParams:()=>s})},49612:(e,t,i)=>{"use strict";var s;i.d(t,{LineEnd:()=>s}),function(e){e[e.Normal=0]="Normal",e[e.Arrow=1]="Arrow",e[e.Circle=2]="Circle"}(s||(s={}))},46214:(e,t,i)=>{"use strict";i.d(t,{PaneRendererLine:()=>l});var s=i(86441),r=i(4652),n=i(84346),o=i(29892),a=i(49094);class l{constructor(e){this._data=e}hitTest(e,t){var i,o,l,c;const h=(0,a.interactionTolerance)().series+this._data.lineWidth/2;let d=null!==(o=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==o?o:0,u=(null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:this._data.items.length)-1;for(;u-d>2;){const t=Math.round((u+d)/2);this._data.items[t].x<=e.x?d=t:u=t}d=Math.max(1,d-1),u=Math.min(this._data.items.length-1,u+1);for(let t=d;t<=u;++t){const i=this._data.items[t-1],o=this._data.items[t],a=i.x,l=o.x;if((0,r.distanceToSegment)(new s.Point(a,i.y),new s.Point(l,o.y),new s.Point(e.x,e.y)).distance<=h)return this._data.hittest?this._data.hittest:new n.HitTestResult(n.HitTestResult.REGULAR)}return null}draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.lineCap="square",e.lineJoin="round",e.strokeStyle=this._data.lineColor, -e.fillStyle=this._data.lineColor,e.lineWidth=this._data.lineWidth,(0,o.setLineStyle)(e,this._data.lineStyle),(0,a.setValidLineStyle)(e,this._data.lineStyle),this._data.simpleMode?this._drawSimpleMode(e,t.pixelRatio):this._drawLines(e),e.restore()}_drawSimpleMode(e,t){var i,s,r,n;if(e.beginPath(),this._walkLine(e,this._data.items,!1,NaN),e.stroke(),this._data.withMarkers){e.save(),e.scale(1/t,1/t);const o=Math.max(1,Math.floor(t))%2/2,a=(this._data.lineWidth+2)*t+o,l=2*Math.PI;e.beginPath();const c=null!==(s=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0;for(let i=(null!==(n=null===(r=this._data.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:this._data.items.length)-1+1;i-- >=c;){const s=this._data.items[i];if(s){const i=Math.round(s.x*t)+o,r=s.y*t;e.moveTo(i,r),e.arc(i,r,a,0,l)}}e.fill(),e.restore()}}_walkLine(e,t,i,s,r){var n,o,l,c;if(!t)return;const h=.25*this._data.barSpacing;let d,u,p,_,m;const g=a.coordinateIsValid,f=r?0:null!==(o=null===(n=this._data.visibleItemsRange)||void 0===n?void 0:n.startItemIndex)&&void 0!==o?o:0,v=r?t.length-1:Math.min((null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:t.length)-1,t.length-1);for(let e=f;e<=v;e++){const i=t[e];if(g(i.y)){u=i,d=e;break}}if(void 0!==d&&void 0!==u)for(let r=d;r<=v;r++){_=t[r],m=t[r+1]||{};const n=Math.round(_.x);if(g(_.y))if(p&&g(p.y))e.lineTo(n,_.y),i&&!g(m.y)&&e.lineTo(n,s);else if(m&&g(m.y))i?(r!==d&&e.lineTo(n,s),e.lineTo(n,_.y)):e.moveTo(n,_.y);else if(i){if(0===r)continue;r!==d&&e.lineTo(n-h,s),e.lineTo(n-h,_.y),e.lineTo(n+h,_.y),e.lineTo(n+h,s)}else e.moveTo(n-h,_.y),e.lineTo(n+h,_.y);p=_}}_drawLines(e){var t,i,s,r;if(!this._data.items.length)return;let n,o,l;const c=.25*this._data.barSpacing,h=a.coordinateIsValid;e.beginPath();const d=null!==(i=null===(t=this._data.visibleItemsRange)||void 0===t?void 0:t.startItemIndex)&&void 0!==i?i:0,u=(null!==(r=null===(s=this._data.visibleItemsRange)||void 0===s?void 0:s.endItemIndex)&&void 0!==r?r:this._data.items.length)-1,p=this._data.items[d];p&&e.moveTo(p.x,p.y);let _,m=e.strokeStyle,g=e.lineWidth;for(let t=d+1;t<=u;++t){let i,s,r;n=this._data.items[t-1],o=this._data.items[t],l=this._data.items[t+1],o.style&&!this._data.forceLineColor?(i=o.style.color,s=o.style.width,r=o.style.style):(i=this._data.lineColor,s=this._data.lineWidth,r=this._data.lineStyle),this._data.ignorePaletteLineWidth&&(s=this._data.lineWidth);(i!==m||s!==g||r!==_)&&(m=i,g=s,_=r,e.stroke(),e.beginPath(),e.strokeStyle=i,e.lineWidth=s,(0,a.setValidLineStyle)(e,r),e.moveTo(n.x,n.y)),f=n,S=l,h((v=o).y)&&(h(f.y)?e.lineTo(v.x,v.y):S&&h(S.y)?e.moveTo(v.x,v.y):(e.moveTo(v.x-c,v.y),e.lineTo(v.x+c,v.y)))}var f,v,S;e.stroke()}}},55776:(e,t,i)=>{"use strict";i.d(t,{RectangleRenderer:()=>d});var s=i(88537),r=i(86441),n=i(34026),o=i(4652),a=i(84346),l=i(68906),c=i(43891),h=i(42759);class d{constructor(e,t,i){this._data=null,this._hitTestResult=e||new a.HitTestResult(a.HitTestResult.MOVEPOINT), -this._backHitTestResult=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT_BACKGROUND),this._forceOverrideTransparency=Boolean(i)}setData(e){this._data=e}hitTest(e,t){if(null===this._data||this._data.points.length<2||this._data.nohittest)return null;const[i,s]=this._getPointsInPhysicalSpace(t),n=new r.Point(s.x,i.y),a=new r.Point(i.x,s.y),l=new r.Point(e.x*t.pixelRatio,e.y*t.pixelRatio),c=this._extendAndHitTestLineSegment(l,i,n,t);if(null!==c)return c;const h=this._extendAndHitTestLineSegment(l,a,s,t);if(null!==h)return h;let d=(0,o.distanceToSegment)(n,s,l);return d.distance<=3?this._hitTestResult:(d=(0,o.distanceToSegment)(i,a,l),d.distance<=3?this._hitTestResult:this._data.fillBackground?this._hitTestBackground(l,i,s,t):null)}getColor(){const e=(0,s.ensure)(this._data);return void 0===e.transparency?e.backcolor:(0,l.generateColor)(e.backcolor,e.transparency,this._forceOverrideTransparency)}draw(e,t){if(null===this._data||this._data.points.length<2||this._data.linewidth<=0&&!this._data.fillBackground)return;e.save();const[i,s]=this._getPointsInPhysicalSpace(t),r=this._data.linewidth?Math.max(1,Math.floor(this._data.linewidth*t.pixelRatio)):0,n=this._data.fillBackground?this.getColor():void 0,o=Math.max(1,Math.floor(t.pixelRatio));(0,h.fillRectWithBorder)(e,i.x,i.y,s.x,s.y,n,this._data.color,r,c.LINESTYLE_SOLID,this._data.extendLeft,this._data.extendRight,"center",t.physicalWidth,this._data.includeRightEdge&&1===o?1:0),e.restore()}_getPointsInPhysicalSpace(e,t=0){const i=(0,s.ensureNotNull)(this._data),[n,o]=i.points,a=e.pixelRatio,l=Math.min(n.x,o.x),c=Math.max(n.x,o.x),h=Math.min(n.y,o.y),d=Math.max(n.y,o.y),u=Math.round(l*a)+t,p=Math.round(c*a)+t,_=Math.round(h*a)+t,m=Math.round(d*a)+t;return[new r.Point(u,_),new r.Point(p,m)]}_extendAndHitTestLineSegment(e,t,i,s){const r=this._extendAndClipLineSegment(t,i,s);if(null!==r){if((0,o.distanceToSegment)(r[0],r[1],e).distance<=3)return this._hitTestResult}return null}_extendAndClipLineSegment(e,t,i){const n=(0,s.ensureNotNull)(this._data);if((0,r.equalPoints)(e,t)&&!n.extendLeft&&!n.extendRight)return null;const o=i.physicalWidth,a=Math.min(e.x,t.x),l=Math.max(e.x,t.x),c=n.extendLeft?0:Math.max(a,0),h=n.extendRight?o:Math.min(l,o);return c>h||h<=0||c>=o?null:[new r.Point(c,e.y),new r.Point(h,t.y)]}_hitTestBackground(e,t,i,s){const o=this._extendAndClipLineSegment(t,i,s);return null!==o&&(0,n.pointInBox)(e,(0,r.box)(o[0],o[1]))?this._backHitTestResult:null}}},16282:(e,t,i)=>{"use strict";i.d(t,{ScaledPaneRenderer:()=>s,ScaledPaneRendererWrapper:()=>r});class s{draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._drawImpl(e,{...t,pixelRatio:1}),e.restore()}drawBackground(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._drawBackgroundImpl(e,{...t,pixelRatio:1}),e.restore()}_drawBackgroundImpl(e,t){}}class r{constructor(e){this._base=e}hitTest(e,t){return this._base.hitTest(e,t)}draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._base.draw(e,{...t,pixelRatio:1}),e.restore()}drawBackground(e,t){ -e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._base.drawBackground&&this._base.drawBackground(e,{...t,pixelRatio:1}),e.restore()}}},13632:(e,t,i)=>{"use strict";var s;i.d(t,{StatsPosition:()=>s}),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(s||(s={}))},28113:(e,t,i)=>{"use strict";i.d(t,{StepLineDecoration:()=>s,PaneRendererStepLine:()=>g});var s,r=i(4652),n=i(84346),o=i(86441),a=i(29892),l=i(55257),c=i(49094),h=i(42759),d=i(68906);!function(e){e[e.None=0]="None",e[e.Diamonds=1]="Diamonds"}(s||(s={}));class u{initialize(e,t,i,s){var r,n,o,l;const c=e.lineStyle;t.lineCap="butt",t.lineJoin="round";const h=Math.max(Math.floor(null!==(n=null===(r=s.style)||void 0===r?void 0:r.width)&&void 0!==n?n:e.lineWidth*i.pixelRatio));void 0!==c&&(0,a.setLineStyle)(t,c);const d=h%2?.5:0;t.moveTo(Math.round(s.x*i.pixelRatio)+d,Math.round(s.y*i.pixelRatio)+d),t.strokeStyle=null!==(l=null===(o=s.style)||void 0===o?void 0:o.color)&&void 0!==l?l:e.lineColor,t.lineWidth=h}finishFragment(e){e.stroke()}hitTest(e,t,i,s,n){var a,l;const h=Math.round((i.x+s.x)/2),d=new o.Point(h,i.y),u=new o.Point(h,s.y),p=null!==(l=null===(a=i.style)||void 0===a?void 0:a.width)&&void 0!==l?l:e.lineWidth,_=(0,c.interactionTolerance)().series+p/2;return Math.min((0,r.distanceToSegment)(i,d,n).distance,(0,r.distanceToSegment)(d,u,n).distance,(0,r.distanceToSegment)(u,s,n).distance)<=_}applyColor(e,t){e.strokeStyle=t}applyLineWidth(e,t){e.lineWidth=t}drawItem(e,t,i,s){e.lineTo(i.x,i.y),void 0!==s&&(e.lineTo(s.x,i.y),e.lineTo(s.x,s.y))}}class p{constructor(){this._lineWidth=1}initialize(e,t,i,s){var r,n,o,a;this.applyColor(t,null!==(n=null===(r=s.style)||void 0===r?void 0:r.color)&&void 0!==n?n:e.lineColor),this._lineWidth=Math.max(Math.floor(null!==(a=null===(o=s.style)||void 0===o?void 0:o.width)&&void 0!==a?a:e.lineWidth*i.pixelRatio))}finishFragment(e){e.fill()}drawItem(e,t,i,s,r){if(r&&void 0!==s&&!Number.isNaN(s.y)){e.save(),e.translate(s.x,s.y),e.rotate(Math.PI/4);const i=this._scaleByLineWidth(this._lineWidth);e.scale(i,i),this._drawItemRotatedAndTranslated(e,t),e.restore()}}applyLineWidth(e,t){this._lineWidth=t}hitTest(e,t,i,s,r){var n,a;if(!s.valIsNotSameAsPrev)return!1;const l=Math.round((i.x+s.x)/2),c=new o.Point(l,s.y),h=r.subtract(c),d=Math.max(Math.floor(null!==(a=null===(n=i.style)||void 0===n?void 0:n.width)&&void 0!==a?a:e.lineWidth*t.pixelRatio));return this._hitTestTranslated(h,d)}_scaleByLineWidth(e){return Math.sqrt(e)}}class _ extends p{applyColor(e,t){e.fillStyle=t}_hitTestTranslated(e,t){return Math.abs(e.x)+Math.abs(e.y)<8*this._scaleByLineWidth(t)/2}_drawItemRotatedAndTranslated(e,t){(0,h.drawRoundRect)(e,-4,-4,8,8,2,!0)}}class m extends p{applyColor(e,t){e.fillStyle=(0,d.applyTransparency)(t,85)}_hitTestTranslated(e,t){return Math.abs(e.x)+Math.abs(e.y)<21*this._scaleByLineWidth(t)/2}_drawItemRotatedAndTranslated(e,t){(0,h.drawRoundRect)(e,-10.5,-10.5,21,21,5,!0)}}class g{constructor(e){this._data=null,this._data=null!=e?e:null}setData(e){this._data=e}hitTest(e,t){var i -;const r=this._data;if(null===r||0===r.items.length)return null;const o=r.items,a=(0,l.lowerbound)(o,e,(e,t)=>e.x<=t.x),c=Math.max(0,a-1),h=Math.min(o.length-1,a+1),d=function(e){switch(e){case s.Diamonds:return[new u,new m];default:return[new u]}}(null===(i=this._data)||void 0===i?void 0:i.decoration);for(let i=c;ii.hitTest(r,t,s,a,e)))return new n.HitTestResult(n.HitTestResult.REGULAR)}return null}draw(e,t){if(null===this._data||0===this._data.items.length)return;e.save();(function(e){switch(e){case s.Diamonds:return[new u,new _,new m];default:return[new u]}})(this._data.decoration).forEach(i=>this._drawImpl(e,t,i)),e.restore()}_drawImpl(e,t,i){var s,r,n,a,l,c,h,d,u,p,_,m,g,f,v,S;if(null===this._data||0===this._data.items.length)return;const{lineWidth:y,lineColor:b,items:w}=this._data,C=t.pixelRatio;let P=Math.max(Math.floor(null!==(r=null===(s=w[0].style)||void 0===s?void 0:s.width)&&void 0!==r?r:y*C)),T=P%2?.5:0;i.initialize(this._data,e,t,w[0]);const x=null!==(a=null===(n=this._data.visibleItemsRange)||void 0===n?void 0:n.startItemIndex)&&void 0!==a?a:0,I=null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:w.length;if(!(I<=x)){e.beginPath(),i.applyColor(e,null!==(d=null===(h=w[x].style)||void 0===h?void 0:h.color)&&void 0!==d?d:b);for(let s=x;s{"use strict";i.d(t,{calculateLabelPosition:()=>p,wordWrap:()=>g,TextRenderer:()=>M});var s=i(86441),r=i(88537),n=i(34026),o=i(62820),a=i(84346),l=i(42759),c=i(29892),h=i(80643),d=i(93435),u=i(43891);function p(e,t,i,r,n){const o=.5*(t.x+i.x);let a=i.y;return t.y>i.y?(a-=e.height/2+r.y,a=Math.max(e.height/2,a)):(a+=e.height/2+r.y,a=Math.min(n-e.height/2,a)),new s.Point(o,a)}let _;function m(){const e=document.createElement("canvas");e.width=0,e.height=0,_=(0,r.ensureNotNull)(e.getContext("2d"))}function g(e,t,i){_||m(),i=(0,h.isString)(i)?parseInt(i):i,e+="";const s=!(0,h.isNumber)(i)||!isFinite(i)||i<=0?e.split(/\r\n|\r|\n|$/):e.split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(s[s.length-1]||s.pop(),!(0,h.isNumber)(i)||!isFinite(i)||i<=0)return s;_.font=t;const r=[];for(let e=0;e0&&_.measureText(o.slice(0,3*--e-1).join("")).width>i;);if(e>0)r.push(o.slice(0,3*e-1).join("")),o.splice(0,3*e);else{const e=o[0]+(o[1]||"");if(a=1===a?1:~~(i/_.measureText(e).width*e.length),_.measureText(e.substring(0,a)).width<=i)for(;_.measureText(e.substring(0,a+1)).width<=i;)a++;else for(;a>1&&_.measureText(e.substring(0,--a)).width>i;);a<1&&(a=1),r.push(e.substring(0,a)),o[0]=e.substring(a),o[1]=""}if(_.measureText(o.join("")).width<=i){r.push(o.join(""));break}}}return r}function f(e,t,i){if(0===i)return e.clone();const r=(e.x-t.x)*Math.cos(i)-(e.y-t.y)*Math.sin(i)+t.x,n=(e.x-t.x)*Math.sin(i)+(e.y-t.y)*Math.cos(i)+t.y;return new s.Point(r,n)}function v(e,t){const i=Math.round(t+2*C(e)+2*b(e));return i%2?i-1:i}function S(e,t){return T(e)*t+P(e)*(t-1)+2*w(e)+2*y(e)}function y(e){return void 0!==e.boxPaddingVert?e.boxPaddingVert*I(e):void 0!==e.boxPadding?e.boxPadding*I(e):T(e)/3}function b(e){return void 0!==e.boxPaddingHorz?e.boxPaddingHorz*I(e):void 0!==e.boxPadding?e.boxPadding*I(e):T(e)/3}function w(e){return(e.backgroundVertInflate||0)*I(e)}function C(e){return(e.backgroundHorzInflate||0)*I(e)}function P(e){return(e.padding||0)*I(e)}function T(e){return Math.ceil(x(e)*I(e))}function x(e){return e.fontsize||e.fontSize||30}function I(e){const t=Math.min(1,Math.max(.2,Math.min(e.scaleX||1,e.scaleY||1)));if(1===t)return t;const i=x(e);return Math.ceil(t*i)/i}class M{constructor(e,t){this._data=null,this._internalData=null,this._boxSize=null,this._polygonPoints=null,this._linesInfo=null,this._fontInfo=null,this._hittest=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT,{areaName:a.AreaName.Text}),void 0!==e&&this.setData(e)}setData(e){e.horzTextAlign||(e.horzTextAlign=e.horzAlign),function(e,t){if(null===e||null===t)return null===e==(null===t);if(void 0===e.points!=(void 0===t.points))return!1;if(void 0!==e.points&&void 0!==t.points){if(e.points.length!==t.points.length)return!1;for(let r=0;re){const i=(0,s.box)(new s.Point(0,0),new s.Point(e,t));return this._getPolygonPoints().every(e=>!(0,n.pointInBox)(e,i))}return!1}setPoints(e,t){(0,r.ensureNotNull)(this._data).points=e,this._hittest=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT)}fontStyle(e){return null===this._data?"":this._getFontInfo().fontStyle}wordWrap(e,t,i){return g(e,i||this.fontStyle(),t)}draw(e,t){if(null===this._data||void 0===this._data.points||0===this._data.points.length)return;if(this.isOutOfScreen(t.cssWidth,t.cssHeight))return;const i=t.pixelRatio,s=this._getInternalData(),r=this._getRotationPoint().scaled(i);e.save(),e.translate(r.x,r.y),e.rotate(this._data.angle||0),e.translate(-r.x,-r.y);const n=this._getFontInfo().fontSize;e.textBaseline=s.textBaseLine,e.textAlign=s.textAlign,e.font=this.fontStyle();const{scaledLeft:o,scaledRight:a,scaledTop:h,scaledBottom:p}=function(e,t){const i=Math.round(e.boxLeft*t),s=Math.round(e.boxTop*t);return{scaledLeft:i,scaledRight:i+Math.round(e.boxWidth*t),scaledTop:s,scaledBottom:s+Math.round(e.boxHeight*t)}}(s,i);if(this._data.backgroundColor||this._data.borderColor||this._data.highlightBorder&&this._data.wordWrapWidth){const t=this._data.borderWidth||Math.max(n/12,1),s=Math.round(t*i),r=s/2;let d=!1;if(this._data.boxShadow){e.save();const{shadowColor:t,shadowBlur:i,shadowOffsetX:s=0,shadowOffsetY:r=0}=this._data.boxShadow;e.shadowColor=t,e.shadowBlur=i,e.shadowOffsetX=s,e.shadowOffsetY=r,d=!0}if(this._data.backgroundRoundRect)this._data.backgroundColor&&((0,l.drawRoundRect)(e,o,h,a-o,p-h,this._data.backgroundRoundRect*i),e.fillStyle=this._data.backgroundColor,e.fill(),d&&(e.restore(),d=!1)),this._data.borderColor&&((0,l.drawRoundRect)(e,o-r,h-r,a-o+s,p-h+s,this._data.backgroundRoundRect*i+s),e.strokeStyle=this._data.borderColor,e.lineWidth=s,e.stroke(),d&&(e.restore(),d=!1));else if(this._data.backgroundColor&&(e.fillStyle=this._data.backgroundColor,e.fillRect(o,h,a-o,p-h),d&&(e.restore(),d=!1)),this._data.borderColor||this._data.highlightBorder){let t;this._data.borderColor?(e.strokeStyle=this._data.borderColor,t=s):(e.strokeStyle=this._data.color,(0,c.setLineStyle)(e,u.LINESTYLE_DASHED),t=Math.max(1,Math.floor(i))), -e.lineWidth=t,e.beginPath(),e.moveTo(o-t/2,h-t/2),e.lineTo(o-t/2,p+t/2),e.lineTo(a+t/2,p+t/2),e.lineTo(a+t/2,h-t/2),e.lineTo(o-t/2,h-t/2),e.stroke(),d&&e.restore()}}e.fillStyle=this._data.color;const _=(o+Math.round(s.textStart*i))/i,m=.05*n;let g=(h+Math.round((s.textTop+m)*i))/i;const f=P(this._data),v=this._getLinesInfo();for(const t of v.lines)(0,d.drawScaled)(e,i,()=>e.fillText(t,_,g)),g+=n+f;e.restore()}_getLinesMaxWidth(e){if(_||m(),_.textBaseline="alphabetic",_.font=this.fontStyle(),null!==this._data&&this._data.wordWrapWidth&&!this._data.forceCalculateMaxLineWidth)return this._data.wordWrapWidth*I(this._data);let t=0;for(const i of e)t=Math.max(t,_.measureText(i).width);return t}_getInternalData(){if(null!==this._internalData)return this._internalData;const e=(0,r.ensureNotNull)(this._data),t=this._getBoxSize(),i=t.boxWidth,s=t.boxHeight,n=(0,r.ensureDefined)(e.points)[0];let a=n.y;switch(e.vertAlign){case"bottom":a-=s+e.offsetY;break;case"middle":a-=s/2;break;case"top":a+=e.offsetY}let l=n.x;const c=b(e),h=y(e),d=C(e)+c;let u;const p=a+(w(e)+h)+T(e)/2;let _;switch(e.horzAlign){case"left":l+=e.offsetX;break;case"center":l-=i/2;break;case"right":l-=i+e.offsetX}switch((0,r.ensureDefined)(e.horzTextAlign)){case"left":_="start",u=l+d,(0,o.isRtl)()&&(e.forceTextAlign?_="left":(u=l+i-d,_="right"));break;case"center":_="center",u=l+i/2;break;case"right":_="end",u=l+i-d,(0,o.isRtl)()&&e.forceTextAlign&&(_="right")}return this._internalData={boxLeft:l,boxTop:a,boxWidth:i,boxHeight:s,textStart:u-l,textTop:p-a,textAlign:_,textBaseLine:"middle"},this._internalData}_getLinesInfo(){if(null===this._linesInfo){const e=(0,r.ensureNotNull)(this._data);let t=this.wordWrap(e.text,e.wordWrapWidth);if(void 0!==e.maxHeight){const i=function(e){const t=(0,r.ensureDefined)(e.maxHeight),i=T(e),s=P(e);return Math.floor((t+s)/(i+s))}(e);t.length>i&&(t=t.slice(0,i))}this._linesInfo={linesMaxWidth:this._getLinesMaxWidth(t),lines:t}}return this._linesInfo}_getFontInfo(){if(null===this._fontInfo){const e=(0,r.ensureNotNull)(this._data),t=T(e),i=(e.bold?"bold ":"")+(e.italic?"italic ":"")+t+"px "+e.font;this._fontInfo={fontStyle:i,fontSize:t}}return this._fontInfo}_getBoxSize(){if(null===this._boxSize){const e=this._getLinesInfo(),t=(0,r.ensureNotNull)(this._data);this._boxSize={boxWidth:v(t,e.linesMaxWidth),boxHeight:S(t,e.lines.length)}}return this._boxSize}_getPolygonPoints(){if(null!==this._polygonPoints)return this._polygonPoints;if(null===this._data)return[];const e=this._data.angle||0,{boxLeft:t,boxTop:i,boxWidth:r,boxHeight:n}=this._getInternalData(),o=this._getRotationPoint();return this._polygonPoints=[f(new s.Point(t,i),o,e),f(new s.Point(t+r,i),o,e),f(new s.Point(t+r,i+n),o,e),f(new s.Point(t,i+n),o,e)],this._polygonPoints}_getRotationPoint(){const{boxLeft:e,boxTop:t,boxWidth:i,boxHeight:n}=this._getInternalData(),{horzAlign:o,vertAlign:a}=(0,r.ensureNotNull)(this._data);let l,c;switch(o){case"center":l=e+i/2;break;case"left":l=e;break;case"right":l=e+i}switch(a){case"middle":c=t+n/2;break;case"top":c=t;break;case"bottom":c=t+n} -return new s.Point(l,c)}}},63300:(e,t,i)=>{"use strict";i.d(t,{drawArrow:()=>d,TrendLineRenderer:()=>u});var s=i(88537),r=i(4652),n=i(49612),o=i(84346),a=i(29892),l=i(49094),c=i(42759);function h(e,t,i,s,r){t.save(),t.fillStyle="#000000",t.beginPath(),t.arc(e.x*r,e.y*r,i*r,0,2*Math.PI,!1),t.fill(),s.strokeWidth&&(t.lineWidth=s.strokeWidth,t.stroke()),t.restore()}function d(e,t,i,s,r,n=!1){if(t.subtract(e).length()<1)return;const o=(0,l.getArrowPoints)(e,t,s,n);for(let e=0;e0&&(l[0].x===l[1].x?(0,c.drawVerticalLine)(e,Math.round(l[0].x*s),l[0].y*s,l[1].y*s):l[0].y===l[1].y?(0,c.drawHorizontalLine)(e,Math.round(l[0].y*s),l[0].x*s,l[1].x*s):(0,a.drawLine)(e,l[0].x*s,l[0].y*s,l[1].x*s,l[1].y*s)),i.overlayLineEndings&&this._drawEnds(e,o,i.linewidth,s)}hitTest(e,t){const i=this._data;if(null===i)return null;if("points"in i&&i.points.length<2)return null;const s=(0,l.interactionTolerance)().line,n=i.points[0],o=i.points[1],a=this._extendAndClipLineSegment(n,o,t);if(null!==a){if((0,r.distanceToSegment)(a[0],a[1],e).distance<=s)return this._hittest}return null}_extendAndClipLineSegment(e,t,i){const r=(0,s.ensureNotNull)(this._data);return(0,l.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)}_drawEnds(e,t,i,r){const o=t[0],a=t[1],l=(0,s.ensureNotNull)(this._data);switch(l.leftend){case n.LineEnd.Arrow:d(a,o,e,i,r);break;case n.LineEnd.Circle:h(o,e,i,(0,s.ensureDefined)(l.endstyle),r)}switch(l.rightend){case n.LineEnd.Arrow:d(o,a,e,i,r);break;case n.LineEnd.Circle:h(a,e,i,(0,s.ensureDefined)(l.endstyle),r)}}}},44349:(e,t,i)=>{"use strict";i.d(t,{VerticalLineRenderer:()=>a});var s=i(84346),r=i(29892),n=i(42759),o=i(49094);class a{constructor(){this._data=null,this._hitTest=new s.HitTestResult(s.HitTestResult.MOVEPOINT)}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data||null===this._hitTest)return null;const t=(0,o.interactionTolerance)().line,i=Math.abs(e.x-this._data.x)<=t+this._data.linewidth/2,s=void 0===this._data.top||this._data.top-e.y<=t,r=void 0===this._data.bottom||e.y-this._data.bottom<=t;return i&&s&&r?this._hitTest:null}draw(e,t){if(null===this._data)return;if(this._data.linewidth<=0)return;if(this._data.x<-this._data.linewidth/2||this._data.x>t.cssWidth+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color, -e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&(0,r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.top?Math.max(this._data.top,0):0,o=void 0!==this._data.bottom?Math.min(this._data.bottom,t.cssHeight):t.cssHeight,a=Math.round(this._data.x*i),l=Math.floor(s*i),c=Math.ceil(o*i);(0,n.drawVerticalLine)(e,a,l,c)}}},59555:(e,t,i)=>{"use strict";i.d(t,{sortSourcesPreOrdered:()=>s,sortSources:()=>r});const s={ChartEventsSource:10000001,Dividends:10000002,Splits:10000003,Earnings:10000004,RollDates:10000005,LineToolOrder:10000006,LineToolPosition:10000007,LineToolExecution:10000008,AlertLabel:10000009};function r(e){return[...e].sort((e,t)=>e.zorder()-t.zorder())}},71053:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PlotRowSearchMode:()=>a,PlotList:()=>h,mergeMinMax:()=>d,mergePlotRows:()=>u});var s=i(88537),r=i(55257),n=i(2271);const o=(0,i(98125).getLogger)("Chart.PlotList");var a;!function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.Exact=0]="Exact",e[e.NearestRight=1]="NearestRight"}(a||(a={}));function l(e){return e.index}function c(e){return e.value[0]}class h{constructor(e=null,t=null){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache=new Map,this._rowSearchCacheByIndex=new Map,this._rowSearchCacheByIndexWithoutEmptyValues=new Map,this._rowSearchCacheByTime=new Map,this._rowSearchCacheByTimeWithoutEmptyValues=new Map,this._plotFunctions=e||new Map,this._emptyValuePredicate=t}clear(){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache.clear(),this._invalidateSearchCaches()}first(){return this.size()>0?this._items[this._start]:null}last(){return this.size()>0?this._items[this._end-1]:null}firstIndex(){return this.size()>0?this._indexAt(this._start):null}lastIndex(){return this.size()>0?this._indexAt(this._end-1):null}size(){return this._end-this._start}isEmpty(){return 0===this.size()}contains(e){return null!==this.search(e,a.Exact)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}add(e,t){if(this._shareRead)return o.logDebug("add: readonly collection modification attempt"),!1;const i={index:e,value:t},s=this._nonCachedSearch(e,a.Exact,l);return this._invalidateSearchCaches(),null===s?(this._items.splice(this._lowerbound(e,l),0,i),this._start=0,this._end=this._items.length,!0):(this._items[s]=i,!1)}search(e,t=a.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByIndex,this._rowSearchCacheByIndexWithoutEmptyValues,l,i)}searchByTime(e,t=a.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByTime,this._rowSearchCacheByTimeWithoutEmptyValues,c,i)}fold(e,t){let i=t;for(let t=this._start;t=i;--t){ -const i=this._indexAt(t),s=this._valueAt(t);if(e(i,s))return{index:i,value:s}}return null}each(e){for(let t=this._start;t!1,next:()=>{throw new Error("Invalid operation")}};let r=i-1;return{hasNext:()=>r(r+=1,this._items[r])}}minMaxOnRangeCached(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRangeCachedImpl(e-r.offset,t-r.offset,r.name))}return s}minMaxOnRange(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRange(e-r.offset,t-r.offset,r.name))}return s}merge(e){return this._shareRead?(o.logDebug("merge: readonly collection modification attempt"),null):0===e.length?null:this.isEmpty()||e[e.length-1].indexthis._items[this._items.length-1].index?this._append(e):1===e.length&&e[0].index===this._items[this._items.length-1].index?(this._updateLast(e[0]),e[0]):this._merge(e)}addTail(e,t=!1){let i=0;t&&this._end-this._start>0&&(i=1,this._items[this._end-this._start-1].value=e[0].value);for(let t=i;tvoid 0!==e).sort((e,t)=>e.index-t.index),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._start=0,this._end=this._items.length}remove(e){if(this._shareRead)return o.logDebug("remove: readonly collection modification attempt"),null;const t=this._nonCachedSearch(e,a.NearestRight,l);if(null===t)return null;const i=this._items.splice(t);return this._end=this._items.length,this._minMaxCache.clear(),this._invalidateSearchCaches(),i.length>0?i[0]:null}state(){return{start:this._start,end:this._end,data:this._items,shareread:this._shareRead}}restoreState(e){e?(this._start=e.start,this._end=e.end,this._shareRead=e.shareread,this._items=e.data,this._minMaxCache.clear(),this._invalidateSearchCaches()):this.clear()}_indexAt(e){return this._items[e].index}_valueAt(e){return this._items[e].value}_length(){return this._items.length}_searchImpl(e,t,i,s,r,n){const o=void 0!==n?i:s,a=void 0!==n?1e4*(t+1)+n:t;let l=o.get(e);if(void 0!==l){const e=l.get(a) -;if(void 0!==e)return e}const c=this._nonCachedSearch(e,t,r,n);if(null===c)return null;const h={index:this._indexAt(c),value:this._valueAt(c)};return void 0===l&&(l=new Map,o.set(e,l)),l.set(a,h),h}_nonCachedSearch(e,t,i,s){const r=this._lowerbound(e,i),n=r===this._end||e!==i(this._items[r]);if(n&&t!==a.Exact)switch(t){case a.NearestLeft:return this._searchNearestLeft(r,s);case a.NearestRight:return this._searchNearestRight(r,s);default:throw new TypeError("Unknown search mode")}if(void 0===s||n||t===a.Exact)return n?null:r;switch(t){case a.NearestLeft:return this._nonEmptyNearestLeft(r,s);case a.NearestRight:return this._nonEmptyNearestRight(r,s);default:throw new TypeError("Unknown search mode")}}_nonEmptyNearestRight(e,t){const i=(0,s.ensure)(this._emptyValuePredicate),r=(0,s.ensure)(t);for(;e=this._start&&i(this._valueAt(e),r);)e-=1;return et(e)t.index>e,this._start,this._end)}_plotMinMax(e,t,i){let s=null;const r=this._plotFunctions.get(i);if(void 0===r)throw new Error(`Plot "${i}" is not registered`);for(let i=e;is.max&&(s.max=e)))}return s}_invalidateCacheForRow(e){const t=Math.floor(e.index/30);this._minMaxCache.forEach(e=>e.delete(t))}_prepend(e){return(0,s.assert)(!this._shareRead,"collection should not be readonly"),(0,s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=e.concat(this._items),this._start=0,this._end=this._items.length,e[0]}_append(e){return(0,s.assert)(!this._shareRead,"collection should not be readonly"),(0,s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=this._items.concat(e),this._start=0,this._end=this._items.length,e[0]}_updateLast(e){(0,s.assert)(!this.isEmpty(),"plot list should not be empty");const t=this._items[this._end-1];(0,s.assert)(t.index===e.index,"last row index should match new row index"),this._invalidateCacheForRow(e),this._invalidateSearchCaches(),this._items[this._end-1]=e}_merge(e){return(0,s.assert)(0!==e.length,"plot rows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=u(this._items,e),this._start=0,this._end=this._items.length,e[0]}_minMaxOnRangeCachedImpl(e,t,i){ -if(this.isEmpty())return null;let r=null;const n=(0,s.ensureNotNull)(this.firstIndex()),o=(0,s.ensureNotNull)(this.lastIndex()),a=Math.max(e,n),l=Math.min(t,o),c=30*Math.ceil(a/30),h=Math.max(c,30*Math.floor(l/30));r=d(r,this._minMaxOnRange(a,Math.min(c,t,l),i));let u=this._minMaxCache.get(i);void 0===u&&(u=new Map,this._minMaxCache.set(i,u));for(let e=Math.max(c+1,a);et[o].index?o++:(n++,o++,r--);return r}(e,t),s=new Array(i);let r=0,n=0;const o=e.length,a=t.length;let l=0;for(;rt[n].index?(s[l]=t[n],n++):(s[l]=t[n],r++,n++),l++;for(;r{"use strict";i.d(t,{PriceAxisView:()=>p});var s=i(86441),r=i(34026),n=i(71413),o=i(68906),a=i(62820),l=i(93435),c=i(84346),h=i(42759),d=i(56589);class u{constructor(e,t){this.setData(e,t)}setData(e,t){this._data=e,this._commonData=t}draw(e,t,i,s,r,n,c){var d,u,p;const _=this._data;if(!_.visible||this._isOutOfScreen(t,r))return;const m=this._commonData,g=void 0!==_.labelIcon,f=_.ignoreOffset?0:t.offsetSize,v=t.borderSize,S=t.paddingTop+m.additionalPaddingTop,y=t.paddingBottom+m.additionalPaddingBottom,b=t.paddingInner,w=t.paddingOuter,C=t.fontSize;let P=_.text,T=_.textColor||m.textColor,x=_.secondLine||"",I=m.secondLineTextColor||T,M=_.thirdLine||"";const L=m.thirdLineTextColor||T;0===x.length&&(x=M,I=L,M=""),0===P.length&&(P=x,T=I,x=M,I=L,M=""),e.save(),e.font=t.font;const A=i.yMidCorrection(e,P)*c,E=Math.ceil(i.measureText(e,P)),k=C+S+y,D=Boolean(x),V=Boolean(M),B=D?Math.ceil(i.measureText(e,x)):0,N=V?Math.ceil(i.measureText(e,M)):0,R=v+b+w+E+f,O=B>0?v+b+w+B+f:0,F=N>0?v+b+w+N+f:0,W=Math.max(R,O,F),H=Math.max(1,Math.floor(c));let z=Math.round(k*c);z%2!=H%2&&(z+=1);const U=Math.round((C+t.lineSpacing)*c),j=Math.round(2*(C+t.lineSpacing)*c),G=Math.max(1,Math.floor(v*c)),q=_.separatorVisible?G:0,Y=_.borderVisible?G:0,K=g?z:Math.round(W*c),$=Math.round(f*c),X=Math.ceil(s*c),Z=Math.ceil(b*c),J=Math.round((null!==(d=m.fixedCoordinate)&&void 0!==d?d:m.coordinate)*c)-Math.floor(.5*c),Q=Math.floor(J+H/2-z/2),ee=Q+z,te="right"===n,ie=te?X-q:q,se=X;let re,ne=ie;const oe=(0,o.resetTransparency)(null!==(u=_.backgroung)&&void 0!==u?u:m.background);e.fillStyle=oe;const ae=2*c;if(e.textAlign=te?"right":"left",e.textBaseline="middle",te?(ne=ie-K, -re=ie-$-Z-1):(ne=ie+K,re=ie+$+Z),P||g){const i=V?z+j:D?z+U:z;if(((t,s,r)=>{te?(0,h.drawRoundRectWithInnerBorder)(e,ne,Q,K,i,t,[ae,0,0,ae],Y,s,r):(0,h.drawRoundRectWithInnerBorder)(e,ie,Q,K,i,t,[0,ae,ae,0],Y,s,r)})(oe,null!==(p=m.borderColor)&&void 0!==p?p:oe,m.borderStyle),_.separatorVisible&&(e.fillStyle=t.paneBackgroundColor,e.fillRect(te?se-q:0,Q,q,ee-Q)),g){switch(_.labelIcon){case 0:this._drawPlusIcon(e,ie,ne,Q,J,ee,H);break;case 1:this._drawClockIcon(e,ie,ne,J,H,c)}return void e.restore()}e.save(),e.translate(re,(Q+ee)/2+A),(0,l.drawScaled)(e,c,()=>{e.fillStyle=T,e.fillText(P,0,0)}),e.restore()}D&&(e.fillStyle=I,e.save(),e.translate(re,(Q+ee)/2+A+U),(0,l.drawScaled)(e,c,()=>{e.fillText((0,a.startWithLTR)(x),0,0)}),e.restore()),V&&(e.fillStyle=L,e.save(),e.translate(re,(Q+ee)/2+A+j),(0,l.drawScaled)(e,c,()=>{e.fillText((0,a.startWithLTR)(M),0,0)}),e.restore()),e.restore()}height(e){const t=this._lines();return this._data.visible&&0!==t?t*e.fontSize+(t-1)*e.lineSpacing+e.paddingTop+this._commonData.additionalPaddingTop+e.paddingBottom+this._commonData.additionalPaddingBottom:0}hitTest(e){const t=this._data.hitTestData;if(void 0===t||!this._data.visible)return null;const i=(0,n.lastMouseOrTouchEventInfo)().isTouch?10:0,o=(0,s.box)(new s.Point(t.xl-i,t.y-i),new s.Point(t.xl+t.containerWidth+i,t.y+t.containerHeight+i)),a=t.left&&(0,r.pointInBox)(e,o),l=(0,s.box)(new s.Point(t.xr-i,t.y-i),new s.Point(t.xr+t.containerWidth+i,t.y+t.containerHeight+i)),h=t.right&&(0,r.pointInBox)(e,l);if(a||h){const i=a?"left":"right";return new c.HitTestResult(c.HitTestResult.CUSTOM,{cursorType:d.PaneCursorType.Default,clickHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tapHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tooltip:t.tooltip})}return null}_drawPlusIcon(e,t,i,s,r,n,o){e.fillStyle=this._commonData.textColor,e.strokeStyle=this._commonData.textColor,e.lineWidth=o;const a=Math.abs(t-i);let l=Math.round(.35*a);l%2!=o%2&&(l+=1);let c=Math.round(.65*a);c%2!=o%2&&(c+=1);const h=Math.floor((a-l)/2),d=Math.min(t,i),u=d+Math.floor(a/2-o/2);e.fillRect(d+h,r,l,o),e.fillRect(u,s+h,o,l),e.beginPath(),e.arc(u+o/2,r+o/2,c/2,0,2*Math.PI,!1),e.stroke()}_drawClockIcon(e,t,i,s,r,n){e.fillStyle=this._commonData.textColor,e.lineWidth=r;const o=Math.abs(t-i);let a=Math.round(.35*o);a%2!=r%2&&(a+=1);let l=Math.round(.65*o);l%2!=r%2&&(l+=1);const c=Math.min(t,i)+Math.floor(o/2-r/2);e.save(),e.translate(c+r/2-l/2,s+r/2-l/2),e.scale(n,n);const h=new Path2D("M7.5 0.8a1 1 0 0 0 0 13.4 1 1 0 0 0 0-13.4zm0 1a1 1 0 0 1 0 11 1 1 0 0 1 0-11zm-.97-.25A3.5 3.5 0 0 0 3.5 0 3.5 3.5 0 0 0 0 3.5a3.5 3.5 0 0 0 1.75 3.03l.5-.86A2.5 2.5 0 0 1 1 3.5 2.5 2.5 0 0 1 3.5 1a2.5 2.5 0 0 1 2.17 1.25zm6.72 4.78A3.5 3.5 0 0 0 15 3.5 3.5 3.5 0 0 0 11.5 0a3.5 3.5 0 0 0-3.03 1.75l.86.5A2.5 2.5 0 0 1 11.5 1 2.5 2.5 0 0 1 14 3.5a2.5 2.5 0 0 1-1.25 2.17zM7 5h1v5H7zm3 2v1H5V7z");e.fill(h),e.restore()}_lines(){const e=this._data;return(e.text?1:0)+(e.secondLine?1:0)+(e.thirdLine?1:0)}_isOutOfScreen(e,t){var i -;const s=this._commonData,r=null!==(i=s.fixedCoordinate)&&void 0!==i?i:s.coordinate,n=this.height(e),o=n/this._lines();return r-o/2-3>t||r+(n-o/2)+3<0}}class p{constructor(e){this._commonRendererData={coordinate:0,textColor:"#FFF",background:"#000",additionalPaddingBottom:0,additionalPaddingTop:0},this._axisRendererData={text:"",visible:!1,separatorVisible:!1,borderVisible:!1,ignoreOffset:!1},this._paneRendererData={text:"",visible:!1,separatorVisible:!0,borderVisible:!1,ignoreOffset:!0},this._invalidated=!0,this._axisRenderer=new(e||u)(this._axisRendererData,this._commonRendererData),this._paneRenderer=new(e||u)(this._paneRendererData,this._commonRendererData)}text(){return this._updateRendererDataIfNeeded(),this._axisRendererData.text}secondLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.secondLine}thirdLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.thirdLine}background(){return this._updateRendererDataIfNeeded(),this._commonRendererData.background}color(){return this._updateRendererDataIfNeeded(),this.generateTextColor(this.background())}generateTextColor(e){return(0,o.colorFromBackground)(e)}coordinate(){return this._updateRendererDataIfNeeded(),this._commonRendererData.coordinate}floatCoordinate(){var e;return this._updateRendererDataIfNeeded(),null!==(e=this._commonRendererData.floatCoordinate)&&void 0!==e?e:this._commonRendererData.coordinate}update(e){this._invalidated=!0}height(e){return this._updateRendererDataIfNeeded(),Math.max(this._axisRenderer.height(e),this._paneRenderer.height(e))}getFixedCoordinate(){return this._commonRendererData.fixedCoordinate||0}setFixedCoordinate(e){this._commonRendererData.fixedCoordinate=e}isVisible(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible||this._paneRendererData.visible}isAxisLabelVisible(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible}isPaneLabelVisible(){return this._updateRendererDataIfNeeded(),this._paneRendererData.visible}renderer(){return this._updateRendererDataIfNeeded(),this._axisRenderer}paneRenderer(){return this._updateRendererDataIfNeeded(),this._paneRenderer}setPaneRendererLabelIcon(e){this._paneRendererData.labelIcon=e}setPaneLabelVisible(e){this._paneRendererData.visible=e,this._invalidated=!0}ignoreAlignment(){return!1}_updateRendererDataIfNeeded(){this._invalidated&&(this._commonRendererData.fixedCoordinate=void 0,this._updateRendererData(this._axisRendererData,this._paneRendererData,this._commonRendererData),this._invalidated=!1)}}},22932:(e,t,i)=>{"use strict";i.d(t,{isPriceDataSource:()=>a,PriceDataSource:()=>l});var s=i(62443),r=i(2872),n=i.n(r),o=i(79680);function a(e){return e instanceof l}class l extends s.DataSource{constructor(e,t){super(t),this._formatterChanged=new(n()),this._priceStepChanged=new(n()),this._currencyChanged=new(n()),this._unitChanged=new(n()),this._priceRangeReadyChanged=new(n()),this._priceStep=null,this._priceRangeReady=!0,this._model=e}barColorer(){return null}base(){return 0}model(){return this._model} -currencyChanged(){return this._currencyChanged}isCurrencySource(){return!0}unitChanged(){return this._unitChanged}isUnitSource(){return!0}priceRange(e,t){return null}isDraggable(){return!0}priceLineColor(e){return e}formatterChanged(){return this._formatterChanged}priceStep(e){return this._priceStep}priceStepChanged(){return this._priceStepChanged}isIncludedInAutoScale(){return!0}correctScaleMargins(e){return e}priceRangeReady(){return this._priceRangeReady}priceRangeReadyChanged(){return this._priceRangeReadyChanged}disablePriceRangeReady(){const e=this.priceScale();null===e||e.isAutoScale()||e.mainSource()!==this||(this._priceRangeReady=!1,e.recalculatePriceRangeOnce()),this._priceRangeReadyChanged.fire(!1)}statusView(){return null}legendView(){return null}marketStatusModel(){return null}dataUpdatedModeModel(){return null}dataProblemModel(){return null}_enablePriceRangeReady(){this._priceRangeReady=!0,this._priceRangeReadyChanged.fire(!0)}_onSourceCurrencyChanged(){(0,o.isActingAsSymbolSource)(this)||this._currencyChanged.fire()}_onSourceUnitChanged(){(0,o.isActingAsSymbolSource)(this)||this._unitChanged.fire()}_onSourcePriceRangeReadyChanged(e){(0,o.isActingAsSymbolSource)(this)||e||this.disablePriceRangeReady()}}},55057:(e,t,i)=>{"use strict";i.d(t,{PriceLineAxisView:()=>c,SeriesPriceLineAxisView:()=>h,StudyPriceLineAxisView:()=>d});var s=i(97938),r=i(88537),n=i(29892),o=i(43891),a=i(42759);class l{constructor(e,t){this.setData(e,t)}setData(e,t){this._data=e,this._commonData=t}draw(e,t,i,s,l,c,h){var d;if(!this._data.visible)return;const u=null!==(d=this._commonData.fixedCoordinate)&&void 0!==d?d:this._commonData.coordinate;e.lineWidth=Math.max(1,Math.floor((0,r.ensureDefined)(this._data.linewidth)*h)),e.lineCap="butt",(0,n.setLineStyle)(e,void 0===this._data.linestyle?o.LINESTYLE_DOTTED:this._data.linestyle),e.strokeStyle=this._commonData.textColor,(0,a.drawHorizontalLine)(e,Math.round(u*h),0,Math.ceil(s*h))}height(e){return 0}}class c extends s.PriceAxisView{constructor(e){super(e||l)}ignoreAlignment(){return!0}_updateRendererData(e,t,i){if(t.visible=!1,e.visible=!1,!this._isVisible())return;const s=this._value();s.noData||(i.background="",i.textColor=this._priceLineColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate,e.linewidth=this._lineWidth(),e.linestyle=this._lineStyle(),e.backgroundAreaVisible=this._backgroundAreaVisible(),e.backgroundAreaColor=this._backgroundAreaColor(),e.backgroundAreaHeight=this._backgroundAreaHeight(),e.visible=!0)}_lineStyle(){return o.LINESTYLE_DOTTED}_backgroundAreaVisible(){return!1}_backgroundAreaColor(){return""}_backgroundAreaHeight(){return 0}}class h extends c{constructor(e){super(),this._series=e}_value(){return this._series.lastValueData(void 0,!0)}_priceLineColor(e){return this._series.priceLineColor(e)}_lineWidth(){return this._series.properties().childs().priceLineWidth.value()}_isVisible(){const e=this._series.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value() -;return this._series.properties().childs().showPriceLine.value()&&e}}class d extends c{constructor(e,t){super(),this._study=e,this._plotname=t}_value(){return this._study.lastValueData(this._plotname,!0)}_lineWidth(){return this._study.properties().styles[this._plotname].linewidth.value()}_lineStyle(){return o.LINESTYLE_DOTTED}_priceLineColor(e){return e}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showStudyLastValue.value();return this._study.properties().styles[this._plotname].trackPrice.value()&&e}}},27402:(e,t,i)=>{"use strict";i.d(t,{PriceScaleBase:()=>L});var s=i(88537),r=i(80643),n=i(2872),o=i.n(n),a=i(55257),l=i(69927),c=i(74477),h=i(56972),d=i(22932),u=i(2015),p=i.n(u),_=i(81851),m=i(79680),g=i(37667),f=i(79222),v=i(59555),S=i(64514);class y{constructor(e,t){if(this._base=e,this._integralDividers=t,(0,S.isBaseDecimal)(this._base))this._fractionalDividers=[2,2.5,2];else{this._fractionalDividers=[];for(let e=this._base;1!==e;){if(e%2==0)this._fractionalDividers.push(2),e/=2;else{if(e%5!=0)throw new Error("unexpected base");this._fractionalDividers.push(2),this._fractionalDividers.push(2.5),e/=5}if(this._fractionalDividers.length>100)throw new Error("something wrong with base")}}}tickSpan(e,t,i){const s=0===this._base?0:1/this._base;let r=Math.pow(10,Math.max(0,Math.ceil((0,S.log10)(e-t)))),n=0,o=this._integralDividers[0];for(;;){const e=(0,S.greaterOrEqual)(r,s,1e-14)&&r>s+1e-14,t=(0,S.greaterOrEqual)(r,i*o,1e-14),a=(0,S.greaterOrEqual)(r,1,1e-14);if(!(e&&t&&a))break;r/=o,o=this._integralDividers[++n%this._integralDividers.length]}if(r<=s+1e-14&&(r=s),r=Math.max(1,r),this._fractionalDividers.length>0&&(0,S.equal)(r,1,1e-14))for(n=0,o=this._fractionalDividers[0];(0,S.greaterOrEqual)(r,i*o,1e-14)&&r>s+1e-14;)r/=o,o=this._fractionalDividers[++n%this._fractionalDividers.length];return r}}class b{constructor(e,t,i,s){this._marks=null,this._priceScale=e,this._base=t,this._coordinateToLogicalFunc=i,this._logicalToCoordinateFunc=s}base(){return this._base}setBase(e){if(e<0)throw new Error("base < 0");this._base=e}tickSpan(e,t,i=0){if(ei&&(l=c);const h=o.tickSpan(e,t,r);h>i&&(l=Math.min(l,h));const d=a.tickSpan(e,t,r);return d>i&&(l=Math.min(l,d)),l>0?l:e-t}rebuildTickMarks(){this._marks=null}marks(){return null===this._marks&&(this._marks=this._rebuildTickMarksImpl()),this._marks}_fontHeight(){return this._priceScale.fontSize()}_tickMarkHeight(){return Math.ceil(2.5*this._fontHeight())}_rebuildTickMarksImpl(){const e=this._priceScale,t=[],i=e.mainSource();if(e.isEmpty()||null===i)return t;let s=i.firstValue();null===s&&(s=0);const r=e.height(),n=this._coordinateToLogicalFunc(r-1,s),o=this._coordinateToLogicalFunc(0,s),a=Math.max(n,o),l=Math.min(n,o);if(a===l)return t;let c=this.tickSpan(a,l),h=a%c;h+=h<0?c:0;const d=a>=l?1:-1;let u=null -;const p=e.formatter();let _=NaN;for(let i=a-h;i>l;i-=c){i===_&&(c=this.tickSpan(a,l,c)),_=i;const r=this._logicalToCoordinateFunc(i,s);null!==u&&Math.abs(r-u)t!==e&&(0,d.isPriceDataSource)(t)&&!((0,_.isStudy)(t)&&t.isLinkedToSeries()))}updateAllViews(e){const t=this._getSourcesToUpdateViews();for(const i of t)i.updateAllViews(e)}logFormula(){return this._logFormula}state(){var e;const t=this._properties.childs();return{id:this._id,m_priceRange:(null===(e=this.priceRange())||void 0===e?void 0:e.serialize())||null,m_isAutoScale:this.isAutoScale(),m_isPercentage:t.percentage.value(),m_isIndexedTo100:t.indexedTo100.value(),m_isLog:t.log.value(),m_isLockScale:this.isLockScale(),m_isInverted:this.isInverted(),m_height:this.m_height,m_topMargin:this._margins.top,m_bottomMargin:this._margins.bottom,alignLabels:t.alignLabels.value(),logFormula:(0,r.clone)(this._logFormula)}}restoreState(e){let t=e.m_priceRange;if(void 0===t)throw new TypeError("invalid state");if(void 0===e.m_isAutoScale)throw new TypeError("invalid state");void 0!==e.id&&(this._id=e.id);const i={autoScale:e.m_isAutoScale};void 0!==e.m_isPercentage&&(i.percentage=e.m_isPercentage),void 0!==e.m_isIndexedTo100&&(i.indexedTo100=e.m_isIndexedTo100),void 0!==e.m_isLog&&(i.log=e.m_isLog),void 0!==e.m_isLockScale&&(i.lockScale=e.m_isLockScale),void 0!==e.m_isInverted&&this._properties.childs().isInverted.setValue(e.m_isInverted),void 0!==e.m_height&&this.setHeight(Math.max(0,e.m_height)),this.setMode(i),t?(t instanceof l.PriceRange||(t=new l.PriceRange(t)),this.setPriceRange(t,!0)):this.m_priceRange=null,e.logFormula&&(this._logFormula=e.logFormula),void 0!==e.m_topMargin&&(this._margins.top=e.m_topMargin),void 0!==e.m_bottomMargin&&(this._margins.bottom=e.m_bottomMargin),void 0!==e.alignLabels&&this._properties.childs().alignLabels.setValue(e.alignLabels),this._mainSource=null,this._scaleSeriesOnly=!1}priceToLogical(e){return this.isLog()&&e?(0,c.toLog)(e,this._logFormula):e}logicalToPrice(e){return this.isLog()?(0,c.fromLog)(e,this._logFormula):e}priceToCoordinate(e,t){const i=this._priceToPercentOrIndexedTo100IfNeeded(e,t);return this._logicalToCoordinate(i)}coordinateToPrice(e,t){let i=this._coordinateToLogical(e);return this.isPercentage()?i=(0,c.fromPercent)(i,t):this.isIndexedTo100()&&(i=(0,c.fromIndexedTo100)(i,t)),i}mainSource(){if(null!==this._mainSource)return this._mainSource;let e;for(const t of this.m_dataSources){if(t instanceof h.Series){e=t;break}!e&&(0,d.isPriceDataSource)(t)&&(e=t)}return this._mainSource=e||null, -this._correctedMarginsCache=null,this._mainSource}pricesArrayToCoordinates(e,t,i){this._makeSureItIsValid();const r=this.bottomPixelMargin(),n=(0,s.ensureNotNull)(this.priceRange()),o=n.minValue(),a=n.maxValue(),l=this.internalHeight()-1,h=this.isInverted(),d=l/(a-o);void 0===i&&(i=e.length);const u=this.isPercentage(),p=this.isIndexedTo100(),_=this.isLog(),m=this.m_height;let g,f;for(let s=0;se?(0,c.toLog)(e,this._logFormula):e),0===r.length)return;const d="open"in r[0],u="close"in r[0];if(null!==h)for(let e=0;ethis._currencyCache=null),e.unitChanged().subscribe(this,()=>this._unitCache=null),(0,m.isSymbolSource)(e)&&(this._seriesLikeSources.push(e),e.symbolResolved().subscribe(this,()=>{this._currencyCache=null,this._unitCache=null}),e.isActingAsSymbolSource().subscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),e instanceof h.Series))){const t=e.properties();this._hasSeries||(t.childs().lockScale&&(this.setMode({lockScale:t.childs().lockScale.value()}),t.removeProperty("lockScale")),t.childs().pnfStyle.child("lockScale")&&t.childs().pnfStyle.removeProperty("lockScale")),this._hasSeries=!0}e.properties().visible.listeners().subscribe(this,this._dropScaleCache),(0,_.isStudy)(e)&&(e.onIsActualIntervalChange().subscribe(this,this._dropScaleCache),e.onHibernationStateChange().subscribe(this,this._dropScaleCache),0===this._studiesCount&&(0,C.hideAllIndicators)().subscribe(this,this._dropScaleCache),this._studiesCount++),(0,w.isLineTool)(e)&&(0===this._drawingCount&&(0,C.hideAllDrawings)().subscribe(this,this._dropScaleCache),this._drawingCount++),this.m_dataSources.push(e),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesToUpdateViews=null,this._dropScaleCache(),this.updateFormatter(),this._initScaleProperties(),this.invalidateSourcesCache()}}removeDataSource(e){const t=this.m_dataSources.indexOf(e);if((0,s.assert)(-1!==t,"Source is not attached to scale"),e.properties().visible.listeners().unsubscribe(this,this._dropScaleCache),this.m_dataSources.splice(t,1),(0,d.isPriceDataSource)(e)){const t=this._priceDataSources.indexOf(e);if((0,s.assert)(-1!==t,"Source is not found"),this._priceDataSources.splice(t,1),(0,m.isSymbolSource)(e)){const t=this._seriesLikeSources.indexOf(e);(0,s.assert)(-1!==t,"Source is not found"),this._seriesLikeSources.splice(t,1),e.symbolResolved().unsubscribeAll(this),e.isActingAsSymbolSource().unsubscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),e instanceof h.Series&&(this._hasSeries=!1)}e.currencyChanged().unsubscribeAll(this),e.unitChanged().unsubscribeAll(this)}this.mainSource()||this.setMode({autoScale:!0}),(0,_.isStudy)(e)&&(e.onIsActualIntervalChange().unsubscribe(this,this._dropScaleCache),e.onHibernationStateChange().unsubscribe(this,this._dropScaleCache),this._studiesCount--,0===this._studiesCount&&(0, -C.hideAllIndicators)().unsubscribe(this,this._dropScaleCache)),(0,w.isLineTool)(e)&&(this._drawingCount--,0===this._drawingCount&&(0,C.hideAllDrawings)().unsubscribe(this,this._dropScaleCache)),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this.updateFormatter(),this.invalidateSourcesCache(),0===this.m_dataSources.length&&this._lastSourceRemoved.fire(),this._currencyCache=null,this._unitCache=null}currency(e){if(null!==this._currencyCache&&e.size()===this._currencyCache.availableCurrenciesCount)return this._currencyCache.value;let t;const i=new Set,r=new Set,n=new Set,o=new Map;let a,l=0===this._seriesLikeSources.length,c=!0,h=0,d=0;const u=this._seriesLikeSources.filter(m.isActingAsSymbolSource);for(const d of u){if(!d.isVisible())continue;const u=d.symbolInfo();if(null===u){t=null;break}const p=(0,g.symbolOriginalCurrency)(u);if(null===p){t=null;break}o.set(p,(0,s.ensureNotNull)((0,g.symbolOriginalCurrency)(u,!0)));const _=d.currency();if(null===_){t=null;break}o.set(_,(0,s.ensureNotNull)((0,g.symbolCurrency)(u,!0)));const m=(0,g.symbolBaseCurrency)(u);null!==m&&r.add(m),c=c&&p===_,n.add(_),i.add(p),void 0===a?a=_:null!==a&&a!==_&&(a=null),l||e.convertible(_)&&(0,g.symbolCurrencyConvertible)(u)||(l=!0),h+=1}if(null!==t)for(const i of this._priceDataSources){if(u.includes(i))continue;const r=i;if(!r.isCurrencySource()||!r.isVisible())continue;const c=r.currency();if(null===c){t=null;break}n.add(c),d+=1;const h=(0,s.ensureNotNull)(r.symbolSource()),p=r.currencySourceSymbolInfo();if(null===p){t=null;break}if(l||e.convertible(c)&&(0,g.symbolCurrencyConvertible)(p)||(l=!0),o.set(c,(0,s.ensureNotNull)((0,g.symbolCurrency)(p,!0))),u.includes(h)||(l=!0),void 0===a)a=c;else if(null!==a&&a!==c){a=null;break}}return void 0===t&&(t=0===h&&0===d?null:{readOnly:l,selectedCurrency:a||null,currencies:n,originalCurrencies:i,baseCurrencies:r,symbolSourceCount:h,allCurrenciesAreOriginal:c,displayedValues:o}),this._currencyCache={value:t,availableCurrenciesCount:e.size()},t}unit(e){if(null!==this._unitCache&&e.size()===this._unitCache.availableUnitsCount)return this._unitCache.value;let t;const i=new Set,r=new Set,n=new Map,o=new Map;let l,c=0===this._seriesLikeSources.length?new Set:e.allGroups(),h=!0,d=0,u=0;const p=this._seriesLikeSources.filter(m.isActingAsSymbolSource);for(const s of p){if(!s.isVisible())continue;const u=s.symbolInfo();if(null===u){t=null;break}const p=(0,g.symbolOriginalUnit)(u,s.model().unitConversionEnabled());if(null===p){t=null;break}n.set(p,e.name(p)),o.set(p,e.description(p));const _=s.unit();if(null===_){t=null;break}if(n.set(_,e.name(_)),o.set(_,e.description(_)),h=h&&p===_,r.add(_),i.add(p),void 0===l?l=_:null!==l&&l!==_&&(l=null),c.size>0){const t=(0,f.unitConvertibleGroups)(u,_,e);c=(0,a.intersect)(c,new Set(t))}d+=1}if(null!==t)for(const i of this._priceDataSources){if(p.includes(i))continue;const h=i;if(!h.isUnitSource()||!h.isVisible())continue;const d=h.unit();if(null===d){t=null;break}r.add(d),u+=1;const _=(0, -s.ensureNotNull)(h.symbolSource()),m=_.symbolInfo();if(null===m){t=null;break}if(c.size>0){const t=(0,f.unitConvertibleGroups)(m,d,e);c=(0,a.intersect)(c,new Set(t))}if(n.set(d,e.name(d)),o.set(d,e.description(d)),p.includes(_)||(c=new Set),void 0===l)l=d;else if(null!==l&&l!==d){l=null;break}}if(void 0===t)if(0===d&&0===u)t=null;else{t={availableGroups:c,selectedUnit:l||null,units:r,originalUnits:i,symbolSourceCount:d,allUnitsAreOriginal:h,names:n,descriptions:o}}return this._unitCache={value:t,availableUnitsCount:e.size()},t}setMargins(e){if(!(0,r.isNumber)(e.top)||!(0,r.isNumber)(e.bottom))throw new TypeError("invalid margin");if(e.top<0||e.top>30||e.bottom<0||e.bottom>30)throw new RangeError("invalid margin");this._margins.top===e.top&&this._margins.bottom===e.bottom||(this._margins=e,this._correctedMarginsCache=null,this._invalidateInternalHeightCache(),this._marksCache=null)}topMargin(){return this._correctedMargins().top}bottomMargin(){return this._correctedMargins().bottom}invalidateMargins(){this._correctedMarginsCache=null}topPixelMargin(){return this.isInverted()?this.bottomMargin()*this.height()+this._bottomPixelMargin:this.topMargin()*this.height()+this._topPixelMargin}bottomPixelMargin(){return this.isInverted()?this.topMargin()*this.height()+this._topPixelMargin:this.bottomMargin()*this.height()+this._bottomPixelMargin}marks(){return this._makeSureItIsValid(),null===this._marksCache&&(this._markBuilder.rebuildTickMarks(),this._marksCache=this._markBuilder.marks(),this._onMarksChanged.fire()),this._marksCache}onMarksChanged(){return this._onMarksChanged}priceRangeInPrice(){if(this.isEmpty())return null;const e=this.mainSource();if(null===e)return null;const t=(0,s.ensureNotNull)(e.firstValue()),i=this.height();return{from:this.coordinateToPrice(i-1,t),to:this.coordinateToPrice(0,t)}}setPriceRangeInPrice(e){if(this.isPercentage()||this.isIndexedTo100())return;const t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),s=t?this.topMargin():this.bottomMargin(),r=this.isLog();let n=r?(0,c.toLog)(e.from,this._logFormula):e.from,o=r?(0,c.toLog)(e.to,this._logFormula):e.to;const a=o-n;n+=s*a,o-=i*a,this.setMode({autoScale:!1}),this.setPriceRange(new l.PriceRange(n,o)),this._marksCache=null,this._onMarksChanged.fire()}hasMainSeries(){return this._hasSeries}getStudies(){return this.dataSources().filter(_.isStudy)}lastSourceRemoved(){return this._lastSourceRemoved}sourcesForAutoscale(){return this._mainSource&&this._scaleSeriesOnly!==this._scalesProperties.childs().scaleSeriesOnly.value()&&(this._sourcesForAutoscale=null),this._sourcesForAutoscale||(this._sourcesForAutoscale=this._recalculateSourcesForAutoscale()),this._sourcesForAutoscale}recalculatePriceRange(e){this._invalidatedForRange={visibleBars:e,isValid:!1}}internalHeightChanged(){return this._internalHeightChanged}orderedSources(){if(this._cachedOrderedSoruces)return this._cachedOrderedSoruces;let e=this.m_dataSources.slice();return e=(0,v.sortSources)(e),this._cachedOrderedSoruces=e,this._cachedOrderedSoruces}invalidateSourcesCache(){ -this._cachedOrderedSoruces=null,this._sourcesToUpdateViews=null}startScale(e){var t,i;this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint||null!==this._priceRangeSnapshot||(this._scaleStartPoint=this.m_height-e,this._priceRangeSnapshot=null!==(i=null===(t=this.priceRange())||void 0===t?void 0:t.clone())&&void 0!==i?i:null)}scaleTo(e){if(this.isPercentage()||this.isIndexedTo100()||null===this._scaleStartPoint)return;this.setMode({autoScale:!1}),(e=this.m_height-e)<0&&(e=0);let t=(this._scaleStartPoint+.2*(this.m_height-1))/(e+.2*(this.m_height-1));const i=(0,s.ensureNotNull)(this._priceRangeSnapshot).clone();t=Math.max(t,.1),i.scaleAroundCenter(t),this.setPriceRange(i)}endScale(){this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._priceRangeSnapshot=null)}startTwoPointsScale(e,t){if(this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._twoPointsScaleStartPosition)return;const i=Math.min(e,t),s=Math.max(e,t);this._twoPointsScaleStartPosition={topLogical:this._coordinateToLogical(i),bottomLogical:this._coordinateToLogical(s)}}twoPointsScale(e,t){if(this.isPercentage()||this.isIndexedTo100()||null===this._twoPointsScaleStartPosition)return;this.setMode({autoScale:!1});const i=Math.min(e,t),s=Math.max(e,t),{topLogical:r,bottomLogical:n}=this._twoPointsScaleStartPosition,o=this.bottomPixelMargin(),a=this.internalHeight()-1,c=(this._invertedCoordinate(i)-o)/a,h=(n-r)/((this._invertedCoordinate(s)-o)/a-c),d=r-h*c,u=d+h;this.setPriceRange(new l.PriceRange(this.priceToLogical(d),this.priceToLogical(u)))}endTwoPointsScale(){this._twoPointsScaleStartPosition=null}startScroll(e){var t,i;this.isAutoScale()||null===this._scrollStartPoint&&null===this._priceRangeSnapshot&&(this.isEmpty()||(this._scrollStartPoint=e,this._priceRangeSnapshot=null!==(i=null===(t=this.priceRange())||void 0===t?void 0:t.clone())&&void 0!==i?i:null))}scrollTo(e){if(this.isAutoScale())return;if(null===this._scrollStartPoint||null===this._priceRangeSnapshot)return;const t=this.priceRange();if(null===t)return;let i=e-this._scrollStartPoint;this.isInverted()&&(i*=-1);const s=i*(t.length()/(this.internalHeight()-1)),r=this._priceRangeSnapshot.clone();r.shift(s),this.setPriceRange(r,!0),this._marksCache=null}endScroll(){this.isAutoScale()||null!==this._scrollStartPoint&&(this._scrollStartPoint=null,this._priceRangeSnapshot=null)}_recalculateSourcesForAutoscale(){this._mainSource&&(this._scaleSeriesOnly=this._scalesProperties.childs().scaleSeriesOnly.value());const e=this._scaleSeriesOnly&&this._hasSeries;return this.m_dataSources.filter(t=>!!(t.properties().visible.value()||t instanceof h.Series)&&(e?t instanceof h.Series:(0,_.isStudy)(t)?!t.isSourceHidden()&&t.isIncludedInAutoScale():t.isIncludedInAutoScale()))}_updateAutoScaleDisabledProperty(e){const t=this._properties.childs(),i=t.indexedTo100.value()||t.percentage.value()||t.lockScale.value();e?t.autoScaleDisabled.setValueSilently(i):t.autoScaleDisabled.setValue(i)} -_setAutoScaleValueWithDependentProperties(e){const t=this._properties.childs();t.autoScale.setValueSilently(e),e&&(t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.logDisabled.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLockScaleValueWithDependentProperties(e){const t=this._properties.childs();t.lockScale.setValueSilently(e),e&&(t.autoScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.log.setValueSilently(!1)),t.percentageDisabled.setValueSilently(e),t.logDisabled.setValueSilently(e),this._updateAutoScaleDisabledProperty(!0)}_setPercentageValueWithDependentProperties(e){const t=this._properties.childs();t.percentage.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setIndexedTo100ValueWithDependentProperties(e){const t=this._properties.childs();t.indexedTo100.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLogValueWithDependentProperties(e){const t=this._properties.childs();t.log.setValueSilently(e),e&&(t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_recalculatePriceRangeImpl(){const e=this._invalidatedForRange.visibleBars;if(null===e)return;let t=null;const i=this.sourcesForAutoscale(),s=this.isPercentage(),r=this.isIndexedTo100();let n=0,o=0;for(const a of i){if(!a.properties().visible.value())continue;const i=a.firstValue();if(null===i||s&&0===i)continue;const l=e.firstBar(),h=e.lastBar(),d=a.autoScaleInfo(l,h);let u=d.range;u&&(s?u=(0,c.toPercentRange)(u,i):r&&(u=(0,c.toIndexedTo100Range)(u,i)),t=null===t?u:t.merge(u)),void 0!==d.topPixelMargin&&(n=Math.max(n,d.topPixelMargin)),void 0!==d.bottomPixelMargin&&(o=Math.max(o,d.bottomPixelMargin))}if((Math.abs(n-this._topPixelMargin)>0||Math.abs(o-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=o,this._topPixelMargin=n,this._marksCache=null,this._invalidateInternalHeightCache()),t){if(t.minValue()===t.maxValue()&&(t=new l.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.isLog()){const e=this._convertPriceRangeFromLog(t),i=(0,c.logFormulaForPriceRange)(e);if(!(0,c.logFormulasAreSame)(i,this._logFormula)){const s=this._priceRangeSnapshot?this._convertPriceRangeFromLog(this._priceRangeSnapshot):null;this._logFormula=i,t=this._convertPriceRangeToLog(e),s&&(this._priceRangeSnapshot=this._convertPriceRangeToLog(s))}}this.setPriceRange(t)}else this.m_priceRange||(this.setPriceRange(new l.PriceRange(-.5,.5)),this._logFormula=(0,c.logFormulaForPriceRange)(null));this._invalidatedForRange.isValid=!0;const a=this.mainSource();null!==a&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!a.priceRangeReady())}_makeSureItIsValid(){ -this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())}_invalidateInternalHeightCache(){this._internalHeightCache=null,this._internalHeightChanged.fire()}_coordinateToLogical(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;const t=this._invertedCoordinate(e),i=(0,s.ensureNotNull)(this.priceRange()),r=i.minValue()+(i.maxValue()-i.minValue())*((t-this.bottomPixelMargin())/(this.internalHeight()-1));return this.logicalToPrice(r)}_logicalToCoordinate(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);const t=(0,s.ensureNotNull)(this.priceRange()),i=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-t.minValue())/(t.maxValue()-t.minValue());return this._invertedCoordinate(i)}_dropScaleCache(){this._sourcesForAutoscale=null,this._currencyCache=null,this._unitCache=null}_invertedCoordinate(e){return this.isInverted()?e:this.height()-1-e}_initScaleProperties(){const e=this.isLockScale(),t=this.properties().childs();e&&(t.percentage.setValue(!1),t.indexedTo100.setValue(!1),t.log.setValue(!1),t.autoScale.setValue(!1)),t.percentageDisabled.setValue(e),t.logDisabled.setValue(e),this._updateAutoScaleDisabledProperty(!1),t.percentage.value()&&(t.log.setValue(!1),t.indexedTo100.setValue(!1)),t.indexedTo100.value()&&(t.log.setValue(!1),t.percentage.setValue(!1))}_correctedMargins(){if(null===this._correctedMarginsCache){const e=this.mainSource();this._correctedMarginsCache=null!==e?e.correctScaleMargins(this._margins):this._margins}return this._correctedMarginsCache}_getSourcesToUpdateViews(){return this._sourcesToUpdateViews||(this._sourcesToUpdateViews=this.m_dataSources.filter(e=>!(0,w.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency())),this._sourcesToUpdateViews}_mainSourceFormatter(){const e=this.mainSource();return(null==e?void 0:e.formatter())||I}_priceToPercentOrIndexedTo100IfNeeded(e,t){return this.isPercentage()?(0,c.toPercent)(e,t):this.isIndexedTo100()?(0,c.toIndexedTo100)(e,t):e}_onSourceIsActingAsSymbolSourceChanged(){this._dropScaleCache()}}},3825:(e,t,i)=>{"use strict";var s;i.d(t,{PriceAxisLastValueMode:()=>s}),function(e){e[e.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",e[e.LastValueAccordingToScale=1]="LastValueAccordingToScale"}(s||(s={}))},74477:(e,t,i)=>{"use strict";i.r(t),i.d(t,{fromPercent:()=>o,toPercent:()=>a,toPercentRange:()=>l,fromIndexedTo100:()=>c,toIndexedTo100:()=>h,toIndexedTo100Range:()=>d,toLog:()=>u,fromLog:()=>p,logFormulaForPriceRange:()=>_,logFormulasAreSame:()=>m,getCurrentModePriceText:()=>g,getOppositeModePriceText:()=>f});var s=i(69927),r=i(64514);const n={logicalOffset:4,coordOffset:1e-4};function o(e,t){return t<0&&(e=-e),e/100*t+t}function a(e,t){const i=100*(e-t)/(t||1);return t<0?-i:i}function l(e,t){const i=a(e.minValue(),t),r=a(e.maxValue(),t);return new s.PriceRange(i,r)}function c(e,t){return t<0&&(e=-e),(e-=100)/100*t+t}function h(e,t){const i=100*(e-t)/t+100;return t<0?-i:i}function d(e,t){const i=h(e.minValue(),t),r=h(e.maxValue(),t);return new s.PriceRange(i,r) -}function u(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const s=(0,r.log10)(i+t.coordOffset)+t.logicalOffset;return e<0?-s:s}function p(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const s=Math.pow(10,i-t.logicalOffset)-t.coordOffset;return e<0?-s:s}function _(e){if(null===e)return n;const t=Math.abs(e.maxValue()-e.minValue());if(t>=1||t<1e-15)return n;const i=Math.ceil(Math.abs(Math.log10(t))),s=n.logicalOffset+i;return{logicalOffset:s,coordOffset:1/Math.pow(10,s)}}function m(e,t){return e.logicalOffset===t.logicalOffset&&e.coordOffset===t.coordOffset}function g(e,t){return e.isPercentage()?t.formattedPricePercentage:e.isIndexedTo100()?t.formattedPriceIndexedTo100:t.formattedPriceAbsolute}function f(e,t){return e.isPercentage()||e.isIndexedTo100()?t.formattedPriceAbsolute:t.formattedPricePercentage}},69927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PriceRange:()=>n});var s=i(80643);const r=(0,i(98125).getLogger)("Chart.PriceRange");class n{constructor(e,t){if(null!==e&&"object"==typeof e){const t=e;this._minValue=t.m_minValue,this._maxValue=t.m_maxValue}else{const i=e;this._minValue=i,void 0!==t&&(this._maxValue=t)}}equals(e){return this._minValue===e._minValue&&this._maxValue===e._maxValue}clone(){return new n(this._minValue,this._maxValue)}minValue(){return this._minValue}setMinValue(e){this._minValue=e}maxValue(){return this._maxValue}setMaxValue(e){this._maxValue=e}length(){return this._maxValue-this._minValue}isEmpty(){return this._maxValue===this._minValue||this._maxValue!=this._maxValue||this._minValue!=this._minValue}serialize(){return{m_maxValue:this._maxValue,m_minValue:this._minValue}}state(){return{max:this._maxValue,min:this._minValue}}merge(e){return new n(Math.min(this.minValue(),e.minValue()),Math.max(this.maxValue(),e.maxValue()))}apply(e,t){this._minValue=Math.min(this._minValue,e),this._maxValue=Math.max(this._maxValue,t)}set(e,t){this._minValue=e,this._maxValue=t}scaleAroundCenter(e){if(!(0,s.isNumber)(e))return void r.logDebug("PriceRange.scaleAroundCenter: invalid coeff");if(0===this._maxValue-this._minValue)return;const t=.5*(this._maxValue+this._minValue);let i=this._maxValue-t,n=this._minValue-t;i*=e,n*=e,this._maxValue=t+i,this._minValue=t+n}shift(e){(0,s.isNumber)(e)?(this._maxValue+=e,this._minValue+=e):r.logDebug("PriceRange.shift: invalid coeff")}containsStrictly(e){return e.minValue()>this._minValue&&e.maxValue(){"use strict";var s=i(2872),r=i(27402).PriceScaleBase,n=i(69927).PriceRange,o=i(9423).randomHash,a=i(74477),l=a.fromLog,c=a.toLog;class h extends r{constructor(e,t){super(t),this._scalesProperties=e;var i=this;this._modeChanged=new s,this._properties.isInverted.listeners().subscribe(this,h.prototype._onIsInvertedChanged),this._properties.listeners().subscribe(null,(function(){if(i.mainSource()&&i.mainSource().model()){var e=i.mainSource().model().paneForSource(i.mainSource());i.mainSource().model().updatePane(e)}})),this._scalesProperties.listeners().subscribe(this,(function(){ -this._marksCache=null})),this.setId(o())}_convertPriceRangeFromLog(e){if(null===e)return null;var t=l(e.minValue(),this._logFormula),i=l(e.maxValue(),this._logFormula);return new n(t,i)}_convertPriceRangeToLog(e){if(null===e)return null;var t=c(e.minValue(),this._logFormula),i=c(e.maxValue(),this._logFormula);return new n(t,i)}_canConvertPriceRangeFromLog(e){if(null===e)return!1;var t=l(e.minValue(),this._logFormula),i=l(e.maxValue(),this._logFormula);return isFinite(t)&&isFinite(i)}mode(){return{autoScale:this._properties.autoScale.value(),lockScale:this._properties.lockScale.value(),percentage:this._properties.percentage.value(),indexedTo100:this._properties.indexedTo100.value(),log:this._properties.log.value()}}setMode(e){var t={},i=this.mode(),s=this._properties.state(),r=null;void 0!==e.autoScale&&e.autoScale!==s.autoScale&&(t.autoScale=e.autoScale,this._setAutoScaleValueWithDependentProperties(e.autoScale)),void 0!==e.lockScale&&e.lockScale!==s.lockScale&&(t.lockScale=e.lockScale,this._setLockScaleValueWithDependentProperties(e.lockScale)),void 0!==e.percentage&&e.percentage!==s.percentage&&(t.percentage=e.percentage,this._setPercentageValueWithDependentProperties(e.percentage),this._invalidatedForRange.isValid=!1),void 0!==e.indexedTo100&&e.indexedTo100!==s.indexedTo100&&(t.indexedTo100=e.indexedTo100,this._setIndexedTo100ValueWithDependentProperties(e.indexedTo100),this._invalidatedForRange.isValid=!1),void 0!==e.log&&e.log!==s.log&&(t.log=e.log,this._setLogValueWithDependentProperties(e.log)),s.log&&!this._properties.log.value()&&(this._canConvertPriceRangeFromLog(this.m_priceRange)?null!==(r=this._convertPriceRangeFromLog(this.m_priceRange))&&this.setPriceRange(r):this.properties().autoScale.setValue(!0)),!s.log&&this._properties.log.value()&&null!==(r=this._convertPriceRangeToLog(this.m_priceRange))&&this.setPriceRange(r),s.autoScale!==this._properties.autoScale.value()&&this._properties.autoScale.listeners().fire(this._properties.autoScale),s.autoScaleDisabled!==this._properties.autoScaleDisabled.value()&&this._properties.autoScaleDisabled.listeners().fire(this._properties.autoScaleDisabled),s.lockScale!==this._properties.lockScale.value()&&this._properties.lockScale.listeners().fire(this._properties.lockScale),s.percentage!==this._properties.percentage.value()&&(this._properties.percentage.listeners().fire(this._properties.percentage),this.updateFormatter()),s.indexedTo100!==this._properties.indexedTo100.value()&&(this._properties.indexedTo100.listeners().fire(this._properties.indexedTo100),this.updateFormatter()),s.percentageDisabled!==this._properties.percentageDisabled.value()&&this._properties.percentageDisabled.listeners().fire(this._properties.percentageDisabled),s.log!==this._properties.log.value()&&this._properties.log.listeners().fire(this._properties.log),s.logDisabled!==this._properties.logDisabled.value()&&this._properties.logDisabled.listeners().fire(this._properties.logDisabled), -void 0===t.log&&void 0===t.percentage&&void 0===t.lockScale&&void 0===t.autoScale&&void 0===t.indexedTo100||this._modeChanged.fire(i,this.mode())}modeChanged(){return this._modeChanged}fontSize(){return this._scalesProperties.fontSize.value()}isEmpty(){return this._makeSureItIsValid(),0===this.m_height||!this.m_priceRange||this.m_priceRange.isEmpty()}_onIsInvertedChanged(){this._marksCache=null,this._markBuilder.rebuildTickMarks()}}t.PriceScale=h},32255:(e,t,i)=>{"use strict";i.d(t,{createPrimitiveProperty:()=>n});var s=i(2015),r=i.n(s);function n(e){return new(r())(e)}},45383:(e,t,i)=>{"use strict";i.d(t,{extractAllPropertiesKeys:()=>v,factoryDefaultsForCurrentTheme:()=>y,ThemedDefaultProperty:()=>w});var s=i(58121),r=i(99094),n=i(16230),o=i(98279),a=i(38651),l=i(88537),c=i(56840),h=i(98619),d=i(45345),u=i(26843),p=i(2015),_=i.n(p),m=i(59803),g=i(2872),f=i.n(g);function v(e){return new Set(Object.keys(e))}function S(e,t){const i={};for(const s of Object.keys(e))t.has(s)&&(i[s]=e[s]);return i}function y(e,t){var i;const r=null!==(i=d.watchedTheme.value())&&void 0!==i?i:u.StdTheme.Light,n=(0,h.deepCopy)(e);return(0,s.default)(n,(0,l.ensureDefined)(t.get(r))),n}function b(e,t){const i=(0,r.default)(e,(e,i,s)=>{if(void 0===t[s])return e;if(!(0,n.default)(i,t[s]))if((0,o.default)(i)&&(0,o.default)(t[s])){const r=b(i,t[s]);void 0!==r&&(e[s]=r)}else e[s]=i;return e},{});return(0,a.default)(i)?void 0:i}class w extends(_()){constructor(e,t,i,r,n){super(function(e,t,i){var r;const n=t(),o=(0,h.deepCopy)(null!==(r=c.getJSON(e,null))&&void 0!==r?r:{});return(0,s.default)(n,o),(0,s.default)(n,null!=i?i:{}),n}(e,t,n)),this._applyingThemeInProcess=!1,this._restoreFactoryDefaultsEvent=new(f()),this._defaultName=e,this._defaultsSupplier=t,this._notThemedDefaultsKeys=i,this._themedDefaultsKeys=r}restoreFactoryDefaults(){const e=this._defaultsSupplier();this.mergeAndFire(e),this.saveDefaults(),this._restoreFactoryDefaultsEvent.fire()}addExclusion(){}preferences(){const e=new Set([...this._themedDefaultsKeys,...this._notThemedDefaultsKeys]);return S(this.state(),e)}mergePreferences(e){const t=new Set([...this._themedDefaultsKeys,...this._notThemedDefaultsKeys]);this.mergeAndFire(S(e,t))}childChanged(e){super.childChanged(e),this._applyingThemeInProcess||this.saveDefaults()}saveDefaults(){const e=this.state(),t=this._defaultsSupplier();let i=b(S(e,this._notThemedDefaultsKeys),S(t,this._notThemedDefaultsKeys));const r=S(t,this._themedDefaultsKeys),n=S(e,this._themedDefaultsKeys),o=b(n,r);(0,a.default)(o)||(i=null!=i?i:{},(0,s.default)(i,n)),(0,m.saveDefaults)(this._defaultName,i)}}},65576:(e,t,i)=>{"use strict";i.d(t,{convertPropertyToWatchedValue:()=>n});var s=i(52714),r=i.n(s);function n(e){const t=new(r())(e.value());let i=!1;e.subscribe(t,()=>{i||(i=!0,t.setValue(e.value()),i=!1)});const s=()=>{i||(i=!0,e.setValue(t.value()),i=!1)};return t.subscribe(s),t.spawn(()=>{e.unsubscribeAll(t),t.unsubscribe(s)})}},81465:(e,t,i)=>{"use strict";i.d(t,{combineProperty:()=>o, -createWVFromGetterAndSubscription:()=>s.createWVFromGetterAndSubscription,createWVFromProperty:()=>r});var s=i(38021);i(3763);function r(e){return(0,s.createWVFromGetterAndSubscription)(()=>e.value(),e)}i(2015);var n=i(32255);function o(e,...t){const i=()=>e(...t.map(e=>e.value())),s=(0,n.createPrimitiveProperty)(i()),r=()=>s.setValue(i()),o={};for(const e of t)e.subscribe(o,r);return s.destroy=()=>{t.forEach(e=>e.unsubscribeAll(o))},s}},38021:(e,t,i)=>{"use strict";i.d(t,{createWVFromGetterAndSubscription:()=>n});var s=i(52714),r=i.n(s);function n(e,t){const i=new(r())(e()),s={};t.subscribe(s,()=>{i.setValue(e())});return i.readonly().spawn(()=>t.unsubscribeAll(s))}},3763:(e,t,i)=>{"use strict";i.d(t,{createWVFromGetterAndSubscriptions:()=>n});var s=i(52714),r=i.n(s);function n(e,t){const i=new(r())(e()),s={};t.forEach(t=>t.subscribe(s,()=>{i.setValue(e())}));return i.readonly().spawn(()=>t.forEach(e=>e.unsubscribeAll(s)))}},2015:(e,t,i)=>{"use strict";var s=i(2872),r=i(80643).isFunction;function n(e){if(this._listeners=new s,this._childs=[],this._muteChildChanges=!1,void 0!==e)if(this.isPrimitiveType(e))this._value=e;else for(var t in e)this.addProperty(t,e[t])}n.prototype.merge=function(e,t){var i=null;if(t)var s=(i=[]).length;if(void 0===e)return i;if(this.isPrimitiveType(e))return t&&this._value!==e&&i.push(this),this._value=e,i;if(Array.isArray(e))for(var r=0;rs&&i.push(this),i},n.prototype.mergeAndFire=function(e){var t=this.merge(e,!0);this._muteChildChanges=!0,t.forEach((function(e){e._muteChildChanges=!0})),t.forEach((function(e){e._muteChildChanges=!1,e.listeners().fire(e)})),this._muteChildChanges=!1,t.length>0&&this.listeners().fire(this)},n.prototype.state=function(e){var t=r(this.value)?this.value():void 0;void 0===t&&(t={});for(var i=0;i=0},n.prototype.addChild=function(e,t){this[e]&&this[e].unsubscribe(this,this.childChanged),this[e]=t,-1===this._childs.indexOf(e)&&this._childs.push(e),t.subscribe(this,this.childChanged)},n.prototype.childChanged=function(e,t){this._muteChildChanges||this.listeners().fire(this)},n.prototype.subscribe=function(e,t){this.listeners().subscribe(e,t,!1)},n.prototype.unsubscribe=function(e,t){this.listeners().unsubscribe(e,t)},n.prototype.unsubscribeAll=function(e){this.listeners().unsubscribeAll(e)},n.prototype.childs=function(){return this},e.exports=n},90810:(e,t,i)=>{"use strict";i.d(t,{QuotesProvider:()=>a});var s=i(39138),r=i(2872),n=i.n(r),o=i(9423);class a{constructor(e="full"){this._quotes=null,this._quoteSessionSymbol=null,this._quoteSessionClientId="",this._quotesUpdate=new(n()),this._quoteSymbolChanged=new(n()),this._multiplexerType=e}setQuotesSessionSymbol(e){this._quoteSessionSymbol!==e&&(this._quoteSessionClientId||(this._quoteSessionClientId="series-"+(0,o.guid)()),this._unsubscribeQuoteSession(),e&&this._subscribeQuoteSession(e),this._quoteSymbolChanged.fire())}quotesUpdate(){return this._quotesUpdate}quoteSymbolChanged(){return this._quoteSymbolChanged}quotes(){return this._quotes}destroy(){this._unsubscribeQuoteSession()}_onUpdate(e,t){this._quotes=e&&e.values||null,t&&t.values&&this._quotesUpdate.fire(e,t)}_subscribeQuoteSession(e){this._quoteSessionSymbol=e,(0,s.getQuoteSessionInstance)(this._multiplexerType).subscribe(this._quoteSessionClientId,this._quoteSessionSymbol,this._onUpdate.bind(this))}_unsubscribeQuoteSession(){this._quoteSessionSymbol&&((0,s.getQuoteSessionInstance)(this._multiplexerType).unsubscribe(this._quoteSessionClientId,this._quoteSessionSymbol),this._quoteSessionSymbol=null,this._quotes=null)}}},64237:(e,t,i)=>{"use strict";i.d(t,{rangesAreEqual:()=>n});var s=i(73383),r=i(29823);function n(e,t){return!!r.Interval.isEqual(e.res,t.res)&&(0,s.areEqualTimeFrames)(e.val,t.val)}},9315:(e,t,i)=>{"use strict";i.r(t),i.d(t,{normalizeIntervalString:()=>_,isAvailable:()=>m,setLastUsedResolution:()=>g,getRangeResolution:()=>f,getTimeBasedResolution:()=>v,getDefaultResolution:()=>S,getResolutionByChartStyle:()=>y,getServerInterval:()=>b,isResolutionMultiplierValid:()=>w,getMaxResolutionValue:()=>P,getResolutionsFromSettings:()=>T,convertResolutionsFromSettings:()=>x,mergeResolutions:()=>I,sortResolutions:()=>M,getCustomResolutions:()=>E,getTranslatedResolution:()=>k,getTranslatedResolutionModel:()=>D,isSecondsEnabled:()=>B,isTicksEnabled:()=>N});var s=i(28353),r=i(29823),n=i(37667),o=i(56840),a=i(82992),l=i(96397),c=i(80643),h=i(67337);const d={[r.ResolutionKind.Ticks]:1,[r.ResolutionKind.Seconds]:60,[r.ResolutionKind.Minutes]:1440, -[r.SpecialResolutionKind.Hours]:24,[r.ResolutionKind.Days]:365,[r.ResolutionKind.Weeks]:52,[r.ResolutionKind.Months]:12,[r.ResolutionKind.Range]:1e6,[r.ResolutionKind.Invalid]:NaN},u={[r.ResolutionKind.Ticks]:0,[r.ResolutionKind.Seconds]:1,[r.ResolutionKind.Minutes]:2,[r.SpecialResolutionKind.Hours]:3,[r.ResolutionKind.Days]:4,[r.ResolutionKind.Weeks]:5,[r.ResolutionKind.Months]:6,[r.ResolutionKind.Range]:7,[r.ResolutionKind.Invalid]:8},p={[r.ResolutionKind.Invalid]:"",[r.ResolutionKind.Ticks]:(0,s.t)("T",{context:"interval_short"}),[r.ResolutionKind.Seconds]:(0,s.t)("s",{context:"interval_short"}),[r.ResolutionKind.Minutes]:(0,s.t)("m",{context:"interval_short"}),[r.SpecialResolutionKind.Hours]:(0,s.t)("h",{context:"interval_short"}),[r.ResolutionKind.Days]:(0,s.t)("D",{context:"interval_short"}),[r.ResolutionKind.Weeks]:(0,s.t)("W",{context:"interval_short"}),[r.ResolutionKind.Months]:(0,s.t)("M",{context:"interval_short"}),[r.ResolutionKind.Range]:(0,s.t)("R",{context:"interval_short"})};function _(e){return r.Interval.parse(e).value()}function m(e){const t=r.Interval.parse(e);if(!B()&&t.isSeconds())return!1;if(!N()&&t.isTicks())return!1;const i=t.value(),s=a.linking.supportedResolutions.value();return void 0!==s?void 0!==s.find(e=>_(e)===i):t.isSeconds()?Boolean(a.linking.seconds.value()):t.isTicks()?Boolean(a.linking.ticks.value()):t.isIntraday()?Boolean(a.linking.intraday.value()):t.isDWM()}function g(e){r.Interval.isValid(e)&&(r.Interval.isRange(e)?o.setValue("chart.lastUsedRangeResolution",e):o.setValue("chart.lastUsedTimeBasedResolution",e))}function f(e){const t=o.getValue("chart.lastUsedRangeResolution");if(void 0!==t&&r.Interval.isRange(t))return t;let i="100R";for(const t of e){const e=r.Interval.parse(t);if(e.isRange()){const t=e.value();if("100R"===t)return t;i=t}}return i}function v(e){const t=o.getValue("chart.lastUsedTimeBasedResolution");if(void 0!==t&&r.Interval.isTimeBased(t))return t;let i="1D";for(const t of e){const e=r.Interval.parse(t);if(e.isTimeBased()){const t=e.value();if("1D"===t)return t;i=t}}return i}function S(e){return e?"100R":"1D"}function y(e,t,i){const s=n.isRangeStyle(e),o=r.Interval.isRange(t);return!s&&o?v(i):s&&!o?f(i):t}function b(e){return r.Interval.isRange(e)?"1":e}function w(e){const{interval:t,guiResolutionKind:i}=r.Interval.parseExt(e);if(!t.isValid())return!1;return(i===r.SpecialResolutionKind.Hours?t.multiplier()/60:t.multiplier())<=C(i)}function C(e){const t=d[e];return Number.isNaN(t)?1:t}function P(e){return C(r.Interval.parseExt(e).guiResolutionKind)}function T(e){const t=x(o.getJSON(e,[]));return(0,l.uniq)(t.filter(w).map(_))}function x(e){return Array.isArray(e)?e:Object.keys(e).map(r.Interval.normalize).filter(c.notNull)}function I(...e){let t=[].concat(...e);return t=(0,l.uniq)(t.filter(w).map(_)),M(t)}function M(e){return e.sort(A)}function L(e){const t=r.Interval.parse(e),i=t.multiplier()||1;return t.isMinuteHours()?[r.SpecialResolutionKind.Hours,i/60]:[t.kind(),i]}function A(e,t){const[i,s]=L(e),[r,n]=L(t);return i!==r?u[i]-u[r]:s-n}function E(){return[]} -function k(e){const{multiplier:t,shortKind:i}=D(e);return`${t}${i}`}function D(e,t){const i=r.Interval.parse(e);let s=i.multiplier(),n=i.kind();if(!i.isValid()){if(t)return null;throw new TypeError("Can't translate invalid interval")}return i.isMinuteHours()&&(s=Math.floor(s/60),n=r.SpecialResolutionKind.Hours),{multiplier:s.toString(),shortKind:V(n),hint:`${s} ${V(n,s)}`,mayOmitMultiplier:i.isDWM()&&1===s,mayOmitShortKind:i.isMinutes()&&!i.isMinuteHours()}}function V(e,t){if(!t)return p[e];switch(e){case r.ResolutionKind.Ticks:return(0,s.t)("tick",{plural:"ticks",count:t});case r.ResolutionKind.Days:return(0,s.t)("day",{plural:"days",count:t});case r.ResolutionKind.Weeks:return(0,s.t)("week",{plural:"weeks",count:t});case r.ResolutionKind.Months:return(0,s.t)("month",{plural:"months",count:t});case r.ResolutionKind.Seconds:return(0,s.t)("second",{plural:"seconds",count:t});case r.ResolutionKind.Minutes:return(0,s.t)("minute",{plural:"minutes",count:t});case r.SpecialResolutionKind.Hours:return(0,s.t)("hour",{plural:"hours",count:t});case r.ResolutionKind.Range:return(0,s.t)("range",{plural:"ranges",count:t});default:return e}}function B(){return h.enabled("seconds_resolution")}function N(){return h.enabled("tick_resolution")}},22423:(e,t,i)=>{"use strict";i.d(t,{scaleRatio:()=>r,priceRangeByScaleRatio:()=>n,barSpacingByScaleRatio:()=>o});var s=i(69927);function r(e,t){if(t.isLog()||e.isEmpty()||t.isEmpty())return null;const i=function(e){if(e.isEmpty())return null;const t=e.priceRange();if(null===t)return null;const i=t.length();return e.internalHeight()/i}(t);if(null===i)return null;return e.getValidBarSpacing()/Math.max(1e-10,i)}function n(e,t,i){if(e.isLog()||null===i||e.isEmpty())return null;const r=e.priceRange();if(null===r||r.isEmpty())return null;const n=e.internalHeight()/(t/i),o=r.length();if(n===o)return r;const a=(n-o)/2;return new s.PriceRange(r.minValue()-a,r.maxValue()+a)}function o(e,t){if(e.isLog()||null===t||e.isEmpty())return null;const i=e.priceRange();if(null===i)return null;const s=i.length();return e.internalHeight()/s*t}},74325:(e,t,i)=>{"use strict";i.d(t,{createPriceScaleSelectionStrategy:()=>l,allPriceScaleSelectionStrategyInfo:()=>c});var s=i(88537),r=i(28353),n=i(81851);class o{constructor(e){this._priceScalesLimit=8,this._metaInfo=e}metaInfo(){return this._metaInfo}findSuitableScale(e,t,i,s){if(void 0!==s)return this._tryToGetDesiredPriceScale(e,t,s,i);if((0,n.isStudy)(t)){const s=t.metaInfo();if("Volume"===s.shortId&&e.containsMainSeries())return e.createPriceScaleAtPosition("overlay");const r=t.desiredPriceScalePosition();if(null!==r)return this._tryToGetDesiredPriceScale(e,t,r,i);if(void 0!==i&&((0,n.isStudy)(i)||e.isMainPane())&&s.is_price_study)return this._getPriceScaleTheSameAsForSource(i,e)}let r=!1;if((0,n.isStudy)(t)){const i=t.metaInfo().groupingKey;if(void 0!==i){const t=e.model().findNonOverlayStudyWithGroupingKey(i,e);if(null!==t)return this._getPriceScaleTheSameAsForSource(t.study,t.pane)}r=Boolean(t.metaInfo().is_price_study)}else t===e.model().mainSeries()&&(r=!0) -;if(r){const t=this._findFirstScaleForPriceStudy(e);if(null!==t)return t}return this.createNewPriceScaleIfPossible(e)}canCreateNewPriceScale(e){return e.leftPriceScales().length+e.rightPriceScales().lengthi&&this._priceScaleIsPrice(e.rightPriceScales()[i],t))return e.rightPriceScales()[i];if(e.leftPriceScales().length>i&&this._priceScaleIsPrice(e.leftPriceScales()[i],t))return e.leftPriceScales()[i]}return null}_targetPriceScaleIndex(e,t){if(e.mainSource()===t.mainSeries())return 0}_tryToGetDesiredPriceScale(e,t,i,r){switch(i){case"left":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay");case"right":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay");case"as-series":return void 0!==r?(0,s.ensureNotNull)(r.priceScale()):e.isMainPane()?(0,s.ensureNotNull)((0,s.ensureNotNull)(e.mainDataSource()).priceScale()):this.createNewPriceScaleIfPossible(e);case"overlay":return e.createPriceScaleAtPosition("overlay")}}}const a=[{name:"left",title:(0,r.t)("Stack on the left"),ctor:class extends o{constructor(e){super(e)}apply(e){const t=e.model();e.rightPriceScales().slice(0).forEach(i=>e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay")}}},{name:"right",title:(0,r.t)("Stack on the right"),ctor:class extends o{constructor(e){super(e)}apply(e){const t=e.model();e.leftPriceScales().slice(0).forEach(i=>e.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay")}}},{name:"auto",title:(0,r.t)("Auto"),ctor:class extends o{constructor(e){super(e)}apply(e){if(e.containsMainSeries()){const t=(0,s.ensureNotNull)((0,s.ensureNotNull)(e.mainDataSource()).priceScale());e.movePriceScale(t,"right",0)}const t=e.model();for(;e.leftPriceScales().length>e.rightPriceScales().length;){const i=e.leftPriceScales()[e.leftPriceScales().length-1];e.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t))}for(;e.rightPriceScales().length-e.leftPriceScales().length>1;){const i=e.rightPriceScales()[e.rightPriceScales().length-1];e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t))}}createNewPriceScaleIfPossible(e){if(!this.canCreateNewPriceScale(e))return e.createPriceScaleAtPosition("overlay");const t=e.leftPriceScales().lengtht.name===e));return new t.ctor(t)}function c(){return a}},85847:(e,t,i)=>{"use strict";i.d(t,{SelectionIndexes:()=>r});var s=i(88537);class r{constructor(e){this._baseIndex=null,this._offsetInBar=null,this._offsetInTime=null,this._barsBetweenPoints=null,this._timescale=e}indexes(){const e=this._timescale.visibleBarsStrictRange();if(null===e)return[];const t=e.firstBar(),i=e.lastBar();if(null===this._offsetInTime||null===this._barsBetweenPoints){const e=this._timescale.barSpacing();this._barsBetweenPoints=Math.floor(120/e),this._offsetInBar=i%this._barsBetweenPoints,this._offsetInTime=this._timescale.indexToTimePoint(this._offsetInBar),this._baseIndex=this._timescale.baseIndex()}const r=this._timescale.baseIndex();this._baseIndex!==r&&(this._baseIndex=r,this._offsetInBar=(0,s.ensureNotNull)(this._timescale.timePointToIndex(this._offsetInTime)));const n=(0,s.ensureNotNull)(this._offsetInBar),o=[];let a=Math.floor((t-n)/this._barsBetweenPoints);const l=Math.floor((i-n)/this._barsBetweenPoints);for(;a<=l;a++)o.push(n+a*this._barsBetweenPoints);return o}clear(){this._offsetInBar=null,this._offsetInTime=null,this._baseIndex=null,this._barsBetweenPoints=null}}},41892:(e,t,i)=>{"use strict";i.d(t,{SelectionRenderer:()=>l});var s=i(34026),r=i(45112),n=i(84346),o=i(56589);const a=r.colorsPalette["color-tv-blue-600"];class l{constructor(e){this._data=e||null}setData(e){this._data=e}draw(e,t){if(null===this._data||!this._data.visible)return;const i=t.pixelRatio;e.strokeStyle=void 0!==this._data.color?this._data.color:a,e.lineCap="butt";const s=Math.max(1,Math.floor(i));e.lineWidth=s;const r=this._data.vertOffset||0;for(let t=0;t(0,s.pointInBox)(t,e))}_drawMarker(e,t,i,s,r){let n=Math.round(3.5*r*2);n%2!=s%2&&(n+=1);let o=Math.round(n+2*(.5*s+.75*r));o%2!=s%2&&(o+=1);const a=Math.round(t.x*r),l=Math.round((t.y+i)*r),c=s%2/2;e.beginPath(),e.arc(a+c,l+c,o/2,0,2*Math.PI,!0),e.closePath(),e.fill(),e.beginPath(),e.arc(a+c,l+c,n/2,0,2*Math.PI,!0),e.closePath(),e.stroke()}}},10590:(e,t,i)=>{"use strict";i.d(t,{SeriesBase:()=>Ht});var s=i(88537),r=i(49483),n=i(51768),o=i(76422),a=i(98125),l=i(22932),c=i(63948),h=i(71053),d=i(2015),u=i.n(d),p=i(37667),_=i(28930),m=i(97098),g=i(16654),f=i(45058),v=i(28353),S=i(67337),y=i(1570),b=i(50338),w=i(35218);function C(e){const t="QUANDL"===(e=e||{}).exchange,i={title:"",description:"",interval:"",exchange:"",provider:"",chartStyle:"", -sessionDescription:""};let s="";if(e.description&&t)if(2===e.description.split("/").length)s=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),s+=t[2===t.length?1:0]})}else s=e.description?e.description:e.symbol;if(e.ticker?(i.title=e.ticker,i.description=P(s)):i.title=P(s),e.interval&&(i.interval=(0,w.translatedIntervalString)(e.interval)),t&&e.description){const t=/[\w_]+\/[\w_]+/.exec(e.description);t&&t[0]?i.provider=P(t[0].split("/")[0]):i.provider=P(e.description.split("/")[0])}return e.exchange&&(i.exchange=P(e.exchange)),i.chartStyle=P(function(e){return e.inputs,8===e.style?(0,v.t)("Heikin Ashi"):""}(e)),e.branding&&!s.toUpperCase().includes("TradingView".toUpperCase())&&(i.branding="TradingView"),e.sessionDescription&&(i.sessionDescription=P(e.sessionDescription)),i}function P(e){return e.replace(/'/g,"")}const T=(0,v.t)("Symbol Error"),x=S.enabled("hide_unresolved_symbols_in_legend");class I extends b.StatusProviderBase{constructor(e,t,i,s){super(t),this._series=e,this._statusViewProperties=i,this._options=s||{}}text(){return function(e){const t=C(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}`:"")}(t)}(this._getTitleGenerationOptions())}getSplitTitle(){return C(this._getTitleGenerationOptions())}bold(){return!1}size(){return this._statusViewProperties.childs().fontSize.value()+"px"}errorStatus(){const e=this._series.seriesErrorMessage();return null!==e?{error:e,title:T}:null}_getTitleGenerationOptions(){const e=this._series.symbolInfo(),t=this._statusViewProperties.childs(),i=this._series.symbolTextSourceProxyProperty().value();let s;return t.showExchange.value()&&e&&(s=(0,p.isEconomicSymbol)(e)&&e.source?e.source:e.exchange),{description:"ticker"===i?e&&e.name||void 0:(0,y.getTranslatedSymbolDescription)({pro_name:e&&e.pro_name||void 0,short_name:e&&e.name||void 0,description:e&&e.description||void 0,short_description:e&&e.short_description||void 0,local_description:e&&e.local_description||void 0,language:e&&e.language||void 0}),exchange:s,symbol:x&&null===e?"":this._series.symbol(),interval:t.showInterval.value()&&!this._options.hideResolution?this._series.interval():void 0,style:this._series.properties().childs().style.value(),inputs:this._series.getInputsProperties().state(),boxSize:this._series.data().boxSize,reversalAmount:this._series.data().reversalAmount,ticker:"ticker-and-description"===i?e&&e.name||void 0:"",branding:this._options.branding}}}class M extends f.StatusView{constructor(e,t,i,s){super(new I(e,t,i,s)),this._invalidated=!0,this._series=e,this._series.onRestarted().subscribe(this,this.update),this._series.dataEvents().symbolResolved().subscribe(this,this.update), -this._series.dataEvents().completed().subscribe(this,this.update),this._series.boxSizeValue().subscribe(this.update.bind(this)),i.childs().symbolTextSource.listeners().subscribe(this,this.update)}getSeriesPrecision(){let e=4;const t=this._series.symbolInfo();return t&&t.pricescale&&(e=Math.round(Math.log(t.pricescale)/Math.log(10))),e}round(e){const t=this.getSeriesPrecision(),i=Math.round(e*Math.pow(10,t))/Math.pow(10,t);return i?i.toString():""}update(){this._invalidated=!0}text(){return this._updateImpl(),super.text()}color(){return this._updateImpl(),super.color()}bold(){return this._updateImpl(),super.bold()}size(){return this._updateImpl(),super.size()}getSplitTitle(){return this._updateImpl(),this._statusProvider.getSplitTitle()}_updateImpl(){this._invalidated&&(this._bold=this._statusProvider.bold(),this._size=this._statusProvider.size(),this._text=this._statusProvider.text(),this._invalidated=!1)}}var L=i(14445),A=i(85733),E=i(83393),k=i(14291);const D=r.CheckMobile.any(),V=S.enabled("hide_resolution_in_legend");class B extends L.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._series=e,this._model=t,this._valuesProvider=this._createValuesProvider(e,t),this._items=this._valuesProvider.getItems().map(e=>new L.DataWindowItem(e.title,"",e.unimportant)),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}series(){return this._series}_updateImpl(){const e=this._series.symbolInfo();if(e){const t=[e.name];V||t.push((0,w.translatedIntervalString)(this._series.interval())),(0,p.isEconomicSymbol)(e)&&e.source?t.push(e.source):t.push((0,r.onWidget)()||"forex"===e.type?e.exchange:e.listed_exchange),this._header=t.join(", "),this._title=e.description}else this._header=this._series.symbol();const t=this._model.crossHairSource().appliedIndex(),i=this._valuesProvider.getValues(t);for(let e=0;ee||t||i,i.showBarChange,i.showSeriesOHLC,i.showVolume),this._visibilityProperty.subscribe(this,this.update)}areValuesVisible(){return this._visibilityProperty.value()}additional(){return null}marketTitle(){const e=this._series.marketStatusModel().status().value();return this._showLastPriceAndChangeOnly()&&("pre_market"===e||"post_market"===e)?F+":":""}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_createValuesProvider(e,t){return new R(e,t)}}var H=i(52714),z=i.n(H),U=i(90388),j=i(10480);function G(){const e=window.ChartApiInstance.serverTimeOffset();return Date.now()/1e3+e}function q(e,t,i){return e<=i?t<=i?1/0:t/1e3:Math.min(e,t)/1e3}class Y{constructor(e,t){this._marketStatus=new(z())(null),this._lastMarketStatus=null,this._sessionsSpec=null,this._nextSessionEdgeInternal=null,this._nextSessionEdge=new(z())(null),this._recalcNextSessionEdgeTimerId=null,this._quotesProvider=e,e.quotesUpdate().subscribe(this,this._update.bind(this)),e.quoteSymbolChanged().subscribe(this,()=>{this._nextSessionEdgeInternal=null,this._recalculateNextSessionEdge()}),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.quoteSymbolChanged().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this),null!==this._recalcNextSessionEdgeTimerId&&clearTimeout(this._recalcNextSessionEdgeTimerId)}setSymbolInfo(e){var t,i,s,r,n;if(this._nextSessionEdgeInternal=null,null===e)return void(this._sessionsSpec=null);const o=new U.SessionSpec(e.timezone,null!==(t=e.session_display)&&void 0!==t?t:e.session,e.session_holidays,e.corrections);let a,l;const c=null===(i=e.subsessions)||void 0===i?void 0:i.find(e=>"premarket"===e.id),h=null===(s=e.subsessions)||void 0===s?void 0:s.find(e=>"postmarket"===e.id);void 0!==c&&(a=new U.SessionSpec(e.timezone,null!==(r=c["session-display"])&&void 0!==r?r:c.session,e.session_holidays,c["session-correction"])),void 0!==h&&(l=new U.SessionSpec(e.timezone,null!==(n=h["session-display"])&&void 0!==n?n:h.session,e.session_holidays,h["session-correction"])),this._sessionsSpec={general:o,preMarket:a, -postMarket:l},this._recalculateNextSessionEdge()}status(){return this._marketStatus}nextSessionEdge(){return this._nextSessionEdge}_resetStatus(){this._marketStatus.setValue(null)}_update(e){void 0!==e&&void 0!==e.values.current_session&&(this._lastMarketStatus=e.values.current_session),null!==this._lastMarketStatus?this._marketStatus.setValue(this._lastMarketStatus):this._resetStatus()}_getNextSessionEdgeInternal(){var e;if(null===this._sessionsSpec||"24x7"===this._sessionsSpec.general.spec())return null;const t=1e3*G();if(null===this._nextSessionEdgeInternal||(null!==(e=this._nextSessionEdgeInternal.timestamp)&&void 0!==e?e:1/0)<=t/1e3){const{general:e,preMarket:i,postMarket:s}=this._sessionsSpec,r=(0,j.get_timezone)(e.timezone()),n=(0,j.utc_to_cal)(r,t),o=q((0,j.cal_to_utc)(r,e.alignToNearestSessionStart(n,1)),(0,j.cal_to_utc)(r,e.alignToNearestSessionEnd(n,1)),t),a=q(void 0!==i?(0,j.cal_to_utc)(r,i.alignToNearestSessionStart(n,1)):1/0,void 0!==i?(0,j.cal_to_utc)(r,i.alignToNearestSessionEnd(n,1)):1/0,t),l=q(void 0!==s?(0,j.cal_to_utc)(r,s.alignToNearestSessionStart(n,1)):1/0,void 0!==s?(0,j.cal_to_utc)(r,s.alignToNearestSessionEnd(n,1)):1/0,t),c=Math.min(o,a,l);c===1/0&&(this._nextSessionEdgeInternal={timestamp:null}),this._nextSessionEdgeInternal=c===l?{timestamp:c,status:"post_market"}:c===a?{timestamp:c,status:"pre_market"}:{timestamp:c}}return this._nextSessionEdgeInternal}_recalculateNextSessionEdge(){const e=this._getNextSessionEdgeInternal();if(null===e||null===e.timestamp)return void this._nextSessionEdge.setValue(null);const t={status:e.status,remainingSeconds:Math.max(0,e.timestamp-G())};if(null===this._recalcNextSessionEdgeTimerId){let e=Math.ceil(t.remainingSeconds%60);0===e&&(e+=60),this._recalcNextSessionEdgeTimerId=setTimeout(()=>this._recalculateNextSessionEdgeByTimer(),1e3*e)}this._nextSessionEdge.setValue(t)}_recalculateNextSessionEdgeByTimer(){this._recalcNextSessionEdgeTimerId=null,this._recalculateNextSessionEdge()}}var K=i(8175),$=i(29823),X=i(69177),Z=i(11075),J=i(9423);let Q=0;class ee{constructor(e,t){this._extrapolatedData=[],this._cacheForFuture=!1,this._modelId=Q++,this._builderCache=null,this._uniqueId=(0,J.randomHashN)(6),this._resolution=t,this._symbolInfo=e,this._valid=Boolean(e.timezone)&&Boolean(e.session),this._session=new X.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections)}syncSourceTarget(){return{uniqueId:this._uniqueId,resolution:this._resolution,symbolInfo:this._symbolInfo,session:this._session.state()}}getSymbolInfo(){return this._symbolInfo}getSession(){return this._session}getResolution(){return this._resolution}uniqueId(){return this._modelId}distance(e,t){if(!this.isValid())return{success:!1};if(e>t)return{success:!1};if(e===t)return{success:!0,result:0};let i=this._extrapolatedData.length,s=0!==i?this._extrapolatedData[0]:null,r=null!==s?this._extrapolatedData[i-1]:null;const n=er){const s=(0, -Z.extrapolateBarsFrontToTime)(this._barBuilder(),r||1e3*e,1e3*t,2e3,!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=n}if(r=this._extrapolatedData[i-1],r<1e3*t)return{success:!1};const o=this._extrapolatedData.indexOf(1e3*t);return-1===o?{success:!1}:{success:!0,result:o}}projectTime(e,t){if(!this.isValid())return e;let i=this._extrapolatedData.length,s=i>0?this._extrapolatedData[0]:null,r=null!==s?this._extrapolatedData[i-1]:null;const n=t>=0;1e3*e===s&&this._cacheForFuture===n||(this._extrapolatedData=[1e3*e],i=1,s=null,r=null);const o=Math.abs(t);if(null===s||o>=i){const s=(0,Z.extrapolateBarsFrontByCount)(this._barBuilder(),r||1e3*e,Math.sign(t)*(o-i+1),!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=n}return i0?le(e):function(e,t){return se().hasEodSymbols(e.full_name)||t===g.STATUS_EOD}(e,t)?(i.push("EOD"),i):i;var s}class he{constructor(e,t,i){this._dataUpdatedModeStatus=new(z())(null),this._symbolInfo=(0,te.createWVFromGetterAndSubscription)(e.getter,e.onChange),this._status=(0,te.createWVFromGetterAndSubscription)(t.getter,t.onChange),this._symbolInfo.subscribe(this._update.bind(this)),this._status.subscribe(this._update.bind(this)),this._resetSubscription=i,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._symbolInfo.destroy(),this._status.destroy(),this._resetSubscription.unsubscribeAll(this)}status(){return this._dataUpdatedModeStatus.readonly()}symbolName(){const e=this._symbolInfo.value();return null!==e?e.name:""}time(){const e=this._symbolInfo.value(),t=null!==e&&e.delay&&e.delay>0?e.delay:900;return Math.round(t/60)}listedExchange(){const e=this._symbolInfo.value();return null!==e?e.listed_exchange:""}async description(){const e=this._symbolInfo.value();if(null===e)return"";let t={};try{t=(0,s.ensureNotNull)(await async function(e){return null}())}catch(e){ae.logWarn("Cannot get exchange "+(0,oe.errorToString)(e))}return t.description||e.listed_exchange}exchange(){const e=this._symbolInfo.value();return null!==e?e.exchange:""}proName(){const e=this._symbolInfo.value();return null!==e?e.pro_name:""}firstReplacedByBatsExchange(){const e=this._symbolInfo.value();return e&&null}_resetStatus(){ -this._dataUpdatedModeStatus.setValue(null)}_update(){const e=this._symbolInfo.value();if(null===e)return void this._dataUpdatedModeStatus.setValue(null);const t=this._status.value();if("string"==typeof t)return void this._dataUpdatedModeStatus.setValue(null);if(t===g.STATUS_LOADING||t===g.STATUS_RESOLVING)return;const i=ce(e,t);0!==i.length?this._dataUpdatedModeStatus.setValue(i):this._dataUpdatedModeStatus.setValue(null)}}var de=i(40144),ue=i(80643);class pe{constructor(e,t){this._dataProblem=new de.WatchedObject(null),this._quotesProvider=e,this._quotesProvider.quotesUpdate().subscribe(this,this._update.bind(this)),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this)}status(){return this._dataProblem}_resetStatus(){this._dataProblem.setValue(null)}_update(e){void 0===e.values||void 0===e.values.data_problem?this._resetStatus():this._dataProblem.setValue((0,ue.clone)(e.values.data_problem))}}var _e=i(90810),me=i(68906),ge=i(97938),fe=i(3825);function ve(e){return e<10?"0"+e:e.toString()}var Se=i(74477),ye=i(33291);const be=[0,1,2,3,9,8,10],we=S.enabled("force_exchange_as_title"),Ce={alwaysShowGlobalLast:!1,visibleOnHistoryOnly:!1,showCountdown:!0,showSymbolLabel:!0};class Pe extends ge.PriceAxisView{constructor(e,t,i){super(),this._previousCountdown="",this._source=e,this._model=t,this._options={...Ce,...i}}updateCountdown(){this._countdownText()!==this._previousCountdown&&(this.update((0,ye.dataSourceChangeEvent)(this._source.id())),this._model.updateSourcePriceScale(this._source))}_getSource(){return this._source}_getModel(){return this._model}_isCountdownEnabled(){return this._options.showCountdown}_countdownText(){const e=$.Interval.parse(this._source.interval());if(e.isDWM()||e.isTicks()||e.isSeconds()&&1===e.multiplier())return"";const t=this._source.data().bars().last();if(null===t)return"";const i=1e3*(0,s.ensure)(t.value[0]),r=$.Interval.parse(this._source.interval()).inMilliseconds(),n=i.valueOf()+r;let o=Math.round((n-this._currentTime())/1e3);if(o<=0)return"";o=Math.min(o,r/1e3);let a=null;o>=3600&&(a=ve(Math.floor(o/3600))),o%=3600;const l=ve(Math.floor(o/60));o%=60;const c=ve(Math.floor(o));return null!==a?`${a}:${l}:${c}`:`${l}:${c}`}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._source.isVisible())return;const s=this._source.properties().childs();if(12===s.style.value())return;const r=this._model.timeScale().visibleBarsStrictRange(),n=this._source.data().last();if(null===r||null===n)return;if(this._options.visibleOnHistoryOnly&&r.contains(n.index))return;const o=this._model.properties().childs().scalesProperties.childs();let a=o.showSeriesLastValue.value(),l=this._isCountdownEnabled()&&-1!==be.indexOf(s.style.value())&&s.showCountdown.value()&&(this._options.alwaysShowGlobalLast||r.contains(n.index)),c=this._options.showSymbolLabel&&o.showSymbolLabels.value() -;const h=o.seriesLastValueMode.value()===fe.PriceAxisLastValueMode.LastPriceAndPercentageValue,d=this._source.lastValueData(void 0,this._options.alwaysShowGlobalLast);if(d.noData)return;const u=8===s.style.value();if((a||l||c)&&u&&s.haStyle.childs().showRealLastPrice.value()){const e=this._source.lastValueData(void 0,!1),t=this._source.lastValueData(void 0,!0);e.noData||t.noData||e.index!==t.index||(a=!1,l=!1,c=!1)}if(i.background=this._source.priceLineColor(d.color),i.coordinate=d.coordinate,i.floatCoordinate=d.floatCoordinate,a||l){const t=this._axisFirstLineText(d,a);e.text=t,i.textColor=this.generateTextColor(i.background),e.textColor=i.textColor;const s=a&&h?(0,Se.getOppositeModePriceText)(this._source.priceScale(),d):"";e.secondLine=s,i.secondLineTextColor=i.textColor;const r=l?this._countdownText():"";this._previousCountdown=r,e.thirdLine=r,i.thirdLineTextColor=(0,me.generateColor)(i.textColor,25),0===t.length&&0===s.length&&0===r.length||(e.visible=!0)}c&&(t.text=this._paneText(c),t.visible=t.text.length>0)}_paneText(e){let t="";const i=this._source.symbolInfo();return we?t=(0,p.displayedSymbolExchange)(i):e&&(t=(0,p.displayedSymbolName)(i)),t}_axisFirstLineText(e,t){return t?(0,Se.getCurrentModePriceText)(this._source.priceScale(),e):""}_currentTime(){return Date.now()+1e3*this._source.serverTimeOffset()}}var Te=i(55057);class xe extends Pe{lastPrice(){return this._getSource().data().lastProjectionPrice}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const r=this._getModel(),n=this._getSource(),o=n.priceScale(),a=r.timeScale(),l=this.lastPrice();if(a.isEmpty()||o.isEmpty()||void 0===l)return;const c=a.visibleBarsStrictRange();if(null===c)return;const d=c.firstBar(),u=c.lastBar(),p=n.data(),_=p.search(u,h.PlotRowSearchMode.NearestLeft);if(null===_)return;const m=n.nearestIndex(d,h.PlotRowSearchMode.NearestRight);if(void 0===m)return;const g=n.model().properties().childs().scalesProperties.childs(),f=(0,s.ensureNotNull)(p.valueAt(m))[4];let v=i.background,S=g.showSeriesLastValue.value(),y=!1,b=!1,w=!1;const C=n.lastValueData(4,!1),P=n.properties().childs();if(8===P.style.value()&&P.haStyle.childs().showRealLastPrice.value()){const e=n.lastValueData(4,!0);if(e.noData||e.color===i.background||(v=e.color),!e.noData&&!C.noData){const t=e.index===C.index;y=t&&g.showSymbolLabels.value(),b=g.seriesLastValueMode.value()===fe.PriceAxisLastValueMode.LastPriceAndPercentageValue,S=S&&t,w=t&&this._isCountdownEnabled()&&P.showCountdown.value()}}else{v=n.barColorer().barStyle(_.index,!0).barColor}if(i.background=v,i.textColor=this.generateTextColor(v),i.secondLineTextColor=i.textColor,i.thirdLineTextColor=(0,me.generateColor)(i.textColor,25),i.coordinate=o.priceToCoordinate(l,f),e.visible=S||w,!C.noData){const i=n.priceScale().isPercentage();C.formattedPriceAbsolute=o.formatPriceAbsolute(l),C.formattedPricePercentage=o.formatPricePercentage(l,f,!0),C.text=i?C.formattedPricePercentage:C.formattedPriceAbsolute,e.text=this._axisFirstLineText(C,S),e.secondLine=S&&b?i?C.formattedPriceAbsolute:C.formattedPricePercentage:"", -e.thirdLine=w?this._countdownText():"",t.text=this._paneText(y)}t.visible=y}}var Ie=i(28978),Me=i(22221),Le=i(45112),Ae=i(43891);const Ee={light:{lineStyle:Ae.LINESTYLE_DOTTED,lineWidth:1,textColor:Le.colorsPalette["color-cold-gray-900"],backgroundColor:Le.colorsPalette["color-tv-blue-50"],lineColor:Le.colorsPalette["color-cold-gray-500"]},dark:{lineStyle:Ae.LINESTYLE_DOTTED,lineWidth:1,textColor:Le.colorsPalette["color-white"],backgroundColor:Le.colorsPalette["color-tv-blue-a800"],lineColor:Le.colorsPalette["color-cold-gray-500"]}};function ke(e){return e?Ee.dark:Ee.light}class De extends Me.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._isVisible=t.lineVisible,this._lineColor=t.lineColor,this._lineWidth=t.lineWidth,this._getValue=i}_updateImpl(){const e=this._lineRendererData;if(e.visible=!1,!this._isVisible.value())return;const t=this._model.mainSeries(),i=t.priceScale(),s=t.firstValue(),r=this._getValue();if(null===s||null===r)return;const n=ke(this._model.isDark()),o=this._lineColor.value()?this._lineColor.value():n.lineColor,a=this._lineWidth.value()?this._lineWidth.value():n.lineWidth;e.visible=!0,e.y=i.priceToCoordinate(r,s),e.linestyle=n.lineStyle,e.linewidth=a,e.color=o}}class Ve extends ge.PriceAxisView{constructor(e,t,i,s){super(),this._model=e,this._label=t,this._isVisible=i,this._getValue=s}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._isVisible.value())return;const s=this._model.mainSeries(),r=s.priceScale(),n=s.firstValue(),o=this._getValue();if(null===n||null===o)return;const a=ke(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(o),t.text=this._label,i.coordinate=r.priceToCoordinate(o,n),i.background=a.backgroundColor,i.textColor=a.textColor}}class Be extends Te.PriceLineAxisView{constructor(e,t,i){super(),this._model=e,this._isLineVisible=t,this._getValue=i}_isVisible(){return this._isLineVisible.value()}_lineWidth(){return ke(this._model.isDark()).lineWidth}_lineStyle(){return ke(this._model.isDark()).lineStyle}_priceLineColor(e){return ke(this._model.isDark()).lineColor}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),s=this._getValue();if(null===i||null===s)return{noData:!0};const r=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"",text:"",index:0}}}const Ne=(0,v.t)("High"),Re=(0,v.t)("Low");function Oe(e,t,i,s){const r=new De(e,i,s),n=new Ve(e,i.label,i.labelVisible,s);return{paneView:r,panePriceAxisView:new Ie.PanePriceAxisView(n,t,e),priceAxisView:n,priceLineAxisView:new Be(e,i.lineVisible,s)}}const Fe={light:{lineStyle:Ae.LINESTYLE_DOTTED,lineWidth:1,textColor:(0,Le.getHexColorByName)("color-cold-gray-900"),backgroundColor:(0,Le.getHexColorByName)("color-tv-blue-50"),lineColor:(0,Le.getHexColorByName)("color-cold-gray-500")},dark:{lineStyle:Ae.LINESTYLE_DOTTED,lineWidth:1,textColor:(0,Le.getHexColorByName)("color-white"),backgroundColor:(0,Le.getHexColorByName)("color-tv-blue-a800"), -lineColor:(0,Le.getHexColorByName)("color-cold-gray-500")}};function We(e){return e?Fe.dark:Fe.light}class He extends Me.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._isVisible=t.lineVisible,this._lineColor=t.lineColor,this._lineWidth=t.lineWidth,this._getValue=i}_updateImpl(){const e=this._lineRendererData;if(e.visible=!1,!this._isVisible.value())return;const t=this._model.mainSeries(),i=t.priceScale(),s=t.firstValue(),r=this._getValue();if(null===s||null===r)return;const n=We(this._model.isDark()),o=this._lineColor.value()?this._lineColor.value():n.lineColor,a=this._lineWidth.value()?this._lineWidth.value():n.lineWidth;e.visible=!0,e.y=i.priceToCoordinate(r,s),e.linestyle=n.lineStyle,e.linewidth=a,e.color=o}}class ze extends ge.PriceAxisView{constructor(e,t,i,s){super(),this._model=e,this._label=t,this._isVisible=i,this._getValue=s}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._isVisible.value())return;const s=this._model.mainSeries(),r=s.priceScale(),n=s.firstValue(),o=this._getValue();if(null===n||null===o)return;const a=We(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(o),t.text=this._label,i.coordinate=r.priceToCoordinate(o,n),i.background=a.backgroundColor,i.textColor=a.textColor}}class Ue extends Te.PriceLineAxisView{constructor(e,t,i){super(),this._model=e,this._isLineVisible=t,this._getValue=i}_isVisible(){return this._isLineVisible.value()}_lineWidth(){return We(this._model.isDark()).lineWidth}_lineStyle(){return We(this._model.isDark()).lineStyle}_priceLineColor(e){return We(this._model.isDark()).lineColor}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),s=this._getValue();if(null===i||null===s)return{noData:!0};const r=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"",text:"",index:0}}}const je=(0,v.t)("Avg");function Ge(e,t,i,s){const r=i.childs(),n=function(e,t,i,s){const r=new He(e,i,s),n=new ze(e,i.label,i.labelVisible,s),o=new Ie.PanePriceAxisView(n,t,e),a=new Ue(e,i.lineVisible,s);return{paneView:r,panePriceAxisView:o,priceAxisView:n,priceLineAxisView:a}}(e,t,{label:je,labelVisible:r.averageClosePriceLabelVisible,lineVisible:r.averageClosePriceLineVisible,lineColor:r.averagePriceLineColor,lineWidth:r.averagePriceLineWidth},()=>s(0));return{paneViews:[n.paneView],panePriceAxisViews:[n.panePriceAxisView],priceAxisViews:[n.priceAxisView],priceLineAxisViews:[n.priceLineAxisView]}}var qe=i(2872),Ye=i.n(qe),Ke=i(14791),$e=i(86441);class Xe{constructor(){this._data=null}setData(e){this._data=e}data(){return this._data}draw(e,t){const i=this._data;if(null===i)return;const s=t.pixelRatio;e.save();const r=Math.max(1,Math.floor(s)),n=r%2/2,o=Math.round(i.center.x*s)+n,a=i.center.y*s;e.fillStyle=i.seriesLineColor,e.beginPath();const l=Math.max(2,1.5*i.seriesLineWidth)*s;e.arc(o,a,l,0,2*Math.PI,!1),e.fill(),e.fillStyle=i.fillColor,e.beginPath(),e.arc(o,a,i.radius*s,0,2*Math.PI,!1),e.fill(), -e.lineWidth=r,e.strokeStyle=i.strokeColor,e.beginPath(),e.arc(o,a,i.radius*s+r/2,0,2*Math.PI,!1),e.stroke(),e.restore()}hitTest(e,t){return null}}function Ze(e){return e}const Je=[{start:0,end:.25,startRadius:4,endRadius:10,startFillAlpha:.25,endFillAlpha:0,startStrokeAlpha:.4,endStrokeAlpha:.8,easing:Ze},{start:.25,end:.525,startRadius:10,endRadius:14,startFillAlpha:0,endFillAlpha:0,startStrokeAlpha:.8,endStrokeAlpha:0,easing:Ze},{start:.525,end:1,startRadius:14,endRadius:14,startFillAlpha:0,endFillAlpha:0,startStrokeAlpha:0,endStrokeAlpha:0,easing:Ze}];function Qe(e,t,i,s){const r=i+(s-i)*t;return(0,me.applyTransparency)(e,(0,me.alphaToTransparency)(r))}function et(e,t){const i=e%2600/2600;let s;for(const e of Je)if(i>=e.start&&i<=e.end){s=e;break}if(void 0===s)throw new Error("Last price animation internal logic error");const r=s.easing((i-s.start)/(s.end-s.start));return{fillColor:Qe(t,r,s.startFillAlpha,s.endFillAlpha),strokeColor:Qe(t,r,s.startStrokeAlpha,s.endStrokeAlpha),radius:(n=r,o=s.startRadius,a=s.endRadius,o+(a-o)*n)};var n,o,a}class tt{constructor(e){this._renderer=new Xe,this._invalidated=!0,this._stageInvalidated=!0,this._startTime=performance.now(),this._endTime=this._startTime-1,this._series=e}update(e){if(this._invalidated=!0,"data-source-change"===e.type&&e.dataSourceId===this._series.id()||"viewport-change"===e.type||"global-change"===e.type){const e=performance.now(),t=this._endTime-e;if(t>0)return void(t<650&&(this._endTime+=2600));this._startTime=e,this._endTime=e+2600}}invalidateStage(){this._stageInvalidated=!0}animationActive(){return performance.now()<=this._endTime}stopAnimation(){this._endTime=this._startTime-1}renderer(e,t){return this._invalidated?(this._updateImpl(e,t),this._invalidated=!1,this._stageInvalidated=!1):this._stageInvalidated&&(this._updateRendererDataStage(),this._stageInvalidated=!1),this._renderer}_updateImpl(e,t){this._renderer.setData(null);const i=this._series.model().timeScale(),s=i.visibleBarsStrictRange(),r=this._series.firstValue(),n=this._series.lastValueData(void 0,!0,!0);if(null===s||null===r||void 0===n.index||void 0===n.price||!s.contains(n.index))return;const o=new $e.Point(i.indexToCoordinate(n.index),this._series.priceScale().priceToCoordinate(n.price,r)),a=n.color,l=this._series.properties().childs();let c;switch(this._series.style()){case 3:c=l.areaStyle.childs().linewidth.value();break;case 10:const t=l.baselineStyle,i=Math.round(e*(Math.abs(100-t.childs().baseLevelPercentage.value())/100));c=o.y<=i?t.childs().topLineWidth.value():t.childs().bottomLineWidth.value();break;default:c=l.lineStyle.childs().linewidth.value()}const h=et(this._duration(),a);this._renderer.setData({seriesLineColor:a,seriesLineWidth:c,fillColor:h.fillColor,strokeColor:h.strokeColor,radius:h.radius,center:o})}_updateRendererDataStage(){const e=this._renderer.data();if(null!==e){const t=et(this._duration(),e.seriesLineColor);e.fillColor=t.fillColor,e.strokeColor=t.strokeColor,e.radius=t.radius}}_duration(){return this.animationActive()?performance.now()-this._startTime:2599}} -var it=i(23653),st=i(59100),rt=i(95836),nt=i(9315),ot=i(38712);class at extends ot.SeriesHorizontalLinePaneView{constructor(e){super(e),this._lineRendererData.linestyle=Ae.LINESTYLE_DOTTED}_updateImpl(){this._lineRendererData.visible=!1;const e=this._series.properties().childs();if(!e.showPriceLine.value())return;if(12===e.style.value())return;const t=this._series.lastValueData(void 0,!0);t.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=t.coordinate,this._lineRendererData.color=this._series.priceLineColor(t.color),this._lineRendererData.linewidth=e.priceLineWidth.value())}}var lt=i(42169),ct=i(52640),ht=i(55257),dt=i(49094),ut=i(84346),pt=i(16282);class _t extends pt.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null,this._barWidth=null}setData(e){this._data=e,this._barWidth=Math.max(1,Math.round((0,dt.optimalHiLoWidth)(e.barSpacing)))}hitTest(e){if(null===this._data||null===this._barWidth)return null;const t=this._data.bars,i=.5*this._data.barSpacing;if(0===t.length)return null;if(e.xt[t.length-1].time+i)return null;const s=t[(0,ht.lowerbound)(t,e.x-i,(e,t)=>e.times.time+i)return null;const r=(0,dt.interactionTolerance)().series+this._barWidth/2,n=Math.min(s.high,s.low),o=Math.max(s.high,s.low),a=this._data.fontSize;return n-r-a<=e.y&&e.y<=n+r||o-r<=e.y&&e.y<=o+r+a?new ut.HitTestResult(ut.HitTestResult.REGULAR):null}_drawImpl(e){if(null===this._data||null===this._barWidth)return;e.save(),e.translate(.5,.5),e.textAlign="center",e.fillStyle=this._data.labelColor,e.font=(0,ct.makeFont)(this._data.fontSize,this._data.font);const t=this._data.bars,i=this._data.inverted;for(let s=0;se.highLabelWidth<=n&&e.lowLabelWidth<=n),a={bars:this._bars,wickVisible:!1,bodyVisible:r.drawBody.value(),barSpacing:n,borderVisible:r.showBorders.value(),barWidth:(0,dt.optimalHiLoWidth)(n),font:St.CHART_FONT_FAMILY, -fontSize:r.fontSize.value(),labelColor:r.labelColor.value(),inverted:s.isInverted(),labelsPadding:3},l=new gt.CompositeRenderer;return this._candlesRenderer.setData(a),l.append(this._candlesRenderer),o&&(this._labelsRenderer.setData(a),l.append(this._labelsRenderer)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&l.append(new ft.SelectionRenderer(this._selectionData)),l}topPixelMargin(){return this._margin()}bottomPixelMargin(){return this._margin()}_margin(){const e=this._source.properties().childs().hiloStyle.childs();return e.showLabels.value()?e.fontSize.value()+6:0}_barUpdater(e,t,i,s){const r=i[2],n=i[3];if(!bt(r)||!bt(n))return!1;if(s.high=s.open=r,s.low=s.close=n,t){const t=s;t.highLabel=e.format(r),t.highLabelWidth=this._getLabelWidth(t.highLabel),t.lowLabel=e.format(n),t.lowLabelWidth=this._getLabelWidth(t.lowLabel)}return!0}_needLabels(){const e=this._model.timeScale().barSpacing();return this._source.properties().childs().hiloStyle.childs().showLabels.value()&&e>5}_getLabelWidth(e){return this._widthsCache.measureText(this._context,e)}}var Ct=i(81688),Pt=i(59153),Tt=i(66919),xt=i(85224),It=i(33837),Mt=i(34041);class Lt extends yt.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const s=this._source.properties().childs().haStyle.childs(),r=this._model.timeScale().barSpacing(),n={bars:this._bars,barSpacing:r,bodyVisible:s.drawBody.value(),borderVisible:s.drawBorder.value(),borderColor:s.borderColor.value(),wickColor:s.wickColor.value(),barWidth:(0,dt.optimalBarWidth)(r),wickVisible:s.drawWick.value(),isPriceScaleInverted:i.isInverted()},o=new gt.CompositeRenderer;return o.append(new mt.PaneRendererCandles(n)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&o.append(new ft.SelectionRenderer(this._selectionData)),o}}var At=i(30076),Et=i(35251),kt=i(69147);const Dt=S.enabled("price_scale_always_last_bar_value"),Vt=S.enabled("display_data_mode"),Bt=(r.CheckMobile.any(),!S.enabled("hide_series_legend_item")),Nt=S.enabled("hide_price_scale_global_last_bar_value"),Rt=S.enabled("show_average_close_price_line_and_label"),Ot=(0,a.getLogger)("Chart.Series"),Ft=S.enabled("pre_post_market_sessions"),Wt={countdownEnabled:!0,lastPriceAnimationEnabled:!0};class Ht extends l.PriceDataSource{constructor(e,t,i,r){super(e,"_seriesId"),this.chartWidgetInitialized=new(Ye()),this.requestingIntradayWhenNotSupported=new(Ye()),this.requestingResolutionWhenNotSupported=new(Ye()),this.requestingStyleIsNotSupported=new(Ye()),this.requestingStyleSupportRecovered=new(Ye()),this._paneView=null,this._futureBarsPaneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=null,this._gotoDateView=null,this._baseHorizontalLineView=null,this._priceStep=null,this._symbolInfo=null,this._prevSymbolInfo=null,this._isPrePostMarketPricesAvailableProperty=new(u())(!1),this._isBackAdjustmentForbiddenProperty=new(u())(!0), -this._isSettlementAsCloseForbiddenProperty=new(u())(!0),this._highLowPriceCache=new Map,this._averagePriceCache=new Map,this._prevClosePriceAxisView=null,this._priceScaleChanged=new(Ye()),this._priceScaleAboutToBeChanged=new(Ye()),this._onRestarted=new(Ye()),this._onStatusChanged=new(Ye()),this._extendedHoursChanged=new(Ye()),this._tagsChanged=new(Ye()),this._intervalChanged=new(Ye()),this._sessionIdChanged=new(Ye()),this._currency=null,this._unit=null,this._requestMoreDataAvailable=!0,this._lineStyleLastPriceCirclePaneView=new tt(this),this._prevClosePriceLineView=null,this._dataPoweredBy=null,this._loading=!0,this._seriesLoaded=!1,this._status=0,this._symbolResolvingActive=new(z())(!1),this._predictBars=0,this._syncModel=null,this._data=null,this._endOfDataType=null,this._haStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(8,!0))},this._renkoStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(4,!0))},this._pbStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(7,!0))},this._kagiStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(5,!0))},this._pnfStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(6,!0))},this._rangeStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(11,!0))},this._boxSizeValue=new(z()),this._base=100,this._pointValue=1,this._formattingDeps=null,this._formatter=new m.PriceFormatter(this._base),this._ignoreMinMoveFormatter=new m.PriceFormatter(this._base),this._ignoreMinMovePriceStep=null,this._lastBarCloseTime=null,this._onSessionIdPropertyChangedBound=this._onSessionIdPropertyChanged.bind(this),this._ignoreSessionIdProxyPropertyChanges=!1,this._textSourceIsAlwaysTickerRestrictionEnabled=!1,this._lastPriceAnimationActive=!1,this._currentSession="out_of_session",this._onStyleChanged=new(Ye()),this._preventRestartOnChartStyleChange=!1,this._intervalObj=null,this._obsoleteZOrder=0,this._seriesErrorMessage=null,this._seriesAlwaysFalseHibernatedVW=new(z())(!1),this._styleToRecover=null,this._isActingAsSymbolSource=new(z())(!0),this._seriesSource=new st.SeriesDataSource(e.chartApi(),"s",r);const n=this._seriesSource.dataEvents();n.symbolResolved().subscribe(this,this._onSymbolResolved),n.symbolError().subscribe(this,this._onSymbolError),n.seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),n.seriesError().subscribe(this,this._onSeriesError),n.loading().subscribe(this,this._onSeriesLoading),n.completed().subscribe(this,this._onSeriesCompleted),n.dataUpdated().subscribe(this,this._onDataUpdated),n.barReceived().subscribe(this,this._onBarReceived),this._quotesProvider=new _e.QuotesProvider,this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate);const o=t.childs();if(t.hasChild("extendedHours")){(0,s.ensureDefined)(o.extendedHours).value()&&!t.hasChild("sessionId")&&t.addChild("sessionId",new(u())("extended")),t.removeProperty("extendedHours")}t.hasChild("sessionId")||t.addChild("sessionId",new(u())(_.SubsessionId.Regular)),this._setProperties(t),this._sessionIdProxyProperty=new(u())(o.sessionId.value()), -o.sessionId.subscribe(this,()=>this._updateSessionIdProxyProperty()),this._sessionIdProxyProperty.subscribe(this,this._onSessionIdProxyPropertyChanged),this._symbolTextSourceProxyProperty=new(u()),this._recalcSymbolTextSourceProxyProperty(),o.statusViewStyle.childs().symbolTextSource.subscribe(this,this._recalcSymbolTextSourceProxyProperty),this._symbolTextSourceProxyProperty.subscribe(this,()=>e.lightUpdate()),this._options=(0,ue.merge)((0,ue.clone)(Wt),i),this._prevChartStyle=o.style.value(),this._priceAxisView=new Pe(this,e,{alwaysShowGlobalLast:!Nt,showCountdown:i.countdownEnabled});let a=null;Dt||Nt||(a=new Pe(this,e,{visibleOnHistoryOnly:!0,showSymbolLabel:!1,showCountdown:!1,alwaysShowGlobalLast:!1})),this._priceLinePriceAxisView=new Te.SeriesPriceLineAxisView(this),this._priceLineAxisViews=[this._priceLinePriceAxisView];const l=new xe(this,e,{showCountdown:i.countdownEnabled});this._priceAxisViews=[this._priceAxisView,l],null!==a&&this._priceAxisViews.push(a),this._panePriceAxisView=new Ie.PanePriceAxisView(this._priceAxisView,this,e),this._historyPricePanePriceAxisView=null!==a?new Ie.PanePriceAxisView(a,this,e):null,this._projectionPriceAxisView=new Ie.PanePriceAxisView(l,this,e),this._labelPaneViews=[this._panePriceAxisView,this._projectionPriceAxisView],null!==this._historyPricePanePriceAxisView&&this._labelPaneViews.push(this._historyPricePanePriceAxisView),this._highLowAvgPaneViews=[],this._averagePaneViews=[],Rt&&this._createAverageViews(),this._createHighLowAvgViews(),this._subscribeRestartToSessionIdChange(),o.visible.subscribe(this,this._updateLastPriceAnimationActive),this._updateLastPriceAnimationActive(),this._dataWindowView=new B(this,e),this._legendView=new W(this,e);const c={branding:!1};this._statusView=new M(this,this._model.properties().childs().scalesProperties.childs().textColor,o.statusViewStyle,c),this._marketStatusModel=new Y(this._quotesProvider,o.symbol.listeners()),this._dataUpdatedModeModel=Vt?new he({getter:this.symbolInfo.bind(this),onChange:n.symbolResolved()},{getter:this.status.bind(this),onChange:this._onStatusChanged},o.symbol.listeners()):null,this._dataProblemModel=new pe(this._quotesProvider,o.symbol.listeners()),this._symbolResolvingActive.subscribe(()=>e.realignLineTools()),this._intervalChanged.subscribe(this,()=>e.realignLineTools())}supportsPressedChunks(){return!0}pressedChunks(e,t){return this.data().pressedChunks(e,t)}seriesErrorMessage(){return this._seriesErrorMessage}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),this._model.timeScale().visibleBarsStrictRangeChanged().unsubscribeAll(this),this._unsubscribeRestartToSessionIdChange()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}createPaneView(){this._paneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=this.hasClosePrice()?new at(this):null;const e=this._properties.childs().style.value();switch(e){case 0:this._paneView=new Tt.SeriesBarsPaneView(this,this._model);break;case 1: -this._paneView=new xt.SeriesCandlesPaneView(this,this._model);break;case 2:this._paneView=new It.SeriesLinePaneView(this,this._model);break;case 3:this._paneView=new Mt.SeriesAreaPaneView(this,this._model);break;case 8:this._paneView=new Lt(this,this._model);break;case 9:this._paneView=new At.SeriesHollowCandlesPaneView(this,this._model);break;case 13:this._paneView=new Pt.SeriesColumnsPaneView(this,this._model);break;case 10:{this._paneView=new Et.SeriesBaselinePaneView(this,this._model);const e=this._properties.childs().baselineStyle.childs();this._waterlineView=new lt.SeriesWaterlinePaneView({paneHeight:()=>this.priceScale().height(),color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}case 12:this._paneView=new wt(this,this._model)}if(null===this._paneView)throw Error("Unknown chart style assigned: "+e)}properties(){return this._properties}zorder(){return 0}quotesProvider(){return this._quotesProvider}currentSession(){return this._currentSession}getRealVisibleRange(){const e=this.model().timeScale().visibleBarsStrictRange();if(null===e)return null;const t=this.data().search(e.firstBar(),h.PlotRowSearchMode.NearestRight),i=this.data().search(e.lastBar(),h.PlotRowSearchMode.NearestLeft);return null===t||null===i?null:new Ct.BarsRange(t.index,i.index)}syncModel(){if(!this._syncModel){const e=this.symbolInfo(),t=this.interval();if(!e||!t)return null;this._syncModel=new ee(e,t)}return this._syncModel}labelPaneViews(){return this._labelPaneViews}topPaneViews(){if(this._lastPriceAnimationActive){const e=this._lineStyleLastPriceCirclePaneView;return e.animationActive()&&setTimeout(()=>this._model.invalidate(it.InvalidationMask.cursor()),0),e.invalidateStage(),[e]}return null}priceAxisViews(e,t){return e.findTargetPriceAxisViews(this,t,this._priceAxisViews,this._priceLineAxisViews)}clearHighLowPriceCache(){this._highLowPriceCache.clear()}clearAveragePriceCache(){this._averagePriceCache.clear()}priceScaleChanged(){return this._priceScaleChanged}priceScaleAboutToBeChanged(){return this._priceScaleAboutToBeChanged}disconnect(){this._seriesSource.stop(),this.m_symbol=void 0,this._predictBars=0,this._status=0,this._model.isSnapshot()||(this._prevSymbolInfo=null,this._symbolInfo=null)}isStatusBad(){return 12===this.status()||4===this.status()||10===this.status()}isStatusError(){return 12===this.status()}actualSymbol(){return(0,p.actualSymbol)(this.symbolInfo(),this.symbol())}proSymbol(){return(0,p.proSymbol)(this.symbolInfo(),this.symbol())}onStyleChanged(){return this._onStyleChanged}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}symbolSameAsCurrent(e){return(0,Ke.symbolSameAsCurrent)(e,this.m_symbol,this.symbolInfo())}status(){return this._status}symbolInfo(){return this._symbolInfo}symbolResolved(){return this.dataEvents().symbolResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._seriesAlwaysFalseHibernatedVW}formatter(e=!0){return e?this._formatter:this._ignoreMinMoveFormatter} -priceStep(e=!0){return e?this._priceStep:this._ignoreMinMovePriceStep}bars(){return this.data().bars()}nsBars(){return this.data().nsBars()}interval(){return this.properties().childs().interval.value()}setInterval(e){this.setSymbolParams({interval:e})}intervalObj(){const e=this.interval();if(null!==this._intervalObj&&this._intervalObj.resolutionString===e)return this._intervalObj.interval;const t=$.Interval.parse(e);return this._intervalObj={resolutionString:e,interval:t},t}prevClose(){const e=this.priceScale();if(e.isEmpty()||this.data().isEmpty())return null;const t=this.quotes(),i=this.firstValue();if(null===t||null===i)return null;const s=t.prev_close_price;return void 0===s?null:{coordinate:e.priceToCoordinate(s,i),floatCoordinate:e.priceToCoordinate(s,i),formattedPricePercentage:e.formatPricePercentage(s,i,!0),formattedPriceAbsolute:e.formatPriceAbsolute(s),formattedPriceIndexedTo100:e.formatPriceIndexedTo100(s,i)}}hasClosePrice(){return 12!==this.properties().childs().style.value()}lastValueData(e,t,i){const s={noData:!0},r=this.priceScale();if(this.model().timeScale().isEmpty()||r.isEmpty()||this.data().isEmpty())return s;const n=this.model().timeScale().visibleBarsStrictRange(),o=this.firstValue();if(null===n||null===o)return s;let a,l;if(t){const e=this.data().bars().last();if(null===e)return s;a=e.value,l=e.index}else{const e=this.data().bars().search(n.lastBar(),h.PlotRowSearchMode.NearestLeft);if(null===e)return s;a=e.value,l=e.index}const c=void 0!==e?a[e]:this._barFunction(a),d=this.barColorer().barStyle(l,!1),u=r.priceToCoordinate(c,o),p={...r.getFormattedValues(c,o,!0),noData:!1,color:d.barColor,floatCoordinate:u,coordinate:u,index:l};return i&&(p.price=c),p}isDWM(){return this.intervalObj().isDWM()}data(){var e;return null!==(e=this._data)&&void 0!==e?e:this._seriesSource.data()}clearData(){(0,s.assert)(null===this._data,"Cannot clear loaded data"),this._seriesSource.clearData()}nearestValue(e,t,i){const s=this.nearestData(e,i);return s?s.value[t]:void 0}onIntervalChanged(){return this._intervalChanged}onStatusChanged(){return this._onStatusChanged}onRestarted(){return this._onRestarted}onExtendedHoursChanged(){return this._extendedHoursChanged}sessionId(){return this.properties().childs().sessionId.value()}sessionIdChanged(){return this._sessionIdChanged}autoScaleInfo(e,t){const i=this.priceRange(e,t);if(null===this._paneView)return{range:i};const s=this._paneView;return{range:i,topPixelMargin:s.topPixelMargin?s.topPixelMargin():void 0,bottomPixelMargin:s.bottomPixelMargin?s.bottomPixelMargin():void 0}}onChartStyleChanged(){var e;this._updateBarFunction(),!this._preventRestartOnChartStyleChange&&this.isNeedRestart()&&(this.data().clear(),this.model().timeScale().scrollToRealtime(!1),this.restart());const t=this.properties();this._prevChartStyle=t.childs().style.value(),this._onStyleChanged.fire(t.childs().style.value()),this.invalidateBarStylesCache(),this._updateLastPriceAnimationActive(), -(null===(e=this._styleToRecover)||void 0===e?void 0:e.originalStyle)!==this.style()&&(this._styleToRecover=null)}setChartStyleWithIntervalIfNeeded(e,t){const i=this.interval(),s=null!=t?t:(0,nt.getResolutionByChartStyle)(e,i,this._model.defaultResolutions()),r=$.Interval.isEqual(s,i);this.setSymbolParams({interval:r?void 0:s,style:e})}styleStudyInfos(){return{haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle}}sessionIdProxyProperty(){return this._sessionIdProxyProperty}symbolTextSourceProxyProperty(){return this._symbolTextSourceProxyProperty}setTextSourceIsAlwaysTickerRestrictionEnabled(e){this._textSourceIsAlwaysTickerRestrictionEnabled=e,this._recalcSymbolTextSourceProxyProperty()}isPrePostMarketPricesAvailableProperty(){return this._isPrePostMarketPricesAvailableProperty}isSettlementAsCloseForbiddenProperty(){return this._isSettlementAsCloseForbiddenProperty}isBackAdjustmentForbiddenProperty(){return this._isBackAdjustmentForbiddenProperty}dataWindowView(){return this._dataWindowView}statusView(){return Bt?this._statusView:null}legendView(){return this._legendView}marketStatusModel(){return this._marketStatusModel}dataUpdatedModeModel(){return this._dataUpdatedModeModel}dataProblemModel(){return this._dataProblemModel}quotes(){return this.data().isEmpty()?null:this._quotesProvider.quotes()}base(){return this._base}pointValue(){return this._pointValue}barCloseTime(){return this._lastBarCloseTime}priceSource(){let e=null;const t=this._properties.childs();switch(t.style.value()){case 2:e=t.lineStyle.childs().priceSource.value();break;case 3:e=t.areaStyle.childs().priceSource.value();break;case 10:e=t.baselineStyle.childs().priceSource.value();break;case 13:e=t.columnStyle.childs().priceSource.value()}return e}updateAllViews(e){var t,i,s,r,n,o,a;null===(t=this._paneView)||void 0===t||t.update(e),this._dataWindowView.update(),this._legendView.update(),this._statusView.update(),this._averagePaneViews.forEach(t=>t.update(e)),this._highLowAvgPaneViews.forEach(t=>t.update(e)),this._labelPaneViews.forEach(t=>t.update(e)),this._priceAxisViews.forEach(t=>t.update(e)),this._priceLineAxisViews.forEach(t=>t.update(e)),null===(i=this._futureBarsPaneView)||void 0===i||i.update(e),null===(s=this._projectionBarsPaneView)||void 0===s||s.update(e),null===(r=this._waterlineView)||void 0===r||r.update(e),null===(n=this._priceLineView)||void 0===n||n.update(e),null===(o=this._gotoDateView)||void 0===o||o.update(e),null===(a=this._baseHorizontalLineView)||void 0===a||a.update(e);const l=this._model.activeStrategySource().value();null==l||l.updateAllViews(e),this._lineStyleLastPriceCirclePaneView.update(e)}barFunction(){return this._barFunction}setSymbolParams(e){const{symbol:t,interval:i,currency:s,unit:r,style:n}=e,o=this.properties().childs(),a=void 0!==t&&t!==o.symbol.value(),l=void 0!==s&&s!==o.currencyId.value(),c=void 0!==r&&r!==o.unitId.value(),h=void 0!==i&&i!==o.interval.value(),d=void 0!==n&&n!==o.style.value() -;a&&o.symbol.setValueSilently(t),l&&o.currencyId.setValueSilently(s),c&&o.unitId.setValueSilently(r),h&&o.interval.setValueSilently(i),d&&o.style.setValueSilently(n),a&&o.symbol.listeners().fire(o.symbol),l&&o.currencyId.listeners().fire(o.currencyId),c&&o.unitId.listeners().fire(o.unitId),h&&o.interval.listeners().fire(o.interval),d&&(a||l||c||h?(this._preventRestartOnChartStyleChange=!0,o.style.listeners().fire(o.style),this._preventRestartOnChartStyleChange=!1):o.style.listeners().fire(o.style))}setSymbol(e){this.setSymbolParams({symbol:e})}currency(){return this.properties().childs().currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,p.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this.properties().childs().unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,p.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}symbolSource(){return this}title(){return this.symbolTitle()}name(){return this.symbolTitle()}symbolTitle(e,t,i="exchange"){let s=this.properties().childs().symbol.value();const r=this.symbolInfo();if(null!==r){const{type:t}=r;s=(0,p.symbolTitle)(r,e,"forex"===t?"exchange":i)}return t?s:`${s}, ${(0,w.translatedIntervalString)(this.properties().childs().interval.value())}`}setObsoleteZOrder(e){this._obsoleteZOrder=e}obsoleteZOrder(){return this._obsoleteZOrder}valuesProvider(){return new R(this,this.model())}statusProvider(e){return new I(this,this._model.properties().childs().scalesProperties.childs().textColor,this.properties().childs().statusViewStyle,e)}open(e){const t=this.data().valueAt(e);return t&&t[1]}high(e){const t=this.data().valueAt(e);return t&&t[2]}low(e){const t=this.data().valueAt(e);return t&&t[3]}close(e){const t=this.data().valueAt(e);return t&&t[4]}moveItem(e,t,i){if(10===this.style()&&0===t){const t=this.priceScale(),i=this.properties().childs().baselineStyle,s=t.height(),r=100-e.y/s*100,n=r<0?0:Math.round(10*r)/10;i.childs().baseLevelPercentage.setValue(Math.max(Math.min(n,100),0))}}requestMoreDataAvailable(){return this._requestMoreDataAvailable}endOfData(){return null!==this._endOfDataType}dataPoweredBy(){return null}boxSizeValue(){return this._boxSizeValue}isUserDeletable(){return!1}changeSymbol(){this.setSymbolIntervalCurrencyDelayed(),this.model().checkLineToolSelection()}changeInterval(){this.setSymbolIntervalCurrencyDelayed()}changeTimeFrame(){(0,n.trackEvent)("GUI","Change timeframe")}onTagsChanged(){return this._tagsChanged}state(e){const t=this.obsoleteZOrder();let i={type:"MainSeries",id:this.id(),zorder:t,haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle};const s=this.properties().state();return this._symbolInfo&&(this._symbolInfo.ticker&&(s.symbol=this._symbolInfo.ticker),i.formattingDeps={format:this._symbolInfo.format,pricescale:this._symbolInfo.pricescale,minmov:this._symbolInfo.minmov,fractional:this._symbolInfo.fractional, -minmove2:this._symbolInfo.minmove2}),this._model.unitConversionEnabled()||(s.unitId=null),i.state=s,e&&(i={...i,bars:this._barsState(this.bars()),nsBars:this._barsState(this.nsBars()),symbolInfo:this._symbolInfo,rtPrice:this.data().lastProjectionPrice,boxSize:this.data().boxSize,reversalAmount:this.data().reversalAmount}),i}restoreState(e,t){if(t&&this._setStatus(5),!this._model.unitConversionEnabled()&&e.state&&delete e.state.unitId,this._properties.mergeAndFire(e.state),this._properties.hasChild("esdBreaksStyle")&&this._properties.removeProperty("esdBreaksStyle"),this._prevChartStyle=this.properties().childs().style.value(),this.createPaneView(),t){const t=e;this.restoreData(t.bars,t.nsBars,t.symbolInfo,t.rtPrice,t.boxSize,t.reversalAmount)}e.formattingDeps&&(this._formattingDeps=e.formattingDeps,this._recreatePriceFormattingDependencies())}restoreData(e,t,i,s,r,n){this._status=5,this._data=new c.SeriesData,this._data.bars().restoreState(e),this._data.nsBars().restoreState(t),this._updateSymbolInfo(i,!1),this._data.lastProjectionPrice=s,this._data.boxSize=r;const o=this.properties().childs();r||(6===o.style.value()?this._data.boxSize=o.pnfStyle.childs().inputs.childs().boxSize.value():4===o.style.value()&&(this._data.boxSize=o.renkoStyle.childs().inputs.childs().boxSize.value())),this._data.reversalAmount=n,n||5===o.style.value()&&(this._data.reversalAmount=o.kagiStyle.childs().inputs.childs().reversalAmount.value()),this._loading=!1}_barsState(e){const t=e.state();return t.data.forEach(e=>e.value.splice(7,1)),t}_updateBarFunction(){if(12===this.properties().childs().style.value())this._barFunction=(0,c.barFunction)("low");else{const e=this.priceSource()||"close";this._barFunction=(0,c.barFunction)(e)}}_setProperties(e){e.hasChild("timeframe")||e.merge({timeframe:""}),e.hasChild("shortName")||e.merge({shortName:""}),e.hasChild("currencyId")||e.addChild("currencyId",new(u())(null)),e.hasChild("unitId")||e.addChild("unitId",new(u())(null)),this._properties=e;const t=e.childs();t.symbol.listeners().subscribe(this,this.changeSymbol),t.interval.listeners().subscribe(this,this.changeInterval),t.currencyId.listeners().subscribe(this,this._changeCurrency),t.unitId.listeners().subscribe(this,this._changeUnit),t.timeframe.listeners().subscribe(this,this.changeTimeFrame),e.subscribe(this,this._onPropertiesChanged)}_updateSessionIdProxyProperty(e){const t=this._properties.childs().sessionId.value();let i=t;if(e){const e=this.symbolInfo();null!==e&&(i=e.subsession_id||t)}this._ignoreSessionIdProxyPropertyChanges=!0,this._sessionIdProxyProperty.setValue(i),this._ignoreSessionIdProxyPropertyChanges=!1}_onSessionIdProxyPropertyChanged(){this._ignoreSessionIdProxyPropertyChanges||this._properties.childs().sessionId.setValue(this._sessionIdProxyProperty.value()),this._updateLastPriceAnimationActive()}_onSymbolResolved(e){var t;const i=this.properties().childs();S.enabled("charting_library_single_symbol_request")||(this.m_symbol=null!==(t=(0,p.extractSymbolNameFromSymbolInfo)(e,(0, -p.symbolForApi)(e,i.symbol.value())))&&void 0!==t?t:i.symbol.value()),this._seriesErrorMessage=null,this._updateSymbolInfo(e,!1),this._model.updateSource(this),this._model.onWidget()||((0,n.trackEvent)("Symbol",e.listed_exchange,e.name),(0,n.trackEvent)("Symbol Type",e.type,e.listed_exchange));const s=e.minmov/e.pricescale;4===i.style.value()&&i.renkoStyle.childs().inputs.childs().boxSize.value()s(0)),o=Oe(e,t,{label:Re,labelVisible:r.highLowPriceLabelsVisible,lineVisible:r.highLowPriceLinesVisible,lineColor:r.highLowPriceLinesColor,lineWidth:r.highLowPriceLinesWidth},()=>s(1));return{paneViews:[n.paneView,o.paneView],panePriceAxisViews:[n.panePriceAxisView,o.panePriceAxisView],priceAxisViews:[n.priceAxisView,o.priceAxisView],priceLineAxisViews:[n.priceLineAxisView,o.priceLineAxisView]}}(this._model,this,e,t);this._highLowAvgPaneViews.push(...i.paneViews),this._labelPaneViews.push(...i.panePriceAxisViews),this._priceAxisViews.push(...i.priceAxisViews),this._priceLineAxisViews.push(...i.priceLineAxisViews)}_createAverageViews(){const e=this.properties().childs().highLowAvgPrice,t=this._getAveragePrice.bind(this),i=Ge(this._model,this,e,t);this._averagePaneViews.push(...i.paneViews),this._labelPaneViews.push(...i.panePriceAxisViews),this._priceAxisViews.push(...i.priceAxisViews),this._priceLineAxisViews.push(...i.priceLineAxisViews)}_getHighLowPrice(e){if(!this._highLowPriceCache.has(e)){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=function(e,t,i){return e.minMaxOnRangeCached(t,i,[{name:"low",offset:0},{name:"high",offset:0}])}(this._model.mainSeries().bars(),e.firstBar(),e.lastBar());if(null===t)return null;this._highLowPriceCache.set(1,t.min),this._highLowPriceCache.set(0,t.max)}return this._highLowPriceCache.get(e)}_getAveragePrice(e){if(!this._averagePriceCache.has(e)){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=function(e,t,i){0;const s=(0,c.barFunction)("close");let r=0,n=0;for(let o=t;o<=i;o++){const t=e.valueAt(o);null!==t&&(r+=s(t),n++)} -return n?r/n:null}(this._model.mainSeries().bars(),e.firstBar(),e.lastBar());if(null===t)return null;this._averagePriceCache.set(0,t)}return this._averagePriceCache.get(e)}_onSessionIdPropertyChanged(){this._sessionIdChanged.fire(),this.isDWM()||(this.restart(),this._updateLastPriceAnimationActive())}_subscribeRestartToSessionIdChange(){this.properties().childs().sessionId.subscribe(this,this._onSessionIdPropertyChangedBound)}_unsubscribeRestartToSessionIdChange(){this.properties().childs().sessionId.unsubscribe(this,this._onSessionIdPropertyChangedBound)}_updateLastPriceAnimationActive(){if(!this._options.lastPriceAnimationEnabled)return;const e=this._lastPriceAnimationActive,t=this.properties().childs(),i=t.style.value();if(this._model.isSnapshot()||!t.visible.value()||3!==i&&10!==i&&2!==i)this._lastPriceAnimationActive=!1;else{const e=this.currentSession(),t=!(0,p.isRegularSessionId)(this.sessionIdProxyProperty().value())&&!this.isDWM();this._lastPriceAnimationActive="market"===e||t&&("pre_market"===e||"post_market"===e)}this._lastPriceAnimationActive&&e!==this._lastPriceAnimationActive&&this.model().invalidate(it.InvalidationMask.cursor())}_onPropertiesChanged(e){const t=this._properties.childs();e!==t.symbol&&e!==t.interval&&e!==t.timeframe&&(this._tagsChanged.fire(),this.createPaneView(),this.updateAllViews((0,ye.dataSourceChangeEvent)(this._id)),this.model().updateSource(this),(0,o.emit)("series_properties_changed",this._id))}_recalcSymbolTextSourceProxyProperty(){this._textSourceIsAlwaysTickerRestrictionEnabled?this._symbolTextSourceProxyProperty.setValue("ticker"):this._symbolTextSourceProxyProperty.setValue(this._properties.childs().statusViewStyle.childs().symbolTextSource.value())}}},16654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{STATUS_OFFLINE:()=>s,STATUS_RESOLVING:()=>r,STATUS_LOADING:()=>n,STATUS_READY:()=>o,STATUS_INVALID_SYMBOL:()=>a,STATUS_SNAPSHOT:()=>l,STATUS_EOD:()=>c,STATUS_PULSE:()=>h,STATUS_DELAYED:()=>d,STATUS_DELAYED_STREAMING:()=>u,STATUS_NO_BARS:()=>p,STATUS_REPLAY:()=>_,STATUS_ERROR:()=>m,SERIES_STATUS_TEXT:()=>g,STYLE_LINE_TYPE_MARKERS:()=>f,STYLE_LINE_TYPE_STEP:()=>v,STYLE_LINE_TYPE_SIMPLE:()=>S,STYLE_BARS:()=>y,STYLE_CANDLES:()=>b,STYLE_LINE:()=>w,STYLE_AREA:()=>C,STYLE_RENKO:()=>P,STYLE_KAGI:()=>T,STYLE_PNF:()=>x,STYLE_PB:()=>I,STYLE_HEIKEN_ASHI:()=>M,STYLE_HOLLOW_CANDLES:()=>L,STYLE_BASELINE:()=>A,STYLE_RANGE:()=>E,STYLE_HILO:()=>k,STYLE_COLUMNS:()=>D,STYLE_SHORT_NAMES:()=>V,SYMBOL_STRING_DATA:()=>B});const s=0,r=1,n=2,o=3,a=4,l=5,c=6,h=7,d=8,u=9,p=10,_=11,m=12,g={[s]:"connecting",[r]:"loading",[n]:"loading",[o]:"realtime",[a]:"invalid",[l]:"snapshot",[c]:"endofday",[h]:"endofday",[d]:"delayed",[u]:"delayed_streaming",[p]:"forbidden",[_]:"replay",[m]:"error"},f=0,v=1,S=2,y=0,b=1,w=2,C=3,P=4,T=5,x=6,I=7,M=8,L=9,A=10,E=11,k=12,D=13,V={0:"bar",1:"candle",9:"hollowCandle",2:"line",3:"area",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo",13:"column"},B={4:{type:"BarSetRenko@tv-prostudies",basicStudyVersion:40},7:{type:"BarSetPriceBreak@tv-prostudies", -basicStudyVersion:34},5:{type:"BarSetKagi@tv-prostudies",basicStudyVersion:34},6:{type:"BarSetPnF@tv-prostudies",basicStudyVersion:34},8:{type:"BarSetHeikenAshi@tv-basicstudies",basicStudyVersion:60},11:{type:"BarSetRange@tv-basicstudies",basicStudyVersion:72}}},63948:(e,t,i)=>{"use strict";i.d(t,{seriesPlotFunctionMap:()=>c,barFunction:()=>h,SeriesData:()=>p});var s,r=i(88537),n=i(71053),o=i(55257);!function(e){e[e.FromLeft=-1]="FromLeft",e[e.FromRight=1]="FromRight"}(s||(s={}));const a={open:e=>e[1],high:e=>e[2],low:e=>e[3],close:e=>e[4],hl2:e=>(e[2]+e[3])/2,hlc3:e=>(e[2]+e[3]+e[4])/3,ohlc4:e=>(e[1]+e[2]+e[3]+e[4])/4},l=["open","high","low","close","hl2","hlc3","ohlc4"];function c(){const e=new Map;return l.forEach((t,i)=>{e.set(t,h(t))}),e}function h(e){return a[e]}function d(e,t){return null==e[t]}const u=[{barsToMerge:10,forBarspacingLargerThen:.03},{barsToMerge:30,forBarspacingLargerThen:.01},{barsToMerge:100,forBarspacingLargerThen:.003},{barsToMerge:500,forBarspacingLargerThen:0}];class p{constructor(){this._pressedChunks={chunks:new Map,priceSource:"uninitialized"},this.m_bars=new n.PlotList(c(),d),this.m_nsBars=new n.PlotList(c(),d),this._clearPressedChunks()}bars(){return this.m_bars}nsBars(){return this.m_nsBars}pressedChunks(e,t){if(t!==this._pressedChunks.priceSource){this._pressedChunks.priceSource=t;const e=this.m_bars.first();e&&(this._clearPressedChunks(),this._rebuildPressedChunks(e))}const i=(0,r.ensureDefined)(u.find(t=>t.forBarspacingLargerThen<=e));return(0,r.ensureDefined)(this._pressedChunks.chunks.get(i.barsToMerge))}mergeRegularBars(e){const t=this.m_bars.size(),i=this.m_bars.merge(e);return i&&"uninitialized"!==this._pressedChunks.priceSource&&(t===this.m_bars.size()&&i.index===this.m_bars.lastIndex()?this._updateLatestChunks():this._rebuildPressedChunks(i)),i}size(){return this.m_bars.size()+this.m_nsBars.size()}each(e){this.m_bars.each(e),this.m_nsBars.each(e)}clear(){this.m_bars.clear(),this.m_nsBars.clear(),this.lastProjectionPrice=void 0,this._clearPressedChunks()}isEmpty(){return this.m_bars.isEmpty()&&this.m_nsBars.isEmpty()}first(){return this.m_bars.isEmpty()?this.m_nsBars.first():this.m_bars.first()}last(){return this.m_nsBars.isEmpty()?this.m_bars.last():this.m_nsBars.last()}search(e,t){return this.nsBars().isEmpty()?this.bars().search(e,t):this.bars().isEmpty()||(0,r.ensureNotNull)(this.nsBars().firstIndex())<=e?this.nsBars().search(e,t):this.bars().search(e,t)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}plotValueToTimePointIndex(e,t,i){if(i===s.FromRight){const i=(i,s)=>{const r=s[t];return null!=r&&e>=r},s=this.m_bars.findLast(i);if(null!==s)return s.index;const r=this.m_nsBars.findLast(i);return null!==r?r.index:this.m_bars.firstIndex()}if(i===s.FromLeft){const i=(i,s)=>{const r=s[t];return null!=r&&e<=r},s=this.m_bars.findFirst(i);if(null!==s)return s.index;const r=this.m_nsBars.findFirst(i);return null!==r?r.index:this.m_bars.lastIndex()}throw new Error("plotValueToTimePointIndex: unsupported search mode")}moveData(e){this.m_bars.move(e), -this.m_nsBars.move(e),this.m_bars.size()>0&&this._rebuildPressedChunks((0,r.ensureNotNull)(this.m_bars.first()))}_rebuildPressedChunks(e){const t=this._pressedChunks.priceSource;if("uninitialized"===t)return;const i=e.index,s=a[t],n=(e,t,i)=>{let r=null;for(;e.hasNext();){const n=e.next(),o=s(n.value);r&&n.index-r.startTime>=i.barsToMerge&&(t.push(r),r=null),r?(r.endTime=n.index,r.high=Math.max(r.high,o),r.low=Math.min(r.low,o),r.close=o):r={startTime:n.index,endTime:n.index,open:o,high:o,low:o,close:o}}r&&t.push(r)};u.forEach(e=>{const t=(0,r.ensureDefined)(this._pressedChunks.chunks.get(e.barsToMerge)),s=(0,o.lowerbound)(t,i,(e,t)=>e.endTime0){const i=t[0].startTime-1,s=(0,r.ensureNotNull)(this.m_bars.firstIndex()),o=this.m_bars.rangeIterator(s,i),a=[];n(o,a,e);const l=a.concat(t);this._pressedChunks.chunks.set(e.barsToMerge,l)}else{const i=(0,r.ensureNotNull)(this.m_bars.lastIndex());t.splice(s);let o=(0,r.ensureNotNull)(this.m_bars.firstIndex());t.length&&(o=t[t.length-1].endTime+1);const a=this.m_bars.rangeIterator(o,i);n(a,t,e)}})}_updateLatestChunks(){const e=(0,r.ensureNotNull)(this.m_bars.lastIndex());u.forEach(t=>{const i=(0,r.ensureDefined)(this._pressedChunks.chunks.get(t.barsToMerge)),s=this.m_bars.rangeIterator(e,e).next(),n=s.value[4],o=i[i.length-1];o.high=Math.max(o.high,n),o.low=Math.min(o.low,n),o.close=n,o.endTime=s.index})}_clearPressedChunks(){u.forEach(e=>this._pressedChunks.chunks.set(e.barsToMerge,[]))}}},34081:(e,t,i)=>{"use strict";i.d(t,{SeriesTimeRangeVolumeCalculator:()=>s});class s{constructor(e){this._value=null,this._series=e,this._series.dataEvents().dataUpdated().subscribe(this,this._onSeriesUpdated)}destroy(){this._series.dataEvents().dataUpdated().unsubscribeAll(this)}volume(e,t){if(null!==this._value&&this._value.from===e&&this._value.to===t)return this._value.value;let i=0;const s=this._series.data().bars(),r=s.firstIndex(),n=s.lastIndex();if(null!==r&&en&&t>n)i=NaN;else{const s=this._series.data().bars().rangeIterator(Math.min(e,t),Math.max(e,t));for(;s.hasNext();){const e=s.next().value[5];if(void 0===e){i=NaN;break}i+=e}}return this._value={from:e,to:t,value:i},i}_onSeriesUpdated(e,t){if(null===this._value)return;if(t)return void(this._value=null);const i=this._series.data().bars().lastIndex();(null===i||i<=this._value.to)&&(this._value=null)}}},37667:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isRequiringRestartSeriesStyles:()=>y,isRangeBasedStyle:()=>b,isRangeStyle:()=>w,isTimeBasedStyle:()=>C,isValidStyle:()=>P,isSingleValueBasedStyle:()=>T,setLastUsedStyle:()=>x,getLastUsedStyle:()=>I,getLastUsedSingleValueBasedStyle:()=>M,getDefaultStyle:()=>L,getChartStyleByResolution:()=>A,chartStyleStudyId:()=>E,preparePriceAxisProperties:()=>k,hasProjection:()=>V,isPriceSourceStyle:()=>B,getSeriesPriceFormattingState:()=>N,createSeriesFormatter:()=>R,symbolCurrencyConvertible:()=>O,symbolCurrency:()=>F,symbolOriginalCurrency:()=>W,symbolBaseCurrency:()=>H,isConvertedToOtherCurrency:()=>z,symbolUnitConvertible:()=>U,symbolUnit:()=>j, -symbolOriginalUnit:()=>G,isConvertedToOtherUnit:()=>q,symbolUnitConvertibleGroupsIfExist:()=>Y,symbolCurrentContract:()=>K,symbolHasPreOrPostMarket:()=>$,symbolHasSeveralSessions:()=>X,symbolHasEconomicEvents:()=>Z,extractSymbolNameFromSymbolInfo:()=>J,symbolTitle:()=>Q,displayedSymbolName:()=>ee,displayedSymbolExchange:()=>te,actualSymbol:()=>ie,proSymbol:()=>se,symbolForApi:()=>re,isRegularSessionId:()=>ne,isCloseBasedSymbol:()=>oe,isMeasureUnitSymbol:()=>ae,measureUnitId:()=>le,hasVolume:()=>ce,isEconomicSymbol:()=>he,getStudySymbolExchange:()=>de,isFutureContinuousSymbolWithBackajustment:()=>ue,isCryptoSymbol:()=>pe});var s=i(56840),r=i(16654),n=i(29823),o=i(97098),a=i(67337),l=i(88537),c=i(67802),h=i(26811);const d=a.enabled("pay_attention_to_ticker_not_symbol"),u=a.enabled("uppercase_instrument_names"),p=a.enabled("charting_library_single_symbol_request"),_=a.enabled("use_ticker_on_symbol_info_update"),m=a.enabled("hide_object_tree_and_price_scale_exchange_label"),g=[4,5,6,7,8],f=[4,5,6,7,11],v=[0,1,9,2,3,10,8,13],S=[2,10,3,13];function y(e){return-1!==g.indexOf(e)}function b(e){return-1!==f.indexOf(e)}function w(e){return 11===e}function C(e){return-1!==v.indexOf(e)}function P(e){return b(e)||C(e)}function T(e){switch(e){case 3:case 10:case 2:case 13:return!0;default:return!1}}function x(e,t){P(e)&&(11!==e&&s.setValue("chart.lastUsedStyle",e),oe(t)&&T(e)&&s.setValue("chart.lastUsedSingleValueBasedStyle",e))}function I(){const e=s.getInt("chart.lastUsedStyle");return void 0===e?1:e}function M(){const e=s.getInt("chart.lastUsedSingleValueBasedStyle");return void 0===e?2:e}function L(e){return e?11:1}function A(e,t){const i=w(t),s=n.Interval.isRange(e);return!i&&s?L(!0):i&&!s?L(!1):t}function E(e,t){const i=r.SYMBOL_STRING_DATA[e];return void 0===i?null:t?`${i.type}-${i.basicStudyVersion}`:i.type}function k(e){const t=e.priceAxisProperties,i=t.lockScale.value(),s=6===e.style.value();(s||i)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!s&&!i)),t.percentageDisabled.setValue(!(!s&&!i))}const D=[4,7,5,6];function V(e){return-1!==D.indexOf(e)}function B(e){return S.includes(e)}function N(e,t="default",i=!1){let s,r,n=100,o=1;if("default"===t)null!=e&&(n=e.pricescale,o=e.minmov,s=e.fractional,r=e.minmove2);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),n=parseInt(e[0]),o=parseInt(e[1]),s="true"===e[2]}return i&&(o=1),{priceScale:n,minMove:o,fractional:s,minMove2:r}}function R(e,t,i=!1){if("default"===t&&null!=e){const t=e.formatter||e.format;if("volume"===t)return new c.VolumeFormatter(2);if("percent"===t)return new h.PercentageFormatter(e.pricescale)}const{priceScale:s,minMove:r,fractional:n,minMove2:a}=N(e,t,i);return new o.PriceFormatter(s,r,n,a)}function O(e){return null!==e&&"spread"!==e.type}function F(e,t,i){if(null===e)return null;const s=!t||i?e.currency_id:e.currency_code;return void 0===s||""===s?null:s}function W(e,t){const i=t?e.original_currency_code:e.original_currency_id;return null!=i?i:F(e,t)}function H(e){return e.base_currency_id||null}function z(e){ -return!(null===e||!O(e))&&(void 0!==e.original_currency_id&&e.original_currency_id!==e.currency_id)}function U(e,t){return t&&null!==e&&"spread"!==e.type}function j(e,t){if(null===e||!t)return null;const i=e.unit_id;return void 0===i||""===i?null:i}function G(e,t){return t?e.original_unit_id||j(e,t):null}function q(e,t){return!(null===e||!U(e,t))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function Y(e,t){return null!==e&&U(e,t)?e.unit_conversion_types||null:[]}function K(e){return"futures"===e.type&&e.front_contract||null}function $(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.some(e=>"premarket"===e.id||"postmarket"===e.id)}function X(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.filter(e=>!e.private).length>1}function Z(e){return null!==e&&("forex"===e.type||"cfd"===e.type||pe(e))}function J(e,t){let i=e&&(e.pro_name||e.full_name||e.name);return p&&t?i=t:_&&e&&e.ticker&&(i=e.ticker),u&&i&&(i=i.toUpperCase()),i}function Q(e,t,i="exchange"){return t||m?e.name:`${e.name}, ${e[i]}`}function ee(e){let t=e&&(K(e)||e.name)||"";return t.length>40&&(t=t.substring(0,37)+"..."),t.trim()}function te(e){const t=e?e.exchange:"";return u?t.toUpperCase():t}function ie(e,t){return null!==e?e.full_name:t}function se(e,t){return null!==e?e.pro_name:t}function re(e,t){return d&&e?(0,l.ensureDefined)(e.ticker):ie(e,t)}function ne(e){return"regular"===e||"us_regular"===e}function oe(e){return"c"===(null==e?void 0:e.visible_plots_set)}function ae(e){return null!==e&&("unit"===e.measure&&null!==le(e))}function le(e){var t;return null!==(t=null==e?void 0:e.value_unit_id)&&void 0!==t?t:null}function ce(e){return void 0!==e.visible_plots_set?"ohlcv"===e.visible_plots_set:!e.has_no_volume}function he(e){return null!==e&&"economic"===e.type}function de(e){return he(e)&&e.source?e.source:e.exchange&&0!==e.exchange.length?e.exchange:void 0}function ue(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 pe(e){var t;return(null===(t=e.typespecs)||void 0===t?void 0:t.includes("crypto"))||"crypto"===e.type||"bitcoin"===e.type}},56972:(e,t,i)=>{"use strict";var s=i(2872),r=i(2015),n=i(69927).PriceRange;TradingView.DEFAULT_BAR_COUNT=300,TradingView.TIME_PLOT=0,TradingView.OPEN_PLOT=1,TradingView.HIGH_PLOT=2,TradingView.LOW_PLOT=3,TradingView.CLOSE_PLOT=4,TradingView.ADT_PLOT=6,TradingView.STYLE_PLOT=7;var o=i(88537).ensureNotNull,a=i(10590).SeriesBase,l=i(67337);const{dataSourceChangeEvent:c}=i(33291);var h=i(33981).SeriesBarColorer,d=i(71053),u=d.PlotRowSearchMode,p=d.mergeMinMax,_=(i(51768).trackEvent,i(98125).getLogger("Chart.Series")),m=i(16654),g=i(37667),f=i(9315).getServerInterval,v=i(29823).Interval,S=i(73532).SeriesHorizontalBaseLinePaneView,y=i(15840).deepExtend,b=i(19234).encodeExtendedSymbolOrGetSimpleSymbolString,w=i(76422),C=i(73383).TIMEFRAMETYPE,P=i(23653).InvalidationMask,T=i(37667).isSingleValueBasedStyle;const x=l.enabled("pre_post_market_sessions");class I extends a{ -constructor(e,t,i,r){t.removeProperty("currencyId"),super(e,t,i,r),this._symbolIntervalChanged=new s,this.requestingIntradayWhenNotSupported=new s,this.requestingResolutionWhenNotSupported=new s,this._onInReplayStateChanged=new s,this._replayExitedDueUnsupportedInterval=new s,this._replayExitedDueUnavailableForUserInterval=new s,this._onTimeFrameApplied=new s,this._chartApi=e._chartApi,this.createPaneView(),this._replaySubscriber=null,this._isReplayResolutionAvailableForUser=null,this._properties.addExclusion&&(this._properties.addExclusion("visible"),this._properties.addExclusion("currencyId")),this._futureBarsPaneView=null,this.properties().minTick.listeners().subscribe(this,I.prototype._recreateFormatter);var n=this;this.properties().minTick.listeners().subscribe(null,(function(){n._model.fullUpdate()})),this._priceLineView=null,this._baseHorizontalLineView=new S(this),this._gotoDateResultCleared=!1,this._gotoDateView=null,this.bindStyleChange(),this.bindJapChartsInputs(),this._createIsDWMProperty(),this._symbolIntervalChanged.subscribe(this,this._checkInterval),this.properties().showCountdown.listeners().subscribe(this,I.prototype._onChangeShowCountdown),this._onChangeShowCountdown(this.properties().showCountdown),this._recreatePriceFormattingDependencies(),this.properties().lineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().areaStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().baselineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().columnStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this._updateBarFunction()}isLoading(){return this._loading}isSymbolInvalid(){return this._status===I.STATUS_INVALID_SYMBOL}styleStudyInfo(e){return this.styleStudyInfos()[e]}priceLineColor(e){return this.properties().priceLineColor.value()||e}serverTimeOffset(){return this._chartApi.serverTimeOffset()}_onChangeShowCountdown(e){var t=this;e.value()?this._countdownUpdateTimer=this._model.setInterval((function(){t._priceAxisView.updateCountdown()}),500):(this._model.clearInterval(this._countdownUpdateTimer),delete this._countdownUpdateTimer)}_createIsDWMProperty(){this._isDWMProperty=new r(this.isDWM()),this._onRestarted.subscribe(this,(function(){this._isDWMProperty.setValue(this.isDWM())}))}isDWMProperty(){return this._isDWMProperty}fixLastBar(e){0}isPulse(){return this._symbolInfo&&this._symbolInfo.resolutions.length>0}onSymbolIntervalChanged(){return this._symbolIntervalChanged}_clearStylePlot(e,t){if(0!==e.size()){var i=t||o(e.firstIndex()),s=o(e.lastIndex())+1;e.range(i,s).each((function(e,t){t[TradingView.STYLE_PLOT]=null}))}}invalidateBarStylesCache(e){_.logDebug("Invalidate style cache starting from "+e),this._clearStylePlot(this.bars(),e),this._clearStylePlot(this.nsBars())}invalidateBarColorerCache(){delete this._barColorerCache,this.invalidateBarStylesCache()}barColorer(){if(this._barColorerCache)return this._barColorerCache -;for(var e=null,t=this._model.dataSources(),i=t.length-1;i>=0;i--){var s=t[i];if(s.metaInfo&&TradingView.isInherited(s.constructor,TradingView.Study)&&s.hasBarColorer()&&!s.isSourceHidden()){var r=s.barColorer();null===e?e=r:e.pushBackBarColorer(r)}}return null===e?e=new h(this):e.pushBackBarColorer(new h(this)),this._barColorerCache=e,this._barColorerCache}alertCreationAvailable(){const e=this.symbolInfo();return this.hasStateForAlert()&&e&&!g.isEconomicSymbol(e)}hasStateForAlert(){return!1}stateForAlert(){throw new Error("Not implemented")}idForAlert(){return a.prototype.idForAlert.call(this)}seriesSource(){return this._seriesSource}_onSeriesTimeFrame(e,t,i,s,r){var n=T(this.style())?e+.5:e,o=t;if(void 0===r)null!==i&&i.type!==C.PeriodBack||(o+=this._model.studyAwareDefaultRightOffset());else if(r.applyDefaultRightMargin)o+=this._model.studyAwareDefaultRightOffset();else if(r.percentRightMargin){var a=t-n+1,l=Math.max(0,Math.min(.99,r.percentRightMargin/100));o+=l*a/(1-l)}this._model.setTimeViewport(n,o)}_onSeriesError(e){this._loading=!1;var t=e.error;if(e.ctx){var i={};Object.entries(e.ctx).forEach((function(e,t){i[e]=t.toString()})),t=t.format(i)}l.enabled("charting_library_debug_mode")&&_.logNormal("Error reason: "+t),this._seriesErrorMessage=t;const s="unknown_symbol"!==t?I.STATUS_ERROR:l.enabled("no_bars_status")&&this._symbolInfo?I.STATUS_NO_BARS:I.STATUS_INVALID_SYMBOL;this._setStatus(s),this._seriesLoaded=!0,this._enablePriceRangeReady()}_onSeriesCompleted(e,t,i){if(this._setSymbolIntervalDelay){if(this._willSymbolIntervalCurrencyChanged())return void _.logNormal("command comes during symbol/interval changing");_.logNormal("series_completed comes when symbol interval delay present but symbol/interval should not be changed")}this._loading=!1,this._seriesErrorMessage=null;var s=e;switch("pulsed"===s&&(s="delayed"),s){case"streaming":this._setStatus(I.STATUS_READY);break;case"endofday":this._setStatus(I.STATUS_EOD);break;case"delayed":this._setStatus(I.STATUS_DELAYED);break;case"pulsed":this._setStatus(I.STATUS_PULSE);break;case"replay":this._setStatus(I.STATUS_REPLAY)}s.match(/delayed_streaming/)&&this._setStatus(I.STATUS_DELAYED_STREAMING),this._endOfDataType=void 0!==i?i.data_completed:null;var r=this._model.paneForSource(this);r.recalculatePriceScale(this.priceScale(),c(this.id()));var n=P.full();null!==this._model.appliedTimeFrame().value()&&n.lockVisibleTimeRangeOnResize(),this._model.invalidate(n),this.model().recalcVisibleRangeStudies(!0),this.model().recalcStudyBasedLineTools(),!this.m_priceScale.isLockScale()||this.model().timeScale().isEmpty()||this._seriesLoaded||(this.model().timeScale()._correctOffset(),this.model().timeScale().correctBarSpacing(),this.model().resetPriceScale(r,this.priceScale())),this._seriesLoaded=!0,this._enablePriceRangeReady()}_onBarReceived(e){this.model().recalcVisibleRangeStudies(!0)}isStarted(){return this._seriesSource.isStarted()}restart(){if(this._status!==I.STATUS_SNAPSHOT){this._loading=!0,this._onRestarted.fire(),this._setStatus(I.STATUS_RESOLVING), -this._updateSymbolInfo(null,!0);var e=this._properties.interval.value();this._checkIntervalWillChanged(e)&&this._notifyIntervalChanged(e);var t=null;this._pendingTimeRange&&(t=this._pendingTimeRange,delete this._pendingTimeRange),this._onBeforeModifySeries(this.getSymbolString(),e),this._onTimeFrameApplied.fire(t),e=f(e),this._data=null,this._seriesSource.modifySeries(this._getResolvingSymbolObject(),e,t),this._seriesSource.isStarted()||this._seriesSource.start(),this.m_symbol=this._properties.symbol.value(),this._currency=this._properties.currencyId.value(),this._unit=this._properties.unitId.value(),this.m_interval=this._properties.interval.value()}}hasDelayedSymbolIntervalChange(){return!!this._setSymbolIntervalDelay}setSymbolIntervalCurrencyDelayed(){this._willSymbolIntervalCurrencyChanged()&&(this._setSymbolIntervalDelay&&(_.logNormal("Clear timeout to change symbol/interval #"+this._setSymbolIntervalDelay),clearTimeout(this._setSymbolIntervalDelay)),this._setSymbolIntervalDelay=setTimeout(function(){const e=this._properties;_.logNormal("Timeout #"+this._setSymbolIntervalDelay+' fired, new symbol will be "'+e.symbol.value()+'"'),delete this._setSymbolIntervalDelay,this._setSymbolInterval(e.symbol.value(),e.interval.value(),e.currencyId.value(),e.unitId.value())}.bind(this),30),_.logNormal("Started timeout #"+this._setSymbolIntervalDelay+' to change symbol/interval from "'+this.m_symbol+'" to "'+this._properties.symbol.value()+'"'))}rerequestData(){this._setSymbolInterval(this.m_symbol,this.m_interval,this._currency,this._unit,!0)}_notifyIntervalChanged(e){var t={timeframe:this._pendingTimeRange};this._intervalChanged.fire(e,t),this._pendingTimeRange=t.timeframe}_setSymbolInterval(e,t,i,s,r){this.clearGotoDateResult(),v.isRange(t)&&this._properties.rangeStyle.inputs.range.setValue(v.parse(t).multiplier());var n=this._checkSymbolWillChanged(e),o=this._checkIntervalWillChanged(t),a=this._checkCurrencyWillChanged(i),l=this._checkUnitWillChanged(s);if(n||o||a||l||r)if(this._syncModel=null,this.m_symbol=e,this.m_interval=t,this._currency=i,this._unit=s,this._status!==I.STATUS_SNAPSHOT&&(!this._seriesSource.isStarted()||n||a||l)&&this._updateSymbolInfo(null,!n&&(a||l)),this._status!==I.STATUS_SNAPSHOT){this._loading=!0,this._setStatus(I.STATUS_RESOLVING),x&&this._updateIsPrePostMarketPricesForbiddenProperty(),this._symbolIntervalChanged.fire(),o&&this._notifyIntervalChanged(this.m_interval),this._onRestarted.fire(),this._seriesLoaded=!1,this._lineStyleLastPriceCirclePaneView.stopAnimation();var c=null;this._pendingTimeRange&&(c=this._pendingTimeRange,delete this._pendingTimeRange),this._onTimeFrameApplied.fire(c),this._onBeforeModifySeries(this.getSymbolString(),t),this._data=null,this._seriesSource.modifySeries(this._getResolvingSymbolObject(),f(t),c,r),this._seriesSource.isStarted()||(this._predictBars=0,this._seriesSource.start()),(n||a||l)&&this.disablePriceRangeReady()}else this._model.realignLineTools();else this._model.realignLineTools()}setDefaultTimeframe(e){this._pendingTimeRange=e}symbol(){ -return this.properties().symbol.value()}hl2(e){return(this.high(e)+this.low(e))/2}hlc3(e){return(this.high(e)+this.low(e)+this.close(e))/3}ohlc4(e){return(this.open(e)+this.high(e)+this.low(e)+this.close(e))/4}priceRange(e,t){if(!TradingView.isInteger(e))return _.logDebug("Series.priceRange: incorrect startBar"),null;if(!TradingView.isInteger(t))return _.logDebug("Series.priceRange: incorrect endBar"),null;if(this.data().isEmpty())return null;if(this.m_priceScale.isLockScale()){var i=this._model.mainSeriesScaleRatio();if(null!==i){var s=this.priceScale().internalHeight()/(this.model().timeScale().barSpacing()/i),r=this.data().search(t,u.NearestLeft),o=(r.value[TradingView.HIGH_PLOT]+r.value[TradingView.LOW_PLOT])/2;return new n(o-.5*s,o+.5*s)}}var a=this.priceSource();if(null!==a)var l=this.data().bars().minMaxOnRangeCached(e,t,[{name:a,offset:0}]),c=this.data().nsBars().minMaxOnRangeCached(e,t,[{name:a,offset:0}]);else l=this.data().bars().minMaxOnRangeCached(e,t,[{name:"low",offset:0},{name:"high",offset:0}]),c=this.data().nsBars().minMaxOnRange(e,t,[{name:"low",offset:0},{name:"high",offset:0}]);var h=null!==(l=p(l,c))?l.min===l.max?new n(l.min-.5,l.max+.5):new n(l.min,l.max):new n(-.5,.5);return this.priceScale().isLog()?new n(this.priceScale().priceToLogical(h.minValue()),this.priceScale().priceToLogical(h.maxValue())):h}nearestData(e,t){if(TradingView.isInteger(e)){var i=this.data().search(e,t);return null!==i?i:void 0}_.logDebug("Series.nearestData: incorrect logicalPoint")}nearestIndex(e,t){var i=this.nearestData(e,t);return i?i.index:void 0}paneViews(){if(!this.properties().visible.value())return null;var e=[this._baseHorizontalLineView,this._paneView];return this._futureBarsPaneView&&e.push(this._futureBarsPaneView),this._projectionBarsPaneView&&e.push(this._projectionBarsPaneView),null!==this._waterlineView&&e.push(this._waterlineView),null!==this._priceLineView&&e.push(this._priceLineView),null!==this._gotoDateView&&e.push(this._gotoDateView),e.push(...this._highLowAvgPaneViews),e.push(...this._averagePaneViews),e}purgeSymbolInfo(){this._symbolInfo=null}requestMoreData(e){if((this._status===I.STATUS_READY||this._status===I.STATUS_PULSE||this._status===I.STATUS_DELAYED||this._status===I.STATUS_DELAYED_STREAMING||this._status===I.STATUS_EOD||this._status===I.STATUS_REPLAY)&&!this._model.timeScale().isEmpty()){var t=this._model.timeScale().visibleBarsStrictRange();if(null!==t&&0!==this.bars().size()){var i=t.lastBar()-o(this.data().last()).index;if(this._predictBars{this._gotoDateResultCleared||(this._gotoDateView=new t(this,e),this._model.updateSource(this))})}clearGotoDateResult(e){this._gotoDateView=null,this._gotoDateResultCleared=!0}getSourceIcon(){return{type:"loadSvg",svgId:"series."+this.properties().style.value()}}isStyleSupported(e){return!0}isIntervalSupported(e){return!0}isStyleSupportedForReplay(e){return g.isTimeBasedStyle(e)}isInReplay(){return null!==this._replaySubscriber}onTimeFrameApplied(){return this._onTimeFrameApplied}onInReplayStateChanged(){throw new Error("Not implemented")}replayExitedDueUnsupportedInterval(){throw new Error("Not implemented")}replayExitedDueUnavailableForUserInterval(){throw new Error("Not implemented")}switchToReplay(e,t){throw new Error("Not implemented")}switchToRealtime(){throw new Error("Not implemented")}_removeReplaySubscriber(){throw new Error("Not implemented")}_onBeforeModifySeries(e,t){0}destroy(){this._replayExitedDueUnsupportedInterval.destroy(),this._replayExitedDueUnavailableForUserInterval.destroy(),this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),this.clearGotoDateResult(),this._legendView.destroy(),this._marketStatusModel.destroy(),null!==this._dataUpdatedModeModel&&this._dataUpdatedModeModel.destroy(),this._dataProblemModel.destroy(),this._paneView&&this._paneView.destroy&&this._paneView.destroy(),this._onTimeFrameApplied.destroy(),this._seriesSource.destroy(),super.destroy()}dataEvents(){return this._seriesSource.dataEvents()}moveData(e){return this._seriesSource.moveData(e)}}Object.assign(I,m),TradingView.Series=I,t.Series=I,t.isSeries=function(e){return e instanceof I}},34041:(e,t,i)=>{"use strict";i.d(t,{SeriesAreaPaneView:()=>l});var s=i(68906),r=i(84705),n=i(94804),o=i(41892),a=i(83150);class l extends a.SeriesSingleLinePaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1) -;const i=this._source.priceScale();if(!i)return null;const a=this._source.properties().childs().areaStyle.childs(),l=a.transparency.value(),c={simpleMode:!1,barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:a.linecolor.value(),lineStyle:a.linestyle.value(),lineWidth:a.linewidth.value(),isSeries:!0,withMarkers:!1,bottom:i.height(),color1:(0,s.generateColor)(a.color1.value(),l),color2:(0,s.generateColor)(a.color2.value(),l)},h=new n.CompositeRenderer;return h.append(new r.PaneRendererArea(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new o.SelectionRenderer(this._selectionData)),h}}},89128:(e,t,i)=>{"use strict";function s(e,t){return 100*(t-e)/Math.abs(e||1)}i.d(t,{barPercentChange:()=>s})},71263:(e,t,i)=>{"use strict";i.d(t,{PaneRendererBars:()=>n});var s=i(49094),r=i(52403);class n extends r.PaneRendererSeriesBase{constructor(e){super(),this._bars=e.bars,this._barSpacing=e.barSpacing,this._dontDrawOpen=e.dontDrawOpen,this._thinBars=e.thinBars}draw(e,t){e.save();const i=t.pixelRatio;if(this._barWidth=this._calcBarWidth(i),this._barWidth>=2){Math.max(1,Math.floor(i))%2!=this._barWidth%2&&this._barWidth--}this._barLineWidth=this._thinBars?Math.min(this._barWidth,Math.floor(i)):this._barWidth;let s=null;const r=this._barLineWidth<=this._barWidth&&this._barSpacing>=Math.floor(1.5*t.pixelRatio);for(const t of this._bars){s!==t.color&&(e.fillStyle=t.color,s=t.color);const n=Math.floor(.5*this._barLineWidth),o=Math.round(t.time*i),a=o-n,l=this._barLineWidth,c=a+l-1,h=Math.min(t.high,t.low),d=Math.max(t.high,t.low),u=Math.round(h*i)-n,p=Math.round(d*i)+n,_=Math.max(p-u,this._barLineWidth);e.fillRect(a,u,l,_);const m=Math.ceil(1.5*this._barWidth);if(r){const s=o-m,r=o+m,h=Math.min(a-s,r-c);if(!this._dontDrawOpen){let r=Math.max(u,Math.round(t.open*i)-n),o=r+l-1;o>u+_-1&&(o=u+_-1,r=o-l+1),e.fillRect(s,r,h,o-r+1)}let d=Math.max(u,Math.round(t.close*i)-n),p=d+l-1;p>u+_-1&&(p=u+_-1,d=p-l+1),e.fillRect(c+1,d,h,p-d+1)}}e.restore()}_getTolerance(){const e=this._calcBarWidth(1),t=this._thinBars?Math.min(e,1):e;return(0,s.interactionTolerance)().series+t/2}_getBarSpacing(){return this._barSpacing}_calcBarWidth(e){const t=Math.floor(e);return Math.max(t,Math.floor((0,s.optimalBarWidth)(this._barSpacing,e)))}}},66919:(e,t,i)=>{"use strict";i.d(t,{SeriesBarsPaneView:()=>a});var s=i(94804),r=i(41892),n=i(79035),o=i(71263);class a extends n.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.properties().childs(),n={bars:this._bars,barSpacing:this._model.timeScale().barSpacing(),dontDrawOpen:i.barStyle.childs().dontDrawOpen.value(),thinBars:11===i.style.value()?i.rangeStyle.childs().thinBars.value():i.barStyle.childs().thinBars.value()},a=new s.CompositeRenderer;return a.append(new o.PaneRendererBars(n)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&a.append(new r.SelectionRenderer(this._selectionData)),a}}},35251:(e,t,i)=>{"use strict" -;i.d(t,{SeriesBaselinePaneView:()=>m});var s=i(68906),r=i(94804),n=i(86441),o=i(5531),a=i(4652),l=i(49094),c=i(55257),h=i(16282),d=i(84346);class u extends h.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data)return null;const{items:t,topLineWidth:i,bottomLineWidth:s}=this._data,r=(0,l.interactionTolerance)().series+(i+s)/4,o=(0,c.lowerbound)(t,e,(e,t)=>e.x<=t.x),h=Math.max(1,o-1),u=Math.min(t.length-1,o+1);for(let i=h;i<=u;++i){const s=t[i-1],o=t[i],{distance:l}=(0,a.distanceToSegment)(new n.Point(s.x,s.y),new n.Point(o.x,o.y),new n.Point(e.x,e.y));if(l<=r)return new d.HitTestResult(d.HitTestResult.REGULAR)}return null}_drawImpl(e){if(null===this._data)return;const{items:t,baseLevelCoordinate:i,bottom:s,bottomFillColor1:r,bottomFillColor2:a,topFillColor1:c,topFillColor2:h,topLineColor:d,bottomLineColor:u,topLineWidth:p,bottomLineWidth:_}=this._data;if(!function(e){if(0===e.length)return!1;const t=e.findIndex(e=>(0,l.coordinateIsValid)(e.y));if(-1===t)return!1;let i=e.length-1;for(;i>t&&!(0,l.coordinateIsValid)(e[i].y);)i--;return!(t>i)}(t))return;const{topItems:m,bottomItems:g}=function(e,t){const i=[],s=[];let r=null;for(let a=0;a=t&&s.push(c),r=c;else{if(null===r)continue;c=r}if((0,l.coordinateIsValid)(h.y)&&(c.y>t&&h.yt))if(Math.abs(c.x-h.x)<1){const e=new n.Point(c.x,t);i.push(e),s.push(e)}else{const e=(0,o.intersectLineSegments)(c,h,new n.Point(c.x,t),new n.Point(h.x,t));if(null!==e){const t=c.add(h.subtract(c).scaled(e));i.push(t),s.push(t)}}}return{topItems:i,bottomItems:s}}(t,i);e.lineCap="round",e.lineJoin="round",0!==m.length&&(e.beginPath(),e.moveTo(m[0].x,i),this._makeLine(e,m,!0,0),e.closePath(),e.fillStyle=this._makeLinearGradient(e,c,h,i-s,i),e.fill(),e.beginPath(),this._makeLine(e,m,!1,0),e.lineWidth=p,e.strokeStyle=d,e.stroke()),0!==g.length&&(e.beginPath(),e.moveTo(g[0].x,i),this._makeLine(e,g,!0,1),e.closePath(),e.fillStyle=this._makeLinearGradient(e,r,a,i,i+s),e.fill(),e.beginPath(),this._makeLine(e,g,!1,1),e.lineWidth=_,e.strokeStyle=u,e.stroke())}_makeLine(e,t,i,s){if(null===this._data)return;const r=t.findIndex(e=>(0,l.coordinateIsValid)(e.y));if(-1===r)return;const{barSpacing:n,baseLevelCoordinate:o}=this._data,a=.25*n;let c;const h=t.length;for(let n=r;n=o&&h.y>=o){e.moveTo(h.x,h.y);continue}}else if(c&&c.y<=o&&h.y<=o){e.moveTo(h.x,h.y);continue}if(c&&(0,l.coordinateIsValid)(c.y))e.lineTo(h.x,h.y),i&&!(0,l.coordinateIsValid)(d.y)&&e.lineTo(h.x,o);else if(d&&(0,l.coordinateIsValid)(d.y))i?(n!==r&&e.lineTo(h.x,o),e.lineTo(h.x,h.y)):e.moveTo(h.x,h.y);else if(i){if(0===n)continue;n!==r&&e.lineTo(h.x-a,o),e.lineTo(h.x-a,h.y),e.lineTo(h.x+a,h.y),e.lineTo(h.x+a,o)}else e.moveTo(h.x-a,h.y),e.lineTo(h.x+a,h.y);c=h}}}_makeLinearGradient(e,t,i,s,r){const n=e.createLinearGradient(0,s,0,r);return n.addColorStop(0,t), -n.addColorStop(1,i),n}}var p=i(41892),_=i(83150);class m extends _.SeriesSingleLinePaneView{constructor(){super(...arguments),this._renderer=new u,this._topFillColor1="",this._topFillColor2="",this._bottomFillColor1="",this._bottomFillColor2="",this._topLineColor="",this._bottomLineColor="",this._topLineWidth=0,this._bottomLineWidth=0,this._barSpacing=0,this._bottom=0,this._baseLevelCoordinate=0}renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer.setData({items:this._items,topFillColor1:this._topFillColor1,topFillColor2:this._topFillColor2,bottomFillColor1:this._bottomFillColor1,bottomFillColor2:this._bottomFillColor2,topLineColor:this._topLineColor,bottomLineColor:this._bottomLineColor,topLineWidth:this._topLineWidth,bottomLineWidth:this._bottomLineWidth,barSpacing:this._barSpacing,baseLevelCoordinate:this._baseLevelCoordinate,bottom:this._bottom});const i=new r.CompositeRenderer;return i.append(this._renderer),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&i.append(new p.SelectionRenderer(this._selectionData)),i}_updateImpl(){super._updateImpl();const e=this._source.priceScale();if(!e)return;const t=this._source.properties().childs().baselineStyle.childs(),i=t.transparency.value();this._topFillColor1=(0,s.generateColor)(t.topFillColor1.value(),i),this._topFillColor2=(0,s.generateColor)(t.topFillColor2.value(),i),this._bottomFillColor1=(0,s.generateColor)(t.bottomFillColor1.value(),i),this._bottomFillColor2=(0,s.generateColor)(t.bottomFillColor2.value(),i),this._topLineColor=t.topLineColor.value(),this._bottomLineColor=t.bottomLineColor.value(),this._topLineWidth=t.topLineWidth.value(),this._bottomLineWidth=t.bottomLineWidth.value(),this._barSpacing=this._model.timeScale().barSpacing(),this._bottom=e.height(),this._baseLevelCoordinate=Math.round(this._bottom*(Math.abs(100-t.baseLevelPercentage.value())/100))}}},42169:(e,t,i)=>{"use strict";i.d(t,{SeriesWaterlinePaneView:()=>a});var s=i(22221),r=i(56589),n=i(84346),o=i(43891);class a extends s.HorizontalLinePaneView{constructor(e){super(),this._getters=e;const t={cursorType:r.PaneCursorType.VerticalResize,activeItem:0,areaName:n.AreaName.SourceItemMove};this._lineRenderer.setHitTest(new n.HitTestResult(n.HitTestResult.MOVEPOINT,t)),this._lineRendererData.visible=!0,this._lineRendererData.linestyle=o.LINESTYLE_SPARSE_DOTTED}_updateImpl(){const{baseLevelPercentage:e,paneHeight:t,color:i}=this._getters,s=Math.abs(100-e());this._lineRendererData.y=Math.round(t()*(s/100)),this._lineRendererData.color=i()}}},52403:(e,t,i)=>{"use strict";i.d(t,{PaneRendererSeriesBase:()=>r});var s=i(84346);class r{constructor(){this._bars=[]}hitTest(e){const t=this._bars,i=this._getBarSpacing(),s=i/2;if(0===t.length)return null;const r=this._getTolerance(),n=t[0],o=t[t.length-1];if(e.xo.time+s+r)return null;let a=0,l=t.length-1,c=-1;for(;a<=l;){const i=Math.floor((a+l)/2),h=t[i];let d=s;if(h!==n&&h!==o||(d+=r),Math.abs(h.time-e.x)<=d){c=i;break}e.x-h.time>s?a=i+1:l=i-1} -if(-1!==c){const n=Math.ceil(r/i);if(0!==n){const i=Math.max(0,c-n),o=Math.min(t.length-1,c+n);for(let n=i;n<=o;n++)if(Math.abs(e.x-t[n].time)<=s+r&&this._isPointAtBar(t[n],e.y,r))return this._getHitTest()}else if(this._isPointAtBar(t[c],e.y,r))return this._getHitTest()}return null}_getHitTest(){return new s.HitTestResult(s.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=Math.min(e.high,e.low),r=Math.max(e.high,e.low);return s-i<=t&&t<=r+i}}},48998:(e,t,i)=>{"use strict";i.d(t,{PaneRendererCandles:()=>l});var s=i(88537),r=i(84346),n=i(42759),o=i(49094),a=i(52403);class l extends a.PaneRendererSeriesBase{constructor(e){super(),this._barSpacing=1,this._barWidth=1,this._borderVisible=!1,this._barBorderWidth=1,this._wickVisible=!1,this._bodyVisible=!0,this._borderColor=void 0,this._wickColor=void 0,this._hittest=void 0,this._isPriceScaleInverted=!1,e&&this.setData(e)}setData(e){this._bars=e.bars,this._barSpacing=e.barSpacing,this._borderVisible=e.borderVisible,this._bodyVisible=e.bodyVisible,this._wickVisible=e.wickVisible,this._borderColor=e.borderColor,this._wickColor=e.wickColor,this._hittest=e.hittest,this._isPriceScaleInverted=e.isPriceScaleInverted}hitTest(e){return this._wickVisible||this._borderVisible||this._bodyVisible?super.hitTest(e):null}draw(e,t){if(0===this._bars.length)return;const i=t.pixelRatio;if(this._barWidth=(0,o.optimalCandlestickWidth)(this._barSpacing,i),this._barWidth>=2){Math.floor(i)%2!=this._barWidth%2&&this._barWidth--}this._wickVisible&&this._drawWicks(e,i),this._borderVisible&&this._drawBorder(e,i),this._bodyVisible&&this._drawCandles(e,i)}_getTolerance(){return(0,o.interactionTolerance)().series+this._barBorderWidth/2}_getBarSpacing(){return this._barSpacing}_getHitTest(){return this._hittest||new r.HitTestResult(r.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=this._bodyVisible||this._borderVisible,r=this._wickVisible;if(!s&&!r)return!1;if(s){const s=r?Math.min(e.high,e.low):Math.min(e.open,e.close),n=r?Math.max(e.high,e.low):Math.max(e.open,e.close);return s-i<=t&&t<=n+i}{const s=Math.min(e.open,e.close),r=Math.max(e.open,e.close);return e.high-i<=t&&t<=s+i||r-i<=t&&t<=e.low+i}}_drawWicks(e,t){const i=this._bars;let r="",n=Math.min(Math.floor(t),Math.floor(this._barSpacing*t));n=Math.max(Math.floor(t),Math.min(n,this._barWidth));const o=Math.floor(.5*n);let a=null;for(const l of i){const i=l.wickColor?l.wickColor:(0,s.ensureDefined)(this._wickColor);i!==r&&(e.fillStyle=i,r=i);let c=Math.round(Math.min(l.open,l.close)*t),h=Math.round(Math.max(l.open,l.close)*t);this._isPriceScaleInverted&&([h,c]=[c,h]);const d=Math.round(l.high*t),u=Math.round(l.low*t);let p=Math.round(t*l.time)-o;const _=p+n-1;null!==a&&(p=Math.max(a+1,p),p=Math.min(p,_));const m=_-p+1;e.fillRect(p,d,m,c-d),e.fillRect(p,h+1,m,u-h-1),a=_}}_calculateBorderWidth(e){let t=Math.floor(1*e);this._barWidth<=2*t&&(t=Math.floor(.5*(this._barWidth-1)));const i=Math.max(Math.floor(e),t);return this._barWidth<=2*i?Math.max(Math.floor(e),Math.floor(1*e)):i}_drawBorder(e,t){let i="";const r=this._calculateBorderWidth(t) -;let o=null;for(const a of this._bars){if(a.borderColor!==i&&(e.fillStyle=a.borderColor?a.borderColor:(0,s.ensureDefined)(this._borderColor),i=a.borderColor),this._bodyVisible&&a.hollow)continue;let l=Math.round(a.time*t)-Math.floor(.5*this._barWidth);const c=l+this._barWidth-1,h=Math.round(Math.min(a.open,a.close)*t),d=Math.round(Math.max(a.open,a.close)*t);if(null!==o&&(l=Math.max(o+1,l),l=Math.min(l,c)),this._barSpacing*t>2*r)(0,n.fillRectInnerBorder)(e,l,h,c-l+1,d-h+1,r);else{const t=c-l+1;e.fillRect(l,h,t,d-h+1)}o=c}}_drawCandles(e,t){let i="";const s=this._calculateBorderWidth(t);for(const r of this._bars){if(this._borderVisible&&this._barWidth<=2*s&&!r.hollow)continue;let o=Math.round(Math.min(r.open,r.close)*t),a=Math.round(Math.max(r.open,r.close)*t),l=Math.round(r.time*t)-Math.floor(.5*this._barWidth),c=l+this._barWidth-1;if(r.color!==i){const t=r.color;e.fillStyle=t,i=t}if(r.hollow)e.fillStyle=r.color,(0,n.fillRectInnerBorder)(e,l,o,c-l+1,a-o+1,s);else{if(this._borderVisible&&(l+=s,o+=s,c-=s,a-=s),o>a)continue;e.fillRect(l,o,c-l+1,a-o+1)}}}}},85224:(e,t,i)=>{"use strict";i.d(t,{SeriesCandlesPaneView:()=>l});var s=i(94804),r=i(49094),n=i(41892),o=i(79035),a=i(48998);class l extends o.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const o=this._source.properties().childs().candleStyle.childs(),l=this._model.timeScale().barSpacing(),c={bars:this._bars,barSpacing:l,bodyVisible:o.drawBody.value(),borderVisible:o.drawBorder.value(),borderColor:o.borderColor.value(),wickColor:o.wickColor.value(),barWidth:(0,r.optimalBarWidth)(l),wickVisible:o.drawWick.value(),isPriceScaleInverted:i.isInverted()},h=new s.CompositeRenderer;return h.append(new a.PaneRendererCandles(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new n.SelectionRenderer(this._selectionData)),h}}},59153:(e,t,i)=>{"use strict";i.d(t,{SeriesColumnsPaneView:()=>p});var s=i(88537),r=i(86441),n=i(67337),o=i(3308),a=i(84346),l=i(94804),c=i(71053),h=i(85847),d=i(41892),u=i(68617);class p{constructor(e,t){this._items=[],this._invalidated=!0,this._isMarkersEnabled=(0,n.enabled)("source_selection_markers"),this._selectionData=null,this._histogramBase=0,this._source=e,this._model=t,this._selectionIndexer=new h.SelectionIndexes(t.timeScale())}update(){this._invalidated=!0}renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i={barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:"",histogramBase:this._histogramBase},s=new l.CompositeRenderer;return s.append(new u.PaneRendererColumns(i)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&s.append(new d.SelectionRenderer(this._selectionData)),s}_updateImpl(){this._items=[];const e=this._model.timeScale(),t=this._source.priceScale();if(e.isEmpty()||!t||t.isEmpty())return;const i=e.visibleBarsStrictRange();if(null===i)return -;if(0===this._source.bars().size())return;const n=this._source.nearestIndex(i.firstBar(),c.PlotRowSearchMode.NearestRight),l=this._source.nearestIndex(i.lastBar(),c.PlotRowSearchMode.NearestLeft);if(void 0===n||void 0===l)return;const h=this._source.bars().range(n,l),d=this._source.barColorer(),u={},p=this._source.barFunction(),_=h.reduce((e,t,s)=>{var n;const a=p(s);if(!(0,o.default)(a))return e;u.value=s;const l=null!==(n=s[7])&&void 0!==n?n:d.barStyle(t,!1,u),c=new r.Point(t,a);return c.style=l,c.timePointIndex=t,this._items.push(c),u.previousValue=s,i.contains(t)&&null!=e?e:a},null);if(null!==_)if(t.pointsArrayToCoordinates(this._items,_),e.timedValuesToCoordinates(this._items),this._histogramBase=t.isInverted()?0:t.height(),this._model.selection().isSelected(this._source)){const i=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,barSpacing:e.barSpacing(),hittestResult:a.HitTestResult.REGULAR};const n=(0,s.ensureNotNull)(this._model.paneForSource(this._source)).height();this._selectionData.hittestResult=a.HitTestResult.REGULAR;for(let s=0;s{"use strict";i.d(t,{SeriesHollowCandlesPaneView:()=>l});var s=i(94804),r=i(49094),n=i(41892),o=i(48998),a=i(79035);class l extends a.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const a=this._source.properties().childs().hollowCandleStyle.childs(),l=this._model.timeScale().barSpacing(),c={bars:this._bars,barSpacing:l,bodyVisible:a.drawBody.value(),borderVisible:a.drawBorder.value(),borderColor:a.borderColor.value(),wickColor:a.wickColor.value(),barWidth:(0,r.optimalBarWidth)(l),wickVisible:a.drawWick.value(),isPriceScaleInverted:i.isInverted()},h=new s.CompositeRenderer;return h.append(new o.PaneRendererCandles(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new n.SelectionRenderer(this._selectionData)),h}}},33837:(e,t,i)=>{"use strict";i.d(t,{SeriesLinePaneView:()=>h});var s=i(84346),r=i(94804),n=i(46214),o=i(28113),a=i(41892),l=i(16654),c=i(83150);class h extends c.SeriesSingleLinePaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.properties().childs().lineStyle.childs(),c={barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:i.color.value(),lineStyle:i.linestyle.value(),withMarkers:i.styleType.value()===l.STYLE_LINE_TYPE_MARKERS,lineWidth:i.linewidth.value(),simpleMode:!0,hitTestResult:s.HitTestResult.REGULAR};let h,d;if(h=i.styleType.value()===l.STYLE_LINE_TYPE_STEP?new o.PaneRendererStepLine(c):new n.PaneRendererLine(c), -this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData){const e=new r.CompositeRenderer;e.append(h),e.append(new a.SelectionRenderer(this._selectionData)),d=e}else d=h;return d}}},79035:(e,t,i)=>{"use strict";i.d(t,{SeriesBarCandlesPaneView:()=>c});var s=i(86441),r=i(67337),n=i(85847),o=i(71053),a=i(84346);function l(e,t){const i=e[1],s=e[2],r=e[3],n=e[4];return void 0!==i&&void 0!==s&&void 0!==r&&void 0!==n&&null!==i&&null!==s&&null!==r&&null!==n&&(t.open=i,t.high=s,t.low=r,t.close=n,!0)}class c{constructor(e,t){this._bars=[],this._invalidated=!0,this._isMarkersEnabled=(0,r.enabled)("source_selection_markers"),this._selectionData=null,this._source=e,this._model=t,this._selectionIndexer=new n.SelectionIndexes(t.timeScale())}items(){return this._bars}update(){this._invalidated=!0}_updateImpl(e){const t=null!=e?e:l,i=this._model.timeScale(),r=this._source.priceScale();if(this._bars=[],i.isEmpty()||!r||r.isEmpty())return;const n=i.visibleBarsStrictRange();if(null===n)return;if(0===this._source.bars().size())return;let c=this._source.nearestIndex(n.firstBar(),o.PlotRowSearchMode.NearestRight);const h=this._source.nearestIndex(n.lastBar(),o.PlotRowSearchMode.NearestLeft);if(void 0===c||void 0===h)return;for(;c<=h;c++){if(null!==this._source.bars().valueAt(c))break}if(c>h)return;const d=this._source.bars().range(c,h),u=this._source.barColorer(),p={};if(d.each((e,i)=>{var s;const r={time:Math.round(e),exactTime:Math.round(e),open:NaN,high:NaN,low:NaN,close:NaN,color:""};if(!t(i,r))return!1;p.value=i;const n=null!==(s=i[7])&&void 0!==s?s:u.barStyle(e,!1,p);return i[7]=n,p.previousValue=i,r.color=n.barColor,r.borderColor=n.barBorderColor,r.wickColor=n.barWickColor,r.hollow=n.isBarHollow,this._bars.push(r),!1}),0===this._bars.length)return;const _=this._source.firstValue();if(null!==_)if(r.barPricesToCoordinates(this._bars,_),i.barIndexesToCoordinates(this._bars),this._model.selection().isSelected(this._source)){const e=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:a.HitTestResult.REGULAR,barSpacing:i.barSpacing()};const t=this._model.paneForSource(this._source);if(!t)return;const n=t.height();for(let t=0;t{"use strict";i.d(t,{SeriesDataSource:()=>S});var s=i(88537),r=i(80643),n=i(19234),o=i(29823),a=i(63948),l=i(51344),c=i(95836),h=i(2872),d=i.n(h);class u{constructor(){this._modified=new(d()),this._loading=new(d()),this._completed=new(d()),this._error=new(d()),this._symbolError=new(d()),this._symbolResolved=new(d()),this._seriesError=new(d()),this._symbolNotPermitted=new(d()),this._symbolInvalid=new(d()),this._symbolGroupNotPermitted=new(d()), -this._chartTypeNotPermitted=new(d()),this._intradaySpreadNotPermitted=new(d()),this._intradayExchangeNotPermitted=new(d()),this._customIntervalNotPermitted=new(d()),this._secondsIntervalNotPermitted=new(d()),this._tickMarksRangeChanged=new(d()),this._barReceived=new(d()),this._seriesTimeFrame=new(d()),this._dataUpdated=new(d())}destroy(){this._modified.destroy(),this._loading.destroy(),this._completed.destroy(),this._error.destroy(),this._symbolError.destroy(),this._symbolResolved.destroy(),this._seriesError.destroy(),this._symbolInvalid.destroy(),this._symbolNotPermitted.destroy(),this._symbolGroupNotPermitted.destroy(),this._chartTypeNotPermitted.destroy(),this._intradaySpreadNotPermitted.destroy(),this._intradayExchangeNotPermitted.destroy(),this._customIntervalNotPermitted.destroy(),this._secondsIntervalNotPermitted.destroy(),this._tickMarksRangeChanged.destroy(),this._barReceived.destroy(),this._seriesTimeFrame.destroy(),this._dataUpdated.destroy()}modified(){return this._modified}loading(){return this._loading}completed(){return this._completed}error(){return this._error}symbolError(){return this._symbolError}symbolResolved(){return this._symbolResolved}seriesError(){return this._seriesError}symbolInvalid(){return this._symbolInvalid}symbolNotPermitted(){return this._symbolNotPermitted}symbolGroupNotPermitted(){return this._symbolGroupNotPermitted}chartTypeNotPermitted(){return this._chartTypeNotPermitted}intradaySpreadNotPermitted(){return this._intradaySpreadNotPermitted}intradayExchangeNotPermitted(){return this._intradayExchangeNotPermitted}customIntervalNotPermitted(){return this._customIntervalNotPermitted}secondsIntervalNotPermitted(){return this._secondsIntervalNotPermitted}tickMarksRangeChanged(){return this._tickMarksRangeChanged}barReceived(){return this._barReceived}seriesTimeFrame(){return this._seriesTimeFrame}dataUpdated(){return this._dataUpdated}fireCompleted(e,t,i){this._completed.fire(e,t,i)}fireModified(){this._modified.fire()}fireLoading(e){this._loading.fire(e)}fireError(){this._error.fire()}fireSymbolError(e){this._symbolError.fire(e),this.fireError()}fireSymbolResolved(e){this._symbolResolved.fire(e)}fireSeriesError(e){this._seriesError.fire(e),this.fireError()}fireSymbolInvalid(){this._symbolInvalid.fire()}fireSymbolNotPermitted(e){this._symbolNotPermitted.fire(e)}fireSymbolGroupNotPermitted(e){this._symbolGroupNotPermitted.fire(e)}fireChartTypeNotPermitted(e){this._chartTypeNotPermitted.fire(e),this.fireError()}fireIntradaySpreadNotPermitted(){this._intradaySpreadNotPermitted.fire(),this.fireError()}fireIntradayExchangeNotPermitted(){this._intradayExchangeNotPermitted.fire(),this.fireError()}fireCustomIntervalNotPermitted(){this._customIntervalNotPermitted.fire(),this.fireError()}fireSecondsIntervalNotPermitted(){this._secondsIntervalNotPermitted.fire(),this.fireError()}fireTickMarksRangeChanged(e){this._tickMarksRangeChanged.fire(e)}fireBarReceived(e){this._barReceived.fire(e)}fireSeriesTimeFrame(e,t,i,s,r){this._seriesTimeFrame.fire(e,t,i,s,r)}fireDataUpdated(e,t,i){ -this._dataUpdated.fire(e,t,i)}}var p=i(98125),_=i(37667);const m=(0,p.getLogger)("Chart.SeriesDataSource");var g;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingFirstDataUpdate=2]="AwaitingFirstDataUpdate",e[e.Active=3]="Active"}(g||(g={}));let f=1;let v=1;class S{constructor(e,t,i,r){var n;this._symbol=null,this._resolvedSymbolName=null,this._instanceId=null,this._symbolInstanceId=null,this._resolution=null,this._timeFrame=null,this._data=new a.SeriesData,this._dataEvents=new u,this._status=g.Idle,this._turnaroundCounter=1,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._turnaroundPrefix=t,this._createSeriesParams=(n=null!=i?i:{count:300}).startDate?n.endDate||n.count?n.endDate?["from_to",n.startDate,n.endDate]:["bar_count",n.startDate,(0,s.ensure)(n.count)]:["from_to",n.startDate]:n.count||300,this._timeFrame=r||null,this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged)}modifySeries(e,t,i=null,n=!1){n&&(m.logNormal("Due to force flag clearing symbol & resolution to force re-requesting data."),this._symbol=null,this._resolution=null);const a=this._symbol,l=this._resolution;if(this._symbol=e,this._resolution=t,null===this._instanceId)return void(this._timeFrame=i);const c=!(0,r.deepEquals)(a,e)[0]||null!==this._resolvedSymbolName&&this._resolvedSymbolName!==this._getSymbolNameString(e),h=null===l||!o.Interval.isEqual(l,t);(c||h||null!==i)&&(this._timeFrame=null,(c||h)&&this._turnaroundCounter++,c&&this._resolveSymbol(),this._gateway.modifySeries(this._instanceId,this.turnaround(),(0,s.ensureNotNull)(this._symbolInstanceId),this._resolution,i,this._onMessage.bind(this)),this._dataEvents.fireModified())}requestMoreData(e){null!==this._instanceId&&this._gateway.requestMoreData(this._instanceId,e,this._onMessage.bind(this))}requestMoreTickmarks(e){null!==this._instanceId&&this._gateway.requestMoreTickmarks(this._instanceId,e,this._onMessage.bind(this))}isStarted(){return this._status!==g.Idle}isActive(){return this._status===g.Active}resolution(){return this._resolution}start(){this.isStarted()?m.logNormal("start: data source is already started, nothing to do"):((0,s.assert)(null!==this._symbol,"symbol must be set before start"),(0,s.assert)(null!==this._resolution,"resolution must be set before start"),this._gateway.isConnected().value()?this._createSeries():this._changeStatusTo(g.AwaitingConnection))}stop(){this.isStarted()?(null!==this._instanceId&&(this._gateway.removeSeries(this._instanceId),this._instanceId=null),this._changeStatusTo(g.Idle)):m.logNormal("stop: data source is already stopped, nothing to do")}instanceId(){return this._instanceId}data(){return this._data}clearData(){this.isStarted()?this._enqueueUpdate(()=>this._clearDataImpl()):this._clearDataImpl()}dataEvents(){return this._dataEvents}turnaround(){ -return`${this._turnaroundPrefix}${this._turnaroundCounter}`}symbolInstanceId(){return this._symbolInstanceId}symbol(){return this._symbol}moveData(e){this._enqueueUpdate(()=>this._data.moveData(e))}_resolveSymbol(){null!==this._symbol&&(this._symbolInstanceId=this._gateway.resolveSymbol("sds_sym_"+f++,(0,n.encodeExtendedSymbolOrGetSimpleSymbolString)(this._symbol),this._onMessage.bind(this)))}_clearDataImpl(){this._data.clear()}_changeStatusTo(e){(0,s.assert)(this._status!==e,"Source and destination status should be distinct"),m.logNormal(`Status changed from ${g[this._status]} to ${g[e]}`),this._status=e}_createSeries(){(0,s.assert)(this._status!==g.Active,'Status should not be "Active" when creating a study'),this._instanceId="sds_"+v++,this._resolveSymbol(),this._gateway.createSeries(this._instanceId,this.turnaround(),(0,s.ensureNotNull)(this._symbolInstanceId),(0,s.ensureNotNull)(this._resolution),this._createSeriesParams,this._timeFrame,this._onMessage.bind(this)),this._timeFrame=null,this._changeStatusTo(g.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===g.AwaitingConnection&&this._createSeries()}_onGatewayDisconnected(){this._status!==g.Idle&&this._status!==g.AwaitingConnection&&(this._instanceId=null,this._changeStatusTo(g.AwaitingConnection)),this._turnaroundCounter=1}_onMessage(e){this._enqueueUpdate(()=>this._onMessageImpl(e))}async _onMessageImpl(e){switch(e.method){case"symbol_resolved":{const[t,i]=e.params;if(t!==this._symbolInstanceId){m.logNormal(`Resolve for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolResolved(i);break}case"symbol_error":if(e.params[0]!==this._symbolInstanceId){m.logNormal(`Symbol error for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolError(e);break;case"series_timeframe":{const[t,i,s,r,n,o,a]=e.params;if(!this._checkTurnaround(t,i)){m.logNormal(`Time frame for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesTimeFrame(s,r,n,o,a);break}case"series_error":{const[t,i]=e.params;if(!this._checkTurnaround(t,i)){m.logNormal(`Series error for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesError(e.params[2]);break}case"series_loading":{const[t,i]=e.params;if(!this._checkTurnaround(t,i))break;this._onSeriesLoading(e.time);break}case"series_completed":{const[t,i,s,r]=e.params;if(!this._checkTurnaround(t,s)){m.logNormal(`Series completed for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${s})`);break}this._onSeriesCompleted(i,e.time,r);break}case"data_update":if(!this._checkTurnaround(e.params.customId,e.params.turnaround)){m.logNormal(`Data update for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${e.params.customId} (${e.params.turnaround})`);break} -await this._onDataUpdate(e.params.plots,e.params.nonseries,e.params.lastBar);break;case"clear_data":if(e.params.turnaround!==this.turnaround()){m.logNormal(`Clear data for old data, expected: ${this.turnaround()}, actual ${e.params.turnaround}`);break}this._clearDataImpl(),this._dataEvents.fireDataUpdated(void 0,!1,null)}}_onSeriesError(e){let t,i;if("string"==typeof e)i={error:e},t=e;else if(i=e,e.ctx){const i={};Object.entries(e.ctx).forEach(([e,t])=>{i[e]=t.toString()}),t=e.error.format(i)}else t=e.error;if(t.startsWith("study_not_auth:")){const e=t.split(":",2)[1].split("@",2)[0];["BarSetRenko","BarSetPriceBreak","BarSetKagi","BarSetPnF"].includes(e)?this._dataEvents.fireChartTypeNotPermitted(e):"BarSetSpread"===e?this._dataEvents.fireIntradaySpreadNotPermitted():"BarSetRange"===e&&this._dataEvents.fireCustomIntervalNotPermitted()}else"resolution_not_entitled"===t?this._dataEvents.fireIntradayExchangeNotPermitted():"custom_resolution"===t?this._dataEvents.fireCustomIntervalNotPermitted():"seconds_not_entitled"===t&&this._dataEvents.fireSecondsIntervalNotPermitted();this._dataEvents.fireSeriesError(i)}_onSeriesTimeFrame(e,t,i,s,r){this._dataEvents.fireSeriesTimeFrame(e,t,i,null==s||s,r)}_onSymbolError(e){if(e.params[1]===c.permissionDenied)switch(e.params[2]){case c.SymbolErrorPermissionDeniedReason.Symbol:this._dataEvents.fireSymbolNotPermitted(e.params[3]);break;case c.SymbolErrorPermissionDeniedReason.GroupPermission:this._dataEvents.fireSymbolGroupNotPermitted(e.params[3]);break;default:this._dataEvents.fireSymbolNotPermitted(e.params[2])}else e.params[1]===c.invalidSymbol&&this._dataEvents.fireSymbolInvalid();this._dataEvents.fireSymbolError(e.params[1])}_onSymbolResolved(e){this._resolvedSymbolName=(0,_.symbolForApi)(e,this._getSymbolNameString((0,s.ensureNotNull)(this._symbol))),this._dataEvents.fireSymbolResolved(e)}_getSymbolNameString(e){return"string"==typeof e.symbol?e.symbol:e.symbol.symbol}async _onDataUpdate(e,t,i){this._onDataUnpacked(e,i,await async function(e){if(void 0===e)return{projectionPlots:[],boxSize:null};if(""===e.d||"nochange"===e.indexes)return null;const t=await(0,l.unpackNonSeriesData)(e.d);if(null===t||t.indexes_replace)return null;const i=e.indexes,{bars:s,price:r,boxSize:n,reversalAmount:o}=t.data,a=(s||[]).map(e=>{let t;return"factor"in e?t=e.factor:"additionalPrice"in e&&(t=e.additionalPrice),{index:i[e.time],value:[0,e.open,e.high,e.low,e.close,e.volume,t,void 0]}});return{lastPrice:r,projectionPlots:a,reversalAmount:o,boxSize:n}}(t))}_enqueueUpdate(e){return this._ongoingDataUpdate=this._ongoingDataUpdate.then(e,e),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){if(this._status===g.Idle)return;this._status===g.AwaitingFirstDataUpdate&&(this._changeStatusTo(g.Active),this._clearDataImpl());const s=this._data.bars().size(),r=this._data.bars().firstIndex(),n=this._data.mergeRegularBars(e);null!==i&&(this._data.nsBars().clear(),this._data.nsBars().merge(i.projectionPlots),this._data.lastProjectionPrice=i.lastPrice,null!==i.boxSize&&(this._data.boxSize=i.boxSize), -this._data.reversalAmount=i.reversalAmount);const o=null===r||null!==n&&n.index{"use strict";i.d(t,{SeriesHorizontalBaseLinePaneView:()=>r});var s=i(38712);class r extends s.SeriesHorizontalLinePaneView{constructor(e){super(e)}_updateImpl(){this._lineRendererData.visible=!1;const e=this._series.priceScale().mode();if(!e.percentage&&!e.indexedTo100)return;const t=this._series.firstValue();null!==t&&(this._lineRendererData.visible=!0,this._lineRendererData.y=this._series.priceScale().priceToCoordinate(t,t),this._lineRendererData.color=this._series.properties().childs().baseLineColor.value())}}},38712:(e,t,i)=>{"use strict";i.d(t,{SeriesHorizontalLinePaneView:()=>r});var s=i(22221);class r extends s.HorizontalLinePaneView{constructor(e){super(),this._series=e,this._model=e.model()}}},83150:(e,t,i)=>{"use strict";i.d(t,{SeriesSingleLinePaneView:()=>d});var s=i(3308),r=i(86441),n=i(88537),o=i(67337),a=i(85847),l=i(71053),c=i(84346),h=i(55257);class d{constructor(e,t){this._items=[],this._invalidated=!0,this._isMarkersEnabled=(0,o.enabled)("source_selection_markers"),this._selectionData=null,this._source=e,this._model=t,this._selectionIndexer=new a.SelectionIndexes(t.timeScale())}update(){this._invalidated=!0}_updateImpl(){var e,t;this._items=[];const i=this._model.timeScale(),o=this._source.priceScale();if(i.isEmpty()||!o||o.isEmpty())return;const a=i.visibleBarsStrictRange();if(null===a)return;if(0===this._source.bars().size())return;const d=null!==(e=this._source.nearestIndex(a.firstBar()-1,l.PlotRowSearchMode.NearestLeft))&&void 0!==e?e:a.firstBar()-1,u=null!==(t=this._source.nearestIndex(a.lastBar()+1,l.PlotRowSearchMode.NearestRight))&&void 0!==t?t:a.lastBar()+1,p=this._source.barFunction();let _=null;const m=this._model.timeScale().barSpacing();if(m<.1&&this._source.supportsPressedChunks()){_=this._source.firstValue();const e=this._source.pressedChunks(m,(0,n.ensureNotNull)(this._source.priceSource())),t=(0,h.lowerbound)(e,d,(e,t)=>e.startTimee.endTime{const i=new r.Point(t.startTime,e);this._items.push(i)})}}else{_=this._source.bars().range(d,u).reduce((e,t,i)=>{const n=p(i);if(!(0,s.default)(n))return e;const o=new r.Point(t,n);return this._items.push(o),a.contains(t)?null!=e?e:n:e},null)}if(null!==_)if(o.pointsArrayToCoordinates(this._items,_),i.timedValuesToCoordinates(this._items),this._model.selection().isSelected(this._source)){const e=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,barSpacing:i.barSpacing(),hittestResult:c.HitTestResult.REGULAR};const t=(0, -n.ensureNotNull)(this._model.paneForSource(this._source)).height();this._selectionData.hittestResult=c.HitTestResult.REGULAR;for(let s=0;s{"use strict";i.d(t,{calculateColor:()=>P,SeriesValuesProvider:()=>T});var s=i(88537),r=i(93751),n=i(24377),o=i(28353),a=i(49483),l=(i(67337),i(68906)),c=i(62820),h=i(71053),d=i(14291),u=i(85733),p=i(26811),_=i(67802),m=i(33981),g=i(89128),f=i(88129),v=i(57626);const S=a.CheckMobile.any(),y=S&&!0,b=new p.PercentageFormatter,w=new _.VolumeFormatter(2),C=`${v.notAvailable} (${v.notAvailable}%)`;function P(e,t){const i=(0,n.parseRgb)(t),s=(0,n.parseRgb)(e);return(0,n.distanceRgb)(i,s)<70?(0,n.rgbToHexString)((0,n.invertRgb)(i)):t}class T{constructor(e,t){this._series=e,this._model=t,this._emptyValues=[{title:(0,o.t)("Open"),visible:!1,value:"",index:0,id:""},{title:(0,o.t)("High"),visible:!1,value:"",index:1,id:""},{title:(0,o.t)("Low"),visible:!1,value:"",index:2,id:""},{title:(0,o.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:(0,o.t)("Change"),visible:!1,value:"",index:6,id:""},{title:(0,o.t)("Vol"),visible:!1,value:"",index:7,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._showLastPriceAndChangeOnly(),i=this._emptyValues.map(e=>({...e,visible:!t}));i[0].value=v.notAvailable,i[1].value=v.notAvailable,i[2].value=v.notAvailable,i[3].value=v.notAvailable,i[6].value=C,i[7].value=v.notAvailable,i[5].visible=!1;const n=i[4];if(n.value=v.notAvailable,n.visible=!1,this._model.timeScale().isEmpty()||0===this._series.bars().size()||this._series.priceScale().isEmpty())return i;(0,r.isNumber)(e)||(e=(0,s.ensureNotNull)(this._series.data().last()).index);const o=this._series.nearestIndex(e,h.PlotRowSearchMode.NearestLeft);if(void 0===o)return i;const a=this._series.data().valueAt(o),d=this._model.backgroundTopColor().value();if(null===a)return i;const u=a[1],p=a[2],_=a[3],g=a[4],{values:S}=this._changesData(g,o,t),T=(0,f.getPriceValueFormatterForSource)(this._series);if((0,f.shouldBeFormattedAsPercent)(this._series)||(0,f.shouldBeFormattedAsIndexedTo100)(this._series))i[6].value="";else if(void 0!==S){const e=this._series.formatter();i[6].value=(0,c.forceLTRStr)(`${e.format(S.change,!0)} (${b.format(S.percentChange,!0)})`)}if(t)i[5].value=null==g?v.notAvailable:T(g),i[5].visible=!0,i[6].visible=!0;else{i[0].value=null==u?v.notAvailable:T(u),i[1].value=null==p?v.notAvailable:T(p),i[2].value=null==_?v.notAvailable:T(_),i[3].value=null==g?v.notAvailable:T(g),i[4].value=T(this._series.barFunction()(a));const e=a[5];(0,r.isNumber)(e)?i[7].value=w.format(e):i[7].visible=!1}let x=null -;if(t&&!y)x=void 0===S||S.change>=0?m.SeriesBarColorer.upColor(this._series.properties()):m.SeriesBarColorer.downColor(this._series.properties());else{const e=this._series.barColorer().barStyle(o,!1);x=P(d,null!=e.barBorderColor?e.barBorderColor:e.barColor)}x=(0,l.resetTransparency)(P(d,x));for(const e of i)e.color=x;return i}_showLastPriceAndChangeOnly(){return S&&(null===this._model.crossHairSource().pane||(0,d.isLineToolName)(u.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i){var s;if(i&&!y){const e=this._series.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent}}}else{const i=this._series.data().search(t-1,h.PlotRowSearchMode.NearestLeft),r=null!==(s=null==i?void 0:i.value[4])&&void 0!==s?s:null;if(null!==r&&null!=e)return{values:{change:e-r,percentChange:(0,g.barPercentChange)(r,e)}}}return{}}}},47484:(e,t,i)=>{"use strict";i.d(t,{sessionsPreferencesDefault:()=>r});var s=i(45112);const r={graphics:{backgrounds:{outOfSession:{color:s.colorsPalette["color-tv-blue-500"],transparency:92,visible:!1},preMarket:{color:"#FF9800",transparency:92,visible:!1},postMarket:{color:s.colorsPalette["color-tv-blue-500"],transparency:92,visible:!1}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}}},50338:(e,t,i)=>{"use strict";i.d(t,{StatusProviderBase:()=>s});class s{constructor(e){this._colorProperty=e}size(){return"13px"}bold(){return!1}color(){return this._colorProperty.value()}}},45058:(e,t,i)=>{"use strict";i.d(t,{StatusView:()=>s});class s{constructor(e){this._text="",this._color="",this._size="13px",this._bold=!1,this._statusProvider=e}text(){return this._text}getSplitTitle(){return[this._text]}color(){return this._statusProvider.color()}bold(){return this._bold}size(){return this._size}}},245:(e,t,i)=>{"use strict";var s;i.d(t,{StoriesTimeLineItemType:()=>s}),function(e){e[e.Image=0]="Image",e[e.Emoji=1]="Emoji"}(s||(s={}))},70581:(e,t,i)=>{"use strict";i.d(t,{seriesPrice:()=>n,positionVisualDirection:()=>a,positionToCoordinate:()=>l,noDataBasePosition:()=>c,seriesBasePosition:()=>h,getNoDataPosition:()=>d,getSeriesPosition:()=>u});var s=i(88537),r=i(71053);function n(e,t,i){const s=e.barFunction();switch(e.style()){case 3:case 10:case 2:return s(t.value);default:return t.value[-1===i?3:2]}}function o(e){return e>=0?1:-1}function a(e,t){return-1===o(e)!==t?-1:1}function l(e,t,i,s){const r=Math.min(t,Math.max(0,1===s?i:t-i));return i-s*Math.abs(r*e/100)}function c(e,t,i){const s=e.index();return null===s?null:{index:s,price:t.coordinateToPrice(t.height()/2,i)}}function h(e,t){const i=e.data().bars(),s=i.first(),a=i.last();if(null===s||null===a)return null;let l;const c=t.index();if(null===c){if(void 0===t.time)return null;const e=t.time(),n=s.value[0],o=a.value[0];if(eo)return null;l=i.searchByTime(e,r.PlotRowSearchMode.NearestRight,4)}else l=i.search(c);return null===l?null:{index:l.index,price:n(e,l,o(t.position()))}}function d(e,t,i){const s=c(e,t,i);if(null===s)return null;const r=a(e.position(),t.isInverted());return{ -index:s.index,price:s.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:r,startsOnSeriesData:!1}}function u(e,t,i=!0){const r=h(e,t),n=e.priceScale(),o=(0,s.ensureNotNull)(e.firstValue());if(null===r)return d(t,n,o);let l=0;const c=e.properties().childs(),u=e.model().timeScale(),p=n.priceToCoordinate(r.price,o);if(i)switch(e.style()){case 3:l=c.areaStyle.childs().linewidth.value()/2;break;case 2:l=c.lineStyle.childs().linewidth.value()/2;break;case 10:const e=Math.abs(100-c.baselineStyle.childs().baseLevelPercentage.value());l=n.height()*e/100>p?c.baselineStyle.childs().topLineWidth.value()/2:c.baselineStyle.childs().bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:l=3;break;case 0:l=c.barStyle.childs().thinBars.value()?3:Math.max(3,.25*u.barSpacing());break;case 11:l=c.rangeStyle.childs().thinBars.value()?3:Math.max(3,.25*u.barSpacing());break;case 4:case 7:l=3;break;case 5:l=Math.max(4,.25*u.barSpacing());break;case 6:l=Math.max(5,.25*u.barSpacing())}const _=a(t.position(),n.isInverted()),m=p-_*l;return{index:r.index,price:r.price,poleStartY:m,visualDirection:_,positionPointDirection:_,startsOnSeriesData:!0}}},26582:(e,t,i)=>{"use strict";i.d(t,{materializeBackground:()=>o,dematerializeBackground:()=>a});var s=i(88537),r=i(2271),n=i(51344);function o(e,t){if(e.start>=t.length||e.stop>=t.length)return null;const i=t[e.start],n=t[e.stop];return n===r.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i===r.INVALID_TIME_POINT_INDEX||i<=n,"start should not exceed stop"),{start:i===r.INVALID_TIME_POINT_INDEX?null:i,stop:n})}function a(e,t,i){return{id:t,start:(0,n.ensureTimePointIndexIndex)(i.indexOf(null!==e.start?e.start:r.INVALID_TIME_POINT_INDEX)),stop:(0,n.ensureTimePointIndexIndex)(i.indexOf(e.stop))}}},54376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LiveStudyGraphics:()=>o.LiveStudyGraphics,StaticStudyGraphics:()=>n.StaticStudyGraphics,createGraphicsPaneViews:()=>u,createGraphicsPriceAxisViews:()=>_,emptyStudyGraphics:()=>n.emptyStudyGraphics,isStudyGraphicsEmpty:()=>r.isStudyGraphicsEmpty,loadStudyGraphics:()=>n.loadStudyGraphics,saveStudyGraphics:()=>n.saveStudyGraphics});var s=i(98125),r=i(82065),n=i(81064),o=i(75871),a=i(97938);class l extends a.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.priceScale(),r=this._source.properties().visible.value();if(!s||s.isEmpty()||!r)return;const n=this._source.properties().graphics[this._data.lineType][this._data.styleId];if(!(n.visible&&n.visible.value()&&n.showPrice&&n.showPrice.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const o=this._source.firstValue();if(null===o)return;const a=this._data.line.level,l=n.color.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=s.priceToCoordinate(a,o),e.text=s.formatPrice(a,o,!0),e.visible=!0}_isLabelVisibleAccordinglyToProperties(){return!!this._source.model().properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().showLabelsOnPriceScale.value()}} -const c=(0,s.getLogger)("Chart.StudyGraphics"),h=new Set(["dwgtablecells"]);async function d(e,t,s,r){switch(e){case"hhists":return new((await i.e(507).then(i.bind(i,93742))).HHistPaneView)(t,s,r);case"horizlines":return new((await i.e(507).then(i.bind(i,22107))).HorizLinePaneView)(t,s,r);case"vertlines":return new((await i.e(507).then(i.bind(i,59778))).VertLinePaneView)(t,s,r);case"polygons":return new((await i.e(507).then(i.bind(i,54077))).PolygonPaneView)(t,s,r);case"backgrounds":return new((await i.e(507).then(i.bind(i,72984))).BackgroundPaneView)(t,s,r)}return null}async function u(e,t,i){const s=[],r=Object.keys(e.graphicsInfo());r.sort((e,t)=>p(e)-p(t));for(const n of r){const r=await d(n,e,t,i);null!==r?s.push(r):h.has(n)||c.logWarn(n+" is not supported by this build of graphics subsystem, skipping")}return s}function p(e){switch(e){case"polygons":return-100;case"trendchannels":return-90;default:return 0}}function _(e){const t=Object.keys(e.graphicsInfo()),i=[];for(const s of t)switch(s){case"hlines":e.graphics().hlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r,lineType:s}))})});break;case"horizlines":e.graphics().horizlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r,lineType:s}))})})}return i}},95018:(e,t,i)=>{"use strict";i.d(t,{HHistDirection:()=>s,HHistLocation:()=>r,HHistVolumeMode:()=>n,materializeHHist:()=>c,dematerializeHHist:()=>h});var s,r,n,o=i(88537),a=i(2271),l=i(51344);function c(e,t){if(e.firstBarTime>=t.length||e.lastBarTime>=t.length)return null;const i=t[e.firstBarTime],s=t[e.lastBarTime];return i===a.INVALID_TIME_POINT_INDEX||s===a.INVALID_TIME_POINT_INDEX?null:((0,o.assert)(i<=s,"firstBarTime should not exceed lastBarTime"),(0,o.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i,lastBarTime:s,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}function h(e,t,i){const s=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.firstBarTime)),r=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.lastBarTime));return{id:t,...e,firstBarTime:s,lastBarTime:r}}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={})),function(e){e.Relative="relative",e.Absolute="absolute"}(r||(r={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(n||(n={}))},15513:(e,t,i)=>{"use strict";i.d(t,{materializeHorizLine:()=>o,dematerializeHorizLine:()=>a});var s=i(88537),r=i(2271),n=i(51344);function o(e,t){if(e.startIndex>=t.length||e.endIndex>=t.length)return null;const i=t[e.startIndex],n=t[e.endIndex];return i===r.INVALID_TIME_POINT_INDEX||n===r.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function a(e,t,i){const s=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.startIndex)),r=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return{id:t,...e,startIndex:s,endIndex:r}}},75871:(e,t,i)=>{"use strict";i.d(t,{ -LiveStudyGraphics:()=>d});var s=i(88537),r=i(95018),n=i(15513),o=i(57987),a=i(39834),l=i(26582),c=i(82065),h=i(81064);class d{constructor(){this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwgboxes=new Map,this._dwglines=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._dwglinefills=new Map,this._hhistsByTimePointIndex=new Map}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}clear(){this._indexes=[],this._clearPrimitives()}extract(){const e=e=>e.extract(),t={indexes:this._indexes,horizlines:p(this._horizlines,e),vertlines:p(this._vertlines,e),lines:p(this._lines,e),hlines:p(this._hlines,e),textmarks:p(this._textmarks,e),shapemarks:p(this._shapemarks,e),backgrounds:p(this._backgrounds,e),polygons:p(this._polygons,e),trendchannels:p(this._trendchannels,e),hhists:p(this._hhists,e),dwglabels:p(this._dwglabels,e),dwglines:p(this._dwglines,e),dwgboxes:p(this._dwgboxes,e),dwgtables:p(this._dwgtables,e),dwgtablecells:p(this._dwgtablecells,e),dwglinefills:p(this._dwglinefills,e)};return this._hhistsByTimePointIndex=new Map,new h.StaticStudyGraphics("data",t)}replaceIndexesTo(e){this._indexes=e;const t=e=>e.replaceIndexesTo(this._indexes);this._horizlines.forEach(t),this._vertlines.forEach(t),this._lines.forEach(t),this._hlines.forEach(t),this._textmarks.forEach(t),this._shapemarks.forEach(t),this._backgrounds.forEach(t),this._polygons.forEach(t),this._trendchannels.forEach(t),this._hhists.forEach(t),this._dwglabels.forEach(t),this._dwgboxes.forEach(t),this._dwglines.forEach(t),this._dwgtables.forEach(t),this._dwgtablecells.forEach(t),this._dwglinefills.forEach(t),this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}processCommands(e,t){void 0!==e.erase&&this._processEraseCommands(e.erase),void 0!==e.create&&this._processCreateCommands(e.create,t)}_processCreateCommands(e,t){for(const i in e){if(!e.hasOwnProperty(i))continue;const c=i;switch((0,s.assert)(c in t,`There is a '${c}' in study response, but it doesn't present in graphics info!`),c){case"hhists":_(this._hhists,e[c],t[c],this._indexes,r.materializeHHist);break;case"horizlines":_(this._horizlines,e[c],t[c],this._indexes,n.materializeHorizLine);break;case"vertlines":_(this._vertlines,e[c],t[c],this._indexes,o.materializeVertLine) -;break;case"polygons":_(this._polygons,e[c],t[c],this._indexes,a.materializePolygon);break;case"backgrounds":_(this._backgrounds,e[c],t[c],this._indexes,l.materializeBackground)}}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}_processEraseCommands(e){for(const t of e)if("all"===t.action)this._clearPrimitives();else{const e=e=>e.deleteById(t.id);switch(t.type){case"horizlines":this._horizlines.forEach(e);break;case"vertlines":this._vertlines.forEach(e);break;case"lines":this._lines.forEach(e);break;case"hlines":this._hlines.forEach(e);break;case"textmarks":this._textmarks.forEach(e);break;case"shapemarks":this._shapemarks.forEach(e);break;case"backgrounds":this._backgrounds.forEach(e);break;case"polygons":this._polygons.forEach(e);break;case"trendchannels":this._trendchannels.forEach(e);break;case"hhists":this._hhists.forEach(e);break;case"dwglabels":this._dwglabels.forEach(e);break;case"dwglines":this._dwglines.forEach(e);break;case"dwgboxes":this._dwgboxes.forEach(e);break;case"dwgtables":this._dwgtables.forEach(e);break;case"dwgtablecells":this._dwgtablecells.forEach(e);break;case"dwglinefills":this._dwglinefills.forEach(e)}}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}_clearPrimitives(){this._horizlines.clear(),this._vertlines.clear(),this._lines.clear(),this._hlines.clear(),this._textmarks.clear(),this._shapemarks.clear(),this._backgrounds.clear(),this._polygons.clear(),this._trendchannels.clear(),this._hhists.clear(),this._dwglabels.clear(),this._dwgboxes.clear(),this._dwglines.clear(),this._dwgtables.clear(),this._dwgtablecells.clear(),this._dwglinefills.clear(),this._hhistsByTimePointIndex=new Map}}class u{constructor(e,t){this._primitivesDataById=new Map,this._primitiveById=new Map,this._materializePrimitive=e,this._indexes=t}forEach(e,t){this._primitiveById.forEach(i=>{e.call(t,i,i,this)})}has(e){let t=!1;return this._primitiveById.forEach(i=>{t=t||i===e}),t}get size(){return this._primitiveById.size}[Symbol.iterator](){throw new Error("Not implemented")}entries(){throw new Error("Not implemented")}keys(){throw new Error("Not implemented")}values(){throw new Error("Not implemented")}hasId(e){return this._primitiveById.has(e)}addData(e){this._primitivesDataById.set(e.id,e),this._tryMaterialize(e)}deleteById(e){this._primitiveById.delete(e),this._primitivesDataById.delete(e)}clear(){this._primitivesDataById.clear(),this._primitiveById.clear()}replaceIndexesTo(e){this._indexes=e,this._primitiveById.clear(),this._primitivesDataById.forEach(this._tryMaterialize,this)}extract(){const e=new Set(this._primitivesDataById.values());return this._primitivesDataById=new Map,this._primitiveById.clear(),e}_tryMaterialize(e){const t=this._materializePrimitive(e,this._indexes);null!==t&&((0,s.assert)(!this._primitiveById.has(e.id),"primitive with specified id should not exist"),this._primitiveById.set(e.id,t))}}function p(e,t){const i=new Map;return e.forEach((e,s)=>i.set(s,t(e))),i}function _(e,t,i,r,n){if(void 0!==t)for(const o of t){const t=o.styleId -;void 0!==i&&(0,s.assert)(t in i,"Every style used by graphics primitive should be declared in study metainfo");let a=e.get(t);void 0===a&&(a=new u(n,r),e.set(t,a)),o.data.forEach(a.addData.bind(a))}}},39834:(e,t,i)=>{"use strict";i.d(t,{materializePolygon:()=>n,dematerializePolygon:()=>o});var s=i(2271),r=i(51344);function n(e,t){for(const i of e.points){if(i.index>=t.length)return null;if(t[i.index]===s.INVALID_TIME_POINT_INDEX)return null}return{points:e.points.map(e=>({index:t[e.index],offset:e.offset,level:e.level}))}}function o(e,t,i){return{id:t,points:e.points.map(e=>({...e,index:(0,r.ensureTimePointIndexIndex)(i.indexOf(e.index))}))}}},81064:(e,t,i)=>{"use strict";i.d(t,{StaticStudyGraphics:()=>h,emptyStudyGraphics:()=>_,loadStudyGraphics:()=>m,saveStudyGraphics:()=>g});var s=i(2271),r=i(15513),n=i(57987),o=i(95018),a=i(39834),l=i(26582),c=i(82065);class h{constructor(e,t){if(this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwglines=new Map,this._dwgboxes=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._dwglinefills=new Map,"data"===e){const e=t;this._indexes=e.indexes,this._vertlines=d(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=d(e.horizlines,this._indexes,r.materializeHorizLine),this._polygons=d(e.polygons,this._indexes,a.materializePolygon),this._hhists=d(e.hhists,this._indexes,o.materializeHHist),this._backgrounds=d(e.backgrounds,this._indexes,l.materializeBackground)}else if("state"===e){const e=t;this._indexes=e.indexes||[],this._vertlines=u(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=u(e.horizlines,this._indexes,r.materializeHorizLine),this._polygons=u(e.polygons,this._indexes,a.materializePolygon),this._hhists=u(e.hhists,this._indexes,o.materializeHHist),this._backgrounds=u(e.backgrounds,this._indexes,l.materializeBackground)}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}}function d(e,t,i){const s=new Map;return e.forEach((e,r)=>{const n=s.get(r)||new Set;e.forEach(e=>{const s=i(e,t);null!==s&&n.add(s)}),s.set(r,n)}),s}function u(e,t,i){const s=new Map;if(void 0===e)return s;for(const r of e){const e=r.styleId,n=s.get(e)||new Set;r.data.forEach(e=>{const s=i(e,t) -;null!==s&&n.add(s)}),s.set(e,n)}return s}function p(e,t,i,s){const r=[];return e.forEach((e,n)=>{e.forEach(e=>{!function(e,t,i){let s=null;for(const i of e)i.styleId===t&&(s=i);null===s&&(s={styleId:t,data:[]},e.push(s)),s.data.push(i)}(r,n,s(e,t(e),i))})}),r.length>0?r:void 0}function _(){return new h}function m(e){return new h("state",e)}function g(e){const t=function(e){const t=new Set;e.horizlines().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.vertlines().forEach((e,i)=>{e.forEach(e=>{t.add(e.index)})}),e.lines().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.textmarks().forEach((e,i)=>{e.forEach(e=>{t.add(e.time)})}),e.shapemarks().forEach((e,i)=>{e.forEach(e=>{t.add(e.time)})}),e.backgrounds().forEach((e,i)=>{e.forEach(e=>{t.add(null!==e.start?e.start:s.INVALID_TIME_POINT_INDEX),t.add(e.stop)})}),e.polygons().forEach((e,i)=>{e.forEach(e=>{e.points.forEach(e=>{t.add(e.index)})})}),e.trendchannels().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.hhists().forEach((e,i)=>{e.forEach(e=>{t.add(e.firstBarTime),t.add(e.lastBarTime)})}),e.dwglabels().forEach((e,i)=>{e.forEach(e=>{t.add(e.x)})}),e.dwglines().forEach((e,i)=>{e.forEach(e=>{var i,r;t.add(null!==(i=e.x1)&&void 0!==i?i:s.INVALID_TIME_POINT_INDEX),t.add(null!==(r=e.x2)&&void 0!==r?r:s.INVALID_TIME_POINT_INDEX)})}),e.dwgboxes().forEach((e,i)=>{e.forEach(e=>{var i,r;t.add(null!==(i=e.left)&&void 0!==i?i:s.INVALID_TIME_POINT_INDEX),t.add(null!==(r=e.right)&&void 0!==r?r:s.INVALID_TIME_POINT_INDEX)})});const i=Array.from(t);return i.sort((e,t)=>e-t),i}(e),i={indexes:t};let c=0;const h=()=>++c;return i.vertlines=p(e.vertlines(),h,t,n.dematerializeVertLine),i.horizlines=p(e.horizlines(),h,t,r.dematerializeHorizLine),i.polygons=p(e.polygons(),h,t,a.dematerializePolygon),i.hhists=p(e.hhists(),h,t,o.dematerializeHHist),i.backgrounds=p(e.backgrounds(),h,t,l.dematerializeBackground),i}},95936:(e,t,i)=>{"use strict";var s,r,n,o;i.d(t,{MarkLocation:()=>s,HAlign:()=>r,LineStyle:()=>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"}(s||(s={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(r||(r={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(n||(n={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(o||(o={}))},82065:(e,t,i)=>{"use strict";i.d(t,{isStudyGraphicsEmpty:()=>r,splitHHistsByTimePointIndex:()=>n});const s=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwglabels","dwglines","dwgboxes","dwgtables","dwgtablecells","dwglinefills"];function r(e){return!s.some(t=>e[t]().size>0)}function n(e){const t=new Map;return e.forEach((e,i)=>{e.forEach(e=>{const s={...e,styleId:i},r=e.firstBarTime;let n=t.get(r);void 0===n&&(n=new Set,t.set(r,n)),n.add(s)})}),t}},57987:(e,t,i)=>{"use strict";i.d(t,{ -materializeVertLine:()=>n,dematerializeVertLine:()=>o});var s=i(2271),r=i(51344);function n(e,t){if(e.index>=t.length)return null;const i=t[e.index];return i===s.INVALID_TIME_POINT_INDEX?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function o(e,t,i){const s=(0,r.ensureTimePointIndexIndex)(i.indexOf(e.index));return{id:t,...e,index:s}}},99682:(e,t,i)=>{"use strict";i.d(t,{HHistBasedValuesProvider:()=>_});var s=i(93751),r=i(88537),n=i(49483),o=i(71053),a=i(85733),l=i(67802),c=i(95018),h=i(44601),d=i(57626);function u(e,t="",i=""){return{id:t,index:e,title:i,value:"",visible:!1}}const p=n.CheckMobile.any();class _{constructor(e,t){this._emptyValues=[],this._study=e,this._model=t,void 0!==this._study.metaInfo().graphics.hhists&&this._emptyValues.push(u(0),u(1),u(2))}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));t.forEach(e=>{e.visible=this._study.isVisible(),e.value=d.notAvailable});const i=this._study.properties().child("inputs").child("volume").value();switch(i){case c.HHistVolumeMode.UpDown:t[0].title="Up",t[1].title="Down",t[2].title="Total";break;case c.HHistVolumeMode.Total:t[0].title="Total",t[1].visible=!1,t[2].visible=!1;break;case c.HHistVolumeMode.Delta:t[0].title="Delta",t[1].title="Max(Up, Down)",t[2].title="Total"}const n=this._study.priceScale(),a=this._model.timeScale();if(null===n||n.isEmpty()||a.isEmpty()||this._hideValues())return t;if(null===e||!isFinite(e)){const i=this._study.data().last();if(null===i)return t;e=i.index}const h=this._model.crossHairSource(),u=h.price;if(!isFinite(h.y)&&null===(e=function(e,t){var i;const s=null===(i=e.visibleBarsStrictRange())||void 0===i?void 0:i.lastBar();if(!s)return null;const r=t.data().search(s,o.PlotRowSearchMode.NearestLeft);return r?r.index:null}(this._model.timeScale(),this._model.mainSeries())))return t;const p=function(e,t,i,s){if(0===e.size)return null;if(!i){const e=(0,r.ensureNotNull)(s.data().valueAt(t));i=s.barFunction()(e)}const n=function(e,t){let i=null;return e.forEach((e,s)=>{s<=t&&(null===i||s>i)&&(i=s)}),i}(e,t);if(null===n)return null;const o=e.get(n);if(!o||0===o.size)return null;return function(e,t){let i=null;return e.forEach(e=>{e.priceLow<=t&&t{e.value="0"}),t;const _=this._study.metaInfo().graphics.hhists;if(void 0===_)return t;if(void 0===_[p.styleId])return t;const m=this._study.properties().child("graphics").child("hhists").child(p.styleId),g=new l.VolumeFormatter,f=e=>(0,s.isNumber)(e)?g.format(e):"";if(i!==c.HHistVolumeMode.Delta){if(p.rate.forEach((e,i)=>{t[i].value=f(e),t[i].color=m.colors[i].value()}),i===c.HHistVolumeMode.UpDown){const e=p.rate[0]+p.rate[1];t[2].value=f(e),t[2].color=m.valuesColor.value()}}else{const e=p.rate[0]>p.rate[1]?0:1,i=m.colors[e].value(),s=p.rate[0]+p.rate[1];[2*p.rate[e]-s,p.rate[e],s].forEach((e,s)=>{t[s].value=f(e),t[s].color=i})}return t} -_hideValues(){return p&&(null===this._model.crossHairSource().pane||(0,h.isLineToolName)(a.tool.value())||null!==this._model.lineBeingEdited())}}},72857:(e,t,i)=>{"use strict";i.d(t,{makeNextSymbolId:()=>r,makeNextStudyId:()=>o});let s=0;function r(){return s++,"ss_"+s}let n=0;function o(){return n++,"st"+n}},5402:(e,t,i)=>{"use strict";i.d(t,{migrateMetaInfoAndPropState:()=>_});var s=i(88537),r=i(67072),n=i.n(r),o=i(80643);const a=["Moving Average@tv-basicstudies","Moving Average Exponential@tv-basicstudies"];class l{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,a.includes(t.id)}migratePropState(e){var t,i,s;a.includes(e.id)&&(e.inputs.length=null!==(t=e.inputs.length)&&void 0!==t?t:e.inputs.in_0,e.inputs.source=null!==(i=e.inputs.source)&&void 0!==i?i:e.inputs.in_1,e.inputs.offset=null!==(s=e.inputs.offset)&&void 0!==s?s:e.inputs.in_2,delete e.inputs.in_0,delete e.inputs.in_1,delete e.inputs.in_2,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const c=["Volume@tv-basicstudies"];class h{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,c.includes(t.id)}migratePropState(e){var t;c.includes(e.id)&&(e.inputs.maLength=null!==(t=e.inputs.length)&&void 0!==t?t:e.inputs.maLength,delete e.inputs.length,delete e.inputs.offset,delete e.inputs.source,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const d=["Relative Strength Index@tv-basicstudies","Commodity Channel Index@tv-basicstudies","On Balance Volume@tv-basicstudies"];class u{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,d.includes(t.id)}migratePropState(e){d.includes(e.id)&&(e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const p=[new class{targetMetaInfoVersion(){return 47}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=47,!t.defaults||void 0===t.defaults.precision)return void(i.format={type:"inherit"});const s=t.defaults&&t.defaults.precision,r=(0,o.isNumber)(s)?s:parseInt(s);0===r?i.format={type:"volume"}:isFinite(r)?i.format={type:"price",precision:r}:i.format={type:"inherit"},delete t.defaults.precision}migratePropState(e){}},new class{targetMetaInfoVersion(){return 50}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=50,void 0===t.defaults||void 0===t.defaults.ohlcPlots||void 0===t.ohlcPlots)return;const r=t.ohlcPlots,n=t.defaults.ohlcPlots,o=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const e of Object.keys(n)){const t=n[e];if("ohlc_candles"===t.plottype){let i=!1;const s=r[e];void 0!==s&&(i=!!s.drawBorder,delete s.drawBorder),o[e]={borderColor:"#000000", -drawBorder:i,...t}}}}migratePropState(e){}}];function _(e,t){const i=n().versionOf(e),r=e;void 0===r._serverMetaInfoVersion&&(r._serverMetaInfoVersion=i),p.forEach(r=>{i<0||i>=r.targetMetaInfoVersion()||(r.migrateMetaInfo(e),void 0!==t&&r.migratePropState(t),(0,s.assert)(e._metainfoVersion===r.targetMetaInfoVersion()))})}p.push(new l),p.push(new h),p.push(new u),p.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},13672:(e,t,i)=>{"use strict";i.d(t,{NonSeriesStudy:()=>n});var s=i(88537),r=i(66101);class n extends r.Study{clearData(){this._customData=null,this._indexes=null}restoreData(e,t,i){super.restoreData(e),this._customData=t,this._indexes=i}state(e){const t=super.state(e);return e&&(t.nonSeriesData=this._customData,t.indexes=this._indexes),t}customData(){return this._customData}_setPaneViews(e){this._paneViews=e,this.model().lightUpdate()}_onDataUpdated(e,t,i){null!==t&&(t.indexes_replace?((0,s.assert)("nochange"!==i),this._indexes=i):(this._customData=t.data,"nochange"!==i&&(this._indexes=i))),super._onDataUpdated(e,t,i)}}},52457:(e,t,i)=>{"use strict";i.d(t,{OverlayLegendValuesProvider:()=>C});var s=i(37667),r=i(93751),n=i(28353),o=i(49483),a=i(68906),l=i(62820),c=i(26811),h=i(83393),d=i(71053),u=i(14291),p=i(85733),_=i(89128),m=i(33981),g=i(88129),f=i(57626);const v=o.CheckMobile.any(),S=v&&!0,y=new c.PercentageFormatter,b=f.notAvailable,w=`${b} (${b}%)`;class C extends class{constructor(e,t){this._study=e,this._model=t,this._emptyValues=[{title:(0,n.t)("Open"),visible:!1,value:"",index:0,id:""},{title:(0,n.t)("High"),visible:!1,value:"",index:1,id:""},{title:(0,n.t)("Low"),visible:!1,value:"",index:2,id:""},{title:(0,n.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:(0,n.t)("Change"),visible:!1,value:"",index:6,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));if(this._model.timeScale().isEmpty())return t;if(0===this._study.data().size())return t;const i=this._showLastPriceAndChangeOnly();if((0,r.isNumber)(e)||(i?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),(0,r.isNumber)(e)||(e=this._study.data().lastIndex()))),null===e||!(0,r.isNumber)(e))return t;const s=this._study.data().search(e,d.PlotRowSearchMode.NearestLeft,1),n=this._model.backgroundTopColor().value();if(null===s)return t;const o=s.index,c=s.value,u=c[1],p=c[2],_=c[3],f=c[4];t[0].value=b,t[1].value=b,t[2].value=b,t[3].value=b,t[6].value=w;for(const e of t)e.visible=!i;const v=t[4];v.visible=!1;const{values:C}=this._changesData(f,u,o,i),P=(0,g.getPriceValueFormatterForSource)(this._study);if((0,g.shouldBeFormattedAsPercent)(this._study)||(0,g.shouldBeFormattedAsIndexedTo100)(this._study))t[6].value="";else if(void 0!==C){const e=this._study.formatter();t[6].value=(0,l.forceLTRStr)(`${e.format(C.change,!0)} (${y.format(C.percentChange,!0)})`)}i?(t[5].value=null==f?b:P(f),t[5].visible=!0,t[6].visible=!0):(t[0].value=null==u?b:P(u), -t[1].value=null==p?b:P(p),t[2].value=null==_?b:P(_),t[3].value=null==f?b:P(f),v.value=P(this._study.barFunction()(c)),t[5].visible=!1);let T=null;if(i&&!S)T=void 0===C||C.change>=0?m.SeriesBarColorer.upColor(this._study.properties()):m.SeriesBarColorer.downColor(this._study.properties());else{const e=this._study.barColorer().barStyle(o,!1),t=null!=e.barBorderColor?e.barBorderColor:e.barColor;T=(0,h.calculateColor)(n,t)}T=(0,a.resetTransparency)((0,h.calculateColor)(n,T));for(const e of t)e.color=T;return t}_showLastPriceAndChangeOnly(){return v&&(null===this._model.crossHairSource().pane||(0,u.isLineToolName)(p.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i,s){var r;if(s&&!S){const e=this._study.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent},priceDirection:{basedOnCurrentBar:e.change>=0?0:1,basedOnPrevClose:e.change>=0?0:1}}}else{const s=this._study.data().search(i-1,d.PlotRowSearchMode.NearestLeft,1),n=null!==(r=null==s?void 0:s.value[4])&&void 0!==r?r:null;if(null!==n&&null!=e&&null!=t)return{values:{change:e-n,percentChange:(0,_.barPercentChange)(n,e)},priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=n?0:1}}}return null==e||null==t?{}:{priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=t?0:1}}}}{constructor(e,t){super(e,t);const i=t.properties().childs().paneProperties.childs().legendProperties.childs();this._showBarChange=i.showBarChange,this._showSeriesOHLC=i.showSeriesOHLC,this._seriesStyle=e.properties().childs().style}getValues(e){const t=super.getValues(e);if(!this._showLastPriceAndChangeOnly()){const e=(0,s.isPriceSourceStyle)(this._seriesStyle.value()),i=this._showSeriesOHLC.value(),r=i&&!e,n=i&&e;t[0].visible=r,t[1].visible=r,t[2].visible=r,t[3].visible=r,t[6].visible=this._showBarChange.value(),t[4].visible=n}return t}}},79284:(e,t,i)=>{"use strict";i.d(t,{OverlayStatusProvider:()=>r});var s=i(40529);class r extends s.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(!0,void 0,!1,!1)}}},28283:(e,t,i)=>{"use strict";i.d(t,{PivotPointsStandardLastPricesView:()=>o});var s=i(71053);const r=["p","s1","r1","s2","r2","s3","r3","s4","r4","s5","r5"],n={P:"P",S1:"S1/R1",S2:"S2/R2",S3:"S3/R3",S4:"S4/R4",S5:"S5/R5",R1:"S1/R1",R2:"S2/R2",R3:"S3/R3",R4:"S4/R4",R5:"S5/R5"};class o{constructor(e){this._visiblePivots=new Set,this._invidated=!0,this._prices=[],this._source=e}visiblePivots(){return this._visiblePivots}update(){this._invidated=!0}prices(){return this._invidated&&(this._updateImpl(),this._invidated=!1),this._prices}_updateImpl(){this._visiblePivots.clear();const e=this._source.model(),t=this._source.priceScale();if(null===t)return;if(e.timeScale().isEmpty()||t.isEmpty())return;const i=e.timeScale().visibleBarsStrictRange();if(null===i)return -;if(!this._source.customData()||!this._source.customData().pivots)return;const o=e.mainSeries().bars().search(i.lastBar(),s.PlotRowSearchMode.NearestLeft);if(null===o)return;const a=o.index,l=this._source.customData().pivots,c=this._source.indexes(),h=this._source.properties(),d=this._source.firstValue();for(let e=0;e=a||o)){this._visiblePivots.add(l[e]),this._prices=[];for(let i=0;i{"use strict";i.d(t,{PaneRendererStandardPivotLabel:()=>r});var s=i(84346);class r{constructor(e,t,i){this._drawRects=[],this._cacheProvider=e,this._point=t,this._label=i}draw(e,t){const i=this._cacheProvider(t);e.save(),e.setTransform(1,0,0,1,0,0);const s=t.pixelRatio;this._drawRects=[];const r=t=>{const r=i.labelRectByIndex(t),n={left:Math.round(this._point.x-r.width+o),top:Math.round(this._point.y-r.height/2),width:r.width,height:r.height};return e.drawImage(i.canvas(),Math.round(r.left*s),Math.round(r.top*s),r.width*s,r.height*s,Math.round(n.left*s),Math.round(n.top*s),n.width*s,n.height*s),this._drawRects.push(n),r.width},n=this._label.split("/");let o=0;for(let e=0;e0&&(o+=r(t+11)/2),o+=r(t)/2}e.restore()}hitTest(e){for(const t of this._drawRects)if(e.x>=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height)return new s.HitTestResult(s.HitTestResult.REGULAR);return null}}},66632:(e,t,i)=>{"use strict";i.d(t,{StandardPivotPointsImageCache:()=>n});var s=i(93435),r=i(88537);class n{constructor(e,t,i,r){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._paneRenderParams=e,this._recreateCanvasAndContext(new s.Size(0,0)),this.reset({font:t,fontSize:i,backColors:r})}destroy(){delete this._canvas,delete this._cache}canvas(){return this._canvas}reset(e){this._renderParams=e,this._prices=[],this._cache.font=e.fontSize+"px "+e.font,this._labelWidth=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5","/"].reduce((e,t)=>{const i=this._cache.measureText(t).width;return Math.max(i,e)},0)}rowHeight(){return this._priceAxisFontSize+4}labelRectByIndex(e){return{left:0,top:Math.round(this._topByIndex(e)),width:Math.round(this._labelWidth+4),height:Math.round(this._renderParams.fontSize+8)}}setPrices(e){let t=!1;const i=(e,t)=>{const i=void 0===e,s=void 0===t;return(!i&&!s||i===s)&&(0,r.ensureDefined)(e).formatted===(0,r.ensureDefined)(t).formatted};if(e.length!==this._prices.length)t=!0;else for(let s=0;s{this._cache.translate(.5,.5),this._cache.font=this._renderParams.fontSize+"px "+this._renderParams.font,this._cache.textBaseline="middle";for(let e=0;e{"use strict";i.d(t,{StandardPivotPointsPriceAxisView:()=>n});var s=i(97938);const r=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5"];class n extends s.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t;const i=t.name;this._completeName="P"===i.toUpperCase()?"P":`S${i[1]}/R${i[1]}`}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.properties();if(!s.visible.value())return;const n=this._completeName,o=s.levelsStyle.visibility;if(!o[n]||!o[n].value())return;const a=this._source.model().timeScale(),l=this._source.priceScale();if(a.isEmpty()||null===a.visibleBarsStrictRange()||null!==l&&l.isEmpty())return;const c=this._source.customData();if(!c||!c.pivots)return;const h=this._source.pricesView().prices()[r.indexOf(this._data.name.toUpperCase())];if(!h)return;i.background=h.color,i.textColor=this.generateTextColor(h.color),i.coordinate=h.coordinate,i.floatCoordinate=h.floatCoordinate;const d=this._source.model().properties().childs().scalesProperties.childs();d.showStudyLastValue.value()&&(e.text=h.formatted,e.visible=!0),d.showStudyPlotLabels.value()&&(t.text=this._source.priceLabelText(this._data.name),t.visible=!0)}}},46319:(e,t,i)=>{"use strict";var s=i(69927).PriceRange,r=i(86441).Point,n=i(190).StudyStatusView,o=i(26179).StudyDataWindowView,a=i(13672).NonSeriesStudy,l=i(37157).StandardPivotPointsPriceAxisView,c=i(28978).PanePriceAxisView,h=i(84346).HitTestResult,d=i(94804).CompositeRenderer,u=i(15712).areEqualPaneRenderParams,p=i(66632).StandardPivotPointsImageCache,_=i(28283).PivotPointsStandardLastPricesView,m=i(19722).PaneRendererStandardPivotLabel,g=i(40254).HorizontalLineRenderer,f=i(22799);class v{constructor(e,t){this._model=e,this._source=t,this._pivots=[],this._textCache={}}setCache(e){this._cache=e}priceAxisViews(e,t){return this._priceAxisViews}mergeLabel(e,t,i){var s=""+t;void 0===e[s]?(e[s]={},e[s].text=i,e[s].ids=[this.complete(i)]):(e[s].text+="/"+i,e[s].ids.push(this.complete(i)))}complete(e){return"P"===e?e:"S"+e[1]+"/R"+e[1]}update(){this._invalidated=!0}_updateImpl(){if(this._source.pricesView().prices(), -this._pivots=[],this._source.customData()&&this._source.customData().pivots&&this._source.properties().visible.value()){var e=this._source.customData().pivots,t=this._source._indexes,i=this._model.timeScale(),s=this._source.priceScale();if(s&&!s.isEmpty()&&!i.isEmpty()&&e){var r=i.visibleBarsStrictRange(),n=r.firstBar(),o=r.lastBar();if(this._source.ownerSource())for(var a=this._source.ownerSource().firstValue(),l=0;lo)){var d={},u=this._source.properties().levelsStyle.visibility;u.P.value()&&this.mergeLabel(d,e[l].p,"P"),u["S1/R1"].value()&&(this.mergeLabel(d,e[l].s1,"S1"),this.mergeLabel(d,e[l].r1,"R1")),u["S2/R2"].value()&&(this.mergeLabel(d,e[l].s2,"S2"),this.mergeLabel(d,e[l].r2,"R2")),u["S3/R3"].value()&&(this.mergeLabel(d,e[l].s3,"S3"),this.mergeLabel(d,e[l].r3,"R3")),u["S4/R4"].value()&&(this.mergeLabel(d,e[l].s4,"S4"),this.mergeLabel(d,e[l].r4,"R4")),u["S5/R5"].value()&&(this.mergeLabel(d,e[l].s5,"S5"),this.mergeLabel(d,e[l].r5,"R5"));var p=i.indexToCoordinate(c),_=i.indexToCoordinate(h);for(var m in d){var g=parseFloat(m),f=s.priceToCoordinate(g,a);this._pivots.push({x1:p,x2:_,y:f,label:d[m].text,labelIds:d[m].ids,src:e[l]})}}}}}}renderer(){this._invalidated&&(this._updateImpl(),this._invalidated=!1);for(var e=new d,t=this._source.properties().levelsStyle.colors,i=this._source.properties().levelsStyle.widths,s=this._source.visiblePivots(),n=0;nt)){var l=[],c=this._properties.levelsStyle.visibility;c.P.value()&&l.push(i[o].p),c["S1/R1"].value()&&l.push(i[o].s1,i[o].r1),c["S2/R2"].value()&&l.push(i[o].s2,i[o].r2),c["S3/R3"].value()&&l.push(i[o].s3,i[o].r3),c["S4/R4"].value()&&l.push(i[o].s4,i[o].r4),c["S5/R5"].value()&&l.push(i[o].s5,i[o].r5);for(var h=0;h{"use strict";function s(e){e.lineWidth=void 0,e.lineStyle=void 0;for(let t=0;ts,createEmptyStyle:()=>r})},68617:(e,t,i)=>{"use strict";i.d(t,{PaneRendererColumns:()=>r});var s=i(84346);class r{constructor(e){this._data=null, -this._precalculatedCache=[],this.setData(e)}setData(e){this._data=e,this._precalculatedCache=[]}draw(e,t){var i,s,r,n;if(null===this._data||0===this._data.items.length)return;const o=t.pixelRatio;this._precalculatedCache.length||this._fillPrecalculatedCache(o);const a=Math.max(1,Math.floor(o)),l=Math.round(this._data.histogramBase*o)-Math.floor(a/2),c=l+a,h=this._data.lineColor,d=null!==(s=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0,u=(null!==(n=null===(r=this._data.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:this._data.items.length)-1;for(let t=d;t<=u;t++){const i=this._data.items[t],s=this._precalculatedCache[t-d],r=Math.round(i.y*o),n=i.style?i.style.color:h;let u,p;e.fillStyle=n,r<=l?(u=r,p=c):(u=l,p=r-Math.floor(a/2)+a),e.fillRect(s.left,u,s.right-s.left+1,p-u)}}hitTest(e){if(null===this._data)return null;const t=.5*this._data.barSpacing,i=e.x-t,r=e.x+t;for(const t of this._data.items){const n=t.x;if(n>=i&&n<=r){const i=t.y;if(e.y>=Math.min(i,this._data.histogramBase)&&e.y<=Math.max(i,this._data.histogramBase))return new s.HitTestResult(s.HitTestResult.REGULAR)}}return null}_fillPrecalculatedCache(e){var t,i,s,r;if(null===this._data||0===this._data.items.length)return void(this._precalculatedCache=[]);const n=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),o=Math.round(this._data.barSpacing*e)-n,a=null!==(i=null===(t=this._data.visibleItemsRange)||void 0===t?void 0:t.startItemIndex)&&void 0!==i?i:0,l=(null!==(r=null===(s=this._data.visibleItemsRange)||void 0===s?void 0:s.endItemIndex)&&void 0!==r?r:this._data.items.length)-1,c=l-a+1;if(c<=0)return void(this._precalculatedCache=[]);this._precalculatedCache=new Array(c);for(let t=a;t<=l;t++){const i=this._data.items[t],s=Math.round(i.x*e);let r,n;if(o%2){const e=(o-1)/2;r=s-e,n=s+e}else{const e=o/2;r=s-e,n=s+e-1}this._precalculatedCache[t-a]={left:r,right:n,roundedCenter:s,center:i.x*e,time:i.timePointIndex}}for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a],i=this._precalculatedCache[e-a-1];t.time===i.time+1&&(t.left-i.right!==n+1&&(i.roundedCenter>i.center?i.right=t.left-n-1:t.left=i.right+n+1))}let h=Math.ceil(this._data.barSpacing*e);for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a];t.right0&&h<4)for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a];t.right-t.left+1>h&&(t.roundedCenter>t.center?t.right-=1:t.left+=1)}}}},2662:(e,t,i)=>{"use strict";i.d(t,{StudyPlotPaneView:()=>V});var s=i(88537),r=i(86441),n=i(24377),o=i(67337),a=i(64514),l=i(80643),c=i(68906),h=i(98619);function d(e,t){const i=new Map;return function(...s){const r=""+(t?t.apply(null,s):s[0]);if(!i.has(r)){const t=e.apply(this,s);return i.set(r,t),t}return i.get(r)}}var u=i(84346),p=i(84705),_=i(94804),m=i(46214),g=i(28113),f=i(85847),v=i(41892),S=i(31175),y=i(49094),b=i(49483);class w{constructor(e){this._data=e}draw(e,t){var i,s,r,n -;const o=this._data,a=t.pixelRatio,c=Math.max(1,Math.floor(a))%2?.5:0,h=o.vertOffset||0,d=o.lineColor||o.color,u=o.lineWidth||o.height/2;let p="",_=!1;const m=null!==(s=null===(i=o.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0,g=null!==(n=null===(r=o.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:o.items.length;for(let t=m;t{const t=(0,n.rgbToHsl)((0,n.parseRgb)(e)),i=t[0]+.05;return t[0]=i-Math.floor(i),(0,n.rgbToHexString)((0,n.hslToRgb)(t))},k=d(E);function D(e,t){if(null===e)return t;const i=e.firstIndex,s=t.firstIndex,r=e.clearData||t.clearData;return{firstIndex:r||void 0===i||void 0===s?void 0:Math.min(i,s),clearData:r}}class V{constructor(e,t,i,s){this._histogramBase=null,this._items=[],this._selectionData=null,this._lineColor="",this._lineWidth=1,this._color1="",this._color2="",this._dataInvalidated=null,this._viewportInvalidated=!1,this._renderer=new _.CompositeRenderer,this._isMarkersEnabled=o.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=s,this._plotIndex=e.metaInfo().plots.findIndex(e=>e.id===s),this._colorProvider=(0,M.createStudyPlotColorProvider)(e.metaInfo(),e.properties(),s),this._selectionIndexer=new f.SelectionIndexes(i.timeScale())}items(){return this._items}update(e){if("global-change"===e.type)return this._dataInvalidated=D(this._dataInvalidated,{}),void(this._viewportInvalidated=!0);if("data-source-change"!==e.type)this._viewportInvalidated=!0;else{if(e.dataSourceId===this._study.id()){const t=D(this._dataInvalidated,{firstIndex:e.firstUpdatedTimePointIndex,clearData:e.clearData});this._dataInvalidated=t}}}renderer(){return this._dataInvalidated?this._updateImplFull(this._viewportInvalidated)&&(this._dataInvalidated=null):this._viewportInvalidated&&this._updateImplLight(),this._viewportInvalidated=!1,this._renderer}_getTranspValue(){const e=this._study.properties(),t=e.styles[this._plotName];let i=0;const s=this._study.metaInfo();return"Volume@tv-basicstudies"===s.id&&s.version<=46&&"transparency"in e?(i=e.transparency.value(),i=(0,l.isNumber)(i)?i:0,i):(t.transparency&&(i=t.transparency.value(),i=(0,l.isNumber)(i)?i:0),i)}_updateImplFull(e){var t,i,n,o;const l=this._study.properties().styles[this._plotName];if(this._renderer.clear(),(null===(t=this._dataInvalidated)||void 0===t?void 0:t.clearData)&&(this._items=[]),!l.visible.value())return!1;if(!this._study.priceScale())return!1;const h=this._study.firstValue();if(null===h)return!1;const d=this._study.priceScale();if(null===d)return!1;this._histogramBase=null;const u=this._study.data(),p=u.size();if(0===p)return!1 -;const _=this._study.offset(this._plotName);let m=null===(i=this._dataInvalidated)||void 0===i?void 0:i.firstIndex;const g=l.plottype.value(),f=[I.LineStudyPlotStyle.Line,I.LineStudyPlotStyle.Area,I.LineStudyPlotStyle.Circles,I.LineStudyPlotStyle.Cross].indexOf(g)>=0;if(p!==this._items.length){const e=void 0!==m?m+_:void 0;if(void 0===e||0===this._items.length||e<(0,s.ensureDefined)(this._items[0].timePointIndex))this._items=[],u.each((e,t)=>{const i=t[this._plotIndex+1];if(f&&null==i||e<=-1e6)return!1;const s=new r.Point(NaN,NaN);return s.origPrices=new r.Point(NaN,NaN),s.timePointIndex=e+_,this._items.push(s),!1}),m=this._items.length?(0,s.ensureDefined)(this._items[0].timePointIndex)-_:void 0;else{const e=this._items[this._items.length-1].timePointIndex,t=(0,s.ensureDefined)(e)-_,i=(0,s.ensureNotNull)(u.lastIndex())+1,n=u.rangeIterator(t+1,i);for(;n.hasNext();){const e=n.next(),t=e.value[this._plotIndex+1],i=null==t;if(f&&i||e.index<-1e6)continue;const s=new r.Point(NaN,NaN);s.origPrices=new r.Point(NaN,NaN),s.timePointIndex=e.index+_,this._items.push(s)}}}let v=NaN,y=NaN;const b=new Map,w=(e,t)=>{let i=b.get(e);void 0===i&&(i=new Map,b.set(e,i));let s=i.get(t);if(void 0===s){const r=!this._plotName||"vol"!==this._plotName;s=(0,c.generateColor)(e,t,r),i.set(t,s)}return s},C=(0,S.createEmptyStyle)(),P=(0,a.clamp)(this._getTranspValue(),0,100),T=this._model.timeScale().visibleBarsStrictRange();if(null===T)return!1;const{startBar:x,endBar:M}=this._calculateStartEnd(T);if(null===x||null===M||0===this._items.length)return!1;const A=null!=m?m:(0,s.ensureNotNull)(u.firstIndex()),E=u.rangeIterator(A,(0,s.ensureNotNull)(u.lastIndex())+1),k=(0,L.lowerbound)(this._items,A+_,(e,t)=>e.timePointIndex0){const e=this._items[D-1].timePointIndex,i=new r.Point(t-1,NaN);i.origPrices=new r.Point(t-1,NaN),i.timePointIndex=e,De.timePointIndexe.timePointIndexe.timePointIndexe.timePointIndex0?(s-=n,r+=n):(s+=n,r-=n);const o=this._study.getMinFirstBarIndexForPlot(this._plotName)+n+1;return o>r+1?{startBar:null,endBar:null}:(s=Math.max(o,s),{startBar:s,endBar:r})}_createRenderer(e,t){var i;this._renderer.clear();const r=this._study.properties().styles[this._plotName],n=r,o=(0,a.clamp)(this._getTranspValue(),0,100);this._lineColor=(0,c.generateColor)(n.color.value(),o),this._lineWidth=n.linewidth.value();let d=n.color.value();const u=this._colorProvider.getDefaultPlotPointStyle();u&&(d=u.colors[0],this._lineWidth=null!==(i=u.lineWidth)&&void 0!==i?i:this._lineWidth,this._lineColor=d?(0,c.generateColor)(d,o):this._lineColor),this._color2=(0,c.generateColor)(d,o);const _=this._study.metaInfo().isRGB?E(d):k(d);this._color1=(0,c.generateColor)(_,o);const f={};f.barSpacing=this._model.timeScale().barSpacing(),f.items=this._items,f.histogramBase=this._histogramBase?this._histogramBase:(0,s.ensureNotNull)(this._study.priceScale()).height(),f.lineIndex=0,f.lineStyle=r.linestyle.value(),f.lineColor=this._lineColor,f.lineWidth=this._lineWidth,f.lineWidth=(0,l.isNumber)(f.lineWidth)?f.lineWidth:1,f.color1=this._color1,f.color2=this._color2,f.bottom=f.histogramBase,f.visibleItemsRange={startItemIndex:e,endItemIndex:t}, -f.simpleMode=this._colorProvider.singleColor();const S=this._renderer,y=!!r.joinPoints&&r.joinPoints.value();switch(r.plottype.value()){case I.LineStudyPlotStyle.Line:case I.LineStudyPlotStyle.LineWithBreaks:S.append(new m.PaneRendererLine(f));break;case I.LineStudyPlotStyle.Area:case I.LineStudyPlotStyle.AreaWithBreaks:S.append(new p.PaneRendererArea(f));break;case I.LineStudyPlotStyle.Histogram:S.append(new x(f));break;case I.LineStudyPlotStyle.Columns:S.append(new C.PaneRendererColumns(f));break;case I.LineStudyPlotStyle.Cross:if(S.append(new T(f)),y){const e=(0,h.deepCopy)(f);e.lineWidth=1,e.forceLineWidth=!0,S.append(new m.PaneRendererLine(e))}break;case I.LineStudyPlotStyle.Circles:if(S.append(new w(f)),y){const e=(0,h.deepCopy)(f);e.lineWidth=1,e.ignorePaletteLineWidth=!0,S.append(new m.PaneRendererLine(e))}break;case I.LineStudyPlotStyle.StepLine:case I.LineStudyPlotStyle.StepLineWithDiamonds:{f.decoration=n.plottype.value()===I.LineStudyPlotStyle.StepLineWithDiamonds?g.StepLineDecoration.Diamonds:g.StepLineDecoration.None;const e=new g.PaneRendererStepLine;e.setData(f),S.append(e);break}default:S.append(new m.PaneRendererLine(f))}this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&this._selectionData&&S.append(new v.SelectionRenderer(this._selectionData))}_createSelection(e){const t=this._study.priceScale();if(null!==t)if(this._model.selection().isSelected(this._study)){const i=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:u.HitTestResult.REGULAR,barSpacing:this._model.timeScale().barSpacing()};const n=(0,s.ensureNotNull)(this._model.paneForSource(this._study)).height(),o=this._study.offset(this._plotName);for(let s=0;s{"use strict";i.d(t,{createStudyPlotColorProvider:()=>p});var s=i(50993),r=i(88537),n=i(31175);const o=new Map([[0,"color"],[2,"textColor"],[3,"borderColor"],[4,"wickColor"],[5,"colorup"],[6,"colordown"]]);class a{constructor(e){this._plotStyle=e}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return o.forEach((e,t)=>{this._plotStyle[e]&&(i.colors[t]=this._plotStyle[e].value())}),i.lineWidth=this._plotStyle.linewidth?this._plotStyle.linewidth.value():void 0,i.lineStyle=this._plotStyle.linestyle?this._plotStyle.linestyle.value():void 0,i}isColorDefined(){return!0}singleColor(){return!0}getDefaultPlotPointStyle(){return null}}const l=[0,1,2,3,4,5,6];class c{constructor(e,t,i,s){this._palettesColors=new Map,this._defaultPlotColors=new Map,this._indexes=s;const n=t.styles[i];if(n)for(const[e,t]of o)this._defaultPlotColors.set(e,n[t]);const a=(0, -r.ensureDefined)(e.palettes),l=e.plots;s.forEach((e,i)=>{const s=l[e];if(s&&"palette"in s){const e=a[s.palette],r=t.palettes[s.palette];if(e&&r){const{valToIndex:t}=e,{colors:s}=r,n={...s};t&&Object.keys(t).forEach(e=>{const i=t[e];void 0!==i&&(n[e]=s[i])}),this._palettesColors.set(i,n)}}})}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return l.forEach(t=>{var s,n;if(this._palettesColors.has(t)){const n=e[(0,r.ensureDefined)(this._indexes.get(t))+1];if("number"==typeof n){const e=null===(s=this._palettesColors.get(t))||void 0===s?void 0:s[n];0===t&&e&&(i.lineWidth=e.width.value(),i.lineStyle=e.style.value()),i.colors[t]=null==e?void 0:e.color.value()}else i.colors[t]="transparent"}else i.colors[t]=null===(n=this._defaultPlotColors.get(t))||void 0===n?void 0:n.value()}),i}getDefaultPlotPointStyle(){var e;const t=null===(e=this._palettesColors.get(0))||void 0===e?void 0:e[0];if(void 0!==t){return{colors:[t.color.value(),void 0,void 0,void 0,void 0,void 0,void 0],lineStyle:void 0,lineWidth:t.width.value()}}return null}isColorDefined(){return!!this._palettesColors.size}singleColor(){return!1}}var h=i(68906);class d{constructor(e){this._indexes=e}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return this._indexes.forEach((t,s)=>{const r=e[t+1];if(null!=r){const e=(0,h.rgbaFromInteger)(r);i.colors[s]=e}else i.colors[s]="transparent"}),i}isColorDefined(){return!0}singleColor(){return!1}getDefaultPlotPointStyle(){return null}}const u=new Map([[0,function(e,t){const i=(0,s.isColorerPlot)(t)||(0,s.isOhlcColorerPlot)(t);return"target"in t&&t.target===e&&i}],[2,function(e,t){const i=(0,s.isTextColorerPlot)(t);return"target"in t&&t.target===e&&i}],[1,function(e,t){return(0,s.isBgColorerPlot)(t)&&t.id===e}],[3,function(e,t){const i=(0,s.isCandleBorderColorerPlot)(t);return"target"in t&&t.target===e&&i}],[4,function(e,t){const i=(0,s.isCandleWickColorerPlot)(t);return"target"in t&&t.target===e&&i}],[5,function(e,t){const i=(0,s.isUpColorerPlot)(t);return"target"in t&&t.target===e&&i}],[6,function(e,t){const i=(0,s.isDownColorerPlot)(t);return"target"in t&&t.target===e&&i}]]);function p(e,t,i){const{colorers:s}=function(e,t){const i=e.plots,s=i.findIndex(e=>e.id===t),r=new Map;return i.forEach((e,i)=>{u.forEach((s,n)=>{s(t,e)&&r.set(n,i)})}),{plotIndex:-1===s?null:s,colorers:r}}(e,i);if(s.size)return e.isRGB?new d(s):new c(e,t,i,s);{const e=t.ohlcPlots;if(e&&e[i])return new a(e[i]);const s=t.styles[i];return new a(s)}}},50993:(e,t,i)=>{"use strict";var s,r;function n(e){return"line"===e.type}function o(e){return"shapes"===e.type}function a(e){return"chars"===e.type}function l(e){return"arrows"===e.type}function c(e){return"dataoffset"===e.type}function h(e){return"ohlc_open"===e.type}function d(e){return"ohlc_high"===e.type}function u(e){return"ohlc_low"===e.type}function p(e){return"ohlc_close"===e.type}function _(e){return h(e)||d(e)||u(e)||p(e)}function m(e){return"colorer"===e.type}function g(e){return"bar_colorer"===e.type}function f(e){return"bg_colorer"===e.type} -function v(e){return"text_colorer"===e.type}function S(e){return"ohlc_colorer"===e.type}function y(e){return"wick_colorer"===e.type}function b(e){return"border_colorer"===e.type}function w(e){return"up_colorer"===e.type}function C(e){return"down_colorer"===e.type}function P(e){return"alertcondition"===e.type}function T(e){return"Plot"!==e}function x(e){return"ohlc_bars"===e.plottype}function I(e){return"ohlc_candles"===e.plottype}function M(e){return m(e)||g(e)||f(e)||c(e)||S(e)||P(e)||w(e)||C(e)||b(e)||y(e)||v(e)}function L(e){return m(e)||v(e)||g(e)||c(e)||S(e)||y(e)||b(e)||w(e)||C(e)||P(e)}i.r(t),i.d(t,{LineStudyPlotStyle:()=>s,isLinePlot:()=>n,isShapesPlot:()=>o,isCharsPlot:()=>a,isArrowsPlot:()=>l,isDataOffsetPlot:()=>c,isOhlcOpenPlot:()=>h,isOhlcHighPlot:()=>d,isOhlcLowPlot:()=>u,isOhlcClosePlot:()=>p,isOhlcPlot:()=>_,isColorerPlot:()=>m,isBarColorerPlot:()=>g,isBgColorerPlot:()=>f,isTextColorerPlot:()=>v,isOhlcColorerPlot:()=>S,isCandleWickColorerPlot:()=>y,isCandleBorderColorerPlot:()=>b,isUpColorerPlot:()=>w,isDownColorerPlot:()=>C,isAlertConditionPlot:()=>P,isPlotTitleDefined:()=>T,isOhlcPlotStyleBars:()=>x,isOhlcPlotStyleCandles:()=>I,PlotSymbolSize:()=>r,isPlotWithTechnicalValues:()=>M,isNonVisualPlot:()=>L}),function(e){e[e.Line=0]="Line",e[e.Histogram=1]="Histogram",e[e.Cross=3]="Cross",e[e.Area=4]="Area",e[e.Columns=5]="Columns",e[e.Circles=6]="Circles",e[e.LineWithBreaks=7]="LineWithBreaks",e[e.AreaWithBreaks=8]="AreaWithBreaks",e[e.StepLine=9]="StepLine",e[e.StepLineWithDiamonds=10]="StepLineWithDiamonds"}(s||(s={})),function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(r||(r={}))},81851:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createStudy:()=>B,isESDOrRollDatesStudy:()=>k,isESDStudy:()=>A,isFundamentalStudy:()=>L,isFundamentalStudyMetaInfo:()=>D,isRollDatesStudy:()=>E,isStudy:()=>x,isStudyStrategy:()=>I,isStudyStub:()=>M,studyColorRotationMode:()=>N,useSameColorRotationComparator:()=>O});var s=i(67337),r=i(67072),n=i.n(r),o=i(66101),a=i(46319),l=i(9771),c=i(55153),h=i(67509),d=i(25270);const u=s.enabled("hide_main_series_symbol_from_indicator_legend");class p extends o.Study{constructor(e,t,i,s){super(e,t,i,s),this.properties().styles.vol_ma.visible.listeners().subscribe(this,()=>this.invalidateTitleCache())}base(){return 1}destroy(){this.properties().styles.vol_ma.visible.listeners().unsubscribeAll(this),super.destroy()}_titleInputs(){const e={symbolsForDisplay:!0,skipHiddenInputs:!0,fakeInputsForDisplay:!0,asObject:!1,skipOptionalEmptySymbolInputs:u};return this.properties().styles.vol_ma.visible.value()?this.inputs(e):this.inputs({...e,skippedInputs:["length"]})}}var _=i(88537),m=i(52714),g=i.n(m),f=i(2015),v=i.n(f),S=i(37667),y=i(14791);class b extends o.Study{constructor(e,t,i,s){super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(v())(null)),e.hasChild("unitId")||e.addChild("unitId",new(v())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._isActingAsSymbolSource=new(g())(!1), -this._symbolHibernated=new(g())(!1),this._symbolResolvingActive=new(g())(!1),this._realignToolsLastParams=null,this._onIsActingAsSymbolSourceChanged=()=>{this._realignLineToolsIfParamsChanged()},this._recalculateIsActingAsSymbolSource(),this._isActingAsSymbolSource.subscribe(this._onIsActingAsSymbolSourceChanged);const r=this.properties().childs().inputs.childs().symbol;this._previousSymbolInputValue=r.value()}destroy(){this._isActingAsSymbolSource.unsubscribe(this._onIsActingAsSymbolSourceChanged),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}properties(){return this._properties}symbol(){return this._isActingAsSymbolSource.value()?this.properties().childs().inputs.childs().symbol.value():this.symbolSource().symbol()}interval(){return this.model().mainSeries().interval()}style(){return(0,_.ensureNotNull)(this.parentSource().symbolSource()).style()}currency(){return this._isActingAsSymbolSource.value()?this.properties().childs().currencyId.value()||null:this.symbolSource().currency()}unit(){return this._isActingAsSymbolSource.value()?this.properties().childs().unitId.value()||null:this.symbolSource().unit()}setSymbolParams(e){this._setSymbolParamsInternal(e)}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._isActingAsSymbolSource.value())return super.symbolSource().symbolInfo();if(void 0===this._resolvedSymbols)return null;const e=this.symbol(),t=this._getSymbolForResolve(e);return this._resolvedSymbols[t]||null}symbolSource(){return this._isActingAsSymbolSource.value()?this:super.symbolSource()}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,y.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,S.isConvertedToOtherCurrency)(this.symbolInfo())}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,S.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}setInterval(e){}setStyle(e){}symbolTitle(e,t){return this.title(!0,{},!1,e)}measureUnitId(){return(0,S.measureUnitId)(this.symbolInfo())}bars(){return super.data()}_onPropertiesChanged(){this._recalculateIsActingAsSymbolSource(),super._onPropertiesChanged(),this._realignLineToolsIfParamsChanged()}_tryChangeInputs(){var e;const t=this._resolvedSymbolsByInput[this.symbol()]||null;(0,y.symbolSameAsCurrent)(this._previousSymbolInputValue,this.symbol(),t)||this._setSymbolParamsInternal({currency:null,unit:null}),super._tryChangeInputs(),this._formatter=null,null===(e=this.priceScale())||void 0===e||e.updateFormatter(),this._previousSymbolInputValue=this.properties().childs().inputs.childs().symbol.value()}_getSymbolObject(e){const t={symbol:e},i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit() -;return this._model.unitConversionEnabled()&&null!==s&&(t["unit-id"]=s),t}_getSymbolForApi(e){return(0,S.symbolForApi)(this._resolvedSymbolsByInput[e]||null,e)}_onSymbolResolved(e,t,i){super._onSymbolResolved(e,t,i),this._recreatePriceFormattingDependencies();const s=t===this.symbol()?(0,S.extractSymbolNameFromSymbolInfo)(i,this.symbol()):null;null!==s&&(this._previousSymbolInputValue=s);const r=(0,S.symbolCurrency)(i),n=(0,S.symbolUnit)(i,this._model.unitConversionEnabled());this._setSymbolParamsInternal({symbol:null!=s?s:void 0,currency:r,unit:n},i),this._symbolResolvingActive.setValue(!1)}_onSymbolResolvingStart(){super._onSymbolResolvingStart(),this._symbolResolvingActive.setValue(!0)}_onSymbolError(){super._onSymbolError(),this._symbolResolvingActive.setValue(!1)}_onCurrencyMayChange(){this.isActingAsSymbolSource()?super._onCurrencyMayChange():this._onCurrencyChanged()}_recalculateIsActingAsSymbolSource(){var e,t;const i=null!==(t=""!==(null===(e=this._currencySourceSymbolInputProperty)||void 0===e?void 0:e.value()))&&void 0!==t&&t;this._isActingAsSymbolSource.setValue(i)}_setSymbolParamsInternal(e,t){const{symbol:i,currency:s,unit:r}=e,n=this.properties().childs(),o=n.inputs.childs().symbol.value(),a=n.currencyId.value(),l=n.unitId.value();if(void 0!==i&&i!==o&&n.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==a&&n.currencyId.setValueSilently(s),void 0!==r&&r!==l&&n.unitId.setValueSilently(r),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(n.currencyId.setValueSilently((0,S.symbolCurrency)(e)),n.unitId.setValueSilently((0,S.symbolUnit)(e,this._model.unitConversionEnabled())))}n.inputs.childs().symbol.value()!==o&&n.inputs.childs().symbol.listeners().fire(n.inputs.childs().symbol),n.currencyId.value()!==a&&n.currencyId.listeners().fire(n.currencyId),n.unitId.value()!==l&&n.unitId.listeners().fire(n.unitId),this._realignLineToolsIfParamsChanged()}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}var w=i(69927);class C extends o.Study{priceRange(e,t){let i=!1;this.graphics().hhists().forEach((e,t)=>{i=i||this.properties().child("graphics").child("hhists").child(t).child("showValues").value()});const s=function(e,t,i,s){let r=null;return e.forEach((e,s)=>{e.forEach(e=>{e.firstBarTime<=i&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLow{"use strict";i.d(t,{StudyColorRotatorFactory:()=>h});var s=i(45112),r=i(24377),n=i(68906),o=i(81851);const a=["color-sky-blue-400","color-banana-yellow-700","color-deep-blue-500","color-grapes-purple-a700","color-iguana-green-500","color-minty-green-a700","color-ripe-red-a200","color-berry-pink-200","color-tv-blue-a100","color-tan-orange-a200","color-sky-blue-a400","color-deep-blue-a100","color-grapes-purple-400","color-iguana-green-a700","color-minty-green-200","color-ripe-red-200","color-berry-pink-a200","color-ripe-red-500","color-grapes-purple-500","color-deep-blue-400","color-tv-blue-a200","color-sky-blue-500","color-iguana-green-400","color-minty-green-400","color-banana-yellow-600","color-tan-orange-500","color-berry-pink-400","color-ripe-red-300","color-grapes-purple-300","color-deep-blue-300","color-tv-blue-300","color-sky-blue-300","color-iguana-green-300","color-minty-green-300","color-banana-yellow-400","color-tan-orange-300","color-berry-pink-300","color-tan-orange-a700"];class l{constructor(e){this._offset=0,this._offset=e}getColor(e){if(0===this._offset)return e;const t=a[(this._offset-1)%a.length],i=s.colorsPalette[t],o=(0,n.isHexColor)(e)?1:(0,r.parseRgba)(e)[3];return(0,n.generateColor)(i,(0,n.alphaToTransparency)(o))}}class c{constructor(e,t){this._offset=e,this._modelStartOffset=t}getColor(e){if((0,n.isHexColor)(e)){const t=(0,r.parseRgb)(e);return(0,r.rgbToHexString)((0, -r.shiftRgb)(t,this._offset,this._modelStartOffset))}{const t=(0,r.parseRgba)(e);return(0,r.rgbaToString)((0,r.shiftRgba)(t,this._offset,this._modelStartOffset))}}}class h{constructor(e){this._chartModel=e}getColorRotator(e){const t=(0,o.studyColorRotationMode)(e);if(null===t)return null;const i=this._calcDefaultColorsOffset(e);switch(t){case"loop":return new l(i);case"shift":{const e=this._chartModel.getStudyShiftColorStartOffset();return new c(i,e)}}}_calcDefaultColorsOffset(e){let t=0;const i=(0,o.useSameColorRotationComparator)(e);return this._chartModel.dataSources().filter(o.isStudy).forEach(s=>{i(e,s.metaInfo())&&t++}),t}}},27982:(e,t,i)=>{"use strict";i.d(t,{StudyDataSource:()=>_});var s,r=i(88537),n=i(2872),o=i.n(n),a=i(71053),l=i(51344),c=i(72857),h=i(8671),d=i(75871);!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(s||(s={}));const u=(0,i(98125).getLogger)("Chart.StudyDataSource");var p;!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"}(p||(p={}));class _{constructor(e,t,i,r){this._inputs=null,this._status=p.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:s.Undefined},this._studyStatusChanged=new(o()),this._graphics=new d.LiveStudyGraphics,this._dataCleared=new(o()),this._dataUpdated=new(o()),this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=r,this._seriesSource=t,this._turnaroundPrefix=i,this._plots=new a.PlotList((0,h.studyPlotFunctionMap)(r),h.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._dataUpdated.destroy(),this._dataCleared.destroy(),this._studyStatusChanged.destroy()}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:s.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===p.Active&&this._changeStatusTo(p.AwaitingFirstDataUpdate))}isStarted(){return this._status!==p.Idle}isActive(){return this._status===p.Active}start(){this.isStarted()?u.logNormal("start: data source is already started, nothing to do"):((0,r.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(p.AwaitingConnection))}stop(){this.isStarted()?(null!==this._studyId&&(this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:s.Undefined})),this._changeStatusTo(p.Idle)):u.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,r.assert)(this._status===p.Active,"Couldn't steal data from non-active data source"),this.stop();const e=this._plots,t=this._graphics.extract();return this._plots=new a.PlotList((0,h.studyPlotFunctionMap)(this._metaInfo),h.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}_changeStatusTo(e){(0,r.assert)(this._status!==e,"Source and destination status should be distinct"),u.logNormal(`Status changed from ${p[this._status]} to ${p[e]}`),this._status=e}_createStudy(){const e=this._seriesSource.instanceId();null!==e?this._createStudyUsingParentId(e):(this._changeStatusTo(p.AwaitingParent),this._seriesSource.dataEvents().completed().subscribe(this,this._onSeriesCompleted,!0))}_createStudyUsingParentId(e){(0,r.assert)(this._status!==p.Active,'Status should not be "Active" when creating a study'),(0,r.assert)(this._studyStatus.type===s.Undefined,'Study status should be "Undefined" when creating a study'),(0,r.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=(0,c.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,this._metaInfo.fullId+("tv-basicstudies"===this._metaInfo.packageId?"":"!"),(0,r.ensureNotNull)(this._inputs),this._onMessage.bind(this)),this._changeStatusTo(p.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===p.AwaitingConnection&&this._createStudy()}_onGatewayDisconnected(){this._status!==p.Idle&&this._status!==p.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(p.AwaitingConnection),this._studyStatus.type!==s.Undefined&&this._onStudyStatusChangedTo({type:s.Undefined})),this._turnaroundCounter=1}_onSeriesCompleted(){this._status===p.AwaitingParent&&this._createStudyUsingParentId((0,r.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,u.logNormal(`Study status type changed from ${s[t.type]} to ${s[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){const{customId:t,turnaround:i,plots:s,nonseries:n}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(s,(0,r.ensureDefined)(n))}else if("study_loading"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(s)}else if("study_completed"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(s)}else if("study_error"===e.method){const[t,i,s,r,n]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(s,r,n) -}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=(0,l.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!==p.Idle&&(this._status===p.AwaitingFirstDataUpdate&&(this._changeStatusTo(p.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?((0,r.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:s.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData();const r="string"==typeof e?{error:e.split(":",2)[0]}:e;this._onStudyStatusChangedTo({type:s.Error,errorDescription:r})}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:s.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}`}}},26179:(e,t,i)=>{"use strict";i.d(t,{StudyDataWindowView:()=>o});var s=i(14445),r=i(89027),n=i(99682);class o extends s.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t),this._items=this._valueProvider.getItems().map(e=>new s.DataWindowItem(e.title,"")),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}study(){return this._study}_updateImpl(){this._header=this._study.title(!0),this._title=this._study.title();const e=this._valueProvider.getValues(this._currentIndex());for(let t=0;t{"use strict";function s(e){const t=new Map;return e.plots.forEach((e,i)=>{t.set(e.id,e=>e[i+1])}),t}function r(e,t){return null==e[t]}i.d(t,{studyPlotFunctionMap:()=>s,studyEmptyPlotValuePredicate:()=>r})},88145:(e,t,i)=>{"use strict";function s(e,t){return`${e}@${t}`}function r(e){return e.replace(/(@[^-]+-[^-]+).*$/,"$1")}i.d(t,{studyIdString:()=>s,extractStudyId:()=>r})},33266:(e,t,i)=>{"use strict";function s(e){return["text","integer","float","price","session","resolution"].includes(e.type)&&e.hasOwnProperty("options")}function r(e,t,i){for(const s of e)if(t[s.id]!==i[s.id])return!1;return!0}function n(e){ -return("time"===e.type||"price"===e.type)&&!0!==e.isHidden}function o(e){return[]}i.d(t,{isStudyInputOptionsInfo:()=>s,areStudyInputsEqual:()=>r,isTimeOrPriceNotHiddenInput:()=>n,editableStudyInputs:()=>o})},90998:(e,t,i)=>{"use strict";i.d(t,{StudyInserter:()=>a});var s,r=i(67072),n=i.n(r);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.Cancelled="cancelled",e.Unknown="unknown"}(s||(s={}));const o=(0,i(98125).getLogger)("Chart.Studies.StudyInserter");class a{constructor(e,t,i){this._parentSource=void 0,this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._allowChangeUnit=!1,this._paneSize=void 0,this._forceOverlay=!1,this._studyMetaInfoRepository=t,this._inserterImpl=i,this._studyDescriptor=e}setParentSource(e){this._parentSource=e||void 0}setPaneSize(e){this._paneSize=e}setPreferredPriceScale(e){this._preferredPriceScale=e}setAllowChangeCurrency(e){this._allowChangeCurrency=e}setAllowChangeUnit(e){this._allowChangeUnit=e}setForceOverlay(e){this._forceOverlay=e}setPropertiesState(e){this._propsState=e}setTargetPriceScaleMode(e){this._targetPriceScaleMode=e}async insert(e,t){const i=void 0!==(r=this._inserterImpl).createStub&&void 0!==r.removeStub?this._inserterImpl.createStub():null;var r;let n,a=!0;try{n=await this._studyMetaInfoRepository.findById(this._studyDescriptor)}catch(e){return o.logWarn("Cannot get study "+JSON.stringify(this._studyDescriptor)),Promise.reject(s.CannotGetMetainfo)}finally{null!==i&&(a=this._inserterImpl.removeStub(i))}if(!a)return Promise.reject(s.StubWasRemoved);if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);if(!this._canApplyStudyToParent(n))return Promise.reject(s.StudyCannotBeChild);const l={...n.defaults.inputs};let c={};if(void 0!==e){const t=await e(l,n.inputs,n);c=t.inputs,void 0===this._parentSource&&t.parentSource&&(this._parentSource=t.parentSource)}if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);const h=this._insertStudy(n,c);return null===h?Promise.reject(s.Unknown):h}_insertStudy(e,t){return this._inserterImpl.createStudy(e,t,null,this._propsState,this._forceOverlay,this._parentSource,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetPriceScaleMode)}_canApplyStudyToParent(e){return void 0===this._parentSource||n().canBeChild(e)}}},22458:(e,t,i)=>{"use strict";i.d(t,{StudyLegendValuesProvider:()=>n});var s=i(89027),r=i(99682);class n{constructor(e,t){this._study=e,this._model=t,this._showStudyValues=t.properties().childs().paneProperties.childs().legendProperties.childs().showStudyValues,void 0!==e.metaInfo().graphics.hhists?this._valuesProvider=new r.HHistBasedValuesProvider(e,t):this._valuesProvider=new s.StudyValuesProvider(e,t)}getItems(){return this._valuesProvider.getItems()}getValues(e){const t=this._valuesProvider.getValues(e),i=this._study.properties(),s=this._showStudyValues.value()&&i.showLegendValues.value();for(const e of t)e.visible=e.visible&&s;return t}}}, -43181:(e,t,i)=>{"use strict";i.d(t,{StudyMetaInfoRepository:()=>h});var s=i(28353),r=i(88537),n=i(67072),o=i.n(n),a=i(5402),l=i(15625);const c=(0,i(98125).getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"});class h{constructor(e){this._nextRequestNumber=1,this._rawStudiesMetaInfo=[],this._isReady=!1,this._metaInfoQueryQueue=[],this._javaMetaInfoQueryQueue=[],this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._studiesMigrations=[],this._gateway=e}requestMetaInfo(){this._requestStarted();const e=this._makeNextRequestId();return c.logNormal("Requesting metainfo #"+e),new Promise(t=>{c.logNormal("Requesting studies metadata #"+e),this._gateway.requestMetadata(e,i=>{c.logNormal(`Requesting studies metadata #${e} finished`);const s=i.params[1].metainfo.slice();this._processLibraryMetaInfo(s),this._requestFinished(),t()})})}findById(e){if(!this._isReady)return this._enqueueMetaInfoQuery(e);const t=this._findStudyMetaInfo(e);return null!==t?Promise.resolve(t):"pine"===e.type?this._compilePine(e):Promise.reject(`unexpected study id=${e.studyId} with type=${e.type}`)}findByIdSync(e){return this._findStudyMetaInfo(e)}isReady(){return this._isReady}findAllJavaStudies(){return this._isReady?Promise.resolve(this._javaStudiesMetaInfo):this._enqueueJavaMetaInfoQuery()}getInternalMetaInfoArray(){return this._javaStudiesMetaInfo}getMigrations(){return this._studiesMigrations}addPineMetaInfo(e){return u(this._pineMetaInfoCache,e)}_processMigrations(e){throw new Error("not implemented")}_processSiteMetaInfo(e,t){throw new Error("not implemented")}_processLibraryMetaInfo(e){for(const t of e)d(t),u(this._javaStudiesMetaInfo,t);this._javaStudiesMetaInfo=this._javaStudiesMetaInfo.sort((e,t)=>{const i=e.description_localized||e.description,s=t.description_localized||t.description;return i>s?1:i{this._metaInfoQueryQueue.push({studyDescriptor:e,resolver:t})})}_enqueueJavaMetaInfoQuery(){return new Promise(e=>{this._javaMetaInfoQueryQueue.push({resolver:e})})}_processPendingMetaInfoQueries(){for(;this._metaInfoQueryQueue.length;){const e=this._metaInfoQueryQueue.shift();this.findById(e.studyDescriptor).then(e.resolver)}}_processPendingFullMetaInfoQueries(){for(;this._javaMetaInfoQueryQueue.length;){this._javaMetaInfoQueryQueue.shift().resolver(this._javaStudiesMetaInfo)}}_findStudyMetaInfo(e){return"java"===e.type?this._javaStudiesMetaInfo.find(t=>t.id===e.studyId)||null:this._pineMetaInfoCache.find(t=>t.scriptIdPart===e.pineId&&(void 0===e.pineVersion||(0,r.ensureDefined)(t.pine).version===e.pineVersion))||null}_makeNextRequestId(){return"metadata_"+this._nextRequestNumber++}_compilePine(e){throw new Error("unsupported")}}function d(e){ -e.description_localized=(0,s.t)(e.description,{context:"study"})}function u(e,t){const i=new(o())(t);(0,a.migrateMetaInfoAndPropState)(i);let s=!0;const r=e.findIndex(e=>e.id===i.id);if(-1===r)e.push(i);else{const t=e[r],n=void 0!==t.pine?l.Version.parse(t.pine.version):null,o=void 0!==i.pine?l.Version.parse(i.pine.version):null;null===o||null===n||o.isGreaterOrEqual(n)?(t.removeDefaults(),e[r]=i):s=!1}return s&&i.createDefaults(),i}},45090:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProviderBase:()=>c});var s=i(50338),r=i(13933),n=i(28353);const o={NONE:"Default"},a=(0,n.t)("No volume data"),l=new Map;class c extends s.StatusProviderBase{constructor(e,t){super(t),this._source=e}getSplitTitle(){return this._source.titleInParts(!0,o,void 0,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,o,void 0,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,o,void 0,!1)} ${this.sourceStatusText()}`:this._source.title(!0,o,void 0,!1)}sourceStatusText(){return(0,r.convertStudyStatusToString)(this._source.status(),!0)}sourceStatusSolutionId(){const e=this._source.status();if(e.type===r.StudyStatusType.Error)return e.errorDescription.solution_id?e.errorDescription.solution_id:function(e){for(const t of Array.from(l.keys()))if(e.includes(t))return l.get(t)}(e.errorDescription.error)}errorStatus(){if(!this._source.isActualInterval()||this._source.isSymbolInvalid())return null;return this._source.status().type===r.StudyStatusType.Error?{error:this.sourceStatusText(),solutionId:this.sourceStatusSolutionId(),title:this.sourceStatusTitle()}:null}sourceStatusTitle(){const e=this._source.status();if(e.type===r.StudyStatusType.Error)return-1!==e.errorDescription.error.toLowerCase().indexOf("the data vendor doesn't provide volume data for this symbol.")?a:void 0}}},40529:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProvider:()=>n});var s=i(28353),r=(i(13933),i(45090));(0,s.t)("Fundamental studies are no longer available on charts");class n extends r.StudyStatusProviderBase{constructor(e,t){super(e,t),this._study=e}color(){return this._study.isFailed()||this._study.metaInfo&&this._study.metaInfo().isTVScriptStub?"#ff0000":super.color()}sourceStatusText(){this._study.status();return super.sourceStatusText()}}},190:(e,t,i)=>{"use strict";i.d(t,{StudyStatusView:()=>r});var s=i(45058);class r extends s.StatusView{constructor(e){super(e.statusProvider())}color(){return this._statusProvider.color()}getSplitTitle(){return this._statusProvider.getSplitTitle()}update(){this._text=this._statusProvider.text()}}},13933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StudyStatusType:()=>n,convertStudyStatusToString:()=>o});var s=i(28353);const r=(0,s.t)("loading...");var n;function o(e,t){if(e.type===n.Loading)return t?r:"loading...";if(e.type===n.Error){const i=e.errorDescription,r=t?(0,s.t)(i.error):i.error;if(i.ctx){const e={};return Object.entries(i.ctx).forEach(([t,i])=>{e[t]=i.toString()}),r.format(e)}return r}return""}!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading", -e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(n||(n={}))},25270:(e,t,i)=>{"use strict";i.d(t,{StudyStub:()=>m});var s=i(190),r=i(22932),n=i(97098),o=i(2872),a=i.n(o),l=i(2015),c=i.n(l),h=i(45090);class d extends h.StudyStatusProviderBase{text(){return this._source.isActualInterval()?`${this._source.title()} ${this.sourceStatusText()}`:this._source.title()}}var u=i(13933);class p{getItems(){return[]}getValues(e){return[]}}const _=new(a());class m extends r.PriceDataSource{constructor(e,t,i){super(e),this._priceStep=.01,this._status={type:u.StudyStatusType.Undefined},this._statusChanged=new(a()),this._formatter=new n.PriceFormatter(100),this._origState=t,this._title=i;this._properties=new(c())({visible:!0}),this._statusView=new s.StudyStatusView(this)}properties(){return this._properties}statusView(){return this._statusView}legendView(){return null}state(e){return this._origState}setStatus(e){this._status=e,this._statusChanged.fire()}formatter(){return this._formatter}name(){return this._title}title(){return this._title}titleInParts(){return[this._title]}isFailed(){return this._status.type===u.StudyStatusType.Error}isLoading(){return this._status.type===u.StudyStatusType.Loading}setFailed(e){this.setStatus({type:u.StudyStatusType.Error,errorDescription:{error:e}}),this._model.updateSource(this)}isSymbolInvalid(){return!1}isActualInterval(){return!0}onIsActualIntervalChange(){return _}start(){}status(){return this._status}onStatusChanged(){return this._statusChanged}firstValue(){return null}currency(){return null}sessionId(){return this._model.mainSeries().sessionId()}sessionIdChanged(){return this._model.mainSeries().sessionIdChanged()}unit(){return null}symbolSource(){return this._model.mainSeries()}valuesProvider(){return new p}statusProvider(e){return new d(this,this._model.properties().childs().scalesProperties.childs().textColor)}}},89027:(e,t,i)=>{"use strict";i.d(t,{StudyValuesProvider:()=>g});var s=i(93751),r=i(49483),n=i(68906),o=i(67337),a=i(71053),l=i(14291),c=i(85733),h=i(50993),d=i(99220),u=i(88129),p=i(57626);const _=r.CheckMobile.any(),m=o.enabled("hide_last_na_study_output");class g{constructor(e,t){this._emptyValues=[],this._colorProviders=new Map,this._study=e,this._model=t;const i=this._study.metaInfo().plots;i&&i.forEach((e,t)=>{if((0,h.isPlotWithTechnicalValues)(e))return;const i=e.id;this._emptyValues.push(function(e,t="",i=""){return{id:t,index:e,title:i,value:"",visible:!1}}(t,i,this._study.guiPlotName(i)));const s=(0,h.isOhlcPlot)(e)?e.target:i;this._colorProviders.set(s,(0,d.createStudyPlotColorProvider)(this._study.metaInfo(),this._study.properties(),s))})}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));let i=null;const r=this._study.data().lastIndex();if(null!==r)for(const e of t){if(!this._study.properties().styles[e.id].visible.value())continue;const t=this._study.nearestIndex(r,a.PlotRowSearchMode.NearestLeft,e.index+1);if(void 0===t)continue;const s=t+this._study.offset(e.id);i=null!==i?Math.max(s,i):s}(null===e||null!==i&&e>i)&&(e=i) -;const o=this._hideValues(),l=this._study.isVisible()&&!o?p.notAvailable:"";for(const e of t)e.value=l;if(o)return t;m&&t.length&&(t[t.length-1].value="");const c=this._study.priceScale();if(!this._study.isVisible()||null===e||null===c||c.isEmpty()||this._model.timeScale().isEmpty())return t;const d=this._study.metaInfo().plots,_=(0,u.getPriceValueFormatterForSource)(this._study),g={};for(const i of t){let t=i.id;const o=this._study.properties().styles[t].visible.value();if(i.visible=o,!o)continue;const l=i.index,c=e-this._study.offset(t),u=null!==r&&c>r?a.PlotRowSearchMode.NearestLeft:a.PlotRowSearchMode.Exact,p=this._study.nearestIndex(c,u);if(void 0===p)continue;let m=g[t];if(void 0===m&&(m=this._study.getMinFirstBarIndexForPlot(t),Number.isFinite(m)&&(g[t]=m)),m>p)continue;const f=this._study.data().last(),v=this._study.data().valueAt(p)||(null!==f?f.value:null);if(null===v)continue;const S=v[l+1];if(!(0,s.isNumber)(S))continue;const y=S>0;i.value=_(S);const b=this._study.properties().styles[t];let w=b.color.value();const C=d[l];(0,h.isOhlcPlot)(C)?(t=C.target||t,w=this._study.properties().ohlcPlots[t].color.value()):(0,h.isArrowsPlot)(C)&&(w=y?b.colorup.value():b.colordown.value());let P=w;const T=this._colorProviders.get(t),x=T&&T.getPlotPointStyle(v);x&&((0,h.isArrowsPlot)(C)?(y&&void 0!==x.colors[5]&&(P=x.colors[5]),y||void 0===x.colors[6]||(P=x.colors[6])):void 0!==x.colors[0]&&(P=x.colors[0])),"transparent"===P&&(P=w),P=(0,n.resetTransparency)(P),i.color=P}return t}_hideValues(){return _&&(null===this._model.crossHairSource().pane||(0,l.isLineToolName)(c.tool.value())||null!==this._model.lineBeingEdited())}}},69774:(e,t,i)=>{"use strict";i.d(t,{StudyBase:()=>gt});var s=i(16230),r=i(88537),n=i(28353),o=i(98125),a=i(49483),l=i(2872),c=i.n(l),h=i(51344),d=i(22932),u=i(69927),p=i(71053),_=i(67072),m=i.n(_),g=i(54376),f=i(95936),v=i(26179),S=i(22458);class y extends v.StudyDataWindowView{constructor(e,t){super(e,t),this._showStudyValues=t.properties().childs().paneProperties.childs().legendProperties.childs().showStudyValues,this._showStudyValues.subscribe(this,this.update),this._study.properties().showLegendValues.subscribe(this,this.update)}areValuesVisible(){return this._showStudyValues.value()}additional(){return null}destroy(){this._showStudyValues.unsubscribeAll(this),this._study.properties().showLegendValues.unsubscribeAll(this)}_createValuesProvider(e,t){return new S.StudyLegendValuesProvider(e,t)}}var b=i(85733),w=i(190),C=i(19234),P=i(72857),T=i(95836),x=i(40529),I=i(80643),M=i(95505),L=i(50993),A=(i(33266),i(67337)),E=i(86441),k=i(68906),D=i(94804);class V{constructor(e){this._data=e}draw(e,t){}drawBackground(e,t){e.save();const i=this._data,s=t.pixelRatio;let r=null;const n=Math.round(this._data.w*s);for(let t=0;t0){i.items[t-1].index===o.index-1&&null!==r&&(l=r+1)}const c=a+n,h=c-l+1;e.fillRect(l,Math.round(i.y*s),h,Math.round(i.h*s)),r=c}e.restore()}hitTest(e){ -return null}}var B=i(99220);class N{constructor(e,t,i,s){this._items=[],this._invalidated=!0,this._isMarkersEnabled=A.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=s;const n=this._study.metaInfo().plots;for(let e=0;e0?(i-=n,s+=n):(i+=n,s-=n);const o=this._study.getMinFirstBarIndexForPlot(this._plotName);if(o>s)return;i=Math.max(o,i);const a=this._study.data().rangeIterator(i,s);for(;a.hasNext();){const e=a.next();let i=e.index;const s=e.value;i+=n;const o=new E.Point(Math.floor(i)-.5,NaN);let l=(0,I.isNumber)(t)?t:50;l=Math.min(l,100),l=Math.max(l,0);const c=this._colorProvider.getPlotPointStyle(s);void 0!==c.colors[1]&&(o.color=(0,k.generateColor)((0,r.ensureDefined)(c.colors[1]),l)),o.index=i,this._items.push(o)}this._model.timeScale().timedValuesToCoordinates(this._items)}}var R,O,F=i(11372),W=i(41892),H=i(56138),z=i(64514),U=i(84346),j=i(85847),G=i(63948),q=i(31175),Y=i(34026),K=i(40236),$=i(52640),X=i(93435);!function(e){e.Left="left",e.Right="right",e.Center="center"}(R||(R={})),function(e){e.Top="top",e.Bottom="bottom",e.Middle="middle"}(O||(O={}));const Z=(0,X.createDisconnectedCanvas)(document,new X.Size(0,0),1);class J{constructor(e,t,i,s,n,o="center",a=0){this._lines=e.split(/[^\S\r\n]*(?:\r\n|\r|\n)/),this._font=function(e,t,i,s){return(0,$.makeFont)(s,i,`${e?"bold ":""}${t?"italic ":""}`)}(t,i,s,n),this._fontSize=n,this._verticalPadding=~~(n/6),this._textAlign=o,this._lineSpacing=a;const l=(0,r.ensureNotNull)(Z.getContext("2d"));l.font=this._font,l.textBaseline="top";let c=0;for(let e=0;e{for(const t of this._lines)e.fillText(t,l,c),c+=this._fontSize,c+=this._lineSpacing}),e.restore()}}class Q extends K.AbstractMapContainer{constructor(e){super(),this._maxSize=e,this._keysQueue=[]}get(e){const{fontSize:t,text:i,align:s,lineSpacing:r=0}=e;if(!i||!t||!s)return null;const n=(0,K.getDefault3)(this._map,r,s,t,new Map);let o=n.get(i);return void 0!==o||(this._size>=this._maxSize?this._deleteFirstKey():++this._size,this._keysQueue.push([t,s,r,i]),o=new J(i,e.bold,e.italic,e.font,t,s,r),n.set(i,o)),o}_deleteFirstKey(){const e=this._keysQueue.shift(),[t,i,s,n]=e,o=(0,r.ensureDefined)(this._map.get(s)),a=(0,r.ensureDefined)(o.get(i)),l=(0,r.ensureDefined)(a.get(t));l.delete(n),0===l.size&&a.delete(t),0===a.size&&o.delete(i),0===o.size&&this._map.delete(s)}}var ee=i(22799);class te{constructor(e,t={skipRenderingOptimizations:!1}){this._items=[],this._barSpacing=0,this._vertOffset=0,this._textCache=t.textCache||new Q(5e3),this._drawOperation=t.skipRenderingOptimizations?this._drawWithoutOptimizations.bind(this):this._drawWithOptimizations.bind(this),null!==e&&this.setData(e)}draw(e,t){this._preDrawInit(),this._drawOperation(e,t)}hitTest(e){const t=U.HitTestResult.REGULAR;let i=null;for(const s of this._items){if(!s)continue;const r=this._calcBoundingBox(s);if(r&&(0,Y.pointInBox)(e,r)){const e={tooltip:this._getTooltip(s,r)};i=new U.HitTestResult(t,e)}}return i}setData(e){this._height=void 0!==e.height?e.height:e.width,this._width=void 0!==e.width?e.width:e.height,this._color=e.color,this._borderColor=e.borderColor,this._vertOffset=e.vertOffset||0,e.text&&(this._text=e.text,this._fontSize=e.fontSize,this._lineSpacing=e.lineSpacing,this._textColor=e.textColor,this._textAlign=e.textAlign||"center"),void 0!==e.items&&void 0!==e.barSpacing&&this.setItems(e.items,e.barSpacing)}setItems(e,t){this._setBaseData(e,t)}_calcBoundingBox(e){const t=e.vertOffset,i=this._getTextCache(e);if(!i)return;const s=i.textImageWidth,r=i.textImageHeight,n=s/2,o=e.y+t+e.textVertOffset,a=t>0?0:-r,l=t>0?r:0,c=new E.Point(e.x-n,o+a),h=new E.Point(e.x+n,o+l);return(0,E.box)(c,h)}_unionBox(e,t){ -const i=Math.min(e.min.x,t.min.x),s=Math.max(e.max.x,t.max.x),r=Math.min(e.min.y,t.min.y),n=Math.max(e.max.y,t.max.y),o=new E.Point(i,r),a=new E.Point(s,n);return(0,E.box)(o,a)}_getTooltip(e,t){if(e.tooltip)return{content:{type:"text",data:e.tooltip},tooltipDelay:200,extendMargin:!0,rect:{x:t.min.x,y:t.min.y,w:Math.abs(t.max.x-t.min.x),h:Math.abs(t.max.y-t.min.y)}}}_setBaseData(e,t){this._items.length=0,this._barSpacing=t;for(const t of e){const e=void 0===t.width?(0,r.ensureDefined)(this._width):t.width,i=void 0===t.height?(0,r.ensureDefined)(this._height):t.height,s=void 0===t.vertOffset?this._vertOffset:t.vertOffset,n=s>0?i:-i;this._items.push({width:e,height:i,vertOffset:s,textVertOffset:n,shapeWidth:0,shapeHeight:0,stepX:0,stepY:0,...t})}}_drawItemText(e,t,i){const s=this._getTextCache(i);if(null===s)return;const r=i.x,n=i.vertOffset,o=i.y+n+i.textVertOffset;let a;a=i.style&&void 0!==i.style.textColor?i.style.textColor:this._textColor,s.paintTo(e,t,a,r,o,R.Center,n>0?O.Top:O.Bottom)}_drawWithOptimizations(e,t){let i,s,r=null,n=!1;for(const o of this._items)o.style&&void 0!==o.style.color?(i=o.style.color||"rgba(0, 0, 0, 0)",s=o.style.borderColor||"rgba(0, 0, 0, 0)"):(i=this._color,s=this._borderColor),(r!==i||a.isSafari)&&(r=i,n&&this._endPath(e),this._startPath(e,t,i,s)),this._drawItemShape(e,t,o),n=!0;n&&this._endPath(e);for(const i of this._items)this._drawItemText(e,t,i)}_drawWithoutOptimizations(e,t){let i,s;for(const n of this._items){const o=(0,r.ensureDefined)(n.style);i=o.color||"rgba(0, 0, 0, 0)",s=o.borderColor||"rgba(0, 0, 0, 0)",this._startPath(e,t,i,s),this._drawItemShape(e,t,n),this._endPath(e),this._drawItemText(e,t,n)}}_drawItemShape(e,t,i){(0,X.drawScaled)(e,t.pixelRatio,()=>this._drawItemShapeUsingCSSPixels(e,i))}_drawItemShapeUsingCSSPixels(e,t){}_preDrawInit(){}_startPath(e,t,i,s){}_endPath(e){}_getTextCache(e){var t;const i=e.text||this._text,s=e.fontSize||this._fontSize,r=null!==(t=e.lineSpacing)&&void 0!==t?t:this._lineSpacing,n=e.textAlign||this._textAlign;return this._textCache.get({text:i,bold:!1,italic:!1,font:ee.CHART_FONT_FAMILY,fontSize:s,lineSpacing:r,align:n})}}class ie extends te{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.strokeStyle=i}_endPath(e){e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(2*e.pixelRatio))}}class se extends te{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.fillStyle=i,e.strokeStyle=s}_endPath(e){e.fill(),e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(e.pixelRatio))}}class re extends se{constructor(){super(...arguments),this._sign=0,this._thinArrow=!1,this._thinArrowLineWidth=0,this._headHeight=0,this._arrowWidth=0}setItems(e,t){this._setBaseData(e,t)}_drawItemShape(e,t,i){const s=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,n=this._sign,o=this._arrowWidth,a=this._headHeight,l=Math.abs(i.height),c=Math.round(i.x*s)+r,h=i.vertOffset,d=Math.round((i.y+h+n*l/2)*s)+r,u=(0,z.ceiledEven)(o*s),p=u/2,_=Math.round(l*s),m=Math.round(a*s);e.translate(c,d), -this._thinArrow?(e.moveTo(0,0),e.lineTo(-p,-p*n),e.moveTo(0,0),e.lineTo(p,-p*n),e.moveTo(0,0),e.lineTo(0,-_*n),e.moveTo(-p,-_*n),e.lineTo(p,-_*n)):(e.moveTo(0,0),_=0?e.vertOffset:e.vertOffset-e.shapeHeight}}),he.set("PaneRendererLabelDown",class extends oe{_calcBoundingBox(e){const t=e.x-e.shapeWidth/2,i=e.x+e.shapeWidth/2,s=e.y-e.shapeHeight+e.vertOffset,r=e.y+e.vertOffset,n=new E.Point(t,s),o=new E.Point(i,r);return(0,E.box)(n,o)}_drawItemShape(e,t,i){const s=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,n=Math.max(1,Math.floor(s))%2?.5:0,o=this._getArrowSize(i);let a=Math.round(o*s);(n+a)%1!=r%1&&(a+=.5);let l=Math.round(i.shapeWidth/2*s);(n+l)%1!=r%1&&(l+=.5);const c=Math.round(i.x*s)+n,h=Math.round((i.y+i.vertOffset)*s)+r,d=c+a,u=Math.round((i.y+i.vertOffset-o)*s)+r,p=c-a,_=c+l,m=Math.round((i.y+i.vertOffset-i.shapeHeight)*s)+r,g=c-l;e.moveTo(d,u),e.lineTo(c,h),e.lineTo(p,u),i.shapeWidth<=2*o?(e.lineTo(g,u),this._drawCorner(e,g,m,le.leftUp,s),this._drawCorner(e,_,m,le.rightUp,s),e.lineTo(_,u)):(this._drawCorner(e,g,u,le.leftDown,s),this._drawCorner(e,g,m,le.leftUp,s),this._drawCorner(e,_,m,le.rightUp,s),this._drawCorner(e,_,u,le.rightDown,s)),e.lineTo(d,u)}_getVerticalTextOffset(e){return-e.shapeHeight/2-this._getArrowSize(e)/2}_calcVertOffset(e){return Math.sign(e.vertOffset)<=0?e.vertOffset:e.vertOffset+e.shapeHeight}}),he.set("PaneRendererSquare",class extends se{_drawItemShape(e,t,i){const s=t.pixelRatio,r=Math.max(1,Math.floor(s))%2?.5:0,n=this._lineWidth(t)%2?.5:0;let o=Math.round(i.height/2*s);(r+o)%1!=n%1&&(o+=.5);const a=Math.round(i.x*s)+r,l=Math.round((i.y+i.vertOffset)*s)+r,c=a-o,h=l-o,d=a+o,u=l+o;e.rect(c,h,d-c,u-h)}_calcBoundingBox(e){const t=e.height,i=Math.round(t/2),s=e.x-i,r=e.vertOffset,n=e.y+r-i,o=s,a=s+t,l=n,c=n+t,h=new E.Point(o,l),d=new E.Point(a,c);let u=(0,E.box)(h,d);const p=super._calcBoundingBox(e);return p&&(u=this._unionBox(u,p)),u}}),he.set("PaneRendererTriangleApexUp",class extends ce{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-2*n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let d=Math.round(s*a);d%2!=c%2&&(d+=1);const u=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a),_=u+d/2,m=Math.round((i.y+o+r)*a)+l,g=u-d/2;e.moveTo(u,p),e.lineTo(_,m),e.lineTo(g,m),e.lineTo(u,p)}}),he.set("PaneRendererTriangleApexDown",class extends ce{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let d=Math.round(s*a);d%2!=c%2&&(d+=1);const u=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a)+l,_=u+d/2,m=Math.round((i.y+o+r)*a),g=u-d/2;e.moveTo(g,p),e.lineTo(_,p),e.lineTo(u,m),e.lineTo(g,p)}}),he.set("PaneRendererXCross",class extends ie{_drawItemShapeUsingCSSPixels(e,t){const i=t.width,s=t.height,r=t.x-i/2,n=t.vertOffset,o=t.y-s/2+n;e.moveTo(r,o),e.lineTo(r+i,o+s),e.moveTo(r,o+s),e.lineTo(r+i,o)}_calcBoundingBox(e){const t=e.width,i=e.height,s=e.x-t/2,r=e.vertOffset,n=e.y-i/2+r,o=s,a=s+t,l=n,c=n+i,h=new E.Point(o,l),d=new E.Point(a,c);let u=(0,E.box)(h,d);const p=super._calcBoundingBox(e) -;return p&&(u=this._unionBox(u,p)),u}});class de{constructor(e,t,i,s){this._items=[],this._invalidated=!1,this._renderer=null,this._isMarkersEnabled=A.enabled("source_selection_markers"),this._selectionData=null,this._plotIndex=null,this._topCoord=0,this._bottomCoord=0,this._study=e,this._series=t,this._model=i,this._plotName=s;const r=e.metaInfo().plots;for(let e=0;e0?(s-=o,n+=o):(s+=o,n-=o);const a=this._study.getMinFirstBarIndexForPlot(this._plotName);if(a>n)return;s=Math.max(a,s);const l=this._study.data(),c=this._study.firstValue();if(null===c)return;const h=l.rangeIterator(s,n),d=this._getTranspValue();let u=[];const _=this._model.selection().isSelected(this._study);_?(u=this._selectionIndexer.indexes(),this._selectionData={points:[],hittestResult:U.HitTestResult.REGULAR,vertOffset:0,bgColors:[],barSpacing:e.barSpacing(),visible:!0}):(this._selectionIndexer.clear(),this._selectionData=null);const m=this._series.properties().childs().style.value(),g=2===m?"lineStyle":3===m?"areaStyle":null;let f,v;g?(f=this._series.properties().childs()[g].childs().priceSource.value(),v=f):(f="high",v="low");const S=t.isInverted(),y=t.coordinateToPrice(t.height()*t.topMargin(),c),b=t.coordinateToPrice(t.height()*(1-t.bottomMargin()),c);this._topCoord=S?b:y,this._bottomCoord=S?y:b;const w=(0,r.ensureNotNull)(this._model.paneForSource(this._study)).height(),C=this._study.properties().styles[this._plotName],P=C.color.value(),T=C.textColor?C.textColor.value():void 0,x=P,I=P,M=void 0===T?void 0:T,L=(0,r.ensureNotNull)(this._plotIndex),A=(0,q.createEmptyStyle)();for(;h.hasNext();){const e=h.next(),t=e.index,i=e.value,s=Math.floor(t+o),r=i[L+1];if(null==r)continue;const n=this._createItem(s,r,f,v);if(null!==n){if(this._colorProvider.isColorDefined()){n.style={color:x,borderColor:I,textColor:M};const e=this._colorProvider.getPlotPointStyle(i,A);this._fillItemWithPointStyle(n,e,d)} -_&&-1!==u.indexOf(t)&&null!==this._selectionData&&(this._selectionData.points.push(n),this._selectionData.bgColors.push(this._model.backgroundColorAtYPercentFromTop(n.y/w))),this._items.push(n)}}this._convertItemsToCoordinates()}_fillItemWithPointStyle(e,t,i){const s=(0,r.ensureDefined)(e.style);if(void 0!==t.colors[0]){s.color=(0,k.generateColor)((0,r.ensureDefined)(t.colors[0]),i);const e=i>9?i-10:0;s.borderColor=(0,k.generateColor)(s.color,e)}void 0!==t.colors[2]&&(s.textColor=(0,k.generateColor)((0,r.ensureDefined)(t.colors[2]),i))}_updateRenderer(e){this._updateImpl();const t=this._model.timeScale(),i={},s=this._getTranspValue(),r=t.barSpacing(),n=this._calculateShapeHeight(r),o=this._study.properties().styles[this._plotName].location.value(),a=this._calculateVerticalOffset(o,n+n/2);i.barSpacing=r,i.items=this._items,i.color=(0,k.generateColor)(this._study.properties().styles[this._plotName].color.value(),s),i.height=n,i.vertOffset=a;const l=this._study.properties().styles[this._plotName].plottype.value(),c=H.plotShapesData[l],h=new D.CompositeRenderer;c&&h.append(this._createRenderer(c.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=a,h.append(new W.SelectionRenderer(this._selectionData))),this._renderer=h}_createRenderer(e,t){const i=he.get(e);return new((0,r.ensureDefined)(i))(t)}_getSeriesVal(e,t){const i=(0,G.barFunction)(e),s=this._series.data().valueAt(t);return null===s?null:i(s)}_getTranspValue(){let e=0;this._study.properties().transparency&&(e=this._study.properties().transparency.value(),e=(0,I.isNumber)(e)?e:50);const t=this._study.properties().styles[this._plotName];return t.transparency&&(e=t.transparency.value(),e=(0,I.isNumber)(e)?e:50),(0,z.clamp)(e,0,100)}_createItem(e,t,i,s){const n=this._study.properties().styles[this._plotName].location.value();if((null===t||0===t)&&n!==f.MarkLocation.Absolute)return null;let o;switch(n){case f.MarkLocation.AboveBar:const a=this._getSeriesVal(i,e);if(null===a)return null;o=a;break;case f.MarkLocation.BelowBar:const l=this._getSeriesVal(s,e);if(null===l)return null;o=l;break;case f.MarkLocation.Top:o=this._topCoord;break;case f.MarkLocation.Bottom:o=this._bottomCoord;break;case f.MarkLocation.Absolute:o=(0,r.ensureNotNull)(t);break;default:throw new Error("Bad value: "+n)}return new E.Point(e,o)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=this._study.priceScale();e.timedValuesToCoordinates(this._items);const i=(0,r.ensureNotNull)(this._study.firstValue());(0,r.ensureNotNull)(t).pointsArrayToCoordinates(this._items,i)}_calculateVerticalOffset(e,t){let i=0;switch(e){case f.MarkLocation.AboveBar:case f.MarkLocation.Bottom:i=-t;break;case f.MarkLocation.BelowBar:case f.MarkLocation.Top:i=t}return(0,r.ensureNotNull)(this._study.priceScale()).isInverted()&&(i*=-1),i}_calculateShapeHeight(e,t){let i=e;switch(t){case L.PlotSymbolSize.Tiny:i=.3*e;break;case L.PlotSymbolSize.Small:i=.6*e;break;case L.PlotSymbolSize.Normal:i=e;break -;case L.PlotSymbolSize.Large:i=1.5*e;break;case L.PlotSymbolSize.Huge:i=2*e}return i}}class ue extends de{renderer(){const e=this._study.properties().styles[this._plotName];return e.visible&&e.visible.value()&&this._scalesReady()?(this._invalidated&&(this._updateRenderer(e),this._invalidated=!1),this._renderer):null}_updateRenderer(e){this._updateImpl();const t=this._model.timeScale(),i={},s=this._getTranspValue(),r=t.barSpacing();let n;if(e.size){const t=e.size.value();n=this._calculateShapeHeight(25,t)}else n=Math.round(r/2);n=Math.max(n,1);const o=e.location.value(),a=(0,k.generateColor)(e.color.value(),s),l=s>19?s-10:0,c=this._calculateVerticalOffset(o,Math.round(1.5*n));i.barSpacing=r,i.items=this.items(),i.color=a,i.borderColor=(0,k.generateColor)(e.color.value(),l),i.height=n,i.vertOffset=c;const h=e.plottype.value(),d=H.plotShapesData[h],u=new D.CompositeRenderer,p=e.text?e.text.value():void 0;if(void 0!==p&&""!==p.trim()){let t=p.trim().replace(/\\n/gm,"\n");t=(0,F.cleanButAmpersand)(t,!0),i.text=t,i.fontSize=12;const r=e.textColor?e.textColor.value():void 0;i.textColor=r?(0,k.generateColor)(r,s):a}u.append(super._createRenderer(d.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=c,u.append(new W.SelectionRenderer(this._selectionData))),this._renderer=u}}var pe=i(87795),_e=i.n(pe),me=i(49094);class ge extends te{constructor(e,t){super(null,t),this._fontSizeEnsured=0,this._ch="",this._fontFamily=ee.CHART_FONT_FAMILY,this._charCache=null,null!==e&&this.setData(e)}setData(e){super.setData(e),this._fontSizeEnsured=(0,r.ensureDefined)(this._height);const t=e.char.slice(0,40);this._ch=_e()(t)[0]||" ",this._fontFamily=e.fontFamily||ee.CHART_FONT_FAMILY}hitTest(e){const t=(0,me.interactionTolerance)().series+this._fontSizeEnsured/2;for(const i of this._items){if(new E.Point(i.x,i.y+i.vertOffset).subtract(e).length()<=t)return new U.HitTestResult(U.HitTestResult.REGULAR)}return null}_drawItemShape(e,t,i){const s=i.x,r=i.vertOffset>0?1:-1,n=i.y+i.vertOffset-r*Math.round(this._fontSizeEnsured/2);let o;o=i.style&&void 0!==i.style.color?i.style.color:this._color;const a=this._textImageCache(),l=t.pixelRatio;if(this._fontSizeEnsured<=4/l){e.save();const t=Math.max(1,Math.floor(l));let r=Math.max(1,Math.floor(a.textImageWidth*l));r%2!=t%2&&(r+=r>1?-1:1);const c=Math.round(n*l)+(i.vertOffset>=0?0:-r);return e.fillStyle=o,e.fillRect(Math.round(s*l)+(l%2?.5:0)-r/2,c,r,r),void e.restore()}a.paintTo(e,t,o,s,n,R.Center,i.vertOffset>0?O.Top:O.Bottom)}_startPath(e,t,i,s){}_endPath(e){}_textImageCache(){return null!==this._charCache&&this._charCache.fontFamily===this._fontFamily&&this._charCache.fontSize===this._fontSizeEnsured||(this._charCache={fontSize:this._fontSizeEnsured,fontFamily:this._fontFamily,cache:new J(this._ch,!1,!1,this._fontFamily,this._fontSizeEnsured,"center",0)}),this._charCache.cache}}class fe extends de{constructor(){super(...arguments),this._compositeRenderer=new D.CompositeRenderer, -this._charRenderer=new ge(null)}renderer(){const e=this._study.properties().styles[this._plotName];return e.visible&&e.visible.value()&&this._scalesReady()?(this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._compositeRenderer):null}_updateImpl(){if(this._compositeRenderer.clear(),super._updateImpl(),0===this._items.length)return;const e=this._getTranspValue(),t=this._model.timeScale().barSpacing();let i;const s=this._study.properties().styles[this._plotName];if(s.size){const e=s.size.value();i=this._calculateShapeHeight(50,e)}else i=Math.round(t);const r=s.location.value(),n=(0,k.generateColor)(s.color.value(),e),o=this._calculateVerticalOffset(r,i),a={items:this.items(),barSpacing:t,char:s.char.value(),height:i,vertOffset:o,color:n},l=s.text?s.text.value():void 0;if(void 0!==l&&""!==l.trim()){let t=l.trim().replace(/\\n/gm,"\n");t=(0,F.cleanButAmpersand)(t,!0),a.text=t,a.fontSize=12;const i=s.textColor?s.textColor.value():void 0;a.textColor=i?(0,k.generateColor)(i,e):n}this._charRenderer.setData(a),this._compositeRenderer.append(this._charRenderer),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=o,this._compositeRenderer.append(new W.SelectionRenderer(this._selectionData)))}}var ve=i(24377);class Se extends E.Point{constructor(e,t,i,s){super(e,t),this.height=i,this.isUp=s,this.style={}}}function ye(e){return Math.round(e/4)}function be(e){return Math.round(e/2)}class we{constructor(e){this._data=e}draw(e,t){var i;const s=t.pixelRatio,r=this._data,n=be(r.barSpacing),o=ye(r.barSpacing),a=n<4,l=Math.max(n/2,1),c=(0,z.ceiledEven)(n*s),h=c/2,d=Math.round(n*s);e.lineCap="butt",e.lineWidth=Math.max(1,Math.floor(s));const u=e.lineWidth%2?.5:0;for(const t of r.items){const n=t.isUp?-1:1,p=Math.round(Math.abs(t.height)*s),_=Math.round(t.x*s)+u,m=Math.round((t.y-n*o)*s)+u;e.beginPath(),e.translate(_,m);const g=null!==(i=t.style&&t.style.color)&&void 0!==i?i:t.isUp?r.colorup:r.colordown;a?(e.moveTo(0,0),e.lineTo(-h,-h*n),e.moveTo(0,0),e.lineTo(h,-h*n),e.moveTo(0,0),e.lineTo(0,-p*n),e.moveTo(-h,-p*n),e.lineTo(h,-p*n),e.lineWidth=l,e.strokeStyle=g,e.stroke()):(e.moveTo(0,0),pthis._maxAbsValue&&(this._maxAbsValue=Math.abs(t));const r=t>0;let n;if(r){const t=this._getSeriesVal(s,e);if(null===t)return null;n=t}else{const t=this._getSeriesVal(i,e);if(null===t)return null;n=t}return new Se(e,n,t,r)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=(0,r.ensureNotNull)(this._study.priceScale());e.timedValuesToCoordinates(this._items),t.pointsArrayToCoordinates(this._items,(0,r.ensureNotNull)(this._study.firstValue()));let i=Math.abs(this._study.properties().styles[this._plotName].minHeight.value()),s=Math.abs(this._study.properties().styles[this._plotName].maxHeight.value());if(i>s){const e=i;i=s,s=e}const n=(s-i)/this._maxAbsValue,o=this._items;for(let e=0;es)return;i=Math.max(n,i);const o=this._study.data(),a=this._study.firstValue();if(null===a)return;const l=o.rangeIterator(i,s),c=this._study.properties().ohlcPlots[this._plotName],h=new Map,d=(e,t)=>{const i=e+"@"+t;if(!h.has(i)){const s=(0,k.generateColor)(e,t);return h.set(i,s),s}return h.get(i)},u=(0,q.createEmptyStyle)();for(;l.hasNext();){const e=l.next();let t=e.index;const i=e.value;t=Math.floor(t);let s=!0;const n=new Map;for(let e=1;e<=4;++e){const t=this._ohlcPlotIndexes.get(e);if(void 0===t){s=!1;break}const r=i[t+1];if(null==r){s=!1;break}n.set(e,r)}if(!s)continue;const o=(0,r.ensureDefined)(n.get(1)),a=(0,r.ensureDefined)(n.get(4)),h=(0,r.ensureDefined)(n.get(2)),p=(0,r.ensureDefined)(n.get(3)),_=Math.max(o,h,p,a),m=Math.min(o,h,p,a);let g=(0,r.ensureDefined)(d(c.color.value(),0));const f=this._colorProvider.getPlotPointStyle(i,u);void 0!==f.colors[0]&&(g=(0,r.ensureDefined)(f.colors[0]));const v={time:Math.round(t),exactTime:t,open:o,high:_,low:m,close:a,color:g,wickColor:f.colors[4],borderColor:f.colors[3],hollow:null};this._bars.push(v)}if(e.barPricesToCoordinates(this._bars,a),this._model.timeScale().barIndexesToCoordinates(this._bars),this._model.selection().isSelected(this._study)){const t=this._selectionIndexer.indexes();this._selectionData={points:[],hittestResult:U.HitTestResult.REGULAR,bgColors:[],visible:!0,barSpacing:this._model.timeScale().barSpacing()};const i=(0,r.ensureNotNull)(this._model.paneForSource(this._study)).height(),s=(0,r.ensureDefined)(this._ohlcPlotIndexes.get(4));for(let r=0;rthis._actualLength?this._items[this._actualLength]:null;return null!==e&&Boolean(e.invalidateCache)&&e.invalidateCache(),e}invalidateCache(){this._invalidations+=1,3e3===this._invalidations&&(this._items.splice(this._actualLength),this._invalidations=0),this._actualLength=0}at(e){return this._items[e]}data(){return this._items}length(){return this._actualLength}}class Re{constructor(){this._map=new Map,this._usedKeys=new Set,this._invalidations=0}invalidateCache(){this._invalidations+=1,50===this._invalidations&&(this._deleteUnused(),this._invalidations=0),this._usedKeys.clear(),this._map.forEach((e,t)=>e.invalidateCache())}get(e){const t=this._map.get(e);return void 0!==t&&this._usedKeys.add(e),t}set(e,t){this._usedKeys.add(e),this._map.set(e,t)}forEach(e){this._map.forEach((t,i)=>{this._usedKeys.has(i)&&e(t,i)})}delete(e){const t=this._map.get(e);void 0!==t&&t.invalidateCache(),this._usedKeys.delete(e)}_deleteUnused(){const e=[];this._map.forEach((t,i)=>{this._usedKeys.has(i)||e.push(i)});for(const t of e)this._map.delete(t)}}class Oe extends Ne{constructor(){super(), -this.points1=new Ne,this.points2=new Ne,this.push(this.points1),this.push(this.points2)}addPoints1Point(e,t){let i=this.points1.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points1.push(i)}addPoints2Point(e,t){let i=this.points2.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points2.push(i)}invalidateCache(){this.points1.invalidateCache(),this.points2.invalidateCache()}}class Fe extends Be.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e,t){return null}_drawImpl(e,t){if(null===this._data)return;const i=.25*this._data.barSpacing,s=this._data.transparency;this._data.colorAreas.forEach((t,r)=>{e.beginPath();for(let s=0;s=0;t--)e.lineTo(r.points2.at(t).x,r.points2.at(t).y)}else{const t=r.points2.at(0).x,s=r.points2.at(0).y;e.lineTo(n+i,o),e.lineTo(t+i,s),e.lineTo(t-i,s),e.lineTo(n-i,o)}}e.closePath(),e.fillStyle=(0,k.generateColor)(r,s),e.fill()})}}var We=i(81688);class He extends Ne{constructor(){super(...arguments),this._startIndex=0}setStartIndex(e){this._startIndex=e}at(e){const t=e-this._startIndex;for(;t>=this._actualLength;){if(this._items.length<=t)this._items.push({plot1Value:void 0,plot2Value:void 0,colorIndex:void 0});else{const e=this._items[this._actualLength];e.plot1Value=void 0,e.plot2Value=void 0,e.colorIndex=void 0}this._actualLength+=1}return this._items[t]}}class ze{constructor(e,t,i=!1){this._isHlineFill=!1,this._bandAKey=null,this._bandBKey=null,this._colorPlotIndex=null,this._colorValues=[],this._colors=new Ne,this._areaRenderer=new Fe,this._invalidated=!0,this._plIndex1=null,this._plIndex2=null,this._level1=0,this._level2=0,this._studyValuesCache=new He,this._points1=new Ne,this._points2=new Ne,this._timePoints=new Ne,this._colorAreas=new Re,this._source=e,this._model=t,this._fillGaps=i}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._areaRenderer}_correctVisibleRange(e){const t=this._source.data(),i=t.search(e.firstBar(),p.PlotRowSearchMode.NearestLeft,this._plotIndex1()),s=t.search(e.firstBar(),p.PlotRowSearchMode.NearestLeft,this._plotIndex2()),r=t.search(e.lastBar(),p.PlotRowSearchMode.NearestRight,this._plotIndex1()),n=t.search(e.lastBar(),p.PlotRowSearchMode.NearestRight,this._plotIndex2()),o=null!==i?i.index:e.firstBar(),a=null!==s?s.index:e.firstBar(),l=null!==r?r.index:e.lastBar(),c=null!==n?n.index:e.lastBar();return[Math.min(o,a),Math.max(l,c)]}_plotNames(){return this._source.metaInfo().plots.map(e=>e.id)}_plotIndex1(){return null===this._plIndex1&&(this._plIndex1=this._plotNames().indexOf(this._plotAId())+1),this._plIndex1}_plotIndex2(){return null===this._plIndex2&&(this._plIndex2=this._plotNames().indexOf(this._plotBId())+1),this._plIndex2} -_updateImpl(){var e,t,i;if(this._areaRenderer.setData(null),!this._visible())return;const s=this._source.priceScale(),n=this._model,o=n.timeScale();if(!s||s.isEmpty()||o.isEmpty())return;if(n.mainSeries().bars().isEmpty())return;const a=this._source.firstValue();if(null===a)return;if(this._isHlineFill){const e=this._source.properties().bands[(0,r.ensureNotNull)(this._bandAKey)],t=this._source.properties().bands[(0,r.ensureNotNull)(this._bandBKey)];this._level1=s.priceToCoordinate(e.value.value(),a),this._level2=s.priceToCoordinate(t.value.value(),a)}const l=o.visibleBarsStrictRange();if(null===l)return;this._timePoints.invalidateCache(),this._points1.invalidateCache(),this._points2.invalidateCache(),null===(e=this._colors)||void 0===e||e.invalidateCache(),this._colorAreas.invalidateCache();const[c,h]=this._correctVisibleRange(l),d=this._isPerBarColoringSupported()?this._colors:null,u=this._source.offset(this._plotAId()),p=this._source.offset(this._plotBId()),_=Math.min(u,p),m=Math.max(u,p),g=this._plotIndex1(),f=this._plotIndex2(),v=this._source.data();if(v.isEmpty())return;let S,y;const b=(0,r.ensureNotNull)(v.firstIndex()),w=(0,r.ensureNotNull)(v.lastIndex()),C=b-Math.max(0,-_),P=w+Math.max(0,m),T=Math.max(c-1,C),x=Math.min(h+1,P),M=this._studyValuesCache;M.invalidateCache();const L=T-m,A=v.rangeIterator(L,x-_),E=Math.max(l.firstBar()-1,Math.min(L-m-1,L-1+_));M.setStartIndex(E);const k=new We.BarsRange(l.firstBar()-1,l.lastBar()+1);for(;A.hasNext();){const e=A.next(),t=e.index,i=e.value,s=i[g],n=i[f],o=t+u,a=t+p;if(o===a&&k.contains(o)){const e=M.at(o);e.plot1Value=s,e.plot2Value=n}else{if(k.contains(o)){M.at(o).plot1Value=s}if(k.contains(a)){M.at(a).plot2Value=n}}if(null!==d){const e=t-1+_;if(l.contains(e)){const t=i[(0,r.ensureNotNull)(this._colorPlotIndex)+1];M.at(e).colorIndex=t}}}const D=this._timePoints,V=this._points1,B=this._points2;let N=null;const R=E+M.length();for(let e=E;e<=R;e++){if(!this._fillGaps&&(null===S||null===y)){const t=e-1;D.push(t),V.push(NaN),B.push(NaN),null==d||d.push(null)}const s=M.at(e);if(null!==d){const e=s.colorIndex;N=null==e?null:this._getColorByPlotValue(e)}if(this._isHlineFill){D.push(e),null!==d&&d.push(N);continue}const r=null!==(t=s.plot1Value)&&void 0!==t?t:null,n=null!==(i=s.plot2Value)&&void 0!==i?i:null;(null!==r||null!==n||Number.isFinite(S)||Number.isFinite(y))&&(S=r,y=n,V.push(r),B.push(n),D.push(e),null!==d&&d.push(N))}s.pricesArrayToCoordinates(V.data(),a,V.length()),s.pricesArrayToCoordinates(B.data(),a,B.length()),o.indexesToCoordinates(D.data(),D.length());const O=this._transparency();let F=(0,I.isNumber)(O)?O:50;F=Math.min(F,100),F=Math.max(F,0);const W={barSpacing:this._model.timeScale().barSpacing(),transparency:F,colorAreas:this._getFilledAreas(D,V,B,d)};this._areaRenderer.setData(W)}_getFilledAreas(e,t,i,s){const r=this._isHlineFill;if(!r&&(0===t.length()||0===i.length()))return new Re;const n=this._colorAreas;let o=null,a=null;const l=this._color();for(let c=0;c{null===this._bandAKey&&i.id===e&&(this._bandAKey=s),null===this._bandBKey&&i.id===t&&(this._bandBKey=s)})}}var Xe=i(13933),Ze=i(36759),Je=i(23653),Qe=i(33291),et=i(52714),tt=i.n(et),it=i(37667),st=i(8175),rt=i(97098),nt=i(67802),ot=i(26811),at=i(69147);const lt=(0,o.getLogger)("Chart.Study"),ct=(0,n.t)("Invalid Symbol");const ht={symbolsForDisplay:!1, -symbolsForChartApi:!0,skipHiddenInputs:!1,skipFakeInputs:!1,skipBooleanInputs:A.enabled("dont_show_boolean_study_arguments"),asObject:!0,skippedGroups:[],skippedInputs:[],noExchanges:!1,noResolution:!1,keepOptionalSymbolsEmpty:!1,skipColorInputs:!1,skipTimeInputs:!1,skipOptionalEmptySymbolInputs:!1,skipTextareaInputs:!0,priceInputsForDisplay:!1},dt=A.enabled("study_symbol_ticker_description"),ut=A.enabled("hide_main_series_symbol_from_indicator_legend");function pt(e,t){const i=e.plots[t];if(!i||!(0,L.isOhlcPlot)(i))return!1;const s=i.target,r=e.defaults.styles&&e.defaults.styles[s],n=e.defaults.ohlcPlots&&e.defaults.ohlcPlots[s],o=e.ohlcPlots&&e.ohlcPlots[s];return r&&(0,L.isOhlcPlotStyleBars)(r)||n&&(0,L.isOhlcPlotStyleBars)(n)||!!o&&(0,L.isOhlcPlotStyleBars)(o)}function _t(e,t){const i=e.plots[t];if(!i||!(0,L.isOhlcPlot)(i))return!1;const s=i.target,r=e.defaults.styles&&e.defaults.styles[s],n=e.defaults.ohlcPlots&&e.defaults.ohlcPlots[s],o=e.ohlcPlots&&e.ohlcPlots[s];return r&&(0,L.isOhlcPlotStyleCandles)(r)||n&&(0,L.isOhlcPlotStyleCandles)(n)||!!o&&(0,L.isOhlcPlotStyleCandles)(o)}function mt(e,t){(0,r.assert)(void 0!==e,"zOrder must be defined"),(0,r.assert)(!t.has(e),"zOrder must be unique")}class gt extends d.PriceDataSource{constructor(e,t,i,s){super(e),this.onStart=new(c()),this._onHibernationStateChange=new(c()),this._symbolsResolved=new(c()),this._statusChanged=new(c()),this._paneViews=[],this._legendView=null,this._priceAxisViews=[],this._inputsAnchorsPaneView=null,this._inputsLinesPaneView=null,this._inputsTimeAxisPaneViews=[],this._inputsPriceAxisPaneViews=[],this._resolvedSymbols={},this._resolvedSymbolsByInput={},this._source=null,this._isChildStudy=!1,this._status={type:Xe.StudyStatusType.Undefined},this._wasCompletedBefore=!1,this._studyId=null,this._isSubscribedToSessionId=!1,this._titleStrCache={},this._titleInPartsCache={},this._children=[],this._numericFormatter=new M.NumericFormatter,this._priceAxisViewsBase=[],this._priceLinesAxisViews=[],this._labelPaneViews=[],this._ownFirstValue=null,this._plotOffsets={},this._formatter=null,this._ongoingDataUpdate=Promise.resolve(),this._studyModified=!1,this._isDestroyed=!1,this._graphics=new g.LiveStudyGraphics,this._tagsChanged=new(c()),this._currencySourceSymbolInputProperty=null,this._pendingResolveSymbols=new Map,this._onIsActualIntervalChange=new(c()),this._lastNonEmptyPlotRowCache={},this._startMovingPoint=null,this._processHibernateBound=this.processHibernate.bind(this,1),this._maxOffset=new(tt())(0),this._currencySourceSymbolInfo=null,this._chartApi=e.chartApi(),this._properties=t,this._metaInfo=s,this._series=this._model.mainSeries(),this._series.onIntervalChanged().subscribe(this,this._calcIsActualInterval),this._showStudyArgumentsProperty=e.properties().childs().paneProperties.childs().legendProperties.childs().showStudyArguments,e.collapsed().subscribe(this._processHibernateBound),i instanceof gt&&(this._source=i,this._isChildStudy=!0,this._source.setChild(this));const r=this.parentSource() -;r.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),r.unitChanged().subscribe(this,this._onSourceUnitChanged),r.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),r.formatterChanged().subscribe(this,this._onSourceFormatterChanged),r.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),dt&&this._model.mainSeries().properties().childs().statusViewStyle.childs().symbolTextSource.listeners().subscribe(this,()=>{this.invalidateTitleCache(!0)}),this._properties.subscribe(this,this._onPropertiesChanged),this._properties.visible.subscribe(this,this._visibleChanged),this._properties.visible.subscribe(this,this.processHibernate),this._properties.intervalsVisibilities.subscribe(this,this._calcIsActualInterval),this._properties.inputs.listeners().subscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offsets&&this._properties.offsets.listeners().subscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offset&&this._properties.offset.listeners().subscribe(this,this._updateMaxOffsetValue),this._initializeCurrencySource(),b.hideAllIndicators().subscribe(this,this._visibleChanged);for(let e=0;e=0?e:0}}return this._isChildStudy&&m().patchChildStudyMetaInfoState(l),l}restoreData(e){var t,i;this._invalidateLastNonEmptyPlotRowCache(),this.data().restoreState(e),this._resolvedSymbols=null!==(t=e.symbols)&&void 0!==t?t:{},this._graphics=e.graphics?(0,g.loadStudyGraphics)(e.graphics):(0,g.emptyStudyGraphics)(),this._postProcessGraphics(),this._plotOffsets=null!==(i=e.plotOffsets)&&void 0!==i?i:{},this._setStatus({type:Xe.StudyStatusType.Completed},!0)}hasStateForAlert(){return!1}stateForAlert(){throw new Error("Not implemented")}hasBarColorer(){return(0,r.ensureNotNull)(this._metaInfo).plots.some(L.isBarColorerPlot)}disconnect(){this._studyId=null,this._model.isSnapshot()||(this._resolvedSymbols={},this._resolvedSymbolsByInput={})}isChildStudy(){return this._isChildStudy}hasChildren(){return this._children.length>0}isActualInterval(){return this._isActualInterval}onIsActualIntervalChange(){return this._onIsActualIntervalChange}isVisible(){if(this._model.collapsed().value()||!this.properties().visible.value()||!this.isActualInterval())return!1;const e=this.metaInfo();if(e.plots.length>0)return!0;for(const t of Object.keys(e.graphics))for(const i of Object.keys(e.graphics[t])){const e=this.properties().graphics[t][i];if(!e.visible||e.visible.value())return!0}return!(!e.isTVScriptStrategy&&!e.hasAlertFunction)}inputs(e){const t=(0,I.merge)((0,I.clone)(ht),e||{}) -;return t.skipOptionalEmptySymbolInputs&&(t.keepOptionalSymbolsEmpty=!0),this._buildInputs(t)}metaInfo(){return this._metaInfo}status(){return this._status}name(e){return e?this.metaInfo().shortDescription||this._properties.shortDescription&&this._properties.shortDescription.value()||"Study":this.metaInfo().description||this._properties.description&&this._properties.description.value()||"Study"}title(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleStrCache[r])return this._titleStrCache[r];if(this._titleInPartsCache[r])return this._joinTitlesParts(this._titleInPartsCache[r]);const n=this._title(e,t,i,s);return this._titleStrCache[r]=n,n}titleInParts(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleInPartsCache[r])return this._titleInPartsCache[r];const n=this._titleInParts(e,t,i,s);return this._titleInPartsCache[r]=n,n}invalidateTitleCache(e){if(this._titleStrCache={},this._titleInPartsCache={},!0===e&&this._children)for(let t=0;tt.update(e)),this._labelPaneViews.forEach(t=>t.update(e)),null===(t=this._dataWindowView)||void 0===t||t.update(),null===(i=this._legendView)||void 0===i||i.update(),null===(s=this._statusView)||void 0===s||s.update(),this._priceAxisViews.forEach(t=>t.update(e)),this._priceLinesAxisViews.forEach(t=>t.update(e)),null===(r=this._inputsLinesPaneView)||void 0===r||r.update(e),null===(n=this._inputsAnchorsPaneView)||void 0===n||n.update(e),this._inputsTimeAxisPaneViews.forEach(t=>t.update(e)),this._inputsPriceAxisPaneViews.forEach(t=>t.update(e))}isPine(){return void 0!==this._metaInfo.pine}isStandardPine(){return this.isPine()&&m().isStandardPine(this._metaInfo.id)}isLinkedToSeries(){return!0===this._metaInfo.linkedToSeries}defaultPlotIdForAlert(){return this._metaInfo.plots.length?this._metaInfo.plots[0].id:null}resolvedSymbolInfoBySymbol(e){return this._resolvedSymbols&&e&&this._resolvedSymbols[this._getSymbolForResolve(e)]||null}currency(){if(null!==this._currencySourceSymbolInfo)return(0,it.symbolCurrency)(this._currencySourceSymbolInfo);const e=this.metaInfo();return Boolean(e)&&e.is_price_study?this.parentSource().currency():null}currencySourceSymbolInfo(){var e,t,i;return null!==(e=this._currencySourceSymbolInfo)&&void 0!==e?e:null!==(i=null===(t=this.symbolSource())||void 0===t?void 0:t.symbolInfo())&&void 0!==i?i:null}unit(){const e=this.metaInfo();return Boolean(e)&&e.is_price_study?this.parentSource().unit():null}dataWindowView(){return this._dataWindowView}statusView(){return this._statusView}legendView(){return this._legendView}inputsForAlertState(){return this.inputs()}sessionId(){return this.parentSource().sessionId()}sessionIdChanged(){return this.parentSource().sessionIdChanged()}getSymbolString(e){return""===e?"":(0,C.encodeExtendedSymbolOrGetSimpleSymbolString)(this._getSymbolObject(e))}onStatusChanged(){return this._statusChanged}symbolsResolved(){return this._symbolsResolved}onHibernationStateChange(){return this._onHibernationStateChange}valuesProvider(){return new S.StudyLegendValuesProvider(this,this.model())}statusProvider(e){return new x.StudyStatusProvider(this,this._model.properties().childs().scalesProperties.childs().textColor)}correctScaleMargins(e){if("Volume"===this.metaInfo().shortId){const t=this.model().paneForSource(this);return null!==t&&t.isOverlay(this)&&t.containsMainSeries()?{top:.75,bottom:0}:{top:e.top,bottom:0}}return e}canBeHiddenByGlobalFlag(){return!0}isSourceHidden(){return!this.isVisible()||this.canBeHiddenByGlobalFlag()&&b.hideAllIndicators().value()}paneViews(e){if(this.isSourceHidden()||!e.hasPriceDataSource(this))return null;const t=[];return!this._startMovingPoint&&this._wasCompletedBefore&&t.push(...this._paneViews),this._inputsLinesPaneView&&(this._startMovingPoint||this._model.selection().isSelected(this))&&t.push(this._inputsLinesPaneView),this._inputsAnchorsPaneView&&t.push(this._inputsAnchorsPaneView),t}timeAxisViews(){ -return this._model.selection().isSelected(this)?this._inputsTimeAxisPaneViews:null}priceAxisViews(e,t){if(this.properties().oldShowLastValue&&!this.properties().oldShowLastValue.value())return null;let i=this._priceAxisViews.slice();return this._model.selection().isSelected(this)&&(i=i.concat(this._inputsPriceAxisPaneViews)),e.findTargetPriceAxisViews(this,t,i,this._priceLinesAxisViews)}movable(){return null!==this._inputsAnchorsPaneView}startMoving(e,t,i,s){this._startMovingPoint=e,this.stop()}move(e,t,i,s){if(void 0!==e.logical&&null!==this._startMovingPoint){if(Array.isArray(t)){const i=t;this._updateInputValue(e.logical,i[0]),this._updateInputValue(e.logical,i[1])}else this._updateInputValue(e.logical,t);this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id()))}}endMoving(e,t){return this._startMovingPoint=null,this.start(),{indexesChanged:!1,pricesChanged:!1}}clearData(){var e;this._invalidateLastNonEmptyPlotRowCache(),this.data().clear(),this._graphics instanceof g.LiveStudyGraphics&&(null===(e=this._graphics)||void 0===e||e.clear()),this._plotOffsets={},this.hasBarColorer()&&this._model.mainSeries().invalidateBarStylesCache(),this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id(),void 0,!0))}convertYCoordinateToPriceForMoving(e,t){const i=this.priceScale();if(!t||!i||i.isEmpty())return null;const s=t.firstValue();return null===s?null:i.coordinateToPrice(e,s)}processHibernate(e){const t=this.isVisible();if(!this.isStarted()&&t&&(this._isChildStudy&&(0,r.ensureNotNull)(this._source).processHibernate(),this.start(void 0,void 0,e),this._onHibernationStateChange.fire(!1)),this.isHibernationAllowed()&&this.isStarted()&&!t){for(const e of this._children)e.processHibernate();this.stop(void 0,e),this._onHibernationStateChange.fire(!0)}}isHibernationAllowed(){return!this.metaInfo().historyCalculationMayChange&&(!this.hasChildren()||!!this._model.collapsed().value()&&this._children.every(e=>e.isHibernationAllowed()))}recalculate(){const e=this._model.paneForSource(this);this._model.recalculatePane(e,(0,Qe.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}maxOffset(){return this._maxOffset}_transformData(e){}_updateMaxOffsetValue(){let e=-1/0;for(const t of this._metaInfo.plots)e=Math.max(this.offset(t.id),e);this._maxOffset.setValue(e)}_rightOffsetToUnixTime(e){if(this._series.bars().size()>=e){const t=(0,r.ensureNotNull)(this._series.bars().lastIndex())-e;return(0,r.ensureNotNull)(this._series.bars().valueAt(t))[0]}return null}_invalidateLastNonEmptyPlotRowCache(){this._lastNonEmptyPlotRowCache={}}_collectDepsForAlert(){throw new Error("Not implemented")}isHibernated(){return!this.isVisible()&&!this.isStarted()}_createViews(){var e,t;this._priceAxisViewsBase=[],this._priceLinesAxisViews=[],this._paneViews=[],this._labelPaneViews=[];const i=new Set,s=this.metaInfo(),n=Boolean(s.usePlotsZOrder),o=new Map;if(s.plots)for(let t=0;t{const i=this._properties.bands[t];if(i&&i.visible.value()){const t=new qe(i,this),s=n?(0,r.ensureDefined)(e.zorder):o.size;mt(s,o),o.set(s,{paneViews:[t]})}}),this._properties.bandsBackground&&((0,r.assert)(!n,"'usePlotsZOrder' flag does not supported"),o.set(o.size,{paneViews:[new Ke(this)]}));const a=this._paneViews;(0,g.createGraphicsPaneViews)(this,this.model()).then(e=>{for(let t=0;ts.plots.some(t=>(0,L.isColorerPlot)(t)&&t.target===e);if(this._properties.filledAreas&&s.filledAreas)for(let e=0;ee-t);for(let e=0;e0){const t=this.barColorer().firstColoredBar(e[0].index);this._model.mainSeries().invalidateBarStylesCache(t)}null!==t&&this._postProcessGraphics();const r=this._model.paneForSource(this);this._model.recalculatePane(r,(0,Qe.dataSourceChangeEvent)(this.id(),null!=s?s:void 0)),this._updateSources()}_updateSources(){this._model.updateSource(this),this.hasBarColorer()&&this._model.updateSource(this._model.mainSeries())}_titleInputs(e,t){return this.inputs(this._titleInputsOptions(e,t))}_titleInputsOptions(e,t){return{symbolsForDisplay:!0,skipHiddenInputs:!0,skipFakeInputs:!1,fakeInputsForDisplay:!0,asObject:!1,skippedGroups:[],noExchanges:e,noResolution:t,skipColorInputs:!0,skipTimeInputs:!0,priceInputsForDisplay:!0,skipOptionalEmptySymbolInputs:ut}}_subscribeToSessionId(){!this._isSubscribedToSessionId&&this.hasSymbolInputs()&&(this.sessionIdChanged().subscribe(this,this._onSessionIdChanged),this._isSubscribedToSessionId=!0)}_unsubscribeToSessionId(){this._isSubscribedToSessionId&&(this.sessionIdChanged().unsubscribe(this,this._onSessionIdChanged),this._isSubscribedToSessionId=!1)}_onSessionIdChanged(){this.restart(!0)}_title(e,t,i,s){const r=this._titleInParts(e,t,i,s);return this._joinTitlesParts(r)}_formatterByMetaInfo(){var e,t;const i=this.metaInfo().format;if("inherit"===i.type)return null;const s=this.series().symbolInfo(),r=(0,I.isNumber)(i.precision)?Math.pow(10,i.precision):void 0;{const s=null!==(t=null===(e=null===at.customFormatters||void 0===at.customFormatters?void 0:at.customFormatters.studyFormatterFactory)||void 0===e?void 0:e.call(at.customFormatters,i,this.symbolSource().symbolInfo()))&&void 0!==t?t:null -;if(null!==s)return s}switch(i.type){case"price":return new rt.PriceFormatter(r);case"volume":{let e=i.precision;return void 0===e&&(e=s&&(0,I.isNumber)(s.volume_precision)?s.volume_precision:0),new nt.VolumeFormatter(e)}case"percent":return new ot.PercentageFormatter(r);default:return lt.logWarn("Unsupported format type: "+i.type),null}}_postProcessPriceRange(e){if(e&&e.minValue()===e.maxValue()&&!this.metaInfo().is_price_study){const t=.005*e.minValue();e=new u.PriceRange(e.minValue()-t,e.maxValue()+t)}const t=this.priceScale();return t&&t.isLog()&&e?new u.PriceRange(t.priceToLogical(e.minValue()),t.priceToLogical(e.maxValue())):e}_joinTitlesParts(e){const t=e[1]?e[1].join(", "):"";return e[0]+(t.length>0?" ("+t+")":"")}_titleInParts(e,t,i,s){var r;const o=this.name(e);t=t||{};const a=[(0,n.t)(o,{context:"study"})];let l=[];if(!i){const i=this._getMTFResolutionInputTitle();null!==i&&i.length>0&&a.push(i);const n=this.metaInfo(),o=this._titleInputs(s,!0)||[];if(o.length>0){const i={};if(this._isChildStudy)for(let t=0;t=0&&this._source){const t=this._source.metaInfo(),n=this._source.title(e,{},!0,s);if(1===t.plots.length)i[l]=n;else{const e=l.split("$")[1],s=null===(r=t.plots[parseInt(e)])||void 0===r?void 0:r.id,o=t.styles&&t.styles[s],a=o&&o.title||s;i[l]=n+": "+a}}break}l=o.map(e=>{let s=(0,I.isNumber)(e)?this._numericFormatter.format(e):i&&i[e.toString()]||e.toString();return t&&t[s.toString()]&&(s=t[s.toString()]),s})}}return[a.join(" · "),l]}_getMTFResolutionInputTitle(){const e=this.metaInfo();for(let t=0;t"line"===e.type)}_hasAlertConditions(){if(this.metaInfo().plots.some(L.isAlertConditionPlot))return!0;const e=this.stateForAlert();return Boolean(e.alerts&&e.alerts.conditions)}_hasAlertFunction(){const e=this.metaInfo();return Boolean(e.hasAlertFunction)}_onDataUpdate(e,t){this._studyModified&&(this.clearData(),this._studyModified=!1);const i=(0,h.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then(()=>i,()=>i).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_mergeData(e){var t,i;return this._invalidateLastNonEmptyPlotRowCache(),null!==(i=null===(t=this.data().merge(e))||void 0===t?void 0:t.index)&&void 0!==i?i:null}_getSymbolForResolve(e){return this.getSymbolString(this._getSymbolForApi(e))}_allSymbolsAreResolved(){const e=this.metaInfo(),t=[];let i=!1;for(let s=0;sthis._symbolsResolved.fire()):e}return Promise.all(t).catch(e=>(this._setStatus({type:Xe.StudyStatusType.Error,errorDescription:{error:ct}}),this.stop(!0),this._model.updateSource(this),Promise.reject("Invalid symbol, "+e))).then(()=>{null!==this._studyId&&this.stop(!0),this.start(!0),this._symbolsResolved.fire(),this._recheckLineToolsActuality()})}_getSymbolForApi(e){return e}_resolveSymbol(e,t){if(""===e)return Promise.resolve();let i=this._pendingResolveSymbols.get(e);return void 0!==i||(i=new Promise((i,s)=>{this._onSymbolResolvingStart(),this._chartApi.resolveSymbol((0,P.makeNextSymbolId)(),e,r=>{switch(this._pendingResolveSymbols.delete(e),r.method){case"symbol_resolved":this._setStatus({type:Xe.StudyStatusType.Undefined}),this._resolvedSymbols[e]=r.params[1],this._resolvedSymbolsByInput[t]=r.params[1],this._onSymbolResolved(e,t,r.params[1]),this.invalidateTitleCache(!0),i();break;case"symbol_error":if(this._setStatus({type:Xe.StudyStatusType.Error,errorDescription:{error:r.params[1]}}),this._onSymbolError(),r.params[1]===T.permissionDenied&&r.params[2])switch(r.params[2]){case T.SymbolErrorPermissionDeniedReason.Symbol:if(r.params[3])return void this._resolveSymbol(r.params[3],t).then(i);break;default:return void this._resolveSymbol(r.params[2],t).then(i)}0,s()}})}),this._pendingResolveSymbols.set(e,i)),i}_recheckLineToolsActuality(){const e=this._model.paneForSource(this);null!==e&&e.sourcesByGroup().lineSourcesForAllSymbols().forEach(e=>{e.ownerSource()===this&&e.calcIsActualSymbol()})}_getSymbolObject(e){const t={symbol:e},i=this.currency();return null!==this._currencySourceSymbolInputProperty&&null!==this._currencySourceSymbolInfo&&this._getSymbolForApi(this._currencySourceSymbolInputProperty.value())===e&&(t["currency-id"]=i),t.session=this.sessionId(),t}_onSymbolResolved(e,t,i){this._onCurrencyMayChange()}_onSymbolResolvingStart(){}_onSymbolError(){}_setStatus(e,t){var i;this._status=e,e.type===Xe.StudyStatusType.Completed?this._wasCompletedBefore=!0:e.type!==Xe.StudyStatusType.Error&&e.type!==Xe.StudyStatusType.Undefined||(this._wasCompletedBefore=!1),t||(null===(i=this._statusView)||void 0===i||i.update(),this._model.updateSource(this),this._statusChanged.fire(e))}_bandsFirstValue(e){const t=this._metaInfo;if(!t.bands)return null;for(let i=0;ivoid 0!==i[e],1e3),null===i?null:(this._lastNonEmptyPlotRowCache[e]=i,i)}_onCurrencyChanged(){"alwaysOff"!==(0,st.currencyUnitVisibilityProperty)().value()&&this._model.fullUpdate(),this.isStarted()&&this._tryChangeInputs(),this._currencyChanged.fire()}_tryChangeInputs(){const e=(0,r.ensureDefined)((0,I.clone)(this._inputs));this.isStarted()&&this._chartApi.isConnected().value()?this._allInputsAreValid()?this._allSymbolsAreResolved().then(()=>{const t=this.inputs({keepOptionalSymbolsEmpty:!0}),i=JSON.stringify(t)!==JSON.stringify(this._inputs);this._isStopped()?i&&this.disablePriceRangeReady():i&&(this._changeInputsImpl(t,e),this._inputs=t)}).catch(e=>{lt.logError("ERROR: "+this._debugId()+" _tryChangeInputs: cannot modify study, "+e)}):this.stop():(this.stop(!0),this.start(!0)),this._tagsChanged.fire()}_debugId(){const e=[];return this._studyId&&e.push(this._studyId),e.push(this._metaInfo.fullId),e.push(this._metaInfo.description),JSON.stringify({study:e})}_onCurrencyMayChange(){if(null!==this._currencySourceSymbolInputProperty){const e=this.currency();this._updateCurrencySourceSymbolInfo(),e!==this.currency()&&this._onCurrencyChanged()}}_isStopped(){return!this.isStarted()}_onDataUnpacked(e,t,i){if(this._isDestroyed)return;"nochange"!==t&&this._processPlotOffsets(i),this._transformData(e);const s=this._mergeData(e);null!==i&&(i.indexes_replace?((0,r.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._onDataUpdated(e,i,t,s),this.priceRangeReady()||this._enablePriceRangeReady()}_processPlotOffsets(e){if(e&&e.indexes_replace)return;const t=this._plotOffsets;this._plotOffsets=e&&e.offsets||{},(0,s.default)(t,this._plotOffsets)||this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id(),void 0,!0)),this._updateMaxOffsetValue()}_applyPlotToPrecalculatedAutoscaleInfo(e,t,i,s){const r=s.id,n=this.properties().styles[r],o=(0,L.isShapesPlot)(s)||(0,L.isCharsPlot)(s);i.useMainSeriesRange=i.useMainSeriesRange||(0,L.isArrowsPlot)(s);let a=(0,L.isLinePlot)(s)||(0,L.isOhlcPlot)(s);if(o){const e=n.location.value(),t=[f.MarkLocation.Absolute,f.MarkLocation.Top,f.MarkLocation.Bottom].indexOf(e)<0 -;i.useMainSeriesRange=i.useMainSeriesRange||o&&t,a=a||e===f.MarkLocation.Absolute}if(!a)return i;const l={name:r,offset:this.offset(r)},c=n.plottype.value();if(!this.properties().skipHistogramBaseOnAutoScale&&[L.LineStudyPlotStyle.Histogram,L.LineStudyPlotStyle.Columns,L.LineStudyPlotStyle.Area].indexOf(c)>=0){const s=n.histogramBase.value(),r=this.data().minMaxOnRangeCached(e,t,[l]);return(0,I.isNumber)(s)&&null!==r&&(i.baseValueMinMax=(0,p.mergeMinMax)(i.baseValueMinMax,{min:s,max:s}),i.baseValueMinMax=(0,p.mergeMinMax)(i.baseValueMinMax,r)),i}return i.fields.push(l),i}_fillPrecalculatedAutoscaleInfo(e,t){return this._metaInfo.plots.filter(e=>!(0,L.isPlotWithTechnicalValues)(e)).filter(e=>{const t=e.id;let i;if((0,L.isOhlcPlot)(e)){const t=e.target;i=this.properties().ohlcPlots[t]}else i=this.properties().styles[t];return i.visible.value()}).reduce((i,s)=>this._applyPlotToPrecalculatedAutoscaleInfo(e,t,i,s),{fields:[],useMainSeriesRange:!1,baseValueMinMax:null})}_buildInputs(e){(0,r.assert)(!!e,"options not set");let t={};try{t=this._prepareInputs(e)}catch(e){lt.logWarn("Failed to prepare study inputs: "+e)}if(e.asObject){const e={};return Object.keys(t).forEach(i=>{null!=t[i]&&(e[i]=t[i])}),e}{const e=[];return Object.keys(t).forEach(i=>{null!=t[i]&&e.push(t[i])}),e}}_prepareInput(e,t){const i=this._prepareInputValue(e,t);return!e.isFake||t.fakeInputsForDisplay||t.onlyAtomValues?i:{v:i,f:!0,t:e.type}}_plotsForAlert(){return[]}_dependenciesForAlerts(){throw new Error("Not implemented")}_calcIsActualInterval(){const e=this._isActualInterval;this._isActualInterval=(0,Ze.isActualInterval)(this._series.intervalObj(),this.properties().intervalsVisibilities),e!==this._isActualInterval&&(this._onIsActualIntervalChange.fire(),this._visibleChanged(),this.processHibernate())}_visibleChanged(){this._series.invalidateBarColorerCache()}_getNonPriceParent(){const e=this.source();if(e instanceof gt){const t=e.metaInfo();return t.is_price_study&&"Compare@tv-basicstudies"!==t.id?e._getNonPriceParent():e}return null}_updateInputValue(e,t){const i=this._properties.inputs;if(i[t.id])if("price"===t.type)i[t.id].setValue(e.price);else if("time"===t.type){const s=this._model.timeScale().indexToTimePoint(e.index);null!==s&&i[t.id].setValue(1e3*s)}}_initializeStudyInputsPaneViews(){}_updateCurrencySourceSymbolInfo(){var e;null!==this._currencySourceSymbolInputProperty&&(this._currencySourceSymbolInfo=null!==(e=this._resolvedSymbolsByInput[this._currencySourceSymbolInputProperty.value()])&&void 0!==e?e:null)}_initializeCurrencySource(){var e,t;const i=this.metaInfo(),s="symbolInputSymbolSource"===(null===(e=i.symbolSource)||void 0===e?void 0:e.type)&&(null===(t=i.symbolSource)||void 0===t?void 0:t.inputId),r=i.inputs.find(e=>e.id===s),n="symbol"===(null==r?void 0:r.type);if("string"==typeof s&&n&&i.is_price_study){const e=this._properties.inputs[s];null!=e&&(e.subscribe(this,this._onCurrencyMayChange),this._currencySourceSymbolInputProperty=e)}}}},55153:(e,t,i)=>{"use strict";i.d(t,{StudyCompare:()=>N}) -;var s=i(88537),r=i(8175),n=i(66101),o=i(37667),a=i(2015),l=i.n(a),c=i(67337),h=i(3825),d=i(97938),u=i(74477);const p=c.enabled("force_exchange_as_title");class _ extends d.PriceAxisView{constructor(e,t){super(),this._studyCompare=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._studyCompare.priceScale(),r=this._studyCompare.lastValueData(this._data.plotIndex,!1);if(r.noData||null===s||s.isEmpty())return;i.background=r.color,i.textColor=this.generateTextColor(r.color),i.coordinate=r.coordinate,i.floatCoordinate=r.floatCoordinate;const n=this._studyCompare.model().properties().childs().scalesProperties.childs();n.showSeriesLastValue.value()&&(e.text=(0,u.getCurrentModePriceText)(s,r),n.seriesLastValueMode.value()!==h.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,u.getOppositeModePriceText)(s,r),e.visible=!0),t.text="",n.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._studyCompare.symbolInfo();return p?e=(0,o.displayedSymbolExchange)(t):this._studyCompare.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,o.displayedSymbolName)(t)),e}}i(28353);var m=i(26179),g=i(44601),f=i(85733),v=i(49483),S=i(80643),y=i(89027);class b extends y.StudyValuesProvider{constructor(e,t){super(e,t),this._emptyValues[0].title=e.guiPlotName("")}_hideValues(){return!1}}const w=v.CheckMobile.any();class C extends m.StudyDataWindowView{constructor(e,t){super(e,t),this._studyCompare=e}_hideValues(){return!1}_createValuesProvider(e,t){return new b(e,t)}_currentIndex(){const e=this._model.crossHairSource().lockedIndex;let t;return w&&(null===this._model.crossHairSource().pane&&void 0===e||(0,g.isLineToolName)(f.tool.value())||null!==this._model.lineBeingEdited())?t=this._study.data().lastIndex():(t=this._model.crossHairSource().appliedIndex(),(0,S.isNumber)(t)||(t=this._study.data().lastIndex())),t}}class P extends C{constructor(e,t){super(e,t),this._additional=null,this._showSeriesOHLC=t.properties().childs().paneProperties.childs().legendProperties.childs().showSeriesOHLC,this._showSeriesOHLC.subscribe(this,this.update)}areValuesVisible(){return this._showSeriesOHLC.value()}destroy(){this._showSeriesOHLC.unsubscribeAll(this)}additional(){return this._additional}_updateImpl(){super._updateImpl()}}var T=i(190),x=i(40529);class I extends x.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(!0,void 0,!1,!1)}}var M=i(14791),L=i(52714),A=i.n(L);const E=c.enabled("study_overlay_compare_legend_option"),k=c.enabled("force_exchange_as_title"),D=c.enabled("uppercase_instrument_names"),V=!c.enabled("hide_study_compare_legend_item"),B=c.enabled("hide_unresolved_symbols_in_legend");class N extends n.Study{constructor(e,t,i,s){ -super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(l())(null)),e.hasChild("unitId")||e.addChild("unitId",new(l())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._isActingAsSymbolSource=new(A())(!0),this._realignToolsLastParams=null,this.properties().childs().minTick.subscribe(null,()=>this._recreatePriceFormattingDependencies()),this.properties().childs().minTick.subscribe(null,()=>this._model.fullUpdate()),this.properties().childs().currencyId.subscribe(this,this._onCurrencyChanged),this.properties().childs().unitId.subscribe(this,this._onUnitChanged),this.properties().merge({skipHistogramBaseOnAutoScale:!0}),this._symbolResolvingActive=new(A())(!1),this._symbolHibernated=new(A())(!1),e.mainSeries().onIntervalChanged().subscribe(this,()=>e.realignLineTools(this))}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),super.destroy()}properties(){return super.properties()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}createPriceAxisView(e){return new _(this,{plotIndex:"compare"})}setSymbolParams(e){this._setSymbolCurrencyUnitInternal(e)}symbol(){return this._properties.inputs.symbol.value()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,M.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,o.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,o.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return 2}setStyle(e){}interval(){return this._model.mainSeries().interval()}setInterval(e){}symbolSource(){return this}state(e,t){const i=super.state(e,t);return this._model.unitConversionEnabled()||delete i.state.unitId,e&&((0,s.ensureDefined)(i.data).symbols={___snapshot:this.symbolInfo()||void 0}),i}symbolTitle(e,t){return this.title(!0,{},!1,e)}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[D?r.toUpperCase():r]}tags(){const e=this.symbol();return e?[e]:[]}statusView(){return V?super.statusView():null}guiPlotName(e){return this.properties().childs().inputs.childs().symbol.value()}canOverrideMinTick(){return!0}canBeHiddenByGlobalFlag(){return!1}valuesProvider(){return new b(this,this.model())}statusProvider(e){return new I(this,this._model.properties().childs().scalesProperties.childs().textColor)}_createViews(){ -this._legendView||(this._legendView=new P(this,this._model)),this._dataWindowView||(this._dataWindowView=new C(this,this._model)),this._statusView||(this._statusView=new T.StudyStatusView(this)),super._createViews()}_showLastValueOnPriceScale(){return this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.value()}_onUnitChanged(){"alwaysOff"!==(0,r.currencyUnitVisibilityProperty)().value()&&this._model.fullUpdate(),this._model.unitConversionEnabled()&&this.isStarted()&&this._tryChangeInputs(),this._unitChanged.fire()}_getSymbolObject(e){const t=super._getSymbolObject(e),i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit();return this._model.unitConversionEnabled()&&null!==s&&(t["unit-id"]=s),t}_getSymbolForApi(e){return(0,o.symbolForApi)(this._resolvedSymbolsByInput[e]||null,e)}_onSymbolResolvingStart(){super._onSymbolResolvingStart(),this._symbolResolvingActive.setValue(!0)}_onSymbolError(){super._onSymbolError(),this._symbolResolvingActive.setValue(!1)}_onSymbolResolved(e,t,i){super._onSymbolResolved(e,t,i),this._recreatePriceFormattingDependencies();const s=t===this.symbol()?(0,o.extractSymbolNameFromSymbolInfo)(i,this.symbol()):null,r=(0,o.symbolCurrency)(i),n=(0,o.symbolUnit)(i,this._model.unitConversionEnabled());this._setSymbolCurrencyUnitInternal({symbol:null!=s?s:void 0,currency:r,unit:n},i),this._symbolResolvingActive.setValue(!1)}_changeInputsImpl(e,t){super._changeInputsImpl(e,t),this._realignLineToolsIfParamsChanged()}_createStudyOnServer(){super._createStudyOnServer(),this._realignLineToolsIfParamsChanged()}_tryCreateFormatter(){const e=this.symbolInfo();return(0,o.createSeriesFormatter)(e,this.properties().childs().minTick.value())}_titleInParts(e,t,i,s){const r=this.symbolInfo();let n;if(r){const e=(0,o.getStudySymbolExchange)(r);if(k&&e)n=e;else if(n=r.name,E)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":n=r.description;break;case"ticker-and-description":n=`${r.name}, ${r.description}`}else if(e&&!s)return[n,[e]]}else n=B?"":this.properties().childs().inputs.childs().symbol.value();return[n]}_setSymbolCurrencyUnitInternal(e,t){const{symbol:i,currency:s,unit:r}=e,n=this.properties().childs(),a=n.inputs.childs().symbol.value(),l=n.currencyId.value(),c=n.unitId.value();if(void 0!==i&&i!==a&&n.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==l&&n.currencyId.setValueSilently(s),void 0!==r&&r!==c&&n.unitId.setValueSilently(r),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(n.currencyId.setValueSilently((0,o.symbolCurrency)(e)),n.unitId.setValueSilently((0,o.symbolUnit)(e,this._model.unitConversionEnabled())))}n.inputs.childs().symbol.value()!==a&&n.inputs.childs().symbol.listeners().fire(n.inputs.childs().symbol),n.currencyId.value()!==l&&n.currencyId.listeners().fire(n.currencyId),n.unitId.value()!==c&&n.unitId.listeners().fire(n.unitId), -this._realignLineToolsIfParamsChanged()}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}},82927:(e,t,i)=>{"use strict";i.d(t,{StudyOverlayBase:()=>le});var s=i(88537),r=i(49483),n=i(98125),o=i(66101),a=i(8175),l=i(63948),c=i(37667),h=i(2015),d=i.n(h),u=i(19234),p=i(67337),_=i(90810),m=i(14791),g=i(59100),f=i(9315),v=i(71053),S=i(80643),y=i(69927),b=i(52714),w=i.n(b),C=i(33291),P=i(190),T=i(42169),x=i(97938),I=i(3825),M=i(74477);const L=p.enabled("force_exchange_as_title");class A extends x.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.lastValueData("close",!1);if(s.noData)return;const r=this._source.model(),n=this._source.priceScale();if(null===n)return;if(!r.isPriceScaleVisible(n))return;i.background=s.color,i.textColor=this.generateTextColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate;const o=this._source.model().properties().childs().scalesProperties.childs();o.showSeriesLastValue.value()&&(e.text=(0,M.getCurrentModePriceText)(n,s),o.seriesLastValueMode.value()!==I.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,M.getOppositeModePriceText)(n,s),e.visible=!0),t.text="",o.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._source.symbolInfo();return L?e=(0,c.displayedSymbolExchange)(t):this._source.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,c.displayedSymbolName)(t)),e}}var E=i(55057);class k extends E.PriceLineAxisView{constructor(e){super(),this._study=e}_value(){return this._study.lastValueData("",!0)}_priceLineColor(e){return e}_lineWidth(){return 1}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e}}var D=i(43891),V=i(40254);class B{constructor(e){this._lineRenderer=new V.HorizontalLineRenderer,this._visible=!1,this._source=e}update(){if(this._visible=!1,!this._source.properties().childs().showPriceLine.value())return;const e=this._source.lastValueData("",!0);e.noData||(this._visible=!0,this._lineRenderer.setData({y:e.coordinate,color:e.color,linewidth:1,linestyle:D.LINESTYLE_DOTTED,visible:this._visible}))}renderer(){return this._visible?this._lineRenderer:null}}var N=i(93751),R=i(14445),O=i(44601),F=i(85733),W=i(22458);const H=r.CheckMobile.any();class z extends R.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t), -this._items=this._valueProvider.getItems().map(e=>new R.DataWindowItem(e.title,"")),this.update()}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}update(){this._invalidated=!0}study(){return this._study}_updateImpl(){this._header=this._study.title();let e;this._showLastPriceAndChangeOnly()?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),(0,N.isNumber)(e)||(e=this._study.data().lastIndex()));const t=this._valueProvider.getValues(e);for(let e=0;ee||t,i.showBarChange,i.showSeriesOHLC),this._visibilityProperty.subscribe(this,this.update)}areValuesVisible(){return this._visibilityProperty.value()}additional(){return this._additional}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_updateImpl(){super._updateImpl()}_createValuesProvider(e,t){return new U.OverlayLegendValuesProvider(e,t)}}var q=i(28978),Y=i(66919),K=i(85224),$=i(33837),X=i(34041),Z=i(35251),J=i(30076),Q=i(59153);const ee=r.CheckMobile.any()&&!1,te=p.enabled("uppercase_instrument_names"),ie=p.enabled("study_overlay_compare_legend_option"),se=p.enabled("secondary_series_extend_time_scale"),re=p.enabled("hide_unresolved_symbols_in_legend"),ne=!p.enabled("hide_study_overlay_legend_item"),oe=(0,n.getLogger)("Chart.StudyOverlay");function ae(e,t){return null==e[t]}class le extends o.Study{constructor(e,t,i,s){super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(d())(null)),e.hasChild("unitId")||e.addChild("unitId",new(d())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._quotesProvider=new _.QuotesProvider,this._seriesSource=null,this._symbolResolvingActive=new(w())(!1),this._symbolHibernated=new(w())(!1),this._styleToRecover=null,this._isActingAsSymbolSource=new(w())(!0),this._realignToolsLastParams=null,this.m_data=new v.PlotList((0,l.seriesPlotFunctionMap)(),ae),ee&&this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate);const r=this.properties().childs();r.currencyId.subscribe(this,this._onCurrencyChanged),r.unitId.subscribe(this,this._onUnitChanged),r.allowExtendTimeScale.subscribe(this,this._onAllowExtendTimeScaleChanged),this._onAllowExtendTimeScaleChanged(),r.style.subscribe(this,this._onChartStyleChanged), -r.lineStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.areaStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.baselineStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.columnStyle.childs().priceSource.subscribe(this,this._updateBarFunction),this._updateBarFunction(),this._formatter=null,e.mainSeries().onIntervalChanged().subscribe(this,()=>e.realignLineTools(this))}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}properties(){return this._properties}setSymbolParams(e){this._setSymbolParamsInternal(e)}symbol(){return this.properties().childs().inputs.childs().symbol.value()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}supportsPressedChunks(){return!1}pressedChunks(e,t){throw new Error("Pressed chunks are not supported")}data(){return null===this._seriesSource?super.data():this._seriesSource.data().bars()}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,m.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}priceSource(){switch(this._properties.style.value()){case 2:return this._properties.lineStyle.priceSource.value();case 3:return this._properties.areaStyle.priceSource.value();case 10:return this._properties.baselineStyle.priceSource.value();case 13:return this._properties.columnStyle.priceSource.value()}return null}barFunction(){return this._barFunction}quotes(){return this._quotesProvider.quotes()}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,c.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,c.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}interval(){return this._model.mainSeries().interval()}setInterval(e){}symbolSource(){return this}state(e,t){const i=super.state(e,t);return this._model.unitConversionEnabled()||delete i.state.unitId,e&&((0,s.ensureDefined)(i.data).symbols={___snapshot:this.symbolInfo()||void 0}),i}symbolTitle(e,t){return this.title(!0,{},!1,e)}title(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return te?r.toUpperCase():r}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[te?r.toUpperCase():r]}isStarted(){return null===this._seriesSource?super.isStarted():this._seriesSource.isStarted()}sourceId(){ -return null===this._seriesSource?super.sourceId():(0,s.ensureNotNull)(this._seriesSource.instanceId())}moveData(e){null===this._seriesSource?super.moveData(e):this._seriesSource.moveData(e)}firstValue(){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=e.firstBar();if(0===this.data().size())return this._ownFirstValue;const i=this.data().search(t,v.PlotRowSearchMode.NearestRight,1);return this._ownFirstValue=null!==i?this._barFunction(i.value):null,this._ownFirstValue}lastValueData(e,t,i){const s={noData:!0},r=this.priceScale();if(this._model.timeScale().isEmpty()||null===r||r.isEmpty()||this.data().isEmpty())return s;const n=this._model.timeScale().visibleBarsStrictRange();if(null===n)return s;const o=this.properties().childs();if(!o.visible.value())return s;const a=this.nearestIndex(n.lastBar(),v.PlotRowSearchMode.NearestLeft,1);if(void 0===a)return s;const l=this.firstValue();if(null===l)return s;const c=this._lastNonEmptyPlotRow(4),h=null!==c&&n.contains(c.index),d=null!==c?c.value:null,u=t||h?d:this.data().valueAt(a);if(null===u)return s;const p=this._barFunction(u);if(!(0,S.isNumber)(p))return s;const _=r.priceToCoordinate(p,l);let m;switch(o.style.value()){case 0:m=u[1]<=u[4]?o.barStyle.childs().upColor.value():o.barStyle.childs().downColor.value();break;case 1:case 9:m=u[1]<=u[4]?o.candleStyle.childs().upColor.value():o.candleStyle.childs().downColor.value();break;case 13:m=u[1]<=u[4]?o.columnStyle.childs().upColor.value():o.columnStyle.childs().downColor.value();break;case 2:m=o.lineStyle.childs().color.value();break;case 3:m=o.areaStyle.childs().color1.value();break;case 10:{const e=o.baselineStyle.childs();m=_(0,s.ensureNotNull)(this.priceScale()).height(),color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}}r&&this._paneViews.push(r),null!==i&&this._paneViews.push(i),this._paneViews.push(new B(this)), -this._dataWindowView||(this._dataWindowView=new z(this,this._model)),this._legendView||(this._legendView=new G(this,this._model)),this._statusView||(this._statusView=new P.StudyStatusView(this)),this._priceAxisViews=[...this._priceAxisViewsBase],this._labelPaneViews.push(new q.PanePriceAxisView(e,this,this._model))}_createStudyOnServer(){null===this._seriesSource?super._createStudyOnServer():this._modifyStudyOnServer((0,s.ensureDefined)(this._inputs)),this._realignLineToolsIfParamsChanged()}_modifyStudyOnServer(e){null===this._seriesSource?super._modifyStudyOnServer(e):(this._seriesSource.modifySeries((0,u.decodeExtendedSymbol)(e.symbol),(0,f.getServerInterval)(this._series.properties().childs().interval.value())),this._seriesSource.isStarted()||this._seriesSource.start())}_stopStudyOnServer(){null===this._seriesSource?super._stopStudyOnServer():this._seriesSource.stop()}_titleInParts(e,t,i,s){const r=this.symbolInfo();let n;if(r){if(n=r.name,ie)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":n=r.description;break;case"ticker-and-description":n=`${r.name}, ${r.description}`}const e=!s&&(0,c.getStudySymbolExchange)(r);if(e)return[n,[e]]}else n=re?"":this.properties().childs().inputs.childs().symbol.value();return[n]}_onAllowExtendTimeScaleChanged(){const e=this.isStarted();if(e&&this.stop(!0),se&&this.properties().childs().allowExtendTimeScale.value()){this._seriesSource=new g.SeriesDataSource(this._model.chartApi(),"st_o_");const e=this._seriesSource.dataEvents();e.seriesError().subscribe(this,e=>{this._onStudyError(this._convertSeriesErrorToStudy(e))}),e.loading().subscribe(this,this._onStudyLoading),e.completed().subscribe(this,(e,t)=>{this._onStudyCompleted(t)}),e.dataUpdated().subscribe(this,()=>{this._studyModified=!1;const e=this._model.paneForSource(this);this._model.recalculatePane(e,(0,C.dataSourceChangeEvent)(this.id())),this._updateSources(),this.priceRangeReady()||this._enablePriceRangeReady()})}else{if(null!==this._seriesSource){const e=this._seriesSource.dataEvents();e.seriesError().unsubscribeAll(this),e.loading().unsubscribeAll(this),e.completed().unsubscribeAll(this),e.dataUpdated().unsubscribeAll(this),this._seriesSource.destroy()}this._seriesSource=null}e&&this.start(!0)}_convertSeriesErrorToStudy(e){return{error:e.error,ctx:e.ctx,solution_id:e.solution_id}}_setSymbolParamsInternal(e,t){const{symbol:i,currency:s,unit:r,style:n}=e,o=this.properties().childs(),a=o.inputs.childs().symbol.value(),l=o.currencyId.value(),h=o.unitId.value(),d=o.style.value();if(void 0!==i&&i!==a&&o.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==l&&o.currencyId.setValueSilently(s),void 0!==r&&r!==h&&o.unitId.setValueSilently(r),void 0!==n&&o.style.setValueSilently(n),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(o.currencyId.setValueSilently((0,c.symbolCurrency)(e)),o.unitId.setValueSilently((0, -c.symbolUnit)(e,this._model.unitConversionEnabled())))}o.inputs.childs().symbol.value()!==a&&o.inputs.childs().symbol.listeners().fire(o.inputs.childs().symbol),o.currencyId.value()!==l&&o.currencyId.listeners().fire(o.currencyId),o.unitId.value()!==h&&o.unitId.listeners().fire(o.unitId),o.style.value()!==d&&o.style.listeners().fire(o.style),this._checkStyle(),this._realignLineToolsIfParamsChanged()}_updateBarFunction(){var e;const t=null!==(e=this.priceSource())&&void 0!==e?e:"close";this._barFunction=(0,l.barFunction)(t)}_onChartStyleChanged(){var e;this._updateBarFunction(),(null===(e=this._styleToRecover)||void 0===e?void 0:e.originalStyle)!==this.style()&&(this._styleToRecover=null)}_checkStyle(){const e=this.style();(0,c.isCloseBasedSymbol)(this.symbolInfo())?(0,c.isSingleValueBasedStyle)(e)||(this.setStyle(2),this._styleToRecover={correctedStyle:this.style(),originalStyle:e}):null!==this._styleToRecover&&(this.setStyle(this._styleToRecover.originalStyle),this._styleToRecover=null)}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}},41855:(e,t,i)=>{"use strict";i.d(t,{StudyPriceAxisView:()=>r});var s=i(97938);class r extends s.PriceAxisView{constructor(e,t){super(),this._model=e.model(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.model(),r=this._source.priceScale();if(null===r)return;if(!s.isPriceScaleVisible(r))return;const n=this._source.lastValueData(this._data.plotIndex,!1);if(n.noData)return;i.background=n.color;let o=n.color;"transparent"===o&&(o=this._model.properties().childs().scalesProperties.childs().backgroundColor.value()),i.textColor=this.generateTextColor(o),i.coordinate=n.coordinate,i.floatCoordinate=n.floatCoordinate,this._showAxisLabel()&&(e.text=n.text,e.visible=!0),this._updatePaneRendererData(t)}_showPaneLabel(){return!!this._model.properties().childs().scalesProperties.childs().showStudyPlotLabels.value()&&this._source.properties().showLabelsOnPriceScale.value()}_showAxisLabel(){return!!this._model.properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().showLabelsOnPriceScale.value()}_updatePaneRendererData(e){e.text="",this._showPaneLabel()&&(e.text=this._source.priceLabelText(this._data.plotIndex),e.visible=!0)}}},59572:(e,t,i)=>{"use strict";i.d(t,{applyOverridesToStudy:()=>c,applyOverridesToStudyDefaults:()=>h});var s=i(88537),r=i(50993);const n=(0,i(98125).getLogger)("Chart.Model.StudyPropertiesOverrider");var o,a;function l(e,t,i,s){const r=i.split(".");if(0===r.length||0===r[0].length)return;const l=function(e){const t=e.split(":");return{name:t[0],type:2===t.length?t[1]:null} -}(r[0]),c=l.name,h=l.type,d=null!==h,u=!d||"band"===h,p=!d||"area"===h,_=!d||"input"===h,m=!d||"plot"===h?a.getPlotIdByTitle(e,c):null,g=u?a.getBandIndexByName(e,c):null,f=p?a.getFilledAreaIdByTitle(e,c):null,v=_?a.getInputByName(e,c):null,S=t.hasOwnProperty(c);if((null!==m?1:0)+(null!==g?1:0)+(null!==f?1:0)+(null!==v?1:0)+(S?1:0)>1)return void n.logWarn(`Study '${e.description}' has ambiguous identifier '${c}'`);const y=r[1];if(null!==m){if(1===r.length)return void n.logWarn(`Path of sub-property of '${c}' plot for study '${e.description}' must be not empty`);const i=r.slice(1);o.applyPlotProperty(e,t,m,i,s)}else if(null!==v)o.applyInputValue(t,v,s);else if(null!==g){if(void 0===y)return void n.logWarn(`Property name of '${c}' band for study '${e.description}' must be set`);o.applyBandProperty(t,g,y,s)}else if(null!==f){if(void 0===y)return void n.logWarn(`Property name of '${c}' area for study '${e.description}' must be set`);o.applyFilledAreaProperty(t,f,y,s)}else S?o.setRootProperty(t,r,s):n.logWarn(`Study '${e.description}' has no plot or input '${c}'`)}function c(e,t){const i=e.properties(),s=i.state();for(const i in t)t.hasOwnProperty(i)&&l(e.metaInfo(),s,i,t[i]);i.mergeAndFire(s)}function h(e,t,i){for(const s in e){if(!e.hasOwnProperty(s))continue;const r=s.indexOf(".");if(-1===r)continue;const o=s.substring(0,r),c=a.getMetaInfoByDescription(t,o);if(null===c){n.logWarn("There is no such study "+o);continue}const h=i(c);null!==h?l(c,h,s.substring(r+1),e[s]):n.logWarn("Cannot apply overrides for study "+o)}}!function(e){const t={line:r.LineStudyPlotStyle.Line,histogram:r.LineStudyPlotStyle.Histogram,cross:r.LineStudyPlotStyle.Cross,area:r.LineStudyPlotStyle.Area,columns:r.LineStudyPlotStyle.Columns,circles:r.LineStudyPlotStyle.Circles,line_with_breaks:r.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:r.LineStudyPlotStyle.AreaWithBreaks};e.applyPlotProperty=function(e,i,o,a,l){if(void 0===i.styles)return void n.logWarn("Study does not have styles");const c=a[0];if("color"===c){return void function(e,t,i,r,o){if(void 0!==e.styles)if(null===t&&!isNaN(r)&&r>0)n.logWarn("Study plot does not have color #"+r);else{if(0===r||isNaN(r)){(0,s.ensureDefined)(e.styles[i]).color=String(o),r=0}null!==t&&((0,s.ensureDefined)(t.colors[r]).color=String(o))}else n.logWarn("Study does not have styles")}(i,function(e,t,i){if(void 0===e.plots)return null;for(const s of e.plots){if(!(0,r.isColorerPlot)(s)||void 0===t.palettes)continue;const e=t.palettes[s.palette];if(s.target===i&&void 0!==e)return e}return null}(e,i,o),o,a.length>1?parseInt(a[1]):NaN,l)}const h=i.styles[o];if(void 0!==h&&h.hasOwnProperty(c)){if("plottype"===c){const e=t[String(l)];if(void 0===e)return void n.logWarn("Unsupported plot type for plot: "+l);l=e}h[c]=l}else n.logWarn(`Study plot does not have property '${c}'`)},e.applyBandProperty=function(e,i,s,r){if(void 0===e.bands)return void n.logWarn("Study does not have bands");const o=e.bands[i];if(void 0!==o&&o.hasOwnProperty(s)){if("plottype"===s){const e=t[String(r)] -;if(void 0===e)return void n.logWarn("Unsupported plot type for band: "+r);r=e}o[s]=r}else n.logWarn(`Study band does not have property '${s}'`)},e.applyFilledAreaProperty=function(e,t,i,s){if(void 0===e.filledAreasStyle)return void n.logWarn("Study does not have areas");const r=e.filledAreasStyle[t];void 0!==r&&r.hasOwnProperty(i)?r[i]=s:n.logWarn(`Study area does not have property '${i}'`)},e.applyInputValue=function(e,t,i){void 0!==e.inputs&&e.inputs.hasOwnProperty(t)?e.inputs[t]=i:n.logWarn(`Study does not have input '${t}'`)},e.setRootProperty=function(e,t,i){if(0===t.length)return;let s=e;for(const e of t.slice(0,-1)){if(null==s||!s.hasOwnProperty(e))break;s=s[e]}const r=t[t.length-1];null!=s&&s.hasOwnProperty(r)?s[r]=i:n.logWarn("Study does not have property "+t.join("."))}}(o||(o={})),function(e){e.getInputByName=function(e,t){if(void 0===e.inputs)return null;t=t.toLowerCase();for(const i of e.inputs)if(i.name.toLowerCase()===t)return i.id;return null},e.getPlotIdByTitle=function(e,t){if(void 0===e.styles)return null;t=t.toLowerCase();for(const i in e.styles){const s=e.styles[i];if((void 0!==s&&void 0!==s.title?s.title:i).toLowerCase()===t)return i}return null},e.getFilledAreaIdByTitle=function(e,t){if(void 0===e.filledAreas)return null;t=t.toLowerCase();for(const i of e.filledAreas)if(i.title.toLowerCase()===t)return i.id;return null},e.getBandIndexByName=function(e,t){if(void 0===e.bands)return null;t=t.toLowerCase();for(let i=0;i{"use strict";var s=i(2015),r=i(2872),n=i(88537).assert,o=i(37667).symbolTitle,a=i(33981).StudyBarColorer,l=i(41855).StudyPriceAxisView,c=i(54376).createGraphicsPriceAxisViews,h=i(84801).ChartApiInterface,d=i(88564).DefaultProperty,u=i(97098).PriceFormatter,p=i(71053).PlotList,_=i(67072),m=i(76422),g=i(50993),f=g.LineStudyPlotStyle,v=i(55057).StudyPriceLineAxisView,S=i(8671).studyPlotFunctionMap,y=i(8671).studyEmptyPlotValuePredicate,b=i(72857).makeNextStudyId,w=i(67337),C=i(69774).StudyBase,P=i(13933);const{dataSourceChangeEvent:T}=i(33291);var x=i(20838).IntervalsVisibilitiesProperty,I=P.StudyStatusType,M=i(68906).colorToInteger,L=i(52418).intervalsVisibilitiesDefaults,A=i(98125).getLogger("Chart.Study"),E=w.enabled("datasource_copypaste"),k=w.enabled("study_symbol_ticker_description"),D=w.enabled("hide_unresolved_symbols_in_legend");function V(e,t,i){var s=new d(t,i,!0);s.removeProperty("intervalsVisibilities"),s.addChild("intervalsVisibilities",new x(i&&i.intervalsVisibilities)),s.addExclusion("visible"),s.addExclusion("precision"),s.addExclusion("minTick"),s.addExclusion("intervalsVisibilities");for(var r=0;r=0?c:l}return l}if(this._metaInfo.isTVScript||this._metaInfo.pine){if("text"===i)return this._metaInfo.defaults.inputs.text;if("pineId"===i)return this._metaInfo.scriptIdPart;if("pineVersion"===i)return this._metaInfo.pine?this._metaInfo.pine.version:"-1";if("color"===e.type&&this._metaInfo.isRGB){var h=this._properties.inputs[i].value();return M(h)}if("price"===e.type){var d=this._properties.inputs[i].value();return t.priceInputsForDisplay?this.formatter().format(d):d}return this._properties.inputs[i].value()}return this._properties.inputs[i].value()}_rebindToSource(e,t){var i=this.parentSource();if(this._isChildStudy){var s;this._source.unsetChild(this);var r=null;if(e===this._model.mainSeries())this._source=null,this._isChildStudy=!1,this._ownerSource=null,s=this._series.seriesSource().instanceId(),r=h.REBIND_STUDY_CHILD_TO_STANDALONE;else{if(!(e instanceof R))return A.logError("Unable to rebind study to source of this type"),!1;this._ownerSource=e,this._source=e,s=this._source.sourceId(),this._source.setChild(this),this._source.isHibernated()&&this._source.start()}this._incrementTurnaround(),this.disablePriceRangeReady(),this._chartApi.rebindStudy(this._studyId,this._turnaround,s,this._studyName,t,this._handler,r)}else{if(!(e instanceof R))return A.logError("Unable to rebind study to source of this type"),!1;var n=e.isHibernated();n&&e.start();var o=!1;if(this._canCreateStudyWithRebindType(h.REBIND_STUDY_STANDALONE_TO_CHILD)&&(this._incrementTurnaround(),this.disablePriceRangeReady(),o=this._chartApi.rebindStudy(this._studyId,this._turnaround,e.sourceId(),this._studyName,t,this._handler,h.REBIND_STUDY_STANDALONE_TO_CHILD)),!o)return n&&e.stop(),!1;this._isChildStudy=!0,this._ownerSource=e,this._source=e,this._source.setChild(this),this._childStudyByRebind.fire()}var a=this.m_priceScale,l=e.priceScale();if(a!==l){var c=this._model.paneForSource(this),d=this._model.paneForSource(e);c===d&&d.move(this,l,!0)}const u=this.parentSource() -;return i.formatterChanged().unsubscribe(this,this._onSourceFormatterChanged),u.formatterChanged().subscribe(this,this._onSourceFormatterChanged),i.priceStepChanged().unsubscribe(this,this._onSourcePriceStepChanged),u.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),i.currencyChanged().unsubscribeAll(this),u.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),i.unitChanged().unsubscribeAll(this),u.unitChanged().subscribe(this,this._onSourceUnitChanged),i.priceRangeReadyChanged().unsubscribeAll(this),u.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),this._recreatePriceFormattingDependencies(),!0}childStudyByRebind(){return this._childStudyByRebind}_changeInputsImpl(e,t){var i=this.source(),s=this._properties.inputs&&this._properties.inputs.state(),r=_.getSourceIdByInputs(this._metaInfo.inputs,s),n=!0;if(r)if("high"===r||"open"===r||"low"===r||"close"===r||"hl2"===r||"ohl3"===r||"ohlc4"===r)i=this._model.mainSeries();else for(var o=this._model.dataSources().filter((function(e){return e instanceof R&&e.canHaveChildren()})),a=0;a=0&&(e="_v"+this._metaInfo.pine.version),{symbol:this.series().actualSymbol(),resolution:this.series().interval(),study:this._metaInfo.shortId+e}}_sendTelemetryReport(e,t,i){void 0===i&&(i=this._getTelemetryAdditionalData());var s=Object.assign(t,{additional:i});(void 0).sendChartReport(e,s)}_sendTelemetryCounter(e,t){this._sendTelemetryReport(e,{count:1},t)}onAboutToBeDestroyed(){return this._aboutToBeDestroyed}destroy(){this._aboutToBeDestroyed.fire(), -this._isDestroyed=!0,null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._properties.precision.listeners().unsubscribe(this,this._precisionChanged),this._showStudyArgumentsProperty.listeners().unsubscribe(this,this.invalidateTitleCache),this._properties.description.listeners().unsubscribe(this,this.invalidateTitleCache),this._properties.shortDescription&&this._properties.shortDescription.listeners().unsubscribe(this,this.invalidateTitleCache),this._model.mainSeries().dataEvents().symbolResolved().unsubscribeAll(this),this.hasBarColorer()&&this._properties.visible.listeners().unsubscribe(this._model.mainSeries(),this._model.mainSeries().invalidateBarStylesCache),this._model.mainSeries().dataEvents().symbolResolved().unsubscribe(this,this._recreatePriceFormattingDependencies),void 0!==this._properties.offsets&&this._properties.offsets.listeners().unsubscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offset&&this._properties.offset.listeners().unsubscribe(this,this._updateMaxOffsetValue),super.destroy()}desiredPriceScalePosition(){return this.metaInfo().isTVScriptStub?"overlay":this.metaInfo().linkedToSeries?"as-series":void 0===this.metaInfo().priceScale?null:["right","left","overlay"][this.metaInfo().priceScale]}guiPlotName(e){var t=this.properties().styles;return t&&t[e]&&t[e].title?t[e].title.value():this.title()}formatterChanged(){return this._formatterChanged}copiable(){return E&&!this.isChildStudy()}setPriceScale(e){super.setPriceScale(e),m.emit("study_event",this.id(),"price_scale_changed")}getStudyName(){return this._studyName}}TradingView.Study=R,t.Study=R,t.prepareStudyProperties=function(e,t,r,o,a){return function(e,t,r,o,a,l){var c=function(e,t,r,o){var a=i(31752);if(_.versionOf(e)<1)throw new Error("This function cannot work with metainfo of the old format version. Required format version >= 1");var l=TradingView.clone(defaults("study"));B(l,e);var c=_.getStudyPropertyRootName(e),h=TradingView.clone(defaults(c,o));h.intervalsVisibilities=TradingView.clone(L),("Overlay"===e.shortId||"Compare"===e.shortId)&&(h.currencyId=null,h.unitId=null);e.isTVScript&&e.TVScriptSourceCode!==h.TVScriptSourceCode&&(h=TradingView.clone(TradingView.factoryDefaults(c,o)));TradingView.merge(l,h),t&&(n(!(t instanceof s),"propsState should not be an instance of Property"),TradingView.merge(l,t));var d=TradingView.clone(e),u={};a.mergeInputsObjPart(u,d.defaults.inputs),a.mergeInputsObjPart(u,l.inputs),l.inputs=u,delete d.inputs,delete d.defaults.inputs;var p={};if(TradingView.merge(p,d.defaults),TradingView.merge(p,TradingView.factoryDefaults(c)),TradingView.merge(p,l),TradingView.merge(p,d),delete p.defaults,l=p,null!==r){var m=r.model().studiesColorRotatorFactory().getColorRotator(e);null!==m&&("Overlay@tv-basicstudies"===e.id?l.lineStyle.color=m.getColor(l.lineStyle.color,e):TradingView.merge(l,function(e,t){for(var i in e.styles){var s=e.styles[i].color;s&&(e.styles[i].color=t.getColor(s))}return e}(l,m)))}t&&TradingView.merge(l.styles,t.styles) -;return l}(e,t,r,o),h=_.getSourceInputIds(e);if(h.length>0){var d=h[0];l instanceof R?c.inputs[d]="{pid}$0":void 0!==c.inputs[d]&&-1!==c.inputs[d].indexOf("$")&&(c.inputs[d]="close")}return V(e,a,c)}(e,t,r,o,_.getStudyPropertyRootName(e),a)},t.prepareStudyPropertiesForLoadChart=function(e,t,s,r,n,o){return function(e,t,s,r,n,o,a){var l=function(e,t,s,r,n,o){var a=i(31752);e.version&&s.version&&e.version!==s.version&&A.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+s.version);var l=TradingView.clone(defaults("study"));l.intervalsVisibilities=TradingView.clone(L),TradingView.merge(l,TradingView.factoryDefaults(_.getStudyPropertyRootName(e))),B(l,e),TradingView.merge(l,s),l=n.updateStudyState(l,e,t),void 0!==o&&(l=o(s,l,e,t));var c=TradingView.clone(t||e);if(c&&_.versionOf(c)>=1){var h={};a.mergeInputsObjPart(h,(c.defaults||{}).inputs),a.mergeInputsObjPart(h,l.inputs),l.inputs=h,delete c.inputs,c.defaults&&delete c.defaults.inputs;var d={};TradingView.merge(d,c.defaults),TradingView.merge(d,TradingView.factoryDefaults(_.getStudyPropertyRootName(c))),TradingView.merge(d,l),delete c.defaults,TradingView.merge(d,c),l=d}return l}(e,t,s,0,n,a);return V(t||e,o,l)}(e,t,s,0,n,_.getStudyPropertyRootName(e),o)}},56138:(e,t,i)=>{"use strict";i.d(t,{plotShapesData:()=>r});var s=i(28353);const r={shape_arrow_down:{guiName:(0,s.t)("Arrow Down"),id:"shape_arrow_down",paneRendererClass:"PaneRendererArrowDown",pineName:"shape.arrowdown",icon:"arrow_down"},shape_arrow_up:{guiName:(0,s.t)("Arrow Up"),id:"shape_arrow_up",paneRendererClass:"PaneRendererArrowUp",pineName:"shape.arrowup",icon:"arrow_up"},shape_circle:{guiName:(0,s.t)("Circle"),id:"shape_circle",paneRendererClass:"PaneRendererCircleShape",pineName:"shape.circle",icon:"circle"},shape_cross:{guiName:(0,s.t)("Cross"),id:"shape_cross",paneRendererClass:"PaneRendererCrossShape",pineName:"shape.cross",icon:"cross"},shape_diamond:{guiName:(0,s.t)("Diamond"),id:"shape_diamond",paneRendererClass:"PaneRendererDiamond",pineName:"shape.diamond",icon:"diamond"},shape_flag:{guiName:(0,s.t)("Flag"),id:"shape_flag",paneRendererClass:"PaneRendererFlagShape",pineName:"shape.flag",icon:"flag"},shape_label_down:{guiName:(0,s.t)("Label Down"),id:"shape_label_down",paneRendererClass:"PaneRendererLabelDown",pineName:"shape.labeldown",icon:"label_down"},shape_label_up:{guiName:(0,s.t)("Label Up"),id:"shape_label_up",paneRendererClass:"PaneRendererLabelUp",pineName:"shape.labelup",icon:"label_up"},shape_square:{guiName:(0,s.t)("Square"),id:"shape_square",paneRendererClass:"PaneRendererSquare",pineName:"shape.square",icon:"square"},shape_triangle_down:{guiName:(0,s.t)("Triangle Down"),id:"shape_triangle_down",paneRendererClass:"PaneRendererTriangleApexDown",pineName:"shape.triangledown",icon:"triangle_down"},shape_triangle_up:{guiName:(0,s.t)("Triangle Up"),id:"shape_triangle_up",paneRendererClass:"PaneRendererTriangleApexUp",pineName:"shape.triangleup",icon:"triangle_up"},shape_xcross:{guiName:(0,s.t)("X Cross"),id:"shape_xcross", -paneRendererClass:"PaneRendererXCross",pineName:"shape.xcross",icon:"x_cross"}}},27306:(e,t,i)=>{"use strict";var s=i(15625).Version,r=i(98125).getLogger("Chart.StudyMigration");function n(e){this._studyId=e,this._maxToVers=s.ZERO,this._maxFromVers=s.ZERO,this._migrs=[]}n.prototype.addMigration=function(e,t,i){var r=s.parse(e),n=s.parse(t);r.isGreater(this._maxFromVers)&&(this._maxFromVers=r),n.isGreater(this._maxToVers)&&(this._maxToVers=n),this._migrs.push({fromVers:r,toVers:n,rules:i})},n.prototype.updateInputs=function(e,t,i){if(!i)return i;for(var s=TradingView.clone(i),n=e;n.isLess(t);){var o=this._findMigration(n);if(null==o)break;if(r.logNormal("Migrating study inputs from "+o.fromVers+" to "+o.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(o)+", inputs: "+JSON.stringify(i)),s=this._applyMigration(s,o),!n.isLess(o.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");n=o.toVers}return n>e&&r.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(s)),s},n.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,s=0;s=0||t.indexOf(e)>=0},n._applyInputChangedMinMaxRule=function(e,t){if("adjustValIfNeeded"!==t.action)throw new Error("Unknown action "+t.action+" for rule with type "+t.type) -;var i=e[t.inputId];return it.maxVal&&(e[t.inputId]=t.maxVal),r.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},n._applyInputChangedOptionsRule=function(e,t){if(!(["text"].indexOf(t.inputType)>=0&&"resetToDefValIfNeeded"===t.action))throw new Error("Unexpected rule.inputType="+t.inputType+" in rule.action="+t.action);var i=e[t.inputId];return t.options.indexOf(i)<0&&(e[t.inputId]=t.defVal,r.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=n},9771:(e,t,i)=>{"use strict";var s=i(66101).Study,r=i(52457).OverlayLegendValuesProvider,n=i(79284).OverlayStatusProvider,o=i(33981).SeriesBarColorer,a=i(82927).StudyOverlayBase;t.study_Overlay=class extends a{constructor(e,t,i,s){super(e,t,i,s),this._paneView=null;var r=this;this.properties().minTick.listeners().subscribe(null,(function(){r._recreatePriceFormattingDependencies(),r.updateAllViews(),r._model.fullUpdate()}))}_showLastValueOnPriceScale(){return this._model.properties().scalesProperties.showSeriesLastValue.value()}barColorer(){return new o(this)}_tryChangeInputs(){s.prototype._tryChangeInputs.call(this),this.m_formatter=null,this.priceScale().updateFormatter()}_onQuotesUpdate(e,t){!this._legendView||void 0===t.values.change&&void 0===t.values.change_percent||(this._legendView.update(),this._model.updateSource(this))}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),super.destroy()}tags(){var e=[],t=this.symbolInfo();return t?e.push(t.name):this._properties.inputs.symbol.value()&&e.push(this._properties.inputs.symbol.value()),e}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,55976))).StudyOverlayDefinitionsViewModel}defaultPlotIdForAlert(){return""}changeStyles(){this.data().each((function(e,t){t[TradingView.STYLE_PLOT]=null})),s.prototype.changeStyles.call(this)}valuesProvider(){return new r(this,this.model())}statusProvider(e){return new n(this,this.model())}}},67509:(e,t,i)=>{"use strict";var s=i(88537).assert,r=i(80643).clone,n=i(66101).Study,o=i(71053).PlotList,a=i(8671).studyPlotFunctionMap,l=i(8671).studyEmptyPlotValuePredicate;class c{constructor(e,t,i){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=i}rebuildData(e){var t=this._targetPlotIndex+1,i=this._strategyPlotIndex+1,s=null,r=null;e.range(this._startIndex||e.firstIndex(),e.lastIndex()).each((function(n,o){var a=o[t],l=o[i]?Math.round(o[i]):null;if(o[t]=null,o[i]=null,!l||l>0)return!1;var c=n+l,h={pointIndex:c,value:a};if(r){if(r.pointIndex!==h.pointIndex){c>=0&&(e.valueAt(c)[t]=a);var d=!1;s&&(d=s.value<=r.value&&r.value<=a||s.value>=r.value&&r.value>=a),d?r.pointIndex>=0&&(e.valueAt(r.pointIndex)[t]=null):s=r,r=h}}else r=h;return!1}))}}t.study_ScriptWithDataOffset=class extends n{constructor(e,t,i,s){super(e,t,i,s),this._underlyingData=new o(a(s),l)}clearData(){super.clearData(),this._underlyingData.clear()}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache() -;var t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this.m_data=new o(a(this._metaInfo),l));var i=this.m_data.lastIndex();this._underlyingData.range(i,this._underlyingData.lastIndex()).each(function(e,t){return this.m_data.add(e,r(t)),!1}.bind(this)),this._plotsForStrategyProcessing().forEach((function(e){new c(e.strategyIndex,e.targetIndex,i).rebuildData(this.m_data)}),this)}_plotsForStrategyProcessing(){var e=[];return this._metaInfo.plots.forEach((function(t,i){if("dataoffset"===t.type){var r=this._metaInfo.plots.findIndex((function(e){return e.id===t.target}));s(r>=0,"target plot not found for strategy plot "+t.id);var n={strategyIndex:i,targetIndex:r};e.push(n)}}),this),e}}},31752:(e,t,i)=>{"use strict";var s=i(88537).assert,r=i(15625).Version,n=i(98125).getLogger("Chart.Study.Versioning"),o=i(76861),a=i(67072),l=i(14905).extractPineId,c=i(5402).migrateMetaInfoAndPropState;function h(e,t){if(!e)throw new Error("No studies metainfo");var s=i(27306);if(this._studiesMetainfo=e,!t)throw new Error("No studies migrations");this._studiesMigrations=t,this._migrations={};for(var r=0;r=22)return t;for(var i={},s=0,r=0;;){var n=t[r];if(void 0===n)break;var o=t[n.id];n.isFake&&(n.id="in_"+s++),i[r]=n,i[n.id]=o,r++}return i}]}h.prototype.updateMetaInfo=function(e){if(!e)return e;s(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");for(var t=null,i=this._studiesMetainfo,r=0;r=12&&l<=26){var c={};for(o=0;o=12&&c<=26){var d=r.columns;r.columns=[];for(var u=0;ut&&n.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description))}},h._fixInputsMaxValue=function(e,t){if(!TradingView.isAbsent(t)){var i=h.INPUT_MAX_VALUE;if(t.inputs)for(var s=0;si&&(a.max=i))}if(e&&e.inputs){var r=h.splitInputs(e.inputs),n=r.arr;for(var o in n){var a;"integer"===(a=n[o]).type&&(a.max&&a.max>i&&(a.max=i))}e.inputs=TradingView.merge(r.obj,r.arr)}}},h.prototype.patchPropsStateAndMetaInfo=function(e,t,i){"Script$BOOKER"!==t.productId||t.alerts||delete e.alerts,h._fixInputsOrder(e,t),h._fixInputsMaxValue(e,t);var s=h.splitInputs(e.inputs);e.inputs=s.obj;var r=a.versionOf(t);ri&&(i=r))}e[i+1]=t},h.splitInputs=function(e){var t={},i={};for(var s in e)isNumber(parseInt(s,10))?t[s]=e[s]:i[s]=e[s];return{arr:t,obj:i}},h.findInputKeyById=function(e,t){var i=null;for(var s in e)if(isNumber(parseInt(s,10))&&e[s].id===t){i=s;break}return i},h.getInputKeyById=function(e,t){var i=h.findInputKeyById(e,t);if(!i)throw new Error("Cannot find input with id: "+t);return i},e.exports=h},14791:(e,t,i)=>{"use strict";i.d(t,{areEqualSymbols:()=>r,symbolSameAsCurrent:()=>o});const s=i(67337).enabled("uppercase_instrument_names");function r(e,t){return void 0===e?void 0===t:void 0!==t&&(s?e.toUpperCase()===t.toUpperCase():e===t)}function n(e,t){return e.some(e=>r(t,e))}function o(e,t,i){if(r(t,e))return!0;if(i){if(r(i.full_name,e)||r(i.pro_name,e))return!0 -;if(r(i.ticker,e))return!0;if(i.aliases&&n(i.aliases,e))return!0;if(i.alternatives&&n(i.alternatives,e))return!0;if(0===e.indexOf("FRA:")&&r(i.pro_name,e.replace("FRA:","FWB:")))return!0}return!1}},76818:(e,t,i)=>{"use strict";i.d(t,{TextWidthCache:()=>s});class s{constructor(e=150){this._actualSize=0,this._usageTick=1,this._oldestTick=1,this._tick2Labels=new Map,this._cache=new Map,this._maxSize=e}reset(){this._actualSize=0,this._cache.clear(),this._usageTick=1,this._oldestTick=1,this._tick2Labels.clear()}measureText(e,t){return this.getMetrics(e,t).width}yMidCorrection(e,t){const i=this.getMetrics(e,t);return"actualBoundingBoxAscent"in i&&"actualBoundingBoxDescent"in i?(i.actualBoundingBoxAscent-i.actualBoundingBoxDescent)/2:0}getMetrics(e,t){const i=this._cache.get(t);if(void 0!==i)return i.metrics;if(this._actualSize===this._maxSize){const e=this._tick2Labels.get(this._oldestTick);this._tick2Labels.delete(this._oldestTick),this._cache.delete(e),this._oldestTick++,this._actualSize--}e.save(),e.textBaseline="middle";const s=e.measureText(t);return e.restore(),0===s.width&&t.length||(this._cache.set(t,{metrics:s,tick:this._usageTick}),this._tick2Labels.set(this._usageTick,t),this._actualSize++,this._usageTick++),s}}},5231:(e,t,i)=>{"use strict";var s=i(2872);function r(){this._marksByIndex=new Map,this._marksBySpan=[],this.changed=new s,this.minIndex=void 0,this.maxIndex=void 0}r.prototype.reset=function(){this._resetImpl(),this.changed.fire()},r.prototype._resetImpl=function(){this._marksByIndex=new Map,this._marksBySpan=[],this.minIndex=void 0,this.maxIndex=void 0,this._cache=void 0},r.prototype.merge=function(e){if(0!==e.length){var t=e[0].index,i=e[e.length-1].index;t<=this.minIndex&&i>=this.maxIndex&&this._resetImpl();for(var s=this._marksBySpan,r=new Set,n=0;n=this.maxIndex&&this.maxIndex--,this.maxIndex2;){if(1e3*this._marksByIndex.get(t).time===e)return t;if(1e3*this._marksByIndex.get(i).time===e)return i;var s=Math.round((t+i)/2);1e3*this._marksByIndex.get(s).time>e?i=s:t=s}return t},r.prototype.build=function(e,t){var i=Math.ceil(t/e);if(this._maxbar===i&&this._cache)return this._cache;this._maxbar=i;for(var s=[],r=this._marksBySpan.length;r--;)if(this._marksBySpan[r]){var n=s;s=[];for(var o=n.length,a=0,l=this._marksBySpan[r],c=l.length,h=1/0,d=-1/0,u=0;u=i&&_-d>=i&&(s.push(p),d=_)}for(;a{"use strict";i.d(t,{TimeAxisView:()=>o});var s=i(68906),r=i(93435);class n{constructor(){this._data=null}setData(e){this._data=e}draw(e,t,i){if(null===this._data||!this._data.visible||0===this._data.text.length)return;const s=this._data;e.font=t.font;const n=Math.round(t.widthCache.measureText(e,s.text));if(n<=0)return;e.save();const o=t.paddingHorizontal,a=n+2*o,l=a/2;let c=s.coordinate,h=Math.floor(c-l)+.5;if(s.alwaysInViewPort){const e=s.width;h<0?(c+=Math.abs(0-h),h=Math.floor(c-l)+.5):h+a>e&&(c-=Math.abs(e-(h+a)),h=Math.floor(c-l)+.5)}const d=h+a,u=Math.ceil(0+t.borderSize+t.offsetSize+t.paddingTop+t.fontSize+t.paddingBottom);e.fillStyle=s.background;const p=Math.round(h*i),_=Math.round(0*i),m=Math.round(d*i),g=Math.round(u*i),f=Math.round(2*i);e.beginPath(),e.moveTo(p,_),e.lineTo(p,g-f),e.arcTo(p,g,p+f,g,f),e.lineTo(m-f,g),e.arcTo(m,g,m,g-f,f),e.lineTo(m,_),e.fill();const v=0+t.borderSize+t.offsetSize+t.paddingTop+t.fontSize/2;e.textAlign="left",e.textBaseline="middle",e.fillStyle=s.color;const S=t.widthCache.yMidCorrection(e,"Apr0");e.translate((h+o)*i,(v+S)*i),(0,r.drawScaled)(e,i,()=>e.fillText(s.text,0,0)),e.restore()}}class o{constructor(e){this._renderer=new n,this._rendererData={background:"",color:"",coordinate:0,text:"",visible:!1,width:0, -alwaysInViewPort:!0},this._invalidated=!0,this._model=e,this._renderer.setData(this._rendererData)}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}coordinate(){return this._rendererData.coordinate}_getAlwaysInViewPort(){return!0}_updateImpl(){const e=this._rendererData;if(e.visible=!1,this._model.timeScale().isEmpty()||!this._isVisible())return;const t=this._getIndex();if(null===t)return;e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(),e.color=(0,s.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t),e.alwaysInViewPort=this._getAlwaysInViewPort();const i=this._model.timeScale().indexToUserTime(t);e.text=null!==i?this._model.dateTimeFormatter().format(i):"",this._invalidated=!1}}},2271:(e,t,i)=>{"use strict";i.d(t,{INVALID_TIME_POINT_INDEX:()=>s});const s=-2e6},5816:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MINUTE_SPAN:()=>s,HOUR_SPAN:()=>r,DAY_SPAN:()=>n,WEEK_SPAN:()=>o,MONTH_SPAN:()=>a,YEAR_SPAN:()=>l,DEFAULT_BAR_SPACING:()=>c});const s=20,r=30,n=40,o=50,a=60,l=70,c=6},23075:(e,t,i)=>{"use strict";i.d(t,{trackDrawingCreated:()=>r,trackDrawingPasted:()=>n,trackDrawingCloned:()=>o,trackChartStyleChanged:()=>a});i(88537),i(16654);function s(e,t){0}function r(e){s()}function n(e){s()}function o(e){s()}function a(e){0}},35218:(e,t,i)=>{"use strict";i.d(t,{translatedIntervalString:()=>r});i(28353);var s=i(9315);function r(e){const t=(0,s.getTranslatedResolutionModel)(e,!0);return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},17691:(e,t,i)=>{"use strict";i.d(t,{ApplyLineToolTemplateUndoCommand:()=>r});var s=i(35762);class r extends s.UndoCommand{constructor(e,t,i){super(i),this._source=e,this._newState=t,this._oldState=e.properties().state()}redo(){this._source.applyTemplate(this._newState)}undo(){this._source.applyTemplate(this._oldState)}}},79495:(e,t,i)=>{"use strict";i.d(t,{ExcludeLineToolsFromGroupUndoCommand:()=>l});var s=i(88537),r=(i(94419),i(28353)),n=i(24980),o=i(35762);const a=new n.TranslatedString("exclude line tools from group {group}",(0,r.t)("exclude line tools from group {group}"));class l extends o.UndoCommand{constructor(e,t,i){super(a.format({group:t.name()})),this._model=e,this._groupId=t.id,this._groupName=t.name(),this._lineToolsIds=i.map(e=>e.id())}redo(){const e=(0,s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));e.excludeLineTools(t),0===e.lineTools().length&&this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e)),t=this._model.lineToolsGroupModel().groupForId(this._groupId);null!==t?t.addLineTools(e):this._model.lineToolsGroupModel().createGroup(e,this._groupName,this._groupId)}}},8597:(e,t,i)=>{"use strict";i.d(t,{MergeUpUndoCommand:()=>o,MergeDownUndoCommand:()=>a,MergeToTargetPane:()=>l});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i){ -super(e,t,i),this._restorePane=!1}redo(){const e=this._chartModel.panes().length,t=this._chartModel.panes()[this._targetPaneIndex()],i=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),r=(0,s.ensureNotNull)(this._chartModel.paneForSource(i)),n=this._chartModel.children(i,!0);r.bulkActionMacro(()=>{n.forEach(e=>this._chartModel.detachSource(e)),this._restorePane=this._chartModel.detachSource(i)});const o="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,a=t.findSuitableScale(i,void 0,o),l=0===a.dataSources().length;if(t.bulkActionMacro(()=>{t.addDataSource(i,a,!1),n.forEach(e=>t.addDataSource(e,a,!1))}),i===this._chartModel.mainSeries()){const e=t.priceScalePosition(a);t.movePriceScale(a,e,0)}if(l){(0,s.ensureNotNull)(i.priceScale()).restoreState(this._newPriceScaleState(t.isOverlay(i)))}this._chartModel.fullUpdate(),e!==this._chartModel.panes().length&&this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){let e;e=this._restorePane?this._chartModel.createPane(this._initialPaneIndex):this._chartModel.panes()[this._initialPaneIndex];const t=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=(0,s.ensureNotNull)(this._chartModel.paneForSource(t)),r=this._chartModel.children(t,!0);i.bulkActionMacro(()=>{r.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(t)});let n=e.getPriceScaleById(this._initialPriceScaleId);null===n&&(n=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro(()=>{e.addDataSource(t,n,!0),r.forEach(t=>e.addDataSource(t,n,!1))}),(0,s.ensureNotNull)(t.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex-1}}class a extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex+1}}class l extends n{constructor(e,t,i,s){super(e,t,s),this._targetPane=i}_targetPaneIndex(){return this._targetPane}}},21749:(e,t,i)=>{"use strict";i.d(t,{MoveSourceUndoCommand:()=>n});var s=i(88537),r=i(35762);class n extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._sourceId=t.id();const r=(0,s.ensureNotNull)(t.priceScale());this._initialPriceScaleId=r.id(),this._initialPriceScaleState=(0,s.ensureNotNull)(t.priceScale()).state();const n=(0,s.ensureNotNull)(e.paneForSource(t));this._initialPriceScalePosition=n.priceScalePosition(r),this._initialPriceScaleIndex=n.priceScaleIndex(r,this._initialPriceScalePosition),this._initialPaneIndex=e.panes().indexOf(n)}_newPriceScaleState(e){const t={...this._initialPriceScaleState};return delete t.m_isLockScale,delete t.id,delete t.m_topMargin,delete t.m_bottomMargin,t}_originalPriceScaleState(){return this._initialPriceScaleState}}},27579:(e,t,i)=>{"use strict";i.d(t,{MoveToNewPriceScaleUndoCommand:()=>o,MoveToExistingPriceScaleUndoCommand:()=>a});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i,s){super(e,t,s), -this._sourcePaneRemoved=!1,this._targetPaneIndex=e.panes().indexOf(i)}redo(){const e=this._chartModel.panes()[this._initialPaneIndex],t=this._chartModel.panes()[this._targetPaneIndex],i=e!==t,r=this._targetPriceScale(t),n=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),o=this._chartModel.children(n,!0);for(const e of o)i?(this._chartModel.detachSource(e),t.addDataSource(e,r,!1)):t.move(e,r);i?(this._sourcePaneRemoved=this._chartModel.detachSource(n),t.addDataSource(n,r,!1)):t.move(n,r);const a=t.priceScalePosition(r);t.movePriceScale(r,a,this._targetPriceScaleIndex(n)),this._chartModel.fullUpdate()}undo(){this._sourcePaneRemoved&&this._chartModel.createPane(this._initialPaneIndex);const e=this._chartModel.panes()[this._initialPaneIndex],t=e!==this._chartModel.panes()[this._targetPaneIndex],i=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId));let r=e.getPriceScaleById(this._initialPriceScaleId);null===r&&(r=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex));const n=this._chartModel.children(i,!0);for(const i of n)t?(this._chartModel.detachSource(i),e.addDataSource(i,r,!1)):e.move(i,r);t?(this._chartModel.detachSource(i),e.addDataSource(i,r,!1)):e.move(i,r),(0,s.ensureNotNull)(i.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScalePosition=s}_targetPriceScale(e){const t=e.createPriceScaleAtPosition(this._targetPriceScalePosition);return t.restoreState(this._newPriceScaleState("overlay"===this._targetPriceScalePosition)),t}_targetPriceScaleIndex(e){return e===this._chartModel.mainSeries()?0:void 0}}class a extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScaleId=s.id()}_targetPriceScale(e){return(0,s.ensureNotNull)(e.getPriceScaleById(this._targetPriceScaleId))}_targetPriceScaleIndex(e){}}},69746:(e,t,i)=>{"use strict";i.d(t,{PriceScaleChangeUndoCommand:()=>h});var s=i(88537),r=i(28353),n=i(24980),o=i(98125),a=i(35762);const l=(0,o.getLogger)("Chart.ChartUndoModel"),c=new n.TranslatedString("scale price",(0,r.t)("scale price"));class h extends a.UndoCommand{constructor(e,t,i,s,r){super(c,!1),this._newPriceScaleState=null,this._model=e,this._paneIndex=e.panes().indexOf(t),this._priceScaleId=i.id(),this._state=s,this._timestamp=r?performance.now():null}undo(){if(null!==this._newPriceScaleState)return void l.logDebug("PriceScaleChangeUndoCommand.undo: Command is already undone");const[e,t]=this._paneAndScale();this._newPriceScaleState=t.state(),this._model.restorePriceScaleState(e,t,this._state)}redo(){if(null===this._newPriceScaleState)return void l.logDebug("PriceScaleChangeUndoCommand.redo: Command is not undone");const[e,t]=this._paneAndScale();this._model.restorePriceScaleState(e,t,this._newPriceScaleState),this._newPriceScaleState=null}canMerge(e){ -return e instanceof h&&null!==this._timestamp&&null!==e._timestamp&&null===this._newPriceScaleState&&e._model===this._model&&e._paneIndex===this._paneIndex&&e._priceScaleId===this._priceScaleId&&Math.abs(e._timestamp-this._timestamp)<1e3}merge(e){this._timestamp=e._timestamp}_paneAndScale(){const e=this._model.panes()[this._paneIndex],t=(0,s.ensureNotNull)(e.getPriceScaleById(this._priceScaleId));return[e,t]}}},65284:(e,t,i)=>{"use strict";i.d(t,{RemoveSourcesCommand:()=>m});var s=i(88537),r=i(28353),n=i(24980),o=i(35762),a=i(14291),l=i(98125),c=i(52546),h=i(81851),d=i(79495);class u extends o.UndoCommand{constructor({title:e,chartModel:t,lineDataSourceIds:i}){super(e),this._excludeLineToolsFromGroupUndoCommands=[],this._undoState=[],this._chartModel=t,this._lineDataSourceIds=i}redo(){const e=this._lineDataSourceIds.map(e=>(0,s.ensureNotNull)(this._chartModel.dataSourceForId(e)));this._groupLineToolsByGroups(e).forEach((e,t)=>{const i=new d.ExcludeLineToolsFromGroupUndoCommand(this._chartModel,t,e);i.redo(),this._excludeLineToolsFromGroupUndoCommands.push(i)}),e.forEach(e=>{this._undoState.push({state:e.state(!1),paneIndex:this._chartModel.panes().indexOf((0,s.ensureNotNull)(this._chartModel.paneForSource(e))),sharingMode:e.sharingMode().value()}),this._chartModel.removeSource(e)})}undo(){var e;for(let t=this._undoState.shift();t;t=this._undoState.shift())null===(e=this._chartModel.restoreSource(!1,t.paneIndex,null,t.state,null))||void 0===e||e.share(t.sharingMode);this._excludeLineToolsFromGroupUndoCommands.forEach(e=>e.undo())}_groupLineToolsByGroups(e){const t=this._chartModel.lineToolsGroupModel();return e.reduce((e,i)=>{const s=t.groupForLineTool(i);if(null!==s){const t=e.get(s)||[];t.push(i),e.set(s,t)}return e},new Map)}}const p=(0,l.getLogger)("Chart.RemoveSourcesCommand"),_=new n.TranslatedString("remove line data sources",(0,r.t)("remove line data sources"));class m extends o.UndoCommand{constructor(e,t,i){super(i),this._removeLineDataSourcesUndoCommand=null,this._initialPriceScaleMode=null;const[r,n]=(0,c.closeSourcesSet)(e,t).reduce((e,t)=>((0,a.isLineTool)(t)?e[1].push(t.id()):e[0].push(t.id()),e),[[],[]]);this._chartModel=e,this._sourceIds=r,this._lineDataSourceIds=n,this._sourceStates=[],this._paneIndexes=[],this._priceScalePositionIds=[],this._paneStates=[],this._restorePanes=[];const o=t[0];1===t.length&&(0,h.isStudy)(o)&&(this._initialPriceScaleMode=(0,s.ensureNotNull)(o.priceScale()).mode())}removedIds(){return[...this._sourceIds,...this._lineDataSourceIds]}redo(){this._chartModel.panes().length;const e=this._sourceIds.map(e=>(0,s.ensureNotNull)(this._chartModel.dataSourceForId(e)));this._sourceStates=e.map(e=>(0,s.ensureNotNull)(e.state(!1)));const t=e.map(e=>(0,s.ensureNotNull)(this._chartModel.paneForSource(e)));this._paneIndexes=t.map(e=>this._chartModel.panes().indexOf(e)),this._lineDataSourceIds.length>0&&(this._removeLineDataSourcesUndoCommand=new u({title:_,chartModel:this._chartModel,lineDataSourceIds:this._lineDataSourceIds}),this._removeLineDataSourcesUndoCommand.redo()), -this._priceScalePositionIds=e.map((e,i)=>{const s=e.priceScale();if(null===s)return null;const r=t[i].priceScalePosition(s);return{id:s.id(),position:r,priceScaleIndex:t[i].priceScaleIndex(s,r)}});const i=new Set;e.forEach((e,t)=>{i.add(this._paneIndexes[t])}),this._paneStates=e.map((e,s)=>{const r=this._paneIndexes[s];return i.has(r)?t[s].state(!1,!0):null}),this._restorePanes=e.map(e=>this._chartModel.removeSource(e))}undo(){const e=[];for(let t=this._sourceStates.length-1;t>=0;t--){const i=this._chartModel.restoreSource(this._restorePanes[t],this._paneIndexes[t],this._paneStates[t],this._sourceStates[t],this._priceScalePositionIds[t]);i&&e.push(i)}e.some((t,i)=>t.id()!==this._sourceIds[e.length-i-1])&&p.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&(0,s.ensureNotNull)(e[0].priceScale()).setMode(this._initialPriceScaleMode),this._removeLineDataSourcesUndoCommand&&this._removeLineDataSourcesUndoCommand.undo()}}},91794:(e,t,i)=>{"use strict";i.d(t,{RestoreDefaultsPreferencesUndoCommand:()=>p});var s=i(88537),r=i(28353),n=i(24980),o=i(35762),a=i(67396),l=i(21761),c=i(13647),h=i(92033),d=i(76166);const u=new n.TranslatedString("apply all chart properties",(0,r.t)("apply all chart properties"));class p extends o.UndoCommand{constructor(e){super(u),this._trading=null,this._oldShowSellBuyButtons=null,this._oldNoConfirmEnabled=null,this._oldShowOnlyRejectionNotifications=null,this._oldShowPricesWithZeroVolume=null,this._oldShowPricesWithSpread=null,this._oldOrderExecutedSoundEnabled=null,this._prevWatermarkPreferences=null,this._model=e,this._trading=(0,h.tradingService)(),null!==this._trading&&(this._oldShowSellBuyButtons=this._trading.showSellBuyButtons.value(),this._oldNoConfirmEnabled=this._trading.noConfirmEnabled.value(),this._oldShowOnlyRejectionNotifications=this._trading.showOnlyRejectionNotifications.value(),this._oldShowPricesWithZeroVolume=this._trading.showPricesWith().zeroVolume.value(),this._oldShowPricesWithSpread=this._trading.showPricesWith().spread.value(),this._oldOrderExecutedSoundEnabled=this._trading.orderExecutedSoundParams.enabled.value()),this._defaultsPreferences=(0,a.defaultsPreferencesByWhiteList)(this._model,this._model.mainSeries()),this._oldPreferences=e.preferences(),this._prevDateFormat=l.dateFormatProperty.value(),this._prevAddPlusButton=d.addPlusButtonProperty.value(),this._prevShowOpenMarkerStatus=c.showMarketOpenStatusProperty.value();const t=this._model.watermarkSource();null!==t&&(this._prevWatermarkPreferences=t.properties().state())}redo(){null!==this._trading&&(this._trading.showSellBuyButtons.setValue(!0),this._trading.noConfirmEnabled.setValue(!1),this._trading.showOnlyRejectionNotifications.setValue(!1),this._trading.showPricesWith().zeroVolume.setValue(!0),this._trading.showPricesWith().spread.setValue(!0),this._trading.orderExecutedSoundParams.enabled.setValue(!1)),this._model.applyPreferences(this._defaultsPreferences),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),(0, -l.restoreDateFormatSettingsValue)(),(0,d.restoreAddPlusButtonSettingsValue)(),(0,c.restoreShowMarketOpenStatusProperty)();const e=this._model.watermarkSource();null!==e&&e.restorePropertiesDefaults()}undo(){null!==this._trading&&(this._trading.showSellBuyButtons.setValue((0,s.ensureNotNull)(this._oldShowSellBuyButtons)),this._trading.noConfirmEnabled.setValue((0,s.ensureNotNull)(this._oldNoConfirmEnabled)),this._trading.showOnlyRejectionNotifications.setValue((0,s.ensureNotNull)(this._oldShowOnlyRejectionNotifications)),this._trading.showPricesWith().zeroVolume.setValue((0,s.ensureNotNull)(this._oldShowPricesWithZeroVolume)),this._trading.showPricesWith().spread.setValue((0,s.ensureNotNull)(this._oldShowPricesWithSpread)),this._trading.orderExecutedSoundParams.enabled.setValue((0,s.ensureNotNull)(this._oldOrderExecutedSoundEnabled))),this._model.applyPreferences(this._oldPreferences),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),l.dateFormatProperty.setValue(this._prevDateFormat),c.showMarketOpenStatusProperty.setValue(this._prevShowOpenMarkerStatus),d.addPlusButtonProperty.setValue(this._prevAddPlusButton);const e=this._model.watermarkSource();null!==e&&null!==this._prevWatermarkPreferences&&e.properties().mergeAndFire(this._prevWatermarkPreferences)}}},97401:(e,t,i)=>{"use strict";i.d(t,{SetPriceScaleCurrencyUndoCommand:()=>o});var s=i(88537),r=i(35762),n=i(37667);class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesCurrencies=new Map,this._oldSourcesCurrencies=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const i of e.seriesLikeSources()){if(!i.isVisible()||!i.isActingAsSymbolSource().value())continue;const e=t||(0,n.symbolOriginalCurrency)((0,s.ensureNotNull)(i.symbolInfo()));this._newSourcesCurrencies.set(i.id(),e),this._oldSourcesCurrencies.set(i.id(),i.currency()),this._showFade=this._showFade||i===o&&i.currency()!==e}}redo(){this._applyCurrencies(this._newSourcesCurrencies)}undo(){this._applyCurrencies(this._oldSourcesCurrencies)}_applyCurrencies(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{(0,s.ensureNotNull)(t.dataSourceForId(i)).setCurrency(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},59836:(e,t,i)=>{"use strict";i.d(t,{SetPriceScaleModeCommand:()=>o});var s=i(88564),r=i(35762),n=i(33291);class o extends r.UndoCommand{constructor(e,t,i,s){super(i),this._newMode=e,this._priceScaleId=t.id(),this._model=s,this._oldMode=t.mode()}redo(){this._applyMode(this._newMode)}undo(){this._applyMode(this._oldMode)}_applyMode(e){const t=this._findPriceScaleById();null!==t&&((0,s.saveDefaultProperties)(!0),t.setMode(e),(0,s.saveDefaultProperties)(!1),this._model&&(this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()))}_findPriceScaleById(){const e=this._model.panes();for(let t=0;t{"use strict" -;i.d(t,{SetPriceScaleSelectionStrategyCommand:()=>a});var s=i(88537),r=i(35762),n=i(74325);class o{constructor(e){this._leftScales=e.leftPriceScales().map(e=>e.id()),this._rightScales=e.rightPriceScales().map(e=>e.id())}restorePane(e){this._leftScales.reverse().map(t=>(0,s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"left")),this._rightScales.reverse().map(t=>(0,s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"right"))}}class a extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=(0,n.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map(e=>new o(e))}redo(){this._chartModel.panes().forEach(e=>e.setPriceScaleSelectionStrategy(this._targetStrategy)),this._chartModel.fullUpdate()}undo(){const e=this._chartModel.panes();for(let t=0;t{"use strict";i.d(t,{SetPriceScaleUnitUndoCommand:()=>o});var s=i(88537),r=i(35762),n=i(37667);class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesUnits=new Map,this._oldSourcesUnits=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const i of e.seriesLikeSources()){if(!i.isVisible()||!i.isActingAsSymbolSource().value())continue;const e=t||(0,n.symbolOriginalUnit)((0,s.ensureNotNull)(i.symbolInfo()),this._chartWidget.model().model().unitConversionEnabled());this._newSourcesUnits.set(i.id(),e),this._oldSourcesUnits.set(i.id(),i.unit()),this._showFade=this._showFade||i===o&&i.unit()!==e}}redo(){this._applyUnits(this._newSourcesUnits)}undo(){this._applyUnits(this._oldSourcesUnits)}_applyUnits(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{(0,s.ensureNotNull)(t.dataSourceForId(i)).setUnit(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},870:(e,t,i)=>{"use strict";i.d(t,{SetScaleRatioPropertiesCommand:()=>o});var s=i(35762),r=i(88564),n=i(33291);class o extends s.UndoCommand{constructor(e,t,i,s){super(i),this._property=e,this._newValue=t,this._model=s,this._priceScale=this._model.mainSeries().priceScale(),this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode()}redo(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),(0,r.saveDefaultProperties)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),(0,r.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()}undo(){(0,r.saveDefaultProperties)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),(0,r.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()}}},52546:(e,t,i)=>{"use strict";function s(e,t){const i=new Set,s=t=>{e.children(t,!1).forEach(e=>{i.has(e)||(i.add(e),s(e))})};return t.forEach(s),t.filter(e=>!i.has(e)).map(t=>function e(t,i){let s=[] -;const r=t.children(i,!1);for(let i=0;ie.concat(t),[])}i.d(t,{closeSourcesSet:()=>s})},13339:(e,t,i)=>{"use strict";i.d(t,{TimeScaleChangeUndoCommand:()=>o});var s=i(98125),r=i(35762);const n=(0,s.getLogger)("Chart.ChartUndoModel");class o extends r.UndoCommand{constructor(e,t,i){super(i,!1),this._newRightOffsetAndBarSpacing=null,this.setCustomFlag("doesnt_affect_save",!0),this._model=e,this._rightOffsetAndBarSpacing=t}undo(){if(null!==this._newRightOffsetAndBarSpacing)return void n.logDebug("TimeScaleChangeUndoCommand.undo: Command is already undone");const e=this._model.timeScale();this._newRightOffsetAndBarSpacing={barSpacing:e.barSpacing(),rightOffset:e.rightOffset()},e.setBarSpacing(this._rightOffsetAndBarSpacing.barSpacing),e.setRightOffset(this._rightOffsetAndBarSpacing.rightOffset),this._model.lightUpdate()}redo(){if(null===this._newRightOffsetAndBarSpacing)return void n.logDebug("TimeScaleChangeUndoCommand.redo: Command is not undone");const e=this._model.timeScale();e.setBarSpacing(this._newRightOffsetAndBarSpacing.barSpacing),e.setRightOffset(this._newRightOffsetAndBarSpacing.rightOffset),this._model.lightUpdate(),this._newRightOffsetAndBarSpacing=null}}},35762:(e,t,i)=>{"use strict";i.d(t,{UndoCommand:()=>r});var s=i(24980);class r{constructor(e,t=!0){this._customFlags={},this._text=e||new s.TranslatedString("",""),this._executeOnPush=t}text(){return this._text}executeOnPush(){return this._executeOnPush}customFlag(e){return this._customFlags[e]}setCustomFlag(e,t){this._customFlags[e]=t}canMerge(e){return!1}merge(e){throw new Error("Should be re-implemented in child classes")}}},52940:(e,t,i)=>{"use strict";i.d(t,{createUndoHistory:()=>u});var s=i(88537),r=i(44556),n=i(16757),o=i(35762);class a extends o.UndoCommand{constructor(e,t,i){super(i),this._wv=e,this._newValue=t,this._oldValue=e.value()}redo(){this._wv.setValue(this._newValue)}undo(){this._wv.setValue(this._oldValue)}}var l=i(98125),c=i(2872),h=i.n(c);const d=(0,l.getLogger)("Common.UndoHistory");function u(){const e=[],t=new r.UndoStack,i=new r.UndoStack,o=new(h());function l(s){if(e.length>0)e[e.length-1].addCommand(s);else{i.clear();const e=t.head(),r=e&&e.text().originalText();e&&e.canMerge(s)?e.merge(s):t.push(s);const n=s.text().originalText();""!==n&&n!==r&&d.logNormal("DO: "+n)}s.executeOnPush()&&s.redo(),e.length||o.fire(c())}function c(){const e=t.head(),s=i.head();return{enableUndo:!t.isEmpty(),undoText:void 0===e?void 0:e.text().translatedText(),enableRedo:!i.isEmpty(),redoText:void 0===s?void 0:s.text().translatedText()}}return{beginUndoMacro:function(t){const i=new n.UndoMacroCommand(t);return e.push(i),i},clearStack:function(){t.clear(),i.clear(),o.fire(c())},createUndoCheckpoint:function(){return{lastActualCommand:t.isEmpty()?null:t.head()}},endUndoMacro:function(){const t=(0,s.ensureDefined)(e.pop());t.isEmpty()||l(t)},pushUndoCommand:l,redo:function(){if(i.isEmpty())return!1;const e=i.pop();return!!e&&(e.redo(),t.push(e), -d.logNormal("REDO: "+e.text().originalText()),o.fire(c()),!0)},redoStack:function(){return i},setWatchedValue:function(e,t,i,s){if(e.value()!==t){const r=new a(e,t,i);r.setCustomFlag("doesnt_affect_save",!!s),l(r),r.redo()}},undo:function(){if(t.isEmpty())return!1;const e=t.pop();return!!e&&(e.undo(),i.push(e),d.logNormal("UNDO: "+e.text().originalText()),o.fire(c()),!0)},undoStack:function(){return t},undoToCheckpoint:function(e){for(;!t.isEmpty()&&e.lastActualCommand!==t.head();)t.pop().undo();i.clear(),o.fire(c())},state:c,onChange:function(){return o}}}},16757:(e,t,i)=>{"use strict";i.d(t,{UndoMacroCommand:()=>r});var s=i(35762);class r extends s.UndoCommand{constructor(e){super(e,!1),this._subcommands=[]}addCommand(e){this._subcommands.push(e)}isEmpty(){return 0===this._subcommands.length}redo(){for(let e=0;e=0;e--)this._subcommands[e].undo()}commands(){return this._subcommands}}},44556:(e,t,i)=>{"use strict";i.d(t,{UndoStack:()=>a});var s=i(35762),r=i(2872),n=i.n(r);const o=(0,i(98125).getLogger)("Common.UndoStack");class a{constructor(){this._commands=[],this._onChange=new(n())}onChange(){return this._onChange}isEmpty(){return 0===this._commands.length}clear(){this.isEmpty()||(this._commands.length=0,this._onChange.fire())}push(e){if(!(e instanceof s.UndoCommand))throw new TypeError("argument must be an instance of UndoCommand");this._commands.push(e),this._onChange.fire(e)}pop(){if(this.isEmpty())return void o.logDebug("pop: undo stack is empty");const e=this._commands.pop();return this._onChange.fire(e),e}head(){if(!this.isEmpty())return this._commands[this._commands.length-1]}}},36551:(e,t,i)=>{"use strict";i.d(t,{UnmergeDownUndoCommand:()=>o,UnmergeUpUndoCommand:()=>a,UnmergeToNewBottomPane:()=>l});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i){super(e,t,i)}redo(){const e=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{i.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(e)});const r=this._chartModel.createPane(this.targetPaneIndex()),n=r.findSuitableScale(e);r.bulkActionMacro(()=>{r.addDataSource(e,n,!1),i.forEach(e=>r.addDataSource(e,n,!1))}),(0,s.ensureNotNull)(e.priceScale()).restoreState(this._newPriceScaleState(r.isOverlay(e))),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{i.forEach(e=>this._chartModel.detachSource(e));const t=this._chartModel.detachSource(e);(0,s.assert)(t,"Undo of detaching must remove pane")});const r=this._chartModel.panes()[this._initialPaneIndex];let n=r.getPriceScaleById(this._initialPriceScaleId) -;null===n&&(n=r.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),r.bulkActionMacro(()=>{r.addDataSource(e,n,!0),i.forEach(e=>r.addDataSource(e,n,!1))}),(0,s.ensureNotNull)(e.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex+1}}class a extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex}}class l extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._chartModel.panes().length}}},79222:(e,t,i)=>{"use strict";i.d(t,{unitConvertibleGroups:()=>n,sourceNewUnitOnPinningToPriceScale:()=>o});var s=i(79680),r=i(37667);function n(e,t,i){const s=(0,r.symbolUnitConvertibleGroupsIfExist)(e,!0);if(null!==s)return s;const n=i.unitGroupById(t);return null===n?[]:[n]}function o(e,t,i,r){let o=null;if(i.unitConversionEnabled()&&(0,s.isSymbolSource)(e)){const s=i.availableUnits(),a=t.unit(s),l=e.unit(),c=null===l?[]:n(e.symbolInfo(),l,s);null!==a&&null!==a.selectedUnit&&!a.allUnitsAreOriginal&&a.selectedUnit!==l&&(r&&null===l||null!==l&&s.convertible(l,c))&&(o=a.selectedUnit)}return o}},10133:(e,t,i)=>{"use strict";i.d(t,{createVisibilityController:()=>l});var s=i(28353),r=i(32563),n=i(32255),o=i(56840);function a(e){return"alwaysOn"===e||"alwaysOff"===e?e:"visibleOnMouseOver"}function l(e,t){let i,l;function c(){if(!i){i=(0,n.createPrimitiveProperty)();let s=o.getValue(e);void 0===s&&void 0!==t&&(s=o.getValue(t)),i.setValue(a(s)),i.subscribe(i,t=>{o.setValue(e,a(t.value()))})}return i}return{property:c,availableValues:function(){return[{id:"visibleOnMouseOver",value:"visibleOnMouseOver",title:(0,s.t)("Visible on mouse over")},{id:"alwaysOn",value:"alwaysOn",title:(0,s.t)("Always visible")},{id:"alwaysOff",value:"alwaysOff",title:(0,s.t)("Always invisible")}]},actualBehavior:function(){if(!l){l=(0,n.createPrimitiveProperty)();const e=c(),t=()=>{let t=e.value();"alwaysOn"!==t&&"alwaysOff"!==t&&(t=r.mobiletouch?"alwaysOn":"visibleOnMouseOver"),l&&l.setValue(t)};e.subscribe(l,t),t()}return l}}}},62587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{watermarkProperty:()=>h,restoreWatermarkPropertyDefaults:()=>d});var s=i(24377),r=i(56840),n=i(2015),o=i.n(n);const a={visibility:!1,color:"rgba(80, 83, 94, 0.25)"};function l(){const e=r.getJSON("symbolWatermark");let t=Object.assign({},a,e);if(void 0===e){if(void 0!==r.getJSON("chartproperties")){const e=r.getJSON("chartproperties").symbolWatermarkProperties;if(void 0!==e){const i=(0,s.tryParseRgba)(e.color);t=Object.assign(t,e),null!==i&&(0!==i[3]?t.visibility=!0:(i[3]=.25,t.color=(0,s.rgbaToString)(i)))}}delete t.transparency}return t}let c=null;function h(){return null===c&&(c=new(o())(l()),r.onSync.subscribe(null,()=>{null!==c&&c.mergeAndFire(l())}),c.listeners().subscribe(null,()=>{null!==c&&r.setJSON("symbolWatermark",c.state())})),c}function d(){null!==c&&c.mergeAndFire(a)}},39094:(e,t,i)=>{"use strict" -;var s=i(35218).translatedIntervalString,r=i(1570).getTranslatedSymbolDescription,n=i(22799).CHART_FONT_FAMILY,o=i(62587),a=o.watermarkProperty,l=o.restoreWatermarkPropertyDefaults,c=i(93435).drawScaled,h=i(59803).applyDefaultsOverrides,d=i(59803).applyPropertiesOverrides;t.Watermark=function(e,t){var i={},o=a();function u(e,t){var s=e.font;return i.hasOwnProperty(s)||(i[s]={}),i[s].hasOwnProperty(t)||(i[s][t]=e.measureText(t).width),i[s][t]}h(o,void 0,!1,"symbolWatermarkProperties"),o.listeners().subscribe(this,(function(){e.updateSource(this)})),this.destroy=function(){o.listeners().unsubscribeAll(this)},this.properties=function(){return o},this.restorePropertiesDefaults=function(){l()},this.applyOverrides=function(e){d(o,void 0,!1,e,"symbolWatermarkProperties")};var p={renderer:function(e,i){return{draw:function(a,l){c(a,l.pixelRatio,(function(){var l=t.symbolInfo();a.fillStyle=o.color.value();var c,h=l.name;/QUANDL/.test(l.exchange)&&((c=h.split(/\//)).length&&(h=c[c.length-1]));for(var d={description:l.description,short_description:l.short_description,pro_name:l.pro_name,short_name:l.name,local_description:l.local_description,language:l.language},p=[{text:h?h+", "+s(t.interval()):"",font:"96px "+n,lineHeight:117,vertOffset:0},{text:r(d)||"",font:"48px "+n,lineHeight:58,vertOffset:5}],_=0,m=0;mi?i/g:1,_+=v.lineHeight*v.zoom}}var f=Math.max((e-_)/2,0);for(m=0;m{"use strict";i.d(t,{reorderDataSourcesStateZOrder:()=>S,newLineToolZOrder:()=>w,newStudyZOrder:()=>C,moveAfterSource:()=>E,moveBeforeSource:()=>k});var s=i(14291),r=i(81851),n=i(56972),o=i(50669),a=i(55257);function l(e){return(0,s.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()}function c(e){return(0,r.isStudy)(e)&&!e.isSpeciallyZOrderedSource()}function h(e,t){return e.zorder-t.zorder}function d(e,t){(0,o.isMainSeriesState)(e)?e.zorder=0:e.zorder=t}function u(e,t){e.setZorder(t)}function p(e){return e.zorder()}function _(e){return Math.round(1e3*e)/1e3}function m(e,t){const i=Math.max(e,t),s=Math.min(e,t);return Math.max(0,Math.ceil(i)-Math.floor(s)-1)}function g(e,t,i){let s=0;const r=(n=t,o=e,Math.abs(1e3*o-1e3*n)/1e3);var n,o,a;return r>i?(e=Math.trunc(e),s=Math.floor(r/(i+1))):(a=r/(i+1),s=Math.floor(1e3*a)/1e3),{startZOrder:e,zOrderStep:s}}function f(e,t,i,s){let r=e.length,n=t;for(let t=e.length-1;t>=-1;t--)if(-1===t||s(e[t])){const s=t;let o=T(n);if(r-1===s)s>=0&&i(e[s],o);else{const t=m(r,s);let a=0;for(;0===a;){const e=g(n,o,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(o-=1e4,0===o&&(o-=1e4))}let l=r-1;for(;l>s;){const t=_(n-a);i(e[l],t),n=t,l--}s>=0&&i(e[s],o)}n=o,r=s}}function v(e,t,i,s){let r=-1,n=t -;for(let t=0;t<=e.length;t++)if(t===e.length||s(e[t])){const s=t;let o=P(n);if(r+1===s)s<=e.length-1&&i(e[s],o);else{const t=m(r,s);let a=0;for(;0===a;){const e=g(n,o,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(o+=1e4,0===o&&(o+=1e4))}let l=r+1;for(;l<=s-1;){const t=_(n+a);i(e[l],t),n=t,l++}s<=e.length-1&&i(e[s],o)}n=o,r=s}}function S(e){!function(e,t,i,s,r,n){let o=null;const a=[];for(const r of e)t(r)?(a.push(r),o=r):(i(r)||s(r))&&a.push(r);a.sort(n),null!==o&&r(o,0);const l=null===o?-1:a.indexOf(o);-1!==l?(f(a.slice(0,l),0,r,i),v(a.slice(l+1),0,r,i)):v(a,0,r,i)}(e,o.isMainSeriesState,o.isStudyState,o.isLineToolState,d,h)}function y(e,t){const i=Math.floor(e/1e4);let s=t.get(i);return void 0===s&&(s=[],t.set(i,s)),s}function b(e,t,i,s,r,n){let o=-1/0,a=1/0,l=-1/0,c=0;const h=new Map;for(let s=0;sr(e)-r(t));let p=T(r(u[0]));const m=P(p),f=g(p,m,u.length+1).zOrderStep;return 0!==f?(u.forEach(e=>{const t=_(p+f);s(e,t),p=t}),_(p+f)):_(m+5e3)}function w(e,t){return b(e,l,c,u,p,t)}function C(e){let t=-1e4;for(const i of e)c(i)&&(t=Math.min(t,i.zorder()-1e4));return 0===t?-1e4:t}function P(e){const t=1e4*Math.ceil(e/1e4);return t===e?t+1e4:t}function T(e){const t=1e4*Math.floor(e/1e4);return t===e?t-1e4:t}function x(e,t,i,s,r,n,o){const l=t.length,{newItems:c,movedItemsStartIndex:h}=i>0?(0,a.moveAfter)(e,t,i-1):(0,a.moveBefore)(e,t,0);let d=!1;for(let t=h;tr(e))?function(e,t,i,s,r,n){let o,a,l=-1,c=-1;0===i?(c=I(e,i+t,s),a=n(e[c])):i+t===e.length?(l=M(e,i-1,s),o=n(e[l])):(l=M(e,i-1,s),o=n(e[l]),c=I(e,i+t,s),a=n(e[c]));if((void 0===o||o<0)&&void 0!==a&&a<=0)f(e.slice(0,c),a,r,s);else if((void 0===a||a>0)&&void 0!==o&&o>=0)v(e.slice(l+1),o,r,s);else{const n=i+t,o=e.length-i;n0)&&void 0!==a&&a>=0){c=a;const e=void 0!==l?l:P(a),s=g(c,e,t);c=s.startZOrder,p=s.zOrderStep,d=i,u=d+t,h=1}if(0!==p)for(;d!==u;){const t=_(c+h*p);n(e[d],t),c=t,d+=h}else{const t=e.findIndex(e=>r(e));-1!==t?(f(e.slice(0,t),0,n,s),v(e.slice(t+1),0,n,s)):v(e,0,n,s)}}(c,l,h,r,s,n,o)}function I(e,t,i){for(;t=0&&i(e[t]);)t--;return Math.max(0,t)}function L(e,t,i,s,r,n,o){const a=e.indexOf(i)+1 -;x(e,t,a,s,r,n,o)}function A(e,t,i,s,r,n,o){const a=e.indexOf(i);x(e,t,a,s,r,n,o)}function E(e,t,i){L(e,t,i,n.isSeries,c,u,p)}function k(e,t,i){A(e,t,i,n.isSeries,c,u,p)}},89453:(e,t,i)=>{"use strict";i.d(t,{setSymbolSearchCompleteOverrideFunction:()=>r,getSymbolSearchCompleteOverrideFunction:()=>n});let s=e=>Promise.resolve(e);function r(e){s=e}function n(){return s}},67072:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(2015),r=i(98125).getLogger("Chart.Study.MetaInfo"),n=i(59572).applyOverridesToStudyDefaults,o={};function a(e){TradingView.merge(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),TradingView.merge(this,e);var t=e.fullId||e.id;TradingView.merge(this,a.parseIdString(t))}a.VERSION_STUDY_ARG_SOURCE=41,a.METAINFO_FORMAT_VERSION_SOS_V2=42,a.VERSION_PINE_PROTECT_TV_4164=43,a.CURRENT_METAINFO_FORMAT_VERSION=52,a.VERSION_NEW_STUDY_PRECISION_FORMAT=46,a.CHILD_STUDY_ALLOWED_PLOT_TYPES=["line"],a.canPlotBeSourceOfChildStudy=function(e){return a.CHILD_STUDY_ALLOWED_PLOT_TYPES.includes(e)},a.CHILD_STUDY_EXCLUDE_IDS=["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"],a.CHILD_STUDY_PARENT_EXCLUDE_IDS=[],a.FilledArea={},a.FilledArea.TYPE_PLOTS="plot_plot",a.FilledArea.TYPE_HLINES="hline_hline",a.versionOf=function(e){var t="_metainfoVersion"in e&&isNumber(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&r.logError("Metainfo format version cannot be negative: "+t),t},a.parseIdString=function(e){var t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{var i=e.split("@");t.shortId=i[0];var s=i[1].split("-");if(3===s.length)t.packageId=s.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=s[2];else if(1===s.length&&"decisionbar"===s[0])t.packageId="les-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1;else{if(1!==s.length)throw new Error("unexpected study id:"+e);t.packageId="tv-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1}}if(t.fullId=t.id+"-"+t.version,"tv-scripting"===t.packageId){var r=t.shortId;if(0===r.indexOf("Script$")||0===r.indexOf("StrategyScript$")){var n=r.indexOf("_");t.productId=n>=0?r.substring(0,n):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t},a.getPackageName=function(e){return(/^[^@]+@([^-]+-[^-]+)/.exec(e||"")||[0,"tv-basicstudies"])[1]},a.cutDollarHash=function(e){var t=e.indexOf("$"),i=e.indexOf("@");return-1===t?e:e.substring(0,t)+(i>=0?e.substring(i):"")},a.hasUserIdSuffix=function(e){return/^USER;[\d\w]+;\d+$/.test(e)},a.isStandardPine=function(e){return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)},a.getSourceIdByInputs=function(e,t){if(!Array.isArray(e)||!t)return null;for(var i=0;i0){var l=o.replace(/^[^\$]+/,t);i.inputs[n.id].setValue(l)}}}},a.patchChildStudyMetaInfoState=function(e){e.state&&function e(t){if("object"==typeof t)for(var i in t)"string"==typeof t[i]&&/^[^\$]+\$\d+$/.test(t[i])?t[i]=t[i].replace(/^[^\$]+/,"{pid}"):e(t[i])}(e.state.inputs),e.state.isChildStudy=!0},a.getStudyIdWithLatestVersion=function(e){const t=a.cutDollarHash(e.id);let i=t;return t.indexOf("@tv-scripting")>=0?i+="-101!":i+="-"+e.version,i},a.prototype.parseValue=function(e,t){return"bool"===e?TradingView.parseBool(t):t},a.prototype.defaultInputs=function(){for(var e=[],t=0;t0?e[0].id:null},a.prototype.createDefaults=function(){if(this.defaults){var e=TradingView.clone(this.defaults);e.precision="default";var t=a.getStudyPropertyRootName(this);defaults.create(t,e)}},a.prototype.removeDefaults=function(){defaults.remove(a.getStudyPropertyRootName(this))},a.findStudyMetaInfoByDescription=function(e,t){if(e){for(var i=0;i{"use strict";window.TradingView=window.TradingView||{},window.requireAll=function(e){return e.keys().map(e)},i(28353),i(32563).setClasses(),i(9196),i(56186).install(),i(49483),i(80643),i(29892),i(94419),i(11417),i(11372),i(37562),i(56840)},97881:(e,t,i)=>{"use strict";var s=i(28353).t;i(70606);var r=i(88537).assert;i(96488),i(59803),i(87980);const n=i(67337);JSON.parse(urlParams.disabledFeatures).forEach((function(e){n.setEnabled(e,!1)})),JSON.parse(urlParams.enabledFeatures).forEach((function(e){n.setEnabled(e,!0)})),function(){window.__settingsOverrides=window.parent[window.urlParams.uid].settingsOverrides||{};var e=window.parent[window.urlParams.uid].settingsAdapter;null!=e?(TVSettings.setSettingsAdapter(e),TVSettings.sync()):n.enabled("use_localstorage_for_settings")&&TVSettings.sync()}();var o=i(22799).setChartFontFamily;window.urlParams.customFontFamily&&o(window.urlParams.customFontFamily);var a=i(84120).RestrictedToolsetBootloader,l=i(9753).HeaderToolbarBootloader,c=i(84746).DrawingToolbarBootloader,h=i(85593).isDrawingToolbarVisible;(0,i(32563).setClasses)();var d=i(6087),u=i(45345).setTheme,p=i(33225),_=i(17437),m=i(25760),g=i(47193).migrateShortcut,f=i(76900).ChartSaver,v=i(41051).SaveChartService,S=i(86879).LoadChartService,y=i(46723).StudyTemplates,b=i(22668).FavoriteStudyTemplateService,w=i(82992).linking,C=i(76422),P=i(97098).formatterOptions,T=i(69147).customFormatters,x=i(34615).StudyMarket,I=i(21097).TVXWindowEvents,M=i(81836).createDeferredPromise,L=i(15840).deepExtend,A=i(9423).randomHash,E=i(65576).convertPropertyToWatchedValue,k=i(95707).property,D=i(62428).property,V=i(21761).dateFormatProperty,B=i(43370).default,N=i(29823).Interval,R=i(89356).Root,O=i(28325).ChartPage,F=i(39138).destroyQuoteSessions,W=i(73383).TIMEFRAMETYPE,H=new O(new R(window).allocate()),z=H.allocate({areaName:"center"}),U=(window.parent[urlParams.uid].brokerFactory,Boolean(!1)),j=i(54427).CHART_WIDGET_COLLECTION_SERVICE,G=i(16216);i(65235);var q=i(43425),Y=i(12409).createFavoriteDrawingToolbar,K=i(77317).setupChartEventHint,$=i(81602).setupChartScreenshotHint,X=i(87983),Z=i(67072),J=i(28399);i(27595),i(15495) -;var Q=i(78136).setSearchRequestDelay,ee=i(16654),te=i(216),ie=i(17937).addBrandingSource,se=i(13221).setAdditionalSymbolInfoFields,re=i(89453).setSymbolSearchCompleteOverrideFunction,ne=i(52741).DropdownApi,oe=i(97056).ContextMenuManager;const ae=new AbortController;var le=window.parent[urlParams.uid].getCustomIndicators,ce=M(),he=M(),de=n.enabled("left_toolbar");if(void 0!==window.parent[urlParams.uid].contextMenu){var ue=window.parent[urlParams.uid].contextMenu;void 0!==ue.items_processor&&oe.setCustomItemsProcessor(ue.items_processor),void 0!==ue.renderer_factory&&oe.setCustomRendererFactory(ue.renderer_factory)}if(Promise.all([ce.promise,he.promise]).then((function(){window.ChartApiInstance.start()})),"function"==typeof le){var pe=le(te);pe&&pe.then?pe.then((function(e){if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void ce.resolve();JSServer.studyLibrary.push.apply(JSServer.studyLibrary,e),ce.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((function(e){console.warn("Error loading custom indicators "+e),ce.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),ce.resolve())}else ce.resolve();window.widgetReady=function(e){C.subscribe("onChartReady",e)};var _e=urlParams.theme&&urlParams.theme.toLowerCase();function me(e){window.__defaultsOverrides=window.__defaultsOverrides||{},L(window.__defaultsOverrides,e),void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&(window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools())}!function(e){d.themes[e]&&u(e)}(_e),window.applyStudiesOverrides=function(e){e&&(window.chartWidgetCollection?window.chartWidgetCollection.applyStudiesOverrides(e):Z.mergeDefaultsOverrides(e))},window.applyOverrides=function(e){me(e),window.chartWidgetCollection&&window.chartWidgetCollection.applyOverrides(e)},window.doWhenApiIsReady=function(e){window.tradingViewApi?e():he.promise.then(e)},window.applyTradingCustomization=function(e){for(var t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];for(var t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},window.changeTheme=function(e,t){var i=d.themes[e.toLowerCase()];return i?window.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo):Promise.resolve()},window.getTheme=function(){return window.tradingViewApi.themes().getCurrentThemeName()},window.is_authenticated=!1;JSON.parse(window.urlParams.brokerConfig);s("charts by TradingView"),s("powered by TradingView"),s("by TradingView");var ge=null,fe=M(),ve=null,Se=function(){if(n.setEnabled("charting_library_debug_mode","true"===urlParams.debug),n.setEnabled("chart_property_page_trading",!1),n.enabled("remove_library_container_border")){var e=document.querySelector("#library-container");null!==e&&(e.style.border="0px",e.style.padding="1px")} -n.enabled("no_min_chart_width")&&(window.document.body.style.minWidth="0px"),null!=urlParams.studiesOverrides&&Z.mergeDefaultsOverrides(JSON.parse(urlParams.studiesOverrides)),r(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),me(JSON.parse(urlParams.overrides)),urlParams.numeric_formatting=urlParams.numeric_formatting&&JSON.parse(urlParams.numeric_formatting),urlParams.numeric_formatting&&"string"==typeof urlParams.numeric_formatting.decimal_sign&&(P.decimalSign=urlParams.numeric_formatting.decimal_sign[0]),window.ChartApiInstance=new X(window.parent[urlParams.uid].datafeed),window.parent[urlParams.uid].customFormatters&&(window.parent[urlParams.uid].customFormatters.timeFormatter&&(T.timeFormatter=window.parent[urlParams.uid].customFormatters.timeFormatter),window.parent[urlParams.uid].customFormatters.dateFormatter&&(T.dateFormatter=window.parent[urlParams.uid].customFormatters.dateFormatter),window.parent[urlParams.uid].customFormatters.tickMarkFormatter&&(T.tickMarkFormatter=window.parent[urlParams.uid].customFormatters.tickMarkFormatter),window.parent[urlParams.uid].customFormatters.priceFormatterFactory&&(T.priceFormatterFactory=window.parent[urlParams.uid].customFormatters.priceFormatterFactory),window.parent[urlParams.uid].customFormatters.studyFormatterFactory&&(T.studyFormatterFactory=window.parent[urlParams.uid].customFormatters.studyFormatterFactory)),window.ChartApiInstance.setStudiesAccessController(window.ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess));var t=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,o=urlParams.chartContentExtendedData?JSON.parse(urlParams.chartContentExtendedData):t?t.extendedData:void 0,u=urlParams.interval||"D",_=function(e){var t=/(\d+)(\w+)/;return e.map((function(e){var i=t.exec(e.text),r=i[2].toLowerCase(),n=parseInt(i[1]),o="y"===r?12*n+"M":n+r,a=N.parse(e.resolution);return{text:s(e.title)||n+s(r,{context:"dates",count:n}),description:e.description||"",value:{value:o.toUpperCase(),type:W.PeriodBack},targetResolution:a.value(),requiresIntraday:a.isIntraday()}}))}(JSON.parse(urlParams.timeFrames)),m={resizerBridge:z,padding:n.enabled("border_around_the_chart")?2:0,content:t,widgetOptions:{addToWatchlistEnabled:!1,hideIdeas:!0,addVolume:window.ChartApiInstance.studiesAccessController.isToolEnabled("Volume"),muteSessionErrors:!0,timezone:urlParams.timezone,defSymbol:urlParams.symbol,defInterval:u,compareSymbols:urlParams.compareSymbols&&JSON.parse(urlParams.compareSymbols),defTimeframe:window.parent[urlParams.uid].timeframe,paneContextMenuEnabled:n.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:U},priceScaleContextMenuEnabled:n.enabled("scales_context_menu"),currencyConversionEnabled:n.enabled("pricescale_currency"),unitConversionEnabled:n.enabled("pricescale_unit"),legendWidgetEnabled:n.enabled("legend_widget"),legendWidget:{contextMenu:{settings:n.enabled("show_chart_property_page"),showOpenMarketStatus:n.enabled("display_market_status")}},sourceStatusesWidget:{ -errorSolution:!1},marketStatusWidgetEnabled:n.enabled("display_market_status"),chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:n.enabled("scales_context_menu"),timezoneMenuEnabled:n.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:n.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:n.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:n.enabled("right_bar_stays_on_scroll"),minBarSpacing:urlParams.time_scale&&JSON.parse(urlParams.time_scale).min_bar_spacing},goToDateEnabled:n.enabled("go_to_date"),crossHair:{menuEnabled:n.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:n.enabled("mouse_wheel_scale"),pinch:n.enabled("pinch_scale"),axisPressedMouseMove:{time:n.enabled("axis_pressed_mouse_move_scale"),price:n.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:n.enabled("mouse_wheel_scroll"),pressedMouseMove:n.enabled("pressed_mouse_move_scroll"),horzTouchDrag:n.enabled("horz_touch_drag_scroll"),vertTouchDrag:n.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:n.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:n.enabled("cropped_tick_marks"),countdownEnabled:n.enabled("countdown"),indicatorsDialogShortcutEnabled:n.enabled("insert_indicator_dialog_shortcut")},seriesControlBarEnabled:n.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:n.enabled("go_to_date"),availableTimeFrames:function(e,t){return e?t!==ee.STATUS_DELAYED&&t!==ee.STATUS_DELAYED_STREAMING&&t!==ee.STATUS_READY?[]:_.filter((function(t){return!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))})):[]}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:n.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,sessionIdButtonEnabled:n.enabled("pre_post_market_sessions"),backAdjustmentButtonEnabled:!1,settlementAsCloseButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0,fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:urlParams.snapshotUrl,mobileForceChartMaximizeEnabled:!1,saveChartEnabled:n.enabled("save_shortcut")};de&&(Y(),m.widgetOptions.isDrawingToolbarVisible=h),o&&(m.metaInfo={id:o.uid,name:o.name,description:o.description,uid:o.uid,username:"",tags:""}),window.parent[urlParams.uid].additionalSymbolInfoFields&&se(window.parent[urlParams.uid].additionalSymbolInfoFields),window.parent[urlParams.uid].symbolSearchComplete&&re(window.parent[urlParams.uid].symbolSearchComplete);var g=window.chartWidgetCollection=new q(m);let M=!1;g.onAboutToBeDestroyed.subscribe(null,()=>{M=!0},!0),ie(g),window.studyMarket=new x(g),void 0!==G&&G.registerService(j,g),g.activeChartWidget.subscribe((function(e){C.emit("activeChartChanged",g.getAll().indexOf(e))})),window.saver=new f(g);var L=new v(g,window.saver),A=new S(g);window.chartWidget=g.activeChartWidget.value(),window.pro=new TradingView.Pro -;var E=function(e){if(!n.enabled("header_widget"))return null;var t=H.allocate({areaName:"top"}),s=new(0,i(68425).ChartChangesWatcher)(e.chartWidgetCollection.undoHistory,e.chartWidgetCollection.lineToolsSynchronizerHasChanges,window.saver,C),r=JSON.parse(urlParams.favorites);r.intervals=r.intervals.map((function(e){var t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t}));var o=null;n.enabled("study_templates")&&(o=new b(I,TVSettings),ve=new y({chartWidgetCollection:e.chartWidgetCollection,favoriteStudyTemplatesService:o}));var c=void 0,h=urlParams.header_widget_buttons_mode;"fullsize"===h&&(c=["full"]);"compact"===h&&(c=["small"]);return new l(new a,{chartSaver:window.saver,chartApiInstance:ChartApiInstance,chartWidgetCollection:e.chartWidgetCollection,defaultFavoriteStyles:r.chartTypes,defaultFavoriteIntervals:r.intervals,hideStudyTemplates:!0,resizerBridge:t,studyMarket:window.studyMarket,studyTemplates:ve,favoriteStudyTemplatesService:o,allowedModes:c,saveChartService:e.saveChartService,loadChartService:e.loadChartService,chartChangesWatcher:s,onClick:Me,snapshotUrl:e.snapshotUrl})}({chartWidgetCollection:g,saveChartService:L,loadChartService:A,snapshotUrl:urlParams.snapshotUrl});null!==E?E.load().then((function(e){ge=e.getComponent(),fe.resolve()})):(fe.promise.catch((function(){})),fe.reject("header widget is not loaded"));var k=function(e){if(de){var t=urlParams.toolbarbg&&/^[0-9a-f]+$/i.test(urlParams.toolbarbg)?String(urlParams.toolbarbg):void 0;if(t){var i=document.createElement("style");i.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(i)}return new c({bgColor:t,chartWidgetCollection:e,drawingsAccess:urlParams.drawingsAccess?JSON.parse(urlParams.drawingsAccess):void 0,resizerBridge:H.allocate({areaName:"left"}),onClick:Me})}return null}(g),D=null;window.tradingViewApi=new J({chartWidgetCollection:g,chartApiInstance:window.ChartApiInstance,saveChartService:L,loadChartService:A});if(w.bindToChartWidgetCollection(g),TradingView.isNaN(urlParams.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+urlParams.studyCountLimit)),!TradingView.isNaN(urlParams.ssreqdelay)){var V=Math.max(0,+urlParams.ssreqdelay);Q(V)}window.ChartApiInstance.connect(),Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(3921),i.e(7427),i.e(1112),i.e(6909),i.e(5998),i.e(6416),i.e(7419),i.e(3520),i.e(9042),i.e(323),i.e(2849),i.e(880),i.e(1075),i.e(9505),i.e(1890),i.e(1784),i.e(7210),i.e(2306)]).then(i.t.bind(i,87805,23)).then(({default:e})=>{M||(window.lineToolPropertiesToolbar=new e(g))});var R=document.querySelector(".tv-content");function O(){k&&k.load(ae.signal),D&&D.load(ae.signal).then((function(e){window.footerWidget=e.getComponent()}))}null!==R&&R.addEventListener("contextmenu",(function(e){null!==e.target&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),he.resolve(),g.undoHistory.undoStack().onChange().subscribe(null,B((function(e){ -e&&!e.customFlag("doesnt_affect_save")&&C.emit("onAutoSaveNeeded")}),1e3*(urlParams.autoSaveDelay||5),{leading:!1,trailing:!0})),window.chartWidget.withModel(null,(function(){if(ChartApiInstance.on("realtime_tick",(function(e){C.emit("onTick",e)})),!d.savedThemeName()&&_e){var e=d.getStdTheme(_e);e&&e.content&&void 0===t&&g.applyTheme({theme:e.content,onlyActiveChart:!1,restoreNonThemeDefaults:!1,themeName:_e,standardTheme:!0,syncState:!0,noUndo:!0}).then(()=>window.applyOverrides(window.__defaultsOverrides))}n.enabled("charting_library_debug_mode")&&C.subscribeToAll((function(){var e=Array.prototype.slice.call(arguments);console.log('Event "{0}", arguments: {1}'.format(e[0],JSON.stringify(e.slice(1))))})),K&&(K(g),K=null),$&&($(g,{seriesControlBarEnabled:n.enabled("timeframes_toolbar")}),$=null)})),p.isAnyChartWidgetInitialized(g)?O():p.waitAnyChartWidgetInitialized(g,O),C.subscribe("chart_load_requested",(function(e){window.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}))};window.addEventListener("unload",(function(){ae.abort(),window.widgetbar&&(window.widgetbar.destroy(),window.widgetbar=null),window.chartWidgetCollection&&(window.chartWidgetCollection.destroy(),window.chartWidgetCollection=null),window.ChartApiInstance&&window.ChartApiInstance.disconnect(),F(),window.ChartApiInstance&&(window.ChartApiInstance.destroy(),window.ChartApiInstance=null)})),n.enabled("saveload_storage_customization")&&(window.parent[urlParams.uid].saveLoadAdapter?_.setCustomAdapter(window.parent[urlParams.uid].saveLoadAdapter):void 0!==urlParams.chartsStorageUrl&&urlParams.chartsStorageUrl&&void 0!==urlParams.clientId&&urlParams.clientId?_.initialize(urlParams.clientId,urlParams.userId,urlParams.chartsStorageUrl,urlParams.chartsStorageVer||"1.0"):(n.setEnabled("saveload_storage_customization",!1),n.setEnabled("header_saveload",!1)));var ye=M();function be(){ye.resolve()}window.parent[urlParams.uid].loadLastChart&&n.enabled("saveload_storage_customization")?_.getCharts().then((function(e){if(0!==e.length){var t=e.sort((function(e,t){return t.modified_iso-e.modified_iso}))[0];_.getChartContent(t).then((function(e){var t=JSON.parse(e.content);t.extendedData=e,urlParams.chartContent=JSON.stringify({json:t}),be()})).catch(be)}else be()})).catch(be):be();var we,Ce,Pe=M();Promise.all([Pe.promise,ye.promise,window.loadedCustomCss]).then((function(){var e,t,i,s,r,o,a=document.querySelector(".loading-indicator");if(a&&(a.style.display="none"),setTimeout(Se,0),n.enabled("14851")&&Math.random()<=.02){e=window,t=document,i="script",s="ga",e.GoogleAnalyticsObject=s,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,r=t.createElement(i),o=t.getElementsByTagName(i)[0],r.async=1,r.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(r,o);var l=document.URL.match(new RegExp("(:?.*://)([^/]+)/.*"))[2];ga("create","UA-112911840-1","auto"),ga("set","anonymizeIp",!0),ga("set",{hostname:l,page:l,referrer:l}),ga("send","pageview")}})),we=!0, -window.parent[urlParams.uid].datafeed.onReady((function(e){we&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),window.configurationData=e,Pe.resolve()})),we=!1,window.getFunctionFromArguments=function(e){return window.parent[urlParams.uid][e]},window.createShortcutAction=(Ce=m.createGroup({desc:"API"}),function(e,t){Ce.add({hotkey:g(e),handler:t})}),window.initializationFinished=function(){window.chartWidgetCollection.undoHistory.clearStack()},window.headerReady=function(){return fe.promise},window.createButton=function(e){if(null===ge)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");return(e=e||{}).align=e.align||"left",e.useTradingViewStyle=e.useTradingViewStyle||!1,ge.addButton(A(),e)},window.createDropdown=function(e){if(void 0===e)throw new Error("Cannot create dropdown without any parameters. Please refer to the documentation");void 0===e.align&&(e.align="left");const t=A();return ge?(ge.addDropdown(t,e),Promise.resolve(new ne(ge,t))):fe.promise.then(()=>(ge.addDropdown(t,e),new ne(ge,t)))},window.getAllFeatures=function(){const e=n.getAllFeatures();return Object.keys(e).forEach((function(t){isNaN(parseFloat(t))||delete e[t]})),e};var Te=null;window.getNavigationButtonsVisibility=function(){return null===Te&&(Te=E(k())),Te};var xe=null;window.getPaneButtonsVisibility=function(){return null===xe&&(xe=E(D())),xe};var Ie=null;function Me(e){var t=TradingView.bottomWidgetBar;t&&t.turnOffMaximize()}window.getDateFormat=function(){return null===Ie&&(Ie=E(V)),Ie}},11372:(e,t,i)=>{e=i.nmd(e),TradingView.cleanButAmpersand=function(e,t){var i=t?["&"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var n=0;n{"use strict";i.r(t);var s=i(21097),r=i(51768),n=i(38780);function o(e,t=!1){"loading"!==document.readyState?t?setTimeout(()=>e(),1):e():document.addEventListener("DOMContentLoaded",()=>e())}new Promise(e=>{o(e)});function a(e,t="x"){let i=!1;return"x"!==t&&"both"!==t||(i=i||e.offsetWidth{document.addEventListener("mouseenter",e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){let e="x";if(t.matches(".apply-overflow-tooltip--direction_both")?e="both":t.matches(".apply-overflow-tooltip--direction_y")&&(e="y"), -t.matches(".apply-overflow-tooltip--check-children")){let i=!1;const s=t.children;for(let t=0;t(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e),[]).join("").trim(),(0,n.showOnElement)(t,{text:i});const s=()=>{(0,n.hide)(),["mouseleave","mousedown"].forEach(e=>t.removeEventListener(e,s))};["mouseleave","mousedown"].forEach(e=>t.addEventListener(e,s))}},!0)});var l=i(2872),c=i.n(l),h=i(11417),d=i(15840);let u;function p(e){window.iframeAuthWidget&&!1===window.user.profile_data_filled&&(window.iframeAuthWidget.preventClose=!0);const t=window.user.available_offers||{};window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?(e||(initOfferLoginStateChangeButton(),onGoPro()&&window.user.is_pro&&window.location.reload()),!1===window.user.profile_data_filled&&((0,r.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled)):(Object.keys(t).forEach(e=>{const i=e;t[i].available_for_anons||delete t[i]}),window.user={username:"Guest",following:"0",followers:"0",ignore_list:[],available_offers:t},h.TVLocalStorage.removeItem("trial_availiable"))}u=window.loginStateChange?window.loginStateChange:window.loginStateChange=new(c()),u.subscribe(null,p),s.TVXWindowEvents.on("loginStateChange",e=>{const t=JSON.parse(e);window.user=t.user,window.is_authenticated=!!t.is_authenticated,u.fire()}),s.TVXWindowEvents.on("signOut",()=>{!function(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//].forEach(t=>{t.test(window.location.pathname)&&(e=!1)}),e&&window.location.reload()}()}),(()=>{const e={};window.crossTabSyncUserAttr=e=>{const t={};e instanceof Array?e.forEach(e=>{t[e]=window.user[e]}):t[e]=window.user[e],s.TVXWindowEvents.emit("user-obj-changed",JSON.stringify(t))},s.TVXWindowEvents.on("user-obj-changed",t=>{const i=JSON.parse(t);let s;for(s in i)if(i.hasOwnProperty(s)){window.user[s]=i[s];(e[s]||[]).forEach(e=>{e.fire(i[s])})}})})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,s.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),u.fire()},window.loginUser=function(e,t){window.TVDialogs&&window.TVDialogs.signModal&&window.TVDialogs.signModal.close(),window.user=(0,d.deepExtend)({},e),window.TradingView.changeLoginState(!0),"function"==typeof t&&window.TVDialogs&&window.TVDialogs.signModal?window.TVDialogs.signModal.on("signinSuccess",()=>{t()}):"function"==typeof t&&t()},window.loginRequiredDelegate=new(c()),window.runOrSignIn=(e,t)=>{t||(t={}),e()},window.onLoginStateChange=p,window.TradingView.setTrialAvailiable=e=>{h.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new(c())},68906:(e,t,i)=>{ -"use strict";i.r(t),i.d(t,{generateColor:()=>r,alphaToTransparency:()=>n,transparencyToAlpha:()=>o,applyTransparency:()=>a,resetTransparency:()=>l,getLuminance:()=>c,isHexColor:()=>h,colorFromBackground:()=>d,gradientColorAtPercent:()=>u,isColorDark:()=>p,rgbaFromInteger:()=>_,rgbaToInteger:()=>m,colorToInteger:()=>g});var s=i(24377);function r(e,t,i){if(t=t||0,!h(e))return i?(0,s.rgbaToString)((0,s.rgba)((0,s.parseRgb)(e),(0,s.normalizeAlphaComponent)(o(t)))):e;const[r,n,a]=(0,s.parseRgb)(e),l=(0,s.normalizeAlphaComponent)(o(t));return(0,s.rgbaToString)([r,n,a,l])}function n(e){return 100*(1-e)}function o(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function a(e,t){if("transparent"===e)return e;const i=(0,s.parseRgba)(e),r=i[3];return(0,s.rgbaToString)((0,s.rgba)(i[0],i[1],i[2],o(t)*r))}function l(e){return"transparent"===e||h(e)?e:(0,s.rgbaToString)((0,s.rgba)((0,s.parseRgb)(e),(0,s.normalizeAlphaComponent)(1)))}function c(e){const t=(0,s.parseRgb)(e).map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e){return 0===e.indexOf("#")}function d(e){return"black"===(0,s.rgbToBlackWhiteString)((0,s.parseRgb)(e),150)?"#ffffff":"#000000"}function u(e,t,i){const[r,n,o,a]=(0,s.parseRgba)(e),[l,c,h,d]=(0,s.parseRgba)(t),u=(0,s.rgba)(Math.round(r+i*(l-r)),Math.round(n+i*(c-n)),Math.round(o+i*(h-o)),a+i*(d-a));return(0,s.rgbaToString)(u)}function p(e){return c(l(e))<.5}function _(e){const t=(e=Math.round(e))%256;e-=t;const i=(e/=256)%256;e-=i;const s=(e/=256)%256;e-=s;return`rgba(${t},${i},${s},${(e/=256)/255})`}function m(e){const t=Math.round(255*e[3]);return e[0]+256*e[1]+65536*e[2]+16777216*t}function g(e){const t=(0,s.tryParseRgba)(e);return null===t?0:m(t)}},59199:(e,t,i)=>{"use strict";i.d(t,{doAnimate:()=>n});const s={from:0,duration:250,easing:i(68587).easingFunc.easeOutCubic};class r{constructor(e){this._doing=!0,this._completed=!1,this._options={...s,...e};const t=performance.now();window.requestAnimationFrame(e=>{this._animation(t,this._options.from,e)})}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,i){if(!this._doing)return void this._finishAnimation();const s=(i=!i||i<1e12?performance.now():i)-e,r=s>=this._options.duration||t===this._options.to,n=(o=this._options.from,a=this._options.to,l=this._options.easing(s/this._options.duration),o*(1-l)+a*l);var o,a,l;const c=r?this._options.to:n,h=c-t;this._options.onStep(h,c),r?this._finishAnimation():window.requestAnimationFrame(t=>{this._animation(e,c,t)})}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function n(e){return new r(e)}},85198:(e,t,i)=>{"use strict";i.d(t,{fetch:()=>s});(0,i(98125).getLogger)("Fetch");function s(e,t,i={}){return window.fetch(e,t)}},98125:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LOGLEVEL:()=>n,getLogLevel:()=>_,isHighRateEnabled:()=>m,setLogLevel:()=>g,getRawLogHistory:()=>f,serializeLogHistoryEntry:()=>v,getLogHistory:()=>S,getLogger:()=>b,loggingOn:()=>C, -loggingOff:()=>P});const s="undefined"!=typeof window?window:{};let r=!1;try{localStorage.getItem(""),r=!0}catch(e){}var n;!function(e){e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO",e[e.NORMAL=4]="NORMAL",e[e.DEBUG=5]="DEBUG"}(n||(n={}));let o=0;const a=[];let l=null,c=null,h=null,d=NaN,u=n.WARNING,p=!1;function _(){return u}function m(){return p}function g(e){e=Math.max(n.ERROR,Math.min(n.DEBUG,e)),u=e,T()}function f(e,t){let i=a.reduce((e,t)=>e.concat(t),[]);return i.sort((e,t)=>e.id-t.id),void 0!==t&&(i=i.filter(e=>e.subSystemId===t)),"number"==typeof e&&(i=i.slice(-e)),i}function v(e){return new Date(e.timestamp).toISOString()+":"+e.subSystemId+":"+e.message.replace(/"/g,"'")}function S(e,t){return function(e,t){let i,s=0,r=0;for(i=e.length-1;i>=1&&(s+=8*(1+encodeURIComponent(e[i]).length),!(i-1>0&&(r=8*(1+encodeURIComponent(e[i-1]).length),s+r>t)));i--);return e.slice(i)}(f(e,t).map(v),75497472)}function y(e,t,i,r){if(t===c&&r.id===h)return;const a=new Date;if(e<=n.NORMAL&&function(e,t,i,r,n){"function"===s.structuredClone&&(t=s.structuredClone(t));const a={id:o,message:t,subSystemId:r,timestamp:Number(e)};o+=1,i.push(a),void 0!==n&&i.length>n&&i.splice(0,1)}(a,t,i,r.id,r.maxCount),e<=u&&(!r.highRate||m())&&(!l||r.id.match(l))){const i=a.toISOString()+":"+r.id+":"+t;switch(e){case n.DEBUG:console.debug(i);break;case n.INFO:case n.NORMAL:r.color?console.log("%c"+i,"color: "+r.color):console.log(i);break;case n.WARNING:console.warn(i);break;case n.ERROR:console.error(i)}c=t,h=r.id,d&&clearTimeout(d),d=setTimeout(()=>{c=null,h=null,d=NaN},1e3)}}function b(e,t={}){const i=[];a.push(i);const s=Object.assign(t,{id:e});function r(e){return t=>y(e,String(t),i,s)}return{logDebug:r(n.DEBUG),logError:r(n.ERROR),logInfo:r(n.INFO),logNormal:r(n.NORMAL),logWarn:r(n.WARNING)}}const w=b("logger"),C=s.lon=(e,t)=>{g(n.DEBUG),w.logNormal("Debug logging enabled"),p=Boolean(e),l=t||null,T()},P=s.loff=()=>{g(n.INFO),w.logInfo("Debug logging disabled")};function T(){try{r&&(localStorage.setItem("tv.logger.logHighRate",String(p)),localStorage.setItem("tv.logger.loglevel",String(u)))}catch(e){w.logWarn(`Cannot save logger state (level: ${u}, high-rate: ${p}) to localStorage: ${e.message}`)}}!function(){p=!!r&&"true"===localStorage.getItem("tv.logger.logHighRate");let e=parseInt(r&&localStorage.getItem("tv.logger.loglevel")||"");Number.isNaN(e)&&(e=n.WARNING),g(e),w.logNormal(`Init with settings - level: ${u}, high-rate: ${p}`)}(),s.performance&&s.performance.now?w.logNormal("Sync logger and perf times, now is "+s.performance.now()):w.logWarn("Perf time is not available")},52640:(e,t,i)=>{"use strict";function s(e,t,i,s){return`${s?s+" ":""}${i?i+" ":""}${e}px ${t}`}i.d(t,{makeFont:()=>s,parseFont:()=>n});const r=/(bold )?(italic )?(\d+)(px|pt) (.*)$/;function n(e){const t=r.exec(e);return null===t?null:{family:t[5],size:parseInt(t[3])*("pt"===t[4]?.75:1),bold:Boolean(t[1]),italic:Boolean(t[2])}}},45415:(e,t,i)=>{"use strict";i.d(t,{visitObject:()=>n});var s=i(80643);function r(e,t,i){return(0, -s.isArray)(e)?function(e,t,i){return e.map(e=>{const s=r(e,t,i),n=t(s);return void 0!==n?n:s})}(e,t,i):(0,s.isObject)(e)&&((0,s.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){const s={};return Object.keys(e).forEach(n=>{const o=r(e[n],t,i),a=t(o);s[n]=void 0!==a?a:o}),s}(e,t,i):e}function n(e,t,i){const s=r(e,t,i),n=t(s);return void 0!==n?n:s}},28789:(e,t,i)=>{"use strict";function s(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}i.d(t,{regExpEscape:()=>s})},62820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isRtl:()=>r,stripLTRMarks:()=>o,startWithLTR:()=>a,forceLTRStr:()=>l,forceLTRStrSsr:()=>c,forceRTLStr:()=>h,getLTRScrollLeft:()=>d,getLTRScrollLeftOffset:()=>u,detectAutoDirection:()=>m});var s=i(64531);const r=()=>"rtl"===window.document.dir,n=new RegExp("‎|‪|‫|‬","g");function o(e){return""!==e&&r()&&null!=e?e.replace(n,""):e}function a(e){return""!==e&&r()&&null!=e?"‎"+e:e}function l(e){return""!==e&&r()&&null!=e?"‪"+e+"‬":e}function c(e){return"‪"+e+"‬"}function h(e){return""!==e&&r()&&null!=e?"‫"+e+"‬":e}function d(e){return(0,s.getNormalizedScrollLeft)(e,"rtl")}function u(e,t){const i=(0,s.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 p=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,_=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function m(e){const t=p.exec(e);return t?_.test(t[0])?"rtl":"ltr":""}},68587:(e,t,i)=>{"use strict";i.d(t,{CubicBezier:()=>s.CubicBezier,dur:()=>s.dur,easingFunc:()=>s.easingFunc});var s=i(74991)},51193:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(9289),i.e(4017),i.e(3016),i.e(2077)]).then(i.bind(i,30349))}i.d(t,{loadChangeIntervalDialog:()=>s})},8636:(e,t,i)=>{"use strict";i.d(t,{showChangeIntervalDialogAsync:()=>n});var s=i(51193);let r=null;function n(e){const t=r=(0,s.loadChangeIntervalDialog)().then(i=>{t===r&&i.showChangeIntervalDialog(e)});return t}},94420:(e,t,i)=>{"use strict";function s(e){return Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(8463),i.e(9289),i.e(7345),i.e(7176),i.e(8268),i.e(9055),i.e(2358),i.e(5802),i.e(9837),i.e(3016),i.e(1075),i.e(6085),i.e(1859)]).then(i.bind(i,54801)).then(t=>t.showGoToDateDialog(e))}i.d(t,{showGoToDateDialog:()=>s})},65645:(e,t,i)=>{"use strict";i.d(t,{showTooManyStudiesNotice:()=>n});var s=i(28353),r=i(3615);function n(e){"number"!=typeof e&&(e=TradingView.STUDY_COUNT_LIMIT),(0,r.showWarning)({title:(0,s.t)("Warning"),text:(0,s.t)("Studies limit exceeded: {number} studies per layout.\nPlease, remove some studies.").format({number:e})})}},34615:(e,t,i)=>{"use strict";i.d(t,{StudyMarket:()=>n});var s=i(52714),r=i.n(s);class n{constructor(e,t){this._visibility=new(r())(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t){var i -;null===this._dialog&&this._requestDialog(e,t),null===(i=this._dialog)||void 0===i||i.open(e,void 0,t)}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}resetAllPages(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()}_requestDialog(e,t){if(null===this._dialogPromise){let s;s=Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(7962),i.e(8986),i.e(8463),i.e(5774),i.e(1112),i.e(9637),i.e(775),i.e(3016),i.e(6456)]).then(i.bind(i,54127)).then(e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options)),this._dialogPromise=s.then(i=>{this._dialog=i,this._dialog.visible().subscribe(e=>{this._visibility.setValue(e)}),this._dialog.open(e,void 0,t)})}return this._dialogPromise}}},13221:(e,t,i)=>{"use strict";i.d(t,{setAdditionalSymbolInfoFields:()=>r,getAdditionalSymbolInfoFields:()=>n});let s=[];function r(e){s=e}function n(){return s}},88679:(e,t,i)=>{"use strict";function s(e,t){Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(6324),i.e(3016),i.e(9374)]).then(i.t.bind(i,65398,19)).then(i=>{i.showSymbolInfoDialog(e,t)})}i.d(t,{showSymbolInfoDialog:()=>s})},89330:(e,t,i)=>{"use strict";i.d(t,{ChartSaverBase:()=>s});class s{constructor(e){this._chartWidgetCollection=e}saveChartLineTools(e,t,i){return Promise.reject("Line tools storage is not supported")}_getCommonSavingInfo(e){const t=this._chartWidgetCollection,i=this._chartWidgetCollection.chartsSymbols(),s=i[t.activeChartWidget.value().id()],r={...(n=s,{...n,legs:JSON.stringify(null!==(o=n.legs)&&void 0!==o?o:[])})};var n,o;const a=t.metaInfo;return a.id.value()&&(r.id=a.id.value()),r.name=a.name.value()||"",r.description=a.description.value()||"",r.charts_symbols=function(e){const t={};for(const i of Object.keys(e))t[i]={symbol:e[i].symbol};return JSON.stringify(t)}(i),r.is_realtime=r.is_realtime=e?"0":"1",r}async _saveLineToolsToStorage(){return Promise.resolve()}}},76900:(e,t,i)=>{"use strict";var s=i(2872),r=i(28353).t,n=i(88537).assert,o=i(80643).deepEquals,a=i(43007).backend,l=i(89330).ChartSaverBase;r("The publication preview could not be loaded. Please disable your browser extensions and try again."),r("Failed to save library"),r("Failed to save script");function c(e,t){e.content=JSON.stringify(t)}t.ChartSaver=class extends l{constructor(e){super(e),this._chartAboutToBeSavedDelegate=new s,this._chartSavedDelegate=new s,this._prevChartState=null,this._chartSizeLimitExceededDelegate=new s}chartSizeLimitExceeded(){return this._chartSizeLimitExceededDelegate}chartAboutToBeSaved(){return this._chartAboutToBeSavedDelegate}chartSaved(){return this._chartSavedDelegate}whenReadyToSave(e){var t=this._chartWidgetCollection.activeChartWidget.value().model().mainSeries();if(t.hasDelayedSymbolIntervalChange()){var i,s=null;i=function(){t.dataEvents().symbolError().unsubscribe(null,s,!0),e()},s=function(){t.dataEvents().symbolResolved().unsubscribe(null,i,!0)},t.dataEvents().symbolResolved().subscribe(null,i,!0),t.dataEvents().symbolError().subscribe(null,s,!0)}else e()}saveToJSON(){var e=this._getCommonSavingInfo(!1) -;return c(e,this._getChartWidgetCollectionState(!1,!0)),e}_getChartWidgetCollectionState(e,t,i,s,r){return e||(t=!0,s=!1),t?this._chartWidgetCollection.state(!!e,i,s,r):this._chartWidgetCollection.activeChartWidget.value().state(!!e,i,s,r)}publishChart(e){}publishScript(e,t,i){}onPublish(e,t){}_saveChartImpl(e,t,i,s,r,n){var o=i,l=s;if(o=function(s){t.id.value()||(t.id.setValue(s),t.uid.setValue(s)),"function"==typeof i&&i(t,e)},!e.name)return console.warn("Saving chart with empty name is not allowed"),void s();a.saveChart(e.name,e.short_name,e.resolution,e,t).then(o.bind(this)).catch(l.bind(this))}_saveChart(e,t,i,s){var r=this._chartWidgetCollection.metaInfo,n=function(n){return o(this._prevChartState,n)[0]&&null!=r.id.value()?(this._chartSavedDelegate.fire(!0),void(t&&t(r,n))):this._saveChartImpl(n,r,t,i,s,e)}.bind(this);this._saveLineToolsToStorage().then((function(){var t=e(!0);return n(t)})).catch((function(t){var i=e(!1);return n(i)}))}saveChartSilently(e,t,i){i=i||{};var s=function(e){var t=e&&!1,s=this._getChartWidgetCollectionState(!1,void 0,void 0,void 0,t),r=this._getCommonSavingInfo(!1,t);return c(r,s),i.chartName&&(r.name=i.chartName),r.name&&0!==r.name.length||!i.defaultChartName||(r.name=i.defaultChartName),i.autoSave&&(r.autoSave=!0),r}.bind(this);this._isSaveInProcess=!0,this._chartAboutToBeSavedDelegate.fire(),this._saveChart(s,function(t,i){n(!this._chartWidgetCollection.readOnly(),"Trying to save layout in read-only mode"),this._chartWidgetCollection.metaInfo.name.setValue(i.name),this._prevChartState=i,this._chartSavedDelegate.fire(!0),this._isSaveInProcess=!1,e&&e({uid:t.uid.value(),data:i}),delete this._prevChartState.savingToken}.bind(this),function(){this._chartSavedDelegate.fire(!1),this._isSaveInProcess=!1,t&&t.apply(null,arguments)}.bind(this),i)}isSaveInProcess(){return this._isSaveInProcess}}},1570:(e,t,i)=>{"use strict";i.d(t,{getTranslatedSymbolDescription:()=>s});i(28353);function s(e){return e.description||""}},82724:(e,t,i)=>{"use strict";function s(e){return e+"…"}i.d(t,{appendEllipsis:()=>s})},8128:(e,t,i)=>{"use strict";function s(e){if(!o(e))throw e}function r(e){return(null==e?void 0:e.aborted)?Promise.reject(n()):new Promise((t,i)=>{null==e||e.addEventListener("abort",()=>i(n()),{once:!0})})}function n(){return new DOMException("Aborted","AbortError")}function o(e){return e instanceof Error&&"AbortError"===e.name}function a(e,t){return Promise.race([r(e),t])}async function l(e,t){let i;try{await a(e,new Promise(e=>{i=setTimeout(e,t)}))}finally{clearTimeout(i)}}i.d(t,{skipAbortError:()=>s,isAbortError:()=>o,respectAbort:()=>a,delay:()=>l})},98619:(e,t,i)=>{"use strict";function s(e){let t;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if(e instanceof Date)t=new Date(e.valueOf());else if(Array.isArray(e)){t=[];let i=0;const r=e.length;for(;is})},15840:(e,t,i)=>{"use strict" -;function s(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach(t=>{null!=t&&"object"==typeof t&&Object.keys(t).forEach(i=>{const n=e[i],o=t[i];if(o===e)return;const a=Array.isArray(o);if(o&&(r(o)||a)){let t;t=a?n&&Array.isArray(n)?n:[]:n&&r(n)?n:{},e[i]=s(t,o)}else void 0!==o&&(e[i]=o)})}),e):e}function r(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const i=Object.hasOwnProperty.toString,s=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof s&&i.call(s)===i.call(Object)}i.d(t,{deepExtend:()=>s})},88461:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return"";if(e instanceof Error){let t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,{errorToString:()=>s})},72077:(e,t,i)=>{"use strict";i.d(t,{getTwemojiUrl:()=>r});var s=i(18438);function r(e,t){let i="";return s.default.parse(e,e=>(i=s.default.base+("svg"===t?`svg/${e}.svg`:`72x72/${e}.png`),!1)),i}s.default.base="https://cdnjs.cloudflare.com/ajax/libs/twemoji/13.0.1/"},9423:(e,t,i)=>{"use strict";i.r(t),i.d(t,{guid:()=>r,randomHash:()=>n,randomHashN:()=>o});const s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function n(){return o(12)}function o(e){let t="";for(let i=0;i{"use strict";i.d(t,{parseHtml:()=>r,parseHtmlElement:()=>n});const s=new WeakMap;function r(e,t){let i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,s&&(r=s.get(i)),r||(r=i.ownerDocument.createRange(),r.selectNodeContents(i),s&&s.set(i,r)),r.createContextualFragment(e)}function n(e,t){const i=r(e,t),s=i.firstElementChild;return null!==s&&i.removeChild(s),s}},54475:(e,t,i)=>{"use strict";function s(e){e.preventDefault()}i.d(t,{preventDefault:()=>s,preventDefaultForContextMenu:()=>n});const r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function n(e){const t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},80054:(e,t,i)=>{"use strict";i.d(t,{htmlEscape:()=>n,removeSpaces:()=>o,capitalizeFirstLetterInWord:()=>a});const s=/[<"'&>]/g,r=e=>`&#${e.charCodeAt(0)};`;function n(e){return e.replace(s,r)}function o(e=""){return e.replace(/\s+/g,"")}function a(e=""){return e.replace(/\b\w/g,e=>e.toUpperCase())}},96397:(e,t,i)=>{"use strict";function s(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])}i.r(t),i.d(t,{uniq:()=>s})},38881:(e,t,i)=>{"use strict";i.d(t,{ChunkLoader:()=>r});var s=i(8128);class r{constructor(){this._retries=5,this._cache=null,this._tryLoad=(e,t)=>{this._retries=this._retries-1 -;this._startLoading(e).then(t,0!==this._retries?i=>{(0,s.isAbortError)(i)||setTimeout(()=>this._tryLoad(e,t),3e3)}:void 0)}}load(e){return this._cache||(this._cache=new Promise(this._tryLoad.bind(this,null!=e?e:null))),this._cache}}},65446:(e,t,i)=>{"use strict";function s(e,t){const i=e.files&&e.files.length>0;if(!i&&t&&t.eventPhase>0)return r(t,e),Promise.resolve();if(!i){let t=!1;const i=i=>{i.stopImmediatePropagation(),r(i,e),t=!0};try{document.addEventListener("copy",i,!0),document.execCommand("copy")}finally{document.removeEventListener("copy",i,!0)}if(t)return Promise.resolve()}return async function(e){if(!navigator.clipboard||!navigator.clipboard.write||!window.ClipboardItem)throw new DOMException("ClipboardApi is not supported","NotSupportedError");const t={};for(const i of e.files||[])t[i.type]=i;e.text&&(t["text/plain"]=e.text);e.html&&(t["text/html"]=e.html);return navigator.clipboard.write([new window.ClipboardItem(t)])}(e)}function r(e,t){e.preventDefault();const i=e.clipboardData;t.text&&i.setData("text/plain",t.text),t.html&&i.setData("text/html",t.html)}async function n(e,t){if("text/plain"===t&&!navigator.clipboard.write){const t=await e;return navigator.clipboard.writeText(await t.text())}if(!navigator.clipboard||!navigator.clipboard.write||!window.ClipboardItem)throw new DOMException("ClipboardApi is not supported","NotSupportedError");let i=null;try{i=new window.ClipboardItem({[t]:e})}catch(s){i=new window.ClipboardItem({[t]:await e})}if(i)return navigator.clipboard.write([i]);throw new Error("ClipboardApi is not supported")}i.d(t,{writeImpl:()=>s,writePromiseUsingApi:()=>n})},5370:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return null;const t=e.match(/(delayed_streaming)_([\d]{1,4})/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}i.d(t,{parseUpdateMode:()=>s})},84917:(e,t,i)=>{"use strict";var s,r;i.r(t),i.d(t,{WeekDays:()=>s,Months:()=>r}),function(e){e[e.SUNDAY=1]="SUNDAY",e[e.MONDAY=2]="MONDAY",e[e.TUESDAY=3]="TUESDAY",e[e.WEDNESDAY=4]="WEDNESDAY",e[e.THURSDAY=5]="THURSDAY",e[e.FRIDAY=6]="FRIDAY",e[e.SATURDAY=7]="SATURDAY"}(s||(s={})),function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(r||(r={}))},81836:(e,t,i)=>{"use strict";function s(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),reject:t,resolve:e}}i.d(t,{createDeferredPromise:()=>s})},76861:(e,t,i)=>{"use strict";function s(e=location.host){ -return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function r(){return"local"===s()}function n(){return"battle"===s()}function o(){return!n()}i.r(t),i.d(t,{environment:()=>s,isLocal:()=>r,isProd:()=>n,isDebug:()=>o})},80007:(e,t,i)=>{"use strict";i.d(t,{preventDefault:()=>r,wrapHandlerWithPreventEvent:()=>n,preventScrollByWheelClick:()=>o});var s=i(49483);function r(e){e.cancelable&&e.preventDefault()}function n(e){return t=>{r(t),e()}}function o(e){s.isChrome&&e.addEventListener("mousedown",e=>{if(1===e.button)return e.preventDefault(),!1})}},46627:(e,t,i)=>{"use strict";i.d(t,{FeatureToggleWatchedValue:()=>n});var s=i(52714),r=i.n(s);class n extends(r()){constructor(e,t){super(function(e,t){return t}(0,t))}destroy(){0}}},56186:(e,t,i)=>{"use strict";function s(e){if(e instanceof Error)return e.stack||e.message;try{return e.outerHTML.slice(0,1024)}catch(e){}try{if(void 0!==e)return JSON.stringify(e).slice(0,1024)}catch(e){}return String(e)}function r(){window.__tv_js_errors||(window.__tv_js_errors=[]),window.addEventListener("error",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(`${t} ${e.message||"JS error"}. ${e.filename||""}, line ${e.lineno}, col ${e.colno}.\nError: `+s(e.error))},!1),window.addEventListener("unhandledrejection",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(t+" Unhandled rejection.\nReason: "+s(e.reason))},!1),document.addEventListener("securitypolicyviolation",e=>{var t,i;const r=(new Date).toISOString(),n="report"===e.disposition?"CSP report-only":"CSP violation";window.__tv_js_errors.push(`${r} ${n}: ${e.violatedDirective||e.effectiveDirective}. ${e.sourceFile||""}, line ${null!==(t=e.lineno)&&void 0!==t?t:e.lineNumber}, col ${null!==(i=e.colno)&&void 0!==i?i:e.columnNumber}.\nBlocked URI: ${e.blockedURL||e.blockedURI}\nSample: ${e.sample}\nTarget: `+s(e.target))},!1)}i.d(t,{install:()=>r})},76422:(e,t,i)=>{"use strict";i.r(t),i.d(t,{unsubscribe:()=>l,on:()=>c,subscribe:()=>h,subscribeToAll:()=>d,emit:()=>u,emitOnce:()=>p});var s=i(2872),r=i.n(s);const n={},o=[],a={};function l(e,t,i){n[e].unsubscribe(i,t)}function c(e,t,i){h(e,t,i)}function h(e,t,i,s){n.hasOwnProperty(e)||(n[e]=new(r())),a[e]?t.call(i):n[e].subscribe(i,t,s)}function d(e){o.push(e)}function u(e,...t){const i=[e].concat(t);o.forEach(e=>{e.apply(null,i)}),n.hasOwnProperty(e)&&n[e].fire.apply(n[e],t)}function p(e){a[e]&&console.warn(`Something went wrong: emitOnce called multiple times with same event (${e})`),a[e]=!0,u.apply(null,arguments)}},25760:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Modifiers:()=>s.Modifiers,createGroup:()=>u,pressedKeys:()=>d, -registerWindow:()=>p,unregisterWindow:()=>_});var s=i(68335),r=i(35749),n=i(52714),o=i.n(n);var a=i(51768);class l{constructor(e,t){this._group=e,this.hotkey=t.hotkey,this.handler=t.handler,this.desc=t.desc,this.element=t.element||null,t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1}destroy(){this._group&&(this._group.remove(this),this._group=null)}}class c{constructor(e,t){this._actions=[],this._manager=e,this.modal=!(!t||!t.modal),t&&(this.desc=t.desc),t&&t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1,this._manager.registerGroup(this)}add(e){const t=new l(this,e);return this._actions.push(t),t}remove(e){for(let t=this._actions.length;t-- >0;)this._actions[t]===e&&this._actions.splice(t,1)}handleHotkey(e,t){for(let i=this._actions.length;i-- >0;){const r=this._actions[i];if(r.hotkey===e&&((!r.element||t.target&&r.element.contains(t.target))&&!r.isDisabled()))return r.handler(t),t.preventDefault(),(0,a.trackEvent)("Keyboard Shortcuts",(0,s.humanReadableHash)(e)),!0}return!1}promote(){this._manager.promoteGroup(this)}destroy(){this._actions.length=0,this._manager.unregisterGroup(this)}}const h=new class{constructor(){this._groups=[],this._pressedKeys=new(o())(0),this._keyDownListener=e=>{if(e.defaultPrevented)return;const t=(0,s.hashFromEvent)(e);if(this._pressedKeys.setValue(t),!(0,r.isNativeUIInteraction)(t,e.target))for(let i=this._groups.length;i-- >0;){const s=this._groups[i];if(!s.isDisabled()){if(s.handleHotkey(t,e))return;if(s.modal)return}}},this._keyUpListener=e=>{const t=(0,s.hashFromEvent)(e);this._pressedKeys.setValue(t)},this._blurEvent=()=>{this._pressedKeys.setValue(0)},this._mouseEvent=e=>{const t=(0,s.modifiersFromEvent)(e),i=255&this._pressedKeys.value();this._pressedKeys.setValue(t|i)}}listen(e){e.addEventListener("keydown",this._keyDownListener),e.addEventListener("keyup",this._keyUpListener),e.addEventListener("blur",this._blurEvent),e.addEventListener("mousemove",this._mouseEvent)}unlisten(e){e.removeEventListener("keydown",this._keyDownListener),e.removeEventListener("keyup",this._keyUpListener),e.removeEventListener("blur",this._blurEvent),e.removeEventListener("mousemove",this._mouseEvent)}registerGroup(e){this._groups.push(e)}unregisterGroup(e){for(let t=this._groups.length;t--;)this._groups[t]===e&&this._groups.splice(t,1)}promoteGroup(e){let t=this._groups.length-1;for(let i=this._groups.length;i--;){if(this._groups[i]===e)return void(i!==t&&(this._groups.splice(i,1),this._groups.splice(t,0,e)));this._groups[i].modal&&(t=i-1)}}pressedKeys(){return this._pressedKeys}},d=h.pressedKeys();function u(e){return new c(h,e)}function p(e){h.listen(e)}function _(e){h.unlisten(e)}p(window)},68335:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isMacKeyboard:()=>r,Modifiers:()=>n,modifiersFromEvent:()=>o,hashFromEvent:()=>a,hashShiftPlusEnter:()=>l,humanReadableModifiers:()=>c,humanReadableHash:()=>d});var s=i(49483);const r=(0,s.isMac)()||s.CheckMobile.iOS();var n -;function o(e){let t=0;return e.shiftKey&&(t+=1024),e.altKey&&(t+=512),e.ctrlKey&&(t+=256),e.metaKey&&(t+=2048),t}function a(e){return o(e)|e.keyCode}!function(e){e[e.None=0]="None",e[e.Alt=512]="Alt",e[e.Shift=1024]="Shift",e[e.Mod=r?2048:256]="Mod",e[e.Control=256]="Control",e[e.Meta=2048]="Meta"}(n||(n={}));const l=1037;function c(e,t=!r){let i="";return 256&e&&(i+=r?"^":"Ctrl",t&&(i+=" + ")),512&e&&(i+=r?"⌥":"Alt",t&&(i+=" + ")),1024&e&&(i+=r?"⇧":"Shift",t&&(i+=" + ")),2048&e&&(i+=r?"⌘":"Win",t&&(i+=" + ")),i}const h={9:"⇥",13:"↵",27:"Esc",8:r?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",188:",",191:"/"};for(let e=1;e<=16;e++)h[e+111]="F"+e;function d(e){let t=c(e);const i=255&e;return t+=i in h?h[i]:String.fromCharCode(i),t}},47193:(e,t,i)=>{"use strict";i.d(t,{migrateShortcut:()=>o});var s=i(68335);function r(e){if("number"==typeof e)return e;switch(e.toLowerCase()){case"ctrl":return s.Modifiers.Control;case"shift":return s.Modifiers.Shift;case"alt":return s.Modifiers.Alt;default:return e.toUpperCase().charCodeAt(0)}}function n(e){let t=0;for(let i=0;i{"use strict";i.d(t,{isTextEditingField:()=>r,isNativeUIInteraction:()=>n});var s=i(68335);function r(e){if("INPUT"===e.tagName){const t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function n(e,t){if(!t)return!1;const i=255&e;if(27===i||i>>>4==7)return!1;switch(e^i){case s.Modifiers.Alt:return(38===i||40===i)&&"SELECT"===t.tagName||r(t);case s.Modifiers.Alt+s.Modifiers.Shift:return r(t);case s.Modifiers.Mod:if(67===i||!s.isMacKeyboard&&45===i){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return r(t);case s.Modifiers.Mod+s.Modifiers.Shift:return i>=33&&i<=40&&r(t);case s.Modifiers.Shift:case 0:return!!(9!==i||t.ownerDocument&&t!==t.ownerDocument.body&&t!==t.ownerDocument.documentElement)&&((13===i||32===i||!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t))&&("form"in t||t.isContentEditable))}return!1}},82992:(e,t,i)=>{"use strict";i.d(t,{linking:()=>u});var s=i(4889),r=i(52714),n=i.n(r),o=i(67337),a=i(37667),l=i(98125),c=i(15943);const h=(0,l.getLogger)("Linking");var d;!function(e){e[e.NotBound=0]="NotBound",e[e.BoundToWidget=1]="BoundToWidget",e[e.BoundToModel=2]="BoundToModel"}(d||(d={}));const u=new class{constructor(){this._watchedSymbol=new(n()),this._seriesShortSymbol=new(n()),this._proSymbol=new(n()),this._watchedInterval=new(n()),this._watchedIntraday=new(n()),this._watchedSeconds=new(n()),this._watchedTicks=new(n()),this._watchedRange=new(n()),this._watchedSupportedResolutions=new(n()),this._watchedSupportedChartStyles=new(n())([]),this._symbolNamesList=new(n()), -this._chartWidgetBindingState=d.NotBound,this._activeChartWidget=null,this._watchedSymbolListenerBound=this._watchedSymbolListener.bind(this),this._watchedIntervalListenerBound=this._watchedIntervalListener.bind(this),this._onSymbolLinkBound=this._onSymbolLink.bind(this),this._searchCharts=null,this._searchChartsLoadDebounced=null,this._selfEmit=!1,this._preventFeedBySymbol=!1,this._feedBySymbolDebounceCounter=0}get symbol(){return this._watchedSymbol}get proSymbol(){return this._proSymbol}get symbolNamesList(){return this._symbolNamesList}get seriesShortSymbol(){return this._seriesShortSymbol.readonly()}get interval(){return this._watchedInterval}get intraday(){return this._watchedIntraday.readonly()}get seconds(){return this._watchedSeconds.readonly()}get ticks(){return this._watchedTicks.readonly()}get range(){return this._watchedRange.readonly()}get supportedResolutions(){return this._watchedSupportedResolutions.readonly()}get supportedChartStyles(){return this._watchedSupportedChartStyles.readonly()}get preventFeedBySymbol(){return this._preventFeedBySymbol}bindToChartWidget(e){if(this.unbindFromChartWidget(),this._activeChartWidget=e,e.hasModel())return void this._onChartModelCreated(e.model());e.modelCreated().subscribe(this,this._onChartModelCreated),this._chartWidgetBindingState=d.BoundToWidget;const t=e.properties().childs().mainSeriesProperties.childs();this._watchedSymbol.setValue(t.symbol.value()),this._watchedInterval.setValue(t.interval.value())}unbindFromChartWidget(){switch(this._chartWidgetBindingState){case d.BoundToWidget:if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");this._activeChartWidget.modelCreated().unsubscribe(this,this._onChartModelCreated);break;case d.BoundToModel:this._symbolProperty().unsubscribe(this,this._onSymbolPropertyChange),this._watchedSymbol.unsubscribe(this._watchedSymbolListenerBound),this._mainSeries().dataEvents().symbolResolved().unsubscribe(this,this._updateSeriesSymbolInfo),this._mainSeries().dataEvents().symbolError().unsubscribe(this,this._updateSeriesSymbolInfo),this._intervalProperty().unsubscribe(this,this._onIntervalPropertyChange),this._watchedInterval.unsubscribe(this._watchedIntervalListenerBound),delete this._watchedSymbol.hook,delete this._watchedSymbol.writeLock}this._activeChartWidget=null,this._chartWidgetBindingState=d.NotBound}getChartWidget(){return this._activeChartWidget}bindToChartWidgetCollection(e){this._chartWidgetCollection=e,this.unbindFromChartWidget(),e.activeChartWidget.subscribe(e=>{this.unbindFromChartWidget(),this.bindToChartWidget(e)},{callWithLast:!0})}bindToSearchCharts(e){this.unbindFromSearchCharts(),this._searchCharts=e,e.onSearchBySymbol.subscribe(this,this._onSearchBySymbol),e.loadingSymbol.subscribe(e=>{!1===e&&(this._feedBySymbolDebounceCounter=0)}),this._watchedSymbol.subscribe(this._onSymbolLinkBound)}unbindFromSearchCharts(){this._searchCharts&&(this._searchCharts.onSearchBySymbol.unsubscribe(this,this._onSearchBySymbol),this._watchedSymbol.unsubscribe(this._onSymbolLinkBound),this._searchCharts=null) -}setPreventFeedBySymbol(e){this._preventFeedBySymbol=e}_onSearchBySymbol(e){if(!e.resolved_symbol)throw new Error("no resolved_symbol");this._selfEmit=!0,this._watchedSymbol.setValue(e.resolved_symbol),this._selfEmit=!1}_onSymbolLink(e){if(!this._selfEmit){if(!this._searchCharts){const e="No search charts defined";throw h.logError(e),new Error(e)}this._preventFeedBySymbol||this._loadSearchCharts(e)}}_loadSearchCharts(e){if(!this._searchCharts){const e="No search charts defined";throw h.logError(e),new Error(e)}if(this._searchChartsLoadDebounced)return void(this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced(e)));const t=e=>this._searchCharts?(!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchChartsLoadDebounced=null,this._searchCharts.feedBySymbol.call(this._searchCharts,e)):()=>{};!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchCharts.feedBySymbol(e)}_mainSeries(){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");return this._activeChartWidget.model().mainSeries()}_properties(){return this._mainSeries().properties()}_symbolProperty(){return this._properties().symbol}_intervalProperty(){return this._properties().interval}_watchedSymbolListener(e){this._symbolProperty().value()!==e&&this._chartWidgetCollection.setSymbol(e)}_sendSnowplowAnalytics(){if(!window.user.do_not_track)throw new Error("unsupported")}_onSymbolPropertyChange(){const e=this._symbolProperty().value()!==this._watchedSymbol.value();this._watchedSymbol.setValue(this._symbolProperty().value()),e&&this._chartWidgetCollection.setSymbol(this._symbolProperty().value())}_onSymbolResolved(e){const t=this._mainSeries().symbolInfo();t&&this._applyValuesFromSymbolInfo(t)}_applyValuesFromSymbolInfo(e){const t=e.pro_name||o.enabled("trading_terminal")&&(e.full_name||e.name)||"";this._proSymbol.setValue(t),e.aliases&&this._symbolNamesList.setValue(e.aliases)}_updateSeriesSymbolInfo(){this._seriesShortSymbol.setValue(this._properties().shortName.value());const e=this._mainSeries().symbolInfo();if(e){this._applyValuesFromSymbolInfo(e);{const t=e.supported_resolutions;t?this._watchedSupportedResolutions.setValue(t):this._watchedSupportedResolutions.setValue(void 0)}let t=(0,c.allChartStyles)();(0,a.isCloseBasedSymbol)(e)&&(t=t.filter(e=>(0,a.isSingleValueBasedStyle)(e))),this._watchedSupportedChartStyles.setValue(t),this._watchedIntraday.setValue(!!e.has_intraday),this._watchedSeconds.setValue(!!e.has_seconds),this._watchedTicks.setValue(!(0,a.isCloseBasedSymbol)(e)&&!!e.has_ticks),this._watchedRange.setValue(!(0,a.isCloseBasedSymbol)(e))}else this._watchedIntraday.deleteValue(),this._watchedSeconds.deleteValue(),this._watchedTicks.deleteValue(), -this._watchedRange.deleteValue(),this._proSymbol.deleteValue()}_watchedIntervalListener(e){this._intervalProperty().value()!==e&&this._chartWidgetCollection.setResolution(e)}_onIntervalPropertyChange(){const e=this._intervalProperty().value()!==this._watchedInterval.value();this._watchedInterval.setValue(this._intervalProperty().value()),e&&this._chartWidgetCollection.setResolution(this._intervalProperty().value())}_onChartModelCreated(e){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");this._chartWidgetBindingState=d.BoundToModel,this._activeChartWidget.modelCreated().unsubscribe(this,this._onChartModelCreated);const t=this._symbolProperty();t.subscribe(this,this._onSymbolPropertyChange),this._watchedSymbol.setValue(t.value()),this._watchedSymbol.subscribe(this._watchedSymbolListenerBound);const i=this._mainSeries();i.dataEvents().symbolResolved().subscribe(this,this._onSymbolResolved),this._watchedSymbol.hook=e=>(i.symbolSameAsCurrent(e)&&(e=i.symbol()),e),i.dataEvents().symbolResolved().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolError().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolGroupNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),this._updateSeriesSymbolInfo();const s=this._intervalProperty();s.subscribe(this,this._onIntervalPropertyChange),this._watchedInterval.setValue(s.value()),this._watchedInterval.subscribe(this._watchedIntervalListenerBound),this._activeChartWidget.readOnly()&&(this._watchedSymbol.writeLock=!0)}};window.TradingViewApi||(window.TradingViewApi={linking:u})},11417:(e,t,i)=>{"use strict";const{getLogger:s}=i(98125),r=s("TVLocalStorage");var n=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};n.prototype._report=function(){if(this.isAvailable){const e=10,t=[];for(let e=0;et.length-e.length);const i=t.slice(0,e);t.sort((e,t)=>t.key.length-e.key.length);const s=t.slice(0,e);r.logNormal("Total amount of keys in Local Storage: "+this.length),r.logNormal(`Top ${e} keys with longest values: ${JSON.stringify(i)}`),r.logNormal(`Top ${e} longest key names: ${JSON.stringify(s)}`);try{navigator.storage.estimate().then(e=>{r.logNormal("Storage estimate: "+JSON.stringify(e))})}catch(e){}}},n.prototype.length=0,n.prototype.isAvailable=!1,n.prototype.localStorage={"tvlocalstorage.available":"false"},n.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},n.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},n.prototype.getItem=function(e){ -return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},n.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},n.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength()},n.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var o=function(e){this.storage=e};o.prototype.getItem=function(e){return Promise.resolve(this.storage.getItem(e))},o.prototype.setItem=function(e,t){return Promise.resolve(this.storage.setItem(e,t))},window.TVLocalStorage=new n,window.TVLocalStorageAsync=new o(window.TVLocalStorage),e.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},84015:(e,t,i)=>{"use strict";function s(e,t=!1){return!1}function r(e){return e}i.d(t,{isOnMobileAppPage:()=>s,urlWithMobileAppParams:()=>r})},19334:(e,t,i)=>{"use strict";function s(){}i.d(t,{addPerfMark:()=>o});const r=console.timeStamp?console.timeStamp.bind(console):s,n=window.performance&&performance.mark?performance.mark.bind(performance):s;window.performance&&performance.measure&&performance.measure.bind(performance),window.performance&&performance.clearMarks&&performance.clearMarks.bind(performance);function o(e){r(e),n(e)}},14905:(e,t,i)=>{"use strict";function s(e){return e===r(e)}function r(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)}i.d(t,{isPineIdString:()=>s,extractPineId:()=>r})},16216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{registerService:()=>o,unregisterService:()=>a,hasService:()=>l,service:()=>c,waitServiceRegistered:()=>h});var s=i(81836);const r={},n=new Map;function o(e,t){if(l(e))throw new Error("Service already registered");r[e.id]=t;const i=n.get(e.id);void 0!==i&&(n.delete(e.id),i.resolve(t))}function a(e){if(!l(e))throw new Error("Service not found");r[e.id]=void 0}function l(e){return void 0!==r[e.id]}function c(e){const t=r[e.id];if(void 0===t)throw new Error("ServiceLocator: Service "+e.id+" not found");return t}function h(e){if(l(e))return Promise.resolve(c(e));let t=n.get(e.id);return void 0===t&&(t=(0,s.createDeferredPromise)(),n.set(e.id,t)),t.promise}},56840:(e,t,i)=>{"use strict";e=i.nmd(e),i(49483);i(85198).fetch;var s=i(28789).regExpEscape,r=i(21097).TVXWindowEvents,n=i(11417).TVLocalStorage,o=i(2872),a=i(67337),l=["s.tradingview.com","betacdn.tradingview.com"],c=a.enabled("use_localstorage_for_settings"),h=window.TVSettings=function(){var e=!1,t=null;function i(){return!t&&c}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(e){}if(e){var d={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},u=function(e,t,i){var s=d[e];return null==s?t:s},p=function(){};return{loaded:!1,loadedModel:!1,getValue:u,getJSON:u,getBool:u,getFloat:u,getInt:u,setValue:p,setJSON:p,remove:p,keys:function(){ -return Object.keys(d)},keysMask:function(){return[]},sync:p,onSync:{subscribe:function(){}}}}window.environment;var _,m=TradingView.onWidget()?"tradingview-widget":"tradingview",g=m+".",f={},v=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^domepanel.visible$/,/^orderpanel.visible$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/,/^ChartDrawingToolbarWidget\.visible/];function S(e){return g+e}function y(e,t){var i=f[e];return null==i?t:i}function b(e,t,i){i=i||{};var s=""+t;return f[e]!==s&&(f[e]=s,C(e)),i.forceFlush&&!_&&(_=setTimeout((function(){_=void 0,P()}),10)),h}function w(e,t){return t=t||{},null!=f[e]&&(delete f[e],C(e)),t.forceFlush&&P(),h}function C(e){if(t)null==f[e]?t.removeValue(e):t.setValue(e,f[e]);else if(i())try{null==f[e]?n.removeItem(S(e)):n.setItem(S(e),f[e])}catch(e){}else 0;r.emit("settings",JSON.stringify({key:e,value:f[e]}))}function P(e){}function T(){return Object.keys(f)}function x(e){for(var t=0;t=0;n--)e.test(i[n])&&r.push(i[n]),e.lastIndex=0;return r},sync:function(e){null!==e?(t?M(t.initialSettings||{}):i()?(function(){if(TradingView.onWidget()&&l.includes(window.location.host))for(var e=n.length;e--;){var t=n.key(e);if(0===t.indexOf("tradingview.")){var i=t.replace("tradingview.",m+".");n.setItem(i,n.getItem(t)),n.removeItem(t)}}}(), -function(){f={};for(var e=!a.enabled("save_chart_properties_to_local_storage"),t=n.length;t--;){var i=n.key(t);if(i&&I(i)){var s=i.substring(g.length);e&&!x(s)||(f[s]=n.getItem(i))}}}()):M(e||{}),L.fire()):!0},onSync:L,setSettingsAdapter:function(e){t=e}}}();e&&e.exports&&(e.exports=h)},26843:(e,t,i)=>{"use strict";i.d(t,{StdTheme:()=>a.StdTheme,getStdChartTheme:()=>h,getStdThemeNames:()=>c,isStdTheme:()=>u,translateThemeName:()=>d});var s=i(28353),r=i(24377) -;const n=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#131722","lineColor":"rgba(42, 46, 57, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"horzGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#ffffff","backgroundGradientStartColor":"#ffffff","backgroundGradientEndColor":"#ffffff","separatorColor":"#E0E3EB"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#B2B5BE","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"}}}}'),o=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#B2B5BE","lineColor":"rgba(240, 243, 250, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"horzGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#131722","backgroundGradientStartColor":"#181C27","backgroundGradientEndColor":"#131722","backgroundType":"gradient","separatorColor":"#2A2E39"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#5d606b","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f"}}}}') -;var a=i(24633);function l(){return{[a.StdTheme.Light]:JSON.parse(JSON.stringify(n)),[a.StdTheme.Dark]:JSON.parse(JSON.stringify(o))}}function c(){return[a.StdTheme.Light,a.StdTheme.Dark]}function h(e){return l()[e]}function d(e){return{[a.StdTheme.Light]:s.t("Light",{context:"colorThemeName"}),[a.StdTheme.Dark]:s.t("Dark",{context:"colorThemeName"})}[e]||e}function u(e){const t=l();return c().some(i=>p(t[i],e))}function p(e,t){let i=e.content===t.content;return function(e={},t){try{!function e(t,i,s){for(const r in t)if(t.hasOwnProperty(r)){const n=i.concat(r);if("object"==typeof t[r])e(t[r],n,s);else if(s(n,t[r]))throw new Error("exit")}}(e,[],t)}catch(e){return}}(e.content,(e,s)=>{const n=function(e,t={}){let i=t;for(let t=0;t{"use strict";var s;i.d(t,{StdTheme:()=>s}),function(e){e.Light="light",e.Dark="dark"}(s||(s={}))},6087:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_THEME:()=>p,extractThemeFromModel:()=>R,getCurrentTheme:()=>S,getStdTheme:()=>L,getStdThemeNames:()=>I,getStdThemedValue:()=>A,getTheme:()=>T,getThemeNames:()=>x,getThemedColor:()=>y,isPublicTheme:()=>v,isStdTheme:()=>N,isStdThemeName:()=>M,isStdThemedDefaultValue:()=>E,isThemeExist:()=>V,loadTheme:()=>b,removeTheme:()=>D,restoreTheme:()=>w,saveTheme:()=>k,savedThemeName:()=>C,syncTheme:()=>P,themes:()=>f,translateStdThemeName:()=>B});var s=i(24377),r=i(59803),n=i(56840);function o(){return(0,n.getValue)("current_theme.name")||null}var a=i(85198);const l=(0,i(98125).getLogger)("Themes.Provider");let c=null;function h(e){return(0,a.fetch)("/theme/?themeName="+encodeURIComponent(e),{credentials:"include",method:"GET"}).then(e=>e.json()).then(e=>{const t={};return e.content&&(t.content=JSON.parse(e.content)),t})}var d=i(26843),u=i(45345);const p="light";var _=i(28353) -;const m=JSON.parse('{"color-bg-primary":"color-cold-gray-850","color-bg-primary-hover":"color-cold-gray-800","color-bg-secondary":"color-cold-gray-900","color-bg-highlight":"color-cold-gray-900","color-bg-scroll-buttons":"color-cold-gray-800","color-legacy-bg-scroll-buttons":"color-cold-gray-550","color-legacy-bg-widget":"color-cold-gray-900","color-text-primary":"color-cold-gray-200","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-650","color-accent-content":"color-white","color-divider":"color-cold-gray-700","color-divider-hover":"color-cold-gray-800","color-divider-secondary":"color-cold-gray-800","color-box-shadow":"color-cold-gray-900","color-active-hover-text":"color-cold-gray-300","color-alert-text":"color-cold-gray-200","color-border":"color-cold-gray-750","color-border-chat-fields":"color-cold-gray-750","color-border-hover":"color-cold-gray-650","color-border-table":"color-cold-gray-800","color-brand":"color-tv-blue-500","color-brand-hover":"color-tv-blue-600","color-brand-active":"color-tv-blue-700","color-button-hover-bg":"color-cold-gray-850","color-chart-page-bg":"color-cold-gray-800","color-common-tooltip-bg":"color-cold-gray-750","color-danger":"color-ripe-red-600","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-400","color-depthrenderer-fill-style":"color-cold-gray-150","color-depthrenderer-stroke-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-800","color-disabled-input":"color-cold-gray-750","color-empty-container-message":"color-cold-gray-500","color-highlight-new":"color-tv-blue-a800","color-icons":"color-cold-gray-500","color-input-bg":"color-cold-gray-800","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-700","color-input-publish-bg":"color-cold-gray-900","color-item-active-blue":"color-tv-blue-a800","color-item-hover-active-bg":"color-cold-gray-800","color-item-hover-bg":"color-cold-gray-800","color-item-hover-blue":"color-tv-blue-a800","color-item-selected-blue":"color-tv-blue-a800","color-item-active-text":"color-cold-gray-200","color-item-active-bg":"color-tv-blue-500","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-item":"color-cold-gray-500","color-list-nth-child-bg":"color-cold-gray-850","color-news-highlight":"color-cold-gray-800","color-pane-bg":"color-cold-gray-900","color-pane-secondary-bg":"color-cold-gray-850","color-placeholder":"color-cold-gray-650","color-popup-menu-item-hover-bg":"color-cold-gray-800","color-popup-menu-separator":"color-cold-gray-700","color-row-hover-active-bg":"color-cold-gray-800","color-sb-scrollbar-body-bg":"color-cold-gray-650","color-screener-description":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-750","color-search-button-hover":"color-cold-gray-700","color-separator-table-chat":"color-cold-gray-750","color-success":"color-minty-green-700","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-500","color-tag-active-bg":"color-cold-gray-750","color-tag-hover-bg":"color-cold-gray-800","color-text-regular":"color-cold-gray-200","color-toolbar-button-text":"color-cold-gray-300","color-toolbar-button-text-hover":"color-cold-gray-300","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-800","color-toolbar-button-background-secondary-hover":"color-cold-gray-750","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-300","color-toolbar-interactive-element-text-hover":"color-cold-gray-250","color-toolbar-opened-element-bg":"color-cold-gray-800","color-tooltip-bg":"color-cold-gray-750","color-tv-button-checked":"color-cold-gray-500","color-tv-dialog-caption":"color-cold-gray-50","color-tv-dropdown-item-hover-bg":"color-cold-gray-800","color-underlined-text":"color-cold-gray-300","color-widget-pages-bg":"color-cold-gray-900","color-warning":"color-tan-orange-700","color-forex-icon":"color-white","color-list-item-active-bg":"color-tv-blue-500","color-list-item-hover-bg":"color-cold-gray-800","color-list-item-text":"color-cold-gray-200","color-price-axis-label-back":"color-cold-gray-800","color-price-axis-label-text":"color-cold-gray-500","color-price-axis-gear":"color-cold-gray-500","color-price-axis-gear-hover":"color-cold-gray-400","color-price-axis-highlight":"color-cold-gray-800","color-bid":"color-tv-blue-500","color-scroll-bg":"color-cold-gray-750","color-scroll-border":"color-cold-gray-850","color-widget-border":"color-cold-gray-800","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-650","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-700","color-growing":"color-minty-green-600","color-falling":"color-ripe-red-600","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-500","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-tv-blue-50","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-500","color-list-item-bg-highlighted":"color-tv-blue-a900","color-list-item-bg-selected":"color-tv-blue-a800","color-list-item-bg-highlighted-hover":"color-tv-blue-a800","color-list-item-bg-selected-hover":"color-tv-blue-a700","color-screener-header-bg":"color-cold-gray-850","color-screener-header-bg-hover":"color-cold-gray-800","color-overlay":"color-cold-gray-950","color-card-border":"color-cold-gray-700","color-card-border-hover":"color-cold-gray-600","color-background-special-primary":"color-black","color-stroke-special-primary":"color-cold-gray-800","color-selection-bg":"color-tv-blue-a700"}') -;var g=i(45112);const f={[d.StdTheme.Light]:{name:d.StdTheme.Light,label:()=>(0,_.t)("Light",{context:"colorThemeName"}),order:2,getThemedColor:e=>(0,g.getHexColorByName)(e)},[d.StdTheme.Dark]:{name:d.StdTheme.Dark,label:()=>(0,_.t)("Dark",{context:"colorThemeName"}),order:1,getThemedColor:e=>{const t=m[e]||e;return(0,g.getHexColorByName)(t)}}};function v(e){return!e.isPrivate}function S(){return f[u.watchedTheme.value()]||f[p]}function y(e){return S().getThemedColor(e)}async function b(e,t){const{themeName:i,standardTheme:s,syncState:n=!0,noUndo:o=!1,applyOverrides:a=!1}=t,l=await(s?Promise.resolve(L(i)):T(i)),c=!s;if(void 0!==l.content){const t=!s;a&&(void 0!==(h=l.content).chartProperties&&(0,r.applyDefaultsOverrides)(h.chartProperties),void 0!==h.mainSourceProperties&&(0,r.applyDefaultsOverrides)(h.mainSourceProperties,void 0,!0,"mainSeriesProperties")),await e.applyTheme({theme:l.content,onlyActiveChart:t,restoreNonThemeDefaults:c,themeName:i,standardTheme:s,syncState:n,noUndo:o})}var h;return l}function w(){(0,u.setTheme)(o()||p)}function C(){return o()}function P(){var e;e=S().name,(0,n.setValue)("current_theme.name",e,{forceFlush:!0})}function T(e){return h(e)}function x(){return c||(0,a.fetch)("/themes/",{credentials:"include",method:"GET"}).then(e=>(c=e.json(),c))}function I(){return d.getStdThemeNames()}function M(e){return I().includes(e)}function L(e){return d.getStdChartTheme(e)||{content:void 0}}function A(e,t){const i=t||S().name,s=d.getStdChartTheme(i),r=0!==e.length&&e.split(".");return s&&s.content&&r?r.reduce((e,t)=>e[t],s.content):null}function E(e,t,i){const r=A(e,i);return null!==r&&(0,s.areEqualRgba)((0,s.parseRgba)(r),(0,s.parseRgba)(String(t)))}function k(e,t){return function(e,t){const i=new FormData;return i.append("content",JSON.stringify(t)),i.append("name",e),c=null,(0,a.fetch)("/save-theme/",{credentials:"include",method:"POST",body:i}).then(e=>e.json(),e=>l.logError(e))}(e,t)}function D(e){return function(e){const t=new FormData;return t.append("name",e),c=null,(0,a.fetch)("/remove-theme/",{credentials:"include",method:"POST",body:t}).then(e=>e.json(),e=>l.logError(e))}(e)}function V(e){return function(e){return h(e).then(e=>Boolean(e.content))}(e)}function B(e){return d.translateThemeName(e)}function N(e){return d.isStdTheme(e)}function R(e){return{content:{chartProperties:{paneProperties:e.model().properties().childs().paneProperties.state(),scalesProperties:e.model().properties().childs().scalesProperties.state()},sessions:e.model().sessions().properties().state(),mainSourceProperties:e.model().mainSeries().properties().state(),version:e.model().version()}}}},45345:(e,t,i)=>{"use strict";i.d(t,{setTheme:()=>n,watchedTheme:()=>r});var s=i(52714);const r=new(i.n(s)());function n(e){r.setValue(e)}r.subscribe(e=>{!function(e,t=window){const i="theme-"+e,s=t.document.documentElement.classList;for(const e of Array.from(s))e.startsWith("theme-")&&e!==i&&s.remove(e);s.add(i)}(e,window)})},51768:(e,t,i)=>{"use strict";i.d(t,{trackEvent:()=>l,disableTrackingEvents:()=>c}) -;var s=i(76422),r=i(67337);const n=(0,i(98125).getLogger)("Common.TrackEvent"),o=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/];let a=!1;const l=(e,t,i)=>{if(a)return;if(r.enabled("charting_library_base"))return void((e,t,i)=>{t=t||e||i||"";let r="";for(let e=0;e{"use strict";i.d(t,{TVXWindowEvents:()=>o});i(94419);var s=i(98125),r=i(11417);const n=(0,s.getLogger)("XWindowEvents");var o;!function(e){const t="tvxwevents.",i={};let s;window.BroadcastChannel?(s=new BroadcastChannel("tvxwevents"),s.addEventListener("message",(function(e){const{data:{event:t,value:s}}=e;i[t]&&i[t].forEach(e=>{e(s)})})),function(){const e=[],i=performance.now();for(let i=0;i{t(e.newValue)});r.TVLocalStorage.removeItem(n)})),e.on=function(e,t){i[e]||(i[e]=[]),i[e].push(t)},e.off=function(e,t){if(!i[e])return;const s=i[e].indexOf(t);-1!==s&&(1===i[e].length?delete i[e]:i[e].splice(s,1))},e.emit=function(e,i=Date.now()){try{s?s.postMessage({event:e,value:i}):r.TVLocalStorage.setItem(t+e,i.toString())}catch(e){n.logError(e.message)}}}(o||(o={}))},15618:(e,t,i)=>{"use strict";i.r(t),i.d(t,{activateKeyPressHandler:()=>m,showDialog:()=>g});const s=[];let r=null;function n(e){for(let t=0;t=0&&!0!==s[t].func(e);t--);}window.addEventListener("keypress",o,!1);var a=i(38318),l=i(67337),c=i(8636),h=i(51193),d=i(11181),u=i(51768);let p=null;function _(e){if(!(0,a.globalKeypressMatches)(e))return!1;e.preventDefault();const t=String.fromCharCode(e.charCode);return l.enabled("show_interval_dialog_on_key_press")&&function(e){return/[1-9]/.test(e)}(t)?(0,c.showChangeIntervalDialogAsync)({initVal:t}):l.enabled("symbol_search_hot_key")&&(g({defaultValue:t,selectSearchOnInit:!1,source:"keyboard"}),(0,u.trackEvent)("GUI","SS","hotkey")),!0}function m(){(0,h.loadChangeIntervalDialog)(),function(e,t){const i={name:e,func:t},r=n(i.name) -;r>-1&&s.splice(r,1),s.unshift(i)}("symbolEdit",_)}function g(e){const t=p=(0,d.loadNewSymbolSearch)().then(i=>{t===p&&i.showDefaultSearchDialog(e)});return t}},78136:(e,t,i)=>{"use strict";let s;function r(){return s}function n(e){s=e}i.d(t,{getSearchRequestDelay:()=>r,setSearchRequestDelay:()=>n})},52092:(e,t,i)=>{"use strict";i.d(t,{CLOSE_POPUPS_AND_DIALOGS_COMMAND:()=>s});const s="CLOSE_POPUPS_AND_DIALOGS_COMMAND"},42120:(e,t,i)=>{"use strict";i.d(t,{CompareDialogRenderer:()=>n});var s=i(22729);var r=i(76422);class n extends s.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(){this._load().then(e=>{var t,i;null===(t=this._dialog)||void 0===t||t.hide(),null===(i=this._dialog)||void 0===i||i.visible().unsubscribe(this._subscribe),this._dialog=e,e.visible().subscribe(this._subscribe),e.show(),r.emit("compare_add")})}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}_load(){return Promise.all([i.e(7271).then(i.bind(i,43900)),Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(3921),i.e(5774),i.e(7427),i.e(2153),i.e(1594),i.e(7945),i.e(9837),i.e(3199),i.e(3016),i.e(2301),i.e(731)]).then(i.bind(i,89035))]).then(([e,t])=>{const i=new e.CompareModel(this._chartWidgetCollection);return t.getCompareDialogRenderer(i)})}}},3615:(e,t,i)=>{"use strict";async function s(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(8463),i.e(9289),i.e(5998),i.e(9309),i.e(3016),i.e(8890)]).then(i.bind(i,70493));return s.showSimpleDialog(e,s.renameModule,t)}async function r(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(8463),i.e(9289),i.e(5998),i.e(9309),i.e(3016),i.e(8890)]).then(i.bind(i,70493));return s.showSimpleDialog(e,s.confirmModule,t)}async function n(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(4194),i.e(8463),i.e(9289),i.e(5998),i.e(9309),i.e(3016),i.e(8890)]).then(i.bind(i,70493));return s.showSimpleDialog(e,s.warningModule,t)}i.d(t,{showRename:()=>s,showConfirm:()=>r,showWarning:()=>n})},14881:(e,t,i)=>{"use strict";i.d(t,{hideStateChange:()=>r});var s=i(2872);const r=new(i.n(s)())},90995:(e,t,i)=>{"use strict";i.d(t,{getHideOptions:()=>h,toggleHideMode:()=>d,getSavedHideMode:()=>u});var s=i(88537),r=i(28353),n=i(56840),o=i(92033),a=i(85733),l=i(14881);let c=null;function h(){if(null!==c)return c;const e=(0,o.tradingService)();return c=new Map([["drawings",{label:(0,r.t)("Hide drawings"),dataName:"hide-drawing-tools",tooltip:{active:(0,r.t)("Show all drawings"),inactive:(0,r.t)("Hide all drawings")},getBoxedValue:()=>(0,a.hideAllDrawings)(),trackLabel:"hide drawings"}],["indicators",{label:(0,r.t)("Hide indicators"),dataName:"hide-indicators",tooltip:{active:(0,r.t)("Show all indicators"),inactive:(0,r.t)("Hide all indicators")},getBoxedValue:()=>(0,a.hideAllIndicators)(),trackLabel:"hide indicators"}],["positions",{label:(0,r.t)("Hide positions & orders"),dataName:"hide-positions-and-orders",tooltip:{active:(0, -r.t)("Show all positions & orders"),inactive:(0,r.t)("Hide all positions & orders")},getBoxedValue:()=>(0,s.ensureNotNull)(e).showTradedSources,inverted:!0,trackLabel:"hide positions"}],["all",{label:(0,r.t)("Hide all"),dataName:"hide-all",tooltip:{active:e?(0,r.t)("Show all drawings, indicators, positions & orders"):(0,r.t)("Show all drawings and indicators"),inactive:e?(0,r.t)("Hide all drawings, indicators, positions & orders"):(0,r.t)("Hide all drawings and indicators")},trackLabel:"hide all"}]]),e||c.delete("positions"),c}function d(e){e?n.setValue("ChartToolsHideMode",e):e=u();const t=p();let i=!t;return"all"===e?(_((e,t,s)=>{e.setValue(s?!i:i)}),l.hideStateChange.fire({hideMode:e,isActive:i}),i):(_((s,r,n)=>{if(r===e){const e=t?!n:!s.value();s.setValue(e),i=n?!e:e}else s.setValue(Boolean(n))}),l.hideStateChange.fire({hideMode:e,isActive:i}),i)}function u(){const e=n.getValue("ChartToolsHideMode","drawings");return h().has(e)?e:"drawings"}function p(){let e=!0;return _((t,i,s)=>{const r=t.value();e=e&&(s?!r:r)}),e}function _(e){h().forEach((t,i)=>{var s;const r=null===(s=t.getBoxedValue)||void 0===s?void 0:s.call(t);r&&e(r,i,t.inverted)})}},15219:(e,t,i)=>{"use strict";i.d(t,{showConfirmInputsDialog:()=>c});var s=i(28353),r=i(88537),n=i(80643),o=i(33266),a=i(2015),l=i.n(a);async function c(e,t,a,c,h="default"){let d,u=null;const p=e.model().model(),_=(0,n.clone)((0,r.ensureDefined)(t.defaults.inputs)),m=new(l())({inputs:_}),g=function(e,t){return"symbol"===t?e.inputs.filter(t=>t.id===e.symbolInputId()):e.inputs.filter(e=>e.confirm)}(t,h),f=()=>{d&&p.removeCustomSource(d)},v=()=>{f(),c()},S=e=>{a({inputs:e,parentSource:u}),f()},y=g.filter(o.isTimeOrPriceNotHiddenInput);if(y.length>0)try{const s=await Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(7345),i.e(2153),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(137),i.e(9837),i.e(3199),i.e(3016),i.e(1075),i.e(2301),i.e(6085),i.e(4891),i.e(3030)]).then(i.bind(i,73339)),r=await s.selectInputValuesOnChart(e,y,m,t.shortDescription,t.inputs);d=r.customSourceId,u=r.destPane?r.destPane.mainDataSource():null}catch(e){return void v()}y.length!==g.length?Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(7345),i.e(2153),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(137),i.e(9837),i.e(3199),i.e(3016),i.e(1075),i.e(2301),i.e(6085),i.e(4891),i.e(3030)]).then(i.bind(i,70589)).then(t=>{const i=new t.ConfirmInputsDialogRenderer(function(e){if("symbol"===e)return(0,s.t)("Add Symbol");return(0,s.t)("Confirm Inputs")}(h),g,m,h,e.model(),S,v);return i.show(),i}):S(m.state().inputs||{})}},13323:(e,t,i)=>{"use strict";i.d(t,{GeneralChartPropertiesRenderer:()=>r});var s=i(22729);class r extends s.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(){ -const e=this._chartWidgetCollection,t=e.activeChartWidget.value();return t.generalPropertiesDefinitions().then(s=>Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(4194),i.e(2e3),i.e(7962),i.e(8986),i.e(6363),i.e(3466),i.e(7836),i.e(8463),i.e(9289),i.e(3921),i.e(5774),i.e(7427),i.e(6909),i.e(7345),i.e(2153),i.e(4763),i.e(6416),i.e(7176),i.e(2385),i.e(7552),i.e(2316),i.e(2205),i.e(9637),i.e(4521),i.e(9837),i.e(3199),i.e(2301),i.e(6085),i.e(4891),i.e(8883),i.e(7078)]).then(i.bind(i,72811)).then(i=>{var r,n;const o=new i.GeneralChartPropertiesDialogRenderer({chartWidgetCollection:e,propertyPages:s,activePageId:this._activePageId,model:t.model()});return null===(r=this._dialog)||void 0===r||r.hide(),null===(n=this._dialog)||void 0===n||n.visible().unsubscribe(this._subscribe),this._dialog=o,o.visible().subscribe(this._subscribe),o.show(),this._activePageId=void 0,o}))}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}isVisible(){return this.visible().value()}focusOnText(){}setActivePage(e){this._activePageId=e}}},25812:(e,t,i)=>{"use strict";var s;i.d(t,{ToolboxType:()=>s}),function(e){e[e.Delete=0]="Delete"}(s||(s={}))},59064:(e,t,i)=>{"use strict";i.d(t,{globalCloseDelegate:()=>r,globalCloseMenu:()=>n});var s=i(2872);const r=new(i.n(s)());function n(){r.fire()}},17191:e=>{e.exports=''},91216:e=>{e.exports=''},69061:e=>{e.exports=''},54859:e=>{e.exports=''},15917:e=>{ -e.exports=''},27966:e=>{e.exports=''},93418:e=>{e.exports=''},94939:e=>{e.exports=''},6354:e=>{e.exports=''},74645:e=>{ -e.exports=''},44368:e=>{e.exports=''},78679:e=>{e.exports=''},48111:e=>{e.exports=''},76576:e=>{ -e.exports=''},26159:e=>{e.exports=''},34954:e=>{e.exports=''},52892:e=>{e.exports=''},38069:e=>{"use strict";e.exports=JSON.parse('{"4":["v",["h",0,2],["h",1,3]],"6":["v",["h",0,2,4],["h",1,3,5]],"8":["v",["h",0,2,4,6],["h",1,3,5,7]],"2h":["h",0,1],"2v":["v",0,1],"2-1":["v",["h",0,2],1],"3s":["h",0,["v",1,2]],"3h":["h",0,1,2],"3v":["v",0,1,2],"1-2":["v",0,["h",1,2]],"3r":["h",["v",0,1],2],"4h":["h",0,1,2,3],"4v":["v",0,1,2,3],"4s":["h",0,["v",1,2,3]],"1-3":["v",0,["h",1,2,3]],"2-2":["v",["h",0,1],["v",2,3]],"1-4":["v",0,["h",1,2,3,4]],"5s":["h",0,["v",1,2,3,4]],"6c":["v",["h",0,1],["h",2,3],["h",4,5]],"8c":["v",["h",0,1],["h",2,3],["h",4,5],["h",6,7]],"s":0}')}},e=>{e.O(0,[5386,1857],()=>{return t=97881,e(e.s=t);var t});e.O()}]); \ No newline at end of file diff --git a/charting_library/bundles/library.dba373dbc4943dc69a07.js b/charting_library/bundles/library.dba373dbc4943dc69a07.js new file mode 100644 index 00000000..b07d421d --- /dev/null +++ b/charting_library/bundles/library.dba373dbc4943dc69a07.js @@ -0,0 +1,794 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1297],{70150:e=>{e.exports={"css-value-chart-controls-bar-height-with-border":"calc(38px + 1px)","css-value-chart-controls-bar-border":"1px"}},70606:()=>{},24780:e=>{e.exports={"tv-spinner__container-rotate":"tv-spinner__container-rotate-z2AhmXBd"}},25966:e=>{e.exports={"tv-transition--fade-in":"tv-transition--fade-in-VA2P0ZT5","tv-transition--fade-out":"tv-transition--fade-out-VA2P0ZT5","tv-transition--slide-out":"tv-transition--slide-out-VA2P0ZT5"}},65592:e=>{e.exports={container:"container-RqLxZVKU",inner:"inner-RqLxZVKU","border-left":"border-left-RqLxZVKU","border-right":"border-right-RqLxZVKU","border-top":"border-top-RqLxZVKU","border-bottom":"border-bottom-RqLxZVKU","top-right-radius":"top-right-radius-RqLxZVKU","top-left-radius":"top-left-radius-RqLxZVKU","bottom-right-radius":"bottom-right-radius-RqLxZVKU","bottom-left-radius":"bottom-left-radius-RqLxZVKU"}},74228:()=>{},4103:e=>{e.exports={css_value_currency_label_radius:"4",css_wrapper_margin:"1",css_row_left_right_margin:"3",css_row_left_right_padding:"6",css_first_row_top_padding:"4",css_fade_height:"10","price-axis-currency-label-wrapper":"price-axis-currency-label-wrapper-vSuZFrDG","price-axis-currency-label":"price-axis-currency-label-vSuZFrDG",hidden:"hidden-vSuZFrDG",row:"row-vSuZFrDG",readonly:"readonly-vSuZFrDG","price-axis-currency-label-fade":"price-axis-currency-label-fade-vSuZFrDG","price-axis-currency-label-text":"price-axis-currency-label-text-vSuZFrDG","price-axis-currency-label-arrow-down":"price-axis-currency-label-arrow-down-vSuZFrDG"}},43842:e=>{e.exports={labelwidth:"19px",labelheight:"19px",bordersize:"2px",bottommargin:"5px",gearheight:"15px",gearwidth:"15px","price-axis-stub":"price-axis-stub-MAhpkWoV",wrapper:"wrapper-MAhpkWoV",label:"label-MAhpkWoV",symbol:"symbol-MAhpkWoV",gear:"gear-MAhpkWoV","fixed-gear":"fixed-gear-MAhpkWoV","fixed-symbol":"fixed-symbol-MAhpkWoV"}},1597:()=>{},97845:()=>{},98033:e=>{e.exports={"css-value-header-toolbar-height":"38px"}},87027:e=>{e.exports={chartsSplitter:"chartsSplitter-jXbRzI5l",hovered:"hovered-jXbRzI5l","i-active":"i-active-jXbRzI5l"}},50869:e=>{e.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px"}},72045:e=>{e.exports={paneSeparator:"paneSeparator-9uSVw3Vg",handle:"handle-9uSVw3Vg",hovered:"hovered-9uSVw3Vg",active:"active-9uSVw3Vg"}},95306:()=>{},89405:e=>{e.exports={"common-tooltip":"common-tooltip-3cIbUUfe","common-tooltip--hidden":"common-tooltip--hidden-3cIbUUfe","common-tooltip--horizontal":"common-tooltip--horizontal-3cIbUUfe","common-tooltip--farther":"common-tooltip--farther-3cIbUUfe","common-tooltip--vertical":"common-tooltip--vertical-3cIbUUfe","common-tooltip-farther":"common-tooltip-farther-3cIbUUfe","common-tooltip--direction_normal":"common-tooltip--direction_normal-3cIbUUfe","common-tooltip__body":"common-tooltip__body-3cIbUUfe","common-tooltip__button-container":"common-tooltip__button-container-3cIbUUfe", +"common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-3cIbUUfe","common-tooltip__button":"common-tooltip__button-3cIbUUfe","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-3cIbUUfe","common-tooltip__ear-holder":"common-tooltip__ear-holder-3cIbUUfe","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-3cIbUUfe","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-3cIbUUfe","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-3cIbUUfe","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-3cIbUUfe","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-3cIbUUfe","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-3cIbUUfe","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-3cIbUUfe","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-3cIbUUfe","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-3cIbUUfe","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-3cIbUUfe","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-3cIbUUfe","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-3cIbUUfe","common-tooltip__plus-sign":"common-tooltip__plus-sign-3cIbUUfe"}},45112:(e,t,i)=>{"use strict";i.r(t),i.d(t,{colorsPalette:()=>h,getHexColorByName:()=>d}) +;const s=JSON.parse('{"color-white":"#ffffff","color-black":"#000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#ff9100","color-tan-orange-a700":"#FF6D00","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#ffd600","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a700":"#24B29B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-aqua-spring":"#ebf9f5","color-army-green":"#3d2c12","color-army-green-2":"#31230d","color-athens-gray-1":"#f2f3f5","color-athens-gray-2":"#f7f8fa","color-athens-gray-3":"#eceff2","color-black-180":"#b4b4b4","color-blue-dianne":"#21384d","color-bluish":"#2185cc","color-bright-gray":"#363c4e","color-brownish-grey":"#8d6e63","color-carnation":"#f04561","color-catskill-white":"#e1ecf2","color-charade":"#2f3241","color-charcoal-grey":"#323337","color-curious-blue":"#299dcd","color-dark-blue-grey":"#123440","color-darkness-blue-grey":"#12213b","color-dark-grey":"#292a2d","color-dark-grey-blue":"#28415a","color-dark-sky-blue":"#37a6ef","color-deep-sea-blue":"#016087","color-ebony-clay":"#262b3e","color-foam":"#d7f0fb","color-gull-gray":"#9db2bd","color-humming-bird":"#d3eef9","color-keppel-1":"#37bc9b","color-keppel-2":"#34b293","color-lavender-blush":"#ffedf0","color-lightish-purple":"#a75ee8","color-loblolly":"#c5cbce","color-manatee":"#878ca8","color-mandy":"#eb4d5c","color-medium-blue":"#2e7bb2","color-milk-chocolate":"#6f2626","color-mirage-1":"#131722","color-mirage-2":"#171b29","color-mirage-3":"#1c2030","color-mischka":"#d6d8e0","color-morning-glory":"#9addcc","color-oslo-gray":"#8b8e95","color-pale":"#fff2cf","color-pale-grey-1":"#f9fafb","color-pale-grey-2":"#e7ebee","color-pale-sky":"#6b7988","color-picton-blue-1":"#3bb3e4","color-puerto-rico":"#3bc2a1","color-purple-brown":"#4e2934","color-purple-brown-2":"#3d2028","color-radical-red":"#ff4a68","color-regent-gray":"#8797a5","color-scooter":"#38acdb","color-silver-tree":"#53b987","color-slate-gray":"#758696","color-sundown":"#ffa4b3","color-sunglow":"#ffca3b","color-tan-hide":"#ff9850","color-trout-1":"#4c525e","color-trout-2":"#4f5966","color-violet-1":"#332738","color-violet-2":"#271d2b","color-white-ice":"#ebf7fc","color-wild-watermelon":"#ff5773","color-readonly-input":"#b4b4b4","color-brand-dark":"#2a2c39","color-seeking-alpha-brand":"#ff7200"}'),r=JSON.parse('{"color-bg-primary":"color-white","color-bg-primary-hover":"color-cold-gray-100","color-bg-secondary":"color-white","color-bg-highlight":"color-cold-gray-50","color-bg-scroll-buttons":"color-cold-gray-100","color-legacy-bg-scroll-buttons":"color-cold-gray-850","color-legacy-bg-widget":"color-white","color-text-primary":"color-cold-gray-900","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-300","color-accent-content":"color-cold-gray-900","color-box-shadow":"color-cold-gray-300","color-divider":"color-cold-gray-150","color-divider-hover":"color-cold-gray-100","color-divider-secondary":"color-cold-gray-100","color-active-hover-text":"color-cold-gray-900","color-alert-text":"color-cold-gray-900","color-border-table":"color-cold-gray-100","color-brand":"color-tv-blue-500","color-brand-active":"color-tv-blue-700","color-brand-hover":"color-tv-blue-600","color-chart-page-bg":"color-cold-gray-150","color-common-tooltip-bg":"color-cold-gray-800","color-danger":"color-ripe-red-400","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-600","color-depthrenderer-stroke-style":"color-cold-gray-100","color-highlight-new":"color-tan-orange-50","color-input-bg":"color-white","color-input-publish-bg":"color-white","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-nth-child-bg":"color-cold-gray-50","color-pane-bg":"color-white","color-pane-secondary-bg":"color-cold-gray-100","color-popup-menu-item-hover-bg":"color-cold-gray-100","color-popup-menu-separator":"color-cold-gray-150","color-screener-description":"color-cold-gray-650","color-success":"color-minty-green-500","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-700","color-toolbar-button-text":"color-cold-gray-900","color-toolbar-button-text-hover":"color-cold-gray-900","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-100","color-toolbar-button-background-secondary-hover":"color-cold-gray-150","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-900","color-toolbar-interactive-element-text-hover":"color-cold-gray-900","color-toolbar-opened-element-bg":"color-cold-gray-100","color-tooltip-bg":"color-cold-gray-800","color-tv-dialog-caption":"color-cold-gray-650","color-tv-dropdown-item-hover-bg":"color-cold-gray-100","color-underlined-text":"color-cold-gray-500","color-widget-pages-bg":"color-white","color-warning":"color-tan-orange-500","color-growing":"color-minty-green-400","color-falling":"color-ripe-red-400","color-forex-icon":"color-cold-gray-750","color-list-item-active-bg":"color-tv-blue-400","color-list-item-hover-bg":"color-tv-blue-50","color-list-item-text":"color-cold-gray-800","color-price-axis-label-back":"color-cold-gray-150","color-price-axis-label-text":"color-cold-gray-650","color-price-axis-gear":"color-cold-gray-900","color-price-axis-gear-hover":"color-black","color-price-axis-highlight":"color-cold-gray-150","color-bid":"color-tv-blue-500","color-border":"color-cold-gray-150","color-border-chat-fields":"color-cold-gray-250","color-border-hover":"color-cold-gray-250","color-button-hover-bg":"color-cold-gray-150","color-depthrenderer-fill-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-150","color-disabled-input":"color-cold-gray-150","color-empty-container-message":"color-cold-gray-500","color-icons":"color-cold-gray-500","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-350","color-item-active-blue":"color-tv-blue-50","color-item-hover-active-bg":"color-tv-blue-100","color-item-hover-bg":"color-tv-blue-100","color-item-hover-blue":"color-tv-blue-100","color-item-selected-blue":"color-tv-blue-50","color-item-active-text":"color-white","color-item-active-bg":"color-tv-blue-500","color-list-item":"color-cold-gray-450","color-news-highlight":"color-tv-blue-100","color-placeholder":"color-cold-gray-350","color-row-hover-active-bg":"color-cold-gray-100","color-sb-scrollbar-body-bg":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-300","color-separator-table-chat":"color-cold-gray-150","color-tag-active-bg":"color-cold-gray-200","color-tag-hover-bg":"color-cold-gray-150","color-text-regular":"color-cold-gray-700","color-tv-button-checked":"color-cold-gray-550","color-scroll-bg":"color-cold-gray-400","color-scroll-border":"color-cold-gray-100","color-widget-border":"color-cold-gray-100","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-200","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-700","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-white","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-700","color-list-item-bg-highlighted":"color-tv-blue-50","color-list-item-bg-selected":"color-tv-blue-100","color-list-item-bg-highlighted-hover":"color-tv-blue-100","color-list-item-bg-selected-hover":"color-tv-blue-200","color-screener-header-bg":"color-white","color-screener-header-bg-hover":"color-cold-gray-100","color-marker-flagged":"color-ripe-red-400","color-marker-flagged-hovered":"color-ripe-red-600","color-ask":"color-ripe-red-400","color-sell":"color-ripe-red-400","color-buy":"color-tv-blue-500","color-neutral":"color-cold-gray-500","color-pro":"color-minty-green-400","color-pro-hover":"color-minty-green-600","color-pro-plus":"color-tv-blue-500","color-pro-plus-hover":"color-tv-blue-600","color-pro-premium":"color-tan-orange-500","color-pro-premium-hover":"color-tan-orange-700","color-trial":"color-cold-gray-500","color-trial-hover":"color-cold-gray-600","color-mod":"color-ripe-red-400","color-mod-hover":"color-ripe-red-600","color-ad":"color-tan-orange-500","color-broker-featured":"color-minty-green-400","color-broker-featured-hover":"color-minty-green-600","color-alert-status-active":"color-minty-green-400","color-alert-status-stopped":"color-ripe-red-500","color-alert-status-triggered":"color-tan-orange-500","color-overlay":"color-cold-gray-400","color-search-button-hover":"color-cold-gray-150","color-common-tooltip-text":"color-cold-gray-100","color-replay-data-mode":"color-radical-red","color-legacy-success":"color-keppel-1","color-collapse-tabs-border":"color-athens-gray-3","color-site-widget-hover":"color-athens-gray-1","color-attention":"color-sunglow","color-card-border":"color-cold-gray-150","color-card-border-hover":"color-cold-gray-300","color-background-special-primary":"color-white","color-stroke-special-primary":"color-cold-gray-150","color-selection-bg":"color-tv-blue-100"}') +;var n=i(88537);const o={...s,...r},a={},l=Object.keys(o).length,c=/^#[0-9A-F]{6}$/i;Object.keys(o).forEach(e=>{const t=function e(t,i=[]){const s=o[t];if(!s)return null;if(c.test(s))return s;const r=s;return i.push(t),-1!==i.indexOf(r)?(console.warn("Colors definitions cycled"),s):i.length>l?(console.warn("Too many variables-link in HEX-color search: "+i[0]),null):e(r,i)}(e);a[e]=(0,n.ensureNotNull)(t)});const h=a;function d(e){const t=h[e];if(!t)throw new Error("No such color "+e);return t}},74991:(e,t,i)=>{"use strict";i.d(t,{dur:()=>s,easingFunc:()=>r,CubicBezier:()=>n,color:()=>o});const s=350,r={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};class n{constructor(e,t,i,s){this._mX1=e,this._mY1=t,this._mX2=i,this._mY2=s}easingFunc(e){return this._mX1===this._mY1&&this._mX2===this._mY2?e:this._calcBezier(this._getTForX(e))}_a(e,t){return 1-3*t+3*e}_b(e,t){return 3*t-6*e}_c(e){return 3*e}_calcBezier(e){return((this._a(this._mY1,this._mY2)*e+this._b(this._mY1,this._mY2))*e+this._c(this._mY1))*e}_getSlope(e){return 3*this._a(this._mX1,this._mX2)*e*e+2*this._b(this._mX1,this._mX2)*e+this._c(this._mX1)}_getTForX(e){let t=e;for(let i=0;i<4;++i){const i=this._getSlope(t);if(0===i)return t;t-=(this._calcBezier(t)-e)/i}return t}}const o={black70:"#4A4A4A",black80:"#535353"}},77317:(e,t,i)=>{"use strict";i.d(t,{setupChartEventHint:()=>d});var s=i(88537),r=i(28353),n=i(56840),o=i(85733),a=i(44601),l=i(49483),c=i(68335),h=i(67337);function d(e,t=!1){if(!h.enabled("popup_hints"))return;const d=e.getContainer();let u=null,p=null;function _(e,t){if(u)u.show(e,g.bind(null,t));else{const s=o.tool.value();Promise.all([i.e(5514),i.e(5113),i.e(5835),i.e(6166)]).then(i.bind(i,91759)).then(i=>{u=new i.ChartEventHintRenderer(d),s===o.tool.value()&&u.show(e,g.bind(null,t))})}}function m(e){return!Boolean(n.getBool(e))}function g(e){n.setValue(e,!0,{forceFlush:!0}),(0,s.ensureNotNull)(u).destroy(),null!==p&&p(),u=null}o.tool.subscribe((function(){if(!m("hint.touchPainting"))return;const e=o.tool.value(),t=(0,a.isLineToolDrawWithoutPoints)(e),i=l.CheckMobile.any();!(0,a.isStudyLineToolName)(e)||"LineToolRegressionTrend"===e||t||i?(0,a.isLineToolName)(e)&&!(0,a.isLineDrawnWithPressedButton)(e)&&!t&&i?_((0,r.t)("Move the point to position the anchor then tap to place"),"hint.touchPainting"):u&&u.hide():_((0,r.t)("Click to set a point"),"hint.touchPainting")})),o.createdLineTool.subscribe(null,(function(){const e=o.tool.value();"LineToolPath"===e&&m("hint.finishBuildPathByDblClick")?_((0,r.t)("Double-click to finish Path"),"hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&m("hint.finishBuildPolylineByDblClick")&&_((0, +r.t)("Double-click to finish Polyline"),"hint.finishBuildPolylineByDblClick")})),o.finishedLineTool.subscribe(null,(function(){if(u){const e=o.tool.value();"LineToolPath"===e?g("hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&g("hint.finishBuildPolylineByDblClick")}})),e.layoutSizesChanged().subscribe((function(){if(!m("hint.startResizingChartInLayout"))return;_((0,r.t)("Double-click any edge to reset layout grid"),"hint.startResizingChartInLayout")})),t||l.CheckMobile.any()||!m("hint.startFocusedZoom")||(p=function(e,t){let i=!1;const s=r=>{r?(i&&t(r),e.onZoom().unsubscribe(null,s)):i||(t(r),i=!0)};return e.onZoom().subscribe(null,s),()=>e.onZoom().unsubscribe(null,s)}(e,(function(e){if(!m("hint.startFocusedZoom"))return;if(e)u&&(p=null,g("hint.startFocusedZoom"));else{const e=c.isMacKeyboard?"⌘":"Ctrl";_((0,r.t)("Press and hold {key} while zooming to maintain the chart position").format({key:e}),"hint.startFocusedZoom")}})))}},81602:(e,t,i)=>{"use strict";i.d(t,{setupChartScreenshotHint:()=>o});var s=i(28353),r=i(76422),n=i(88537);function o(e,t){const o=(0,s.t)("Link to the chart image copied to clipboard {emoji}").format({emoji:"👍"}),a=(0,s.t)("Chart image copied to clipboard {emoji}").format({emoji:"👍"});r.on("onServerScreenshotCopiedToClipboard",()=>h(o),null),r.on("onClientScreenshotCopiedToClipboard",()=>h(a),null);let l=null;const c=e.getContainer();function h(e){l?l.show(e):Promise.all([i.e(5514),i.e(8844),i.e(6767),i.e(6895),i.e(92)]).then(i.bind(i,34904)).then(i=>{l||(l=new i.ChartScreenshotHintRenderer((0,n.ensureNotNull)(c),{bottomPadding:t.seriesControlBarEnabled}),l.show(e))})}}},94194:(e,t,i)=>{"use strict";i.d(t,{getTooltipData:()=>r,setTooltipData:()=>n});const s=new WeakMap;function r(e,t){const i=s.get(e);return i instanceof Function?i(t):i&&i[t]}function n(e,t,i){if(i instanceof Function)return void s.set(e,i);const r=s.get(e),n=void 0===r||r instanceof Function?{}:r;n[t]=i,s.set(e,n)}},61814:(e,t,i)=>{"use strict";i.d(t,{hotKeySerialize:()=>r,hotKeyDeserialize:()=>n});var s=i(11372);function r(e){return(0,s.clean)(JSON.stringify(e))}function n(e){return JSON.parse((0,s.clean)(e,!0))}},38780:(e,t,i)=>{"use strict";i.d(t,{hide:()=>G,show:()=>U,showOnElement:()=>z});var s=i(32563);let r=0,n=0,o=0;function a(){clearTimeout(r),clearTimeout(n),clearTimeout(o)}function l(e,t){r=setTimeout(e,t)}const c="tooltip-root-element";let h;function d(){const e=document.getElementById(c);e?h=e:(h=document.createElement("div"),h.id=c,document.body.appendChild(h))}function u(){h&&(h.innerHTML="")}"interactive"===document.readyState?d():document.addEventListener("DOMContentLoaded",d);var p=i(88537);const _={default:"",white:"theme-white","round-shadow":"theme-round-shadow"},m=Object.keys(_);var g=i(94194),f=i(61814),v=i(62046),S=i(62820),y=(i(94419),i(54475)),b=i(64514),w=i(49483),C=i(89405);function P(e){const t=function(e){const t=e.hasAttribute("data-tooltip")?e.getAttribute("data-tooltip"):e.getAttribute("title");return t&&((0,g.setTooltipData)(e,"text",t),e.removeAttribute("title")),(0, +g.getTooltipData)(e,"text")||""}(e),i=e.getBoundingClientRect(),s={h:i.height,w:i.width,x:i.left,y:i.top},r=e.getAttribute("data-color-theme")||"",n=e.classList.contains("common-tooltip-html"),o=parseInt(e.getAttribute("data-tooltip-delay")||""),a=parseInt(e.getAttribute("data-tooltip-debounce")||"");let l={type:"none"};return t&&(l={type:n?"html":"text",data:t}),{above:e.classList.contains("common-tooltip-above"),below:e.classList.contains("common-tooltip-below"),otl:e.classList.contains("common-tooltip-otl"),otr:e.classList.contains("common-tooltip-otr"),vertical:e.classList.contains("common-tooltip-vertical"),hotkey:e.getAttribute("data-tooltip-hotkey"),narrow:e.classList.contains("common-tooltip-narrow"),wide:e.classList.contains("common-tooltip-wide"),colorTheme:r,tooltipDelay:o,tooltipDebounce:a,rect:s,content:l,target:e}}function T(e){const t=k.cloneNode(!0),i=B(t),{content:s}=e;switch(s.type){case"element":i.innerHTML="",i.appendChild(s.data);break;case"html":i.innerHTML=s.data;break;case"text":if(e.hotkey){const e=V.cloneNode(!0);e.innerText=s.data,i.appendChild(e)}else i.innerText=s.data}if(e.hotkey){const t="none"!==s.type,r=D.cloneNode(!0),n=(0,f.hotKeyDeserialize)(e.hotkey),o=n.keys.map(e=>`${e}`);r.innerHTML=function(e,t){return e.replace(/{\d}|{hotkey_\d}/gi,e=>{const i=Number(e.match(/\d/));return t[i]})}(n.text,o).replace(/\s\+\s/g,`+`),i.classList.add(C["common-tooltip__body--with-hotkey"]),t&&r.classList.add(C["common-tooltip__hotkey-block--divider"]),i.appendChild(r)}return t.addEventListener("contextmenu",y.preventDefault),t}function x(e,t){const i=t.rect;if(!i)return;!function(e,t){const i=m.includes(t)?_[t]:"";e.classList.remove(...m.map(e=>_[e]).filter(e=>!!e)),i&&!e.classList.contains(i)&&e.classList.add(i)}(e,t.colorTheme||"default"),t.addClass&&e.classList.add(t.addClass);const s=B(e),r=e.querySelector("."+C["common-tooltip__button-container"]);s.classList.toggle(C["common-tooltip__body--width_wide"],Boolean(t.wide)),s.classList.toggle(C["common-tooltip__body--no-padding"],Boolean(t.noPadding)),s.classList.toggle(C["common-tooltip__body--width_narrow"],Boolean(t.narrow)),s.classList.toggle(C["common-tooltip__body--no-buttons"],!0),s.style.left=M(0),s.style.width=M(s.clientWidth+(Boolean(t.noPadding)?0:2));const n=document.body.clientWidth,o=w.CheckMobile.iOS()||(0,w.supportTouch)()&&(0,w.isMac)()?window.innerHeight:document.body.clientHeight,a=t.vertical,l=t.extendMargin||a&&i.w<20||!a&&i.h<20;e.classList.toggle(C["common-tooltip--farther"],l),e.classList.toggle(C["common-tooltip--vertical"],a),e.classList.toggle(C["common-tooltip--horizontal"],!a);const c=function(e){return e.querySelector("."+C["common-tooltip__ear-holder"])}(e),h=e.offsetHeight;if(a){const a=10,l=o-10,d=12,u=a+d,p=l-d,_=(0,b.clamp)(i.y+i.h/2,u,p)-h/2,m=_+h;e.style.left=M(i.x+i.w),e.style.top=M(_),_l&&(s.style.top=r.style.top=M(l-m)) +;const{right:g}=(e.querySelector(":last-child")||s).getBoundingClientRect(),f=g+10>n;e.classList.toggle(C["common-tooltip--direction_reversed"],f),e.classList.toggle(C["common-tooltip--direction_normal"],!f);let v=f?"after":"before";(0,S.isRtl)()?(v=t.otr?"after":v,v=t.otl?"before":v):(v=t.otr?"before":v,v=t.otl?"after":v),c.classList.toggle(C["common-tooltip__ear-holder--before"],"before"===v),c.classList.toggle(C["common-tooltip__ear-holder--after"],"after"===v),"after"===v&&(e.style.left="auto",e.style.right=M(n-i.x))}else{const a=i.x-(s.offsetWidth-i.w)/2,l=n-10-e.offsetWidth,d=Math.max(10,Math.min(a,l));e.style.left=M(d);const u=l\n\t\t
\n\t\t\t
\n\t\t
\n\t\t
\n\t
\n`,A=`\n\t
\n`,E=`\n\t
\n`,k=(0,v.parseHtmlElement)(L),D=(0,v.parseHtmlElement)(A),V=(0,v.parseHtmlElement)(E);function B(e){return e.querySelector("."+C["common-tooltip__body"])}function N(e,t){return 10+ez(t);if(i()){const e=e=>{e.target instanceof Element&&e.target.contains(t)&&s(null,!0)},s=(r,n=!1)=>{t.removeEventListener("common-tooltip-update",i),t.removeEventListener("mouseleave",s),t.removeEventListener("mousedown",s),document.removeEventListener("scroll",e,{capture:!0}),W&&(W.destroy(),W=null),G(n)};t.addEventListener("common-tooltip-update",i),t.addEventListener("mouseleave",s),t.addEventListener("mousedown",s),document.addEventListener("scroll",e,{ +capture:!0}),null===W&&(W=(0,R.createGroup)({desc:"Tooltip"}),W.add({desc:"Hide",hotkey:27,handler:s}));break}}}),!0);const H=new MutationObserver(()=>{if(F&&F.options.target){let e;e="isConnected"in F.options.target?F.options.target.isConnected:document.body.contains(F.options.target),e||G()}}),z=(e,t={})=>{const{content:i,...s}=Y(t),r=P(e),n=Object.assign(r,s);return"none"!==i.type&&(n.content=i),!("none"===n.content.type&&!n.hotkey)&&(n.target=e,U(n),!0)},U=e=>{const t=Y(e),i=T(t);var s;if(F={options:t,element:i},s=i,u(),h&&h.appendChild(s),a(),!O)return I(i),void l(()=>q(i),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:r}=e;"number"!=typeof r||isNaN(r)?q(i):l(()=>q(i),r)};function j(){u(),O=!1,F=null}const G=e=>{if(a(),H.disconnect(),!F)return;if(!e&&!O)return;const{element:t,options:i}=F,s=()=>{t.removeEventListener("mouseleave",s),I(t),e?j():o=setTimeout(()=>{j()},250)};var r,l;i.tooltipHideDelay?(r=()=>{t.querySelector(":hover")?t.addEventListener("mouseleave",s):s()},l=i.tooltipHideDelay,n=setTimeout(r,l)):s()};function q(e){const{options:t}=(0,p.ensureNotNull)(F);if(x(e,t),function(e){e.classList.toggle(C["common-tooltip--hidden"],!1)}(e),H.observe(document,{childList:!0,subtree:!0}),O=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),G()};document.addEventListener("mousemove",e)}}function Y(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:i,text:s,...r}=e;let n={type:"none"};return t&&(n={type:"element",data:t}),s&&(n={type:i?"html":"text",data:s}),{content:n,...r}}},28325:(e,t,i)=>{"use strict";i.d(t,{ChartPage:()=>d});var s=i(52714),r=i.n(s),n=i(31940);function o(e,t){let i=0;for(const{min:s,max:r}of t){if(e0&&t.push({min:e,max:s})}return t.sort((e,t)=>e.min-t.min||e.max-t.max),t}function l(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}var c=i(67337);const h=c.enabled("no_min_chart_width");class d{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)=>{let i=t;this._fullscreenArea!==e.name&&(e.availWidth.setValue(t),e.canNegotiate.width&&(i=o(t,e.negotiations.width)));const s=e.container.value();return s&&(s.style.width=i+"px"),e.width.setValue(i),i},this._setHeight=(e,t)=>{let i=t;this._fullscreenArea!==e.name&&(e.availHeight.setValue(t),e.canNegotiate.height&&(i=o(t,e.negotiations.height)));const s=e.container.value();return s&&(s.style.height=i+"px"),e.height.setValue(i),i};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),s={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]===s&&this.free(e)},negotiateWidth:e=>{if(!s.canNegotiate.width)return;const t=a(e);l(s.negotiations.width,t)||(s.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!s.canNegotiate.height)return;const t=a(e);l(s.negotiations.height,t)||(s.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(r()),height:new(r()),availWidth:new(r()),availHeight:new(r()),alive:new(r())(!0),container:new(r())(i),visible:new(r())(!0),fullscreen:new(r())(!1),fullscreenable:new(r())("right"===t||"center"===t),rdState:new n.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[t]=s,s.rdState.owner.subscribe(e=>{const i=s.container.value();if(e!==s)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}),s.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,s=this._areas.tradingpanel,r=this._areas.right,n=this._areas.top,o=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),d=this._height.value();let u=0,p=0,_=0,m=0,g=0,f=0,v=0,S=0;if(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(S=this._setHeight(l,d),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t)){v=this._setHeight(t,d),f=this._setWidth(t,c);const e=t.container.value();e&&(e.style.top=S+"px")}let y=0;if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){const e=n.container.value();e&&(e.style.left=f+"px", +e.style.top=S+"px");const t=c-f;this._setWidth(n,t),u=this._setHeight(n,d),u&&(y=1)}if(e===this._recalcSingleRunToken&&i&&this._processVisibility(i)){const e=Math.max(v,u),t=i.container.value();_=this._setWidth(i,c),_&&(_+=4),_&&1===y&&(y=4),t&&(t.style.top=e+S+y+"px"),this._setHeight(i,d-e-S)}if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){let e=c-_;h||(e-=300),g=this._setWidth(s,e),g&&1===y&&(y=4),this._setHeight(s,d-S-u-y)}if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){let e=c-_-g;h||(e-=300),m=this._setWidth(r,e),m&&1===y&&(y=4),this._setHeight(r,d-S-u-y);const t=r.container.value();t&&(t.style.top=u+S+y+"px",t.classList.toggle("no-border-top-left-radius",Boolean(g)))}const b=g+m;let w=0;const C=c-_-g-m-(b?4:0);if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){const e=o.container.value();e&&(e.style.left=_+"px",e.classList.toggle("no-border-top-left-radius",!_),e.classList.toggle("no-border-top-right-radius",!b)),this._setWidth(o,C);const t=d-S;w=Math.min(300,t-0),p=this._setHeight(o,t)+4}const P=Boolean(u&&(_||b));if(this._container.classList.toggle("layout-with-border-radius",P),e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){const e=a.container.value();e&&(e.style.left=_+"px",e.style.top=u+S+y+"px",e.classList.toggle("no-border-bottom-left-radius",!p||!_),e.classList.toggle("no-border-bottom-right-radius",!b||!p),e.classList.toggle("no-border-top-left-radius",Boolean(!_&&b)),e.classList.toggle("no-border-top-right-radius",Boolean(_&&!b))),this._setWidth(a,C);const t=d-u-p-S-y;this._setHeight(a,Math.max(t,w))}if(e===this._recalcSingleRunToken&&s&&this._affectsLayout("tradingpanel")){const e=s.container.value();e&&(e.style.right=m+"px",e.style.top=S+u+y+"px",e.style.borderTopLeftRadius=P?"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 u(e);if(this._width.value()<=567||this._height.value()<=445){if(!["center","top","left","topleft","extratop"].includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;t{"use strict";i.d(t,{ResizerDetacherState:()=>o});var s=i(88537),r=i(52714),n=i.n(r);class o{constructor(e){this._alive=new(n()),this._container=new(n()),this._width=new(n()),this._height=new(n()),this._fullscreen=new(n()),this._detachable=new(n()),this._fullscreenable=new(n()),this._visible=new(n()),this._availWidth=new(n()),this._availHeight=new(n()),this._owner=new(n()),this._ownersStack=[],this.owner=this._owner.readonly(),this._bridge={alive:this._alive.readonly(),container:this._container.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),fullscreenable:this._fullscreenable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:()=>{const e=this._owner.value();e&&e.remove&&e.remove()},negotiateWidth:e=>{const t=this._owner.value();t&&t.negotiateWidth&&t.negotiateWidth(e)},negotiateHeight:e=>{const t=this._owner.value();t&&t.negotiateHeight&&t.negotiateHeight(e)},requestFullscreen:()=>{const e=this._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:()=>{const e=this._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:e=>{const t=this._owner.value();t&&t.detach&&t.detach(e)},attach:()=>{const e=this._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const e of this._ownersStack)this._unsubscribeOwner(e);const t={owner:e};this._ownersStack.push(t),this._subscribeOwner(t)}_subscribeOwner(e){const t=e.owner;if(e.deathWatcher||(this._alive.setValue(!0),e.deathWatcher=t.alive.spawn(),e.deathWatcher.subscribe(t=>{t||this._deadHandler(e)})),this._owner.setValue(t),!e.subscriptions){const i=e.subscriptions=[];this._visible.setValue(!1);const s=(e,t)=>{if(e){const s=e.spawn();i.push(s),s.subscribe(e=>{t.setValue(e)},{callWithLast:!0})}else t.deleteValue()};s(t.container,this._container),s(t.width,this._width),s(t.height,this._height),s(t.fullscreen,this._fullscreen),s(t.detachable,this._detachable),s(t.fullscreenable,this._fullscreenable),s(t.availWidth,this._availWidth),s(t.availHeight,this._availHeight),s(t.visible,this._visible)}}_unsubscribeOwner(e,t){if(e.subscriptions){for(const t of e.subscriptions)t.unsubscribe();e.subscriptions=null}t&&e.deathWatcher&&(e.deathWatcher.unsubscribe(),e.deathWatcher=null)}_deadHandler(e){const t=this._ownersStack.indexOf(e);(0,s.assert)(-1!==t,"sanitized owner should be in stack");for(let e=this._ownersStack.length-1;e>=t;e--)this._unsubscribeOwner(this._ownersStack[e],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1), +this._owner.deleteValue())}}},89356:(e,t,i)=>{"use strict";i.d(t,{Root:()=>d});i(28353);var s=i(52714),r=i.n(s),n=i(31940);class o{constructor(e){this._document=e,this.isFullscreen=new(r());const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[r])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var l=i(84015),c=i(88537),h=i(49483);class d{constructor(e){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",e+"px","important")},this._window=e,this._fullscreenApi=new o(e.document),this._viewportType=h.CheckMobile.iOS()&&!(0,l.isOnMobileAppPage)("any")&&this._window.visualViewport?"visual":"quirks","visual"===this._viewportType?this._viewport=(0,c.ensureDefined)(this._window.visualViewport):this._viewport=this._window;const t=this._layoutSizeSensor=this._window.document.createElement("div");t.id="layout-size-sensor",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.pointerEvents="none",t.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 a(this._window.document);const i={alive:new(r())(!0),fullscreenable:new(r())(!0),container:new(r())(t),width:new(r()),height:new(r()),availWidth:new(r()),availHeight:new(r()),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 n.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()})}}},33134:(e,t,i)=>{"use strict";i.d(t,{DEFAULT_SIZE:()=>s,spinnerSizeMap:()=>r});const s="large",r={mini:"xsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"}},4185:(e,t,i)=>{"use strict";i.d(t,{Spinner:()=>o});i(24780);var s=i(62046),r=i(33134);const n=(0,s.parseHtmlElement)(function(e=""){return`
`}());class o{constructor(e){this._shown=!1,this._el=n.cloneNode(!0),this.setSize(r.spinnerSizeMap[e||r.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){return Object.keys(e).forEach(t=>{const i=e[t];void 0!==i&&this._el.style.setProperty(t,i)}),this}style(){return this._el.style}setSize(e){const t=void 0!==e?"tv-spinner--size_"+e:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}},5683:(e,t,i)=>{"use strict";i.d(t,{createStubElem:()=>r});var s=i(65592);function r(e=[],t=[]){const i=document.createElement("div"),r=document.createElement("div");return i.appendChild(r),i.classList.add(s.container),r.classList.add(s.inner),e.forEach(e=>{i.classList.add(s[e])}),t.forEach(e=>{i.classList.add(s[e])}),i}},45973:(e,t,i)=>{"use strict";i.r(t),i.d(t,{lineToolEntityInfo:()=>o,studyEntityInfo:()=>a,seriesEntityInfo:()=>l,entityForDataSource:()=>c});var s=i(81851),r=i(16906),n=i(14291);function o(e){return{id:e.id(),name:(t=e.toolname,Object.keys(r.supportedLineTools).find(e=>r.supportedLineTools[e].name===t)||null)};var t}function a(e){return{id:e.id(),name:e.metaInfo().description}}function l(e){return{id:e.id(),name:"Main Series"}}function c(e,t){ +return t===e.mainSeries()?l(e.mainSeries()):(0,s.isStudy)(t)?a(t):(0,n.isLineTool)(t)?o(t):null}},68582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isLineToolRiskReward:()=>a,LineDataSourceApi:()=>c});var s=i(88537),r=i(80643);const n=new Map([["LineToolRiskRewardLong",2],["LineToolRiskRewardShort",2],["LineToolBezierQuadro",3],["LineToolBezierCubic",4]]);function o(e){const t=n.get(e.toolname);if(void 0!==t)return t;const i=e.pointsCount();return-1===i?e.points().length:i}function a(e){return"LineToolRiskRewardLong"===e||"LineToolRiskRewardShort"===e}const l=["alwaysShowStats","entryPrice","inputs.first bar time","inputs.last bar time","interval","linesWidths","points","snapTo45Degrees","stopPrice","symbol","symbolStateVersion","currencyId","unitId","targetPrice","zOrderVersion"];class c{constructor(e,t,i){this._source=e,this._undoModel=t,this._model=t.model(),this._pointsConverter=i}isSelectionEnabled(){return this._source.isSelectionEnabled()}setSelectionEnabled(e){this._source.setSelectionEnabled(e)}isSavingEnabled(){return this._source.isSavedInChart()}setSavingEnabled(e){this._source.setSavingInChartEnabled(e)}isShowInObjectsTreeEnabled(){return this._source.showInObjectTree()}setShowInObjectsTreeEnabled(e){this._source.setShowInObjectsTreeEnabled(e)}isUserEditEnabled(){return this._source.userEditEnabled()}setUserEditEnabled(e){this._source.setUserEditEnabled(e)}bringToFront(){this._model.bringToFront([this._source])}sendToBack(){this._model.sendToBack([this._source])}getProperties(){return this._source.properties().state(l,!0)}setProperties(e){this._setProps(this._source.properties(),e,"")}getPoints(){let e=this._source.points();const t=o(this._source);return e.length>t&&((0,s.assert)(a(this._source.toolname)),e=e.slice(0,t)),this._pointsConverter.dataSourcePointsToPriced(e)}setPoints(e){if(this._source.isFixed())return;const t=o(this._source);if(t!==e.length)throw new Error(`Wrong points count. Required: ${t}, provided: ${e.length}`);const i=this._pointsConverter.apiPointsToDataSource(e);this._model.startChangingLinetool(this._source),this._model.changeLinePoints(this._source,i),this._model.endChangingLinetool(!0),this._source.createServerPoints()}getAnchoredPosition(){return this._source.positionPercents()}setAnchoredPosition(e){const t=this._source.fixedPoint(),i=this._source.linkKey().value(),s=void 0===t?null:this._source.screenPointToPoint(t);if(!this._source.isFixed()||void 0===t||null===i||null===s)return;const r={logical:s,screen:t},n=new Map;n.set(i,e),this._model.startMovingSources([this._source],r,null,new Map),this._model.moveSources(r,n),this._model.endMovingSources(!0)}ownerSourceId(){return(0,s.ensureNotNull)(this._source.ownerSource()).id()}changePoint(e,t){if(this._source.isFixed())return;const i=this._pointsConverter.apiPointsToDataSource([e])[0];this._model.startChangingLinetool(this._source,{...i},t),this._model.changeLinePoint({...i}),this._model.endChangingLinetool(!1),this._source.createServerPoints()}isHidden(){return this._source.isSourceHidden()}getRawPoints(){return this._source.points()} +setRawPoint(e,t){this._model.startChangingLinetool(this._source,{...t},e),this._model.changeLinePoint({...t}),this._model.endChangingLinetool(!1)}move(e,t){this._model.startMovingSources([this._source],{logical:e},null,new Map),this._model.moveSources({logical:t},new Map),this._model.endMovingSources(!1)}dataAndViewsReady(){return this._source.dataAndViewsReady()}zorder(){return this._source.zorder()}symbol(){return this._source.properties().symbol.value()}currency(){return this._source.properties().currencyId.value()}unit(){return this._source.properties().unitId.value()}share(e){this._undoModel.shareLineTools([this._source],e)}sharingMode(){return this._source.sharingMode().value()}_setProps(e,t,i){for(const s in t){if(!t.hasOwnProperty(s))continue;const n=0===i.length?s:`${i}.${s}`;if(e.hasOwnProperty(s)){const i=t[s];(0,r.isHashObject)(i)?this._setProps(e[s],i,n):e[s].setValue(i)}else console.warn(`Unknown property "${n}"`)}}}},56233:(e,t,i)=>{"use strict";i.d(t,{PaneApi:()=>u});var s=i(88537),r=i(42534),n=i(45973),o=i(80643),a=i(28353),l=i(24980),c=i(35762);const h=new l.TranslatedString("change pane height",(0,a.t)("change pane height"));class d extends c.UndoCommand{constructor(e,t,i){super(h),this._model=e,this._paneIndex=t,this._paneHeight=i,this._prevStretchFactors=this._model.panes().map(e=>e.stretchFactor())}redo(){this._model.changePanesHeight(this._paneIndex,this._paneHeight)}undo(){const e=this._model.panes();for(let t=0;t(0,n.entityForDataSource)(e,t)).filter(o.notNull).filter(e=>null!==e.name)}getHeight(){return this._pane.height()}setHeight(e){const t=this._chartWidget.model().model(),i=t.panes();(0,s.assert)(i.length>1,"Unable to change pane's height if there is only one pane");const r=i.indexOf(this._pane);(0,s.assert)(-1!==r,"Invalid pane index");const n=new d(t,r,e);this._chartWidget.model().undoHistory().pushUndoCommand(n)}moveTo(e){const t=this.paneIndex();t!==e&&((0,s.assert)(e>=0&&e{"use strict";i.d(t,{PriceScaleApi:()=>s});class s{constructor(e,t){this._chartUndoModel=e,this._chartModel=e.model(),this._priceScale=t}getMode(){const e=this._priceScale.properties().childs();return e.percentage.value()?2:e.indexedTo100.value()?3:e.log.value()?1:0}setMode(e){this._priceScale.setMode({percentage:2===e,log:1===e,indexedTo100:3===e})}isInverted(){return this._priceScale.isInverted()}setInverted(e){this._priceScale.properties().childs().isInverted.setValue(e)}isLocked(){return this._priceScale.isLockScale()}setLocked(e){this._priceScale.setMode({lockScale:e})}isAutoScale(){return this._priceScale.isAutoScale()}setAutoScale(e){this._priceScale.setMode({autoScale:e})}getVisiblePriceRange(){return this._priceScale.priceRangeInPrice()}setVisiblePriceRange(e){this._priceScale.setPriceRangeInPrice(e),this._chartModel.lightUpdate()}hasMainSeries(){return this._priceScale.hasMainSeries()}getStudies(){return this._priceScale.getStudies().map(e=>e.id())}currency(){const e=this._priceScale.currency(this._chartModel.availableCurrencies());return null===e?null:{selectedCurrency:e.selectedCurrency,readOnly:e.readOnly}}setCurrency(e){this._chartUndoModel.setPriceScaleCurrency(this._priceScale,e)}unit(){const e=this._priceScale.unit(this._chartModel.availableUnits());return null===e?null:{selectedUnit:e.selectedUnit,readOnly:0===e.availableGroups.size,availableGroups:Array.from(e.availableGroups)}}setUnit(e){this._chartUndoModel.setPriceScaleUnit(this._priceScale,e)}}},32112:(e,t,i)=>{"use strict";function s(e,t){const i=e.dataSourceForId(t);if(null===i)throw new Error(`Chart has no study or shape with id "${t}"`);return i}i.d(t,{SelectionApi:()=>r});class r{constructor(e){this._model=e}add(e){Array.isArray(e)?this._model.selectionMacro(t=>{e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.add([e])}canBeAddedToSelection(e){const t=s(this._model,e);return this._model.selection().canBeAddedToSelection(t)}set(e){Array.isArray(e)?this._model.selectionMacro(t=>{t.clearSelection(),e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.set([e])}remove(e){Array.isArray(e)?this._model.selectionMacro(t=>{ +e.map(s.bind(null,this._model)).forEach(e=>t.removeSourceFromSelection(e))}):this.remove([e])}contains(e){const t=s(this._model,e);return this._model.selection().isSelected(t)}allSources(){return this._model.selection().dataSources().map(e=>e.id())}isEmpty(){return this._model.selection().isEmpty()}clear(){this._model.selectionMacro(e=>{e.clearSelection()})}onChanged(){return this._model.onSelectedSourceChanged()}}},82650:(e,t,i)=>{"use strict";i.d(t,{SeriesApi:()=>l});var s=i(88537),r=i(8597),n=i(36551),o=i(27579),a=i(42534);class l{constructor(e,t){this._series=e,this._undoModel=t,this._model=t.model()}isUserEditEnabled(){return this._series.userEditEnabled()}setUserEditEnabled(e){this._series.setUserEditEnabled(e)}mergeUp(){this._model.isMergeUpAvailableForSource(this._series)&&new r.MergeUpUndoCommand(this._model,this._series,null).redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._series)&&new r.MergeDownUndoCommand(this._model,this._series,null).redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._series)&&new n.UnmergeUpUndoCommand(this._model,this._series,null).redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._series)&&new n.UnmergeDownUndoCommand(this._model,this._series,null).redo()}detachToRight(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"right",null).redo()}detachToLeft(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"left",null).redo()}detachNoScale(){new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,this._pane(),"overlay",null).redo()}changePriceScale(e){const t=(0,s.ensureNotNull)(this._model.paneForSource(this._series));switch(e){case"new-left":new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"left",null).redo();break;case"new-right":new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"right",null).redo();break;case"no-scale":(0,s.assert)(t.actionNoScaleIsEnabled(this._series),"Unable to leave a pane without any non-overlay price scale"),new o.MoveToNewPriceScaleUndoCommand(this._model,this._series,t,"overlay",null).redo();break;default:const i=this._model.dataSourceForId(e);if(null===i)throw new Error(`There is no study with entityId='${e}'`);const r=this._model.paneForSource(i)===t;(0,s.assert)(r,"Study should be on the main pane");const n=(0,s.ensureNotNull)(i.priceScale());new o.MoveToExistingPriceScaleUndoCommand(this._model,this._series,t,n,null).redo()}}isVisible(){return this._series.properties().childs().visible.value()}setVisible(e){this._series.properties().childs().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._series])}sendToBack(){this._model.sendToBack([this._series])}entityId(){return this._series.id()}chartStyleProperties(e){return this._series.properties().childs()[c(e)].state(["inputs","inputsInfo"])}setChartStyleProperties(e,t){this._series.properties().childs()[c(e)].mergeAndFire(t)}barsCount(){return this._series.bars().size()}symbolSource(){return{symbol:this._series.symbol(),currencyId:this._series.currency(), +unitId:this._series.unit()}}isLoading(){return this._series.isLoading()}data(){return this._series.data()}priceScale(){return new a.PriceScaleApi(this._undoModel,this._series.priceScale())}_pane(){return(0,s.ensureNotNull)(this._model.paneForSource(this._series))}}function c(e){switch(e){case 0:return"barStyle";case 1:return"candleStyle";case 2:return"lineStyle";case 3:return"areaStyle";case 4:return"renkoStyle";case 5:return"kagiStyle";case 6:return"pnfStyle";case 7:return"pbStyle";case 8:return"haStyle";case 9:return"hollowCandleStyle";case 10:return"baselineStyle";case 11:return"rangeStyle";case 12:return"hiloStyle";case 13:return"columnStyle";default:(0,s.ensureNever)(e)}throw new Error("unsupported chart style: "+e)}},67e3:(e,t,i)=>{"use strict";i.d(t,{StudyApi:()=>y});var s=i(88537),r=i(2872),n=i.n(r),o=i(80643),a=i(59572),l=i(97401),c=i(13795),h=i(36551),d=i(8597),u=i(27579),p=i(61671),_=i(79222),m=i(35588),g=i(42534),f=i(13933),v=i(152),S=i(70120);class y{constructor(e,t){this._onStudyCompleted=new(n()),this._onStudyError=new(n()),this._study=e,this._chartWidget=t,this._undoModel=this._chartWidget.model(),this._model=this._undoModel.model(),this._study.onAboutToBeDestroyed().subscribe(this,()=>{this._study.onStatusChanged().unsubscribeAll(this),this._study.onAboutToBeDestroyed().unsubscribeAll(this)}),this._study.onStatusChanged().subscribe(this,e=>{switch(e.type){case f.StudyStatusType.Completed:this._onStudyCompleted.fire();break;case f.StudyStatusType.Error:this._onStudyError.fire()}})}isUserEditEnabled(){return this._study.userEditEnabled()}setUserEditEnabled(e){this._study.setUserEditEnabled(e)}getInputsInfo(){return(0,v.getStudyInputsInfo)(this._study.metaInfo())}getInputValues(){const e=this._study.inputs({symbolsForChartApi:!1,asObject:!0});return Object.keys(e).map(t=>{const i=e[t];return{id:t,value:(0,o.isObject)(i)?i.v:i}})}getStyleInfo(){return(0,S.getStudyStylesInfo)(this._study.metaInfo())}getStyleValues(){const{plots:e,styles:t,bands:i,filledAreas:s,palettes:r}=this._study.properties().state(),n={};return void 0!==e&&(n.plots=e),void 0!==t&&(n.styles=t),void 0!==i&&(n.bands=i),void 0!==s&&(n.filledAreas=s),void 0!==r&&(n.palettes=r),n}setInputValues(e){const t=this.getInputValues();for(const i of e){void 0!==t.find(e=>e.id===i.id)?this._study.properties().inputs[i.id].setValue(i.value):console.warn(`There is no such input: "${i.id}"`)}}mergeUp(){this._model.isMergeUpAvailableForSource(this._study)&&new d.MergeUpUndoCommand(this._model,this._study,null).redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._study)&&new d.MergeDownUndoCommand(this._model,this._study,null).redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._study)&&new h.UnmergeUpUndoCommand(this._model,this._study,null).redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._study)&&new h.UnmergeDownUndoCommand(this._model,this._study,null).redo()}onDataLoaded(){return this._onStudyCompleted}onStudyError(){return this._onStudyError}mergeUpWithUndo(){ +this._model.isMergeUpAvailableForSource(this._study)&&this._undoModel.mergeSourceUp(this._study)}mergeDownWithUndo(){this._model.isMergeDownAvailableForSource(this._study)&&this._undoModel.mergeSourceDown(this._study)}unmergeUpWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceUp(this._study)}unmergeDownWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceDown(this._study)}priceScale(){return new g.PriceScaleApi(this._undoModel,(0,s.ensureNotNull)(this._study.priceScale()))}symbolSource(){const e=(0,s.ensureNotNull)(this._study.symbolSource());return{symbol:e.symbol(),currencyId:e.currency(),unitId:e.unit()}}currency(){return this._study.currency()}changePriceScale(e){const t=(0,s.ensureNotNull)(this._model.paneForSource(this._model.mainSeries())),i=(0,s.ensureNotNull)(this._model.paneForSource(this._study));switch(e){case"no-scale":(0,s.assert)(i.actionNoScaleIsEnabled(this._study),"Unable to leave a pane without any non-overlay price scale"),new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"overlay",null).redo();break;case"as-series":(0,s.assert)(i===t,"Study should be on the main pane"),new u.MoveToExistingPriceScaleUndoCommand(this._model,this._study,i,this._model.mainSeries().priceScale(),null).redo();break;case"new-left":new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"left",null).redo();break;case"new-right":new u.MoveToNewPriceScaleUndoCommand(this._model,this._study,i,"right",null).redo();break;default:const r=this._model.dataSourceForId(e);if(null===r)throw new Error(`There is no study with entityId='${e}'`);const n=i===this._model.paneForSource(r);(0,s.assert)(n,"Both studies should be on the same pane");const o=(0,s.ensureNotNull)(r.priceScale()),a=(0,c.sourceNewCurrencyOnPinningToPriceScale)(this._study,o,this._model),h=(0,_.sourceNewUnitOnPinningToPriceScale)(this._study,o,this._model);new u.MoveToExistingPriceScaleUndoCommand(this._model,this._study,i,o,null).redo(),null!==a&&new l.SetPriceScaleCurrencyUndoCommand(o,a,this._undoModel.chartWidget(),null).redo(),null!==h&&new m.SetPriceScaleUnitUndoCommand(o,h,this._undoModel.chartWidget(),null).redo()}}isVisible(){return this._study.properties().visible.value()}setVisible(e){this._study.properties().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._study])}sendToBack(){this._model.sendToBack([this._study])}applyOverrides(e){(0,a.applyOverridesToStudy)(this._study,e)}dataLength(){return this._study.status().type!==f.StudyStatusType.Completed?0:this._study.metaInfo().plots.length>0?this._study.data().size():this._model.mainSeries().bars().size()}isLoading(){return this._study.isLoading()}properties(){return this._study.properties()}async applyToEntireLayout(){const e=new p.ActionsProvider(this._chartWidget),t=(await e.contextMenuActionsForSources([this._study])).find(e=>"applyStudyToEntireLayout"===e.id);t&&t.execute()}}},152:(e,t,i)=>{"use strict";i.d(t,{getStudyInputsInfo:()=>r});var s=i(28353);function r(e){ +return void 0===e.inputs?[]:e.inputs.map(e=>({...e,id:e.id,localizedName:void 0!==e.name?(0,s.t)(e.name,{context:"input"}):""}))}},70120:(e,t,i)=>{"use strict";i.d(t,{getStudyStylesInfo:()=>n});var s,r=i(27788);function n(e){const t={};if(e.defaults){const i=(0,r.default)(e.defaults);t.defaults=i}return void 0!==e.plots&&(t.plots=(0,r.default)(e.plots)),void 0!==e.styles&&(t.styles=(0,r.default)(e.styles)),void 0!==e.bands&&(t.bands=(0,r.default)(e.bands)),void 0!==e.filledAreas&&(t.filledAreas=(0,r.default)(e.filledAreas)),void 0!==e.palettes&&(t.palettes=(0,r.default)(e.palettes)),t}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={}))},817:(e,t,i)=>{"use strict";i.d(t,{ChartSession:()=>u});var s=i(2872),r=i.n(s),n=i(88537),o=i(52714),a=i.n(o),l=i(9423),c=i(98125);const h=(0,c.getLogger)("ChartApi.AbstractSession");var d=i(80643);(0,c.getLogger)("ChartSession");class u extends class{constructor(e,t,i){this._isConnected=new(a())(!1),this._state=0,this._isConnectForbidden=!1,this._sessionId="",this._sessionIdChanged=new(r()),this._chartApi=e,this._sessionPrefix=t,this._shouldReconnectAfterCriticalError=i}destroy(){this._logNormal("Destroying session"),this._isConnected.unsubscribe(),this.disconnect(),this._sessionIdChanged.destroy(),delete this._chartApi,this._logNormal("Session has been destroyed")}isConnected(){return this._isConnected}sessionId(){return this._sessionId}onSessionIdChanged(){return this._sessionIdChanged}connect(){0===this._state&&((0,n.assert)(!this._isConnectForbidden,"Cannot call connect because it is forbidden at this moment"),this._setSessionId(`${this._sessionPrefix}_${(0,l.randomHash)()}`),this._logNormal("Connecting session - wait until transport stay connected"),this._state=1,this._chartApi.createSession(this._sessionId,this))}disconnect(){0!==this._state&&((0,n.assert)(""!==this._sessionId,"sessionId must not be invalid"),this._logNormal("Disconnecting session..."),this._forbidConnectWhile(()=>{this._chartApi.connected()&&this._sendRemoveSession(),this._processDestroyingOnServer()}))}onMessage(e){switch(e.method){case"connected":return void this._onChartApiConnected();case"disconnected":return void this._onChartApiDisconnected();case"critical_error":const t=String(e.params[0]),i=String(e.params[1]);return void this._onCriticalError(t,i)}this._onMessage(e)}_getChartApi(){return this._chartApi}_generateLogMessage(e){return`[${this._sessionId}] ${e}`}_onCriticalError(e,t){this._logError(`Critical error. Reason=${e}, info=${t}.`),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this._shouldReconnectAfterCriticalError?(this._logNormal("Reconnecting after critical error..."),this.connect()):this._logNormal("Reconnecting after critical error skipped")}_onChartApiConnected(){(0,n.assert)(1===this._state,"Session is not registered"),this._logNormal("Transport is connected. Creating session on the server"),this._sendCreateSession(),this._state=2,this._isConnected.setValue(!0)}_onChartApiDisconnected(){ +this._logNormal("Transport is disconnected. Reconnecting..."),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this.connect()}_setSessionId(e){const t=this._sessionId;this._logNormal(`Changing sessionId: old=${t}, new=${e}`),this._sessionId=e,this._sessionIdChanged.fire(e,t)}_logNormal(e){h.logNormal(this._generateLogMessage(e))}_logError(e){h.logError(this._generateLogMessage(e))}_processDestroyingOnServer(){this._state=0,this._isConnected.setValue(!1),this._chartApi.removeSession(this._sessionId),this._setSessionId("")}_forbidConnectWhile(e){this._isConnectForbidden=!0,e(),this._isConnectForbidden=!1}}{constructor(e,t=!1){super(e,"cs",!1),this._sessionDisabled=!1,this._handler=null,this._criticalError=new(r()),this._symbolResolveMap=new Map,this._disableStatistics=t}destroy(){this._criticalError.destroy(),this._handler=null,this._symbolResolveMap.clear(),super.destroy()}serverTimeOffset(){return this._getChartApi().serverTimeOffset()}switchTimezone(e){return this._getChartApi().switchTimezone(this.sessionId(),e)}defaultResolutions(){return this._getChartApi().defaultResolutions()}availableCurrencies(){return this._getChartApi().availableCurrencies()}availableUnits(){return this._getChartApi().availableUnits()}resolveSymbol(e,t,i){if(this._symbolResolveMap.has(t)){const[e,s]=this._symbolResolveMap.get(t);return Array.isArray(s)?s.push(i):s.then(i),e}{const s=[i];return this._getChartApi().resolveSymbol(this.sessionId(),e,t,i=>{"symbol_error"===i.method?this._symbolResolveMap.delete(t):this._symbolResolveMap.set(t,[e,Promise.resolve(i)]),s.forEach(e=>e(i))}),this._symbolResolveMap.set(t,[e,s]),e}}requestFirstBarTime(e,t,i){return this._getChartApi().requestFirstBarTime(this.sessionId(),e,t,i)}createSeries(e,t,i,s,r,n,o){return this._getChartApi().createSeries(this.sessionId(),e,t,i,s,r,n,o)}modifySeries(e,t,i,s,r,n){return this._getChartApi().modifySeries(this.sessionId(),e,t,i,s,r,n)}removeSeries(e){return!!this.isConnected().value()&&this._getChartApi().removeSeries(this.sessionId(),e)}requestMoreData(e,t,i){return"number"==typeof e?this._getChartApi().requestMoreData(this.sessionId(),e):this._getChartApi().requestMoreData(this.sessionId(),e,t,i)}requestMoreTickmarks(e,t,i){return(0,d.isNumber)(e)?this._getChartApi().requestMoreTickmarks(this.sessionId(),e):this._getChartApi().requestMoreTickmarks(this.sessionId(),e,t,i)}requestMetadata(e,t){(()=>{this._getChartApi().requestMetadata(this.sessionId(),e,t)})()}isCanCreateStudy(e){return this._getChartApi().isCanCreateStudy(e)}createStudy(e,t,i,s,r,n,o){return this._getChartApi().createStudy(this.sessionId(),e,t,i,s,r,n,o)}rebindStudy(e,t,i,s,r,n,o){return this._getChartApi().rebindStudy(this.sessionId(),e,t,i,s,r,n,o)}modifyStudy(e,t,i,s){return this._getChartApi().modifyStudy(this.sessionId(),e,t,i,s)}removeStudy(e,t){return this._getChartApi().removeStudy(this.sessionId(),e,t)}createPointset(e,t,i,s,r,n){return this._getChartApi().createPointset(this.sessionId(),e,t,i,s,r,n)}modifyPointset(e,t,i,s){ +return this._getChartApi().modifyPointset(this.sessionId(),e,t,i,s)}removePointset(e){return this._getChartApi().removePointset(this.sessionId(),e)}setVisibleTimeRange(e,t,i,s,r,n){this._getChartApi().setVisibleTimeRange(this.sessionId(),e,t,i,s,!0,r,n)}criticalError(){return this._criticalError}connect(e=null){null!==e&&(this._handler=e),this._symbolResolveMap.clear(),super.connect()}setHandler(e){this._handler=e}connected(){return this.isConnected().value()&&!this._sessionDisabled}disable(){this._sessionDisabled=!0}chartApi(){return this._getChartApi()}_sendCreateSession(){Object.keys(this).forEach(e=>{/^(s|st|symbol_)\d+$/.test(e)&&delete this[e]}),this._getChartApi().chartCreateSession(this.sessionId(),this._disableStatistics)}_sendRemoveSession(){this._getChartApi().chartDeleteSession(this.sessionId())}_onMessage(e){this._handler&&this._handler(e)}_onCriticalError(e,t){this._criticalError.fire(e,t),super._onCriticalError(e,t)}}},84801:(e,t,i)=>{"use strict";var s=i(80643).declareClassAsPureInterface;function r(){}TradingView.WEB_SOCKET_WAS_CONNECTED=!1,r.REBIND_STUDY_STANDALONE_TO_CHILD=1,r.REBIND_STUDY_CHILD_TO_STANDALONE=2,r.prototype.defaultWatchlistSymbols=function(){},r.prototype.defaultResolutions=function(){},r.prototype.availableCurrencies=function(){},r.prototype.availableUnits=function(){},r.prototype.supportedSymbolsTypes=function(){},r.prototype.supportedExchangesList=function(){},r.prototype.symbolsGrouping=function(){},r.prototype.quoteCreateSession=function(e){},r.prototype.quoteDeleteSession=function(e){},r.prototype.quoteSetFields=function(e,t){},r.prototype.quoteAddSymbols=function(e,t){},r.prototype.quoteRemoveSymbols=function(e,t){},r.prototype.quoteFastSymbols=function(e,t){},r.prototype.depthCreateSession=function(e,t,i){},r.prototype.depthDeleteSession=function(e){},r.prototype.depthSetSymbol=function(e,t){},r.prototype.depthClearSymbol=function(e){},r.prototype.depthSetScale=function(e,t){},r.prototype.chartCreateSession=function(e,t){},r.prototype.chartDeleteSession=function(e){},r.prototype.createSession=function(e,t){},r.prototype.removeSession=function(e){},r.prototype.connected=function(){},r.prototype.connect=function(){},r.prototype.disconnect=function(){},r.prototype.switchTimezone=function(e,t){},r.prototype.resolveSymbol=function(e,t,i,s){},r.prototype.createSeries=function(e,t,i,s,r,n,o,a){},r.prototype.removeSeries=function(e,t,i){},r.prototype.modifySeries=function(e,t,i,s,r,n,o){},r.prototype.requestMoreData=function(e,t,i,s){},r.prototype.requestMetadata=function(e,t,i){},r.prototype.isCanCreateStudy=function(e,t){},r.prototype.createStudy=function(e,t,i,s,r,n,o){},r.prototype.rebindStudy=function(e,t,i,s,r,n,o,a){},r.prototype.removeStudy=function(e,t,i){},r.prototype.modifyStudy=function(e,t,i,s,r){},r.prototype.createPointset=function(e,t,i,s,r,n,o){},r.prototype.modifyPointset=function(e,t,i,s,r){},r.prototype.removePointset=function(e,t,i){},r.prototype.requestMoreTickmarks=function(e,t,i,s){},r.prototype.requestFirstBarTime=function(e,t,i,s){}, +r.prototype._invokeHandler=function(e,t){},r.prototype._sendRequest=function(e,t){},r.prototype._onMessage=function(e){},r.prototype._dispatchNotification=function(e){},r.prototype._invokeNotificationHandler=function(e,t,i){},r.prototype._notifySessions=function(e){},r.prototype.unpack=function(e){},r.prototype.searchSymbols=function(e,t,i,s,r,n,o,a,l,c){},r.prototype.serverTimeOffset=function(){},r.prototype.getMarks=function(e,t,i,s,r){},r.prototype.getTimescaleMarks=function(e,t,i,s,r){},s(r,"ChartApiInterface"),e.exports.HandlerInfo=function(e,t){this.handler=e,this.customId=t},e.exports.ChartApiInterface=r},17437:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setCustomAdapter:()=>_,initialize:()=>m,updateUser:()=>g,getChartsCount:()=>f,getCharts:()=>v,removeChart:()=>S,saveChart:()=>y,getChartContent:()=>b,loadChart:()=>w,removeStudyTemplate:()=>C,getStudyTemplateContent:()=>P,saveStudyTemplate:()=>T,getStudyTemplatesList:()=>x,invalidateStudyTemplatesList:()=>I,getStudyTemplateContentById:()=>M,getStandardStudyTemplateContentById:()=>L,removeStudyTemplateById:()=>A,renameStudyTemplate:()=>E,replaceStudyTemplate:()=>k,getDrawingTemplates:()=>D,loadDrawingTemplate:()=>V,removeDrawingTemplate:()=>B,saveDrawingTemplate:()=>N});var s=i(76422),r=i(98125),n=i(88461);const o=(0,r.getLogger)("Chart.SaveloadAdapter.Library");let a,l,c,h,d=null,u=null;function p(e){return`${c}/${encodeURIComponent(h)}/${e}?client=${encodeURIComponent(a)}&user=${encodeURIComponent(l)}`}function _(e){d=e}function m(e,t,i,s){a=e,l=t,c=i,h=s}function g(e){l=e}function f(e,t){throw new Error("Not implemented")}async function v(){const e=e=>e.map(e=>({id:e.id,name:e.name,image_url:String(e.id),modified_iso:e.timestamp,short_symbol:e.symbol,interval:e.resolution}));if(d)return d.getAllCharts().then(e);try{const t=await fetch(""+p("charts"),{credentials:"same-origin"});if(!t.ok)throw new Error(`Getting chart content response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Get chart content request failed: "+i.message);return e(i.data)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function S(e){if(d)d.removeChart(e);else try{const t=await fetch(`${p("charts")}&chart=${encodeURIComponent(e)}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error(`Remove chart response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Remove drawing template request failed: "+i.message)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function y(e,t,i,s,r){const a=r.id.value(),l={name:e,content:JSON.stringify(s),symbol:t,resolution:i};if(d)return d.saveChart({...l,id:a});try{const e=new FormData;for(const t in l)e.append(t,l[t]);let t=p("charts");null!=a&&(t+="&chart="+encodeURIComponent(a));const i=await fetch(t,{credentials:"same-origin",method:"POST",body:e});if(!i.ok)throw new Error(`Saving chart content response was not OK. Status: ${i.status}.`);const s=await i.json() +;if("ok"!==s.status)throw new Error("Saving chart content request failed: "+s.message);return s.id.toString()}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function b(e){const t=t=>{const i=JSON.parse(t);return i.uid=e.id,i};if(d)return d.getChartContent(e.id).then(e=>t(e));try{const i=await fetch(`${p("charts")}&chart=${encodeURIComponent(e.id)}`,{credentials:"same-origin"});if(!i.ok)throw new Error(`Getting chart content response was not OK. Status: ${i.status}.`);const s=await i.json();if("ok"!==s.status)throw new Error("Get chart content request failed: "+s.message);return t(s.data.content)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}function w(e){b(e).then(e=>{s.emit("chart_load_requested",e)},()=>{o.logWarn("Error loading chart")})}async function C(e){try{if(d)return d.removeStudyTemplate({name:e});const t=await fetch(`${p("study_templates")}&template=${encodeURIComponent(e)}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error(`Remove study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Remove study template request failed: "+i.message)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function P(e){try{if(d){return{content:await d.getStudyTemplateContent({name:e})}}const t=await fetch(`${p("study_templates")}&template=${encodeURIComponent(e)}`,{credentials:"same-origin"});if(!t.ok)throw new Error(`Get study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Get study template request failed: "+i.message);return i.data}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function T(e){try{if(d)return d.saveStudyTemplate(e).then(()=>({error:""})).catch(e=>({error:null!=e?(0,n.errorToString)(e):"error"}));const t=new FormData;t.append("name",e.name),t.append("content",e.content);const i=await fetch(p("study_templates"),{method:"POST",body:t,credentials:"same-origin"});if(!i.ok)throw new Error(`Save study template response was not OK. Status: ${i.status}.`);const s=await i.json();return{error:"ok"===s.status?"":s.status}}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}async function x(){try{if(u)return u;u=[];const e=e=>(u=e.map(e=>({is_default:!1,name:e.name})),u);if(d)return d.getAllStudyTemplates().then(e);const t=await fetch(p("study_templates"),{method:"GET",credentials:"same-origin"});if(!t.ok)throw new Error(`Study templates list response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Study templates list request failed: "+i.message);return e(i.data)}catch(e){throw o.logWarn((0,n.errorToString)(e)),e}}function I(){u=null}function M(e,t){throw new Error("Not implemented")}function L(e,t){throw new Error("Not implemented")}function A(e,t){throw new Error("Not implemented")}function E(e,t,i){throw new Error("Not implemented")}function k(e,t,i){throw new Error("Not implemented")}async function D(e){throw new Error("Not implemented")}async function V(e,t){ +throw new Error("Not implemented")}async function B(e,t){throw new Error("Not implemented")}async function N(e,t,i){throw new Error("Not implemented")}},87983:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(69177),n=i(29823).Interval,o=i(16616),a=i(84093),l=i(84801),c=l.ChartApiInterface,h=l.HandlerInfo,d=i(80643).requireFullInterfaceImplementation,u=i(98125).getLogger("Chart.ChartApiLocal"),p=i(73383).TIMEFRAMETYPE,_=i(65862).createDwmAligner,m=i(67337);TradingView.STUDY_COUNT_LIMIT=210,JSServer.ChartApi=function(e){this._notificationHandlers={},this._sessions={},this.studyCounter=0,this._connected=!1,this._enabled=!1,this._studyEngine=new o(e),this._callbacks={},this._serverTimeOffset=0;var t=this;this._studyEngine.on("configuration_received",(function(){t._fireEvent("configuration_received")})),this._studyEngine.on("realtime_tick",(function(e){var i={time:e.value[0]/1e3,open:e.value[1],high:e.value[2],low:e.value[3],close:e.value[4],volume:e.value[5]};t._fireEvent("realtime_tick",i,!0)})),this._setVisibleRangeTimeout={}},JSServer.ChartApi.prototype.destroy=function(){this._studyEngine.destroy(),this._studyEngine=null},JSServer.ChartApi.prototype.purgeCache=function(e){this._studyEngine.purgeCache(),this._studyEngine.purgeDataCache()},JSServer.ChartApi.prototype.defaultWatchlistSymbols=function(){const e=this._watchlistSettings.default_symbols;return m.enabled("uppercase_instrument_names")?e.map(e=>e.toUpperCase()):e},JSServer.ChartApi.prototype.defaultResolutions=function(){return this._studyEngine.supportedResolutions()||["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"]},JSServer.ChartApi.prototype.availableCurrencies=function(){var e=this._studyEngine.supportedCurrencies().map((function(e){return"string"==typeof e?{id:e,code:e}:e}));return Promise.resolve(e)},JSServer.ChartApi.prototype.availableUnits=function(){return Promise.resolve(this._studyEngine.supportedUnits())},JSServer.ChartApi.prototype.supportedSymbolsTypes=function(){return this._studyEngine.supportedSymbolsTypes()},JSServer.ChartApi.prototype.supportedExchangesList=function(){return this._studyEngine.supportedExchangesList()},JSServer.ChartApi.prototype.symbolsGrouping=function(){return this._studyEngine.symbolsGrouping()},JSServer.ChartApi.prototype.start=function(){this._enabled=!0,this._fireEvent("start_enabled")},JSServer.ChartApi.prototype.unsubscribe=function(e,t){var i=this._callbacks[e];i&&i.splice(i.indexOf(t),1)},JSServer.ChartApi.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},JSServer.ChartApi.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){var s=this._callbacks[e].slice(0);i||(this._callbacks[e]=[]);for(var r=0;rn||(TradingView.ChartapiMessagerInstances[e].onSeriesTimeframeUpdate(t,i,_,n,a),l&&setTimeout(l,0))}}}if(this._studyEngine.isTimeScaleExtendedTo(e,1e3*r))p();else{var m=TradingView.ChartapiMessagerInstances[e].seriesCompleted,g=TradingView.ChartapiMessagerInstances[e].seriesError +;void 0!==this._setVisibleRangeTimeout[e]&&clearTimeout(this._setVisibleRangeTimeout[e]),this._setVisibleRangeTimeout[e]=setTimeout(function(){delete this._setVisibleRangeTimeout[e],m.subscribe(null,f,!0),g.subscribe(null,v,!0),this._studyEngine.ensureExtendedTo(t,e,1e3*r)}.bind(this),0)}function f(e,s){e===t&&s===i&&(m.unsubscribe(null,f),g.unsubscribe(null,v),p())}function v(e,s){e===t&&s===i&&m.unsubscribe(null,f)}},JSServer.ChartApi.prototype._applyTimeFrame=function(e,t,i,s,o){var a,l,c={},h=!0;if(o.type===p.PeriodBack){var d=this._studyEngine.getSeriesLastBarTime(e,i);if(null===d)return;l=d/1e3;var u=n.parse(o.value),m=this._studyEngine.getSeriesSymbolInfo(e,i);a=r.alignPeriodsBackForVisibleRange(m.session,m.session_holidays,m.corrections,u.letter(),u.multiplier(),1,d)/1e3;var g=_(this._studyEngine.getSeriesInterval(e,i),m);null!==g&&(l=g.timeToExchangeTradingDay(1e3*l)/1e3,a=g.timeToExchangeTradingDay(1e3*a)/1e3),c={applyDefaultRightMargin:!0},h=!1}else a=o.from,l=o.to;this.setVisibleTimeRange(e,i,s,a,l,h,c)},JSServer.ChartApi.prototype.modifySeries=function(e,t,i,s,r,n,o){var a=this;this._notificationHandlers[e][t]=new h((function(r){"series_completed"===r.method&&null!==n&&(a._applyTimeFrame(e,s,t,i,n),n=null),o(r)}),t),this._studyEngine.modifySeries(e,t,s,r,i)},JSServer.ChartApi.prototype.requestMoreData=function(e,t){this._studyEngine.extendSeriesRange(e,t)},JSServer.ChartApi.prototype.setStudiesAccessController=function(e){this.studiesAccessController=e},JSServer.ChartApi.prototype.setWatchlistSettings=function(e){this._watchlistSettings=e},JSServer.ChartApi.prototype.allStudiesMetadata=function(){return this._studyEngine.studiesMetadata()},JSServer.ChartApi.prototype.requestMetadata=function(e,t,i){this._notificationHandlers[e][t]=new h(i,t);var s=this.studiesAccessController.getEnabledTools();TradingView.ChartapiMessagerInstances[e].onRequestMetadata(t,s)},JSServer.ChartApi.prototype.isCanCreateStudy=function(){return this.studyCounter{"use strict";var s=i(2872),r=function(e,t){this._server=e,this._session=t,this.seriesCompleted=new s,this.seriesError=new s};r.prototype.onRequestMetadata=function(e,t){this._server.receiveLocalResponse({method:"studies_metadata",params:[this._session,e,{errors:[],hash:"",metainfo:t,migrations:[]}]})},r.prototype.onSymbolResolved=function(e,t){this._server.receiveLocalResponse({method:"symbol_resolved",params:[this._session,e,t]})},r.prototype.onSymbolError=function(e,t){this._server.receiveLocalResponse({method:"symbol_error",params:[this._session,e,t]})},r.prototype.onStudyError=function(e,t,i){this._server.receiveLocalResponse({method:"study_error",params:[this._session,e,t,i]})},r.prototype.onSeriesLoading=function(e,t){ +this._server.receiveLocalResponse({method:"series_loading",params:[this._session,e,t]})},r.prototype.onSeriesCompleted=function(e,t,i){this._server.receiveLocalResponse({method:"series_completed",params:[this._session,e,i,t]}),this.seriesCompleted.fire(e,t)},r.prototype.onSeriesError=function(e,t,i){this._server.receiveLocalResponse({method:"series_error",params:[this._session,e,t,i]}),this.seriesError.fire(e,t)},r.prototype.onStudyCompleted=function(e,t){this._server.receiveLocalResponse({method:"study_completed",params:[this._session,e,t]})},r.prototype.onStudyLoading=function(e,t){this._server.receiveLocalResponse({method:"study_loading",params:[this._session,e,t]})},r.prototype.onTickmarksUpdated=function(e,t){var i={method:"tickmark_update",params:[this._session,{index:e,zoffset:0,changes:[],marks:t,index_diff:[]}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleUpdate=function(e,t){var i={method:"timescale_update",params:[this._session,this._prepareDataUpdateObjects(t),{index:e.pointsIndex,zoffset:0,changes:e.points,marks:e.marks,index_diff:e.indexChange,baseIndex:e.baseIndex}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleCompleted=function(e){this._server.receiveLocalResponse({method:"timescale_completed",params:[this._session,e]})},r.prototype.onSeriesTimeframeUpdate=function(e,t,i,s,r){var n={method:"series_timeframe",params:[this._session,e,t,i,s,null,!0,r]};this._server.receiveLocalResponse(n)},r.prototype.onPointsetDataUpdate=function(e,t,i){this.onDataUpdate(e,t,i,null)},r.prototype._prepareDataUpdateObjects=function(e){var t={};return e.forEach((function(e){t[e.objId]={series:e.data,turnaround:e.turnaround},e.nonSeriesData&&(e.nonSeriesData.data?t[e.objId].nonseries={d:JSON.stringify(e.nonSeriesData.data),indexes:e.nonSeriesData.indexes}:t[e.objId].nonseries={d:"",indexes:[]})})),t},r.prototype.onDataUpdate=function(e,t,i,s){var r={method:"data_update",params:[this._session,this._prepareDataUpdateObjects([{objId:e,turnaround:t,data:i,nonSeriesData:s}])]};this._server.receiveLocalResponse(r)},r.prototype.onQuotesData=function(e){this._server.receiveLocalResponse({method:"quote_symbol_data",params:e})},r.prototype.onDepthData=function(e){this._server.receiveLocalResponse({method:"dd",params:e})},r.prototype.onDepthUpdate=function(e){this._server.receiveLocalResponse({method:"dpu",params:e})},r.prototype.onClearData=function(e){this._server.receiveLocalResponse({method:"clear_data",params:[this._session,e]})},TradingView.ChartapiMessagerInstances=[],e.exports=r},41986:(e,t,i)=>{"use strict";i.d(t,{DatafeedRequestsCachedProcessor:()=>_});var s=i(88537),r=i(29823),n=i(55257),o=i(216),a=i(67337),l=i(69177),c=i(65862),h=i(90388);i(94419);function d(e,t){return e.ticker+(e.currency_code?"_#_"+e.currency_code:"")+(e.unit_id?"_#_"+e.unit_id:"")+(e.subsession_id?"_#_"+e.subsession_id:"")+"_#_"+t}function u(e){return new Date(e).toISOString()}class p{constructor(e,t,i,s,n,o){this._cache={bars:[]},this._nextSubscriptionId=0,this._pendingSubscribers=[],this._subscribers=[], +this._requesting=!1,this._leftDate=null,this._nextTime=null,this._realtimeOn=!1,this._endOfData=!1,this._resetCacheTimeout=null,this._errorMessage=null,this._destroyed=!1,this._emptyResponsesCount=0,this._datafeed=e,this._symbolInfo=t,this._interval=r.Interval.parse(i),this._resolution=this._interval.value(),this._dwmAligner=n,this._serverTimeOffsetGetter=s,this._resetCacheTimePeriod=void 0===o?1e4:o,this._sessionSpec=new h.SessionSpec(t.timezone,t.session,t.session_holidays,t.corrections),this._updateDatesFromExpirationDate()}destroy(){0!==this._subscribers.length&&console.warn("Destroying with not-empty state"),this._clearResetCacheTimeout(),this._unsubscribeRealtime(),this._purgeCache(),delete this._datafeed,this._destroyed=!0}addSubscription(e,t,i){const s=this._getNextSubscriptionId();this._pendingSubscribers.push({key:s,range:e,onHistoryCallback:t,onErrorCallback:i}),r.Interval.isDWM(this._resolution)&&void 0!==e.to&&null!==this._dwmAligner&&e.to%864e5&&console.warn(`Internal error: invalid date for DWM resolution ${u(e.to)}, expected time without a time part`),this._clearResetCacheTimeout();return setTimeout(()=>{this._destroyed||this._processPendingSubscribers()},0),s}removeSubscription(e){const t=this._pendingSubscribers.find(t=>t.key===e);if(t)return void this._pendingSubscribers.splice(this._pendingSubscribers.indexOf(t),1);const i=this._subscribers.find(t=>t.key===e);if(i)return this._subscribers.splice(this._subscribers.indexOf(i),1),void(this._subscribers.length||(this._resetCacheTimeout=setTimeout(()=>{this._resetCacheTimeout=null,this._purgeCache(),this._unsubscribeRealtime()},this._resetCacheTimePeriod)));console.warn("Unknown subscription symbol={0}, resolution={1}, key={2}".format(this._symbolInfo.name,this._resolution,e))}_logMessage(e,t){if(a.enabled("charting_library_debug_mode")||t){const t=this._symbolInfo.currency_code,i=this._symbolInfo.unit_id;console.log(`FEED [${this._symbolInfo.name}|${this._resolution}${t?"|"+t:""}${i?"|"+i:""}]: ${e}`)}}_clearResetCacheTimeout(){null!==this._resetCacheTimeout&&(clearTimeout(this._resetCacheTimeout),this._resetCacheTimeout=null)}_purgeCache(){this._logMessage("Reset cache"),this._cache={bars:[]},this._errorMessage=null,this._leftDate=null,this._endOfData=!1,this._updateDatesFromExpirationDate()}_updateDatesFromExpirationDate(){void 0!==this._symbolInfo.expiration_date&&(this._nextTime=1e3*this._symbolInfo.expiration_date,this._leftDate=1e3*(this._symbolInfo.expiration_date+1))}_dealignTime(e){return null===this._dwmAligner?e:this._dwmAligner.timeToExchangeTradingDay(e)}_normalizeRange(e){const t=void 0!==e.to?e.to:this._dealignTime(this._now());if(0===this._cache.bars.length||void 0!==e.to&&t<=(0,s.ensureNotNull)(this._leftDate))return{countBack:e.countBack,to:t};const i=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(t):t,r=(0,n.lowerbound)(this._cache.bars,i,(e,t)=>e.time{e.onErrorCallback(t)})}let t=this._normalizeRange(e[0].range);for(const i of e.map(e=>this._normalizeRange(e.range)))(i.tot.countBack)&&(t=i);this._logMessage(`Leftmost subscriber requires ${t.countBack} bars prior ${u(t.to)}`);!(null===this._leftDate||t.to{const t=this._moveSubscriberToRealtime(e);this._returnHistoryDataToSubscriber(e,t)}),this._subscribeRealtimeIfNeeded()):this._ensureRequestedTo(t)}_moveSubscriberToRealtime(e){const t={key:e.key,onHistoryCallback:e.onHistoryCallback,barset:null};return this._subscribers.push(t),t}_isSymbolExpired(){return this._symbolInfo.expired||void 0!==this._symbolInfo.expiration_date}_subscribeRealtimeIfNeeded(){!this._subscribers.length||this._realtimeOn||this._isSymbolExpired()||this._subscribeRealtime()}_subscribeRealtime(){if(this._symbolInfo.expired||this._realtimeOn)return;this._realtimeOn=!0,this._datafeed.subscribeBars(this._symbolInfo,this._resolution,e=>{null!==this._dwmAligner&&(e.time=this._dwmAligner.timeToSessionStart(e.time)),this._putToCacheNewBar(e),this._subscribers.forEach(t=>{const i=t.barset;if(null===i)throw new Error("subscriber.barset is null");i.add(e),t.onHistoryCallback(i)})},d(this._symbolInfo,this._resolution),()=>{this._unsubscribeRealtime();const e=this._leftDate;this._purgeCache(),null!==e&&this._ensureRequestedTo({to:e,countBack:0})}),this._logMessage("Subscribed to realtime")}_unsubscribeRealtime(){!this._isSymbolExpired()&&this._realtimeOn&&(this._datafeed.unsubscribeBars(d(this._symbolInfo,this._resolution)),this._logMessage("Unsubscribed from realtime"),this._realtimeOn=!1)}_returnHistoryDataToSubscriber(e,t){const i=this._normalizeRange(e.range),s=this._createBarsetForRange(i);s.count()>0?this._logMessage("Bars to return for request {0}: total {1} bars in [{2} ... {3}] ".format(e.key,s.count(),u(s.bars[0].time),u(s.bars[s.count()-1].time))):this._logMessage("Request {0}. Nothing to return.".format(e.key)),t.barset=s,this._endOfData&&null!==this._leftDate&&i.to<=this._leftDate&&(s.endOfData=!0),e.onHistoryCallback(s)}_createBarsetForRange(e){const t=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(e.to):e.to,i=(0,n.lowerbound)(this._cache.bars,t,(e,t)=>e.time{if(!this._destroyed)if(a)this._logMessage("getBars callback is already called before",!0);else{if(a=!0,e.length>0){const t=` [${u(e[0].time)} ... ${u(e[e.length-1].time)}]`;this._logMessage(`Receiving bars: total ${e.length} bars in ${t}, requested range: ${o}`)}else this._logMessage("Receiving bars: barset is empty, requested range: "+o);this._requesting=!1,this._processBars(e,t)}},e=>{this._destroyed||(a?this._logMessage("getBars callback is already called before",!0):(a=!0,this._requesting=!1,this._errorMessage=e||null,this._processPendingSubscribers()))})}_processBars(e,t){this._checkBars(e),this._alignBarsTime(e),e.length>0?(this._emptyResponsesCount=0,this._processFullBarset(e,t)):(this._emptyResponsesCount+=1,this._processEmptyBarset(t)),this._processPendingSubscribers()}_processEmptyBarset(e){e&&e.nextTime?(this._logMessage("Next time received: `{0}`".format(u(1e3*e.nextTime))),this._nextTime=1e3*e.nextTime):e&&e.noData?(this._logMessage("EOD received"),this._setEndOfData()):this._logMessage("nextTime or noData should present in metainfo when empty barset is returned"),50===this._emptyResponsesCount&&(this._logMessage("EOD detected due 50 empty responses in a row"),this._setEndOfData())}_setEndOfData(){this._endOfData=!0, +this._cache.bars.length&&(this._leftDate=this._dealignTime(this._cache.bars[0].time))}_processFullBarset(e,t){this._putToCache(e)?null!==this._leftDate&&0!==this._cache.bars.length&&(this._interval.isTicks()?this._leftDate=this._dealignTime(this._cache.bars[0].time):this._leftDate=Math.min(this._leftDate,this._dealignTime(this._cache.bars[0].time))):this._logMessage("Incremental update failed. Starting full update. Returned data should be in the requested range.",!0),t&&t.nextTime?console.warn("nextTime should be set when there is no data in the requested period only"):t&&t.noData&&console.warn("noData should be set when there is no data in the requested period and earlier only")}_getNextSubscriptionId(){return this._nextSubscriptionId++}_checkBars(e,t=!1){if(a.enabled("charting_library_debug_mode"))for(let i=1;i"number"!=typeof e[i][t]||!isFinite(e[i][t]))&&console.error("Wrong bars values: all OHLC values should be numbers")}}_putToCache(e){if(0===e.length)return!0;if(this._cache.bars.length===e.length&&this._cache.bars[0].time===e[0].time&&this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time)return this._logMessage("Time range of received data is the same as cached one. Skip the update."),!0;if(0!==this._cache.bars.length&&e[e.length-1].time===this._cache.bars[0].time&&this._cache.bars.splice(0,1),0!==this._cache.bars.length&&e[e.length-1].time>=this._cache.bars[0].time){const t=this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time;if(this._cache.bars=[],!t)return this._leftDate=null,!1;this._logMessage("Received history up to now instead of incremental update. Return exactly what is requested.")}return this._cache.bars=[...e,...this._cache.bars],this._checkBars(this._cache.bars,!0),!0}_putToCacheNewBar(e){const t=this._cache.bars.length,i=e.time,s=0===t?NaN:this._cache.bars[t-1].time;0===t||st.destroy()),this._threads={},delete this._datafeed}purgeCache(){this._forEachThread((e,t)=>t.destroy()),this._threads={}}subscribe(e,t,i,s,r){const n=d(e,t);this._threads[n]||(this._threads[n]=this._createThread(e,t));return n+'"'+this._threads[n].addSubscription(i,s,r)}unsubscribe(e){ +const t=e.split('"');if(2!==t.length)return void console.warn("Wrong guid format");const i=t[0],s=parseInt(t[1]);this._threads.hasOwnProperty(i)?this._threads[i].removeSubscription(s):console.warn("Data thread doesnt exist: "+e)}_createThread(e,t){return new p(this._datafeed,e,t,this._serverTimeOffsetGetter,(0,c.createDwmAligner)(t,e),this._resetCacheTimePeriod)}_forEachThread(e){Object.keys(this._threads).forEach(t=>e(t,this._threads[t]))}}},42934:(e,t,i)=>{"use strict";i.d(t,{barTimeToEndOfPeriod:()=>r,endOfPeriodToBarTime:()=>n});var s=i(68684);function r(e,t,i){if(i.isDays())return t;if(e.moveTo(1e3*t),i.isIntraday()){const i=e.indexOfBar(1e3*t);if(i<0)throw new Error(t+" is out of the instrument session ");return e.endOfBar(i)/1e3}return e.startOfBar(s.SessionStage.LASTBAR_SESSION)/1e3}function n(e,t,i){if(i.isDays())return t;const s=1e3*t-1;if(e.moveTo(s),i.isIntraday()){const i=e.indexOfBar(s);if(i<0)throw new Error(t+" is out of the instrument session ");return e.startOfBar(i)/1e3}return t=e.startOfBar(0)/1e3}},79283:(e,t,i)=>{"use strict";i.d(t,{replaceGraphicsTimesWithTimePointIndexIndex:()=>n});const s=new Map([["horizlines",e=>[e.startIndex,e.endIndex]],["hhists",e=>[e.firstBarTime,e.firstBarTime]],["vertlines",e=>[e.index]],["polygons",e=>e.points.map(e=>e.index)],["backgrounds",e=>[e.start,e.stop]]]),r=new Map([["horizlines",(e,t)=>{const i=e;i.startIndex=t.get(i.startIndex),i.endIndex=t.get(i.endIndex)}],["hhists",(e,t)=>{const i=e;i.firstBarTime=t.get(i.firstBarTime),i.lastBarTime=t.get(i.lastBarTime)}],["vertlines",(e,t)=>{const i=e;i.index=t.get(i.index)}],["polygons",(e,t)=>{const i=e;for(const e of i.points)e.index=t.get(e.index)}],["backgrounds",(e,t)=>{const i=e;i.start=t.get(i.start),i.stop=t.get(i.stop)}]]);function n(e){const t=e.data&&e.data.graphicsCmds&&e.data.graphicsCmds.create;if(!t)return[];const i=new Map,n=new Set;s.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data){const t=e(s);for(const e of t)i.set(e,-1),n.add(e)}});const o=Array.from(n).sort((e,t)=>e-t);return o.forEach((e,t)=>i.set(e,t)),r.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data)e(s,i)}),o}},65235:(e,t,i)=>{"use strict";var s=i(67337);window.onload=function(){location.hostname.indexOf(".")>=0&&!function(){try{return/^(192|172|10)\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]/.test(location.hostname)||/^.*((?:\.local)|localhost)$/.test(location.hostname)}catch(e){return!1}}()&&setTimeout((function(){try{var e=function(){var e=0;return JSON.parse(urlParams.logo).image&&(e="C",s.enabled("link_to_tradingview")||(e="D")),e}();window.ga&&(0!==e&&window.ga("send","event","s",e),urlParams.utm||window.ga("send","event","l"))}catch(e){}}),3e4)}},41728:(e,t,i)=>{"use strict";var s=i(69177),r={};e.exports=function(e,t,i){var n,o,a={},l=r[i]||"out_of_session",c=!1,h=i,d=t,u=null;function p(){var e={};e.symbolname=h,e.status="ok",e.values={},e.values.current_session=l,r[h]=l,TradingView.ChartapiMessagerInstances[d].onQuotesData([d].concat([e]))}function _(){ +if(n)if(o)l="out_of_session";else{var e=s.isTradingNow((new Date).getTime(),n)?"market":"out_of_session";e!==l&&(l=e,p())}}return e(i,null,(function(e){c||function(e){n=new s.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),o=e.expired,u=setInterval(_,6e4),_(),p()}(e)}),(function(){})),a.stop=function(){c=!0,u&&clearInterval(u)},a.marketStatus=function(){return l},a}},11565:(e,t,i)=>{"use strict";i.d(t,{getChartStyleStudy:()=>n});var s=i(216);class r{main(e){const t=e.new_var(s.Std.open(e)),i=e.new_var(s.Std.close(e)),r=t.get(1),n=i.get(1),o=s.Std.ohlc4(e),a=s.Std.na(t.get(1))?(s.Std.open(e)+s.Std.close(e))/2:(r+n)/2;t.set(a),i.set(o);const l=s.Std.max(s.Std.high(e),s.Std.max(a,o)),c=s.Std.min(s.Std.low(e),s.Std.min(a,o)),h=s.Std.volume(e),d=e.symbol;return[d.time,a,l,c,o,h,d.updatetime,d.isBarClosed]}}function n(e){if(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-"))return new r;const t="unknown builder type: "+e.type;throw console.error(t),new Error(t)}},37750:(e,t,i)=>{"use strict";var s=i(29823).Interval,r=i(65862).isAlignmentEnabled,n=i(11565).getChartStyleStudy,o=i(19234).decodeExtendedSymbol,a=i(983).findSuitableResolutionToBuildFrom,l=i(28930).SubsessionId,c=function(){var e=i(216),t=e.StudyEngine,c=e.BarBuilder,h=e.BarSet;function d(e){this.host=e,this.cache={}}function u(t){console.error(t),e.Std.error(t)}d.prototype.getCache=function(e){return this.cache[e]},d.prototype.putCache=function(e,t){this.cache[e]=t},d.prototype.subscribe=function(e,t,i,s,r,n,o,a,l,c,h){var d=l(o),u=function(e,t,i,s,r,n,o,a,l){var c=r.has_empty_bars?"_":"";return n+e+s+(t||"")+(i||"")+(l||"")+c+"_"+o.countBack+"_"+o.to+"_"+Boolean(a)}(e,t,i,s,o,a,d,c,h),p=this.getCache(u);return p||(p=this.createItem(e,t,i,s,o,d,a,c,h),this.putCache(u,p)),p.listeners.addListener(r,n),{key:u,listener:r}},d.prototype.unsubscribe=function(e){var t=this.getCache(e.key);t&&t.listeners.removeListener(e.listener)},d.prototype.removeUnused=function(){var e=[];for(var t in this.cache){if(this.cache[t])0===this.cache[t].listeners.listenersCount()&&e.push(t)}if(0!==e.length){for(var i=0;i{"use strict";i.d(t,{findSuitableResolutionToBuildFrom:()=>o});var s=i(29823);function r(e,t){const i=t.multiplier();for(let s=e.length-1;s>=0;s--){const r=Number(e[s]);if(i%r==0)return{error:!1,resolution:`${r}${t.letter()}`}}return{error:!0,errorMessage:n(t.value())}}function n(e){return`Misconfiguration error: it is trying to request ${e} but we cannot build it from lower resolution`}function o(e,t){const i=s.Interval.parse(e);if((i.isWeeks()||i.isMonths())&&t.has_weekly_and_monthly){let e=["1"];i.isWeeks()&&void 0!==t.weekly_multipliers&&(e=t.weekly_multipliers),i.isMonths()&&void 0!==t.monthly_multipliers&&(e=t.monthly_multipliers);const s=r(e,i);if(!s.error)return s}if(i.isDWM()&&(void 0===t.has_daily||t.has_daily))return i.isDays()&&void 0!==t.daily_multipliers?r(t.daily_multipliers,i):void 0===t.daily_multipliers||t.daily_multipliers.includes("1")?{error:!1,resolution:"1D"}:{error:!0,errorMessage:"Misconfiguration error: it is trying to request a resolution but symbol does not support it"};if(i.isDWM())return{error:!0,errorMessage:n(i.value())};if(i.isMinutes()&&!t.has_intraday)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request intraday resolution but symbol does not support it"};if(i.isSeconds()&&!t.has_seconds)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request seconds resolution but symbol does not support it"};if(i.isTicks())return!t.has_ticks||i.multiplier()>1?{error:!0,errorMessage:`Misconfiguration error: it is trying to request ${i.multiplier()} ticks resolution but symbol does not support it`}:{error:!1,resolution:"1T"};const o=i.isSeconds()?t.seconds_multipliers:t.intraday_multipliers;return void 0===o?{error:!1,resolution:i.value()}:r(o,i)}},216:function(e,t,i){"use strict";var s=i(54631).StudyError,r=i(55257),n=i(80643).inherit,o=i(68684).SessionStage,a=i(29823).Interval,l=i(65862).createDwmAligner,c=i(65862).createTimeToBarTimeAligner,h=i(19234).decodeExtendedSymbol,d=i(19234).encodeExtendedSymbolOrGetSimpleSymbolString,u=i(28930).SubsessionId,p=i(37415).PrePostMarketBarIdentifier,_=i(90388).SessionSpec,m=function(){var e,t="undefined"!=typeof window?window:i.g,g=t.PineJsCalendar?t.PineJsCalendar:i(10480),f=i(69177),v=i(11075).extrapolateBarsFrontToTime,S={};function y(e,t,i,s,r){var n=r,o=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(var a=0;a1&&(this._currentIndex.set(n),this._currentValue.set(o),this._pivotIndex.set(a))}function w(e,t,i){this._deviation=e;var s=i.new_var(S.high(i)),r=i.new_var(S.low(i));s.get(2*t+1),r.get(2*t+1),this._pivotHigh=new b(t,t,b.HIGH,s,i),this._pivotLow=new b(t,t,b.LOW,r,i),this._lastVal=i.new_var(NaN),this._lastIndex=i.new_var(-1),this._lastType=i.new_var(),this._index=S.n(i),this._isNewBar=i.symbol.isNewBar,this._isBarClosed=i.symbol.isBarClosed;var n=this._lastIndex.get(1),o=this._lastVal.get(1),a=this._lastType.get(1);this._index>1&&this.addPivot(n,o,a),this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}function C(e){this.symbol=e,this.vars=[],this.vars_index=0,this.ctx=[],this.ctx_index=0,this.minimumAdditionalDepth=null}function P(e){this.mindepth=0,this.original=NaN,this.modified=!1,this.symbol=e}function T(e){P.call(this,e)}function x(e,t,i,s,r,n,o){var l=h(e);const c="string"==typeof l.symbol?l:l.symbol;this.ticker=c.symbol,this.currencyCode=i||c["currency-id"],this.unitId=s||c["unit-id"],this.subsessionId=o||c.session;var u=c["currency-id"]!==this.currencyCode||c["unit-id"]!==this.unitId;c["currency-id"]=this.currencyCode,c["unit-id"]=this.unitId,u&&(e=d(l)),this.tickerid=e;var p=a.parse(t);this.resolution=p.letter(),this.interval=p.multiplier(),this.period=p.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.session=new f.SessionInfo("Etc/UTC","24x7"),this.regularSubsession=null,this.preMarketSubsession=null,this.postMarketSubsession=null,this.script=r,this.isAdditionalDepthAllowed=void 0===l.type,n&&this.set_symbolinfo(n)}function I(e,t,i,s,r,n,o,a,l,c,h){this.body=n,this.symbols=[],this.runner=r,this.inputCallback=a,this.out=o,this.nonseriesOut=l,this.ctx=new C(this.add_sym(e,t,i,s,c,h)),this.init()}function M(e){this.symbols=[],this.barsets=[],this.subscription=[],this.host=e,this.isRecalculated=!1,this.isStarted=!1,this.start()}function L(e){this.runner=new M(e)}function A(e,t){this.info=e,this.bars=t||[],this.isBarClosed=!0,this.firstLoadedTimeMs=0!==this.bars.length?this.bars[0].time:1/0,this._emptyBarCount=0,this._lastBarIsEmpty=!1}function E(e,t){this.period=e,this.generateEmptyBars=!!t}function k(){}return S.max_series_default_size=10001,S.n=function(e){return e.symbol.index+1},S.nz=function(e,t){return t=t||0,isFinite(e)?e:t},S.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},S.isZero=function(e){return Math.abs(e)<=1e-10},S.toBool=function(e){return isFinite(e)&&!S.isZero(e)},S.eq=function(e,t){return S.isZero(e-t)},S.neq=function(e,t){return!S.eq(e,t)},S.ge=function(e,t){return S.isZero(e-t)||e>t},S.gt=function(e,t){return!S.isZero(e-t)&&e>t},S.lt=function(e,t){return!S.isZero(e-t)&&e(i||1e-10)},S.less=function(e,t,i){return t-e>(i||1e-10)},S.compare=function(e,t,i){return S.equal(e,t,i)?0:S.greater(e,t,i)?1:-1},S.max=Math.max,S.min=Math.min,S.pow=Math.pow,S.abs=Math.abs,S.log=Math.log,S.log10=function(e){return Math.log(e)/Math.LN10},S.sqrt=Math.sqrt,S.sign=function(e){return isNaN(e)?NaN:S.isZero(e)?0:e>0?1:-1},S.exp=Math.exp,S.sin=Math.sin,S.cos=Math.cos,S.tan=Math.tan,S.asin=Math.asin,S.acos=Math.acos,S.atan=Math.atan,S.floor=Math.floor,S.ceil=Math.ceil,S.round=Math.round,S.avg=function(e,t,i,s,r,n){if(2===arguments.length)return(e+t)/2;for(var o=0,a=0;a=0;--n){var o=t[n];if(!(o>=i.startOfBar(0))){i.moveTo(o);var a=t[n+1];s.push(a)}}s.reverse()}return s},S.iff=function(e,t,i){return S.not(e)?i:t},S.rising=function(e,t){for(var i=1;ie.get(0))return 0;return 1},S.falling=function(e,t){for(var i=1;i=0;r--){s+=(t-r)*e.get(r)}return 2*s/(t*(t+1))},S.vwma=function(e,t,i){var s=i.new_var(S.volume(i)),r=i.new_var(e.get(0)*S.volume(i));return S.sma(r,t,i)/S.sma(s,t,i)},S.swma=function(e,t){return(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6},S.supertrend=function(e,t,i){var s=m.Std.atr(t,i),r=i.new_var(s).get(1),n=m.Std.hl2(i),o=n+s*e,a=n-s*e,l=m.Std.close(i),c=i.new_var(l).get(1),h=i.new_var(),d=m.Std.nz(h.get(1)),u=i.new_var(),p=m.Std.nz(u.get(1));a=S.gt(a,d)||S.lt(c,d)?a:d,h.set(a),o=S.lt(o,p)||S.gt(c,p)?o:p,u.set(o);var _=m.Std.na(),g=i.new_var(),f=g.get(1),v=-1===(_=m.Std.na(r)?1:f===p?l>o?-1:1:l2&&(T=Math.min(T,y))):(T=Math.max(T,b),S.n(s)>2&&(T=Math.max(T,w))),p.set(T),T},S.alma=function(e,t,i,s){for(var r=Math.floor(i*(t-1)),n=t/s*(t/s),o=[],a=0,l=0;lthis._currentValue.get():ithis._areaRight},b.prototype.update=function(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){for(var e=!0,t=0;tthis._deviation&&this.addPivot(e,t,i);else(i===b.HIGH?t>s:t0&&i.set(e),i},C.prototype.new_unlimited_var=function(e){var t=this.vars;t.length<=this.vars_index&&t.push(new T(this.symbol));var i=t[this.vars_index++];return arguments.length>0&&i.set(e),i},C.prototype.new_ctx=function(){return this.ctx.length<=this.ctx_index&&this.ctx.push(new C(this.symbol)),this.ctx[this.ctx_index++]},C.prototype.prepare=function(e){this.ctx_index=0,this.vars_index=0;for(var t=0;te&&(e=i)}return e},C.prototype.stop=function(){this.symbol=null,this.vars=null},C.prototype.setMinimumAdditionalDepth=function(e){this.minimumAdditionalDepth=e},P.prototype.valueOf=function(){return this.get(0)},P.prototype.get=function(e){return isNaN(e)&&(e=0),e=e||0,this.hist?e>=this.hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=S.max(this.mindepth,e),NaN)},P.prototype._get=function(e){var t=this.hist_pos-e;return t<0&&(t+=this.hist.length),this.hist[t]},P.prototype.set=function(e){this.hist&&(this.hist[this.hist_pos]=e,this.modified=!0)},P.prototype.prepare=function(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this.hist||this.add_hist()):this.set(this.original),this.modified=!1)},P.prototype.add_hist=function(){if(!this.hist){var e=S.na(this.mindepth)?S.max_series_default_size:S.max(this.mindepth+1,1);e=Math.round(e);for(var t=new Array(e),i=0;ie.id===u.Regular),i=e.subsessions.find(e=>e.id===u.PreMarket),s=e.subsessions.find(e=>e.id===u.PostMarket);void 0!==t&&(this.regularSubsession=new _(e.timezone,t.session,e.session_holidays,t["session-correction"])),void 0!==i&&(this.preMarketSubsession=new _(e.timezone,i.session,e.session_holidays,i["session-correction"])),void 0!==s&&(this.postMarketSubsession=new _(e.timezone,s.session,e.session_holidays,s["session-correction"]))}},x.prototype.isdwm=function(){return""!==this.resolution&&"S"!==this.resolution&&"T"!==this.resolution},x.prototype.enable_dwm_aligning=function(e,t){this.dwm_aligner=f.newBarBuilder(this.period,e,t)},x.prototype.bartime=function(){var e=this.time;if(!this.isdwm()||isNaN(e))return e;var t=g.utc_to_cal(this.timezone,e);return this.session.spec.correctTradingDay(t),g.cal_to_utc(this.timezone,t)},x.prototype.lastbar=function(e){if(!isNaN(e.time)){var t=e.time;this.dwm_aligner&&(this.dwm_aligner.moveTo(t),t=this.dwm_aligner.startOfBar(0));var i=this.time!==t;i&&this.index>=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=e.volume,this.updatetime=e.updatetime,this.isNewBar=i,this.isBarClosed=e.isBarClosed,this.isLastBar=e.isLastBar,this.isNewBar&&(this.index++,this.isFirstBar=0===this.index),this.script.calc(this)}},I.prototype.calc=function(e){var t=this.ctx,i=this.body;t.prepare(e);var s=i.main(t,this.inputCallback,e);if(s&&"composite"===s.type)for(let e=0;e1&&o.enable_dwm_aligning(this.symbols[0].session,o.session),o},I.prototype.maxAdditionalDepth=function(){return this.symbols[0].isAdditionalDepthAllowed?this.ctx.maxAdditionalDepth():0},I.prototype.stop=function(){this.symbols=null,this.ctx.stop(),this.ctx=null},I.prototype.get_sym=function(e){return this.symbols[e]},M.prototype.add_sym=function(e,t,i,s,r,n,o){var a=new x(e,t,i,s,r,n);return this.symbols.push(a),a},M.prototype.get_sym=function(e){return this.symbols[e]},M.prototype.out=function(e,t){if(this.nonseriesUpdate){var i=Object.assign({},this.nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)},M.prototype.start=function(){this.isStarted=!0;var e=this.host;this._script=new I(e.tickerid,e.period,e.currencyCode,e.unitId,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo,e.subsessionId) +;var t=this,i=[],s=this.symbols,r=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+t._script.maxAdditionalDepth()}),n=s[0];function o(t,s,r){i.push(M.feed.subscribe(t.tickerid,t.currencyCode,t.unitId,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,s,e.forceAlignBars,t.subsessionId))}function h(i,s){"series"===(s.nonseries?"nonseries":"series")?t.update(i,s):s.lastBar?(t.nonseriesUpdate=s,s.lastBar.isLastBar=!0,t.symbols[0].lastbar(s.lastBar),t.nonseriesUpdate=null):e.nonseriesOut(p,s)}function d(){return r}o(n,d,(function(e){!e.nonseries&&Number.isFinite(e.firstLoadedTimeMs)&&function(e){function i(i,s){var r=c(i,s)(e),n=l(i,s);return null!==n&&(r=n.timeToExchangeTradingDay(r)),{to:r,countBack:t._script.maxAdditionalDepth()}}for(var r=1;r=0;i--)for(var s=e[i],r=this.barsets[i],n=r.count(),o=0;o{"use strict";const s=i(45112).getHexColorByName;var r=i(216);i(27595);var n=i(99294).pivotPointsStandardStudyItem,o=i(62839).volumeProfileVisibleRangeStudyItem,a=i(5748).volumeProfileFixedRangeVbPStudyItem,l=i(5748).volumeProfileFixedRangeBSStudyItem,c=i(65754).spreadStudyItem,h=i(82366).ratioStudyItem,d=i(13463).regressionTrendStudyItem;const u=s("color-ripe-red-400"),p=s("color-minty-green-400");JSServer.studyLibrary=JSServer.studyLibrary.concat([{name:"Compare",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{compare:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#9C27B0"}},inputs:{source:"close",symbol:""}},plots:[{id:"compare",type:"line"}],styles:{compare:{title:"Plot",histogramBase:0}},description:"Compare",shortDescription:"Compare",is_price_study:!0,inputs:[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol",name:"Symbol",type:"symbol",isHidden:!0}],id:"Compare@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(1),r.Std.period(this._context))},this.main=function(e,t){this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1) +;var s=this._context.new_unlimited_var(this._context.symbol.time),n=r.Std[t(0)](this._context),o=this._context.new_unlimited_var(n);return this._context.select_sym(0),[o.adopt(s,i,0)]}}},{name:"Overlay",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{},inputs:{symbol:""}},plots:[{id:"open",type:"line"},{id:"high",type:"line"},{id:"low",type:"line"},{id:"close",type:"line"}],styles:{open:{title:"Open"},high:{title:"High"},low:{title:"Low"},close:{title:"Close"}},description:"Overlay",shortDescription:"Overlay",is_price_study:!1,inputs:[{id:"symbol",name:"symbol",defval:"",type:"symbol",isHidden:!0}],id:"Overlay@tv-basicstudies-1",format:{type:"price",precision:4}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(0),r.Std.period(this._context))},this.main=function(e,t){this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),n=this._context.new_unlimited_var(r.Std.open(this._context)),o=this._context.new_unlimited_var(r.Std.high(this._context)),a=this._context.new_unlimited_var(r.Std.low(this._context)),l=this._context.new_unlimited_var(r.Std.close(this._context));return this._context.select_sym(0),[n.adopt(s,i,1),o.adopt(s,i,1),a.adopt(s,i,1),l.adopt(s,i,1)]}}},{name:"Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{vol:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:50,visible:!0,color:"#000080"},vol_ma:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"}},palettes:{volumePalette:{colors:{0:{color:u,width:1,style:0},1:{color:p,width:1,style:0}}}},inputs:{showMA:!1,length:20,col_prev_close:!1,symbol:"",smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"vol",type:"line"},{id:"volumePalette",palette:"volumePalette",target:"vol",type:"colorer"},{id:"vol_ma",type:"line"},{id:"smoothedMA",type:"line"}],styles:{vol:{title:"Volume",histogramBase:0},vol_ma:{title:"Volume MA",histogramBase:0},smoothedMA:{title:"Smoothed MA",histogramBase:0}},description:"Volume",shortDescription:"Volume",is_price_study:!1,palettes:{volumePalette:{colors:{0:{name:"Falling"},1:{name:"Growing"}}}},inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"showMA",name:"show MA",defval:!1,type:"bool",isHidden:!0},{id:"length",name:"MA Length",defval:20,type:"integer",min:1,max:2e3},{defval:!1,id:"col_prev_close",name:"Color based on previous close",type:"bool"},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4}],id:"Volume@tv-basicstudies-1",format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e, +""!==t(0)&&this._context.new_sym(t(0),r.Std.period(this._context))},this.f_0=function(e,t){return r.Std.gt(e,t)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.volume(this._context),s=r.Std.open(this._context),n=r.Std.close(this._context),o=this._context.new_var(this._context.symbol.time),a=this._input(4),l=this._input(5);if(this._context.setMinimumAdditionalDepth(this._input(2)+l),""!==this._input(0)){this._context.select_sym(1);var c=this._context.new_var(this._context.symbol.time),h=this._context.new_var(r.Std.volume(this._context)),d=this._context.new_var(r.Std.open(this._context)),u=this._context.new_var(r.Std.close(this._context));i=h.adopt(c,o,1),s=d.adopt(c,o,1),n=u.adopt(c,o,1),this._context.select_sym(0)}var p,_,m=this._context.new_var(i),g=r.Std.sma(m,this._input(2),this._context),f=this._context.new_var(g),v=this._context.new_var(n);return p=v.get(1)&&this._input(3)?this.f_0(v.get(1),n):this.f_0(s,n),"EMA"===a?_=r.Std.ema(f,l,this._context):"WMA"===a?_=r.Std.wma(f,l,this._context):"SMA"===a&&(_=r.Std.sma(f,l,this._context)),[i,p,g,_]}}},{name:"ZigZag",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",target:"plot_0",type:"dataoffset"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Zig Zag",shortDescription:"ZigZag",is_price_study:!0,classId:"ScriptWithDataOffset",inputs:[{id:"in_0",name:"deviation",defval:5,type:"float",min:.001,max:100},{id:"in_1",name:"depth",defval:10,type:"integer",min:2,max:1e3}],id:"ZigZag@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=i/100,o=Math.ceil(s/2);return[r.Std.zigzag(n,o,this._context),r.Std.zigzagbars(n,o,this._context)]}}},{name:"Sessions",metainfo:{_metainfoVersion:52,defaults:{graphics:{vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}},backgrounds:{preMarket:{color:"#FF9800",transparency:92,visible:!0},postMarket:{color:"#2196F3",transparency:92,visible:!0}}},linkedToSeries:!0},description:"Sessions",graphics:{vertlines:{sessBreaks:{name:"Session Break",halign:"left"}},backgrounds:{preMarket:{name:"Pre market"},postMarket:{name:"Post market"}}},id:"Sessions@tv-basicstudies-1",inputs:[],is_hidden_study:!0,is_price_study:!0,name:"Sessions@tv-basicstudies",palettes:{},plots:[],shortDescription:"Sessions",format:{type:"inherit"}},constructor:function(){function e(e,t){return{id:e,index:e,extendBottom:!0,extendTop:!0}}function t(e){return{id:e.start,start:e.start,stop:e.stop}}this.init=function(){this._times=[]},this._getVerticalLineData=function(t){return r.Std.selectSessionBreaks(t,this._times).map(e)},this._getPreAndPostMarketBackgroundsData=function(e){const i=r.Std.selectPreAndPostMarketTimes(e,this._times);return{preMarket:i.preMarket.map(t), +postMarket:i.postMarket.map(t)}},this.main=function(e,t){if(r.Std.isdwm(e))return null;var i=r.Std.time(e);if(isNaN(i))return null;var s=this._times.length;if(0!==s&&this._times[s-1]===i||this._times.push(i),!e.symbol.isLastBar||!e.symbol.isNewBar)return null;var n=this._getVerticalLineData(e),o=this._getPreAndPostMarketBackgroundsData(e);return 0===n.length&&0===o.preMarket.length&&0===o.postMarket?null:{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{vertlines:[{styleId:"sessBreaks",data:n}],backgrounds:[{styleId:"preMarket",data:o.preMarket},{styleId:"postMarket",data:o.postMarket}]},erase:[{action:"all"}]}}}}}},{name:"SuperTrend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:3,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"},plot_2:{linestyle:0,linewidth:3,plottype:"shape_arrow_up",trackPrice:!1,location:"BelowBar",transparency:35,visible:!0,color:"#00FF00"},plot_3:{linestyle:0,linewidth:3,plottype:"shape_arrow_down",trackPrice:!1,location:"AboveBar",transparency:35,visible:!0,color:"#FF0000"}},palettes:{palette_0:{colors:{0:{color:"#008000",width:3,style:0},1:{color:"#800000",width:3,style:0}}}},inputs:{in_0:10,in_1:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"},{id:"plot_2",type:"shapes"},{id:"plot_3",type:"shapes"}],styles:{plot_0:{title:"SuperTrend",histogramBase:0,joinPoints:!1,isHidden:!1},plot_2:{title:"Up Arrow",histogramBase:0,joinPoints:!1,isHidden:!1},plot_3:{title:"Down Arrow",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"SuperTrend",shortDescription:"SuperTrend",is_price_study:!0,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}},valToIndex:{0:0,1:1}}},inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:100},{id:"in_1",name:"Factor",defval:3,type:"float",min:1,max:100}],id:"SuperTrend@tv-basicstudies-1",scriptIdPart:"",name:"SuperTrend",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0),s=t(1),[n,o]=r.Std.supertrend(s,i,e),a=e.new_var(o).get(1);return[n,-1===o?0:1,-1===o&&a!==o?1:NaN,1===o&&a!==o?1:NaN]}}},n,o,a,l,c,h,d])},99294:(e,t,i)=>{"use strict";i.d(t,{pivotPointsStandardStudyItem:()=>d});var s=i(216),r=i(29823),n=i(983);class o{constructor(){this.p=NaN,this.r1=NaN,this.s1=NaN,this.r2=NaN,this.s2=NaN,this.r3=NaN,this.s3=NaN,this.r4=NaN,this.s4=NaN,this.r5=NaN,this.s5=NaN,this.startIndex__t=NaN,this.endIndex__t=NaN}}class a{constructor(){this.pivots=[]}}function l(e,t){e.setUTCMonth(e.getUTCMonth()+t)}function c(e,t){if(s.Std.ismonthly(e)){let i=new Date(t);return i.getUTCDay()=1&&t.multiplier()<=15?"1D":"1W";case r.ResolutionKind.Seconds:case r.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}const d={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15,pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe",options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:1,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots",format:{type:"price",precision:4}},constructor:class{constructor(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN}init(e,t){const i=t(0),r=t(1),o=t(2),l=t(3);this._data=new a,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=r,this._historicalPivotsToKeep=l,this._pivTimeFrame=o,this._isValidResolution=function(e,t){return(!s.Std.isdaily(e)||"Daily"!==t)&&((!s.Std.isweekly(e)||"Daily"!==t&&"Weekly"!==t)&&(!s.Std.ismonthly(e)||"Daily"!==t&&"Weekly"!==t&&"Monthly"!==t))}(e,this._pivTimeFrame),this._isValidResolution||s.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=h(e,this._pivTimeFrame),void 0!==e.symbol.info&&(0,n.findSuitableResolutionToBuildFrom)(this._secondaryRes,e.symbol.info).error&&(this._isValidResolution=!1,s.Std.error(`Resolution ${this._secondaryRes} is not supported for this symbol`))),e.new_sym(e.symbol.tickerid,this._secondaryRes)}main(e,t,i){if(!this._isValidResolution)return null;if(e.is_main_symbol(i))return isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);const r=e.new_var(s.Std.open(e)),n=e.new_var(s.Std.high(e)),a=e.new_var(s.Std.low(e)),l=e.new_var(s.Std.close(e)),h=e.new_var(s.Std.time(e)),d=this._data,u=r.get(0),p=h.get(0),_=r.get(1),m=n.get(1),g=a.get(1),f=l.get(1),v=e.symbol.isLastBar;if(0!==d.pivots.length&&e.symbol.isNewBar){ +const e=d.pivots[d.pivots.length-1];e.endIndex__t!==p&&(e.endIndex__t=p)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;const S=function(e,t,i,r,n,a,l,c){const h=new o;let d=NaN;const u=i-r;switch(c){case 0:d=(i+r+n)/3,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+(i-r),h.s2=d-(i-r),h.r3=2*d+(i-2*r),h.s3=2*d-(2*i-r),h.r4=3*d+(i-3*r),h.s4=3*d-(3*i-r),h.r5=4*d+(i-4*r),h.s5=4*d-(4*i-r);break;case 1:d=(i+r+n)/3,h.p=d,h.r1=d+.382*u,h.s1=d-.382*u,h.r2=d+.618*u,h.s2=d-.618*u,h.r3=d+u,h.s3=d-u;break;case 2:d=(i+r+2*e)/4,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=i+2*(d-r),h.s3=r-2*(i-d),h.r4=h.r3+u,h.s4=h.s3-u;break;case 3:d=(i+r+n)/3,h.p=d,h.r1=2*d-r,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=d+2*u,h.s3=d-2*u,h.r4=d+3*u,h.s4=d-3*u;break;case 4:let o=NaN;o=s.Std.equal(t,n)?i+r+2*n:s.Std.greater(n,t)?2*i+r+n:2*r+i+n,d=o/4,h.p=d,h.r1=o/2-r,h.s1=o/2-i;break;case 5:d=(i+r+n)/3,h.p=d,h.r1=n+1.1*u/12,h.s1=n-1.1*u/12,h.r2=n+1.1*u/6,h.s2=n-1.1*u/6,h.r3=n+1.1*u/4,h.s3=n-1.1*u/4,h.r4=n+1.1*u/2,h.s4=n-1.1*u/2;break;default:throw new Error("Unknown kind")}return h.startIndex__t=a,h.endIndex__t=l,h}(u,_,m,g,f,p,c(e,p),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(d.pivots=[]),d.pivots.push(S),d.pivots.length>this._historicalPivotsToKeep&&d.pivots.shift(),v?this._createResponse():null}_createResponse(){return 0===this._data.pivots.length?null:{nonseries:!0,type:"non_series_data",data:{data:this._data}}}_removeUnusedPivots(){const e=Math.max(this._data.pivots.findIndex(e=>e.startIndex__t>this._firstMainSeriesBarTime)-1,0);e>0&&this._data.pivots.splice(0,e)}}}},82366:(e,t,i)=>{"use strict";i.d(t,{ratioStudyItem:()=>n});var s=i(84707);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t/(i*s)}}const n={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Ratio@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},13463:(e,t,i)=>{"use strict";i.d(t,{regressionTrendStudyItem:()=>n});var s=i(216);function r(e,t,i){const r={slope:NaN,average:NaN,intercept:NaN,stdDev:NaN,upDev:NaN,downDev:NaN,pearsons:NaN};return 0===e.length||(function(e,t){let i=0,s=0,r=0,n=0;for(let t=0;tn&&(n=u),u=d-i[s],u>o&&(o=u),u=e[s];const _=u-r.average,m=d-p;u-=d,a+=u*u,l+=_*_,c+=m*m,h+=_*m,d+=r.slope}r.stdDev=Math.sqrt(a/(0===u?1:u)),r.pearsons=s.Std.isZero(l)||s.Std.isZero(c)?0:h/Math.sqrt(l*c),r.upDev=n,r.downDev=o}(e,t,i,r)),r}const n={name:"Regression Trend",metainfo:{_metainfoVersion:51,description:"Regression Trend",format:{type:"inherit"},id:"RegressionTrend@tv-basicstudies-144",is_hidden_study:!0,is_price_study:!0, +shortDescription:"Reg Trend",defaults:{inputs:{"first bar time":0,"last bar time":0,"lower diviation":-2,source:"close","upper diviation":2,"use lower diviation":!0,"use upper diviation":!0}},inputs:[{defval:2,id:"upper diviation",max:500,min:-500,name:"Upper Deviation",type:"float"},{defval:-2,id:"lower diviation",max:500,min:-500,name:"Lower Deviation",type:"float"},{defval:!0,id:"use upper diviation",name:"Use Upper Deviation",type:"bool"},{defval:!0,id:"use lower diviation",name:"Use Lower Deviation",type:"bool"},{defval:0,id:"first bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"First bar time",type:"time"},{defval:0,id:"last bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last bar time",type:"time"},{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[]},constructor:class{constructor(){this._resultSent=!1}init(e,t){this._resultSent=!1,this._data={baseLine:{startPrice:NaN,endPrice:NaN},upLine:{startPrice:NaN,endPrice:NaN},downLine:{startPrice:NaN,endPrice:NaN},pearsons:NaN,startIndex__t:NaN,endIndex__t:NaN}}main(e,t){const i=t(6),n=e.new_unlimited_var(s.Std.time(e)),o=e.new_unlimited_var(s.Std.high(e)),a=e.new_unlimited_var(s.Std.low(e)),l=e.new_unlimited_var(s.Std[i](e));if(!e.symbol.isLastBar)return null;if(this._resultSent)return null;const c=t(0),h=t(1),d=t(2),u=t(3),p=t(4),_=t(5),m=n.indexOf(p),g=n.indexOf(_),f=[],v=[],S=[],y=[];for(let e=m;e>=g;--e)f.push(n.get(e)),v.push(o.get(e)),S.push(a.get(e)),y.push(l.get(e));return this._updateData(f,d,c,u,h,p,_,r(y,v,S)),this._resultSent=!0,{type:"non_series_data",nonseries:!0,data:{data:this._data}}}_updateData(e,t,i,s,r,n,o,a){const l=e.length-1;this._data.baseLine.startPrice=a.intercept,this._data.baseLine.endPrice=a.intercept+a.slope*l;const c=a.intercept+(t?a.stdDev*i:a.upDev);this._data.upLine.startPrice=c,this._data.upLine.endPrice=c+a.slope*l;const h=a.intercept+(s?a.stdDev*r:-a.downDev);this._data.downLine.startPrice=h,this._data.downLine.endPrice=h+a.slope*l,this._data.pearsons=a.pearsons,this._data.startIndex__t=n,this._data.endIndex__t=o}}}},84707:(e,t,i)=>{"use strict";i.d(t,{SpreadRatioBase:()=>r,spreadRatioDefaults:()=>n,spreadRatioInputs:()=>o,spreadRatioPlots:()=>a,spreadRatioStyles:()=>l});var s=i(216);class r{init(e,t){e.new_sym(t(1),s.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1}main(e,t){const i=e.symbol.time,r=s.Std[this._source](e);e.select_sym(1);const n=s.Std[this._source](e),o=e.new_unlimited_var(n),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;let l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);const c=l<0?NaN:o.get(l);return[this._doCalculation(this._scaleFactor1,r,this._scaleFactor2,c)]}}const n={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},o=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2", +name:"Symbol",type:"symbol",confirm:!0}],a=[{id:"plot1",type:"line"}],l={plot1:{title:"Plot",histogramBase:0}}},65754:(e,t,i)=>{"use strict";i.d(t,{spreadStudyItem:()=>n});var s=i(84707);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t-i*s}}const n={name:"Spread",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Spread",shortDescription:"Spread",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Spread@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},9345:(e,t,i)=>{"use strict";i.d(t,{VbPCheckHaveVolumeExpr:()=>r});var s=i(216);class r{constructor(e){this._haveAnyVolume=!1,this._isDisabled=!1,this._seriesGetter=e}update(e,t){if(this._haveAnyVolume||this._isDisabled)return;const i=this._seriesGetter.volume().get(e);0!==i&&Number.isFinite(i)&&(this._haveAnyVolume=!0),t&&(this._haveAnyVolume||s.Std.error("The data vendor doesn't provide volume data for this symbol."),this._isDisabled=!0)}}},62876:(e,t,i)=>{"use strict";i.d(t,{VolumeByPriceExpr:()=>_});var s=i(88537),r=i(64514),n=i(29823),o=i(216),a=i(31738);class l extends a.GraphicsObj{constructor(e,t,i,r,n,o){super(e),(0,s.assert)(t({index:e.index,offset:e.offset,level:e.level}))}}}class u extends a.GraphicsObj{constructor(e,t,i,s,r=!1,n=!1){super(e),this._endIndex=this._mixinJSONObject.createTimeField(i,"endIndex"),this._extendLeft=this._mixinJSONObject.createField(r,"extendLeft"),this._extendRight=this._mixinJSONObject.createField(n,"extendRight"),this._level=this._mixinJSONObject.createDoubleField(s,"level"),this._startIndex=this._mixinJSONObject.createTimeField(t,"startIndex")}isNaN(){return super.isNaN()||Number.isNaN(this._level.get())||this._startIndex.get()<0||this._endIndex.get()<0||this._startIndex.get()===this._endIndex.get()&&!this._extendLeft.get()&&!this._extendRight.get()}jsonName(){return"horizlines"}primitiveData(){return{id:this.id(),startIndex:this._startIndex.get(),endIndex:this._endIndex.get(),extendLeft:this._extendLeft.get(),extendRight:this._extendRight.get(),level:this._level.get()}}startIndex(){return this._startIndex.get()}setStartIndex(e){this._startIndex.set(e)&&this._processObjUpdate()}endIndex(){return this._endIndex.get()}setEndIndex(e){this._endIndex.set(e)&&this._processObjUpdate()}level(){return this._level.get()}setLevel(e){this._level.set(e)&&this._processObjUpdate()}isExtendLeft(){return this._extendLeft.get()}setExtendLeft(e){this._extendLeft.set(e)&&this._processObjUpdate()}extendLeft(){return this.isExtendLeft()}isExtendRight(){return this._extendRight.get()}setExtendRight(e){this._extendRight.set(e)&&this._processObjUpdate()}extendRight(){return this.isExtendRight()}}class p{constructor(){this._map=new Map}get(e){const t=this._innerMap(e.start);return t&&t.get(e.end)}set(e,t){this._innerMap(e.start,!0).set(e.end,t)}clear(){this._map.clear()}size(){let e=0;return this._map.forEach(t=>e+=t.size),e}_innerMap(e,t){let i=this._map.get(e);return void 0===i&&t&&(i=new Map,this._map.set(e,i)),i}}class _{constructor(e,t,i,r,n,o,a,l,h,d,u,_,m,g){this._freezedBoxes=new c.GraphicsList,this._freezedHists=new c.GraphicsList,this._freezedPocs=new c.GraphicsList,this._freezedVAHists=new c.GraphicsList,this._currentHistsGr=new c.GraphicsList,this._currentVAHistsGr=new c.GraphicsList,this._currentHists=[],this._currentHistsMap=new p,this._currentBox=null,this._currentPoc=null,this._historyBarSet=[],this._prevRtBar=null,this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY, +this._leftBoxTime=null,this._rightBoxTime=null,this._needRecalc=!1,this._largestHistItem=null,this._rowsLayout=null,this._currentVAStart=0,this._currentVAEnd=0,this._previousVAStart=0,this._previousVAEnd=0,this._idsGenerator=null,(0,s.assert)(1===e||2===e),this._numOfSubHists=e,this._outHists=r,this._outBoxLines=n,this._outPocLines=o,this._extendPocLeftRight=a,this._outVAHists=l,this._vaVolumePercent=h,this._rowsLayoutSupplier=d,this._outHists.addStable(this._freezedHists),this._outVAHists.addStable(this._freezedVAHists),this._maxHHistItems=u,this._layoutIsAutoselected=g,this._leftBoxTimeMutable=_,this._rightBoxTimeMutable=m,this._ctx=t,this._seriesGetter=i}update(e){this._supplyRowsLayout(this._ctx),null===this._currentBox&&this._initCurrentBox(),null===this._currentPoc&&this._initCurrentPoc();const t=this._timeScale().get(e);this._leftBoxTime=this._leftBoxTimeMutable,this._rightBoxTime=this._rightBoxTimeMutable,this._ctx.symbol.isLastBar&&!Number.isNaN(this._rightBoxTime)&&(this._rightBoxTime=Math.min(t+n.Interval.parse(this._ctx.symbol.interval+this._ctx.symbol.resolution).inMilliseconds(t)-1,this._rightBoxTime));const i=o.Std.greaterOrEqual(this._seriesClose().get(e),this._seriesOpen().get(e)),s={high:this._seriesHigh().get(e),low:this._seriesLow().get(e),volume:this._seriesVol().get(e),isUp:i,time:t};this._updateCurrentHistogram(s),this._currentHists.length>0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()}setIdsGeneratorProxy(e){this._idsGenerator=e}nextGraphicsObjId(){return(0,s.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()}pushEraseObjCmd(e,t){(0,s.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)}popEraseCmds(){return(0,s.ensureNotNull)(this._idsGenerator).popEraseCmds()}_timeScale(){return this._seriesGetter.time()}_seriesLow(){return this._seriesGetter.low()}_seriesHigh(){return this._seriesGetter.high()}_seriesVol(){return this._seriesGetter.volume()}_seriesOpen(){return this._seriesGetter.open()}_seriesClose(){return this._seriesGetter.close()}_freezeCurrentHistogramAndCleanup(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox),o.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(),this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null}_supplyRowsLayout(e){ +null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())}_updateCurrentHistogram(e){if(this._needRecalc=!1,o.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),o.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){const t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===(0,s.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0),this._ctx.symbol.isBarClosed?((0,s.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e}_getMidLevel(e){return(e.priceHigh()+e.priceLow())/2}_getMidLevelFromList(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])}_getLargestHistItem(){let e=[],t=this._currentHists[0];for(const i of this._currentHists)o.Std.greater(i.ratesSum(),t.ratesSum())?(t=i,e=[t]):o.Std.equal(i.ratesSum(),t.ratesSum())&&e.push(i);if(e.length>1){const i=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(let s=e.length-2;s>=0;s--){const r=e[s];o.Std.lessOrEqual(Math.abs(this._getMidLevel(r)-i),Math.abs(this._getMidLevel(t)-i))&&(t=r)}}return t}_initCurrentPoc(){this._currentPoc=new u(this,0,0,0)}_updateCurrentPoc(){const e=(0,s.ensureNotNull)(this._currentPoc);e.setStartIndex((0,s.ensureNotNull)(this._leftBoxTime)),e.setEndIndex((0,s.ensureNotNull)(this._rightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);const t=this._getMidLevel((0,s.ensureNotNull)(this._largestHistItem));e.setLevel(t)}_getVolume(e){let t=0;for(const i of e)t+=i.ratesSum();return t}_getPocHistItemIndex(){for(let e=0;e=0,"ERROR - PocHistItemIndex == "+e),this._currentVAStart=e-1,this._currentVAEnd=e+1;const t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01;let i=this._currentHists[e].ratesSum(),r=0,n=null;for(;o.Std.lessOrEqual(i+r,t)&&(i+=r,0===n?--this._currentVAStart:1===n&&++this._currentVAEnd,-1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){let t,i;if(this._currentVAStart>-1)if(t=this._currentHists[this._currentVAStart].ratesSum(),this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh());const i=[],r=(0,s.ensureNotNull)(this._leftBoxTime),n=(0,s.ensureNotNull)(this._rightBoxTime);i.push(new h(r,e)),i.push(new h(r,t)),i.push(new h(n,t)),i.push(new h(n,e)),(0,s.ensureNotNull)(this._currentBox).setPoints(i)}_recalculateCurrentResultsOnHistoryBarSet(){for(let e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()}_applyUpdateToCurrentResults(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1),this._updateLastBarTimeInHistogram(this._currentHists)}_addHistoryBarToHistogram(e,t,i,r,n){(0,s.assert)(-1===n||1===n,"Please set sign argument either +1 or -1");const a=e.low,l=e.high,c=isNaN(e.volume)?0:e.volume,h=e.isUp,d=(0,s.ensureNotNull)(this._rowsLayout);d.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,a,l);const u=d.rowWidth();if(!o.Std.greater(u,0))return;d.calculate();const p=d.getIndexLowVbP(),_=d.getIndexHighVbP(),m=d.getStartPrice();if(p===_){const e=p*u+m,t=(p+1)*u+m;this._updateResult({start:e,end:t},n*c,h,i,r)}else{let e=0;for(let t=p;t<=_;t++){const s=t*u+m,o=(t+1)*u+m,d=this._rowCoeff(s,o,a,l),p=d*c;e+=d,this._updateResult({ +start:s,end:o},n*p,h,i,r)}(0,s.assert)(o.Std.equal(e,1,.05),"totalCoeff not equal 1! totalConf = "+e)}}_updateResult(e,t,i,r,n){const a=this._createRates(i,t);(0,s.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),(0,s.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");const c=(0,s.ensureNotNull)(this._leftBoxTime),h=(0,s.ensureNotNull)(this._rightBoxTime);let d=n.get(e);if(void 0===d)d=new l(this,e.start,e.end,a,c,h),n.set(e,d),this._verifyHistogramSizeIsNotTooLarge(n.size()),this._currentHistsGr.add(d),_._addInOrder(d,r,0,r.length,(e,t)=>{let i=o.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i?i:(i=o.Std.compare(e.priceLow(),t.priceLow()),0!==i?i:o.Std.compare(e.priceHigh(),t.priceHigh()))});else{const e=[];for(let t=0;td,maxHHistItems:()=>c,numOfSubHists:()=>h});var s=i(216),r=i(29823);class n{constructor(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}init(e,t,i,s,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=s,this._high=r}getStartPrice(){return this._startPrice}setStartPrice(e){this._startPrice=e}getIndexLowVbP(){ +return this._indexLowVbP}setIndexLowVbP(e){this._indexLowVbP=e}getIndexHighVbP(){return this._indexHighVbP}setIndexHighVbP(e){this._indexHighVbP=e}type(){return this._type}}class o extends n{constructor(e){super(e,0)}calculate(){this.setStartPrice(this._minPrice);const e=this.rowWidth();let t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)}}class a extends n{constructor(e){super(e,1)}calculate(){this.setStartPrice(0);const e=this.rowWidth();let t=Math.floor(this._low/e);const i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return this._minTick*this._rowSize}}var l=i(67337);function c(){return 6e3}function h(e){switch(e){case"Delta":case"Up/Down":return 2;case"Total":return 1;default:s.Std.error("Invalid study argument value: "+e)}}class d{findBasicResolutionForFromTo(e,t,i,n){const o=(0,s.getVolumeProfileResolutionForPeriod)(e.value(),t,i,n),a=r.Interval.parse(o);return l.enabled("charting_library_debug_mode")&&console.log(`Selected resolution ${a.value()} for (${e.value()}, ${t}, ${i})`),a}verifyRowSizeInput(e,t){"Number Of Rows"===t&&e>6e3&&s.Std.error('Histogram is too large, please reduce "Row Size" input.')}_getRowsLayout(e,t){return"Number Of Rows"===e?new o(t):new a(t)}}},5748:(e,t,i)=>{"use strict";i.d(t,{volumeProfileFixedRangeBSStudyItem:()=>w,volumeProfileFixedRangeVbPStudyItem:()=>b});var s=i(88537),r=i(96761),n=i(216),o=i(50993),a=i(95018),l=i(29823),c=i(78002),h=i(34574),d=i(18317),u=i(79113),p=i(45548),_=i(9345),m=i(95936),g=i(62876);class f extends g.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,h,d){super(e,t,i,n,o,a,!1,l,c,()=>h,d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){ +const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}function y(e){return{constructor:S,name:e.description,metainfo:{_metainfoVersion:51,shortDescription:"VPFR",format:{type:"volume"},is_price_study:!0,defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:a.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:a.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:m.LineStyle.Solid,visible:!0,width:2}},polygons:{histBoxBg:{color:"#37a6ef",transparency:94}}},inputs:{first_bar_time:0,last_bar_time:0,rows:24,rowsLayout:"Number Of Rows",subscribeRealtime:!0,vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:m.LineStyle.Solid,linewidth:1,plottype:o.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,visible:!1}}},graphics:{hhists:{histBars2:{location:a.HHistLocation.Absolute,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:a.HHistLocation.Absolute,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}},polygons:{histBoxBg:{mouseTouchable:!1,name:"Histogram Box",showBorder:!1}}},inputs:[{defval:"Number Of Rows",id:"rowsLayout",name:"Rows Layout",options:["Number Of Rows","Ticks Per Row"],type:"text"},{defval:24,id:"rows",max:1e6,min:1,name:"Row Size",type:"integer"},{defval:"Up/Down",id:"volume",name:"Volume",options:["Up/Down","Total","Delta"],type:"text"},{defval:0,id:"first_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"First Bar Time",type:"time"},{defval:0,id:"last_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last Bar Time",type:"time"},{defval:70,id:"vaVolume",max:100,min:0,name:"Value Area Volume",type:"integer"},{defval:!0,id:"subscribeRealtime",isHidden:!0,name:"SubscribeRealtime",type:"bool"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"}, +developingVALow:{histogramBase:0,title:"Developing VA Low"}},...e}}}const b=y({id:"VbPFixed@tv-volumebyprice-57",description:"Volume Profile Fixed Range"}),w=y({id:"VbPFixed@tv-basicstudies-152",description:"Fixed Range",is_hidden_study:!0})},79258:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileOutputSeries:()=>n});var s=i(88537),r=i(55257);class n{constructor(){this._histPos=-1,this._hist=new Float64Array(2e3),this._times=new Float64Array(2e3)}addHist(e){if(this._histPos>=0){const t=this._times[this._histPos];(0,s.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){const e=new Float64Array(2*this._hist.length);e.set(this._hist),this._hist=e;const t=new Float64Array(this._hist.length);t.set(this._times),this._times=t}this._hist[this._histPos]=NaN,this._times[this._histPos]=e}removeLastIfNaN(){Number.isNaN(this.get(0))&&(this._histPos-=1)}get(e){(0,s.assert)(0===e);const t=this._histPos-e;return this._hist[t]}getLeftOrEqual(e){const t=(0,r.upperbound)(this._times,e,(e,t)=>e{"use strict";i.d(t,{volumeProfileVisibleRangeStudyItem:()=>v});var s=i(88537),r=i(96761),n=i(216),o=i(95018),a=i(29823),l=i(78002),c=i(62876),h=i(79113);class d extends c.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,d){super(e,t,i,n,new h.GraphicsList,o,!0,a,l,()=>c,d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}const v={constructor:f,name:"Volume Profile Visible Range",metainfo:{ +_metainfoVersion:51,id:"VbPVisible@tv-basicstudies-49",description:"Volume Profile Visible Range",shortDescription:"VPVR",format:{type:"volume"},is_price_study:!0,linkedToSeries:!0,palettes:{},inputs:[{id:"rowsLayout",name:"Rows Layout",defval:"Number Of Rows",options:["Number Of Rows","Ticks Per Row"],type:"text"},{id:"rows",name:"Row Size",defval:24,max:1e6,min:1,type:"integer"},{id:"volume",name:"Volume",defval:"Up/Down",options:["Up/Down","Total","Delta"],type:"text"},{id:"first_visible_bar_time",name:"First Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"last_visible_bar_time",name:"Last Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"vaVolume",name:"Value Area Volume",defval:70,max:100,min:0,type:"integer"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],graphics:{hhists:{histBars2:{location:o.HHistLocation.Relative,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:o.HHistLocation.Relative,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}}},defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:0,visible:!0,width:2}}},inputs:{first_visible_bar_time:0,last_visible_bar_time:0,rows:24,rowsLayout:"Number Of Rows",vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1}}},styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}}}}},54631:(e,t,i)=>{"use strict";i.d(t,{StudyError:()=>s});class s extends Error{constructor(e){super(e),this.studyError=!0}}},18317:(e,t,i)=>{"use strict";i.d(t,{EraseObj:()=>s,EraseAll:()=>r,GraphicsCmds:()=>n});class s{constructor(e,t){this.id=e,this.type=t}primitiveData(){return{action:"one",id:this.id,type:this.type}}}class r{primitiveData(){return{action:"all"}}}class n{constructor(){this.erase=[],this.create=null,this._modified=!1}primitiveData(e){if(this.isNaN())return null;const t={},i=this.create&&this.create.primitiveData(e);return null!==i&&(t.create=i),null!==this.erase&&this.erase.length>0&&(t.erase=this.erase.map(e=>e.primitiveData())),void 0===t.create&&void 0===t.erase?null:t}setCreate(e){this.create=e,this.create.forEachList(e=>e.setOwner(this))}isNaN(){ +return(null===this.erase||0===this.erase.length)&&null===this.create}isModified(){return this._modified}setModified(e){this._modified=e}dirty(){this._modified=!0}setOwner(e){throw new Error("Unsupported")}}},78002:(e,t,i)=>{"use strict";i.d(t,{GraphicsListColl:()=>s});class s{constructor(){this._stable=[],this._variable=null,this._owner=null}addStable(e){e.setOwner(this),this._stable.push(e)}setVariable(e){this._variable=e,null!==this._variable&&this._variable.setOwner(this)}primitivesData(e){const t=[];return this._forEach(i=>t.push(...i.primitivesData(e))),t}deleteErasedItems(){this._forEach(e=>e.deleteErasedItems())}markPostedItems(){this._forEach(e=>e.markPostedItems())}isNaN(){return this._all(e=>e.isNaN())}dirty(){null!==this._owner&&this._owner.dirty()}setOwner(e){this._owner=e}_forEach(e){for(const t of this._stable)e(t);null!==this._variable&&e(this._variable)}_all(e){for(const t of this._stable)if(!e(t))return!1;return null===this._variable||e(this._variable)}}},79113:(e,t,i)=>{"use strict";i.d(t,{GraphicsList:()=>n});var s=i(31738),r=i(28329);class n{constructor(){this._items=[],this._owner=null}primitivesData(e){const t=[];for(const i of this._items)e.isIgnoredObj(i)||t.push(i.primitiveData());return t}get(e){return this._items[e]}set(e,t){return this.dirty(),t.setOwner(this),this._items[e]=t,t}addAtIndex(e,t){this.dirty(),t.setOwner(this),this._items[e]=t}clear(){this._unsetOwner(this._items),this._items=[],this.dirty()}addAllFromNumber(e,t){this.setOwner(t),this._items.splice(e,0,...t._items);return this._setCachedDataValid(!1),!0}addAll(e){this.setOwner(e),this._items.push(...e._items);return this._setCachedDataValid(!1),!0}remove(e){const t=this._items[e];return this._items.splice(e,1),t.unsetOwner(this),this.dirty(),t}getItems(){return this._items}size(){return this._items.length}add(e){e.setOwner(this),this._items.push(e);return this._setCachedDataValid(!1),!0}deleteErasedItems(){this._items=this._items.filter(e=>!e.isErased())}markPostedItems(){for(const e of this._items)e.markAsPosted()}isNaN(){if(0===this._items.length)return!0;for(const e of this._items){if(!(0,r.isNaNable)(e))return!1;if(!e.isNaN())return!1}return!0}setOwner(e){this._owner=e}dirty(){null!==this._owner&&this._owner.dirty()}_unsetOwner(e){for(const t of e)t instanceof s.GraphicsObj&&t.unsetOwner(this)}_setCachedDataValid(e){e||this.dirty()}}},31738:(e,t,i)=>{"use strict";i.d(t,{GraphicsObj:()=>l});var s=i(216);class r{constructor(e,t,i,s){this._value=e,this._name=t,this._owner=i,this._comparer=void 0!==s?s:(e,t)=>null==e?null!=t:e===t}getName(){return this._name}set(e){const t=this._comparer(this._value,e);return t&&this._owner.dirty(),this._value=e,t}get(){return this._value}}class n{constructor(e,t,i){this._owner=null,this._value=e,this._name=t,this._owner=i}getName(){return this._name}set(e){return this._value!==e&&(this._value=e,null!==this._owner&&this._owner.dirty(),!0)}get(){return this._value}}class o extends r{constructor(e,t,i,s){super(e,t,i,s)}}class a{constructor(e){this._owner=e}createField(e,t){ +return new r(e,t,this)}createDoubleField(e,t){return new r(e,t,this,(e,t)=>!s.Std.equal(e,t))}createDoubleArrayField(e,t){return new o(e,t,this,(e,t)=>{if(e===t)return!1;const i=e.length;if(t.length!==i)return!0;for(let r=0;r{"use strict";function s(e){return Boolean(e.isNaN)}i.d(t,{isNaNable:()=>s})},45548:(e,t,i)=>{"use strict";i.d(t,{JStudyDataUpdate:()=>d});var s=i(18317);class r{constructor(){this.isUpdate=!1,this.graphicsCmds=new s.GraphicsCmds,this._offsetsChanged=!1,this._disableGraphicsAndData=!1}isNaN(){return this.graphicsCmds.isNaN()}primitiveData(e){const t={};if(!this._disableGraphicsAndData){const i=this.graphicsCmds.primitiveData(e);null!==i&&(t.graphicsCmds=i)}return this.isUpdate&&(t.isUpdate=!0),void 0===t.graphicsCmds?void 0:t}disable(){this._disableGraphicsAndData=!0}checkForChangeAndResetChangedState(e){const t=this._offsetsChanged,i=this.graphicsCmds.isModified();this.graphicsCmds.setModified(!1),this._offsetsChanged=!1;return i||t||0!==e.length}}var n=i(80643),o=i(28329);function a(e){return Boolean(e.isPosted)}class l{isIgnoredObj(e,t){return l.isIgnoredObjDefault(e,t)}static isIgnoredObjDefault(e,t){if(void 0===t)return l.isIgnoredObjNaNable(e);const i=e[t];return l.isIgnoredByGeneralRules(e,t)||l.isIgnoredObjNaNable(i)||l.isIgnoredObjListOfNaNables(i)}static isIgnoredObjNaNable(e){return(0,o.isNaNable)(e)&&e.isNaN()}static isIgnoredObjListOfNaNables(e){if(!(0,n.isArray)(e))return!1;let t=!0;for(const i of e)if(!(0,o.isNaNable)(i)||!i.isNaN()){t=!1;break}return t}static isIgnoredObjPosted(e){return a(e)&&e.isPosted()}static isIgnoredObjErased(e){return a(e)&&e.isErased()}static isIgnoredByGeneralRules(e,t){const i=e[t];return(0,n.isArray)(i)&&0===i.length}}class c{isIgnoredObj(e,t){if(void 0===t)return l.isIgnoredObjDefault(e)||l.isIgnoredObjErased(e);const i=e[t];return l.isIgnoredObjDefault(e,t)||l.isIgnoredObjErased(i)}}class h{isIgnoredObj(e,t){if(void 0===t)return l.isIgnoredObjDefault(e)||l.isIgnoredObjErased(e)||l.isIgnoredObjPosted(e);const i=e[t] +;return l.isIgnoredObjDefault(e,t)||l.isIgnoredObjErased(i)||l.isIgnoredObjPosted(i)}}class d extends class extends class{constructor(e){this._dataObj=new r,this._isDirty=!1,this._eraseCmds=[],this._enableCmdDataStudy=e}init(e){this._dataObj.graphicsCmds.setCreate(e),this.update(!0)}dataObj(){return this._dataObj}setEraseCmds(e){this._eraseCmds=e}resetDirtyState(){this._isDirty=!1}disable(){this._dataObj.disable()}}{constructor(e){super(e),this._snapshotPredicate=new c,this._dataSnapShot={}}getData(){return this._dataSnapShot}getUpdate(){return this._isDirty?this._dataSnapShot:{}}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.create.deleteErasedObjs(),this._dataObj.graphicsCmds.erase=[new s.EraseAll]),this._makeSnapshot(),this._isDirty=!0)}_makeSnapshot(){this._json=this._dataObj.primitiveData(this._snapshotPredicate),this._dataSnapShot={json:this._json}}}{constructor(e){super(e),this._updatePredicate=new h,this._sendShapshotOnly=!0,this._isFirstNotForcedUpdate=!0}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=[new s.EraseAll]),this._dataObj.isUpdate=!0,this._makeSnapshot(),null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=this._eraseCmds),this._dataObj.isUpdate=!0,this._jsonUpdate=this._dataObj.primitiveData(this._updatePredicate),null!==this._dataObj.graphicsCmds.create&&this._dataObj.graphicsCmds.create.deleteErasedAndMarkPostedObjs(),this._sendShapshotOnly=e||this._isFirstNotForcedUpdate,this._isFirstNotForcedUpdate=Boolean(e),this._isDirty=!0)}getUpdate(){return this._isDirty?this._enableCmdDataStudy?{json:this._sendShapshotOnly?this._json:void 0,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{json:this._json,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{}}}},34574:(e,t,i)=>{"use strict";i.d(t,{StudyGraphicsData:()=>r,Container:()=>n});var s=i(88537);class r{constructor(){this._horizlines=[],this._hhists=[],this._polygons=[],this._vertlines=[],this._containersCache=[],this._containerNamesCache=[],this._containersMapCache=new Map,this._addToCache("horizlines",this._horizlines),this._addToCache("hhists",this._hhists),this._addToCache("polygons",this._polygons),this._addToCache("vertlines",this._vertlines)}primitiveData(e){const t={};let i=!1;for(const s of this._containerNamesCache){const r=[],n=this.getObjsContainer(s);for(const t of n){if(t.isNaN())continue;const i=t.primitiveData(e);i.data.length>0&&r.push(i)}r.length>0&&(t[s]=r,i=!0)}return i?t:null}deleteErasedAndMarkPostedObjs(){this.forEachList(e=>{e.deleteErasedItems(),e.markPostedItems()})}deleteErasedObjs(){this.forEachList(e=>e.deleteErasedItems())}getObjsContainer(e){return(0,s.ensureDefined)(this._containersMapCache.get(e))}forEachList(e){for(const t of this._containersCache)for(const i of t)e(i.data)}_addToCache(e,t){this._containersCache.push(t),this._containerNamesCache.push(e), +this._containersMapCache.set(e,t)}}class n{constructor(e,t){this.styleId=e,this.data=t}isNaN(){return this.data.isNaN()}primitiveData(e){return{styleId:this.styleId,data:this.data.primitivesData(e)}}}},27595:(e,t,i)=>{"use strict";const s=i(45112).getHexColorByName;var r=i(216);const n=s("color-ripe-red-100"),o=s("color-ripe-red-200"),a=s("color-ripe-red-500"),l=s("color-ripe-red-900"),c=s("color-ripe-red-a200"),h=s("color-minty-green-100"),d=s("color-minty-green-400"),u=s("color-minty-green-500");JSServer.studyLibrary=[{name:"Accumulation/Distribution",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Accumulation/Distribution",shortDescription:"Accum/Dist",is_price_study:!1,inputs:[],id:"Accumulation/Distribution@tv-basicstudies-1",scriptIdPart:"",name:"Accumulation/Distribution",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,s){return r.Std.or(r.Std.and(r.Std.eq(e,t),r.Std.eq(e,i)),r.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*s},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0(r.Std.close(this._context),r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context));return[r.Std.cum(i,this._context)]}}},{name:"Accumulative Swing Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ASI",histogramBase:0,joinPoints:!1}},description:"Accumulative Swing Index",shortDescription:"ASI",is_price_study:!1,inputs:[{id:"in_0",name:"Limit Move Value",defval:10,type:"float",min:.1,max:1e5}],id:"Accumulative Swing Index@tv-basicstudies-1",scriptIdPart:"",name:"Accumulative Swing Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){var i=t.new_var(r.Std.open(t)),s=t.new_var(r.Std.high(t)),n=t.new_var(r.Std.low(t)),o=t.new_var(r.Std.close(t)),a=r.Std.abs(s-o.get(1)),l=r.Std.abs(n-o.get(1)),c=r.Std.abs(s-n),h=r.Std.abs(o.get(1)-i.get(1)),d=r.Std.max(a,l),u=r.Std.iff(a>=r.Std.max(l,c),a-.5*l+.25*h,r.Std.iff(l>=r.Std.max(a,c),l-.5*a+.25*h,c+.25*h));return r.Std.iff(0===u,0,(o-o.get(1)+.5*(o-i)+.25*(o.get(1)-i.get(1)))/u*d/e*50)},this.f_1=function(e,t){var i=this.f_0(e,t);return r.Std.cum(i,t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);return[this.f_1(i,this._context)]}}},{name:"Advance/Decline",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Advance/Decline", +shortDescription:"AD",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Advance/Decline@tv-basicstudies-1",scriptIdPart:"",name:"Advance/Decline",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return r.Std.gt(e,t)},this.f_1=function(e,t){return r.Std.lt(e,t)},this.f_2=function(e,t){return 0===t?e:e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.open(this._context)),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=this.f_1(r.Std.close(this._context),r.Std.open(this._context)),l=this._context.new_var(a),c=r.Std.sum(l,i,this._context);return[this.f_2(o,c)]}}},{name:"Arnaud Legoux Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:.85,in_2:6}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Arnaud Legoux Moving Average",shortDescription:"ALMA",is_price_study:!0,inputs:[{id:"in_0",name:"Window Size",defval:9,type:"integer",min:0,max:5e3},{id:"in_1",name:"Offset",defval:.85,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"Sigma",defval:6,type:"float",min:-1e12,max:1e12}],id:"Arnaud Legoux Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Arnaud Legoux Moving Average",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2),a=this._context.new_var(i);return[r.Std.alma(a,s,n,o)]}}},{name:"Aroon",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FB8C00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Upper",histogramBase:0,joinPoints:!1},plot_1:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Aroon",shortDescription:"Aroon",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Aroon@tv-basicstudies-1",scriptIdPart:"",name:"Aroon",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e+t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.high(this._context),n=i+1,o=this._context.new_var(s),a=r.Std.highestbars(o,n,this._context),l=this.f_0(a,i),c=r.Std.low(this._context),h=this._context.new_var(c),d=r.Std.lowestbars(h,n,this._context);return[l,this.f_0(d,i)]}}},{name:"Average Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"AveragePrice@tv-basicstudies-1",scriptIdPart:"",name:"Average Price",description:"Average Price", +shortDescription:"Average Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.Std.ohlc4(this._context)]}}},{name:"Average Directional Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ADX",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Average Directional Index",shortDescription:"ADX",is_price_study:!1,inputs:[{id:"in_0",name:"ADX Smoothing",defval:14,type:"integer",min:-1e12,max:1e12},{id:"in_1",name:"DI Length",defval:14,type:"integer",min:-1e12,max:1e12}],id:"average_directional_Index@tv-basicstudies-1",scriptIdPart:"",name:"Average Directional Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){var t=this._context.new_var(r.Std.high(this._context)),i=r.Std.change(t),s=this._context.new_var(r.Std.low(this._context)),n=-r.Std.change(s),o=this._context.new_var(r.Std.tr(void 0,this._context)),a=r.Std.rma(o,e,this._context),l=this._context.new_var(r.Std.and(r.Std.gt(i,n),r.Std.gt(i,0))?i:0),c=r.Std.fixnan(100*r.Std.rma(l,e,this._context)/a,this._context),h=this._context.new_var(r.Std.and(r.Std.gt(n,i),r.Std.gt(n,0))?n:0);return[c,r.Std.fixnan(100*r.Std.rma(h,e,this._context)/a,this._context)]},this.f_1=function(e,t){var i=this.f_0(e),s=i[0],n=i[1],o=s+n,a=this._context.new_var(r.Std.abs(s-n)/(r.Std.eq(o,0)?1:o));return[100*r.Std.rma(a,t,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)),this.f_1(this._input(1),this._input(0))}}},{name:"Average True Range",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:l}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Average True Range",shortDescription:"ATR",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Average True Range@tv-basicstudies-1",scriptIdPart:"",name:"Average True Range",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0);return[r.Std.atr(i,e)]}}},{name:"Awesome Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:a,width:1,style:0},1:{color:u,width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1", +palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Awesome Oscillator",shortDescription:"AO",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}}}},inputs:[],id:"Awesome Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Awesome Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){return r.Std.le(e,0)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.hl2(this._context),s=this._context.new_var(i),n=r.Std.sma(s,5,this._context),o=this._context.new_var(i),a=r.Std.sma(o,34,this._context),l=this.f_0(n,a),c=l,h=this._context.new_var(l),d=r.Std.change(h);return[c,this.f_1(d)]}}},{name:"Balance of Power",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Balance of Power",shortDescription:"Balance of Power",is_price_study:!1,inputs:[],id:"Balance of Power@tv-basicstudies-1",scriptIdPart:"",name:"Balance of Power",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,s){return(e-t)/(i-s)},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0(r.Std.close(this._context),r.Std.open(this._context),r.Std.high(this._context),r.Std.low(this._context))]}}},{name:"Bollinger Bands",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Median",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands",shortDescription:"BB",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t +;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c);return[a,this.f_1(a,h),this.f_2(a,h)]}}},{name:"Bollinger Bands %B",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:d}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:1},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],filledAreasStyle:{fill_0:{color:"#26A69A",transparency:90,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands %B",shortDescription:"BB %B",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands %B@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands %B",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/(i-t)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c),d=this.f_1(a,h),u=this.f_2(a,h);return[this.f_3(i,u,d)]}}},{name:"Bollinger Bands Width",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands Width",shortDescription:"BBW",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands Width@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands Width",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/i},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.stdev(l,s,this._context),h=this.f_0(n,c),d=this.f_1(a,h),u=this.f_2(a,h);return[this.f_3(d,u,a)]}}},{name:"Chaikin Money Flow",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{ +styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Money Flow",shortDescription:"CMF",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Chaikin Money Flow@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Money Flow",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,s){return r.Std.or(r.Std.and(r.Std.eq(e,t),r.Std.eq(e,i)),r.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*s},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context)),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=r.Std.volume(this._context),l=this._context.new_var(a),c=r.Std.sum(l,i,this._context);return[this.f_1(o,c)]}}},{name:"Chaikin Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#EC407A"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:3,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Oscillator",shortDescription:"Chaikin Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"short",defval:3,type:"integer",min:1,max:2e3},{id:"in_1",name:"long",defval:10,type:"integer",min:1,max:2e3}],id:"Chaikin Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Oscillator",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.accdist(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Chaikin Volatility",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Chaikin Volatility@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Volatility",description:"Chaikin Volatility",shortDescription:"Chaikin Volatility",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#AB47BC"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{periods:10,rocLookback:10}},styles:{plot_0:{title:"Plot"}},bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"periods",type:"integer",name:"Periods"},{id:"rocLookback",type:"integer",name:"Rate of Change Lookback"}],format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t, +this.period=this._input(0),this.rocLookback=this._input(1)},this.main=function(e,t){this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this.period+this.rocLookback);var i=this._context.new_var(r.Std.high(this._context)-r.Std.low(this._context)),s=this._context.new_var(r.Std.ema(i,this.period,this._context));return[r.Std.roc(s,this.rocLookback)]}}},{name:"Chande Kroll Stop",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:10,in_1:1,in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Long",histogramBase:0,joinPoints:!1},plot_1:{title:"Short",histogramBase:0,joinPoints:!1}},description:"Chande Kroll Stop",shortDescription:"Chande Kroll Stop",is_price_study:!0,inputs:[{id:"in_0",name:"p",defval:10,type:"integer",min:1,max:4999},{id:"in_1",name:"x",defval:1,type:"integer",min:1,max:1e12},{id:"in_2",name:"q",defval:9,type:"integer",min:1,max:1e12}],id:"Chande Kroll Stop@tv-basicstudies-1",scriptIdPart:"",name:"Chande Kroll Stop",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return e-t*i},this.f_1=function(e,t,i){return e+t*i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=r.Std.high(this._context),a=this._context.new_var(o),l=r.Std.highest(a,i,this._context),c=r.Std.atr(i,this._context),h=this.f_0(l,s,c),d=this._context.new_var(o),u=r.Std.lowest(d,i,this._context),p=this.f_1(u,s,c),_=this._context.new_var(h),m=r.Std.highest(_,n,this._context),g=this._context.new_var(p);return[r.Std.lowest(g,n,this._context),m]}}},{name:"Chande Momentum Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chande Momentum Oscillator",shortDescription:"ChandeMO",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:2e3}],id:"Chande Momentum Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chande Momentum Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e){return r.Std.ge(e,0)?e:0},this.f_1=function(e){return r.Std.ge(e,0)?0:-e},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return this.f_2(e-t,e+t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.change(n),a=this.f_0(o),l=this.f_1(o),c=this._context.new_var(a),h=r.Std.sum(c,i,this._context),d=this._context.new_var(l),u=r.Std.sum(d,i,this._context);return[this.f_3(h,u)]}}},{name:"Chop Zone",metainfo:{_metainfoVersion:52, +isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:"#26C6DA",width:1,style:0},1:{color:"#43A047",width:1,style:0},2:{color:"#A5D6A7",width:1,style:0},3:{color:u,width:1,style:0},4:{color:"#D50000",width:1,style:0},5:{color:"#E91E63",width:1,style:0},6:{color:"#FF6D00",width:1,style:0},7:{color:"#FFB74D",width:1,style:0},8:{color:"#FDD835",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Chop Zone",shortDescription:"Chop Zone",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{name:"Color 2"},3:{name:"Color 3"},4:{name:"Color 4"},5:{name:"Color 5"},6:{name:"Color 6"},7:{name:"Color 7"},8:{name:"Color 8"}},valToIndex:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8}}},inputs:[],id:"chop_zone@tv-basicstudies-1",scriptIdPart:"",name:"Chop Zone",format:{precision:0,type:"price"}},constructor:function(){this.f_0=function(){var e=r.Std.close(this._context),t=r.Std.hlc3(this._context),i=this._context.new_var(r.Std.high(this._context)),s=r.Std.highest(i,30,this._context),n=r.Std.lowest(i,30,this._context),o=25/(s-n)*n,a=this._context.new_var(e),l=this._context.new_var(r.Std.ema(a,34,this._context)),c=(l.get(1)-l.get(0))/t*o,h=r.Std.sqrt(1+c*c),d=r.Std.round(180*r.Std.acos(1/h)/3.141592653589793),u=r.Std.iff(r.Std.gt(c,0),-d,d),p=r.Std.and(r.Std.gt(u,-2.14),r.Std.le(u,-.71))?7:8,_=r.Std.and(r.Std.gt(u,-3.57),r.Std.le(u,-2.14))?6:p,m=r.Std.and(r.Std.gt(u,-5),r.Std.le(u,-3.57))?5:_,g=r.Std.le(u,-5)?4:m,f=r.Std.and(r.Std.lt(u,2.14),r.Std.ge(u,.71))?3:g,v=r.Std.and(r.Std.lt(u,3.57),r.Std.ge(u,2.14))?2:f,S=r.Std.and(r.Std.lt(u,5),r.Std.ge(u,3.57))?1:v;return[1,r.Std.ge(u,5)?0:S]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Choppiness Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:61.8},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:38.2}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Choppiness Index",shortDescription:"CHOP",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Choppiness Index@tv-basicstudies-1",scriptIdPart:"",name:"Choppiness Index",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t,i,s){ +return 100*r.Std.log10(e/(t-i))/s},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.atr(1,this._context),n=this._context.new_var(s),o=r.Std.sum(n,i,this._context),a=r.Std.high(this._context),l=this._context.new_var(a),c=r.Std.highest(l,i,this._context),h=r.Std.low(this._context),d=this._context.new_var(h),u=r.Std.lowest(d,i,this._context),p=r.Std.log10(i);return[this.f_0(o,c,u,p)]}}},{name:"Commodity Channel Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:100},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-100}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:20,smoothingLine:"SMA",smoothingLength:20}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Commodity Channel Index",shortDescription:"CCI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:20,type:"integer",min:1,max:1e4}],id:"Commodity Channel Index@tv-basicstudies-1",scriptIdPart:"",name:"Commodity Channel Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return(e-t)/(.015*i)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.hlc3(this._context),s=this._input(0),n=this._input(1),o=this._input(2);this._context.setMinimumAdditionalDepth(s+o);var a,l=this._context.new_var(i),c=r.Std.sma(l,s,this._context),h=this._context.new_var(i),d=r.Std.dev(h,s,this._context),u=this.f_0(i,c,d),p=this._context.new_var(u);return"EMA"===n?a=r.Std.ema(p,o,this._context):"WMA"===n?a=r.Std.wma(p,o,this._context):"SMA"===n&&(a=r.Std.sma(p,o,this._context)),[u,a]}}},{name:"Connors RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:3,in_1:2,in_2:100}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"CRSI",histogramBase:0,joinPoints:!1}},description:"Connors RSI",shortDescription:"CRSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1", +name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"RSI Length",defval:3,type:"integer",min:1},{id:"in_1",name:"UpDown Length",defval:2,type:"integer",min:1},{id:"in_2",name:"ROC Length",defval:100,type:"integer",min:1}],id:"Connors RSI@tv-basicstudies-1",scriptIdPart:"",name:"Connors RSI",format:{precision:2,type:"price"}},constructor:function(){var e;this.f_1=function(e,t,i){var s=i.new_var(r.Std.max(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_2=function(e,t,i){var s=i.new_var(-r.Std.min(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_3=(e=0,function(t){var i=t.get(0),s=t.get(1);return e=i===s?0:i>s?r.Std.nz(e)<=0?1:r.Std.nz(e)+1:r.Std.nz(e)>=0?-1:r.Std.nz(e)-1,this._context.new_var(e)}),this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._context.new_var(i),n=this._input(0),o=this._input(1),a=this._input(2);this._context.setMinimumAdditionalDepth(a);var l=r.Std.rsi(this.f_1(s,n,this._context),this.f_2(s,n,this._context)),c=this.f_3(s),h=r.Std.rsi(this.f_1(c,o,this._context),this.f_2(c,o,this._context)),d=this._context.new_var(r.Std.roc(s,1)),u=r.Std.percentrank(d,a);return[r.Std.avg(l,h,u)]}}},{name:"Coppock Curve",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10,in_1:14,in_2:11}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Coppock Curve",shortDescription:"Coppock Curve",is_price_study:!1,inputs:[{id:"in_0",name:"WMA Length",defval:10,type:"integer",min:-1e12,max:5e3},{id:"in_1",name:"Long RoC Length",defval:14,type:"integer",min:1,max:4999},{id:"in_2",name:"Short RoC Length",defval:11,type:"integer",min:1,max:4999}],id:"Coppock Curve@tv-basicstudies-1",scriptIdPart:"",name:"Coppock Curve",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e+t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+Math.max(s,n));var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.roc(a,s),c=this._context.new_var(o),h=r.Std.roc(c,n),d=this.f_0(l,h),u=this._context.new_var(d);return[r.Std.wma(u,i,this._context)]}}},{name:"Correlation Coeff",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:4,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:"",in_1:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Correlation Coefficient",shortDescription:"CC",is_price_study:!1,inputs:[{id:"in_0",name:"sym",defval:"",type:"symbol"},{id:"in_1",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Correlation Coeff@tv-basicstudies-1",scriptIdPart:"", +name:"Correlation Coeff",format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),r.Std.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_unlimited_var(this._context.symbol.time),s=(this._input(0),r.Std.period(this._context),r.Std.close(this._context)),n=this._input(1);this._context.select_sym(1);var o=this._context.new_unlimited_var(this._context.symbol.time),a=r.Std.close(this._context),l=this._context.new_unlimited_var(a);this._context.select_sym(0);var c=l.adopt(o,i,0),h=this._context.new_var(s),d=this._context.new_var(c);return[r.Std.correlation(h,d,n,this._context)]}}},{name:"Correlation - Log",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Correlation - Log@tv-basicstudies-1",scriptIdPart:"",name:"Correlation - Log",description:"Correlation - Log",shortDescription:"Correlation - Log",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{instrument:"",instrument2:"",periods:25}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"instrument",name:"Instrument 1",type:"symbol",defval:"",confirm:!0},{id:"instrument2",name:"Instrument 2",type:"symbol",defval:"",confirm:!0},{id:"periods",name:"Periods",type:"integer",defval:25}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),r.Std.period(this._context)),this._context.new_sym(this._input(1),r.Std.period(this._context)),this.period=this._input(2)},this.correlationLog=function(e,t,i,s){var n=r.Std.sma(e,i,s),o=r.Std.sma(t,i,s),a=s.new_var(e.get()*t.get());return(r.Std.sma(a,i,s)-n*o)/Math.sqrt(r.Std.variance2(e,n,i)*r.Std.variance2(t,o,i))},this.main=function(e,t){this._context=e,this._input=t,this._context.select_sym(1);var i=this._context.new_var(this._context.symbol.time);this._context.select_sym(2);var s=this._context.new_var(r.Std.close(this._context)),n=this._context.new_var(r.Std.log(s.get()/s.get(1))),o=this._context.new_var(this._context.symbol.time);this._context.select_sym(1);var a=this._context.new_var(r.Std.close(this._context)),l=this._context.new_var(r.Std.log(a.get()/a.get(1))),c=this._context.new_var(n.adopt(o,i,0)),h=this.correlationLog(l,c,this.period,this._context);return[r.Std.round(1e3*h)/1e3]}}},{name:"Detrended Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:21,in_1:!1}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"DPO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Detrended Price Oscillator",shortDescription:"DPO",is_price_study:!1,is_hidden_study:!1,id:"detrended_price_oscillator@tv-basicstudies-1", +bands:[{id:"hline_0",name:"Zero",isHidden:!1}],inputs:[{id:"in_0",name:"Period",defval:21,type:"integer",min:1,max:1e12},{id:"in_1",name:"isCentered",defval:!1,type:"bool"}],scriptIdPart:"",name:"Detrended Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._input(1),i=Math.floor(e/2+1);this._context.setMinimumAdditionalDepth(e+i);var s=this._context.new_var(r.Std.close(this._context)),n=this._context.new_var(r.Std.sma(s,e,this._context)),o=this._context.new_var(r.Std.close(this._context)).get(i)-n,a=r.Std.close(this._context)-n.get(i);return[t?o:a,t?-i:0]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:i[1]}]}}},{name:"Directional Movement Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_3:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FFA726"},plot_4:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#ab47bc"}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"},{id:"plot_3",type:"line"},{id:"plot_4",type:"line"}],styles:{plot_0:{title:"+DI",histogramBase:0,joinPoints:!1},plot_1:{title:"-DI",histogramBase:0,joinPoints:!1},plot_2:{title:"DX",histogramBase:0,joinPoints:!1},plot_3:{title:"ADX",histogramBase:0,joinPoints:!1},plot_4:{title:"ADXR",histogramBase:0,joinPoints:!1}},description:"Directional Movement",shortDescription:"DMI",is_price_study:!1,inputs:[{id:"in_0",name:"DI Length",defval:14,type:"integer",min:1,max:2e3},{id:"in_1",name:"ADX Smoothing",defval:14,type:"integer",min:1,max:50}],id:"Directional Movement Index@tv-basicstudies-1",scriptIdPart:"",name:"Directional Movement Index",format:{precision:4,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1);return this._context.setMinimumAdditionalDepth(2*i+s),r.Std.dmi(i,s,this._context)}}},{name:"Donchian Channels",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Lower",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0, +joinPoints:!1},plot_2:{title:"Basis",histogramBase:0,joinPoints:!1}},description:"Donchian Channels",shortDescription:"DC",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_0",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Donchian Channels@tv-basicstudies-1",scriptIdPart:"",name:"Donchian Channels",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.low(this._context),n=this._context.new_var(s),o=r.Std.lowest(n,i,this._context),a=r.Std.high(this._context),l=this._context.new_var(a),c=r.Std.highest(l,i,this._context);return[o,c,r.Std.avg(c,o)]}}},{name:"Double Exponential Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Double EMA",shortDescription:"DEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Double Exponential Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Double Exponential Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return 2*e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(2*i);var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context);return[this.f_0(o,l)]}}},{name:"Ease of Movement",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:1e4,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Ease Of Movement",shortDescription:"EOM",is_price_study:!1,inputs:[{id:"in_0",name:"Divisor",defval:1e4,type:"integer",min:1,max:1e9},{id:"in_1",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Ease of Movement@tv-basicstudies-1",scriptIdPart:"",name:"Ease of Movement",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,s,r){return e*t*(i-s)/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.hl2(this._context),o=this._context.new_var(n),a=r.Std.change(o),l=this.f_0(i,a,r.Std.high(this._context),r.Std.low(this._context),r.Std.volume(this._context)),c=this._context.new_var(l);return[r.Std.sma(c,s,this._context)]}}},{name:"Elders Force Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}], +inputs:{in_0:13}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Elder's Force Index",shortDescription:"EFI",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:13,type:"integer",min:1,max:2e3}],id:"Elders Force Index@tv-basicstudies-1",scriptIdPart:"",name:"Elders Force Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.change(n),a=this.f_0(o,r.Std.volume(this._context)),l=this._context.new_var(a);return[r.Std.ema(l,i,this._context)]}}},{name:"EMA Cross",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"},plot_2:{linestyle:0,linewidth:4,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:26}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Short",histogramBase:0,joinPoints:!1},plot_1:{title:"Long",histogramBase:0,joinPoints:!1},plot_2:{title:"Crosses",histogramBase:0,joinPoints:!1}},description:"EMA Cross",shortDescription:"EMA Cross",is_price_study:!0,inputs:[{id:"in_0",name:"Short",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Long",defval:26,type:"integer",min:1,max:2e3}],id:"EMA Cross@tv-basicstudies-1",scriptIdPart:"",name:"EMA Cross",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e?t:r.Std.na()},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.close(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context),h=a,d=c,u=r.Std.cross(a,c,this._context);return[h,d,this.f_0(u,a)]}}},{name:"Envelopes",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:10,in_2:10,in_3:"Simple",in_4:"close"}},plots:[{id:"plot_1",type:"line"},{id:"plot_0",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Average",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Envelopes",shortDescription:"Envelopes",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}], +inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Upper Percentage",defval:2,type:"float",min:0},{id:"in_2",name:"Lower Percentage",defval:2,type:"float",min:0},{id:"in_3",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]},{id:"in_4",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"Envelope@tv-basicstudies-1",scriptIdPart:"",name:"Envelopes",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*(1+t)},this.f_1=function(e,t){return e*(1-t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std[this._input(4)](this._context)),s=r.Std.sma(i,this._input(0),this._context);return"Exponential"===this._input(3)?s=r.Std.ema(i,this._input(0),this._context):"Weighted"===this._input(3)&&(s=r.Std.wma(i,this._input(0),this._context)),[this.f_0(s,this._input(1)/100),s,this.f_1(s,this._input(2)/100)]}}},{name:"Standard Error",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Standard Error@tv-basicstudies-1",scriptIdPart:"",name:"Standard Error",description:"Standard Error",shortDescription:"Standard Error",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{length:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"length",type:"integer",name:"Length",min:3}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0)},this.main=function(e,t){this._context=e,this._input=t;for(var i,s,n=this._context.new_var(r.Std.close(this._context)),o=0,a=0,l=0;l0?1:3,i=r.Std.change(this._context.new_var(e));return t-(r.Std.le(i,0)?0:1)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(2)](this._context),s=this._input(0),n=this._input(1),o=this._input(3);this._context.setMinimumAdditionalDepth(Math.max(s,n)+o);var a=this._context.new_var(i),l=r.Std.ema(a,s,this._context),c=this._context.new_var(i),h=r.Std.ema(c,n,this._context),d=this.f_0(l,h),u=this._context.new_var(d),p=r.Std.ema(u,o,this._context),_=this.f_0(d,p);return[_,d,p,this.f_1(_)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{length:9, +source:"close",offset:0,smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential",shortDescription:"EMA",is_price_study:!0,inputs:[{id:"length",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"source",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"offset",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._input(3),a=this._input(4);this._context.setMinimumAdditionalDepth(s+a);var l,c=this._context.new_var(i),h=r.Std.ema(c,s,this._context),d=this._context.new_var(h);return"EMA"===o?l=r.Std.ema(d,a,this._context):"WMA"===o?l=r.Std.wma(d,a,this._context):"SMA"===o&&(l=r.Std.sma(d,a,this._context)),[{value:h,offset:n},{value:l,offset:n}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:r.Std.wma(o,s,this._context),offset:n}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{firstPeriods:14,secondPeriods:21, +method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n=this._context.new_var(r.Std.close(this._context));return"Exponential"===this._input(2)?(i=r.Std.ema(n,this._input(0),this._context),s=r.Std.ema(n,this._input(1),this._context)):"Weighted"===this._input(2)?(i=r.Std.wma(n,this._input(0),this._context),s=r.Std.wma(n,this._input(1),this._context)):(i=r.Std.sma(n,this._input(0),this._context),s=r.Std.sma(n,this._input(1),this._context)),[i,s]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n,o=this._context.new_var(r.Std.close(this._context));return"Exponential"===this._input(3)?(i=r.Std.ema(o,this._input(0),this._context),s=r.Std.ema(o,this._input(1),this._context),n=r.Std.ema(o,this._input(2),this._context)):"Weighted"===this._input(3)?(i=r.Std.wma(o,this._input(0),this._context),s=r.Std.wma(o,this._input(1),this._context),n=r.Std.wma(o,this._input(2),this._context)):(i=r.Std.sma(o,this._input(0),this._context),s=r.Std.sma(o,this._input(1),this._context),n=r.Std.sma(o,this._input(2),this._context)),[i,s,n]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0, +visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:2,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0)},this.ama=function(e,t){var i=this.periods,s=this._context.new_var(),n=e.get(),o=r.Std.stdev(t,i,this._context),a=r.Std.log(n/e.get(i))/(o*Math.sqrt(i)),l=.1*Math.abs(a),c=(n-s.get(1))*l+s.get(1);return s.set(isNaN(c)?n:c),c},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std.close(this._context)),s=this._context.new_var(r.Std.log(i.get()/i.get(1)));return[this.ama(i,s)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],s=0,r=1;r<=this.periods;++r){var n=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(n),s+=n}this.hmaFactors=i,this.hmaFactorsSum=s},this.hma=function(e){for(var t=this.periods,i=0,s=0;sthis._context.new_var(s).get(1)?1:0,[100*r.Std.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume", +shortDescription:"Net Volume",is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.Std.gt(e,0)?t:r.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._context.new_var(i),n=r.Std.change(s);return[this.f_0(n,r.Std.volume(this._context),n)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4}],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.Std.gt(e,0)?t:r.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.close(this._context),o=this._context.new_var(n),a=r.Std.change(o),l=this.f_0(a,r.Std.volume(this._context),a),c=r.Std.cum(l,this._context);this._context.setMinimumAdditionalDepth(s);var h,d=this._context.new_var(c);return"EMA"===i?h=r.Std.ema(d,s,this._context):"WMA"===i?h=r.Std.wma(d,s,this._context):"SMA"===i&&(h=r.Std.sma(d,s,this._context)),[c,h]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);return[r.Std.sar(i,s,n,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1, +plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}],id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.high(this._context),s=this._context.new_var(i),n=r.Std.low(this._context),o=this._context.new_var(n),a=this._input(0),l=this._input(1),c=r.Std.highest(s,a,this._context),h=r.Std.lowest(o,a,this._context);return[{value:c,offset:l},{value:h,offset:l},{value:r.Std.avg(c,h),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u}},inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.Std.sma(o,s,this._context),l=this._context.new_var(i),c=r.Std.sma(l,n,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend",format:{type:"volume"}},constructor:function(){this.f_0=function(){var e=this._context.new_var(r.Std.close(this._context));return[r.Std.cum(r.Std.change(e)/e.get(1)*r.Std.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rate Of Change",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{ +styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ROC",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Rate Of Change",shortDescription:"ROC",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1}],inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e12}],id:"rate_of_change@tv-basicstudies-1",scriptIdPart:"",name:"Rate Of Change",format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.Std.close(this._context)),s=this._input(0);return[100*(i.get(0)-i.get(s))/i.get(s)]}}},{name:"Relative Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{length:14,smoothingLine:"SMA",smoothingLength:14}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Relative Strength Index",shortDescription:"RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"length",name:"Length",defval:14,type:"integer",min:1,max:2e3},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:14,type:"integer",min:1,max:1e4}],id:"Relative Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Strength Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return r.Std.max(e,0)},this.f_1=function(e){return-r.Std.min(e,0)},this.f_2=function(e,t){return r.Std.eq(e,0)?100:r.Std.eq(t,0)?0:100-100/(1+t/e)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2);this._context.setMinimumAdditionalDepth(s+o);var a,l=this._context.new_var(i),c=r.Std.change(l),h=this.f_0(c),d=this._context.new_var(h),u=r.Std.rma(d,s,this._context),p=this.f_1(c),_=this._context.new_var(p),m=r.Std.rma(_,s,this._context),g=this.f_2(m,u),f=this._context.new_var(g);return"EMA"===n?a=r.Std.ema(f,o,this._context):"WMA"===n?a=r.Std.wma(f,o,this._context):"SMA"===n&&(a=r.Std.sma(f,o,this._context)),[{value:g},{value:a}]}}},{name:"Relative Vigor Index",metainfo:{_metainfoVersion:52,isTVScript:!1, +isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"RVGI",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"Relative Vigor Index",shortDescription:"RVGI",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Vigor Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Vigor Index",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.Std.close(this._context),r.Std.open(this._context)),n=this._context.new_var(s),o=r.Std.swma(n,this._context),a=this._context.new_var(o),l=r.Std.sum(a,i,this._context),c=this.f_0(r.Std.high(this._context),r.Std.low(this._context)),h=this._context.new_var(c),d=r.Std.swma(h,this._context),u=this._context.new_var(d),p=r.Std.sum(u,i,this._context),_=this.f_1(l,p),m=this._context.new_var(_);return[_,r.Std.swma(m,this._context)]}}},{name:"Relative Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Volatility Index",shortDescription:"RVI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Volatility Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return r.Std.le(e,0)?0:t},this.f_1=function(e,t){return r.Std.gt(e,0)?0:t},this.f_2=function(e,t){return e/(e+t)*100},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(i+12);var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.stdev(n,i,this._context),a=this._context.new_var(s),l=r.Std.change(a),c=this.f_0(l,o),h=this._context.new_var(c),d=r.Std.ema(h,14,this._context),u=this.f_1(l,o),p=this._context.new_var(u),_=r.Std.ema(p,14,this._context);return[this.f_2(d,_)]}}},{name:"SMI Ergodic Indicator/Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{ +styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{in_0:5,in_1:20,in_2:5}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Indicator",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1},plot_2:{title:"Oscillator",histogramBase:0,joinPoints:!1}},description:"SMI Ergodic Indicator/Oscillator",shortDescription:"SMIIO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:20,type:"integer",min:1,max:2e3},{id:"in_2",name:"siglen",defval:5,type:"integer",min:1,max:2e3}],id:"SMI Ergodic Indicator/Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"SMI Ergodic Indicator/Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.tsi(a,i,s,this._context),c=this._context.new_var(l),h=r.Std.ema(c,n,this._context);return[l,h,this.f_0(l,h)]}}},{name:"Smoothed Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#673AB7"}},inputs:{in_0:7,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Smoothed Moving Average",shortDescription:"SMMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"smoothed_moving_average@tv-basicstudies-1",scriptIdPart:"",name:"Smoothed Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=r.Std[this._input(1)](this._context);return[r.Std.smma(t,e,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Standard Deviation",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Standard Deviation@tv-basicstudies-1",scriptIdPart:"",name:"Standard Deviation",description:"Standard Deviation",shortDescription:"Standard Deviation",is_price_study:!1,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:u}},inputs:{periods:5,deviations:1}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"deviations",name:"Deviations",type:"float"}],format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){ +this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._context.new_var(r.Std.close(this._context));return[r.Std.stdev(n,i,this._context)*s]}}},{name:"Stochastic",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:1,in_2:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic",shortDescription:"Stoch",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"K",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"D",defval:1,type:"integer",min:1,max:1e4},{id:"in_2",name:"smooth",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic",format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.Std.close(this._context),a=r.Std.high(this._context),l=r.Std.low(this._context),c=this._context.new_var(o),h=this._context.new_var(a),d=this._context.new_var(l),u=r.Std.stoch(c,h,d,i,this._context),p=this._context.new_var(u),_=r.Std.sma(p,s,this._context),m=this._context.new_var(_);return[_,r.Std.sma(m,n,this._context)]}}},{name:"Stochastic RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:14,in_2:3,in_3:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic RSI",shortDescription:"Stoch RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"lengthRSI",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"lengthStoch",defval:14,type:"integer",min:1, +max:1e4},{id:"in_2",name:"smoothK",defval:3,type:"integer",min:1,max:1e4},{id:"in_3",name:"smoothD",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic RSI@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic RSI",format:{precision:2,type:"price"}},constructor:function(){this.f_1=function(e,t,i){var s=i.new_var(r.Std.max(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.f_2=function(e,t,i){var s=i.new_var(-r.Std.min(r.Std.change(e),0));return r.Std.rma(s,t,i)},this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3);e.setMinimumAdditionalDepth(s+n+o+a);var l=this._context.new_var(i),c=r.Std.rsi(this.f_1(l,s,this._context),this.f_2(l,s,this._context)),h=this._context.new_var(c),d=this._context.new_var(c),u=this._context.new_var(c),p=r.Std.stoch(h,d,u,n,this._context),_=this._context.new_var(p),m=r.Std.sma(_,o,this._context),g=this._context.new_var(m);return[m,r.Std.sma(g,a,this._context)]}}},{name:"TRIX",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:18}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"TRIX",histogramBase:0,joinPoints:!1}},description:"TRIX",shortDescription:"TRIX",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:18,type:"integer",min:1,max:2e3}],id:"TRIX@tv-basicstudies-1",scriptIdPart:"",name:"TRIX",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return r.Std.log(e)},this.f_1=function(e){return 1e4*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);e.setMinimumAdditionalDepth(3*i);var s=this.f_0(r.Std.close(this._context)),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context),c=this._context.new_var(l),h=r.Std.ema(c,i,this._context),d=this._context.new_var(h),u=r.Std.change(d);return[this.f_1(u)]}}},{name:"Triple EMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Triple EMA",shortDescription:"TEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Triple EMA@tv-basicstudies-1",scriptIdPart:"",name:"Triple EMA",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return 3*(e-t)+i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(3*i) +;var s=r.Std.close(this._context),n=this._context.new_var(s),o=r.Std.ema(n,i,this._context),a=this._context.new_var(o),l=r.Std.ema(a,i,this._context),c=this._context.new_var(l),h=r.Std.ema(c,i,this._context);return[this.f_0(o,l,h)]}}},{name:"True Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:25,in_1:13,in_2:13}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"True Strength Index",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"True Strength Index",shortDescription:"True Strength Index",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"long",defval:25,type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer",min:1,max:4999},{id:"in_2",name:"siglen",defval:13,type:"integer",min:1,max:4999}],id:"True Strength Indicator@tv-basicstudies-1",scriptIdPart:"",name:"True Strength Index",format:{precision:4,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)+this._input(2));var o=r.Std.close(this._context),a=this._context.new_var(o),l=r.Std.tsi(a,s,i,this._context),c=this._context.new_var(l);return[l,r.Std.ema(c,n,this._context)]}}},{name:"Trend Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Trend Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Trend Strength Index",description:"Trend Strength Index",shortDescription:"Trend Strength Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",type:"integer",name:"Periods"}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.invertedPeriod=1/this.period,this.sumX=(this.period-1)*this.period/2,this.sumXX=(this.period-1)*this.period*(2*this.period-1)/6,this.invertedPeriodSumXSumX=this.invertedPeriod*this.sumX*this.sumX},this.trendStrengthIndex=function(){for(var e=this._context.new_var(r.Std.close(this._context)),t=r.Std.sum(e,this.period,this._context),i=0,s=0,n=0;n0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{ +_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.Std.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){var s=this._context.new_var(e),n=this._context.new_var(t);return[r.Std.sum(s,i,this._context)/r.Std.sum(n,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),s=this._context.new_var(r.Std.close(this._context)),n=r.Std.max(r.Std.high(this._context),s.get(1)),o=this._context.new_var(r.Std.close(this._context)),a=r.Std.min(r.Std.low(this._context),o.get(1)),l=r.Std.close(this._context)-a,c=n-a,h=this.f_0(l,c,e),d=this.f_0(l,c,t),u=this.f_0(l,c,i);return[100*(4*h[0]+2*d[0]+u[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10,min:2},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252,min:1,max:366}],format:{precision:2,type:"percent"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var s=this.variance(e,t,i);return r.Std.sqrt(s)},this.variance=function(e,t,i){var s=r.Std.sma(e,t,i);return this.variance2(e,s,t)},this.variance2=function(e,t,i){var s,r,n=0 +;for(s=0;s0&&(l=.12*this.square(e.get()-s.get(1))/this.marketClosedPercentage+.88*l/(1-this.marketClosedPercentage)),l/=a,l*=this.secondsPerYear;var c=this._context.new_var(l);return 100*Math.sqrt(r.Std.sum(c,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null,this._context.setMinimumAdditionalDepth("Exponential"===this.maMethod?2*this.period+2:this.period)},this.computeATR=function(){var e=r.Std.high(this._context)-r.Std.low(this._context),t=r.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.Std.low(this._context);return this.tr=Math.max(e,t,i),"Exponential"===this.maMethod?this.atr=r.Std.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(r.Std.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(r.Std.close(this._context)),1===this.count)this.atr=r.Std.high(this._context)-r.Std.low(this._context),this.sic=r.Std.close(this._context);else if(this.countthis.sic&&(this.sic=r.Std.close(this._context))}else if(this.count===this.period){e=r.Std.high(this._context)-r.Std.low(this._context),t=r.Std.high(this._context)-this.bars[this.bars.length-2], +i=this.bars[this.bars.length-2]-r.Std.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period,r.Std.close(this._context)>this.sic&&(this.sic=r.Std.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var s=this.nextsar;"LONG"===this.position?r.Std.close(this._context)s?(this.position="LONG",this.sic=r.Std.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(r.Std.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=s}return this.count++,s},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0),[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP",format:{type:"inherit"}},constructor:function(){this.f_1=function(e){e.hist=null,e.add_hist()},this.init=function(e,t){this._isNewSession=null},this.main=function(e,t){this._context=e,this._input=t;var i=e.new_var(),s=e.new_var(),n=this._context.symbol.time;return n&&(null===this._isNewSession&&(this._isNewSession=r.Std.createNewSessionCheck(e)),this._isNewSession(n)&&(this.f_1(i),this.f_1(s))),i.set(r.Std.nz(i.get(1))+r.Std.hlc3(this._context)*r.Std.volume(this._context)),s.set(r.Std.nz(s.get(1))+r.Std.volume(this._context)),[i.get(0)/s.get(0)]}}},{name:"VWMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.Std.close(this._context),s=this._input(0),n=this._context.new_var(i);return[r.Std.vwma(n,s,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{ +plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Volume Oscillator",shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.Std.volume(this._context),o=this._context.new_var(n),a=r.Std.ema(o,i,this._context),l=this._context.new_var(n),c=r.Std.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period",defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(r.Std.low(this._context)),i=this._context.new_var(r.Std.abs(r.Std.high(this._context)-t.get(1))),s=r.Std.sum(i,e,this._context),n=this._context.new_var(r.Std.high(this._context)),o=this._context.new_var(r.Std.abs(r.Std.low(this._context)-n.get(1))),a=r.Std.sum(o,e,this._context),l=this._context.new_var(r.Std.atr(1,this._context)),c=r.Std.sum(l,e,this._context);return[s/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R",format:{precision:2,type:"price"}}, +constructor:function(){this.f_0=function(e,t,i){return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.Std.high(this._context),n=this._context.new_var(s),o=r.Std.highest(n,i,this._context),a=r.Std.low(this._context),l=this._context.new_var(a),c=r.Std.lowest(l,i,this._context);return[this.f_0(r.Std.close(this._context),o,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},inputs:{in_0:21,in_1:13,in_2:8,in_3:8,in_4:5,in_5:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"Jaw Length",defval:21,type:"integer",min:1,max:2e3},{id:"in_1",name:"Teeth Length",defval:13,type:"integer",min:1,max:2e3},{id:"in_2",name:"Lips Length",defval:8,type:"integer",min:1,max:2e3},{id:"in_3",name:"Jaw Offset",defval:8,type:"integer",min:1,max:2e3},{id:"in_4",name:"Teeth Offset",defval:5,type:"integer",min:1,max:2e3},{id:"in_5",name:"Lips Offset",defval:3,type:"integer",min:1,max:2e3}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=this._input(3),a=this._input(4),l=this._input(5),c=r.Std.hl2(this._context);return[{value:r.Std.smma(c,i,this._context),offset:o},{value:r.Std.smma(c,s,this._context),offset:a},{value:r.Std.smma(c,n,this._context),offset:l}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:a},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:u}},inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.f_0=function(){for(var e=this._input(0),t=this._context.new_var(r.Std.high(this._context)),i=!0,s=!0,n=!0,o=!0,a=!0,l=!0,c=1;c<=e;c++)i=r.Std.and(i,r.Std.lt(t.get(e-c),t.get(e))), +s=r.Std.and(s,r.Std.lt(t.get(e+c),t.get(e))),n=r.Std.and(n,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.lt(t.get(e+c+1),t.get(e)))),o=r.Std.and(o,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.lt(t.get(e+c+2),t.get(e))))),a=r.Std.and(a,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.and(r.Std.le(t.get(e+3),t.get(e)),r.Std.lt(t.get(e+c+3),t.get(e)))))),l=r.Std.and(l,r.Std.and(r.Std.le(t.get(e+1),t.get(e)),r.Std.and(r.Std.le(t.get(e+2),t.get(e)),r.Std.and(r.Std.le(t.get(e+3),t.get(e)),r.Std.and(r.Std.le(t.get(e+4),t.get(e)),r.Std.lt(t.get(e+c+4),t.get(e)))))));var h=r.Std.or(s,r.Std.or(n,r.Std.or(o,r.Std.or(a,l)))),d=r.Std.and(i,h),u=this._context.new_var(r.Std.low(this._context)),p=1,_=1,m=1,g=1,f=1,v=1;for(c=1;c<=e;c++)p=r.Std.and(p,r.Std.gt(u.get(e-c),u.get(e))),_=r.Std.and(_,r.Std.gt(u.get(e+c),u.get(e))),m=r.Std.and(m,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.gt(u.get(e+c+1),u.get(e)))),g=r.Std.and(g,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.gt(u.get(e+c+2),u.get(e))))),f=r.Std.and(f,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.and(r.Std.ge(u.get(e+3),u.get(e)),r.Std.gt(u.get(e+c+3),u.get(e)))))),v=r.Std.and(v,r.Std.and(r.Std.ge(u.get(e+1),u.get(e)),r.Std.and(r.Std.ge(u.get(e+2),u.get(e)),r.Std.and(r.Std.ge(u.get(e+3),u.get(e)),r.Std.and(r.Std.ge(u.get(e+4),u.get(e)),r.Std.gt(u.get(e+c+4),u.get(e)))))));var S=r.Std.or(_,r.Std.or(m,r.Std.or(g,r.Std.or(f,v))));return[r.Std.and(p,S),d]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10,traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0, +linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},investorEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer"},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer"},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer"},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer"},{defval:12,id:"traderEMA5Length",max:1e3,min:1,name:"Trader EMA 5 length",type:"integer"},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer"},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer"},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer"},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer"},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer"},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer"},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer"}],plots:[{id:"traderEMA1",type:"line"},{id:"traderEMA2",type:"line"},{id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"investorEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t +;var i=this._context.new_var(r.Std.close(this._context)),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),h=r.Std.ema(i,s,this._context),d=r.Std.ema(i,n,this._context),u=r.Std.ema(i,o,this._context),p=r.Std.ema(i,a,this._context),_=r.Std.ema(i,l,this._context),m=r.Std.ema(i,c,this._context),g=this._input(6),f=this._input(7),v=this._input(8),S=this._input(9),y=this._input(10),b=this._input(11);return[h,d,u,p,_,m,r.Std.ema(i,g,this._context),r.Std.ema(i,f,this._context),r.Std.ema(i,v,this._context),r.Std.ema(i,S,this._context),r.Std.ema(i,y,this._context),r.Std.ema(i,b,this._context)]}}}]},28930:(e,t,i)=>{"use strict";var s;i.d(t,{SubsessionId:()=>s}),function(e){e.Regular="regular",e.Extended="extended",e.PreMarket="premarket",e.PostMarket="postmarket"}(s||(s={}))},64326:(e,t,i)=>{"use strict";i.d(t,{PointsetsManager:()=>n});var s=i(29823);const r=(0,i(98125).getLogger)("ChartApi.PointsetsManager");class n{constructor(){this._pointsetsDataBySymbol=new Map}destroy(){this._pointsetsDataBySymbol.clear()}createPointset(e,t,i,s,n){let o=this._pointsetsDataBySymbol.get(t);void 0===o&&(o=new Map,this._pointsetsDataBySymbol.set(t,o));const a=[];for(const t of s){const[i,s]=t;"number"!=typeof i||Number.isNaN(i)?r.logWarn(`Pointset time is invalid: id=${e}, ${i} of type ${typeof i}`):a.push({point:t,extrapolation:n.extrapolateTimeWithOffsetToTime(1e3*i,s)})}s.length===a.length&&o.set(e,{resolution:i,points:a})}removePointset(e){const t=[];this._pointsetsDataBySymbol.forEach((i,s)=>{i.delete(e),0===i.size&&t.push(s)});for(const e of t)this._pointsetsDataBySymbol.delete(e)}invalidatePointsetsForSymbol(e,t){const i=this._pointsetsDataBySymbol.get(e);void 0!==i&&i.forEach((e,i)=>{if(s.Interval.isEqual(e.resolution,t))for(const t of e.points)null!==t.extrapolation&&t.extrapolation.exact&&(t.extrapolation.exact=!1)})}getUpdatesForSymbol(e,t,i,s){const r=new Map,n=this._pointsetsDataBySymbol.get(e);return void 0!==n&&n.forEach((e,n)=>{const o=this._refreshPointsetData(e,t,i,s);null!==o&&r.set(n,o)}),r}_refreshPointsetData(e,t,i,n){if(s.Interval.isEqual(e.resolution,t))for(let t=0;t ${t}`),null;o.push({index:i,value:[a.index,a.timeMs/1e3]})}return o}}},34972:(e,t,i)=>{"use strict";i.d(t,{SessionTimeScale:()=>v});var s=i(88537),r=i(67337),n=i(10480),o=i(55257),a=i(65862),l=i(2271),c=i(42934);function h(e){return 60*e*60*1e3}function d(e){return 60*e*1e3}const u=[{divisor:1,weight:18},{divisor:(p=1,1e3*p),weight:19},{divisor:d(1),weight:20},{divisor:d(5),weight:21},{divisor:d(30),weight:22},{divisor:h(1),weight:30},{divisor:h(3),weight:31},{divisor:h(6), +weight:32},{divisor:h(12),weight:33}];var p;function _(e,t){if(null!==t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;const i=t.getTime(),s=e.getTime();for(let e=u.length-1;e>=0;--e)if(Math.floor(i/u[e].divisor)!==Math.floor(s/u[e].divisor))return u[e].weight}return 18}function m(e,t,i=0){if(0===e.length)return[];let s=i,r=i;const n=[];for(;s=t.length?(n.push({old:s,new:l.INVALID_TIME_POINT_INDEX}),s++):e[s].timeMs===t[r].timeMs?(s!==r&&n.push({old:s,new:r}),s++,r++):e[s].timeMs{if(e.new===t.new&&e.new===l.INVALID_TIME_POINT_INDEX)return e.old-t.old;if(e.new===l.INVALID_TIME_POINT_INDEX)return-1;if(t.new===l.INVALID_TIME_POINT_INDEX)return 1;const i=e.old-e.new,s=t.old-t.new;return i>0?s>0?e.old-t.old:-1:s<0?t.new-e.new:1})}function g(e,t){return{span:e.markWeight,time:e.displayTime,index:t}}const f=r.enabled("end_of_period_timescale_marks");class v{constructor(){this._completed=!0,this._mainSymbolExtrapolator=null,this._pointDataByTimePoint=new Map,this._seriesIds=new Set,this._displayTimezone=null,this._minFutureBarsCount=0,this._sortedTimePoints=[]}destroy(){this.clearTimeScale()}setCompleted(e){this._completed=e}isCompleted(){return this._completed}clearTimeScale(){return this._pointDataByTimePoint.clear(),this._seriesIds.clear(),this._sortedTimePoints=[],{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]}}indexOfTime(e){if(0===this._sortedTimePoints.length)return null===this._mainSymbolExtrapolator?null:this._mainSymbolExtrapolator.indexOfTime(e);if(ethis._sortedTimePoints[this._sortedTimePoints.length-1].timeMs){if(null===this._mainSymbolExtrapolator)return null;const t=this._mainSymbolExtrapolator.indexOfTime(e),i=this._mainSymbolExtrapolator.indexOfTime(this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs);if(null===t||null===i)return null;const s=t.index-i.index-1;return{index:this._sortedTimePoints.length+s,timeMs:t.timeMs}}let t=(0,o.lowerbound)(this._sortedTimePoints,e,(e,t)=>e.timeMs({timeMs:e,markWeight:0,displayTime:NaN}));this._fillPointsData(i,0,0!==this._sortedTimePoints.length?this._sortedTimePoints[this._sortedTimePoints.length-1].displayTime:null);const r=[];for(let t=e;tg(e,i+t));return r.concat(n)}setTimezone(e){this._displayTimezone="exchange"===e?null:(0,n.get_timezone)(e),this._fillPointsData(this._sortedTimePoints,0)}fillIndexesInRows(e){if(0===e.length)return;let t=-1,i=(0,o.lowerbound)(this._sortedTimePoints,Math.round(1e3*e[0].value[0]),(e,t)=>e.timeMse.timeMs{for(;i=this._sortedTimePoints.length){const t=this.indexOfTime(e);if(null===t)return l.INVALID_TIME_POINT_INDEX;i=t.timeMs!==e?t.index+1:t.index}return(0,s.assert)(i>t,"data must have unique sorted times"),t=i,i})}firstSeriesBarTime(){return 0===this._sortedTimePoints.length?null:this._sortedTimePoints[0].timeMs}replaceSeriesBarsTimesTail(e,t){if(0===t.length)return null;if(!this._seriesIds.has(e))return this.setSeriesBarsTimes(e,t);const i=[],s=(0,o.lowerbound)(this._sortedTimePoints,t[0],(e,t)=>e.timeMs({timeMs:e.timeMs,pointData:e.pointData,markWeight:0,displayTime:NaN}));for(let e=s;ee.timeMs-t.timeMs);const a=this._updateTimeScalePointsTail(n);return this._applyTimeScaleChanges(a,!1)}setSeriesBarsTimes(e,t){let i=0!==this._pointDataByTimePoint.size;if(this._seriesIds.has(e))if(1===this._seriesIds.size)i=!1,this._pointDataByTimePoint.clear();else for(const t of this._sortedTimePoints)t.pointData.series.delete(e);this._addBarsTimesToSeries(e,t,!1);const s=this._seriesIds.size;0===t.length?this._seriesIds.delete(e):this._seriesIds.add(e),i&&this._cleanupPointsData(this._sortedTimePoints);const r=sthis._seriesIds.size,o=r&&2===this._seriesIds.size||n&&1===this._seriesIds.size,a=[] +;this._pointDataByTimePoint.forEach((e,t)=>{a.push({markWeight:0,timeMs:t,displayTime:NaN,pointData:e})}),a.sort((e,t)=>e.timeMs-t.timeMs);const l=this._updateTimeScalePoints(a);return this._applyTimeScaleChanges(l,o)}_updateFutureBars(){if(0===this._minFutureBarsCount||null===this._mainSymbolExtrapolator)return;if(0!==this._sortedTimePoints.length){const e=this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs;this._mainSymbolExtrapolator.ensureExtrapolatedToFutureTime(e)}const e=this._futureBarsFirstPointIndex();this._mainSymbolExtrapolator.setMinFutureBarsCount(e+this._minFutureBarsCount)}_addBarsTimesToSeries(e,t,i){const s=i?[]:null;for(const i of t){const t=this._pointDataByTimePoint.get(i);if(void 0===t){const t=new Set;t.add(e);const r={index:0,series:t};this._pointDataByTimePoint.set(i,r),null!==s&&s.push({timeMs:i,pointData:r})}else t.series.add(e)}return s}_futureBarsFirstPointIndex(){if(null===this._mainSymbolExtrapolator||0===this._sortedTimePoints.length)return 0;const e=this._mainSymbolExtrapolator.futureBars();return(0,o.upperbound_int)(e,this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs)}_futureBars(){return null===this._mainSymbolExtrapolator?[]:this._mainSymbolExtrapolator.futureBars().slice(this._futureBarsFirstPointIndex(),this._futureBarsFirstPointIndex()+1e3)}_cleanupPointsData(e){for(const t of e)0===t.pointData.series.size&&this._pointDataByTimePoint.delete(t.timeMs)}_updateTimeScalePoints(e){let t=-1;for(let i=0;ie.timeMs=this._sortedTimePoints.length)continue;this._sortedTimePoints[n].timeMs!==r.timeMs&&-1===i&&(i=n)}const s=t+e.length;if(i=S(i,this._sortedTimePoints.length,s),-1===i)return null;this._fillPointsData(e,0,0===t||0===this._sortedTimePoints.length?null:this._sortedTimePoints[t-1].displayTime);const r=m(this._sortedTimePoints.slice(t),e).map(e=>({old:e.old+t,new:e.new===l.INVALID_TIME_POINT_INDEX?e.new:e.new+t}));{const i=this._sortedTimePoints;let r=0;for(;t+r1&&null===i){const t=Math.ceil(n/(e.length-1)),i=new Date(1e3*(e[0].displayTime-t));e[0].markWeight=_(new Date(1e3*e[0].displayTime),i)}}(e,t,i)}_applyTimeScaleChanges(e,t){if(null===e)return t?(this._fillPointsData(this._sortedTimePoints,0),{points:[],pointsIndex:0,baseIndex:this._getBaseIndex(),indexChange:[],marks:this.tickMarks(0)}):null;let i=e.pointsIndex;if(0!==i&&t&&(this._fillPointsData(this._sortedTimePoints,0),i=0),0===this._sortedTimePoints.length)return{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]};const s=[];for(let t=e.pointsIndex;t{"use strict";var s=i(41728),r=i(216),n=i(37750),o=i(66482).SymbolExtrapolator,a=i(34972).SessionTimeScale,l=i(64326).PointsetsManager,c=i(69177),h=i(65862).createDwmAligner,d=i(29823).Interval,u=i(76422),p=i(45415).visitObject,_=i(80643).isObject;i(27595),i(84093);var m=i(41986).DatafeedRequestsCachedProcessor,g=i(39277).timezoneIsAvailable,f=i(65862).isAlignmentEnabled,v=i(19234),S=v.isEncodedExtendedSymbol,y=v.decodeExtendedSymbol,b=i(37667).extractSymbolNameFromSymbolInfo,w=i(79283).replaceGraphicsTimesWithTimePointIndexIndex,C=i(67337),P=i(28930).SubsessionId,T=i(69177).getPeriodsBetweenDates;const x=C.enabled("pre_post_market_sessions");function I(e){var t=e.findIndex((function(e){return-5e6!==e.index}));return-1===t?[]:0===t?e:e.slice(t)}function M(e,t){return e+"_"+t}var L=function(e){var t=this;this._studiesCache={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&r.overwriteVolumeProfileResolutionForPeriodGetter((function(t,i,s,r){return e.getVolumeProfileResolutionForPeriod(t,i,s,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._resolvePromisesBySymbolId=new Map,this._symbolIdToSymbolRequestString=new Map,this._callbacks={},this._serverTimeOffset=0, +t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._symbolExtrapolators={},this._timeScales={},this._cachedDatafeed=new m(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),n.setupFeed({resolve:function(e,i,s,r){t._resolveSymbolByName(e,i,s,r)},subscribe:function(e,i,s,r,n){return t._cachedDatafeed.subscribe(e,i,s,function(e,i,s){var r=new c.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),n=c.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();n.moveTo(i),n.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}s(e)}}(e,i,r),n)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function A(e,t){return e+"_"+t}function E(e,t,i,s){return e+(t?"_#_"+t:"")+(i?"_#_"+i:"")+(s?"_#_"+s:"")}L.prototype._getSymbolExtrapolator=function(e,t,i){var s=d.normalize(i),r=function(e,t,i){const s=void 0!==t.subsession_id?","+t.subsession_id:"";return e+","+t.full_name+","+i+s}(e,t,s),n=this._symbolExtrapolators[r];return void 0===n&&(n=new o(t,s),this._symbolExtrapolators[r]=n),n},L.prototype._barsCoefficients=function(e,t){if(void 0===y(e).type)return{};var i=e+t;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]},L.prototype.destroy=function(){this._cachedDatafeed.destroy(),this._externalDatafeed=null,Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={}},L.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._studiesCache={},this._resolvePromisesBySymbolId.clear(),this._symbolIdToSymbolRequestString.clear(),Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScales).forEach((function(e){this._timeScales[e].destroy()}),this),this._timeScales={},Object.keys(this._symbolExtrapolators).forEach((function(e){this._symbolExtrapolators[e].destroy()}),this),this._symbolExtrapolators={}},L.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},L.prototype._logMessage=function(e){C.enabled("charting_library_debug_mode")&&console.log(e)},L.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},L.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var s=this._callbacks[e],r=0;r_[a].timeMs;l?_.push({index:g(s,_.length),value:[s/1e3].concat(r),timeMs:s}):(_[a].index=g(s,a),_[a].value=[s/1e3].concat(r),_[a].timeMs=s),p||u.onRealtimeCallback([_[_.length-1]],l,_.length,v,i)}(e,t,i)},nonseriesOut:function(e,t){u.onNonSeriesDataUpdate(t,i)},setNoMoreData:function(){S=!0},recalc:function(e,s){p=!1,_.endOfData=S,_.emptyBarCount=s.emptyBarCount,t.error&&null!==t.error()||(null!==l&&(y._objectsDataCache[l]=_),u.onDataReadyCallback(_,v,i,s))}});if(!y._studiesCache[e]||!y._studiesCache[e][n])throw Error("This should never happen");y._studiesCache[e][n].engine=w}catch(e){if(!e.studyError)throw e;u.onErrorCallback(e.message)}}else u.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")}(w,P)},L.prototype._createStudy=function(e,t,i,s,r,n,o,a){var l=this;function c(e,t,i){e=I(e),l._timeScales[s].fillIndexesInRows(e),TradingView.ChartapiMessagerInstances[s].onDataUpdate(r,n,e,t),TradingView.ChartapiMessagerInstances[s].onStudyCompleted(r,n)}function h(e){var t={};if(0!==e.size){var i={},n=l._studiesCache[s][r].metainfo;e.forEach((function(e,t){i[n.plots[t].id]=e})),t.data={offsets:i}}return t}a=function(e){if(Array.isArray(e))return e;for(var t=[],i=l._studiesCache[s][r].metainfo.inputs,n=0;n=0},L.prototype.ensureExtendedTo=function(e,t,i){if(!this._studiesCache[t][e])throw Error("This should never happen");var s=this;setTimeout((function(){s._recreateSourcesForDataRange(t,{to:i})}),0)}, +L.prototype.extendSeriesRange=function(e,t){var i=this._timeScales[e].firstSeriesBarTime();if(null!==i){var s=this._mainSeriesRecord(e);if(d.isDWM(s.resolution)&&null!=s.symbolInfo){var r=h(s.resolution,s.symbolInfo);null!==r&&(i=r.timeToExchangeTradingDay(i))}var n=this._symbolIdToSymbolRequestString.get(M(e,s.symbolId)),o=this._barsCoefficients(n,s.resolution),a=o.barsCoefficient||1;if(!o.barsCoefficient){var l=this._getSeriesData(e,s.guid);null!==l&&(o.expectedBarsCount=l.length+t)}var c=this;setTimeout((function(){c._recreateSourcesForDataRange(e,{to:i,countBack:(t+2)*a})}),0)}else this._logMessage("Nothing to extend - there is no points on time scale")},L.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},L.prototype._seriesDataRange=function(e,t){var i=this._studiesCache[e][t];return null!==i.firstLoadedTimeMs?{to:i.firstLoadedTimeMs,countBack:0}:i.dataRange},L.prototype._applyTimeScaleUpdate=function(e,t){if(null!==t){var i=[];for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if(r&&"study"===r.type){var n=this._studiesNonSeriesTimes[e][s];if(n){var o={indexes:this._timeScales[e].convertTimesToIndexes(n),data:{indexes_replace:!0}};i.push({objId:s,turnaround:r.turnaround,data:[],nonSeriesData:o})}}}TradingView.ChartapiMessagerInstances[e].onTimescaleUpdate(t,i),Promise.resolve().then(function(){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._pointsetsManagers[e].getUpdatesForSymbol(t.symbolInfo.full_name,t.resolution,i,this._timeScales[e]).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t)}))}}.bind(this))}},L.prototype._updateMainTsBuilder=function(e){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._timeScales[e].setMainSymbolExtrapolator(i)}},L.prototype._updateTimeScaleState=function(e){var t=!0,i=!0;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];"series"===r.type&&(i=i&&this._isEndOfData(e,s,r.turnaround),t=t&&r.completed)}this._timeScales[e].isCompleted()!==t&&(this._timeScales[e].setCompleted(t),t&&TradingView.ChartapiMessagerInstances[e].onTimescaleCompleted(i))},L.prototype._mainSeriesRecord=function(e){var t=null,i=null;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if("series"===r.type&&(null===t&&(t=r),r.isMain)){i=r;break}}return null===i&&(i=t),null!==i&&(i.isMain=!0),i},L.prototype._seriesCount=function(e){var t=0;for(var i in this._studiesCache[e]){"series"===this._studiesCache[e][i].type&&(t+=1)}return t},L.prototype._prepareSeriesNonSeriesData=function(e,t,i){var s=i.data[i.data.length-1],r=this._getSeriesData(e,t),n=null===r?[]:i.data;return{data:{data:{reversalAmount:i.reversalAmount,boxSize:i.boxSize,price:s?s[4]:i.price,bars:n.map((function(e,t){return{time:t,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5],factor:e[6],additionalPrice:e[6]} +}))}},indexes:this._timeScales[e].convertTimesToIndexes(n.map((function(e){var t=e[0]||0;return t<0?r[r.length+t].timeMs:i.projectionTime+t})))}},L.prototype.createSeries=function(e,t,i,s,n,o,a){this._setEndOfData(e,t,i,!1);var l=new r.OHLCV;this._studiesCache[e]=this._studiesCache[e]||{};var c=this._getSeriesData(e,t),h=this._studiesCache[e][t],u=this._seriesCount(e),p=this._mainSeriesRecord(e);if(!h||d.isEqual(h.resolution,n)&&h.symbolId===s)void 0!==o.countBack&&null!==c&&0!==c.length&&(o.to=c[0].timeMs),h&&null!=h.firstLoadedTimeMs?o.to=void 0!==o.to?Math.min(h.firstLoadedTimeMs,o.to):h.firstLoadedTimeMs:h||0===u||null!==p&&(null!=p.firstLoadedTimeMs?(o.to=p.firstLoadedTimeMs,o.countBack=0):o=Object.assign({},p.dataRange));else if(1===u)o=Object.assign({},h.initialDatarange);else{var _=this._timeScales[e].firstSeriesBarTime();(void 0===o.to||null!==_&&_{"use strict";i.d(t,{SymbolExtrapolator:()=>c});var s=i(88537),r=i(55257),n=i(69177),o=i(11075),a=i(29823);function l(e,t){return e.length>t}class c{constructor(e,t,i=2e5){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._symbolInfo=e,this._interval=a.Interval.parse(t),this._extrapolateLimit=i,this._barBuilder=(0,n.newBarBuilder)(t,new n.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),null)}destroy(){this.clear()}interval(){return this._interval}barBuilder(){return this._barBuilder}symbolInfo(){return this._symbolInfo}clear(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0}firstFutureBarIndex(){return this._barsTimes.length}futureBars(){return this._futureBarsCache}replaceBarsTimesTail(e,t=e.length){if(0===e.length)return;if(0===this._barsTimes.length)return void this.setBarsTimes(e,t);const i=e[0],n=this._barsTimes[this._barsTimes.length-1],o=i>n?this._barsTimes.length:(0,r.lowerbound_int)(this._barsTimes,i) +;0!==o?(this._barsTimes.splice(o,this._barsTimes.length,...e),this._projectionFirstIndex=t===e.length?this._barsTimes.length:this._barsTimes.indexOf(e[t]),(0,s.assert)(-1!==this._projectionFirstIndex,"something went wrong"),n!==e[e.length-1]&&this._setLastRealBarTime(e[e.length-1])):this.setBarsTimes(e,t)}setBarsTimes(e,t=e.length){const i=this._barsTimes;if(this._barsTimes=e.slice(),this._projectionFirstIndex=0===this._barsTimes.length?1/0:t,0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);0!==i.length&&i[i.length-1]===e[e.length-1]||this._setLastRealBarTime(e[e.length-1]),0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])}extrapolateTimeWithOffsetToTime(e,t){if(0===t)return{timeMs:e,exact:!0};0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));const i=this.indexOfTime(e);if(null===i)return null;const s=this._timeOfBarIndex(i.index+t);return null===s?null:((i.index<0||this._projectionFirstIndex<=i.index)&&(s.exact=!1),s)}indexOfTime(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);let t=(0,r.lowerbound_int)(this._futureBarsCache,e);if(0!==this._futureBarsCache.length&&t===this._futureBarsCache.length&&e>this._futureBarsCache[this._futureBarsCache.length-1])return null;this._futureBarsCache[t]!==e&&(t-=1);const i=Math.max(1,this._barsTimes.length)+t;return{index:i,timeMs:i===this._barsTimes.length-1?(0,s.ensureNotNull)(this._lastRealBarTimeMs):this._futureBarsCache[t]}}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?{index:0,timeMs:(0,s.ensureNotNull)(this._timeOfBarIndex(0)).timeMs}:null;let t=(0,r.lowerbound_int)(this._barsTimes,e);return this._barsTimes[t]!==e&&(t-=1),{index:t,timeMs:this._barsTimes[t]}}setMinFutureBarsCount(e){this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)}ensureExtrapolatedToFutureTime(e){this._ensureExtrapolatedToFutureTime(e)}_setLastRealBarTime(e){const t=this._futureBarsCache.length,i=(0,r.upperbound_int)(this._futureBarsCache,e) +;0===i?this._extendFutureCacheToTimeFromLeft(e):(this._lastRealBarTimeMs=e,this._futureBarsCache=this._futureBarsCache.slice(i)),this._ensureExtrapolatedToFutureBar(Math.max(t,this._minFutureBarsCount))}_timeOfBarIndex(e){var t;if(e<0){const t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);const i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:(0,s.ensureNotNull)(null!==(t=this._firstRealBarTimeMs)&&void 0!==t?t:this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){const t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)return;if((0,s.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0===this._historyBarsCache.length)return;const t=(0,o.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}_ensureExtrapolatedToFutureBar(e){return!(this._futureBarsCache.length>=e||l(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight((t,i)=>(0,o.extrapolateBarsFrontByCount)(this._barBuilder,t,e-i,!0).times)}_ensureExtrapolatedToFutureTime(e){null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||l(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight((t,i)=>(0,o.extrapolateBarsFrontToTime)(this._barBuilder,t,e,this._extrapolateLimit,!0).times),this._futureBarsCache[this._futureBarsCache.length-1]=e||l(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft((t,i)=>(0,o.extrapolateBarsFrontByCount)(this._barBuilder,t,-(e-i),!0).times.reverse())}_ensureExtrapolatedToHistoryTime(e){null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||l(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft((t,i)=>{const s=(0,o.extrapolateBarsFrontToTime)(this._barBuilder,t-1,e-1,this._extrapolateLimit,!0).times;return s[s.length-1]===t?s.slice(0,-1):s}),(0===this._historyBarsCache.length||this._historyBarsCache[0]>e)&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))}}},43007:(e,t,i)=>{"use strict";i.d(t,{backend:()=>s});const s=i(17437)},73383:(e,t,i)=>{"use strict";var s,r;function n(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}i.d(t,{TIMEFRAMETYPE:()=>r,areEqualTimeFrames:()=>n}),function(e){e.extractErrorReason=function(e){return e.params[1]}}(s||(s={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(r||(r={}))},87980:()=>{"use strict";TradingView.Pro=function(){this.hasPackage=function(){return!1}},window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]}},56910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QuoteCache:()=>r,QUOTE_FIELDS:()=>n,QUOTE_FIELDS_CACHE:()=>o});var s=i(88537);class r{constructor(e){this._cache=new Map,this._fields=[...e.fields]}update(e,t,i){const r=(0,s.ensureDefined)(e.symbolname);if(this._cache.has(r)||this._cache.set(r,{symbolname:r,status:e.status,values:{}}),"error"===e.status)return;const n=(0,s.ensureDefined)(this._cache.get(r));n.status=e.status;for(const s of this._fields){if(!t.has(s))continue;const r=e.values[s];(i||void 0!==r)&&(n.values[s]=r)}}get(e){var t;return null!==(t=this._cache.get(e))&&void 0!==t?t:null}fields(){return this._fields}}const n=new Set(["pro_name","logoid","currency-logoid","base-currency-logoid","short_name","description","exchange","type","country_code","provider_id","sector","type","industry","currency_id","last_price","fractional","minmov","minmove2","pricescale","change","change_percent","volume","average_volume","market_cap_basic","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","earnings_release_next_date","earnings_per_share_forecast_next_fq","earnings_release_date","earnings_per_share_fq","fundamental_currency_code","symbol-primaryname","update_mode"]),o=new r({fields:n})},39138:(e,t,i)=>{"use strict";i.d(t,{getQuoteSessionInstance:()=>o,destroyQuoteSessions:()=>a});var s=i(87467),r=i.n(s);const n={};function o(e="full"){return n[e]||function(e="full",t){n[e]=t +}(e,new(r())(e)),n[e]}function a(){for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];void 0!==t&&t.destroy(),delete n[e]}}},67311:(e,t,i)=>{"use strict";i.d(t,{QuoteSession:()=>r});var s=i(9423);class r{constructor(e,t=(0,s.randomHash)()){this._sessionstarted=!1,this._globalHandler=null,this._chartApi=e,this._sessionid="qs_"+t}destroy(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionstarted=!1)}connected(){return this._chartApi.connected()}connect(e){this._globalHandler=e,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()}disconnect(){this._chartApi.disconnect()}quoteAddSymbols(e){this._chartApi.quoteAddSymbols(this._sessionid,e)}quoteRemoveSymbols(e){this._chartApi.quoteRemoveSymbols(this._sessionid,e)}quoteFastSymbols(e){this._chartApi.quoteFastSymbols(this._sessionid,e)}quoteSetFields(e){this._chartApi.quoteSetFields(this._sessionid,e)}onMessage(e){var t;switch(e.method){case"connected":this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}null===(t=this._globalHandler)||void 0===t||t.call(this,e)}quoteHibernateAll(){this._chartApi.quoteHibernateAll(this._sessionid)}}window.TradingView.QuoteSession=r},87467:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(2872),r=i(43370).default,n=i(4889).default,o=i(97098).PriceFormatter;const{uniq:a}=i(96397);var l=i(9423),c=i(5370).parseUpdateMode,h=i(15840).deepExtend;const{QUOTE_FIELDS_CACHE:d,QUOTE_FIELDS:u}=i(56910);var p;function _(e,t){this.options=Object.assign({throttleTimeout:125},t),this._connected=!1,this._symbol_data={},this._subscriptions={},this.onConnect=new s,this.onDisconnect=new s,this._quoteApi=new p(window.ChartApiInstance),this._type=e||"full",this._delayUpdateFastSymbols=n(this._updateFastSymbols,250),this._throttledSymbolData={},this._formatterValuesCache={},this._waitingForFormatters={},this._snapshotValuesCache={},this._waitingForSnapshot={},this.connect()}p=i(67311).QuoteSession,_.prototype.destroy=function(){this._quoteApi.destroy(),this._quoteApi=null,this._connected=!1,this.onDisconnect.fire()},_.prototype.typeFields={},_.prototype.typeFields.simple=["base-currency-logoid","ch","chp","currency-logoid","currency_code","currency_id","base_currency_id","current_session","description","exchange","format","fractional","is_tradable","language","local_description","listed_exchange","logoid","lp","lp_time","minmov","minmove2","original_name","pricescale","pro_name","short_name","type","typespecs","update_mode","volume"],_.prototype.typeFields.simpleDetailed=[].concat(_.prototype.typeFields.simple,["ask","bid","fundamentals","high_price","is_tradable","low_price","open_price","prev_close_price","rch","rchp","rtc","rtc_time","status","basic_eps_net_income","beta_1_year","earnings_per_share_basic_ttm","industry","market_cap_basic","price_earnings_ttm","sector","volume","dividends_yield","timezone"]),_.prototype.typeFields.full=[], +_.prototype.typeFields.watchlist=[].concat(_.prototype.typeFields.simple,["rchp","rtc","country_code","provider_id"]),_.prototype.typeFields.portfolio=["pro_name","short_name","exchange","listed_exchange","description","sector","type","typespecs","industry","currency_code","currency_id","ch","chp","logoid","currency-logoid","base-currency-logoid","earnings_per_share_forecast_next_fq","earnings_release_next_date","earnings_release_date","earnings_per_share_fq","lp","fractional","minmov","minmove2","pricescale","volume","average_volume","market_cap_basic","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","fundamental_currency_code","rates_mc","rates_fy","rates_ttm","value_unit_id"],_.prototype.typeFields.notes=["short_name","pro_name","logoid","currency-logoid","base-currency-logoid","symbol-primaryname","type","typespecs"],_.prototype.connect=function(e){this._quoteApi.connect(this.quoteHandler.bind(this))},_.prototype.quoteHandler=function(e){var t=e.method,i=e.params;switch(t){case"connected":this._connected||(this._connected=!0,this.onConnected());break;case"quote_list_fields":break;case"quote_symbol_data":this._connected&&this.onSymbolData(i[0]);break;case"quote_completed":this._connected&&this.onSymbolData({symbolname:i[0],complete:performance.now(),values:{}});break;case"disconnected":this._connected&&(this._connected=!1,this.onDisconnect.fire())}},_.prototype.onConnected=function(){this.setFields();var e=Object.keys(this._symbol_data);e.length&&(this._quoteApi.quoteAddSymbols(e),this._delayUpdateFastSymbols()),this.onConnect.fire()},_.prototype.setFields=function(){var e=_.prototype.typeFields[this._type];e&&e.length&&this._quoteApi.quoteSetFields(e)},_.prototype.onSymbolData=function(e){try{e.status&&d.update(e,u,!1)}catch(e){}var t=e.symbolname,i=this._throttledSymbolData[t];i||(i=this._throttledSymbolData[t]={fnDispatch:r(this.dipatchSymbolData.bind(this),this.options.throttleTimeout)}),i.cache?h(i.cache,e):i.cache=e,i.fnDispatch(t)},_.prototype._parseUpdateMode=function(e){var t=c(e.update_mode);null!==t&&(e.update_mode=t.mode,e.update_mode_seconds=t.interval)},_.prototype.dipatchSymbolData=function(e){var t=this._symbol_data[e],i=this._throttledSymbolData[e].cache;if(delete this._throttledSymbolData[e].cache,this._symbol_data[e])for(var s in h(t,i),t.values&&this._parseUpdateMode(t.values),this._subscriptions){var r=this._subscriptions[s];r.has(e)&&r.get(e).forEach((function(e){e(t,i)}))}},_.prototype.subscribe=function(e,t,i){this._subscriptions[e]=this._subscriptions[e]||new Map;var s=this._subscriptions[e];t=[].concat(t);var r=[];t.forEach((function(e){this._symbol_data[e]?s&&s.has(e)||this._symbol_data[e].subscribers_count++:(this._symbol_data[e]={subscribers_count:1},r.push(e)),s.has(e)||s.set(e,[]),s.get(e).push(i),s.get(e).fast=!0,this._symbol_data[e]&&this._symbol_data[e].values&&i(this._symbol_data[e],this._symbol_data[e])}),this),r.length&&this._connected&&(this._quoteApi.quoteAddSymbols(r), +this._delayUpdateFastSymbols())},_.prototype.unsubscribe=function(e,t,i){t=[].concat(t);for(var s=this._subscriptions[e],r=[],n=0;n{"use strict";function s(e,t,i){const s=e.get(t);return void 0!==s?s:(e.set(t,i),i)}function r(e,t,i){const s=e.get(t);if(void 0!==s)return s;const r=i();return e.set(t,r),r}function n(e,t,i,n){return r(s(e,t,new Map),i,n)}function o(e,t,i,r,n){const o=s(e,t,new Map),a=s(o,i,new Map);return s(a,r,n)}i.d(t,{getDefault2Lazy:()=>n,getDefault3:()=>o,AbstractMapContainer:()=>a});class a{constructor(){this._map=new Map,this._size=0}size(){return this._size}clear(){this._map.clear(),this._size=0}}},55257:(e,t,i)=>{"use strict";function s(e,t){ +return e>1,o=s+r;i(e(o),t)?(s=o+1,n-=r+1):n=r}return s}function n(e,t,i,s=0,n=e.length){return r(t=>e[t],t,i,s,n)}function o(e,t,i=0,r=e.length){return n(e,t,s,i,r)}function a(e,t,i,s=0,r=e.length){let n=r-s;for(;0>1,o=s+r;i(t,e[o])?n=r:(s=o+1,n-=r+1)}return s}function l(e,t,i=0,r=e.length){return a(e,t,s,i,r)}function c(e,t){return e.filter(e=>!t.includes(e))}function h(e,t){const i=e.indexOf(t);return i<0?e.slice():[t].concat(e.slice(0,i)).concat(e.slice(i+1))}function d(e,t,i){const s=new Set(t),r=[],n=[],a=[];return e.forEach((e,t)=>{s.has(e)?n.push(e):(r.push(e),a.push(t))}),i=i{s.has(e)?n.push(e):(r.push(e),a.push(t))}),i=i<=e.length-1?o(a,i):r.length,r.splice(i,0,...n),{newItems:r,movedItemsStartIndex:i}}function p(e,t){const i=new Set;return e.forEach(e=>{t.has(e)&&i.add(e)}),i}i.r(t),i.d(t,{lowerboundExt:()=>r,lowerbound:()=>n,lowerbound_int:()=>o,upperbound:()=>a,upperbound_int:()=>l,subtract:()=>c,moveToHead:()=>h,moveAfter:()=>d,moveBefore:()=>u,intersect:()=>p})},10480:(e,t,i)=>{"use strict";var s=i(84917),r=i(84296).tzData;function n(e){this._name=e;var t=r[e];if(t||(t={time:[],offset:[]},this._invalid=!0),t.time.length!==t.offset.length&&(t={time:[],offset:[]},this._invalid=!0),!t.time_utc){for(var i=t.time,s=t.offset,n=i.length,o=new Array(n),a=0;at){if((r=n-1)0&&e-t[s-1]<=r)return r;return 0},n.prototype.is_valid=function(){return!this._invalid},n._offset=function(e,t,i){var s=o(e,i);return-1===s?0:t[s]};var a=function(e){return 0|e},l=function(e){return 60*e*1e3},c=function(e,t){return h(e)-h(t)},h=function(e){return e<0?a(e/1e3)-(e%1e3!=0?1:0):a(e/1e3)};function d(e){return e%4==0&&(e%100!=0||e%400==0)}var u={0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334},p={...s.WeekDays,...s.Months,YEAR:1,MONTH:2,WEEK_OF_YEAR:3,DAY_OF_MONTH:5,DAY_OF_YEAR:6,DAY_OF_WEEK:7,HOUR_OF_DAY:11,MINUTE:12,SECOND:13,minutesPerDay:1440,millisecondsPerDay:l(1440),get_minutes_from_hhmm:function(e){return-1!==e.indexOf(":")&&(e=e.split(":").join("")),e%100+60*a(e/100)},get_year:function(e){return e.getUTCFullYear()},get_month:function(e){return e.getUTCMonth()},get_hours:function(e){return e.getUTCHours()},get_minutes:function(e){return e.getUTCMinutes()},get_seconds:function(e){ +return e.getUTCSeconds()},get_day_of_month:function(e){return e.getUTCDate()},get_day_of_week:function(e){return e.getUTCDay()+1},get_day_of_year:function(e){var t=e.getUTCMonth(),i=u[t];return t>p.JANUARY+1&&d(e.getUTCFullYear())&&(i+=1),i+e.getUTCDate()},get_week_of_year:function(e){var t=new Date(Date.UTC(e.getUTCFullYear(),0,1)).getUTCDay(),i=0===t?1:8-t,s=p.get_day_of_year(e)-i;return Math.ceil(s/7)+1},get_minutes_from_midnight:function(e){return 60*p.get_hours(e)+p.get_minutes(e)},set_hms:function(e,t,i,s,r,n){e.setUTCHours(t),e.setUTCMinutes(i),e.setUTCSeconds(s),e.setUTCMilliseconds(r),void 0!==n&&p.correct_time(e,n)},correct_time:function(e,t){var i=e.getTime(),s=t.correction_loc(i);e.setTime(i+s)},add_days_considering_dst:function(e,t,i){var s=e.offset_utc(t),r=this.clone(t);this.add_date(r,i);var n=e.offset_utc(r);return r.setTime(r.getTime()+s-n),r},add_date:function(e,t){e.setTime(e.getTime()+t*p.millisecondsPerDay)},add_minutes:function(e,t){e.setTime(e.getTime()+l(t))},clone:function(e){return new Date(e.getTime())},get_days_per_year:function(e){var t=e.getUTCFullYear();return this.days_per_year(t)},days_per_year:function(e){return d(e)?366:365},get_days_in_month:function(e,t){let i;switch(e){case 0:case 2:case 4:case 6:case 7:case 9:case 11:i=31;break;case 1:i=28,d(t)&&i++;break;default:i=30}return i},get_part:function(e,t){switch(t){case p.YEAR:return p.get_year(e);case p.MONTH:return p.get_month(e);case p.DAY_OF_MONTH:return p.get_day_of_month(e);case p.WEEK_OF_YEAR:return p.get_week_of_year(e);case p.DAY_OF_WEEK:return p.get_day_of_week(e);case p.HOUR_OF_DAY:return p.get_hours(e);case p.MINUTE:return p.get_minutes(e);case p.DAY_OF_YEAR:return p.get_day_of_year(e);case p.SECOND:return p.get_seconds(e);default:return e.getTime()}},time_minutes:l,time_seconds:function(e){return 1e3*e},time_minutes_diff:function(e,t){return a(c(e,t)/60)},time_seconds_diff:c,utc_to_cal:function(e,t){return new Date(p.utc_to_cal_ts(e,t))},utc_to_cal_ts:function(e,t){return t+e.offset_utc(t)},get_cal:function(e,t,i,s,r,n,o){var a=new Date(Date.UTC(t,i,s,r||0,n||0,o||0)),l=e.offset_utc(+a);return new Date(a.valueOf()-l)},get_cal_from_unix_timestamp_ms:function(e,t){return new Date(t+e.offset_utc(t))},get_cal_utc:function(e,t,i){return new Date(Date.UTC(e,t,i))},cal_to_utc:function(e,t){var i=t.getTime();return i-e.offset_loc(i)},get_timezone:function(e){return new n(e)},shift_day:function(e,t){var i=e-1;return(i+=t)>6?i%=7:i<0&&(i=(7+i%7)%7),i+1}};e.exports=p},43891:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LINESTYLE_SOLID:()=>s,LINESTYLE_DOTTED:()=>r,LINESTYLE_DASHED:()=>n,LINESTYLE_LARGE_DASHED:()=>o,LINESTYLE_SPARSE_DOTTED:()=>a,LINESTYLE_SMALL_DASHED:()=>l});const s=0,r=1,n=2,o=3,a=4,l=5},29892:(e,t,i)=>{"use strict";var s=i(64514),r=s.greaterThan,n=s.lessThan,o=window.CanvasEx=i(43891);o.computeDashPattern=function(e){return[[e.lineWidth,2*e.lineWidth],[5*e.lineWidth,6*e.lineWidth],[6*e.lineWidth,6*e.lineWidth],[e.lineWidth,4*e.lineWidth],[2*e.lineWidth,e.lineWidth]][e.lineStyle-1]},o.drawLine=function(e,t,i,s,r){ +isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)&&(e.lineStyle!==o.LINESTYLE_SOLID?o.drawDashedLine(e,t,i,s,r):o.drawSolidLine(e,t,i,s,r))},o.drawArrow=function(e,t,i,s,r,n){if(isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)){var o=Math.round(n/2),a=t+o,l=s+o;e.beginPath(),e.moveTo(l,r),e.lineTo(a,i),e.moveTo(t,i+o),e.lineTo(a,i),e.lineTo(t+n,i+o),e.stroke()}},o.drawSolidLine=function(e,t,i,s,r){e.beginPath(),e.moveTo(t,i),e.lineTo(s,r),e.stroke()},o.setLineStyle=function(e,t){e.lineStyle=t;var i=[];t!==o.LINESTYLE_SOLID&&(i=o.computeDashPattern(e)),o.setLineDash(e,i)},o.setLineDash=function(e,t){"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t)},o.drawPoly=function(e,t,i){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var s=0;s0&&(c.thereYet=n,c.cap=Math.max),t-s>0&&(l.thereYet=n,l.cap=Math.max),e.moveTo(t,i);for(var h=t,d=i,u=0,p=!0;!l.thereYet(h,s)||!c.thereYet(d,o);){var _=Math.atan2(o-i,s-t),m=a[u];h=l.cap(s,h+Math.cos(_)*m),d=c.cap(o,d+Math.sin(_)*m),p?e.lineTo(h,d):e.moveTo(h,d),u=(u+1)%a.length,p=!p}},o.setFont=function(e,t){if(e.font!==t)try{e.font=t}catch(e){}},"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.setFont=function(e){o.setFont(this,e)},CanvasRenderingContext2D.prototype.lineStyle=o.LINESTYLE_SOLID),e.exports=o},54089:(e,t,i)=>{"use strict";i.d(t,{combineWithFilteredUpdate:()=>o,combine:()=>a});var s=i(52714),r=i.n(s);function n(e,t,...i){const s=(...t)=>e(...t.map(e=>e.value())),n=new(r())(s(...i)),o=()=>{t(...i.map(e=>e.value()))&&n.setValue(s(...i))},a=i.map(e=>e.spawn());for(const e of a)e.subscribe(o);return n.readonly().spawn(()=>a.forEach(e=>e.destroy()))}function o(e,t,...i){return n(e,t,...i)}function a(e,...t){return n(e,()=>!0,...t)}},39277:(e,t,i)=>{"use strict";i.r(t),i.d(t,{availableTimezones:()=>l,timezoneIsAvailable:()=>c,timezoneTitle:()=>h});var s=i(28353),r=i(23095);const n=[{id:"Etc/UTC",title:(0,s.t)("UTC")},{id:"exchange",title:(0,s.t)("Exchange")}],o=[{id:"Africa/Cairo",title:(0, +s.t)("Cairo"),offset:0},{id:"Africa/Johannesburg",title:(0,s.t)("Johannesburg"),offset:0},{id:"Africa/Lagos",title:(0,s.t)("Lagos"),offset:0},{id:"America/Argentina/Buenos_Aires",title:(0,s.t)("Buenos Aires"),offset:0},{id:"America/Bogota",title:(0,s.t)("Bogota"),offset:0},{id:"America/Caracas",title:(0,s.t)("Caracas"),offset:0},{id:"America/Chicago",title:(0,s.t)("Chicago"),offset:0},{id:"America/El_Salvador",title:(0,s.t)("San Salvador"),offset:0},{id:"America/Juneau",title:(0,s.t)("Juneau"),offset:0},{id:"America/Lima",title:(0,s.t)("Lima"),offset:0},{id:"America/Los_Angeles",title:(0,s.t)("Los Angeles"),offset:0},{id:"America/Mexico_City",title:(0,s.t)("Mexico City"),offset:0},{id:"America/New_York",title:(0,s.t)("New York"),offset:0},{id:"America/Phoenix",title:(0,s.t)("Phoenix"),offset:0},{id:"America/Santiago",title:(0,s.t)("Santiago"),offset:0},{id:"America/Sao_Paulo",title:(0,s.t)("Sao Paulo"),offset:0},{id:"America/Toronto",title:(0,s.t)("Toronto"),offset:0},{id:"America/Vancouver",title:(0,s.t)("Vancouver"),offset:0},{id:"US/Mountain",title:(0,s.t)("Denver"),offset:0},{id:"Asia/Almaty",title:(0,s.t)("Almaty"),offset:0},{id:"Asia/Ashkhabad",title:(0,s.t)("Ashgabat"),offset:0},{id:"Asia/Bahrain",title:(0,s.t)("Bahrain"),offset:0},{id:"Asia/Bangkok",title:(0,s.t)("Bangkok"),offset:0},{id:"Asia/Chongqing",title:(0,s.t)("Chongqing"),offset:0},{id:"Asia/Dubai",title:(0,s.t)("Dubai"),offset:0},{id:"Asia/Ho_Chi_Minh",title:(0,s.t)("Ho Chi Minh"),offset:0},{id:"Asia/Hong_Kong",title:(0,s.t)("Hong Kong"),offset:0},{id:"Asia/Jakarta",title:(0,s.t)("Jakarta"),offset:0},{id:"Asia/Jerusalem",title:(0,s.t)("Jerusalem"),offset:0},{id:"Asia/Karachi",title:(0,s.t)("Karachi"),offset:0},{id:"Asia/Kathmandu",title:(0,s.t)("Kathmandu"),offset:0},{id:"Asia/Kolkata",title:(0,s.t)("Kolkata"),offset:0},{id:"Asia/Kuwait",title:(0,s.t)("Kuwait"),offset:0},{id:"Asia/Manila",title:(0,s.t)("Manila"),offset:0},{id:"Asia/Muscat",title:(0,s.t)("Muscat"),offset:0},{id:"Asia/Qatar",title:(0,s.t)("Qatar"),offset:0},{id:"Asia/Riyadh",title:(0,s.t)("Riyadh"),offset:0},{id:"Asia/Seoul",title:(0,s.t)("Seoul"),offset:0},{id:"Asia/Shanghai",title:(0,s.t)("Shanghai"),offset:0},{id:"Asia/Singapore",title:(0,s.t)("Singapore"),offset:0},{id:"Asia/Taipei",title:(0,s.t)("Taipei"),offset:0},{id:"Asia/Tehran",title:(0,s.t)("Tehran"),offset:0},{id:"Asia/Tokyo",title:(0,s.t)("Tokyo"),offset:0},{id:"Atlantic/Reykjavik",title:(0,s.t)("Reykjavik"),offset:0},{id:"Australia/Adelaide",title:(0,s.t)("Adelaide"),offset:0},{id:"Australia/Brisbane",title:(0,s.t)("Brisbane"),offset:0},{id:"Australia/Perth",title:(0,s.t)("Perth"),offset:0},{id:"Australia/Sydney",title:(0,s.t)("Sydney"),offset:0},{id:"Europe/Amsterdam",title:(0,s.t)("Amsterdam"),offset:0},{id:"Europe/Athens",title:(0,s.t)("Athens"),offset:0},{id:"Europe/Belgrade",title:(0,s.t)("Belgrade"),offset:0},{id:"Europe/Berlin",title:(0,s.t)("Berlin"),offset:0},{id:"Europe/Bratislava",title:(0,s.t)("Bratislava"),offset:0},{id:"Europe/Brussels",title:(0,s.t)("Brussels"),offset:0},{id:"Europe/Bucharest",title:(0, +s.t)("Bucharest"),offset:0},{id:"Europe/Budapest",title:(0,s.t)("Budapest"),offset:0},{id:"Europe/Copenhagen",title:(0,s.t)("Copenhagen"),offset:0},{id:"Europe/Dublin",title:(0,s.t)("Dublin"),offset:0},{id:"Europe/Helsinki",title:(0,s.t)("Helsinki"),offset:0},{id:"Europe/Istanbul",title:(0,s.t)("Istanbul"),offset:0},{id:"Europe/Lisbon",title:(0,s.t)("Lisbon"),offset:0},{id:"Europe/London",title:(0,s.t)("London"),offset:0},{id:"Europe/Luxembourg",title:(0,s.t)("Luxembourg"),offset:0},{id:"Europe/Madrid",title:(0,s.t)("Madrid"),offset:0},{id:"Europe/Malta",title:(0,s.t)("Malta"),offset:0},{id:"Europe/Moscow",title:(0,s.t)("Moscow"),offset:0},{id:"Europe/Oslo",title:(0,s.t)("Oslo"),offset:0},{id:"Europe/Paris",title:(0,s.t)("Paris"),offset:0},{id:"Europe/Riga",title:(0,s.t)("Riga"),offset:0},{id:"Europe/Rome",title:(0,s.t)("Rome"),offset:0},{id:"Europe/Stockholm",title:(0,s.t)("Stockholm"),offset:0},{id:"Europe/Tallinn",title:(0,s.t)("Tallinn"),offset:0},{id:"Europe/Vilnius",title:(0,s.t)("Vilnius"),offset:0},{id:"Europe/Warsaw",title:(0,s.t)("Warsaw"),offset:0},{id:"Europe/Zurich",title:(0,s.t)("Zurich"),offset:0},{id:"Pacific/Auckland",title:(0,s.t)("New Zealand"),offset:0},{id:"Pacific/Chatham",title:(0,s.t)("Chatham Islands"),offset:0},{id:"Pacific/Fakaofo",title:(0,s.t)("Tokelau"),offset:0},{id:"Pacific/Honolulu",title:(0,s.t)("Honolulu"),offset:0},{id:"Pacific/Norfolk",title:(0,s.t)("Norfolk Island"),offset:0}],a=o.map(({id:e,title:t})=>{const{string:i,offset:s}=(0,r.parseTzOffset)(e);return{id:e,offset:s,title:`(${i}) ${t}`}}).sort((e,t)=>{const i=e.offset-t.offset;return 0!==i?i:e.title.localeCompare(t.title)}),l=n.concat(a);function c(e){for(let t=0;t{"use strict";e=i.nmd(e);const s=i(98125).getLogger("Common.Delegate");function r(){this._listeners=[]}function n(e){return!e.singleshot}r.prototype.subscribe=function(e,t,i){const s={object:e,member:t,singleshot:!!i,skip:!1};this._listeners.push(s)},r.prototype.unsubscribe=function(e,t){for(let i=0;i=0;--t){const i=this._listeners[t];i.object===e&&(i.skip=!0,this._listeners.splice(t,1))}},r.prototype.destroy=function(){delete this._listeners},r.prototype.fire=function(){const e=this._listeners;this._listeners=this._listeners.filter(n);const t=e.length;for(let i=0;i{"use strict";function s(e,t){return e<=t}function r(e,t){return e>=t}function n(e,t,i){return Math.min(Math.max(e,t),i)}function o(e){return e<0?-1:e>0?1:0}function a(e){if(e<0)return!1 +;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 c(e,t,i){return Math.abs(e-t)t?1:0}function u(e,t=d){if(e.length<1)throw Error("array is empty");let i=e[0];for(let s=0;s0&&(i=e[s]);return i}function _(e){const t=Math.ceil(e);return t%2!=0?t-1:t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}i.r(t),i.d(t,{lessThan:()=>s,greaterThan:()=>r,clamp:()=>n,sign:()=>o,isBaseDecimal:()=>a,greaterOrEqual:()=>l,equal:()=>c,log10:()=>h,defComparator:()=>d,min:()=>u,max:()=>p,ceiledEven:()=>_,toInt:()=>m})},23095:(e,t,i)=>{"use strict";i.d(t,{parseTzOffset:()=>r});var s=i(10480);function r(e,t=Date.now()){const i=(0,s.get_timezone)(e).offset_utc(t);let r="";const n=i/1e3/60/60;n%1&&(r=":"+n%1*60);let o="";return o=n>0?"+"+(n-n%1)+r:0===n?"":String(n-n%1+r),{offset:i,string:"UTC"+o}}},82029:(e,t,i)=>{"use strict";var s=i(67337),r=[{d:"E-Mini S&P 500",t:"ES"},{d:"E-Mini Nasdaq 100",t:"NQ"},{d:"Gold",t:"GC"},{d:"Silver",t:"SI"},{d:"Crude Oil WTI",t:"CL"},{d:"Natural Gas",t:"NG"},{d:"Australian Dollar",t:"6A"},{d:"Australian Dollar (Floor)",t:"AD"},{d:"Euro FX",t:"6E"},{d:"Euro FX (Floor)",t:"EC"},{d:"Corn",t:"ZC"},{d:"Corn (Floor)",t:"C"},{d:"Eurodollar",t:"GE"},{d:"Eurodollar (Floor)",t:"ED"}],n=function(){var e=[{pattern:"(",ctor:o},{pattern:")",ctor:a},{pattern:"+",ctor:c},{pattern:"-",ctor:h},{pattern:"*",ctor:d},{pattern:"/",ctor:u},{pattern:"^",ctor:p},{pattern:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,ctor:f},{pattern:/\./,ctor:y},{pattern:s.enabled("charting_library_base")?/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&]*|'.+?'/:/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&]*|'.+?'/,ctor:g},{pattern:/'[^']*/,ctor:S},{pattern:/[\0-\x20\s]+/,ctor:n}];function t(e,t){var i=function(){};return i.prototype=t.prototype,e.prototype=new i,e}function i(){}function n(e){this.value=e}function o(){}function a(){}function l(){}function c(){}function h(){}function d(){}function u(){}function p(){}i.prototype.toString=function(){return this.value},t(n,i),t(o,i),o.prototype.value="(",t(a,i),a.prototype.value=")",t(l,i),t(c,l),c.prototype.value="+",c.prototype.precedence=0,c.prototype.commutative=!0,t(h,l),h.prototype.value="-",h.prototype.precedence=0,h.prototype.commutative=!1,t(d,l),d.prototype.value="*",d.prototype.precedence=1,d.prototype.commutative=!0,t(u,l),u.prototype.value="/",u.prototype.precedence=1,u.prototype.commutative=!1,t(p,l),p.prototype.value="^",p.prototype.precedence=2,p.prototype.commutative=!1;var _=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i,m=/[+\-/*]/;function g(e){this.value=e}function f(e){this.value=e}function v(e){this.value=e}function S(){g.apply(this,arguments)}function y(){f.apply(this,arguments)}t(g,i),g.prototype.toString=function(){ +if(this.hasOwnProperty("_ticker")){var e=m.test(this._ticker)?"'":"";return e+(this._exchange?this._exchange+":":"")+this._ticker+e}return this.value},g.prototype.parse=function(){var e=_.exec(this.value);e[1]&&(this._exchange=e[1]),this._ticker=e[2]},g.prototype.parseAsFutures=function(){this.hasOwnProperty("_ticker")||this.parse();for(var e=function(e){return r.some((function(t){return t.t===e}))},t=2;t>=1;--t){var i=this._ticker.slice(0,t);if(e(i)){this._root=i,this._contract=this._ticker.slice(t);break}}},g.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},g.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract},g.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},g.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},t(f,i),f.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},f.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},v.prototype.toString=function(){return this.value},t(S,g),S.prototype.isIncomplete=!0,S.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},t(y,f),y.prototype.isIncomplete=!0;var b=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function w(t,i){var s,r=[];e:for(;s=b.exec(t);){for(var o=e.length;o--;)if(s[o+1]){if(e[o].ctor){var a=new e[o].ctor(s[o+1]);a._offset=s.index,r.push(a)}continue e}var l=new v(s[0]);l._offset=s.index,r.push(l)}if(i&&i.recover){var c;for(o=r.length;o--;){var h=r[o];if(h instanceof f||h instanceof g){if(void 0!==c){var d=new g(""),u=r.splice(o,c-o+1,d);d.value=u.map((function(e){return e.value})).join("")}c=o}else h instanceof n||(c=void 0)}}return r}function C(e){for(var t=[],i=0;in.precedence&&(s[s.length-1].minPrecedence=n.precedence);else if(n instanceof o)s.push(t={minPrecedence:1/0,openBraceIndex:r});else if(n instanceof a){var c=e[(t=s.pop()).openBraceIndex-1],h=e[r+1];h instanceof l&&!(h.precedence<=t.minPrecedence)||!(!(c instanceof l)||c.precedencet.minPrecedence&&(s[s.length-1].minPrecedence=t.minPrecedence))}}for(r=i.length;r--;)e.splice(i[r],1);return e}function T(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=w(e)).filter((function(e){return e instanceof g})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function x(e){return 1!==(e=T(e)).length?null:e[0]}function I(e,t){return(e=T(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function M(e){return e.join("")}return{tokenize:w,validate:function(e){if(s.enabled("charting_library_base"))return{currentState:"var"};for(var t="init",i={warnings:[],errors:[],isEmpty:!0},r=[],c=0;c{"use strict";i.d(t,{TranslatedString:()=>s});class s{constructor(e,t){this._originalText=e,this._translatedText=t}originalText(){return this._originalText}translatedText(){return this._translatedText}format(e){const t={},i={};for(const r of Object.keys(e)){const n=e[r];n instanceof s?(t[r]=n.originalText(),i[r]=n.translatedText()):(t[r]=n.toString(),i[r]=n.toString())}const r=this._originalText.format(t),n=this._translatedText.format(i);return new s(r,n)}}},84296:e=>{e.exports.tzData={"America/New_York":{ +time:[-2717668562,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1536530400,-1523224800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-76941e4,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-17762,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Los_Angeles":{ +time:[-2717668378,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-769420800,-765410400,-687995940,-662680800,-620866800,-608162400,-589417200,-576108e3,-557967600,-544658400,-526518e3,-513208800,-495068400,-481759200,-463618800,-450309600,-431564400,-418255200,-400114800,-386805600,-368665200,-355356e3,-337215600,-323906400,-305766e3,-292456800,-273711600,-261007200,-242262e3,-226533600,-210812400,-195084e3,-179362800,-163634400,-147913200,-13158e4,-116463600,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[-28378,-28800,-25200,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Chicago":{ +time:[-2717668236,-1633298400,-1615154400,-1601848800,-1583704800,-1563746400,-1551650400,-1538949600,-1520200800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1067810400,-1045432800,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-769413600,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-21036,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"America/Phoenix":{time:[-2717670498,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-820540740,-812678340,-796867140,-84405600,-68680800,1924966800],offset:[-26898,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"America/Toronto":{ +time:[-2366755200,-1632088800,-1615154400,-1601771400,-1583712e3,-1567375200,-1554681600,-1534716e3,-1524088800,-1503266400,-149238e4,-1471816800,-1460930400,-1440972e3,-1428876e3,-1409522400,-1397426400,-1378072800,-1365976800,-1346623200,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1188770400,-1176069600,-1157320800,-1144015200,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-880232400,-76941e4,-765410400,-747266400,-733960800,-715824e3,-702518400,-684374400,-671068800,-652924800,-634176e3,-620863200,-602719200,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-19052,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Vancouver":{ +time:[-2713910400,-1632088800,-1615154400,-880236e3,-769420800,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-386805600,-368661600,-355356e3,-337212e3,-323906400,-305762400,-292456800,-273708e3,-261007200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-29548,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Argentina/Buenos_Aires":{time:[-2372112e3,-1567468800,-1233446400,-1222992e3,-1205971200,-1194048e3,-117288e4,-1162512e3,-1141344e3,-1130976e3,-1109808e3,-109944e4,-1078272e3,-1067817600,-1046649600,-1036281600,-1015113600,-1004745600,-983577600,-973209600,-952041600,-941587200,-931046400,-900892800,-890352e3,-83376e4,-82728e4,-752284800,-733795200,-197337600,-190857600,-184204800,-164505600,-152668800,-132969600,-121132800,-101433600,-86832e3,-71107200,-54777600,-39052800,-23328e3,-7603200,128131200,136598400,596937600,605059200,624412800,636508800,656467200,667958400,687916800,699408e3,719366400,731462400,938908800,952041600,1198972800,1205625600,1224374400,1237075200,1924981200],offset:[-14028,-15408,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-10800,-10800,-7200,-10800,-7200,-10800]},"America/El_Salvador":{time:[-1546300800,546998400,559699200,578448e3,591148800,1924970400],offset:[-21408,-21600,-18e3,-21600,-18e3,-21600]},"America/Sao_Paulo":{ +time:[-1767225600,-1206968400,-1191369600,-1175385600,-1159833600,-633830400,-622076400,-602294400,-59184e4,-570758400,-560217600,-539136e3,-53136e4,-195436800,-184204800,-155174400,-150076800,-128908800,-121132800,-99964800,-89596800,-68428800,-57974400,499737600,511228800,530582400,540259200,562118400,571190400,592963200,602035200,624412800,634694400,656467200,666748800,687916800,697593600,719971200,728438400,750816e3,761702400,782265600,793152e3,813715200,823996800,84456e4,856051200,876096e3,888710400,908064e3,919555200,938908800,951609600,970963200,982454400,1003017600,1013904e3,1036281600,1045353600,1066521600,1076803200,1099353600,1108857600,1129420800,1140307200,1162684800,1172361600,119232e4,1203206400,1224374400,1234656e3,1255824e3,1266710400,1287273600,129816e4,1318723200,1330214400,1350777600,1361059200,1382227200,1392508800,1413676800,1424563200,1445126400,1456012800,1476576e3,1487462400,1508025600,1518912e3,1541289600,1550361600,1924981200],offset:[-11188,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800]},"America/Bogota":{time:[-2707689600,-1739059200,704851200,733881600,1924974e3],offset:[-17776,-17776,-18e3,-14400,-18e3]},"America/Caracas":{time:[-2524521600,-1826755200,-157766400,1197169200,1462069800,1924977600],offset:[-16064,-16060,-16200,-14400,-16200,-14400]},"Europe/Moscow":{time:[-2840140800,-1688256e3,-165681e4,-1641340800,-1627956e3,-1618700400,-1596416400,-1593804521,-1589846400,-1542416400,-1539478800,-1525305600,-1522713600,-1491177600,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1414288800,1925002800], +offset:[9017,9017,9079,12679,9079,16279,12679,16279,14400,10800,14400,18e3,14400,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800]},"Europe/Athens":{time:[-2344636800,-1686095940,-1182988800,-1178150400,-906854400,-904867200,-85725e4,-844473600,-828230400,-812419200,-552355200,-541641600,166492800,186195600,198036e3,213764400,228880800,244090800,260330400,275457600,291805200,307418400,323395200,338947200,354682800,370411200,386132400,401860800,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5692,5692,7200,10800,7200,10800,7200,3600,7200,3600,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Belgrade":{ +time:[-2713910400,-905821200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-777938400,-766616400,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4920,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Berlin":{time:[-2422051200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-938901600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-776556e3,-765925200,-761173200,-748476e3,-733266e3,-717627600,-714603600,-71037e4,-701902800,-684972e3,-670453200,-654127200,-639003600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[3208,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Bratislava":{time:[-3786825600,-2469398400,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-938901600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-765320400,-746575200,-733352400,-728514e3,-72126e4,-716421600,-701902800,-684972e3,-670453200,-654213600,-639003600,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[3464,3464,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Bucharest":{ +time:[-2469398400,-1213142400,-1187049600,-1175468400,-1159747200,-1144018800,-1127692800,-1111964400,-1096243200,-1080514800,-1064793600,-1049065200,-1033344e3,-1017615600,-1001894400,-986166e3,-970444800,-954716400,296611200,307497600,323823600,338950800,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670377600,686106e3,701827200,717555600,733276800,749005200,764726400,780451200,796176e3,811900800,828230400,846374400,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[6264,6264,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Budapest":{ +time:[-2498256e3,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1600466400,-1587243600,-1569708e3,-1555189200,-906771600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-778467600,-762649200,-749685600,-733269600,-717631200,-701902800,-686181600,-670453200,-654127200,-639003600,-492652800,-481161600,-461196e3,-449701200,-428536800,-418251600,-397087200,-386802e3,323827200,338950800,354672e3,370400400,386121600,40185e4,417571200,433299600,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4580,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/London":{ +time:[-3852662400,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-904514400,-896043600,-875484e3,-864594e3,-844034400,-832539600,-812584800,-798066e3,-781048800,-772059600,-764802e3,-748476e3,-733352400,-719445600,-717026400,-706741200,-699483600,-687996e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,-37238400,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800], +offset:[-75,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Luxembourg":{time:[-2069712e3,-1692493200,-1680476400,-1662339600,-165015e4,-1632002400,-1618693200,-1612656e3,-1604278800,-1585515600,-1574038800,-1552255200,-1539997200,-1520546400,-1507510800,-1490569200,-1473642e3,-1459116e3,-1444006800,-142767e4,-1411866e3,-1396220400,-1379293200,-1364770800,-1348448400,-1333321200,-1316394e3,-1301266800,-1284339600,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-935182800,-85725e4,-844552800,-828219600,-812498400,-797979600,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[1476,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Madrid":{time:[-2177453684,-1631926800,-1616886e3,-1601168400,-158535e4,-1442451600,-142767e4,-1379293200,-1364770800,-1348448400,-1333321200,-1316390400,-1301266800,-1284339600,-1269817200,-1026954e3,-1017615600,-1001898e3,-999478800,-986083200,-954111600,-940208400,-873075600,-862614e3,-842835600,-828313200,-811386e3,-796863600,-779936400,-765414e3,-748486800,-733964400,-652323600,-639010800,135126e3,150253200,166575600,181702800,196815600,212547600,22887e4,243997200,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[-884,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Paris":{time:[-2486592e3,-1855958400,-1689814800,-1680393600,-1665363600,-1648339200,-1635123600,-1616889600,-1604278800,-158544e4,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1470618e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1253494800,-1238371200,-1221440400,-1206921600,-1191200400,-1175472e3,-1160355600,-1143417600,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942012e3,-932432400,-85725e4,-844552800,-828219600,-812498400,-800064e3,-796258800,-781048800,-766616400,196822800,212547600,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[561,561,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Rome":{time:[-3252096e3,-2403562204,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,107913600,118198800,138758400,149648400,170812800,181098e3,202262400,212547600,233107200,243997200,265161600,276051600,296611200,307501200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[2996,2996,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Warsaw":{time:[-2840140800,-1717027200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1600466400,-1587157200,-1501718400,-931730400,-85725e4,-844552800,-828219600,-812498400,-796600800,-778723200,-762652800,-748483200,-733266e3,-715212e3,-701902800,-684972e3,-670453200,-654127200,-639003600,-397090800,-386805600,-371084400,-355356e3,-334191600,-323301600,-307580400,-291852e3,-271292400,-260402400,-239842800,-228952800,-208393200,-197503200,-176338800,-166053600,228877200,244000800,260326800,276055200,291776400,307504800,323830800,338954400,354675600,370404e3,386125200,401853600,417574800,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[5040,5040,3600,7200,3600,7200,3600,7200,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Istanbul":{time:[-2840140800,-1869868800,-1693699200,-168048e4,-1570406400,-1552176e3,-1538352e3,-1522540800,-1507507200,-1490572800,-1440201600,-1428019200,-1409702400,-1396483200,-931046400,-922665600,-917827200,-892425600,-875836800,-764726400,-744336e3,-733795200,-716428800,-701913600,-684979200,-670464e3,-654134400,-639014400,-62208e4,-60696e4,-590025600,-575510400,-235612800,-194832e3,-177724800,-165715200,107917200,121226400,133927200,152676e3,164685600,184125600,196221600,215575200,228880800,245815200,260330400,267926400,428464800,433908e3,468122400,482806800,496720800,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733280400,749008800,764125200,780458400,796179600,811908e3,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301281200,1319947200,1332644400,1351396800,1364698800,1382846400,1396234800,1414296e3,1427598e3,1446955200,1459047600,1473206400,1925002800],offset:[6952,7016,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800]},"Europe/Zurich":{ +time:[-3675196800,-2385244800,-904431600,-891122400,-872982e3,-859672800,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2048,1786,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Australia/Sydney":{time:[-2364076800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], +offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Australia/Brisbane":{time:[-2366755200,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,625629600,636519600,657079200,667969200,688528800,699418800,1925028e3],offset:[36728,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3]},"Australia/Adelaide":{time:[-2364076800,-2230156800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,637729200,657079200,667969200,688528800,701233200,719978400,731473200,752032800,764132400,783482400,796186800,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,972784800,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], +offset:[33260,32400,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800]},"Australia/ACT":{time:[-2364076800,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,-828309600,-813186e3,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Asia/Almaty":{ +time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1925013600],offset:[18468,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,21600,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600]},"Asia/Ashkhabad":{time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,192501e4],offset:[14012,14400,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,18e3,14400,18e3]},"Asia/Tokyo":{time:[-2587678861,-683769600,-672274800,-654739200,-640825200,-620265600,-609375600,-588816e3,-577926e3,1925024400],offset:[33539,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400]},"Asia/Taipei":{time:[-2335219200,-1017792e3,-766191600,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-639100800,-620784e3,-607564800,-589248e3,-576028800,-562896e3,-541728e3,-528681600,-510192e3,-497145600,-478656e3,-465609600,-449798400,-433987200,-418176e3,-402451200,-38664e4,-370915200,-355104e3,-339379200,-323568e3,-302486400,-291945600,-270950400,-260409600,134006400,149817600,165542400,181353600,299635200,307584e3,1925020800],offset:[29160,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Singapore":{time:[-2177452800,-2038176e3,-1167609600,-1073001600,-894153600,-879638400,-766972800,378691200,1925020800],offset:[24925,24925,25200,26400,26400,27e3,32400,27e3,28800]},"Asia/Karachi":{time:[-1988150400,-862617600,-764121600,-576115200,38793600,1018137600,1033862400,1212278400,1225497600,1239753600,1257033600,192501e4],offset:[16092,19800,23400,19800,18e3,18e3,21600,18e3,21600,18e3,21600,18e3]},"Asia/Manila":{time:[-3944678400,-2229292800,-1046649600,-1038700800,-873244800,-794188800,-496195200,-489283200,259372800,275184e3,1925020800],offset:[-57360,29040,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Shanghai":{ +time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Seoul":{time:[-1948752e3,-1830384e3,-767318400,-681177600,-672192e3,-654739200,-640828800,-623376e3,-609379200,-588816e3,-577929600,-498096e3,-462672e3,-451699200,-429753600,-418262400,-399513600,-387417600,-368064e3,-355968e3,-336614400,-324518400,-305164800,-293068800,-264902400,547610400,560919600,57906e4,592369200,1925024400],offset:[30472,30600,32400,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,32400,36e3,32400,36e3,32400]},"Asia/Tehran":{time:[-1704153600,-757382400,247190400,259286400,277776e3,283996800,290822400,306547200,322444800,338515200,673228800,685497600,701222400,71712e4,732758400,748656e3,764294400,780192e3,795830400,811728e3,827366400,843264e3,858988800,874886400,890524800,906422400,922060800,937958400,953596800,969494400,985219200,1001116800,1016755200,1032652800,1048291200,1064188800,1079827200,1095724800,1111449600,1127347200,1206057600,1221955200,123768e4,1253577600,1269216e3,1285113600,1300752e3,1316649600,1332288e3,1348185600,1363910400,1379808e3,1395446400,1411344e3,1426982400,144288e4,1458518400,1474416e3,1490140800,1506038400,1521676800,1537574400,1553212800,1569110400,1584748800,1600646400,1616371200,1632268800,1647907200,1663804800,1679443200,1695340800,1710979200,1726876800,1742601600,1758499200,1774137600,1790035200,1805673600,1821571200,1837209600,1853107200,1868745600,1884643200,1900368e3,1916265600,1931904e3],offset:[12344,12344,12600,14400,18e3,14400,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600]},"Asia/Dubai":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Kolkata":{time:[-3645216e3,-3155673600,-2019686400,-891561600,-872035200,-862617600,-764121600,1925011800],offset:[21208,21200,19270,19800,23400,19800,23400,19800]},"Asia/Hong_Kong":{ +time:[-2056663398,-900882e3,-891547200,-884217600,-761176800,-747878400,-728508600,-717021e3,-697059e3,-683757e3,-668028600,-654726600,-636579e3,-623277e3,-605129400,-591827400,-573679800,-559773e3,-541625400,-528323400,-510179400,-498083400,-478729800,-466633800,-446675400,-435184200,-415225800,-403129800,-383776200,-371680200,-352326600,-340230600,-320877e3,-308781e3,-288822600,-277331400,-257373e3,-245881800,-225923400,-213827400,-194473800,-182377800,-163024200,-148509e3,-132784200,-117059400,-101334600,-85609800,-69280200,-53555400,-37830600,-22105800,-6381e3,9343800,25068600,40793400,56518200,72243e3,88572600,104297400,120022200,126070200,151471800,167196600,182921400,198646200,214371e3,295414200,309324600,1925020800],offset:[27402,28800,32400,30600,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Bangkok":{time:[-2840140800,-1570060800,1925017200],offset:[24124,24124,25200]},"Asia/Chongqing":{time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Jerusalem":{ +time:[-2840140800,-1640995200,-933631200,-923086800,-919029600,-857336400,-844293600,-825800400,-812671200,-794178e3,-779839200,-762642e3,-748303200,-731106e3,-681948e3,-673214400,-667947600,-652312800,-636411600,-622072800,-608936400,-591832800,-572475600,-558568800,-542840400,-527724e3,-514414800,-490831200,-482965200,-459381600,-451515600,-428536800,-418251600,-400111200,-387406800,142387200,150854400,167184e3,178675200,334108800,337741200,452649600,46233e4,482284800,494380800,516758400,526435200,545443200,558489600,576633600,589334400,609897600,620784e3,638323200,651628800,669772800,683683200,701827200,715737600,733708800,747187200,765158400,778032e3,796608e3,810086400,826848e3,842832e3,858902400,874195200,890352e3,90504e4,923018400,936324e3,955677600,970794e3,986778e3,1001293200,1017363600,1033952400,1048813200,1065142800,1081299600,1095814800,1112320800,1128823200,1143770400,1159668e3,117522e4,1189908e3,1206669600,1223172e3,1238119200,1254016800,1269568800,1284256800,1301623200,1317520800,1333072800,1348365600,1364522400,1382839200,1395972e3,1414288800,1427421600,1445738400,1458871200,1477792800,1490320800,1509242400,1521770400,1540692e3,1553824800,1572141600,1585274400,1603591200,1616724e3,1635645600,1648173600,1667095200,1679623200,1698544800,1711677600,1729994400,1743127200,1761444e3,1774576800,1792893600,1806026400,1824948e3,1837476e3,1856397600,1868925600,1887847200,190098e4,1919296800,1932429600],offset:[8454,8440,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Asia/Kuwait":{time:[-719625600,1925002800],offset:[11212,10800]},"Asia/Muscat":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Qatar":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Riyadh":{time:[-719625600,1925002800],offset:[11212,10800]},"Pacific/Auckland":{ +time:[-3192393600,-1330293600,-1320012e3,-1300658400,-1287352800,-1269208800,-1255903200,-1237759200,-1224453600,-1206309600,-1192399200,-117486e4,-1160949600,-1143410400,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-757382400,152676e3,162356400,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,510116400,530676e3,541566e3,562125600,573620400,59418e4,60507e4,623815200,637729200,655264800,669178800,686714400,700628400,718164e3,732682800,749613600,764132400,781063200,795582e3,812512800,827031600,844567200,858481200,876016800,889930800,907466400,921985200,938916e3,953434800,970365600,984884400,100242e4,1016334e3,1033869600,1047783600,1065319200,1079838e3,1096768800,1111287600,1128218400,1142737200,1159668e3,1174186800,1191117600,1207450800,1222567200,1238900400,1254016800,127035e4,1285466400,1301799600,1316916e3,1333249200,1348970400,1365303600,138042e4,1396753200,1411869600,1428202800,1443319200,1459652400,1474768800,1491102e3,1506218400,1522551600,1538272800,1554606e3,1569722400,1586055600,1601172e3,1617505200,1632621600,1648954800,1664071200,1680404400,1695520800,1712458800,1727575200,1743908400,1759024800,1775358e3,1790474400,1806807600,1821924e3,1838257200,1853373600,1869706800,1885428e3,1901761200,1916877600,1933210800],offset:[41944,41400,45e3,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800]},"Pacific/Chatham":{ +time:[-3192393600,-757382400,152678700,162359100,183523500,195018300,215577900,226467900,247027500,257917500,278477100,289367100,309926700,320816700,341376300,352266300,372825900,384320700,404880300,415770300,436329900,447219900,467779500,478669500,499229100,510119100,530678700,541568700,562128300,573623100,594182700,605072700,623817900,637731900,655267500,669181500,686717100,700631100,718166700,732685500,749616300,764135100,781065900,795584700,812515500,827034300,844569900,858483900,876019500,889933500,907469100,921987900,938918700,953437500,970368300,984887100,1002422700,1016336700,1033872300,1047786300,1065321900,1079840700,1096771500,1111290300,1128221100,1142739900,1159670700,1174189500,1191120300,1207453500,1222569900,1238903100,1254019500,1270352700,1285469100,1301802300,1316918700,1333251900,1348973100,1365306300,1380422700,1396755900,1411872300,1428205500,1443321900,1459655100,1474771500,1491104700,1506221100,1522554300,1538275500,1554608700,1569725100,1586058300,1601174700,1617507900,1632624300,1648957500,1664073900,1680407100,1695523500,1712461500,1727577900,1743911100,1759027500,1775360700,1790477100,1806810300,1821926700,1838259900,1853376300,1869709500,1885430700,1901763900,1916880300,1933213500],offset:[44028,44100,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500]},"Pacific/Fakaofo":{time:[-2177452800,1325203200,1925038800],offset:[-41096,-39600,46800]},"Pacific/Honolulu":{time:[-2334139200,-1157320800,-1155470400,-880236e3,-769429800,-765410400,-712188e3,1924956e3],offset:[-37886,-37800,-34200,-37800,-34200,-34200,-37800,-36e3]},"America/Mexico_City":{ +time:[-1514763396,-1343091600,-1234828800,-1220317200,-1207180800,-1191369600,-975283200,-963187200,-917136e3,-907372800,-821923200,-810086400,-627523200,-613008e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,989114400,1001815200,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1175392800,1193536800,1207447200,1224986400,1238896800,1256436e3,1270346400,1288490400,1301796e3,131994e4,1333245600,1351389600,13653e5,1382839200,1396749600,1414288800,1428199200,1445738400,1459648800,1477792800,1491098400,1509242400,1522548e3,1540692e3,1554602400,1572141600,1586052e3,1603591200,1617501600,1635645600,1648951200,1667095200,1680400800,1698544800,1712455200,1729994400,1743904800,1761444e3,1775354400,1792893600,1806804e3,1824948e3,1838253600,1856397600,1869703200,1887847200,1901757600,1919296800,1933207200],offset:[-23796,-25200,-21600,-25200,-21600,-25200,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"Africa/Cairo":{time:[-2185401600,-929836800,-923097600,-906163200,-892857600,-875836800,-857779200,-844300800,-825811200,-812678400,-794188800,-779846400,-762652800,-399081600,-38664e4,-368323200,-355104e3,-336783600,-323643600,-305161200,-292021200,-273625200,-260485200,-242089200,-228949200,-210553200,-197413200,-178930800,-165790800,-147394800,-134254800,-115858800,-102632400,-84322800,-71096400,-52700400,-39474e3,-21164400,-7938e3,10371600,23598e3,41907600,55134e3,7353e4,86756400,105066e3,118292400,136602e3,149828400,168138e3,181364400,199760400,212986800,231296400,244522800,262832400,276058800,294368400,307594800,325990800,339217200,357526800,370753200,396406800,402289200,426819600,433825200,452221200,465447600,483757200,496983600,515293200,528519600,546829200,560055600,578451600,591678e3,610419600,623214e3,641523600,65475e4,673059600,686286e3,704682e3,717908400,736218e3,749444400,767754e3,780980400,799027200,812332800,830476800,843782400,861926400,875232e3,893376e3,906681600,925430400,938736e3,95688e4,970185600,988329600,1001635200,1019779200,1033084800,1051228800,1064534400,1083283200,1096588800,1114732800,1128038400,1146182400,1158883200,1177632e3,1189123200,1209081600,1219968e3,1240531200,1250812800,1272585600,1281484800,1284076800,1285891200,1400198400,1403827200,1406851200,1411689600,1924999200], +offset:[7509,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Africa/Johannesburg":{time:[-2458166400,-2109283200,-860968800,-845244e3,-829519200,-813794400,1924999200],offset:[6720,5400,7200,10800,7200,10800,7200]},"Asia/Kathmandu":{time:[-1577923200,504921600,1925012700],offset:[20476,19800,20700]},"US/Mountain":{time:[-2717668796,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1538949600,-1534111200,-880236e3,-769417200,-765410400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-25196,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"Europe/Helsinki":{time:[-2890252800,-1535932800,-875664e3,-859762800,354679200,370407600,386128800,401857200,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5989,5989,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Stockholm":{ +time:[-2871676800,-2208988800,-1692493200,-1680476400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4332,3614,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Copenhagen":{time:[-2524521600,-2398291200,-1692493200,-1680483600,-935107200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-769381200,-747007200,-736376400,-715212e3,-706741200,-683157600,-675291600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[3020,3020,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Atlantic/Reykjavik":{time:[-1956614400,-1668214800,-1647212400,-1636678800,-161343e4,-1605142800,-1581894e3,-1539565200,-153135e4,-968029200,-952293600,-942012e3,-920239200,-909961200,-888789600,-877906800,-857944800,-846457200,-826495200,-815007600,-795045600,-783558e3,-762991200,-752108400,-731541600,-717634800,-700092e3,-686185200,-668642400,-654735600,-636588e3,-623286e3,-605743200,-591836400,-573688800,-559782e3,-542239200,-528332400,-510789600,-496882800,-47934e4,-465433200,-447890400,-433983600,-415836e3,-401929200,-384386400,-370479600,-352936800,-33903e4,-321487200,-307580400,-290037600,-276130800,-258588e3,-244681200,-226533600,-212626800,-195084e3,-181177200,-163634400,-149727600,-132184800,-118278e3,-100735200,-86828400,-68680800,-54774e3,1924992e3],offset:[-5280,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0]},"Europe/Tallinn":{time:[-2840140800,-1638316800,-1632002400,-1618693200,-1593820800,-1535932800,-927936e3,-892944e3,-85725e4,-844552800,-828219600,-812498400,-797644800,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909288e3,92259e4,941342400,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3], +offset:[5940,5940,3600,7200,3600,5940,7200,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Riga":{time:[-2840140800,-1632002400,-1618693200,-1601676e3,-1597266e3,-1377302400,-928022400,-899510400,-85725e4,-844552800,-828219600,-812498400,-79677e4,-795830400,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,843966e3,859690800,877838400,891140400,909288e3,92259e4,941342400,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5794,5794,9394,5794,9394,5794,7200,10800,7200,3600,7200,3600,7200,3600,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Vilnius":{ +time:[-2840140800,-1672531200,-1585094400,-1561248e3,-1553558400,-928195200,-900115200,-85725e4,-844552800,-828219600,-812498400,-802137600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891140400,909284400,922586400,941338800,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[6076,5040,5736,3600,7200,3600,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,7200,3600,7200,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"America/Lima":{time:[-2524521600,-1938556800,-1009843200,-1002067200,-986774400,-971049600,-955324800,-9396e5,504921600,512697600,536457600,544233600,631152e3,638928e3,757382400,765158400,1924974e3],offset:[-18492,-18516,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Santiago":{ +time:[-2524521600,-1892678400,-1688428800,-1619222400,-1593820800,-1336003200,-13176e5,-1304380800,-1286064e3,-1272844800,-1254528e3,-1241308800,-1222992e3,-1209772800,-1191369600,-1178150400,-870566400,-865296e3,-740534400,-736387200,-718070400,-713667600,-36633600,-23932800,-3369600,7516800,24451200,37756800,55900800,69206400,87955200,100656e3,118195200,132105600,150854400,163555200,182304e3,195609600,213753600,227059200,245203200,258508800,277257600,289958400,308707200,321408e3,340156800,353462400,371606400,384912e3,403056e3,416361600,434505600,447811200,46656e4,479260800,498009600,510710400,529459200,545184e3,560908800,574214400,592358400,605664e3,624412800,637113600,653443200,668563200,687312e3,700617600,718761600,732067200,750211200,763516800,781660800,794966400,813715200,826416e3,845164800,85968e4,876614400,88992e4,906854400,923184e3,939513600,952819200,971568e3,984268800,1003017600,1015718400,1034467200,1047168e3,1065916800,1079222400,1097366400,1110672e3,1128816e3,1142121600,1160870400,1173571200,119232e4,1206835200,1223769600,1237075200,1255219200,1270339200,1286668800,1304812800,1313884800,1335657600,1346544e3,1367107200,1378598400,1398556800,1410048e3,1463270400,1471132800,149472e4,1502582400,1526169600,1534032e3,1554595200,1567900800,1586044800,1599350400,1617494400,16308e5,1648944e3,1662249600,1680393600,1693699200,1712448e3,1725753600,1743897600,1757203200,1775347200,1788652800,1806796800,1820102400,1838246400,1851552e3,1870300800,1883001600,1901750400,1915056e3,19332e5],offset:[-16966,-16966,-18e3,-16966,-14400,-16966,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-10800,-14400,-18e3,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800]},"Asia/Bahrain":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Jakarta":{time:[-3231273600,-1451693568,-117288e4,-876614400,-766022400,-683856e3,-620784e3,-189388800,1925017200],offset:[25632,25632,26400,27e3,32400,27e3,28800,27e3,25200]},"Africa/Lagos":{time:[-2035584e3,-1940889600,-1767225600,-1588464e3,1924995600],offset:[815,0,815,1800,3600]},"Pacific/Norfolk":{ +time:[-2177452800,-599616e3,152071200,162961200,1443924e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[40312,40320,41400,45e3,41400,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200]},"America/Juneau":{time:[-3225169588,-2188987200,-880236e3,-769420800,-765410400,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,438998400,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[54139,-32261,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-28800,-28800,-25200,-28800,-25200,-28800,-25200,-32400,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400]},"Asia/Ho_Chi_Minh":{time:[-2004048e3,-1851552e3,-852080400,-782614800,-767836800,-718070400,-457747200,-315622800,171849600,1925017200],offset:[25600,25590,25200,28800,32400,25200,28800,25200,28800,25200]},"Australia/Perth":{ +time:[-2337897600,-1672524e3,-1665349200,-883605600,-876085200,-860364e3,-844635600,152071200,162961200,436327200,447217200,690343200,699418800,1165111200,1174791600,1193536800,1206846e3,1224986400,1238295600,1925020800],offset:[27804,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Europe/Malta":{time:[-2403475200,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812584800,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,102384e3,118112400,135734400,148525200,167191200,180496800,198640800,211946400,230090400,243396e3,26154e4,274845600,292989600,306295200,323316e3,338349600,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[3484,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Amsterdam":{ +time:[-4260211200,-1693699200,-168048e4,-1663452e3,-1650142800,-1633212e3,-1617483600,-1601157600,-1586034e3,-1569708e3,-1554584400,-1538258400,-1523134800,-15075e5,-1490562e3,-1470175200,-1459112400,-1443996e3,-1427662800,-1406671200,-1396213200,-1376949600,-1364763600,-1345413600,-1333314e3,-1313791200,-1301259600,-1282255200,-126981e4,-1250719200,-1238360400,-1219183200,-1206910800,-1186956e3,-1175461200,-1156024800,-1143406800,-1124488800,-1111957200,-1092952800,-1080507600,-1061330400,-1049058e3,-1029189600,-1025740800,-1017608400,-998258400,-986158800,-966722400,-954104400,-935020800,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-766616400,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1172,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,4800,1200,4800,1200,4800,1200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Brussels":{ +time:[-2840140800,-2450994150,-1740355200,-1693699200,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1613822400,-1604278800,-1585526400,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1473642e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-934664400,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1050,1050,0,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Lisbon":{ +time:[-1830386205,-1689555600,-1677798e3,-1667437200,-1647734400,-1635814800,-1616198400,-1604365200,-1584662400,-1572742800,-155304e4,-1541206800,-1521504e3,-1442451600,-1426809600,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1221440400,-1206921600,-1191200400,-1175472e3,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942022800,-922665600,-906944400,-891129600,-877309200,-873680400,-864e6,-857952e3,-845859600,-842835600,-831340800,-825897600,-81441e4,-810781200,-799891200,-794448e3,-782960400,-779331600,-768441600,-762998400,-749091600,-733363200,-717631200,-701902800,-686181600,-670453200,-654732e3,-639003600,-623282400,-607554e3,-591832800,-575499600,-559778400,-54405e4,-528328800,-512600400,-496879200,-481150800,-465429600,-449701200,-43398e4,-417646800,-401925600,-386197200,-370476e3,-354747600,-339026400,-323298e3,-307576800,-291848400,-276127200,-260398800,-244677600,-228344400,-212623200,-196894800,-181173600,-165445200,-149724e3,-133995600,-118274400,212547600,228268800,243997200,260323200,276051600,291772800,307504800,323222400,338954400,354675600,370404e3,386125200,401853600,417578400,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-2205,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,7200,3600,7200,3600,7200,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Dublin":{ +time:[-2821651200,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-733352400,-719445600,-699483600,-684972e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-1500,-1521,2079,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Oslo":{ +time:[-2366755200,-1691881200,-1680566400,-927507600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-765320400,-340840800,-324507600,-308786400,-293058e3,-277336800,-261608400,-245887200,-230158800,-214437600,-198709200,-182988e3,-166654800,-147909600,-135205200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2580,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]}}},15625:(e,t,i)=>{"use strict";i.d(t,{Version:()=>r});var s=i(88537);class r{constructor(e,t){this._major=e,this._minor=t}major(){return this._major}minor(){return this._minor}isZero(){return 0===this._major&&0===this._minor}toString(){return this._major+"."+this._minor}compareTo(e){return this._majore._major?1:this._minore._minor?1:0}isLess(e){return this.compareTo(e)<0}isLessOrEqual(e){return this.compareTo(e)<=0}isEqual(e){return 0===this.compareTo(e)}isGreater(e){return this.compareTo(e)>0}isGreaterOrEqual(e){return this.compareTo(e)>=0}static parse(e){if(e instanceof r)return new r(e.major(),e.minor());if("number"==typeof e)return(0,s.assert)(Math.floor(e)===e,"Version should not be a float number"),new r(e,0);if("string"==typeof e){const t=e.split(".");if(1===t.length){const i=parseInt(t[0],10);return(0,s.assert)(!isNaN(i),"Bad version string: "+e),new r(i,0)}if(2===t.length){const i=parseInt(t[0],10);(0,s.assert)(!isNaN(i),"Bad version string: "+e);const n=parseInt(t[1],10);return(0, +s.assert)(!isNaN(n),"Bad version string: "+e),new r(i,n)}throw new Error("Bad version string (one dot expected): "+e)}throw new Error("Bad version: "+e)}}r.ZERO=new r(0,0)},40144:(e,t,i)=>{"use strict";i.d(t,{WatchedObject:()=>a});var s=i(52714),r=i.n(s),n=i(80643);function o(e,t){return(0,n.deepEquals)(e,t)[0]}class a extends(r()){constructor(e,t=o){super(e),this._comparator=t}setValue(e,t){!1===this._comparator(this.value(),e)&&super.setValue(e,t)}}},52714:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(98125).getLogger("Common.WatchedValue");function r(){}function n(e){if(!(this instanceof n))return new n(e);arguments.length>0&&(this._value=e),this._listeners=[]}n.prototype.value=function(){return this._owner?this._owner._value:this._value},n.prototype.setValue=function(e,t){var i=this._owner?this._owner:this;if("function"==typeof i.hook&&(e=i.hook(e)),i.writeLock)return i._value;var r=i._value===e||Number.isNaN(i._value)&&Number.isNaN(e);if(!t&&r&&i.hasOwnProperty("_value"))return e;i._value=e;for(var n=i._listeners.slice(),o=0,a=0;a{"use strict";i.d(t,{TOOLBAR_WIDTH_EXPANDED:()=>s,TOOLBAR_WIDTH_COLLAPSED:()=>r});const s=52,r=5},84746:(e,t,i)=>{"use strict";i.d(t,{DrawingToolbarBootloader:()=>a});var s=i(85593),r=i(45216),n=i(38881),o=i(5683);class a extends n.ChunkLoader{constructor(e){super(),this._opts=e,s.isDrawingToolbarVisible.value()&&(this._opts.resizerBridge.negotiateWidth(r.TOOLBAR_WIDTH_EXPANDED),this._opts.resizerBridge.container.value().appendChild((0,o.createStubElem)()))}_startLoading(){return Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(1112),i.e(4763),i.e(323),i.e(5175),i.e(7757),i.e(9255),i.e(6438),i.e(8994),i.e(1890),i.e(1550),i.e(2878)]).then(i.bind(i,26862)).then(e=>new e.DrawingToolbarRenderer(this._opts.resizerBridge.container.value(),{...this._opts}))}}},85593:(e,t,i)=>{"use strict";i.d(t,{isDrawingToolbarVisible:()=>c});var s=i(56840),r=i(67337),n=i(52714),o=i.n(n);const a=!r.enabled("hide_left_toolbar_by_default"),l=s.getBool("ChartDrawingToolbarWidget.visible",a),c=new(o())(l)},9753:(e,t,i)=>{"use strict";i.d(t,{HeaderToolbarBootloader:()=>o});var s=i(18387),r=i(5683),n=i(38881);class o extends n.ChunkLoader{constructor(e,t){super(),this._toolsBootloader=e,this._headerProps=t,this._headerProps.resizerBridge.negotiateHeight(s.HEADER_TOOLBAR_HEIGHT_EXPANDED),this._headerProps.resizerBridge.container.value().appendChild((0,r.createStubElem)())}_startLoading(){return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then(([e,t])=>new t(this._headerProps.resizerBridge.container.value(),{...this._headerProps,tools:e}))}_loadHeaderToolbar(){return Promise.all([i.e(5514),i.e(8268),i.e(1320),i.e(9255),i.e(3005)]).then(i.bind(i,53335)).then(e=>e.HeaderToolbarRenderer)}}},18387:(e,t,i)=>{"use strict";i.d(t,{HEADER_TOOLBAR_HEIGHT_EXPANDED:()=>r,HEADER_TOOLBAR_HEIGHT_COLLAPSED:()=>n});var s=i(98033);const r=parseInt(s["css-value-header-toolbar-height"]),n=3},84120:(e,t,i)=>{"use strict";i.d(t,{RestrictedToolsetBootloader:()=>r});var s=i(38881);class r extends s.ChunkLoader{_startLoading(){return Promise.all([i.e(5514),i.e(9129),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(3921),i.e(5998),i.e(1112),i.e(6909),i.e(4763),i.e(7419),i.e(4408),i.e(9042),i.e(976),i.e(4474),i.e(8054),i.e(5175),i.e(3944),i.e(3645),i.e(9255),i.e(6438),i.e(8994),i.e(638),i.e(5516)]).then(i.bind(i,79389)).then(e=>e.getRestrictedToolSet())}}},22668:(e,t,i)=>{"use strict";i.d(t,{FavoriteStudyTemplateService:()=>r});var s=i(9127);class r extends s.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_STUDY_TEMPLATES_CHANGED","StudyTemplates.quicks",[])}remove(e){this.set(this.get().filter(t=>t!==e))}}},52741:(e,t,i)=>{"use strict";i.d(t,{DropdownApi:()=>s});class s{constructor(e,t){this._headerToolbar=e,this._dropdownId=t}applyOptions(e){this._headerToolbar.updateDropdown(this._dropdownId,e)}remove(){this._headerToolbar.removeDropdown(this._dropdownId)}}}, +62060:(e,t,i)=>{"use strict";var s;i.d(t,{ACTION_ID:()=>s}),function(e){e.TVActionId="TVActionId",e.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",e.ChartChangeTimeZone="Chart.ChangeTimeZone",e.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",e.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",e.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",e.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",e.ChartDialogsShowGeneralSettingsScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",e.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",e.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",e.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",e.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",e.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",e.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",e.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",e.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",e.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",e.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",e.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",e.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",e.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",e.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",e.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",e.ChartMoveChartInLayout="Chart.MoveChartInLayout",e.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",e.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",e.ChartObjectTreeShow="Chart.ObjectTree.Show",e.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",e.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",e.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",e.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",e.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",e.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",e.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",e.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",e.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft", +e.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",e.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",e.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",e.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",e.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",e.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",e.ChartRedo="Chart.Redo",e.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",e.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",e.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",e.ChartScalesReset="Chart.Scales.Reset",e.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",e.ChartSelectedObjectHide="Chart.SelectedObject.Hide",e.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",e.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",e.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",e.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",e.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",e.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",e.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",e.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",e.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",e.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",e.ChartTimeScaleReset="Chart.TimeScale.Reset",e.ChartUndo="Chart.Undo"}(s||(s={}))},28296:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Action:()=>l,ActionAsync:()=>c,Separator:()=>h,Loader:()=>d});var s=i(88537),r=i(2872),n=i.n(r),o=i(68335),a=i(9423);class l{constructor(e,t=a.guid()){this.type="action",this._destroyed=!1,this._binding=null,(0,s.assert)(void 0!==e.actionId,"actionId must be defined"),this.id=t,this._onUpdate=new(n()),this._options=e,this.update(e)}execute(){this._options.checkable&&this.update({checked:!this._options.checked}),this._options.onExecute&&this._options.onExecute(this)}getLabel(){return this._options.label||""}getSubItems(){return this._options.subItems||[]}isDisabled(){return!0===this._options.disabled}isActive(){return!0===this._options.active}isCheckable(){return!0===this._options.checkable}isChecked(){return!0===this._options.checked}isLoading(){return!0===this._options.loading}getSize(){var e;return null!==(e=this._options.size)&&void 0!==e?e:"normal"}getPayload(){return this._options.payload}update(e){this._destroyed||(this._unbindShortcut(),e.hotkeyHash&&(this._options.shortcutHint=(0,o.humanReadableHash)(e.hotkeyHash)),this._options=Object.assign(this._options,e),this._bindShortcut(),this._onUpdate.fire(this))}onUpdate(){return this._onUpdate}getState(){return{actionId:this._options.actionId,label:this.getLabel(),disabled:this.isDisabled(), +active:this.isActive(),subItems:this.getSubItems(),checkable:this.isCheckable(),checked:this.isChecked(),loading:this.isLoading(),size:this.getSize(),doNotCloseOnClick:this._options.doNotCloseOnClick||!1,shortcutHint:this._options.shortcutHint,hint:this._options.hint,icon:this._options.icon,iconChecked:this._options.iconChecked,toolbox:this._options.toolbox,showToolboxOnHover:this._options.showToolboxOnHover||!1,statName:this._options.statName,name:this._options.name,invisibleHotkey:this._options.invisibleHotkey,noInteractive:this._options.noInteractive}}getBinding(){return this._binding}setBinding(e){this._binding=e}destroy(){var e,t;this._destroyed=!0,this._onUpdate.destroy(),null!==this._binding&&this._binding.destroy(),this._unbindShortcut(),null===(t=(e=this._options).onDestroy)||void 0===t||t.call(e)}options(){return this._options}_bindShortcut(){if(!this._options.hotkeyGroup||!this._options.hotkeyHash)return;const e="string"==typeof this._options.label?this._options.label:this._options.name;this._hotkeyAction=this._options.hotkeyGroup.add({hotkey:this._options.hotkeyHash,desc:e,handler:()=>this.execute(),isDisabled:()=>this.isDisabled()})}_unbindShortcut(){this._hotkeyAction&&(this._hotkeyAction.destroy(),delete this._hotkeyAction)}}class c extends l{constructor(e,t,i){super({actionId:e},i),this._loader=t,this._loaded=!1}loadOptions(){return this._loadingPromise||(this._loadingPromise=this._loader().then(e=>{this._loaded=!0,this.update(e)})),this._loadingPromise}getState(){return this.loadOptions(),super.getState()}isLoading(){return!this.isLoaded()}isLoaded(){return this._loaded}}class h{constructor(e){this.type="separator",this.id=a.guid(),this._hint=e}getHint(){return this._hint}}class d extends l{constructor(e){super({actionId:e})}isLoading(){return!0}getSize(){return"big"}}},61671:(e,t,i)=>{"use strict";i.d(t,{defaultContextMenuOptions:()=>Ie,createPasteAction:()=>Me,createActionCopyPrice:()=>Le,createMTPredictorActions:()=>Ae,createLinesAction:()=>Ee,createSyncDrawingActions:()=>ke,ActionsProvider:()=>De});var s=i(88537),r=i(98125),n=(i(60521),i(80643)),o=i(67337),a=i(28296),l=i(62138),c=i(41847),h=i(81851),d=(i(73591),i(13672)),u=i(56756),p=i(68335),_=(i(25812),i(9771)),m=i(55153),g=(i(37667),i(88679)),f=i(94578),v=i(14291),S=i(79680),y=i(82724),b=i(28353),w=i(24980);i(85733);(0,r.getLogger)("Chart.ActionsProvider"),new w.TranslatedString("show alert label lines",(0,b.t)("show alert label lines")),new w.TranslatedString("hide alert label lines",(0,b.t)("hide alert label lines"));const C=new w.TranslatedString("change visibility",(0,b.t)("change visibility")),P=new w.TranslatedString("pin to scale {label}",(0,b.t)("pin to scale {label}")),T=new w.TranslatedString("pin to right scale",(0,b.t)("pin to right scale")),x=new w.TranslatedString("pin to left scale",(0,b.t)("pin to left scale")),I=(new w.TranslatedString("change earnings visibility",(0,b.t)("change earnings visibility")),new w.TranslatedString("change dividends visibility",(0,b.t)("change dividends visibility")), +new w.TranslatedString("change splits visibility",(0,b.t)("change splits visibility")),new w.TranslatedString("change continuous contract switch visibility",(0,b.t)("change continuous contract switch visibility")),new w.TranslatedString("show all ideas",(0,b.t)("show all ideas"))),M=new w.TranslatedString("show ideas of followed users",(0,b.t)("show ideas of followed users")),L=new w.TranslatedString("show my ideas only",(0,b.t)("show my ideas only")),A=(new w.TranslatedString("change events visibility on chart",(0,b.t)("change events visibility on chart")),new w.TranslatedString("add this symbol to entire layout",(0,b.t)("add this symbol to entire layout"))),E=new w.TranslatedString("add this indicator to entire layout",(0,b.t)("add this indicator to entire layout")),k=(new w.TranslatedString("add this strategy to entire layout",(0,b.t)("add this strategy to entire layout")),new w.TranslatedString("add this financial metric to entire layout",(0,b.t)("add this financial metric to entire layout")),new w.TranslatedString("apply drawing template",(0,b.t)("apply drawing template")),new w.TranslatedString("lock objects",(0,b.t)("lock objects"))),D=new w.TranslatedString("unlock objects",(0,b.t)("unlock objects")),V=((0,b.t)("Add alert"),(0,b.t)("Add alert on {series}"),(0,b.t)("Add alert on {drawing}"),(0,y.appendEllipsis)((0,b.t)("Edit {title} alert"))),B=((0,b.t)("Extend alert lines"),(0,b.t)("Trade"),(0,y.appendEllipsis)((0,b.t)("Create limit order")),(0,b.t)("Show")),N=(0,b.t)("Hide"),R=((0,b.t)("MTPredictor"),(0,b.t)("Apply Manual Risk/Reward"),(0,b.t)("Apply Manual Decision Point"),(0,b.t)("Analyze Trade Setup"),(0,b.t)("Apply Elliott Wave"),(0,b.t)("Apply Elliott Wave Intermediate"),(0,b.t)("Apply Elliott Wave Major"),(0,b.t)("Apply Elliott Wave Minor"),(0,b.t)("Apply WPT Up Wave"),(0,b.t)("Up Wave 1 or A"),(0,b.t)("Up Wave 2 or B"),(0,b.t)("Up Wave C"),(0,b.t)("Up Wave 3"),(0,b.t)("Up Wave 4"),(0,b.t)("Up Wave 5"),(0,b.t)("Apply WPT Down Wave"),(0,b.t)("Down Wave 1 or A"),(0,b.t)("Down Wave 2 or B"),(0,b.t)("Down Wave C"),(0,b.t)("Down Wave 3"),(0,b.t)("Down Wave 4"),(0,b.t)("Down Wave 5"),(0,b.t)("Pinned to scale {label} (hidden)")),O=(0,b.t)("Pinned to right scale (hidden)"),F=(0,b.t)("Pin to scale {label} (hidden)"),W=(0,b.t)("Pin to right scale (hidden)"),H=(0,b.t)("Pinned to scale {label}"),z=(0,b.t)("Pinned to right scale"),U=(0,b.t)("Pin to scale {label}"),j=(0,b.t)("Pin to right scale"),G=(0,b.t)("Pinned to left scale (hidden)"),q=(0,b.t)("Pin to left scale (hidden)"),Y=(0,b.t)("Pinned to left scale"),K=(0,b.t)("Pin to left scale"),$=(0,b.t)("Pin to new left scale"),X=(0,b.t)("Pin to new right scale"),Z=(0,b.t)("Pin to scale (now {label})"),J=(0,b.t)("Pin to scale (now no scale)"),Q=(0,b.t)("Pin to scale (now left)"),ee=(0,b.t)("Pin to scale (now right)"),te=(0,b.t)("No scale (fullscreen)"),ie=(0,b.t)("Move to"),se=(0,b.t)("Existing pane above"),re=(0,b.t)("New pane above"),ne=(0,b.t)("Existing pane below"),oe=(0,b.t)("New pane below"),ae=(0,b.t)("Bring to front"),le=(0,b.t)("Send to back"),ce=(0, +b.t)("Bring forward"),he=(0,b.t)("Send backward"),de=(0,b.t)("Visual order"),ue=(0,b.t)("Lines"),pe=((0,y.appendEllipsis)((0,b.t)("Add indicator/strategy on {studyTitle}")),(0,y.appendEllipsis)((0,b.t)("Add financial metric for {instrumentName}")),(0,y.appendEllipsis)((0,b.t)("Settings"))),_e=((0,b.t)("Apply default"),(0,y.appendEllipsis)((0,b.t)("Save as")),(0,b.t)("Copy")),me=(0,b.t)("Clone"),ge=((0,b.t)("Template"),(0,b.t)("Go to {lineToolName}")),fe=(0,b.t)("Unlock"),ve=(0,b.t)("Lock"),Se=((0,b.t)("Show earnings"),(0,b.t)("Show dividends"),(0,b.t)("Show splits"),(0,b.t)("Show continuous contract switch"),(0,b.t)("Show all ideas")),ye=(0,b.t)("Show ideas of followed users"),be=(0,b.t)("Show my ideas only"),we=((0,y.appendEllipsis)((0,b.t)("Settings")),(0,b.t)("Hide events on chart"),(0,b.t)("Add this symbol to entire layout")),Ce=(0,b.t)("Add this indicator to entire layout"),Pe=((0,b.t)("Add this strategy to entire layout"),(0,b.t)("Add this financial metric to entire layout"),(0,b.t)("No sync"),(0,b.t)("Sync in layout"),(0,b.t)("Sync globally"),(0,y.appendEllipsis)((0,b.t)("Symbol info"))),Te=(0,b.t)("Paste"),xe=(0,b.t)("Copy price"),Ie={general:!0,mainSeries:!0,mainSeriesTrade:!1,esdStudies:!0,studies:!0,fundamentals:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!0,chartEvents:!0,objectTree:!0,gotoLineTool:!1};function Me(e,t){return!t.isEmpty()&&o.enabled("datasource_copypaste")?new a.Action({actionId:"Chart.Clipboard.PasteSource",label:Te.trim(),shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+86),statName:"Paste",onExecute:()=>e.chartWidgetCollection().clipboard.uiRequestPaste(t)}):null}function Le(e,t){var i,s,r;const n=e.defaultPriceScale(),o=void 0!==t?n.coordinateToPrice(t,null!==(s=null===(i=e.mainDataSource())||void 0===i?void 0:i.firstValue())&&void 0!==s?s:0):e.model().mainSeries().lastValueData(4,!0,!0).price,l=null===(r=e.mainDataSource())||void 0===r?void 0:r.formatter();if(void 0===o||!l)return null;const c=l.format(o);return new a.Action({actionId:"Chart.Clipboard.CopyPrice",label:`${xe} (${c})`,statName:"CopyPrice",onExecute:()=>window.navigator.clipboard.writeText(c)})}function Ae(e,t,i,s){return null}function Ee(e){const t=e.actions(),i=[t.showPriceLine];return i.push(t.showHighLowPriceLines),o.enabled("show_average_close_price_line_and_label")&&i.push(t.showAverageClosePriceLine),new a.Action({actionId:"Chart.Lines",label:ue,statName:"Lines",subItems:i})}function ke(e,t){return[]}class De{constructor(e,t){this._chartWidget=e,this._options=(0,n.merge)((0,n.clone)(Ie),t||{})}async contextMenuActionsForSources(e,t){const i=e[0],s=this._options;if(i===this._chartWidget.model().mainSeries()&&s.mainSeries)return this._contextMenuActionsForSeries(i,t);if((0,h.isStudy)(i)&&s.studies)return this._contextMenuActionsForStudy(i);if((0,v.isLineTool)(i)&&s.lineTools){const t=e.filter(v.isLineTool);return this._contextMenuActionsForLineTool(t)}return[]}_isReadOnly(){return this._chartWidget.readOnly()}_createActionHide(e){return new a.Action({actionId:"Chart.SelectedObject.Hide", +label:N,icon:i(48111),statName:"HideSelectedObject",onExecute:this._chartWidget.hideDataSources.bind(this._chartWidget,[e])})}_createActionShow(e){const t=new a.Action({actionId:"Chart.SelectedObject.Show",checkable:!0,label:B,icon:i(93418),statName:"ToggleShow"}),s=new l.ActionBinder(t,e.properties().visible,this._chartWidget.model(),C);return t.setBinding(s),s.setValue(e.properties().visible.value()),t}_createActionScale(e){const t=(0,s.ensureNotNull)(e.priceScale()),r=this._chartWidget.model().model(),n=(0,s.ensureNotNull)(r.paneForSource(e)),o=n.priceScalePosition(t),l=("left"===o?n.leftPriceScales():n.rightPriceScales()).indexOf(t),h=r.priceScaleSlotsCount().totallySlots<2?"dontneedname":"needname",d="overlay"===o?"":(0,c.getPriceAxisNameInfo)(o,l).label,u=Z.format({label:d}),p={"left-needname":u,"left-dontneedname":Q,"right-needname":u,"right-dontneedname":ee,"overlay-needname":J,"overlay-dontneedname":J}[o+"-"+h];return new a.Action({actionId:"Chart.Source.ChangePriceScale",label:p,icon:i(74645),subItems:this._createActionScaleItems(e)})}_createActionScaleDetach(e,t,i,r){const n=this._chartWidget.model().model(),o=(0,s.ensureNotNull)(n.paneForSource(e));if(!o.canCreateNewPriceScale())return null;const l=(0,s.ensureNotNull)(e.priceScale()),h=l.canDetachSource(e),d=o.priceScalePosition(l),u=h||d!==t;if(!u)return null;const p=n.priceScaleSlotsCount(),_={left:{labelled:U,sided:$},right:{labelled:U,sided:X}},m="left"===t?o.leftPriceScales().length:o.rightPriceScales().length,g=p[t]>m?"labelled":"sided",f=(0,c.getPriceAxisNameInfo)(t,m).label,v=_[t][g].format({label:f});return new a.Action({actionId:"Chart.Source.ChangePriceScale",checkable:!1,disabled:!u,label:v,statName:r,payload:e,onExecute:i})}_onDetachLeft(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToLeft(t,r)}_onDetachRight(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToRight(t,r)}_createActionScaleDetachLeft(e){return this._createActionScaleDetach(e,"left",this._onDetachLeft.bind(this),"ToggleScaleLeft")}_createActionScaleDetachRight(e){return this._createActionScaleDetach(e,"right",this._onDetachRight.bind(this),"ToggleScaleRight")}_onMoveToScale(e){const t=e.getPayload();if(t.datasource.priceScale()===t.priceScale)return;const i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t.datasource));this._chartWidget.model().moveToScale(t.datasource,r,t.priceScale,t.undoText)}_createMoveToScaleAction(e,t,i,s){const r=e.priceScale()===t;return new a.Action({actionId:"Chart.Source.MoveToOtherScale",checkable:!0,checked:r,label:i,statName:"ToggleScale",payload:{datasource:e,priceScale:t,undoText:s},onExecute:this._onMoveToScale.bind(this)})}_onNoScale(e){const t=e.getPayload().datasource,i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(t));r.isOverlay(t)||this._chartWidget.model().detachNoScale(t,r)}_createActionNoScale(e){ +const t=this._chartWidget.model().model(),i=(0,s.ensureNotNull)(t.paneForSource(e)),r=i.actionNoScaleIsEnabled(e);return new a.Action({actionId:"Chart.Source.MoveToNoScale",checkable:!0,checked:i.isOverlay(e),label:te,disabled:!r,statName:"ToggleNoScale",payload:{datasource:e},onExecute:this._onNoScale.bind(this)})}_createActionScaleItems(e){const t=[],i=this._chartWidget.model().model(),r=(0,s.ensureNotNull)(i.paneForSource(e)),n=i.priceScaleSlotsCount().totallySlots>1,o=r.rightPriceScales(),l=r.leftPriceScales(),h=this._createActionScaleDetachRight(e),d=this._createActionScaleDetachLeft(e),u=o.length+l.length+(null===h?0:1)+(null===d?0:1)>2,p={right:{hidden:{checked:{labelled:R,sided:O},unchecked:{labelled:F,sided:W}},visible:{checked:{labelled:H,sided:z},unchecked:{labelled:U,sided:j}}},left:{hidden:{checked:{labelled:R,sided:G},unchecked:{labelled:F,sided:q}},visible:{checked:{labelled:H,sided:Y},unchecked:{labelled:U,sided:K}}}},_={right:T,left:x},m={left:r.visibleLeftPriceScales(),right:r.visibleRightPriceScales()},g=(t,i)=>{const s=("right"===i?o:l)[t],r=m[i].includes(s)?"visible":"hidden",a=e.priceScale()===s?"checked":"unchecked",h=n?"labelled":"sided",d=p[i],u=(0,c.getPriceAxisNameInfo)(i,t).label;return{actionText:d[r][a][h].format({label:u}),undoText:n?P.format({label:u}):_[i]}};t.push(...o.map((t,i)=>{const s=g(i,"right");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==h&&t.push(h);u&&(o.length>0||null!==h)&&t.push(new a.Separator);t.push(...l.map((t,i)=>{const s=g(i,"left");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==d&&t.push(d);u&&(l.length>0||null!==d)&&t.push(new a.Separator);return t.push(this._createActionNoScale(e)),t}_createVisualOrderAction(e){const t=this._chartWidget.model(),s=t.availableZOrderOperations(e),r=[new a.Action({actionId:"Chart.Source.VisualOrder.BringToFront",label:ae,statName:"BringToFront",disabled:!s.bringToFrontEnabled,onExecute:()=>t.bringToFront(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.SendToBack",label:le,statName:"SendToBack",disabled:!s.sendToBackEnabled,onExecute:()=>t.sendToBack(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.BringForward",label:ce,statName:"BringForward",disabled:!s.bringForwardEnabled,onExecute:()=>t.bringForward(e)}),new a.Action({actionId:"Chart.Source.VisualOrder.SendBackward",label:he,statName:"SendBackward",disabled:!s.sendBackwardEnabled,onExecute:()=>t.sendBackward(e)})];return new a.Action({actionId:"Chart.Source.VisualOrder",label:de,icon:i(26159),statName:"VisualOrder",subItems:r})}_createActionMergeUp(e){const t=this._chartWidget.model();return t.model().isMergeUpAvailableForSource(e)?new a.Action({actionId:"Chart.Source.MergeUp",label:se,statName:"MergeUp",onExecute:()=>t.mergeSourceUp(e)}):null}_createActionUnmergeUp(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({actionId:"Chart.Source.UnmergeUp",label:re,statName:"UnmergeUp",onExecute:()=>t.unmergeSourceUp(e)}):null}_createActionMergeDown(e){ +const t=this._chartWidget.model();return t.model().isMergeDownAvailableForSource(e)?new a.Action({actionId:"Chart.Source.MergeDown",label:ne,statName:"MergeDown",onExecute:()=>t.mergeSourceDown(e)}):null}_createActionUnmergeDown(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({actionId:"Chart.Source.UnmergeDown",label:oe,statName:"UnmergeDown",onExecute:()=>t.unmergeSourceDown(e)}):null}_mergeContentMenuItems(e){return[this._createActionMergeUp(e),this._createActionUnmergeUp(e),this._createActionMergeDown(e),this._createActionUnmergeDown(e)].filter(n.notNull)}_createActionMove(e){const t=this._mergeContentMenuItems(e);return t.length>0?new a.Action({actionId:"Chart.Source.MoveToPane",label:ie,icon:i(6354),subItems:t}):null}_contextMenuActionsForSeries(e,t){var i;const r=[],n=e.properties().childs().visible.value(),l=this._chartWidget.model().model(),c=(0,s.ensureNotNull)(l.paneForSource(e)),h=this._chartWidget.actions();if(this._isReadOnly())r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(new a.Separator),r.push(this._createActionScale(e));else{0,r.length>0&&!(r[r.length-1]instanceof a.Separator)&&r.push(new a.Separator),o.enabled("symbol_info")&&r.push(h.showSymbolInfoDialog);l.mainSeries().symbolInfo();if(r.length>0&&!(r[r.length-1]instanceof a.Separator)&&r.push(new a.Separator),!c.isEmpty()&&o.enabled("datasource_copypaste")){const e=Le(c,t&&"localY"in t?t.localY:void 0),i=Me(this._chartWidget,c);(e||i)&&(e&&r.push(e),i&&r.push(i),r.push(new a.Separator))}r.push(this._createVisualOrderAction([e]));const s=this._createActionMove(e);null!==s&&r.push(s),r.push(this._createActionScale(e)),r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(new a.Separator),r.push(Ee(this._chartWidget)),r.push(new a.Separator);Boolean(null===(i=window.widgetbar)||void 0===i?void 0:i.widget("watchlist"))&&h.addToWatchlist&&r.push(h.addToWatchlist),o.enabled("text_notes")&&r.push(h.addToTextNotes),r[r.length-1]instanceof a.Separator||r.push(new a.Separator),o.enabled("show_chart_property_page")&&!this._chartWidget.onWidget()&&r.push(h.mainSeriesPropertiesAction),r[r.length-1]instanceof a.Separator&&r.pop()}return r}_createActionAddChildStudy(e){throw new Error("unsupported")}_createActionAddFundamentals(e){return null}_createActionShowSymbolInfoDialog(e,t){return new a.Action({actionId:"Chart.Dialogs.ShowSymbolInfo",label:Pe,icon:i(69061),checkable:!1,statName:"SymbolInfo",onExecute:()=>{const i=e.symbol(),s={symbolInfo:e.symbolInfo(),unitDescription:e=>t.description(e)};(0,g.showSymbolInfoDialog)(i,s)}})}_createActionShowProperties(e){return new a.Action({actionId:"Chart.Indicator.ShowSettingsDialog",label:pe,icon:i(44368),statName:"EditSelectedObject",onExecute:()=>this._chartWidget.showSourceProperties(e)})}_contextMenuActionsForStudy(e){const t=this._chartWidget.actions(),i=e.properties().visible.value(),s=[];if(!e.userEditEnabled())return s;if(this._chartWidget.readOnly())s.push(i?this._createActionHide(e):this._createActionShow(e)), +s.push(new a.Separator),e.constructor instanceof d.NonSeriesStudy||s.push(this._createActionScale(e));else{0,o.enabled("study_on_study")&&e.canHaveChildren()&&s.push(this._createActionAddChildStudy(e));const r=this._createApplyToEntireLayoutCommand(e);if(null!==r&&s.push(r),s.length>0&&!(s[s.length-1]instanceof a.Separator)&&s.push(new a.Separator),o.enabled("symbol_info")&&(e instanceof m.StudyCompare||e instanceof _.study_Overlay)&&null!==e.symbolInfo()&&(s.push(this._createActionShowSymbolInfoDialog(e,this._chartWidget.model().model().availableUnits())),s.push(new a.Separator)),s.push(this._createVisualOrderAction([e])),!(e.constructor instanceof d.NonSeriesStudy)){const t=this._createActionMove(e);null!==t&&s.push(t),s.push(this._createActionScale(e))}s.push(new a.Separator);const n=e.metaInfo();if(e.copiable()){const t=new a.Action({actionId:"Chart.Clipboard.CopySource",label:_e,shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+67),statName:"Copy",onExecute:()=>{this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy([e])}});s.push(t)}s.push(i?this._createActionHide(e):this._createActionShow(e)),s.push(t.studyRemove),s.push(new a.Separator),o.enabled("property_pages")&&new u.MetaInfoHelper(n).hasUserEditableOptions()&&s.push(this._createActionShowProperties(e)),s[s.length-1]instanceof a.Separator&&s.pop()}return s}_createEditAlertDrawingAction(e){return new TVAction({label:V.format({title:e.title()}),icon:TbbiEditAlertSvg,statName:"EditAlert",onExecute:()=>{window.runOrSignIn(()=>{e.editAlert("pane_context_menu_edit_alert")},{source:"Alert edit from pane context menu"})}})}_createLineToolTemplateAction(e){return null}_createActionToggleLockLineTools(e){const t=e[0].properties().frozen.value(),s=t?fe:ve;return new a.Action({actionId:"Chart.SelectedObject.ToggleLocked",label:s,statName:"ToggleLockSelectedObject",checkable:!0,icon:i(t?76576:54859),onExecute:()=>{if(1===e.length)this._chartWidget.toggleLockSelectedObject();else{const i=t?D:k,s=this._chartWidget.model();s.withMacro(i,()=>{e.forEach(e=>{s.setProperty(e.properties().frozen,!t,i)})})}}})}async _contextMenuActionsForLineTool(e){const t=[],s=this._chartWidget.actions(),r=(this._chartWidget.model().model(),()=>{t.push(this._createVisualOrderAction(e))}),n=()=>{const s=e.filter(e=>e.cloneable());if(s.length>0){const e=new a.Action({actionId:"Chart.LineTool.Clone",label:me,icon:i(17191),shortcutHint:(0,p.humanReadableModifiers)(p.Modifiers.Mod)+"Drag",statName:"Clone",onExecute:()=>this._chartWidget.model().cloneLineTools(s,!1)},"Clone");t.push(e)}return!!s.length},l=()=>{const i=e.filter(e=>e.copiable());if(i.length>0){const e=new a.Action({actionId:"Chart.Clipboard.CopyLineTools",label:_e,shortcutHint:(0,p.humanReadableHash)(p.Modifiers.Mod+67),statName:"Copy",onExecute:()=>this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy(i)},"Copy");t.push(e)}return!!i.length},c=()=>{const e=(this._chartWidget,[]);return t.push(...e),e.length>0},h=e=>{const i=new a.Action({actionId:"Chart.ScrollToLineTool",label:ge.format({ +lineToolName:e.title()}),statName:"GoToLineTool",checkable:!1,onExecute:async()=>this._chartWidget.model().scrollToLineTool(e)});t.push(i)},d=e=>{const t=this._chartWidget.model().model().lineToolsGroupModel(),i=e.map(e=>t.groupForLineTool(e));return new Set(i).size<=1};if(1===e.length){const i=e[0];if(this._chartWidget.readOnly())t.push(s.lineHide);else if(i.userEditEnabled()){0,r(),this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),t.push(new a.Separator);let e=n();e=l()||e,e=c()||e,e&&t.push(new a.Separator),t.push(this._createActionToggleLockLineTools([i])),t.push(s.lineHide),t.push(s.lineRemove),i.points().length>0&&this._options.gotoLineTool&&(t.push(new a.Separator),h(i));const d=await this._chartWidget.propertiesDefinitionsForSource(i);if(o.enabled("property_pages")&&null!==d&&(t.push(new a.Separator),t.push(s.format)),i.additionalActions){t.push(new a.Separator);const e=i.additionalActions(this._chartWidget.model());t.push(...e)}}}else this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),d(e)&&r(),t.length>0&&t.push(new a.Separator),n(),l(),c(),t.push(new a.Separator),t.push(this._createActionToggleLockLineTools(e)),t.push(s.lineHide),t.push(s.lineRemove),o.enabled("property_pages")&&(t.push(new a.Separator),t.push(s.format));return t}_createEarningsShow(){return null}_createRollDatesShow(){return null}_createDividendsShow(){return null}_createSplitsShow(){return null}_contextMenuActionsForESD(){return[]}_contextMenuActionsForRollDates(){return[]}_contextMenuActionsForPublishedTimeline(e){const t=this._chartWidget.actions(),i=[];if(i.push(t.lineHide),window.is_authenticated){const t=e.properties().childs().filter,s=new TVAction({checked:t.value()===PublishedChartsFilter.None,checkable:!0,label:Se,name:"ToggleAllIdeas",statName:"ToggleAllIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.None,I)}),r=new TVAction({checked:t.value()===PublishedChartsFilter.Following,checkable:!0,label:ye,name:"ToggleIdeasOfPeopleAndUser",statName:"ToggleIdeasOfPeopleAndUser",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Following,M)}),n=new TVAction({checked:t.value()===PublishedChartsFilter.Private,checkable:!0,label:be,name:"ToggleUserIdeas",statName:"ToggleUserIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Private,L)});i.push(new a.Separator,s,r,n)}return i}_contextMenuActionsForTradingDrawings(e){return e.contextMenuItems()}_createAlertToggleHorzLineLabelAction(){throw new Error("Not implemented")}_contextMenuActionsForAlertLabel(e){throw new Error("Not implemented")}_contextMenuActionsForChartEvents(e){return[]}_createApplyToEntireLayoutCommand(e){if(!this._chartWidget.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return null;const t=this._chartWidget.model().model();if(e.parentSource()!==t.mainSeries())return null;const i=(0, +s.ensureNotNull)(t.paneForSource(e)),r=t.paneForSource(t.mainSeries())===i,n=e instanceof m.StudyCompare&&e.priceScale()===t.mainSeries().priceScale()&&(0,s.ensureNotNull)(e.priceScale()).isPercentage(),o=r?void 0:t.panes().indexOf(i);let l=Ce,c=E,h="AddStudyToEntireLayout";return(0,S.isActingAsSymbolSource)(e)&&(l=we,c=A,h="AddSymbolToEntireLayout"),new a.Action({actionId:"Chart.AddIndicatorToAllCharts",label:l,statName:h,onExecute:()=>{const i=(0,s.ensureNotNull)((0,f.clipboardDataForSources)(t.id(),[e])),a=this._chartWidget.chartWidgetCollection(),l={isOnMainPane:r,asCompare:n,paneIndex:o};a.applyIndicatorToAllCharts(this._chartWidget,i,l,c)}},"applyStudyToEntireLayout")}}},16906:(e,t,i)=>{"use strict";i.r(t),i.d(t,{supportedLineTools:()=>s});const s={cursor:{name:"cursor",onlySelectable:!0},dot:{name:"dot",onlySelectable:!0},arrow_cursor:{name:"arrow",onlySelectable:!0},eraser:{name:"eraser",onlySelectable:!0},measure:{name:"measure",onlySelectable:!0},zoom:{name:"zoom",onlySelectable:!0},brush:{name:"LineToolBrush"},highlighter:{name:"LineToolHighlighter"},text:{name:"LineToolText"},anchored_text:{name:"LineToolTextAbsolute",isAnchored:!0},note:{name:"LineToolNote"},anchored_note:{name:"LineToolNoteAbsolute",isAnchored:!0},signpost:{name:"LineToolSignpost"},callout:{name:"LineToolCallout"},balloon:{name:"LineToolBalloon"},arrow_up:{name:"LineToolArrowMarkUp"},arrow_down:{name:"LineToolArrowMarkDown"},arrow_left:{name:"LineToolArrowMarkLeft"},arrow_right:{name:"LineToolArrowMarkRight"},price_label:{name:"LineToolPriceLabel"},price_note:{name:"LineToolPriceNote"},arrow_marker:{name:"LineToolArrowMarker"},flag:{name:"LineToolFlagMark"},vertical_line:{name:"LineToolVertLine"},horizontal_line:{name:"LineToolHorzLine"},cross_line:{name:"LineToolCrossLine"},horizontal_ray:{name:"LineToolHorzRay"},trend_line:{name:"LineToolTrendLine"},info_line:{name:"LineToolInfoLine"},trend_angle:{name:"LineToolTrendAngle"},arrow:{name:"LineToolArrow"},ray:{name:"LineToolRay"},extended:{name:"LineToolExtended"},parallel_channel:{name:"LineToolParallelChannel"},disjoint_angle:{name:"LineToolDisjointAngle"},flat_bottom:{name:"LineToolFlatBottom"},pitchfork:{name:"LineToolPitchfork"},schiff_pitchfork_modified:{name:"LineToolSchiffPitchfork"},schiff_pitchfork:{name:"LineToolSchiffPitchfork2"},inside_pitchfork:{name:"LineToolInsidePitchfork"},pitchfan:{name:"LineToolPitchfan"},gannbox:{name:"LineToolGannSquare"},gannbox_square:{name:"LineToolGannComplex"},gannbox_fixed:{name:"LineToolGannFixed"},gannbox_fan:{name:"LineToolGannFan"},fib_retracement:{name:"LineToolFibRetracement"},fib_trend_ext:{name:"LineToolTrendBasedFibExtension"},fib_speed_resist_fan:{name:"LineToolFibSpeedResistanceFan"},fib_timezone:{name:"LineToolFibTimeZone"},fib_trend_time:{name:"LineToolTrendBasedFibTime"},fib_circles:{name:"LineToolFibCircles"},fib_spiral:{name:"LineToolFibSpiral"},fib_speed_resist_arcs:{name:"LineToolFibSpeedResistanceArcs"},fib_wedge:{name:"LineToolFibWedge"},fib_channel:{name:"LineToolFibChannel"},xabcd_pattern:{name:"LineTool5PointsPattern"}, +cypher_pattern:{name:"LineToolCypherPattern"},abcd_pattern:{name:"LineToolABCD"},triangle_pattern:{name:"LineToolTrianglePattern"},"3divers_pattern":{name:"LineToolThreeDrivers"},head_and_shoulders:{name:"LineToolHeadAndShoulders"},elliott_impulse_wave:{name:"LineToolElliottImpulse"},elliott_triangle_wave:{name:"LineToolElliottTriangle"},elliott_triple_combo:{name:"LineToolElliottTripleCombo"},elliott_correction:{name:"LineToolElliottCorrection"},elliott_double_combo:{name:"LineToolElliottDoubleCombo"},cyclic_lines:{name:"LineToolCircleLines"},time_cycles:{name:"LineToolTimeCycles"},sine_line:{name:"LineToolSineLine"},long_position:{name:"LineToolRiskRewardLong"},short_position:{name:"LineToolRiskRewardShort"},forecast:{name:"LineToolPrediction"},date_range:{name:"LineToolDateRange"},price_range:{name:"LineToolPriceRange"},date_and_price_range:{name:"LineToolDateAndPriceRange"},bars_pattern:{name:"LineToolBarsPattern"},ghost_feed:{name:"LineToolGhostFeed"},projection:{name:"LineToolProjection"},rectangle:{name:"LineToolRectangle"},rotated_rectangle:{name:"LineToolRotatedRectangle"},circle:{name:"LineToolCircle"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},path:{name:"LineToolPath"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"},regression_trend:{name:"LineToolRegressionTrend"},fixed_range_volume_profile:{name:"LineToolFixedRangeVolumeProfile"}}},94578:(e,t,i)=>{"use strict";i.d(t,{clipboardDataForSources:()=>o});var s=i(88537),r=i(81851),n=i(14291);function o(e,t){if(1===t.length&&(0,r.isStudy)(t[0])){const e=t[0];return{title:e.title(),sources:[{source:(0,s.ensureNotNull)(e.state()),type:"study"}]}}const i={sources:[],title:""};return i.sources=t.filter(e=>e.copiable()&&(0,n.isLineTool)(e)).map(t=>{const i={type:"drawing",geometry:t.geometry(),source:{...t.state(!1),points:t.normalizedPoints()},modelId:e};return delete i.source.alertId,i}),i.sources.length>0?(1===i.sources.length?i.title=t[0].title&&t[0].title():i.title="Drawings",i):null}},17937:(e,t,i)=>{"use strict";i.d(t,{addBrandingSource:()=>z});var s=i(4889),r=i(86441),n=i(34026),o=i(45112),a=i(88537),l=i(28353),c=i(67337),h=i(99305),d=i(84346),u=i(68587),p=i(68906),_=i(59199),m=i(42759),g=i(93435),f=i(52892),v=i(22799),S=i(76818);i(95306);const y=c.enabled("adaptive_logo"),b=c.enabled("small_no_display"),w=c.enabled("38914"),C="Ch{0}ar{1}t{2}by{3}{4}".format("",""," "," ","TradingView"),P="po{0}wer{1}ed{2}by{3}{4}".format("",""," "," ","TradingView"),T="by{3}{4}".format("",""," "," ","TradingView"),x=w?T:P,I=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),M=window.urlParams||{};window.initData;M.no_referral_id&&enable(M.referral_id||"","aggressive");(0,l.t)("By TradingView"),(0,l.t)("{symbol} financials by TradingView"),(0,l.t)("More features on tradingview.com"),(0,l.t)("powered by");const L=(0,l.t)(C),A=(0,l.t)(x);function E(e){ +return"px EuclidCircular"===e?.1:0}class k extends h.CustomSourceBase{constructor(e,t,i,r){super(e,t),this._canvasWidth=0,this._paneHeight=0,this._left=13,this._bottom=16,this._layout="site_branding",this._needToShow=!0,this._showBranding=!1,this._customLogoSrc="",this._customLogoLink="",this._cubicBezier=new u.CubicBezier(.4,.01,.22,1),this._openAnimation=null,this._closeAnimation=null,this._powBy=null,this._custom=null,this._mainSeries=this._model.mainSeries(),this._showAllowance=i,this._showForPro=Boolean(r),this._checkLayout(),"widget_custom_branding"!==this._layout&&"fundamental_custom_branding"!==this._layout||(this._left=8,this._bottom=5);const n=()=>{this._needToShow?this._showBranding=!0:this._showBranding=!1};this._resizeHandlerDelayed=(0,s.default)(n,200),n(),window.addEventListener("resize",this._resizeHandlerDelayed),this._monitorCanvas=(0,g.createDisconnectedBoundCanvas)(document,new g.Size(0,0)),this._monitorCanvas.subscribeCanvasConfigured(()=>{this._init()}),this._model.isSnapshot()?this._init():(this._mainSeries.dataEvents().symbolResolved().subscribe(this,this._init),null!==this._mainSeries.symbolInfo()&&this._init()),this._renderer={draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)}}destroy(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy()}paneViews(e){if(window.TradingView.printing)return[];if(!this._showAllowance())return[];if("site_branding"===this._layout&&!this._showForPro&&window.user&&window.user.is_pro)return[];const t=c.enabled("move_logo_to_main_pane");let i=!1;if(e.maximized().value())i=!0;else if(t)i=this._model.mainPane().collapsed().value()?e===this._model.panes().find(e=>!e.collapsed().value()):e.isMainPane();else if(this._model.lastPane().collapsed().value()){const t=this._model.panes();for(let s=t.length-1;s>=0;--s){const r=t[s];if(!r.collapsed().value()){i=r===e;break}}}else i=e.isLast();return i?[{renderer:this.renderer.bind(this)}]:[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateAllViews(){}updateViewsForPane(e){}priceScale(){return null}renderer(e,t){return this._paneHeight=e,this._canvasWidth=t,this._renderer}hasContextMenu(){return!1}onClickOutside(){this._hasAnimation()&&this._startCloseAnimation()}hitTest(e){return!this._showBranding||c.enabled("logo_without_link")?null:this._powBy&&"widget_custom_no_powered_branding"!==this._layout&&"fundamental_custom_no_powered_branding"!==this._layout&&(this._powBy.hitTest(e)||this._custom&&this._custom.hitTest(e))?new d.HitTestResult(d.HitTestResult.CUSTOM,{hideCrosshairLinesOnHover:!0,clickHandler:()=>{this._openLink()},tapHandler:()=>{this._hasAnimation()?this._toggleOpenAnimatedOrOpenLink():this._openLink()},mouseEnterHandler:()=>{this._hasAnimation()&&this._startOpenAnimation()},mouseLeaveHandler:()=>{this._hasAnimation()&&this._startCloseAnimation()}}):null}tvUrl(){let e=new URL("https://www.tradingview.com/");if(this._customLogoLink)return this._customLogoLink +;if("library_branding"===this._layout||"library_custom_branding"===this._layout){let t;switch(!0){case c.enabled("charting_library"):t="library";break;case c.enabled("trading_terminal"):t="trading-terminal"}return e.searchParams.append("utm_source",window.location.origin),e.searchParams.append("utm_medium","library"),t&&e.searchParams.append("utm_campaign",t),e.toString()}return e.toString()}draw(e,t){if(!this._showBranding)return;let i=0;M.utm=!0,(0,g.drawScaled)(e,t.pixelRatio,()=>{this._powBy&&this._powBy.show&&(i=this._powBy.height,e.save(),e.translate(this._left,this._paneHeight-this._bottom-i),this._powBy.draw(e,t,this._canvasWidth),e.restore()),this._custom&&this._custom.show&&(e.save(),e.translate(this._left,this._paneHeight-this._bottom-i-this._custom.height),this._custom.draw(e,t),e.restore())})}_init(){const e=this._mainSeries.symbolInfo();this._powBy&&this._powBy.destroy(),this._powBy=new W(this._layout,(null==e?void 0:e.name)||"",this._model,()=>this._model.fullUpdate()),this._custom=new H(this._layout,this._customLogoSrc,()=>this._model.fullUpdate()),this._openAnimation=null,this._closeAnimation=null}_checkLayout(){if(c.enabled("widget"))0;else if(c.enabled("charting_library")||c.enabled("trading_terminal")){const e=JSON.parse(M.logo)||{};e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=c.enabled("widget_logo"),c.enabled("link_to_tradingview")?this._layout="library_custom_branding":this._layout="library_custom_no_powered_branding"):(this._layout="library_branding",this._needToShow=c.enabled("widget_logo"))}else this._layout="site_branding"}_startOpenAnimation(){null===this._openAnimation&&(null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null),this._openAnimation=(0,_.doAnimate)({from:this._currentStateForAnimation(),to:this._openedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}_startCloseAnimation(){null===this._closeAnimation&&(null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null),this._closeAnimation=(0,_.doAnimate)({from:this._currentStateForAnimation(),to:this._closedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}_currentStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).width}_closedStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).minimizedAnimationWidth()}_openedStateForAnimation(){return(0,a.ensureNotNull)(this._powBy).maximizedAnimationWidth()}_animatedDrawStep(e,t){(0,a.ensureNotNull)(this._powBy).animatedDrawStep(e,t),this._model.lightUpdate()}_hasAnimation(){return null!==this._powBy&&this._powBy.hasAnimation()}_openLink(){if("site_branding"===this._layout)return!1;c.enabled("widget");return(0,a.ensureNotNull)(window.open(this.tvUrl(),"_blank")).opener=null,!0}_toggleOpenAnimatedOrOpenLink(){null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}}function D(e){return!y||e>500} +const V={customBrandingTradingViewText:o.colorsPalette["color-brand"],customBrandingText:o.colorsPalette["color-cold-gray-850"],background:o.colorsPalette["color-cold-gray-900"],shadow:(0,p.generateColor)(o.colorsPalette["color-white"],91),text:o.colorsPalette["color-white"],staticTextBackground:(0,p.generateColor)(o.colorsPalette["color-cold-gray-800"],20),logo:o.colorsPalette["color-white"]},B={customBrandingTradingViewText:o.colorsPalette["color-brand"],customBrandingText:o.colorsPalette["color-cold-gray-850"],background:o.colorsPalette["color-white"],shadow:(0,p.generateColor)(o.colorsPalette["color-black"],91),text:o.colorsPalette["color-cold-gray-900"],staticTextBackground:(0,p.generateColor)(o.colorsPalette["color-white"],20),logo:o.colorsPalette["color-cold-gray-900"]};const N={};function R(e,t){const i=N[e];if(void 0!==i)return i.image||null;const s={};return N[e]=s,function(e){return new Promise(t=>{const i=f.replace(/fill="#[\da-f]{6}"/i,`fill="${e}"`),s=new Image;s.onload=()=>{s.onload=null,t(s)},s.src=URL.createObjectURL(new Blob([i],{type:"image/svg+xml"}))})}(e).then(e=>{s.image=e,t()}),null}function O(e){const{a:t,d:i,e:s,f:n}=e;return new r.Point(s/t,n/i)}class F{constructor(){this._originPoint=null}hitTest(e){const t=this._getHitTestBox();if(t)return(0,n.pointInBox)(e,t)}_getHitTestBox(){const e=this._originPoint;if(e){const{x:t,y:i}=e;return(0,r.box)(e,new r.Point(t+this.width,i+this.height))}}}class W extends F{constructor(e,t,i,s){if(super(),this.show=!0,this.borderRadius=0,this._needDisplayImage=!1,this._imageWidth=22,this._imageHeight=11,this._animatedWidth=32,this._font="px "+v.CHART_FONT_FAMILY,this._txt="TradingView",this._textWidth=0,this._maximizedAnimationTextWidth=0,this._textWidthCache=new S.TextWidthCache,this._pixelRatio=1,this._model=i,this._layout=e,this._symbol=t,this.showAnimatedBranding=c.enabled("show_animated_logo")||"widget_branding"===this._layout,this._fontSize=this.showAnimatedBranding?11:14,this.showAnimatedBranding||"widget_custom_branding"!==this._layout&&"fundamental_custom_branding"!==this._layout||(this._fontSize=12),this.width=32,this.height=this._fontSize+2,this._onReadyCallback=s,this._init(),document.fonts&&document.fonts.check&&document.fonts.load){document.fonts.check(this._fontSize+"px EuclidCircular")?this._font="px EuclidCircular":document.fonts.load(this._fontSize+"px EuclidCircular",this._txt).then(()=>{this._font="px EuclidCircular",this._recalculateMetrics()})}this._recalculateMetrics()}destroy(){this._model.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}hasAnimation(){return this.showAnimatedBranding}minimizedAnimationWidth(){return 32}maximizedAnimationWidth(){return this._maximizedAnimationTextWidth+32-3}animatedDrawStep(e,t){this._animatedWidth=t}draw(e,t,i){t.pixelRatio!==this._pixelRatio&&(this._textWidthCache.reset(),this._pixelRatio=t.pixelRatio);const s=this._colors;if(this.showAnimatedBranding)this._needDisplayImage&&null!==this._getLogoImage(s.logo)&&(e.save(), +e.translate(-Math.ceil((32-this._imageWidth)/2),Math.floor((32-this._imageHeight)/2)),this._originPoint=O(e.getTransform()),this.borderRadius=16,this._drawFillRectWithRoundedCorner(e,-.5,0,this._animatedWidth,32,this.borderRadius),this._drawLogoImage(e,Math.round((32-this._imageWidth)/2),Math.round((32-this._imageHeight)/2)+0),this._animatedWidth>32&&(e.translate(Math.round(32),Math.round(this._fontSize*E(this._font))),this._drawFillTextCropWidth(e,this._animatedWidth-32)),e.restore(),this.width=this._animatedWidth);else if("widget_custom_branding"===this._layout||"fundamental_custom_branding"===this._layout){e.font=this._fontSize+this._font;const t=e.measureText(this._txt).width+2;this.width=t+e.measureText("TradingView").width+2,this._originPoint=O(e.getTransform()),e.save(),e.globalAlpha=.7,e.fillStyle=this._colors.customBrandingText,e.fillText(this._txt,0,12),e.fillStyle=this._colors.customBrandingTradingViewText,e.fillText("TradingView",t,12),e.restore()}else if(function(e){return!b||e>480}(i))if(this._needDisplayImage&&null!==this._getLogoImage(s.logo)){e.save(),e.translate(-Math.ceil((32-this._imageWidth)/2),Math.floor((32-this._imageHeight)/2)),this._originPoint=O(e.getTransform()),this.borderRadius=16,this._drawBgCircle(e),e.drawImage((0,a.ensureNotNull)(this._getLogoImage(s.logo)),Math.round((32-this._imageWidth)/2),Math.round((32-this._imageHeight)/2)+0);const t=D(i);t&&(e.translate(37,Math.round(this._fontSize*E(this._font))),this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),this.width=32,t&&(this.width+=this._maximizedAnimationTextWidth)}else{const t=D(i);t&&(e.save(),e.translate(I?-.5:0,-.5),this._drawTextStroke(e),this._drawTextFill(e),e.restore()),t&&(this.width=this._maximizedAnimationTextWidth)}else this.width=0}_init(){this._checkLayout(),this.show&&(this.height=this._needDisplayImage?32:this._fontSize+2,this._updateColors(),this._model.properties().childs().paneProperties.childs().background.subscribe(this,this._updateColors),this._model.onChartThemeLoaded().subscribe(this,this._updateColors))}_recalculateMetrics(){const e=(0,g.createDisconnectedBoundCanvas)(document,new g.Size(0,0)),t=(0,g.getPretransformedContext2D)(e,!0);t.font=this._fontSize+this._font,this._textWidth=Math.ceil(t.measureText(this._txt).width)+2;let i=this._textWidth+8;i%2==0&&(i+=1),this._maximizedAnimationTextWidth=i,this._textWidthCache.reset()}_updateColors(){this._colors=this._model.isDark()?V:B}_getLogoImage(e){return R(e,this._onReadyCallback)}_checkLayout(){switch(this._layout){case"widget_branding":case"widget_referral_branding":case"widget_custom_branding":case"fundamental_branding":case"fundamental_custom_branding":case"library_custom_branding":case"library_branding":case"site_branding":this.show=!0;break;case"widget_custom_no_powered_branding":case"fundamental_custom_no_powered_branding":case"library_custom_no_powered_branding":this.show=!1}switch(this._layout){case"library_branding":this._needDisplayImage=!0,this._txt=L;break;case"library_custom_branding":this._txt=A}}_drawTextStroke(e){e.save(), +e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.strokeStyle=this._colors.staticTextBackground,e.lineWidth=4,e.lineJoin="round",e.strokeText(this._txt,0,16+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawTextFill(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.fillStyle=this._colors.text,e.fillText(this._txt,0,16+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawFillTextCropWidth(e,t){e.save(),e.beginPath(),e.rect(0,0,t,this.height),e.clip(),this._drawTextFill(e),e.restore()}_drawBgCircle(e){const t=this.borderRadius,i=2*Math.PI;e.save(),e.beginPath(),e.fillStyle=this._colors.shadow,e.arc(t,t,t+1,0,i),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._colors.background,e.arc(t,t,t,0,i,!1),e.fill(),e.closePath(),e.restore()}_drawFillRectWithRoundedCorner(e,t,i,s,r,n){e.save(),(0,m.drawRoundRect)(e,t-1,i-1,s+2,r+2,n),e.fillStyle=this._colors.shadow,e.fill(),e.closePath(),e.restore(),e.save(),(0,m.drawRoundRect)(e,t,i,s,r,n),e.fillStyle=this._colors.background,e.fill(),e.closePath(),e.restore()}_drawLogoImage(e,t,i){e.drawImage((0,a.ensureNotNull)(this._getLogoImage(this._colors.logo)),t,i)}}class H extends F{constructor(e,t,i){super(),this.show=!1,this.width=0,this.height=0,this._ready=!1,this._layout=e,this._src=t,this._onReadyCallback=i,this._checkLayout();const s=new Image;this._img=s,this.show&&(s.addEventListener("load",()=>{this.width=Math.round(s.width),this.height=Math.round(s.height),this._ready=!0,this._onReadyCallback&&this._onReadyCallback()}),s.crossOrigin="anonymous",s.src=this._src)}draw(e,t){this._ready&&(e.drawImage(this._img,-.5,-.5,this.width,this.height),this._originPoint=O(e.getTransform()))}_checkLayout(){switch(this._layout){case"widget_custom_branding":case"widget_custom_no_powered_branding":case"fundamental_custom_branding":case"fundamental_custom_no_powered_branding":case"library_custom_branding":case"library_custom_no_powered_branding":this.show=!0;break;case"site_branding":case"widget_branding":case"widget_referral_branding":case"fundamental_branding":case"library_branding":this.show=!1}}}function z(e,t){function i(t){const i=e.getAll();if(1===i.length)return!0;const s=i[0].hasModel()&&i[0].model();return s&&s.model()===t}e.addCustomSource("branding",(e,s)=>new k(e,s,i.bind(null,s),t))}},93435:(e,t,i)=>{"use strict";i.d(t,{Size:()=>o,getCanvasDevicePixelRatio:()=>a,getContext2D:()=>l,getPrescaledContext2D:()=>c,getPretransformedContext2D:()=>h,fillRect:()=>d,clearRect:()=>u,drawScaled:()=>p,createDisconnectedCanvas:()=>_,createDisconnectedBoundCanvas:()=>m,createBoundCanvas:()=>f,calcTextHorizontalShift:()=>v,disableSelection:()=>S});var s=i(81746),r=i(88537),n=i(62820);class o{constructor(e,t){this.w=e,this.h=t}equals(e){return this.w===e.w&&this.h===e.h}}function a(e){var t,i;return Math.max(1,(null===(i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||void 0===i?void 0:i.devicePixelRatio)||1)}function l(e){const t=(0, +r.ensureNotNull)(e.getContext("2d"));return t.setTransform(1,0,0,1,0,0),t}function c(e){const t=(0,r.ensureNotNull)(e.getContext("2d")),i=a(e);return t.setTransform(i,0,0,i,0,0),t}function h(e,t){const i=(0,r.ensureNotNull)(e.canvas.getContext("2d"));return i.setTransform(e.pixelRatio,0,0,e.pixelRatio,0,0),t||i.translate(.5,.5),i}function d(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function u(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.globalCompositeOperation="copy",e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function p(e,t,i){e.save(),e.scale(t,t),i(),e.restore()}function _(e,t,i){const s=g(e);return void 0===i&&(i=a(s)),s.width=t.w*i,s.height=t.h*i,s}function m(e,t){const i=g(e),r=(0,s.bindToDevicePixelRatio)(i,{allowDownsampling:!1});return r.resizeCanvas({width:t.w,height:t.h}),r}function g(e){const t=e.createElement("canvas");return S(t),t}function f(e,t){const i=g((0,r.ensureNotNull)(e.ownerDocument));e.appendChild(i);const n=(0,s.bindToDevicePixelRatio)(i,{allowDownsampling:!1});return n.resizeCanvas({width:t.w,height:t.h}),n}function v(e,t){return"center"===e.textAlign?0:(0,n.isRtl)()?"start"===e.textAlign||"right"===e.textAlign?t:0:"start"===e.textAlign||"left"===e.textAlign?0:t}function S(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.msUserSelect="none",e.style.MozUserSelect="none",e.style.webkitTapHighlightColor="transparent"}},68425:(e,t,i)=>{"use strict";i.d(t,{ChartChangesWatcher:()=>n});var s=i(2872),r=i.n(s);class n{constructor(e,t,i,s){this._undoHistoryHasChanges=!1,this._hasChanges=!1,this._recalculateHaveChanges=()=>{const e=this._undoHistoryHasChanges||this._lineToolsHaveChanges.value();e!==this._hasChanges&&(this._hasChanges=e,this._onValueChanged.fire(e))},this._undoHistory=e,this._lineToolsHaveChanges=t,this._chartSaver=i,this._globalEvents=s,this._onValueChanged=new(r()),this._subscribe()}destroy(){this._unsubscribe(),this._onValueChanged.destroy()}hasChanges(){return this._hasChanges}getOnChange(){return this._onValueChanged}_subscribe(){this._globalEvents.subscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().subscribe(this,this._handleUndoHistoryChange),this._chartSaver.chartSaved().subscribe(this,this._handleChartSaved),this._lineToolsHaveChanges.subscribe(this._recalculateHaveChanges)}_unsubscribe(){this._globalEvents.unsubscribe("chart_loaded",this._handleChartLoaded,this),this._undoHistory.undoStack().onChange().unsubscribe(this,this._handleUndoHistoryChange),this._chartSaver.chartSaved().unsubscribe(this,this._handleChartSaved),this._lineToolsHaveChanges.unsubscribe(this._recalculateHaveChanges)}_setUndoHistoryHasChanges(e){this._undoHistoryHasChanges=e,this._recalculateHaveChanges()}_handleChartLoaded(){this._setUndoHistoryHasChanges(!1)}_handleUndoHistoryChange(e){e&&!e.customFlag("doesnt_affect_save")&&this._setUndoHistoryHasChanges(!0)}_handleChartSaved(e){e&&this._setUndoHistoryHasChanges(!1)}}},76367:(e,t,i)=>{"use strict";i.d(t,{shiftPressed:()=>p, +modifierPressed:()=>_,globalEnvironmentState:()=>m,ChartHotkeysListener:()=>g});var s=i(25760),r=i(68335),n=i(35749),o=i(52714),a=i.n(o),l=i(77216);const c=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Shift)),h=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Mod)),d=new(a())(Boolean(s.pressedKeys.value()&r.Modifiers.Alt)),u=[r.Modifiers.None,r.Modifiers.Alt,r.Modifiers.Mod,r.Modifiers.Alt+r.Modifiers.Shift];function p(){return c}function _(){return h}function m(){return new l.EnvironmentState({altKey:d.value(),ctrlKey:_().value(),metaKey:_().value(),shiftKey:p().value()})}s.pressedKeys.subscribe(e=>{c.setValue(Boolean(e&r.Modifiers.Shift)),h.setValue(Boolean(e&r.Modifiers.Mod)),d.setValue(Boolean(e&r.Modifiers.Alt))});class g{constructor(e,t){this._pressedKeyCode=null,this._boundKeydownHandler=null,this._boundKeyupHandler=null,this._chartWidget=e,this._parent=t,this._boundKeydownHandler=this._keydownHandler.bind(this),this._boundKeyupHandler=this._keyupHandler.bind(this),this._parent.ownerDocument.addEventListener("keydown",this._boundKeydownHandler),this._parent.ownerDocument.addEventListener("keyup",this._boundKeyupHandler)}destroy(){null!==this._boundKeydownHandler&&(this._parent.ownerDocument.removeEventListener("keydown",this._boundKeydownHandler),this._boundKeydownHandler=null),null!==this._boundKeyupHandler&&(this._parent.ownerDocument.removeEventListener("keyup",this._boundKeyupHandler),this._boundKeyupHandler=null)}_keydownHandler(e){this._chartWidget.hasModel()&&window.document.activeElement===window.document.body&&this._chartWidget.isActive()&&(this._handleMoveDrawingsKeyDown(e)||this._handleScrollKeyDown(e)||this._handleZoomKeyDown(e))&&e.preventDefault()}_keyupHandler(e){this._chartWidget.hasModel()&&this._handleScrollKeyUp(e)}_handleMoveDrawingsKeyDown(e){const t=255&(0,r.hashFromEvent)(e),i=this._chartWidget.model();switch(t){case 37:return i.moveSelectedToolsLeft();case 39:return i.moveSelectedToolsRight();case 38:return i.moveSelectedToolsUp();case 40:return i.moveSelectedToolsDown()}return!1}_handleScrollKeyDown(e){if(null!==this._pressedKeyCode)return!1;const t=(0,r.hashFromEvent)(e),i=255&t,s=(0,r.modifiersFromEvent)(e);let o;if(37===i)o=1;else{if(39!==i)return!1;o=-1}return!(r.isMacKeyboard&&s===r.Modifiers.Mod||!u.includes(s))&&(!(0,n.isNativeUIInteraction)(t,e.target)&&(this._pressedKeyCode=i,s===r.Modifiers.None?this._chartWidget.scrollHelper().moveByBar(o):s===r.Modifiers.Alt||s===r.Modifiers.Mod?this._chartWidget.scrollHelper().move(o):-1===o?this._chartWidget.model().timeScale().scrollToRealtime(!0):this._chartWidget.model().timeScale().scrollToFirstBar(),!0))}_handleScrollKeyUp(e){if(null===this._pressedKeyCode)return!1;const t=(0,r.hashFromEvent)(e);if((0,n.isNativeUIInteraction)(t,e.target))return!1;return(255&t)===this._pressedKeyCode&&(this._pressedKeyCode=null,this._chartWidget.scrollHelper().stopMove(),!0)}_handleZoomKeyDown(e){const t=(0,r.hashFromEvent)(e),i=255&t;if((0,r.modifiersFromEvent)(e)!==r.Modifiers.Mod||(0,n.isNativeUIInteraction)(t,e.target))return!1 +;const s=this._chartWidget.model();if(38===i)s.zoomIn();else{if(40!==i)return!1;s.zoomOut()}return!0}}},37786:(e,t,i)=>{"use strict";i.d(t,{ChartWidgetApiBase:()=>P});var s=i(88537),r=i(28353),n=i(24980),o=i(29823),a=i(69177),l=i(42934);class c{constructor(e){this._timeScale=e}coordinateToTime(e){const t=this._timeScale.coordinateToIndex(e);return this._timeScale.indexToTimePoint(t)}barSpacingChanged(){return this._timeScale.barSpacingChanged()}rightOffsetChanged(){return this._timeScale.rightOffsetChanged()}setRightOffset(e){this._timeScale.setRightOffset(e)}setBarSpacing(e){this._timeScale.setBarSpacing(e)}barSpacing(){return this._timeScale.barSpacing()}rightOffset(){return this._timeScale.rightOffset()}width(){return this._timeScale.width()}defaultRightOffset(){return this._timeScale.defaultRightOffset()}isEmpty(){return this._timeScale.isEmpty()}}var h=i(2872),d=i.n(h),u=i(39277);const p=new n.TranslatedString("change timezone",(0,r.t)("change timezone"));class _{constructor(e){this._onTimezoneChanged=new(d()),this._chartWidget=e,this._timezoneProperty=e.properties().childs().timezone,this._timezoneProperty.subscribe(this,e=>{this._onTimezoneChanged.fire(e.value())}),e.onAboutToBeDestroyed().subscribe(this,()=>{this._timezoneProperty.unsubscribeAll(this)},!0)}availableTimezones(){return u.availableTimezones}getTimezone(){const e=this._timezoneProperty.value();return(0,s.ensureDefined)(u.availableTimezones.find(t=>t.id===e))}setTimezone(e,t){(0,s.assert)((0,u.timezoneIsAvailable)(e),"Incorrect timezone: "+e),(null==t?void 0:t.disableUndo)?this._timezoneProperty.setValue(e):this._chartWidget.model().setProperty(this._timezoneProperty,e,p)}onTimezoneChanged(){return this._onTimezoneChanged}}var m=i(45973),g=i(59836),f=i(870);function v(e,t){const i=()=>{e.completed().unsubscribe(null,s),t(!1)},s=()=>{e.error().unsubscribe(null,i),t(!0)};e.completed().subscribe(null,i,!0),e.error().subscribe(null,s,!0)}var S=i(65862),y=i(16906);const b=new n.TranslatedString("change price to bar ratio",(0,r.t)("change price to bar ratio")),w=new n.TranslatedString("toggle lock scale",(0,r.t)("toggle lock scale")),C=new n.TranslatedString("change series style",(0,r.t)("change series style"));class P{constructor(e,t){this._visibleBarsChanged=new(d()),this._crosshairMoved=new(d()),this._ranges=null,this._alignerResolution=o.Interval.parse(""),this._alignerSymbolInfo=null,this._dwmAligner=null,this._chartWidget=e,this._activateChart=t,this._timezoneApi=new _(e),this._chartWidget.withModel(this,()=>{this._chartWidget.model().crossHairSource().moved().subscribe(this,this._onCrosshairMoved)})}getPriceToBarRatio(){return this._chartWidget.model().model().mainSeriesScaleRatioProperty().value()}setPriceToBarRatio(e,t){const i=this._chartWidget.model(),s=i.model(),r=s.mainSeriesScaleRatioProperty();(null==t?void 0:t.disableUndo)?new f.SetScaleRatioPropertiesCommand(r,e,null,s).redo():i.setScaleRatioProperty(r,e,b)}isPriceToBarRatioLocked(){return this._chartWidget.model().model().mainSeries().priceScale().isLockScale()} +setPriceToBarRatioLocked(e,t){const i=this._chartWidget.model(),s=i.model(),r=s.mainSeries().priceScale();(null==t?void 0:t.disableUndo)?new g.SetPriceScaleModeCommand({lockScale:e},r,null,s).redo():i.setPriceScaleMode({lockScale:e},r,w)}onDataLoaded(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().completed())}onSymbolChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().symbolResolved())}onIntervalChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onIntervalChanged())}onVisibleRangeChanged(){return this._makeSubscriptionFromDelegate(this._visibleBarsChanged)}onChartTypeChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onStyleChanged())}onSeriesTimeframe(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().seriesTimeFrame())}whenChartReady(e){this._chartWidget.withModel(this,e)}crossHairMoved(){return this._makeSubscriptionFromDelegate(this._crosshairMoved)}setSymbol(e,t){if(e===this.symbol())return void(null==t||t());const i=e=>{!e&&t&&t()},s=this._chartWidget.model().mainSeries().dataEvents();t&&v(s,i),this._activateChart(),this._chartWidget.setSymbol(e)}setResolution(e,t){const i=o.Interval.normalize(e);if(null===i||i===this.resolution())return void(null==t||t());const s=e=>{!e&&t&&t()},r=this._chartWidget.model().mainSeries().dataEvents();t&&v(r,s),this._activateChart(),this._chartWidget.setResolution(i)}setChartType(e,t){const i=this._chartWidget.model().mainSeries().properties().childs().style;if(i.value()===e)return void(null==t||t());const s=e=>{!e&&t&&t()},r=this._chartWidget.model().mainSeries().dataEvents();t&&v(r,s),this._chartWidget.model().setChartStyleProperty(i,e,C)}getAllStudies(){return this._chartWidget.model().model().allStudies(!0).map(m.studyEntityInfo)}getAllPanesHeight(){const e=this._chartWidget.model().model().panes();if(this._chartWidget.isMaximizedPane()){let t=0,i=0;e.forEach(e=>{t+=e.height(),i+=e.stretchFactor()});const s=i/t;return e.map(e=>Math.round(e.stretchFactor()/s*100)/100)}return e.map(e=>e.height())}setAllPanesHeight(e){const t=this._chartWidget.model().model(),i=t.panes();(0,s.assert)(i.length===e.length,"There`s a mismatch between the number of heights you provided and the number of panes.");const r=i.reduce((e,t)=>e+t.stretchFactor(),0)/e.reduce((e,t)=>e+t);e.forEach((e,t)=>{const s=e*r;i[t].setStretchFactor(s)}),t.fullUpdate()}maximizeChart(){this._chartWidget.getResizerDetacher().requestFullscreen()}restoreChart(){this._chartWidget.getResizerDetacher().exitFullscreen()}sessions(){return this._chartWidget.model().model().sessions()}getTimeScaleLogicalRange(){return this._chartWidget.model().timeScale().logicalRange()}getTimezoneApi(){return this._timezoneApi}exportData(e){const t={...e};return void 0!==t.from&&(t.from=this._convertTimeFromPublic(t.from)),void 0!==t.to&&(t.to=this._convertTimeFromPublic(t.to)), +i.e(9498).then(i.bind(i,29630)).then(e=>e.exportData(this._chartWidget.model().model(),t))}barTimeToEndOfPeriod(e){const t=this._prepareEndOfPeriodArgs();return(0,l.barTimeToEndOfPeriod)(t.barBuilder,e,t.intervalObj)}endOfPeriodToBarTime(e){const t=this._prepareEndOfPeriodArgs();return(0,l.endOfPeriodToBarTime)(t.barBuilder,e,t.intervalObj)}createAnchoredShape(e,t){if(!0!==y.supportedLineTools[t.shape].isAnchored)return console.warn(t.shape+" is not an anchored shape. It can be created using createShape or createMultipointShape"),null;const i=this._chartWidget.model().model(),s=i.mainSeries();if(i.timeScale().isEmpty())return null;const r=void 0!==t.ownerStudyId?i.dataSourceForId(t.ownerStudyId):s,n=this._convertPositionPercentToPricedPoint(e,r);return null===n?null:this.createMultipointShape([n],t)}properties(){return this._chartWidget.properties()}setBarSpacing(e){this._chartWidget.model().timeScale().setBarSpacing(e)}scrollChartByBar(e){this._chartWidget.model().scrollChartByBar(e)}mergeAllScales(e){this._chartWidget.model().mergeAllScales(e)}chartPainted(){return this._chartWidget.chartPainted()}axesSizeReady(){for(const e of this._chartWidget.paneWidgets()){for(const t of e.leftPriceAxisesContainer().axes())if(!t.sizeReady())return!1;for(const t of e.rightPriceAxisesContainer().axes())if(!t.sizeReady())return!1}return!0}applyOverrides(e){this._chartWidget.applyOverrides(e)}addOverlayStudy(e,t,i){return this._chartWidget.addOverlayStudy(e,t,i)}lineToolsSynchronizer(){return this._chartWidget.lineToolsSynchronizer()}ranges(){throw new Error("not implemented")}getTimeScale(){return new c(this._chartWidget.model().timeScale())}_destroy(){this._chartWidget.hasModel()&&this._chartWidget.model().crossHairSource().moved().unsubscribeAll(this)}_createStudy(e){return Promise.reject("Pine Script™ and java studies are not supported")}_convertTimeToPublic(e){const t=this._getSeriesAligner();return null!==t?t.timeToExchangeTradingDay(1e3*e)/1e3:e}_convertIndexToPublicTime(e){const t=this._chartWidget.model(),i=t.timeScale();if(i.isEmpty())return null;const r=i.points(),n=(0,s.ensureNotNull)(r.firstIndex()),o=(0,s.ensureNotNull)(r.lastIndex());let a=null;if(n<=e&&e<=o)a=r.valueAt(e);else if(e>o){const r=t.mainSeries().syncModel();if(null!==r){const t=(0,s.ensureNotNull)(i.indexToTimePoint(o));a=r.projectTime(t,e-o)}}return null!==a&&(a=this._convertTimeToPublic(a)),a}_getDefaultCreateMultipointShapeOptions(){return{filled:!0}}_convertPositionPercentToPricedPoint(e,t){const i=this._chartWidget.model().timeScale(),s=t.priceScale(),r=t.firstValue();if(null==r||!isFinite(r)||null===s)return null;const n=i.coordinateToIndex(e.x*i.width()),o=i.indexToTimePoint(n);if(null===o)return null;return{price:s.coordinateToPrice(e.y*s.height(),r),time:o}}_convertTimeFromPublic(e){const t=this._getSeriesAligner();return null!==t?t.timeToSessionStart(1e3*e)/1e3:e}_getSeriesAligner(){const e=this._chartWidget.model().mainSeries(),t=e.interval(),i=o.Interval.parse(t),s=e.symbolInfo() +;return this._alignerResolution.isEqualTo(i)&&this._alignerSymbolInfo===s||(this._dwmAligner=null===s?null:(0,S.createDwmAligner)(t,s),this._alignerResolution=i,this._alignerSymbolInfo=s),this._dwmAligner}_onCrosshairMoved(e){const t=this._convertIndexToPublicTime(e.index);null!==t&&this._crosshairMoved.fire({price:e.price,time:t})}_makeSubscriptionFromDelegate(e){return{subscribe:e.subscribe.bind(e),unsubscribe:e.unsubscribe.bind(e),unsubscribeAll:e.unsubscribeAll.bind(e)}}_prepareEndOfPeriodArgs(){const e=this._chartWidget.model().model(),t=e.timezone(),i=(0,s.ensureNotNull)(e.mainSeries().symbolInfo()),r=e.mainSeries().interval(),n=new a.SessionInfo(t,i.session,i.session_holidays,i.corrections);return{barBuilder:(0,a.newBarBuilder)(r,n,n),intervalObj:o.Interval.parse(r)}}}},79500:(e,t,i)=>{"use strict";i.d(t,{ChartWidgetBase:()=>ui});var s=i(88537),r=i(28353),n=i(98125);function o(e,t){const i=Object.create(Object.getPrototypeOf(e));for(const s of t)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s]);return i}var a=i(56840),l=i(49483),c=i(81836),h=i(76422),d=i(22729);let u;class p extends d.DialogRenderer{constructor(){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)}}show(){this._load().then(e=>e.show())}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}static getInstance(){return u||(u=new p),u}_load(){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(3921),i.e(1112),i.e(6909),i.e(7419),i.e(9042),i.e(6427),i.e(9283),i.e(9255),i.e(3304),i.e(5827),i.e(4707),i.e(1e3),i.e(638),i.e(3245),i.e(4862)]).then(i.bind(i,49469)).then(e=>{var t,i;return null===(t=this._dialog)||void 0===t||t.hide(),null===(i=this._dialog)||void 0===i||i.visible().unsubscribe(this._subscribe),this._dialog=new e.ObjectTreeDialogRenderer,this._dialog.visible().subscribe(this._subscribe),this._dialog})}}var _=i(80643),m=i(54089),g=i(24431);var f=i(14291),v=i(81851),S=i(81465),y=i(88564),b=i(23653),w=i(16230),C=i(86441),P=i(45112),T=i(24980),x=i(71413),I=i(15840),M=i(84346),L=i(27759),A=i(77216),E=i(35878),k=i(85733),D=i(16757),V=i(4676),B=i(54386),N=i(93435),R=i(42759),O=i(52640),F=i(6087),W=i(15917),H=i(43842),z=i(22799);const U=parseInt(H.labelheight),j=parseInt(H.bottommargin);function G(e){return e/11}class q{constructor(){this._wrapper=document.createElement("div"),this._element=document.createElement("div"),this._labelElement=document.createElement("div"),this._gearElement=document.createElement("div"),this._currentScale=1,this._info=null,this._mode="auto",this._wrapper.appendChild(this._element),this._wrapper.classList.add(H.wrapper),this._element.classList.add(H.label),this._labelElement.className=H.symbol,this._element.appendChild(this._labelElement),this._gearElement.className=H.gear,this._gearElement.innerHTML=W,this._element.appendChild(this._gearElement)}getElement(){return this._wrapper}setMode(e){this._mode!==e&&(this._mode=e)}align(e,t){const i=G(t);Math.abs(i-this._currentScale)>.1&&(this._currentScale=i, +Math.abs(this._currentScale-1)>.1?this._element.style.transform=`scale(${this._currentScale})`:(this._currentScale=1,this._element.style.transform=""))}drawLabelForScreenshot(e,t){if(null===this._info||"gear"===this._mode)return;const i=(0,O.makeFont)(t.fontSize,z.CHART_FONT_FAMILY);e.fillStyle=F.themes[t.theme].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath();const s=G(t.fontSize)*U/2,r=(0,C.point)(t.offset+t.width/2,t.height/2);e.arc(r.x,r.y,s,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=F.themes[t.theme].getThemedColor("color-price-axis-label-text"),e.textAlign="center",e.font=i,e.textBaseline="middle",e.fillText(this._info.label,r.x,r.y)}setAxisNameInfo(e){this._info=e,null!==e&&(this._labelElement.textContent=e.label)}static height(e){return(U+j)*e}}var Y=i(2872),K=i.n(Y),$=i(97056),X=i(94194);const Z={enableTooltip:!0,showLabels:!0,enableMenu:!0,enableHighlight:!0};class J{constructor(e,t,i,s,r,n=null){this._invalidated=!0,this._size=new N.Size(0,0),this._offset=0,this._axisInfo=null,this._onLabelHovered=new(K()),this._highlighted=!1,this._labelMode="auto",this._fixedLabelMode=null,this._canvasConfiguredHandler=()=>this.update(),this._timeAxisWidget=n,this._isLeft="left"===e,this._rendererOptionsProvider=s.rendererOptionsProvider,this._sourcesTitlesProvider=s.sourcesTitlesProvider,this._contextMenuItemsProvider=s.contextMenuItemsProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._showHorizontalBorder=Boolean(s.showHorizontalBorder),this._properties=t,this._axisInfo=i,this._labelOptions={...Z,...r},this._properties.lineColor.subscribe(this,this._onPropertyChanged),this._cell=document.createElement("div"),this._cell.classList.add(H["price-axis-stub"]),this._labelOptions.enableTooltip&&this._cell.classList.add("apply-common-tooltip"),this._cell.style.width="25px",this._cell.style.height="100%",this._cell.style.position="absolute",this._cell.style.left="0",this._cell.style.overflow="hidden",this._labelOptions.showLabels?(this._label=new q,this._label.setAxisNameInfo(this._axisInfo),this._cell.appendChild(this._label.getElement()),this._labelOptions.enableTooltip&&(0,X.setTooltipData)(this._cell,"text",e=>this._tooltipContent())):this._label=null,this._mouseEventHandler=new B.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const o=this._canvasBinding.canvas;o.style.position="absolute",o.style.left="0",o.style.top="0"}destroy(){this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._properties.lineColor.unsubscribe(this,this._onPropertyChanged),this._mouseEventHandler.destroy()}mouseEnterEvent(e){this._mouseOrTouchEnterEvent(e)}touchStartEvent(e){this._mouseOrTouchEnterEvent(e)}mouseLeaveEvent(e){ +this._mouseOrTouchLeaveEvent(e)}touchEndEvent(e){this._mouseOrTouchLeaveEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}update(){this._invalidated=!0}getElement(){return this._cell}onLabelHovered(){return this._onLabelHovered}setSizeAndOffset(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.minWidth=e.w+"px",this._cell.style.height=e.h+"px",this._invalidated=!0),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}paint(e){if(e{this.setLabelMode((0,s.ensureNotNull)(this._fixedLabelMode)),this._fixedLabelMode=null})}}var Q=i(41847);class ee{constructor(e,t,i,s,r,n=null){this._axises=[],this._stubs=[],this._size=new N.Size(0,0),this._onLabelHovered=new(K()),this._scalesProperties=e,this._priceAxisWidgetFactory=i,this._timeAxisWidget=n,this._rendererOptionsProvider=s.rendererOptionsProvider,this._titlesProvider=s.titlesProvider,this._stubContextMenuProvider=s.stubContextMenuProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._showHorisontalBorder=Boolean(s.showHorizontalBorder),this._labelsOptions={...Z,...r};const o=this._scalesProperties.childs();this._stubProperties={lineColor:o.lineColor,fontSize:o.fontSize},this._side=t,this._cell=document.createElement("td"),this._cell.classList.add("chart-markup-table","price-axis-container"),this._cell.style.width="25px",this._cell.style.position="relative"}destroy(){this.setScales([],0,0,0)}onLabelHovered(){return this._onLabelHovered}setScales(e,t,i,r){for(;e.length>this._axises.length&&this._axises.lengtho;){const e=(0,s.ensureDefined)(this._stubs.pop());e.onLabelHovered().unsubscribeAll(this),this._cell.removeChild(e.getElement()),e.destroy()}for(;this._stubs.length{this._labelsOptions.showLabels&&this._labelsOptions.enableHighlight&&this._onLabelHovered.fire({owner:t,axis:(0,s.ensureNotNull)(e)},i)}),this._stubs.push(t),this._cell.appendChild(t.getElement())}const a=this._labelsOptions.enableMenu;1===r?this._stubs.forEach((e,t)=>e.setLabelMode(a?"gear":"symbol")):this._stubs.forEach((e,t)=>e.setLabelMode(te.updateCurrencyLabel())}optimalWidths(){return this._axises.map(e=>e.optimalWidth())}setSizes(e,t){this._size=new N.Size(t.reduce((e,t)=>e+t,0),e),this._cell.style.width=this._size.w+"px",this._cell.style.minWidth=this._size.w+"px",this._cell.style.height=this._size.h+"px",t.length!==this._axises.length+this._stubs.length&&(0,s.assert)(t.length===this._axises.length+this._stubs.length,"Widgets count should be the same as widths one");let i=0;this._forEachWidgetFromLeft((s,r)=>{const n=t[r];s.setSizeAndOffset(new N.Size(n,e),i),i+=n})}update(){this._axises.forEach(e=>e.update()),this._stubs.forEach(e=>e.update())}paint(e){this._axises.forEach((t,i)=>t.paint(e(i))),this._stubs.forEach((t,i)=>t.paint(e(i)))}paintStubs(e){this._stubs.forEach(t=>t.paint(e))}restoreDefaultCursor(){this._axises.forEach(e=>e.restoreDefaultCursor())}getWidth(){return this._size.w}findAxisWidgetForScale(e){const t=this._axises.find(t=>t.priceScale()===e);return void 0===t?null:t}getScreenshotData(){const e=this._getImage();return{canvas:e,content:e.toDataURL(),contentHeight:this._size.h,contentWidth:this._size.w}}getImage(){return this._getImage()}slotsCount(){return this._axises.length+this._stubs.length}highlightPriceAxisByLabel(e){this._axises.forEach(t=>{const i=t.axisInfo();t.setHighlighted(null!==i&&i.equals(e))})}axes(){return this._axises}_stubParams(e){return{rendererOptionsProvider:this._rendererOptionsProvider,backgroundBasedTheme:this._backgroundBasedTheme,sourcesTitlesProvider:()=>this._titlesProvider(this._side,e),contextMenuItemsProvider:()=>this._stubContextMenuProvider(this._side,e),getBackgroundTopColor:this._getBackgroundTopColor,getBackgroundBottomColor:this._getBackgroundBottomColor,showHorizontalBorder:this._showHorisontalBorder}}_getImage(){const e=(0,N.createDisconnectedCanvas)(document,this._size),t=(0,N.getPrescaledContext2D)(e);let i=0;return this._forEachWidgetFromLeft((e,s)=>{const r=e.getWidth();0!==r&&(t.drawImage(e.getImage(),i,0,r,this._size.h),i+=r)}),e}_forEachWidgetFromLeft(e){const t=[...this._axises,...this._stubs],i="left"===this._side,s=i?-1:t.length,r=i?-1:1;for(let n=i?t.length-1:0;n!==s;n+=r)e(t[n],n,t)}}var te=i(29892),ie=i(76818),se=i(51768),re=i(24377),ne=i(68906),oe=i(45345),ae=i(24633),le=i(64514),ce=i(91216),he=i(4103);const de=(0,P.getHexColorByName)("color-white"),ue=(0,P.getHexColorByName)("color-cold-gray-100"),pe=(0, +ne.applyTransparency)((0,P.getHexColorByName)("color-white"),60),_e=(0,P.getHexColorByName)("color-cold-gray-800"),me=(0,ne.applyTransparency)((0,P.getHexColorByName)("color-black"),60);function ge(e){const t=(0,ne.isHexColor)(e)?e.toLowerCase():(0,re.rgbToHexString)((0,re.parseRgb)(e));return oe.watchedTheme.value()===ae.StdTheme.Light?t===de?ue:pe:"#181c27"===t?_e:me}class fe{constructor(){this._width=null,this._currencyInfo=null,this._unitInfo=null,this._fontSize=0,this._backgroundColor="",this._hoverColor="",this._fadeEndColor="",this._hoveredLabel=null,this._currencyAndUnitLabelsWrapper=document.createElement("div"),this._currencyAndUnitLabelsWrapper.className=he["price-axis-currency-label-wrapper"],this._controlsContainer=document.createElement("div"),this._controlsContainer.className=he["price-axis-currency-label"],this._currencyAndUnitLabelsWrapper.appendChild(this._controlsContainer),this._currencyLabelDiv=document.createElement("div"),this._currencyLabelDiv.className=he.row,this._currencyLabelDiv.classList.add("apply-common-tooltip"),(0,X.setTooltipData)(this._currencyLabelDiv,"text",e=>this._currencyTooltipContent()),this._currencyText=document.createElement("span"),this._currencyText.className=he["price-axis-currency-label-text"],this._currencyLabelDiv.appendChild(this._currencyText),this._currencyArrowDown=document.createElement("span"),this._currencyArrowDown.className=he["price-axis-currency-label-arrow-down"],this._currencyArrowDown.innerHTML=ce,this._currencyLabelDiv.appendChild(this._currencyArrowDown),this._unitLabelDiv=document.createElement("div"),this._unitLabelDiv.className=he.row,this._unitLabelDiv.classList.add("apply-common-tooltip"),(0,X.setTooltipData)(this._unitLabelDiv,"text",e=>this._unitTooltipContent()),this._unitText=document.createElement("span"),this._unitText.className=he["price-axis-currency-label-text"],this._unitLabelDiv.appendChild(this._unitText),this._unitArrowDown=document.createElement("span"),this._unitArrowDown.className=he["price-axis-currency-label-arrow-down"],this._unitArrowDown.innerHTML=ce,this._unitLabelDiv.appendChild(this._unitArrowDown),this._controlsContainer.appendChild(this._currencyLabelDiv),this._controlsContainer.appendChild(this._unitLabelDiv),this._fadeDiv=document.createElement("div"),this._fadeDiv.className=he["price-axis-currency-label-fade"],this._currencyAndUnitLabelsWrapper.appendChild(this._fadeDiv);const e=e=>{null!==this._hoveredLabel&&this._hoveredLabel!==e&&(this._hoveredLabel.style.background=""),this._hoveredLabel=e,""===this._hoverColor&&(this._hoverColor=ge(this._backgroundColor)),null!==e&&(e.style.background=this._hoverColor)};this._currencyLabelDiv.addEventListener("mouseover",()=>e(this._currencyLabelDiv)),this._currencyLabelDiv.addEventListener("mouseout",()=>e(null)),this._unitLabelDiv.addEventListener("mouseover",()=>e(this._unitLabelDiv)),this._unitLabelDiv.addEventListener("mouseout",()=>e(null)),this.disableCurrency(),this.disableUnit()}element(){return this._currencyAndUnitLabelsWrapper}currencyLabelElement(){ +return this._currencyLabelDiv}unitLabelElement(){return this._unitLabelDiv}isEnabled(){return this.currencyLabelEnabled()||this.unitLabelEnabled()}width(){if(null!==this._width)return this._width;let e=0;if(this.currencyLabelEnabled()){const t=this._currencyText.getBoundingClientRect(),i=this._currencyArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}if(this.unitLabelEnabled()){const t=this._unitText.getBoundingClientRect(),i=this._unitArrowDown.getBoundingClientRect();e=Math.max(e,t.width+i.width+2*this._textMarginAndPadding())}return this._width=e}drawLabel(e,t,i){if(!this.isEnabled())return;const s=this.currencyLabelEnabled()?this._currencyText.textContent||"":this._unitText.textContent||"",r=this._unitText.textContent||"";e.font=(0,O.makeFont)(this._fontSize,z.CHART_FONT_FAMILY);const n=new ie.TextWidthCache,o=n.yMidCorrection(e,s),a=n.yMidCorrection(e,r),l=Math.round(Number(he.css_wrapper_margin)*i),c=(0,le.ceiledEven)(t*i)-2*l,h=Math.round(this.labelBottom()*i);e.fillStyle=this._backgroundColor,e.fillRect(l,0,c,h);const d=Math.round(Number(he.css_fade_height)*i),u=e.createLinearGradient(0,h,0,h+d);u.addColorStop(0,this._backgroundColor),u.addColorStop(1,this._fadeEndColor),e.fillStyle=u;const p=Math.round(Number(he.css_value_currency_label_radius)*i);(0,R.drawRoundRect)(e,l,h,c,d,[0,0,p,p]),e.fill();const _=Math.round(Number(he.css_first_row_top_padding)*i),m=Math.round(this._textMarginAndPadding()*i)+l,g=this._oneLineHeight()/2*i,f=_+g,v=Math.ceil(f+2*g);e.fillStyle=this._controlsContainer.style.color,e.textBaseline="middle",e.textAlign="left",(0,N.drawScaled)(e,i,()=>e.fillText(s,m/i,(f+o)/i)),this._isMultiLine()&&(0,N.drawScaled)(e,i,()=>e.fillText(r,m/i,(v+a)/i))}setHidden(e){this._controlsContainer.classList.toggle(he.hidden,e),this._fadeDiv.classList.toggle(he.hidden,e)}enableCurrency(){this._currencyLabelDiv.classList.remove("js-hidden"),this._width=null,this._updateVisibility()}disableCurrency(){this._currencyLabelDiv.classList.add("js-hidden"),this._width=null,this._updateVisibility()}enableUnit(){this._unitLabelDiv.classList.remove("js-hidden"),this._width=null,this._updateVisibility()}disableUnit(){this._unitLabelDiv.classList.add("js-hidden"),this._width=null,this._updateVisibility()}currencyLabelEnabled(){return!this._currencyLabelDiv.classList.contains("js-hidden")}unitLabelEnabled(){return!this._unitLabelDiv.classList.contains("js-hidden")}setCurrencyInfo(e){if(this._currencyInfo===e)return!1;this._currencyInfo=e;const t=null===e.selectedCurrency?(0,r.t)("Mixed"):(0,s.ensureDefined)(e.displayedValues.get(e.selectedCurrency));return this._currencyText.textContent!==t&&(this._currencyText.textContent=t,this._width=null),this._currencyArrowDown.classList.contains("js-hidden")!==e.readOnly&&(this._currencyArrowDown.classList.toggle("js-hidden",e.readOnly),this._currencyLabelDiv.classList.toggle(he.readonly,e.readOnly),this._width=null),!0}setUnitInfo(e){ +if(null!==this._unitInfo&&this._unitInfo.selectedUnit===e.selectedUnit&&0===this._unitInfo.availableGroups.size==(0===e.availableGroups.size)&&this._unitInfo.originalUnits.size===e.originalUnits.size)return this._unitInfo=e,!1;this._unitInfo=e;const t=null===e.selectedUnit?(0,r.t)("Mixed"):(0,s.ensureDefined)(e.names.get(e.selectedUnit));return this._unitText.textContent!==t&&(this._unitText.textContent=t,this._width=null),this._unitArrowDown.classList.contains("js-hidden")!==(0===e.availableGroups.size)&&(this._unitArrowDown.classList.toggle("js-hidden",0===e.availableGroups.size),this._unitLabelDiv.classList.toggle(he.readonly,0===e.availableGroups.size),this._width=null),!0}updateColors(e,t){this._controlsContainer.style.color=t,this._backgroundColor!==e&&(this._backgroundColor=e,this._fadeEndColor=(0,ne.applyTransparency)(e,100),this._hoverColor=ge(e)),this._controlsContainer.style.background=this._backgroundColor,null!==this._hoveredLabel&&(this._hoveredLabel.style.background=this._hoverColor),this._fadeDiv.style.background=`linear-gradient(${this._backgroundColor}, ${this._fadeEndColor})`}currencyInfo(){return this._currencyInfo}unitInfo(){return this._unitInfo}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this._currencyLabelDiv.style.fontSize=e+"px",this._unitLabelDiv.style.fontSize=e+"px",this._width=null,this._setLineHeight(this._oneLineHeight()))}labelBottom(){const e=this._oneLineHeight();let t=e+Number(he.css_first_row_top_padding);return this._isMultiLine()&&(t+=e),t}_textMarginAndPadding(){return Number(he.css_row_left_right_margin)+Number(he.css_row_left_right_padding)}_currencyTooltipContent(){const e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map(t=>(0,s.ensureDefined)(e.displayedValues.get(t))).join(", "):""}_unitTooltipContent(){const e=this._unitInfo;return null===e?"":null===e.selectedUnit?Array.from(e.units).map(t=>(0,s.ensureDefined)(e.names.get(t))).join(", "):e.descriptions.get(e.selectedUnit)||""}_setLineHeight(e){this._currencyLabelDiv.style.lineHeight=e+"px",this._unitLabelDiv.style.lineHeight=e+"px"}_updateVisibility(){const e=this.isEnabled();this._currencyAndUnitLabelsWrapper.classList.toggle("js-hidden",!e),this._fadeDiv.classList.toggle("js-hidden",!e)}_oneLineHeight(){return 7+this._fontSize}_isMultiLine(){return this.unitLabelEnabled()&&this.currencyLabelEnabled()}}async function ve(e,t,s){const{UnitConversionRenderer:r}=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(1e3),i.e(8994),i.e(2704)]).then(i.bind(i,71834));return new r(e,s,t)}function Se(e,t){let{deltaX:i,deltaY:s}=e;switch(i/=100,s/=100,t.deltaMode){case t.DOM_DELTA_PAGE:i*=120,s*=120;break;case t.DOM_DELTA_LINE:i*=32,s*=32}return{deltaX:i,deltaY:s}}class ye{constructor(){this._totalDeltaX=0,this._totalDeltaY=0,this._prevWheelTime=0}processWheel(e){e.timeStamp-this._prevWheelTime>100&&this._reset(),this._totalDeltaX+=e.deltaX,this._totalDeltaY+=e.deltaY, +this._prevWheelTime=e.timeStamp;const t={deltaX:e.deltaX,deltaY:e.deltaY};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(t.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(t.deltaX=0)),Se(t,e)}_reset(){this._totalDeltaX=0,this._totalDeltaY=0}}var be=i(68335),we=i(62138),Ce=i(51264),Pe=i(67337),Te=i(61671),xe=i(28296),Ie=i(8175),Me=i(27966);i(1597);const Le=new T.TranslatedString("change no overlapping labels",(0,r.t)("change no overlapping labels")),Ae=(0,r.t)("Merge all scales into one"),Ee=(0,r.t)("Labels"),ke=(0,r.t)("Currencies"),De=(0,r.t)("Units"),Ve=(0,r.t)("Reset price scale"),Be=(0,r.t)("Auto (fits data to screen)"),Ne=(0,r.t)("Percent",{context:"scale_menu"}),Re=(0,r.t)("Indexed to 100",{context:"scale_menu"}),Oe=(0,r.t)("Logarithmic",{context:"scale_menu"}),Fe=(0,r.t)("Regular",{context:"scale_menu"}),We=(0,r.t)("No overlapping labels",{context:"scale_menu"}),He=(0,r.t)("Invert scale",{context:"scale_menu"});const ze=function(e){const t=new Ce.LimitedPrecisionNumericFormatter(e);return(e,i)=>(0,_.isNumber)(i)&&!e.isLog()?t.format(i):""}(4),Ue={contextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,mouseWheelScale:!0,pinchScale:!0,croppedTickMarks:!0};class je{constructor(e,t,i,s,r,n,o,a,l){this._actions=null,this._priceScale=null,this._widthCache=new ie.TextWidthCache(1e3),this._color=null,this._fontSize=null,this._currencyFontSize=0,this._currencyLabelWidth=null,this._isVisible=!0,this._updateTimeout=null,this._currencyMenu=null,this._unitMenu=null,this._prevOptimalWidth=0,this._size=new N.Size(-1,-1),this._currentCursorClassName="",this._destroyed=!1,this._highlighted=!1,this._mouseWheelHelper=null,this._dragScaleActive=!1,this._offset=NaN,this._pinching=!1,this._recalcCurrencyAndUnitVisibility=()=>{if(null===this._currencyLabel)return;const e=(0,Ie.currencyUnitVisibilityProperty)().value(),t="alwaysOff"===e||!this._chart.anyPriceAxisHovered().value()&&"visibleOnMouseOver"===e;this._currencyLabel.setHidden(t)},this._chart=e,this._pane=t,this._undoModel=i,this._properties=s,this._isLeft="left"===n,this._options=(0,_.merge)((0,_.clone)(Ue),o),this._rendererOptionsProvider=r,this._backgroundBasedTheme=l,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=()=>{this._undoModel.model().lightUpdate()},this._canvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const c=this._canvasBinding.canvas;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasConfiguredHandler=()=>this._undoModel.model().lightUpdate(),this._topCanvasBinding=(0,N.createBoundCanvas)(this._cell,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler) +;const h=this._topCanvasBinding.canvas;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._mouseEventHandler=new B.MouseEventHandler(this._cell,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._options.currencyConversionEnabled||this._options.unitConversionEnabled?(this._currencyLabel=new fe,this._cell.appendChild(this._currencyLabel.element())):this._currencyLabel=null,this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged),this._options.mouseWheelScale&&(this._mouseWheelHelper=new ye,this._cell.addEventListener("wheel",this._onMousewheel.bind(this),{passive:!1})),this._axisInfo=a,this._offset=0,this.restoreDefaultCursor(),(0,Ie.currencyUnitVisibilityProperty)().subscribe(this,this._recalcCurrencyAndUnitVisibility),this._chart.anyPriceAxisHovered().subscribe(this._recalcCurrencyAndUnitVisibility),this._recalcCurrencyAndUnitVisibility(),this.update()}getContextMenuActions(){this._initActions();const e=(0,s.ensureNotNull)(this._actions),t=this._chart.actions(),i=[];return i.push(e.reset,new xe.Separator,this._autoScaleAction()),this._isMainSeriesAxis()&&i.push(this._lockScaleAction()),i.push(t.scaleSeriesOnly,this._invertAction(),new xe.Separator,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new xe.Separator),l.CheckMobile.any()||(i.push(this._createMergeScalesAction()),i.push(new xe.Separator)),Pe.enabled("fundamental_widget")||i.push(new xe.Action({actionId:"Chart.PriceScale.Labels",label:Ee,subItems:[t.showSymbolLabelsAction,t.showSeriesLastValue,null,null,t.showHighLowPriceLabels,Pe.enabled("show_average_close_price_line_and_label")?t.showAverageClosePriceLabel:null,null,t.showStudyPlotNamesAction,t.showStudyLastValue,e.alignLabels].filter(Boolean)})),i.push((0,Te.createLinesAction)(this._chart)),this._options.countdownEnabled&&i.push(t.showCountdown),this._undoModel.crossHairSource().isMenuEnabled()&&i.push(t.addPlusButton),!(0,l.onWidget)()&&Pe.enabled("show_chart_property_page")&&Pe.enabled("chart_property_page_scales")&&t.scalesProperties&&i.push(new xe.Separator,t.scalesProperties),i}getElement(){return this._cell}onOptimalWidthNeedToBeRecalculated(e){const t=this.optimalWidth();(this._prevOptimalWidth{this._undoModel.model().fullUpdate(),this._updateTimeout=null},100)),this._prevOptimalWidth=t}optimalWidth(){var e;if(!this.isVisible())return 0;let t=0;const i=this.rendererOptions();if(this._pane.hasState()){const i=(0,N.getContext2D)(this._canvasBinding.canvas);(0,te.setFont)(i,this.baseFont());const s=this.backLabels(!0);for(let e=s.length;e--;){if(!s[e].isAxisLabelVisible())continue;const r=this._widthCache.measureText(i,s[e].text());t=Math.max(t,r);const n=s[e].secondLineText();n&&(t=Math.max(t,this._widthCache.measureText(i,n)));const o=s[e].thirdLineText();o&&(t=Math.max(t,this._widthCache.measureText(i,o)))}const r=this.priceScale(),n=r.marks() +;n.length>0&&(t=Math.max(t,this._widthCache.measureText(i,n[0].label),this._widthCache.measureText(i,n[n.length-1].label)));const o=(null===(e=r.mainSource())||void 0===e?void 0:e.firstValue())||null;if(null!==o){const e=r.coordinateToPrice(1,o),s=r.coordinateToPrice(this._size.h-2,o);t=Math.max(t,this._widthCache.measureText(i,r.formatPrice(Math.floor(Math.min(e,s))+.11111111111111,o)),this._widthCache.measureText(i,r.formatPrice(Math.ceil(Math.max(e,s))-.11111111111111,o)))}}let r=0;this._isCurrencyLabelEnabled()&&(null===this._currencyLabelWidth&&(this._currencyLabelWidth=(0,s.ensureNotNull)(this._currencyLabel).width()),r=Math.round(this._currencyLabelWidth));const n=t||34;let o=Math.max(r,Math.ceil(i.borderSize+i.offsetSize+i.paddingInner+i.paddingOuter+n+4));return o+=o%2,o}backLabels(e){const t=[],i=this._grouppedSources(),s=s=>{for(const r of s){if(!e&&i.topLevelSources.has(r))continue;const s=r.priceAxisViews(this._pane.state(),this.priceScale());if(s)for(const e of s)t.push(e)}};return s(i.sources),s(this._pane.state().customSources()),t}setSizeAndOffset(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisWidget "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.height=e.h+"px",this._cell.style.minWidth=e.w+"px"),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}getWidth(){return this._size.w}getImage(){const e=this._size,t=(0,N.createDisconnectedCanvas)(document,e);return(0,N.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvas,0,0,e.w,e.h),null!==this._currencyLabel&&this._currencyLabel.isEnabled()&&this._currencyLabel.drawLabel((0,N.getContext2D)(t),e.w,(0,N.getCanvasDevicePixelRatio)(t)),t}update(){}paint(e){if(!this._isVisible)return;if(e===b.InvalidationLevel.None)return;const t=this._pane.state(),i=!t.maximized().value()&&t.collapsed().value();if(e>b.InvalidationLevel.Cursor){const e=(0,N.getContext2D)(this._canvasBinding.canvas);i||this._alignLabels(),this._drawBackground(e,this._canvasBinding.pixelRatio),this._drawBorder(e,this._canvasBinding.pixelRatio),this._pane.hasState()&&(this.updateCurrencyLabel(),i||(this._drawTickMarks(e,this._canvasBinding.pixelRatio),this._drawBackLabels(e,this._canvasBinding.pixelRatio)))}if(this._pane.hasState()&&!i){const e=(0,N.getContext2D)(this._topCanvasBinding.canvas),t=this._topCanvasBinding.pixelRatio;e.clearRect(0,0,Math.ceil(this._size.w*t)+1,Math.ceil(this._size.h*t)+1),this._drawCrossHairLabel(e,t)}}restoreDefaultCursor(){this._setCursor("")}priceScale(){return(0,s.ensureNotNull)(this._priceScale)}setPriceScale(e){this._priceScale!==e&&(null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=e,null!==e&&(e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated), +e.modeChanged().subscribe(this,()=>this.onOptimalWidthNeedToBeRecalculated(!0))))}isVisible(){return this._isVisible}setVisible(e){(e=!!e)!==this._isVisible&&(this._cell.style.display=e?"table-cell":"none",this._isVisible=e)}destroy(){null!==this._currencyMenu&&(this._currencyMenu.close(),this._currencyMenu=null),null!==this._unitMenu&&(this._unitMenu.close(),this._unitMenu=null),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),null!==this._priceScale&&(this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale.modeChanged().unsubscribeAll(this)),this._priceScale=null,this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._mouseEventHandler.destroy(),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged),null!==this._actions&&this._actions.reset&&this._actions.reset.destroy(),(0,Ie.currencyUnitVisibilityProperty)().unsubscribeAll(this),this._chart.anyPriceAxisHovered().unsubscribe(this._recalcCurrencyAndUnitVisibility),this._chart.setPriceAxisHovered(this,!1),this._destroyed=!0}axisInfo(){return this._axisInfo}setHighlighted(e){this._highlighted=e}backgroundColor(){return this._pane.state().model().backgroundColor().value()}backgroundTopColor(){return this._pane.state().model().backgroundTopColor().value()}lineColor(){return this._properties.childs().lineColor.value()}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY,"")}rendererOptions(){let e=this._rendererOptionsProvider.options();return this._color===e.color&&this._fontSize===e.fontSize||(this._color=e.color),this._fontSize!==e.fontSize&&(this._widthCache.reset(),this._fontSize=e.fontSize,this._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()),e}mouseEnterEvent(e){this._chart.setPriceAxisHovered(this,!0),this._mouseEnterOrTouchStartEvent(e)}mouseMoveEvent(e){this._mouseOrTouchMoveEvent(e)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseOrTouchMoveEvent(e),this._mouseEnterOrTouchStartEvent(e),this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}pinchStartEvent(){}pinchEvent(e,t,i){if(this._zoomAvailable()&&this._options.pinchScale){if(this._dragScaleActive&&this._finishScale(),!this._pinching)return this._pinching=!0,void this._undoModel.startTwoPointsScalePrice(this._pane.state(),this.priceScale(),t.y,i.y);this._undoModel.twoPointsScalePriceTo(this._pane.state(),this.priceScale(),t.y,i.y)}}pinchEndEvent(){this._pinching=!1,this._undoModel.endTwoPointsScalePrice(this._pane.state(),this.priceScale())}mouseDownOutsideEvent(){ +this._finishScale()}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseLeaveOrTouchEndEvent(e),this._mouseUpOrTouchEndEvent(e)}mouseClickEvent(e){this._mouseClickOrTapEvent(e)}tapEvent(e){this._mouseClickOrTapEvent(e)}mouseLeaveEvent(e){this._chart.setPriceAxisHovered(this,!1),this._mouseLeaveOrTouchEndEvent(e)}mouseDoubleClickEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}doubleTapEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}contextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}touchContextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}dataSourceAtPoint(e,t){const i=this._pane.state();if(!i.maximized().value()&&i.collapsed().value())return null;const s=this._grouppedSources(),r=[...s.sources,...s.topLevelSources,...i.customSources()];let n=null,o=null;if(!this._priceScale)return null;const a=(e,t)=>{var i;const s=null!==(i=null==o?void 0:o.result())&&void 0!==i?i:0;e.result()>s&&(o=e,n=t)},l=new C.Point(e,t);for(let e=r.length-1;e>=0;--e){const t=r[e],s=t.priceAxisViews(i,this._priceScale);if(s&&0!==s.length)for(let e=s.length-1;e>=0;--e){const i=s[e].renderer();if(void 0!==i.hitTest){const e=i.hitTest(l,this._size.w,this._isLeft?"left":"right");null!==e&&a(e,t)}}}return n}reset(){const e=this._pane.state(),t=this.priceScale();this._undoModel.resetPriceScale(e,t),this.onOptimalWidthNeedToBeRecalculated(!0)}sizeReady(){return this.getWidth()>=this.optimalWidth()&&null===this._updateTimeout}updateCurrencyLabel(){if(null===this._currencyLabel)return;let e=!1;if(this._options.currencyConversionEnabled){const t=this.priceScale().currency(this._undoModel.model().availableCurrencies());null===t||"alwaysOff"===(0,Ie.currencyUnitVisibilityProperty)().value()?(e=this._currencyLabel.currencyLabelEnabled(),this._currencyLabel.disableCurrency()):(e=!this._currencyLabel.currencyLabelEnabled(),this._currencyLabel.enableCurrency(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),e=this._currencyLabel.setCurrencyInfo(t)||e)}if(this._options.unitConversionEnabled){const t=this.priceScale().unit(this._undoModel.model().availableUnits());null===t||"alwaysOff"===(0,Ie.currencyUnitVisibilityProperty)().value()?(e=e||this._currencyLabel.unitLabelEnabled(),this._currencyLabel.disableUnit()):(e=e||!this._currencyLabel.unitLabelEnabled(),this._currencyLabel.enableUnit(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),e=this._currencyLabel.setUnitInfo(t)||e)}this._updateCurrencyLabelFont(),e&&(this._currencyLabelWidth=null)}_grouppedSources(){var e;const t=this._pane,i=t.state().model(),s=this._sameSideSources().slice(),r=t.state(),n=this.priceScale(),o=new Set,a=null!==(e=i.lineBeingEdited())&&void 0!==e?e:i.lineBeingCreated();a&&o.add(a);const l=i.customSourceBeingMoved();null!==l&&o.add(l),i.sourcesBeingMoved().forEach(e=>o.add(e)),i.selection().allSources().forEach(e=>o.add(e));const c=i.hoveredSource();null!==c&&o.add(c);if(n===r.defaultPriceScale()){const e=this._pane.state().dataSources() +;for(const t of e)r.isOverlay(t)&&s.push(t)}return{sources:s,topLevelSources:o}}_isCurrencyLabelEnabled(){return null!==this._currencyLabel&&this._currencyLabel.isEnabled()}_updateCurrencyLabelFont(){if(null===this._currencyLabel)return;const e=this.fontSize();e!==this._currencyFontSize&&(this._currencyLabel.setFontSize(e),this._currencyFontSize=e,this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())}_alignLabels(){const e=this._size.h;let t=e/2;const i=[],s=this.priceScale(),r=s.orderedSources().slice(),n=this._pane.state(),o=this.rendererOptions();if(s===n.defaultPriceScale()){const e=n.priceDataSources();for(let t=0;t{if(t.ignoreAlignment()||!t.isVisible())return!1;const i=t.height(o),s=t.floatCoordinate();return s>-i&&se.floatCoordinate()<=t),c=i.filter(e=>e.floatCoordinate()>t);l.sort((e,t)=>t.floatCoordinate()-e.floatCoordinate()),l.length>0&&c.length>0&&c.push(l[0]),c.sort((e,t)=>e.floatCoordinate()-t.floatCoordinate());for(const e of i)e.setFixedCoordinate(e.coordinate());if(s.properties().childs().alignLabels.value()){for(let e=1;en-s&&t.setFixedCoordinate(n-s)}for(let e=1;e{if(this._options.croppedTickMarks)return{visible:!0,yCorrection:this._widthCache.yMidCorrection(e,t.label)};const i=t.coord-a/2,s=t.coord+a/2,r=!(s>this._size.h||ithis._size.h||i{for(let s=i.length;s--;){if(!c[s].visible)continue;const r=i[s];e.fillText(r.label,o/t,r.coord+c[s].yCorrection)}}),e.restore()}_hasAlertLabel(){return!1}async _showCurrenciesContextMenu(){if(null!==this._currencyMenu&&this._currencyMenu.isOpened())return void this._currencyMenu.close();(0,se.trackEvent)("GUI","Currency conversion");const{currencyActions:e}=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(1e3),i.e(8994),i.e(2704)]).then(i.bind(i,11507)),t=await ve(ke,()=>e(this._undoModel,(0, +s.ensureNotNull)(this._currencyLabel).currencyInfo(),this.priceScale()),(0,s.ensureNotNull)(this._currencyLabel).currencyLabelElement());this._destroyed?t.close():this._currencyMenu=t}async _showUnitsContextMenu(){if(null!==this._unitMenu&&this._unitMenu.isOpened())return void this._unitMenu.close();(0,se.trackEvent)("GUI","Unit conversion");const{unitActions:e}=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(2e3),i.e(7962),i.e(8986),i.e(7836),i.e(5774),i.e(1112),i.e(4763),i.e(4474),i.e(7237),i.e(1e3),i.e(8994),i.e(2704)]).then(i.bind(i,53997)),t=await ve(De,()=>e(this._undoModel,(0,s.ensureNotNull)(this._currencyLabel).unitInfo(),this.priceScale()),(0,s.ensureNotNull)(this._currencyLabel).unitLabelElement());this._destroyed?t.close():this._unitMenu=t}_onFontSizeChanged(){this._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()}_mouseOrTouchMoveEvent(e){if(!this._priceScale)return;this.dataSourceAtPoint(e.localX,e.localY)?this._setCursorClassName("pointer"):this._setResizeCursor()}_mouseDownOrTouchStartEvent(e){this._zoomAvailable()&&this._options.pressedMouseMoveScale&&!this._pinching&&(this._dragScaleActive=!0,this._undoModel.startScalePrice(this._pane.state(),this.priceScale(),e.localY))}_mouseEnterOrTouchStartEvent(e){this._setResizeCursor()}_pressedMouseOrTouchMoveEvent(e){if(this._dragScaleActive){const t=this.priceScale();this._undoModel.scalePriceTo(this._pane.state(),t,e.localY)}}_mouseUpOrTouchEndEvent(e){this._finishScale()}_finishScale(){this._dragScaleActive&&(this._undoModel.endScalePrice(this._pane.state(),this.priceScale()),this.restoreDefaultCursor(),this._dragScaleActive=!1)}_mouseClickOrTapEvent(e){if(this._currencyLabel){if(this._currencyLabel.currencyLabelElement().contains(e.target))return void this._showCurrenciesContextMenu();if(this._currencyLabel.unitLabelElement().contains(e.target))return void this._showUnitsContextMenu()}const t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._undoModel.selectionMacro(e=>{e.selection().isSelected(t)||(e.clearSelection(),e.addSourceToSelection(t))})}_mouseLeaveOrTouchEndEvent(e){this._setCursorClassName("")}_mouseDoubleClickOrDoubleTapEvent(e){const t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t):(this.reset(),(0,se.trackEvent)("GUI","Double click price scale"))}_contextMenuOrTouchContextMenuEvent(e){if(this._options.contextMenuEnabled){const t=this.dataSourceAtPoint(e.localX,e.localY);if(null!==t&&this._options.contextMenu.source){return void this._undoModel.model().selectionMacro(i=>{i.selection().isSelected(t)||(i.clearSelection(),i.addSourceToSelection(t)),this._pane.showContextMenuForSelection(e)})}this._options.contextMenu.general&&$.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"PriceScaleContextMenu"},{menuName:"PriceScaleContextMenu"})}}_setResizeCursor(){const e=this.priceScale() +;e.isPercentage()||e.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&(this._options.pressedMouseMoveScale||this._options.mouseWheelScale)&&this._setCursorClassName("ns-resize")}_setCursorClassName(e){let t="";e&&(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t)}_zoomAvailable(){return!this.priceScale().isEmpty()&&this._undoModel.model().zoomEnabled()}_onMousewheel(e){if(!this._zoomAvailable()||!this._options.mouseWheelScale)return;const t=(0,s.ensureNotNull)(this._mouseWheelHelper).processWheel(e).deltaY;if(0===t)return;e.cancelable&&e.preventDefault();const i=this._undoModel,r=this._pane.state(),n=this.priceScale(),o=this._cell.getBoundingClientRect(),a=e.clientY-o.top,l=a+15*t;i.startScalePrice(r,this.priceScale(),a,!0),i.scalePriceTo(r,n,l),i.endScalePrice(r,n),e.stopPropagation()}_drawCrossHairLabel(e,t){var i,s;e.save();const r=this._pane.state(),n=r.model(),o=this.priceScale(),a=[],l=this.priceScale()===r.defaultPriceScale(),c=null!==(i=n.lineBeingEdited())&&void 0!==i?i:n.lineBeingCreated();if(c&&(c.priceScale()===o||l&&r.isOverlay(c))){const e=c.priceAxisViews(r,o);e&&e.length&&a.push(e)}const h=n.customSourceBeingMoved();this._addViewsOrMaxMin(null===h?[]:[h],a),this._addViewsOrMaxMin(n.sourcesBeingMoved(),a),this._addViewsOrMaxMin(n.selection().allSources(),a);const d=n.hoveredSource();if(d){const e=r.customSources().includes(d)?o:d.priceScale();if(!n.selection().isSelected(d)&&(this._isFromSameSide(e)||l&&r.isOverlay(d))){const e=null===(s=n.hoveredSource())||void 0===s?void 0:s.priceAxisViews(r,o);e&&e.length&&a.push(e)}}const u=n.crossHairSource().priceAxisViews(r,o);u&&u.length&&a.push(u);const p=this.rendererOptions(),_=this._isLeft?"right":"left";a.forEach(i=>{i.forEach(i=>{e.save(),i.renderer().draw(e,p,this._widthCache,this._size.w,this._size.h,_,t),e.restore()})}),e.restore()}_drawBackground(e,t){const i=Math.ceil(this._size.w*t),s=Math.ceil(this._size.h*t),r=this.backgroundTopColor(),n=this.backgroundColor();if(r===n?(0,N.clearRect)(e,0,0,i+1,s+1,this.backgroundColor()):(0,R.clearRectWithGradient)(e,0,0,i+1,s+1,r,n),this._highlighted){e.globalAlpha=.5;const t=F.themes[this._backgroundBasedTheme.value()].getThemedColor("color-price-axis-highlight");(0,N.fillRect)(e,0,0,i+1,s+1,t),e.globalAlpha=1}const o=this._pane.state().model(),a=this.priceScale(),l=o.selection().lineDataSources().filter(e=>e.priceScale()===a).reduce((e,t)=>{const i=t.priceAxisPoints();return 0===i.length?e:e.concat(i)},[]);l.length>0&&this._hightlightBackground(e,l,this.priceScale().mainSource(),t);const c=o.crossHairSource();c.startMeasurePoint()&&this._hightlightBackground(e,c.measurePoints(),this.priceScale().mainSource(),t)}_drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)),s=this._isLeft?Math.floor(this._size.w*t)-i:0;e.fillRect(s,0,i,Math.ceil(this._size.h*t)+1), +e.restore()}_drawBackLabels(e,t){e.save();const i=this.backLabels(),s=this.rendererOptions(),r=this._isLeft?"right":"left";for(const n of i)n.isAxisLabelVisible()&&(e.save(),n.renderer().draw(e,s,this._widthCache,this._size.w,this._size.h,r,t),e.restore());e.restore()}_hightlightBackground(e,t,i,s){if(!i)return;const r=i.firstValue();if(null===r)return;let n=t[0].price,o=t[0].price;for(let e=1;ei.isOverlay(e)||this._isFromSameSide(e.priceScale()))),0!==e.length)if(1===e.length){const r=e[0].priceAxisViews(i,s);r&&r.length&&t.push(r)}else t.push(this._minMaxViews(e))}_minMaxViews(e){const t=this._pane.state(),i=this.priceScale(),s=[];let r=1/0,n=-1/0,o=null,a=null;for(const s of e){const e=s.priceAxisViews(t,i);if(e&&e.length)for(let t=0;t=n&&(n=s,a=i),s<=r&&(r=s,o=i)}}return a&&s.push(a),o&&s.push(o),s}_isFromSameSide(e){return null!==e&&(this._isLeft?this._pane.state().leftPriceScales():this._pane.state().rightPriceScales()).includes(e)}_sameSideSources(){const e=this._pane.state().sourcesByGroup();return this._isLeft?e.leftPriceScalesSources():e.rightPriceScalesSources()}_initActions(){if(!this._pane.hasState()||null!==this._actions)return;const e=this._undoModel,t=new xe.Action({actionId:"Chart.PriceScale.Reset",label:Ve,icon:Me,shortcutHint:(0,be.humanReadableHash)(be.Modifiers.Alt+82),statName:"ResetScale",onExecute:()=>this.reset()}),i=new xe.Action({actionId:"Chart.PriceScale.ToggleAutoScale",label:Be,checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:()=>{e.togglePriceScaleAutoScaleMode(this.priceScale()),this._updateScalesActions()}}),s=new xe.Action({actionId:"Chart.PriceScale.TogglePercentage",label:Ne,checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:()=>{e.togglePriceScalePercentageScaleMode(this.priceScale()),this._updateScalesActions()}}),r=new xe.Action({actionId:"Chart.PriceScale.ToggleIndexedTo100",label:Re,checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:()=>{e.togglePriceScaleIndexedTo100ScaleMode(this.priceScale()),this._updateScalesActions()}}),n=new xe.Action({actionId:"Chart.PriceScale.ToggleLogarithmic",label:Oe,checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:()=>{e.togglePriceScaleLogScaleMode(this.priceScale()),this._updateScalesActions()}}),o=new xe.Action({actionId:"Chart.PriceScale.ToggleRegular",label:Fe,checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:()=>{e.setPriceScaleRegularScaleMode(this.priceScale()),this._updateScalesActions()}}),a=new xe.Action({ +actionId:"Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",label:We,checkable:!0,checked:this.priceScale().properties().childs().alignLabels.value(),statName:"TogglePreciseLabels"});a.setBinding(new we.ActionBinder(a,this.priceScale().properties().childs().alignLabels,e,Le));const l=new xe.Action({actionId:"Chart.PriceScale.ToggleInvertScale",label:He,checkable:!0,checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:()=>{e.invertPriceScale(this.priceScale()),this._updateScalesActions()}});this._actions={reset:t,setAutoScale:i,setPercentage:s,setIndexedTo100:r,setLog:n,setRegular:o,alignLabels:a,invertScale:l},this._updateScalesActions()}_logAction(){return this._isMainSeriesAxis()?this._chart.actions().logSeriesScale:(0,s.ensureNotNull)(this._actions).setLog}_percentageAction(){return this._isMainSeriesAxis()?this._chart.actions().percentSeriesScale:(0,s.ensureNotNull)(this._actions).setPercentage}_indexedTo100Action(){return this._isMainSeriesAxis()?this._chart.actions().indexedTo100SeriesScale:(0,s.ensureNotNull)(this._actions).setIndexedTo100}_autoScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().autoSeriesScale:(0,s.ensureNotNull)(this._actions).setAutoScale}_regularScaleAction(){return this._isMainSeriesAxis()?this._chart.actions().regularSeriesScale:(0,s.ensureNotNull)(this._actions).setRegular}_lockScaleAction(){const e=this._chart.actions().lockSeriesScale,t=ze(this.priceScale(),this._undoModel.model().mainSeriesScaleRatio());return e.update({hint:t}),e}_invertAction(){return this._isMainSeriesAxis()?this._chart.actions().invertSeriesScale:(0,s.ensureNotNull)(this._actions).invertScale}_isMainSeriesAxis(){return this.priceScale().hasMainSeries()}_updateScalesActions(){const e=this.priceScale(),t=this._isMainSeriesAxis(),i=(0,s.ensureNotNull)(e.mainSource()).properties(),r=t&&e.isLockScale(),n=t&&6===i.style.value(),o=(0,s.ensureNotNull)(this._actions);o.setRegular.update({checked:e.isRegular(),disabled:r||n}),o.setPercentage.update({checked:e.isPercentage(),disabled:r||n}),o.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:r||n}),o.setLog.update({checked:e.isLog(),disabled:r||n}),o.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().childs().autoScaleDisabled.value()})}_createMergeScalesAction(){const e=this._chart.actions(),t=this._undoModel.model().priceScaleSlotsCount();if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;const i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new xe.Action({actionId:"Chart.PriceScale.MergeAllScales",label:Ae,subItems:i})}_setCursor(e){let t="";"grabbing"!==e&&"ns-resize"!==e||(t="price-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}}function Ge(e,t){return e.position-t.position}function qe(e,t,i){const s=(e.position-t.position)/(e.time-t.time) +;return Math.sign(s)*Math.min(Math.abs(s),i)}class Ye{constructor(e,t,i,s){this._position1=null,this._position2=null,this._position3=null,this._position4=null,this._animationStartPosition=null,this._durationMsecs=0,this._speedPxPerMsec=0,this._terminated=!1,this._minSpeed=e,this._maxSpeed=t,this._dumpingCoeff=i,this._minMove=s}addPosition(e,t){if(null!==this._position1){if(this._position1.time===t)return void(this._position1.position=e);if(Math.abs(this._position1.position-e)50)return;let i=0;const s=qe(this._position1,this._position2,this._maxSpeed),r=Ge(this._position1,this._position2),n=[s],o=[r];if(i+=r,null!==this._position3){const e=qe(this._position2,this._position3,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=Ge(this._position2,this._position3);if(n.push(e),o.push(t),i+=t,null!==this._position4){const e=qe(this._position3,this._position4,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=Ge(this._position3,this._position4);n.push(e),o.push(t),i+=t}}}}let a=0;for(let e=0;ea&&(e.hittest=t,e.source=i,e.renderer=s,e.isCustom=r)}const xt={contextMenuEnabled:!0,contextMenu:Te.defaultContextMenuOptions,priceScaleContextMenuEnabled:!0,legendWidgetEnabled:!0,controlsEnabled:!0,propertyPagesEnabled:!0,sourceSelectionEnabled:!0,countdownEnabled:!0},It=new Map([[M.AreaName.Text,"Text"],[M.AreaName.Style,"Style"]]),Mt=!Pe.enabled("display_legend_on_all_charts");function Lt(e,t){return!(0,M.shouldDefaultActionBeExecuted)(e,t,"pressedMouseMoveHandler","touchMoveHandler")}class At{constructor(e,t,i,s){this._legendWidget=null,this._paneControls=null,this._isDestroyed=!1,this._trackCrosshairOnlyAfterLongTap=(0,x.lastMouseOrTouchEventInfo)().isTouch,this._startTrackPoint=null,this._exitTrackingModeOnNextTry=!1,this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._preventSourceChange=!1,this._clonningAtMoveLineTools=null,this._startCloningPoint=null,this._size=new N.Size(0,0),this._themedTopColor=null,this._initCrossHairPosition=null,this._firstZoomPoint=null,this._editDialog=null,this._processing=!1,this._touchMove=!1,this._startTouchPoint=null,this._isSelecting=!1,this._prevHoveredHittest=null,this._contextMenuX=0,this._contextMenuY=0,this._startScrollingPos=null,this._isScrolling=!1,this._scrollPriceScale=null,this._scrollXAnimation=null,this._scrollYAnimation=null,this._prevPinchScale=1,this._pinching=!1,this._wasPinched=!1,this._longTap=!1,this._contextMenuOpenedOnLastTap=!1,this._paneControlsResizeObserver=null,this._lastClickedSource=null,this._customLegendWidgetsFactoryMap=new Map,this._prevMoveEventPosition=null,this._onMagnetStateChangedListener=this._onMagnetStateChanged.bind(this),this._onShiftKeyStateChangedListener=this._onShiftKeyStateChanged.bind(this),this._currentCursorClassName="",this._lastFinishedToolId=null,this._needResetMeasureLater=!1,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._prevTooltipData=null,this._errorRenderer=null,this._highlightedPriceAxis=new($e())({owner:"",axis:null}),this._visuallyCollapsed=new($e())(!1),this._canvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._topCanvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._updateVisuallyCollapsed=()=>{this._visuallyCollapsed.setValue(!this.state().maximized().value()&&this.state().collapsed().value())},this._chart=e,this._state=t,this._options=(0,_.merge)((0,_.clone)(xt),i),this._paneWidgetsSharedState=s,this._state&&this._subscribeToState();const r={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,mouseWheelScale:this._options.handleScale.mouseWheel,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled, +croppedTickMarks:this._options.croppedTickMarks};void 0!==this._options.priceScaleContextMenu&&(r.contextMenu=this._options.priceScaleContextMenu);const n=(e,t,i,s,n)=>new je(this._chart,this,this._chartUndoModel(),i,t,e,r,s,n),o=e.properties().childs().scalesProperties,a=this._chartModel().rendererOptionsProvider(),l={backgroundBasedTheme:e.backgroundBasedTheme(),rendererOptionsProvider:a,getBackgroundTopColor:()=>this._chartModel().backgroundTopColor().value(),getBackgroundBottomColor:()=>this._chartModel().backgroundColor().value()},c={showLabels:!1};this._lhsPriceAxisesContainer=new ee(o,"left",n,l,c),this._rhsPriceAxisesContainer=new ee(o,"right",n,l,c),this._paneCell=document.createElement("td"),this._paneCell.classList.add("chart-markup-table","pane"),this._div=document.createElement("div"),this._div.classList.add("chart-gui-wrapper"),this._div.setAttribute("data-name","pane-widget-chart-gui-wrapper"),this._paneCell.appendChild(this._div),this._canvasBinding=(0,N.createBoundCanvas)(this._div,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const h=this._canvasBinding.canvas;h.style.position="absolute",h.style.left="0",h.style.top="0",this._topCanvasBinding=(0,N.createBoundCanvas)(this._div,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const d=this._topCanvasBinding.canvas;d.style.position="absolute",d.style.left="0",d.style.top="0",this._rowElement=document.createElement("tr"),this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()),this._options.legendWidgetEnabled&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),this._state&&!this._chart.readOnly()&&this._options.controlsEnabled&&this._loadAndCreatePaneControlsWidget(),(0,nt.magnetEnabled)().subscribe(this._onMagnetStateChangedListener),(0,ot.shiftPressed)().subscribe(this._onShiftKeyStateChangedListener),this._paneCell.addEventListener("dragover",e=>{e.dataTransfer&&Array.from(e.dataTransfer.files).some(blobImageFilter)&&e.preventDefault()}),this.setCursorForTool(),this._mouseEventHandler=new B.MouseEventHandler(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!this._options.handleScroll.vertTouchDrag,treatHorzTouchDragAsPageScroll:!this._options.handleScroll.horzTouchDrag}),this._prevHoveredHittest=null,this._highlightedPriceAxis.subscribe(e=>this._highlightPriceAxisByLabel(e.axis)),this._prevPinchScale=0,this._isDestroyed=!1}destroy(){var e;this._chart.onPaneWidgetDestroyed(this),this._customLegendWidgetsFactoryMap.clear(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._legendWidget&&(this._legendWidget.destroy(), +this._legendWidget=null),null!==this._paneControlsResizeObserver&&this._paneControlsResizeObserver.disconnect(),null!==this._paneControls&&(this._paneControls.destroy(),this._paneControls=null),this._lhsPriceAxisesContainer.destroy(),this._rhsPriceAxisesContainer.destroy(),this.hasState()&&this._unsubscribeFromState(),(0,nt.magnetEnabled)().unsubscribe(this._onMagnetStateChangedListener),(0,ot.shiftPressed)().unsubscribe(this._onShiftKeyStateChangedListener),this._paneWidgetsSharedState.onPaneDestroyed(this),this._errorRenderer&&this._errorRenderer.then(e=>{e.destroy(),this._errorRenderer=null}),this._prevHoveredHittest=null,this._mouseEventHandler.destroy(),null===(e=this._rowElement.parentElement)||void 0===e||e.removeChild(this._rowElement),this._isDestroyed=!0}size(){return this._size}setSize(e){(0,s.assert)(e.w>=0&&e.h>=0,"Try to set invalid size to PaneWidget "+JSON.stringify(e)),this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._paneCell.style.width=e.w+"px",this._paneCell.style.height=e.h+"px",this._div.style.width=e.w+"px",this._div.style.height=e.h+"px",this._rowElement.classList.toggle("js-hidden",0===e.h),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e),null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.w))}width(){return this._size.w}height(){return this._size.h}backgroundColor(){return this._chartModel().backgroundColor().value()}highlightedPriceAxis(){return this._highlightedPriceAxis}processDoubleClickOnSource(e,t){(0,E.isDataSource)(e)&&e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)}stretchFactor(){return this._state?this._state.stretchFactor():0}setStretchFactor(e){this.hasState()&&this.state().setStretchFactor(e)}setCursorForTool(e,t,i){if(t&&t.mod()&&e)return void this._setCursorClassName("pointer");if(void 0!==i){switch(i){case it.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case it.PaneCursorType.HorizontalResize:this._setCursorClassName("ew-resize");break;case it.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case it.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case it.PaneCursorType.Default:this._setCursorClassName("default");break;case it.PaneCursorType.Pointer:this._setCursorClassName("pointer");break;case it.PaneCursorType.Grabbing:this._setCursorClassName("grabbing")}return}const s=k.tool.value();if((0,k.toolIsCursor)(s)){if(null!==this._paneWidgetsSharedState.draggingSource()||this._isScrolling||this._chartUndoModel()&&this._chartUndoModel().model().sourcesBeingMoved().length)return void this._setCursorClassName("grabbing");if(e&&this._options.sourceSelectionEnabled)return void this._setCursorClassName("pointer")}if("eraser"===s)return void this._setCursorClassName("eraser");if("zoom"===s)return void this._setCursorClassName("zoom-in");const r=k.cursorTool.value() +;"dot"!==r?"arrow"!==r?this._setCursorClassName(""):this._setCursorClassName("default"):this._setCursorClassName("dot")}showContextMenuForSelection(e){const t=this._chartUndoModel().selection();if(t.isEmpty())return;const i=t.dataSources().filter(e=>e.hasContextMenu());this.showContextMenuForSources(i,e)}async showContextMenuForSources(e,t,i){var s;if(!e.length)return Promise.resolve(null);const r=e[0],n=(0,_.merge)((0,_.clone)(this._options.contextMenu),i||{}),o=new Te.ActionsProvider(this._chart,n);if(r===this._chartUndoModel().crossHairSource())return r.handleContextMenuEvent(t),Promise.resolve(null);{const i=await o.contextMenuActionsForSources(e,t);if(0===i.length)return Promise.resolve(null);{let e;return e=r instanceof lt.Series?{menuName:"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,f.isLineTool)(r)?{menuName:"ObjectTreeContextMenu",detail:{type:"shape",id:null!==(s=null==r?void 0:r.id())&&void 0!==s?s:null}}:{menuName:"ObjectTreeContextMenu",detail:{type:"study",id:(null==r?void 0:r.id())||null}},$.ContextMenuManager.createMenu(i,void 0,e).then(e=>(e.show(t),e))}}}leftPriceAxisesContainer(){return this._lhsPriceAxisesContainer}rightPriceAxisesContainer(){return this._rhsPriceAxisesContainer}setPriceAxisSizes(e,t,i){this._priceAxisesContainer(e).setSizes(t,i)}state(){return(0,s.ensureNotNull)(this._state)}hasState(){return null!==this._state}setState(e){this._state!==e&&(this.hasState()&&this._unsubscribeFromState(),this._state=e,this.hasState()&&(this._subscribeToState(),this.updatePriceAxisWidgets()))}getScreenshotData(e){const t=[],i=[];let s,r=[];const n=this.state().sourcesByGroup().priceSources().slice().reverse(),o=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();for(const a of n){const n=a.statusView();if((0,v.isStudy)(a)&&(o.showLegend.value()||(null==e?void 0:e.showCollapsedStudies))){const s=o.showStudyTitles.value(),r=s;a.properties().visible.value()&&n&&r&&(t.push(s?a.statusProvider(null==e?void 0:e.status).text():""),i.push(a.valuesProvider().getValues(null)))}else a===this._chartModel().mainSeries()&&n&&o.showSeriesTitle.value()&&(s=a.statusProvider((null==e?void 0:e.status)||{}).text(),r=a.valuesProvider().getValues(null))}return{type:"pane",leftAxis:this._lhsPriceAxisesContainer.getScreenshotData(),rightAxis:this._rhsPriceAxisesContainer.getScreenshotData(),content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this._size.w,contentHeight:this._size.h,studies:t,studiesValues:i,containsMainSeries:this.containsMainSeries(),mainSeriesText:s,mainSeriesValues:r}}updatePriceAxisWidgets(){if(!this.hasState())return;const e=this._chartModel(),t=e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount(),s=this.state(),r=s.visibleLeftPriceScales(),n=s.visibleRightPriceScales();this._lhsPriceAxisesContainer.setScales(r,i.left,t.leftPriceScales().length,i.left+i.right),this._rhsPriceAxisesContainer.setScales(n,i.right,t.rightPriceScales().length,i.left+i.right)}update(){ +this.hasState()&&(this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls())}updateStatusWidget(e=b.InvalidationLevel.None){this.hasState()&&null!==this._legendWidget&&(e===b.InvalidationLevel.Full?this._legendWidget.updateLayout():this._legendWidget.update())}updateControls(){this.hasState()&&null!==this._paneControls&&this._paneControls.update()}updateThemedColors(e){this._themedTopColor=e.topColor,this._updateByThemedColors()}statusWidget(){return this._legendWidget}getElement(){return this._rowElement}canvasElement(){return this._canvasBinding.canvas}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}pinchStartEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&null===this._paneWidgetsSharedState.pinchingPane()&&(this._onTouchEvent(),this._options.handleScale.pinch&&(this._terminateActiveAnimations(),this._prevPinchScale=1,this._pinching=!0,this._wasPinched=!0,this._paneWidgetsSharedState.setPinchingPane(this)))}pinchEvent(e,t,i,s){if(null!==this._paneWidgetsSharedState.scrollingPane()||this._paneWidgetsSharedState.pinchingPane()!==this)return;if(this._onTouchEvent(),!this._options.handleScale.pinch)return;const r=10*(s-this._prevPinchScale);this._prevPinchScale=s,this._chartModel().zoomTime(e.x,r,!0),this._prevPinchScale=s}pinchEndEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&this._paneWidgetsSharedState.pinchingPane()===this&&(this._onTouchEvent(),this._pinching=!1,this._paneWidgetsSharedState.setPinchingPane(null))}mouseClickEvent(e){this._onMouseEvent(),this._mouseClickOrTapEvent(e)}tapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseClickOrTapEvent(e))}mouseDownEvent(e){this._onMouseEvent(),this.hasState()&&this._mouseDownOrTouchStartEvent(e,(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY)))}touchStartEvent(e){if(this._paneWidgetsSharedState.startTouch(this),this._preventTouchEventsExceptPinch())return;const t=this._chartModel().crossHairSource(),i=!this._trackCrosshairOnlyAfterLongTap&&t.pane===this._state&&Number.isFinite(t.originX())&&Number.isFinite(t.originY())&&Math.abs(t.originX()-e.localX)+Math.abs(t.originY()-e.localY)<5;this._onTouchEvent(),this._chart.setActivePaneWidget(this);const r=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));i&&(r.source===t||t.selectPointMode().value()?this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY)):!this._chart.readOnly()&&(0,f.isLineTool)(r.source)&&r.source.userEditEnabled()&&this._chartUndoModel().selectionMacro(e=>{var t;e.clearSelection(),e.addSourceToSelection(r.source,null===(t=r.hittest)||void 0===t?void 0:t.data())})),this._mouseDownOrTouchStartEvent(e,r),this._mouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._onMouseEvent(),this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._paneWidgetsSharedState.endTouch(this),this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseOrTouchLeaveEvent(e), +this._mouseUpOrTouchEndEvent(e))}mouseMoveEvent(e){this._onMouseEvent(),this._mouseOrTouchMoveEvent(e)}pressedMouseMoveEvent(e){this._onMouseEvent(),this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._pressedMouseOrTouchMoveEvent(e))}mouseLeaveEvent(e){this._onMouseEvent(),this._mouseOrTouchLeaveEvent(e)}mouseDoubleClickEvent(e){this._onMouseEvent(),this._mouseDoubleClickOrDoubleTapEvent(e)}wheelClickEvent(e){var t,i;if(this._chart.readOnly())return;const r=this._dataSourceAtPoint(e.localX,e.localY);if(null===r||r.isCustom||null===r.source)return;if(((null===(t=r.hittest)||void 0===t?void 0:t.result())||0)<=M.HitTestResult.MOVEPOINT_BACKGROUND)return;const n=new A.EnvironmentState(e),o=null===(i=r.hittest)||void 0===i?void 0:i.eraseMarker();if(n.mod()&&void 0!==o&&r.source.processErase)return void r.source.processErase(this._chartUndoModel(),o);const a=this._chartUndoModel();a.selection().isSelected(r.source)||a.selectionMacro(e=>{e.clearSelection();const t=(0,s.ensureNotNull)(r.source);e.addSourceToSelection(t,Pt(r,t))}),this._chart.removeSelectedSources()}doubleTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseDoubleClickOrDoubleTapEvent(e))}longTapEvent(e){if(null===this._state||this._preventTouchEventsExceptPinch())return;if(this._onTouchEvent(),this._longTap=!0,null!==this._startTrackPoint||!this._trackingModeShouldBeActive())return;const t=this._chartModel().selection();if(!t.isEmpty()){const i=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));if(null!==i.source&&t.isSelected(i.source))return}this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY),new A.EnvironmentState(e))}mouseEnterEvent(e){this._onMouseEvent(),this.hasState()&&(this._chart.setActivePaneWidget(this),this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e)))}contextMenuEvent(e){this._onMouseEvent(),this._contextMenuEvent(e)}touchContextMenuEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._contextMenuEvent(e))}mouseDownOutsideEvent(){this._processOutsideClick({hittest:null,isCustom:!1,renderer:null,source:null})}cancelZoom(){this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,this._preventCrossHairMove()&&this._clearCursorPosition()}startTrackingMode(e,t,i){this._startChangeLineToolParams=null,this._startMoveSourceParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null,this._chartUndoModel().selectionMacro(e=>e.clearSelection()),this._startTrackPoint=e,this._exitTrackingModeOnNextTry=!1,this._setCursorPosition(t.x,t.y,i),this._initCrossHairPosition=this._chartModel().crossHairSource().currentPoint()}setDragToAnotherPaneCursor(){this._setCursorClassName("grabbing")}cloneLineTools(e,t){return this._chartUndoModel().cloneLineTools(e,t)}exitTrackingMode(){null!==this._state&&null!==this._startTrackPoint&&(this._exitTrackingModeOnNextTry=!0,this._tryExitTrackingMode())}trackingModeEnabled(){ +return null!==this._state&&null!==this._startTrackPoint}addCustomWidgetToLegend(e,t){this._options.legendWidgetEnabled&&(this._customLegendWidgetsFactoryMap.set(e,t),null!==this._legendWidget&&this._legendWidget.addCustomWidgetToLegend(e,t))}containsMainSeries(){return!!this.hasState()&&this.state().containsMainSeries()}paint(e,t){if(!this._chartUndoModel()||!this.hasState())return;this._state&&(e.priceScaleSideMaxLevel("left")>b.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>b.InvalidationLevel.Cursor)&&(this._recalculatePriceScales((0,ht.viewportChangeEvent)()),this._chartModel().updateCrosshairPositionByOriginCoords());const i=e.fullInvalidation();if(i>b.InvalidationLevel.Cursor){const e=this._chartModel().crossHairSource(),t=e.originX(),i=e.originY();if(e.pane===this._state&&Number.isFinite(t)&&Number.isFinite(i)){const e=this._dataSourceAtPoint(t,i);null!==e&&this._updateHoveredSource(e,(0,ot.globalEnvironmentState)())}}if(this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left")),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right")),i===b.InvalidationLevel.None)return;const r=this._state&&(this._state.maximized().value()||!this._state.collapsed().value());if(i>b.InvalidationLevel.Cursor){const e=(0,s.ensureNotNull)(this._canvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const i=this._canvasRenderParams();this._drawBackground(e,i),r&&this._drawSources(e,i,t)}if(null!==this._state){const e=(0,s.ensureNotNull)(this._topCanvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=this._topCanvasRenderParams();e.clearRect(0,0,Math.ceil(this._size.w*t.pixelRatio),Math.ceil(this._size.h*t.pixelRatio)),r&&this._drawSeriesTopViews(e,t),this._drawCrossHair(e,t),r&&this._drawActiveLineTools(e,t)}}cancelCreatingLineTool(){const e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0&&!(0,et.isLineDrawnWithPressedButton)(t.toolname)){const i=t.points();if(i.length>2){const s=i[i.length-2];e.continueCreatingLine(s),this._finishTool(t)}else e.cancelCreatingLine()}else e.cancelCreatingLine();null!==this._firstZoomPoint&&this.cancelZoom(),this.setCursorForTool()}drawRightThere(e){if((0,f.isLineToolName)(e)&&this.hasState()){const t=this._chartUndoModel(),i=t.crossHairSource(),s=t.model().magnet().align(i.price,i.index,this.state());t.createLineTool({pane:this.state(),point:{index:i.index,price:s},linetool:e})}}cancelMeasuring(){this._chartUndoModel().crossHairSource().clearMeasure(),(0,k.resetToCursor)(),this.setCursorForTool()}async setErrorMessage(e){var t,i,s;e&&!this._errorRenderer&&(this._errorRenderer=this._createErrorBlock()),null===(t=await this._errorRenderer)||void 0===t||t.update({message:null==e?void 0:e.message,icon:(null===(i=this._state)||void 0===i?void 0:i.containsMainSeries())||(null===(s=this._state)||void 0===s?void 0:s.maximized().value())?null==e?void 0:e.icon:void 0, +backgroundColor:`linear-gradient(${this._chartModel().backgroundTopColor().value()}, ${this._chartModel().backgroundColor().value()})`,textColor:this._chartModel().isDark()?_t:pt})}collapsedHeight(){var e,t;return Math.max(Math.ceil(null!==(t=null===(e=this._paneControls)||void 0===e?void 0:e.bottomWithMargin())&&void 0!==t?t:0),33)}_topCanvasRenderParams(){return{pixelRatio:this._topCanvasBinding.pixelRatio,physicalWidth:this._topCanvasBinding.canvas.width,physicalHeight:this._topCanvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_canvasRenderParams(){return{pixelRatio:this._canvasBinding.pixelRatio,physicalWidth:this._canvasBinding.canvas.width,physicalHeight:this._canvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_tryExitTrackingMode(e){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,e||this._clearCursorPosition())}_tryStartMeasure(e,t,i,s,r){return!(!(0,k.toolIsMeasure)(k.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,i),s=this._chartModel().magnet().align(s,r,this.state()),t.startMeasuring({price:s,index:r},this.state()),!0)}_tryFinishMeasure(e,t){if(t.startMeasurePoint()&&!t.endMeasurePoint()){let i=t.price;const s=t.index;return i=this._chartModel().magnet().align(i,s,this.state()),t.finishMeasure({price:i,index:s}),e.isTouch?(0,k.resetToCursor)():this._needResetMeasureLater=!0,this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1}_tryStartZoom(e,t,i,s){const r=this._chart.model().model().zoomEnabled();if("zoom"===k.tool.value()&&r){const r=this._chartUndoModel(),n=r.timeScale().indexToCoordinate(i)-.5*r.timeScale().barSpacing();return this._firstZoomPoint={price:t,index:i,x:n,y:e.localY},this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,s),this._chartModel().crossHairSource().startSelection(this.state()),!0}return!1}_finishZoom(e){const t=this.state(),i=t.defaultPriceScale(),r=(0,s.ensureNotNull)(t.mainDataSource()).firstValue(),n=i.coordinateToPrice(e.localY,(0,s.ensureNotNull)(r)),o=this._chartUndoModel(),a=Math.round(o.timeScale().coordinateToIndex(e.localX)),l=(0,s.ensureNotNull)(this._firstZoomPoint);a!==l.index&&o.zoomToViewport(l.index,a,l.price,n,t),this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,(0,k.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition()}_tryFinishZoom(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}_tryHandleEraserMouseDown(e,t){if(e.source&&"eraser"===k.tool.value()&&!e.isCustom&&(!(i=e.source)||!i.customization||!i.customization.disableErasing)){const i=this._chartUndoModel();if(null!==e.hittest&&((0,f.isLineTool)(e.source)||(0,v.isStudy)(e.source))){const s=e.hittest.eraseMarker();return t.mod()&&void 0!==s&&e.source.processErase?e.source.processErase(i,s):i.removeSource(e.source,!1),!0}}var i;return!1}_tryStartChangingLineTool(e,t,i,r){var n,o +;if(e.isTouch&&null!==this._startTrackPoint)return!1;const a=t.hittest;if((!e.isTouch||!this._preventSourceChange)&&a&&(0,f.isLineTool)(t.source)&&a.result()===M.HitTestResult.CHANGEPOINT){const l=this._chartUndoModel(),c=(0,s.ensure)(null===(n=this.state().mainDataSource())||void 0===n?void 0:n.firstValue()),h=(0,s.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,c);l.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(t.source,a.data())});const d=l.model().magnet().align(h,r,this.state()),u=null===(o=a.data())||void 0===o?void 0:o.pointIndex;return this._startChangeLineToolParams={source:t.source,startPoint:{index:r,price:d},screenPoint:{x:e.localX,y:e.localY},pointIndex:u,envState:i},!0}return this._startChangeLineToolParams=null,!1}_tryStartCloning(e,t,i,s){if(i.mod()){const t=this._chartUndoModel().selection().dataSources().filter(e=>e.cloneable());if(s&&s.cloneable()&&t.push(s),t.length>0)return this._clonningAtMoveLineTools=t.map(e=>e.id()),this._startCloningPoint=new C.Point(e.localX,e.localY),!0}return!1}_tryFinishClonning(e,t,i){const r=this._chartUndoModel(),n=this._chartModel();if(t.mod()&&this._clonningAtMoveLineTools){const o=new C.Point(e.localX,e.localY),a=(0,s.ensureNotNull)(this._startCloningPoint).subtract(o).length(),l=[];for(const e of this._clonningAtMoveLineTools){const t=n.dataSourceForId(e);null!==t&&l.push(t)}if(0===l.length)return!1;if(a>8){const n=this.cloneLineTools(l,!0).map(e=>(0,s.ensureNotNull)(r.model().dataSourceForId(e)));r.selectionMacro(e=>{e.clearSelection();let t=null;n.forEach(s=>{null===t&&(t=Pt(i,s)),e.addSourceToSelection(s,t)})});const o=new C.Point(e.localX,e.localY),a=(0,s.ensureNotNull)(n[0].priceScale()),c=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue(),h={index:r.timeScale().coordinateToIndex(e.localX),price:a.coordinateToPrice(e.localY,(0,s.ensureNotNull)(c))};r.startMovingSources(n,{logical:h,screen:o},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1}_mouseDownEventForLineTool(e,t,i,r){var n,o;const a=k.tool.value();if(!this.hasState()||(0,et.isLineToolDrawWithoutPoints)(a))return;const l=this._chartUndoModel();let c=!1,h=null;(0,k.hideAllDrawings)().value()&&(0,ct.toggleHideMode)(),(0,k.lockDrawings)().setValue(!1),e.isTouch&&!e.stylus&&((0,f.isLineToolName)(a)&&!(0,et.isLineDrawnWithPressedButton)(a)||l.lineBeingCreated())&&this._initToolCreationModeParams(e);const d=l.lineBeingCreated();if(d&&!(0,et.isLineDrawnWithPressedButton)(d.toolname)){const a=(0,s.ensure)(null===(n=d.ownerSource())||void 0===n?void 0:n.firstValue());if(e.isTouch&&!e.stylus){if(!this._startTouchPoint){this._startTouchPoint=new C.Point(e.pageX,e.pageY);const t=d.points(),i=t[t.length-1],r=l.timeScale().indexToCoordinate(i.index),n=(0,s.ensureNotNull)(d.priceScale()).priceToCoordinate(i.price,a);return void(this._initCrossHairPosition=new C.Point(r,n))}}else if(!e.isTouch){h=d;const n=l.model().paneForSource(d);if(n!==this._state&&null!==n){ +const i=this._externalPaneXCoord(n,e.localX),r=this._externalPaneYCoord(n,e.localY);c=l.continueCreatingLine({index:Math.round(l.timeScale().coordinateToIndex(i)),price:(0,s.ensure)(null===(o=d.priceScale())||void 0===o?void 0:o.coordinateToPrice(r,a))},t)}else{const e=l.model().magnet().align(r,i,this.state());c=l.continueCreatingLine({index:i,price:e},t)}}}else if(!e.isTouch||e.stylus||(0,et.isLineDrawnWithPressedButton)(a)){const e={index:i,price:l.model().magnet().align(r,i,this.state())};h=l.createLineTool({pane:this.state(),point:e,linetool:a}),l.lineBeingCreated()||(c=!0)}const u=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));h&&l.selectionMacro(e=>{var t;return e.addSourceToSelection((0,s.ensureNotNull)(h),null===(t=u.hittest)||void 0===t?void 0:t.data())}),c&&h&&(this._finishTool(h,u),e.preventDefault())}_handleSelectionMouseDownAndGetJustDeselectedSource(e,t,i){const s=this._chartUndoModel();let r=null;if(null===t.source||t.source.isSelectionEnabled()){let n=e.isTouch?Boolean(t.hittest&&t.hittest.result()>=M.HitTestResult.MOVEPOINT_BACKGROUND):Boolean(t.hittest&&t.hittest.result()>M.HitTestResult.MOVEPOINT_BACKGROUND);this._preventSourceChange&&(n=!1),s.selectionMacro(e=>{var s;n&&t.source?(i.mod()||e.selection().isSelected(t.source)||e.clearSelection(),i.mod()&&e.selection().isSelected(t.source)?(r=t.source,e.removeSourceFromSelection(t.source)):e.addSourceToSelection(t.source,null===(s=t.hittest)||void 0===s?void 0:s.data()),e.selection().allSources().length>1&&(0,se.trackEvent)("GUI","Multiselect","Click Select")):i.mod()||e.clearSelection()})}return r}_processMouseMoveWhileZoom(e,t){this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,t)}_updateCommonTooltip(e,t){let i=null;if(null!==e&&null!==e.hittest){const t=e.hittest.data();t&&(i=t.tooltip||null)}if(null===this._prevTooltipData&&null===i)return;if(null===i||""===i.text)return this._prevTooltipData=null,void(0,st.hide)(t);if(this._prevTooltipData&&(0,w.default)(i,this._prevTooltipData))return;this._prevTooltipData=i;const s=(0,_.clone)(i);if(void 0!==s.rect){const e=this._paneCell.getBoundingClientRect();s.rect.x+=e.left,s.rect.y+=e.top}(0,st.show)(s)}_setCursorPositionOnExternalPane(e,t,i,s){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i);this._chart.paneByState(e)._setCursorPosition(t,i,s)}_setCursorPosition(e,t,i){this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)}_setCursorClassName(e){let t="";e&&(t="pane--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._paneCell.classList.remove(this._currentCursorClassName),t&&this._paneCell.classList.add(t),this._currentCursorClassName=t,this._paneCell.style.cursor)}_processMouseUpOrTouchEndHandler(e){var t;null===(t=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY)).hittest)||void 0===t||t.tryCallMouseUpOrTouchEndHandler(e)}_crossHairShouldBeVisible(){const e=this._chartModel().crossHairSource();return(0,f.isLineToolName)(k.tool.value())||(0, +k.toolIsMeasure)(k.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()}_clearCursorPosition(){this._chartModel().clearCurrentPosition()}_dataSourceAtPoint(e,t){if(!this.hasState())return null;const i={source:null,hittest:null,isCustom:!1,renderer:null},s=this._chartUndoModel();if((0,f.isLineToolName)(k.tool.value())||null!==s.lineBeingCreated())return i;if(this._currentChangingLineToolHitTest)return this._currentChangingLineToolHitTest;if(this._currentMovingHitTest)return this._currentMovingHitTest;const r=this.state(),n=r.height(),o=r.width(),a=Tt.bind(null,i),l=this._canvasRenderParams(),c=new C.Point(e,t);if(!this.state().maximized().value()&&this.state().collapsed().value()||(0,x.lastMouseOrTouchEventInfo)().isTouch&&(k.isPointSelectedNow.value()||null!==this._startTrackPoint))return this._hitTestSources(l,[s.crossHairSource()],c,a,!1),i;const h=r.sourcesByGroup(),d=s.selection();this._hitTestSources(l,d.dataSources(),c,a,!1),this._hitTestSources(l,d.customSources(),c,a,!0);const u=new Set(d.allSources().map(e=>e.id()));this._hitTestSources(l,[s.crossHairSource()],c,a,!1,u),this._hitTestSources(l,r.customSources(L.CustomSourceLayer.Topmost),c,a,!0,u),this._hitTestSources(l,h.tradingSources(),c,a,!1,u),this._hitTestSources(l,r.customSources(L.CustomSourceLayer.Foreground),c,a,!0,u);const p=[...this._chartModel().multiPaneSources(r),...h.hitTestSources()];if(this._hitTestSources(l,p,c,a,!1,u),this.containsMainSeries()){const e=s.barsMarksSources();for(let t=0;t=0;--s){const h=t[s];if(void 0!==o&&o.has(h.id()))continue;const d=h.paneViews(a);if(null!==d&&0!==d.length)for(let t=d.length-1;t>=0;--t){const s=d[t].renderer(l,c);if(s&&s.hitTest){const t=s.hitTest(i,e);null!==t&&r(t,h,s,n)}}}}_tryStartMovingLineTool(e,t,i,r){var n,o;if(null===t.source||!t.source.movable()||null!==this._startTrackPoint)return!1;if(!this._preventSourceChange){const a=this._chartUndoModel(),l=(0,s.ensureNotNull)((0,s.ensureNotNull)(this._state).mainDataSource()).firstValue(),c=(0,s.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,(0,s.ensureNotNull)(l));let h=(t.source.isSelectionEnabled()?a.selection().allSources():[t.source]).filter(at);const d=h.filter(f.isLineTool);h=d.length>0?d:h.includes(t.source)?[t.source]:[h[0]];const u=new C.Point(e.localX,e.localY),p={index:r,price:c +},_=null===(o=null===(n=t.hittest)||void 0===n?void 0:n.data())||void 0===o?void 0:o.activeItem;return this._startMoveSourceParams={source:h,startPoint:{logical:p,screen:u},activeItem:void 0===_?null:_,envState:i},!0}return this._startMoveSourceParams=null,!1}_chartModel(){return this._chart.model().model()}_chartUndoModel(){return this._chart.model()}_externalPaneXCoord(e,t){t+=this._div.getBoundingClientRect().left+document.body.scrollLeft;const i=(0,s.ensureNotNull)(this._chart.paneByState(e)),r=i._div.getBoundingClientRect().left+document.body.scrollLeft;return i._correctXCoord(t-r)}_externalPaneYCoord(e,t){t+=this._div.getBoundingClientRect().top+document.body.scrollTop;const i=(0,s.ensureNotNull)(this._chart.paneByState(e)),r=i._div.getBoundingClientRect().top+document.body.scrollTop;return i._correctYCoord(t-r)}_correctXCoord(e){return Math.max(0,Math.min(e,this._size.w-1))}_correctYCoord(e){return Math.max(0,Math.min(e,this._size.h-1))}_processScroll(e){if(!this._chart.model().model().scrollEnabled())return;const t=Date.now();this._startScrollingPos||this._preventScroll()||(this._startScrollingPos={x:e.clientX,y:e.clientY,timestamp:t,localX:e.localX,localY:e.localY}),null!==this._scrollXAnimation&&this._scrollXAnimation.addPosition(e.localX,t),null!==this._scrollYAnimation&&this._scrollYAnimation.addPosition(e.localY,t);const i=this._chartUndoModel();let s=this.state().defaultPriceScale();if(this._startScrollingPos&&!this._isScrolling&&(this._startScrollingPos.x!==e.clientX||this._startScrollingPos.y!==e.clientY))return i.beginUndoMacro(mt,!0),null===this._scrollXAnimation&&this._options.useKineticScroll&&(this._scrollXAnimation=new Ye(.2,7,.997,15),this._scrollXAnimation.addPosition(this._startScrollingPos.localX,this._startScrollingPos.timestamp),this._scrollXAnimation.addPosition(e.localX,t)),this._scrollYAnimation,i.selection().isEmpty()||(s=i.selection().allSources()[0].priceScale()),null===s||s.isEmpty()||(this._scrollPriceScale=s,i.startScrollPrice(this.state(),s,e.localY)),i.startScrollTime(e.localX),this._isScrolling=!0,this.setCursorForTool(),void this._paneWidgetsSharedState.setScrollingPane(this);this._isScrolling&&(null!==this._scrollPriceScale&&i.scrollPriceTo(this.state(),this._scrollPriceScale,e.localY),i.scrollTimeTo(e.localX))}_finishScroll(){const e=this._chartUndoModel();e.endScrollTime(),null!==this._scrollPriceScale&&e.endScrollPrice(this.state(),this._scrollPriceScale),e.endUndoMacro(),this._isScrolling=!1,this._startScrollingPos=null,this._scrollPriceScale=null,this.setCursorForTool(),this._paneWidgetsSharedState.setScrollingPane(null)}_endScroll(e){if(!this._isScrolling)return!1;const t=this._isScrolling&&this._scrollUndoCommandInStack();if(this._isScrolling){const i=Date.now();null!==this._scrollXAnimation&&this._scrollXAnimation.start(e.localX,i),null!==this._scrollYAnimation&&this._scrollYAnimation.start(e.localY,i);const s=this._chartUndoModel(),r=null===this._scrollXAnimation||this._scrollXAnimation.finished(i),n=null===this._scrollYAnimation||this._scrollYAnimation.finished(i) +;if(r&&n)return this._finishScroll(),t;r?(s.endScrollTime(),this._paneWidgetsSharedState.setScrollingPane(null)):n&&(this._scrollPriceScale&&s.endScrollPrice(this.state(),this._scrollPriceScale),this._scrollPriceScale=null);const o=s.timeScale(),a=this._scrollXAnimation,l=this._scrollYAnimation,c=()=>{if((null===a||a.terminated())&&(null===l||l.terminated()))return;const e=Date.now();let t=null===a||a.finished(e);const i=null===l||l.finished(e);if(null!==a&&!a.terminated()){const i=o.rightOffset();s.scrollTimeTo(a.getPosition(e)),i===o.rightOffset()&&(t=!0,this._scrollXAnimation=null)}null===l||l.terminated()||null===this._scrollPriceScale||s.scrollPriceTo(this.state(),this._scrollPriceScale,l.getPosition(e)),t&&i?this._finishScroll():requestAnimationFrame(c)};requestAnimationFrame(c)}return t}_terminateActiveAnimations(){const e=Date.now(),t=null===this._scrollXAnimation||this._scrollXAnimation.finished(e),i=null===this._scrollYAnimation||this._scrollYAnimation.finished(e);null===this._scrollXAnimation&&null===this._scrollYAnimation||t&&i||this._finishScroll(),null!==this._scrollXAnimation&&(this._scrollXAnimation.terminate(),this._scrollXAnimation=null),null!==this._scrollYAnimation&&(this._scrollYAnimation.terminate(),this._scrollYAnimation=null)}_preventScroll(){return this._trackCrosshairOnlyAfterLongTap&&this._longTap||this._contextMenuOpenedOnLastTap||(0,f.isLineToolName)(k.tool.value())||Boolean(this._chartUndoModel().lineBeingCreated())||null!==this._startTrackPoint}_isSelectPointModeEnabled(){return this._chartUndoModel().crossHairSource().selectPointMode().value()}_preventCrossHairMove(){return!!this._trackCrosshairOnlyAfterLongTap&&(null===this._chart.trackingModePaneWidget()&&(!!this._contextMenuOpenedOnLastTap||!this._crossHairShouldBeVisible()&&null===this._startTrackPoint))}_finishTool(e,t=null){const i=this._chartUndoModel(),s=k.tool.value();if((0,k.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),i.selectionMacro(i=>{i.addSourceToSelection(e,Pt(t,e))}),(0,et.isTextToolName)(s)){const t=i.createUndoCheckpoint();this._chart.showChartPropertiesForSource(e,tt.TabNames.text,void 0,t).then(e=>{0})}this._lastFinishedToolId=e.id(),(0,h.emit)("drawing_event",e.id(),"create"),(0,Qe.trackDrawingCreated)(e)}_alignSourcesThatBeingMoved(e,t,i,s){const r=this._chartUndoModel(),n=r.timeScale().coordinateToIndex(t);r.model().sourcesBeingMoved().forEach(e=>{var o,a;let l=n,c=e.convertYCoordinateToPriceForMoving(i,this.state().mainDataSource());if(null!==c){if((0,v.isStudy)(e)){const e=r.mainSeries(),t=e.bars().firstIndex(),i=e.bars().lastIndex();null!==t&&null!==i&&(l=Math.min(Math.max(n,t),i)),c=this._chartModel().magnet().align(c,n,this.state())}null!==this._currentMovingHitTest&&void 0!==(null===(a=null===(o=this._currentMovingHitTest.hittest)||void 0===o?void 0:o.data())||void 0===a?void 0:a.cursorType)||this.setCursorForTool(),r.moveSources({screen:new C.Point(t,i),logical:{index:l,price:c}},s)}})}_resetMeasureIfRequired(){this._needResetMeasureLater&&((0,k.resetToCursor)(), +this._needResetMeasureLater=!1)}_drawBackground(e,t){const i=Math.ceil(t.pixelRatio*this._size.w),s=Math.ceil(t.pixelRatio*this._size.h),r=this._chartModel(),n=r.backgroundTopColor().value(),o=r.backgroundColor().value();n===o?(0,N.clearRect)(e,0,0,i+1,s+1,o):(0,R.clearRectWithGradient)(e,0,0,i+1,s+1,n,o)}_drawWatermark(e,t){const i=this._chartModel().watermarkSource();if(null===i)return;const s=this.state();if(!s.containsMainSeries())return;const r=i.paneViews(),n=s.height(),o=s.width();for(const i of r){e.save();const s=i.renderer(n,o);s&&s.draw(e,t),e.restore()}}_drawCrossHair(e,t){const i=this._chartUndoModel().crossHairSource();!i.visible&&(0,k.lockTimeAxis)().value()&&(i.setLockedPosition((0,s.ensureNotNull)(this._state)),i.updateAllViews((0,ht.dataSourceChangeEvent)(i.id()))),this._drawSourceImpl(e,t,yt,St,i)}_drawActiveLineTools(e,t){const i=this._chartModel(),s=[i.lineBeingCreated(),i.lineBeingEdited(),...i.sourcesBeingMoved(),i.customSourceBeingMoved()].filter(e=>!!e);for(const r of s){(i.paneForSource(r)===this.state()||(0,E.isDataSource)(r)&&r.isMultiPaneEnabled())&&this._drawSourceImpl(e,t,yt,St,r)}}_drawSeriesTopViews(e,t){this.state().containsMainSeries()&&this._drawSourceImpl(e,t,bt,St,this._chartUndoModel().mainSeries())}_drawSources(e,t,i){const s=this.state(),r=s.model(),n=s.sourcesByGroup(),o=n.tradingSources(),a=[...r.multiPaneSources(s),...n.generalSources()],l=n.phantomSources(),c=s.customSources(L.CustomSourceLayer.Background).slice(),h=s.customSources(L.CustomSourceLayer.Foreground).slice(),d=s.customSources(L.CustomSourceLayer.Topmost).slice();{const e=r.panes();for(let t=e.length-1;t>=0;t--)e[t].createDrawingsCaches()}this._drawSourceImpl(e,t,yt,St,r.gridSource()),this._drawWatermark(e,t);for(const i of c)this._drawSourceImpl(e,t,yt,vt,i);for(const i of a)this._drawSourceImpl(e,t,yt,vt,i);for(const i of h)this._drawSourceImpl(e,t,yt,vt,i);for(const i of l)this._drawSourceImpl(e,t,yt,vt,i);const u=new Set;[r.lineBeingCreated(),r.lineBeingEdited(),...r.sourcesBeingMoved(),r.customSourceBeingMoved()].filter(_.notNull).forEach(e=>u.add(e.id()));let p=r.hoveredSource();null!==p&&(ft(p)||u.has(p.id())||(0,E.isDataSource)(p)&&!a.includes(p)?p=null:u.add(p.id()));const m=r.selection().allSources().filter(e=>!((0,E.isDataSource)(e)&&!a.includes(e))&&(!u.has(e.id())&&!ft(e)));m.forEach(e=>u.add(e.id()));{for(const i of c)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of a)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of h)this._drawSourceImpl(e,t,yt,St,i,u);const i=r.activeStrategySource().value();i&&this.containsMainSeries()&&this._drawSourceImpl(e,t,Ct,St,i)}for(const i of o)this._drawSourceImpl(e,t,yt,vt,i);for(const i of d)this._drawSourceImpl(e,t,yt,vt,i);for(const i of a)this._drawSourceImpl(e,t,wt,St,i,u);for(const i of h)this._drawSourceImpl(e,t,wt,St,i,u);this._drawBarsMarks(e,t,i);for(const i of o)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of d)this._drawSourceImpl(e,t,yt,St,i,u);for(const i of m)this._drawSourceImpl(e,t,yt,St,i);for(const i of m)this._drawSourceImpl(e,t,wt,St,i) +;p&&(this._drawSourceImpl(e,t,yt,St,p),this._drawSourceImpl(e,t,wt,St,p));for(const i of l)this._drawSourceImpl(e,t,yt,St,i,u);{const e=r.panes();for(let t=e.length-1;t>=0;t--)e[t].clearDrawingCaches()}}_drawSourceImpl(e,t,i,s,r,n){if(n&&n.has(r.id()))return;const o=this.state(),a=o.height(),l=o.width(),c=i(r,this.state());if(c)for(const i of c){const r=i.renderer(a,l);r&&(e.save(),s(r,e,t),e.restore())}}_drawBarsMarks(e,t,i){if(this.containsMainSeries()&&!i){const i=this._chartUndoModel().barsMarksSources();for(const s of i)this._drawSourceImpl(e,t,yt,St,s)}}_updateByThemedColors(){null!==this._legendWidget&&this._legendWidget.updateThemedColors(this._themedTopColor),null!==this._paneControls&&this._paneControls.updateThemedColors(this._themedTopColor)}_scrollUndoCommandInStack(){const e=this._chartUndoModel().undoHistory().undoStack();if(e.isEmpty())return!1;const t=e.head();if(!(t instanceof D.UndoMacroCommand))return!1;if(t.isEmpty())return!1;const i=t.commands()[0];return i instanceof Ze.PriceScaleChangeUndoCommand||i instanceof Xe.TimeScaleChangeUndoCommand}_onStateDestroyed(){this.setState(null)}_onDataSourcesCollectionChanged(){this._startMoveSourceParams=null}_processMouseEnterLeaveMoveHandlers(e,t){var i,s,r,n;null!==this._prevHoveredHittest&&this._prevHoveredHittest.renderer!==e.renderer&&((0,M.tryCallHandler)(t,null===(s=null===(i=this._prevHoveredHittest.hittest)||void 0===i?void 0:i.data())||void 0===s?void 0:s.mouseLeaveHandler),this._prevHoveredHittest=null),t.isTouch||(e.hittest&&(null===(r=this._prevHoveredHittest)||void 0===r?void 0:r.renderer)!==e.renderer&&(e.hittest.tryCallMouseEnterHandler(t),this._prevHoveredHittest=e),null===(n=e.hittest)||void 0===n||n.tryCallMouseMoveHandler(t))}_startChangeOrMoveLineToolIfNeeded(){if(null!==this._startChangeLineToolParams){const e=this._startChangeLineToolParams;this._chartUndoModel().startChangingLinetool(e.source,e.startPoint,e.pointIndex,e.envState)}if(null!==this._startMoveSourceParams){const e=this._startMoveSourceParams;this._chartUndoModel().startMovingSources(e.source,e.startPoint,e.activeItem,e.envState)}this._startMoveSourceParams=null,this._startChangeLineToolParams=null}_trackingModeShouldBeActive(){return!(!this._trackCrosshairOnlyAfterLongTap||this._contextMenuOpenedOnLastTap||this._crossHairShouldBeVisible())&&this._longTap}_processOutsideClick(e){let t=null;const i=this._chartModel();if(e.source&&(t=e.isCustom?i.customSourceName(e.source):e.source.id()),null!==this._lastClickedSource&&this._lastClickedSource.id!==t){const e=this._lastClickedSource.id;let t=this._lastClickedSource.isCustom?i.customSourceForName(e):i.dataSourceForId(e);null!==t||this._lastClickedSource.isCustom||(t=this._chartUndoModel().barMarksSourceForId(e)),null!==t&&t.onClickOutside&&(t.onClickOutside(),this._chartModel().updateSource(t))}this._lastClickedSource=null!==t?{id:t,isCustom:e.isCustom}:null}_mouseClickOrTapEvent(e){var t,i,r;if(!this.hasState())return +;const n=this._dataSourceAtPoint(e.localX,e.localY),o=n&&n.source,a=this._chartUndoModel(),l=Boolean(null===(i=null===(t=null==n?void 0:n.hittest)||void 0===t?void 0:t.data())||void 0===i?void 0:i.hideCrosshairLinesOnHover);this._processOutsideClick((0,s.ensureNotNull)(n)),!this._isSelectPointModeEnabled()||l||e.isTouch&&this.trackingModeEnabled()&&!this._exitTrackingModeOnNextTry||a.crossHairSource().trySelectCurrentPoint(),(null===(r=null==n?void 0:n.hittest)||void 0===r?void 0:r.tryCallClickOrTapHandler(e))&&a.model().updateSource((0,s.ensureNotNull)(o)),!e.isTouch||this._isSelectPointModeEnabled()||n&&n.source===a.crossHairSource()||this._tryExitTrackingMode(),o instanceof V.BarsMarksContainer&&n&&n.hittest&&n.hittest.data()&&o.onClicked((0,s.ensureNotNull)(n.hittest).data()),o&&(0,f.isLineTool)(o)&&this._lastFinishedToolId!==o.id()&&(0,h.emit)("drawing_event",o.id(),"click"),this._resetMeasureIfRequired()}_mouseDownOrTouchStartEvent(e,t){var i,r,n,o,a,l,c,d;if(e.isTouch&&(this._longTap=!1,this._exitTrackingModeOnNextTry=null!==this._startTrackPoint,this._paneWidgetsSharedState.clearDraggingSource()),this._contextMenuOpenedOnLastTap=!1,this._lastFinishedToolId=null,this._terminateActiveAnimations(),e.isTouch&&this._switchTrackingModeFromAnotherPaneIfNeeded(e),document.activeElement!==document.body&&document.activeElement!==document.documentElement)document.activeElement&&document.activeElement.blur?document.activeElement.blur():document.body.focus();else{const e=document.getSelection();null!==e&&e.removeAllRanges()}(0,h.emit)("mouse_down",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),this._updateCommonTooltip(null);const u=this._chartUndoModel(),p=new A.EnvironmentState(e);u.mainSeries().clearGotoDateResult();const _=this.state().defaultPriceScale();if(_.isEmpty()||u.timeScale().isEmpty())return;const m=u.crossHairSource();if(!e.isTouch&&!(0,et.isLineDrawnWithPressedButton)(k.tool.value())){const t=u.lineBeingCreated(),i=null!==t?u.model().paneForSource(t):null;null!==i&&i!==this._state?this._setCursorPositionOnExternalPane(i,e.localX,e.localY,p):this._setCursorPosition(e.localX,e.localY,p)}e.isTouch&&(0,f.isLineToolName)(k.tool.value())&&((0,et.isLineDrawnWithPressedButton)(k.tool.value())||null!==m.pane?(0,et.isLineDrawnWithPressedButton)(k.tool.value())&&this._clearCursorPosition():this._chart.updateCrossHairPositionIfNeeded());const g=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue();if(null===g)return void(this._chart.readOnly()||(this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,p),t.source&&(0,Je.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this)));let v=_.coordinateToPrice(e.localY,g),S=this._chartModel().timeScale().coordinateToIndex(e.localX);if(m.startMeasurePoint()&&m.endMeasurePoint()&&m.clearMeasure(), +p.shift()&&!(null===(n=null===(r=null===(i=t.hittest)||void 0===i?void 0:i.data())||void 0===r?void 0:r.hasOwnShortcutsBehaviourFor)||void 0===n?void 0:n.shiftKey)&&(0,k.toolIsCursor)(k.tool.value())&&u.selection().isEmpty()&&k.tool.setValue("measure"),(e.isTouch&&!e.stylus||!this._tryStartMeasure(e,m,p,v,S))&&(e.isTouch&&!e.stylus||!this._tryFinishMeasure(e,m))&&!this._tryFinishZoom(e)&&!this._tryStartZoom(e,v,S,p)){if(e.isTouch&&(null!==this._startTrackPoint?(this._initCrossHairPosition=m.currentPoint(),this._startTrackPoint=new C.Point(e.localX,e.localY)):this._isSelectPointModeEnabled()&&null===this._chart.trackingModePaneWidget()&&this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(e.localX,e.localY),new A.EnvironmentState(e))),e.isTouch&&(this._preventSourceChange=null===t.source||!u.selection().isSelected(t.source)),!this._isSelectPointModeEnabled()&&!this._isScrolling){if(e.isTouch&&!e.stylus&&((0,k.toolIsMeasure)(k.tool.value())||null!==m.measurePane().value()))return void this._initToolCreationModeParams(e);if((0,f.isLineToolName)(k.tool.value())||u.lineBeingCreated())return p.shift()||u.selectionMacro(e=>e.clearSelection()),void this._mouseDownEventForLineTool(e,p,S,v)}if(null===(o=t.hittest)||void 0===o||o.tryCallMouseDownOrTouchStartHandler(e),!this._chart.readOnly()){const i=this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,p);if(t.hittest&&t.source&&!this._preventSourceChange){const i=t.hittest.data();if(t.isCustom){if(t.hittest.hasPressedMoveHandler(e))return u.model().setMovingCustomSource(t.source,i),this._currentMovingHitTest=t,void u.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection((0,s.ensureNotNull)(t.source),(0,s.ensureNotNull)(i))})}else if((null==i?void 0:i.areaName)===M.AreaName.SourceItemMove){const r=null==i?void 0:i.activeItem;if(void 0!==r)return u.startCustomMoving(t.source,r,e),this._currentMovingHitTest=t,void u.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection((0,s.ensureNotNull)(t.source),(0,s.ensureNotNull)(i))})}}if(this._tryHandleEraserMouseDown(t,p))return;const r=t.source&&(0,f.isLineTool)(t.source)&&t.source.isLocked&&t.source.isLocked();if(!((0,k.lockDrawings)().value()||r)&&!t.isCustom){if(t.source&&!t.source.userEditEnabled())return;const s=null===(l=null===(a=t.hittest)||void 0===a?void 0:a.data())||void 0===l?void 0:l.snappingPrice,r=null===(d=null===(c=t.hittest)||void 0===c?void 0:c.data())||void 0===d?void 0:d.snappingIndex;let n=e.localY,o=e.localX;if(void 0!==s&&(n=_.priceToCoordinate(s,g),v=s),void 0!==r&&(o=this._chartModel().timeScale().indexToCoordinate(r),S=r),n===e.localY&&o===e.localX||(e={...e,localY:n,localX:o},this._setCursorPosition(e.localX,e.localY,p)),this._tryStartChangingLineTool(e,t,p,S))return void(this._currentChangingLineToolHitTest=t);if(this._currentChangingLineToolHitTest=null,t.hittest&&((y=t.hittest.result())===M.HitTestResult.MOVEPOINT||y===M.HitTestResult.MOVEPOINT_BACKGROUND&&(0,x.lastMouseOrTouchEventInfo)().isTouch)){if(this._tryStartCloning(e,t,p,i))return +;if(this._tryStartMovingLineTool(e,t,p,S))return void(this._currentMovingHitTest=t);this._currentMovingHitTest=null}}if(t.source&&(0,Je.isPriceDataSource)(t.source)&&t.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this))return}var y;t&&t.hittest&&t.hittest.result()===M.HitTestResult.REGULAR||(this._processing=!0)}}_mouseUpOrTouchEndEvent(e){var t,i;if(!this.hasState())return;const r=e.isTouch&&null!==this._startTrackPoint,n=e.isTouch&&this._wasPinched;e.isTouch&&(this._wasPinched=!1,this._longTap=!1),this._startMoveSourceParams=null,this._startChangeLineToolParams=null,this._currentChangingLineToolHitTest=null,this._currentMovingHitTest=null;const o=this._chartUndoModel(),a=o.model().customSourceMovingHitTestData();null!==a||o.customMoveBeingProcessed()||this._processMouseUpOrTouchEndHandler(e),this._isSelecting=!1;const l=o.model(),c=l.crossHairSource(),d=this._dataSourceAtPoint(e.localX,e.localY),u=null==d?void 0:d.hittest;if(c.selection()&&null===this._firstZoomPoint){const e=this.state().lineToolsForArea(c.selection());o.selectionMacro(t=>{let i=null;e.forEach(e=>{null===i&&(i=Pt(d,e)),t.addSourceToSelection(e,i)})}),c.clearSelection(),(0,se.trackEvent)("GUI","Multiselect","Area Select")}(0,h.emit)("mouse_up",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});const p=e.isTouch&&this._touchMove;e.isTouch&&(this._touchMove=!1);const _=new A.EnvironmentState(e),m=k.tool.value();if(e.isTouch&&((0,k.toolIsMeasure)(m)||null!==c.measurePane().value())){if(!p&&!e.stylus&&null===c.measurePane().value()&&c.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY);if(!p&&!e.stylus&&this._tryStartMeasure(e,c,_,c.price,c.index))return;if((!p||e.stylus)&&this._tryFinishMeasure(e,c))return}if(e.isTouch&&!p&&!(0,et.isLineDrawnWithPressedButton)(m)&&(0,f.isLineToolName)(m)&&!o.lineBeingCreated()){if(this._chart.justActivated())return;if(c.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY,_);const i=c.currentPoint(),r=this.state().defaultPriceScale(),n=(0,s.ensure)(null===(t=this.state().mainDataSource())||void 0===t?void 0:t.firstValue()),a={index:Math.round(o.timeScale().coordinateToIndex(i.x)),price:r.coordinateToPrice(i.y,n)},l=(0,s.ensureNotNull)(o.createLineTool({pane:this.state(),point:a,linetool:m}));return o.selectionMacro(e=>{e.addSourceToSelection(l)}),o.lineBeingCreated()||(this._finishTool(l,d),e.preventDefault()),void(this._startTouchPoint=null)}const g=o.lineBeingCreated();if(g&&!(0,et.isLineDrawnWithPressedButton)(g.toolname)&&e.isTouch&&(this._startTouchPoint||e.stylus)){if(this._startTouchPoint=null,!p||e.stylus){const t=g.points()[g.points().length-1],i=o.continueCreatingLine({index:t.index,price:t.price},new A.EnvironmentState(e));this._initCrossHairPosition=null,i&&(this._finishTool(g,d),e.preventDefault())}return}if(null!==this._firstZoomPoint&&this._firstZoomPoint.draggingMode)return void this._finishZoom(e);if(this._processing=!1, +o.customMoveBeingProcessed())return void o.endCustomMoving();if(null!==a&&(a.beingMoved&&((0,M.tryCallHandler)(e,a.mouseUpHandler,a.touchEndHandler),this.setCursorForTool()),l.setMovingCustomSource(null,null),Lt(e,a)))return;if(l.lineBeingEdited())return o.endChangingLinetool(!1),void(this._preventCrossHairMove()&&this._clearCursorPosition());if((0,et.isLineDrawnWithPressedButton)(m)&&!this._isSelectPointModeEnabled()){const t=o.lineBeingCreated();null!==t&&((0,Qe.trackDrawingCreated)(t),t.finish());const r=this.state().defaultPriceScale();if(r.isEmpty())return;if(!t)return;const n=(0,s.ensure)(null===(i=t.ownerSource())||void 0===i?void 0:i.firstValue()),a=r.coordinateToPrice(e.localY,n),l={index:Math.round(o.timeScale().coordinateToIndex(e.localX)),price:a};return void o.continueCreatingLine(l)}if(l.sourcesBeingMoved().length)return o.endMovingSource(!1,!1),l.sourcesBeingMoved().filter(f.isLineTool).forEach(e=>{this.setCursorForTool(e)}),void l.invalidate(b.InvalidationMask.cursor());if(!this._chart.readOnly()){const t=e.localX>=0&&e.localXM.HitTestResult.MOVEPOINT_BACKGROUND||(0,x.lastMouseOrTouchEventInfo)().isTouch)&&o.selectionMacro(e=>{e.clearSelection();const t=(0,s.ensureNotNull)(d.source);e.addSourceToSelection(t,Pt(d,t))}),e.isTouch&&(this._touchMove=!1)}_mouseOrTouchMoveEvent(e){if(!this.hasState())return;this._resetMeasureIfRequired();const t=(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));this._processMouseEnterLeaveMoveHandlers(t,e);const i=this._chartUndoModel();if(!i)return;const r=e.localX,n=e.localY;this._prevMoveEventPosition=new C.Point(r,n);const o=new A.EnvironmentState(e);if(null===this._firstZoomPoint){if(this._updateHoveredSource(t,o,e),!e.isTouch&&i.lineBeingCreated()){const e=i.lineBeingCreated(),t=null===e?null:i.model().paneForSource(e);if(null!==t&&t!==this._state)return void this._setCursorPositionOnExternalPane(t,r,n,o)} +e.isTouch||this._setCursorPosition(r,n,o)}else this._processMouseMoveWhileZoom(e,o)}_pressedMouseOrTouchMoveEvent(e){var t;if(!this.hasState()||this._pinching||e.isTouch&&this._contextMenuOpenedOnLastTap)return;this._resetMeasureIfRequired(),this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);const i=new A.EnvironmentState(e),r=this._chartUndoModel(),n=r.crossHairSource(),o=e.localX,a=e.localY;if(this._prevMoveEventPosition=new C.Point(o,a),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);const l=k.tool.value();if(e.isTouch&&this._startTouchPoint&&(0,f.isLineToolName)(l)&&!(0,et.isLineDrawnWithPressedButton)(l)&&!r.lineBeingCreated()&&!this._isSelectPointModeEnabled())return void this._updateCrosshairPositionInToolCreationMode(e,this.state());const c=n.measurePane().value();if(e.isTouch&&(this._startTouchPoint||e.stylus)&&((0,k.toolIsMeasure)(l)||null!==c))return void(e.stylus?this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e)):this._updateCrosshairPositionInToolCreationMode(e,c||this.state()));const h=r.lineBeingCreated();if(e.isTouch&&!e.stylus&&h&&!(0,et.isLineDrawnWithPressedButton)(h.toolname)){if(this._startTouchPoint){const t=(0,s.ensureNotNull)(r.lineBeingCreated()),i=(0,s.ensureNotNull)(r.model().paneForSource(t));this._updateCrosshairPositionInToolCreationMode(e,i)}return}if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;const e=(0,s.ensureNotNull)(this._initCrossHairPosition),t=new C.Point(o,a).subtract(this._startTrackPoint),r=e.add(t);this._setCursorPosition(r.x,r.y,i)}else e.isTouch&&this._preventCrossHairMove()||this._setCursorPosition(o,a,i);const d=this._isSelectPointModeEnabled();if((0,f.isLineToolName)(l)&&!(0,et.isLineDrawnWithPressedButton)(l)&&!d&&!i.mod())return;if((0,et.isLineDrawnWithPressedButton)(l)&&!d){const i=this.state().defaultPriceScale();if(i.isEmpty())return;const n=r.lineBeingCreated();if(!n)return;const o=new C.Point(e.localX,e.localY),a=(0,s.ensure)(null===(t=n.ownerSource())||void 0===t?void 0:t.firstValue());return o.price=i.coordinateToPrice(e.localY,a),o.index=Math.round(r.timeScale().coordinateToIndex(e.localX)),void r.continueCreatingLine(o)}if(null!==this._paneWidgetsSharedState.draggingSource()){const t=e.target,i=this._chart.paneByCanvas(t);i&&(i!==this?i.setDragToAnotherPaneCursor():i.setCursorForTool());const s=this._chart.timeAxisByCanvas(t);s&&s.setCursor("grabbing")}if(r.timeScale().isEmpty())return;const u=this._options.handleScroll;if((!u.pressedMouseMove||e.isTouch)&&(!u.horzTouchDrag&&!u.vertTouchDrag||!e.isTouch))return;if(r.customMoveBeingProcessed())return void r.processCustomMove(e);const p=r.model().customSourceMovingHitTestData();if(null!==p&&(this._updateCommonTooltip(null,!0),r.model().processingCustomSourceMove(),(0,M.tryCallHandler)(e,p.pressedMouseMoveHandler,p.touchMoveHandler),Lt(e,p)))return;if(r.model().lineBeingEdited())return void this._setCursorPosition(o,a,i) +;if(r.model().sourcesBeingMoved().length)return void this._alignSourcesThatBeingMoved(r.model().sourcesBeingMoved(),e.localX,e.localY,i);const _=this._dataSourceAtPoint(e.localX,e.localY);if(this._tryFinishClonning(e,new A.EnvironmentState(e),_))return;const m=(0,k.toolIsMeasure)(l)||n.startMeasurePoint()&&n.endMeasurePoint();this._chart.readOnly()||!i.mod()||(0,f.isLineToolName)(l)||m||d?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this._setCursorPosition(e.localX,e.localY,new A.EnvironmentState(e))):this._isSelecting||(n.startSelection(this.state()),this._isSelecting=!0)}_mouseOrTouchLeaveEvent(e){var t,i;if(!this.hasState())return;const s=this._chartUndoModel();if(!s)return;const r=s.crossHairSource();e.isTouch||null!==r.measurePane().value()&&null===r.endMeasurePoint()||this._clearCursorPosition(),s.model().setHoveredSource(null,null),null!==this._prevHoveredHittest&&((0,M.tryCallHandler)(e,null===(i=null===(t=this._prevHoveredHittest.hittest)||void 0===t?void 0:t.data())||void 0===i?void 0:i.mouseLeaveHandler),this._prevHoveredHittest=null),this._updateCommonTooltip(null),this._chart.unsetActivePaneWidget()}_mouseDoubleClickOrDoubleTapEvent(e){var t;if(!this.hasState())return;const i=!this._chart.readOnly()&&!(0,f.isLineToolName)(k.tool.value())&&(0,s.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY))||null;if(null===i)return;if(i.isCustom)return void(null===(t=i.hittest)||void 0===t||t.tryCallDblClickOrDblTapHandler(e));let r=i.hittest&&i.source||null;r&&i.hittest&&i.hittest.result()<=M.HitTestResult.MOVEPOINT_BACKGROUND&&!e.isTouch&&(r=null),r&&!r.isSelectionEnabled()&&(r=null);const n=this.state();r?this.processDoubleClickOnSource(r,i.hittest?i.hittest:void 0):this._chart.readOnly()||(0,f.isLineToolName)(k.tool.value())||this._chartUndoModel().lineBeingCreated()||!this._chartUndoModel().selection().isEmpty()||(new A.EnvironmentState(e).mod()&&!n.maximized().value()?(n.collapsed().value()||this._chartModel().paneCollapsingAvailable().value())&&this._chart.toggleCollapsedPane(this):this._chart.toggleMaximizePane(this))}_contextMenuEvent(e){var t;const i=this._chartUndoModel();if(i.crossHairSource().startMeasurePoint()&&!this._trackCrosshairOnlyAfterLongTap)return i.crossHairSource().clearMeasure(),void(0,k.resetToCursor)(!0);if(this._pinching)return;if(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),!(0,k.toolIsCursor)(k.tool.value())||this._isSelectPointModeEnabled()){if(e.isTouch)return;return(0,k.resetToCursor)(!0),this.setCursorForTool(),void(i.lineBeingCreated()&&i.cancelCreatingLine())}if(!this._options.contextMenuEnabled)return;const s=this._dataSourceAtPoint(e.localX,e.localY),r=s?s.source:null;if(e.isTouch&&null!==this._startTrackPoint){if(this._preventSourceChange)return;this._clearCursorPosition()}e.isTouch&&(this._contextMenuOpenedOnLastTap=!0,this._startTrackPoint=null),this._contextMenuX=e.localX,this._contextMenuY=e.localY +;const n=s&&s.hittest?s.hittest.result():0,o=n>=M.HitTestResult.REGULAR||n>=M.HitTestResult.MOVEPOINT_BACKGROUND&&e.isTouch;this._chart.updateActions(),i.selectionMacro(t=>{null!==r&&o?t.selection().isSelected(r)||(t.clearSelection(),t.addSourceToSelection(r,Pt(s,r))):(this._options.contextMenu.general&&this._showContextMenu(e),t.clearSelection())}),s&&o&&null!==r&&((0,E.isDataSource)(r)&&r.hasContextMenu()?r.isSelectionEnabled()?this.showContextMenuForSelection(e):this.showContextMenuForSources([r],e):null===(t=s.hittest)||void 0===t||t.tryCallContextMenuHandler(e))}_onMouseEvent(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1}_onTouchEvent(){this._trackCrosshairOnlyAfterLongTap=!0}_switchTrackingModeFromAnotherPaneIfNeeded(e){const t=this._chart.trackingModePaneWidget();if(null!==t&&t!==this){const i=this._chartModel().crossHairSource().currentPoint();t._exitTrackingModeOnNextTry=!0,t._tryExitTrackingMode(!0),this.startTrackingMode(new C.Point(e.localX,e.localY),new C.Point(i.x,e.localY),new A.EnvironmentState(e))}}_showContextMenu(e){const t=e=>e instanceof xe.Separator,i=this._customActions(),s=this._initActions(e).filter(e=>null!==e);i.remove.forEach(e=>{for(let t=0;t0;e--)t(r[e])&&t(r[e-1])&&r.splice(e,1);r.length&&t(r[0])&&r.splice(0,1),r.length&&t(r[r.length-1])&&r.splice(r.length-1,1),$.ContextMenuManager.showMenu(r,e,{statName:"ChartContextMenu"},{menuName:"ChartContextMenu"})}_initActions(e){var t,i;const s=this._chart.actions(),r=[];if(r.push(s.chartReset),r.push(new xe.Separator),!this.state().isEmpty()&&Pe.enabled("datasource_copypaste")){const t=(0,Te.createActionCopyPrice)(this.state(),e.localY),i=(0,Te.createPasteAction)(this._chart,this.state());(t||i)&&(t&&r.push(t),i&&r.push(i),r.push(new xe.Separator))}r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator);return Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.widget("watchlist"))&&s.addToWatchlist&&r.push(s.addToWatchlist),Pe.enabled("text_notes")&&r.push(s.addToTextNotes),r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator),r.push(this._createLockTimeAxisAction(e)),r.push(new xe.Separator),r.push((0,Te.createLinesAction)(this._chart)),!Pe.enabled("charting_library_base")&&s.applyColorTheme&&r.push(s.applyColorTheme),r[r.length-1]instanceof xe.Separator||r.push(new xe.Separator),this._chart.applyIndicatorsToAllChartsAvailable()&&(r.push(s.applyStudiesToAllCharts),r.push(new xe.Separator)),r.push(s.paneRemoveAllDrawingTools),r.push(s.paneRemoveAllStudies),r.push(new xe.Separator),(null===(i=window.pro)||void 0===i?void 0:i.hasPackage("mtp-mtpredictor"))&&this.state().containsMainSeries()&&r.push((0,Te.createMTPredictorActions)(this._chart,this.state(),this._contextMenuX,this._contextMenuY),new xe.Separator),r.push(s.hideAllMarks),r.push(new xe.Separator), +Pe.enabled("show_chart_property_page")&&r.push(s.chartProperties),r[r.length-1]instanceof xe.Separator&&r.pop(),r}_loadAndCreateLegendWidget(){Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,74335)).then(e=>{if(this._isDestroyed)return;const t=e.LegendWidget,i=(0,I.deepExtend)({},this._options.legendWidget);i.canShowSourceCode=!this._chart.onWidget()&&!l.CheckMobile.any(),i.readOnlyMode=i.readOnlyMode||this._chart.readOnly(),i.statusesWidgets={sourceStatusesEnabled:this._options.sourceStatusesWidgetEnabled,sourceStatuses:this._options.sourceStatusesWidget||{},marketStatusEnabled:this._options.marketStatusWidgetEnabled,dataUpdateModeEnabled:this._options.chartWarningWidgetEnabled,dataUpdateMode:this._options.chartWarningWidget||{},dataProblemEnabled:this._options.dataProblemWidgetEnabled};const r=(0,m.combine)((e,t)=>Mt&&this._chart!==e&&!t,this._chart.chartWidgetCollection().activeChartWidget,this._chart.chartWidgetCollection().lock.crosshair),n=(0,m.combine)((e,t)=>null!==e?e===this._state:(0,k.toolIsMeasure)(t),this._chartModel().crossHairSource().measurePane(),k.tool);this._legendWidget=new t(this._chartUndoModel(),this,this._chart.backgroundTopTheme().spawn(),r,this._visuallyCollapsed.spawn(),n,i,{showContextMenuForSelection:this.showContextMenuForSelection.bind(this),showContextMenuForSources:this.showContextMenuForSources.bind(this),updateActions:this._chart.updateActions.bind(this._chart),showChartPropertiesForSource:this._chart.showChartPropertiesForSource.bind(this._chart),showGeneralChartProperties:this._chart.showGeneralChartProperties.bind(this._chart),showObjectsTreeDialog:this._chart.showObjectsTreeDialog.bind(this._chart)}),this._div.appendChild(this._legendWidget.getElement()),this._legendWidget.updateLayout(),this._legendWidget.updateWidgetModeBySize(this._size),this._legendWidget.updateThemedColors(this._themedTopColor);for(const e of Array.from(this._customLegendWidgetsFactoryMap.keys()))this._legendWidget.addCustomWidgetToLegend(e,(0,s.ensureDefined)(this._customLegendWidgetsFactoryMap.get(e)))})}_loadAndCreatePaneControlsWidget(){Promise.all([Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,20648)),Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,59255))]).then(([e,t])=>{var i;if(this._isDestroyed)return;const s=e.PaneControlsWidget;this._paneControls=new s(this._chartUndoModel(),this,{backgroundThemeName:this._chart.backgroundTopTheme()},{toggleMaximizePane:this._chart.toggleMaximizePane.bind(this._chart),toggleCollapsedPane:this._chart.toggleCollapsedPane.bind(this._chart)},this._div),this._paneControls.updateWidgetModeByWidth(this._size.w),this._paneControls.updateThemedColors(this._themedTopColor),this._paneControlsResizeObserver=new t.default(this._handleRestrictLegendWidth.bind(this)),this._paneControlsResizeObserver.observe(this._paneControls.getElement()),(null===(i=this._state)||void 0===i?void 0:i.collapsed().value())&&this._chartModel().fullUpdate()})}_handleRestrictLegendWidth(e){ +if(null===this._legendWidget||null===this._paneControls)return;const t=e[e.length-1].contentRect.width,i=0===t?0:t+dt+ut;this._legendWidget.addMargin(i)}_onMagnetStateChanged(){this._chart.isActive()&&(this._isSelectPointModeEnabled()||this._isToolActionActiveOnPane(!0))&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift()}_onShiftKeyStateChanged(){this._chart.isActive()&&this._isToolActionActiveOnPane(!1)&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift(A.EnvironmentState.create((0,ot.shiftPressed)().value()))}_isToolActionActiveOnPane(e){const t=this._chartModel(),i=t.lineBeingCreated()||t.lineBeingEdited()||t.sourcesBeingMoved().length>0&&t.sourcesBeingMoved()[0];return i?t.paneForSource(i)===this._state:e&&(0,f.isLineToolName)(k.tool.value())&&t.crossHairSource().pane===this._state}_updateLineToolUsingMagnetOrShift(e){if(null===this._prevMoveEventPosition)return;const{x:t,y:i}=this._prevMoveEventPosition,s=this._chartModel().sourcesBeingMoved();s.length>0?(k.isStudyEditingNow.value()&&this._setCursorPosition(t,i,e),this._alignSourcesThatBeingMoved(s,t,i,e)):this._setCursorPosition(t,i,e)}_showEditDialogForSource(e,t){if(this._options.propertyPagesEnabled&&e.userEditEnabled())if(e===this._chartUndoModel().mainSeries())this._chart.showGeneralChartProperties(tt.TabNames.symbol);else if((0,f.isLineTool)(e)||(0,v.isStudy)(e)){let i;const s=null==t?void 0:t.data();if(null!=s){const e=s.areaName;void 0!==e&&(i=It.get(e))}this._chart.showChartPropertiesForSource(e,i).then(e=>{this._editDialog=e})}}_initToolCreationModeParams(e){this._startTouchPoint=new C.Point(e.pageX,e.pageY),this._initCrossHairPosition=this._chartModel().crossHairSource().currentPoint()}_updateCrosshairPositionInToolCreationMode(e,t){if(t!==this._state){const i=this._chart.paneByState(t);return i._startTouchPoint=this._startTouchPoint,i._initCrossHairPosition=this._initCrossHairPosition,void i._updateCrosshairPositionInToolCreationMode(e,t)}const i=this._chartModel().crossHairSource();this._chart.justActivated()&&(this._initCrossHairPosition=i.currentPoint());const r=e.pageX,n=e.pageY,o=(0,s.ensureNotNull)(this._initCrossHairPosition),a=new C.Point(r,n).subtract((0,s.ensureNotNull)(this._startTouchPoint)),l=o.add(a);this._setCursorPosition(l.x,l.y,new A.EnvironmentState(e))}_priceAxisesContainer(e){return"left"===e?this._lhsPriceAxisesContainer:this._rhsPriceAxisesContainer}_recalculatePriceScales(e){const t=this.state();for(const i of t.leftPriceScales())t.recalculatePriceScale(i,e);for(const i of t.rightPriceScales())t.recalculatePriceScale(i,e);for(const i of t.sourcesByGroup().overlayPriceScaleSources())(0,f.isLineTool)(i)||t.recalculatePriceScale(i.priceScale(),e)}_createLockTimeAxisAction(e){const t=(0,k.lockTimeAxis)().value();return new xe.Action({actionId:"Chart.Crosshair.LockVerticalCursor",label:gt,statName:"LockCursorInTime",checkable:!0,checked:t,onExecute:()=>this._toggleLockTimeAxis(e.localX,!t)})}_toggleLockTimeAxis(e,t){if(t){ +const t=this._chartUndoModel().timeScale(),i=t.coordinateToIndex(e),s=t.points().roughTime(i);null!==s&&k.lockTimeAxisTime.setValue(s)}(0,k.lockTimeAxis)().setValue(t)}_preventTouchEventsExceptPinch(){return this._paneWidgetsSharedState.hasTouchesOnOtherPanes(this)||null!==this._paneWidgetsSharedState.pinchingPane()}_updateHoveredSource(e,t,i){var s,r,n;const o=this._chartUndoModel(),a=o.model();let l=!1;const c=e&&e.source,h=this._chart.readOnly();if(h&&!(0,f.isLineTool)(e.source)||this._editDialog&&this._editDialog.visible().value())h&&(a.setHoveredSource(null,null),this.setCursorForTool());else{const d=k.tool.value();let u=null;if(!this._processing&&((0,k.toolIsCursor)(d)||"eraser"===d&&!h||t.mod()||!o.lineBeingCreated())){const{hittest:t}=e;l=Boolean(null===(s=null==t?void 0:t.data())||void 0===s?void 0:s.hideCrosshairLinesOnHover),t&&t.result()>M.HitTestResult.MOVEPOINT_BACKGROUND?(u=c,!(null==c?void 0:c.isHoveredEnabled())||"eraser"===d&&c===o.mainSeries()?a.setHoveredSource(null,null):a.setHoveredSource(c,null==t?void 0:t.data())):a.setHoveredSource(null,null)}h?this.setCursorForTool(u,t,it.PaneCursorType.Default):this._options.sourceSelectionEnabled&&(this._isSelectPointModeEnabled()?this._setCursorClassName("pointer"):this.setCursorForTool(u,t,null===(n=null===(r=null==e?void 0:e.hittest)||void 0===r?void 0:r.data())||void 0===n?void 0:n.cursorType));const p=a.customSourceBeingMoved(),_=null!==p?[p]:a.sourcesBeingMoved(),m=e.source;if((!_.length||null!==m&&-1===_.indexOf(m))&&this._updateCommonTooltip(e),!h&&null!==e.hittest&&i&&e.hittest.hasPressedMoveHandler(i)){switch((e.hittest.data()||{}).cursorType){case it.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case it.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case it.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case it.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize")}}}this._preventCrossHairMove()&&this._clearCursorPosition(),a.crossHairSource().setLinesShouldBeHidden(l)}async _createErrorBlock(){const e=new(await async function(){return(await Promise.all([i.e(5514),i.e(8879),i.e(139)]).then(i.bind(i,81200))).ErrorCardRenderer}());return this._div.insertBefore(e.container,this._topCanvasBinding.canvas.nextSibling),e}_customActions(){const e={top:[],bottom:[],remove:[]},t=this._chartUndoModel().timeScale(),i=this._state&&this._state.defaultPriceScale();if(!Pe.enabled("custom_items_in_context_menu"))return e;const r=t.isEmpty()?void 0:t.indexToUserTime(t.coordinateToIndex(this._contextMenuX));let n;if(i&&!i.isEmpty()){const e=(0,s.ensureNotNull)(this.state().mainDataSource()).firstValue();n=i.coordinateToPrice(this._contextMenuY,(0,s.ensureNotNull)(e))}return(0,h.emit)("onContextMenu",{unixtime:null!=r?r.getTime()/1e3:void 0,price:n,callback:t=>{[...t].forEach(t=>{if(t.text)if(t.text.length>1&&"-"===t.text[0])e.remove.push(t.text.slice(1));else{let i;i="-"===t.text?new xe.Separator:new xe.Action({actionId:"Chart.ExternalActionId", +label:t.text,onExecute:t.click}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)}})}}),e}_highlightPriceAxisByLabel(e){this._lhsPriceAxisesContainer.highlightPriceAxisByLabel(e),this._rhsPriceAxisesContainer.highlightPriceAxisByLabel(e)}_subscribeToState(){const e=this.state();e.onDestroyed().subscribe(this,this._onStateDestroyed,!0),e.dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),e.maximized().subscribe(this._updateVisuallyCollapsed),e.collapsed().subscribe(this._updateVisuallyCollapsed)}_unsubscribeFromState(){const e=this.state();e.onDestroyed().unsubscribeAll(this),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.maximized().unsubscribe(this._updateVisuallyCollapsed),e.collapsed().unsubscribe(this._updateVisuallyCollapsed)}}var Et=i(72045);class kt{constructor(e,t,i){this._handleEl=null,this._resizeInfo=null,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._chart=e,this._topPaneIndex=t,this._bottomPaneIndex=i,this._row=document.createElement("tr"),this._cell=document.createElement("td"),this._row.appendChild(this._cell),this._cell.classList.add(Et.paneSeparator),this._cell.setAttribute("colspan","3"),this._cell.style.background=this._color(),this.adjustSize(),this._cell.addEventListener("click",()=>{});const s=document.createElement("div");s.classList.add(Et.handle),this._cell.appendChild(s),this._mouseEventHandler=new B.MouseEventHandler(s,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._handleEl=s}destroy(){this._mouseEventHandler.destroy(),this._row.parentElement&&this._row.parentElement.removeChild(this._row)}getElement(){return this._row}hide(){this._row.classList.add("js-hidden")}show(){this._row.classList.remove("js-hidden")}adjustSize(){this._row.style.height=kt.height()+"px"}mouseEnterEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);null!==t&&null!==i&&(0,s.ensureNotNull)(this._handleEl).classList.add(Et.hovered)}mouseLeaveEvent(e){(0,s.ensureNotNull)(this._handleEl).classList.remove(Et.hovered)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}update(){this._cell.style.background=this._color().toString()}paint(){}image(){const{topPane:e}=this._topBottomPane(!1),t=e.leftPriceAxisesContainer().getWidth(),i=e.width(),s=e.rightPriceAxisesContainer().getWidth(),r=this._color(),n=(0,N.createDisconnectedCanvas)(document,new N.Size(t,1)),o=(0,N.getPrescaledContext2D)(n);o.fillStyle=r,o.fillRect(0,0,t,1);const a=(0,N.createDisconnectedCanvas)(document,new N.Size(i,1)),l=(0,N.getPrescaledContext2D)(a);l.fillStyle=r,l.fillRect(0,0,i,1);const c=(0,N.createDisconnectedCanvas)(document,new N.Size(s,1)),h=(0,N.getPrescaledContext2D)(c);return h.fillStyle=r,h.fillRect(0,0,s,1),{type:"separator",leftAxis:{content:n.toDataURL(), +canvas:n,contentWidth:t,contentHeight:1},rightAxis:{content:c.toDataURL(),canvas:c,contentWidth:s,contentHeight:1},content:a.toDataURL(),canvas:a,contentWidth:i,contentHeight:1}}static height(){const e=window.devicePixelRatio||1;return e>=1?1:1/e}_mouseDownOrTouchStartEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0);if(null===t||null===i)return;const r=t.state().stretchFactor()+i.state().stretchFactor(),n=r/(t.height()+i.height()),o=30*n;r<=2*o||(this._resizeInfo={startY:e.pageY,prevStretchTopPane:t.state().stretchFactor(),maxPaneStretch:r-o,totalStretch:r,pixelStretchFactor:n,minPaneStretch:o},(0,s.ensureNotNull)(this._handleEl).classList.add(Et.active))}_pressedMouseOrTouchMoveEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),s=this._resizeInfo;if(null===s||null===t||null===i)return;const r=(e.pageY-s.startY)*s.pixelStretchFactor,n=(0,le.clamp)(s.prevStretchTopPane+r,s.minPaneStretch,s.maxPaneStretch);t.state().setStretchFactor(n),i.state().setStretchFactor(s.totalStretch-n),this._chart.model().model().fullUpdate()}_mouseUpOrTouchEndEvent(e){const{topPane:t,bottomPane:i}=this._topBottomPane(!0),r=this._resizeInfo;null!==r&&null!==t&&null!==i&&(this._chart.model().addPaneStretchFactorUndoCommand(t.state(),i.state(),r.prevStretchTopPane,t.state().stretchFactor()),this._resizeInfo=null,(0,s.ensureNotNull)(this._handleEl).classList.remove(Et.active))}_color(){const e=this._chart.properties().childs().paneProperties.childs().separatorColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){const i=(0,re.parseRgba)(t),s=(0,re.parseRgba)(e),r=0===i[3]&&0===s[3]?"rgba(0,0,0,0)":(0,re.rgbaToString)((0,re.blendRgba)(i,s));this._colorCache={lineColor:e,backgroundColor:t,color:r}}return this._colorCache.color}_topBottomPane(e){const t=this._chart.paneWidgets();let i=null,s=null;for(let s=this._topPaneIndex;s>=0;--s){const r=t[s];if(!e||!r.state().collapsed().value()){i=r;break}}for(let i=this._bottomPaneIndex;ithis.backgroundColor(),o=()=>{throw new Error("Time axis does not support real price scales")},a={titlesProvider:i,stubContextMenuProvider:(e,t)=>{const i=this.getContextMenuActions(!0);let r=s(e,t);if(r[r.length-1]===this.chart.actions().scalesProperties){const e=[new xe.Separator].concat(i);Array.prototype.splice.apply(r,[r.length-2,0,...e]) +}else r.push(new xe.Separator),r=r.concat(i);return r},backgroundBasedTheme:r,rendererOptionsProvider:e.model().model().rendererOptionsProvider(),getBackgroundTopColor:n,getBackgroundBottomColor:n,showHorizontalBorder:!0};this._lhsStubContainer=new ee(this._properties,"left",o,a,this._options.priceAxisLabelsOptions,this),this._lhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._rhsStubContainer=new ee(this._properties,"right",o,a,this._options.priceAxisLabelsOptions,this),this._rhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._element.appendChild(this._lhsStubContainer.getElement()),this._cell=document.createElement("td"),this._element.appendChild(this._cell),this._cell.classList.add("chart-markup-table","time-axis"),this._cell.style.height="25px",this._dv=document.createElement("div"),this._dv.style.width="100%",this._dv.style.height="100%",this._dv.style.position="relative",this._dv.style.overflow="hidden",this._cell.appendChild(this._dv),this._canvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._canvasBinding=(0,N.createBoundCanvas)(this._dv,new N.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const l=this._canvasBinding.canvas;l.style.position="absolute",l.style.zIndex="1",l.style.left="0",l.style.top="0",this._topCanvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(),this._topCanvasBinding=(0,N.createBoundCanvas)(this._dv,new N.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const c=this._topCanvasBinding.canvas;c.style.position="absolute",c.style.zIndex="2",c.style.left="0",c.style.top="0",this._element.appendChild(this._rhsStubContainer.getElement()),this.restoreDefaultCursor(),this.update(),this._minVisibleSpan=Dt.MINUTE_SPAN,this._mouseEventHandler=new B.MouseEventHandler(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!0,treatHorzTouchDragAsPageScroll:!1}),this.size=new N.Size(0,0),(0,k.hideMarksOnBars)().subscribe(this,()=>this.chart.model().model().lightUpdate())}destroy(){this._mouseEventHandler.destroy(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._rhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.onLabelHovered().unsubscribeAll(this),this._lhsStubContainer.destroy(),this._rhsStubContainer.destroy(),this.chart.properties().childs().paneProperties.childs().background.unsubscribeAll(this),(0,k.hideMarksOnBars)().unsubscribeAll(this)}setCursor(e){let t="";"grabbing"!==e&&"ew-resize"!==e||(t="time-axis--cursor-"+e),this._currentCursorClassName!==t&&(this._currentCursorClassName&&this._cell.classList.remove(this._currentCursorClassName),t&&this._cell.classList.add(t),this._currentCursorClassName=t,this._cell.style.cursor)}restoreDefaultCursor(){this.setCursor("")} +getElement(){return this._element}optimalHeight(){const e=this.rendererOptions();return Math.ceil(e.borderSize+e.offsetSize+e.fontSize+e.paddingTop+e.paddingBottom+e.labelBottomOffset)}setSizes(e,t,i){this.size&&this.size.equals(e)||(this.size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.height=e.h+"px"),this._lhsStubContainer.setSizes(e.h,t),this._rhsStubContainer.setSizes(e.h,i)}rendererOptions(){if(!this._rendererOptions||this._rendererOptions.fontSize!==this.fontSize()){const e=this.fontSize();this._rendererOptions={borderSize:1,offsetSize:5,fontSize:e,font:(0,O.makeFont)(e,z.CHART_FONT_FAMILY,""),widthCache:new ie.TextWidthCache,paddingTop:3*e/12,paddingBottom:3*e/12,paddingHorizontal:9*e/12,labelBottomOffset:4*e/12}}return this._rendererOptions}backgroundColor(){return this.chart.model().model().backgroundColor().value()}lineColor(){const e=this._properties.childs().lineColor.value();if(0===(0,re.parseRgba)(e)[3]){const e=this.chart.model().model().lastPane();if(e&&(e.collapsed().value()||e.isMainPane()&&this._areEventsEnabled()))return this.chart.properties().childs().paneProperties.childs().separatorColor.value()}return e}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY)}baseBoldFont(){return(0,O.makeFont)(this.fontSize(),z.CHART_FONT_FAMILY,"","bold")}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}onLabelHovered(){return this._onLabelHovered}getScreenshotData(){return{content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this.size.w,contentHeight:this.size.h,lhsStub:this._lhsStubContainer.getScreenshotData(),rhsStub:this._rhsStubContainer.getScreenshotData()}}getContextMenuActions(e){var t;const i=this.chart;i.updateActions();const s=i.actions(),r=[];if(e||r.push(s.timeScaleReset,new xe.Separator),this._options.timezoneMenuEnabled&&r.push(s.applyTimeZone),r.push(s.sessionBreaks),!i.model().mainSeries().isDWM()){const e=null===(t=i.model())||void 0===t?void 0:t.mainSeries().symbolInfo();if(e){const t=i.model().mainSeries().properties().childs().sessionId,s=(e.subsessions||[]).filter(e=>!e.private);if(s.length>1){const e=s.map(e=>{const s={label:translateSessionDescription(e.description),checkable:!0,checked:t.value()===e.id,statName:"SetSession",onExecute:()=>{i.model().setProperty(t,e.id,Bt)}};return new xe.Action({...s,actionId:"Chart.SetSession"})}),n={label:Nt,statName:"SetSession",subItems:e},o=new xe.Action({...n,actionId:"Chart.SetSession"});r.push(o)}}}return r}update(){if(!this.chart.hasModel())return;const e=this.chart.model().timeScale().marks();if(e){this._minVisibleSpan=Dt.YEAR_SPAN;for(const t of e)this._minVisibleSpan=Math.min(t.span,this._minVisibleSpan)}}updatePriceAxisStubs(){const e=this.chart.model().model(),t=this.chart.isMaximizedPane()?(0, +s.ensureNotNull)(this.chart.maximizedPaneWidget()).state():e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount();this._lhsStubContainer.setScales([],i.left,t.leftPriceScales().length,i.left+i.right),this._rhsStubContainer.setScales([],i.right,t.rightPriceScales().length,i.left+i.right)}paint(e){if(e===b.InvalidationLevel.None)return;const t=(0,N.getContext2D)(this._topCanvasBinding.canvas);if(e>b.InvalidationLevel.Cursor){const i=(0,N.getContext2D)(this._canvasBinding.canvas),s=this._canvasBinding.pixelRatio;this.drawBackground(i,s),this.chart.hasModel()&&(this.drawBorder(i,s),this.drawTickMarks(i,s),this.drawBackLabels(i,s),this.drawCrossHairLabel(t,s)),this._lhsStubContainer.paintStubs(e),this._rhsStubContainer.paintStubs(e)}this.drawCrossHairLabel(t,this._topCanvasBinding.pixelRatio)}drawBackground(e,t){if((0,N.clearRect)(e,0,0,Math.ceil(this.size.w*t)+1,Math.ceil(this.size.h*t)+1,this.backgroundColor()),!this.chart.hasModel())return;const i=this.chart.model();if(!i.timeScale().isEmpty()){const s=i.model().selection().lineDataSources().reduce((e,t)=>{const i=t.timeAxisPoints();return 0===i.length?e:e.concat(i)},[]);s.length>0&&this._hightlightBackground(e,s,t)}const s=i.model().crossHairSource();s.startMeasurePoint()&&this._hightlightBackground(e,s.measurePoints(),t)}drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)),s=Math.ceil(this.size.w*t);e.fillRect(0,0,s+1,i),e.restore()}drawTickMarks(e,t){const i=this.chart.model().timeScale().marks();if(!i||0===i.length)return;let s=i.reduce((e,t)=>e.span>t.span?e:t,i[0]).span;s>30&&s<40&&(s=30),e.save(),e.strokeStyle=this.lineColor();const r=this.rendererOptions(),n=r.borderSize+r.offsetSize+r.paddingTop+r.fontSize/2;e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.textColor(),(0,N.drawScaled)(e,t,()=>{e.font=this.baseFont();for(let t=0;t=s&&e.fillText(r.label,r.coord,n)}}),e.restore()}drawBackLabels(e,t){var i;e.save();const s=new Set,r=this.chart.model().model();let n=r.dataSources();const o=r.selection().allSources();for(const e of o)s.add(e);r.hoveredSource()&&s.add(r.hoveredSource());for(const e of r.sourcesBeingMoved())s.add(e);const a=r.customSourceBeingMoved();null!==a&&s.add(a);const l=null!==(i=r.lineBeingEdited())&&void 0!==i?i:r.lineBeingCreated();l&&s.add(l),s.add(this.chart.model().crossHairSource()),n=n.concat(r.customSources());const c=this.rendererOptions();for(let i=0;i=s&&(s=a,n=o),a<=i&&(i=a,r=o)}}return n&&t.push(n),r&&t.push(r),t}_zoomAvailable(){return!this.chart.model().timeScale().isEmpty()&&this.chart.model().model().zoomEnabled()&&this._options.pressedMouseMoveScale}_mouseDownOrTouchStartEvent(e){if(this._mousedown||!this._zoomAvailable())return;this._mousedown=!0;const t=this.chart.model();t.timeScale().isEmpty()||t.startScaleTime(e.localX)}_pressedMouseOrTouchMoveEvent(e){this._zoomAvailable()&&this.chart.model().scaleTimeTo(e.localX)}_mouseUpOrTouchEndEvent(e){this._zoomAvailable()&&(this._mousedown=!1,this.chart.model().endScaleTime(),this.restoreDefaultCursor())}_contextMenuOrTouchContextMenuEvent(e){this._options.contextMenuEnabled&&$.ContextMenuManager.showMenu(this.getContextMenuActions(),e,{statName:"TimeScaleContextMenu"},{menuName:"TimeScaleContextMenu"})}_mouseOrTouchEnterEvent(e){this._zoomAvailable()&&this.setCursor("ew-resize")} +_mouseOrTouchLeaveEvent(e){this.restoreDefaultCursor()}_mouseDoubleClickOrDoubleTapEvent(e){(0,se.trackEvent)("GUI","Double click time scale"),this.chart.model().resetTimeScale()}_areEventsEnabled(){return!(0,k.hideMarksOnBars)().value()}}function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ft(e){return e.reduce((e,t)=>{for(const i in t)if(Ot(t,i)){const s=t[i],r=e[i];r?r.push(s):e[i]=[s]}return e},{})}const Wt=new T.TranslatedString("move left",(0,r.t)("move left")),Ht=new T.TranslatedString("move right",(0,r.t)("move right")),zt={moving:"wait_finishing",wait_finishing:"stop",stop:"moving"};class Ut{constructor(e){this._chartModel=null,this._currentDistance=0,this._deferredFinishTimeout=0,this._finishingTimeout=0,this._moveType="",this._startTime=0,this._state="stop",this._movingTimeout=0,this._chart=e,this._chart.withModel(this,()=>{this._chartModel=this._chart.model()})}destroy(){clearTimeout(this._movingTimeout)}move(e){if(null!==this._chartModel&&"stop"===this._state&&this._chartModel.beginUndoMacro(1===e?Wt:Ht),this._state=zt.stop,this._moveType="animated",this._deferredFinishTimeout&&(clearTimeout(this._deferredFinishTimeout),this._deferredFinishTimeout=0),this._finishingTimeout&&(clearTimeout(this._finishingTimeout),this._finishingTimeout=0),this._startTime=Date.now(),0===this._movingTimeout){const t=this._startTime,i=10,s=()=>{this.moveStep(t,0,50*e,1e3),this._movingTimeout=setTimeout(s,i)};this._movingTimeout=setTimeout(s,i)}}moveStep(e,t,i,s){if(null!==this._chartModel&&!this._chartModel.timeScale().isEmpty()){const r=Date.now();r1||!isFinite(n))&&(n=1);const o=1-Math.pow(1-n,3);return this._currentDistance=(i-t)*o+t,this._chartModel.scrollChart(this._currentDistance),n}}moveByBar(e){if(null!==this._chartModel){const t=this._chartModel.timeScale();if(t.isEmpty())return;if("stop"===this._state&&this._chartModel.beginUndoMacro(1===e?Wt:Ht),null!==t.visibleBarsStrictRange()){const e=t.indexToCoordinate(t.visibleBarsStrictRange().lastBar())+t.barSpacing()/2;Math.abs(t.width()-e)>t.barSpacing()/6&&this._chartModel.scrollChart(t.width()-e)}if(this._state=zt.stop,this._moveType="by_bar",this._startTime=Date.now(),!this._movingTimeout){let t=0,i=150;const s=400,r=()=>{this._moveByBarStep(e),t++,i>100&&(i-=t/5*20),this._movingTimeout=setTimeout(r,i)};this._movingTimeout=setTimeout(r,s),this._moveByBarStep(e)}}}stopMove(){"by_bar"===this._moveType?this.stopMoveByBar():this._stopMove()}stopMoveByBar(){"moving"===this._state&&(clearTimeout(this._movingTimeout),this._movingTimeout=0,this._state=zt.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,null!==this._chartModel&&this._chartModel.endUndoMacro())}scrollToRealtime(e){null!==this._chartModel&&this._chartModel.timeScale().scrollToRealtime(e)}_finishMove(){clearTimeout(this._movingTimeout),this._movingTimeout=0,this._deferredFinishTimeout=0;const e=this._currentDistance,t=Date.now(),i=()=>{const s=this.moveStep(t,e,0,700) +;s&&s<1?this._finishingTimeout=setTimeout(i,10):null!==this._chartModel&&(this._state=zt.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,this._chartModel.endUndoMacro())};this._finishingTimeout=setTimeout(i,10)}_stopMove(){"moving"===this._state&&(this._state=zt.moving,Date.now()-this._startTime<200?this._deferredFinishTimeout=setTimeout(this._finishMove.bind(this),200-(Date.now()-this._startTime)):this._finishMove())}_moveByBarStep(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;this._chartModel.scrollChartByBar(e)}}}var jt=i(37667),Gt=i(9315);class qt{constructor(){this._draggingSource=null,this._activeTouchPanes=new Set,this._scrollingPane=null,this._pinchingPane=null}onPaneDestroyed(e){this._activeTouchPanes.delete(e),this._scrollingPane===e&&(this._scrollingPane=null),this._pinchingPane===e&&(this._pinchingPane=null)}startTouch(e){this._activeTouchPanes.add(e)}endTouch(e){this._activeTouchPanes.delete(e)}hasTouchesOnOtherPanes(e){return this._activeTouchPanes.size>1||1===this._activeTouchPanes.size&&!this._activeTouchPanes.has(e)}trySetDraggingSource(e,t){return!this.hasTouchesOnOtherPanes(t)&&((0,s.assert)(null===this._draggingSource||this._draggingSource===e),this._draggingSource=e,!0)}clearDraggingSource(){null!==this._draggingSource&&(this._draggingSource=null)}draggingSource(){return this._draggingSource}setScrollingPane(e){(0,s.assert)(null===e||null===this._scrollingPane||this._scrollingPane===e),this._scrollingPane=e}scrollingPane(){return this._scrollingPane}setPinchingPane(e){(0,s.assert)(null===e||null===this._pinchingPane||this._pinchingPane===e),this._pinchingPane=e}pinchingPane(){return this._pinchingPane}}let Yt=null;function Kt(e,t,s,r,n){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(6909),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(4763),i.e(6416),i.e(1333),i.e(1999),i.e(8268),i.e(9055),i.e(2205),i.e(4408),i.e(2358),i.e(976),i.e(7635),i.e(3682),i.e(3304),i.e(5827),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(2454),i.e(6265)]).then(i.bind(i,73562)).then(i=>{const o=new(0,i.EditObjectDialogRenderer)(e,t,r,n);return o.show(s),o})}let $t=null;var Xt=i(20299);const Zt={[tt.TabNames.symbol]:"symbol",[tt.TabNames.legend]:"legend",[tt.TabNames.scales]:"scales",[tt.TabNames.trading]:"trading",[tt.TabNames.events]:"events",[tt.TabNames.timezoneSessions]:"appearance",[tt.TabNames.text]:"text",[tt.TabNames.style]:"style",[tt.TabNames.visibility]:"visibility"},Jt={[tt.TabNames.style]:"style",[tt.TabNames.visibility]:"visibilities"};async function Qt(e,t,s={},r,n){const o=r.activeChartWidget.value(),{initialTab:a,tabName:l}=s;if(l&&!a&&(s.initialTab=Jt[l]),(0,f.isStudyLineTool)(e)&&function(e){return[Xt.LineToolVbPFixed].some(t=>e instanceof t)}(e))return o.propertiesDefinitionsForSource(e).then(i=>null!==i?Kt(e,t,s,n,i):null);if((0,v.isStudy)(e)&&function(e){ +const{shortId:t}=e.metaInfo();return"Overlay"===t}(e)||(0,f.isLineTool)(e))return o.propertiesDefinitionsForSource(e).then(s=>{if(null!==s){return function(e){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(6909),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(6416),i.e(1333),i.e(1999),i.e(8268),i.e(9055),i.e(2205),i.e(2358),i.e(7635),i.e(8090),i.e(3304),i.e(5827),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(2454),i.e(6780)]).then(i.bind(i,75892)).then(t=>{const i=new(0,t.SourcePropertiesEditorRenderer)(e);return null!==$t&&$t.hide(),i.show(),$t=i,i})}({propertyPages:s,model:t,source:e,activePageId:l&&Zt[l]})}return null});if((0,v.isStudy)(e))return Kt(e,t,s,n);{const e=l&&Zt[l],t=r.getChartPropertiesDialogRenderer();return t.setActivePage(e),t.show()}}var ei=i(39277),ti=i(92930),ii=i(49642),si=i(95836);class ri{constructor(e,t){this._showed=!1,this._cw=e,this._element=document.createElement("div"),this._element.classList.add("chart-loading-screen"),this._shield=document.createElement("div"),this._shield.classList.add("chart-loading-screen-shield"),this._element.appendChild(this._shield),t.appendChild(this._element),this._cw.withModel(this,this._connectToModel)}show(){this._cw.setInLoadingState(!0),this._showed||(this._showed=!0,this._show())}hide(){this._cw.setInLoadingState(!1),this._showed&&this._hide()}isShown(){return this._showed}_connectToModel(){const e=this._cw.model().mainSeries().dataEvents();e.symbolError().subscribe(this,e=>{e!==si.permissionDenied&&this.hide()}),e.seriesError().subscribe(this,()=>{(0,Pe.enabled)("hide_loading_screen_on_series_error")&&this.hide()}),e.completed().subscribe(this,this.hide)}_show(){const e=this._cw.properties().childs().paneProperties.childs();let t;if(e.backgroundType.value()===ii.ColorType.Solid)t=e.background.value();else{t=`linear-gradient(${e.backgroundGradientStartColor.value()},${e.backgroundGradientEndColor.value()})`}this._shield.style.background=t,this._element.classList.add("fade")}_hide(){this._showed=!1,this._element.classList.remove("fade")}}var ni=i(55257),oi=i(36759);const ai=(0,Pe.enabled)("chart_content_overrides_by_defaults"),li=(0,n.getLogger)("ChartWidget",{color:"#606"}),ci=new T.TranslatedString("hide {title}",(0,r.t)("hide {title}"));const hi={addToWatchlistEnabled:!0,showFinancialsEnabled:!1,sourceSelectionEnabled:!0,propertyPagesEnabled:!0,paneContextMenuEnabled:!0,priceScaleContextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,goToDateEnabled:!1,marketStatusWidgetEnabled:!0,chartWarningWidgetEnabled:!0,dataProblemWidgetEnabled:!0,paneControlsEnabled:!0,isSymbolAvailable:e=>Promise.resolve(!0),legendWidgetEnabled:!0,chartEventsEnabled:!0,esdEnabled:!1,croppedTickMarks:!0,countdownEnabled:!0,lastPriceAnimationEnabled:!0,useKineticScroll:l.CheckMobile.any(),indicatorsDialogShortcutEnabled:!0,handleScale:{mouseWheel:!0,pinch:!0,axisPressedMouseMove:{time:!0,price:!0}}, +handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0}};function di(e,t,i,s=0){const r=t.mainSeries().syncModel(),n=e.mainSeries().syncModel();let o=i;if(null!==r&&null!==n){const t=e.createSyncPoint(r.syncSourceTarget(),n.syncSourceTarget());0!==s&&(i=r.projectTime(i,s)),o=t.sourceTimeToTargetTime(i)}return e.timeScale().points().roughIndex(o,n&&n.distance.bind(n))}class ui{constructor(e,t,i){this.activePaneWidget=null,this._model=null,this._paneWidgets=[],this._maximizedPaneWidget=null,this._timeAxisWidget=null,this._paneSeparators=[],this._controlBarNavigation=null,this._lineToolsSynchronizer=null,this._modelCreated=new(K()),this._isDestroyed=!1,this._customLegendWidgetsFactoryMap=new Map,this._backgroundTopTheme=new($e())("light"),this._backgroundBasedTheme=new($e())("light"),this._backgroundBottomTheme=new($e())("light"),this._lhsAxesWidth=0,this._rhsAxesWidth=0,this._lhsPriceAxisWidthChanged=new(K()),this._rhsPriceAxisWidthChanged=new(K()),this._mainDiv=null,this._parent=null,this._elTooltipDiv=null,this._hotkeysListener=null,this._mouseWheelHelper=null,this._onWheelBound=null,this._justActivated=!1,this._inited=!1,this._containsData=!1,this._initialLoading=!1,this._defTimeframe=void 0,this._removeMaximizeHotkey=null,this._metaInfoRepository=null,this._invalidationMask=null,this._drawPlanned=!1,this._drawRafId=0,this._inLoadingState=!1,this._timingsMeter=null,this._tagsChanged=new(K()),this._redraw=new(K()),this._isVisible=new($e())(!0),this._collapsed=new($e())(!1),this._dataWindowWidget=null,this._mainSeriesErrorMessage=null,this._resizeHandler=null,this._spinner=null,this._keydownEventListener=null,this._properties=null,this._updateThemedColorBound=this._updateThemedColor.bind(this),this._saveChartService=null,this._objectTreeDialogController=null,this._chartPaintedPromise=null,this._noExchangeSubscrptionWarning=null,this._paneWidgetsSharedState=new qt,this._brokerName="",this._onZoom=new(K()),this._onScroll=new(K()),this._availableScreen=null,this._hoveredPriceAxes=new Set,this._anyAxisHovered=new($e())(!1),this._invalidationHandler=e=>{if(!(e instanceof b.InvalidationMask))throw new Error("Invalid mask");null!==this._invalidationMask?this._invalidationMask.merge(e):this._invalidationMask=e,this._drawPlanned||(this._drawPlanned=!0,this._options.visible.when(()=>{const e=!document.hidden,t=this.screen&&this.screen.isShown();null!==this._timingsMeter&&e&&!t&&this._timingsMeter.startWaitingDraw();const i=(0,s.ensureNotNull)((0,s.ensureNotNull)(this._parent).ownerDocument.defaultView);this._drawRafId=i.requestAnimationFrame(this._invalidationRAFCallback.bind(this))}))},this._id=t,this._layoutId=i,this._options=(0,_.merge)((0,_.clone)(hi),e),this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._subscribeToDrawingState(),this._chartWidgetCollection=this._options.chartWidgetCollection,this.withModel(this,()=>{const e=this.model().model();e.backgroundTopColor().subscribe(this._updateThemedColorBound), +e.backgroundColor().subscribe(this._updateThemedColorBound)}),this._subscribeToMainSeriesErrors(),this._scrollHelper=new Ut(this),this._objectTreeDialogController=p.getInstance(),this._showChartEvents=Boolean(!this._options.containsData&&this._options.chartEventsEnabled),this._properties=new y.DefaultProperty("chartproperties",void 0,void 0,this._options.useUserChartPreferences),this._properties.addExclusion("scalesProperties.axisHighlightColor"),this._properties.addExclusion("scalesProperties.axisLineToolLabelBackgroundColorActive"),this._properties.addExclusion("scalesProperties.axisLineToolLabelBackgroundColorCommon"),this._properties.addExclusion("scalesProperties.showPriceScaleCrosshairLabel"),this._properties.addExclusion("scalesProperties.showTimeScaleCrosshairLabel")}destroy(){var e,t,i;null===(e=this._lineToolsSynchronizer)||void 0===e||e.destroy(),null===(t=this._noExchangeSubscrptionWarning)||void 0===t||t.destroy(),window.loginStateChange.unsubscribe(this,this._handleLoginStateChanged),null!==this._model&&(this._model.model().backgroundTopColor().unsubscribe(this._updateThemedColorBound),this._model.model().backgroundColor().unsubscribe(this._updateThemedColorBound),this._model.destroy()),this._customLegendWidgetsFactoryMap.clear(),this._scrollHelper.destroy(),null===(i=this._mainSeriesErrorMessage)||void 0===i||i.destroy(),this._isDestroyed=!0}lineToolsSynchronizer(){return this._lineToolsSynchronizer}model(){return(0,s.ensureNotNull)(this._model)}id(){return this._id}layoutId(){return this._layoutId}crossHairSyncEnabled(){return this._chartWidgetCollection.lock.crosshair.value()}isVisible(){return this._isVisible.value()}setVisible(e){this._isVisible.setValue(e)}setCollapsed(e){this._collapsed.setValue(e)}isJustClonedChart(){return!!(this._options||{}).justCloned}setSymbol(e){this._model?this._model.setSymbol(this._model.mainSeries(),e):this.properties().childs().mainSeriesProperties.merge({symbol:e})}setResolution(e){this._model?this._model.setResolution(this._model.mainSeries(),e):this.properties().childs().mainSeriesProperties.merge({interval:e})}async showGeneralChartProperties(e){if(!Pe.enabled("show_chart_property_page"))return Promise.resolve(null);const t=await this._showChartProperties(this.model().mainSeries(),e,{doNotCloseOnBgClick:!0,onResetToDefault:async()=>{this.model().restorePreferences();const e=await Promise.resolve().then(i.bind(i,6087)),t=e.getCurrentTheme().name;e.loadTheme(this.chartWidgetCollection(),{themeName:t,standardTheme:!0})}});if(null===t)return null;const s=()=>{t.hide(),this._chartWidgetCollection.activeChartWidget.unsubscribe(s)};return this._chartWidgetCollection.activeChartWidget.subscribe(s),t}async showChartPropertiesForSources(e){if(!(0,Pe.enabled)("property_pages"))return Promise.resolve(null);const{sources:t,title:n,tabName:o,renamable:a}=e,l=(0, +s.ensureNotNull)(this._model),c=Ft(t.map(e=>e.properties().childs())),h=Ft(t.map(e=>e.properties().childs().intervalsVisibilities)),[{createPropertyPage:d},{getSelectionStylePropertiesDefinitions:u},{getSelectionIntervalsVisibilitiesPropertiesDefinition:p}]=await Promise.all([Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80331)),Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,23206)),Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80975))]),_=[];return _.push(d(u(c,l),"Style",(0,r.t)("Style"))),_.push(d(p(h,l),"Visibility",(0,r.t)("Visibility"))),async function(e){const{SourcesPropertiesEditorRenderer:t}=await Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(6909),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(6416),i.e(1333),i.e(1999),i.e(8268),i.e(9055),i.e(2205),i.e(2358),i.e(7635),i.e(8090),i.e(3304),i.e(5827),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(2454),i.e(6780)]).then(i.bind(i,66512)),s=new t(e);return null!==Yt&&(Yt.hide(),Yt=s),s.show(),s}({sources:t,propertyPages:_,undoModel:l,title:n,activeTabId:o,renamable:a})}getPriceAxisWidthChangedByName(e){return"left"===e?this._lhsPriceAxisWidthChanged:this._rhsPriceAxisWidthChanged}getPriceAxisMaxWidthByName(e){return"left"===e?this._lhsAxesWidth:this._rhsAxesWidth}timeAxisHeight(){return null!==this._timeAxisWidget?this._timeAxisWidget.size.h:0}withModel(e,t){null!==this._model?t.call(e):this.modelCreated().subscribe(e,t,!0)}hasModel(){return null!==this._model}copyLineToOtherCharts(){const e=(0,s.ensureNotNull)(this._model),t=e.selection().lineDataSources().filter(e=>e.isSynchronizable());e.copyToOtherCharts(t)}hideDataSources(e){if(e.length){const t=e.map(e=>e.properties().visible),i=e.map(()=>!1);this.model().setProperties(t,i,ci.format({title:new T.TranslatedString(e[0].name(),e[0].title())}))}}hideSelectedObject(){this.hideDataSources(this.model().selection().dataSources().filter(e=>!0))}unlinkSelectedLine(){const e=(0,s.ensureNotNull)(this._model),t=e.selection().lineDataSources();e.unlinkLines(t)}onScroll(){return this._onScroll}onZoom(){return this._onZoom}images(e){window.TradingView.printing=!0;const t=this.model().selection().allSources();this.model().selectionMacro(e=>e.clearSelection()),this.model().model().recalculateAllPanes((0,ht.globalChangeEvent)());const i=(t,i)=>{t.paint(i,this.onWidget());const s={showCollapsedStudies:Boolean(null==e?void 0:e.showCollapsedStudies),status:null==e?void 0:e.status};return t.getScreenshotData(s)},s=[];if(null!==this._maximizedPaneWidget){const e=this._paneWidgets.indexOf(this._maximizedPaneWidget);s.push(i(this._maximizedPaneWidget,b.InvalidationMask.light().invalidateForPane(e)))}else for(let e=0;e{t.forEach(t=>{e.addSourceToSelection(t)})}),this.model().model().recalculateAllPanes((0,ht.globalChangeEvent)()),this.model().model().lightUpdate();const n=this.mainSeriesQuotesAndMetainfo();return{panes:s,timeAxis:r,colors:{text:this.properties().childs().scalesProperties.childs().textColor.value(),bg:this.properties().childs().paneProperties.childs().background.value(),scales:this.properties().childs().scalesProperties.childs().lineColor.value()},meta:n.meta,ohlc:n.ohlc,quotes:n.quotes}}setSaveChartService(e){this._saveChartService=e,null!==this._lineToolsSynchronizer&&this._lineToolsSynchronizer.setSaveChartService(e)}getSaveChartService(){return this._saveChartService}mainSeriesQuotesAndMetainfo(){let e,t,i;const s=this._model&&this._model.mainSeries();if(s){const r=e=>null==e?"":s.formatter().format(e,void 0,void 0,!0,!1)+"",n=e=>null==e?"":e+"";e={resolution:s.interval(),symbol:s.symbol(),values:s.valuesProvider().getValues(null)};const o=s.symbolInfo();o&&(e.symbol=o.full_name,e.description=o.description,e.exchange=o.exchange);const a=s.bars().last();null!==a&&(t=a.value.slice(1,5).map(r));const l=s.quotes();l&&(i={change:r(l.change),changePercent:n(l.change_percent),last:r(l.last_price)})}return{meta:e,ohlc:t,quotes:i}}updateCrossHairPositionIfNeeded(){if(this._model){const e=k.tool.value();this._model.model().setCurrentTool(e);const t=(0,x.lastMouseOrTouchEventInfo)();if(t.isTouch){const e=this._maximizedPaneWidget||this._paneWidgets[0];if(e.hasState()&&(!t.stylus&&(this._isLineToolModeExceptBrush()||(0,k.toolIsMeasure)(k.tool.value()))||this.selectPointMode().value())){const t=e.state(),i=.5*this._model.model().timeScale().width(),s=.5*t.defaultPriceScale().height();this._model.model().setAndSaveCurrentPosition(i,s,t)}}if(this._model&&t.isTouch){const e=this._model.model().crossHairSource();e.updateAllViews((0,ht.dataSourceChangeEvent)(e.id()))}}}trackingModePaneWidget(){if(!(0,x.lastMouseOrTouchEventInfo)().isTouch)return null;for(const e of this.paneWidgets())if(e.trackingModeEnabled())return e;return null}startTrackingMode(){if((0,x.lastMouseOrTouchEventInfo)().isTouch){this.exitTrackingMode(),this.updateCrossHairPositionIfNeeded();const e=this._maximizedPaneWidget||this._paneWidgets[0],t=this.model().model().crossHairSource().currentPoint();e.startTrackingMode(t,t)}}exitTrackingMode(){(0,x.lastMouseOrTouchEventInfo)().isTouch&&this.paneWidgets().some(e=>e.trackingModeEnabled())&&(this.paneWidgets().forEach(e=>e.exitTrackingMode()),this.model().model().clearCurrentPosition())}onToolChanged(){this.selectPointMode().value()&&this.cancelRequestSelectPoint(),this.exitTrackingMode()}setInLoadingState(e){this._inLoadingState=e}paint(e){const t=null!=e?e:b.InvalidationMask.full();t.validationActions().forEach(e=>e()),this._paneWidgets.forEach((e,i)=>{ +null!==this._maximizedPaneWidget&&this._maximizedPaneWidget!==e||e.paint(t.invalidateForPane(i),!1)}),this._timeAxisWidget&&this._timeAxisWidget.paint(t.invalidateForTimeScale()),this._redraw.fire()}GUIResetScales(){(0,se.trackEvent)("GUI","Reset Scales"),null!==this._model&&this._model.resetScales()}toggleMaximizePane(e){var t;if(!(this._paneWidgets.length<2)){this._maximizedPaneWidget?(this._maximizedPaneWidget.state().maximized().setValue(!1),this._maximizedPaneWidget=null,this._paneSeparators.forEach(e=>e.show())):(this._maximizedPaneWidget=e,this._maximizedPaneWidget.state().maximized().setValue(!0),this._paneSeparators.forEach(e=>e.hide()));for(let e=this._paneWidgets.length;e--;)this._paneWidgets[e].updateControls(),this._paneWidgets[e].updatePriceAxisWidgets(),this._paneWidgets[e].setErrorMessage(this._mainSeriesErrorMessage?this._mainSeriesErrorMessage.value():null);null===(t=this._timeAxisWidget)||void 0===t||t.updatePriceAxisStubs(),this._adjustSize(),this.updateCrossHairPositionIfNeeded()}}maximizedPaneWidget(){return this._maximizedPaneWidget}isMaximizedPane(){return null!==this._maximizedPaneWidget}toggleCollapsedPane(e){const t=e.state();t.collapsed().setValue(!t.collapsed().value()),this._paneWidgets.forEach(e=>e.updateControls()),this._adjustSize(),this.updateCrossHairPositionIfNeeded()}unsetActivePaneWidget(){this.activePaneWidget=null}setActivePaneWidget(e){this.activePaneWidget=e}onPaneWidgetDestroyed(e){this.activePaneWidget===e&&(this.activePaneWidget=null)}backgroundTopTheme(){return this._backgroundTopTheme.readonly()}backgroundBasedTheme(){return this._backgroundBasedTheme.readonly()}backgroundBottomTheme(){return this._backgroundBottomTheme.readonly()}lineToolsAndGroupsDTO(){return(0,s.ensureNotNull)(this._lineToolsSynchronizer).prepareDTO()}resetLineToolsInvalidated(e,t,i){(0,s.ensureNotNull)(this._lineToolsSynchronizer).resetInvalidated(e,t,i)}applyLineToolUpdateNotification(e,t){(0,s.ensureNotNull)(this._lineToolsSynchronizer).applyLineToolUpdateNotification(e,t)}reloadAllLineTools(){(0,s.ensureNotNull)(this._lineToolsSynchronizer).reloadAllLineTools()}startApplyingLineToolUpdateNotification(){var e;null===(e=this._lineToolsSynchronizer)||void 0===e||e.startApplyingLineToolUpdateNotification()}endApplyingLineToolUpdateNotification(){var e;null===(e=this._lineToolsSynchronizer)||void 0===e||e.endApplyingLineToolUpdateNotification()}applyAlertIdByExternalSource(e,t){var i;null===(i=this._lineToolsSynchronizer)||void 0===i||i.applyAlertIdByExternalSource(e,t)}deleteAlertByExternalSource(e,t){var i;null===(i=this._lineToolsSynchronizer)||void 0===i||i.deleteAlertByExternalSource(e)}shouldBeSavedEvenIfHidden(){return this.model().model().shouldBeSavedEvenIfHidden()}showObjectsTreeDialog(){var e;null===(e=this._objectTreeDialogController)||void 0===e||e.show()}addCustomWidgetToLegend(e,t){this._customLegendWidgetsFactoryMap.set(e,t);for(const i of this.paneWidgets())i.addCustomWidgetToLegend(e,t)}applyIndicatorsToAllChartsAvailable(){ +if(!this.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return!1;for(const e of this.model().model().panes()){if(e.sourcesByGroup().all().some(e=>(0,v.isStudy)(e)&&!0))return!0}return!1}restoreState(e,t,i){this._adjustSize();(0,s.ensureNotNull)(this._model).restoreState(this._content,t,i);this._setActions()}addCompareAsOverlay(e,t){const i=this.model();return(0,s.ensureDefined)(this._options.isSymbolAvailable)(e).then(s=>{if(!s)return null;const r=i.createStudyInserter({type:"java",studyId:"Overlay@tv-basicstudies"});return r.setForceOverlay(!0),r.setPreferredPriceScale("as-series"),r.setTargetPriceScaleMode({percentage:!0}),void 0!==t&&r.setPropertiesState({allowExtendTimeScale:t}),r.insert(async()=>({inputs:{symbol:e}}))})}scrollHelper(){return this._scrollHelper}setBroker(e){var t;this._brokerName=e,null===(t=this._lineToolsSynchronizer)||void 0===t||t.setBroker(e)}chartPainted(){return this._drawPlanned?(null===this._chartPaintedPromise&&(this._chartPaintedPromise=(0,c.createDeferredPromise)()),this._chartPaintedPromise.promise):Promise.resolve()}setDataWindowWidget(e){this._dataWindowWidget=e}removeDataWindowWidget(){this._dataWindowWidget=null}showSelectedSourcesProperties(e){const t=(0,s.ensureNotNull)(this._model).selection().dataSources();if(1===t.length)this.showSourceProperties(t[0],e);else{const i=t.filter(f.isLineTool);i.length>0&&this.showChartPropertiesForSources({sources:i,tabName:e})}}update(){if(this.hasModel()){for(const e of this._paneWidgets)e.update();this._timeAxisWidget&&this._timeAxisWidget.update()}}setPriceAxisHovered(e,t){t?this._hoveredPriceAxes.add(e):this._hoveredPriceAxes.delete(e),this._anyAxisHovered.setValue(this._hoveredPriceAxes.size>0)}anyPriceAxisHovered(){return this._anyAxisHovered.readonly()}async _showChartProperties(e,t,i,s){if(!this._model)return null;t&&((0,a.setValue)("properties_dialog.active_tab.chart",t),i.tabName=t);const r=await Qt(e,this._model,i,this._options.chartWidgetCollection,s);return(null==r?void 0:r.visible().value())?r:null}_createLineToolsSynchronizerIfNeeded(){0}_updateThemedColor(){const e=this.model().model(),t=e.backgroundColorAtYPercentFromTop(.5);let i=e.backgroundTopColor().value(),s=e.backgroundColor().value();const r=(0,ne.isColorDark)(t),n=(0,ne.isColorDark)(i),o=(0,ne.isColorDark)(s);this.widget().classList.toggle("chart-widget--themed-dark",r),this.widget().classList.toggle("chart-widget--themed-light",!r),this.widget().classList.toggle("chart-widget__top--themed-dark",n),this.widget().classList.toggle("chart-widget__top--themed-light",!n),this.widget().classList.toggle("chart-widget__bottom--themed-dark",o),this.widget().classList.toggle("chart-widget__bottom--themed-light",!o),this._backgroundTopTheme.setValue(n?"dark":"light"),this._backgroundBasedTheme.setValue(r?"dark":"light"),this._backgroundBottomTheme.setValue(o?"dark":"light"),i===s&&(0,F.isStdThemedDefaultValue)("chartProperties.paneProperties.background",i,this._backgroundBasedTheme.value())&&(i=null,s=null);for(const e of this._paneWidgets)e.updateThemedColors({ +topColor:i,bottomColor:s})}_isLineToolModeExceptBrush(){const e=k.tool.value();return(0,f.isLineToolName)(e)&&!(0,f.isLineDrawnWithPressedButton)(e)&&!this.selectPointMode().value()}_cancelCreatingLine(){const e=(0,s.ensureNotNull)(this._model).model(),t=e.lineBeingCreated();if(null!==t){const i=(0,s.ensureNotNull)(e.paneForSource(t));(0,s.ensureNotNull)(this.paneByState(i)).cancelCreatingLineTool()}const i=e.crossHairSource().measurePane().value();if(null!==i){(0,s.ensureNotNull)(this.paneByState(i)).cancelMeasuring()}}_adjustSize(e){var t;let i=0;const s=null===this._model?null:this._model.model().priceScaleSlotsCount(),r=new Uint32Array(null===s?0:s.left),n=new Uint32Array(null===s?0:s.right),o=(0,N.getCanvasDevicePixelRatio)(document.body),a=(e,t)=>e+t,l=(e,t)=>{t.forEach((t,i)=>{e[i]=Math.max(e[i],t)})},c=this._width(),d=this._height(),u=this._paneSeparators.length,p=this.isMaximizedPane()?0:kt.height()*u,_=null!==this._timeAxisWidget?this._timeAxisWidget.optimalHeight():0;let m=d-_>=61?_:0;m%2&&(m+=1);const g=Math.max(1,Math.floor((d-p-m)/this._paneWidgets.length));let f=0,v=null;for(const e of this._paneWidgets)if(!this._maximizedPaneWidget||this._maximizedPaneWidget===e){e.leftPriceAxisesContainer().updateCurrencyLabels();const t=e.leftPriceAxisesContainer().optimalWidths();e.rightPriceAxisesContainer().updateCurrencyLabels();const s=e.rightPriceAxisesContainer().optimalWidths();l(r,t),l(n,s),this._maximizedPaneWidget!==e&&e.state().collapsed().value()?f+=Math.min(g,e.collapsedHeight()):(i+=e.stretchFactor(),v=e)}let S=r.reduce(a,0),y=n.reduce(a,0),b=Math.max(c-S-y,0);if(b<=102){S=0,y=0,b=c;for(let e=0;e0){const e=new kt(this,s-1,s);this._paneSeparators.push(e),this._timeAxisWidget?this._elMainTable.insertBefore(e.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(e.getElement())}this._timeAxisWidget?this._elMainTable.insertBefore(i.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(i.getElement())}for(let i=0;ib.InvalidationLevel.Cursor&&(null===(t=this._timeAxisWidget)||void 0===t||t.update()),this.paint(e),this._dataWindowWidget){const t=e.maxPaneInvalidation();t===b.InvalidationLevel.Full?this._dataWindowWidget.fullUpdate():t>b.InvalidationLevel.None&&this._dataWindowWidget.update()}for(let t=0;t{i.appendChild(r),r.addEventListener("mousedown",this._beginRequestActive.bind(this)),r.addEventListener("mouseup",this._endRequestActive.bind(this)),r.addEventListener("touchstart",this._beginRequestActive.bind(this)),r.addEventListener("touchmove",this._endRequestActive.bind(this)),r.addEventListener("touchend",this._endRequestActive.bind(this)),r.addEventListener("click",this._requestActive.bind(this))}),this._inited&&(null!==this._timeAxisWidget&&(this._timeAxisWidget.destroy(), +this._timeAxisWidget=null),this._paneWidgets.forEach(e=>{e.destroy()}),this._paneWidgets.length=0,this._paneSeparators.forEach(e=>{e.destroy()}),this._paneSeparators.length=0,this._update(b.InvalidationMask.full()))}_init(){this.hasModel()&&this.model().mainSeries().clearData(),this._initColors(),this._makeDefaultGui();this._makeDefaultModel(),(()=>{this._checkObsoleteTimezone(),this._chartSession&&this._chartSession.connected()&&this.model().model().restart(),this._content&&(this._initColors(),this._updateGui(),this.update()),this._resizeHandler=()=>{this._invalidationHandler(b.InvalidationMask.full())},this._resizeHandler(),(0,s.ensureNotNull)(this._parent).appendChild((0,s.ensureNotNull)(this._mainDiv)),this._spinner&&(this._spinner.stop(),this._spinner=null),this._keydownEventListener=e=>{27===e.which&&e.preventDefault()},window.addEventListener("keydown:chart_"+this._id,this._keydownEventListener),this._initBarsMarksSources(),this._activateSymbolSearchHotkeys(),this.model().timeScale().onScroll().subscribe(this,()=>this._onScroll.fire()),this._inited=!0})()}_makeDefaultModel(){let e;if(this._content&&this._content.timeScale.points){const t=this._content.timeScale.points.items[0];e={startDate:t}}if(!(0,s.ensureNotNull)(this._metaInfoRepository).getInternalMetaInfoArray())throw new Error("Cannot create chart model: studies metainfo is absent");const t=()=>{var t,i;const r={readOnly:this.readOnly(),isSnapshot:!!this._containsData,...o(this._options,["timeScale","crossHair","esdEnabled","countdownEnabled","lastPriceAnimationEnabled","currencyConversionEnabled","unitConversionEnabled","watermarkEnabled","shiftVisibleRangeOnNewBar","hideIdeas","onWidget"])};let n;n=this._collapsed;const a=function(e,t,i,s,r,n,o,a,l,c,h){const d=new g.ChartUndoModel(e,t,i,s,r,n,o,a,l,c,h);return d.model().fullUpdate(),d}(this._chartSession,this._invalidationHandler,this.properties(),e,(0,s.ensureNotNull)(this._metaInfoRepository),this,this._options.undoHistory,this._options.barsMarksContainersFactory,r,n,null!==(i=null===(t=this._saveChartService)||void 0===t?void 0:t.autoSaveEnabled())&&void 0!==i?i:new($e())(!0));return this._createSessions(a.model()),a};(0,Pe.enabled)("lean_chart_load")?this._model=this._model||t():this._model=t(),this._model.model().setChartSaveTime(1e3*this._chartWidgetCollection.metaInfo.lastModified.value()),this._createVolumeIfNeeded();if(this._content){let e={};ai&&this._initialLoading&&(e={symbol:this._defSymbol,interval:this._defInterval,style:this._defStyle}),this.restoreState(this._content,this._containsData,e),ai&&this._defSymbol&&this.model().model().recalculatePriceRangeOnce()}else this._setActions();this._createLineToolsSynchronizerIfNeeded(),(()=>{const e=(0,s.ensureNotNull)(this._model);e.onTagsChanged().subscribe(this,()=>this.onModelTagsChanged()),this._initBackgroundColor(),this._updateGui(),this._modelCreated.fire(e),this._tagsChanged.fire();const t=e.mainSeries(),i=t.properties().childs();this._defTimeframe&&t.setDefaultTimeframe(this._defTimeframe), +e.lineCancelled().subscribe(this,()=>this.onLineCancelled()),t.dataEvents().symbolNotPermitted().subscribe(null,e=>t.setSymbolParams({symbol:e})),i.style.unsubscribe(this,this._onChartStyleChanged),i.style.subscribe(this,this._onChartStyleChanged),t.dataEvents().completed().subscribe(this,()=>this._addPerfMark("SeriesCompleted"),!0),t.dataEvents().barReceived().subscribe(this,()=>this._addPerfMark("SeriesFirstDataReceived"),!0);this._options;t.dataEvents().chartTypeNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.dataEvents().intradaySpreadNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.dataEvents().customIntervalNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:(0,Gt.getDefaultResolution)((0,jt.isRangeStyle)(i.style.value()))})}),t.dataEvents().intradayExchangeNotPermitted().subscribe(null,()=>{t.setSymbolParams({interval:"D"})}),t.requestingResolutionWhenNotSupported.subscribe(null,e=>t.setInterval(e)),t.requestingStyleIsNotSupported.subscribe(null,()=>{const i=t.interval(),s=e.model().defaultResolutions(),r=(0,jt.getLastUsedSingleValueBasedStyle)(),n=(0,Gt.getResolutionByChartStyle)(r,i,s);t.setChartStyleWithIntervalIfNeeded(r,n)}),t.requestingStyleSupportRecovered.subscribe(null,i=>{const s=t.interval(),r=e.model().defaultResolutions(),n=(0,Gt.getResolutionByChartStyle)(i,s,r);t.setChartStyleWithIntervalIfNeeded(i,n)})})()}_initBarsMarksSources(){this.withModel(this,()=>{for(const e of this.model().barsMarksSources())e.onNeedRepaint.subscribe(this,()=>this.model().model().lightUpdate())})}_handleLoginStateChanged(){0}_checkObsoleteTimezone(){const e=this.properties().childs().timezone.value();(0,ei.timezoneIsAvailable)(e)||this.properties().childs().timezone.setValue({UTC:"Etc/UTC",EST:"America/New_York",CST:"America/Chicago",PST:"America/Los_Angeles"}[e]||"exchange")}_initColors(){const e=this.properties().childs(),t=e.scalesProperties.childs();t.lineColor.listeners().subscribe(this,this._updateAndPaint),t.textColor.listeners().subscribe(this,this._updateAndPaint),e.paneProperties.childs().separatorColor.listeners().subscribe(this,this._setPaneSeparatorLineColor)}_setPaneSeparatorLineColor(){this._paneSeparators.forEach(e=>e.update()),this._updateAndPaint()}_updateAndPaint(){this.update(),this.paint()}_makeDefaultGui(){this._makeLoadingScreen(),this.hasModel()&&(this._makeTimeAxisWidget(),this._makePaneWidgetsAndSeparators()),this._adjustSize(),this._updateScalesActions(),(0,N.disableSelection)(this._elMainTable),this.update(),this.paint()}_makeLoadingScreen(){if(Pe.enabled("lean_chart_load")){if(this.screen)return;this.screen=new ri(this,(0,s.ensureNotNull)(this._parent))}else this.screen=new ri(this,(0,s.ensureNotNull)(this._mainDiv))}_makeAvailableOnTVPopup(){throw new Error("Not implemented")}_createChartEventsSource(){throw new Error("Not implemented")}_activateSymbolSearchHotkeys(){this.readOnly()||this._options.hideSymbolSearch||(0,ti.activateKeyPressHandler)()}_makeTimeAxisWidget(){ +if(this._timeAxisWidget)return void this._timeAxisWidget.updatePriceAxisStubs();const e=this.model();this._timeAxisWidget=new Rt(this,this._options.timeScaleWidget,this._titlesProvider.bind(this),this._menuItemsProvider.bind(this),this._backgroundBasedTheme),this._elMainTable.appendChild(this._timeAxisWidget.getElement()),this._timeAxisWidget.updatePriceAxisStubs(),this._timeAxisWidget.onLabelHovered().subscribe(this,(t,i)=>{const r=this._maximizedPaneWidget?this._maximizedPaneWidget.state():e.paneForSource(e.mainSeries()),n=(0,s.ensureNotNull)(this.paneByState((0,s.ensureNotNull)(r))).highlightedPriceAxis(),o=n.value();(i||o.owner===t.owner)&&(n.setValue({owner:t.owner,axis:i?t.axis:null}),this.model().model().lightUpdate())})}_titlesProvider(e,t){const i=this.model(),r=(0,s.ensureNotNull)(this._maximizedPaneWidget?this._maximizedPaneWidget.state():i.paneForSource(i.mainSeries())),n="right"===e?r.rightPriceScales():r.leftPriceScales();if(n.lengthe===i.mainSeries()||(0,v.isStudy)(e));return o.reverse(),o=(0,ni.moveToHead)(o,i.mainSeries()),o.map(e=>e.title(!0,void 0,!1))}_menuItemsProvider(e,t){const i=this.model(),r=(0,s.ensureNotNull)(this._maximizedPaneWidget?this._maximizedPaneWidget.state():i.paneForSource(i.mainSeries())),n="right"===e?r.visibleRightPriceScales():r.visibleLeftPriceScales();if(n.length{const e=this.model().model().mainSeries();let t;t=new($e())(null).readonly(),this._mainSeriesErrorMessage=(0,m.combine)((e,t,i)=>{switch(t){case 4:{const e=this.model().model().mainSeries().seriesErrorMessage();if(!(null!==e&&("resolution_not_entitled"===e||"custom_resolution"===e||"seconds_not_entitled"===e||e.startsWith("study_not_auth:"))))return{message:(0,r.t)("Invalid symbol"),icon:(0,Pe.enabled)("hide_image_invalid_symbol")?void 0:"ghost"};break}case 1:case 2:break;default:if(i)return{message:(0,r.t)("No data here"),icon:"ghost"}}return null},t,(0,S.createWVFromGetterAndSubscription)(()=>e.status(),e.onStatusChanged()),(0,S.createWVFromGetterAndSubscription)(()=>!e.bars().size(),e.dataEvents().dataUpdated()),(0,S.createWVFromGetterAndSubscription)(()=>({}),this.model().model().onChartThemeLoaded())),this._mainSeriesErrorMessage.subscribe(e=>{this._paneWidgets.forEach(t=>t.setErrorMessage(e))},{callWithLast:!0})})}async _createControlBar(){const e=await Promise.all([i.e(5514),i.e(3770),i.e(9255),i.e(5093)]).then(i.bind(i,62101));this._controlBarNavigation=new e.ControlBarNavigation(this,(0, +s.ensureNotNull)(this._mainDiv),this._options.controlBar),this._model&&this._adjustSize()}_subscribeToDrawingState(){if(this._options.readOnly)return;(0,k.init)();const e=(e,t)=>{const i=this._model;if(null===i)return;const s=i.model();e.model!==s&&(this._lineToolsSynchronizer?this._lineToolsSynchronizer.executeSyncedAction(()=>t(s,i)):t(s,i))};k.createdLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=(0,s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n,o=null;if(void 0===t.pointPositionPercents){if(o=di(e,t.model,t.point.timeStamp),null===o)return;n=t.point.price}else{const i=t.pointPositionPercents.x*e.timeScale().width(),s=e.mainSeries().priceScale(),r=t.pointPositionPercents.y*s.height(),a=e.mainSeries().firstValue();if(null===a)return;o=e.timeScale().coordinateToIndex(i),n=s.coordinateToPrice(r,a)}const a={index:(0,s.ensureNotNull)(o),price:n},l=i.createLineTool({pane:r,point:a,linetool:t.linetool,properties:t.properties,linkKey:t.linkKey,ownerSource:e.mainSeries(),disableSynchronization:!0,id:t.id});null!==l&&!Boolean(this.model().lineBeingCreated())&&t.finalState&&l.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),k.continuedLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=di(e,t.model,t.point.timeStamp);if(null===r)return;const n={index:r,price:t.point.price},o=e.lineBeingCreated();if(null===o)return;i.continueExternalLine(n,null!==(s=t.envState)&&void 0!==s?s:void 0,!!t.finalState)&&t.finalState&&o.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),k.cancelledLineTool.subscribe(null,t=>{e(t,(e,t)=>{e.cancelCreatingLine()})}),k.beenSetLineToolLastPoint.subscribe(null,t=>{e(t,(e,i)=>{const s=e.lineBeingCreated();if(null===s||s.linkKey().value()!==t.linkKey)return;const r=di(e,t.model,t.point.timeStamp);if(null===r)return;const n={index:r,price:t.point.price};s.setLastPoint(n),s.updateAllViews((0,ht.dataSourceChangeEvent)(s.id())),e.lightUpdate()})}),k.startedMovingLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=t.linkKeys.map(f.lineToolByLinkKey.bind(null,e)).filter(_.notNull);if(r.length){const i=di(e,t.model,t.point.timeStamp);if(null===i)return;const n={index:i,price:t.point.price},o=null!==(s=t.activeItem)&&void 0!==s?s:null,a=r[0].pointToScreenPoint(n);a&&e.startMovingSources(r,{logical:n,screen:a},o,t.pointPositionPercents,null===t.envState?void 0:t.envState,!0)}})}),k.movedLineTool.subscribe(null,t=>{e(t,(e,i)=>{var s;const r=e.sourcesBeingMoved().filter(f.isLineTool).filter(e=>(e=>t.linkKeys.some(t=>e.linkKey().value()===t))(e));if(!r.length)return;const n=di(e,t.model,t.point.timeStamp);if(null===n)return;const o={index:n,price:t.point.price},a=r[0].pointToScreenPoint(o);a&&e.moveSources({logical:o,screen:a},t.pointPositionPercents,null!==(s=t.envState)&&void 0!==s?s:void 0,!0)})}),k.finishedMovingLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=e.sourcesBeingMoved().filter(f.isLineTool);if(0===s.length)return;s.forEach(i=>{const s=(e=>{for(let i=0;i{e(t,(e,i)=>{var s;const r=(0,f.lineToolByLinkKey)(e,t.linkKey);if(null!==r){const i=r.getPoint(t.pointIndex),n=i?i.index:di(e,t.model,t.point.timeStamp);if(null===n)return;if(r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const i={index:n,price:t.point.price};e.startChangingLinetool(r,i,t.pointIndex,null!==(s=t.envState)&&void 0!==s?s:void 0,!0)}}})}),k.changedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=e.lineBeingEdited();if(null===r||r.linkKey().value()!==t.linkKey)return;let n=null;if(n=t.changes.indexesChanged?di(e,t.model,t.point.timeStamp):(0,s.ensureNotNull)(e.linePointBeingChanged()).index,null!==n&&r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const i={index:n,price:t.point.price};e.changeLinePoint(i,void 0,!0)}})}),k.finishedChangingLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&s.isActualSymbol()&&s.isActualCurrency()&&s.isActualUnit()&&null!==e.lineBeingEdited()&&e.endChangingLinetool(!!t.finalState,!0),null!==s&&t.finalState&&s.restoreExternalPoints(t.finalState,t.changes)})}),k.removedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const{withUndo:s,unlink:r,linkKey:n}=t,o=(0,f.lineToolByLinkKey)(e,n);if(null!==o)r&&o.detachAlert(),s?i.removeSource(o,!1):e.removeSource(o);else if(this._lineToolsSynchronizer){const{sourceTitle:e,symbol:o,lineToolState:a}=t;i.removeUnloadedLineTool({lineToolsSynchronizer:this._lineToolsSynchronizer,state:a,unlink:r,sourceTitle:e,linkKey:n,symbol:o,withUndo:s})}})}),k.finishedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&(0,et.isLineToolFinishRequiredWhenCreatedByApi)(s.toolname)&&s.finish()})}),k.changedLineStyle.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);null!==s&&(s.restoreExternalState(t.state),s.propertiesChanged(!0),t.alertId&&s.syncAlert(t.alertId))})}),k.restoredLineToolState.subscribe(null,t=>{e(t,(e,i)=>{const s=(0,f.lineToolByLinkKey)(e,t.linkKey);if(null!==s){const i={...t.state};i.indexes=t.state.points.map(i=>({index:di(e,t.model,i.time_t),price:i.price})),e.restoreLineToolState(s,i,!1)}})}),k.restoredLineTool.subscribe(null,t=>{e(t,(e,i)=>{e.restoreSource(t.state.restorePane,t.state.paneIndex,t.state.paneState,t.state.sourceState,null)})}),k.copiedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=(0,s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n;const o={...t.state,intervalsVisibilities:(0,oi.mergeIntervalVisibilitiesDefaults)(t.state.intervalsVisibilities)},a=(0,f.createLineToolProperties)(t.linetool,o,e),l=e.dataSourceForId(t.id);if(l){if(!(0,f.isLineTool)(l))return void li.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and it is not a line tool`) +;if(l.toolname!==t.linetool)return void li.logError(`Error sync creating line tool. Object with id ${t.id} is already in use and its type differs: ${l.toolname} and ${t.linetool}`)}if(l&&(l.linkKey().setValue(t.linkKey),l.share(t.sharingMode)),t.pointPositionPercents){const e={index:0,price:0};if(n=null!=l?l:i.createLineTool({pane:r,point:e,linetool:t.linetool,properties:a,linkKey:t.linkKey,disableSynchronization:!0,id:t.id}),null===n)return;n.restorePositionPercents((0,s.ensureDefined)(t.pointPositionPercents))}else{const o=t.points.map(i=>({index:(0,s.ensureNotNull)(di(e,t.model,i.timeStamp)),price:i.price})),c=o[0];if(n=null!=l?l:i.createLineTool({pane:r,point:c,linetool:t.linetool,properties:a,linkKey:t.linkKey,sharingMode:t.sharingMode,disableSynchronization:!0,id:t.id}),null===n)return;if(e.lineBeingCreated())for(let e=1;e{"use strict";i.r(t),i.d(t,{allInitialModelsCreated:()=>It,allInitialSymbolsResolved:()=>xt,applyIndicatorToAllChartsImpl:()=>je,applyIndicatorsToAllChartsImpl:()=>Ue,applyLineToolUpdateNotificationImpl:()=>Xe,applyThemeImpl:()=>At,chartsSymbolsImpl:()=>Qe,checkProFeatureImpl:()=>Mt,computeContentBoxImpl:()=>at,copyScreenshotToClipboard:()=>rt,createBroadcastChannel:()=>Ct,createChartStorageSubscriptionsIfRequired:()=>et,createClipboardHandler:()=>Ze,destroyBroadcastChannel:()=>Pt,downloadScreenshot:()=>st,generateNewChartId:()=>_t,getAsyncStateForChartImpl:()=>Ke,getClientSnapshot:()=>ot,getSnapshot:()=>nt,getStateForChartImpl:()=>Ye,getVisuallyAdjacentDefImpl:()=>ut,hideChartImpl:()=>vt,lineToolsAndGroupsDTOsImpl:()=>qe,removeChartWidgetSubscriptionsImpl:()=>St,resetLineToolsInvalidatedImpl:()=>$e,setBrokerImpl:()=>Je,setChartLayoutWithUndoImpl:()=>Lt,setLayoutImpl:()=>yt,syncCrosshairImpl:()=>wt,syncScrollImpl:()=>Tt,takeScreenshot:()=>tt,takeServerScreenshot:()=>it,updateLayoutImpl:()=>dt,updateLayoutPartialImpl:()=>ht});var s=i(88537),r=i(86441),n=i(28353),o=i(24980),a=i(49483);function l(e){const t={};return{promise:new Promise((i,s)=>{e.subscribe(t,i,!0)}),destroy:()=>{e.unsubscribeAll(t)}}}i(54427);var c=i(35762);class h extends c.UndoCommand{constructor(e,t){super(null),this._chartModel=e,this._targetIndex=t}redo(){const e=this._chartModel.createPane(this._targetIndex,void 0,this._paneId);this._paneId=e.id()}undo(){const e=(0,s.ensureDefined)(this._paneId),t=this._chartModel.panes().find(t=>t.id()===e);void 0!==t&&this._chartModel.removePane(t)}createdPaneId(){return this._paneId}}class d extends c.UndoCommand{constructor(e,t,i,s){super(s),this._setter=e,this._oldValue=t,this._newValue=i}redo(){ +this._setter(this._newValue)}undo(){this._setter(this._oldValue)}}class u extends d{constructor(e,t,i,s){super(e=>this._vwState.setValue(e),t,i,s),this._vwState=e}}var p=i(98125),_=i(80054),m=i(65446);const g=(0,p.getLogger)("Clipboard");class f{constructor(e){this._e=e}write(e){return(0,m.writeImpl)(this._toRaw(e),this._e)}_toRaw(e){const t={files:[]};t.text=e.text,void 0!==e.app?t.html=this._serializeAppData(e.app,e.text):e.html&&(t.html=e.html);for(const i of e.files||[])t.files.push(i);return t}_serializeAppData(e,t){return`${t?(0,_.htmlEscape)(t.slice(0,256)):"📈"}`}}class v{constructor(e){this._e=e}async read(){this._e&&0===this._e.eventPhase&&(g.logWarn("Cannot use an already dispatched ClipboardEvent for reading"),this._e=null);const e=this._e?this._readUsingEvent(this._e):await this._readUsingApi();return this._fromRaw(e)}_readUsingEvent(e){const t=(0,s.ensure)(e.clipboardData);e.preventDefault();const i={files:[]};for(let e=0;e0&&(t.files=e.files),t}_parseAppData(e){if(-1===e.slice(0,1024).indexOf("data-tradingview-clip"))return;const t=(new DOMParser).parseFromString(e,"text/html").querySelector("[data-tradingview-clip]");return t?t.getAttribute("data-tradingview-clip")||"":void 0}_readBlobAsText(e){return new Promise((t,i)=>{const s=new FileReader;s.onloadend=()=>{t(s.result)},s.onerror=()=>{i(s.error)},s.readAsText(e)})}}var S=i(35749);function y(e){const t=e.target;return null!==t&&1===t.nodeType&&(0,S.isTextEditingField)(t)}function b(e){const t=e.target;if(null===t)return!1;const i=(t.ownerDocument||t).getSelection();return null!==i&&!i.isCollapsed}class w extends class{constructor(e){this._callbacks=Object.assign({},e),this._boundOnCopy=this._onCopyEv.bind(this),this._boundOnCut=this._onCutEv.bind(this),this._boundOnPaste=this._onPasteEv.bind(this)}listen(){document.addEventListener("copy",this._boundOnCopy),document.addEventListener("cut",this._boundOnCut),document.addEventListener("paste",this._boundOnPaste)}async peek(){if("granted"!==(await navigator.permissions.query({name:"clipboard-read"})).state)throw new Error("clipboard-read is not granted") +;return new v(null).read()}uiRequestCopy(e){this._callbacks.copyRequested&&this._callbacks.copyRequested(new f(null),e)}uiRequestCut(e){this._callbacks.cutRequested&&this._callbacks.cutRequested(new f(null),e)}uiRequestPaste(e){this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new v(null),e)}destroy(){document.removeEventListener("copy",this._boundOnCopy),document.removeEventListener("cut",this._boundOnCut),document.removeEventListener("paste",this._boundOnPaste)}_onCopyEv(e){e.defaultPrevented||this._callbacks.copyRequested&&this._callbacks.copyRequested(new f(e))}_onCutEv(e){e.defaultPrevented||this._callbacks.cutRequested&&this._callbacks.cutRequested(new f(e))}_onPasteEv(e){e.defaultPrevented||this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new v(e))}}{_onCopyEv(e){if(!y(e)&&!b(e))return super._onCopyEv(e)}_onCutEv(e){if(!y(e)&&!b(e))return super._onCutEv(e)}_onPasteEv(e){if(!y(e))return super._onPasteEv(e)}}const C=()=>i.e(4389).then(i.bind(i,84331));function P(e,t={}){return C().then(i=>i.copyToClipboardImageOfChart(e,t))}function T(e,t={}){return C().then(i=>i.getImageOfChartSilently(e,t))}var x=i(76422),I=i(84015),M=i(6087),L=i(42060),A=i(24377),E=i(26843),k=i(55257),D=i(93435),V=i(22799),B=i(52640),N=i(38069),R=i(67337),O=i(34954);const F=!R.enabled("widget_logo");function W(e,t=null,i=null){let s={};if("number"==typeof e)return{relativePositions:{[e]:{l:t,t:i}},nextElementLeft:e,nextElementTop:e};const[r,...n]=e;if("v"===r){let e=null;for(const r of n){const n=W(r,t,i);s={...s,...n.relativePositions},i=n.nextElementTop,e=n.nextElementLeft}t=e}if("h"===r){let e=null;for(const r of n){const n=W(r,t,i);s={...s,...n.relativePositions},t=n.nextElementLeft,e=n.nextElementTop}i=e}return{relativePositions:s,nextElementTop:i,nextElementLeft:t}}const H=function(e){const t={};for(const i of Object.keys(e)){const s=W(e[i]).relativePositions;t[i]=s}return t}(N);function z(e,t,i,s){return(0,D.drawScaled)(e,s,()=>{e.fillText(i,t.x/s,t.y/s)}),e.measureText(i).width*s}function U(e){return e.map(e=>({...e,title:""}))}function j(e,t){const i=[{text:e.trim()}];for(const e of t)e.visible&&(""!==i[i.length-1].text&&i.push({text:" "}),e.title&&i.push({text:e.title}),i.push({text:e.value,color:e.color}));return i}class G{constructor(e,t){this._logoTextColor=null,this._snapshotData=e,t=t||{},this._options={backgroundColor:M.themes[e.theme].getThemedColor("color-bg-primary"),borderColor:M.themes[e.theme].getThemedColor("color-border"),font:V.CHART_FONT_FAMILY,fontSize:12,legendMode:"vertical",hideResolution:!1,showHeaderPublishedBy:!1,showHeaderMainSymbol:!1,...t};const i=H[e.layout],s=e.charts.map(e=>function(e){const t=e.panes[0],i=t.canvas.width+t.leftAxis.canvas.width+t.rightAxis.canvas.width;let s=0;for(const t of e.panes)s+=t.canvas.height;return void 0!==e.timeAxis&&(s+=e.timeAxis.canvas.height),new D.Size(i,s)}(e));if(this._pixelRatio=e.hidpiRatio,this._chartsGeometry=e.charts.map((e,t)=>function e(t,i,s,r){let n=Math.round(10*r),o=Math.round(10*r);const a=s[t];if(null!==a.l){const t=e(a.l,i,s,r) +;n=t.x+t.width+Math.round(5*r)}if(null!==a.t){const t=e(a.t,i,s,r);o=t.y+t.height+Math.round(5*r)}const l=i[t];return{x:n,y:o,width:l.w,height:l.h}}(t,s,i,this._pixelRatio)),!F){let i=e.theme;void 0!==t.backgroundColor&&(i="black"===(0,A.rgbToBlackWhiteString)((0,A.parseRgb)(t.backgroundColor),150)?E.StdTheme.Dark:E.StdTheme.Light),this._logoTextColor=M.themes[i].getThemedColor("color-text-primary")}this._headerDefaultTextColor=M.themes[e.theme].getThemedColor("color-text-primary")}async getImage(){const e=this._pixelRatio;let t=0,i=0,s=0;const n=this._headerItems();if(n.length>0){s=Math.ceil(1.4*this._options.fontSize*e)*n.length}i+=s;let o=0,a=0;for(const e of this._chartsGeometry)o=Math.max(o,e.x+e.width),a=Math.max(a,e.y+e.height);const l=i;t+=o,i+=a,t+=Math.round(10*e);const c=F?Math.round(10*e):Math.round(35*e),h=i;i+=c;const d=(0,D.createDisconnectedCanvas)(document,new D.Size(t,i),1),u=(0,D.getContext2D)(d);u.font=(0,B.makeFont)(this._options.fontSize,this._options.font),u.textBaseline="top",u.fillStyle=this._options.backgroundColor,u.fillRect(0,0,t,i),n.length>0&&this._drawHeader(u,n,t,new r.Point(Math.round(10*e),Math.round(10*e)));for(let e=0;e{const s=new Image;s.width=e,s.height=t,s.onload=()=>{i({image:s,width:e,height:t})},s.src=n})}(Math.round(20*e),Math.round(15*e),this._logoTextColor);u.fillStyle=this._logoTextColor,u.font=(0,B.makeFont)(13,V.CHART_FONT_FAMILY);const i=h+Math.round(c/2-t.height/2);!function(e,t,i,s,r){e.save(),e.drawImage(s.image,t,i,s.width,s.height),e.textBaseline="bottom";const n=(t+s.width)/r+3,o=(i+s.height)/r;(0,D.drawScaled)(e,r,()=>{e.fillText("TradingView",n,o)}),e.restore()}(u,Math.round(10*e),i,t,e)}return d}_drawChart(e,t,i,s){i.save(),i.translate(t.x+s.x,t.y+s.y);let n=0;for(const t of e.panes){let s=0;const o=t.leftAxis.canvas.width+Math.round(8*this._pixelRatio),a=n,l=n+Math.round(10*this._pixelRatio);t.leftAxis.contentWidth>0&&(i.drawImage(t.leftAxis.canvas,s,n),s+=t.leftAxis.canvas.width),i.drawImage(t.canvas,s,n),s+=t.canvas.width,t.rightAxis.contentWidth>0&&i.drawImage(t.rightAxis.canvas,s,n),"pane"===t.type&&(i.fillStyle=e.colors.text,this._drawLegend(t,i,new r.Point(o,l),a)),n+=t.canvas.height}if(void 0!==e.timeAxis){let t=0;e.timeAxis.lhsStub.contentWidth>0&&(i.drawImage(e.timeAxis.lhsStub.canvas,t,n),t+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,t,n),t+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,t,n)}i.strokeStyle=this._options.borderColor,i.strokeRect(0,0,t.width,t.height),i.restore()}_headerItems(){var e,t,i,s +;const r=[];if(this._options.showHeaderPublishedBy&&this._snapshotData.publishedBy)for(const e of this._snapshotData.publishedBy)r.push([{text:e}]);if(this._options.showHeaderMainSymbol){const n=this._snapshotData.charts[0],o=`${null===(e=n.meta)||void 0===e?void 0:e.symbol}, ${null===(t=n.meta)||void 0===t?void 0:t.resolution}`;r.push(j(o,null!==(s=null===(i=n.meta)||void 0===i?void 0:i.values)&&void 0!==s?s:[]))}return r}_drawHeader(e,t,i,s){e.save(),e.fillStyle=this._headerDefaultTextColor;const n=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);t.forEach((t,o)=>{this._drawLegendLine(e,new r.Point(s.x,s.y+n*o),i,t,!0)}),e.restore()}_drawLegend(e,t,i,s){let n=!0;const o=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);let a=i.x,l=i.y;if(e.mainSeriesText&&l+oe.text).join("");let a=t.x;const l=function(e,t,i,s){if(e.measureText(t).width*s<=i)return{text:t,elided:!1};const r=e.measureText("...").width*s,n=[];for(let e=0;ee.measureText(t.slice(0,o+1)).width*s+r>i);return{text:(t=t.slice(0,o)).trim(),elided:!0}}(e,o,i-a,this._pixelRatio);if(l.elided&&!n)return null;const c=[];let h=0;for(const e of s){if(h+e.text.length>l.text.length)break;c.push(e.text),h+=e.text.length}const d=c.join("").trim().length;h=0;for(const i of s){if(h+i.text.length>d)break;i.color&&(e.save(),e.fillStyle=i.color),a+=z(e,new r.Point(a,t.y),i.text,this._pixelRatio),i.color&&e.restore(),h+=i.text.length}return l.elided&&(a+=z(e,new r.Point(a,t.y),"...",this._pixelRatio)),a}}var q=i(9423),Y=i(4676),K=i(85733),$=i(45112),X=i(80643),Z=i(94804),J=i(76818),Q=i(44349),ee=i(34026),te=i(29892),ie=i(43891),se=i(42759),re=i(49094);class ne{constructor(e,t,i){this._data=e,this._hittest=t,this._textWidthCache=i}draw(e,t){const i=t.pixelRatio,s=this._data.centerPoint,n=Math.round(s.x*i),o=Math.round(s.y*i),a=Math.max(1,Math.floor(i))%2/2,l=new r.Point(n+a,o-a);this._drawLollipop(e,l,t),this._drawLabel(e,l,t.pixelRatio),this._drawImage(e,l,t.pixelRatio)}hitTest(e,t){const i=(0,re.interactionTolerance)().esd,s=this._data.centerPoint.y-this._data.style.lollipop.height/2-i,n=this._data.centerPoint.x-this._data.style.lollipop.width/2-i,o=(0,r.box)(new r.Point(n,s),new r.Point(n+this._data.style.lollipop.width+2*i,s+this._data.style.lollipop.height+2*i));return(0,ee.pointInBox)(e,o)?this._hittest:null}_drawLollipop(e,t,i){ +const s=this._data.style,r=i.pixelRatio,n=Math.max(1,Math.floor(r));let o=Math.round(s.lollipop.width*r);o%2!=n%2&&(o+=1);const a=o/2;s.lollipop.fillCircle&&s.lollipop.backgroundColor&&(e.fillStyle=s.lollipop.backgroundColor,(0,se.createCircle)(e,t.x,t.y,a),e.fill());const l=Math.round(s.lollipop.lineWidth*r);e.strokeStyle=s.lollipop.strokeStyle,e.lineWidth=l,(0,te.setLineStyle)(e,ie.LINESTYLE_SOLID);const c=a-Math.round(1*r+l/2);(0,se.createCircle)(e,t.x,t.y,c),s.lollipop.fillCircle&&s.lollipop.fillStyle&&(e.fillStyle=s.lollipop.fillStyle,e.fill()),e.stroke()}_drawLabel(e,t,i){const s=this._data.style.lollipop.text,r=s.label;if(""===r)return;e.textAlign="center",e.textBaseline="middle",e.fillStyle=s.strokeStyle,e.font=s.font;const n=this._textWidthCache.yMidCorrection(e,r);e.translate(t.x,t.y+((s.deltaY||0)+n)*i),(0,D.drawScaled)(e,i,()=>{e.fillText(r,0,0)})}_drawImage(e,t,i){const s=this._data.style.lollipop.image;if(void 0===s)return;const{width:r,height:n}=s,o=Math.round(r*i),a=Math.round(n*i),l=Math.round(t.x-o/2),c=Math.round(t.y-a/2);e.drawImage(s,0,0,r,n,l,c,o,a)}}var oe=i(84346);const ae={fillPath:new Path2D("M8.961.92a3 3 0 0 1 3.078 0l7.5 4.48A3 3 0 0 1 21 7.975V20a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V7.975A3 3 0 0 1 1.461 5.4l7.5-4.48z"),strokePath:new Path2D("M9.867 2.742c.39-.23.875-.23 1.266 0l7.5 4.406c.382.225.617.635.617 1.078V20c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25V8.226c0-.443.235-.853.617-1.078l7.5-4.406z")},le={fillPath:new Path2D("M8.961 22.08a3 3 0 0 0 3.078 0l7.5-4.48A3 3 0 0 0 21 15.025V3a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v12.025A3 3 0 0 0 1.461 17.6l7.5 4.48z"),strokePath:new Path2D("M9.866 20.257c.391.23.877.23 1.268 0l7.5-4.414a1.25 1.25 0 0 0 .616-1.078V3c0-.69-.56-1.25-1.25-1.25H3c-.69 0-1.25.56-1.25 1.25v11.765c0 .443.234.853.616 1.078l7.5 4.414z")},ce={fillPath:new Path2D("M3 0h15c1.662 0 3 1.338 3 3v15c0 1.662-1.338 3-3 3H3c-1.662 0-3-1.338-3-3V3c0-1.662 1.338-3 3-3z"),strokePath:new Path2D("M3 1.75h15c.693 0 1.25.557 1.25 1.25v15c0 .693-.557 1.25-1.25 1.25H3c-.692 0-1.25-.558-1.25-1.25V3c0-.692.558-1.25 1.25-1.25z")};function he(e,t,i,s,r){const n=i.pixelRatio;e.save(),e.translate(t.x-s.lollipop.width*n/2,t.y-s.lollipop.height*n/2),e.scale(n,n),s.lollipop.fillCircle&&s.lollipop.backgroundColor&&(e.fillStyle=s.lollipop.backgroundColor,e.fill(r.fillPath)),e.strokeStyle=s.lollipop.strokeStyle,e.lineWidth=Math.round(s.lollipop.lineWidth*n)/n,(0,te.setLineStyle)(e,ie.LINESTYLE_SOLID),s.lollipop.fillCircle&&s.lollipop.fillStyle&&(e.fillStyle=s.lollipop.fillStyle,e.fill(r.strokePath)),e.stroke(r.strokePath),e.restore()}function de(e,t,i,s){he(e,t,i,s,ae)}function ue(e,t,i,s){he(e,t,i,s,le)}function pe(e,t,i,s){he(e,t,i,s,ce)}class _e extends ne{_drawLollipop(e,t,i){const s=this._data.style;switch(s.shape){case"earningUp":de(e,t,i,s);break;case"earningDown":ue(e,t,i,s);break;case"earning":pe(e,t,i,s);break;default:super._drawLollipop(e,t,i)}}}const me={backgroundDark:(0,$.getHexColorByName)("color-cold-gray-900"),backgroundLight:(0,$.getHexColorByName)("color-white")} +;class ge extends class{constructor(e,t,i){this._invalidated=!1,this._renderer=new Z.CompositeRenderer,this._textWidthCache=new J.TextWidthCache,this._stylesCache=null,this._lollipops={},this._lollipopsCounter=0,this._lastClickedId=null,this.onPaneBgChange=()=>{this._recreateStyles(this._model)},this._lastClickedId=null,this._model=e,this._source=t,this._hitTestHandler=i,this._recreateStyles(e),e.backgroundColor().subscribe(this.onPaneBgChange),e.mainSeries().onSymbolIntervalChanged().subscribe(this,this._onSymbolOrIntervalChanged)}destroy(){this._model.backgroundColor().unsubscribe(this.onPaneBgChange),this._model.mainSeries().onSymbolIntervalChanged().unsubscribeAll(this)}onClickOutside(e){var t;if(null===this._lastClickedId||!e)return void this.clearLastClicked();let i=null;if(function(e){return void 0!==e.touches}(e)){if(1!==e.touches.length)return;{const t=(0,s.ensureNotNull)(e.target).getBoundingClientRect(),n=e.touches[0];i=new r.Point(n.clientX-t.left,n.clientY-t.top)}}else i=new r.Point(e.offsetX,e.offsetY);const n=this._renderer.hitTest(i,{physicalHeight:0,physicalWidth:0,pixelRatio:1,cssHeight:0,cssWidth:0});null!==n&&(null===(t=n.data())||void 0===t?void 0:t.activeItem)===(0,s.ensureDefined)(this._lollipops[this._lastClickedId]).itemIndex||this.clearLastClicked()}clearLastClicked(){const e=null!==this._lastClickedId&&this._lollipops[this._lastClickedId]||null;null!==e&&(e.active=!1),this._lastClickedId=null}getLastClickedLollipopId(){return this._lastClickedId}update(){this._invalidated=!0}afterUpdate(e,t,i,s){}getStyle(e){const t=e.active?"active":e.hovered?"hovered":"default";let i=t;if(e.stack&&(i+="_stack:"+e.stack),"active"===i)return this._activeStyle;if("hovered"===i)return this._hoveredStyle;if("default"===i)return this._defaultStyle;if(this._stylesCache||(this._stylesCache={}),!this._stylesCache[i]){const s=(0,X.clone)("active"===t?this._activeStyle:"hovered"===t?this._hoveredStyle:this._defaultStyle);e.stack&&(s.lollipop.incHeight=25*e.stack),this._stylesCache[i]=s}return this._stylesCache[i]}hasTooltip(e){return!0}_getY(){let e=0;const t=this._model.panes();for(let i=t.length;i--;){const s=t[i];s.containsMainSeries()&&(e+=s.height())}return e}_showBarLine(e){return this.hasTooltip(e)&&(e.hovered||e.active)}_createRenderers(e,t){this._renderer.clear();const i=new D.Size(e,t);for(const e in this._lollipops)if(this._lollipops.hasOwnProperty(e)){const t=(0,s.ensureDefined)(this._lollipops[e]);if(t.visible){const e=this.getStyle(t),s={id:t.id,centerPoint:new r.Point(t.basePoint.x,t.basePoint.y-e.lollipop.bottom-e.lollipop.height/2-(e.lollipop.incHeight||0)),style:e},n={activeItem:t.itemIndex,clickHandler:this._lollipopMouseClickHandler.bind(this,s,i),tapHandler:this._lollipopMouseClickHandler.bind(this,s,i)};if(this._renderer.append(this._createRendererForLollipop(s,n)),this._showBarLine(t)){const{strokeStyle:i,lineStyle:s,lineWidth:r}=e.barLine,n={color:i,linestyle:s,linewidth:r,x:t.basePoint.x,top:0,bottom:t.basePoint.y-e.lollipop.bottom-e.lollipop.height},o=new Q.VerticalLineRenderer +;o.setData(n),this._renderer.insert(o,0)}}}}_recreateStyles(e){this._stylesCache=null}_createRendererForLollipop(e,t){return new ne(e,new oe.HitTestResult(oe.HitTestResult.CUSTOM,t),this._textWidthCache)}_lollipopMouseClickHandler(e,t,i){i.preventDefault();const n=e.id;if(this._lastClickedId=this._lastClickedId===n?null:n,null===this._lastClickedId)return;const o={target:i.target,targetSize:t,point:new r.Point(e.centerPoint.x,e.centerPoint.y-e.style.lollipop.height/2-8),marginTop:15};this._hitTestHandler(o,()=>{const e=(0,s.ensureDefined)(this._lollipops[n]),t=this.createTooltipContent(e);return t?[t]:null})}_onSymbolOrIntervalChanged(){this._lollipops={},this._lollipopsCounter=0,this._renderer.clear(),this.clearLastClicked()}}{constructor(e,t,i){super(e,t,i),this.stylesCache={},this.templatesCache={},this._itemIndexToId=new Map,this.source=t}createTooltipContent(e){const t=e.items;return t?{subTitle:Array.isArray(t)?t.map(e=>({value:e})):[{value:t}],style:{color:e.color}}:null}clearCaches(){this.clearLastClicked(),this._lollipops={},this._lollipopsCounter=0}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._createLollipops(t,e),this._invalidated=!1),this._renderer}getStyle(e){const t=e.active?"active":e.hovered?"hovered":"default";return this._generateStyle(t,e.color,e.label,e.stack,e.shape)}hasTooltip(e){return Boolean(e.items&&e.items.length)}getLollipopIdByIndex(e){return this._itemIndexToId.get(e)}_createRendererForLollipop(e,t){return new _e(e,new oe.HitTestResult(oe.HitTestResult.CUSTOM,t),this._textWidthCache)}_createLollipops(e,t){const i=this._model.timeScale(),s=super._getY(),n=this._model.lastHittestData(),o=this._model.hoveredSource(),a=this.source.marks(),l=new Map;Object.keys(a).forEach(e=>{var t;const c=a[e],h=c.id,d=c.index;if(null!=d){const e=h===this.getLastClickedLollipopId(),a=this._lollipops[h],u=void 0!==a?a.itemIndex:this._lollipopsCounter++;this._itemIndexToId.has(u)||this._itemIndexToId.set(u,h);const p=o===this.source&&null!==n&&n.activeItem===u,_=(null!==(t=l.get(d))&&void 0!==t?t:-1)+1;l.set(d,_),this._lollipops[h]={id:h,itemIndex:u,basePoint:new r.Point(i.indexToCoordinate(d)+1,s),hovered:p,active:e,label:c.label,color:c.color,items:c.tooltip,visible:!0,stack:_,shape:c.shape}}}),super._createRenderers(e,t)}_generateStyle(e,t,i,s,r){let n=e+t+i;if(void 0!==s&&(n+="_stack"+s),!(n in this.stylesCache)){const o=this._model.isDark()?me.backgroundDark:me.backgroundLight;let a,l=t;if("active"===e)a=t,l="rgba(255, 255, 255, 0.92)";else if("hovered"===e){const e=(0,A.tryParseRgba)(t);if(null!==e){const t=e[3]*(1-.85);a=(0,A.rgbaToString)((0,A.rgba)(e[0],e[1],e[2],t))}}let c=23,h=23,d=1,u=0;"earning"===r?(h=21,c=21,d=2):"earningUp"===r?(c=21,u=1,d=2):"earningDown"===r&&(c=21,u=-.5,d=.5);const p={barLine:{lineStyle:ie.LINESTYLE_DASHED,lineWidth:1,strokeStyle:t},lollipop:{width:c,height:h,bottom:d,backgroundColor:o,lineWidth:1.5,fillStyle:a,strokeStyle:t,fillCircle:!0,text:{label:i,deltaY:u,strokeStyle:l,font:(0,B.makeFont)(12,V.CHART_FONT_FAMILY,"bold")}},shape:r} +;void 0!==s&&(p.lollipop.incHeight=25*s),this.stylesCache[n]=p}return this.stylesCache[n]}}class fe extends Y.BarsMarksContainer{constructor(e){super(e),this.toolname="UserDefinedTimescaleMarks",this._requestedPointsets=new Set,(0,K.hideMarksOnBars)().subscribe(this,()=>this._properties.childs().visible.setValue(!(0,K.hideMarksOnBars)().value())),this._paneView=new ge(e,this,this._showTooltip.bind(this))}destroy(){(0,K.hideMarksOnBars)().unsubscribeAll(this),super.destroy()}userEditEnabled(){return!1}onClicked(e){if(null!==e){const t=this._paneView.getLollipopIdByIndex(e.activeItem);(0,x.emit)("onTimescaleMarkClick",t)}}clearMarks(){const e=this._model.chartApi();e.isConnected().value()&&Object.keys(this._marks).forEach(t=>{const i=this._getPointsetId(t);e.removePointset(i)}),this._requestedPointsets.clear(),super.clearMarks(),this._paneView.clearCaches(),this.onNeedRepaint.fire()}updatePlateData(e,t){return{...t,barWidth:this.barWidth(),text:e.text,tooltipMargin:-1*Math.max(e.minSize/2,.4*this.barWidth())}}hasContextMenu(){return!1}paneViews(){return this._properties.childs().visible.value()?[this._paneView]:[]}updateAllViews(){this._paneView.update()}onClickOutside(e){this._paneView.onClickOutside(e)}_createTooltipRenderer(){return null}_initialize(){this._properties.childs().visible.setValue(!0)}_plateViewData(e){return{text:e.text}}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),r=this._model.mainSeries(),n=r.seriesSource().symbolInstanceId(),o=r.properties().childs().interval.value();window.ChartApiInstance.getTimescaleMarks(t,i.start,i.end,t=>{const i=this._model.chartApi();for(const e of t){e.index=null;const t=e.id,r=this._getPointsetId(t.toString()),a=this._marks[t];if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:this._requestedPointsets.has(r)&&i.isConnected().value()&&(i.removePointset(r),this._requestedPointsets.delete(r))),this._marks[t]=e,null===e.index&&i.isConnected().value()){this._requestedPointsets.add(r);const t=[[e.tickmark,0]];i.createPointset(r,"turnaround",(0,s.ensureNotNull)(n),o,t,e=>this._onPointsetData(e))}}this._loadedRange=this._rangeUnion(e,this._loadedRange),this.updateAllViews(),this.onNeedRepaint.fire()},o)}_getPointsetId(e){return"pointsetMark_"+e}_onPointsetData(e){if("data_update"===e.method){const t=e.params.customId.split("_")[1],i=this._marks[t],s=e.params.plots;i&&1===s.length&&(i.index=s[0].value[0])}this.updateAllViews()}async _showTooltip(e,t){const s=t();if(!s)return;const r=this._model.timeScale(),n=[r.onScroll(),r.barSpacingChanged(),this._model.mainSeries().onSymbolIntervalChanged()],o=this.onClickOutside.bind(this);(await Promise.all([i.e(5514),i.e(2e3),i.e(3466),i.e(2731),i.e(8994),i.e(9039)]).then(i.bind(i,22838))).showLollipopTooltip({items:s,position:e,customCloseSubscriptions:n,onClickOutside:o})}}function ve(e,t,i){return new Promise(s=>{i&&e.classList.remove(i),e.classList.add(t);const r=i=>{i.target===e&&i.animationName===t&&(e.removeEventListener(i.type,r),s(i))} +;e.addEventListener("animationend",r,!1),e.addEventListener("webkitAnimationEnd",r,!1),e.addEventListener("MSAnimationEnd",r,!1)})}function Se(e){return ve(e,"tv-transition--fade-in","tv-transition--fade-out")}class ye extends class{constructor(){this._source=null,this._tooltipHovered=!1,this._layout=null,this._container=null,this._context=null,this._plateArrowSize=14,this._handleTouchMouseLeave=e=>{(0,s.ensureNotNull)(this._layout).contains(e.target)||this._clearHovered()},this._setHovered=()=>{this._tooltipHovered=!0,document.addEventListener("touchstart",this._handleTouchMouseLeave),Se((0,s.ensureNotNull)(this._layout))},this._clearHovered=()=>{var e;this._tooltipHovered=!1,document.removeEventListener("touchstart",this._handleTouchMouseLeave),null===(e=this._source)||void 0===e||e.onNeedRepaint.fire()}}showPlate(e,t){if(this._currentId!==e.id||!this._layout||null===this._layout.parentNode){this._currentId=e.id,this._createLayout();const i=(0,s.ensureNotNull)(this._layout);this._getContainer(t).appendChild(i),i.addEventListener("mouseenter",this._setHovered),i.addEventListener("mouseleave",this._clearHovered)}const i=(0,s.ensureNotNull)(this._layout);let r=Math.round(e.barWidth/2);r>15&&(r=15),r<10&&(r=10),this._updatePlate(e);const n=t.canvas.getBoundingClientRect(),o=e.x-i.offsetWidth{t.remove(),e()})}setSource(e){this._source=e}removeLayout(){var e;this._tooltipHovered||null===(e=this._layout)||void 0===e||e.remove()}toggleLayout(e){(0,s.ensureNotNull)(this._layout).style.visibility=e?"visible":"hidden"}_getContainer(e){return this._container&&this._context===e||(this._context=e,this._container=e.canvas.parentElement),(0,s.ensureNotNull)(this._container)}}{constructor(){super(...arguments),this._layoutText=null}_createLayout(){this._layout=document.createElement("div"),this._layout.classList.add("bar-mark-tooltip"),this._layoutText=document.createElement("div"),this._layoutText.classList.add("text"),this._layout.appendChild(this._layoutText)}_updatePlate(e){this._currentId=e.id;const t=(0,s.ensureNotNull)(this._layout);t.style.borderColor=e.theme.border,t.style.marginTop=e.tooltipMargin+"px";const i=(0,s.ensureNotNull)(this._layoutText);i.innerHTML=e.text,t.appendChild(i)}}class be{constructor(e,t){this._tooltips={},this._hoveredId=null,this._tooltipFactory=e,this.source=t}showPlate(e,t){const i=this._findOrCreateTooltip(e);null!==i&&(i.drawPlate(e,t),i.plateData=e)}draw(e,t){this._hoveredId=null;for(const t of e)t.hovered&&(this._hoveredId=t.id);for(const i of e)this.showPlate(i,t)}endDraw(){var e,t;for(const i in this._tooltips)if(this._tooltips.hasOwnProperty(i)){ +const r=(0,s.ensureDefined)(this._tooltips[i]);r.toggleVisibility(),this._hoveredId&&(null===(e=r.plateData)||void 0===e?void 0:e.id)!==this._hoveredId&&!(null===(t=r.plateData)||void 0===t?void 0:t.pinned)&&(r.remove(),delete this._tooltips[i])}}removeAll(){for(const e in this._tooltips)if(this._tooltips.hasOwnProperty(e)){(0,s.ensureDefined)(this._tooltips[e]).remove()}this._tooltips={}}removeTooltip(e){delete this._tooltips[e]}_createTooltip(){return new we(this,this._tooltipFactory())}_findOrCreateTooltip(e){let t=this._tooltips[e.id];return void 0===t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this._tooltips[e.id]=t),t||null}}class we{constructor(e,t){this._visible=!1,this._renderer=e,this._tooltip=t}drawPlate(e,t){this._visible=!0,this._tooltip.setSource(this._renderer.source),this._tooltip.showPlate(e,t),e.hovered||e.pinned||this._tooltip.hide(()=>this._renderer.removeTooltip(e.id))}remove(){this._tooltip.removeLayout()}toggleVisibility(){this._tooltip.toggleLayout(this._visible),this._visible=!1}}class Ce extends Y.BarsMarksContainer{constructor(e){super(e),this.toolname="UserDefinedBarsMarks",(0,K.hideMarksOnBars)().subscribe(this,()=>{this.properties().childs().visible.setValue(!(0,K.hideMarksOnBars)().value())})}destroy(){(0,K.hideMarksOnBars)().unsubscribeAll(this),super.destroy()}userEditEnabled(){return!1}onClicked(e){var t,i,s;const r=null===(t=null==e?void 0:e.activeItem)||void 0===t?void 0:t.id;null===(s=(i=this._marks[r]).onClicked)||void 0===s||s.call(i)}clearMarks(){super.clearMarks(),this.onNeedRepaint.fire()}updatePlateData(e,t){return{...t,barWidth:this.barWidth(),text:e.text,tooltipMargin:-1*Math.max(e.minSize/2,.4*this.barWidth())}}hasContextMenu(){return!1}calcIsActualCurrency(){this._isActualCurrency=!0}calcIsActualUnit(){this._isActualUnit=!0}_initialize(){this.properties().childs().visible.setValue(!0)}_plateViewData(e){const t={text:e.text};return"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background),t}_getData(e){const t=this._model.mainSeries().symbolInfo();if(!t)return;const i=this.roundRange(this._rangeDifference(e)),s=this._model.mainSeries().properties().childs().interval.value();window.ChartApiInstance.getMarks(t,i.start,i.end,t=>{for(const e of t)this._marks[e.id]=e;this._loadedRange=this._rangeUnion(e,this._loadedRange),this.onNeedRepaint.fire()},s)}_createTooltipRenderer(){return new be(()=>new ye,this)}}var Pe=i(31940),Te=i(35548),xe=i(37416),Ie=i(98619),Me=i(54386),Le=i(76367);const Ae=new o.TranslatedString("change chart layout to {title}",(0,n.t)("change chart layout to {title}"));class Ee extends c.UndoCommand{constructor(e,t){super(Ae.format({title:L.layouts[t].title})),this._chartWidgetCollection=e,this._newLayoutType=t,this._oldLayoutType=e.layout.value()}redo(){this._chartWidgetCollection.setLayout(this._newLayoutType)}undo(){this._chartWidgetCollection.setLayout(this._oldLayoutType)}}var ke=i(45345) +;const De=new o.TranslatedString("apply toolbars theme",(0,n.t)("apply toolbars theme"));class Ve extends c.UndoCommand{constructor(e,t,i=!0){super(De),this._prevThemeName=e,this._themeName=t,this._syncState=i}undo(){(0,M.isStdThemeName)(this._prevThemeName)&&((0,ke.setTheme)(this._prevThemeName),this._syncState&&(0,M.syncTheme)())}redo(){(0,M.isStdThemeName)(this._themeName.toLowerCase())&&((0,ke.setTheme)(this._themeName.toLowerCase()),this._syncState&&(0,M.syncTheme)())}}var Be=i(87027),Ne=i(52714);const Re=!a.CheckMobile.any(),Oe=new o.TranslatedString("apply indicators to entire layout",(0,n.t)("apply indicators to entire layout")),Fe=new o.TranslatedString("sync time",(0,n.t)("sync time")),We=new o.TranslatedString("resize layout",(0,n.t)("resize layout")),He=new o.TranslatedString("reset layout sizes",(0,n.t)("reset layout sizes")),ze=new o.TranslatedString("apply chart theme",(0,n.t)("apply chart theme"));(0,n.t)("Please give us a clipboard writing permission in your browser or press {keystroke}"),(0,n.t)("Couldn't copy"),(0,n.t)("Couldn't cut"),(0,n.t)("Couldn't paste"),(0,n.t)("{userName} published on {customer}, {date}"),(0,n.t)("Published on {customer}, {date}");function Ue(e,t){const i=t.model().model().studyTemplate();e.undoHistory.beginUndoMacro(Oe);for(let s=0;se.id()===n))}const l=t.pasteSourceFromClip(o,i,!0);if(l&&1===l.length){const e=l[0];if(r.asCompare){const i=(0,s.ensureNotNull)(t.mainSeries().priceScale());t.moveToScale(e,(0,s.ensureDefined)(o),i,n),t.setPriceScaleMode({percentage:!0},i,null)}}t.model().lightUpdate()}}e.undoHistory.endUndoMacro()}function Ge(e){let t=1;for(;e.has(""+t);)t++;return""+t}function qe(e){const t=new Map,i=e.chartsCountToSave(),s=new Set;for(let r=0;r{const s=(r=i.chartId,null!==(o=null===(n=e.chartWidgetsDefs.find(e=>e.chartWidget.id()===r))||void 0===n?void 0:n.chartWidget)&&void 0!==o?o:null);var r,n,o;null==s||s.resetLineToolsInvalidated(t,i.savedDto,i.sharingMode)})}function Xe(e,t,i,s){const r=e.map(e=>e.chartWidget);r.forEach(e=>e.startApplyingLineToolUpdateNotification());try{r.filter(e=>e.id()===t||0!==s).forEach(e=>e.applyLineToolUpdateNotification(i,s))}finally{r.forEach(e=>e.endApplyingLineToolUpdateNotification())}}function Ze(e){return new w({copyRequested:(t,i)=>{e.activeChartWidget.value().model().clipboardCopy(t,i)},cutRequested:(t,i)=>{e.activeChartWidget.value().model().clipboardCut(t,i)},pasteRequested:(t,i)=>{(i?i.model().undoModel():e.activeChartWidget.value().model()).clipboardPaste(t,i)}})}function Je(e,t){0}function Qe(e){const t={};return e.chartWidgetsDefs.map(e=>e.chartWidget).forEach(e=>t[e.id()]=function(e){var t,i;const s={},r=e.model().mainSeries(),n=r.properties().childs(),o=r.symbolInfo();s.resolution=n.interval.value(),s.symbol_type=null!==o&&o.type||"",s.exchange=null!==o&&o.exchange||"",s.listed_exchange=null!==o&&o.listed_exchange||"";const a=null!==(t=null==o?void 0:o.legs)&&void 0!==t?t:[];if(null!==o&&r.isSpread()){const e=a[0];let t=o.base_name[0];t=t.split(":")[1],s.symbol=e,s.short_name=t,s.expression=o.full_name}else s.symbol=null!==o&&o.ticker||n.symbol.value(),s.short_name=n.shortName.value();const l=null!==(i=null==o?void 0:o.base_name)&&void 0!==i?i:[];return s.legs=a.map((e,t)=>({symbol:e,pro_symbol:l[t]})),s}(e)),t}function et(e,t){0}function tt(e,t){return T(t,{snapshotUrl:e}).then(e=>((0,x.emit)("onScreenshotReady",e),e))}function it(e,t){const i={snapshotUrl:e};const s=(0,I.isOnMobileAppPage)("any");return(s?T:P)(t,i).then(e=>((0,x.emit)("onScreenshotReady",e),s||(0,x.emit)("onServerScreenshotCopiedToClipboard"),e))}function st(e){return function(e){return C().then(t=>t.downloadClientScreenshot(e))}(e)}function rt(e){return function(e){return C().then(t=>t.copyToClipboardClientScreenshot(e))}(e).then(()=>{(0,x.emit)("onClientScreenshotCopiedToClipboard")})}function nt(e,t,i,s){const r=Math.max(1,window.devicePixelRatio||1),n=e.getAll();const o=e.maximizedChartWidget();if(s&&s.onlyActiveChart||o)return{layout:"s",hidpiRatio:r,theme:(0,M.getCurrentTheme)().name,charts:[e.activeChartWidget.value().images(s)],publishedBy:void 0};const a=[],l=L.layouts[e.layout.value()].count,c={showCollapsedStudies:(s=s||{}).showCollapsedStudies,status:s.status};for(let e=0;e{const t=this._state.currentLayoutResizeAction.value();t&&this._applyMouseMove(t.delta,e)},this._state=e,this._splitterElement=t,this._splitter=i,(0,Le.shiftPressed)().subscribe(this._onShiftPressed)}destroy(){(0,Le.shiftPressed)().unsubscribe(this._onShiftPressed)}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}mouseEnterEvent(e){this._highlightSplitters(e.shiftKey)}mouseLeaveEvent(e){const t=lt(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(t)).forEach(e=>e.classList.remove(Be.hovered))}mouseDoubleClickEvent(e){const t=(0,xe.layoutInitialSizingState)(this._state.layoutTemplate.value().expression);this._state.undoHistory.beginUndoMacro(He),this._state.undoHistory.pushUndoCommand(new u(this._state.sizingState.spawn(),this._state.sizingState.value(),t,He));const i=this._state.layoutTemplate.value().layoutType;this._state.undoHistory.pushUndoCommand(new d(e=>e?this._state.allLayoutSizesState.set(i,e):this._state.allLayoutSizesState.delete(i),this._state.allLayoutSizesState.get(this._state.layoutTemplate.value().layoutType),t,He)),this._state.undoHistory.endUndoMacro()}_highlightSplitters(e){const t=lt(this._splitter.className);Array.from(this._state.parent.getElementsByClassName(t)).forEach(e=>e.classList.remove(Be.hovered));(e?Array.from(this._state.parent.getElementsByClassName(t)):[this._splitterElement]).forEach(e=>e.classList.add(Be.hovered))}_mouseDownOrTouchStartEvent(e){const t=new r.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop),i=(0,Ie.deepCopy)(this._state.sizingState.value());this._state.currentLayoutResizeAction.setValue({point:t,splitter:this._splitter,initialState:i,alignedState:this._state.layoutTemplate.value().syncSublayoutsBySplitter(this._splitter,(0,Ie.deepCopy)(i)),shiftState:e.shiftKey,delta:0}),this._splitterElement.classList.add(Be["i-active"]),this._highlightSplitters(e.shiftKey)}_pressedMouseOrTouchMoveEvent(e){const t=this._state.currentLayoutResizeAction.value();if(!t)return;t.shiftState!==e.shiftKey&&(this._highlightSplitters(e.shiftKey),t.shiftState=e.shiftKey);const i=new r.Point(e.localX+this._splitterElement.offsetLeft,e.localY+this._splitterElement.offsetTop);t.delta="v"===t.splitter.orientation?i.y-t.point.y:i.x-t.point.x,this._applyMouseMove(t.delta,e.shiftKey)}_mouseUpOrTouchEndEvent(e){const t=this._state.currentLayoutResizeAction.value() +;if(t&&(this._splitterElement.classList.remove(Be["i-active"]),this._state.currentLayoutResizeAction.setValue(null),t.currentState)){this._state.undoHistory.beginUndoMacro(We),this._state.undoHistory.pushUndoCommand(new u(this._state.sizingState.spawn(),t.initialState,t.currentState,We));const e=this._state.layoutTemplate.value().layoutType;this._state.undoHistory.pushUndoCommand(new d(t=>t?this._state.allLayoutSizesState.set(e,t):this._state.allLayoutSizesState.delete(e),this._state.allLayoutSizesState.get(this._state.layoutTemplate.value().layoutType),this._state.sizingState.value(),He)),this._state.undoHistory.endUndoMacro(),this._state.layoutSizesChanged.setValue(!0)}}_applyMouseMove(e,t){var i;const r=(0,s.ensureNotNull)(this._state.currentLayoutResizeAction.value()),n=t?r.alignedState:r.initialState,o=null!==(i=this._state.options.padding)&&void 0!==i?i:2,a=at(this._state);r.currentState=this._state.layoutTemplate.value().resizeApplier(a,o,e,r.splitter,(0,Ie.deepCopy)(n),t),this._state.sizingState.setValue(r.currentState)}}function ht(e,t,i,s,r){var n,o;const a=null!==(n=e.options.padding)&&void 0!==n?n:2,l=null!==(o=e.options.border)&&void 0!==o?o:0;r=null!=r?r:e.layoutTemplate.value();const c=at(e),h=r.sizer(c,i,s,a+l,Re?e.sizingState.value():void 0);h.width=Math.max(Math.round(h.width),0),h.height=Math.max(Math.round(h.height),0),h.top=Math.round(h.top),h.left=Math.round(h.left),t.metrics=h;const d=t.container.value();if(d){d.style.width=h.width+"px",d.style.height=h.height+"px",d.style.top=h.top+"px",d.style.left=h.left+"px";const e=1===s;0;const t=Math.round(c.width),i=0===h.top&&0===h.left,r=0===h.top&&h.left+h.width===t,n=0===h.top&&h.width===t;d.classList.toggle("top-left-chart",!e&&!n&&i),d.classList.toggle("top-right-chart",!e&&!n&&r),d.classList.toggle("top-full-width-chart",e||n)}t.width.setValue(h.width),t.height.setValue(h.height)}function dt(e){var t,i,s;let r;const n=e.layoutTemplate.value(),o=e.maximizedChartDef.value();if(r=o?[o]:e.chartWidgetsDefs.slice(0,n.count).filter(e=>!e.hiddenInLayout.value()),r.forEach((t,i)=>ht(e,t,i,r.length)),Re&&!e.maximizedChartDef.value()){const r=at(e),o=null!==(t=e.options.padding)&&void 0!==t?t:2,a=null!==(i=e.options.border)&&void 0!==i?i:0,l=n.splitters(r,o+a,e.sizingState.value()),c=null!==(s=e.splitters.value())&&void 0!==s?s:[];c.forEach((e,t)=>{t>=l.length&&(e.splitterElement.remove(),e.mouseHandler.destroy(),e.mouseListener.destroy())});const h=l.map((t,i)=>{const s=i({def:t,metrics:e.layoutTemplate.value().sizer({top:0,left:0,width:256,height:256},i,s.length,0)})).sort((e,t)=>e.metrics.top-t.metrics.top||e.metrics.left-t.metrics.left).map(e=>e.def);if(s.length<2)return null;let r=s.indexOf(t);return-1===r?null:(r=(r+(i?s.length-1:1))%s.length,s[r])}function pt(e,t){return e.chartWidgetsDefs.some(e=>{var i;return(null===(i=e.chartWidget)||void 0===i?void 0:i.id())===t})}function _t(e){let t=1;for(;e(""+t);)t++;return""+t}function mt(e){const t=e.activeChartWidget.value();if(t){const i=t.state();return i.chartId=_t(t=>pt(e,t)),i.shouldBeSavedEvenIfHidden=!1,{content:i}}}function gt(e,t,i){const r=e.toastsFactory;let n={chartWidgetCollection:t,isActive:0===e.chartWidgetsDefs.length,barsMarksContainersFactory:t=>function(e,t,i){const s=[];{const t=new Ce(e);s.push(t);const i=new fe(e);s.push(i)}return s}(t,0,e.options),undoHistory:e.undoHistory,readOnly:e.readOnly,initialLoading:e.initialLoading,getToasts:r?()=>r.getChartToasts():void 0,...null!=i?i:{}};void 0!==e.customLegendWidgetsFactoriesMap&&(n.customLegendWidgetFactories=new Map(e.customLegendWidgetsFactoriesMap));const o=document.createElement("div");o.classList.add("chart-container"),o.style.position="absolute",o.style.overflow="hidden",e.parent.appendChild(o),a.isEdge&&(o.style.touchAction="none",o.style.msTouchAction="none"),n.className&&o.classList.add(n.className);const l={alive:new Ne(!0),container:new Ne(o),width:new Ne,height:new Ne,collapsed:new Ne(!1),hiddenInLayout:new Ne(!1),visible:new Ne,rdState:new Pe.ResizerDetacherState,requestFullscreen:()=>{e.globalDetachable.value()&&(e.setMaximized(l),e.activeChartWidget.setValue((0,s.ensureNotNull)(l.chartWidget)))},exitFullscreen:()=>{e.activeChartWidget.value()===l.chartWidget&&e.setMaximized(null)},detachable:e.globalDetachable,fullscreenable:e.globalDetachable,fullscreen:new Ne,chartWidget:null};l.rdState.pushOwner(l),e.chartWidgetsDefs.push(l);const c=()=>{l.visible.setValue(!l.hiddenInLayout.value()&&e.options.resizerBridge.visible.value())};l.hiddenInLayout.subscribe(()=>{(0,s.ensureNotNull)(l.chartWidget).setVisible(!l.hiddenInLayout.value()),c()}),l.collapsed.subscribe(()=>(0,s.ensureNotNull)(l.chartWidget).setCollapsed(l.collapsed.value())),e.options.resizerBridge.visible.subscribe(c),c(),function(e,t){let i=0,s=0;const r=t.layoutTemplate.value();for(let n=0;npt(e,t)),d=new Te.ChartWidget(n,h,t.metaInfo.uid.value());return l.chartWidget=d,e.saveChartService&&l.chartWidget.setSaveChartService(e.saveChartService),n.containsData?d.finishInitWithoutConnect():d.connect(),d.withModel(null,()=>{const t=d.model().model() +;e.customSources.forEach((e,i)=>{t.addCustomSource(i,e.factory,e.layer)})}),e.updateWatchedValue(),e.updateActivityView(),e.chartWidgetCreatedDelegate.fire(d),l}function ft(e,t,i,s){const r={...e.widgetOptions,...e.savedChartWidgetOptions.shift()||mt(e),...0===i||e.symbolLock.value()?void 0:{defSymbol:null}},n=gt(e,t,r),o=n.chartWidget;return o.modelCreated().subscribe(null,()=>{s?s():e.checkAllPendingModelsAlreadyCreated(),e.dateRangeLock.value()&&e.subscribeToCompletedEventForDateRangeSync(o,!0)},!0),n}function vt(e){e.hiddenInLayout.setValue(!0);const t=e.container.value();t.parentNode&&t.parentNode.removeChild(t),e.fullscreen.setValue(!1)}function St(e,t){e.chartWidgetsDefs.forEach(i=>{const r=(0,s.ensureNotNull)(i.chartWidget);r.onZoom().unsubscribeAll(t),r.onScroll().unsubscribeAll(t),r.withModel(null,()=>{const t=r.lineToolsSynchronizer();null!==t&&(t.hasChanges().unsubscribe(e.recalcHasChanges),e.recalcHasChanges())})})}async function yt(e,t,i){var r,n;const o=e.chartWidgetsDefs.map(e=>{var t,i,s;return null!==(s=null===(i=null===(t=e.chartWidget)||void 0===t?void 0:t.lineToolsSynchronizer())||void 0===i?void 0:i.flushPendingSavings())&&void 0!==s?s:null}).filter(X.notNull);o.length&&await Promise.all(o),(t=e.checkProFeature(t))in L.layouts||(t="s"),St(e,i);const a=e.layoutType,l=L.layouts[t].count;(0,x.emit)("layout_about_to_be_changed",t),e.layoutWV.setValue(t),e.setLayoutType(t),(null!==(r=e.splitters.value())&&void 0!==r?r:[]).forEach((e,t)=>{e.splitterElement.remove(),e.mouseHandler.destroy()}),e.splitters.setValue([]);const c=L.layouts[t];e.layoutTemplate.setValue(c);const h=null!==(n=e.allLayoutSizesState.get(c.layoutType))&&void 0!==n?n:(0,xe.layoutInitialSizingState)(c.expression);e.allLayoutSizesState.set(c.layoutType,h),e.sizingState.setValue(h);const d=e.maximizedChartDef.value();a!==t&&e.maximizedChartDef.value()&&e.maximizedChartDef.setValue(null),d&&e.activeChartWidget.setValue((0,s.ensureNotNull)(d.chartWidget));for(let t=0;t=l;if(r=e.maximizedChartDef.value()?e.maximizedChartDef.value()===n:t1),n.fullscreen.setValue(e.maximizedChartDef.value()===n),n.collapsed.setValue(o)}else n&&(vt(n),n.collapsed.setValue(o))}e.sizingState.setValue(h),dt(e),e.updateWatchedValue(),function(e){const t=e.layoutTemplate.value().count;e.inlineChartsCount.setValue(t),e.globalDetachable.setValue(t>1)}(e),e.checkAllPendingModelsAlreadyCreated(),function(e,t){e.chartWidgetsDefs.forEach(i=>{const r=(0,s.ensureNotNull)(i.chartWidget);r.onZoom().subscribe(t,t=>e.onZoom.fire(t)),r.onScroll().subscribe(t,()=>e.onScroll.fire()),r.withModel(null,()=>{ +const t=r.lineToolsSynchronizer();null!==t&&(t.hasChanges().subscribe(e.recalcHasChanges),e.recalcHasChanges())})})}(e,i),e.inlineChartsCount.value()<1&&l>0&&e.chartWidgetsDefs[l-1].rdState.bridge().attach()}function bt(e,t,i,s,r){if(!s&&!e.crosshairLockRaw)return!1;const n=e.actualLayoutCount();return e.chartWidgetsDefs.slice(0,n).filter(e=>e.rdState.bridge().visible.value()).map(e=>e.chartWidget).filter(e=>e.id()!==i&&e.hasModel()).forEach(e=>e.model().model().setExternalPosition(t,r)),!0}function wt(e,t,i,s,r){if(bt(e,t,i,s,r)){const i=e.crossHairSyncBroadcast;if(i){const e={type:"crosshair",payload:{point:t,envState:r,sourceUniqueId:i.uniqueId}};i.channel.postMessage(e)}}}function Ct(e){const t=new BroadcastChannel("ChartWidgetsCollection");return t.onmessage=t=>{const i=t.data,s=e();if(s.crossHairSyncBroadcast)switch(i.type){case"crosshair":s.crossHairSyncBroadcast.uniqueId!==i.payload.sourceUniqueId&&bt(s,i.payload.point,null,!1,i.payload.envState)}},{channel:t,uniqueId:(0,q.randomHashN)(6)}}function Pt(e){var t;null===(t=e.crossHairSyncBroadcast)||void 0===t||t.channel.close()}function Tt(e,t,i){if(!e.trackTimeLock.value()||e.dateRangeLock.value())return;const s=e.layoutTemplate.value().count;e.undoHistory.beginUndoMacro(Fe),e.chartWidgetsDefs.slice(0,s).filter(e=>e.chartWidget.hasModel()&&e.chartWidget.model().model()!==i).forEach(e=>{const i=e.chartWidget.model().model(),s=i.mainSeries().syncModel();s&&i.syncTimeWithModel(s.syncSourceTarget(),t)}),e.undoHistory.endUndoMacro()}function xt(e){return Promise.all(e.map(e=>{const t=e.model().mainSeries();return t.symbolResolvingActive().value()?l(t.dataEvents().symbolResolved()).promise:t.symbolInfo()}))}function It(e){return e.chartWidgetsDefs.every(e=>e.chartWidget.hasModel())?Promise.resolve(e.chartWidgetsDefs.map(e=>e.chartWidget)):Promise.all(e.chartWidgetsDefs.map(e=>e.chartWidget.hasModel()||l(e.chartWidget.modelCreated()).promise)).then(()=>It(e))}function Mt(e,t){var i;if((0,R.enabled)("charting_library_base"))return t;if("s"===t||e.widgetOptions.containsData||e.readOnly||isProductFeatureEnabled(ProductFeatures.MULTIPLE_CHARTS)&&(0,s.ensure)(null===(i=getProductFeatureConfig(ProductFeatures.MULTIPLE_CHARTS))||void 0===i?void 0:i.limit)>=L.layouts[t].count)return t;return"s"}async function Lt(e,t,i){if(i=Mt(e,i),e.layoutWV.value()===i)return!1;const s=e.chartWidgetsDefs.map(e=>{var t,i,s;return null!==(s=null===(i=null===(t=e.chartWidget)||void 0===t?void 0:t.lineToolsSynchronizer())||void 0===i?void 0:i.flushPendingSavings())&&void 0!==s?s:null}).filter(X.notNull);return s.length&&await Promise.all(s),e.undoHistory.pushUndoCommand(new Ee(t,i)),!0}async function At(e,t,i){const{theme:s,onlyActiveChart:r,restoreNonThemeDefaults:n,themeName:o,standardTheme:a,syncState:l=!0,noUndo:c}=i,h=(0,M.getCurrentTheme)().name;let d;r?d=[e.activeChartWidget.value()]:(await Promise.all(e.savedChartWidgetOptions.map((i,s)=>new Promise(i=>{vt(ft(e,t,s,i))}))),d=e.chartWidgetsDefs.map(e=>e.chartWidget)),c?(a&&new Ve(h,o,l).redo(),d.forEach(e=>{ +e.model().model().restoreTheme(s,n,c)})):(e.undoHistory.beginUndoMacro(ze),a&&e.undoHistory.pushUndoCommand(new Ve(h,o,l)),d.forEach(e=>{e.model().model().restoreTheme(s,n)}),e.undoHistory.endUndoMacro())}},22799:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setChartFontFamily:()=>s,CHART_FONT_FAMILY:()=>r});function s(e){r=e}let r="-apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif"},35548:(e,t,i)=>{"use strict";var s=i(2872);i(70150);var r=i(28353).t,n=i(24980).TranslatedString,o=i(88537),a=o.assert,l=o.ensureDefined,c=i(56972).Series,h=i(67337),d=i(62138).ActionBinder,u=i(56840).setValue,p=i(73591).TabNames,_=i(94420).showGoToDateDialog,m=i(68335),g=i(25760),f=i(15219).showConfirmInputsDialog,v=i(66101).Study,S=i(25270).StudyStub,y=i(81851).isStudy,b=i(89857).LineDataSource,w=i(14291),C=w.isLineTool,P=w.isStudyLineTool,T=i(28296).Action,x=i(62060).ACTION_ID,I=i(85733),M=i(29823).Interval,L=i(37667),A=L.getDefaultStyle,E=L.hasVolume,k=i(88679).showSymbolInfoDialog,D=i(23653).InvalidationMask,V=i(82992).linking,B=i(8636).showChangeIntervalDialogAsync,N=i(92930).showDialog,R=i(39277),O=R.availableTimezones,F=R.timezoneIsAvailable,W=i(90995).toggleHideMode,H=i(817).ChartSession,z=i(67072),U=i(4185).Spinner,j=i(51768).trackEvent,G=i(71413).lastMouseOrTouchEventInfo,q=i(59803),Y=i(98125).getLogger("ChartWidget",{color:"#606"}),K=i(82724).appendEllipsis,$=i(43181).StudyMetaInfoRepository,X=i(42060).isMultipleLayout,Z=i(19334).addPerfMark,J=i(81465).combineProperty,Q=i(79500).ChartWidgetBase,ee=i(49483).CheckMobile.any(),te=i(73383).TIMEFRAMETYPE,ie=i(81836).createDeferredPromise,se=i(76166).addPlusButtonProperty;const re=h.enabled("show_average_close_price_line_and_label");var ne=new n("change timezone",r("change timezone")),oe=new n("scale price chart only",r("scale price chart only")),ae=new n("stay in drawing mode",r("stay in drawing mode")),le=(new n("hide all drawing tools",r("hide all drawing tools")),new n("hide marks on bars",r("hide marks on bars"))),ce=new n("change symbol last value visibility",r("change symbol last value visibility")),he=(new n("change symbol previous close value visibility",r("change symbol previous close value visibility")),new n("change previous close price line visibility",r("change previous close price line visibility")),new n("change symbol labels visibility",r("change symbol labels visibility"))),de=new n("change indicators name labels visibility",r("change indicators name labels visibility")),ue=new n("change indicators value labels visibility",r("change indicators value labels visibility")),pe=(new n("change bid and ask labels visibility",r("change bid and ask labels visibility")),new n("change bid and ask lines visibility",r("change bid and ask lines visibility")),new n("change pre/post market price label visibility",r("change pre/post market price label visibility")),new n("change pre/post market price line visibility",r("change pre/post market price line visibility")), +new n("change high and low price lines visibility",r("change high and low price lines visibility"))),_e=new n("change high and low price labels visibility",r("change high and low price labels visibility")),me=new n("change average close price line visibility",r("change average close price line visibility")),ge=new n("change average close price label visibility",r("change average close price label visibility")),fe=new n("change countdown to bar close visibility",r("change countdown to bar close visibility")),ve=new n("change plus button visibility",r("change plus button visibility")),Se=new n("change price line visibility",r("change price line visibility")),ye=new n("unlock {title}",r("unlock {title}")),be=new n("lock {title}",r("lock {title}")),we=new n("change session breaks visibility",r("change session breaks visibility")),Ce=r("On the left"),Pe=r("On the right"),Te=r("Move scale to left"),xe=r("Move scale to right");e.exports.ChartWidget=class extends Q{constructor(e,t,i){super(e,t,i),this._options.timeScaleWidget&&(this._options.timeScaleWidget.pressedMouseMoveScale=this._options.handleScale.axisPressedMouseMove.time);var r=this;this._startSpinner(this._options.container.value());var n=this._options.content,o=this._options.readOnly;this._removeMaximizeHotkey=null,r._hotkeys=g.createGroup({desc:"Chart actions",isDisabled:function(){return!r._isActive}});var a=this._options.containsData,l=this._options.onWidget,c=this._options.onCmeWidget;c&&Y.logWarn("[ChartWidget] 'onCmeWidget' option is depricated");var h=this._options.widgetCustomer,d=this._options.timezone,u=this._options.hideSymbolSearch,p=this._options.defSymbol,_=M.isValid(this._options.defInterval)?this._options.defInterval:void 0,m=parseInt(this._options.defStyle),f=L.isValidStyle(m)?m:void 0,v=this._options.defSessionId,S=void 0!==this._options.defTimeframe?"string"==typeof this._options.defTimeframe?{value:this._options.defTimeframe.toUpperCase(),type:te.PeriodBack}:{...this._options.defTimeframe,type:te.TimeRange}:void 0;this._content=n,this._initialLoading=this._options.initialLoading,this._readOnly=o,this._containsData=a,this._defSymbol=p,this._defInterval=_,this._defTimeframe=S,this._defStyle=f,this._onWidget=!!l,this._compareSymbols=this._options.compareSymbols,this._onWidget&&(c?this._widgetCustomer="cme":h&&(this._widgetCustomer=h)),this._hideSymbolSearch=u,this._frameTime=30,this._model=null,this._metaInfo={},this._drawRafId=0,this._compareDialog=this._chartWidgetCollection.getCompareDialogRenderer();var y=this._contentSeriesProperties();y&&(p=y.symbol,_=y.interval),void 0===this._options.useUserChartPreferences&&(this._options.useUserChartPreferences=!0);var b=this._options.useUserChartPreferences?q.defaults("chartproperties.mainSeriesProperties"):q.factoryDefaults("chartproperties.mainSeriesProperties");this._properties.mainSeriesProperties.merge(b),this._properties.mainSeriesProperties.hasChild("esdBreaksStyle")&&this._properties.mainSeriesProperties.removeProperty("esdBreaksStyle"),_=_||b.interval||"D", +L.isValidStyle(f)||(f=L.isValidStyle(b.style)?b.style:A(M.isRange(_))),this._properties.mainSeriesProperties.merge({visible:!0,symbol:p||DEFAULT_SYMBOL,shortName:"",timeframe:"",onWidget:this._onWidget,interval:_,currencyId:null,unitId:null,style:f,sessionId:v,lineStyle:{styleType:q.factoryDefaults("chartproperties.mainSeriesProperties.lineStyle.styleType")}}),this._containsData&&this._properties.mainSeriesProperties.merge({showCountdown:!1}),d&&F(d)&&this._properties.timezone.setValue(d),this._tagsChanged=new s,this._disconnected=new s,this._reconnectBailout=new s,this._connected=new s,this.chartWidgetInitialized=new s,this._chartSession=new H(ChartApiInstance),this._metaInfoRepository=new $(this._chartSession),this._timingsMeter=null,this._isActive=this._options.isActive,this._options.container.subscribe((function(e){r._setElement(e)}),{callWithLast:!0});var w=function(){r.resize()};this._options.width.subscribe(w),this._options.height.subscribe(w),this._options.visible.subscribe(this._updateTimingsMeterState.bind(this)),this._aboutToBeDestroyed=new s,this._actions=null,this._definitionsViewModel=null,this._backgroundTopColorSpawn=null,this._backgroundBottomColorSpawn=null,this._hintDefferedPromise=null,this._activeHint=null}isInitialized(){return Boolean(this._inited)}compareSymbols(){return this._compareSymbols}async _getChartPropertyDefinitionsViewModel(){if(null===this._definitionsViewModel){const{ChartPropertyDefinitionsViewModel:e}=await Promise.all([i.e(1369),i.e(7387),i.e(3596)]).then(i.bind(i,57695));if(this._isDestroyed)throw new Error("Chart widget already destroyed");await new Promise(e=>this.withModel(null,e)),null===this._definitionsViewModel&&(this._definitionsViewModel=new e(this.model(),this.properties(),this._options))}return this._definitionsViewModel}_initMaximizeHotkey(e){var t=this;function i(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&e.stopPropagation()}function s(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&(e.preventDefault(),e.stopPropagation(),t.toggleFullscreen())}return e.addEventListener("mousedown",i,!0),e.addEventListener("click",s,!0),function(){e.removeEventListener("mousedown",i,!0),e.removeEventListener("click",s,!0)}}toggleFullscreen(){var e=this.getResizerDetacher();e.fullscreenable.value()&&(e.fullscreen.value()?e.exitFullscreen():e.requestFullscreen())}_beginRequestActive(){var e=this._chartWidgetCollection.activeChartWidget.value()!==this;if(this._chartWidgetCollection.activeChartWidget.setValue(this),e){const e=G();e.isTouch&&!e.stylus&&this._isLineToolModeExceptBrush()&&this.updateCrossHairPositionIfNeeded(),this._justActivated=!0}}_endRequestActive(){var e=this;this._justActivated&&setTimeout((function(){e._justActivated=!1}),0)}_requestActive(){this._beginRequestActive(),this._endRequestActive()}justActivated(){return this._justActivated}setTimezone(e){e&&F(e)?this._properties.timezone.setValue(e):console.warn("Incorrect timezone: "+JSON.stringify(e))}getTimezone(){return this._properties.timezone.value()}refreshMarks(){ +this.model().barsMarksSources().forEach((function(e){e.refreshData()}))}clearMarks(){this.model().barsMarksSources().forEach((function(e){e.clearMarks()}))}metaInfoRepository(){return this._metaInfoRepository}_initBackgroundColor(){null===this._backgroundTopColorSpawn&&(this._backgroundTopColorSpawn=this._model.model().backgroundTopColor().spawn(),this._backgroundTopColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this))),null===this._backgroundBottomColorSpawn&&(this._backgroundBottomColorSpawn=this._model.model().backgroundColor().spawn(),this._backgroundBottomColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this)))}paneWidgets(){return this._paneWidgets}paneByCanvas(e){for(var t=0;t{null!==t&&e()})}));var s=new T({actionId:x.ChartScalesReset,label:r("Reset chart"),icon:i(27966),statName:"ResetChart",onExecute:this.GUIResetScales.bind(this),hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+82}),n=new T({actionId:x.ChartSeriesPriceScaleToggleInvertPriceScale,label:r("Invert scale"),statName:"Invert Scale",checkable:!0,onExecute:function(){t._model.invertPriceScale(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+73}),o=new T({actionId:x.ChartSeriesPriceScaleToggleAutoScale,label:r("Auto (fits data to screen)"),checkable:!0,onExecute:function(){var e=t._model.mainSeries().priceScale();t._model.togglePriceScaleAutoScaleMode(e),o.update({checked:e.isAutoScale()})}}),a=new T({actionId:x.ChartScalesToggleLockPriceToBarRatio,label:r("Lock price to bar ratio"),checkable:!0,statName:"ToggleLockScale",onExecute:function(){t._model.togglePriceScaleLockScaleMode(t._model.mainSeries().priceScale())}}),l=new T({actionId:x.ChartSeriesPriceScaleToggleRegular,label:r("Regular"),checkable:!0,statName:"ToggleRegularScale",onExecute:function(){var e=t._model.mainSeries().priceScale();t._model.setPriceScaleRegularScaleMode(e),l.update({checked:e.isRegular()})}}),c=new T({actionId:x.ChartSeriesPriceScaleTogglePercentage,label:r("Percent"),checkable:!0,statName:"TogglePercantage",onExecute:function(){t._model.togglePriceScalePercentageScaleMode(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+80}),f=new T({actionId:x.ChartSeriesPriceScaleToggleIndexedTo100,label:r("Indexed to 100"),checkable:!0,statName:"ToggleIndexedTo100",onExecute:function(){t._model.togglePriceScaleIndexedTo100ScaleMode(t._model.mainSeries().priceScale())} +}),v=new T({actionId:x.ChartSeriesPriceScaleToggleLogarithmic,label:r("Logarithmic"),statName:"ToggleLogScale",checkable:!0,onExecute:function(){t._model.togglePriceScaleLogScaleMode(t._model.mainSeries().priceScale())},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+76}),S=new T({actionId:x.ChartUndo,label:r("Undo"),onExecute:function(){j("GUI","Undo"),t._model.undoHistory().undo()},disabled:!0,hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+90}),y=new T({actionId:x.ChartRedo,label:r("Redo"),onExecute:function(){j("GUI","Redo"),t._model.undoHistory().redo()},disabled:!0,hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+89});t.withModel(null,(function(){t._model.undoHistory().undoStack().onChange().subscribe(t,t.updateUndoRedo),t._model.undoHistory().redoStack().onChange().subscribe(t,t.updateUndoRedo)}));var b=new T({actionId:x.ChartChangeTimeZone,label:r("Time zone"),statName:"TimeZone"}),w=new T({actionId:x.ChartDialogsShowChangeSymbol,label:K(r("Change Symbol")),statName:"ChangeSymbol",onExecute:function(){N({defaultValue:""})}});u("symboledit.dialog_last_entry","");var C={actionId:x.ChartDialogsShowChangeInterval,label:K(r("Change interval")),statName:"ChangeInterval",onExecute:function(){B({initVal:V.interval.value(),selectOnInit:!0})}};!h.enabled("show_interval_dialog_on_key_press")||this.readOnly()||this._hideSymbolSearch||(C.shortcutHint=",",C.hotkeyGroup=this._hotkeys,C.hotkeyHash=188);var P,M=new T(C);if(!TradingView.onWidget()){if(this._options.addToWatchlistEnabled){const e={hotkeyGroup:this._hotkeys};P=new WatchListAction(this,e)}0}var L=new T({actionId:x.ChartTimeScaleReset,label:r("Reset time scale"),icon:i(27966),statName:"ResetScale",onExecute:function(){t.model().resetTimeScale()},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Mod+g.Modifiers.Alt+81}),A=new T({actionId:x.ChartRemoveAllIndicators,label:r("Remove indicators"),statName:"RemoveAllIndicators",onExecute:this.removeAllStudies.bind(this)}),E=new T({actionId:x.ChartRemoveAllLineTools,label:r("Remove drawings"),statName:"RemoveAllDrawingTools",onExecute:this.removeAllDrawingTools.bind(this)}),R=new T({actionId:x.ChartRemoveAllIndicatorsAndLineTools,label:r("All indicators and drawing tools"),statName:"RemoveAllIndicatorsAndDrawingTools",onExecute:this.removeAllStudiesDrawingTools.bind(this)}),O=this.chartWidgetCollection(),F=new T({actionId:x.ChartApplyIndicatorsToAllCharts,label:r("Apply these indicators to entire layout"),statName:"ApplyIndicatorsToAllCharts",onExecute:function(){O.applyIndicatorsToAllCharts(t)}}),H={actionId:x.ChartDialogsShowInsertIndicators,label:K(r("Insert indicator")),statName:"InsertIndicator",onExecute:function(){t.showIndicators()}};this._options.indicatorsDialogShortcutEnabled&&(H.hotkeyGroup=this._hotkeys,H.hotkeyHash=191,this._hotkeys.add({handler:function(){this.showIndicators()}.bind(this),desc:"Show insert indicator dialog",hotkey:111}));var z,U=new T(H),G=new T({actionId:x.ChartDialogsShowCompareOrAddSymbol,label:K(r("Compare or Add Symbol")),statName:"CompareOrAddSymbol", +onExecute:this.toggleCompareOrAdd.bind(this)}),q=new T({actionId:x.ChartObjectTreeShow,label:K(r("Object Tree")),statName:"ObjectsTree",onExecute:this.showObjectsTreePanelOrDialog.bind(this)}),Y=new T({actionId:x.ChartDialogsShowGeneralSettings,label:K(r("Settings")),icon:i(44368),statName:"ChartProperties",onExecute:function(){t.showGeneralChartProperties()}}),$=new T({actionId:x.ChartDialogsShowGeneralSettingsSymbolTab,label:K(r("Settings")),icon:i(44368),statName:"MainSeriesProperties",onExecute:function(){t.showGeneralChartProperties(p.symbol)}}),X=new T({actionId:x.ChartSelectedObjectToggleLocked,label:r("Lock/unlock"),statName:"ToggleLockSelectedObject",onExecute:this.toggleLockSelectedObject.bind(this)}),Z=new T({actionId:x.ChartSelectedObjectHide,label:r("Hide"),icon:i(48111),statName:"HideSelectedObject",onExecute:this.hideSelectedObject.bind(this)});h.enabled("property_pages")&&(z=new T({actionId:x.ChartSelectedObjectShowSettingsDialog,label:K(r("Settings")),icon:i(44368),statName:"EditSelectedObject",onExecute:function(){t.showSelectedSourcesProperties()}})),this.withModel(null,(function(){var e=t.model().mainSeries(),i=e.properties();i.priceAxisProperties.subscribe(t,t._updateScalesActions),e.priceScaleAboutToBeChanged().subscribe(t,(function(){i.priceAxisProperties.unsubscribeAll(t)})),e.priceScaleChanged().subscribe(t,(function(){i.priceAxisProperties.subscribe(t,t._updateScalesActions),t._updateScalesActions()}))}));var Q=new T({actionId:x.ChartPriceScaleToggleAutoScaleSeriesOnly,label:r("Scale price chart only"),checkable:!0,statName:"ScalePriceChartOnly"});Q.binder=new d(Q,this._properties.scalesProperties.scaleSeriesOnly,this.model(),oe);var ee=this.model().model();this._properties.scalesProperties.scaleSeriesOnly.listeners().subscribe(null,(function(){ee.recalculateAllPanes(),ee.invalidate(D.full())}));var te=new T({actionId:x.ChartDrawingToolbarToggleVisibility,label:r("Drawings toolbar"),checkable:!0,statName:"ToggleDrawingToolbar"}),ie=this._options.isDrawingToolbarVisible;ie&&(ie.subscribe((function(e){te.update({checked:e})}),{callWithLast:!0}),te.update({onExecute:function(){ie.setValue(!ie.value())}}));var ne=new T({actionId:"",label:r("Stay in drawing mode"),checkable:!0,statName:"ToggleStayInDrawingMode"});ne.binder=new d(ne,I.properties().stayInDrawingMode,this.model(),ae),this._hotkeys.add({handler:function(){W()},desc:"Hide all drawing tools",hotkey:g.Modifiers.Mod+g.Modifiers.Alt+72});var ye=new T({actionId:x.ChartMarksToggleVisibility,label:r("Hide marks on bars"),checkable:!0,statName:"ToggleHideMarksOnBars"});ye.binder=new d(ye,I.hideMarksOnBars(),this.model(),le,(function(){I.hideMarksOnBars().setValue(this.value())}));const be=this.properties().scalesProperties;var we=new T({actionId:x.ChartPriceScaleLabelsToggleSeriesLastValueVisibility,label:r("Symbol last price label"),checkable:!0,checked:!1,statName:"ToggleSymbolLastValue"});we.binder=new d(we,be.showSeriesLastValue,this.model(),ce);var Ie=new T({actionId:x.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility, +label:r("Symbol name label"),checkable:!0,checked:!1,statName:"ToggleSymbolLabels"});Ie.binding=new d(Ie,be.showSymbolLabels,this.model(),he);const Me=J((e,t)=>e||!1,be.showStudyLastValue,be.showFundamentalLastValue);var Le=new T({actionId:x.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility,label:r("Indicators value labels"),checkable:!0,checked:!1,statName:"ToggleStudiesAndFundamentalsPriceLabels"});Le.binder=new d(Le,Me,this.model(),null,()=>{const e=!Me.value();this.model().beginUndoMacro(ue),this.model().setProperty(be.showStudyLastValue,e,null),this.model().endUndoMacro()});const Ae=J((e,t)=>e||!1,be.showStudyPlotLabels,be.showFundamentalNameLabel);var Ee=new T({actionId:x.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility,label:r("Indicators name labels"),checkable:!0,checked:!1,statName:"ToggleStudiesAndFundamentalsNameLabels"});Ee.binding=new d(Ee,Ae,this.model(),null,()=>{const e=!Ae.value();this.model().beginUndoMacro(de),this.model().setProperty(be.showStudyPlotLabels,e,null),this.model().endUndoMacro()});var ke=this.model().mainSeries().properties().highLowAvgPrice,De=new T({actionId:x.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility,label:r("High and low price labels"),checkable:!0,checked:!1,statName:"ToggleHighLowPriceLabels"});De.binding=new d(De,ke.highLowPriceLabelsVisible,this.model(),_e);var Ve=new T({actionId:x.ChartLinesToggleHighLowLinesVisibility,label:r("High and low price lines"),checkable:!0,checked:!1,statName:"ToggleHighLowPriceLine"});if(Ve.binding=new d(Ve,ke.highLowPriceLinesVisible,this.model(),pe),re){var Be=new T({actionId:x.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility,label:r("Average close price label"),checkable:!0,checked:!1,statName:"ToggleAverageClosePriceLabel"});Be.binding=new d(Be,ke.averageClosePriceLabelVisible,this.model(),ge);var Ne=new T({actionId:x.ChartLinesToggleAverageLineVisibility,label:r("Average close price line"),checkable:!0,checked:!1,statName:"ToggleAverageClosePriceLine"});Ne.binding=new d(Ne,ke.averageClosePriceLineVisible,this.model(),me)}var Re=new T({actionId:x.ChartPriceScaleToggleCountdownToBarCloseVisibility,label:r("Countdown to bar close"),checkable:!0,checked:!1,statName:"ToggleCountdown"});Re.binder=new d(Re,this.model().mainSeries().properties().showCountdown,this.model(),fe);var Oe=new T({actionId:x.ChartPriceScaleToggleAddOrderPlusButtonVisibility,label:r("Plus button"),checkable:!0,checked:se.value(),statName:"ToggleAddOrderPlusButton"});Oe.binder=new d(Oe,se,this.model(),ve);var Fe=null;this._options.goToDateEnabled&&(Fe=new T({actionId:x.ChartDialogsShowGoToDate,label:K(r("Go to date")),statName:"GoToDate",onExecute:function(){var e=t._chartWidgetCollection.activeChartWidget.value();_(e)},hotkeyGroup:this._hotkeys,hotkeyHash:g.Modifiers.Alt+71}));var We=new T({actionId:x.ChartDialogsShowSymbolInfo,label:K(r("Symbol info")),icon:i(69061),checkable:!1,statName:"SymbolInfo",onExecute:function(){ +var e=t.model().mainSeries().symbol(),i=t.model().mainSeries().symbolInfo(),s=t.model().model().availableUnits(),r=t.model().model().unitConversionEnabled();k(e,{symbolInfo:i,showUnit:r,unitDescription:e=>s.description(e)})}}),He=new T({actionId:x.ChartPriceScaleMergeAllScalesToLeft,label:Ce,statName:"MergeAllScalesToLeft",onExecute:function(){t.model().mergeAllScales("left")}}),ze=new T({actionId:x.ChartPriceScaleMergeAllScalesToRight,label:Pe,statName:"MergeAllScalesToRight",onExecute:function(){t.model().mergeAllScales("right")}}),Ue=new T({actionId:x.ChartPriceScaleMoveToLeft,label:Te,statName:"MoveScaleToLeft",onExecute:function(){t.model().mergeAllScales("left")}}),je=new T({actionId:x.ChartPriceScaleMoveToRight,label:xe,statName:"MoveScaleToRight",onExecute:function(){t.model().mergeAllScales("right")}});var Ge=h.enabled("show_object_tree");if(this._actions={chartProperties:Y,mainSeriesPropertiesAction:$,timeScaleReset:L,chartReset:s,invertSeriesScale:n,logSeriesScale:v,autoSeriesScale:o,lockSeriesScale:a,regularSeriesScale:l,percentSeriesScale:c,indexedTo100SeriesScale:f,compareOrAdd:G,paneObjectTree:Ge?q:void 0,insertIndicator:U,symbolSearch:w,showSymbolInfoDialog:We,changeInterval:M,seriesHide:Z,studyHide:Z,lineToggleLock:X,lineHide:Z,scaleSeriesOnly:Q,drawingToolbarAction:te,stayInDrawingModeAction:ne,hideAllMarks:ye,applyTimeZone:b,showCountdown:Re,addPlusButton:Oe,showSeriesLastValue:we,showHighLowPriceLabels:De,showHighLowPriceLines:Ve,showAverageClosePriceLabel:Be,showAverageClosePriceLine:Ne,showSymbolLabelsAction:Ie,showStudyLastValue:Le,showStudyPlotNamesAction:Ee,undo:S,redo:y,mergeLeftScalesAction:He,mergeRightScalesAction:ze,moveScaleToLeft:Ue,moveScaleToRight:je,moveChartAction:void 0},e&&(this._actions.scalesProperties=e),P&&(this._actions.addToWatchlist=P),h.enabled("show_source_code")&&(this._actions.viewSourceCode=new TVAction({label:K(r("Source code")),statName:"OpenSelectedObjectSource",onExecute:this.openSelectedObjectSource.bind(this)})),!TradingView.onWidget()&&h.enabled("text_notes")&&(this._actions.addToTextNotes=void 0),null!==Fe&&(this._actions.gotoDate=Fe),this.createSessionBreaksActions(),!this.readOnly()){var qe=new T({actionId:x.ChartSelectedObjectRemove,label:r("Remove"),icon:i(78679),statName:"RemoveSelectedObject",onExecute:function(){var e=this._chartWidgetCollection.activeChartWidget.value();e||(e=this),e.removeSelectedSources()}.bind(this),hotkeyGroup:this._hotkeys,hotkeyHash:m.isMacKeyboard?8:46});this._hotkeys.add({handler:function(){this.removeSelectedSources()}.bind(this),desc:"Remove selected source",hotkey:m.isMacKeyboard?46:8}),this._actions.paneRemoveAllStudies=A,this._actions.paneRemoveAllDrawingTools=E,this._actions.paneRemoveAllStudiesDrawingTools=R,this._actions.applyStudiesToAllCharts=F,this._actions.studyRemove=qe,this._actions.lineRemove=qe,h.enabled("property_pages")&&(this._actions.format=z)}this._actions.showPriceLine=new T({actionId:x.ChartLinesToggleSeriesPriceLineVisibility,label:r("Price line"),checkable:!0,statName:"TogglePriceLine"}), +this._actions.showPriceLine.binding=new d(this._actions.showPriceLine,this.model().mainSeries().properties().showPriceLine,this.model(),Se),this.readOnly()||(this._hotkeys.add({desc:"Draw Horizontal Line here",hotkey:g.Modifiers.Alt+72,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolHorzLine")}}),this._hotkeys.add({desc:"Draw Horizontal Ray here",hotkey:g.Modifiers.Alt+74,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolHorzRay")}}),this._hotkeys.add({desc:"Draw Vertical Line here",hotkey:g.Modifiers.Alt+86,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolVertLine")}}),this._hotkeys.add({desc:"Draw Cross Line here",hotkey:g.Modifiers.Alt+67,handler:function(){t.activePaneWidget&&t.activePaneWidget.drawRightThere("LineToolCrossLine")}}),this._hotkeys.add({desc:"Draw Trend Line",hotkey:g.Modifiers.Alt+84,handler:function(){t.activePaneWidget&&I.tool.setValue("LineToolTrendLine")}}),this._hotkeys.add({desc:"Draw Fib Retracement",hotkey:g.Modifiers.Alt+70,handler:function(){t.activePaneWidget&&I.tool.setValue("LineToolFibRetracement")}})),this._updateScalesActions()}options(){return this._options}executeActionById(e){if("takeScreenshot"===e)return console.warn('Action "takeScreenshot" is deprecated. Use method "takeScreenshot" instead'),void this._chartWidgetCollection.takeScreenshot();e in this._actions?this._actions[e]instanceof T&&this._actions[e].execute():console.warn("Unknown action id: "+e)}getCheckableActionState(e){if(e in this._actions){var t=this._actions[e];if(t instanceof T&&t.isCheckable())return t.isChecked();console.warn("Action "+e+" has no state")}else console.warn("Unknown action id: "+e);return null}_updateScalesActions(){if(null!==this._actions){var e=this.model().mainSeries(),t=e.priceScale(),i=e.properties(),s=t.isLockScale(),r=i.style.value()===c.STYLE_PNF;this._actions.percentSeriesScale.update({disabled:s||r,checked:t.isPercentage()}),this._actions.logSeriesScale.update({disabled:s||r,checked:t.isLog()}),this._actions.regularSeriesScale.update({disabled:s||r,checked:t.isRegular()}),this._actions.indexedTo100SeriesScale.update({disabled:s||r,checked:t.isIndexedTo100()}),this._actions.invertSeriesScale.update({checked:t.isInverted()}),this._actions.lockSeriesScale.update({checked:t.isLockScale()}),this._actions.autoSeriesScale.update({checked:t.isAutoScale(),disabled:t.properties().autoScaleDisabled.value()})}}removeAllStudies(){this._model.removeAllStudies()}removeAllDrawingTools(){this._model.removeAllDrawingTools()}removeAllStudiesDrawingTools(){this._model.removeAllStudiesAndDrawingTools()}defaultSymbol(){return this._defSymbol}connect(){this._handler=function(e){this._onData(e)}.bind(this),this._boundOnChartSessionIsConnectedChanged=this._onChartSessionIsConnectedChanged.bind(this),this._chartSession.isConnected().subscribe(this._boundOnChartSessionIsConnectedChanged),this._chartSession.criticalError().subscribe(this,this._onChartSessionCriticalError),this._chartSession.connect(this._handler)} +finishInitWithoutConnect(){this._chartSession.disable(),this._init(),this.chartWidgetInitialized.fire()}reconnect(){this._chartSession.disconnect(),this._chartSession.connect()}widget(){return this._mainDiv}_onBackgroundColorChanged(){for(var e=0;e0;)for(var t=this._content.panes[e].sources,i=t.length;i-- >0;)if("MainSeries"===t[i].type)return t[i].state}updateUndoRedo(){this._model&&(this.actions().undo.update({disabled:this._model.undoHistory().undoStack().isEmpty()}),this.actions().redo.update({disabled:this._model.undoHistory().redoStack().isEmpty()}))}createSessionBreaksActions(){var e=new T({actionId:x.ChartSessionBreaksToggleVisibility,label:r("Session breaks"),checkable:!0,statName:"ToggleSessionBreaks"});e.binder=new d(e,this._model.chartModel().sessions().properties().graphics.vertlines.sessBreaks.visible,this.model(),we),this._actions.sessionBreaks=e}updateActionForIntradayOnly(e){e&&e instanceof T&&e.update({disabled:this.model().mainSeries().isDWM()})}containsVolume(){return this.model().dataSources().some((function(e){return e instanceof v&&"Volume"===e.metaInfo().shortId}))}containsStudyByPredicate(e){return!!this._model&&this._model.dataSources().some((function(t){if(!(t instanceof v))return!1;var i=t.metaInfo();return e(i)}))}containsStudy(e){return this.containsStudyByPredicate((function(t){return t.id===e||t.fullId===e}))}isSmall(){return this._width()<550||this._height()<300}onWidget(){return this._onWidget}onCmeWidget(){return"cme"===this.widgetCustomer()}widgetCustomer(){return this._widgetCustomer}resize(){var e=this._height()+"px",t=this._width()+"px";this._mainDiv.style.height=e,this._mainDiv.style.width=t,this._elMainTable.style.height=e,this._elMainTable.style.width=t,this._resizeHandler&&this._mainDiv&&this._resizeHandler()}chartSession(){return this._chartSession}onLineCancelled(){I.resetToCursor()}_startSpinner(e){this._spinner||e&&(this._spinner=(new U).spin(e))}applyOverrides(e){var t={};for(var i in e)i.startsWith("mainSeriesProperties.priceAxisProperties")||(t[i]=e[i]);if(applyPropertiesOverrides(this.properties(),null,!1,t,null),this._model){ +applyPropertiesOverrides(this._model.model().properties(),null,!1,t),applyPropertiesOverrides(this._model.mainSeries().properties(),null,!1,t,"mainSeriesProperties"),this._model.model().sessions().applyOverrides(t);const e=this._model.chartModel().watermarkSource();null!==e&&e.applyOverrides(t)}}applyStudiesOverrides(e){z.mergeDefaultsOverrides(e),this._applyStudiesOverrides()}setActive(e){this._isActive=e,G().isTouch&&(e&&this.selectPointMode().value()?this.startTrackingMode():this.exitTrackingMode()),this._paneWidgets.forEach((function(e){e.update()})),e||this.model().selectionMacro((function(e){e.clearSelection()}))}isActive(){return this._isActive}trackTime(){return this._chartWidgetCollection.lock.trackTime}isMultipleLayout(){return X(this._chartWidgetCollection.layout.value())}selectPointMode(){return this._model.model().selectPointMode()}cancelRequestSelectPoint(){this._model.model().cancelRequestSelectPoint()}requestSelectPoint(e,t){var i=this;return new Promise((function(s,r){if(a()){I.resetToCursor(!0),i._model.lineBeingCreated()&&i._model.cancelCreatingLine();var n=!1,o={};i._model.model().onPointSelected().subscribe(o,(function(e,t){n=!0,i._isVisible.unsubscribe(a),i._hideHint(),s({point:e,pane:t})}),!0),i._model.model().requestSelectPoint(e),i.startTrackingMode(),void 0!==t&&i._showHint(t),i._isVisible.subscribe(a),i.selectPointMode().subscribe((function(){setTimeout((function(){n||(i.selectPointMode().value()||i._hideHint(),i._model.model().onPointSelected().unsubscribeAll(o),i._isVisible.unsubscribe(a),r("cancelled"))}))}),{once:!0})}function a(){return!!i.isVisible()||(r("Chartwidget must be visible"),i.cancelRequestSelectPoint(),!1)}}))}showReplayOrderConfirmationDialog(){if(!this.model().isInReplay())return Promise.resolve()}_addPerfMark(e){Z("ChartWidget."+this._id+"."+e)}requestFullscreen(){this._options.requestFullscreen()}getResizerDetacher(){return this._options}_createHint(){if(null===this._hintDefferedPromise){var e=ie();this._hintDefferedPromise=e;var t=this;Promise.all([i.e(5514),i.e(5113),i.e(5835),i.e(6166)]).then(i.bind(i,91759)).then((function(i){e.resolve(new i.ChartEventHintRenderer(t._chartWidgetCollection.getContainer()))}))}return this._hintDefferedPromise?l(this._hintDefferedPromise).promise:null}_showHint(e){if(h.enabled("popup_hints"))if(null!==this._activeHint)this._activeHint.show(e);else{var t=this,i=this._createHint();null!==i&&i.then((function(i){if(null!==i){if(t._activeHint=i,void 0===e)return;t._activeHint.show(e)}}))}}_hideHint(){null!==this._activeHint&&this._activeHint.hide()}}},21269:(e,t,i)=>{"use strict" +;var s=i(88537).ensureNotNull,r=i(59572).applyOverridesToStudy,n=i(67072),o=i(68582),a=o.LineDataSourceApi,l=o.isLineToolRiskReward,c=i(67e3).StudyApi,h=i(82650).SeriesApi,d=i(32112).SelectionApi,u=i(56233).PaneApi,p=i(65862).createDwmAligner,_=i(29823).Interval,m=i(16906).supportedLineTools,g=i(65645).showTooManyStudiesNotice,f=i(80643),v=f.isNumber,S=f.deepEquals,y=i(14291).createLineToolProperties,b=i(14291).prepareLineToolPropertiesByOwnerSource,w=i(45973).lineToolEntityInfo,C=i(7099).LineToolsGroupControllerApi,P=i(65284).RemoveSourcesCommand;const{isLineDrawnWithPressedButton:T,isLineToolFinishRequiredWhenCreatedByApi:x}=i(44601),I=i(77216).EnvironmentState;var M=i(37786).ChartWidgetApiBase,L=i(85733);i(51768).trackEvent;function A(e,t){return t.map((function(t){return e.dataSourceForId(t)}))}e.exports=class extends M{constructor(e,t){super(e,t),this._panes=new WeakMap,this._studies=new WeakMap,this._lineDataSources=new WeakMap,this._selectionApi=null,this._prevVisibleRange=null,this._chartWidget.onAboutToBeDestroyed().subscribe(this,this._destroy,!0),this._chartWidget.withModel(this,(function(){this._chartWidget.model().timeScale().logicalRangeChanged().subscribe(this,this._onLogicalRangeChanged)}))}id(){return this._chartWidget.id()}_getPaneApi(e){var t=this._panes.get(e);return void 0===t&&(t=new u(e,this._chartWidget),this._panes.set(e,t)),t}_getStudyApi(e){var t=this._studies.get(e);return void 0===t&&(t=new c(e,this._chartWidget),this._studies.set(e,t)),t}_getLineDataSourceApi(e){var t=this._lineDataSources.get(e);return void 0===t&&(t=new a(e,this._chartWidget.model(),{apiPointsToDataSource:this._convertUserPointsToDataSource.bind(this),dataSourcePointsToPriced:e=>{var t=this._chartWidget.model().mainSeries().syncModel(),i=this._chartWidget.model().timeScale();return e.map(e=>{var s=i.normalizeBarIndex(e.index);return{price:e.price,time:this._convertTimeToPublic(t.projectTime(s.time_t,s.offset))}})}}),this._lineDataSources.set(e,t)),t}executeActionById(e){this._chartWidget.executeActionById(e)}getCheckableActionState(e){return this._chartWidget.getCheckableActionState(e)}setZoomEnabled(e){this._chartWidget.model().model().setZoomEnabled(e)}setScrollEnabled(e){this._chartWidget.model().model().setScrollEnabled(e)}refreshMarks(){this._chartWidget.refreshMarks()}clearMarks(){this._chartWidget.clearMarks()}symbol(){return this._chartWidget.getSymbol()}symbolExt(){var e=this._chartWidget.model().mainSeries().symbolInfo();return e?{symbol:e.name,full_name:e.full_name,exchange:e.exchange,description:e.description,type:e.type,pro_name:e.pro_name,typespecs:e.typespecs}:null}resolution(){return this._chartWidget.model().mainSeries().properties().interval.value()}resetData(){this._chartWidget.model().mainSeries().rerequestData()}setEntityVisibility(e,t){console.warn("`setEntityVisibility` is deprecated. Use shape/study API instead");var i=this._chartWidget.model().model().dataSourceForId(e);if(i){var s=i.properties();s&&s.visible&&s.visible.setValue(t)}}availableZOrderOperations(e){ +var t=A(this._chartWidget.model().model(),e);return this._chartWidget.model().availableZOrderOperations(t)}sendToBack(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendToBack(t)}bringToFront(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringToFront(t)}insertAfter(e,t){var i=this._chartWidget.model().model(),s=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertAfter(s,r)}insertBefore(e,t){var i=this._chartWidget.model().model(),s=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertBefore(s,r)}bringForward(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringForward(t)}sendBackward(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendBackward(t)}showPropertiesDialog(e){var t=this._chartWidget.model().model().dataSourceForId(e);if(null===t)throw new Error("Study or shape "+e+" does not exist");this._chartWidget.showChartPropertiesForSource(t)}getAllShapes(){return this._chartWidget.model().model().allLineTools().map(w).filter((function(e){return null!==e.name}))}removeAllShapes(){this._chartWidget.removeAllDrawingTools()}removeAllStudies(){this._chartWidget.removeAllStudies()}removeEntity(e,t){var i=this._chartWidget.model().chartModel().dataSourceForId(e);i?t&&t.disableUndo?new P(this._chartWidget.model().chartModel(),[i],"").redo():this._chartWidget.model().removeSource(i,!0,!0):console.warn("Can't find a source with id: "+e)}removeEntityWithUndo(e){var t=this._chartWidget.model().chartModel().dataSourceForId(e);this._chartWidget.model().removeSource(t,!1)}selection(){return null===this._selectionApi&&(this._selectionApi=new d(this._chartWidget.model().model())),this._selectionApi}createStudyTemplate(e){return this._chartWidget.model().model().studyTemplate(e.saveSymbol,e.saveInterval)}drawOnAllCharts(e){L.drawOnAllCharts.setValue(e)}applyStudyTemplate(e){this._chartWidget.model().applyStudyTemplate(e,""+1e3*Math.random())}setVisibleRange(e,t){return new Promise(function(i){this._chartWidget.setVisibleTimeRange(e.from,e.to,t,i)}.bind(this))}getVisibleRange(){var e={from:0,to:0},t=this._chartWidget.model().timeScale();if(t.isEmpty())return e;var i=t.coordinateToVisibleIndex(0),s=t.coordinateToVisibleIndex(t.width()-1),r=this._convertIndexToPublicTime(s);return null===r||(e.from=this._convertIndexToPublicTime(Math.max(t.points().firstIndex(),i)),e.to=r),e}getVisiblePriceRange(){return console.warn("`getVisiblePriceRange` is deprecated. Use Price Scale API instead"),this._chartWidget.model().mainSeries()?this._chartWidget.model().mainSeries().priceScale().priceRangeInPrice():null}scrollPosition(){return console.warn("`scrollPosition` is deprecated. Use rightOffset from Time Scale API instead"),this._chartWidget.model().timeScale().rightOffset()}defaultScrollPosition(){return console.warn("`defaultScrollPosition` is deprecated. Use defaultRightOffset from Time Scale API instead"),this._chartWidget.model().timeScale().defaultRightOffset().value()}_createTradingPrimitive(e,t){ +var i,r=this._chartWidget.model(),n=r.model(),o=n.paneForSource(n.mainSeries());function a(){var e=TradingView.CLOSE_PLOT,t=s(r.mainSeries().bars().last());return{index:t.index,price:t.value[e]}}return(i=t?n.createLineTool(o,a(),e):r.createLineTool({pane:o,point:a(),linetool:e}))?i._adapter:void 0}createOrderLine(e){e=e||{};return this._createTradingPrimitive("LineToolOrder",e.disableUndo)}createPositionLine(e){e=e||{};return this._createTradingPrimitive("LineToolPosition",e.disableUndo)}createExecutionShape(e){e=e||{};return this._createTradingPrimitive("LineToolExecution",e.disableUndo)}createShape(e,t){return this.createMultipointShape([e],t)}_alignPoints(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=i.interval();if(t.timeScale().isEmpty()||!_.isDWM(s))return e;var r=p(s,i.symbolInfo());return null===r?e:e.map((function(e){return r.timeToSessionStart(1e3*e)/1e3}))}_convertUserPointsToDataSource(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=t.timeScale().points(),r=i.data();if(t.timeScale().isEmpty())return null;var n=e.map((function(e){return e.time||0})),o=this._alignPoints(n);function a(e,t,n){var o=s.closestIndexLeft(e)||0,a={index:o},l=s.valueAt(o);if(e>l&&o===s.lastIndex())(c=i.syncModel().distance(l,e)).success&&(a.index=a.index+c.result);else if(e2)throw new Error("Wrong points count for "+i.shape+". Required 1 or 2");2===c.length&&(d.startChanging(1,c[1]),d.setPoint(1,c[1]),d.endChanging())}else{var _=d.pointsCount();if(_!==c.length&&-1!==_)throw new Error("Wrong points count for "+i.shape+". Required "+_) +;for(var g=new I(void 0,!0),f=T(s.name),v=1;v{"use strict";var s=i(2872),r=i(88537).assert,n=i(28353).t,o=i(81836).createDeferredPromise,a=(n=i(28353).t,i(24980).TranslatedString),l=i(42060).layouts,c=i(49483).supportTouch,h=i(52940).createUndoHistory,d=i(85733),u=i(25760),p=i(68335),_=i(76422),m=i(67337),g=i(52714),f=i(98125).getLogger("Chart.ChartWidgetCollection"),v=i(54475).preventDefaultForContextMenu,S=i(16654),y=i(64237).rangesAreEqual,b=i(13323).GeneralChartPropertiesRenderer,w=i(9315).setLastUsedResolution,C=i(42120).CompareDialogRenderer,P=i(84015).isOnMobileAppPage,T=i(10480),x=i(37667),I=i(8578),M=I.applyIndicatorsToAllChartsImpl,L=I.applyIndicatorToAllChartsImpl,A=I.lineToolsAndGroupsDTOsImpl,E=I.getStateForChartImpl,k=I.resetLineToolsInvalidatedImpl,D=I.applyLineToolUpdateNotificationImpl,V=I.createClipboardHandler,B=I.chartsSymbolsImpl,N=I.updateLayoutImpl,R=I.computeContentBoxImpl,O=(I.getVisuallyAdjacentDefImpl,I.setLayoutImpl),F=I.removeChartWidgetSubscriptionsImpl,W=I.createChartWidgetImpl,H=I.generateNewChartId,z=I.syncCrosshairImpl,U=I.createBroadcastChannel,j=I.destroyBroadcastChannel,G=I.syncScrollImpl,q=I.allInitialModelsCreated,Y=I.allInitialSymbolsResolved,K=I.applyThemeImpl,$={saveChartEnabled:!0,takeScreenshotEnabled:!0,publishedChartsEnabled:!0},X=new a("symbol lock",n("symbol lock")),Z=new a("interval lock",n("interval lock")),J=new a("date range lock",n("date range lock")),Q=new a("track time",n("track time")),ee=new a("change symbol",n("change symbol")),te=new a("change resolution",n("change resolution")),ie=new a("change series style",n("change series style")) +;n("Bar Replay isn't available for this chart type. Do you want to exit Bar Replay?");e.exports=function(e){var t=this,n=Object.assign({},$,e),a=new g,se=n.readOnly||!1,re=[],ne=0,oe=new g,ae=new g,le=new g,ce="s",he=new g(null),de=new Map,ue=new g([]),pe=new g,_e=[],me=!1,ge=!1,fe=new g(!1),ve=new g(null),Se=new g(!1),ye=new g(!1),be=new g(!1),we=new g(!1),Ce=new g(!1);Ce.subscribe(Ct),he.subscribe(Pt);var Pe=new g(TVSettings.getBool("chart.syncCrosshair",!0)),Te=u.createGroup({desc:"Layout"}),xe=null,Ie=null,Me=null,Le=null;if(window.TVD){var Ae=window.TVD.crosshairSyncEnabled;Ae?(Ae.value()&&(Me=U(Qe)),Le=Ae.subscribe(e=>{e?Me=U(Qe):(j(Qe()),Me=null)})):Me=U(Qe)}var Ee=Pe.value();Pe.subscribe((function(e){Ee=e=!!e,TVSettings.setValue("chart.syncCrosshair",e);for(var t=0;t{var i=n.resizerBridge,r=[i.container.spawn(),i.width.spawn(),i.height.spawn()],o=i.container.value(),a=new s,l=function(){a.fire()};r.forEach((function(e){e.subscribe(l)})),Ye=new e(qe.value(),a,(function(){var e=o.getBoundingClientRect(),t=R(Qe());return t.top=e.top+t.top,t.left=e.left+t.left,t}),t,ChartApiInstance,Ne,n.seriesControlBar),Ke=function(){null!==Ye&&(Ye.destroy(),Ye=null,qe.value().remove(),qe.setValue(null)),r.forEach((function(e){e.destroy()})),a.destroy()}}));var $e=new b(t),Xe=new C(t);function Ze(){Ge.setValue(re.some(e=>{const t=e.chartWidget.lineToolsSynchronizer();return null!==t&&t.hasChanges().value()}))}function Je(e){return I.checkProFeatureImpl(Qe(),e)}function Qe(){return{undoHistory:Fe,chartWidgetsDefs:re,chartsCountToSave:et,actualLayoutCount:tt,savedChartWidgetOptions:_e,activeChartWidget:a,options:n,parent:We,toastsFactory:null,crosshairLockRaw:Ee,crossHairSyncBroadcast:Me,setChartStorageNotificationSubscription:e=>{Ie=e},maximizedChartDef:Be,setMaximized:ot,layoutTemplate:le,widthWV:De,heightWV:Ve,checkProFeature:Je,lineToolsSynchronizerHasChanges:Ge,recalcHasChanges:Ze,onZoom:Ue,onScroll:je, +layoutType:ce,layoutWV:ke,setLayoutType:e=>{ce=e},isPhoneSize:fe,viewMode:pe,updateViewMode:lt,loadingContent:me,setLoadingContent:e=>{me=e},initialLoading:ge,inlineChartsCount:ae,updateWatchedValue:ct,checkAllPendingModelsAlreadyCreated:at,readOnly:se,symbolLock:ye,customLegendWidgetsFactoriesMap:Ot,globalDetachable:oe,saveChartService:xe,customSources:Rt,updateActivityView:ht,chartWidgetCreatedDelegate:ze,sizingState:ve,currentLayoutResizeAction:he,allLayoutSizesState:de,splitters:ue,trackTimeLock:we,widgetOptions:Ne,dateRangeLock:Ce,bottomToolbar:qe,layoutSizesChanged:Se,subscribeToCompletedEventForDateRangeSync:yt}}function et(){return tt()}function tt(){return l[ce].count}function it(e,t,i,s,r){return E(Qe(),e,t,i,s,r)}function st(){N(Qe())}function rt(e){return e.rdState.owner.value()!==e}function nt(e){return O(Qe(),e,t)}function ot(e){Be.value()!==e&&(Be.setValue(e),nt(ce))}function at(){re.every(e=>e.chartWidget.hasModel())&&(ct(),_.emit("layout_changed"))}function lt(){"s"===ce||Be.value()?pe.setValue((void 0).ForceFullscreen):pe.setValue((void 0).Multichart)}function ct(){var e=Math.min(le.value().count,re.length)-1;if(e<0)a.deleteValue();else{var t=ne;t<0&&(t=0),t>e&&(t=e),a.setValue(re[t].chartWidget)}}function ht(){for(var e=re.length;e--;){var t=e===ne;re[e].container.value().classList.toggle("active",t),re[e].container.value().classList.toggle("inactive",!t)}}function dt(e){}ve.subscribe(()=>st()),De.subscribe(st),Ve.subscribe(st),this.updateLayout=st;var ut=new s,pt=new g,_t=new g([]),mt=null;function gt(e){var t=e.mainSeries().properties();t.style.subscribe(null,ft),ft(t.style),e.model().onSelectedSourceChanged().subscribe(null,vt),Ce.value()&&(bt(e),xt()),vt(e.selection().allSources())}function ft(e){pt.setValue(e.value())}function vt(){var e=mt.model();_t.setValue(e.selection().allSources())}a.subscribe((function(e){if(e){for(var t,i=re.length;i--;)if(re[i].chartWidget===e){t=i;break}if(!isFinite(t))throw new Error("Cannot make detached ChartWidget active");if(ne!==t){Be.value()&&(rt(re[t])||Be.setValue(re[t])),ne=t,ht();for(i=re.length;i--;)re[i].chartWidget!==e&&re[i].chartWidget.setActive(!1);Ht(),e.setActive(!0)}!function(e){if(mt!==e){if(mt&&(mt.modelCreated().unsubscribe(null,gt),mt.hasModel())){var t=mt.model();Ce.value()&&wt(t),t.mainSeries().properties().style.unsubscribe(null,ft),t.model().onSelectedSourceChanged().unsubscribe(null,vt),mt=null}e&&(mt=e,e.hasModel()?gt(e.model()):e.modelCreated().subscribe(null,gt))}}(e)}}),{callWithLast:!0});var St=new Map;function yt(e,t){var i=e.id();if(!St.has(i)){var s=function(){St.delete(e.id()),xt(t?e:void 0)};e.model().mainSeries().dataEvents().completed().subscribe(null,s,!0),St.set(i,{cw:e,callback:s})}}function bt(e){e.timeScale().visibleBarsStrictRangeChanged().subscribe(null,Tt)}function wt(e){e.timeScale().visibleBarsStrictRangeChanged().unsubscribe(null,Tt),St.forEach((function(e){var t=e.cw,i=e.callback;t.model().mainSeries().dataEvents().completed().unsubscribe(null,i)})),St.clear()}function Ct(e){var t=a.value();if(t&&t.hasModel()){ +var i=t.model();e?(bt(i),xt()):wt(i)}}function Pt(e){Ce.value()&&null===e&&xt()}function Tt(e,t){xt()}function xt(e){if(Ce.value()&&null===he.value()){var t=a.value(),i=t.model().mainSeries();if(x.isTimeBasedStyle(i.style())){var s=t.model().timeScale(),r=s.visibleBarsStrictRange();if(null!==r){var n=r.firstBar(),o=Math.min(r.lastBar(),s.points().lastIndex()),l=s.indexToTimePoint(n);null===l&&i.endOfData()&&(l=s.indexToTimePoint(s.points().firstIndex()));var c=s.indexToTimePoint(o);if(null!==l&&null!==c){var h=i.barCloseTime();null!==h&&hnull===Be.value()?null:Be.value().chartWidget,destroy:function(){if(Et.fire(),Nt(!1),null!==Ke&&(Ke(),Ke=null),F(Qe()),Ce.unsubscribe(Ct),he.unsubscribe(Pt),re.forEach((function(e){void 0!==e.timingsMeter&&e.timingsMeter.destroy(),e.chartWidget.destroy()})),n.resizerBridge.remove(),ue.value().forEach(e=>{e.mouseHandler.destroy(),e.mouseListener.destroy()}),window.removeEventListener("resize",st),d.tool.unsubscribe(Ht),d.tool.unsubscribe(zt),He.resolve(),We.remove(),Rt.clear(),Ot.clear(),Te.destroy(),Ie&&Ie.destroy(),Ft&&Ft.destroy(),window.TVD){const e=window.TVD.crosshairSyncEnabled;e&&e.unsubscribe(Le),j(Qe())}},onAboutToBeDestroyed:Et,layout:ke.readonly(),setLayout:nt,activeChartWidget:a,viewMode:pe,activeChartStyle:pt.readonly(),setChartStyleToWidget:function(e,t){t||(t=a.value()),t&&function(e,t){var i=e.model(),s=i.mainSeries().properties().style;i.setChartStyleProperty(s,t,ie)}(t,e)},selectedSources:_t.readonly(),metaInfo:Oe,state:function(e,i,s,r){for(var n=[],o=et(),a=0;a{c.layoutsSizes[t]=e}),c},lineToolsAndGroupsDTOs:function(){return A(Qe())},resetLineToolsInvalidated:function(e,t){return k(Qe(),e,t)},applyLineToolUpdateNotification:D.bind(null,re),readOnly:function(){return se},onZoom:function(){return Ue},onScroll:function(){return je},resizerBridge:function(){return n.resizerBridge},lock:{symbol:ye,setSymbolLockWithUndo:function(e){if(e!==ye.value()){if(Fe.beginUndoMacro(X),e)for(var t=a.value(),i=t.getSymbol(),s=0;sz(Qe(),e,t,i,s),syncScroll:function(e,t){return G(Qe(),e,t)},setSymbolAll:Mt,clearChartMetaInfo:function(){Oe.id.setValue(null),Oe.uid.setValue(void 0),Oe.name.setValue(void 0)},takeScreenshot:I.takeScreenshot.bind(this,n.snapshotUrl,this),takeServerScreenshot:I.takeServerScreenshot.bind(this,n.snapshotUrl,this),loadContent:Wt,purgeUnusedWidgets:function(){for(var e=l[ce].count;e1},applyIndicatorToAllCharts:function(e,t,i,s){L(Qe(),e,t,i,s)},setActive:Nt,inlineChartsCount:ae.readonly(),revertToInline:function(){ot(null);for(var e=0;eSe}),Wt(n.content,!0),ke.subscribe((function(){ht()})),ke.hook=function(e){return e===this.value()?e:Je(e)},se&&(ke.writeLock=!0),window.addEventListener("resize",st);var Ut=0;function jt(){0===--Ut&&_.emitOnce("onChartReady")}if(re.forEach((function(e){if(e){Ut++;var t=e.chartWidget;t.withModel(null,(function(){n.metaInfo&&t.model().model().setChartSaveTime(1e3*n.metaInfo.lastModified);var e=t.model().mainSeries();if(e.bars().size()>0||e.isStatusBad())jt();else{var i=e.dataEvents(),s=function(){jt(),i.barReceived().unsubscribe(null,s),i.completed().unsubscribe(null,s),i.error().unsubscribe(null,s)};i.barReceived().subscribe(null,s),i.completed().subscribe(null,s),i.error().subscribe(null,s)}}))}})),c()){var Gt=d.tool.setValue;d.tool.setValue=function(){t.selectedSources.value()&&t.activeChartWidget.value().model().lineBeingCreated()&&t.activeChartWidget.value().model().cancelCreatingLine(),Gt.apply(d.tool,arguments)}}q(Qe()).then(Y).then((function(){window.saver&&window.is_authenticated&&n.widgetOptions.justCloned&&window.saver.saveChartSilently()})).catch(f.logError.bind(f))}},97056:(e,t,i)=>{"use strict";i.d(t,{ContextMenuManager:()=>s});var s,r=i(28296),n=i(59064);!function(e){let t=null,s=null;const o=[],a={createAction:e=>new r.Action({...e,actionId:"Chart.CustomActionId"}),createAsyncAction:e=>new r.ActionAsync("Chart.CustomActionId",e),createSeparator:()=>new r.Separator};async function l(e,r={},n={menuName:""},l){let h;null!==t&&(e=await t(e,a));const d=()=>{const e=o.indexOf(h);-1!==e&&o.splice(e,1),void 0!==l&&l()};if(null!==s)h=await s(e,n,d),c();else{const t=await Promise.all([i.e(5514),i.e(2e3),i.e(3466),i.e(7427),i.e(5998),i.e(1112),i.e(6909),i.e(3520),i.e(2849),i.e(6475),i.e(1584)]).then(i.bind(i,46608));h=new t.ContextMenuRenderer(e,r,d,c)}return o.push(h),h}function c(){(0,n.globalCloseMenu)()}e.createMenu=l,e.showMenu=function(e,t,i={},s,r){return l(e,i,s,r).then(e=>e.show(t))},e.setCustomRendererFactory=function(e){s=e},e.setCustomItemsProcessor=function(e){t=e},e.hideAll=c,e.getShown=function(){for(let e=0;e{"use strict";i.d(t,{DialogRenderer:()=>n}) +;var s=i(52714),r=i.n(s);class n{constructor(){this._container=document.createElement("div"),this._visibility=new(r())(!1)}visible(){return this._visibility.readonly()}_setVisibility(e){this._visibility.setValue(e)}}},73591:(e,t,i)=>{"use strict";var s;i.d(t,{TabNames:()=>s}),function(e){e.background="Background",e.coordinates="Coordinates",e.drawings="Drawings",e.events="Events",e.eventsAndAlerts="Events & Alerts",e.inputs="Inputs",e.properties="Properties",e.scales="Scales",e.legend="Legend",e.sourceCode="Source Code",e.style="Style",e.symbol="Symbol",e.timezoneSessions="Timezone/Sessions",e.trading="Trading",e.visibility="Visibility",e.text="Text"}(s||(s={}))},33225:(e,t,i)=>{"use strict";function s(e){return e.getAll().some(e=>e.isInitialized())}function r(e,t){const i=e.getAll(),s=()=>{t(),i.forEach(e=>{e.chartWidgetInitialized.unsubscribe(null,s)})};i.forEach(e=>{e.chartWidgetInitialized.subscribe(null,s,!0)})}i.r(t),i.d(t,{isAnyChartWidgetInitialized:()=>s,waitAnyChartWidgetInitialized:()=>r})},12409:(e,t,i)=>{"use strict";i.d(t,{getFavoriteDrawingToolbarPromise:()=>o,createFavoriteDrawingToolbar:()=>a});i(28353);var s=i(18387);let r=null,n=null;function o(){return n}function a(){null===n&&(n=Promise.all([i.e(5514),i.e(9129),i.e(8463),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(5998),i.e(1112),i.e(6909),i.e(6416),i.e(7419),i.e(3520),i.e(9042),i.e(323),i.e(2849),i.e(880),i.e(8994),i.e(1890),i.e(638),i.e(1550),i.e(6475),i.e(2306)]).then(i.bind(i,56588)).then(({FavoriteDrawingToolbar:e})=>(r=null!==r?r:new e({left:window.innerWidth/2,top:s.HEADER_TOOLBAR_HEIGHT_EXPANDED+61}),r)))}},41847:(e,t,i)=>{"use strict";i.d(t,{getPriceAxisNameInfo:()=>o});const s=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"];class n{constructor(e){this.label=e}equals(e){return null!==e&&this.label===e.label}}function o(e,t){const i="left"===e?s:r;return new n(t{"use strict";i.d(t,{CHART_WIDGET_COLLECTION_SERVICE:()=>s});i(16216);const s={id:"ChartWidgetCollectionService"};var r;!function(e){e.Multichart="multichart",e.ForceFullscreen="force-fullscreen"}(r||(r={}))},23653:(e,t,i)=>{"use strict";i.d(t,{InvalidationLevel:()=>s,InvalidationMask:()=>a,defaultInvalidationLevel:()=>o});var s,r=i(88537);class n{constructor(e=o){this._paneInvalidationLevel=o,this._leftPriceScalesInvalidationMap=new Map,this._rightPriceScalesInvalidationMap=new Map,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)}invalidatePriceScale(e,t,i){const s="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap,r=s.get(t)||o;s.set(t,Math.max(r,i))}invalidationLevelForPane(){return Math.max(this._paneInvalidationLevel,this._invalidationLevel)}getterForPriceScaleInvalidationLevelBySide(e){const t="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap +;return e=>Math.max(t.get(e)||o,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)||o;this._leftPriceScalesInvalidationMap.set(t,Math.max(i,e))}),e._rightPriceScalesInvalidationMap.forEach((e,t)=>{const i=this._rightPriceScalesInvalidationMap.get(t)||o;this._rightPriceScalesInvalidationMap.set(t,Math.max(i,e))})}}!function(e){e[e.None=0]="None",e[e.Cursor=1]="Cursor",e[e.Light=2]="Light",e[e.Full=3]="Full"}(s||(s={}));const o=s.None;class a{constructor(e=o){this._panesOrderChanged=!1,this._keepVisibleTimeRangeOnResize=!1,this._timeAxisInvalidationLevel=o,this._invalidatedPanes=new Map,this._additionalActions=[],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 n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(e)).invalidateAll(t)}invalidatePriceScale(e,t,i,s){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(e)).invalidatePriceScale(t,i,s)}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 n(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 n(this._invalidationLevel)),(0,r.ensureDefined)(this._invalidatedPanes.get(t)).merge(e)}),this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e._timeAxisInvalidationLevel) +;for(let t=0;t{"use strict";i.d(t,{lastMouseOrTouchEventInfo:()=>r,setLastMouseOrTouchEventInfo:()=>n});let s=(0,i(49483).supportTouch)()?{isTouch:!0,stylus:!1}:{isTouch:!1};function r(){return s}function n(e){s=e.isTouch?{isTouch:!0,stylus:e.stylus}:{isTouch:!1}}},37416:(e,t,i)=>{"use strict";i.d(t,{layoutInitialSizingState:()=>r});var s=i(3308);i(88537);function r(e){return function e(t){return t.map(i=>{if((0,s.default)(i))return{percent:1/t.length};{const s=i.slice(1);return{percent:1/t.length,substate:e(s)}}})}(e.slice(1))}},42060:(e,t,i)=>{"use strict";i.d(t,{layouts:()=>r,isMultipleLayout:()=>n});i(38069),i(37416);let s;s={};const r={...{s:{title:"1 chart",count:1,layoutType:"s",sizer:(e,t)=>{if(0!==t)throw new RangeError("invalid index");return e},splitters:()=>[],resizeApplier:(e,t,i,s,r)=>r,syncSublayoutsBySplitter:(e,t)=>t,expression:["h",0]}},...s};function n(e){return!function(e){return"s"===e}(e)}},7099:(e,t,i)=>{"use strict";i.d(t,{LineToolsGroupControllerApi:()=>o});var s=i(59555),r=i(88537),n=i(14291);class o{constructor(e,t){this._controller=e,this._model=t}createGroupFromSelection(){return this._controller.createGroupFromSelection().id}removeGroup(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.removeGroup(t)}groups(){return this._controller.groups().map(e=>e.id)}shapesInGroup(e){const t=(0,r.ensureDefined)(this._groupById(e));return(0,s.sortSources)(t.lineTools()).map(e=>e.id())}excludeShapeFromGroup(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._model.dataSourceForId(t));(0,r.assert)((0,n.isLineTool)(s),"Passed shapeId is not a line tool"),this._controller.excludeLineToolFromGroup(i,s)}addShapeToGroup(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._model.dataSourceForId(t));(0,r.assert)((0,n.isLineTool)(s),"Passed shapeId is not a line tool"),this._controller.addLineToolToGroup(i,s)}availableZOrderOperations(e){const t=(0,r.ensureDefined)(this._groupById(e));return this._controller.availableZOrderOperations(t)}bringToFront(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.bringToFront(t)}bringForward(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.bringForward(t)}sendBackward(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.sendBackward(t)}sendToBack(e){const t=(0,r.ensureDefined)(this._groupById(e));this._controller.sendToBack(t)}insertAfter(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t)) +;this._controller.insertAfter(i,s)}insertBefore(e,t){const i=(0,r.ensureDefined)(this._groupById(e)),s=(0,r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertBefore(i,s)}groupVisibility(e){return(0,r.ensureDefined)(this._groupById(e)).visibility()}setGroupVisibility(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupVisibility(i,t)}groupLock(e){return(0,r.ensureDefined)(this._groupById(e)).locked()}setGroupLock(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupLock(i,t)}getGroupName(e){return(0,r.ensureDefined)(this._groupById(e)).name()}setGroupName(e,t){const i=(0,r.ensureDefined)(this._groupById(e));this._controller.setGroupName(i,t)}canBeGroupped(e){const t=e.map(e=>(0,r.ensureNotNull)(this._model.dataSourceForId(e)));return!t.some(e=>!(0,n.isLineTool)(e))&&this._controller.canBeGroupped(t)}_groupById(e){return this._controller.groups().find(t=>t.id===e)}}},54386:(e,t,i)=>{"use strict";i.d(t,{MouseEventHandler:()=>h});var s=i(49483),r=i(88537),n=i(80643),o=i(80007),a=i(71413);const l=s.isSafari?"click":"auxclick",c={treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!1};class h{constructor(e,t,i){this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY},this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY},this._longTapTimeoutId=null,this._longTapActive=!1,this._mouseMoveStartPosition=null,this._touchMoveStartPosition=null,this._touchMoveExceededManhattanDistance=!1,this._cancelClick=!1,this._cancelTap=!1,this._unsubscribeOutsideMouseEvents=null,this._unsubscribeOutsideTouchEvents=null,this._unsubscribeMobileSafariEvents=null,this._unsubscribeMousemove=null,this._unsubscribeRootMouseEvents=null,this._unsubscribeRootTouchEvents=null,this._startPinchMiddlePoint=null,this._startPinchDistance=0,this._pinchPrevented=!1,this._preventTouchDragProcess=!1,this._mousePressed=!1,this._lastTouchEventTimeStamp=0,this._activeTouchId=null,this._acceptMouseLeave=!s.CheckMobile.iOS(),this._onFirefoxOutsideMouseUp=e=>{this._mouseUpHandler(e)},this._onMobileSafariDoubleClick=e=>{if(this._firesTouchEvents(e)){const t=this._makeCompatEvent(e);if(++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._tapPosition);i<30&&!this._cancelTap&&this._processTouchEvent(t,this._handler.doubleTapEvent),this._resetTapTimeout()}}else{const t=this._makeCompatEvent(e);if(++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition);i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}}},this._target=e,this._handler=t,this._options=(0,n.merge)((0,n.clone)(c),i||{}),this._init()}destroy(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(), +this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()}_mouseEnterHandler(e){this._unsubscribeMousemove&&this._unsubscribeMousemove();const t=this._mouseMoveHandler.bind(this);if(this._unsubscribeMousemove=()=>{this._target.removeEventListener("mousemove",t)},this._target.addEventListener("mousemove",t),this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseEnterEvent),this._acceptMouseLeave=!0}_resetClickTimeout(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_resetTapTimeout(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_mouseMoveHandler(e){if(this._mousePressed||null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseMoveEvent),this._acceptMouseLeave=!0}_touchMoveHandler(e){const t=m(e.changedTouches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t)return;if(this._lastTouchEventTimeStamp=_(e),null!==this._startPinchMiddlePoint)return;if(this._preventTouchDragProcess)return;this._pinchPrevented=!0;const i=this._touchMouseMoveWithDownInfo(u(t),(0,r.ensureNotNull)(this._touchMoveStartPosition)),{xOffset:s,yOffset:n,manhattanDistance:a}=i;if(this._touchMoveExceededManhattanDistance||!(a<5)){if(!this._touchMoveExceededManhattanDistance){const e=.5*s,t=n>=e&&!this._options.treatVertTouchDragAsPageScroll,i=e>n&&!this._options.treatHorzTouchDragAsPageScroll;t||i||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}if(!this._preventTouchDragProcess){const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.touchMoveEvent),(0,o.preventDefault)(e)}}}_mouseMoveWithDownHandler(e){if(0!==e.button)return;const t=this._touchMouseMoveWithDownInfo(u(e),(0,r.ensureNotNull)(this._mouseMoveStartPosition)),{manhattanDistance:i}=t;if(i>=5&&(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick){const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.pressedMouseMoveEvent)}}_touchMouseMoveWithDownInfo(e,t){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return{ +xOffset:i,yOffset:s,manhattanDistance:i+s}}_touchEndHandler(e){let t=m(e.changedTouches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t&&0===e.touches.length&&(t=e.changedTouches[0]),null===t)return;this._activeTouchId=null,this._lastTouchEventTimeStamp=_(e),this._clearLongTapTimeout(),this._touchMoveStartPosition=null,this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);const i=this._makeCompatEvent(e,t);if(this._processTouchEvent(i,this._handler.touchEndEvent),++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:e}=this._touchMouseMoveWithDownInfo(u(t),this._tapPosition);e<30&&!this._cancelTap&&this._processTouchEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout()}else this._cancelTap||(this._processTouchEvent(i,this._handler.tapEvent),this._handler.tapEvent&&(0,o.preventDefault)(e));0===this._tapCount&&(0,o.preventDefault)(e),0===e.touches.length&&this._longTapActive&&(this._longTapActive=!1,(0,o.preventDefault)(e))}_mouseUpHandler(e){if(0!==e.button)return;const t=this._makeCompatEvent(e);if(this._mouseMoveStartPosition=null,this._mousePressed=!1,this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),s.isFF){this._target.ownerDocument.documentElement.removeEventListener("mouseleave",this._onFirefoxOutsideMouseUp)}if(!this._firesTouchEvents(e))if(this._processMouseEvent(t,this._handler.mouseUpEvent),++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition);i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}else this._cancelClick||this._processMouseEvent(t,this._handler.mouseClickEvent)}_clearLongTapTimeout(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)}_touchStartHandler(e){if(null!==this._activeTouchId)return;const t=e.changedTouches[0];this._activeTouchId=t.identifier,this._lastTouchEventTimeStamp=_(e);const i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartPosition=u(t),this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);{const t=this._touchMoveHandler.bind(this),s=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=()=>{i.removeEventListener("touchmove",t),i.removeEventListener("touchend",s)},i.addEventListener("touchmove",t,{passive:!1}),i.addEventListener("touchend",s,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,e),240)}const s=this._makeCompatEvent(e,t);this._processTouchEvent(s,this._handler.touchStartEvent),this._tapTimeoutId||(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapPosition=u(t))}_wheelClickHandler(e){if(1!==e.button)return;if(this._firesTouchEvents(e))return +;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.wheelClickEvent)}_mouseDownHandler(e){if(0!==e.button)return;const t=this._target.ownerDocument.documentElement;s.isFF&&t.addEventListener("mouseleave",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartPosition=u(e),this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);{const e=this._mouseMoveWithDownHandler.bind(this),i=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=()=>{t.removeEventListener("mousemove",e),t.removeEventListener("mouseup",i)},t.addEventListener("mousemove",e),t.addEventListener("mouseup",i)}if(this._mousePressed=!0,this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseDownEvent),this._clickTimeoutId||(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickPosition=u(e))}_init(){this._target.addEventListener("mouseenter",this._mouseEnterHandler.bind(this)),this._target.addEventListener("touchcancel",this._clearLongTapTimeout.bind(this));{const e=this._target.ownerDocument,t=e=>{this._handler.mouseDownOutsideEvent&&(e.target&&this._target.contains(e.target)||this._handler.mouseDownOutsideEvent())};this._unsubscribeOutsideTouchEvents=()=>{e.removeEventListener("touchstart",t)},this._unsubscribeOutsideMouseEvents=()=>{e.removeEventListener("mousedown",t)},e.addEventListener("mousedown",t),e.addEventListener("touchstart",t,{passive:!0})}s.CheckMobile.iOS()&&(this._unsubscribeMobileSafariEvents=()=>{this._target.removeEventListener("dblclick",this._onMobileSafariDoubleClick)},this._target.addEventListener("dblclick",this._onMobileSafariDoubleClick)),this._target.addEventListener("mouseleave",this._mouseLeaveHandler.bind(this)),this._target.addEventListener("contextmenu",this._contextMenuHandler.bind(this)),this._target.addEventListener("touchstart",this._touchStartHandler.bind(this),{passive:!0}),(0,o.preventScrollByWheelClick)(this._target),this._target.addEventListener("mousedown",this._mouseDownHandler.bind(this)),this._target.addEventListener(l,this._wheelClickHandler.bind(this)),this._initPinch(),this._target.addEventListener("touchmove",()=>{},{passive:!1})}_initPinch(){void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener("touchstart",e=>this._checkPinchState(e.touches),{passive:!0}),this._target.addEventListener("touchmove",e=>{if(2===e.touches.length&&null!==this._startPinchMiddlePoint&&void 0!==this._handler.pinchEvent){const t=e.touches[0],i=e.touches[1],s=p(t,i)/this._startPinchDistance,r=d(this._target);this._handler.pinchEvent(this._startPinchMiddlePoint,{x:t.clientX-r.left,y:t.clientY-r.top},{x:i.clientX-r.left,y:i.clientY-r.top},s),(0,o.preventDefault)(e)}},{passive:!1}),this._target.addEventListener("touchend",e=>{this._checkPinchState(e.touches)}))}_checkPinchState(e){1===e.length&&(this._pinchPrevented=!1), +2!==e.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(e)}_startPinch(e){if(void 0!==this._handler.pinchStartEvent){const t=d(this._target),i=e[0],s=e[1],r={x:i.clientX-t.left,y:i.clientY-t.top},n={x:s.clientX-t.left,y:s.clientY-t.top};this._startPinchMiddlePoint={x:(r.x+n.x)/2,y:(r.y+n.y)/2},this._startPinchDistance=p(i,s),this._handler.pinchStartEvent(this._startPinchMiddlePoint,r,n)}this._clearLongTapTimeout()}_stopPinch(){null!==this._startPinchMiddlePoint&&(this._startPinchMiddlePoint=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent())}_mouseLeaveHandler(e){if(this._unsubscribeMousemove&&this._unsubscribeMousemove(),this._firesTouchEvents(e))return;if(!this._acceptMouseLeave)return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseLeaveEvent),this._acceptMouseLeave=!s.CheckMobile.iOS()}_longTapHandler(e){const t=m(e.touches,(0,r.ensureNotNull)(this._activeTouchId));if(null===t)return;const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.longTapEvent),this._processTouchEvent(i,this._handler.touchContextMenuEvent),this._cancelTap=!0,this._longTapActive=!0}_contextMenuHandler(e){if((0,o.preventDefault)(e),null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.contextMenuEvent),this._cancelClick=!0}_firesTouchEvents(e){return e.sourceCapabilities&&void 0!==e.sourceCapabilities.firesTouchEvents?e.sourceCapabilities.firesTouchEvents:_(e){"touchstart"!==e.type&&(0,o.preventDefault)(e)}}}}function d(e){return e.getBoundingClientRect()||{left:0,top:0}}function u(e){return{x:e.pageX,y:e.pageY}}function p(e,t){const i=e.clientX-t.clientX,s=e.clientY-t.clientY;return Math.sqrt(i*i+s*s)}function _(e){return e.timeStamp||performance.now()}function m(e,t){for(let i=0;i{"use strict";i.d(t,{navigationButtonsVisibilityKey:()=>r,property:()=>n,availableValues:()=>o,actualBehavior:()=>a});var s=i(10133);const r="NavigationButtons.visibility",{property:n,availableValues:o,actualBehavior:a}=(0,s.createVisibilityController)(r)},62428:(e,t,i)=>{"use strict";i.d(t,{property:()=>n,availableValues:()=>o,actualBehavior:()=>a}) +;var s=i(10133),r=i(95707);const{property:n,availableValues:o,actualBehavior:a}=(0,s.createVisibilityController)("PaneButtons.visibility",r.navigationButtonsVisibilityKey)},62138:(e,t,i)=>{"use strict";i.d(t,{ActionBinder:()=>s});class s{constructor(e,t,i,s,r=null){this._property=t,this._undoModel=i,this._undoText=s,this._action=e,this.setValue(t.value()),t.subscribe(this,this._propertyChanged),null!==r?e.update({onExecute:r.bind(this)}):e.update({onExecute:this._onActionCallback.bind(this)})}destroy(){this._property.unsubscribe(this,this._propertyChanged)}value(){return this._action.isChecked()}setValue(e){this._action.update({checked:Boolean(e)})}_onActionCallback(){this._undoModel.setProperty(this._property,this.value(),this._undoText)}_propertyChanged(e){this.setValue(e.value())}}},37701:(e,t,i)=>{"use strict";i.d(t,{isCustomStudy:()=>r});const s={VbPFixed:!0,PivotPointsStandard:!0,VbPVisible:!0};function r(e){return e in s}},56756:(e,t,i)=>{"use strict";i.d(t,{MetaInfoHelper:()=>p});var s=i(88537),r=i(67072),n=i.n(r),o=i(50993),a=i(80643),l=i(98125);const c=["first_visible_bar_time","last_visible_bar_time"];function h(e){return!e.groupId&&!e.isHidden&&!c.includes(e.id)}var d=i(37701);const u=(0,l.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class p{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(h)}getUserEditableInputs(){return this._metaInfo.inputs.filter(h)}hasUserEditableProperties(){return n().isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||(0,d.isCustomStudy)(e.shortId)||n().isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some(e=>void 0!==e)}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter(i=>{if((0,o.isColorerPlot)(i)||(0,o.isTextColorerPlot)(i)||(0,o.isDataOffsetPlot)(i)||(0,o.isOhlcColorerPlot)(i)||(0,o.isAlertConditionPlot)(i))return!1;if((0,o.isOhlcPlot)(i)){const r=i.target;if(e.has(r))return!1;e.add(r);const n=(0,s.ensureDefined)(t.ohlcPlots);return!(0,s.ensureDefined)(n[r]).isHidden}{const e=t.styles?t.styles[i.id]:void 0;return void 0===e||!e.isHidden}})}hasUserEditableOptions(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(m),i={..._};for(const s of t){const t=s.internalID;i[t]=s,_.hasOwnProperty(t)||u.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return(0,a.clone)(i)}}const _={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0,use_bar_magnifier:void 0};function m(e){return"strategy_props"===e.groupId}},27772:(e,t,i)=>{"use strict";i.d(t,{checkAuthBeforeSaveLoad:()=>r});var s=i(67337);function r(e,t){ +s.enabled("saveload_requires_authentication")?window.runOrSignIn(e,t):e()}},9127:(e,t,i)=>{"use strict";i.d(t,{AbstractJsonStoreService:()=>n,CommonJsonStoreService:()=>o});var s=i(2872),r=i.n(s);class n{constructor(e,t,i,s,n){this._onChange=new(r()),this._handleChange=()=>{this._onChange.fire(this.get())},this._crossTabEvents=e,this._jsonKeyValueStore=t,this.CROSSTAB_EVENT_NAME=i,this.JSON_STORE_KEY=s,this.defaultStoreValue=this._serialize(n),this._subscribe()}get(){const e=this._jsonKeyValueStore.getJSON(this.JSON_STORE_KEY,this.defaultStoreValue);return this._deserialize(e)}set(e,t){const i=this._serialize(e);this._jsonKeyValueStore.setJSON(this.JSON_STORE_KEY,i,t),this._crossTabEvents.emit(this.CROSSTAB_EVENT_NAME),this._onChange.fire(e)}getOnChange(){return this._onChange}destroy(){this._unsubscribe(),this._onChange.destroy(),delete this._onChange}_subscribe(){this._crossTabEvents.on(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.subscribe(this,this._handleChange)}_unsubscribe(){this._crossTabEvents.off(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.unsubscribe(this,this._handleChange)}}class o extends n{_serialize(e){return e}_deserialize(e){return e}}},86879:(e,t,i)=>{"use strict";i.d(t,{LoadChartService:()=>d});var s=i(67337),r=i(9127);class n extends r.CommonJsonStoreService{constructor(e,t){super(e,t,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})}}var o=i(43007),a=i(21097),l=i(56840),c=i(27772),h=i(22729);class d extends h.DialogRenderer{constructor(e=null){super(),this._favoriteChartsService=new n(a.TVXWindowEvents,l),this._chartWidgetCollection=null,this._promise=null,this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._getChartEntry=e=>({id:e.id,url:e.url,title:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,active:()=>this._isActiveChart(e.id),openAction:()=>o.backend.loadChart(e),deleteAction:()=>o.backend.removeChart(e.image_url).then(()=>this._deleteChart(e.id)),favoriteAction:this._updateFavorites}),this._updateFavorites=e=>this._favoriteChartsService.set(e),this._isActiveChart=e=>null!==this._chartWidgetCollection&&e===this._chartWidgetCollection.metaInfo.id.value(),this._deleteChart=e=>{this._isActiveChart(e)&&(s.enabled("saveload_storage_customization")?null!==this._chartWidgetCollection&&this._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)},this._chartWidgetCollection=e}showLoadDialog(){(0,c.checkAuthBeforeSaveLoad)(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})}show(){this.showLoadDialog()}hide(){var e,t;null===(e=this._dialog)||void 0===e||e.hide(),null===(t=this._dialog)||void 0===t||t.visible().unsubscribe(this._subscribe)}_showLoadDialog(){(s.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):o.backend.getCharts()).then(e=>e.map(this._getChartEntry)).then(e=>{ +const t=this._promise=Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(2e3),i.e(6363),i.e(7962),i.e(8986),i.e(5774),i.e(1112),i.e(6909),i.e(6427),i.e(5325),i.e(9255),i.e(3304),i.e(1e3),i.e(3245),i.e(5009)]).then(i.bind(i,9512)).then(i=>{if(this._promise===t){this._dialog&&(this._dialog.hide(),this._dialog.visible().unsubscribe(this._subscribe));const t={charts:e,favoriteChartsService:this._favoriteChartsService,chartWidgetCollection:this._chartWidgetCollection};this._dialog=new i.LoadChartDialogRenderer(t),this._dialog.visible().subscribe(this._subscribe),this._dialog.show()}})})}}},41051:(e,t,i)=>{"use strict";i.d(t,{SaveChartService:()=>v});var s=i(67337),r=i(52714),n=i.n(r),o=i(76422),a=i(68425),l=i(27772);i(94419);var c=i(28353),h=i(43007);async function d(){return!0}var u=i(3615);const p=s.enabled("confirm_overwrite_if_chart_layout_with_name_exists");class _{constructor(e,t,i){this._visibility=new(n())(!1),this._chartWidgetCollection=e,this._doSave=t,this._doLoad=i}hide(){var e;null===(e=this._hide)||void 0===e||e.call(this),this._visibility.setValue(!1)}visible(){return this._visibility.readonly()}_showRenameDialog(e,t,i,s){return(0,u.showRename)({title:this._renameDialogTitle(),text:this._renameDialogText(),maxLength:64,initValue:e,onRename:async e=>{if(!p)return void this._renameActionHandler(e,t,i,s);const{newValue:r,dialogClose:n}=e,o=(await this._doLoad()).find(e=>e.name===r);n(),void 0!==o?this._hide=await(0,u.showConfirm)({title:(0,c.t)("A layout with that name already exists"),text:(0,c.t)("A layout with that name already exists. Do you want to overwrite it?"),onConfirm:({dialogClose:e})=>{e(),this._doOverwriteExistingLayout(o.id,r,t,i,s)},onCancel:({dialogClose:e})=>{e(),this._showRenameDialog(r,t,i,s)}}):this._renameActionHandler({newValue:r,dialogClose:n},t,i,s)},onClose:()=>this._visibility.setValue(!1)})}_doSaveCurrentLayout(e,t,i,s){const r=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(t,i,()=>{this._chartWidgetCollection.metaInfo.name.setValue(r),null==s||s()})}_doOverwriteExistingLayout(e,t,i,s,r){const n=this._chartWidgetCollection.metaInfo.name.value();this._chartWidgetCollection.metaInfo.id.setValue(e),this._chartWidgetCollection.metaInfo.name.setValue(t),this._doSave(i,s,()=>{this._chartWidgetCollection.metaInfo.name.setValue(n),null==r||r()})}}class m extends _{cloneChart(){this._cloneChart().then(()=>this._visibility.setValue(!0))}show(){(0,l.checkAuthBeforeSaveLoad)(()=>this.cloneChart(),{source:"Clone chart"})}_renameDialogTitle(){return(0,c.t)("Copy Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t}){s.enabled("saveload_storage_customization")&&this._doCloneCurrentLayout(e),t()}async _cloneChart(){const e=await d();e&&(this._hide=await this._showRenameDialog(this._getInitialRenameDialogInput()))}_doCloneCurrentLayout(e){const t=this._chartWidgetCollection.metaInfo.name.value() +;this._chartWidgetCollection.metaInfo.uid.deleteValue(),this._chartWidgetCollection.metaInfo.id.deleteValue(),this._chartWidgetCollection.metaInfo.name.setValue(e),this._doSave(void 0,void 0,()=>{this._chartWidgetCollection.metaInfo.name.setValue(t)})}_getInitialRenameDialogInput(){return(0,c.t)("{title} copy",{context:"ex: AAPL chart copy"}).format({title:this._chartWidgetCollection.metaInfo.name.value()})}}class g extends _{show(e,t,i){this._saveNewChart(e,t,i).then(()=>this._visibility.setValue(!0))}_renameDialogTitle(){return(0,c.t)("Save New Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t},i,s,r){this._doSaveCurrentLayout(e,i,s,r),t()}async _saveNewChart(e,t,i){await d();const s=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showRenameDialog(s,e,t,i)}}class f extends _{show(){(0,l.checkAuthBeforeSaveLoad)(()=>this._show(),{source:"Rename chart"})}_renameDialogTitle(){return(0,c.t)("Rename Chart Layout")}_renameDialogText(){return(0,c.t)("Enter a new chart layout name")+":"}_renameActionHandler({newValue:e,dialogClose:t}){this._doSaveCurrentLayout(e),t()}async _show(){await this._renameChart(),this._visibility.setValue(!0)}async _renameChart(){const e=this._chartWidgetCollection.metaInfo.name.value();this._hide=await this._showRenameDialog(e)}}class v{constructor(e,t){this._autosaveTimer=null,this._watchedAutoSaveEnabled=new(n()),this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=(e,t,i,s)=>{const r=this._chartWidgetCollection;void 0!==e&&e(),this._chartSaver.saveChartSilently(e=>{var i;i=r.metaInfo.uid.value(),"/chart/"===location.pathname&&(location.href="/chart/"+i),void 0!==t&&t(e)},()=>{void 0!==i&&i()},{autoSave:Boolean(s)})},this._doLoad=()=>h.backend.getCharts(),this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new g(e,this._doSave,this._doLoad),this._renameController=new f(e,this._doSave,this._doLoad),this._saveAsController=new m(e,this._doSave,this._doLoad),this._chartChangesWatcher=new a.ChartChangesWatcher(e.undoHistory,e.lineToolsSynchronizerHasChanges,t,o),e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged)}autoSaveEnabled(){return this._watchedAutoSaveEnabled}destroy(){0}getCreateController(){return this._createController}getRenameController(){return this._renameController}getSaveAsController(){return this._saveAsController}cloneChart(){this._saveAsController.cloneChart()}saveChartAs(){this._saveAsController.show()}renameChart(){this._renameController.show()}saveNewChart(e,t,i){this._createController.show(e,t,i)}saveExistentChart(e,t,i){this._doSave(e,t,i)}hasChanges(){return this._chartChangesWatcher.hasChanges()}saveChartOrShowTitleDialog(e,t,i){const s=window.saver.isSaveInProcess(),r=this._chartChangesWatcher.hasChanges(),n=!!this._chartWidgetCollection.metaInfo.id.value();window.is_authenticated&&(s||!r&&n)||(0, +l.checkAuthBeforeSaveLoad)(()=>{null!=this._chartWidgetCollection.metaInfo.id.value()?this.saveExistentChart(e,t,i):this.saveNewChart(e,t,i)},{source:"Save chart",sourceMeta:"Chart"})}whenReadyToSave(e){this._chartSaver.whenReadyToSave(e)}saveToJSON(){return this._chartSaver.saveToJSON()}saveChartSilently(e,t,i){this._chartSaver.saveChartSilently(e,t,i)}setAutoSaveEnabled(e){window.is_authenticated&&window.saver.isSaveInProcess()||(0,l.checkAuthBeforeSaveLoad)(()=>{this._watchedAutoSaveEnabled.setValue(e)},{source:"AutoSave chart"})}saveChartLineTools(e,t,i){return this._chartSaver.saveChartLineTools(e,t,i)}_autoSaveEnabledSettingHandler(e){0}_toggleAutoSaveEnabled(e){0}_enableAutoSave(){0}_disableAutoSave(){0}_onStateChanged(e){e?this._startAutosave():this._stopAutosave()}_startAutosave(){s.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout(()=>{this._autosaveTimer=null,this._chartWidgetCollection.metaInfo.id.value()&&this._doSave(void 0,void 0,void 0,!0)},6e4))}_stopAutosave(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)}}},13647:(e,t,i)=>{"use strict";i.d(t,{showMarketOpenStatusProperty:()=>o,restoreShowMarketOpenStatusProperty:()=>a});var s=i(32255),r=i(56840);function n(){return r.getBool("Chart.ShowMarketOpenStatus",!0)}const o=(0,s.createPrimitiveProperty)(n());function a(){o.setValue(!0),r.remove("Chart.ShowMarketOpenStatus")}r.onSync.subscribe(null,()=>o.setValue(n())),o.subscribe(null,()=>r.setValue("Chart.ShowMarketOpenStatus",o.value()))},46723:(e,t,i)=>{"use strict";i.d(t,{StudyTemplates:()=>p});var s=i(28353),r=i(43007),n=i(51768),o=i(2872),a=i.n(o),l=i(52714),c=i.n(l),h=i(3615);const d=(0,i(98125).getLogger)("Platform.StudyTemplates"),u=(0,s.t)("Do you really want to delete Study Template '{name}' ?");class p{constructor(e){this._chartWidgetCollection=e.chartWidgetCollection,this._favoriteStudyTemplatesService=e.favoriteStudyTemplatesService,window.loginStateChange.subscribe(null,r.backend.invalidateStudyTemplatesList),this._list=new(c())([]),this._onChange=new(a()),this._list.subscribe(()=>this._onChange.fire())}findRecordByName(e){return this._list.value().find(t=>t.name===e)||null}showSaveAsDialog(){const e=this._chartWidgetCollection.activeChartWidget.value().model();Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(9289),i.e(7962),i.e(8986),i.e(7836),i.e(7427),i.e(5998),i.e(7552),i.e(7345),i.e(5804),i.e(1e3),i.e(2502),i.e(6631)]).then(i.bind(i,33165)).then(t=>{new t.StudyTemplateSaver({controller:e,onSave:e=>{this._list.setValue(e)}}).show()})}applyTemplate(e){const t=this.findRecordByName(e);null!==t?window.runOrSignIn(()=>{const e=this._chartWidgetCollection.activeChartWidget.value(),i=i=>{(0,n.trackEvent)("GUI","Load Study Template"),e.model().applyStudyTemplate(JSON.parse(i.content),t.name)};void 0!==t.id?t.is_default?r.backend.getStandardStudyTemplateContentById(t.id,i):r.backend.getStudyTemplateContentById(t.id,i):r.backend.getStudyTemplateContent(t.name).then(i)},{ +source:"Study templates apply"}):d.logNormal(`Template ${e} not found in cache`)}deleteStudyTemplate(e){const t=this.findRecordByName(e);null!==t?this._removeTemplate(t):d.logNormal(`Template ${e} not found in cache`)}list(){return this._list.value()}getOnChange(){return this._onChange}refreshStudyTemplateList(e){r.backend.getStudyTemplatesList().then(t=>{this._list.setValue(t),void 0!==e&&e()})}invalidate(){r.backend.invalidateStudyTemplatesList()}_removeTemplate(e){window.runOrSignIn(()=>{(0,h.showConfirm)({text:u.format({name:e.name}),onConfirm:({dialogClose:t})=>new Promise(i=>{const s=()=>{this.refreshStudyTemplateList(()=>{const s=this.list();this._list.setValue(s.filter(t=>t!==e)),this._favoriteStudyTemplatesService&&this._favoriteStudyTemplatesService.remove(e.name),i(),t()})};r.backend.invalidateStudyTemplatesList(),void 0!==e.id?r.backend.removeStudyTemplateById(e.id,s):r.backend.removeStudyTemplate(e.name).then(s)})})},{source:"Study templates delete"})}}},38318:(e,t,i)=>{"use strict";i.d(t,{canShowSpreadActions:()=>c,globalKeypressMatches:()=>h,intervalIsSupported:()=>l,parseIntervalValue:()=>a});var s=i(67337),r=i(9315),n=i(82992),o=i(29823);new RegExp("^quandl","i");function a(e){let t;t=/^[,\s]*(^[1-9][0-9]*)?\s*([hdwmst]?)\s*$/i;const i=t.exec(e)||[],s=~~i[1],r=i[2]&&i[2].toUpperCase()||null,n={qty:!s&&r?1:s,unit:r};return n.error=!s&&!r,n.intraday=!(n.error||n.unit&&"H"!==n.unit&&"S"!==n.unit&&"T"!==n.unit),n}function l(e){if(s.enabled("allow_supported_resolutions_set_only")){const t=o.Interval.normalize(e);return null!==t&&(0,r.isAvailable)(t)}{const t=a(e);if(t.error)return!1;if(t.intraday)return n.linking.intraday.value();{const e=n.linking.supportedResolutions.value();return!e||null!==t.unit&&!!~e.indexOf(t.unit)}}}function c(){let e=!1;return s.enabled("show_spread_operators")&&(e=!0),e}function h(e){return!e.ctrlKey&&(!e.metaKey&&(!!e.charCode&&(!(!e.which||e.which<=32)&&(null===e.target||!/^(input|textarea)$/i.test(e.target.tagName)))))}},11181:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(7962),i.e(8986),i.e(7836),i.e(3921),i.e(5774),i.e(2153),i.e(9255),i.e(3304),i.e(1e3),i.e(1594),i.e(1754)]).then(i.bind(i,89324))}i.d(t,{loadNewSymbolSearch:()=>s})},92033:(e,t,i)=>{"use strict";i.d(t,{tradingService:()=>n,waitTradingService:()=>o});var s=i(16216);const r={id:"TradingService"};function n(){return(0,s.hasService)(r)?(0,s.service)(r):null}function o(){return(0,s.waitServiceRegistered)(r)}},88060:(e,t,i)=>{"use strict";i.d(t,{TradingViewApiBase:()=>S});var s=i(88537),r=i(82992),n=i(67337),o=i(51768),a=i(6087),l=i(45345),c=i(2872),h=i.n(c);class d{constructor(e){this._toolbarThemeChanged=new(h()),this._onWatchedThemeChanged=e=>{this._toolbarThemeChanged.fire(e)},this._opts=e,l.watchedTheme.subscribe(this._onWatchedThemeChanged)}destroy(){l.watchedTheme.unsubscribe(this._onWatchedThemeChanged)}isStdTheme(){const e=this._opts.chartWidgetCollection.getAll().every(e=>(0,a.isStdTheme)((0,a.extractThemeFromModel)(e.model()))) +;return Promise.resolve(e)}async setStdTheme(e,t=!0,i){await(0,a.loadTheme)(this._opts.chartWidgetCollection,{themeName:e,standardTheme:!0,syncState:t,noUndo:i})}setStdThemeForLayout(e,t=!0){(0,l.setTheme)(e),t&&(0,a.syncTheme)()}getCurrentThemeName(){return(0,a.getCurrentTheme)().name}toolbarThemeChanged(){return this._toolbarThemeChanged}}var u=i(16906),p=i(85733),_=i(52714),m=i.n(_),g=i(88564);const f=new(h());function v(){throw new Error("not implemented")}class S{constructor(e){this._studyTemplatesDrawer=null,this._fontIconsSettingsDrawer=null,this._favoriteDrawingsToolbar=null,this._themesApi=null,this._newsApiDeferredPromise=null,this._newsApiRejectionReason=null,this._watchlistApiDeferredPromise=null,this._watchlistApiRejectionReason=null,this._widgetbarApiDeferredPromise=null,this._widgetbarApiRejectionReason=null,this._isDestroyed=!1,this._widgebarApi=null,this._magnetEnabledWatchedValue=null,this._magnetModeWatchedValue=null;const{chartApiInstance:t,chartWidgetCollection:i,studyMarket:s,financialsDialog:n,saveChartService:o,loadChartService:a,sharingChartService:l=null}=e;this._chartWidgetCollection=i,this._studyMarket=s,this._financialsDialog=n,this._saveChartService=o,this._sharingChartService=l,this._loadChartLayoutDialog=a,this._intervalsService=null,this._alertsWidgetDialog=null,this._detailsDialogController=null,this._supportedChartStylesSpawn=r.linking.supportedChartStyles.spawn(),this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(null,()=>this.destroy(),!0)}destroy(){var e,t,i;this._supportedChartStylesSpawn.destroy(),null===(e=this._intervalsService)||void 0===e||e.destroy(),null===(t=this._themesApi)||void 0===t||t.destroy(),null===(i=this._widgebarApi)||void 0===i||i.destroy(),this._widgetbarApiRejectionReason="This ITradingViewApi instance has been destroyed",this._isDestroyed=!0}themes(){return null===this._themesApi&&(this._themesApi=new d({chartWidgetCollection:this._chartWidgetCollection})),this._themesApi}dialogs(){var e,t,i,s,r,n;return{Indicators:this._studyMarket,Financials:this._financialsDialog,Compare:this._chartWidgetCollection.getCompareDialogRenderer(),ObjectsTree:null,ChartProperties:this._chartWidgetCollection.getChartPropertiesDialogRenderer(),ChartLayoutSaveAs:null!==(t=null===(e=this._saveChartService)||void 0===e?void 0:e.getSaveAsController())&&void 0!==t?t:null,ChartLayoutRename:null!==(s=null===(i=this._saveChartService)||void 0===i?void 0:i.getRenameController())&&void 0!==s?s:null,ChartLayoutCreate:null!==(n=null===(r=this._saveChartService)||void 0===r?void 0:r.getCreateController())&&void 0!==n?n:null,ChartLayoutLoad:this._loadChartLayoutDialog,Alerts:this._alertsWidgetDialog,Details:this._detailsDialogController,FinancialsCharts:null}}studyTemplatesDrawerApi(){v()}fontIconsSettingsDrawer(){v()}intervalsService(){v()}supportedChartTypes(){return this._supportedChartStylesSpawn}setBrokerName(e){this._chartWidgetCollection.setBroker(e)}drawOnAllChartsMode(e){(0,p.drawOnAllChartsMode)().setValue(e)}disableTrackingEvents(){(0,o.disableTrackingEvents)()} +setSymbolSearchUI(e){v()}setLayout(e,t){(null==t?void 0:t.withUndo)?this._chartWidgetCollection.setChartLayoutWithUndo(e):this._chartWidgetCollection.setLayout(e)}selectLineTool(e,t){if(!u.supportedLineTools[e])return;const i=u.supportedLineTools[e].name;if("icon"===e){const e=null==t?void 0:t.icon;void 0!==e&&p.iconTool.setValue(e)}p.tool.setValue(i)}favoriteDrawingsToolbar(){return i.e(5551).then(i.bind(i,88823)).then(e=>(this._favoriteDrawingsToolbar||(this._favoriteDrawingsToolbar=new e.FavoriteDrawingsApi),this._favoriteDrawingsToolbar))}sharingChart(){return this._sharingChartService}watchlist(){v()}setWatchlistApiPromise(e){v()}news(){v()}setNewsApiPromise(e){v()}widgetbar(){v()}setWidgetbarApiPromise(e){v()}setDebugMode(e){n.setEnabled("charting_library_debug_mode",e)}setFeatureEnabled(e,t){n.setEnabled(e,t)}magnetEnabled(){return null===this._magnetEnabledWatchedValue&&(this._magnetEnabledWatchedValue=new(m())((0,p.properties)().childs().magnet.value()),this._magnetEnabledWatchedValue.subscribe(e=>{(0,g.saveDefaultProperties)(!0),(0,p.properties)().childs().magnet.setValue(e),(0,g.saveDefaultProperties)(!1)}),(0,p.properties)().childs().magnet.subscribe(this,()=>{(0,s.ensureNotNull)(this._magnetEnabledWatchedValue).setValue((0,p.properties)().childs().magnet.value())})),this._magnetEnabledWatchedValue}magnetMode(){return null===this._magnetModeWatchedValue&&(this._magnetModeWatchedValue=new(m())((0,p.properties)().childs().magnetMode.value()),this._magnetModeWatchedValue.subscribe(e=>{(0,g.saveDefaultProperties)(!0),(0,p.properties)().childs().magnetMode.setValue(e),(0,g.saveDefaultProperties)(!1)}),(0,p.properties)().childs().magnetMode.subscribe(this,()=>{(0,s.ensureNotNull)(this._magnetModeWatchedValue).setValue((0,p.properties)().childs().magnetMode.value())})),this._magnetModeWatchedValue}flushBufferedData(){f.fire()}}},28399:(e,t,i)=>{"use strict";var s=i(2872),r=i(52714),n=i(82992).linking,o=(i(81836).createDeferredPromise,i(21269)),a=i(42060).layouts,l=i(76422),c=i(97056).ContextMenuManager,h=i(85733),d=i(9315),u=i(43007).backend,p=i(98125),_=i(3615).showWarning,m=i(3615).showConfirm,g=i(16906),f=i(52092).CLOSE_POPUPS_AND_DIALOGS_COMMAND,v=i(29823).Interval,S=i(88564).saveDefaultProperties,y=i(68425).ChartChangesWatcher,b=i(88060).TradingViewApiBase,w=i(67072),C=i(152).getStudyInputsInfo,P=i(70120).getStudyStylesInfo;e.exports=class extends b{constructor(e){const{chartWidgetCollection:t,saveChartService:i,loadChartService:r,sharingChartService:o,alertsDispatcher:a,supportTicketData:l,favoriteServices:c,chartApiInstance:h=null,studyMarket:d=null,financialsDialog:u=null}=e;super({chartApiInstance:h,chartWidgetCollection:t,studyMarket:d,financialsDialog:u,saveChartService:i,loadChartService:r,sharingChartService:o}),this._chartApiInstance=h,this._loadChartService=r,this._alertsDispatcher=a,this._supportTicketData=l,this._favoriteServices=c,this._proxyWatchListChangedDelegate=null,this._lockDrawingsWatchedValue=null,this._hideDrawingsWatchedValue=null,this._hideIndicatorsWatchedValue=null, +this._magnetEnabledWatchedValue=null,this._magnetModeWatchedValue=null,this._replayApi=null,this._chartChangesWatcher=null,this._hasChartChangesWatchedValue=null,this._getDataSourceHub=function(){return t.activeChartWidget.value().model().model()},this._chartWidgetCollection.getResizerDetacher=function(){return t.activeChartWidget.value().getResizerDetacher()},this._alertService=this._alertsDispatcher?new(void 0)(this._alertsDispatcher,this._getDataSourceHub):null,this._activeChangedChangedDelegate=new s,this._chartWidgetCollection.activeChartWidget.subscribe(function(){this._activeChangedChangedDelegate.fire()}.bind(this)),this._chartWidgets=new WeakMap,this._activateChart=function(e){t.activeChartWidget.setValue(e)},this.linking=n}subscribe(e,t){l.subscribe(e,t)}unsubscribe(e,t){l.unsubscribe(e,t)}onContextMenu(e){l.subscribe("onContextMenu",(function(t){t.callback(e(t.unixtime,t.price))}))}onGrayedObjectClicked(e){l.subscribe("onGrayedObjectClicked",e)}activeChart(){return this._getChartWidgetApi(this._chartWidgetCollection.activeChartWidget.value())}_getChartWidgetApi(e){var t=this._chartWidgets.get(e);return void 0===t&&(t=new o(e,this._activateChart.bind(null,e)),this._chartWidgets.set(e,t)),t}onActiveChartChanged(){return this._activeChangedChangedDelegate}changeSymbol(e,t,i){n.interval.setValue(v.normalize(t)),n.symbol.setValue(e),i&&this.activeChart().onDataLoaded().subscribe(null,i,!0)}layout(){return this._chartWidgetCollection.layout.value()}layoutName(){return this._chartWidgetCollection.metaInfo.name.value()}layoutNameWatchedValue(){return this._chartWidgetCollection.metaInfo.name.readonly()}layoutSettingsDrawer(){throw new Error("not implemented")}chartsCount(){return a[this.layout()].count}viewMode(){throw new Error("not implemented")}viewModeWatchedValue(){throw new Error("not implemented")}setForceFullscreenMode(){throw new Error("not implemented")}setMultichartMode(){throw new Error("not implemented")}setActiveChart(e){throw new Error("not implemented")}chart(e){if(void 0===e&&(e=0),e<0||e>=this.chartsCount())throw Error("Incorrect index: "+e);return this._getChartWidgetApi(this._chartWidgetCollection.getAll()[e])}getSymbolInterval(e){var t={symbol:n.symbol.value(),interval:n.interval.value()};return e&&e(t),t}saveChart(e){if(this._saveChartService){var t=this;this._saveChartService.whenReadyToSave((function(){var i=t._saveChartService.saveToJSON();return e&&e(JSON.parse(i.content))}))}}loadChart(e){this._chartApiInstance.disconnect(),this._chartWidgetCollection.loadContent(e.json),this._chartWidgetCollection.purgeUnusedWidgets(),e.extendedData&&(this._chartWidgetCollection.metaInfo.id.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.uid.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.name.setValue(e.extendedData.name)),this._chartApiInstance.connect(),n.symbol.setValue(this.activeChart().symbol()),l.emit("chart_loaded")}getStudiesList(){return this._chartApiInstance.allStudiesMetadata().filter((function(e){return!e.is_hidden_study})).map((function(e){ +return e.description}))}getStudyInputs(e){{const t=w.findStudyMetaInfoByDescription(this._chartApiInstance.allStudiesMetadata(),e);return C(t)}}getStudyStyles(e){{const t=w.findStudyMetaInfoByDescription(this._chartApiInstance.allStudiesMetadata(),e);return P(t)}}getSavedCharts(e){u.getCharts().then(e)}loadChartFromServer(e){u.loadChart(e)}saveChartToServer(e,t,i){this._saveChartService&&this._saveChartService.saveChartSilently(e,t,i)}setAutosave(e){this._saveChartService&&this._saveChartService.autoSaveEnabled().setValue(e)}removeChartFromServer(e,t){u.removeChart(e).then(t)}getIntervals(){var e=[],t=d.getCustomResolutions();return null!==this._chartApiInstance&&(e=this._chartApiInstance.defaultResolutions()),d.mergeResolutions(e,t)}closePopupsAndDialogs(){c.hideAll(),l.emit(f)}selectedLineTool(){for(var e=Object.keys(g.supportedLineTools),t=h.tool.value(),i=0;i{"use strict";i.d(t,{addPlusButtonProperty:()=>o,restoreAddPlusButtonSettingsValue:()=>a});var s=i(56840),r=i(32255);function n(){return s.getBool("add_plus_button",!0)}const o=(0,r.createPrimitiveProperty)(n());function a(){o.setValue(!0),s.remove("add_plus_button")}s.onSync.subscribe(null,()=>o.setValue(n())),o.listeners().subscribe(null,()=>s.setValue("add_plus_button",o.value()))},20165:(e,t,i)=>{"use strict";i.d(t,{alignToStep:()=>n});var s=i(60521),r=i.n(s);function n(e,t){return r()(e).div(t).round(0,r().roundHalfUp).mul(t).toNumber()}},44419:(e,t,i)=>{"use strict";i.d(t,{AppliedTimeFrame:()=>r});var s=i(40144);class r{constructor(e){this._appliedTimeFrame=new s.WatchedObject(null),this._appliedTimeFrameInfo=null,this._appliedTimeFrameChangedBound=this._appliedTimeFrameChanged.bind(this),this._model=e,e.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),this._appliedTimeFrame.subscribe(this._appliedTimeFrameChangedBound)}destroy(){this._appliedTimeFrame.unsubscribe(this._appliedTimeFrameChangedBound),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.mainSeries().dataEvents().seriesTimeFrame().unsubscribeAll(this)}appliedTimeFrame(){return this._appliedTimeFrame}_appliedTimeFrameChanged(){this._model.timeScale().logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame)}_onSeriesTimeFrame(e,t,i,s){if(s){const e=this._model.timeScale();this._appliedTimeFrameInfo={logicalRange:e.logicalRange(),baseIndex:e.baseIndex()},e.logicalRangeChanged().subscribe(this,this._invalidateAppliedTimeFrame)}}_invalidateAppliedTimeFrame(){if(null===this._appliedTimeFrameInfo)return;const e=this._model.timeScale(),t=e.logicalRange(),i=e.baseIndex(),s=this._appliedTimeFrameInfo.logicalRange,r=this._appliedTimeFrameInfo.baseIndex;(null===t||null===s||Math.abs(i-t.left()-(r-s.left()))>=.01||Math.abs(i-t.right()-(r-s.right()))>=.01)&&this._appliedTimeFrame.setValue(null)}}},67396:(e,t,i)=>{"use strict";i.d(t,{defaultsPreferencesByWhiteList:()=>P,preferencesByWhiteList:()=>C});var s=i(80643),r=i(27759);var n=i(98125),o=i(3825),a=i(59803),l=i(47484),c=i(15840),h=i(49642);const d=(0,n.getLogger)("Chart.ApplyPreferencesToAllCharts"),u={color:"",style:0},p={autoScale:!1,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!1,isInverted:!1,indexedTo100:!1},_={backgroundType:h.ColorType.Solid, +background:"",backgroundGradientStartColor:"",backgroundGradientEndColor:"",topMargin:0,bottomMargin:0,rightOffset:0,horzGridProperties:(0,c.deepExtend)({},u),vertGridProperties:(0,c.deepExtend)({},u),crossHairProperties:(0,c.deepExtend)({},{color:"",style:0,transparency:0,width:0}),legendProperties:(0,c.deepExtend)({},{showStudyArguments:!1,showStudyTitles:!1,showStudyValues:!1,showSeriesTitle:!1,showSeriesOHLC:!1,showLegend:!1,showBarChange:!0,showVolume:!1,showBackground:!0,backgroundTransparency:0}),axisProperties:(0,c.deepExtend)({},p),separatorColor:""},m={lineColor:"",textColor:"",fontSize:0,scaleSeriesOnly:!1,showSeriesLastValue:!1,seriesLastValueMode:o.PriceAxisLastValueMode.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalLastValue:!1,showFundamentalNameLabel:!1,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},g={...m},f={visible:!1,futureOnly:!1,breaks:(0,c.deepExtend)({},{color:"",visible:!1,style:0,width:0})},v={style:0,minTick:"",showPriceLine:!1,priceLineWidth:0,priceLineColor:"",baseLineColor:"",showPrevClosePriceLine:!1,showCountdown:!0,prevClosePriceLineWidth:0,sessionId:"regular",prevClosePriceLineColor:"",esdShowDividends:!1,esdShowSplits:!1,esdShowEarnings:!1,esdShowBreaks:!1,showContinuousContractSwitches:!1,showContinuousContractSwitchesBreaks:!1,dividendsAdjustment:!1,backAdjustment:!1,settlementAsClose:!0,statusViewStyle:(0,c.deepExtend)({},{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"}),priceAxisProperties:(0,c.deepExtend)({},p),highLowAvgPrice:(0,c.deepExtend)({},{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLabelVisible:!1,averageClosePriceLineVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:0,averagePriceLineColor:"",averagePriceLineWidth:0}),candleStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",barColorsOnPrevClose:!1}),hollowCandleStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1,drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:""}),barStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0}),lineStyle:(0,c.deepExtend)({},{color:"",linestyle:0,linewidth:0,styleType:0}),areaStyle:(0,c.deepExtend)({},{color1:"",color2:"",linecolor:"",linestyle:0,linewidth:0,transparency:0}),baselineStyle:(0,c.deepExtend)({},{topFillColor1:"",topFillColor2:"",bottomFillColor1:"",bottomFillColor2:"",topLineColor:"",bottomLineColor:"",baselineColor:"",topLineWidth:0,bottomLineWidth:0,transparency:0,baseLevelPercentage:0}),hiloStyle:(0,c.deepExtend)({},{color:"",showBorders:!1,borderColor:"",showLabels:!1,labelColor:"",fontSize:0,drawBody:!0}),haStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",drawWick:!1,drawBorder:!1, +drawBody:!0,borderColor:"",borderUpColor:"",borderDownColor:"",wickColor:"",wickUpColor:"",wickDownColor:"",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{}}),renkoStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",wickUpColor:"",wickDownColor:"",inputs:{boxSize:0,style:"",atrLength:0,wicks:!1,sources:"",source:""}}),pbStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",borderUpColor:"",borderDownColor:"",upColorProjection:"",downColorProjection:"",borderUpColorProjection:"",borderDownColorProjection:"",inputs:{source:"",lb:0}}),kagiStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{style:"",atrLength:0,reversalAmount:0}}),pnfStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",inputs:{reversalAmount:0,boxSize:0,style:"",atrLength:0}}),rangeStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",upColorProjection:"",downColorProjection:"",thinBars:!1,inputs:{range:0,phantomBars:!1}}),columnStyle:(0,c.deepExtend)({},{upColor:"",downColor:"",barColorsOnPrevClose:!1})},S={priceScaleSelectionStrategyName:"auto",timeScale:(0,c.deepExtend)({},{defaultRightOffset:0}),mainSeries:(0,c.deepExtend)({},v),sessions:(0,c.deepExtend)({},l.sessionsPreferencesDefault),paneProperties:(0,c.deepExtend)({},_),chartEventsSourceProperties:(0,c.deepExtend)({},f),tradingProperties:(0,c.deepExtend)({},r.tradingPreferencesDefault)},y={timezone:"",scalesProperties:(0,c.deepExtend)({},g),...S},b={scalesProperties:(0,c.deepExtend)({},m),...S};function w(e,t,i,r,n=!0){if(void 0===t[e])return d.logDebug(`We haven't had this property ${r}.${e} yet, please, remove it from whiteList`),null;if((0,s.isObject)(i[e])){const s=Object.keys(i[e]);let o="";return s.map(s=>({[s]:w(s,t[e],i[e],`${r}.${e}`,n)})).reduce((e,t)=>(o=Object.keys(t)[0],e[o]=t[o],e),{})}return n?t[e].value():t[e]}function C(e,t,i=y){const s={timezone:"",priceScaleSelectionStrategyName:"auto",timeScale:{defaultRightOffset:e.timeScale().defaultRightOffset().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),a=Object.keys(n),l=t.properties(),c=e.properties(),h=i.sessions,d=Object.keys(h),u=e.sessions().properties();return a.forEach(e=>{s.mainSeries[e]=w(e,l,n,"mainSeries")}),d.forEach(e=>{s.sessions[e]=w(e,u,h,"sessions")}),o.forEach(e=>{r.includes(e)||(s[e]=w(e,c,i,"preferences"))}),s}function P(e,t,i=b){const s={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue()},mainSeries:{},sessions:(0,c.deepExtend)({},l.sessionsPreferencesDefault),paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),h=Object.keys(n),d=(0, +a.factoryDefaults)("chartproperties.mainSeriesProperties"),u=(0,a.factoryDefaults)("chartproperties");return h.forEach(e=>{s.mainSeries[e]=w(e,d,n,"mainSeries",!1)}),o.forEach(e=>{r.includes(e)||(s[e]=w(e,u,i,"preferences",!1))}),s}},87426:(e,t,i)=>{"use strict";i.d(t,{axisLabelBackgroundColor:()=>r});var s=i(45112);const r={common:s.colorsPalette["color-tv-blue-500"],active:s.colorsPalette["color-tv-blue-800"]}},65862:(e,t,i)=>{"use strict";i.d(t,{createDwmAligner:()=>c,isAlignmentEnabled:()=>h,createTimeToBarTimeAligner:()=>d});var s=i(10480),r=i(67337),n=i(29823),o=i(29617),a=i(69177);const l=new o.SessionInfo("Etc/UTC","0000-0000:1234567");function c(e,t){if(!h()||!n.Interval.isDWM(e))return null;const i=new o.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),r=(0,a.newBarBuilder)(e,i,l);return{timeToSessionStart:e=>r.tradingDayToSessionStart(e),timeToExchangeTradingDay:e=>{const t=s.utc_to_cal(i.timezone,e),r=i.spec.correctTradingDay(t);return s.set_hms(r,0,0,0,0,s.get_timezone("Etc/UTC")),r.getTime()}}}function h(){return!r.enabled("disable_resolution_rebuild")}function d(e,t){if(!h())return e=>e;const i=new o.SessionInfo(t.timezone,t.session,t.session_holidays,t.corrections),s=(0,a.newBarBuilder)(e,i,i,!1);return e=>s.alignTimeIfPossible(e)}},29617:(e,t,i)=>{"use strict";i.d(t,{SessionInfo:()=>o,BarBuilderBase:()=>a});var s=i(10480),r=i(68684),n=i(90388);class o{constructor(e,t,i,s){this.init(e,t,i,s),this._state={timezone:e,spec:t,holidays:i,corrections:s}}init(e,t,i,r){this.timezone=s.get_timezone(e),this.spec=new n.SessionSpec(e,t,i,r)}state(){return this._state}static fromState(e){return new o(e.timezone,e.spec,e.holidays,e.corrections)}}class a{alignTime(e){if(isNaN(e))return NaN;let t=this.indexOfBar(e);return t===r.SessionStage.POST_SESSION&&(this.moveTo(e),t=this.indexOfBar(e)),t<0?NaN:this.startOfBar(t)}}},69177:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SessionInfo:()=>o.SessionInfo,alignExchangeTimeToSessionStartAndReturnUTC:()=>P,alignPeriodsBackForDataRequest:()=>y,alignPeriodsBackForVisibleRange:()=>b,getPeriodsBetweenDates:()=>C,isTradingNow:()=>T,newBarBuilder:()=>S});var s=i(10480),r=i(29823),n=i(64514),o=i(29617),a=i(68684);class l extends o.BarBuilderBase{constructor(e,t){super(),this._sessionStartMs=-Number.MAX_VALUE,this._sessionEndMs=-Number.MAX_VALUE,this._periodSec=e,this._session=t}alignTimeIfPossible(e){const t=this.alignTime(e);return isNaN(t)?e:t}indexOfBar(e){return e=this._sessionEndMs?a.SessionStage.POST_SESSION:(0,n.toInt)(s.time_seconds_diff(e,this._sessionStartMs)/this._periodSec)}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._session.timezone,this._sessionStartMs-1),t=this._session.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._session.timezone,t)}if(e===a.SessionStage.POST_SESSION)return this._sessionEndMs;if(e<0)throw new Error("Negative offset is not supported");return this._sessionStartMs+s.time_seconds(this._periodSec*e)}endOfBar(e){ +if(e<0)throw new Error("Index cannot be negative");const t=this.startOfBar(e)+1e3*this._periodSec;return t>this._sessionEndMs?this._sessionEndMs:t}isLastBar(e,t){return t>=this._sessionStartMs+s.time_seconds(this._periodSec*(e+1)-1)}moveTo(e){const t=this._session.timezone,i=s.utc_to_cal(t,e),r=this._session.spec.alignToSessionStart(i);this._sessionStartMs=s.cal_to_utc(t,i),s.add_minutes(i,r),this._sessionEndMs=s.cal_to_utc(t,i)}indexOfLastBarInSession(){return(0,n.toInt)((this._sessionEndMs-1-this._sessionStartMs)/1e3/this._periodSec)}moveNext(){this.moveTo(this._sessionEndMs)}}var c=i(26985);function h(e,t){const i=s.clone(t),r=e.businessDaysToCalendarDays(i,1);r>1&&s.add_date(i,r-1);const n=e.leftBorderOfDailyBar(i);if(null===n)throw new Error("Cannot calculate left border of daily bar");return s.cal_to_utc(s.get_timezone(e.timezone()),n)}class d extends o.BarBuilderBase{constructor(e,t,i,s,r=!1){super(),this._periodStart=-Number.MAX_VALUE,this._periodEnd=-Number.MAX_VALUE,this._periodLastBarStart=-Number.MAX_VALUE,this._periodStartDay=new c.BusinessDay(0,0,0),this._periodEndDay=new c.BusinessDay(0,0,0),this._period=i,this._sessionTgt=e,this._builder=s,this._useBusinessDays=r,this._sessionSrc=r?new o.SessionInfo("Etc/UTC","24x7"):t||e}builder(){return this._builder}alignTimeIfPossible(e){return this.tradingDayToSessionStart(e)}tradingDayToSessionStart(e){return this.moveTo(e),this.startOfBar(0)}indexOfBar(e){if(this._useBusinessDays){const t=c.BusinessDay.fromCalendar(s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e));return t.before(this._periodStartDay)?a.SessionStage.PRE_SESSION:this._periodEndDay.before(t)?a.SessionStage.POST_SESSION:0}return e=this._periodEnd?a.SessionStage.POST_SESSION:0}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._sessionTgt.timezone,this._periodStart-1),t=this._sessionTgt.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._sessionTgt.timezone,t)-1}return e===a.SessionStage.POST_SESSION||e>0?this._periodEnd:e===a.SessionStage.LASTBAR_SESSION?this._periodLastBarStart:this._periodStart}moveTo(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e);this._sessionSrc.spec.correctTradingDay(t);const i=s.get_year(t),r=this._indexOfPeriodInYear(t),n=r+this._period,o=this._sessionTgt.spec,a=this._sessionTgt.timezone,l=this._builder.startOfPeriod(a,r,i);this._periodStart=h(o,l);const d=s.clone(l),u=o.businessDaysToCalendarDays(d,1);u>1&&s.add_date(d,u-1),this._periodStartDay=c.BusinessDay.fromCalendar(d);const p=this._builder.startOfPeriod(a,n,i);this._periodEnd=h(o,p);const _=s.clone(p);for(s.add_date(_,-1);o.isCalWeekEnd(_);)s.add_date(_,-1);this._periodEndDay=c.BusinessDay.fromCalendar(_),s.add_date(p,-1),function(e,t){for(;e.isCalWeekEnd(t);)s.add_date(t,-1)}(this._sessionTgt.spec,p),this._periodLastBarStart=h(o,p),(this._periodLastBarStart=this._periodLastBarStart}currentRange(){return{from:this._periodStartDay,to:this._periodEndDay}}indexOfBarInYear(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e),i=s.get_year(t),r=this._builder.indexOfPeriod(t),o=this._sessionTgt.timezone;let a=this._builder.startOfPeriod(o,r,i),l=h(this._sessionTgt.spec,a);return a=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),l),i=0&&(r-=7),(0,n.toInt)((r+i)/7))}class _{indexOfPeriod(e){return s.get_day_of_year(e)-1}startOfPeriod(e,t,i){const r=s.days_per_year(i);return s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1+Math.min(t,r))}}class m extends _{constructor(e){super(),this._sessionsSpec=e}indexOfPeriod(e){return super.indexOfPeriod(e)-function(e,t){const i=p(e,t),r=s.get_cal(s.get_timezone("Etc/UTC"),s.get_year(t),s.JANUARY,1);s.add_date(r,7*i);const n=i*e.weekEndsCount()+e.holidaysFromYearStart(r),o=s.get_day_of_year(t)-s.get_day_of_year(r);return n+o-e.calendarDaysToBusinessDays(r,o)}(this._sessionsSpec,e)}startOfPeriod(e,t,i){const r=7-this._sessionsSpec.weekEndsCount(),o=Math.max(0,(0,n.toInt)(t/r)-1),a=s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1),l=s.get_days_per_year(a);if(s.add_date(a,7*o),(t-=r*o-this._sessionsSpec.holidaysFromYearStart(a))>0){const e=this._sessionsSpec.businessDaysToCalendarDays(a,t);s.add_date(a,e)}let c=s.get_day_of_year(a)-1;return is.get_days_per_year(r)?this.startOfPeriod(e,0,i+1):(s.add_date(r,a),r)}}class v{ +indexOfPeriod(e){return s.get_month(e)}startOfPeriod(e,t,i){if(t<0){const e=(0,n.toInt)((11-t)/12);i-=e,t+=12*e}else t>s.DECEMBER&&(i++,t=s.JANUARY);return s.get_cal(s.get_timezone("Etc/UTC"),i,t,1)}}function S(e,t,i,s=!1){const n=r.Interval.parse(e),o=n.multiplier();return n.isMinutes()?new l(60*o,t):n.isSeconds()?new l(o,t):n.isTicks()?new l(1,t):n.isRange()?new l(60*o,t):new d(t,i,o,function(e,t){switch(e){case r.ResolutionKind.Days:return new g(t);case r.ResolutionKind.Weeks:return new f(t);case r.ResolutionKind.Months:return new v}throw new Error("Unknown dwm resolution: "+e)}(n.kind(),t),s)}function y(e,t,i,s,r,n,o){return w(e,t,i,s,r,n,o,0)}function b(e,t,i,s,r,n,o){return w(e,t,i,s,r,n,o,1)}function w(e,t,i,s,n,a,l,c){const h=r.Interval.parse(n+s);if(h.isMonths()){const e=new Date(l);return 0===c&&e.setUTCDate(1),function(e,t){x(e,Math.floor(t/12));let i=e.getUTCMonth()-t%12;i<0&&(x(e,1),i+=12);e.setUTCMonth(i);for(;e.getUTCMonth()!==i;)I(e,1)}(e,a*h.multiplier()),e.getTime()}const d=new o.SessionInfo("Etc/UTC",e,t,i),u=h.inMilliseconds(),p=h.isDWM();let _;_=p?864e5:60*d.spec.maxTradingDayLength()*1e3;let m=0;m=h.isWeeks()?7:7-d.spec.weekEndsCount();const g=_/u,f=m*g;let v;if(a=g&&(f=_/6048e5*g),Math.ceil(f)}function P(e,t){const i=s.clone(t);return e.alignToSessionStart(i),s.cal_to_utc(s.get_timezone(e.timezone()),i)}function T(e,t){const i=s.utc_to_cal(t.timezone,+e);let r=s.get_day_of_week(i),n=s.get_minutes_from_midnight(i);const o=t.spec.findSession(t.spec.getWeekIndex(i),r,n).getEntry();return o.isOvernight()&&n>o.startOffset()+o.length()&&r===o.dayOfWeek()-1&&(r++,n-=1440),r===o.dayOfWeek()&&n>=o.startOffset()&&n{"use strict";i.d(t,{BusinessDay:()=>r});var s=i(10480);class r{constructor(e,t,i){this.year=e,this.month=t,this.day=i}toString(){return`${this.year}-${this.month}-${this.day}`}compareTo(e){return this.year>e.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1}before(e){return-1===this.compareTo(e)}toCalendar(e){return s.get_cal(s.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)}addDays(e){const t=this.toCalendar(s.get_timezone("Etc/UTC"));return s.add_date(t,e),r.fromCalendar(t)}static fromCalendar(e){return new r(s.get_year(e),s.get_month(e)+1,s.get_day_of_month(e))}}}, +68684:(e,t,i)=>{"use strict";var s;i.d(t,{SessionStage:()=>s}),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(s||(s={}))},11075:(e,t,i)=>{"use strict";i.d(t,{extrapolateBarsFrontToTime:()=>r,extrapolateBarsFrontByCount:()=>n});var s=i(68684);function r(e,t,i,s,n=!1){if(t>i){const o=r(e,i,t,s,n);return o.count=-o.count,o}return o(e,t,1,(e,t)=>t>i||0!==s&&e>s,n)}function n(e,t,i,s=!1){const r=i<0?-1:1;return o(e,t,r,(e,t)=>e>=i*r,s)}function o(e,t,i,r,n){let o=0,a=t;e.moveTo(a);let l=0,c=Number.MAX_VALUE,h=!1,d=t;const u=[];for(;!r(o,a);){if(l>15)throw new Error("Internal error 0x10 while extrapolating.");const r=e.indexOfBar(a);if(r===s.SessionStage.PRE_SESSION&&1===i)a=e.startOfBar(0),e.moveTo(a);else if(r===s.SessionStage.PRE_SESSION&&-1===i)a=e.startOfBar(s.SessionStage.PRE_SESSION),e.moveTo(a);else if(r===s.SessionStage.POST_SESSION&&1===i)a=e.startOfBar(s.SessionStage.POST_SESSION),e.moveTo(a);else{if(r===s.SessionStage.POST_SESSION&&-1===i)throw new Error("Internal error 0x12 while extrapolating.");{const p=e.startOfBar(r);if(p>t&&i>0||t>p&&i<0){if(h&&c===p)throw new Error("Internal error 0x11 while extrapolating.");h=!0,c=p,l=0,o++,d=p,n&&u.push(d)}if(0===r&&-1===i)a=p-1;else{a=e.startOfBar(r+i);const t=e.startOfBar(s.SessionStage.POST_SESSION);a>t&&(e.moveTo(t),a=e.startOfBar(0))}}}l++}return{time:d,times:u,count:o}}},37415:(e,t,i)=>{"use strict";i.d(t,{PrePostMarketBarIdentifier:()=>n});var s=i(10480);function r(e,t){return null!==t&&t.to>e&&e>=t.from}class n{constructor(e,t,i,s){this._timezone=e,this._regularSessionSpec=t,this._preMarketSessionSpec=i,this._postMarketSessionSpec=s}getPreAndPostMarketTimes(e){if(0===e.length)return{preMarket:[],postMarket:[]};const t=[],i=[];let r=null,n=null,o=e[0],a=(0,s.utc_to_cal)(this._timezone,o);this._isInPreMarketSession(a)&&(n=o);for(let l=1;l{"use strict";i.d(t,{SessionSpec:()=>f});var s=i(10480),r=i(55257),n=i(26985);function o(e,t){return e.compareTo(t)}class a{constructor(e,t,i){this._dayOfWeek=e,this._start=t,this._length=i}start(){return this._start+s.minutesPerDay*this.sessionStartDaysOffset()}startOffset(){return this._start}sessionStartDaysOffset(){return this._start>=0?0:this._start%s.minutesPerDay==0?-Math.ceil(this._start/s.minutesPerDay):-Math.floor(this._start/s.minutesPerDay)} +sessionEndDaysOffset(){const e=this._start+this._length;return e>=0?0:e%s.minutesPerDay==0?-Math.ceil(e/s.minutesPerDay):-Math.floor(e/s.minutesPerDay)}isOvernight(){return this._start<0}dayOfWeek(){return this._dayOfWeek}sessionStartDayOfWeek(){let e=this._dayOfWeek-this.sessionStartDaysOffset();return es.SATURDAY&&(e=1),e}length(){return this._length}weight(){return this._dayOfWeek*s.minutesPerDay+this._start}compareTo(e){const t=this.weight(),i=t+this._length,s=e.weight(),r=s+e._length;return t<=s&&ss?1:-1}contains(e){const t=60*s.get_hours(e)+s.get_minutes(e);let i=s.get_day_of_week(e)-this._dayOfWeek;i>0&&(i-=7);const r=i*s.minutesPerDay+t;return r>=this._start&&r=48&&e<=57}class _{constructor(){this.entries=[],this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1,this.maxTradingDayLength=0}parseSessions(e,t){var i;let s=!1;this._clear(),this.timezone=e;const{hasErrors:r,spec:n}=this._parseFirstDayOfWeek(t);if("24x7"===n.toLowerCase())for(const e of d)this.entries.push(_._createSessionEntry(e,0,0,0,0));else{let e=!1;const t=new Map;for(const i of n.split("|")){const r=i.split(":");if(1!==r.length&&2!==r.length){s=!0,u.logError("Bad session section: "+i);continue}const n=1===r.length;if(n){if(e){s=!0,u.logError("Duplicated default section: "+i);continue}e=!0}const o=n?h:_._parseWorkingDays(r[1]);for(const e of o)n&&t.has(e)||t.set(e,r[0])}for(const e of d){const i=t.get(e);if(void 0!==i)for(const t of i.split(",")){const{hasErrors:i,sessionEntry:r}=_._parseSessionEntry(e,t);i&&(s=i),this.entries.push(r)}}}this.entries.sort(o);const a=new Map;for(const e of this.entries){const t=e.dayOfWeek();a.set(t,e.length()+(null!==(i=a.get(t))&&void 0!==i?i:0))}return this.maxTradingDayLength=0,a.forEach(e=>{this.maxTradingDayLength=Math.max(this.maxTradingDayLength,e)}),this.weekEndsCount=7-a.size,s||r}static parseHolidaysAndCorrections(e,t,i){const r=new Map,n=new Map,o=e=>{const t=this._parseDay(e),i=t.toString(),s=n.get(i);return void 0!==s?s:(n.set(i,t),t)};if(""!==t){const e=[];for(const i of t.split(",")){if(8!==i.length)throw new Error("bad holiday date: "+i);const t=o(i);r.set(t,e)}}if(""===i)return r;const l=s.get_timezone("Etc/UTC");for(const e of i.split(";")){const t=e.split(":");if(2!==t.length)throw new Error("bad correction section: "+e);const i=[];if("dayoff"!==t[0])for(const e of t[0].split(","))i.push(this._parseSessionEntry(1,e).sessionEntry);for(const e of t[1].split(",")){if(8!==e.length)throw new Error("bad correction date: "+e);const t=o(e),n=s.get_day_of_week(s.get_cal(l,t.year,t.month-1,t.day)),c=[] +;for(const e of i)c.push(new a(n,e.startOffset(),e.length()));r.set(t,c)}}return r}_clear(){this.entries=[],this.timezone="",this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1}_parseFirstDayOfWeek(e){const t=e.split(";");if(t.length>2)return u.logError("Only one `first day` specification expected @ session "+e),{hasErrors:!0,spec:e};if(1===t.length)return{hasErrors:!1,spec:e};let i=1;let r=t[0].indexOf("-")>=0?NaN:parseInt(t[0]);return isNaN(r)&&(i=0,r=parseInt(t[1])),rs.SATURDAY?(u.logError(`Unexpected day index @ session: ${e}; day index ${r}`),{hasErrors:!0,spec:e}):(this.firstDayOfWeek=r,{hasErrors:!1,spec:t[i]})}static _parseDay(e){const t=parseInt(e.substring(0,4)),i=parseInt(e.substring(4,6)),s=parseInt(e.substring(6,8));return new n.BusinessDay(t,i,s)}static _parseSessionEntry(e,t){let i=!1,s=t.split("-");2!==s.length&&(i=!0,u.logError("Bad sessions entry: "+t),s=["0000","0000"]);let r=0,n=s[0];if(n.includes("F")){const e=n.split("F");n=e[0],r=""!==e[1]?parseInt(e[1]):1}let o=0,a=s[1];if(a.includes("F")){const e=a.split("F");a=e[0],o=""!==e[1]?parseInt(e[1]):1}if(!this._isCorrectSession(n)||!this._isCorrectSession(a))throw new Error("Incorrect entry syntax: "+t);const l=n,c=a;return{hasErrors:i,sessionEntry:this._createSessionEntry(e,_._minutesFromHHMM(l),_._minutesFromHHMM(c),r,o)}}static _isCorrectSession(e){return 4===e.length&&p(e.charCodeAt(0))&&p(e.charCodeAt(1))&&p(e.charCodeAt(2))&&p(e.charCodeAt(3))}static _parseWorkingDays(e){const t=[];for(let i=0;i0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);return new a(e,t,i-t)}}function m(e,t){return e.compareTo(t)<0}function g(e,t){const i=(0,r.lowerbound)(e,t,(e,t)=>-1===e.day.compareTo(t));return i===e.length?null:e[i]}class f{constructor(e="Etc/UTC",t="0000-0000",i="",r=""){this._entries=[],this._firstDayOfWeek=s.MONDAY,this._entriesHash=new Map,this._holidayAndCorrectionMap=new Map,this._holidaySessions=[];const n=new _;n.parseSessions(e,t),this._entries=n.entries,this._timezone=n.timezone,this._spec=t,this._firstDayOfWeek=n.firstDayOfWeek,this._weekEndsCount=n.weekEndsCount,this._maxTradingDayLength=n.maxTradingDayLength;const o=_.parseHolidaysAndCorrections(e,i,r),a=s.get_timezone(e);this._isThereCorrections=""!==i||""!==r,o.forEach((e,t)=>{this._holidayAndCorrectionMap.set(t.toString(),e),this._holidaySessions.push({day:t,sessions:e});const i=this.getWeekIndex(t.toCalendar(a));this._entriesHash.set(i,null)}),this._holidaySessions.sort((e,t)=>e.day.compareTo(t.day))}entries(){return this._entries}timezone(){return this._timezone}spec(){return this._spec}firstDayOfWeek(){return this._firstDayOfWeek}addSessionEntry(e,t,i,r,n){0===i&&(i=s.minutesPerDay),r===n&&i<=t&&(r+=1),r>0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);const o=i-t;this._entries.push(new a(e,t,o))}longestSessionLength(){let e=0,t=0 +;for(const t of this._holidaySessions)t.sessions.forEach(t=>{e=Math.max(e,t.length())});return this._entries.forEach(e=>{t=Math.max(t,e.length())}),Math.max(e,t)}isWeekEnd(e){const t=(0,r.lowerbound)(this._entries,new a(e,0,0),(e,t)=>e.dayOfWeek()this._entries.length-1||this._entries[t].dayOfWeek()!==e}isCalWeekEnd(e){const t=s.get_day_of_week(e);if(!this._isThereCorrections)return this.isWeekEnd(t);const i=n.BusinessDay.fromCalendar(e),r=this._holidayAndCorrectionMap.get(i.toString());return void 0===r?this.isWeekEnd(t):0===r.length}hasWeekEnds(){return this.weekEndsCount()>0}weekEndsCount(){return this._weekEndsCount}maxTradingDayLength(){return this._maxTradingDayLength}holidaysFromYearStart(e){if(!this._isThereCorrections)return 0;const t=s.get_timezone(this._timezone),i=new n.BusinessDay(s.get_year(e),s.JANUARY,1),r=n.BusinessDay.fromCalendar(e);let o=0;const a=this._selectHolidays(i,r);for(let e=0;et.start()%e==0&&t.length()%e==0)}indexOfSession(e,t,i){const n=this._getEntriesForWeek(e);let o=(0,r.lowerbound)(n,new a(t,i,0),m);if(o!==n.length)return new l(e,o,n);let c=e;const h=7-t+this._firstDayOfWeek-1;for(i=-(s.minutesPerDay-i+h*s.minutesPerDay);;){c++;const e=this._getEntriesForWeek(c);if(0!==e.length)return o=(0,r.lowerbound)(e,new a(this._firstDayOfWeek,i,0),m),new l(c,o,e)}}findSession(e,t,i,s=0){const r=this.indexOfSession(e,t,i),n=r.entries;let o=r.entryIndex;if(0!==s){const e=n[o].dayOfWeek(),t=s>0?1:-1;for(;;){const i=o+t;if(i<0||i>=n.length||n[i].dayOfWeek()!==e)break;o=i}}return new l(r.weekIndex,o,n)}getWeekIndex(e){if(!this._isThereCorrections)return 0;const t=s.get_day_of_week(e)-s.SUNDAY,i=s.get_timezone("Etc/UTC"),r=s.get_cal(i,s.get_year(e),s.get_month(e),s.get_day_of_month(e)-t);return Math.floor((r.getTime()+621672192e5)/1e3/86400/7)}correctTradingDay(e){const t=s.get_day_of_week(e),i=60*s.get_hours(e)+s.get_minutes(e),r=this.getWeekIndex(e),n=this.findSession(r,t,i,0),o=n.getEntry().dayOfWeek()-t+7*(n.weekIndex-r);return 0!==o&&s.add_date(e,o),e}alignToSessionStart(e,t=0){const i=s.get_day_of_week(e),r=60*s.get_hours(e)+s.get_minutes(e),n=this.getWeekIndex(e),o=this.findSession(n,i,r,t),a=o.getEntry(),l=a.dayOfWeek()-i+7*(o.weekIndex-n);0!==l&&s.add_date(e,l);const c=a.startOffset();return s.set_hms(e,c/60,c%60,0,0,s.get_timezone(this._timezone)),a.length()}businessDaysToCalendarDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;oi);)e[a].dayOfWeek()=t)return n}i++,r=s.SUNDAY}return n}calendarDaysToBusinessDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;ni);)e[a].dayOfWeek()=t)return o}i++,r=s.SUNDAY}return o}alignToNearestSessionStart(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionStart.bind(this))}alignToNearestSessionEnd(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionEnd.bind(this))}leftBorderOfDailyBar(e){const t=this._getEntriesForDay(e);return 0===t.length?null:(t.sort(o),this._getLeftEntryBorder(e,t[0]))}bordersOfDailyBar(e){const t=this._getEntriesForDay(e);if(0===t.length)return null;t.sort(o);const i=this._getLeftEntryBorder(e,t[0]),r=t[t.length-1],n=s.clone(e);let a=60*(r.startOffset()+r.length())-1;const l=Math.floor(a/3600);return a-=3600*l,s.set_hms(n,l,a/60,a%60,0,s.get_timezone(this._timezone)),{from:i,to:n}}getEntriesForWeekByCalendar(e){const t=this.getWeekIndex(e);return this._getEntriesForWeek(t)}_getEntriesForWeek(e){let t=this._entriesHash.get(e);if(void 0===t)return this._entries;if(null!==t)return t;const i=s.get_timezone(this._timezone);t=this._entries.slice();const r=this._weekIndexToCalendar(e),a=this._weekIndexToCalendar(e+1),l=n.BusinessDay.fromCalendar(r),c=n.BusinessDay.fromCalendar(a),h=this._selectHolidays(l,c);for(const e of h){const r=e.day.toCalendar(i),n=s.get_day_of_week(r);t=t.filter(e=>e.dayOfWeek()!==n),t=t.concat(e.sessions)}return t.sort(o),this._entriesHash.set(e,t),t}_selectHolidays(e,t){const i=[];let s=e;for(;;){const e=g(this._holidaySessions,s);if(null===e)return i;if(!e.day.before(t))return i;i.push(e),s=e.day.addDays(1)}}_weekIndexToCalendar(e){const t=1e3*(86400*e*7+86400)-621672192e5,i=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),t),r=s.get_timezone("Etc/UTC");return s.get_cal(r,s.get_year(i),s.get_month(i),s.get_day_of_month(i))}_alignToNearestSessionValue(e,t,i){const r=s.get_day_of_week(e),n=60*s.get_hours(e)+s.get_minutes(e),o=this.getWeekIndex(e);let a=this.findSession(o,r,n);if(a.getEntry().contains(e)&&o===a.weekIndex||1===t)return i(a,s.clone(e),t);let c=a.entryIndex-1;if(c<0){let e=a.weekIndex,t=a.entries;for(;c<0;)e--,t=this._getEntriesForWeek(e),c+=t.length;a=new l(e,c,t)}else a=new l(a.weekIndex,c,a.entries);return i(a,s.clone(e),t)}_entrySessionStart(e,t,i){return this._entrySessionValue(e,t,i,e=>60*e.start())}_entrySessionEnd(e,t,i){return this._entrySessionValue(e,t,i,e=>60*(e.start()+e.length())-1)}_entrySessionValue(e,t,i,r){let n=s.get_day_of_week(t);const o=e.getEntry();let a=o.dayOfWeek()-o.sessionStartDaysOffset();const l=this.getWeekIndex(t);let c=e.weekIndex-l,h=!1;if(a0&&i>=0||c<0&&i<0)&&s.add_date(t,7*c),!o.contains(t)){let e=a-n;h&&i<0&&(e=-(7-a+n)),s.add_date(t,e),n=s.get_day_of_week(t)}o.isOvernight()&&n===o.dayOfWeek()&&s.add_date(t,-o.sessionStartDaysOffset());let d=r(o);const u=Math.floor(d/3600);return d-=3600*u,s.set_hms(t,u,d/60,d%60,0,s.get_timezone(this._timezone)),t}_getEntriesForDay(e){const t=s.get_day_of_week(e);return this._getEntriesForWeek(this.getWeekIndex(e)).filter(e=>e.dayOfWeek()===t)}_getLeftEntryBorder(e,t){ +const i=s.clone(e),r=t.startOffset();return s.set_hms(i,r/60,r%60,0,0,s.get_timezone(this._timezone)),i}}},33981:(e,t,i)=>{"use strict";var s=i(71053).PlotRowSearchMode,r=i(68906).rgbaFromInteger;function n(){this.backColorers=[]}function o(e){n.call(this),this._series=e}function a(e,t){n.call(this),this._study=e,this._plotIndex=t}n.prototype.barStyle=function(e,t,i){for(var s={},r=this.backColorers.length-1;r>=0;r--)this.backColorers[r].applyBarStyle(e,t,s,i);return this.applyBarStyle(e,t,s,i),s},n.prototype.pushBackBarColorer=function(e){this.backColorers.push(e)},n.prototype.applyBarStyle=function(e,t,i){throw new Error("This function is supposed to be reimplemented in a subclass")},inherit(o,n),o.upColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.upColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.upColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.upColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.upColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.topLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value();case TradingView.Series.STYLE_COLUMNS:return e.columnStyle.upColor.value()}throw new Error("Unknown series style")},o.downColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.downColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.downColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.downColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.downColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.bottomLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value();case TradingView.Series.STYLE_COLUMNS:return e.columnStyle.downColor.value()}throw new Error("Unknown series style")},o.prototype._applyLineStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyAreaStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyBarStyle=function(e,t,i,s,r){var n=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,s);if(r.barStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,s);i.barColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a}else i.barColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a},o.prototype._applyCandleStyle=function(e,t,i,s,r){ +var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.candleStyle.borderUpColor?r.candleStyle.borderUpColor.value():r.candleStyle.borderColor.value(),h=r.candleStyle.borderDownColor?r.candleStyle.borderDownColor.value():r.candleStyle.borderColor.value(),d=r.candleStyle.wickUpColor?r.candleStyle.wickUpColor.value():r.candleStyle.wickColor.value(),u=r.candleStyle.wickDownColor?r.candleStyle.wickDownColor.value():r.candleStyle.wickColor.value(),p=this.findBar(e,!1,s);r.candleStyle.barColorsOnPrevClose.value()&&this._series.data().first().index!==e?n=this.findPrevBar(e,!1,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u},o.prototype._applyHollowCandleStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.hollowCandleStyle.borderUpColor?r.hollowCandleStyle.borderUpColor.value():r.hollowCandleStyle.borderColor.value(),h=r.hollowCandleStyle.borderDownColor?r.hollowCandleStyle.borderDownColor.value():r.hollowCandleStyle.borderColor.value(),d=r.hollowCandleStyle.wickUpColor?r.hollowCandleStyle.wickUpColor.value():r.hollowCandleStyle.wickColor.value(),u=r.hollowCandleStyle.wickDownColor?r.hollowCandleStyle.wickDownColor.value():r.hollowCandleStyle.wickColor.value(),p=this.findBar(e,!1,s),_=this.findPrevBar(e,!1,s);n=this._series.data().first().index!==e?_[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT],i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u,i.isBarHollow=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT]},o.prototype._applyHAStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.haStyle.borderUpColor.value(),h=r.haStyle.borderDownColor.value(),d=r.haStyle.wickUpColor.value(),u=r.haStyle.wickDownColor.value(),p=this.findBar(e,t,s);r.haStyle.barColorsOnPrevClose.value()?n=this.findPrevBar(e,t,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?d:u},o.prototype._applyBaseLineStyle=function(e,t,i,s,r){var n=this.findBar(e,t,s),a=r.baselineStyle,l=this._series.priceScale(),c=Math.round(l.height()*(Math.abs(100-a.baseLevelPercentage.value())/100)),h=this._series.firstValue(),d=l.coordinateToPrice(c,h);n[TradingView.CLOSE_PLOT]>d?i.barColor=o.upColor(r,t):i.barColor=o.downColor(r,t)},o.prototype._applyHiLoStyle=function(e,t,i,s,r){i.barColor=o.upColor(r,t),i.barBorderColor=r.hiloStyle.borderColor.value()},o.prototype._applyColumnStyle=function(e,t,i,s,r){var n=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,s);if(r.columnStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,s);i.color=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a}else i.color=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a;i.barColor=i.color},o.prototype.applyBarStyle=function(e,t,i,s){i||(i={}),i.barColor=null,i.barBorderColor=null,i.barWickColor=null,i.isBarHollow=null,i.isBarUp=null,i.upColor=null, +i.downColor=null,i.isTwoColorBar=null,i.isMergedBar=null;var r=this._series.properties();switch(r.style.value()){case TradingView.Series.STYLE_LINE:this._applyLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_AREA:this._applyAreaStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BARS:this._applyBarStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_CANDLES:this._applyCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HOLLOW_CANDLES:this._applyHollowCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HEIKEN_ASHI:this._applyHAStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BASELINE:this._applyBaseLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HILO:this._applyHiLoStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_COLUMNS:this._applyColumnStyle(e,t,i,s,r)}return i},o.prototype.getSeriesBars=function(e){return e?this._series.nsBars():this._series.bars()},o.prototype._findBarFieldValue=function(e,t,i){var s=this.getSeriesBars(i).valueAt(e);if(null!==s)return s[t]},o.prototype.findBar=function(e,t,i){return i?i.value:this.getSeriesBars(t).valueAt(e)||[]},o.prototype.findPrevBar=function(e,t,i){if(i&&i.previousValue)return i.previousValue;var r=this._series.bars().search(e-1,s.NearestLeft,TradingView.CLOSE_PLOT);return null!==r?r.value:[]},inherit(a,n),a.prototype.getBars=function(){return this._study.series().bars()},a.prototype.firstColoredBar=function(e){for(var t=e,i=0;ie+l)return i;var c=s.styles[a.id];if(c.visible&&!c.visible.value())return i;var h=o.valueAt(e-l);if(null===h)return i;var d=h[this._plotIndex+1];if(null==d)return i;if(d=Math.round(d),n.isRGB)i.barColor=r(d),i.upColor=i.barColor,i.downColor=i.barColor;else{var u=n.plots[this._plotIndex].palette,p=s.palettes[u],_=n.palettes[u].valToIndex?n.palettes[u].valToIndex[d]:d,m=p.colors[_].color.value();i.barColor=m,i.upColor=m.color,i.downColor=m.color}return i},t.SeriesBarColorer=o,t.StudyBarColorer=a},81688:(e,t,i)=>{"use strict";i.d(t,{BarsRange:()=>r});var s=i(88537);class r{constructor(e,t){(0,s.assert)(e<=t,"The last bar in the bars range should be greater than or equal to the first bar"),this._firstBar=e,this._lastBar=t}firstBar(){return this._firstBar}lastBar(){return this._lastBar}count(){return this._lastBar-this._firstBar+1}contains(e){return this._firstBar<=e&&e<=this._lastBar}equals(e){return this._firstBar===e.firstBar()&&this._lastBar===e.lastBar()}static compare(e,t){ +return null===e||null===t?e===t:e.equals(t)}}},36244:(e,t,i)=>{"use strict";i.d(t,{ChartModelBase:()=>Vi});var s=i(4889),r=i(88537),n=i(86441),o=i(24377),a=i(45112),l=i(45345),c=i(6087),h=i(51768),d=i(81836),u=i(76422),p=i(11417),_=i(27759),m=i(35878),g=i(55257),f=i(14291);function v(e){return(0,f.isLineTool)(e)&&e.boundToSymbol()||!1}class S{constructor(){this._items=[],this._set=new Set,this._dataSourcesCache=null,this._customSourcesCache=null,this._lineSourcesCache=null}isEmpty(){return 0===this._items.length}add(e){if(this._items.length>0&&!v(this._items[0])&&this.clear(),v(e)){const t=(0,g.lowerbound)(this._items,e,(e,t)=>e.zorder()!(0,m.isDataSource)(e))),this._customSourcesCache}checkLineToolSelection(){this._items.forEach(e=>(0,f.isLineTool)(e)&&e.calcIsActualSymbol()),this._items=this._items.filter(e=>!(0,f.isLineTool)(e)||e.isActualSymbol()),this._invalidateCache()}remove(e){this._items=this._items.filter(t=>t!==e),this._set.delete(e),this._invalidateCache()}clear(){this._items=[],this._set.clear(),this._invalidateCache()}_invalidateCache(){this._customSourcesCache=null,this._dataSourcesCache=null,this._lineSourcesCache=null}}var y=i(31752),b=i.n(y),w=i(25270),C=i(29823),P=i(88564),T=i(2015),x=i.n(T),I=i(52640),M=i(22799);class L{constructor(e){this._rendererOptions={borderSize:1,offsetSize:5,fontSize:NaN,font:"",color:"",paneBackgroundColor:"",paddingBottom:0,paddingInner:0,paddingOuter:0,paddingTop:0,lineSpacing:0},this._chartModel=e}options(){const e=this._rendererOptions,t=this._chartModel.properties().childs(),i=t.scalesProperties.childs().fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=(0,I.makeFont)(i,M.CHART_FONT_FAMILY,""),e.paddingTop=2.5/12*i,e.paddingBottom=e.paddingTop,e.paddingInner=i/12*e.offsetSize,e.paddingOuter=i/12*e.offsetSize,e.lineSpacing=2/12*i),e.color=t.scalesProperties.childs().textColor.value(),e.paneBackgroundColor=t.paneProperties.childs().background.value(),this._rendererOptions}}var A=i(27982),E=i(54376),k=i(97098),D=i(59803),V=i(99305),B=i(67337),N=i(37667),R=i(47484),O=i(33291);const F=new k.PriceFormatter;class W extends V.CustomSourceBase{constructor(e,t,i){super(e,t),this._studySource=null,this._paneViews=[],this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._loadedGraphics=null,this._doubleClickHandler=i;const s=t.mainSeries();this._properties=new P.DefaultProperty("sessions"),(0, +D.applyDefaultsOverrides)(this._properties.childs().graphics,void 0,!1,"sessions"),this._removeDuplicateProperties(),this._properties.subscribe(this,this._onPropertiesChanged),t.studyMetaInfoRepository().findById({type:"java",studyId:"Sessions@tv-basicstudies"}).then(i=>{this._destroyed||null===this._loadedGraphics&&(this._setMetaInfo(i),null!==this._metaInfo&&(this._studySource=new A.StudyDataSource(t.chartApi(),s.seriesSource(),"sessions_",this._metaInfo),this._createPaneViews(),this._studySource.dataCleared().subscribe(this,this.updateAllViews.bind(this,(0,O.dataSourceChangeEvent)(e))),this._studySource.dataUpdated().subscribe(this,this.updateAllViews.bind(this,(0,O.dataSourceChangeEvent)(e))),this._studySource.setInputs({}),this._processHibernate()))}),t.timeScale().onReset().subscribe(this,this._clearData),t.timeScale().logicalRangeChanged().subscribe(this,this.updateAllViews.bind(this,(0,O.viewportChangeEvent)())),t.mainSeries().sessionIdProxyProperty().subscribe(this,this._updateVisibleOfPreAndPostMarketBackground),t.mainSeries().properties().childs().interval.subscribe(this,this._processHibernate),this._updateVisibleOfPreAndPostMarketBackground(t.mainSeries().properties().childs().sessionId)}applyOverrides(e){(0,D.applyPropertiesOverrides)(this._properties.childs().graphics,void 0,!1,e,"sessions"),this._model.updateSource(this)}start(){this._isStarted=!0,this._processHibernate()}restart(){this._clearData(),B.enabled("stop_study_on_restart")&&this.stop(),this.start()}isStarted(){return this._isStarted}stop(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()}isHoveredEnabled(){return!1}paneViews(e){return this._paneViews}updateAllViews(e){this._paneViews.forEach(t=>t.update(e))}updateViewsForPane(e,t){this.updateAllViews(t)}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribeAll(this),this._studySource.dataUpdated().unsubscribeAll(this),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.timeScale().onReset().unsubscribeAll(this),this._model.mainSeries().sessionIdProxyProperty().unsubscribeAll(this),this._model.mainSeries().properties().childs().interval.unsubscribeAll(this),this._properties.unsubscribeAll(this)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}graphics(){return this._loadedGraphics||(0,r.ensureNotNull)(this._studySource).graphics()}properties(){return this._properties}graphicsInfo(){return(0,r.ensureNotNull)(this._metaInfo).graphics}firstValue(e){return this._model.mainSeries().firstValue()}formatter(){return F}state(e){const t={properties:this._properties.state()};return e&&null!==this._metaInfo&&(t.data={graphics:(0,E.saveStudyGraphics)(this.graphics()),metaInfo:this._metaInfo}),t}restoreState(e,t){const i=e.properties;this._migrateOutOfSessionProperty(i),this._properties.mergeAndFire(i),this._removeDuplicateProperties(), +this._updateVisibleOfPreAndPostMarketBackground(this._model.mainSeries().properties().childs().sessionId),void 0!==e.data&&t&&(this._loadStudyGraphics(e.data.graphics),this._setMetaInfo(e.data.metaInfo),this._createPaneViews())}restoreOldState(e,t){const i={properties:{graphics:e.state.graphics}};void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),this.restoreState(i,t)}applyPreferences(e){this._properties.mergePreferences(e)}metaInfo(){return(0,r.ensureNotNull)(this._metaInfo)}_loadStudyGraphics(e){const t=e.backgrounds;if(void 0!==t){const e=t.findIndex(e=>"inSession"===e.styleId);-1!==e&&t.splice(e,1)}this._loadedGraphics=(0,E.loadStudyGraphics)(e)}_setMetaInfo(e){const t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e}_updateVisibleOfPreAndPostMarketBackground(e){const t=!(0,N.isRegularSessionId)(e.value());this._outOfSessionVisibilityProperty().setValue(t),this._preMarketVisibilityProperty().setValue(t),this._postMarketVisibilityProperty().setValue(t)}_clearData(){null!==this._studySource&&this._studySource.clearData()}_createPaneViews(){const e={doubleClickHandler:this._doubleClickHandler};(0,E.createGraphicsPaneViews)(this,this._model,e).then(e=>{this._paneViews=e,this._model.lightUpdate()})}_onPropertiesChanged(){this._processHibernate(),this.updateAllViews((0,O.dataSourceChangeEvent)(this.id()))}_processHibernate(){if(null!==this._studySource){const e=this._canBeHibernated(),t=this._isHibernated(),i=this._studySource.isStarted();!t&&e&&i?this._studySource.stop():!t||e||i||this._studySource.start()}}_canBeHibernated(){const e=this._model.mainSeries(),t=this._preMarketVisibilityProperty().value()&&this._postMarketVisibilityProperty().value()&&this._outOfSessionVisibilityProperty().value();return e.isDWM()||!t&&!this._vertLinesVisibleProperty().value()}_isHibernated(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())}_outOfSessionVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().outOfSession.childs().visible}_preMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().preMarket.childs().visible}_postMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().postMarket.childs().visible}_vertLinesVisibleProperty(){return this._properties.childs().graphics.childs().vertlines.childs().sessBreaks.childs().visible}_removeDuplicateProperties(){this._properties.hasChild("properties")&&(this._properties.removeProperty("properties"),(0,P.saveDefaultProperties)(!0),this._properties.childChanged(null),(0,P.saveDefaultProperties)(!1))}_migrateOutOfSessionProperty(e){const t=e.graphics.backgrounds;if(void 0!==t){const i=t.outOfSession;i.color===(0,r.ensureDefined)(R.sessionsPreferencesDefault.graphics.backgrounds).outOfSession.color||"postMarket"in t||(e.graphics.backgrounds={...t,postMarket:{color:i.color,transparency:i.transparency,visible:i.visible},preMarket:{color:i.color, +transparency:i.transparency,visible:i.visible}})}}}var H=i(81851),z=i(2872),U=i.n(z),j=i(52714),G=i.n(j),q=i(23653),Y=i(8175),K=i(28353),$=i(98125),X=i(9423),Z=i(74325),J=i(67072),Q=i.n(J),ee=i(80643),te=i(39593),ie=i(22932),se=i(59555);const re=new Map([["price",e=>(0,ie.isPriceDataSource)(e)],["trading",e=>(0,f.isTrading)(e)],["drawing",e=>(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)&&!e.isPhantom()],["drawingsForAllSymbols",e=>(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)&&!e.isPhantom()],["phantom",e=>(0,f.isLineTool)(e)&&e.isPhantom()],["restRowSources",e=>!(0,f.isLineTool)(e)&&!(0,f.isTrading)(e)],["leftPriceScale",(e,t)=>"left"===oe(e,t)],["rightPriceScale",(e,t)=>"right"===oe(e,t)],["overlayPriceScale",(e,t)=>"overlay"===oe(e,t)]]),ne=new Map([["price","visibleSorted"],["trading","visibleSorted"],["drawing","visibleSorted"],["drawingsForAllSymbols","allSorted"],["phantom","visibleSorted"],["restRowSources","visibleSorted"],["leftPriceScale","visibleSorted"],["rightPriceScale","visibleSorted"],["overlayPriceScale","visibleSorted"]]);function oe(e,t){const i=e.priceScale();return null===i?"overlay":t.priceScalePosition(i)}class ae{constructor(e){this._groupedSources=new Map,this._sources=null,this._pane=e}clear(){this._groupedSources.clear(),this._sources=null}destroy(){this.clear()}all(){return this._groupedSources.has("visibleSorted")||this._sortSources(),(0,r.ensureDefined)(this._groupedSources.get("visibleSorted"))}allIncludingHidden(){return this._groupedSources.has("allSorted")||this._sortSources(),(0,r.ensureDefined)(this._groupedSources.get("allSorted"))}allExceptSpecialSources(){if(!this._groupedSources.has("exceptSpecial")){const e=this.allIncludingHidden().filter(e=>!e.isSpeciallyZOrderedSource());this._groupedSources.set("exceptSpecial",e)}return(0,r.ensureDefined)(this._groupedSources.get("exceptSpecial"))}tradingSources(){return this._getSourcesByGroupType("trading")}priceSources(){return this._getSourcesByGroupType("price")}lineSources(){return this._getSourcesByGroupType("drawing")}lineSourcesForAllSymbols(){return this._getSourcesByGroupType("drawingsForAllSymbols")}phantomSources(){return this._getSourcesByGroupType("phantom")}allExceptLineAndTradingSources(){return this._getSourcesByGroupType("restRowSources")}hitTestSources(){if(!this._groupedSources.has("hitTest")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("hitTest",e)}return(0,r.ensureDefined)(this._groupedSources.get("hitTest"))}generalSources(){if(!this._groupedSources.has("general")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("general",(0,se.sortSources)(e))}return(0,r.ensureDefined)(this._groupedSources.get("general"))}leftPriceScalesSources(){return this._getSourcesByGroupType("leftPriceScale")}rightPriceScalesSources(){return this._getSourcesByGroupType("rightPriceScale")}overlayPriceScaleSources(){return this._getSourcesByGroupType("overlayPriceScale")}_getSourcesByGroupType(e){const t=(0,r.ensureDefined)(ne.get(e)) +;return this._groupedSources.has(t)?this._groupedSources.has(e)||this._groupSources(e):(this._sortSources(),this._groupSources(e)),(0,r.ensureDefined)(this._groupedSources.get(e))}_sortSources(){null===this._sources&&(this._sources=this._pane.dataSources());const e=(0,se.sortSources)(this._sources),t=e.filter(e=>!(0,f.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()&&e.isActualUnit());this._groupedSources.set("allSorted",e),this._groupedSources.set("visibleSorted",t)}_groupSources(e){const t=(0,r.ensureDefined)(ne.get(e)),i=re.get(e);if(void 0!==i){const s=(0,r.ensureDefined)(this._groupedSources.get(t)).filter(e=>i(e,this._pane));this._groupedSources.set(e,s)}}}var le=i(28372),ce=i(22423),he=i(69927),de=i(79680),ue=i(26161),pe=i(50669),_e=i(16654),me=i(13933);const ge=[],fe=[];class ve{constructor(e){this._studies={},this._deferreds={},this._container=e,ge.push(e),fe.push(this)}add(e,t){this._deferreds[e]&&(this._deferreds[e].resolve(t),delete this._deferreds[e]),this._studies[e]=t}get(e){return this._studies[e]?Promise.resolve(this._studies[e]):(this._deferreds[e]||(this._deferreds[e]=(0,d.createDeferredPromise)()),this._deferreds[e].promise)}reset(){const e=ge.indexOf(this._container);~e&&(ge.splice(e,1),fe.splice(e,1))}static instance(e){const t=ge.indexOf(e);return~t?fe[t]:new ve(e)}}var Se=i(66101),ye=i(97917);var be=i(36759),we=i(98802),Ce=i(95536),Pe=i(86225),Te=i(82241),xe=i(78898);const Ie=(0,$.getLogger)("Chart.Pane");function Me(e,t,i){e.setMargins({top:t,bottom:i})}class Le{constructor(e,t,i,s){this.m_dataSources=[],this._sourceWatchedValuesSubscriptions=new Map,this.m_mainDataSource=null,this._cachedOrderedSources=new ae(this),this._sourcesById=new Map,this._priceSourcesById=new Map,this._sourcePropertiesChanged=new(U()),this._sourcesZOrderChanged=new(U()),this._tagsChanged=new(U()),this._stretchFactor=1e3,this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null,this._rightPriceScales=[],this._leftPriceScales=[],this._lockedPriceScale=null,this._currentPriceScaleRatio=null,this._onPriceScalesChanged=new(U()),this._isRecalculatingScales=!1,this._priceDataSources=[],this._symbolSources=[],this._symbolSourceResolved=new(U()),this._symbolSourceResolvingActive=new(G())(!1),this._bulkActions={activeCounter:0},this._height=0,this._width=0,this._dataSourcesCollectionChanged=new(U()),this._symbolSourceCollectionChanged=new(U()),this._maximized=new(G())(!1),this._collapsed=new(G())(!1),this._destroyed=new(U()),this._executionsPositionController=null,this._recalcSymbolSourceResolvingActive=()=>{for(const e of this._symbolSources)if(e.symbolResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._onSymbolSourceCollectionChanged=()=>{0===this._bulkActions.activeCounter?this._symbolSourceCollectionChanged.fire():this._bulkActions.symbolSourceCollectionChanged=!0},this._priceScaleSelectionStrategy=(0,Z.createPriceScaleSelectionStrategy)(i.properties().childs().priceScaleSelectionStrategyName.value()), +this._id=null!=s?s:(0,X.randomHashN)(6),this._timeScale=e,this.m_mainDataSource=null,this._properties=t,this._model=i,i.properties().childs().priceScaleSelectionStrategyName.subscribe(null,e=>{this._priceScaleSelectionStrategy=(0,Z.createPriceScaleSelectionStrategy)(e.value()),this._priceScaleSelectionStrategy.apply(this)}),this._timeScale.barSpacingChanged().subscribe(this,()=>{this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())}),t.childs().topMargin.subscribe(this,this._updateMargins),t.childs().bottomMargin.subscribe(this,this._updateMargins),this._updateMargins()}destroy(){this._properties.childs().topMargin.unsubscribeAll(this),this._properties.childs().bottomMargin.unsubscribeAll(this),this._model.properties().childs().priceScaleSelectionStrategyName.unsubscribeAll(this),this._timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach(e=>{e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this)});for(const e of this.m_dataSources)this.removeSourceFromPriceScale(e),e.destroy&&e.destroy();this._destroyed.fire()}id(){return this._id}bulkActionMacro(e){const t=this._bulkActions;t.activeCounter+=1,e(),t.activeCounter-=1,0===t.activeCounter&&(this._dataSourcesCollectionChanged.fire(),t.symbolSourceCollectionChanged&&this._symbolSourceCollectionChanged.fire(),t.symbolSourceCollectionChanged=!1)}defaultPriceScale(){var e,t;const i=null!==(t=null===(e=this.m_mainDataSource)||void 0===e?void 0:e.priceScale())&&void 0!==t?t:null;if(null!==i)return i;const s=this.properties().childs().axisProperties.state();return s.autoScale=!0,new le.PriceScale(this._model.properties().childs().scalesProperties,s)}leftPriceScales(){return this._leftPriceScales}rightPriceScales(){return this._rightPriceScales}visibleLeftPriceScales(){var e;const t=this._model.priceScaleSlotsCount();if(this._leftPriceScales.length>t.left){const i=(0,g.moveToHead)(this._leftPriceScales,null===(e=this.mainDataSource())||void 0===e?void 0:e.priceScale());return i.splice(t.left),i}return this._leftPriceScales}visibleRightPriceScales(){var e;const t=this._model.priceScaleSlotsCount();if(this._rightPriceScales.length>t.right){const i=(0,g.moveToHead)(this._rightPriceScales,null===(e=this.mainDataSource())||void 0===e?void 0:e.priceScale());return i.splice(t.right),i}return this._rightPriceScales}clearSeries(e){const t=this._model.mainSeries();for(let i=this.m_dataSources.length-1;i>=0;i--)this.m_dataSources[i]===t&&this._removeSourceFromCollections(i,e)}sourcesByGroup(){return this._cachedOrderedSources}dataSourceForId(e){return this._sourcesById.get(e)||null}changeSourceId(e,t){(0,r.assert)(this.hasDataSource(e));const i=e.id();e.setId(t),this._sourcesById.delete(i),this._sourcesById.set(t,e),(0,ie.isPriceDataSource)(e)&&(this._priceSourcesById.delete(i),this._priceSourcesById.set(t,e))}movePriceScale(e,t,i){const s=this.priceScalePosition(e) +;if(s!==t)this.removePriceScale(e),this._placePriceScale(e,t,i),e.invalidateMargins(),this._invalidateSourcesCache();else if(void 0!==i&&"overlay"!==s){const t="left"===s?this._leftPriceScales:this._rightPriceScales,r=t.indexOf(e);t.splice(r,1),t.splice(i,0,e)}}mainDataSource(){return this.m_mainDataSource}isEmpty(){return null===this.m_mainDataSource}recalculatePriceScale(e,t){if(!e)return;const i=e.sourcesForAutoscale();if((e.isAutoScale()||e.priceRangeShouldBeRecalculatedOnce())&&i&&i.length>0&&!this.timeScale().isEmpty()){const t=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(t)}e.updateAllViews(t)}onSourceTagsChanged(){this._tagsChanged.fire()}insertDataSource(e,t,i){e.setZorder(i),t||(t=this.findSuitableScale(e)),this._addSourceToCollections(e);let s=!1;e===this.model().mainSeries()?(this.m_mainDataSource=this.model().mainSeries(),s=!0):null===this.m_mainDataSource&&(0,ie.isPriceDataSource)(e)&&(this.m_mainDataSource=e,s=!0),t.addDataSource(e,this._isInInsertManyDataSourcesState),e.setPriceScale(t),t.invalidateMargins(),e.onTagsChanged&&e.onTagsChanged().subscribe(this,this.onSourceTagsChanged),s&&this._processMainSourceChange(),this._tagsChanged.fire(),(0,ie.isPriceDataSource)(e)&&this.recalculatePriceScale(t,(0,O.dataSourceChangeEvent)(e.id())),this._invalidateSourcesCache()}addDataSource(e,t,i){let s=e.zorder();i||((0,f.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()?(s=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder+1:this.newLineToolZOrder(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=s)):(0,H.isStudy)(e)&&!e.isSpeciallyZOrderedSource()&&(s=this.newStudyZOrder())),this.insertDataSource(e,t,s)}removeDataSource(e,t,i){const s=this.m_dataSources.indexOf(e);if(-1===s)return void Ie.logDebug("removeDataSource: invalid data source");this._removeSourceFromCollections(s,!!i),e!==this.m_mainDataSource||t||(this.m_mainDataSource=null);const r=e.priceScale();this.removeSourceFromPriceScale(e),e.onTagsChanged&&e.onTagsChanged().unsubscribe(this,this.onSourceTagsChanged),(0,ie.isPriceDataSource)(e)&&!t&&this._processMainSourceChange(),this._tagsChanged.fire(),r&&(0,ie.isPriceDataSource)(e)&&this.recalculatePriceScale(r,(0,O.dataSourceChangeEvent)(e.id())),this._invalidateSourcesCache()}hasDataSource(e){return this._sourcesById.has(e.id())}hasPriceDataSource(e){return this._priceSourcesById.has(e.id())}dataSources(){return this.m_dataSources}priceDataSources(){return this._priceDataSources}symbolSources(){return this._symbolSources}replaceSource(e,t,i){const s=this.m_mainDataSource===e,r=e.zorder();this.insertDataSource(t,i,r),this.removeDataSource(e,s),this._sourcesById.set(t.id(),t),(0,ie.isPriceDataSource)(t)&&this._priceSourcesById.set(t.id(),t),s&&(this.m_mainDataSource=t,this._processMainSourceChange())}findSuitableScale(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)}createNewPriceScaleIfPossible(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)}canCreateNewPriceScale(){ +return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)}isOverlay(e){const t=e.priceScale();return null===t||"overlay"===this.priceScalePosition(t)}recalculate(e){this._leftPriceScales.forEach(t=>this.recalculatePriceScale(t,e)),this._rightPriceScales.forEach(t=>this.recalculatePriceScale(t,e));for(const t of this.m_dataSources)this.isOverlay(t)&&!(0,f.isLineTool)(t)&&this.recalculatePriceScale(t.priceScale(),e);this.updateAllViews(e),this._model.updatePane(this)}updateAllViews(e){for(const t of this.m_dataSources)t.updateAllViews(e);for(const t of this.model().customSources())t.updateViewsForPane(this,e)}priceScalePosition(e){return this._leftPriceScales.includes(e)?"left":this._rightPriceScales.includes(e)?"right":"overlay"}createPriceScaleAtPosition(e,t){const i=this.properties().childs().axisProperties.state();i.autoScale=!0;const s=new le.PriceScale(this.model().properties().childs().scalesProperties,i);return s.setHeight(this.height()),Me(s,this._defaultTopMargin(),this._defaultBottomMargin()),this._placePriceScale(s,e,t),s}removePriceScale(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this),e===this._lockedPriceScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null);const t=this._leftPriceScales.indexOf(e);-1!==t&&(this._leftPriceScales[t].invalidateMargins(),this._leftPriceScales.splice(t,1));const i=this._rightPriceScales.indexOf(e);if(-1!==i&&(this._rightPriceScales[i].invalidateMargins(),this._rightPriceScales.splice(i,1)),null===e.mainSource()){const t=e.dataSources().length;0!==t&&Ie.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+t)}this._onPriceScalesChanged.fire()}priceScaleIndex(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}}move(e,t,i){const s=e.priceScale();this.removeSourceFromPriceScale(e),t.addDataSource(e),e.setPriceScale(t),t.invalidateMargins(),this._processMainSourceChange(),this._invalidateSourcesCache(),e.isIncludedInAutoScale()&&(null!==s&&this.recalculatePriceScale(s,(0,O.dataSourceChangeEvent)(e.id())),this.recalculatePriceScale(t,(0,O.dataSourceChangeEvent)(e.id()))),this._onPriceScalesChanged.fire()}setZOrders(e){e.forEach((e,t)=>{t.setZorder(e)}),this._invalidateSourcesCache(),0===this._bulkActions.activeCounter&&this._dataSourcesCollectionChanged.fire(),this.model().lightUpdate()}isMainPane(){return this.hasDataSource(this.model().mainSeries())}isLast(){const e=this.model().panes();return e[e.length-1]===this}newStudyZOrder(){return(0,ue.newStudyZOrder)(this._priceDataSources)}newLineToolZOrder(e){return(0,ue.newLineToolZOrder)(this.m_dataSources,e)}model(){return this._model}containsMainSeries(){return this._sourcesById.has(this.model().mainSeries().id())}applyPriceScaleRatio(e,t){var i +;null!==this._lockedPriceScale&&this._lockedPriceScale!==e||this._currentPriceScaleRatio===t||!this.isMainPane()||null===this._lockedPriceScale&&e!==(null===(i=this.mainDataSource())||void 0===i?void 0:i.priceScale())||(this._setNewPriceRangeByScaleRatio(e,t,this._mainSourceVisiblePriceRange(e),!0,!0),null!==this._lockedPriceScale?this._tryToApplyNewPriceScaleRatio():e.isLog()||this.model().mainSeriesScaleRatioPropertyOnChanged())}sendToBack(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[0],ue.moveBeforeSource)}bringToFront(e){const t=this.sourcesByGroup().allExceptSpecialSources();this._batchReorder(e,t[t.length-1],ue.moveAfterSource)}sendBackward(e){const t=this.sourcesByGroup().allIncludingHidden(),i=t.indexOf(e[0]);if(0===i)this.bringToFront(e);else{const s=t[i-1];this.insertBefore(e,s)}}bringForward(e){const t=this.sourcesByGroup().allExceptSpecialSources(),i=t.indexOf(e[e.length-1]);if(i===t.length-1)this.sendToBack(e);else{const s=t[i+1];this.insertAfter(e,s)}}insertAfter(e,t){this._batchReorder(e,t,ue.moveAfterSource)}insertBefore(e,t){this._batchReorder(e,t,ue.moveBeforeSource)}maximized(){return this._maximized}collapsed(){return this._collapsed}getPriceScaleById(e){const t=this.m_dataSources.find(t=>{var i;return(null===(i=t.priceScale())||void 0===i?void 0:i.id())===e});return void 0===t?null:t.priceScale()}priceScaleSelectionStrategy(){return this._priceScaleSelectionStrategy}setPriceScaleSelectionStrategy(e){this._priceScaleSelectionStrategy=e,e.apply(this)}findTargetPriceAxisViews(e,t,i,s){if((0,m.isDataSource)(e)&&this.model().paneForSource(e)!==this)return[];const r=e.priceScale();if(t===r)return i;if(null===r)return[];if("overlay"===this.priceScalePosition(r))return t===this.defaultPriceScale()?i:[];const n=this.priceScalePosition(t);if(n!==this.priceScalePosition(r))return[];const o="left"===n?this.leftPriceScales():this.rightPriceScales();return o.indexOf(t)1}properties(){return this._properties}setPriceAutoScale(e,t){e.setMode({autoScale:t}),this.timeScale().isEmpty()||this.recalculatePriceScale(e,(0,O.viewportChangeEvent)())}state(e,t,i,s,r,n){var o,a;const l={sources:[],mainSourceId:null===(o=this.m_mainDataSource)||void 0===o?void 0:o.id(),stretchFactor:this._stretchFactor,leftAxisesState:[],rightAxisesState:[],overlayPriceScales:{},priceScaleRatio:this._currentPriceScaleRatio},c=new Map,h=e=>{if(c.has(e))return c.get(e);let o=null;const a=i&&!e.isSavedInStudyTemplates()||!e.state||(0,f.isLineTool)(e)&&n||!(o=e.state(t,r))||!e.isSavedInChart(Boolean(t))||s&&(0,f.isLineTool)(e)&&e.isActualSymbol&&!e.isActualSymbol()||e.isPhantom()?null:o;return c.set(e,a),a};if(e){l.sources=[];for(let e=0;enull!==c.get(e),u=e=>!n||!(0,f.isLineTool)(e);l.leftAxisesState=this._leftPriceScales.map(e=>({state:e.state(), +sources:e.dataSources().filter(d).filter(u).map(e=>e.id())})),l.rightAxisesState=this._rightPriceScales.map(e=>({state:e.state(),sources:e.dataSources().filter(d).filter(u).map(e=>e.id())})),l.overlayPriceScales={};for(const e of this.m_dataSources)if(this.isOverlay(e)&&e.isSavedInChart(Boolean(t))){const t=e.priceScale();l.overlayPriceScales[e.id()]=null!==(a=null==t?void 0:t.state())&&void 0!==a?a:null}return l}restoreState(e,t,i,s,n,o){var a;s=s||{},e.stretchFactor&&(this._stretchFactor=e.stretchFactor);const l={};if(e.sources){const r=e.sources.filter(e=>{var t;return!!e&&("MainSeries"===e.type||(!(null===(t=e.points)||void 0===t?void 0:t.some(e=>null===e.time_t||!isFinite(e.time_t)))||(Ie.logNormal("Dropped invalid "+e.type+". Reason: non-numeric point time"),!1)))}),a=r.findIndex(pe.isMainSeriesState);-1!==a&&this.model().mainSeries().setObsoleteZOrder(r[a].zorder),i<3&&(0,ue.reorderDataSourcesStateZOrder)(r);const c=-1!==this.m_dataSources.indexOf(this._model.mainSeries());this.clearSeries(Boolean(o)),this.m_mainDataSource=null,c&&this._addSourceToCollections(this._model.mainSeries(),o),(()=>{const t=r.find(t=>t.id===e.mainSourceId);if(void 0===t)return void Ie.logWarn("There is no main source with id "+e.mainSourceId+", total sources="+r.length);if(!window.TradingView[t.type]||!(0,f.isLineToolName)(t.type))return void Ie.logNormal("The type of main source is not line tool - fix is unnecessary");let i=null;for(const e of r)if(!window.TradingView[t.type]||!(0,f.isLineToolName)(e.type)){if(null!==i)return void Ie.logWarn("Pane contains more than 1 possibly main sources - auto fix cannot be applied");i=e}if(null===i)return void Ie.logWarn("Pane contains only line tools - possible we need to remove this pane?");const s=e.mainSourceId;let n=0;e.mainSourceId=i.id,r.forEach(e=>{e.ownerSource===s&&(e.ownerSource=null==i?void 0:i.id,n+=1)}),Ie.logNormal("Auto fix broken pane is applied, changed line tools="+n+", changed from="+s+" to="+i.id)})();for(const e of r)if("study_Sessions"===e.type){this.model().sessions().restoreOldState(e,t);break}for(const e of r){if("study_Sessions"===e.type)continue;const i=e.id;null===this._model.dataSourceForId(e.id)||"MainSeries"===e.type?(l[i]=e.ownerSource,(0,pe.isMainSeriesState)(e)?this._restoreMainSeries(e,t,c,s,n,o):(0,pe.isStudyState)(e)?this.restoreStudy(e,t,s,o):(0,pe.isLineToolState)(e)?(e.state&&(e.state.zOrderVersion=2),this.restoreLineTool(e,t,void 0,o)):"ChartEventsSource"===e.type&&this._restoreSpecialSource(e,t,o)):Ie.logError("Duplicate id while restoring pane: "+e.type+","+e.id)}}const c=new Set,h=(e,t)=>{e.priceScale()!==t&&(this.removeSourceFromPriceScale(e),e.setPriceScale(t),t.addDataSource(e))},d=(e,t,i)=>{if(c.has(e))return;c.add(e);const s=i.m_showSymbolLabels;void 0!==s&&e===this.model().mainSeries()&&this.model().properties().childs().scalesProperties.childs().showSymbolLabels.setValue(s),this._model.children(e,!0).forEach(e=>d(e,t,i)),h(e,t)},u=e=>{const t=(0, +D.defaults)("chartproperties").paneProperties.axisProperties,i=new le.PriceScale(this.model().properties().childs().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach(e=>{const s=this.dataSourceForId(e);s&&d(s,i,t)}),0===i.dataSources().length?null:i},p=e=>e.map(u).filter(e=>null!==e);let _;if(e.leftAxisesState)_=p(e.leftAxisesState);else{const t=u({state:e.leftAxisState,sources:e.leftAxisSources});_=null!==t?[t]:[]}let m;if(this._leftPriceScales.slice().forEach(e=>this.removePriceScale(e)),this._leftPriceScales=[],_.forEach(e=>this._placePriceScale(e,"left")),e.rightAxisesState)m=p(e.rightAxisesState);else{const t=u({state:e.rightAxisState,sources:e.rightAxisSources});m=null!==t?[t]:[]}this._rightPriceScales.slice().forEach(e=>this.removePriceScale(e)),this._rightPriceScales=[],m.forEach(e=>this._placePriceScale(e,"right")),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;const g=new Map;for(const t of this.m_dataSources){if(c.has(t))continue;let i;if(e.overlayPriceScales&&e.overlayPriceScales[t.id()]){let s=e.overlayPriceScales[t.id()];g.has(null==s?void 0:s.id)?i=g.get(null==s?void 0:s.id):(s=(0,r.ensure)(s),i=new le.PriceScale(this._model.properties().childs().scalesProperties),i.setHeight(this._height),s.m_isAutoScale=!0,s.m_isLog=!1,s.m_isPercentage=!1,s.m_isLockScale=!1,i.restoreState(s),g.set(s.id,i))}else i=new le.PriceScale(this._model.properties().childs().scalesProperties),i.setHeight(this._height);h(t,i)}for(const e of Object.keys(l)){const t=l[e];t&&(null===(a=this.dataSourceForId(e))||void 0===a||a.setOwnerSource(this.dataSourceForId(t)))}if(e.mainSourceId&&!this.containsMainSeries()&&(this.m_mainDataSource=this.dataSourceForId(e.mainSourceId)),!this.m_mainDataSource)for(const e of this.m_dataSources)if((0,ie.isPriceDataSource)(e)){this.m_mainDataSource=e;break}for(const e of this.m_dataSources)if((0,f.isLineTool)(e))e.ownerSource()||e.setOwnerSource(this.mainDataSource()),e.isFixed()&&e.restoreFixedPoint();else if((0,H.isStudy)(e)){const t=e.properties();t.linkedToSeries&&t.linkedToSeries.value()&&(e.ownerSource()||e.setOwnerSource(this.model().mainSeries()))}this._updateMargins(),this._cachedOrderedSources.clear()}onPriceScalesChanged(){return this._onPriceScalesChanged}setPaneSize(e){let t;switch(e){case"large":t=1;break;case"medium":t=.6;break;case"small":t=.3;break;case"tiny":t=.15;break;default:throw new Error("Unknown size enum value: "+e)}this._stretchFactor=1e3*t}stretchFactor(){return this._stretchFactor}setStretchFactor(e){this._stretchFactor=e}customSources(e){return this.model().customSources(e)}createDrawingsCaches(){te.ExecutionsPositionController.recreateOrderedByBarsSourcesCache(this)}clearDrawingCaches(){te.ExecutionsPositionController.clearOrderedByBarsSourcesCache()}executionsPositionController(){return this._executionsPositionController||(this._executionsPositionController=new te.ExecutionsPositionController(this,this._model.timeScale())),this._executionsPositionController}width(){return this._width}height(){ +return this._height}setHeight(e){this._height=e,this._leftPriceScales.forEach(t=>t.setHeight(e)),this._rightPriceScales.forEach(t=>t.setHeight(e));for(let t=0;t(e.paneViews(this)||[]).some(e=>{const r=e.renderer(t,i);return r&&r.doesIntersectWithBox&&r.doesIntersectWithBox(s)}))}logicalRectToPixels(e){const t=this.defaultPriceScale(),i=this.timeScale(),s=(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainSource()).firstValue()),o=t.priceToCoordinate(e.p1.price,s),a=i.indexToCoordinate(e.p1.index),l=t.priceToCoordinate(e.p2.price,s),c=i.indexToCoordinate(e.p2.index),h=new n.Point(Math.min(a,c),Math.min(o,l)),d=new n.Point(Math.max(a,c),Math.max(o,l));return(0,n.box)(h,d)}timeScale(){return this._timeScale}restoreLineTool(e,t,i,s){var n,o,a,l,c,h,d,u,p,_,m;delete e.state.lastUpdateTime,e.state.intervalsVisibilities=(0,be.mergeIntervalVisibilitiesDefaults)(e.state.intervalsVisibilities),i=void 0===i||i,ye.LineToolElliott.migrateState(e),"LineToolGannComplex"!==(m=e).type||void 0!==m.version&&1!==m.version||(m.type="LineToolGannFixed"),Array.isArray(e.positionPercents)&&(e.positionPercents=e.positionPercents[0]);const g=e.type,v=e.id,S=e.state,y=i?e.zorder:this.newLineToolZOrder();(0,r.assert)((0,f.isLineToolName)(g),"invalid data source type:"+g+" (expected to be a Line Tool)");let b,w,C=null;if((0,pe.isStudyLineToolState)(e)){C=this._model.studyVersioning();const t=C.patchPointsBasedStudyState(e);e=t;const i=t.metaInfo;Object.assign(i,Q().parseIdString(null==i?void 0:i.fullId));const s=C.updateMetaInfo(i)||i;w=(0,f.createStudyLineToolProperties)(g,i,s,S,C),b=(0,f.createLineTool)(g,this._model,w,s,!0)}else w=(0,f.createLineToolProperties)(g,S,this._model),t?null===(n=w.child("fixedSize"))||void 0===n||n.setValue(!1):null===(o=w.child("fixedSize"))||void 0===o||o.setValue(!0),b=(0,f.createLineTool)(g,this._model,w,null,!0);b.setId(v),b.linkKey().setValue(e.linkKey||null);const P=e.alertId;P&&b.canHasAlert()&&B.enabled("alerts")&&!this._model.readOnly()&&!this._model.isJustClonedChart()&&b.setAlert(P,{noChartSave:!0});let T=null!==(a=e.indexes)&&void 0!==a?a:[] +;if(T=T.slice(0,null!==(c=null===(l=e.points)||void 0===l?void 0:l.length)&&void 0!==c?c:T.length),b.isFixed()?void 0!==e.positionPercents?b.restorePositionPercents(e.positionPercents):b.restorePositionPercents({x:.5,y:.5}):e.points&&b.restorePoints(e.points,T,t),b instanceof we.LineToolBarsPattern||b instanceof Ce.LineToolCallout||b instanceof Pe.LineToolTrendAngle||b instanceof Te.LineToolGhostFeed||b instanceof xe.LineToolParallelChannel)null===(d=(h=b).restoreData)||void 0===d||d.call(h,e);else if(t&&(0,pe.isStudyLineToolState)(e)&&b.restoreData){const t=e;C&&(t.graphics=C.patchPointsBasedStudyData(t.metaInfo,t.graphics)),null===(u=b.restoreData)||void 0===u||u.call(b,t)}const x=null==e.version?1:e.version,I=null==b.version?1:b.version;return x!==I&&(null===(_=(p=b).migrateVersion)||void 0===_||_.call(p,x,I,{pane:this,model:this._model,properties:w})),void 0!==y&&b.setZorder(y),this._addSourceToCollections(b,s),this._cachedOrderedSources.clear(),b}restoreStudy(e,t,i,s){if(t&&void 0===e.data&&void 0===e.nonSeriesData&&void 0===e.indexes)return Ie.logError("Cannot restore (skipping) study without data "+e.id+", "+e.metaInfo.id),null;const r=e.id,n=e.state,o=e.zorder,a=e.ownerSource;let l=(0,ee.clone)(e.metaInfo);if(Object.assign(l,Q().parseIdString(l.id)),function(e){return"Script$TV_EARNINGS@tv-scripting"===e||"Script$TV_DIVIDENDS@tv-scripting"===e||"Script$TV_SPLITS@tv-scripting"===e||"ESD$TV_EARNINGS@tv-scripting"===e||"ESD$TV_DIVIDENDS@tv-scripting"===e||"ESD$TV_SPLITS@tv-scripting"===e||"Earnings@tv-basicstudies"===e||"Dividends@tv-basicstudies"===e||"Splits@tv-basicstudies"===e||"BarSetContinuousRollDates@tv-basicstudies"===e}(l.id)&&!t)return Ie.logNormal("Skipping study "+l.id),null;let c=n;const h=this._model.studyVersioning(),d=h.patchPropsStateAndMetaInfo(c,l,{oldShowStudyLastValueProperty:t&&!i.showStudyLastValueProperty});c=d.propsState,l=d.metaInfo;const u=new w.StudyStub(this._model,e,l.shortDescription);let p;u.setId(r),u.setZorder(o);const _=i=>{u.setStatus({type:me.StudyStatusType.Undefined});const s=i||new(Q())(l),n=ve.instance(this._model),o=o=>{var a;const d=(0,Se.prepareStudyPropertiesForLoadChart)(l,i,c,null,h),_=(0,H.createStudy)(this._model,d,o||this._model.mainSeries(),s);if(_.setId(r),_.setOwnFirstValue(null!==(a=e.ownFirstValue)&&void 0!==a?a:null),t){const t=e,{data:i,nsData:s,indexes:r}=h.patchStudyData(l,t.data,t.nonSeriesData,t.indexes);_.restoreData(i,s,r)}this._model.replaceStudyStub(u,_)||(p=_),n.add(r,_)};a&&e.state.isChildStudy?n.get(a).then(o):o()};if(t)_(null);else{const e=h.updateMetaInfoAsync(l);e.sync?_(e.result):e.result.then(_).catch(e=>u.setFailed("error: "+e))}const m=null!=p?p:u;return m&&(m.setZorder(o),this._addSourceToCollections(m,s),this._processMainSourceChange()),this._cachedOrderedSources.clear(),m}clipboardLineToolOwnerSource(e){const t=this.dataSourceForId(e);if(null!==t){const e=t.ownerSource();if(null!==e&&null!==e.firstValue())return e}const i=this.mainDataSource();if(null!==i&&null!==i.firstValue())return i;for(const e of this.dataSources())if((0, +ie.isPriceDataSource)(e)&&null!==e.firstValue())return e;return null}realignLineTools(e){var t;let i=!1;for(const s of this.m_dataSources)!(0,f.isLineTool)(s)||void 0!==e&&(null===(t=null==s?void 0:s.ownerSource())||void 0===t?void 0:t.symbolSource())!==e&&(0,de.isActingAsSymbolSource)(e)||(s.realign(),s.updateAllViews((0,O.dataSourceChangeEvent)(s.id())),i=!0);return i&&this._invalidateSourcesCache(),i}startScalePrice(e,t){e.startScale(t)}scalePriceTo(e,t){e.scaleTo(t),this.updateAllViews((0,O.viewportChangeEvent)())}endScalePrice(e){e.endScale()}startScrollPrice(e,t){e.startScroll(t)}scrollPriceTo(e,t){e.scrollTo(t),this.updateAllViews((0,O.viewportChangeEvent)())}endScrollPrice(e){e.endScroll()}resetPriceScale(e){const t=this.timeScale().visibleBarsStrictRange();e.isLockScale()||e.setMode({autoScale:!0}),e.recalculatePriceRange(t),this.updateAllViews((0,O.viewportChangeEvent)())}restorePriceScaleState(e,t){e.restoreState(t),this.updateAllViews((0,O.viewportChangeEvent)())}beginInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null}endInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null}removeSourceFromPriceScale(e){const t=e.priceScale();if(null!==t){const i=t.dataSources();i.indexOf(e)>=0&&t.removeDataSource(e),0===i.length&&this.removePriceScale(t)}}_invalidateSourcesCache(){this._cachedOrderedSources.clear(),this._leftPriceScales.forEach(e=>e.invalidateSourcesCache()),this._rightPriceScales.forEach(e=>e.invalidateSourcesCache())}_processMainSourceChange(){let e=!1;if(null===this.m_mainDataSource)for(const t of this.m_dataSources)if((0,ie.isPriceDataSource)(t)&&!this.isOverlay(t)&&(!t.properties().linkedToSeries||!t.properties().linkedToSeries.value())){this.m_mainDataSource=t,e=!0;break}if(this.m_mainDataSource&&e){let e=this.m_dataSources.filter(f.isLineTool);e=(0,se.sortSources)(e);for(const t of e)this.move(t,(0,r.ensureNotNull)(this.m_mainDataSource.priceScale()),!0)}else if(!this.m_mainDataSource||this.isOverlay(this.m_mainDataSource)&&0===this._nonOverlayPricesSourcesCount()){let e=null;if(this.m_dataSources.includes(this._model.mainSeries()))e=this._model.mainSeries();else for(const t of this.m_dataSources)if((0,ie.isPriceDataSource)(t)&&this.isOverlay(t)&&t.showInObjectTree()){e=t;break}if(null!==e){const t=this.m_mainDataSource===e;this.m_mainDataSource=e;const i=this.createNewPriceScaleIfPossible();if(t&&e===this._model.mainSeries()){const t=(0,r.ensureNotNull)(e.priceScale());this._model.children(e,!0).forEach(e=>{this.removeSourceFromPriceScale(e),i.addDataSource(e),e.setPriceScale(i)}),this.removePriceScale(t)}this.move(e,i,!0),this.recalculatePriceScale(e.priceScale(),(0,O.globalChangeEvent)())}}}_addSourceToCollections(e,t){this.m_dataSources.push(e),this._sourcesById.set(e.id(),e),this._invalidateSourcesCache();const i=()=>{this._sourcePropertiesChanged.fire(e)};e.properties().subscribe(this,i),e.zOrderChanged().subscribe(this,t=>this._sourcesZOrderChanged.fire(e,t)),(0, +f.isLineTool)(e)&&(e.normalizedPointsChanged().subscribe(this,i),e.fixedPointChanged().subscribe(this,i),e.hasAlert.subscribe(i),e.sharingMode().subscribe(i),e.linkKey().subscribe(i),this._sourceWatchedValuesSubscriptions.set(e.id(),i));const s=(0,de.isSymbolSource)(e)?e:null;(0,ie.isPriceDataSource)(e)&&(this._priceSourcesById.set(e.id(),e),e.currencyChanged().subscribe(this,()=>this._invalidateSourcesCache()),e.unitChanged().subscribe(this,()=>this._invalidateSourcesCache()),this._priceDataSources.push(e),null!==s&&(this._symbolSources.push(s),s.symbolResolved().subscribe(this,()=>this._symbolSourceResolved.fire(e)),s.symbolResolvingActive().subscribe(this._recalcSymbolSourceResolvingActive),s.symbolHibernated().subscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged())),e.isMultiPaneAvailable()&&this.model().addMultiPaneSource(e),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_removeSourceFromCollections(e,t){const i=this.m_dataSources[e];i.properties().unsubscribeAll(this),i.zOrderChanged().unsubscribeAll(this),this.m_dataSources.splice(e,1),this._sourcesById.delete(i.id());const s=i.id();if((0,f.isLineTool)(i)&&(i.normalizedPointsChanged().unsubscribeAll(this),i.fixedPointChanged().unsubscribeAll(this),this._sourceWatchedValuesSubscriptions.has(s))){const e=this._sourceWatchedValuesSubscriptions.get(s);i.hasAlert.unsubscribe(e),i.linkKey().unsubscribe(e)}this._invalidateSourcesCache();const n=(0,de.isSymbolSource)(i)?i:null;if((0,ie.isPriceDataSource)(i)){this._priceSourcesById.delete(i.id()),i.currencyChanged().unsubscribeAll(this),i.unitChanged().unsubscribeAll(this);const e=this._priceDataSources.indexOf(i);if((0,r.assert)(-1!==e),this._priceDataSources.splice(e,1),null!==n){const e=this._symbolSources.indexOf(n);(0,r.assert)(-1!==e,"Source is not found"),this._symbolSources.splice(e,1),n.symbolResolved().unsubscribeAll(this),n.symbolResolvingActive().unsubscribe(this._recalcSymbolSourceResolvingActive),n.symbolHibernated().unsubscribe(this._onSymbolSourceCollectionChanged),this._recalcSymbolSourceResolvingActive(),this._onSymbolSourceCollectionChanged()}}i.isMultiPaneAvailable()&&this.model().removeMultiPaneSource(i),t||0!==this._bulkActions.activeCounter||this._dataSourcesCollectionChanged.fire()}_recalculatePriceScaleByScaleRatio(e){this.isMainPane()&&e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToPriceScale():this._tryToApplyNewPriceScaleRatio())}_defaultBottomMargin(){return.01*this.properties().childs().bottomMargin.value()}_defaultTopMargin(){return.01*this.properties().childs().topMargin.value()}_updateMargins(){const e=this._defaultTopMargin(),t=this._defaultBottomMargin();for(const i of this._leftPriceScales)Me(i,e,t);for(const i of this._rightPriceScales)Me(i,e,t);for(const i of this.m_dataSources)if(this.isOverlay(i)){const s=i.priceScale();null!==s&&(Me(s,e,t),this.recalculatePriceScale(s,(0,O.viewportChangeEvent)()))} +for(const e of this._leftPriceScales)this.recalculatePriceScale(e,(0,O.viewportChangeEvent)());for(const e of this._rightPriceScales)this.recalculatePriceScale(e,(0,O.viewportChangeEvent)());this.updateAllViews((0,O.viewportChangeEvent)())}_batchReorder(e,t,i){i(this.sourcesByGroup().allExceptSpecialSources(),e,t),this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire(),this.model().fullUpdate()}_placePriceScale(e,t,i){if("overlay"===t)return void e.invalidateMargins();const s="left"===t?this._leftPriceScales:this._rightPriceScales,n=void 0===i?s.length:i;s.splice(n,0,e),e.modeChanged().subscribe(this,this._onPriceScaleModeChanged.bind(this,e)),e.internalHeightChanged().subscribe(this,this._recalculatePriceScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._recalculateTimeScaleByScaleRatio.bind(this,e)),e.priceRangeChanged().subscribe(this,this._onPriceScaleSetMinMaxPriceRange.bind(this,e)),e.isLockScale()&&((0,r.assert)(null===this._lockedPriceScale),this._lockedPriceScale=e,this._currentPriceScaleRatio=null),e.invalidateMargins(),this._onPriceScalesChanged.fire()}_onPriceScaleModeChanged(e,t,i){if(i.lockScale&&(this._lockedPriceScale!==e&&null!==this._lockedPriceScale&&this._lockedPriceScale.setMode({lockScale:!1}),this._lockedPriceScale=e,this._currentPriceScaleRatio=(0,ce.scaleRatio)(this.timeScale(),e)),t.lockScale&&!i.lockScale&&(this._lockedPriceScale=null,this._currentPriceScaleRatio=null),t.percentage===i.percentage&&t.indexedTo100===i.indexedTo100)return;const s=this.timeScale().visibleBarsStrictRange();null!==s&&(e.recalculatePriceRange(s),e.updateAllViews((0,O.viewportChangeEvent)()))}_applyOldScaleRatioToPriceScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||null===this._lockedPriceScale||(this._isRecalculatingScales=!0,this._setNewPriceRangeByScaleRatio(this._lockedPriceScale,this._currentPriceScaleRatio,this._mainSourceVisiblePriceRange(this._lockedPriceScale)),this._isRecalculatingScales=!1)}_setNewPriceRangeByScaleRatio(e,t,i,s,r){const n=(0,ce.priceRangeByScaleRatio)(e,this.timeScale().barSpacing(),t);e.setPriceRange(null!==n?n:i,s,r)}_applyOldScaleRatioToTimeScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||(this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(),this._isRecalculatingScales=!1)}_tryToApplyNewPriceScaleRatio(){const e=(0,r.ensureNotNull)(this._lockedPriceScale),t=(0,ce.scaleRatio)(this.timeScale(),e);this._currentPriceScaleRatio===t||e.isLog()||(this._currentPriceScaleRatio=t,this.model().mainSeriesScaleRatioPropertyOnChanged())}_recalculateTimeScaleByScaleRatio(e){e===this._lockedPriceScale&&(null!==this._currentPriceScaleRatio?this._applyOldScaleRatioToTimeScale():this._tryToApplyNewPriceScaleRatio())}_setNewBarSpacingByScaleRatio(){const e=this.timeScale().getValidBarSpacing((0,ce.barSpacingByScaleRatio)((0,r.ensureNotNull)(this._lockedPriceScale),this._currentPriceScaleRatio));this.timeScale().isValidBarSpacing(e)&&this.timeScale().setBarSpacing(e)}_mainSourceVisiblePriceRange(e){ +const t=this.timeScale().visibleBarsStrictRange();return null!==t?(0,r.ensureNotNull)((0,r.ensureNotNull)(e.mainSource()).priceRange(t.firstBar(),t.lastBar())):new he.PriceRange(-.5,.5)}_setMinMaxPriceRange(){const e=(0,r.ensureNotNull)(this._lockedPriceScale),t=(0,ce.priceRangeByScaleRatio)(e,this.timeScale().maxBarSpacing(),this._currentPriceScaleRatio),i=(0,ce.priceRangeByScaleRatio)(e,this.timeScale().minBarSpacing(),this._currentPriceScaleRatio);null!==t&&e.setMaxPriceRange(t),null!==i&&e.setMinPriceRange(i)}_onPriceScaleSetMinMaxPriceRange(e){e===this._lockedPriceScale&&this._setMinMaxPriceRange()}_nonOverlayPricesSourcesCount(){return this.m_dataSources.filter(e=>(!e.properties().linkedToSeries||!e.properties().linkedToSeries.value())&&((0,ie.isPriceDataSource)(e)&&e.showInObjectTree()&&!this.isOverlay(e))).length}_restoreMainSeries(e,t,i,s,r,n){const o=e.id,a=e.state;if(a&&r&&(a.style=r.style||a.style,a.interval=r.interval||a.interval,r.symbol&&r.symbol!==a.symbol&&(a.symbol=r.symbol,delete a.currencyId,delete a.unitId)),a&&a.style,a&&["candleStyle","hollowCandleStyle","haStyle"].forEach(e=>{a[e]&&(a[e].wickUpColor=a[e].wickUpColor||a[e].wickColor,a[e].wickDownColor=a[e].wickDownColor||a[e].wickColor)}),a&&(a.statusViewStyle=a.statusViewStyle||{},!a.statusViewStyle.symbolTextSource)){const e=!!a.statusViewStyle.showSymbolAsDescription;a.statusViewStyle.symbolTextSource=e?"ticker":"description"}if(a&&(a.extendedHours?a.sessionId="extended":a.sessionId||(a.sessionId="regular"),delete a.extendedHours),!i){const e=this._model.mainSeries();this._model.mainPane().removeDataSource(e,!1,n),this._addSourceToCollections(e,n)}const l=this.model().mainSeries(),c=l.properties().childs();this.m_mainDataSource=l;const h=a&&a.style?a.style:void 0;if(6===h&&"ATR"===c.pnfStyle.childs().inputs.childs().style.value()?c.pnfStyle.childs().inputs.childs().style.setValueSilently("Traditional"):4===h&&"ATR"===c.renkoStyle.childs().inputs.childs().style.value()&&c.renkoStyle.childs().inputs.childs().style.setValueSilently("Traditional"),a&&!a.hasOwnProperty("showSessions")&&(a.showSessions=!1),a&&void 0===a.settlementAsClose&&(a.settlementAsClose=!1),a&&t&&(a.showCountdown=!1),a&&(t&&!("showSeriesLastValueProperty"in s)&&"showLastValue"in a&&this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.setValue(a.showLastValue),delete a.showLastValue),a){const t={haStyle:(0,N.chartStyleStudyId)(8,!0),renkoStyle:(0,N.chartStyleStudyId)(4,!0),pbStyle:(0,N.chartStyleStudyId)(7,!0),kagiStyle:(0,N.chartStyleStudyId)(5,!0),pnfStyle:(0,N.chartStyleStudyId)(6,!0),rangeStyle:(0,N.chartStyleStudyId)(11,!0)},i=this._model.studyVersioning(),s=l.styleStudyInfos(),r=Object.keys(_e.SYMBOL_STRING_DATA);for(let n=0;nthis._zoffset&&e+t>0)return Ne.logError("merge: when the first time point index is updated, we should fill the time points starting from the first one"),[];if(0===this._items.length)return this._items=i.slice(),this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];const s=e+this._zoffset;if(s<0){const r=Math.abs(s);if(i.lengththis._items.length){const e=o-this._items.length;for(let t=n;tthis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(let i=0;io){const i=e-o;if(i<500&&null!=t)return t(l,i);return l+i*c}return null}roughIndex(e,t=null){const i=this._items;if(!i.length||i.length<2)return null;const s=i.length-1,r=this._validOffsetToIndex(0),n=this._validOffsetToIndex(s),o=i[0],a=i[s];if(e>=o&&e<=a)return this.closestIndexLeft(e);const l=(a-o)/(n-r);if(ea){const i=e-a;let s=Math.trunc(i/l);if(s<500&&null!==t){const i=t(a,e);i.success&&(s=i.result)}return n+s}return null}closestIndexLeft(e){const t=this._items;if(!t.length)return null;if(Number.isNaN(e))return null;let i=t.length-1;if(e>=t[i])return this._validOffsetToIndex(i);let s=0;const r=t[s];if(es+1;){const r=s+i>>1,n=t[r];if(n>e)i=r;else{if(!(n{this.setRightOffset(e)}),this._options.preserveBarSpacing&&(this._barSpacing=this._scalesProperties.childs().barSpacing.value()||6),this._barSpacingChanged.subscribe(this,this._maxRightOffsetOnChanged),this._widthChanged.subscribe(this,this._maxRightOffsetOnChanged)}destroy(){this._barSpacingChanged.unsubscribeAll(this),this._barSpacingChanged.destroy(),this._widthChanged.unsubscribeAll(this),this._widthChanged.destroy()}isEmpty(){return 0===this._width||!this.canNormalize()}canNormalize(){return this._points.size()>0}update(e,t,i,s){this._visibleBarsInvalidated=!0,i.length>0&&this._points.merge(e,t,i),this._tickMarks.merge(s),this._correctOffset()}addTail(e,t,i){this._tickMarks.removeTail(t);const s=e.params,n=(0,r.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1);for(let e=0;e0&&(i*=this._width/e.width)),this._tryToUpdateBarSpacing(this._barSpacing,i),this._correctOffset(),this._rightOffsetChanged.fire(this._rightOffset)}marks(){if(this.isEmpty())return null;const e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),s=(0,r.ensureNotNull)(this.visibleBarsStrictRange()),n=Math.max(s.firstBar(),s.firstBar()-i),o=Math.max(s.lastBar(),s.lastBar()-i),a=this._tickMarks.build(e,t),l=[];for(const e of a){if(!(n<=e.index&&e.index<=o))continue;const t=this._tickMarks.indexToTime(e.index);null!==t&&l.push({coord:this.indexToCoordinate(e.index), +label:this.formatLabel(t,e.span),span:e.span,major:e.label>=He.DAY_SPAN})}return l}visibleBarsStrictRange(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()}visibleBarsStrictRangeChanged(){return this._visibleBarsChanged}logicalRangeChanged(){return this._logicalRangeChanged}tickMarks(){return this._tickMarks}points(){return this._points}width(){return this._width}setWidth(e,t){if(!Number.isFinite(e)||e<=0)return void Ke.logWarn("setWidth: invalid argument: "+e);if(this._width===e)return;if(this._visibleBarsInvalidated=!0,(t||this._options.lockVisibleTimeRangeOnResize)&&this._width){const t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}else this._width&&this.setBarSpacing(this._barSpacing);if(null!==this._leftEdgeIndex){if((0,r.ensureNotNull)(this.visibleBarsStrictRange()).firstBar()<=this._leftEdgeIndex){const t=this._width-e;this._rightOffset-=Math.round(t/this._barSpacing)+1}}this._width=e,this._widthChanged.fire(e);const i=this._rightOffset;this._correctOffset(),this._rightOffset!==i&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}setLeftEdgeFix(e){this._leftEdgeIndex=e;const t=this.visibleBarsStrictRange();if(null===t)return;const i=t.firstBar()-e;if(i<0){const e=this._rightOffset-i-1;this.scrollToOffsetAnimated(e,500)}}indexToCoordinate(e){if(this.isEmpty())return 0;if(!(0,ee.isInteger)(e))return 0;const t=this.baseIndex()+this._rightOffset-e;return this._width-(t+.5)*this._barSpacing-1}indexToUserTime(e){return this._tickMarks.indexToTime(e)}timePointToIndex(e){return this._points.indexOf(e,!0)}indexToTimePoint(e){return this._points.valueAt(e)}timeToCoordinate(e){const t=this._points.closestIndexLeft(e);if(null===t)return null;const i=(0,r.ensureNotNull)(this._points.valueAt(t)),s=this.indexToCoordinate(t);if(s<=0||s>=this._width)return null;const n=this.barSpacing(),o=this.baseIndex(),a=s+(e-i)/((0,r.ensureNotNull)(this._points.valueAt(o))-(0,r.ensureNotNull)(this._points.valueAt(o-1)))*n+1;return a<=0||a>=this._width?null:a}barIndexesToCoordinates(e){const t=this.baseIndex();for(const i of e){const e=i.time,s=t+this._rightOffset-e,r=this._width-(s+.5)*this._barSpacing-1;i.time=r,i.exactTime=r}}timedValuesToCoordinates(e,t){var i,s;const r=this.baseIndex()+this._rightOffset,n=this._width-r*this._barSpacing-.5*this._barSpacing-1,o=null!==(i=null==t?void 0:t.startItemIndex)&&void 0!==i?i:0,a=null!==(s=null==t?void 0:t.endItemIndex)&&void 0!==s?s:e.length;for(let t=o;t{void 0!==t&&t(),this._requestMoreData()};if(e){const e=this._rightOffset,t=this.maxRightOffset();t>0&&i>t&&(i=t);const r=this._model;(0,Ee.doAnimate)({from:e,to:i,duration:1e3,easing:Ae.easingFunc.easeInOutQuint,onComplete:s,onStep:(e,t)=>{this._visibleBarsInvalidated=!0,this._updateRightOffset(t),r.recalculateAllPanes((0,O.viewportChangeEvent)()),r.lightUpdate(),r.recalcVisibleRangeStudies()}})}else this._visibleBarsInvalidated=!0,this._updateRightOffset(i),s()}scrollToFirstBar(){this._model.gotoTime(new Date("1800-01-01").getTime())}scrollToOffsetAnimated(e,t){if(!isFinite(e))throw new RangeError("offset is required and must be finite number");const i=void 0===t?400:t;if(!isFinite(i)||i<=0)throw new RangeError("animationDuration (optional) must be finite positive number");const s=this._rightOffset,r=Date.now(),n=()=>{this._visibleBarsInvalidated=!0;const t=(Date.now()-r)/i;if(t>=1)return this._updateRightOffset(e),this._visibleBarsInvalidated=!0,this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),void this._model.lightUpdate();const o=s+(e-s)*t;this._updateRightOffset(o),this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),setTimeout(n,20)};n()}defaultRightOffset(){return this._defaultRightOffset}rightOffsetDefaultValue(){return 10}barSpacing(){return this._barSpacing}setBarSpacing(e){Number.isFinite(e)?(e=this.getValidBarSpacing(e),this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this._correctOffset(),this._options.preserveBarSpacing&&((0,P.saveDefaultProperties)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),(0,P.saveDefaultProperties)(!1)),this._model.recalculateAllPanes((0,O.viewportChangeEvent)()),this._model.lightUpdate())):Ke.logWarn("setBarSpacing: invalid argument: "+e)}barSpacingChanged(){return this._barSpacingChanged}getValidBarSpacing(e){return null==e&&(e=this.barSpacing()),ethis.maxBarSpacing()?this.maxBarSpacing():e}isValidBarSpacing(e){return e>=this.minBarSpacing()&&e<=this.maxBarSpacing()}preserveBarSpacing(){return this._options.preserveBarSpacing}normalizeBarIndex(e){let t=0,i=0;const s=this.baseIndex(),n=(0,r.ensureNotNull)(this._points.firstIndex());return es?(t=(0,r.ensureNotNull)(this._points.valueAt(s)),i=e-s):(t=(0,r.ensureNotNull)(this._points.valueAt(e)),i=0),{time_t:t,offset:i}}denormalizeTimePoint(e){const t=this._points.indexOf(e.time_t,!1);if(null!==t)return t+e.offset}rightOffset(){return this._rightOffset}rightOffsetChanged(){return this._rightOffsetChanged}minRightOffset(){const e=this.points().firstIndex(),t=this._baseIndex;if(null===e||null===t)return null;if(null!==this._leftEdgeIndex){const e=this.width()/this._barSpacing;return this._leftEdgeIndex-t+e-1}return e-t-1+Ye}maxRightOffset(){return this.width()/this._barSpacing-Ye}maxRightOffsetChanged(){return this._maxRightOffsetChanged}onReset(){return this._resetDelegate}scrollStartPoint(){return this._scrollStartPoint} +baseIndex(){return this._baseIndex||0}zoom(e,t,i){if(!Number.isFinite(e)||!Number.isFinite(t))return void Ke.logWarn(`zoom: invalid arguments: ${e}, ${t}, ${i}`);const s=this.coordinateToIndex(e),r=this.barSpacing(),n=r+t*(r/10);this.setBarSpacing(n);(void 0!==i?!i:this._options.rightBarStaysOnScroll)||this.setRightOffset(this.rightOffset()-.5+(s-this._coordinateToFloatIndex(e))),this._requestMoreData()}zoomToBarsRange(e,t){if(null!==this._leftEdgeIndex&&(e=Math.max(e,this._leftEdgeIndex)),t<=e)return;const i=this.baseIndex(),s=this._rightOffset;this._rightOffset=t-i;const r=Math.max(t-e+1,Ye);this.setBarSpacing(this.width()/r),this._visibleBarsInvalidated=!0,this._correctOffset(),this._rightOffset!==s&&this._rightOffsetChanged.fire(this._rightOffset),this._requestMoreData()}coordinateToIndex(e){return Math.ceil(this._coordinateToFloatIndex(e))}coordinateToVisibleIndex(e){let t;if(0===e){const e=this._coordinateToFloatIndex(-1);t=Math.floor(e)+1}else t=this.coordinateToIndex(e);const i=this.visibleBarsStrictRange();return null===i||i.contains(t)||(t=Math.min(Math.max(i.firstBar(),t),i.lastBar())),t}canZoomIn(){return this.barSpacing()this._options.minBarSpacing}minBarSpacing(){return this._options.minBarSpacing}maxBarSpacing(){const e=this.width();return qe?e:e/Ye}resetRightOffset(){this.setRightOffset(this._defaultRightOffset.value())}reset(){this._visibleBarsInvalidated=!0,this._points=new Re,this._scrollStartPoint=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire(),this.disconnect()}disconnect(){this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1}setBaseIndex(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._baseIndex=e,this._correctOffset()):Ke.logDebug("setBaseIndex: invalid argument: "+e)}resetBaseIndex(){this._visibleBarsInvalidated=!0,this._baseIndex=null}setRightOffset(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._updateRightOffset(e)):Ke.logWarn("setRightOffset: invalid argument: "+e)}correctBarSpacing(){this.isEmpty()||this.points().size()this.formatLabelImpl(e,t)),this._formattedBySpan.set(t,i)),i.format(new Date(e))}formatLabelImpl(e,t){if(!(e&&e instanceof Date))return"incorrect time";const i=function(e,t){if(ee&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);const t=this.minRightOffset();null!==t&&this._rightOffset{e.onChanged().subscribe(null,t=>this._onChanged.fire(e.id,t))})}groups(){return this._groups.filter(e=>e.isActualSymbol())}groupsForAllSymbols(){return this._groups}createGroup(e,t,i){t=t||this._generateNextName();const s=new et.LineToolsGroup(e,t,i);this._groups.push(s), +s.onChanged().subscribe(null,e=>this._onChanged.fire(s.id,e));const r={visibilityChanged:!1,lockedChanged:!1,titleChanged:!1,isActualIntervalChanged:!1,affectedLineTools:e.map(e=>e.id())};return this._onChanged.fire(s.id,r),s}addGroup(e){this._groups.push(e),e.onChanged().subscribe(null,t=>this._onChanged.fire(e.id,t)),this._onChanged.fire(e.id)}removeGroup(e){const t=this._groups.findIndex(t=>t.id===e.id);this._groups.splice(t,1),this._onChanged.fire(e.id)}groupForId(e){return this._groups.find(t=>t.id===e)||null}groupForLineTool(e){return this._groups.find(t=>t.containsLineTool(e))||null}removeLineTools(e){this._groups.forEach(t=>{const i=e.filter(t.containsLineTool.bind(t));i.length&&t.excludeLineTools(i)});this._groups.filter(e=>0===e.lineTools().length).forEach(e=>this.removeGroup(e))}state(e){return{groups:(e?this._groups.filter(e=>e.isActualSymbol()):this._groups).map(e=>e.state())}}onChanged(){return this._onChanged}fireChangedAll(){this._groups.forEach(e=>{this._onChanged.fire(e.id)})}static fromState(e,t){const i=[];for(const s of t.groups){const t=et.LineToolsGroup.fromState(e,s);null!==t&&i.push(t)}return new tt(i)}_generateNextName(){const e=new Set(this.groups().map(e=>e.name()));for(let t=1;;t++){const i="Group "+t,s="Group_"+t;if(!e.has(i)&&!e.has(s))return i}}}var it=i(10480),st=i.n(it),rt=i(69177);let nt=null;function ot(e){return Boolean(e.symbolInfo.timezone)&&Boolean(e.symbolInfo.session)}class at{constructor(e,t){var i,s;this._sourceTargetBarBuilder=null,this._cache=new Map,this._source=e,this._sourceSession=rt.SessionInfo.fromState(e.session),this._target=t,this._targetSession=rt.SessionInfo.fromState(t.session),this._isResolutionTheSame=C.Interval.isEqual(e.resolution,t.resolution),this._isSessionTheSame=(i=e.symbolInfo,s=t.symbolInfo,i.timezone===s.timezone&&i.session===s.session&&i.session_holidays===s.session_holidays&&i.corrections===s.corrections),this._shouldCorrectTradingDay=C.Interval.isDWM(e.resolution)&&!this._isSessionTheSame}sourceTimeToTargetTime(e){if(this._isSessionTheSame&&this._isResolutionTheSame)return e;if(!ot(this._source)||!ot(this._target))return e;let t=this._cache.get(e);if(void 0===t){let i=1e3*e;if(this._shouldCorrectTradingDay){let e=st().utc_to_cal(this._sourceSession.timezone,i);e=this._sourceSession.spec.correctTradingDay(e);const t=new Date(e);st().set_hms(t,0,0,0,0,this._sourceSession.timezone),i=t.valueOf()}const s=this._sourceTargetBuilder();s.moveTo(i);const r=s.indexOfBar(i);t=s.startOfBar(Math.max(0,r))/1e3,this._cache.set(e,t)}return t}_sourceTargetBuilder(){if(null===this._sourceTargetBarBuilder){const e=this._isSessionTheSame?this._targetSession:(null===nt&&(nt=new rt.SessionInfo("Etc/UTC","24x7")),nt);this._sourceTargetBarBuilder=(0,rt.newBarBuilder)(this._target.resolution,this._targetSession,e)}return this._sourceTargetBarBuilder}}var lt=i(85733),ct=i(68906),ht=i(4676),dt=i(49642);function ut(e,t){return e.codet.code?1:0}class pt{constructor(e){this._convertibleItems=e,this._idsToItems=new Map +;for(const t of e)this._idsToItems.set(t.id,t)}convertible(e){return void 0!==this._idsToItems.get(e)}item(e){var t;return null!==(t=this._idsToItems.get(e))&&void 0!==t?t:null}size(){return this._convertibleItems.length}filterConvertible(e,t){const i=this._convertibleItems.filter(function(e,t){return i=>!e.has(i.id)&&t(i.id)}(e,t));return i.sort(ut),i}}class _t{constructor(e){this._allGroups=new Set,this._idToName=new Map,this._idToDescription=new Map,this._groupedUnitIds=new Map,this._groupedUnits=new Map,this._groupById=new Map,this._size=0,this._units=e;for(const t in e)if(e.hasOwnProperty(t)){this._allGroups.add(t),this._groupedUnitIds.set(t,new Set(e[t].map(e=>e.id))),this._groupedUnits.set(t,e[t]);for(const i of e[t])this._size++,this._idToName.set(i.id,i.name),this._idToDescription.set(i.id,i.description),this._groupById.set(i.id,t)}}unitsChanged(e){return this._units!==e}size(){return this._size}name(e){return this._idToName.get(e)||e}description(e){return this._idToDescription.get(e)||e}unitGroupById(e){return this._groupById.get(e)||null}allGroups(){return new Set(this._allGroups)}unitsByGroups(e){const t=[];return e.forEach(e=>{const i=this._groupedUnits.get(e);void 0!==i&&t.push({name:e,units:i})}),t}convertible(e,t){for(const i of t){const t=this._groupedUnitIds.get(i);if(void 0!==t&&t.has(e))return!0}return!1}}var mt=i(93751);class gt{constructor(e){this._source=null,this._sourcePane=null,this._currentToolSupportsPhantomMode=!1,this._model=e}destroy(){this._source=null,this._sourcePane=null}source(){return this._source}onToolChanged(){this._removeSource();const e=this._model.currentTool();this._currentToolSupportsPhantomMode=(0,f.isLineToolName)(e)&&(0,f.supportsPhantomMode)(e)}onCursorPositionUpdated(){if(!this._currentToolSupportsPhantomMode)return;const e=this._model.crossHairSource();if(this._sourcePane!==e.pane&&this._removeSource(),null===e.pane||!(0,mt.isNumber)(e.index)||!(0,mt.isNumber)(e.price))return void this._removeSource();const t={index:e.index,price:e.price};null!==this._source?this._source.setPoint(0,t):(this._source=this._model.createLineTool(e.pane,t,this._model.currentTool(),void 0,null),this._sourcePane=e.pane)}_removeSource(){null!==this._source&&(this._model.removeSource(this._source),this._source=null,this._sourcePane=null)}}var ft=i(71053),vt=i(73383),St=i(90373),yt=i(30460);class bt{align(e,t,i){let s=e;if(!(0,yt.magnetEnabled)().value())return s;const n=i.mainDataSource();if(null===n)return s;const o=n.model().mainSeries();if(n!==o)return s;const a=o.priceScale(),l=o.bars();if(a.isEmpty()||!l.contains(t))return s;const c=l.valueAt(t);if(null===c)return s;const h=[];null!==o.priceSource()?h.push(o.barFunction()(c)):h.push(c[1],c[2],c[3],c[4]);const d=(0,r.ensure)(o.firstValue()),u=h.map(e=>({y:a.priceToCoordinate(e,d),price:e})),p=a.priceToCoordinate(e,d);u.sort((e,t)=>Math.abs(e.y-p)-Math.abs(t.y-p));const _=u[0];return((0,yt.magnetMode)().value()===St.MagnetMode.StrongMagnet||Math.abs(_.y-p)<50)&&(s=_.price),s}}var wt=i(65862),Ct=i(62443),Pt=i(29892),Tt=i(42759);class xt{ +constructor(){this._data=null}setData(e){this._data=e}draw(e,t){if(null===this._data)return;const i=t.pixelRatio,s=Math.max(1,Math.floor(i));e.lineWidth=s;const r=Math.ceil(this._data.h*i),n=Math.ceil(this._data.w*i);if(e.save(),e.lineCap="butt",this._data.vertLinesVisible){e.strokeStyle=this._data.vertLinesColor,(0,Pt.setLineStyle)(e,this._data.vertLineStyle);for(const t of this._data.timeMarks){const s=Math.round(t.coord*i);(0,Tt.drawVerticalLine)(e,s,0,r)}}if(this._data.horzLinesVisible){e.strokeStyle=this._data.horzLinesColor,(0,Pt.setLineStyle)(e,this._data.horzLineStyle);for(const t of this._data.priceMarks){const s=Math.round(t.coord*i);(0,Tt.drawHorizontalLine)(e,s,0,n)}}e.restore()}hitTest(e){return null}}class It{constructor(e){this._renderer=new xt,this._pane=e}update(){}renderer(){const e=this._pane.defaultPriceScale(),t=this._pane.model().timeScale();if(e.isEmpty()||t.isEmpty())return null;const i=this._pane.model().properties().childs().paneProperties.childs(),s=t.marks(),r={horzLinesVisible:!0,vertLinesVisible:!0,horzLinesColor:i.horzGridProperties.childs().color.value(),vertLinesColor:i.vertGridProperties.childs().color.value(),horzLineStyle:i.horzGridProperties.childs().style.value(),vertLineStyle:i.vertGridProperties.childs().style.value(),priceMarks:e.marks(),timeMarks:null!==s?s:[],w:this._pane.width(),h:this._pane.height()};return this._renderer.setData(r),this._renderer}}class Mt extends Ct.DataSource{id(){return"grid"}paneViews(e){return[new It(e)]}}var Lt=i(97938);class At extends Lt.PriceAxisView{constructor(e,t,i){super(),this._source=e,this._priceScale=t,this._priceProvider=i,this._properties=e.model().properties().childs().scalesProperties}setHitTestData(e){this._hitTestData=e}additionalPadding(e){return 0}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._priceScale,r=s.mainSource(),n=null!==r?r.firstValue():null;if(!this._isVisible()||s.isEmpty()||null===n)return;const o=this._priceProvider(s);if(null===o)return;i.background=this._bgColor(),i.textColor=this.generateTextColor(i.background);const a=this.additionalPadding(s.fontSize());i.additionalPaddingTop=a,i.additionalPaddingBottom=a,i.coordinate=s.priceToCoordinate(o,n),e.text=s.formatPrice(o,n),e.visible=!0,t.visible=!0,t.hitTestData=this._hitTestData}}const Et={normalBgColor:a.colorsPalette["color-cold-gray-750"],hoveredBgColor:a.colorsPalette["color-cold-gray-600"]},kt={normalBgColor:a.colorsPalette["color-cold-gray-900"],hoveredBgColor:a.colorsPalette["color-cold-gray-650"]};class Dt extends At{additionalPadding(e){return 2/12*e}_isVisible(){return this._properties.childs().showPriceScaleCrosshairLabel.value()&&this._source.visible&&null!==this._source.pane}_bgColor(){return this._getThemedColors().normalBgColor}_updateRendererData(e,t,i){const s=t.visible;super._updateRendererData(e,t,i),this._source.isHovered()?t.backgroung=this._getThemedColors().hoveredBgColor:t.backgroung=void 0,s||(t.visible=s)}_getThemedColors(){return this._source.model().isDark()?Et:kt}}class Vt extends At{_isVisible(){ +return null!==this._source.measurePane().value()}_bgColor(){return this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}}var Bt=i(28978),Nt=(i(28296),i(97056));function Rt(e){const t=e.priceScale();return null===t?0:t.isPercentage()||t.isIndexedTo100()?2:1}const Ot=B.enabled("show_context_menu_in_crosshair_if_only_one_item");class Ft extends Bt.PanePriceAxisView{constructor(e,t,i,s,r){super(e,t,s),this._crossHairMenuCachedState=null,this._hasActions=!1,this._tooltipText=null,this._gaOrigin="CH menu",this._crosshairPriceAxisView=e,e.setPaneRendererLabelIcon(0),this._crosshair=t,this._scale=i,this._options=r}_updateImpl(e,t){super._updateImpl(e,t);const i=this._crosshair.y,s=this._chartModel.properties().childs().scalesProperties.childs().fontSize.value(),r=this._chartModel.timeScale().width(),n=this._crosshair.model().priceAxisRendererOptions(),o=s+2*this._crosshairPriceAxisView.additionalPadding(s)+n.paddingTop+n.paddingBottom,a=o,l=i-o/2,c=r-a,h=this._crosshair.pane,d=this._mainDataSourceOnPane(),u=d&&d.symbolSource(),p=!!u&&(u.isConvertedToOtherCurrency()||u.isConvertedToOtherUnit());if(null!==d){const e=Rt(d),t=d.idForAlert(),i=this._chartModel.isInReplay(),s=this._crossHairMenuCachedState;null!==s&&s.id===t&&s.priceScale===e&&s.isCurrencyOrUnitConverted===p&&s.isInReplay===i||(this._updateTooltipAndActionsAvaliability(d,e,p),this._crossHairMenuCachedState={id:t,priceScale:e,isCurrencyOrUnitConverted:p,isInReplay:i})}const _=null!==d&&(0,de.isActingAsSymbolSource)(d)?d.symbol():null,m=null!==h&&(h.maximized().value()||!h.collapsed().value())&&(Boolean(_)||!1);this._crosshairPriceAxisView.setPaneLabelVisible(m);const g=null!==h&&0!==h.leftPriceScales().length&&m,f=null!==h&&0!==h.rightPriceScales().length&&m,v=r-a/2,S=this._tooltipText?{text:this._tooltipText,rect:{x:v,y:l,w:0,h:0}}:void 0;this._data={left:g,right:f,xl:0,xr:c,y:l,containerWidth:a,containerHeight:o,clickHandler:this._handleClick.bind(this),tooltip:S},this._crosshairPriceAxisView.setHitTestData(this._data)}_priceScale(){return this._scale}_updateTooltipAndActionsAvaliability(e,t,i){this._tooltipText=null,this._hasActions=!1;if(!(1===t))return;this._chartModel.isInReplay();let s=0;let r=0;1!==s||Ot||(this._tooltipText=""),this._crosshairPriceAxisView.setPaneRendererLabelIcon(r),this._hasActions=0!==s}_handleClick(e,t,i){(0,h.trackEvent)(this._gaOrigin,"click");const s=this._mainDataSourceOnPane(),r=null!==s&&(0,de.isActingAsSymbolSource)(s)?s.symbol():null,n={pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,screenX:i.screenX,screenY:i.screenY,price:this._crosshair.price,symbol:r};u.emit("onPlusClick",n)}_getMenuItems(e){return Promise.resolve([])}_createAlertMenuItems(e){return Promise.resolve([])}_createTradingMenuItems(){return Promise.resolve([])}_createAddHorizontalLineMenuItem(){return[]}_getActionAddAlert(e){return null}_getActionAddHorizontalLine(e){return null}_getValue(e,t){const i=e.priceScale(),s=e.firstValue();if(null===i||null===s)return null +;return i.isPercentage()||i.isIndexedTo100()?null:i.coordinateToPrice(t,s)}_formatValue(e,t){return t.formatter().format(e)}_addAlert(e,t){}_addHorizontalLineTool(e,t){}_showContextMenu(e,t,i,s){const n="left"===s;setTimeout(()=>{const t=(0,r.ensureDefined)(this._data),s=n?t.xl:t.xr,o=i.localX-s,a=i.clientX-o,l=i.clientX-o+t.containerWidth;Nt.ContextMenuManager.showMenu(e,{clientX:n?a:l,clientY:i.clientY-t.containerHeight/2,boxHeight:t.containerHeight,attachToXBy:n?"left":"right",attachToYBy:"auto-strict"},void 0,{menuName:"CrosshairMenuView"})})}_mainDataSourceOnPane(){const e=this._crosshair.pane;return null!==e?e.mainDataSource():null}}var Wt=i(43891),Ht=i(71413),zt=i(84346);class Ut{constructor(e){this._data=e}hitTest(e){return void 0===this._data.clickHandler?null:new zt.HitTestResult(zt.HitTestResult.CUSTOM,{clickHandler:this._data.clickHandler,tapHandler:this._data.clickHandler})}draw(e,t){const i=t.pixelRatio,s=this._data.vertLinesVisible,r=this._data.horzLinesVisible;if(!s&&!r)return;e.save(),e.lineWidth=Math.max(1,Math.floor(this._data.lineWidth*i)),e.strokeStyle=this._data.color,e.fillStyle=this._data.color,e.lineCap="butt",(0,Pt.setLineStyle)(e,this._data.lineStyle);const n=Math.round(this._data.x*i),o=Math.round(this._data.y*i),a=Math.ceil(this._data.w*i),l=Math.ceil(this._data.h*i);s&&n>=0&&(0,Tt.drawVerticalLine)(e,n,0,l),r&&o>=0&&(0,Tt.drawHorizontalLine)(e,o,0,a),this._data.drawCenter&&(e.beginPath(),e.arc(n,o,Math.round(3*i),0,2*Math.PI,!0),e.fillStyle=this._data.color,e.fill()),e.restore()}}const jt=a.colorsPalette["color-tv-blue-500"];class Gt{constructor(e,t){this._rendererData={},this._renderer=new Ut(this._rendererData),this._source=e,this._pane=t}update(){}renderer(e,t){const i=this._source.selectPointMode().value(),s=this._source.visible&&(this._source.areLinesVisible||i)&&!this._source.linesShouldBeHidden(),n=this._rendererData;if(!s||null===this._pane)return null;const o=this._source.paneForPointSelect(),a=null!==o?this._source.pane===o&&this._pane===o:this._pane===this._source.pane;if(i&&this._source.isOnHoveredChartWidget()&&a){const e=(0,r.ensureNotNull)(this._source.pointToSelect());n.color=this._source.lineColor()||jt,n.lineWidth=1,n.lineStyle=Wt.LINESTYLE_SOLID,n.horzLinesVisible=!0,n.vertLinesVisible=!0,n.drawCenter=!1,"time"===e?n.horzLinesVisible=!1:"price"===e&&(n.vertLinesVisible=!1)}else{const e=this._source.properties(),t=this._source.model().currentTool(),i=(0,Ht.lastMouseOrTouchEventInfo)(),s=i.isTouch&&!i.stylus&&((0,f.isLineToolName)(t)||(0,lt.toolIsMeasure)(t));let r;r=s?jt:e.childs().color.value();const o=e.childs().transparency.value();!s&&o>0&&(r=(0,ct.generateColor)(r,o)),n.color=r,n.horzLinesVisible=this._pane===this._source.pane&&(this._pane.maximized().value()||!this._pane.collapsed().value()),n.vertLinesVisible=!0,n.lineWidth=e.childs().width.value(),n.lineStyle=e.childs().style.value(),n.drawCenter=s&&this._pane===this._source.pane}return n.w=this._pane.width(),n.h=this._pane.height(), +n.x=void 0!==this._source.lockedX&&isFinite(this._source.lockedX)&&this._source.lockedX||this._source.x,n.y=this._source.y,this._renderer}}var qt=i(55776);const Yt={backgroundColor:(0,ct.generateColor)(a.colorsPalette["color-tv-blue-500"],70),borderColor:(0,ct.generateColor)(a.colorsPalette["color-tv-blue-500"],20)};class Kt{constructor(e){this._renderer=new qt.RectangleRenderer,this._rectangle=null,this._crosshair=e}update(){const e=this._crosshair.selection();null!==e&&null!==this._crosshair.pane?this._rectangle=this._crosshair.pane.logicalRectToPixels(e):this._rectangle=null}renderer(e,t){if(!this._rectangle)return null;const i={backcolor:Yt.backgroundColor,color:Yt.borderColor,fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(i),this._renderer}}var $t=i(62820),Xt=i(26811),Zt=i(97645),Jt=i(92242),Qt=i(67802),ei=i(63300),ti=i(98664),ii=i(94804),si=i(49612);const ri=(0,K.t)("{count} bars"),ni=(0,K.t)("Vol"),oi=new Xt.PercentageFormatter,ai=new Jt.TimeSpanFormatter,li=new Qt.VolumeFormatter,ci=(0,a.getHexColorByName)("color-tv-blue-500"),hi=(0,a.getHexColorByName)("color-ripe-red-400"),di={bgColorPositive:(0,ct.generateColor)(ci,80),bgColorNegative:(0,ct.generateColor)(hi,80),colorPositive:(0,a.getHexColorByName)("color-tv-blue-600"),colorNegative:(0,a.getHexColorByName)("color-ripe-red-400"),labelBgColorPositive:ci,labelBgColorNegative:hi};class ui{constructor(e,t){this._pipFormatter=null,this._lastSymbolInfo=null,this._horzTrenRenderer=new ei.TrendLineRenderer,this._vertTrenRenderer=new ei.TrendLineRenderer,this._bgRenderer=new qt.RectangleRenderer,this._labelRenderer=new ti.TextRenderer,this._p1=null,this._p2=null,this._label=null,this._source=e,this._pane=t}update(e){const[t,i]=this._source.measurePoints();if(void 0===i)return this._p1=null,void(this._p2=null);const s=(0,r.ensureNotNull)(this._source.measurePane().value()),o=t.price,a=i.price,l=i.price-o,c=i.index-t.index,h=(0,$t.forceLTRStr)(""+c),d=(0,r.ensureNotNull)(s.mainDataSource());let u=(0,r.ensureNotNull)(d.formatter()).format(l);if(Math.abs(o)>1e-8){const e=l/Math.abs(o);u+=" ("+oi.format(100*e)+")"}const p=(0,$t.forceLTRStr)(u);this._label=p+"\n"+ri.format({count:h});const _=(0,r.ensureNotNull)(d.firstValue()),m=this._source.model().timeScale().indexToCoordinate(t.index),g=this._source.model().timeScale().indexToCoordinate(i.index),f=s.defaultPriceScale().priceToCoordinate(o,_),v=s.defaultPriceScale().priceToCoordinate(a,_);this._p1=new n.Point(m,f),this._p2=new n.Point(g,v);const S=this._source.model().timeScale().indexToUserTime(t.index),y=this._source.model().timeScale().indexToUserTime(i.index);let b=null;if(null!==S&&null!==y){const e=this._pane.model().mainSeries().symbolInfo();null!==e&&e!==this._lastSymbolInfo&&(this._pipFormatter=new Zt.PipFormatter(e.pricescale,e.minmov,e.type,e.minmove2),this._lastSymbolInfo=e),b=(y.valueOf()-S.valueOf())/1e3} +const w=this._pipFormatter?this._pipFormatter.format(l):null,C=null!==w?" , "+w:"",P=null!==b?ai.format(b):null,T=null!==P?", "+(0,$t.startWithLTR)(P):"";this._label=(0,$t.forceLTRStr)(p+C)+"\n"+ri.format({count:h})+T;const x=this._source.measureVolume();Number.isNaN(x)||(this._label+=`\n${ni} ${li.format(x)}`);const I=a=50?si.LineEnd.Arrow:si.LineEnd.Normal};this._horzTrenRenderer.setData(s)}{const e=Math.round(k.x),t=new n.Point(e,this._p1.y),i=new n.Point(e,this._p2.y),s={points:[t,i],color:L,linewidth:1,linestyle:Wt.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:si.LineEnd.Normal,rightend:Math.abs(t.y-i.y)>=50?si.LineEnd.Arrow:si.LineEnd.Normal};this._vertTrenRenderer.setData(s)}const D={x:0,y:10},V=.5*(this._p1.x+this._p2.x),B=this._p2.y,N=new n.Point(V,B),R=(O=(0,r.ensureNotNull)(this._label),{points:[N],text:O,color:"#FFFFFF",horzAlign:"center",vertAlign:"middle",font:M.CHART_FONT_FAMILY,offsetX:D.x,offsetY:D.y,bold:!1,italic:!1,fontsize:12,padding:8,highlightBorder:!1,backgroundColor:A,backgroundTransparency:10,backgroundVertInflate:5,backgroundHorzInflate:5,backgroundRoundRect:4});var O;this._labelRenderer.setData(R);const F=this._labelRenderer.measure(),W=(0,ti.calculateLabelPosition)(F,this._p1,this._p2,D,this._pane.height());this._labelRenderer.setPoints([W])}renderer(){if(null===this._p1||null===this._p2)return null;const e=new ii.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer),e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e}}var pi=i(16282);class _i extends pi.ScaledPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){return null}_drawImpl(e){e.translate(this._data.x-this._data.width/2,this._data.y-this._data.height/2),e.strokeStyle="rgba(153,153,153,.3)",e.lineWidth=2,e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.strokeStyle="rgba(153,153,153,.7)",e.lineWidth=1,e.beginPath(),e.rect(0,this._data.height-this._data.bodyHeight+.5,this._data.width,this._data.bodyHeight),e.closePath(),e.stroke(),e.translate(0,-1),e.strokeStyle="#777",e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.fillStyle="rgba(255,255,255,.7)",e.beginPath(),e.rect(1,this._data.height-this._data.bodyHeight+1.5,this._data.width-2,this._data.bodyHeight-2),e.fill(),e.beginPath(),e.rect(.5,this._data.height-this._data.bodyHeight+1,this._data.width-1,this._data.bodyHeight-1),e.stroke(),e.closePath(),e.fillStyle="#777",e.fillRect(this._data.width/2-.5,this._data.height-this._data.bodyHeight/2,1,2)}_drawShackle(e){ +const t=(this._data.width-3)/2,i=this._data.height-this._data.bodyHeight;e.moveTo(1.5,t),e.arc(this._data.width/2,t,t,Math.PI,2*Math.PI),i>t&&(e.moveTo(1.5,t),e.lineTo(1.5,i),e.moveTo(this._data.width-1.5,t),e.lineTo(this._data.width-1.5,i))}}class mi{constructor(e,t,i){this._horzVisible=!1,this._source=e,this._pane=t,this._axis=i||"x"}update(){}renderer(e,t){const i=this._source.visible&&this._source.areLinesVisible,s=(0,lt.lockTimeAxis)().value(),n=i&&this._horzVisible,o=i||s;if("y"===this._axis&&!n||!o)return null;const a="y"===this._axis?this._pane.width()-4.5:(0,r.ensureDefined)(this._source.lockedX)+1,l="y"===this._axis?this._source.y:this._pane.height()-5.5-1;return new _i({x:a,y:l,width:9,height:11,bodyHeight:7})}}var gi=i(49483),fi=i(76166),vi=i(14445),Si=i(57626);class yi extends vi.DataWindowView{constructor(e){super(),this._invalidated=!0,this._dateItem=new vi.DataWindowItem((0,K.t)("Date"),""),this._timeItem=new vi.DataWindowItem((0,K.t)("Time"),""),this._model=e,this._items.push(this._dateItem),this._items.push(this._timeItem)}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){const e=this._model.mainSeries().isDWM();if(this._timeItem.setVisible(!e),this._timeItem.setValue(Si.notAvailable),this._dateItem.setValue(Si.notAvailable),this._model.timeScale().isEmpty())return;let t=this._model.crossHairSource().appliedIndex();if(!(0,mt.isNumber)(t)){const e=this._model.mainSeries().data().last();if(null===e)return;t=e.index}const i=this._model.timeScale().indexToUserTime(t);null!==i&&(this._dateItem.setValue(this._model.dateFormatter().format(i)),e||this._timeItem.setValue(this._model.timeFormatter().format(i)))}}var bi=i(85578);class wi extends bi.TimeAxisView{constructor(e,t,i=!1){super(e),this._indexProvider=t,this._highlighted=i,this._properties=e.properties().childs().scalesProperties}_getBgColor(){const e=this._model.isDark();return this._highlighted?this._properties.childs().axisLineToolLabelBackgroundColorCommon.value():e?a.colorsPalette["color-cold-gray-750"]:a.colorsPalette["color-cold-gray-900"]}_getIndex(){return this._model.crossHairSource().visible?this._indexProvider():null}_isVisible(){return this._properties.childs().showTimeScaleCrosshairLabel.value()}}var Ci=i(34081);const Pi={menuEnabled:!1,menuForMainSourceOnly:!1,disableTradingMenuActions:!1,disableDrawHorizLineMenuAction:!1};class Ti extends Ct.DataSource{constructor(e,t,i){super(),this.pane=null,this.price=NaN,this.index=NaN,this.visible=!0,this.areLinesVisible=!0,this.x=NaN,this.y=NaN,this._measurePane=new(G())(null),this._startMeasurePoint=null,this._endMeasurePoint=null,this._lastValidMeasurePoint=null,this._isOnHoveredChartWidget=!1,this._selectPointMode=new(G())(!1),this._selectionPane=null,this._selectionView=new Kt(this),this._selectionStartPoint=null,this._measurePaneView=null,this._timeLockPaneView=null,this._priceAxisViews=new Map,this._panePriceAxisViews=new Map,this._startMeasurePriceAxisViews=new Map,this._endMeasurePriceAxisViews=new Map, +this._originX=NaN,this._originY=NaN,this._subscribed=!1,this._movedDelegate=new(U()),this._pointSelectedDelegate=new(U()),this._requestedPoint=null,this._paneForRequestedPoint=null,this._selectLineColor=null,this._volumeCalculator=null,this._model=e,this._options=Object.assign({},Pi,i||{}),this._linesShouldBeHidden=this._model.readOnly(),this._dataWindowView=new yi(e),this.setSelectionEnabled(!1);const s=e=>t=>t===(0,r.ensureNotNull)(this._measurePane.value()).defaultPriceScale()?e():null;this._currentPosPriceProvider=e=>{const t=(0,r.ensureNotNull)(this.pane);if(e===t.defaultPriceScale())return this.price;const i=(0,r.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;const s=t.defaultPriceScale().priceToCoordinate(this.price,i),n=(0,r.ensureNotNull)(e.mainSource()).firstValue();return null===n?null:e.coordinateToPrice(s,n)},this._startMeasurePriceProvider=s(()=>(0,r.ensureNotNull)(this._startMeasurePoint).price),this._endMeasurePriceProvider=s(()=>(0,r.ensureNotNull)(this._lastMeasurePoint()).price),this._properties=t;this._timeAxisView=new wi(e,()=>this.appliedIndex(),!1),this._startMeasureTimeAxisView=new wi(e,()=>(0,r.ensureNotNull)(this._startMeasurePoint).index,!0),this._endMeasureTimeAxisView=new wi(e,()=>(0,r.ensureNotNull)(this._lastMeasurePoint()).index,!0),e.readOnly()||lt.cursorTool.subscribe(e=>this.areLinesVisible="arrow"!==e,{callWithLast:!0})}destroy(){null!==this._volumeCalculator&&this._volumeCalculator.destroy(),this._measurePane.setValue(null)}moved(){return this._movedDelegate}originX(){return this._originX}originY(){return this._originY}saveOriginCoords(e,t){this._originX=e,this._originY=t}clearOriginCoords(){this._originX=NaN,this._originY=NaN}currentPoint(){return new n.Point(this.x,this.y)}model(){return this._model}appliedIndex(){return Number.isFinite(this.lockedIndex)?this.lockedIndex:this.index}startMeasurePoint(){return this._startMeasurePoint||null}endMeasurePoint(){return this._endMeasurePoint||null}measureVolume(){if(null===this._volumeCalculator)return NaN;const[e,t]=this.measurePoints();return void 0===t?NaN:this._volumeCalculator.volume(e.index,t.index)}measurePane(){return this._measurePane.readonly()}startMeasuring(e,t){this._startMeasurePoint=e,this._measurePane.setValue(t),t.containsMainSeries()&&((0,r.assert)(null===this._volumeCalculator),this._volumeCalculator=new Ci.SeriesTimeRangeVolumeCalculator(this.model().mainSeries())),this._model.updatePane(t)}finishMeasure(e){this._endMeasurePoint=e}clearMeasure(){this._measurePane.setValue(null),delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate(),null!==this._volumeCalculator&&(this._volumeCalculator.destroy(),this._volumeCalculator=null)}measurePoints(){const e=[(0,r.ensureNotNull)(this._startMeasurePoint)],t=this._lastMeasurePoint();return null!==t&&e.push(t),e}startSelection(e){this._selectionStartPoint=this.currentLogicalPoint(),this._selectionPane=e}clearSelection(){this._selectionStartPoint=null,this._selectionPane=null} +selection(){return this._selectionStartPoint?{p1:this._selectionStartPoint,p2:this.currentLogicalPoint()}:null}currentLogicalPoint(){return{index:this.appliedIndex(),price:this.price}}selectPointMode(){return this._selectPointMode}lineColor(){return this._selectLineColor}cancelRequestSelectPoint(){this._selectPointMode.value()&&this._setSelectPointModeState(!1)}requestSelectPoint(e){(0,r.assert)(!this._selectPointMode.value(),"Point already requested");const{pointType:t,pane:i,lineColor:s=null}=e;i&&((0,r.assert)(-1!==this._model.panes().indexOf(i),"Chartmodel doesn't contains specified pane"),this._paneForRequestedPoint=i,this._model.panesCollectionChanged().subscribe(this,this._paneCollectionChanged)),this._selectLineColor=s,this._requestedPoint=t,this._setSelectPointModeState(!0)}onPointSelected(){return this._pointSelectedDelegate}trySelectCurrentPoint(){const e=(0,r.ensureNotNull)(this._requestedPoint);if(!this._model.mainSeries().bars().contains(this.index)&&"price"!==e)return;const t=(0,r.ensureNotNull)(this.pane);if(this._paneForRequestedPoint&&this._paneForRequestedPoint!==t)return;let i,s;if("price"===e||(i=this._model.timeScale().indexToTimePoint(this.index),null!==i)){if("time"!==e){const e=t.mainDataSource();if(null===e)return;const i=e.firstValue(),r=e.priceScale();if(null===i||null===r)return;s=r.coordinateToPrice(this.y,i)}this._setSelectPointModeState(!1),this._pointSelectedDelegate.fire({time:i,price:s},t)}}isOnHoveredChartWidget(){return this._isOnHoveredChartWidget}setOnHoveredChartWidget(e){this._isOnHoveredChartWidget=e}clearPosition(){this.visible=!1,this.index=NaN,this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoords()}setPosition(e,t,i){return this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,this.clearMeasure),this._subscribed=!0),this.setLockedPosition(i),this.visible=!0,this._tryToUpdateViews(e,t,i)}setLinesShouldBeHidden(e){this._linesShouldBeHidden=e}linesShouldBeHidden(){return this._linesShouldBeHidden}handleContextMenuEvent(e){this._selectPointMode.value()&&this._setSelectPointModeState(!1)}properties(){return this._properties}priceAxisViews(e,t){const i=null===this._requestedPoint||"time"!==this._requestedPoint||!this._isOnHoveredChartWidget,s=[];return this.pane===e&&i&&s.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,Dt,!0)[0]),this._startMeasurePoint&&s.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,Vt)[0]),this._lastMeasurePoint()&&s.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,Vt)[0]),s}timeAxisViews(){const e=[],t=null===this._requestedPoint||"price"!==this._requestedPoint||!this._isOnHoveredChartWidget;return!this._linesShouldBeHidden&&(this.visible||(0,lt.lockTimeAxis)().value())&&t&&e.push(this._timeAxisView),this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView), +this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e}paneViews(e){if(void 0===e)return null;const t=[new Gt(this,e)];if(e===this._selectionPane&&t.push(this._selectionView),e===this._measurePane.value()&&(null===this._measurePaneView&&(this._measurePaneView=new ui(this,e)),this._measurePaneView.update((0,O.dataSourceChangeEvent)(this.id())),t.push(this._measurePaneView)),fi.addPlusButtonProperty.value()){const i=e===this.pane,s=!gi.CheckMobile.any()||window.screen.width>=320,r=lt.tool.value(),n=(0,f.isLineToolName)(r),o=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0||null!==this._model.customSourceBeingMoved()||(0,lt.toolIsMeasure)(r);if(i&&this._isOnHoveredChartWidget&&!this._selectPointMode.value()&&s&&!n&&!o){const i=e.mainDataSource();if(null!==i){const s=i.priceScale();if(null!==s){const i=this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,s,this._currentPosPriceProvider,Dt,!0)[1];null!==i&&t.push(i)}}}}return(0,lt.lockTimeAxis)().value()&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new mi(this,e)),t.push(this._timeLockPaneView)),t}dataWindowView(){return this._dataWindowView}updateAllViews(e){this._priceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._panePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._startMeasureTimeAxisView.update(e)),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach(t=>{t.forEach(t=>t.update(e))}),this._endMeasureTimeAxisView.update(e)),this._timeAxisView.update(e),this._selectionView.update(),this._dataWindowView.update()}setLockedPosition(e){delete this.lockedIndex,delete this.lockedX,e!==this._measurePane.value()&&(0,lt.lockTimeAxis)().value()&&(this.lockedIndex=this._model.timeScale().points().roughIndex(lt.lockTimeAxisTime.value()),null!==this.lockedIndex&&(this.lockedX=this._model.timeScale().indexToCoordinate(this.lockedIndex)))}isMenuEnabled(){return this._options.menuEnabled}isHoveredEnabled(){return fi.addPlusButtonProperty.value()}isHovered(){return this._model.hoveredSource()===this}pointToSelect(){return this._requestedPoint}paneForPointSelect(){return this._paneForRequestedPoint}_lastMeasurePoint(){return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane.value()===this.pane&&(this._lastValidMeasurePoint={price:this._model.magnet().align(this.price,this.index,this.pane),index:this.index}),this._lastValidMeasurePoint||null)}_createPriceAxisViewOnDemand(e,t,i,s,n,o,a=!1){let l=e.get(i),c=null!==t?t.get(i):void 0;void 0===l&&(l=new Map,e.set(i,l),this._options.menuEnabled&&null!==t&&(c=new Map,t.set(i,c)),a&&i.onDestroyed().subscribe(this,()=>this._onPaneDestroyed(i)));let h=l.get(s);if(void 0===h){if(h=new o(this,s,n),l.set(s,h),void 0!==c){const e=new Ft(h,this,s,this._model,this._options);c.set(s,e)}a&&s.lastSourceRemoved().subscribe(this,()=>this._onPriceScaleCleared(s))}let d=null +;return void 0!==c&&(d=(0,r.ensureDefined)(c.get(s))),[h,d]}_onPaneDestroyed(e){e.onDestroyed().unsubscribeAll(this),this._priceAxisViews.delete(e),this._panePriceAxisViews.delete(e),this._startMeasurePriceAxisViews.delete(e),this._endMeasurePriceAxisViews.delete(e)}_onPriceScaleCleared(e){e.lastSourceRemoved().unsubscribeAll(this),this._priceAxisViews.forEach(t=>t.delete(e)),this._panePriceAxisViews.forEach(t=>t.delete(e)),this._startMeasurePriceAxisViews.forEach(t=>t.delete(e)),this._endMeasurePriceAxisViews.forEach(t=>t.delete(e))}_tryToUpdateViews(e,t,i){return!!this._tryToUpdateData(e,t,i)&&(this.updateAllViews((0,O.dataSourceChangeEvent)(this.id())),this._movedDelegate.fire({index:this.index,price:this.price}),!0)}_tryToUpdateData(e,t,i){const s=this.x,n=this.y,o=this.price,a=this.index,l=this.pane,c=this._priceScaleByPane(i);if(this.index=e,this.x=isNaN(e)?NaN:this._model.timeScale().indexToCoordinate(e),null!==c&&null!==i){this.pane=i,this.price=t;const e=(0,r.ensureNotNull)(i.mainDataSource()).firstValue();this.y=null===e?NaN:c.priceToCoordinate(t,e)}else this.pane=null,this.price=NaN,this.y=NaN;return s!==this.x||n!==this.y||a!==this.index||o!==this.price||l!==this.pane}_priceScaleByPane(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null}_setSelectPointModeState(e){e||(this._requestedPoint=null,this._selectLineColor=null,this._paneForRequestedPoint&&(this._paneForRequestedPoint=null,this._model.panesCollectionChanged().unsubscribe(this,this._paneCollectionChanged))),lt.isPointSelectedNow.setValue(e),this._selectPointMode.setValue(e),this._model.lightUpdate()}_paneCollectionChanged(e){const t=this._paneForRequestedPoint;null!==t&&-1===e.indexOf(t)&&this.cancelRequestSelectPoint()}}var xi=i(56972),Ii=i(40236),Mi=i(67396),Li=i(52418);const Ai=(0,$.getLogger)("Chart.ChartModel");function Ei(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function ki(e){var t,i;for(let s=e.length;s--;){const r=e[s].dataSources();for(let e=r.length;e--;)null===(t=r[e].dataWindowView())||void 0===t||t.update();const n=e[s].priceDataSources();for(let e=n.length;e--;)null===(i=n[e].legendView())||void 0===i||i.update()}}const Di={isSnapshot:!1,readOnly:!1,watermarkEnabled:!0,shiftVisibleRangeOnNewBar:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,lastPriceAnimationEnabled:!0,onWidget:!1,hideIdeas:!1};class Vi{constructor(e,t,i,r,n,o,a,c,h,d){this._onRearrangePanes=new(U()),this._lineToolsGroupModel=new tt,this._sourcesBeingMoved=[],this._activeItemBeingMoved=null,this._lineBeingEdited=null,this._linePointBeingEdited=null,this._linePointBeingChanged=null,this._customSourceBeingMovedHitTestData=null,this._customSourceBeingMoved=null,this._dataSourceCollectionChanged=new(U()),this._sourceProperitesChanged=new(U()),this._sourceZOrderChanged=new(U()),this._symbolSourceResolved=new(U()),this._symbolSourceResolvingActive=new(G())(!1),this._adjustForDividendsAvailability=new(G())(0),this._adjustForDividendsEnabled=new(G())(!1),this._sessions=null,this._currentTool="", +this._lineBeingCreated=null,this._paneBeingCreatedLineOn=null,this._lineCancelled=new(U()),this._phantomSourceContainer=new gt(this),this._destroyed=!1,this._isSettingsExternalPosition=!1,this._isTimeScrolling=!1,this._magnet=new bt,this._scrollingState=null,this._modelIntervals=[],this._rendererOptionsProvider=new L(this),this._cachedStudiesMaxOffset=0,this._panes=[],this._tagsChanged=new(U()),this._strategySources=[],this._strategySourcesChange=new(U()),this._activeStrategySource=new(G())(null),this._paneCollapsingAvailable=new(G())(!1),this._panesCollectionChanged=new(U()),this._scrollEnabled=B.enabled("chart_scroll"),this._zoomEnabled=B.enabled("chart_zoom"),this._isScalesResetAvailableChanged=new(U()),this._isScalesResetAvailable=!1,this._esdWatcher=null,this._alertsWatcher=null,this._hoveredSource=null,this._hoveredSourceChanged=new(U()),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,this._topmostCustomSources=[],this._fgCustomSources=[],this._bgCustomSources=[],this._allCustomSources=[],this._customSourcesMap=new Map,this._multiPaneSources=[],this._showLegendProperty=new(x()),this._id=(0,X.guid)(),this._chartSaveTime=null,this._availableCurrenciesList=null,this._availableCurrencies=new pt([]),this._availableUnitsObject=null,this._availableUnits=new _t({}),this._shouldBeSavedEvenIfHidden=!1,this._watchedThemeSpawn=l.watchedTheme.spawn(),this._gradientColorsCache=null,this._recalcVRStudiesParams={},this._recalcColorStudiesParams={},this._recalcVisibleRangeStudiesImplDebounced=(0,s.default)(this._recalcVisibleRangeStudiesImpl.bind(this,this._recalcVRStudiesParams),500),this._recalcColorStudiesImplDebounced=(0,s.default)(this._recalcColorStudiesImpl.bind(this,this._recalcColorStudiesParams),250),this._width=0,this._resetScales=new(U()),this._chartThemeLoaded=new(U()),this._selection=new S,this._selectedSourceChanged=new(U()),this._symbolSourceCollectionChanged=new(U()),this._gridSource=new Mt,this._syncPointCache=new Map,this._lastAppliedTimeRange=null,this._clearSelection=()=>{this._lastSelectedHittestData=null,this._selection.clear()},this._removeSourceFromSelection=e=>{this._selection.remove(e)},this._addSourceToSelection=(e,t)=>{const i=this._selection.isSelected(e);i&&this._lastSelectedHittestData===t||e&&!e.isSelectionEnabled()||(this._lastSelectedHittestData=t||null,i||this._selection.add(e))},this._recalcSymbolResolvingActive=()=>{for(const e of this._panes)if(e.symbolSourceResolvingActive().value())return void this._symbolSourceResolvingActive.setValue(!0);this._symbolSourceResolvingActive.setValue(!1)},this._recalcAdjustForDividendsAvailibility=()=>{var e,t,i,s;if(this._symbolSourceResolvingActive.value())return void this._adjustForDividendsAvailability.setValue(0);const r=this.mainSeries();switch(null!==(t=null===(e=r.symbolInfo())||void 0===e?void 0:e.allowed_adjustment)&&void 0!==t?t:"none"){case"dividends":return void this._adjustForDividendsAvailability.setValue(2);case"splits":return void this._adjustForDividendsAvailability.setValue(1);case"any": +return void this._adjustForDividendsAvailability.setValue(3)}for(const e of this.symbolSources().filter(de.isActingAsSymbolSource)){if(e.symbolHibernated().value()||e===r)continue;if("any"===(null!==(s=null===(i=e.symbolInfo())||void 0===i?void 0:i.allowed_adjustment)&&void 0!==s?s:"none"))return void this._adjustForDividendsAvailability.setValue(3)}this._adjustForDividendsAvailability.setValue(0)},this._recalcAdjustForDividendsEnabled=()=>{switch(this._adjustForDividendsAvailability.value()){case 2:return void this._adjustForDividendsEnabled.setValue(!0);case 0:case 1:return void this._adjustForDividendsEnabled.setValue(!1)}this._adjustForDividendsEnabled.setValue(this.mainSeries().properties().childs().dividendsAdjustment.value())},this._recalcPaneCollapsingAvailable=e=>{let t=this._panes.filter(e=>!e.collapsed().value()).length;0===t&&e&&this._panes.length>0&&(this._panes[0].collapsed().setValue(!1),t=1),this._paneCollapsingAvailable.setValue(t>1)},this._chartApi=e,this._invalidateHandler=t,this._undoModel=o,this._properties=i,this._options=(0,ee.merge)((0,ee.clone)(Di),c),this._collapsedWV=h,this._isAutoSaveEnabled=d,this._studiesMetaInfoRepository=n,this._readOnly=this._options.readOnly,this._isSnapshot=this._options.isSnapshot,this._chartSaveTime=(new Date).valueOf(),this._backgroundColor=new(G())(this._getBackgroundColor()),this._backgroundTopColor=new(G())(this._getBackgroundColor(!0)),this._properties.childs().paneProperties.childs().background.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundType.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.subscribe(this,this._updateBackgroundColor),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.subscribe(this,this._updateBackgroundColor),this._backgroundColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._backgroundTopColor.subscribe(this.recalcColorStudies.bind(this,!1)),this._watchedThemeSpawn.subscribe(this._updateBackgroundColor.bind(this)),this._symbolSourceResolvingActive.subscribe(this._recalcAdjustForDividendsAvailibility),this.setStudiesMetaData(this._studiesMetaInfoRepository.getInternalMetaInfoArray(),this._studiesMetaInfoRepository.getMigrations()),(0,lt.init)();const u=this._readOnly?new(x())((0,D.defaults)("chartproperties.paneProperties.crossHairProperties")):this._properties.childs().paneProperties.childs().crossHairProperties;this.m_crossHairSource=new Ti(this,u,this._options.crossHair),this.m_crossHairSource.selectPointMode().subscribe(e=>{if(e&&this.lineBeingCreated()){const e=lt.tool.value();this.cancelCreatingLine(),lt.tool.setValue(e)}}),this._tagsChanged=new(U());const p=new P.DefaultProperty("chartproperties.mainSeriesProperties");p.addExclusion("minTick"),p.addExclusion("priceAxisProperties.lockScale"),p.addExclusion("priceAxisProperties.percentage"),p.addExclusion("priceAxisProperties.indexedTo100"),p.addExclusion("priceAxisProperties.isInverted"), +p.addExclusion("priceAxisProperties.log"),p.addExclusion("priceAxisProperties.logDisabled"),p.addExclusion("priceAxisProperties.percentageDisabled"),p.addExclusion("priceAxisProperties.autoScaleDisabled"),p.merge(i.childs().mainSeriesProperties.state()),this._timeScale=new $e(this,this._options.timeScale);const _={countdownEnabled:this._options.countdownEnabled,lastPriceAnimationEnabled:this._options.lastPriceAnimationEnabled};this.m_mainSeries=new xi.Series(this,p,_,r),this.m_mainSeries.onStyleChanged().subscribe(this._timeScale,this._timeScale.invalidateVisibleBars);const m=()=>this.fullUpdate();this.m_mainSeries.properties().childs().showCountdown.subscribe(this,()=>{this.m_mainSeries.updateAllViews((0,O.dataSourceChangeEvent)(this.m_mainSeries.id())),m()}),(0,Y.currencyUnitVisibilityProperty)().subscribe(this,m),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this.m_mainSeries,this.m_mainSeries.clearHighLowPriceCache),this._timeScale.visibleBarsStrictRangeChanged().subscribe(this.m_mainSeries,this.m_mainSeries.clearAveragePriceCache),this.createPane(void 0,{axisProperties:p.childs().priceAxisProperties.state(["autoScale"])}),this._adjustForDividendsAvailability.subscribe(this._recalcAdjustForDividendsEnabled),this.mainSeries().properties().childs().dividendsAdjustment.subscribe(this,this._recalcAdjustForDividendsEnabled),this._recalcAdjustForDividendsEnabled(),this._boundUpdateStudiesMaxOffset=this._updateStudiesMaxOffset.bind(this),this.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,(e,t,i,s)=>{if(null!==this._lastAppliedTimeRange&&null!==i&&s&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,i)){const e=this.appliedTimeFrame().value();null!==e&&!this._lastAppliedTimeRange.actual&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,e.val)&&this.appliedTimeFrame().setValue(null),this._lastAppliedTimeRange=null}})}setStudiesMetaData(e,t){this._studiesMetaData=e,this._studyVersioning=new(b())(this._studiesMetaData,t)}restart(){this._chartApi.switchTimezone(this.timezone()),this._timeScale.reset(),this.m_mainSeries.restart();for(const e of this.dataSources())e.restart&&e!==this.m_mainSeries&&e.restart();this.sessions().restart()}version(){return 3}collapsed(){return this._collapsedWV}chartSaveTime(){return this._chartSaveTime}setChartSaveTime(e){this._chartSaveTime=e}destroy(){this._phantomSourceContainer.destroy(),this._hoveredSourceChanged.destroy(),null!==this._watermarkSource&&(this._watermarkSource.destroy(),this._watermarkSource=null),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),(0,r.assert)(0===this._topmostCustomSources.length),(0,r.assert)(0===this._fgCustomSources.length),(0,r.assert)(0===this._bgCustomSources.length),(0,r.assert)(0===this._allCustomSources.length),(0,r.assert)(0===this._customSourcesMap.size),null!==this._esdWatcher&&(this._esdWatcher.destroy(),this._esdWatcher=null),null!==this._alertsWatcher&&(this._alertsWatcher.destroy(),this._alertsWatcher=null), +this._properties.childs().paneProperties.childs().background.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundType.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientEndColor.unsubscribeAll(this),this._properties.childs().paneProperties.childs().backgroundGradientStartColor.unsubscribeAll(this),this._watchedThemeSpawn.destroy(),this._lastHoveredHittestData=null,this._lastSelectedHittestData=null,(0,Y.currencyUnitVisibilityProperty)().unsubscribeAll(this),this._destroyed=!0}undoModel(){return this._undoModel}onData(e){switch(e.method){case"timescale_update":{const t=e.params;this._updateTimeScale({index:t.index,zoffset:t.zoffset,values:t.changes,indexDiffs:t.index_diff,baseIndex:t.baseIndex,marks:t.marks,clearFlag:t.clear});break}case"timescale_completed":{const t=Boolean(e.params[0]);this._timeScale.onTimeScaleCompleted(t);break}}}addStrategySource(e,t){1!==t&&-1===this._strategySources.indexOf(e)&&(this._strategySources.push(e),this._strategySourcesChange.fire(t),this.setActiveStrategySource(e))}removeStrategySource(e,t){if(1===t)return;const i=this._strategySources.indexOf(e);if(-1!==i){if(this._strategySources.splice(i,1)[0]===this._activeStrategySource.value()&&this.unsetActiveStrategySource(),this._strategySources.length>0){const e=this._strategySources[this._strategySources.length-1];this.setActiveStrategySource(e)}this._strategySourcesChange.fire(t)}}setActiveStrategySource(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)}unsetActiveStrategySource(){this._activeStrategySource.setValue(null)}activeStrategySource(){return this._activeStrategySource}strategySources(){return this._strategySources}strategySourcesChange(){return this._strategySourcesChange}setScrollEnabled(e){this._scrollEnabled=e}scrollEnabled(){return this._scrollEnabled}setZoomEnabled(e){this._zoomEnabled=e}zoomEnabled(){return this._zoomEnabled}zoomToViewport(e,t,i,s,r){this.setTimeViewport(e,t);let n=Math.min(i,s),o=Math.max(i,s);const a=r.defaultPriceScale();a.isPercentage()||a.setMode({autoScale:!1}),a.isLog()&&(n=a.priceToLogical(n),o=a.priceToLogical(o)),a.setPriceRange(new he.PriceRange(n,o)),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.invalidate(this._paneInvalidationMask(r,q.InvalidationLevel.Light)),this._setScalesResetAvailable(!0)}setTimeViewport(e,t){const i=this.appliedTimeFrame().value();null!==this._lastAppliedTimeRange&&null!==i&&(0,vt.areEqualTimeFrames)(this._lastAppliedTimeRange.range,i.val)&&!this._lastAppliedTimeRange.actual||(this.timeScale().zoomToBarsRange(e,t),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies(),this.lightUpdate())}onTagsChanged(){return this._tagsChanged}canZoomIn(){return this._timeScale.canZoomIn()&&this._zoomEnabled}canZoomOut(){return this._timeScale.canZoomOut()&&this._zoomEnabled}onPaneTagsChanged(){this._tagsChanged.fire()}panesCollectionChanged(){return this._panesCollectionChanged}dataSourceCollectionChanged(){ +return this._dataSourceCollectionChanged}symbolSourceCollectionChanged(){return this._symbolSourceCollectionChanged}symbolSourceResolved(){return this._symbolSourceResolved}symbolSourceResolvingActive(){return this._symbolSourceResolvingActive}adjustForDividendsAvailability(){return this._adjustForDividendsAvailability}adjustForDividendsEnabled(){return this._adjustForDividendsEnabled}paneCollapsingAvailable(){return this._paneCollapsingAvailable}sourcePropertiesChanged(){return this._sourceProperitesChanged}sourceZOrderChanged(){return this._sourceZOrderChanged}updateCrosshairPositionByOriginCoords(){const e=this.crossHairSource(),t=e.pane;let i=e.originX(),s=e.originY();if(Number.isFinite(i)||(i=e.x,s=e.y),null!==t&&Number.isFinite(i)&&Number.isFinite(s)){const n=this._timeScale.coordinateToVisibleIndex(i);let o=NaN;const a=t.defaultPriceScale();if(!a.isEmpty()){const e=(0,r.ensureNotNull)(t.mainDataSource()).firstValue();null!==e&&(o=a.coordinateToPrice(s,(0,r.ensureNotNull)(e)))}this.crossHairSource().setPosition(n,o,t)&&e.isOnHoveredChartWidget()&&this._syncCrosshair()}}zoomTime(e,t,i){if(!this._zoomEnabled)return;const s=this.timeScale();if(s.isEmpty()||0===t)return;const r=s.width();e=Math.max(1,Math.min(e,r-2)),s.zoom(e,t,i),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._setScalesResetAvailable(!0)}linePointBeingEdited(){return this._linePointBeingEdited}activeItemBeingMoved(){return this._activeItemBeingMoved}linePointBeingChanged(){return this._linePointBeingChanged}updateAllPaneViews(e){for(const t of this._panes)t.updateAllViews(e);for(const t of this.barsMarksSources())t.updateAllViews(e)}dataSources(){const e=[this.crossHairSource()];for(const t of this._panes)for(const i of t.dataSources())e.push(i);return e}priceDataSources(){const e=[];for(const t of this._panes)for(const i of t.priceDataSources())e.push(i);return e}symbolSources(){const e=[];for(const t of this._panes)for(const i of t.symbolSources())e.push(i);return e}selection(){return this._selection}selectionMacro(e){const t=this.selection().allSources();e({removeSourceFromSelection:this._removeSourceFromSelection,addSourceToSelection:this._addSourceToSelection,clearSelection:this._clearSelection,selection:this.selection.bind(this)});const i=(0,g.subtract)(t,this.selection().allSources()),s=(0,g.subtract)(this.selection().allSources(),t);s.concat(t).forEach(e=>e.updateAllViews((0,O.selectionChangeEvent)())),i.forEach(e=>{const t=(0,f.isLineTool)(e)&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!1)}),s.forEach(e=>{const t=(0,f.isLineTool)(e)&&e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!0)}),this.lightUpdate(),(i.length>0||s.length>0)&&this._selectedSourceChanged.fire()}onSelectedSourceChanged(){return this._selectedSourceChanged}checkLineToolSelection(){const e=this.selection().allSources();this._selection.checkLineToolSelection(),e.length!==this.selection().allSources().length&&this._selectedSourceChanged.fire()}lineToolsGroupModel(){ +return this._lineToolsGroupModel}restoreLineToolsGroups(e){this._lineToolsGroupModel=tt.fromState(this,e)}realignLineTools(e){for(const t of this._panes)(void 0===e||t.hasDataSource(e))&&t.realignLineTools(e)&&this._dataSourceCollectionChanged.fire(t)}isSnapshot(){return this._isSnapshot}onWidget(){return this._options.onWidget}hideIdeas(){return this._options.hideIdeas}updateSource(e){const t=this._invalidationMaskForSource(e);null!==t&&this.invalidate(t)}updateSourcePriceScale(e){const t=this._invalidationMaskForSourcePriceScale(e);null!==t&&this.invalidate(t)}updatePane(e){this.invalidate(this._paneInvalidationMask(e))}replaceStudyStub(e,t){const i=this.paneForSource(e);if(null===i)return!1;const s=e.priceScale(),r=e.zorder(),n=e.ownerSource();return this.paneForSource(e)===i?i.replaceSource(e,t,s):(i.insertDataSource(t,s,r),this.removeSource(e)),t.setOwnerSource(n),this.dataSources().forEach(i=>{i.ownerSource()===e&&i.setOwnerSource(t)}),t.start(),this.recalculatePane(i,(0,O.dataSourceChangeEvent)(t.id())),this.fullUpdate(),!0}insertStudyStub(e){const t=this.mainSeries(),i=(0,r.ensureNotNull)(this.paneForSource(t)),s=new w.StudyStub(this,null,e),n=i.createPriceScaleAtPosition("overlay");return i.addDataSource(s,n,!1),this.recalculatePane(i,(0,O.dataSourceChangeEvent)(s.id())),this.fullUpdate(),s}removeStudyStub(e){const t=this.dataSourceForId(e);return null===t?(Ai.logNormal("StudyStub id="+e+" is not found in chart model"),!1):(this.removeSource(t),!0)}setHoveredSource(e,t=null){const i=this._hoveredSource!==e;if(!i&&this._lastHoveredHittestData===t)return;this._lastHoveredHittestData=t;let s=null;if(this._hoveredSource){this._hoveredSource.updateAllViews((0,O.selectionChangeEvent)()),s=new q.InvalidationMask(q.InvalidationLevel.Cursor);const e=this._invalidationMaskForSource(this._hoveredSource,q.InvalidationLevel.Light);null!==e&&s.merge(e)}if(this._hoveredSource=e,e){e.updateAllViews((0,O.selectionChangeEvent)()),s||(s=new q.InvalidationMask(q.InvalidationLevel.Cursor));const t=this._invalidationMaskForSource(e,q.InvalidationLevel.Light);null!==t&&s.merge(t)}s&&this.invalidate(s),i&&this._hoveredSourceChanged.fire(e)}properties(){return this._properties}disconnect(){this.sessions().stop();for(const e of this.dataSources())e.disconnect&&e.disconnect();this._timeScale.disconnect()}gridSource(){return this._gridSource}hoveredSource(){return this._hoveredSource}hoveredSourceChanged(){return this._hoveredSourceChanged}lastHittestData(){return this._lastHoveredHittestData}lastSelectedHittestData(){return this._lastSelectedHittestData}syncTimeWithModel(e,t){const i=this.mainSeries().syncModel();if(null===i)return;const s=1e3*this.createSyncPoint(e,i.syncSourceTarget()).sourceTimeToTargetTime(t/1e3),r=(0,it.get_timezone)(this.timezone());let n=(0,it.utc_to_cal)(r,s);this.mainSeries().isDWM()&&(n=i.getSession().spec.correctTradingDay(n),(0,it.set_hms)(n,0,0,0,0,(0,it.get_timezone)("Etc/UTC"))),this._gotoTimeImpl(n.getTime(),{centerIfVisible:!1})}gotoTime(e){return this._gotoTimeImpl(e,{centerIfVisible:!0})} +recalculatePane(e,t){null==e||e.recalculate(t)}recalculateAllPanes(e){this._panes.forEach(t=>t.recalculate(e)),this.updateAllPaneViews(e),this.crossHairSource().updateAllViews(e)}gotoTimeRange(e,t){const i=this.timeScale(),s=i.tickMarks(),n=this.mainSeries();if(void 0===s.minIndex)return;let o=e,a=t;const l=n.symbolInfo();if(null!==l){let i=this.properties().childs().timezone.value();"exchange"===i&&(i=l.timezone);const s=(0,it.get_timezone)(i),r=(0,it.utc_to_cal)(s,e),c=(0,it.utc_to_cal)(s,t);if(n.isDWM()){const e=(0,it.get_timezone)("Etc/UTC");(0,it.set_hms)(r,0,0,0,0,e),(0,it.set_hms)(c,0,0,0,0,e)}o=r.getTime(),a=c.getTime()}const c=(0,r.ensureDefined)(s.maxIndex),h=(0,r.ensureNotNull)(s.indexToTime((0,r.ensureDefined)(s.minIndex))).valueOf();if(h-o<=0&&h-a<=0){const e=(e,t)=>e(0,r.ensureNotNull)(s.indexToTime(e)).valueOf(),n=(0,g.lowerboundExt)(t,o,e,s.nearestIndex(o),c),l=(0,g.lowerboundExt)(t,a,e,s.nearestIndex(a),c);if(null!==this._lastAppliedTimeRange&&(this._lastAppliedTimeRange.actual=!1),n!==l)i.zoomToBarsRange(n,l),this.lightUpdate();else{this.startScrollTime(0);const e=((0,r.ensureNotNull)(i.logicalRange()).left()-n+1)*i.barSpacing();this.scrollTimeTo(e),this.endScrollTime()}}else{const i={type:"time-range",from:e/1e3,to:t/1e3};this._lastAppliedTimeRange={range:i,actual:!0},n.loadDataTo(i)}}paneForSource(e){if(!(0,m.isDataSource)(e))return Array.from(this._customSourcesMap.values()).includes(e)?this.paneForSource(this.mainSeries()):null;for(let t=this._panes.length-1;t>=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof ht.BarsMarksContainer?this.paneForSource(this.mainSeries()):null}mainPane(){for(const e of this._panes)if(e.isMainPane())return e;throw new Error("Main pane is not found")}lastPane(){return this._panes[this._panes.length-1]}removeSource(e,t){this.selectionMacro(t=>t.removeSourceFromSelection(e)),this._hoveredSource===e&&(this._hoveredSource=null,this._lastHoveredHittestData=null),this._sourcesBeingMoved.includes(e)&&(this._sourcesBeingMoved=this._sourcesBeingMoved.filter(t=>t!==e),this._sourcesBeingMoved.length||(this._activeItemBeingMoved=null)),e===this._lineBeingEdited&&(this._lineBeingEdited=null,lt.isToolEditingNow.setValue(!1)),e===this._lineBeingCreated&&(this._lineBeingCreated=null,lt.isToolCreatingNow.setValue(!1)),e.stop&&e.stop();const i=this.detachSource(e),s=this.mainSeries().priceScale();return(0,H.isStudy)(e)&&(0,de.isActingAsSymbolSource)(e)&&e.priceScale()===s&&s.isPercentage()&&1===s.seriesLikeSources().filter(de.isActingAsSymbolSource).length&&s.setMode({percentage:!1}),this.fullUpdate(),this._invalidateBarColorerCaches(),(0,H.isStudy)(e)&&((0,u.emit)("study_event",e.id(),"remove"),e.isChildStudy()&&e.parentSource().unsetChild(e),e.maxOffset().unsubscribe(this._boundUpdateStudiesMaxOffset)),e.destroy&&e.destroy(),(0,f.isLineTool)(e)&&(e.removeAlert(),(0,u.emit)("drawing_event",e.id(),"remove")),i}allStudies(e){const t=e?e=>(0,H.isStudy)(e)&&!0:H.isStudy;return this._getAllSources(t)}findNonOverlayStudyWithGroupingKey(e,t){ +const i=void 0!==t?[t]:this._panes;for(const t of i){const i=t.dataSources().find(i=>(0,H.isStudy)(i)&&i.metaInfo().groupingKey===e&&!t.isOverlay(i));if(void 0!==i)return{pane:t,study:i}}return null}movePaneUp(e){this.movePane(e,e-1)}movePaneDown(e){this.movePane(e,e+1)}movePane(e,t){const i=this._panes[e];this._panes.splice(e,1),this._panes.splice(t,0,i),this._panesCollectionChanged.fire(this._panes),this._onRearrangePanes.fire(),this.invalidate(q.InvalidationMask.panesOrder())}backgroundColor(){return this._backgroundColor}backgroundTopColor(){return this._backgroundTopColor}backgroundColorAtYPercentFromTop(e){const t=this.backgroundColor().value(),i=this.backgroundTopColor().value();if(t===i)return t;if(e=Math.max(0,Math.min(100,Math.round(100*e))),null===this._gradientColorsCache||this._gradientColorsCache.topColor!==i||this._gradientColorsCache.bottomColor!==t)this._gradientColorsCache={topColor:i,bottomColor:t,colors:new Map};else{const t=this._gradientColorsCache.colors.get(e);if(void 0!==t)return t}const s=(0,ct.gradientColorAtPercent)(i,t,e/100);return this._gradientColorsCache.colors.set(e,s),s}backgroundCounterColor(){const e=this.backgroundColor().value();if(void 0===this._lastBackgroundColor||void 0===this._lastOriginalColor||e!==this._lastBackgroundColor){const t=(0,o.rgbToBlackWhiteString)((0,o.parseRgb)(e),150);this._lastBackgroundColor=e,this._lastOriginalColor="black"===t?"white":"black"}return this._lastOriginalColor}isDark(){return"white"===this.backgroundCounterColor()}defaultResolutions(){return this.chartApi().defaultResolutions()}availableCurrencies(){const e=this._getAvailableCurrencies();return e.length!==this._availableCurrencies.size()&&(this._availableCurrencies=new pt(e)),this._availableCurrencies}currencyConversionEnabled(){return this._options.currencyConversionEnabled}availableUnits(){const e=this._getAvailableUnits();return this._availableUnits.unitsChanged(e)&&(this._availableUnits=new _t(e)),this._availableUnits}unitConversionEnabled(){return this._options.unitConversionEnabled}resetDeferredStudies(){ve.instance(this).reset()}isJustClonedChart(){return this._undoModel.isJustClonedChart()}studyTemplate(e,t,i){const s={panes:[],version:this.version()};for(const e of this.panes())s.panes.push(e.state(!0,!1,!0));const r=this.mainSeries();return e&&(s.symbol=r.symbol(),this.currencyConversionEnabled()&&i&&(s.currency=r.currency()),this.unitConversionEnabled()&&i&&(s.unit=r.unit())),t&&(s.interval=r.interval()),s}restoreLineToolState(e,t,i){e.restorePoints(t.points,t.indexes||[]),e.properties().merge(t.state),e.restoreData&&e.restoreData(t),e.linkKey().setValue(t.linkKey||null),e.createServerPoints(),this.fullUpdate();const s=e.linkKey().value();null!==s&&i&&(0,lt.restoreLineToolState)({model:this,linkKey:s,state:t})}preferences(){return(0,Mi.preferencesByWhiteList)(this,this.mainSeries())}restoreTheme(e,t,i){e.mainSourceProperties.hollowCandleStyle||(e.mainSourceProperties.hollowCandleStyle=e.mainSourceProperties.candleStyle),this._undoModel.chartLoadTheme(e,t,i)}onResetScales(){ +return this._resetScales}startMovingSources(e,t,i,s,n,o){this._sourcesBeingMoved=e,this._activeItemBeingMoved=i;let a=!1;if(this._sourcesBeingMoved.forEach(e=>{!a&&(0,H.isStudy)(e)&&(a=!0);const l=(0,r.ensureNotNull)(this.paneForSource(e)),c=(0,f.isLineTool)(e),h=c&&e.linkKey().value();if(!1!==h&&null!==h&&s.has(h)&&c&&e.isFixed()){const t=(0,r.ensureDefined)(s.get(h)),a={screen:this._percentPositionToPoint(t,l)};e.startMoving(a,i,n,o)}else e.startMoving(t,i,n,o);const d=this._paneInvalidationMask(l,q.InvalidationLevel.Light);this.invalidate(d)}),!o){const s=e.filter(f.isLineTool).filter(e=>e.linkKey().value()&&e.isSynchronizable()).map(e=>e.linkKey().value());if(s.length&&t.logical){const o=this.externalTimeStamp(t.logical.index),a={linkKeys:s,model:this,symbol:this.mainSeries().symbol(),point:{price:t.logical.price,timeStamp:o},activeItem:null!==i?i:void 0,envState:n,pointPositionPercents:new Map};e.forEach(e=>{if((0,f.isLineTool)(e)){const i=e.linkKey().value();if(i&&e.isSynchronizable()&&e.isFixed()){const s=(0,r.ensureNotNull)(this.paneForSource(e));a.pointPositionPercents.set(i,this._pointToPercentPosition((0,r.ensureDefined)(t.screen),s))}}}),(0,lt.startMovingLineTool)(a)}}lt.isToolMovingNow.setValue(!0),a&<.isStudyEditingNow.setValue(!0)}moveSources(e,t,i,s){if(this._sourcesBeingMoved.filter(e=>!e.isLocked||!e.isLocked()).forEach(n=>{const o=(0,f.isLineTool)(n)?n.linkKey().value():null;if(null!==o&&t.has(o)){const e=(0,r.ensureNotNull)(this.paneForSource(n)),a=(0,r.ensureDefined)(t.get(o)),l={screen:this._percentPositionToPoint(a,e)};n.move(l,this._activeItemBeingMoved,i,s)}else n.move(e,this._activeItemBeingMoved,i,s)}),this.lightUpdate(),!s&&e.logical){const t=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey().value()).map(e=>e.linkKey().value()),s=this.externalTimeStamp(e.logical.index),n={linkKeys:t,model:this,point:{price:e.logical.price,timeStamp:s},envState:i,pointPositionPercents:new Map};this._sourcesBeingMoved.filter(f.isLineTool).forEach(t=>{if(t.linkKey().value()&&t.isSynchronizable()&&t.isFixed()){const i=(0,r.ensureNotNull)(this.paneForSource(t));n.pointPositionPercents.set(t.linkKey().value(),this._pointToPercentPosition((0,r.ensureDefined)(e.screen),i))}}),(0,lt.moveLineTool)(n)}}endMovingSources(e,t,i){const s=this._sourcesBeingMoved.map(s=>{const n=(0,r.ensureNotNull)(this.paneForSource(s)),o=s.endMoving(e,t,i),a=this._paneInvalidationMask(n,q.InvalidationLevel.Light);return a.invalidateAll(q.InvalidationLevel.Light),this.invalidate(a),o}),n=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey().value()).map(e=>e.linkKey().value()),o=this._sourcesBeingMoved.filter(f.isLineTool).filter(e=>e.isSynchronizable()&&!!e.linkKey).map(e=>{const t={points:e.normalizedPoints(),interval:this.mainSeries().interval()};return e.isFixed()&&(t.pointPositionPercents=e.calcPositionPercents()),t});n.length&&(0,lt.finishMovingLineTool)({linkKeys:n,model:this,finalStates:o,changes:s}),this._sourcesBeingMoved=[], +this._activeItemBeingMoved=null,lt.isToolMovingNow.setValue(!1),lt.isStudyEditingNow.setValue(!1)}sourcesBeingMoved(){return this._sourcesBeingMoved}setMovingCustomSource(e,t){this._customSourceBeingMoved=e,this._customSourceBeingMovedHitTestData=null!==t?{beingMoved:!1,...t}:null}processingCustomSourceMove(){null!==this._customSourceBeingMovedHitTestData&&(this._customSourceBeingMovedHitTestData.beingMoved=!0)}customSourceMovingHitTestData(){return this._customSourceBeingMovedHitTestData}customSourceBeingMoved(){return null!==this._customSourceBeingMovedHitTestData&&this._customSourceBeingMovedHitTestData.beingMoved?this._customSourceBeingMoved:null}width(){return this._width}setWidth(e,t){this._width=e,this._timeScale.setWidth(e,t);for(const t of this._panes)t.setWidth(e);this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies()}setPaneHeight(e,t){e.setHeight(t),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate()}isScalesResetAvailableChanged(){return this._isScalesResetAvailableChanged}isScalesResetAvailable(){return this._isScalesResetAvailable}panes(){return this._panes}paneForId(e){return this._panes.find(t=>t.id()===e)||null}createPane(e,t,i){const s=this._undoModel.chartWidget();s.isMaximizedPane()&&s.toggleMaximizePane(null);const r=this._properties.childs().paneProperties;t&&r.merge(t);const n=new Le(this._timeScale,r,this,i);return void 0!==e?this._panes.splice(e,0,n):this._panes.push(n),n.onTagsChanged().subscribe(this,Vi.prototype.onPaneTagsChanged),n.dataSourcesCollectionChanged().subscribe(this,()=>this._dataSourceCollectionChanged.fire(n)),n.symbolSourceCollectionChanged().subscribe(this,()=>this._onSymbolSourceCollectionChanged(n)),n.sourcePropertiesChanged().subscribe(this,e=>this._sourceProperitesChanged.fire(n,e)),n.sourceZOrderChanged().subscribe(this,e=>this._sourceZOrderChanged.fire(n,e)),n.symbolSourceResolved().subscribe(this,e=>this._symbolSourceResolved.fire(n,e)),n.symbolSourceResolvingActive().subscribe(this._recalcSymbolResolvingActive),n.collapsed().subscribe(this._recalcPaneCollapsingAvailable),this._recalcPaneCollapsingAvailable(),this._panesCollectionChanged.fire(this._panes),this.invalidate(q.InvalidationMask.panesOrder()),n}removePane(e){const t=this._undoModel.chartWidget();t.isMaximizedPane()&&t.toggleMaximizePane(null);const i=e;i.destroy();const s=this._panes.indexOf(i);-1!==s&&(this._panes.splice(s,1),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.symbolSourceCollectionChanged().unsubscribeAll(this),e.sourcePropertiesChanged().unsubscribeAll(this),e.onTagsChanged().unsubscribeAll(this),e.symbolSourceResolved().unsubscribeAll(this),i.symbolSourceResolvingActive().unsubscribe(this._recalcSymbolResolvingActive),e.collapsed().unsubscribe(this._recalcPaneCollapsingAvailable),this._recalcPaneCollapsingAvailable(!0));this.crossHairSource().pane===e&&this.clearCurrentPosition(),this._panesCollectionChanged.fire(this._panes),this.invalidate(q.InvalidationMask.panesOrder())}changePanesHeight(e,t){if(this._panes.length<2)return +;(0,r.assert)(e>=0&&ee+t.stretchFactor(),0),n=this._panes.reduce((e,t)=>e+t.height(),0),o=n-30*(this._panes.length-1);t=Math.min(o,Math.max(30,t));const a=s/n,l=i.height();i.setStretchFactor(t*a);let c=t-l,h=this._panes.length-1;for(const e of this._panes)if(e!==i){const t=Math.min(o,Math.max(30,e.height()-c/h));c-=e.height()-t,h-=1;const i=t*a;e.setStretchFactor(i)}this.fullUpdate()}clearCurrentPosition(){const e=this.crossHairSource();e.clearPosition(),(0,r.ensureNotNull)(e.dataWindowView()).update(),ki(this._panes),this.invalidate(q.InvalidationMask.cursor());const t=this._undoModel.chartWidget();t.chartWidgetCollection().syncCrosshair(null,t.id()),this._phantomSourceContainer.onCursorPositionUpdated()}setAndSaveCurrentPosition(e,t,i,s){this.crossHairSource().saveOriginCoords(e,t),this.setCurrentPosition(e,t,i,s)}setCurrentPosition(e,t,i,s){let n=NaN;const o=this._timeScale.coordinateToVisibleIndex(e),a=i.defaultPriceScale();let l=null;!a.isEmpty()&&Number.isFinite(t)&&(l=(0,r.ensureNotNull)(i.mainDataSource()).firstValue(),null!==l&&(n=a.coordinateToPrice(t,l)));const c=this.crossHairSource(),h=c.selectPointMode().value(),d=this.currentTool(),u=this.mainSeries(),p=h||lt.isStudyEditingNow.value(),_=this._lineBeingCreated||this._lineBeingEdited||(0,f.isLineToolName)(d)||(0,lt.toolIsMeasure)(d)||p;!this._isSettingsExternalPosition&&_&&(n=this._magnet.align(n,o,i),null!==l&&c.saveOriginCoords(c.originX(),a.priceToCoordinate(n,l)));let m=null;if(isNaN(n)||(m=i),this._isTimeScrolling){if(!this._isSettingsExternalPosition&&h){const e=u.bars().firstIndex(),t=u.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(o,e),t);s!==o&&this._setCorrectedPositionToCrosshair(s,n,l,i)}}else c.setPosition(c.index,n,m);return}c.setOnHoveredChartWidget(!0),c.setPosition(o,n,m),(0,r.ensureNotNull)(c.dataWindowView()).update(),ki(this._panes);const g=u.syncModel();if(this.crossHairSource().startMeasurePoint()||this._lineBeingCreated?this.lightUpdate():this.invalidate(q.InvalidationMask.cursor()),this._lineBeingCreated){const e=this._lineBeingCreated.linkKey().value();if(!this._isSettingsExternalPosition){const t=this._lineBeingCreated.setLastPoint({index:o,price:n},s);if(this._lineBeingCreated.updateAllViews((0,O.dataSourceChangeEvent)(this._lineBeingCreated.id())),t.price===n&&t.index===o||this._setCorrectedPositionToCrosshair(t.index,t.price,l,i),g&&e){const i=this._timeScale.points().roughTime(t.index,g.projectTime.bind(g));(0,lt.setLineToolLastPoint)({model:this,linkKey:e,point:{timeStamp:(0,r.ensureNotNull)(i),price:t.price}})}}}if(!this._isSettingsExternalPosition&&null!==this._lineBeingEdited&&null!==this._linePointBeingEdited){const e={index:o,price:n};this.changeLinePoint(e,s);const t=this._lineBeingEdited.alignCrossHairToAnchor(this._linePointBeingEdited)?this._lineBeingEdited.getPoint(this._linePointBeingEdited):e;null!==t&&this._setCorrectedPositionToCrosshair(t.index,t.price,l,i)} +if(!this._isSettingsExternalPosition&&p){const e=u.bars().firstIndex(),t=u.bars().lastIndex();if(null!==e&&null!==t){const s=Math.min(Math.max(o,e),t);s!==o&&this._setCorrectedPositionToCrosshair(s,n,l,i)}}this._syncCrosshair(s)}setExternalPosition(e,t){let i;const s=this.crossHairSource();if(s.setOnHoveredChartWidget(!1),null!==e&&(0,ee.isNumber)(e.timeStamp)){const t=this.mainSeries().syncModel();if(t){const s=this.createSyncPoint(e.syncSourceTarget,t.syncSourceTarget()).sourceTimeToTargetTime(e.timeStamp);i=this._timeScale.points().roughIndex(s,t.distance.bind(t))}}if(null!==e&&null!=i&&Number.isFinite(i)){this._isSettingsExternalPosition=!0;const n=(0,r.ensureNotNull)(this.paneForSource(this.mainSeries())),o=this._timeScale.indexToCoordinate(i),a=(0,r.ensureNotNull)(n.mainDataSource()).firstValue();if(null!==a){let i=NaN;void 0!==e.price&&Number.isFinite(e.price)&&(i=this.mainSeries().priceScale().priceToCoordinate(e.price,a)),s.clearOriginCoords(),this.setCurrentPosition(o,i,n,t)}return s.setOnHoveredChartWidget(!1),void(this._isSettingsExternalPosition=!1)}s.clearPosition(),(0,r.ensureNotNull)(s.dataWindowView()).update(),ki(this._panes),this.invalidate(q.InvalidationMask.cursor())}startScaleTime(e){this._timeScale.startScale(e)}scaleTimeTo(e){this._timeScale.scaleTo(e),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(),this._setScalesResetAvailable(!0)}endScaleTime(){this._timeScale.endScale(),this.lightUpdate(),this.recalcVisibleRangeStudies()}resetTimeScale(){this._timeScale.restoreDefault(),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.recalcVisibleRangeStudies(),this.lightUpdate(),this._resetScales.fire(),this._setScalesResetAvailable(!1)}startScalePrice(e,t,i){e.startScalePrice(t,i)}scalePriceTo(e,t,i){e.scalePriceTo(t,i),this.mainSeries().priceScale().isLockScale()?this.lightUpdate():this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light)),this._setScalesResetAvailable(!0)}endScalePrice(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}startTwoPointsScalePrice(e,t,i,s){t.startTwoPointsScale(i,s)}twoPointsScalePriceTo(e,t,i,s){t.twoPointsScale(i,s),this.invalidate(this._paneInvalidationMask(e)),this._setScalesResetAvailable(!0)}endTwoPointsScalePrice(e,t){t.endTwoPointsScale(),this.invalidate(this._paneInvalidationMask(e))}resetPriceScale(e,t){this._setScalesResetAvailable(!1),e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}restorePriceScaleState(e,t,i){e.restorePriceScaleState(t,i),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}currentTool(){return this._currentTool}setCurrentTool(e){this._currentTool!==e&&((0,f.isLineToolName)(e)&&this.selectionMacro(e=>{e.clearSelection()}),this._currentTool=e,this._phantomSourceContainer.onToolChanged())}detachSource(e){const t=this.paneForSource(e);return!!t&&(t.removeDataSource(e),t.isEmpty()?(this._lineBeingCreated&&t===this._paneBeingCreatedLineOn&&this.cancelCreatingLine(),this.removePane(t), +!0):(this.fullUpdate(),!1))}onRearrangePanes(){return this._onRearrangePanes}finishLineTool(e){const t=e.linkKey().value();(0,lt.drawOnAllCharts)().value()&&null!==t&&e.isSynchronizable()&&(0,lt.finishLineTool)({linkKey:t,model:this})}startChangingLinetool(e,t,i,s,n){this._lineBeingEdited=e,this._linePointBeingChanged=t||null,this._linePointBeingEdited=void 0===i?null:i,this._lineBeingEdited.startChanging(i,t,n),lt.isToolEditingNow.setValue(!0);const o=(0,r.ensureNotNull)(this.paneForSource(e));this._lineBeingEdited.startDragPoint&&void 0!==i&&void 0!==t&&this._lineBeingEdited.startDragPoint(i,t),n||void 0===i||void 0===t||this._lineBeingEdited.setPoint(i,t,s,n),this._lineBeingEdited.updateAllViews((0,O.dataSourceChangeEvent)(this._lineBeingEdited.id()));const a=this._paneInvalidationMask(o,q.InvalidationLevel.Light);this.invalidate(a);const l=e.linkKey().value();if(l&&e.isSynchronizable()&&void 0!==i&&void 0!==t){const e=(0,r.ensureNotNull)(this.externalTimeStamp(t.index));(0,lt.startChangingLineTool)({linkKey:l,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:e},pointIndex:i,envState:s||null})}}createLineTool(e,t,i,s,o,a,l){if((0,r.assert)((0,f.isLineToolName)(i),"Cannot create unknown line tool: "+i),s){const e={...Li.intervalsVisibilitiesDefaults},t=s.childs().intervalsVisibilities.state();(0,ee.merge)(e,null!=t?t:{});const r=s.state();r.intervalsVisibilities=e,s=(0,f.createLineToolProperties)(i,r,this)}const c=(0,f.createLineTool)(i,this,s,null,void 0,l);if("LineToolExecution"!==i){const e="LineToolIcon"===i?c.properties().childs().icon.value().toString(16).toUpperCase():void 0;(0,h.trackEvent)("drawings","Study_Drawing_"+i,e)}const d=!c.linkKey().value()&&!o;a=(0,r.ensureDefined)(a||(0,r.ensureNotNull)(e.mainDataSource())),s||(0,f.prepareLineToolPropertiesByOwnerSource)(c.properties(),a),c.setOwnerSource(a);const u=a.priceScale();if(e.addDataSource(c,u,!1),(0,lt.drawOnAllCharts)().value()){const e=c.isSynchronizable()?o||(0,X.randomHash)():null;c.linkKey().setValue(e)}else c.linkKey().setValue(o);let p;if(c.isFixed()){const i=(0,r.ensureNotNull)((0,r.ensureNotNull)(e.mainDataSource()).firstValue()),s=this._timeScale.indexToCoordinate(t.index),o=(0,r.ensureNotNull)(u).priceToCoordinate(t.price,i);p=c.addFixedPoint(new n.Point(s,o))}else p=c.addPoint(t);return p||(this._lineBeingCreated=c,this._paneBeingCreatedLineOn=e,lt.isToolCreatingNow.setValue(!0)),d&&c.enableCurrentIntervalVisibility(),this.fullUpdate(),c}endChangingLinetool(e,t){const i=(0,r.ensureNotNull)(this._lineBeingEdited),s=i.endChanging(!1,e,t);this._lineBeingEdited=null,lt.isToolEditingNow.setValue(!1),this._linePointBeingEdited=null,this._linePointBeingChanged=null,this.lightUpdate();const n={points:i.normalizedPoints(),interval:this.mainSeries().interval()},o=i.linkKey().value();null!==o&&i.isSynchronizable()&&!t&&(0,lt.finishChangingLineTool)({model:this,linkKey:o,symbol:this.mainSeries().symbol(),finalState:n,changes:s})}continueCreatingLine(e,t,i,s){const n=(0, +r.ensureNotNull)(this._lineBeingCreated),o=n.addPoint(e,t,i);n.updateAllViews((0,O.dataSourceChangeEvent)(n.id()));const a=new q.InvalidationMask(q.InvalidationLevel.Light);return o&&(this._paneBeingCreatedLineOn=null,this._lineBeingCreated=null,lt.isToolCreatingNow.setValue(!1)),this.invalidate(a),o}cancelCreatingLine(){if(!this._lineBeingCreated)return;const e=this._lineBeingCreated;this.removeSource(this._lineBeingCreated),this._lineBeingCreated=null,this._lineCancelled.fire(),lt.isToolCreatingNow.setValue(!1),(0,lt.drawOnAllCharts)().value()&&e.isSynchronizable()&&(0,lt.cancelLineTool)({model:this})}lineBeingCreated(){return this._lineBeingCreated}paneBeingCreatedLineOn(){return this._paneBeingCreatedLineOn}lineCancelled(){return this._lineCancelled}isPhantomLine(e){return this._phantomSourceContainer.source()===e}changeLinePoint(e,t,i){const s=(0,r.ensureNotNull)(this._lineBeingEdited),n=(0,r.ensureNotNull)(this._linePointBeingEdited);let o=e.price,a=e.index;if(s.setPoint(n,e,t,i),!i){const t=s.alignCrossHairToAnchor(n)?s.getPoint(n):e;null!==t&&(a=t.index,o=t.price)}s.updateAllViews((0,O.dataSourceChangeEvent)(s.id())),this.lightUpdate();const l=s.linkKey().value();if(!i&&null!==l&&s.isSynchronizable()){const e=(0,r.ensureNotNull)(this._linePointBeingChanged),i={indexesChanged:a!==e.index,pricesChanged:o!==e.price},c=s.getChangePointForSync(n);if(null!==c){const e=this.externalTimeStamp(a);null!==e&&(o=c.price,(0,lt.changeLineTool)({linkKey:l,model:this,symbol:this.mainSeries().symbol(),point:{price:o,timeStamp:e},envState:t,changes:i}))}}}changeLinePoints(e,t,i){const s=e.points(),n=e.linkKey().value();!i&&n&&e.isSynchronizable()&&t.forEach((t,i)=>{const o=s[i],a=o.price!==t.price,l=o.index!==t.index;if(e.getChangePointForSync(i)){const e=(0,r.ensureNotNull)(this.externalTimeStamp(t.index));(0,lt.changeLineTool)({linkKey:n,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:e},changes:{pricesChanged:a,indexesChanged:l}})}}),e.setPoints(t),e.updateAllViews((0,O.dataSourceChangeEvent)(e.id())),this.lightUpdate()}startScrollTime(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0}scrollTimeTo(e){this._timeScale.scrollTo(e),this.recalculateAllPanes((0,O.viewportChangeEvent)()),this.lightUpdate(),this._setScalesResetAvailable(!0)}endScrollTime(){this._timeScale.endScroll(),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._isTimeScrolling=!1}startScrollPrice(e,t,i){e.startScrollPrice(t,i)}scrollPriceTo(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}endScrollPrice(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,q.InvalidationLevel.Light))}addCustomSource(e,t,i=_.CustomSourceLayer.Foreground){this._customSourcesMap.has(e)&&Ai.logWarn(`Attempt to add the same custom source multiple time "${e}"`),Ai.logNormal(`Adding custom source "${e}"`);const s=t(e,this);switch(i){case _.CustomSourceLayer.Background:this._bgCustomSources.push(s);break;case _.CustomSourceLayer.Foreground:this._fgCustomSources.push(s) +;break;case _.CustomSourceLayer.Topmost:this._topmostCustomSources.push(s);break;default:throw new Error("Unknown custom sources layer "+i)}this._allCustomSources.push(s),this._customSourcesMap.set(e,s),this.lightUpdate()}removeCustomSource(e){this._removeCustomSource(e),this.lightUpdate()}hasCustomSource(e){return this._customSourcesMap.has(e)}customSourceForName(e){return this._customSourcesMap.get(e)||null}customSourceName(e){let t=null;return this._customSourcesMap.forEach((i,s)=>{i===e&&(t=s)}),t}customSources(e){switch(e){case _.CustomSourceLayer.Background:return this._bgCustomSources;case _.CustomSourceLayer.Foreground:return this._fgCustomSources;case _.CustomSourceLayer.Topmost:return this._topmostCustomSources;default:return this._allCustomSources}}addMultiPaneSource(e){this._multiPaneSources.push(e),this.lightUpdate()}removeMultiPaneSource(e){const t=this._multiPaneSources.indexOf(e);-1===t?Ai.logWarn("Attempt to remove multi-pane source which does not exist in the model"):this._multiPaneSources.splice(t,1),this.lightUpdate()}multiPaneSources(e){return this._multiPaneSources.filter(t=>!e.hasDataSource(t))}dateTimeFormatter(){return this._dateTimeFormatter}dateFormatter(){return this._dateFormatter}timeFormatter(){return this._timeFormatter}sessions(){return(0,r.ensureNotNull)(this._sessions)}createSessions(e){(0,r.assert)(null===this._sessions,"Sessions are already created"),this.addCustomSource("sessions",(t,i)=>(this._sessions=new W(t,i,e),this._sessions.start(),this._sessions),_.CustomSourceLayer.Background)}createPrePostMarket(e){this.addCustomSource("prePostMarket",(t,i)=>new PrePostMarket(t,i,e))}theme(){const e=this.properties().childs().paneProperties.state();delete e.topMargin,delete e.bottomMargin;const t=this.mainSeries().state().state;t&&(delete t.symbol,delete t.interval,delete t.currencyId,delete t.unitId);const i={mainSourceProperties:t,sessions:this.sessions().properties().state(),chartProperties:{paneProperties:e,scalesProperties:this.properties().childs().scalesProperties.state()},version:this.version()};return i.version=this.version(),i}onChartThemeLoaded(){return this._chartThemeLoaded}chartThemeLoaded(){this._chartThemeLoaded.fire()}state(e,t,i,s){var r;const n=this.publishedChartsTimelineSource(),o=this.properties().childs(),a=o.tradingProperties.state(),l={panes:this._panes.map(r=>r.state(!0,e,!1,t,i,s)),timeScale:this._timeScale.state(e),chartProperties:{paneProperties:o.paneProperties.state(),scalesProperties:o.scalesProperties.state(),publishedChartsTimelineProperties:n?n.state(e):void 0,chartEventsSourceProperties:null===(r=o.chartEventsSourceProperties)||void 0===r?void 0:r.state(),tradingProperties:a,priceScaleSelectionStrategyName:o.priceScaleSelectionStrategyName.value()},sessions:this.sessions().state(e),version:this.version(),timezone:this.timezone(),shouldBeSavedEvenIfHidden:this._shouldBeSavedEvenIfHidden};return s||(l.lineToolsGroups=this.lineToolsGroupModel().state(t)),l}restoreState(e,t,i){ve.instance(this).reset();const s={} +;if(!e.panes)return void Ai.logDebug("ChartModel.restoreState: invalid state");if(!Array.isArray(e.panes))return void Ai.logDebug("ChartModel.restoreState: invalid state");if(e.panes.length<1)return void Ai.logDebug("ChartModel.restoreState: invalid state");if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){const i=(0,D.factoryDefaults)("chartproperties").scalesProperties;(0,ee.merge)(i,e.chartProperties.scalesProperties),!("showLastValue"in i)||"showSeriesLastValue"in i||"showStudyLastValue"in i||(i.showSeriesLastValueProperty=i.showLastValue,i.showStudyLastValueProperty=i.showLastValue),"showSeriesLastValue"in i&&(s.showSeriesLastValueProperty=!0),"showStudyLastValue"in i&&(s.showStudyLastValueProperty=!0),(!this.isSnapshot()&&!this.readOnly()&&"showCurrency"in i||"showUnit"in i)&&(0,Y.migrateShowCurrencyAndShowUnitProperties)(i.showCurrency,i.showUnit),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||(0,ee.clone)(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||(0,ee.clone)(e.chartProperties.paneProperties.gridProperties),"backgroundType"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.backgroundType=dt.ColorType.Solid),"separatorColor"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.separatorColor=(0,c.getThemedColor)("color-chart-page-bg")),this._properties.childs().paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.childs().scalesProperties.mergeAndFire(i),e.chartProperties.timezone&&this._properties.childs().timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.hasChild("chartEventsSourceProperties")&&this._properties.childs().chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),e.chartProperties.tradingProperties&&this._properties.hasChild("tradingProperties")&&(void 0===e.chartProperties.tradingProperties.horizontalAlignment&&(e.chartProperties.tradingProperties.horizontalAlignment=(r=e.chartProperties.tradingProperties.lineLength)<=40?_.TradingSourcesHorizontalAlignment.Right:r>=60?_.TradingSourcesHorizontalAlignment.Left:_.TradingSourcesHorizontalAlignment.Center),this._properties.childs().tradingProperties.mergeAndFire(e.chartProperties.tradingProperties)),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}var r;if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){const t=this._getExceedingChildStudies(e.panes);if(t.length){for(let i=e.panes.length-1;i>=0;--i){const s=e.panes[i];for(let e=s.sources.length-1;e>=0;--e){const i=s.sources[e];~t.indexOf(i)&&s.sources.splice(e,1)}s.sources.length||e.panes.splice(i,1)}0}}const n=e.version||0,o=e.panes +;this.panes()[0].restoreState(o[0],t,n,s,i,!0);let a=1;for(let r=1;rd&&h%100==0?{lines_limit_exceeded:!0,line_tools_count:h}:(this.panes().forEach(e=>this._dataSourceCollectionChanged.fire(e)),this._lineToolsGroupModel.fireChangedAll(),{})}shouldBeSavedEvenIfHidden(){return this._shouldBeSavedEvenIfHidden}setShouldBeSavedEvenIfHidden(e){this._shouldBeSavedEvenIfHidden=e}externalTimeStamp(e){const t=this.mainSeries().syncModel();return this.timeScale().points().roughTime(e,t&&t.projectTime.bind(t))}syncESD(){null!==this._esdWatcher&&this._esdWatcher.syncESDStudies()}recalcVisibleRangeStudies(e){this._recalcVRStudiesParams.force=this._recalcVRStudiesParams.force||Boolean(e),this._recalcVisibleRangeStudiesImplDebounced()}recalcColorStudies(e){this._recalcColorStudiesParams.force=this._recalcColorStudiesParams.force||Boolean(e),this._recalcColorStudiesImplDebounced()}alertsWatcher(){return this._alertsWatcher}showLegend(){return this._showLegendProperty}id(){return this._id}recalculatePriceRangeOnce(){const e=this.mainSeries();for(const t of this._panes)for(const i of t.priceDataSources())i.symbolSource()===e&&i.disablePriceRangeReady()}invalidate(e){var t;null===(t=this._invalidateHandler)||void 0===t||t.call(this,e)}appliedTimeFrame(){return this._appliedTimeFrame.appliedTimeFrame()}barsMarksSources(){return this._barsMarksSources}barMarksSourceForId(e){for(const t of this._barsMarksSources)if(t.id()===e)return t;return null}createSyncPoint(e,t){return(0,Ii.getDefault2Lazy)(this._syncPointCache,e.uniqueId,t.uniqueId,()=>new at(e,t))}isAutoSaveEnabled(){return this._isAutoSaveEnabled}studyAwareDefaultRightOffset(){return Math.max(this._timeScale.defaultRightOffset().value(),this._cachedStudiesMaxOffset)}clearAllStudies(){this.dataSources().forEach(e=>{var t;return null===(t=e.clearData)||void 0===t?void 0:t.call(e)})}_updateStudiesMaxOffset(){const e=Math.max(...this.allStudies().map(e=>e.maxOffset().value()));this._cachedStudiesMaxOffset=e;const t=this._timeScale.rightOffset();t<0||this._timeScale.setRightOffset(Math.max(t,e))}_updateBaseIndex(e,t){const i=this._timeScale,s=i.baseIndex(),r=i.visibleBarsStrictRange(),n=i.logicalRange();if(null!==n&&t){ +const t=n.contains(s),o=e-s;let a=t?null:i.rightOffset()-o;if(!this._options.shiftVisibleRangeOnNewBar&&t){const e=i.indexToCoordinate(s)+i.barSpacing()/2+1,t=s-n.left()+o,l=e/t;if(l>=i.minBarSpacing()){i.setBarSpacing(l);a=i.width()/l-t}else(null==r?void 0:r.lastBar())!==s&&(a=i.rightOffset()-o)}null!==a&&i.setRightOffset(a)}i.setBaseIndex(e)}_createESDWatcher(){}_updateDateTimeFormatter(){const e=Je.dateFormatProperty.value(),t=new Ze.DateFormatter(e);if(this._dateFormatter=t,this.mainSeries().isDWM())this._dateTimeFormatter=t,this._timeFormatter=new Qe.TimeFormatter("%h:%m");else{const t=C.Interval.parse(this.mainSeries().interval()),i=t.isSeconds()||t.isTicks()?"%h:%m:%s":"%h:%m";this._dateTimeFormatter=new Xe.DateTimeFormatter({dateFormat:e,timeFormat:i,dateTimeSeparator:" "}),this._timeFormatter=new Qe.TimeFormatter(i)}}_setScalesResetAvailable(e){this._isScalesResetAvailable!==e&&(this._isScalesResetAvailable=e,this._isScalesResetAvailableChanged.fire())}_invalidationMaskForSource(e,t=q.InvalidationLevel.Light){if(e===this.crossHairSource())return q.InvalidationMask.cursor();if(this._watermarkSource===e)return this._paneInvalidationMask((0,r.ensureNotNull)(this.paneForSource(this.mainSeries())),t);if(-1!==this._allCustomSources.indexOf(e)){const e=new q.InvalidationMask;return e.invalidateAll(t),e}if(!(0,m.isDataSource)(e))return null;if(e.isMultiPaneEnabled())return new q.InvalidationMask(t);const i=this.paneForSource(e);return null!==i?this._paneInvalidationMask(i,t):null}_paneInvalidationMask(e,t=q.InvalidationLevel.Light){const i=new q.InvalidationMask,s=this._panes.indexOf(e);return i.invalidateAllPane(s,t),i}_invalidationMaskForSourcePriceScale(e,t=q.InvalidationLevel.Light){if(!(0,m.isDataSource)(e))return new q.InvalidationMask(t);const i=this.paneForSource(e);if(null===i)return null;let s=e.priceScale();if(null===s)return null;const r=this._panes.indexOf(i);let n=i.priceScalePosition(s);if("overlay"===n){const e=this._panes[r].defaultPriceScale();s=e,n=i.priceScalePosition(e)}const o=i.priceScaleIndex(s,n);if(void 0===o)return null;const a=new q.InvalidationMask;return a.invalidatePriceScale(r,n,o,t),a}_removeCustomSource(e){const t=this._customSourcesMap.get(e);if(void 0===t)return void Ai.logWarn(`Attempt to remove custom source which does not exist in the model - "${e}"`);Ai.logNormal(`Removing custom source "${e}"`),this.selectionMacro(e=>{e.removeSourceFromSelection(t)}),this._hoveredSource===t&&this.setHoveredSource(null),this._customSourceBeingMoved===t&&this.setMovingCustomSource(null,null);const i=Ei(this._bgCustomSources,t),s=Ei(this._fgCustomSources,t),n=Ei(this._topmostCustomSources,t),o=Ei(this._allCustomSources,t);(0,r.assert)(i||s||n,"Source should be presented in one of the layers"),(0,r.assert)(o,"Source should be presented in the array"),this._customSourcesMap.delete(e),t.destroy()}_updateShowLegendProperty(){const e=this._properties.childs().paneProperties.childs().legendProperties.childs().showLegend,t=this._showLegendProperty;if(e.value())t.setValue(!0);else{ +for(const e of this._panes){let i=0;for(const s of e.priceDataSources())if(s!==this.mainSeries()&&null!==s.statusView()&&(i++,i>1))return void t.setValue(!1)}t.setValue(!0)}}_pointToPercentPosition(e,t){return{x:e.x/this._timeScale.width(),y:e.y/(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainDataSource()).priceScale()).height()}}_percentPositionToPoint(e,t){const i=e.x*this._timeScale.width(),s=e.y*(0,r.ensureNotNull)((0,r.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new n.Point(i,s)}_recalcVisibleRangeStudiesImpl(e){var t,i,s;if(e.timerId=null,this.timeScale().isEmpty())return;const r=this.timeScale().visibleBarsStrictRange();if(null===r)return;const n=this.mainSeries().bars(),o=n.search(r.firstBar(),ft.PlotRowSearchMode.NearestRight),a=n.search(r.lastBar(),ft.PlotRowSearchMode.NearestLeft),l=n.lastIndex(),c=o?o.index:void 0,h=a?a.index:void 0,d=c===e.oldStartVisibleIndex,u=h===e.oldEndVisibleIndex;if(d&&u&&!e.force)return;e.force=!1,e.oldStartVisibleIndex=void 0!==c?c:NaN,e.oldEndVisibleIndex=void 0!==h?h:NaN;const p={first_visible_bar_time:1e3*(null!==(t=null==o?void 0:o.value[0])&&void 0!==t?t:0),last_visible_bar_time:1e3*(null!==(i=null==a?void 0:a.value[0])&&void 0!==i?i:0),subscribeRealtime:(null==a?void 0:a.index)===l},_=null!==(s=e.studies)&&void 0!==s?s:this.priceDataSources();e.studies=void 0;for(const e of _)if((0,H.isStudy)(e)){const t=e.metaInfo().inputs,i=[];for(const e of t)p.hasOwnProperty(e.id)&&i.push(e.id);const s=e.properties().inputs;for(const e of i)s[e].setValueSilently(p[e]);i.length>0&&s.listeners().fire(s)}}_recalcColorStudiesImpl(e){var t;e.timerId=null;const i=this.backgroundColorAtYPercentFromTop(.5),s=this.isDark()?a.colorsPalette["color-cold-gray-200"]:a.colorsPalette["color-cold-gray-900"],r=i===e.oldBgColor,n=s===e.oldFgColor;if(r&&n&&!e.force)return;e.force=!1,e.oldBgColor=i,e.oldFgColor=s;const o={__chart_bgcolor:i,__chart_fgcolor:s},l=null!==(t=e.studies)&&void 0!==t?t:this.priceDataSources();e.studies=void 0;for(const e of l)if((0,H.isStudy)(e)){const t=e.metaInfo().inputs,i=[];for(const e of t)o.hasOwnProperty(e.id)&&i.push(e.id);const s=e.properties().inputs;for(const e of i)s[e].setValueSilently(o[e]);i.length>0&&s.listeners().fire(s)}}_getAllSources(e){const t=[];for(const i of this._panes){const s=i.sourcesByGroup().all();for(const i of s)e(i)&&t.push(i)}return t}_invalidateBarColorerCaches(){this.mainSeries().invalidateBarColorerCache()}_updateTimeScale(e){var t,i;const{index:s,zoffset:r,values:n,indexDiffs:o,baseIndex:a,marks:l,clearFlag:c}=e;if(c){this._timeScale.reset();for(const e of this.dataSources())null===(t=e.clearData)||void 0===t||t.call(e)}if(o.length>0)for(const e of this.dataSources())null===(i=e.moveData)||void 0===i||i.call(e,o);const h=this._timeScale.indexToTimePoint(this._timeScale.baseIndex()),d=this._timeScale.canNormalize();this._timeScale.update(s,r,n,l);let u="ChartModel.prototype._updateTimeScale("+s+","+r+","+n.length+","+o.length+","+l.length+","+c+")" +;if(u+="TimeScale: {first:"+this._timeScale.points().firstIndex()+",last:"+this._timeScale.points().lastIndex()+"}",null===a){this._timeScale.resetBaseIndex();const e=this._timeScale.rightOffset();e<0?this._timeScale.setRightOffset(this.studyAwareDefaultRightOffset()):this._timeScale.setRightOffset(Math.max(e,this._cachedStudiesMaxOffset))}else if(void 0!==a){const e=this._timeScale.indexToTimePoint(a),t=null!==h&&null!==e&&e>h;this._updateBaseIndex(a,t)}if(Ai.logDebug(u),!d&&d!==this._timeScale.canNormalize())for(const e of this.dataSources())!(0,f.isLineTool)(e)||e.isFixed()||e.isSourceHidden()||e.processHibernate();this.recalculateAllPanes((0,O.globalChangeEvent)()),this.lightUpdate()}_getAvailableCurrencies(){return!this.currencyConversionEnabled()||this.isSnapshot()?[]:(0,ee.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then(e=>{this._destroyed||(this._availableCurrenciesList=e,this.fullUpdate())}).catch(e=>{Ai.logWarn("An error occurred while getting currencies config: "+e)})),[])}_getAvailableUnits(){return!this.unitConversionEnabled()||this.isSnapshot()?{}:this._availableUnitsObject instanceof Promise||null===this._availableUnitsObject?(null!==this._availableUnitsObject||(this._availableUnitsObject=this.chartApi().availableUnits(),this._availableUnitsObject.then(e=>{this._destroyed||(this._availableUnitsObject=e,this.fullUpdate())}).catch(e=>{Ai.logWarn("An error occurred while getting units config: "+e)})),{}):this._availableUnitsObject}_getBackgroundColor(e){const t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===dt.ColorType.Gradient){const i=t.backgroundGradientStartColor.value(),s=t.backgroundGradientEndColor.value();return e?i:s}return t.background.value()}_updateBackgroundColor(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))}_syncCrosshair(e){if(!this._isSettingsExternalPosition){const t=this._undoModel.chartWidget(),i=this._undoModel.mainSeries(),s=i.syncModel(),r=this._undoModel.crossHairSource(),n=r.pane;if(null!==s&&null!==n){const o={timeStamp:this._timeScale.points().roughTime(r.index,s.projectTime.bind(s)),syncSourceTarget:s.syncSourceTarget()};n.mainDataSource()===i&&(o.price=r.price,o.symbol=i.symbol());let a=this._lineBeingCreated||null!==this._linePointBeingEdited||Boolean(this._sourcesBeingMoved.length);a=a&&(0,lt.drawOnAllCharts)().value(),t.chartWidgetCollection().syncCrosshair(o,t.id(),a,e)}this._phantomSourceContainer.onCursorPositionUpdated()}}_gotoTimeImpl(e,t){const i=this.timeScale(),s=this.mainSeries();let n;if(void 0!==e){if(this._scrollingState&&this._scrollingState.deferred.reject(),n=(0,d.createDeferredPromise)(),!s.isDWM()){const t=s.symbolInfo();if(null!==t){let i=this.properties().childs().timezone.value();"exchange"===i&&(i=t.timezone);const r=(0,it.cal_to_utc)((0,it.get_timezone)(i),new Date(e)),n=(0, +wt.createTimeToBarTimeAligner)(s.interval(),t)(r);e=(0,it.utc_to_cal)((0,it.get_timezone)(i),n).getTime()}}this._scrollingState={targetDate:e,deferred:n,centerIfVisible:t.centerIfVisible}}else{if(!this._scrollingState)return Ai.logError("scrollTo called without an argument"),Promise.reject();e=this._scrollingState.targetDate,n=this._scrollingState.deferred}if(void 0===i.tickMarks().minIndex)return n.resolve(void 0),n.promise;let o=((e,t)=>{if((e=>(0,r.ensureNotNull)(i.tickMarks().indexToTime((0,r.ensureDefined)(i.tickMarks().minIndex))).valueOf()-e)(t)<0){let n=i.tickMarks().nearestIndex(t);const o=s.bars().lastIndex();if(null===o)return null;n=Math.min(n,o);let a=(0,r.ensureNotNull)(i.tickMarks().indexToTime(n)).valueOf();for(;a1&&s.push(e)),n=(n+1)%t.length}return s}}},15943:(e,t,i)=>{"use strict";i.d(t,{japaneseChartStyles:()=>r,commonChartStyles:()=>n,allChartStyles:()=>o});var s=i(67337);function r(){return s.enabled("japanese_chart_styles"),[8]}function n(){const e=[0,1,9,13,2,3,10];return s.enabled("chart_style_hilo")&&e.push(12),e}function o(){return n().concat(r())}},97205:(e,t,i)=>{"use strict";i.d(t,{ChartUndoModelBase:()=>Hi});var s=i(85459),r=i.n(s),n=i(16230),o=i(88537),a=i(86441),l=i(28353),c=i(68587),h=i(65645),d=i(67072),u=i.n(d),p=i(44556),_=i(94578),m=i(14291),g=i(59199),f=i(9423),v=i(51768),S=i(13795),y=i(67337),b=i(46627),w=i(81851),C=i(24980),P=i(80643),T=i(98125);const x=new C.TranslatedString("move all scales to left",(0,l.t)("move all scales to left")),I=new C.TranslatedString("move all scales to right",(0,l.t)("move all scales to right")),M=(0, +T.getLogger)("Chart.MergeAllScales");var L=i(35762);class A extends L.UndoCommand{constructor(e,t,i,s,r,n){super(n),this._model=e,this._paneIndex=e.panes().indexOf(t),this._targetPosition=s,this._targetIndex=r,this._scaleId=i.id(),this._sourcePosition=t.priceScalePosition(i),"overlay"!==this._sourcePosition&&(this._sourceIndex=t.priceScaleIndex(i,this._sourcePosition))}redo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._targetPosition,this._targetIndex),this._model.fullUpdate()}undo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.getPriceScaleById(this._scaleId));e.movePriceScale(t,this._sourcePosition,this._sourceIndex),this._model.fullUpdate()}}class E extends L.UndoCommand{constructor(e,t,i,s){super(s),this._createdIds=[],this._model=e,this._withoutShift=i,this._origStates=t.map(e=>e.state(!0));const r=e.lineToolsGroupModel();this._origGroups=t.map(e=>{const t=r.groupForLineTool(e);return t&&t.id})}redo(){const e=this._model.lineToolsGroupModel(),t=this._origStates.map((t,i)=>{const s=(0,o.ensureNotNull)(this._model.dataSourceForId(t.id)),r=0===this._createdIds.length?void 0:(0,o.ensureDefined)(this._createdIds[i]),n=(0,m.cloneLineTool)(this._model,s,!this._withoutShift,r),a=(0,o.ensureNotNull)(s.priceScale());(0,o.ensureNotNull)(this._model.paneForSource(s)).addDataSource(n,a,!1);const l=this._origGroups[i];if(null!==l){const t=e.groupForId(l);t&&t.addLineTools([n])}return this._model.updateSource(n),n});0===this._createdIds.length&&(this._createdIds=t.map(e=>e.id())),this._model.selectionMacro(e=>{e.clearSelection(),t.forEach(t=>{e.addSourceToSelection(t)})}),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=this._model.lineToolsGroupModel();this._createdIds.forEach(t=>{const i=(0,o.ensureNotNull)(this._model.dataSourceForId(t)),s=e.groupForLineTool(i);null!==s&&s.excludeLineTool(i),this._model.removeSource(i)})}newIds(){return this._createdIds}}var k=i(65284),D=i(79495);class V extends L.UndoCommand{constructor(e,t,i,s=!0){super(i,s),this._newStates=[],this._model=e,this._savedStates=t.map(e=>e.state(!1))}redo(){this._applyState(this._newStates)}undo(){0===this._newStates.length&&this.saveNewState(),this._applyState(this._savedStates)}saveNewState(){const e=this._savedStates.filter(P.notNull).map(e=>(0,o.ensureNotNull)(this._model.dataSourceForId(e.id)));this._newStates=e.map(e=>e.state(!1))}_applyState(e){for(const t of e)if(null!==t){const e=this._model.dataSourceForId(t.id);if(null!==e)if((0,w.isStudy)(e)){const i=t.state.inputs,s=e.properties().inputs;for(const e in i)s[e]&&s[e].setValue(i[e])}else this._model.restoreLineToolState(e,t,!0)}}}var B=i(36551),N=i(8597),R=i(59555),O=i(60870);const F=new C.TranslatedString("create {tool}",(0,l.t)("create {tool}"));class W extends L.UndoCommand{constructor(e,t,i,s,r=0,n){super(F.format({tool:new C.TranslatedString(i,O.lineToolsLocalizedNames[i])}),!1),this._lineId=null,this._lineState=null,this._model=e,this._paneIndex=e.panes().indexOf(t), +this._lineTool=i,this._ownerSourceId=s.id(),this._lineId=null!=n?n:null,this._drawOnAllChartsMode=r}startCreatingLine(e,t,i){var s;const r=this._model.panes()[this._paneIndex],n=this._model.dataSourceForId(this._ownerSourceId),o=this._model.createLineTool(r,e,this._lineTool,t,i,n,null!==(s=this._lineId)&&void 0!==s?s:void 0);return this._lineId=o.id(),!this._model.lineBeingCreated()}continueCreatingLine(e,t,i,s){const r=this._model.continueCreatingLine(e,t,i,s);return r&&this._model.setShouldBeSavedEvenIfHidden(!0),r}line(){return null===this._lineId?null:this._model.dataSourceForId(this._lineId)}undo(){const e=this.line();null!==e&&(this._lineState=e.state(!1),this._model.removeSource(e),this._lineId=null)}redo(){if(null===this._lineState)return;const e=this._model.restoreSource(!1,this._paneIndex,null,(0,o.ensureNotNull)(this._lineState),null);null!==e&&(this._lineId=e.id(),this._lineState=null,e.share(this._drawOnAllChartsMode))}drawOnAllCharts(){return 0!==this._drawOnAllChartsMode}}const H=new C.TranslatedString("bring {title} to front",(0,l.t)("bring {title} to front")),z=new C.TranslatedString("send {title} to back",(0,l.t)("send {title} to back")),U=new C.TranslatedString("insert {title} after {targetTitle}",(0,l.t)("insert {title} after {targetTitle}")),j=new C.TranslatedString("insert {title} before {targetTitle}",(0,l.t)("insert {title} before {targetTitle}")),G=new C.TranslatedString("send {title} backward",(0,l.t)("send {title} backward")),q=new C.TranslatedString("bring {title} forward",(0,l.t)("bring {title} forward")),Y=new C.TranslatedString("send group {title} backward",(0,l.t)("send group {title} backward")),K=new C.TranslatedString("bring group {title} forward",(0,l.t)("bring group {title} forward"));function $(e){return new C.TranslatedString(e.name(),e.title())}class X extends L.UndoCommand{constructor(e,t,i){super(i),this._sourcesByPanes=new Map,this._originalState=new Map,this._model=e,t.forEach(t=>{const i=(0,o.ensureNotNull)(e.paneForSource(t)),s=e.panes().indexOf(i),r=this._sourcesByPanes.get(s)||[];r.push(t.id()),this._sourcesByPanes.set(s,r)}),Array.from(this._sourcesByPanes.keys()).forEach(t=>{const i=e.panes()[t],s=new Map;i.sourcesByGroup().allIncludingHidden().forEach(e=>{s.set(e.id(),e.zorder())}),this._originalState.set(t,s)})}undo(){this._originalState.forEach((e,t)=>{const i=this._model.panes()[t],s=new Map;e.forEach((e,t)=>{const r=(0,o.ensureNotNull)(i.dataSourceForId(t));s.set(r,e)}),i.setZOrders(s)})}redo(){this._sourcesByPanes.forEach((e,t)=>{const i=this._model.panes()[t],s=e.map(e=>(0,o.ensureNotNull)(i.dataSourceForId(e)));this._paneOperation(i,s)})}}class Z extends X{constructor(e,t){super(e,t,H.format({title:$(t[0])}))}_paneOperation(e,t){e.bringToFront(t)}}class J extends X{constructor(e,t){super(e,t,z.format({title:$(t[0])}))}_paneOperation(e,t){e.sendToBack(t)}}class Q extends X{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertAfter(t,this._targetSource)}}class ee extends Q{constructor(e,t,i){super(e,t,i,U.format({title:$(t[0]), +targetTitle:$(i)}))}}class te extends X{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertBefore(t,this._targetSource)}}class ie extends te{constructor(e,t,i){super(e,t,i,j.format({title:$(t[0]),targetTitle:$(i)}))}}function se(e,t){const i=t[0],s=e.sourcesByGroup().all().filter(e=>e.zorder()e.zorder()>i.zorder());if(0===s.length)throw new Error("Cannot bring forward source that alreadt on back");let r=s[0];if((0,m.isLineTool)(r)){const t=e.model().lineToolsGroupModel().groupForLineTool(r);if(null!==t){const e=t.lineTools();r=e[e.length-1]}}return r}class oe extends Q{constructor(e,t,i){super(e,i,ne(t,i),q.format({title:$(i[0])}))}}function ae(e,t){return(0,o.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}class le extends te{constructor(e,t){super(e,t.lineTools(),se(ae(e,t),t.lineTools()),Y.format({title:t.name()}))}}class ce extends Q{constructor(e,t){super(e,t.lineTools(),ne(ae(e,t),t.lineTools()),K.format({title:t.name()}))}}const he=new C.TranslatedString("rearrange panes",(0,l.t)("rearrange panes"));class de extends L.UndoCommand{constructor(e,t,i){super(he),this._chartModel=e,this._index=t,(0,P.isNumber)(i)?this._dstIndex=i:this._dstIndex="up"===i?t-1:t+1}redo(){this._checkIndices()&&this._chartModel.movePane(this._index,this._dstIndex)}undo(){this._checkIndices()&&this._chartModel.movePane(this._dstIndex,this._index)}_checkIndices(){const e=this._chartModel.panes().length;return this._index>=0&&this._index=0&&this._dstIndexe.id())}redo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId));this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e)),t=new Pe.LineToolsGroup(e,this._groupName,this._groupId);this._model.lineToolsGroupModel().addGroup(t)}}const xe=new C.TranslatedString("create line tools group",(0,l.t)("create line tools group"));class Ie extends L.UndoCommand{constructor(e,t){super(xe),this._groupId=null,this._model=e,this._sourcesIds=t.map(e=>e.id())}redo(){const e=this._sourcesIds.map(e=>this._model.dataSourceForId(e)),t=null===this._groupId?void 0:this._groupId;this._groupId=this._model.lineToolsGroupModel().createGroup(e,this._title,t).id}undo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId((0,o.ensureNotNull)(this._groupId))) +;this._model.lineToolsGroupModel().removeGroup(e)}createdGroupId(){return this._groupId}}const Me=new C.TranslatedString("add line tool(s) to group {group}",(0,l.t)("add line tool(s) to group {group}"));class Le extends L.UndoCommand{constructor(e,t,i){super(Me.format({group:t.name()})),this._model=e,this._groupId=t.id,this._lineToolsIds=i.map(e=>e.id())}redo(){const e=(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));e.addLineTools(t)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));(0,o.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)).excludeLineTools(e)}}class Ae extends L.UndoCommand{constructor(e,t,i,s,r){super(i),this._targetObj=e,this._newValue=t,this._oldValue=this._targetObj.value(),this._model=s,r&&this.setCustomFlag("doesnt_affect_save",!0)}redo(){(0,_e.saveDefaultProperties)(!0),this._targetObj.setValue(this._newValue),(0,_e.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,ve.globalChangeEvent)()),this._model.lightUpdate()}undo(){(0,_e.saveDefaultProperties)(!0),this._targetObj.setValue(this._oldValue),(0,_e.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,ve.globalChangeEvent)()),this._model.lightUpdate()}}class Ee extends L.UndoCommand{constructor(e,t,i,s){super(s),this._chartModel=e,this._groupId=t.id,this._oldName=t.name(),this._newName=i}redo(){(0,o.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._newName)}undo(){(0,o.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._oldName)}}var ke=i(85733);const De=new C.TranslatedString("create line tools group from selection",(0,l.t)("create line tools group from selection")),Ve=new C.TranslatedString("removing line tools group {name}",(0,l.t)("removing line tools group {name}")),Be=new C.TranslatedString("add line tool {lineTool} to group {name}",(0,l.t)("add line tool {lineTool} to group {name}")),Ne=new C.TranslatedString("make group {group} visible",(0,l.t)("make group {group} visible")),Re=new C.TranslatedString("make group {group} invisible",(0,l.t)("make group {group} invisible")),Oe=new C.TranslatedString("lock group {group}",(0,l.t)("lock group {group}")),Fe=new C.TranslatedString("unlock group {group}",(0,l.t)("unlock group {group}")),We=new C.TranslatedString("rename group {group} to {newName}",(0,l.t)("rename group {group} to {newName}"));class He{constructor(e){this._lineToolsAffectChartInvalidation=new b.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._environment=e}createGroupFromSelection(){const e=this._environment.model();(0,o.assert)(!e.selection().isEmpty(),"Cannot create group from empty selection");const t=(0,R.sortSources)(e.selection().lineDataSources());(0,o.assert)(t.length===e.selection().allSources().length,"A group could contain line tools only") +;const i=t.length>1||null!==this._environment.model().lineToolsGroupModel().groupForLineTool(t[0]),s=t.reduce((e,t)=>e.zorder()>t.zorder()?e:t,t[0]);let r=s;const n=e.lineToolsGroupModel().groupForLineTool(s);if(null!==n){const e=n.lineTools();r=e[e.length-1]}this._environment.beginUndoMacro(De,this._lineToolsAffectChartInvalidation.value());const a=new Map,l=new Set;t.forEach(t=>{const i=this._groupForLineTool(t);if(null===i)return;const s=a.get(i)||[];s.push(t),a.set(i,s);const r=(0,o.ensureNotNull)(e.paneForSource(t));l.add(r)}),(0,o.assert)(l.size<=1,"All selected sources should be on the same pane"),a.forEach((t,i)=>{const s=new D.ExcludeLineToolsFromGroupUndoCommand(e,i,t);this._environment.pushUndoCommand(s)});const c=new Ie(e,(0,R.sortSources)(t));if(this._environment.pushUndoCommand(c),i){const i=new ee(e,t,r);this._environment.pushUndoCommand(i)}this._environment.endUndoMacro();const h=(0,o.ensureNotNull)(c.createdGroupId());return(0,o.ensureNotNull)(e.lineToolsGroupModel().groupForId(h))}removeGroup(e){const t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(Ve.format({name:e.name()}),this._lineToolsAffectChartInvalidation.value());const s=new Te(t,e,null);this._environment.pushUndoCommand(s);const r=new k.RemoveSourcesCommand(t,i,null);this._environment.pushUndoCommand(r);const n=t.mainSeries().symbol();i.forEach(e=>{null!==e.linkKey().value()&&(0,ke.removeLineTool)({withUndo:!0,model:t,symbol:n,sourceTitle:new C.TranslatedString(e.name(),e.title()),lineToolState:e.state(!1),linkKey:(0,o.ensureNotNull)(e.linkKey().value())})}),this._environment.endUndoMacro()}groups(){return this._environment.model().lineToolsGroupModel().groups()}excludeLineToolFromGroup(e,t){const i=this._environment.model(),s=new D.ExcludeLineToolsFromGroupUndoCommand(i,e,[t]);s.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(s)}addLineToolToGroup(e,t){const i=this._environment.model(),s=i.lineToolsGroupModel().groupForLineTool(t);if(s===e)return;const r=Be.format({lineTool:new C.TranslatedString(t.name(),t.title()),name:e.name()});this._environment.beginUndoMacro(r,this._lineToolsAffectChartInvalidation.value()),null!==s&&this._environment.pushUndoCommand(new D.ExcludeLineToolsFromGroupUndoCommand(i,s,[t])),this._environment.pushUndoCommand(new Le(i,e,[t])),this._environment.endUndoMacro()}bringToFront(e){const t=this._environment.model(),i=new Z(t,e.lineTools());i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendToBack(e){const t=this._environment.model(),i=new J(t,e.lineTools());i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}bringForward(e){const t=this._environment.model(),i=new ce(t,e);i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()), +this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendBackward(e){const t=this._environment.model(),i=new le(t,e);i.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertAfter(e,t){const i=this._environment.model();let s;if(t instanceof Pe.LineToolsGroup){const e=t.lineTools();s=e[e.length-1]}else s=t;const r=new ee(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertBefore(e,t){const i=this._environment.model();let s;if(t instanceof Pe.LineToolsGroup){s=t.lineTools()[0]}else s=t;const r=new ie(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}availableZOrderOperations(e){const t=this._environment.model(),i=e.lineTools(),s=i[0],r=i[i.length-1],n=(0,o.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=n[0],l=n[n.length-1];return{bringForwardEnabled:r!==l,bringToFrontEnabled:r!==l,sendBackwardEnabled:s!==a,sendToBackEnabled:s!==a}}setGroupVisibility(e,t){const i=(t?Ne:Re).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i,this._lineToolsAffectChartInvalidation.value()),e.lineTools().forEach(e=>{const i=e.properties().visible,r=new Ae(i,t,null,s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupLock(e,t){const i=(t?Oe:Fe).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i,this._lineToolsAffectChartInvalidation.value()),e.lineTools().forEach(e=>{const i=e.properties().frozen,r=new Ae(i,t,null,s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupName(e,t){const i=this._environment.model(),s=We.format({group:e.name(),newName:t}),r=new Ee(i,e,t,s);r.setCustomFlag("doesnt_affect_save",this._lineToolsAffectChartInvalidation.value()),this._environment.pushUndoCommand(r)}canBeGroupped(e){const t=this._environment.model();return new Set(e.map(e=>t.paneForSource(e))).size<=1}_groupForLineTool(e){return this._environment.model().lineToolsGroupModel().groups().find(t=>t.containsLineTool(e))||null}}var ze=i(58121),Ue=i(52546),je=i(50669),Ge=i(26161);const qe=new C.TranslatedString("apply study template {template}",(0,l.t)("apply study template {template}"));function Ye(e){for(const t of e.panes)for(const e of t.sources)if((0,je.isMainSeriesState)(e))return e.id;return null}class Ke extends L.UndoCommand{constructor(e,t,i){var s,r;super(qe.format({template:i})),this._newSymbolParams={},this._model=e,this._templateContent=function(e,t){const i=(0,ze.default)({},e),s=(0,o.ensureNotNull)(Ye(i));for(const e of i.panes){e.mainSourceId===s&&(e.mainSourceId=t);for(const i of e.sources)if(i.id===s){i.id=t;const r=e=>{const i=e.indexOf(s);-1!==i&&e.splice(i,1,t)};if(e.leftAxisesState&&e.rightAxisesState?(e.leftAxisesState.forEach(e=>r(e.sources)), +e.rightAxisesState.forEach(e=>r(e.sources))):(r(e.leftAxisSources),r(e.rightAxisSources)),e.overlayPriceScales){const i=e.overlayPriceScales[s];i&&(delete e.overlayPriceScales[s],e.overlayPriceScales[t]=i)}}else i.ownerSource===s&&(i.ownerSource=t)}return i}(t,e.mainSeries().id()),this._initialState=e.studyTemplate(!0,!0,!0);const n=e.mainSeries();t.symbol&&(this._newSymbolParams={symbol:t.symbol,currency:null!==(s=t.currency)&&void 0!==s?s:null,unit:null!==(r=t.unit)&&void 0!==r?r:null}),t.interval&&(this._newSymbolParams.interval=t.interval,this._newSymbolParams.style=(0,me.getChartStyleByResolution)(t.interval,n.style())),this._initialSymbolParams={symbol:n.symbol(),currency:n.currency(),unit:n.unit(),interval:n.interval(),style:n.style()},this._initialState=e.studyTemplate(),this._initialGroupsState=e.lineToolsGroupModel().state()}redo(){this._model.mainSeries().setSymbolParams(this._newSymbolParams);const e=this._merge(this._templateContent).filter(m.isLineTool);this._model.lineToolsGroupModel().removeLineTools(e);const t=this._model.mainSeries().properties();(0,me.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(!0),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){this._model.mainSeries().setSymbolParams(this._initialSymbolParams),this._merge(this._initialState)}_merge(e){const t=e.version||0,i=this._model,s=i.mainSeries();(0,o.assert)(s.id()===Ye(e)),s.priceScale().properties().childs().lockScale.setValue(!1);const r=i.panes(),n=[];for(let e=r.length;e--;){const t=r[e],i=t.containsMainSeries(),s=t.dataSources();for(let e=s.length;e--;){const t=s[e];(!i||(0,w.isStudy)(t)&&t.isRemovedByStudyTemplates())&&n.push(t)}}i.resetDeferredStudies();const a=(0,Ue.closeSourcesSet)(i,n);for(let e=0;ee.zorder-t.zorder);for(let e=0;e-1,a=o?r[e]:i.createPane(e);o&&t<3&&(0,Ge.reorderDataSourcesStateZOrder)(n.sources),a.restoreState(n,!1,t),null!==a.mainDataSource()||i.removePane(a)}return i.syncESD(),s.priceScale().setMode({autoScale:!0}),i.startNotStartedStudies(),i.recalculateAllPanes((0,ve.globalChangeEvent)()),i.fullUpdate(),a}}var $e=i(79680);const Xe=(0,T.getLogger)("Chart.ChartUndoModel"),Ze=new C.TranslatedString("paste drawing",(0,l.t)("paste drawing"));class Je extends L.UndoCommand{constructor(e,t,i,s,r){super(Ze),this._needCopyToOtherCharts=!1,this._sourceState=null,this._model=e,this._clipboardData=t,this._paneIndex=this._model.panes().indexOf(i||(0,o.ensureNotNull)(this._model.paneForSource(this._model.mainSeries()))),this._pasteWithData=!!s,this._keepZIndex=!!r}redo(){const e=this._model.panes()[this._paneIndex],t=(0,o.ensureNotNull)(e.clipboardLineToolOwnerSource(this._clipboardData.source.id));null===this._sourceState&&(this._sourceState=this._getSourceState(t));const i=(0, +o.ensureNotNull)(e.restoreLineTool(this._sourceState,this._pasteWithData,this._keepZIndex));this._clipboardData.centeredOnChart&&i.centerPosition&&i.centerPosition();const s=(0,o.ensureNotNull)(t.priceScale());i.setOwnerSource(t),i.setPriceScale(s),s.addDataSource(i),(0,m.prepareLineToolPropertiesByOwnerSource)(i.properties(),t),i.calcIsActualSymbol(),i.restoreFixedPoint(),i.createServerPoints();const r=(0,$e.isActingAsSymbolSource)(t)||t.metaInfo().is_price_study;this._needCopyToOtherCharts=Boolean(r&&((0,ke.drawOnAllCharts)().value()||i.linkKey().value()&&i.isSynchronizable())),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){if(!this._sourceState)return void Xe.logError("This command was never executed - nothing to undo");const e=this.source();this._clipboardData.centeredOnChart&&(this._clipboardData.centeredOnChart=!1,this._sourceState.points=e.normalizedPoints()),this._model.removeSource(e)}source(){return(0,o.ensureNotNull)(this._model.dataSourceForId((0,o.ensureNotNull)(this._sourceState).id))}needCopyToOtherCharts(){return this._needCopyToOtherCharts}_getSourceState(e){const t=(0,P.clone)(this._clipboardData.source);delete t.state.symbol,null!=t.linkKey&&(t.linkKey=(0,f.randomHash)());const i=(0,o.ensureNotNull)(e.priceScale()),s=this._model,{symbol:r,currencyId:n,unitId:l}=this._clipboardData.source.state,c=(0,o.ensureNotNull)(e.symbolSource());let h=!1;!c.symbolSameAsCurrent(r)||(null!==n?n!==(0,me.symbolCurrency)(c.symbolInfo(),void 0,!0):c.isConvertedToOtherCurrency())||(null!==l?l!==(0,me.symbolUnit)(c.symbolInfo(),this._model.unitConversionEnabled()):c.isConvertedToOtherUnit())||((0,$e.isActingAsSymbolSource)(e)?h=!0:(0,w.isStudy)(e)&&(h=Boolean(e.metaInfo().is_price_study)));const d=e=>{const t=e.x*s.timeScale().width(),r=e.y*i.height()-40;return new a.Point(t,r)},u=(0,o.ensureNotNull)(e.firstValue());if(this._model.id()===this._clipboardData.modelId||!h)for(let e=0;e(0,v.trackEvent)("SOS","Apply SOS","Rebind SOS")),this._chartModel.setShouldBeSavedEvenIfHidden(!0),null!==this._paneState){(0,o.ensureNotNull)(this._chartModel.paneForSource(t)).restoreState(this._paneState,!1,this._chartModel.version()),this._paneState=null}}undo(){const e=(0,o.ensureNotNull)(this._chartModel.dataSourceForId((0,o.ensureNotNull)(this._studyId))),t=(0,o.ensureNotNull)(this._chartModel.paneForSource(e)).state();this._chartModel.removeSource(e)&&(this._paneState=t)}insertedStudy(){return this._chartModel.dataSourceForId((0,o.ensureNotNull)(this._studyId))}}var ut=i(59836),pt=i(88735),_t=i.n(pt),mt=i(79222),gt=i(69746);const ft=new C.TranslatedString("zoom",(0,l.t)("zoom"));class vt extends L.UndoCommand{constructor(e,t,i,s,r,n){super(ft),this._barSpacing=null,this._rightBarsOffset=null,this._leftBarsOffset=null,this._priceMode=null,this._model=e,this._startBar=t,this._endBar=i,this._startPrice=s,this._endPrice=r,this._pane=n}redo(){const e=(0,o.ensureNotNull)(this._model.timeScale().visibleBarsStrictRange());this._leftBarsOffset=e.firstBar()-this._startBar,this._rightBarsOffset=e.lastBar()-this._endBar,this._barSpacing=this._model.timeScale().barSpacing(),this._priceMode=this._pane.defaultPriceScale().mode(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)}undo(){const e=this._model.timeScale(),t=this._pane.defaultPriceScale(),i=(0,o.ensureNotNull)(e.visibleBarsStrictRange());e.setBarSpacing((0,o.ensureNotNull)(this._barSpacing)),e.zoomToBarsRange(i.firstBar()+(0,o.ensureNotNull)(this._leftBarsOffset),i.lastBar()+(0,o.ensureNotNull)(this._rightBarsOffset)),t.setMode((0,o.ensureNotNull)(this._priceMode)),t.recalculatePriceRange((0,o.ensureNotNull)(e.visibleBarsStrictRange())),this._model.recalculateAllPanes((0,ve.viewportChangeEvent)()),this._model.lightUpdate()}}const St=(0,T.getLogger)("Chart.ChartUndoModel"),yt=new C.TranslatedString("zoom",(0,l.t)("zoom"));class bt extends L.UndoCommand{constructor(e,t,i){super(yt),this._baseCmd=e,this._zoomStack=t,this._inOut=i}undo(){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void St.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}else this._baseCmd.redo(),this._zoomStack.push(this._baseCmd)}redo(){if(this._inOut)this._baseCmd.redo(),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void St.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}}}const wt=new C.TranslatedString("stop syncing drawing",(0,l.t)("stop syncing drawing"));class Ct extends L.UndoCommand{constructor(e,t){super(wt), +this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey().value()}redo(){(0,o.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(null)}undo(){(0,o.ensureNotNull)(this._model.dataSourceForId(this._sourceId)).linkKey().setValue(this._linkKey)}}const Pt=new C.TranslatedString("restore defaults",(0,l.t)("restore defaults"));class Tt extends L.UndoCommand{constructor(e,t,i=Pt){super(i),this._chartModel=e,this._defaultProperty=t,this._state=t.state()}redo(){this._chartModel.restoreFactoryDefaults(this._defaultProperty)}undo(){this._defaultProperty.mergeAndFire(this._state),this._chartModel.mainSeries().onChartStyleChanged()}}var xt=i(52418);class It extends Tt{redo(){this._defaultProperty.hasChild("intervalsVisibilities")&&this._defaultProperty.childs().intervalsVisibilities.mergeAndFire(xt.intervalsVisibilitiesDefaults),super.redo()}}class Mt extends It{redo(){super.redo(),this._chartModel.recalcColorStudies(!0)}undo(){super.undo(),this._chartModel.recalcColorStudies(!0)}}var Lt=i(36759),At=i(15840),Et=i(59803);function kt(e){const{visible:t,...i}=e;return i}function Dt(e){const{visible:t,...i}=e;return i}function Vt(e){const{drawWick:t,drawBorder:i,drawBody:s,barColorsOnPrevClose:r,...n}=e;return n}function Bt(e){const{drawWick:t,drawBorder:i,drawBody:s,...r}=e;return r}function Nt(e){const{drawWick:t,drawBorder:i,drawBody:s,showRealLastPrice:r,inputs:n,...o}=e;return o}function Rt(e){const{barColorsOnPrevClose:t,dontDrawOpen:i,thinBars:s,...r}=e;return r}function Ot(e){const{showBorders:t,showLabels:i,fontSize:s,drawBody:r,...n}=e;return n}function Ft(e){const{linestyle:t,linewidth:i,styleType:s,priceSource:r,...n}=e;return n}function Wt(e){const{linestyle:t,linewidth:i,priceSource:s,...r}=e;return r}function Ht(e){const{inputs:t,...i}=e;return i}function zt(e){const{inputs:t,...i}=e;return i}function Ut(e){const{inputs:t,...i}=e;return i}function jt(e){const{inputs:t,...i}=e;return i}function Gt(e){const{topLineWidth:t,bottomLineWidth:i,baseLevelPercentage:s,priceSource:r,...n}=e;return n}function qt(e){const{thinBars:t,inputs:i,...s}=e;return s}function Yt(e){const{visible:t,style:i,symbol:s,interval:r,sessionId:n,highLowAvgPrice:o,showCountdown:a,bidAsk:l,prePostMarket:c,priceAxisProperties:h,candleStyle:d,hollowCandleStyle:u,haStyle:p,barStyle:_,hiloStyle:m,lineStyle:g,areaStyle:f,renkoStyle:v,pbStyle:S,kagiStyle:y,pnfStyle:b,baselineStyle:w,rangeStyle:C,...P}=e;return{bidAsk:kt(l),prePostMarket:Dt(c),candleStyle:Vt(d),hollowCandleStyle:Bt(u),haStyle:Nt(p),barStyle:Rt(_),hiloStyle:Ot(m),lineStyle:Ft(g),areaStyle:Wt(f),renkoStyle:Ht(v),pbStyle:zt(S),kagiStyle:Ut(y),pnfStyle:jt(b),baselineStyle:Gt(w),rangeStyle:qt(C),...P}}function Kt(e){const{scaleSeriesOnly:t,showSeriesLastValue:i,showStudyLastValue:s,showSymbolLabels:r,showBidAskLabels:n,showPrePostMarketPriceLabel:o,showStudyPlotLabels:a,showFundamentalNameLabel:l,showFundamentalLastValue:c,seriesLastValueMode:h,...d}=e;return d}function $t(e){const{topMargin:t,bottomMargin:i,...s}=e;return s} +const Xt=new C.TranslatedString("apply chart theme",(0,l.t)("apply chart theme"));class Zt extends L.UndoCommand{constructor(e,t,i){var s,r,n;super(Xt),this._model=e,this._newSessionProps=t.sessions||(0,Et.factoryDefaults)("sessions"),["candleStyle","hollowCandleStyle","haStyle"].forEach(e=>{t.mainSourceProperties[e].wickUpColor=t.mainSourceProperties[e].wickUpColor||t.mainSourceProperties[e].wickColor,t.mainSourceProperties[e].wickDownColor=t.mainSourceProperties[e].wickDownColor||t.mainSourceProperties[e].wickColor}),t.chartProperties=null!==(s=t.chartProperties)&&void 0!==s?s:{paneProperties:void 0,scalesProperties:void 0},t.chartProperties.paneProperties.vertGridProperties=null!==(r=t.chartProperties.paneProperties.vertGridProperties)&&void 0!==r?r:t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.horzGridProperties=null!==(n=t.chartProperties.paneProperties.horzGridProperties)&&void 0!==n?n:t.chartProperties.paneProperties.gridProperties;const o=this._model.properties().state().paneProperties.legendProperties;delete o.backgroundTransparency,t.chartProperties.paneProperties.legendProperties={...t.chartProperties.paneProperties.legendProperties,...o};const a=(0,Et.factoryDefaults)("chartproperties"),l=(0,At.deepExtend)({},a,t.chartProperties);this._newChartProps={paneProperties:$t(l.paneProperties),scalesProperties:Kt(l.scalesProperties)},e.timeScale().preserveBarSpacing()&&delete this._newChartProps.scalesProperties.barSpacing;const c=(0,Et.factoryDefaults)("chartproperties.mainSeriesProperties"),h=(0,At.deepExtend)({},c,t.mainSourceProperties);this._newSeriesProps=i?h:Yt(h);const d=e.properties().state();this._oldChartProps={paneProperties:$t(d.paneProperties),scalesProperties:Kt(d.scalesProperties)};const u=e.mainSeries().properties().state();this._oldSeriesProps=i?u:Yt(u),this._oldSessionProps=this._model.sessions().properties().state()}undo(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}redo(){this._merge(this._newChartProps,this._newSeriesProps,this._newSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()}_merge(e,t,i){var s,r,n,o;const a=this._model;(0,_e.saveDefaultProperties)(!0),e&&(a.properties().childs().paneProperties.mergeAndFire(e.paneProperties),a.properties().childs().scalesProperties.mergeAndFire(e.scalesProperties)),"priceAxisProperties"in t&&a.mainSeries().priceScale().setMode({autoScale:null===(s=t.priceAxisProperties)||void 0===s?void 0:s.autoScale,percentage:null===(r=t.priceAxisProperties)||void 0===r?void 0:r.percentage,log:null===(n=t.priceAxisProperties)||void 0===n?void 0:n.log,lockScale:null===(o=t.priceAxisProperties)||void 0===o?void 0:o.lockScale}),a.mainSeries().properties().mergeAndFire(t),a.mainSeries().properties().saveDefaults(),a.mainSeries().createPaneView(),a.mainSeries().invalidateBarStylesCache(),a.recalculateAllPanes((0, +ve.globalChangeEvent)()),a.fullUpdate(),a.properties().saveDefaults(),a.sessions().restoreState({properties:i},!1),(0,_e.saveDefaultProperties)(!1)}}const Jt=new C.TranslatedString("change resolution",(0,l.t)("change resolution"));class Qt extends L.UndoCommand{constructor(e,t,i){let s;super(Jt),this._sourceId=e.id();const r=(0,me.isRangeStyle)(e.style()),n=be.Interval.isRange(t);!r&&n?s=11:r&&!n&&(s=(0,me.getLastUsedStyle)()),this._newSymbolParams={interval:t,style:s},this._prevSymbolParams={symbol:e.symbol(),currency:e.currency(),unit:e.unit(),interval:e.interval(),style:e.style()},this._chartWidget=i}redo(){this._chartWidget.screen.show();this._symbolSource().setSymbolParams(this._newSymbolParams)}undo(){this._chartWidget.screen.show();this._symbolSource().setSymbolParams(this._prevSymbolParams)}_symbolSource(){return(0,o.ensureNotNull)(this._chartWidget.model().model().dataSourceForId(this._sourceId))}}var ei=i(76422);const ti=new C.TranslatedString("send {title} backward",(0,l.t)("send {title} backward")),ii=new C.TranslatedString("bring {title} forward",(0,l.t)("bring {title} forward")),si=new C.TranslatedString("insert {title} after {target}",(0,l.t)("insert {title} after {target}")),ri=new C.TranslatedString("insert {title} before {target}",(0,l.t)("insert {title} before {target}")),ni=new C.TranslatedString("cut {title}",(0,l.t)("cut {title}")),oi=new C.TranslatedString("cut sources",(0,l.t)("cut sources")),ai=new C.TranslatedString("remove {title}",(0,l.t)("remove {title}")),li=new C.TranslatedString("remove drawings group",(0,l.t)("remove drawings group")),ci=new C.TranslatedString("move scale",(0,l.t)("move scale")),hi=new C.TranslatedString("stop syncing line tool(s)",(0,l.t)("stop syncing line tool(s)")),di=new C.TranslatedString("zoom out",(0,l.t)("zoom out")),ui=new C.TranslatedString("zoom in",(0,l.t)("zoom in")),pi=new C.TranslatedString("move drawing(s)",(0,l.t)("move drawing(s)")),_i=new C.TranslatedString("load default drawing template",(0,l.t)("load default drawing template")),mi=new C.TranslatedString("change currency",(0,l.t)("change currency")),gi=new C.TranslatedString("change unit",(0,l.t)("change unit")),fi=new C.TranslatedString("clone line tools",(0,l.t)("clone line tools")),vi=new C.TranslatedString("merge up",(0,l.t)("merge up")),Si=new C.TranslatedString("merge down",(0,l.t)("merge down")),yi=new C.TranslatedString("merge to pane",(0,l.t)("merge to pane")),bi=new C.TranslatedString("unmerge up",(0,l.t)("unmerge up")),wi=new C.TranslatedString("unmerge down",(0,l.t)("unmerge down")),Ci=new C.TranslatedString("unmerge to new bottom pane",(0,l.t)("unmerge to new bottom pane")),Pi=new C.TranslatedString("move {title} to new right scale",(0,l.t)("move {title} to new right scale")),Ti=new C.TranslatedString("move {title} to new left scale",(0,l.t)("move {title} to new left scale")),xi=new C.TranslatedString("make {title} no scale (Full screen)",(0,l.t)("make {title} no scale (Full screen)")),Ii=new C.TranslatedString("scroll time",(0, +l.t)("scroll time")),Mi=new C.TranslatedString("scale time",(0,l.t)("scale time")),Li=new C.TranslatedString("reset time scale",(0,l.t)("reset time scale")),Ai=new C.TranslatedString("reset scales",(0,l.t)("reset scales")),Ei=new C.TranslatedString("create {tool}",(0,l.t)("create {tool}")),ki=new C.TranslatedString("change {pointIndex} point",(0,l.t)("change {pointIndex} point")),Di=new C.TranslatedString("paste {title}",(0,l.t)("paste {title}")),Vi=new C.TranslatedString("insert {title}",(0,l.t)("insert {title}")),Bi=new C.TranslatedString("remove all studies",(0,l.t)("remove all studies")),Ni=new C.TranslatedString("remove drawings",(0,l.t)("remove drawings")),Ri=new C.TranslatedString("remove all studies and drawing tools",(0,l.t)("remove all studies and drawing tools"));new C.TranslatedString("turn line tools sharing off",(0,l.t)("turn line tools sharing off")),new C.TranslatedString("share line tools in layout",(0,l.t)("share line tools in layout")),new C.TranslatedString("share line tools globally",(0,l.t)("share line tools globally"));function Oi(e,t){return{bringForwardEnabled:e.bringForwardEnabled||t.bringForwardEnabled,bringToFrontEnabled:e.bringToFrontEnabled||t.bringToFrontEnabled,sendBackwardEnabled:e.sendBackwardEnabled||t.sendBackwardEnabled,sendToBackEnabled:e.sendToBackEnabled||t.sendToBackEnabled}}function Fi(e){return new C.TranslatedString(e.name(),e.title())}function Wi(){return(0,ke.drawOnAllCharts)().value()?1:0}class Hi extends(r()){constructor(e,t,i,s,r,n,o,a,l,c,h){super(),this._createLineCommand=null,this._initialTimeScrollState=null,this._initialTimeScrollPos=null,this._scalePriceInfo=null,this._currentSourceMoveCommand=null,this._currentLineChangeCommand=null,this._currentCustomMoveCommand=null,this._zoomStack=new p.UndoStack,this._lineToolsDoNotAffectChartInvalidation=new b.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._chartWidget=n,this.m_model=new(_t())(e,t,i,s,r,this,a,l,c,h),this._undoHistory=o,this._lineToolsGroupController=new He({model:this._model.bind(this),pushUndoCommand:this._pushUndoCommand.bind(this),beginUndoMacro:(e,t)=>{this._undoHistory.beginUndoMacro(e).setCustomFlag("doesnt_affect_save",!!t)},endUndoMacro:this._undoHistory.endUndoMacro.bind(this._undoHistory),emitEvent:this.emitEvent.bind(this)})}undoHistory(){return this._undoHistory}setWatchedValue(e,t,i){this._undoHistory.setWatchedValue(e,t,i)}lineToolsGroupController(){return this._lineToolsGroupController}mergeAllScales(e){!function(e,t){e.beginUndoMacro("left"===t?x:I),e.model().panes().forEach(i=>{const s="left"===t?i.rightPriceScales():i.leftPriceScales(),r=("left"===t?i.leftPriceScales():i.rightPriceScales()).concat(s),n="overlay"===i.priceScalePosition(i.defaultPriceScale())?r[0]:i.defaultPriceScale();e.movePriceScale(i,n,t,0),r.forEach(t=>{if(t===n)return;let s=t.mainSource();for(;null!==s;){e.moveToScale(s,i,n,null,!0);const r=t.mainSource();if(r===s){M.logError("Loop detected while trying to merge scales");break}s=r}})}),e.endUndoMacro(),e.model().fullUpdate() +}(this,e)}movePriceScale(e,t,i,s){const r=new A(this._model(),e,t,i,s,ci);this._pushUndoCommand(r)}createLineTool({pane:e,point:t,linetool:i,properties:s,linkKey:r,ownerSource:n,disableSynchronization:a,sharingMode:l=Wi(),id:c}){if(("LineToolRegressionTrend"===i||"LineToolAnchoredVWAP"===i)&&!this.canCreateStudy())return(0,h.showTooManyStudiesNotice)(),null;const d=Ei.format({tool:new C.TranslatedString(i,O.lineToolsLocalizedNames[i])});this.beginUndoMacro(d,this._lineToolsDoNotAffectChartInvalidation.value());const u=!a;this._createLineCommand=new W(this._model(),e,i,n||(0,o.ensureNotNull)(e.mainDataSource()),l,c);const p=this._createLineCommand.startCreatingLine(t,s,r||null),_=(0,o.ensureNotNull)(this._createLineCommand.line());let m=null;if(p&&(u&&this.finishLineTool(_),this._pushUndoCommand(this._createLineCommand),this._createLineCommand=null,m={points:_.normalizedPoints(),interval:this.mainSeries().interval()}),u&&void 0===r&&(0,ke.drawOnAllCharts)().value()&&_.isSynchronizable()){const e=(0,o.ensureNotNull)(this.model().externalTimeStamp(t.index)),s={point:{price:t.price,timeStamp:e},linetool:i,properties:_.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:(0,o.ensureNotNull)(_.linkKey().value()),finalState:m,id:_.id()};_.isFixed()&&(s.pointPositionPercents=_.calcPositionPercents()),(0,ke.createLineTool)(s)}return this.endUndoMacro(),_}continueCreatingLine(e,t,i,s){const r=(0,o.ensureNotNull)(this._createLineCommand);this.beginUndoMacro(r.text(),this._lineToolsDoNotAffectChartInvalidation.value());const n=(0,o.ensureNotNull)(this._model().lineBeingCreated()),a=r.continueCreatingLine(e,t,i,s);let l=null;if(a&&(this.finishLineTool(n),this._pushUndoCommand(r),this._createLineCommand=null,l={points:n.normalizedPoints(),interval:this.mainSeries().interval()}),r.drawOnAllCharts()&&n.isSynchronizable()){const i=(0,o.ensureNotNull)(this._model().externalTimeStamp(e.index));(0,ke.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a}continueExternalLine(e,t,i){const s=(0,o.ensureNotNull)(this._createLineCommand),r=s.continueCreatingLine(e,t,i);return r&&(this._pushUndoCommand(s),this._createLineCommand=null),r}finishLineTool(e){this._model().finishLineTool(e)}pasteImageAsLineTool(e,t,i,s){return null}loadRange(e){this._pushUndoCommand(new Ce(this._model(),e))}unlinkLines(e){const t=this.model();this.beginUndoMacro(hi,this._lineToolsDoNotAffectChartInvalidation.value());for(const i of e)null!==i.linkKey().value()&&(0,ke.removeLineTool)({withUndo:!0,model:this.model(),symbol:i.symbol(),linkKey:(0,o.ensureNotNull)(i.linkKey().value()),sourceTitle:Fi(i),lineToolState:i.state(!1),unlink:!0}),this._pushUndoCommand(new Ct(t,i));this.endUndoMacro()}zoomFromViewport(){const e=new bt((0,o.ensureDefined)(this._zoomStack.head()),this._zoomStack,!1);this._pushUndoCommand(e)}zoomToViewport(e,t,i,s,r){const n=new vt(this.m_model,e,t,i,s,r),o=new bt(n,this._zoomStack,!0);this._pushUndoCommand(o)}zoomStack(){return this._zoomStack} +hoveredSource(){return this.m_model.hoveredSource()}setProperty(e,t,i,s){if(e&&e.value()!==t){const r=new Ae(e,t,i,this.m_model,s);this._pushUndoCommand(r),this.emitEvent("setProperty")}}withMacro(e,t,i){const s=this.beginUndoMacro(e,i);try{t()}finally{this.endUndoMacro()}return s}barsMarksSources(){return this.m_model.barsMarksSources()}barMarksSourceForId(e){return this.m_model.barMarksSourceForId(e)}removeAllDrawingTools(){this.beginUndoMacro(Ni,!0),this._removeAllDrawingToolsImpl(),this.endUndoMacro()}removeAllStudiesAndDrawingTools(){this.beginUndoMacro(Ri),this._removeAllDrawingToolsImpl(),this._removeAllStudiesImpl(),this.endUndoMacro()}removeAllStudies(){this.beginUndoMacro(Bi),this._removeAllStudiesImpl(),this.endUndoMacro()}canZoomIn(){return this.model().canZoomIn()}canZoomOut(){return this.model().canZoomOut()}zoomOut(){const e=this.timeScale().width();if(this.canZoomOut()){try{this.beginUndoMacro(di)}catch(e){return}(0,g.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(0),this.scaleTimeTo(e),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}zoomIn(){const e=this.timeScale().width();if(this.canZoomIn()){try{this.beginUndoMacro(ui)}catch(e){return}(0,g.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(e),this.scaleTimeTo(0),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}startMovingSources(e,t,i,s){e.filter(e=>e.doesMovingAffectsUndo()).length&&(this._currentSourceMoveCommand=new V(this.model(),e,pi,!1),e.every(m.isLineTool)&&this._currentSourceMoveCommand.setCustomFlag("doesnt_affect_save",this._lineToolsDoNotAffectChartInvalidation.value())),this.model().startMovingSources(e,t,i,new Map,s)}moveSources(e,t){this.model().moveSources(e,new Map,t)}endMovingSource(e,t){this.model().endMovingSources(e,void 0,t),null!==this._currentSourceMoveCommand&&(this._currentSourceMoveCommand.saveNewState(),this._pushUndoCommand(this._currentSourceMoveCommand)),this._currentSourceMoveCommand=null}startChangingLinetool(e,t,i,s,r){this._currentLineChangeCommand=new V(this.model(),[e],ki.format({pointIndex:i}),!1),this._currentLineChangeCommand.setCustomFlag("doesnt_affect_save",this._lineToolsDoNotAffectChartInvalidation.value()),this.model().startChangingLinetool(e,t,i,s,r)}changeLinePoint(e,t){this.model().changeLinePoint(e,t)}endChangingLinetool(e){this.model().endChangingLinetool(e),null!==this._currentLineChangeCommand&&(this._currentLineChangeCommand.saveNewState(),this._pushUndoCommand(this._currentLineChangeCommand)),this._currentLineChangeCommand=null}setChartStyleProperty(e,t,i){if(e.value()!==t){const s=new Se(e,t,this.mainSeries(),i,this.model(),this.chartWidget());this._pushUndoCommand(s),this.emitEvent("setChartStyleProperty"),(0,pe.trackChartStyleChanged)(e.value())}}restorePropertiesForSource(e){(0,m.isLineTool)(e)?this._restoreLineToolFactoryDefaults(e):this._restoreStudyFactoryDefaults(e)}restoreState(e,t,i){return this.m_model.restoreState(e,t,i)}async clipboardCopy(e,t=this.selection().dataSources()){if(!(0,y.enabled)("datasource_copypaste"))return;const i=t.filter(e=>e.copiable()) +;if(0===i.length)return;for(const e of i)if((0,w.isStudy)(e)&&e.isChildStudy())throw new Error("Can not copy child study");const s=(0,_.clipboardDataForSources)(this._model().id(),i);return null!==s?e.write({app:JSON.stringify(s),text:s.title}):void 0}async clipboardCut(e,t=this.selection().dataSources()){if(!(0,y.enabled)("datasource_copypaste"))return;const i=t.filter(e=>e.copiable());if(0===i.length)return;await this.clipboardCopy(e,i);const s=i.filter(e=>e.isUserDeletable());if(0===s.length)return;const r=(1===s.length?ni:oi).format({title:Fi(s[0])});this.beginUndoMacro(r),this.m_model.selectionMacro(()=>{this.removeSources(s,!1,r)}),this.endUndoMacro()}async clipboardPaste(e,t){let i=null;if((0,y.enabled)("datasource_copypaste")&&(i=i||await e.read(),i.app)){const e=JSON.parse(i.app);if(null!==this.pasteSourceFromClip(t,e))return}await this._processSpecialLineToolsContents(e,i,t)}applyStudyTemplate(e,t){const i=new Ke(this._model(),e,t);this._pushUndoCommand(i)}startCustomMoving(e,t,i){this._currentCustomMoveCommand=new ht(this.model(),e,t,i)}customMoveBeingProcessed(){return null!==this._currentCustomMoveCommand}processCustomMove(e){(0,o.ensureNotNull)(this._currentCustomMoveCommand).move(e)}endCustomMoving(){null!==this._currentCustomMoveCommand&&this._currentCustomMoveCommand.hasChanges()&&(this._pushUndoCommand(this._currentCustomMoveCommand),this._currentCustomMoveCommand=null)}cloneLineTools(e,t){for(let t=0;t(0,o.ensureNotNull)(this.model().dataSourceForId(e)));this.copyToOtherCharts(e)}return this.endUndoMacro(),this.emitEvent("cloneLineTools"),i.newIds()}removeSource(e,t,i){this.lineBeingCreated()!==e?this.removeSources([e],t,ai.format({title:Fi(e)}),i):this.cancelCreatingLine()}removeSelectedSources(){const e=this._model().selection().dataSources();if(!e.length)return;const t=(e.length>1?li:ai).format({title:Fi(e[0])});this.removeSources(e,!1,t)}removeSources(e,t,i,s){s||(e=e.filter(e=>e.isUserDeletable()));const r=this._model(),n=r.lineToolsGroupModel(),a=e.every(m.isLineTool)&&this._lineToolsDoNotAffectChartInvalidation.value();this.beginUndoMacro(i,a),r.selectionMacro(s=>{const a=new Map;e.forEach(e=>{if((0,m.isLineTool)(e)){const t=n.groupForLineTool(e);if(null!==t){const i=a.get(t)||[];i.push(e),a.set(t,i)}null!==e.linkKey().value()&&(0,ke.removeLineTool)({withUndo:!0,model:this.model(),linkKey:(0,o.ensureNotNull)(e.linkKey().value()),symbol:this.model().mainSeries().symbol(),lineToolState:e.state(!1),sourceTitle:Fi(e)})}}),a.forEach((e,t)=>{const i=new D.ExcludeLineToolsFromGroupUndoCommand(r,t,e);this._pushUndoCommand(i)});const l=new k.RemoveSourcesCommand(r,e,i),c=l.removedIds();this._pushUndoCommand(l),!t&&c.length>0&&(1===c.length?this.emitEvent("removeSource",[c[0]]):this.emitEvent("removeSources",[c]))}),this.endUndoMacro()} +removeUnloadedLineTool({lineToolsSynchronizer:e,sourceTitle:t,linkKey:i,symbol:s,state:r,withUndo:n,unlink:o}){}async scrollToLineTool(e){const t=this.timeScale().logicalRange();if(null===t)return;const i=this.timeScale().barSpacing();let s=t.left();const r=e.points().map(e=>e.index);let n=this.timeScale().points().firstIndex();const a=this.timeScale().points().lastIndex();if(null===n||null===a)return;const l=t.length()/2;if(0===r.length||r.some(e=>t.contains(e)))return;const h=()=>{const t=e.points().map(e=>e.index),i=t.filter(e=>e<=a).reduce((e,t)=>null===e?t:Math.max(e,t),null);return null!==i?i:t.reduce((e,t)=>Math.min(e,t))};let d,u=h();if(n-l>u){const t=e.points().map(e=>e.time).filter(P.notUndefined).map(e=>e.valueOf()/1e3);if(0===t.length)return;const i=t.reduce((e,t)=>Math.min(e,t),t[0]);await this.model().gotoTime(i),u=h();s=(0,o.ensureNotNull)(this.timeScale().logicalRange()).left(),n=(0,o.ensureNotNull)(this.timeScale().points().firstIndex())}n-l>u?(d=(s-n+l)*i,this.mainSeries().setGotoDateResult({timestamp:(0,o.ensureNotNull)(this.timeScale().points().valueAt(n)),eod:!0})):d=(s-u+1+l)*i,this.startScrollTime(0),(0,g.doAnimate)({onStep:(e,t)=>this.scrollTimeTo(t),from:0,to:Math.round(d),easing:c.easingFunc.easeInOutCubic,duration:c.dur,onComplete:()=>this.endScrollTime()})}mergeSourceUp(e){const t=new N.MergeUpUndoCommand(this._model(),e,vi);this._mergeUnmergeSource(e,t)}mergeSourceDown(e){const t=new N.MergeDownUndoCommand(this._model(),e,Si);this._mergeUnmergeSource(e,t)}mergeToPane(e,t){const i=this._model().panes().indexOf(t),s=new N.MergeToTargetPane(this._model(),e,i,yi);this._mergeUnmergeSource(e,s)}unmergeSourceUp(e){const t=new B.UnmergeUpUndoCommand(this._model(),e,bi);this._mergeUnmergeSource(e,t)}unmergeSourceDown(e){const t=new B.UnmergeDownUndoCommand(this._model(),e,wi);this._mergeUnmergeSource(e,t)}unmergeToNewBottomPane(e){const t=new B.UnmergeToNewBottomPane(this._model(),e,Ci);this._mergeUnmergeSource(e,t)}availableZOrderOperations(e){const t=this._model().lineToolsGroupModel(),i=e.filter(m.isLineTool),s=i.map(e=>t.groupForLineTool(e));(0,o.assert)(new Set(s).size<=1,"Cannot move line tools from different group");const r=0===s.length?null:s[0];let n={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1};const a=new Set(i);for(const t of(0,R.sortSources)(e)){if((0,m.isLineTool)(t)&&null!==r){const e=(0,R.sortSources)(r.lineTools().filter(e=>!a.has(e)||e===t));n=Oi(n,{bringForwardEnabled:t!==e[e.length-1],bringToFrontEnabled:t!==e[e.length-1],sendBackwardEnabled:t!==e[0],sendToBackEnabled:t!==e[0]});continue}const e=(0,o.ensureNotNull)(this._model().paneForSource(t)).sourcesByGroup().allExceptSpecialSources();if(0===e.length)continue;const i=t.zorder(),s=e[0].zorder(),l=e[e.length-1].zorder();n=Oi(n,{bringForwardEnabled:i!==l,bringToFrontEnabled:i!==l,sendBackwardEnabled:i!==s,sendToBackEnabled:i!==s})}return n}sendToBack(e){if(!this.availableZOrderOperations(e).sendToBackEnabled)throw new Error("Send to back operation is unavailable");let t=null +;const i=e[0];if((0,m.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new ie(this.model(),(0,R.sortSources)(e),i[0])}}null===t&&(t=new J(this.model(),(0,R.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}bringToFront(e){if(!this.availableZOrderOperations(e).bringToFrontEnabled)throw new Error("Bring to front operation is unavailable");let t=null;const i=e[0];if((0,m.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new ee(this.model(),(0,R.sortSources)(e),i[i.length-1])}}null===t&&(t=new Z(this.model(),(0,R.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}sendBackward(e){if(!this.availableZOrderOperations(e).sendBackwardEnabled)throw new Error("Send backward operation is unavailable");const t=ti.format({title:Fi(e[0])});this._sendBackOrBringForward(t,(0,R.sortSources)(e),(e,t)=>new re(this.model(),e,t))}bringForward(e){if(!this.availableZOrderOperations(e).bringForwardEnabled)throw new Error("Bring forward operation is unavailable");const t=ii.format({title:Fi(e[0])});this._sendBackOrBringForward(t,(0,R.sortSources)(e),(e,t)=>new oe(this.model(),e,t))}insertAfter(e,t){e=(0,R.sortSources)(e);const i=si.format({title:Fi(e[0]),target:Fi(t)});this._insertAfterOrBefore(i,e,t,()=>new ee(this.model(),e,t))}insertBefore(e,t){e=(0,R.sortSources)(e);const i=ri.format({title:Fi(e[0]),target:Fi(t)});this._insertAfterOrBefore(i,e,t,()=>new ie(this.model(),e,t))}detachToRight(e,t){(0,v.trackEvent)("Chart","Move to new right scale");const i=Pi.format({title:Fi(e)}),s=new tt.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"right",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachToLeft(e,t){(0,v.trackEvent)("Chart","Move to new left scale");const i=Ti.format({title:Fi(e)}),s=new tt.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"left",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachNoScale(e,t){(0,v.trackEvent)("Chart","Make source no scale");const i=xi.format({title:Fi(e)}),s=new tt.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"overlay",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}moveToScale(e,t,i,s,r){(0,v.trackEvent)("Chart","Move source to target scale"),this.beginUndoMacro(s);const n=new tt.MoveToExistingPriceScaleUndoCommand(this.model(),e,t,i,s),o=r?null:(0,S.sourceNewCurrencyOnPinningToPriceScale)(e,i,this._model()),a=r?null:(0,mt.sourceNewUnitOnPinningToPriceScale)(e,i,this._model());this._pushUndoCommand(n),null!==o&&this.setPriceScaleCurrency(i,o),null!==a&&this.setPriceScaleUnit(i,a),this.endUndoMacro(),this.emitEvent("moveSource",[e])}startScrollTime(e){const t=this.timeScale();this._initialTimeScrollState={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()},this._initialTimeScrollPos=e,this.model().startScrollTime(e)}scrollTimeTo(e){let t=!1 +;return null!==this._initialTimeScrollPos&&null!==this._initialTimeScrollState&&Math.abs(e-this._initialTimeScrollPos)>20&&(this._pushUndoCommand(new ue.TimeScaleChangeUndoCommand(this.model(),this._initialTimeScrollState,Ii)),this._initialTimeScrollPos=null,this._initialTimeScrollState=null,t=!0),this.model().scrollTimeTo(e),t}endScrollTime(){this.model().endScrollTime(),this._initialTimeScrollPos=null,this._initialTimeScrollState=null}startScaleTime(e){const t=this.timeScale(),i={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()};this._pushUndoCommand(new ue.TimeScaleChangeUndoCommand(this.model(),i,Mi)),this.model().startScaleTime(e)}scaleTimeTo(e){this.model().scaleTimeTo(e)}endScaleTime(){this.model().endScaleTime()}resetTimeScale(){const e=this.timeScale(),t={rightOffset:e.rightOffset(),barSpacing:e.barSpacing()};this._pushUndoCommand(new ue.TimeScaleChangeUndoCommand(this.model(),t,Li)),this.model().resetTimeScale()}startScalePrice(e,t,i,s){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:s},this.model().startScalePrice(e,t,i)}scalePriceTo(e,t,i){this.model().scalePriceTo(e,t,i)}endScalePrice(e,t){this.model().endScalePrice(e,t);const i=(0,o.ensureNotNull)(this._scalePriceInfo);(0,n.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new gt.PriceScaleChangeUndoCommand(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}startTwoPointsScalePrice(e,t,i,s,r){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:r},this.model().startTwoPointsScalePrice(e,t,i,s)}twoPointsScalePriceTo(e,t,i,s){this.model().twoPointsScalePriceTo(e,t,i,s)}endTwoPointsScalePrice(e,t){this.model().endTwoPointsScalePrice(e,t);const i=(0,o.ensureNotNull)(this._scalePriceInfo);(0,n.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new gt.PriceScaleChangeUndoCommand(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}resetPriceScale(e,t){const i=t.state();this.model().resetPriceScale(e,t),(0,n.default)(i,t.state())||this._pushUndoCommand(new gt.PriceScaleChangeUndoCommand(this.m_model,e,t,i))}rearrangePanes(e,t){const i=new de(this._model(),e,t);this._pushUndoCommand(i)}movePane(e,t){const i=new de(this._model(),e,t);this._pushUndoCommand(i)}pasteSourceFromClip(e,t,i){const s=t;if(!s||0===s.sources.length)return null;const r=e||(0,o.ensureNotNull)(this.model().paneForSource(this.mainSeries()));if(!s.sources.some(e=>"drawing"!==e.type||null!==r.clipboardLineToolOwnerSource(e.source.id)))return null;this.beginUndoMacro(Di.format({title:s.title}));let n=0;const a=[],l=[];for(const t of s.sources)if("drawing"===t.type&&null!==r.clipboardLineToolOwnerSource(t.source.id)){const e=this.pasteLineTool(r,t);n<5&&((0,pe.trackDrawingPasted)(e),n+=1),l.push(e),a.push(e)}else"study"===t.type&&t.source&&t.source.metaInfo&&this.checkIfFeatureAvailable(new(u())(t.source.metaInfo))&&a.push(this.pasteStudy(t,i?e:void 0));return l.length&&this.selectionMacro(e=>{e.clearSelection(),l.forEach(t=>{ +e.addSourceToSelection(t,null)})}),this.endUndoMacro(),a}pasteLineTool(e,t,i,s){t.source.state.intervalsVisibilities=(0,Lt.mergeIntervalVisibilitiesDefaults)(t.source.state.intervalsVisibilities),(0,Lt.makeIntervalsVisibilitiesVisibleAtInterval)(t.source.state.intervalsVisibilities,be.Interval.parse(this.model().mainSeries().interval()));const r=new Je(this.model(),t,e,i,s);this._pushUndoCommand(r);const n=r.source();return r.needCopyToOtherCharts()&&this.copyToOtherCharts([n]),this.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(n,null)}),n}pasteStudy(e,t){const i=new ot(this.model(),e,null==t?void 0:t.id());this._pushUndoCommand(i);const s=(0,o.ensureNotNull)(i.state()).id;return(0,ei.emit)("study_event",s,"paste_study"),(0,o.ensureNotNull)(this._model().dataSourceForId(s))}setPriceScaleCurrency(e,t){const i=new Qe.SetPriceScaleCurrencyUndoCommand(e,t,this.chartWidget(),mi);this._pushUndoCommand(i)}setPriceScaleUnit(e,t){const i=new et.SetPriceScaleUnitUndoCommand(e,t,this.chartWidget(),gi);this._pushUndoCommand(i)}setSymbol(e,t){e.symbol()!==t&&this._pushUndoCommand(new st(e,t,this.chartWidget()))}setResolution(e,t){be.Interval.isEqual(e.interval(),t)||this._pushUndoCommand(new Qt(e,t,this.chartWidget()))}chartLoadTheme(e,t,i){const s=new Zt(this.model(),e,t);i?s.redo():this._pushUndoCommand(s)}isJustClonedChart(){return this._chartWidget.isJustClonedChart()}copyToOtherCharts(e){const t=this.mainSeries(),i=t.syncModel(),s=this.timeScale();if(i)for(const r of e){if(!r.isSynchronizable())continue;const e=r.linkKey().value()||(0,f.randomHash)();r.linkKey().setValue(e);const n=r.state(!1),a=r.normalizedPoints(),l=r.properties().interval.value(),c=t.interval();let h;if(be.Interval.isEqual(l,c))h=a.map(e=>{const t=(0,o.ensureNotNull)(s.timePointToIndex(e.time_t))+e.offset;return{price:e.price,timeStamp:(0,o.ensureNotNull)(this.model().externalTimeStamp(t))}});else{const e=i.createNewModelWithResolution(l);h=a.map(t=>({price:t.price,timeStamp:0===t.offset?t.time_t:e.projectTime(t.time_t,t.offset)}))}const d={...n,id:r.id(),linkKey:e,points:h,linetool:r.toolname,model:this.model(),symbol:t.symbol(),finalState:{points:a,interval:l},pointPositionPercents:r.isFixed()?r.calcPositionPercents():void 0,sharingMode:r.sharingMode().value()};(0,ke.copyLineTool)(d)}}addPaneStretchFactorUndoCommand(e,t,i,s){const r=new at(this.model(),e,t,i,s);this._pushUndoCommand(r)}paneForSource(e){return this.m_model.paneForSource(e)}destroy(){this._lineToolsDoNotAffectChartInvalidation.destroy(),this.m_model.destroy()}moveSelectedToolsLeft(){return this._moveSelectedTools(2)}moveSelectedToolsUp(){return this._moveSelectedTools(0)}moveSelectedToolsRight(){return this._moveSelectedTools(3)}moveSelectedToolsDown(){return this._moveSelectedTools(1)}insertStudyWithoutCheck(e,t){return this._insertStudy(e,t,{},!1,void 0,void 0,void 0,void 0,void 0,null,void 0)}saveLineToolState(e,t){this._pushUndoCommand(new V(this.m_model,[e],t))}resetScales(){this.beginUndoMacro(Ai),this.resetTimeScale();for(const e of this.m_model.panes()){ +for(const t of e.leftPriceScales())this.resetPriceScale(e,t);for(const t of e.rightPriceScales())this.resetPriceScale(e,t)}this.endUndoMacro(),this.m_model.recalculateAllPanes((0,ve.viewportChangeEvent)())}shareLineTools(e,t){}_mergeUnmergeSource(e,t){this.beginUndoMacro(t.text());const i=(0,o.ensureNotNull)(this._model().paneForSource(e)),s=new Set(i.sourcesByGroup().lineSources().filter(t=>t.ownerSource()===e));this._model().lineToolsGroupModel().groups().filter(e=>{const t=e.lineTools().some(e=>s.has(e)),i=e.lineTools().some(e=>!s.has(e));return t&&i}).forEach(e=>{this._pushUndoCommand(new D.ExcludeLineToolsFromGroupUndoCommand(this._model(),e,e.lineTools()))}),this._pushUndoCommand(t),this.endUndoMacro()}_insertStudy(e,t,i,s,r,n,a,l,c,h,d){const u=Vi.format({title:e.description});this.beginUndoMacro(u);const p=new dt(this.model(),e,t,i,s,r,n,a,l,c,h||null,u);this._pushUndoCommand(p);const _=p.insertedStudy();if(void 0!==d){const e=new ut.SetPriceScaleModeCommand(d,(0,o.ensureNotNull)(_.priceScale()),null,this.model());this._pushUndoCommand(e)}return this.endUndoMacro(),_}async _processSpecialLineToolsContents(e,t,i){0}_insertAfterOrBefore(e,t,i,s){const r=(0,o.ensureNotNull)(this._model().paneForSource(i));if(t.some(e=>(0,m.isLineTool)(e)&&this._model().paneForSource(e)!==r))throw new Error("Cannot insert line tool after target on another pane");this.beginUndoMacro(e),t.forEach(e=>{(0,o.ensureNotNull)(this.model().paneForSource(e))!==r&&this.mergeToPane(e,r)});const n=s();this._pushUndoCommand(n),this.emitEvent("changeZOrder",[t]),this.endUndoMacro()}_sendBackOrBringForward(e,t,i){const s=new Map;t.forEach(e=>{const t=(0,o.ensureNotNull)(this._model().paneForSource(e)),i=s.get(t)||[];i.push(e),s.set(t,i)}),this.beginUndoMacro(e),s.forEach((e,t)=>{this._pushUndoCommand(i(t,e))}),this.endUndoMacro(),this.emitEvent("changeZOrder",[t])}_moveSelectedTools(e){const t=this.model().selection().lineDataSources();if(0===t.length)return!1;if((0,ke.lockDrawings)().value())return!0;const i=this.timeScale().visibleBarsStrictRange();if(null===i)return!1;const s=function(e){const t=new Map;for(const i of e){const e=i.ownerSource();if(null===e)continue;let s=t.get(e);if(void 0===s){const r=e.priceScale(),n=e.priceStep(),o=e.firstValue();if(null===r||null===n||null===o)continue;if(null===r.priceRange())continue;s={sources:[],priceScale:r,priceStep:n,startPrice:i.points()[0].price,firstValue:o},t.set(e,s)}s.sources.push(i)}return t}(t);if(0===s.size)return!1;this.beginUndoMacro(pi,this._lineToolsDoNotAffectChartInvalidation.value());const r=i.firstBar(),n=this.timeScale().indexToCoordinate(r),o=r+(3===e?1:2===e?-1:0),l=this.timeScale().indexToCoordinate(o);return ke.isDirectionalMovementActive.setValue(!0),s.forEach(t=>{const{startPrice:i,priceStep:s,priceScale:c,firstValue:h}=t,d=i+(0===e?s:1===e?-s:0),u=c.priceToCoordinate(i,h),p=c.priceToCoordinate(d,h),_={logical:{index:r,price:i},screen:new a.Point(n,u)},m={logical:{index:o,price:d},screen:new a.Point(l,p)};this.startMovingSources(t.sources,_,null),this.moveSources(m), +this.endMovingSource(!1,!0)}),ke.isDirectionalMovementActive.setValue(!1),this.endUndoMacro(),!0}_restoreStudyFactoryDefaults(e){const t=new Mt(this.m_model,e.properties());this._pushUndoCommand(t)}_restoreLineToolFactoryDefaults(e){this.beginUndoMacro(_i,this._lineToolsDoNotAffectChartInvalidation.value()),this.saveLineToolState(e,_i);const t=new It(this.m_model,e.properties(),_i);this._pushUndoCommand(t),this.saveLineToolState(e,_i),this.endUndoMacro(),this.model().updateSource(e)}_removeAllDrawingToolsImpl(e){this.selectionMacro(()=>{this.lineBeingCreated()&&this.cancelCreatingLine();this.dataSources().filter(m.isLineTool).filter(e=>e.isActualSymbol()&&e.isUserDeletable()).filter(t=>!e||e===t.toolname).forEach(e=>this.removeSource(e,!1))})}_removeAllStudiesImpl(){const e=this.dataSources(),t=e.filter(w.isStudy).filter(e=>!e.isChildStudy()&&e.removeByRemoveAllStudies()),i=e.filter(w.isStudyStub);t.concat(i).forEach(e=>this.removeSource(e,!1))}}},88735:(e,t,i)=>{"use strict";var s=i(2872),r=i(88537).ensureNotNull,n=i(56840),o=i(88537).assert,a=i(36244).ChartModelBase,l=i(14291),c=l.isLineTool,h=l.isStudyLineTool,d=i(39094).Watermark,u=i(49483).CheckMobile,p=i(23653).InvalidationMask,_=i(23653).InvalidationLevel;const{globalChangeEvent:m,dataSourceChangeEvent:g}=i(33291);var f=i(66101),v=f.Study,S=i(13672).NonSeriesStudy,y=i(81851),b=y.createStudy,w=y.isStudy,C=y.isFundamentalStudy,P=f.prepareStudyProperties,T=i(85733),x=i(88564).saveDefaultProperties,I=i(32050).MainSeriesScaleRatioProperty,M=i(22423).scaleRatio,L=i(90998).StudyInserter,A=i(21761).dateFormatProperty,E=i(79680).isActingAsSymbolSource,k=i(13795).sourceNewCurrencyOnPinningToPriceScale,D=i(79222).sourceNewUnitOnPinningToPriceScale,V=i(76422),B=i(56606).StudyColorRotatorFactory,N=i(67337),R=i(44419).AppliedTimeFrame,O=N.enabled("auto_enable_symbol_labels");N.enabled("fix_left_edge");class F extends a{constructor(e,t,i,r,n,o,a,l,c,h){super(e,t,i,r,n,o,a,l,c,h);var u=this,p=this.m_mainSeries.properties(),_=this._panes[0];_.setStretchFactor(2*_.stretchFactor()),this._properties.listeners().subscribe(this,F.prototype.propertyChangeHandler),this._properties.timezone.listeners().subscribe(null,(function(){u._chartApi&&u._chartApi.isConnected().value()&&u._chartApi.switchTimezone(u.timezone())})),_.addDataSource(this.m_mainSeries,this._panes[0].findSuitableScale(this.m_mainSeries)),this._mainSeriesScaleRatioProperty=new I(this),this.m_mainSeries.dataEvents().completed().subscribe(this,function(){this._scrollingState&&this.gotoTime()}.bind(this)),this.m_mainSeries.onIntervalChanged().subscribe(this,(function(){this._recalcVRStudiesParams.oldStartVisibleIndex=NaN,this._recalcVRStudiesParams.oldEndVisibleIndex=NaN})),this._readOnly||(p.addChild("priceAxisProperties",this.m_mainSeries.m_priceScale.properties()),this._properties.paneProperties.legendProperties.showStudyTitles.listeners().subscribe(this,(function(e){e.value()||u._properties.paneProperties.legendProperties.showStudyArguments.setValue(!1)}))),this._barsMarksSources=a(this) +;for(var m=0;m0),n?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:e+t}}setPriceAutoScale(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,_.Light))}updateScales(e,t){this._undoModel._chartWidget._updateScalesActions()}mainSeriesScaleRatioProperty(){return this._mainSeriesScaleRatioProperty}mainSeriesScaleRatioPropertyOnChanged(){this._mainSeriesScaleRatioProperty.listeners().fire(this._mainSeriesScaleRatioProperty)}mainSeriesScaleRatio(){return M(this._timeScale,this.m_mainSeries.priceScale())}setMainSeriesScaleRatio(e){this.paneForSource(this.m_mainSeries).applyPriceScaleRatio(this.m_mainSeries.priceScale(),e)}recalcStudyBasedLineTools(){this.dataSources().forEach((function(e){h(e)&&e.recalcStudyIfNeeded&&e.recalcStudyIfNeeded()}))}restoreFactoryDefaults(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(!0)}orderedDataSources(e){var t=[];t.push(this.m_crossHairSource);for(var i=0;i0)}createStudyInserter(e){return new L(e,this._studiesMetaInfoRepository,{createStudy:this.insertStudyWithParams.bind(this)})}insertStudyWithParams(e,t,i,s,r,o,a,l,c,h,d){null==o&&(o=this.mainSeries());var u=null;if(!r&&void 0!==e.groupingKey){var p=this.findNonOverlayStudyWithGroupingKey(e.groupingKey);null!==p&&(u=p.pane)}null===u&&(r||e.is_price_study?u=this.paneForSource(o):(u=this.createPane(),void 0!==h&&u.setPaneSize(h))),"Compare@tv-basicstudies"===e.id&&this.m_mainSeries.priceScale().setMode({log:!1,percentage:!0});var _=Object.assign({},s,{inputs:t}),m=P(e,_,u,this.studyVersioning(),o),f=b(this,m,o,e,d);this._recalcVisibleRangeStudiesImpl({studies:[f],oldEndVisibleIndex:-1,oldStartVisibleIndex:-1,force:!0,timerId:null});var v=u.findSuitableScale(f,o,a);if(v===this.mainSeries().priceScale()&&E(f)){var S=l?k(f,v,this,!0):null,y=c?D(f,v,this,!0):null;null===S&&null===y||f.setSymbolParams({currency:S||void 0,unit:y||void 0})} +return E(f)&&u.hasDataSource(this.mainSeries())&&O&&!n.getBool("enable_symbol_labels_on_inserting_compare_once",!1)&&(x(!0),this.properties().scalesProperties.showSymbolLabels.setValue(!0),x(!1),n.setValue("enable_symbol_labels_on_inserting_compare_once",!0)),f.start(),null!==i&&u.id()===i.paneId?u.insertDataSource(f,v,i.zorder):u.addDataSource(f,v),f.properties().linkedToSeries&&f.properties().linkedToSeries.value()&&f.setOwnerSource(this.mainSeries()),this.recalculatePane(u,g(f.id())),this.fullUpdate(),this._invalidateBarColorerCaches(),this._recalcVisibleRangeStudiesImpl({studies:[f],force:!0}),this._recalcColorStudiesImpl({studies:[f],force:!0}),this._studyInserted.fire(f),f.maxOffset().subscribe(this._boundUpdateStudiesMaxOffset,{callWithLast:!0}),f}studyInserted(){return this._studyInserted}_unmergeAvailable(e){return e===this.m_mainSeries||TradingView.isInherited(e.constructor,v)&&!e.isLinkedToSeries()&&!TradingView.isInherited(e.constructor,S)&&e.showInObjectTree()}isMergeUpAvailableForSource(e){return!!this._unmergeAvailable(e)&&this.paneForSource(e)!==this.panes()[0]}isMergeDownAvailableForSource(e){if(!this._unmergeAvailable(e))return!1;var t=this.paneForSource(e),i=this.panes();return t!==i[i.length-1]}isUnmergeAvailableForSource(e){return!!this._unmergeAvailable(e)&&this.paneForSource(e).dataSources().filter(this._unmergeAvailable,this).length>1}lineBeingEdited(){return this._lineBeingEdited}linePointBeingEdited(){return this._linePointBeingEdited}calculateDefaultTags(){for(var e=[],t=this.dataSources(),i=0;i-1&&this._modelIntervals.splice(t,1)}clearIntervals(){for(var e=0;ethis.removeSource(e)),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this),o(0===this._topmostCustomSources.length),o(0===this._fgCustomSources.length),o(0===this._bgCustomSources.length),o(0===this._allCustomSources.length),o(0===this._customSourcesMap.size);for(e=0;e{"use strict";var s=i(52640).makeFont,r=i(52640).parseFont,n=(0,i(98125).getLogger)("Model.ChartTradingUtils"),o={_fontHeightCache:{},_parsedColorCache:{},_parseColor:function(e){if(this._parsedColorCache[e])return this._parsedColorCache[e];var t=document.createElement("div");t.style.color=e;var i=t.style.color.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i)||t.style.color.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d*\.?\d+)\s*\)$/i),s={r:i[1],g:i[2],b:i[3],a:i[4]||"1"};return this._parsedColorCache[e]=s,s},getColorFromProperties:function(e,t){var i=1-t.value()/100,s=this._parseColor(e.value());return"rgba("+s.r+","+s.g+","+s.b+","+i+")"},setColorToProperties:function(e,t,i){var s=this._parseColor(e);t.setValue("rgb("+s.r+","+s.g+","+s.b+")");var r=100*(1-s.a);i.setValue(Math.max(0,Math.min(r,100)))},getFontFromProperties:function(e,t,i,r){return s(t.value(),e.value(),r.value()?"italic":"",i.value()?"bold":"")},setFontToProperties:function(e,t,i,s,o){var a=r(e);null!==a?(a.family.length>0&&t.setValue(a.family),i.setValue(a.size),s.setValue(a.bold),o.setValue(a.italic)):n.logError("Invalid font: "+e)},fontHeight:function(e){if(!this._fontHeightCache[e]){var t=document.createElement("span");t.appendChild(document.createTextNode("height")),document.body.appendChild(t),t.style.cssText="font: "+e+"; white-space: nowrap; display: inline;";var i=t.offsetHeight;document.body.removeChild(t),this._fontHeightCache[e]=Math.ceil(i)}return this._fontHeightCache[e]},drawPolyHoverOrPress:function(e,t,i,s){s?(e.save(),e.fillStyle="rgba(0, 0, 0, 0.15)",CanvasEx.drawPoly(e,t,!0),e.restore()):i&&(e.save(),e.fillStyle="rgba(0, 0, 0, 0.1)",CanvasEx.drawPoly(e,t,!0),e.restore())},repaint:function(e){e.lightUpdate()},roundToMinTick:function(e,t){var i=1/e.mainSource().base();return i*Math.round(t/i)}};e.exports=o},24431:(e,t,i)=>{"use strict" +;var s=i(28353).t,r=i(24980).TranslatedString,n=i(59199).doAnimate,o=i(97205).ChartUndoModelBase,a=(i(88564).saveDefaultProperties,i(66101).Study),l=i(65645).showTooManyStudiesNotice,c=(i(35762).UndoCommand,i(17691).ApplyLineToolTemplateUndoCommand),h=i(89730).SetPriceScaleSelectionStrategyCommand,d=i(870).SetScaleRatioPropertiesCommand,u=i(90998).StudyInserter,p=i(51768).trackEvent,_=i(98125).getLogger("Chart.ChartUndoModel"),m=i(91794).RestoreDefaultsPreferencesUndoCommand,g=i(59836).SetPriceScaleModeCommand,f=i(69746).PriceScaleChangeUndoCommand,v=new r("move left",s("move left")),S=new r("move right",s("move right")),y=new r("toggle auto scale",s("toggle auto scale")),b=new r("toggle lock scale",s("toggle lock scale")),w=new r("toggle regular scale",s("toggle regular scale")),C=new r("toggle indexed to 100 scale",s("toggle indexed to 100 scale")),P=new r("toggle percentage scale",s("toggle percentage scale")),T=new r("toggle log scale",s("toggle log scale")),x=new r("invert scale",s("invert scale")),I=new r("remove pane",s("remove pane")),M=(new r("apply all chart properties",s("apply all chart properties")),new r("set price scale selection strategy to {title}",s("set price scale selection strategy to {title}")));s("Cheers");t.ChartUndoModel=class extends o{constructor(e,t,i,s,r,n,o,a,l,c,h){super(e,t,i,s,r,n,o,a,l,c,h),this.beginUndoMacro=(e,t)=>{var i=o.beginUndoMacro(e);return i.setCustomFlag("doesnt_affect_save",t),i},this.endUndoMacro=o.endUndoMacro.bind(o),this.createUndoCheckpoint=o.createUndoCheckpoint.bind(o),this.undoToCheckpoint=o.undoToCheckpoint.bind(o)}version(){return this.m_model.version()}createPane(e){return this.m_model.createPane(e)}readOnly(){return this.m_model.readOnly()}restart(){this.m_model.restart()}disconnect(){this.m_model.disconnect()}studiesMetaData(){return this.m_model.studiesMetaData()}studyVersioning(){return this.m_model.studyVersioning()}chartModel(){return this._model()}_model(){return this.m_model}pushUndoCommand(e){this._pushUndoCommand(e)}_pushUndoCommand(e){this._undoHistory.pushUndoCommand(e)}startScrollPrice(e,t,i){t.isAutoScale()||(this._initialPriceScrollState=t.state(),this._initialPriceScrollPos=i,this.chartModel().startScrollPrice(e,t,i))}scrollPriceTo(e,t,i){t.isAutoScale()||(this._initialPriceScrollPos&&Math.abs(this._initialPriceScrollPos-i)>20&&(this.pushUndoCommand(new f(this.m_model,e,t,this._initialPriceScrollState)),delete this._initialPriceScrollState,delete this._initialPriceScrollPos),this.chartModel().scrollPriceTo(e,t,i))}endScrollPrice(e,t){t.isAutoScale()||(delete this._initialPriceScrollState,delete this._initialPriceScrollPos,this.chartModel().endScrollPrice(e,t))}setPriceAutoScale(e,t,i){this.pushUndoCommand(new f(this.m_model,e,t,t.state())),this.chartModel().setPriceAutoScale(e,t,i)}setWidth(e){this.m_model.setWidth(e)}setPaneHeight(e,t){this.m_model.setPaneHeight(e,t)}gridSource(){return this.m_model.gridSource()}watermarkSource(){return this.m_model.watermarkSource()}addAlertsSource(e){return this.m_model.addAlertsSource(e)}alertsSources(){ +return this.m_model.alertsSources()}publishedChartsTimelineSource(){return this.m_model.publishedChartsTimelineSource()}crossHairSource(){return this.m_model.crossHairSource()}model(){return this.m_model}chartWidget(){return this._chartWidget}mainSeries(){return this.m_model.m_mainSeries}mainSeriesScaleRatioProperty(){return this.m_model.mainSeriesScaleRatioProperty()}panes(){return this.m_model.panes()}timeScale(){return this.m_model.timeScale()}selectionMacro(e){return this.m_model.selectionMacro(e)}setHoveredSource(e,t){this.m_model.setHoveredSource(e,t)}selection(){return this.m_model.selection()}onSelectedSourceChanged(){return this.m_model.onSelectedSourceChanged()}activeStrategySource(){return this.m_model.activeStrategySource()}invalidate(e){this.m_model.invalidate(e)}setCurrentPosition(e,t,i,s){this.m_model.setCurrentPosition(e,t,i,s)}setAndSaveCurrentPosition(e,t,i,s){this.m_model.setAndSaveCurrentPosition(e,t,i,s)}canCreateStudy(e){return this.model().chartApi().chartApi().isCanCreateStudy(e)}_isCountedStudy(e){throw new Error("Not implemented")}checkIfFeatureAvailable(e,t){var i=this.canCreateStudy(),s=t&&t instanceof a;return!this.readOnly()&&s&&(i=this.canCreateStudy(!0)),!!i||(s||l(),!1)}createStudyInserter(e,t,i){var s=this,r=null,n={createStudy:function(e,t,i,n,o,a,l,c,h,d,u){return s.checkIfFeatureAvailable(e,a)?(p("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&p("compare","symbol:"+t.symbol),s._insertStudy(e,t,n,o,a,l,c,h,d,r,u)):(_.logNormal("Cannot insert study "+e.id),null)}};void 0!==i&&(n.createStub=function(){var e=s.m_model.insertStudyStub(i);return r={targetPaneId:s.m_model.paneForSource(e).id(),targetZOrder:e.zorder()},e.id()},n.removeStub=function(e){return s.m_model.removeStudyStub(e)});var o=new u(e,this.m_model._studiesMetaInfoRepository,n);return o.setParentSource(t),o}setProperties(e,t,i){var s=this;this.beginUndoMacro(i),this.m_model.selectionMacro((function(){for(var r=0;r{"use strict";var s;i.d(t,{ColorType:()=>s}),function(e){e.Solid="solid",e.Gradient="gradient"}(s||(s={}))},8175:(e,t,i)=>{"use strict";i.d(t,{currencyUnitVisibilityProperty:()=>o,currencyUnitVisibilityOptions:()=>a,migrateShowCurrencyAndShowUnitProperties:()=>c});var s=i(10133),r=i(56840),n=i.n(r);const{property:o,availableValues:a}=(0,s.createVisibilityController)("PriceAxisCurrencyAndUnit.visibility");let l=!1;function c(e,t){l||(l=!0,void 0===n().getValue("PriceAxisCurrencyAndUnit.visibility")&&o().setValue(e||t?"alwaysOn":"alwaysOff"))}},13795:(e,t,i)=>{"use strict";i.d(t,{sourceNewCurrencyOnPinningToPriceScale:()=>r});var s=i(79680);function r(e,t,i,r){let n=null;if(i.currencyConversionEnabled()&&(0, +s.isActingAsSymbolSource)(e)){const s=i.availableCurrencies(),o=t.currency(s),a=e.currency();null!==o&&null!==o.selectedCurrency&&!o.allCurrenciesAreOriginal&&o.selectedCurrency!==a&&(r&&null===a||null!==a&&s.convertible(a))&&(n=o.selectedCurrency)}return n}},99305:(e,t,i)=>{"use strict";i.d(t,{CustomSourceBase:()=>s});class s{constructor(e,t){this._id=e,this._model=t}id(){return this._id}isHoveredEnabled(){return!0}isSelectionEnabled(){return!1}priceScale(){return null}paneViews(e){return[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateViewsForPane(e,t){e.containsMainSeries()&&this.updateAllViews(t)}}},50669:(e,t,i)=>{"use strict";i.d(t,{isMainSeriesState:()=>r,isStudyState:()=>n,isLineToolState:()=>o,isStudyLineToolState:()=>a});var s=i(14291);function r(e){return"MainSeries"===e.type}function n(e){return Boolean(e.type)&&e.type.toLowerCase().startsWith("study")}function o(e){return Boolean(e.type)&&(0,s.isLineToolName)(e.type)}function a(e){return Boolean(e.type)&&(0,s.isStudyLineToolName)(e.type)}},62443:(e,t,i)=>{"use strict";i.d(t,{DataSource:()=>l});i(67337);var s=i(52714),r=i.n(s),n=i(9423),o=i(2872),a=i.n(o);class l{constructor(e){this.hasAlert=new(r())(!1),this._zorder=0,this.m_priceScale=null,this._ownerSource=null,this._userEditEnabled=!0,this._onPriceScaleChanged=new(a()),this._isSelectionEnabled=!0,this._instanceId=(0,n.randomHashN)(6),this._ownerSourceChanged=new(a()),this._zOrderChanged=new(a()),this._id=null!=e?e:(0,n.randomHashN)(6)}id(){return this._id}instanceId(){return this._instanceId}preferNoScale(){return!1}setId(e){this._id=e}zorder(){return this._zorder}setZorder(e){"number"==typeof e&&this._zorder!==e&&(this._zorder=e,this._zOrderChanged.fire(e))}isSpeciallyZOrderedSource(){return!1}title(){throw new Error("Implement this fun in a subclass")}name(){throw new Error("Implement this fun in a subclass")}priceScale(){return this.m_priceScale}setPriceScale(e){this.m_priceScale=e,this._onPriceScaleChanged.fire()}ownerSource(){return this._ownerSource}setOwnerSource(e){this._ownerSource=e,this._ownerSourceChanged.fire()}ownerSourceChanged(){return this._ownerSourceChanged}zOrderChanged(){return this._zOrderChanged}isSavedInChart(e){return!0}isSavedInStudyTemplates(){return!0}isRemovedByStudyTemplates(){return!0}hasContextMenu(){return!0}showInObjectTree(){return!0}setUserEditEnabled(e){this._userEditEnabled=e}userEditEnabled(){return this._userEditEnabled}canBeHidden(){return this.userEditEnabled()}isUserDeletable(){return this.userEditEnabled()}properties(){throw new Error("Implement this fun in a subclass")}isVisible(){return this.properties().visible.value()}dataWindowView(){return null}priceAxisViews(e,t){return null}timeAxisViews(){return null}updateAllViews(e){}paneViews(e){return null}labelPaneViews(){return null}isFailed(){return!1}isLoading(){return!1}isPhantom(){return!1}isChildStudy(){return!1}hasChildren(){return!1}canHaveChildren(){return!1}onClickOutside(){}getSourceIcon(){return null}state(e){throw new Error("Implement this fun in a subclass")}onPriceScaleChanged(){ +return this._onPriceScaleChanged}doesMovingAffectsUndo(){return!0}isMultiPaneAvailable(){return!1}isMultiPaneEnabled(){return!1}copiable(){return!1}cloneable(){return!1}movable(){return!1}isIncludedInAutoScale(){return!1}isHoveredEnabled(){return this.isSelectionEnabled()}isSelectionEnabled(){return this._isSelectionEnabled}setSelectionEnabled(e){this._isSelectionEnabled=e}firstValue(){return null}priceRange(e,t){return null}autoScaleInfo(e,t){return{range:this.priceRange(e,t)}}stateForAlert(){return null}canHasAlert(){return!1}alertCreationAvailable(){return this.hasStateForAlert()}hasStateForAlert(){return!1}idForAlert(){return this._id}}},14445:(e,t,i)=>{"use strict";i.d(t,{DataWindowItem:()=>s,DataWindowView:()=>r});class s{constructor(e,t,i=!1){this._visible=!0,this._title=e,this._value=t,this._unimportant=i}title(){return this._title}setTitle(e){this._title=e}text(){return this._value}value(){return this._value}setValue(e){this._value=e}visible(){return this._visible}setVisible(e){this._visible=e}color(){return this._color}setColor(e){this._color=e}unimportant(){return this._unimportant}}class r{constructor(){this._items=[],this._header="",this._title=""}header(){return this._header}title(){return this._title}items(){return this._items}update(){}}},21761:(e,t,i)=>{"use strict";i.d(t,{dateFormatProperty:()=>a,restoreDateFormatSettingsValue:()=>l});var s=i(56840),r=i(32255),n=i(7043);function o(){return s.getValue("date_format",(0,n.defaultDateFormat)())}const a=(0,r.createPrimitiveProperty)(o());function l(){a.setValue((0,n.defaultDateFormat)()),s.remove("date_format")}s.onSync.subscribe(null,()=>a.setValue(o())),a.listeners().subscribe(null,()=>s.setValue("date_format",a.value()))},88564:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createDefaultsState:()=>u,saveDefaultProperties:()=>_,DefaultProperty:()=>m});var s=i(27788),r=i(58121),n=i(15736),o=i(59803),a=i(2015),l=i.n(a),c=i(2872),h=i.n(c);function d(e,t){const i=(0,s.default)(e);return t.forEach(e=>(0,n.default)(i,e.split("."))),i}function u(e,t,i,n){const a=e?o.defaults:o.factoryDefaults,l=t.startsWith("study_")?(0,s.default)(a("study")):{};let c=(0,s.default)(a(t,n));return t.startsWith("study_")&&c.inputs&&delete c.inputs.symbol,"linetoolicon"===t&&e&&(c.icon=(0,o.defaults)(t).icon),c=d(c,i),(0,r.default)(l,c),l}let p=!1;function _(e){p=e}class m extends(l()){constructor(e,t,i,s){super(function(e,t,i,s){let n;return void 0===s&&(s=!0),i?n=t:(n=u(s,e,[],null),t&&(0,r.default)(n,t)),n}(e,t,i,s)),this._exclusions=[],this._restoreFactoryDefaultsEvent=new(h()),this._defaultName=e,this._useUserPreferences=null==s||s,this.listeners().subscribe(this,m.prototype.onPropertyChanged),this._restoreFactoryDefaultsEvent=new(h())}preferences(){return this.state(this._exclusions)}mergePreferences(e){this.mergeAndFire(d(e,this._exclusions))}addExclusion(e){this._exclusions.indexOf(e)<0&&this._exclusions.push(e)}removeExclusion(e){const t=this._exclusions.indexOf(e);-1!==t&&this._exclusions.splice(t,1)}restoreFactoryDefaults(){const e=u(!1,this._defaultName,this._exclusions,null) +;this.mergeAndFire(e),this._defaultName.startsWith("study_")&&!this._defaultName.startsWith("study_VbPFixed")||(0,o.saveDefaults)(this._defaultName,void 0),this._restoreFactoryDefaultsEvent.fire()}onRestoreFactoryDefaults(){return this._restoreFactoryDefaultsEvent}onPropertyChanged(){!p||this._defaultName.startsWith("study_")&&!this._defaultName.startsWith("study_VbPFixed")||this.saveDefaults()}saveDefaults(){this._useUserPreferences&&(0,o.saveDefaults)(this._defaultName,this.preferences())}clone(e){const t=new m(this._defaultName,this.state(),null==e?void 0:e.replaceByState,this._useUserPreferences);for(let e=0;e{"use strict";var s=i(27759).PlDisplay;const{getHexColorByName:r}=i(45112),{generateColor:n}=i(68906);var o=i(27759).TradingSourcesHorizontalAlignment,a=i(16654),l=i(30823).LineToolPitchforkStyle,c=i(8059).LineToolBarsPatternMode,h=i(50993).LineStudyPlotStyle,d=i(5816),u=i(3825).PriceAxisLastValueMode,p=i(245).StoriesTimeLineItemType,_=i(90373).MagnetMode,m=i(49612).LineEnd,g=i(49642).ColorType,f=i(13632).StatsPosition,v=i(47484).sessionsPreferencesDefault,S=i(87426).axisLabelBackgroundColor,y=i(98125).getLogger("Chart.Defaults");const b=r("color-black"),w=r("color-white"),C=n(w,75),P=r("color-tv-blue-50"),T=r("color-tv-blue-500"),x=n(T,30),I=n(T,70),M=n(T,72),L=n(T,75),A=n(T,80),E=r("color-tv-blue-600"),k=r("color-deep-blue-200"),D=r("color-deep-blue-300"),V=r("color-deep-blue-400"),B=n(V,80),N=r("color-deep-blue-500"),R=r("color-sky-blue-500"),O=n(R,80),F=n(R,50),W=r("color-sky-blue-700"),H=n(W,30),z=r("color-youtube"),U=r("color-ripe-red-200"),j=r("color-ripe-red-300"),G=r("color-ripe-red-400"),q=r("color-ripe-red-500"),Y=n(q,70),K=n(q,80),$=n(q,72),X=n(q,95),Z=r("color-ripe-red-600"),J=r("color-grapes-purple-400"),Q=n(J,80),ee=r("color-grapes-purple-500"),te=n(ee,100),ie=n(ee,80),se=n(ee,30),re=n(r("color-berry-pink-400"),85),ne=r("color-berry-pink-500"),oe=n(ne,80),ae=r("color-minty-green-100"),le=r("color-minty-green-500"),ce=n(le,80),he=n(le,72),de=n(le,95),ue=r("color-iguana-green-300"),pe=r("color-iguana-green-500"),_e=n(pe,80),me=r("color-tan-orange-300"),ge=r("color-tan-orange-500"),fe=n(ge,80),ve=r("color-tan-orange-600"),Se=r("color-tan-orange-700"),ye=n(Se,80),be=r("color-tan-orange-a700"),we=r("color-cold-gray-150"),Ce=r("color-cold-gray-300"),Pe=r("color-cold-gray-400"),Te=r("color-cold-gray-500"),xe=r("color-cold-gray-800"),Ie=n(xe,94),Me=n(xe,100),Le=r("color-cold-gray-900"),Ae=r("color-slate-gray"),Ee=r("color-silver-tree"),ke=n(Ee,95),De=r("color-mandy"),Ve=n(De,95);var Be=function(e){var t=function(e,t){return{color:e,visible:t}},i=function(e,t,i){return{coeff:e,color:t,visible:i}},r=function(e,t,i,s,r){return{coeff:e,color:t,visible:i,linestyle:void 0===s?CanvasEx.LINESTYLE_SOLID:s,linewidth:void 0===r?1:r}},y=function(e,t,i){return{color:e,width:i,visible:t}},xe=function(e,t,i,s,r){return{color:e,visible:t,width:i,x:s,y:r}},Be=function(e,t,i,s,r,n){return{coeff1:e,coeff2:t,color:i,visible:s, +linestyle:void 0===r?CanvasEx.LINESTYLE_SOLID:r,linewidth:void 0===n?1:n}};if(void 0===TradingView.defaultProperties){var Ne;switch(window.locale){case"ar_AE":Ne="Asia/Dubai";break;case"au":Ne="Australia/Sydney";break;case"br":Ne="America/Sao_Paulo";break;case"ca":Ne="America/Toronto";break;case"de_DE":case"it":Ne="Europe/Berlin";break;case"es":Ne="Europe/Madrid";break;case"fa_IR":Ne="Asia/Tehran";break;case"fr":case"sv_SE":Ne="Europe/Paris";break;case"he_IL":case"tr":Ne="Europe/Athens";break;case"hu_HU":case"pl":Ne="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":Ne="Asia/Bangkok";break;case"in":Ne="Asia/Kolkata";break;case"ja":case"kr":Ne="Asia/Tokyo";break;case"ms_MY":Ne="Asia/Singapore";break;case"ru":Ne="Europe/Moscow";break;case"uk":Ne="Europe/London";break;case"zh_CN":case"zh_TW":Ne="Asia/Shanghai";break;default:Ne="Etc/UTC"}TradingView.defaultProperties={chartproperties:{timezone:Ne,priceScaleSelectionStrategyName:"auto",paneProperties:{backgroundType:g.Solid,background:w,backgroundGradientStartColor:w,backgroundGradientEndColor:w,vertGridProperties:{color:Ie,style:CanvasEx.LINESTYLE_SOLID},horzGridProperties:{color:Ie,style:CanvasEx.LINESTYLE_SOLID},crossHairProperties:{color:Pe,style:CanvasEx.LINESTYLE_DASHED,transparency:0,width:1},topMargin:10,bottomMargin:8,axisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1},legendProperties:{showStudyArguments:!0,showStudyTitles:!0,showStudyValues:!0,showSeriesTitle:!0,showSeriesOHLC:!0,showLegend:!0,showBarChange:!0,showVolume:!1,showBackground:!0,backgroundTransparency:50},separatorColor:we},scalesProperties:{backgroundColor:w,lineColor:Me,textColor:Le,fontSize:12,scaleSeriesOnly:!1,showSeriesLastValue:!0,seriesLastValueMode:u.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!0,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalNameLabel:!1,showFundamentalLastValue:!0,barSpacing:d.DEFAULT_BAR_SPACING,axisHighlightColor:L,axisLineToolLabelBackgroundColorCommon:S.common,axisLineToolLabelBackgroundColorActive:S.active,showPriceScaleCrosshairLabel:!0,showTimeScaleCrosshairLabel:!0},mainSeriesProperties:{style:a.STYLE_CANDLES,esdShowDividends:!0,esdShowSplits:!0,esdShowEarnings:!0,esdShowBreaks:!1,esdFlagSize:2,showContinuousContractSwitches:!0,showContinuousContractSwitchesBreaks:!1,showCountdown:!0,bidAsk:{visible:!1,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,bidLineColor:T,askLineColor:G},prePostMarket:{visible:!0,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,preMarketColor:ve,postMarketColor:T},highLowAvgPrice:{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLineVisible:!1,averageClosePriceLabelVisible:!1,highLowPriceLinesColor:"",highLowPriceLinesWidth:1,averagePriceLineColor:"",averagePriceLineWidth:1},visible:!0,showPriceLine:!0,priceLineWidth:1,priceLineColor:"",baseLineColor:Ce,showPrevClosePriceLine:!1,prevClosePriceLineWidth:1, +prevClosePriceLineColor:"#555555",minTick:"default",dividendsAdjustment:void 0,backAdjustment:!1,settlementAsClose:!0,sessionId:"regular",sessVis:!1,statusViewStyle:{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},candleStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,barColorsOnPrevClose:!1,drawBody:!0},hollowCandleStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,drawBody:!0},haStyle:{upColor:le,downColor:q,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:"#737375",wickUpColor:le,wickDownColor:q,showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{},inputInfo:{},drawBody:!0},barStyle:{upColor:le,downColor:q,barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},hiloStyle:{color:T,showBorders:!0,borderColor:T,showLabels:!0,labelColor:T,fontSize:7,drawBody:!0},columnStyle:{upColor:n(le,50),downColor:n(q,50),barColorsOnPrevClose:!0,priceSource:"close"},lineStyle:{color:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",styleType:a.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:M,color2:T,linecolor:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:100},priceAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,isInverted:!1,alignLabels:!0},renkoStyle:{upColor:le,downColor:q,borderUpColor:le,borderDownColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae",wickUpColor:le,wickDownColor:q,inputs:{source:"close",sources:"Close",boxSize:3,style:"ATR",atrLength:14,wicks:!0},inputInfo:{source:{name:"Source"},sources:{name:"Source"},boxSize:{name:"Box size"},style:{name:"Style"},atrLength:{name:"ATR length"},wicks:{name:"Wicks"}}},pbStyle:{upColor:le,downColor:q,borderUpColor:le,borderDownColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",borderUpColorProjection:"#a9dcc3",borderDownColorProjection:"#f5a6ae",inputs:{source:"close",lb:3},inputInfo:{source:{name:"Source"},lb:{name:"Number of line"}}},kagiStyle:{upColor:le,downColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{source:"close",style:"ATR",atrLength:14,reversalAmount:1},inputInfo:{source:{name:"Source"},style:{name:"Style"},atrLength:{name:"ATR length"},reversalAmount:{name:"Reversal amount"}}},pnfStyle:{upColor:le,downColor:q,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{sources:"Close",reversalAmount:3,boxSize:1,style:"ATR",atrLength:14,oneStepBackBuilding:!1},inputInfo:{sources:{name:"Source"},boxSize:{name:"Box size"},reversalAmount:{name:"Reversal amount"},style:{name:"Style"},atrLength:{name:"ATR length"},oneStepBackBuilding:{name:"One step back building"}}},baselineStyle:{baselineColor:Ae,topFillColor1:he, +topFillColor2:de,bottomFillColor1:X,bottomFillColor2:$,topLineColor:le,bottomLineColor:q,topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},rangeStyle:{upColor:le,downColor:q,thinBars:!0,upColorProjection:"#a9dcc3",downColorProjection:"#f5a6ae",inputs:{range:10,phantomBars:!1},inputInfo:{range:{name:"Range"},phantomBars:{name:"Phantom bars"}}}},chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"#555555",visible:!1,style:CanvasEx.LINESTYLE_DASHED,width:1}},tradingProperties:{showPositions:!0,positionPL:{visibility:!0,display:s.Money},bracketsPL:{visibility:!0,display:s.Money},showOrders:!0,showExecutions:!0,showExecutionsLabels:!1,showReverse:!0,horizontalAlignment:o.Right,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:CanvasEx.LINESTYLE_SOLID},editorFontsList:["Verdana","Courier New","Times New Roman","Arial"],volumePaneSize:"large"},sessions:v,drawings:{magnet:!1,magnetMode:_.WeakMagnet,stayInDrawingMode:!1,drawOnAllCharts:!0,drawOnAllChartsMode:1},linetoolorder:{extendLeft:"inherit",lineLength:"inherit",lineColor:z,lineActiveBuyColor:"#4094e8",lineInactiveBuyColor:"rgba(64, 148, 232, 0.5)",lineActiveSellColor:"#e75656",lineInactiveSellColor:"rgba(231, 86, 86, 0.5)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderActiveBuyColor:"#4094e8",bodyBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyBorderActiveSellColor:"#e75656",bodyBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyBackgroundColor:C,bodyBackgroundTransparency:25,bodyTextInactiveLimitColor:"rgba(38, 140, 2, 0.5)",bodyTextActiveLimitColor:"#268c02",bodyTextInactiveStopColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveStopColor:"#e75656",bodyTextInactiveBuyColor:"rgba(64, 148, 232, 0.5)",bodyTextActiveBuyColor:"#4094e8",bodyTextInactiveSellColor:"rgba(231, 86, 86, 0.5)",bodyTextActiveSellColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderActiveBuyColor:"#4094e8",quantityBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBorderActiveSellColor:"#e75656",quantityBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundInactiveBuyColor:"rgba(64, 148, 232, 0.5)",quantityBackgroundActiveBuyColor:"#4094e8",quantityBackgroundInactiveSellColor:"rgba(231, 86, 86, 0.5)",quantityBackgroundActiveSellColor:"#e75656",quantityTextColor:w,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderActiveBuyColor:"#4094e8",cancelButtonBorderInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonBorderActiveSellColor:"#e75656",cancelButtonBorderInactiveSellColor:"rgba(231, 86, 86, 0.5)",cancelButtonBackgroundColor:C,cancelButtonBackgroundTransparency:25,cancelButtonIconActiveBuyColor:"#4094e8",cancelButtonIconInactiveBuyColor:"rgba(64, 148, 232, 0.5)",cancelButtonIconActiveSellColor:"#e75656",cancelButtonIconInactiveSellColor:"rgba(231, 86, 86, 0.5)",tooltip:"",modifyTooltip:"",cancelTooltip:""},linetoolposition:{extendLeft:"inherit",lineLength:"inherit", +lineBuyColor:"#4094e8",lineSellColor:"#e75656",lineStyle:"inherit",lineWidth:"inherit",bodyBorderBuyColor:"#4094e8",bodyBorderSellColor:"#e75656",bodyBackgroundColor:C,bodyBackgroundTransparency:25,bodyTextPositiveColor:"#268c02",bodyTextNeutralColor:"#646464",bodyTextNegativeColor:"#e75656",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderBuyColor:"#4094e8",quantityBorderSellColor:"#e75656",quantityBackgroundBuyColor:"#4094e8",quantityBackgroundSellColor:"#e75656",quantityTextColor:w,quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,reverseButtonBorderBuyColor:"#4094e8",reverseButtonBorderSellColor:"#e75656",reverseButtonBackgroundColor:C,reverseButtonBackgroundTransparency:25,reverseButtonIconBuyColor:"#4094e8",reverseButtonIconSellColor:"#e75656",closeButtonBorderBuyColor:"#4094e8",closeButtonBorderSellColor:"#e75656",closeButtonBackgroundColor:C,closeButtonBackgroundTransparency:25,closeButtonIconBuyColor:"#4094e8",closeButtonIconSellColor:"#e75656",tooltip:"",protectTooltip:"",closeTooltip:"",reverseTooltip:""},linetoolexecution:{direction:"buy",arrowHeight:8,arrowSpacing:1,arrowBuyColor:"#4094e8",arrowSellColor:"#e75656",text:"",textColor:b,textTransparency:0,fontFamily:"Verdana",fontSize:10,fontBold:!1,fontItalic:!1,tooltip:""},linetoolicon:{color:T,size:40,icon:61720,angle:.5*Math.PI},linetoolimage:{transparency:0,cssWidth:0,cssHeight:0,angle:0},linetoolbezierquadro:{linecolor:T,linewidth:1,fillBackground:!1,backgroundColor:A,transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal},linetoolbeziercubic:{linecolor:R,linewidth:1,fillBackground:!1,backgroundColor:O,transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal},linetooltrendline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolinfoline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!0,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!0,showBarsRange:!0,showDateTimeRange:!0,showDistance:!0,showAngle:!0,statsPosition:f.Center},linetooltimecycles:{linecolor:"#159980",linewidth:1,fillBackground:!0,backgroundColor:"rgba(106, 168, 79, 0.5)",transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolsineline:{linecolor:"#159980",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetooltrendangle:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,textcolor:T,fontsize:12,bold:!1,italic:!1, +alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,extendRight:!1,extendLeft:!1,statsPosition:f.Right},linetooldisjointangle:{linecolor:le,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:ce,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,textcolor:le,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1},linetoolflatbottom:{linecolor:ge,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:fe,transparency:20,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Normal,textcolor:ge,fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1},linetoolfibspiral:{counterclockwise:!1,linecolor:le,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolriskrewardshort:{linecolor:Te,linewidth:1,textcolor:w,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:K,profitBackground:ce,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolriskrewardlong:{linecolor:Te,linewidth:1,textcolor:w,fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"#585858",fillBackground:!0,stopBackground:K,profitBackground:ce,stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"#667b8b",compact:!1,riskDisplayMode:"percents",accountSize:1e3,lotSize:1,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolarrow:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:m.Normal,rightEnd:m.Arrow,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolray:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!0,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolextended:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!0,extendRight:!0,leftEnd:m.Normal,rightEnd:m.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:T,fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceLabels:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:f.Right},linetoolhorzline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,textcolor:T,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"}, +linetoolhorzray:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,textcolor:T,fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolvertline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLine:!0,showTime:!0,showLabel:!1,horzLabelsAlign:"right",vertLabelsAlign:"top",textcolor:T,textOrientation:"vertical",fontsize:14,bold:!1,italic:!1},linetoolcrossline:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showTime:!0},linetoolcirclelines:{trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},linecolor:"#80ccdb",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolfibtimezone:{horzLabelsAlign:"right",vertLabelsAlign:"bottom",baselinecolor:"#808080",linecolor:"#0055db",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showLabels:!0,fillBackground:!1,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(0,Te,!0),level2:r(1,T,!0),level3:r(2,T,!0),level4:r(3,T,!0),level5:r(5,T,!0),level6:r(8,T,!0),level7:r(13,T,!0),level8:r(21,T,!0),level9:r(34,T,!0),level10:r(55,T,!0),level11:r(89,T,!0)},linetooltext:{color:T,fontsize:14,fillBackground:!1,backgroundColor:"rgba(91, 133, 191, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"#667b8b",bold:!1,italic:!1,fixedSize:!0,wordWrap:!1,wordWrapWidth:200},linetooltextabsolute:{color:T,fontsize:14,fillBackground:!1,backgroundColor:"rgba(155, 190, 213, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"#667b8b",bold:!1,italic:!1,fixedSize:!1,wordWrap:!1,wordWrapWidth:200},linetoolballoon:{color:w,backgroundColor:se,borderColor:te,fontsize:14,transparency:30},linetoolbrush:{linecolor:R,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,smooth:5,fillBackground:!1,backgroundColor:F,transparency:50,leftEnd:m.Normal,rightEnd:m.Normal},linetoolhighlighter:{linecolor:re,smooth:5,transparency:85},linetoolpolyline:{linecolor:V,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:B,transparency:50,filled:!1},linetoolsignpost:{itemType:p.Emoji,emoji:"🙂",showImage:!1,plateColor:T,fontSize:12,bold:!1,italic:!1},linetoolpath:{lineColor:T,lineWidth:2,lineStyle:CanvasEx.LINESTYLE_SOLID,leftEnd:m.Normal,rightEnd:m.Arrow},linetoolarrowmarkleft:{color:T,arrowColor:T,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkup:{color:le,arrowColor:le,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkright:{color:T,arrowColor:T,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkdown:{color:Z,arrowColor:Z,fontsize:14,bold:!1,italic:!1,showLabel:!0},linetoolflagmark:{flagColor:T},linetoolnote:{markerColor:T,textColor:w,backgroundColor:x,backgroundTransparency:0,borderColor:T,fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolnoteabsolute:{markerColor:T,textColor:w,backgroundColor:x,backgroundTransparency:0,borderColor:T,fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolpricelabel:{color:w,backgroundColor:T,borderColor:T,fontWeight:"bold", +fontsize:14,transparency:0},linetoolpricenote:{showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textColor:T,fontSize:14,bold:!1,italic:!1,lineColor:T,priceLabelBackgroundColor:T,priceLabelBorderColor:T,priceLabelTextColor:w,priceLabelFontSize:12,priceLabelBold:!1,priceLabelItalic:!1},linetoolarrowmarker:{backgroundColor:E,textColor:E,bold:!0,italic:!1,fontsize:16,showLabel:!0},linetoolrectangle:{color:ee,fillBackground:!0,backgroundColor:ie,linewidth:1,transparency:50,showLabel:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",textColor:ee,fontSize:14,bold:!1,italic:!1,extendLeft:!1,extendRight:!1},linetoolrotatedrectangle:{color:pe,fillBackground:!0,backgroundColor:_e,transparency:50,linewidth:1},linetoolcircle:{color:ge,backgroundColor:fe,fillBackground:!0,linewidth:1,showLabel:!1,textColor:ge,fontSize:14,bold:!1,italic:!1},linetoolellipse:{color:ne,fillBackground:!0,backgroundColor:oe,transparency:50,linewidth:1,showLabel:!1,textColor:ne,fontSize:14,bold:!1,italic:!1},linetoolarc:{color:J,fillBackground:!0,backgroundColor:Q,transparency:50,linewidth:1},linetoolprediction:{linecolor:T,linewidth:1,sourceBackColor:T,sourceTextColor:w,sourceStrokeColor:T,targetStrokeColor:T,targetBackColor:T,targetTextColor:w,successBackground:pe,successTextColor:w,failureBackground:q,failureTextColor:w,intermediateBackColor:"#ead289",intermediateTextColor:"#6d4d22",transparency:10,centersColor:"#202020"},linetooltriangle:{color:Se,fillBackground:!0,backgroundColor:ye,transparency:50,linewidth:1},linetoolcallout:{color:w,backgroundColor:H,transparency:50,linewidth:1,fontsize:14,bordercolor:W,bold:!1,italic:!1,wordWrap:!1,wordWrapWidth:200},linetoolparallelchannel:{linecolor:T,linewidth:2,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,fillBackground:!0,backgroundColor:A,transparency:20,showMidline:!0,midlinecolor:T,midlinewidth:1,midlinestyle:CanvasEx.LINESTYLE_DASHED},linetoolelliottimpulse:{degree:7,showWave:!0,color:"#3d85c6",linewidth:1},linetoolelliotttriangle:{degree:7,showWave:!0,color:ge,linewidth:1},linetoolelliotttriplecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:1},linetoolelliottcorrection:{degree:7,showWave:!0,color:"#3d85c6",linewidth:1},linetoolelliottdoublecombo:{degree:7,showWave:!0,color:"#6aa84f",linewidth:1},linetoolbarspattern:{color:T,mode:c.Bars,mirrored:!1,flipped:!1},linetoolghostfeed:{averageHL:20,variance:50,candleStyle:{upColor:ae,downColor:U,drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:le,borderDownColor:q,wickColor:Te},transparency:50},study:{inputs:{},styles:{},palettes:{},bands:{},area:{},graphics:{},visible:!0,showLegendValues:!0,showLabelsOnPriceScale:!0,precision:"default"},linetoolpitchfork:{fillBackground:!0,transparency:80,style:l.Original,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolpitchfan:{ +fillBackground:!0,transparency:80,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolgannfan:{showLabels:!0,fillBackground:!0,transparency:80,level1:Be(1,8,me,!0),level2:Be(1,4,ue,!0),level3:Be(1,3,pe,!0),level4:Be(1,2,le,!0),level5:Be(1,1,"#64b5f6",!0),level6:Be(2,1,T,!0),level7:Be(3,1,ee,!0),level8:Be(4,1,ne,!0),level9:Be(8,1,j,!0)},linetoolganncomplex:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,scaleRatio:"",showLabels:!0,labelsStyle:{fontSize:12,bold:!1,italic:!1},levels:[y(Te,!0,1),y(ge,!0,1),y(ue,!0,1),y(pe,!0,1),y(le,!0,1),y(Te,!0,1)],fanlines:[xe(k,!1,1,8,1),xe(q,!1,1,5,1),xe(Te,!1,1,4,1),xe(ge,!1,1,3,1),xe(ue,!0,1,2,1),xe(pe,!0,1,1,1),xe(le,!0,1,1,2),xe(le,!1,1,1,3),xe(T,!1,1,1,4),xe(D,!1,1,1,5),xe(k,!1,1,1,8)],arcs:[xe(ge,!0,1,1,0),xe(ge,!0,1,1,1),xe(ge,!0,1,1.5,0),xe(ue,!0,1,2,0),xe(ue,!0,1,2,1),xe(pe,!0,1,3,0),xe(pe,!0,1,3,1),xe(le,!0,1,4,0),xe(le,!0,1,4,1),xe(T,!0,1,5,0),xe(T,!0,1,5,1)]},linetoolgannfixed:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,levels:[y(Te,!0,1),y(ge,!0,1),y(ue,!0,1),y(pe,!0,1),y(le,!0,1),y(Te,!0,1)],fanlines:[xe(k,!1,1,8,1),xe(q,!1,1,5,1),xe(Te,!1,1,4,1),xe(ge,!1,1,3,1),xe(ue,!0,1,2,1),xe(pe,!0,1,1,1),xe(le,!0,1,1,2),xe(le,!1,1,1,3),xe(T,!1,1,1,4),xe(D,!1,1,1,5),xe(k,!1,1,1,8)],arcs:[xe(ge,!0,1,1,0),xe(ge,!0,1,1,1),xe(ge,!0,1,1.5,0),xe(ue,!0,1,2,0),xe(ue,!0,1,2,1),xe(pe,!0,1,3,0),xe(pe,!0,1,3,1),xe(le,!0,1,4,0),xe(le,!0,1,4,1),xe(T,!0,1,5,0),xe(T,!0,1,5,1)]},linetoolgannsquare:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,fillHorzBackground:!0,horzTransparency:80,fillVertBackground:!0,vertTransparency:80,reverse:!1,fans:t(Pe,!1),hlevel1:i(0,Te,!0),hlevel2:i(.25,Se,!0),hlevel3:i(.382,ue,!0),hlevel4:i(.5,pe,!0),hlevel5:i(.618,le,!0),hlevel6:i(.75,T,!0),hlevel7:i(1,Te,!0),vlevel1:i(0,Te,!0),vlevel2:i(.25,Se,!0),vlevel3:i(.382,ue,!0),vlevel4:i(.5,pe,!0),vlevel5:i(.618,le,!0),vlevel6:i(.75,T,!0),vlevel7:i(1,Te,!0)},linetoolfibspeedresistancefan:{fillBackground:!0,transparency:80,grid:{color:"rgba(21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,visible:!0},linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,reverse:!1,hlevel1:i(0,Te,!0),hlevel2:i(.25,Se,!0),hlevel3:i(.382,ue,!0),hlevel4:i(.5,pe,!0),hlevel5:i(.618,le,!0),hlevel6:i(.75,T,!0),hlevel7:i(1,Te,!0),vlevel1:i(0,Te,!0),vlevel2:i(.25,Se,!0),vlevel3:i(.382,ue,!0),vlevel4:i(.5,pe,!0),vlevel5:i(.618,le,!0),vlevel6:i(.75,T,!0),vlevel7:i(1,Te,!0)},linetoolfibretracement:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1, +fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0),level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0),level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetoolfibchannel:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLeft:!1,extendRight:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",coeffsAsPercents:!1,labelFontSize:12,levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0),level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0),level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetoolprojection:{showCoeffs:!0,fillBackground:!0,transparency:80,color1:A,color2:ie,linewidth:1,trendline:{visible:!0,color:Pe,linestyle:CanvasEx.LINESTYLE_SOLID},level1:r(1,"#808080",!0)},linetool5pointspattern:{color:T,textcolor:w,fillBackground:!0,backgroundColor:T,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolcypherpattern:{color:T,textcolor:w,fillBackground:!0,backgroundColor:T,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetooltrianglepattern:{color:N,textcolor:w,fillBackground:!0,backgroundColor:N,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolabcd:{color:le,textcolor:w,fontsize:12,bold:!1,italic:!1,linewidth:1},linetoolthreedrivers:{color:N,textcolor:w,fillBackground:!0,backgroundColor:"rgba(149, 40, 204, 0.5)",fontsize:12,bold:!1,italic:!1,transparency:50,linewidth:1},linetoolheadandshoulders:{color:le,textcolor:w,fillBackground:!0,backgroundColor:le,fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolfibwedge:{showCoeffs:!0,fillBackground:!0,transparency:80,trendline:{visible:!0,color:"#808080",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!1),level8:r(2.618,q,!1),level9:r(3.618,N,!1),level10:r(4.236,ne,!1),level11:r(4.618,ne,!1)},linetoolfibcircles:{showCoeffs:!0,fillBackground:!0,transparency:80,coeffsAsPercents:!1,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED}, +level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!0),level8:r(2.618,q,!0),level9:r(3.618,N,!0),level10:r(4.236,ne,!0),level11:r(4.618,ne,!0)},linetoolfibspeedresistancearcs:{showCoeffs:!0,fillBackground:!0,transparency:80,fullCircles:!1,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(.236,q,!0),level2:r(.382,ue,!0),level3:r(.5,pe,!0),level4:r(.618,le,!0),level5:r(.786,"#64b5f6",!0),level6:r(1,Te,!0),level7:r(1.618,T,!0),level8:r(2.618,q,!0),level9:r(3.618,N,!0),level10:r(4.236,ne,!0),level11:r(4.618,ne,!0)},linetooltrendbasedfibextension:{showCoeffs:!0,showPrices:!0,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,labelFontSize:12,trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,Te,!0),level2:i(.236,q,!0),level3:i(.382,ue,!0),level4:i(.5,pe,!0),level5:i(.618,le,!0),level6:i(.786,"#64b5f6",!0),level7:i(1,Te,!0),level8:i(1.618,T,!0),level9:i(2.618,q,!0),level10:i(3.618,ee,!0),level11:i(4.236,ne,!0),level12:i(1.272,ue,!1),level13:i(1.414,q,!1),level16:i(2,le,!1),level14:i(2.272,ue,!1),level15:i(2.414,pe,!1),level17:i(3,"#64b5f6",!1),level18:i(3.272,Te,!1),level19:i(3.414,T,!1),level20:i(4,"#cc2828",!1),level21:i(4.272,ee,!1),level22:i(4.414,ne,!1),level23:i(4.618,ue,!1),level24:i(4.764,le,!1)},linetooltrendbasedfibtime:{showCoeffs:!0,fillBackground:!0,transparency:80,horzLabelsAlign:"right",vertLabelsAlign:"bottom",trendline:{visible:!0,color:Te,linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:r(0,Te,!0),level2:r(.382,q,!0),level3:r(.5,ue,!1),level4:r(.618,pe,!0),level5:r(1,le,!0),level6:r(1.382,"#64b5f6",!0),level7:r(1.618,Te,!0),level8:r(2,T,!0),level9:r(2.382,q,!0),level10:r(2.618,ee,!0),level11:r(3,ne,!0)},linetoolschiffpitchfork:{fillBackground:!0,transparency:80,style:l.Schiff,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolschiffpitchfork2:{fillBackground:!0,transparency:80,style:l.Schiff2,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)},linetoolinsidepitchfork:{fillBackground:!0,transparency:80,style:l.Inside,median:{visible:!0,color:q,linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:r(.25,me,!1),level1:r(.382,ue,!1),level2:r(.5,pe,!0),level3:r(.618,le,!1),level4:r(.75,"#64b5f6",!1),level5:r(1,T,!0),level6:r(1.5,ee,!1),level7:r(1.75,ne,!1),level8:r(2,j,!1)}, +linetoolregressiontrend:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,styles:{upLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2},downLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2},baseLine:{visible:!0,color:Y,linestyle:CanvasEx.LINESTYLE_DASHED,linewidth:1},extendLines:!1,showPearsons:!0,transparency:70}}},Re(TradingView.defaultProperties.chartproperties),Fe()}if(void 0===TradingView.defaultProperties["study_MA@tv-basicstudies"]&&(TradingView.defaultProperties["study_MA@tv-basicstudies"]={description:"Moving Average",shortDescription:"MA",inputs:{length:9,source:"close"},styles:{MovAvg:{visible:!0,color:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={fontsize:10,borderColor:T,backColor:P,textColor:Le}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]){TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,fontsize:11,levelsStyle:{showLabels:!0,visibility:{P:!0,"S1/R1":!0,"S2/R2":!0,"S3/R3":!0,"S4/R4":!0,"S5/R5":!0},colors:{P:ve,"S1/R1":ve,"S2/R2":ve,"S3/R3":ve,"S4/R4":ve,"S5/R5":ve},widths:{P:1,"S1/R1":1,"S2/R2":1,"S3/R3":1,"S4/R4":1,"S5/R5":1}}}}if(void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:T,linewidth:2}),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:t(z,!1),level1:t("#008000",!1),level2:t("#0000ff",!1),level3:t("#ff00ff",!1),level4:t("#0080ff",!0),level5:t(z,!0),level6:t("#008000",!0),level7:t("#0000ff",!0),level8:t("#ff00ff",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0,color:I,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:Y,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},extendLines:!0,showPearsons:!0,backgroundColor:"rgba(153, 21, 21, 0.3)",transparency:70}}),void 0===TradingView.defaultProperties["study_Compare@tv-basicstudies"]&&(TradingView.defaultProperties["study_Compare@tv-basicstudies"]={minTick:"default"}),void 0===TradingView.defaultProperties["study_Overlay@tv-basicstudies"]){TradingView.defaultProperties["study_Overlay@tv-basicstudies"]={style:a.STYLE_LINE,allowExtendTimeScale:!1,showPriceLine:!1,minTick:"default",candleStyle:{upColor:"#6ba583",downColor:"#d75442",drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:"#225437",borderDownColor:"#5b1a13",wickColor:"#737375",wickUpColor:"#737375",wickDownColor:"#737375",barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:"#6ba583", +downColor:"#d75442",drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"#378658",borderUpColor:"#225437",borderDownColor:"#5b1a13",wickColor:"#737375",wickUpColor:"#737375",wickDownColor:"#737375",barColorsOnPrevClose:!1},barStyle:{upColor:"#6ba583",downColor:"#d75442",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},lineStyle:{color:be,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",styleType:a.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:T,color2:T,linecolor:T,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:95},baselineStyle:{baselineColor:Ae,topFillColor1:ke,topFillColor2:ke,bottomFillColor1:Ve,bottomFillColor2:Ve,topLineColor:Ee,bottomLineColor:De,topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},columnStyle:{upColor:n(le,50),downColor:n(q,50),barColorsOnPrevClose:!0,priceSource:"close"},styles:{open:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0},high:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0},low:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0},close:{visible:!0,color:z,linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:h.Line,histogramBase:0}}}}for(var Oe=e.split("."),We=TradingView.defaultProperties,He=0;He1?h(e[r],t.slice(1),i):(e[r]&&e[r].setValue?e[r].setValue(i):e[r]=i,!0))}function d(e){i||y.logWarn("Path `"+e+"` does not exist.")}}function Re(e,t,i,s){window.__defaultsOverrides&&Ne(e,t,i,window.__defaultsOverrides,s)}function Oe(e,t){window.__settingsOverrides&&Ne(e,null,!1,window.__settingsOverrides,t)}function Fe(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&Re(TradingView.defaultProperties[t],null,!1,t)}))}function We(e,t){return t?function(e,t){var i=Be(e);if(!window._UNIT_TESTS){var s=TradingView.clone(TVSettings.getJSON(e,null));if(function(e){var t=new Set(["linetoolregressiontrend"]);return e.startsWith("study_")||t.has(e)}(e)&&s&&function(e){if(!e)return!1;e=e.toString();var t=new RegExp("\\d+").exec(e);return null!==t&&t[0]===e}(s.version)){var r=s.inputs,n=t.updateStudyInputs(s.id,s.version,"last",r,null);s.inputs=n;var o=t.updateStudyState(s,s);s=o}TradingView.merge(i,s),Oe(i,e)}return i}(e,t):function(e){var t=Be(e);if(!window._UNIT_TESTS){var i=TradingView.clone(TVSettings.getJSON(e,null));if(i){TradingView.merge(t,i);const s=e.split(".");Oe(t,void 0===s[1]?e:s[1])}}return t}(e)}We.create=function(e,t){if(t){var i=Be(e);TradingView.defaultProperties[e]=Object.assign(t,i)}},We.remove=function(e){ +TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){void 0===t?TVSettings.remove(e):TVSettings.setJSON(e,t)},TradingView.factoryDefaults=Be,window.applyDefaultOverridesToLinetools=Fe,window.applyDefaultsOverrides=Re,window.applyPropertiesOverrides=Ne,window.defaults=We,t.applyDefaultOverridesToLinetools=Fe,t.applyDefaultsOverrides=Re,t.applyPropertiesOverrides=Ne,t.defaults=We,t.factoryDefaults=Be,t.saveDefaults=TradingView.saveDefaults},85733:(e,t,i)=>{"use strict";i.r(t),i.d(t,{toolIsCursor:()=>p,toolIsMeasure:()=>_,resetToCursor:()=>m,lockTimeAxisTime:()=>w,tool:()=>C,iconTool:()=>P,cursorTool:()=>T,isToolCreatingNow:()=>x,isToolEditingNow:()=>I,isToolMovingNow:()=>M,isDirectionalMovementActive:()=>L,createdLineTool:()=>A,continuedLineTool:()=>E,cancelledLineTool:()=>k,beenSetLineToolLastPoint:()=>D,startedMovingLineTool:()=>V,movedLineTool:()=>B,finishedMovingLineTool:()=>N,startedChangingLineTool:()=>R,changedLineTool:()=>O,finishedChangingLineTool:()=>F,removedLineTool:()=>W,finishedLineTool:()=>H,changedLineStyle:()=>z,copiedLineTool:()=>U,restoredLineTool:()=>j,restoredLineToolState:()=>G,isPointSelectedNow:()=>q,isStudyEditingNow:()=>Y,createLineTool:()=>X,continueLineTool:()=>Z,cancelLineTool:()=>J,setLineToolLastPoint:()=>Q,startMovingLineTool:()=>ee,moveLineTool:()=>te,finishMovingLineTool:()=>ie,startChangingLineTool:()=>se,changeLineTool:()=>re,finishChangingLineTool:()=>ne,removeLineTool:()=>oe,finishLineTool:()=>ae,changeLineStyle:()=>le,copyLineTool:()=>ce,restoreLineTool:()=>he,restoreLineToolState:()=>de,init:()=>_e,runOnDrawingStateReady:()=>me,properties:()=>ge,hideAllDrawings:()=>fe,hideAllIndicators:()=>ve,lockDrawings:()=>Se,hideMarksOnBars:()=>ye,drawOnAllCharts:()=>be,drawOnAllChartsMode:()=>we,lockTimeAxis:()=>Ce});var s=i(88537),r=i(32255),n=i(88564),o=i(52714),a=i.n(o),l=i(2872),c=i.n(l),h=i(56840),d=i(76422),u=i(59803);function p(e){return"cursor"===e||"arrow"===e||"dot"===e}function _(e){return"measure"===e}function m(e=!1){if(!e&&g){if(g.childs().stayInDrawingMode.value())return}C.setValue(T.value())}let g=null,f=null,v=null,S=null,y=null,b=null;const w=new(a()),C=new(a()),P=new(a()),T=new(a()),x=new(a())(!1),I=new(a())(!1),M=new(a())(!1),L=new(a())(!1),A=new(c()),E=new(c()),k=new(c()),D=new(c()),V=new(c()),B=new(c()),N=new(c()),R=new(c()),O=new(c()),F=new(c()),W=new(c()),H=new(c()),z=new(c()),U=new(c()),j=new(c()),G=new(c()),q=new(a())(!1),Y=new(a())(!1);function K(e,t){const i=t||{value:!1};return t=>{i.value||(i.value=!0,e.fire(t),i.value=!1)}}const $={value:!1},X=K(A,$),Z=K(E,$),J=K(k,$),Q=K(D,$),ee=K(V),te=K(B),ie=K(N),se=K(R),re=K(O),ne=K(F),oe=K(W),ae=K(H),le=K(z,$),ce=K(U,$),he=K(j),de=K(G);let ue=!1,pe=[];function _e(){ue||(C.setValue(h.getValue("chart.cursorPreference","cursor")),C.subscribe(e=>p(e)&&T.setValue(e),{callWithLast:!0}),T.subscribe(e=>{e&&h.setValue("chart.cursorPreference",e)}),g=new n.DefaultProperty("drawings"),f=(0,r.createPrimitiveProperty)(),v=(0,r.createPrimitiveProperty)(),S=(0,r.createPrimitiveProperty)(),y=(0, +r.createPrimitiveProperty)(),b=(0,r.createPrimitiveProperty)(),f.setValue(!1),v.setValue(!1),S.setValue(!1),y.setValue(!1),b.setValue(!1),C.subscribe(()=>{(0,d.emit)("onSelectedLineToolChanged")}),P.subscribe(()=>{(0,u.saveDefaults)("linetoolicon",{...(0,u.defaults)("linetoolicon"),icon:P.value()})}),ue=!0,pe.forEach(e=>e()),pe=[])}function me(e){ue?e():pe.push(e)}function ge(){return(0,s.ensureNotNull)(g)}function fe(){return(0,s.ensureNotNull)(f)}function ve(){return(0,s.ensureNotNull)(v)}function Se(){return(0,s.ensureNotNull)(S)}function ye(){return(0,s.ensureNotNull)(y)}function be(){return ge().childs().drawOnAllCharts}function we(){return ge().childs().drawOnAllChartsMode}function Ce(){return(0,s.ensureNotNull)(b)}},77216:(e,t,i)=>{"use strict";i.d(t,{EnvironmentState:()=>r});var s=i(49483);class r{constructor(e,t=!1){this._shift=!1,this._mod=!1,this._alt=!1,void 0!==e&&(this._shift=Boolean(e.shiftKey),this._mod=Boolean((0,s.isMac)()?e.metaKey:e.ctrlKey),this._alt=Boolean(e.altKey)),this._isApiEvent=t}shift(){return this._shift}mod(){return this._mod}alt(){return this._alt}shiftOnly(){return this._shift&&!this._mod&&!this._alt}modOnly(){return this._mod&&!this._shift&&!this._alt}altOnly(){return this._alt&&!this._shift&&!this._mod}modShift(){return this._shift&&this._mod&&!this._alt}isApiEvent(){return this._isApiEvent}static create(e=!1,t=!1,i=!1){return new r({shiftKey:e,ctrlKey:t,metaKey:t,altKey:i})}}},19234:(e,t,i)=>{"use strict";function s(e){return"="+JSON.stringify(function e(t){return Object.keys(t).sort().reduce((i,s)=>("[object Object]"===Object.prototype.toString.call(t[s])?i[s]=e(t[s]):i[s]=t[s],i),{})}(e))}function r(e){return s(e)}function n(e){return"="===e[0]}function o(e){if(!n(e))return{symbol:e};try{return JSON.parse(e.slice(1))}catch(t){return{symbol:e}}}function a(e){return"string"==typeof e?e:a(e.symbol)}i.r(t),i.d(t,{encodeExtendedSymbolOrGetSimpleSymbolString:()=>r,isEncodedExtendedSymbol:()=>n,decodeExtendedSymbol:()=>o,unwrapSimpleSymbol:()=>a})},69147:(e,t,i)=>{"use strict";i.d(t,{customFormatters:()=>s});const s={dateFormatter:null,timeFormatter:null,tickMarkFormatter:null,priceFormatterFactory:null,studyFormatterFactory:null}},7043:(e,t,i)=>{"use strict";i.d(t,{dateFormatFunctions:()=>p,availableDateFormats:()=>_,defaultDateFormat:()=>m});var s=i(28353),r=i(97098);const n={1:()=>(0,s.t)("Jan"),2:()=>(0,s.t)("Feb"),3:()=>(0,s.t)("Mar"),4:()=>(0,s.t)("Apr"),5:()=>(0,s.t)("May",{context:"short"}),6:()=>(0,s.t)("Jun"),7:()=>(0,s.t)("Jul"),8:()=>(0,s.t)("Aug"),9:()=>(0,s.t)("Sep"),10:()=>(0,s.t)("Oct"),11:()=>(0,s.t)("Nov"),12:()=>(0,s.t)("Dec")},o=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,a=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),l=(e,t)=>(0,r.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),c=(e,t)=>n[o(e,t)](),h=(e,t)=>(0,r.numberToStringWithLeadingZero)(o(e,t),2),d=(e,t)=>(0,r.numberToStringWithLeadingZero)(a(e,t)%100,2),u=(e,t)=>(0,r.numberToStringWithLeadingZero)(a(e,t),4),p={"dd MMM 'yy":(e,t)=>`${l(e,t)} ${c(e,t)} '${d(e,t)}`, +"MMM dd, yyyy":(e,t)=>`${c(e,t)} ${l(e,t)}, ${u(e,t)}`,"MMM dd":(e,t)=>`${c(e,t)} ${l(e,t)}`,"yyyy-MM-dd":(e,t)=>`${u(e,t)}-${h(e,t)}-${l(e,t)}`,"yy-MM-dd":(e,t)=>`${d(e,t)}-${h(e,t)}-${l(e,t)}`,"yy/MM/dd":(e,t)=>`${d(e,t)}/${h(e,t)}/${l(e,t)}`,"yyyy/MM/dd":(e,t)=>`${u(e,t)}/${h(e,t)}/${l(e,t)}`,"dd-MM-yyyy":(e,t)=>`${l(e,t)}-${h(e,t)}-${u(e,t)}`,"dd-MM-yy":(e,t)=>`${l(e,t)}-${h(e,t)}-${d(e,t)}`,"dd/MM/yy":(e,t)=>`${l(e,t)}/${h(e,t)}/${d(e,t)}`,"dd/MM/yyyy":(e,t)=>`${l(e,t)}/${h(e,t)}/${u(e,t)}`,"MM/dd/yy":(e,t)=>`${h(e,t)}/${l(e,t)}/${d(e,t)}`,"MM/dd/yyyy":(e,t)=>`${h(e,t)}/${l(e,t)}/${u(e,t)}`},_=Object.keys(p),m=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},1860:(e,t,i)=>{"use strict";i.d(t,{DateFormatter:()=>n});var s=i(69147),r=i(7043);class n{constructor(e="yyyy-MM-dd"){this._dateFormatFunc=r.dateFormatFunctions[e]}format(e){return s.customFormatters&&s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!1)}formatLocal(e){return s.customFormatters.dateFormatter?s.customFormatters.dateFormatter.formatLocal?s.customFormatters.dateFormatter.formatLocal(e):s.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!0)}}},95792:(e,t,i)=>{"use strict";i.d(t,{DateTimeFormatter:()=>o});var s=i(64806),r=i(1860);const n={dateFormat:"yyyy-MM-dd",timeFormat:"%h:%m:%s",dateTimeSeparator:" "};class o{constructor(e={}){const t=Object.assign({},n,e);this._dateFormatter=new r.DateFormatter(t.dateFormat),this._timeFormatter=new s.TimeFormatter(t.timeFormat),this._separator=t.dateTimeSeparator}format(e){return`${this._dateFormatter.format(e)}${this._separator}${this._timeFormatter.format(e)}`}formatLocal(e){return`${this._dateFormatter.formatLocal(e)}${this._separator}${this._timeFormatter.formatLocal(e)}`}}},51264:(e,t,i)=>{"use strict";i.d(t,{LimitedPrecisionNumericFormatter:()=>r});var s=i(80643);class r{constructor(e=1){this._precision=e}format(e){(0,s.isNumber)(e)||(e=parseFloat(e));const t=e.toFixed(this._precision),i=Math.pow(10,-this._precision);return Math.max(parseFloat(t),i)+""}parse(e){const t=parseFloat(e);return isNaN(t)?{res:!1}:{res:!0,value:t,suggest:this.format(t)}}}},95505:(e,t,i)=>{"use strict";i.d(t,{NumericFormatter:()=>n});var s=i(97098),r=i(60521);class n{constructor(e){this._precision=e}format(e){return(void 0!==this._precision?e.toFixed(this._precision):n.formatNoE(e)).replace(".",s.formatterOptions.decimalSign)}parse(e){const t=e.replace(s.formatterOptions.decimalSign,".");let i=parseFloat(t);return this._precision&&(i=+i.toFixed(this._precision)),i}static formatNoE(e){if(!Number.isFinite(e))return String(e);const t=new r.Big(e);return t.lt(1)?t.toFixed():t.toString()}}},26811:(e,t,i)=>{"use strict";i.d(t,{PercentageFormatter:()=>n});var s=i(97098),r=i(62820);class n extends s.PriceFormatter{constructor(e){super(e),this.type="percentage"}state(){const e=s.PriceFormatter.prototype.state.call(this);return e.percent=!0,e}parse(e){return e=e.replace("%",""),super.parse(e)}format(e,t,i,s,n=!0){ +const o=super.format(e,t,i,s,!1)+"%";return n?(0,r.forceLTRStr)(o):o}static serialize(e){return e.state()}static deserialize(e){return new n(e.priceScale)}}},97645:(e,t,i)=>{"use strict";i.d(t,{PipFormatter:()=>r});var s=i(97098);class r extends s.PriceFormatter{constructor(e,t,i,s){t||(t=1),"forex"!==i&&"cfd"!==i||!s?(super(1),this._isForex=!1):(super(s),this._isForex=!0),this._pipPriceScale=e,this._pipMinMove=t,this._pipMinMove2=s}format(e,t,i){let s=this._isForex?this._pipMinMove2:this._pipMinMove;return void 0===s&&(s=NaN),super.format(e*this._pipPriceScale/s,t,i)}}},97098:(e,t,i)=>{"use strict";i.r(t),i.d(t,{formatterOptions:()=>l,numberToStringWithLeadingZero:()=>c,isFormatterHasForexAdditionalPrecision:()=>h,PriceFormatter:()=>d});var s=i(28353),r=i(80643),n=i(62820);const o=(0,i(98125).getLogger)("Chart.PriceFormatter"),a=new RegExp(/^(-?)[0-9]+$/),l={decimalSign:".",decimalSignFractional:"'"};function c(e,t){if(!(0,r.isNumber)(e))return"n/a";if(!(0,r.isInteger)(t))throw new TypeError("invalid length");if(t<0||t>16)throw new TypeError("invalid length");if(0===t)return e.toString();return("0000000000000000"+e.toString()).slice(-t)}function h(e){return"hasForexAdditionalPrecision"in e}class d{constructor(e,t,i,n){if(this.type="price",this._formatterErrors={custom:(0,s.t)("Price format is invalid."),fraction:(0,s.t)("Fraction part is invalid."),secondFraction:(0,s.t)("Second fraction part is invalid.")},t||(t=1),(0,r.isNumber)(e)&&(0,r.isInteger)(e)||(e=100),e<0)throw new TypeError("invalid base");this._priceScale=e,this._minMove=t,this._minMove2=n,i&&void 0!==n&&n>0&&2!==n&&4!==n&&8!==n?o.logDebug("invalid minmove2"):(this._fractional=i,this.calculateDecimal())}isFractional(){return!!this._fractional}state(){return{fractional:this._fractional,fractionalLength:this._fractionalLength,minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale}}calculateDecimal(){if(this._fractionalLength=0,this._priceScale>0&&this._minMove>0){let e=this._priceScale;for(this._fractional&&this._minMove2&&(e/=this._minMove2);e>1;)e/=10,this._fractionalLength++}}format(e,t,i,s=!0,r=!0){let o,a="";return e<0?(a=!1===s?"":"−",e=-e):e&&!0===t&&(a="+"),o=this._fractional?a+this._formatAsFractional(e,i):a+this._formatAsDecimal(e,i),r?(0,n.forceLTRStr)(o):o}parse(e){return e=(e=(0,n.stripLTRMarks)(e)).replace("−","-"),this._fractional?this._minMove2?this._parseAsDoubleFractional(e):this._parseAsSingleFractional(e):this._parseAsDecimal(e)}hasForexAdditionalPrecision(){return!this._fractional&&10===this._minMove2}static serialize(e){return e.state()}static deserialize(e){return new d(e.priceScale,e.minMove,e.fractional,e.minMove2)}_formatAsDecimal(e,t){let i;t=t||0,i=this._fractional?Math.pow(10,this._fractionalLength||0):Math.pow(10,t)*this._priceScale/this._minMove;const s=1/i;let r;if(i>1)r=Math.floor(e);else{const t=Math.floor(Math.round(e/s)*s);r=0===Math.round((e-t)/s)?t:t+s}let n="";if(i>1){let s=parseFloat((Math.round(e*i)-r*i).toFixed(this._fractionalLength));s>=i&&(s-=i,r+=1) +;const o=void 0!==this._fractionalLength?this._fractionalLength:NaN;n=l.decimalSign+c(parseFloat(s.toFixed(this._fractionalLength))*this._minMove,o+t),n=this._removeEndingZeros(n,t)}return r.toString()+n}_getFractPart(e,t,i){const s=[0,5],r=[0,2,5,7],n=[0,1,2,3,5,6,7,8];return 2===i?void 0===s[e]?-1:s[e]:4===i?void 0===r[e]?-1:r[e]:8===i&&2===t?void 0===n[e]?-1:n[e]:e}_formatAsFractional(e,t){const i=this._priceScale/this._minMove;let s=Math.floor(e),r=t?Math.floor(e*i)-s*i:Math.round(e*i)-s*i;r===i&&(r=0,s+=1);let n="";if(t){let o=(e-s-r/i)*i;o=Math.round(o*Math.pow(10,t)),n=c(o,t),n=this._removeEndingZeros(n,t)}if(!this._fractionalLength)throw new Error("_fractionalLength is not calculated");let o="";if(this._minMove2){const e=r%this._minMove2;r=(r-e)/this._minMove2;const t=c(r,this._fractionalLength),i=this._getFractPart(e,2,this._minMove2);o=t+l.decimalSignFractional+i}else r=this._getFractPart(r,1,this._priceScale),o=c(r*this._minMove,this._fractionalLength);return s.toString()+l.decimalSignFractional+o+n}_removeEndingZeros(e,t){for(let i=0;i=s||r<0)return{error:this._formatterErrors.fraction,res:!1};let n=i+r/s;return e&&(n=-n),{value:n,res:!0,suggest:this.format(n)}}return{error:this._formatterErrors.custom,res:!1}}_parseAsDoubleFractional(e){let t=a.exec(e);if(t){const t=parseFloat(e);return{value:t,res:!0,suggest:this.format(t)}}if(t=new RegExp("^(-?)([0-9]+)\\"+l.decimalSignFractional+"([0-9]+)\\"+l.decimalSignFractional+"([0-9]+)$").exec(e),t){const e=!!t[1],i=parseInt(t[2]),s=void 0!==this._minMove2?this._minMove2:NaN,r=this._priceScale/s,n=this._minMove2,o=this._patchFractPart(parseInt(t[3]),1,r),a=this._patchFractPart(parseInt(t[4]),2,n);if(o>=r||o<0)return{error:this._formatterErrors.fraction,res:!1};if(void 0!==n&&a>=n||a<0)return{error:this._formatterErrors.secondFraction,res:!1};let l=void 0!==n?i+o/r+a/(r*n):NaN;return e&&(l=-l),{value:l,res:!0,suggest:this.format(l)}}return{error:this._formatterErrors.custom,res:!1}}}},64806:(e,t,i)=>{"use strict";i.d(t,{TimeFormatter:()=>n});var s=i(69147),r=i(97098);class n{constructor(e){this._formatStr=e||"%h:%m:%s"}format(e){ +return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",(0,r.numberToStringWithLeadingZero)(e.getUTCHours(),2)).replace("%m",(0,r.numberToStringWithLeadingZero)(e.getUTCMinutes(),2)).replace("%s",(0,r.numberToStringWithLeadingZero)(e.getUTCSeconds(),2))}formatLocal(e){return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.formatLocal?s.customFormatters.timeFormatter.formatLocal(e):s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",(0,r.numberToStringWithLeadingZero)(e.getHours(),2)).replace("%m",(0,r.numberToStringWithLeadingZero)(e.getMinutes(),2)).replace("%s",(0,r.numberToStringWithLeadingZero)(e.getSeconds(),2))}}},92242:(e,t,i)=>{"use strict";i.d(t,{TimeSpanFormatter:()=>r});var s=i(28353);class r{format(e){const t=e<0;e=Math.abs(e);const i=Math.floor(e/86400);e-=86400*i;const r=Math.floor(e/3600);e-=3600*r;const n=Math.floor(e/60);e-=60*n;let o="";return i&&(o+=i+(0,s.t)("d",{context:"dates"})+" "),r&&(o+=r+(0,s.t)("h",{context:"dates"})+" "),n&&(o+=n+(0,s.t)("m",{context:"dates"})+" "),e&&(o+=e+(0,s.t)("s",{context:"dates"})+" "),t&&(o="-"+o),o.trim()}}},67802:(e,t,i)=>{"use strict";i.d(t,{VolumeFormatter:()=>a});var s=i(28353),r=i(95505),n=i(80643),o=i(93751);class a{constructor(e){this.type="volume",this._numericFormatter=new r.NumericFormatter,this._fractionalValues=void 0!==e&&e>0,this._precision=e}state(){return{precision:this._precision}}format(e,t){if(!(0,n.isNumber)(e))return"---";let i="";return e<0?(i="−",e=-e):e>0&&t&&(i="+"),e>=1e100?(0,s.t)("N/A"):(!this._fractionalValues||e>=995?e=Math.round(e):this._fractionalValues&&(e=+e.toFixed(this._precision)),e<995?i+this._formatNumber(e):e<999995?i+this._formatNumber(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),i+this._formatNumber(e/1e6)+"M"):e<999999999995?(e=1e6*Math.round(e/1e6),i+this._formatNumber(e/1e9)+"B"):(e=1e9*Math.round(e/1e9),i+this._formatNumber(e/1e12)+"T"))}parse(e){if("---"===e)return{error:"not a number",res:!1,value:NaN};const t={K:1e3,M:1e6,B:1e9},i=e.slice(-1);if(t.hasOwnProperty(i)){const s=this._numericFormatter.parse(e.slice(0,-1));return(0,n.isNumber)(s)?{res:!0,value:s*t[i]}:{error:"not a number",res:!1,value:NaN}}{const t=this._numericFormatter.parse(e);return(0,n.isNumber)(t)?{res:!0,value:t}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new a(e.precision)}_formatNumber(e){return this._fractionalValues&&(e=(0,o.fixComputationError)(e)),this._numericFormatter.format(e).replace(/(\.[1-9]*)0+$/,(e,t)=>t)}}},88129:(e,t,i)=>{"use strict";i.d(t,{shouldBeFormattedAsPercent:()=>n,shouldBeFormattedAsIndexedTo100:()=>o,getPriceValueFormatterForSource:()=>a});var s=i(37667),r=i(79680);function n(e){const t=e.priceScale();return!(null===t||!t.isPercentage())&&(!(0,r.isActingAsSymbolSource)(e)||(0,s.isPriceSourceStyle)(e.style()))}function o(e){const t=e.priceScale();return!(null===t||!t.isIndexedTo100())&&(!(0,r.isActingAsSymbolSource)(e)||(0,s.isPriceSourceStyle)(e.style()))} +function a(e){const t=e.priceScale();if(o(e)&&null!==t)return i=>{var s;return t.formatPriceIndexedTo100(i,null!==(s=e.firstValue())&&void 0!==s?s:100)};if(n(e)&&null!==t)return i=>{var s;return t.formatPricePercentage(i,null!==(s=e.firstValue())&&void 0!==s?s:100)};const i=e.formatter();return i.format.bind(i)}},84346:(e,t,i)=>{"use strict";function s(e,t,i){if(e.isTouch){if(void 0!==i)return i(e),!0}else if(void 0!==t)return t(e),!0;return!1}function r(e,t,i,s){return void 0!==t.executeDefaultAction&&(e.isTouch?Boolean(t.executeDefaultAction[s]):Boolean(t.executeDefaultAction[i]))}var n;i.d(t,{tryCallHandler:()=>s,shouldDefaultActionBeExecuted:()=>r,AreaName:()=>n,HitTestResult:()=>o}),function(e){e.Style="Style",e.Text="Text",e.SourceItemMove="SourceItemMove"}(n||(n={}));class o{constructor(e,t,i){this._result=e,this._data=t||null,this._eraseMarker=i}result(){return this._result}data(){return this._data}hasPressedMoveHandler(e){return null!==this._data&&function(e,t,i){if(e.isTouch){if(void 0!==i)return!0}else if(void 0!==t)return!0;return!1}(e,this._data.pressedMouseMoveHandler,this._data.touchMoveHandler)}tryCallMouseDownOrTouchStartHandler(e){return null!==this._data&&s(e,this._data.mouseDownHandler,this._data.touchStartHandler)}tryCallMouseUpOrTouchEndHandler(e){return null!==this._data&&s(e,this._data.mouseUpHandler,this._data.touchEndHandler)}tryCallMouseEnterHandler(e){return null!==this._data&&s(e,this._data.mouseEnterHandler)}tryCallMouseLeaveHandler(e){return null!==this._data&&s(e,this._data.mouseLeaveHandler)}tryCallMouseMoveHandler(e){return null!==this._data&&s(e,this._data.mouseMoveHandler)}tryCallClickOrTapHandler(e){return null!==this._data&&s(e,this._data.clickHandler,this._data.tapHandler)}tryCallDblClickOrDblTapHandler(e){return null!==this._data&&s(e,this._data.doubleClickHandler,this._data.doubleTapHandler)}tryCallContextMenuHandler(e){return null!==this._data&&s(e,this._data.contextMenuHandler,this._data.touchContextMenuHandler)}eraseMarker(){return this._eraseMarker}}o.MOVEPOINT_BACKGROUND=1,o.REGULAR=2,o.MOVEPOINT=3,o.CHANGEPOINT=4,o.CUSTOM=5},22221:(e,t,i)=>{"use strict";i.d(t,{HorizontalLinePaneView:()=>n});var s=i(40254),r=i(43891);class n{constructor(){this._lineRendererData={y:0,color:"rgba(0, 0, 0, 0)",linewidth:1,linestyle:r.LINESTYLE_SOLID,visible:!1},this._lineRenderer=new s.HorizontalLineRenderer,this._invalidated=!0,this._lineRenderer.setData(this._lineRendererData)}update(e){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._lineRenderer}}},27759:(e,t,i)=>{"use strict";var s,r;i.d(t,{PlDisplay:()=>s,TradingSourcesHorizontalAlignment:()=>r,tradingPreferencesDefault:()=>n,CustomSourceLayer:()=>o}),function(e){e[e.Money=0]="Money",e[e.Pips=1]="Pips",e[e.Percentage=2]="Percentage"}(s||(s={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(r||(r={}));const n={showPositions:!1,positionPL:{visibility:!1,display:s.Money},bracketsPL:{visibility:!1,display:s.Money},showOrders:!1,showExecutions:!1, +showExecutionsLabels:!1,showReverse:!1,extendLeft:!1,lineLength:0,horizontalAlignment:r.Right,lineWidth:0,lineStyle:0};var o;!function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(o||(o={}))},29823:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ResolutionKind:()=>n,SpecialResolutionKind:()=>o,Interval:()=>h,isHour:()=>u});const s=/^(\d*)([TSHDWMR])$/,r=/^(\d+)$/;var n,o;!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"}(n||(n={})),function(e){e.Hours="hours"}(o||(o={}));const a={};a[n.Ticks]=1e3,a[n.Seconds]=1e3,a[n.Minutes]=60*a[n.Seconds],a[n.Days]=1440*a[n.Minutes],a[n.Weeks]=7*a[n.Days];const l={T:n.Ticks,S:n.Seconds,D:n.Days,W:n.Weeks,M:n.Months,R:n.Range},c=new Set([n.Ticks,n.Seconds,n.Minutes]);class h{constructor(e,t){this._kind=n.Invalid,this._multiplier=0,e!==n.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}multiplier(){return this._multiplier}isValid(){return this.kind()!==n.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=c.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===n.Seconds}isMinutes(){return this.kind()===n.Minutes}isMinuteHours(){return this.kind()===n.Minutes&&u(this.multiplier())}isDays(){return this.kind()===n.Days}isWeeks(){return this.kind()===n.Weeks}isMonths(){return this.kind()===n.Months}isRange(){return this.kind()===n.Range}isTicks(){return this.kind()===n.Ticks}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==n.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===n.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof h))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||h.parse(e).isEqualTo(h.parse(t))}static parseExt(e){e=(e+"").toUpperCase().split(",")[0];let t=s.exec(e);return null!==t?"H"===t[2]?{interval:new h(n.Minutes,60*d(t[1])),guiResolutionKind:o.Hours}:{interval:new h(l[t[2]],d(t[1])),guiResolutionKind:l[t[2]]}:(t=r.exec(e),null!==t?{interval:new h(n.Minutes,d(t[1])),guiResolutionKind:n.Minutes}:{interval:new h(n.Invalid,0),guiResolutionKind:n.Invalid})}static parse(e){return h.parseExt(e).interval}static kind(e){return h.parse(e).kind()}static isValid(e){return h.parse(e).isValid()}static isDWM(e){return h.parse(e).isDWM()}static isIntraday(e){return h.parse(e).isIntraday()}static isSeconds(e){return h.parse(e).isSeconds()}static isMinutes(e){return h.parse(e).isMinutes()}static isMinuteHours(e){return h.parse(e).isMinuteHours()} +static isDays(e){return h.parse(e).isDays()}static isWeeks(e){return h.parse(e).isWeeks()}static isMonths(e){return h.parse(e).isMonths()}static isRange(e){return h.parse(e).isRange()}static isTicks(e){return h.parse(e).isTicks()}static isTimeBased(e){return h.parse(e).isTimeBased()}static normalize(e){const t=h.parse(e);return t.isValid()?t.value():null}}function d(e){return 0===e.length?1:parseInt(e,10)}function u(e){return e>=60&&!(e%60)}},52418:(e,t,i)=>{"use strict";i.d(t,{intervalsVisibilitiesDefaults:()=>s});const s={ticks:!0,seconds:!0,secondsFrom:1,secondsTo:59,minutes:!0,minutesFrom:1,minutesTo:59,hours:!0,hoursFrom:1,hoursTo:24,days:!0,daysFrom:1,daysTo:366,weeks:!0,weeksFrom:1,weeksTo:52,months:!0,monthsFrom:1,monthsTo:12,ranges:!0}},20838:(e,t,i)=>{"use strict";i.d(t,{IntervalsVisibilitiesProperty:()=>n});var s=i(2015),r=i.n(s);i(36759);class n extends(r()){state(e){return super.state(e)}storeStateIfUndefined(){return!1}}},36759:(e,t,i)=>{"use strict";i.d(t,{makeIntervalsVisibilitiesVisibleAtInterval:()=>a,isActualInterval:()=>c,nonDefaultIntervalsVisibilities:()=>h,mergeIntervalVisibilitiesDefaults:()=>d});var s=i(88537),r=i(29823),n=i(52418),o=i(80643);function a(e,t){let i=t.multiplier();if(t.isTicks()&&(e.ticks=!0),t.isSeconds()&&(i<60?(e.seconds=!0,e.secondsFrom=Math.min(e.secondsFrom,i),e.secondsTo=Math.max(e.secondsTo,i)):(i/=60,t=new r.Interval(r.ResolutionKind.Minutes,i))),t.isMinutes())if(i<60)e.minutes=!0,e.minutesFrom=Math.min(e.minutesFrom,i),e.minutesTo=Math.max(e.minutesTo,i);else{const t=Math.floor(i/60);e.hours=!0,e.hoursFrom=Math.min(e.hoursFrom,t),e.hoursTo=Math.max(e.hoursTo,t)}t.isDays()&&(e.days=!0,e.daysFrom=Math.min(e.daysFrom,i),e.daysTo=Math.max(e.daysTo,i)),t.isWeeks()&&(e.weeks=!0,e.weeksFrom=Math.min(e.weeksFrom,i),e.weeksTo=Math.max(e.weeksTo,i)),t.isMonths()&&(e.months=!0,e.monthsFrom=Math.min(e.monthsFrom,i),e.monthsTo=Math.max(e.monthsTo,i)),t.isRange()&&(e.ranges=!0)}function l(e,t,i,s){return e&&s>=t&&s<=i}function c(e,t){const i=t.childs();switch(e.kind()){case r.ResolutionKind.Ticks:return i.ticks.value();case r.ResolutionKind.Seconds:if(e.multiplier()<60)return l(i.seconds.value(),i.secondsFrom.value(),i.secondsTo.value(),e.multiplier());{const t=Math.floor(e.multiplier()/60);return l(i.minutes.value(),i.minutesFrom.value(),i.minutesTo.value(),t)}case r.ResolutionKind.Minutes:if(e.multiplier()<60)return l(i.minutes.value(),i.minutesFrom.value(),i.minutesTo.value(),e.multiplier());{const t=Math.floor(e.multiplier()/60);return l(i.hours.value(),i.hoursFrom.value(),i.hoursTo.value(),t)}case r.ResolutionKind.Days:return l(i.days.value(),i.daysFrom.value(),i.daysTo.value(),e.multiplier());case r.ResolutionKind.Weeks:return l(i.weeks.value(),i.weeksFrom.value(),i.weeksTo.value(),e.multiplier());case r.ResolutionKind.Months:return l(i.months.value(),i.monthsFrom.value(),i.monthsTo.value(),e.multiplier());case r.ResolutionKind.Range:return i.ranges.value()}return(0,s.assert)(!1,"Unsupported resolution: "+e.value()),!1}function h(e){ +const t=Object.keys(e).filter(t=>n.intervalsVisibilitiesDefaults[t]!==e[t]);return 0===t.length?null:t.reduce((t,i)=>(t[i]=e[i],t),{})}function d(e){return(0,o.merge)((0,o.clone)(n.intervalsVisibilitiesDefaults),null!=e?e:{})}},35878:(e,t,i)=>{"use strict";function s(e){return Boolean(e.showInObjectTree)}i.d(t,{isDataSource:()=>s})},95836:(e,t,i)=>{"use strict";var s;i.d(t,{SymbolErrorPermissionDeniedReason:()=>s,permissionDenied:()=>r,invalidSymbol:()=>n}),function(e){e.Symbol="symbol",e.GroupPermission="group"}(s||(s={}));const r="permission denied",n="invalid symbol"},79680:(e,t,i)=>{"use strict";function s(e){const t=(null==e?void 0:e.symbolSource)&&e.symbolSource()===e,i=void 0!==(null==e?void 0:e.isActingAsSymbolSource);return t||i}function r(e){return s(e)&&e.isActingAsSymbolSource().value()}i.d(t,{isSymbolSource:()=>s,isActingAsSymbolSource:()=>r})},34580:(e,t,i)=>{"use strict";i.d(t,{LevelsProperty:()=>p});var s=i(80643),r=i(88564),n=i(59803);const o={prefixes:[""],range:[0,0],names:["coeff","color","visible","linestyle","linewidth"],typecheck:{pack:()=>Object(),unpack:()=>[]}};function a(e,t,i,s){return s.push(i[t]),s}function l(e,t,i,s){return s[t]=i[e],s}function c(){return[]}function h(){return{}}function d(e,t,i){return i.prefixes.forEach(r=>{const n=r+"level";for(let r=i.range[0];r<=i.range[1];r++)if(e[n+r]&&(0,s.isSameType)(e[n+r],t.typecheck())){let s=t.tpl();i.names.forEach((i,o)=>{s=t.fill(""+o,i,e[n+r],s)}),e[n+r]=s}}),e}function u(e,t,i){return i(e,{tpl:h,fill:l,typecheck:t.typecheck.unpack},t)}class p extends r.DefaultProperty{constructor(e,t,i,s,r){r=null!=r?r:d;const n={...o,...null!=s?s:{}};super(e,t?u(t,n,r):t,i),this._map=n,this._levelsIterator=r}state(e,t){const i=super.state(e);return t?i:(s=i,r=this._map,(0,this._levelsIterator)(s,{tpl:c,fill:a,typecheck:r.typecheck.pack},r));var s,r}saveDefaults(){this._useUserPreferences&&(0,n.saveDefaults)(this._defaultName,this.state(this._exclusions,!0))}clone(){const e=this.state(),t=new p(this._defaultName,e);for(let e=0;e{"use strict";i.d(t,{LineToolsGroup:()=>l});var s=i(2872),r=i.n(s),n=i(9423);function o(e){return e.properties().visible.value()}function a(e){return!o(e)}class l{constructor(e,t,i){this._instanceId=(0,n.randomHashN)(6),this._onChanged=new(r()),this._lineToolsSet=new Set,this._lineTools=[...e],this._lineToolsSet=new Set(this._lineTools),this._name=t,this.id=i||(0,n.randomHashN)(6)}instanceId(){return this._instanceId}lineTools(){return this._lineTools}name(){return this._name}setName(e){this._doAndFireOnChange(()=>{this._name=e})}isActualSymbol(){return this._lineTools.length>0&&this._lineTools[0].isActualSymbol()&&this._lineTools[0].isActualCurrency()&&this._lineTools[0].isActualUnit()}symbol(){return this._lineTools[0].symbol()}currencyId(){var e;return null!==(e=this._lineTools[0].properties().childs().currencyId.value())&&void 0!==e?e:null}unitId(){var e +;return null!==(e=this._lineTools[0].properties().childs().unitId.value())&&void 0!==e?e:null}sharingMode(){return this._lineTools[0].sharingMode()}share(e){this._lineTools.forEach(t=>t.share(e))}containsLineTool(e){return this._lineToolsSet.has(e)}addLineTools(e){this._doAndFireOnChange(t=>{e.forEach(e=>this._lineToolsSet.add(e)),this._lineTools.push(...e),t.push(...e.map(e=>e.id()))})}excludeLineTool(e){this._doAndFireOnChange(t=>{this._lineToolsSet.delete(e);const i=this._lineTools.indexOf(e);this._lineTools.splice(i,1),t.push(e.id())})}excludeLineTools(e){this._doAndFireOnChange(t=>{const i=new Set(e);e.forEach(e=>this._lineToolsSet.delete(e)),this._lineTools=this._lineTools.filter(e=>!i.has(e)),t.push(...e.map(e=>e.id()))})}state(){return{id:this.id,name:this._name,tools:this._lineTools.map(e=>e.id())}}visibility(){const e=this._lineTools.some(o),t=this._lineTools.some(a);return e&&!t?"Visible":t&&!e?"Invisible":"Partial"}locked(){const e=this._lineTools.some(e=>e.properties().frozen.value()),t=this._lineTools.some(e=>!e.properties().frozen.value());return e&&!t?"Locked":t&&!e?"Unlocked":"Partial"}isActualInterval(){const e=this._lineTools.some(e=>e.isActualInterval()),t=this._lineTools.some(e=>!e.isActualInterval());return e&&!t?"IsActualInterval":t&&!e?"IsNotActualInterval":"Partial"}onChanged(){return this._onChanged}static fromState(e,t){const i=[];for(const s of t.tools){const t=e.dataSourceForId(s);null!==t&&i.push(t)}return i.length>0?new l(i,t.name,t.id):null}_doAndFireOnChange(e){const t=[],i=this.visibility(),s=this.locked(),r=this.name(),n=this.isActualInterval();e(t),this._onChanged.fire({affectedLineTools:t,visibilityChanged:i!==this.visibility(),lockedChanged:s!==this.locked(),titleChanged:r!==this.name(),isActualIntervalChanged:n!==this.isActualInterval()})}}},656:(e,t,i)=>{"use strict";i.d(t,{LineTool5PointsPattern:()=>a});var s=i(88537),r=i(88564),n=i(89857),o=i(37865);class a extends n.LineDataSource{constructor(e,t,i,s){super(e,t||a.createProperties(),i,s),this._loadPaneViews(e)}pointsCount(){return 5}name(){return"XABCD Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetool5pointspattern",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}_loadPaneViews(e){i.e(1583).then(i.bind(i,46010)).then(t=>{this._setPaneViews([new t.Pattern5pointsPaneView(this,e)])})}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("textcolor"))]))}}},82203:(e,t,i)=>{"use strict";i.d(t,{LineToolABCD:()=>a});var s=i(88537),r=i(88564),n=i(89857),o=i(37865);class a extends n.LineDataSource{constructor(e,t,s,r){const n=t||a.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,5040)).then(t=>{this._setPaneViews([new t.ABCDPaneView(this,e)])})} +pointsCount(){return 4}name(){return"ABCD Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetoolabcd",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,98890)).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([(0,s.ensureDefined)(e.child("textcolor"))]))}}},17337:(e,t,i)=>{"use strict";i.d(t,{LineToolArc:()=>h});var s=i(88537),r=i(4652),n=i(86441),o=i(25422),a=i(88564),l=i(89857),c=i(37865);class h extends l.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),this.version=2,this._dist=null,i.e(1583).then(i.bind(i,24843)).then(({ArcPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));this._dist=(0,r.distanceToLine)(e,t,i).distance;const o=t.subtract(e),a=new n.Point(-o.y,o.x),l=e.add(t).scaled(.5);i.subtract(l).dotProduct(a)<0&&(this._dist=-this._dist)}}endChanging(e,t){return this._dist=null,super.endChanging(e,t)}pointsCount(){return 3}name(){return"Arc"}hasEditableCoordinates(){return!1}setPoint(e,t){const i={...t},a=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));switch(e){case 0:{const e=(0,s.ensureNotNull)(this._dist),t=(0,s.ensureNotNull)(this.pointToScreenPoint(i)),r=l.subtract(t),o=t.add(l).scaled(.5);let a=new n.Point(-r.y,r.x);a=a.normalized();const c=o.add(a.scaled(e));this._points[0]=i,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(c));break}case 1:{const e=(0,s.ensureNotNull)(this._dist),t=(0,s.ensureNotNull)(this.pointToScreenPoint(i)),r=t.subtract(a),o=a.add(t).scaled(.5),l=new n.Point(-r.y,r.x).normalized(),c=o.add(l.scaled(e));this._points[1]=i,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(c));break}case 2:{let e=(0,s.ensureNotNull)(this.pointToScreenPoint(i));const t=(0,r.distanceToLine)(a,l,e).distance,c=l.subtract(a),h=a.add(l).scaled(.5),d=new n.Point(-c.y,c.x).normalized(),u=h.add(d.scaled(t)),p=h.add(d.scaled(-t)),_=c.length(),m=c.x/_,g=c.y/_;let f=Math.acos(m);g<0&&(f=-f);let v=(0,o.translationMatrix)(-h.x,-h.y);e=(0,o.transformPoint)(v,e);let S=(0,o.transformPoint)(v,u);v=(0,o.rotationMatrix)(-f),e=(0,o.transformPoint)(v,e),S=(0,o.transformPoint)(v,S),v=(0,o.scalingMatrix)(1,_/(2*t)),e=(0,o.transformPoint)(v,e),S=(0,o.transformPoint)(v,S);const y=e.y*S.y>=0?new n.Point(u.x,u.y):new n.Point(p.x,p.y);this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(y));break}}this.normalizePoints()}migrateVersion(e,t,i){if(1===e&&2===this._points.length){ +const e=(2*this._points[0].price+3*this._points[1].price)/5;this._points.push({price:e,index:this._points[1].index})}if(1===e&&2===this._timePoint.length){const e={price:(2*this._timePoint[0].price+3*this._timePoint[1].price)/5,offset:this._timePoint[1].offset,time_t:this._timePoint[1].time_t};this._timePoint.push(e)}}static createProperties(e){const t=new a.DefaultProperty("linetoolarc",e);return h._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModelBase}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.addChild("linesColors",new c.LineToolColorsProperty([e.childs().color]))}}},18659:(e,t,i)=>{"use strict";i.d(t,{LineToolArrowMark:()=>l,LineToolArrowMarkLeft:()=>c,LineToolArrowMarkUp:()=>h,LineToolArrowMarkRight:()=>d,LineToolArrowMarkDown:()=>u});var s=i(88564),r=i(89857),n=i(2015),o=i.n(n),a=i(37865);class l extends r.LineDataSource{constructor(e,t,s,r,n){const o=t||l.createProperties(null,s);super(e,o,r,n),this._textPaneView=null,i.e(1583).then(i.bind(i,71407)).then(({ArrowMarkPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}paneViews(e){const t=super.paneViews();return null!==t&&this._textPaneView&&t.push(this._textPaneView),t}pointsCount(){return 1}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e,t){const i=new s.DefaultProperty(t,e);return l._configureProperties(i),i}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,72930)).then(e=>e.ArrowMarkDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().arrowColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().color])),e.hasChild("text")||e.addChild("text",new(o())("")),e.addExclusion("text")}}l.version=2;class c extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkleft",i,s)}direction(){return"left"}name(){return"Arrow Mark Left"}textAlignParams(){return{horzAlign:"left",vertAlign:"middle",offsetX:22,offsetY:3}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkleft")}}class h extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkup",i,s)}direction(){return"up"}name(){return"Arrow Mark Up"}textAlignParams(){return{horzAlign:"center",vertAlign:"top",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkup")}}class d extends l{constructor(e,t,i,s){super(e,t,"linetoolarrowmarkright",i,s)}direction(){return"right"}name(){return"Arrow Mark Right"}textAlignParams(){return{horzAlign:"right",vertAlign:"middle",offsetX:22,offsetY:3,forceTextAlign:!0}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkright")}}class u extends l{constructor(e,t,i,s){ +super(e,t,"linetoolarrowmarkdown",i,s)}direction(){return"down"}name(){return"Arrow Mark Down"}textAlignParams(){return{horzAlign:"center",vertAlign:"bottom",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkdown")}}},10167:(e,t,i)=>{"use strict";i.d(t,{LineToolArrowMarker:()=>a});var s=i(89857),r=i(88564),n=i(2015),o=i.n(n);class a extends s.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:a.createProperties(),s,r),i.e(1583).then(i.bind(i,39833)).then(({ArrowMarkerPaneView:e})=>{this._setPaneViews([new e(this,this.model())])})}pointsCount(){return 2}name(){return"Trend Line"}static createProperties(e){const t=new r.DefaultProperty("linetoolarrowmarker",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,92138)).then(e=>e.ArrowMarkerDefinitionsViewModel)}static _configureProperties(e){s.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(o())("")),e.addExclusion("text")}}},59358:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Arrow"}static createProperties(e){var t=new r("linetoolarrow",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolArrow=n},57666:(e,t,i)=>{"use strict";i.d(t,{LineToolBalloon:()=>h});var s=i(28353),r=i(88564),n=i(89857),o=i(2015),a=i.n(o),l=i(37865);const c=(0,s.t)("Comment");class h extends n.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,17952)).then(t=>{this._setPaneViews([new t.BalloonPaneView(this,e)])})}pointsCount(){return 1}name(){return"Balloon"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolballoon",e);return h._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,60991)).then(e=>e.BalloonDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())(c)),e.addExclusion("text"),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new l.LineToolColorsProperty([e.childs().color]))}}},4676:(e,t,i)=>{"use strict";i.d(t,{BarsMarksContainer:()=>T});var s=i(88537),r=i(98125),n=i(56840),o=i.n(n),a=i(67337),l=i(89857),c=i(2872),h=i.n(c),d=i(29823),u=i(80643),p=i(37667);class _{constructor(e,t){this.source=e,this._rendererFactory=t}update(){}renderer(e,t){return this._rendererFactory(this.source)}}var m=i(16282),g=i(22799),f=i(86441),v=i(84346),S=i(34026);const y={green:{border:"#78C143",background:"#8DDD54"},red:{border:"#CC4545",background:"#ED5A5A"},neutral:{border:"#EAC300", +background:"#FFD400"},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}};class b extends m.ScaledPaneRenderer{constructor(e,t){super(),this._highlightByAuthor=!1,this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}hitTest(e){for(let t=this._plates.length-1;t>=0;--t){const i=this._hitTestDot(this._plates[t],e);if(i)return i}return null}_drawImpl(e){var t,i;e.save();for(let e=0;ethis._plateTransform(e));null===(t=this._tooltip)||void 0===t||t.draw(s,e),null===(i=this._tooltip)||void 0===i||i.endDraw(),e.restore()}_drawItem(e,t){e.save(),this._highlightByAuthor&&!t.highlightByAuthor&&(e.globalAlpha=.4);const i=this._dotTransform(t);i.mine?this._drawTriangle(e,i):this._drawDot(e,i),e.restore()}_commonTransform(e){const t=Math.max(1.4*e.minSize,this._barWidth+4),i={up:-1,down:1}[e.direction]*(e.yInverted?-1:1)*(t*(e.order+.6)+.25*t),s=e.y+i,r=(0,u.clone)(e.overridedTheme||y[e.theme]);return r.dotBorderWidth=e.hovered||e.highlightByAuthor?4:2,{id:e.id,theme:r,themeName:e.theme,x:Math.round(e.x+1),y:Math.round(s),yInverted:e.yInverted,pinned:Boolean(e.pinned),hovered:Boolean(e.hovered)}}_dotTransform(e){const t=Math.max(e.minSize/2,.4*this._barWidth),i={...this._commonTransform(e),radius:t,label:e.label,labelFontColor:e.labelFontColor,labelFontSize:Math.ceil(Math.max(10,Math.min(t,20)))};return this._model.updateDotData(e,i)}_plateTransform(e){const t=this._commonTransform(e);return this._model.updatePlateData(e,t)}_drawTriangle(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth||2;const i=t,s=t.radius,r=Math.cos(Math.PI/6)*s,n=Math.sin(Math.PI/6)*s;e.translate(i.x,i.y);"up"===t.direction!==t.yInverted&&e.rotate(Math.PI),t.public||(e.lineWidth/=2),e.beginPath(),e.moveTo(0,-s),e.lineTo(r,n),e.lineTo(-r,n),e.lineTo(0,-s),e.closePath(),e.stroke(),t.public&&e.fill()}_drawDot(e,t){e.strokeStyle=t.theme.border,e.fillStyle=t.theme.background,e.lineWidth=t.theme.dotBorderWidth||2,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.fill(),t.label&&t.radius>=7&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+g.CHART_FONT_FAMILY,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))}_hitTestDot(e,t){const i=this._dotTransform(e),s=new f.Point(i.x,i.y);return(0,S.pointInCircle)(t,s,Math.max(i.radius,8))?new v.HitTestResult(v.HitTestResult.REGULAR,{activeItem:e}):null}}var w=i(88564);const C=(0,r.getLogger)("Chart.BarsMarksContainer"),P=Math.round(new Date(2037,0,1).getTime()/1e3);class T extends l.LineDataSource{constructor(e,t,i,r){const n=e.onWidget();let c;if(c=n?!e.hideIdeas():!!a.enabled("bars_marks")&&o().getBool("BarsMarksContainer.visibile",!1),t)t.merge({visible:c,frozen:!1});else{t=new w.DefaultProperty("barmarks",{visible:c,frozen:!1})} +t.childs().visible.listeners().subscribe(null,t=>{n||e.isSnapshot()||!a.enabled("bars_marks")||o().setValue("BarsMarksContainer.visibile",!!t.value()),this._tooltip&&this._tooltip.removeAll()}),l.LineDataSource._configureProperties(t),super(e,t,i,r),this.onNeedRepaint=new(h()),this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._lastRange=null,this._model.mainSeries().onSymbolIntervalChanged().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().symbolResolved().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().completed().subscribe(this,()=>{var e,t;const i=this._model.mainSeries().data();if(0===i.size())return;const r=(0,s.ensureNotNull)(i.first()).index,n=(0,s.ensureNotNull)(i.last()).index,o=this.timeScale();this.getData({start:null!==(e=o.indexToTimePoint(r))&&void 0!==e?e:1/0,end:null!==(t=o.indexToTimePoint(n))&&void 0!==t?t:-1/0})}),this._initialize(),this._pinnedTooltips={},this._tooltip=this._createTooltipRenderer()}marks(){return this._marks}updateDotData(e,t){return t}isAvailableInFloatingWidget(){return!1}pinTooltip(e,t){this._pinnedTooltips[e]=t}timeScale(){return this._model.timeScale()}getIntervalInTicks(){const e=this._model.mainSeries().properties().childs().interval.value(),t=d.Interval.parse(e);if(!t.isValid())throw new TypeError("Unexpected interval");return t.isRange()?60:t.inMilliseconds()/1e3}getVisibleTickMarksRange(){var e,t;if(this.timeScale().isEmpty())return{start:0,end:0};const i=(0,s.ensureNotNull)(this.timeScale().visibleBarsStrictRange()),r=(0,s.ensureNotNull)(this.timeScale().points().firstIndex()),n=(0,s.ensureNotNull)(this.timeScale().points().lastIndex());if(!(i.lastBar()>r&&i.firstBar(){var r,n;const o=this._marks[s],a=o.tickmark;a>=(null!==(r=t.start)&&void 0!==r?r:1/0)&&a<=(null!==(n=t.end)&&void 0!==n?n:-1/0)+i&&e.push(o)}),e}getPublishedPlates(){const e={};return window.is_authenticated?(this.getVisibleRangePlates().forEach(t=>{t.is_public&&(this._pinnedTooltips[t.id]||t.user__id===window.user.id)&&(e[t.id]=t)}),e):e}filterDisplayedPlates(e){const t=e.reduce((e,t)=>{const i=this._getIndex(t.tickmark);return null!==i&&(e[i]=e[i]||[],e[i].push(t)),e},{});return Object.keys(t).reduce((e,i)=>{let s=t[i];return s=s.sort((e,t)=>t.views_count-e.views_count),s=s.slice(0,10),e.concat(s)},[])}getViewData(){return{barWidth:this.barWidth(),plates:this.getPlatesViewData(),tooltip:this._tooltip}}barWidth(){return this.timeScale().barSpacing()}getPlatesViewData(){var e,t,i;const r=this._model.mainSeries();if(r.data().isEmpty())return[];const n=(0, +p.isPriceSourceStyle)(r.style())?r.barFunction():null,o=this.filterDisplayedPlates(this.getVisibleRangePlates()),a={},l=null!==(e=this._model.lastHittestData())&&void 0!==e?e:this._model.lastSelectedHittestData(),c=[];for(const e of o){const i=(0,s.ensureNotNull)(this._getIndex(e.tickmark)),r=this._getBar(i);if(null===r)continue;const o=this._layout(e.direction),h=this._theme(e.direction);let d=null;null!==l&&this._model.hoveredSource()===this&&(d=null!==(t=l.activeItem)&&void 0!==t?t:null);const p=null!==d&&d.id===e.id,_=this.timeScale().indexToCoordinate(i),m=this._offset(o,r,n),g=(0,s.ensureNotNull)(this.priceScale()).isInverted();let f=0;i in a||(a[i]={up:0,down:0}),f=a[i][o]++,c.push((0,u.merge)({id:e.id,x:_,y:m,yInverted:g,order:f,direction:o,theme:h,hovered:p,pinned:!0===this._pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5},this._plateViewData(e)))}const h=c.filter(e=>!0===e.hovered);for(let e=0;ee.hovered&&!t.hovered?1:0),c}paneViews(){return this._properties.childs().visible.value()?[new _(this,e=>new b(e.getViewData(),this))]:[]}priceAxisViews(){return null}updateAllViews(){}pointsCount(){return 0}roundRange(e){return{start:Math.round(e.start),end:Math.round(e.end)}}refreshData(){null!==this._lastRange&&this.getData(this._lastRange)}getData(e){(0,u.isNumber)(e.start)&&(0,u.isNumber)(e.end)?(this._lastRange=e,e.end=P,this._pushGetDataStack(Object.assign({},e))):C.logError("Wrong range")}clearMarks(){this._abortAllRequests(),this._marks={},this._loadedRange=null}isUserDeletable(){return!1}_plateViewData(e){return{}}_layout(e){switch(e){default:case 0:return"up";case 1:return"down";case 2:return"up";case 3:case 4:case 5:case 6:return"up"}}_theme(e){switch(e){default:case 0:return"neutral";case 1:return"green";case 2:return"red";case 3:return"yellow";case 4:return"blue";case 5:return"green";case 6:return"red"}}_offset(e,t,i){let r;switch(e){default:case"up":r=null===i?t[2]:i(t);break;case"down":r=null===i?t[3]:i(t)}return(0,s.ensureNotNull)(this.priceScale()).priceToCoordinate(r,(0,s.ensureNotNull)((0,s.ensureNotNull)(this.ownerSource()).firstValue()))}_getIndex(e){return this.timeScale().timePointToIndex(e)}_getBar(e){return this._model.mainSeries().data().valueAt(e)}_rangeDifference(e){return e=Object.assign({start:1/0,end:-1/0},e),this._loadedRange&&(e.startthis._loadedRange.end&&(e.start=this._loadedRange.end)),e}_rangeUnion(e,t){return e=Object.assign({start:1/0,end:-1/0},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e}_pushGetDataStack(e){(0,u.isNumber)(e.start)&&(0,u.isNumber)(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout(()=>{this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null +},300)):C.logError("Wrong tickmark range")}_abortAllRequests(){this._requests.forEach(e=>{e.cancel()}),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null}}},8059:(e,t,i)=>{"use strict";var s;i.d(t,{LineToolBarsPatternMode:()=>s}),function(e){e[e.Bars=0]="Bars",e[e.Line=1]="Line",e[e.OpenClose=2]="OpenClose",e[e.LineOpen=3]="LineOpen",e[e.LineHigh=4]="LineHigh",e[e.LineLow=5]="LineLow",e[e.LineHL2=6]="LineHL2"}(s||(s={}))},98802:(e,t,i)=>{"use strict";i.d(t,{LineToolBarsPattern:()=>S});var s=i(88537),r=i(28353),n=i(24980),o=i(80643),a=i(28296),l=i(88564),c=i(71053),h=i(89857),d=i(8059),u=i(33291);const p=new n.TranslatedString("mirror bars pattern",(0,r.t)("mirror bars pattern")),_=new n.TranslatedString("flip bars pattern",(0,r.t)("flip bars pattern")),m=(0,r.t)("Mirrored"),g=(0,r.t)("Flipped"),f={0:2,1:4,2:1,3:1,4:2,5:3,6:-1},v={0:3,1:4,2:4,3:1,4:2,5:3,6:-1};class S extends h.LineDataSource{constructor(e,t=S.createProperties(),s,r){super(e,t,s,r),this._pattern=[],this._scale=1,this._pointsCoordinatePricesDiff=null;const n=t.childs().mode.value();(0,o.isString)(n)&&t.childs().mode.setValue(parseInt(n)),t.childs().mirrored.listeners().subscribe(this,this._mirror),t.childs().flipped.listeners().subscribe(this,this._flip),t.childs().mode.subscribe(this,this._updateLastPoint),this.version=2,i.e(1583).then(i.bind(i,27106)).then(t=>{this._setPaneViews([new t.BarsPatternPaneView(this,e)])})}pattern(){return this._pattern}isSynchronizable(){return!1}additionalActions(e){return[new a.Action({actionId:"Chart.LineTool.BarsPattern.ToggleMirrored",checked:this.properties().childs().mirrored.value(),checkable:!0,label:m,onExecute:()=>{e.setProperty(this.properties().childs().mirrored,!this.properties().childs().mirrored.value(),p),this.updateAllViews((0,u.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}}),new a.Action({actionId:"Chart.LineTool.BarsPattern.ToggleFlipped",checked:this.properties().childs().flipped.value(),checkable:!0,label:g,onExecute:()=>{e.setProperty(this.properties().childs().flipped,!this.properties().childs().flipped.value(),_),this.updateAllViews((0,u.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}})]}pointsCount(){return 2}state(e){return{...super.state(e),pattern:this._pattern,scale:this._scale,diff:this._pointsCoordinatePricesDiff}}restoreData(e){const{pattern:t=this._pattern,scale:i=this._scale,diff:s=this._pointsCoordinatePricesDiff}=e;this._pattern=t,this._scale=i,this._pointsCoordinatePricesDiff=s}name(){return"Bars Pattern"}hasEditableCoordinates(){return!1}cloneData(e){this._pattern=(0,o.clone)(e._pattern),this._scale=e._scale,this._pointsCoordinatePricesDiff=e._pointsCoordinatePricesDiff}firstPatternPrice(){const{mode:e,flipped:t}=this.properties().childs(),i=this._pattern[0];return e.value()===d.LineToolBarsPatternMode.LineHL2?(i[2]+i[3])/2:t.value()?i[v[e.value()]]:i[f[e.value()]]}lastPatternPrice(){const{mode:e,flipped:t}=this.properties().childs(),i=this._pattern[this._pattern.length-1] +;return e.value()===d.LineToolBarsPatternMode.LineHL2?(i[2]+i[3])/2:t.value()?i[f[e.value()]]:i[v[e.value()]]}addPoint(e,t,i){const r=super.addPoint(e,t,!0);if(r){const e=this._model.mainSeries(),[{index:t},{index:i}]=this.points(),r=(0,s.ensureDefined)(e.nearestIndex(Math.min(t,i),c.PlotRowSearchMode.NearestRight)),n=(0,s.ensureDefined)(e.nearestIndex(Math.max(t,i),c.PlotRowSearchMode.NearestLeft));this._pattern=this._createPattern(r,n),this._pattern.length>0&&(t>i&&this._points.reverse(),this._points[1].price=this._points[0].price+this._patternPriceDiff(),this._points[1].index=this._points[0].index+(n-r),this.normalizePoints(),this.createServerPoints()),this._updatePointsCoordinatePricesDiff()}return r}setPoint(e,t,i,s){1===e&&t.index<=this._points[0].index&&(t.index=this._points[0].index+1),0===e&&t.index>=this._points[1].index&&(t.index=this._points[1].index-1),super.setPoint(e,t,i),this._updatePointsCoordinatePricesDiff()}move(e,t,i,s){super.move(e,t,i,s),this._updatePointsCoordinatePricesDiff()}migrateVersion(e,t,i){if(1===e&&this._pattern.length>0){const e=this._patternPriceDiff();2===this._timePoint.length&&(this._timePoint[1].price=this._timePoint[0].price+e),2===this._points.length&&(this._points[1].price=this._points[0].price+e)}}getScale(){return this._scale=this._calculateScale()}static createProperties(e){const t=new l.DefaultProperty("linetoolbarspattern",e);return S._configureProperties(t),t}_preparePoint(e,t){var i;const r=this._alignPointToRangeOfActualData(e),n=this._model.mainSeries(),o=(0,s.ensureNotNull)(n.bars().valueAt(r.index));this.properties().childs().mode.value()===d.LineToolBarsPatternMode.Bars?r.price=(0,s.ensure)(o[2]):r.price=(0,s.ensure)(o[4]);const a=(0,s.ensureNotNull)(this.priceScale()),l=(0,s.ensure)(null===(i=this.ownerSource())||void 0===i?void 0:i.firstValue()),c=.05*a.height(),h=a.priceToCoordinate(r.price,l)-c;return r.price=a.coordinateToPrice(h,l),super._preparePoint(r,t)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14725))).BarsPatternDefinitionsViewModel}static _configureProperties(e){h.LineDataSource._configureProperties(e),e.addExclusion("mirrored"),e.addExclusion("flipped")}_calculatePatternCoordinatePricesDiff(){var e;return this._pattern.length>0&&null!==(e=this._priceCoordinateDiff([this.firstPatternPrice(),this.lastPatternPrice()]))&&void 0!==e?e:null}_updatePointsCoordinatePricesDiff(){this._pointsCoordinatePricesDiff=this._calculatePointsCoordinatePricesDiff()}_calculatePointsCoordinatePricesDiff(){var e;if(2===this._points.length){const[{price:t},{price:i}]=this.points();return null!==(e=this._priceCoordinateDiff([t,i]))&&void 0!==e?e:null}return null}_createPattern(e,t){const i=this._model.mainSeries().data(),r=[];for(let n=e;n<=t;n++)r.push((0,o.clone)((0,s.ensureNotNull)(i.valueAt(n))));return r}_switchPointsPrice(){const e=this._points[0].price;this._timePoint[0].price=this._points[0].price=this._points[1].price,this._timePoint[1].price=this._points[1].price=e}_mirror(){ +const e=this._pattern;let t=Math.min(e[0][3],e[0][2]),i=Math.max(e[0][3],e[0][2]);for(let s=1;ss-(e-s);for(let t=0;ts.priceToCoordinate(e,r))}_priceCoordinateDiff(e){const t=this._pricesToCoordinates(e);if(t)return t[1]-t[0]}_calculateScale(){let e=1;if(2===this._points.length){const t=this._calculatePatternCoordinatePricesDiff();if(!t)return e;const i=this._calculatePointsCoordinatePricesDiff();if(t&&null!==i&&(e=+(i/t).toFixed(8)),this._pointsCoordinatePricesDiff!==i){if(this._scale!==e)return this._updateLastPoint(),this._scale;this._updatePointsCoordinatePricesDiff()}}return e}_updateLastPoint(){var e,t;if(this._points.length<2)return;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===s||null===i||i.isEmpty())return;const r=this._calculatePatternCoordinatePricesDiff(),n=this._pricesToCoordinates([this.points()[0].price]);null!==r&&n&&(this._timePoint[1].price=this._points[1].price=i.coordinateToPrice(+(this._scale*r).toFixed(8)+n[0],s),this._updatePointsCoordinatePricesDiff())}}},47679:(e,t,i)=>{"use strict";i.d(t,{LineToolBezierCubic:()=>o});var s=i(88537),r=i(88564),n=i(89857);class o extends n.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),this._controlPoints=null,i.e(1583).then(i.bind(i,11933)).then(t=>{this._setPaneViews([new t.BezierCubicPaneView(this,e)])})}pointsCount(){return 2}name(){return"Double Curve"}setLastPoint(e,t){const i=super.setLastPoint(e,t);return this._controlPoints=this._calculateControlPoints(),i}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoints();this._controlPoints=null,this._points.push(e[0]),this._points.push(e[1]),i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2),this._createPointProperty(3)}controlPoints(){return this._controlPoints}static createProperties(e){const t=new r.DefaultProperty("linetoolbeziercubic",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,79462)).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){ +n.LineDataSource._configureProperties(e)}_calculateControlPoints(){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[1])),i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.33),n=e.add(t).scaled(.67),o=r.add(i),a=n.subtract(i);return[(0,s.ensureNotNull)(this.screenPointToPoint(o)),(0,s.ensureNotNull)(this.screenPointToPoint(a))]}}},30899:(e,t,i)=>{"use strict";i.d(t,{LineToolBezierQuadro:()=>o});var s=i(88537),r=i(88564),n=i(89857);class o extends n.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),this._controlPoint=null,i.e(1583).then(i.bind(i,79998)).then(t=>{this._setPaneViews([new t.BezierQuadroPaneView(this,e)])})}pointsCount(){return 2}name(){return"Curve"}setLastPoint(e,t){const i=super.setLastPoint(e,t);return this._controlPoint=this._calculateControlPoint(),i}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoint();this._points.push(e),this._controlPoint=null,i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2)}controlPoint(){return this._controlPoint}static createProperties(e){const t=new r.DefaultProperty("linetoolbezierquadro",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,79462)).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e)}_calculateControlPoint(){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[1])),i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.5).add(i);return(0,s.ensureNotNull)(this.screenPointToPoint(r))}}},27258:(e,t,i)=>{"use strict";i.d(t,{LineToolBrushBase:()=>n});var s=i(88537),r=i(89857);class n extends r.LineDataSource{constructor(){super(...arguments),this._finished=!1}pointsCount(){return-1}finished(){return this._finished}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}hasEditableCoordinates(){return!1}addPoint(e,t,i){if(this._finished)return!0;if(this._lastPoint=null,this._points.length>0){const t=this._points[this._points.length-1],i=(0,s.ensureNotNull)(this.pointToScreenPoint(t));if((0,s.ensureNotNull)(this.pointToScreenPoint(e)).subtract(i).length()<2)return this._finished}return super.addPoint(e),this._finished}restorePoints(e,t,i){super.restorePoints(e,t,i),this._finished=!0}}},43871:(e,t,i)=>{"use strict";i.d(t,{LineToolBrush:()=>o});var s=i(88564),r=i(27258),n=i(37865);class o extends r.LineToolBrushBase{constructor(e,t,i,s){super(e,t||o.createProperties(),i,s),this._loadPaneViews(e)}smooth(){return this.properties().childs().smooth.value()}name(){return"Brush"}hasEditableCoordinates(){return!1}static createProperties(e){const t=new s.DefaultProperty("linetoolbrush",e) +;return o._configureProperties(t),t}_loadPaneViews(e){i.e(1583).then(i.bind(i,87394)).then(t=>{this._setPaneViews([new t.BrushPaneView(this,e)])})}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,288)).then(e=>e.BrushDefinitionsViewModel)}static _configureProperties(e){r.LineToolBrushBase._configureProperties(e),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor],e.childs().fillBackground))}}},73932:(e,t,i)=>{"use strict";var s;i.d(t,{CalloutConsts:()=>s}),function(e){e[e.RoundRadius=8]="RoundRadius",e[e.TextMargins=2]="TextMargins",e[e.MinWidth=100]="MinWidth"}(s||(s={}))},95536:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(89857).LineDataSource,n=i(62443).DataSource,o=i(2015),a=i(88564).DefaultProperty,l=i(73932).CalloutConsts,c=i(37865).LineToolColorsProperty;class h extends r{constructor(e,t,s,r){super(e,t||h.createProperties(),s,r),this._barOffset=0,this._timeScale=e.timeScale(),i.e(1583).then(i.t.bind(i,86449,19)).then(({CalloutPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Callout"}_correctPoints(e,t){var i=this._currentMovingPoint.logical.index-this._startMovingPoint.logical.index,s=this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price,r=e[1];r.index+=i,r.price+=s,e[1]=r}addPoint(e){var t=r.prototype.addPoint.call(this,e);return t&&this._calculateBarOffset(),t}_calculateBarOffset(){this.points().length>1&&(this._barOffset=this.points()[1].index-this.points()[0].index)}setLastPoint(e){var t=super.setLastPoint(e);return 2===this.points().length&&this._calculateBarOffset(),t}setPoint(e,t){switch(e){case 0:super.setPoint(e,t),this._calculateBarOffset();break;case 1:var i=this.properties();if(!i.wordWrapWidth)return;var s=this._points,r=this._dragStartLeftEdgeIndex,n=Math.round((t.index-r)/2);if(isFinite(r)&&isFinite(n)){s[1]={index:r+n,price:s[1].price},this._calculateBarOffset(),this.normalizePoints();var o=this._timeScale.indexToCoordinate(r+2*n)-this._timeScale.indexToCoordinate(r)-l.RoundRadius-l.TextMargins;if(!isFinite(o))return;i.wordWrapWidth.setValue(Math.max(l.MinWidth,o));break}s[1]=t,this._calculateBarOffset(),this.normalizePoints()}}setPoints(e){super.setPoints(e);var t=this.properties();if(t.wordWrapWidth){var i=this._dragStartLeftEdgeIndex,s=Math.round((e[1].index-i)/2);if(this._calculateBarOffset(),this.normalizePoints(),isFinite(i)&&isFinite(s)){var r=this._timeScale.indexToCoordinate(i+2*s)-this._timeScale.indexToCoordinate(i)-l.RoundRadius-l.TextMargins;if(!isFinite(r))return;t.wordWrapWidth.setValue(Math.max(l.MinWidth,r))}}}_onPointsetUpdated(e){super._onPointsetUpdated(e),0!==e.length&&(this._dragStartLeftEdgeIndex=this.points()[1].index)}move(e,t,i){super.move(e,t,i),this._calculateBarOffset()}state(e){var t=r.prototype.state.call(this,e);return t.barOffset=this._barOffset,t}restoreData(e){e.barOffset?this._barOffset=e.barOffset:this._calculateBarOffset(),this._calculatePoint2()}setPriceScale(e){ +n.prototype.setPriceScale.call(this,e),e&&e.priceRange()&&this._calculatePoint2()}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_calculatePoint2(){if(!(this._model.lineBeingEdited()===this||this._model.sourcesBeingMoved().includes(this)||this._points.length<2)){var e=this.points()[0],t=this.points()[1];this._points[1]={price:t.price,index:e.index+this._barOffset}}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,26599))).CalloutDefinitionsViewModel}static createProperties(e){var t=new a("linetoolcallout",e);return h._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new o(s("Text"))),e.addExclusion("text"),e.addChild("textsColors",new c([e.childs().color]))}}t.LineToolCallout=h},49802:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.t.bind(i,99517,19)).then(({LineToolCircleLinesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Cyclic Lines"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,66819))).CyclicAndSineLinesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetoolcirclelines",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolCircleLines=n},2039:(e,t,i)=>{"use strict";i.d(t,{LineToolCircle:()=>l});var s=i(2015),r=i.n(s),n=i(88564),o=i(89857),a=i(37865);class l extends o.LineDataSource{constructor(e,t,s,r){const n=t||l.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,13167)).then(({CirclePaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}pointsCount(){return 2}name(){return"Circle"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new n.DefaultProperty("linetoolcircle",e);return l._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3410))).EllipseCircleDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(r())("")),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().color])),e.addChild("linesWidths",new a.LineToolWidthsProperty([e.childs().linewidth])),e.addChild("backgroundsColors",new a.LineToolColorsProperty([e.childs().backgroundColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().textColor],e.childs().showLabel)),e.addExclusion("linesColors"), +e.addExclusion("linesWidths"),e.addExclusion("backgroundsColors"),e.addExclusion("text")}}},53193:(e,t,i)=>{"use strict";i.d(t,{LineToolCrossLine:()=>a});var s=i(88564),r=i(10198),n=i(67103),o=i(89857);class a extends o.LineDataSource{constructor(e,t,s,o){super(e,t||a.createProperties(),s,o),this._priceAxisView=new r.LineToolHorzLinePriceAxisView(this),this._timeAxisView=new n.LineToolVertLineTimeAxisView(this),i.e(1583).then(i.bind(i,62105)).then(({CrossLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Cross Line"}priceAxisViews(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().childs().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null}timeAxisViews(){return this.isSourceHidden()?null:this.properties().childs().showTime.value()?[this._timeAxisView]:null}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e),this._timeAxisView.update()}canHasAlert(){return!1}lineColor(){return this.properties().childs().linecolor.value()}lineWidth(){return this.properties().childs().linewidth.value()}lineStyle(){return this.properties().childs().linestyle.value()}static createProperties(e){const t=new s.DefaultProperty("linetoolcrossline",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,99645)).then(e=>e.CrossLineDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e)}}},980:(e,t,i)=>{"use strict";i.d(t,{LineToolCypherPattern:()=>n});var s=i(656),r=i(88564);class n extends s.LineTool5PointsPattern{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Cypher Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetoolcypherpattern",e);return n._configureProperties(t),t}_loadPaneViews(e){i.e(1583).then(i.bind(i,58062)).then(t=>{this._setPaneViews([new t.CypherPaneView(this,e)])})}static _configureProperties(e){s.LineTool5PointsPattern._configureProperties(e)}}},85402:(e,t,i)=>{"use strict";i.d(t,{nonThemedFactoryDefaultsBase:()=>l,themedFactoryDefaultsBase:()=>c});var s=i(45112),r=i(24633),n=i(68906),o=i(52418);const a=(0,s.getHexColorByName)("color-tv-blue-500"),l={linewidth:1,fontsize:12,fillLabelBackground:!0,fillBackground:!0,backgroundTransparency:60,intervalsVisibilities:{...o.intervalsVisibilitiesDefaults}},c=new Map([[r.StdTheme.Light,{textcolor:(0,s.getHexColorByName)("color-black"),labelBackgroundColor:(0,s.getHexColorByName)("color-white"),linecolor:a,backgroundColor:(0,n.generateColor)(a,85),shadow:"rgba(0, 0, 0, 0.2)"}],[r.StdTheme.Dark,{textcolor:(0,s.getHexColorByName)("color-white"),labelBackgroundColor:(0,s.getHexColorByName)("color-cold-gray-800"),linecolor:a,backgroundColor:(0,n.generateColor)(a,85),shadow:"rgba(0, 0, 0, 0.4)"}]])},26215:(e,t,i)=>{"use strict";i.d(t,{LineToolDateAndPriceRange:()=>g});var s=i(88537),r=i(89857),n=i(34081),o=i(24633),a=i(45112),l=i(45383),c=i(85402);const h=(0, +a.getHexColorByName)("color-tv-blue-500"),d={...c.nonThemedFactoryDefaultsBase,drawBorder:!1,borderWidth:1},u=new Map([[o.StdTheme.Light,{...c.themedFactoryDefaultsBase.get(o.StdTheme.Light),borderColor:h}],[o.StdTheme.Dark,{...c.themedFactoryDefaultsBase.get(o.StdTheme.Dark),borderColor:h}]]),p=(0,l.extractAllPropertiesKeys)((0,s.ensureDefined)(u.get(o.StdTheme.Light))),_=(0,l.extractAllPropertiesKeys)(d);class m extends l.ThemedDefaultProperty{static create(e){return new m("linetooldateandpricerange",()=>(0,l.factoryDefaultsForCurrentTheme)(d,u),_,p,e)}}class g extends r.LineDataSource{constructor(e,t,s,r){super(e,t||g.createProperties(),s,r),this._volumeCalculator=null,i.e(1583).then(i.bind(i,81226)).then(e=>{this._setPaneViews([new e.DateAndPriceRangePaneView(this,this._model)])})}destroy(){super.destroy(),null!==this._volumeCalculator&&this._volumeCalculator.destroy()}pointsCount(){return 2}name(){return"Date and Price Range"}volume(){if(null===this._volumeCalculator)return NaN;const e=this.points();return this._volumeCalculator.volume(e[0].index,e[1].index)}setOwnerSource(e){e===this._model.mainSeries()&&((0,s.assert)(null===this._volumeCalculator),this._volumeCalculator=new n.SeriesTimeRangeVolumeCalculator(this._model.mainSeries())),super.setOwnerSource(e)}static createProperties(e){const t=m.create(e);return g._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){r.LineDataSource._configureProperties(e)}}},45669:(e,t,i)=>{"use strict";i.d(t,{LineToolDateRange:()=>_});var s=i(88537),r=i(89857),n=i(34081),o=i(24633),a=i(45383),l=i(85402);const c={...l.nonThemedFactoryDefaultsBase,extendTop:!1,extendBottom:!1},h=l.themedFactoryDefaultsBase,d=(0,a.extractAllPropertiesKeys)((0,s.ensureDefined)(h.get(o.StdTheme.Light))),u=(0,a.extractAllPropertiesKeys)(c);class p extends a.ThemedDefaultProperty{static create(e){return new p("linetooldaterange",()=>(0,a.factoryDefaultsForCurrentTheme)(c,h),u,d,e)}}class _ extends r.LineDataSource{constructor(e,t,s,r){super(e,t||_.createProperties(),s,r),this._volumeCalculator=null,i.e(1583).then(i.bind(i,27913)).then(e=>{this._setPaneViews([new e.DateRangePaneView(this,this._model)])})}destroy(){super.destroy(),null!==this._volumeCalculator&&this._volumeCalculator.destroy()}pointsCount(){return 2}name(){return"Date Range"}volume(){if(null===this._volumeCalculator)return NaN;const e=this.points();return this._volumeCalculator.volume(e[0].index,e[1].index)}setOwnerSource(e){e===this._model.mainSeries()&&((0,s.assert)(null===this._volumeCalculator),this._volumeCalculator=new n.SeriesTimeRangeVolumeCalculator(this._model.mainSeries())),super.setOwnerSource(e)}static createProperties(e){const t=p.create(e);return _._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel} +static _configureProperties(e){r.LineDataSource._configureProperties(e)}}},46512:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),this.version=n.version,i.e(1583).then(i.t.bind(i,56863,19)).then(({DisjointChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Disjoint Channel"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){var s=.5*(this._points[1].price+this._points[2].price);if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])}if(e<3&&super.setPoint(e,t),0!==e&&2!==e){if(1===e){var r=this._points[1].price-s;this._points[2].price=this._points[1].price-2*r}else if(3===e){r=t.price-this._points[2].price;this._points[0].price=this._points[1].price-r,this._points[0].index=t.index}this.normalizePoints()}}getPoint(e){if(e<3)return s.prototype.getPoint.call(this,e);var t=this._points[0].price-this._points[2].price;return{index:this._points[0].index,price:this._points[1].price-t}}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price+(t.price-e.price),time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),d=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=d):(o=d,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",o,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14145))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooldisjointangle",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolDisjointChannel=n},97917:(e,t,i)=>{"use strict";i.d(t,{LineToolElliott:()=>u,LineToolElliottImpulse:()=>m,LineToolElliottTriangle:()=>f,LineToolElliottTripleCombo:()=>S,LineToolElliottCorrection:()=>w,LineToolElliottDoubleCombo:()=>P});var s=i(28353),r=i(24980),n=i(89857),o=i(28296),a=i(88564),l=i(37865);const c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],h=new r.TranslatedString("change Elliott degree",(0,s.t)("change Elliott degree")),d=[{value:0,title:(0,s.t)("Supermillennium")},{value:1,title:(0,s.t)("Millennium")},{value:2,title:(0,s.t)("Submillennium")},{value:3,title:(0,s.t)("Grand supercycle")},{value:4,title:(0,s.t)("Supercycle")},{value:5,title:(0,s.t)("Cycle")},{value:6, +title:(0,s.t)("Primary")},{value:7,title:(0,s.t)("Intermediate")},{value:8,title:(0,s.t)("Minor",{context:"wave"})},{value:9,title:(0,s.t)("Minute",{context:"wave"})},{value:10,title:(0,s.t)("Minuette")},{value:11,title:(0,s.t)("Subminuette")},{value:12,title:(0,s.t)("Micro")},{value:13,title:(0,s.t)("Submicro")},{value:14,title:(0,s.t)("Minuscule")}];class u extends n.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:u.createProperties(),s,r),this.version=4,i.e(1583).then(i.bind(i,5761)).then(e=>{this._setPaneViews([new e.ElliottLabelsPaneView(this,this._model)])})}migrateVersion(e,t,i){if(i.properties.hasChild("background")&&i.properties.removeProperty("background"),i.properties.hasChild("backgroundColor")&&i.properties.removeProperty("backgroundColor"),i.properties.hasChild("showBackground")&&i.properties.removeProperty("showBackground"),1===e){const e=Object.assign({},this._timePoint[0]);if(this._timePoint.unshift(e),this._points.length>0){const e=Object.assign({},this._points[0]);this._points.unshift(e)}}}applyTemplate(e){const t=e;delete t.background,delete t.backgroundColor,delete t.showBackground,super.applyTemplate(e)}name(){return"Elliott Labels"}additionalActions(e){return[new o.Action({actionId:"Chart.LineTool.Elliot.ChangeDegreeProperty",label:(0,s.t)("Degree"),subItems:c.map(t=>{const i=d.filter(e=>e.value===t)[0];return new o.Action({actionId:"Chart.LineTool.Elliot.ChangeDegreeProperty",label:i.title,checkable:!0,checked:this.properties().childs().degree.value()===t,onExecute:()=>{e.setProperty(this.properties().childs().degree,t,h)}})})})]}label(e){const t=c.length-this.properties().childs().degree.value()-1,i=Math.floor(t/3);return{group:i,bold:!!(i%2),decoration:["","brackets","circle"][t%3],label:this.labelsGroup()[i][e]}}availableDegreesValues(){return d}static createProperties(e){const t=new a.DefaultProperty("linetoolelliott",e);return u._configureProperties(t),t}static migrateState(e){const t={0:11,1:10,2:9,3:8,4:7,5:6,6:5,7:4,8:3},i={0:11,1:8};"LineToolElliottSubminuette"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinor"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottCircle"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize]),"LineToolElliottMajorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize])}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,31522))).ElliottPatternDefinitionsViewModel}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().color])),e.addExclusion("linesColors")}}class p extends u{pointsCount(){return 6}static _configureProperties(e){u._configureProperties(e)}} +const _=[["0","1","2","3","4","5"],["0","i","ii","iii","iv","v"],["0","1","2","3","4","5"],["0","I","II","III","IV","V"],["0","1","2","3","4","5"]];class m extends p{constructor(e,t,i,s){super(e,t||m.createProperties(),i,s)}name(){return"Elliott Impulse Wave (12345)"}labelsGroup(){return _}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottimpulse",e);return m._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}const g=[["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"]];class f extends p{constructor(e,t,i,s){super(e,t||f.createProperties(),i,s)}name(){return"Elliott Triangle Wave (ABCDE)"}labelsGroup(){return g}static createProperties(e){const t=new a.DefaultProperty("linetoolelliotttriangle",e);return f._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}const v=[["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"]];class S extends p{constructor(e,t,i,s){super(e,null!=t?t:S.createProperties(),i,s)}name(){return"Elliott Triple Combo Wave (WXYXZ)"}labelsGroup(){return v}static createProperties(e){const t=new a.DefaultProperty("linetoolelliotttriplecombo",e);return S._configureProperties(t),t}static _configureProperties(e){p._configureProperties(e)}}class y extends u{pointsCount(){return 4}static _configureProperties(e){u._configureProperties(e)}}const b=[["0","A","B","C"],["0","a","b","c"],["0","A","B","C"],["0","a","b","c"],["0","A","B","C"]];class w extends y{constructor(e,t,i,s){super(e,null!=t?t:w.createProperties(),i,s)}name(){return"Elliott Correction Wave (ABC)"}labelsGroup(){return b}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottcorrection",e);return w._configureProperties(t),t}static _configureProperties(e){y._configureProperties(e)}}const C=[["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"]];class P extends y{constructor(e,t,i,s){super(e,null!=t?t:P.createProperties(),i,s)}name(){return"Elliott Double Combo Wave (WXY)"}labelsGroup(){return C}static createProperties(e){const t=new a.DefaultProperty("linetoolelliottdoublecombo",e);return P._configureProperties(t),t}static _configureProperties(e){y._configureProperties(e)}}},38430:(e,t,i)=>{"use strict";i.d(t,{LineToolEllipse:()=>d});var s=i(88537),r=i(4652),n=i(86441),o=i(2015),a=i.n(o),l=i(89857),c=i(88564),h=i(37865);class d extends l.LineDataSource{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=2,this._dist=null,this._fakePointAdded=!1,i.e(1583).then(i.bind(i,58446)).then(({EllipsePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));this._dist=(0, +r.distanceToLine)(e,t,i).distance||0}}addPoint(e,t,i){const s=l.LineDataSource.prototype.addPoint.call(this,e,t,i);return s&&(this._fakePointAdded=!1),s}setPoint(e,t,i,o){const a={...t};let l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),c=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),h=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2]));switch(e){case 0:{if(i&&i.shift()){this._snapPoint45Degree(a,this._points[1]),this._points[0]=a,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[0],this._points[1],this._points[2]);break}l=(0,s.ensureNotNull)(this.pointToScreenPoint(a));const e=c.subtract(l),t=l.add(c).scaled(.5),r=new n.Point(-e.y,e.x).normalized();h=t.add(r.scaled((0,s.ensureNotNull)(this._dist))),this._points[0]=a,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 1:{if(i&&i.shift()){this._snapPoint45Degree(a,this._points[0]),this._points[1]=a,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],this._points[2]);break}c=(0,s.ensureNotNull)(this.pointToScreenPoint(a));const e=c.subtract(l),t=l.add(c).scaled(.5),r=new n.Point(-e.y,e.x).normalized();h=t.add(r.scaled((0,s.ensureNotNull)(this._dist))),this._points[1]=a,this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 2:{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(a)),t=(0,r.distanceToLine)(l,c,e).distance,i=c.subtract(l),o=l.add(c).scaled(.5),d=new n.Point(-i.y,i.x).normalized();h=o.add(d.scaled(t)),this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}case 3:{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(a)),t=(0,r.distanceToLine)(l,c,e).distance,i=c.subtract(l),o=l.add(c).scaled(.5),d=new n.Point(-i.y,i.x).normalized();h=o.add(d.scaled(t)),this._points[2]=(0,s.ensureNotNull)(this.screenPointToPoint(h));break}}this.normalizePoints()}pointsCount(){return 3}name(){return"Ellipse"}hasEditableCoordinates(){return!1}migrateVersion(e,t,i){if(1===e&&2===this._points.length){const e=this._points[0].price,t=.5*(this._points[0].price+this._points[1].price);this._points[0]={price:t,index:this._points[0].index},this._points[1]={price:t,index:this._points[1].index},this._points.push({price:e,index:this._points[0].index})}if(1===e&&2===this._timePoint.length){const e=this._timePoint[0].price,t=.5*(this._timePoint[0].price+this._timePoint[1].price);this._timePoint[0].price=t,this._timePoint[1].price=t;const i={price:e,offset:this._timePoint[0].offset,time_t:this._timePoint[0].time_t};this._timePoint.push(i)}}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new c.DefaultProperty("linetoolellipse",e);return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){ +return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3410))).EllipseCircleDefinitionsViewModel}_preparePoint(e,t){const i=this._preparePointInternal(e,t,!1);return t&&t.shift()&&this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],i),i}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())("")),e.addChild("linesColors",new h.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new h.LineToolColorsProperty([e.childs().textColor],e.childs().showLabel)),e.addExclusion("text")}_preparePointInternal(e,t,i){let r={...e};if(t&&t.shift()){const t=this.points().length;if(!this._fakePointAdded&&3===t&&!i)return r;if(this._fakePointAdded||2===t||i){this._snapPoint45Degree(e,this._points[0]),this._fakePointAdded?this._points[1]=e:i||(this._fakePointAdded=!0,super._addPointIntenal(e));const t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),o=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),a=o.x-t.x,l=o.y-t.y,c=Math.sqrt(a*a+l*l)/2,h=o.subtract(t),d=t.add(o).scaled(.5),u=new n.Point(-h.y,h.x).normalized(),p=d.add(u.scaled(c));r=(0,s.ensureNotNull)(this.screenPointToPoint(p)),(isNaN(r.price)||isNaN(r.index))&&(r=(0,s.ensureNotNull)(this.screenPointToPoint(d)))}}else this._fakePointAdded&&(this._points.splice(1,1),this._fakePointAdded=!1);return r}_fixVerticalDiameterPoints(e,t,i){const r=(0,s.ensureNotNull)(this.pointToScreenPoint(e)),o=(0,s.ensureNotNull)(this.pointToScreenPoint(t)),a=this._model.timeScale(),l=a.indexToCoordinate(e.index),c=a.indexToCoordinate(i.index);let h=2*Math.abs(l-c);h*=t.price>e.price?1:-1,e.price=(0,s.ensureNotNull)(this.screenPointToPoint(new n.Point(r.x,o.y+h))).price}}},39593:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(53664),n=i(88564).DefaultProperty,o=i(71053).PlotRowSearchMode;const a=i(67337);var l=i(59555).sortSourcesPreOrdered.LineToolExecution;class c{constructor(e,t){this._pane=e,this._timeScale=t}static recreateOrderedByBarsSourcesCache(e){c.clearOrderedByBarsSourcesCache();for(var t=c.prototype,i=e.sourcesByGroup().all(),s=0;s_.lastBar()||i<_.firstBar())return{x:-1,y:-1} +;for(var m=this._cachedByBarIndexOrderedExecutions[i]||this._pane.sourcesByGroup().all(),g=m.length-1;g>=0;--g){var f=m[g];if(f instanceof d&&f._adapter._index===i&&f._adapter.getDirection()===r){if(f===e._line)break;var v=f._adapter._height();s=n?s+v:s-v}}return{x:t.indexToCoordinate(i),y:s}}}c.prototype._cachedByBarIndexOrderedExecutions={};class h{constructor(e){this._line=e}_height(){var e=this.getArrowHeight(),t=this.getArrowSpacing();this.getText()&&r.fontHeight(this.getFont());return e+t+0+10}getIndex(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index}setIndex(e){var t=this._line._model.timeScale().baseIndex()-Math.abs(e);this._line.startMoving({logical:this._line.points()[0]});var i=TradingView.merge({},this._line.points()[0]);return i.index=t,this._line.move({logical:i}),this._line.endMoving(),this}getTime(){return this._unixtime}setTime(e){return this._unixtime=e,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){return this._line.points().length>0&&(this._line.points()[0].price=e),this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._line.properties().text.value()}setText(e){return this._line.properties().text.setValue(e||""),this._line.updateAllViewsAndRedraw(),this}getArrowHeight(){return this._line.properties().arrowHeight.value()}setArrowHeight(e){return this._line.properties().arrowHeight.setValue(e||5),this}getArrowSpacing(){return this._line.properties().arrowSpacing.value()}setArrowSpacing(e){return this._line.properties().arrowSpacing.setValue(e||1),this}getDirection(){return this._line.properties().direction.value()}setDirection(e){return this._line.properties().direction.setValue(e||"buy"),this}getArrowColor(){var e=this._line.properties();return"buy"===this.getDirection()?e.arrowBuyColor.value():e.arrowSellColor.value()}setArrowColor(e){return"buy"===this.getDirection()?this.setArrowBuyColor(e):this.setArrowSellColor(e),this}setArrowBuyColor(e){return this._line.properties().arrowBuyColor.setValue(e),this}setArrowSellColor(e){return this._line.properties().arrowSellColor.setValue(e),this}getTextColor(){return r.getColorFromProperties(this._line.properties().textColor,this._line.properties().textTransparency)}setTextColor(e){return r.setColorToProperties(e,this._line.properties().textColor,this._line.properties().textTransparency),this}getFont(){return r.getFontFromProperties(this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic)}setFont(e){return r.setFontToProperties(e,this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic),this}setTooltip(e){return null==e?e="":e+="",this._line.properties().tooltip.setValue(e),this}getTooltip(){ +return this._line.properties().tooltip.value()}remove(){this._line._model.removeSource(this._line),delete this._line}getPoints(){return this._line.points()}}class d extends s{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this._adapter=new h(this),this.customization.forcePriceAxisLabel=!1,this.customization.disableErasing=!0,this.customization.showInObjectTree=!1,this.setSelectionEnabled(!1),i.e(1583).then(i.t.bind(i,90216,19)).then(({ExecutionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return l}isSpeciallyZOrderedSource(){return!0}pointsCount(){return d.POINTS_COUNT}name(){return"Execution"}hasContextMenu(){return!1}state(){return null}updateAllViews(){return this._isVisible()?s.prototype.updateAllViews.call(this):null}priceAxisViews(e,t){return this._isVisible()?s.prototype.priceAxisViews.call(this,e,t):null}_isVisible(){return this._model.properties().tradingProperties.showExecutions.value()}paneViews(){return TradingView.printing&&!a.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showExecutions.value()?s.prototype.paneViews.call(this):null}userEditEnabled(){return!1}showInObjectTree(){return!1}cloneable(){return!1}copiable(){return!1}isSynchronizable(){return!1}static createProperties(e){var t=new n("linetoolexecution",e,!1,!1);return d._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}d.POINTS_COUNT=1,t.ExecutionsPositionController=c,t.LineToolExecution=d},41239:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Extended Line"}static createProperties(e){var t=new r("linetoolextended",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolExtended=n},48917:(e,t,i)=>{"use strict";i.d(t,{LineToolFibChannel:()=>h});var s=i(88537),r=i(28353),n=i(24980),o=i(89857),a=i(34580),l=i(37865);const c=new n.TranslatedString("erase level line",(0,r.t)("erase level line"));class h extends o.LineDataSource{constructor(e,t,s,r){super(e,t||h.createProperties(),s,r),this.version=2,i.e(1583).then(i.bind(i,74042)).then(({FibChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return 24}migrateVersion(e,t,i){i.properties.removeProperty("reverse")}pointsCount(){return 3}name(){return"Fib Channel"}processErase(e,t){const i="level"+t,s=this.properties().child(i).childs().visible;e.setProperty(s,!1,c)}static createProperties(e){const t=new a.LevelsProperty("linetoolfibchannel",e,!1,{range:[1,24],names:["coeff","color","visible"]});return h._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){o.LineDataSource._configureProperties(e);const t=[];for(let i=1;i<=24;i++){const r=(0,s.ensureDefined)(e.child("level"+i));t.push((0,s.ensureDefined)(r.child("color")))} +e.addChild("linesColors",new l.LineToolColorsProperty(t))}}},54502:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.t.bind(i,24227,19)).then(({FibCirclesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Fib Circles"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibcircles",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,9948))).FibCirclesDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibCircles=d},44860:(e,t,i)=>{"use strict";i.d(t,{LineToolFibRetracement:()=>c});var s=i(28353),r=i(24980),n=i(34580),o=i(89857),a=i(37865);const l=new r.TranslatedString("erase level line",(0,s.t)("erase level line"));class c extends o.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this.version=2,i.e(1583).then(i.bind(i,22567)).then(e=>{this._setPaneViews([new e.FibRetracementPaneView(this,this._model)])})}levelsCount(){return 24}pointsCount(){return 2}name(){return"Fib Retracement"}migrateVersion(e){1===e&&this.properties().childs().extendLines.setValue(!0)}processErase(e,t){const i="level"+t,{visible:s}=this.properties().childs()[i].childs();e.setProperty(s,!1,l)}fibLevelsBasedOnLogScale(){var e;return this.properties().childs().fibLevelsBasedOnLogScale.value()&&!!(null===(e=this.priceScale())||void 0===e?void 0:e.isLog())}static createProperties(e){const t=new n.LevelsProperty("linetoolfibretracement",e,!1,{range:[1,24],names:["coeff","color","visible"]});return c._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){var t;const i=e;super._configureProperties(i);const s=[i.childs().trendline.childs().linewidth,i.childs().levelsStyle.childs().linewidth],r=[i.childs().trendline.childs().color];for(let e=1;e<=24;e++){const s=null===(t=i.child("level"+e))||void 0===t?void 0:t.child("color");r.push(s)}i.addChild("linesColors",new a.LineToolColorsProperty(r)),i.addChild("linesWidths",new a.LineToolWidthsProperty(s))}}},19857:(e,t,i)=>{"use strict" +;var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,52832)).then(({FibSpeedResistanceArcsPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Arcs"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibspeedresistancearcs",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,17770))).FibSpeedResistanceArcsDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibSpeedResistanceArcs=d},70673:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865).LineToolColorsProperty,l=new r("erase level line",s("erase level line"));class c extends n{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),i.e(1583).then(i.bind(i,95294)).then(({FibSpeedResistanceFanPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return c.HLevelsCount}vLevelsCount(){return c.VLevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Fan"}processErase(e,t){var i="h"===t.type?"hlevel"+t.index:"vlevel"+t.index,s=this.properties()[i].visible;e.setProperty(s,!1,l)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,51697))).FibSpeedResistanceFanDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){void 0!==e&&void 0===e.reverse&&(e.reverse=!0);var t=new o("linetoolfibspeedresistancefan",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return c._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);var t=[e.child("grid").child("color")];for(let i=1;i<=c.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(let i=1;i<=c.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new a(t)),e.addExclusion("linesColors")}}c.HLevelsCount=7,c.VLevelsCount=7,t.LineToolFibSpeedResistanceFan=c},29638:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.bind(i,22115)).then(({FibSpiralPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2} +name(){return"Fib Spiral"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,29216))).FibSpiralDefinitionsViewModel}static createProperties(e){var t=new r("linetoolfibspiral",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolFibSpiral=n},63835:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,28550,19)).then(({FibTimeZonePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}migrateVersion(e,t,i){if(1===e){i.properties.level1.color.setValue(i.properties.baselinecolor.value());for(var s=2;s<=11;s++)i.properties["level"+s].color.setValue(i.properties.linecolor.value());for(s=1;s<=11;s++)i.properties["level"+s].linewidth.setValue(i.properties.linewidth.value()),i.properties["level"+s].linestyle.setValue(i.properties.linestyle.value())}}pointsCount(){return 2}name(){return"Fib Time Zone"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,45384))).FibTimezoneDefinitionsViewModel}static createProperties(e){var t=new o("linetoolfibtimezone",e,!1,{range:[1,11]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));for(t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.version=2,d.LevelsCount=11,t.LineToolFibTimeZone=d},53804:(e,t,i)=>{"use strict";i.d(t,{LineToolFibWedgeBase:()=>o});var s=i(88537),r=i(86441),n=i(89857);class o extends n.LineDataSource{pointsCount(){return 3}hasEditableCoordinates(){return!1}setPoint(e,t){if(super.setPoint(e,t),!this._recursiveGuard)try{if(this._recursiveGuard=!0,2===e){const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0]));let t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));const i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2])).subtract(e).length();let n=t.subtract(e);n.length()<=0&&(n=new r.Point(1,0)),t=e.add(n.normalized().scaled(i));const o=(0,s.ensureNotNull)(this.screenPointToPoint(t)),a=this._pointsProperty.childs().points[1];a.childs().price.setValue(o.price),a.childs().bar.setValue(o.index)}else{const e=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[2])) +;const n=t.subtract(e).length();let o=i.subtract(e);o.length()<=0&&(o=new r.Point(1,0)),i=e.add(o.normalized().scaled(n));const a=(0,s.ensureNotNull)(this.screenPointToPoint(i)),l=this._pointsProperty.childs().points[2];l.childs().price.setValue(a.price),l.childs().bar.setValue(a.index)}}finally{this._recursiveGuard=!1}}addPoint(e){if(2===this._points.length){const t=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),i=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let r=(0,s.ensureNotNull)(this.pointToScreenPoint(e));const n=i.subtract(t).length(),o=r.subtract(t).normalized();r=t.add(o.scaled(n));const a=(0,s.ensureNotNull)(this.ownerSource()),l=(0,s.ensureNotNull)(a.firstValue()),c=(0,s.ensureNotNull)(this.priceScale()).coordinateToPrice(r.y,l);e={index:Math.round(this._model.timeScale().coordinateToIndex(r.x)),price:c}}return n.LineDataSource.prototype.addPoint.call(this,e)}}},41668:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(53804).LineToolFibWedgeBase,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.t.bind(i,82522,19)).then(({FibWedgePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}levelsCount(){return d.LevelsCount}name(){return"Fib Wedge"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetoolfibwedge",e,!1,{range:[1,11]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90156))).FibWedgeDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,t.LineToolFibWedge=d},53342:(e,t,i)=>{"use strict";i.d(t,{LineToolFlagMark:()=>a});var s=i(86441),r=i(89857),n=i(88564),o=i(37865);class a extends r.LineDataSource{constructor(e,t,r,n){super(e,t||a.createProperties(),r,n),i.e(1583).then(i.bind(i,16089)).then(({FlagMarkPaneView:e})=>{const t=new e(this,this.model());t.setAnchors(new s.Point(0,0)),this._setPaneViews([t])})}pointsCount(){return 1}name(){return"Flag Mark"}static createProperties(e){e&&void 0===e.flagColor&&(e.flagColor="#318757");const t=new n.DefaultProperty("linetoolflagmark",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,18661)).then(e=>e.FlagMarkDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new o.LineToolColorsProperty([e.childs().flagColor])), +e.addExclusion("backgroundsColors")}}a.version=2},47047:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),this.version=n.version,i.e(1583).then(i.t.bind(i,82830,19)).then(({FlatBottomPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Flat Bottom"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])}if(2===e)this._points[1].index=t.index;else if(3===e)return this._points[0].index=t.index,this._points[2].price=t.price,void this.normalizePoints();super.setPoint(e,t)}getPoint(e){return e<3?s.prototype.getPoint.call(this,e):3===e?{index:this._points[0].index,price:this._points[2].price}:void 0}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price,time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),d=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=d):(o=d,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",h,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,14145))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetoolflatbottom",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolFlatBottom=n},50301:(e,t,i)=>{"use strict";i.d(t,{createPropertiesObject:()=>a});var s=i(80643),r=i(34580);function n(e,t,i){var r;for(const n of Object.keys(null!==(r=e.levels)&&void 0!==r?r:{}))if(e.levels[n]&&(0,s.isSameType)(e.levels[n],t.typecheck())){let s=t.tpl();i.names.forEach((i,r)=>{s=t.fill(""+r,i,e.levels[n],s)}),e.levels[n]=s}return e}class o extends r.LevelsProperty{constructor(e,t){super(e,t,!1,{names:["width","color","visible"]},n)}}function a(e,t){return new o(e,t)}},52870:(e,t,i)=>{"use strict";i.d(t,{LineToolGannComplex:()=>d});var s=i(86441),r=i(88537),n=i(51264),o=i(89857),a=i(22423),l=i(50301),c=i(37865),h=i(22799);class d extends o.LineDataSource{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=2,this._scaleRatioFormatter=new n.LimitedPrecisionNumericFormatter(7),this.version=2,i.e(1583).then(i.bind(i,72e3)).then(({GannComplexPaneView:e})=>{this._setPaneViews([new e(this,this.model())])}) +;const o=this.properties();this._adjustScaleRatio(o),o.subscribe(this,this._adjustScaleRatio),o.childs().scaleRatio.subscribe(this,this._correctFirstPoint),this._syncStateExclusions=["scaleRatio"],o.onRestoreFactoryDefaults().subscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.subscribe(this,this._handleTemplateApplying),this._onTemplateApplied.subscribe(this,this._correctFirstPoint)}migrateVersion(e,t,i){1===e&&(this._points.length>=this.pointsCount()?setTimeout(()=>this._migratePoint()):this._timePoint.length>=this.pointsCount()&&this._pointAdded.subscribe(this,this._migratePoint))}destroy(){const e=this.properties();e.unsubscribe(this,this._adjustScaleRatio),e.childs().scaleRatio.unsubscribe(this,this._correctFirstPoint),e.onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.unsubscribe(this,this._handleTemplateApplying),this._onTemplateApplied.unsubscribe(this,this._correctFirstPoint),super.destroy()}pointsCount(){return 2}name(){return"Gann Square"}addPoint(e,t,i){this._points.length>1&&this._points.pop();const s=super.addPoint(e,t,i),n=this.priceScale();return!(0,r.ensureNotNull)(n).isLog()&&s&&this._correctFirstPoint(),s}setPoint(e,t,i){super.setPoint(e,t,i),void 0!==i&&i.shift()?this._correctPoint(e):this._correctScaleRatio()}setLastPoint(e,t){const i=this.priceScale();return(0,r.ensureNotNull)(i).isLog()||(this._points[1]=e,this._correctPoint(1)),super.setLastPoint(e,t)}isReversed(){return this.properties().childs().reverse.value()}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.addExclusion("scaleRatio");const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0,o=s.index-r.index>0;let a=n&&!o||!n&&o?-1:1;0===e&&(a=-a),s.price=r.price+a*t*i,this._pointChanged.fire(e)}this.normalizePoints()}_correctFirstPoint(){this._correctPoint(this.isReversed()?0:1)}_handleRestoringFactoryDefaults(){this.properties().childs().scaleRatio.setValue(this._getAdjustedScaleRatio())}_handleTemplateApplying(e){""===e.scaleRatio&&(e.scaleRatio=this._getAdjustedScaleRatio())}_migratePoint(){if(this.points().length0){s=s.normalized();let e=Math.acos(s.x);return s.y>0&&(e=-e),e}return null}}},5094:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,66323)).then(({GannFanPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 2}name(){return"Gann Fan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,73511))).GannFanDefinitionsViewModel}static createProperties(e){var t=new o("linetoolgannfan",e,!1,{range:[1,9]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[],i=[],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=9,t.LineToolGannFan=d},33209:(e,t,i)=>{"use strict";i.d(t,{LineToolGannFixed:()=>l});var s=i(86441),r=i(88537),n=i(89857),o=i(37865),a=i(50301);class l extends n.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._constructor="LineToolGannFixed",i.e(1583).then(i.bind(i,93695)).then(({GannFixedPaneView:e})=>{this._setPaneViews([new e(this,this.model())])}),this.properties().childs().reverse.subscribe(this,this._reversePoints)}pointsCount(){return 2}name(){return"Gann Square Fixed"}axisPoints(){const e=this.points(),t=this.getScreenPoints();return e.length<2||t.length<2?[]:[e[0],(0,r.ensureNotNull)(this.screenPointToPoint(t[1]))]}getScreenPoints(){const e=this.points();if(e.length<2)return[];const t=this._calcAngle();if(null===t)return[];const[i,n]=e,o=(0,r.ensureNotNull)(this.pointToScreenPoint(i)),a=(0,r.ensureNotNull)(this.pointToScreenPoint(n)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),c=new s.Point(Math.cos(t),-Math.sin(t)),h=c.normalized(),d=h.x<0?-1:1,u=h.y<0?-1:1;return[o.addScaled(c,l),o.add(new s.Point(5*l*d,5*l*u))]}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e);const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0&&(o=-o),o}_reversePoints(){const[e,t]=this._points;this._points[0]=t,this._points[1]=e,this.normalizePoints(),this.restart()}}},97433:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(34580).LevelsProperty,n=i(37865).LineToolColorsProperty,o=[4.5,9,11.25,18,22.5,36,45],a=function(){for(var e=[],t=o.length-1,i=1,s=0,r=0;r<1e10;)r=o[s]*i,e.push(Math.round(r)),e.push(Math.ceil(-r)),s===t-1&&(i*=10),s=(s+1)%t;return e.sort((function(e,t){return et?1:0})),e}();class l extends s{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),i.e(1583).then(i.t.bind(i,50527,19)).then(({GannSquarePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return l.HLevelsCount}vLevelsCount(){return l.VLevelsCount}pointsCount(){return 2}name(){return"Gann Box"}_alignPriceOnPattern(e,t){var i=Math.round(1e6*(e.price-t.price))/1e6;if(0===i)return t.price;for(var s=o[0],r=o[o.length-1],n=1,a=Math.abs(i);a=0&&!(o[c]*n=0?l:-l),e}_alignTimeOnPattern(e,t){var i=e.index-t.index;if(0===i)return 0;for(var s=a.length-2;s>=0&&!(a[s]0?1:0,e.index=t.index+a[s],e}_alignPointsFixedIncrement(e,t){return this._alignTimeOnPattern(e,t),this._alignPriceOnPattern(e,t),e}_preparePoint(e,t){return t&&t.shift()&&0!==this._points.length&&this._alignPointsFixedIncrement(e,this._points[0]),super._preparePoint(e,t)}getPoint(e){ +if(e<2)return super.getPoint(e);var t=null;switch(e){case 2:case 3:var i=this.points();if(i.length===this.pointsCount()){var s=i[0].index,r=i[1].price;3===e&&(s=i[1].index,r=i[0].price),t={index:s,price:r}}}return t}setPoint(e,t,i){if(i&&i.shift()){var s=e%2==0?this._points[1]:this._points[0];this._alignPointsFixedIncrement(t,s)}switch(e){case 2:this._points[0].index=t.index,this._points[1].price=t.price;break;case 3:this._points[1].index=t.index,this._points[0].price=t.price;break;default:super.setPoint(e,t,i)}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,58026))).GannSquareDefinitionsViewModel}static createProperties(e){var t=new r("linetoolgannsquare",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("color"),e.child("fans").child("color")],i=1;i<=l.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(i=1;i<=l.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new n(t)),e.addExclusion("linesColors")}}l.HLevelsCount=7,l.VLevelsCount=7,t.LineToolGannSquare=l},82241:(e,t,i)=>{"use strict";i.d(t,{LineToolGhostFeed:()=>c});var s=i(88564),r=i(89857),n=i(88537),o=i(80643);class a{constructor(e,t,i){this._source=e,this._segmentIndex=t,this._bars=null!=i?i:[]}setBars(e){this._bars=e}clone(e){return new a(e,this._segmentIndex,(0,o.clone)(this._bars))}generate(){this._bars=[];const e=this._source.points(),t=e[this._segmentIndex],i=e[this._segmentIndex+1];if(!t||!i||t.index===i.index)return;const s=this._segmentIndex?t.index+1:t.index,r=Math.sign(i.index-t.index);for(let e=s;e!==i.index;e+=r)this._bars.push(this._createBar())}bars(){return this._bars}setSize(e){if(e{this._setPaneViews([new t.GhostFeedPaneView(this,e)])})} +isSynchronizable(){return!1}destroy(){this.properties().onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),super.destroy()}propertiesChanged(){super.propertiesChanged(),this._currentAverageHL===this.properties().childs().averageHL.value()&&this._currentVariance===this.properties().childs().variance.value()||this._regenerate()}pointsCount(){return-1}name(){return"Ghost Feed"}segmentBars(e){return this._segments[e].bars()}segments(){return this._segments}generateBars(e){this._segments.length<=e&&this._segments.push(new a(this,e)),this._segments[e].generate()}addPoint(e,t,i){if(this._finished)return!0;if(this._points.length>0){const i=this._points[this._points.length-1];if(!(null==t?void 0:t.isApiEvent())&&i.index===e.index){this._lastPoint=null,this.normalizePoints(),this.createServerPoints();for(let e=0;e1&&this.generateBars(this._points.length-2),s}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}setPoint(e,t,i,s){if(super.setPoint(e,t,i),e>0){const i=this.points()[e-1],s=t.index-i.index;this._segments[e-1].setSize(Math.abs(s))}if(e({bars:[...e.bars()]})),t}restoreData(e){e.segments&&(this._segments=e.segments.map((e,t)=>new a(this,t,e.bars))),this._currentAverageHL=this.properties().childs().averageHL.value(),this._currentVariance=this.properties().childs().variance.value()}onData(e){super.onData(e);if(!this.pointsProperty().childs().points.child("0"))for(let e=0;ee.clone(this))}startMoving(e,t,i,s){super.startMoving(e,t,i,s),this._preparePixelSegments()}move(e,t,i,s){super.move(e,t,i,s),this._restoreSegmentsFromPixels()}endMoving(e,t){return this._segmentsPixelsWhileMoving=null,super.endMoving(e,t)}static createProperties(e){const t=new s.DefaultProperty("linetoolghostfeed",e);return c._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,65818))).GhostFeedDefinitionsViewModel}_handleRestoringFactoryDefaults(){const e=Math.round(this._calculateATR());this.properties().childs().averageHL.setValue(e)}_regenerate(){this._currentAverageHL=this.properties().childs().averageHL.value(),this._currentVariance=this.properties().childs().variance.value(),this._segments.forEach(e=>e.generate()),this.updateAllViews((0,l.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}_calculateATR(){const e=this._model.mainSeries(),t=[];e.bars().each((e,i)=>{const s=i[2],r=i[3] +;return null!=s&&null!=r&&t.push(s-r),!1});let i=0===t.length?0:t.reduce((e,t)=>e+t,0)/t.length;return i*=e.base(),i}_preparePixelSegments(){var e,t;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===i||null===s||i.isEmpty()||!i.isLog())return;const r=this.points();this._segmentsPixelsWhileMoving=this._segments.map((e,t)=>{const n=r[t].price,o=r[t+1].price,a=i.priceToCoordinate(n,s),l=(i.priceToCoordinate(o,s)-a)/(e.bars().length-1);return{bars:e.bars().map((e,t)=>{const r=a+t*l,n=i.coordinateToPrice(r,s);return{open:i.priceToCoordinate(n+e.o,s)-r,high:i.priceToCoordinate(n+e.h,s)-r,low:i.priceToCoordinate(n+e.l,s)-r,close:i.priceToCoordinate(n+e.c,s)-r}})}})}_restoreSegmentsFromPixels(){var e,t;const i=this.priceScale(),s=null!==(t=null===(e=this.ownerSource())||void 0===e?void 0:e.firstValue())&&void 0!==t?t:null;if(null===i||null===s||null===this._segmentsPixelsWhileMoving)return;const r=this.points();this._segmentsPixelsWhileMoving.forEach((e,t)=>{const n=this._segments[t],o=r[t].price,a=r[t+1].price,l=i.priceToCoordinate(o,s),c=(i.priceToCoordinate(a,s)-l)/(e.bars.length-1),h=n.bars().map((t,r)=>{const n=e.bars[r],o=l+r*c,a=i.coordinateToPrice(o,s);return{...t,o:i.coordinateToPrice(n.open+o,s)-a,h:i.coordinateToPrice(n.high+o,s)-a,l:i.coordinateToPrice(n.low+o,s)-a,c:i.coordinateToPrice(n.close+o,s)-a}});n.setBars(h)})}}},90378:(e,t,i)=>{"use strict";i.d(t,{LineToolHeadAndShoulders:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,75545)).then(t=>{this._setPaneViews([new t.LineToolHeadAndShouldersPaneView(this,e)])})}pointsCount(){return 7}name(){return"Head and Shoulders"}static createProperties(e){const t=new s.DefaultProperty("linetoolheadandshoulders",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor]))}}},65649:(e,t,i)=>{"use strict";i.d(t,{LineToolHighlighter:()=>n});var s=i(88564),r=i(27258);class n extends r.LineToolBrushBase{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s),this._loadPaneViews(e)}smooth(){return this.properties().childs().smooth.value()}name(){return"Highlighter"}static createProperties(e){const t=new s.DefaultProperty("linetoolhighlighter",e);return n._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,19461)).then(e=>e.HighlighterDefinitionsViewModel)}_loadPaneViews(e){i.e(1583).then(i.bind(i,94672)).then(t=>{this._setPaneViews([new t.HighlighterPaneView(this,e)])})}static _configureProperties(e){ +r.LineToolBrushBase._configureProperties(e)}}},10198:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzLinePriceAxisView:()=>r});var s=i(97938);class r extends s.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.points(),r=this._source.priceScale();if(0===s.length||null===r||r.isEmpty())return;const n=s[0];if(!isFinite(n.price))return;const o=this._source.ownerSource(),a=null!==o?o.firstValue():null;if(null===a)return;const l=this._source.properties().linecolor.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=r.priceToCoordinate(n.price,a),e.text=r.formatPrice(n.price,a),e.visible=!0}}},8877:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzLine:()=>l});var s=i(2015),r=i.n(s),n=i(88564),o=i(89857),a=i(10198);class l extends o.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._priceAxisView=new a.LineToolHorzLinePriceAxisView(this),i.e(1583).then(i.bind(i,8196)).then(({HorzLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}state(e){const t=super.state(e);return t.points&&0!==t.points.length&&(t.points[0].offset=0),t}pointsCount(){return 1}name(){return"Horizontal Line"}priceAxisViews(e,t){return this.isSourceHidden()||t!==this.priceScale()||!this._model.selection().isSelected(this)&&!this.properties().childs().showPrice.value()||e!==this._model.paneForSource(this)?null:[this._priceAxisView]}timeAxisViews(){return null}timeAxisPoints(){return[]}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e)}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}denormalizeTimePoints(){this._points=[],this._timePoint.length>0&&this._points.push({price:this._timePoint[0].price,index:0})}clearData(){const e=this._points;super.clearData(),this._points=e}static createProperties(e){const t=new n.DefaultProperty("linetoolhorzline",e);return l._configureProperties(t),t}_getAlertPlots(){return[this.points()[0].price]}_pointsForPointset(){return[]}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,81204)).then(e=>e.HorizontalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(r())("")),e.addExclusion("text")}}},10471:(e,t,i)=>{"use strict";i.d(t,{LineToolHorzRay:()=>l});var s=i(88564),r=i(2015),n=i.n(r),o=i(10198),a=i(89857);class l extends a.LineDataSource{constructor(e,t,s,r){super(e,null!=t?t:l.createProperties(),s,r),this._priceAxisView=new o.LineToolHorzLinePriceAxisView(this),i.e(1583).then(i.bind(i,95325)).then(({HorzRayPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Horizontal Ray"}priceAxisViews(e,t){ +return this.isSourceHidden()||t!==this.priceScale()||!this._model.selection().isSelected(this)&&!this.properties().childs().showPrice.value()||e!==this._model.paneForSource(this)?null:[this._priceAxisView]}updateAllViews(e){super.updateAllViews(e),this._priceAxisView.update(e)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}canHasAlert(){return!0}static createProperties(e){const t=new s.DefaultProperty("linetoolhorzray",e);return l._configureProperties(t),t}_getAlertPlots(){const e=this._points[0],t={index:e.index+1,price:e.price};return[this._linePointsToAlertPlot([e,t],null,!1,!0)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,58148))).HorizontalRayDefinitionsViewModel}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(n())("")),e.addExclusion("text")}}},74468:(e,t,i)=>{"use strict";i.d(t,{LineToolIcon:()=>l});var s=i(88537),r=i(86441),n=i(88564),o=i(89857),a=i(37865);class l extends o.LineDataSource{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this.version=1,document.fonts&&document.fonts.check&&document.fonts.load&&!document.fonts.check("12px FontAwesome")&&document.fonts.load("12px FontAwesome","☺").then(()=>{this._isDestroyed||e.updateSource(this)}),i.e(1583).then(i.bind(i,78583)).then(t=>{this._setPaneViews([new t.IconPaneView(this,e)])})}pointsCount(){return 1}name(){return"Icon"}hasEditableCoordinates(){return!1}getAnchorLimit(){return 80}applyTemplate(e){delete e.icon,super.applyTemplate(e)}getChangePointForSync(e){return null}setPoint(e,t,i){const n=Object.assign({},t),o=(0,s.ensureNotNull)(this.pointToScreenPoint(this.points()[0])),a=(0,s.ensureNotNull)(this.pointToScreenPoint(n)).subtract(o),l=this.properties().childs();if(0===e||1===e){const t=a.normalized();let i=Math.acos(-t.x);Math.asin(t.y)>0&&(i=2*Math.PI-i),0===e&&(i+=Math.PI),l.angle.setValue(i)}else{const t=a.add(new r.Point(15*(3===e?-1:1),0));l.size.setValue(2*Math.abs(t.x))}}getSourceIcon(){return{type:"text",text:String.fromCharCode(this.properties().childs().icon.value())}}static createProperties(e){const t=new n.DefaultProperty("linetoolicon",e);return l._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80449)).then(e=>e.IconsDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new a.LineToolColorsProperty([e.childs().color])),e.addExclusion("angle")}}},51139:(e,t,i)=>{"use strict";i.d(t,{LineToolInfoLine:()=>n});var s=i(88564),r=i(57649);class n extends r.LineToolTrendLine{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}pointsCount(){return 2}name(){return"Info Line"}static createProperties(e){const t=new s.DefaultProperty("linetoolinfoline",e);return n._configureProperties(t),t} +static _configureProperties(e){r.LineToolTrendLine._configureProperties(e)}}},87639:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Inside Pitchfork"}static createProperties(e){var t=new s("linetoolinsidepitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolInsidePitchfork=n},44601:(e,t,i)=>{"use strict";var s;i.r(t),i.d(t,{isMtpPredictorToolName:()=>o,isStudyLineToolName:()=>a,isLineToolName:()=>l,isLineDrawnWithPressedButton:()=>c,isLineToolFinishRequiredWhenCreatedByApi:()=>h,isLineToolDrawWithoutPoints:()=>d,isImageToolName:()=>u,isTextToolName:()=>p});var r=i(72708);const n=new Set([]);function o(e){return n.has(e)}function a(e){return"LineToolRegressionTrend"===e||"LineToolVbPFixed"===e||"LineToolFixedRangeVolumeProfile"===e}function l(e){return e in(s||(s=i.t(r,2)))||a(e)}function c(e){return"LineToolBrush"===e||"LineToolHighlighter"===e}function h(e){return c(e)||"LineToolPath"===e||"LineToolPolyline"===e||"LineToolGhostFeed"===e}function d(e){return"LineToolTweet"===e||"LineToolIdea"===e||"LineToolImage"===e}function u(e){return"LineToolImage"===e}function p(e){switch(e){case"LineToolBalloon":case"LineToolText":case"LineToolTextAbsolute":case"LineToolCallout":case"LineToolNote":case"LineToolNoteAbsolute":case"LineToolSignpost":return!0}return!1}},50144:(e,t,i)=>{"use strict";i.d(t,{LineDataSourceBase:()=>B});var s=i(86441),r=i(88537),n=i(76422),o=i(98125),a=i(2872),l=i.n(a),c=i(98619),h=i(52714),d=i.n(h),u=i(23653),p=i(9315),_=i(36759),m=i(52418),g=i(37667),f=i(14791),v=i(29823),S=i(2015),y=i.n(S),b=i(85733),w=i(62443),C=i(20838),P=i(80643),T=i(33291),x=i(79680),I=i(38015);class M extends(y()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t,e.pointAdded().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)}),e.pointChanged().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)})}value(){const e=this._lineSource.points()[this._pointIndex].price,t=(0,r.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){const i=t.format(e),s=t.parse(i);return s.res?s.value:e}return e}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.price=parseFloat(""+e),this._lineSource.startChanging(this._pointIndex,t),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i)}}var L=i(19528),A=i(22474),E=i(37865);i(8859);const k=(0,o.getLogger)("Chart.LineDataSource");class D{constructor(){this._states=[]}start(e){this._states.push(e)}finish(e){const t=(0,r.ensureDefined)(this._states.pop());return s=t,(i=e).length!==s.length?{indexesChanged:!0,pricesChanged:!0}:i.reduce((e,t,i)=>{const r=s[i];return e.indexesChanged=e.indexesChanged||t.index!==r.index,e.pricesChanged=e.pricesChanged||t.price!==r.price,e},{ +indexesChanged:!1,pricesChanged:!1});var i,s}isEmpty(){return 0===this._states.length}}let V=0;class B extends w.DataSource{constructor(e,t,i,s){if(super(s),this.version=1,this.customization={forcePriceAxisLabel:!1,disableErasing:!1,disableSave:!1,showInObjectsTree:!0},this._currentPointsetAndSymbolId=null,this._pointChanged=new(l()),this._pointAdded=new(l()),this._alertUndoMode=!1,this._priceAxisViews=[],this._timeAxisViews=[],this._timePoint=[],this._points=[],this._lastPoint=null,this._paneViews=new Map,this._normalizedPointsChanged=new(l()),this._fixedPointsChanged=new(l()),this._changeStatesStack=new D,this._startMovingPoint=null,this._currentMovingPoint=null,this._isActualSymbol=!1,this._isActualInterval=!1,this._isActualCurrency=!1,this._isActualUnit=!1,this._isDestroyed=!1,this._sharingMode=new(d())(0),this._onTemplateApplying=new(l()),this._onTemplateApplied=new(l()),this._syncStateExclusions=[],this._definitionsViewModel=null,this._syncLineStyleMuted=!1,this._onIsActualIntervalChange=new(l()),this._linkKey=new(d())(null),this._serverUpdateTime=null,this._boundCalcIsActualSymbol=this.calcIsActualSymbol.bind(this),this._model=e,this._properties=t,this._localAndServerAlertsMismatch=!1,this._properties.hasChild("interval")||this._properties.addChild("interval",new(y())(e.mainSeries().interval())),this.calcIsActualSymbol(),this._properties.childs().intervalsVisibilities.listeners().subscribe(this,this.calcIsActualSymbol),this._properties.subscribe(this,()=>this.propertiesChanged()),this._createPointsProperties(),this.pointsCount()>0)for(let e=0;e{const t=!1===(0,b.hideAllDrawings)().value();e.value()?e.value()&&t&&n.emit("drawing_event",this._id,"show"):(this._model.selection().isSelected(this)&&this._model.selectionMacro(e=>{e.removeSourceFromSelection(this)}),t&&n.emit("drawing_event",this._id,"hide")),this._onSourceHiddenMayChange()}),(0,b.hideAllDrawings)().subscribe(this,this._onSourceHiddenMayChange),this._definitionsViewModel=null,this._isDestroyed=!1}destroy(){this._paneViews.forEach((e,t)=>this._destroyPanePaneViews(t)),this.stop(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),null!==this._ownerSource&&(this._ownerSource.currencyChanged().unsubscribeAll(this),this._ownerSource.unitChanged().unsubscribeAll(this),(0,x.isSymbolSource)(this._ownerSource)&&(this._ownerSource.symbolResolved().subscribe(this,this._boundCalcIsActualSymbol),this._ownerSource.isActingAsSymbolSource().unsubscribe(this._boundCalcIsActualSymbol))),this.ownerSourceChanged().unsubscribeAll(this),(0,b.hideAllDrawings)().unsubscribeAll(this),this.deleteAlert(),this._isDestroyed=!0}createPriceAxisView(e){return new A.LineToolPriceAxisView(this,{pointIndex:e})}model(){return this._model}linkKey(){return this._linkKey}serverUpdateTime(){return this._serverUpdateTime} +setServerUpdateTime(e){this._serverUpdateTime=e}boundToSymbol(){return!0}points(){const e=[];for(let t=0;t0&&(this._points=e)}restorePoints(e,t,i){const s=this._timePoint.length>0&&!(0,P.deepEquals)(this._timePoint,e)[0];this._timePoint=(0,c.deepCopy)(e),this._points=t,i||this.denormalizeTimePoints(),s&&this._normalizedPointsChanged.fire()}restorePositionPercents(e){this._positionPercents=e}calcIsActualSymbol(){if(this._model.mainSeries().hasDelayedSymbolIntervalChange())return;const e=this.ownerSource();if(null===e)this._isActualSymbol=!1;else{const t=(0,r.ensureNotNull)(e.symbolSource());this._migrateSymbolProperty();const i=this._properties.childs().symbol,s=i.value();if(this._isActualSymbol=t.symbolSameAsCurrent(s),this._isActualSymbol){const e=t.symbol();(0,f.areEqualSymbols)(s,e)||(k.logWarn('Possible drawing "migrating" detected from "'+s+'" to "'+e+'"'),k.logWarn("Series symbolInfo: "+JSON.stringify(t.symbolInfo())),k.logWarn(""+(new Error).stack)),i.setValue(e)}}this.calcIsActualInterval(),this.calcIsActualCurrency(),this.calcIsActualUnit(), +this._onSourceHiddenMayChange()}calcIsActualCurrency(){const e=this.ownerSource();if(null===e)return void(this._isActualCurrency=!1);let t=this._properties.childs().currencyId.value();if(null!==t){const i=e.symbolSource();if(null===i)return;0,this._isActualCurrency=t===(0,g.symbolCurrency)(i.symbolInfo(),void 0,!0)}else{const t=(0,r.ensureNotNull)(e.symbolSource()).symbolInfo();this._isActualCurrency=null!==t&&(0,g.symbolCurrency)(t)===(0,g.symbolOriginalCurrency)(t)}this._onSourceHiddenMayChange()}calcIsActualUnit(){const e=this.ownerSource();if(null===e)return void(this._isActualUnit=!1);const t=this._properties.childs().unitId.value();if(null!==t)this._isActualUnit=t===(0,r.ensureNotNull)(e.symbolSource()).unit();else{const t=(0,r.ensureNotNull)(e.symbolSource()).symbolInfo(),i=this._model.unitConversionEnabled();this._isActualUnit=null!==t&&(0,g.symbolUnit)(t,i)===(0,g.symbolOriginalUnit)(t,i)}this._onSourceHiddenMayChange()}calcIsActualInterval(){const e=this._isActualInterval,t=this._properties,i=this._model.mainSeries();this._isActualInterval=(0,_.isActualInterval)(v.Interval.parse(i.interval()),t.childs().intervalsVisibilities),!this._isActualInterval&&this._model.selection().isSelected(this)&&this._model.selectionMacro(e=>e.removeSourceFromSelection(this)),this._isActualInterval!==e&&this._onIsActualIntervalChange.fire(),this._onSourceHiddenMayChange()}paneViews(e){if(this.isSourceHidden())return null;const t=this._getPaneViews(this.isMultiPaneAvailable()?e:void 0);if(null===t)return null;if(1===t.length)return[t[0]];const i=[];for(let e=t.length-1;e>=0;--e)i.push(t[e]);return i}isSavedInChart(){return!this.customization.disableSave}setSavingInChartEnabled(e){this.customization.disableSave=!e}detachAlert(){const e=this.getAlertSync();if(e&&this._alertCallbacks){const t=this._alertCallbacks;e.off("destroy",t.remove),e.off("change:hovered",t.hovered),e.off("change:selected",t.selected)}this.hasAlert.setValue(!1),this._alertId=void 0}removeAlert(){this._alertId=void 0,this.hasAlert.setValue(!1)}deleteAlert(){0}areLocalAndServerAlertsMismatch(){return this._localAndServerAlertsMismatch}showInObjectTree(){return this.customization.showInObjectsTree}setShowInObjectsTreeEnabled(e){this.customization.showInObjectsTree=e}start(){this.createServerPoints()}processHibernate(){this.isSourceHidden()?this.isStarted()&&this.stop():this.isStarted()||this.start()}onData(e){"pointset_error"!==e.method?e.params.customId===this._currentPointsetIdWithPrefix()&&this._onPointsetUpdated(e.params.plots):k.logError(`Error getting pointset: ${e.params[0]} ${e.params[1]}`)}isActualSymbol(){return this._isActualSymbol}isActualCurrency(){return this._isActualCurrency}isActualInterval(){return this._isActualInterval}isActualUnit(){return this._isActualUnit}onIsActualIntervalChange(){return this._onIsActualIntervalChange}setOwnerSource(e){null!==this._ownerSource&&(this._ownerSource.currencyChanged().unsubscribeAll(this),this._ownerSource.unitChanged().unsubscribeAll(this)),null!==this._ownerSource&&(0, +x.isSymbolSource)(this._ownerSource)&&(this._ownerSource.symbolResolved().unsubscribe(this,this._boundCalcIsActualSymbol),this._ownerSource.isActingAsSymbolSource().unsubscribe(this._boundCalcIsActualSymbol)),super.setOwnerSource(e),e&&(this.setPriceScale(e.priceScale()),e.currencyChanged().subscribe(this,this.calcIsActualCurrency),e.unitChanged().subscribe(this,this.calcIsActualUnit),this.calcIsActualSymbol(),this._migrateZOrder()),(0,x.isSymbolSource)(e)&&(e.symbolResolved().subscribe(this,this._boundCalcIsActualSymbol),e.isActingAsSymbolSource().subscribe(this._boundCalcIsActualSymbol))}dataAndViewsReady(){return this._paneViews.size>0}pointAdded(){return this._pointAdded}pointChanged(){return this._pointChanged}pointToScreenPoint(e){var t;const i=this._model.timeScale(),r=this.priceScale(),n=null===(t=this.ownerSource())||void 0===t?void 0:t.firstValue();if(!r||r.isEmpty()||i.isEmpty()||null==n)return null;const o=i.indexToCoordinate(e.index),a=r.priceToCoordinate(e.price,n);return new s.Point(o,a)}screenPointToPoint(e){var t;const i=this.priceScale(),s=null===(t=this.ownerSource())||void 0===t?void 0:t.firstValue();if(null==s||!isFinite(s)||null===i)return null;const r=this._model.timeScale().coordinateToIndex(e.x);return{price:i.coordinateToPrice(e.y,s),index:r}}addPoint(e,t,i){const s=this._preparePoint(e,t);return this._addPointIntenal(s,t,i)}addFixedPoint(e){return this._fixedPoint=e,this.calcPositionPercents(),!0}calcPositionPercents(){const e=this.priceScale();if(!e||e.isEmpty()||void 0===this._fixedPoint)return;const t=this._fixedPoint.x/this._model.timeScale().width(),i=this._fixedPoint.y/e.height();return this._positionPercents={x:t,y:i},this._positionPercents}restoreFixedPoint(){this._fixedPoint=this.fixedPoint()}getPointByPosition(e,t,i,s){return[t,i,s][e]}propertiesChanged(e){this.calcIsActualInterval(),this.updateAllViewsAndRedraw((0,T.dataSourceChangeEvent)(this.id())),e||this._syncLineStyleIfNeeded(),void 0===this._pendingPropertyChangedEvent&&(this._pendingPropertyChangedEvent=setTimeout(()=>{this._pendingPropertyChangedEvent=void 0,n.emit("drawing_event",this._id,"properties_changed")},0))}state(e){var t,i;const s={type:this.toolname,id:this.id(),state:this.properties().state(null!==(t=this._propertiesStateExclusions())&&void 0!==t?t:void 0),points:(0,c.deepCopy)(this._timePoint),zorder:this.zorder(),ownerSource:null===(i=this.ownerSource())||void 0===i?void 0:i.id()};return this.linkKey().value()&&(s.linkKey=this.linkKey().value()),delete s.state.points,e&&(s.indexes=this._points),this.isFixed()&&(s.positionPercents=this._positionPercents||this.calcPositionPercents()),"version"in this&&1!==this.version&&(s.version=this.version),this._saveAlertIdInState()&&this.hasAlert.value()&&void 0!==this._alertId&&(s.alertId=this._alertId.toString()),s}updateAllViews(e){this._isActualSymbol&&this._isActualCurrency&&this._isActualUnit&&this._isActualInterval&&this._properties.childs().visible.value()&&(this._updateAllPaneViews(e),this._priceAxisViews.forEach(t=>t.update(e)), +this._timeAxisViews.forEach(t=>t.update(e)))}updateAllViewsAndRedraw(e){this.updateAllViews(e),this._model.updateSource(this)}properties(){return this._properties}restoreExternalPoints(e,t){if(this._timePoint=(0,c.deepCopy)(e.points),t.indexesChanged){if(this.properties().childs().interval.setValue(e.interval),!this.isActualSymbol())return this._clearServerPoints(),void this._normalizedPointsChanged.fire();this.createServerPoints()}else{const t=Math.min(this._points.length,e.points.length);for(let i=0;i0&&this.normalizePoints(),!this._readyToCreatePointset())return;const e=this._pointsForPointset();if(0===e.length)return;++V,this._currentPointsetAndSymbolId={pointsetId:V,symbolId:(0,r.ensureNotNull)(this._model.mainSeries().seriesSource().symbolInstanceId())};const t=(0,p.getServerInterval)(this.properties().childs().interval.value());this._model.chartApi().createPointset(this._currentPointsetIdWithPrefix(),"turnaround",this._currentPointsetAndSymbolId.symbolId,t,e,this.onData.bind(this))}finish(){}realign(){var e;this.calcIsActualSymbol(),this.isFixed()||this.isSourceHidden()||this._model.lineBeingCreated()===this||this._model.lineBeingEdited()===this||(null===(e=this._currentPointsetAndSymbolId)||void 0===e?void 0:e.symbolId)===this._model.mainSeries().seriesSource().symbolInstanceId()||this._clearServerPoints(),this.updateAllViews((0,T.dataSourceChangeEvent)(this.id()))}stop(){this._clearServerPoints()}restart(){this.isFixed()||(this._currentPointsetAndSymbolId=null,this.createServerPoints())}isStarted(){return null!==this._currentPointsetAndSymbolId}convertYCoordinateToPriceForMoving(e,t){var i;const s=(0,r.ensureNotNull)(this.priceScale());if(s.isEmpty())return null;const n=this.ownerSource(),o=(0,r.ensure)(null===(i=n||t)||void 0===i?void 0:i.firstValue());return s.coordinateToPrice(e,o)}syncMultichartState(e){ +const t={points:this._timePoint,interval:this._model.mainSeries().interval()},i=this.linkKey().value();if(null!==i&&this.isSynchronizable()){const s={model:this._model,linkKey:i,symbol:this._model.mainSeries().symbol(),finalState:t,changes:e};(0,b.finishChangingLineTool)(s)}}enableCurrentIntervalVisibility(){const e=this.properties().childs().intervalsVisibilities.state();void 0!==e&&((0,_.makeIntervalsVisibilitiesVisibleAtInterval)(e,v.Interval.parse(this._model.mainSeries().interval())),this.properties().childs().intervalsVisibilities.mergeAndFire(e))}clonePositionOffset(){return this.isFixed()?{barOffset:0,xCoordOffset:20,yCoordOffset:20}:{barOffset:0,xCoordOffset:0,yCoordOffset:-40}}sharingMode(){return this._sharingMode}share(e){this.isSynchronizable()&&this._sharingMode.setValue(e)}syncLineStyleState(){const e=this.properties().state(this._syncStateExclusions);return delete e.interval,e.intervalsVisibilities=(0,_.mergeIntervalVisibilitiesDefaults)(e.intervalsVisibilities),e}_correctLastPoint(e){return(0,P.clone)(e)}_pointsForPointset(){return this._timePoint.map(e=>[e.time_t,e.offset])}_snapPoint45Degree(e,t,i){const s=this._model.timeScale(),n=s.indexToCoordinate(t.index),o=s.indexToCoordinate(e.index)-n,a=(0,r.ensureNotNull)(this.priceScale()),l=t.price,c=e.price,h=(0,r.ensureNotNull)((0,r.ensureNotNull)(this.ownerSource()).firstValue()),d=a.priceToCoordinate(l,h),u=a.priceToCoordinate(c,h)-d,p=Math.round(Math.atan2(o,u)/Math.PI*4);if(2===Math.abs(p))i||(e.price=l);else if(0===Math.abs(p)||4===Math.abs(p))i||(e.index=t.index);else{const t=Math.sqrt(o*o+u*u),i=o<0?-1:1,r=u<0?-1:1;let l=Math.max(Math.abs(u),Math.abs(o));l/=l*Math.sqrt(2)/t;const c=Math.round(s.coordinateToIndex(n+l*i)),p=Math.abs(s.indexToCoordinate(c)-n),_=a.coordinateToPrice(d+p*r,h);e.index=c,e.price=_}}normalizePoint(e){return{...this._model.timeScale().normalizeBarIndex(e.index),price:e.price}}normalizePoints(){this._timePoint=[];for(let e=0;ethis._destroyPanePaneViews(t)),this._model.lightUpdate()}_getPaneViews(e){return this._paneViews.get(e)||null}_updateAllPaneViews(e){this._paneViews.forEach(t=>{for(const i of t)i.update(e)})}_alignPointHorizontallyOrVertically(e){const t=(0,r.ensureNotNull)(this.pointToScreenPoint(e)),i=(0,r.ensureDefined)((0,r.ensureNotNull)(this._startMovingPoint).logical),s=(0,r.ensureDefined)((0,r.ensureNotNull)(this._startMovingPoint).screen),n=Math.abs(s.x-t.x),o=Math.abs(s.y-t.y);if(n<10&&o<10)return e;return{index:n=1?{didCorrect:!0,point:e.add(s)}:{didCorrect:!1,point:e}}_currentPointsetIdWithPrefix(){return"pointset_"+(0,r.ensureNotNull)(this._currentPointsetAndSymbolId).pointsetId}_clearServerPoints(){null!==this._currentPointsetAndSymbolId&&this._model.chartApi().isConnected().value()&&this._model.chartApi().removePointset(this._currentPointsetIdWithPrefix()),this._currentPointsetAndSymbolId=null}_createPointProperty(e){const t=this._pointsProperty.childs().points;t.addProperty(""+e,{});const i=t[e];i.addChild("price",new M(this,e)),i.addChild("bar",new I.LineDataSourcePointIndexProperty(this,e))}_createPointsProperties(){this._pointsProperty=new(y()),this._pointsProperty.addChild("points",new(y()));for(let e=0;e=2&&this._snapTo45DegreesAvailable()&&this._snapPoint45Degree(i,this.points()[this.points().length-2]),i}_addPointIntenal(e,t,i){this._points.push(e);const s=this._points.length===this.pointsCount();return s?(this._lastPoint=null,i||(this.normalizePoints(),this.createServerPoints())):this._lastPoint=e,this._pointAdded.fire(this._points.length-1),s}_onSourceHiddenMayChange(){this._model.invalidate(u.InvalidationMask.validateAction(()=>{this!==this._model.lineBeingCreated()&&(this._isDestroyed||this.processHibernate())}))}_saveAlertIdInState(){return!0}_onPointsetUpdated(e){if(0===e.length)return;for(let t=0;t0}_onAlertData(e){}_propertiesStateExclusions(){return null}_syncLineStyleIfNeeded(){const e=this.linkKey().value();!this._syncLineStyleMuted&&e&&(0,b.changeLineStyle)({linkKey:e,state:this.syncLineStyleState(),model:this._model})}_muteSyncLineStyle(){this._syncLineStyleMuted=!0}_unmuteSyncLineStyleWithoutApplyingChanges(){this.propertiesChanged(),this._syncLineStyleMuted=!1}_applyTemplateImpl(e){e.intervalsVisibilities=(0,_.mergeIntervalVisibilitiesDefaults)(e.intervalsVisibilities);const t=this.properties();t.mergePreferences(e),t.saveDefaults(),this.propertiesChanged()}_getPropertyDefinitionsViewModelClass(){return Promise.resolve(null)}static _configureProperties(e){if(B._addCollectedProperties(e),e.hasChild("symbolStateVersion")||e.addChild("symbolStateVersion",new(y())(B._initialSymbolStateVersion())),e.hasChild("zOrderVersion")||e.addChild("zOrderVersion",new(y())(B._initialZOrderVersion())),e.hasChild("visible")||e.addChild("visible",new(y())(!0)),e.hasChild("frozen")||e.addChild("frozen",new(y())(!1)),e.hasChild("symbol")||e.addChild("symbol",new(y())("")),e.hasChild("currencyId")||e.addChild("currencyId",new(y())(null)),e.hasChild("unitId")||e.addChild("unitId",new(y())(null)),e.addExclusion("symbolStateVersion"),e.addExclusion("zOrderVersion"),e.addExclusion("visible"),e.addExclusion("frozen"),e.addExclusion("symbol"),e.addExclusion("currencyId"),e.addExclusion("unitId"),e.hasChild("intervalsVisibilities")){const t=(0,P.merge)((0,P.clone)(m.intervalsVisibilitiesDefaults),e.childs().intervalsVisibilities.state());e.removeProperty("intervalsVisibilities"),e.addChild("intervalsVisibilities",new C.IntervalsVisibilitiesProperty(t))}else e.addChild("intervalsVisibilities",new C.IntervalsVisibilitiesProperty(m.intervalsVisibilitiesDefaults));e.hasChild("title")||e.addChild("title",new(y())("")),e.addExclusion("symbolInfo"),e.addExclusion("points"),e.addExclusion("interval"),e.addExclusion("title"),e.hasChild("singleChartOnly")&&e.removeProperty("singleChartOnly"),e.hasChild("font")&&e.removeProperty("font")}static _addCollectedProperties(e){e.hasChild("linewidth")&&e.addChild("linesWidths",new E.LineToolWidthsProperty([(0,r.ensureDefined)(e.child("linewidth"))])),e.hasChild("linecolor")&&e.addChild("linesColors",new E.LineToolColorsProperty([(0,r.ensureDefined)(e.child("linecolor"))])),e.hasChild("backgroundColor")&&e.addChild("backgroundsColors",new E.LineToolColorsProperty([(0, +r.ensureDefined)(e.child("backgroundColor"))])),e.hasChild("textColor")&&e.addChild("textsColors",new E.LineToolColorsProperty([(0,r.ensureDefined)(e.child("textColor"))])),e.addExclusion("linesWidths"),e.addExclusion("linesColors"),e.addExclusion("backgroundsColors"),e.addExclusion("textsColors")}static _initialSymbolStateVersion(){return 1}static _initialZOrderVersion(){return 1}_destroyPanePaneViews(e){const t=this._paneViews.get(e);if(void 0!==t)for(const e of t)e.destroy&&e.destroy();void 0!==e&&e.onDestroyed().unsubscribeAll(this),this._paneViews.delete(e)}_copyPricesWithoutNormalization(){const e=Math.min(this._points.length,this._timePoint.length);for(let t=0;t{"use strict";i.d(t,{LineDataSourcePointIndexProperty:()=>n});var s=i(2015),r=i.n(s);class n extends(r()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t}value(){return this._lineSource.points()[this._pointIndex].index}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.index=e,this._lineSource.startChanging(this._pointIndex,t),this._setPointImpl(t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i)}_setPointImpl(e){this._lineSource.setPoint(this._pointIndex,e)}}},22474:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceAxisView:()=>n});var s=i(88537),r=i(97938);class n extends r.PriceAxisView{constructor(e,t){super(),this._active=!1,this._source=e,this._data=t,this._properties=e.model().properties().childs().scalesProperties}setActive(e){this._active=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.model();if(!s.timeScale()||s.timeScale().isEmpty())return;const r=this._source.priceScale();if(null===r||r.isEmpty())return;if(!s.selection().isSelected(this._source)&&!this._source.isForcedDrawPriceAxisLabel())return;if(null===s.timeScale().visibleBarsStrictRange())return;const n=this._source.priceAxisPoints(),o=this._data.pointIndex;if(n.length<=o)return;const a=n[o];if(!isFinite(a.price))return;const l=this._source.ownerSource(),c=null!==l?l.firstValue():null;if(null===c)return;let h=this._data.backgroundPropertyGetter?this._data.backgroundPropertyGetter():null;null===h&&(h=this._getBgColor()),i.background=h,i.borderColor="#2E84A6",i.textColor=this.generateTextColor(h),i.coordinate=r.priceToCoordinate(a.price,c),e.text=this._formatPrice(a.price,c),e.visible=!0}_getBgColor(){return this._active?this._properties.childs().axisLineToolLabelBackgroundColorActive.value():this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}_formatPrice(e,t){return(0,s.ensureNotNull)(this._source.priceScale()).formatPrice(e,t)}}},19528:(e,t,i)=>{"use strict";i.d(t,{LineDataSourceTimeAxisView:()=>r});var s=i(85578);class r extends s.TimeAxisView{constructor(e,t){super(e.model()),this._active=!1,this._source=e,this._pointIndex=t,this._properties=e.model().properties().childs().scalesProperties}setActive(e){this._active=e}_getBgColor(){ +return this._active?this._properties.childs().axisLineToolLabelBackgroundColorActive.value():this._properties.childs().axisLineToolLabelBackgroundColorCommon.value()}_getIndex(){if(!this._model.selection().isSelected(this._source))return null;const e=this._source.timeAxisPoints();return e.length<=this._pointIndex?null:e[this._pointIndex].index}_isVisible(){return!0}}},89857:(e,t,i)=>{"use strict";var s=i(86441).Point,r=i(22474).LineToolPriceAxisView,n=(i(85733),i(29823).Interval),o=i(98125).getLogger("Chart.LineDataSource"),a=i(67337),l=i(60870).lineToolsLocalizedNames,c=a.enabled("datasource_copypaste"),h=i(50144).LineDataSourceBase;class d extends h{isAvailableInFloatingWidget(){return!0}visibilityKeyByInterval(e){var t,i=n.parse(e);return d.IntervalsVisibilities.forEach((function(e){e.kind===i.kind()&&e.from<=i.multiplier()&&e.to>=i.multiplier()&&(t=e.key)})),t}priceScale(){return this._ownerSource?this._ownerSource.m_priceScale:null}symbol(){return this._properties.symbol.value()}isSavedInStudyTemplates(){return!1}fixedPoints(){var e=[];if(this._positionPercents&&!this.priceScale().isEmpty())for(var t=0;t{ +"use strict";i.r(t),i.d(t,{LineToolMultiplePropertyBaseImpl:()=>l,LineToolCollectedProperty:()=>c,LineToolWidthsProperty:()=>h,LineToolColorsProperty:()=>d,MultipleLineWidthsProperty:()=>p,MultipleLineColorsProperty:()=>_});var s=i(98125),r=i(2872),n=i.n(r);const o=(0,s.getLogger)("Chart.LineToolCollectedProperty");class a{applyValue(e,t){e.setValue(t)}}class l{constructor(e,t){this._onChange=new(n()),this._properties=e,e.forEach(e=>e.subscribe(this,()=>{this._onChange.fire(this)})),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 o.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))}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}}class c extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>s.applyValue(t,e))}}class h extends c{}class d extends c{firstColor(){return this._properties[0].value()}}class u extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>t.setValue(e,void 0,s))}}class p extends u{}class _ extends u{}},72708:(e,t,i)=>{"use strict";t.LineToolFibRetracement=i(44860).LineToolFibRetracement,t.LineToolFibChannel=i(48917).LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i(19857).LineToolFibSpeedResistanceArcs,t.LineToolProjection=i(35344).LineToolProjection,t.LineToolTrendBasedFibExtension=i(25861).LineToolTrendBasedFibExtension,t.LineToolElliott=i(97917).LineToolElliott,t.LineToolFibCircles=i(54502).LineToolFibCircles,t.LineToolVertLine=i(51922).LineToolVertLine,t.LineToolCrossLine=i(53193).LineToolCrossLine,t.LineToolBarsPattern=i(98802).LineToolBarsPattern,t.LineToolTrendBasedFibTime=i(6245).LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i(63835).LineToolFibTimeZone,t.LineToolCircleLines=i(49802).LineToolCircleLines,t.LineToolDateRange=i(45669).LineToolDateRange,t.LineToolPriceRange=i(66602).LineToolPriceRange,t.LineToolDateAndPriceRange=i(26215).LineToolDateAndPriceRange,t.LineToolParallelChannel=i(78898).LineToolParallelChannel,t.LineToolTrendAngle=i(86225).LineToolTrendAngle,t.LineToolTrendLine=i(57649).LineToolTrendLine,t.LineToolInfoLine=i(51139).LineToolInfoLine,t.LineToolArrowMark=i(18659).LineToolArrowMark,t.LineToolExecution=i(39593).LineToolExecution,t.LineToolPitchfan=i(18977).LineToolPitchfan,t.LineToolGannSquare=i(97433).LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i(70673).LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i(52870).LineToolGannComplex,t.LineToolGannFixed=i(33209).LineToolGannFixed,t.LineToolGannFan=i(5094).LineToolGannFan,t.LineToolFibWedge=i(41668).LineToolFibWedge, +t.LineToolPitchfork=i(40100).LineToolPitchfork,t.LineToolDisjointAngle=i(46512).LineToolDisjointChannel,t.LineToolFlatBottom=i(47047).LineToolFlatBottom,t.LineToolIcon=i(74468).LineToolIcon,t.LineToolRotatedRectangle=i(61272).LineToolRotatedRectangle,t.LineToolFibSpiral=i(29638).LineToolFibSpiral,t.LineToolHeadAndShoulders=i(90378).LineToolHeadAndShoulders,t.LineToolTriangle=i(99092).LineToolTriangle,t.LineToolTrianglePattern=i(53403).LineToolTrianglePattern,t.LineTool5PointsPattern=i(656).LineTool5PointsPattern,t.LineToolThreeDrivers=i(6980).LineToolThreeDrivers,t.LineToolABCD=i(82203).LineToolABCD,t.LineToolPolyline=i(19085).LineToolPolyline,t.LineToolPath=i(48950).LineToolPath,t.LineToolPrediction=i(12346).LineToolPrediction,t.LineToolPriceLabel=i(3113).LineToolPriceLabel,t.LineToolArrowMarker=i(10167).LineToolArrowMarker,t.LineToolNote=i(87517).LineToolNote,t.LineToolNoteAbsolute=i(87517).LineToolNoteAbsolute,t.LineToolSignpost=i(52827).LineToolSignpost,t.LineToolBrush=i(43871).LineToolBrush,t.LineToolArc=i(17337).LineToolArc,t.LineToolCallout=i(95536).LineToolCallout,t.LineToolBalloon=i(57666).LineToolBalloon,t.LineToolText=i(74971).LineToolText,t.LineToolHorzLine=i(8877).LineToolHorzLine,t.LineToolHorzRay=i(10471).LineToolHorzRay,t.LineToolRectangle=i(20258).LineToolRectangle,t.LineToolCircle=i(2039).LineToolCircle,t.LineToolEllipse=i(38430).LineToolEllipse,t.LineToolTimeCycles=i(38513).LineToolTimeCycles,t.LineToolSineLine=i(15718).LineToolSineLine,t.LineToolGhostFeed=i(82241).LineToolGhostFeed,t.LineToolBezierQuadro=i(30899).LineToolBezierQuadro,t.LineToolBezierCubic=i(47679).LineToolBezierCubic,t.LineToolArrow=i(59358).LineToolArrow,t.LineToolRay=i(31702).LineToolRay,t.LineToolExtended=i(41239).LineToolExtended,t.LineToolSchiffPitchfork=i(98390).LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i(98225).LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i(87639).LineToolInsidePitchfork,t.LineToolTextAbsolute=i(74971).LineToolTextAbsolute,t.LineToolArrowMarkLeft=i(18659).LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i(18659).LineToolArrowMarkRight,t.LineToolArrowMarkUp=i(18659).LineToolArrowMarkUp,t.LineToolArrowMarkDown=i(18659).LineToolArrowMarkDown,t.LineToolFlagMark=i(53342).LineToolFlagMark,t.LineToolCypherPattern=i(980).LineToolCypherPattern,t.LineToolElliottImpulse=i(97917).LineToolElliottImpulse,t.LineToolElliottTriangle=i(97917).LineToolElliottTriangle,t.LineToolElliottTripleCombo=i(97917).LineToolElliottTripleCombo,t.LineToolElliottCorrection=i(97917).LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i(97917).LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i(34291).LineToolRiskRewardLong,t.LineToolRiskRewardShort=i(34291).LineToolRiskRewardShort,t.LineToolPosition=i(2157).LineToolPosition,t.LineToolOrder=i(86858).LineToolOrder,t.LineToolHighlighter=i(65649).LineToolHighlighter,t.LineToolPriceNote=i(7648).LineToolPriceNote},60870:(e,t,i)=>{"use strict";i.d(t,{lineToolsLocalizedNames:()=>r});var s=i(28353);const r={LineTool5PointsPattern:(0,s.t)("XABCD Pattern"),LineToolABCD:(0, +s.t)("ABCD Pattern"),LineToolArc:(0,s.t)("Arc"),LineToolArrow:(0,s.t)("Arrow"),LineToolArrowMarkDown:(0,s.t)("Arrow Mark Down"),LineToolArrowMarkLeft:(0,s.t)("Arrow Mark Left"),LineToolArrowMarkRight:(0,s.t)("Arrow Mark Right"),LineToolArrowMarkUp:(0,s.t)("Arrow Mark Up"),LineToolBalloon:(0,s.t)("Balloon"),LineToolBarsPattern:(0,s.t)("Bars Pattern"),LineToolBezierCubic:(0,s.t)("Double Curve"),LineToolBezierQuadro:(0,s.t)("Curve"),LineToolBrush:(0,s.t)("Brush"),LineToolCallout:(0,s.t)("Callout"),LineToolCircleLines:(0,s.t)("Cyclic Lines"),LineToolCypherPattern:(0,s.t)("Cypher Pattern"),LineToolDateAndPriceRange:(0,s.t)("Date and Price Range"),LineToolDateRange:(0,s.t)("Date Range"),LineToolDisjointAngle:(0,s.t)("Disjoint Channel"),LineToolElliottCorrection:(0,s.t)("Elliott Correction Wave (ABC)"),LineToolElliottDoubleCombo:(0,s.t)("Elliott Double Combo Wave (WXY)"),LineToolElliottImpulse:(0,s.t)("Elliott Impulse Wave (12345)"),LineToolElliottTriangle:(0,s.t)("Elliott Triangle Wave (ABCDE)"),LineToolElliottTripleCombo:(0,s.t)("Elliott Triple Combo Wave (WXYXZ)"),LineToolEllipse:(0,s.t)("Ellipse"),LineToolExtended:(0,s.t)("Extended Line"),LineToolFibChannel:(0,s.t)("Fib Channel"),LineToolFibCircles:(0,s.t)("Fib Circles"),LineToolFibRetracement:(0,s.t)("Fib Retracement"),LineToolFibSpeedResistanceArcs:(0,s.t)("Fib Speed Resistance Arcs"),LineToolFibSpeedResistanceFan:(0,s.t)("Fib Speed Resistance Fan"),LineToolFibSpiral:(0,s.t)("Fib Spiral"),LineToolFibTimeZone:(0,s.t)("Fib Time Zone"),LineToolFibWedge:(0,s.t)("Fib Wedge"),LineToolFlagMark:(0,s.t)("Flag Mark"),LineToolImage:(0,s.t)("Image"),LineToolFlatBottom:(0,s.t)("Flat Top/Bottom"),LineToolAnchoredVWAP:(0,s.t)("Anchored VWAP"),LineToolGannComplex:(0,s.t)("Gann Square"),LineToolGannFixed:(0,s.t)("Gann Square Fixed"),LineToolGannFan:(0,s.t)("Gann Fan"),LineToolGannSquare:(0,s.t)("Gann Box"),LineToolHeadAndShoulders:(0,s.t)("Head and Shoulders"),LineToolHorzLine:(0,s.t)("Horizontal Line"),LineToolHorzRay:(0,s.t)("Horizontal Ray"),LineToolIcon:(0,s.t)("Icon"),LineToolInsidePitchfork:(0,s.t)("Inside Pitchfork"),LineToolNote:(0,s.t)("Note"),LineToolNoteAbsolute:(0,s.t)("Anchored Note"),LineToolSignpost:(0,s.t)("Signpost"),LineToolParallelChannel:(0,s.t)("Parallel Channel"),LineToolPitchfan:(0,s.t)("Pitchfan"),LineToolPitchfork:(0,s.t)("Pitchfork"),LineToolPolyline:(0,s.t)("Polyline"),LineToolPath:(0,s.t)("Path"),LineToolPrediction:(0,s.t)("Forecast"),LineToolPriceLabel:(0,s.t)("Price Label"),LineToolArrowMarker:(0,s.t)("Arrow Marker"),LineToolPriceRange:(0,s.t)("Price Range"),LineToolProjection:(0,s.t)("Projection"),LineToolRay:(0,s.t)("Ray"),LineToolRectangle:(0,s.t)("Rectangle"),LineToolCircle:(0,s.t)("Circle"),LineToolRegressionTrend:(0,s.t)("Regression Trend"),LineToolRiskRewardLong:(0,s.t)("Long Position"),LineToolRiskRewardShort:(0,s.t)("Short Position"),LineToolFixedRangeVolumeProfile:(0,s.t)("Fixed Range Volume Profile"),LineToolRotatedRectangle:(0,s.t)("Rotated Rectangle"),LineToolSchiffPitchfork:(0,s.t)("Modified Schiff Pitchfork"),LineToolSchiffPitchfork2:(0, +s.t)("Schiff Pitchfork"),LineToolSineLine:(0,s.t)("Sine Line"),LineToolText:(0,s.t)("Text",{context:"tool"}),LineToolTextAbsolute:(0,s.t)("Anchored Text"),LineToolThreeDrivers:(0,s.t)("Three Drives Pattern"),LineToolTimeCycles:(0,s.t)("Time Cycles"),LineToolTrendAngle:(0,s.t)("Trend Angle"),LineToolTrendBasedFibExtension:(0,s.t)("Trend-Based Fib Extension"),LineToolTrendBasedFibTime:(0,s.t)("Trend-Based Fib Time"),LineToolTrendLine:(0,s.t)("Trend Line"),LineToolInfoLine:(0,s.t)("Info Line"),LineToolTriangle:(0,s.t)("Triangle"),LineToolTrianglePattern:(0,s.t)("Triangle Pattern"),LineToolVertLine:(0,s.t)("Vertical Line"),LineToolCrossLine:(0,s.t)("Cross Line"),LineToolHighlighter:(0,s.t)("Highlighter"),LineToolPriceNote:(0,s.t)("Price Note"),LineToolVbPFixed:(0,s.t)("Volume Profile Fixed Range")};r.LineToolGhostFeed=(0,s.t)("Ghost Feed")},14291:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cloneLineTool:()=>W,createLineTool:()=>E,createLineToolProperties:()=>D,createStudyLineToolProperties:()=>V,getNewToolProperties:()=>A,isLineDrawnWithPressedButton:()=>P.isLineDrawnWithPressedButton,isLineTool:()=>N,isLineToolName:()=>P.isLineToolName,isStudyLineTool:()=>R,isStudyLineToolName:()=>P.isStudyLineToolName,isTrading:()=>O,lineToolByLinkKey:()=>H,prepareLineToolPropertiesByOwnerSource:()=>k,setNewToolProperties:()=>M,supportsPhantomMode:()=>B,tryFindStudyLineToolNameByStudyId:()=>F,unsetNewToolProperties:()=>L});var s=i(88537),r=i(86441),n=i(36759),o=i(51934),a=i(89857),l=i(72708),c=i.t(l,2),h=i(2271),d=i(88145),u=i(67072),p=i.n(u),_=i(66101),m=i(37865),g=i(80643),f=i(88564);const v=(0,d.studyIdString)("RegressionTrend","tv-basicstudies");function S(e){return void 0!==e.startPrice&&void 0!==e.endPrice}class y extends o.StudyLineDataSource{constructor(e,t,r,n,o){r=null!=r?r:(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:v}));super(e,r,"linreg_",null!=t?t:y.createProperties(e),n,o),this.version=2,this._trendData=null,i.e(1583).then(i.bind(i,79752)).then(e=>{this._setPaneViews([new e.RegressionTrendPaneView(this,this._model)])})}formatter(){throw new Error("This method should never be called")}pointsCount(){return 2}clearData(){this._trendData=null,super.clearData()}state(e){var t;const i=super.state(e);return e?{...i,nonseriesdata:null!==(t=this._trendData)&&void 0!==t?t:void 0}:i}restoreData(e){var t;super.restoreData(e),this._trendData=null!==(t=e.nonseriesdata)&&void 0!==t?t:null}startIndex(){if(null===this._trendData||null===this._indexes)return null;const e=this._indexes[this._trendData.startIndex];return e!==h.INVALID_TIME_POINT_INDEX?e:null}endIndex(){if(null===this._trendData||null===this._indexes)return null;const e=this._indexes[this._trendData.endIndex];return e!==h.INVALID_TIME_POINT_INDEX?e:null}baseLine(){return null===this._trendData?null:this._trendData.baseLine}downLine(){return null===this._trendData?null:this._trendData.downLine}upLine(){return null===this._trendData?null:this._trendData.upLine}pearsons(){return null===this._trendData?null:this._trendData.pearsons} +recalcStudyIfNeeded(){this._onStudyInputsMayChange()}cloneable(){return!1}static createProperties(e,t){const i=p().getStudyPropertyRootNameById(v),r=(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:v})),n=(0,f.createDefaultsState)(!0,i,[],e.studyVersioning());return V("LineToolRegressionTrend",r,r,(0,g.merge)((0,g.clone)(n),null!=t?t:{}),e.studyVersioning())}static createRegressionTrendPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,_.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return y._configureProperties(r),r}static studyId(){return v}_studyInputs(e){(0,s.assert)(2===e.length,"all the line tool points should be defined");const[t,i]=e;if(t.index===i.index)return null;const r=this._getPointTime(t.index<=i.index?t:i,!0),n=this._getPointTime(i.index>=t.index?i:t,!0);return null===r||null===n?(this._subscribeApplyInputsOnSeriesCompleted(),null):{...this.properties().childs().inputs.state(),"first bar time":1e3*r,"last bar time":1e3*n}}_onDataUpdated(e,t,i){null!==t&&(t.indexes_replace||(this._trendData=t.data),"nochange"!==i&&(this._indexes=i),super._onDataUpdated(e,t,i))}_isReady(){return null!==this._trendData&&void 0!==this._trendData.startIndex&&void 0!==this._trendData.endIndex&&S(this._trendData.upLine)&&S(this._trendData.baseLine)&&S(this._trendData.downLine)}_updateAnchorsPrice(){if(!this._trendData||(0,g.isNaN)(this._trendData.baseLine.startPrice)||(0,g.isNaN)(this._trendData.baseLine.endPrice))return;const{startPrice:e,endPrice:t}=this._trendData.baseLine;2===this._points.length&&(this._points[0].price=(0,s.ensureDefined)(e),this._points[1].price=(0,s.ensureDefined)(t),this._timePoint[0].price=(0,s.ensureDefined)(e),this._timePoint[1].price=(0,s.ensureDefined)(t))}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,96457))).RegressionTrendDefinitionsViewModel}static _configureProperties(e){o.StudyLineDataSource._configureProperties(e);const t=e.childs().styles.childs(),i=[t.upLine.childs().linewidth,t.downLine.childs().linewidth,t.baseLine.childs().linewidth];e.addChild("linesWidths",new m.LineToolWidthsProperty(i))}}var b=i(20299);const w=(0,d.studyIdString)("VbPFixed","tv-basicstudies");class C extends b.LineToolVbPFixed{constructor(e,t,i,s,r,n){const o=i||e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:w});super(e,t,o,s,r,n)}calcIsActualSymbol(){o.StudyLineDataSource.prototype.calcIsActualSymbol.apply(this)}boundToSymbol(){return!0}isSynchronizable(){return this.priceScale()===this._model.mainSeries().priceScale()}static studyId(){return w}static createProperties(e,t){const i=p().getStudyPropertyRootNameById(w),r=(0,s.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:w})),n=(0,f.createDefaultsState)(!0,i,[],e.studyVersioning());return V("LineToolFixedRangeVolumeProfile",r,r,(0,g.merge)((0,g.clone)(n),null!=t?t:{}),e.studyVersioning())}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0, +_.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return C._configureProperties(r),r}}var P=i(44601),T=i(2587);function x(e){for(const t of Object.keys(e))TradingView[t]=e[t]}x(c),x({LineToolRegressionTrend:y,LineToolVbPFixed:b.LineToolVbPFixed,LineToolFixedRangeVolumeProfile:C});let I=null;function M(e,t,i){return null!==I&&I.tool===e&&I.toolData===t||(I={properties:D(e,void 0,i),tool:e,toolData:t}),I.properties}function L(){I=null}function A(e){return null!==I&&I.tool===e?I.properties:null}function E(e,t,i,r,n,o){let a;if((0,s.assert)((0,P.isLineToolName)(e),"Unknown line tool: "+e),n||i||(i=A(e)||void 0),"LineToolVbPFixed"===e)a=new b.LineToolVbPFixed(t,i,(0,s.ensureDefined)(r),t.mainSeries(),n,o);else if("LineToolFixedRangeVolumeProfile"===e)a=new C(t,i,(0,s.ensureDefined)(r),t.mainSeries(),n,o);else if("LineToolRegressionTrend"===e)a=new y(t,i,(0,s.ensureDefined)(r),n,o);else{a=new((0,s.ensureDefined)(c[e]))(t,i,n,o)}return a.toolname=e,L(),a}function k(e,t){const i=(0,s.ensureNotNull)(t.symbolSource());e.childs().symbol.setValue(i.symbol()),i.model().currencyConversionEnabled()&&e.childs().currencyId.setValue(i.currency()),i.model().unitConversionEnabled()&&e.childs().unitId.setValue(i.unit()),e.childs().symbolStateVersion.setValue(2),e.childs().zOrderVersion.setValue(2)}function D(e,t,i){if((0,s.assert)((0,P.isLineToolName)(e),e+" should be name of the line tool"),"LineToolVbPFixed"===e)return b.LineToolVbPFixed.createProperties(i,t);if("LineToolFixedRangeVolumeProfile"===e)return C.createProperties(i,t);if("LineToolRegressionTrend"===e)return y.createProperties(i,t);return(0,s.ensureDefined)(c[e]).createProperties(t)}function V(e,t,i,r,n){if((0,s.assert)((0,P.isStudyLineToolName)(e),e+" should be name of the study line tool"),"LineToolVbPFixed"===e)return b.LineToolVbPFixed.createPropertiesFromStudyMetaInfoAndState(t,i,r,n);if("LineToolFixedRangeVolumeProfile"===e)return C.createPropertiesFromStudyMetaInfoAndState(t,i,r,n);if("LineToolRegressionTrend"===e)return y.createRegressionTrendPropertiesFromStudyMetaInfoAndState(t,i,r,n);throw new Error("Property creation is not implemented for study line tool "+e)}function B(e){(0,s.assert)((0,P.isLineToolName)(e),e+" should be name of the line tool");const t=c[e];return void 0!==t&&Boolean(t.supportPhantomMode)}function N(e){return e instanceof a.LineDataSource}function R(e){return e instanceof o.StudyLineDataSource}function O(e){return e instanceof T.LineToolTrading}function F(e){let t=null;return e===y.studyId()?t="LineToolRegressionTrend":e===b.LineToolVbPFixed.studyId()?t="LineToolVbPFixed":e===C.studyId()&&(t="LineToolFixedRangeVolumeProfile"),t}function W(e,t,i,o){const a=t.toolname,l=t.properties().state();l.intervalsVisibilities=(0,n.mergeIntervalVisibilitiesDefaults)(null==l?void 0:l.intervalsVisibilities);const c=D(t.toolname,l,e);c.childs().visible.setValue(!0);const h=(0,s.ensureNotNull)(t.ownerSource()),d=E(a,e,c);void 0!==o&&d.setId(o),d.setOwnerSource(h),d.toolname=a;const u=d.clonePositionOffset();if(t.isFixed()){const e=(0, +s.ensureDefined)(t.fixedPoint()),n=i?e.add(new r.Point(u.xCoordOffset,u.yCoordOffset)):e;d.addFixedPoint(n)}const p=t.normalizedPoints(),_=i?function(e,t,i){const r=(0,s.ensureNotNull)(t.priceScale()),n=(0,s.ensureNotNull)(t.firstValue());return e.map(e=>{const t=e.price,s=r.priceToCoordinate(t,n)+i.yCoordOffset,o=r.coordinateToPrice(s,n);return{time_t:e.time_t,price:o,offset:e.offset+i.barOffset}})}(p,h,u):p,m=t.points();return d.restorePoints(_,m),d.cloneData&&d.cloneData(t),d.checkAlert&&d.checkAlert(),d}function H(e,t){var i;return null!==(i=e.dataSources().find(e=>N(e)&&e.linkKey().value()===t))&&void 0!==i?i:null}},87517:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(89857).LineDataSource,n=i(2015),o=i(88564).DefaultProperty;class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this.version=a.version,i.e(1583).then(i.bind(i,99578)).then(({NotePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Note"}getTooltipWidth(){return a.TOOLTIP_WIDTH}getTooltipPadding(){return a.TOOLTIP_PADDING}getTooltipLineSpacing(){return a.TOOLTIP_LINESPACING}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static createProperties(e){void 0!==e&&void 0!==e.markerColor&&void 0===e.borderColor&&(e.borderColor=e.markerColor);var t=new o("linetoolnote",e);return a._configureProperties(t),t}state(e){var t=r.prototype.state.call(this,e);return e&&(t.state.fixedSize=!1),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,55510))).NoteDefinitionsViewModel}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new n(s("Text"))),e.addExclusion("text")}}a.TOOLTIP_WIDTH=300,a.TOOLTIP_PADDING=10,a.TOOLTIP_LINESPACING=5,a.version=1;class l extends a{constructor(e,t){super(e,t||l.createProperties())}title(){return s("Anchored Note")}name(){return"Anchored Note"}isFixed(){return!0}hasEditableCoordinates(){return!1}static createProperties(e){var t=new o("linetoolnoteabsolute",e);return l._configureProperties(t),t}static _configureProperties(e){a._configureProperties(e)}}t.LineToolNote=a,t.LineToolNoteAbsolute=l},86858:(e,t,i)=>{"use strict";var s=i(2587).LineToolTrading,r=i(22474).LineToolPriceAxisView,n=i(53664),o=i(89857).LineDataSource,a=i(88564).DefaultProperty;const l=i(67337);var c=i(59555).sortSourcesPreOrdered.LineToolOrder;function h(e){return null==e?e="":e+="",e}class d{constructor(e){this._line=e,this._data={bodyText:"order",quantityText:"0"},this._editable=!0,this._cancellable=!0,this._mode="",this._direction="buy",this._active=!0}setMode(e){return this._mode=e,this._line.updateAllViewsAndRedraw(),this}setDirection(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this}setActive(e){return this._active=e,this._line.updateAllViewsAndRedraw(),this}setEditable(e){return this._editable=e, +this._line.updateAllViewsAndRedraw(),this}getEditable(){return this._editable}setCancellable(e){return this._cancellable=e,this._line.updateAllViewsAndRedraw(),this}getCancellable(){return this._cancellable}hasMoveCallback(){return this.isFunction(this._onMoveCallback)}hasModifyCallback(){return this.isFunction(this._onModifyCallback)}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){return this._line.properties().tooltip.setValue(h(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setModifyTooltip(e){return this._line.properties().modifyTooltip.setValue(h(e)),this}getModifyTooltip(){return this._line.properties().modifyTooltip.value()}setCancelTooltip(e){return this._line.properties().cancelTooltip.setValue(h(e)),this}getCancelTooltip(){return this._line.properties().cancelTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this}getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()}setLineColor(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this}setLineActiveBuyColor(e){return this._line.properties().lineActiveBuyColor.setValue(e),this}setLineInactiveBuyColor(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this}setLineActiveSellColor(e){return this._line.properties().lineActiveSellColor.setValue(e),this}setLineInactiveSellColor(e){return this._line.properties().lineInactiveSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value() +;return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()}setBodyBorderColor(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this}setBodyBorderActiveBuyColor(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this}setBodyBorderInactiveBuyColor(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this}setBodyBorderActiveSellColor(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this}setBodyBorderInactiveSellColor(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this}getBodyBackgroundColor(){return n.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()}setBodyTextColor(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this}setBodyTextInactiveLimitColor(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this}setBodyTextActiveLimitColor(e){return this._line.properties().bodyTextActiveLimitColor.setValue(e),this}setBodyTextInactiveStopColor(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this}setBodyTextActiveStopColor(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this}setBodyTextInactiveBuyColor(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this}setBodyTextActiveBuyColor(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this}setBodyTextInactiveSellColor(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this}setBodyTextActiveSellColor(e){ +return this._line.properties().bodyTextActiveSellColor.setValue(e),this}getBodyFont(){return n.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return n.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()}setQuantityBorderColor(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this}setQuantityBorderActiveBuyColor(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this}setQuantityBorderInactiveBuyColor(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this}setQuantityBorderActiveSellColor(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this}setQuantityBorderInactiveSellColor(e){return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this}setQuantityBackgroundActiveBuyColor(e){return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this}setQuantityBackgroundInactiveBuyColor(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this}setQuantityBackgroundActiveSellColor(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this}setQuantityBackgroundInactiveSellColor(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this}getQuantityTextColor(){return n.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return n.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return n.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){ +return n.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getCancelButtonBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()}setCancelButtonBorderColor(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this}setCancelButtonBorderActiveBuyColor(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this}setCancelButtonBorderInactiveBuyColor(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this}setCancelButtonBorderActiveSellColor(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this}setCancelButtonBorderInactiveSellColor(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this}getCancelButtonBackgroundColor(){return n.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)}setCancelButtonBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this}getCancelButtonIconColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()}setCancelButtonIconColor(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this}setCancelButtonIconActiveBuyColor(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this}setCancelButtonIconInactiveBuyColor(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this}setCancelButtonIconActiveSellColor(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this}setCancelButtonIconInactiveSellColor(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}getBlocked(){return this._blocked}isFunction(e){return"function"==typeof e}onCancel(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this}callOnCancel(){ +this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)}isOnCancelCallbackPresent(){return this.isFunction(this._onCancelCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onMove(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this}callOnMove(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class u extends s{constructor(e,t){super(e,t||u.createProperties()),this._adapter=new d(this),this.setSelectionEnabled(!0),i.e(1583).then(i.bind(i,45175)).then(({OrderPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return c}isSpeciallyZOrderedSource(){return!0}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Order"}endMoving(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;super.endMoving(),!e&&t&&this._adapter.callOnMove()}createPriceAxisView(e){var t={pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()};return this._priceAxisView=new r(this,t),this._priceAxisView}paneViews(){return TradingView.printing&&!l.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.paneViews.call(this):null}priceAxisViews(e,t){return TradingView.printing&&!l.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.priceAxisViews.call(this,e,t):null}adapter(){return this._adapter}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}movable(){return Boolean(this._adapter._onMoveCallback)}static createProperties(e){var t=new a("linetoolorder",e,!1,!1);return u._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolOrder=u},78898:(e,t,i)=>{"use strict";i.d(t,{LineToolParallelChannel:()=>c});var s=i(88537),r=i(86441),n=i(88564),o=i(85733),a=i(89857),l=i(80643);class c extends a.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this._priceAxisViews.push(this.createPriceAxisView(3)),this._coordOffsetWhileMovingOrChanging=null, +this._pendingPriceOffset=null,i.e(1583).then(i.bind(i,74143)).then(({ParallelChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}paneViews(e){return null!==this._pendingPriceOffset&&this._applyPendingPriceOffset(),super.paneViews(e)}setLastPoint(e,t){t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[0]);const i=(0,l.clone)(e);return super.setLastPoint(e),i}startMoving(e,t,i,s){super.startMoving(e,t,i,s),this._coordOffsetWhileMovingOrChanging=this._findPixelsHeight()}endMoving(e,t,i){return this._coordOffsetWhileMovingOrChanging=null,super.endMoving(e,t,i)}startChanging(e,t){super.startChanging(e,t),this._coordOffsetWhileMovingOrChanging=this._findPixelsHeight()}endChanging(e,t,i){return this._coordOffsetWhileMovingOrChanging=null,super.endChanging(e,t)}restoreExternalPoints(e,t,i){const s=i?e.points:this._timePoint.map((t,i)=>({price:t.price,offset:e.points[i].offset,time_t:e.points[i].time_t}));if(super.restoreExternalPoints({...e,points:s},t),t.pricesChanged&&this._points.length===s.length)for(let e=0;e=4)return;this._snapPointBeforeChange(e,t,i);const a=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),l=(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[1])),c=(0,s.ensureNotNull)(this.pointToScreenPoint(t)),h=(0,s.ensureNotNull)(this._coordOffsetWhileMovingOrChanging),d=(0,s.ensureNotNull)(this.priceScale()),u=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue());switch(e){case 0:super.setPoint(e,t,i),this._points[2].price=d.coordinateToPrice(c.y+h,u);break;case 1:super.setPoint(e,t,i);break;case 2:super.setPoint(e,t,i),this._points[0].price=d.coordinateToPrice(c.y-h,u),this._points[0].index=t.index;break;case 3:this._points[1].price=d.coordinateToPrice(c.y-h,u),this._points[1].index=t.index;break;case 4:{const e=l.subtract(a),t=(c.x-a.x)/e.x,i=a.addScaled(e,t),s=c.y-i.y;this._points[2].price=d.coordinateToPrice(a.y+s,u);break}case 5:{const e=l.subtract(a),t=(c.x-a.x)/e.x,i=a.addScaled(e,t),s=c.y-i.y;this._points[0].price=d.coordinateToPrice(a.y+s,u),this._points[1].price=d.coordinateToPrice(l.y+s,u);break}}const p=this.linkKey().value();if(p&&!r&&e<4){const e=this._points.map(e=>e.price);(0,o.changeLineStyle)({model:this._model,linkKey:p,state:{prices:e}})}}state(e){const t=a.LineDataSource.prototype.state.call(this,e);return this._pendingPriceOffset&&(t.priceOffset=this._pendingPriceOffset),t}restoreExternalState(e){const t={...e};if(t.prices&&this.isActualSymbol())for(let e=0;ee.index<=t.index?[e,t]:[t,e],s=i(t[0],t[1]),r=i(t[2],t[3]);let n,o,a,l;t[2].price{"use strict";i.d(t,{LineToolPath:()=>c});var s=i(88537),r=i(86441),n=i(88564),o=i(49094),a=i(89857),l=i(37865);class c extends a.LineDataSource{constructor(e,t,s,r){const n=t||c.createProperties();super(e,n,s,r),this._finished=!1,i.e(1583).then(i.bind(i,10155)).then(t=>{this._setPaneViews([new t.PathPaneView(this,e)])})}pointsCount(){return-1}name(){return"Path"}hasEditableCoordinates(){return!1}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}addPoint(e,t,i){var n;if(this._finished)return!0;const a=(0,s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),d=a.priceToCoordinate(c,h);if(this._points.length>0){const e=this._points[this._points.length-1],i=this._model.timeScale().indexToCoordinate(e.index),s=e.price,n=a.priceToCoordinate(s,h),c=new r.Point(l,d).subtract(new r.Point(i,n)).length();if(!(null==t?void 0:t.isApiEvent())&&c<(0,o.interactionTolerance)().minDistanceBetweenPoints)return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}return super.addPoint(e,t,i)}static createProperties(e){const t=new n.DefaultProperty("linetoolpath",e);return c._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,4283)).then(e=>e.PathDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addChild("linesWidths",new l.LineToolWidthsProperty([(0,s.ensureDefined)(e.child("lineWidth"))])),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().lineColor]))}}},18977:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),i.e(1583).then(i.bind(i,92669)).then(({PitchfanLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Pitchfan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)} +async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34879))).PitchBaseDefinitionsViewModel}static createProperties(e){var t=new o("linetoolpitchfan",e,!1,{range:[0,8]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],s=0;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=8,t.LineToolPitchfan=d},30823:(e,t,i)=>{"use strict";var s;i.d(t,{LineToolPitchforkStyle:()=>s}),function(e){e[e.Original=0]="Original",e[e.Schiff=1]="Schiff",e[e.Inside=2]="Inside",e[e.Schiff2=3]="Schiff2"}(s||(s={}))},40100:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(28296).Action,l=i(62060).ACTION_ID,c=i(30823).LineToolPitchforkStyle,h=null,d=i(37865),u=d.LineToolWidthsProperty,p=d.LineToolColorsProperty,_=new r("erase level line",s("erase level line")),m=new r("change {title} style",s("change {title} style"));class g extends n{constructor(e,t,i,s){super(e,t||g.createProperties(),i,s),this._properties.style.listeners().subscribe(this,g.prototype._recreatePaneView),this._recreatePaneView()}levelsCount(){return g.LevelsCount}additionalActions(e){for(var t=[],i=[{title:s("Original"),actionId:l.ChartLineToolPitchforkChangeTypeToOriginal},{title:s("Modified Schiff"),actionId:l.ChartLineToolPitchforkChangeTypeToModifiedSchiff},{title:s("Inside"),actionId:l.ChartLineToolPitchforkChangeTypeToInside},{title:s("Schiff"),actionId:l.ChartLineToolPitchforkChangeTypeToSchiff}],n=0;n<4;n++){var o=new a({actionId:i[n].actionId,checked:this.properties().style.value()===n,checkable:!0,label:i[n].title,payload:{target:this,value:n},onExecute:function(t){var i=t.getPayload(),s=i.target;e.setProperty(s.properties().style,i.value,m.format({title:new r(s.name(),s.title())})),s.updateAllViews(),s._model.updateSource(s)}});t.push(o)}return[t[0],t[3],t[1],t[2]]}_recreatePaneView(){if(null!==h){var e=[];this._properties.style.value()===c.Original?e=[new h.PitchforkLinePaneView(this,this._model)]:this._properties.style.value()===c.Schiff?e=[new h.SchiffPitchforkLinePaneView(this,this._model)]:this._properties.style.value()===c.Schiff2?e=[new h.SchiffPitchfork2LinePaneView(this,this._model)]:this._properties.style.value()===c.Inside&&(e=[new h.InsidePitchforkLinePaneView(this,this._model)]),this._setPaneViews(e)}else i.e(1583).then(i.bind(i,41829)).then(e=>{null===h&&(h=e),this._recreatePaneView()})}pointsCount(){return 3}name(){return"Pitchfork"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,_)}static createProperties(e){var t=new o("linetoolpitchfork",e,!1,{range:[0,8]});return g._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){ +return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,84806))).PitchForkDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],s=0;s<=g.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new p(i)),e.addChild("linesWidths",new u(t))}}g.LevelsCount=8,t.LineToolPitchfork=g},19085:(e,t,i)=>{"use strict";i.d(t,{LineToolPolyline:()=>l});var s=i(88537),r=i(86441),n=i(88564),o=i(49094),a=i(89857);class l extends a.LineDataSource{constructor(e,t,s,r){const n=t||l.createProperties();super(e,n,s,r),this._finished=!1,i.e(1583).then(i.bind(i,95907)).then(t=>{this._setPaneViews([new t.PolylinePaneView(this,e)])})}pointsCount(){return-1}name(){return"Polyline"}hasEditableCoordinates(){return!1}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}addPoint(e,t,i){var n;if(this._finished)return!0;const a=(0,s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=(0,s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),d=a.priceToCoordinate(c,h),u=(0,o.interactionTolerance)().minDistanceBetweenPoints;if(this._points.length>0){const e=this._points[this._points.length-1],i=this._model.timeScale().indexToCoordinate(e.index),s=e.price,n=a.priceToCoordinate(s,h),o=new r.Point(l,d).subtract(new r.Point(i,n)).length();if(!(null==t?void 0:t.isApiEvent())&&oe.PolylinesDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addExclusion("filled")}}},96295:(e,t,i)=>{"use strict" +;i.d(t,{PositionAveragePriceAxisView:()=>r});var s=i(22474);class r extends s.LineToolPriceAxisView{_formatPrice(e,t){return this._source.formatter().format(e)}}},2157:(e,t,i)=>{"use strict";var s=i(2587).LineToolTrading,r=i(89857).LineDataSource,n=i(96295).PositionAveragePriceAxisView,o=i(53664),a=i(88564).DefaultProperty,l=i(97098).PriceFormatter;const c=i(67337);var h=i(59555).sortSourcesPreOrdered.LineToolPosition;function d(e){return null==e?e="":e+="",e}class u{constructor(e){this._line=e,this._data={bodyText:"position",quantityText:"0"},this._closeEnabled=!0,this._direction="buy",this._profitState="neutral"}setDirection(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this}setProfitState(e){return this._profitState=e,this._line.updateAllViewsAndRedraw(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){return this._line.properties().tooltip.setValue(d(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setProtectTooltip(e){return this._line.properties().protectTooltip.setValue(d(e)),this}getProtectTooltip(){return this._line.properties().protectTooltip.value()}setCloseTooltip(e){return this._line.properties().closeTooltip.setValue(d(e)),this}getCloseTooltip(){return this._line.properties().closeTooltip.value()}setReverseTooltip(e){return this._line.properties().reverseTooltip.setValue(d(e)),this}getReverseTooltip(){return this._line.properties().reverseTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this}getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return("buy"===this._direction?e.lineBuyColor:e.lineSellColor).value()}setLineColor(e){return"buy"===this._direction?this.setLineBuyColor(e):this.setLineSellColor(e),this}setLineBuyColor(e){return this._line.properties().lineBuyColor.setValue(e),this}setLineSellColor(e){return this._line.properties().lineSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value() +;return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.bodyBorderBuyColor:e.bodyBorderSellColor).value()}setBodyBorderColor(e){return"buy"===this._direction?this.setBodyBorderBuyColor(e):this.setBodyBorderSellColor(e),this}setBodyBorderBuyColor(e){return this._line.properties().bodyBorderBuyColor.setValue(e),this}setBodyBorderSellColor(e){return this._line.properties().bodyBorderSellColor.setValue(e),this}getBodyBackgroundColor(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){var e=this._line.properties();return("positive"===this._profitState?e.bodyTextPositiveColor:"negative"===this._profitState?e.bodyTextNegativeColor:e.bodyTextNeutralColor).value()}setBodyTextColor(e){return"positive"===this._profitState?this.setBodyTextPositiveColor(e):"negative"===this._profitState?this.setBodyTextNegativeColor(e):this.setBodyTextNeutralColor(e),this}setBodyTextPositiveColor(e){return this._line.properties().bodyTextPositiveColor.setValue(e),this}setBodyTextNegativeColor(e){return this._line.properties().bodyTextNegativeColor.setValue(e),this}setBodyTextNeutralColor(e){return this._line.properties().bodyTextNeutralColor.setValue(e),this}getBodyFont(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBorderBuyColor:e.quantityBorderSellColor).value()}setQuantityBorderColor(e){return"buy"===this._direction?this.setQuantityBorderBuyColor(e):this.setQuantityBorderSellColor(e),this}setQuantityBorderBuyColor(e){return this._line.properties().quantityBorderBuyColor.setValue(e),this}setQuantityBorderSellColor(e){return this._line.properties().quantityBorderSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBackgroundBuyColor:e.quantityBackgroundSellColor).value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this.setQuantityBackgroundBuyColor(e):this.setQuantityBackgroundSellColor(e),this}setQuantityBackgroundBuyColor(e){ +return this._line.properties().quantityBackgroundBuyColor.setValue(e),this}setQuantityBackgroundSellColor(e){return this._line.properties().quantityBackgroundSellColor.setValue(e),this}getQuantityTextColor(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getReverseButtonBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonBorderBuyColor:e.reverseButtonBorderSellColor).value()}setReverseButtonBorderColor(e){return"buy"===this._direction?this.setReverseButtonBorderBuyColor(e):this.setReverseButtonBorderSellColor(e),this}setReverseButtonBorderBuyColor(e){return this._line.properties().reverseButtonBorderBuyColor.setValue(e),this}setReverseButtonBorderSellColor(e){return this._line.properties().reverseButtonBorderSellColor.setValue(e),this}getReverseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency)}setReverseButtonBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency),this}getReverseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonIconBuyColor:e.reverseButtonIconSellColor).value()}setReverseButtonIconColor(e){return"buy"===this._direction?this.setReverseButtonIconBuyColor(e):this.setReverseButtonIconSellColor(e),this}setReverseButtonIconBuyColor(e){return this._line.properties().reverseButtonIconBuyColor.setValue(e),this}setReverseButtonIconSellColor(e){return this._line.properties().reverseButtonIconSellColor.setValue(e),this}getCloseButtonBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonBorderBuyColor:e.closeButtonBorderSellColor).value()}setCloseButtonBorderColor(e){return"buy"===this._direction?this.setCloseButtonBorderBuyColor(e):this.setCloseButtonBorderSellColor(e),this}setCloseButtonBorderBuyColor(e){return this._line.properties().closeButtonBorderBuyColor.setValue(e),this}setCloseButtonBorderSellColor(e){return this._line.properties().closeButtonBorderSellColor.setValue(e),this}getCloseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency)}setCloseButtonBackgroundColor(e){ +return o.setColorToProperties(e,this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency),this}getCloseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonIconBuyColor:e.closeButtonIconSellColor).value()}setCloseButtonIconColor(e){return"buy"===this._direction?this.setCloseButtonIconBuyColor(e):this.setCloseButtonIconSellColor(e),this}setCloseButtonIconBuyColor(e){return this._line.properties().closeButtonIconBuyColor.setValue(e),this}setCloseButtonIconSellColor(e){return this._line.properties().closeButtonIconSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}isFunction(e){return"function"==typeof e}onReverse(e,t){return t?this.isFunction(t)&&(this._onReverseData=e,this._onReverseCallback=t):this.isFunction(e)&&(this._onReverseCallback=e),this}callOnReverse(){this.isFunction(this._onReverseCallback)&&this._onReverseCallback.call(this,this._onReverseData)}isOnReverseCallbackPresent(){return this.isFunction(this._onReverseCallback)}onClose(e,t){return t?this.isFunction(t)&&(this._onCloseData=e,this._onCloseCallback=t):this.isFunction(e)&&(this._onCloseCallback=e),this}setCloseEnabled(e){return this._closeEnabled===e||(this._closeEnabled=e,this._onCloseCallback&&this._line.updateAllViewsAndRedraw()),this}isCloseEnabled(){return this._closeEnabled}callOnClose(){this.isFunction(this._onCloseCallback)&&this._closeEnabled&&this._onCloseCallback.call(this,this._onCloseData)}isOnCloseCallbackPresent(){return this._closeEnabled&&this.isFunction(this._onCloseCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class p extends s{constructor(e,t){super(e,t||p.createProperties()),this._adapter=new u(this),i.e(1583).then(i.t.bind(i,69127,19)).then(({PositionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])});var s=e.mainSeries().symbolInfo(),r=null!==s?s.pricescale:100,n=null!==s&&s.fractional?s.minmov:1,o=null!==s&&s.fractional,a=null!==s?s.minmove2:void 0;this._formatter=new l(r,n,o,a)}zorder(){return h}isSpeciallyZOrderedSource(){return!0}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Position"}createPriceAxisView(e){ +return this._priceAxisView=new n(this,{pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()}),this._priceAxisView}paneViews(){return TradingView.printing&&!c.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.paneViews.call(this):null}priceAxisViews(e,t){return TradingView.printing&&!c.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.priceAxisViews.call(this,e,t):null}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}formatter(){return this._formatter}static createProperties(e){var t=new a("linetoolposition",e,!1,!1);return p._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolPosition=p},19582:(e,t,i)=>{"use strict";var s,r;i.r(t),i.d(t,{AlertStatus:()=>s,Direction:()=>r}),function(e){e[e.Waiting=0]="Waiting",e[e.Success=1]="Success",e[e.Failure=2]="Failure"}(s||(s={})),function(e){e[e.Up=1]="Up",e[e.Down=2]="Down"}(r||(r={}))},12346:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(89857).LineDataSource,n=i(88564).DefaultProperty,o=i(19582);class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this._predictionPaneView=null;const n=this._model.mainSeries();n.properties().interval.subscribe(this,()=>{this.setStatus(o.AlertStatus.Waiting)}),n.dataEvents().dataUpdated().subscribe(this,this.checkAlert),i.e(1583).then(i.t.bind(i,58090,19)).then(({PredictionPaneView:e})=>{this._predictionPaneView=new e(this,this._model),this._setPaneViews([this._predictionPaneView])})}destroy(){const e=this._model.mainSeries();e.properties().interval.unsubscribeAll(this),e.dataEvents().dataUpdated().unsubscribeAll(this),super.destroy()}dataAndViewsReady(){return r.prototype.dataAndViewsReady.call(this)&&this._predictionPaneView&&this._predictionPaneView.iconsReady()}isSynchronizable(){return!1}status(){return this._properties.status.value()}setStatus(e){return this._properties.status.setValue(e)}pointsCount(){return 2}name(){return"Forecast"}restorePoints(e,t,i){super.restorePoints(e,t,i),this.checkAlert()}checkAlert(){if(!this.isSourceHidden()&&!(this._points.length<2||this._model.mainSeries().bars().isEmpty())){var e=this._points[1];if(this.status())e.index>this._model.timeScale().baseIndex()&&this.setStatus(o.AlertStatus.Waiting);else{var t=this._model.mainSeries().bars().valueAt(e.index);if(null!==t){var i=this.direction();if(i===o.Direction.Up&&t[TradingView.HIGH_PLOT]>=e.price)this.setStatus(o.AlertStatus.Success);else if(i===o.Direction.Down&&t[TradingView.LOW_PLOT]<=e.price)this.setStatus(o.AlertStatus.Success);else{var r=s(this._model.mainSeries().bars().lastIndex());e.index!==r&&this.setStatus(o.AlertStatus.Failure)}}}}}addPoint(e){var t=r.prototype.addPoint.call(this,e);return t&&this.checkAlert(),t}endChanging(){super.endChanging(),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}onData(e){super.onData(e),this.checkAlert()} +endMoving(e,t,i){super.endMoving(e,t,i),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}direction(){if(this.points().length<2)return o.Direction.Up;var e=this.points()[0];return this.points()[1].price>e.price?o.Direction.Up:o.Direction.Down}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,53697))).PredictionDefinitionsViewModel}cloneable(){return!1}static createProperties(e){var t=new n("linetoolprediction",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.merge({status:o.AlertStatus.Waiting})}}t.LineToolPrediction=a},3113:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty,n=i(37865).LineToolColorsProperty;class o extends s{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,69741,19)).then(({PriceLabelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Price Label"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,61641))).PriceLabelDefinitionsViewModel}static createProperties(e){var t=new r("linetoolpricelabel",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new n([e.childs().borderColor])),e.addChild("textsColors",new n([e.childs().color]))}}t.LineToolPriceLabel=o},7648:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceNote:()=>c});var s=i(88537),r=i(88564),n=i(2015),o=i.n(n),a=i(89857),l=i(33291);class c extends a.LineDataSource{constructor(e,t,s,r){super(e,t||c.createProperties(),s,r),this._labelMovingDelta=null,i.e(1583).then(i.bind(i,19226)).then(t=>{this._setPaneViews([new t.PriceNotePaneView(this,e)])})}pointsCount(){return 2}name(){return"Price Note"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}startMoving(e,t,i){if(1===t){if(this.isSourceHidden())return;const i=(0,s.ensureDefined)(e.logical),r=this.points()[1];this._labelMovingDelta={index:r.index-i.index,price:r.price-i.price},this.startChanging(t,i)}else this._labelMovingDelta=null,super.startMoving(e,t,i)}move(e,t,i){if(null!==this._labelMovingDelta){const t=(0,s.ensureDefined)(e.logical),r={index:t.index+this._labelMovingDelta.index,price:t.price+this._labelMovingDelta.price};this.setPoint(1,r,i),this.updateAllViews((0,l.dataSourceChangeEvent)(this.id()))}else super.move(e,t,i)}endMoving(e,t,i){return null!==this._labelMovingDelta?(this._labelMovingDelta=null,this.endChanging(!1,e)):super.endMoving(e,t,i)}static createProperties(e){const t=new r.DefaultProperty("linetoolpricenote",e);return c._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90727)).then(e=>e.PriceNoteDefinitionsViewModel)}_snapTo45DegreesAvailable(){return!0}static _configureProperties(e){ +a.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(o())("")),e.addExclusion("text"),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors"),e.hasChild("textsColors")&&e.removeProperty("textsColors")}}},66602:(e,t,i)=>{"use strict";i.d(t,{LineToolPriceRange:()=>p});var s=i(89857),r=i(88537),n=i(24633),o=i(45383),a=i(85402);const l={...a.nonThemedFactoryDefaultsBase,extendLeft:!1,extendRight:!1},c=a.themedFactoryDefaultsBase,h=(0,o.extractAllPropertiesKeys)((0,r.ensureDefined)(c.get(n.StdTheme.Light))),d=(0,o.extractAllPropertiesKeys)(l);class u extends o.ThemedDefaultProperty{static create(e){return new u("linetoolpricerange",()=>(0,o.factoryDefaultsForCurrentTheme)(l,c),d,h,e)}}class p extends s.LineDataSource{constructor(e,t,s,r){super(e,t||p.createProperties(),s,r),i.e(1583).then(i.bind(i,25965)).then(e=>{this._setPaneViews([new e.PriceRangePaneView(this,this._model)])})}pointsCount(){return 2}name(){return"Price Range"}static createProperties(e){const t=u.create(e);return p._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,80447))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){s.LineDataSource._configureProperties(e)}}},35344:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(53804).LineToolFibWedgeBase,n=i(37865).LineToolColorsProperty;class o extends r{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,76207,19)).then(({ProjectionLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return 1}name(){return"Projection"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,12590))).ProjectionDefinitionsViewModel}static createProperties(e){var t=new s("linetoolprojection",e,!1,{range:[1,1]});return o._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.addChild("linesColors",new n([e.trendline.color]))}}t.LineToolProjection=o},31702:(e,t,i)=>{"use strict";var s=i(57649).LineToolTrendLine,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Ray"}static createProperties(e){var t=new r("linetoolray",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolRay=n},20258:(e,t,i)=>{"use strict";i.d(t,{LineToolRectangle:()=>h});var s=i(86441),r=i(88564),n=i(2015),o=i.n(n),a=i(89857),l=i(37865),c=i(88537);class h extends a.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,79090)).then(({RectanglePaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}pointsCount(){return 2}textColorsProperty(){return this.properties().childs().showLabel.value()?super.textColorsProperty():null}name(){return"Rectangle"}setPoint(e,t,i){if(e<2&&super.setPoint(e,t,i),i&&i.shift()){const i=this._getAnchorPointForIndex(e) +;if(e>=4)return this._correctMiddlePoints(e,t,i),void this.normalizePoints();this._snapPoint45Degree(t,i)}switch(e){case 2:this._points[1].price=t.price,this._points[0].index=t.index;break;case 3:this._points[0].price=t.price,this._points[1].index=t.index;break;case 4:this._points[0].index=t.index;break;case 5:this._points[1].index=t.index;break;case 6:this._points[0].price=t.price;break;case 7:this._points[1].price=t.price}this.normalizePoints()}getPoint(e){return e<2?super.getPoint(e):this._getAnchorPointForIndex(e)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolrectangle",e);return h._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,39457)).then(e=>e.RectangleDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_snapPoint45Degree(e,t,i){const s=this.m_priceScale,r=this.ownerSource();if(null===s||null===r)return;const n=r.firstValue();if(null===n)return;const o=this._model.timeScale(),a=(0,c.ensureNotNull)(this.pointToScreenPoint(e)),l=(0,c.ensureNotNull)(this.pointToScreenPoint(t)),h=a.x-l.x,d=a.y-l.y,u=h<0?-1:1,p=d<0?-1:1,_=Math.max(Math.abs(h),Math.abs(d)),m=Math.round(o.coordinateToIndex(l.x+_*u)),g=Math.abs(o.indexToCoordinate(m)-l.x),f=s.coordinateToPrice(l.y+g*p,n);e.index=m,e.price=f}_correctMiddlePoints(e,t,i){e<6?this._correctRightLeftMiddlePoint(e,t,i):this._correctTopBottomMiddlePoint(e,t,i)}_correctRightLeftMiddlePoint(e,t,i){const r=(0,c.ensureNotNull)(this.pointToScreenPoint(t)),n=(0,c.ensureNotNull)(this.pointToScreenPoint(i)),o=(0,c.ensureNotNull)(this.pointToScreenPoint(this._points[0])),a=(0,c.ensureNotNull)(this.pointToScreenPoint(this._points[1]));let l=r.x-n.x;if(0===l)return;const h=o.x{"use strict";i.d(t,{LineToolRiskRewardBase:()=>v});var s=i(88537),r=i(95505),n=i(71053),o=i(69927),a=i(89857),l=i(10324),c=i(41628),h=i(97938);class d extends h.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){if(e.visible=!1,!this._showAxisLabel())return;const s=this._source.priceScale();if(0===this._source.points().length||null===s||s.isEmpty())return;const r=this._source.ownerSource(),n=null!==r?r.firstValue():null;if(null===n)return;const o=this._data.priceProperty.value(),a=this._data.colorProperty.value();i.background=a,i.textColor=this.generateTextColor(a),i.coordinate=s.priceToCoordinate(o,n),e.text=s.formatPrice(o,n),e.visible=!0}_showAxisLabel(){return this._source.properties().childs().showPriceLabels.value()}}var u=i(2015),p=i.n(u);class _ extends(p()){constructor(e,t){super(),this._lineSource=e,this._pointIndex=t}value(){const e=this._lineSource.points()[this._pointIndex].price;return this._formatAndParsePrice(e)}state(){return this.value()}merge(e,t){return this.setValue(e),t?[]:null}_formatAndParsePrice(e){const t=(0,s.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){const i=t.format(e),s=t.parse(i);return s.res?s.value:e}return e}}class m extends _{constructor(e){super(e,0)}setValue(e){const t=this._lineSource.points()[this._pointIndex];this._lineSource.startChanging(this._pointIndex,t),t.price=parseFloat(""+e), +this._lineSource.setPoint(this._pointIndex,t),this._lineSource.recalculate(),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this),this._lineSource.endChanging(!1,!1),this._lineSource.syncPriceLevels()}}class g extends _{constructor(e){super(e,1)}value(){const e=this._lineSource.stopPrice();return this._formatAndParsePrice(e)}setValue(e){const t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource.model().mainSeries().base());this._lineSource.properties().childs().stopLevel.setValue(t),this._lineSource.syncPriceLevels()}}class f extends _{constructor(e){super(e,2)}value(){const e=this._lineSource.profitPrice();return this._formatAndParsePrice(e)}setValue(e){const t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource.model().mainSeries().base());this._lineSource.properties().childs().profitLevel.setValue(t),this._lineSource.syncPriceLevels()}}class v extends a.LineDataSource{constructor(e,t,n,a){if(super(e,t,n,a),this._syncStateExclusions=["points","entryPrice","stopPrice","targetPrice","stopLevel","profitLevel","riskSize","qty","amountTarget","amountStop"],!t.hasChild("stopLevel")&&!t.hasChild("profitLevel")){const i=(0,s.ensureNotNull)(e.timeScale().visibleBarsStrictRange()),r=i.firstBar(),n=i.lastBar();let a=(0,s.ensureNotNull)(e.mainSeries().priceRange(r,n));const l=e.mainSeries().priceScale();if(l.isLog()){const e=l.logicalToPrice(a.minValue()),t=l.logicalToPrice(a.maxValue());a=new o.PriceRange(e,t)}if(a&&!a.isEmpty()){const i=Math.round(.2*a.length()*e.mainSeries().base());t.merge({stopLevel:i,profitLevel:i})}}t.childs().stopLevel.listeners().subscribe(this,this.recalculate),t.childs().stopLevel.listeners().subscribe(null,()=>{this.properties().childs().stopPrice.childChanged(null)}),t.childs().profitLevel.listeners().subscribe(this,this.recalculate),t.childs().profitLevel.listeners().subscribe(null,()=>{this.properties().childs().targetPrice.childChanged(null)}),t.addChild("entryPrice",new m(this)),t.addChild("stopPrice",new g(this)),t.addChild("targetPrice",new f(this)),t.hasChild("riskSize")||t.addProperty("riskSize",0),t.hasChild("qty")||t.addProperty("qty",0),t.hasChild("amountTarget")||t.addProperty("amountTarget",t.childs().accountSize.value()),t.hasChild("amountStop")||t.addProperty("amountStop",t.childs().accountSize.value()),t.addExclusion("riskSize"),t.addExclusion("qty"),t.addExclusion("amountTarget"),t.addExclusion("amountStop"),this._riskInPercentsFormatter=new r.NumericFormatter(2),this._riskInMoneyFormatter=new r.NumericFormatter,t.childs().risk.subscribe(this,this._recalculateRiskSize),t.childs().accountSize.subscribe(this,this._recalculateRiskSize),t.childs().riskDisplayMode.subscribe(this,this._recalculateRisk),t.childs().riskDisplayMode.subscribe(this,this._recalculateRiskSize),t.childs().entryPrice.subscribe(this,this._recalculateRiskSize),t.childs().stopPrice.subscribe(this,this._recalculateRiskSize),t.childs().profitLevel.subscribe(this,this._recalculateRiskSize), +t.childs().profitLevel.subscribe(this,this.syncPriceLevels.bind(this)),t.childs().stopLevel.subscribe(this,this._recalculateRiskSize),t.childs().stopLevel.subscribe(this,this.syncPriceLevels.bind(this)),t.childs().qty.subscribe(this,this._recalculateRiskSize),e.mainSeries().dataEvents().dataUpdated().subscribe(this,this._onSeriesUpdated),this.pointAdded().subscribe(this,e=>{switch(e){case c.RiskRewardPointIndex.Entry:case c.RiskRewardPointIndex.Close:this._recalculateRiskSize(),this._recalculateQty()}}),this.pointChanged().subscribe(this,e=>{switch(e){case c.RiskRewardPointIndex.Entry:case c.RiskRewardPointIndex.Close:this._recalculateRiskSize(),this._recalculateQty()}}),t.childs().riskDisplayMode.value()===l.RiskDisplayMode.Percentage&&t.childs().risk.value()>100&&t.childs().riskDisplayMode.setValueSilently(l.RiskDisplayMode.Money),this.version=2,this._entryPriceAxisView=new d(this,{colorProperty:t.childs().linecolor,priceProperty:t.childs().entryPrice}),this._stopPriceAxisView=new d(this,{colorProperty:t.childs().stopBackground,priceProperty:t.childs().stopPrice}),this._profitPriceAxisView=new d(this,{colorProperty:t.childs().profitBackground,priceProperty:t.childs().targetPrice}),i.e(1583).then(i.bind(i,35362)).then(({RiskRewardPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}destroy(){this._model.mainSeries().dataEvents().dataUpdated().unsubscribeAll(this),super.destroy()}checkAlert(){this.recalculate()}calculatePL(e){return this.entryPrice()-e}lastBarData(){const e=this._model.mainSeries().bars().firstIndex(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t||isNaN(e)||isNaN(t))return null;const i=this.points();if(4===i.length){const s=i[c.RiskRewardPointIndex.ActualClose];return s.indexMath.max(this._points[0].index,this._points[1].index)||this.checkAlert()}}},10324:(e,t,i)=>{"use strict";var s;i.d(t,{RiskDisplayMode:()=>s}),function(e){e.Percentage="percents",e.Money="money"}(s||(s={}))},41628:(e,t,i)=>{"use strict";var s;i.d(t,{RiskRewardPointIndex:()=>s}),function(e){e[e.Entry=0]="Entry",e[e.Close=1]="Close",e[e.ActualEntry=2]="ActualEntry",e[e.ActualClose=3]="ActualClose"}(s||(s={}))},34291:(e,t,i)=>{"use strict";var s=i(88537).ensureNotNull,r=i(89857).LineDataSource,n=i(85733),o=i(88564).DefaultProperty,a=i(41628).RiskRewardPointIndex,l=i(10324).RiskDisplayMode,c=i(79029).LineToolRiskRewardBase,h=i(80643).isNumber;class d extends c{riskFormatter(e){return e===l.Percentage?this._riskInPercentsFormatter:this._riskInMoneyFormatter}getRiskStep(e){return e===l.Percentage?.01:1}_roundValue(e){return parseFloat(e.toFixed(2))}hasEditableCoordinates(){return!1}_recalculateRisk(){ +var e=this.properties(),t=e.riskDisplayMode.value(),i=e.riskSize.value(),s=e.accountSize.value(),r=e.risk.value();r=t===l.Percentage?this._roundValue(i/s*100):this._roundValue(s/100*r),this._riskInChange=!0,e.risk.setValue(this.riskFormatter(t).format(r)),this._riskInChange=!1}_recalculateRiskSize(){if(!this._riskInChange){var e=this.properties(),t=e.risk.value(),i=e.riskDisplayMode.value(),s=e.accountSize.value();i===l.Percentage?e.riskSize.setValue(t/100*s):t>s?(e.risk.setValue(s),e.riskSize.setValue(s)):e.riskSize.setValue(t)}}migrateVersion(e,t,i){if(1===e&&this._points.length>=1){var s=[];if(s.push(this._points[0]),n={price:(n=this._points[0]).price,index:this._getClosePointIndex(n.index)},s.push(n),this._points[1]&&s.push(this._points[1]),this._points[2]&&s.push(this._points[2]),this._points=s,this._timePoint.length>=1){var r=[],n=this._timePoint[0];r.push(n);var o={price:n.price,time_t:n.time_t,offset:this._getClosePointIndex(n.offset)};r.push(o),this._timePoint[1]&&s.push(this._points[1]),this._timePoint[2]&&s.push(this._points[2]),this._timePoint=r}}}priceAxisViews(e,t){return this.isSourceHidden()||t!==this.priceScale()||this._model.paneForSource(this)!==e?null:[this._entryPriceAxisView,this._stopPriceAxisView,this._profitPriceAxisView]}updateAllViews(){this.isActualSymbol()&&this._properties.visible.value()&&(n.hideAllDrawings().value()&&this.userEditEnabled()||(super.updateAllViews(),this._entryPriceAxisView.update(),this._stopPriceAxisView.update(),this._profitPriceAxisView.update()))}restoreExternalState(e){if(h(e.entryPrice)){if(e=Object.assign({},e),!this.isActualSymbol())this._timePoint[0].price=e.entryPrice,delete e.entryPrice;this.properties().merge(e)}else super.restoreExternalState(e)}_changeEntryPoint(e){var t=this.properties().stopPrice.value(),i=this.properties().targetPrice.value(),s=1/this._model.mainSeries().base(),r=Math.min(t,i)+s,n=Math.max(t,i)-s;e.price=Math.max(r,Math.min(n,this._roundPrice(e.price))),super.setPoint(0,e),this.properties().stopPrice.setValue(t),this.properties().targetPrice.setValue(i)}setPoint(e,t,i){if(this.isActualSymbol()){switch(this._muteSyncLineStyle(),e){case 0:this._changeEntryPoint(t);break;case 2:this.properties().stopPrice.setValue(this.preparseStopPrice(t.price));break;case 3:this.properties().targetPrice.setValue(this.preparseProfitPrice(t.price));break;case 1:t.price=this._roundPrice(t.price),super.setPoint(1,t),this.recalculate()}this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}}getPoint(e){switch(e){case 0:return this._points[0];case 1:return{index:this._points[1].index,price:this._points[0].price};case 2:return{index:this._points[0].index,price:this.stopPrice()};case 3:return{index:this._points[0].index,price:this.profitPrice()}}return null}setPoints(e){this._muteSyncLineStyle(),super.setPoints(e),this.recalculate(),this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}syncPriceLevels(){if(this.linkKey().value()){var e=this.properties(),t={entryPrice:e.entryPrice.value(),stopLevel:e.stopLevel.value(), +profitLevel:e.profitLevel.value()};n.changeLineStyle({linkKey:this.linkKey().value(),state:t,model:this._model})}}pointsCount(){return 1}name(){return"Risk/Reward"}addPoint(e){e.price=this._roundPrice(e.price),super.addPoint(e,null,!0);var t={price:e.price,index:this._getClosePointIndex(e.index)};super._addPointIntenal(t,null,!0);var i=this.calculateActualEntry(e,t);i&&(super._addPointIntenal(i,null,!0),(t=this.findClosePoint(i,t))&&super._addPointIntenal(t,null,!0));return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}setOwnerSource(e){super.setOwnerSource(e),this._model.mainSeries().symbolInfo()&&(this._recalculateAmount(),this._recalculateRiskSize(),this._recalculateQty())}_roundPrice(e){var t=this._model.mainSeries().base();return Math.round(e*t)/t}recalculate(){if(0!==this.points().length){var e=this.properties().targetPrice.value(),t=this.properties().stopPrice.value(),i=[this._points[0],this._points[1]],s=this.calculateActualEntry(this.points()[0],this.points()[1]);if(s){i.push(s);var r=this.findClosePoint(s,this.points()[1]);r&&i.push(r)}this._points=i,e!==this.properties().targetPrice.value()&&this.properties().targetPrice._listeners.fire(this.properties().targetPrice),t!==this.properties().stopPrice.value()&&this.properties().stopPrice._listeners.fire(this.properties().stopPrice)}}start(){super.start(),this.recalculate()}startMoving(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.startMoving(e,t,i)}move(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.move(e,t,i),this.recalculate(),this._entryPriceAxisView.update()}_correctPoints(e,t){return!!this.isActualSymbol()&&r.prototype._correctPoints.call(this,[e[0],e[1]],t)}entryPrice(){return this.points()[0].price}findClosePoint(e,t){for(var i=this._model.mainSeries().bars(),r=s(i.firstIndex()),n=Math.max(e.index,r),o=s(i.lastIndex()),a=Math.min(o,t.index),l=n;l<=a;l++){var c=i.valueAt(l);if(null!==c){var h=this.checkStopPrice(c);if(null!=h)return{index:l,price:h}}}return null}calculateActualEntry(e,t){var i=this._model.mainSeries().bars();if(i.isEmpty())return null;for(var r=s(i.firstIndex()),n=Math.max(e.index,r),o=e.price,a=s(i.lastIndex()),l=Math.min(a,t.index),c=n;c<=l;c++){var h=i.valueAt(c);if(null!==h&&h[TradingView.HIGH_PLOT]>=o&&h[TradingView.LOW_PLOT]<=o)return{index:c,price:o}}return null}axisPoints(){if(!this._points[a.ActualEntry])return[];var e=this._points[a.ActualEntry],t=null;if(4===this._points.length)t=this._points[a.ActualClose];else{var i=this.lastBarData();if(!i)return[];t={index:i.index,price:i.closePrice}}return[e,t]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,18736))).RiskRewardDefinitionsViewModel}template(){var e=this.properties(),t=r.prototype.template.call(this);return t.stopLevel=e.stopLevel.value(),t.profitLevel=e.profitLevel.value(),t}_applyTemplateImpl(e){delete e.targetPrice,delete e.stopPrice,delete e.entryPrice,super._applyTemplateImpl(e);var t=this.properties() +;void 0!==e.stopLevel&&t.stopLevel.setValue(e.stopLevel),void 0!==e.profitLevel&&t.profitLevel.setValue(e.profitLevel)}getOrderTemplate(){return null}_propertiesStateExclusions(){return["entryPrice","stopPrice","targetPrice"]}static _configureProperties(e){r._configureProperties(e),e.addExclusion("stopLevel"),e.addExclusion("profitLevel"),e.addExclusion("stopPrice"),e.addExclusion("targetPrice"),e.addExclusion("entryPrice")}_getClosePointIndex(e){var t=this._model.timeScale(),i=Math.round(t.width()/t.barSpacing());return e+Math.max(3,Math.round(.15*i))}}d.version=2;class u extends d{constructor(e,t,i,s){super(e,t||u.createProperties(),i,s);var r=this.properties();r.entryPrice.subscribe(this,this._recalculateQty),r.stopPrice.subscribe(this,this._recalculateQty),r.riskSize.subscribe(this,this._recalculateQty),r.entryPrice.subscribe(this,this._recalculateAmount),r.profitLevel.subscribe(this,this._recalculateAmount),r.stopLevel.subscribe(this,this._recalculateAmount),r.accountSize.subscribe(this,this._recalculateAmount),r.riskSize.subscribe(this,this._recalculateAmount),r.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=s/(Math.abs(i-t)*r);e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(i-n)*s*o),l=this._roundValue(t-(r-i)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}name(){return"Risk/Reward short"}stopPrice(){return this.entryPrice()+this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()-this.properties().profitLevel.value()/this._model.mainSeries().base()}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.HIGH_PLOT]>=t?this.stopPrice():e[TradingView.LOW_PLOT]<=i?this.profitPrice():null}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new o("linetoolriskrewardshort",e);return u._configureProperties(t),t}static _configureProperties(e){d._configureProperties(e)}}class p extends d{constructor(e,t,i,s){super(e,t||p.createProperties(),i,s);var r=this.properties();r.entryPrice.subscribe(this,this._recalculateQty),r.stopPrice.subscribe(this,this._recalculateQty),r.riskSize.subscribe(this,this._recalculateQty),r.entryPrice.subscribe(this,this._recalculateAmount),r.profitLevel.subscribe(this,this._recalculateAmount),r.stopLevel.subscribe(this,this._recalculateAmount),r.accountSize.subscribe(this,this._recalculateAmount),r.riskSize.subscribe(this,this._recalculateAmount), +r.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=s/(Math.abs(t-i)*r);e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(n-i)*s*o),l=this._roundValue(t-(i-r)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}stopPrice(){return this.entryPrice()-this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()+this.properties().profitLevel.value()/this._model.mainSeries().base()}calculatePL(e){return e-this.entryPrice()}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.LOW_PLOT]<=t?this.stopPrice():e[TradingView.HIGH_PLOT]>=i?this.profitPrice():null}name(){return"Risk/Reward long"}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new o("linetoolriskrewardlong",e);return p._configureProperties(t),t}static _configureProperties(e){d._configureProperties(e)}}t.LineToolRiskRewardLong=p,t.LineToolRiskRewardShort=u},61272:(e,t,i)=>{"use strict";var s=i(86441).Point,r=i(4652).distanceToLine,n=i(89857).LineDataSource,o=i(88564).DefaultProperty,a=i(37865).LineToolColorsProperty;class l extends n{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),i.e(1583).then(i.t.bind(i,33261,19)).then(({RotatedRectanglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){var i=this._getPaneViews()[0],s=i._points[0],n=i._points[1],o=i._points[2];this._distance=r(s,n,o).distance}}setPoint(e,t,i){if(super.setPoint(e,t,i),0===e||1===e){var r=this._getPaneViews()[0];r.update();var n=r._points[0],o=r._points[1].subtract(n),a=new s(o.y,-o.x).normalized().scaled(this._distance),l=n.add(a),c=this.screenPointToPoint(l);this._points[2]=c}}endChanging(e,t){delete this._distance,super.endChanging(e,t)}pointsCount(){return 3}name(){return"Rotated Rectangle"}hasEditableCoordinates(){return!1}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetoolrotatedrectangle",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e),e.addChild("linesColors",new a([e.color]))}}t.LineToolRotatedRectangle=l},98390:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){ +super(e,t||n.createProperties(),i,s)}name(){return"Modified Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork=n},98225:(e,t,i)=>{"use strict";var s=i(34580).LevelsProperty,r=i(40100).LineToolPitchfork;class n extends r{constructor(e,t,i,s){super(e,t||n.createProperties(),i,s)}name(){return"Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork2",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork2=n},52827:(e,t,i)=>{"use strict";i.d(t,{LineToolSignpost:()=>f});var s=i(28353),r=i(88564),n=i(89857),o=i(2015),a=i.n(o);class l extends(a()){constructor(e){super(),this._source=e,e.pointAdded().subscribe(this,()=>this.listeners().fire(this)),e.pointChanged().subscribe(this,()=>this.listeners().fire(this))}value(){const e=this._source.properties().childs().position.value();return parseFloat(e.toFixed(2))}setValue(e){this._source.properties().childs().position.setValue(e),this._source.model().updateSource(this._source),this.listeners().fire(this),this._source.syncMultichartState({pricesChanged:!1,indexesChanged:!1})}}var c=i(38015);class h extends c.LineDataSourcePointIndexProperty{constructor(e,t){super(e,t),this._source=e}_setPointImpl(e){this._source.setPointAndChangeIndex(this._pointIndex,e)}}var d=i(37865),u=i(88537),p=i(70581),_=i(85733);class m extends n.LineDataSource{constructor(){super(...arguments),this._startMovingAnchorY=NaN}priceSource(){return this.ownerSource()}addPoint(e,t,i){return super.addPoint(this._updatePositionAndCorrectPoint(e),t,i)}setPoint(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!this.isPhantom()&&!this._allowChangeAnchorHorizontally()),i),this._syncPosition()}setPointAndChangeIndex(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!1),i),this._syncPosition()}startMoving(e,t,i,s){s||(this._startMovingAnchorY=(0,u.ensureNotNull)(this._anchorYCoordinate())),super.startMoving(e,t,i)}move(e,t,i,s){var r;const n=(0,u.ensureDefined)((0,u.ensureNotNull)(this.startMovingPoint()).logical),o=(0,u.ensureDefined)(e.logical);if(!s&&0===t){const e=this._points[0],t=o.index-n.index,i=(0,u.ensureNotNull)(this.priceScale()),s=(0,u.ensure)(null===(r=this.ownerSource())||void 0===r?void 0:r.firstValue()),a=i.priceToCoordinate(o.price,s)-i.priceToCoordinate(n.price,s),l=this._startMovingAnchorY+a,c=i.coordinateToPrice(l,s);this._updatePositionAndCorrectPoint({index:e.index+t,price:c})}super.move(e,t,i),s||this._syncPosition()}_allowChangeAnchorHorizontally(){return!1}_updatePositionAndCorrectPoint(e,t){t&&(e.index=this._points[0].index);const i=this.priceSource();if(null===i)return e;const s=i.priceScale(),r=i.firstValue();if(null===s||s.isEmpty()||null===r)return e;const n=s.height();let o=n/2,a=e.price>=s.coordinateToPrice(o,r)?1:-1;const l=this._model.mainSeries();if(i===l){ +const t=l.data().search(this._baseSeriesIndexForPoint(e));if(null!==t){const i=(0,p.seriesPrice)(l,t,-1),n=(0,p.seriesPrice)(l,t,1);a=e.price>=i?1:-1,o=s.priceToCoordinate(1===a?n:i,r),e.price=1===a?Math.max(n,e.price):e.price}}const c=1===(-1===a!==s.isInverted()?-1:1)?o:n-o,h=s.priceToCoordinate(e.price,r),d=Math.min(n,Math.abs(h-o)),u=Math.max(0,Math.min(100,100*d/c))*a;return this.properties().childs().position.setValue(u),e}_baseSeriesIndexForPoint(e){return e.index}_syncPosition(){const e=this.linkKey().value();if(null!==e){const t={position:this.properties().childs().position.value()};(0,_.changeLineStyle)({linkKey:e,state:t,model:this._model})}}_anchorYCoordinate(){const e=this.priceSource();if(null===e)return null;const t=e.priceScale(),i=e.firstValue();if(null===t||t.isEmpty()||null===i)return null;const s=this._model.mainSeries(),r=this.customEvent();if(null===r)return null;let n=null;if(e===s&&(n=(0,p.seriesBasePosition)(s,r)),null===n&&(n=(0,p.noDataBasePosition)(r,t,i)),null===n)return null;const o=r.position(),a=t.priceToCoordinate(n.price,i);return(0,p.positionToCoordinate)(o,t.height(),a,(0,p.positionVisualDirection)(o,t.isInverted()))}}var g=i(72077);class f extends m{constructor(e,t,s,r){super(e,null!=t?t:f.createProperties(),s,r),this._image=null,this._currentImageURL=null,this._imageReady=!1,this._updateImage(),this.properties().childs().emoji.subscribe(this,()=>this._updateImage()),i.e(1583).then(i.bind(i,74328)).then(t=>{this._setPaneViews([new t.SignpostPaneView(this,e)])})}pointsCount(){return 1}name(){return"Signpost"}customEvent(){return{index:()=>{var e,t;return null!==(t=null===(e=this.points()[0])||void 0===e?void 0:e.index)&&void 0!==t?t:null},position:()=>this.properties().childs().position.value()}}image(){return this._imageReady&&this.properties().childs().showImage.value()?this._image:null}showInObjectTree(){return!this.isPhantom()&&super.showInObjectTree()}isPhantom(){return this._model.isPhantomLine(this)}clonePositionOffset(){return{barOffset:1,xCoordOffset:0,yCoordOffset:0}}template(){const e=super.template(),t=this.properties().childs();return e.text=t.text.value(),e.position=t.position.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolsignpost",e);return f._configureProperties(t),t.hasChild("text")||t.addChild("text",new(a())((0,s.t)("Text"))),t.hasChild("position")||t.addChild("position",new(a())(50)),t.addExclusion("text"),t.addExclusion("position"),t.addChild("backgroundsColors",new d.LineToolColorsProperty([t.childs().plateColor])),t}_createPointProperty(e){super._createPointProperty(e);const t=this._pointsProperty.childs().points[e];t.removeProperty("price"),t.removeProperty("bar"),t.addChild("price",new l(this)),t.addChild("bar",new h(this,0))}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text),this.properties().childs().position.setValue(e.position)}_getPropertyDefinitionsViewModelClass(){ +return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,30882)).then(e=>e.SignpostDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e)}_updateImage(){const e=this._imageURL();if(this._currentImageURL!==e&&(this._currentImageURL=e,this._image=null,this._imageReady=!1,null!==this._currentImageURL)){const e=new Image;this._image=e,e.onload=()=>{this._imageReady=!0,this._model.updateSource(this),e.onload=null},e.crossOrigin="anonymous",e.src=this._currentImageURL}}_imageURL(){const e=this.properties().childs().emoji.value();return(0,g.getTwemojiUrl)(e,"png")||null}}f.supportPhantomMode=!0},15718:(e,t,i)=>{"use strict";i.d(t,{LineToolSineLine:()=>n});var s=i(88564),r=i(89857);class n extends r.LineDataSource{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.bind(i,85)).then(e=>{this._setPaneViews([new e.SineLinePaneView(this,this._model)])})}pointsCount(){return 2}name(){return"Sine Line"}static createProperties(e){const t=new s.DefaultProperty("linetoolsineline",e);return n._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,66819))).CyclicAndSineLinesPatternDefinitionsViewModel}static _configureProperties(e){r.LineDataSource._configureProperties(e)}}},51934:(e,t,i)=>{"use strict";i.d(t,{StudyLineDataSource:()=>v});var s=i(88537),r=i(80643),n=i(71053),o=i(89857),a=i(88564),l=i(67072),c=i.n(l),h=i(54376),d=i(33266),u=i(27982),p=i(8671),_=i(66101),m=i(10480),g=i(65862),f=i(33291);class v extends o.LineDataSource{constructor(e,t,s,r,n,o){super(e,r,n,o),this._indexes=null,this._inputs=null,this._definitionsViewModel=null,this._pointsetPoints=null,this._loadedPlots=null,this._loadedGraphics=null,this._beingCreatedPaneView=null,this._anchorsPaneView=null,this._alignerCache=null,Promise.all([i.e(1583).then(i.bind(i,15788)),i.e(1583).then(i.bind(i,77557))]).then(t=>{const{LineToolBeingCreatedPaneView:i}=t[0],{StudyLineDataSourceAnchorsPaneView:s}=t[1];this._beingCreatedPaneView=new i(this,e),this._anchorsPaneView=new s(this,this.model()),this._model.lightUpdate()}),this._metaInfo=t,this._dataSource=new u.StudyDataSource(e.chartApi(),e.mainSeries().seriesSource(),s,t),this._dataSource.dataCleared().subscribe(this,this._onDataCleared),this._dataSource.dataUpdated().subscribe(this,this._onDataUpdated)}destroy(){this._dataSource.dataUpdated().unsubscribe(this,this._onDataUpdated),this._dataSource.dataCleared().unsubscribe(this,this._onDataCleared),this._dataSource.destroy(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._unsubscribeApplyInputsOnSeriesCompleted(),this._isDestroyed=!0,super.destroy()}stop(){super.stop(),this._isDestroyed||(this._dataSource.stop(),this.clearData())}start(){super.start(),this._isDestroyed||null===this._inputs||this._dataSource.start()}metaInfo(){return this._metaInfo}graphicsInfo(){return this._metaInfo.graphics}series(){return this._model.mainSeries()}translatedType(){ +return this._metaInfo.description}name(){return this._metaInfo.description}studyId(){return this._metaInfo.id}setPoint(e,t,i){super.setPoint(e,this._preparePoint(t,i))}move(e){}clearData(){this._clearAllDataExceptPointsetPoints(),this._pointsetPoints=null,this.updateAllViews((0,f.dataSourceChangeEvent)(this.id()))}data(){return this.plots()}plots(){return this._loadedPlots||this._dataSource.plots()}graphics(){return this._loadedGraphics||this._dataSource.graphics()}firstValue(){return this._model.mainSeries().firstValue()}state(e){const t=super.state(e);let i;this.metaInfo()instanceof c()?i=this.metaInfo().state():(i=(0,r.clone)(this.metaInfo()),i.id=c().parseIdString(i.id+(i.version?"-"+i.version:"")).fullId);const s={...t,metaInfo:i};return e&&(s.data=this.plots().state(),s.nonseriesindexes=this._indexes,s.graphics=(0,h.saveStudyGraphics)(this.graphics())),s}restoreData(e){var t;void 0!==e.data&&(this._loadedPlots=new n.PlotList((0,p.studyPlotFunctionMap)(this._metaInfo),p.studyEmptyPlotValuePredicate),this._loadedPlots.restoreState(e.data)),this._indexes=null!==(t=e.nonseriesindexes)&&void 0!==t?t:this._indexes,this._loadedGraphics=e.graphics?(0,h.loadStudyGraphics)(e.graphics):this._loadedGraphics}getPropertyDefinitionsViewModel(){return null===this._definitionsViewModel?this._getPropertyDefinitionsViewModelClass().then(e=>null===e||this._isDestroyed?null:(null===this._definitionsViewModel&&(this._definitionsViewModel=new e(this._model.undoModel(),this)),this._definitionsViewModel)):Promise.resolve(this._definitionsViewModel)}paneViews(e){let t=[];if(this.isSourceHidden())return t;if(this._isReady()&&this._changeStatesStack.isEmpty()){const i=super.paneViews(e);null!==i&&(t=t.concat(i))}else null!==this._beingCreatedPaneView&&t.push(this._beingCreatedPaneView);return null!==this._anchorsPaneView&&t.push(this._anchorsPaneView),t}propertiesChanged(e){super.propertiesChanged(e),this._onStudyInputsMayChange()}dataAndViewsReady(){return super.dataAndViewsReady()&&this._isReady()}endChanging(e,t){const i=super.endChanging(e,t);return i.indexesChanged?this.clearData():this._updateAnchorsPrice(!0),i}moveData(e){this._dataSource.moveData(e)}restorePoints(e,t,i){super.restorePoints(e,t,i),this._updateAnchorsPrice(!0)}realign(){super.realign(),null===this._model.mainSeries().symbolInfo()&&(this._alignerCache=null)}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,_.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return v._configureProperties(r),r}_studyId(){return this._dataSource.studyId()}_isReady(){return!0}_updateAllPaneViews(e){var t,i;super._updateAllPaneViews(e),null===(t=this._beingCreatedPaneView)||void 0===t||t.update(),null===(i=this._anchorsPaneView)||void 0===i||i.update(e)}_getPointTime(e,t){const i=e.index,s=this._model.timeScale().indexToTimePoint(i);if(null!==s)return s;if(t||void 0===e.time)return null;const r=this._model.mainSeries().symbolInfo();if(null===r)return null;let n=this._model.properties().childs().timezone.value();"exchange"===n&&(n=r.timezone);const o=(0,m.cal_to_utc)((0, +m.get_timezone)(n),e.time);return this._getStartBarAligner()(o)/1e3}_updateAnchorsPrice(e){}_onPointsetUpdated(e){super._onPointsetUpdated(e),this._pointsetPoints=this._points.map(e=>({price:e.price,index:e.index,time:e.time})),this._onStudyInputsMayChange()}_onDataCleared(){this.updateAllViews((0,f.dataSourceChangeEvent)(this.id(),void 0,!0)),this._model.updateSource(this)}_onDataUpdated(e,t,i){var s;this._updateAnchorsPrice(),this.updateAllViews((0,f.dataSourceChangeEvent)(this.id(),null===(s=e[0])||void 0===s?void 0:s.index)),this._model.updateSource(this)}_onStudyInputsMayChange(){let e=null;if(null!==this._pointsetPoints&&this._pointsetPoints.length===this.pointsCount()&&(e=this._studyInputs(this._pointsetPoints),null===e&&(this._clearAllDataExceptPointsetPoints(),this.updateAllViews((0,f.dataSourceChangeEvent)(this.id())))),null!==e){const t=this.metaInfo().inputs.map(e=>e.id),i=Object.keys(e);for(const s of i)t.includes(s)||delete e[s]}this._areInputsEqual(this._inputs,e)||this._applyStudyInputs(e)}_preparePoint(e,t){return super._preparePoint(this._alignPointToRangeOfActualData(e),t)}_getPropertyDefinitionsViewModelClass(){return Promise.resolve(null)}_subscribeApplyInputsOnSeriesCompleted(){this._unsubscribeApplyInputsOnSeriesCompleted(),this._model.mainSeries().dataEvents().completed().subscribe(this,()=>this._onStudyInputsMayChange(),!0)}_unsubscribeApplyInputsOnSeriesCompleted(){this._model.mainSeries().dataEvents().completed().unsubscribeAll(this)}_onInputsChanged(){0}static _createPropertiesFromStudyIdAndState(e,t){const i=c().getStudyPropertyRootNameById(e),s=new a.DefaultProperty(i,t);return v._configureProperties(s),s}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.removeExclusion("intervalsVisibilities")}_areInputsEqual(e,t){return null===t?null===e:null!==e&&(0,d.areStudyInputsEqual)(this._metaInfo.inputs,e,t)}_applyStudyInputs(e){const t=this._inputs;this._inputs=e,null!==e&&(this._unsubscribeApplyInputsOnSeriesCompleted(),this._dataSource.setInputs(e),null===t&&this.isStarted()&&!this._dataSource.isStarted()&&this._dataSource.start()),this._onInputsChanged()}_clearAllDataExceptPointsetPoints(){this._inputs=null,this._dataSource.clearData(),this._loadedPlots=null,this._indexes=null,this._loadedGraphics=null}_getStartBarAligner(){const e=this._model.mainSeries().interval();return null!==this._alignerCache&&this._alignerCache.resolution===this._model.mainSeries().interval()||(this._alignerCache={resolution:e,aligner:(0,g.createTimeToBarTimeAligner)(e,(0,s.ensureNotNull)(this._model.mainSeries().symbolInfo()))}),this._alignerCache.aligner}}},74971:(e,t,i)=>{"use strict";i.d(t,{LineToolText:()=>u,LineToolTextAbsolute:()=>p});var s=i(88537),r=i(86441),n=i(28353),o=i(89857),a=i(2015),l=i.n(a),c=i(88564),h=i(37865),d=i(33291);class u extends o.LineDataSource{constructor(e,t,s,r){const n=t||u.createProperties();super(e,n,s,r),this._barSpacing=e.timeScale().barSpacing(),this._recalculatePointsOnCenter=!1,i.e(1583).then(i.bind(i,44074)).then(({TextPaneView:t})=>{ +const i=this._recalculatePointsOnCenter?(e,t)=>{this._recalculatePointsOnCenter&&this._recalculateCenterPosition(e,t)}:void 0;this._setPaneViews([new t(this,e,void 0,void 0,void 0,void 0,void 0,i)])})}centerPosition(){this._recalculatePointsOnCenter=!0}setPoint(e,t,i){const r=this.properties().childs();let n;if(1===e&&r.wordWrapWidth.value()){const e=this.model().timeScale();n=this.isFixed()?(0,s.ensureDefined)(this.fixedPoint()).x:e.indexToCoordinate(this.points()[0].index);const i=e.indexToCoordinate(t.index)-n-~~(r.fontsize.value()/6);if(!isFinite(i))return;r.wordWrapWidth.setValue(Math.max(100,i))}}pointsCount(){return 1}name(){return"Text"}setPriceScale(e){super.setPriceScale(e),e&&e.priceRange()&&(this._priceDencity=e.height()/(0,s.ensureNotNull)(e.priceRange()).length(),this._isPriceDencityLog=e.isLog())}restoreSize(){const e=(0,s.ensureNotNull)(this.priceScale());this._barSpacing=this.model().timeScale().barSpacing(),this._priceDencity=e.height()/(0,s.ensureNotNull)(e.priceRange()).length(),this.redraw((0,d.dataSourceChangeEvent)(this.id()))}redraw(e){this.updateAllViews(e),this._model.updateSource(this)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}state(e){const t=super.state(e);return e&&(t.state.fixedSize=!1),t}barSpacing(){return this._barSpacing}priceDencity(){return this._priceDencity}isPriceDencityLog(){return this._isPriceDencityLog}hasEditableCoordinates(){return!1}static createProperties(e){const t=new c.DefaultProperty("linetooltext",e);return u._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,99734)).then(e=>e.TextDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(l())((0,n.t)("Text"))),e.addChild("linesColors",new h.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new h.LineToolColorsProperty([e.childs().color])),e.addExclusion("text"),e.addExclusion("linesColors"),e.addExclusion("textsColors")}_recalculateCenterPosition(e,t){const i=this.isFixed()?(0,s.ensureDefined)(this.fixedPoint()):(0,s.ensureNotNull)(this.pointToScreenPoint(this._points[0])),n=new r.Point(i.x-e/2,i.y-t/2),o=(0,s.ensureNotNull)(this.screenPointToPoint(n));this.setPoints([o]),this.normalizePoints(),this.createServerPoints(),this.redraw((0,d.dataSourceChangeEvent)(this.id()))}}class p extends u{constructor(e,t){super(e,t||p.createProperties())}name(){return"Anchored Text"}hasEditableCoordinates(){return!1}isFixed(){return!0}static createProperties(e){const t=new c.DefaultProperty("linetooltextabsolute",e);return p._configureProperties(t),t}static _configureProperties(e){u._configureProperties(e)}}},6980:(e,t,i)=>{"use strict";i.d(t,{LineToolThreeDrivers:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties() +;super(e,n,s,r),i.e(1583).then(i.bind(i,88993)).then(t=>{this._setPaneViews([new t.LineToolThreeDrivesPaneView(this,e)])})}pointsCount(){return 7}name(){return"Three Drives Pattern"}static createProperties(e){const t=new s.DefaultProperty("linetoolthreedrivers",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,98890)).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("linesWidths",new n.LineToolWidthsProperty([e.childs().linewidth])),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors")}}},38513:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty;class n extends s{constructor(e,t,s,r){super(e,t||n.createProperties(),s,r),i.e(1583).then(i.t.bind(i,59905,19)).then(({TimeCyclesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Time Cycles"}setPoint(e,t,i){var s=Object.assign({},t),r=this._points[0],n=this._points[1];r.price=s.price,n.price=s.price,this._points[e]=s,this.normalizePoints()}addPoint(e,t,i){var r=s.prototype.addPoint.call(this,e,t,!0);if(r){var n=this._points[0];this._points[1].price=n.price,i||(this.normalizePoints(),this.createServerPoints())}return r}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,3956))).TimeCyclesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetooltimecycles",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolTimeCycles=n},2587:(e,t,i)=>{"use strict";const s=i(89857).LineDataSource,r=i(20165).alignToStep;class n extends s{constructor(e,t){super(e,t),this.customization.forcePriceAxisLabel=!0,this.customization.disableErasing=!0,this.customization.showInObjectsTree=!1,this.setSelectionEnabled(!1)}isSynchronizable(){return!1}pointsCount(){return n.POINTS_COUNT}hasContextMenu(){return!1}state(){return null}startMoving(){s.prototype.startMoving.apply(this,arguments),this._cursorMoved=!1}endMoving(){s.prototype.endMoving.apply(this,arguments),this._cursorMoved=!1}_correctPoints(e,t){this._currentMovingPoint&&this._startMovingPoint?this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price&&(this._cursorMoved=!0):this._cursorMoved=!1;for(var i=1/this.priceScale().mainSource().base(),s=0;s{"use strict";var s=i(2015),r=i(86441).Point,n=i(89857).LineDataSource,o=i(88564).DefaultProperty;class a extends s{constructor(e){super(),this._lineSource=e}value(){var e=180*this._lineSource._angle/Math.PI;return Math.round(e)}setValue(e){var t=e*Math.PI/180;this._lineSource._angle=t;var i=this._lineSource.pointToScreenPoint(this._lineSource.points()[0]),s=Math.cos(this._lineSource._angle),n=-Math.sin(this._lineSource._angle),o=new r(s,n),a=i.addScaled(o,this._lineSource._distance),l=this._lineSource.screenPointToPoint(a);this._lineSource._points[1]=l,this._lineSource._model.updateSource(this._lineSource),this._lineSource.updateAllViews(),this._lineSource._model.updateSource(this._lineSource)}}class l extends n{constructor(e,t,s,r){super(e,t||l.createProperties(),s,r),this._properties.addChild("angle",new a(this)),i.e(1583).then(i.t.bind(i,74108,19)).then(({TrendAnglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}pointsCount(){return 2}name(){return"Trend Angle"}_calculateAngle(){var e=this.pointToScreenPoint(this.points()[0]),t=this.pointToScreenPoint(this.points()[1]),i=t.subtract(e);i.length()>0?(i=i.normalized(),this._angle=Math.acos(i.x),i.y>0&&(this._angle=-this._angle),this._distance=t.subtract(e).length()):delete this._angle,this.properties().hasOwnProperty("angle")&&this.properties().angle.listeners().fire(this.properties().angle)}addPoint(e,t){var i=n.prototype.addPoint.call(this,e,t);return i&&this._calculateAngle(),i}setLastPoint(e,t){var i=super.setLastPoint(e,t);return this.points().length>1&&this._calculateAngle(),i}axisPoints(){if(this.points().length<2)return[];var e=[this.points()[0]],t=this.pointToScreenPoint(this.points()[0]),i=Math.cos(this._angle)*this._distance,s=-Math.sin(this._angle)*this._distance,n=t.add(new r(i,s)),o=this.screenPointToPoint(n);return e.push(o),e}setPoint(e,t,i){super.setPoint(e,t,i),this.points().length>1&&1===e&&this._calculateAngle()}restoreData(e){this._angle=e.angle,this._distance=e.distance}state(e){var t=n.prototype.state.call(this,e);return t.angle=this._angle,t.distance=this._distance,t}cloneData(e){this._angle=e._angle,this._distance=e._distance}canHasAlert(){return!0}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,38909))).TrendAngleDefinitionsViewModel}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetooltrendangle",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e)}}t.LineToolTrendAngle=l},25861:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line")) +;class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,80741,19)).then(({TrendBasedFibExtensionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Extension"}migrateVersion(e,t,i){1===e&&this.properties().extendLines.setValue(!0)}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}static createProperties(e){var t=new o("linetooltrendbasedfibextension",e,!1,{range:[0,8]});return d._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,34670))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth"),e.child("levelsStyle").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}fibLevelsBasedOnLogScale(){return this.properties().fibLevelsBasedOnLogScale.value()&&this.priceScale().isLog()}}d.version=2,d.LevelsCount=24,t.LineToolTrendBasedFibExtension=d},6245:(e,t,i)=>{"use strict";var s=i(28353).t,r=i(24980).TranslatedString,n=i(89857).LineDataSource,o=i(34580).LevelsProperty,a=i(37865),l=a.LineToolWidthsProperty,c=a.LineToolColorsProperty,h=new r("erase level line",s("erase level line"));class d extends n{constructor(e,t,s,r){super(e,t||d.createProperties(),s,r),this.version=d.version,i.e(1583).then(i.t.bind(i,78343,19)).then(({TrendBasedFibTimePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return d.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Time"}migrateVersion(e,t,i){}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,h)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,42882))).TrendBasedFibTimeDefinitionsViewModel}static createProperties(e){var t=new o("linetooltrendbasedfibtime",e,!1,{range:[1,11]});return d._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=d.LevelsCount;s++)t.push(e.child("level"+s).child("linewidth")),i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new c(i)),e.addChild("linesWidths",new l(t))}}d.LevelsCount=11,d.version=1,t.LineToolTrendBasedFibTime=d},57649:(e,t,i)=>{"use strict";var s=i(2015),r=i(89857).LineDataSource,n=i(22474).LineToolPriceAxisView,o=i(88564).DefaultProperty;class a extends r{constructor(e,t,s,r){super(e,t||a.createProperties(),s,r),this._trendLinePaneView=null,i.e(1583).then(i.t.bind(i,38743,19)).then(({TrendLinePaneView:e})=>{this._trendLinePaneView=new e(this,this._model),this._setPaneViews([this._trendLinePaneView])})}dataAndViewsReady(){ +return r.prototype.dataAndViewsReady.call(this)&&this._trendLinePaneView&&this._trendLinePaneView.iconsReady()}stop(){super.stop()}pointsCount(){return 2}name(){return"Trend Line"}canHasAlert(){return!0}showPriceLabels(){return this._properties.childs().showPriceLabels.value()}createPriceAxisView(e){return new n(this,{pointIndex:e,backgroundPropertyGetter:()=>this.showPriceLabels()?this._properties.linecolor.value():null})}isForcedDrawPriceAxisLabel(){return this.showPriceLabels()}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,43266))).TrendLineDefinitionsViewModel}template(){var e=r.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}_snapTo45DegreesAvailable(){return!0}static createProperties(e){var t=new o("linetooltrendline",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new s("")),e.addExclusion("text")}}t.LineToolTrendLine=a},53403:(e,t,i)=>{"use strict";i.d(t,{LineToolTrianglePattern:()=>o});var s=i(88564),r=i(89857),n=i(37865);class o extends r.LineDataSource{constructor(e,t,s,r){const n=t||o.createProperties();super(e,n,s,r),i.e(1583).then(i.bind(i,51145)).then(t=>{this._setPaneViews([new t.LineToolTrianglePatternPaneView(this,e)])})}pointsCount(){return 4}name(){return"Triangle Pattern"}static createProperties(e){const t=new s.DefaultProperty("linetooltrianglepattern",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,93262)).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor]))}}},99092:(e,t,i)=>{"use strict";var s=i(89857).LineDataSource,r=i(88564).DefaultProperty,n=i(37865).LineToolColorsProperty;class o extends s{constructor(e,t,s,r){super(e,t||o.createProperties(),s,r),i.e(1583).then(i.t.bind(i,12258,19)).then(({TrianglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Triangle"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,24965))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooltriangle",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new n([e.childs().color]))}}t.LineToolTriangle=o},67103:(e,t,i)=>{"use strict";i.d(t,{ +LineToolVertLineTimeAxisView:()=>r});var s=i(19528);class r extends s.LineDataSourceTimeAxisView{constructor(e){super(e,0)}_getBgColor(){return this._source.properties().linecolor.value()}_getAlwaysInViewPort(){return!1}_getIndex(){const e=this._source.points();return 0===e.length?null:e[0].index}}},51922:(e,t,i)=>{"use strict";i.d(t,{LineToolVertLine:()=>h});var s=i(88537),r=i(86441),n=i(88564),o=i(2015),a=i.n(o),l=i(89857),c=i(67103);class h extends l.LineDataSource{constructor(e,t,s,r){const n=t||h.createProperties();super(e,n,s,r),this._timeAxisView=new c.LineToolVertLineTimeAxisView(this),this._paneViewFactory=null,this.properties().childs().extendLine.subscribe(this,()=>e.lightUpdate()),i.e(1583).then(i.bind(i,68022)).then(t=>{this._paneViewFactory=i=>new t.VertLinePaneView(this,e,i),this._model.lightUpdate()})}destroy(){this.properties().childs().extendLine.unsubscribeAll(this),super.destroy()}pointsCount(){return 1}name(){return"Vertical Line"}timeAxisViews(){return this.isSourceHidden()?null:this.properties().childs().showTime.value()?[this._timeAxisView]:null}updateAllViews(e){super.updateAllViews(e),this._timeAxisView.update(e)}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}isMultiPaneAvailable(){return!0}isMultiPaneEnabled(){return this.properties().childs().extendLine.value()}paneViews(e){return e=(0,s.ensureDefined)(e),this.isMultiPaneEnabled()||this._model.paneForSource(this)===e?(null===this._getPaneViews(e)&&null!==this._paneViewFactory&&this._setPaneViews([this._paneViewFactory(e)],e,!0),super.paneViews(e)):null}priceAxisViews(){return null}priceAxisPoints(){return[]}pointToScreenPoint(e){const t=this._model.timeScale();if(t.isEmpty())return null;const i=t.indexToCoordinate(e.index);return new r.Point(i,0)}convertYCoordinateToPriceForMoving(e){return 0}static createProperties(e){null!=e&&(void 0===e.textOrientation&&(e.textOrientation="horizontal"),void 0===e.extendLine&&(e.extendLine=!1));const t=new n.DefaultProperty("linetoolvertline",e);return h._configureProperties(t),t}_getAlertPlots(){const e=this._points[0],t={index:e.index,price:e.price+1};return[this._linePointsToAlertPlot([e,t],null,!0,!0)]}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(1369),i.e(8623),i.e(8537)]).then(i.bind(i,90308)).then(e=>e.VerticalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new(a())("")),e.addExclusion("text")}}},20299:(e,t,i)=>{"use strict";i.d(t,{LineToolVbPFixed:()=>f});var s=i(77973),r=i(88537),n=i(88145),o=i(67072),a=i.n(o),l=i(51934),c=i(54376),h=i(2662),d=i(33291),u=i(80643),p=i(88564),_=i(14291),m=i(66101);const g=(0,n.studyIdString)("VbPFixed","tv-volumebyprice");class f extends l.StudyLineDataSource{constructor(e,t,i,s,r,n){const o=i||e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:g +}),a=null!=t?t:f.createProperties(e);super(e,o,"vbpfixed_",a,r,n),(0,c.createGraphicsPaneViews)(this,e).then(t=>{if(s=e.mainSeries(),o.plots.length>0){const i=new h.StudyPlotPaneView(this,s,e,o.plots[0].id);t.push(i)}if(o.plots.length>1){const i=new h.StudyPlotPaneView(this,s,e,o.plots[1].id);t.push(i)}if(o.plots.length>2){const i=new h.StudyPlotPaneView(this,s,e,o.plots[2].id);t.push(i)}this._setPaneViews(t)}),this.clearData()}pointsCount(){return 2}boundToSymbol(){return!1}offset(e){return 0}getMinFirstBarIndexForPlot(){return-1/0}calcIsActualSymbol(){this._isActualSymbol=!0,this._isActualCurrency=!0,this._isActualUnit=!0,this.calcIsActualInterval()}cloneable(){return!1}isSynchronizable(){return!1}static createProperties(e,t){const i=a().getStudyPropertyRootNameById(g),s=(0,r.ensureNotNull)(e.studyMetaInfoRepository().findByIdSync({type:"java",studyId:g})),n=(0,p.createDefaultsState)(!0,i,[],e.studyVersioning());return(0,_.createStudyLineToolProperties)("LineToolVbPFixed",s,s,(0,u.merge)((0,u.clone)(n),null!=t?t:{}),e.studyVersioning())}static createPropertiesFromStudyMetaInfoAndState(e,t,i,s){const r=(0,m.prepareStudyPropertiesForLoadChart)(e,t,i,null,s);return f._configureProperties(r),r}static studyId(){return g}_studyInputs(e){(0,r.assert)(2===e.length,"all the line tool points should be defined");const[t,i]=e,s=Math.max(t.index,i.index),n=this._model.mainSeries().bars().lastIndex(),o=this._getPointTime(t.index<=i.index?t:i,!0),a=this._getPointTime(i.index>=t.index?i:t,!0);if(null===o||null===a)return this._subscribeApplyInputsOnSeriesCompleted(),null;return{...this.properties().childs().inputs.state(),first_bar_time:1e3*o,last_bar_time:1e3*a,subscribeRealtime:n===s}}_isReady(){return!(0,c.isStudyGraphicsEmpty)(this.graphics())}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,26667))).StudyLineDataSourceDefinitionsViewModel}_onDataUpdated(){this._updateAnchors(),this.updateAllViews((0,d.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}_updateAnchors(){const e=this._calculateAnchors();if(!e)return;const[{index:t,price:i},{index:s,price:r}]=e;if(this._timePoint.length&&(this._timePoint[0].price=i,this._timePoint[1].price=r),this._points.length){const e=this.model().timeScale(),n=e.indexToTimePoint(t),o=e.indexToTimePoint(t);this._points[0]={index:t,price:i,time:(0,u.isNumber)(n)?new Date(1e3*n):void 0},this._points[1]={index:s,price:r,time:(0,u.isNumber)(o)?new Date(1e3*o):void 0}}}_calculateAnchors(){let e=null,t=null,i=null,r=null;if(this.graphics().hhists().forEach(s=>{s.forEach(s=>{const{priceLow:n,priceHigh:o,firstBarTime:a,lastBarTime:l}=s;(!e||nt)&&(t=o),(!i||ar)&&(r=l)})}),!((0,s.default)(e)||(0,s.default)(t)||(0,s.default)(r)||(0,s.default)(i)))return[{price:t,index:i},{price:e,index:r}]}_updateAnchorsPrice(){const e=this._calculateAnchors();if(!e)return;const[{price:t},{price:i}]=e;this._timePoint.length&&(this._timePoint[0].price=t,this._timePoint[1].price=i), +this._points.length&&(this._points[0].price=t,this._points[1].price=i)}}},90373:(e,t,i)=>{"use strict";var s;i.d(t,{MagnetMode:()=>s}),function(e){e[e.WeakMagnet=0]="WeakMagnet",e[e.StrongMagnet=1]="StrongMagnet"}(s||(s={}))},30460:(e,t,i)=>{"use strict";i.d(t,{magnetEnabled:()=>m,magnetMode:()=>g,setIsMagnetEnabled:()=>f,setMagnetMode:()=>v});var s=i(88564),r=i(52714),n=i.n(r),o=i(90373),a=i(85733),l=i(14291),c=i(76367);const h=new(n())(!1),d=new(n())(o.MagnetMode.WeakMagnet),u=(0,c.modifierPressed)(),p=(0,c.shiftPressed)();function _(){const e=u.value();if(p.value()&&(a.isToolEditingNow.value()||a.isToolCreatingNow.value()))return void h.setValue(!1);const t=a.tool.value(),i=a.isStudyEditingNow.value()||a.isPointSelectedNow.value(),s=e&&((0,l.isLineToolName)(t)||a.isToolEditingNow.value()||(0,a.toolIsMeasure)(t)||i),r=(0,a.properties)().childs().magnet.value();d.setValue(!r&&s?o.MagnetMode.StrongMagnet:(0,a.properties)().childs().magnetMode.value()),h.setValue(s?!r:r)}function m(){return h}function g(){return d}function f(e){(0,s.saveDefaultProperties)(!0),(0,a.properties)().childs().magnet.setValue(e),(0,s.saveDefaultProperties)(!1)}function v(e){(0,s.saveDefaultProperties)(!0),(0,a.properties)().childs().magnetMode.setValue(e),(0,a.properties)().childs().magnet.setValue(!0),(0,s.saveDefaultProperties)(!1)}(0,a.runOnDrawingStateReady)(()=>{(0,a.properties)().childs().magnet.subscribe(null,_),(0,a.properties)().childs().magnetMode.subscribe(null,_),u.subscribe(_),p.subscribe(_),a.tool.subscribe(_),a.isToolEditingNow.subscribe(_),_()})},32050:(e,t,i)=>{"use strict";i.d(t,{MainSeriesScaleRatioProperty:()=>n});var s=i(2872),r=i.n(s);class n{constructor(e){this._changed=new(r()),this._model=e}getStepChangeValue(){return.1}getMinValue(){return 1e-7}getMaxValue(){return 99999999}value(){return this._model.mainSeriesScaleRatio()}setValue(e,t){(e!==this.value()||t)&&(this._model.setMainSeriesScaleRatio(e),this._onChanged())}state(){return null}clone(){return new n(this._model)}listeners(){return this._changed}subscribe(e,t){this._changed.subscribe(e,t)}unsubscribe(e,t){this._changed.unsubscribe(e,t)}unsubscribeAll(e){this._changed.unsubscribeAll(e)}storeStateIfUndefined(){return!0}_onChanged(){this._changed.fire(this)}}},33291:(e,t,i)=>{"use strict";function s(e,t,i){return{type:"data-source-change",dataSourceId:e,firstUpdatedTimePointIndex:t,clearData:i}}i.r(t),i.d(t,{dataSourceChangeEvent:()=>s,globalChangeEvent:()=>n,viewportChangeEvent:()=>a,selectionChangeEvent:()=>c});const r={type:"global-change"};function n(){return r}const o={type:"viewport-change"};function a(){return o}const l={type:"selection-change"};function c(){return l}},51344:(e,t,i)=>{"use strict";i.d(t,{ensureTimePointIndexIndex:()=>n,unpackNonSeriesData:()=>o});var s=i(6617),r=i(88537);function n(e){if(e<0)throw new Error("TimePointIndexIndex should be non-negative integer");return e}async function o(e){if(""===e)return null;const t=JSON.parse(e);if(!(0,s.isObject)(t)||"function"==typeof t)throw new Error("Non-object content in the non-series envelope") +;if((0,s.hasProperty)(t,"indexes_replace"))return{indexes_replace:!0};const i={indexes_replace:!1};if((0,s.hasProperty)(t,"offsets")&&(i.offsets=t.offsets),(0,s.hasProperty)(t,"isUpdate")){if("boolean"!=typeof t.isUpdate)throw new Error('Invalid type of "isUpdate" field');i.isUpdate=t.isUpdate}return(0,s.hasProperty)(t,"data")&&(i.data=t.data),(0,s.hasProperty)(t,"graphicsCmds")&&(i.graphicsCmds=function(e){if(!(0,s.isObject)(e))throw new Error("Graphics commands should be wrapped in an object");if((0,s.hasProperty)(e,"create"),(0,s.hasProperty)(e,"erase")){const t=e.erase;(0,r.assert)(Array.isArray(t),"Collection of erase commands should be array");for(const e of t){if(!(0,s.isObject)(e)||!(0,s.hasProperty)(e,"action"))throw new Error("Command should be an object with 'action' property");(0,r.assert)("all"===e.action||"one"===e.action,"Erase command action should be 'all' or 'one'")}}return e}(t.graphicsCmds)),i}},57626:(e,t,i)=>{"use strict";i.d(t,{notAvailable:()=>r});var s=i(28353);const r=i(67337).enabled("use_na_string_for_not_available_values")?(0,s.t)("n/a"):"∅"},56589:(e,t,i)=>{"use strict";var s;i.d(t,{PaneCursorType:()=>s}),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"}(s||(s={}))},28978:(e,t,i)=>{"use strict";i.d(t,{PanePriceAxisView:()=>n});var s=i(76818);class r{constructor(e){this._priceAxisViewRenderer=null,this._rendererOptions=null,this._align="right",this._width=0,this._height=0,this._textWidthCache=e}setParams(e,t,i,s,r){this._priceAxisViewRenderer=e,this._rendererOptions=t,this._width=i,this._height=s,this._align=r}draw(e,t){null!==this._rendererOptions&&null!==this._priceAxisViewRenderer&&this._priceAxisViewRenderer.draw(e,this._rendererOptions,this._textWidthCache,this._width,this._height,this._align,t.pixelRatio)}hitTest(e){var t,i;return void 0===(null===(t=this._priceAxisViewRenderer)||void 0===t?void 0:t.hitTest)?null:null===(i=this._priceAxisViewRenderer)||void 0===i?void 0:i.hitTest(e,this._width,this._align)}}class n{constructor(e,t,i){this._renderer=null,this._invalidated=!0,this._priceAxisView=e,this._textWidthCache=new s.TextWidthCache(100),this._dataSource=t,this._chartModel=i,this._fontSize=-1,this._panePriceAxisViewRenderer=new r(this._textWidthCache)}update(e){this._invalidated=!0}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){this._renderer=null;const i=this._chartModel.crossHairSource(),s=this._dataSource===i?i.pane:this._chartModel.paneForSource(this._dataSource);if(null===s)return;const r=this._priceScale();if(null===r)return;let n=s.priceScalePosition(r);if("overlay"===n&&(n=s.priceScalePosition(s.defaultPriceScale())),"overlay"===n)return;const o=this._chartModel.priceAxisRendererOptions();o.fontSize!==this._fontSize&&(this._fontSize=o.fontSize, +this._textWidthCache.reset()),this._panePriceAxisViewRenderer.setParams(this._priceAxisView.paneRenderer(),o,t,e,n),this._renderer=this._panePriceAxisViewRenderer,this._invalidated=!1}_priceScale(){return this._dataSource.priceScale()}}},84705:(e,t,i)=>{"use strict";i.d(t,{PaneRendererArea:()=>a});var s=i(88537),r=i(46214),n=i(29892),o=i(49094);class a extends r.PaneRendererLine{constructor(e){e.forceLineColor=!1,super(e)}draw(e,t){var i,r,a,l,c;const h=this._data;if(0===h.items.length)return;let d=null!==(r=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==r?r:0,u=(null!==(l=null===(a=this._data.visibleItemsRange)||void 0===a?void 0:a.endItemIndex)&&void 0!==l?l:this._data.items.length)-1;for(;d=0&&!(0,o.coordinateIsValid)(h.items[u].y);)u--;if(d>u)return;e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.lineCap="butt",e.strokeStyle=h.lineColor,e.lineWidth=h.lineWidth,(0,n.setLineStyle)(e,h.lineStyle),e.lineWidth=1;const p={},_=h.items;for(let e=d;e<=u;e++){const t=_[e];let i;if(i=t.style?t.style.color:h.lineColor,e{"use strict";i.d(t,{CompositeRenderer:()=>s});class s{constructor(){this._renderers=[],this._globalAlpha=1}setGlobalAlpha(e){this._globalAlpha=e}append(e){this._renderers.push(e)}insert(e,t){this._renderers.splice(t,0,e)}clear(){this._renderers.length=0}isEmpty(){return 0===this._renderers.length}draw(e,t){for(let i=0;i=0;s--){const r=this._renderers[s].hitTest(e,t);null!==r&&(null===i||r.result()>i.result())&&(i=r)}return i}doesIntersectWithBox(e){return this._renderers.some(t=>!!t.doesIntersectWithBox&&t.doesIntersectWithBox(e))}}},42759:(e,t,i)=>{"use strict";i.d(t,{clearRectWithGradient:()=>o,fillRectInnerBorder:()=>a,drawHorizontalLine:()=>l,drawVerticalLine:()=>c,drawRoundRect:()=>d,drawRoundRectWithInnerBorder:()=>u,fillRectWithBorder:()=>p,createCircle:()=>_});var s=i(86441),r=i(29892),n=i(95936);function o(e,t,i,s,r,n,o){e.save(), +e.globalCompositeOperation="copy";const a=e.createLinearGradient(0,0,0,r);a.addColorStop(0,n),a.addColorStop(1,o),e.fillStyle=a,e.fillRect(t,i,s,r),e.restore()}function a(e,t,i,s,r,n){e.fillRect(t+n,i,s-2*n,n),e.fillRect(t+n,i+r-n,s-2*n,n),e.fillRect(t,i,n,r),e.fillRect(t+s-n,i,n,r)}function l(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(i,t+r),e.lineTo(s,t+r),e.stroke()}function c(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(t+r,i),e.lineTo(t+r,s),e.stroke()}function h(e,t){return Array.isArray(e)?e.map(e=>0===e?e:e+t):e+t}function d(e,t,i,s,r,n,o){let a,l,c,h;if(Array.isArray(n))if(2===n.length){const e=Math.max(0,n[0]),t=Math.max(0,n[1]);a=e,l=e,c=t,h=t}else{if(4!==n.length)throw new Error("Wrong border radius - it should be like css border radius");a=Math.max(0,n[0]),l=Math.max(0,n[1]),c=Math.max(0,n[2]),h=Math.max(0,n[3])}else{const e=Math.max(0,n);a=e,l=e,c=e,h=e}o||e.beginPath(),e.moveTo(t+a,i),e.lineTo(t+s-l,i),0!==l&&e.arcTo(t+s,i,t+s,i+l,l),e.lineTo(t+s,i+r-c),0!==c&&e.arcTo(t+s,i+r,t+s-c,i+r,c),e.lineTo(t+h,i+r),0!==h&&e.arcTo(t,i+r,t,i+r-h,h),e.lineTo(t,i+a),0!==a&&e.arcTo(t,i,t+a,i,a)}function u(e,t,i,s,o,a,l=0,c=0,u="",p=n.LineStyle.Solid){if(e.save(),!c||!u||u===a)return d(e,t,i,s,o,l),e.fillStyle=a,e.fill(),void e.restore();const _=c/2;if("transparent"!==a){const r="transparent"!==u&&p!==n.LineStyle.Solid;d(e,r?t:t+c,r?i:i+c,r?s:s-2*c,r?o:o-2*c,r?l:h(l,-c)),e.fillStyle=a,e.fill()}if("transparent"!==u){d(e,t+_,i+_,s-c,o-c,h(l,-_)),e.lineWidth=c,e.strokeStyle=u,(0,r.setLineStyle)(e,p),e.closePath(),e.stroke()}e.restore()}function p(e,t,i,n,o,a,l,c,h,d,u,p,_,m,g){const f=d?0:t,v=u?_:n;if(void 0!==a&&(e.fillStyle=a,e.fillRect(f,i,v-f+m,o-i)),void 0!==l&&c>0){if(e.beginPath(),(0,r.setLineStyle)(e,h),void 0!==g){const t=g.map(e=>e*c);(0,r.setLineDash)(e,t)}let a=(0,s.point)(0,0),d=(0,s.point)(0,0),u=(0,s.point)(0,0),_=(0,s.point)(0,0);switch(p){case"outer":{const e=.5*c;u=(0,s.point)(0,e),_=(0,s.point)(0,e),a=(0,s.point)(e,-c),d=(0,s.point)(e,-c);break}case"center":{const e=c%2?.5:0,t=c%2?.5:m;u=(0,s.point)(.5*c-e,-e),_=(0,s.point)(t+.5*c,-e),a=(0,s.point)(-e,e+.5*c),d=(0,s.point)(t,e+.5*c);break}case"inner":{const e=.5*c;u=(0,s.point)(0,-e),_=(0,s.point)(1,-e),a=(0,s.point)(-e,c),d=(0,s.point)(1-e,c);break}}e.lineWidth=c,e.strokeStyle=l,e.moveTo(f-u.x,i-u.y),e.lineTo(v+_.x,i-_.y),e.moveTo(n+d.x,i+d.y),e.lineTo(n+d.x,o-d.y),e.moveTo(f-u.x,o+u.y),e.lineTo(v+_.x,o+_.y),e.moveTo(t-a.x,i+a.y),e.lineTo(t-a.x,o-a.y),e.stroke()}}function _(e,t,i,s){e.beginPath(),e.arc(t,i,s,0,2*Math.PI,!1),e.closePath()}},49094:(e,t,i)=>{"use strict";i.d(t,{extendAndClipLineSegment:()=>h,getArrowPoints:()=>d,optimalBarWidth:()=>u,optimalCandlestickWidth:()=>p,optimalHiLoWidth:()=>_,interactionTolerance:()=>m,coordinateIsValid:()=>g,setValidLineStyle:()=>f,fillScaledRadius:()=>v,strokeScaledRadius:()=>S});var s=i(86441),r=i(5531),n=i(71413),o=i(80643),a=i(29892);const l={line:13,minDistanceBetweenPoints:10,series:14,curve:10,anchor:13,esd:4},c={line:3,minDistanceBetweenPoints:5,series:2,curve:3,anchor:2, +esd:0};function h(e,t,i,n,o,a){if((0,s.equalPoints)(e,t))return null;const l=new s.Point(0,0),c=new s.Point(i,n);if(o){if(a){const i=(0,r.intersectLineAndBox)((0,s.lineThroughPoints)(e,t),(0,s.box)(l,c));return Array.isArray(i)?i:null}{const i=(0,r.intersectRayAndBox)(t,e,(0,s.box)(l,c));return null===i||(0,s.equalPoints)(t,i)?null:(0,s.lineSegment)(t,i)}}if(a){const i=(0,r.intersectRayAndBox)(e,t,(0,s.box)(l,c));return null===i||(0,s.equalPoints)(e,i)?null:(0,s.lineSegment)(e,i)}{const i=(0,r.intersectLineSegmentAndBox)((0,s.lineSegment)(e,t),(0,s.box)(l,c));return Array.isArray(i)?i:null}}function d(e,t,i,s){const r=.5*i,n=Math.sqrt(2),o=t.subtract(e),a=o.normalized();let l=5*i;s&&(l=Math.min(l,.35*o.length()));const c=1*r;if(l*n*.2<=c)return[];const h=a.scaled(l),d=t.subtract(h),u=a.transposed(),p=1*l,_=u.scaled(p),m=d.add(_),g=d.subtract(_),f=m.subtract(t).normalized().scaled(c),v=g.subtract(t).normalized().scaled(c),S=t.add(f),y=t.add(v),b=r*(n-1),w=u.scaled(b),C=Math.min(l-1*r/n,r*n*1),P=a.scaled(C),T=t.subtract(w),x=t.add(w),I=t.subtract(P);return[[m,S],[g,y],[T,I.subtract(w)],[x,I.add(w)]]}function u(e,t){return t=t||1,Math.floor(.3*e*t)}function p(e,t){if(e>=2.5&&e<=4)return Math.floor(3*t);const i=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),s=Math.floor(e*i*t),r=Math.floor(e*t),n=Math.min(s,r);return Math.max(Math.floor(t),n)}function _(e){return.4*e}function m(){return(0,n.lastMouseOrTouchEventInfo)().isTouch?l:c}function g(e){return null!=e&&!(0,o.isNaN)(e)}function f(e,t){void 0!==t&&(0,a.setLineStyle)(e,t)}function v(e,t){const i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}function S(e,t,i){const s=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+(s!==i%2?.5:0)}},40254:(e,t,i)=>{"use strict";i.d(t,{HorizontalLineRenderer:()=>a});var s=i(84346),r=i(29892),n=i(42759),o=i(49094);class a{constructor(){this._data=null,this._hitTest=new s.HitTestResult(s.HitTestResult.REGULAR)}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data||!1===this._data.visible||null===this._hitTest)return null;const t=(0,o.interactionTolerance)().line,i=Math.abs(e.y-this._data.y)<=t+this._data.linewidth/2,s=void 0===this._data.left||this._data.left-e.x<=t,r=void 0===this._data.right||e.x-this._data.right<=t;return i&&s&&r?this._hitTest:null}draw(e,t){if(null===this._data)return;if(!1===this._data.visible)return;if(this._data.y<-this._data.linewidth/2||this._data.y>t.cssHeight+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&(0,r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.left?Math.max(this._data.left,0):0,o=void 0!==this._data.right?Math.min(this._data.right,t.cssWidth):t.cssWidth,a=Math.round(this._data.y*i),l=Math.floor(s*i),c=Math.ceil(o*i);(0,n.drawHorizontalLine)(e,a,l,c)}}},15712:(e,t,i)=>{"use strict";function s(e,t){return e.pixelRatio===t.pixelRatio}i.d(t,{areEqualPaneRenderParams:()=>s})},49612:(e,t,i)=>{ +"use strict";var s;i.d(t,{LineEnd:()=>s}),function(e){e[e.Normal=0]="Normal",e[e.Arrow=1]="Arrow",e[e.Circle=2]="Circle"}(s||(s={}))},46214:(e,t,i)=>{"use strict";i.d(t,{PaneRendererLine:()=>l});var s=i(86441),r=i(4652),n=i(84346),o=i(29892),a=i(49094);class l{constructor(e){this._data=e}hitTest(e,t){var i,o,l,c;const h=(0,a.interactionTolerance)().series+this._data.lineWidth/2;let d=null!==(o=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==o?o:0,u=(null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:this._data.items.length)-1;for(;u-d>2;){const t=Math.round((u+d)/2);this._data.items[t].x<=e.x?d=t:u=t}d=Math.max(1,d-1),u=Math.min(this._data.items.length-1,u+1);for(let t=d;t<=u;++t){const i=this._data.items[t-1],o=this._data.items[t],a=i.x,l=o.x;if((0,r.distanceToSegment)(new s.Point(a,i.y),new s.Point(l,o.y),new s.Point(e.x,e.y)).distance<=h)return this._data.hittest?this._data.hittest:new n.HitTestResult(n.HitTestResult.REGULAR)}return null}draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.lineCap="square",e.lineJoin="round",e.strokeStyle=this._data.lineColor,e.fillStyle=this._data.lineColor,e.lineWidth=this._data.lineWidth,(0,o.setLineStyle)(e,this._data.lineStyle),(0,a.setValidLineStyle)(e,this._data.lineStyle),this._data.simpleMode?this._drawSimpleMode(e,t.pixelRatio):this._drawLines(e),e.restore()}_drawSimpleMode(e,t){var i,s,r,n;if(e.beginPath(),this._walkLine(e,this._data.items,!1,NaN),e.stroke(),this._data.withMarkers){e.save(),e.scale(1/t,1/t);const o=Math.max(1,Math.floor(t))%2/2,a=(this._data.lineWidth+2)*t+o,l=2*Math.PI;e.beginPath();const c=null!==(s=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0;for(let i=(null!==(n=null===(r=this._data.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:this._data.items.length)-1+1;i-- >=c;){const s=this._data.items[i];if(s){const i=Math.round(s.x*t)+o,r=s.y*t;e.moveTo(i,r),e.arc(i,r,a,0,l)}}e.fill(),e.restore()}}_walkLine(e,t,i,s,r){var n,o,l,c;if(!t)return;const h=.25*this._data.barSpacing;let d,u,p,_,m;const g=a.coordinateIsValid,f=r?0:null!==(o=null===(n=this._data.visibleItemsRange)||void 0===n?void 0:n.startItemIndex)&&void 0!==o?o:0,v=r?t.length-1:Math.min((null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:t.length)-1,t.length-1);for(let e=f;e<=v;e++){const i=t[e];if(g(i.y)){u=i,d=e;break}}if(void 0!==d&&void 0!==u)for(let r=d;r<=v;r++){_=t[r],m=t[r+1]||{};const n=Math.round(_.x);if(g(_.y))if(p&&g(p.y))e.lineTo(n,_.y),i&&!g(m.y)&&e.lineTo(n,s);else if(m&&g(m.y))i?(r!==d&&e.lineTo(n,s),e.lineTo(n,_.y)):e.moveTo(n,_.y);else if(i){if(0===r)continue;r!==d&&e.lineTo(n-h,s),e.lineTo(n-h,_.y),e.lineTo(n+h,_.y),e.lineTo(n+h,s)}else e.moveTo(n-h,_.y),e.lineTo(n+h,_.y);p=_}}_drawLines(e){var t,i,s,r;if(!this._data.items.length)return;let n,o,l;const c=.25*this._data.barSpacing,h=a.coordinateIsValid;e.beginPath() +;const d=null!==(i=null===(t=this._data.visibleItemsRange)||void 0===t?void 0:t.startItemIndex)&&void 0!==i?i:0,u=(null!==(r=null===(s=this._data.visibleItemsRange)||void 0===s?void 0:s.endItemIndex)&&void 0!==r?r:this._data.items.length)-1,p=this._data.items[d];p&&e.moveTo(p.x,p.y);let _,m=e.strokeStyle,g=e.lineWidth;for(let t=d+1;t<=u;++t){let i,s,r;n=this._data.items[t-1],o=this._data.items[t],l=this._data.items[t+1],o.style&&!this._data.forceLineColor?(i=o.style.color,s=o.style.width,r=o.style.style):(i=this._data.lineColor,s=this._data.lineWidth,r=this._data.lineStyle),this._data.ignorePaletteLineWidth&&(s=this._data.lineWidth);(i!==m||s!==g||r!==_)&&(m=i,g=s,_=r,e.stroke(),e.beginPath(),e.strokeStyle=i,e.lineWidth=s,(0,a.setValidLineStyle)(e,r),e.moveTo(n.x,n.y)),f=n,S=l,h((v=o).y)&&(h(f.y)?e.lineTo(v.x,v.y):S&&h(S.y)?e.moveTo(v.x,v.y):(e.moveTo(v.x-c,v.y),e.lineTo(v.x+c,v.y)))}var f,v,S;e.stroke()}}},55776:(e,t,i)=>{"use strict";i.d(t,{RectangleRenderer:()=>d});var s=i(88537),r=i(86441),n=i(34026),o=i(4652),a=i(84346),l=i(68906),c=i(43891),h=i(42759);class d{constructor(e,t,i){this._data=null,this._hitTestResult=e||new a.HitTestResult(a.HitTestResult.MOVEPOINT),this._backHitTestResult=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT_BACKGROUND),this._forceOverrideTransparency=Boolean(i)}setData(e){this._data=e}hitTest(e,t){if(null===this._data||this._data.points.length<2||this._data.nohittest)return null;const[i,s]=this._getPointsInPhysicalSpace(t),n=new r.Point(s.x,i.y),a=new r.Point(i.x,s.y),l=new r.Point(e.x*t.pixelRatio,e.y*t.pixelRatio),c=this._extendAndHitTestLineSegment(l,i,n,t);if(null!==c)return c;const h=this._extendAndHitTestLineSegment(l,a,s,t);if(null!==h)return h;let d=(0,o.distanceToSegment)(n,s,l);return d.distance<=3?this._hitTestResult:(d=(0,o.distanceToSegment)(i,a,l),d.distance<=3?this._hitTestResult:this._data.fillBackground?this._hitTestBackground(l,i,s,t):null)}getColor(){const e=(0,s.ensure)(this._data);return void 0===e.transparency?e.backcolor:(0,l.generateColor)(e.backcolor,e.transparency,this._forceOverrideTransparency)}draw(e,t){if(null===this._data||this._data.points.length<2||this._data.linewidth<=0&&!this._data.fillBackground)return;e.save();const[i,s]=this._getPointsInPhysicalSpace(t),r=this._data.linewidth?Math.max(1,Math.floor(this._data.linewidth*t.pixelRatio)):0,n=this._data.fillBackground?this.getColor():void 0,o=Math.max(1,Math.floor(t.pixelRatio));(0,h.fillRectWithBorder)(e,i.x,i.y,s.x,s.y,n,this._data.color,r,c.LINESTYLE_SOLID,this._data.extendLeft,this._data.extendRight,"center",t.physicalWidth,this._data.includeRightEdge&&1===o?1:0),e.restore()}_getPointsInPhysicalSpace(e,t=0){const i=(0,s.ensureNotNull)(this._data),[n,o]=i.points,a=e.pixelRatio,l=Math.min(n.x,o.x),c=Math.max(n.x,o.x),h=Math.min(n.y,o.y),d=Math.max(n.y,o.y),u=Math.round(l*a)+t,p=Math.round(c*a)+t,_=Math.round(h*a)+t,m=Math.round(d*a)+t;return[new r.Point(u,_),new r.Point(p,m)]}_extendAndHitTestLineSegment(e,t,i,s){const r=this._extendAndClipLineSegment(t,i,s);if(null!==r){if((0, +o.distanceToSegment)(r[0],r[1],e).distance<=3)return this._hitTestResult}return null}_extendAndClipLineSegment(e,t,i){const n=(0,s.ensureNotNull)(this._data);if((0,r.equalPoints)(e,t)&&!n.extendLeft&&!n.extendRight)return null;const o=i.physicalWidth,a=Math.min(e.x,t.x),l=Math.max(e.x,t.x),c=n.extendLeft?0:Math.max(a,0),h=n.extendRight?o:Math.min(l,o);return c>h||h<=0||c>=o?null:[new r.Point(c,e.y),new r.Point(h,t.y)]}_hitTestBackground(e,t,i,s){const o=this._extendAndClipLineSegment(t,i,s);return null!==o&&(0,n.pointInBox)(e,(0,r.box)(o[0],o[1]))?this._backHitTestResult:null}}},16282:(e,t,i)=>{"use strict";i.d(t,{ScaledPaneRenderer:()=>s,ScaledPaneRendererWrapper:()=>r});class s{draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._drawImpl(e,{...t,pixelRatio:1}),e.restore()}drawBackground(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._drawBackgroundImpl(e,{...t,pixelRatio:1}),e.restore()}_drawBackgroundImpl(e,t){}}class r{constructor(e){this._base=e}hitTest(e,t){return this._base.hitTest(e,t)}draw(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._base.draw(e,{...t,pixelRatio:1}),e.restore()}drawBackground(e,t){e.save(),e.scale(t.pixelRatio,t.pixelRatio),e.translate(.5,.5),this._base.drawBackground&&this._base.drawBackground(e,{...t,pixelRatio:1}),e.restore()}}},13632:(e,t,i)=>{"use strict";var s;i.d(t,{StatsPosition:()=>s}),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(s||(s={}))},28113:(e,t,i)=>{"use strict";i.d(t,{StepLineDecoration:()=>s,PaneRendererStepLine:()=>g});var s,r=i(4652),n=i(84346),o=i(86441),a=i(29892),l=i(55257),c=i(49094),h=i(42759),d=i(68906);!function(e){e[e.None=0]="None",e[e.Diamonds=1]="Diamonds"}(s||(s={}));class u{initialize(e,t,i,s){var r,n,o,l;const c=e.lineStyle;t.lineCap="butt",t.lineJoin="round";const h=Math.max(Math.floor(null!==(n=null===(r=s.style)||void 0===r?void 0:r.width)&&void 0!==n?n:e.lineWidth*i.pixelRatio));void 0!==c&&(0,a.setLineStyle)(t,c);const d=h%2?.5:0;t.moveTo(Math.round(s.x*i.pixelRatio)+d,Math.round(s.y*i.pixelRatio)+d),t.strokeStyle=null!==(l=null===(o=s.style)||void 0===o?void 0:o.color)&&void 0!==l?l:e.lineColor,t.lineWidth=h}finishFragment(e){e.stroke()}hitTest(e,t,i,s,n){var a,l;const h=Math.round((i.x+s.x)/2),d=new o.Point(h,i.y),u=new o.Point(h,s.y),p=null!==(l=null===(a=i.style)||void 0===a?void 0:a.width)&&void 0!==l?l:e.lineWidth,_=(0,c.interactionTolerance)().series+p/2;return Math.min((0,r.distanceToSegment)(i,d,n).distance,(0,r.distanceToSegment)(d,u,n).distance,(0,r.distanceToSegment)(u,s,n).distance)<=_}applyColor(e,t){e.strokeStyle=t}applyLineWidth(e,t){e.lineWidth=t}drawItem(e,t,i,s){e.lineTo(i.x,i.y),void 0!==s&&(e.lineTo(s.x,i.y),e.lineTo(s.x,s.y))}}class p{constructor(){this._lineWidth=1}initialize(e,t,i,s){var r,n,o,a;this.applyColor(t,null!==(n=null===(r=s.style)||void 0===r?void 0:r.color)&&void 0!==n?n:e.lineColor), +this._lineWidth=Math.max(Math.floor(null!==(a=null===(o=s.style)||void 0===o?void 0:o.width)&&void 0!==a?a:e.lineWidth*i.pixelRatio))}finishFragment(e){e.fill()}drawItem(e,t,i,s,r){if(r&&void 0!==s&&!Number.isNaN(s.y)){e.save(),e.translate(s.x,s.y),e.rotate(Math.PI/4);const i=this._scaleByLineWidth(this._lineWidth);e.scale(i,i),this._drawItemRotatedAndTranslated(e,t),e.restore()}}applyLineWidth(e,t){this._lineWidth=t}hitTest(e,t,i,s,r){var n,a;if(!s.valIsNotSameAsPrev)return!1;const l=Math.round((i.x+s.x)/2),c=new o.Point(l,s.y),h=r.subtract(c),d=Math.max(Math.floor(null!==(a=null===(n=i.style)||void 0===n?void 0:n.width)&&void 0!==a?a:e.lineWidth*t.pixelRatio));return this._hitTestTranslated(h,d)}_scaleByLineWidth(e){return Math.sqrt(e)}}class _ extends p{applyColor(e,t){e.fillStyle=t}_hitTestTranslated(e,t){return Math.abs(e.x)+Math.abs(e.y)<8*this._scaleByLineWidth(t)/2}_drawItemRotatedAndTranslated(e,t){(0,h.drawRoundRect)(e,-4,-4,8,8,2,!0)}}class m extends p{applyColor(e,t){e.fillStyle=(0,d.applyTransparency)(t,85)}_hitTestTranslated(e,t){return Math.abs(e.x)+Math.abs(e.y)<21*this._scaleByLineWidth(t)/2}_drawItemRotatedAndTranslated(e,t){(0,h.drawRoundRect)(e,-10.5,-10.5,21,21,5,!0)}}class g{constructor(e){this._data=null,this._data=null!=e?e:null}setData(e){this._data=e}hitTest(e,t){var i;const r=this._data;if(null===r||0===r.items.length)return null;const o=r.items,a=(0,l.lowerbound)(o,e,(e,t)=>e.x<=t.x),c=Math.max(0,a-1),h=Math.min(o.length-1,a+1),d=function(e){switch(e){case s.Diamonds:return[new u,new m];default:return[new u]}}(null===(i=this._data)||void 0===i?void 0:i.decoration);for(let i=c;ii.hitTest(r,t,s,a,e)))return new n.HitTestResult(n.HitTestResult.REGULAR)}return null}draw(e,t){if(null===this._data||0===this._data.items.length)return;e.save();(function(e){switch(e){case s.Diamonds:return[new u,new _,new m];default:return[new u]}})(this._data.decoration).forEach(i=>this._drawImpl(e,t,i)),e.restore()}_drawImpl(e,t,i){var s,r,n,a,l,c,h,d,u,p,_,m,g,f,v,S;if(null===this._data||0===this._data.items.length)return;const{lineWidth:y,lineColor:b,items:w}=this._data,C=t.pixelRatio;let P=Math.max(Math.floor(null!==(r=null===(s=w[0].style)||void 0===s?void 0:s.width)&&void 0!==r?r:y*C)),T=P%2?.5:0;i.initialize(this._data,e,t,w[0]);const x=null!==(a=null===(n=this._data.visibleItemsRange)||void 0===n?void 0:n.startItemIndex)&&void 0!==a?a:0,I=null!==(c=null===(l=this._data.visibleItemsRange)||void 0===l?void 0:l.endItemIndex)&&void 0!==c?c:w.length;if(!(I<=x)){e.beginPath(),i.applyColor(e,null!==(d=null===(h=w[x].style)||void 0===h?void 0:h.color)&&void 0!==d?d:b);for(let s=x;s{"use strict";i.d(t,{calculateLabelPosition:()=>p,wordWrap:()=>g,TextRenderer:()=>M});var s=i(86441),r=i(88537),n=i(34026),o=i(62820),a=i(84346),l=i(42759),c=i(29892),h=i(80643),d=i(93435),u=i(43891);function p(e,t,i,r,n){const o=.5*(t.x+i.x);let a=i.y;return t.y>i.y?(a-=e.height/2+r.y,a=Math.max(e.height/2,a)):(a+=e.height/2+r.y,a=Math.min(n-e.height/2,a)),new s.Point(o,a)}let _;function m(){const e=document.createElement("canvas");e.width=0,e.height=0,_=(0,r.ensureNotNull)(e.getContext("2d"))}function g(e,t,i){_||m(),i=(0,h.isString)(i)?parseInt(i):i,e+="";const s=!(0,h.isNumber)(i)||!isFinite(i)||i<=0?e.split(/\r\n|\r|\n|$/):e.split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(s[s.length-1]||s.pop(),!(0,h.isNumber)(i)||!isFinite(i)||i<=0)return s;_.font=t;const r=[];for(let e=0;e0&&_.measureText(o.slice(0,3*--e-1).join("")).width>i;);if(e>0)r.push(o.slice(0,3*e-1).join("")),o.splice(0,3*e);else{const e=o[0]+(o[1]||"");if(a=1===a?1:~~(i/_.measureText(e).width*e.length),_.measureText(e.substring(0,a)).width<=i)for(;_.measureText(e.substring(0,a+1)).width<=i;)a++;else for(;a>1&&_.measureText(e.substring(0,--a)).width>i;);a<1&&(a=1),r.push(e.substring(0,a)),o[0]=e.substring(a),o[1]=""}if(_.measureText(o.join("")).width<=i){r.push(o.join(""));break}}}return r}function f(e,t,i){if(0===i)return e.clone();const r=(e.x-t.x)*Math.cos(i)-(e.y-t.y)*Math.sin(i)+t.x,n=(e.x-t.x)*Math.sin(i)+(e.y-t.y)*Math.cos(i)+t.y;return new s.Point(r,n)}function v(e,t){const i=Math.round(t+2*C(e)+2*b(e));return i%2?i-1:i}function S(e,t){return T(e)*t+P(e)*(t-1)+2*w(e)+2*y(e)}function y(e){return void 0!==e.boxPaddingVert?e.boxPaddingVert*I(e):void 0!==e.boxPadding?e.boxPadding*I(e):T(e)/3}function b(e){return void 0!==e.boxPaddingHorz?e.boxPaddingHorz*I(e):void 0!==e.boxPadding?e.boxPadding*I(e):T(e)/3}function w(e){return(e.backgroundVertInflate||0)*I(e)}function C(e){return(e.backgroundHorzInflate||0)*I(e)}function P(e){return(e.padding||0)*I(e)}function T(e){return Math.ceil(x(e)*I(e))}function x(e){return e.fontsize||e.fontSize||30}function I(e){const t=Math.min(1,Math.max(.2,Math.min(e.scaleX||1,e.scaleY||1)));if(1===t)return t;const i=x(e);return Math.ceil(t*i)/i}class M{constructor(e,t){this._data=null,this._internalData=null, +this._boxSize=null,this._polygonPoints=null,this._linesInfo=null,this._fontInfo=null,this._hittest=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT,{areaName:a.AreaName.Text}),void 0!==e&&this.setData(e)}setData(e){e.horzTextAlign||(e.horzTextAlign=e.horzAlign),function(e,t){if(null===e||null===t)return null===e==(null===t);if(void 0===e.points!=(void 0===t.points))return!1;if(void 0!==e.points&&void 0!==t.points){if(e.points.length!==t.points.length)return!1;for(let r=0;re){const i=(0,s.box)(new s.Point(0,0),new s.Point(e,t));return this._getPolygonPoints().every(e=>!(0,n.pointInBox)(e,i))}return!1}setPoints(e,t){(0,r.ensureNotNull)(this._data).points=e,this._hittest=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT)}fontStyle(e){return null===this._data?"":this._getFontInfo().fontStyle}wordWrap(e,t,i){return g(e,i||this.fontStyle(),t)}draw(e,t){if(null===this._data||void 0===this._data.points||0===this._data.points.length)return;if(this.isOutOfScreen(t.cssWidth,t.cssHeight))return;const i=t.pixelRatio,s=this._getInternalData(),r=this._getRotationPoint().scaled(i);e.save(),e.translate(r.x,r.y),e.rotate(this._data.angle||0),e.translate(-r.x,-r.y);const n=this._getFontInfo().fontSize +;e.textBaseline=s.textBaseLine,e.textAlign=s.textAlign,e.font=this.fontStyle();const{scaledLeft:o,scaledRight:a,scaledTop:h,scaledBottom:p}=function(e,t){const i=Math.round(e.boxLeft*t),s=Math.round(e.boxTop*t);return{scaledLeft:i,scaledRight:i+Math.round(e.boxWidth*t),scaledTop:s,scaledBottom:s+Math.round(e.boxHeight*t)}}(s,i);if(this._data.backgroundColor||this._data.borderColor||this._data.highlightBorder&&this._data.wordWrapWidth){const t=this._data.borderWidth||Math.max(n/12,1),s=Math.round(t*i),r=s/2;let d=!1;if(this._data.boxShadow){e.save();const{shadowColor:t,shadowBlur:i,shadowOffsetX:s=0,shadowOffsetY:r=0}=this._data.boxShadow;e.shadowColor=t,e.shadowBlur=i,e.shadowOffsetX=s,e.shadowOffsetY=r,d=!0}if(this._data.backgroundRoundRect)this._data.backgroundColor&&((0,l.drawRoundRect)(e,o,h,a-o,p-h,this._data.backgroundRoundRect*i),e.fillStyle=this._data.backgroundColor,e.fill(),d&&(e.restore(),d=!1)),this._data.borderColor&&((0,l.drawRoundRect)(e,o-r,h-r,a-o+s,p-h+s,this._data.backgroundRoundRect*i+s),e.strokeStyle=this._data.borderColor,e.lineWidth=s,e.stroke(),d&&(e.restore(),d=!1));else if(this._data.backgroundColor&&(e.fillStyle=this._data.backgroundColor,e.fillRect(o,h,a-o,p-h),d&&(e.restore(),d=!1)),this._data.borderColor||this._data.highlightBorder){let t;this._data.borderColor?(e.strokeStyle=this._data.borderColor,t=s):(e.strokeStyle=this._data.color,(0,c.setLineStyle)(e,u.LINESTYLE_DASHED),t=Math.max(1,Math.floor(i))),e.lineWidth=t,e.beginPath(),e.moveTo(o-t/2,h-t/2),e.lineTo(o-t/2,p+t/2),e.lineTo(a+t/2,p+t/2),e.lineTo(a+t/2,h-t/2),e.lineTo(o-t/2,h-t/2),e.stroke(),d&&e.restore()}}e.fillStyle=this._data.color;const _=(o+Math.round(s.textStart*i))/i,m=.05*n;let g=(h+Math.round((s.textTop+m)*i))/i;const f=P(this._data),v=this._getLinesInfo();for(const t of v.lines)(0,d.drawScaled)(e,i,()=>e.fillText(t,_,g)),g+=n+f;e.restore()}_getLinesMaxWidth(e){if(_||m(),_.textBaseline="alphabetic",_.font=this.fontStyle(),null!==this._data&&this._data.wordWrapWidth&&!this._data.forceCalculateMaxLineWidth)return this._data.wordWrapWidth*I(this._data);let t=0;for(const i of e)t=Math.max(t,_.measureText(i).width);return t}_getInternalData(){if(null!==this._internalData)return this._internalData;const e=(0,r.ensureNotNull)(this._data),t=this._getBoxSize(),i=t.boxWidth,s=t.boxHeight,n=(0,r.ensureDefined)(e.points)[0];let a=n.y;switch(e.vertAlign){case"bottom":a-=s+e.offsetY;break;case"middle":a-=s/2;break;case"top":a+=e.offsetY}let l=n.x;const c=b(e),h=y(e),d=C(e)+c;let u;const p=a+(w(e)+h)+T(e)/2;let _;switch(e.horzAlign){case"left":l+=e.offsetX;break;case"center":l-=i/2;break;case"right":l-=i+e.offsetX}switch((0,r.ensureDefined)(e.horzTextAlign)){case"left":_="start",u=l+d,(0,o.isRtl)()&&(e.forceTextAlign?_="left":(u=l+i-d,_="right"));break;case"center":_="center",u=l+i/2;break;case"right":_="end",u=l+i-d,(0,o.isRtl)()&&e.forceTextAlign&&(_="right")}return this._internalData={boxLeft:l,boxTop:a,boxWidth:i,boxHeight:s,textStart:u-l,textTop:p-a,textAlign:_,textBaseLine:"middle"},this._internalData}_getLinesInfo(){ +if(null===this._linesInfo){const e=(0,r.ensureNotNull)(this._data);let t=this.wordWrap(e.text,e.wordWrapWidth);if(void 0!==e.maxHeight){const i=function(e){const t=(0,r.ensureDefined)(e.maxHeight),i=T(e),s=P(e);return Math.floor((t+s)/(i+s))}(e);t.length>i&&(t=t.slice(0,i))}this._linesInfo={linesMaxWidth:this._getLinesMaxWidth(t),lines:t}}return this._linesInfo}_getFontInfo(){if(null===this._fontInfo){const e=(0,r.ensureNotNull)(this._data),t=T(e),i=(e.bold?"bold ":"")+(e.italic?"italic ":"")+t+"px "+e.font;this._fontInfo={fontStyle:i,fontSize:t}}return this._fontInfo}_getBoxSize(){if(null===this._boxSize){const e=this._getLinesInfo(),t=(0,r.ensureNotNull)(this._data);this._boxSize={boxWidth:v(t,e.linesMaxWidth),boxHeight:S(t,e.lines.length)}}return this._boxSize}_getPolygonPoints(){if(null!==this._polygonPoints)return this._polygonPoints;if(null===this._data)return[];const e=this._data.angle||0,{boxLeft:t,boxTop:i,boxWidth:r,boxHeight:n}=this._getInternalData(),o=this._getRotationPoint();return this._polygonPoints=[f(new s.Point(t,i),o,e),f(new s.Point(t+r,i),o,e),f(new s.Point(t+r,i+n),o,e),f(new s.Point(t,i+n),o,e)],this._polygonPoints}_getRotationPoint(){const{boxLeft:e,boxTop:t,boxWidth:i,boxHeight:n}=this._getInternalData(),{horzAlign:o,vertAlign:a}=(0,r.ensureNotNull)(this._data);let l,c;switch(o){case"center":l=e+i/2;break;case"left":l=e;break;case"right":l=e+i}switch(a){case"middle":c=t+n/2;break;case"top":c=t;break;case"bottom":c=t+n}return new s.Point(l,c)}}},63300:(e,t,i)=>{"use strict";i.d(t,{drawArrow:()=>d,TrendLineRenderer:()=>u});var s=i(88537),r=i(4652),n=i(49612),o=i(84346),a=i(29892),l=i(49094),c=i(42759);function h(e,t,i,s,r){t.save(),t.fillStyle="#000000",t.beginPath(),t.arc(e.x*r,e.y*r,i*r,0,2*Math.PI,!1),t.fill(),s.strokeWidth&&(t.lineWidth=s.strokeWidth,t.stroke()),t.restore()}function d(e,t,i,s,r,n=!1){if(t.subtract(e).length()<1)return;const o=(0,l.getArrowPoints)(e,t,s,n);for(let e=0;e0&&(l[0].x===l[1].x?(0,c.drawVerticalLine)(e,Math.round(l[0].x*s),l[0].y*s,l[1].y*s):l[0].y===l[1].y?(0,c.drawHorizontalLine)(e,Math.round(l[0].y*s),l[0].x*s,l[1].x*s):(0,a.drawLine)(e,l[0].x*s,l[0].y*s,l[1].x*s,l[1].y*s)),i.overlayLineEndings&&this._drawEnds(e,o,i.linewidth,s)}hitTest(e,t){const i=this._data;if(null===i)return null;if("points"in i&&i.points.length<2)return null;const s=(0, +l.interactionTolerance)().line,n=i.points[0],o=i.points[1],a=this._extendAndClipLineSegment(n,o,t);if(null!==a){if((0,r.distanceToSegment)(a[0],a[1],e).distance<=s)return this._hittest}return null}_extendAndClipLineSegment(e,t,i){const r=(0,s.ensureNotNull)(this._data);return(0,l.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)}_drawEnds(e,t,i,r){const o=t[0],a=t[1],l=(0,s.ensureNotNull)(this._data);switch(l.leftend){case n.LineEnd.Arrow:d(a,o,e,i,r);break;case n.LineEnd.Circle:h(o,e,i,(0,s.ensureDefined)(l.endstyle),r)}switch(l.rightend){case n.LineEnd.Arrow:d(o,a,e,i,r);break;case n.LineEnd.Circle:h(a,e,i,(0,s.ensureDefined)(l.endstyle),r)}}}},44349:(e,t,i)=>{"use strict";i.d(t,{VerticalLineRenderer:()=>a});var s=i(84346),r=i(29892),n=i(42759),o=i(49094);class a{constructor(){this._data=null,this._hitTest=new s.HitTestResult(s.HitTestResult.MOVEPOINT)}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data||null===this._hitTest)return null;const t=(0,o.interactionTolerance)().line,i=Math.abs(e.x-this._data.x)<=t+this._data.linewidth/2,s=void 0===this._data.top||this._data.top-e.y<=t,r=void 0===this._data.bottom||e.y-this._data.bottom<=t;return i&&s&&r?this._hitTest:null}draw(e,t){if(null===this._data)return;if(this._data.linewidth<=0)return;if(this._data.x<-this._data.linewidth/2||this._data.x>t.cssWidth+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&(0,r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.top?Math.max(this._data.top,0):0,o=void 0!==this._data.bottom?Math.min(this._data.bottom,t.cssHeight):t.cssHeight,a=Math.round(this._data.x*i),l=Math.floor(s*i),c=Math.ceil(o*i);(0,n.drawVerticalLine)(e,a,l,c)}}},59555:(e,t,i)=>{"use strict";i.d(t,{sortSourcesPreOrdered:()=>s,sortSources:()=>r});const s={ChartEventsSource:10000001,Dividends:10000002,Splits:10000003,Earnings:10000004,RollDates:10000005,LineToolOrder:10000006,LineToolPosition:10000007,LineToolExecution:10000008,AlertLabel:10000009};function r(e){return[...e].sort((e,t)=>e.zorder()-t.zorder())}},71053:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PlotRowSearchMode:()=>a,PlotList:()=>h,mergeMinMax:()=>d,mergePlotRows:()=>u});var s=i(88537),r=i(55257),n=i(2271);const o=(0,i(98125).getLogger)("Chart.PlotList");var a;!function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.Exact=0]="Exact",e[e.NearestRight=1]="NearestRight"}(a||(a={}));function l(e){return e.index}function c(e){return e.value[0]}class h{constructor(e=null,t=null){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache=new Map,this._rowSearchCacheByIndex=new Map,this._rowSearchCacheByIndexWithoutEmptyValues=new Map,this._rowSearchCacheByTime=new Map,this._rowSearchCacheByTimeWithoutEmptyValues=new Map,this._plotFunctions=e||new Map,this._emptyValuePredicate=t}clear(){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache.clear(), +this._invalidateSearchCaches()}first(){return this.size()>0?this._items[this._start]:null}last(){return this.size()>0?this._items[this._end-1]:null}firstIndex(){return this.size()>0?this._indexAt(this._start):null}lastIndex(){return this.size()>0?this._indexAt(this._end-1):null}size(){return this._end-this._start}isEmpty(){return 0===this.size()}contains(e){return null!==this.search(e,a.Exact)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}add(e,t){if(this._shareRead)return o.logDebug("add: readonly collection modification attempt"),!1;const i={index:e,value:t},s=this._nonCachedSearch(e,a.Exact,l);return this._invalidateSearchCaches(),null===s?(this._items.splice(this._lowerbound(e,l),0,i),this._start=0,this._end=this._items.length,!0):(this._items[s]=i,!1)}search(e,t=a.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByIndex,this._rowSearchCacheByIndexWithoutEmptyValues,l,i)}searchByTime(e,t=a.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByTime,this._rowSearchCacheByTimeWithoutEmptyValues,c,i)}fold(e,t){let i=t;for(let t=this._start;t=i;--t){const i=this._indexAt(t),s=this._valueAt(t);if(e(i,s))return{index:i,value:s}}return null}each(e){for(let t=this._start;t!1,next:()=>{throw new Error("Invalid operation")}};let r=i-1;return{hasNext:()=>r(r+=1,this._items[r])}}minMaxOnRangeCached(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRangeCachedImpl(e-r.offset,t-r.offset,r.name))}return s}minMaxOnRange(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRange(e-r.offset,t-r.offset,r.name))}return s}merge(e){return this._shareRead?(o.logDebug("merge: readonly collection modification attempt"),null):0===e.length?null:this.isEmpty()||e[e.length-1].indexthis._items[this._items.length-1].index?this._append(e):1===e.length&&e[0].index===this._items[this._items.length-1].index?(this._updateLast(e[0]),e[0]):this._merge(e)}addTail(e,t=!1){let i=0;t&&this._end-this._start>0&&(i=1,this._items[this._end-this._start-1].value=e[0].value);for(let t=i;tvoid 0!==e).sort((e,t)=>e.index-t.index),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._start=0,this._end=this._items.length}remove(e){if(this._shareRead)return o.logDebug("remove: readonly collection modification attempt"),null;const t=this._nonCachedSearch(e,a.NearestRight,l);if(null===t)return null;const i=this._items.splice(t);return this._end=this._items.length,this._minMaxCache.clear(),this._invalidateSearchCaches(),i.length>0?i[0]:null}state(){return{start:this._start,end:this._end,data:this._items,shareread:this._shareRead}}restoreState(e){e?(this._start=e.start,this._end=e.end,this._shareRead=e.shareread,this._items=e.data,this._minMaxCache.clear(),this._invalidateSearchCaches()):this.clear()}_indexAt(e){return this._items[e].index}_valueAt(e){return this._items[e].value}_length(){return this._items.length}_searchImpl(e,t,i,s,r,n){const o=void 0!==n?i:s,a=void 0!==n?1e4*(t+1)+n:t;let l=o.get(e);if(void 0!==l){const e=l.get(a);if(void 0!==e)return e}const c=this._nonCachedSearch(e,t,r,n);if(null===c)return null;const h={index:this._indexAt(c),value:this._valueAt(c)};return void 0===l&&(l=new Map,o.set(e,l)),l.set(a,h),h}_nonCachedSearch(e,t,i,s){const r=this._lowerbound(e,i),n=r===this._end||e!==i(this._items[r]);if(n&&t!==a.Exact)switch(t){case a.NearestLeft:return this._searchNearestLeft(r,s);case a.NearestRight:return this._searchNearestRight(r,s);default:throw new TypeError("Unknown search mode")}if(void 0===s||n||t===a.Exact)return n?null:r;switch(t){case a.NearestLeft:return this._nonEmptyNearestLeft(r,s);case a.NearestRight:return this._nonEmptyNearestRight(r,s);default:throw new TypeError("Unknown search mode")}}_nonEmptyNearestRight(e,t){const i=(0,s.ensure)(this._emptyValuePredicate),r=(0,s.ensure)(t);for(;e=this._start&&i(this._valueAt(e),r);)e-=1;return et(e)t.index>e,this._start,this._end)} +_plotMinMax(e,t,i){let s=null;const r=this._plotFunctions.get(i);if(void 0===r)throw new Error(`Plot "${i}" is not registered`);for(let i=e;is.max&&(s.max=e)))}return s}_invalidateCacheForRow(e){const t=Math.floor(e.index/30);this._minMaxCache.forEach(e=>e.delete(t))}_prepend(e){return(0,s.assert)(!this._shareRead,"collection should not be readonly"),(0,s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=e.concat(this._items),this._start=0,this._end=this._items.length,e[0]}_append(e){return(0,s.assert)(!this._shareRead,"collection should not be readonly"),(0,s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=this._items.concat(e),this._start=0,this._end=this._items.length,e[0]}_updateLast(e){(0,s.assert)(!this.isEmpty(),"plot list should not be empty");const t=this._items[this._end-1];(0,s.assert)(t.index===e.index,"last row index should match new row index"),this._invalidateCacheForRow(e),this._invalidateSearchCaches(),this._items[this._end-1]=e}_merge(e){return(0,s.assert)(0!==e.length,"plot rows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=u(this._items,e),this._start=0,this._end=this._items.length,e[0]}_minMaxOnRangeCachedImpl(e,t,i){if(this.isEmpty())return null;let r=null;const n=(0,s.ensureNotNull)(this.firstIndex()),o=(0,s.ensureNotNull)(this.lastIndex()),a=Math.max(e,n),l=Math.min(t,o),c=30*Math.ceil(a/30),h=Math.max(c,30*Math.floor(l/30));r=d(r,this._minMaxOnRange(a,Math.min(c,t,l),i));let u=this._minMaxCache.get(i);void 0===u&&(u=new Map,this._minMaxCache.set(i,u));for(let e=Math.max(c+1,a);et[o].index?o++:(n++,o++,r--);return r}(e,t),s=new Array(i);let r=0,n=0;const o=e.length,a=t.length;let l=0;for(;rt[n].index?(s[l]=t[n],n++):(s[l]=t[n],r++,n++),l++;for(;r{"use strict";i.d(t,{PriceAxisView:()=>p});var s=i(86441),r=i(34026),n=i(71413),o=i(68906),a=i(62820),l=i(93435),c=i(84346),h=i(42759),d=i(56589);class u{constructor(e,t){this.setData(e,t)}setData(e,t){ +this._data=e,this._commonData=t}draw(e,t,i,s,r,n,c){var d,u,p;const _=this._data;if(!_.visible||this._isOutOfScreen(t,r))return;const m=this._commonData,g=void 0!==_.labelIcon,f=_.ignoreOffset?0:t.offsetSize,v=t.borderSize,S=t.paddingTop+m.additionalPaddingTop,y=t.paddingBottom+m.additionalPaddingBottom,b=t.paddingInner,w=t.paddingOuter,C=t.fontSize;let P=_.text,T=_.textColor||m.textColor,x=_.secondLine||"",I=m.secondLineTextColor||T,M=_.thirdLine||"";const L=m.thirdLineTextColor||T;0===x.length&&(x=M,I=L,M=""),0===P.length&&(P=x,T=I,x=M,I=L,M=""),e.save(),e.font=t.font;const A=i.yMidCorrection(e,P)*c,E=Math.ceil(i.measureText(e,P)),k=C+S+y,D=Boolean(x),V=Boolean(M),B=D?Math.ceil(i.measureText(e,x)):0,N=V?Math.ceil(i.measureText(e,M)):0,R=v+b+w+E+f,O=B>0?v+b+w+B+f:0,F=N>0?v+b+w+N+f:0,W=Math.max(R,O,F),H=Math.max(1,Math.floor(c));let z=Math.round(k*c);z%2!=H%2&&(z+=1);const U=Math.round((C+t.lineSpacing)*c),j=Math.round(2*(C+t.lineSpacing)*c),G=Math.max(1,Math.floor(v*c)),q=_.separatorVisible?G:0,Y=_.borderVisible?G:0,K=g?z:Math.round(W*c),$=Math.round(f*c),X=Math.ceil(s*c),Z=Math.ceil(b*c),J=Math.round((null!==(d=m.fixedCoordinate)&&void 0!==d?d:m.coordinate)*c)-Math.floor(.5*c),Q=Math.floor(J+H/2-z/2),ee=Q+z,te="right"===n,ie=te?X-q:q,se=X;let re,ne=ie;const oe=(0,o.resetTransparency)(null!==(u=_.backgroung)&&void 0!==u?u:m.background);e.fillStyle=oe;const ae=2*c;if(e.textAlign=te?"right":"left",e.textBaseline="middle",te?(ne=ie-K,re=ie-$-Z-1):(ne=ie+K,re=ie+$+Z),P||g){const i=V?z+j:D?z+U:z;if(((t,s,r)=>{te?(0,h.drawRoundRectWithInnerBorder)(e,ne,Q,K,i,t,[ae,0,0,ae],Y,s,r):(0,h.drawRoundRectWithInnerBorder)(e,ie,Q,K,i,t,[0,ae,ae,0],Y,s,r)})(oe,null!==(p=m.borderColor)&&void 0!==p?p:oe,m.borderStyle),_.separatorVisible&&(e.fillStyle=t.paneBackgroundColor,e.fillRect(te?se-q:0,Q,q,ee-Q)),g){switch(_.labelIcon){case 0:this._drawPlusIcon(e,ie,ne,Q,J,ee,H);break;case 1:this._drawClockIcon(e,ie,ne,J,H,c)}return void e.restore()}e.save(),e.translate(re,(Q+ee)/2+A),(0,l.drawScaled)(e,c,()=>{e.fillStyle=T,e.fillText(P,0,0)}),e.restore()}D&&(e.fillStyle=I,e.save(),e.translate(re,(Q+ee)/2+A+U),(0,l.drawScaled)(e,c,()=>{e.fillText((0,a.startWithLTR)(x),0,0)}),e.restore()),V&&(e.fillStyle=L,e.save(),e.translate(re,(Q+ee)/2+A+j),(0,l.drawScaled)(e,c,()=>{e.fillText((0,a.startWithLTR)(M),0,0)}),e.restore()),e.restore()}height(e){const t=this._lines();return this._data.visible&&0!==t?t*e.fontSize+(t-1)*e.lineSpacing+e.paddingTop+this._commonData.additionalPaddingTop+e.paddingBottom+this._commonData.additionalPaddingBottom:0}hitTest(e){const t=this._data.hitTestData;if(void 0===t||!this._data.visible)return null;const i=(0,n.lastMouseOrTouchEventInfo)().isTouch?10:0,o=(0,s.box)(new s.Point(t.xl-i,t.y-i),new s.Point(t.xl+t.containerWidth+i,t.y+t.containerHeight+i)),a=t.left&&(0,r.pointInBox)(e,o),l=(0,s.box)(new s.Point(t.xr-i,t.y-i),new s.Point(t.xr+t.containerWidth+i,t.y+t.containerHeight+i)),h=t.right&&(0,r.pointInBox)(e,l);if(a||h){const i=a?"left":"right";return new c.HitTestResult(c.HitTestResult.CUSTOM,{ +cursorType:d.PaneCursorType.Default,clickHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tapHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tooltip:t.tooltip})}return null}_drawPlusIcon(e,t,i,s,r,n,o){e.fillStyle=this._commonData.textColor,e.strokeStyle=this._commonData.textColor,e.lineWidth=o;const a=Math.abs(t-i);let l=Math.round(.35*a);l%2!=o%2&&(l+=1);let c=Math.round(.65*a);c%2!=o%2&&(c+=1);const h=Math.floor((a-l)/2),d=Math.min(t,i),u=d+Math.floor(a/2-o/2);e.fillRect(d+h,r,l,o),e.fillRect(u,s+h,o,l),e.beginPath(),e.arc(u+o/2,r+o/2,c/2,0,2*Math.PI,!1),e.stroke()}_drawClockIcon(e,t,i,s,r,n){e.fillStyle=this._commonData.textColor,e.lineWidth=r;const o=Math.abs(t-i);let a=Math.round(.35*o);a%2!=r%2&&(a+=1);let l=Math.round(.65*o);l%2!=r%2&&(l+=1);const c=Math.min(t,i)+Math.floor(o/2-r/2);e.save(),e.translate(c+r/2-l/2,s+r/2-l/2),e.scale(n,n);const h=new Path2D("M7.5 0.8a1 1 0 0 0 0 13.4 1 1 0 0 0 0-13.4zm0 1a1 1 0 0 1 0 11 1 1 0 0 1 0-11zm-.97-.25A3.5 3.5 0 0 0 3.5 0 3.5 3.5 0 0 0 0 3.5a3.5 3.5 0 0 0 1.75 3.03l.5-.86A2.5 2.5 0 0 1 1 3.5 2.5 2.5 0 0 1 3.5 1a2.5 2.5 0 0 1 2.17 1.25zm6.72 4.78A3.5 3.5 0 0 0 15 3.5 3.5 3.5 0 0 0 11.5 0a3.5 3.5 0 0 0-3.03 1.75l.86.5A2.5 2.5 0 0 1 11.5 1 2.5 2.5 0 0 1 14 3.5a2.5 2.5 0 0 1-1.25 2.17zM7 5h1v5H7zm3 2v1H5V7z");e.fill(h),e.restore()}_lines(){const e=this._data;return(e.text?1:0)+(e.secondLine?1:0)+(e.thirdLine?1:0)}_isOutOfScreen(e,t){var i;const s=this._commonData,r=null!==(i=s.fixedCoordinate)&&void 0!==i?i:s.coordinate,n=this.height(e),o=n/this._lines();return r-o/2-3>t||r+(n-o/2)+3<0}}class p{constructor(e){this._commonRendererData={coordinate:0,textColor:"#FFF",background:"#000",additionalPaddingBottom:0,additionalPaddingTop:0},this._axisRendererData={text:"",visible:!1,separatorVisible:!1,borderVisible:!1,ignoreOffset:!1},this._paneRendererData={text:"",visible:!1,separatorVisible:!0,borderVisible:!1,ignoreOffset:!0},this._invalidated=!0,this._axisRenderer=new(e||u)(this._axisRendererData,this._commonRendererData),this._paneRenderer=new(e||u)(this._paneRendererData,this._commonRendererData)}text(){return this._updateRendererDataIfNeeded(),this._axisRendererData.text}secondLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.secondLine}thirdLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.thirdLine}background(){return this._updateRendererDataIfNeeded(),this._commonRendererData.background}color(){return this._updateRendererDataIfNeeded(),this.generateTextColor(this.background())}generateTextColor(e){return(0,o.colorFromBackground)(e)}coordinate(){return this._updateRendererDataIfNeeded(),this._commonRendererData.coordinate}floatCoordinate(){var e;return this._updateRendererDataIfNeeded(),null!==(e=this._commonRendererData.floatCoordinate)&&void 0!==e?e:this._commonRendererData.coordinate}update(e){this._invalidated=!0}height(e){return this._updateRendererDataIfNeeded(),Math.max(this._axisRenderer.height(e),this._paneRenderer.height(e))}getFixedCoordinate(){ +return this._commonRendererData.fixedCoordinate||0}setFixedCoordinate(e){this._commonRendererData.fixedCoordinate=e}isVisible(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible||this._paneRendererData.visible}isAxisLabelVisible(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible}isPaneLabelVisible(){return this._updateRendererDataIfNeeded(),this._paneRendererData.visible}renderer(){return this._updateRendererDataIfNeeded(),this._axisRenderer}paneRenderer(){return this._updateRendererDataIfNeeded(),this._paneRenderer}setPaneRendererLabelIcon(e){this._paneRendererData.labelIcon=e}setPaneLabelVisible(e){this._paneRendererData.visible=e,this._invalidated=!0}ignoreAlignment(){return!1}_updateRendererDataIfNeeded(){this._invalidated&&(this._commonRendererData.fixedCoordinate=void 0,this._updateRendererData(this._axisRendererData,this._paneRendererData,this._commonRendererData),this._invalidated=!1)}}},22932:(e,t,i)=>{"use strict";i.d(t,{isPriceDataSource:()=>a,PriceDataSource:()=>l});var s=i(62443),r=i(2872),n=i.n(r),o=i(79680);function a(e){return e instanceof l}class l extends s.DataSource{constructor(e,t){super(t),this._formatterChanged=new(n()),this._priceStepChanged=new(n()),this._currencyChanged=new(n()),this._unitChanged=new(n()),this._priceRangeReadyChanged=new(n()),this._priceStep=null,this._priceRangeReady=!0,this._model=e}barColorer(){return null}base(){return 0}model(){return this._model}currencyChanged(){return this._currencyChanged}isCurrencySource(){return!0}unitChanged(){return this._unitChanged}isUnitSource(){return!0}priceRange(e,t){return null}isDraggable(){return!0}priceLineColor(e){return e}formatterChanged(){return this._formatterChanged}priceStep(e){return this._priceStep}priceStepChanged(){return this._priceStepChanged}isIncludedInAutoScale(){return!0}correctScaleMargins(e){return e}priceRangeReady(){return this._priceRangeReady}priceRangeReadyChanged(){return this._priceRangeReadyChanged}disablePriceRangeReady(){const e=this.priceScale();null===e||e.isAutoScale()||e.mainSource()!==this||(this._priceRangeReady=!1,e.recalculatePriceRangeOnce()),this._priceRangeReadyChanged.fire(!1)}statusView(){return null}legendView(){return null}marketStatusModel(){return null}dataUpdatedModeModel(){return null}dataProblemModel(){return null}_enablePriceRangeReady(){this._priceRangeReady=!0,this._priceRangeReadyChanged.fire(!0)}_onSourceCurrencyChanged(){(0,o.isActingAsSymbolSource)(this)||this._currencyChanged.fire()}_onSourceUnitChanged(){(0,o.isActingAsSymbolSource)(this)||this._unitChanged.fire()}_onSourcePriceRangeReadyChanged(e){(0,o.isActingAsSymbolSource)(this)||e||this.disablePriceRangeReady()}}},55057:(e,t,i)=>{"use strict";i.d(t,{PriceLineAxisView:()=>c,SeriesPriceLineAxisView:()=>h,StudyPriceLineAxisView:()=>d});var s=i(97938),r=i(88537),n=i(29892),o=i(43891),a=i(42759);class l{constructor(e,t){this.setData(e,t)}setData(e,t){this._data=e,this._commonData=t}draw(e,t,i,s,l,c,h){var d;if(!this._data.visible)return +;const u=null!==(d=this._commonData.fixedCoordinate)&&void 0!==d?d:this._commonData.coordinate;e.lineWidth=Math.max(1,Math.floor((0,r.ensureDefined)(this._data.linewidth)*h)),e.lineCap="butt",(0,n.setLineStyle)(e,void 0===this._data.linestyle?o.LINESTYLE_DOTTED:this._data.linestyle),e.strokeStyle=this._commonData.textColor,(0,a.drawHorizontalLine)(e,Math.round(u*h),0,Math.ceil(s*h))}height(e){return 0}}class c extends s.PriceAxisView{constructor(e){super(e||l)}ignoreAlignment(){return!0}_updateRendererData(e,t,i){if(t.visible=!1,e.visible=!1,!this._isVisible())return;const s=this._value();s.noData||(i.background="",i.textColor=this._priceLineColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate,e.linewidth=this._lineWidth(),e.linestyle=this._lineStyle(),e.backgroundAreaVisible=this._backgroundAreaVisible(),e.backgroundAreaColor=this._backgroundAreaColor(),e.backgroundAreaHeight=this._backgroundAreaHeight(),e.visible=!0)}_lineStyle(){return o.LINESTYLE_DOTTED}_backgroundAreaVisible(){return!1}_backgroundAreaColor(){return""}_backgroundAreaHeight(){return 0}}class h extends c{constructor(e){super(),this._series=e}_value(){return this._series.lastValueData(void 0,!0)}_priceLineColor(e){return this._series.priceLineColor(e)}_lineWidth(){return this._series.properties().childs().priceLineWidth.value()}_isVisible(){const e=this._series.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value();return this._series.properties().childs().showPriceLine.value()&&e}}class d extends c{constructor(e,t){super(),this._study=e,this._plotname=t}_value(){return this._study.lastValueData(this._plotname,!0)}_lineWidth(){return this._study.properties().styles[this._plotname].linewidth.value()}_lineStyle(){return o.LINESTYLE_DOTTED}_priceLineColor(e){return e}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showStudyLastValue.value();return this._study.properties().styles[this._plotname].trackPrice.value()&&e}}},27402:(e,t,i)=>{"use strict";i.d(t,{PriceScaleBase:()=>L});var s=i(88537),r=i(80643),n=i(2872),o=i.n(n),a=i(55257),l=i(69927),c=i(74477),h=i(56972),d=i(22932),u=i(2015),p=i.n(u),_=i(81851),m=i(79680),g=i(37667),f=i(79222),v=i(59555),S=i(64514);class y{constructor(e,t){if(this._base=e,this._integralDividers=t,(0,S.isBaseDecimal)(this._base))this._fractionalDividers=[2,2.5,2];else{this._fractionalDividers=[];for(let e=this._base;1!==e;){if(e%2==0)this._fractionalDividers.push(2),e/=2;else{if(e%5!=0)throw new Error("unexpected base");this._fractionalDividers.push(2),this._fractionalDividers.push(2.5),e/=5}if(this._fractionalDividers.length>100)throw new Error("something wrong with base")}}}tickSpan(e,t,i){const s=0===this._base?0:1/this._base;let r=Math.pow(10,Math.max(0,Math.ceil((0,S.log10)(e-t)))),n=0,o=this._integralDividers[0];for(;;){const e=(0,S.greaterOrEqual)(r,s,1e-14)&&r>s+1e-14,t=(0,S.greaterOrEqual)(r,i*o,1e-14),a=(0,S.greaterOrEqual)(r,1,1e-14);if(!(e&&t&&a))break;r/=o,o=this._integralDividers[++n%this._integralDividers.length]} +if(r<=s+1e-14&&(r=s),r=Math.max(1,r),this._fractionalDividers.length>0&&(0,S.equal)(r,1,1e-14))for(n=0,o=this._fractionalDividers[0];(0,S.greaterOrEqual)(r,i*o,1e-14)&&r>s+1e-14;)r/=o,o=this._fractionalDividers[++n%this._fractionalDividers.length];return r}}class b{constructor(e,t,i,s){this._marks=null,this._priceScale=e,this._base=t,this._coordinateToLogicalFunc=i,this._logicalToCoordinateFunc=s}base(){return this._base}setBase(e){if(e<0)throw new Error("base < 0");this._base=e}tickSpan(e,t,i=0){if(ei&&(l=c);const h=o.tickSpan(e,t,r);h>i&&(l=Math.min(l,h));const d=a.tickSpan(e,t,r);return d>i&&(l=Math.min(l,d)),l>0?l:e-t}rebuildTickMarks(){this._marks=null}marks(){return null===this._marks&&(this._marks=this._rebuildTickMarksImpl()),this._marks}_fontHeight(){return this._priceScale.fontSize()}_tickMarkHeight(){return Math.ceil(2.5*this._fontHeight())}_rebuildTickMarksImpl(){const e=this._priceScale,t=[],i=e.mainSource();if(e.isEmpty()||null===i)return t;let s=i.firstValue();null===s&&(s=0);const r=e.height(),n=this._coordinateToLogicalFunc(r-1,s),o=this._coordinateToLogicalFunc(0,s),a=Math.max(n,o),l=Math.min(n,o);if(a===l)return t;let c=this.tickSpan(a,l),h=a%c;h+=h<0?c:0;const d=a>=l?1:-1;let u=null;const p=e.formatter();let _=NaN;for(let i=a-h;i>l;i-=c){i===_&&(c=this.tickSpan(a,l,c)),_=i;const r=this._logicalToCoordinateFunc(i,s);null!==u&&Math.abs(r-u)t!==e&&(0,d.isPriceDataSource)(t)&&!((0,_.isStudy)(t)&&t.isLinkedToSeries()))}updateAllViews(e){const t=this._getSourcesToUpdateViews();for(const i of t)i.updateAllViews(e)}logFormula(){return this._logFormula}state(){var e;const t=this._properties.childs();return{id:this._id,m_priceRange:(null===(e=this.priceRange())||void 0===e?void 0:e.serialize())||null,m_isAutoScale:this.isAutoScale(),m_isPercentage:t.percentage.value(),m_isIndexedTo100:t.indexedTo100.value(),m_isLog:t.log.value(),m_isLockScale:this.isLockScale(),m_isInverted:this.isInverted(),m_height:this.m_height,m_topMargin:this._margins.top,m_bottomMargin:this._margins.bottom,alignLabels:t.alignLabels.value(),logFormula:(0,r.clone)(this._logFormula)}}restoreState(e){let t=e.m_priceRange;if(void 0===t)throw new TypeError("invalid state");if(void 0===e.m_isAutoScale)throw new TypeError("invalid state");void 0!==e.id&&(this._id=e.id);const i={autoScale:e.m_isAutoScale} +;void 0!==e.m_isPercentage&&(i.percentage=e.m_isPercentage),void 0!==e.m_isIndexedTo100&&(i.indexedTo100=e.m_isIndexedTo100),void 0!==e.m_isLog&&(i.log=e.m_isLog),void 0!==e.m_isLockScale&&(i.lockScale=e.m_isLockScale),void 0!==e.m_isInverted&&this._properties.childs().isInverted.setValue(e.m_isInverted),void 0!==e.m_height&&this.setHeight(Math.max(0,e.m_height)),this.setMode(i),t?(t instanceof l.PriceRange||(t=new l.PriceRange(t)),this.setPriceRange(t,!0)):this.m_priceRange=null,e.logFormula&&(this._logFormula=e.logFormula),void 0!==e.m_topMargin&&(this._margins.top=e.m_topMargin),void 0!==e.m_bottomMargin&&(this._margins.bottom=e.m_bottomMargin),void 0!==e.alignLabels&&this._properties.childs().alignLabels.setValue(e.alignLabels),this._mainSource=null,this._scaleSeriesOnly=!1}priceToLogical(e){return this.isLog()&&e?(0,c.toLog)(e,this._logFormula):e}logicalToPrice(e){return this.isLog()?(0,c.fromLog)(e,this._logFormula):e}priceToCoordinate(e,t){const i=this._priceToPercentOrIndexedTo100IfNeeded(e,t);return this._logicalToCoordinate(i)}coordinateToPrice(e,t){let i=this._coordinateToLogical(e);return this.isPercentage()?i=(0,c.fromPercent)(i,t):this.isIndexedTo100()&&(i=(0,c.fromIndexedTo100)(i,t)),i}mainSource(){if(null!==this._mainSource)return this._mainSource;let e;for(const t of this.m_dataSources){if(t instanceof h.Series){e=t;break}!e&&(0,d.isPriceDataSource)(t)&&(e=t)}return this._mainSource=e||null,this._correctedMarginsCache=null,this._mainSource}pricesArrayToCoordinates(e,t,i){this._makeSureItIsValid();const r=this.bottomPixelMargin(),n=(0,s.ensureNotNull)(this.priceRange()),o=n.minValue(),a=n.maxValue(),l=this.internalHeight()-1,h=this.isInverted(),d=l/(a-o);void 0===i&&(i=e.length);const u=this.isPercentage(),p=this.isIndexedTo100(),_=this.isLog(),m=this.m_height;let g,f;for(let s=0;se?(0,c.toLog)(e,this._logFormula):e),0===r.length)return +;const d="open"in r[0],u="close"in r[0];if(null!==h)for(let e=0;ethis._currencyCache=null),e.unitChanged().subscribe(this,()=>this._unitCache=null),(0,m.isSymbolSource)(e)&&(this._seriesLikeSources.push(e),e.symbolResolved().subscribe(this,()=>{this._currencyCache=null,this._unitCache=null}),e.isActingAsSymbolSource().subscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),e instanceof h.Series))){const t=e.properties();this._hasSeries||(t.childs().lockScale&&(this.setMode({lockScale:t.childs().lockScale.value()}),t.removeProperty("lockScale")),t.childs().pnfStyle.child("lockScale")&&t.childs().pnfStyle.removeProperty("lockScale")),this._hasSeries=!0}e.properties().visible.listeners().subscribe(this,this._dropScaleCache),(0,_.isStudy)(e)&&(e.onIsActualIntervalChange().subscribe(this,this._dropScaleCache),e.onHibernationStateChange().subscribe(this,this._dropScaleCache),0===this._studiesCount&&(0, +C.hideAllIndicators)().subscribe(this,this._dropScaleCache),this._studiesCount++),(0,w.isLineTool)(e)&&(0===this._drawingCount&&(0,C.hideAllDrawings)().subscribe(this,this._dropScaleCache),this._drawingCount++),this.m_dataSources.push(e),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesToUpdateViews=null,this._dropScaleCache(),this.updateFormatter(),this._initScaleProperties(),this.invalidateSourcesCache()}}removeDataSource(e){const t=this.m_dataSources.indexOf(e);if((0,s.assert)(-1!==t,"Source is not attached to scale"),e.properties().visible.listeners().unsubscribe(this,this._dropScaleCache),this.m_dataSources.splice(t,1),(0,d.isPriceDataSource)(e)){const t=this._priceDataSources.indexOf(e);if((0,s.assert)(-1!==t,"Source is not found"),this._priceDataSources.splice(t,1),(0,m.isSymbolSource)(e)){const t=this._seriesLikeSources.indexOf(e);(0,s.assert)(-1!==t,"Source is not found"),this._seriesLikeSources.splice(t,1),e.symbolResolved().unsubscribeAll(this),e.isActingAsSymbolSource().unsubscribe(this._boundOnSourceIsActingAsSymbolSourceChanged),e instanceof h.Series&&(this._hasSeries=!1)}e.currencyChanged().unsubscribeAll(this),e.unitChanged().unsubscribeAll(this)}this.mainSource()||this.setMode({autoScale:!0}),(0,_.isStudy)(e)&&(e.onIsActualIntervalChange().unsubscribe(this,this._dropScaleCache),e.onHibernationStateChange().unsubscribe(this,this._dropScaleCache),this._studiesCount--,0===this._studiesCount&&(0,C.hideAllIndicators)().unsubscribe(this,this._dropScaleCache)),(0,w.isLineTool)(e)&&(this._drawingCount--,0===this._drawingCount&&(0,C.hideAllDrawings)().unsubscribe(this,this._dropScaleCache)),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this.updateFormatter(),this.invalidateSourcesCache(),0===this.m_dataSources.length&&this._lastSourceRemoved.fire(),this._currencyCache=null,this._unitCache=null}currency(e){if(null!==this._currencyCache&&e.size()===this._currencyCache.availableCurrenciesCount)return this._currencyCache.value;let t;const i=new Set,r=new Set,n=new Set,o=new Map;let a,l=0===this._seriesLikeSources.length,c=!0,h=0,d=0;const u=this._seriesLikeSources.filter(m.isActingAsSymbolSource);for(const d of u){if(!d.isVisible())continue;const u=d.symbolInfo();if(null===u){t=null;break}const p=(0,g.symbolOriginalCurrency)(u);if(null===p){t=null;break}o.set(p,(0,s.ensureNotNull)((0,g.symbolOriginalCurrency)(u,!0)));const _=d.currency();if(null===_){t=null;break}o.set(_,(0,s.ensureNotNull)((0,g.symbolCurrency)(u,!0)));const m=(0,g.symbolBaseCurrency)(u);null!==m&&r.add(m),c=c&&p===_,n.add(_),i.add(p),void 0===a?a=_:null!==a&&a!==_&&(a=null),l||e.convertible(_)&&(0,g.symbolCurrencyConvertible)(u)||(l=!0),h+=1}if(null!==t)for(const i of this._priceDataSources){if(u.includes(i))continue;const r=i;if(!r.isCurrencySource()||!r.isVisible())continue;const c=r.currency();if(null===c){t=null;break}n.add(c),d+=1;const h=(0,s.ensureNotNull)(r.symbolSource()),p=r.currencySourceSymbolInfo();if(null===p){t=null;break} +if(l||e.convertible(c)&&(0,g.symbolCurrencyConvertible)(p)||(l=!0),o.set(c,(0,s.ensureNotNull)((0,g.symbolCurrency)(p,!0))),u.includes(h)||(l=!0),void 0===a)a=c;else if(null!==a&&a!==c){a=null;break}}return void 0===t&&(t=0===h&&0===d?null:{readOnly:l,selectedCurrency:a||null,currencies:n,originalCurrencies:i,baseCurrencies:r,symbolSourceCount:h,allCurrenciesAreOriginal:c,displayedValues:o}),this._currencyCache={value:t,availableCurrenciesCount:e.size()},t}unit(e){if(null!==this._unitCache&&e.size()===this._unitCache.availableUnitsCount)return this._unitCache.value;let t;const i=new Set,r=new Set,n=new Map,o=new Map;let l,c=0===this._seriesLikeSources.length?new Set:e.allGroups(),h=!0,d=0,u=0;const p=this._seriesLikeSources.filter(m.isActingAsSymbolSource);for(const s of p){if(!s.isVisible())continue;const u=s.symbolInfo();if(null===u){t=null;break}const p=(0,g.symbolOriginalUnit)(u,s.model().unitConversionEnabled());if(null===p){t=null;break}n.set(p,e.name(p)),o.set(p,e.description(p));const _=s.unit();if(null===_){t=null;break}if(n.set(_,e.name(_)),o.set(_,e.description(_)),h=h&&p===_,r.add(_),i.add(p),void 0===l?l=_:null!==l&&l!==_&&(l=null),c.size>0){const t=(0,f.unitConvertibleGroups)(u,_,e);c=(0,a.intersect)(c,new Set(t))}d+=1}if(null!==t)for(const i of this._priceDataSources){if(p.includes(i))continue;const h=i;if(!h.isUnitSource()||!h.isVisible())continue;const d=h.unit();if(null===d){t=null;break}r.add(d),u+=1;const _=(0,s.ensureNotNull)(h.symbolSource()),m=_.symbolInfo();if(null===m){t=null;break}if(c.size>0){const t=(0,f.unitConvertibleGroups)(m,d,e);c=(0,a.intersect)(c,new Set(t))}if(n.set(d,e.name(d)),o.set(d,e.description(d)),p.includes(_)||(c=new Set),void 0===l)l=d;else if(null!==l&&l!==d){l=null;break}}if(void 0===t)if(0===d&&0===u)t=null;else{t={availableGroups:c,selectedUnit:l||null,units:r,originalUnits:i,symbolSourceCount:d,allUnitsAreOriginal:h,names:n,descriptions:o}}return this._unitCache={value:t,availableUnitsCount:e.size()},t}setMargins(e){if(!(0,r.isNumber)(e.top)||!(0,r.isNumber)(e.bottom))throw new TypeError("invalid margin");if(e.top<0||e.top>30||e.bottom<0||e.bottom>30)throw new RangeError("invalid margin");this._margins.top===e.top&&this._margins.bottom===e.bottom||(this._margins=e,this._correctedMarginsCache=null,this._invalidateInternalHeightCache(),this._marksCache=null)}topMargin(){return this._correctedMargins().top}bottomMargin(){return this._correctedMargins().bottom}invalidateMargins(){this._correctedMarginsCache=null}topPixelMargin(){return this.isInverted()?this.bottomMargin()*this.height()+this._bottomPixelMargin:this.topMargin()*this.height()+this._topPixelMargin}bottomPixelMargin(){return this.isInverted()?this.topMargin()*this.height()+this._topPixelMargin:this.bottomMargin()*this.height()+this._bottomPixelMargin}marks(){return this._makeSureItIsValid(),null===this._marksCache&&(this._markBuilder.rebuildTickMarks(),this._marksCache=this._markBuilder.marks(),this._onMarksChanged.fire()),this._marksCache}onMarksChanged(){return this._onMarksChanged}priceRangeInPrice(){ +if(this.isEmpty())return null;const e=this.mainSource();if(null===e)return null;const t=(0,s.ensureNotNull)(e.firstValue()),i=this.height();return{from:this.coordinateToPrice(i-1,t),to:this.coordinateToPrice(0,t)}}setPriceRangeInPrice(e){if(this.isPercentage()||this.isIndexedTo100())return;const t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),s=t?this.topMargin():this.bottomMargin(),r=this.isLog();let n=r?(0,c.toLog)(e.from,this._logFormula):e.from,o=r?(0,c.toLog)(e.to,this._logFormula):e.to;const a=o-n;n+=s*a,o-=i*a,this.setMode({autoScale:!1}),this.setPriceRange(new l.PriceRange(n,o)),this._marksCache=null,this._onMarksChanged.fire()}hasMainSeries(){return this._hasSeries}getStudies(){return this.dataSources().filter(_.isStudy)}lastSourceRemoved(){return this._lastSourceRemoved}sourcesForAutoscale(){return this._mainSource&&this._scaleSeriesOnly!==this._scalesProperties.childs().scaleSeriesOnly.value()&&(this._sourcesForAutoscale=null),this._sourcesForAutoscale||(this._sourcesForAutoscale=this._recalculateSourcesForAutoscale()),this._sourcesForAutoscale}recalculatePriceRange(e){this._invalidatedForRange={visibleBars:e,isValid:!1}}internalHeightChanged(){return this._internalHeightChanged}orderedSources(){if(this._cachedOrderedSoruces)return this._cachedOrderedSoruces;let e=this.m_dataSources.slice();return e=(0,v.sortSources)(e),this._cachedOrderedSoruces=e,this._cachedOrderedSoruces}invalidateSourcesCache(){this._cachedOrderedSoruces=null,this._sourcesToUpdateViews=null}startScale(e){var t,i;this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint||null!==this._priceRangeSnapshot||(this._scaleStartPoint=this.m_height-e,this._priceRangeSnapshot=null!==(i=null===(t=this.priceRange())||void 0===t?void 0:t.clone())&&void 0!==i?i:null)}scaleTo(e){if(this.isPercentage()||this.isIndexedTo100()||null===this._scaleStartPoint)return;this.setMode({autoScale:!1}),(e=this.m_height-e)<0&&(e=0);let t=(this._scaleStartPoint+.2*(this.m_height-1))/(e+.2*(this.m_height-1));const i=(0,s.ensureNotNull)(this._priceRangeSnapshot).clone();t=Math.max(t,.1),i.scaleAroundCenter(t),this.setPriceRange(i)}endScale(){this.isPercentage()||this.isIndexedTo100()||null!==this._scaleStartPoint&&(this._scaleStartPoint=null,this._priceRangeSnapshot=null)}startTwoPointsScale(e,t){if(this.isEmpty()||this.isPercentage()||this.isIndexedTo100()||null!==this._twoPointsScaleStartPosition)return;const i=Math.min(e,t),s=Math.max(e,t);this._twoPointsScaleStartPosition={topLogical:this._coordinateToLogical(i),bottomLogical:this._coordinateToLogical(s)}}twoPointsScale(e,t){if(this.isPercentage()||this.isIndexedTo100()||null===this._twoPointsScaleStartPosition)return;this.setMode({autoScale:!1});const i=Math.min(e,t),s=Math.max(e,t),{topLogical:r,bottomLogical:n}=this._twoPointsScaleStartPosition,o=this.bottomPixelMargin(),a=this.internalHeight()-1,c=(this._invertedCoordinate(i)-o)/a,h=(n-r)/((this._invertedCoordinate(s)-o)/a-c),d=r-h*c,u=d+h +;this.setPriceRange(new l.PriceRange(this.priceToLogical(d),this.priceToLogical(u)))}endTwoPointsScale(){this._twoPointsScaleStartPosition=null}startScroll(e){var t,i;this.isAutoScale()||null===this._scrollStartPoint&&null===this._priceRangeSnapshot&&(this.isEmpty()||(this._scrollStartPoint=e,this._priceRangeSnapshot=null!==(i=null===(t=this.priceRange())||void 0===t?void 0:t.clone())&&void 0!==i?i:null))}scrollTo(e){if(this.isAutoScale())return;if(null===this._scrollStartPoint||null===this._priceRangeSnapshot)return;const t=this.priceRange();if(null===t)return;let i=e-this._scrollStartPoint;this.isInverted()&&(i*=-1);const s=i*(t.length()/(this.internalHeight()-1)),r=this._priceRangeSnapshot.clone();r.shift(s),this.setPriceRange(r,!0),this._marksCache=null}endScroll(){this.isAutoScale()||null!==this._scrollStartPoint&&(this._scrollStartPoint=null,this._priceRangeSnapshot=null)}_recalculateSourcesForAutoscale(){this._mainSource&&(this._scaleSeriesOnly=this._scalesProperties.childs().scaleSeriesOnly.value());const e=this._scaleSeriesOnly&&this._hasSeries;return this.m_dataSources.filter(t=>!!(t.properties().visible.value()||t instanceof h.Series)&&(e?t instanceof h.Series:(0,_.isStudy)(t)?!t.isSourceHidden()&&t.isIncludedInAutoScale():t.isIncludedInAutoScale()))}_updateAutoScaleDisabledProperty(e){const t=this._properties.childs(),i=t.indexedTo100.value()||t.percentage.value()||t.lockScale.value();e?t.autoScaleDisabled.setValueSilently(i):t.autoScaleDisabled.setValue(i)}_setAutoScaleValueWithDependentProperties(e){const t=this._properties.childs();t.autoScale.setValueSilently(e),e&&(t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.logDisabled.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLockScaleValueWithDependentProperties(e){const t=this._properties.childs();t.lockScale.setValueSilently(e),e&&(t.autoScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1),t.log.setValueSilently(!1)),t.percentageDisabled.setValueSilently(e),t.logDisabled.setValueSilently(e),this._updateAutoScaleDisabledProperty(!0)}_setPercentageValueWithDependentProperties(e){const t=this._properties.childs();t.percentage.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setIndexedTo100ValueWithDependentProperties(e){const t=this._properties.childs();t.indexedTo100.setValueSilently(e),e&&(t.autoScale.setValueSilently(!0),t.log.setValueSilently(!1),t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_setLogValueWithDependentProperties(e){const t=this._properties.childs();t.log.setValueSilently(e),e&&(t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)}_recalculatePriceRangeImpl(){const e=this._invalidatedForRange.visibleBars +;if(null===e)return;let t=null;const i=this.sourcesForAutoscale(),s=this.isPercentage(),r=this.isIndexedTo100();let n=0,o=0;for(const a of i){if(!a.properties().visible.value())continue;const i=a.firstValue();if(null===i||s&&0===i)continue;const l=e.firstBar(),h=e.lastBar(),d=a.autoScaleInfo(l,h);let u=d.range;u&&(s?u=(0,c.toPercentRange)(u,i):r&&(u=(0,c.toIndexedTo100Range)(u,i)),t=null===t?u:t.merge(u)),void 0!==d.topPixelMargin&&(n=Math.max(n,d.topPixelMargin)),void 0!==d.bottomPixelMargin&&(o=Math.max(o,d.bottomPixelMargin))}if((Math.abs(n-this._topPixelMargin)>0||Math.abs(o-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=o,this._topPixelMargin=n,this._marksCache=null,this._invalidateInternalHeightCache()),t){if(t.minValue()===t.maxValue()&&(t=new l.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.isLog()){const e=this._convertPriceRangeFromLog(t),i=(0,c.logFormulaForPriceRange)(e);if(!(0,c.logFormulasAreSame)(i,this._logFormula)){const s=this._priceRangeSnapshot?this._convertPriceRangeFromLog(this._priceRangeSnapshot):null;this._logFormula=i,t=this._convertPriceRangeToLog(e),s&&(this._priceRangeSnapshot=this._convertPriceRangeToLog(s))}}this.setPriceRange(t)}else this.m_priceRange||(this.setPriceRange(new l.PriceRange(-.5,.5)),this._logFormula=(0,c.logFormulaForPriceRange)(null));this._invalidatedForRange.isValid=!0;const a=this.mainSource();null!==a&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!a.priceRangeReady())}_makeSureItIsValid(){this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())}_invalidateInternalHeightCache(){this._internalHeightCache=null,this._internalHeightChanged.fire()}_coordinateToLogical(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;const t=this._invertedCoordinate(e),i=(0,s.ensureNotNull)(this.priceRange()),r=i.minValue()+(i.maxValue()-i.minValue())*((t-this.bottomPixelMargin())/(this.internalHeight()-1));return this.logicalToPrice(r)}_logicalToCoordinate(e){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);const t=(0,s.ensureNotNull)(this.priceRange()),i=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-t.minValue())/(t.maxValue()-t.minValue());return this._invertedCoordinate(i)}_dropScaleCache(){this._sourcesForAutoscale=null,this._currencyCache=null,this._unitCache=null}_invertedCoordinate(e){return this.isInverted()?e:this.height()-1-e}_initScaleProperties(){const e=this.isLockScale(),t=this.properties().childs();e&&(t.percentage.setValue(!1),t.indexedTo100.setValue(!1),t.log.setValue(!1),t.autoScale.setValue(!1)),t.percentageDisabled.setValue(e),t.logDisabled.setValue(e),this._updateAutoScaleDisabledProperty(!1),t.percentage.value()&&(t.log.setValue(!1),t.indexedTo100.setValue(!1)),t.indexedTo100.value()&&(t.log.setValue(!1),t.percentage.setValue(!1))}_correctedMargins(){if(null===this._correctedMarginsCache){const e=this.mainSource();this._correctedMarginsCache=null!==e?e.correctScaleMargins(this._margins):this._margins}return this._correctedMarginsCache} +_getSourcesToUpdateViews(){return this._sourcesToUpdateViews||(this._sourcesToUpdateViews=this.m_dataSources.filter(e=>!(0,w.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency())),this._sourcesToUpdateViews}_mainSourceFormatter(){const e=this.mainSource();return(null==e?void 0:e.formatter())||I}_priceToPercentOrIndexedTo100IfNeeded(e,t){return this.isPercentage()?(0,c.toPercent)(e,t):this.isIndexedTo100()?(0,c.toIndexedTo100)(e,t):e}_onSourceIsActingAsSymbolSourceChanged(){this._dropScaleCache()}}},3825:(e,t,i)=>{"use strict";var s;i.d(t,{PriceAxisLastValueMode:()=>s}),function(e){e[e.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",e[e.LastValueAccordingToScale=1]="LastValueAccordingToScale"}(s||(s={}))},74477:(e,t,i)=>{"use strict";i.r(t),i.d(t,{fromPercent:()=>o,toPercent:()=>a,toPercentRange:()=>l,fromIndexedTo100:()=>c,toIndexedTo100:()=>h,toIndexedTo100Range:()=>d,toLog:()=>u,fromLog:()=>p,logFormulaForPriceRange:()=>_,logFormulasAreSame:()=>m,getCurrentModePriceText:()=>g,getOppositeModePriceText:()=>f});var s=i(69927),r=i(64514);const n={logicalOffset:4,coordOffset:1e-4};function o(e,t){return t<0&&(e=-e),e/100*t+t}function a(e,t){const i=100*(e-t)/(t||1);return t<0?-i:i}function l(e,t){const i=a(e.minValue(),t),r=a(e.maxValue(),t);return new s.PriceRange(i,r)}function c(e,t){return t<0&&(e=-e),(e-=100)/100*t+t}function h(e,t){const i=100*(e-t)/t+100;return t<0?-i:i}function d(e,t){const i=h(e.minValue(),t),r=h(e.maxValue(),t);return new s.PriceRange(i,r)}function u(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const s=(0,r.log10)(i+t.coordOffset)+t.logicalOffset;return e<0?-s:s}function p(e,t){const i=Math.abs(e);if(i<1e-15)return 0;const s=Math.pow(10,i-t.logicalOffset)-t.coordOffset;return e<0?-s:s}function _(e){if(null===e)return n;const t=Math.abs(e.maxValue()-e.minValue());if(t>=1||t<1e-15)return n;const i=Math.ceil(Math.abs(Math.log10(t))),s=n.logicalOffset+i;return{logicalOffset:s,coordOffset:1/Math.pow(10,s)}}function m(e,t){return e.logicalOffset===t.logicalOffset&&e.coordOffset===t.coordOffset}function g(e,t){return e.isPercentage()?t.formattedPricePercentage:e.isIndexedTo100()?t.formattedPriceIndexedTo100:t.formattedPriceAbsolute}function f(e,t){return e.isPercentage()||e.isIndexedTo100()?t.formattedPriceAbsolute:t.formattedPricePercentage}},69927:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PriceRange:()=>n});var s=i(80643);const r=(0,i(98125).getLogger)("Chart.PriceRange");class n{constructor(e,t){if(null!==e&&"object"==typeof e){const t=e;this._minValue=t.m_minValue,this._maxValue=t.m_maxValue}else{const i=e;this._minValue=i,void 0!==t&&(this._maxValue=t)}}equals(e){return this._minValue===e._minValue&&this._maxValue===e._maxValue}clone(){return new n(this._minValue,this._maxValue)}minValue(){return this._minValue}setMinValue(e){this._minValue=e}maxValue(){return this._maxValue}setMaxValue(e){this._maxValue=e}length(){return this._maxValue-this._minValue}isEmpty(){return this._maxValue===this._minValue||this._maxValue!=this._maxValue||this._minValue!=this._minValue}serialize(){return{ +m_maxValue:this._maxValue,m_minValue:this._minValue}}state(){return{max:this._maxValue,min:this._minValue}}merge(e){return new n(Math.min(this.minValue(),e.minValue()),Math.max(this.maxValue(),e.maxValue()))}apply(e,t){this._minValue=Math.min(this._minValue,e),this._maxValue=Math.max(this._maxValue,t)}set(e,t){this._minValue=e,this._maxValue=t}scaleAroundCenter(e){if(!(0,s.isNumber)(e))return void r.logDebug("PriceRange.scaleAroundCenter: invalid coeff");if(0===this._maxValue-this._minValue)return;const t=.5*(this._maxValue+this._minValue);let i=this._maxValue-t,n=this._minValue-t;i*=e,n*=e,this._maxValue=t+i,this._minValue=t+n}shift(e){(0,s.isNumber)(e)?(this._maxValue+=e,this._minValue+=e):r.logDebug("PriceRange.shift: invalid coeff")}containsStrictly(e){return e.minValue()>this._minValue&&e.maxValue(){"use strict";var s=i(2872),r=i(27402).PriceScaleBase,n=i(69927).PriceRange,o=i(9423).randomHash,a=i(74477),l=a.fromLog,c=a.toLog;class h extends r{constructor(e,t){super(t),this._scalesProperties=e;var i=this;this._modeChanged=new s,this._properties.isInverted.listeners().subscribe(this,h.prototype._onIsInvertedChanged),this._properties.listeners().subscribe(null,(function(){if(i.mainSource()&&i.mainSource().model()){var e=i.mainSource().model().paneForSource(i.mainSource());i.mainSource().model().updatePane(e)}})),this._scalesProperties.listeners().subscribe(this,(function(){this._marksCache=null})),this.setId(o())}_convertPriceRangeFromLog(e){if(null===e)return null;var t=l(e.minValue(),this._logFormula),i=l(e.maxValue(),this._logFormula);return new n(t,i)}_convertPriceRangeToLog(e){if(null===e)return null;var t=c(e.minValue(),this._logFormula),i=c(e.maxValue(),this._logFormula);return new n(t,i)}_canConvertPriceRangeFromLog(e){if(null===e)return!1;var t=l(e.minValue(),this._logFormula),i=l(e.maxValue(),this._logFormula);return isFinite(t)&&isFinite(i)}mode(){return{autoScale:this._properties.autoScale.value(),lockScale:this._properties.lockScale.value(),percentage:this._properties.percentage.value(),indexedTo100:this._properties.indexedTo100.value(),log:this._properties.log.value()}}setMode(e){var t={},i=this.mode(),s=this._properties.state(),r=null;void 0!==e.autoScale&&e.autoScale!==s.autoScale&&(t.autoScale=e.autoScale,this._setAutoScaleValueWithDependentProperties(e.autoScale)),void 0!==e.lockScale&&e.lockScale!==s.lockScale&&(t.lockScale=e.lockScale,this._setLockScaleValueWithDependentProperties(e.lockScale)),void 0!==e.percentage&&e.percentage!==s.percentage&&(t.percentage=e.percentage,this._setPercentageValueWithDependentProperties(e.percentage),this._invalidatedForRange.isValid=!1),void 0!==e.indexedTo100&&e.indexedTo100!==s.indexedTo100&&(t.indexedTo100=e.indexedTo100,this._setIndexedTo100ValueWithDependentProperties(e.indexedTo100),this._invalidatedForRange.isValid=!1),void 0!==e.log&&e.log!==s.log&&(t.log=e.log,this._setLogValueWithDependentProperties(e.log)), +s.log&&!this._properties.log.value()&&(this._canConvertPriceRangeFromLog(this.m_priceRange)?null!==(r=this._convertPriceRangeFromLog(this.m_priceRange))&&this.setPriceRange(r):this.properties().autoScale.setValue(!0)),!s.log&&this._properties.log.value()&&null!==(r=this._convertPriceRangeToLog(this.m_priceRange))&&this.setPriceRange(r),s.autoScale!==this._properties.autoScale.value()&&this._properties.autoScale.listeners().fire(this._properties.autoScale),s.autoScaleDisabled!==this._properties.autoScaleDisabled.value()&&this._properties.autoScaleDisabled.listeners().fire(this._properties.autoScaleDisabled),s.lockScale!==this._properties.lockScale.value()&&this._properties.lockScale.listeners().fire(this._properties.lockScale),s.percentage!==this._properties.percentage.value()&&(this._properties.percentage.listeners().fire(this._properties.percentage),this.updateFormatter()),s.indexedTo100!==this._properties.indexedTo100.value()&&(this._properties.indexedTo100.listeners().fire(this._properties.indexedTo100),this.updateFormatter()),s.percentageDisabled!==this._properties.percentageDisabled.value()&&this._properties.percentageDisabled.listeners().fire(this._properties.percentageDisabled),s.log!==this._properties.log.value()&&this._properties.log.listeners().fire(this._properties.log),s.logDisabled!==this._properties.logDisabled.value()&&this._properties.logDisabled.listeners().fire(this._properties.logDisabled),void 0===t.log&&void 0===t.percentage&&void 0===t.lockScale&&void 0===t.autoScale&&void 0===t.indexedTo100||this._modeChanged.fire(i,this.mode())}modeChanged(){return this._modeChanged}fontSize(){return this._scalesProperties.fontSize.value()}isEmpty(){return this._makeSureItIsValid(),0===this.m_height||!this.m_priceRange||this.m_priceRange.isEmpty()}_onIsInvertedChanged(){this._marksCache=null,this._markBuilder.rebuildTickMarks()}}t.PriceScale=h},32255:(e,t,i)=>{"use strict";i.d(t,{createPrimitiveProperty:()=>n});var s=i(2015),r=i.n(s);function n(e){return new(r())(e)}},45383:(e,t,i)=>{"use strict";i.d(t,{extractAllPropertiesKeys:()=>v,factoryDefaultsForCurrentTheme:()=>y,ThemedDefaultProperty:()=>w});var s=i(58121),r=i(99094),n=i(16230),o=i(98279),a=i(38651),l=i(88537),c=i(56840),h=i(98619),d=i(45345),u=i(26843),p=i(2015),_=i.n(p),m=i(59803),g=i(2872),f=i.n(g);function v(e){return new Set(Object.keys(e))}function S(e,t){const i={};for(const s of Object.keys(e))t.has(s)&&(i[s]=e[s]);return i}function y(e,t){var i;const r=null!==(i=d.watchedTheme.value())&&void 0!==i?i:u.StdTheme.Light,n=(0,h.deepCopy)(e);return(0,s.default)(n,(0,l.ensureDefined)(t.get(r))),n}function b(e,t){const i=(0,r.default)(e,(e,i,s)=>{if(void 0===t[s])return e;if(!(0,n.default)(i,t[s]))if((0,o.default)(i)&&(0,o.default)(t[s])){const r=b(i,t[s]);void 0!==r&&(e[s]=r)}else e[s]=i;return e},{});return(0,a.default)(i)?void 0:i}class w extends(_()){constructor(e,t,i,r,n){super(function(e,t,i){var r;const n=t(),o=(0,h.deepCopy)(null!==(r=c.getJSON(e,null))&&void 0!==r?r:{});return(0,s.default)(n,o),(0,s.default)(n,null!=i?i:{}),n}(e,t,n)), +this._applyingThemeInProcess=!1,this._restoreFactoryDefaultsEvent=new(f()),this._defaultName=e,this._defaultsSupplier=t,this._notThemedDefaultsKeys=i,this._themedDefaultsKeys=r}restoreFactoryDefaults(){const e=this._defaultsSupplier();this.mergeAndFire(e),this.saveDefaults(),this._restoreFactoryDefaultsEvent.fire()}addExclusion(){}preferences(){const e=new Set([...this._themedDefaultsKeys,...this._notThemedDefaultsKeys]);return S(this.state(),e)}mergePreferences(e){const t=new Set([...this._themedDefaultsKeys,...this._notThemedDefaultsKeys]);this.mergeAndFire(S(e,t))}childChanged(e){super.childChanged(e),this._applyingThemeInProcess||this.saveDefaults()}saveDefaults(){const e=this.state(),t=this._defaultsSupplier();let i=b(S(e,this._notThemedDefaultsKeys),S(t,this._notThemedDefaultsKeys));const r=S(t,this._themedDefaultsKeys),n=S(e,this._themedDefaultsKeys),o=b(n,r);(0,a.default)(o)||(i=null!=i?i:{},(0,s.default)(i,n)),(0,m.saveDefaults)(this._defaultName,i)}}},65576:(e,t,i)=>{"use strict";i.d(t,{convertPropertyToWatchedValue:()=>n});var s=i(52714),r=i.n(s);function n(e){const t=new(r())(e.value());let i=!1;e.subscribe(t,()=>{i||(i=!0,t.setValue(e.value()),i=!1)});const s=()=>{i||(i=!0,e.setValue(t.value()),i=!1)};return t.subscribe(s),t.spawn(()=>{e.unsubscribeAll(t),t.unsubscribe(s)})}},81465:(e,t,i)=>{"use strict";i.d(t,{combineProperty:()=>o,createWVFromGetterAndSubscription:()=>s.createWVFromGetterAndSubscription,createWVFromProperty:()=>r});var s=i(38021);i(3763);function r(e){return(0,s.createWVFromGetterAndSubscription)(()=>e.value(),e)}i(2015);var n=i(32255);function o(e,...t){const i=()=>e(...t.map(e=>e.value())),s=(0,n.createPrimitiveProperty)(i()),r=()=>s.setValue(i()),o={};for(const e of t)e.subscribe(o,r);return s.destroy=()=>{t.forEach(e=>e.unsubscribeAll(o))},s}},38021:(e,t,i)=>{"use strict";i.d(t,{createWVFromGetterAndSubscription:()=>n});var s=i(52714),r=i.n(s);function n(e,t){const i=new(r())(e()),s={};t.subscribe(s,()=>{i.setValue(e())});return i.readonly().spawn(()=>t.unsubscribeAll(s))}},3763:(e,t,i)=>{"use strict";i.d(t,{createWVFromGetterAndSubscriptions:()=>n});var s=i(52714),r=i.n(s);function n(e,t){const i=new(r())(e()),s={};t.forEach(t=>t.subscribe(s,()=>{i.setValue(e())}));return i.readonly().spawn(()=>t.forEach(e=>e.unsubscribeAll(s)))}},2015:(e,t,i)=>{"use strict";var s=i(2872),r=i(80643).isFunction;function n(e){if(this._listeners=new s,this._childs=[],this._muteChildChanges=!1,void 0!==e)if(this.isPrimitiveType(e))this._value=e;else for(var t in e)this.addProperty(t,e[t])}n.prototype.merge=function(e,t){var i=null;if(t)var s=(i=[]).length;if(void 0===e)return i;if(this.isPrimitiveType(e))return t&&this._value!==e&&i.push(this),this._value=e,i;if(Array.isArray(e))for(var r=0;rs&&i.push(this),i}, +n.prototype.mergeAndFire=function(e){var t=this.merge(e,!0);this._muteChildChanges=!0,t.forEach((function(e){e._muteChildChanges=!0})),t.forEach((function(e){e._muteChildChanges=!1,e.listeners().fire(e)})),this._muteChildChanges=!1,t.length>0&&this.listeners().fire(this)},n.prototype.state=function(e){var t=r(this.value)?this.value():void 0;void 0===t&&(t={});for(var i=0;i=0},n.prototype.addChild=function(e,t){this[e]&&this[e].unsubscribe(this,this.childChanged),this[e]=t,-1===this._childs.indexOf(e)&&this._childs.push(e),t.subscribe(this,this.childChanged)},n.prototype.childChanged=function(e,t){this._muteChildChanges||this.listeners().fire(this)},n.prototype.subscribe=function(e,t){this.listeners().subscribe(e,t,!1)},n.prototype.unsubscribe=function(e,t){this.listeners().unsubscribe(e,t)},n.prototype.unsubscribeAll=function(e){this.listeners().unsubscribeAll(e)},n.prototype.childs=function(){return this},e.exports=n},90810:(e,t,i)=>{"use strict";i.d(t,{QuotesProvider:()=>a});var s=i(39138),r=i(2872),n=i.n(r),o=i(9423);class a{constructor(e="full"){this._quotes=null,this._quoteSessionSymbol=null,this._quoteSessionClientId="",this._quotesUpdate=new(n()),this._quoteSymbolChanged=new(n()),this._multiplexerType=e}setQuotesSessionSymbol(e){this._quoteSessionSymbol!==e&&(this._quoteSessionClientId||(this._quoteSessionClientId="series-"+(0,o.guid)()),this._unsubscribeQuoteSession(),e&&this._subscribeQuoteSession(e),this._quoteSymbolChanged.fire())}quotesUpdate(){return this._quotesUpdate}quoteSymbolChanged(){return this._quoteSymbolChanged}quotes(){return this._quotes}destroy(){this._unsubscribeQuoteSession()}_onUpdate(e,t){this._quotes=e&&e.values||null,t&&t.values&&this._quotesUpdate.fire(e,t)} +_subscribeQuoteSession(e){this._quoteSessionSymbol=e,(0,s.getQuoteSessionInstance)(this._multiplexerType).subscribe(this._quoteSessionClientId,this._quoteSessionSymbol,this._onUpdate.bind(this))}_unsubscribeQuoteSession(){this._quoteSessionSymbol&&((0,s.getQuoteSessionInstance)(this._multiplexerType).unsubscribe(this._quoteSessionClientId,this._quoteSessionSymbol),this._quoteSessionSymbol=null,this._quotes=null)}}},64237:(e,t,i)=>{"use strict";i.d(t,{rangesAreEqual:()=>n});var s=i(73383),r=i(29823);function n(e,t){return!!r.Interval.isEqual(e.res,t.res)&&(0,s.areEqualTimeFrames)(e.val,t.val)}},9315:(e,t,i)=>{"use strict";i.r(t),i.d(t,{normalizeIntervalString:()=>_,isAvailable:()=>m,setLastUsedResolution:()=>g,getRangeResolution:()=>f,getTimeBasedResolution:()=>v,getDefaultResolution:()=>S,getResolutionByChartStyle:()=>y,getServerInterval:()=>b,isResolutionMultiplierValid:()=>w,getMaxResolutionValue:()=>P,getResolutionsFromSettings:()=>T,convertResolutionsFromSettings:()=>x,mergeResolutions:()=>I,sortResolutions:()=>M,getCustomResolutions:()=>E,getTranslatedResolution:()=>k,getTranslatedResolutionModel:()=>D,isSecondsEnabled:()=>B,isTicksEnabled:()=>N});var s=i(28353),r=i(29823),n=i(37667),o=i(56840),a=i(82992),l=i(96397),c=i(80643),h=i(67337);const d={[r.ResolutionKind.Ticks]:1,[r.ResolutionKind.Seconds]:60,[r.ResolutionKind.Minutes]:1440,[r.SpecialResolutionKind.Hours]:24,[r.ResolutionKind.Days]:365,[r.ResolutionKind.Weeks]:52,[r.ResolutionKind.Months]:12,[r.ResolutionKind.Range]:1e6,[r.ResolutionKind.Invalid]:NaN},u={[r.ResolutionKind.Ticks]:0,[r.ResolutionKind.Seconds]:1,[r.ResolutionKind.Minutes]:2,[r.SpecialResolutionKind.Hours]:3,[r.ResolutionKind.Days]:4,[r.ResolutionKind.Weeks]:5,[r.ResolutionKind.Months]:6,[r.ResolutionKind.Range]:7,[r.ResolutionKind.Invalid]:8},p={[r.ResolutionKind.Invalid]:"",[r.ResolutionKind.Ticks]:(0,s.t)("T",{context:"interval_short"}),[r.ResolutionKind.Seconds]:(0,s.t)("s",{context:"interval_short"}),[r.ResolutionKind.Minutes]:(0,s.t)("m",{context:"interval_short"}),[r.SpecialResolutionKind.Hours]:(0,s.t)("h",{context:"interval_short"}),[r.ResolutionKind.Days]:(0,s.t)("D",{context:"interval_short"}),[r.ResolutionKind.Weeks]:(0,s.t)("W",{context:"interval_short"}),[r.ResolutionKind.Months]:(0,s.t)("M",{context:"interval_short"}),[r.ResolutionKind.Range]:(0,s.t)("R",{context:"interval_short"})};function _(e){return r.Interval.parse(e).value()}function m(e){const t=r.Interval.parse(e);if(!B()&&t.isSeconds())return!1;if(!N()&&t.isTicks())return!1;const i=t.value(),s=a.linking.supportedResolutions.value();return void 0!==s?void 0!==s.find(e=>_(e)===i):t.isSeconds()?Boolean(a.linking.seconds.value()):t.isTicks()?Boolean(a.linking.ticks.value()):t.isIntraday()?Boolean(a.linking.intraday.value()):t.isDWM()}function g(e){r.Interval.isValid(e)&&(r.Interval.isRange(e)?o.setValue("chart.lastUsedRangeResolution",e):o.setValue("chart.lastUsedTimeBasedResolution",e))}function f(e){const t=o.getValue("chart.lastUsedRangeResolution");if(void 0!==t&&r.Interval.isRange(t))return t;let i="100R" +;for(const t of e){const e=r.Interval.parse(t);if(e.isRange()){const t=e.value();if("100R"===t)return t;i=t}}return i}function v(e){const t=o.getValue("chart.lastUsedTimeBasedResolution");if(void 0!==t&&r.Interval.isTimeBased(t))return t;let i="1D";for(const t of e){const e=r.Interval.parse(t);if(e.isTimeBased()){const t=e.value();if("1D"===t)return t;i=t}}return i}function S(e){return e?"100R":"1D"}function y(e,t,i){const s=n.isRangeStyle(e),o=r.Interval.isRange(t);return!s&&o?v(i):s&&!o?f(i):t}function b(e){return r.Interval.isRange(e)?"1":e}function w(e){const{interval:t,guiResolutionKind:i}=r.Interval.parseExt(e);if(!t.isValid())return!1;return(i===r.SpecialResolutionKind.Hours?t.multiplier()/60:t.multiplier())<=C(i)}function C(e){const t=d[e];return Number.isNaN(t)?1:t}function P(e){return C(r.Interval.parseExt(e).guiResolutionKind)}function T(e){const t=x(o.getJSON(e,[]));return(0,l.uniq)(t.filter(w).map(_))}function x(e){return Array.isArray(e)?e:Object.keys(e).map(r.Interval.normalize).filter(c.notNull)}function I(...e){let t=[].concat(...e);return t=(0,l.uniq)(t.filter(w).map(_)),M(t)}function M(e){return e.sort(A)}function L(e){const t=r.Interval.parse(e),i=t.multiplier()||1;return t.isMinuteHours()?[r.SpecialResolutionKind.Hours,i/60]:[t.kind(),i]}function A(e,t){const[i,s]=L(e),[r,n]=L(t);return i!==r?u[i]-u[r]:s-n}function E(){return[]}function k(e){const{multiplier:t,shortKind:i}=D(e);return`${t}${i}`}function D(e,t){const i=r.Interval.parse(e);let s=i.multiplier(),n=i.kind();if(!i.isValid()){if(t)return null;throw new TypeError("Can't translate invalid interval")}return i.isMinuteHours()&&(s=Math.floor(s/60),n=r.SpecialResolutionKind.Hours),{multiplier:s.toString(),shortKind:V(n),hint:`${s} ${V(n,s)}`,mayOmitMultiplier:i.isDWM()&&1===s,mayOmitShortKind:i.isMinutes()&&!i.isMinuteHours()}}function V(e,t){if(!t)return p[e];switch(e){case r.ResolutionKind.Ticks:return(0,s.t)("tick",{plural:"ticks",count:t});case r.ResolutionKind.Days:return(0,s.t)("day",{plural:"days",count:t});case r.ResolutionKind.Weeks:return(0,s.t)("week",{plural:"weeks",count:t});case r.ResolutionKind.Months:return(0,s.t)("month",{plural:"months",count:t});case r.ResolutionKind.Seconds:return(0,s.t)("second",{plural:"seconds",count:t});case r.ResolutionKind.Minutes:return(0,s.t)("minute",{plural:"minutes",count:t});case r.SpecialResolutionKind.Hours:return(0,s.t)("hour",{plural:"hours",count:t});case r.ResolutionKind.Range:return(0,s.t)("range",{plural:"ranges",count:t});default:return e}}function B(){return h.enabled("seconds_resolution")}function N(){return h.enabled("tick_resolution")}},22423:(e,t,i)=>{"use strict";i.d(t,{scaleRatio:()=>r,priceRangeByScaleRatio:()=>n,barSpacingByScaleRatio:()=>o});var s=i(69927);function r(e,t){if(t.isLog()||e.isEmpty()||t.isEmpty())return null;const i=function(e){if(e.isEmpty())return null;const t=e.priceRange();if(null===t)return null;const i=t.length();return e.internalHeight()/i}(t);if(null===i)return null;return e.getValidBarSpacing()/Math.max(1e-10,i)}function n(e,t,i){ +if(e.isLog()||null===i||e.isEmpty())return null;const r=e.priceRange();if(null===r||r.isEmpty())return null;const n=e.internalHeight()/(t/i),o=r.length();if(n===o)return r;const a=(n-o)/2;return new s.PriceRange(r.minValue()-a,r.maxValue()+a)}function o(e,t){if(e.isLog()||null===t||e.isEmpty())return null;const i=e.priceRange();if(null===i)return null;const s=i.length();return e.internalHeight()/s*t}},74325:(e,t,i)=>{"use strict";i.d(t,{createPriceScaleSelectionStrategy:()=>l,allPriceScaleSelectionStrategyInfo:()=>c});var s=i(88537),r=i(28353),n=i(81851);class o{constructor(e){this._priceScalesLimit=8,this._metaInfo=e}metaInfo(){return this._metaInfo}findSuitableScale(e,t,i,s){if(void 0!==s)return this._tryToGetDesiredPriceScale(e,t,s,i);if((0,n.isStudy)(t)){const s=t.metaInfo();if("Volume"===s.shortId&&e.containsMainSeries())return e.createPriceScaleAtPosition("overlay");const r=t.desiredPriceScalePosition();if(null!==r)return this._tryToGetDesiredPriceScale(e,t,r,i);if(void 0!==i&&((0,n.isStudy)(i)||e.isMainPane())&&s.is_price_study)return this._getPriceScaleTheSameAsForSource(i,e)}let r=!1;if((0,n.isStudy)(t)){const i=t.metaInfo().groupingKey;if(void 0!==i){const t=e.model().findNonOverlayStudyWithGroupingKey(i,e);if(null!==t)return this._getPriceScaleTheSameAsForSource(t.study,t.pane)}r=Boolean(t.metaInfo().is_price_study)}else t===e.model().mainSeries()&&(r=!0);if(r){const t=this._findFirstScaleForPriceStudy(e);if(null!==t)return t}return this.createNewPriceScaleIfPossible(e)}canCreateNewPriceScale(e){return e.leftPriceScales().length+e.rightPriceScales().lengthi&&this._priceScaleIsPrice(e.rightPriceScales()[i],t))return e.rightPriceScales()[i];if(e.leftPriceScales().length>i&&this._priceScaleIsPrice(e.leftPriceScales()[i],t))return e.leftPriceScales()[i]}return null}_targetPriceScaleIndex(e,t){if(e.mainSource()===t.mainSeries())return 0}_tryToGetDesiredPriceScale(e,t,i,r){switch(i){case"left":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay");case"right":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay");case"as-series":return void 0!==r?(0,s.ensureNotNull)(r.priceScale()):e.isMainPane()?(0,s.ensureNotNull)((0,s.ensureNotNull)(e.mainDataSource()).priceScale()):this.createNewPriceScaleIfPossible(e);case"overlay":return e.createPriceScaleAtPosition("overlay")}}}const a=[{name:"left",title:(0,r.t)("Stack on the left"),ctor:class extends o{constructor(e){super(e)}apply(e){const t=e.model() +;e.rightPriceScales().slice(0).forEach(i=>e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay")}}},{name:"right",title:(0,r.t)("Stack on the right"),ctor:class extends o{constructor(e){super(e)}apply(e){const t=e.model();e.leftPriceScales().slice(0).forEach(i=>e.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay")}}},{name:"auto",title:(0,r.t)("Auto"),ctor:class extends o{constructor(e){super(e)}apply(e){if(e.containsMainSeries()){const t=(0,s.ensureNotNull)((0,s.ensureNotNull)(e.mainDataSource()).priceScale());e.movePriceScale(t,"right",0)}const t=e.model();for(;e.leftPriceScales().length>e.rightPriceScales().length;){const i=e.leftPriceScales()[e.leftPriceScales().length-1];e.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t))}for(;e.rightPriceScales().length-e.leftPriceScales().length>1;){const i=e.rightPriceScales()[e.rightPriceScales().length-1];e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t))}}createNewPriceScaleIfPossible(e){if(!this.canCreateNewPriceScale(e))return e.createPriceScaleAtPosition("overlay");const t=e.leftPriceScales().lengtht.name===e));return new t.ctor(t)}function c(){return a}},85847:(e,t,i)=>{"use strict";i.d(t,{SelectionIndexes:()=>r});var s=i(88537);class r{constructor(e){this._baseIndex=null,this._offsetInBar=null,this._offsetInTime=null,this._barsBetweenPoints=null,this._timescale=e}indexes(){const e=this._timescale.visibleBarsStrictRange();if(null===e)return[];const t=e.firstBar(),i=e.lastBar();if(null===this._offsetInTime||null===this._barsBetweenPoints){const e=this._timescale.barSpacing();this._barsBetweenPoints=Math.floor(120/e),this._offsetInBar=i%this._barsBetweenPoints,this._offsetInTime=this._timescale.indexToTimePoint(this._offsetInBar),this._baseIndex=this._timescale.baseIndex()}const r=this._timescale.baseIndex();this._baseIndex!==r&&(this._baseIndex=r,this._offsetInBar=(0,s.ensureNotNull)(this._timescale.timePointToIndex(this._offsetInTime)));const n=(0,s.ensureNotNull)(this._offsetInBar),o=[];let a=Math.floor((t-n)/this._barsBetweenPoints);const l=Math.floor((i-n)/this._barsBetweenPoints);for(;a<=l;a++)o.push(n+a*this._barsBetweenPoints);return o}clear(){this._offsetInBar=null,this._offsetInTime=null,this._baseIndex=null,this._barsBetweenPoints=null}}},41892:(e,t,i)=>{"use strict";i.d(t,{SelectionRenderer:()=>l});var s=i(34026),r=i(45112),n=i(84346),o=i(56589);const a=r.colorsPalette["color-tv-blue-600"];class l{constructor(e){this._data=e||null}setData(e){this._data=e}draw(e,t){if(null===this._data||!this._data.visible)return;const i=t.pixelRatio;e.strokeStyle=void 0!==this._data.color?this._data.color:a, +e.lineCap="butt";const s=Math.max(1,Math.floor(i));e.lineWidth=s;const r=this._data.vertOffset||0;for(let t=0;t(0,s.pointInBox)(t,e))}_drawMarker(e,t,i,s,r){let n=Math.round(3.5*r*2);n%2!=s%2&&(n+=1);let o=Math.round(n+2*(.5*s+.75*r));o%2!=s%2&&(o+=1);const a=Math.round(t.x*r),l=Math.round((t.y+i)*r),c=s%2/2;e.beginPath(),e.arc(a+c,l+c,o/2,0,2*Math.PI,!0),e.closePath(),e.fill(),e.beginPath(),e.arc(a+c,l+c,n/2,0,2*Math.PI,!0),e.closePath(),e.stroke()}}},55030:(e,t,i)=>{"use strict";i.d(t,{SeriesBase:()=>Wt});var s=i(88537),r=i(49483),n=i(51768),o=i(76422),a=i(98125),l=i(22932),c=i(63948),h=i(71053),d=i(2015),u=i.n(d),p=i(37667),_=i(28930),m=i(97098),g=i(16654),f=i(45058),v=i(28353),S=i(67337),y=i(1570),b=i(50338),w=i(40264);const C=(0,v.t)("Symbol Error"),P=S.enabled("hide_unresolved_symbols_in_legend");class T extends b.StatusProviderBase{constructor(e,t,i,s){super(t),this._series=e,this._statusViewProperties=i,this._options=s||{}}text(){return(0,w.generateTitleForGui)(this._getTitleGenerationOptions())}getSplitTitle(){return(0,w.generateSplitTitleForGui)(this._getTitleGenerationOptions())}bold(){return!1}size(){return this._statusViewProperties.childs().fontSize.value()+"px"}errorStatus(){const e=this._series.seriesErrorMessage();return null!==e?{error:e,title:C}:null}_getTitleGenerationOptions(){const e=this._series.symbolInfo(),t=this._statusViewProperties.childs(),i=this._series.symbolTextSourceProxyProperty().value();let s;return t.showExchange.value()&&e&&(s=(0,p.isEconomicSymbol)(e)&&e.source?e.source:e.exchange),{description:"ticker"===i?e&&e.name||void 0:(0,y.getTranslatedSymbolDescription)({pro_name:e&&e.pro_name||void 0,short_name:e&&e.name||void 0,description:e&&e.description||void 0,short_description:e&&e.short_description||void 0,local_description:e&&e.local_description||void 0,language:e&&e.language||void 0}),exchange:s,symbol:P&&null===e?"":this._series.symbol(),interval:t.showInterval.value()&&!this._options.hideResolution?this._series.interval():void 0,style:this._series.properties().childs().style.value(),inputs:this._series.getInputsProperties().state(),boxSize:this._series.data().boxSize,reversalAmount:this._series.data().reversalAmount,ticker:"ticker-and-description"===i?e&&e.name||void 0:"",branding:this._options.branding}}}class x extends f.StatusView{constructor(e,t,i,s){super(new T(e,t,i,s)),this._invalidated=!0,this._series=e,this._series.onRestarted().subscribe(this,this.update), +this._series.dataEvents().symbolResolved().subscribe(this,this.update),this._series.dataEvents().completed().subscribe(this,this.update),this._series.boxSizeValue().subscribe(this.update.bind(this)),i.childs().symbolTextSource.listeners().subscribe(this,this.update)}getSeriesPrecision(){let e=4;const t=this._series.symbolInfo();return t&&t.pricescale&&(e=Math.round(Math.log(t.pricescale)/Math.log(10))),e}round(e){const t=this.getSeriesPrecision(),i=Math.round(e*Math.pow(10,t))/Math.pow(10,t);return i?i.toString():""}update(){this._invalidated=!0}text(){return this._updateImpl(),super.text()}color(){return this._updateImpl(),super.color()}bold(){return this._updateImpl(),super.bold()}size(){return this._updateImpl(),super.size()}getSplitTitle(){return this._updateImpl(),this._statusProvider.getSplitTitle()}_updateImpl(){this._invalidated&&(this._bold=this._statusProvider.bold(),this._size=this._statusProvider.size(),this._text=this._statusProvider.text(),this._invalidated=!1)}}var I=i(14445),M=i(35218),L=i(85733),A=i(83393),E=i(14291);const k=r.CheckMobile.any(),D=S.enabled("hide_resolution_in_legend");class V extends I.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._series=e,this._model=t,this._valuesProvider=this._createValuesProvider(e,t),this._items=this._valuesProvider.getItems().map(e=>new I.DataWindowItem(e.title,"",e.unimportant)),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}series(){return this._series}_updateImpl(){const e=this._series.symbolInfo();if(e){const t=[e.name];D||t.push((0,M.translatedIntervalString)(this._series.interval())),(0,p.isEconomicSymbol)(e)&&e.source?t.push(e.source):t.push((0,r.onWidget)()||"forex"===e.type?e.exchange:e.listed_exchange),this._header=t.join(", "),this._title=e.description}else this._header=this._series.symbol();const t=this._model.crossHairSource().appliedIndex(),i=this._valuesProvider.getValues(t);for(let e=0;ee||t||i,i.showBarChange,i.showSeriesOHLC,i.showVolume),this._visibilityProperty.subscribe(this,this.update)}areValuesVisible(){return this._visibilityProperty.value()}additional(){return null}marketTitle(){const e=this._series.marketStatusModel().status().value();return this._showLastPriceAndChangeOnly()&&("pre_market"===e||"post_market"===e)?O+":":""}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_createValuesProvider(e,t){return new N(e,t)}}var W=i(52714),H=i.n(W),z=i(90388),U=i(10480);function j(){const e=window.ChartApiInstance.serverTimeOffset();return Date.now()/1e3+e}function G(e,t,i){return e<=i?t<=i?1/0:t/1e3:Math.min(e,t)/1e3}class q{constructor(e,t){this._marketStatus=new(H())(null),this._lastMarketStatus=null,this._sessionsSpec=null,this._nextSessionEdgeInternal=null,this._nextSessionEdge=new(H())(null),this._recalcNextSessionEdgeTimerId=null,this._quotesProvider=e,e.quotesUpdate().subscribe(this,this._update.bind(this)),e.quoteSymbolChanged().subscribe(this,()=>{this._nextSessionEdgeInternal=null,this._recalculateNextSessionEdge()}),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.quoteSymbolChanged().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this),null!==this._recalcNextSessionEdgeTimerId&&clearTimeout(this._recalcNextSessionEdgeTimerId)}setSymbolInfo(e){var t,i,s,r,n;if(this._nextSessionEdgeInternal=null,null===e)return void(this._sessionsSpec=null);const o=new z.SessionSpec(e.timezone,null!==(t=e.session_display)&&void 0!==t?t:e.session,e.session_holidays,e.corrections);let a,l;const c=null===(i=e.subsessions)||void 0===i?void 0:i.find(e=>"premarket"===e.id),h=null===(s=e.subsessions)||void 0===s?void 0:s.find(e=>"postmarket"===e.id);void 0!==c&&(a=new z.SessionSpec(e.timezone,null!==(r=c["session-display"])&&void 0!==r?r:c.session,e.session_holidays,c["session-correction"])), +void 0!==h&&(l=new z.SessionSpec(e.timezone,null!==(n=h["session-display"])&&void 0!==n?n:h.session,e.session_holidays,h["session-correction"])),this._sessionsSpec={general:o,preMarket:a,postMarket:l},this._recalculateNextSessionEdge()}status(){return this._marketStatus}nextSessionEdge(){return this._nextSessionEdge}_resetStatus(){this._marketStatus.setValue(null)}_update(e){void 0!==e&&void 0!==e.values.current_session&&(this._lastMarketStatus=e.values.current_session),null!==this._lastMarketStatus?this._marketStatus.setValue(this._lastMarketStatus):this._resetStatus()}_getNextSessionEdgeInternal(){var e;if(null===this._sessionsSpec||"24x7"===this._sessionsSpec.general.spec())return null;const t=1e3*j();if(null===this._nextSessionEdgeInternal||(null!==(e=this._nextSessionEdgeInternal.timestamp)&&void 0!==e?e:1/0)<=t/1e3){const{general:e,preMarket:i,postMarket:s}=this._sessionsSpec,r=(0,U.get_timezone)(e.timezone()),n=(0,U.utc_to_cal)(r,t),o=G((0,U.cal_to_utc)(r,e.alignToNearestSessionStart(n,1)),(0,U.cal_to_utc)(r,e.alignToNearestSessionEnd(n,1)),t),a=G(void 0!==i?(0,U.cal_to_utc)(r,i.alignToNearestSessionStart(n,1)):1/0,void 0!==i?(0,U.cal_to_utc)(r,i.alignToNearestSessionEnd(n,1)):1/0,t),l=G(void 0!==s?(0,U.cal_to_utc)(r,s.alignToNearestSessionStart(n,1)):1/0,void 0!==s?(0,U.cal_to_utc)(r,s.alignToNearestSessionEnd(n,1)):1/0,t),c=Math.min(o,a,l);c===1/0&&(this._nextSessionEdgeInternal={timestamp:null}),this._nextSessionEdgeInternal=c===l?{timestamp:c,status:"post_market"}:c===a?{timestamp:c,status:"pre_market"}:{timestamp:c}}return this._nextSessionEdgeInternal}_recalculateNextSessionEdge(){const e=this._getNextSessionEdgeInternal();if(null===e||null===e.timestamp)return void this._nextSessionEdge.setValue(null);const t={status:e.status,remainingSeconds:Math.max(0,e.timestamp-j())};if(null===this._recalcNextSessionEdgeTimerId){let e=Math.ceil(t.remainingSeconds%60);0===e&&(e+=60),this._recalcNextSessionEdgeTimerId=setTimeout(()=>this._recalculateNextSessionEdgeByTimer(),1e3*e)}this._nextSessionEdge.setValue(t)}_recalculateNextSessionEdgeByTimer(){this._recalcNextSessionEdgeTimerId=null,this._recalculateNextSessionEdge()}}var Y=i(8175),K=i(29823),$=i(69177),X=i(11075),Z=i(9423);let J=0;class Q{constructor(e,t){this._extrapolatedData=[],this._cacheForFuture=!1,this._modelId=J++,this._builderCache=null,this._uniqueId=(0,Z.randomHashN)(6),this._resolution=t,this._symbolInfo=e,this._valid=Boolean(e.timezone)&&Boolean(e.session),this._session=new $.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections)}syncSourceTarget(){return{uniqueId:this._uniqueId,resolution:this._resolution,symbolInfo:this._symbolInfo,session:this._session.state()}}getSymbolInfo(){return this._symbolInfo}getSession(){return this._session}getResolution(){return this._resolution}uniqueId(){return this._modelId}distance(e,t){if(!this.isValid())return{success:!1};if(e>t)return{success:!1};if(e===t)return{success:!0,result:0} +;let i=this._extrapolatedData.length,s=0!==i?this._extrapolatedData[0]:null,r=null!==s?this._extrapolatedData[i-1]:null;const n=er){const s=(0,X.extrapolateBarsFrontToTime)(this._barBuilder(),r||1e3*e,1e3*t,2e3,!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=n}if(r=this._extrapolatedData[i-1],r<1e3*t)return{success:!1};const o=this._extrapolatedData.indexOf(1e3*t);return-1===o?{success:!1}:{success:!0,result:o}}projectTime(e,t){if(!this.isValid())return e;let i=this._extrapolatedData.length,s=i>0?this._extrapolatedData[0]:null,r=null!==s?this._extrapolatedData[i-1]:null;const n=t>=0;1e3*e===s&&this._cacheForFuture===n||(this._extrapolatedData=[1e3*e],i=1,s=null,r=null);const o=Math.abs(t);if(null===s||o>=i){const s=(0,X.extrapolateBarsFrontByCount)(this._barBuilder(),r||1e3*e,Math.sign(t)*(o-i+1),!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=n}return i0?ae(e):function(e,t){return ie().hasEodSymbols(e.full_name)||t===g.STATUS_EOD}(e,t)?(i.push("EOD"),i):i;var s}class ce{constructor(e,t,i){this._dataUpdatedModeStatus=new(H())(null),this._symbolInfo=(0,ee.createWVFromGetterAndSubscription)(e.getter,e.onChange),this._status=(0,ee.createWVFromGetterAndSubscription)(t.getter,t.onChange),this._symbolInfo.subscribe(this._update.bind(this)),this._status.subscribe(this._update.bind(this)),this._resetSubscription=i,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._symbolInfo.destroy(),this._status.destroy(),this._resetSubscription.unsubscribeAll(this)}status(){return this._dataUpdatedModeStatus.readonly()}symbolName(){const e=this._symbolInfo.value();return null!==e?e.name:""}time(){const e=this._symbolInfo.value(),t=null!==e&&e.delay&&e.delay>0?e.delay:900;return Math.round(t/60)}listedExchange(){const e=this._symbolInfo.value();return null!==e?e.listed_exchange:""}async description(){const e=this._symbolInfo.value();if(null===e)return"";let t={};try{t=(0,s.ensureNotNull)(await async function(e){return null}())}catch(e){oe.logWarn("Cannot get exchange "+(0,ne.errorToString)(e))} +return t.description||e.listed_exchange}exchange(){const e=this._symbolInfo.value();return null!==e?e.exchange:""}proName(){const e=this._symbolInfo.value();return null!==e?e.pro_name:""}firstReplacedByBatsExchange(){const e=this._symbolInfo.value();return e&&null}_resetStatus(){this._dataUpdatedModeStatus.setValue(null)}_update(){const e=this._symbolInfo.value();if(null===e)return void this._dataUpdatedModeStatus.setValue(null);const t=this._status.value();if("string"==typeof t)return void this._dataUpdatedModeStatus.setValue(null);if(t===g.STATUS_LOADING||t===g.STATUS_RESOLVING)return;const i=le(e,t);0!==i.length?this._dataUpdatedModeStatus.setValue(i):this._dataUpdatedModeStatus.setValue(null)}}var he=i(40144),de=i(80643);class ue{constructor(e,t){this._dataProblem=new he.WatchedObject(null),this._quotesProvider=e,this._quotesProvider.quotesUpdate().subscribe(this,this._update.bind(this)),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this)}status(){return this._dataProblem}_resetStatus(){this._dataProblem.setValue(null)}_update(e){void 0===e.values||void 0===e.values.data_problem?this._resetStatus():this._dataProblem.setValue((0,de.clone)(e.values.data_problem))}}var pe=i(90810),_e=i(68906),me=i(97938),ge=i(3825);function fe(e){return e<10?"0"+e:e.toString()}var ve=i(74477),Se=i(33291);const ye=[0,1,2,3,9,8,10],be=S.enabled("force_exchange_as_title"),we={alwaysShowGlobalLast:!1,visibleOnHistoryOnly:!1,showCountdown:!0,showSymbolLabel:!0};class Ce extends me.PriceAxisView{constructor(e,t,i){super(),this._previousCountdown="",this._source=e,this._model=t,this._options={...we,...i}}updateCountdown(){this._countdownText()!==this._previousCountdown&&(this.update((0,Se.dataSourceChangeEvent)(this._source.id())),this._model.updateSourcePriceScale(this._source))}_getSource(){return this._source}_getModel(){return this._model}_isCountdownEnabled(){return this._options.showCountdown}_countdownText(){const e=K.Interval.parse(this._source.interval());if(e.isDWM()||e.isTicks()||e.isSeconds()&&1===e.multiplier())return"";const t=this._source.data().bars().last();if(null===t)return"";const i=1e3*(0,s.ensure)(t.value[0]),r=K.Interval.parse(this._source.interval()).inMilliseconds(),n=i.valueOf()+r;let o=Math.round((n-this._currentTime())/1e3);if(o<=0)return"";o=Math.min(o,r/1e3);let a=null;o>=3600&&(a=fe(Math.floor(o/3600))),o%=3600;const l=fe(Math.floor(o/60));o%=60;const c=fe(Math.floor(o));return null!==a?`${a}:${l}:${c}`:`${l}:${c}`}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._source.isVisible())return;const s=this._source.properties().childs();if(12===s.style.value())return;const r=this._model.timeScale().visibleBarsStrictRange(),n=this._source.data().last();if(null===r||null===n)return;if(this._options.visibleOnHistoryOnly&&r.contains(n.index))return;const o=this._model.properties().childs().scalesProperties.childs() +;let a=o.showSeriesLastValue.value(),l=this._isCountdownEnabled()&&-1!==ye.indexOf(s.style.value())&&s.showCountdown.value()&&(this._options.alwaysShowGlobalLast||r.contains(n.index)),c=this._options.showSymbolLabel&&o.showSymbolLabels.value();const h=o.seriesLastValueMode.value()===ge.PriceAxisLastValueMode.LastPriceAndPercentageValue,d=this._source.lastValueData(void 0,this._options.alwaysShowGlobalLast);if(d.noData)return;const u=8===s.style.value();if((a||l||c)&&u&&s.haStyle.childs().showRealLastPrice.value()){const e=this._source.lastValueData(void 0,!1),t=this._source.lastValueData(void 0,!0);e.noData||t.noData||e.index!==t.index||(a=!1,l=!1,c=!1)}if(i.background=this._source.priceLineColor(d.color),i.coordinate=d.coordinate,i.floatCoordinate=d.floatCoordinate,a||l){const t=this._axisFirstLineText(d,a);e.text=t,i.textColor=this.generateTextColor(i.background),e.textColor=i.textColor;const s=a&&h?(0,ve.getOppositeModePriceText)(this._source.priceScale(),d):"";e.secondLine=s,i.secondLineTextColor=i.textColor;const r=l?this._countdownText():"";this._previousCountdown=r,e.thirdLine=r,i.thirdLineTextColor=(0,_e.generateColor)(i.textColor,25),0===t.length&&0===s.length&&0===r.length||(e.visible=!0)}c&&(t.text=this._paneText(c),t.visible=t.text.length>0)}_paneText(e){let t="";const i=this._source.symbolInfo();return be?t=(0,p.displayedSymbolExchange)(i):e&&(t=(0,p.displayedSymbolName)(i)),t}_axisFirstLineText(e,t){return t?(0,ve.getCurrentModePriceText)(this._source.priceScale(),e):""}_currentTime(){return Date.now()+1e3*this._source.serverTimeOffset()}}var Pe=i(55057);class Te extends Ce{lastPrice(){return this._getSource().data().lastProjectionPrice}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const r=this._getModel(),n=this._getSource(),o=n.priceScale(),a=r.timeScale(),l=this.lastPrice();if(a.isEmpty()||o.isEmpty()||void 0===l)return;const c=a.visibleBarsStrictRange();if(null===c)return;const d=c.firstBar(),u=c.lastBar(),p=n.data(),_=p.search(u,h.PlotRowSearchMode.NearestLeft);if(null===_)return;const m=n.nearestIndex(d,h.PlotRowSearchMode.NearestRight);if(void 0===m)return;const g=n.model().properties().childs().scalesProperties.childs(),f=(0,s.ensureNotNull)(p.valueAt(m))[4];let v=i.background,S=g.showSeriesLastValue.value(),y=!1,b=!1,w=!1;const C=n.lastValueData(4,!1),P=n.properties().childs();if(8===P.style.value()&&P.haStyle.childs().showRealLastPrice.value()){const e=n.lastValueData(4,!0);if(e.noData||e.color===i.background||(v=e.color),!e.noData&&!C.noData){const t=e.index===C.index;y=t&&g.showSymbolLabels.value(),b=g.seriesLastValueMode.value()===ge.PriceAxisLastValueMode.LastPriceAndPercentageValue,S=S&&t,w=t&&this._isCountdownEnabled()&&P.showCountdown.value()}}else{v=n.barColorer().barStyle(_.index,!0).barColor}if(i.background=v,i.textColor=this.generateTextColor(v),i.secondLineTextColor=i.textColor,i.thirdLineTextColor=(0,_e.generateColor)(i.textColor,25),i.coordinate=o.priceToCoordinate(l,f),e.visible=S||w,!C.noData){const i=n.priceScale().isPercentage() +;C.formattedPriceAbsolute=o.formatPriceAbsolute(l),C.formattedPricePercentage=o.formatPricePercentage(l,f,!0),C.text=i?C.formattedPricePercentage:C.formattedPriceAbsolute,e.text=this._axisFirstLineText(C,S),e.secondLine=S&&b?i?C.formattedPriceAbsolute:C.formattedPricePercentage:"",e.thirdLine=w?this._countdownText():"",t.text=this._paneText(y)}t.visible=y}}var xe=i(28978),Ie=i(22221),Me=i(45112),Le=i(43891);const Ae={light:{lineStyle:Le.LINESTYLE_DOTTED,lineWidth:1,textColor:Me.colorsPalette["color-cold-gray-900"],backgroundColor:Me.colorsPalette["color-tv-blue-50"],lineColor:Me.colorsPalette["color-cold-gray-500"]},dark:{lineStyle:Le.LINESTYLE_DOTTED,lineWidth:1,textColor:Me.colorsPalette["color-white"],backgroundColor:Me.colorsPalette["color-tv-blue-a800"],lineColor:Me.colorsPalette["color-cold-gray-500"]}};function Ee(e){return e?Ae.dark:Ae.light}class ke extends Ie.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._isVisible=t.lineVisible,this._lineColor=t.lineColor,this._lineWidth=t.lineWidth,this._getValue=i}_updateImpl(){const e=this._lineRendererData;if(e.visible=!1,!this._isVisible.value())return;const t=this._model.mainSeries(),i=t.priceScale(),s=t.firstValue(),r=this._getValue();if(null===s||null===r)return;const n=Ee(this._model.isDark()),o=this._lineColor.value()?this._lineColor.value():n.lineColor,a=this._lineWidth.value()?this._lineWidth.value():n.lineWidth;e.visible=!0,e.y=i.priceToCoordinate(r,s),e.linestyle=n.lineStyle,e.linewidth=a,e.color=o}}class De extends me.PriceAxisView{constructor(e,t,i,s){super(),this._model=e,this._label=t,this._isVisible=i,this._getValue=s}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._isVisible.value())return;const s=this._model.mainSeries(),r=s.priceScale(),n=s.firstValue(),o=this._getValue();if(null===n||null===o)return;const a=Ee(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(o),t.text=this._label,i.coordinate=r.priceToCoordinate(o,n),i.background=a.backgroundColor,i.textColor=a.textColor}}class Ve extends Pe.PriceLineAxisView{constructor(e,t,i){super(),this._model=e,this._isLineVisible=t,this._getValue=i}_isVisible(){return this._isLineVisible.value()}_lineWidth(){return Ee(this._model.isDark()).lineWidth}_lineStyle(){return Ee(this._model.isDark()).lineStyle}_priceLineColor(e){return Ee(this._model.isDark()).lineColor}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),s=this._getValue();if(null===i||null===s)return{noData:!0};const r=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"",text:"",index:0}}}const Be=(0,v.t)("High"),Ne=(0,v.t)("Low");function Re(e,t,i,s){const r=new ke(e,i,s),n=new De(e,i.label,i.labelVisible,s);return{paneView:r,panePriceAxisView:new xe.PanePriceAxisView(n,t,e),priceAxisView:n,priceLineAxisView:new Ve(e,i.lineVisible,s)}}const Oe={light:{lineStyle:Le.LINESTYLE_DOTTED,lineWidth:1,textColor:(0,Me.getHexColorByName)("color-cold-gray-900"), +backgroundColor:(0,Me.getHexColorByName)("color-tv-blue-50"),lineColor:(0,Me.getHexColorByName)("color-cold-gray-500")},dark:{lineStyle:Le.LINESTYLE_DOTTED,lineWidth:1,textColor:(0,Me.getHexColorByName)("color-white"),backgroundColor:(0,Me.getHexColorByName)("color-tv-blue-a800"),lineColor:(0,Me.getHexColorByName)("color-cold-gray-500")}};function Fe(e){return e?Oe.dark:Oe.light}class We extends Ie.HorizontalLinePaneView{constructor(e,t,i){super(),this._model=e,this._isVisible=t.lineVisible,this._lineColor=t.lineColor,this._lineWidth=t.lineWidth,this._getValue=i}_updateImpl(){const e=this._lineRendererData;if(e.visible=!1,!this._isVisible.value())return;const t=this._model.mainSeries(),i=t.priceScale(),s=t.firstValue(),r=this._getValue();if(null===s||null===r)return;const n=Fe(this._model.isDark()),o=this._lineColor.value()?this._lineColor.value():n.lineColor,a=this._lineWidth.value()?this._lineWidth.value():n.lineWidth;e.visible=!0,e.y=i.priceToCoordinate(r,s),e.linestyle=n.lineStyle,e.linewidth=a,e.color=o}}class He extends me.PriceAxisView{constructor(e,t,i,s){super(),this._model=e,this._label=t,this._isVisible=i,this._getValue=s}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._isVisible.value())return;const s=this._model.mainSeries(),r=s.priceScale(),n=s.firstValue(),o=this._getValue();if(null===n||null===o)return;const a=Fe(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(o),t.text=this._label,i.coordinate=r.priceToCoordinate(o,n),i.background=a.backgroundColor,i.textColor=a.textColor}}class ze extends Pe.PriceLineAxisView{constructor(e,t,i){super(),this._model=e,this._isLineVisible=t,this._getValue=i}_isVisible(){return this._isLineVisible.value()}_lineWidth(){return Fe(this._model.isDark()).lineWidth}_lineStyle(){return Fe(this._model.isDark()).lineStyle}_priceLineColor(e){return Fe(this._model.isDark()).lineColor}_value(){const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),s=this._getValue();if(null===i||null===s)return{noData:!0};const r=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",formattedPriceIndexedTo100:"",text:"",index:0}}}const Ue=(0,v.t)("Avg");function je(e,t,i,s){const r=i.childs(),n=function(e,t,i,s){const r=new We(e,i,s),n=new He(e,i.label,i.labelVisible,s),o=new xe.PanePriceAxisView(n,t,e),a=new ze(e,i.lineVisible,s);return{paneView:r,panePriceAxisView:o,priceAxisView:n,priceLineAxisView:a}}(e,t,{label:Ue,labelVisible:r.averageClosePriceLabelVisible,lineVisible:r.averageClosePriceLineVisible,lineColor:r.averagePriceLineColor,lineWidth:r.averagePriceLineWidth},()=>s(0));return{paneViews:[n.paneView],panePriceAxisViews:[n.panePriceAxisView],priceAxisViews:[n.priceAxisView],priceLineAxisViews:[n.priceLineAxisView]}}var Ge=i(2872),qe=i.n(Ge),Ye=i(14791),Ke=i(86441);class $e{constructor(){this._data=null}setData(e){this._data=e}data(){return this._data}draw(e,t){const i=this._data;if(null===i)return;const s=t.pixelRatio;e.save() +;const r=Math.max(1,Math.floor(s)),n=r%2/2,o=Math.round(i.center.x*s)+n,a=i.center.y*s;e.fillStyle=i.seriesLineColor,e.beginPath();const l=Math.max(2,1.5*i.seriesLineWidth)*s;e.arc(o,a,l,0,2*Math.PI,!1),e.fill(),e.fillStyle=i.fillColor,e.beginPath(),e.arc(o,a,i.radius*s,0,2*Math.PI,!1),e.fill(),e.lineWidth=r,e.strokeStyle=i.strokeColor,e.beginPath(),e.arc(o,a,i.radius*s+r/2,0,2*Math.PI,!1),e.stroke(),e.restore()}hitTest(e,t){return null}}function Xe(e){return e}const Ze=[{start:0,end:.25,startRadius:4,endRadius:10,startFillAlpha:.25,endFillAlpha:0,startStrokeAlpha:.4,endStrokeAlpha:.8,easing:Xe},{start:.25,end:.525,startRadius:10,endRadius:14,startFillAlpha:0,endFillAlpha:0,startStrokeAlpha:.8,endStrokeAlpha:0,easing:Xe},{start:.525,end:1,startRadius:14,endRadius:14,startFillAlpha:0,endFillAlpha:0,startStrokeAlpha:0,endStrokeAlpha:0,easing:Xe}];function Je(e,t,i,s){const r=i+(s-i)*t;return(0,_e.applyTransparency)(e,(0,_e.alphaToTransparency)(r))}function Qe(e,t){const i=e%2600/2600;let s;for(const e of Ze)if(i>=e.start&&i<=e.end){s=e;break}if(void 0===s)throw new Error("Last price animation internal logic error");const r=s.easing((i-s.start)/(s.end-s.start));return{fillColor:Je(t,r,s.startFillAlpha,s.endFillAlpha),strokeColor:Je(t,r,s.startStrokeAlpha,s.endStrokeAlpha),radius:(n=r,o=s.startRadius,a=s.endRadius,o+(a-o)*n)};var n,o,a}class et{constructor(e){this._renderer=new $e,this._invalidated=!0,this._stageInvalidated=!0,this._startTime=performance.now(),this._endTime=this._startTime-1,this._series=e}update(e){if(this._invalidated=!0,"data-source-change"===e.type&&e.dataSourceId===this._series.id()||"viewport-change"===e.type||"global-change"===e.type){const e=performance.now(),t=this._endTime-e;if(t>0)return void(t<650&&(this._endTime+=2600));this._startTime=e,this._endTime=e+2600}}invalidateStage(){this._stageInvalidated=!0}animationActive(){return performance.now()<=this._endTime}stopAnimation(){this._endTime=this._startTime-1}renderer(e,t){return this._invalidated?(this._updateImpl(e,t),this._invalidated=!1,this._stageInvalidated=!1):this._stageInvalidated&&(this._updateRendererDataStage(),this._stageInvalidated=!1),this._renderer}_updateImpl(e,t){this._renderer.setData(null);const i=this._series.model().timeScale(),s=i.visibleBarsStrictRange(),r=this._series.firstValue(),n=this._series.lastValueData(void 0,!0,!0);if(null===s||null===r||void 0===n.index||void 0===n.price||!s.contains(n.index))return;const o=new Ke.Point(i.indexToCoordinate(n.index),this._series.priceScale().priceToCoordinate(n.price,r)),a=n.color,l=this._series.properties().childs();let c;switch(this._series.style()){case 3:c=l.areaStyle.childs().linewidth.value();break;case 10:const t=l.baselineStyle,i=Math.round(e*(Math.abs(100-t.childs().baseLevelPercentage.value())/100));c=o.y<=i?t.childs().topLineWidth.value():t.childs().bottomLineWidth.value();break;default:c=l.lineStyle.childs().linewidth.value()}const h=Qe(this._duration(),a);this._renderer.setData({seriesLineColor:a,seriesLineWidth:c,fillColor:h.fillColor,strokeColor:h.strokeColor, +radius:h.radius,center:o})}_updateRendererDataStage(){const e=this._renderer.data();if(null!==e){const t=Qe(this._duration(),e.seriesLineColor);e.fillColor=t.fillColor,e.strokeColor=t.strokeColor,e.radius=t.radius}}_duration(){return this.animationActive()?performance.now()-this._startTime:2599}}var tt=i(23653),it=i(59100),st=i(95836),rt=i(9315),nt=i(38712);class ot extends nt.SeriesHorizontalLinePaneView{constructor(e){super(e),this._lineRendererData.linestyle=Le.LINESTYLE_DOTTED}_updateImpl(){this._lineRendererData.visible=!1;const e=this._series.properties().childs();if(!e.showPriceLine.value())return;if(12===e.style.value())return;const t=this._series.lastValueData(void 0,!0);t.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=t.coordinate,this._lineRendererData.color=this._series.priceLineColor(t.color),this._lineRendererData.linewidth=e.priceLineWidth.value())}}var at=i(42169),lt=i(52640),ct=i(55257),ht=i(49094),dt=i(84346),ut=i(16282);class pt extends ut.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null,this._barWidth=null}setData(e){this._data=e,this._barWidth=Math.max(1,Math.round((0,ht.optimalHiLoWidth)(e.barSpacing)))}hitTest(e){if(null===this._data||null===this._barWidth)return null;const t=this._data.bars,i=.5*this._data.barSpacing;if(0===t.length)return null;if(e.xt[t.length-1].time+i)return null;const s=t[(0,ct.lowerbound)(t,e.x-i,(e,t)=>e.times.time+i)return null;const r=(0,ht.interactionTolerance)().series+this._barWidth/2,n=Math.min(s.high,s.low),o=Math.max(s.high,s.low),a=this._data.fontSize;return n-r-a<=e.y&&e.y<=n+r||o-r<=e.y&&e.y<=o+r+a?new dt.HitTestResult(dt.HitTestResult.REGULAR):null}_drawImpl(e){if(null===this._data||null===this._barWidth)return;e.save(),e.translate(.5,.5),e.textAlign="center",e.fillStyle=this._data.labelColor,e.font=(0,lt.makeFont)(this._data.fontSize,this._data.font);const t=this._data.bars,i=this._data.inverted;for(let s=0;se.highLabelWidth<=n&&e.lowLabelWidth<=n),a={bars:this._bars,wickVisible:!1,bodyVisible:r.drawBody.value(),barSpacing:n,borderVisible:r.showBorders.value(),barWidth:(0,ht.optimalHiLoWidth)(n),font:vt.CHART_FONT_FAMILY,fontSize:r.fontSize.value(),labelColor:r.labelColor.value(),inverted:s.isInverted(),labelsPadding:3},l=new mt.CompositeRenderer;return this._candlesRenderer.setData(a),l.append(this._candlesRenderer),o&&(this._labelsRenderer.setData(a),l.append(this._labelsRenderer)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&l.append(new gt.SelectionRenderer(this._selectionData)),l}topPixelMargin(){return this._margin()}bottomPixelMargin(){return this._margin()}_margin(){const e=this._source.properties().childs().hiloStyle.childs();return e.showLabels.value()?e.fontSize.value()+6:0}_barUpdater(e,t,i,s){const r=i[2],n=i[3];if(!yt(r)||!yt(n))return!1;if(s.high=s.open=r,s.low=s.close=n,t){const t=s;t.highLabel=e.format(r),t.highLabelWidth=this._getLabelWidth(t.highLabel),t.lowLabel=e.format(n),t.lowLabelWidth=this._getLabelWidth(t.lowLabel)}return!0}_needLabels(){const e=this._model.timeScale().barSpacing();return this._source.properties().childs().hiloStyle.childs().showLabels.value()&&e>5}_getLabelWidth(e){return this._widthsCache.measureText(this._context,e)}}var wt=i(81688),Ct=i(59153),Pt=i(66919),Tt=i(85224),xt=i(33837),It=i(34041);class Mt extends St.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const s=this._source.properties().childs().haStyle.childs(),r=this._model.timeScale().barSpacing(),n={bars:this._bars,barSpacing:r,bodyVisible:s.drawBody.value(),borderVisible:s.drawBorder.value(),borderColor:s.borderColor.value(),wickColor:s.wickColor.value(),barWidth:(0,ht.optimalBarWidth)(r),wickVisible:s.drawWick.value(),isPriceScaleInverted:i.isInverted()},o=new mt.CompositeRenderer;return o.append(new _t.PaneRendererCandles(n)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&o.append(new gt.SelectionRenderer(this._selectionData)),o}}var Lt=i(30076),At=i(35251),Et=i(69147);const kt=S.enabled("price_scale_always_last_bar_value"),Dt=S.enabled("display_data_mode"),Vt=(r.CheckMobile.any(),!S.enabled("hide_series_legend_item")),Bt=S.enabled("hide_price_scale_global_last_bar_value"),Nt=S.enabled("show_average_close_price_line_and_label"),Rt=(0,a.getLogger)("Chart.Series"),Ot=S.enabled("pre_post_market_sessions"),Ft={countdownEnabled:!0,lastPriceAnimationEnabled:!0};class Wt extends l.PriceDataSource{constructor(e,t,i,r){super(e,"_seriesId"),this.chartWidgetInitialized=new(qe()),this.requestingIntradayWhenNotSupported=new(qe()),this.requestingResolutionWhenNotSupported=new(qe()),this.requestingStyleIsNotSupported=new(qe()),this.requestingStyleSupportRecovered=new(qe()), +this._paneView=null,this._futureBarsPaneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=null,this._gotoDateView=null,this._baseHorizontalLineView=null,this._priceStep=null,this._symbolInfo=null,this._prevSymbolInfo=null,this._isPrePostMarketPricesAvailableProperty=new(u())(!1),this._isBackAdjustmentForbiddenProperty=new(u())(!0),this._isSettlementAsCloseForbiddenProperty=new(u())(!0),this._highLowPriceCache=new Map,this._averagePriceCache=new Map,this._prevClosePriceAxisView=null,this._priceScaleChanged=new(qe()),this._priceScaleAboutToBeChanged=new(qe()),this._onRestarted=new(qe()),this._onStatusChanged=new(qe()),this._extendedHoursChanged=new(qe()),this._tagsChanged=new(qe()),this._intervalChanged=new(qe()),this._sessionIdChanged=new(qe()),this._currency=null,this._unit=null,this._requestMoreDataAvailable=!0,this._lineStyleLastPriceCirclePaneView=new et(this),this._prevClosePriceLineView=null,this._dataPoweredBy=null,this._loading=!0,this._seriesLoaded=!1,this._status=0,this._symbolResolvingActive=new(H())(!1),this._predictBars=0,this._syncModel=null,this._data=null,this._endOfDataType=null,this._haStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(8,!0))},this._renkoStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(4,!0))},this._pbStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(7,!0))},this._kagiStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(5,!0))},this._pnfStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(6,!0))},this._rangeStyle={studyId:(0,s.ensureNotNull)((0,p.chartStyleStudyId)(11,!0))},this._boxSizeValue=new(H()),this._base=100,this._pointValue=1,this._formattingDeps=null,this._formatter=new m.PriceFormatter(this._base),this._ignoreMinMoveFormatter=new m.PriceFormatter(this._base),this._ignoreMinMovePriceStep=null,this._lastBarCloseTime=null,this._onSessionIdPropertyChangedBound=this._onSessionIdPropertyChanged.bind(this),this._ignoreSessionIdProxyPropertyChanges=!1,this._textSourceIsAlwaysTickerRestrictionEnabled=!1,this._lastPriceAnimationActive=!1,this._currentSession="out_of_session",this._onStyleChanged=new(qe()),this._preventRestartOnChartStyleChange=!1,this._intervalObj=null,this._obsoleteZOrder=0,this._seriesErrorMessage=null,this._seriesAlwaysFalseHibernatedVW=new(H())(!1),this._styleToRecover=null,this._isActingAsSymbolSource=new(H())(!0),this._seriesSource=new it.SeriesDataSource(e.chartApi(),"s",r);const n=this._seriesSource.dataEvents();n.symbolResolved().subscribe(this,this._onSymbolResolved),n.symbolError().subscribe(this,this._onSymbolError),n.seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),n.seriesError().subscribe(this,this._onSeriesError),n.loading().subscribe(this,this._onSeriesLoading),n.completed().subscribe(this,this._onSeriesCompleted),n.dataUpdated().subscribe(this,this._onDataUpdated),n.barReceived().subscribe(this,this._onBarReceived),this._quotesProvider=new pe.QuotesProvider,this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate);const o=t.childs() +;if(t.hasChild("extendedHours")){(0,s.ensureDefined)(o.extendedHours).value()&&!t.hasChild("sessionId")&&t.addChild("sessionId",new(u())("extended")),t.removeProperty("extendedHours")}t.hasChild("sessionId")||t.addChild("sessionId",new(u())(_.SubsessionId.Regular)),this._setProperties(t),this._sessionIdProxyProperty=new(u())(o.sessionId.value()),o.sessionId.subscribe(this,()=>this._updateSessionIdProxyProperty()),this._sessionIdProxyProperty.subscribe(this,this._onSessionIdProxyPropertyChanged),this._symbolTextSourceProxyProperty=new(u()),this._recalcSymbolTextSourceProxyProperty(),o.statusViewStyle.childs().symbolTextSource.subscribe(this,this._recalcSymbolTextSourceProxyProperty),this._symbolTextSourceProxyProperty.subscribe(this,()=>e.lightUpdate()),this._options=(0,de.merge)((0,de.clone)(Ft),i),this._prevChartStyle=o.style.value(),this._priceAxisView=new Ce(this,e,{alwaysShowGlobalLast:!Bt,showCountdown:i.countdownEnabled});let a=null;kt||Bt||(a=new Ce(this,e,{visibleOnHistoryOnly:!0,showSymbolLabel:!1,showCountdown:!1,alwaysShowGlobalLast:!1})),this._priceLinePriceAxisView=new Pe.SeriesPriceLineAxisView(this),this._priceLineAxisViews=[this._priceLinePriceAxisView];const l=new Te(this,e,{showCountdown:i.countdownEnabled});this._priceAxisViews=[this._priceAxisView,l],null!==a&&this._priceAxisViews.push(a),this._panePriceAxisView=new xe.PanePriceAxisView(this._priceAxisView,this,e),this._historyPricePanePriceAxisView=null!==a?new xe.PanePriceAxisView(a,this,e):null,this._projectionPriceAxisView=new xe.PanePriceAxisView(l,this,e),this._labelPaneViews=[this._panePriceAxisView,this._projectionPriceAxisView],null!==this._historyPricePanePriceAxisView&&this._labelPaneViews.push(this._historyPricePanePriceAxisView),this._highLowAvgPaneViews=[],this._averagePaneViews=[],Nt&&this._createAverageViews(),this._createHighLowAvgViews(),this._subscribeRestartToSessionIdChange(),o.visible.subscribe(this,this._updateLastPriceAnimationActive),this._updateLastPriceAnimationActive(),this._dataWindowView=new V(this,e),this._legendView=new F(this,e);const c={branding:!1};this._statusView=new x(this,this._model.properties().childs().scalesProperties.childs().textColor,o.statusViewStyle,c),this._marketStatusModel=new q(this._quotesProvider,o.symbol.listeners()),this._dataUpdatedModeModel=Dt?new ce({getter:this.symbolInfo.bind(this),onChange:n.symbolResolved()},{getter:this.status.bind(this),onChange:this._onStatusChanged},o.symbol.listeners()):null,this._dataProblemModel=new ue(this._quotesProvider,o.symbol.listeners()),this._symbolResolvingActive.subscribe(()=>e.realignLineTools()),this._intervalChanged.subscribe(this,()=>e.realignLineTools())}supportsPressedChunks(){return!0}pressedChunks(e,t){return this.data().pressedChunks(e,t)}seriesErrorMessage(){return this._seriesErrorMessage}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),this._model.timeScale().visibleBarsStrictRangeChanged().unsubscribeAll(this),this._unsubscribeRestartToSessionIdChange()}isActingAsSymbolSource(){ +return this._isActingAsSymbolSource.readonly()}createPaneView(){this._paneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=this.hasClosePrice()?new ot(this):null;const e=this._properties.childs().style.value();switch(e){case 0:this._paneView=new Pt.SeriesBarsPaneView(this,this._model);break;case 1:this._paneView=new Tt.SeriesCandlesPaneView(this,this._model);break;case 2:this._paneView=new xt.SeriesLinePaneView(this,this._model);break;case 3:this._paneView=new It.SeriesAreaPaneView(this,this._model);break;case 8:this._paneView=new Mt(this,this._model);break;case 9:this._paneView=new Lt.SeriesHollowCandlesPaneView(this,this._model);break;case 13:this._paneView=new Ct.SeriesColumnsPaneView(this,this._model);break;case 10:{this._paneView=new At.SeriesBaselinePaneView(this,this._model);const e=this._properties.childs().baselineStyle.childs();this._waterlineView=new at.SeriesWaterlinePaneView({paneHeight:()=>this.priceScale().height(),color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}case 12:this._paneView=new bt(this,this._model)}if(null===this._paneView)throw Error("Unknown chart style assigned: "+e)}properties(){return this._properties}zorder(){return 0}quotesProvider(){return this._quotesProvider}currentSession(){return this._currentSession}getRealVisibleRange(){const e=this.model().timeScale().visibleBarsStrictRange();if(null===e)return null;const t=this.data().search(e.firstBar(),h.PlotRowSearchMode.NearestRight),i=this.data().search(e.lastBar(),h.PlotRowSearchMode.NearestLeft);return null===t||null===i?null:new wt.BarsRange(t.index,i.index)}syncModel(){if(!this._syncModel){const e=this.symbolInfo(),t=this.interval();if(!e||!t)return null;this._syncModel=new Q(e,t)}return this._syncModel}labelPaneViews(){return this._labelPaneViews}topPaneViews(){if(this._lastPriceAnimationActive){const e=this._lineStyleLastPriceCirclePaneView;return e.animationActive()&&setTimeout(()=>this._model.invalidate(tt.InvalidationMask.cursor()),0),e.invalidateStage(),[e]}return null}priceAxisViews(e,t){return e.findTargetPriceAxisViews(this,t,this._priceAxisViews,this._priceLineAxisViews)}clearHighLowPriceCache(){this._highLowPriceCache.clear()}clearAveragePriceCache(){this._averagePriceCache.clear()}priceScaleChanged(){return this._priceScaleChanged}priceScaleAboutToBeChanged(){return this._priceScaleAboutToBeChanged}disconnect(){this._seriesSource.stop(),this.m_symbol=void 0,this._predictBars=0,this._status=0,this._model.isSnapshot()||(this._prevSymbolInfo=null,this._symbolInfo=null)}isStatusBad(){return 12===this.status()||4===this.status()||10===this.status()}isStatusError(){return 12===this.status()}actualSymbol(){return(0,p.actualSymbol)(this.symbolInfo(),this.symbol())}proSymbol(){return(0,p.proSymbol)(this.symbolInfo(),this.symbol())}onStyleChanged(){return this._onStyleChanged}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}symbolSameAsCurrent(e){return(0, +Ye.symbolSameAsCurrent)(e,this.m_symbol,this.symbolInfo())}status(){return this._status}symbolInfo(){return this._symbolInfo}symbolResolved(){return this.dataEvents().symbolResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._seriesAlwaysFalseHibernatedVW}formatter(e=!0){return e?this._formatter:this._ignoreMinMoveFormatter}priceStep(e=!0){return e?this._priceStep:this._ignoreMinMovePriceStep}bars(){return this.data().bars()}nsBars(){return this.data().nsBars()}interval(){return this.properties().childs().interval.value()}setInterval(e){this.setSymbolParams({interval:e})}intervalObj(){const e=this.interval();if(null!==this._intervalObj&&this._intervalObj.resolutionString===e)return this._intervalObj.interval;const t=K.Interval.parse(e);return this._intervalObj={resolutionString:e,interval:t},t}prevClose(){const e=this.priceScale();if(e.isEmpty()||this.data().isEmpty())return null;const t=this.quotes(),i=this.firstValue();if(null===t||null===i)return null;const s=t.prev_close_price;return void 0===s?null:{coordinate:e.priceToCoordinate(s,i),floatCoordinate:e.priceToCoordinate(s,i),formattedPricePercentage:e.formatPricePercentage(s,i,!0),formattedPriceAbsolute:e.formatPriceAbsolute(s),formattedPriceIndexedTo100:e.formatPriceIndexedTo100(s,i)}}hasClosePrice(){return 12!==this.properties().childs().style.value()}lastValueData(e,t,i){const s={noData:!0},r=this.priceScale();if(this.model().timeScale().isEmpty()||r.isEmpty()||this.data().isEmpty())return s;const n=this.model().timeScale().visibleBarsStrictRange(),o=this.firstValue();if(null===n||null===o)return s;let a,l;if(t){const e=this.data().bars().last();if(null===e)return s;a=e.value,l=e.index}else{const e=this.data().bars().search(n.lastBar(),h.PlotRowSearchMode.NearestLeft);if(null===e)return s;a=e.value,l=e.index}const c=void 0!==e?a[e]:this._barFunction(a),d=this.barColorer().barStyle(l,!1),u=r.priceToCoordinate(c,o),p={...r.getFormattedValues(c,o,!0),noData:!1,color:d.barColor,floatCoordinate:u,coordinate:u,index:l};return i&&(p.price=c),p}isDWM(){return this.intervalObj().isDWM()}data(){var e;return null!==(e=this._data)&&void 0!==e?e:this._seriesSource.data()}clearData(){(0,s.assert)(null===this._data,"Cannot clear loaded data"),this._seriesSource.clearData()}nearestValue(e,t,i){const s=this.nearestData(e,i);return s?s.value[t]:void 0}onIntervalChanged(){return this._intervalChanged}onStatusChanged(){return this._onStatusChanged}onRestarted(){return this._onRestarted}onExtendedHoursChanged(){return this._extendedHoursChanged}sessionId(){return this.properties().childs().sessionId.value()}sessionIdChanged(){return this._sessionIdChanged}autoScaleInfo(e,t){const i=this.priceRange(e,t);if(null===this._paneView)return{range:i};const s=this._paneView;return{range:i,topPixelMargin:s.topPixelMargin?s.topPixelMargin():void 0,bottomPixelMargin:s.bottomPixelMargin?s.bottomPixelMargin():void 0}}onChartStyleChanged(){var e;this._updateBarFunction(), +!this._preventRestartOnChartStyleChange&&this.isNeedRestart()&&(this.data().clear(),this.model().timeScale().scrollToRealtime(!1),this.restart());const t=this.properties();this._prevChartStyle=t.childs().style.value(),this._onStyleChanged.fire(t.childs().style.value()),this.invalidateBarStylesCache(),this._updateLastPriceAnimationActive(),(null===(e=this._styleToRecover)||void 0===e?void 0:e.originalStyle)!==this.style()&&(this._styleToRecover=null)}setChartStyleWithIntervalIfNeeded(e,t){const i=this.interval(),s=null!=t?t:(0,rt.getResolutionByChartStyle)(e,i,this._model.defaultResolutions()),r=K.Interval.isEqual(s,i);this.setSymbolParams({interval:r?void 0:s,style:e})}styleStudyInfos(){return{haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle}}sessionIdProxyProperty(){return this._sessionIdProxyProperty}symbolTextSourceProxyProperty(){return this._symbolTextSourceProxyProperty}setTextSourceIsAlwaysTickerRestrictionEnabled(e){this._textSourceIsAlwaysTickerRestrictionEnabled=e,this._recalcSymbolTextSourceProxyProperty()}isPrePostMarketPricesAvailableProperty(){return this._isPrePostMarketPricesAvailableProperty}isSettlementAsCloseForbiddenProperty(){return this._isSettlementAsCloseForbiddenProperty}isBackAdjustmentForbiddenProperty(){return this._isBackAdjustmentForbiddenProperty}dataWindowView(){return this._dataWindowView}statusView(){return Vt?this._statusView:null}legendView(){return this._legendView}marketStatusModel(){return this._marketStatusModel}dataUpdatedModeModel(){return this._dataUpdatedModeModel}dataProblemModel(){return this._dataProblemModel}quotes(){return this.data().isEmpty()?null:this._quotesProvider.quotes()}base(){return this._base}pointValue(){return this._pointValue}barCloseTime(){return this._lastBarCloseTime}priceSource(){let e=null;const t=this._properties.childs();switch(t.style.value()){case 2:e=t.lineStyle.childs().priceSource.value();break;case 3:e=t.areaStyle.childs().priceSource.value();break;case 10:e=t.baselineStyle.childs().priceSource.value();break;case 13:e=t.columnStyle.childs().priceSource.value()}return e}updateAllViews(e){var t,i,s,r,n,o,a;null===(t=this._paneView)||void 0===t||t.update(e),this._dataWindowView.update(),this._legendView.update(),this._statusView.update(),this._averagePaneViews.forEach(t=>t.update(e)),this._highLowAvgPaneViews.forEach(t=>t.update(e)),this._labelPaneViews.forEach(t=>t.update(e)),this._priceAxisViews.forEach(t=>t.update(e)),this._priceLineAxisViews.forEach(t=>t.update(e)),null===(i=this._futureBarsPaneView)||void 0===i||i.update(e),null===(s=this._projectionBarsPaneView)||void 0===s||s.update(e),null===(r=this._waterlineView)||void 0===r||r.update(e),null===(n=this._priceLineView)||void 0===n||n.update(e),null===(o=this._gotoDateView)||void 0===o||o.update(e),null===(a=this._baseHorizontalLineView)||void 0===a||a.update(e);const l=this._model.activeStrategySource().value();null==l||l.updateAllViews(e),this._lineStyleLastPriceCirclePaneView.update(e) +}barFunction(){return this._barFunction}setSymbolParams(e){const{symbol:t,interval:i,currency:s,unit:r,style:n}=e,o=this.properties().childs(),a=void 0!==t&&t!==o.symbol.value(),l=void 0!==s&&s!==o.currencyId.value(),c=void 0!==r&&r!==o.unitId.value(),h=void 0!==i&&i!==o.interval.value(),d=void 0!==n&&n!==o.style.value();a&&o.symbol.setValueSilently(t),l&&o.currencyId.setValueSilently(s),c&&o.unitId.setValueSilently(r),h&&o.interval.setValueSilently(i),d&&o.style.setValueSilently(n),a&&o.symbol.listeners().fire(o.symbol),l&&o.currencyId.listeners().fire(o.currencyId),c&&o.unitId.listeners().fire(o.unitId),h&&o.interval.listeners().fire(o.interval),d&&(a||l||c||h?(this._preventRestartOnChartStyleChange=!0,o.style.listeners().fire(o.style),this._preventRestartOnChartStyleChange=!1):o.style.listeners().fire(o.style))}setSymbol(e){this.setSymbolParams({symbol:e})}currency(){return this.properties().childs().currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,p.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this.properties().childs().unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,p.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}symbolSource(){return this}title(){return this.symbolTitle()}name(){return this.symbolTitle()}symbolTitle(e,t,i="exchange"){let s=this.properties().childs().symbol.value();const r=this.symbolInfo();if(null!==r){const{type:t}=r;s=(0,p.symbolTitle)(r,e,"forex"===t?"exchange":i)}return t?s:`${s}, ${(0,M.translatedIntervalString)(this.properties().childs().interval.value())}`}setObsoleteZOrder(e){this._obsoleteZOrder=e}obsoleteZOrder(){return this._obsoleteZOrder}valuesProvider(){return new N(this,this.model())}statusProvider(e){return new T(this,this._model.properties().childs().scalesProperties.childs().textColor,this.properties().childs().statusViewStyle,e)}open(e){const t=this.data().valueAt(e);return t&&t[1]}high(e){const t=this.data().valueAt(e);return t&&t[2]}low(e){const t=this.data().valueAt(e);return t&&t[3]}close(e){const t=this.data().valueAt(e);return t&&t[4]}moveItem(e,t,i){if(10===this.style()&&0===t){const t=this.priceScale(),i=this.properties().childs().baselineStyle,s=t.height(),r=100-e.y/s*100,n=r<0?0:Math.round(10*r)/10;i.childs().baseLevelPercentage.setValue(Math.max(Math.min(n,100),0))}}requestMoreDataAvailable(){return this._requestMoreDataAvailable}endOfData(){return null!==this._endOfDataType}dataPoweredBy(){return null}boxSizeValue(){return this._boxSizeValue}isUserDeletable(){return!1}changeSymbol(){this.setSymbolIntervalCurrencyDelayed(),this.model().checkLineToolSelection()}changeInterval(){this.setSymbolIntervalCurrencyDelayed()}changeTimeFrame(){(0,n.trackEvent)("GUI","Change timeframe")}onTagsChanged(){return this._tagsChanged}state(e){const t=this.obsoleteZOrder();let i={type:"MainSeries",id:this.id(),zorder:t,haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle, +pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle};const s=this.properties().state();return this._symbolInfo&&(this._symbolInfo.ticker&&(s.symbol=this._symbolInfo.ticker),i.formattingDeps={format:this._symbolInfo.format,pricescale:this._symbolInfo.pricescale,minmov:this._symbolInfo.minmov,fractional:this._symbolInfo.fractional,minmove2:this._symbolInfo.minmove2}),this._model.unitConversionEnabled()||(s.unitId=null),i.state=s,e&&(i={...i,bars:this._barsState(this.bars()),nsBars:this._barsState(this.nsBars()),symbolInfo:this._symbolInfo,rtPrice:this.data().lastProjectionPrice,boxSize:this.data().boxSize,reversalAmount:this.data().reversalAmount}),i}restoreState(e,t){if(t&&this._setStatus(5),!this._model.unitConversionEnabled()&&e.state&&delete e.state.unitId,this._properties.mergeAndFire(e.state),this._properties.hasChild("esdBreaksStyle")&&this._properties.removeProperty("esdBreaksStyle"),this._prevChartStyle=this.properties().childs().style.value(),this.createPaneView(),t){const t=e;this.restoreData(t.bars,t.nsBars,t.symbolInfo,t.rtPrice,t.boxSize,t.reversalAmount)}e.formattingDeps&&(this._formattingDeps=e.formattingDeps,this._recreatePriceFormattingDependencies())}restoreData(e,t,i,s,r,n){this._status=5,this._data=new c.SeriesData,this._data.bars().restoreState(e),this._data.nsBars().restoreState(t),this._updateSymbolInfo(i,!1),this._data.lastProjectionPrice=s,this._data.boxSize=r;const o=this.properties().childs();r||(6===o.style.value()?this._data.boxSize=o.pnfStyle.childs().inputs.childs().boxSize.value():4===o.style.value()&&(this._data.boxSize=o.renkoStyle.childs().inputs.childs().boxSize.value())),this._data.reversalAmount=n,n||5===o.style.value()&&(this._data.reversalAmount=o.kagiStyle.childs().inputs.childs().reversalAmount.value()),this._loading=!1}_barsState(e){const t=e.state();return t.data.forEach(e=>e.value.splice(7,1)),t}_updateBarFunction(){if(12===this.properties().childs().style.value())this._barFunction=(0,c.barFunction)("low");else{const e=this.priceSource()||"close";this._barFunction=(0,c.barFunction)(e)}}_setProperties(e){e.hasChild("timeframe")||e.merge({timeframe:""}),e.hasChild("shortName")||e.merge({shortName:""}),e.hasChild("currencyId")||e.addChild("currencyId",new(u())(null)),e.hasChild("unitId")||e.addChild("unitId",new(u())(null)),this._properties=e;const t=e.childs();t.symbol.listeners().subscribe(this,this.changeSymbol),t.interval.listeners().subscribe(this,this.changeInterval),t.currencyId.listeners().subscribe(this,this._changeCurrency),t.unitId.listeners().subscribe(this,this._changeUnit),t.timeframe.listeners().subscribe(this,this.changeTimeFrame),e.subscribe(this,this._onPropertiesChanged)}_updateSessionIdProxyProperty(e){const t=this._properties.childs().sessionId.value();let i=t;if(e){const e=this.symbolInfo();null!==e&&(i=e.subsession_id||t)}this._ignoreSessionIdProxyPropertyChanges=!0,this._sessionIdProxyProperty.setValue(i),this._ignoreSessionIdProxyPropertyChanges=!1}_onSessionIdProxyPropertyChanged(){ +this._ignoreSessionIdProxyPropertyChanges||this._properties.childs().sessionId.setValue(this._sessionIdProxyProperty.value()),this._updateLastPriceAnimationActive()}_onSymbolResolved(e){var t;const i=this.properties().childs();S.enabled("charting_library_single_symbol_request")||(this.m_symbol=null!==(t=(0,p.extractSymbolNameFromSymbolInfo)(e,(0,p.symbolForApi)(e,i.symbol.value())))&&void 0!==t?t:i.symbol.value()),this._seriesErrorMessage=null,this._updateSymbolInfo(e,!1),this._model.updateSource(this),this._model.onWidget()||((0,n.trackEvent)("Symbol",e.listed_exchange,e.name),(0,n.trackEvent)("Symbol Type",e.type,e.listed_exchange));const s=e.minmov/e.pricescale;4===i.style.value()&&i.renkoStyle.childs().inputs.childs().boxSize.value()s(0)),o=Re(e,t,{label:Ne,labelVisible:r.highLowPriceLabelsVisible,lineVisible:r.highLowPriceLinesVisible,lineColor:r.highLowPriceLinesColor,lineWidth:r.highLowPriceLinesWidth},()=>s(1));return{paneViews:[n.paneView,o.paneView],panePriceAxisViews:[n.panePriceAxisView,o.panePriceAxisView],priceAxisViews:[n.priceAxisView,o.priceAxisView],priceLineAxisViews:[n.priceLineAxisView,o.priceLineAxisView]}}(this._model,this,e,t);this._highLowAvgPaneViews.push(...i.paneViews),this._labelPaneViews.push(...i.panePriceAxisViews),this._priceAxisViews.push(...i.priceAxisViews),this._priceLineAxisViews.push(...i.priceLineAxisViews)}_createAverageViews(){const e=this.properties().childs().highLowAvgPrice,t=this._getAveragePrice.bind(this),i=je(this._model,this,e,t);this._averagePaneViews.push(...i.paneViews),this._labelPaneViews.push(...i.panePriceAxisViews),this._priceAxisViews.push(...i.priceAxisViews),this._priceLineAxisViews.push(...i.priceLineAxisViews)}_getHighLowPrice(e){if(!this._highLowPriceCache.has(e)){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=function(e,t,i){return e.minMaxOnRangeCached(t,i,[{name:"low",offset:0},{name:"high",offset:0}])}(this._model.mainSeries().bars(),e.firstBar(),e.lastBar());if(null===t)return null;this._highLowPriceCache.set(1,t.min), +this._highLowPriceCache.set(0,t.max)}return this._highLowPriceCache.get(e)}_getAveragePrice(e){if(!this._averagePriceCache.has(e)){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=function(e,t,i){0;const s=(0,c.barFunction)("close");let r=0,n=0;for(let o=t;o<=i;o++){const t=e.valueAt(o);null!==t&&(r+=s(t),n++)}return n?r/n:null}(this._model.mainSeries().bars(),e.firstBar(),e.lastBar());if(null===t)return null;this._averagePriceCache.set(0,t)}return this._averagePriceCache.get(e)}_onSessionIdPropertyChanged(){this._sessionIdChanged.fire(),this.isDWM()||(this.restart(),this._updateLastPriceAnimationActive())}_subscribeRestartToSessionIdChange(){this.properties().childs().sessionId.subscribe(this,this._onSessionIdPropertyChangedBound)}_unsubscribeRestartToSessionIdChange(){this.properties().childs().sessionId.unsubscribe(this,this._onSessionIdPropertyChangedBound)}_updateLastPriceAnimationActive(){if(!this._options.lastPriceAnimationEnabled)return;const e=this._lastPriceAnimationActive,t=this.properties().childs(),i=t.style.value();if(this._model.isSnapshot()||!t.visible.value()||3!==i&&10!==i&&2!==i)this._lastPriceAnimationActive=!1;else{const e=this.currentSession(),t=!(0,p.isRegularSessionId)(this.sessionIdProxyProperty().value())&&!this.isDWM();this._lastPriceAnimationActive="market"===e||t&&("pre_market"===e||"post_market"===e)}this._lastPriceAnimationActive&&e!==this._lastPriceAnimationActive&&this.model().invalidate(tt.InvalidationMask.cursor())}_onPropertiesChanged(e){const t=this._properties.childs();e!==t.symbol&&e!==t.interval&&e!==t.timeframe&&(this._tagsChanged.fire(),this.createPaneView(),this.updateAllViews((0,Se.dataSourceChangeEvent)(this._id)),this.model().updateSource(this),(0,o.emit)("series_properties_changed",this._id))}_recalcSymbolTextSourceProxyProperty(){this._textSourceIsAlwaysTickerRestrictionEnabled?this._symbolTextSourceProxyProperty.setValue("ticker"):this._symbolTextSourceProxyProperty.setValue(this._properties.childs().statusViewStyle.childs().symbolTextSource.value())}}},16654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{STATUS_OFFLINE:()=>s,STATUS_RESOLVING:()=>r,STATUS_LOADING:()=>n,STATUS_READY:()=>o,STATUS_INVALID_SYMBOL:()=>a,STATUS_SNAPSHOT:()=>l,STATUS_EOD:()=>c,STATUS_PULSE:()=>h,STATUS_DELAYED:()=>d,STATUS_DELAYED_STREAMING:()=>u,STATUS_NO_BARS:()=>p,STATUS_REPLAY:()=>_,STATUS_ERROR:()=>m,SERIES_STATUS_TEXT:()=>g,STYLE_LINE_TYPE_MARKERS:()=>f,STYLE_LINE_TYPE_STEP:()=>v,STYLE_LINE_TYPE_SIMPLE:()=>S,STYLE_BARS:()=>y,STYLE_CANDLES:()=>b,STYLE_LINE:()=>w,STYLE_AREA:()=>C,STYLE_RENKO:()=>P,STYLE_KAGI:()=>T,STYLE_PNF:()=>x,STYLE_PB:()=>I,STYLE_HEIKEN_ASHI:()=>M,STYLE_HOLLOW_CANDLES:()=>L,STYLE_BASELINE:()=>A,STYLE_RANGE:()=>E,STYLE_HILO:()=>k,STYLE_COLUMNS:()=>D,STYLE_SHORT_NAMES:()=>V,SYMBOL_STRING_DATA:()=>B});const s=0,r=1,n=2,o=3,a=4,l=5,c=6,h=7,d=8,u=9,p=10,_=11,m=12,g={[s]:"connecting",[r]:"loading",[n]:"loading",[o]:"realtime",[a]:"invalid",[l]:"snapshot",[c]:"endofday",[h]:"endofday",[d]:"delayed",[u]:"delayed_streaming",[p]:"forbidden", +[_]:"replay",[m]:"error"},f=0,v=1,S=2,y=0,b=1,w=2,C=3,P=4,T=5,x=6,I=7,M=8,L=9,A=10,E=11,k=12,D=13,V={0:"bar",1:"candle",9:"hollowCandle",2:"line",3:"area",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo",13:"column"},B={4:{type:"BarSetRenko@tv-prostudies",basicStudyVersion:40},7:{type:"BarSetPriceBreak@tv-prostudies",basicStudyVersion:34},5:{type:"BarSetKagi@tv-prostudies",basicStudyVersion:34},6:{type:"BarSetPnF@tv-prostudies",basicStudyVersion:34},8:{type:"BarSetHeikenAshi@tv-basicstudies",basicStudyVersion:60},11:{type:"BarSetRange@tv-basicstudies",basicStudyVersion:72}}},63948:(e,t,i)=>{"use strict";i.d(t,{seriesPlotFunctionMap:()=>c,barFunction:()=>h,SeriesData:()=>p});var s,r=i(88537),n=i(71053),o=i(55257);!function(e){e[e.FromLeft=-1]="FromLeft",e[e.FromRight=1]="FromRight"}(s||(s={}));const a={open:e=>e[1],high:e=>e[2],low:e=>e[3],close:e=>e[4],hl2:e=>(e[2]+e[3])/2,hlc3:e=>(e[2]+e[3]+e[4])/3,ohlc4:e=>(e[1]+e[2]+e[3]+e[4])/4},l=["open","high","low","close","hl2","hlc3","ohlc4"];function c(){const e=new Map;return l.forEach((t,i)=>{e.set(t,h(t))}),e}function h(e){return a[e]}function d(e,t){return null==e[t]}const u=[{barsToMerge:10,forBarspacingLargerThen:.03},{barsToMerge:30,forBarspacingLargerThen:.01},{barsToMerge:100,forBarspacingLargerThen:.003},{barsToMerge:500,forBarspacingLargerThen:0}];class p{constructor(){this._pressedChunks={chunks:new Map,priceSource:"uninitialized"},this.m_bars=new n.PlotList(c(),d),this.m_nsBars=new n.PlotList(c(),d),this._clearPressedChunks()}bars(){return this.m_bars}nsBars(){return this.m_nsBars}pressedChunks(e,t){if(t!==this._pressedChunks.priceSource){this._pressedChunks.priceSource=t;const e=this.m_bars.first();e&&(this._clearPressedChunks(),this._rebuildPressedChunks(e))}const i=(0,r.ensureDefined)(u.find(t=>t.forBarspacingLargerThen<=e));return(0,r.ensureDefined)(this._pressedChunks.chunks.get(i.barsToMerge))}mergeRegularBars(e){const t=this.m_bars.size(),i=this.m_bars.merge(e);return i&&"uninitialized"!==this._pressedChunks.priceSource&&(t===this.m_bars.size()&&i.index===this.m_bars.lastIndex()?this._updateLatestChunks():this._rebuildPressedChunks(i)),i}size(){return this.m_bars.size()+this.m_nsBars.size()}each(e){this.m_bars.each(e),this.m_nsBars.each(e)}clear(){this.m_bars.clear(),this.m_nsBars.clear(),this.lastProjectionPrice=void 0,this._clearPressedChunks()}isEmpty(){return this.m_bars.isEmpty()&&this.m_nsBars.isEmpty()}first(){return this.m_bars.isEmpty()?this.m_nsBars.first():this.m_bars.first()}last(){return this.m_nsBars.isEmpty()?this.m_bars.last():this.m_nsBars.last()}search(e,t){return this.nsBars().isEmpty()?this.bars().search(e,t):this.bars().isEmpty()||(0,r.ensureNotNull)(this.nsBars().firstIndex())<=e?this.nsBars().search(e,t):this.bars().search(e,t)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}plotValueToTimePointIndex(e,t,i){if(i===s.FromRight){const i=(i,s)=>{const r=s[t];return null!=r&&e>=r},s=this.m_bars.findLast(i);if(null!==s)return s.index;const r=this.m_nsBars.findLast(i) +;return null!==r?r.index:this.m_bars.firstIndex()}if(i===s.FromLeft){const i=(i,s)=>{const r=s[t];return null!=r&&e<=r},s=this.m_bars.findFirst(i);if(null!==s)return s.index;const r=this.m_nsBars.findFirst(i);return null!==r?r.index:this.m_bars.lastIndex()}throw new Error("plotValueToTimePointIndex: unsupported search mode")}moveData(e){this.m_bars.move(e),this.m_nsBars.move(e),this.m_bars.size()>0&&this._rebuildPressedChunks((0,r.ensureNotNull)(this.m_bars.first()))}_rebuildPressedChunks(e){const t=this._pressedChunks.priceSource;if("uninitialized"===t)return;const i=e.index,s=a[t],n=(e,t,i)=>{let r=null;for(;e.hasNext();){const n=e.next(),o=s(n.value);r&&n.index-r.startTime>=i.barsToMerge&&(t.push(r),r=null),r?(r.endTime=n.index,r.high=Math.max(r.high,o),r.low=Math.min(r.low,o),r.close=o):r={startTime:n.index,endTime:n.index,open:o,high:o,low:o,close:o}}r&&t.push(r)};u.forEach(e=>{const t=(0,r.ensureDefined)(this._pressedChunks.chunks.get(e.barsToMerge)),s=(0,o.lowerbound)(t,i,(e,t)=>e.endTime0){const i=t[0].startTime-1,s=(0,r.ensureNotNull)(this.m_bars.firstIndex()),o=this.m_bars.rangeIterator(s,i),a=[];n(o,a,e);const l=a.concat(t);this._pressedChunks.chunks.set(e.barsToMerge,l)}else{const i=(0,r.ensureNotNull)(this.m_bars.lastIndex());t.splice(s);let o=(0,r.ensureNotNull)(this.m_bars.firstIndex());t.length&&(o=t[t.length-1].endTime+1);const a=this.m_bars.rangeIterator(o,i);n(a,t,e)}})}_updateLatestChunks(){const e=(0,r.ensureNotNull)(this.m_bars.lastIndex());u.forEach(t=>{const i=(0,r.ensureDefined)(this._pressedChunks.chunks.get(t.barsToMerge)),s=this.m_bars.rangeIterator(e,e).next(),n=s.value[4],o=i[i.length-1];o.high=Math.max(o.high,n),o.low=Math.min(o.low,n),o.close=n,o.endTime=s.index})}_clearPressedChunks(){u.forEach(e=>this._pressedChunks.chunks.set(e.barsToMerge,[]))}}},34081:(e,t,i)=>{"use strict";i.d(t,{SeriesTimeRangeVolumeCalculator:()=>s});class s{constructor(e){this._value=null,this._series=e,this._series.dataEvents().dataUpdated().subscribe(this,this._onSeriesUpdated)}destroy(){this._series.dataEvents().dataUpdated().unsubscribeAll(this)}volume(e,t){if(null!==this._value&&this._value.from===e&&this._value.to===t)return this._value.value;let i=0;const s=this._series.data().bars(),r=s.firstIndex(),n=s.lastIndex();if(null!==r&&en&&t>n)i=NaN;else{const s=this._series.data().bars().rangeIterator(Math.min(e,t),Math.max(e,t));for(;s.hasNext();){const e=s.next().value[5];if(void 0===e){i=NaN;break}i+=e}}return this._value={from:e,to:t,value:i},i}_onSeriesUpdated(e,t){if(null===this._value)return;if(t)return void(this._value=null);const i=this._series.data().bars().lastIndex();(null===i||i<=this._value.to)&&(this._value=null)}}},37667:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isRequiringRestartSeriesStyles:()=>y,isRangeBasedStyle:()=>b,isRangeStyle:()=>w,isTimeBasedStyle:()=>C,isValidStyle:()=>P,isSingleValueBasedStyle:()=>T,setLastUsedStyle:()=>x,getLastUsedStyle:()=>I,getLastUsedSingleValueBasedStyle:()=>M,getDefaultStyle:()=>L,getChartStyleByResolution:()=>A, +chartStyleStudyId:()=>E,preparePriceAxisProperties:()=>k,hasProjection:()=>V,isPriceSourceStyle:()=>B,getSeriesPriceFormattingState:()=>N,createSeriesFormatter:()=>R,symbolCurrencyConvertible:()=>O,symbolCurrency:()=>F,symbolOriginalCurrency:()=>W,symbolBaseCurrency:()=>H,isConvertedToOtherCurrency:()=>z,symbolUnitConvertible:()=>U,symbolUnit:()=>j,symbolOriginalUnit:()=>G,isConvertedToOtherUnit:()=>q,symbolUnitConvertibleGroupsIfExist:()=>Y,symbolCurrentContract:()=>K,symbolHasPreOrPostMarket:()=>$,symbolHasSeveralSessions:()=>X,symbolHasEconomicEvents:()=>Z,extractSymbolNameFromSymbolInfo:()=>J,symbolTitle:()=>Q,displayedSymbolName:()=>ee,displayedSymbolExchange:()=>te,actualSymbol:()=>ie,proSymbol:()=>se,symbolForApi:()=>re,isRegularSessionId:()=>ne,isCloseBasedSymbol:()=>oe,isMeasureUnitSymbol:()=>ae,measureUnitId:()=>le,hasVolume:()=>ce,isEconomicSymbol:()=>he,getStudySymbolExchange:()=>de,isFutureContinuousSymbolWithBackajustment:()=>ue,isCryptoSymbol:()=>pe});var s=i(56840),r=i(16654),n=i(29823),o=i(97098),a=i(67337),l=i(88537),c=i(67802),h=i(26811);const d=a.enabled("pay_attention_to_ticker_not_symbol"),u=a.enabled("uppercase_instrument_names"),p=a.enabled("charting_library_single_symbol_request"),_=a.enabled("use_ticker_on_symbol_info_update"),m=a.enabled("hide_object_tree_and_price_scale_exchange_label"),g=[4,5,6,7,8],f=[4,5,6,7,11],v=[0,1,9,2,3,10,8,13],S=[2,10,3,13];function y(e){return-1!==g.indexOf(e)}function b(e){return-1!==f.indexOf(e)}function w(e){return 11===e}function C(e){return-1!==v.indexOf(e)}function P(e){return b(e)||C(e)}function T(e){switch(e){case 3:case 10:case 2:case 13:return!0;default:return!1}}function x(e,t){P(e)&&(11!==e&&s.setValue("chart.lastUsedStyle",e),oe(t)&&T(e)&&s.setValue("chart.lastUsedSingleValueBasedStyle",e))}function I(){const e=s.getInt("chart.lastUsedStyle");return void 0===e?1:e}function M(){const e=s.getInt("chart.lastUsedSingleValueBasedStyle");return void 0===e?2:e}function L(e){return e?11:1}function A(e,t){const i=w(t),s=n.Interval.isRange(e);return!i&&s?L(!0):i&&!s?L(!1):t}function E(e,t){const i=r.SYMBOL_STRING_DATA[e];return void 0===i?null:t?`${i.type}-${i.basicStudyVersion}`:i.type}function k(e){const t=e.priceAxisProperties,i=t.lockScale.value(),s=6===e.style.value();(s||i)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!s&&!i)),t.percentageDisabled.setValue(!(!s&&!i))}const D=[4,7,5,6];function V(e){return-1!==D.indexOf(e)}function B(e){return S.includes(e)}function N(e,t="default",i=!1){let s,r,n=100,o=1;if("default"===t)null!=e&&(n=e.pricescale,o=e.minmov,s=e.fractional,r=e.minmove2);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),n=parseInt(e[0]),o=parseInt(e[1]),s="true"===e[2]}return i&&(o=1),{priceScale:n,minMove:o,fractional:s,minMove2:r}}function R(e,t,i=!1){if("default"===t&&null!=e){const t=e.formatter||e.format;if("volume"===t)return new c.VolumeFormatter(2);if("percent"===t)return new h.PercentageFormatter(e.pricescale)}const{priceScale:s,minMove:r,fractional:n,minMove2:a}=N(e,t,i) +;return new o.PriceFormatter(s,r,n,a)}function O(e){return null!==e&&"spread"!==e.type}function F(e,t,i){if(null===e)return null;const s=!t||i?e.currency_id:e.currency_code;return void 0===s||""===s?null:s}function W(e,t){const i=t?e.original_currency_code:e.original_currency_id;return null!=i?i:F(e,t)}function H(e){return e.base_currency_id||null}function z(e){return!(null===e||!O(e))&&(void 0!==e.original_currency_id&&e.original_currency_id!==e.currency_id)}function U(e,t){return t&&null!==e&&"spread"!==e.type}function j(e,t){if(null===e||!t)return null;const i=e.unit_id;return void 0===i||""===i?null:i}function G(e,t){return t?e.original_unit_id||j(e,t):null}function q(e,t){return!(null===e||!U(e,t))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function Y(e,t){return null!==e&&U(e,t)?e.unit_conversion_types||null:[]}function K(e){return"futures"===e.type&&e.front_contract||null}function $(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.some(e=>"premarket"===e.id||"postmarket"===e.id)}function X(e){return null!==e&&void 0!==e.subsessions&&e.subsessions.filter(e=>!e.private).length>1}function Z(e){return null!==e&&("forex"===e.type||"cfd"===e.type||pe(e))}function J(e,t){let i=e&&(e.pro_name||e.full_name||e.name);return p&&t?i=t:_&&e&&e.ticker&&(i=e.ticker),u&&i&&(i=i.toUpperCase()),i}function Q(e,t,i="exchange"){return t||m?e.name:`${e.name}, ${e[i]}`}function ee(e){let t=e&&(K(e)||e.name)||"";return t.length>40&&(t=t.substring(0,37)+"..."),t.trim()}function te(e){const t=e?e.exchange:"";return u?t.toUpperCase():t}function ie(e,t){return null!==e?e.full_name:t}function se(e,t){return null!==e?e.pro_name:t}function re(e,t){return d&&e?(0,l.ensureDefined)(e.ticker):ie(e,t)}function ne(e){return"regular"===e||"us_regular"===e}function oe(e){return"c"===(null==e?void 0:e.visible_plots_set)}function ae(e){return null!==e&&("unit"===e.measure&&null!==le(e))}function le(e){var t;return null!==(t=null==e?void 0:e.value_unit_id)&&void 0!==t?t:null}function ce(e){return void 0!==e.visible_plots_set?"ohlcv"===e.visible_plots_set:!e.has_no_volume}function he(e){return null!==e&&"economic"===e.type}function de(e){return he(e)&&e.source?e.source:e.exchange&&0!==e.exchange.length?e.exchange:void 0}function ue(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 pe(e){var t;return(null===(t=e.typespecs)||void 0===t?void 0:t.includes("crypto"))||"crypto"===e.type||"bitcoin"===e.type}},56972:(e,t,i)=>{"use strict";var s=i(2872),r=i(2015),n=i(69927).PriceRange;TradingView.DEFAULT_BAR_COUNT=300,TradingView.TIME_PLOT=0,TradingView.OPEN_PLOT=1,TradingView.HIGH_PLOT=2,TradingView.LOW_PLOT=3,TradingView.CLOSE_PLOT=4,TradingView.ADT_PLOT=6,TradingView.STYLE_PLOT=7;var o=i(88537).ensureNotNull,a=i(55030).SeriesBase,l=i(67337);const{dataSourceChangeEvent:c}=i(33291);var h=i(33981).SeriesBarColorer,d=i(71053),u=d.PlotRowSearchMode,p=d.mergeMinMax,_=(i(51768).trackEvent, +i(98125).getLogger("Chart.Series")),m=i(16654),g=i(37667),f=i(9315).getServerInterval,v=i(29823).Interval,S=i(73532).SeriesHorizontalBaseLinePaneView,y=i(15840).deepExtend,b=i(19234).encodeExtendedSymbolOrGetSimpleSymbolString,w=i(76422),C=i(73383).TIMEFRAMETYPE,P=i(23653).InvalidationMask,T=i(37667).isSingleValueBasedStyle;const x=l.enabled("pre_post_market_sessions");class I extends a{constructor(e,t,i,r){t.removeProperty("currencyId"),super(e,t,i,r),this._symbolIntervalChanged=new s,this.requestingIntradayWhenNotSupported=new s,this.requestingResolutionWhenNotSupported=new s,this._onInReplayStateChanged=new s,this._replayExitedDueUnsupportedInterval=new s,this._replayExitedDueUnavailableForUserInterval=new s,this._onTimeFrameApplied=new s,this._chartApi=e._chartApi,this.createPaneView(),this._replaySubscriber=null,this._isReplayResolutionAvailableForUser=null,this._properties.addExclusion&&(this._properties.addExclusion("visible"),this._properties.addExclusion("currencyId")),this._futureBarsPaneView=null,this.properties().minTick.listeners().subscribe(this,I.prototype._recreateFormatter);var n=this;this.properties().minTick.listeners().subscribe(null,(function(){n._model.fullUpdate()})),this._priceLineView=null,this._baseHorizontalLineView=new S(this),this._gotoDateResultCleared=!1,this._gotoDateView=null,this.bindStyleChange(),this.bindJapChartsInputs(),this._createIsDWMProperty(),this._symbolIntervalChanged.subscribe(this,this._checkInterval),this.properties().showCountdown.listeners().subscribe(this,I.prototype._onChangeShowCountdown),this._onChangeShowCountdown(this.properties().showCountdown),this._recreatePriceFormattingDependencies(),this.properties().lineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().areaStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().baselineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().columnStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this._updateBarFunction()}isLoading(){return this._loading}isSymbolInvalid(){return this._status===I.STATUS_INVALID_SYMBOL}styleStudyInfo(e){return this.styleStudyInfos()[e]}priceLineColor(e){return this.properties().priceLineColor.value()||e}serverTimeOffset(){return this._chartApi.serverTimeOffset()}_onChangeShowCountdown(e){var t=this;e.value()?this._countdownUpdateTimer=this._model.setInterval((function(){t._priceAxisView.updateCountdown()}),500):(this._model.clearInterval(this._countdownUpdateTimer),delete this._countdownUpdateTimer)}_createIsDWMProperty(){this._isDWMProperty=new r(this.isDWM()),this._onRestarted.subscribe(this,(function(){this._isDWMProperty.setValue(this.isDWM())}))}isDWMProperty(){return this._isDWMProperty}fixLastBar(e){0}isPulse(){return this._symbolInfo&&this._symbolInfo.resolutions.length>0}onSymbolIntervalChanged(){return this._symbolIntervalChanged}_clearStylePlot(e,t){if(0!==e.size()){var i=t||o(e.firstIndex()),s=o(e.lastIndex())+1;e.range(i,s).each((function(e,t){ +t[TradingView.STYLE_PLOT]=null}))}}invalidateBarStylesCache(e){_.logDebug("Invalidate style cache starting from "+e),this._clearStylePlot(this.bars(),e),this._clearStylePlot(this.nsBars())}invalidateBarColorerCache(){delete this._barColorerCache,this.invalidateBarStylesCache()}barColorer(){if(this._barColorerCache)return this._barColorerCache;for(var e=null,t=this._model.dataSources(),i=t.length-1;i>=0;i--){var s=t[i];if(s.metaInfo&&TradingView.isInherited(s.constructor,TradingView.Study)&&s.hasBarColorer()&&!s.isSourceHidden()){var r=s.barColorer();null===e?e=r:e.pushBackBarColorer(r)}}return null===e?e=new h(this):e.pushBackBarColorer(new h(this)),this._barColorerCache=e,this._barColorerCache}alertCreationAvailable(){const e=this.symbolInfo();return this.hasStateForAlert()&&e&&!g.isEconomicSymbol(e)}hasStateForAlert(){return!1}stateForAlert(){throw new Error("Not implemented")}idForAlert(){return a.prototype.idForAlert.call(this)}seriesSource(){return this._seriesSource}_onSeriesTimeFrame(e,t,i,s,r){var n=T(this.style())?e+.5:e,o=t;if(void 0===r)null!==i&&i.type!==C.PeriodBack||(o+=this._model.studyAwareDefaultRightOffset());else if(r.applyDefaultRightMargin)o+=this._model.studyAwareDefaultRightOffset();else if(r.percentRightMargin){var a=t-n+1,l=Math.max(0,Math.min(.99,r.percentRightMargin/100));o+=l*a/(1-l)}this._model.setTimeViewport(n,o)}_onSeriesError(e){this._loading=!1;var t=e.error;if(e.ctx){var i={};Object.entries(e.ctx).forEach((function(e,t){i[e]=t.toString()})),t=t.format(i)}l.enabled("charting_library_debug_mode")&&_.logNormal("Error reason: "+t),this._seriesErrorMessage=t;const s="unknown_symbol"!==t?I.STATUS_ERROR:l.enabled("no_bars_status")&&this._symbolInfo?I.STATUS_NO_BARS:I.STATUS_INVALID_SYMBOL;this._setStatus(s),this._seriesLoaded=!0,this._enablePriceRangeReady()}_onSeriesCompleted(e,t,i){if(this._setSymbolIntervalDelay){if(this._willSymbolIntervalCurrencyChanged())return void _.logNormal("command comes during symbol/interval changing");_.logNormal("series_completed comes when symbol interval delay present but symbol/interval should not be changed")}this._loading=!1,this._seriesErrorMessage=null;var s=e;switch("pulsed"===s&&(s="delayed"),s){case"streaming":this._setStatus(I.STATUS_READY);break;case"endofday":this._setStatus(I.STATUS_EOD);break;case"delayed":this._setStatus(I.STATUS_DELAYED);break;case"pulsed":this._setStatus(I.STATUS_PULSE);break;case"replay":this._setStatus(I.STATUS_REPLAY)}s.match(/delayed_streaming/)&&this._setStatus(I.STATUS_DELAYED_STREAMING),this._endOfDataType=void 0!==i?i.data_completed:null;var r=this._model.paneForSource(this);r.recalculatePriceScale(this.priceScale(),c(this.id()));var n=P.full();null!==this._model.appliedTimeFrame().value()&&n.lockVisibleTimeRangeOnResize(),this._model.invalidate(n),this.model().recalcVisibleRangeStudies(!0),this.model().recalcStudyBasedLineTools(),!this.m_priceScale.isLockScale()||this.model().timeScale().isEmpty()||this._seriesLoaded||(this.model().timeScale()._correctOffset(),this.model().timeScale().correctBarSpacing(), +this.model().resetPriceScale(r,this.priceScale())),this._seriesLoaded=!0,this._enablePriceRangeReady()}_onBarReceived(e){this.model().recalcVisibleRangeStudies(!0)}isStarted(){return this._seriesSource.isStarted()}restart(){if(this._status!==I.STATUS_SNAPSHOT){this._loading=!0,this._onRestarted.fire(),this._setStatus(I.STATUS_RESOLVING),this._updateSymbolInfo(null,!0);var e=this._properties.interval.value();this._checkIntervalWillChanged(e)&&this._notifyIntervalChanged(e);var t=null;this._pendingTimeRange&&(t=this._pendingTimeRange,delete this._pendingTimeRange),this._onBeforeModifySeries(this.getSymbolString(),e),this._onTimeFrameApplied.fire(t),e=f(e),this._data=null,this._seriesSource.modifySeries(this._getResolvingSymbolObject(),e,t),this._seriesSource.isStarted()||this._seriesSource.start(),this.m_symbol=this._properties.symbol.value(),this._currency=this._properties.currencyId.value(),this._unit=this._properties.unitId.value(),this.m_interval=this._properties.interval.value()}}hasDelayedSymbolIntervalChange(){return!!this._setSymbolIntervalDelay}setSymbolIntervalCurrencyDelayed(){this._willSymbolIntervalCurrencyChanged()&&(this._setSymbolIntervalDelay&&(_.logNormal("Clear timeout to change symbol/interval #"+this._setSymbolIntervalDelay),clearTimeout(this._setSymbolIntervalDelay)),this._setSymbolIntervalDelay=setTimeout(function(){const e=this._properties;_.logNormal("Timeout #"+this._setSymbolIntervalDelay+' fired, new symbol will be "'+e.symbol.value()+'"'),delete this._setSymbolIntervalDelay,this._setSymbolInterval(e.symbol.value(),e.interval.value(),e.currencyId.value(),e.unitId.value())}.bind(this),30),_.logNormal("Started timeout #"+this._setSymbolIntervalDelay+' to change symbol/interval from "'+this.m_symbol+'" to "'+this._properties.symbol.value()+'"'))}rerequestData(){this._setSymbolInterval(this.m_symbol,this.m_interval,this._currency,this._unit,!0)}_notifyIntervalChanged(e){var t={timeframe:this._pendingTimeRange};this._intervalChanged.fire(e,t),this._pendingTimeRange=t.timeframe}_setSymbolInterval(e,t,i,s,r){this.clearGotoDateResult(),v.isRange(t)&&this._properties.rangeStyle.inputs.range.setValue(v.parse(t).multiplier());var n=this._checkSymbolWillChanged(e),o=this._checkIntervalWillChanged(t),a=this._checkCurrencyWillChanged(i),l=this._checkUnitWillChanged(s);if(n||o||a||l||r)if(this._syncModel=null,this.m_symbol=e,this.m_interval=t,this._currency=i,this._unit=s,this._status!==I.STATUS_SNAPSHOT&&(!this._seriesSource.isStarted()||n||a||l)&&this._updateSymbolInfo(null,!n&&(a||l)),this._status!==I.STATUS_SNAPSHOT){this._loading=!0,this._setStatus(I.STATUS_RESOLVING),x&&this._updateIsPrePostMarketPricesForbiddenProperty(),this._symbolIntervalChanged.fire(),o&&this._notifyIntervalChanged(this.m_interval),this._onRestarted.fire(),this._seriesLoaded=!1,this._lineStyleLastPriceCirclePaneView.stopAnimation();var c=null;this._pendingTimeRange&&(c=this._pendingTimeRange,delete this._pendingTimeRange),this._onTimeFrameApplied.fire(c),this._onBeforeModifySeries(this.getSymbolString(),t),this._data=null, +this._seriesSource.modifySeries(this._getResolvingSymbolObject(),f(t),c,r),this._seriesSource.isStarted()||(this._predictBars=0,this._seriesSource.start()),(n||a||l)&&this.disablePriceRangeReady()}else this._model.realignLineTools();else this._model.realignLineTools()}setDefaultTimeframe(e){this._pendingTimeRange=e}symbol(){return this.properties().symbol.value()}hl2(e){return(this.high(e)+this.low(e))/2}hlc3(e){return(this.high(e)+this.low(e)+this.close(e))/3}ohlc4(e){return(this.open(e)+this.high(e)+this.low(e)+this.close(e))/4}priceRange(e,t){if(!TradingView.isInteger(e))return _.logDebug("Series.priceRange: incorrect startBar"),null;if(!TradingView.isInteger(t))return _.logDebug("Series.priceRange: incorrect endBar"),null;if(this.data().isEmpty())return null;if(this.m_priceScale.isLockScale()){var i=this._model.mainSeriesScaleRatio();if(null!==i){var s=this.priceScale().internalHeight()/(this.model().timeScale().barSpacing()/i),r=this.data().search(t,u.NearestLeft),o=(r.value[TradingView.HIGH_PLOT]+r.value[TradingView.LOW_PLOT])/2;return new n(o-.5*s,o+.5*s)}}var a=this.priceSource();if(null!==a)var l=this.data().bars().minMaxOnRangeCached(e,t,[{name:a,offset:0}]),c=this.data().nsBars().minMaxOnRangeCached(e,t,[{name:a,offset:0}]);else l=this.data().bars().minMaxOnRangeCached(e,t,[{name:"low",offset:0},{name:"high",offset:0}]),c=this.data().nsBars().minMaxOnRange(e,t,[{name:"low",offset:0},{name:"high",offset:0}]);var h=null!==(l=p(l,c))?l.min===l.max?new n(l.min-.5,l.max+.5):new n(l.min,l.max):new n(-.5,.5);return this.priceScale().isLog()?new n(this.priceScale().priceToLogical(h.minValue()),this.priceScale().priceToLogical(h.maxValue())):h}nearestData(e,t){if(TradingView.isInteger(e)){var i=this.data().search(e,t);return null!==i?i:void 0}_.logDebug("Series.nearestData: incorrect logicalPoint")}nearestIndex(e,t){var i=this.nearestData(e,t);return i?i.index:void 0}paneViews(){if(!this.properties().visible.value())return null;var e=[this._baseHorizontalLineView,this._paneView];return this._futureBarsPaneView&&e.push(this._futureBarsPaneView),this._projectionBarsPaneView&&e.push(this._projectionBarsPaneView),null!==this._waterlineView&&e.push(this._waterlineView),null!==this._priceLineView&&e.push(this._priceLineView),null!==this._gotoDateView&&e.push(this._gotoDateView),e.push(...this._highLowAvgPaneViews),e.push(...this._averagePaneViews),e}purgeSymbolInfo(){this._symbolInfo=null}requestMoreData(e){if((this._status===I.STATUS_READY||this._status===I.STATUS_PULSE||this._status===I.STATUS_DELAYED||this._status===I.STATUS_DELAYED_STREAMING||this._status===I.STATUS_EOD||this._status===I.STATUS_REPLAY)&&!this._model.timeScale().isEmpty()){var t=this._model.timeScale().visibleBarsStrictRange();if(null!==t&&0!==this.bars().size()){var i=t.lastBar()-o(this.data().last()).index;if(this._predictBars{this._gotoDateResultCleared||(this._gotoDateView=new t(this,e),this._model.updateSource(this))})}clearGotoDateResult(e){this._gotoDateView=null,this._gotoDateResultCleared=!0}getSourceIcon(){return{type:"loadSvg",svgId:"series."+this.properties().style.value()}}isStyleSupported(e){return!0}isIntervalSupported(e){return!0}isStyleSupportedForReplay(e){return g.isTimeBasedStyle(e)}isInReplay(){return null!==this._replaySubscriber}onTimeFrameApplied(){return this._onTimeFrameApplied}onInReplayStateChanged(){throw new Error("Not implemented")}replayExitedDueUnsupportedInterval(){throw new Error("Not implemented")}replayExitedDueUnavailableForUserInterval(){throw new Error("Not implemented")}switchToReplay(e,t){throw new Error("Not implemented")}switchToRealtime(){throw new Error("Not implemented")}_removeReplaySubscriber(){throw new Error("Not implemented")}_onBeforeModifySeries(e,t){0}destroy(){this._replayExitedDueUnsupportedInterval.destroy(),this._replayExitedDueUnavailableForUserInterval.destroy(),this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),this.clearGotoDateResult(),this._legendView.destroy(),this._marketStatusModel.destroy(),null!==this._dataUpdatedModeModel&&this._dataUpdatedModeModel.destroy(),this._dataProblemModel.destroy(),this._paneView&&this._paneView.destroy&&this._paneView.destroy(),this._onTimeFrameApplied.destroy(),this._seriesSource.destroy(),super.destroy()}dataEvents(){return this._seriesSource.dataEvents()}moveData(e){return this._seriesSource.moveData(e)}} +Object.assign(I,m),TradingView.Series=I,t.Series=I,t.isSeries=function(e){return e instanceof I}},34041:(e,t,i)=>{"use strict";i.d(t,{SeriesAreaPaneView:()=>l});var s=i(68906),r=i(84705),n=i(94804),o=i(41892),a=i(83150);class l extends a.SeriesSingleLinePaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const a=this._source.properties().childs().areaStyle.childs(),l=a.transparency.value(),c={simpleMode:!1,barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:a.linecolor.value(),lineStyle:a.linestyle.value(),lineWidth:a.linewidth.value(),isSeries:!0,withMarkers:!1,bottom:i.height(),color1:(0,s.generateColor)(a.color1.value(),l),color2:(0,s.generateColor)(a.color2.value(),l)},h=new n.CompositeRenderer;return h.append(new r.PaneRendererArea(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new o.SelectionRenderer(this._selectionData)),h}}},89128:(e,t,i)=>{"use strict";function s(e,t){return 100*(t-e)/Math.abs(e||1)}i.d(t,{barPercentChange:()=>s})},71263:(e,t,i)=>{"use strict";i.d(t,{PaneRendererBars:()=>n});var s=i(49094),r=i(52403);class n extends r.PaneRendererSeriesBase{constructor(e){super(),this._bars=e.bars,this._barSpacing=e.barSpacing,this._dontDrawOpen=e.dontDrawOpen,this._thinBars=e.thinBars}draw(e,t){e.save();const i=t.pixelRatio;if(this._barWidth=this._calcBarWidth(i),this._barWidth>=2){Math.max(1,Math.floor(i))%2!=this._barWidth%2&&this._barWidth--}this._barLineWidth=this._thinBars?Math.min(this._barWidth,Math.floor(i)):this._barWidth;let s=null;const r=this._barLineWidth<=this._barWidth&&this._barSpacing>=Math.floor(1.5*t.pixelRatio);for(const t of this._bars){s!==t.color&&(e.fillStyle=t.color,s=t.color);const n=Math.floor(.5*this._barLineWidth),o=Math.round(t.time*i),a=o-n,l=this._barLineWidth,c=a+l-1,h=Math.min(t.high,t.low),d=Math.max(t.high,t.low),u=Math.round(h*i)-n,p=Math.round(d*i)+n,_=Math.max(p-u,this._barLineWidth);e.fillRect(a,u,l,_);const m=Math.ceil(1.5*this._barWidth);if(r){const s=o-m,r=o+m,h=Math.min(a-s,r-c);if(!this._dontDrawOpen){let r=Math.max(u,Math.round(t.open*i)-n),o=r+l-1;o>u+_-1&&(o=u+_-1,r=o-l+1),e.fillRect(s,r,h,o-r+1)}let d=Math.max(u,Math.round(t.close*i)-n),p=d+l-1;p>u+_-1&&(p=u+_-1,d=p-l+1),e.fillRect(c+1,d,h,p-d+1)}}e.restore()}_getTolerance(){const e=this._calcBarWidth(1),t=this._thinBars?Math.min(e,1):e;return(0,s.interactionTolerance)().series+t/2}_getBarSpacing(){return this._barSpacing}_calcBarWidth(e){const t=Math.floor(e);return Math.max(t,Math.floor((0,s.optimalBarWidth)(this._barSpacing,e)))}}},66919:(e,t,i)=>{"use strict";i.d(t,{SeriesBarsPaneView:()=>a});var s=i(94804),r=i(41892),n=i(79035),o=i(71263);class a extends n.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.properties().childs(),n={bars:this._bars,barSpacing:this._model.timeScale().barSpacing(),dontDrawOpen:i.barStyle.childs().dontDrawOpen.value(), +thinBars:11===i.style.value()?i.rangeStyle.childs().thinBars.value():i.barStyle.childs().thinBars.value()},a=new s.CompositeRenderer;return a.append(new o.PaneRendererBars(n)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&a.append(new r.SelectionRenderer(this._selectionData)),a}}},35251:(e,t,i)=>{"use strict";i.d(t,{SeriesBaselinePaneView:()=>m});var s=i(68906),r=i(94804),n=i(86441),o=i(5531),a=i(4652),l=i(49094),c=i(55257),h=i(16282),d=i(84346);class u extends h.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data)return null;const{items:t,topLineWidth:i,bottomLineWidth:s}=this._data,r=(0,l.interactionTolerance)().series+(i+s)/4,o=(0,c.lowerbound)(t,e,(e,t)=>e.x<=t.x),h=Math.max(1,o-1),u=Math.min(t.length-1,o+1);for(let i=h;i<=u;++i){const s=t[i-1],o=t[i],{distance:l}=(0,a.distanceToSegment)(new n.Point(s.x,s.y),new n.Point(o.x,o.y),new n.Point(e.x,e.y));if(l<=r)return new d.HitTestResult(d.HitTestResult.REGULAR)}return null}_drawImpl(e){if(null===this._data)return;const{items:t,baseLevelCoordinate:i,bottom:s,bottomFillColor1:r,bottomFillColor2:a,topFillColor1:c,topFillColor2:h,topLineColor:d,bottomLineColor:u,topLineWidth:p,bottomLineWidth:_}=this._data;if(!function(e){if(0===e.length)return!1;const t=e.findIndex(e=>(0,l.coordinateIsValid)(e.y));if(-1===t)return!1;let i=e.length-1;for(;i>t&&!(0,l.coordinateIsValid)(e[i].y);)i--;return!(t>i)}(t))return;const{topItems:m,bottomItems:g}=function(e,t){const i=[],s=[];let r=null;for(let a=0;a=t&&s.push(c),r=c;else{if(null===r)continue;c=r}if((0,l.coordinateIsValid)(h.y)&&(c.y>t&&h.yt))if(Math.abs(c.x-h.x)<1){const e=new n.Point(c.x,t);i.push(e),s.push(e)}else{const e=(0,o.intersectLineSegments)(c,h,new n.Point(c.x,t),new n.Point(h.x,t));if(null!==e){const t=c.add(h.subtract(c).scaled(e));i.push(t),s.push(t)}}}return{topItems:i,bottomItems:s}}(t,i);e.lineCap="round",e.lineJoin="round",0!==m.length&&(e.beginPath(),e.moveTo(m[0].x,i),this._makeLine(e,m,!0,0),e.closePath(),e.fillStyle=this._makeLinearGradient(e,c,h,i-s,i),e.fill(),e.beginPath(),this._makeLine(e,m,!1,0),e.lineWidth=p,e.strokeStyle=d,e.stroke()),0!==g.length&&(e.beginPath(),e.moveTo(g[0].x,i),this._makeLine(e,g,!0,1),e.closePath(),e.fillStyle=this._makeLinearGradient(e,r,a,i,i+s),e.fill(),e.beginPath(),this._makeLine(e,g,!1,1),e.lineWidth=_,e.strokeStyle=u,e.stroke())}_makeLine(e,t,i,s){if(null===this._data)return;const r=t.findIndex(e=>(0,l.coordinateIsValid)(e.y));if(-1===r)return;const{barSpacing:n,baseLevelCoordinate:o}=this._data,a=.25*n;let c;const h=t.length;for(let n=r;n=o&&h.y>=o){e.moveTo(h.x,h.y);continue}}else if(c&&c.y<=o&&h.y<=o){e.moveTo(h.x,h.y);continue}if(c&&(0,l.coordinateIsValid)(c.y))e.lineTo(h.x,h.y),i&&!(0,l.coordinateIsValid)(d.y)&&e.lineTo(h.x,o);else if(d&&(0, +l.coordinateIsValid)(d.y))i?(n!==r&&e.lineTo(h.x,o),e.lineTo(h.x,h.y)):e.moveTo(h.x,h.y);else if(i){if(0===n)continue;n!==r&&e.lineTo(h.x-a,o),e.lineTo(h.x-a,h.y),e.lineTo(h.x+a,h.y),e.lineTo(h.x+a,o)}else e.moveTo(h.x-a,h.y),e.lineTo(h.x+a,h.y);c=h}}}_makeLinearGradient(e,t,i,s,r){const n=e.createLinearGradient(0,s,0,r);return n.addColorStop(0,t),n.addColorStop(1,i),n}}var p=i(41892),_=i(83150);class m extends _.SeriesSingleLinePaneView{constructor(){super(...arguments),this._renderer=new u,this._topFillColor1="",this._topFillColor2="",this._bottomFillColor1="",this._bottomFillColor2="",this._topLineColor="",this._bottomLineColor="",this._topLineWidth=0,this._bottomLineWidth=0,this._barSpacing=0,this._bottom=0,this._baseLevelCoordinate=0}renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer.setData({items:this._items,topFillColor1:this._topFillColor1,topFillColor2:this._topFillColor2,bottomFillColor1:this._bottomFillColor1,bottomFillColor2:this._bottomFillColor2,topLineColor:this._topLineColor,bottomLineColor:this._bottomLineColor,topLineWidth:this._topLineWidth,bottomLineWidth:this._bottomLineWidth,barSpacing:this._barSpacing,baseLevelCoordinate:this._baseLevelCoordinate,bottom:this._bottom});const i=new r.CompositeRenderer;return i.append(this._renderer),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&i.append(new p.SelectionRenderer(this._selectionData)),i}_updateImpl(){super._updateImpl();const e=this._source.priceScale();if(!e)return;const t=this._source.properties().childs().baselineStyle.childs(),i=t.transparency.value();this._topFillColor1=(0,s.generateColor)(t.topFillColor1.value(),i),this._topFillColor2=(0,s.generateColor)(t.topFillColor2.value(),i),this._bottomFillColor1=(0,s.generateColor)(t.bottomFillColor1.value(),i),this._bottomFillColor2=(0,s.generateColor)(t.bottomFillColor2.value(),i),this._topLineColor=t.topLineColor.value(),this._bottomLineColor=t.bottomLineColor.value(),this._topLineWidth=t.topLineWidth.value(),this._bottomLineWidth=t.bottomLineWidth.value(),this._barSpacing=this._model.timeScale().barSpacing(),this._bottom=e.height(),this._baseLevelCoordinate=Math.round(this._bottom*(Math.abs(100-t.baseLevelPercentage.value())/100))}}},42169:(e,t,i)=>{"use strict";i.d(t,{SeriesWaterlinePaneView:()=>a});var s=i(22221),r=i(56589),n=i(84346),o=i(43891);class a extends s.HorizontalLinePaneView{constructor(e){super(),this._getters=e;const t={cursorType:r.PaneCursorType.VerticalResize,activeItem:0,areaName:n.AreaName.SourceItemMove};this._lineRenderer.setHitTest(new n.HitTestResult(n.HitTestResult.MOVEPOINT,t)),this._lineRendererData.visible=!0,this._lineRendererData.linestyle=o.LINESTYLE_SPARSE_DOTTED}_updateImpl(){const{baseLevelPercentage:e,paneHeight:t,color:i}=this._getters,s=Math.abs(100-e());this._lineRendererData.y=Math.round(t()*(s/100)),this._lineRendererData.color=i()}}},52403:(e,t,i)=>{"use strict";i.d(t,{PaneRendererSeriesBase:()=>r});var s=i(84346);class r{constructor(){this._bars=[]}hitTest(e){ +const t=this._bars,i=this._getBarSpacing(),s=i/2;if(0===t.length)return null;const r=this._getTolerance(),n=t[0],o=t[t.length-1];if(e.xo.time+s+r)return null;let a=0,l=t.length-1,c=-1;for(;a<=l;){const i=Math.floor((a+l)/2),h=t[i];let d=s;if(h!==n&&h!==o||(d+=r),Math.abs(h.time-e.x)<=d){c=i;break}e.x-h.time>s?a=i+1:l=i-1}if(-1!==c){const n=Math.ceil(r/i);if(0!==n){const i=Math.max(0,c-n),o=Math.min(t.length-1,c+n);for(let n=i;n<=o;n++)if(Math.abs(e.x-t[n].time)<=s+r&&this._isPointAtBar(t[n],e.y,r))return this._getHitTest()}else if(this._isPointAtBar(t[c],e.y,r))return this._getHitTest()}return null}_getHitTest(){return new s.HitTestResult(s.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=Math.min(e.high,e.low),r=Math.max(e.high,e.low);return s-i<=t&&t<=r+i}}},48998:(e,t,i)=>{"use strict";i.d(t,{PaneRendererCandles:()=>l});var s=i(88537),r=i(84346),n=i(42759),o=i(49094),a=i(52403);class l extends a.PaneRendererSeriesBase{constructor(e){super(),this._barSpacing=1,this._barWidth=1,this._borderVisible=!1,this._barBorderWidth=1,this._wickVisible=!1,this._bodyVisible=!0,this._borderColor=void 0,this._wickColor=void 0,this._hittest=void 0,this._isPriceScaleInverted=!1,e&&this.setData(e)}setData(e){this._bars=e.bars,this._barSpacing=e.barSpacing,this._borderVisible=e.borderVisible,this._bodyVisible=e.bodyVisible,this._wickVisible=e.wickVisible,this._borderColor=e.borderColor,this._wickColor=e.wickColor,this._hittest=e.hittest,this._isPriceScaleInverted=e.isPriceScaleInverted}hitTest(e){return this._wickVisible||this._borderVisible||this._bodyVisible?super.hitTest(e):null}draw(e,t){if(0===this._bars.length)return;const i=t.pixelRatio;if(this._barWidth=(0,o.optimalCandlestickWidth)(this._barSpacing,i),this._barWidth>=2){Math.floor(i)%2!=this._barWidth%2&&this._barWidth--}this._wickVisible&&this._drawWicks(e,i),this._borderVisible&&this._drawBorder(e,i),this._bodyVisible&&this._drawCandles(e,i)}_getTolerance(){return(0,o.interactionTolerance)().series+this._barBorderWidth/2}_getBarSpacing(){return this._barSpacing}_getHitTest(){return this._hittest||new r.HitTestResult(r.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=this._bodyVisible||this._borderVisible,r=this._wickVisible;if(!s&&!r)return!1;if(s){const s=r?Math.min(e.high,e.low):Math.min(e.open,e.close),n=r?Math.max(e.high,e.low):Math.max(e.open,e.close);return s-i<=t&&t<=n+i}{const s=Math.min(e.open,e.close),r=Math.max(e.open,e.close);return e.high-i<=t&&t<=s+i||r-i<=t&&t<=e.low+i}}_drawWicks(e,t){const i=this._bars;let r="",n=Math.min(Math.floor(t),Math.floor(this._barSpacing*t));n=Math.max(Math.floor(t),Math.min(n,this._barWidth));const o=Math.floor(.5*n);let a=null;for(const l of i){const i=l.wickColor?l.wickColor:(0,s.ensureDefined)(this._wickColor);i!==r&&(e.fillStyle=i,r=i);let c=Math.round(Math.min(l.open,l.close)*t),h=Math.round(Math.max(l.open,l.close)*t);this._isPriceScaleInverted&&([h,c]=[c,h]);const d=Math.round(l.high*t),u=Math.round(l.low*t);let p=Math.round(t*l.time)-o;const _=p+n-1;null!==a&&(p=Math.max(a+1,p), +p=Math.min(p,_));const m=_-p+1;e.fillRect(p,d,m,c-d),e.fillRect(p,h+1,m,u-h-1),a=_}}_calculateBorderWidth(e){let t=Math.floor(1*e);this._barWidth<=2*t&&(t=Math.floor(.5*(this._barWidth-1)));const i=Math.max(Math.floor(e),t);return this._barWidth<=2*i?Math.max(Math.floor(e),Math.floor(1*e)):i}_drawBorder(e,t){let i="";const r=this._calculateBorderWidth(t);let o=null;for(const a of this._bars){if(a.borderColor!==i&&(e.fillStyle=a.borderColor?a.borderColor:(0,s.ensureDefined)(this._borderColor),i=a.borderColor),this._bodyVisible&&a.hollow)continue;let l=Math.round(a.time*t)-Math.floor(.5*this._barWidth);const c=l+this._barWidth-1,h=Math.round(Math.min(a.open,a.close)*t),d=Math.round(Math.max(a.open,a.close)*t);if(null!==o&&(l=Math.max(o+1,l),l=Math.min(l,c)),this._barSpacing*t>2*r)(0,n.fillRectInnerBorder)(e,l,h,c-l+1,d-h+1,r);else{const t=c-l+1;e.fillRect(l,h,t,d-h+1)}o=c}}_drawCandles(e,t){let i="";const s=this._calculateBorderWidth(t);for(const r of this._bars){if(this._borderVisible&&this._barWidth<=2*s&&!r.hollow)continue;let o=Math.round(Math.min(r.open,r.close)*t),a=Math.round(Math.max(r.open,r.close)*t),l=Math.round(r.time*t)-Math.floor(.5*this._barWidth),c=l+this._barWidth-1;if(r.color!==i){const t=r.color;e.fillStyle=t,i=t}if(r.hollow)e.fillStyle=r.color,(0,n.fillRectInnerBorder)(e,l,o,c-l+1,a-o+1,s);else{if(this._borderVisible&&(l+=s,o+=s,c-=s,a-=s),o>a)continue;e.fillRect(l,o,c-l+1,a-o+1)}}}}},85224:(e,t,i)=>{"use strict";i.d(t,{SeriesCandlesPaneView:()=>l});var s=i(94804),r=i(49094),n=i(41892),o=i(79035),a=i(48998);class l extends o.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const o=this._source.properties().childs().candleStyle.childs(),l=this._model.timeScale().barSpacing(),c={bars:this._bars,barSpacing:l,bodyVisible:o.drawBody.value(),borderVisible:o.drawBorder.value(),borderColor:o.borderColor.value(),wickColor:o.wickColor.value(),barWidth:(0,r.optimalBarWidth)(l),wickVisible:o.drawWick.value(),isPriceScaleInverted:i.isInverted()},h=new s.CompositeRenderer;return h.append(new a.PaneRendererCandles(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new n.SelectionRenderer(this._selectionData)),h}}},59153:(e,t,i)=>{"use strict";i.d(t,{SeriesColumnsPaneView:()=>p});var s=i(88537),r=i(86441),n=i(67337),o=i(3308),a=i(84346),l=i(94804),c=i(71053),h=i(85847),d=i(41892),u=i(68617);class p{constructor(e,t){this._items=[],this._invalidated=!0,this._isMarkersEnabled=(0,n.enabled)("source_selection_markers"),this._selectionData=null,this._histogramBase=0,this._source=e,this._model=t,this._selectionIndexer=new h.SelectionIndexes(t.timeScale())}update(){this._invalidated=!0}renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i={barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:"",histogramBase:this._histogramBase},s=new l.CompositeRenderer;return s.append(new u.PaneRendererColumns(i)), +this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&s.append(new d.SelectionRenderer(this._selectionData)),s}_updateImpl(){this._items=[];const e=this._model.timeScale(),t=this._source.priceScale();if(e.isEmpty()||!t||t.isEmpty())return;const i=e.visibleBarsStrictRange();if(null===i)return;if(0===this._source.bars().size())return;const n=this._source.nearestIndex(i.firstBar(),c.PlotRowSearchMode.NearestRight),l=this._source.nearestIndex(i.lastBar(),c.PlotRowSearchMode.NearestLeft);if(void 0===n||void 0===l)return;const h=this._source.bars().range(n,l),d=this._source.barColorer(),u={},p=this._source.barFunction(),_=h.reduce((e,t,s)=>{var n;const a=p(s);if(!(0,o.default)(a))return e;u.value=s;const l=null!==(n=s[7])&&void 0!==n?n:d.barStyle(t,!1,u),c=new r.Point(t,a);return c.style=l,c.timePointIndex=t,this._items.push(c),u.previousValue=s,i.contains(t)&&null!=e?e:a},null);if(null!==_)if(t.pointsArrayToCoordinates(this._items,_),e.timedValuesToCoordinates(this._items),this._histogramBase=t.isInverted()?0:t.height(),this._model.selection().isSelected(this._source)){const i=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,barSpacing:e.barSpacing(),hittestResult:a.HitTestResult.REGULAR};const n=(0,s.ensureNotNull)(this._model.paneForSource(this._source)).height();this._selectionData.hittestResult=a.HitTestResult.REGULAR;for(let s=0;s{"use strict";i.d(t,{generateSplitTitleForGui:()=>n,generateTitleForGui:()=>o});i(88537);var s=i(28353),r=i(35218);function n(e){const t="QUANDL"===(e=e||{}).exchange,i={title:"",description:"",interval:"",exchange:"",provider:"",chartStyle:"",sessionDescription:""};let n="";if(e.description&&t)if(2===e.description.split("/").length)n=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),n+=t[2===t.length?1:0]})}else n=e.description?e.description:e.symbol;if(e.ticker?(i.title=e.ticker,i.description=a(n)):i.title=a(n),e.interval&&(i.interval=(0,r.translatedIntervalString)(e.interval)),t&&e.description){const t=/[\w_]+\/[\w_]+/.exec(e.description);t&&t[0]?i.provider=a(t[0].split("/")[0]):i.provider=a(e.description.split("/")[0])}return e.exchange&&(i.exchange=a(e.exchange)),i.chartStyle=a(function(e){return e.inputs,8===e.style?(0,s.t)("Heikin Ashi"):""}(e)),e.branding&&!n.toUpperCase().includes("TradingView".toUpperCase())&&(i.branding="TradingView"),e.sessionDescription&&(i.sessionDescription=a(e.sessionDescription)),i}function o(e){const t=n(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}`:"")}(t)}function a(e){return e.replace(/'/g,"")}},30076:(e,t,i)=>{"use strict";i.d(t,{SeriesHollowCandlesPaneView:()=>l});var s=i(94804),r=i(49094),n=i(41892),o=i(48998),a=i(79035);class l extends a.SeriesBarCandlesPaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.priceScale();if(!i)return null;const a=this._source.properties().childs().hollowCandleStyle.childs(),l=this._model.timeScale().barSpacing(),c={bars:this._bars,barSpacing:l,bodyVisible:a.drawBody.value(),borderVisible:a.drawBorder.value(),borderColor:a.borderColor.value(),wickColor:a.wickColor.value(),barWidth:(0,r.optimalBarWidth)(l),wickVisible:a.drawWick.value(),isPriceScaleInverted:i.isInverted()},h=new s.CompositeRenderer;return h.append(new o.PaneRendererCandles(c)),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData&&h.append(new n.SelectionRenderer(this._selectionData)),h}}},33837:(e,t,i)=>{"use strict";i.d(t,{SeriesLinePaneView:()=>h});var s=i(84346),r=i(94804),n=i(46214),o=i(28113),a=i(41892),l=i(16654),c=i(83150);class h extends c.SeriesSingleLinePaneView{renderer(e,t){this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i=this._source.properties().childs().lineStyle.childs(),c={barSpacing:this._model.timeScale().barSpacing(),items:this._items,lineColor:i.color.value(),lineStyle:i.linestyle.value(),withMarkers:i.styleType.value()===l.STYLE_LINE_TYPE_MARKERS,lineWidth:i.linewidth.value(),simpleMode:!0,hitTestResult:s.HitTestResult.REGULAR};let h,d;if(h=i.styleType.value()===l.STYLE_LINE_TYPE_STEP?new o.PaneRendererStepLine(c):new n.PaneRendererLine(c),this._model.selection().isSelected(this._source)&&this._isMarkersEnabled&&this._selectionData){const e=new r.CompositeRenderer;e.append(h),e.append(new a.SelectionRenderer(this._selectionData)),d=e}else d=h;return d}}},79035:(e,t,i)=>{"use strict";i.d(t,{SeriesBarCandlesPaneView:()=>c});var s=i(86441),r=i(67337),n=i(85847),o=i(71053),a=i(84346);function l(e,t){const i=e[1],s=e[2],r=e[3],n=e[4];return void 0!==i&&void 0!==s&&void 0!==r&&void 0!==n&&null!==i&&null!==s&&null!==r&&null!==n&&(t.open=i,t.high=s,t.low=r,t.close=n,!0)}class c{constructor(e,t){this._bars=[],this._invalidated=!0,this._isMarkersEnabled=(0,r.enabled)("source_selection_markers"),this._selectionData=null,this._source=e,this._model=t,this._selectionIndexer=new n.SelectionIndexes(t.timeScale())}items(){return this._bars}update(){this._invalidated=!0}_updateImpl(e){const t=null!=e?e:l,i=this._model.timeScale(),r=this._source.priceScale();if(this._bars=[],i.isEmpty()||!r||r.isEmpty())return;const n=i.visibleBarsStrictRange();if(null===n)return;if(0===this._source.bars().size())return;let c=this._source.nearestIndex(n.firstBar(),o.PlotRowSearchMode.NearestRight) +;const h=this._source.nearestIndex(n.lastBar(),o.PlotRowSearchMode.NearestLeft);if(void 0===c||void 0===h)return;for(;c<=h;c++){if(null!==this._source.bars().valueAt(c))break}if(c>h)return;const d=this._source.bars().range(c,h),u=this._source.barColorer(),p={};if(d.each((e,i)=>{var s;const r={time:Math.round(e),exactTime:Math.round(e),open:NaN,high:NaN,low:NaN,close:NaN,color:""};if(!t(i,r))return!1;p.value=i;const n=null!==(s=i[7])&&void 0!==s?s:u.barStyle(e,!1,p);return i[7]=n,p.previousValue=i,r.color=n.barColor,r.borderColor=n.barBorderColor,r.wickColor=n.barWickColor,r.hollow=n.isBarHollow,this._bars.push(r),!1}),0===this._bars.length)return;const _=this._source.firstValue();if(null!==_)if(r.barPricesToCoordinates(this._bars,_),i.barIndexesToCoordinates(this._bars),this._model.selection().isSelected(this._source)){const e=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:a.HitTestResult.REGULAR,barSpacing:i.barSpacing()};const t=this._model.paneForSource(this._source);if(!t)return;const n=t.height();for(let t=0;t{"use strict";i.d(t,{SeriesDataSource:()=>S});var s=i(88537),r=i(80643),n=i(19234),o=i(29823),a=i(63948),l=i(51344),c=i(95836),h=i(2872),d=i.n(h);class u{constructor(){this._modified=new(d()),this._loading=new(d()),this._completed=new(d()),this._error=new(d()),this._symbolError=new(d()),this._symbolResolved=new(d()),this._seriesError=new(d()),this._symbolNotPermitted=new(d()),this._symbolInvalid=new(d()),this._symbolGroupNotPermitted=new(d()),this._chartTypeNotPermitted=new(d()),this._intradaySpreadNotPermitted=new(d()),this._intradayExchangeNotPermitted=new(d()),this._customIntervalNotPermitted=new(d()),this._secondsIntervalNotPermitted=new(d()),this._tickMarksRangeChanged=new(d()),this._barReceived=new(d()),this._seriesTimeFrame=new(d()),this._dataUpdated=new(d())}destroy(){this._modified.destroy(),this._loading.destroy(),this._completed.destroy(),this._error.destroy(),this._symbolError.destroy(),this._symbolResolved.destroy(),this._seriesError.destroy(),this._symbolInvalid.destroy(),this._symbolNotPermitted.destroy(),this._symbolGroupNotPermitted.destroy(),this._chartTypeNotPermitted.destroy(),this._intradaySpreadNotPermitted.destroy(),this._intradayExchangeNotPermitted.destroy(),this._customIntervalNotPermitted.destroy(),this._secondsIntervalNotPermitted.destroy(),this._tickMarksRangeChanged.destroy(),this._barReceived.destroy(),this._seriesTimeFrame.destroy(),this._dataUpdated.destroy()}modified(){return this._modified}loading(){return this._loading}completed(){return this._completed}error(){return this._error}symbolError(){return this._symbolError}symbolResolved(){ +return this._symbolResolved}seriesError(){return this._seriesError}symbolInvalid(){return this._symbolInvalid}symbolNotPermitted(){return this._symbolNotPermitted}symbolGroupNotPermitted(){return this._symbolGroupNotPermitted}chartTypeNotPermitted(){return this._chartTypeNotPermitted}intradaySpreadNotPermitted(){return this._intradaySpreadNotPermitted}intradayExchangeNotPermitted(){return this._intradayExchangeNotPermitted}customIntervalNotPermitted(){return this._customIntervalNotPermitted}secondsIntervalNotPermitted(){return this._secondsIntervalNotPermitted}tickMarksRangeChanged(){return this._tickMarksRangeChanged}barReceived(){return this._barReceived}seriesTimeFrame(){return this._seriesTimeFrame}dataUpdated(){return this._dataUpdated}fireCompleted(e,t,i){this._completed.fire(e,t,i)}fireModified(){this._modified.fire()}fireLoading(e){this._loading.fire(e)}fireError(){this._error.fire()}fireSymbolError(e){this._symbolError.fire(e),this.fireError()}fireSymbolResolved(e){this._symbolResolved.fire(e)}fireSeriesError(e){this._seriesError.fire(e),this.fireError()}fireSymbolInvalid(){this._symbolInvalid.fire()}fireSymbolNotPermitted(e){this._symbolNotPermitted.fire(e)}fireSymbolGroupNotPermitted(e){this._symbolGroupNotPermitted.fire(e)}fireChartTypeNotPermitted(e){this._chartTypeNotPermitted.fire(e),this.fireError()}fireIntradaySpreadNotPermitted(){this._intradaySpreadNotPermitted.fire(),this.fireError()}fireIntradayExchangeNotPermitted(){this._intradayExchangeNotPermitted.fire(),this.fireError()}fireCustomIntervalNotPermitted(){this._customIntervalNotPermitted.fire(),this.fireError()}fireSecondsIntervalNotPermitted(){this._secondsIntervalNotPermitted.fire(),this.fireError()}fireTickMarksRangeChanged(e){this._tickMarksRangeChanged.fire(e)}fireBarReceived(e){this._barReceived.fire(e)}fireSeriesTimeFrame(e,t,i,s,r){this._seriesTimeFrame.fire(e,t,i,s,r)}fireDataUpdated(e,t,i){this._dataUpdated.fire(e,t,i)}}var p=i(98125),_=i(37667);const m=(0,p.getLogger)("Chart.SeriesDataSource");var g;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingFirstDataUpdate=2]="AwaitingFirstDataUpdate",e[e.Active=3]="Active"}(g||(g={}));let f=1;let v=1;class S{constructor(e,t,i,r){var n;this._symbol=null,this._resolvedSymbolName=null,this._instanceId=null,this._symbolInstanceId=null,this._resolution=null,this._timeFrame=null,this._data=new a.SeriesData,this._dataEvents=new u,this._status=g.Idle,this._turnaroundCounter=1,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._turnaroundPrefix=t,this._createSeriesParams=(n=null!=i?i:{count:300}).startDate?n.endDate||n.count?n.endDate?["from_to",n.startDate,n.endDate]:["bar_count",n.startDate,(0,s.ensure)(n.count)]:["from_to",n.startDate]:n.count||300,this._timeFrame=r||null,this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged)} +modifySeries(e,t,i=null,n=!1){n&&(m.logNormal("Due to force flag clearing symbol & resolution to force re-requesting data."),this._symbol=null,this._resolution=null);const a=this._symbol,l=this._resolution;if(this._symbol=e,this._resolution=t,null===this._instanceId)return void(this._timeFrame=i);const c=!(0,r.deepEquals)(a,e)[0]||null!==this._resolvedSymbolName&&this._resolvedSymbolName!==this._getSymbolNameString(e),h=null===l||!o.Interval.isEqual(l,t);(c||h||null!==i)&&(this._timeFrame=null,(c||h)&&this._turnaroundCounter++,c&&this._resolveSymbol(),this._gateway.modifySeries(this._instanceId,this.turnaround(),(0,s.ensureNotNull)(this._symbolInstanceId),this._resolution,i,this._onMessage.bind(this)),this._dataEvents.fireModified())}requestMoreData(e){null!==this._instanceId&&this._gateway.requestMoreData(this._instanceId,e,this._onMessage.bind(this))}requestMoreTickmarks(e){null!==this._instanceId&&this._gateway.requestMoreTickmarks(this._instanceId,e,this._onMessage.bind(this))}isStarted(){return this._status!==g.Idle}isActive(){return this._status===g.Active}resolution(){return this._resolution}start(){this.isStarted()?m.logNormal("start: data source is already started, nothing to do"):((0,s.assert)(null!==this._symbol,"symbol must be set before start"),(0,s.assert)(null!==this._resolution,"resolution must be set before start"),this._gateway.isConnected().value()?this._createSeries():this._changeStatusTo(g.AwaitingConnection))}stop(){this.isStarted()?(null!==this._instanceId&&(this._gateway.removeSeries(this._instanceId),this._instanceId=null),this._changeStatusTo(g.Idle)):m.logNormal("stop: data source is already stopped, nothing to do")}instanceId(){return this._instanceId}data(){return this._data}clearData(){this.isStarted()?this._enqueueUpdate(()=>this._clearDataImpl()):this._clearDataImpl()}dataEvents(){return this._dataEvents}turnaround(){return`${this._turnaroundPrefix}${this._turnaroundCounter}`}symbolInstanceId(){return this._symbolInstanceId}symbol(){return this._symbol}moveData(e){this._enqueueUpdate(()=>this._data.moveData(e))}_resolveSymbol(){null!==this._symbol&&(this._symbolInstanceId=this._gateway.resolveSymbol("sds_sym_"+f++,(0,n.encodeExtendedSymbolOrGetSimpleSymbolString)(this._symbol),this._onMessage.bind(this)))}_clearDataImpl(){this._data.clear()}_changeStatusTo(e){(0,s.assert)(this._status!==e,"Source and destination status should be distinct"),m.logNormal(`Status changed from ${g[this._status]} to ${g[e]}`),this._status=e}_createSeries(){(0,s.assert)(this._status!==g.Active,'Status should not be "Active" when creating a study'),this._instanceId="sds_"+v++,this._resolveSymbol(),this._gateway.createSeries(this._instanceId,this.turnaround(),(0,s.ensureNotNull)(this._symbolInstanceId),(0,s.ensureNotNull)(this._resolution),this._createSeriesParams,this._timeFrame,this._onMessage.bind(this)),this._timeFrame=null,this._changeStatusTo(g.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){ +this._status===g.AwaitingConnection&&this._createSeries()}_onGatewayDisconnected(){this._status!==g.Idle&&this._status!==g.AwaitingConnection&&(this._instanceId=null,this._changeStatusTo(g.AwaitingConnection)),this._turnaroundCounter=1}_onMessage(e){this._enqueueUpdate(()=>this._onMessageImpl(e))}async _onMessageImpl(e){switch(e.method){case"symbol_resolved":{const[t,i]=e.params;if(t!==this._symbolInstanceId){m.logNormal(`Resolve for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolResolved(i);break}case"symbol_error":if(e.params[0]!==this._symbolInstanceId){m.logNormal(`Symbol error for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolError(e);break;case"series_timeframe":{const[t,i,s,r,n,o,a]=e.params;if(!this._checkTurnaround(t,i)){m.logNormal(`Time frame for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesTimeFrame(s,r,n,o,a);break}case"series_error":{const[t,i]=e.params;if(!this._checkTurnaround(t,i)){m.logNormal(`Series error for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesError(e.params[2]);break}case"series_loading":{const[t,i]=e.params;if(!this._checkTurnaround(t,i))break;this._onSeriesLoading(e.time);break}case"series_completed":{const[t,i,s,r]=e.params;if(!this._checkTurnaround(t,s)){m.logNormal(`Series completed for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${s})`);break}this._onSeriesCompleted(i,e.time,r);break}case"data_update":if(!this._checkTurnaround(e.params.customId,e.params.turnaround)){m.logNormal(`Data update for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${e.params.customId} (${e.params.turnaround})`);break}await this._onDataUpdate(e.params.plots,e.params.nonseries,e.params.lastBar);break;case"clear_data":if(e.params.turnaround!==this.turnaround()){m.logNormal(`Clear data for old data, expected: ${this.turnaround()}, actual ${e.params.turnaround}`);break}this._clearDataImpl(),this._dataEvents.fireDataUpdated(void 0,!1,null)}}_onSeriesError(e){let t,i;if("string"==typeof e)i={error:e},t=e;else if(i=e,e.ctx){const i={};Object.entries(e.ctx).forEach(([e,t])=>{i[e]=t.toString()}),t=e.error.format(i)}else t=e.error;if(t.startsWith("study_not_auth:")){const e=t.split(":",2)[1].split("@",2)[0];["BarSetRenko","BarSetPriceBreak","BarSetKagi","BarSetPnF"].includes(e)?this._dataEvents.fireChartTypeNotPermitted(e):"BarSetSpread"===e?this._dataEvents.fireIntradaySpreadNotPermitted():"BarSetRange"===e&&this._dataEvents.fireCustomIntervalNotPermitted()}else"resolution_not_entitled"===t?this._dataEvents.fireIntradayExchangeNotPermitted():"custom_resolution"===t?this._dataEvents.fireCustomIntervalNotPermitted():"seconds_not_entitled"===t&&this._dataEvents.fireSecondsIntervalNotPermitted();this._dataEvents.fireSeriesError(i)}_onSeriesTimeFrame(e,t,i,s,r){this._dataEvents.fireSeriesTimeFrame(e,t,i,null==s||s,r)} +_onSymbolError(e){if(e.params[1]===c.permissionDenied)switch(e.params[2]){case c.SymbolErrorPermissionDeniedReason.Symbol:this._dataEvents.fireSymbolNotPermitted(e.params[3]);break;case c.SymbolErrorPermissionDeniedReason.GroupPermission:this._dataEvents.fireSymbolGroupNotPermitted(e.params[3]);break;default:this._dataEvents.fireSymbolNotPermitted(e.params[2])}else e.params[1]===c.invalidSymbol&&this._dataEvents.fireSymbolInvalid();this._dataEvents.fireSymbolError(e.params[1])}_onSymbolResolved(e){this._resolvedSymbolName=(0,_.symbolForApi)(e,this._getSymbolNameString((0,s.ensureNotNull)(this._symbol))),this._dataEvents.fireSymbolResolved(e)}_getSymbolNameString(e){return"string"==typeof e.symbol?e.symbol:e.symbol.symbol}async _onDataUpdate(e,t,i){this._onDataUnpacked(e,i,await async function(e){if(void 0===e)return{projectionPlots:[],boxSize:null};if(""===e.d||"nochange"===e.indexes)return null;const t=await(0,l.unpackNonSeriesData)(e.d);if(null===t||t.indexes_replace)return null;const i=e.indexes,{bars:s,price:r,boxSize:n,reversalAmount:o}=t.data,a=(s||[]).map(e=>{let t;return"factor"in e?t=e.factor:"additionalPrice"in e&&(t=e.additionalPrice),{index:i[e.time],value:[0,e.open,e.high,e.low,e.close,e.volume,t,void 0]}});return{lastPrice:r,projectionPlots:a,reversalAmount:o,boxSize:n}}(t))}_enqueueUpdate(e){return this._ongoingDataUpdate=this._ongoingDataUpdate.then(e,e),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){if(this._status===g.Idle)return;this._status===g.AwaitingFirstDataUpdate&&(this._changeStatusTo(g.Active),this._clearDataImpl());const s=this._data.bars().size(),r=this._data.bars().firstIndex(),n=this._data.mergeRegularBars(e);null!==i&&(this._data.nsBars().clear(),this._data.nsBars().merge(i.projectionPlots),this._data.lastProjectionPrice=i.lastPrice,null!==i.boxSize&&(this._data.boxSize=i.boxSize),this._data.reversalAmount=i.reversalAmount);const o=null===r||null!==n&&n.index{"use strict";i.d(t,{SeriesHorizontalBaseLinePaneView:()=>r});var s=i(38712);class r extends s.SeriesHorizontalLinePaneView{constructor(e){super(e)}_updateImpl(){this._lineRendererData.visible=!1;const e=this._series.priceScale().mode();if(!e.percentage&&!e.indexedTo100)return;const t=this._series.firstValue();null!==t&&(this._lineRendererData.visible=!0,this._lineRendererData.y=this._series.priceScale().priceToCoordinate(t,t),this._lineRendererData.color=this._series.properties().childs().baseLineColor.value())}}},38712:(e,t,i)=>{"use strict";i.d(t,{SeriesHorizontalLinePaneView:()=>r});var s=i(22221);class r extends s.HorizontalLinePaneView{constructor(e){super(),this._series=e,this._model=e.model()}}},83150:(e,t,i)=>{"use strict";i.d(t,{SeriesSingleLinePaneView:()=>d}) +;var s=i(3308),r=i(86441),n=i(88537),o=i(67337),a=i(85847),l=i(71053),c=i(84346),h=i(55257);class d{constructor(e,t){this._items=[],this._invalidated=!0,this._isMarkersEnabled=(0,o.enabled)("source_selection_markers"),this._selectionData=null,this._source=e,this._model=t,this._selectionIndexer=new a.SelectionIndexes(t.timeScale())}update(){this._invalidated=!0}_updateImpl(){var e,t;this._items=[];const i=this._model.timeScale(),o=this._source.priceScale();if(i.isEmpty()||!o||o.isEmpty())return;const a=i.visibleBarsStrictRange();if(null===a)return;if(0===this._source.bars().size())return;const d=null!==(e=this._source.nearestIndex(a.firstBar()-1,l.PlotRowSearchMode.NearestLeft))&&void 0!==e?e:a.firstBar()-1,u=null!==(t=this._source.nearestIndex(a.lastBar()+1,l.PlotRowSearchMode.NearestRight))&&void 0!==t?t:a.lastBar()+1,p=this._source.barFunction();let _=null;const m=this._model.timeScale().barSpacing();if(m<.1&&this._source.supportsPressedChunks()){_=this._source.firstValue();const e=this._source.pressedChunks(m,(0,n.ensureNotNull)(this._source.priceSource())),t=(0,h.lowerbound)(e,d,(e,t)=>e.startTimee.endTime{const i=new r.Point(t.startTime,e);this._items.push(i)})}}else{_=this._source.bars().range(d,u).reduce((e,t,i)=>{const n=p(i);if(!(0,s.default)(n))return e;const o=new r.Point(t,n);return this._items.push(o),a.contains(t)?null!=e?e:n:e},null)}if(null!==_)if(o.pointsArrayToCoordinates(this._items,_),i.timedValuesToCoordinates(this._items),this._model.selection().isSelected(this._source)){const e=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,barSpacing:i.barSpacing(),hittestResult:c.HitTestResult.REGULAR};const t=(0,n.ensureNotNull)(this._model.paneForSource(this._source)).height();this._selectionData.hittestResult=c.HitTestResult.REGULAR;for(let s=0;s{"use strict";i.d(t,{calculateColor:()=>P,SeriesValuesProvider:()=>T});var s=i(88537),r=i(93751),n=i(24377),o=i(28353),a=i(49483),l=(i(67337),i(68906)),c=i(62820),h=i(71053),d=i(14291),u=i(85733),p=i(26811),_=i(67802),m=i(33981),g=i(89128),f=i(88129),v=i(57626);const S=a.CheckMobile.any(),y=S&&!0,b=new p.PercentageFormatter,w=new _.VolumeFormatter(2),C=`${v.notAvailable} (${v.notAvailable}%)`;function P(e,t){const i=(0,n.parseRgb)(t),s=(0,n.parseRgb)(e);return(0,n.distanceRgb)(i,s)<70?(0,n.rgbToHexString)((0,n.invertRgb)(i)):t}class T{constructor(e,t){this._series=e,this._model=t,this._emptyValues=[{title:(0,o.t)("Open"),visible:!1,value:"",index:0,id:""},{title:(0,o.t)("High"),visible:!1,value:"",index:1,id:""},{title:(0,o.t)("Low"),visible:!1,value:"",index:2, +id:""},{title:(0,o.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:(0,o.t)("Change"),visible:!1,value:"",index:6,id:""},{title:(0,o.t)("Vol"),visible:!1,value:"",index:7,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._showLastPriceAndChangeOnly(),i=this._emptyValues.map(e=>({...e,visible:!t}));i[0].value=v.notAvailable,i[1].value=v.notAvailable,i[2].value=v.notAvailable,i[3].value=v.notAvailable,i[6].value=C,i[7].value=v.notAvailable,i[5].visible=!1;const n=i[4];if(n.value=v.notAvailable,n.visible=!1,this._model.timeScale().isEmpty()||0===this._series.bars().size()||this._series.priceScale().isEmpty())return i;(0,r.isNumber)(e)||(e=(0,s.ensureNotNull)(this._series.data().last()).index);const o=this._series.nearestIndex(e,h.PlotRowSearchMode.NearestLeft);if(void 0===o)return i;const a=this._series.data().valueAt(o),d=this._model.backgroundTopColor().value();if(null===a)return i;const u=a[1],p=a[2],_=a[3],g=a[4],{values:S}=this._changesData(g,o,t),T=(0,f.getPriceValueFormatterForSource)(this._series);if((0,f.shouldBeFormattedAsPercent)(this._series)||(0,f.shouldBeFormattedAsIndexedTo100)(this._series))i[6].value="";else if(void 0!==S){const e=this._series.formatter();i[6].value=(0,c.forceLTRStr)(`${e.format(S.change,!0)} (${b.format(S.percentChange,!0)})`)}if(t)i[5].value=null==g?v.notAvailable:T(g),i[5].visible=!0,i[6].visible=!0;else{i[0].value=null==u?v.notAvailable:T(u),i[1].value=null==p?v.notAvailable:T(p),i[2].value=null==_?v.notAvailable:T(_),i[3].value=null==g?v.notAvailable:T(g),i[4].value=T(this._series.barFunction()(a));const e=a[5];(0,r.isNumber)(e)?i[7].value=w.format(e):i[7].visible=!1}let x=null;if(t&&!y)x=void 0===S||S.change>=0?m.SeriesBarColorer.upColor(this._series.properties()):m.SeriesBarColorer.downColor(this._series.properties());else{const e=this._series.barColorer().barStyle(o,!1);x=P(d,null!=e.barBorderColor?e.barBorderColor:e.barColor)}x=(0,l.resetTransparency)(P(d,x));for(const e of i)e.color=x;return i}_showLastPriceAndChangeOnly(){return S&&(null===this._model.crossHairSource().pane||(0,d.isLineToolName)(u.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i){var s;if(i&&!y){const e=this._series.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent}}}else{const i=this._series.data().search(t-1,h.PlotRowSearchMode.NearestLeft),r=null!==(s=null==i?void 0:i.value[4])&&void 0!==s?s:null;if(null!==r&&null!=e)return{values:{change:e-r,percentChange:(0,g.barPercentChange)(r,e)}}}return{}}}},47484:(e,t,i)=>{"use strict";i.d(t,{sessionsPreferencesDefault:()=>r});var s=i(45112);const r={graphics:{backgrounds:{outOfSession:{color:s.colorsPalette["color-tv-blue-500"],transparency:92,visible:!1},preMarket:{color:"#FF9800",transparency:92,visible:!1},postMarket:{color:s.colorsPalette["color-tv-blue-500"],transparency:92,visible:!1}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}}},50338:(e,t,i)=>{"use strict";i.d(t,{ +StatusProviderBase:()=>s});class s{constructor(e){this._colorProperty=e}size(){return"13px"}bold(){return!1}color(){return this._colorProperty.value()}}},45058:(e,t,i)=>{"use strict";i.d(t,{StatusView:()=>s});class s{constructor(e){this._text="",this._color="",this._size="13px",this._bold=!1,this._statusProvider=e}text(){return this._text}getSplitTitle(){return[this._text]}color(){return this._statusProvider.color()}bold(){return this._bold}size(){return this._size}}},245:(e,t,i)=>{"use strict";var s;i.d(t,{StoriesTimeLineItemType:()=>s}),function(e){e[e.Image=0]="Image",e[e.Emoji=1]="Emoji"}(s||(s={}))},70581:(e,t,i)=>{"use strict";i.d(t,{seriesPrice:()=>n,positionVisualDirection:()=>a,positionToCoordinate:()=>l,noDataBasePosition:()=>c,seriesBasePosition:()=>h,getNoDataPosition:()=>d,getSeriesPosition:()=>u});var s=i(88537),r=i(71053);function n(e,t,i){const s=e.barFunction();switch(e.style()){case 3:case 10:case 2:return s(t.value);default:return t.value[-1===i?3:2]}}function o(e){return e>=0?1:-1}function a(e,t){return-1===o(e)!==t?-1:1}function l(e,t,i,s){const r=Math.min(t,Math.max(0,1===s?i:t-i));return i-s*Math.abs(r*e/100)}function c(e,t,i){const s=e.index();return null===s?null:{index:s,price:t.coordinateToPrice(t.height()/2,i)}}function h(e,t){const i=e.data().bars(),s=i.first(),a=i.last();if(null===s||null===a)return null;let l;const c=t.index();if(null===c){if(void 0===t.time)return null;const e=t.time(),n=s.value[0],o=a.value[0];if(eo)return null;l=i.searchByTime(e,r.PlotRowSearchMode.NearestRight,4)}else l=i.search(c);return null===l?null:{index:l.index,price:n(e,l,o(t.position()))}}function d(e,t,i){const s=c(e,t,i);if(null===s)return null;const r=a(e.position(),t.isInverted());return{index:s.index,price:s.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:r,startsOnSeriesData:!1}}function u(e,t,i=!0){const r=h(e,t),n=e.priceScale(),o=(0,s.ensureNotNull)(e.firstValue());if(null===r)return d(t,n,o);let l=0;const c=e.properties().childs(),u=e.model().timeScale(),p=n.priceToCoordinate(r.price,o);if(i)switch(e.style()){case 3:l=c.areaStyle.childs().linewidth.value()/2;break;case 2:l=c.lineStyle.childs().linewidth.value()/2;break;case 10:const e=Math.abs(100-c.baselineStyle.childs().baseLevelPercentage.value());l=n.height()*e/100>p?c.baselineStyle.childs().topLineWidth.value()/2:c.baselineStyle.childs().bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:l=3;break;case 0:l=c.barStyle.childs().thinBars.value()?3:Math.max(3,.25*u.barSpacing());break;case 11:l=c.rangeStyle.childs().thinBars.value()?3:Math.max(3,.25*u.barSpacing());break;case 4:case 7:l=3;break;case 5:l=Math.max(4,.25*u.barSpacing());break;case 6:l=Math.max(5,.25*u.barSpacing())}const _=a(t.position(),n.isInverted()),m=p-_*l;return{index:r.index,price:r.price,poleStartY:m,visualDirection:_,positionPointDirection:_,startsOnSeriesData:!0}}},26582:(e,t,i)=>{"use strict";i.d(t,{materializeBackground:()=>o,dematerializeBackground:()=>a});var s=i(88537),r=i(2271),n=i(51344);function o(e,t){ +if(e.start>=t.length||e.stop>=t.length)return null;const i=t[e.start],n=t[e.stop];return n===r.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i===r.INVALID_TIME_POINT_INDEX||i<=n,"start should not exceed stop"),{start:i===r.INVALID_TIME_POINT_INDEX?null:i,stop:n})}function a(e,t,i){return{id:t,start:(0,n.ensureTimePointIndexIndex)(i.indexOf(null!==e.start?e.start:r.INVALID_TIME_POINT_INDEX)),stop:(0,n.ensureTimePointIndexIndex)(i.indexOf(e.stop))}}},54376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LiveStudyGraphics:()=>o.LiveStudyGraphics,StaticStudyGraphics:()=>n.StaticStudyGraphics,createGraphicsPaneViews:()=>u,createGraphicsPriceAxisViews:()=>_,emptyStudyGraphics:()=>n.emptyStudyGraphics,isStudyGraphicsEmpty:()=>r.isStudyGraphicsEmpty,loadStudyGraphics:()=>n.loadStudyGraphics,saveStudyGraphics:()=>n.saveStudyGraphics});var s=i(98125),r=i(82065),n=i(81064),o=i(75871),a=i(97938);class l extends a.PriceAxisView{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.priceScale(),r=this._source.properties().visible.value();if(!s||s.isEmpty()||!r)return;const n=this._source.properties().graphics[this._data.lineType][this._data.styleId];if(!(n.visible&&n.visible.value()&&n.showPrice&&n.showPrice.value()&&this._isLabelVisibleAccordinglyToProperties()))return;const o=this._source.firstValue();if(null===o)return;const a=this._data.line.level,l=n.color.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=s.priceToCoordinate(a,o),e.text=s.formatPrice(a,o,!0),e.visible=!0}_isLabelVisibleAccordinglyToProperties(){return!!this._source.model().properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().showLabelsOnPriceScale.value()}}const c=(0,s.getLogger)("Chart.StudyGraphics"),h=new Set(["dwgtablecells"]);async function d(e,t,s,r){switch(e){case"hhists":return new((await i.e(507).then(i.bind(i,93742))).HHistPaneView)(t,s,r);case"horizlines":return new((await i.e(507).then(i.bind(i,22107))).HorizLinePaneView)(t,s,r);case"vertlines":return new((await i.e(507).then(i.bind(i,59778))).VertLinePaneView)(t,s,r);case"polygons":return new((await i.e(507).then(i.bind(i,54077))).PolygonPaneView)(t,s,r);case"backgrounds":return new((await i.e(507).then(i.bind(i,72984))).BackgroundPaneView)(t,s,r)}return null}async function u(e,t,i){const s=[],r=Object.keys(e.graphicsInfo());r.sort((e,t)=>p(e)-p(t));for(const n of r){const r=await d(n,e,t,i);null!==r?s.push(r):h.has(n)||c.logWarn(n+" is not supported by this build of graphics subsystem, skipping")}return s}function p(e){switch(e){case"polygons":return-100;case"trendchannels":return-90;default:return 0}}function _(e){const t=Object.keys(e.graphicsInfo()),i=[];for(const s of t)switch(s){case"hlines":e.graphics().hlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r,lineType:s}))})});break;case"horizlines":e.graphics().horizlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r, +lineType:s}))})})}return i}},95018:(e,t,i)=>{"use strict";i.d(t,{HHistDirection:()=>s,HHistLocation:()=>r,HHistVolumeMode:()=>n,materializeHHist:()=>c,dematerializeHHist:()=>h});var s,r,n,o=i(88537),a=i(2271),l=i(51344);function c(e,t){if(e.firstBarTime>=t.length||e.lastBarTime>=t.length)return null;const i=t[e.firstBarTime],s=t[e.lastBarTime];return i===a.INVALID_TIME_POINT_INDEX||s===a.INVALID_TIME_POINT_INDEX?null:((0,o.assert)(i<=s,"firstBarTime should not exceed lastBarTime"),(0,o.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i,lastBarTime:s,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}function h(e,t,i){const s=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.firstBarTime)),r=(0,l.ensureTimePointIndexIndex)(i.indexOf(e.lastBarTime));return{id:t,...e,firstBarTime:s,lastBarTime:r}}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={})),function(e){e.Relative="relative",e.Absolute="absolute"}(r||(r={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(n||(n={}))},15513:(e,t,i)=>{"use strict";i.d(t,{materializeHorizLine:()=>o,dematerializeHorizLine:()=>a});var s=i(88537),r=i(2271),n=i(51344);function o(e,t){if(e.startIndex>=t.length||e.endIndex>=t.length)return null;const i=t[e.startIndex],n=t[e.endIndex];return i===r.INVALID_TIME_POINT_INDEX||n===r.INVALID_TIME_POINT_INDEX?null:((0,s.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function a(e,t,i){const s=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.startIndex)),r=(0,n.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return{id:t,...e,startIndex:s,endIndex:r}}},75871:(e,t,i)=>{"use strict";i.d(t,{LiveStudyGraphics:()=>d});var s=i(88537),r=i(95018),n=i(15513),o=i(57987),a=i(39834),l=i(26582),c=i(82065),h=i(81064);class d{constructor(){this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwgboxes=new Map,this._dwglines=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._dwglinefills=new Map,this._hhistsByTimePointIndex=new Map}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}clear(){this._indexes=[],this._clearPrimitives()}extract(){const e=e=>e.extract(),t={ +indexes:this._indexes,horizlines:p(this._horizlines,e),vertlines:p(this._vertlines,e),lines:p(this._lines,e),hlines:p(this._hlines,e),textmarks:p(this._textmarks,e),shapemarks:p(this._shapemarks,e),backgrounds:p(this._backgrounds,e),polygons:p(this._polygons,e),trendchannels:p(this._trendchannels,e),hhists:p(this._hhists,e),dwglabels:p(this._dwglabels,e),dwglines:p(this._dwglines,e),dwgboxes:p(this._dwgboxes,e),dwgtables:p(this._dwgtables,e),dwgtablecells:p(this._dwgtablecells,e),dwglinefills:p(this._dwglinefills,e)};return this._hhistsByTimePointIndex=new Map,new h.StaticStudyGraphics("data",t)}replaceIndexesTo(e){this._indexes=e;const t=e=>e.replaceIndexesTo(this._indexes);this._horizlines.forEach(t),this._vertlines.forEach(t),this._lines.forEach(t),this._hlines.forEach(t),this._textmarks.forEach(t),this._shapemarks.forEach(t),this._backgrounds.forEach(t),this._polygons.forEach(t),this._trendchannels.forEach(t),this._hhists.forEach(t),this._dwglabels.forEach(t),this._dwgboxes.forEach(t),this._dwglines.forEach(t),this._dwgtables.forEach(t),this._dwgtablecells.forEach(t),this._dwglinefills.forEach(t),this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}processCommands(e,t){void 0!==e.erase&&this._processEraseCommands(e.erase),void 0!==e.create&&this._processCreateCommands(e.create,t)}_processCreateCommands(e,t){for(const i in e){if(!e.hasOwnProperty(i))continue;const c=i;switch((0,s.assert)(c in t,`There is a '${c}' in study response, but it doesn't present in graphics info!`),c){case"hhists":_(this._hhists,e[c],t[c],this._indexes,r.materializeHHist);break;case"horizlines":_(this._horizlines,e[c],t[c],this._indexes,n.materializeHorizLine);break;case"vertlines":_(this._vertlines,e[c],t[c],this._indexes,o.materializeVertLine);break;case"polygons":_(this._polygons,e[c],t[c],this._indexes,a.materializePolygon);break;case"backgrounds":_(this._backgrounds,e[c],t[c],this._indexes,l.materializeBackground)}}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}_processEraseCommands(e){for(const t of e)if("all"===t.action)this._clearPrimitives();else{const e=e=>e.deleteById(t.id);switch(t.type){case"horizlines":this._horizlines.forEach(e);break;case"vertlines":this._vertlines.forEach(e);break;case"lines":this._lines.forEach(e);break;case"hlines":this._hlines.forEach(e);break;case"textmarks":this._textmarks.forEach(e);break;case"shapemarks":this._shapemarks.forEach(e);break;case"backgrounds":this._backgrounds.forEach(e);break;case"polygons":this._polygons.forEach(e);break;case"trendchannels":this._trendchannels.forEach(e);break;case"hhists":this._hhists.forEach(e);break;case"dwglabels":this._dwglabels.forEach(e);break;case"dwglines":this._dwglines.forEach(e);break;case"dwgboxes":this._dwgboxes.forEach(e);break;case"dwgtables":this._dwgtables.forEach(e);break;case"dwgtablecells":this._dwgtablecells.forEach(e);break;case"dwglinefills":this._dwglinefills.forEach(e)}}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}_clearPrimitives(){ +this._horizlines.clear(),this._vertlines.clear(),this._lines.clear(),this._hlines.clear(),this._textmarks.clear(),this._shapemarks.clear(),this._backgrounds.clear(),this._polygons.clear(),this._trendchannels.clear(),this._hhists.clear(),this._dwglabels.clear(),this._dwgboxes.clear(),this._dwglines.clear(),this._dwgtables.clear(),this._dwgtablecells.clear(),this._dwglinefills.clear(),this._hhistsByTimePointIndex=new Map}}class u{constructor(e,t){this._primitivesDataById=new Map,this._primitiveById=new Map,this._materializePrimitive=e,this._indexes=t}forEach(e,t){this._primitiveById.forEach(i=>{e.call(t,i,i,this)})}has(e){let t=!1;return this._primitiveById.forEach(i=>{t=t||i===e}),t}get size(){return this._primitiveById.size}[Symbol.iterator](){throw new Error("Not implemented")}entries(){throw new Error("Not implemented")}keys(){throw new Error("Not implemented")}values(){throw new Error("Not implemented")}hasId(e){return this._primitiveById.has(e)}addData(e){this._primitivesDataById.set(e.id,e),this._tryMaterialize(e)}deleteById(e){this._primitiveById.delete(e),this._primitivesDataById.delete(e)}clear(){this._primitivesDataById.clear(),this._primitiveById.clear()}replaceIndexesTo(e){this._indexes=e,this._primitiveById.clear(),this._primitivesDataById.forEach(this._tryMaterialize,this)}extract(){const e=new Set(this._primitivesDataById.values());return this._primitivesDataById=new Map,this._primitiveById.clear(),e}_tryMaterialize(e){const t=this._materializePrimitive(e,this._indexes);null!==t&&((0,s.assert)(!this._primitiveById.has(e.id),"primitive with specified id should not exist"),this._primitiveById.set(e.id,t))}}function p(e,t){const i=new Map;return e.forEach((e,s)=>i.set(s,t(e))),i}function _(e,t,i,r,n){if(void 0!==t)for(const o of t){const t=o.styleId;void 0!==i&&(0,s.assert)(t in i,"Every style used by graphics primitive should be declared in study metainfo");let a=e.get(t);void 0===a&&(a=new u(n,r),e.set(t,a)),o.data.forEach(a.addData.bind(a))}}},39834:(e,t,i)=>{"use strict";i.d(t,{materializePolygon:()=>n,dematerializePolygon:()=>o});var s=i(2271),r=i(51344);function n(e,t){for(const i of e.points){if(i.index>=t.length)return null;if(t[i.index]===s.INVALID_TIME_POINT_INDEX)return null}return{points:e.points.map(e=>({index:t[e.index],offset:e.offset,level:e.level}))}}function o(e,t,i){return{id:t,points:e.points.map(e=>({...e,index:(0,r.ensureTimePointIndexIndex)(i.indexOf(e.index))}))}}},81064:(e,t,i)=>{"use strict";i.d(t,{StaticStudyGraphics:()=>h,emptyStudyGraphics:()=>_,loadStudyGraphics:()=>m,saveStudyGraphics:()=>g});var s=i(2271),r=i(15513),n=i(57987),o=i(95018),a=i(39834),l=i(26582),c=i(82065);class h{constructor(e,t){if(this._indexes=[],this._horizlines=new Map,this._vertlines=new Map,this._lines=new Map,this._hlines=new Map,this._textmarks=new Map,this._shapemarks=new Map,this._backgrounds=new Map,this._polygons=new Map,this._trendchannels=new Map,this._hhists=new Map,this._dwglabels=new Map,this._dwglines=new Map,this._dwgboxes=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map, +this._dwglinefills=new Map,"data"===e){const e=t;this._indexes=e.indexes,this._vertlines=d(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=d(e.horizlines,this._indexes,r.materializeHorizLine),this._polygons=d(e.polygons,this._indexes,a.materializePolygon),this._hhists=d(e.hhists,this._indexes,o.materializeHHist),this._backgrounds=d(e.backgrounds,this._indexes,l.materializeBackground)}else if("state"===e){const e=t;this._indexes=e.indexes||[],this._vertlines=u(e.vertlines,this._indexes,n.materializeVertLine),this._horizlines=u(e.horizlines,this._indexes,r.materializeHorizLine),this._polygons=u(e.polygons,this._indexes,a.materializePolygon),this._hhists=u(e.hhists,this._indexes,o.materializeHHist),this._backgrounds=u(e.backgrounds,this._indexes,l.materializeBackground)}this._hhistsByTimePointIndex=(0,c.splitHHistsByTimePointIndex)(this._hhists)}horizlines(){return this._horizlines}vertlines(){return this._vertlines}lines(){return this._lines}hlines(){return this._hlines}textmarks(){return this._textmarks}shapemarks(){return this._shapemarks}backgrounds(){return this._backgrounds}polygons(){return this._polygons}trendchannels(){return this._trendchannels}hhists(){return this._hhists}dwglabels(){return this._dwglabels}dwglines(){return this._dwglines}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}dwglinefills(){return this._dwglinefills}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}}function d(e,t,i){const s=new Map;return e.forEach((e,r)=>{const n=s.get(r)||new Set;e.forEach(e=>{const s=i(e,t);null!==s&&n.add(s)}),s.set(r,n)}),s}function u(e,t,i){const s=new Map;if(void 0===e)return s;for(const r of e){const e=r.styleId,n=s.get(e)||new Set;r.data.forEach(e=>{const s=i(e,t);null!==s&&n.add(s)}),s.set(e,n)}return s}function p(e,t,i,s){const r=[];return e.forEach((e,n)=>{e.forEach(e=>{!function(e,t,i){let s=null;for(const i of e)i.styleId===t&&(s=i);null===s&&(s={styleId:t,data:[]},e.push(s)),s.data.push(i)}(r,n,s(e,t(e),i))})}),r.length>0?r:void 0}function _(){return new h}function m(e){return new h("state",e)}function g(e){const t=function(e){const t=new Set;e.horizlines().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.vertlines().forEach((e,i)=>{e.forEach(e=>{t.add(e.index)})}),e.lines().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.textmarks().forEach((e,i)=>{e.forEach(e=>{t.add(e.time)})}),e.shapemarks().forEach((e,i)=>{e.forEach(e=>{t.add(e.time)})}),e.backgrounds().forEach((e,i)=>{e.forEach(e=>{t.add(null!==e.start?e.start:s.INVALID_TIME_POINT_INDEX),t.add(e.stop)})}),e.polygons().forEach((e,i)=>{e.forEach(e=>{e.points.forEach(e=>{t.add(e.index)})})}),e.trendchannels().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),t.add(e.endIndex)})}),e.hhists().forEach((e,i)=>{e.forEach(e=>{t.add(e.firstBarTime),t.add(e.lastBarTime)})}),e.dwglabels().forEach((e,i)=>{e.forEach(e=>{t.add(e.x)})}),e.dwglines().forEach((e,i)=>{e.forEach(e=>{var i,r +;t.add(null!==(i=e.x1)&&void 0!==i?i:s.INVALID_TIME_POINT_INDEX),t.add(null!==(r=e.x2)&&void 0!==r?r:s.INVALID_TIME_POINT_INDEX)})}),e.dwgboxes().forEach((e,i)=>{e.forEach(e=>{var i,r;t.add(null!==(i=e.left)&&void 0!==i?i:s.INVALID_TIME_POINT_INDEX),t.add(null!==(r=e.right)&&void 0!==r?r:s.INVALID_TIME_POINT_INDEX)})});const i=Array.from(t);return i.sort((e,t)=>e-t),i}(e),i={indexes:t};let c=0;const h=()=>++c;return i.vertlines=p(e.vertlines(),h,t,n.dematerializeVertLine),i.horizlines=p(e.horizlines(),h,t,r.dematerializeHorizLine),i.polygons=p(e.polygons(),h,t,a.dematerializePolygon),i.hhists=p(e.hhists(),h,t,o.dematerializeHHist),i.backgrounds=p(e.backgrounds(),h,t,l.dematerializeBackground),i}},95936:(e,t,i)=>{"use strict";var s,r,n,o;i.d(t,{MarkLocation:()=>s,HAlign:()=>r,LineStyle:()=>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"}(s||(s={})),function(e){e.Left="left",e.Center="center",e.Right="right"}(r||(r={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(n||(n={})),function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed"}(o||(o={}))},82065:(e,t,i)=>{"use strict";i.d(t,{isStudyGraphicsEmpty:()=>r,splitHHistsByTimePointIndex:()=>n});const s=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwglabels","dwglines","dwgboxes","dwgtables","dwgtablecells","dwglinefills"];function r(e){return!s.some(t=>e[t]().size>0)}function n(e){const t=new Map;return e.forEach((e,i)=>{e.forEach(e=>{const s={...e,styleId:i},r=e.firstBarTime;let n=t.get(r);void 0===n&&(n=new Set,t.set(r,n)),n.add(s)})}),t}},57987:(e,t,i)=>{"use strict";i.d(t,{materializeVertLine:()=>n,dematerializeVertLine:()=>o});var s=i(2271),r=i(51344);function n(e,t){if(e.index>=t.length)return null;const i=t[e.index];return i===s.INVALID_TIME_POINT_INDEX?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function o(e,t,i){const s=(0,r.ensureTimePointIndexIndex)(i.indexOf(e.index));return{id:t,...e,index:s}}},99682:(e,t,i)=>{"use strict";i.d(t,{HHistBasedValuesProvider:()=>_});var s=i(93751),r=i(88537),n=i(49483),o=i(71053),a=i(85733),l=i(67802),c=i(95018),h=i(44601),d=i(57626);function u(e,t="",i=""){return{id:t,index:e,title:i,value:"",visible:!1}}const p=n.CheckMobile.any();class _{constructor(e,t){this._emptyValues=[],this._study=e,this._model=t,void 0!==this._study.metaInfo().graphics.hhists&&this._emptyValues.push(u(0),u(1),u(2))}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));t.forEach(e=>{e.visible=this._study.isVisible(),e.value=d.notAvailable});const i=this._study.properties().child("inputs").child("volume").value();switch(i){case c.HHistVolumeMode.UpDown:t[0].title="Up",t[1].title="Down",t[2].title="Total";break;case c.HHistVolumeMode.Total:t[0].title="Total",t[1].visible=!1,t[2].visible=!1;break +;case c.HHistVolumeMode.Delta:t[0].title="Delta",t[1].title="Max(Up, Down)",t[2].title="Total"}const n=this._study.priceScale(),a=this._model.timeScale();if(null===n||n.isEmpty()||a.isEmpty()||this._hideValues())return t;if(null===e||!isFinite(e)){const i=this._study.data().last();if(null===i)return t;e=i.index}const h=this._model.crossHairSource(),u=h.price;if(!isFinite(h.y)&&null===(e=function(e,t){var i;const s=null===(i=e.visibleBarsStrictRange())||void 0===i?void 0:i.lastBar();if(!s)return null;const r=t.data().search(s,o.PlotRowSearchMode.NearestLeft);return r?r.index:null}(this._model.timeScale(),this._model.mainSeries())))return t;const p=function(e,t,i,s){if(0===e.size)return null;if(!i){const e=(0,r.ensureNotNull)(s.data().valueAt(t));i=s.barFunction()(e)}const n=function(e,t){let i=null;return e.forEach((e,s)=>{s<=t&&(null===i||s>i)&&(i=s)}),i}(e,t);if(null===n)return null;const o=e.get(n);if(!o||0===o.size)return null;return function(e,t){let i=null;return e.forEach(e=>{e.priceLow<=t&&t{e.value="0"}),t;const _=this._study.metaInfo().graphics.hhists;if(void 0===_)return t;if(void 0===_[p.styleId])return t;const m=this._study.properties().child("graphics").child("hhists").child(p.styleId),g=new l.VolumeFormatter,f=e=>(0,s.isNumber)(e)?g.format(e):"";if(i!==c.HHistVolumeMode.Delta){if(p.rate.forEach((e,i)=>{t[i].value=f(e),t[i].color=m.colors[i].value()}),i===c.HHistVolumeMode.UpDown){const e=p.rate[0]+p.rate[1];t[2].value=f(e),t[2].color=m.valuesColor.value()}}else{const e=p.rate[0]>p.rate[1]?0:1,i=m.colors[e].value(),s=p.rate[0]+p.rate[1];[2*p.rate[e]-s,p.rate[e],s].forEach((e,s)=>{t[s].value=f(e),t[s].color=i})}return t}_hideValues(){return p&&(null===this._model.crossHairSource().pane||(0,h.isLineToolName)(a.tool.value())||null!==this._model.lineBeingEdited())}}},72857:(e,t,i)=>{"use strict";i.d(t,{makeNextSymbolId:()=>r,makeNextStudyId:()=>o});let s=0;function r(){return s++,"ss_"+s}let n=0;function o(){return n++,"st"+n}},5402:(e,t,i)=>{"use strict";i.d(t,{migrateMetaInfoAndPropState:()=>_});var s=i(88537),r=i(67072),n=i.n(r),o=i(80643);const a=["Moving Average@tv-basicstudies","Moving Average Exponential@tv-basicstudies"];class l{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,a.includes(t.id)}migratePropState(e){var t,i,s;a.includes(e.id)&&(e.inputs.length=null!==(t=e.inputs.length)&&void 0!==t?t:e.inputs.in_0,e.inputs.source=null!==(i=e.inputs.source)&&void 0!==i?i:e.inputs.in_1,e.inputs.offset=null!==(s=e.inputs.offset)&&void 0!==s?s:e.inputs.in_2,delete e.inputs.in_0,delete e.inputs.in_1,delete e.inputs.in_2,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const c=["Volume@tv-basicstudies"];class h{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e +;e._metainfoVersion=53,c.includes(t.id)}migratePropState(e){var t;c.includes(e.id)&&(e.inputs.maLength=null!==(t=e.inputs.length)&&void 0!==t?t:e.inputs.maLength,delete e.inputs.length,delete e.inputs.offset,delete e.inputs.source,e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const d=["Relative Strength Index@tv-basicstudies","Commodity Channel Index@tv-basicstudies","On Balance Volume@tv-basicstudies"];class u{targetMetaInfoVersion(){return 53}migrateMetaInfo(e){const t=e;e._metainfoVersion=53,d.includes(t.id)}migratePropState(e){d.includes(e.id)&&(e.plots[1]={id:"smoothedMA",type:"line"},e.styles.smoothedMA={display:0,linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#0496ff",histogramBase:0,joinPoints:!1,title:"Smoothed MA"})}}const p=[new class{targetMetaInfoVersion(){return 47}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=47,!t.defaults||void 0===t.defaults.precision)return void(i.format={type:"inherit"});const s=t.defaults&&t.defaults.precision,r=(0,o.isNumber)(s)?s:parseInt(s);0===r?i.format={type:"volume"}:isFinite(r)?i.format={type:"price",precision:r}:i.format={type:"inherit"},delete t.defaults.precision}migratePropState(e){}},new class{targetMetaInfoVersion(){return 50}migrateMetaInfo(e){const t=e,i=e;if(i._metainfoVersion=50,void 0===t.defaults||void 0===t.defaults.ohlcPlots||void 0===t.ohlcPlots)return;const r=t.ohlcPlots,n=t.defaults.ohlcPlots,o=(0,s.ensureDefined)((0,s.ensureDefined)(i.defaults).ohlcPlots);for(const e of Object.keys(n)){const t=n[e];if("ohlc_candles"===t.plottype){let i=!1;const s=r[e];void 0!==s&&(i=!!s.drawBorder,delete s.drawBorder),o[e]={borderColor:"#000000",drawBorder:i,...t}}}}migratePropState(e){}}];function _(e,t){const i=n().versionOf(e),r=e;void 0===r._serverMetaInfoVersion&&(r._serverMetaInfoVersion=i),p.forEach(r=>{i<0||i>=r.targetMetaInfoVersion()||(r.migrateMetaInfo(e),void 0!==t&&r.migratePropState(t),(0,s.assert)(e._metainfoVersion===r.targetMetaInfoVersion()))})}p.push(new l),p.push(new h),p.push(new u),p.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},13672:(e,t,i)=>{"use strict";i.d(t,{NonSeriesStudy:()=>n});var s=i(88537),r=i(66101);class n extends r.Study{clearData(){this._customData=null,this._indexes=null}restoreData(e,t,i){super.restoreData(e),this._customData=t,this._indexes=i}state(e){const t=super.state(e);return e&&(t.nonSeriesData=this._customData,t.indexes=this._indexes),t}customData(){return this._customData}_setPaneViews(e){this._paneViews=e,this.model().lightUpdate()}_onDataUpdated(e,t,i){null!==t&&(t.indexes_replace?((0,s.assert)("nochange"!==i),this._indexes=i):(this._customData=t.data,"nochange"!==i&&(this._indexes=i))),super._onDataUpdated(e,t,i)}}},52457:(e,t,i)=>{"use strict";i.d(t,{OverlayLegendValuesProvider:()=>C}) +;var s=i(37667),r=i(93751),n=i(28353),o=i(49483),a=i(68906),l=i(62820),c=i(26811),h=i(83393),d=i(71053),u=i(14291),p=i(85733),_=i(89128),m=i(33981),g=i(88129),f=i(57626);const v=o.CheckMobile.any(),S=v&&!0,y=new c.PercentageFormatter,b=f.notAvailable,w=`${b} (${b}%)`;class C extends class{constructor(e,t){this._study=e,this._model=t,this._emptyValues=[{title:(0,n.t)("Open"),visible:!1,value:"",index:0,id:""},{title:(0,n.t)("High"),visible:!1,value:"",index:1,id:""},{title:(0,n.t)("Low"),visible:!1,value:"",index:2,id:""},{title:(0,n.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:(0,n.t)("Change"),visible:!1,value:"",index:6,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));if(this._model.timeScale().isEmpty())return t;if(0===this._study.data().size())return t;const i=this._showLastPriceAndChangeOnly();if((0,r.isNumber)(e)||(i?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),(0,r.isNumber)(e)||(e=this._study.data().lastIndex()))),null===e||!(0,r.isNumber)(e))return t;const s=this._study.data().search(e,d.PlotRowSearchMode.NearestLeft,1),n=this._model.backgroundTopColor().value();if(null===s)return t;const o=s.index,c=s.value,u=c[1],p=c[2],_=c[3],f=c[4];t[0].value=b,t[1].value=b,t[2].value=b,t[3].value=b,t[6].value=w;for(const e of t)e.visible=!i;const v=t[4];v.visible=!1;const{values:C}=this._changesData(f,u,o,i),P=(0,g.getPriceValueFormatterForSource)(this._study);if((0,g.shouldBeFormattedAsPercent)(this._study)||(0,g.shouldBeFormattedAsIndexedTo100)(this._study))t[6].value="";else if(void 0!==C){const e=this._study.formatter();t[6].value=(0,l.forceLTRStr)(`${e.format(C.change,!0)} (${y.format(C.percentChange,!0)})`)}i?(t[5].value=null==f?b:P(f),t[5].visible=!0,t[6].visible=!0):(t[0].value=null==u?b:P(u),t[1].value=null==p?b:P(p),t[2].value=null==_?b:P(_),t[3].value=null==f?b:P(f),v.value=P(this._study.barFunction()(c)),t[5].visible=!1);let T=null;if(i&&!S)T=void 0===C||C.change>=0?m.SeriesBarColorer.upColor(this._study.properties()):m.SeriesBarColorer.downColor(this._study.properties());else{const e=this._study.barColorer().barStyle(o,!1),t=null!=e.barBorderColor?e.barBorderColor:e.barColor;T=(0,h.calculateColor)(n,t)}T=(0,a.resetTransparency)((0,h.calculateColor)(n,T));for(const e of t)e.color=T;return t}_showLastPriceAndChangeOnly(){return v&&(null===this._model.crossHairSource().pane||(0,u.isLineToolName)(p.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i,s){var r;if(s&&!S){const e=this._study.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent},priceDirection:{basedOnCurrentBar:e.change>=0?0:1,basedOnPrevClose:e.change>=0?0:1}}}else{const s=this._study.data().search(i-1,d.PlotRowSearchMode.NearestLeft,1),n=null!==(r=null==s?void 0:s.value[4])&&void 0!==r?r:null;if(null!==n&&null!=e&&null!=t)return{values:{change:e-n,percentChange:(0,_.barPercentChange)(n,e)},priceDirection:{ +basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=n?0:1}}}return null==e||null==t?{}:{priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=t?0:1}}}}{constructor(e,t){super(e,t);const i=t.properties().childs().paneProperties.childs().legendProperties.childs();this._showBarChange=i.showBarChange,this._showSeriesOHLC=i.showSeriesOHLC,this._seriesStyle=e.properties().childs().style}getValues(e){const t=super.getValues(e);if(!this._showLastPriceAndChangeOnly()){const e=(0,s.isPriceSourceStyle)(this._seriesStyle.value()),i=this._showSeriesOHLC.value(),r=i&&!e,n=i&&e;t[0].visible=r,t[1].visible=r,t[2].visible=r,t[3].visible=r,t[6].visible=this._showBarChange.value(),t[4].visible=n}return t}}},79284:(e,t,i)=>{"use strict";i.d(t,{OverlayStatusProvider:()=>r});var s=i(40529);class r extends s.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(!0,void 0,!1,!1)}}},28283:(e,t,i)=>{"use strict";i.d(t,{PivotPointsStandardLastPricesView:()=>o});var s=i(71053);const r=["p","s1","r1","s2","r2","s3","r3","s4","r4","s5","r5"],n={P:"P",S1:"S1/R1",S2:"S2/R2",S3:"S3/R3",S4:"S4/R4",S5:"S5/R5",R1:"S1/R1",R2:"S2/R2",R3:"S3/R3",R4:"S4/R4",R5:"S5/R5"};class o{constructor(e){this._visiblePivots=new Set,this._invidated=!0,this._prices=[],this._source=e}visiblePivots(){return this._visiblePivots}update(){this._invidated=!0}prices(){return this._invidated&&(this._updateImpl(),this._invidated=!1),this._prices}_updateImpl(){this._visiblePivots.clear();const e=this._source.model(),t=this._source.priceScale();if(null===t)return;if(e.timeScale().isEmpty()||t.isEmpty())return;const i=e.timeScale().visibleBarsStrictRange();if(null===i)return;if(!this._source.customData()||!this._source.customData().pivots)return;const o=e.mainSeries().bars().search(i.lastBar(),s.PlotRowSearchMode.NearestLeft);if(null===o)return;const a=o.index,l=this._source.customData().pivots,c=this._source.indexes(),h=this._source.properties(),d=this._source.firstValue();for(let e=0;e=a||o)){this._visiblePivots.add(l[e]),this._prices=[];for(let i=0;i{"use strict";i.d(t,{PaneRendererStandardPivotLabel:()=>r});var s=i(84346);class r{constructor(e,t,i){this._drawRects=[],this._cacheProvider=e,this._point=t,this._label=i}draw(e,t){const i=this._cacheProvider(t);e.save(),e.setTransform(1,0,0,1,0,0);const s=t.pixelRatio;this._drawRects=[];const r=t=>{const r=i.labelRectByIndex(t),n={left:Math.round(this._point.x-r.width+o), +top:Math.round(this._point.y-r.height/2),width:r.width,height:r.height};return e.drawImage(i.canvas(),Math.round(r.left*s),Math.round(r.top*s),r.width*s,r.height*s,Math.round(n.left*s),Math.round(n.top*s),n.width*s,n.height*s),this._drawRects.push(n),r.width},n=this._label.split("/");let o=0;for(let e=0;e0&&(o+=r(t+11)/2),o+=r(t)/2}e.restore()}hitTest(e){for(const t of this._drawRects)if(e.x>=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height)return new s.HitTestResult(s.HitTestResult.REGULAR);return null}}},66632:(e,t,i)=>{"use strict";i.d(t,{StandardPivotPointsImageCache:()=>n});var s=i(93435),r=i(88537);class n{constructor(e,t,i,r){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._paneRenderParams=e,this._recreateCanvasAndContext(new s.Size(0,0)),this.reset({font:t,fontSize:i,backColors:r})}destroy(){delete this._canvas,delete this._cache}canvas(){return this._canvas}reset(e){this._renderParams=e,this._prices=[],this._cache.font=e.fontSize+"px "+e.font,this._labelWidth=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5","/"].reduce((e,t)=>{const i=this._cache.measureText(t).width;return Math.max(i,e)},0)}rowHeight(){return this._priceAxisFontSize+4}labelRectByIndex(e){return{left:0,top:Math.round(this._topByIndex(e)),width:Math.round(this._labelWidth+4),height:Math.round(this._renderParams.fontSize+8)}}setPrices(e){let t=!1;const i=(e,t)=>{const i=void 0===e,s=void 0===t;return(!i&&!s||i===s)&&(0,r.ensureDefined)(e).formatted===(0,r.ensureDefined)(t).formatted};if(e.length!==this._prices.length)t=!0;else for(let s=0;s{this._cache.translate(.5,.5),this._cache.font=this._renderParams.fontSize+"px "+this._renderParams.font,this._cache.textBaseline="middle";for(let e=0;e{"use strict";i.d(t,{StandardPivotPointsPriceAxisView:()=>n});var s=i(97938);const r=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5"];class n extends s.PriceAxisView{constructor(e,t){super(), +this._source=e,this._data=t;const i=t.name;this._completeName="P"===i.toUpperCase()?"P":`S${i[1]}/R${i[1]}`}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.properties();if(!s.visible.value())return;const n=this._completeName,o=s.levelsStyle.visibility;if(!o[n]||!o[n].value())return;const a=this._source.model().timeScale(),l=this._source.priceScale();if(a.isEmpty()||null===a.visibleBarsStrictRange()||null!==l&&l.isEmpty())return;const c=this._source.customData();if(!c||!c.pivots)return;const h=this._source.pricesView().prices()[r.indexOf(this._data.name.toUpperCase())];if(!h)return;i.background=h.color,i.textColor=this.generateTextColor(h.color),i.coordinate=h.coordinate,i.floatCoordinate=h.floatCoordinate;const d=this._source.model().properties().childs().scalesProperties.childs();d.showStudyLastValue.value()&&(e.text=h.formatted,e.visible=!0),d.showStudyPlotLabels.value()&&(t.text=this._source.priceLabelText(this._data.name),t.visible=!0)}}},46319:(e,t,i)=>{"use strict";var s=i(69927).PriceRange,r=i(86441).Point,n=i(190).StudyStatusView,o=i(26179).StudyDataWindowView,a=i(13672).NonSeriesStudy,l=i(37157).StandardPivotPointsPriceAxisView,c=i(28978).PanePriceAxisView,h=i(84346).HitTestResult,d=i(94804).CompositeRenderer,u=i(15712).areEqualPaneRenderParams,p=i(66632).StandardPivotPointsImageCache,_=i(28283).PivotPointsStandardLastPricesView,m=i(19722).PaneRendererStandardPivotLabel,g=i(40254).HorizontalLineRenderer,f=i(22799);class v{constructor(e,t){this._model=e,this._source=t,this._pivots=[],this._textCache={}}setCache(e){this._cache=e}priceAxisViews(e,t){return this._priceAxisViews}mergeLabel(e,t,i){var s=""+t;void 0===e[s]?(e[s]={},e[s].text=i,e[s].ids=[this.complete(i)]):(e[s].text+="/"+i,e[s].ids.push(this.complete(i)))}complete(e){return"P"===e?e:"S"+e[1]+"/R"+e[1]}update(){this._invalidated=!0}_updateImpl(){if(this._source.pricesView().prices(),this._pivots=[],this._source.customData()&&this._source.customData().pivots&&this._source.properties().visible.value()){var e=this._source.customData().pivots,t=this._source._indexes,i=this._model.timeScale(),s=this._source.priceScale();if(s&&!s.isEmpty()&&!i.isEmpty()&&e){var r=i.visibleBarsStrictRange(),n=r.firstBar(),o=r.lastBar();if(this._source.ownerSource())for(var a=this._source.ownerSource().firstValue(),l=0;lo)){var d={},u=this._source.properties().levelsStyle.visibility;u.P.value()&&this.mergeLabel(d,e[l].p,"P"),u["S1/R1"].value()&&(this.mergeLabel(d,e[l].s1,"S1"),this.mergeLabel(d,e[l].r1,"R1")),u["S2/R2"].value()&&(this.mergeLabel(d,e[l].s2,"S2"),this.mergeLabel(d,e[l].r2,"R2")),u["S3/R3"].value()&&(this.mergeLabel(d,e[l].s3,"S3"),this.mergeLabel(d,e[l].r3,"R3")),u["S4/R4"].value()&&(this.mergeLabel(d,e[l].s4,"S4"),this.mergeLabel(d,e[l].r4,"R4")),u["S5/R5"].value()&&(this.mergeLabel(d,e[l].s5,"S5"),this.mergeLabel(d,e[l].r5,"R5"));var p=i.indexToCoordinate(c),_=i.indexToCoordinate(h);for(var m in d){var g=parseFloat(m),f=s.priceToCoordinate(g,a) +;this._pivots.push({x1:p,x2:_,y:f,label:d[m].text,labelIds:d[m].ids,src:e[l]})}}}}}}renderer(){this._invalidated&&(this._updateImpl(),this._invalidated=!1);for(var e=new d,t=this._source.properties().levelsStyle.colors,i=this._source.properties().levelsStyle.widths,s=this._source.visiblePivots(),n=0;nt)){var l=[],c=this._properties.levelsStyle.visibility;c.P.value()&&l.push(i[o].p),c["S1/R1"].value()&&l.push(i[o].s1,i[o].r1),c["S2/R2"].value()&&l.push(i[o].s2,i[o].r2),c["S3/R3"].value()&&l.push(i[o].s3,i[o].r3),c["S4/R4"].value()&&l.push(i[o].s4,i[o].r4),c["S5/R5"].value()&&l.push(i[o].s5,i[o].r5);for(var h=0;h{"use strict";function s(e){e.lineWidth=void 0,e.lineStyle=void 0;for(let t=0;ts,createEmptyStyle:()=>r})},68617:(e,t,i)=>{"use strict";i.d(t,{PaneRendererColumns:()=>r});var s=i(84346);class r{constructor(e){this._data=null,this._precalculatedCache=[],this.setData(e)}setData(e){this._data=e,this._precalculatedCache=[]}draw(e,t){var i,s,r,n;if(null===this._data||0===this._data.items.length)return;const o=t.pixelRatio;this._precalculatedCache.length||this._fillPrecalculatedCache(o);const a=Math.max(1,Math.floor(o)),l=Math.round(this._data.histogramBase*o)-Math.floor(a/2),c=l+a,h=this._data.lineColor,d=null!==(s=null===(i=this._data.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0,u=(null!==(n=null===(r=this._data.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:this._data.items.length)-1;for(let t=d;t<=u;t++){const i=this._data.items[t],s=this._precalculatedCache[t-d],r=Math.round(i.y*o),n=i.style?i.style.color:h;let u,p;e.fillStyle=n,r<=l?(u=r,p=c):(u=l,p=r-Math.floor(a/2)+a),e.fillRect(s.left,u,s.right-s.left+1,p-u)}}hitTest(e){if(null===this._data)return null;const t=.5*this._data.barSpacing,i=e.x-t,r=e.x+t;for(const t of this._data.items){const n=t.x;if(n>=i&&n<=r){const i=t.y;if(e.y>=Math.min(i,this._data.histogramBase)&&e.y<=Math.max(i,this._data.histogramBase))return new s.HitTestResult(s.HitTestResult.REGULAR)}} +return null}_fillPrecalculatedCache(e){var t,i,s,r;if(null===this._data||0===this._data.items.length)return void(this._precalculatedCache=[]);const n=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),o=Math.round(this._data.barSpacing*e)-n,a=null!==(i=null===(t=this._data.visibleItemsRange)||void 0===t?void 0:t.startItemIndex)&&void 0!==i?i:0,l=(null!==(r=null===(s=this._data.visibleItemsRange)||void 0===s?void 0:s.endItemIndex)&&void 0!==r?r:this._data.items.length)-1,c=l-a+1;if(c<=0)return void(this._precalculatedCache=[]);this._precalculatedCache=new Array(c);for(let t=a;t<=l;t++){const i=this._data.items[t],s=Math.round(i.x*e);let r,n;if(o%2){const e=(o-1)/2;r=s-e,n=s+e}else{const e=o/2;r=s-e,n=s+e-1}this._precalculatedCache[t-a]={left:r,right:n,roundedCenter:s,center:i.x*e,time:i.timePointIndex}}for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a],i=this._precalculatedCache[e-a-1];t.time===i.time+1&&(t.left-i.right!==n+1&&(i.roundedCenter>i.center?i.right=t.left-n-1:t.left=i.right+n+1))}let h=Math.ceil(this._data.barSpacing*e);for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a];t.right0&&h<4)for(let e=a+1;e<=l;e++){const t=this._precalculatedCache[e-a];t.right-t.left+1>h&&(t.roundedCenter>t.center?t.right-=1:t.left+=1)}}}},2662:(e,t,i)=>{"use strict";i.d(t,{StudyPlotPaneView:()=>V});var s=i(88537),r=i(86441),n=i(24377),o=i(67337),a=i(64514),l=i(80643),c=i(68906),h=i(98619);function d(e,t){const i=new Map;return function(...s){const r=""+(t?t.apply(null,s):s[0]);if(!i.has(r)){const t=e.apply(this,s);return i.set(r,t),t}return i.get(r)}}var u=i(84346),p=i(84705),_=i(94804),m=i(46214),g=i(28113),f=i(85847),v=i(41892),S=i(31175),y=i(49094),b=i(49483);class w{constructor(e){this._data=e}draw(e,t){var i,s,r,n;const o=this._data,a=t.pixelRatio,c=Math.max(1,Math.floor(a))%2?.5:0,h=o.vertOffset||0,d=o.lineColor||o.color,u=o.lineWidth||o.height/2;let p="",_=!1;const m=null!==(s=null===(i=o.visibleItemsRange)||void 0===i?void 0:i.startItemIndex)&&void 0!==s?s:0,g=null!==(n=null===(r=o.visibleItemsRange)||void 0===r?void 0:r.endItemIndex)&&void 0!==n?n:o.items.length;for(let t=m;t{const t=(0,n.rgbToHsl)((0,n.parseRgb)(e)),i=t[0]+.05;return t[0]=i-Math.floor(i),(0,n.rgbToHexString)((0,n.hslToRgb)(t))},k=d(E);function D(e,t){if(null===e)return t;const i=e.firstIndex,s=t.firstIndex,r=e.clearData||t.clearData;return{firstIndex:r||void 0===i||void 0===s?void 0:Math.min(i,s),clearData:r}}class V{constructor(e,t,i,s){this._histogramBase=null,this._items=[],this._selectionData=null,this._lineColor="", +this._lineWidth=1,this._color1="",this._color2="",this._dataInvalidated=null,this._viewportInvalidated=!1,this._renderer=new _.CompositeRenderer,this._isMarkersEnabled=o.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=s,this._plotIndex=e.metaInfo().plots.findIndex(e=>e.id===s),this._colorProvider=(0,M.createStudyPlotColorProvider)(e.metaInfo(),e.properties(),s),this._selectionIndexer=new f.SelectionIndexes(i.timeScale())}items(){return this._items}update(e){if("global-change"===e.type)return this._dataInvalidated=D(this._dataInvalidated,{}),void(this._viewportInvalidated=!0);if("data-source-change"!==e.type)this._viewportInvalidated=!0;else{if(e.dataSourceId===this._study.id()){const t=D(this._dataInvalidated,{firstIndex:e.firstUpdatedTimePointIndex,clearData:e.clearData});this._dataInvalidated=t}}}renderer(){return this._dataInvalidated?this._updateImplFull(this._viewportInvalidated)&&(this._dataInvalidated=null):this._viewportInvalidated&&this._updateImplLight(),this._viewportInvalidated=!1,this._renderer}_getTranspValue(){const e=this._study.properties(),t=e.styles[this._plotName];let i=0;const s=this._study.metaInfo();return"Volume@tv-basicstudies"===s.id&&s.version<=46&&"transparency"in e?(i=e.transparency.value(),i=(0,l.isNumber)(i)?i:0,i):(t.transparency&&(i=t.transparency.value(),i=(0,l.isNumber)(i)?i:0),i)}_updateImplFull(e){var t,i,n,o;const l=this._study.properties().styles[this._plotName];if(this._renderer.clear(),(null===(t=this._dataInvalidated)||void 0===t?void 0:t.clearData)&&(this._items=[]),!l.visible.value())return!1;if(!this._study.priceScale())return!1;const h=this._study.firstValue();if(null===h)return!1;const d=this._study.priceScale();if(null===d)return!1;this._histogramBase=null;const u=this._study.data(),p=u.size();if(0===p)return!1;const _=this._study.offset(this._plotName);let m=null===(i=this._dataInvalidated)||void 0===i?void 0:i.firstIndex;const g=l.plottype.value(),f=[I.LineStudyPlotStyle.Line,I.LineStudyPlotStyle.Area,I.LineStudyPlotStyle.Circles,I.LineStudyPlotStyle.Cross].indexOf(g)>=0;if(p!==this._items.length){const e=void 0!==m?m+_:void 0;if(void 0===e||0===this._items.length||e<(0,s.ensureDefined)(this._items[0].timePointIndex))this._items=[],u.each((e,t)=>{const i=t[this._plotIndex+1];if(f&&null==i||e<=-1e6)return!1;const s=new r.Point(NaN,NaN);return s.origPrices=new r.Point(NaN,NaN),s.timePointIndex=e+_,this._items.push(s),!1}),m=this._items.length?(0,s.ensureDefined)(this._items[0].timePointIndex)-_:void 0;else{const e=this._items[this._items.length-1].timePointIndex,t=(0,s.ensureDefined)(e)-_,i=(0,s.ensureNotNull)(u.lastIndex())+1,n=u.rangeIterator(t+1,i);for(;n.hasNext();){const e=n.next(),t=e.value[this._plotIndex+1],i=null==t;if(f&&i||e.index<-1e6)continue;const s=new r.Point(NaN,NaN);s.origPrices=new r.Point(NaN,NaN),s.timePointIndex=e.index+_,this._items.push(s)}}}let v=NaN,y=NaN;const b=new Map,w=(e,t)=>{let i=b.get(e);void 0===i&&(i=new Map,b.set(e,i));let s=i.get(t);if(void 0===s){ +const r=!this._plotName||"vol"!==this._plotName;s=(0,c.generateColor)(e,t,r),i.set(t,s)}return s},C=(0,S.createEmptyStyle)(),P=(0,a.clamp)(this._getTranspValue(),0,100),T=this._model.timeScale().visibleBarsStrictRange();if(null===T)return!1;const{startBar:x,endBar:M}=this._calculateStartEnd(T);if(null===x||null===M||0===this._items.length)return!1;const A=null!=m?m:(0,s.ensureNotNull)(u.firstIndex()),E=u.rangeIterator(A,(0,s.ensureNotNull)(u.lastIndex())+1),k=(0,L.lowerbound)(this._items,A+_,(e,t)=>e.timePointIndex0){const e=this._items[D-1].timePointIndex,i=new r.Point(t-1,NaN);i.origPrices=new r.Point(t-1,NaN),i.timePointIndex=e,De.timePointIndexe.timePointIndexe.timePointIndexe.timePointIndex0?(s-=n,r+=n):(s+=n,r-=n);const o=this._study.getMinFirstBarIndexForPlot(this._plotName)+n+1;return o>r+1?{startBar:null,endBar:null}:(s=Math.max(o,s),{startBar:s,endBar:r})}_createRenderer(e,t){var i;this._renderer.clear();const r=this._study.properties().styles[this._plotName],n=r,o=(0,a.clamp)(this._getTranspValue(),0,100);this._lineColor=(0,c.generateColor)(n.color.value(),o),this._lineWidth=n.linewidth.value();let d=n.color.value();const u=this._colorProvider.getDefaultPlotPointStyle();u&&(d=u.colors[0],this._lineWidth=null!==(i=u.lineWidth)&&void 0!==i?i:this._lineWidth,this._lineColor=d?(0,c.generateColor)(d,o):this._lineColor),this._color2=(0,c.generateColor)(d,o);const _=this._study.metaInfo().isRGB?E(d):k(d);this._color1=(0,c.generateColor)(_,o);const f={};f.barSpacing=this._model.timeScale().barSpacing(),f.items=this._items,f.histogramBase=this._histogramBase?this._histogramBase:(0,s.ensureNotNull)(this._study.priceScale()).height(),f.lineIndex=0,f.lineStyle=r.linestyle.value(),f.lineColor=this._lineColor,f.lineWidth=this._lineWidth,f.lineWidth=(0,l.isNumber)(f.lineWidth)?f.lineWidth:1,f.color1=this._color1,f.color2=this._color2,f.bottom=f.histogramBase,f.visibleItemsRange={startItemIndex:e,endItemIndex:t},f.simpleMode=this._colorProvider.singleColor();const S=this._renderer,y=!!r.joinPoints&&r.joinPoints.value();switch(r.plottype.value()){case I.LineStudyPlotStyle.Line:case I.LineStudyPlotStyle.LineWithBreaks:S.append(new m.PaneRendererLine(f));break;case I.LineStudyPlotStyle.Area:case I.LineStudyPlotStyle.AreaWithBreaks:S.append(new p.PaneRendererArea(f));break;case I.LineStudyPlotStyle.Histogram:S.append(new x(f));break;case I.LineStudyPlotStyle.Columns:S.append(new C.PaneRendererColumns(f));break;case I.LineStudyPlotStyle.Cross:if(S.append(new T(f)),y){const e=(0,h.deepCopy)(f);e.lineWidth=1,e.forceLineWidth=!0,S.append(new m.PaneRendererLine(e))}break;case I.LineStudyPlotStyle.Circles:if(S.append(new w(f)),y){const e=(0,h.deepCopy)(f);e.lineWidth=1,e.ignorePaletteLineWidth=!0,S.append(new m.PaneRendererLine(e))}break;case I.LineStudyPlotStyle.StepLine:case I.LineStudyPlotStyle.StepLineWithDiamonds:{f.decoration=n.plottype.value()===I.LineStudyPlotStyle.StepLineWithDiamonds?g.StepLineDecoration.Diamonds:g.StepLineDecoration.None;const e=new g.PaneRendererStepLine;e.setData(f),S.append(e);break}default: +S.append(new m.PaneRendererLine(f))}this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&this._selectionData&&S.append(new v.SelectionRenderer(this._selectionData))}_createSelection(e){const t=this._study.priceScale();if(null!==t)if(this._model.selection().isSelected(this._study)){const i=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:u.HitTestResult.REGULAR,barSpacing:this._model.timeScale().barSpacing()};const n=(0,s.ensureNotNull)(this._model.paneForSource(this._study)).height(),o=this._study.offset(this._plotName);for(let s=0;s{"use strict";i.d(t,{createStudyPlotColorProvider:()=>p});var s=i(50993),r=i(88537),n=i(31175);const o=new Map([[0,"color"],[2,"textColor"],[3,"borderColor"],[4,"wickColor"],[5,"colorup"],[6,"colordown"]]);class a{constructor(e){this._plotStyle=e}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return o.forEach((e,t)=>{this._plotStyle[e]&&(i.colors[t]=this._plotStyle[e].value())}),i.lineWidth=this._plotStyle.linewidth?this._plotStyle.linewidth.value():void 0,i.lineStyle=this._plotStyle.linestyle?this._plotStyle.linestyle.value():void 0,i}isColorDefined(){return!0}singleColor(){return!0}getDefaultPlotPointStyle(){return null}}const l=[0,1,2,3,4,5,6];class c{constructor(e,t,i,s){this._palettesColors=new Map,this._defaultPlotColors=new Map,this._indexes=s;const n=t.styles[i];if(n)for(const[e,t]of o)this._defaultPlotColors.set(e,n[t]);const a=(0,r.ensureDefined)(e.palettes),l=e.plots;s.forEach((e,i)=>{const s=l[e];if(s&&"palette"in s){const e=a[s.palette],r=t.palettes[s.palette];if(e&&r){const{valToIndex:t}=e,{colors:s}=r,n={...s};t&&Object.keys(t).forEach(e=>{const i=t[e];void 0!==i&&(n[e]=s[i])}),this._palettesColors.set(i,n)}}})}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return l.forEach(t=>{var s,n;if(this._palettesColors.has(t)){const n=e[(0,r.ensureDefined)(this._indexes.get(t))+1];if("number"==typeof n){const e=null===(s=this._palettesColors.get(t))||void 0===s?void 0:s[n];0===t&&e&&(i.lineWidth=e.width.value(),i.lineStyle=e.style.value()),i.colors[t]=null==e?void 0:e.color.value()}else i.colors[t]="transparent"}else i.colors[t]=null===(n=this._defaultPlotColors.get(t))||void 0===n?void 0:n.value()}),i}getDefaultPlotPointStyle(){var e;const t=null===(e=this._palettesColors.get(0))||void 0===e?void 0:e[0];if(void 0!==t){return{colors:[t.color.value(),void 0,void 0,void 0,void 0,void 0,void 0],lineStyle:void 0,lineWidth:t.width.value()}}return null}isColorDefined(){return!!this._palettesColors.size}singleColor(){return!1}}var h=i(68906) +;class d{constructor(e){this._indexes=e}getPlotPointStyle(e,t){const i=t?(0,n.clearStyle)(t):(0,n.createEmptyStyle)();return this._indexes.forEach((t,s)=>{const r=e[t+1];if(null!=r){const e=(0,h.rgbaFromInteger)(r);i.colors[s]=e}else i.colors[s]="transparent"}),i}isColorDefined(){return!0}singleColor(){return!1}getDefaultPlotPointStyle(){return null}}const u=new Map([[0,function(e,t){const i=(0,s.isColorerPlot)(t)||(0,s.isOhlcColorerPlot)(t);return"target"in t&&t.target===e&&i}],[2,function(e,t){const i=(0,s.isTextColorerPlot)(t);return"target"in t&&t.target===e&&i}],[1,function(e,t){return(0,s.isBgColorerPlot)(t)&&t.id===e}],[3,function(e,t){const i=(0,s.isCandleBorderColorerPlot)(t);return"target"in t&&t.target===e&&i}],[4,function(e,t){const i=(0,s.isCandleWickColorerPlot)(t);return"target"in t&&t.target===e&&i}],[5,function(e,t){const i=(0,s.isUpColorerPlot)(t);return"target"in t&&t.target===e&&i}],[6,function(e,t){const i=(0,s.isDownColorerPlot)(t);return"target"in t&&t.target===e&&i}]]);function p(e,t,i){const{colorers:s}=function(e,t){const i=e.plots,s=i.findIndex(e=>e.id===t),r=new Map;return i.forEach((e,i)=>{u.forEach((s,n)=>{s(t,e)&&r.set(n,i)})}),{plotIndex:-1===s?null:s,colorers:r}}(e,i);if(s.size)return e.isRGB?new d(s):new c(e,t,i,s);{const e=t.ohlcPlots;if(e&&e[i])return new a(e[i]);const s=t.styles[i];return new a(s)}}},50993:(e,t,i)=>{"use strict";var s,r;function n(e){return"line"===e.type}function o(e){return"shapes"===e.type}function a(e){return"chars"===e.type}function l(e){return"arrows"===e.type}function c(e){return"dataoffset"===e.type}function h(e){return"ohlc_open"===e.type}function d(e){return"ohlc_high"===e.type}function u(e){return"ohlc_low"===e.type}function p(e){return"ohlc_close"===e.type}function _(e){return h(e)||d(e)||u(e)||p(e)}function m(e){return"colorer"===e.type}function g(e){return"bar_colorer"===e.type}function f(e){return"bg_colorer"===e.type}function v(e){return"text_colorer"===e.type}function S(e){return"ohlc_colorer"===e.type}function y(e){return"wick_colorer"===e.type}function b(e){return"border_colorer"===e.type}function w(e){return"up_colorer"===e.type}function C(e){return"down_colorer"===e.type}function P(e){return"alertcondition"===e.type}function T(e){return"Plot"!==e}function x(e){return"ohlc_bars"===e.plottype}function I(e){return"ohlc_candles"===e.plottype}function M(e){return m(e)||g(e)||f(e)||c(e)||S(e)||P(e)||w(e)||C(e)||b(e)||y(e)||v(e)}function L(e){return m(e)||v(e)||g(e)||c(e)||S(e)||y(e)||b(e)||w(e)||C(e)||P(e)}i.r(t),i.d(t,{LineStudyPlotStyle:()=>s,isLinePlot:()=>n,isShapesPlot:()=>o,isCharsPlot:()=>a,isArrowsPlot:()=>l,isDataOffsetPlot:()=>c,isOhlcOpenPlot:()=>h,isOhlcHighPlot:()=>d,isOhlcLowPlot:()=>u,isOhlcClosePlot:()=>p,isOhlcPlot:()=>_,isColorerPlot:()=>m,isBarColorerPlot:()=>g,isBgColorerPlot:()=>f,isTextColorerPlot:()=>v,isOhlcColorerPlot:()=>S,isCandleWickColorerPlot:()=>y,isCandleBorderColorerPlot:()=>b,isUpColorerPlot:()=>w,isDownColorerPlot:()=>C,isAlertConditionPlot:()=>P,isPlotTitleDefined:()=>T,isOhlcPlotStyleBars:()=>x, +isOhlcPlotStyleCandles:()=>I,PlotSymbolSize:()=>r,isPlotWithTechnicalValues:()=>M,isNonVisualPlot:()=>L}),function(e){e[e.Line=0]="Line",e[e.Histogram=1]="Histogram",e[e.Cross=3]="Cross",e[e.Area=4]="Area",e[e.Columns=5]="Columns",e[e.Circles=6]="Circles",e[e.LineWithBreaks=7]="LineWithBreaks",e[e.AreaWithBreaks=8]="AreaWithBreaks",e[e.StepLine=9]="StepLine",e[e.StepLineWithDiamonds=10]="StepLineWithDiamonds"}(s||(s={})),function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(r||(r={}))},81851:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createStudy:()=>B,isESDOrRollDatesStudy:()=>k,isESDStudy:()=>A,isFundamentalStudy:()=>L,isFundamentalStudyMetaInfo:()=>D,isRollDatesStudy:()=>E,isStudy:()=>x,isStudyStrategy:()=>I,isStudyStub:()=>M,studyColorRotationMode:()=>N,useSameColorRotationComparator:()=>O});var s=i(67337),r=i(67072),n=i.n(r),o=i(66101),a=i(46319),l=i(9771),c=i(55153),h=i(67509),d=i(25270);const u=s.enabled("hide_main_series_symbol_from_indicator_legend");class p extends o.Study{constructor(e,t,i,s){super(e,t,i,s),this.properties().styles.vol_ma.visible.listeners().subscribe(this,()=>this.invalidateTitleCache())}base(){return 1}destroy(){this.properties().styles.vol_ma.visible.listeners().unsubscribeAll(this),super.destroy()}_titleInputs(){const e={symbolsForDisplay:!0,skipHiddenInputs:!0,fakeInputsForDisplay:!0,asObject:!1,skipOptionalEmptySymbolInputs:u};return this.properties().styles.vol_ma.visible.value()?this.inputs(e):this.inputs({...e,skippedInputs:["length"]})}}var _=i(88537),m=i(52714),g=i.n(m),f=i(2015),v=i.n(f),S=i(37667),y=i(14791);class b extends o.Study{constructor(e,t,i,s){super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(v())(null)),e.hasChild("unitId")||e.addChild("unitId",new(v())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._isActingAsSymbolSource=new(g())(!1),this._symbolHibernated=new(g())(!1),this._symbolResolvingActive=new(g())(!1),this._realignToolsLastParams=null,this._onIsActingAsSymbolSourceChanged=()=>{this._realignLineToolsIfParamsChanged()},this._recalculateIsActingAsSymbolSource(),this._isActingAsSymbolSource.subscribe(this._onIsActingAsSymbolSourceChanged);const r=this.properties().childs().inputs.childs().symbol;this._previousSymbolInputValue=r.value()}destroy(){this._isActingAsSymbolSource.unsubscribe(this._onIsActingAsSymbolSourceChanged),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}properties(){return this._properties}symbol(){return this._isActingAsSymbolSource.value()?this.properties().childs().inputs.childs().symbol.value():this.symbolSource().symbol()}interval(){return this.model().mainSeries().interval()}style(){return(0,_.ensureNotNull)(this.parentSource().symbolSource()).style()}currency(){return this._isActingAsSymbolSource.value()?this.properties().childs().currencyId.value()||null:this.symbolSource().currency()}unit(){ +return this._isActingAsSymbolSource.value()?this.properties().childs().unitId.value()||null:this.symbolSource().unit()}setSymbolParams(e){this._setSymbolParamsInternal(e)}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._isActingAsSymbolSource.value())return super.symbolSource().symbolInfo();if(void 0===this._resolvedSymbols)return null;const e=this.symbol(),t=this._getSymbolForResolve(e);return this._resolvedSymbols[t]||null}symbolSource(){return this._isActingAsSymbolSource.value()?this:super.symbolSource()}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,y.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,S.isConvertedToOtherCurrency)(this.symbolInfo())}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,S.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}setInterval(e){}setStyle(e){}symbolTitle(e,t){return this.title(!0,{},!1,e)}measureUnitId(){return(0,S.measureUnitId)(this.symbolInfo())}bars(){return super.data()}_onPropertiesChanged(){this._recalculateIsActingAsSymbolSource(),super._onPropertiesChanged(),this._realignLineToolsIfParamsChanged()}_tryChangeInputs(){var e;const t=this._resolvedSymbolsByInput[this.symbol()]||null;(0,y.symbolSameAsCurrent)(this._previousSymbolInputValue,this.symbol(),t)||this._setSymbolParamsInternal({currency:null,unit:null}),super._tryChangeInputs(),this._formatter=null,null===(e=this.priceScale())||void 0===e||e.updateFormatter(),this._previousSymbolInputValue=this.properties().childs().inputs.childs().symbol.value()}_getSymbolObject(e){const t={symbol:e},i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit();return this._model.unitConversionEnabled()&&null!==s&&(t["unit-id"]=s),t}_getSymbolForApi(e){return(0,S.symbolForApi)(this._resolvedSymbolsByInput[e]||null,e)}_onSymbolResolved(e,t,i){super._onSymbolResolved(e,t,i),this._recreatePriceFormattingDependencies();const s=t===this.symbol()?(0,S.extractSymbolNameFromSymbolInfo)(i,this.symbol()):null;null!==s&&(this._previousSymbolInputValue=s);const r=(0,S.symbolCurrency)(i),n=(0,S.symbolUnit)(i,this._model.unitConversionEnabled());this._setSymbolParamsInternal({symbol:null!=s?s:void 0,currency:r,unit:n},i),this._symbolResolvingActive.setValue(!1)}_onSymbolResolvingStart(){super._onSymbolResolvingStart(),this._symbolResolvingActive.setValue(!0)}_onSymbolError(){super._onSymbolError(),this._symbolResolvingActive.setValue(!1)}_onCurrencyMayChange(){this.isActingAsSymbolSource()?super._onCurrencyMayChange():this._onCurrencyChanged()}_recalculateIsActingAsSymbolSource(){var e,t;const i=null!==(t=""!==(null===(e=this._currencySourceSymbolInputProperty)||void 0===e?void 0:e.value()))&&void 0!==t&&t;this._isActingAsSymbolSource.setValue(i)} +_setSymbolParamsInternal(e,t){const{symbol:i,currency:s,unit:r}=e,n=this.properties().childs(),o=n.inputs.childs().symbol.value(),a=n.currencyId.value(),l=n.unitId.value();if(void 0!==i&&i!==o&&n.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==a&&n.currencyId.setValueSilently(s),void 0!==r&&r!==l&&n.unitId.setValueSilently(r),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(n.currencyId.setValueSilently((0,S.symbolCurrency)(e)),n.unitId.setValueSilently((0,S.symbolUnit)(e,this._model.unitConversionEnabled())))}n.inputs.childs().symbol.value()!==o&&n.inputs.childs().symbol.listeners().fire(n.inputs.childs().symbol),n.currencyId.value()!==a&&n.currencyId.listeners().fire(n.currencyId),n.unitId.value()!==l&&n.unitId.listeners().fire(n.unitId),this._realignLineToolsIfParamsChanged()}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}var w=i(69927);class C extends o.Study{priceRange(e,t){let i=!1;this.graphics().hhists().forEach((e,t)=>{i=i||this.properties().child("graphics").child("hhists").child(t).child("showValues").value()});const s=function(e,t,i,s){let r=null;return e.forEach((e,s)=>{e.forEach(e=>{e.firstBarTime<=i&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLow{"use strict";i.d(t,{StudyColorRotatorFactory:()=>h});var s=i(45112),r=i(24377),n=i(68906),o=i(81851);const a=["color-sky-blue-400","color-banana-yellow-700","color-deep-blue-500","color-grapes-purple-a700","color-iguana-green-500","color-minty-green-a700","color-ripe-red-a200","color-berry-pink-200","color-tv-blue-a100","color-tan-orange-a200","color-sky-blue-a400","color-deep-blue-a100","color-grapes-purple-400","color-iguana-green-a700","color-minty-green-200","color-ripe-red-200","color-berry-pink-a200","color-ripe-red-500","color-grapes-purple-500","color-deep-blue-400","color-tv-blue-a200","color-sky-blue-500","color-iguana-green-400","color-minty-green-400","color-banana-yellow-600","color-tan-orange-500","color-berry-pink-400","color-ripe-red-300","color-grapes-purple-300","color-deep-blue-300","color-tv-blue-300","color-sky-blue-300","color-iguana-green-300","color-minty-green-300","color-banana-yellow-400","color-tan-orange-300","color-berry-pink-300","color-tan-orange-a700"];class l{constructor(e){this._offset=0,this._offset=e}getColor(e){if(0===this._offset)return e;const t=a[(this._offset-1)%a.length],i=s.colorsPalette[t],o=(0,n.isHexColor)(e)?1:(0,r.parseRgba)(e)[3];return(0,n.generateColor)(i,(0,n.alphaToTransparency)(o))}}class c{constructor(e,t){this._offset=e,this._modelStartOffset=t}getColor(e){if((0,n.isHexColor)(e)){const t=(0,r.parseRgb)(e);return(0,r.rgbToHexString)((0,r.shiftRgb)(t,this._offset,this._modelStartOffset))}{const t=(0,r.parseRgba)(e);return(0,r.rgbaToString)((0,r.shiftRgba)(t,this._offset,this._modelStartOffset))}}}class h{constructor(e){this._chartModel=e}getColorRotator(e){const t=(0,o.studyColorRotationMode)(e);if(null===t)return null;const i=this._calcDefaultColorsOffset(e);switch(t){case"loop":return new l(i);case"shift":{const e=this._chartModel.getStudyShiftColorStartOffset();return new c(i,e)}}}_calcDefaultColorsOffset(e){let t=0;const i=(0,o.useSameColorRotationComparator)(e);return this._chartModel.dataSources().filter(o.isStudy).forEach(s=>{i(e,s.metaInfo())&&t++}),t}}},27982:(e,t,i)=>{"use strict";i.d(t,{StudyDataSource:()=>_});var s,r=i(88537),n=i(2872),o=i.n(n),a=i(71053),l=i(51344),c=i(72857),h=i(8671),d=i(75871);!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(s||(s={}));const u=(0,i(98125).getLogger)("Chart.StudyDataSource");var p;!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"}(p||(p={}));class _{constructor(e,t,i,r){this._inputs=null,this._status=p.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:s.Undefined},this._studyStatusChanged=new(o()),this._graphics=new d.LiveStudyGraphics,this._dataCleared=new(o()),this._dataUpdated=new(o()),this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=r,this._seriesSource=t,this._turnaroundPrefix=i,this._plots=new a.PlotList((0,h.studyPlotFunctionMap)(r),h.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._dataUpdated.destroy(),this._dataCleared.destroy(),this._studyStatusChanged.destroy()}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:s.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===p.Active&&this._changeStatusTo(p.AwaitingFirstDataUpdate))}isStarted(){return this._status!==p.Idle}isActive(){return this._status===p.Active}start(){this.isStarted()?u.logNormal("start: data source is already started, nothing to do"):((0,r.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(p.AwaitingConnection))}stop(){this.isStarted()?(null!==this._studyId&&(this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:s.Undefined})),this._changeStatusTo(p.Idle)):u.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,r.assert)(this._status===p.Active,"Couldn't steal data from non-active data source"),this.stop();const e=this._plots,t=this._graphics.extract();return this._plots=new a.PlotList((0,h.studyPlotFunctionMap)(this._metaInfo),h.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}_changeStatusTo(e){(0,r.assert)(this._status!==e,"Source and destination status should be distinct"),u.logNormal(`Status changed from ${p[this._status]} to ${p[e]}`),this._status=e}_createStudy(){const e=this._seriesSource.instanceId();null!==e?this._createStudyUsingParentId(e):(this._changeStatusTo(p.AwaitingParent), +this._seriesSource.dataEvents().completed().subscribe(this,this._onSeriesCompleted,!0))}_createStudyUsingParentId(e){(0,r.assert)(this._status!==p.Active,'Status should not be "Active" when creating a study'),(0,r.assert)(this._studyStatus.type===s.Undefined,'Study status should be "Undefined" when creating a study'),(0,r.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=(0,c.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,this._metaInfo.fullId+("tv-basicstudies"===this._metaInfo.packageId?"":"!"),(0,r.ensureNotNull)(this._inputs),this._onMessage.bind(this)),this._changeStatusTo(p.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===p.AwaitingConnection&&this._createStudy()}_onGatewayDisconnected(){this._status!==p.Idle&&this._status!==p.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(p.AwaitingConnection),this._studyStatus.type!==s.Undefined&&this._onStudyStatusChangedTo({type:s.Undefined})),this._turnaroundCounter=1}_onSeriesCompleted(){this._status===p.AwaitingParent&&this._createStudyUsingParentId((0,r.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,u.logNormal(`Study status type changed from ${s[t.type]} to ${s[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){const{customId:t,turnaround:i,plots:s,nonseries:n}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(s,(0,r.ensureDefined)(n))}else if("study_loading"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(s)}else if("study_completed"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(s)}else if("study_error"===e.method){const[t,i,s,r,n]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(s,r,n)}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=(0,l.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!==p.Idle&&(this._status===p.AwaitingFirstDataUpdate&&(this._changeStatusTo(p.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?((0,r.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:s.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData();const r="string"==typeof e?{error:e.split(":",2)[0]}:e;this._onStudyStatusChangedTo({type:s.Error,errorDescription:r})}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:s.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}`}}},26179:(e,t,i)=>{"use strict";i.d(t,{StudyDataWindowView:()=>o});var s=i(14445),r=i(89027),n=i(99682);class o extends s.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t),this._items=this._valueProvider.getItems().map(e=>new s.DataWindowItem(e.title,"")),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}study(){return this._study}_updateImpl(){this._header=this._study.title(!0),this._title=this._study.title();const e=this._valueProvider.getValues(this._currentIndex());for(let t=0;t{"use strict";function s(e){const t=new Map;return e.plots.forEach((e,i)=>{t.set(e.id,e=>e[i+1])}),t}function r(e,t){return null==e[t]}i.d(t,{studyPlotFunctionMap:()=>s,studyEmptyPlotValuePredicate:()=>r})},88145:(e,t,i)=>{"use strict";function s(e,t){return`${e}@${t}`}function r(e){return e.replace(/(@[^-]+-[^-]+).*$/,"$1")}i.d(t,{studyIdString:()=>s,extractStudyId:()=>r})},33266:(e,t,i)=>{"use strict";function s(e){return["text","integer","float","price","session","resolution"].includes(e.type)&&e.hasOwnProperty("options")}function r(e,t,i){for(const s of e)if(t[s.id]!==i[s.id])return!1;return!0}function n(e){return("time"===e.type||"price"===e.type)&&!0!==e.isHidden}function o(e){return[]}i.d(t,{isStudyInputOptionsInfo:()=>s,areStudyInputsEqual:()=>r,isTimeOrPriceNotHiddenInput:()=>n,editableStudyInputs:()=>o})},90998:(e,t,i)=>{"use strict";i.d(t,{StudyInserter:()=>a});var s,r=i(67072),n=i.n(r);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.Cancelled="cancelled",e.Unknown="unknown"}(s||(s={}));const o=(0,i(98125).getLogger)("Chart.Studies.StudyInserter");class a{constructor(e,t,i){this._parentSource=void 0,this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._allowChangeUnit=!1,this._paneSize=void 0,this._forceOverlay=!1,this._studyMetaInfoRepository=t,this._inserterImpl=i,this._studyDescriptor=e}setParentSource(e){this._parentSource=e||void 0}setPaneSize(e){this._paneSize=e}setPreferredPriceScale(e){this._preferredPriceScale=e}setAllowChangeCurrency(e){this._allowChangeCurrency=e}setAllowChangeUnit(e){this._allowChangeUnit=e}setForceOverlay(e){ +this._forceOverlay=e}setPropertiesState(e){this._propsState=e}setTargetPriceScaleMode(e){this._targetPriceScaleMode=e}async insert(e,t){const i=void 0!==(r=this._inserterImpl).createStub&&void 0!==r.removeStub?this._inserterImpl.createStub():null;var r;let n,a=!0;try{n=await this._studyMetaInfoRepository.findById(this._studyDescriptor)}catch(e){return o.logWarn("Cannot get study "+JSON.stringify(this._studyDescriptor)),Promise.reject(s.CannotGetMetainfo)}finally{null!==i&&(a=this._inserterImpl.removeStub(i))}if(!a)return Promise.reject(s.StubWasRemoved);if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);if(!this._canApplyStudyToParent(n))return Promise.reject(s.StudyCannotBeChild);const l={...n.defaults.inputs};let c={};if(void 0!==e){const t=await e(l,n.inputs,n);c=t.inputs,void 0===this._parentSource&&t.parentSource&&(this._parentSource=t.parentSource)}if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);const h=this._insertStudy(n,c);return null===h?Promise.reject(s.Unknown):h}_insertStudy(e,t){return this._inserterImpl.createStudy(e,t,null,this._propsState,this._forceOverlay,this._parentSource,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetPriceScaleMode)}_canApplyStudyToParent(e){return void 0===this._parentSource||n().canBeChild(e)}}},22458:(e,t,i)=>{"use strict";i.d(t,{StudyLegendValuesProvider:()=>n});var s=i(89027),r=i(99682);class n{constructor(e,t){this._study=e,this._model=t,this._showStudyValues=t.properties().childs().paneProperties.childs().legendProperties.childs().showStudyValues,void 0!==e.metaInfo().graphics.hhists?this._valuesProvider=new r.HHistBasedValuesProvider(e,t):this._valuesProvider=new s.StudyValuesProvider(e,t)}getItems(){return this._valuesProvider.getItems()}getValues(e){const t=this._valuesProvider.getValues(e),i=this._study.properties(),s=this._showStudyValues.value()&&i.showLegendValues.value();for(const e of t)e.visible=e.visible&&s;return t}}},43181:(e,t,i)=>{"use strict";i.d(t,{StudyMetaInfoRepository:()=>h});var s=i(28353),r=i(88537),n=i(67072),o=i.n(n),a=i(5402),l=i(15625);const c=(0,i(98125).getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"});class h{constructor(e){this._nextRequestNumber=1,this._rawStudiesMetaInfo=[],this._isReady=!1,this._metaInfoQueryQueue=[],this._javaMetaInfoQueryQueue=[],this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._studiesMigrations=[],this._gateway=e}requestMetaInfo(){this._requestStarted();const e=this._makeNextRequestId();return c.logNormal("Requesting metainfo #"+e),new Promise(t=>{c.logNormal("Requesting studies metadata #"+e),this._gateway.requestMetadata(e,i=>{c.logNormal(`Requesting studies metadata #${e} finished`);const s=i.params[1].metainfo.slice();this._processLibraryMetaInfo(s),this._requestFinished(),t()})})}findById(e){if(!this._isReady)return this._enqueueMetaInfoQuery(e);const t=this._findStudyMetaInfo(e) +;return null!==t?Promise.resolve(t):"pine"===e.type?this._compilePine(e):Promise.reject(`unexpected study id=${e.studyId} with type=${e.type}`)}findByIdSync(e){return this._findStudyMetaInfo(e)}isReady(){return this._isReady}findAllJavaStudies(){return this._isReady?Promise.resolve(this._javaStudiesMetaInfo):this._enqueueJavaMetaInfoQuery()}getInternalMetaInfoArray(){return this._javaStudiesMetaInfo}getMigrations(){return this._studiesMigrations}addPineMetaInfo(e){return u(this._pineMetaInfoCache,e)}_processMigrations(e){throw new Error("not implemented")}_processSiteMetaInfo(e,t){throw new Error("not implemented")}_processLibraryMetaInfo(e){for(const t of e)d(t),u(this._javaStudiesMetaInfo,t);this._javaStudiesMetaInfo=this._javaStudiesMetaInfo.sort((e,t)=>{const i=e.description_localized||e.description,s=t.description_localized||t.description;return i>s?1:i{this._metaInfoQueryQueue.push({studyDescriptor:e,resolver:t})})}_enqueueJavaMetaInfoQuery(){return new Promise(e=>{this._javaMetaInfoQueryQueue.push({resolver:e})})}_processPendingMetaInfoQueries(){for(;this._metaInfoQueryQueue.length;){const e=this._metaInfoQueryQueue.shift();this.findById(e.studyDescriptor).then(e.resolver)}}_processPendingFullMetaInfoQueries(){for(;this._javaMetaInfoQueryQueue.length;){this._javaMetaInfoQueryQueue.shift().resolver(this._javaStudiesMetaInfo)}}_findStudyMetaInfo(e){return"java"===e.type?this._javaStudiesMetaInfo.find(t=>t.id===e.studyId)||null:this._pineMetaInfoCache.find(t=>t.scriptIdPart===e.pineId&&(void 0===e.pineVersion||(0,r.ensureDefined)(t.pine).version===e.pineVersion))||null}_makeNextRequestId(){return"metadata_"+this._nextRequestNumber++}_compilePine(e){throw new Error("unsupported")}}function d(e){e.description_localized=(0,s.t)(e.description,{context:"study"})}function u(e,t){const i=new(o())(t);(0,a.migrateMetaInfoAndPropState)(i);let s=!0;const r=e.findIndex(e=>e.id===i.id);if(-1===r)e.push(i);else{const t=e[r],n=void 0!==t.pine?l.Version.parse(t.pine.version):null,o=void 0!==i.pine?l.Version.parse(i.pine.version):null;null===o||null===n||o.isGreaterOrEqual(n)?(t.removeDefaults(),e[r]=i):s=!1}return s&&i.createDefaults(),i}},45090:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProviderBase:()=>c});var s=i(50338),r=i(13933),n=i(28353);const o={NONE:"Default"},a=(0,n.t)("No volume data"),l=new Map;class c extends s.StatusProviderBase{constructor(e,t){super(t),this._source=e}getSplitTitle(){return this._source.titleInParts(!0,o,void 0,!1)}text(){ +return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,o,void 0,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,o,void 0,!1)} ${this.sourceStatusText()}`:this._source.title(!0,o,void 0,!1)}sourceStatusText(){return(0,r.convertStudyStatusToString)(this._source.status(),!0)}sourceStatusSolutionId(){const e=this._source.status();if(e.type===r.StudyStatusType.Error)return e.errorDescription.solution_id?e.errorDescription.solution_id:function(e){for(const t of Array.from(l.keys()))if(e.includes(t))return l.get(t)}(e.errorDescription.error)}errorStatus(){if(!this._source.isActualInterval()||this._source.isSymbolInvalid())return null;return this._source.status().type===r.StudyStatusType.Error?{error:this.sourceStatusText(),solutionId:this.sourceStatusSolutionId(),title:this.sourceStatusTitle()}:null}sourceStatusTitle(){const e=this._source.status();if(e.type===r.StudyStatusType.Error)return-1!==e.errorDescription.error.toLowerCase().indexOf("the data vendor doesn't provide volume data for this symbol.")?a:void 0}}},40529:(e,t,i)=>{"use strict";i.d(t,{StudyStatusProvider:()=>n});var s=i(28353),r=(i(13933),i(45090));(0,s.t)("Fundamental studies are no longer available on charts");class n extends r.StudyStatusProviderBase{constructor(e,t){super(e,t),this._study=e}color(){return this._study.isFailed()||this._study.metaInfo&&this._study.metaInfo().isTVScriptStub?"#ff0000":super.color()}sourceStatusText(){this._study.status();return super.sourceStatusText()}}},190:(e,t,i)=>{"use strict";i.d(t,{StudyStatusView:()=>r});var s=i(45058);class r extends s.StatusView{constructor(e){super(e.statusProvider())}color(){return this._statusProvider.color()}getSplitTitle(){return this._statusProvider.getSplitTitle()}update(){this._text=this._statusProvider.text()}}},13933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StudyStatusType:()=>n,convertStudyStatusToString:()=>o});var s=i(28353);const r=(0,s.t)("loading...");var n;function o(e,t){if(e.type===n.Loading)return t?r:"loading...";if(e.type===n.Error){const i=e.errorDescription,r=t?(0,s.t)(i.error):i.error;if(i.ctx){const e={};return Object.entries(i.ctx).forEach(([t,i])=>{e[t]=i.toString()}),r.format(e)}return r}return""}!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(n||(n={}))},25270:(e,t,i)=>{"use strict";i.d(t,{StudyStub:()=>m});var s=i(190),r=i(22932),n=i(97098),o=i(2872),a=i.n(o),l=i(2015),c=i.n(l),h=i(45090);class d extends h.StudyStatusProviderBase{text(){return this._source.isActualInterval()?`${this._source.title()} ${this.sourceStatusText()}`:this._source.title()}}var u=i(13933);class p{getItems(){return[]}getValues(e){return[]}}const _=new(a());class m extends r.PriceDataSource{constructor(e,t,i){super(e),this._priceStep=.01,this._status={type:u.StudyStatusType.Undefined},this._statusChanged=new(a()),this._formatter=new n.PriceFormatter(100),this._origState=t,this._title=i;this._properties=new(c())({visible:!0}),this._statusView=new s.StudyStatusView(this)}properties(){ +return this._properties}statusView(){return this._statusView}legendView(){return null}state(e){return this._origState}setStatus(e){this._status=e,this._statusChanged.fire()}formatter(){return this._formatter}name(){return this._title}title(){return this._title}titleInParts(){return[this._title]}isFailed(){return this._status.type===u.StudyStatusType.Error}isLoading(){return this._status.type===u.StudyStatusType.Loading}setFailed(e){this.setStatus({type:u.StudyStatusType.Error,errorDescription:{error:e}}),this._model.updateSource(this)}isSymbolInvalid(){return!1}isActualInterval(){return!0}onIsActualIntervalChange(){return _}start(){}status(){return this._status}onStatusChanged(){return this._statusChanged}firstValue(){return null}currency(){return null}sessionId(){return this._model.mainSeries().sessionId()}sessionIdChanged(){return this._model.mainSeries().sessionIdChanged()}unit(){return null}symbolSource(){return this._model.mainSeries()}valuesProvider(){return new p}statusProvider(e){return new d(this,this._model.properties().childs().scalesProperties.childs().textColor)}}},89027:(e,t,i)=>{"use strict";i.d(t,{StudyValuesProvider:()=>g});var s=i(93751),r=i(49483),n=i(68906),o=i(67337),a=i(71053),l=i(14291),c=i(85733),h=i(50993),d=i(99220),u=i(88129),p=i(57626);const _=r.CheckMobile.any(),m=o.enabled("hide_last_na_study_output");class g{constructor(e,t){this._emptyValues=[],this._colorProviders=new Map,this._study=e,this._model=t;const i=this._study.metaInfo().plots;i&&i.forEach((e,t)=>{if((0,h.isPlotWithTechnicalValues)(e))return;const i=e.id;this._emptyValues.push(function(e,t="",i=""){return{id:t,index:e,title:i,value:"",visible:!1}}(t,i,this._study.guiPlotName(i)));const s=(0,h.isOhlcPlot)(e)?e.target:i;this._colorProviders.set(s,(0,d.createStudyPlotColorProvider)(this._study.metaInfo(),this._study.properties(),s))})}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>({...e}));let i=null;const r=this._study.data().lastIndex();if(null!==r)for(const e of t){if(!this._study.properties().styles[e.id].visible.value())continue;const t=this._study.nearestIndex(r,a.PlotRowSearchMode.NearestLeft,e.index+1);if(void 0===t)continue;const s=t+this._study.offset(e.id);i=null!==i?Math.max(s,i):s}(null===e||null!==i&&e>i)&&(e=i);const o=this._hideValues(),l=this._study.isVisible()&&!o?p.notAvailable:"";for(const e of t)e.value=l;if(o)return t;m&&t.length&&(t[t.length-1].value="");const c=this._study.priceScale();if(!this._study.isVisible()||null===e||null===c||c.isEmpty()||this._model.timeScale().isEmpty())return t;const d=this._study.metaInfo().plots,_=(0,u.getPriceValueFormatterForSource)(this._study),g={};for(const i of t){let t=i.id;const o=this._study.properties().styles[t].visible.value();if(i.visible=o,!o)continue;const l=i.index,c=e-this._study.offset(t),u=null!==r&&c>r?a.PlotRowSearchMode.NearestLeft:a.PlotRowSearchMode.Exact,p=this._study.nearestIndex(c,u);if(void 0===p)continue;let m=g[t];if(void 0===m&&(m=this._study.getMinFirstBarIndexForPlot(t),Number.isFinite(m)&&(g[t]=m)), +m>p)continue;const f=this._study.data().last(),v=this._study.data().valueAt(p)||(null!==f?f.value:null);if(null===v)continue;const S=v[l+1];if(!(0,s.isNumber)(S))continue;const y=S>0;i.value=_(S);const b=this._study.properties().styles[t];let w=b.color.value();const C=d[l];(0,h.isOhlcPlot)(C)?(t=C.target||t,w=this._study.properties().ohlcPlots[t].color.value()):(0,h.isArrowsPlot)(C)&&(w=y?b.colorup.value():b.colordown.value());let P=w;const T=this._colorProviders.get(t),x=T&&T.getPlotPointStyle(v);x&&((0,h.isArrowsPlot)(C)?(y&&void 0!==x.colors[5]&&(P=x.colors[5]),y||void 0===x.colors[6]||(P=x.colors[6])):void 0!==x.colors[0]&&(P=x.colors[0])),"transparent"===P&&(P=w),P=(0,n.resetTransparency)(P),i.color=P}return t}_hideValues(){return _&&(null===this._model.crossHairSource().pane||(0,l.isLineToolName)(c.tool.value())||null!==this._model.lineBeingEdited())}}},69774:(e,t,i)=>{"use strict";i.d(t,{StudyBase:()=>gt});var s=i(16230),r=i(88537),n=i(28353),o=i(98125),a=i(49483),l=i(2872),c=i.n(l),h=i(51344),d=i(22932),u=i(69927),p=i(71053),_=i(67072),m=i.n(_),g=i(54376),f=i(95936),v=i(26179),S=i(22458);class y extends v.StudyDataWindowView{constructor(e,t){super(e,t),this._showStudyValues=t.properties().childs().paneProperties.childs().legendProperties.childs().showStudyValues,this._showStudyValues.subscribe(this,this.update),this._study.properties().showLegendValues.subscribe(this,this.update)}areValuesVisible(){return this._showStudyValues.value()}additional(){return null}destroy(){this._showStudyValues.unsubscribeAll(this),this._study.properties().showLegendValues.unsubscribeAll(this)}_createValuesProvider(e,t){return new S.StudyLegendValuesProvider(e,t)}}var b=i(85733),w=i(190),C=i(19234),P=i(72857),T=i(95836),x=i(40529),I=i(80643),M=i(95505),L=i(50993),A=(i(33266),i(67337)),E=i(86441),k=i(68906),D=i(94804);class V{constructor(e){this._data=e}draw(e,t){}drawBackground(e,t){e.save();const i=this._data,s=t.pixelRatio;let r=null;const n=Math.round(this._data.w*s);for(let t=0;t0){i.items[t-1].index===o.index-1&&null!==r&&(l=r+1)}const c=a+n,h=c-l+1;e.fillRect(l,Math.round(i.y*s),h,Math.round(i.h*s)),r=c}e.restore()}hitTest(e){return null}}var B=i(99220);class N{constructor(e,t,i,s){this._items=[],this._invalidated=!0,this._isMarkersEnabled=A.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=s;const n=this._study.metaInfo().plots;for(let e=0;e0?(i-=n,s+=n):(i+=n,s-=n);const o=this._study.getMinFirstBarIndexForPlot(this._plotName);if(o>s)return;i=Math.max(o,i);const a=this._study.data().rangeIterator(i,s);for(;a.hasNext();){const e=a.next();let i=e.index;const s=e.value;i+=n;const o=new E.Point(Math.floor(i)-.5,NaN);let l=(0,I.isNumber)(t)?t:50;l=Math.min(l,100),l=Math.max(l,0);const c=this._colorProvider.getPlotPointStyle(s);void 0!==c.colors[1]&&(o.color=(0,k.generateColor)((0,r.ensureDefined)(c.colors[1]),l)),o.index=i,this._items.push(o)}this._model.timeScale().timedValuesToCoordinates(this._items)}}var R,O,F=i(11372),W=i(41892),H=i(56138),z=i(64514),U=i(84346),j=i(85847),G=i(63948),q=i(31175),Y=i(34026),K=i(40236),$=i(52640),X=i(93435);!function(e){e.Left="left",e.Right="right",e.Center="center"}(R||(R={})),function(e){e.Top="top",e.Bottom="bottom",e.Middle="middle"}(O||(O={}));const Z=(0,X.createDisconnectedCanvas)(document,new X.Size(0,0),1);class J{constructor(e,t,i,s,n,o="center",a=0){this._lines=e.split(/[^\S\r\n]*(?:\r\n|\r|\n)/),this._font=function(e,t,i,s){return(0,$.makeFont)(s,i,`${e?"bold ":""}${t?"italic ":""}`)}(t,i,s,n),this._fontSize=n,this._verticalPadding=~~(n/6),this._textAlign=o,this._lineSpacing=a;const l=(0,r.ensureNotNull)(Z.getContext("2d"));l.font=this._font,l.textBaseline="top";let c=0;for(let e=0;e{for(const t of this._lines)e.fillText(t,l,c),c+=this._fontSize,c+=this._lineSpacing}),e.restore()}}class Q extends K.AbstractMapContainer{constructor(e){super(),this._maxSize=e,this._keysQueue=[]}get(e){const{fontSize:t,text:i,align:s,lineSpacing:r=0}=e;if(!i||!t||!s)return null;const n=(0,K.getDefault3)(this._map,r,s,t,new Map);let o=n.get(i);return void 0!==o||(this._size>=this._maxSize?this._deleteFirstKey():++this._size,this._keysQueue.push([t,s,r,i]),o=new J(i,e.bold,e.italic,e.font,t,s,r),n.set(i,o)),o}_deleteFirstKey(){const e=this._keysQueue.shift(),[t,i,s,n]=e,o=(0,r.ensureDefined)(this._map.get(s)),a=(0,r.ensureDefined)(o.get(i)),l=(0,r.ensureDefined)(a.get(t));l.delete(n),0===l.size&&a.delete(t),0===a.size&&o.delete(i),0===o.size&&this._map.delete(s)}}var ee=i(22799);class te{constructor(e,t={skipRenderingOptimizations:!1}){this._items=[],this._barSpacing=0,this._vertOffset=0,this._textCache=t.textCache||new Q(5e3),this._drawOperation=t.skipRenderingOptimizations?this._drawWithoutOptimizations.bind(this):this._drawWithOptimizations.bind(this),null!==e&&this.setData(e)}draw(e,t){this._preDrawInit(),this._drawOperation(e,t)}hitTest(e){const t=U.HitTestResult.REGULAR;let i=null;for(const s of this._items){if(!s)continue;const r=this._calcBoundingBox(s);if(r&&(0,Y.pointInBox)(e,r)){const e={tooltip:this._getTooltip(s,r)};i=new U.HitTestResult(t,e)}}return i}setData(e){this._height=void 0!==e.height?e.height:e.width,this._width=void 0!==e.width?e.width:e.height,this._color=e.color,this._borderColor=e.borderColor,this._vertOffset=e.vertOffset||0,e.text&&(this._text=e.text,this._fontSize=e.fontSize,this._lineSpacing=e.lineSpacing,this._textColor=e.textColor,this._textAlign=e.textAlign||"center"),void 0!==e.items&&void 0!==e.barSpacing&&this.setItems(e.items,e.barSpacing)}setItems(e,t){this._setBaseData(e,t)}_calcBoundingBox(e){const t=e.vertOffset,i=this._getTextCache(e);if(!i)return;const s=i.textImageWidth,r=i.textImageHeight,n=s/2,o=e.y+t+e.textVertOffset,a=t>0?0:-r,l=t>0?r:0,c=new E.Point(e.x-n,o+a),h=new E.Point(e.x+n,o+l);return(0,E.box)(c,h)}_unionBox(e,t){const i=Math.min(e.min.x,t.min.x),s=Math.max(e.max.x,t.max.x),r=Math.min(e.min.y,t.min.y),n=Math.max(e.max.y,t.max.y),o=new E.Point(i,r),a=new E.Point(s,n);return(0,E.box)(o,a)}_getTooltip(e,t){if(e.tooltip)return{content:{type:"text",data:e.tooltip},tooltipDelay:200,extendMargin:!0,rect:{x:t.min.x,y:t.min.y,w:Math.abs(t.max.x-t.min.x),h:Math.abs(t.max.y-t.min.y)}}}_setBaseData(e,t){this._items.length=0,this._barSpacing=t;for(const t of e){const e=void 0===t.width?(0,r.ensureDefined)(this._width):t.width,i=void 0===t.height?(0,r.ensureDefined)(this._height):t.height,s=void 0===t.vertOffset?this._vertOffset:t.vertOffset,n=s>0?i:-i;this._items.push({width:e,height:i,vertOffset:s,textVertOffset:n,shapeWidth:0,shapeHeight:0,stepX:0,stepY:0,...t})}}_drawItemText(e,t,i){const s=this._getTextCache(i);if(null===s)return +;const r=i.x,n=i.vertOffset,o=i.y+n+i.textVertOffset;let a;a=i.style&&void 0!==i.style.textColor?i.style.textColor:this._textColor,s.paintTo(e,t,a,r,o,R.Center,n>0?O.Top:O.Bottom)}_drawWithOptimizations(e,t){let i,s,r=null,n=!1;for(const o of this._items)o.style&&void 0!==o.style.color?(i=o.style.color||"rgba(0, 0, 0, 0)",s=o.style.borderColor||"rgba(0, 0, 0, 0)"):(i=this._color,s=this._borderColor),(r!==i||a.isSafari)&&(r=i,n&&this._endPath(e),this._startPath(e,t,i,s)),this._drawItemShape(e,t,o),n=!0;n&&this._endPath(e);for(const i of this._items)this._drawItemText(e,t,i)}_drawWithoutOptimizations(e,t){let i,s;for(const n of this._items){const o=(0,r.ensureDefined)(n.style);i=o.color||"rgba(0, 0, 0, 0)",s=o.borderColor||"rgba(0, 0, 0, 0)",this._startPath(e,t,i,s),this._drawItemShape(e,t,n),this._endPath(e),this._drawItemText(e,t,n)}}_drawItemShape(e,t,i){(0,X.drawScaled)(e,t.pixelRatio,()=>this._drawItemShapeUsingCSSPixels(e,i))}_drawItemShapeUsingCSSPixels(e,t){}_preDrawInit(){}_startPath(e,t,i,s){}_endPath(e){}_getTextCache(e){var t;const i=e.text||this._text,s=e.fontSize||this._fontSize,r=null!==(t=e.lineSpacing)&&void 0!==t?t:this._lineSpacing,n=e.textAlign||this._textAlign;return this._textCache.get({text:i,bold:!1,italic:!1,font:ee.CHART_FONT_FAMILY,fontSize:s,lineSpacing:r,align:n})}}class ie extends te{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.strokeStyle=i}_endPath(e){e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(2*e.pixelRatio))}}class se extends te{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.fillStyle=i,e.strokeStyle=s}_endPath(e){e.fill(),e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(e.pixelRatio))}}class re extends se{constructor(){super(...arguments),this._sign=0,this._thinArrow=!1,this._thinArrowLineWidth=0,this._headHeight=0,this._arrowWidth=0}setItems(e,t){this._setBaseData(e,t)}_drawItemShape(e,t,i){const s=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,n=this._sign,o=this._arrowWidth,a=this._headHeight,l=Math.abs(i.height),c=Math.round(i.x*s)+r,h=i.vertOffset,d=Math.round((i.y+h+n*l/2)*s)+r,u=(0,z.ceiledEven)(o*s),p=u/2,_=Math.round(l*s),m=Math.round(a*s);e.translate(c,d),this._thinArrow?(e.moveTo(0,0),e.lineTo(-p,-p*n),e.moveTo(0,0),e.lineTo(p,-p*n),e.moveTo(0,0),e.lineTo(0,-_*n),e.moveTo(-p,-_*n),e.lineTo(p,-_*n)):(e.moveTo(0,0),_=0?e.vertOffset:e.vertOffset-e.shapeHeight}}),he.set("PaneRendererLabelDown",class extends oe{_calcBoundingBox(e){const t=e.x-e.shapeWidth/2,i=e.x+e.shapeWidth/2,s=e.y-e.shapeHeight+e.vertOffset,r=e.y+e.vertOffset,n=new E.Point(t,s),o=new E.Point(i,r);return(0,E.box)(n,o)}_drawItemShape(e,t,i){const s=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,n=Math.max(1,Math.floor(s))%2?.5:0,o=this._getArrowSize(i);let a=Math.round(o*s);(n+a)%1!=r%1&&(a+=.5);let l=Math.round(i.shapeWidth/2*s);(n+l)%1!=r%1&&(l+=.5);const c=Math.round(i.x*s)+n,h=Math.round((i.y+i.vertOffset)*s)+r,d=c+a,u=Math.round((i.y+i.vertOffset-o)*s)+r,p=c-a,_=c+l,m=Math.round((i.y+i.vertOffset-i.shapeHeight)*s)+r,g=c-l +;e.moveTo(d,u),e.lineTo(c,h),e.lineTo(p,u),i.shapeWidth<=2*o?(e.lineTo(g,u),this._drawCorner(e,g,m,le.leftUp,s),this._drawCorner(e,_,m,le.rightUp,s),e.lineTo(_,u)):(this._drawCorner(e,g,u,le.leftDown,s),this._drawCorner(e,g,m,le.leftUp,s),this._drawCorner(e,_,m,le.rightUp,s),this._drawCorner(e,_,u,le.rightDown,s)),e.lineTo(d,u)}_getVerticalTextOffset(e){return-e.shapeHeight/2-this._getArrowSize(e)/2}_calcVertOffset(e){return Math.sign(e.vertOffset)<=0?e.vertOffset:e.vertOffset+e.shapeHeight}}),he.set("PaneRendererSquare",class extends se{_drawItemShape(e,t,i){const s=t.pixelRatio,r=Math.max(1,Math.floor(s))%2?.5:0,n=this._lineWidth(t)%2?.5:0;let o=Math.round(i.height/2*s);(r+o)%1!=n%1&&(o+=.5);const a=Math.round(i.x*s)+r,l=Math.round((i.y+i.vertOffset)*s)+r,c=a-o,h=l-o,d=a+o,u=l+o;e.rect(c,h,d-c,u-h)}_calcBoundingBox(e){const t=e.height,i=Math.round(t/2),s=e.x-i,r=e.vertOffset,n=e.y+r-i,o=s,a=s+t,l=n,c=n+t,h=new E.Point(o,l),d=new E.Point(a,c);let u=(0,E.box)(h,d);const p=super._calcBoundingBox(e);return p&&(u=this._unionBox(u,p)),u}}),he.set("PaneRendererTriangleApexUp",class extends ce{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-2*n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let d=Math.round(s*a);d%2!=c%2&&(d+=1);const u=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a),_=u+d/2,m=Math.round((i.y+o+r)*a)+l,g=u-d/2;e.moveTo(u,p),e.lineTo(_,m),e.lineTo(g,m),e.lineTo(u,p)}}),he.set("PaneRendererTriangleApexDown",class extends ce{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let d=Math.round(s*a);d%2!=c%2&&(d+=1);const u=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a)+l,_=u+d/2,m=Math.round((i.y+o+r)*a),g=u-d/2;e.moveTo(g,p),e.lineTo(_,p),e.lineTo(u,m),e.lineTo(g,p)}}),he.set("PaneRendererXCross",class extends ie{_drawItemShapeUsingCSSPixels(e,t){const i=t.width,s=t.height,r=t.x-i/2,n=t.vertOffset,o=t.y-s/2+n;e.moveTo(r,o),e.lineTo(r+i,o+s),e.moveTo(r,o+s),e.lineTo(r+i,o)}_calcBoundingBox(e){const t=e.width,i=e.height,s=e.x-t/2,r=e.vertOffset,n=e.y-i/2+r,o=s,a=s+t,l=n,c=n+i,h=new E.Point(o,l),d=new E.Point(a,c);let u=(0,E.box)(h,d);const p=super._calcBoundingBox(e);return p&&(u=this._unionBox(u,p)),u}});class de{constructor(e,t,i,s){this._items=[],this._invalidated=!1,this._renderer=null,this._isMarkersEnabled=A.enabled("source_selection_markers"),this._selectionData=null,this._plotIndex=null,this._topCoord=0,this._bottomCoord=0,this._study=e,this._series=t,this._model=i,this._plotName=s;const r=e.metaInfo().plots;for(let e=0;e0?(s-=o,n+=o):(s+=o,n-=o);const a=this._study.getMinFirstBarIndexForPlot(this._plotName);if(a>n)return;s=Math.max(a,s);const l=this._study.data(),c=this._study.firstValue();if(null===c)return;const h=l.rangeIterator(s,n),d=this._getTranspValue();let u=[];const _=this._model.selection().isSelected(this._study);_?(u=this._selectionIndexer.indexes(),this._selectionData={points:[],hittestResult:U.HitTestResult.REGULAR,vertOffset:0,bgColors:[],barSpacing:e.barSpacing(),visible:!0}):(this._selectionIndexer.clear(),this._selectionData=null);const m=this._series.properties().childs().style.value(),g=2===m?"lineStyle":3===m?"areaStyle":null;let f,v;g?(f=this._series.properties().childs()[g].childs().priceSource.value(),v=f):(f="high",v="low");const S=t.isInverted(),y=t.coordinateToPrice(t.height()*t.topMargin(),c),b=t.coordinateToPrice(t.height()*(1-t.bottomMargin()),c);this._topCoord=S?b:y,this._bottomCoord=S?y:b;const w=(0,r.ensureNotNull)(this._model.paneForSource(this._study)).height(),C=this._study.properties().styles[this._plotName],P=C.color.value(),T=C.textColor?C.textColor.value():void 0,x=P,I=P,M=void 0===T?void 0:T,L=(0,r.ensureNotNull)(this._plotIndex),A=(0,q.createEmptyStyle)();for(;h.hasNext();){const e=h.next(),t=e.index,i=e.value,s=Math.floor(t+o),r=i[L+1];if(null==r)continue;const n=this._createItem(s,r,f,v);if(null!==n){if(this._colorProvider.isColorDefined()){n.style={color:x,borderColor:I,textColor:M};const e=this._colorProvider.getPlotPointStyle(i,A);this._fillItemWithPointStyle(n,e,d)}_&&-1!==u.indexOf(t)&&null!==this._selectionData&&(this._selectionData.points.push(n),this._selectionData.bgColors.push(this._model.backgroundColorAtYPercentFromTop(n.y/w))),this._items.push(n)}}this._convertItemsToCoordinates()}_fillItemWithPointStyle(e,t,i){const s=(0,r.ensureDefined)(e.style);if(void 0!==t.colors[0]){s.color=(0,k.generateColor)((0,r.ensureDefined)(t.colors[0]),i);const e=i>9?i-10:0;s.borderColor=(0,k.generateColor)(s.color,e)}void 0!==t.colors[2]&&(s.textColor=(0,k.generateColor)((0,r.ensureDefined)(t.colors[2]),i))}_updateRenderer(e){this._updateImpl() +;const t=this._model.timeScale(),i={},s=this._getTranspValue(),r=t.barSpacing(),n=this._calculateShapeHeight(r),o=this._study.properties().styles[this._plotName].location.value(),a=this._calculateVerticalOffset(o,n+n/2);i.barSpacing=r,i.items=this._items,i.color=(0,k.generateColor)(this._study.properties().styles[this._plotName].color.value(),s),i.height=n,i.vertOffset=a;const l=this._study.properties().styles[this._plotName].plottype.value(),c=H.plotShapesData[l],h=new D.CompositeRenderer;c&&h.append(this._createRenderer(c.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=a,h.append(new W.SelectionRenderer(this._selectionData))),this._renderer=h}_createRenderer(e,t){const i=he.get(e);return new((0,r.ensureDefined)(i))(t)}_getSeriesVal(e,t){const i=(0,G.barFunction)(e),s=this._series.data().valueAt(t);return null===s?null:i(s)}_getTranspValue(){let e=0;this._study.properties().transparency&&(e=this._study.properties().transparency.value(),e=(0,I.isNumber)(e)?e:50);const t=this._study.properties().styles[this._plotName];return t.transparency&&(e=t.transparency.value(),e=(0,I.isNumber)(e)?e:50),(0,z.clamp)(e,0,100)}_createItem(e,t,i,s){const n=this._study.properties().styles[this._plotName].location.value();if((null===t||0===t)&&n!==f.MarkLocation.Absolute)return null;let o;switch(n){case f.MarkLocation.AboveBar:const a=this._getSeriesVal(i,e);if(null===a)return null;o=a;break;case f.MarkLocation.BelowBar:const l=this._getSeriesVal(s,e);if(null===l)return null;o=l;break;case f.MarkLocation.Top:o=this._topCoord;break;case f.MarkLocation.Bottom:o=this._bottomCoord;break;case f.MarkLocation.Absolute:o=(0,r.ensureNotNull)(t);break;default:throw new Error("Bad value: "+n)}return new E.Point(e,o)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=this._study.priceScale();e.timedValuesToCoordinates(this._items);const i=(0,r.ensureNotNull)(this._study.firstValue());(0,r.ensureNotNull)(t).pointsArrayToCoordinates(this._items,i)}_calculateVerticalOffset(e,t){let i=0;switch(e){case f.MarkLocation.AboveBar:case f.MarkLocation.Bottom:i=-t;break;case f.MarkLocation.BelowBar:case f.MarkLocation.Top:i=t}return(0,r.ensureNotNull)(this._study.priceScale()).isInverted()&&(i*=-1),i}_calculateShapeHeight(e,t){let i=e;switch(t){case L.PlotSymbolSize.Tiny:i=.3*e;break;case L.PlotSymbolSize.Small:i=.6*e;break;case L.PlotSymbolSize.Normal:i=e;break;case L.PlotSymbolSize.Large:i=1.5*e;break;case L.PlotSymbolSize.Huge:i=2*e}return i}}class ue extends de{renderer(){const e=this._study.properties().styles[this._plotName];return e.visible&&e.visible.value()&&this._scalesReady()?(this._invalidated&&(this._updateRenderer(e),this._invalidated=!1),this._renderer):null}_updateRenderer(e){this._updateImpl();const t=this._model.timeScale(),i={},s=this._getTranspValue(),r=t.barSpacing();let n;if(e.size){const t=e.size.value();n=this._calculateShapeHeight(25,t)}else n=Math.round(r/2);n=Math.max(n,1);const o=e.location.value(),a=(0, +k.generateColor)(e.color.value(),s),l=s>19?s-10:0,c=this._calculateVerticalOffset(o,Math.round(1.5*n));i.barSpacing=r,i.items=this.items(),i.color=a,i.borderColor=(0,k.generateColor)(e.color.value(),l),i.height=n,i.vertOffset=c;const h=e.plottype.value(),d=H.plotShapesData[h],u=new D.CompositeRenderer,p=e.text?e.text.value():void 0;if(void 0!==p&&""!==p.trim()){let t=p.trim().replace(/\\n/gm,"\n");t=(0,F.cleanButAmpersand)(t,!0),i.text=t,i.fontSize=12;const r=e.textColor?e.textColor.value():void 0;i.textColor=r?(0,k.generateColor)(r,s):a}u.append(super._createRenderer(d.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=c,u.append(new W.SelectionRenderer(this._selectionData))),this._renderer=u}}var pe=i(87795),_e=i.n(pe),me=i(49094);class ge extends te{constructor(e,t){super(null,t),this._fontSizeEnsured=0,this._ch="",this._fontFamily=ee.CHART_FONT_FAMILY,this._charCache=null,null!==e&&this.setData(e)}setData(e){super.setData(e),this._fontSizeEnsured=(0,r.ensureDefined)(this._height);const t=e.char.slice(0,40);this._ch=_e()(t)[0]||" ",this._fontFamily=e.fontFamily||ee.CHART_FONT_FAMILY}hitTest(e){const t=(0,me.interactionTolerance)().series+this._fontSizeEnsured/2;for(const i of this._items){if(new E.Point(i.x,i.y+i.vertOffset).subtract(e).length()<=t)return new U.HitTestResult(U.HitTestResult.REGULAR)}return null}_drawItemShape(e,t,i){const s=i.x,r=i.vertOffset>0?1:-1,n=i.y+i.vertOffset-r*Math.round(this._fontSizeEnsured/2);let o;o=i.style&&void 0!==i.style.color?i.style.color:this._color;const a=this._textImageCache(),l=t.pixelRatio;if(this._fontSizeEnsured<=4/l){e.save();const t=Math.max(1,Math.floor(l));let r=Math.max(1,Math.floor(a.textImageWidth*l));r%2!=t%2&&(r+=r>1?-1:1);const c=Math.round(n*l)+(i.vertOffset>=0?0:-r);return e.fillStyle=o,e.fillRect(Math.round(s*l)+(l%2?.5:0)-r/2,c,r,r),void e.restore()}a.paintTo(e,t,o,s,n,R.Center,i.vertOffset>0?O.Top:O.Bottom)}_startPath(e,t,i,s){}_endPath(e){}_textImageCache(){return null!==this._charCache&&this._charCache.fontFamily===this._fontFamily&&this._charCache.fontSize===this._fontSizeEnsured||(this._charCache={fontSize:this._fontSizeEnsured,fontFamily:this._fontFamily,cache:new J(this._ch,!1,!1,this._fontFamily,this._fontSizeEnsured,"center",0)}),this._charCache.cache}}class fe extends de{constructor(){super(...arguments),this._compositeRenderer=new D.CompositeRenderer,this._charRenderer=new ge(null)}renderer(){const e=this._study.properties().styles[this._plotName];return e.visible&&e.visible.value()&&this._scalesReady()?(this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._compositeRenderer):null}_updateImpl(){if(this._compositeRenderer.clear(),super._updateImpl(),0===this._items.length)return;const e=this._getTranspValue(),t=this._model.timeScale().barSpacing();let i;const s=this._study.properties().styles[this._plotName];if(s.size){const e=s.size.value();i=this._calculateShapeHeight(50,e)}else i=Math.round(t);const r=s.location.value(),n=(0, +k.generateColor)(s.color.value(),e),o=this._calculateVerticalOffset(r,i),a={items:this.items(),barSpacing:t,char:s.char.value(),height:i,vertOffset:o,color:n},l=s.text?s.text.value():void 0;if(void 0!==l&&""!==l.trim()){let t=l.trim().replace(/\\n/gm,"\n");t=(0,F.cleanButAmpersand)(t,!0),a.text=t,a.fontSize=12;const i=s.textColor?s.textColor.value():void 0;a.textColor=i?(0,k.generateColor)(i,e):n}this._charRenderer.setData(a),this._compositeRenderer.append(this._charRenderer),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=o,this._compositeRenderer.append(new W.SelectionRenderer(this._selectionData)))}}var ve=i(24377);class Se extends E.Point{constructor(e,t,i,s){super(e,t),this.height=i,this.isUp=s,this.style={}}}function ye(e){return Math.round(e/4)}function be(e){return Math.round(e/2)}class we{constructor(e){this._data=e}draw(e,t){var i;const s=t.pixelRatio,r=this._data,n=be(r.barSpacing),o=ye(r.barSpacing),a=n<4,l=Math.max(n/2,1),c=(0,z.ceiledEven)(n*s),h=c/2,d=Math.round(n*s);e.lineCap="butt",e.lineWidth=Math.max(1,Math.floor(s));const u=e.lineWidth%2?.5:0;for(const t of r.items){const n=t.isUp?-1:1,p=Math.round(Math.abs(t.height)*s),_=Math.round(t.x*s)+u,m=Math.round((t.y-n*o)*s)+u;e.beginPath(),e.translate(_,m);const g=null!==(i=t.style&&t.style.color)&&void 0!==i?i:t.isUp?r.colorup:r.colordown;a?(e.moveTo(0,0),e.lineTo(-h,-h*n),e.moveTo(0,0),e.lineTo(h,-h*n),e.moveTo(0,0),e.lineTo(0,-p*n),e.moveTo(-h,-p*n),e.lineTo(h,-p*n),e.lineWidth=l,e.strokeStyle=g,e.stroke()):(e.moveTo(0,0),pthis._maxAbsValue&&(this._maxAbsValue=Math.abs(t));const r=t>0;let n;if(r){const t=this._getSeriesVal(s,e);if(null===t)return null;n=t}else{const t=this._getSeriesVal(i,e);if(null===t)return null;n=t}return new Se(e,n,t,r)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=(0,r.ensureNotNull)(this._study.priceScale());e.timedValuesToCoordinates(this._items),t.pointsArrayToCoordinates(this._items,(0,r.ensureNotNull)(this._study.firstValue()));let i=Math.abs(this._study.properties().styles[this._plotName].minHeight.value()),s=Math.abs(this._study.properties().styles[this._plotName].maxHeight.value());if(i>s){const e=i;i=s,s=e}const n=(s-i)/this._maxAbsValue,o=this._items;for(let e=0;es)return;i=Math.max(n,i);const o=this._study.data(),a=this._study.firstValue();if(null===a)return;const l=o.rangeIterator(i,s),c=this._study.properties().ohlcPlots[this._plotName],h=new Map,d=(e,t)=>{const i=e+"@"+t;if(!h.has(i)){const s=(0,k.generateColor)(e,t);return h.set(i,s),s}return h.get(i)},u=(0,q.createEmptyStyle)();for(;l.hasNext();){const e=l.next();let t=e.index;const i=e.value;t=Math.floor(t);let s=!0;const n=new Map;for(let e=1;e<=4;++e){const t=this._ohlcPlotIndexes.get(e);if(void 0===t){s=!1;break}const r=i[t+1];if(null==r){s=!1;break}n.set(e,r)}if(!s)continue;const o=(0,r.ensureDefined)(n.get(1)),a=(0,r.ensureDefined)(n.get(4)),h=(0,r.ensureDefined)(n.get(2)),p=(0,r.ensureDefined)(n.get(3)),_=Math.max(o,h,p,a),m=Math.min(o,h,p,a);let g=(0,r.ensureDefined)(d(c.color.value(),0));const f=this._colorProvider.getPlotPointStyle(i,u);void 0!==f.colors[0]&&(g=(0,r.ensureDefined)(f.colors[0]));const v={time:Math.round(t),exactTime:t,open:o,high:_,low:m,close:a,color:g,wickColor:f.colors[4],borderColor:f.colors[3],hollow:null};this._bars.push(v)}if(e.barPricesToCoordinates(this._bars,a),this._model.timeScale().barIndexesToCoordinates(this._bars),this._model.selection().isSelected(this._study)){const t=this._selectionIndexer.indexes();this._selectionData={points:[],hittestResult:U.HitTestResult.REGULAR,bgColors:[],visible:!0,barSpacing:this._model.timeScale().barSpacing()};const i=(0,r.ensureNotNull)(this._model.paneForSource(this._study)).height(),s=(0,r.ensureDefined)(this._ohlcPlotIndexes.get(4));for(let r=0;rthis._actualLength?this._items[this._actualLength]:null;return null!==e&&Boolean(e.invalidateCache)&&e.invalidateCache(),e}invalidateCache(){this._invalidations+=1,3e3===this._invalidations&&(this._items.splice(this._actualLength),this._invalidations=0),this._actualLength=0}at(e){return this._items[e]}data(){return this._items}length(){return this._actualLength}}class Re{constructor(){this._map=new Map,this._usedKeys=new Set,this._invalidations=0}invalidateCache(){this._invalidations+=1,50===this._invalidations&&(this._deleteUnused(),this._invalidations=0),this._usedKeys.clear(),this._map.forEach((e,t)=>e.invalidateCache())}get(e){const t=this._map.get(e);return void 0!==t&&this._usedKeys.add(e),t}set(e,t){this._usedKeys.add(e),this._map.set(e,t)}forEach(e){this._map.forEach((t,i)=>{this._usedKeys.has(i)&&e(t,i)})}delete(e){const t=this._map.get(e);void 0!==t&&t.invalidateCache(),this._usedKeys.delete(e)}_deleteUnused(){const e=[];this._map.forEach((t,i)=>{this._usedKeys.has(i)||e.push(i)});for(const t of e)this._map.delete(t)}}class Oe extends Ne{constructor(){super(),this.points1=new Ne,this.points2=new Ne,this.push(this.points1),this.push(this.points2)}addPoints1Point(e,t){let i=this.points1.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points1.push(i)}addPoints2Point(e,t){let i=this.points2.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points2.push(i)}invalidateCache(){this.points1.invalidateCache(),this.points2.invalidateCache()}}class Fe extends Be.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e,t){return null}_drawImpl(e,t){if(null===this._data)return +;const i=.25*this._data.barSpacing,s=this._data.transparency;this._data.colorAreas.forEach((t,r)=>{e.beginPath();for(let s=0;s=0;t--)e.lineTo(r.points2.at(t).x,r.points2.at(t).y)}else{const t=r.points2.at(0).x,s=r.points2.at(0).y;e.lineTo(n+i,o),e.lineTo(t+i,s),e.lineTo(t-i,s),e.lineTo(n-i,o)}}e.closePath(),e.fillStyle=(0,k.generateColor)(r,s),e.fill()})}}var We=i(81688);class He extends Ne{constructor(){super(...arguments),this._startIndex=0}setStartIndex(e){this._startIndex=e}at(e){const t=e-this._startIndex;for(;t>=this._actualLength;){if(this._items.length<=t)this._items.push({plot1Value:void 0,plot2Value:void 0,colorIndex:void 0});else{const e=this._items[this._actualLength];e.plot1Value=void 0,e.plot2Value=void 0,e.colorIndex=void 0}this._actualLength+=1}return this._items[t]}}class ze{constructor(e,t,i=!1){this._isHlineFill=!1,this._bandAKey=null,this._bandBKey=null,this._colorPlotIndex=null,this._colorValues=[],this._colors=new Ne,this._areaRenderer=new Fe,this._invalidated=!0,this._plIndex1=null,this._plIndex2=null,this._level1=0,this._level2=0,this._studyValuesCache=new He,this._points1=new Ne,this._points2=new Ne,this._timePoints=new Ne,this._colorAreas=new Re,this._source=e,this._model=t,this._fillGaps=i}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._areaRenderer}_correctVisibleRange(e){const t=this._source.data(),i=t.search(e.firstBar(),p.PlotRowSearchMode.NearestLeft,this._plotIndex1()),s=t.search(e.firstBar(),p.PlotRowSearchMode.NearestLeft,this._plotIndex2()),r=t.search(e.lastBar(),p.PlotRowSearchMode.NearestRight,this._plotIndex1()),n=t.search(e.lastBar(),p.PlotRowSearchMode.NearestRight,this._plotIndex2()),o=null!==i?i.index:e.firstBar(),a=null!==s?s.index:e.firstBar(),l=null!==r?r.index:e.lastBar(),c=null!==n?n.index:e.lastBar();return[Math.min(o,a),Math.max(l,c)]}_plotNames(){return this._source.metaInfo().plots.map(e=>e.id)}_plotIndex1(){return null===this._plIndex1&&(this._plIndex1=this._plotNames().indexOf(this._plotAId())+1),this._plIndex1}_plotIndex2(){return null===this._plIndex2&&(this._plIndex2=this._plotNames().indexOf(this._plotBId())+1),this._plIndex2}_updateImpl(){var e,t,i;if(this._areaRenderer.setData(null),!this._visible())return;const s=this._source.priceScale(),n=this._model,o=n.timeScale();if(!s||s.isEmpty()||o.isEmpty())return;if(n.mainSeries().bars().isEmpty())return;const a=this._source.firstValue();if(null===a)return;if(this._isHlineFill){const e=this._source.properties().bands[(0,r.ensureNotNull)(this._bandAKey)],t=this._source.properties().bands[(0,r.ensureNotNull)(this._bandBKey)];this._level1=s.priceToCoordinate(e.value.value(),a),this._level2=s.priceToCoordinate(t.value.value(),a)} +const l=o.visibleBarsStrictRange();if(null===l)return;this._timePoints.invalidateCache(),this._points1.invalidateCache(),this._points2.invalidateCache(),null===(e=this._colors)||void 0===e||e.invalidateCache(),this._colorAreas.invalidateCache();const[c,h]=this._correctVisibleRange(l),d=this._isPerBarColoringSupported()?this._colors:null,u=this._source.offset(this._plotAId()),p=this._source.offset(this._plotBId()),_=Math.min(u,p),m=Math.max(u,p),g=this._plotIndex1(),f=this._plotIndex2(),v=this._source.data();if(v.isEmpty())return;let S,y;const b=(0,r.ensureNotNull)(v.firstIndex()),w=(0,r.ensureNotNull)(v.lastIndex()),C=b-Math.max(0,-_),P=w+Math.max(0,m),T=Math.max(c-1,C),x=Math.min(h+1,P),M=this._studyValuesCache;M.invalidateCache();const L=T-m,A=v.rangeIterator(L,x-_),E=Math.max(l.firstBar()-1,Math.min(L-m-1,L-1+_));M.setStartIndex(E);const k=new We.BarsRange(l.firstBar()-1,l.lastBar()+1);for(;A.hasNext();){const e=A.next(),t=e.index,i=e.value,s=i[g],n=i[f],o=t+u,a=t+p;if(o===a&&k.contains(o)){const e=M.at(o);e.plot1Value=s,e.plot2Value=n}else{if(k.contains(o)){M.at(o).plot1Value=s}if(k.contains(a)){M.at(a).plot2Value=n}}if(null!==d){const e=t-1+_;if(l.contains(e)){const t=i[(0,r.ensureNotNull)(this._colorPlotIndex)+1];M.at(e).colorIndex=t}}}const D=this._timePoints,V=this._points1,B=this._points2;let N=null;const R=E+M.length();for(let e=E;e<=R;e++){if(!this._fillGaps&&(null===S||null===y)){const t=e-1;D.push(t),V.push(NaN),B.push(NaN),null==d||d.push(null)}const s=M.at(e);if(null!==d){const e=s.colorIndex;N=null==e?null:this._getColorByPlotValue(e)}if(this._isHlineFill){D.push(e),null!==d&&d.push(N);continue}const r=null!==(t=s.plot1Value)&&void 0!==t?t:null,n=null!==(i=s.plot2Value)&&void 0!==i?i:null;(null!==r||null!==n||Number.isFinite(S)||Number.isFinite(y))&&(S=r,y=n,V.push(r),B.push(n),D.push(e),null!==d&&d.push(N))}s.pricesArrayToCoordinates(V.data(),a,V.length()),s.pricesArrayToCoordinates(B.data(),a,B.length()),o.indexesToCoordinates(D.data(),D.length());const O=this._transparency();let F=(0,I.isNumber)(O)?O:50;F=Math.min(F,100),F=Math.max(F,0);const W={barSpacing:this._model.timeScale().barSpacing(),transparency:F,colorAreas:this._getFilledAreas(D,V,B,d)};this._areaRenderer.setData(W)}_getFilledAreas(e,t,i,s){const r=this._isHlineFill;if(!r&&(0===t.length()||0===i.length()))return new Re;const n=this._colorAreas;let o=null,a=null;const l=this._color();for(let c=0;c{null===this._bandAKey&&i.id===e&&(this._bandAKey=s),null===this._bandBKey&&i.id===t&&(this._bandBKey=s)})}}var Xe=i(13933),Ze=i(36759),Je=i(23653),Qe=i(33291),et=i(52714),tt=i.n(et),it=i(37667),st=i(8175),rt=i(97098),nt=i(67802),ot=i(26811),at=i(69147);const lt=(0,o.getLogger)("Chart.Study"),ct=(0,n.t)("Invalid Symbol");const ht={symbolsForDisplay:!1,symbolsForChartApi:!0,skipHiddenInputs:!1,skipFakeInputs:!1,skipBooleanInputs:A.enabled("dont_show_boolean_study_arguments"),asObject:!0,skippedGroups:[],skippedInputs:[],noExchanges:!1,noResolution:!1,keepOptionalSymbolsEmpty:!1,skipColorInputs:!1,skipTimeInputs:!1,skipOptionalEmptySymbolInputs:!1,skipTextareaInputs:!0,priceInputsForDisplay:!1},dt=A.enabled("study_symbol_ticker_description"),ut=A.enabled("hide_main_series_symbol_from_indicator_legend");function pt(e,t){const i=e.plots[t];if(!i||!(0,L.isOhlcPlot)(i))return!1 +;const s=i.target,r=e.defaults.styles&&e.defaults.styles[s],n=e.defaults.ohlcPlots&&e.defaults.ohlcPlots[s],o=e.ohlcPlots&&e.ohlcPlots[s];return r&&(0,L.isOhlcPlotStyleBars)(r)||n&&(0,L.isOhlcPlotStyleBars)(n)||!!o&&(0,L.isOhlcPlotStyleBars)(o)}function _t(e,t){const i=e.plots[t];if(!i||!(0,L.isOhlcPlot)(i))return!1;const s=i.target,r=e.defaults.styles&&e.defaults.styles[s],n=e.defaults.ohlcPlots&&e.defaults.ohlcPlots[s],o=e.ohlcPlots&&e.ohlcPlots[s];return r&&(0,L.isOhlcPlotStyleCandles)(r)||n&&(0,L.isOhlcPlotStyleCandles)(n)||!!o&&(0,L.isOhlcPlotStyleCandles)(o)}function mt(e,t){(0,r.assert)(void 0!==e,"zOrder must be defined"),(0,r.assert)(!t.has(e),"zOrder must be unique")}class gt extends d.PriceDataSource{constructor(e,t,i,s){super(e),this.onStart=new(c()),this._onHibernationStateChange=new(c()),this._symbolsResolved=new(c()),this._statusChanged=new(c()),this._paneViews=[],this._legendView=null,this._priceAxisViews=[],this._inputsAnchorsPaneView=null,this._inputsLinesPaneView=null,this._inputsTimeAxisPaneViews=[],this._inputsPriceAxisPaneViews=[],this._resolvedSymbols={},this._resolvedSymbolsByInput={},this._source=null,this._isChildStudy=!1,this._status={type:Xe.StudyStatusType.Undefined},this._wasCompletedBefore=!1,this._studyId=null,this._isSubscribedToSessionId=!1,this._titleStrCache={},this._titleInPartsCache={},this._children=[],this._numericFormatter=new M.NumericFormatter,this._priceAxisViewsBase=[],this._priceLinesAxisViews=[],this._labelPaneViews=[],this._ownFirstValue=null,this._plotOffsets={},this._formatter=null,this._ongoingDataUpdate=Promise.resolve(),this._studyModified=!1,this._isDestroyed=!1,this._graphics=new g.LiveStudyGraphics,this._tagsChanged=new(c()),this._currencySourceSymbolInputProperty=null,this._pendingResolveSymbols=new Map,this._onIsActualIntervalChange=new(c()),this._lastNonEmptyPlotRowCache={},this._startMovingPoint=null,this._processHibernateBound=this.processHibernate.bind(this,1),this._maxOffset=new(tt())(0),this._currencySourceSymbolInfo=null,this._chartApi=e.chartApi(),this._properties=t,this._metaInfo=s,this._series=this._model.mainSeries(),this._series.onIntervalChanged().subscribe(this,this._calcIsActualInterval),this._showStudyArgumentsProperty=e.properties().childs().paneProperties.childs().legendProperties.childs().showStudyArguments,e.collapsed().subscribe(this._processHibernateBound),i instanceof gt&&(this._source=i,this._isChildStudy=!0,this._source.setChild(this));const r=this.parentSource();r.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),r.unitChanged().subscribe(this,this._onSourceUnitChanged),r.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),r.formatterChanged().subscribe(this,this._onSourceFormatterChanged),r.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),dt&&this._model.mainSeries().properties().childs().statusViewStyle.childs().symbolTextSource.listeners().subscribe(this,()=>{this.invalidateTitleCache(!0)}),this._properties.subscribe(this,this._onPropertiesChanged), +this._properties.visible.subscribe(this,this._visibleChanged),this._properties.visible.subscribe(this,this.processHibernate),this._properties.intervalsVisibilities.subscribe(this,this._calcIsActualInterval),this._properties.inputs.listeners().subscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offsets&&this._properties.offsets.listeners().subscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offset&&this._properties.offset.listeners().subscribe(this,this._updateMaxOffsetValue),this._initializeCurrencySource(),b.hideAllIndicators().subscribe(this,this._visibleChanged);for(let e=0;e=0?e:0}}return this._isChildStudy&&m().patchChildStudyMetaInfoState(l),l}restoreData(e){var t,i;this._invalidateLastNonEmptyPlotRowCache(),this.data().restoreState(e),this._resolvedSymbols=null!==(t=e.symbols)&&void 0!==t?t:{},this._graphics=e.graphics?(0,g.loadStudyGraphics)(e.graphics):(0,g.emptyStudyGraphics)(),this._postProcessGraphics(),this._plotOffsets=null!==(i=e.plotOffsets)&&void 0!==i?i:{},this._setStatus({type:Xe.StudyStatusType.Completed},!0)}hasStateForAlert(){return!1}stateForAlert(){throw new Error("Not implemented")}hasBarColorer(){return(0,r.ensureNotNull)(this._metaInfo).plots.some(L.isBarColorerPlot)}disconnect(){this._studyId=null,this._model.isSnapshot()||(this._resolvedSymbols={},this._resolvedSymbolsByInput={})}isChildStudy(){return this._isChildStudy}hasChildren(){return this._children.length>0}isActualInterval(){return this._isActualInterval}onIsActualIntervalChange(){return this._onIsActualIntervalChange}isVisible(){if(this._model.collapsed().value()||!this.properties().visible.value()||!this.isActualInterval())return!1;const e=this.metaInfo();if(e.plots.length>0)return!0;for(const t of Object.keys(e.graphics))for(const i of Object.keys(e.graphics[t])){const e=this.properties().graphics[t][i];if(!e.visible||e.visible.value())return!0}return!(!e.isTVScriptStrategy&&!e.hasAlertFunction)}inputs(e){const t=(0,I.merge)((0,I.clone)(ht),e||{});return t.skipOptionalEmptySymbolInputs&&(t.keepOptionalSymbolsEmpty=!0),this._buildInputs(t)}metaInfo(){return this._metaInfo}status(){return this._status}name(e){return e?this.metaInfo().shortDescription||this._properties.shortDescription&&this._properties.shortDescription.value()||"Study":this.metaInfo().description||this._properties.description&&this._properties.description.value()||"Study"}title(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleStrCache[r])return this._titleStrCache[r] +;if(this._titleInPartsCache[r])return this._joinTitlesParts(this._titleInPartsCache[r]);const n=this._title(e,t,i,s);return this._titleStrCache[r]=n,n}titleInParts(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleInPartsCache[r])return this._titleInPartsCache[r];const n=this._titleInParts(e,t,i,s);return this._titleInPartsCache[r]=n,n}invalidateTitleCache(e){if(this._titleStrCache={},this._titleInPartsCache={},!0===e&&this._children)for(let t=0;tt.update(e)),this._labelPaneViews.forEach(t=>t.update(e)),null===(t=this._dataWindowView)||void 0===t||t.update(),null===(i=this._legendView)||void 0===i||i.update(),null===(s=this._statusView)||void 0===s||s.update(),this._priceAxisViews.forEach(t=>t.update(e)),this._priceLinesAxisViews.forEach(t=>t.update(e)),null===(r=this._inputsLinesPaneView)||void 0===r||r.update(e),null===(n=this._inputsAnchorsPaneView)||void 0===n||n.update(e), +this._inputsTimeAxisPaneViews.forEach(t=>t.update(e)),this._inputsPriceAxisPaneViews.forEach(t=>t.update(e))}isPine(){return void 0!==this._metaInfo.pine}isStandardPine(){return this.isPine()&&m().isStandardPine(this._metaInfo.id)}isLinkedToSeries(){return!0===this._metaInfo.linkedToSeries}defaultPlotIdForAlert(){return this._metaInfo.plots.length?this._metaInfo.plots[0].id:null}resolvedSymbolInfoBySymbol(e){return this._resolvedSymbols&&e&&this._resolvedSymbols[this._getSymbolForResolve(e)]||null}currency(){if(null!==this._currencySourceSymbolInfo)return(0,it.symbolCurrency)(this._currencySourceSymbolInfo);const e=this.metaInfo();return Boolean(e)&&e.is_price_study?this.parentSource().currency():null}currencySourceSymbolInfo(){var e,t,i;return null!==(e=this._currencySourceSymbolInfo)&&void 0!==e?e:null!==(i=null===(t=this.symbolSource())||void 0===t?void 0:t.symbolInfo())&&void 0!==i?i:null}unit(){const e=this.metaInfo();return Boolean(e)&&e.is_price_study?this.parentSource().unit():null}dataWindowView(){return this._dataWindowView}statusView(){return this._statusView}legendView(){return this._legendView}inputsForAlertState(){return this.inputs()}sessionId(){return this.parentSource().sessionId()}sessionIdChanged(){return this.parentSource().sessionIdChanged()}getSymbolString(e){return""===e?"":(0,C.encodeExtendedSymbolOrGetSimpleSymbolString)(this._getSymbolObject(e))}onStatusChanged(){return this._statusChanged}symbolsResolved(){return this._symbolsResolved}onHibernationStateChange(){return this._onHibernationStateChange}valuesProvider(){return new S.StudyLegendValuesProvider(this,this.model())}statusProvider(e){return new x.StudyStatusProvider(this,this._model.properties().childs().scalesProperties.childs().textColor)}correctScaleMargins(e){if("Volume"===this.metaInfo().shortId){const t=this.model().paneForSource(this);return null!==t&&t.isOverlay(this)&&t.containsMainSeries()?{top:.75,bottom:0}:{top:e.top,bottom:0}}return e}canBeHiddenByGlobalFlag(){return!0}isSourceHidden(){return!this.isVisible()||this.canBeHiddenByGlobalFlag()&&b.hideAllIndicators().value()}paneViews(e){if(this.isSourceHidden()||!e.hasPriceDataSource(this))return null;const t=[];return!this._startMovingPoint&&this._wasCompletedBefore&&t.push(...this._paneViews),this._inputsLinesPaneView&&(this._startMovingPoint||this._model.selection().isSelected(this))&&t.push(this._inputsLinesPaneView),this._inputsAnchorsPaneView&&t.push(this._inputsAnchorsPaneView),t}timeAxisViews(){return this._model.selection().isSelected(this)?this._inputsTimeAxisPaneViews:null}priceAxisViews(e,t){if(this.properties().oldShowLastValue&&!this.properties().oldShowLastValue.value())return null;let i=this._priceAxisViews.slice();return this._model.selection().isSelected(this)&&(i=i.concat(this._inputsPriceAxisPaneViews)),e.findTargetPriceAxisViews(this,t,i,this._priceLinesAxisViews)}movable(){return null!==this._inputsAnchorsPaneView}startMoving(e,t,i,s){this._startMovingPoint=e,this.stop()}move(e,t,i,s){if(void 0!==e.logical&&null!==this._startMovingPoint){ +if(Array.isArray(t)){const i=t;this._updateInputValue(e.logical,i[0]),this._updateInputValue(e.logical,i[1])}else this._updateInputValue(e.logical,t);this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id()))}}endMoving(e,t){return this._startMovingPoint=null,this.start(),{indexesChanged:!1,pricesChanged:!1}}clearData(){var e;this._invalidateLastNonEmptyPlotRowCache(),this.data().clear(),this._graphics instanceof g.LiveStudyGraphics&&(null===(e=this._graphics)||void 0===e||e.clear()),this._plotOffsets={},this.hasBarColorer()&&this._model.mainSeries().invalidateBarStylesCache(),this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id(),void 0,!0))}convertYCoordinateToPriceForMoving(e,t){const i=this.priceScale();if(!t||!i||i.isEmpty())return null;const s=t.firstValue();return null===s?null:i.coordinateToPrice(e,s)}processHibernate(e){const t=this.isVisible();if(!this.isStarted()&&t&&(this._isChildStudy&&(0,r.ensureNotNull)(this._source).processHibernate(),this.start(void 0,void 0,e),this._onHibernationStateChange.fire(!1)),this.isHibernationAllowed()&&this.isStarted()&&!t){for(const e of this._children)e.processHibernate();this.stop(void 0,e),this._onHibernationStateChange.fire(!0)}}isHibernationAllowed(){return!this.metaInfo().historyCalculationMayChange&&(!this.hasChildren()||!!this._model.collapsed().value()&&this._children.every(e=>e.isHibernationAllowed()))}recalculate(){const e=this._model.paneForSource(this);this._model.recalculatePane(e,(0,Qe.dataSourceChangeEvent)(this.id())),this._model.updateSource(this)}maxOffset(){return this._maxOffset}_transformData(e){}_updateMaxOffsetValue(){let e=-1/0;for(const t of this._metaInfo.plots)e=Math.max(this.offset(t.id),e);this._maxOffset.setValue(e)}_rightOffsetToUnixTime(e){if(this._series.bars().size()>=e){const t=(0,r.ensureNotNull)(this._series.bars().lastIndex())-e;return(0,r.ensureNotNull)(this._series.bars().valueAt(t))[0]}return null}_invalidateLastNonEmptyPlotRowCache(){this._lastNonEmptyPlotRowCache={}}_collectDepsForAlert(){throw new Error("Not implemented")}isHibernated(){return!this.isVisible()&&!this.isStarted()}_createViews(){var e,t;this._priceAxisViewsBase=[],this._priceLinesAxisViews=[],this._paneViews=[],this._labelPaneViews=[];const i=new Set,s=this.metaInfo(),n=Boolean(s.usePlotsZOrder),o=new Map;if(s.plots)for(let t=0;t{const i=this._properties.bands[t];if(i&&i.visible.value()){const t=new qe(i,this),s=n?(0,r.ensureDefined)(e.zorder):o.size;mt(s,o),o.set(s,{paneViews:[t]})}}),this._properties.bandsBackground&&((0,r.assert)(!n,"'usePlotsZOrder' flag does not supported"),o.set(o.size,{paneViews:[new Ke(this)]}));const a=this._paneViews;(0,g.createGraphicsPaneViews)(this,this.model()).then(e=>{for(let t=0;ts.plots.some(t=>(0,L.isColorerPlot)(t)&&t.target===e);if(this._properties.filledAreas&&s.filledAreas)for(let e=0;ee-t);for(let e=0;e0){const t=this.barColorer().firstColoredBar(e[0].index);this._model.mainSeries().invalidateBarStylesCache(t)}null!==t&&this._postProcessGraphics();const r=this._model.paneForSource(this);this._model.recalculatePane(r,(0,Qe.dataSourceChangeEvent)(this.id(),null!=s?s:void 0)),this._updateSources()}_updateSources(){this._model.updateSource(this),this.hasBarColorer()&&this._model.updateSource(this._model.mainSeries())}_titleInputs(e,t){return this.inputs(this._titleInputsOptions(e,t))}_titleInputsOptions(e,t){return{symbolsForDisplay:!0,skipHiddenInputs:!0,skipFakeInputs:!1,fakeInputsForDisplay:!0,asObject:!1,skippedGroups:[],noExchanges:e,noResolution:t,skipColorInputs:!0,skipTimeInputs:!0,priceInputsForDisplay:!0,skipOptionalEmptySymbolInputs:ut}}_subscribeToSessionId(){!this._isSubscribedToSessionId&&this.hasSymbolInputs()&&(this.sessionIdChanged().subscribe(this,this._onSessionIdChanged),this._isSubscribedToSessionId=!0)}_unsubscribeToSessionId(){this._isSubscribedToSessionId&&(this.sessionIdChanged().unsubscribe(this,this._onSessionIdChanged),this._isSubscribedToSessionId=!1)}_onSessionIdChanged(){this.restart(!0)}_title(e,t,i,s){const r=this._titleInParts(e,t,i,s);return this._joinTitlesParts(r)}_formatterByMetaInfo(){var e,t;const i=this.metaInfo().format;if("inherit"===i.type)return null;const s=this.series().symbolInfo(),r=(0,I.isNumber)(i.precision)?Math.pow(10,i.precision):void 0;{const s=null!==(t=null===(e=null===at.customFormatters||void 0===at.customFormatters?void 0:at.customFormatters.studyFormatterFactory)||void 0===e?void 0:e.call(at.customFormatters,i,this.symbolSource().symbolInfo()))&&void 0!==t?t:null;if(null!==s)return s}switch(i.type){case"price":return new rt.PriceFormatter(r);case"volume":{let e=i.precision;return void 0===e&&(e=s&&(0,I.isNumber)(s.volume_precision)?s.volume_precision:0),new nt.VolumeFormatter(e)}case"percent":return new ot.PercentageFormatter(r);default:return lt.logWarn("Unsupported format type: "+i.type),null}}_postProcessPriceRange(e){if(e&&e.minValue()===e.maxValue()&&!this.metaInfo().is_price_study){const t=.005*e.minValue();e=new u.PriceRange(e.minValue()-t,e.maxValue()+t)}const t=this.priceScale() +;return t&&t.isLog()&&e?new u.PriceRange(t.priceToLogical(e.minValue()),t.priceToLogical(e.maxValue())):e}_joinTitlesParts(e){const t=e[1]?e[1].join(", "):"";return e[0]+(t.length>0?" ("+t+")":"")}_titleInParts(e,t,i,s){var r;const o=this.name(e);t=t||{};const a=[(0,n.t)(o,{context:"study"})];let l=[];if(!i){const i=this._getMTFResolutionInputTitle();null!==i&&i.length>0&&a.push(i);const n=this.metaInfo(),o=this._titleInputs(s,!0)||[];if(o.length>0){const i={};if(this._isChildStudy)for(let t=0;t=0&&this._source){const t=this._source.metaInfo(),n=this._source.title(e,{},!0,s);if(1===t.plots.length)i[l]=n;else{const e=l.split("$")[1],s=null===(r=t.plots[parseInt(e)])||void 0===r?void 0:r.id,o=t.styles&&t.styles[s],a=o&&o.title||s;i[l]=n+": "+a}}break}l=o.map(e=>{let s=(0,I.isNumber)(e)?this._numericFormatter.format(e):i&&i[e.toString()]||e.toString();return t&&t[s.toString()]&&(s=t[s.toString()]),s})}}return[a.join(" · "),l]}_getMTFResolutionInputTitle(){const e=this.metaInfo();for(let t=0;t"line"===e.type)}_hasAlertConditions(){if(this.metaInfo().plots.some(L.isAlertConditionPlot))return!0;const e=this.stateForAlert();return Boolean(e.alerts&&e.alerts.conditions)}_hasAlertFunction(){const e=this.metaInfo();return Boolean(e.hasAlertFunction)}_onDataUpdate(e,t){this._studyModified&&(this.clearData(),this._studyModified=!1);const i=(0,h.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then(()=>i,()=>i).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_mergeData(e){var t,i;return this._invalidateLastNonEmptyPlotRowCache(),null!==(i=null===(t=this.data().merge(e))||void 0===t?void 0:t.index)&&void 0!==i?i:null}_getSymbolForResolve(e){return this.getSymbolString(this._getSymbolForApi(e))}_allSymbolsAreResolved(){const e=this.metaInfo(),t=[];let i=!1;for(let s=0;sthis._symbolsResolved.fire()):e}return Promise.all(t).catch(e=>(this._setStatus({type:Xe.StudyStatusType.Error,errorDescription:{error:ct}}),this.stop(!0),this._model.updateSource(this),Promise.reject("Invalid symbol, "+e))).then(()=>{null!==this._studyId&&this.stop(!0),this.start(!0),this._symbolsResolved.fire(),this._recheckLineToolsActuality()})}_getSymbolForApi(e){return e}_resolveSymbol(e,t){if(""===e)return Promise.resolve();let i=this._pendingResolveSymbols.get(e);return void 0!==i||(i=new Promise((i,s)=>{ +this._onSymbolResolvingStart(),this._chartApi.resolveSymbol((0,P.makeNextSymbolId)(),e,r=>{switch(this._pendingResolveSymbols.delete(e),r.method){case"symbol_resolved":this._setStatus({type:Xe.StudyStatusType.Undefined}),this._resolvedSymbols[e]=r.params[1],this._resolvedSymbolsByInput[t]=r.params[1],this._onSymbolResolved(e,t,r.params[1]),this.invalidateTitleCache(!0),i();break;case"symbol_error":if(this._setStatus({type:Xe.StudyStatusType.Error,errorDescription:{error:r.params[1]}}),this._onSymbolError(),r.params[1]===T.permissionDenied&&r.params[2])switch(r.params[2]){case T.SymbolErrorPermissionDeniedReason.Symbol:if(r.params[3])return void this._resolveSymbol(r.params[3],t).then(i);break;default:return void this._resolveSymbol(r.params[2],t).then(i)}0,s()}})}),this._pendingResolveSymbols.set(e,i)),i}_recheckLineToolsActuality(){const e=this._model.paneForSource(this);null!==e&&e.sourcesByGroup().lineSourcesForAllSymbols().forEach(e=>{e.ownerSource()===this&&e.calcIsActualSymbol()})}_getSymbolObject(e){const t={symbol:e},i=this.currency();return null!==this._currencySourceSymbolInputProperty&&null!==this._currencySourceSymbolInfo&&this._getSymbolForApi(this._currencySourceSymbolInputProperty.value())===e&&(t["currency-id"]=i),t.session=this.sessionId(),t}_onSymbolResolved(e,t,i){this._onCurrencyMayChange()}_onSymbolResolvingStart(){}_onSymbolError(){}_setStatus(e,t){var i;this._status=e,e.type===Xe.StudyStatusType.Completed?this._wasCompletedBefore=!0:e.type!==Xe.StudyStatusType.Error&&e.type!==Xe.StudyStatusType.Undefined||(this._wasCompletedBefore=!1),t||(null===(i=this._statusView)||void 0===i||i.update(),this._model.updateSource(this),this._statusChanged.fire(e))}_bandsFirstValue(e){const t=this._metaInfo;if(!t.bands)return null;for(let i=0;ivoid 0!==i[e],1e3),null===i?null:(this._lastNonEmptyPlotRowCache[e]=i,i)}_onCurrencyChanged(){"alwaysOff"!==(0,st.currencyUnitVisibilityProperty)().value()&&this._model.fullUpdate(),this.isStarted()&&this._tryChangeInputs(),this._currencyChanged.fire()}_tryChangeInputs(){const e=(0,r.ensureDefined)((0,I.clone)(this._inputs));this.isStarted()&&this._chartApi.isConnected().value()?this._allInputsAreValid()?this._allSymbolsAreResolved().then(()=>{const t=this.inputs({keepOptionalSymbolsEmpty:!0}),i=JSON.stringify(t)!==JSON.stringify(this._inputs);this._isStopped()?i&&this.disablePriceRangeReady():i&&(this._changeInputsImpl(t,e),this._inputs=t)}).catch(e=>{lt.logError("ERROR: "+this._debugId()+" _tryChangeInputs: cannot modify study, "+e)}):this.stop():(this.stop(!0),this.start(!0)),this._tagsChanged.fire()}_debugId(){const e=[];return this._studyId&&e.push(this._studyId),e.push(this._metaInfo.fullId),e.push(this._metaInfo.description),JSON.stringify({study:e})}_onCurrencyMayChange(){if(null!==this._currencySourceSymbolInputProperty){const e=this.currency();this._updateCurrencySourceSymbolInfo(),e!==this.currency()&&this._onCurrencyChanged()}}_isStopped(){return!this.isStarted()}_onDataUnpacked(e,t,i){if(this._isDestroyed)return;"nochange"!==t&&this._processPlotOffsets(i),this._transformData(e);const s=this._mergeData(e);null!==i&&(i.indexes_replace?((0,r.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._onDataUpdated(e,i,t,s),this.priceRangeReady()||this._enablePriceRangeReady()}_processPlotOffsets(e){if(e&&e.indexes_replace)return;const t=this._plotOffsets;this._plotOffsets=e&&e.offsets||{},(0,s.default)(t,this._plotOffsets)||this.updateAllViews((0,Qe.dataSourceChangeEvent)(this.id(),void 0,!0)),this._updateMaxOffsetValue()}_applyPlotToPrecalculatedAutoscaleInfo(e,t,i,s){const r=s.id,n=this.properties().styles[r],o=(0,L.isShapesPlot)(s)||(0,L.isCharsPlot)(s);i.useMainSeriesRange=i.useMainSeriesRange||(0,L.isArrowsPlot)(s);let a=(0,L.isLinePlot)(s)||(0,L.isOhlcPlot)(s);if(o){const e=n.location.value(),t=[f.MarkLocation.Absolute,f.MarkLocation.Top,f.MarkLocation.Bottom].indexOf(e)<0;i.useMainSeriesRange=i.useMainSeriesRange||o&&t,a=a||e===f.MarkLocation.Absolute}if(!a)return i;const l={name:r,offset:this.offset(r)},c=n.plottype.value();if(!this.properties().skipHistogramBaseOnAutoScale&&[L.LineStudyPlotStyle.Histogram,L.LineStudyPlotStyle.Columns,L.LineStudyPlotStyle.Area].indexOf(c)>=0){const s=n.histogramBase.value(),r=this.data().minMaxOnRangeCached(e,t,[l]);return(0,I.isNumber)(s)&&null!==r&&(i.baseValueMinMax=(0,p.mergeMinMax)(i.baseValueMinMax,{min:s,max:s}),i.baseValueMinMax=(0,p.mergeMinMax)(i.baseValueMinMax,r)),i} +return i.fields.push(l),i}_fillPrecalculatedAutoscaleInfo(e,t){return this._metaInfo.plots.filter(e=>!(0,L.isPlotWithTechnicalValues)(e)).filter(e=>{const t=e.id;let i;if((0,L.isOhlcPlot)(e)){const t=e.target;i=this.properties().ohlcPlots[t]}else i=this.properties().styles[t];return i.visible.value()}).reduce((i,s)=>this._applyPlotToPrecalculatedAutoscaleInfo(e,t,i,s),{fields:[],useMainSeriesRange:!1,baseValueMinMax:null})}_buildInputs(e){(0,r.assert)(!!e,"options not set");let t={};try{t=this._prepareInputs(e)}catch(e){lt.logWarn("Failed to prepare study inputs: "+e)}if(e.asObject){const e={};return Object.keys(t).forEach(i=>{null!=t[i]&&(e[i]=t[i])}),e}{const e=[];return Object.keys(t).forEach(i=>{null!=t[i]&&e.push(t[i])}),e}}_prepareInput(e,t){const i=this._prepareInputValue(e,t);return!e.isFake||t.fakeInputsForDisplay||t.onlyAtomValues?i:{v:i,f:!0,t:e.type}}_plotsForAlert(){return[]}_dependenciesForAlerts(){throw new Error("Not implemented")}_calcIsActualInterval(){const e=this._isActualInterval;this._isActualInterval=(0,Ze.isActualInterval)(this._series.intervalObj(),this.properties().intervalsVisibilities),e!==this._isActualInterval&&(this._onIsActualIntervalChange.fire(),this._visibleChanged(),this.processHibernate())}_visibleChanged(){this._series.invalidateBarColorerCache()}_getNonPriceParent(){const e=this.source();if(e instanceof gt){const t=e.metaInfo();return t.is_price_study&&"Compare@tv-basicstudies"!==t.id?e._getNonPriceParent():e}return null}_updateInputValue(e,t){const i=this._properties.inputs;if(i[t.id])if("price"===t.type)i[t.id].setValue(e.price);else if("time"===t.type){const s=this._model.timeScale().indexToTimePoint(e.index);null!==s&&i[t.id].setValue(1e3*s)}}_initializeStudyInputsPaneViews(){}_updateCurrencySourceSymbolInfo(){var e;null!==this._currencySourceSymbolInputProperty&&(this._currencySourceSymbolInfo=null!==(e=this._resolvedSymbolsByInput[this._currencySourceSymbolInputProperty.value()])&&void 0!==e?e:null)}_initializeCurrencySource(){var e,t;const i=this.metaInfo(),s="symbolInputSymbolSource"===(null===(e=i.symbolSource)||void 0===e?void 0:e.type)&&(null===(t=i.symbolSource)||void 0===t?void 0:t.inputId),r=i.inputs.find(e=>e.id===s),n="symbol"===(null==r?void 0:r.type);if("string"==typeof s&&n&&i.is_price_study){const e=this._properties.inputs[s];null!=e&&(e.subscribe(this,this._onCurrencyMayChange),this._currencySourceSymbolInputProperty=e)}}}},55153:(e,t,i)=>{"use strict";i.d(t,{StudyCompare:()=>N});var s=i(88537),r=i(8175),n=i(66101),o=i(37667),a=i(2015),l=i.n(a),c=i(67337),h=i(3825),d=i(97938),u=i(74477);const p=c.enabled("force_exchange_as_title");class _ extends d.PriceAxisView{constructor(e,t){super(),this._studyCompare=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._studyCompare.priceScale(),r=this._studyCompare.lastValueData(this._data.plotIndex,!1);if(r.noData||null===s||s.isEmpty())return;i.background=r.color,i.textColor=this.generateTextColor(r.color),i.coordinate=r.coordinate,i.floatCoordinate=r.floatCoordinate +;const n=this._studyCompare.model().properties().childs().scalesProperties.childs();n.showSeriesLastValue.value()&&(e.text=(0,u.getCurrentModePriceText)(s,r),n.seriesLastValueMode.value()!==h.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,u.getOppositeModePriceText)(s,r),e.visible=!0),t.text="",n.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._studyCompare.symbolInfo();return p?e=(0,o.displayedSymbolExchange)(t):this._studyCompare.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,o.displayedSymbolName)(t)),e}}i(28353);var m=i(26179),g=i(44601),f=i(85733),v=i(49483),S=i(80643),y=i(89027);class b extends y.StudyValuesProvider{constructor(e,t){super(e,t),this._emptyValues[0].title=e.guiPlotName("")}_hideValues(){return!1}}const w=v.CheckMobile.any();class C extends m.StudyDataWindowView{constructor(e,t){super(e,t),this._studyCompare=e}_hideValues(){return!1}_createValuesProvider(e,t){return new b(e,t)}_currentIndex(){const e=this._model.crossHairSource().lockedIndex;let t;return w&&(null===this._model.crossHairSource().pane&&void 0===e||(0,g.isLineToolName)(f.tool.value())||null!==this._model.lineBeingEdited())?t=this._study.data().lastIndex():(t=this._model.crossHairSource().appliedIndex(),(0,S.isNumber)(t)||(t=this._study.data().lastIndex())),t}}class P extends C{constructor(e,t){super(e,t),this._additional=null,this._showSeriesOHLC=t.properties().childs().paneProperties.childs().legendProperties.childs().showSeriesOHLC,this._showSeriesOHLC.subscribe(this,this.update)}areValuesVisible(){return this._showSeriesOHLC.value()}destroy(){this._showSeriesOHLC.unsubscribeAll(this)}additional(){return this._additional}_updateImpl(){super._updateImpl()}}var T=i(190),x=i(40529);class I extends x.StudyStatusProvider{getSplitTitle(){return this._source.titleInParts(!0,void 0,!1,!1)}text(){return this._source.isActualInterval()?this._source.isFailed()?`${this._source.title(!0,void 0,!1,!1)}: ${this.sourceStatusText()}`:`${this._source.title(!0,void 0,!1,!1)} ${this.sourceStatusText()}`:this._source.title(!0,void 0,!1,!1)}}var M=i(14791),L=i(52714),A=i.n(L);const E=c.enabled("study_overlay_compare_legend_option"),k=c.enabled("force_exchange_as_title"),D=c.enabled("uppercase_instrument_names"),V=!c.enabled("hide_study_compare_legend_item"),B=c.enabled("hide_unresolved_symbols_in_legend");class N extends n.Study{constructor(e,t,i,s){super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(l())(null)),e.hasChild("unitId")||e.addChild("unitId",new(l())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._isActingAsSymbolSource=new(A())(!0),this._realignToolsLastParams=null,this.properties().childs().minTick.subscribe(null,()=>this._recreatePriceFormattingDependencies()),this.properties().childs().minTick.subscribe(null,()=>this._model.fullUpdate()),this.properties().childs().currencyId.subscribe(this,this._onCurrencyChanged), +this.properties().childs().unitId.subscribe(this,this._onUnitChanged),this.properties().merge({skipHistogramBaseOnAutoScale:!0}),this._symbolResolvingActive=new(A())(!1),this._symbolHibernated=new(A())(!1),e.mainSeries().onIntervalChanged().subscribe(this,()=>e.realignLineTools(this))}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),super.destroy()}properties(){return super.properties()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}createPriceAxisView(e){return new _(this,{plotIndex:"compare"})}setSymbolParams(e){this._setSymbolCurrencyUnitInternal(e)}symbol(){return this._properties.inputs.symbol.value()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,M.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,o.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,o.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return 2}setStyle(e){}interval(){return this._model.mainSeries().interval()}setInterval(e){}symbolSource(){return this}state(e,t){const i=super.state(e,t);return this._model.unitConversionEnabled()||delete i.state.unitId,e&&((0,s.ensureDefined)(i.data).symbols={___snapshot:this.symbolInfo()||void 0}),i}symbolTitle(e,t){return this.title(!0,{},!1,e)}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[D?r.toUpperCase():r]}tags(){const e=this.symbol();return e?[e]:[]}statusView(){return V?super.statusView():null}guiPlotName(e){return this.properties().childs().inputs.childs().symbol.value()}canOverrideMinTick(){return!0}canBeHiddenByGlobalFlag(){return!1}valuesProvider(){return new b(this,this.model())}statusProvider(e){return new I(this,this._model.properties().childs().scalesProperties.childs().textColor)}_createViews(){this._legendView||(this._legendView=new P(this,this._model)),this._dataWindowView||(this._dataWindowView=new C(this,this._model)),this._statusView||(this._statusView=new T.StudyStatusView(this)),super._createViews()}_showLastValueOnPriceScale(){return this._model.properties().childs().scalesProperties.childs().showSeriesLastValue.value()}_onUnitChanged(){"alwaysOff"!==(0,r.currencyUnitVisibilityProperty)().value()&&this._model.fullUpdate(),this._model.unitConversionEnabled()&&this.isStarted()&&this._tryChangeInputs(),this._unitChanged.fire()}_getSymbolObject(e){ +const t=super._getSymbolObject(e),i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit();return this._model.unitConversionEnabled()&&null!==s&&(t["unit-id"]=s),t}_getSymbolForApi(e){return(0,o.symbolForApi)(this._resolvedSymbolsByInput[e]||null,e)}_onSymbolResolvingStart(){super._onSymbolResolvingStart(),this._symbolResolvingActive.setValue(!0)}_onSymbolError(){super._onSymbolError(),this._symbolResolvingActive.setValue(!1)}_onSymbolResolved(e,t,i){super._onSymbolResolved(e,t,i),this._recreatePriceFormattingDependencies();const s=t===this.symbol()?(0,o.extractSymbolNameFromSymbolInfo)(i,this.symbol()):null,r=(0,o.symbolCurrency)(i),n=(0,o.symbolUnit)(i,this._model.unitConversionEnabled());this._setSymbolCurrencyUnitInternal({symbol:null!=s?s:void 0,currency:r,unit:n},i),this._symbolResolvingActive.setValue(!1)}_changeInputsImpl(e,t){super._changeInputsImpl(e,t),this._realignLineToolsIfParamsChanged()}_createStudyOnServer(){super._createStudyOnServer(),this._realignLineToolsIfParamsChanged()}_tryCreateFormatter(){const e=this.symbolInfo();return(0,o.createSeriesFormatter)(e,this.properties().childs().minTick.value())}_titleInParts(e,t,i,s){const r=this.symbolInfo();let n;if(r){const e=(0,o.getStudySymbolExchange)(r);if(k&&e)n=e;else if(n=r.name,E)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":n=r.description;break;case"ticker-and-description":n=`${r.name}, ${r.description}`}else if(e&&!s)return[n,[e]]}else n=B?"":this.properties().childs().inputs.childs().symbol.value();return[n]}_setSymbolCurrencyUnitInternal(e,t){const{symbol:i,currency:s,unit:r}=e,n=this.properties().childs(),a=n.inputs.childs().symbol.value(),l=n.currencyId.value(),c=n.unitId.value();if(void 0!==i&&i!==a&&n.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==l&&n.currencyId.setValueSilently(s),void 0!==r&&r!==c&&n.unitId.setValueSilently(r),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(n.currencyId.setValueSilently((0,o.symbolCurrency)(e)),n.unitId.setValueSilently((0,o.symbolUnit)(e,this._model.unitConversionEnabled())))}n.inputs.childs().symbol.value()!==a&&n.inputs.childs().symbol.listeners().fire(n.inputs.childs().symbol),n.currencyId.value()!==l&&n.currencyId.listeners().fire(n.currencyId),n.unitId.value()!==c&&n.unitId.listeners().fire(n.unitId),this._realignLineToolsIfParamsChanged()}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}},82927:(e,t,i)=>{"use strict";i.d(t,{StudyOverlayBase:()=>le}) +;var s=i(88537),r=i(49483),n=i(98125),o=i(66101),a=i(8175),l=i(63948),c=i(37667),h=i(2015),d=i.n(h),u=i(19234),p=i(67337),_=i(90810),m=i(14791),g=i(59100),f=i(9315),v=i(71053),S=i(80643),y=i(69927),b=i(52714),w=i.n(b),C=i(33291),P=i(190),T=i(42169),x=i(97938),I=i(3825),M=i(74477);const L=p.enabled("force_exchange_as_title");class A extends x.PriceAxisView{constructor(e){super(),this._source=e}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.lastValueData("close",!1);if(s.noData)return;const r=this._source.model(),n=this._source.priceScale();if(null===n)return;if(!r.isPriceScaleVisible(n))return;i.background=s.color,i.textColor=this.generateTextColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate;const o=this._source.model().properties().childs().scalesProperties.childs();o.showSeriesLastValue.value()&&(e.text=(0,M.getCurrentModePriceText)(n,s),o.seriesLastValueMode.value()!==I.PriceAxisLastValueMode.LastPriceAndPercentageValue?e.secondLine="":e.secondLine=(0,M.getOppositeModePriceText)(n,s),e.visible=!0),t.text="",o.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";const t=this._source.symbolInfo();return L?e=(0,c.displayedSymbolExchange)(t):this._source.model().properties().childs().scalesProperties.childs().showSymbolLabels.value()&&(e=(0,c.displayedSymbolName)(t)),e}}var E=i(55057);class k extends E.PriceLineAxisView{constructor(e){super(),this._study=e}_value(){return this._study.lastValueData("",!0)}_priceLineColor(e){return e}_lineWidth(){return 1}_isVisible(){const e=this._study.model().properties().childs().scalesProperties.childs().showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e}}var D=i(43891),V=i(40254);class B{constructor(e){this._lineRenderer=new V.HorizontalLineRenderer,this._visible=!1,this._source=e}update(){if(this._visible=!1,!this._source.properties().childs().showPriceLine.value())return;const e=this._source.lastValueData("",!0);e.noData||(this._visible=!0,this._lineRenderer.setData({y:e.coordinate,color:e.color,linewidth:1,linestyle:D.LINESTYLE_DOTTED,visible:this._visible}))}renderer(){return this._visible?this._lineRenderer:null}}var N=i(93751),R=i(14445),O=i(44601),F=i(85733),W=i(22458);const H=r.CheckMobile.any();class z extends R.DataWindowView{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t),this._items=this._valueProvider.getItems().map(e=>new R.DataWindowItem(e.title,"")),this.update()}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}update(){this._invalidated=!0}study(){return this._study}_updateImpl(){this._header=this._study.title();let e;this._showLastPriceAndChangeOnly()?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),(0,N.isNumber)(e)||(e=this._study.data().lastIndex()));const t=this._valueProvider.getValues(e);for(let e=0;ee||t,i.showBarChange,i.showSeriesOHLC),this._visibilityProperty.subscribe(this,this.update)}areValuesVisible(){return this._visibilityProperty.value()}additional(){return this._additional}destroy(){this._backgroundColorSpawn.destroy(),this._visibilityProperty.destroy()}_updateImpl(){super._updateImpl()}_createValuesProvider(e,t){return new U.OverlayLegendValuesProvider(e,t)}}var q=i(28978),Y=i(66919),K=i(85224),$=i(33837),X=i(34041),Z=i(35251),J=i(30076),Q=i(59153);const ee=r.CheckMobile.any()&&!1,te=p.enabled("uppercase_instrument_names"),ie=p.enabled("study_overlay_compare_legend_option"),se=p.enabled("secondary_series_extend_time_scale"),re=p.enabled("hide_unresolved_symbols_in_legend"),ne=!p.enabled("hide_study_overlay_legend_item"),oe=(0,n.getLogger)("Chart.StudyOverlay");function ae(e,t){return null==e[t]}class le extends o.Study{constructor(e,t,i,s){super(e,function(e){return e.hasChild("currencyId")||e.addChild("currencyId",new(d())(null)),e.hasChild("unitId")||e.addChild("unitId",new(d())(null)),e.addExclusion("currencyId"),e.addExclusion("unitId"),e}(t),i,s),this._quotesProvider=new _.QuotesProvider,this._seriesSource=null,this._symbolResolvingActive=new(w())(!1),this._symbolHibernated=new(w())(!1),this._styleToRecover=null,this._isActingAsSymbolSource=new(w())(!0),this._realignToolsLastParams=null,this.m_data=new v.PlotList((0,l.seriesPlotFunctionMap)(),ae),ee&&this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate);const r=this.properties().childs();r.currencyId.subscribe(this,this._onCurrencyChanged),r.unitId.subscribe(this,this._onUnitChanged),r.allowExtendTimeScale.subscribe(this,this._onAllowExtendTimeScaleChanged),this._onAllowExtendTimeScaleChanged(),r.style.subscribe(this,this._onChartStyleChanged),r.lineStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.areaStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.baselineStyle.childs().priceSource.subscribe(this,this._updateBarFunction),r.columnStyle.childs().priceSource.subscribe(this,this._updateBarFunction),this._updateBarFunction(),this._formatter=null,e.mainSeries().onIntervalChanged().subscribe(this,()=>e.realignLineTools(this))}destroy(){this._model.mainSeries().onIntervalChanged().unsubscribeAll(this),super.destroy()}isActingAsSymbolSource(){return this._isActingAsSymbolSource.readonly()}properties(){return this._properties}setSymbolParams(e){ +this._setSymbolParamsInternal(e)}symbol(){return this.properties().childs().inputs.childs().symbol.value()}setSymbol(e){this.setSymbolParams({symbol:e})}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();if(!e)return null;let t;return t=this._resolvedSymbols[this._getSymbolForResolve(e)]||null,t}supportsPressedChunks(){return!1}pressedChunks(e,t){throw new Error("Pressed chunks are not supported")}data(){return null===this._seriesSource?super.data():this._seriesSource.data().bars()}symbolResolved(){return this.symbolsResolved()}symbolResolvingActive(){return this._symbolResolvingActive}symbolHibernated(){return this._symbolHibernated}isVisible(){const e=super.isVisible();return this._symbolHibernated.setValue(!e),e}symbolSameAsCurrent(e){return(0,m.symbolSameAsCurrent)(e,this.symbol(),this.symbolInfo())}priceSource(){switch(this._properties.style.value()){case 2:return this._properties.lineStyle.priceSource.value();case 3:return this._properties.areaStyle.priceSource.value();case 10:return this._properties.baselineStyle.priceSource.value();case 13:return this._properties.columnStyle.priceSource.value()}return null}barFunction(){return this._barFunction}quotes(){return this._quotesProvider.quotes()}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this.setSymbolParams({currency:e})}isConvertedToOtherCurrency(){return(0,c.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this.setSymbolParams({unit:e})}isConvertedToOtherUnit(){return(0,c.isConvertedToOtherUnit)(this.symbolInfo(),this._model.unitConversionEnabled())}style(){return this.properties().childs().style.value()}setStyle(e){this.setSymbolParams({style:e})}interval(){return this._model.mainSeries().interval()}setInterval(e){}symbolSource(){return this}state(e,t){const i=super.state(e,t);return this._model.unitConversionEnabled()||delete i.state.unitId,e&&((0,s.ensureDefined)(i.data).symbols={___snapshot:this.symbolInfo()||void 0}),i}symbolTitle(e,t){return this.title(!0,{},!1,e)}title(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return te?r.toUpperCase():r}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[te?r.toUpperCase():r]}isStarted(){return null===this._seriesSource?super.isStarted():this._seriesSource.isStarted()}sourceId(){return null===this._seriesSource?super.sourceId():(0,s.ensureNotNull)(this._seriesSource.instanceId())}moveData(e){null===this._seriesSource?super.moveData(e):this._seriesSource.moveData(e)}firstValue(){const e=this._model.timeScale().visibleBarsStrictRange();if(null===e)return null;const t=e.firstBar();if(0===this.data().size())return this._ownFirstValue;const i=this.data().search(t,v.PlotRowSearchMode.NearestRight,1);return this._ownFirstValue=null!==i?this._barFunction(i.value):null,this._ownFirstValue}lastValueData(e,t,i){const s={noData:!0},r=this.priceScale();if(this._model.timeScale().isEmpty()||null===r||r.isEmpty()||this.data().isEmpty())return s +;const n=this._model.timeScale().visibleBarsStrictRange();if(null===n)return s;const o=this.properties().childs();if(!o.visible.value())return s;const a=this.nearestIndex(n.lastBar(),v.PlotRowSearchMode.NearestLeft,1);if(void 0===a)return s;const l=this.firstValue();if(null===l)return s;const c=this._lastNonEmptyPlotRow(4),h=null!==c&&n.contains(c.index),d=null!==c?c.value:null,u=t||h?d:this.data().valueAt(a);if(null===u)return s;const p=this._barFunction(u);if(!(0,S.isNumber)(p))return s;const _=r.priceToCoordinate(p,l);let m;switch(o.style.value()){case 0:m=u[1]<=u[4]?o.barStyle.childs().upColor.value():o.barStyle.childs().downColor.value();break;case 1:case 9:m=u[1]<=u[4]?o.candleStyle.childs().upColor.value():o.candleStyle.childs().downColor.value();break;case 13:m=u[1]<=u[4]?o.columnStyle.childs().upColor.value():o.columnStyle.childs().downColor.value();break;case 2:m=o.lineStyle.childs().color.value();break;case 3:m=o.areaStyle.childs().color1.value();break;case 10:{const e=o.baselineStyle.childs();m=_(0,s.ensureNotNull)(this.priceScale()).height(),color:()=>e.baselineColor.value(),baseLevelPercentage:()=>e.baseLevelPercentage.value()});break}}r&&this._paneViews.push(r),null!==i&&this._paneViews.push(i),this._paneViews.push(new B(this)),this._dataWindowView||(this._dataWindowView=new z(this,this._model)),this._legendView||(this._legendView=new G(this,this._model)),this._statusView||(this._statusView=new P.StudyStatusView(this)),this._priceAxisViews=[...this._priceAxisViewsBase],this._labelPaneViews.push(new q.PanePriceAxisView(e,this,this._model))}_createStudyOnServer(){null===this._seriesSource?super._createStudyOnServer():this._modifyStudyOnServer((0,s.ensureDefined)(this._inputs)),this._realignLineToolsIfParamsChanged()}_modifyStudyOnServer(e){null===this._seriesSource?super._modifyStudyOnServer(e):(this._seriesSource.modifySeries((0,u.decodeExtendedSymbol)(e.symbol),(0, +f.getServerInterval)(this._series.properties().childs().interval.value())),this._seriesSource.isStarted()||this._seriesSource.start())}_stopStudyOnServer(){null===this._seriesSource?super._stopStudyOnServer():this._seriesSource.stop()}_titleInParts(e,t,i,s){const r=this.symbolInfo();let n;if(r){if(n=r.name,ie)switch(this._model.mainSeries().symbolTextSourceProxyProperty().value()){case"description":n=r.description;break;case"ticker-and-description":n=`${r.name}, ${r.description}`}const e=!s&&(0,c.getStudySymbolExchange)(r);if(e)return[n,[e]]}else n=re?"":this.properties().childs().inputs.childs().symbol.value();return[n]}_onAllowExtendTimeScaleChanged(){const e=this.isStarted();if(e&&this.stop(!0),se&&this.properties().childs().allowExtendTimeScale.value()){this._seriesSource=new g.SeriesDataSource(this._model.chartApi(),"st_o_");const e=this._seriesSource.dataEvents();e.seriesError().subscribe(this,e=>{this._onStudyError(this._convertSeriesErrorToStudy(e))}),e.loading().subscribe(this,this._onStudyLoading),e.completed().subscribe(this,(e,t)=>{this._onStudyCompleted(t)}),e.dataUpdated().subscribe(this,()=>{this._studyModified=!1;const e=this._model.paneForSource(this);this._model.recalculatePane(e,(0,C.dataSourceChangeEvent)(this.id())),this._updateSources(),this.priceRangeReady()||this._enablePriceRangeReady()})}else{if(null!==this._seriesSource){const e=this._seriesSource.dataEvents();e.seriesError().unsubscribeAll(this),e.loading().unsubscribeAll(this),e.completed().unsubscribeAll(this),e.dataUpdated().unsubscribeAll(this),this._seriesSource.destroy()}this._seriesSource=null}e&&this.start(!0)}_convertSeriesErrorToStudy(e){return{error:e.error,ctx:e.ctx,solution_id:e.solution_id}}_setSymbolParamsInternal(e,t){const{symbol:i,currency:s,unit:r,style:n}=e,o=this.properties().childs(),a=o.inputs.childs().symbol.value(),l=o.currencyId.value(),h=o.unitId.value(),d=o.style.value();if(void 0!==i&&i!==a&&o.inputs.childs().symbol.setValueSilently(i),void 0!==s&&s!==l&&o.currencyId.setValueSilently(s),void 0!==r&&r!==h&&o.unitId.setValueSilently(r),void 0!==n&&o.style.setValueSilently(n),t)this._resolvedSymbolsByInput[this.symbol()]=t,this._resolvedSymbols[this._getSymbolForResolve(this.symbol())]=t,this._realignToolsLastParams=null;else{const e=this.symbolInfo();null!==e&&(o.currencyId.setValueSilently((0,c.symbolCurrency)(e)),o.unitId.setValueSilently((0,c.symbolUnit)(e,this._model.unitConversionEnabled())))}o.inputs.childs().symbol.value()!==a&&o.inputs.childs().symbol.listeners().fire(o.inputs.childs().symbol),o.currencyId.value()!==l&&o.currencyId.listeners().fire(o.currencyId),o.unitId.value()!==h&&o.unitId.listeners().fire(o.unitId),o.style.value()!==d&&o.style.listeners().fire(o.style),this._checkStyle(),this._realignLineToolsIfParamsChanged()}_updateBarFunction(){var e;const t=null!==(e=this.priceSource())&&void 0!==e?e:"close";this._barFunction=(0,l.barFunction)(t)}_onChartStyleChanged(){var e;this._updateBarFunction(), +(null===(e=this._styleToRecover)||void 0===e?void 0:e.originalStyle)!==this.style()&&(this._styleToRecover=null)}_checkStyle(){const e=this.style();(0,c.isCloseBasedSymbol)(this.symbolInfo())?(0,c.isSingleValueBasedStyle)(e)||(this.setStyle(2),this._styleToRecover={correctedStyle:this.style(),originalStyle:e}):null!==this._styleToRecover&&(this.setStyle(this._styleToRecover.originalStyle),this._styleToRecover=null)}_realignLineToolsIfParamsChanged(){const e=this.symbol(),t=this.interval(),i=this.currency(),s=this.unit();null!==this._realignToolsLastParams&&this._realignToolsLastParams.symbol===e&&this._realignToolsLastParams.interval===t&&this._realignToolsLastParams.currency===i&&this._realignToolsLastParams.unit===s||(this._model.realignLineTools(this),this._realignToolsLastParams={symbol:e,interval:t,currency:i,unit:s})}}},41855:(e,t,i)=>{"use strict";i.d(t,{StudyPriceAxisView:()=>r});var s=i(97938);class r extends s.PriceAxisView{constructor(e,t){super(),this._model=e.model(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.model(),r=this._source.priceScale();if(null===r)return;if(!s.isPriceScaleVisible(r))return;const n=this._source.lastValueData(this._data.plotIndex,!1);if(n.noData)return;i.background=n.color;let o=n.color;"transparent"===o&&(o=this._model.properties().childs().scalesProperties.childs().backgroundColor.value()),i.textColor=this.generateTextColor(o),i.coordinate=n.coordinate,i.floatCoordinate=n.floatCoordinate,this._showAxisLabel()&&(e.text=n.text,e.visible=!0),this._updatePaneRendererData(t)}_showPaneLabel(){return!!this._model.properties().childs().scalesProperties.childs().showStudyPlotLabels.value()&&this._source.properties().showLabelsOnPriceScale.value()}_showAxisLabel(){return!!this._model.properties().childs().scalesProperties.childs().showStudyLastValue.value()&&this._source.properties().showLabelsOnPriceScale.value()}_updatePaneRendererData(e){e.text="",this._showPaneLabel()&&(e.text=this._source.priceLabelText(this._data.plotIndex),e.visible=!0)}}},59572:(e,t,i)=>{"use strict";i.d(t,{applyOverridesToStudy:()=>c,applyOverridesToStudyDefaults:()=>h});var s=i(88537),r=i(50993);const n=(0,i(98125).getLogger)("Chart.Model.StudyPropertiesOverrider");var o,a;function l(e,t,i,s){const r=i.split(".");if(0===r.length||0===r[0].length)return;const l=function(e){const t=e.split(":");return{name:t[0],type:2===t.length?t[1]:null}}(r[0]),c=l.name,h=l.type,d=null!==h,u=!d||"band"===h,p=!d||"area"===h,_=!d||"input"===h,m=!d||"plot"===h?a.getPlotIdByTitle(e,c):null,g=u?a.getBandIndexByName(e,c):null,f=p?a.getFilledAreaIdByTitle(e,c):null,v=_?a.getInputByName(e,c):null,S=t.hasOwnProperty(c);if((null!==m?1:0)+(null!==g?1:0)+(null!==f?1:0)+(null!==v?1:0)+(S?1:0)>1)return void n.logWarn(`Study '${e.description}' has ambiguous identifier '${c}'`);const y=r[1];if(null!==m){if(1===r.length)return void n.logWarn(`Path of sub-property of '${c}' plot for study '${e.description}' must be not empty`);const i=r.slice(1);o.applyPlotProperty(e,t,m,i,s) +}else if(null!==v)o.applyInputValue(t,v,s);else if(null!==g){if(void 0===y)return void n.logWarn(`Property name of '${c}' band for study '${e.description}' must be set`);o.applyBandProperty(t,g,y,s)}else if(null!==f){if(void 0===y)return void n.logWarn(`Property name of '${c}' area for study '${e.description}' must be set`);o.applyFilledAreaProperty(t,f,y,s)}else S?o.setRootProperty(t,r,s):n.logWarn(`Study '${e.description}' has no plot or input '${c}'`)}function c(e,t){const i=e.properties(),s=i.state();for(const i in t)t.hasOwnProperty(i)&&l(e.metaInfo(),s,i,t[i]);i.mergeAndFire(s)}function h(e,t,i){for(const s in e){if(!e.hasOwnProperty(s))continue;const r=s.indexOf(".");if(-1===r)continue;const o=s.substring(0,r),c=a.getMetaInfoByDescription(t,o);if(null===c){n.logWarn("There is no such study "+o);continue}const h=i(c);null!==h?l(c,h,s.substring(r+1),e[s]):n.logWarn("Cannot apply overrides for study "+o)}}!function(e){const t={line:r.LineStudyPlotStyle.Line,histogram:r.LineStudyPlotStyle.Histogram,cross:r.LineStudyPlotStyle.Cross,area:r.LineStudyPlotStyle.Area,columns:r.LineStudyPlotStyle.Columns,circles:r.LineStudyPlotStyle.Circles,line_with_breaks:r.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:r.LineStudyPlotStyle.AreaWithBreaks};e.applyPlotProperty=function(e,i,o,a,l){if(void 0===i.styles)return void n.logWarn("Study does not have styles");const c=a[0];if("color"===c){return void function(e,t,i,r,o){if(void 0!==e.styles)if(null===t&&!isNaN(r)&&r>0)n.logWarn("Study plot does not have color #"+r);else{if(0===r||isNaN(r)){(0,s.ensureDefined)(e.styles[i]).color=String(o),r=0}null!==t&&((0,s.ensureDefined)(t.colors[r]).color=String(o))}else n.logWarn("Study does not have styles")}(i,function(e,t,i){if(void 0===e.plots)return null;for(const s of e.plots){if(!(0,r.isColorerPlot)(s)||void 0===t.palettes)continue;const e=t.palettes[s.palette];if(s.target===i&&void 0!==e)return e}return null}(e,i,o),o,a.length>1?parseInt(a[1]):NaN,l)}const h=i.styles[o];if(void 0!==h&&h.hasOwnProperty(c)){if("plottype"===c){const e=t[String(l)];if(void 0===e)return void n.logWarn("Unsupported plot type for plot: "+l);l=e}h[c]=l}else n.logWarn(`Study plot does not have property '${c}'`)},e.applyBandProperty=function(e,i,s,r){if(void 0===e.bands)return void n.logWarn("Study does not have bands");const o=e.bands[i];if(void 0!==o&&o.hasOwnProperty(s)){if("plottype"===s){const e=t[String(r)];if(void 0===e)return void n.logWarn("Unsupported plot type for band: "+r);r=e}o[s]=r}else n.logWarn(`Study band does not have property '${s}'`)},e.applyFilledAreaProperty=function(e,t,i,s){if(void 0===e.filledAreasStyle)return void n.logWarn("Study does not have areas");const r=e.filledAreasStyle[t];void 0!==r&&r.hasOwnProperty(i)?r[i]=s:n.logWarn(`Study area does not have property '${i}'`)},e.applyInputValue=function(e,t,i){void 0!==e.inputs&&e.inputs.hasOwnProperty(t)?e.inputs[t]=i:n.logWarn(`Study does not have input '${t}'`)},e.setRootProperty=function(e,t,i){if(0===t.length)return;let s=e;for(const e of t.slice(0,-1)){ +if(null==s||!s.hasOwnProperty(e))break;s=s[e]}const r=t[t.length-1];null!=s&&s.hasOwnProperty(r)?s[r]=i:n.logWarn("Study does not have property "+t.join("."))}}(o||(o={})),function(e){e.getInputByName=function(e,t){if(void 0===e.inputs)return null;t=t.toLowerCase();for(const i of e.inputs)if(i.name.toLowerCase()===t)return i.id;return null},e.getPlotIdByTitle=function(e,t){if(void 0===e.styles)return null;t=t.toLowerCase();for(const i in e.styles){const s=e.styles[i];if((void 0!==s&&void 0!==s.title?s.title:i).toLowerCase()===t)return i}return null},e.getFilledAreaIdByTitle=function(e,t){if(void 0===e.filledAreas)return null;t=t.toLowerCase();for(const i of e.filledAreas)if(i.title.toLowerCase()===t)return i.id;return null},e.getBandIndexByName=function(e,t){if(void 0===e.bands)return null;t=t.toLowerCase();for(let i=0;i{"use strict";var s=i(2015),r=i(2872),n=i(88537).assert,o=i(37667).symbolTitle,a=i(33981).StudyBarColorer,l=i(41855).StudyPriceAxisView,c=i(54376).createGraphicsPriceAxisViews,h=i(84801).ChartApiInterface,d=i(88564).DefaultProperty,u=i(97098).PriceFormatter,p=i(71053).PlotList,_=i(67072),m=i(76422),g=i(50993),f=g.LineStudyPlotStyle,v=i(55057).StudyPriceLineAxisView,S=i(8671).studyPlotFunctionMap,y=i(8671).studyEmptyPlotValuePredicate,b=i(72857).makeNextStudyId,w=i(67337),C=i(69774).StudyBase,P=i(13933);const{dataSourceChangeEvent:T}=i(33291);var x=i(20838).IntervalsVisibilitiesProperty,I=P.StudyStatusType,M=i(68906).colorToInteger,L=i(52418).intervalsVisibilitiesDefaults,A=i(98125).getLogger("Chart.Study"),E=w.enabled("datasource_copypaste"),k=w.enabled("study_symbol_ticker_description"),D=w.enabled("hide_unresolved_symbols_in_legend");function V(e,t,i){var s=new d(t,i,!0);s.removeProperty("intervalsVisibilities"),s.addChild("intervalsVisibilities",new x(i&&i.intervalsVisibilities)),s.addExclusion("visible"),s.addExclusion("precision"),s.addExclusion("minTick"),s.addExclusion("intervalsVisibilities");for(var r=0;r=0?c:l}return l}if(this._metaInfo.isTVScript||this._metaInfo.pine){if("text"===i)return this._metaInfo.defaults.inputs.text;if("pineId"===i)return this._metaInfo.scriptIdPart;if("pineVersion"===i)return this._metaInfo.pine?this._metaInfo.pine.version:"-1";if("color"===e.type&&this._metaInfo.isRGB){var h=this._properties.inputs[i].value();return M(h)}if("price"===e.type){var d=this._properties.inputs[i].value();return t.priceInputsForDisplay?this.formatter().format(d):d}return this._properties.inputs[i].value()}return this._properties.inputs[i].value()}_rebindToSource(e,t){var i=this.parentSource();if(this._isChildStudy){var s;this._source.unsetChild(this);var r=null;if(e===this._model.mainSeries())this._source=null,this._isChildStudy=!1,this._ownerSource=null,s=this._series.seriesSource().instanceId(),r=h.REBIND_STUDY_CHILD_TO_STANDALONE;else{if(!(e instanceof R))return A.logError("Unable to rebind study to source of this type"),!1;this._ownerSource=e,this._source=e,s=this._source.sourceId(),this._source.setChild(this),this._source.isHibernated()&&this._source.start()}this._incrementTurnaround(),this.disablePriceRangeReady(),this._chartApi.rebindStudy(this._studyId,this._turnaround,s,this._studyName,t,this._handler,r)}else{if(!(e instanceof R))return A.logError("Unable to rebind study to source of this type"),!1;var n=e.isHibernated();n&&e.start();var o=!1;if(this._canCreateStudyWithRebindType(h.REBIND_STUDY_STANDALONE_TO_CHILD)&&(this._incrementTurnaround(),this.disablePriceRangeReady(),o=this._chartApi.rebindStudy(this._studyId,this._turnaround,e.sourceId(),this._studyName,t,this._handler,h.REBIND_STUDY_STANDALONE_TO_CHILD)),!o)return n&&e.stop(),!1;this._isChildStudy=!0,this._ownerSource=e,this._source=e,this._source.setChild(this),this._childStudyByRebind.fire()}var a=this.m_priceScale,l=e.priceScale();if(a!==l){var c=this._model.paneForSource(this),d=this._model.paneForSource(e);c===d&&d.move(this,l,!0)}const u=this.parentSource();return i.formatterChanged().unsubscribe(this,this._onSourceFormatterChanged),u.formatterChanged().subscribe(this,this._onSourceFormatterChanged),i.priceStepChanged().unsubscribe(this,this._onSourcePriceStepChanged),u.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),i.currencyChanged().unsubscribeAll(this),u.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),i.unitChanged().unsubscribeAll(this),u.unitChanged().subscribe(this,this._onSourceUnitChanged),i.priceRangeReadyChanged().unsubscribeAll(this),u.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),this._recreatePriceFormattingDependencies(),!0}childStudyByRebind(){return this._childStudyByRebind} +_changeInputsImpl(e,t){var i=this.source(),s=this._properties.inputs&&this._properties.inputs.state(),r=_.getSourceIdByInputs(this._metaInfo.inputs,s),n=!0;if(r)if("high"===r||"open"===r||"low"===r||"close"===r||"hl2"===r||"ohl3"===r||"ohlc4"===r)i=this._model.mainSeries();else for(var o=this._model.dataSources().filter((function(e){return e instanceof R&&e.canHaveChildren()})),a=0;a=0&&(e="_v"+this._metaInfo.pine.version),{symbol:this.series().actualSymbol(),resolution:this.series().interval(),study:this._metaInfo.shortId+e}}_sendTelemetryReport(e,t,i){void 0===i&&(i=this._getTelemetryAdditionalData());var s=Object.assign(t,{additional:i});(void 0).sendChartReport(e,s)}_sendTelemetryCounter(e,t){this._sendTelemetryReport(e,{count:1},t)}onAboutToBeDestroyed(){return this._aboutToBeDestroyed}destroy(){this._aboutToBeDestroyed.fire(),this._isDestroyed=!0,null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._properties.precision.listeners().unsubscribe(this,this._precisionChanged),this._showStudyArgumentsProperty.listeners().unsubscribe(this,this.invalidateTitleCache),this._properties.description.listeners().unsubscribe(this,this.invalidateTitleCache),this._properties.shortDescription&&this._properties.shortDescription.listeners().unsubscribe(this,this.invalidateTitleCache),this._model.mainSeries().dataEvents().symbolResolved().unsubscribeAll(this), +this.hasBarColorer()&&this._properties.visible.listeners().unsubscribe(this._model.mainSeries(),this._model.mainSeries().invalidateBarStylesCache),this._model.mainSeries().dataEvents().symbolResolved().unsubscribe(this,this._recreatePriceFormattingDependencies),void 0!==this._properties.offsets&&this._properties.offsets.listeners().unsubscribe(this,this._updateMaxOffsetValue),void 0!==this._properties.offset&&this._properties.offset.listeners().unsubscribe(this,this._updateMaxOffsetValue),super.destroy()}desiredPriceScalePosition(){return this.metaInfo().isTVScriptStub?"overlay":this.metaInfo().linkedToSeries?"as-series":void 0===this.metaInfo().priceScale?null:["right","left","overlay"][this.metaInfo().priceScale]}guiPlotName(e){var t=this.properties().styles;return t&&t[e]&&t[e].title?t[e].title.value():this.title()}formatterChanged(){return this._formatterChanged}copiable(){return E&&!this.isChildStudy()}setPriceScale(e){super.setPriceScale(e),m.emit("study_event",this.id(),"price_scale_changed")}getStudyName(){return this._studyName}}TradingView.Study=R,t.Study=R,t.prepareStudyProperties=function(e,t,r,o,a){return function(e,t,r,o,a,l){var c=function(e,t,r,o){var a=i(31752);if(_.versionOf(e)<1)throw new Error("This function cannot work with metainfo of the old format version. Required format version >= 1");var l=TradingView.clone(defaults("study"));B(l,e);var c=_.getStudyPropertyRootName(e),h=TradingView.clone(defaults(c,o));h.intervalsVisibilities=TradingView.clone(L),("Overlay"===e.shortId||"Compare"===e.shortId)&&(h.currencyId=null,h.unitId=null);e.isTVScript&&e.TVScriptSourceCode!==h.TVScriptSourceCode&&(h=TradingView.clone(TradingView.factoryDefaults(c,o)));TradingView.merge(l,h),t&&(n(!(t instanceof s),"propsState should not be an instance of Property"),TradingView.merge(l,t));var d=TradingView.clone(e),u={};a.mergeInputsObjPart(u,d.defaults.inputs),a.mergeInputsObjPart(u,l.inputs),l.inputs=u,delete d.inputs,delete d.defaults.inputs;var p={};if(TradingView.merge(p,d.defaults),TradingView.merge(p,TradingView.factoryDefaults(c)),TradingView.merge(p,l),TradingView.merge(p,d),delete p.defaults,l=p,null!==r){var m=r.model().studiesColorRotatorFactory().getColorRotator(e);null!==m&&("Overlay@tv-basicstudies"===e.id?l.lineStyle.color=m.getColor(l.lineStyle.color,e):TradingView.merge(l,function(e,t){for(var i in e.styles){var s=e.styles[i].color;s&&(e.styles[i].color=t.getColor(s))}return e}(l,m)))}t&&TradingView.merge(l.styles,t.styles);return l}(e,t,r,o),h=_.getSourceInputIds(e);if(h.length>0){var d=h[0];l instanceof R?c.inputs[d]="{pid}$0":void 0!==c.inputs[d]&&-1!==c.inputs[d].indexOf("$")&&(c.inputs[d]="close")}return V(e,a,c)}(e,t,r,o,_.getStudyPropertyRootName(e),a)},t.prepareStudyPropertiesForLoadChart=function(e,t,s,r,n,o){return function(e,t,s,r,n,o,a){var l=function(e,t,s,r,n,o){var a=i(31752);e.version&&s.version&&e.version!==s.version&&A.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+s.version);var l=TradingView.clone(defaults("study")) +;l.intervalsVisibilities=TradingView.clone(L),TradingView.merge(l,TradingView.factoryDefaults(_.getStudyPropertyRootName(e))),B(l,e),TradingView.merge(l,s),l=n.updateStudyState(l,e,t),void 0!==o&&(l=o(s,l,e,t));var c=TradingView.clone(t||e);if(c&&_.versionOf(c)>=1){var h={};a.mergeInputsObjPart(h,(c.defaults||{}).inputs),a.mergeInputsObjPart(h,l.inputs),l.inputs=h,delete c.inputs,c.defaults&&delete c.defaults.inputs;var d={};TradingView.merge(d,c.defaults),TradingView.merge(d,TradingView.factoryDefaults(_.getStudyPropertyRootName(c))),TradingView.merge(d,l),delete c.defaults,TradingView.merge(d,c),l=d}return l}(e,t,s,0,n,a);return V(t||e,o,l)}(e,t,s,0,n,_.getStudyPropertyRootName(e),o)}},56138:(e,t,i)=>{"use strict";i.d(t,{plotShapesData:()=>r});var s=i(28353);const r={shape_arrow_down:{guiName:(0,s.t)("Arrow Down"),id:"shape_arrow_down",paneRendererClass:"PaneRendererArrowDown",pineName:"shape.arrowdown",icon:"arrow_down"},shape_arrow_up:{guiName:(0,s.t)("Arrow Up"),id:"shape_arrow_up",paneRendererClass:"PaneRendererArrowUp",pineName:"shape.arrowup",icon:"arrow_up"},shape_circle:{guiName:(0,s.t)("Circle"),id:"shape_circle",paneRendererClass:"PaneRendererCircleShape",pineName:"shape.circle",icon:"circle"},shape_cross:{guiName:(0,s.t)("Cross"),id:"shape_cross",paneRendererClass:"PaneRendererCrossShape",pineName:"shape.cross",icon:"cross"},shape_diamond:{guiName:(0,s.t)("Diamond"),id:"shape_diamond",paneRendererClass:"PaneRendererDiamond",pineName:"shape.diamond",icon:"diamond"},shape_flag:{guiName:(0,s.t)("Flag"),id:"shape_flag",paneRendererClass:"PaneRendererFlagShape",pineName:"shape.flag",icon:"flag"},shape_label_down:{guiName:(0,s.t)("Label Down"),id:"shape_label_down",paneRendererClass:"PaneRendererLabelDown",pineName:"shape.labeldown",icon:"label_down"},shape_label_up:{guiName:(0,s.t)("Label Up"),id:"shape_label_up",paneRendererClass:"PaneRendererLabelUp",pineName:"shape.labelup",icon:"label_up"},shape_square:{guiName:(0,s.t)("Square"),id:"shape_square",paneRendererClass:"PaneRendererSquare",pineName:"shape.square",icon:"square"},shape_triangle_down:{guiName:(0,s.t)("Triangle Down"),id:"shape_triangle_down",paneRendererClass:"PaneRendererTriangleApexDown",pineName:"shape.triangledown",icon:"triangle_down"},shape_triangle_up:{guiName:(0,s.t)("Triangle Up"),id:"shape_triangle_up",paneRendererClass:"PaneRendererTriangleApexUp",pineName:"shape.triangleup",icon:"triangle_up"},shape_xcross:{guiName:(0,s.t)("X Cross"),id:"shape_xcross",paneRendererClass:"PaneRendererXCross",pineName:"shape.xcross",icon:"x_cross"}}},27306:(e,t,i)=>{"use strict";var s=i(15625).Version,r=i(98125).getLogger("Chart.StudyMigration");function n(e){this._studyId=e,this._maxToVers=s.ZERO,this._maxFromVers=s.ZERO,this._migrs=[]}n.prototype.addMigration=function(e,t,i){var r=s.parse(e),n=s.parse(t);r.isGreater(this._maxFromVers)&&(this._maxFromVers=r),n.isGreater(this._maxToVers)&&(this._maxToVers=n),this._migrs.push({fromVers:r,toVers:n,rules:i})},n.prototype.updateInputs=function(e,t,i){if(!i)return i +;for(var s=TradingView.clone(i),n=e;n.isLess(t);){var o=this._findMigration(n);if(null==o)break;if(r.logNormal("Migrating study inputs from "+o.fromVers+" to "+o.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(o)+", inputs: "+JSON.stringify(i)),s=this._applyMigration(s,o),!n.isLess(o.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");n=o.toVers}return n>e&&r.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(s)),s},n.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,s=0;s=0||t.indexOf(e)>=0},n._applyInputChangedMinMaxRule=function(e,t){if("adjustValIfNeeded"!==t.action)throw new Error("Unknown action "+t.action+" for rule with type "+t.type);var i=e[t.inputId];return it.maxVal&&(e[t.inputId]=t.maxVal),r.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},n._applyInputChangedOptionsRule=function(e,t){if(!(["text"].indexOf(t.inputType)>=0&&"resetToDefValIfNeeded"===t.action))throw new Error("Unexpected rule.inputType="+t.inputType+" in rule.action="+t.action);var i=e[t.inputId];return t.options.indexOf(i)<0&&(e[t.inputId]=t.defVal,r.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=n}, +9771:(e,t,i)=>{"use strict";var s=i(66101).Study,r=i(52457).OverlayLegendValuesProvider,n=i(79284).OverlayStatusProvider,o=i(33981).SeriesBarColorer,a=i(82927).StudyOverlayBase;t.study_Overlay=class extends a{constructor(e,t,i,s){super(e,t,i,s),this._paneView=null;var r=this;this.properties().minTick.listeners().subscribe(null,(function(){r._recreatePriceFormattingDependencies(),r.updateAllViews(),r._model.fullUpdate()}))}_showLastValueOnPriceScale(){return this._model.properties().scalesProperties.showSeriesLastValue.value()}barColorer(){return new o(this)}_tryChangeInputs(){s.prototype._tryChangeInputs.call(this),this.m_formatter=null,this.priceScale().updateFormatter()}_onQuotesUpdate(e,t){!this._legendView||void 0===t.values.change&&void 0===t.values.change_percent||(this._legendView.update(),this._model.updateSource(this))}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),super.destroy()}tags(){var e=[],t=this.symbolInfo();return t?e.push(t.name):this._properties.inputs.symbol.value()&&e.push(this._properties.inputs.symbol.value()),e}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(1369),i.e(7387),i.e(8623),i.e(607)]).then(i.bind(i,55976))).StudyOverlayDefinitionsViewModel}defaultPlotIdForAlert(){return""}changeStyles(){this.data().each((function(e,t){t[TradingView.STYLE_PLOT]=null})),s.prototype.changeStyles.call(this)}valuesProvider(){return new r(this,this.model())}statusProvider(e){return new n(this,this.model())}}},67509:(e,t,i)=>{"use strict";var s=i(88537).assert,r=i(80643).clone,n=i(66101).Study,o=i(71053).PlotList,a=i(8671).studyPlotFunctionMap,l=i(8671).studyEmptyPlotValuePredicate;class c{constructor(e,t,i){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=i}rebuildData(e){var t=this._targetPlotIndex+1,i=this._strategyPlotIndex+1,s=null,r=null;e.range(this._startIndex||e.firstIndex(),e.lastIndex()).each((function(n,o){var a=o[t],l=o[i]?Math.round(o[i]):null;if(o[t]=null,o[i]=null,!l||l>0)return!1;var c=n+l,h={pointIndex:c,value:a};if(r){if(r.pointIndex!==h.pointIndex){c>=0&&(e.valueAt(c)[t]=a);var d=!1;s&&(d=s.value<=r.value&&r.value<=a||s.value>=r.value&&r.value>=a),d?r.pointIndex>=0&&(e.valueAt(r.pointIndex)[t]=null):s=r,r=h}}else r=h;return!1}))}}t.study_ScriptWithDataOffset=class extends n{constructor(e,t,i,s){super(e,t,i,s),this._underlyingData=new o(a(s),l)}clearData(){super.clearData(),this._underlyingData.clear()}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache();var t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this.m_data=new o(a(this._metaInfo),l));var i=this.m_data.lastIndex();this._underlyingData.range(i,this._underlyingData.lastIndex()).each(function(e,t){return this.m_data.add(e,r(t)),!1}.bind(this)),this._plotsForStrategyProcessing().forEach((function(e){new c(e.strategyIndex,e.targetIndex,i).rebuildData(this.m_data)}),this)}_plotsForStrategyProcessing(){var e=[];return this._metaInfo.plots.forEach((function(t,i){ +if("dataoffset"===t.type){var r=this._metaInfo.plots.findIndex((function(e){return e.id===t.target}));s(r>=0,"target plot not found for strategy plot "+t.id);var n={strategyIndex:i,targetIndex:r};e.push(n)}}),this),e}}},31752:(e,t,i)=>{"use strict";var s=i(88537).assert,r=i(15625).Version,n=i(98125).getLogger("Chart.Study.Versioning"),o=i(76861),a=i(67072),l=i(14905).extractPineId,c=i(5402).migrateMetaInfoAndPropState;function h(e,t){if(!e)throw new Error("No studies metainfo");var s=i(27306);if(this._studiesMetainfo=e,!t)throw new Error("No studies migrations");this._studiesMigrations=t,this._migrations={};for(var r=0;r=22)return t;for(var i={},s=0,r=0;;){var n=t[r];if(void 0===n)break;var o=t[n.id];n.isFake&&(n.id="in_"+s++),i[r]=n,i[n.id]=o,r++}return i}]}h.prototype.updateMetaInfo=function(e){if(!e)return e;s(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");for(var t=null,i=this._studiesMetainfo,r=0;r=12&&l<=26){var c={};for(o=0;o=12&&c<=26){var d=r.columns;r.columns=[];for(var u=0;ut&&n.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description))}},h._fixInputsMaxValue=function(e,t){if(!TradingView.isAbsent(t)){var i=h.INPUT_MAX_VALUE;if(t.inputs)for(var s=0;si&&(a.max=i))}if(e&&e.inputs){var r=h.splitInputs(e.inputs),n=r.arr;for(var o in n){var a;"integer"===(a=n[o]).type&&(a.max&&a.max>i&&(a.max=i))}e.inputs=TradingView.merge(r.obj,r.arr)}}},h.prototype.patchPropsStateAndMetaInfo=function(e,t,i){"Script$BOOKER"!==t.productId||t.alerts||delete e.alerts,h._fixInputsOrder(e,t),h._fixInputsMaxValue(e,t);var s=h.splitInputs(e.inputs);e.inputs=s.obj;var r=a.versionOf(t);ri&&(i=r))}e[i+1]=t},h.splitInputs=function(e){var t={},i={};for(var s in e)isNumber(parseInt(s,10))?t[s]=e[s]:i[s]=e[s];return{arr:t,obj:i}},h.findInputKeyById=function(e,t){var i=null;for(var s in e)if(isNumber(parseInt(s,10))&&e[s].id===t){i=s;break}return i},h.getInputKeyById=function(e,t){var i=h.findInputKeyById(e,t);if(!i)throw new Error("Cannot find input with id: "+t);return i},e.exports=h},14791:(e,t,i)=>{"use strict";i.d(t,{areEqualSymbols:()=>r,symbolSameAsCurrent:()=>o});const s=i(67337).enabled("uppercase_instrument_names");function r(e,t){return void 0===e?void 0===t:void 0!==t&&(s?e.toUpperCase()===t.toUpperCase():e===t)}function n(e,t){return e.some(e=>r(t,e))}function o(e,t,i){if(r(t,e))return!0;if(i){if(r(i.full_name,e)||r(i.pro_name,e))return!0;if(r(i.ticker,e))return!0;if(i.aliases&&n(i.aliases,e))return!0;if(i.alternatives&&n(i.alternatives,e))return!0;if(0===e.indexOf("FRA:")&&r(i.pro_name,e.replace("FRA:","FWB:")))return!0}return!1}},76818:(e,t,i)=>{"use strict";i.d(t,{TextWidthCache:()=>s});class s{constructor(e=150){this._actualSize=0,this._usageTick=1,this._oldestTick=1,this._tick2Labels=new Map,this._cache=new Map,this._maxSize=e}reset(){this._actualSize=0,this._cache.clear(),this._usageTick=1,this._oldestTick=1,this._tick2Labels.clear()}measureText(e,t){return this.getMetrics(e,t).width}yMidCorrection(e,t){ +const i=this.getMetrics(e,t);return"actualBoundingBoxAscent"in i&&"actualBoundingBoxDescent"in i?(i.actualBoundingBoxAscent-i.actualBoundingBoxDescent)/2:0}getMetrics(e,t){const i=this._cache.get(t);if(void 0!==i)return i.metrics;if(this._actualSize===this._maxSize){const e=this._tick2Labels.get(this._oldestTick);this._tick2Labels.delete(this._oldestTick),this._cache.delete(e),this._oldestTick++,this._actualSize--}e.save(),e.textBaseline="middle";const s=e.measureText(t);return e.restore(),0===s.width&&t.length||(this._cache.set(t,{metrics:s,tick:this._usageTick}),this._tick2Labels.set(this._usageTick,t),this._actualSize++,this._usageTick++),s}}},5231:(e,t,i)=>{"use strict";var s=i(2872);function r(){this._marksByIndex=new Map,this._marksBySpan=[],this.changed=new s,this.minIndex=void 0,this.maxIndex=void 0}r.prototype.reset=function(){this._resetImpl(),this.changed.fire()},r.prototype._resetImpl=function(){this._marksByIndex=new Map,this._marksBySpan=[],this.minIndex=void 0,this.maxIndex=void 0,this._cache=void 0},r.prototype.merge=function(e){if(0!==e.length){var t=e[0].index,i=e[e.length-1].index;t<=this.minIndex&&i>=this.maxIndex&&this._resetImpl();for(var s=this._marksBySpan,r=new Set,n=0;n=this.maxIndex&&this.maxIndex--,this.maxIndex2;){if(1e3*this._marksByIndex.get(t).time===e)return t;if(1e3*this._marksByIndex.get(i).time===e)return i;var s=Math.round((t+i)/2);1e3*this._marksByIndex.get(s).time>e?i=s:t=s}return t},r.prototype.build=function(e,t){var i=Math.ceil(t/e);if(this._maxbar===i&&this._cache)return this._cache;this._maxbar=i;for(var s=[],r=this._marksBySpan.length;r--;)if(this._marksBySpan[r]){var n=s;s=[];for(var o=n.length,a=0,l=this._marksBySpan[r],c=l.length,h=1/0,d=-1/0,u=0;u=i&&_-d>=i&&(s.push(p),d=_)}for(;a{"use strict";i.d(t,{TimeAxisView:()=>o});var s=i(68906),r=i(93435);class n{constructor(){this._data=null}setData(e){this._data=e}draw(e,t,i){if(null===this._data||!this._data.visible||0===this._data.text.length)return;const s=this._data;e.font=t.font;const n=Math.round(t.widthCache.measureText(e,s.text));if(n<=0)return;e.save();const o=t.paddingHorizontal,a=n+2*o,l=a/2;let c=s.coordinate,h=Math.floor(c-l)+.5;if(s.alwaysInViewPort){const e=s.width;h<0?(c+=Math.abs(0-h),h=Math.floor(c-l)+.5):h+a>e&&(c-=Math.abs(e-(h+a)),h=Math.floor(c-l)+.5)}const d=h+a,u=Math.ceil(0+t.borderSize+t.offsetSize+t.paddingTop+t.fontSize+t.paddingBottom);e.fillStyle=s.background;const p=Math.round(h*i),_=Math.round(0*i),m=Math.round(d*i),g=Math.round(u*i),f=Math.round(2*i);e.beginPath(),e.moveTo(p,_),e.lineTo(p,g-f),e.arcTo(p,g,p+f,g,f),e.lineTo(m-f,g),e.arcTo(m,g,m,g-f,f),e.lineTo(m,_),e.fill();const v=0+t.borderSize+t.offsetSize+t.paddingTop+t.fontSize/2;e.textAlign="left",e.textBaseline="middle",e.fillStyle=s.color;const S=t.widthCache.yMidCorrection(e,"Apr0");e.translate((h+o)*i,(v+S)*i),(0,r.drawScaled)(e,i,()=>e.fillText(s.text,0,0)),e.restore()}}class o{constructor(e){this._renderer=new n,this._rendererData={background:"",color:"",coordinate:0,text:"",visible:!1,width:0,alwaysInViewPort:!0},this._invalidated=!0,this._model=e,this._renderer.setData(this._rendererData)}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}coordinate(){return this._rendererData.coordinate}_getAlwaysInViewPort(){return!0}_updateImpl(){const e=this._rendererData;if(e.visible=!1,this._model.timeScale().isEmpty()||!this._isVisible())return;const t=this._getIndex();if(null===t)return;e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(), +e.color=(0,s.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t),e.alwaysInViewPort=this._getAlwaysInViewPort();const i=this._model.timeScale().indexToUserTime(t);e.text=null!==i?this._model.dateTimeFormatter().format(i):"",this._invalidated=!1}}},2271:(e,t,i)=>{"use strict";i.d(t,{INVALID_TIME_POINT_INDEX:()=>s});const s=-2e6},5816:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MINUTE_SPAN:()=>s,HOUR_SPAN:()=>r,DAY_SPAN:()=>n,WEEK_SPAN:()=>o,MONTH_SPAN:()=>a,YEAR_SPAN:()=>l,DEFAULT_BAR_SPACING:()=>c});const s=20,r=30,n=40,o=50,a=60,l=70,c=6},23075:(e,t,i)=>{"use strict";i.d(t,{trackDrawingCreated:()=>r,trackDrawingPasted:()=>n,trackDrawingCloned:()=>o,trackChartStyleChanged:()=>a});i(88537),i(16654);function s(e,t){0}function r(e){s()}function n(e){s()}function o(e){s()}function a(e){0}},35218:(e,t,i)=>{"use strict";i.d(t,{translatedIntervalString:()=>r});i(28353);var s=i(9315);function r(e){const t=(0,s.getTranslatedResolutionModel)(e,!0);return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},17691:(e,t,i)=>{"use strict";i.d(t,{ApplyLineToolTemplateUndoCommand:()=>r});var s=i(35762);class r extends s.UndoCommand{constructor(e,t,i){super(i),this._source=e,this._newState=t,this._oldState=e.properties().state()}redo(){this._source.applyTemplate(this._newState)}undo(){this._source.applyTemplate(this._oldState)}}},79495:(e,t,i)=>{"use strict";i.d(t,{ExcludeLineToolsFromGroupUndoCommand:()=>l});var s=i(88537),r=(i(94419),i(28353)),n=i(24980),o=i(35762);const a=new n.TranslatedString("exclude line tools from group {group}",(0,r.t)("exclude line tools from group {group}"));class l extends o.UndoCommand{constructor(e,t,i){super(a.format({group:t.name()})),this._model=e,this._groupId=t.id,this._groupName=t.name(),this._lineToolsIds=i.map(e=>e.id())}redo(){const e=(0,s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));e.excludeLineTools(t),0===e.lineTools().length&&this._model.lineToolsGroupModel().removeGroup(e)}undo(){const e=this._lineToolsIds.map(e=>this._model.dataSourceForId(e)),t=this._model.lineToolsGroupModel().groupForId(this._groupId);null!==t?t.addLineTools(e):this._model.lineToolsGroupModel().createGroup(e,this._groupName,this._groupId)}}},8597:(e,t,i)=>{"use strict";i.d(t,{MergeUpUndoCommand:()=>o,MergeDownUndoCommand:()=>a,MergeToTargetPane:()=>l});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i){super(e,t,i),this._restorePane=!1}redo(){const e=this._chartModel.panes().length,t=this._chartModel.panes()[this._targetPaneIndex()],i=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),r=(0,s.ensureNotNull)(this._chartModel.paneForSource(i)),n=this._chartModel.children(i,!0);r.bulkActionMacro(()=>{n.forEach(e=>this._chartModel.detachSource(e)),this._restorePane=this._chartModel.detachSource(i)}) +;const o="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,a=t.findSuitableScale(i,void 0,o),l=0===a.dataSources().length;if(t.bulkActionMacro(()=>{t.addDataSource(i,a,!1),n.forEach(e=>t.addDataSource(e,a,!1))}),i===this._chartModel.mainSeries()){const e=t.priceScalePosition(a);t.movePriceScale(a,e,0)}if(l){(0,s.ensureNotNull)(i.priceScale()).restoreState(this._newPriceScaleState(t.isOverlay(i)))}this._chartModel.fullUpdate(),e!==this._chartModel.panes().length&&this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){let e;e=this._restorePane?this._chartModel.createPane(this._initialPaneIndex):this._chartModel.panes()[this._initialPaneIndex];const t=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=(0,s.ensureNotNull)(this._chartModel.paneForSource(t)),r=this._chartModel.children(t,!0);i.bulkActionMacro(()=>{r.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(t)});let n=e.getPriceScaleById(this._initialPriceScaleId);null===n&&(n=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro(()=>{e.addDataSource(t,n,!0),r.forEach(t=>e.addDataSource(t,n,!1))}),(0,s.ensureNotNull)(t.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex-1}}class a extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex+1}}class l extends n{constructor(e,t,i,s){super(e,t,s),this._targetPane=i}_targetPaneIndex(){return this._targetPane}}},21749:(e,t,i)=>{"use strict";i.d(t,{MoveSourceUndoCommand:()=>n});var s=i(88537),r=i(35762);class n extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._sourceId=t.id();const r=(0,s.ensureNotNull)(t.priceScale());this._initialPriceScaleId=r.id(),this._initialPriceScaleState=(0,s.ensureNotNull)(t.priceScale()).state();const n=(0,s.ensureNotNull)(e.paneForSource(t));this._initialPriceScalePosition=n.priceScalePosition(r),this._initialPriceScaleIndex=n.priceScaleIndex(r,this._initialPriceScalePosition),this._initialPaneIndex=e.panes().indexOf(n)}_newPriceScaleState(e){const t={...this._initialPriceScaleState};return delete t.m_isLockScale,delete t.id,delete t.m_topMargin,delete t.m_bottomMargin,t}_originalPriceScaleState(){return this._initialPriceScaleState}}},27579:(e,t,i)=>{"use strict";i.d(t,{MoveToNewPriceScaleUndoCommand:()=>o,MoveToExistingPriceScaleUndoCommand:()=>a});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i,s){super(e,t,s),this._sourcePaneRemoved=!1,this._targetPaneIndex=e.panes().indexOf(i)}redo(){const e=this._chartModel.panes()[this._initialPaneIndex],t=this._chartModel.panes()[this._targetPaneIndex],i=e!==t,r=this._targetPriceScale(t),n=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),o=this._chartModel.children(n,!0);for(const e of o)i?(this._chartModel.detachSource(e),t.addDataSource(e,r,!1)):t.move(e,r) +;i?(this._sourcePaneRemoved=this._chartModel.detachSource(n),t.addDataSource(n,r,!1)):t.move(n,r);const a=t.priceScalePosition(r);t.movePriceScale(r,a,this._targetPriceScaleIndex(n)),this._chartModel.fullUpdate()}undo(){this._sourcePaneRemoved&&this._chartModel.createPane(this._initialPaneIndex);const e=this._chartModel.panes()[this._initialPaneIndex],t=e!==this._chartModel.panes()[this._targetPaneIndex],i=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId));let r=e.getPriceScaleById(this._initialPriceScaleId);null===r&&(r=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex));const n=this._chartModel.children(i,!0);for(const i of n)t?(this._chartModel.detachSource(i),e.addDataSource(i,r,!1)):e.move(i,r);t?(this._chartModel.detachSource(i),e.addDataSource(i,r,!1)):e.move(i,r),(0,s.ensureNotNull)(i.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScalePosition=s}_targetPriceScale(e){const t=e.createPriceScaleAtPosition(this._targetPriceScalePosition);return t.restoreState(this._newPriceScaleState("overlay"===this._targetPriceScalePosition)),t}_targetPriceScaleIndex(e){return e===this._chartModel.mainSeries()?0:void 0}}class a extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScaleId=s.id()}_targetPriceScale(e){return(0,s.ensureNotNull)(e.getPriceScaleById(this._targetPriceScaleId))}_targetPriceScaleIndex(e){}}},69746:(e,t,i)=>{"use strict";i.d(t,{PriceScaleChangeUndoCommand:()=>h});var s=i(88537),r=i(28353),n=i(24980),o=i(98125),a=i(35762);const l=(0,o.getLogger)("Chart.ChartUndoModel"),c=new n.TranslatedString("scale price",(0,r.t)("scale price"));class h extends a.UndoCommand{constructor(e,t,i,s,r){super(c,!1),this._newPriceScaleState=null,this._model=e,this._paneIndex=e.panes().indexOf(t),this._priceScaleId=i.id(),this._state=s,this._timestamp=r?performance.now():null}undo(){if(null!==this._newPriceScaleState)return void l.logDebug("PriceScaleChangeUndoCommand.undo: Command is already undone");const[e,t]=this._paneAndScale();this._newPriceScaleState=t.state(),this._model.restorePriceScaleState(e,t,this._state)}redo(){if(null===this._newPriceScaleState)return void l.logDebug("PriceScaleChangeUndoCommand.redo: Command is not undone");const[e,t]=this._paneAndScale();this._model.restorePriceScaleState(e,t,this._newPriceScaleState),this._newPriceScaleState=null}canMerge(e){return e instanceof h&&null!==this._timestamp&&null!==e._timestamp&&null===this._newPriceScaleState&&e._model===this._model&&e._paneIndex===this._paneIndex&&e._priceScaleId===this._priceScaleId&&Math.abs(e._timestamp-this._timestamp)<1e3}merge(e){this._timestamp=e._timestamp}_paneAndScale(){const e=this._model.panes()[this._paneIndex],t=(0,s.ensureNotNull)(e.getPriceScaleById(this._priceScaleId));return[e,t]}}},65284:(e,t,i)=>{"use strict";i.d(t,{RemoveSourcesCommand:()=>m}) +;var s=i(88537),r=i(28353),n=i(24980),o=i(35762),a=i(14291),l=i(98125),c=i(52546),h=i(81851),d=i(79495);class u extends o.UndoCommand{constructor({title:e,chartModel:t,lineDataSourceIds:i}){super(e),this._excludeLineToolsFromGroupUndoCommands=[],this._undoState=[],this._chartModel=t,this._lineDataSourceIds=i}redo(){const e=this._lineDataSourceIds.map(e=>(0,s.ensureNotNull)(this._chartModel.dataSourceForId(e)));this._groupLineToolsByGroups(e).forEach((e,t)=>{const i=new d.ExcludeLineToolsFromGroupUndoCommand(this._chartModel,t,e);i.redo(),this._excludeLineToolsFromGroupUndoCommands.push(i)}),e.forEach(e=>{this._undoState.push({state:e.state(!1),paneIndex:this._chartModel.panes().indexOf((0,s.ensureNotNull)(this._chartModel.paneForSource(e))),sharingMode:e.sharingMode().value()}),this._chartModel.removeSource(e)})}undo(){var e;for(let t=this._undoState.shift();t;t=this._undoState.shift())null===(e=this._chartModel.restoreSource(!1,t.paneIndex,null,t.state,null))||void 0===e||e.share(t.sharingMode);this._excludeLineToolsFromGroupUndoCommands.forEach(e=>e.undo())}_groupLineToolsByGroups(e){const t=this._chartModel.lineToolsGroupModel();return e.reduce((e,i)=>{const s=t.groupForLineTool(i);if(null!==s){const t=e.get(s)||[];t.push(i),e.set(s,t)}return e},new Map)}}const p=(0,l.getLogger)("Chart.RemoveSourcesCommand"),_=new n.TranslatedString("remove line data sources",(0,r.t)("remove line data sources"));class m extends o.UndoCommand{constructor(e,t,i){super(i),this._removeLineDataSourcesUndoCommand=null,this._initialPriceScaleMode=null;const[r,n]=(0,c.closeSourcesSet)(e,t).reduce((e,t)=>((0,a.isLineTool)(t)?e[1].push(t.id()):e[0].push(t.id()),e),[[],[]]);this._chartModel=e,this._sourceIds=r,this._lineDataSourceIds=n,this._sourceStates=[],this._paneIndexes=[],this._priceScalePositionIds=[],this._paneStates=[],this._restorePanes=[];const o=t[0];1===t.length&&(0,h.isStudy)(o)&&(this._initialPriceScaleMode=(0,s.ensureNotNull)(o.priceScale()).mode())}removedIds(){return[...this._sourceIds,...this._lineDataSourceIds]}redo(){this._chartModel.panes().length;const e=this._sourceIds.map(e=>(0,s.ensureNotNull)(this._chartModel.dataSourceForId(e)));this._sourceStates=e.map(e=>(0,s.ensureNotNull)(e.state(!1)));const t=e.map(e=>(0,s.ensureNotNull)(this._chartModel.paneForSource(e)));this._paneIndexes=t.map(e=>this._chartModel.panes().indexOf(e)),this._lineDataSourceIds.length>0&&(this._removeLineDataSourcesUndoCommand=new u({title:_,chartModel:this._chartModel,lineDataSourceIds:this._lineDataSourceIds}),this._removeLineDataSourcesUndoCommand.redo()),this._priceScalePositionIds=e.map((e,i)=>{const s=e.priceScale();if(null===s)return null;const r=t[i].priceScalePosition(s);return{id:s.id(),position:r,priceScaleIndex:t[i].priceScaleIndex(s,r)}});const i=new Set;e.forEach((e,t)=>{i.add(this._paneIndexes[t])}),this._paneStates=e.map((e,s)=>{const r=this._paneIndexes[s];return i.has(r)?t[s].state(!1,!0):null}),this._restorePanes=e.map(e=>this._chartModel.removeSource(e))}undo(){const e=[];for(let t=this._sourceStates.length-1;t>=0;t--){ +const i=this._chartModel.restoreSource(this._restorePanes[t],this._paneIndexes[t],this._paneStates[t],this._sourceStates[t],this._priceScalePositionIds[t]);i&&e.push(i)}e.some((t,i)=>t.id()!==this._sourceIds[e.length-i-1])&&p.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&(0,s.ensureNotNull)(e[0].priceScale()).setMode(this._initialPriceScaleMode),this._removeLineDataSourcesUndoCommand&&this._removeLineDataSourcesUndoCommand.undo()}}},91794:(e,t,i)=>{"use strict";i.d(t,{RestoreDefaultsPreferencesUndoCommand:()=>p});var s=i(88537),r=i(28353),n=i(24980),o=i(35762),a=i(67396),l=i(21761),c=i(13647),h=i(92033),d=i(76166);const u=new n.TranslatedString("apply all chart properties",(0,r.t)("apply all chart properties"));class p extends o.UndoCommand{constructor(e){super(u),this._trading=null,this._oldShowSellBuyButtons=null,this._oldNoConfirmEnabled=null,this._oldShowOnlyRejectionNotifications=null,this._oldShowPricesWithZeroVolume=null,this._oldShowPricesWithSpread=null,this._oldOrderExecutedSoundEnabled=null,this._prevWatermarkPreferences=null,this._model=e,this._trading=(0,h.tradingService)(),null!==this._trading&&(this._oldShowSellBuyButtons=this._trading.showSellBuyButtons.value(),this._oldNoConfirmEnabled=this._trading.noConfirmEnabled.value(),this._oldShowOnlyRejectionNotifications=this._trading.showOnlyRejectionNotifications.value(),this._oldShowPricesWithZeroVolume=this._trading.showPricesWith().zeroVolume.value(),this._oldShowPricesWithSpread=this._trading.showPricesWith().spread.value(),this._oldOrderExecutedSoundEnabled=this._trading.orderExecutedSoundParams.enabled.value()),this._defaultsPreferences=(0,a.defaultsPreferencesByWhiteList)(this._model,this._model.mainSeries()),this._oldPreferences=e.preferences(),this._prevDateFormat=l.dateFormatProperty.value(),this._prevAddPlusButton=d.addPlusButtonProperty.value(),this._prevShowOpenMarkerStatus=c.showMarketOpenStatusProperty.value();const t=this._model.watermarkSource();null!==t&&(this._prevWatermarkPreferences=t.properties().state())}redo(){null!==this._trading&&(this._trading.showSellBuyButtons.setValue(!0),this._trading.noConfirmEnabled.setValue(!1),this._trading.showOnlyRejectionNotifications.setValue(!1),this._trading.showPricesWith().zeroVolume.setValue(!0),this._trading.showPricesWith().spread.setValue(!0),this._trading.orderExecutedSoundParams.enabled.setValue(!1)),this._model.applyPreferences(this._defaultsPreferences),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),(0,l.restoreDateFormatSettingsValue)(),(0,d.restoreAddPlusButtonSettingsValue)(),(0,c.restoreShowMarketOpenStatusProperty)();const e=this._model.watermarkSource();null!==e&&e.restorePropertiesDefaults()}undo(){null!==this._trading&&(this._trading.showSellBuyButtons.setValue((0,s.ensureNotNull)(this._oldShowSellBuyButtons)),this._trading.noConfirmEnabled.setValue((0,s.ensureNotNull)(this._oldNoConfirmEnabled)),this._trading.showOnlyRejectionNotifications.setValue((0, +s.ensureNotNull)(this._oldShowOnlyRejectionNotifications)),this._trading.showPricesWith().zeroVolume.setValue((0,s.ensureNotNull)(this._oldShowPricesWithZeroVolume)),this._trading.showPricesWith().spread.setValue((0,s.ensureNotNull)(this._oldShowPricesWithSpread)),this._trading.orderExecutedSoundParams.enabled.setValue((0,s.ensureNotNull)(this._oldOrderExecutedSoundEnabled))),this._model.applyPreferences(this._oldPreferences),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),l.dateFormatProperty.setValue(this._prevDateFormat),c.showMarketOpenStatusProperty.setValue(this._prevShowOpenMarkerStatus),d.addPlusButtonProperty.setValue(this._prevAddPlusButton);const e=this._model.watermarkSource();null!==e&&null!==this._prevWatermarkPreferences&&e.properties().mergeAndFire(this._prevWatermarkPreferences)}}},97401:(e,t,i)=>{"use strict";i.d(t,{SetPriceScaleCurrencyUndoCommand:()=>o});var s=i(88537),r=i(35762),n=i(37667);class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesCurrencies=new Map,this._oldSourcesCurrencies=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const i of e.seriesLikeSources()){if(!i.isVisible()||!i.isActingAsSymbolSource().value())continue;const e=t||(0,n.symbolOriginalCurrency)((0,s.ensureNotNull)(i.symbolInfo()));this._newSourcesCurrencies.set(i.id(),e),this._oldSourcesCurrencies.set(i.id(),i.currency()),this._showFade=this._showFade||i===o&&i.currency()!==e}}redo(){this._applyCurrencies(this._newSourcesCurrencies)}undo(){this._applyCurrencies(this._oldSourcesCurrencies)}_applyCurrencies(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{(0,s.ensureNotNull)(t.dataSourceForId(i)).setCurrency(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},59836:(e,t,i)=>{"use strict";i.d(t,{SetPriceScaleModeCommand:()=>o});var s=i(88564),r=i(35762),n=i(33291);class o extends r.UndoCommand{constructor(e,t,i,s){super(i),this._newMode=e,this._priceScaleId=t.id(),this._model=s,this._oldMode=t.mode()}redo(){this._applyMode(this._newMode)}undo(){this._applyMode(this._oldMode)}_applyMode(e){const t=this._findPriceScaleById();null!==t&&((0,s.saveDefaultProperties)(!0),t.setMode(e),(0,s.saveDefaultProperties)(!1),this._model&&(this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()))}_findPriceScaleById(){const e=this._model.panes();for(let t=0;t{"use strict";i.d(t,{SetPriceScaleSelectionStrategyCommand:()=>a});var s=i(88537),r=i(35762),n=i(74325);class o{constructor(e){this._leftScales=e.leftPriceScales().map(e=>e.id()),this._rightScales=e.rightPriceScales().map(e=>e.id())}restorePane(e){this._leftScales.reverse().map(t=>(0,s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"left")),this._rightScales.reverse().map(t=>(0, +s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"right"))}}class a extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=(0,n.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map(e=>new o(e))}redo(){this._chartModel.panes().forEach(e=>e.setPriceScaleSelectionStrategy(this._targetStrategy)),this._chartModel.fullUpdate()}undo(){const e=this._chartModel.panes();for(let t=0;t{"use strict";i.d(t,{SetPriceScaleUnitUndoCommand:()=>o});var s=i(88537),r=i(35762),n=i(37667);class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesUnits=new Map,this._oldSourcesUnits=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const i of e.seriesLikeSources()){if(!i.isVisible()||!i.isActingAsSymbolSource().value())continue;const e=t||(0,n.symbolOriginalUnit)((0,s.ensureNotNull)(i.symbolInfo()),this._chartWidget.model().model().unitConversionEnabled());this._newSourcesUnits.set(i.id(),e),this._oldSourcesUnits.set(i.id(),i.unit()),this._showFade=this._showFade||i===o&&i.unit()!==e}}redo(){this._applyUnits(this._newSourcesUnits)}undo(){this._applyUnits(this._oldSourcesUnits)}_applyUnits(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{(0,s.ensureNotNull)(t.dataSourceForId(i)).setUnit(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},870:(e,t,i)=>{"use strict";i.d(t,{SetScaleRatioPropertiesCommand:()=>o});var s=i(35762),r=i(88564),n=i(33291);class o extends s.UndoCommand{constructor(e,t,i,s){super(i),this._property=e,this._newValue=t,this._model=s,this._priceScale=this._model.mainSeries().priceScale(),this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode()}redo(){this._oldValue=this._property.value(),this._oldMode=this._priceScale.mode(),(0,r.saveDefaultProperties)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),(0,r.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()}undo(){(0,r.saveDefaultProperties)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),(0,r.saveDefaultProperties)(!1),this._model.recalculateAllPanes((0,n.viewportChangeEvent)()),this._model.lightUpdate()}}},52546:(e,t,i)=>{"use strict";function s(e,t){const i=new Set,s=t=>{e.children(t,!1).forEach(e=>{i.has(e)||(i.add(e),s(e))})};return t.forEach(s),t.filter(e=>!i.has(e)).map(t=>function e(t,i){let s=[];const r=t.children(i,!1);for(let i=0;ie.concat(t),[])}i.d(t,{closeSourcesSet:()=>s})},13339:(e,t,i)=>{"use strict";i.d(t,{TimeScaleChangeUndoCommand:()=>o});var s=i(98125),r=i(35762);const n=(0,s.getLogger)("Chart.ChartUndoModel");class o extends r.UndoCommand{constructor(e,t,i){super(i,!1), +this._newRightOffsetAndBarSpacing=null,this.setCustomFlag("doesnt_affect_save",!0),this._model=e,this._rightOffsetAndBarSpacing=t}undo(){if(null!==this._newRightOffsetAndBarSpacing)return void n.logDebug("TimeScaleChangeUndoCommand.undo: Command is already undone");const e=this._model.timeScale();this._newRightOffsetAndBarSpacing={barSpacing:e.barSpacing(),rightOffset:e.rightOffset()},e.setBarSpacing(this._rightOffsetAndBarSpacing.barSpacing),e.setRightOffset(this._rightOffsetAndBarSpacing.rightOffset),this._model.lightUpdate()}redo(){if(null===this._newRightOffsetAndBarSpacing)return void n.logDebug("TimeScaleChangeUndoCommand.redo: Command is not undone");const e=this._model.timeScale();e.setBarSpacing(this._newRightOffsetAndBarSpacing.barSpacing),e.setRightOffset(this._newRightOffsetAndBarSpacing.rightOffset),this._model.lightUpdate(),this._newRightOffsetAndBarSpacing=null}}},35762:(e,t,i)=>{"use strict";i.d(t,{UndoCommand:()=>r});var s=i(24980);class r{constructor(e,t=!0){this._customFlags={},this._text=e||new s.TranslatedString("",""),this._executeOnPush=t}text(){return this._text}executeOnPush(){return this._executeOnPush}customFlag(e){return this._customFlags[e]}setCustomFlag(e,t){this._customFlags[e]=t}canMerge(e){return!1}merge(e){throw new Error("Should be re-implemented in child classes")}}},52940:(e,t,i)=>{"use strict";i.d(t,{createUndoHistory:()=>u});var s=i(88537),r=i(44556),n=i(16757),o=i(35762);class a extends o.UndoCommand{constructor(e,t,i){super(i),this._wv=e,this._newValue=t,this._oldValue=e.value()}redo(){this._wv.setValue(this._newValue)}undo(){this._wv.setValue(this._oldValue)}}var l=i(98125),c=i(2872),h=i.n(c);const d=(0,l.getLogger)("Common.UndoHistory");function u(){const e=[],t=new r.UndoStack,i=new r.UndoStack,o=new(h());function l(s){if(e.length>0)e[e.length-1].addCommand(s);else{i.clear();const e=t.head(),r=e&&e.text().originalText();e&&e.canMerge(s)?e.merge(s):t.push(s);const n=s.text().originalText();""!==n&&n!==r&&d.logNormal("DO: "+n)}s.executeOnPush()&&s.redo(),e.length||o.fire(c())}function c(){const e=t.head(),s=i.head();return{enableUndo:!t.isEmpty(),undoText:void 0===e?void 0:e.text().translatedText(),enableRedo:!i.isEmpty(),redoText:void 0===s?void 0:s.text().translatedText()}}return{beginUndoMacro:function(t){const i=new n.UndoMacroCommand(t);return e.push(i),i},clearStack:function(){t.clear(),i.clear(),o.fire(c())},createUndoCheckpoint:function(){return{lastActualCommand:t.isEmpty()?null:t.head()}},endUndoMacro:function(){const t=(0,s.ensureDefined)(e.pop());t.isEmpty()||l(t)},pushUndoCommand:l,redo:function(){if(i.isEmpty())return!1;const e=i.pop();return!!e&&(e.redo(),t.push(e),d.logNormal("REDO: "+e.text().originalText()),o.fire(c()),!0)},redoStack:function(){return i},setWatchedValue:function(e,t,i,s){if(e.value()!==t){const r=new a(e,t,i);r.setCustomFlag("doesnt_affect_save",!!s),l(r),r.redo()}},undo:function(){if(t.isEmpty())return!1;const e=t.pop();return!!e&&(e.undo(),i.push(e),d.logNormal("UNDO: "+e.text().originalText()),o.fire(c()),!0)},undoStack:function(){ +return t},undoToCheckpoint:function(e){for(;!t.isEmpty()&&e.lastActualCommand!==t.head();)t.pop().undo();i.clear(),o.fire(c())},state:c,onChange:function(){return o}}}},16757:(e,t,i)=>{"use strict";i.d(t,{UndoMacroCommand:()=>r});var s=i(35762);class r extends s.UndoCommand{constructor(e){super(e,!1),this._subcommands=[]}addCommand(e){this._subcommands.push(e)}isEmpty(){return 0===this._subcommands.length}redo(){for(let e=0;e=0;e--)this._subcommands[e].undo()}commands(){return this._subcommands}}},44556:(e,t,i)=>{"use strict";i.d(t,{UndoStack:()=>a});var s=i(35762),r=i(2872),n=i.n(r);const o=(0,i(98125).getLogger)("Common.UndoStack");class a{constructor(){this._commands=[],this._onChange=new(n())}onChange(){return this._onChange}isEmpty(){return 0===this._commands.length}clear(){this.isEmpty()||(this._commands.length=0,this._onChange.fire())}push(e){if(!(e instanceof s.UndoCommand))throw new TypeError("argument must be an instance of UndoCommand");this._commands.push(e),this._onChange.fire(e)}pop(){if(this.isEmpty())return void o.logDebug("pop: undo stack is empty");const e=this._commands.pop();return this._onChange.fire(e),e}head(){if(!this.isEmpty())return this._commands[this._commands.length-1]}}},36551:(e,t,i)=>{"use strict";i.d(t,{UnmergeDownUndoCommand:()=>o,UnmergeUpUndoCommand:()=>a,UnmergeToNewBottomPane:()=>l});var s=i(88537),r=i(21749);class n extends r.MoveSourceUndoCommand{constructor(e,t,i){super(e,t,i)}redo(){const e=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{i.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(e)});const r=this._chartModel.createPane(this.targetPaneIndex()),n=r.findSuitableScale(e);r.bulkActionMacro(()=>{r.addDataSource(e,n,!1),i.forEach(e=>r.addDataSource(e,n,!1))}),(0,s.ensureNotNull)(e.priceScale()).restoreState(this._newPriceScaleState(r.isOverlay(e))),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=(0,s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=(0,s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{i.forEach(e=>this._chartModel.detachSource(e));const t=this._chartModel.detachSource(e);(0,s.assert)(t,"Undo of detaching must remove pane")});const r=this._chartModel.panes()[this._initialPaneIndex];let n=r.getPriceScaleById(this._initialPriceScaleId);null===n&&(n=r.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),r.bulkActionMacro(()=>{r.addDataSource(e,n,!0),i.forEach(e=>r.addDataSource(e,n,!1))}),(0,s.ensureNotNull)(e.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex+1}}class a extends n{constructor(e,t,i){ +super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex}}class l extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._chartModel.panes().length}}},79222:(e,t,i)=>{"use strict";i.d(t,{unitConvertibleGroups:()=>n,sourceNewUnitOnPinningToPriceScale:()=>o});var s=i(79680),r=i(37667);function n(e,t,i){const s=(0,r.symbolUnitConvertibleGroupsIfExist)(e,!0);if(null!==s)return s;const n=i.unitGroupById(t);return null===n?[]:[n]}function o(e,t,i,r){let o=null;if(i.unitConversionEnabled()&&(0,s.isSymbolSource)(e)){const s=i.availableUnits(),a=t.unit(s),l=e.unit(),c=null===l?[]:n(e.symbolInfo(),l,s);null!==a&&null!==a.selectedUnit&&!a.allUnitsAreOriginal&&a.selectedUnit!==l&&(r&&null===l||null!==l&&s.convertible(l,c))&&(o=a.selectedUnit)}return o}},10133:(e,t,i)=>{"use strict";i.d(t,{createVisibilityController:()=>l});var s=i(28353),r=i(32563),n=i(32255),o=i(56840);function a(e){return"alwaysOn"===e||"alwaysOff"===e?e:"visibleOnMouseOver"}function l(e,t){let i,l;function c(){if(!i){i=(0,n.createPrimitiveProperty)();let s=o.getValue(e);void 0===s&&void 0!==t&&(s=o.getValue(t)),i.setValue(a(s)),i.subscribe(i,t=>{o.setValue(e,a(t.value()))})}return i}return{property:c,availableValues:function(){return[{id:"visibleOnMouseOver",value:"visibleOnMouseOver",title:(0,s.t)("Visible on mouse over")},{id:"alwaysOn",value:"alwaysOn",title:(0,s.t)("Always visible")},{id:"alwaysOff",value:"alwaysOff",title:(0,s.t)("Always invisible")}]},actualBehavior:function(){if(!l){l=(0,n.createPrimitiveProperty)();const e=c(),t=()=>{let t=e.value();"alwaysOn"!==t&&"alwaysOff"!==t&&(t=r.mobiletouch?"alwaysOn":"visibleOnMouseOver"),l&&l.setValue(t)};e.subscribe(l,t),t()}return l}}}},62587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{watermarkProperty:()=>h,restoreWatermarkPropertyDefaults:()=>d});var s=i(24377),r=i(56840),n=i(2015),o=i.n(n);const a={visibility:!1,color:"rgba(80, 83, 94, 0.25)"};function l(){const e=r.getJSON("symbolWatermark");let t=Object.assign({},a,e);if(void 0===e){if(void 0!==r.getJSON("chartproperties")){const e=r.getJSON("chartproperties").symbolWatermarkProperties;if(void 0!==e){const i=(0,s.tryParseRgba)(e.color);t=Object.assign(t,e),null!==i&&(0!==i[3]?t.visibility=!0:(i[3]=.25,t.color=(0,s.rgbaToString)(i)))}}delete t.transparency}return t}let c=null;function h(){return null===c&&(c=new(o())(l()),r.onSync.subscribe(null,()=>{null!==c&&c.mergeAndFire(l())}),c.listeners().subscribe(null,()=>{null!==c&&r.setJSON("symbolWatermark",c.state())})),c}function d(){null!==c&&c.mergeAndFire(a)}},39094:(e,t,i)=>{"use strict";var s=i(35218).translatedIntervalString,r=i(1570).getTranslatedSymbolDescription,n=i(22799).CHART_FONT_FAMILY,o=i(62587),a=o.watermarkProperty,l=o.restoreWatermarkPropertyDefaults,c=i(93435).drawScaled,h=i(59803).applyDefaultsOverrides,d=i(59803).applyPropertiesOverrides;t.Watermark=function(e,t){var i={},o=a();function u(e,t){var s=e.font;return i.hasOwnProperty(s)||(i[s]={}),i[s].hasOwnProperty(t)||(i[s][t]=e.measureText(t).width),i[s][t]}h(o,void 0,!1,"symbolWatermarkProperties"), +o.listeners().subscribe(this,(function(){e.updateSource(this)})),this.destroy=function(){o.listeners().unsubscribeAll(this)},this.properties=function(){return o},this.restorePropertiesDefaults=function(){l()},this.applyOverrides=function(e){d(o,void 0,!1,e,"symbolWatermarkProperties")};var p={renderer:function(e,i){return{draw:function(a,l){c(a,l.pixelRatio,(function(){var l=t.symbolInfo();a.fillStyle=o.color.value();var c,h=l.name;/QUANDL/.test(l.exchange)&&((c=h.split(/\//)).length&&(h=c[c.length-1]));for(var d={description:l.description,short_description:l.short_description,pro_name:l.pro_name,short_name:l.name,local_description:l.local_description,language:l.language},p=[{text:h?h+", "+s(t.interval()):"",font:"96px "+n,lineHeight:117,vertOffset:0},{text:r(d)||"",font:"48px "+n,lineHeight:58,vertOffset:5}],_=0,m=0;mi?i/g:1,_+=v.lineHeight*v.zoom}}var f=Math.max((e-_)/2,0);for(m=0;m{"use strict";i.d(t,{reorderDataSourcesStateZOrder:()=>S,newLineToolZOrder:()=>w,newStudyZOrder:()=>C,moveAfterSource:()=>E,moveBeforeSource:()=>k});var s=i(14291),r=i(81851),n=i(56972),o=i(50669),a=i(55257);function l(e){return(0,s.isLineTool)(e)&&!e.isSpeciallyZOrderedSource()}function c(e){return(0,r.isStudy)(e)&&!e.isSpeciallyZOrderedSource()}function h(e,t){return e.zorder-t.zorder}function d(e,t){(0,o.isMainSeriesState)(e)?e.zorder=0:e.zorder=t}function u(e,t){e.setZorder(t)}function p(e){return e.zorder()}function _(e){return Math.round(1e3*e)/1e3}function m(e,t){const i=Math.max(e,t),s=Math.min(e,t);return Math.max(0,Math.ceil(i)-Math.floor(s)-1)}function g(e,t,i){let s=0;const r=(n=t,o=e,Math.abs(1e3*o-1e3*n)/1e3);var n,o,a;return r>i?(e=Math.trunc(e),s=Math.floor(r/(i+1))):(a=r/(i+1),s=Math.floor(1e3*a)/1e3),{startZOrder:e,zOrderStep:s}}function f(e,t,i,s){let r=e.length,n=t;for(let t=e.length-1;t>=-1;t--)if(-1===t||s(e[t])){const s=t;let o=T(n);if(r-1===s)s>=0&&i(e[s],o);else{const t=m(r,s);let a=0;for(;0===a;){const e=g(n,o,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(o-=1e4,0===o&&(o-=1e4))}let l=r-1;for(;l>s;){const t=_(n-a);i(e[l],t),n=t,l--}s>=0&&i(e[s],o)}n=o,r=s}}function v(e,t,i,s){let r=-1,n=t;for(let t=0;t<=e.length;t++)if(t===e.length||s(e[t])){const s=t;let o=P(n);if(r+1===s)s<=e.length-1&&i(e[s],o);else{const t=m(r,s);let a=0;for(;0===a;){const e=g(n,o,t);n=e.startZOrder,a=e.zOrderStep,0===a&&(o+=1e4,0===o&&(o+=1e4))}let l=r+1;for(;l<=s-1;){const t=_(n+a);i(e[l],t),n=t,l++}s<=e.length-1&&i(e[s],o)}n=o,r=s}}function S(e){!function(e,t,i,s,r,n){let o=null;const a=[];for(const r of e)t(r)?(a.push(r),o=r):(i(r)||s(r))&&a.push(r);a.sort(n),null!==o&&r(o,0);const l=null===o?-1:a.indexOf(o);-1!==l?(f(a.slice(0,l),0,r,i), +v(a.slice(l+1),0,r,i)):v(a,0,r,i)}(e,o.isMainSeriesState,o.isStudyState,o.isLineToolState,d,h)}function y(e,t){const i=Math.floor(e/1e4);let s=t.get(i);return void 0===s&&(s=[],t.set(i,s)),s}function b(e,t,i,s,r,n){let o=-1/0,a=1/0,l=-1/0,c=0;const h=new Map;for(let s=0;sr(e)-r(t));let p=T(r(u[0]));const m=P(p),f=g(p,m,u.length+1).zOrderStep;return 0!==f?(u.forEach(e=>{const t=_(p+f);s(e,t),p=t}),_(p+f)):_(m+5e3)}function w(e,t){return b(e,l,c,u,p,t)}function C(e){let t=-1e4;for(const i of e)c(i)&&(t=Math.min(t,i.zorder()-1e4));return 0===t?-1e4:t}function P(e){const t=1e4*Math.ceil(e/1e4);return t===e?t+1e4:t}function T(e){const t=1e4*Math.floor(e/1e4);return t===e?t-1e4:t}function x(e,t,i,s,r,n,o){const l=t.length,{newItems:c,movedItemsStartIndex:h}=i>0?(0,a.moveAfter)(e,t,i-1):(0,a.moveBefore)(e,t,0);let d=!1;for(let t=h;tr(e))?function(e,t,i,s,r,n){let o,a,l=-1,c=-1;0===i?(c=I(e,i+t,s),a=n(e[c])):i+t===e.length?(l=M(e,i-1,s),o=n(e[l])):(l=M(e,i-1,s),o=n(e[l]),c=I(e,i+t,s),a=n(e[c]));if((void 0===o||o<0)&&void 0!==a&&a<=0)f(e.slice(0,c),a,r,s);else if((void 0===a||a>0)&&void 0!==o&&o>=0)v(e.slice(l+1),o,r,s);else{const n=i+t,o=e.length-i;n0)&&void 0!==a&&a>=0){c=a;const e=void 0!==l?l:P(a),s=g(c,e,t);c=s.startZOrder,p=s.zOrderStep,d=i,u=d+t,h=1}if(0!==p)for(;d!==u;){const t=_(c+h*p);n(e[d],t),c=t,d+=h}else{const t=e.findIndex(e=>r(e));-1!==t?(f(e.slice(0,t),0,n,s),v(e.slice(t+1),0,n,s)):v(e,0,n,s)}}(c,l,h,r,s,n,o)}function I(e,t,i){for(;t=0&&i(e[t]);)t--;return Math.max(0,t)}function L(e,t,i,s,r,n,o){const a=e.indexOf(i)+1;x(e,t,a,s,r,n,o)}function A(e,t,i,s,r,n,o){const a=e.indexOf(i);x(e,t,a,s,r,n,o)}function E(e,t,i){L(e,t,i,n.isSeries,c,u,p)}function k(e,t,i){A(e,t,i,n.isSeries,c,u,p)}},89453:(e,t,i)=>{"use strict";i.d(t,{setSymbolSearchCompleteOverrideFunction:()=>r,getSymbolSearchCompleteOverrideFunction:()=>n});let s=e=>Promise.resolve(e);function r(e){s=e}function n(){return s}},67072:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(2015),r=i(98125).getLogger("Chart.Study.MetaInfo"),n=i(59572).applyOverridesToStudyDefaults,o={};function a(e){ +TradingView.merge(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),TradingView.merge(this,e);var t=e.fullId||e.id;TradingView.merge(this,a.parseIdString(t))}a.VERSION_STUDY_ARG_SOURCE=41,a.METAINFO_FORMAT_VERSION_SOS_V2=42,a.VERSION_PINE_PROTECT_TV_4164=43,a.CURRENT_METAINFO_FORMAT_VERSION=52,a.VERSION_NEW_STUDY_PRECISION_FORMAT=46,a.CHILD_STUDY_ALLOWED_PLOT_TYPES=["line"],a.canPlotBeSourceOfChildStudy=function(e){return a.CHILD_STUDY_ALLOWED_PLOT_TYPES.includes(e)},a.CHILD_STUDY_EXCLUDE_IDS=["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"],a.CHILD_STUDY_PARENT_EXCLUDE_IDS=[],a.FilledArea={},a.FilledArea.TYPE_PLOTS="plot_plot",a.FilledArea.TYPE_HLINES="hline_hline",a.versionOf=function(e){var t="_metainfoVersion"in e&&isNumber(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&r.logError("Metainfo format version cannot be negative: "+t),t},a.parseIdString=function(e){var t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{var i=e.split("@");t.shortId=i[0];var s=i[1].split("-");if(3===s.length)t.packageId=s.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=s[2];else if(1===s.length&&"decisionbar"===s[0])t.packageId="les-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1;else{if(1!==s.length)throw new Error("unexpected study id:"+e);t.packageId="tv-"+s[0],t.id=t.shortId+"@"+t.packageId,t.version=1}}if(t.fullId=t.id+"-"+t.version,"tv-scripting"===t.packageId){var r=t.shortId;if(0===r.indexOf("Script$")||0===r.indexOf("StrategyScript$")){var n=r.indexOf("_");t.productId=n>=0?r.substring(0,n):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t},a.getPackageName=function(e){return(/^[^@]+@([^-]+-[^-]+)/.exec(e||"")||[0,"tv-basicstudies"])[1]},a.cutDollarHash=function(e){var t=e.indexOf("$"),i=e.indexOf("@");return-1===t?e:e.substring(0,t)+(i>=0?e.substring(i):"")},a.hasUserIdSuffix=function(e){return/^USER;[\d\w]+;\d+$/.test(e)},a.isStandardPine=function(e){return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)},a.getSourceIdByInputs=function(e,t){if(!Array.isArray(e)||!t)return null;for(var i=0;i0){var l=o.replace(/^[^\$]+/,t);i.inputs[n.id].setValue(l)}}}},a.patchChildStudyMetaInfoState=function(e){e.state&&function e(t){if("object"==typeof t)for(var i in t)"string"==typeof t[i]&&/^[^\$]+\$\d+$/.test(t[i])?t[i]=t[i].replace(/^[^\$]+/,"{pid}"):e(t[i])}(e.state.inputs),e.state.isChildStudy=!0},a.getStudyIdWithLatestVersion=function(e){const t=a.cutDollarHash(e.id);let i=t +;return t.indexOf("@tv-scripting")>=0?i+="-101!":i+="-"+e.version,i},a.prototype.parseValue=function(e,t){return"bool"===e?TradingView.parseBool(t):t},a.prototype.defaultInputs=function(){for(var e=[],t=0;t0?e[0].id:null},a.prototype.createDefaults=function(){if(this.defaults){var e=TradingView.clone(this.defaults);e.precision="default";var t=a.getStudyPropertyRootName(this);defaults.create(t,e)}},a.prototype.removeDefaults=function(){defaults.remove(a.getStudyPropertyRootName(this))},a.findStudyMetaInfoByDescription=function(e,t){if(e){for(var i=0;i{"use strict";window.TradingView=window.TradingView||{},window.requireAll=function(e){return e.keys().map(e)},i(28353),i(32563).setClasses(),i(9196),i(56186).install(),i(49483),i(80643),i(29892),i(94419),i(11417),i(11372),i(27171),i(56840)},97881:(e,t,i)=>{"use strict";var s=i(28353).t;i(70606);var r=i(88537).assert;i(96488),i(59803),i(87980);const n=i(67337);JSON.parse(urlParams.disabledFeatures).forEach((function(e){n.setEnabled(e,!1)})),JSON.parse(urlParams.enabledFeatures).forEach((function(e){n.setEnabled(e,!0)})),function(){window.__settingsOverrides=window.parent[window.urlParams.uid].settingsOverrides||{};var e=window.parent[window.urlParams.uid].settingsAdapter;null!=e?(TVSettings.setSettingsAdapter(e),TVSettings.sync()):n.enabled("use_localstorage_for_settings")&&TVSettings.sync()}();var o=i(22799).setChartFontFamily;window.urlParams.customFontFamily&&o(window.urlParams.customFontFamily);var a=i(84120).RestrictedToolsetBootloader,l=i(9753).HeaderToolbarBootloader,c=i(84746).DrawingToolbarBootloader,h=i(85593).isDrawingToolbarVisible;(0,i(32563).setClasses)();var d=i(6087),u=i(45345).setTheme,p=i(33225),_=i(17437),m=i(25760),g=i(47193).migrateShortcut,f=i(76900).ChartSaver,v=i(41051).SaveChartService,S=i(86879).LoadChartService,y=i(46723).StudyTemplates,b=i(22668).FavoriteStudyTemplateService,w=i(82992).linking,C=i(76422),P=i(97098).formatterOptions,T=i(69147).customFormatters,x=i(34615).StudyMarket,I=i(21097).TVXWindowEvents,M=i(81836).createDeferredPromise,L=i(15840).deepExtend,A=i(9423).randomHash,E=i(65576).convertPropertyToWatchedValue,k=i(95707).property,D=i(62428).property,V=i(21761).dateFormatProperty,B=i(43370).default,N=i(29823).Interval,R=i(89356).Root,O=i(28325).ChartPage,F=i(39138).destroyQuoteSessions,W=i(73383).TIMEFRAMETYPE,H=new O(new R(window).allocate()),z=H.allocate({areaName:"center"}),U=(window.parent[urlParams.uid].brokerFactory,Boolean(!1)),j=i(54427).CHART_WIDGET_COLLECTION_SERVICE,G=i(16216);i(65235);var q=i(43425),Y=i(12409).createFavoriteDrawingToolbar,K=i(77317).setupChartEventHint,$=i(81602).setupChartScreenshotHint,X=i(87983),Z=i(67072),J=i(28399);i(27595),i(15495);var Q=i(78136).setSearchRequestDelay,ee=i(16654),te=i(216),ie=i(17937).addBrandingSource,se=i(13221).setAdditionalSymbolInfoFields,re=i(89453).setSymbolSearchCompleteOverrideFunction,ne=i(52741).DropdownApi,oe=i(97056).ContextMenuManager;const ae=new AbortController;var le=window.parent[urlParams.uid].getCustomIndicators,ce=M(),he=M(),de=n.enabled("left_toolbar");if(void 0!==window.parent[urlParams.uid].contextMenu){var ue=window.parent[urlParams.uid].contextMenu;void 0!==ue.items_processor&&oe.setCustomItemsProcessor(ue.items_processor),void 0!==ue.renderer_factory&&oe.setCustomRendererFactory(ue.renderer_factory)} +if(Promise.all([ce.promise,he.promise]).then((function(){window.ChartApiInstance.start()})),"function"==typeof le){var pe=le(te);pe&&pe.then?pe.then((function(e){if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void ce.resolve();JSServer.studyLibrary.push.apply(JSServer.studyLibrary,e),ce.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((function(e){console.warn("Error loading custom indicators "+e),ce.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),ce.resolve())}else ce.resolve();window.widgetReady=function(e){C.subscribe("onChartReady",e)};var _e=urlParams.theme&&urlParams.theme.toLowerCase();function me(e){window.__defaultsOverrides=window.__defaultsOverrides||{},L(window.__defaultsOverrides,e),void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&(window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools())}!function(e){d.themes[e]&&u(e)}(_e),window.applyStudiesOverrides=function(e){e&&(window.chartWidgetCollection?window.chartWidgetCollection.applyStudiesOverrides(e):Z.mergeDefaultsOverrides(e))},window.applyOverrides=function(e){me(e),window.chartWidgetCollection&&window.chartWidgetCollection.applyOverrides(e)},window.doWhenApiIsReady=function(e){window.tradingViewApi?e():he.promise.then(e)},window.applyTradingCustomization=function(e){for(var t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];for(var t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},window.changeTheme=function(e,t){var i=d.themes[e.toLowerCase()];return i?window.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo):Promise.resolve()},window.getTheme=function(){return window.tradingViewApi.themes().getCurrentThemeName()},window.is_authenticated=!1;JSON.parse(window.urlParams.brokerConfig);s("charts by TradingView"),s("powered by TradingView"),s("by TradingView");var ge=null,fe=M(),ve=null,Se=function(){if(n.setEnabled("charting_library_debug_mode","true"===urlParams.debug),n.setEnabled("chart_property_page_trading",!1),n.enabled("remove_library_container_border")){var e=document.querySelector("#library-container");null!==e&&(e.style.border="0px",e.style.padding="1px")}n.enabled("no_min_chart_width")&&(window.document.body.style.minWidth="0px"),null!=urlParams.studiesOverrides&&Z.mergeDefaultsOverrides(JSON.parse(urlParams.studiesOverrides)),r(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),me(JSON.parse(urlParams.overrides)),urlParams.numeric_formatting=urlParams.numeric_formatting&&JSON.parse(urlParams.numeric_formatting),urlParams.numeric_formatting&&"string"==typeof urlParams.numeric_formatting.decimal_sign&&(P.decimalSign=urlParams.numeric_formatting.decimal_sign[0]), +window.ChartApiInstance=new X(window.parent[urlParams.uid].datafeed),window.parent[urlParams.uid].customFormatters&&(window.parent[urlParams.uid].customFormatters.timeFormatter&&(T.timeFormatter=window.parent[urlParams.uid].customFormatters.timeFormatter),window.parent[urlParams.uid].customFormatters.dateFormatter&&(T.dateFormatter=window.parent[urlParams.uid].customFormatters.dateFormatter),window.parent[urlParams.uid].customFormatters.tickMarkFormatter&&(T.tickMarkFormatter=window.parent[urlParams.uid].customFormatters.tickMarkFormatter),window.parent[urlParams.uid].customFormatters.priceFormatterFactory&&(T.priceFormatterFactory=window.parent[urlParams.uid].customFormatters.priceFormatterFactory),window.parent[urlParams.uid].customFormatters.studyFormatterFactory&&(T.studyFormatterFactory=window.parent[urlParams.uid].customFormatters.studyFormatterFactory)),window.ChartApiInstance.setStudiesAccessController(window.ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess));var t=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,o=urlParams.chartContentExtendedData?JSON.parse(urlParams.chartContentExtendedData):t?t.extendedData:void 0,u=urlParams.interval||"D",_=function(e){var t=/(\d+)(\w+)/;return e.map((function(e){var i=t.exec(e.text),r=i[2].toLowerCase(),n=parseInt(i[1]),o="y"===r?12*n+"M":n+r,a=N.parse(e.resolution);return{text:s(e.title)||n+s(r,{context:"dates",count:n}),description:e.description||"",value:{value:o.toUpperCase(),type:W.PeriodBack},targetResolution:a.value(),requiresIntraday:a.isIntraday()}}))}(JSON.parse(urlParams.timeFrames)),m={resizerBridge:z,padding:n.enabled("border_around_the_chart")?2:0,content:t,widgetOptions:{addToWatchlistEnabled:!1,hideIdeas:!0,addVolume:window.ChartApiInstance.studiesAccessController.isToolEnabled("Volume"),muteSessionErrors:!0,timezone:urlParams.timezone,defSymbol:urlParams.symbol,defInterval:u,compareSymbols:urlParams.compareSymbols&&JSON.parse(urlParams.compareSymbols),defTimeframe:window.parent[urlParams.uid].timeframe,paneContextMenuEnabled:n.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:U},priceScaleContextMenuEnabled:n.enabled("scales_context_menu"),currencyConversionEnabled:n.enabled("pricescale_currency"),unitConversionEnabled:n.enabled("pricescale_unit"),legendWidgetEnabled:n.enabled("legend_widget"),legendWidget:{contextMenu:{settings:n.enabled("show_chart_property_page"),showOpenMarketStatus:n.enabled("display_market_status")}},sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:n.enabled("display_market_status"),chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:n.enabled("scales_context_menu"),timezoneMenuEnabled:n.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:n.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:n.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:n.enabled("right_bar_stays_on_scroll"), +minBarSpacing:urlParams.time_scale&&JSON.parse(urlParams.time_scale).min_bar_spacing},goToDateEnabled:n.enabled("go_to_date"),crossHair:{menuEnabled:n.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:n.enabled("mouse_wheel_scale"),pinch:n.enabled("pinch_scale"),axisPressedMouseMove:{time:n.enabled("axis_pressed_mouse_move_scale"),price:n.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:n.enabled("mouse_wheel_scroll"),pressedMouseMove:n.enabled("pressed_mouse_move_scroll"),horzTouchDrag:n.enabled("horz_touch_drag_scroll"),vertTouchDrag:n.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:n.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:n.enabled("cropped_tick_marks"),countdownEnabled:n.enabled("countdown"),indicatorsDialogShortcutEnabled:n.enabled("insert_indicator_dialog_shortcut")},seriesControlBarEnabled:n.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:n.enabled("go_to_date"),availableTimeFrames:function(e,t){return e?t!==ee.STATUS_DELAYED&&t!==ee.STATUS_DELAYED_STREAMING&&t!==ee.STATUS_READY?[]:_.filter((function(t){return!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))})):[]}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:n.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,sessionIdButtonEnabled:n.enabled("pre_post_market_sessions"),backAdjustmentButtonEnabled:!1,settlementAsCloseButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0,fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:urlParams.snapshotUrl,mobileForceChartMaximizeEnabled:!1,saveChartEnabled:n.enabled("save_shortcut")};de&&(Y(),m.widgetOptions.isDrawingToolbarVisible=h),o&&(m.metaInfo={id:o.uid,name:o.name,description:o.description,uid:o.uid,username:"",tags:""}),window.parent[urlParams.uid].additionalSymbolInfoFields&&se(window.parent[urlParams.uid].additionalSymbolInfoFields),window.parent[urlParams.uid].symbolSearchComplete&&re(window.parent[urlParams.uid].symbolSearchComplete);var g=window.chartWidgetCollection=new q(m);let M=!1;g.onAboutToBeDestroyed.subscribe(null,()=>{M=!0},!0),ie(g),window.studyMarket=new x(g),void 0!==G&&G.registerService(j,g),g.activeChartWidget.subscribe((function(e){C.emit("activeChartChanged",g.getAll().indexOf(e))})),window.saver=new f(g);var L=new v(g,window.saver),A=new S(g);window.chartWidget=g.activeChartWidget.value(),window.pro=new TradingView.Pro;var E=function(e){if(!n.enabled("header_widget"))return null;var t=H.allocate({areaName:"top"}),s=new(0,i(68425).ChartChangesWatcher)(e.chartWidgetCollection.undoHistory,e.chartWidgetCollection.lineToolsSynchronizerHasChanges,window.saver,C),r=JSON.parse(urlParams.favorites);r.intervals=r.intervals.map((function(e){var t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t}));var o=null;n.enabled("study_templates")&&(o=new b(I,TVSettings),ve=new y({ +chartWidgetCollection:e.chartWidgetCollection,favoriteStudyTemplatesService:o}));var c=void 0,h=urlParams.header_widget_buttons_mode;"fullsize"===h&&(c=["full"]);"compact"===h&&(c=["small"]);return new l(new a,{chartSaver:window.saver,chartApiInstance:ChartApiInstance,chartWidgetCollection:e.chartWidgetCollection,defaultFavoriteStyles:r.chartTypes,defaultFavoriteIntervals:r.intervals,hideStudyTemplates:!0,resizerBridge:t,studyMarket:window.studyMarket,studyTemplates:ve,favoriteStudyTemplatesService:o,allowedModes:c,saveChartService:e.saveChartService,loadChartService:e.loadChartService,chartChangesWatcher:s,onClick:Me,snapshotUrl:e.snapshotUrl})}({chartWidgetCollection:g,saveChartService:L,loadChartService:A,snapshotUrl:urlParams.snapshotUrl});null!==E?E.load().then((function(e){ge=e.getComponent(),fe.resolve()})):(fe.promise.catch((function(){})),fe.reject("header widget is not loaded"));var k=function(e){if(de){var t=urlParams.toolbarbg&&/^[0-9a-f]+$/i.test(urlParams.toolbarbg)?String(urlParams.toolbarbg):void 0;if(t){var i=document.createElement("style");i.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(i)}return new c({bgColor:t,chartWidgetCollection:e,drawingsAccess:urlParams.drawingsAccess?JSON.parse(urlParams.drawingsAccess):void 0,resizerBridge:H.allocate({areaName:"left"}),onClick:Me})}return null}(g),D=null;window.tradingViewApi=new J({chartWidgetCollection:g,chartApiInstance:window.ChartApiInstance,saveChartService:L,loadChartService:A});if(w.bindToChartWidgetCollection(g),TradingView.isNaN(urlParams.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+urlParams.studyCountLimit)),!TradingView.isNaN(urlParams.ssreqdelay)){var V=Math.max(0,+urlParams.ssreqdelay);Q(V)}window.ChartApiInstance.connect(),Promise.all([i.e(5514),i.e(9129),i.e(8463),i.e(2e3),i.e(6363),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(5998),i.e(1112),i.e(6909),i.e(6416),i.e(7419),i.e(3520),i.e(9042),i.e(323),i.e(2849),i.e(880),i.e(8994),i.e(1890),i.e(638),i.e(1550),i.e(6475),i.e(2306)]).then(i.t.bind(i,87805,23)).then(({default:e})=>{M||(window.lineToolPropertiesToolbar=new e(g))});var R=document.querySelector(".tv-content");function O(){k&&k.load(ae.signal),D&&D.load(ae.signal).then((function(e){window.footerWidget=e.getComponent()}))}null!==R&&R.addEventListener("contextmenu",(function(e){null!==e.target&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),he.resolve(),g.undoHistory.undoStack().onChange().subscribe(null,B((function(e){e&&!e.customFlag("doesnt_affect_save")&&C.emit("onAutoSaveNeeded")}),1e3*(urlParams.autoSaveDelay||5),{leading:!1,trailing:!0})),window.chartWidget.withModel(null,(function(){if(ChartApiInstance.on("realtime_tick",(function(e){C.emit("onTick",e)})),!d.savedThemeName()&&_e){var e=d.getStdTheme(_e);e&&e.content&&void 0===t&&g.applyTheme({theme:e.content,onlyActiveChart:!1,restoreNonThemeDefaults:!1,themeName:_e,standardTheme:!0,syncState:!0,noUndo:!0 +}).then(()=>window.applyOverrides(window.__defaultsOverrides))}n.enabled("charting_library_debug_mode")&&C.subscribeToAll((function(){var e=Array.prototype.slice.call(arguments);console.log('Event "{0}", arguments: {1}'.format(e[0],JSON.stringify(e.slice(1))))})),K&&(K(g),K=null),$&&($(g,{seriesControlBarEnabled:n.enabled("timeframes_toolbar")}),$=null)})),p.isAnyChartWidgetInitialized(g)?O():p.waitAnyChartWidgetInitialized(g,O),C.subscribe("chart_load_requested",(function(e){window.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}))};window.addEventListener("unload",(function(){ae.abort(),window.widgetbar&&(window.widgetbar.destroy(),window.widgetbar=null),window.chartWidgetCollection&&(window.chartWidgetCollection.destroy(),window.chartWidgetCollection=null),window.ChartApiInstance&&window.ChartApiInstance.disconnect(),F(),window.ChartApiInstance&&(window.ChartApiInstance.destroy(),window.ChartApiInstance=null)})),n.enabled("saveload_storage_customization")&&(window.parent[urlParams.uid].saveLoadAdapter?_.setCustomAdapter(window.parent[urlParams.uid].saveLoadAdapter):void 0!==urlParams.chartsStorageUrl&&urlParams.chartsStorageUrl&&void 0!==urlParams.clientId&&urlParams.clientId?_.initialize(urlParams.clientId,urlParams.userId,urlParams.chartsStorageUrl,urlParams.chartsStorageVer||"1.0"):(n.setEnabled("saveload_storage_customization",!1),n.setEnabled("header_saveload",!1)));var ye=M();function be(){ye.resolve()}window.parent[urlParams.uid].loadLastChart&&n.enabled("saveload_storage_customization")?_.getCharts().then((function(e){if(0!==e.length){var t=e.sort((function(e,t){return t.modified_iso-e.modified_iso}))[0];_.getChartContent(t).then((function(e){var t=JSON.parse(e.content);t.extendedData=e,urlParams.chartContent=JSON.stringify({json:t}),be()})).catch(be)}else be()})).catch(be):be();var we,Ce,Pe=M();Promise.all([Pe.promise,ye.promise,window.loadedCustomCss]).then((function(){var e,t,i,s,r,o,a=document.querySelector(".loading-indicator");if(a&&(a.style.display="none"),setTimeout(Se,0),n.enabled("14851")&&Math.random()<=.02){e=window,t=document,i="script",s="ga",e.GoogleAnalyticsObject=s,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,r=t.createElement(i),o=t.getElementsByTagName(i)[0],r.async=1,r.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(r,o);var l=document.URL.match(new RegExp("(:?.*://)([^/]+)/.*"))[2];ga("create","UA-112911840-1","auto"),ga("set","anonymizeIp",!0),ga("set",{hostname:l,page:l,referrer:l}),ga("send","pageview")}})),we=!0,window.parent[urlParams.uid].datafeed.onReady((function(e){we&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),window.configurationData=e,Pe.resolve()})),we=!1,window.getFunctionFromArguments=function(e){return window.parent[urlParams.uid][e]},window.createShortcutAction=(Ce=m.createGroup({desc:"API"}),function(e,t){Ce.add({hotkey:g(e),handler:t})}),window.initializationFinished=function(){ +window.chartWidgetCollection.undoHistory.clearStack()},window.headerReady=function(){return fe.promise},window.createButton=function(e){if(null===ge)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");return(e=e||{}).align=e.align||"left",e.useTradingViewStyle=e.useTradingViewStyle||!1,ge.addButton(A(),e)},window.createDropdown=function(e){if(void 0===e)throw new Error("Cannot create dropdown without any parameters. Please refer to the documentation");void 0===e.align&&(e.align="left");const t=A();return ge?(ge.addDropdown(t,e),Promise.resolve(new ne(ge,t))):fe.promise.then(()=>(ge.addDropdown(t,e),new ne(ge,t)))},window.getAllFeatures=function(){const e=n.getAllFeatures();return Object.keys(e).forEach((function(t){isNaN(parseFloat(t))||delete e[t]})),e};var Te=null;window.getNavigationButtonsVisibility=function(){return null===Te&&(Te=E(k())),Te};var xe=null;window.getPaneButtonsVisibility=function(){return null===xe&&(xe=E(D())),xe};var Ie=null;function Me(e){var t=TradingView.bottomWidgetBar;t&&t.turnOffMaximize()}window.getDateFormat=function(){return null===Ie&&(Ie=E(V)),Ie}},8859:(e,t,i)=>{"use strict";i.d(t,{getPriceAlertsDispatcher:()=>r});i(51872);let s=null;function r(){return new Promise(e=>{null===s?Promise.all([i.e(1729),i.e(6602),i.e(8158)]).then(i.bind(i,60993)).then(t=>{null===s&&(s=new t.AlertsDispatcher),e(s)}):e(s)})}},11372:(e,t,i)=>{e=i.nmd(e),TradingView.cleanButAmpersand=function(e,t){var i=t?["&"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var n=0;n{"use strict";i.r(t);var s=i(21097),r=i(51768),n=i(38780);function o(e,t="x"){let i=!1;return"x"!==t&&"both"!==t||(i=i||e.offsetWidth{document.addEventListener("mouseenter",e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){let e="x";if(t.matches(".apply-overflow-tooltip--direction_both")?e="both":t.matches(".apply-overflow-tooltip--direction_y")&&(e="y"),t.matches(".apply-overflow-tooltip--check-children")){let i=!1;const s=t.children;for(let t=0;t(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e),[]).join("").trim(),(0,n.showOnElement)(t,{text:i});const s=()=>{(0,n.hide)(),["mouseleave","mousedown"].forEach(e=>t.removeEventListener(e,s))};["mouseleave","mousedown"].forEach(e=>t.addEventListener(e,s))}},!0)});var a=i(2872),l=i.n(a),c=i(11417),h=i(15840);let d;function u(e){window.iframeAuthWidget&&!1===window.user.profile_data_filled&&(window.iframeAuthWidget.preventClose=!0);const t=window.user.available_offers||{};window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?(e||(initOfferLoginStateChangeButton(),onGoPro()&&window.user.is_pro&&window.location.reload()),!1===window.user.profile_data_filled&&((0,r.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled)):(Object.keys(t).forEach(e=>{const i=e;t[i].available_for_anons||delete t[i]}),window.user={username:"Guest",following:"0",followers:"0",ignore_list:[],available_offers:t},c.TVLocalStorage.removeItem("trial_availiable"))}d=window.loginStateChange?window.loginStateChange:window.loginStateChange=new(l()),d.subscribe(null,u),s.TVXWindowEvents.on("loginStateChange",e=>{const t=JSON.parse(e);window.user=t.user,window.is_authenticated=!!t.is_authenticated,d.fire()}),s.TVXWindowEvents.on("signOut",()=>{!function(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//].forEach(t=>{t.test(window.location.pathname)&&(e=!1)}),e&&window.location.reload()}()}),(()=>{const e={};window.crossTabSyncUserAttr=e=>{const t={};e instanceof Array?e.forEach(e=>{t[e]=window.user[e]}):t[e]=window.user[e],s.TVXWindowEvents.emit("user-obj-changed",JSON.stringify(t))},s.TVXWindowEvents.on("user-obj-changed",t=>{const i=JSON.parse(t);let s;for(s in i)if(i.hasOwnProperty(s)){window.user[s]=i[s];(e[s]||[]).forEach(e=>{e.fire(i[s])})}})})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,s.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),d.fire()},window.loginUser=function(e,t){window.TVDialogs&&window.TVDialogs.signModal&&window.TVDialogs.signModal.close(),window.user=(0,h.deepExtend)({},e),window.TradingView.changeLoginState(!0),"function"==typeof t&&window.TVDialogs&&window.TVDialogs.signModal?window.TVDialogs.signModal.on("signinSuccess",()=>{t()}):"function"==typeof t&&t()},window.loginRequiredDelegate=new(l()),window.runOrSignIn=(e,t)=>{t||(t={}),e()},window.onLoginStateChange=u,window.TradingView.setTrialAvailiable=e=>{c.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new(l())},68906:(e,t,i)=>{"use strict";i.r(t),i.d(t,{generateColor:()=>r,alphaToTransparency:()=>n,transparencyToAlpha:()=>o,applyTransparency:()=>a,resetTransparency:()=>l,getLuminance:()=>c,isHexColor:()=>h,colorFromBackground:()=>d, +gradientColorAtPercent:()=>u,isColorDark:()=>p,rgbaFromInteger:()=>_,rgbaToInteger:()=>m,colorToInteger:()=>g});var s=i(24377);function r(e,t,i){if(t=t||0,!h(e))return i?(0,s.rgbaToString)((0,s.rgba)((0,s.parseRgb)(e),(0,s.normalizeAlphaComponent)(o(t)))):e;const[r,n,a]=(0,s.parseRgb)(e),l=(0,s.normalizeAlphaComponent)(o(t));return(0,s.rgbaToString)([r,n,a,l])}function n(e){return 100*(1-e)}function o(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function a(e,t){if("transparent"===e)return e;const i=(0,s.parseRgba)(e),r=i[3];return(0,s.rgbaToString)((0,s.rgba)(i[0],i[1],i[2],o(t)*r))}function l(e){return"transparent"===e||h(e)?e:(0,s.rgbaToString)((0,s.rgba)((0,s.parseRgb)(e),(0,s.normalizeAlphaComponent)(1)))}function c(e){const t=(0,s.parseRgb)(e).map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e){return 0===e.indexOf("#")}function d(e){return"black"===(0,s.rgbToBlackWhiteString)((0,s.parseRgb)(e),150)?"#ffffff":"#000000"}function u(e,t,i){const[r,n,o,a]=(0,s.parseRgba)(e),[l,c,h,d]=(0,s.parseRgba)(t),u=(0,s.rgba)(Math.round(r+i*(l-r)),Math.round(n+i*(c-n)),Math.round(o+i*(h-o)),a+i*(d-a));return(0,s.rgbaToString)(u)}function p(e){return c(l(e))<.5}function _(e){const t=(e=Math.round(e))%256;e-=t;const i=(e/=256)%256;e-=i;const s=(e/=256)%256;e-=s;return`rgba(${t},${i},${s},${(e/=256)/255})`}function m(e){const t=Math.round(255*e[3]);return e[0]+256*e[1]+65536*e[2]+16777216*t}function g(e){const t=(0,s.tryParseRgba)(e);return null===t?0:m(t)}},59199:(e,t,i)=>{"use strict";i.d(t,{doAnimate:()=>n});const s={from:0,duration:250,easing:i(68587).easingFunc.easeOutCubic};class r{constructor(e){this._doing=!0,this._completed=!1,this._options={...s,...e};const t=performance.now();window.requestAnimationFrame(e=>{this._animation(t,this._options.from,e)})}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,i){if(!this._doing)return void this._finishAnimation();const s=(i=!i||i<1e12?performance.now():i)-e,r=s>=this._options.duration||t===this._options.to,n=(o=this._options.from,a=this._options.to,l=this._options.easing(s/this._options.duration),o*(1-l)+a*l);var o,a,l;const c=r?this._options.to:n,h=c-t;this._options.onStep(h,c),r?this._finishAnimation():window.requestAnimationFrame(t=>{this._animation(e,c,t)})}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function n(e){return new r(e)}},85198:(e,t,i)=>{"use strict";i.d(t,{fetch:()=>s});(0,i(98125).getLogger)("Fetch");function s(e,t,i={}){return window.fetch(e,t)}},98125:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LOGLEVEL:()=>n,getLogLevel:()=>_,isHighRateEnabled:()=>m,setLogLevel:()=>g,getRawLogHistory:()=>f,serializeLogHistoryEntry:()=>v,getLogHistory:()=>S,getLogger:()=>b,loggingOn:()=>C,loggingOff:()=>P});const s="undefined"!=typeof window?window:{};let r=!1;try{localStorage.getItem(""),r=!0}catch(e){}var n;!function(e){e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO", +e[e.NORMAL=4]="NORMAL",e[e.DEBUG=5]="DEBUG"}(n||(n={}));let o=0;const a=[];let l=null,c=null,h=null,d=NaN,u=n.WARNING,p=!1;function _(){return u}function m(){return p}function g(e){e=Math.max(n.ERROR,Math.min(n.DEBUG,e)),u=e,T()}function f(e,t){let i=a.reduce((e,t)=>e.concat(t),[]);return i.sort((e,t)=>e.id-t.id),void 0!==t&&(i=i.filter(e=>e.subSystemId===t)),"number"==typeof e&&(i=i.slice(-e)),i}function v(e){return new Date(e.timestamp).toISOString()+":"+e.subSystemId+":"+e.message.replace(/"/g,"'")}function S(e,t){return function(e,t){let i,s=0,r=0;for(i=e.length-1;i>=1&&(s+=8*(1+encodeURIComponent(e[i]).length),!(i-1>0&&(r=8*(1+encodeURIComponent(e[i-1]).length),s+r>t)));i--);return e.slice(i)}(f(e,t).map(v),75497472)}function y(e,t,i,r){if(t===c&&r.id===h)return;const a=new Date;if(e<=n.NORMAL&&function(e,t,i,r,n){"function"===s.structuredClone&&(t=s.structuredClone(t));const a={id:o,message:t,subSystemId:r,timestamp:Number(e)};o+=1,i.push(a),void 0!==n&&i.length>n&&i.splice(0,1)}(a,t,i,r.id,r.maxCount),e<=u&&(!r.highRate||m())&&(!l||r.id.match(l))){const i=a.toISOString()+":"+r.id+":"+t;switch(e){case n.DEBUG:console.debug(i);break;case n.INFO:case n.NORMAL:r.color?console.log("%c"+i,"color: "+r.color):console.log(i);break;case n.WARNING:console.warn(i);break;case n.ERROR:console.error(i)}c=t,h=r.id,d&&clearTimeout(d),d=setTimeout(()=>{c=null,h=null,d=NaN},1e3)}}function b(e,t={}){const i=[];a.push(i);const s=Object.assign(t,{id:e});function r(e){return t=>y(e,String(t),i,s)}return{logDebug:r(n.DEBUG),logError:r(n.ERROR),logInfo:r(n.INFO),logNormal:r(n.NORMAL),logWarn:r(n.WARNING)}}const w=b("logger"),C=s.lon=(e,t)=>{g(n.DEBUG),w.logNormal("Debug logging enabled"),p=Boolean(e),l=t||null,T()},P=s.loff=()=>{g(n.INFO),w.logInfo("Debug logging disabled")};function T(){try{r&&(localStorage.setItem("tv.logger.logHighRate",String(p)),localStorage.setItem("tv.logger.loglevel",String(u)))}catch(e){w.logWarn(`Cannot save logger state (level: ${u}, high-rate: ${p}) to localStorage: ${e.message}`)}}!function(){p=!!r&&"true"===localStorage.getItem("tv.logger.logHighRate");let e=parseInt(r&&localStorage.getItem("tv.logger.loglevel")||"");Number.isNaN(e)&&(e=n.WARNING),g(e),w.logNormal(`Init with settings - level: ${u}, high-rate: ${p}`)}(),s.performance&&s.performance.now?w.logNormal("Sync logger and perf times, now is "+s.performance.now()):w.logWarn("Perf time is not available")},52640:(e,t,i)=>{"use strict";function s(e,t,i,s){return`${s?s+" ":""}${i?i+" ":""}${e}px ${t}`}i.d(t,{makeFont:()=>s,parseFont:()=>n});const r=/(bold )?(italic )?(\d+)(px|pt) (.*)$/;function n(e){const t=r.exec(e);return null===t?null:{family:t[5],size:parseInt(t[3])*("pt"===t[4]?.75:1),bold:Boolean(t[1]),italic:Boolean(t[2])}}},45415:(e,t,i)=>{"use strict";i.d(t,{visitObject:()=>n});var s=i(80643);function r(e,t,i){return(0,s.isArray)(e)?function(e,t,i){return e.map(e=>{const s=r(e,t,i),n=t(s);return void 0!==n?n:s})}(e,t,i):(0,s.isObject)(e)&&((0,s.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){const s={} +;return Object.keys(e).forEach(n=>{const o=r(e[n],t,i),a=t(o);s[n]=void 0!==a?a:o}),s}(e,t,i):e}function n(e,t,i){const s=r(e,t,i),n=t(s);return void 0!==n?n:s}},28789:(e,t,i)=>{"use strict";function s(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}i.d(t,{regExpEscape:()=>s})},62820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isRtl:()=>r,stripLTRMarks:()=>o,startWithLTR:()=>a,forceLTRStr:()=>l,forceLTRStrSsr:()=>c,forceRTLStr:()=>h,getLTRScrollLeft:()=>d,getLTRScrollLeftOffset:()=>u,detectAutoDirection:()=>m});var s=i(64531);const r=()=>"rtl"===window.document.dir,n=new RegExp("‎|‪|‫|‬","g");function o(e){return""!==e&&r()&&null!=e?e.replace(n,""):e}function a(e){return""!==e&&r()&&null!=e?"‎"+e:e}function l(e){return""!==e&&r()&&null!=e?"‪"+e+"‬":e}function c(e){return"‪"+e+"‬"}function h(e){return""!==e&&r()&&null!=e?"‫"+e+"‬":e}function d(e){return(0,s.getNormalizedScrollLeft)(e,"rtl")}function u(e,t){const i=(0,s.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 p=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,_=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function m(e){const t=p.exec(e);return t?_.test(t[0])?"rtl":"ltr":""}},68587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CubicBezier:()=>s.CubicBezier,color:()=>s.color,dur:()=>s.dur,easingFunc:()=>s.easingFunc});var s=i(74991)},51193:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(9289),i.e(4017),i.e(1e3),i.e(2077)]).then(i.bind(i,30349))}i.d(t,{loadChangeIntervalDialog:()=>s})},8636:(e,t,i)=>{"use strict";i.d(t,{showChangeIntervalDialogAsync:()=>n});var s=i(51193);let r=null;function n(e){const t=r=(0,s.loadChangeIntervalDialog)().then(i=>{t===r&&i.showChangeIntervalDialog(e)});return t}},94420:(e,t,i)=>{"use strict";function s(e){return Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3713),i.e(7345),i.e(1333),i.e(8268),i.e(9055),i.e(2358),i.e(2006),i.e(5298),i.e(9255),i.e(1e3),i.e(8994),i.e(2502),i.e(7404),i.e(1859)]).then(i.bind(i,50773)).then(t=>t.showGoToDateDialog(e))}i.d(t,{showGoToDateDialog:()=>s})},65645:(e,t,i)=>{"use strict";i.d(t,{showTooManyStudiesNotice:()=>n});var s=i(28353),r=i(3615);function n(e){"number"!=typeof e&&(e=TradingView.STUDY_COUNT_LIMIT),(0,r.showWarning)({title:(0,s.t)("Warning"),text:(0,s.t)("Studies limit exceeded: {number} studies per layout.\nPlease, remove some studies.").format({number:e})})}},34615:(e,t,i)=>{"use strict";i.d(t,{StudyMarket:()=>n});var s=i(52714),r=i.n(s);class n{constructor(e,t){this._visibility=new(r())(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t){var i;null===this._dialog&&this._requestDialog(e,t),null===(i=this._dialog)||void 0===i||i.open(e,void 0,t)}hide(){var e +;null===(e=this._dialog)||void 0===e||e.hide()}resetAllPages(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()}_requestDialog(e,t){if(null===this._dialogPromise){let s;s=Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(7962),i.e(8986),i.e(5774),i.e(1112),i.e(9637),i.e(775),i.e(1e3),i.e(6456)]).then(i.bind(i,54127)).then(e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options)),this._dialogPromise=s.then(i=>{this._dialog=i,this._dialog.visible().subscribe(e=>{this._visibility.setValue(e)}),this._dialog.open(e,void 0,t)})}return this._dialogPromise}}},13221:(e,t,i)=>{"use strict";i.d(t,{setAdditionalSymbolInfoFields:()=>r,getAdditionalSymbolInfoFields:()=>n});let s=[];function r(e){s=e}function n(){return s}},88679:(e,t,i)=>{"use strict";function s(e,t){Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(5399),i.e(5069),i.e(1e3),i.e(9374)]).then(i.t.bind(i,65398,19)).then(i=>{i.showSymbolInfoDialog(e,t)})}i.d(t,{showSymbolInfoDialog:()=>s})},89330:(e,t,i)=>{"use strict";i.d(t,{ChartSaverBase:()=>s});class s{constructor(e){this._chartWidgetCollection=e}saveChartLineTools(e,t,i){return Promise.reject("Line tools storage is not supported")}_getCommonSavingInfo(e){const t=this._chartWidgetCollection,i=this._chartWidgetCollection.chartsSymbols(),s=i[t.activeChartWidget.value().id()],r={...(n=s,{...n,legs:JSON.stringify(null!==(o=n.legs)&&void 0!==o?o:[])})};var n,o;const a=t.metaInfo;return a.id.value()&&(r.id=a.id.value()),r.name=a.name.value()||"",r.description=a.description.value()||"",r.charts_symbols=function(e){const t={};for(const i of Object.keys(e))t[i]={symbol:e[i].symbol};return JSON.stringify(t)}(i),r.is_realtime=r.is_realtime=e?"0":"1",r}async _saveLineToolsToStorage(){return Promise.resolve()}}},76900:(e,t,i)=>{"use strict";var s=i(2872),r=i(28353).t,n=i(88537).assert,o=i(80643).deepEquals,a=i(43007).backend,l=i(89330).ChartSaverBase;r("The publication preview could not be loaded. Please disable your browser extensions and try again."),r("Failed to save library"),r("Failed to save script");function c(e,t){e.content=JSON.stringify(t)}t.ChartSaver=class extends l{constructor(e){super(e),this._chartAboutToBeSavedDelegate=new s,this._chartSavedDelegate=new s,this._prevChartState=null,this._chartSizeLimitExceededDelegate=new s}chartSizeLimitExceeded(){return this._chartSizeLimitExceededDelegate}chartAboutToBeSaved(){return this._chartAboutToBeSavedDelegate}chartSaved(){return this._chartSavedDelegate}whenReadyToSave(e){var t=this._chartWidgetCollection.activeChartWidget.value().model().mainSeries();if(t.hasDelayedSymbolIntervalChange()){var i,s=null;i=function(){t.dataEvents().symbolError().unsubscribe(null,s,!0),e()},s=function(){t.dataEvents().symbolResolved().unsubscribe(null,i,!0)},t.dataEvents().symbolResolved().subscribe(null,i,!0),t.dataEvents().symbolError().subscribe(null,s,!0)}else e()}saveToJSON(){var e=this._getCommonSavingInfo(!1);return c(e,this._getChartWidgetCollectionState(!1,!0)),e}_getChartWidgetCollectionState(e,t,i,s,r){ +return e||(t=!0,s=!1),t?this._chartWidgetCollection.state(!!e,i,s,r):this._chartWidgetCollection.activeChartWidget.value().state(!!e,i,s,r)}publishChart(e){}publishScript(e,t,i){}onPublish(e,t){}_saveChartImpl(e,t,i,s,r,n){var o=i,l=s;if(o=function(s){t.id.value()||(t.id.setValue(s),t.uid.setValue(s)),"function"==typeof i&&i(t,e)},!e.name)return console.warn("Saving chart with empty name is not allowed"),void s();a.saveChart(e.name,e.short_name,e.resolution,e,t).then(o.bind(this)).catch(l.bind(this))}_saveChart(e,t,i,s){var r=this._chartWidgetCollection.metaInfo,n=function(n){return o(this._prevChartState,n)[0]&&null!=r.id.value()?(this._chartSavedDelegate.fire(!0),void(t&&t(r,n))):this._saveChartImpl(n,r,t,i,s,e)}.bind(this);this._saveLineToolsToStorage().then((function(){var t=e(!0);return n(t)})).catch((function(t){var i=e(!1);return n(i)}))}saveChartSilently(e,t,i){i=i||{};var s=function(e){var t=e&&!1,s=this._getChartWidgetCollectionState(!1,void 0,void 0,void 0,t),r=this._getCommonSavingInfo(!1,t);return c(r,s),i.chartName&&(r.name=i.chartName),r.name&&0!==r.name.length||!i.defaultChartName||(r.name=i.defaultChartName),i.autoSave&&(r.autoSave=!0),r}.bind(this);this._isSaveInProcess=!0,this._chartAboutToBeSavedDelegate.fire(),this._saveChart(s,function(t,i){n(!this._chartWidgetCollection.readOnly(),"Trying to save layout in read-only mode"),this._chartWidgetCollection.metaInfo.name.setValue(i.name),this._prevChartState=i,this._chartSavedDelegate.fire(!0),this._isSaveInProcess=!1,e&&e({uid:t.uid.value(),data:i}),delete this._prevChartState.savingToken}.bind(this),function(){this._chartSavedDelegate.fire(!1),this._isSaveInProcess=!1,t&&t.apply(null,arguments)}.bind(this),i)}isSaveInProcess(){return this._isSaveInProcess}}},1570:(e,t,i)=>{"use strict";i.d(t,{getTranslatedSymbolDescription:()=>s});i(28353);function s(e){return e.description||""}},82724:(e,t,i)=>{"use strict";function s(e){return e+"…"}i.d(t,{appendEllipsis:()=>s})},8128:(e,t,i)=>{"use strict";function s(e){if(!o(e))throw e}function r(e){return(null==e?void 0:e.aborted)?Promise.reject(n()):new Promise((t,i)=>{null==e||e.addEventListener("abort",()=>i(n()),{once:!0})})}function n(){return new DOMException("Aborted","AbortError")}function o(e){return e instanceof Error&&"AbortError"===e.name}function a(e,t){return Promise.race([r(e),t])}async function l(e,t){let i;try{await a(e,new Promise(e=>{i=setTimeout(e,t)}))}finally{clearTimeout(i)}}i.d(t,{skipAbortError:()=>s,createAbortError:()=>n,isAbortError:()=>o,respectAbort:()=>a,delay:()=>l})},98619:(e,t,i)=>{"use strict";function s(e){let t;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if(e instanceof Date)t=new Date(e.valueOf());else if(Array.isArray(e)){t=[];let i=0;const r=e.length;for(;is})},15840:(e,t,i)=>{"use strict";function s(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach(t=>{ +null!=t&&"object"==typeof t&&Object.keys(t).forEach(i=>{const n=e[i],o=t[i];if(o===e)return;const a=Array.isArray(o);if(o&&(r(o)||a)){let t;t=a?n&&Array.isArray(n)?n:[]:n&&r(n)?n:{},e[i]=s(t,o)}else void 0!==o&&(e[i]=o)})}),e):e}function r(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const i=Object.hasOwnProperty.toString,s=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof s&&i.call(s)===i.call(Object)}i.d(t,{deepExtend:()=>s})},88461:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return"";if(e instanceof Error){let t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,{errorToString:()=>s})},72077:(e,t,i)=>{"use strict";i.d(t,{getTwemojiUrl:()=>r});var s=i(18438);function r(e,t){let i="";return s.default.parse(e,e=>(i=s.default.base+("svg"===t?`svg/${e}.svg`:`72x72/${e}.png`),!1)),i}s.default.base="https://cdnjs.cloudflare.com/ajax/libs/twemoji/13.0.1/"},9423:(e,t,i)=>{"use strict";i.r(t),i.d(t,{guid:()=>r,randomHash:()=>n,randomHashN:()=>o});const s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function n(){return o(12)}function o(e){let t="";for(let i=0;i{"use strict";i.d(t,{pushBackListener:()=>l,disable:()=>c,enable:()=>h});var s=i(9423);const r=[];let n=null;function o(e){for(let t=0;t=0&&!0!==r[t].func(e);t--);}function l(e,t){const i={name:e,func:t},s=o(i.name);s>-1&&r.splice(s,1),r.unshift(i)}function c(){return n?null:(n=(0,s.randomHashN)(4),n)}function h(e){if(e!==n)throw Error("Lock id is outdated");n=null}window.addEventListener("keypress",a,!1)},62046:(e,t,i)=>{"use strict";i.d(t,{parseHtml:()=>r,parseHtmlElement:()=>n});const s=new WeakMap;function r(e,t){let i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,s&&(r=s.get(i)),r||(r=i.ownerDocument.createRange(),r.selectNodeContents(i),s&&s.set(i,r)),r.createContextualFragment(e)}function n(e,t){const i=r(e,t),s=i.firstElementChild;return null!==s&&i.removeChild(s),s}},54475:(e,t,i)=>{"use strict";function s(e){e.preventDefault()}i.d(t,{preventDefault:()=>s,preventDefaultForContextMenu:()=>n});const r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function n(e){const t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},80054:(e,t,i)=>{"use strict";i.d(t,{htmlEscape:()=>n,removeSpaces:()=>o,capitalizeFirstLetterInWord:()=>a});const s=/[<"'&>]/g,r=e=>`&#${e.charCodeAt(0)};`;function n(e){return e.replace(s,r)}function o(e=""){ +return e.replace(/\s+/g,"")}function a(e=""){return e.replace(/\b\w/g,e=>e.toUpperCase())}},96397:(e,t,i)=>{"use strict";function s(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])}i.r(t),i.d(t,{uniq:()=>s})},69677:(e,t,i)=>{"use strict";function s(e,t=!1){"loading"!==document.readyState?t?setTimeout(()=>e(),1):e():document.addEventListener("DOMContentLoaded",()=>e())}i.d(t,{whenDocumentReady:()=>s});new Promise(e=>{s(e)})},38881:(e,t,i)=>{"use strict";i.d(t,{ChunkLoader:()=>r});var s=i(8128);class r{constructor(){this._retries=5,this._cache=null,this._tryLoad=(e,t)=>{this._retries=this._retries-1;this._startLoading(e).then(t,0!==this._retries?i=>{(0,s.isAbortError)(i)||setTimeout(()=>this._tryLoad(e,t),3e3)}:void 0)}}load(e){return this._cache||(this._cache=new Promise(this._tryLoad.bind(this,null!=e?e:null))),this._cache}}},65446:(e,t,i)=>{"use strict";function s(e){return r(e,null)}function r(e,t){const i=e.files&&e.files.length>0;if(!i&&t&&t.eventPhase>0)return n(t,e),Promise.resolve();if(!i){let t=!1;const i=i=>{i.stopImmediatePropagation(),n(i,e),t=!0};try{document.addEventListener("copy",i,!0),document.execCommand("copy")}finally{document.removeEventListener("copy",i,!0)}if(t)return Promise.resolve()}return async function(e){if(!navigator.clipboard||!navigator.clipboard.write||!window.ClipboardItem)throw new DOMException("ClipboardApi is not supported","NotSupportedError");const t={};for(const i of e.files||[])t[i.type]=i;e.text&&(t["text/plain"]=e.text);e.html&&(t["text/html"]=e.html);return navigator.clipboard.write([new window.ClipboardItem(t)])}(e)}function n(e,t){e.preventDefault();const i=e.clipboardData;t.text&&i.setData("text/plain",t.text),t.html&&i.setData("text/html",t.html)}async function o(e,t){if("text/plain"===t&&!navigator.clipboard.write){const t=await e;return navigator.clipboard.writeText(await t.text())}if(!navigator.clipboard||!navigator.clipboard.write||!window.ClipboardItem)throw new DOMException("ClipboardApi is not supported","NotSupportedError");let i=null;try{i=new window.ClipboardItem({[t]:e})}catch(s){i=new window.ClipboardItem({[t]:await e})}if(i)return navigator.clipboard.write([i]);throw new Error("ClipboardApi is not supported")}i.d(t,{copyToClipboard:()=>s,writeImpl:()=>r,writePromiseUsingApi:()=>o})},5370:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return null;const t=e.match(/(delayed_streaming)_([\d]{1,4})/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}i.d(t,{parseUpdateMode:()=>s})},84917:(e,t,i)=>{"use strict";var s,r;i.r(t),i.d(t,{WeekDays:()=>s,Months:()=>r}),function(e){e[e.SUNDAY=1]="SUNDAY",e[e.MONDAY=2]="MONDAY",e[e.TUESDAY=3]="TUESDAY",e[e.WEDNESDAY=4]="WEDNESDAY",e[e.THURSDAY=5]="THURSDAY",e[e.FRIDAY=6]="FRIDAY",e[e.SATURDAY=7]="SATURDAY"}(s||(s={})),function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER", +e[e.DECEMBER=11]="DECEMBER"}(r||(r={}))},81836:(e,t,i)=>{"use strict";function s(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),reject:t,resolve:e}}i.d(t,{createDeferredPromise:()=>s})},76861:(e,t,i)=>{"use strict";function s(e=location.host){return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function r(){return"local"===s()}function n(){return"battle"===s()}function o(){return!n()}i.r(t),i.d(t,{environment:()=>s,isLocal:()=>r,isProd:()=>n,isDebug:()=>o})},80007:(e,t,i)=>{"use strict";i.d(t,{preventDefault:()=>r,wrapHandlerWithPreventEvent:()=>n,preventScrollByWheelClick:()=>o});var s=i(49483);function r(e){e.cancelable&&e.preventDefault()}function n(e){return t=>{r(t),e()}}function o(e){s.isChrome&&e.addEventListener("mousedown",e=>{if(1===e.button)return e.preventDefault(),!1})}},46627:(e,t,i)=>{"use strict";i.d(t,{FeatureToggleWatchedValue:()=>n});var s=i(52714),r=i.n(s);class n extends(r()){constructor(e,t){super(function(e,t){return t}(0,t))}destroy(){0}}},56186:(e,t,i)=>{"use strict";function s(e){if(e instanceof Error)return e.stack||e.message;try{return e.outerHTML.slice(0,1024)}catch(e){}try{if(void 0!==e)return JSON.stringify(e).slice(0,1024)}catch(e){}return String(e)}function r(){window.__tv_js_errors||(window.__tv_js_errors=[]),window.addEventListener("error",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(`${t} ${e.message||"JS error"}. ${e.filename||""}, line ${e.lineno}, col ${e.colno}.\nError: `+s(e.error))},!1),window.addEventListener("unhandledrejection",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(t+" Unhandled rejection.\nReason: "+s(e.reason))},!1),document.addEventListener("securitypolicyviolation",e=>{var t,i;const r=(new Date).toISOString(),n="report"===e.disposition?"CSP report-only":"CSP violation";window.__tv_js_errors.push(`${r} ${n}: ${e.violatedDirective||e.effectiveDirective}. ${e.sourceFile||""}, line ${null!==(t=e.lineno)&&void 0!==t?t:e.lineNumber}, col ${null!==(i=e.colno)&&void 0!==i?i:e.columnNumber}.\nBlocked URI: ${e.blockedURL||e.blockedURI}\nSample: ${e.sample}\nTarget: `+s(e.target))},!1)}i.d(t,{install:()=>r})},76422:(e,t,i)=>{"use strict";i.r(t),i.d(t,{unsubscribe:()=>l,on:()=>c,subscribe:()=>h,subscribeToAll:()=>d,emit:()=>u,emitOnce:()=>p});var s=i(2872),r=i.n(s);const n={},o=[],a={};function l(e,t,i){n[e].unsubscribe(i,t)}function c(e,t,i){h(e,t,i)}function h(e,t,i,s){n.hasOwnProperty(e)||(n[e]=new(r())),a[e]?t.call(i):n[e].subscribe(i,t,s)}function d(e){o.push(e)}function u(e,...t){const i=[e].concat(t);o.forEach(e=>{e.apply(null,i)}),n.hasOwnProperty(e)&&n[e].fire.apply(n[e],t)} +function p(e){a[e]&&console.warn(`Something went wrong: emitOnce called multiple times with same event (${e})`),a[e]=!0,u.apply(null,arguments)}},25760:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Modifiers:()=>s.Modifiers,createGroup:()=>u,pressedKeys:()=>d,registerWindow:()=>p,unregisterWindow:()=>_});var s=i(68335),r=i(35749),n=i(52714),o=i.n(n);var a=i(51768);class l{constructor(e,t){this._group=e,this.hotkey=t.hotkey,this.handler=t.handler,this.desc=t.desc,this.element=t.element||null,t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1}destroy(){this._group&&(this._group.remove(this),this._group=null)}}class c{constructor(e,t){this._actions=[],this._manager=e,this.modal=!(!t||!t.modal),t&&(this.desc=t.desc),t&&t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1,this._manager.registerGroup(this)}add(e){const t=new l(this,e);return this._actions.push(t),t}remove(e){for(let t=this._actions.length;t-- >0;)this._actions[t]===e&&this._actions.splice(t,1)}handleHotkey(e,t){for(let i=this._actions.length;i-- >0;){const r=this._actions[i];if(r.hotkey===e&&((!r.element||t.target&&r.element.contains(t.target))&&!r.isDisabled()))return r.handler(t),t.preventDefault(),(0,a.trackEvent)("Keyboard Shortcuts",(0,s.humanReadableHash)(e)),!0}return!1}promote(){this._manager.promoteGroup(this)}destroy(){this._actions.length=0,this._manager.unregisterGroup(this)}}const h=new class{constructor(){this._groups=[],this._pressedKeys=new(o())(0),this._keyDownListener=e=>{if(e.defaultPrevented)return;const t=(0,s.hashFromEvent)(e);if(this._pressedKeys.setValue(t),!(0,r.isNativeUIInteraction)(t,e.target))for(let i=this._groups.length;i-- >0;){const s=this._groups[i];if(!s.isDisabled()){if(s.handleHotkey(t,e))return;if(s.modal)return}}},this._keyUpListener=e=>{const t=(0,s.hashFromEvent)(e);this._pressedKeys.setValue(t)},this._blurEvent=()=>{this._pressedKeys.setValue(0)},this._mouseEvent=e=>{const t=(0,s.modifiersFromEvent)(e),i=255&this._pressedKeys.value();this._pressedKeys.setValue(t|i)}}listen(e){e.addEventListener("keydown",this._keyDownListener),e.addEventListener("keyup",this._keyUpListener),e.addEventListener("blur",this._blurEvent),e.addEventListener("mousemove",this._mouseEvent)}unlisten(e){e.removeEventListener("keydown",this._keyDownListener),e.removeEventListener("keyup",this._keyUpListener),e.removeEventListener("blur",this._blurEvent),e.removeEventListener("mousemove",this._mouseEvent)}registerGroup(e){this._groups.push(e)}unregisterGroup(e){for(let t=this._groups.length;t--;)this._groups[t]===e&&this._groups.splice(t,1)}promoteGroup(e){let t=this._groups.length-1;for(let i=this._groups.length;i--;){if(this._groups[i]===e)return void(i!==t&&(this._groups.splice(i,1),this._groups.splice(t,0,e)));this._groups[i].modal&&(t=i-1)}}pressedKeys(){return this._pressedKeys}},d=h.pressedKeys();function u(e){return new c(h,e)}function p(e){h.listen(e)}function _(e){h.unlisten(e)}p(window)},68335:(e,t,i)=>{ +"use strict";i.r(t),i.d(t,{isMacKeyboard:()=>r,Modifiers:()=>n,modifiersFromEvent:()=>o,hashFromEvent:()=>a,hashShiftPlusEnter:()=>l,humanReadableModifiers:()=>c,humanReadableHash:()=>d});var s=i(49483);const r=(0,s.isMac)()||s.CheckMobile.iOS();var n;function o(e){let t=0;return e.shiftKey&&(t+=1024),e.altKey&&(t+=512),e.ctrlKey&&(t+=256),e.metaKey&&(t+=2048),t}function a(e){return o(e)|e.keyCode}!function(e){e[e.None=0]="None",e[e.Alt=512]="Alt",e[e.Shift=1024]="Shift",e[e.Mod=r?2048:256]="Mod",e[e.Control=256]="Control",e[e.Meta=2048]="Meta"}(n||(n={}));const l=1037;function c(e,t=!r){let i="";return 256&e&&(i+=r?"^":"Ctrl",t&&(i+=" + ")),512&e&&(i+=r?"⌥":"Alt",t&&(i+=" + ")),1024&e&&(i+=r?"⇧":"Shift",t&&(i+=" + ")),2048&e&&(i+=r?"⌘":"Win",t&&(i+=" + ")),i}const h={9:"⇥",13:"↵",27:"Esc",8:r?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",188:",",191:"/"};for(let e=1;e<=16;e++)h[e+111]="F"+e;function d(e){let t=c(e);const i=255&e;return t+=i in h?h[i]:String.fromCharCode(i),t}},47193:(e,t,i)=>{"use strict";i.d(t,{migrateShortcut:()=>o});var s=i(68335);function r(e){if("number"==typeof e)return e;switch(e.toLowerCase()){case"ctrl":return s.Modifiers.Control;case"shift":return s.Modifiers.Shift;case"alt":return s.Modifiers.Alt;default:return e.toUpperCase().charCodeAt(0)}}function n(e){let t=0;for(let i=0;i{"use strict";i.d(t,{isTextEditingField:()=>r,isNativeUIInteraction:()=>n});var s=i(68335);function r(e){if("INPUT"===e.tagName){const t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function n(e,t){if(!t)return!1;const i=255&e;if(27===i||i>>>4==7)return!1;switch(e^i){case s.Modifiers.Alt:return(38===i||40===i)&&"SELECT"===t.tagName||r(t);case s.Modifiers.Alt+s.Modifiers.Shift:return r(t);case s.Modifiers.Mod:if(67===i||!s.isMacKeyboard&&45===i){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return r(t);case s.Modifiers.Mod+s.Modifiers.Shift:return i>=33&&i<=40&&r(t);case s.Modifiers.Shift:case 0:return!!(9!==i||t.ownerDocument&&t!==t.ownerDocument.body&&t!==t.ownerDocument.documentElement)&&((13===i||32===i||!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t))&&("form"in t||t.isContentEditable))}return!1}},82992:(e,t,i)=>{"use strict";i.d(t,{linking:()=>u});var s=i(4889),r=i(52714),n=i.n(r),o=i(67337),a=i(37667),l=i(98125),c=i(15943);const h=(0,l.getLogger)("Linking");var d;!function(e){e[e.NotBound=0]="NotBound",e[e.BoundToWidget=1]="BoundToWidget",e[e.BoundToModel=2]="BoundToModel"}(d||(d={}));const u=new class{constructor(){this._watchedSymbol=new(n()),this._seriesShortSymbol=new(n()),this._proSymbol=new(n()),this._watchedInterval=new(n()), +this._watchedIntraday=new(n()),this._watchedSeconds=new(n()),this._watchedTicks=new(n()),this._watchedRange=new(n()),this._watchedSupportedResolutions=new(n()),this._watchedSupportedChartStyles=new(n())([]),this._symbolNamesList=new(n()),this._chartWidgetBindingState=d.NotBound,this._activeChartWidget=null,this._watchedSymbolListenerBound=this._watchedSymbolListener.bind(this),this._watchedIntervalListenerBound=this._watchedIntervalListener.bind(this),this._onSymbolLinkBound=this._onSymbolLink.bind(this),this._searchCharts=null,this._searchChartsLoadDebounced=null,this._selfEmit=!1,this._preventFeedBySymbol=!1,this._feedBySymbolDebounceCounter=0}get symbol(){return this._watchedSymbol}get proSymbol(){return this._proSymbol}get symbolNamesList(){return this._symbolNamesList}get seriesShortSymbol(){return this._seriesShortSymbol.readonly()}get interval(){return this._watchedInterval}get intraday(){return this._watchedIntraday.readonly()}get seconds(){return this._watchedSeconds.readonly()}get ticks(){return this._watchedTicks.readonly()}get range(){return this._watchedRange.readonly()}get supportedResolutions(){return this._watchedSupportedResolutions.readonly()}get supportedChartStyles(){return this._watchedSupportedChartStyles.readonly()}get preventFeedBySymbol(){return this._preventFeedBySymbol}bindToChartWidget(e){if(this.unbindFromChartWidget(),this._activeChartWidget=e,e.hasModel())return void this._onChartModelCreated(e.model());e.modelCreated().subscribe(this,this._onChartModelCreated),this._chartWidgetBindingState=d.BoundToWidget;const t=e.properties().childs().mainSeriesProperties.childs();this._watchedSymbol.setValue(t.symbol.value()),this._watchedInterval.setValue(t.interval.value())}unbindFromChartWidget(){switch(this._chartWidgetBindingState){case d.BoundToWidget:if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");this._activeChartWidget.modelCreated().unsubscribe(this,this._onChartModelCreated);break;case d.BoundToModel:this._symbolProperty().unsubscribe(this,this._onSymbolPropertyChange),this._watchedSymbol.unsubscribe(this._watchedSymbolListenerBound),this._mainSeries().dataEvents().symbolResolved().unsubscribe(this,this._updateSeriesSymbolInfo),this._mainSeries().dataEvents().symbolError().unsubscribe(this,this._updateSeriesSymbolInfo),this._intervalProperty().unsubscribe(this,this._onIntervalPropertyChange),this._watchedInterval.unsubscribe(this._watchedIntervalListenerBound),delete this._watchedSymbol.hook,delete this._watchedSymbol.writeLock}this._activeChartWidget=null,this._chartWidgetBindingState=d.NotBound}getChartWidget(){return this._activeChartWidget}bindToChartWidgetCollection(e){this._chartWidgetCollection=e,this.unbindFromChartWidget(),e.activeChartWidget.subscribe(e=>{this.unbindFromChartWidget(),this.bindToChartWidget(e)},{callWithLast:!0})}bindToSearchCharts(e){this.unbindFromSearchCharts(),this._searchCharts=e,e.onSearchBySymbol.subscribe(this,this._onSearchBySymbol),e.loadingSymbol.subscribe(e=>{!1===e&&(this._feedBySymbolDebounceCounter=0)}), +this._watchedSymbol.subscribe(this._onSymbolLinkBound)}unbindFromSearchCharts(){this._searchCharts&&(this._searchCharts.onSearchBySymbol.unsubscribe(this,this._onSearchBySymbol),this._watchedSymbol.unsubscribe(this._onSymbolLinkBound),this._searchCharts=null)}setPreventFeedBySymbol(e){this._preventFeedBySymbol=e}_onSearchBySymbol(e){if(!e.resolved_symbol)throw new Error("no resolved_symbol");this._selfEmit=!0,this._watchedSymbol.setValue(e.resolved_symbol),this._selfEmit=!1}_onSymbolLink(e){if(!this._selfEmit){if(!this._searchCharts){const e="No search charts defined";throw h.logError(e),new Error(e)}this._preventFeedBySymbol||this._loadSearchCharts(e)}}_loadSearchCharts(e){if(!this._searchCharts){const e="No search charts defined";throw h.logError(e),new Error(e)}if(this._searchChartsLoadDebounced)return void(this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced(e)));const t=e=>this._searchCharts?(!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchChartsLoadDebounced=null,this._searchCharts.feedBySymbol.call(this._searchCharts,e)):()=>{};!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchCharts.feedBySymbol(e)}_mainSeries(){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");return this._activeChartWidget.model().mainSeries()}_properties(){return this._mainSeries().properties()}_symbolProperty(){return this._properties().symbol}_intervalProperty(){return this._properties().interval}_watchedSymbolListener(e){this._symbolProperty().value()!==e&&this._chartWidgetCollection.setSymbol(e)}_sendSnowplowAnalytics(){if(!window.user.do_not_track)throw new Error("unsupported")}_onSymbolPropertyChange(){const e=this._symbolProperty().value()!==this._watchedSymbol.value();this._watchedSymbol.setValue(this._symbolProperty().value()),e&&this._chartWidgetCollection.setSymbol(this._symbolProperty().value())}_onSymbolResolved(e){const t=this._mainSeries().symbolInfo();t&&this._applyValuesFromSymbolInfo(t)}_applyValuesFromSymbolInfo(e){const t=e.pro_name||o.enabled("trading_terminal")&&(e.full_name||e.name)||"";this._proSymbol.setValue(t),e.aliases&&this._symbolNamesList.setValue(e.aliases)}_updateSeriesSymbolInfo(){this._seriesShortSymbol.setValue(this._properties().shortName.value());const e=this._mainSeries().symbolInfo();if(e){this._applyValuesFromSymbolInfo(e);{const t=e.supported_resolutions;t?this._watchedSupportedResolutions.setValue(t):this._watchedSupportedResolutions.setValue(void 0)}let t=(0,c.allChartStyles)();(0,a.isCloseBasedSymbol)(e)&&(t=t.filter(e=>(0,a.isSingleValueBasedStyle)(e))),this._watchedSupportedChartStyles.setValue(t),this._watchedIntraday.setValue(!!e.has_intraday), +this._watchedSeconds.setValue(!!e.has_seconds),this._watchedTicks.setValue(!(0,a.isCloseBasedSymbol)(e)&&!!e.has_ticks),this._watchedRange.setValue(!(0,a.isCloseBasedSymbol)(e))}else this._watchedIntraday.deleteValue(),this._watchedSeconds.deleteValue(),this._watchedTicks.deleteValue(),this._watchedRange.deleteValue(),this._proSymbol.deleteValue()}_watchedIntervalListener(e){this._intervalProperty().value()!==e&&this._chartWidgetCollection.setResolution(e)}_onIntervalPropertyChange(){const e=this._intervalProperty().value()!==this._watchedInterval.value();this._watchedInterval.setValue(this._intervalProperty().value()),e&&this._chartWidgetCollection.setResolution(this._intervalProperty().value())}_onChartModelCreated(e){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");this._chartWidgetBindingState=d.BoundToModel,this._activeChartWidget.modelCreated().unsubscribe(this,this._onChartModelCreated);const t=this._symbolProperty();t.subscribe(this,this._onSymbolPropertyChange),this._watchedSymbol.setValue(t.value()),this._watchedSymbol.subscribe(this._watchedSymbolListenerBound);const i=this._mainSeries();i.dataEvents().symbolResolved().subscribe(this,this._onSymbolResolved),this._watchedSymbol.hook=e=>(i.symbolSameAsCurrent(e)&&(e=i.symbol()),e),i.dataEvents().symbolResolved().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolError().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolGroupNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),this._updateSeriesSymbolInfo();const s=this._intervalProperty();s.subscribe(this,this._onIntervalPropertyChange),this._watchedInterval.setValue(s.value()),this._watchedInterval.subscribe(this._watchedIntervalListenerBound),this._activeChartWidget.readOnly()&&(this._watchedSymbol.writeLock=!0)}};window.TradingViewApi||(window.TradingViewApi={linking:u})},11417:(e,t,i)=>{"use strict";const{getLogger:s}=i(98125),r=s("TVLocalStorage");var n=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};n.prototype._report=function(){if(this.isAvailable){const e=10,t=[];for(let e=0;et.length-e.length);const i=t.slice(0,e);t.sort((e,t)=>t.key.length-e.key.length);const s=t.slice(0,e);r.logNormal("Total amount of keys in Local Storage: "+this.length),r.logNormal(`Top ${e} keys with longest values: ${JSON.stringify(i)}`),r.logNormal(`Top ${e} longest key names: ${JSON.stringify(s)}`);try{navigator.storage.estimate().then(e=>{r.logNormal("Storage estimate: "+JSON.stringify(e))})}catch(e){}}},n.prototype.length=0,n.prototype.isAvailable=!1,n.prototype.localStorage={"tvlocalstorage.available":"false"},n.prototype._updateLength=function(){ +if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},n.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},n.prototype.getItem=function(e){return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},n.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},n.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength()},n.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var o=function(e){this.storage=e};o.prototype.getItem=function(e){return Promise.resolve(this.storage.getItem(e))},o.prototype.setItem=function(e,t){return Promise.resolve(this.storage.setItem(e,t))},window.TVLocalStorage=new n,window.TVLocalStorageAsync=new o(window.TVLocalStorage),e.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},84015:(e,t,i)=>{"use strict";function s(e,t=!1){return!1}function r(e){return e}i.d(t,{isOnMobileAppPage:()=>s,urlWithMobileAppParams:()=>r})},19334:(e,t,i)=>{"use strict";function s(){}i.d(t,{addPerfMark:()=>o});const r=console.timeStamp?console.timeStamp.bind(console):s,n=window.performance&&performance.mark?performance.mark.bind(performance):s;window.performance&&performance.measure&&performance.measure.bind(performance),window.performance&&performance.clearMarks&&performance.clearMarks.bind(performance);function o(e){r(e),n(e)}},14905:(e,t,i)=>{"use strict";function s(e){return e===r(e)}function r(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 n(e){return e.startsWith("PUB;")}i.d(t,{isPineIdString:()=>s,extractPineId:()=>r,isPublishedPineId:()=>n})},51872:(e,t,i)=>{"use strict";i.r(t),i.d(t,{qaGlobals:()=>s});const s=new class{constructor(e,t){this._test=e[t]={}}provide(e,t){this._test[e]=t}}(window,"qaGlobals")},16216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{registerService:()=>o,unregisterService:()=>a,hasService:()=>l,service:()=>c,waitServiceRegistered:()=>h});var s=i(81836);const r={},n=new Map;function o(e,t){if(l(e))throw new Error("Service already registered");r[e.id]=t;const i=n.get(e.id);void 0!==i&&(n.delete(e.id),i.resolve(t))}function a(e){if(!l(e))throw new Error("Service not found");r[e.id]=void 0}function l(e){return void 0!==r[e.id]}function c(e){const t=r[e.id];if(void 0===t)throw new Error("ServiceLocator: Service "+e.id+" not found");return t}function h(e){if(l(e))return Promise.resolve(c(e));let t=n.get(e.id);return void 0===t&&(t=(0,s.createDeferredPromise)(),n.set(e.id,t)),t.promise}},56840:(e,t,i)=>{"use strict";e=i.nmd(e),i(49483);i(85198).fetch +;var s=i(28789).regExpEscape,r=i(21097).TVXWindowEvents,n=i(11417).TVLocalStorage,o=i(2872),a=i(67337),l=["s.tradingview.com","betacdn.tradingview.com"],c=a.enabled("use_localstorage_for_settings"),h=window.TVSettings=function(){var e=!1,t=null;function i(){return!t&&c}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(e){}if(e){var d={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},u=function(e,t,i){var s=d[e];return null==s?t:s},p=function(){};return{loaded:!1,loadedModel:!1,getValue:u,getJSON:u,getBool:u,getFloat:u,getInt:u,setValue:p,setJSON:p,remove:p,keys:function(){return Object.keys(d)},keysMask:function(){return[]},sync:p,onSync:{subscribe:function(){}}}}window.environment;var _,m=TradingView.onWidget()?"tradingview-widget":"tradingview",g=m+".",f={},v=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^domepanel.visible$/,/^orderpanel.visible$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/,/^ChartDrawingToolbarWidget\.visible/];function S(e){return g+e}function y(e,t){var i=f[e];return null==i?t:i}function b(e,t,i){i=i||{};var s=""+t;return f[e]!==s&&(f[e]=s,C(e)),i.forceFlush&&!_&&(_=setTimeout((function(){_=void 0,P()}),10)),h}function w(e,t){return t=t||{},null!=f[e]&&(delete f[e],C(e)),t.forceFlush&&P(),h}function C(e){if(t)null==f[e]?t.removeValue(e):t.setValue(e,f[e]);else if(i())try{null==f[e]?n.removeItem(S(e)):n.setItem(S(e),f[e])}catch(e){}else 0;r.emit("settings",JSON.stringify({key:e,value:f[e]}))}function P(e){}function T(){return Object.keys(f)}function x(e){for(var t=0;t=0;n--)e.test(i[n])&&r.push(i[n]),e.lastIndex=0;return r},sync:function(e){null!==e?(t?M(t.initialSettings||{}):i()?(function(){if(TradingView.onWidget()&&l.includes(window.location.host))for(var e=n.length;e--;){var t=n.key(e);if(0===t.indexOf("tradingview.")){var i=t.replace("tradingview.",m+".");n.setItem(i,n.getItem(t)),n.removeItem(t)}}}(),function(){f={};for(var e=!a.enabled("save_chart_properties_to_local_storage"),t=n.length;t--;){var i=n.key(t);if(i&&I(i)){var s=i.substring(g.length);e&&!x(s)||(f[s]=n.getItem(i))}}}()):M(e||{}),L.fire()):!0},onSync:L,setSettingsAdapter:function(e){t=e}}}();e&&e.exports&&(e.exports=h)},26843:(e,t,i)=>{"use strict";i.d(t,{StdTheme:()=>a.StdTheme,getStdChartTheme:()=>h,getStdThemeNames:()=>c,isStdTheme:()=>u,translateThemeName:()=>d});var s=i(28353),r=i(24377) +;const n=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#131722","lineColor":"rgba(42, 46, 57, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"horzGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#ffffff","backgroundGradientStartColor":"#ffffff","backgroundGradientEndColor":"#ffffff","separatorColor":"#E0E3EB"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#B2B5BE","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#737375","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"}}}}'),o=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#B2B5BE","lineColor":"rgba(240, 243, 250, 0)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"horzGridProperties":{"color":"rgba(240, 243, 250, 0.06)"},"crossHairProperties":{"color":"#9598A1"},"background":"#131722","backgroundGradientStartColor":"#181C27","backgroundGradientEndColor":"#131722","backgroundType":"gradient","separatorColor":"#2A2E39"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2962FF","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2962FF","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#5d606b","candleStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"haStyle":{"borderColor":"#378658","upColor":"#089981","wickColor":"#B5B5B8","wickUpColor":"#089981","wickDownColor":"#F23645","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645"},"barStyle":{"downColor":"#F23645","upColor":"#089981"},"pnfStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"baselineStyle":{"baselineColor":"#758696","topFillColor1":"rgba(8, 153, 129, 0.28)","topFillColor2":"rgba(8, 153, 129, 0.05)","bottomFillColor1":"rgba(242, 54, 69, 0.05)","bottomFillColor2":"rgba(242, 54, 69, 0.28)","topLineColor":"#089981","bottomLineColor":"#F23645"},"areaStyle":{"transparency":100,"color1":"rgba(41, 98, 255, 0.28)","color2":"#2962FF","linecolor":"#2962FF","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f","wickUpColor":"#089981","wickDownColor":"#F23645"},"lineStyle":{"color":"#2962FF","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#F23645","upColor":"#089981","upColorProjection":"#336854","downColorProjection":"#7f323f"},"pbStyle":{"upColor":"#089981","downColor":"#F23645","borderUpColor":"#089981","borderDownColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f","borderUpColorProjection":"#336854","borderDownColorProjection":"#7f323f"},"rangeStyle":{"upColor":"#089981","downColor":"#F23645","upColorProjection":"#336854","downColorProjection":"#7f323f"}}}}') +;var a=i(24633);function l(){return{[a.StdTheme.Light]:JSON.parse(JSON.stringify(n)),[a.StdTheme.Dark]:JSON.parse(JSON.stringify(o))}}function c(){return[a.StdTheme.Light,a.StdTheme.Dark]}function h(e){return l()[e]}function d(e){return{[a.StdTheme.Light]:s.t("Light",{context:"colorThemeName"}),[a.StdTheme.Dark]:s.t("Dark",{context:"colorThemeName"})}[e]||e}function u(e){const t=l();return c().some(i=>p(t[i],e))}function p(e,t){let i=e.content===t.content;return function(e={},t){try{!function e(t,i,s){for(const r in t)if(t.hasOwnProperty(r)){const n=i.concat(r);if("object"==typeof t[r])e(t[r],n,s);else if(s(n,t[r]))throw new Error("exit")}}(e,[],t)}catch(e){return}}(e.content,(e,s)=>{const n=function(e,t={}){let i=t;for(let t=0;t{"use strict";var s;i.d(t,{StdTheme:()=>s}),function(e){e.Light="light",e.Dark="dark"}(s||(s={}))},6087:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_THEME:()=>p,extractThemeFromModel:()=>R,getCurrentTheme:()=>S,getStdTheme:()=>L,getStdThemeNames:()=>I,getStdThemedValue:()=>A,getTheme:()=>T,getThemeNames:()=>x,getThemedColor:()=>y,isPublicTheme:()=>v,isStdTheme:()=>N,isStdThemeName:()=>M,isStdThemedDefaultValue:()=>E,isThemeExist:()=>V,loadTheme:()=>b,removeTheme:()=>D,restoreTheme:()=>w,saveTheme:()=>k,savedThemeName:()=>C,syncTheme:()=>P,themes:()=>f,translateStdThemeName:()=>B});var s=i(24377),r=i(59803),n=i(56840);function o(){return(0,n.getValue)("current_theme.name")||null}var a=i(85198);const l=(0,i(98125).getLogger)("Themes.Provider");let c=null;function h(e){return(0,a.fetch)("/theme/?themeName="+encodeURIComponent(e),{credentials:"include",method:"GET"}).then(e=>e.json()).then(e=>{const t={};return e.content&&(t.content=JSON.parse(e.content)),t})}var d=i(26843),u=i(45345);const p="light";var _=i(28353) +;const m=JSON.parse('{"color-bg-primary":"color-cold-gray-850","color-bg-primary-hover":"color-cold-gray-800","color-bg-secondary":"color-cold-gray-900","color-bg-highlight":"color-cold-gray-900","color-bg-scroll-buttons":"color-cold-gray-800","color-legacy-bg-scroll-buttons":"color-cold-gray-550","color-legacy-bg-widget":"color-cold-gray-900","color-text-primary":"color-cold-gray-200","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-650","color-accent-content":"color-white","color-divider":"color-cold-gray-700","color-divider-hover":"color-cold-gray-800","color-divider-secondary":"color-cold-gray-800","color-box-shadow":"color-cold-gray-900","color-active-hover-text":"color-cold-gray-300","color-alert-text":"color-cold-gray-200","color-border":"color-cold-gray-750","color-border-chat-fields":"color-cold-gray-750","color-border-hover":"color-cold-gray-650","color-border-table":"color-cold-gray-800","color-brand":"color-tv-blue-500","color-brand-hover":"color-tv-blue-600","color-brand-active":"color-tv-blue-700","color-button-hover-bg":"color-cold-gray-850","color-chart-page-bg":"color-cold-gray-800","color-common-tooltip-bg":"color-cold-gray-750","color-danger":"color-ripe-red-600","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-400","color-depthrenderer-fill-style":"color-cold-gray-150","color-depthrenderer-stroke-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-800","color-disabled-input":"color-cold-gray-750","color-empty-container-message":"color-cold-gray-500","color-highlight-new":"color-tv-blue-a800","color-icons":"color-cold-gray-500","color-input-bg":"color-cold-gray-800","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-700","color-input-publish-bg":"color-cold-gray-900","color-item-active-blue":"color-tv-blue-a800","color-item-hover-active-bg":"color-cold-gray-800","color-item-hover-bg":"color-cold-gray-800","color-item-hover-blue":"color-tv-blue-a800","color-item-selected-blue":"color-tv-blue-a800","color-item-active-text":"color-cold-gray-200","color-item-active-bg":"color-tv-blue-500","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-item":"color-cold-gray-500","color-list-nth-child-bg":"color-cold-gray-850","color-news-highlight":"color-cold-gray-800","color-pane-bg":"color-cold-gray-900","color-pane-secondary-bg":"color-cold-gray-850","color-placeholder":"color-cold-gray-650","color-popup-menu-item-hover-bg":"color-cold-gray-800","color-popup-menu-separator":"color-cold-gray-700","color-row-hover-active-bg":"color-cold-gray-800","color-sb-scrollbar-body-bg":"color-cold-gray-650","color-screener-description":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-750","color-search-button-hover":"color-cold-gray-700","color-separator-table-chat":"color-cold-gray-750","color-success":"color-minty-green-700","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-500","color-tag-active-bg":"color-cold-gray-750","color-tag-hover-bg":"color-cold-gray-800","color-text-regular":"color-cold-gray-200","color-toolbar-button-text":"color-cold-gray-300","color-toolbar-button-text-hover":"color-cold-gray-300","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-800","color-toolbar-button-background-secondary-hover":"color-cold-gray-750","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-300","color-toolbar-interactive-element-text-hover":"color-cold-gray-250","color-toolbar-opened-element-bg":"color-cold-gray-800","color-tooltip-bg":"color-cold-gray-750","color-tv-button-checked":"color-cold-gray-500","color-tv-dialog-caption":"color-cold-gray-50","color-tv-dropdown-item-hover-bg":"color-cold-gray-800","color-underlined-text":"color-cold-gray-300","color-widget-pages-bg":"color-cold-gray-900","color-warning":"color-tan-orange-700","color-forex-icon":"color-white","color-list-item-active-bg":"color-tv-blue-500","color-list-item-hover-bg":"color-cold-gray-800","color-list-item-text":"color-cold-gray-200","color-price-axis-label-back":"color-cold-gray-800","color-price-axis-label-text":"color-cold-gray-500","color-price-axis-gear":"color-cold-gray-500","color-price-axis-gear-hover":"color-cold-gray-400","color-price-axis-highlight":"color-cold-gray-800","color-bid":"color-tv-blue-500","color-scroll-bg":"color-cold-gray-750","color-scroll-border":"color-cold-gray-850","color-widget-border":"color-cold-gray-800","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-650","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-700","color-growing":"color-minty-green-600","color-falling":"color-ripe-red-600","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-500","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-tv-blue-50","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-500","color-list-item-bg-highlighted":"color-tv-blue-a900","color-list-item-bg-selected":"color-tv-blue-a800","color-list-item-bg-highlighted-hover":"color-tv-blue-a800","color-list-item-bg-selected-hover":"color-tv-blue-a700","color-screener-header-bg":"color-cold-gray-850","color-screener-header-bg-hover":"color-cold-gray-800","color-overlay":"color-cold-gray-950","color-card-border":"color-cold-gray-700","color-card-border-hover":"color-cold-gray-600","color-background-special-primary":"color-black","color-stroke-special-primary":"color-cold-gray-800","color-selection-bg":"color-tv-blue-a700"}') +;var g=i(45112);const f={[d.StdTheme.Light]:{name:d.StdTheme.Light,label:()=>(0,_.t)("Light",{context:"colorThemeName"}),order:2,getThemedColor:e=>(0,g.getHexColorByName)(e)},[d.StdTheme.Dark]:{name:d.StdTheme.Dark,label:()=>(0,_.t)("Dark",{context:"colorThemeName"}),order:1,getThemedColor:e=>{const t=m[e]||e;return(0,g.getHexColorByName)(t)}}};function v(e){return!e.isPrivate}function S(){return f[u.watchedTheme.value()]||f[p]}function y(e){return S().getThemedColor(e)}async function b(e,t){const{themeName:i,standardTheme:s,syncState:n=!0,noUndo:o=!1,applyOverrides:a=!1}=t,l=await(s?Promise.resolve(L(i)):T(i)),c=!s;if(void 0!==l.content){const t=!s;a&&(void 0!==(h=l.content).chartProperties&&(0,r.applyDefaultsOverrides)(h.chartProperties),void 0!==h.mainSourceProperties&&(0,r.applyDefaultsOverrides)(h.mainSourceProperties,void 0,!0,"mainSeriesProperties")),await e.applyTheme({theme:l.content,onlyActiveChart:t,restoreNonThemeDefaults:c,themeName:i,standardTheme:s,syncState:n,noUndo:o})}var h;return l}function w(){(0,u.setTheme)(o()||p)}function C(){return o()}function P(){var e;e=S().name,(0,n.setValue)("current_theme.name",e,{forceFlush:!0})}function T(e){return h(e)}function x(){return c||(0,a.fetch)("/themes/",{credentials:"include",method:"GET"}).then(e=>(c=e.json(),c))}function I(){return d.getStdThemeNames()}function M(e){return I().includes(e)}function L(e){return d.getStdChartTheme(e)||{content:void 0}}function A(e,t){const i=t||S().name,s=d.getStdChartTheme(i),r=0!==e.length&&e.split(".");return s&&s.content&&r?r.reduce((e,t)=>e[t],s.content):null}function E(e,t,i){const r=A(e,i);return null!==r&&(0,s.areEqualRgba)((0,s.parseRgba)(r),(0,s.parseRgba)(String(t)))}function k(e,t){return function(e,t){const i=new FormData;return i.append("content",JSON.stringify(t)),i.append("name",e),c=null,(0,a.fetch)("/save-theme/",{credentials:"include",method:"POST",body:i}).then(e=>e.json(),e=>l.logError(e))}(e,t)}function D(e){return function(e){const t=new FormData;return t.append("name",e),c=null,(0,a.fetch)("/remove-theme/",{credentials:"include",method:"POST",body:t}).then(e=>e.json(),e=>l.logError(e))}(e)}function V(e){return function(e){return h(e).then(e=>Boolean(e.content))}(e)}function B(e){return d.translateThemeName(e)}function N(e){return d.isStdTheme(e)}function R(e){return{content:{chartProperties:{paneProperties:e.model().properties().childs().paneProperties.state(),scalesProperties:e.model().properties().childs().scalesProperties.state()},sessions:e.model().sessions().properties().state(),mainSourceProperties:e.model().mainSeries().properties().state(),version:e.model().version()}}}},45345:(e,t,i)=>{"use strict";i.d(t,{setTheme:()=>n,watchedTheme:()=>r});var s=i(52714);const r=new(i.n(s)());function n(e){r.setValue(e)}r.subscribe(e=>{!function(e,t=window){const i="theme-"+e,s=t.document.documentElement.classList;for(const e of Array.from(s))e.startsWith("theme-")&&e!==i&&s.remove(e);s.add(i)}(e,window)})},51768:(e,t,i)=>{"use strict";i.d(t,{trackEvent:()=>l,disableTrackingEvents:()=>c}) +;var s=i(76422),r=i(67337);const n=(0,i(98125).getLogger)("Common.TrackEvent"),o=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/];let a=!1;const l=(e,t,i)=>{if(a)return;if(r.enabled("charting_library_base"))return void((e,t,i)=>{t=t||e||i||"";let r="";for(let e=0;e{"use strict";i.d(t,{TVXWindowEvents:()=>o});i(94419);var s=i(98125),r=i(11417);const n=(0,s.getLogger)("XWindowEvents");var o;!function(e){const t="tvxwevents.",i={};let s;window.BroadcastChannel?(s=new BroadcastChannel("tvxwevents"),s.addEventListener("message",(function(e){const{data:{event:t,value:s}}=e;i[t]&&i[t].forEach(e=>{e(s)})})),function(){const e=[],i=performance.now();for(let i=0;i{t(e.newValue)});r.TVLocalStorage.removeItem(n)})),e.on=function(e,t){i[e]||(i[e]=[]),i[e].push(t)},e.off=function(e,t){if(!i[e])return;const s=i[e].indexOf(t);-1!==s&&(1===i[e].length?delete i[e]:i[e].splice(s,1))},e.emit=function(e,i=Date.now()){try{s?s.postMessage({event:e,value:i}):r.TVLocalStorage.setItem(t+e,i.toString())}catch(e){n.logError(e.message)}}}(o||(o={}))},92930:(e,t,i)=>{"use strict";i.r(t),i.d(t,{activateKeyPressHandler:()=>u,showDialog:()=>p});var s=i(85739),r=i(38318),n=i(67337),o=i(8636),a=i(51193),l=i(11181),c=i(51768);let h=null;function d(e){if(!(0,r.globalKeypressMatches)(e))return!1;e.preventDefault();const t=String.fromCharCode(e.charCode);return n.enabled("show_interval_dialog_on_key_press")&&function(e){return/[1-9]/.test(e)}(t)?(0,o.showChangeIntervalDialogAsync)({initVal:t}):n.enabled("symbol_search_hot_key")&&(p({defaultValue:t,selectSearchOnInit:!1,source:"keyboard"}),(0,c.trackEvent)("GUI","SS","hotkey")),!0}function u(){(0,a.loadChangeIntervalDialog)(),s.pushBackListener("symbolEdit",d)}function p(e){const t=h=(0,l.loadNewSymbolSearch)().then(i=>{t===h&&i.showDefaultSearchDialog(e)});return t}},78136:(e,t,i)=>{"use strict";let s;function r(){return s}function n(e){s=e}i.d(t,{getSearchRequestDelay:()=>r, +setSearchRequestDelay:()=>n})},52092:(e,t,i)=>{"use strict";i.d(t,{CLOSE_POPUPS_AND_DIALOGS_COMMAND:()=>s});const s="CLOSE_POPUPS_AND_DIALOGS_COMMAND"},42120:(e,t,i)=>{"use strict";i.d(t,{CompareDialogRenderer:()=>n});var s=i(22729);var r=i(76422);class n extends s.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(){this._load().then(e=>{var t,i;null===(t=this._dialog)||void 0===t||t.hide(),null===(i=this._dialog)||void 0===i||i.visible().unsubscribe(this._subscribe),this._dialog=e,e.visible().subscribe(this._subscribe),e.show(),r.emit("compare_add")})}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}_load(){return Promise.all([i.e(7271).then(i.bind(i,43900)),Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(5774),i.e(2153),i.e(8054),i.e(7945),i.e(9255),i.e(3304),i.e(1e3),i.e(1594),i.e(731)]).then(i.bind(i,89035))]).then(([e,t])=>{const i=new e.CompareModel(this._chartWidgetCollection);return t.getCompareDialogRenderer(i)})}}},3615:(e,t,i)=>{"use strict";async function s(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(9289),i.e(5998),i.e(279),i.e(4634),i.e(1e3),i.e(4364),i.e(8890)]).then(i.bind(i,19641));return s.showSimpleDialog(e,s.renameModule,t)}async function r(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(9289),i.e(5998),i.e(279),i.e(4634),i.e(1e3),i.e(4364),i.e(8890)]).then(i.bind(i,19641));return s.showSimpleDialog(e,s.confirmModule,t)}async function n(e,t){const s=await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(9289),i.e(5998),i.e(279),i.e(4634),i.e(1e3),i.e(4364),i.e(8890)]).then(i.bind(i,19641));return s.showSimpleDialog(e,s.warningModule,t)}i.d(t,{showRename:()=>s,showConfirm:()=>r,showWarning:()=>n})},14881:(e,t,i)=>{"use strict";i.d(t,{hideStateChange:()=>r});var s=i(2872);const r=new(i.n(s)())},90995:(e,t,i)=>{"use strict";i.d(t,{getHideOptions:()=>h,toggleHideMode:()=>d,getSavedHideMode:()=>u});var s=i(88537),r=i(28353),n=i(56840),o=i(92033),a=i(85733),l=i(14881);let c=null;function h(){if(null!==c)return c;const e=(0,o.tradingService)();return c=new Map([["drawings",{label:(0,r.t)("Hide drawings"),dataName:"hide-drawing-tools",tooltip:{active:(0,r.t)("Show all drawings"),inactive:(0,r.t)("Hide all drawings")},getBoxedValue:()=>(0,a.hideAllDrawings)(),trackLabel:"hide drawings"}],["indicators",{label:(0,r.t)("Hide indicators"),dataName:"hide-indicators",tooltip:{active:(0,r.t)("Show all indicators"),inactive:(0,r.t)("Hide all indicators")},getBoxedValue:()=>(0,a.hideAllIndicators)(),trackLabel:"hide indicators"}],["positions",{label:(0,r.t)("Hide positions & orders"),dataName:"hide-positions-and-orders",tooltip:{active:(0,r.t)("Show all positions & orders"),inactive:(0,r.t)("Hide all positions & orders")},getBoxedValue:()=>(0,s.ensureNotNull)(e).showTradedSources,inverted:!0,trackLabel:"hide positions"}],["all",{label:(0, +r.t)("Hide all"),dataName:"hide-all",tooltip:{active:e?(0,r.t)("Show all drawings, indicators, positions & orders"):(0,r.t)("Show all drawings and indicators"),inactive:e?(0,r.t)("Hide all drawings, indicators, positions & orders"):(0,r.t)("Hide all drawings and indicators")},trackLabel:"hide all"}]]),e||c.delete("positions"),c}function d(e){e?n.setValue("ChartToolsHideMode",e):e=u();const t=p();let i=!t;return"all"===e?(_((e,t,s)=>{e.setValue(s?!i:i)}),l.hideStateChange.fire({hideMode:e,isActive:i}),i):(_((s,r,n)=>{if(r===e){const e=t?!n:!s.value();s.setValue(e),i=n?!e:e}else s.setValue(Boolean(n))}),l.hideStateChange.fire({hideMode:e,isActive:i}),i)}function u(){const e=n.getValue("ChartToolsHideMode","drawings");return h().has(e)?e:"drawings"}function p(){let e=!0;return _((t,i,s)=>{const r=t.value();e=e&&(s?!r:r)}),e}function _(e){h().forEach((t,i)=>{var s;const r=null===(s=t.getBoxedValue)||void 0===s?void 0:s.call(t);r&&e(r,i,t.inverted)})}},15219:(e,t,i)=>{"use strict";i.d(t,{showConfirmInputsDialog:()=>c});var s=i(28353),r=i(88537),n=i(80643),o=i(33266),a=i(2015),l=i.n(a);async function c(e,t,a,c,h="default"){let d,u=null;const p=e.model().model(),_=(0,n.clone)((0,r.ensureDefined)(t.defaults.inputs)),m=new(l())({inputs:_}),g=function(e,t){return"symbol"===t?e.inputs.filter(t=>t.id===e.symbolInputId()):e.inputs.filter(e=>e.confirm)}(t,h),f=()=>{d&&p.removeCustomSource(d)},v=()=>{f(),c()},S=e=>{a({inputs:e,parentSource:u}),f()},y=g.filter(o.isTimeOrPriceNotHiddenInput);if(y.length>0)try{const s=await Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(6416),i.e(1333),i.e(1999),i.e(137),i.e(9255),i.e(3304),i.e(1e3),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(3030)]).then(i.bind(i,73339)),r=await s.selectInputValuesOnChart(e,y,m,t.shortDescription,t.inputs);d=r.customSourceId,u=r.destPane?r.destPane.mainDataSource():null}catch(e){return void v()}y.length!==g.length?Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(6416),i.e(1333),i.e(1999),i.e(137),i.e(9255),i.e(3304),i.e(1e3),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(3030)]).then(i.bind(i,70589)).then(t=>{const i=new t.ConfirmInputsDialogRenderer(function(e){if("symbol"===e)return(0,s.t)("Add Symbol");return(0,s.t)("Confirm Inputs")}(h),g,m,h,e.model(),S,v);return i.show(),i}):S(m.state().inputs||{})}},13323:(e,t,i)=>{"use strict";i.d(t,{GeneralChartPropertiesRenderer:()=>r});var s=i(22729);class r extends s.DialogRenderer{constructor(e){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._chartWidgetCollection=e}show(){const e=this._chartWidgetCollection,t=e.activeChartWidget.value() +;return t.generalPropertiesDefinitions().then(s=>Promise.all([i.e(9685),i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8463),i.e(2e3),i.e(9289),i.e(6363),i.e(7962),i.e(8986),i.e(3466),i.e(7836),i.e(7427),i.e(3921),i.e(3713),i.e(5774),i.e(3848),i.e(6909),i.e(7552),i.e(1692),i.e(7345),i.e(2153),i.e(6750),i.e(4763),i.e(6416),i.e(1333),i.e(1999),i.e(2205),i.e(9637),i.e(4521),i.e(3304),i.e(2947),i.e(1594),i.e(8178),i.e(1482),i.e(2454),i.e(7078)]).then(i.bind(i,72811)).then(i=>{var r,n;const o=new i.GeneralChartPropertiesDialogRenderer({chartWidgetCollection:e,propertyPages:s,activePageId:this._activePageId,model:t.model()});return null===(r=this._dialog)||void 0===r||r.hide(),null===(n=this._dialog)||void 0===n||n.visible().unsubscribe(this._subscribe),this._dialog=o,o.visible().subscribe(this._subscribe),o.show(),this._activePageId=void 0,o}))}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}isVisible(){return this.visible().value()}focusOnText(){}setActivePage(e){this._activePageId=e}}},25812:(e,t,i)=>{"use strict";var s;i.d(t,{ToolboxType:()=>s}),function(e){e[e.Delete=0]="Delete"}(s||(s={}))},59064:(e,t,i)=>{"use strict";i.d(t,{globalCloseDelegate:()=>r,globalCloseMenu:()=>n});var s=i(2872);const r=new(i.n(s)());function n(){r.fire()}},17191:e=>{e.exports=''},91216:e=>{e.exports=''},69061:e=>{e.exports=''},54859:e=>{e.exports=''},15917:e=>{ +e.exports=''},27966:e=>{e.exports=''},93418:e=>{e.exports=''},94939:e=>{e.exports=''},6354:e=>{e.exports=''},74645:e=>{ +e.exports=''},44368:e=>{e.exports=''},78679:e=>{e.exports=''},48111:e=>{e.exports=''},76576:e=>{ +e.exports=''},26159:e=>{e.exports=''},34954:e=>{e.exports=''},52892:e=>{e.exports=''},38069:e=>{"use strict";e.exports=JSON.parse('{"4":["v",["h",0,2],["h",1,3]],"6":["v",["h",0,2,4],["h",1,3,5]],"8":["v",["h",0,2,4,6],["h",1,3,5,7]],"2h":["h",0,1],"2v":["v",0,1],"2-1":["v",["h",0,2],1],"3s":["h",0,["v",1,2]],"3h":["h",0,1,2],"3v":["v",0,1,2],"1-2":["v",0,["h",1,2]],"3r":["h",["v",0,1],2],"4h":["h",0,1,2,3],"4v":["v",0,1,2,3],"4s":["h",0,["v",1,2,3]],"1-3":["v",0,["h",1,2,3]],"2-2":["v",["h",0,1],["v",2,3]],"1-4":["v",0,["h",1,2,3,4]],"5s":["h",0,["v",1,2,3,4]],"6c":["v",["h",0,1],["h",2,3],["h",4,5]],"8c":["v",["h",0,1],["h",2,3],["h",4,5],["h",6,7]],"s":0}')}},e=>{e.O(0,[5386,1857],()=>{return t=97881,e(e.s=t);var t});e.O()}]); \ No newline at end of file diff --git a/charting_library/bundles/load-chart-dialog.35a2a7b957a4a4ecde2f.js b/charting_library/bundles/load-chart-dialog.35a2a7b957a4a4ecde2f.js deleted file mode 100644 index bc64d303..00000000 --- a/charting_library/bundles/load-chart-dialog.35a2a7b957a4a4ecde2f.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5009],{88227:e=>{e.exports={highlight:"highlight-qXMjeLA3",active:"active-qXMjeLA3"}},86956:e=>{e.exports={dialog:"dialog-uOI0EVoT",contentList:"contentList-uOI0EVoT"}},63843:e=>{e.exports={container:"container-jjwO7WRQ",list:"list-jjwO7WRQ",overlayScrollWrap:"overlayScrollWrap-jjwO7WRQ",scroll:"scroll-jjwO7WRQ"}},92360:e=>{e.exports={container:"container-PLu464zm",title:"title-PLu464zm"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},36690:e=>{e.exports={container:"container-cz7bNe0c",labelWrap:"labelWrap-cz7bNe0c",icon:"icon-cz7bNe0c",text:"text-cz7bNe0c"}},30636:e=>{e.exports={sortButton:"sortButton-Ya1Tq1iv",icon:"icon-Ya1Tq1iv"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},90186:(e,t,o)=>{"use strict";function n(e){return i(e,a)}function r(e){return i(e,c)}function i(e,t){const o=Object.entries(e).filter(t),n={};for(const[e,t]of o)n[e]=t;return n}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function c(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>n,filterAriaProps:()=>r,filterProps:()=>i,isDataAttribute:()=>a,isAriaAttribute:()=>c})},40233:(e,t,o)=>{"use strict";o.d(t,{VerticalAttachEdge:()=>n,HorizontalAttachEdge:()=>r,VerticalDropDirection:()=>i,HorizontalDropDirection:()=>a,getPopupPositioner:()=>s});var n,r,i,a,c=o(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(n||(n={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(r||(r={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(i||(i={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:n.Bottom,horizontalAttachEdge:r.Left,verticalDropDirection:i.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function s(e,t){return(o,s)=>{const u=(0,c.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:d=l.verticalAttachEdge,verticalDropDirection:m=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:f=l.horizontalDropDirection,horizontalMargin:v=l.horizontalMargin,verticalMargin:g=l.verticalMargin,matchButtonAndListboxWidths:p=l.matchButtonAndListboxWidths}=t,E=d===n.Top?-1*g:g,C=h===r.Right?u.right:u.left,y=d===n.Top?u.top:u.bottom,S={x:C-(f===a.FromRightToLeft?o:0)+v,y:y-(m===i.FromBottomToTop?s:0)+E};return p&&(S.overrideWidth=u.width),S}} -},9512:(e,t,o)=>{"use strict";o.r(t),o.d(t,{LoadChartDialogRenderer:()=>ne});var n=o(59496),r=o(87995),i=o(88537),a=o(28353),c=o(56840),l=o(49483),s=o(85457),u=o(97754),d=o.n(u),m=o(50628),h=o(40233),f=o(9745),v=o(26659),g=o(46185),p=o(30636);function E(e){const{sortDirection:t,children:o,...r}=e,i=(0,n.useRef)(null),[a,c]=(0,n.useState)(!1);return n.createElement("div",{...r,ref:i,className:u(p.sortButton,"apply-common-tooltip","common-tooltip-vertical"),onClick:function(){c(!a)}},n.createElement(f.Icon,{className:p.icon,icon:0===t?v:g}),n.createElement(m.PopupMenu,{doNotCloseOn:i.current,isOpened:a,onClose:()=>{c(!1)},position:(0,h.getPopupPositioner)(i.current,{verticalMargin:-35,verticalAttachEdge:0})},o))}var C=o(16396),y=o(36690);function S(e){const{label:t,listSortField:o,itemSortField:r,listSortDirection:i,itemSortDirection:a,onClick:c,className:l,...s}=e,d=r===o&&a===i;return n.createElement(C.PopupMenuItem,{...s,className:u(y.container,l),label:n.createElement("div",{className:y.labelWrap},n.createElement(f.Icon,{className:y.icon,icon:0===a?v:g}),n.createElement("span",{className:y.text},t)),isActive:d,onClick:function(){c(r,a)},"data-active":d.toString(),"data-sort-field":r,"data-sort-direction":0===a?"asc":"desc"})}var b=o(69654),x=o(92360);function w(e){const{children:t,className:o}=e;return n.createElement("div",{className:d()(x.container,o)},t)}function D(e){const{title:t}=e;return n.createElement("div",{className:x.title},t)}var F=o(93751);var k=o(83199),M=o(9837),T=o.n(M),N=o(62820),O=o(898),L=o(33127);var R=o(3085),I=o(63843);function A(e){const{className:t,onScroll:o,onTouchStart:r,reference:i,children:a,scrollbar:c,...s}=e,[u,m]=(0,O.useDimensions)(),[h,f,v,g]=(0,L.useOverlayScroll)();return(0,n.useEffect)(()=>{const e=()=>{};return l.isFF?(document.addEventListener("wheel",()=>e),()=>{document.removeEventListener("wheel",e)}):e},[]),n.createElement(T(),{onMeasure:u},n.createElement("div",{..."overlay"===c&&f,className:d()(I.container,t),onTouchStart:r,onScrollCapture:o},"overlay"===c&&n.createElement(R.OverlayScrollContainer,{...h,className:I.overlayScrollWrap}),n.createElement(k.FixedSizeList,{ref:i,className:d()("native"===c?I.scroll:I.list),outerRef:"overlay"===c?v:void 0,onItemsRendered:g,layout:"vertical",width:"100%",height:(null==m?void 0:m.height)||0,children:a,direction:(0,N.isRtl)()?"rtl":"ltr",...s})))}var P=o(84015);var z=o(64530),W=o(9315),B=o(50655),j=o(3615);var H=o(1860),q=o(64806),_=o(24637),U=o(19785),G=o(88227);const K=new H.DateFormatter("dd-MM-yyyy"),V=new q.TimeFormatter("%h:%m");function $(e){const{chart:t,chartWidgetCollection:o,trackEvent:r,localFavorites:i,onClose:c,searchString:l,onClickRemove:s,onRemoveCanceled:u,isSelected:m}=e,[h,f]=(0,n.useState)(()=>t.active()),[v,g]=(0,n.useState)(!1),p=t.url?function(e){const t=e.chartId?`/chart/${e.chartId}/`:"/chart/",o=new URL(t,location.href);return e.symbol&&o.searchParams.append("symbol",e.symbol),e.interval&&o.searchParams.append("interval",e.interval),e.style&&o.searchParams.append("style",e.style),(0, -P.urlWithMobileAppParams)(o.href)}({chartId:t.url}):void 0,E=(0,n.useContext)(B.SlotContext),C=(0,n.useMemo)(()=>new Date(1e3*t.modified),[t]),y=(0,n.useMemo)(()=>(0,U.createRegExpList)(l),[l]),S=d()(G.highlight,h&&G.active);return(0,n.useEffect)(()=>(o&&o.metaInfo.id.subscribe(x),()=>{o&&o.metaInfo.id.unsubscribe(x)}),[]),n.createElement(z.DialogContentItem,{url:p,title:n.createElement(_.HighlightedText,{className:S,queryString:l,rules:y,text:t.title}),subtitle:n.createElement(n.Fragment,null,n.createElement(_.HighlightedText,{className:S,queryString:l,rules:y,text:t.description})," ","(",K.format(C).replace(/-/g,".")," ",V.formatLocal(C),")"),onClick:function(e){0;t.openAction(),!1},onClickFavorite:function(){0;const e={...i};e[t.id]?delete e[t.id]:e[t.id]=!0;t.favoriteAction(e)},onClickRemove:async function(){if(v)return;g(!0);const e=await async function(e){const t=(0,a.t)("Do you really want to delete Chart Layout '{name}' ?",{replace:{name:e.title}});return t}(t);g(!1),function(e,t,o,n){(0,j.showConfirm)({text:e,onConfirm:({dialogClose:e})=>{t(),e()},onClose:()=>{o()}},n)}(e,b,u,E)},isFavorite:Boolean(i[t.id]),isActive:h,isSelected:m,"data-name":"load-chart-dialog-item"});function b(){t.deleteAction().then(()=>s(t.id))}function x(e){f(t.id===e)}}var Q=o(59064),Y=o(68335);var Z=o(86956);const J={sortField:"modified",sortDirection:1},X=function(e){const{paddingTop:t=0,paddingBottom:o=0}=e;return(0,n.forwardRef)(({style:e,...r},i)=>{const{height:a=0}=e;return n.createElement("div",{ref:i,style:{...e,height:((0,F.isNumber)(a)?a:parseFloat(a))+t+o+"px"},...r})})}({paddingBottom:6});function ee(e){let t;try{t=(0,W.getTranslatedResolution)(e)}catch(o){t=e}return t}function te(e){const{charts:t,onClose:o,favoriteChartsService:r,chartWidgetCollection:u}=e,[d,m]=(0,n.useState)(""),[h,f]=(0,n.useState)(d),[v,g]=(0,n.useState)([]),p=(0,n.useRef)(null),[C,y]=(0,n.useState)(()=>r.get()),[x,F]=(0,n.useState)(()=>c.getJSON("loadChartDialog.viewState",J)),k=(0,n.useRef)(null),M=(0,n.useRef)(null),T=(0,n.useMemo)(()=>t.map(e=>({...e,description:`${e.symbol}, ${ee(e.interval)}`})),[t]);(0,n.useEffect)(()=>{l.CheckMobile.any()||(0,i.ensureNotNull)(k.current).focus()},[]);const N=(0,n.useRef)();(0,n.useEffect)(()=>(N.current=setTimeout(()=>{m(h)},300),()=>{clearTimeout(N.current)}),[h]),(0,n.useEffect)(()=>(r.getOnChange().subscribe(null,H),()=>{r.getOnChange().unsubscribe(null,H)}),[]);const O=(0,n.useCallback)(()=>!0,[]),L=(0,n.useMemo)(()=>{return(0,U.rankedSearch)({data:T.filter(e=>!v.includes(e.id)).sort((e=x.sortDirection,(t,o)=>{if(C[t.id]&&!C[o.id])return-1;if(!C[t.id]&&C[o.id])return 1;const n=0===e?1:-1;return"modified"===x.sortField?n*(t.modified-o.modified):n*t.title.localeCompare(o.title)})),rules:(0,U.createRegExpList)(d),queryString:d,primaryKey:"title",secondaryKey:"description"});var e},[d,x,v,C]),{selectedItemIndex:R,setSelectedItemIndex:I,handleKeyboardSelection:P}=function(e,t,o){const[r,i]=(0,n.useState)(-1);return(0,n.useEffect)(()=>{var e;-1!==r&&(null===(e=o.current)||void 0===e||e.scrollToItem(r))},[r]),{ -selectedItemIndex:r,setSelectedItemIndex:i,handleKeyboardSelection:function(o){switch((0,Y.hashFromEvent)(o)){case 40:if(r===e-1)return;i(r+1);break;case 38:if(0===r)return;if(-1===r)return void i(r+1);i(r-1);break;case 13:t(o)}}}}(L.length,(function(e){const t=L[R];if(-1===R||!t)return;0;t.openAction(),!1}),M);return n.createElement(s.AdaptivePopupDialog,{ref:p,onClose:o,onClickOutside:o,onKeyDown:P,isOpened:!0,className:Z.dialog,title:(0,a.t)("Load layout"),dataName:"load-layout-dialog",render:function(){return n.createElement(n.Fragment,null,n.createElement(b.DialogSearch,{reference:k,onChange:W,placeholder:(0,a.t)("Search")}),n.createElement(w,null,n.createElement(D,{title:(0,a.t)("Layout name")}),n.createElement(E,{sortDirection:x.sortDirection,title:(0,a.t)("Sort by layout name, date changed"),"data-name":"load-chart-dialog-sort-button"},n.createElement(S,{label:(0,a.t)("Layout name (A to Z)"),listSortField:x.sortField,itemSortField:"title",listSortDirection:x.sortDirection,itemSortDirection:0,onClick:_,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(S,{label:(0,a.t)("Layout name (Z to A)"),listSortField:x.sortField,itemSortField:"title",listSortDirection:x.sortDirection,itemSortDirection:1,onClick:_,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(S,{label:(0,a.t)("Date modified (oldest first)"),listSortField:x.sortField,itemSortField:"modified",listSortDirection:x.sortDirection,itemSortDirection:0,onClick:_,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(S,{label:(0,a.t)("Date modified (newest first)"),listSortField:x.sortField,itemSortField:"modified",listSortDirection:x.sortDirection,itemSortDirection:1,onClick:_,"data-name":"load-chart-dialog-sort-menu-item"}))),n.createElement(A,{scrollbar:"native",reference:M,itemCount:L.length,itemSize:52,className:Z.contentList,onScroll:z,innerElementType:X,itemKey:e=>(C[L[e].id]?"f_":"")+L[e].id,children:({style:e,index:t})=>n.createElement("div",{style:e},n.createElement($,{chart:L[t],onClose:o,chartWidgetCollection:u,trackEvent:B,onRemoveCanceled:q,localFavorites:C,searchString:d,onClickRemove:j,isSelected:t===R}))}))},forceCloseOnEsc:O});function z(){Q.globalCloseDelegate.fire()}function W(e){const t=e.currentTarget.value;f(t),I(-1)}function B(e){0}function j(e){g([e,...v])}function H(e){y(e)}function q(){(0,i.ensureNotNull)(p.current).focus()}function _(e,t){const o={sortField:e,sortDirection:t};F(o),c.setValue("loadChartDialog.viewState",JSON.stringify(o),{forceFlush:!0}),B()}}var oe=o(22729);class ne extends oe.DialogRenderer{constructor(e){super(),this._options=e}show(){r.render(n.createElement(te,{...this._options,onClose:()=>this.hide()}),this._container),this._setVisibility(!0)}hide(){r.unmountComponentAtNode(this._container),this._setVisibility(!1)}}},39640:(e,t,o)=>{"use strict";function n(e,t,o,n,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==o&&null!==t&&null!==i&&i.ownerDocument===n&&(t.contains(i)||o(r))}return r.click&&n.addEventListener("click",i,!1), -r.mouseDown&&n.addEventListener("mousedown",i,!1),r.touchEnd&&n.addEventListener("touchend",i,!1),r.touchStart&&n.addEventListener("touchstart",i,!1),()=>{n.removeEventListener("click",i,!1),n.removeEventListener("mousedown",i,!1),n.removeEventListener("touchend",i,!1),n.removeEventListener("touchstart",i,!1)}}o.d(t,{addOutsideEventListener:()=>n})},69654:(e,t,o)=>{"use strict";o.d(t,{DialogSearch:()=>u});var n=o(59496),r=o(97754),i=o.n(r),a=o(28353),c=o(9745),l=o(5639),s=o(28712);function u(e){const{children:t,renderInput:o,onCancel:r,...u}=e;return n.createElement("div",{className:s.container},n.createElement("div",{className:i()(s.inputContainer,r&&s.withCancel)},o||n.createElement(d,{...u})),t,n.createElement(c.Icon,{className:s.icon,icon:l}),r&&n.createElement("div",{className:s.cancel,onClick:r},(0,a.t)("Cancel")))}function d(e){const{className:t,reference:o,value:r,onChange:a,onFocus:c,onBlur:l,onKeyDown:u,onSelect:d,placeholder:m,...h}=e;return n.createElement("input",{...h,ref:o,type:"text",className:i()(t,s.input),autoComplete:"off","data-role":"search",placeholder:m,value:r,onChange:a,onFocus:c,onBlur:l,onSelect:d,onKeyDown:u})}},19785:(e,t,o)=>{"use strict";o.d(t,{rankedSearch:()=>r,createRegExpList:()=>i,getHighlightedChars:()=>a});var n=o(80643);function r(e){const{data:t,rules:o,queryString:r,isPreventedFromFiltering:i,primaryKey:a,secondaryKey:c=a,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[a],i=e[c];let s,u=0;return o.forEach(e=>{var o,a,c,l;const{re:d,fullMatch:m}=e;return d.lastIndex=0,t&&t.toLowerCase()===r.toLowerCase()?(u=3,void(s=null===(o=t.match(m))||void 0===o?void 0:o.index)):(0,n.isString)(t)&&m.test(t)?(u=2,void(s=null===(a=t.match(m))||void 0===a?void 0:a.index)):(0,n.isString)(i)&&m.test(i)?(u=1,void(s=null===(c=i.match(m))||void 0===c?void 0:c.index)):void((0,n.isString)(i)&&d.test(i)&&(u=1,s=null===(l=i.match(d))||void 0===l?void 0:l.index))}),{matchPriority:u,matchIndex:s,item:e}}).filter(e=>i||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function i(e,t){const o=[],n=e.toLowerCase(),r=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+c(e):c(e)})`).join("(.*?)")+"(.*)";return o.push({fullMatch:new RegExp(`(${c(e)})`,"i"),re:new RegExp("^"+r,"i"),reserveRe:new RegExp(r,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(n)&&o.push({fullMatch:t[n],re:t[n],fuzzyHighlight:!1}),o}function a(e,t,o){const n=[];return e&&o?(o.forEach(e=>{const{fullMatch:o,re:r,reserveRe:i}=e;o.lastIndex=0,r.lastIndex=0;const a=o.exec(t),c=a||r.exec(t)||i&&i.exec(t);if(e.fuzzyHighlight=!a,c)if(e.fuzzyHighlight){let e=c.index;for(let t=1;t{"use strict";o.d(t,{HighlightedText:()=>c});var n=o(59496),r=o(97754),i=o(19785),a=o(81524);function c(e){const{queryString:t,rules:o,text:c,className:l}=e,s=(0,n.useMemo)(()=>(0,i.getHighlightedChars)(t,c,o),[t,o,c]);return n.createElement(n.Fragment,null,s.length?c.split("").map((e,t)=>n.createElement(n.Fragment,{key:t},s[t]?n.createElement("span",{className:r(a.highlighted,l)},e):n.createElement("span",null,e))):c)}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>s,PopupMenuItem:()=>m});var n=o(59496),r=o(97754),i=o(59064),a=o(51768),c=o(90186),l=o(23576);const s=l;function u(e){const{reference:t,...o}=e,r={...o,ref:t};return n.createElement(e.href?"a":"div",r)}function d(e){e.stopPropagation()}function m(e){const{id:t,role:o,"aria-selected":s,className:m,title:h,labelRowClassName:f,labelClassName:v,shortcut:g,forceShowShortcuts:p,icon:E,isActive:C,isDisabled:y,isHovered:S,appearAsDisabled:b,label:x,link:w,showToolboxOnHover:D,target:F,rel:k,toolbox:M,reference:T,onMouseOut:N,onMouseOver:O,suppressToolboxClick:L=!0,theme:R=l}=e,I=(0,c.filterDataProps)(e),A=(0,n.useRef)(null);return n.createElement(u,{...I,id:t,role:o,"aria-selected":s,className:r(m,R.item,E&&R.withIcon,{[R.isActive]:C,[R.isDisabled]:y||b,[R.hovered]:S}),title:h,href:w,target:F,rel:k,reference:function(e){A.current=e,"function"==typeof T&&T(e);"object"==typeof T&&(T.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:n,onClickArg:r,trackEventObject:c}=e;if(y)return;c&&(0,a.trackEvent)(c.category,c.event,c.label);n&&n(r,t);o||(0,i.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:n}=e;o&&n&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:n}=e;if(1===t.button&&w&&o){let e=o.label;n&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:O,onMouseOut:N},void 0!==E&&n.createElement("div",{className:R.icon,dangerouslySetInnerHTML:{__html:E}}),n.createElement("div",{className:r(R.labelRow,f)},n.createElement("div",{className:r(R.label,v)},x)),(void 0!==g||p)&&n.createElement("div",{className:R.shortcut},(P=g)&&P.split("+").join(" + ")),void 0!==M&&n.createElement("div",{onClick:L?d:void 0,className:r(R.toolbox,{[R.showOnHover]:D})},M));var P}},50628:(e,t,o)=>{"use strict";o.d(t,{PopupMenu:()=>s});var n=o(59496),r=o(87995),i=o(65718),a=o(27317),c=o(29197),l=o(58095);function s(e){const{controller:t,children:o,isOpened:s,closeOnClickOutside:u=!0,doNotCloseOn:d,onClickOutside:m,onClose:h,...f}=e,v=(0,n.useContext)(c.CloseDelegateContext),g=(0,l.useOutsideEvent)({handler:function(e){m&&m(e);if(!u)return;if(d&&e.target instanceof Node){const t=r.findDOMNode(d);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return s?n.createElement(i.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},n.createElement("span",{ref:g,style:{pointerEvents:"auto"}},n.createElement(a.Menu,{ -...f,onClose:h,onScroll:function(t){const{onScroll:o}=e;o&&o(t)},customCloseDelegate:v,ref:t},o))):null}},46185:e=>{e.exports=''},26659:e=>{e.exports=''},5639:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/load-chart-dialog.cd5fbcdffc1ad4008003.js b/charting_library/bundles/load-chart-dialog.cd5fbcdffc1ad4008003.js new file mode 100644 index 00000000..6fc9d264 --- /dev/null +++ b/charting_library/bundles/load-chart-dialog.cd5fbcdffc1ad4008003.js @@ -0,0 +1,7 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5009],{88227:e=>{e.exports={highlight:"highlight-qXMjeLA3",active:"active-qXMjeLA3"}},86956:e=>{e.exports={dialog:"dialog-uOI0EVoT",contentList:"contentList-uOI0EVoT"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},63843:e=>{e.exports={container:"container-jjwO7WRQ",list:"list-jjwO7WRQ",overlayScrollWrap:"overlayScrollWrap-jjwO7WRQ",scroll:"scroll-jjwO7WRQ"}},92360:e=>{e.exports={container:"container-PLu464zm",title:"title-PLu464zm"}},28712:e=>{e.exports={container:"container-CcsqUMct",inputContainer:"inputContainer-CcsqUMct",withCancel:"withCancel-CcsqUMct",input:"input-CcsqUMct",icon:"icon-CcsqUMct",cancel:"cancel-CcsqUMct"}},36690:e=>{e.exports={container:"container-cz7bNe0c",labelWrap:"labelWrap-cz7bNe0c",icon:"icon-cz7bNe0c",text:"text-cz7bNe0c"}},30636:e=>{e.exports={sortButton:"sortButton-Ya1Tq1iv",icon:"icon-Ya1Tq1iv"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},81524:e=>{e.exports={highlighted:"highlighted-YWUtZHTy"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},90186:(e,t,o)=>{"use strict";function n(e){return r(e,a)}function i(e){return r(e,l)}function r(e,t){const o=Object.entries(e).filter(t),n={};for(const[e,t]of o)n[e]=t;return n}function a(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function l(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterDataProps:()=>n,filterAriaProps:()=>i,filterProps:()=>r,isDataAttribute:()=>a,isAriaAttribute:()=>l})},40233:(e,t,o)=>{"use strict";o.d(t,{VerticalAttachEdge:()=>n,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>a,getPopupPositioner:()=>s});var n,i,r,a,l=o(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(n||(n={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const c={verticalAttachEdge:n.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function s(e,t){return(o,s)=>{const d=(0, +l.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=c.verticalAttachEdge,verticalDropDirection:m=c.verticalDropDirection,horizontalAttachEdge:h=c.horizontalAttachEdge,horizontalDropDirection:f=c.horizontalDropDirection,horizontalMargin:v=c.horizontalMargin,verticalMargin:g=c.verticalMargin,matchButtonAndListboxWidths:p=c.matchButtonAndListboxWidths}=t,b=u===n.Top?-1*g:g,y=h===i.Right?d.right:d.left,C=u===n.Top?d.top:d.bottom,x={x:y-(f===a.FromRightToLeft?o:0)+v,y:C-(m===r.FromBottomToTop?s:0)+b};return p&&(x.overrideWidth=d.width),x}}},9512:(e,t,o)=>{"use strict";o.r(t),o.d(t,{LoadChartDialogRenderer:()=>ne});var n=o(59496),i=o(87995),r=o(88537),a=o(28353),l=o(56840),c=o(49483),s=o(85457),d=o(97754),u=o.n(d),m=o(50628),h=o(40233),f=o(9745),v=o(26659),g=o(46185),p=o(30636);function b(e){const{sortDirection:t,children:o,...i}=e,r=(0,n.useRef)(null),[a,l]=(0,n.useState)(!1);return n.createElement("div",{...i,ref:r,className:d(p.sortButton,"apply-common-tooltip","common-tooltip-vertical"),onClick:function(){l(!a)}},n.createElement(f.Icon,{className:p.icon,icon:0===t?v:g}),n.createElement(m.PopupMenu,{doNotCloseOn:r.current,isOpened:a,onClose:()=>{l(!1)},position:(0,h.getPopupPositioner)(r.current,{verticalMargin:-35,verticalAttachEdge:0})},o))}var y=o(16396),C=o(36690);function x(e){const{label:t,listSortField:o,itemSortField:i,listSortDirection:r,itemSortDirection:a,onClick:l,className:c,...s}=e,u=i===o&&a===r;return n.createElement(y.PopupMenuItem,{...s,className:d(C.container,c),label:n.createElement("div",{className:C.labelWrap},n.createElement(f.Icon,{className:C.icon,icon:0===a?v:g}),n.createElement("span",{className:C.text},t)),isActive:u,onClick:function(){l(i,a)},"data-active":u.toString(),"data-sort-field":i,"data-sort-direction":0===a?"asc":"desc"})}var E=o(69654),w=o(92360);function S(e){const{children:t,className:o}=e;return n.createElement("div",{className:u()(w.container,o)},t)}function D(e){const{title:t}=e;return n.createElement("div",{className:w.title},t)}var k=o(93751);var F=o(69397),M=o(9837),T=o.n(M),N=o(62820),R=o(898),L=o(33127);var O=o(3085),I=o(63843);function A(e){const{className:t,onScroll:o,onTouchStart:i,reference:r,children:a,scrollbar:l,...s}=e,[d,m]=(0,R.useDimensions)(),[h,f,v,g]=(0,L.useOverlayScroll)();return(0,n.useEffect)(()=>{const e=()=>{};return c.isFF?(document.addEventListener("wheel",()=>e),()=>{document.removeEventListener("wheel",e)}):e},[]),n.createElement(T(),{onMeasure:d},n.createElement("div",{..."overlay"===l&&f,className:u()(I.container,t),onTouchStart:i,onScrollCapture:o},"overlay"===l&&n.createElement(O.OverlayScrollContainer,{...h,className:I.overlayScrollWrap}),n.createElement(F.FixedSizeList,{ref:r,className:u()("native"===l?I.scroll:I.list),outerRef:"overlay"===l?v:void 0,onItemsRendered:g,layout:"vertical",width:"100%",height:(null==m?void 0:m.height)||0,children:a,direction:(0,N.isRtl)()?"rtl":"ltr",...s})))}var P=o(84015);var z=o(64530),B=o(9315),W=o(50655),H=o(3615);var j=o(1860),Q=o(64806),q=o(24637),_=o(19785),U=o(88227) +;const V=new j.DateFormatter("dd-MM-yyyy"),G=new Q.TimeFormatter("%h:%m");function K(e){const{chart:t,chartWidgetCollection:o,trackEvent:i,localFavorites:r,onClose:l,searchString:c,onClickRemove:s,onRemoveCanceled:d,isSelected:m}=e,[h,f]=(0,n.useState)(()=>t.active()),[v,g]=(0,n.useState)(!1),p=t.url?function(e){const t=e.chartId?`/chart/${e.chartId}/`:"/chart/",o=new URL(t,location.href);return e.symbol&&o.searchParams.append("symbol",e.symbol),e.interval&&o.searchParams.append("interval",e.interval),e.style&&o.searchParams.append("style",e.style),(0,P.urlWithMobileAppParams)(o.href)}({chartId:t.url}):void 0,b=(0,n.useContext)(W.SlotContext),y=(0,n.useMemo)(()=>new Date(1e3*t.modified),[t]),C=(0,n.useMemo)(()=>(0,_.createRegExpList)(c),[c]),x=u()(U.highlight,h&&U.active);return(0,n.useEffect)(()=>(o&&o.metaInfo.id.subscribe(w),()=>{o&&o.metaInfo.id.unsubscribe(w)}),[]),n.createElement(z.DialogContentItem,{url:p,title:n.createElement(q.HighlightedText,{className:x,queryString:c,rules:C,text:t.title}),subtitle:n.createElement(n.Fragment,null,n.createElement(q.HighlightedText,{className:x,queryString:c,rules:C,text:t.description})," ","(",V.format(y).replace(/-/g,".")," ",G.formatLocal(y),")"),onClick:function(e){0;t.openAction(),!1},onClickFavorite:function(){0;const e={...r};e[t.id]?delete e[t.id]:e[t.id]=!0;t.favoriteAction(e)},onClickRemove:async function(){if(v)return;g(!0);const e=await async function(e){const t=(0,a.t)("Do you really want to delete Chart Layout '{name}' ?",{replace:{name:e.title}});return t}(t);g(!1),function(e,t,o,n){(0,H.showConfirm)({text:e,onConfirm:({dialogClose:e})=>{t(),e()},onClose:()=>{o()}},n)}(e,E,d,b)},isFavorite:Boolean(r[t.id]),isActive:h,isSelected:m,"data-name":"load-chart-dialog-item"});function E(){t.deleteAction().then(()=>s(t.id))}function w(e){f(t.id===e)}}var J=o(59064),$=o(68335);var Y=o(86956);const Z={sortField:"modified",sortDirection:1},X=function(e){const{paddingTop:t=0,paddingBottom:o=0}=e;return(0,n.forwardRef)(({style:e,...i},r)=>{const{height:a=0}=e;return n.createElement("div",{ref:r,style:{...e,height:((0,k.isNumber)(a)?a:parseFloat(a))+t+o+"px"},...i})})}({paddingBottom:6});function ee(e){let t;try{t=(0,B.getTranslatedResolution)(e)}catch(o){t=e}return t}function te(e){const{charts:t,onClose:o,favoriteChartsService:i,chartWidgetCollection:d}=e,[u,m]=(0,n.useState)(""),[h,f]=(0,n.useState)(u),[v,g]=(0,n.useState)([]),p=(0,n.useRef)(null),[y,C]=(0,n.useState)(()=>i.get()),[w,k]=(0,n.useState)(()=>l.getJSON("loadChartDialog.viewState",Z)),F=(0,n.useRef)(null),M=(0,n.useRef)(null),T=(0,n.useMemo)(()=>t.map(e=>({...e,description:`${e.symbol}, ${ee(e.interval)}`})),[t]);(0,n.useEffect)(()=>{c.CheckMobile.any()||(0,r.ensureNotNull)(F.current).focus()},[]);const N=(0,n.useRef)();(0,n.useEffect)(()=>(N.current=setTimeout(()=>{m(h)},300),()=>{clearTimeout(N.current)}),[h]),(0,n.useEffect)(()=>(i.getOnChange().subscribe(null,j),()=>{i.getOnChange().unsubscribe(null,j)}),[]);const R=(0,n.useCallback)(()=>!0,[]),L=(0,n.useMemo)(()=>{return(0,_.rankedSearch)({ +data:T.filter(e=>!v.includes(e.id)).sort((e=w.sortDirection,(t,o)=>{if(y[t.id]&&!y[o.id])return-1;if(!y[t.id]&&y[o.id])return 1;const n=0===e?1:-1;return"modified"===w.sortField?n*(t.modified-o.modified):n*t.title.localeCompare(o.title)})),rules:(0,_.createRegExpList)(u),queryString:u,primaryKey:"title",secondaryKey:"description"});var e},[u,w,v,y]),{selectedItemIndex:O,setSelectedItemIndex:I,handleKeyboardSelection:P}=function(e,t,o){const[i,r]=(0,n.useState)(-1);return(0,n.useEffect)(()=>{var e;-1!==i&&(null===(e=o.current)||void 0===e||e.scrollToItem(i))},[i]),{selectedItemIndex:i,setSelectedItemIndex:r,handleKeyboardSelection:function(o){switch((0,$.hashFromEvent)(o)){case 40:if(i===e-1)return;r(i+1);break;case 38:if(0===i)return;if(-1===i)return void r(i+1);r(i-1);break;case 13:t(o)}}}}(L.length,(function(e){const t=L[O];if(-1===O||!t)return;0;t.openAction(),!1}),M);return n.createElement(s.AdaptivePopupDialog,{ref:p,onClose:o,onClickOutside:o,onKeyDown:P,isOpened:!0,className:Y.dialog,title:(0,a.t)("Load layout"),dataName:"load-layout-dialog",render:function(){return n.createElement(n.Fragment,null,n.createElement(E.DialogSearch,{reference:F,onChange:B,placeholder:(0,a.t)("Search")}),n.createElement(S,null,n.createElement(D,{title:(0,a.t)("Layout name")}),n.createElement(b,{sortDirection:w.sortDirection,title:(0,a.t)("Sort by layout name, date changed"),"data-name":"load-chart-dialog-sort-button"},n.createElement(x,{label:(0,a.t)("Layout name (A to Z)"),listSortField:w.sortField,itemSortField:"title",listSortDirection:w.sortDirection,itemSortDirection:0,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(x,{label:(0,a.t)("Layout name (Z to A)"),listSortField:w.sortField,itemSortField:"title",listSortDirection:w.sortDirection,itemSortDirection:1,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(x,{label:(0,a.t)("Date modified (oldest first)"),listSortField:w.sortField,itemSortField:"modified",listSortDirection:w.sortDirection,itemSortDirection:0,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),n.createElement(x,{label:(0,a.t)("Date modified (newest first)"),listSortField:w.sortField,itemSortField:"modified",listSortDirection:w.sortDirection,itemSortDirection:1,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}))),n.createElement(A,{scrollbar:"native",reference:M,itemCount:L.length,itemSize:52,className:Y.contentList,onScroll:z,innerElementType:X,itemKey:e=>(y[L[e].id]?"f_":"")+L[e].id,children:({style:e,index:t})=>n.createElement("div",{style:e},n.createElement(K,{chart:L[t],onClose:o,chartWidgetCollection:d,trackEvent:W,onRemoveCanceled:Q,localFavorites:y,searchString:u,onClickRemove:H,isSelected:t===O}))}))},forceCloseOnEsc:R});function z(){J.globalCloseDelegate.fire()}function B(e){const t=e.currentTarget.value;f(t),I(-1)}function W(e){0}function H(e){g([e,...v])}function j(e){C(e)}function Q(){(0,r.ensureNotNull)(p.current).focus()}function q(e,t){const o={sortField:e,sortDirection:t};k(o), +l.setValue("loadChartDialog.viewState",JSON.stringify(o),{forceFlush:!0}),W()}}var oe=o(22729);class ne extends oe.DialogRenderer{constructor(e){super(),this._options=e}show(){i.render(n.createElement(te,{...this._options,onClose:()=>this.hide()}),this._container),this._setVisibility(!0)}hide(){i.unmountComponentAtNode(this._container),this._setVisibility(!1)}}},24437:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>i});var n=o(96746);const i={SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},69654:(e,t,o)=>{"use strict";o.d(t,{DialogSearch:()=>d});var n=o(59496),i=o(97754),r=o.n(i),a=o(28353),l=o(9745),c=o(5639),s=o(28712);function d(e){const{children:t,renderInput:o,onCancel:i,...d}=e;return n.createElement("div",{className:s.container},n.createElement("div",{className:r()(s.inputContainer,i&&s.withCancel)},o||n.createElement(u,{...d})),t,n.createElement(l.Icon,{className:s.icon,icon:c}),i&&n.createElement("div",{className:s.cancel,onClick:i},(0,a.t)("Cancel")))}function u(e){const{className:t,reference:o,value:i,onChange:a,onFocus:l,onBlur:c,onKeyDown:d,onSelect:u,placeholder:m,...h}=e;return n.createElement("input",{...h,ref:o,type:"text",className:r()(t,s.input),autoComplete:"off","data-role":"search",placeholder:m,value:i,onChange:a,onFocus:l,onBlur:c,onSelect:u,onKeyDown:d})}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>u});var n=o(28353),i=o(59496),r=o(97754),a=o(9745),l=o(20614),c=o(55783),s=o(16842);const d={add:(0,n.t)("Add to favorites"),remove:(0,n.t)("Remove from favorites")};function u(e){const{className:t,isFilled:o,isActive:n,onClick:u,...m}=e;return i.createElement(a.Icon,{...m,className:r(s.favorite,"apply-common-tooltip",o&&s.checked,n&&s.active,t),icon:o?l:c,onClick:u,title:o?d.remove:d.add})}},19785:(e,t,o)=>{"use strict";o.d(t,{rankedSearch:()=>i,createRegExpList:()=>r,getHighlightedChars:()=>a});var n=o(80643);function i(e){const{data:t,rules:o,queryString:i,isPreventedFromFiltering:r,primaryKey:a,secondaryKey:l=a,optionalPrimaryKey:c}=e;return t.map(e=>{const t=c&&e[c]?e[c]:e[a],r=e[l];let s,d=0;return o.forEach(e=>{var o,a,l,c;const{re:u,fullMatch:m}=e;return u.lastIndex=0,t&&t.toLowerCase()===i.toLowerCase()?(d=3,void(s=null===(o=t.match(m))||void 0===o?void 0:o.index)):(0,n.isString)(t)&&m.test(t)?(d=2,void(s=null===(a=t.match(m))||void 0===a?void 0:a.index)):(0,n.isString)(r)&&m.test(r)?(d=1,void(s=null===(l=r.match(m))||void 0===l?void 0:l.index)):void((0,n.isString)(r)&&u.test(r)&&(d=1,s=null===(c=r.match(u))||void 0===c?void 0:c.index))}),{matchPriority:d,matchIndex:s,item:e}}).filter(e=>r||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function r(e,t){ +const o=[],n=e.toLowerCase(),i=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+l(e):l(e)})`).join("(.*?)")+"(.*)";return o.push({fullMatch:new RegExp(`(${l(e)})`,"i"),re:new RegExp("^"+i,"i"),reserveRe:new RegExp(i,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(n)&&o.push({fullMatch:t[n],re:t[n],fuzzyHighlight:!1}),o}function a(e,t,o){const n=[];return e&&o?(o.forEach(e=>{const{fullMatch:o,re:i,reserveRe:r}=e;o.lastIndex=0,i.lastIndex=0;const a=o.exec(t),l=a||i.exec(t)||r&&r.exec(t);if(e.fuzzyHighlight=!a,l)if(e.fuzzyHighlight){let e=l.index;for(let t=1;t{"use strict";o.d(t,{HighlightedText:()=>l});var n=o(59496),i=o(97754),r=o(19785),a=o(81524);function l(e){const{queryString:t,rules:o,text:l,className:c}=e,s=(0,n.useMemo)(()=>(0,r.getHighlightedChars)(t,l,o),[t,o,l]);return n.createElement(n.Fragment,null,s.length?l.split("").map((e,t)=>n.createElement(n.Fragment,{key:t},s[t]?n.createElement("span",{className:i(a.highlighted,c)},e):n.createElement("span",null,e))):l)}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>s,PopupMenuItem:()=>m});var n=o(59496),i=o(97754),r=o(59064),a=o(51768),l=o(90186),c=o(23576);const s=c;function d(e){const{reference:t,...o}=e,i={...o,ref:t};return n.createElement(e.href?"a":"div",i)}function u(e){e.stopPropagation()}function m(e){const{id:t,role:o,"aria-selected":s,className:m,title:h,labelRowClassName:f,labelClassName:v,shortcut:g,forceShowShortcuts:p,icon:b,isActive:y,isDisabled:C,isHovered:x,appearAsDisabled:E,label:w,link:S,showToolboxOnHover:D,target:k,rel:F,toolbox:M,reference:T,onMouseOut:N,onMouseOver:R,suppressToolboxClick:L=!0,theme:O=c}=e,I=(0,l.filterDataProps)(e),A=(0,n.useRef)(null);return n.createElement(d,{...I,id:t,role:o,"aria-selected":s,className:i(m,O.item,b&&O.withIcon,{[O.isActive]:y,[O.isDisabled]:C||E,[O.hovered]:x}),title:h,href:S,target:k,rel:F,reference:function(e){A.current=e,"function"==typeof T&&T(e);"object"==typeof T&&(T.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:n,onClickArg:i,trackEventObject:l}=e;if(C)return;l&&(0,a.trackEvent)(l.category,l.event,l.label);n&&n(i,t);o||(0,r.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:n}=e;o&&n&&(0,a.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:n}=e;if(1===t.button&&S&&o){let e=o.label;n&&(e+="_mouseWheelClick"),(0,a.trackEvent)(o.category,o.event,e)}},onMouseOver:R,onMouseOut:N},void 0!==b&&n.createElement("div",{className:O.icon,dangerouslySetInnerHTML:{__html:b}}),n.createElement("div",{className:i(O.labelRow,f)},n.createElement("div",{className:i(O.label,v)},w)),(void 0!==g||p)&&n.createElement("div",{className:O.shortcut},(P=g)&&P.split("+").join(" + ")),void 0!==M&&n.createElement("div",{ +onClick:L?u:void 0,className:i(O.toolbox,{[O.showOnHover]:D})},M));var P}},96040:(e,t,o)=>{"use strict";o.d(t,{RemoveButton:()=>d});var n=o(28353),i=o(59496),r=o(97754),a=o(9745),l=o(73366),c=o(73432);const s={remove:(0,n.t)("Remove")};function d(e){const{className:t,isActive:o,onClick:n,onMouseDown:d,title:u,hidden:m,"data-name":h="remove-button",...f}=e;return i.createElement(a.Icon,{...f,"data-name":h,className:r(c.button,"apply-common-tooltip",o&&c.active,m&&c.hidden,t),icon:l,onClick:n,onMouseDown:d,title:u||s.remove})}},73366:e=>{e.exports=''},46185:e=>{e.exports=''},26659:e=>{e.exports=''},5639:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/lollipop-tooltip-renderer.0ceff3b7ae8ca6b64473.js b/charting_library/bundles/lollipop-tooltip-renderer.0ceff3b7ae8ca6b64473.js new file mode 100644 index 00000000..64dccdb8 --- /dev/null +++ b/charting_library/bundles/lollipop-tooltip-renderer.0ceff3b7ae8ca6b64473.js @@ -0,0 +1,4 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9039],{59142:function(e,t){var o,n,r;n=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{e.exports={drawer:"drawer-BF9dzroi",drawerItem:"drawerItem-BF9dzroi",menuWrap:"menuWrap-BF9dzroi",menuBox:"menuBox-BF9dzroi",card:"card-BF9dzroi",mini:"mini-BF9dzroi",fadeTop:"fadeTop-BF9dzroi", +fadeBottom:"fadeBottom-BF9dzroi"}},85174:e=>{e.exports={content:"content-A343HTYW",titleWrapper:"titleWrapper-A343HTYW",title:"title-A343HTYW",subtitle:"subtitle-A343HTYW",text:"text-A343HTYW",icon:"icon-A343HTYW",group:"group-A343HTYW",groupIcon:"groupIcon-A343HTYW",beforeMarketOpen:"beforeMarketOpen-A343HTYW",afterMarketClose:"afterMarketClose-A343HTYW",groupTitle:"groupTitle-A343HTYW",groupRow:"groupRow-A343HTYW",groupCell:"groupCell-A343HTYW",link:"link-A343HTYW",mob:"mob-A343HTYW",mini:"mini-A343HTYW"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},22838:(e,t,o)=>{"use strict";o.r(t),o.d(t,{LollipopCardType:()=>S,showLollipopTooltip:()=>H});var n=o(59496),r=o(87995),l=o(88537),a=o(97754),i=o.n(a);function s(e,t,o){(0,n.useEffect)(()=>{const n=new IntersectionObserver(e=>{e[e.length-1].intersectionRatio<.25?o():t()},{threshold:[0,.25,.5,.75,1],root:null,rootMargin:"0px"});return e.current&&n.observe(e.current),()=>n.disconnect()},[])}var c=o(90692),u=o(41590),d=o(37558),m=o(50628),p=o(68335),f=o(59064),v=o(80643);const h=(0,n.forwardRef)((e,t)=>{const{onClose:o,onForceClose:r,onClickOutside:l,className:a,customCloseSubscriptions:i=[],...s}=e,c=(0,n.useRef)(null),u=(0,n.useCallback)(e=>{27===(0,p.hashFromEvent)(e)&&r()},[r]),d=(0,n.useCallback)(()=>{(0,f.globalCloseMenu)(),r()},[r]),h=(0,n.useCallback)(()=>{c.current&&c.current.focus({preventScroll:!0})},[]);return(0,n.useEffect)(()=>{const e=(t=d,window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t));var t;const o=i&&function(e,t){for(const o of e)o.subscribe(null,t);return()=>{for(const o of e)o.unsubscribe(null,t)}}(i,d);return()=>{e(),(0,v.isFunction)(o)&&o()}},[i,d]),n.createElement(m.PopupMenu,{className:a,isOpened:!0,tabIndex:-1,reference:e=>{"function"==typeof t?t(e):(0,v.isObject)(t)&&(t.current=e),c.current=e},onClose:o,onClickOutside:l,onKeyDown:u,onOpen:h,...s},e.children)});var g,w=o(40173),E=o(27317),b=o(9745),C=o(85174);function y(e){const{name:t,value:o,style:r,valueRightIcon:l}=e;return n.createElement("div",{className:C.groupRow,style:r},t&&n.createElement("div",{className:C.groupCell},n.createElement("span",{className:C.text},t)),n.createElement("div",{className:C.groupCell},n.createElement("span",{className:C.text},o),l&&n.createElement(b.Icon,{icon:l.iconContent,className:i()(C.groupIcon,l.iconClass,"apply-common-tooltip"),title:l.tooltipText})))}function T(e){const{text:t,href:o,onClick:r}=e;return n.createElement("a",{href:o,onClick:r&&(e=>{e.preventDefault(),r()}),className:C.link},t)}function k(e){var t;const{content:o=[],subTitle:r,cardType:l,anchor:a}=e,s=o.map((e,t)=>{const{title:o,content:r}=e;return n.createElement("div",{key:"group"+t,className:C.group},o&&n.createElement("span",{className:C.groupTitle},o),r.map((e,t)=>n.createElement(y,{key:"contentRow"+t,...e})))}),c=l?i()(C.content,C[l]):C.content,u="string"==typeof r?r:r.map((e,t)=>n.createElement(y,{key:"subTitle"+t,...e})) +;return n.createElement(n.Fragment,null,n.createElement("div",{className:c},e.title&&n.createElement("div",{className:C.titleWrapper},e.tooltipIcon&&n.createElement(b.Icon,{icon:e.tooltipIcon,className:C.icon,style:{color:null===(t=e.style)||void 0===t?void 0:t.color}}),n.createElement("span",{className:C.title},e.title)),n.createElement("span",{className:C.subtitle},u),s.length>0&&n.createElement("div",null,s),a&&n.createElement("div",{className:C.group},n.createElement(T,{...a}))))}!function(e){e[e.BeforeMarketOpen=C.beforeMarketOpen]="BeforeMarketOpen",e[e.AfterMarketClose=C.afterMarketClose]="AfterMarketClose"}(g||(g={}));var B=o(9245);const N=(0,w.mergeThemes)(E.DEFAULT_MENU_THEME,{menuWrap:B.menuWrap,menuBox:B.menuBox});function x(e){const{tooltips:t,onClose:o,onForceClose:r,onClickOutside:l,position:a,customCloseSubscriptions:m,showScrollFades:p,cardType:f}=e,v=(0,n.useRef)(null),g=(0,n.useRef)(null),w=(0,n.useRef)(null),E=(0,n.useRef)(null),[b,C]=(0,n.useState)("100%"),y=e=>{null!==e&&C(e.clientWidth+"px")},[T,x]=(0,n.useState)(!1);s(w,()=>x(!1),()=>x(!0));const M={display:T?"block":"none",width:b},[H,D]=(0,n.useState)(!1);s(E,()=>D(!1),()=>D(!0));const W={display:H?"block":"none",width:b},A=f?i()(B.card,B[f]):B.card;return n.createElement(d.DrawerManager,null,n.createElement(c.MatchMedia,{rule:"screen and (max-width: 419px)"},e=>e?n.createElement(u.Drawer,{className:B.drawer,onClose:r||o,position:"Bottom"},t.map((e,t)=>n.createElement("div",{key:""+t,className:B.drawerItem},n.createElement(k,{cardType:S.Mobile,...e})))):n.createElement(h,{position:a,theme:N,onClose:o,onForceClose:r||o,onClickOutside:l,customCloseSubscriptions:m},p&&n.createElement(n.Fragment,null,n.createElement("div",{ref:v,className:B.fadeTop,style:M}),n.createElement("div",{ref:w})),n.createElement("div",{ref:y},t.map((e,t)=>{var o;return n.createElement("div",{key:""+t,className:A,style:{borderColor:null===(o=e.style)||void 0===o?void 0:o.color}},n.createElement(k,{cardType:f,...e}))})),p&&n.createElement(n.Fragment,null,n.createElement("div",{ref:E}),n.createElement("div",{ref:g,className:B.fadeBottom,style:W})))))}var S;!function(e){e.Mobile="mob",e.Minimal="mini"}(S||(S={}));let M=null;function H(e){if(!e.items.length)return;const t={tooltips:e.items,onClose:D,onForceClose:()=>{D(),"function"==typeof e.onCustomClose&&e.onCustomClose()},onClickOutside:e.onClickOutside,position:W.bind(null,e.position),customCloseSubscriptions:e.customCloseSubscriptions,showScrollFades:e.showScrollFades,cardType:e.cardType};null===M&&(M=document.createElement("div"),document.body.appendChild(M)),r.render(n.createElement(x,{...t}),M)}function D(){null!==M&&(r.unmountComponentAtNode(M),M.remove(),M=null)}function W(e,t,o){const n=e.target,r=n.getBoundingClientRect(),a=r.width-e.targetSize.w,i=r.height-e.targetSize.h,s=(0,l.ensureNotNull)(n.closest(".chart-container")),c=s.getBoundingClientRect(),u=(0,l.ensureNotNull)(s.parentElement).getBoundingClientRect(),d=r.left+e.point.x+a,m=Math.round(d-t/2),p=Math.min(m+t,c.right,u.right) +;let f,v,h=Math.max(p-t,c.left,u.left);h+t>=u.right&&(h=u.right-t);const g=c.bottom-(r.top+e.point.y+i),w=c.height-g-e.marginTop;return w{"use strict";o.d(t,{DrawerManager:()=>r,DrawerContext:()=>l});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(l.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const l=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>p});var n=o(59496),r=o(88537),l=o(97754),a=o(59142),i=o(43989),s=o(65718),c=o(37558),u=o(49483),d=o(29197),m=o(66998);function p(e){const{position:t="Bottom",onClose:o,children:p,className:f,theme:v=m}=e,h=(0,r.ensureNotNull)((0,n.useContext)(c.DrawerContext)),[g,w]=(0,n.useState)(0),E=(0,n.useRef)(null),b=(0,n.useContext)(d.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,r.ensureNotNull)(E.current);return e.focus({preventScroll:!0}),b.subscribe(h,o),0===h.currentDrawer&&(0,i.setFixedBodyState)(!0),u.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),w(h.addDrawer()),()=>{b.unsubscribe(h,o);const t=h.removeDrawer();u.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,i.setFixedBodyState)(!1)}},[]),n.createElement(s.Portal,null,n.createElement("div",{className:l(m.wrap,m["position"+t])},g===h.currentDrawer&&n.createElement("div",{className:m.backdrop,onClick:o}),n.createElement("div",{className:l(m.drawer,v.drawer,m["position"+t],f),ref:E,tabIndex:-1,"data-name":e["data-name"]},p)))}}}]); \ No newline at end of file diff --git a/charting_library/bundles/lollipop-tooltip-renderer.a408d5bf42843ff46541.js b/charting_library/bundles/lollipop-tooltip-renderer.a408d5bf42843ff46541.js deleted file mode 100644 index ac0e5513..00000000 --- a/charting_library/bundles/lollipop-tooltip-renderer.a408d5bf42843ff46541.js +++ /dev/null @@ -1,5 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9039],{59142:function(e,t){var n,o,r;o=[t],void 0===(r="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{e.exports={drawer:"drawer-BF9dzroi",drawerItem:"drawerItem-BF9dzroi",menuWrap:"menuWrap-BF9dzroi",menuBox:"menuBox-BF9dzroi",card:"card-BF9dzroi",mini:"mini-BF9dzroi",fadeTop:"fadeTop-BF9dzroi", -fadeBottom:"fadeBottom-BF9dzroi"}},85174:e=>{e.exports={content:"content-A343HTYW",titleWrapper:"titleWrapper-A343HTYW",title:"title-A343HTYW",subtitle:"subtitle-A343HTYW",text:"text-A343HTYW",icon:"icon-A343HTYW",group:"group-A343HTYW",groupIcon:"groupIcon-A343HTYW",beforeMarketOpen:"beforeMarketOpen-A343HTYW",afterMarketClose:"afterMarketClose-A343HTYW",groupTitle:"groupTitle-A343HTYW",groupRow:"groupRow-A343HTYW",groupCell:"groupCell-A343HTYW",link:"link-A343HTYW",mob:"mob-A343HTYW",mini:"mini-A343HTYW"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},22838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LollipopCardType:()=>B,showLollipopTooltip:()=>M});var o=n(59496),r=n(87995),l=n(88537),a=n(97754),s=n.n(a);function i(e,t,n){(0,o.useEffect)(()=>{const o=new IntersectionObserver(e=>{e[e.length-1].intersectionRatio<.25?n():t()},{threshold:[0,.25,.5,.75,1],root:null,rootMargin:"0px"});return e.current&&o.observe(e.current),()=>o.disconnect()},[])}var c=n(90692),u=n(41590),d=n(37558),m=n(50628),p=n(68335),f=n(59064),v=n(80643);const h=(0,o.forwardRef)((e,t)=>{const{onClose:n,onForceClose:r,onClickOutside:l,className:a,customCloseSubscriptions:s=[],...i}=e,c=(0,o.useRef)(null),u=(0,o.useCallback)(e=>{27===(0,p.hashFromEvent)(e)&&r()},[r]),d=(0,o.useCallback)(()=>{(0,f.globalCloseMenu)(),r()},[r]),h=(0,o.useCallback)(()=>{c.current&&c.current.focus({preventScroll:!0})},[]);return(0,o.useEffect)(()=>{const e=(t=d,window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t));var t;const n=s&&function(e,t){for(const n of e)n.subscribe(null,t);return()=>{for(const n of e)n.unsubscribe(null,t)}}(s,d);return()=>{e(),(0,v.isFunction)(n)&&n()}},[s,d]),o.createElement(m.PopupMenu,{className:a,isOpened:!0,tabIndex:-1,reference:e=>{"function"==typeof t?t(e):(0,v.isObject)(t)&&(t.current=e),c.current=e},onClose:n,onClickOutside:l,onKeyDown:u,onOpen:h,...i},e.children)});var g,w=n(40173),E=n(27317),C=n(9745),b=n(85174);function y(e){const{name:t,value:n,style:r,valueRightIcon:l}=e;return o.createElement("div",{className:b.groupRow,style:r},t&&o.createElement("div",{className:b.groupCell},o.createElement("span",{className:b.text},t)),o.createElement("div",{className:b.groupCell},o.createElement("span",{className:b.text},n),l&&o.createElement(C.Icon,{icon:l.iconContent,className:s()(b.groupIcon,l.iconClass,"apply-common-tooltip"),title:l.tooltipText})))}function k(e){const{text:t,href:n,onClick:r}=e;return o.createElement("a",{href:n,onClick:r&&(e=>{e.preventDefault(),r()}),className:b.link},t)}function T(e){var t;const{content:n=[],subTitle:r,cardType:l,anchor:a}=e,i=n.map((e,t)=>{const{title:n,content:r}=e;return o.createElement("div",{key:"group"+t,className:b.group},n&&o.createElement("span",{className:b.groupTitle},n),r.map((e,t)=>o.createElement(y,{key:"contentRow"+t,...e})))}),c=l?s()(b.content,b[l]):b.content,u="string"==typeof r?r:r.map((e,t)=>o.createElement(y,{key:"subTitle"+t,...e})) -;return o.createElement(o.Fragment,null,o.createElement("div",{className:c},e.title&&o.createElement("div",{className:b.titleWrapper},e.tooltipIcon&&o.createElement(C.Icon,{icon:e.tooltipIcon,className:b.icon,style:{color:null===(t=e.style)||void 0===t?void 0:t.color}}),o.createElement("span",{className:b.title},e.title)),o.createElement("span",{className:b.subtitle},u),i.length>0&&o.createElement("div",null,i),a&&o.createElement("div",{className:b.group},o.createElement(k,{...a}))))}!function(e){e[e.BeforeMarketOpen=b.beforeMarketOpen]="BeforeMarketOpen",e[e.AfterMarketClose=b.afterMarketClose]="AfterMarketClose"}(g||(g={}));var N=n(9245);const S=(0,w.mergeThemes)(E.DEFAULT_MENU_THEME,{menuWrap:N.menuWrap,menuBox:N.menuBox});function x(e){const{tooltips:t,onClose:n,onForceClose:r,onClickOutside:l,position:a,customCloseSubscriptions:m,showScrollFades:p,cardType:f}=e,v=(0,o.useRef)(null),g=(0,o.useRef)(null),w=(0,o.useRef)(null),E=(0,o.useRef)(null),[C,b]=(0,o.useState)("100%"),y=e=>{null!==e&&b(e.clientWidth+"px")},[k,x]=(0,o.useState)(!1);i(w,()=>x(!1),()=>x(!0));const D={display:k?"block":"none",width:C},[M,O]=(0,o.useState)(!1);i(E,()=>O(!1),()=>O(!0));const H={display:M?"block":"none",width:C},W=f?s()(N.card,N[f]):N.card;return o.createElement(d.DrawerManager,null,o.createElement(c.MatchMedia,{rule:"screen and (max-width: 419px)"},e=>e?o.createElement(u.Drawer,{className:N.drawer,onClose:r||n,position:"Bottom"},t.map((e,t)=>o.createElement("div",{key:""+t,className:N.drawerItem},o.createElement(T,{cardType:B.Mobile,...e})))):o.createElement(h,{position:a,theme:S,onClose:n,onForceClose:r||n,onClickOutside:l,customCloseSubscriptions:m},p&&o.createElement(o.Fragment,null,o.createElement("div",{ref:v,className:N.fadeTop,style:D}),o.createElement("div",{ref:w})),o.createElement("div",{ref:y},t.map((e,t)=>{var n;return o.createElement("div",{key:""+t,className:W,style:{borderColor:null===(n=e.style)||void 0===n?void 0:n.color}},o.createElement(T,{cardType:f,...e}))})),p&&o.createElement(o.Fragment,null,o.createElement("div",{ref:E}),o.createElement("div",{ref:g,className:N.fadeBottom,style:H})))))}var B;!function(e){e.Mobile="mob",e.Minimal="mini"}(B||(B={}));let D=null;function M(e){if(!e.items.length)return;const t={tooltips:e.items,onClose:O,onForceClose:()=>{O(),"function"==typeof e.onCustomClose&&e.onCustomClose()},onClickOutside:e.onClickOutside,position:H.bind(null,e.position),customCloseSubscriptions:e.customCloseSubscriptions,showScrollFades:e.showScrollFades,cardType:e.cardType};null===D&&(D=document.createElement("div"),document.body.appendChild(D)),r.render(o.createElement(x,{...t}),D)}function O(){null!==D&&(r.unmountComponentAtNode(D),D.remove(),D=null)}function H(e,t,n){const o=e.target,r=o.getBoundingClientRect(),a=r.width-e.targetSize.w,s=r.height-e.targetSize.h,i=(0,l.ensureNotNull)(o.closest(".chart-container")),c=i.getBoundingClientRect(),u=(0,l.ensureNotNull)(i.parentElement).getBoundingClientRect(),d=r.left+e.point.x+a,m=Math.round(d-t/2),p=Math.min(m+t,c.right,u.right) -;let f,v,h=Math.max(p-t,c.left,u.left);h+t>=u.right&&(h=u.right-t);const g=c.bottom-(r.top+e.point.y+s),w=c.height-g-e.marginTop;return w{"use strict";function o(e,t,n,o,r){function l(r){if(e>r.timeStamp)return;const l=r.target;void 0!==n&&null!==t&&null!==l&&l.ownerDocument===o&&(t.contains(l)||n(r))}return r.click&&o.addEventListener("click",l,!1),r.mouseDown&&o.addEventListener("mousedown",l,!1),r.touchEnd&&o.addEventListener("touchend",l,!1),r.touchStart&&o.addEventListener("touchstart",l,!1),()=>{o.removeEventListener("click",l,!1),o.removeEventListener("mousedown",l,!1),o.removeEventListener("touchend",l,!1),o.removeEventListener("touchstart",l,!1)}}n.d(t,{addOutsideEventListener:()=>o})},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>r,DrawerContext:()=>l});var o=n(59496);class r extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(l.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const l=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>p});var o=n(59496),r=n(88537),l=n(97754),a=n(59142),s=n(99054),i=n(65718),c=n(37558),u=n(49483),d=n(29197),m=n(66998);function p(e){const{position:t="Bottom",onClose:n,children:p,className:f,theme:v=m}=e,h=(0,r.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[g,w]=(0,o.useState)(0),E=(0,o.useRef)(null),C=(0,o.useContext)(d.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,r.ensureNotNull)(E.current);return e.focus({preventScroll:!0}),C.subscribe(h,n),0===h.currentDrawer&&(0,s.setFixedBodyState)(!0),u.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),w(h.addDrawer()),()=>{C.unsubscribe(h,n);const t=h.removeDrawer();u.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),o.createElement(i.Portal,null,o.createElement("div",{className:l(m.wrap,m["position"+t])},g===h.currentDrawer&&o.createElement("div",{className:m.backdrop,onClick:n}),o.createElement("div",{className:l(m.drawer,v.drawer,m["position"+t],f),ref:E,tabIndex:-1,"data-name":e["data-name"]},p)))}},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>c});var o=n(59496),r=n(87995),l=n(65718),a=n(27317),s=n(29197),i=n(58095);function c(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:u=!0,doNotCloseOn:d,onClickOutside:m,onClose:p,...f}=e,v=(0,o.useContext)(s.CloseDelegateContext),h=(0,i.useOutsideEvent)({handler:function(e){m&&m(e);if(!u)return;if(d&&e.target instanceof Node){const t=r.findDOMNode(d);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return c?o.createElement(l.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ -ref:h,style:{pointerEvents:"auto"}},o.createElement(a.Menu,{...f,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:v,ref:t},n))):null}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const r of Object.keys(t)){const l=n[r]||r;l in e&&(o[r]=[e[l],t[r]].join(" "))}return o}function r(e,t,n={}){return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>r})}}]); \ No newline at end of file diff --git a/charting_library/bundles/lt-pane-views.0d4b5b1bbff664aa4bbd.js b/charting_library/bundles/lt-pane-views.64f0e2787aaea98f864f.js similarity index 91% rename from charting_library/bundles/lt-pane-views.0d4b5b1bbff664aa4bbd.js rename to charting_library/bundles/lt-pane-views.64f0e2787aaea98f864f.js index fec5e441..8d06e5d0 100644 --- a/charting_library/bundles/lt-pane-views.0d4b5b1bbff664aa4bbd.js +++ b/charting_library/bundles/lt-pane-views.64f0e2787aaea98f864f.js @@ -44,8 +44,8 @@ offsetY:0,bold:i.bold.value(),italic:i.italic.value(),fontsize:i.fontsize.value( this._renderer=s}}},78583:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IconPaneView:()=>v});var n=i(86441),r=i(25422),s=i(88537),a=i(68906),o=i(94804),l=i(56589),d=i(28910),h=i(45112),c=i(62820),u=i(93435),_=i(16282),p=i(84346);const g=(0,h.getHexColorByName)("color-tv-blue-600");class f extends _.ScaledPaneRenderer{constructor(e){super(),this._data=null,this._cache=e}setData(e){this._data=e}hitTest(e,t){if(null===this._data)return null;const{icon:i,size:n,angle:s,point:a}=this._data,o=65536*i+n,l=this._cache[o]+30,d=n+30,h=(0,r.rotationMatrix)(-s),c=(0,r.transformPoint)(h,e.subtract(a));return Math.abs(c.y)<=l/2&&Math.abs(c.x)<=d/2?new p.HitTestResult(p.HitTestResult.MOVEPOINT):null}_drawImpl(e,t){if(null===this._data)return;const{size:i,icon:n,point:r,angle:s,color:a,background:o,selected:l}=this._data,d=String.fromCharCode(n);e.font=i+"px FontAwesome";const h=e.measureText(d).width;e.textBaseline="middle",e.translate(r.x,r.y),e.rotate(s-Math.PI/2),e.textAlign=(0,c.isRtl)()?"right":"left";const _=(0,u.calcTextHorizontalShift)(e,h),p=65536*n+i;if(this._cache[p]=h,l){const t=h+30,n=i+30;e.fillStyle=o,e.strokeStyle=g,e.beginPath(),e.rect(-t/2,-n/2,t,n),e.closePath(),e.fill(),e.stroke()}e.fillStyle=a,e.fillText(d,-h/2+_,0)}}class v extends d.LineSourcePaneView{constructor(){super(...arguments),this._cache={},this._iconRenderer=new f(this._cache),this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._points.length<1)return;const e=new o.CompositeRenderer,t=this._source.properties().childs(),i={point:this._points[0],color:t.color.value(),size:t.size.value(),icon:t.icon.value(),angle:t.angle.value(),selected:this.areAnchorsVisible(),background:this._calculateBackgroundColor()};this._iconRenderer.setData(i),e.append(this._iconRenderer);const s=65536*i.icon+i.size,a=this._cache[s]+30,h=i.size+30,c=this._points[0],u=this._source.getAnchorLimit();let _=new n.Point(Math.max(u,h)/2,0),p=new n.Point(0,Math.max(u,a)/2);const g=(0,r.rotationMatrix)(t.angle.value());_=(0,r.transformPoint)(g,_),p=(0,r.transformPoint)(g,p);const f=c.add(_);f.data=0;const v=c.subtract(_);v.data=1;const x=c.add(p);x.data=2,x.square=!0;const w=c.subtract(p);w.data=3,w.square=!0;const m=(0,d.thirdPointCursorType)(f,v),R=[l.PaneCursorType.Default,l.PaneCursorType.Default,m,m];e.append(this.createLineAnchor({points:[f,v,x,w],pointsCursorType:R},0)),this._renderer=e}_calculateBackgroundColor(){return(0,a.generateColor)(this._model.backgroundColorAtYPercentFromTop(this._points[0].y/(0,s.ensureNotNull)(this._model.paneForSource(this._source)).height()),60,!0)}}},28910:(e,t,i)=>{"use strict";i.d(t,{thirdPointCursorType:()=>_,LineSourcePaneView:()=>p});var n=i(86441),r=i(45112),s=i(71413),a=i(84346),o=i(41892),l=i(49621),d=i(56589),h=i(88537);const c=r.colorsPalette["color-tv-blue-600"];var u;function _(e,t){const i=t.x-e.x,n=t.y-e.y,r=Math.abs(Math.atan2(i,n));return r>Math.PI/4&&r<3*Math.PI/4?d.PaneCursorType.VerticalResize:d.PaneCursorType.HorizontalResize} !function(e){e[e.RegularAnchorRadius=6]="RegularAnchorRadius",e[e.TouchAnchorRadius=13]="TouchAnchorRadius",e[e.RegularStrokeWidth=1]="RegularStrokeWidth",e[e.TouchStrokeWidth=3]="TouchStrokeWidth",e[e.RegularSelectedStrokeWidth=3]="RegularSelectedStrokeWidth",e[e.TouchSelectedStrokeWidth=0]="TouchSelectedStrokeWidth"}(u||(u={}));class p{constructor(e,t){this._invalidated=!0,this._points=[],this._middlePoint=null,this._selectionRenderers=[],this._lineAnchorRenderers=[],this._source=e,this._model=t}priceToCoordinate(e){const t=this._source.priceScale();if(null===t)return null;const i=this._source.ownerSource(),n=null!==i?i.firstValue():null;return null===n?null:t.priceToCoordinate(e,n)}currentPoint(){const e=this._model.crossHairSource();return new n.Point(e.originX(),e.originY())}anchorColor(){return c}isHoveredSource(){return this._source===this._model.hoveredSource()}isSelectedSource(){return this._model.selection().isSelected(this._source)}isBeingEdited(){return this._model.lineBeingEdited()===this._source}isEditMode(){return!this._model.isSnapshot()}areAnchorsVisible(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()}update(){this._invalidated=!0}isLocked(){return Boolean(this._source.isLocked&&this._source.isLocked())}addAnchors(e,t){let i=this._points;this._model.lineBeingCreated()===this._source&&(i=i.slice(0,-1));const n=i.map((e,t)=>{const i=this._source.points()[t],n=e;return n.snappingPrice=null==i?void 0:i.price,n.snappingIndex=null==i?void 0:i.index,n});e.append(this.createLineAnchor({...null!=t?t:{},points:n},0))}createLineAnchor(e,t){var i;if(this.isLocked()){const i=this._getSelectionRenderer(t);return i.setData({bgColors:this._lineAnchorColors(e.points),points:e.points,visible:this.areAnchorsVisible(),hittestResult:a.HitTestResult.REGULAR,barSpacing:this._model.timeScale().barSpacing()}),i}const n=(0,s.lastMouseOrTouchEventInfo)().isTouch,r=this._getLineAnchorRenderer(t);return r.setData({...e,color:this.anchorColor(),backgroundColors:this._lineAnchorColors(e.points),currentPoint:this.currentPoint(),linePointBeingEdited:this.isBeingEdited()?this._model.linePointBeingEdited():null,hittestResult:null!==(i=e.hittestResult)&&void 0!==i?i:a.HitTestResult.CHANGEPOINT,radius:this._anchorRadius(),strokeWidth:n?u.TouchStrokeWidth:u.RegularStrokeWidth,selected:this.isSelectedSource(),selectedStrokeWidth:n?u.TouchSelectedStrokeWidth:u.RegularSelectedStrokeWidth,visible:this.areAnchorsVisible()}),r}_anchorRadius(){return(0,s.lastMouseOrTouchEventInfo)().isTouch?u.TouchAnchorRadius:u.RegularAnchorRadius}_lineAnchorColors(e){const t=(0,h.ensureNotNull)(this._model.paneForSource(this._source)).height();return e.map(e=>this._model.backgroundColorAtYPercentFromTop(e.y/t))}_updateImpl(e,t){this._points=[];if(this._model.timeScale().isEmpty())return;if(!this._validatePriceScale())return;const i=this._source.points();for(let e=0;e{"use strict";i.r(t),i.d(t,{LineToolBeingCreatedPaneView:()=>c});var n=i(45112),r=i(28910),s=i(43891),a=i(49612),o=i(94804),l=i(44349),d=i(63300);const h=n.colorsPalette["color-cold-gray-500"];class c extends r.LineSourcePaneView{constructor(){super(...arguments),this._lineRenderer1=new l.VerticalLineRenderer,this._lineRenderer2=new l.VerticalLineRenderer,this._medianRenderer=new d.TrendLineRenderer,this._renderer=null}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;const e=this._getPoints();if(e.length<1)return;this._renderer=new o.CompositeRenderer;const[t,i]=e;this._lineRenderer1.setData({x:t.x,color:h,linewidth:1,linestyle:s.LINESTYLE_SOLID}),this._renderer.append(this._lineRenderer1),e.length>1&&(this._lineRenderer2.setData({x:i.x,color:h,linewidth:1,linestyle:s.LINESTYLE_SOLID}),this._medianRenderer.setData({points:[t,i],color:h,linewidth:1,linestyle:s.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:a.LineEnd.Normal,rightend:a.LineEnd.Normal}),this._renderer.append(this._lineRenderer2),this._renderer.append(this._medianRenderer))}}},16378:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LineToolPaneViewFibWithLabels:()=>d});var n=i(86441),r=i(28910),s=i(98664),a=i(95505),o=i(26811),l=i(22799);class d extends r.LineSourcePaneView{constructor(e,t){super(e,t),this._labelsRenderers=new Array(e.levelsCount()).fill(null).map(()=>new s.TextRenderer),this._numericFormatter=new a.NumericFormatter,this._percentageFormatter=new o.PercentageFormatter}_updateLabelForLevel({i:e,levelIndex:t,leftPoint:i,rightPoint:r,price:s,color:a,horzAlign:o,vertAlign:d,extendLeft:h=!1,extendRight:c=!1}){var u,_,p,g,f;const v=this._source.priceScale();if(!v)return null;const x=this._source.properties(),w=Boolean(null===(u=x.showCoeffs)||void 0===u?void 0:u.value()),m=Boolean(null===(_=x.showPrices)||void 0===_?void 0:_.value());if(!w&&!m)return null;const R=null===(p=this._source.ownerSource())||void 0===p?void 0:p.firstValue();if(null==R)return null;const y=!(i.x>this._model.timeScale().width()&&!h||r.x<0&&!c);let T,b,L=o;switch(L){case"left":b=i.y,h?T=y?0:r.x:(T=i.x,L="right");break;case"right":b=r.y,c?T=y?this._model.timeScale().width():i.x:(T=r.x,L="left");break;default:T=(i.x+r.x)/2, -b=(i.y+r.y)/2}const P=x["level"+t].coeff.value();let S="";if(w){S+=null!==(f=null===(g=x.coeffsAsPercents)||void 0===g?void 0:g.value())&&void 0!==f&&f?this._percentageFormatter.format(100*P,!1,2):this._numericFormatter.format(P)}return m&&(S+="("+v.formatPrice(s,R)+")"),this._labelsRenderers[e].setData({points:[new n.Point(T,b)],text:S,color:a,vertAlign:d,horzAlign:L,offsetX:4,offsetY:0,font:l.CHART_FONT_FAMILY,fontSize:x.labelFontSize?x.labelFontSize.value():12}),this._labelsRenderers[e]}}},99578:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NotePaneView:()=>x});var n=i(28910),r=i(94804),s=i(41892),a=i(84346),o=i(88537),l=i(98664),d=i(68906),h=i(62820),c=i(93435),u=i(15712),_=i(86441),p=i(34026);class g{constructor(e){this._data=null,this._sourceCanvas=null,this._translate=new _.Point(0,0),this._renderParams=e}destroy(){var e;null===(e=this._sourceCanvas)||void 0===e||e.remove()}renderParams(){return this._renderParams}update(e){var t,i;t=this._data,i=e,(null===t||t.markerColor!==i.markerColor||t.borderColor!==i.borderColor||t.width!==i.width||t.height!==i.height)&&this._createSource(e.width,e.height,e.markerColor),this._data=e}drawOn(e){const t=(0,o.ensureNotNull)(this._data),i=new _.Point(Math.round(t.point.x),Math.round(t.point.y)).add(this._translate);e.drawImage((0,o.ensureNotNull)(this._sourceCanvas),Math.round(i.x*this._renderParams.pixelRatio),Math.round(i.y*this._renderParams.pixelRatio),Math.round(t.width*this._renderParams.pixelRatio),Math.round(t.height*this._renderParams.pixelRatio))}hasPoint(e){const t=(0,o.ensureNotNull)(this._data),i=t.point.add(this._translate),n=new _.Point(t.point.x-this._translate.x,t.point.y);return(0,p.pointInBox)(e,(0,_.box)(i,n))}_createSource(e,t,i){this._sourceCanvas=(0,c.createDisconnectedCanvas)(document,new c.Size(e,t),this._renderParams.pixelRatio),this._translate=new _.Point(-e/2,.5-t),this._translate.x%1==0&&(this._translate=new _.Point(this._translate.x+.5,this._translate.y));const n=(0,o.ensureNotNull)(this._sourceCanvas.getContext("2d"));(0,c.drawScaled)(n,this._renderParams.pixelRatio,()=>{const r=.6*e;n.fillStyle=i,n.beginPath(),n.moveTo(e/2,t),n.quadraticCurveTo(e,e/1.15,e,e/2),n.arc(e/2,e/2,e/2,0,Math.PI,!0),n.quadraticCurveTo(0,e/1.15,e/2,t),n.fill(),n.globalCompositeOperation="destination-out",n.beginPath(),n.moveTo((e-r)/2,e/2),n.arc(e/2,e/2,r/2,0,2*Math.PI),n.fill()})}}class f{constructor(){this._source=null,this._data=null}setData(e){this._data=e,this._source&&this._source.update(e)}draw(e,t){var i;if(null===this._data)return;null!==this._source&&(0,u.areEqualPaneRenderParams)(this._source.renderParams(),t)||(null===(i=this._source)||void 0===i||i.destroy(),this._source=new g(t),this._source.update(this._data));this._source.drawOn(e),this._data.tooltipVisible&&this._drawTooltipOn(e,t)}hitTest(e){return null!==this._data&&null!==this._source&&this._source.hasPoint(e)?new a.HitTestResult(a.HitTestResult.MOVEPOINT):null}_drawTooltipOn(e,t){e.save(),e.translate(.5,.5);const i=(0,o.ensureNotNull)(this._data),n=String(i.text).replace(/^\s+|\s+$/g,"") -;e.font=(i.bold?"bold ":"")+(i.italic?"italic ":"")+i.fontSize+"px "+i.font;const r=i.tooltipWidth-2*i.tooltipPadding,s=(0,l.wordWrap)(n,e.font,r),a=i.point,u=i.tooltipLineSpacing;let _=i.tooltipWidth,p=s.length*i.fontSize+2*i.tooltipPadding;s.length>1&&(p+=(s.length-1)*u);let g=Math.round(a.x-_/2),f=Math.round(a.y-i.height-p-8);const v=a.x<20||a.x+20>i.vpWidth;let x=v?null:"top",w=v?0:Math.round(a.x);f<10?f=a.y+13:x="bottom",g<10?g+=Math.abs(g-10):g+_+10>i.vpWidth&&(g-=g+_+10-i.vpWidth),e.fillStyle=(0,d.generateColor)(i.backgroundColor,i.backgroundTransparency),e.strokeStyle=i.borderColor,e.lineWidth=1,e.beginPath();const m=Math.round(g*t.pixelRatio),R=Math.round(f*t.pixelRatio);w=Math.round(w*t.pixelRatio),p=Math.round(p*t.pixelRatio),_=Math.round(_*t.pixelRatio);const y=Math.round(7*t.pixelRatio);e.moveTo(m,R),v||"top"!==x||(e.lineTo(w-y,R),e.lineTo(w,R-y),e.lineTo(w+y,R)),e.lineTo(m+_,R),e.lineTo(m+_,R+p),v||"bottom"!==x||(e.lineTo(w+y,R+p),e.lineTo(w,R+p+y),e.lineTo(w-y,R+p)),e.lineTo(m,R+p),e.closePath(),e.fill(),e.stroke(),e.textBaseline="middle",e.fillStyle=i.textColor,e.textAlign=(0,h.isRtl)()?"right":"left";const T=(0,c.calcTextHorizontalShift)(e,r),b=g+i.tooltipPadding+T;let L=f+i.tooltipPadding+i.fontSize/2;(0,c.drawScaled)(e,t.pixelRatio,()=>{for(let t=0;t{"use strict";i.r(t),i.d(t,{OrderPaneView:()=>v});var n=i(86441),r=i(28910),s=i(94804),a=i(28353),o=i(35726),l=i(29892),d=i(16282),h=i(84346),c=i(82724),u=i(53664);const _=(0,a.t)("Modify Order"),p=(0,a.t)("Cancel Order");class g extends d.ScaledPaneRenderer{constructor(e){super(),this._data=null,this._cache={},this._data=null,this._adapter=e}setData(e){ +b=(i.y+r.y)/2}const P=x["level"+t].coeff.value();let S="";if(w){S+=null!==(f=null===(g=x.coeffsAsPercents)||void 0===g?void 0:g.value())&&void 0!==f&&f?this._percentageFormatter.format(100*P,!1,2):this._numericFormatter.format(P)}return m&&(S+="("+v.formatPrice(s,R)+")"),this._labelsRenderers[e].setData({points:[new n.Point(T,b)],text:S,color:a,vertAlign:d,horzAlign:L,offsetX:4,offsetY:0,font:l.CHART_FONT_FAMILY,fontSize:x.labelFontSize?x.labelFontSize.value():12}),this._labelsRenderers[e]}}},99578:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NotePaneView:()=>x});var n=i(88537),r=i(28910),s=i(94804),a=i(41892),o=i(84346),l=i(22799),d=i(98664),h=i(68906),c=i(62820),u=i(93435),_=i(15712),p=i(86441),g=i(34026);class f{constructor(e){this._data=null,this._sourceCanvas=null,this._translate=new p.Point(0,0),this._renderParams=e}destroy(){var e;null===(e=this._sourceCanvas)||void 0===e||e.remove()}renderParams(){return this._renderParams}update(e){var t,i;t=this._data,i=e,(null===t||t.markerColor!==i.markerColor||t.borderColor!==i.borderColor||t.width!==i.width||t.height!==i.height)&&this._createSource(e.width,e.height,e.markerColor),this._data=e}drawOn(e){const t=(0,n.ensureNotNull)(this._data),i=new p.Point(Math.round(t.point.x),Math.round(t.point.y)).add(this._translate);e.drawImage((0,n.ensureNotNull)(this._sourceCanvas),Math.round(i.x*this._renderParams.pixelRatio),Math.round(i.y*this._renderParams.pixelRatio),Math.round(t.width*this._renderParams.pixelRatio),Math.round(t.height*this._renderParams.pixelRatio))}hasPoint(e){const t=(0,n.ensureNotNull)(this._data),i=t.point.add(this._translate),r=new p.Point(t.point.x-this._translate.x,t.point.y);return(0,g.pointInBox)(e,(0,p.box)(i,r))}_createSource(e,t,i){this._sourceCanvas=(0,u.createDisconnectedCanvas)(document,new u.Size(e,t),this._renderParams.pixelRatio),this._translate=new p.Point(-e/2,.5-t),this._translate.x%1==0&&(this._translate=new p.Point(this._translate.x+.5,this._translate.y));const r=(0,n.ensureNotNull)(this._sourceCanvas.getContext("2d"));(0,u.drawScaled)(r,this._renderParams.pixelRatio,()=>{const n=.6*e;r.fillStyle=i,r.beginPath(),r.moveTo(e/2,t),r.quadraticCurveTo(e,e/1.15,e,e/2),r.arc(e/2,e/2,e/2,0,Math.PI,!0),r.quadraticCurveTo(0,e/1.15,e/2,t),r.fill(),r.globalCompositeOperation="destination-out",r.beginPath(),r.moveTo((e-n)/2,e/2),r.arc(e/2,e/2,n/2,0,2*Math.PI),r.fill()})}}class v{constructor(){this._source=null,this._data=null}setData(e){this._data=e,this._source&&this._source.update(e)}draw(e,t){var i;if(null===this._data)return;null!==this._source&&(0,_.areEqualPaneRenderParams)(this._source.renderParams(),t)||(null===(i=this._source)||void 0===i||i.destroy(),this._source=new f(t),this._source.update(this._data));this._source.drawOn(e),this._data.tooltipVisible&&this._drawTooltipOn(e,t)}hitTest(e){return null!==this._data&&null!==this._source&&this._source.hasPoint(e)?new o.HitTestResult(o.HitTestResult.MOVEPOINT):null}_drawTooltipOn(e,t){e.save(),e.translate(.5,.5);const i=(0,n.ensureNotNull)(this._data),r=String(i.text).replace(/^\s+|\s+$/g,"") +;e.font=(i.bold?"bold ":"")+(i.italic?"italic ":"")+i.fontSize+"px "+i.font;const s=i.tooltipWidth-2*i.tooltipPadding,a=(0,d.wordWrap)(r,e.font,s),o=i.point,l=i.tooltipLineSpacing;let _=i.tooltipWidth,p=a.length*i.fontSize+2*i.tooltipPadding;a.length>1&&(p+=(a.length-1)*l);let g=Math.round(o.x-_/2),f=Math.round(o.y-i.height-p-8);const v=o.x<20||o.x+20>i.vpWidth;let x=v?null:"top",w=v?0:Math.round(o.x);f<10?f=o.y+13:x="bottom",g<10?g+=Math.abs(g-10):g+_+10>i.vpWidth&&(g-=g+_+10-i.vpWidth),e.fillStyle=(0,h.generateColor)(i.backgroundColor,i.backgroundTransparency),e.strokeStyle=i.borderColor,e.lineWidth=1,e.beginPath();const m=Math.round(g*t.pixelRatio),R=Math.round(f*t.pixelRatio);w=Math.round(w*t.pixelRatio),p=Math.round(p*t.pixelRatio),_=Math.round(_*t.pixelRatio);const y=Math.round(7*t.pixelRatio);e.moveTo(m,R),v||"top"!==x||(e.lineTo(w-y,R),e.lineTo(w,R-y),e.lineTo(w+y,R)),e.lineTo(m+_,R),e.lineTo(m+_,R+p),v||"bottom"!==x||(e.lineTo(w+y,R+p),e.lineTo(w,R+p+y),e.lineTo(w-y,R+p)),e.lineTo(m,R+p),e.closePath(),e.fill(),e.stroke(),e.textBaseline="middle",e.fillStyle=i.textColor,e.textAlign=(0,c.isRtl)()?"right":"left";const T=(0,u.calcTextHorizontalShift)(e,s),b=g+i.tooltipPadding+T;let L=f+i.tooltipPadding+i.fontSize/2;(0,u.drawScaled)(e,t.pixelRatio,()=>{for(let t=0;t{"use strict";i.r(t),i.d(t,{OrderPaneView:()=>v});var n=i(86441),r=i(28910),s=i(94804),a=i(28353),o=i(35726),l=i(29892),d=i(16282),h=i(84346),c=i(82724),u=i(53664);const _=(0,a.t)("Modify Order"),p=(0,a.t)("Cancel Order");class g extends d.ScaledPaneRenderer{constructor(e){super(),this._data=null,this._cache={},this._data=null,this._adapter=e}setData(e){ this._data=e}hitTest(e,t){if(null===this._data||0===this._data.points.length)return null;const i=this._cache;if(e.yi.bottom)return null;if(this._adapter.getBlocked()&&e.x>=i.left&&e.x=i.left&&e.x=i.bodyRight&&e.x=i.quantityRight&&e.x0){const t=this._points[0].y,i=e-3.5-1,r=this._adapter.hasMoveCallback()?h.HitTestResult.MOVEPOINT:h.HitTestResult.REGULAR,s=[new n.Point(i,t)];this._selectionData={barSpacing:this._model.timeScale().barSpacing(),points:s,bgColors:this._lineAnchorColors(s),hittestResult:r,visible:!0}}this._orderRenderer.setData({points:this._points}),this._selectionRenderer.setData(this._selectionData)}}},74143:(e,t,i)=>{ "use strict";i.r(t),i.d(t,{ParallelChannelPaneView:()=>d});var n=i(86441),r=i(56589),s=i(94804),a=i(78650),o=i(7478);const l=[r.PaneCursorType.Default,r.PaneCursorType.Default,r.PaneCursorType.Default,r.PaneCursorType.Default,r.PaneCursorType.VerticalResize,r.PaneCursorType.VerticalResize];class d extends o.AlertableLineSourcePaneView{constructor(){super(...arguments),this._channelRenderer=new a.ParallelChannelRenderer,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;const e=this._source.priceScale();if(!e||e.isEmpty())return;if(0===this._source.points().length)return;let t=null,i=null;if(3===this._points.length){const e=this._points[0],r=this._points[1],s=this._points[2].y-this._points[0].y;t=e.add((0,n.point)(0,s)),i=r.add((0,n.point)(0,s))}if(this._points.length<=1)return;const r=this._source.properties(),a={points:this._points.length>2&&null!==t&&null!==i?[this._points[0],this._points[1],t,i]:[this._points[0],this._points[1]],color:r.childs().linecolor.value(),linewidth:r.childs().linewidth.value(),linestyle:r.childs().linestyle.value(),extendleft:r.childs().extendLeft.value(),extendright:r.childs().extendRight.value(),fillBackground:r.childs().fillBackground.value(),backcolor:r.childs().backgroundColor.value(),transparency:r.childs().transparency.value(),showMidline:r.childs().showMidline.value(),midlinewidth:r.childs().midlinewidth.value(),midlinestyle:r.childs().midlinestyle.value(),midcolor:r.childs().midlinecolor.value(),hittestOnBackground:!0};this._channelRenderer.setData(a);const o=new s.CompositeRenderer;o.append(this._channelRenderer);const d=[];if(this._points[0]&&d.push(this._points[0]),this._points[1]&&d.push(this._points[1]),t&&i){const e=t;e.data=2,d.push(e);const n=i;n.data=3,d.push(n);const r=t.add(i).scaled(.5);r.data=4,r.square=!0,d.push(r);const s=d[0].add(d[1]).scaled(.5);s.data=5,s.square=!0,d.push(s)}const h=3===this._points.length&&!t;if(this._model.lineBeingCreated()!==this._source||h||(d.pop(),d.pop()),o.append(this.createLineAnchor({points:d,pointsCursorType:l},0)),this._points.length>=2){const e=this._points;this._addAlertRenderer(o,[e[0],e[1]])}this._renderer=o}}},10155:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PathPaneView:()=>a});var n=i(2375),r=i(94804),s=i(28910);class a extends s.LineSourcePaneView{constructor(e,t){super(e,t),this._polygonRenderer=new n.PolygonRenderer,this._renderer=new r.CompositeRenderer}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer.clear();const e=this._source.properties().childs(),t={points:this._points,color:e.lineColor.value(),linewidth:e.lineWidth.value(),linestyle:e.lineStyle.value(),leftend:e.leftEnd.value(),rightend:e.rightEnd.value(),filled:!1,backcolor:"",fillBackground:!1,transparency:0};this._polygonRenderer.setData(t),this._renderer.append(this._polygonRenderer),this.addAnchors(this._renderer)}}},92669:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PitchfanLinePaneView:()=>d}) @@ -73,13 +73,13 @@ p:l,txt:d,color:i.profitBackground.value(),vertAlign:e.entryPrice0&&(0,u.pointInCircle)(t,new n.Point(r,a),s.circleRadius+i)}return[a,o,!a&&!o&&null!==e.labelRenderer.hitTest(t)]}(this._data,e);if(i||r||s){const e={hideCrosshairLinesOnHover:!0,activeItem:i||r?this._data.itemIndex:this._data.label.labelIndex};return s?e.areaName=o.AreaName.Text:r&&(e.areaName=o.AreaName.Style),new o.HitTestResult(this._hitTestResult,e)}return null}draw(e,t){if(null===this._data)return;e.save(),this._phantomMode&&(e.globalAlpha=.5) ;const{poleColor:i,emojiRadius:n}=this._data,r=t.pixelRatio,s=Math.max(1,Math.floor(r)),a=s%2?.5:0;e.beginPath(),e.strokeStyle=i,e.lineWidth=s;const o=Math.round(this._data.x*r)+a;e.moveTo(o,Math.round(R(this._data)*r)),e.lineTo(o,Math.round(y(this._data)*r)),void 0!==this._data.plate&&0!==this._data.plate.poleTailHeight&&(e.moveTo(o,Math.round(T(this._data)*r)),e.lineTo(o,Math.round(function(e){var t,i;const n=null!==(i=null===(t=e.plate)||void 0===t?void 0:t.poleTailHeight)&&void 0!==i?i:0;return e.inverseAnchorPosition?T(e)-n*e.direction:T(e)+n*e.direction}(this._data)*r))),e.stroke(),void 0!==this._data.plate&&function(e,t,i,n,r){const s=r.pixelRatio,{circleRadius:a,poleTailHeight:o,circleBorderColor:l,circleBackgroundColor:d}=i;e.strokeStyle=l,e.fillStyle=d;const h=(0,v.fillScaledRadius)(a,s),c=Math.round(t.x*s),u=t.inverseAnchorPosition?Math.round(t.anchorY*s)+Math.round(a*s)*t.direction:Math.round(t.anchorY*s)+Math.round((t.labelHeight+o+a)*s)*t.direction,_=Math.max(1,Math.floor(s))%2/2,p=c+_,g=u+_;if(e.shadowOffsetY=1,e.shadowColor=i.shadowColor,e.shadowBlur=4,e.beginPath(),e.arc(p,g,h,0,2*Math.PI,!0),e.closePath(),e.fill(),e.shadowColor="transparent",null!==t.image){const i=2*(0,v.fillScaledRadius)(n,s),r=w(t.image,i);e.drawImage(r,p-i/2,g-i/2)}const f=Math.round(i.circleBorderWidth*s),x=(0,v.strokeScaledRadius)(a,s,f);if(e.lineWidth=f,e.beginPath(),e.arc(p,g,x,0,2*Math.PI,!0),e.closePath(),e.stroke(),i.outsideBorderWidth){e.save();const t=Math.round(i.outsideBorderWidth*s),n=x+f/2+t/2;e.lineWidth=t,e.strokeStyle=i.outsideBorderColor,e.beginPath(),e.arc(p,g,n,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.restore()}}(e,this._data,this._data.plate,n,t),this._data.labelRenderer.draw(e,t),e.restore()}}const L={circleBorderColor:(0,r.getHexColorByName)("color-cold-gray-900"),labelBackgroundColor:(0,r.getHexColorByName)("color-cold-gray-900"),labelBorderColor:(0,r.getHexColorByName)("color-cold-gray-800"),labelTextColor:(0,r.getHexColorByName)("color-cold-gray-200"),poleColor:(0,r.getHexColorByName)("color-cold-gray-500"),shadowColor:"rgba(0,0,0,0.4)",selectionColor:(0,r.getHexColorByName)("color-tv-blue-500")},P={circleBorderColor:(0,r.getHexColorByName)("color-white"),labelBackgroundColor:(0,r.getHexColorByName)("color-white"),labelBorderColor:(0,r.getHexColorByName)("color-cold-gray-150"),labelTextColor:(0,r.getHexColorByName)("color-cold-gray-900"),poleColor:(0,r.getHexColorByName)("color-cold-gray-500"),shadowColor:"rgba(0,0,0,0.2)",selectionColor:(0,r.getHexColorByName)("color-tv-blue-500")};class S extends l.LineSourcePaneView{constructor(e,t){super(e,t),this._renderer=new s.CompositeRenderer,this._signpostRenderer=new b(o.HitTestResult.MOVEPOINT,e.isPhantom())}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){if(super._updateImpl(),this._renderer.clear(),!this._updateTimelineRenderer(e))return;if(this._renderer.append(this._signpostRenderer),this._source.isPhantom())return;const i=this._itemAnchorY();if(null===i)return;const r=this._points[0],s=new n.Point(r.x,i) ;s.data=r.data,s.square=!0,this._renderer.append(this.createLineAnchor({points:[s],pointsCursorType:[a.PaneCursorType.VerticalResize]},0))}_itemAnchorY(){return this._signpostRenderer.itemAnchorY()}_updateTimelineRenderer(e){const t=this._source.ownerSource();if(null===t)return!1;const i=this._model.timeScale(),n=t.priceScale(),r=t.firstValue();if(i.isEmpty()||null===n||n.isEmpty()||null===r)return!1;const s=this._model.isDark()?L:P,a=this._model.mainSeries(),o=this._source.properties().childs(),l=o.position.value(),c=this._source.customEvent(),u=t===a?(0,d.getSeriesPosition)(a,c):(0,d.getNoDataPosition)(c,n,r);if(null===u)return!1;const _=i.indexToCoordinate(u.index),p=n.priceToCoordinate(u.price,r),g=o.showImage.value();let f=(0,d.positionToCoordinate)(l,e,p,u.positionPointDirection);f>=-1e-10&&f<=e+1e-10&&(f=Math.min(e-2,Math.max(2,f)));const v=u.visualDirection!==u.positionPointDirection,x=u.visualDirection,w={emojiRadius:16,poleColor:s.poleColor,image:this._source.image(),itemIndex:1,label:{labelIndex:1,labelDirection:u.positionPointDirection,labelFont:h.CHART_FONT_FAMILY,labelFontSize:o.fontSize.value(),labelFontBold:o.bold.value(),labelFontItalic:o.italic.value(),labelBorderRadius:4,labelPadding:3,labelBoxPaddingVert:6,labelBoxPaddingHorz:8,labelWordWrapWidth:134,labelColor:s.labelTextColor,labelBorderColor:s.labelBorderColor,labelBackgroundColor:s.labelBackgroundColor,text:o.text.value()},x:_,anchorY:f,poleStartY:u.poleStartY,direction:x*(v?-1:1),inverseAnchorPosition:v};return g&&(w.plate={circleBackgroundColor:o.backgroundsColors.value(),outsideBorderWidth:0,circleBorderColor:s.circleBorderColor,circleBorderWidth:1,poleTailHeight:o.text.value()?10:0,circleRadius:35,shadowColor:s.shadowColor,outsideBorderColor:s.selectionColor}),this._signpostRenderer.setData(w),!0}}},85:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SineLinePaneView:()=>h});var n=i(86441),r=i(28910),s=i(94804),a=i(16282),o=i(84346),l=i(29892);class d extends a.ScaledPaneRenderer{constructor(e){super(),this._data=e}hitTest(e,t){const i=(e.x-this._data.point.x)*Math.PI/this._data.width;let n=Math.sin(i-Math.PI/2)*this._data.height/2;return n=this._data.point.y+n+this._data.height/2,Math.abs(n-e.y)<=3?new o.HitTestResult(o.HitTestResult.MOVEPOINT):null}_drawImpl(e,t){e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,(0,l.setLineStyle)(e,this._data.lineStyle),e.beginPath(),e.moveTo(this._data.point.x,this._data.point.y);const i=Math.max(1,this._data.width/30),n=t.cssWidth-this._data.point.x+i;for(let t=1;t<=n;t+=i){const i=t*Math.PI/this._data.width,n=Math.sin(i-Math.PI/2)*this._data.height/2;e.lineTo(this._data.point.x+t,this._data.point.y+n+this._data.height/2)}e.stroke()}}class h extends r.LineSourcePaneView{constructor(e,t){super(e,t),this._renderer=new s.CompositeRenderer}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){if(super._updateImpl(),this._renderer.clear(),this._points.length<2)return;const[i,r]=this._source.points() -;if(0===2*Math.abs(i.index-r.index))return void this.addAnchors(this._renderer);const[s,a]=this._points,o=Math.abs(s.x-a.x),l=a.y-s.y,h=this._source.properties().childs(),c=h.linewidth.value();if(s.y<-c&&a.y<-c||s.y>e+c&&a.y>e+c)return;const u=2*o,_=s.x>0?s.x-Math.ceil(s.x/u)*u:s.x+Math.floor(-s.x/u)*u,p={point:new n.Point(_,s.y),width:o,height:l,color:h.linecolor.value(),lineWidth:h.linewidth.value(),lineStyle:h.linestyle.value()};this._renderer.append(new d(p)),this.addAnchors(this._renderer)}}},77557:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StudyLineDataSourceAnchorsPaneView:()=>r});var n=i(28910);class r extends n.LineSourcePaneView{renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this.createLineAnchor({points:this._getPoints()},0)}}},44074:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TextPaneView:()=>p});var n=i(88537),r=i(86441),s=i(22799),a=i(56589),o=i(98664),l=i(94804),d=i(41892),h=i(74477),c=i(84346),u=i(28910);const _=[a.PaneCursorType.HorizontalResize];class p extends u.LineSourcePaneView{constructor(e,t,i,n,r,s,a,l){super(e,t),this._textRenderer=new o.TextRenderer,this._noSelection=!1,this._renderer=null,this._offsetX=i,this._offsetY=n,this._vertAlign=r,this._horzAlign=s,this._forceTextAlign=Boolean(a),this._noSelection=!1,this._renderer=null,this._recalculateSourcePointsOnFirstUpdate=l}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}disableSelection(){this._noSelection=!0}isEditMode(){return!this._getModel().readOnly()}_updateImpl(e,t){super._updateImpl(e,t),this._renderer=null;const i=this._getSource(),a=i.priceScale();if(!a||a.isEmpty())return;const o=i.properties().childs(),u=this._getModel(),p={text:o.text.value(),color:o.color.value(),fontSize:o.fontsize.value(),boxPadding:o.fontsize.value()/6,font:s.CHART_FONT_FAMILY,vertAlign:this._vertAlign||"top",horzAlign:this._horzAlign||"left",offsetX:this._offsetX||0,offsetY:this._offsetY||0,forceTextAlign:this._forceTextAlign};if(p.points=i.isFixed()?i.fixedPoints():this._points,o.fillBackground&&o.fillBackground.value()&&(p.backgroundColor=o.backgroundColor.value()),o.drawBorder&&o.drawBorder.value()&&(p.borderColor=o.borderColor.value()),o.wordWrap&&o.wordWrap.value()&&(p.wordWrapWidth=o.wordWrapWidth.value()),p.bold=o.bold&&o.bold.value(),p.italic=o.italic&&o.italic.value(),p.highlightBorder=u.selection().isSelected(i),!i.isFixed()&&o.fixedSize&&!o.fixedSize.value()){p.scaleX=u.timeScale().barSpacing()/i.barSpacing();const e=(0,n.ensureNotNull)(a.priceRange());let t=a.height()/e.length();const r=a.logFormula();i.isPriceDencityLog()&&!a.isLog()&&(t=a.height()/((0,h.toLog)(e.maxValue(),r)-(0,h.toLog)(e.minValue(),r))),!i.isPriceDencityLog()&&a.isLog()&&(t=a.height()/((0,h.fromLog)(e.maxValue(),r)-(0,h.fromLog)(e.minValue(),r)));const s=i.priceDencity();void 0!==s&&(p.scaleY=t/s),(void 0===s||void 0===p.scaleY||p.scaleY<=0)&&delete p.scaleY}if(this._textRenderer.setData(p),this._textRenderer.isOutOfScreen(t,e))return;const g=1===p.points.length;if(g&&void 0!==this._recalculateSourcePointsOnFirstUpdate){ -this._renderer=null;const e=this._textRenderer.measure();return this._recalculateSourcePointsOnFirstUpdate(e.width,e.height),void(this._recalculateSourcePointsOnFirstUpdate=void 0)}if(g&&!this._noSelection){const e=new l.CompositeRenderer;e.append(this._textRenderer);const t=p.points[0].clone(),i=this._textRenderer.measure(),n=i.width,s=i.height;if(p.wordWrapWidth){const i=new r.Point(t.x+n,t.y+s/2);i.data=1,e.append(this.createLineAnchor({points:[i],pointsCursorType:_},1))}const a=new r.Point(t.x+n/2,t.y+s);return a.data=0,e.append(new d.SelectionRenderer({points:[a],bgColors:this._lineAnchorColors([a]),visible:this.areAnchorsVisible(),hittestResult:c.HitTestResult.MOVEPOINT,barSpacing:u.timeScale().barSpacing()})),void(this._renderer=e)}this._renderer=this._textRenderer}}},88993:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LineToolThreeDrivesPaneView:()=>u});var n=i(43891),r=i(94804),s=i(98664),a=i(95505),o=i(63300),l=i(49612),d=i(2375),h=i(28910),c=i(22799);class u extends h.LineSourcePaneView{constructor(){super(...arguments),this._numericFormatter=new a.NumericFormatter,this._retrace1LabelRenderer=new s.TextRenderer,this._retrace12LabelRenderer=new s.TextRenderer,this._polyLineRenderer=new d.PolygonRenderer,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;let e=NaN,t=NaN;if(this._source.points().length>=4){const[,t,i,n]=this._source.points();e=Math.round(100*Math.abs((n.price-i.price)/(i.price-t.price)))/100}if(this._source.points().length>=6){const[,,,e,i,n]=this._source.points();t=Math.round(100*Math.abs((n.price-i.price)/(i.price-e.price)))/100}if(this._points.length<2)return;const i=this._source.properties().childs(),s=new r.CompositeRenderer,a=(e,t)=>({points:[e],text:t,color:i.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:c.CHART_FONT_FAMILY,offsetX:0,offsetY:0,bold:i.bold&&i.bold.value(),italic:i.italic&&i.italic.value(),fontsize:i.fontsize.value(),backgroundColor:i.color.value(),backgroundRoundRect:4}),d=(e,t)=>({points:[e,t],color:i.color.value(),linewidth:i.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal}),h={points:this._points,color:i.color.value(),linewidth:i.linewidth.value(),linestyle:n.LINESTYLE_SOLID,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(h),s.append(this._polyLineRenderer),!isNaN(e)){const t=new o.TrendLineRenderer;t.setData(d(this._points[1],this._points[3])),s.append(t);const i=a(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(e));this._retrace1LabelRenderer.setData(i),s.append(this._retrace1LabelRenderer)}if(!isNaN(t)){const e=new o.TrendLineRenderer;e.setData(d(this._points[3],this._points[5])),s.append(e);const i=a(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(t));this._retrace12LabelRenderer.setData(i),s.append(this._retrace12LabelRenderer)} -this.addAnchors(s),this._renderer=s}}},59905:(e,t,i)=>{"use strict";var n=i(86441).Point,r=i(28910).LineSourcePaneView,s=i(84346).HitTestResult,a=i(94804).CompositeRenderer,o=i(68906),l=i(16282).ScaledPaneRenderer;class d extends l{constructor(){super(),this._data=null}setData(e){this._data=e}_drawImpl(e){null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),e.save(),e.translate(this._data.point.x+1,this._data.point.y),e.scale(this._data.width,this._data.height),e.beginPath(),e.arc(.5,0,.5,Math.PI,0,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=o.generateColor(this._data.backcolor,this._data.transparency),e.fill()))}hitTest(e){if(null===this._data||e.y>this._data.point.y)return null;if(e.xthis._data.point.x+this._data.width)return null;var t=new n(this._data.point.x+this._data.width/2,this._data.point.y),i=e.subtract(t),r=this._data.height/this._data.width;i.y/=r;var a=i.length();return Math.abs(a-this._data.width/2)<3?new s(s.MOVEPOINT):null}}t.TimeCyclesPaneView=class extends r{constructor(e,t){super(e,t),this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],r=Math.min(t.index,i.index),s=Math.max(t.index,i.index),o=s-r,l=this._points[0],h=this._points[1],c=Math.abs(l.x-h.x),u=new a,_=this._source.properties(),p=this._model.timeScale();if(0!==o){for(var g=Math.min(l.x,h.x),f=[],v=r;g>-c;v-=o)g=p.indexToCoordinate(v),f.push(g);g=Math.max(l.x,h.x);for(v=s;g{"use strict";var n=i(86441).Point,r=i(28353).t,s=i(65697).TrendLineStatsRenderer,a=i(98664).TextRenderer,o=i(63300).TrendLineRenderer,l=i(94804).CompositeRenderer,d=i(26811).PercentageFormatter,h=i(41892).SelectionRenderer,c=i(97645).PipFormatter,u=i(49612).LineEnd,_=i(62580).LabelSettings,p=i(22799),g=i(84346).HitTestResult,f=i(7478).AlertableLineSourcePaneView,v=i(16282).ScaledPaneRenderer,x=i(16282).ScaledPaneRendererWrapper,w=i(62820).forceLTRStr;class m extends v{constructor(){super(),this._data=null}setData(e){this._data=e}hitTest(){return null}_drawImpl(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}}} -t.TrendAnglePaneView=class extends f{constructor(e,t){super(e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new o,this._angleRenderer=new m,this._angleLabelRenderer=new a,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),a=new n(t,i);this._secondPoint=e.addScaled(a,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var o,f,v=this._source.points()[1],m=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var R=v.price-e.price,y=R/Math.abs(e.price);o=this._source.ownerSource().formatter().format(R)+" ("+(new d).format(100*y)+") ";var T=this._model.mainSeries().symbolInfo();T&&T!==this._lastSymbolInfo&&(this._pipFormatter=new c(T.pricescale,T.minmov,T.type,T.minmove2),this._lastSymbolInfo=T),o+=this._pipFormatter?", "+this._pipFormatter.format(R):"",m.push("priceRange")}if(this._source.properties().showBarsRange.value()){f="";var b=v.index-e.index;f+=r("{count} bars").format({count:w(b)}),m.push("barsRange")}this._label=[w(o),f].filter((function(e){return e})).join("\n")||null,this._icons=m;var L=new l,P={},S=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),M=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var C=this._source.properties().linecolor.value();if(P.points=[this._points[0],this._secondPoint],P.width=this._model.timeScale().width(),P.height=this._source.priceScale().height(),P.color=C,P.linewidth=this._source.properties().linewidth.value(),P.linestyle=this._source.properties().linestyle.value(),P.extendleft=this._source.properties().extendLeft.value(),P.extendright=this._source.properties().extendRight.value(),P.leftend=u.Normal,P.rightend=u.Normal,this._trendLineRenderer.setData(P),L.append(this._trendLineRenderer),S&&this._label&&2===this._points.length){var I=this._source.properties().statsPosition.value(),N=this._source.getPointByPosition(I,P.points[0],this._middlePoint,P.points[1]),A=this._model.isDark(),k=A?_.bgColorDark:_.bgColorLight,D=A?_.textColorDark:_.textColorLight,E={points:[N],text:this._label,color:D,isDark:A,font:p.CHART_FONT_FAMILY,fontSize:_.fontSize,lineSpacing:_.lineSpacing,backgroundColor:k,backgroundRoundRect:_.rectRadius,paddingLeft:_.paddingLeftRight,paddingRight:_.paddingLeftRight,paddingTop:_.paddingTopBottom,paddingBottom:_.paddingTopBottom,textPadding:_.textPadding,doNotAlignText:!0,icons:this._icons},B=_.offset;E.offsetX=B,E.offsetY=B,(this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x)&&(E.vertAlign="bottom"), -L.append(new x(new s(E,this._rendererCache)))}this._middlePoint&&L.append(new h({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:C,visible:M&&this.areAnchorsVisible(),hittestResult:g.REGULAR}));var O={};O.point=this._points[0],O.angle=this._source._angle,O.color=this._source.properties().linecolor.value(),O.size=50,this._angleRenderer.setData(O),L.append(this._angleRenderer);var z=Math.round(180*O.angle/Math.PI)+"º";(N=this._points[0].clone()).x=N.x+50;var H={points:[N],text:w(z),color:this._source.properties().textcolor.value(),horzAlign:"left",font:p.CHART_FONT_FAMILY,offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(H),L.append(this._angleLabelRenderer)}P.points&&P.points.length>=2&&this._addAlertRenderer(L,P.points),this._secondPoint&&this._points.length>0&&L.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]},0)),this._renderer=L}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},80741:(e,t,i)=>{"use strict";var n=i(86441).Point,r=i(55776).RectangleRenderer,s=i(63300).TrendLineRenderer,a=i(84346).HitTestResult,o=i(94804).CompositeRenderer,l=i(49612).LineEnd,d=i(99961).fibLevelCoordinate,h=i(99961).fibLevelPrice,c=i(16378).LineToolPaneViewFibWithLabels;t.TrendBasedFibExtensionPaneView=class extends c{constructor(e,t){super(e,t),this._trendLineRendererPoints12=new s,this._trendLineRendererPoints23=new s,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],c=this._source.points()[1],u=this._source.points()[2],_=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(_=C.reverse.value()),this._levels=[];var p,g,f=_?i.price:c.price,v=_?c.price:i.price,x=f-v,w=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(w)p=e.priceToCoordinate(f,t)-e.priceToCoordinate(v,t),g=e.priceToCoordinate(u.price,t);for(var m={price:u.price,coordinate:g},R={price:x,coordinate:p},y=this._source.levelsCount(),T=1;T<=y;T++){var b=C["level"+T];if(b.visible.value()){var L=b.coeff.value(),P=b.color.value(),S=d(m,R,L,e,t,w),M=h(m,R,L,e,t,w);this._levels.push({color:P,price:M,y:S,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:T})}}}if(!(this._points.length<2)){var C,I=new o;i=this._points[0],c=this._points[1];if((C=this._source.properties()).trendline.visible.value()){var N={points:[i,c],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._trendLineRendererPoints12.setData(N), -I.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(I),void(this._renderer=I);u=this._points[2];if(C.trendline.visible.value()){N={points:[c,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._trendLineRendererPoints23.setData(N),I.append(this._trendLineRendererPoints23)}var A=Math.min(u.x,c.x),k=Math.max(u.x,c.x),D=C.fillBackground.value(),E=C.transparency.value(),B=C.extendLinesLeft.value(),O=C.extendLines.value();if(D)for(T=0;T0&&D){var z=this._levels[T-1],H=(i=new n(A,this._levels[T].y),c=new n(k,z.y),{});H.points=[i,c],H.color=this._levels[T].color,H.linewidth=0,H.backcolor=this._levels[T].color,H.fillBackground=!0,H.transparency=E,H.extendLeft=B,H.extendRight=O;var V=new r(void 0,void 0,!0);V.setData(H),I.append(V)}var W=A,F=k;W===F&&(B&&(W-=1),O&&(F+=1));for(T=0;T{"use strict";var n=i(86441).Point,r=i(44349).VerticalLineRenderer,s=i(28910).LineSourcePaneView,a=i(98664).TextRenderer,o=i(55776).RectangleRenderer,l=i(63300).TrendLineRenderer,d=i(84346).HitTestResult,h=i(94804).CompositeRenderer,c=i(49612).LineEnd,u=i(22799);t.TrendBasedFibTimePaneView=class extends s{constructor(e,t){super(e,t),this._trendLineRendererPoints12=new l,this._trendLineRendererPoints23=new l,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var s=t.index-e.index,l=this._source.properties(),_=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var p=1;p<=11;p++){var g=l["level"+p];if(g.visible.value()){var f=g.coeff.value(),v=g.color.value(),x=Math.round(_+f*s),w={x:this._model.timeScale().indexToCoordinate(x),coeff:f,color:v,linewidth:g.linewidth.value(), -linestyle:g.linestyle.value(),index:p};l.showCoeffs.value()&&(w.text=f,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var m=new h;e=this._points[0],t=this._points[1];if((l=this._source.properties()).trendline.visible.value()){var R={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(R),m.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(m),void(this._renderer=m);i=this._points[2];if(l.trendline.visible.value()){R={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(R),m.append(this._trendLineRendererPoints23)}var y=l.fillBackground.value(),T=l.transparency.value(),b=this._model.timeScale().width(),L=this._source.priceScale().height();if(y)for(p=1;p{"use strict";var n;i.d(t,{LabelSettings:()=>n}),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(n||(n={}))},38743:(e,t,i)=>{"use strict" +;if(0===2*Math.abs(i.index-r.index))return void this.addAnchors(this._renderer);const[s,a]=this._points,o=Math.abs(s.x-a.x),l=a.y-s.y,h=this._source.properties().childs(),c=h.linewidth.value();if(s.y<-c&&a.y<-c||s.y>e+c&&a.y>e+c)return;const u=2*o,_=s.x>0?s.x-Math.ceil(s.x/u)*u:s.x+Math.floor(-s.x/u)*u,p={point:new n.Point(_,s.y),width:o,height:l,color:h.linecolor.value(),lineWidth:h.linewidth.value(),lineStyle:h.linestyle.value()};this._renderer.append(new d(p)),this.addAnchors(this._renderer)}}},77557:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StudyLineDataSourceAnchorsPaneView:()=>r});var n=i(28910);class r extends n.LineSourcePaneView{renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this.createLineAnchor({points:this._getPoints()},0)}}},44074:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TextPaneView:()=>p});var n=i(88537),r=i(86441),s=i(22799),a=i(56589),o=i(98664),l=i(94804),d=i(41892),h=i(74477),c=i(84346),u=i(28910);const _=[a.PaneCursorType.HorizontalResize];class p extends u.LineSourcePaneView{constructor(e,t,i,n,r,s,a,l){super(e,t),this._textRenderer=new o.TextRenderer,this._noSelection=!1,this._renderer=null,this._offsetX=i,this._offsetY=n,this._vertAlign=r,this._horzAlign=s,this._forceTextAlign=Boolean(a),this._noSelection=!1,this._renderer=null,this._recalculateSourcePointsOnFirstUpdate=l}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}disableSelection(){this._noSelection=!0}isEditMode(){return!this._getModel().readOnly()}_updateImpl(e,t){super._updateImpl(e,t),this._renderer=null;const i=this._getSource(),a=i.priceScale();if(!a||a.isEmpty())return;const o=i.properties().childs(),u=this._getModel(),p={text:o.text.value(),color:o.color.value(),fontSize:o.fontsize.value(),boxPadding:o.fontsize.value()/6,font:s.CHART_FONT_FAMILY,vertAlign:this._vertAlign||"top",horzAlign:this._horzAlign||"left",offsetX:this._offsetX||0,offsetY:this._offsetY||0,forceTextAlign:this._forceTextAlign};if(p.points=i.isFixed()?[(0,n.ensureDefined)(i.fixedPoint())]:this._points,o.fillBackground&&o.fillBackground.value()&&(p.backgroundColor=o.backgroundColor.value()),o.drawBorder&&o.drawBorder.value()&&(p.borderColor=o.borderColor.value()),o.wordWrap&&o.wordWrap.value()&&(p.wordWrapWidth=o.wordWrapWidth.value()),p.bold=o.bold&&o.bold.value(),p.italic=o.italic&&o.italic.value(),p.highlightBorder=u.selection().isSelected(i),!i.isFixed()&&o.fixedSize&&!o.fixedSize.value()){p.scaleX=u.timeScale().barSpacing()/i.barSpacing();const e=(0,n.ensureNotNull)(a.priceRange());let t=a.height()/e.length();const r=a.logFormula();i.isPriceDencityLog()&&!a.isLog()&&(t=a.height()/((0,h.toLog)(e.maxValue(),r)-(0,h.toLog)(e.minValue(),r))),!i.isPriceDencityLog()&&a.isLog()&&(t=a.height()/((0,h.fromLog)(e.maxValue(),r)-(0,h.fromLog)(e.minValue(),r)));const s=i.priceDencity();void 0!==s&&(p.scaleY=t/s),(void 0===s||void 0===p.scaleY||p.scaleY<=0)&&delete p.scaleY}if(this._textRenderer.setData(p),this._textRenderer.isOutOfScreen(t,e))return;const g=1===p.points.length +;if(g&&void 0!==this._recalculateSourcePointsOnFirstUpdate){this._renderer=null;const e=this._textRenderer.measure();return this._recalculateSourcePointsOnFirstUpdate(e.width,e.height),void(this._recalculateSourcePointsOnFirstUpdate=void 0)}if(g&&!this._noSelection){const e=new l.CompositeRenderer;e.append(this._textRenderer);const t=p.points[0].clone(),i=this._textRenderer.measure(),n=i.width,s=i.height;if(p.wordWrapWidth){const i=new r.Point(t.x+n,t.y+s/2);i.data=1,e.append(this.createLineAnchor({points:[i],pointsCursorType:_},1))}const a=new r.Point(t.x+n/2,t.y+s);return a.data=0,e.append(new d.SelectionRenderer({points:[a],bgColors:this._lineAnchorColors([a]),visible:this.areAnchorsVisible(),hittestResult:c.HitTestResult.MOVEPOINT,barSpacing:u.timeScale().barSpacing()})),void(this._renderer=e)}this._renderer=this._textRenderer}}},88993:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LineToolThreeDrivesPaneView:()=>u});var n=i(43891),r=i(94804),s=i(98664),a=i(95505),o=i(63300),l=i(49612),d=i(2375),h=i(28910),c=i(22799);class u extends h.LineSourcePaneView{constructor(){super(...arguments),this._numericFormatter=new a.NumericFormatter,this._retrace1LabelRenderer=new s.TextRenderer,this._retrace12LabelRenderer=new s.TextRenderer,this._polyLineRenderer=new d.PolygonRenderer,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;let e=NaN,t=NaN;if(this._source.points().length>=4){const[,t,i,n]=this._source.points();e=Math.round(100*Math.abs((n.price-i.price)/(i.price-t.price)))/100}if(this._source.points().length>=6){const[,,,e,i,n]=this._source.points();t=Math.round(100*Math.abs((n.price-i.price)/(i.price-e.price)))/100}if(this._points.length<2)return;const i=this._source.properties().childs(),s=new r.CompositeRenderer,a=(e,t)=>({points:[e],text:t,color:i.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:c.CHART_FONT_FAMILY,offsetX:0,offsetY:0,bold:i.bold&&i.bold.value(),italic:i.italic&&i.italic.value(),fontsize:i.fontsize.value(),backgroundColor:i.color.value(),backgroundRoundRect:4}),d=(e,t)=>({points:[e,t],color:i.color.value(),linewidth:i.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal}),h={points:this._points,color:i.color.value(),linewidth:i.linewidth.value(),linestyle:n.LINESTYLE_SOLID,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(h),s.append(this._polyLineRenderer),!isNaN(e)){const t=new o.TrendLineRenderer;t.setData(d(this._points[1],this._points[3])),s.append(t);const i=a(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(e));this._retrace1LabelRenderer.setData(i),s.append(this._retrace1LabelRenderer)}if(!isNaN(t)){const e=new o.TrendLineRenderer;e.setData(d(this._points[3],this._points[5])),s.append(e);const i=a(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(t)) +;this._retrace12LabelRenderer.setData(i),s.append(this._retrace12LabelRenderer)}this.addAnchors(s),this._renderer=s}}},59905:(e,t,i)=>{"use strict";var n=i(86441).Point,r=i(28910).LineSourcePaneView,s=i(84346).HitTestResult,a=i(94804).CompositeRenderer,o=i(68906),l=i(16282).ScaledPaneRenderer;class d extends l{constructor(){super(),this._data=null}setData(e){this._data=e}_drawImpl(e){null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle),e.save(),e.translate(this._data.point.x+1,this._data.point.y),e.scale(this._data.width,this._data.height),e.beginPath(),e.arc(.5,0,.5,Math.PI,0,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=o.generateColor(this._data.backcolor,this._data.transparency),e.fill()))}hitTest(e){if(null===this._data||e.y>this._data.point.y)return null;if(e.xthis._data.point.x+this._data.width)return null;var t=new n(this._data.point.x+this._data.width/2,this._data.point.y),i=e.subtract(t),r=this._data.height/this._data.width;i.y/=r;var a=i.length();return Math.abs(a-this._data.width/2)<3?new s(s.MOVEPOINT):null}}t.TimeCyclesPaneView=class extends r{constructor(e,t){super(e,t),this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],r=Math.min(t.index,i.index),s=Math.max(t.index,i.index),o=s-r,l=this._points[0],h=this._points[1],c=Math.abs(l.x-h.x),u=new a,_=this._source.properties(),p=this._model.timeScale();if(0!==o){for(var g=Math.min(l.x,h.x),f=[],v=r;g>-c;v-=o)g=p.indexToCoordinate(v),f.push(g);g=Math.max(l.x,h.x);for(v=s;g{"use strict";var n=i(86441).Point,r=i(28353).t,s=i(65697).TrendLineStatsRenderer,a=i(98664).TextRenderer,o=i(63300).TrendLineRenderer,l=i(94804).CompositeRenderer,d=i(26811).PercentageFormatter,h=i(41892).SelectionRenderer,c=i(97645).PipFormatter,u=i(49612).LineEnd,_=i(62580).LabelSettings,p=i(22799),g=i(84346).HitTestResult,f=i(7478).AlertableLineSourcePaneView,v=i(16282).ScaledPaneRenderer,x=i(16282).ScaledPaneRendererWrapper,w=i(62820).forceLTRStr;class m extends v{constructor(){super(),this._data=null}setData(e){this._data=e}hitTest(){return null}_drawImpl(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0), +e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}}}t.TrendAnglePaneView=class extends f{constructor(e,t){super(e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new o,this._angleRenderer=new m,this._angleLabelRenderer=new a,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),a=new n(t,i);this._secondPoint=e.addScaled(a,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var o,f,v=this._source.points()[1],m=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var R=v.price-e.price,y=R/Math.abs(e.price);o=this._source.ownerSource().formatter().format(R)+" ("+(new d).format(100*y)+") ";var T=this._model.mainSeries().symbolInfo();T&&T!==this._lastSymbolInfo&&(this._pipFormatter=new c(T.pricescale,T.minmov,T.type,T.minmove2),this._lastSymbolInfo=T),o+=this._pipFormatter?", "+this._pipFormatter.format(R):"",m.push("priceRange")}if(this._source.properties().showBarsRange.value()){f="";var b=v.index-e.index;f+=r("{count} bars").format({count:w(b)}),m.push("barsRange")}this._label=[w(o),f].filter((function(e){return e})).join("\n")||null,this._icons=m;var L=new l,P={},S=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),M=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var C=this._source.properties().linecolor.value();if(P.points=[this._points[0],this._secondPoint],P.width=this._model.timeScale().width(),P.height=this._source.priceScale().height(),P.color=C,P.linewidth=this._source.properties().linewidth.value(),P.linestyle=this._source.properties().linestyle.value(),P.extendleft=this._source.properties().extendLeft.value(),P.extendright=this._source.properties().extendRight.value(),P.leftend=u.Normal,P.rightend=u.Normal,this._trendLineRenderer.setData(P),L.append(this._trendLineRenderer),S&&this._label&&2===this._points.length){var I=this._source.properties().statsPosition.value(),N=this._source.getPointByPosition(I,P.points[0],this._middlePoint,P.points[1]),A=this._model.isDark(),k=A?_.bgColorDark:_.bgColorLight,D=A?_.textColorDark:_.textColorLight,E={points:[N],text:this._label,color:D,isDark:A,font:p.CHART_FONT_FAMILY,fontSize:_.fontSize,lineSpacing:_.lineSpacing,backgroundColor:k,backgroundRoundRect:_.rectRadius,paddingLeft:_.paddingLeftRight,paddingRight:_.paddingLeftRight,paddingTop:_.paddingTopBottom,paddingBottom:_.paddingTopBottom,textPadding:_.textPadding,doNotAlignText:!0,icons:this._icons},B=_.offset;E.offsetX=B,E.offsetY=B, +(this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x)&&(E.vertAlign="bottom"),L.append(new x(new s(E,this._rendererCache)))}this._middlePoint&&L.append(new h({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:C,visible:M&&this.areAnchorsVisible(),hittestResult:g.REGULAR}));var O={};O.point=this._points[0],O.angle=this._source._angle,O.color=this._source.properties().linecolor.value(),O.size=50,this._angleRenderer.setData(O),L.append(this._angleRenderer);var z=Math.round(180*O.angle/Math.PI)+"º";(N=this._points[0].clone()).x=N.x+50;var H={points:[N],text:w(z),color:this._source.properties().textcolor.value(),horzAlign:"left",font:p.CHART_FONT_FAMILY,offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(H),L.append(this._angleLabelRenderer)}P.points&&P.points.length>=2&&this._addAlertRenderer(L,P.points),this._secondPoint&&this._points.length>0&&L.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]},0)),this._renderer=L}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},80741:(e,t,i)=>{"use strict";var n=i(86441).Point,r=i(55776).RectangleRenderer,s=i(63300).TrendLineRenderer,a=i(84346).HitTestResult,o=i(94804).CompositeRenderer,l=i(49612).LineEnd,d=i(99961).fibLevelCoordinate,h=i(99961).fibLevelPrice,c=i(16378).LineToolPaneViewFibWithLabels;t.TrendBasedFibExtensionPaneView=class extends c{constructor(e,t){super(e,t),this._trendLineRendererPoints12=new s,this._trendLineRendererPoints23=new s,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],c=this._source.points()[1],u=this._source.points()[2],_=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(_=C.reverse.value()),this._levels=[];var p,g,f=_?i.price:c.price,v=_?c.price:i.price,x=f-v,w=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(w)p=e.priceToCoordinate(f,t)-e.priceToCoordinate(v,t),g=e.priceToCoordinate(u.price,t);for(var m={price:u.price,coordinate:g},R={price:x,coordinate:p},y=this._source.levelsCount(),T=1;T<=y;T++){var b=C["level"+T];if(b.visible.value()){var L=b.coeff.value(),P=b.color.value(),S=d(m,R,L,e,t,w),M=h(m,R,L,e,t,w);this._levels.push({color:P,price:M,y:S,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:T})}}}if(!(this._points.length<2)){var C,I=new o;i=this._points[0],c=this._points[1];if((C=this._source.properties()).trendline.visible.value()){var N={points:[i,c],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(), +linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._trendLineRendererPoints12.setData(N),I.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(I),void(this._renderer=I);u=this._points[2];if(C.trendline.visible.value()){N={points:[c,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._trendLineRendererPoints23.setData(N),I.append(this._trendLineRendererPoints23)}var A=Math.min(u.x,c.x),k=Math.max(u.x,c.x),D=C.fillBackground.value(),E=C.transparency.value(),B=C.extendLinesLeft.value(),O=C.extendLines.value();if(D)for(T=0;T0&&D){var z=this._levels[T-1],H=(i=new n(A,this._levels[T].y),c=new n(k,z.y),{});H.points=[i,c],H.color=this._levels[T].color,H.linewidth=0,H.backcolor=this._levels[T].color,H.fillBackground=!0,H.transparency=E,H.extendLeft=B,H.extendRight=O;var V=new r(void 0,void 0,!0);V.setData(H),I.append(V)}var W=A,F=k;W===F&&(B&&(W-=1),O&&(F+=1));for(T=0;T{"use strict";var n=i(86441).Point,r=i(44349).VerticalLineRenderer,s=i(28910).LineSourcePaneView,a=i(98664).TextRenderer,o=i(55776).RectangleRenderer,l=i(63300).TrendLineRenderer,d=i(84346).HitTestResult,h=i(94804).CompositeRenderer,c=i(49612).LineEnd,u=i(22799);t.TrendBasedFibTimePaneView=class extends s{constructor(e,t){super(e,t),this._trendLineRendererPoints12=new l,this._trendLineRendererPoints23=new l,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var s=t.index-e.index,l=this._source.properties(),_=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var p=1;p<=11;p++){var g=l["level"+p];if(g.visible.value()){ +var f=g.coeff.value(),v=g.color.value(),x=Math.round(_+f*s),w={x:this._model.timeScale().indexToCoordinate(x),coeff:f,color:v,linewidth:g.linewidth.value(),linestyle:g.linestyle.value(),index:p};l.showCoeffs.value()&&(w.text=f,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var m=new h;e=this._points[0],t=this._points[1];if((l=this._source.properties()).trendline.visible.value()){var R={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(R),m.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(m),void(this._renderer=m);i=this._points[2];if(l.trendline.visible.value()){R={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(R),m.append(this._trendLineRendererPoints23)}var y=l.fillBackground.value(),T=l.transparency.value(),b=this._model.timeScale().width(),L=this._source.priceScale().height();if(y)for(p=1;p{"use strict";var n;i.d(t,{LabelSettings:()=>n}),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(n||(n={}))},38743:(e,t,i)=>{"use strict" ;var n=i(88537).ensureNotNull,r=i(86441).Point,s=i(28353).t,a=i(89846).PaneRendererCachedImage,o=i(94804).CompositeRenderer,l=i(26811).PercentageFormatter,d=i(95505).NumericFormatter,h=i(92242).TimeSpanFormatter,c=i(97645).PipFormatter,u=i(41892).SelectionRenderer,_=i(63300).TrendLineRenderer,p=i(98664).TextRenderer,g=i(62580).LabelSettings,f=i(22799),v=i(84346).HitTestResult,x=i(7478).AlertableLineSourcePaneView,w=i(8474).TrendLineStatsCache,m=i(15712).areEqualPaneRenderParams,R=i(65697).iconsContainer,y=i(62820),T=y.forceLTRStr,b=y.startWithLTR;t.TrendLinePaneView=class extends x{constructor(e,t){super(e,t),this._label=null,this._rendererCache={},this._cacheInvalidated=!0,this._percentageFormatter=new l,this._numericFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._trendRenderer=new _,this._labelRenderer=new p,this._renderer=null,this._cache=null,this._cacheDrawParams=null,this._iconsReady=!1,R.onAllIconsReady().subscribe(this,(function(){this._cache&&(this._cache.destroy(),this._cache=null),this._iconsReady=!0,t.lightUpdate()}))}iconsReady(){return this._iconsReady}update(){super.update(),this._cacheInvalidated=!0}getCacheCanvas(e){return this._createCacheIfRequired(e),n(this._cache).canvas()}getCacheRects(e,t){this._createCacheIfRequired(e);var i=this._source.properties().statsPosition.value(),n=this._source.getPointByPosition(i,this._points[0],this._middlePoint,this._points[1]),r={left:0,top:this._cache.topByRow(this._statCache.rowIndex),width:this._cache.rowWidth(this._statCache.rowIndex),height:this._cache.rowHeight(this._statCache.rowIndex)},s={left:Math.floor(n.x),top:Math.floor(n.y),width:r.width,height:r.height};return s.left+=g.paddingLeftRight,this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x?s.top-=g.paddingLeftRight+s.height:s.top+=g.paddingLeftRight,{cacheRect:r,targetRect:s}}_createCacheIfRequired(e){null!=this._cache&&null!=this._cacheDrawParams&&m(e,this._cacheDrawParams)||(this._cache&&this._cache.destroy(),this._cache=new w(e),this._statCache=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheInvalidated=!1)}destroy(){this._cache&&(this._cache.destroy(),this._cache=null),R.onAllIconsReady().unsubscribeAll(this)}_updateImpl(){this._renderer=null,this._invalidated=!1;var e=this._source.priceScale(),t=this._model.timeScale();if(e&&!e.isEmpty()&&!t.isEmpty()){var i=this._model.timeScale().visibleBarsStrictRange();if(null!==i){var n=this._source.points();if(!(n.length<2)){var s=n[0],l=n[1],d=this._source.properties();if((!(s.index=2&&this._addAlertRenderer(x,m.points),d.showLabel&&d.showLabel.value()&&d.text.value().length>0){s=this._points[0],l=this._points[1];var b,L=s.x0&&(a=a.normalized(),w=Math.acos(a.x),a.y>0&&(w=-w)),"number"!=typeof w||TradingView.isNaN(w)||(i=Math.round(180*w/Math.PI)+"º", p.push("angle")));this._label=[T(e),t,i].filter((function(e){return e})).join("\n")||null,this._icons=p;var N=this._model.isDark(),A=N?g.bgColorDark:g.bgColorLight,k=N?g.textColorDark:g.textColorLight,D={points:[this._points[1]],text:this._label,color:k,isDark:N,font:f.CHART_FONT_FAMILY,fontSize:g.fontSize,lineSpacing:g.lineSpacing,backgroundColor:A,backgroundRoundRect:g.rectRadius,paddingLeft:g.paddingLeftRight,paddingRight:g.paddingLeftRight,paddingTop:g.paddingTopBottom,paddingBottom:g.paddingTopBottom,textPadding:g.textPadding,doNotAlignText:!0,icons:this._icons};return this._points[1].y{"use strict";i.d(t,{TrendLineStatsCache:()=>g});var n=i(88537),r=i(86441),s=i(98125),a=i(65697),o=i(22799),l=i(62580),d=i(93435),h=l.LabelSettings.fontSize,c=l.LabelSettings.lineSpacing,u=l.LabelSettings.paddingTopBottom;const _=(0,s.getLogger)("Chart.LineToolTrendLine");function p(e,t){return!(!e&&!t)&&(!(!e||t)||(!(e||!t)||(e.index!==t.index||e.price!==t.price)))}class g{constructor(e){this._sourcesToRow=new Map,this._rowsToSources=new Map,this._currentWidth=400,this._actualCapacity=1,this._currentSymbol="",this._params=e;const t=c,i=h+t;this._maxRowHeight=3*i-t+2*u+2,this._recreateCanvas()}destroy(){delete this._canvas,delete this._ctx}canvas(){return this._canvas}topByRow(e){return e*this._maxRowHeight}rowHeight(e){const t=(0,n.ensureDefined)(this._rowsToSources.get(e)),i=(0,n.ensureDefined)(this._sourcesToRow.get(t)).effectiveState;return null!==i?i.realRowHeight:this._maxRowHeight}rowWidth(e){const t=(0,n.ensureDefined)(this._rowsToSources.get(e));return(0,n.ensureDefined)(this._sourcesToRow.get(t)).width}currentWidth(){return this._currentWidth}updateSource(e,t){const i=e.properties().symbol.value();this._currentSymbol!==i&&(_.logDebug("TrendLineCache. Clearing canvas because of changing symbol from "+this._currentSymbol+" to "+i),this._currentSymbol=i,this._sourcesToRow.clear(),this._rowsToSources.clear());const n=e.id();let r=this._sourcesToRow.get(n);if(void 0===r){const e=this._findEmptyRow(n);r={effectiveState:null,rowIndex:e,width:0},this._sourcesToRow.set(n,r),this._rowsToSources.set(e,n)}const s=r.effectiveState,a=this._effectiveState(e);if(!this._effectiveStatesEquals(s,a)){const e=t();this._repaintSource(n,r.rowIndex,e),r.effectiveState=a}return r}_findEmptyRow(e){let t=0;for(;void 0!==this._rowsToSources.get(t);)t++;return this._rowsToSources.set(t,e),t>=this._actualCapacity&&(this._actualCapacity++,this._recreateCanvas()),t}_effectiveState(e){const t=e.properties(),i=t.showBarsRange.value(),r=t.showDateTimeRange.value(),s=t.showDistance.value(),a=t.showPriceRange.value(),o=t.showAngle.value();let l=0;(i||r||s)&&l++,o&&l++,a&&l++;const d=(h+c)*l-c+2*u+2;return{p1:Object.assign({},e.points()[0]),p2:Object.assign({},e.points()[1]),props:e.properties(),showBars:i,showTimeRange:r,showDistance:s, diff --git a/charting_library/bundles/new-confirm-inputs-dialog.f334374efc8ad7fe9ea9.js b/charting_library/bundles/new-confirm-inputs-dialog.74701800dcf34f21dcae.js similarity index 99% rename from charting_library/bundles/new-confirm-inputs-dialog.f334374efc8ad7fe9ea9.js rename to charting_library/bundles/new-confirm-inputs-dialog.74701800dcf34f21dcae.js index 1e518bb2..4263c1d2 100644 --- a/charting_library/bundles/new-confirm-inputs-dialog.f334374efc8ad7fe9ea9.js +++ b/charting_library/bundles/new-confirm-inputs-dialog.74701800dcf34f21dcae.js @@ -1,3 +1,3 @@ (self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3030],{59142:function(t,e){var n,o,i;o=[e],void 0===(i="function"==typeof(n=function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e{t.exports={separator:"separator-s5VT2kNH",scrollable:"scrollable-s5VT2kNH"}},70589:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ConfirmInputsDialogRenderer:()=>h}) -;var o=n(87995),i=n(59496),r=n(28353),s=n(50182),l=n(59064),c=n(86656),u=n(27423),a=n(2872),d=n.n(a),p=n(49483),f=n(52932);function m(t){const{title:e,confirmInputs:n,inputsProperty:o,model:a,confirmInputsType:m,onCancel:h,onSubmit:y,onClose:v,onStudyInputChange:g}=t,[S,w]=(0,i.useState)(!0),b=(0,i.useMemo)((function(){const t=new(d());return{isInputsStudy:!0,symbolsResolved:()=>t,resolvedSymbolInfoBySymbol:()=>null,tempProperties:o}}),[]),C=(0,i.useRef)(null),[E,I]=(0,i.useState)(D());return(0,i.useEffect)(()=>{if(!p.CheckMobile.any()&&S&&"symbol"===m&&C.current){const t=C.current.querySelector("input");t&&t.focus()}},[S]),i.createElement(s.AdaptiveConfirmDialog,{dataName:"confirm-inputs-dialog",title:e,isOpened:S,onSubmit:function(){y(o.state().inputs),_()},onCancel:h,onClickOutside:_,onClose:_,render:()=>i.createElement(i.Fragment,null,i.createElement("div",{className:f.separator}),i.createElement(c.TouchScrollContainer,{className:f.scrollable,onScroll:T},i.createElement(u.InputsTabContent,{reference:C,property:o,model:a,study:b,inputs:n,onStudyInputChange:P}))),defaultActionOnClose:"none",submitButtonText:(0,r.t)("Apply"),submitButtonDisabled:E,submitOnEnterKey:!1});function T(){l.globalCloseDelegate.fire()}function _(){w(!1),v()}function D(){const{inputs:t}=o.state();for(const e of n)if("symbol"===e.type&&!e.optional&&""===t[e.id])return!0;return!1}function P(t,e){null==g||g(t,e),I(D())}}class h{constructor(t,e,n,i,r,s,l,c){this._container=document.createElement("div"),this._handleClose=()=>{o.unmountComponentAtNode(this._container),this._onClose()},this._title=t,this._confirmInputs=e,this._model=r,this._confirmInputsType=i,this._onSubmit=s,this._onClose=l,this._onStudyInputChange=c,this._inputsProperty=n}show(){o.render(i.createElement(m,{title:this._title,confirmInputs:this._confirmInputs,inputsProperty:this._inputsProperty,model:this._model,confirmInputsType:this._confirmInputsType,onSubmit:this._onSubmit,onCancel:()=>{},onClose:this._handleClose,onStudyInputChange:this._onStudyInputChange}),this._container)}}},73339:(t,e,n)=>{"use strict";n.r(e),n.d(e,{selectInputValuesOnChart:()=>l});var o=n(88537),i=n(45112),r=n(28353),s=n(95087);i.colorsPalette["color-cold-gray-500"];async function l(t,e,n,i,l){let c;const u=(0,s.getInputGroups)(e);t.model().model();for await(const t of u)await a(t).catch(t=>{throw new Error(t)});return{customSourceId:void 0,destPane:c};async function a(t){if((0,s.isGroup)(t))if((0,s.isInputInlines)(t)){const e=function(t){if(2!==t.length||t[0].type===t[1].type)return null;return"price"===t[0].type?{price:t[0],time:t[1]}:{price:t[1],time:t[0]}}(t.children);if(e){const{time:n,price:o}=e,s=n.inline?(0,r.t)('Set the "{inputInline}" time and price for "{studyShortDescription}"',{replace:{inputInline:n.inline,studyShortDescription:i}}):(0,r.t)('Set the time and price for "{studyShortDescription}"',{replace:{studyShortDescription:i}}),l=f(t.id);await p(t,"all",null!=l?l:s,n.id,o.id)}else for await(const e of t.children)await d(e)}else for await(const e of t.children)await a(e);else await d(t)} +;var o=n(87995),i=n(59496),r=n(28353),s=n(50182),l=n(59064),c=n(86656),u=n(22855),a=n(2872),d=n.n(a),p=n(49483),f=n(52932);function m(t){const{title:e,confirmInputs:n,inputsProperty:o,model:a,confirmInputsType:m,onCancel:h,onSubmit:y,onClose:v,onStudyInputChange:g}=t,[S,w]=(0,i.useState)(!0),b=(0,i.useMemo)((function(){const t=new(d());return{isInputsStudy:!0,symbolsResolved:()=>t,resolvedSymbolInfoBySymbol:()=>null,tempProperties:o}}),[]),C=(0,i.useRef)(null),[E,I]=(0,i.useState)(D());return(0,i.useEffect)(()=>{if(!p.CheckMobile.any()&&S&&"symbol"===m&&C.current){const t=C.current.querySelector("input");t&&t.focus()}},[S]),i.createElement(s.AdaptiveConfirmDialog,{dataName:"confirm-inputs-dialog",title:e,isOpened:S,onSubmit:function(){y(o.state().inputs),_()},onCancel:h,onClickOutside:_,onClose:_,render:()=>i.createElement(i.Fragment,null,i.createElement("div",{className:f.separator}),i.createElement(c.TouchScrollContainer,{className:f.scrollable,onScroll:T},i.createElement(u.InputsTabContent,{reference:C,property:o,model:a,study:b,inputs:n,onStudyInputChange:P}))),defaultActionOnClose:"none",submitButtonText:(0,r.t)("Apply"),submitButtonDisabled:E,submitOnEnterKey:!1});function T(){l.globalCloseDelegate.fire()}function _(){w(!1),v()}function D(){const{inputs:t}=o.state();for(const e of n)if("symbol"===e.type&&!e.optional&&""===t[e.id])return!0;return!1}function P(t,e){null==g||g(t,e),I(D())}}class h{constructor(t,e,n,i,r,s,l,c){this._container=document.createElement("div"),this._handleClose=()=>{o.unmountComponentAtNode(this._container),this._onClose()},this._title=t,this._confirmInputs=e,this._model=r,this._confirmInputsType=i,this._onSubmit=s,this._onClose=l,this._onStudyInputChange=c,this._inputsProperty=n}show(){o.render(i.createElement(m,{title:this._title,confirmInputs:this._confirmInputs,inputsProperty:this._inputsProperty,model:this._model,confirmInputsType:this._confirmInputsType,onSubmit:this._onSubmit,onCancel:()=>{},onClose:this._handleClose,onStudyInputChange:this._onStudyInputChange}),this._container)}}},73339:(t,e,n)=>{"use strict";n.r(e),n.d(e,{selectInputValuesOnChart:()=>l});var o=n(88537),i=n(45112),r=n(28353),s=n(95087);i.colorsPalette["color-cold-gray-500"];async function l(t,e,n,i,l){let c;const u=(0,s.getInputGroups)(e);t.model().model();for await(const t of u)await a(t).catch(t=>{throw new Error(t)});return{customSourceId:void 0,destPane:c};async function a(t){if((0,s.isGroup)(t))if((0,s.isInputInlines)(t)){const e=function(t){if(2!==t.length||t[0].type===t[1].type)return null;return"price"===t[0].type?{price:t[0],time:t[1]}:{price:t[1],time:t[0]}}(t.children);if(e){const{time:n,price:o}=e,s=n.inline?(0,r.t)('Set the "{inputInline}" time and price for "{studyShortDescription}"',{replace:{inputInline:n.inline,studyShortDescription:i}}):(0,r.t)('Set the time and price for "{studyShortDescription}"',{replace:{studyShortDescription:i}}),l=f(t.id);await p(t,"all",null!=l?l:s,n.id,o.id)}else for await(const e of t.children)await d(e)}else for await(const e of t.children)await a(e);else await d(t)} async function d(t){const e="time"===t.type,n=e?"time":"price",o=function(){if(t.inline){const e=f(t.inline);if(e)return e}if(t.tooltip)return t.tooltip;const n=t.name?(0,r.t)('Set the "{inputTitle}" time for "{studyShortDescription}"',{replace:{inputTitle:t.name,studyShortDescription:i}}):(0,r.t)('Set the time for "{studyShortDescription}"',{replace:{studyShortDescription:i}}),o=t.name?(0,r.t)('Set the "{inputTitle}" price for "{studyShortDescription}"',{replace:{inputTitle:t.name,studyShortDescription:i}}):(0,r.t)('Set the price for "{studyShortDescription}"',{replace:{studyShortDescription:i}});return e?n:o}(),s=e?t.id:void 0,l=e?void 0:t.id;await p(t,n,o,s,l)}async function p(e,i,r,s,l){const u=await t.requestSelectPoint({pointType:i,pane:c,lineColor:void 0},r);void 0===c&&(c=u.pane);const a=n.childs().inputs;a&&(s&&(0,o.ensureDefined)(a.child(s)).setValue(1e3*(u.point.time||0)),l&&(0,o.ensureDefined)(a.child(l)).setValue(u.point.price))}function f(t){let e;return l.filter(e=>e.inline===t).forEach(t=>{t.tooltip&&(e=t.tooltip)}),e}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/new-edit-object-dialog.833907d615c0a923a83e.js b/charting_library/bundles/new-edit-object-dialog.833907d615c0a923a83e.js deleted file mode 100644 index a1ab6bfe..00000000 --- a/charting_library/bundles/new-edit-object-dialog.833907d615c0a923a83e.js +++ /dev/null @@ -1,25 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6265],{26390:e=>{e.exports={switcher:"switcher-GT7Z98Io","disable-cursor-pointer":"disable-cursor-pointer-GT7Z98Io",input:"input-GT7Z98Io","thumb-wrapper":"thumb-wrapper-GT7Z98Io","size-small":"size-small-GT7Z98Io","size-large":"size-large-GT7Z98Io","intent-default":"intent-default-GT7Z98Io","disable-active-state-styles":"disable-active-state-styles-GT7Z98Io","intent-select":"intent-select-GT7Z98Io",track:"track-GT7Z98Io",thumb:"thumb-GT7Z98Io"}},31405:e=>{e.exports={wrapper:"wrapper-IbP2mmCe",hovered:"hovered-IbP2mmCe",labelRow:"labelRow-IbP2mmCe",label:"label-IbP2mmCe",labelHint:"labelHint-IbP2mmCe",labelOn:"labelOn-IbP2mmCe"}},20959:e=>{e.exports={smallStyleControl:"smallStyleControl-tMebfShj",additionalSelect:"additionalSelect-tMebfShj",childRowContainer:"childRowContainer-tMebfShj",defaultSelect:"defaultSelect-tMebfShj",defaultSelectItem:"defaultSelectItem-tMebfShj",block:"block-tMebfShj",group:"group-tMebfShj",wrapGroup:"wrapGroup-tMebfShj",textMarkGraphicBlock:"textMarkGraphicBlock-tMebfShj",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-tMebfShj"}},942:e=>{e.exports={scrollable:"scrollable-pm9AiChK"}},84662:e=>{e.exports={defaultsButtonText:"defaultsButtonText-4BZduqY4",defaultsButtonItem:"defaultsButtonItem-4BZduqY4",defaultsButtonIcon:"defaultsButtonIcon-4BZduqY4"}},85623:e=>{e.exports={themesButtonText:"themesButtonText-KBqedPzF",themesButtonIcon:"themesButtonIcon-KBqedPzF",defaultsButtonText:"defaultsButtonText-KBqedPzF",defaultsButtonItem:"defaultsButtonItem-KBqedPzF"}},64886:e=>{e.exports={slider:"slider-Q7h4o6oW",inner:"inner-Q7h4o6oW"}},42545:e=>{e.exports={scrollWrap:"scrollWrap-VabV7Fn8",tabsWrap:"tabsWrap-VabV7Fn8",tabs:"tabs-VabV7Fn8",withoutBorder:"withoutBorder-VabV7Fn8",tab:"tab-VabV7Fn8",withHover:"withHover-VabV7Fn8",headerBottomSeparator:"headerBottomSeparator-VabV7Fn8",fadeWithoutSlider:"fadeWithoutSlider-VabV7Fn8",withBadge:"withBadge-VabV7Fn8"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},84096:(e,t,r)=>{"use strict";r.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>u,MenuItemSwitcher:()=>m});var l=r(59496),n=r(97754),s=r.n(n);const i=(0,l.createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0});var o=r(26390),a=r.n(o);function c(e){const t=(0, -l.useContext)(i),{className:r,intent:s="default",size:o="small",enablePointerOnHover:c=t.enablePointerOnHover,enableActiveStateStyles:p=t.enableActiveStateStyles}=e;return n(r,a().switcher,a()["size-"+o],a()["intent-"+s],!c&&a()["disable-cursor-pointer"],!p&&a()["disable-active-state-styles"])}function p(e){const{reference:t,size:r,intent:n,...s}=e;return l.createElement("div",{className:c(e)},l.createElement("input",{...s,type:"checkbox",className:a().input,ref:t}),l.createElement("div",{className:a()["thumb-wrapper"]},l.createElement("div",{className:a().track}),l.createElement("div",{className:a().thumb})))}var d=r(90186),h=r(31405);const u=h;function m(e){const{className:t,checked:r,id:n,label:i,labelDescription:o,value:a,preventLabelHighlight:c,reference:u,switchReference:m,theme:y=h,disabled:v}=e,g=s()(y.label,r&&!c&&y.labelOn),b=s()(t,y.wrapper,r&&y.wrapperWithOnLabel);return l.createElement("label",{className:b,htmlFor:n,ref:u},l.createElement("div",{className:y.labelRow},l.createElement("div",{className:g},i),o&&l.createElement("div",{className:y.labelHint},o)),l.createElement(p,{disabled:v,className:y.switch,reference:m,checked:r,onChange:function(t){const r=t.target.checked;void 0!==e.onChange&&e.onChange(r)},value:a,tabIndex:-1,id:n,...(0,d.filterDataProps)(e)}))}},80331:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createPropertyPage:()=>s});var l=r(52714),n=r.n(l);function s(e,t,r,l=null){var s;const i={id:t,title:r,definitions:new(n())(e.definitions),visible:null!==(s=e.visible)&&void 0!==s?s:new(n())(!0).readonly()};return null!==l&&(i.icon=l),i}},80975:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getIntervalsVisibilitiesPropertiesDefinitions:()=>ce,getSelectionIntervalsVisibilitiesPropertiesDefinition:()=>pe});var l=r(28353),n=r(24980),s=r(67337),i=r(50366),o=r(52714),a=r.n(o),c=r(9315),p=r(37865),d=r(98222);const h=new n.TranslatedString("change {title} visibility on ticks",(0,l.t)("change {title} visibility on ticks")),u=new n.TranslatedString("change {title} visibility on seconds",(0,l.t)("change {title} visibility on seconds")),m=new n.TranslatedString("change {title} seconds from",(0,l.t)("change {title} seconds from")),y=new n.TranslatedString("change {title} seconds to",(0,l.t)("change {title} seconds to")),v=new n.TranslatedString("change {title} visibility on minutes",(0,l.t)("change {title} visibility on minutes")),g=new n.TranslatedString("change {title} minutes from",(0,l.t)("change {title} minutes from")),b=new n.TranslatedString("change {title} minutes to",(0,l.t)("change {title} minutes to")),f=new n.TranslatedString("change {title} visibility on hours",(0,l.t)("change {title} visibility on hours")),w=new n.TranslatedString("change {title} hours from",(0,l.t)("change {title} hours from")),C=new n.TranslatedString("change {title} hours to",(0,l.t)("change {title} hours to")),S=new n.TranslatedString("change {title} visibility on days",(0,l.t)("change {title} visibility on days")),P=new n.TranslatedString("change {title} days from",(0, -l.t)("change {title} days from")),T=new n.TranslatedString("change {title} days to",(0,l.t)("change {title} days to")),E=new n.TranslatedString("change {title} visibility on weeks",(0,l.t)("change {title} visibility on weeks")),_=new n.TranslatedString("change {title} weeks from",(0,l.t)("change {title} weeks from")),k=new n.TranslatedString("change {title} weeks to",(0,l.t)("change {title} weeks to")),x=new n.TranslatedString("change {title} visibility on months",(0,l.t)("change {title} visibility on months")),I=new n.TranslatedString("change {title} months from",(0,l.t)("change {title} months from")),L=new n.TranslatedString("change {title} months to",(0,l.t)("change {title} months to")),M=(new n.TranslatedString("change {title} visibility on ranges",(0,l.t)("change {title} visibility on ranges")),(0,l.t)("Ticks")),V=(0,l.t)("Seconds"),R=(0,l.t)("Minutes"),B=(0,l.t)("Hours"),D=(0,l.t)("Days"),N=(0,l.t)("Weeks"),W=(0,l.t)("Months"),z=((0,l.t)("Ranges"),new n.TranslatedString("ticks",(0,l.t)("ticks"))),F=new n.TranslatedString("seconds",(0,l.t)("seconds")),A=new n.TranslatedString("seconds from",(0,l.t)("seconds from")),H=new n.TranslatedString("seconds to",(0,l.t)("seconds to")),G=new n.TranslatedString("minutes",(0,l.t)("minutes")),O=new n.TranslatedString("minutes from",(0,l.t)("minutes from")),U=new n.TranslatedString("minutes to",(0,l.t)("minutes to")),j=new n.TranslatedString("hours",(0,l.t)("hours")),K=new n.TranslatedString("hours from",(0,l.t)("hours from")),Z=new n.TranslatedString("hours to",(0,l.t)("hours to")),q=new n.TranslatedString("days",(0,l.t)("days")),Y=new n.TranslatedString("days from",(0,l.t)("days from")),Q=new n.TranslatedString("days to",(0,l.t)("days to")),X=new n.TranslatedString("weeks",(0,l.t)("weeks")),$=new n.TranslatedString("weeks from",(0,l.t)("weeks from")),J=new n.TranslatedString("weeks to",(0,l.t)("weeks to")),ee=new n.TranslatedString("months",(0,l.t)("months")),te=new n.TranslatedString("months from",(0,l.t)("months from")),re=new n.TranslatedString("months to",(0,l.t)("months to")),le=(new n.TranslatedString("ranges",(0,l.t)("ranges")),[1,59]),ne=[1,59],se=[1,24],ie=[1,366],oe=[1,52],ae=[1,12];function ce(e,t,r){const l=[];if(s.enabled("tick_resolution")){const n=(0,i.createCheckablePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.ticks,h.format({title:r}))},{id:"IntervalsVisibilitiesTicks",title:M});l.push(n)}if((0,c.isSecondsEnabled)()){const n=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.seconds,u.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.secondsFrom,m.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.secondsTo,y.format({title:r}))},{id:"IntervalsVisibilitiesSecond",title:V,min:new(a())(le[0]),max:new(a())(le[1])});l.push(n)}const n=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.minutes,v.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.minutesFrom,g.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.minutesTo,b.format({title:r})) -},{id:"IntervalsVisibilitiesMinutes",title:R,min:new(a())(ne[0]),max:new(a())(ne[1])}),o=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.hours,f.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.hoursFrom,w.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.hoursTo,C.format({title:r}))},{id:"IntervalsVisibilitiesHours",title:B,min:new(a())(se[0]),max:new(a())(se[1])}),p=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.days,S.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.daysFrom,P.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.daysTo,T.format({title:r}))},{id:"IntervalsVisibilitiesDays",title:D,min:new(a())(ie[0]),max:new(a())(ie[1])});l.push(n,o,p);const d=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.weeks,E.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.weeksFrom,_.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.weeksTo,k.format({title:r}))},{id:"IntervalsVisibilitiesWeeks",title:N,min:new(a())(oe[0]),max:new(a())(oe[1])}),z=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.months,x.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.monthsFrom,I.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.monthsTo,L.format({title:r}))},{id:"IntervalsVisibilitiesMonths",title:W,min:new(a())(ae[0]),max:new(a())(ae[1])});return l.push(d,z),{definitions:l}}function pe(e,t){const r=[];if(s.enabled("tick_resolution")){const l=(0,i.createCheckablePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.ticks),z,t)},{id:"IntervalsVisibilitiesTicks",title:M});r.push(l)}if((0,c.isSecondsEnabled)()){const l=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.seconds),F,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.secondsFrom),A,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.secondsTo),H,t)},{id:"IntervalsVisibilitiesSecond",title:V,min:new(a())(le[0]),max:new(a())(le[1])});r.push(l)}const l=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutes),G,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutesFrom),O,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutesTo),U,t)},{id:"IntervalsVisibilitiesMinutes",title:R,min:new(a())(ne[0]),max:new(a())(ne[1])}),n=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hours),j,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hoursFrom),K,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hoursTo),Z,t)},{id:"IntervalsVisibilitiesHours",title:B,min:new(a())(se[0]),max:new(a())(se[1])}),o=(0,i.createRangePropertyDefinition)({ -checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.days),q,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.daysFrom),Y,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.daysTo),Q,t)},{id:"IntervalsVisibilitiesDays",title:D,min:new(a())(ie[0]),max:new(a())(ie[1])});r.push(l,n,o);const h=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeks),X,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeksFrom),$,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeksTo),J,t)},{id:"IntervalsVisibilitiesWeeks",title:N,min:new(a())(oe[0]),max:new(a())(oe[1])}),u=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.months),ee,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.monthsFrom),te,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.monthsTo),re,t)},{id:"IntervalsVisibilitiesMonths",title:W,min:new(a())(ae[0]),max:new(a())(ae[1])});return r.push(h,u),{definitions:r}}},98222:(e,t,r)=>{"use strict";r.d(t,{CollectiblePropertyUndoWrapper:()=>c});var l=r(88537),n=r(28353),s=r(24980),i=r(2015),o=r.n(i);const a=new s.TranslatedString("change {propertyName} property",(0,n.t)("change {propertyName} property"));class c extends(o()){constructor(e,t,r){super(),this._isProcess=!1,this._listenersMappers=[],this._valueApplier={applyValue:(e,t)=>{this._propertyApplier.setProperty(e,t,a)}},this._baseProperty=e,this._propertyApplier=r,this._propertyName=t}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(e,t){this._propertyApplier.beginUndoMacro(a.format({propertyName:this._propertyName})),this._isProcess=!0,this._baseProperty.setValue(e,void 0,this._valueApplier),this._isProcess=!1,this._propertyApplier.endUndoMacro(),this._listenersMappers.forEach(e=>{e.method.call(e.obj,this)})}subscribe(e,t){const r=()=>{this._isProcess||t.call(e,this)};this._listenersMappers.push({obj:e,method:t,callback:r}),this._baseProperty.subscribe(e,r)}unsubscribe(e,t){var r;const n=(0,l.ensureDefined)(null===(r=this._listenersMappers.find(r=>r.obj===e&&r.method===t))||void 0===r?void 0:r.callback);this._baseProperty.unsubscribe(e,n)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}},73562:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EditObjectDialogRenderer:()=>er});var l=r(87995),n=r(59496),s=r(88537),i=r(28353),o=r(24980),a=r(11372),c=r(56840),p=r(67337),d=r(76422),h=r(51768),u=r(31807),m=r(34290),y=r(50182),v=r(59064),g=r(86656),b=r(81851),f=r(37289),w=r(14291),C=r(18460),S=r(942);class P extends n.PureComponent{constructor(e){super(e),this._handleClose=e=>{(null==e?void 0:e.target)&&e.target.closest('[data-dialog-name="gopro"]')||this.props.onClose()},this._renderFooterLeft=e=>{const{source:t,model:r}=this.props;if((0,w.isLineTool)(t))return n.createElement(C.FooterMenu,{source:t,model:r});if((0, -b.isStudy)(t))return n.createElement(m.StudyDefaultsManager,{model:r,source:t,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},this._handleSelect=e=>{this.setState({activeTabId:e},()=>{this._requestResize&&this._requestResize()}),this.props.onActiveTabChanged&&this.props.onActiveTabChanged(e)},this._handleScroll=()=>{v.globalCloseDelegate.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()};const{pages:t,initialActiveTab:r}=this.props;this.state={activeTabId:t.allIds.includes(r)?r:t.allIds[0]}}render(){const{title:e,onCancel:t,onClose:r}=this.props,{activeTabId:l}=this.state;return n.createElement(y.AdaptiveConfirmDialog,{dataName:"indicator-properties-dialog",title:e,isOpened:!0,onSubmit:this._handleSubmit,onCancel:t,onClickOutside:this._handleClose,onClose:r,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(l),submitOnEnterKey:!1})}_renderChildren(e){return({requestResize:t})=>{this._requestResize=t;const{pages:r,source:l,model:s}=this.props,i=r.byId[e],o="Component"in i?void 0:i.page;return n.createElement(n.Fragment,null,n.createElement(u.DialogTabs,{activeTabId:e,onSelect:this._handleSelect,tabs:r}),n.createElement(g.TouchScrollContainer,{className:S.scrollable,onScroll:this._handleScroll},"Component"in i?n.createElement(i.Component,{source:l,model:s}):n.createElement(f.PropertiesEditorTab,{page:o,tableKey:e})))}}}var T=r(27423),E=r(56756);class _ extends n.PureComponent{constructor(e){super(e),this._properties=this.props.source.properties(),this._inputs=new E.MetaInfoHelper(this.props.source.metaInfo()).getUserEditableInputs()}render(){return n.createElement(T.InputsTabContent,{property:this._properties,model:this.props.model,study:this.props.source,inputs:this._inputs})}}var k=r(22064),x=r(50993),I=r(67072),L=r.n(I),M=r(87536),V=r(48100),R=r(463);const B=new o.TranslatedString("change visibility",(0,i.t)("change visibility"));class D extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{visible:r}=this.props;r&&(0,R.setPropertyValue)(r,r=>t(r,e,B))}}render(){const{id:e,title:t,visible:r,disabled:l}=this.props,s=(0,a.clean)((0,i.t)(t,{context:"input"}),!0);return n.createElement(V.BoolInputComponent,{label:s,disabled:l,input:{id:e,type:"bool",defval:!0,name:"visible"},value:!r||(0,R.getPropertyValue)(r),onChange:this._onChange})}}D.contextType=M.StylePropertyContext;var N=r(27547),W=r(51613),z=r(84096),F=r(94697),A=r(86891),H=r(84863),G=r(85550),O=r(5377),U=r(76115),j=r(40551),K=r(8273),Z=r(99594),q=r(79142),Y=r(28853);const Q={[x.LineStudyPlotStyle.Line]:{type:x.LineStudyPlotStyle.Line,order:0,icon:A,label:(0,i.t)("Line")},[x.LineStudyPlotStyle.LineWithBreaks]:{type:x.LineStudyPlotStyle.LineWithBreaks,order:1,icon:H,label:(0,i.t)("Line with breaks")},[x.LineStudyPlotStyle.StepLine]:{type:x.LineStudyPlotStyle.StepLine,order:2,icon:G,label:(0,i.t)("Step line")},[x.LineStudyPlotStyle.StepLineWithDiamonds]:{type:x.LineStudyPlotStyle.StepLineWithDiamonds,order:3,icon:O,label:(0, -i.t)("Step line with diamonds")},[x.LineStudyPlotStyle.Histogram]:{type:x.LineStudyPlotStyle.Histogram,order:4,icon:U,label:(0,i.t)("Histogram")},[x.LineStudyPlotStyle.Cross]:{type:x.LineStudyPlotStyle.Cross,order:5,icon:j,label:(0,i.t)("Cross",{context:"chart_type"})},[x.LineStudyPlotStyle.Area]:{type:x.LineStudyPlotStyle.Area,order:6,icon:K,label:(0,i.t)("Area")},[x.LineStudyPlotStyle.AreaWithBreaks]:{type:x.LineStudyPlotStyle.AreaWithBreaks,order:7,icon:Z,label:(0,i.t)("Area with breaks")},[x.LineStudyPlotStyle.Columns]:{type:x.LineStudyPlotStyle.Columns,order:8,icon:q,label:(0,i.t)("Columns")},[x.LineStudyPlotStyle.Circles]:{type:x.LineStudyPlotStyle.Circles,order:9,icon:Y,label:(0,i.t)("Circles")}},X=Object.values(Q).sort((e,t)=>e.order-t.order).map(e=>({value:e.type,selectedContent:n.createElement(F.DisplayItem,{icon:e.icon}),content:n.createElement(F.DropItem,{icon:e.icon,label:e.label})})),$=(0,i.t)("Price line");class J extends n.PureComponent{render(){const{id:e,plotType:t,className:r,priceLine:l,plotTypeChange:s,priceLineChange:i,disabled:o}=this.props;if(!(t in Q))return null;const a={readonly:!0,content:n.createElement(n.Fragment,null,n.createElement(z.MenuItemSwitcher,{id:"PlotTypePriceLineSwitch",checked:l,label:$,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:i}),n.createElement(W.PopupMenuSeparator,null))};return n.createElement(F.IconDropdown,{id:e,disabled:o,className:r,hideArrowButton:!0,items:[a,...X],value:t,onChange:s})}}var ee=r(79946),te=r(20959);const re=new o.TranslatedString("change plot type",(0,i.t)("change plot type")),le=new o.TranslatedString("change price line visibility",(0,i.t)("change price line visibility"));class ne extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{styleProp:{plottype:r}}=this.props;r&&t(r,e,re)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{styleProp:{trackPrice:r}}=this.props;r&&t(r,e,le)}}render(){const{id:e,paletteColor:t,paletteColorProps:r,styleProp:l,isLine:s,hasPlotTypeSelect:o,grouped:a,offset:c}=this.props,p=r.childs();return n.createElement(N.InputRow,{grouped:a,label:n.createElement("div",{className:te.childRowContainer},(0,i.t)(t.name,{context:"input"})),offset:c},n.createElement(ee.ColorWithThicknessSelect,{disabled:!l.visible.value(),color:p.color,transparency:l.transparency,thickness:s?p.width:void 0,isPaletteColor:!0}),s&&o&&l.plottype&&l.trackPrice?n.createElement(J,{id:(0,k.createDomId)(e,"plot-type-select"),disabled:!l.visible.value(),className:te.smallStyleControl,plotType:l.plottype.value(),priceLine:l.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)}}ne.contextType=M.StylePropertyContext;var se=r(35868);class ie extends n.PureComponent{render(){const{plot:e,area:t,palette:r,paletteProps:l,hideVisibilitySwitch:i,styleProp:o,showOnlyTitle:a,showSeparator:c=!0,offset:p}=this.props,d=e?e.id:(0,s.ensureDefined)(t).id,h=!d.startsWith("fill")&&e&&(0,x.isLinePlot)(e) -;return n.createElement(n.Fragment,null,!i&&n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,offset:p},a?n.createElement("div",null,t?t.title:o.title.value()):n.createElement(D,{id:d,title:t?t.title:o.title.value(),visible:o.visible}))),function(e,t,r,l,i,o){const a=t.colors,c=r.colors;return Object.keys(a).map((t,r)=>n.createElement(ne,{key:t,id:e,grouped:!0,paletteColor:(0,s.ensureDefined)(a[t]),paletteColorProps:(0,s.ensureDefined)(c[t]),styleProp:l,isLine:i,hasPlotTypeSelect:0===r,offset:o}))}(d,r,l,o,h,p),c&&n.createElement(se.PropertyTable.GroupSeparator,null))}}ie.contextType=M.StylePropertyContext;var oe=r(50890);const ae=new o.TranslatedString("change plot type",(0,i.t)("change plot type")),ce=new o.TranslatedString("change price line visibility",(0,i.t)("change price line visibility"));class pe extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:r}}=this.props;r&&t(r,e,ae)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{property:{trackPrice:r}}=this.props;r&&t(r,e,ce)}}render(){const{id:e,isRGB:t,isFundamental:r,property:{title:l,color:s,plottype:i,linewidth:o,transparency:a,trackPrice:c,visible:p}}=this.props;return n.createElement(N.InputRow,{label:n.createElement(D,{id:e,title:l.value(),visible:p})},t&&!r?this._getInputForRgb():n.createElement(ee.ColorWithThicknessSelect,{disabled:!p.value(),color:s,transparency:a,thickness:o}),n.createElement(J,{id:(0,k.createDomId)(e,"plot-type-select"),disabled:!p.value(),className:te.smallStyleControl,plotType:i.value(),priceLine:c.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))}_getInputForRgb(){const{id:e,showLineWidth:t,property:r}=this.props,{linewidth:l,visible:s}=r;return l&&t?n.createElement(oe.LineWidthSelect,{id:(0,k.createDomId)(e,"line-width-select"),property:l,disabled:!s.value()}):null}}pe.contextType=M.StylePropertyContext;const de=n.createContext(null);class he extends n.PureComponent{render(){const{id:e,isRGB:t,title:r,visible:l,color:s,transparency:i,thickness:o,children:a,switchable:c=!0,offset:p,grouped:d}=this.props;return n.createElement(N.InputRow,{label:c?n.createElement(D,{id:e,title:r,visible:l}):r,offset:p,grouped:d},t?null:n.createElement(ee.ColorWithThicknessSelect,{disabled:l&&!(Array.isArray(l)?l[0].value():l.value()),color:s,transparency:i,thickness:o}),a)}}he.contextType=M.StylePropertyContext;class ue extends n.PureComponent{render(){const{id:e,isRGB:t,property:{colorup:r,colordown:l,transparency:i,visible:o}}=this.props;return n.createElement(de.Consumer,null,a=>n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(D,{id:e,title:Oe((0,s.ensureNotNull)(a),e),visible:o}))),!t&&n.createElement(n.Fragment,null,n.createElement(he,{id:e,title:We,color:r,transparency:i,visible:o,switchable:!1,offset:!0,grouped:!0 -}),n.createElement(he,{id:e,title:ze,color:l,transparency:i,visible:o,switchable:!1,offset:!0,grouped:!0})),n.createElement(se.PropertyTable.GroupSeparator,null)))}}ue.contextType=M.StylePropertyContext;var me=r(87795),ye=r.n(me),ve=r(97754),ge=r(31261),be=r(45685),fe=r(95936);const we={[fe.MarkLocation.AboveBar]:{value:fe.MarkLocation.AboveBar,content:(0,i.t)("Above bar"),order:0},[fe.MarkLocation.BelowBar]:{value:fe.MarkLocation.BelowBar,content:(0,i.t)("Below bar"),order:1},[fe.MarkLocation.Top]:{value:fe.MarkLocation.Top,content:(0,i.t)("Top"),order:2},[fe.MarkLocation.Bottom]:{value:fe.MarkLocation.Bottom,content:(0,i.t)("Bottom"),order:3},[fe.MarkLocation.Absolute]:{value:fe.MarkLocation.Absolute,content:(0,i.t)("Absolute"),order:4}},Ce=Object.values(we).sort((e,t)=>e.order-t.order);class Se extends n.PureComponent{render(){const{id:e,shapeLocation:t,className:r,menuItemClassName:l,shapeLocationChange:s,disabled:i}=this.props;return n.createElement(be.Select,{id:e,disabled:i,className:r,menuItemClassName:l,items:Ce,value:t,onChange:s})}}const Pe=new o.TranslatedString("change char",(0,i.t)("change char")),Te=new o.TranslatedString("change location",(0,i.t)("change location"));class Ee extends n.PureComponent{constructor(){super(...arguments),this._onCharChange=e=>{const{setValue:t}=this.context,r=e.currentTarget.value.trim(),l=ye()(r),n=0===l.length?"":l[l.length-1],{property:{char:s}}=this.props;t(s,n,Pe)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:r}}=this.props;t(r,e,Te)}}render(){const{id:e,isRGB:t,property:{title:r,color:l,transparency:s,char:i,location:o,visible:a},hasPalette:c}=this.props;return n.createElement(N.InputRow,{grouped:c,label:n.createElement(D,{id:e,title:r.value(),visible:a})},!c&&!t&&n.createElement(ee.ColorWithThicknessSelect,{disabled:!a.value(),color:l,transparency:s}),n.createElement(ge.InputControl,{disabled:!a.value(),className:te.smallStyleControl,value:i.value(),onChange:this._onCharChange}),n.createElement(Se,{id:(0,k.createDomId)(e,"shape-style-select"),disabled:!a.value(),className:ve(te.defaultSelect,te.additionalSelect),menuItemClassName:te.defaultSelectItem,shapeLocation:o.value(),shapeLocationChange:this._onLocationChange}))}}Ee.contextType=M.StylePropertyContext;var _e=r(56138);const ke={arrow_down:r(91596),arrow_up:r(57614),circle:r(6220),cross:r(59903),diamond:r(27708),flag:r(92578),label_down:r(33665),label_up:r(82397),square:r(76046),triangle_down:r(21760),triangle_up:r(653),x_cross:r(18670)};function xe(e){return ke[e]}const Ie=[];Object.keys(_e.plotShapesData).forEach(e=>{const t=_e.plotShapesData[e];Ie.push({id:t.id,value:t.id,selectedContent:n.createElement(F.DisplayItem,{icon:xe(t.icon)}),content:n.createElement(F.DropItem,{icon:xe(t.icon),label:t.guiName})})});class Le extends n.PureComponent{render(){const{id:e,shapeStyleId:t,className:r,shapeStyleChange:l,disabled:s}=this.props;return n.createElement(F.IconDropdown,{id:e,disabled:s,className:r,hideArrowButton:!0,items:Ie,value:t,onChange:l})}} -const Me=new o.TranslatedString("change shape",(0,i.t)("change shape")),Ve=new o.TranslatedString("change location",(0,i.t)("change location"));class Re extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:r}}=this.props;t(r,e,Me)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:r}}=this.props;t(r,e,Ve)}}render(){const{id:e,isRGB:t,hasPalette:r,property:{title:l,color:s,transparency:i,plottype:o,location:a,visible:c}}=this.props;return n.createElement(N.InputRow,{grouped:r,label:n.createElement(D,{id:e,title:l.value(),visible:c})},!r&&!t&&n.createElement(ee.ColorWithThicknessSelect,{disabled:!c.value(),color:s,transparency:i}),n.createElement(Le,{id:(0,k.createDomId)(e,"shape-style-select"),disabled:!c.value(),className:te.smallStyleControl,shapeStyleId:o.value(),shapeStyleChange:this._onPlotTypeChange}),n.createElement(Se,{id:(0,k.createDomId)(e,"shape-location-select"),disabled:!c.value(),className:ve(te.defaultSelect,te.additionalSelect),menuItemClassName:te.defaultSelectItem,shapeLocation:a.value(),shapeLocationChange:this._onLocationChange}))}}Re.contextType=M.StylePropertyContext;var Be=r(98125),De=r(32255);const Ne=(0,Be.getLogger)("Chart.Study.PropertyPage"),We=(0,i.t)("Up"),ze=(0,i.t)("Down"),Fe=(0,i.t)("Body"),Ae=(0,i.t)("Wick"),He=(0,i.t)("Border");class Ge extends n.PureComponent{render(){const{plot:e,palettes:t,study:r}=this.props,l=e.id,s=r.properties().styles[l],i=e.type,o=t.main,a=!!r.metaInfo().isRGB;if("line"===i||"bar_colorer"===i||"bg_colorer"===i)return o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:s}):n.createElement(pe,{id:l,property:s,isRGB:a,isFundamental:!1,showLineWidth:"line"===i});if("arrows"===i){const i=this._getPlotSwitch(l,Oe(r,l),s.visible);if(a)return i;const o=t.up,c=t.down;return o||c?n.createElement(n.Fragment,null,i,o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:{...s,title:(0,De.createPrimitiveProperty)(We)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:We,color:s.colorup,visible:s.visible,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),c&&c.palette&&c.paletteProps?n.createElement(ie,{plot:e,palette:c.palette,paletteProps:c.paletteProps,styleProp:{...s,title:(0,De.createPrimitiveProperty)(ze)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:ze,color:s.colordown,visible:s.visible,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(se.PropertyTable.GroupSeparator,null)):n.createElement(ue,{id:l,property:s,isRGB:a,plot:e,palettes:t,styleProp:s})}if("chars"===i||"shapes"===i)return n.createElement(n.Fragment,null,"chars"===i?n.createElement(Ee,{id:l,property:s,hasPalette:Boolean(o&&o.palette),isRGB:a}):n.createElement(Re,{id:l,property:s,hasPalette:Boolean(o&&o.palette),isRGB:a -}),o&&o.palette&&o.paletteProps&&n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,hideVisibilitySwitch:!0,styleProp:s}));if((0,x.isOhlcPlot)(e)){const s=e.target,i=r.properties().ohlcPlots[s],c=this._getPlotSwitch(l,i.title.value(),i.visible);if(a)return c;const p=t.wick&&t.wick.palette&&t.wick.paletteProps,d=t.border&&t.border.palette&&t.border.paletteProps;return n.createElement(n.Fragment,null,c,o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(Fe)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:Fe,visible:i.visible,color:i.color,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.wick&&t.wick.palette&&t.wick.paletteProps&&n.createElement(ie,{plot:e,palette:t.wick.palette,paletteProps:t.wick.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(Ae)},showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!p&&i.wickColor)&&n.createElement(he,{id:l,isRGB:a,title:Ae,visible:i.visible,color:i.wickColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.border&&t.border.palette&&t.border.paletteProps&&n.createElement(ie,{plot:e,palette:t.border.palette,paletteProps:t.border.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(He)},showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!d&&i.borderColor)&&n.createElement(he,{id:l,isRGB:a,title:He,visible:i.visible,color:i.borderColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(se.PropertyTable.GroupSeparator,null))}return Ne.logError("Unknown plot type: "+i),null}_getPlotSwitch(e,t,r){return n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:e,title:t,visible:r})))}}function Oe(e,t){const r=(0,s.ensureDefined)(e.metaInfo().styles),{title:l}=(0,s.ensureDefined)(r[t]);return(0,s.ensureDefined)(l)}var Ue=r(48948),je=r(53598);const Ke=new o.TranslatedString("change line style",(0,i.t)("change line style"));class Ze extends n.PureComponent{constructor(){super(...arguments),this._onLineStyleChange=e=>{const{setValue:t}=this.context,{lineStyle:r}=this.props;(0,R.setPropertyValue)(r,r=>t(r,e,Ke))}}render(){const{lineStyle:e,...t}=this.props;return n.createElement(je.LineStyleSelect,{...t,lineStyle:(0,R.getPropertyValue)(e),lineStyleChange:this._onLineStyleChange})}}Ze.contextType=M.StylePropertyContext;const qe=new o.TranslatedString("change value",(0,i.t)("change value"));class Ye extends n.PureComponent{constructor(){super(...arguments),this._onValueChange=e=>{const{setValue:t}=this.context,{value:r}=this.props.property;t(r,e,qe)}}render(){const{id:e,property:{name:t,color:r,linestyle:l,linewidth:s,transparency:i,value:o,visible:a}}=this.props;return n.createElement(N.InputRow,{labelAlign:"adaptive",label:n.createElement(D,{id:e,title:t.value(),visible:a})},n.createElement("div",{className:te.block},n.createElement("div",{className:te.group -},n.createElement(ee.ColorWithThicknessSelect,{disabled:!a.value(),color:r,transparency:i,thickness:s}),n.createElement(Ze,{id:(0,k.createDomId)(e,"line-style-select"),disabled:!a.value(),className:te.smallStyleControl,lineStyle:l})),n.createElement("div",{className:ve(te.wrapGroup,te.defaultSelect,te.additionalSelect)},n.createElement(Ue.FloatInputComponent,{input:{id:"",name:"",type:"float",defval:0},value:o.value(),disabled:!a.value(),onChange:this._onValueChange}))))}}Ye.contextType=M.StylePropertyContext;class Qe extends n.PureComponent{render(){const{orders:{visible:e,showLabels:t,showQty:r}}=this.props;return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-switch",title:(0,i.t)("Trades on chart"),visible:e}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-labels-switch",title:(0,i.t)("Signal labels"),visible:t}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-qty-switch",title:(0,i.t)("Quantity"),visible:r}))))}}Qe.contextType=M.StylePropertyContext;var Xe=r(95018),$e=r(26007);const Je=new o.TranslatedString("change percent width",(0,i.t)("change percent width")),et=new o.TranslatedString("change placement",(0,i.t)("change placement")),tt=new o.TranslatedString("change values visibility",(0,i.t)("change values visibility")),rt=[{value:Xe.HHistDirection.LeftToRight,content:(0,i.t)("Left")},{value:Xe.HHistDirection.RightToLeft,content:(0,i.t)("Right")}],lt=(0,i.t)("Width (% of the box)"),nt=(0,i.t)("Placement"),st=(0,i.t)("Values"),it=(0,i.t)("Text color");class ot extends n.PureComponent{constructor(){super(...arguments),this._onPercentWidthChange=e=>{const{setValue:t}=this.context,{percentWidth:r}=this.props.property.childs();t(r,e,Je)},this._onPlacementChange=e=>{const{setValue:t}=this.context,{direction:r}=this.props.property.childs();t(r,e,et)},this._onShowValuesChange=e=>{const{setValue:t}=this.context,{showValues:r}=this.props.property.childs();t(r,e,tt)}}render(){const{title:e,percentWidth:t,direction:r,showValues:l,valuesColor:s,visible:i}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(D,{id:e.value(),title:e.value(),visible:i}))),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},lt),grouped:!0},n.createElement($e.IntegerInputComponent,{input:{id:"",name:"",type:"integer",defval:0},value:t.value(),disabled:!i.value(),onChange:this._onPercentWidthChange})),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},nt),grouped:!0},n.createElement(be.Select,{id:"hhist-graphic-placement-select",disabled:!i.value(),className:te.defaultSelect, -menuItemClassName:te.defaultSelectItem,items:rt,value:r.value(),onChange:this._onPlacementChange})),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{className:te.childRowContainer,placement:"first",colSpan:2,grouped:!0},n.createElement(V.BoolInputComponent,{label:st,input:{id:e.value()+"_showValues",type:"bool",defval:!0,name:"visible"},value:!l||l.value(),disabled:!i.value(),onChange:this._onShowValuesChange}))),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},it),grouped:!0},n.createElement(ee.ColorWithThicknessSelect,{disabled:i&&!i.value(),color:s})),this._renderColors(),n.createElement(se.PropertyTable.GroupSeparator,null))}_renderColors(){const{colors:e,titles:t,transparencies:r,visible:l}=this.props.property.childs();return e.childNames().map(s=>n.createElement(N.InputRow,{key:s,grouped:!0,label:n.createElement("div",{className:te.childRowContainer},t.childs()[s].value())},n.createElement(ee.ColorWithThicknessSelect,{disabled:!l.value(),color:e.childs()[s],transparency:r.childs()[s]})))}}ot.contextType=M.StylePropertyContext;class at extends n.PureComponent{render(){const{title:e}=this.props,{color:t,transparency:r,width:l,style:s,visible:i}=this.props.property.childs();return n.createElement(N.InputRow,{label:n.createElement(D,{id:e.value(),title:e.value(),visible:i})},n.createElement(ee.ColorWithThicknessSelect,{disabled:!i.value(),color:t,transparency:r,thickness:l}),n.createElement(Ze,{id:(0,k.createDomId)(e.value(),"line-style-select"),disabled:!i.value(),className:te.smallStyleControl,lineStyle:s}))}}at.contextType=M.StylePropertyContext;class ct extends n.PureComponent{render(){const{graphicType:e,study:t}=this.props,r=t.metaInfo().graphics,l=t.properties().graphics,i=(0,s.ensureDefined)(r[e]);return Object.keys(i).map((t,r)=>{const s=l[e][t];return"horizlines"===e||"vertlines"===e||"lines"===e?n.createElement(at,{key:t,title:"lines"===e?s.title:s.name,property:s}):"hhists"===e?n.createElement(ot,{key:t,property:s}):null})}}var pt=r(66045);const dt=new o.TranslatedString("change font size",(0,i.t)("change font size")),ht=[10,11,12,14,16,20,24,28,32,40].map(e=>({value:e,title:e.toString()}));class ut extends n.PureComponent{constructor(){super(...arguments),this._onFontSizeChange=e=>{const{setValue:t}=this.context,{fontSize:r}=this.props;t(r,e,dt)}}render(){const{fontSize:e,...t}=this.props;return n.createElement(pt.FontSizeSelect,{...t,fontSizes:ht,fontSize:e.value(),fontSizeChange:this._onFontSizeChange})}}ut.contextType=M.StylePropertyContext;const mt=new o.TranslatedString("change visibility",(0,i.t)("change visibility")),yt=(0,i.t)("Labels font"),vt=(0,i.t)("Labels"),gt={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"])} -;class bt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{levelsStyle:r}=this.props.property.childs(),{showLabels:l}=r.childs();t(l,e,mt)}}render(){const{fontsize:e,levelsStyle:t}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(N.InputRow,{labelAlign:"adaptive",label:n.createElement("span",null,yt)},n.createElement("div",{className:te.block},n.createElement("div",{className:ve(te.wrapGroup,te.additionalSelect)},n.createElement(ut,{id:"pivot-points-standard-font-size-select",fontSize:e})))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(V.BoolInputComponent,{label:vt,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:t.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())}_renderColors(){const{levelsStyle:e,inputs:t}=this.props.property.childs(),{colors:r,widths:l,visibility:i}=e.childs(),{kind:o}=t.childs(),a=(0,s.ensureDefined)(gt[o.value()]);return r.childNames().filter(e=>a.has(e)).map(e=>n.createElement(he,{key:e,id:e,title:e,color:r.childs()[e],visible:i.childs()[e],thickness:l.childs()[e]}))}}bt.contextType=M.StylePropertyContext;const ft=new o.TranslatedString("change visibility",(0,i.t)("change visibility")),wt=(0,i.t)("Volume profile"),Ct=(0,i.t)("Values"),St=(0,i.t)("Width (% of the box)"),Pt=(0,i.t)("Placement"),Tt=(0,i.t)("Developing VA"),Et=(0,i.t)("Values in status line"),_t=(0,i.t)("Labels on price scale"),kt=[{value:Xe.HHistDirection.RightToLeft,content:(0,i.t)("Right")},{value:Xe.HHistDirection.LeftToRight,content:(0,i.t)("Left")}];class xt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this._setHhistsProperty("visible",e)},this._onShowValuesChange=e=>{this._setHhistsProperty("showValues",e)},this._onValueChange=e=>{this._setHhistsProperty("percentWidth",e)},this._onDirectionChange=e=>{this._setHhistsProperty("direction",e)}}render(){var e,t,r,l,o,a;const{metaInfo:c}=this.props,{graphics:p,styles:d,showLabelsOnPriceScale:h,showLegendValues:u}=this.props.property.childs(),{hhists:m,horizlines:y,polygons:v}=p.childs(),g=(0,s.ensureDefined)(c.graphics.hhists),b=Object.keys(g),f=m.childs()[b[0]],w=f.childs().visible,C=b.map(e=>m.childs()[e].childs().showValues),S=f.childs().percentWidth,P=f.childs().direction,T=b.map(e=>m.childs()[e].childs().valuesColor),E=null===(e=y.childs())||void 0===e?void 0:e.vahLines,_=null===(t=c.graphics.horizlines)||void 0===t?void 0:t.vahLines,k=null===(r=y.childs())||void 0===r?void 0:r.valLines,x=null===(l=c.graphics.horizlines)||void 0===l?void 0:l.valLines,I=y.childs().pocLines,L=(0,s.ensureDefined)(null===(o=c.graphics.horizlines)||void 0===o?void 0:o.pocLines),M=d.childs().developingPoc,R=(0,s.ensureDefined)(null===(a=c.styles)||void 0===a?void 0:a.developingPoc),B=d.childs().developingVAHigh,W=d.childs().developingVALow,z=c.graphics.polygons&&c.graphics.polygons.histBoxBg -;return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(V.BoolInputComponent,{label:wt,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:w.value(),onChange:this._onChange}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},n.createElement(V.BoolInputComponent,{disabled:!w.value(),label:Ct,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:C[0].value(),onChange:this._onShowValuesChange}))),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement(ee.ColorWithThicknessSelect,{disabled:!w.value()||!C[0].value(),color:T}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},St)),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement($e.IntegerInputComponent,{disabled:!w.value(),input:{id:"",name:"",type:"integer",defval:0},value:S.value(),onChange:this._onValueChange}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},Pt)),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement(be.Select,{id:"hhist-direction-select",disabled:!w.value(),className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:kt,value:P.value(),onChange:this._onDirectionChange}))),b.map(e=>n.createElement(n.Fragment,{key:e},m.childs()[e].childs().colors.childNames().map((t,r)=>{const l=g[e];return n.createElement(N.InputRow,{key:r,label:n.createElement("div",{className:te.childRowContainer},l&&(0,i.t)(l.titles[r])||"")},n.createElement(ee.ColorWithThicknessSelect,{disabled:!w.value(),color:m.childs()[e].childs().colors.childs()[r],transparency:m.childs()[e].childs().transparencies.childs()[r]}))}))),_&&E&&n.createElement(he,{id:"vahLines",title:_.name,color:E.childs().color,visible:E.childs().visible,thickness:E.childs().width},n.createElement(Ze,{id:"vah-lines-line-style-select",disabled:!E.childs().visible.value(),className:te.smallStyleControl,lineStyle:E.childs().style})),x&&k&&n.createElement(he,{id:"valLines",title:x.name,color:k.childs().color,visible:k.childs().visible,thickness:k.childs().width},n.createElement(Ze,{id:"val-lines-line-style-select",disabled:!k.childs().visible.value(),className:te.smallStyleControl,lineStyle:k.childs().style})),n.createElement(he,{id:"pocLines",title:L.name,color:I.childs().color,visible:I.childs().visible,thickness:I.childs().width},n.createElement(Ze,{id:"poc-lines-line-style-select",disabled:!I.childs().visible.value(),className:te.smallStyleControl,lineStyle:I.childs().style})),M&&n.createElement(he,{id:"developingPoc",title:R.title&&(0,i.t)(R.title)||"",color:M.childs().color,visible:M.childs().visible,thickness:M.childs().linewidth},n.createElement(Ze,{ -id:"developing-poc-line-style-select",disabled:!M.childs().visible.value(),className:te.smallStyleControl,lineStyle:M.childs().linestyle})),B&&W&&n.createElement(he,{id:"developingPoc",title:Tt,color:[B.childs().color,W.childs().color],visible:[B.childs().visible,W.childs().visible],thickness:[B.childs().linewidth,W.childs().linewidth]},n.createElement(Ze,{id:"developing-VA-line-style-select",disabled:!B.childs().visible.value()&&!W.childs().visible.value(),className:te.smallStyleControl,lineStyle:[B.childs().linestyle,W.childs().linestyle]})),v&&n.createElement(N.InputRow,{label:n.createElement("div",null,z&&(0,i.t)(z.name)||"")},n.createElement(ee.ColorWithThicknessSelect,{color:v.childs().histBoxBg.childs().color,transparency:v.childs().histBoxBg.childs().transparency})),"VbPFixed"!==c.shortId&&n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLabelsOnPriceScale",title:_t,visible:h})),n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLegendValues",title:Et,visible:u}))))}_setHhistsProperty(e,t){const{setValue:r}=this.context,{metaInfo:l,property:n}=this.props,i=n.childs().graphics.childs().hhists,o=Object.keys((0,s.ensureDefined)(l.graphics.hhists));for(let l=0;ln.createElement(M.StylePropertyContainer,{property:(0,s.ensureNotNull)(t).properties(),model:e},n.createElement(se.PropertyTable,null,this._renderCustomContent((0,s.ensureNotNull)(t).metaInfo().shortId))))}_renderCustomContent(e){if(e in Mt){const t=Mt[e];return n.createElement(t,null)}return null}}Vt.contextType=Lt.ModelContext;var Rt=r(37701);const Bt=new o.TranslatedString("change precision",(0,i.t)("change precision")),Dt=(0,i.t)("Default"),Nt=(0,i.t)("Precision"),Wt=[{value:"default",content:Dt}];for(let e=0;e<=8;e++)Wt.push({value:e,content:e.toString()});class zt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{precision:r}=this.props;t(r,e,Bt)}}render(){const{id:e,precision:t}=this.props;return n.createElement(N.InputRow,{label:Nt},n.createElement(be.Select,{id:e,className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:Wt,value:t.value(),onChange:this._onChange}))}}zt.contextType=M.StylePropertyContext;const Ft=new o.TranslatedString("change min tick",(0,i.t)("change min tick")),At=(0,i.t)("Default"),Ht=(0,i.t)("Override min tick"),Gt=[{priceScale:1,minMove:1,frac:!1},{priceScale:10, -minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],Ot=[{id:"tick-default",value:"default",content:At}];for(let e=0;e{const{setValue:t}=this.context,{minTick:r}=this.props;t(r,e,Ft)}}render(){const{id:e,minTick:t}=this.props;return n.createElement(N.InputRow,{label:Ht},n.createElement(be.Select,{id:e,className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:Ot,value:t.value(),onChange:this._onChange}))}}Ut.contextType=M.StylePropertyContext;var jt=r(72280),Kt=r(86067);const Zt=(0,i.t)("Outputs");class qt extends n.PureComponent{constructor(){super(...arguments),this._findPlotPalettes=e=>{const{study:t}=this.props,r=t.metaInfo(),l=(0,s.ensureDefined)(r.palettes);return(0,x.isBarColorerPlot)(e)||(0,x.isBgColorerPlot)(e)?{main:{palette:l[e.palette],paletteProps:t.properties().palettes[e.palette]}}:this._findPalettesByTargetId(e.id)}}render(){const{study:e}=this.props,t=e.metaInfo();if((0,Rt.isCustomStudy)(t.shortId))return n.createElement(Vt,null);const r=e.properties(),{precision:l,strategy:s,minTick:i,showLabelsOnPriceScale:o,showLegendValues:a}=r,c=t.plots.length>0,p=t.plots.some(e=>!(0,x.isPlotWithTechnicalValues)(e)),d=c||t.inputs.some(e=>"price"===e.type),h=(0,jt.createAdapter)(e).canOverrideMinTick();return n.createElement(se.PropertyTable,null,this._plotsElement(),this._bandsElement(),this._bandsBackgroundsElement(),this._areasBackgroundsElement(),this._filledAreasElement(),this._graphicsElement(),h&&n.createElement(Ut,{id:(0,k.createDomId)(t.id,"min-tick-select"),minTick:i}),L().isScriptStrategy(t)&&n.createElement(Qe,{orders:s.orders}),(d||p)&&n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.GroupSeparator,{size:1}),n.createElement(Kt.GroupTitleSection,{title:Zt,name:Zt}),d&&n.createElement(zt,{id:(0,k.createDomId)(t.id,"precision-select"),precision:l}),p&&n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLabelsOnPriceScale",title:"Labels on price scale",visible:o})),n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLegendValues",title:"Values in status line",visible:a})))))}_plotsElement(){const{study:e}=this.props,t=e.metaInfo();return new E.MetaInfoHelper(t).getUserEditablePlots().filter(e=>!((0,x.isUpColorerPlot)(e)||(0,x.isDownColorerPlot)(e)||(0, -x.isCandleBorderColorerPlot)(e)||(0,x.isCandleWickColorerPlot)(e))).map(t=>{const r=(0,x.isOhlcPlot)(t)?{...t,id:t.target}:t,l=this._findPlotPalettes(r);return n.createElement(Ge,{key:t.id,plot:t,palettes:l,study:e})})}_bandsElement(){const{study:e}=this.props,t=e.properties(),{bands:r}=t;return r&&r.childNames().map((e,t)=>{const l=r.child(e);if(!l.isHidden||!l.isHidden.value())return n.createElement(Ye,{key:t,id:l.name.value(),property:l})})}_bandsBackgroundsElement(){const{study:e}=this.props,t=e.properties(),{bandsBackground:r}=t;return r&&n.createElement(he,{id:"bandsBackground",title:"Background",visible:r.fillBackground,color:r.backgroundColor,transparency:r.transparency})}_areasBackgroundsElement(){const{study:e}=this.props,t=e.metaInfo(),r=e.properties(),{areaBackground:l}=r;return t.isRGB?null:l&&n.createElement(he,{id:"areaBackground",title:"Background",visible:l.fillBackground,color:l.backgroundColor,transparency:l.transparency})}_filledAreasElement(){const{study:e}=this.props,t=e.metaInfo(),r=t.filledAreas;return!r||t.isRGB?[]:r.map(t=>{if(t.isHidden)return null;const r=e.properties().filledAreasStyle[t.id],l=t.title||"Background";if(t.palette){const e=this._findPalettesByTargetId(t.id),l=(0,s.ensureDefined)(e.main);return n.createElement(ie,{key:t.id,area:t,palette:(0,s.ensureDefined)(l.palette),paletteProps:(0,s.ensureDefined)(l.paletteProps),styleProp:r})}return n.createElement(he,{key:t.id,id:t.id,title:l,color:r.color,visible:r.visible,transparency:r.transparency})})}_graphicsElement(){const{study:e}=this.props,t=e.metaInfo().graphics;return t&&Object.keys(t).map((t,r)=>n.createElement(ct,{key:t,graphicType:t,study:e}))}_findPalettesByTargetId(e){const{study:t}=this.props,r=t.metaInfo(),l=r.plots,n=(0,s.ensureDefined)(r.palettes),i={};for(const r of l)((0,x.isColorerPlot)(r)||(0,x.isOhlcColorerPlot)(r))&&r.target===e&&(i.main={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isUpColorerPlot)(r)&&r.target===e&&(i.up={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isDownColorerPlot)(r)&&r.target===e&&(i.down={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isCandleWickColorerPlot)(r)&&r.target===e&&(i.wick={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isCandleBorderColorerPlot)(r)&&r.target===e&&(i.border={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]});return i}}function Yt(e){return(0,M.bindPropertyContext)(qt,{...e,property:e.study.properties()})}class Qt extends n.PureComponent{render(){return n.createElement(Lt.ModelContext.Provider,{value:this.props.model},n.createElement(de.Provider,{value:this.props.source},n.createElement(Yt,{study:this.props.source})))}}var Xt=r(80331),$t=r(22729),Jt=r(80975);class er extends $t.DialogRenderer{constructor(e,t,r,n){super(),this._timeout=null,this._handleClose=()=>{l.unmountComponentAtNode(this._container),this._setVisibility(!1),this._subscription.unsubscribe(this,this._handleCollectionChanged)},this._handleCancel=()=>{ -this._model.undoToCheckpoint(this._checkpoint)},this._handleSubmit=()=>{},this._handleActiveTabChanged=e=>{c.setValue(this._activeTabSettingsName(),e)},this._source=e,this._model=t,this._propertyPages=n,this._checkpoint=this._ensureCheckpoint(r),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(e={}){if(!p.enabled("property_pages"))return;const t=this._source.metaInfo();if((0,w.isLineTool)(this._source)&&(0,h.trackEvent)("GUI","Drawing Properties",this._source.name()),(0,b.isStudy)(this._source)){const e=!this._source.isPine()||this._source.isStandardPine()?t.description:"Custom Pine";(0,h.trackEvent)("GUI","Study Properties",e)}let r={byId:{inputs:{title:(0,i.t)("Inputs"),Component:_},style:{title:(0,i.t)("Style"),Component:Qt}},allIds:[]};const s=new E.MetaInfoHelper(t);s.hasUserEditableInputs()&&r.allIds.push("inputs"),s.hasUserEditableProperties(),s.hasUserEditableStyles()&&r.allIds.push("style"),this._propertyPages||(r.byId.visibilities={title:(0,i.t)("Visibility"),page:this._createVisibilitiesPropertyPage()},r.allIds.push("visibilities")),r=this._getPagesForStudyLineTool(r);const o=e.initialTab||c.getValue(this._activeTabSettingsName())||"inputs";let u=(0,a.clean)(t.shortDescription,!0);l.render(n.createElement(P,{title:u,model:this._model,source:this._source,initialActiveTab:r.allIds.includes(o)?o:r.allIds[0],pages:r,onSubmit:this._handleSubmit,onCancel:this._handleCancel,onClose:this._handleClose,onActiveTabChanged:this._handleActiveTabChanged}),this._container),this._setVisibility(!0),d.emit("edit_object_dialog",{objectType:"study",scriptTitle:this._source.title()})}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,Xt.createPropertyPage)((0,Jt.getIntervalsVisibilitiesPropertiesDefinitions)(this._model,e,new o.TranslatedString(this._source.name(!0),this._source.title(!0))),"visibility",(0,i.t)("Visibility"))}_activeTabSettingsName(){return"properties_dialog.active_tab.study"}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}_getPagesForStudyLineTool(e){if(this._propertyPages){const t=this._propertyPages.filter(e=>"coordinates"===e.id||"visibility"===e.id),r={allIds:t.map(e=>e.id),byId:t.reduce((e,t)=>({...e,[t.id]:{title:t.title,page:t}}),{})};return{allIds:[...e.allIds,...r.allIds],byId:{...e.byId,...r.byId}}}return e}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout(()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null}))}_closeDialogIfSourceIsDeleted(){null===this._model.model().dataSourceForId(this._source.id())&&this._handleClose()}}},34290:(e,t,r)=>{"use strict";r.d(t,{StudyDefaultsManager:()=>u});var l=r(59496),n=r(97754),s=r.n(n),i=r(9745),o=r(28353),a=r(95276),c=r(16396),p=r(31328),d=r(84662);const h={reset:(0,o.t)("Reset settings"),saveAsDefault:(0,o.t)("Save as default"), -defaults:(0,o.t)("Defaults")};class u extends l.PureComponent{constructor(){super(...arguments),this._handleResetToDefaults=()=>{this.props.model.restorePropertiesForSource(this.props.source)},this._handleSaveAsDefaults=()=>{this.props.source.properties().saveDefaults()}}render(){const{mode:e}=this.props;return l.createElement(a.ControlDisclosure,{id:"study-defaults-manager",className:s()("normal"===e&&d.defaultsButtonText),hideArrowButton:"compact"===e,buttonChildren:this._getPlaceHolderItem("compact"===e)},l.createElement(c.PopupMenuItem,{className:d.defaultsButtonItem,isActive:!1,label:h.reset,onClick:this._handleResetToDefaults}),l.createElement(c.PopupMenuItem,{className:d.defaultsButtonItem,isActive:!1,label:h.saveAsDefault,onClick:this._handleSaveAsDefaults}))}_getPlaceHolderItem(e){return e?l.createElement(i.Icon,{className:d.defaultsButtonIcon,icon:p}):h.defaults}}},95275:(e,t,r)=>{"use strict";r.d(t,{FooterMenu:()=>d});var l=r(59496),n=r(28353),s=r(9745),i=r(95276),o=r(90692),a=r(85623),c=r(31328);function p(e){return e.isTabletWidth?l.createElement(s.Icon,{className:a.themesButtonIcon,icon:c}):l.createElement(l.Fragment,null,(0,n.t)("Template"))}function d(e){return l.createElement(o.MatchMedia,{rule:"screen and (max-width: 768px)"},t=>l.createElement(i.ControlDisclosure,{className:!t&&a.themesButtonText,hideArrowButton:t,buttonChildren:l.createElement(p,{isTabletWidth:t})},e.children))}},44e3:(e,t,r)=>{"use strict";r.d(t,{TemplateMenuItem:()=>c});var l=r(59496),n=r(16396),s=r(96040),i=r(70412),o=r(32563),a=r(85623);function c(e){const{name:t,onRemove:r,onClick:c}=e,[p,d]=(0,i.useHover)(),h=l.useCallback(()=>c(t),[c,t]),u=l.useCallback(()=>{r&&r(t)},[r,t]);return l.createElement("div",{...d},l.createElement(n.PopupMenuItem,{className:a.defaultsButtonItem,isActive:!1,label:t,onClick:h,toolbox:r&&l.createElement(s.RemoveButton,{hidden:!o.mobiletouch&&!p,onClick:u})}))}},37289:(e,t,r)=>{"use strict";r.d(t,{PropertiesEditorTab:()=>c});var l=r(59496),n=r(66849);const s={"Elliott Impulse Wave (12345)Degree":"normal","Elliott Triangle Wave (ABCDE)Degree":"normal","Elliott Triple Combo Wave (WXYXZ)Degree":"normal","Elliott Correction Wave (ABC)Degree":"normal","Elliott Double Combo Wave (WXY)Degree":"normal",BarsPatternMode:"normal",StudyInputSource:"normal"},i={TextText:"big",AnchoredTextText:"big",NoteText:"big",AnchoredNoteText:"big",CalloutText:"big",BalloonText:"big"};var o=r(35868),a=r(90545);function c(e){const{page:t,pageRef:r,tableKey:c}=e;return l.createElement(n.ControlCustomHeightContext.Provider,{value:i},l.createElement(n.ControlCustomWidthContext.Provider,{value:s},t&&l.createElement(o.PropertyTable,{reference:r,key:c},t.definitions.value().map(e=>l.createElement(a.Section,{key:e.id,definition:e})))))}},18460:(e,t,r)=>{"use strict";r.d(t,{FooterMenu:()=>a});var l=r(59496),n=(r(79049),r(28353)),s=r(95275),i=r(44e3);function o(e){const{model:t,source:r}=e;return l.createElement(s.FooterMenu,null,l.createElement(i.TemplateMenuItem,{onClick:function(){t.restorePropertiesForSource(r)},name:(0, -n.t)("Apply Defaults")}))}function a(e){return l.createElement(o,{...e})}},31807:(e,t,r)=>{"use strict";r.d(t,{DialogTabs:()=>m});var l=r(59496),n=r(97754),s=r(64205),i=r(40173),o=r(64886);const a=(0,i.mergeThemes)(s.DEFAULT_SLIDER_THEME,o);var c=r(39440),p=r(32563),d=r(42545);const h=d,u=(0,s.factory)((function(e){return l.createElement("div",{className:a.slider,ref:e.reference},l.createElement("div",{className:a.inner}))}));class m extends l.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=h,hiddenBottomBorders:t,fadedSlider:r=!0,ScrollComponent:s=c.HorizontalScroll}=this.props,i=this._generateDialogTabs();return l.createElement("div",{className:n(e.scrollWrap)},!t&&l.createElement("div",{className:e.headerBottomSeparator}),l.createElement(s,{isVisibleFade:p.mobiletouch,isVisibleButtons:!p.mobiletouch,isVisibleScrollbar:!1,fadeClassName:n({[e.fadeWithoutSlider]:!r})},l.createElement("div",{className:e.tabsWrap},l.createElement(u,{className:n(e.tabs,t&&e.withoutBorder)},i))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:r=h}=this.props;return t.allIds.map(i=>{const o=e===i,a=t.byId[i].withNotificationsBadge;return l.createElement(s.SliderItem,{key:i,value:i,className:n(r.tab,!o&&r.withHover,a&&d.withBadge),isActive:o,onClick:this._createClickHandler(i)},t.byId[i].title)})}}},39440:(e,t,r)=>{"use strict";r.d(t,{HorizontalScroll:()=>f});var l=r(59496),n=r(97754),s=r(9837),i=r(88537),o=r(9745),a=r(59199),c=r(68587),p=r(62820),d=r(33086),h=r(41814);const u={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function m(e){return l.createElement("div",{className:n(h.fadeLeft,e.className,{[h.isVisible]:e.isVisible})})}function y(e){return l.createElement("div",{className:n(h.fadeRight,e.className,{[h.isVisible]:e.isVisible})})}function v(e){return l.createElement(b,{...e,className:h.scrollLeft})}function g(e){return l.createElement(b,{...e,className:h.scrollRight})}function b(e){return l.createElement("div",{className:n(e.className,{[h.isVisible]:e.isVisible}),onClick:e.onClick},l.createElement("div",{className:h.iconWrap},l.createElement(o.Icon,{icon:d,className:h.icon})))}const f=function(e=v,t=g,r=m,o=y){var d;return(d=class extends l.PureComponent{constructor(e){super(e),this._scroll=l.createRef(),this._wrapMeasureRef=l.createRef(),this._contentMeasureRef=l.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()}, -this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:r}=this.props;t&&r?this.setState({widthContent:e.width+2*r}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,r=this.isAtLeft(),l=this.isAtRight();r||e?r&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),l||t?l&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,p.isRtl)()?(0,p.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,i.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,i.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const r=this._scroll.current;r&&((0,p.isRtl)()&&(e=(0,p.getLTRScrollLeftOffset)(r,e)),t<=0?r.scrollLeft=Math.round(e):(0,a.doAnimate)({onStep(e,t){r.scrollLeft=Math.round(t)},from:r.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:i,isVisibleScrollbar:a,isVisibleFade:c,isVisibleButtons:p,shouldMeasure:d,shouldDecreaseWidthContent:u,buttonsWidthIfDecreasedWidthContent:m,onMouseOver:y,onMouseOut:v,scrollWrapClassName:g,fadeClassName:b}=this.props,{isVisibleRightButton:f,isVisibleLeftButton:w}=this.state,C=u&&m;return l.createElement(s,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:d,ref:this._wrapMeasureRef},l.createElement("div",{className:h.wrapOverflow,onMouseOver:y,onMouseOut:v},l.createElement("div",{className:n(h.wrap,C?h.wrapWithArrowsOuting:"")},l.createElement("div",{className:n(h.scrollWrap,g,{[h.noScrollBar]:!a}),onScroll:this._handleScroll,ref:this._scroll},l.createElement(s,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:d,ref:this._contentMeasureRef},i)),c&&l.createElement(r,{isVisible:w,className:b}),c&&l.createElement(o,{isVisible:f,className:b}),p&&l.createElement(e,{onClick:this._handleScrollLeft,isVisible:w}),p&&l.createElement(t,{onClick:this._handleScrollRight,isVisible:f}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=u,d}(v,g,m,y)},51613:(e,t,r)=>{"use strict";r.d(t,{PopupMenuSeparator:()=>o}) -;var l=r(59496),n=r(97754),s=r.n(n),i=r(524);function o(e){const{size:t="normal",className:r}=e;return l.createElement("div",{className:s()(i.separator,"small"===t&&i.small,"normal"===t&&i.normal,"large"===t&&i.large,r)})}},64205:(e,t,r)=>{"use strict";r.d(t,{DEFAULT_SLIDER_THEME:()=>o,SliderItem:()=>a,factory:()=>c});var l=r(59496),n=r(97754),s=r(88537),i=r(37740);const o=i;function a(e){const t=n(e.className,i.tab,{[i.active]:e.isActive,[i.disabled]:e.isDisabled,[i.defaultCursor]:!!e.shouldUseDefaultCursor,[i.noBorder]:!!e.noBorder});return l.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends l.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,s.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,r=this._generateTabs();return l.createElement("div",{className:n(t,i.tabs),"data-name":this.props["data-name"]},r,l.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,l.Children.map(this.props.children,e=>{const t=e,r=Boolean(t.props.isActive),n={reference:e=>{r&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return l.cloneElement(t,n)})}_componentDidUpdate(){const e=(0,s.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,r=this.activeTab.current.offsetLeft;e.transform=`translateX(${r}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return l.createElement("div",{className:i.slider,ref:e.reference})}))},33086:e=>{e.exports=''},91596:e=>{e.exports=''},57614:e=>{e.exports=''},6220:e=>{e.exports=''},59903:e=>{e.exports=''},27708:e=>{e.exports=''},92578:e=>{ -e.exports=''},33665:e=>{e.exports=''},82397:e=>{e.exports=''},76046:e=>{e.exports=''},21760:e=>{e.exports=''},653:e=>{e.exports=''},18670:e=>{e.exports=''},99594:e=>{e.exports=''},8273:e=>{e.exports=''},28853:e=>{e.exports=''},79142:e=>{e.exports=''},40551:e=>{e.exports=''},76115:e=>{e.exports=''},84863:e=>{ -e.exports=''},86891:e=>{e.exports=''},5377:e=>{e.exports=''},85550:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/new-edit-object-dialog.fb0b794a73b3e6d05f6b.js b/charting_library/bundles/new-edit-object-dialog.fb0b794a73b3e6d05f6b.js new file mode 100644 index 00000000..b3908e22 --- /dev/null +++ b/charting_library/bundles/new-edit-object-dialog.fb0b794a73b3e6d05f6b.js @@ -0,0 +1,25 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6265],{26390:e=>{e.exports={switcher:"switcher-GT7Z98Io","disable-cursor-pointer":"disable-cursor-pointer-GT7Z98Io",input:"input-GT7Z98Io","thumb-wrapper":"thumb-wrapper-GT7Z98Io","size-small":"size-small-GT7Z98Io","size-large":"size-large-GT7Z98Io","intent-default":"intent-default-GT7Z98Io","disable-active-state-styles":"disable-active-state-styles-GT7Z98Io","intent-select":"intent-select-GT7Z98Io",track:"track-GT7Z98Io",thumb:"thumb-GT7Z98Io"}},31405:e=>{e.exports={wrapper:"wrapper-IbP2mmCe",hovered:"hovered-IbP2mmCe",labelRow:"labelRow-IbP2mmCe",label:"label-IbP2mmCe",labelHint:"labelHint-IbP2mmCe",labelOn:"labelOn-IbP2mmCe"}},20959:e=>{e.exports={smallStyleControl:"smallStyleControl-tMebfShj",additionalSelect:"additionalSelect-tMebfShj",childRowContainer:"childRowContainer-tMebfShj",defaultSelect:"defaultSelect-tMebfShj",defaultSelectItem:"defaultSelectItem-tMebfShj",block:"block-tMebfShj",group:"group-tMebfShj",wrapGroup:"wrapGroup-tMebfShj",textMarkGraphicBlock:"textMarkGraphicBlock-tMebfShj",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-tMebfShj"}},942:e=>{e.exports={scrollable:"scrollable-pm9AiChK"}},84662:e=>{e.exports={defaultsButtonText:"defaultsButtonText-4BZduqY4",defaultsButtonItem:"defaultsButtonItem-4BZduqY4",defaultsButtonIcon:"defaultsButtonIcon-4BZduqY4"}},85623:e=>{e.exports={themesButtonText:"themesButtonText-KBqedPzF",themesButtonIcon:"themesButtonIcon-KBqedPzF",defaultsButtonText:"defaultsButtonText-KBqedPzF",defaultsButtonItem:"defaultsButtonItem-KBqedPzF"}},64886:e=>{e.exports={slider:"slider-Q7h4o6oW",inner:"inner-Q7h4o6oW"}},42545:e=>{e.exports={scrollWrap:"scrollWrap-VabV7Fn8",tabsWrap:"tabsWrap-VabV7Fn8",tabs:"tabs-VabV7Fn8",withoutBorder:"withoutBorder-VabV7Fn8",tab:"tab-VabV7Fn8",withHover:"withHover-VabV7Fn8",headerBottomSeparator:"headerBottomSeparator-VabV7Fn8",fadeWithoutSlider:"fadeWithoutSlider-VabV7Fn8",withBadge:"withBadge-VabV7Fn8"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},17946:(e,t,r)=>{"use strict";r.d(t,{CustomBehaviourContext:()=>l,presetDefault:()=>n,presetPlatform:()=>s});const l=(0,r(59496).createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0}),n={enableActiveStateStyles:!0,enablePointerOnHover:!0},s={enableActiveStateStyles:!1,enablePointerOnHover:!1}}, +17290:(e,t,r)=>{"use strict";r.d(t,{Switch:()=>c});var l=r(59496),n=r(97754),s=r(17946),i=r(26390),o=r.n(i);function a(e){const t=(0,l.useContext)(s.CustomBehaviourContext),{className:r,intent:i="default",size:a="small",enablePointerOnHover:c=t.enablePointerOnHover,enableActiveStateStyles:p=t.enableActiveStateStyles}=e;return n(r,o().switcher,o()["size-"+a],o()["intent-"+i],!c&&o()["disable-cursor-pointer"],!p&&o()["disable-active-state-styles"])}function c(e){const{reference:t,size:r,intent:n,...s}=e;return l.createElement("div",{className:a(e)},l.createElement("input",{...s,type:"checkbox",className:o().input,ref:t}),l.createElement("div",{className:o()["thumb-wrapper"]},l.createElement("div",{className:o().track}),l.createElement("div",{className:o().thumb})))}},59918:(e,t,r)=>{"use strict";r.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>c,MenuItemSwitcher:()=>p});var l=r(59496),n=r(97754),s=r.n(n),i=r(17290),o=r(90186),a=r(31405);const c=a;function p(e){const{className:t,checked:r,id:n,label:c,labelDescription:p,value:d,preventLabelHighlight:h,reference:u,switchReference:m,theme:v=a,disabled:y}=e,g=s()(v.label,r&&!h&&v.labelOn),b=s()(t,v.wrapper,r&&v.wrapperWithOnLabel);return l.createElement("label",{className:b,htmlFor:n,ref:u},l.createElement("div",{className:v.labelRow},l.createElement("div",{className:g},c),p&&l.createElement("div",{className:v.labelHint},p)),l.createElement(i.Switch,{disabled:y,className:v.switch,reference:m,checked:r,onChange:function(t){const r=t.target.checked;void 0!==e.onChange&&e.onChange(r)},value:d,tabIndex:-1,id:n,...(0,o.filterDataProps)(e)}))}},80331:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createPropertyPage:()=>s});var l=r(52714),n=r.n(l);function s(e,t,r,l=null){var s;const i={id:t,title:r,definitions:new(n())(e.definitions),visible:null!==(s=e.visible)&&void 0!==s?s:new(n())(!0).readonly()};return null!==l&&(i.icon=l),i}},80975:(e,t,r)=>{"use strict";r.r(t),r.d(t,{getIntervalsVisibilitiesPropertiesDefinitions:()=>ce,getSelectionIntervalsVisibilitiesPropertiesDefinition:()=>pe});var l=r(28353),n=r(24980),s=r(67337),i=r(50366),o=r(52714),a=r.n(o),c=r(9315),p=r(37865),d=r(98222);const h=new n.TranslatedString("change {title} visibility on ticks",(0,l.t)("change {title} visibility on ticks")),u=new n.TranslatedString("change {title} visibility on seconds",(0,l.t)("change {title} visibility on seconds")),m=new n.TranslatedString("change {title} seconds from",(0,l.t)("change {title} seconds from")),v=new n.TranslatedString("change {title} seconds to",(0,l.t)("change {title} seconds to")),y=new n.TranslatedString("change {title} visibility on minutes",(0,l.t)("change {title} visibility on minutes")),g=new n.TranslatedString("change {title} minutes from",(0,l.t)("change {title} minutes from")),b=new n.TranslatedString("change {title} minutes to",(0,l.t)("change {title} minutes to")),f=new n.TranslatedString("change {title} visibility on hours",(0,l.t)("change {title} visibility on hours")),w=new n.TranslatedString("change {title} hours from",(0, +l.t)("change {title} hours from")),C=new n.TranslatedString("change {title} hours to",(0,l.t)("change {title} hours to")),S=new n.TranslatedString("change {title} visibility on days",(0,l.t)("change {title} visibility on days")),P=new n.TranslatedString("change {title} days from",(0,l.t)("change {title} days from")),T=new n.TranslatedString("change {title} days to",(0,l.t)("change {title} days to")),E=new n.TranslatedString("change {title} visibility on weeks",(0,l.t)("change {title} visibility on weeks")),_=new n.TranslatedString("change {title} weeks from",(0,l.t)("change {title} weeks from")),k=new n.TranslatedString("change {title} weeks to",(0,l.t)("change {title} weeks to")),x=new n.TranslatedString("change {title} visibility on months",(0,l.t)("change {title} visibility on months")),I=new n.TranslatedString("change {title} months from",(0,l.t)("change {title} months from")),L=new n.TranslatedString("change {title} months to",(0,l.t)("change {title} months to")),M=(new n.TranslatedString("change {title} visibility on ranges",(0,l.t)("change {title} visibility on ranges")),(0,l.t)("Ticks")),V=(0,l.t)("Seconds"),R=(0,l.t)("Minutes"),B=(0,l.t)("Hours"),D=(0,l.t)("Days"),N=(0,l.t)("Weeks"),W=(0,l.t)("Months"),z=((0,l.t)("Ranges"),new n.TranslatedString("ticks",(0,l.t)("ticks"))),F=new n.TranslatedString("seconds",(0,l.t)("seconds")),A=new n.TranslatedString("seconds from",(0,l.t)("seconds from")),H=new n.TranslatedString("seconds to",(0,l.t)("seconds to")),O=new n.TranslatedString("minutes",(0,l.t)("minutes")),G=new n.TranslatedString("minutes from",(0,l.t)("minutes from")),U=new n.TranslatedString("minutes to",(0,l.t)("minutes to")),j=new n.TranslatedString("hours",(0,l.t)("hours")),K=new n.TranslatedString("hours from",(0,l.t)("hours from")),Z=new n.TranslatedString("hours to",(0,l.t)("hours to")),q=new n.TranslatedString("days",(0,l.t)("days")),Y=new n.TranslatedString("days from",(0,l.t)("days from")),Q=new n.TranslatedString("days to",(0,l.t)("days to")),X=new n.TranslatedString("weeks",(0,l.t)("weeks")),$=new n.TranslatedString("weeks from",(0,l.t)("weeks from")),J=new n.TranslatedString("weeks to",(0,l.t)("weeks to")),ee=new n.TranslatedString("months",(0,l.t)("months")),te=new n.TranslatedString("months from",(0,l.t)("months from")),re=new n.TranslatedString("months to",(0,l.t)("months to")),le=(new n.TranslatedString("ranges",(0,l.t)("ranges")),[1,59]),ne=[1,59],se=[1,24],ie=[1,366],oe=[1,52],ae=[1,12];function ce(e,t,r){const l=[];if(s.enabled("tick_resolution")){const n=(0,i.createCheckablePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.ticks,h.format({title:r}))},{id:"IntervalsVisibilitiesTicks",title:M});l.push(n)}if((0,c.isSecondsEnabled)()){const n=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.seconds,u.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.secondsFrom,m.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.secondsTo,v.format({title:r}))},{id:"IntervalsVisibilitiesSecond",title:V,min:new(a())(le[0]), +max:new(a())(le[1])});l.push(n)}const n=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.minutes,y.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.minutesFrom,g.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.minutesTo,b.format({title:r}))},{id:"IntervalsVisibilitiesMinutes",title:R,min:new(a())(ne[0]),max:new(a())(ne[1])}),o=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.hours,f.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.hoursFrom,w.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.hoursTo,C.format({title:r}))},{id:"IntervalsVisibilitiesHours",title:B,min:new(a())(se[0]),max:new(a())(se[1])}),p=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.days,S.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.daysFrom,P.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.daysTo,T.format({title:r}))},{id:"IntervalsVisibilitiesDays",title:D,min:new(a())(ie[0]),max:new(a())(ie[1])});l.push(n,o,p);const d=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.weeks,E.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.weeksFrom,_.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.weeksTo,k.format({title:r}))},{id:"IntervalsVisibilitiesWeeks",title:N,min:new(a())(oe[0]),max:new(a())(oe[1])}),z=(0,i.createRangePropertyDefinition)({checked:(0,i.convertToDefinitionProperty)(e,t.months,x.format({title:r})),from:(0,i.convertToDefinitionProperty)(e,t.monthsFrom,I.format({title:r})),to:(0,i.convertToDefinitionProperty)(e,t.monthsTo,L.format({title:r}))},{id:"IntervalsVisibilitiesMonths",title:W,min:new(a())(ae[0]),max:new(a())(ae[1])});return l.push(d,z),{definitions:l}}function pe(e,t){const r=[];if(s.enabled("tick_resolution")){const l=(0,i.createCheckablePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.ticks),z,t)},{id:"IntervalsVisibilitiesTicks",title:M});r.push(l)}if((0,c.isSecondsEnabled)()){const l=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.seconds),F,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.secondsFrom),A,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.secondsTo),H,t)},{id:"IntervalsVisibilitiesSecond",title:V,min:new(a())(le[0]),max:new(a())(le[1])});r.push(l)}const l=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutes),O,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutesFrom),G,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.minutesTo),U,t)},{id:"IntervalsVisibilitiesMinutes",title:R,min:new(a())(ne[0]),max:new(a())(ne[1])}),n=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hours),j,t), +from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hoursFrom),K,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.hoursTo),Z,t)},{id:"IntervalsVisibilitiesHours",title:B,min:new(a())(se[0]),max:new(a())(se[1])}),o=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.days),q,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.daysFrom),Y,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.daysTo),Q,t)},{id:"IntervalsVisibilitiesDays",title:D,min:new(a())(ie[0]),max:new(a())(ie[1])});r.push(l,n,o);const h=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeks),X,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeksFrom),$,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.weeksTo),J,t)},{id:"IntervalsVisibilitiesWeeks",title:N,min:new(a())(oe[0]),max:new(a())(oe[1])}),u=(0,i.createRangePropertyDefinition)({checked:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.months),ee,t),from:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.monthsFrom),te,t),to:new d.CollectiblePropertyUndoWrapper(new p.LineToolCollectedProperty(e.monthsTo),re,t)},{id:"IntervalsVisibilitiesMonths",title:W,min:new(a())(ae[0]),max:new(a())(ae[1])});return r.push(h,u),{definitions:r}}},98222:(e,t,r)=>{"use strict";r.d(t,{CollectiblePropertyUndoWrapper:()=>c});var l=r(88537),n=r(28353),s=r(24980),i=r(2015),o=r.n(i);const a=new s.TranslatedString("change {propertyName} property",(0,n.t)("change {propertyName} property"));class c extends(o()){constructor(e,t,r){super(),this._isProcess=!1,this._listenersMappers=[],this._valueApplier={applyValue:(e,t)=>{this._propertyApplier.setProperty(e,t,a)}},this._baseProperty=e,this._propertyApplier=r,this._propertyName=t}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(e,t){this._propertyApplier.beginUndoMacro(a.format({propertyName:this._propertyName})),this._isProcess=!0,this._baseProperty.setValue(e,void 0,this._valueApplier),this._isProcess=!1,this._propertyApplier.endUndoMacro(),this._listenersMappers.forEach(e=>{e.method.call(e.obj,this)})}subscribe(e,t){const r=()=>{this._isProcess||t.call(e,this)};this._listenersMappers.push({obj:e,method:t,callback:r}),this._baseProperty.subscribe(e,r)}unsubscribe(e,t){var r;const n=(0,l.ensureDefined)(null===(r=this._listenersMappers.find(r=>r.obj===e&&r.method===t))||void 0===r?void 0:r.callback);this._baseProperty.unsubscribe(e,n)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}},73562:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EditObjectDialogRenderer:()=>er});var l=r(87995),n=r(59496),s=r(88537),i=r(28353),o=r(24980),a=r(11372),c=r(56840),p=r(67337),d=r(76422),h=r(51768),u=r(31807),m=r(34290),v=r(50182),y=r(59064),g=r(86656),b=r(81851),f=r(37289),w=r(14291),C=r(18460),S=r(942) +;class P extends n.PureComponent{constructor(e){super(e),this._handleClose=e=>{(null==e?void 0:e.target)&&e.target.closest('[data-dialog-name="gopro"]')||this.props.onClose()},this._renderFooterLeft=e=>{const{source:t,model:r}=this.props;if((0,w.isLineTool)(t))return n.createElement(C.FooterMenu,{source:t,model:r});if((0,b.isStudy)(t))return n.createElement(m.StudyDefaultsManager,{model:r,source:t,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},this._handleSelect=e=>{this.setState({activeTabId:e},()=>{this._requestResize&&this._requestResize()}),this.props.onActiveTabChanged&&this.props.onActiveTabChanged(e)},this._handleScroll=()=>{y.globalCloseDelegate.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()};const{pages:t,initialActiveTab:r}=this.props;this.state={activeTabId:t.allIds.includes(r)?r:t.allIds[0]}}render(){const{title:e,onCancel:t,onClose:r}=this.props,{activeTabId:l}=this.state;return n.createElement(v.AdaptiveConfirmDialog,{dataName:"indicator-properties-dialog",title:e,isOpened:!0,onSubmit:this._handleSubmit,onCancel:t,onClickOutside:this._handleClose,onClose:r,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(l),submitOnEnterKey:!1})}_renderChildren(e){return({requestResize:t})=>{this._requestResize=t;const{pages:r,source:l,model:s}=this.props,i=r.byId[e],o="Component"in i?void 0:i.page;return n.createElement(n.Fragment,null,n.createElement(u.DialogTabs,{activeTabId:e,onSelect:this._handleSelect,tabs:r}),n.createElement(g.TouchScrollContainer,{className:S.scrollable,onScroll:this._handleScroll},"Component"in i?n.createElement(i.Component,{source:l,model:s}):n.createElement(f.PropertiesEditorTab,{page:o,tableKey:e})))}}}var T=r(22855),E=r(56756);class _ extends n.PureComponent{constructor(e){super(e),this._properties=this.props.source.properties(),this._inputs=new E.MetaInfoHelper(this.props.source.metaInfo()).getUserEditableInputs()}render(){return n.createElement(T.InputsTabContent,{property:this._properties,model:this.props.model,study:this.props.source,inputs:this._inputs})}}var k=r(22064),x=r(50993),I=r(67072),L=r.n(I),M=r(87536),V=r(48100),R=r(463);const B=new o.TranslatedString("change visibility",(0,i.t)("change visibility"));class D extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{visible:r}=this.props;r&&(0,R.setPropertyValue)(r,r=>t(r,e,B))}}render(){const{id:e,title:t,visible:r,disabled:l}=this.props,s=(0,a.clean)((0,i.t)(t,{context:"input"}),!0);return n.createElement(V.BoolInputComponent,{label:s,disabled:l,input:{id:e,type:"bool",defval:!0,name:"visible"},value:!r||(0,R.getPropertyValue)(r),onChange:this._onChange})}}D.contextType=M.StylePropertyContext;var N=r(27547),W=r(51613),z=r(59918),F=r(94697),A=r(86891),H=r(84863),O=r(85550),G=r(5377),U=r(76115),j=r(40551),K=r(8273),Z=r(99594),q=r(79142),Y=r(28853);const Q={[x.LineStudyPlotStyle.Line]:{type:x.LineStudyPlotStyle.Line,order:0,icon:A,label:(0,i.t)("Line")},[x.LineStudyPlotStyle.LineWithBreaks]:{ +type:x.LineStudyPlotStyle.LineWithBreaks,order:1,icon:H,label:(0,i.t)("Line with breaks")},[x.LineStudyPlotStyle.StepLine]:{type:x.LineStudyPlotStyle.StepLine,order:2,icon:O,label:(0,i.t)("Step line")},[x.LineStudyPlotStyle.StepLineWithDiamonds]:{type:x.LineStudyPlotStyle.StepLineWithDiamonds,order:3,icon:G,label:(0,i.t)("Step line with diamonds")},[x.LineStudyPlotStyle.Histogram]:{type:x.LineStudyPlotStyle.Histogram,order:4,icon:U,label:(0,i.t)("Histogram")},[x.LineStudyPlotStyle.Cross]:{type:x.LineStudyPlotStyle.Cross,order:5,icon:j,label:(0,i.t)("Cross",{context:"chart_type"})},[x.LineStudyPlotStyle.Area]:{type:x.LineStudyPlotStyle.Area,order:6,icon:K,label:(0,i.t)("Area")},[x.LineStudyPlotStyle.AreaWithBreaks]:{type:x.LineStudyPlotStyle.AreaWithBreaks,order:7,icon:Z,label:(0,i.t)("Area with breaks")},[x.LineStudyPlotStyle.Columns]:{type:x.LineStudyPlotStyle.Columns,order:8,icon:q,label:(0,i.t)("Columns")},[x.LineStudyPlotStyle.Circles]:{type:x.LineStudyPlotStyle.Circles,order:9,icon:Y,label:(0,i.t)("Circles")}},X=Object.values(Q).sort((e,t)=>e.order-t.order).map(e=>({value:e.type,selectedContent:n.createElement(F.DisplayItem,{icon:e.icon}),content:n.createElement(F.DropItem,{icon:e.icon,label:e.label})})),$=(0,i.t)("Price line");class J extends n.PureComponent{render(){const{id:e,plotType:t,className:r,priceLine:l,plotTypeChange:s,priceLineChange:i,disabled:o}=this.props;if(!(t in Q))return null;const a={readonly:!0,content:n.createElement(n.Fragment,null,n.createElement(z.MenuItemSwitcher,{id:"PlotTypePriceLineSwitch",checked:l,label:$,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:i}),n.createElement(W.PopupMenuSeparator,null))};return n.createElement(F.IconDropdown,{id:e,disabled:o,className:r,hideArrowButton:!0,items:[a,...X],value:t,onChange:s})}}var ee=r(79946),te=r(20959);const re=new o.TranslatedString("change plot type",(0,i.t)("change plot type")),le=new o.TranslatedString("change price line visibility",(0,i.t)("change price line visibility"));class ne extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{styleProp:{plottype:r}}=this.props;r&&t(r,e,re)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{styleProp:{trackPrice:r}}=this.props;r&&t(r,e,le)}}render(){const{id:e,paletteColor:t,paletteColorProps:r,styleProp:l,isLine:s,hasPlotTypeSelect:o,grouped:a,offset:c}=this.props,p=r.childs();return n.createElement(N.InputRow,{grouped:a,label:n.createElement("div",{className:te.childRowContainer},(0,i.t)(t.name,{context:"input"})),offset:c},n.createElement(ee.ColorWithThicknessSelect,{disabled:!l.visible.value(),color:p.color,transparency:l.transparency,thickness:s?p.width:void 0,isPaletteColor:!0}),s&&o&&l.plottype&&l.trackPrice?n.createElement(J,{id:(0,k.createDomId)(e,"plot-type-select"),disabled:!l.visible.value(),className:te.smallStyleControl,plotType:l.plottype.value(),priceLine:l.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)}} +ne.contextType=M.StylePropertyContext;var se=r(35868);class ie extends n.PureComponent{render(){const{plot:e,area:t,palette:r,paletteProps:l,hideVisibilitySwitch:i,styleProp:o,showOnlyTitle:a,showSeparator:c=!0,offset:p}=this.props,d=e?e.id:(0,s.ensureDefined)(t).id,h=!d.startsWith("fill")&&e&&(0,x.isLinePlot)(e);return n.createElement(n.Fragment,null,!i&&n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,offset:p},a?n.createElement("div",null,t?t.title:o.title.value()):n.createElement(D,{id:d,title:t?t.title:o.title.value(),visible:o.visible}))),function(e,t,r,l,i,o){const a=t.colors,c=r.colors;return Object.keys(a).map((t,r)=>n.createElement(ne,{key:t,id:e,grouped:!0,paletteColor:(0,s.ensureDefined)(a[t]),paletteColorProps:(0,s.ensureDefined)(c[t]),styleProp:l,isLine:i,hasPlotTypeSelect:0===r,offset:o}))}(d,r,l,o,h,p),c&&n.createElement(se.PropertyTable.GroupSeparator,null))}}ie.contextType=M.StylePropertyContext;var oe=r(50890);const ae=new o.TranslatedString("change plot type",(0,i.t)("change plot type")),ce=new o.TranslatedString("change price line visibility",(0,i.t)("change price line visibility"));class pe extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:r}}=this.props;r&&t(r,e,ae)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{property:{trackPrice:r}}=this.props;r&&t(r,e,ce)}}render(){const{id:e,isRGB:t,isFundamental:r,property:{title:l,color:s,plottype:i,linewidth:o,transparency:a,trackPrice:c,visible:p}}=this.props;return n.createElement(N.InputRow,{label:n.createElement(D,{id:e,title:l.value(),visible:p})},t&&!r?this._getInputForRgb():n.createElement(ee.ColorWithThicknessSelect,{disabled:!p.value(),color:s,transparency:a,thickness:o}),n.createElement(J,{id:(0,k.createDomId)(e,"plot-type-select"),disabled:!p.value(),className:te.smallStyleControl,plotType:i.value(),priceLine:c.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))}_getInputForRgb(){const{id:e,showLineWidth:t,property:r}=this.props,{linewidth:l,visible:s}=r;return l&&t?n.createElement(oe.LineWidthSelect,{id:(0,k.createDomId)(e,"line-width-select"),property:l,disabled:!s.value()}):null}}pe.contextType=M.StylePropertyContext;const de=n.createContext(null);class he extends n.PureComponent{render(){const{id:e,isRGB:t,title:r,visible:l,color:s,transparency:i,thickness:o,children:a,switchable:c=!0,offset:p,grouped:d}=this.props;return n.createElement(N.InputRow,{label:c?n.createElement(D,{id:e,title:r,visible:l}):r,offset:p,grouped:d},t?null:n.createElement(ee.ColorWithThicknessSelect,{disabled:l&&!(Array.isArray(l)?l[0].value():l.value()),color:s,transparency:i,thickness:o}),a)}}he.contextType=M.StylePropertyContext;class ue extends n.PureComponent{render(){const{id:e,isRGB:t,property:{colorup:r,colordown:l,transparency:i,visible:o}}=this.props +;return n.createElement(de.Consumer,null,a=>n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(D,{id:e,title:Ge((0,s.ensureNotNull)(a),e),visible:o}))),!t&&n.createElement(n.Fragment,null,n.createElement(he,{id:e,title:We,color:r,transparency:i,visible:o,switchable:!1,offset:!0,grouped:!0}),n.createElement(he,{id:e,title:ze,color:l,transparency:i,visible:o,switchable:!1,offset:!0,grouped:!0})),n.createElement(se.PropertyTable.GroupSeparator,null)))}}ue.contextType=M.StylePropertyContext;var me=r(87795),ve=r.n(me),ye=r(97754),ge=r(31261),be=r(58368),fe=r(95936);const we={[fe.MarkLocation.AboveBar]:{value:fe.MarkLocation.AboveBar,content:(0,i.t)("Above bar"),order:0},[fe.MarkLocation.BelowBar]:{value:fe.MarkLocation.BelowBar,content:(0,i.t)("Below bar"),order:1},[fe.MarkLocation.Top]:{value:fe.MarkLocation.Top,content:(0,i.t)("Top"),order:2},[fe.MarkLocation.Bottom]:{value:fe.MarkLocation.Bottom,content:(0,i.t)("Bottom"),order:3},[fe.MarkLocation.Absolute]:{value:fe.MarkLocation.Absolute,content:(0,i.t)("Absolute"),order:4}},Ce=Object.values(we).sort((e,t)=>e.order-t.order);class Se extends n.PureComponent{render(){const{id:e,shapeLocation:t,className:r,menuItemClassName:l,shapeLocationChange:s,disabled:i}=this.props;return n.createElement(be.Select,{id:e,disabled:i,className:r,menuItemClassName:l,items:Ce,value:t,onChange:s})}}const Pe=new o.TranslatedString("change char",(0,i.t)("change char")),Te=new o.TranslatedString("change location",(0,i.t)("change location"));class Ee extends n.PureComponent{constructor(){super(...arguments),this._onCharChange=e=>{const{setValue:t}=this.context,r=e.currentTarget.value.trim(),l=ve()(r),n=0===l.length?"":l[l.length-1],{property:{char:s}}=this.props;t(s,n,Pe)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:r}}=this.props;t(r,e,Te)}}render(){const{id:e,isRGB:t,property:{title:r,color:l,transparency:s,char:i,location:o,visible:a},hasPalette:c}=this.props;return n.createElement(N.InputRow,{grouped:c,label:n.createElement(D,{id:e,title:r.value(),visible:a})},!c&&!t&&n.createElement(ee.ColorWithThicknessSelect,{disabled:!a.value(),color:l,transparency:s}),n.createElement(ge.InputControl,{disabled:!a.value(),className:te.smallStyleControl,value:i.value(),onChange:this._onCharChange}),n.createElement(Se,{id:(0,k.createDomId)(e,"shape-style-select"),disabled:!a.value(),className:ye(te.defaultSelect,te.additionalSelect),menuItemClassName:te.defaultSelectItem,shapeLocation:o.value(),shapeLocationChange:this._onLocationChange}))}}Ee.contextType=M.StylePropertyContext;var _e=r(56138);const ke={arrow_down:r(91596),arrow_up:r(57614),circle:r(6220),cross:r(59903),diamond:r(27708),flag:r(92578),label_down:r(33665),label_up:r(82397),square:r(76046),triangle_down:r(21760),triangle_up:r(653),x_cross:r(18670)};function xe(e){return ke[e]}const Ie=[];Object.keys(_e.plotShapesData).forEach(e=>{const t=_e.plotShapesData[e];Ie.push({id:t.id,value:t.id, +selectedContent:n.createElement(F.DisplayItem,{icon:xe(t.icon)}),content:n.createElement(F.DropItem,{icon:xe(t.icon),label:t.guiName})})});class Le extends n.PureComponent{render(){const{id:e,shapeStyleId:t,className:r,shapeStyleChange:l,disabled:s}=this.props;return n.createElement(F.IconDropdown,{id:e,disabled:s,className:r,hideArrowButton:!0,items:Ie,value:t,onChange:l})}}const Me=new o.TranslatedString("change shape",(0,i.t)("change shape")),Ve=new o.TranslatedString("change location",(0,i.t)("change location"));class Re extends n.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:r}}=this.props;t(r,e,Me)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:r}}=this.props;t(r,e,Ve)}}render(){const{id:e,isRGB:t,hasPalette:r,property:{title:l,color:s,transparency:i,plottype:o,location:a,visible:c}}=this.props;return n.createElement(N.InputRow,{grouped:r,label:n.createElement(D,{id:e,title:l.value(),visible:c})},!r&&!t&&n.createElement(ee.ColorWithThicknessSelect,{disabled:!c.value(),color:s,transparency:i}),n.createElement(Le,{id:(0,k.createDomId)(e,"shape-style-select"),disabled:!c.value(),className:te.smallStyleControl,shapeStyleId:o.value(),shapeStyleChange:this._onPlotTypeChange}),n.createElement(Se,{id:(0,k.createDomId)(e,"shape-location-select"),disabled:!c.value(),className:ye(te.defaultSelect,te.additionalSelect),menuItemClassName:te.defaultSelectItem,shapeLocation:a.value(),shapeLocationChange:this._onLocationChange}))}}Re.contextType=M.StylePropertyContext;var Be=r(98125),De=r(32255);const Ne=(0,Be.getLogger)("Chart.Study.PropertyPage"),We=(0,i.t)("Up"),ze=(0,i.t)("Down"),Fe=(0,i.t)("Body"),Ae=(0,i.t)("Wick"),He=(0,i.t)("Border");class Oe extends n.PureComponent{render(){const{plot:e,palettes:t,study:r}=this.props,l=e.id,s=r.properties().styles[l],i=e.type,o=t.main,a=!!r.metaInfo().isRGB;if("line"===i||"bar_colorer"===i||"bg_colorer"===i)return o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:s}):n.createElement(pe,{id:l,property:s,isRGB:a,isFundamental:!1,showLineWidth:"line"===i});if("arrows"===i){const i=this._getPlotSwitch(l,Ge(r,l),s.visible);if(a)return i;const o=t.up,c=t.down;return o||c?n.createElement(n.Fragment,null,i,o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:{...s,title:(0,De.createPrimitiveProperty)(We)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:We,color:s.colorup,visible:s.visible,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0}),c&&c.palette&&c.paletteProps?n.createElement(ie,{plot:e,palette:c.palette,paletteProps:c.paletteProps,styleProp:{...s,title:(0,De.createPrimitiveProperty)(ze)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:ze,color:s.colordown,visible:s.visible,transparency:s.transparency,switchable:!1,grouped:!0,offset:!0 +}),n.createElement(se.PropertyTable.GroupSeparator,null)):n.createElement(ue,{id:l,property:s,isRGB:a,plot:e,palettes:t,styleProp:s})}if("chars"===i||"shapes"===i)return n.createElement(n.Fragment,null,"chars"===i?n.createElement(Ee,{id:l,property:s,hasPalette:Boolean(o&&o.palette),isRGB:a}):n.createElement(Re,{id:l,property:s,hasPalette:Boolean(o&&o.palette),isRGB:a}),o&&o.palette&&o.paletteProps&&n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,hideVisibilitySwitch:!0,styleProp:s}));if((0,x.isOhlcPlot)(e)){const s=e.target,i=r.properties().ohlcPlots[s],c=this._getPlotSwitch(l,i.title.value(),i.visible);if(a)return c;const p=t.wick&&t.wick.palette&&t.wick.paletteProps,d=t.border&&t.border.palette&&t.border.paletteProps;return n.createElement(n.Fragment,null,c,o&&o.palette&&o.paletteProps?n.createElement(ie,{plot:e,palette:o.palette,paletteProps:o.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(Fe)},showSeparator:!1,showOnlyTitle:!0,offset:!0}):n.createElement(he,{id:l,isRGB:a,title:Fe,visible:i.visible,color:i.color,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.wick&&t.wick.palette&&t.wick.paletteProps&&n.createElement(ie,{plot:e,palette:t.wick.palette,paletteProps:t.wick.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(Ae)},showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!p&&i.wickColor)&&n.createElement(he,{id:l,isRGB:a,title:Ae,visible:i.visible,color:i.wickColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),t.border&&t.border.palette&&t.border.paletteProps&&n.createElement(ie,{plot:e,palette:t.border.palette,paletteProps:t.border.paletteProps,styleProp:{...i,title:(0,De.createPrimitiveProperty)(He)},showSeparator:!1,showOnlyTitle:!0,offset:!0}),Boolean(!d&&i.borderColor)&&n.createElement(he,{id:l,isRGB:a,title:He,visible:i.visible,color:i.borderColor,transparency:i.transparency,switchable:!1,grouped:!0,offset:!0}),n.createElement(se.PropertyTable.GroupSeparator,null))}return Ne.logError("Unknown plot type: "+i),null}_getPlotSwitch(e,t,r){return n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:e,title:t,visible:r})))}}function Ge(e,t){const r=(0,s.ensureDefined)(e.metaInfo().styles),{title:l}=(0,s.ensureDefined)(r[t]);return(0,s.ensureDefined)(l)}var Ue=r(48948),je=r(53598);const Ke=new o.TranslatedString("change line style",(0,i.t)("change line style"));class Ze extends n.PureComponent{constructor(){super(...arguments),this._onLineStyleChange=e=>{const{setValue:t}=this.context,{lineStyle:r}=this.props;(0,R.setPropertyValue)(r,r=>t(r,e,Ke))}}render(){const{lineStyle:e,...t}=this.props;return n.createElement(je.LineStyleSelect,{...t,lineStyle:(0,R.getPropertyValue)(e),lineStyleChange:this._onLineStyleChange})}}Ze.contextType=M.StylePropertyContext;const qe=new o.TranslatedString("change value",(0,i.t)("change value"));class Ye extends n.PureComponent{constructor(){super(...arguments),this._onValueChange=e=>{ +const{setValue:t}=this.context,{value:r}=this.props.property;t(r,e,qe)}}render(){const{id:e,property:{name:t,color:r,linestyle:l,linewidth:s,transparency:i,value:o,visible:a}}=this.props;return n.createElement(N.InputRow,{labelAlign:"adaptive",label:n.createElement(D,{id:e,title:t.value(),visible:a})},n.createElement("div",{className:te.block},n.createElement("div",{className:te.group},n.createElement(ee.ColorWithThicknessSelect,{disabled:!a.value(),color:r,transparency:i,thickness:s}),n.createElement(Ze,{id:(0,k.createDomId)(e,"line-style-select"),disabled:!a.value(),className:te.smallStyleControl,lineStyle:l})),n.createElement("div",{className:ye(te.wrapGroup,te.defaultSelect,te.additionalSelect)},n.createElement(Ue.FloatInputComponent,{input:{id:"",name:"",type:"float",defval:0},value:o.value(),disabled:!a.value(),onChange:this._onValueChange}))))}}Ye.contextType=M.StylePropertyContext;class Qe extends n.PureComponent{render(){const{orders:{visible:e,showLabels:t,showQty:r}}=this.props;return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-switch",title:(0,i.t)("Trades on chart"),visible:e}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-labels-switch",title:(0,i.t)("Signal labels"),visible:t}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"chart-orders-qty-switch",title:(0,i.t)("Quantity"),visible:r}))))}}Qe.contextType=M.StylePropertyContext;var Xe=r(95018),$e=r(26007);const Je=new o.TranslatedString("change percent width",(0,i.t)("change percent width")),et=new o.TranslatedString("change placement",(0,i.t)("change placement")),tt=new o.TranslatedString("change values visibility",(0,i.t)("change values visibility")),rt=[{value:Xe.HHistDirection.LeftToRight,content:(0,i.t)("Left")},{value:Xe.HHistDirection.RightToLeft,content:(0,i.t)("Right")}],lt=(0,i.t)("Width (% of the box)"),nt=(0,i.t)("Placement"),st=(0,i.t)("Values"),it=(0,i.t)("Text color");class ot extends n.PureComponent{constructor(){super(...arguments),this._onPercentWidthChange=e=>{const{setValue:t}=this.context,{percentWidth:r}=this.props.property.childs();t(r,e,Je)},this._onPlacementChange=e=>{const{setValue:t}=this.context,{direction:r}=this.props.property.childs();t(r,e,et)},this._onShowValuesChange=e=>{const{setValue:t}=this.context,{showValues:r}=this.props.property.childs();t(r,e,tt)}}render(){const{title:e,percentWidth:t,direction:r,showValues:l,valuesColor:s,visible:i}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2,grouped:!0},n.createElement(D,{id:e.value(),title:e.value(),visible:i}))),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},lt),grouped:!0 +},n.createElement($e.IntegerInputComponent,{input:{id:"",name:"",type:"integer",defval:0},value:t.value(),disabled:!i.value(),onChange:this._onPercentWidthChange})),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},nt),grouped:!0},n.createElement(be.Select,{id:"hhist-graphic-placement-select",disabled:!i.value(),className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:rt,value:r.value(),onChange:this._onPlacementChange})),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{className:te.childRowContainer,placement:"first",colSpan:2,grouped:!0},n.createElement(V.BoolInputComponent,{label:st,input:{id:e.value()+"_showValues",type:"bool",defval:!0,name:"visible"},value:!l||l.value(),disabled:!i.value(),onChange:this._onShowValuesChange}))),n.createElement(N.InputRow,{label:n.createElement("div",{className:te.childRowContainer},it),grouped:!0},n.createElement(ee.ColorWithThicknessSelect,{disabled:i&&!i.value(),color:s})),this._renderColors(),n.createElement(se.PropertyTable.GroupSeparator,null))}_renderColors(){const{colors:e,titles:t,transparencies:r,visible:l}=this.props.property.childs();return e.childNames().map(s=>n.createElement(N.InputRow,{key:s,grouped:!0,label:n.createElement("div",{className:te.childRowContainer},t.childs()[s].value())},n.createElement(ee.ColorWithThicknessSelect,{disabled:!l.value(),color:e.childs()[s],transparency:r.childs()[s]})))}}ot.contextType=M.StylePropertyContext;class at extends n.PureComponent{render(){const{title:e}=this.props,{color:t,transparency:r,width:l,style:s,visible:i}=this.props.property.childs();return n.createElement(N.InputRow,{label:n.createElement(D,{id:e.value(),title:e.value(),visible:i})},n.createElement(ee.ColorWithThicknessSelect,{disabled:!i.value(),color:t,transparency:r,thickness:l}),n.createElement(Ze,{id:(0,k.createDomId)(e.value(),"line-style-select"),disabled:!i.value(),className:te.smallStyleControl,lineStyle:s}))}}at.contextType=M.StylePropertyContext;class ct extends n.PureComponent{render(){const{graphicType:e,study:t}=this.props,r=t.metaInfo().graphics,l=t.properties().graphics,i=(0,s.ensureDefined)(r[e]);return Object.keys(i).map((t,r)=>{const s=l[e][t];return"horizlines"===e||"vertlines"===e||"lines"===e?n.createElement(at,{key:t,title:"lines"===e?s.title:s.name,property:s}):"hhists"===e?n.createElement(ot,{key:t,property:s}):null})}}var pt=r(66045);const dt=new o.TranslatedString("change font size",(0,i.t)("change font size")),ht=[10,11,12,14,16,20,24,28,32,40].map(e=>({value:e,title:e.toString()}));class ut extends n.PureComponent{constructor(){super(...arguments),this._onFontSizeChange=e=>{const{setValue:t}=this.context,{fontSize:r}=this.props;t(r,e,dt)}}render(){const{fontSize:e,...t}=this.props;return n.createElement(pt.FontSizeSelect,{...t,fontSizes:ht,fontSize:e.value(),fontSizeChange:this._onFontSizeChange})}}ut.contextType=M.StylePropertyContext;const mt=new o.TranslatedString("change visibility",(0,i.t)("change visibility")),vt=(0,i.t)("Labels font"),yt=(0, +i.t)("Labels"),gt={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"])};class bt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{levelsStyle:r}=this.props.property.childs(),{showLabels:l}=r.childs();t(l,e,mt)}}render(){const{fontsize:e,levelsStyle:t}=this.props.property.childs();return n.createElement(n.Fragment,null,n.createElement(N.InputRow,{labelAlign:"adaptive",label:n.createElement("span",null,vt)},n.createElement("div",{className:te.block},n.createElement("div",{className:ye(te.wrapGroup,te.additionalSelect)},n.createElement(ut,{id:"pivot-points-standard-font-size-select",fontSize:e})))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(V.BoolInputComponent,{label:yt,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:t.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())}_renderColors(){const{levelsStyle:e,inputs:t}=this.props.property.childs(),{colors:r,widths:l,visibility:i}=e.childs(),{kind:o}=t.childs(),a=(0,s.ensureDefined)(gt[o.value()]);return r.childNames().filter(e=>a.has(e)).map(e=>n.createElement(he,{key:e,id:e,title:e,color:r.childs()[e],visible:i.childs()[e],thickness:l.childs()[e]}))}}bt.contextType=M.StylePropertyContext;const ft=new o.TranslatedString("change visibility",(0,i.t)("change visibility")),wt=(0,i.t)("Volume profile"),Ct=(0,i.t)("Values"),St=(0,i.t)("Width (% of the box)"),Pt=(0,i.t)("Placement"),Tt=(0,i.t)("Developing VA"),Et=(0,i.t)("Values in status line"),_t=(0,i.t)("Labels on price scale"),kt=[{value:Xe.HHistDirection.RightToLeft,content:(0,i.t)("Right")},{value:Xe.HHistDirection.LeftToRight,content:(0,i.t)("Left")}];class xt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this._setHhistsProperty("visible",e)},this._onShowValuesChange=e=>{this._setHhistsProperty("showValues",e)},this._onValueChange=e=>{this._setHhistsProperty("percentWidth",e)},this._onDirectionChange=e=>{this._setHhistsProperty("direction",e)}}render(){var e,t,r,l,o,a;const{metaInfo:c}=this.props,{graphics:p,styles:d,showLabelsOnPriceScale:h,showLegendValues:u}=this.props.property.childs(),{hhists:m,horizlines:v,polygons:y}=p.childs(),g=(0, +s.ensureDefined)(c.graphics.hhists),b=Object.keys(g),f=m.childs()[b[0]],w=f.childs().visible,C=b.map(e=>m.childs()[e].childs().showValues),S=f.childs().percentWidth,P=f.childs().direction,T=b.map(e=>m.childs()[e].childs().valuesColor),E=null===(e=v.childs())||void 0===e?void 0:e.vahLines,_=null===(t=c.graphics.horizlines)||void 0===t?void 0:t.vahLines,k=null===(r=v.childs())||void 0===r?void 0:r.valLines,x=null===(l=c.graphics.horizlines)||void 0===l?void 0:l.valLines,I=v.childs().pocLines,L=(0,s.ensureDefined)(null===(o=c.graphics.horizlines)||void 0===o?void 0:o.pocLines),M=d.childs().developingPoc,R=(0,s.ensureDefined)(null===(a=c.styles)||void 0===a?void 0:a.developingPoc),B=d.childs().developingVAHigh,W=d.childs().developingVALow,z=c.graphics.polygons&&c.graphics.polygons.histBoxBg;return n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(V.BoolInputComponent,{label:wt,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:w.value(),onChange:this._onChange}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},n.createElement(V.BoolInputComponent,{disabled:!w.value(),label:Ct,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:C[0].value(),onChange:this._onShowValuesChange}))),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement(ee.ColorWithThicknessSelect,{disabled:!w.value()||!C[0].value(),color:T}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},St)),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement($e.IntegerInputComponent,{disabled:!w.value(),input:{id:"",name:"",type:"integer",defval:0},value:S.value(),onChange:this._onValueChange}))),n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.Cell,{placement:"first"},n.createElement("div",{className:te.childRowContainer},Pt)),n.createElement(se.PropertyTable.Cell,{placement:"last"},n.createElement(be.Select,{id:"hhist-direction-select",disabled:!w.value(),className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:kt,value:P.value(),onChange:this._onDirectionChange}))),b.map(e=>n.createElement(n.Fragment,{key:e},m.childs()[e].childs().colors.childNames().map((t,r)=>{const l=g[e];return n.createElement(N.InputRow,{key:r,label:n.createElement("div",{className:te.childRowContainer},l&&(0,i.t)(l.titles[r])||"")},n.createElement(ee.ColorWithThicknessSelect,{disabled:!w.value(),color:m.childs()[e].childs().colors.childs()[r],transparency:m.childs()[e].childs().transparencies.childs()[r]}))}))),_&&E&&n.createElement(he,{id:"vahLines",title:_.name,color:E.childs().color,visible:E.childs().visible,thickness:E.childs().width},n.createElement(Ze,{id:"vah-lines-line-style-select",disabled:!E.childs().visible.value(),className:te.smallStyleControl, +lineStyle:E.childs().style})),x&&k&&n.createElement(he,{id:"valLines",title:x.name,color:k.childs().color,visible:k.childs().visible,thickness:k.childs().width},n.createElement(Ze,{id:"val-lines-line-style-select",disabled:!k.childs().visible.value(),className:te.smallStyleControl,lineStyle:k.childs().style})),n.createElement(he,{id:"pocLines",title:L.name,color:I.childs().color,visible:I.childs().visible,thickness:I.childs().width},n.createElement(Ze,{id:"poc-lines-line-style-select",disabled:!I.childs().visible.value(),className:te.smallStyleControl,lineStyle:I.childs().style})),M&&n.createElement(he,{id:"developingPoc",title:R.title&&(0,i.t)(R.title)||"",color:M.childs().color,visible:M.childs().visible,thickness:M.childs().linewidth},n.createElement(Ze,{id:"developing-poc-line-style-select",disabled:!M.childs().visible.value(),className:te.smallStyleControl,lineStyle:M.childs().linestyle})),B&&W&&n.createElement(he,{id:"developingPoc",title:Tt,color:[B.childs().color,W.childs().color],visible:[B.childs().visible,W.childs().visible],thickness:[B.childs().linewidth,W.childs().linewidth]},n.createElement(Ze,{id:"developing-VA-line-style-select",disabled:!B.childs().visible.value()&&!W.childs().visible.value(),className:te.smallStyleControl,lineStyle:[B.childs().linestyle,W.childs().linestyle]})),y&&n.createElement(N.InputRow,{label:n.createElement("div",null,z&&(0,i.t)(z.name)||"")},n.createElement(ee.ColorWithThicknessSelect,{color:y.childs().histBoxBg.childs().color,transparency:y.childs().histBoxBg.childs().transparency})),"VbPFixed"!==c.shortId&&n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLabelsOnPriceScale",title:_t,visible:h})),n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLegendValues",title:Et,visible:u}))))}_setHhistsProperty(e,t){const{setValue:r}=this.context,{metaInfo:l,property:n}=this.props,i=n.childs().graphics.childs().hhists,o=Object.keys((0,s.ensureDefined)(l.graphics.hhists));for(let l=0;ln.createElement(M.StylePropertyContainer,{property:(0,s.ensureNotNull)(t).properties(),model:e},n.createElement(se.PropertyTable,null,this._renderCustomContent((0,s.ensureNotNull)(t).metaInfo().shortId))))}_renderCustomContent(e){if(e in Mt){const t=Mt[e];return n.createElement(t,null)}return null}}Vt.contextType=Lt.ModelContext;var Rt=r(37701);const Bt=new o.TranslatedString("change precision",(0, +i.t)("change precision")),Dt=(0,i.t)("Default"),Nt=(0,i.t)("Precision"),Wt=[{value:"default",content:Dt}];for(let e=0;e<=8;e++)Wt.push({value:e,content:e.toString()});class zt extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{precision:r}=this.props;t(r,e,Bt)}}render(){const{id:e,precision:t}=this.props;return n.createElement(N.InputRow,{label:Nt},n.createElement(be.Select,{id:e,className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:Wt,value:t.value(),onChange:this._onChange}))}}zt.contextType=M.StylePropertyContext;const Ft=new o.TranslatedString("change min tick",(0,i.t)("change min tick")),At=(0,i.t)("Default"),Ht=(0,i.t)("Override min tick"),Ot=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],Gt=[{id:"tick-default",value:"default",content:At}];for(let e=0;e{const{setValue:t}=this.context,{minTick:r}=this.props;t(r,e,Ft)}}render(){const{id:e,minTick:t}=this.props;return n.createElement(N.InputRow,{label:Ht},n.createElement(be.Select,{id:e,className:te.defaultSelect,menuItemClassName:te.defaultSelectItem,items:Gt,value:t.value(),onChange:this._onChange}))}}Ut.contextType=M.StylePropertyContext;var jt=r(72280),Kt=r(86067);const Zt=(0,i.t)("Outputs");class qt extends n.PureComponent{constructor(){super(...arguments),this._findPlotPalettes=e=>{const{study:t}=this.props,r=t.metaInfo(),l=(0,s.ensureDefined)(r.palettes);return(0,x.isBarColorerPlot)(e)||(0,x.isBgColorerPlot)(e)?{main:{palette:l[e.palette],paletteProps:t.properties().palettes[e.palette]}}:this._findPalettesByTargetId(e.id)}}render(){const{study:e}=this.props,t=e.metaInfo();if((0,Rt.isCustomStudy)(t.shortId))return n.createElement(Vt,null);const r=e.properties(),{precision:l,strategy:s,minTick:i,showLabelsOnPriceScale:o,showLegendValues:a}=r,c=t.plots.length>0,p=t.plots.some(e=>!(0,x.isPlotWithTechnicalValues)(e)),d=c||t.inputs.some(e=>"price"===e.type),h=(0,jt.createAdapter)(e).canOverrideMinTick();return n.createElement(se.PropertyTable,null,this._plotsElement(),this._bandsElement(),this._bandsBackgroundsElement(),this._areasBackgroundsElement(),this._filledAreasElement(),this._graphicsElement(),h&&n.createElement(Ut,{id:(0,k.createDomId)(t.id,"min-tick-select"),minTick:i}),L().isScriptStrategy(t)&&n.createElement(Qe,{orders:s.orders +}),(d||p)&&n.createElement(se.PropertyTable.Row,null,n.createElement(se.PropertyTable.GroupSeparator,{size:1}),n.createElement(Kt.GroupTitleSection,{title:Zt,name:Zt}),d&&n.createElement(zt,{id:(0,k.createDomId)(t.id,"precision-select"),precision:l}),p&&n.createElement(n.Fragment,null,n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLabelsOnPriceScale",title:"Labels on price scale",visible:o})),n.createElement(se.PropertyTable.Cell,{placement:"first",colSpan:2},n.createElement(D,{id:"showLegendValues",title:"Values in status line",visible:a})))))}_plotsElement(){const{study:e}=this.props,t=e.metaInfo();return new E.MetaInfoHelper(t).getUserEditablePlots().filter(e=>!((0,x.isUpColorerPlot)(e)||(0,x.isDownColorerPlot)(e)||(0,x.isCandleBorderColorerPlot)(e)||(0,x.isCandleWickColorerPlot)(e))).map(t=>{const r=(0,x.isOhlcPlot)(t)?{...t,id:t.target}:t,l=this._findPlotPalettes(r);return n.createElement(Oe,{key:t.id,plot:t,palettes:l,study:e})})}_bandsElement(){const{study:e}=this.props,t=e.properties(),{bands:r}=t;return r&&r.childNames().map((e,t)=>{const l=r.child(e);if(!l.isHidden||!l.isHidden.value())return n.createElement(Ye,{key:t,id:l.name.value(),property:l})})}_bandsBackgroundsElement(){const{study:e}=this.props,t=e.properties(),{bandsBackground:r}=t;return r&&n.createElement(he,{id:"bandsBackground",title:"Background",visible:r.fillBackground,color:r.backgroundColor,transparency:r.transparency})}_areasBackgroundsElement(){const{study:e}=this.props,t=e.metaInfo(),r=e.properties(),{areaBackground:l}=r;return t.isRGB?null:l&&n.createElement(he,{id:"areaBackground",title:"Background",visible:l.fillBackground,color:l.backgroundColor,transparency:l.transparency})}_filledAreasElement(){const{study:e}=this.props,t=e.metaInfo(),r=t.filledAreas;return!r||t.isRGB?[]:r.map(t=>{if(t.isHidden)return null;const r=e.properties().filledAreasStyle[t.id],l=t.title||"Background";if(t.palette){const e=this._findPalettesByTargetId(t.id),l=(0,s.ensureDefined)(e.main);return n.createElement(ie,{key:t.id,area:t,palette:(0,s.ensureDefined)(l.palette),paletteProps:(0,s.ensureDefined)(l.paletteProps),styleProp:r})}return n.createElement(he,{key:t.id,id:t.id,title:l,color:r.color,visible:r.visible,transparency:r.transparency})})}_graphicsElement(){const{study:e}=this.props,t=e.metaInfo().graphics;return t&&Object.keys(t).map((t,r)=>n.createElement(ct,{key:t,graphicType:t,study:e}))}_findPalettesByTargetId(e){const{study:t}=this.props,r=t.metaInfo(),l=r.plots,n=(0,s.ensureDefined)(r.palettes),i={};for(const r of l)((0,x.isColorerPlot)(r)||(0,x.isOhlcColorerPlot)(r))&&r.target===e&&(i.main={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isUpColorerPlot)(r)&&r.target===e&&(i.up={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isDownColorerPlot)(r)&&r.target===e&&(i.down={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]}),(0,x.isCandleWickColorerPlot)(r)&&r.target===e&&(i.wick={palette:n[r.palette], +paletteProps:t.properties().palettes[r.palette]}),(0,x.isCandleBorderColorerPlot)(r)&&r.target===e&&(i.border={palette:n[r.palette],paletteProps:t.properties().palettes[r.palette]});return i}}function Yt(e){return(0,M.bindPropertyContext)(qt,{...e,property:e.study.properties()})}class Qt extends n.PureComponent{render(){return n.createElement(Lt.ModelContext.Provider,{value:this.props.model},n.createElement(de.Provider,{value:this.props.source},n.createElement(Yt,{study:this.props.source})))}}var Xt=r(80331),$t=r(22729),Jt=r(80975);class er extends $t.DialogRenderer{constructor(e,t,r,n){super(),this._timeout=null,this._handleClose=()=>{l.unmountComponentAtNode(this._container),this._setVisibility(!1),this._subscription.unsubscribe(this,this._handleCollectionChanged)},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._handleSubmit=()=>{},this._handleActiveTabChanged=e=>{c.setValue(this._activeTabSettingsName(),e)},this._source=e,this._model=t,this._propertyPages=n,this._checkpoint=this._ensureCheckpoint(r),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(e={}){if(!p.enabled("property_pages"))return;const t=this._source.metaInfo();if((0,w.isLineTool)(this._source)&&(0,h.trackEvent)("GUI","Drawing Properties",this._source.name()),(0,b.isStudy)(this._source)){const e=!this._source.isPine()||this._source.isStandardPine()?t.description:"Custom Pine";(0,h.trackEvent)("GUI","Study Properties",e)}let r={byId:{inputs:{title:(0,i.t)("Inputs"),Component:_},style:{title:(0,i.t)("Style"),Component:Qt}},allIds:[]};const s=new E.MetaInfoHelper(t);s.hasUserEditableInputs()&&r.allIds.push("inputs"),s.hasUserEditableProperties(),s.hasUserEditableStyles()&&r.allIds.push("style"),this._propertyPages||(r.byId.visibilities={title:(0,i.t)("Visibility"),page:this._createVisibilitiesPropertyPage()},r.allIds.push("visibilities")),r=this._getPagesForStudyLineTool(r);const o=e.initialTab||c.getValue(this._activeTabSettingsName())||"inputs";let u=(0,a.clean)(t.shortDescription,!0);l.render(n.createElement(P,{title:u,model:this._model,source:this._source,initialActiveTab:r.allIds.includes(o)?o:r.allIds[0],pages:r,onSubmit:this._handleSubmit,onCancel:this._handleCancel,onClose:this._handleClose,onActiveTabChanged:this._handleActiveTabChanged}),this._container),this._setVisibility(!0),d.emit("edit_object_dialog",{objectType:"study",scriptTitle:this._source.title()})}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return(0,Xt.createPropertyPage)((0,Jt.getIntervalsVisibilitiesPropertiesDefinitions)(this._model,e,new o.TranslatedString(this._source.name(!0),this._source.title(!0))),"visibility",(0,i.t)("Visibility"))}_activeTabSettingsName(){return"properties_dialog.active_tab.study"}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e} +_getPagesForStudyLineTool(e){if(this._propertyPages){const t=this._propertyPages.filter(e=>"coordinates"===e.id||"visibility"===e.id),r={allIds:t.map(e=>e.id),byId:t.reduce((e,t)=>({...e,[t.id]:{title:t.title,page:t}}),{})};return{allIds:[...e.allIds,...r.allIds],byId:{...e.byId,...r.byId}}}return e}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout(()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null}))}_closeDialogIfSourceIsDeleted(){null===this._model.model().dataSourceForId(this._source.id())&&this._handleClose()}}},34290:(e,t,r)=>{"use strict";r.d(t,{StudyDefaultsManager:()=>u});var l=r(59496),n=r(97754),s=r.n(n),i=r(9745),o=r(28353),a=r(95276),c=r(16396),p=r(31328),d=r(84662);const h={reset:(0,o.t)("Reset settings"),saveAsDefault:(0,o.t)("Save as default"),defaults:(0,o.t)("Defaults")};class u extends l.PureComponent{constructor(){super(...arguments),this._handleResetToDefaults=()=>{this.props.model.restorePropertiesForSource(this.props.source)},this._handleSaveAsDefaults=()=>{this.props.source.properties().saveDefaults()}}render(){const{mode:e}=this.props;return l.createElement(a.ControlDisclosure,{id:"study-defaults-manager",className:s()("normal"===e&&d.defaultsButtonText),hideArrowButton:"compact"===e,buttonChildren:this._getPlaceHolderItem("compact"===e)},l.createElement(c.PopupMenuItem,{className:d.defaultsButtonItem,isActive:!1,label:h.reset,onClick:this._handleResetToDefaults}),l.createElement(c.PopupMenuItem,{className:d.defaultsButtonItem,isActive:!1,label:h.saveAsDefault,onClick:this._handleSaveAsDefaults}))}_getPlaceHolderItem(e){return e?l.createElement(i.Icon,{className:d.defaultsButtonIcon,icon:p}):h.defaults}}},95275:(e,t,r)=>{"use strict";r.d(t,{FooterMenu:()=>d});var l=r(59496),n=r(28353),s=r(9745),i=r(95276),o=r(90692),a=r(85623),c=r(31328);function p(e){return e.isTabletWidth?l.createElement(s.Icon,{className:a.themesButtonIcon,icon:c}):l.createElement(l.Fragment,null,(0,n.t)("Template"))}function d(e){return l.createElement(o.MatchMedia,{rule:"screen and (max-width: 768px)"},t=>l.createElement(i.ControlDisclosure,{className:!t&&a.themesButtonText,hideArrowButton:t,buttonChildren:l.createElement(p,{isTabletWidth:t})},e.children))}},44e3:(e,t,r)=>{"use strict";r.d(t,{TemplateMenuItem:()=>c});var l=r(59496),n=r(16396),s=r(96040),i=r(70412),o=r(32563),a=r(85623);function c(e){const{name:t,onRemove:r,onClick:c}=e,[p,d]=(0,i.useHover)(),h=l.useCallback(()=>c(t),[c,t]),u=l.useCallback(()=>{r&&r(t)},[r,t]);return l.createElement("div",{...d},l.createElement(n.PopupMenuItem,{className:a.defaultsButtonItem,isActive:!1,label:t,onClick:h,toolbox:r&&l.createElement(s.RemoveButton,{hidden:!o.mobiletouch&&!p,onClick:u})}))}},37289:(e,t,r)=>{"use strict";r.d(t,{PropertiesEditorTab:()=>c});var l=r(59496),n=r(66849);const s={"Elliott Impulse Wave (12345)Degree":"normal","Elliott Triangle Wave (ABCDE)Degree":"normal","Elliott Triple Combo Wave (WXYXZ)Degree":"normal","Elliott Correction Wave (ABC)Degree":"normal","Elliott Double Combo Wave (WXY)Degree":"normal", +BarsPatternMode:"normal",StudyInputSource:"normal"},i={TextText:"big",AnchoredTextText:"big",NoteText:"big",AnchoredNoteText:"big",CalloutText:"big",BalloonText:"big"};var o=r(35868),a=r(90545);function c(e){const{page:t,pageRef:r,tableKey:c}=e;return l.createElement(n.ControlCustomHeightContext.Provider,{value:i},l.createElement(n.ControlCustomWidthContext.Provider,{value:s},t&&l.createElement(o.PropertyTable,{reference:r,key:c},t.definitions.value().map(e=>l.createElement(a.Section,{key:e.id,definition:e})))))}},18460:(e,t,r)=>{"use strict";r.d(t,{FooterMenu:()=>a});var l=r(59496),n=(r(79049),r(28353)),s=r(95275),i=r(44e3);function o(e){const{model:t,source:r}=e;return l.createElement(s.FooterMenu,null,l.createElement(i.TemplateMenuItem,{onClick:function(){t.restorePropertiesForSource(r)},name:(0,n.t)("Apply Defaults")}))}function a(e){return l.createElement(o,{...e})}},31807:(e,t,r)=>{"use strict";r.d(t,{DialogTabs:()=>m});var l=r(59496),n=r(97754),s=r(64205),i=r(40173),o=r(64886);const a=(0,i.mergeThemes)(s.DEFAULT_SLIDER_THEME,o);var c=r(39440),p=r(32563),d=r(42545);const h=d,u=(0,s.factory)((function(e){return l.createElement("div",{className:a.slider,ref:e.reference},l.createElement("div",{className:a.inner}))}));class m extends l.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=h,hiddenBottomBorders:t,fadedSlider:r=!0,ScrollComponent:s=c.HorizontalScroll}=this.props,i=this._generateDialogTabs();return l.createElement("div",{className:n(e.scrollWrap)},!t&&l.createElement("div",{className:e.headerBottomSeparator}),l.createElement(s,{isVisibleFade:p.mobiletouch,isVisibleButtons:!p.mobiletouch,isVisibleScrollbar:!1,fadeClassName:n({[e.fadeWithoutSlider]:!r})},l.createElement("div",{className:e.tabsWrap},l.createElement(u,{className:n(e.tabs,t&&e.withoutBorder)},i))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:r=h}=this.props;return t.allIds.map(i=>{const o=e===i,a=t.byId[i].withNotificationsBadge;return l.createElement(s.SliderItem,{key:i,value:i,className:n(r.tab,!o&&r.withHover,a&&d.withBadge),isActive:o,onClick:this._createClickHandler(i)},t.byId[i].title)})}}},39440:(e,t,r)=>{"use strict";r.d(t,{HorizontalScroll:()=>f});var l=r(59496),n=r(97754),s=r(9837),i=r(88537),o=r(9745),a=r(59199),c=r(68587),p=r(62820),d=r(33086),h=r(41814);const u={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function m(e){return l.createElement("div",{className:n(h.fadeLeft,e.className,{[h.isVisible]:e.isVisible})})}function v(e){return l.createElement("div",{className:n(h.fadeRight,e.className,{[h.isVisible]:e.isVisible})})}function y(e){return l.createElement(b,{...e,className:h.scrollLeft})}function g(e){return l.createElement(b,{...e,className:h.scrollRight})}function b(e){return l.createElement("div",{className:n(e.className,{[h.isVisible]:e.isVisible}),onClick:e.onClick},l.createElement("div",{className:h.iconWrap},l.createElement(o.Icon,{icon:d,className:h.icon})))}const f=function(e=y,t=g,r=m,o=v){var d +;return(d=class extends l.PureComponent{constructor(e){super(e),this._scroll=l.createRef(),this._wrapMeasureRef=l.createRef(),this._contentMeasureRef=l.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:r}=this.props;t&&r?this.setState({widthContent:e.width+2*r}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,r=this.isAtLeft(),l=this.isAtRight();r||e?r&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),l||t?l&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,p.isRtl)()?(0,p.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,i.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,i.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const r=this._scroll.current;r&&((0,p.isRtl)()&&(e=(0,p.getLTRScrollLeftOffset)(r,e)),t<=0?r.scrollLeft=Math.round(e):(0,a.doAnimate)({onStep(e,t){r.scrollLeft=Math.round(t)},from:r.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:i,isVisibleScrollbar:a,isVisibleFade:c,isVisibleButtons:p,shouldMeasure:d,shouldDecreaseWidthContent:u,buttonsWidthIfDecreasedWidthContent:m,onMouseOver:v,onMouseOut:y,scrollWrapClassName:g,fadeClassName:b}=this.props,{isVisibleRightButton:f,isVisibleLeftButton:w}=this.state,C=u&&m;return l.createElement(s,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:d, +ref:this._wrapMeasureRef},l.createElement("div",{className:h.wrapOverflow,onMouseOver:v,onMouseOut:y},l.createElement("div",{className:n(h.wrap,C?h.wrapWithArrowsOuting:"")},l.createElement("div",{className:n(h.scrollWrap,g,{[h.noScrollBar]:!a}),onScroll:this._handleScroll,ref:this._scroll},l.createElement(s,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:d,ref:this._contentMeasureRef},i)),c&&l.createElement(r,{isVisible:w,className:b}),c&&l.createElement(o,{isVisible:f,className:b}),p&&l.createElement(e,{onClick:this._handleScrollLeft,isVisible:w}),p&&l.createElement(t,{onClick:this._handleScrollRight,isVisible:f}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=u,d}(y,g,m,v)},51613:(e,t,r)=>{"use strict";r.d(t,{PopupMenuSeparator:()=>o});var l=r(59496),n=r(97754),s=r.n(n),i=r(524);function o(e){const{size:t="normal",className:r}=e;return l.createElement("div",{className:s()(i.separator,"small"===t&&i.small,"normal"===t&&i.normal,"large"===t&&i.large,r)})}},64205:(e,t,r)=>{"use strict";r.d(t,{DEFAULT_SLIDER_THEME:()=>o,SliderItem:()=>a,factory:()=>c});var l=r(59496),n=r(97754),s=r(88537),i=r(37740);const o=i;function a(e){const t=n(e.className,i.tab,{[i.active]:e.isActive,[i.disabled]:e.isDisabled,[i.defaultCursor]:!!e.shouldUseDefaultCursor,[i.noBorder]:!!e.noBorder});return l.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends l.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,s.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,r=this._generateTabs();return l.createElement("div",{className:n(t,i.tabs),"data-name":this.props["data-name"]},r,l.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,l.Children.map(this.props.children,e=>{const t=e,r=Boolean(t.props.isActive),n={reference:e=>{r&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return l.cloneElement(t,n)})}_componentDidUpdate(){const e=(0,s.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,r=this.activeTab.current.offsetLeft;e.transform=`translateX(${r}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return l.createElement("div",{className:i.slider,ref:e.reference})}))},33086:e=>{e.exports=''},91596:e=>{e.exports=''},57614:e=>{ +e.exports=''},6220:e=>{e.exports=''},59903:e=>{e.exports=''},27708:e=>{e.exports=''},92578:e=>{e.exports=''},33665:e=>{e.exports=''},82397:e=>{e.exports=''},76046:e=>{e.exports=''},21760:e=>{e.exports=''},653:e=>{e.exports=''},18670:e=>{e.exports=''},99594:e=>{e.exports=''},8273:e=>{e.exports=''},28853:e=>{e.exports=''}, +79142:e=>{e.exports=''},40551:e=>{e.exports=''},76115:e=>{e.exports=''},84863:e=>{e.exports=''},86891:e=>{e.exports=''},5377:e=>{e.exports=''},85550:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/object-tree-dialog.eecc10d129b521b3edf1.js b/charting_library/bundles/object-tree-dialog.eecc10d129b521b3edf1.js new file mode 100644 index 00000000..98d9b02f --- /dev/null +++ b/charting_library/bundles/object-tree-dialog.eecc10d129b521b3edf1.js @@ -0,0 +1,30 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4862],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},62461:e=>{e.exports={dropTargetInside:"dropTargetInside-HaSQHZAC",dropTarget:"dropTarget-HaSQHZAC",before:"before-HaSQHZAC",after:"after-HaSQHZAC"}},91069:e=>{e.exports={wrap:"wrap-XdW9S1Ib",selected:"selected-XdW9S1Ib",childOfSelected:"childOfSelected-XdW9S1Ib",disabled:"disabled-XdW9S1Ib",expandHandle:"expandHandle-XdW9S1Ib",expanded:"expanded-XdW9S1Ib"}},34244:e=>{e.exports={separator:"separator-KFALCIeR",tree:"tree-KFALCIeR",overlayScrollWrap:"overlayScrollWrap-KFALCIeR",listContainer:"listContainer-KFALCIeR"}},9267:e=>{e.exports={title:"title-f0amBBvb",empty:"empty-f0amBBvb",image:"image-f0amBBvb",spinner:"spinner-f0amBBvb",contentList:"contentList-f0amBBvb"}},32713:e=>{e.exports={dialog:"dialog-W0U3ul53",button:"button-W0U3ul53"}},41223:e=>{e.exports={title:"title-0UFIVbgR",withoutIcon:"withoutIcon-0UFIVbgR",buttons:"buttons-0UFIVbgR",button:"button-0UFIVbgR",disabled:"disabled-0UFIVbgR"}},89559:e=>{e.exports={wrap:"wrap-hEebyvPo",dialog:"dialog-hEebyvPo",offset:"offset-hEebyvPo",title:"title-hEebyvPo",main:"main-hEebyvPo",disabled:"disabled-hEebyvPo",icon:"icon-hEebyvPo",textIcon:"textIcon-hEebyvPo",syncIconWrap:"syncIconWrap-hEebyvPo",syncIcon:"syncIcon-hEebyvPo",rightButtons:"rightButtons-hEebyvPo",hover:"hover-hEebyvPo",expandHandle:"expandHandle-hEebyvPo",button:"button-hEebyvPo",selected:"selected-hEebyvPo",childOfSelected:"childOfSelected-hEebyvPo",renameInput:"renameInput-hEebyvPo",warn:"warn-hEebyvPo",visible:"visible-hEebyvPo"}},48247:e=>{ +e.exports={wrap:"wrap-gUfy4kTJ",space:"space-gUfy4kTJ",tree:"tree-gUfy4kTJ"}},30608:e=>{e.exports={button:"button-IulLF4sY",disabled:"disabled-IulLF4sY"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>_,InputClasses:()=>g});var o=n(59496),r=n(97754),s=n(88537),i=n(66092),l=n(90186),a=n(86332),c=n(95604);var d=n(21103),u=n.n(d);function h(e){let t="";return 0!==e&&(1&e&&(t=r(t,u()["no-corner-top-left"])),2&e&&(t=r(t,u()["no-corner-top-right"])),4&e&&(t=r(t,u()["no-corner-bottom-right"])),8&e&&(t=r(t,u()["no-corner-bottom-left"]))),t}function p(e,t,n,o){const{removeRoundBorder:s,className:i,intent:l="default",borderStyle:a="thin",size:d,highlight:p,disabled:f,readonly:g,stretch:m,noReadonlyStyles:v,isFocused:_}=e,b=h(null!=s?s:(0,c.getGroupCellRemoveRoundBorders)(n));return r(u().container,u()["intent-"+l],u()["border-"+a],d&&u()["size-"+d],b,p&&u()["with-highlight"],f&&u().disabled,g&&!v&&u().readonly,_&&u().focused,m&&u().stretch,t&&u().grouped,!o&&u()["adjust-position"],n.isTop&&u()["first-row"],n.isLeft&&u()["first-col"],i)}function f(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return u().highlight;const s=h(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(u().highlight,u().shown,s)}const g={FontSizeMedium:(0,s.ensureDefined)(u()["font-size-medium"]),FontSizeLarge:(0,s.ensureDefined)(u()["font-size-large"])},m={passive:!1};function v(e,t){const{id:n,role:r,onFocus:s,onBlur:c,onMouseOver:d,onMouseOut:u,onMouseDown:h,onMouseUp:g,onKeyDown:v,onClick:_,tabIndex:b,startSlot:S,middleSlot:y,endSlot:C,onWheel:w,onWheelNoPassive:T=null}=e,{isGrouped:I,cellState:E,disablePositionAdjustment:M=!1}=(0,o.useContext)(a.ControlGroupContext),x=function(e,t=null,n){const r=(0,o.useRef)(null),s=(0,o.useRef)(null),i=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.addEventListener(e,t,n)},[]),l=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{l(),r.current=e,i()},[]);return(0,o.useEffect)(()=>(s.current=[e,t,n],i(),l),[e,t,n]),a}("wheel",T,m);return o.createElement("span",{id:n,role:r,className:p(e,I,E,M),tabIndex:b,ref:(0,i.useMergedRefs)([t,x]),onFocus:s,onBlur:c,onMouseOver:d,onMouseOut:u,onMouseDown:h,onMouseUp:g,onKeyDown:v,onClick:_,onWheel:w,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},S,y,C,o.createElement("span",{className:f(e,E)}))}v.displayName="ControlSkeleton";const _=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{BeforeSlot:()=>l,StartSlot:()=>a,MiddleSlot:()=>c,EndSlot:()=>d,AfterSlot:()=>u}) +;var o=n(59496),r=n(97754),s=n(10306),i=n.n(s);function l(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["before-slot"],t)},n)}function a(e){const{className:t,interactive:n=!0,icon:s=!1,children:l}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,t)},l)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["inner-slot"],i()["inner-middle-slot"],t)},n)}function d(e){const{className:t,interactive:n=!0,icon:s=!1,children:l}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,t)},l)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>_});var o=n(59496),r=n(97754),s=n(90186),i=n(47201),l=n(48907),a=n(66092),c=n(48027),d=n(29202),u=n(45812),h=n(67029),p=n(78274),f=n(66579),g=n.n(f);function m(e){return!(0,s.isAriaAttribute)(e)&&!(0,s.isDataAttribute)(e)}function v(e){const{id:t,title:n,role:i,tabIndex:l,placeholder:a,name:c,type:d,value:u,defaultValue:f,draggable:v,autoComplete:_,autoFocus:b,maxLength:S,min:y,max:C,step:w,pattern:T,inputMode:I,onSelect:E,onFocus:M,onBlur:x,onKeyDown:D,onKeyUp:A,onKeyPress:L,onChange:N,onDragStart:k,size:O="medium",className:B,inputClassName:R,disabled:F,readonly:P,containerTabIndex:j,startSlot:z,endSlot:V,reference:H,containerReference:G,onContainerFocus:W,...U}=e,K=(0,s.filterProps)(U,m),Z={...(0,s.filterAriaProps)(U),...(0,s.filterDataProps)(U),id:t,title:n,role:i,tabIndex:l,placeholder:a,name:c,type:d,value:u,defaultValue:f,draggable:v,autoComplete:_,autoFocus:b,maxLength:S,min:y,max:C,step:w,pattern:T,inputMode:I,onSelect:E,onFocus:M,onBlur:x,onKeyDown:D,onKeyUp:A,onKeyPress:L,onChange:N,onDragStart:k};return o.createElement(h.ControlSkeleton,{...K,disabled:F,readonly:P,tabIndex:j,className:r(g().container,B),size:O,ref:G,onFocus:W,startSlot:z,middleSlot:o.createElement(p.MiddleSlot,null,o.createElement("input",{...Z,className:r(g().input,R,z&&g()["with-start-slot"],V&&g()["with-end-slot"]),disabled:F,readOnly:P,ref:H})),endSlot:V})}function _(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:s,onBlur:h,reference:p,containerReference:f=null}=e,g=(0,o.useRef)(null),m=(0,o.useRef)(null),[_,b]=(0,d.useFocus)(),S=t?void 0:_?-1:r,y=t?void 0:_?r:-1,{isMouseDown:C,handleMouseDown:w,handleMouseUp:T}=(0,u.useIsMouseDown)(),I=(0,i.createSafeMulticastEventHandler)(b.onFocus,(function(e){n&&!C.current&&(0,l.selectAllContent)(e.currentTarget)}),s),E=(0,i.createSafeMulticastEventHandler)(b.onBlur,h),M=(0,o.useCallback)(e=>{g.current=e,p&&("function"==typeof p&&p(e),"object"==typeof p&&(p.current=e))},[g,p]);return o.createElement(v,{...e,isFocused:_,containerTabIndex:S,tabIndex:y,onContainerFocus:function(e){m.current===e.target&&null!==g.current&&g.current.focus()},onFocus:I,onBlur:E,reference:M,containerReference:(0,a.useMergedRefs)([m,f]),onMouseDown:w,onMouseUp:T})}},48027:(e,t,n)=>{ +"use strict";n.d(t,{useControl:()=>s});var o=n(47201),r=n(29202);function s(e){const{onFocus:t,onBlur:n,intent:s,highlight:i,disabled:l}=e,[a,c]=(0,r.useFocus)(void 0,l),d=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onFocus,t),u=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onBlur,n);return{...e,intent:s||(a?"primary":"default"),highlight:null!=i?i:a,onFocus:d,onBlur:u}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const s={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,s]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r});var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},94250:(e,t,n)=>{"use strict";n.d(t,{ManageDrawings:()=>C});var o=n(59496),r=n(88537),s=n(9745),i=n(26843),l=n(45345),a=n(28353),c=n(24980),d=n(98125),u=n(14291),h=n(64530),p=n(80643),f=n(61074),g=n(72802),m=n(70029),v=n(9267);(0,d.getLogger)("Chart.ManageDrawings");const _=new c.TranslatedString("remove all line tools for {symbol}",(0,a.t)("remove all line tools for {symbol}")),b=e=>(0,a.t)("{drawingsCount} drawing",{plural:"{drawingsCount} drawings",count:e}).format({drawingsCount:e.toString()}),S=(0,a.t)("Remove all drawings for this symbol"),y=(0,a.t)("No drawings yet");class C extends o.PureComponent{constructor(e){super(e),this._totalCount=0,this._model=null,this._symbolDrawingsMap=null,this._storageContentLoadingPromise=null,this._onItemClick=e=>{""!==e&&(this.props.chartWidget.setSymbol(e),null!==this._model&&this.setState({currentSymbol:e}),this.props.onClose&&this.props.onClose())},this._onRemove=async e=>{if(this._model&&this._symbolDrawingsMap){const t=this._symbolDrawingsMap.get(e);if(t){const n=Array.from(t).map(e=>(0,r.ensureNotNull)(this._model).model().dataSourceForId(e)).filter(p.notNull);n.length>0&&this._model.removeSources(n,!1,_.format({symbol:e})),this._updateItems()}}},this._updateItems=async()=>{if(null!==this._model){const e=await this._getItems(this._model.model().dataSources());this.setState({items:e})}},this._updateTheme=()=>{const e=l.watchedTheme.value();this.setState({theme:e})},this.state={currentSymbol:null,items:null,theme:l.watchedTheme.value()}}componentDidMount(){this.props.chartWidget.withModel(this,async()=>{ +this._model=this.props.chartWidget.model(),this._model.model().dataSourceCollectionChanged().subscribe(this,this._updateItems);const e=await this._getItems(this._model.model().dataSources());this.setState({currentSymbol:this._model.mainSeries().symbol(),items:e},()=>{var e,t;return null===(t=(e=this.props).onInitialized)||void 0===t?void 0:t.call(e)})}),l.watchedTheme.subscribe(this._updateTheme)}componentWillUnmount(){l.watchedTheme.unsubscribe(this._updateTheme),null!==this._model&&this._model.model().dataSourceCollectionChanged().unsubscribe(this,this._updateItems)}render(){const{isMobile:e}=this.props,{currentSymbol:t,items:n}=this.state,r=this._symbolDrawingsMap?this._symbolDrawingsMap.size:0,s=`${i=r,(0,a.t)("{symbolsCount} symbol",{plural:"{symbolsCount} symbols",context:"symbols_and_drawings_count",count:i}).format({symbolsCount:i.toString()})} ${(e=>(0,a.t)("with {drawingsCount} drawing",{plural:"with {drawingsCount} drawings",context:"symbols_and_drawings_count",count:e}).format({drawingsCount:e.toString()}))(this._totalCount)}`;var i;return o.createElement(o.Fragment,null,n&&n.length>0&&o.createElement("div",{className:v.title},s),null===n||0===n.length?this._renderEmptyContent():n.map(n=>o.createElement(h.DialogContentItem,{key:n.symbol,title:n.symbol,subtitle:b(n.drawingsCount),removeBtnLabel:S,isActive:n.symbol===t,isMobile:e,onClick:this._onItemClick.bind(this,n.symbol),onClickRemove:this._onRemove.bind(this,n.symbol),showFavorite:!1})))}_renderEmptyContent(){const{theme:e}=this.state,t=e===i.StdTheme.Dark?m:g;return null===this._symbolDrawingsMap?o.createElement(f.Spinner,{className:v.spinner}):o.createElement("div",{className:v.empty},o.createElement(s.Icon,{className:v.image,icon:t}),o.createElement("span",null,y))}async _getStorageContent(){return new Map}async _getItems(e){const t=[],n=this._getSymbolDrawingsMap(e);return(await this._getStorageContent()).forEach((e,t)=>{const o=n.get(t)||new Set;e.forEach(e=>o.add(e)),n.set(t,o)}),this._symbolDrawingsMap=n,this._totalCount=0,this._symbolDrawingsMap.forEach((e,n)=>{t.push({symbol:n,drawingsCount:e.size}),this._totalCount=this._totalCount+e.size}),t.sort((e,t)=>e.drawingsCount===t.drawingsCount?e.symbol.localeCompare(t.symbol):e.drawingsCount>t.drawingsCount?-1:1)}_getSymbolDrawingsMap(e){const t=new Map;return e.forEach(e=>{var n;if((0,u.isLineTool)(e)&&e.showInObjectTree()){const o=null!==(n=e.symbol())&&void 0!==n?n:"",r=t.get(o)||new Set;r.add(e.id()),t.set(o,r)}}),t}}},49469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjectTreeDialogRenderer:()=>Jo});var o=n(59496),r=n(87995);async function s(e,t,n){let o;for(let r=0;rPromise.resolve())}var l=n(98125);const a=(0,l.getLogger)("DataSourcesIcons");let c=null;function d(){const e=n.c[45749];return e?Promise.resolve(e.exports.lineToolsIcons):n.e(1890).then(n.bind(n,45749)).then(e=>e.lineToolsIcons)}function u(){const e=n.c[37466] +;return e?Promise.resolve(e.exports.SERIES_ICONS):n.e(3718).then(n.bind(n,37466)).then(e=>e.SERIES_ICONS)}let h=null;function p(){return null===h&&(h=function(){const e=i(d,2).then(e=>e).catch(e=>(a.logWarn(e),{})),t=i(u,2).then(e=>e).catch(e=>(a.logWarn(e),{}));return Promise.all([e,t])}()),h.then(e=>(c={linetool:e[0],series:e[1]},c))}var f=n(41590),g=n(37558),m=n(90692),v=n(28353),_=n(85457),b=n(24437),S=n(94250);var y=n(9837),C=n.n(y),w=n(36349),T=n(32563),I=n(88537),E=n(97754),M=n.n(E),x=n(9745),D=n(16396),A=n(35390),L=n(36947);const N=o.createContext(null);var k=n(14593),O=n(16788),B=n(36666),R=n(38593),F=n(41223),P=n(51768);function j(e){const{viewModel:t}=(0,I.ensureNotNull)((0,o.useContext)(N)),n=(0,L.useForceUpdate)(),r=t.selection();(0,o.useEffect)(()=>{const e={};return t.onChange().subscribe(e,()=>n()),()=>{t.onChange().unsubscribeAll(e)}},[t]),(0,o.useEffect)(()=>{const e={};return r.onChange().subscribe(e,()=>n()),()=>{r.onChange().unsubscribeAll(e)}},[r]);const s=!t.canSelectionBeUnmerged(),i=t.isSelectionCopiable(),l=t.isSelectionCloneable(),a=!i&&!l,c=t.canSelectionBeGrouped();return o.createElement(o.Fragment,null,o.createElement("div",{className:E(F.title,F.withoutIcon)},(0,v.t)("Object tree"),!1),o.createElement("div",{className:F.buttons},o.createElement(k.ToolWidgetIconButton,{className:E(F.button,!c&&F.disabled),icon:R,onClick:function(){t.createGroupFromSelection()},isDisabled:!c,title:(0,v.t)("Create a group of drawings"),"data-name":"group-button"}),o.createElement(A.ToolWidgetMenu,{className:E(F.button,a&&F.disabled),isDisabled:a,content:o.createElement(x.Icon,{icon:O}),title:(0,v.t)("Clone, Copy"),arrow:!1,isShowTooltip:!0,"data-name":"copy-clone-button"},i&&o.createElement(D.PopupMenuItem,{"data-name":"copy",label:(0,v.t)("Copy"),onClick:function(){t.copySelection()}}),l&&o.createElement(D.PopupMenuItem,{"data-name":"clone",label:(0,v.t)("Clone"),onClick:function(){t.cloneSelection()}})),o.createElement(A.ToolWidgetMenu,{className:E(F.button,s&&F.disabled),isDisabled:s,content:o.createElement(x.Icon,{icon:B}),title:(0,v.t)("Move to"),arrow:!1,isShowTooltip:!0,"data-name":"move-to-button"},o.createElement(D.PopupMenuItem,{"data-name":"new-pane-above",label:(0,v.t)("New pane above"),onClick:function(){t.unmergeSelectionUp()}}),o.createElement(D.PopupMenuItem,{"data-name":"new-pane-below",label:(0,v.t)("New pane below"),onClick:function(){t.unmergeSelectionDown()}}))))}var z=n(54773),V=n(79049),H=n(11307),G=n(36028),W=n(86416);const U=(K="OBJECT_TREE",e=>K+"__"+e);var K;const Z=U("SET_NODES"),Q=U("SYNC_NODES"),X=U("UPDATE_NODE"),$=U("UPDATE_NODES"),q=U("RESET_TREE"),J=U("SET_SELECTED_IDS"),Y=U("DROP_SELECTION"),ee=U("SELECT_PREVIOUS"),te=U("SELECT_NEXT"),ne=U("MULTI_SELECT_PREVIOUS"),oe=U("MULTI_SELECT_NEXT"),re=U("PROCESS_DROP_TARGET"),se=U("UPDATE_DROP_TARGET"),ie=U("HIDE_DROP_TARGET"),le=U("START_MULTI_SELECT"),ae=U("STOP_MULTI_SELECT"),ce=(U("REMOVE_NODE"), +U("SET_FOCUSED_NODE")),de=U("SCROLL_TO_ID"),ue=U("SET_IS_SELECTED"),he=U("SET_IS_EXPANDED"),pe=U("SET_DISABLED_NODES"),fe=U("MOVE_NODES"),ge=(U("START_DRAG"),U("END_DRAG")),me=()=>({type:ee}),ve=()=>({type:te}),_e=()=>({type:ne}),be=()=>({type:oe}),Se=(e,t,n,o,r)=>({type:re,dropTarget:e,dropType:t,isHoveredLeft:n,boundBox:o,isLastChild:r}),ye=()=>({type:Y}),Ce=e=>({type:J,ids:e}),we=(e,t,n)=>({type:fe,ids:e,targetId:t,dropType:n}),Te=()=>({type:le}),Ie=()=>({type:ae}),Ee=e=>({type:ce,nodeId:e}),Me=e=>({type:de,nodeId:e}),xe=(e,t,n=0)=>({type:ue,nodeId:e,isSelected:t,mode:n}),De=(e,t)=>({type:he,nodeId:e,isExpanded:t}),Ae=e=>({type:pe,ids:e}),Le=()=>({type:ge});var Ne=n(77145);const ke=e=>e.nodes,Oe=e=>e.selection,Be=e=>e.dropTarget,Re=e=>e.expanded,Fe=e=>e.scrollToId,Pe=(e,t)=>t,je=(0,Ne.createSelector)([ke,Pe],(e,t)=>e[t]),ze=(0,Ne.createSelector)([Oe,Pe],(e,t)=>e.ids.includes(t)),Ve=(0,Ne.createSelector)([Re,Pe],(e,t)=>e.includes(t)),He=(0,Ne.createSelector)([e=>e.disabled,Oe,Pe],(e,t,n)=>!t.ids.includes(n)&&e.includes(n)),Ge=(0,Ne.createSelector)(ke,e=>Object.keys(e)),We=(0,Ne.createSelector)(Oe,({ids:e})=>e),Ue=(0,Ne.createSelector)(Oe,({lastFocusedNodeId:e})=>e),Ke=(0,Ne.createSelector)(Oe,({isMultiSelecting:e})=>e),Ze=(0,Ne.createSelector)([ke,We],(e,t)=>t.map(t=>e[t])),Qe=(0,Ne.createSelector)(ke,e=>Object.values(e).filter(e=>0===e.level)),Xe=(0,Ne.createSelector)([ke,Qe],(e,t)=>t.reduce((t,n)=>[...t,...$e(e,(0,I.ensureDefined)(n))],[]));function $e(e,t){const n=[];for(const o of t.children)n.push(e[o]),n.push(...$e(e,e[o]));return n}const qe=(0,Ne.createSelector)([ke,Qe,Re],(e,t,n)=>{const o=new Set(n);return t.reduce((t,n)=>[...t,...Ye(e,(0,I.ensureDefined)(n),o)],[])}),Je=(0,Ne.createSelector)([ke,We,Re],(e,t,n)=>{const o=new Set(n);return[{id:"drag-list",level:-1,children:t}].reduce((t,n)=>[...t,...Ye(e,(0,I.ensureDefined)(n),o)],[])});function Ye(e,t,n){const o=[];for(const r of t.children){const t=e[r];void 0!==t&&(o.push(t),n.has(r)&&o.push(...Ye(e,t,n)))}return o}function*et(e){const{selectedIds:t,nodes:n}=yield(0,w.call)(e),o={};for(let e=0;e({type:Z,nodes:e}))(o)),yield(0,w.put)(Ce(t));!Ue(yield(0,w.select)())&&t.length>0&&(yield(0,w.put)(Ee(t[0])),yield(0,w.put)(Me(t[0])))}function*tt(e){for(;;){if((yield(0,w.take)([le,ae])).type===le){const t=Ge(yield(0,w.select)()).filter(t=>!e(t));yield(0,w.put)(Ae(t))}else yield(0,w.put)(Ae([]))}}function*nt(){for(;;){const{type:e}=yield(0,w.take)([oe,ne]),t=yield(0,w.select)(),n=Xe(t),o=n.length,r=Ue(t),s=[...We(t)],i=1===s.length&&s[0]!==r,l=n.findIndex(e=>e.id===(i?s[0]:r));if(e===ne&&0===l||e===oe&&l===o-1)continue;const a=ct(t,e===oe?"next":"previous",n,l),{id:c}=a;s.includes(c)&&r?(yield(0,w.put)(xe(r,!1,1)),yield(0,w.put)(Ee(c))):yield(0,w.put)(xe(c,!0,1)),yield(0,w.put)(Me(c))}}function*ot(e,t){for(;;){const{type:n}=yield(0,w.take)([te,ee]),o=yield(0,w.select)(),r=Xe(o),s=Ze(o),i=Ue(o);if(1===s.length&&s[0].id!==i&&!i){if(n===te){yield(0,w.put)(Ee(s[0].id));continue}if(n===ee){ +const e=r.findIndex(e=>e.id===s[0].id),t=ct(o,"previous",r,e);yield(0,w.put)(Ee(t.id));continue}}const l=r.findIndex(e=>e.id===i),a=n===te?"next":"previous",c=ct(o,a,r,l),{id:d}=c;e?e([d],a):yield(0,w.put)(Ce([d])),t&&t(d),yield(0,w.put)(Ee(d))}}function*rt(e,t=(()=>!0)){for(;;){const{mode:n,nodeId:o,isSelected:r}=yield(0,w.take)(ue);let s=[...We(yield(0,w.select)())];const i=Xe(yield(0,w.select)());if(1===n)r?s.push(o):s.splice(s.indexOf(o),1);else if(2===n&&s.length>0){const e=Ue(yield(0,w.select)());let n=i.findIndex(t=>t.id===e);-1===n&&(n=i.reduce((e,t,n)=>s.includes(t.id)?n:e,-1));const r=i.findIndex(e=>e.id===o);if(n!==r)for(let e=Math.min(n,r);e<=Math.max(n,r);e++){const n=i[e].id;!s.includes(n)&&t(n)&&s.push(n)}}else s=o?[o]:[];const l=new Set(s);s=i.reduce((e,t)=>(l.has(t.id)&&e.push(t.id),e),[]),e?e(s):yield(0,w.put)(Ce(s)),yield(0,w.put)(Ee(o))}}function*st(e=(()=>!0),t){const{dropTarget:n,dropType:o,isHoveredLeft:r,boundBox:s,isLastChild:i}=t,l=Be(yield(0,w.select)()),a=je(yield(0,w.select)(),(0,I.ensureDefined)(n.parentId)),c=i&&"after"===o,d=Ze(yield(0,w.select)()),u=!c||!r&&e(d,n,o)?n:a,h=l.node&&l.node.id!==u.id||l.dropType!==o;d.map(e=>e.id).includes(u.id)?yield(0,w.put)({type:ie}):h&&e(d,u,o)&&(yield(0,w.put)(((e,t,n)=>({type:se,node:e,dropType:t,boundBox:n}))(u,o,s)))}function*it(e){yield(0,w.throttle)(0,re,st,e)}function*lt(e){for(;;){yield(0,w.take)(Y);const t=Ze(yield(0,w.select)()),{node:n,dropType:o}=Be(yield(0,w.select)());if(n&&o){const r=new CustomEvent("tree-node-drop",{detail:{nodes:t,target:n.id,type:o}});if(e&&e(r),!r.defaultPrevented){const e=We(yield(0,w.select)());yield(0,w.put)(we(e,n.id,o))}}}}function*at(e){for(;;){yield(0,w.take)(fe);e(ke(yield(0,w.select)()))}}function ct(e,t,n,o){const r=n.length;let s;-1===o&&"previous"===t&&(o=r);let i=0;for(;!s||Math.abs(i)1&&!Ve(e,(0,I.ensureDefined)(l.parentId)));)i+="next"===t?1:-1,s=n[(o+i+r)%r];var l;return s}function*dt(e={}){const{saga:t,onDrop:n,canMove:o,onMove:r,onSelect:s,onKeyboardSelect:i,initState:l,canBeAddedToSelection:a}=e,c=[(0,w.fork)(it,o),(0,w.fork)(lt,n),(0,w.fork)(rt,s,a),(0,w.fork)(ot,s,i),(0,w.fork)(nt)];for(t&&c.push((0,w.fork)(t)),r&&c.push((0,w.fork)(at,r)),a&&c.push((0,w.fork)(tt,a));;){l&&(yield(0,w.call)(et,l));const e=yield(0,w.all)(c);yield(0,w.take)(q);for(const t of e)yield(0,w.cancel)(t)}}var ut=n(83243),ht=n(80643);const pt=(0,l.getLogger)("Platform.GUI.ObjectTree.CallApi");const ft={ids:[],lastFocusedNodeId:void 0,isMultiSelecting:!1};const gt={node:void 0,dropType:void 0,boundBox:void 0};const mt=(0,ut.combineReducers)({nodes:function(e={},t){switch(t.type){case Z:return t.nodes;case Q:{const{nodes:n}=t,o=n.map(e=>e.id),r={...e};for(const t of Object.keys(e))if(!o.includes(t)){const{parentId:e}=r[t];e&&(r[e]={...r[e],children:r[e].children.filter(e=>e!==t)}),delete r[t]}for(const e of n){const t=e.id;if(r.hasOwnProperty(t)){!(0,ht.deepEquals)(r[t].children,e.children)[0]&&(r[t]={...r[t],children:[...e.children]})}else{r[t]=e;const{parentId:n}=e +;if(n&&!r[n].children.includes(t))throw new Error("Not implemented")}}return r}case X:{const{type:n,nodeId:o,...r}=t;return{...e,[o]:{...e[o],...r}}}case $:{const{nodes:n}=t,o={...e};return Object.keys(n).forEach(e=>{o[e]={...o[e],...n[e]}}),{...e,...o}}case fe:{const{ids:n,targetId:o,dropType:r}=t,s=(0,I.ensureDefined)(e[o].parentId),i=e[s],l={};for(const t of n){const n=e[t];if(n.parentId){const o=l[n.parentId]||e[n.parentId];l[n.parentId]={...o,children:o.children.filter(e=>e!==t)}}l[t]={...n,parentId:s,level:i.level+1}}const a=i.children.filter(e=>!n.includes(e));return a.splice(((e,t,n)=>{switch(n){case"before":return e.indexOf((0,I.ensureDefined)(t));case"inside":return e.length;case"after":return e.indexOf((0,I.ensureDefined)(t))+1;default:return 0}})(a,o,r),0,...n),l[s]={...e[s],children:a,isExpanded:!0},{...e,...l}}default:return e}},selection:function(e=ft,t){switch(t.type){case J:{const{ids:n}=t;return{...e,ids:n,lastFocusedNodeId:n.length>0?e.lastFocusedNodeId:void 0}}case le:return{...e,isMultiSelecting:!0};case ae:return{...e,isMultiSelecting:!1};case ce:return{...e,lastFocusedNodeId:t.nodeId};case Q:{const n=new Set(t.nodes.map(e=>e.id));return e.lastFocusedNodeId&&!n.has(e.lastFocusedNodeId)&&delete e.lastFocusedNodeId,{...e,ids:e.ids.filter(e=>n.has(e))}}default:return e}},dropTarget:function(e=gt,t){switch(t.type){case se:{const{node:n,dropType:o,boundBox:r}=t;return{...e,node:n,dropType:o,boundBox:r}}case ie:case ge:case q:return{...gt};default:return e}},expanded:function(e=[],t){switch(t.type){case he:{const{nodeId:n,isExpanded:o}=t;if(o)return[...e,n];const r=[...e];return r.splice(e.indexOf(n),1),r}default:return e}},disabled:function(e=[],t){switch(t.type){case pe:return[...t.ids];default:return e}},scrollToId:function(e=null,t){switch(t.type){case de:return null===t.nodeId?null:{id:t.nodeId};default:return e}}});var vt=n(35126),_t=n(69397),bt=n(49483);var St=n(61625),yt=n(53408),Ct=n(68335),wt=n(47201),Tt=n(70412);const It=o.createContext({size:0,smallSizeTreeNodeAction:1}),Et={[Ct.Modifiers.Mod]:1,[Ct.Modifiers.Shift]:2};var Mt=n(88142),xt=n(91069);const Dt=()=>{};class At extends o.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e;const{connectDragSource:t,connectDropTarget:n,connectDragPreview:o}=this.props;(0,I.ensureDefined)(n)(this._ref),(0,I.ensureDefined)(t)(this._ref),(0,I.ensureDefined)(o)((0,yt.getEmptyImage)(),{captureDraggingState:!0})},this._handleTouchStart=e=>{const t=(e,t)=>{const n=function(e,t){try{const n=document.createEvent("TouchEvent");return n.initTouchEvent(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.touches,t.targetTouches,t.changedTouches),n}catch(e){return null}}(e,t);if(n)return n;const o=Array.from(t.changedTouches),r=Array.from(t.touches),s=Array.from(t.targetTouches);return new TouchEvent(e,{bubbles:!0,changedTouches:o,touches:r,targetTouches:s})},n=e.target;if(n instanceof Element){const e=e=>{const o=e;if(!n.isConnected){o.preventDefault();const e=t("touchmove",o) +;document.body.dispatchEvent(e)}},o=r=>{const s=r;if(!n.isConnected){s.preventDefault();const e=t("touchend",s);document.body.dispatchEvent(e)}n.removeEventListener("touchend",o),n.removeEventListener("touchmove",e)};n.addEventListener("touchend",o),n.addEventListener("touchmove",e)}}}componentDidMount(){var e;null===(e=this._ref)||void 0===e||e.addEventListener("touchstart",this._handleTouchStart)}componentWillUnmount(){var e;null===(e=this._ref)||void 0===e||e.removeEventListener("touchstart",this._handleTouchStart)}render(){return o.createElement(Lt,{...this.props,reference:this._handleRef})}getNode(){return(0,I.ensureNotNull)(this._ref)}}const Lt=e=>{const{id:t,isSelected:n,isOffset:r,isExpandable:s,setIsSelected:i,isDisabled:l,isExpanded:a,onClick:c,parentId:d,setIsExpanded:u,reference:h,isFirstListItem:p,isLastListItem:f,nodeRenderer:g,isChildOfSelected:m=!1}=e,{size:v,smallSizeTreeNodeAction:_}=(0,o.useContext)(It),b=(0,o.useRef)(null),S=(0,wt.createSafeMulticastEventHandler)(e=>b.current=e,h);let[y,C]=(0,Tt.useHover)();return(bt.CheckMobile.any()||bt.CheckMobile.isIPad())&&(y=n,C={onMouseOut:Dt,onMouseOver:Dt}),o.createElement("div",{className:E(xt.wrap,n&&xt.selected,m&&xt.childOfSelected,l&&xt.disabled,s&&xt.expandable),onClick:1===v&&0===_?w:function(e){if(e.defaultPrevented)return;const o=Et[(0,Ct.modifiersFromEvent)(e)]||0;!l&&i&&i(t,!n,o);c&&0===o&&c(e,t)},onContextMenu:w,ref:S,...C},s&&o.createElement(x.Icon,{icon:Mt,className:E(xt.expandHandle,a&&xt.expanded),onClick:function(e){e.preventDefault(),s&&u(t,!a)},onMouseDown:function(e){e.preventDefault()}}),g({id:t,isOffset:r,parentId:d,isDisabled:l,isSelected:n,isChildOfSelected:m,isHovered:y,isExpanded:a,isFirstListItem:p,isLastListItem:f}));function w(){l||n||!i||i(t,!0)}},Nt=o.createContext({});function kt(e,t){const{id:n}=t,o=je(e,n),r=ze(e,n);let s=!1,i=o.parentId;for(;i&&!s;)s=ze(e,i),i=je(e,i).parentId;return{...o,isSelected:r,isChildOfSelected:s,isExpanded:o.children.length>0&&Ve(e,n),isExpandable:o.children.length>0,isDisabled:He(e,n)}}function Ot(e){return(0,ut.bindActionCreators)({setIsExpanded:De,processDropTarget:Se,dropSelection:ye,selectNext:ve,selectPrevious:me,setIsSelected:xe,endDrag:Le},e)}const Bt=(0,St.DragSource)("node",{beginDrag:e=>{const{id:t,isDisabled:n,isSelected:o}=e;return n||o||e.setIsSelected(t,!0),e},endDrag:e=>e.endDrag()},e=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()})),Rt=(0,vt.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const o=n.getNode(),r=o.getBoundingClientRect(),s=r.bottom-r.top,i=t.getClientOffset();if(i){const t=i.y-r.top;let n,l;if(n=0===e.children.length?t=s/3&&t<2*s/3?"inside":"after",void 0!==e.getContainerElement){const t=e.getContainerElement().getBoundingClientRect();l={top:r.top-t.top,left:r.left-t.left,bottom:r.top-t.top+r.height,right:r.left-t.left+r.width,height:r.height,width:r.width}}else l={top:o.offsetTop,left:o.offsetLeft,bottom:o.offsetTop+o.offsetHeight,right:o.offsetLeft+o.offsetWidth,height:o.offsetHeight, +width:o.offsetWidth};e.processDropTarget(e,n,i.x-r.left<48,l,e.isLastChild)}}},e=>({connectDropTarget:e.dropTarget()})),Ft=(0,V.connect)(kt,Ot,null,{context:Nt})(Bt(Rt(At))),Pt=(0,V.connect)(kt,Ot,null,{context:Nt})(Lt);var jt=n(35749),zt=n(53614),Vt=n(65718);function Ht(e){const t=e(),n=(0,o.useRef)(t);n.current=t;const[r,s]=(0,o.useState)(n.current),i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,s(n.current)}))}),(0,o.useEffect)(()=>()=>{i.current&&cancelAnimationFrame(i.current)},[]),r}function Gt(e){const{dropTargetOffset:t,mousePosition:n}=e;if(!t)return{display:"none"};const{x:o,y:r}=t,s=n&&t?n.y-t.y:0,i=`translate(${o+(n&&t?n.x-t.x:0)}px, ${r+s}px)`;return{transform:i,WebkitTransform:i}}const Wt={top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:100,opacity:.5,width:300,backgroundColor:"red"};const Ut=(0,zt.DragLayer)((function(e){return{isDragging:e.isDragging()&&"node"===e.getItemType(),mousePosition:e.getClientOffset(),dropTargetOffset:e.getSourceClientOffset()}}))((0,V.connect)((function(e){return{items:Je(e)}}),null,null,{context:Nt})((function(e){const{items:t,isDragging:n,nodeRenderer:r,dragPreviewRenderer:s}=e;return Ht((function(){return n?o.createElement(Vt.Portal,null,o.createElement("div",{style:{...Wt,...Gt(e)}},t.map(e=>{if(s){const t=s;return o.createElement(t,{key:e.id,...e})}return o.createElement(Pt,{id:e.id,key:e.id,nodeRenderer:r,isDragPreview:!0,isOffset:e.level>1})}))):null}))})));var Kt=n(3085),Zt=n(33127);const Qt=o.forwardRef((e,t)=>{const n=(0,o.useRef)(null);return e.connectDropTarget(n),(0,o.useImperativeHandle)(t,()=>({getNode:()=>(0,I.ensureNotNull)(n.current)}),[]),o.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})}),Xt=(0,vt.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const o=t.getClientOffset();if(null===o)return;const r=e.getOrderedNodes();if(0===r.length)return;const s=n.getNode().getBoundingClientRect(),i=e.getContainerElement().getBoundingClientRect();if("first"===e.type){const t={top:s.top-i.top+s.height,left:s.left-i.left,bottom:s.top-i.top+s.height,right:s.left-i.left+s.width,height:0,width:s.width};e.processDropTarget(r[0],"before",!1,t,!1)}if("last"===e.type){const t=o.x-s.left<48,n=r[r.length-1],l=t&&2===n.level?(0,I.ensureDefined)(r.find(e=>e.id===n.parentId)):n,a={top:s.top-i.top,left:s.left-i.left,bottom:s.top-i.top,right:s.left-i.left+s.width,height:s.height,width:s.width};e.processDropTarget(l,"after",t,a,!1)}}},e=>({connectDropTarget:e.dropTarget()}))(Qt),$t=o.createContext({isOver:!1,transform:void 0});var qt=n(62461);function Jt(e){const{dropType:t,boundBox:n}=e,{top:o,bottom:r,left:s}=(0,I.ensureDefined)(n);return[s,"before"===t||"inside"===t?o:r]}const Yt=(0,zt.DragLayer)((function(e){return{isDragging:e.isDragging()}}))((0,V.connect)((function(e){const{boundBox:t,dropType:n,node:o}=Be(e);return{boundBox:t,dropType:n,level:o?o.level:void 0}}),null,null,{context:Nt})((function(e){const{dropType:t,boundBox:n,isDragging:r,level:s,transform:i=Jt}=e +;return Ht((function(){if(!r||!t||!n)return null;const l={[qt.dropTarget]:"inside"!==t,[qt.dropTargetInside]:"inside"===t},{width:a,height:c}=n,[d,u]=i(e),h=`translate(${d}px, ${u}px)`;return o.createElement("div",{className:E(l),style:{position:"absolute",transform:h,WebkitTransform:h,top:0,left:2===s?"46px":0,width:2===s?a-46+"px":a,height:"inside"===t?c:"2px"}})}))}))),en=o.forwardRef((e,t)=>{const n=(0,o.useContext)($t);return o.createElement("div",{...e,ref:t},e.children,n.isOver&&o.createElement(Yt,{transform:n.transform}))});var tn=n(62820),nn=n(34244);const on=38+Ct.Modifiers.Shift,rn=40+Ct.Modifiers.Shift;const sn=o.forwardRef((function(e,t){const{navigationKeys:n,renderList:r,stopMultiSelect:s,startMultiSelect:i,isMultiSelecting:l,nodeRenderer:a,dragPreviewRenderer:c,className:d,connectDropTarget:u,readOnly:h,onClick:p,dropLayerTransform:f,setFocusedNode:g,scrollToId:m,rowHeight:v,onMultiSelectPrevious:_,onMultiSelectNext:b,onMoveCursorToNext:S,onMoveCursorToPrevious:y,outerRef:C,width:w,height:T,isOver:E,processDropTarget:x}=e,D=(0,o.useContext)(N),A=(0,o.useRef)(null);(0,o.useEffect)(()=>{const e=e=>{[Ct.Modifiers.Mod,Ct.Modifiers.Shift].includes((0,Ct.modifiersFromEvent)(e))&&i()},t=e=>{l&&![Ct.Modifiers.Mod,Ct.Modifiers.Shift].includes((0,Ct.modifiersFromEvent)(e))&&s()};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("mousemove",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),document.removeEventListener("mousemove",t)}},[l]),function(e){(0,o.useEffect)(()=>{if(bt.isEdge){let t=null;const n=(0,I.ensureNotNull)(e.current),o=e=>{if(e.target instanceof Element){const n=(0,I.ensureNotNull)(e.target.closest("[draggable]"));n instanceof HTMLElement&&(n.style.opacity="0",t=requestAnimationFrame(()=>n.style.opacity="1"))}};return n.addEventListener("dragstart",o),()=>{n.removeEventListener("dragstart",o),null!==t&&cancelAnimationFrame(t)}}return()=>{}},[])}(A);const L=(0,o.useCallback)(()=>(0,I.ensureNotNull)(U.current),[]),k=(0,o.useCallback)(()=>r,[r]),O=(0,o.useMemo)(()=>{const e=h?Pt:Ft,t=[];let n;t.push({type:"padding",node:o.createElement(Xt,{type:"first",key:"padding-top",getContainerElement:L,getOrderedNodes:k,processDropTarget:x})});for(let s=0;s0,nodeRenderer:a,readOnly:h,onClick:p,isOffset:i.level>1,getContainerElement:L})})}return t.push({type:"padding",node:o.createElement(Xt,{type:"last",key:"padding-bottom",getContainerElement:L,getOrderedNodes:k,processDropTarget:x})}),t},[r]),B=(0,o.useRef)([]);B.current=O;const R=(0,o.useCallback)(e=>{let{style:t}=e;const{index:n}=e;return n===B.current.length-1&&(t={...t,bottom:0,minHeight:t.height},delete t.height), +o.createElement("div",{style:t},B.current[n].node)},[]),F=(0,o.useCallback)(e=>{const t=B.current[e];return"padding"===t.type?6:"function"==typeof v?v(e,t):v},[v]),P=(0,o.useCallback)(e=>(0,I.ensure)(B.current[e].node.key),[]),j=(0,o.useMemo)(()=>null===m?{index:-1}:{index:B.current.findIndex(e=>e.node.key===m.id)},[m]);u(A);const[z,V,H,G]=(0,Zt.useOverlayScroll)(),W=(0,o.useRef)(null);(0,o.useEffect)(()=>(0,I.ensureNotNull)(W.current).resetAfterIndex(0,!0),[O]),(0,o.useEffect)(()=>(0,I.ensureNotNull)(W.current).scrollToItem(j.index),[j]);const U=(0,o.useRef)(null),K=(0,o.useMemo)(()=>({isOver:E,transform:f}),[E,f]),Z=(0,o.useRef)(null),Q=(0,o.useRef)({startScroll(e){const t=()=>{null!==H.current&&(Z.current=requestAnimationFrame(t),H.current.scrollBy({top:e}))};this.stopScroll(),t()},stopScroll(){null!==Z.current&&(cancelAnimationFrame(Z.current),Z.current=null)},getListElement:()=>H.current});return(0,o.useImperativeHandle)(t,()=>Q.current,[]),(0,o.useEffect)(()=>()=>Q.current.stopScroll(),[E]),o.createElement($t.Provider,{value:K},o.createElement("div",{...V,className:M()(nn.tree,d),ref:A,tabIndex:-1,onKeyDown:function(e){const t=(0,Ct.hashFromEvent)(e);if(e.defaultPrevented||(0,jt.isNativeUIInteraction)(t,e.target))return;D||t!==on||(e.preventDefault(),_());D||t!==rn||(e.preventDefault(),b());(38===t||void 0!==n&&"previous"===n[t])&&(e.preventDefault(),y());(40===t||void 0!==n&&"next"===n[t])&&(e.preventDefault(),S());if((8===t||46===t)&&D){const{viewModel:e}=D,t=e.selection(),n=t.selected();if(1!==n.length)return;const o=e.getNextNodeIdAfterRemove(n[0]);if(null===o)return;e.onChange().subscribe(null,()=>{if(t.selected().length)return;const n=e.entity(o);n&&(t.set([n]),g(o))},!0)}}},o.createElement(Kt.OverlayScrollContainer,{...z,className:nn.overlayScrollWrap}),o.createElement(_t.VariableSizeList,{ref:function(e){W.current=e},className:nn.listContainer,width:w,height:T,itemCount:O.length,itemSize:F,children:R,itemKey:P,outerRef:function(e){H.current=e,C&&C(e)},innerRef:function(e){U.current=e},innerElementType:en,onItemsRendered:function(){G()},overscanCount:20,direction:(0,tn.isRtl)()?"rtl":"ltr"}),o.createElement(Ut,{dragPreviewRenderer:c,nodeRenderer:a})))})),ln=(0,vt.DropTarget)("node",{drop:(e,t,n)=>{("touch"===e.drag||bt.isFF)&&n.stopScroll(),t.getItem().dropSelection()},hover:(e,t,n)=>{if("touch"!==e.drag&&!bt.isFF)return;const o=t.getClientOffset();if(null===o)return;const r=n.getListElement();if(null===r)return;const s=r.getBoundingClientRect();((t,o,r)=>{const s=Math.abs(t-r),i=Math.abs(t-o);if(i>40&&s>40||s<=40&&i<=40)return void n.stopScroll();var l,a,c,d;l=i>20&&i<=40,c=s<=20,d=i<=20,(a=s>20&&s<=40)||l?"touch"===e.drag?n.startScroll(a?-5:5):n.startScroll(a?-2:2):(c||d)&&("touch"===e.drag?n.startScroll(c?-10:10):n.startScroll(c?-5:5))})(o.y,s.bottom,s.top)}},(e,t)=>({connectDropTarget:e.dropTarget(),isOver:t.isOver()}))(sn);const an=(0,V.connect)((function(e){return{renderList:qe(e),orderedNodes:Xe(e),isMultiSelecting:Ke(e),selectedIds:We(e),scrollToId:Fe(e)}}),(function(e){return(0, +ut.bindActionCreators)({startMultiSelect:Te,stopMultiSelect:Ie,setFocusedNode:Ee,processDropTarget:Se,onMoveCursorToNext:ve,onMoveCursorToPrevious:me,onMultiSelectPrevious:_e,onMultiSelectNext:be},e)}),null,{context:Nt})(ln),cn={delayTouchStart:100};function dn(e){const{canBeAddedToSelection:t,initState:n,onSelect:r,canMove:s,onDrop:i,onMove:l,nodes:a,selectedIds:c,onKeyboardSelect:d,saga:u,lastFocusedNodeObject:h,lastSyncTimestampRef:p,scrollToId:f,...g}=e,[m,v]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const e=(0,z.default)();v(function(e){const t=(0,ut.applyMiddleware)(e);return(0,ut.createStore)(mt,t)}(e));const o=e.run(dt,{initState:n,onKeyboardSelect:d,saga:u,canMove:s,onMove:l,onDrop:i,onSelect:r,canBeAddedToSelection:t});return()=>o.cancel()},[]),(0,o.useEffect)(()=>(null!==m&&a&&(p&&(p.current=performance.now()),m.dispatch((e=>({type:Q,nodes:e}))(a))),()=>{}),[m,a]),(0,o.useEffect)(()=>{null!==m&&c&&m.dispatch(Ce(c))},[m,c]),(0,o.useEffect)(()=>{null!==m&&(null==h?void 0:h.id)&&m.dispatch(Ee(h.id))},[m,h]),null===m?null:o.createElement(un,{store:m,scrollToId:f,...g})}const un=o.memo((function(e){const{store:t,scrollToId:n,...r}=e,s="touch"===e.drag?G.TouchBackend:H.HTML5Backend;return(0,o.useEffect)(()=>{var e;t.dispatch(Me(null!==(e=null==n?void 0:n.id)&&void 0!==e?e:null))},[n]),o.createElement(W.DndProvider,{backend:s,options:cn},o.createElement(V.Provider,{store:t,context:Nt},o.createElement(an,{...r})))}));function hn(e,t){(0,P.trackEvent)("Object Tree",e,t)}function pn(e){return e.length>1?"Multi select":e[0].gaLabel()}function fn(e){return(0,z.eventChannel)(t=>{const n={};return e.onChange().subscribe(n,()=>t({type:q})),e.onGroupCreated().subscribe(n,e=>t(De(e,!0))),e.selection().onChange().subscribe(n,e=>t(Ce(e))),()=>{e.onChange().unsubscribeAll(n),e.selection().onChange().unsubscribeAll(n),e.onGroupCreated().unsubscribeAll(n)}},z.buffers.expanding())}function*gn(){for(;;)yield(0,w.take)([te,ee]),hn("Select","Arrow")}function*mn(){for(;;){const{mode:e}=yield(0,w.take)(ue);1===e&&hn("Multi select","Ctrl"),2===e&&hn("Multi select","Shift")}}function*vn(e){for(;;){yield(0,w.take)(Y);const{node:t,dropType:n}=Be(yield(0,w.select)());if(t){const o=Ze(yield(0,w.select)()),r=o.map(t=>(0,I.ensureNotNull)(e.entity(t.id)));let s="Drag";1===t.level&&"inside"!==n&&o.some(e=>2===e.level)?s="From the group":2!==t.level&&"inside"!==n||!o.some(e=>1===e.level)?1===o.length&&o[0].parentId!==t.parentId&&(s="Existing pane"):s="To the group",hn(s,pn(r))}}}function*_n(e){yield(0,w.fork)(gn),yield(0,w.fork)(mn),yield(0,w.fork)(vn,e)}function*bn(e){yield(0,w.fork)(_n,e);const t=yield(0,w.call)(fn,e);pt.logNormal("Opened object tree data source channel");try{for(;;){const e=yield(0,w.take)(t);yield(0,w.put)(e)}}finally{pt.logNormal("Closed object tree data source channel"),t.close()}}const Sn=o.createContext(null);var yn=n(54475),Cn=n(898),wn=n(48247);const Tn=T.mobiletouch?"touch":"native";function In(e){const{viewModel:t,showHeader:n=!0,nodeRenderer:r,isDialog:s=!1}=e,i=(0,o.useRef)(null),l=function(e){const[t,n]=(0, +o.useState)(e.getChartId()),r=(0,o.useRef)(t);return r.current=t,(0,o.useEffect)(()=>{return e.onChange().subscribe(null,t),()=>{e.onChange().unsubscribe(null,t)};function t(){const t=e.getChartId();r.current!==t&&n(t)}},[]),t}(t),[a,c]=(0,Cn.useDimensions)(),[d,u]=(0,o.useState)(null),h=(0,o.useMemo)(()=>({isTouch:T.touch,isDialog:s}),[s]);return o.createElement(Sn.Provider,{value:h},o.createElement(N.Provider,{value:{viewModel:t}},o.createElement("div",{className:wn.wrap,onContextMenu:yn.preventDefaultForContextMenu},n&&o.createElement(j,null),o.createElement(C(),{onMeasure:a},o.createElement("div",{className:wn.space,onClick:function(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||null===i.current)return;e.target===i.current&&t.selection().set([])}},null!==c&&o.createElement(dn,{key:l,height:c.height,width:c.width,canBeAddedToSelection:function(e){const n=t.entity(e);return t.selection().canBeAddedToSelection(n)},nodeRenderer:r,initState:function(){const{nodes:e,selection:n}=t.getState();return{selectedIds:n,nodes:e}},canMove:function(e,n,o){return t.isSelectionDropable(n.id,o)},drag:Tn,rowHeight:En,onSelect:function(e){const n=e.map(e=>t.entity(e)).filter(e=>null!==e);t.selection().set(n)},onDrop:function(e){e.preventDefault();const{detail:{target:n,type:o}}=e;t.insertSelection(n,o)},scrollToId:d,saga:function*(){yield(0,w.fork)(bn,t)},onKeyboardSelect:function(e){u({id:e})},outerRef:function(e){i.current=e}}))))))}function En(e,t){switch(t.type){case"node":return 38;case"separator":return 13}}var Mn;!function(e){e.Svg="svg",e.Text="text"}(Mn||(Mn={}));var xn=n(31261),Dn=n(30608);function An(e){const{className:t,disabled:n,...r}=e;return o.createElement(x.Icon,{className:M()(Dn.button,n&&Dn.disabled,t),...r})}var Ln=n(77975),Nn=n(73591),kn=n(73366),On=n(20077),Bn=n(3589),Rn=n(68256),Fn=n(82308),Pn=n(89559);function jn(e){const{id:t}=e,n=(0,o.useContext)(N),{viewModel:r}=(0,I.ensureNotNull)(n),s=r.entity(t);return null===s?null:o.createElement(zn,{...e,entity:s})}function zn(e){const{id:t,isOffset:n,isDisabled:r,isSelected:s,isChildOfSelected:i,isHovered:l,parentId:a,entity:c,isExpanded:d}=e,u=(0,o.useContext)(N),{viewModel:h}=(0,I.ensureNotNull)(u),p=(0,o.useContext)(Sn),{size:f}=(0,o.useContext)(It),[g,m]=(0,o.useState)(!1),_=(0,o.useRef)(null),[b,S]=(0,o.useState)(c.title()),[y,C]=(0,o.useState)(c.isLocked()),[w,T]=(0,o.useState)(c.isVisible()),[M,D]=(0,o.useState)(c.isActualInterval()),[A,L]=(0,o.useState)(c.getDrawingSyncState()),[k,O]=(0,o.useState)(!1),[B,R]=((0,Ln.useWatchedValueReadonly)({watchedValue:h.getChartLayout()}),(0,o.useState)(!1)),F=(0,o.useRef)(null);(0,o.useEffect)(()=>{const e={};c.onLockChanged().subscribe(e,()=>C(c.isLocked())),c.onVisibilityChanged().subscribe(e,()=>T(c.isVisible()));const t=c.onTitleChanged();return t&&t.subscribe(e,()=>S(c.title())),c.onIsActualIntervalChange().subscribe(e,()=>D(c.isActualInterval())),c.onSyncStateChanged().subscribe(e,()=>L(c.getDrawingSyncState())),()=>{c.onIsActualIntervalChange().unsubscribeAll(e), +c.onLockChanged().unsubscribeAll(e),c.onVisibilityChanged().unsubscribeAll(e),c.onSyncStateChanged().unsubscribeAll(e),t&&t.unsubscribeAll(e),F.current&&clearTimeout(F.current)}},[c]),(0,o.useEffect)(()=>{g&&_.current&&(_.current.focus(),_.current.setSelectionRange(0,b.length))},[g]),(0,o.useEffect)(()=>{const e={};return h.hoveredObjectChanged().subscribe(e,X),()=>{h.hoveredObjectChanged().unsubscribeAll(e)}},[d]),(0,o.useEffect)(()=>{h.setHoveredObject(l?t:null)},[l]),(0,o.useEffect)(()=>{!s&&F.current&&(clearTimeout(F.current),F.current=null),m(!1)},[s]);const P=c.getIcon(),j={};if(a){const e=h.entity(a);e&&(j["data-parent-name"]=e.title()),j["data-type"]=c.hasChildren()?"group":"data-source"}const z=c.title(),V=l||k,H=g&&s,G=!!p&&p.isTouch,W=!!p&&p.isDialog,U=M&&w?Rn:Fn,K=c.hasChildren()?(0,v.t)("Group is hidden on current interval"):(0,v.t)("Drawing is hidden on current interval");return o.createElement("span",{className:E(Pn.wrap,r&&Pn.disabled,s&&Pn.selected,n&&Pn.offset,i&&Pn.childOfSelected,k&&!r&&!s&&!i&&Pn.hover,W&&!r&&!s&&!i&&Pn.dialog),onMouseDown:function(e){g&&!(0,I.ensureNotNull)(_.current).contains(e.target)&&R(!0)},onClick:1===f?Z:function(e){if(e.defaultPrevented)return;if(0!==(0,Ct.modifiersFromEvent)(e))return;if(F.current)e.preventDefault(),clearTimeout(F.current),F.current=null,h.openProperties(c),R(!1);else{const e=h.selection().selected();F.current=setTimeout(()=>{F.current=null,s&&!B&&1===e.length&&h.rename(c,()=>m(!0)),R(!1)},500)}},onContextMenu:G?void 0:Z},!H&&o.createElement(o.Fragment,null,P&&P.type===Mn.Svg&&o.createElement(x.Icon,{icon:P.content||"",className:Pn.icon}),P&&P.type===Mn.Text&&o.createElement("span",{className:E(Pn.icon,Pn.textIcon)},P.content),!1,o.createElement("span",{className:E(Pn.title,h.isMain(c)&&Pn.main,(!c.isVisible()||!M)&&Pn.disabled),...j},z),o.createElement("span",{className:Pn.rightButtons},c.canBeLocked()&&o.createElement(An,{icon:y?On:Bn,className:E(Pn.button,(V||y)&&Pn.visible),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),h.setIsLocked(t,!c.isLocked())},"data-role":"button","data-name":"lock","data-active":y}),o.createElement(An,{icon:U,className:E(Pn.button,!M&&[Pn.warn,"apply-common-tooltip"],(V||!w||!M)&&Pn.visible),onClick:M?function(e){if(e.defaultPrevented)return;e.preventDefault(),h.setIsVisible(t,!c.isVisible())}:function(e){if(e.defaultPrevented)return;e.preventDefault(),h.openProperties(c,Nn.TabNames.visibility)},title:M?void 0:K,"data-role":"button","data-name":"hide","data-active":!w}),c.canBeRemoved()&&o.createElement(An,{icon:kn,className:E(Pn.button,(G||V)&&Pn.visible),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),e.stopPropagation(),h.remove(t)},"data-role":"button","data-name":"remove"}))),H&&o.createElement(xn.InputControl,{value:b,onChange:function(e){S(e.currentTarget.value)},onClick:yn.preventDefault,className:Pn.renameInput,onKeyDown:function(e){27===(0,Ct.hashFromEvent)(e)?(e.preventDefault(),S(c.title()),m(!1)):13===(0,Ct.hashFromEvent)(e)&&(e.preventDefault(),Q())}, +reference:function(e){_.current=e},onBlur:Q,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},draggable:!0,stretch:!0}));function Z(e){e.defaultPrevented||g||!c.fullyConstructed()||(e.preventDefault(),e.persist(),h.openContextMenu(c,()=>m(!0),e))}function Q(){""!==b&&c.setName(b),S(c.title()),m(!1)}function X(e){if(c.hasChildren()&&!d){const t=null!==e&&c.childrenIds().has(e);O(t)}else O(t===e)}}var Vn=n(32713);class Hn extends o.PureComponent{constructor(e){super(e),this._isMounted=!1,this._dialogRef=o.createRef(),this._renderChildren=e=>o.createElement(Gn,{isSmallTablet:e,viewModel:this.props.viewModel}),this._handleMediaChange=()=>{this.state.showDrawer&&!window.matchMedia(b.DialogBreakpoints.TabletSmall).matches&&this.setState({showDrawer:!1})},this._onManageDrawings=e=>{throw new Error("not supported")},this._closeDrawer=()=>{this.setState({showDrawer:!1})},this._handleContextMenuOpened=e=>{this.setState({isContextMenuOpened:e})},this._matchMedia=window.matchMedia(b.DialogBreakpoints.TabletSmall),this.state={showDrawer:!1,showDialog:!1,isContextMenuOpened:!1}}componentDidMount(){this._isMounted=!0,this._matchMedia.addListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().subscribe(this._handleContextMenuOpened)}componentWillUnmount(){this._isMounted=!1,this._matchMedia.removeListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().unsubscribe(this._handleContextMenuOpened)}render(){return o.createElement(o.Fragment,null,o.createElement(m.MatchMedia,{rule:b.DialogBreakpoints.TabletSmall},e=>o.createElement(_.AdaptivePopupDialog,{additionalElementPos:"after",additionalHeaderElement:!1,className:Vn.dialog,dataName:"object-tree-dialog",isOpened:!0,onClickOutside:this.state.showDialog||e||this.state.isContextMenuOpened?()=>{}:this.props.onClose,onClose:this.props.onClose,ref:this._dialogRef,render:()=>this._renderChildren(e),title:(0,v.t)("Object tree"),showSeparator:!0})),o.createElement(g.DrawerManager,null,this.state.showDrawer&&o.createElement(f.Drawer,{onClose:this._closeDrawer,position:"Bottom"},o.createElement(S.ManageDrawings,{onClose:this._closeDrawer,chartWidget:this.props.activeChartWidget,isMobile:!0}))))}}function Gn(e){const{isSmallTablet:t,viewModel:n}=e,r=(0,o.useMemo)(()=>({size:t?1:0,smallSizeTreeNodeAction:0}),[t]);return o.createElement(It.Provider,{value:r},o.createElement(In,{nodeRenderer:jn,showHeader:!1,viewModel:n,isDialog:!0}))}var Wn=n(16216),Un=n(54427),Kn=n(2872),Zn=n.n(Kn);var Qn=n(32112);function Xn(e,t){return`${e}:${t}`}function $n(e){const t=e.split(":");return{persistentId:t[0],instanceId:t[1]}}class qn{constructor(e){this._onChange=new(Zn()),this._recalculate=()=>{const e=this._groupModel.groups().map(e=>Xn(e.id,e.instanceId())),t=this._selectionApi.allSources();this._selected=this._selected.filter(n=>e.includes(n)||t.includes(n)),this._onChange.fire(this._selected)},this._model=e,this._selectionApi=new Qn.SelectionApi(this._model),this._groupModel=this._model.lineToolsGroupModel(),this._selected=this._getSelectedIds(), +this._selectionApi.onChanged().subscribe(this,()=>{this._selected=this._getSelectedIds(),this._onChange.fire(this._selected)}),this._groupModel.onChanged().subscribe(this,this._recalculate)}destroy(){this._selectionApi.onChanged().unsubscribeAll(this),this._groupModel.onChanged().unsubscribeAll(this)}set(e){const t=[];let n=e.map(e=>e.id());for(const o of e)if(o.hasChildren()){const e=o.childrenIds();t.push(...Array.from(e.values())),n=n.filter(t=>!e.has(t))}else t.push(o.id());this._selectionApi.set(t.map(e=>$n(e).persistentId)),this._selected=n,this._onChange.fire(this._selected)}canBeAddedToSelection(e){return null!==e&&e.canBeAddedToSelection()}onChange(){return this._onChange}selected(){return this._selected}_getSelectedIds(){return this._selectionApi.allSources().map(e=>this._model.dataSourceForId(e)).filter(ht.notNull).filter(e=>e.showInObjectTree()).map(e=>Xn(e.id(),e.instanceId()))}}class Jn{constructor(e,t){this._controller=e,this._facade=t,this._groupModel=e.model().lineToolsGroupModel()}buildTree(){const e={};for(const t of this._controller.model().panes()){const n=t.sourcesByGroup().all().filter(e=>e.showInObjectTree());e[t.id()]=Yn(t.id(),0);for(const n of this._groupModel.groups()){const o=Xn(n.id,n.instanceId()),r=(0,I.ensureNotNull)(this._facade.getObjectById(o));if(r.pane()===t){const o=[...n.lineTools()].sort((e,t)=>e.zorder()>t.zorder()?-1:1).map(e=>Xn(e.id(),e.instanceId()));e[r.id()]=Yn(r.id(),1,t.id(),o),e[t.id()].children.push(r.id());for(const t of o)e[t]=Yn(t,2,r.id())}}for(const o of n){const n=Xn(o.id(),o.instanceId());e[n]||(e[n]=Yn(n,1,t.id()),e[t.id()].children.push(n))}e[t.id()].children.sort((e,t)=>{const n=(0,I.ensureNotNull)(this._facade.getObjectById(e)),o=(0,I.ensureNotNull)(this._facade.getObjectById(t));return(0,I.ensureNotNull)(o.zOrder())-(0,I.ensureNotNull)(n.zOrder())})}return this._facade.invalidateCache(new Set(Object.keys(e))),e}}function Yn(e,t,n,o=[]){return{id:e,level:t,parentId:n,children:o}}var eo=n(24980),to=n(14291),no=n(81851),oo=n(62443),ro=n(56972),so=n(61671),io=n(85733),lo=n(13696),ao=n(55247),co=n(28337),uo=n(46627);const ho=new eo.TranslatedString("show {title}",(0,v.t)("show {title}")),po=new eo.TranslatedString("hide {title}",(0,v.t)("hide {title}")),fo=new eo.TranslatedString("lock {title}",(0,v.t)("lock {title}")),go=new eo.TranslatedString("unlock {title}",(0,v.t)("unlock {title}")),mo=new eo.TranslatedString("change {sourceTitle} title to {newSourceTitle}",(0,v.t)("change {sourceTitle} title to {newSourceTitle}")),vo=new eo.TranslatedString("insert source(s) after",(0,v.t)("insert source(s) after"));function _o(e,t){return t.every(t=>!(t.pane()!==e&&!t.allowsMovingbetweenPanes()))}function bo(e){return e instanceof oo.DataSource&&e.showInObjectTree()?Xn(e.id(),e.instanceId()):null}function So(e){return new eo.TranslatedString(e.name(),e.title())}const yo=new(Zn());class Co{constructor(e,t){this._syncStateChanged=new(Zn()),this._lineToolsAffectChartInvalidation=new uo.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1), +this._updateSyncState=()=>{this._syncStateChanged.fire((0,I.ensureNotNull)(this.getDrawingSyncState()))},this._undoModel=e,this._dataSource=t,(0,to.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().subscribe(this._updateSyncState),this._dataSource.sharingMode().subscribe(this._updateSyncState));const n=this._undoModel.lineBeingCreated();null!==n&&n===t&&n.isSynchronizable()&&io.isToolCreatingNow.subscribe(this._updateSyncState)}destroy(){(0,to.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().unsubscribe(this._updateSyncState),this._dataSource.sharingMode().unsubscribe(this._updateSyncState)),io.isToolCreatingNow.unsubscribe(this._updateSyncState)}id(){return Xn(this._dataSource.id(),this._dataSource.instanceId())}title(){const e=this._dataSource;return(0,to.isLineTool)(e)?e.properties().title.value()||e.translatedType():(0,ro.isSeries)(e)&&this._undoModel.mainSeries()===e?e.symbolTitle(void 0,void 0,(0,bt.onWidget)()?"exchange":"listed_exchange"):e.title()}gaLabel(){return(0,no.isStudy)(this._dataSource)?"Study":(0,to.isLineTool)(this._dataSource)?"Drawing":"Symbol"}canBeLocked(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.userEditEnabled()}canBeRemoved(){return this._undoModel.mainSeries()!==this._dataSource&&this._dataSource.isUserDeletable()}canBeHidden(){return this._dataSource.canBeHidden()}canBeRenamed(){return(0,to.isLineTool)(this._dataSource)}fullyConstructed(){return this._undoModel.lineBeingCreated()!==this._dataSource}isVisible(){return this._dataSource.properties().visible.value()}isActualInterval(){return!(0,to.isLineTool)(this._dataSource)&&!(0,no.isStudy)(this._dataSource)||this._dataSource.isActualInterval()}onIsActualIntervalChange(){return(0,to.isLineTool)(this._dataSource)||(0,no.isStudy)(this._dataSource)?this._dataSource.onIsActualIntervalChange():yo}isLocked(){return!!(0,to.isLineTool)(this._dataSource)&&this._dataSource.properties().frozen.value()}onVisibilityChanged(){return this._dataSource.properties().visible.listeners()}onLockChanged(){return(0,to.isLineTool)(this._dataSource)?this._dataSource.properties().frozen.listeners():yo}getIcon(){const e=c,t=this._dataSource.getSourceIcon(),n=(0,no.isStudyStrategy)(this._dataSource);let o={type:Mn.Svg,content:n?lo:ao};if(e&&t)if("loadSvg"===t.type){const[n,r]=t.svgId.split("."),s="linetool"===n?e.linetool[r]:e.series[Number(r)];o={type:Mn.Svg,content:s||ao}}else"text"===t.type&&(o={type:Mn.Text,content:t.text});return o}setVisible(e){const t=(e?ho:po).format({title:So(this._dataSource)});this._undoModel.setProperty(this._dataSource.properties().visible,e,t)}setLocked(e){if((0,to.isLineTool)(this._dataSource)){const t=(e?fo:go).format({title:So(this._dataSource)});this._undoModel.setProperty(this._dataSource.properties().frozen,e,t)}}setName(e){if((0,to.isLineTool)(this._dataSource)){const t=mo.format({sourceTitle:this._dataSource.properties().title.value()||So(this._dataSource),newSourceTitle:e});this._undoModel.setProperty(this._dataSource.properties().title,e,t,this._lineToolsAffectChartInvalidation.value())}} +isCopiable(){return this._dataSource.copiable()}isClonable(){return this._dataSource.cloneable()}zOrder(){return this._dataSource.zorder()}remove(){this._undoModel.removeSource(this._dataSource,!1)}canBeAddedToSelection(){return this._undoModel.selection().canBeAddedToSelection(this._dataSource)}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(this._dataSource)})}addToSelection(){this._undoModel.model().selectionMacro(e=>{e.addSourceToSelection(this._dataSource)})}addSourcesToArray(e){return e.push(this._dataSource),e}insertSourcesBeforeThis(e){this._insertSources(e,e=>this._undoModel.insertBefore(e,this._dataSource))}insertSourcesAfterThis(e){this._insertSources(e,e=>this._undoModel.insertAfter(e,this._dataSource))}childrenIds(){return new Set}hasChildren(){return!1}pane(){return(0,I.ensureNotNull)(this._undoModel.model().paneForSource(this._dataSource))}allowsMovingbetweenPanes(){return!(0,to.isLineTool)(this._dataSource)}canBeAddedToGroup(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.boundToSymbol()}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}detachFromParent(){if((0,to.isLineTool)(this._dataSource)){const e=this._undoModel.model(),t=this._undoModel.lineToolsGroupController(),n=e.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==n&&t.excludeLineToolFromGroup(n,this._dataSource)}}onTitleChanged(){const e=this._dataSource.properties().title;return e?e.listeners():void 0}canBeSyncedInLayout(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(!this.canBeSyncedInLayout()||!this.fullyConstructed())return;const t=this._dataSource;switch(e){case 0:if(null===t.linkKey().value())return;this._undoModel.unlinkLines([t]);break;case 1:if(null!==t.linkKey().value())return;this._undoModel.copyToOtherCharts([t])}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this.fullyConstructed()&&null!==this._dataSource.linkKey().value()?1:0:null}doNotAffectChartInvalidation(){return(0,to.isLineTool)(this._dataSource)&&this._lineToolsAffectChartInvalidation.value()}_canInsertBeforeOrAfter(e){const t=this._undoModel.model();if(!_o(this.pane(),e))return!1;if((0,to.isLineTool)(this._dataSource)){if(null!==t.lineToolsGroupModel().groupForLineTool(this._dataSource)&&e.some(e=>!e.canBeAddedToGroup()))return!1}return!0}_insertSources(e,t){const n=this._undoModel.model(),o=this._undoModel.lineToolsGroupController();this._undoModel.beginUndoMacro(vo);const r=()=>{e.forEach(e=>e.detachFromParent())},s=e.reduce((e,t)=>t.addSourcesToArray(e),[]);if((0,to.isLineTool)(this._dataSource)){const t=n.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==t?((0,I.assert)(!e.some(e=>e.hasChildren())),s.forEach(e=>{(0,to.isLineTool)(e)&&(t.containsLineTool(e)||o.addLineToolToGroup(t,e))})):r()}else r();t(s),this._undoModel.endUndoMacro()}}class wo{constructor(e,t){ +this._onTitleChanged=new(Zn()),this._onVisibilityChanged=new(Zn()),this._onLockChanged=new(Zn()),this._onIsActualIntervalChanged=new(Zn()),this._syncStateChanged=new(Zn()),this._linkKeyChangedBound=this._linkKeyChanged.bind(this),this._lineToolsAffectChartInvalidation=new uo.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._undoModel=e,this._group=t,this._lineTools=t.lineTools(),this._paneId=(0,I.ensureNotNull)(e.model().paneForSource(this._lineTools[0])).id();const n=()=>{this._lineTools.forEach(e=>{e.properties().visible.listeners().subscribe(this,()=>this._onVisibilityChanged.fire()),e.properties().frozen.listeners().subscribe(this,()=>this._onLockChanged.fire()),e.onIsActualIntervalChange().subscribe(this,()=>this._onIsActualIntervalChanged.fire()),e.linkKey().subscribe(this._linkKeyChangedBound),e.sharingMode().subscribe(this._linkKeyChangedBound)})};this._group.onChanged().subscribe(this,e=>{this._unsubscribeFromAllLineTools(),this._lineTools=this._group.lineTools(),n(),e.lockedChanged&&this._onLockChanged.fire(),e.visibilityChanged&&this._onVisibilityChanged.fire(),e.titleChanged&&this._onTitleChanged.fire(),e.isActualIntervalChanged&&this._onIsActualIntervalChanged.fire();const t=this.getDrawingSyncState();null!==t&&this._syncStateChanged.fire(t)}),n(),this._lastActualZOrder=this.zOrder(),this._lastIsVisible=this.isVisible(),this._lastIsActualInterval=this.isActualInterval(),this._lastIsLocked=this.isLocked()}destroy(){this._unsubscribeFromAllLineTools(),this._group.onChanged().unsubscribeAll(this)}id(){return Xn(this._group.id,this._group.instanceId())}title(){return this._group.name()}gaLabel(){return"Group"}getIcon(){return{type:Mn.Svg,content:co}}canBeRemoved(){return!0}canBeHidden(){return!0}canBeLocked(){return!0}canBeRenamed(){return!0}fullyConstructed(){return!0}isVisible(){return this._group.lineTools().length>0&&(this._lastIsVisible="Invisible"!==this._group.visibility()),this._lastIsVisible}isActualInterval(){return this._group.lineTools().length>0&&(this._lastIsActualInterval=this._group.lineTools().some(e=>e.isActualInterval())),this._lastIsActualInterval}onIsActualIntervalChange(){return this._onIsActualIntervalChanged}isLocked(){return this._group.lineTools().length>0&&(this._lastIsLocked="Locked"===this._group.locked()),this._lastIsLocked}onTitleChanged(){return this._onTitleChanged}onVisibilityChanged(){return this._onVisibilityChanged}onLockChanged(){return this._onLockChanged}setVisible(e){this._undoModel.lineToolsGroupController().setGroupVisibility(this._group,e)}setLocked(e){this._undoModel.lineToolsGroupController().setGroupLock(this._group,e)}setName(e){this._undoModel.lineToolsGroupController().setGroupName(this._group,e)}isCopiable(){return!1}isClonable(){return!1}zOrder(){return this._group.lineTools().length>0&&(this._lastActualZOrder=this._group.lineTools()[0].zorder()),this._lastActualZOrder}remove(){this._undoModel.lineToolsGroupController().removeGroup(this._group)}canBeAddedToSelection(){const e=this._undoModel.model() +;return this._lineTools.every(t=>e.selection().canBeAddedToSelection(t))}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),this._lineTools.forEach(t=>e.addSourceToSelection(t))})}addToSelection(){this._undoModel.model().selectionMacro(e=>{this._lineTools.forEach(t=>e.addSourceToSelection(t))})}addSourcesToArray(e){return e.push(...this._lineTools),e}detachFromParent(){}insertSourcesBeforeThis(e){const t=this._insertBeforeTarget();this._insertSources(e,e=>this._undoModel.insertBefore(e,t))}insertSourcesAfterThis(e){const t=this._insertAfterTarget();this._insertSources(e,e=>this._undoModel.insertAfter(e,t))}childrenIds(){const e=[...this._lineTools];return e.sort((e,t)=>t.zorder()-e.zorder()),new Set(e.map(e=>Xn(e.id(),e.instanceId())))}hasChildren(){return!0}pane(){return(0,I.ensureDefined)(this._undoModel.model().panes().find(e=>e.id()===this._paneId))}allowsMovingbetweenPanes(){return!1}canBeAddedToGroup(){return!1}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}canBeSyncedInLayout(){return this._lineTools.length>0&&this._lineTools[0].isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(this.canBeSyncedInLayout())switch(e){case 0:const e=this._lineTools.filter(e=>null!==e.linkKey().value());e.length>0&&this._undoModel.unlinkLines(e);break;case 1:const t=this._lineTools.filter(e=>null===e.linkKey().value());t.length>0&&this._undoModel.copyToOtherCharts(t)}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this._lineTools.every(e=>null!==e.linkKey().value())?1:0:null}doNotAffectChartInvalidation(){return this._lineToolsAffectChartInvalidation.value()}_linkKeyChanged(){this._syncStateChanged.fire((0,I.ensureNotNull)(this.getDrawingSyncState()))}_canInsertBeforeOrAfter(e){return _o(this.pane(),e)}_insertSources(e,t){this._undoModel.beginUndoMacro(vo);const n=e.reduce((e,t)=>t.addSourcesToArray(e),[]);e.forEach(e=>e.detachFromParent()),t(n),this._undoModel.endUndoMacro()}_insertBeforeTarget(){return(0,I.ensureNotNull)(this._lineTools.reduce((e,t)=>null===e?t:e.zorder()null===e?t:e.zorder()>t.zorder()?e:t,null))}_unsubscribeFromAllLineTools(){this._lineTools.forEach(e=>{e.properties().visible.listeners().unsubscribeAll(this),e.properties().frozen.listeners().unsubscribeAll(this),e.onIsActualIntervalChange().unsubscribeAll(this),e.linkKey().unsubscribe(this._linkKeyChangedBound),e.sharingMode().unsubscribe(this._linkKeyChangedBound)})}}class To{constructor(e){this._hoveredObjectChanged=new(Zn()),this._entitiesCache=new Map,this._undoModel=e,this._undoModel.model().hoveredSourceChanged().subscribe(this,this._onModelHoveredSourceChanged)}destroy(){for(const e of this._entitiesCache.values())null==e||e.destroy()}getObjectById(e){if(this._entitiesCache.has(e))return(0,I.ensureDefined)(this._entitiesCache.get(e));const t=this._createObjectById(e) +;return this._entitiesCache.set(e,t),t}invalidateCache(e){Array.from(this._entitiesCache.keys()).forEach(t=>{var n;e.has(t)||(null===(n=this._entitiesCache.get(t))||void 0===n||n.destroy(),this._entitiesCache.delete(t))})}canBeGroupped(e){if(0===e.length||1===e.length&&e[0].hasChildren())return!1;const t=[];if(e.forEach(e=>e.addSourcesToArray(t)),t.some(e=>!(0,to.isLineTool)(e)||!e.boundToSymbol()))return!1;const n=this._undoModel.model(),o=t.map(e=>n.paneForSource(e));return!(new Set(o).size>1)}contextMenuActions(e,t,n){const o=new so.ActionsProvider(e,n),r=[];return t.forEach(e=>e.addSourcesToArray(r)),o.contextMenuActionsForSources(r)}insertBefore(e,t){t.insertSourcesAfterThis(e)}insertAfter(e,t){t.insertSourcesBeforeThis(e)}setHoveredObject(e){const t=this._undoModel.model();if(null===e)return void t.setHoveredSource(null,null);const n=t.dataSourceForId(e);null!==n&&t.setHoveredSource(n,null)}hoveredObjectId(){return bo(this._undoModel.model().hoveredSource())}hoveredObjectChanged(){return this._hoveredObjectChanged}_onModelHoveredSourceChanged(e){this._hoveredObjectChanged.fire(bo(e))}_createObjectById(e){const t=$n(e).persistentId,n=this._undoModel.model(),o=n.dataSourceForId(t);if(null!==o)return new Co(this._undoModel,o);const r=n.lineToolsGroupModel().groupForId(t);return null!==r?new wo(this._undoModel,r):null}}var Io=n(22932),Eo=n(97056),Mo=n(28296),xo=n(52714),Do=n.n(xo),Ao=n(76576),Lo=n(54859),No=n(48111),ko=n(57914),Oo=n(94669),Bo=n(78679);const Ro=(0,l.getLogger)("Platform.GUI.ObjectTree");const Fo=new eo.TranslatedString("move objects",(0,v.t)("move objects")),Po=new eo.TranslatedString("lock objects",(0,v.t)("lock objects")),jo=new eo.TranslatedString("unlock objects",(0,v.t)("unlock objects")),zo=new eo.TranslatedString("show objects",(0,v.t)("show objects")),Vo=new eo.TranslatedString("hide objects",(0,v.t)("hide objects")),Ho=new eo.TranslatedString("remove objects",(0,v.t)("remove objects")),Go=(0,v.t)("Create a group of drawings"),Wo=(0,v.t)("Rename"),Uo=(0,v.t)("Unlock"),Ko=(0,v.t)("Lock"),Zo=(0,v.t)("Hide"),Qo=(0,v.t)("Show"),Xo=(0,v.t)("Remove");class $o{constructor(e){this._nodes={},this._onChange=new(Zn()),this._onGroupCreated=new(Zn()),this._subscriptions=[],this._removeSourcesPromise=null,this._timeout=null,this._objects=[],this._options={general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,fundamentals:!0,studies:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!1,chartEvents:!0,objectTree:!1,gotoLineTool:!0},this._isContextMenuOpened=new(Do())(!1),this._getObjectsToModify=e=>{const t=this.selection().selected();return t.find(t=>t===e)?t.map(this._ensuredEntity):[this._ensuredEntity(e)]},this._onActiveChartChanged=()=>{this._cleanup(),this._init()},this._cleanup=()=>{null!==this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this._subscriptions.forEach(e=>{e.unsubscribeAll(this)}),this._selection.destroy(),this._chart.unsubscribe(this._onActiveChartChanged),null!==this._removeSourcesPromise&&this._removeSourcesPromise.cancel(),this._facade.destroy()}, +this._init=()=>{const e=this._chart.value();e.hasModel()&&(this._controller=e.model(),this._groupController=this._controller.lineToolsGroupController(),this._model=this._controller.model(),this._groupModel=this._model.lineToolsGroupModel(),this._facade=new To(this._controller),this._subscriptions=[this._model.mainSeries().onStyleChanged(),this._model.mainSeries().dataEvents().symbolResolved(),this._model.mainSeries().onIntervalChanged(),this._model.panesCollectionChanged(),this._model.dataSourceCollectionChanged(),this._groupModel.onChanged()],this._subscriptions.forEach(e=>{e.subscribe(this,this._update)}),this._chart.subscribe(this._onActiveChartChanged),this._selection=new qn(this._model),this._update())},this._update=()=>{null===this._timeout&&(this._timeout=setTimeout(()=>{this._recalculateTree(),this._onChange.fire(),this._timeout=null}))},this._ensuredEntity=e=>(0,I.ensureNotNull)(this._getEntityById(e)),this._chart=e,this._init()}destroy(){this._cleanup()}getState(){return{nodes:Object.values(this._nodes),selection:this._selection.selected()}}getChartId(){return this._chart.value().id()}insertSelection(e,t){const n=this._facade,o=this.selection().selected().map(this._ensuredEntity),[r,s]=this._normalizeTargetAndDropType(e,t);this._controller.withMacro(Fo,()=>{switch(s){case"before":n.insertBefore(o,r);break;case"after":n.insertAfter(o,r)}}),this._update()}entity(e){return this._facade.getObjectById(e)}isMain(e){return $n(e.id()).persistentId===this._controller.mainSeries().id()}selection(){return this._selection}setIsLocked(e,t){const n=this._getObjectsToModify(e),o=n.every(e=>e.doNotAffectChartInvalidation()),r=t?Po:jo;this._controller.withMacro(r,()=>{for(const e of n)e.setLocked(t)},o),hn("Lock",pn(n))}setIsVisible(e,t){const n=this._getObjectsToModify(e),o=n.every(e=>e.doNotAffectChartInvalidation()),r=t?zo:Vo;this._controller.withMacro(r,()=>{for(const e of n)e.setVisible(t)},o),hn("Hide",pn(n))}remove(e){const t=()=>{const e=n.every(e=>e.doNotAffectChartInvalidation());this._controller.withMacro(Ho,()=>{for(const e of n)e.remove()},e),hn("Delete",pn(n)),this._update()},n=this._getObjectsToModify(e);t()}canSelectionBeGrouped(){const e=this._getSelectedEntities();return this._facade.canBeGroupped(e)}createGroupFromSelection(){const e=this._groupController.createGroupFromSelection();hn("Create Group");const t=Xn(e.id,e.instanceId());this.selection().set([this._ensuredEntity(t)]),this._onGroupCreated.fire(t),this._update()}isSelectionDropable(e,t){const n=this.selection().selected().map(this._ensuredEntity),[o,r]=this._normalizeTargetAndDropType(e,t);switch(r){case"after":return o.canInsertAfterThis(n);case"before":return o.canInsertBeforeThis(n)}}onChange(){return this._onChange}onGroupCreated(){return this._onGroupCreated}isSelectionCloneable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isClonable())}isSelectionCopiable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isCopiable())}openProperties(e,t){ +const n=this._model.dataSourceForId($n(e.id()).persistentId);this.selection().selected().length>1&&this.selection().selected().includes(e.id())?this._chart.value().showSelectedSourcesProperties(t):(this.selection().set([e]),null!==n?this._controller.mainSeries()===n?this._chart.value().showGeneralChartProperties():((0,to.isLineTool)(n)||(0,no.isStudy)(n))&&this._chart.value().showChartPropertiesForSource(n,t):this._chart.value().showChartPropertiesForSources({sources:this._chart.value().model().selection().lineDataSources(),title:e.title(),tabName:t,renamable:!0}))}canSelectionBeUnmerged(){const e=this._getSelectedEntities();return 1===e.length&&this.canNodeWithIdBeUnmerged($n(e[0].id()).persistentId)}canNodeWithIdBeUnmerged(e){const t=this._model.dataSourceForId(e);return null!==t&&(0,Io.isPriceDataSource)(t)&&this._model.isUnmergeAvailableForSource(t)}unmergeSelectionUp(){this._unmergeSelection(0)}unmergeSelectionDown(){this._unmergeSelection(1)}copySelection(){const e=this._getSelectedEntities(),t=e.map(e=>(0,I.ensureNotNull)(this._model.dataSourceForId($n(e.id()).persistentId)));this._chart.value().chartWidgetCollection().clipboard.uiRequestCopy(t),hn("Copy",pn(e))}cloneSelection(){const e=this._getSelectedEntities(),t=e.map(e=>(0,I.ensureNotNull)(this._model.dataSourceForId($n(e.id()).persistentId)));t.every(to.isLineTool)&&(this._controller.cloneLineTools([...t],!1),hn("Clone",pn(e)))}rename(e,t){const n=this._getObjectsToModify(e.id());1===n.length&&n.some(e=>e.canBeRenamed())&&(t(),hn("Rename",pn(n)))}async openContextMenu(e,t,n){var o;this._objects=this._getObjectsToModify(e.id());const r=this._facade.canBeGroupped(this._objects);let s;if(this._objects.some(e=>e.hasChildren()))s=this._getActionsForGroupItem(e,t,r);else{const e=await this._facade.contextMenuActions(this._chart.value(),this._objects,this._options);if(s=Array.from(e).filter((e,t,n)=>"separator"!==e.type||!n[t+1]||"separator"!==n[t+1].type),1===this._objects.length&&this._objects[0].canBeRenamed()){const e=s.findIndex(e=>"Copy"===e.id);s.splice(-1===e?s.length:e+1,0,this._getRenameAction(t))}if(r){const e=s.findIndex(e=>"Clone"===e.id);s.splice(-1===e?0:e,0,this._getGroupAction())}}if(s.length>0){this._chart.value().updateActions();const t=$n(e.id()).persistentId,r=this._model.dataSourceForId(t),i=r instanceof ro.Series,l=0!==e.childrenIds().size;let a;a=i?{menuName:"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,to.isLineTool)(r)?{menuName:"ObjectTreeContextMenu",detail:{type:"shape",id:null!==(o=null==r?void 0:r.id())&&void 0!==o?o:null}}:l?{menuName:"ObjectTreeContextMenu",detail:{type:"groupOfShapes",id:t||null}}:{menuName:"ObjectTreeContextMenu",detail:{type:"study",id:(null==r?void 0:r.id())||null}},Eo.ContextMenuManager.showMenu(s,n,{takeFocus:!0,returnFocus:!0},a,()=>{this._isContextMenuOpened.setValue(!1)}).then(()=>{this._isContextMenuOpened.setValue(!0)})}}setHoveredObject(e){this._facade.setHoveredObject(e)}hoveredObjectChanged(){return this._facade.hoveredObjectChanged()}getNextNodeIdAfterRemove(e){var t +;const{nodes:n}=this.getState(),o=$n(e).persistentId,r=n.find(t=>t.id===e),s=this.entity(e);if(!(r&&r.parentId&&s&&s.canBeRemoved()))return null;if((null===(t=s.pane().mainDataSource())||void 0===t?void 0:t.id())===o&&!this.canNodeWithIdBeUnmerged(o)){const e=n.filter(e=>0===e.level).map(e=>e.id),t=this._takeNextOrPrevElement(e,r.parentId);return(0,I.ensureDefined)(n.find(e=>e.id===t)).children[0]}const i=(0,I.ensureDefined)(n.find(e=>e.id===r.parentId)).children;return 1===i.length?this.getNextNodeIdAfterRemove(r.parentId):this._takeNextOrPrevElement(i,e)}isContextMenuOpened(){return this._isContextMenuOpened.readonly()}getChartLayout(){return this._chart.value().chartWidgetCollection().layout}_takeNextOrPrevElement(e,t){const n=e.indexOf(t);return e[n===e.length-1?n-1:n+1]}_getGroupAction(){return new Mo.Action({actionId:"ObjectsTree.CreateGroup",label:Go,icon:R,onExecute:()=>{this.createGroupFromSelection()}})}_getRenameAction(e){return new Mo.Action({actionId:"ObjectsTree.RenameItem",label:Wo,icon:Oo,onExecute:()=>{e(),hn("Context menu rename",pn(this._objects))}})}_getActionsForGroupItem(e,t,n){const o=[];this._objects.forEach(e=>e.addSourcesToArray(o));const r=[];1===this._objects.length&&r.unshift(this._getRenameAction(t),new Mo.Separator),n&&r.unshift(this._getGroupAction(),new Mo.Separator);const s=(0,so.createSyncDrawingActions)(this._chart.value(),o.filter(to.isLineTool));return s.length&&(s.shift(),s.push(new Mo.Separator),r.push(...s)),r.push(new Mo.Action({actionId:"ObjectsTree.ToggleItemLocked",label:e.isLocked()?Uo:Ko,icon:e.isLocked()?Ao:Lo,onExecute:()=>this.setIsLocked(e.id(),!e.isLocked())}),new Mo.Action({actionId:"ObjectsTree.ToggleItemVisibility",label:e.isVisible()?Zo:Qo,icon:e.isVisible()?No:ko,onExecute:()=>this.setIsVisible(e.id(),!e.isVisible())}),new Mo.Action({actionId:"ObjectsTree.RemoveItem",label:Xo,icon:Bo,onExecute:()=>this.remove(e.id()),hotkeyHash:Ct.isMacKeyboard?8:46}),new Mo.Separator,this._chart.value().actions().format),r}_unmergeSelection(e){const t=this._getSelectedEntities();if(1!==t.length)throw new Error("Only one object can be unmerged");const n=t[0],o=(0,I.ensureNotNull)(this._model.dataSourceForId($n(n.id()).persistentId));if(!(0,Io.isPriceDataSource)(o))throw new Error("Entity is not IPriceDataSource");(0===e?this._controller.unmergeSourceUp:this._controller.unmergeSourceDown).call(this._controller,o);hn(0===e?"New pane above":"New pane below",pn([n]))}_recalculateTree(){const e=new Jn(this._controller,this._facade);this._nodes=e.buildTree()}_normalizeTargetAndDropType(e,t){let n=this._ensuredEntity(e);return"inside"===t&&(t="before",n=(0,I.ensureNotNull)(this.entity([...n.childrenIds()].shift()||""))),[n,t]}_getSelectedEntities(){const{selected:e,removed:t}=this._selection.selected().reduce((e,t)=>{const n=this._getEntityById(t);return n?(e.selected.push(n),e):(e.removed.push(t),e)},{selected:[],removed:[]});return t.length&&Ro.logWarn("Detected dangling sources in selection. They will be ignored: "+JSON.stringify(t)),e}_getEntityById(e){ +return this._facade.getObjectById(e)}}var qo=n(22729);class Jo extends qo.DialogRenderer{constructor(){super(),this._handleClose=()=>{r.unmountComponentAtNode(this._container),this._setVisibility(!1),null!==this._viewModel&&(this._viewModel.destroy(),this._viewModel=null)};const e=(0,Wn.service)(Un.CHART_WIDGET_COLLECTION_SERVICE);this._activeChartWidget=e.activeChartWidget.value(),this._viewModel=new $o(e.activeChartWidget)}hide(){this._handleClose()}isVisible(){return this.visible().value()}show(){p().then(()=>{null!==this._viewModel&&(r.render(o.createElement(Hn,{onClose:this._handleClose,viewModel:this._viewModel,activeChartWidget:this._activeChartWidget}),this._container),this._setVisibility(!0))})}}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>r});var o=n(59496);const r=()=>{const[,e]=(0,o.useReducer)((e,t)=>e+1,0);return e}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>r});var o=n(59496);const r=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,r="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,i]=(0,o.useState)(n?n.value():r);return(t?o.useLayoutEffect:o.useEffect)(()=>{if(n){i(n.value());const e=e=>i(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),s}},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>i});var o=n(59496),r=n(97754),s=n(33134);n(24780);function i(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return o.createElement("div",{className:t,style:e.style,role:"progressbar"})}},70029:e=>{e.exports=''},72802:e=>{e.exports=''},94669:e=>{ +e.exports=''},88142:e=>{e.exports=''},28337:e=>{e.exports=''},38593:e=>{e.exports=''},68256:e=>{e.exports=''},20077:e=>{ +e.exports=''},36666:e=>{e.exports=''},57914:e=>{e.exports=''},13696:e=>{e.exports=''},55247:e=>{e.exports=''},3589:e=>{e.exports=''},82308:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/object-tree-dialog.f7df9d670cdf61d960af.js b/charting_library/bundles/object-tree-dialog.f7df9d670cdf61d960af.js deleted file mode 100644 index 1031df75..00000000 --- a/charting_library/bundles/object-tree-dialog.f7df9d670cdf61d960af.js +++ /dev/null @@ -1,31 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4862],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},64547:e=>{e.exports={button:"button-SS83RYhy"}},62461:e=>{e.exports={dropTargetInside:"dropTargetInside-HaSQHZAC",dropTarget:"dropTarget-HaSQHZAC",before:"before-HaSQHZAC",after:"after-HaSQHZAC"}},91069:e=>{e.exports={wrap:"wrap-XdW9S1Ib",selected:"selected-XdW9S1Ib",childOfSelected:"childOfSelected-XdW9S1Ib",disabled:"disabled-XdW9S1Ib",expandHandle:"expandHandle-XdW9S1Ib",expanded:"expanded-XdW9S1Ib"}},34244:e=>{e.exports={separator:"separator-KFALCIeR",tree:"tree-KFALCIeR",overlayScrollWrap:"overlayScrollWrap-KFALCIeR",listContainer:"listContainer-KFALCIeR"}},9267:e=>{e.exports={title:"title-f0amBBvb",empty:"empty-f0amBBvb",image:"image-f0amBBvb",spinner:"spinner-f0amBBvb",contentList:"contentList-f0amBBvb"}},32713:e=>{e.exports={dialog:"dialog-W0U3ul53",button:"button-W0U3ul53"}},41223:e=>{e.exports={title:"title-0UFIVbgR",withoutIcon:"withoutIcon-0UFIVbgR",buttons:"buttons-0UFIVbgR",button:"button-0UFIVbgR",disabled:"disabled-0UFIVbgR"}},89559:e=>{e.exports={wrap:"wrap-hEebyvPo",dialog:"dialog-hEebyvPo",offset:"offset-hEebyvPo",title:"title-hEebyvPo",main:"main-hEebyvPo",disabled:"disabled-hEebyvPo",icon:"icon-hEebyvPo",textIcon:"textIcon-hEebyvPo",syncIconWrap:"syncIconWrap-hEebyvPo",syncIcon:"syncIcon-hEebyvPo",rightButtons:"rightButtons-hEebyvPo",hover:"hover-hEebyvPo",expandHandle:"expandHandle-hEebyvPo",button:"button-hEebyvPo",selected:"selected-hEebyvPo",childOfSelected:"childOfSelected-hEebyvPo",renameInput:"renameInput-hEebyvPo", -warn:"warn-hEebyvPo",visible:"visible-hEebyvPo"}},48247:e=>{e.exports={wrap:"wrap-gUfy4kTJ",space:"space-gUfy4kTJ",tree:"tree-gUfy4kTJ"}},30608:e=>{e.exports={button:"button-IulLF4sY",disabled:"disabled-IulLF4sY"}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>_,InputClasses:()=>g});var o=n(59496),r=n(97754),s=n(88537),i=n(66092),l=n(90186),a=n(86332),c=n(95604);var d=n(21103),u=n.n(d);function h(e){let t="";return 0!==e&&(1&e&&(t=r(t,u()["no-corner-top-left"])),2&e&&(t=r(t,u()["no-corner-top-right"])),4&e&&(t=r(t,u()["no-corner-bottom-right"])),8&e&&(t=r(t,u()["no-corner-bottom-left"]))),t}function p(e,t,n,o){const{removeRoundBorder:s,className:i,intent:l="default",borderStyle:a="thin",size:d,highlight:p,disabled:f,readonly:g,stretch:m,noReadonlyStyles:v,isFocused:_}=e,b=h(null!=s?s:(0,c.getGroupCellRemoveRoundBorders)(n));return r(u().container,u()["intent-"+l],u()["border-"+a],d&&u()["size-"+d],b,p&&u()["with-highlight"],f&&u().disabled,g&&!v&&u().readonly,_&&u().focused,m&&u().stretch,t&&u().grouped,!o&&u()["adjust-position"],n.isTop&&u()["first-row"],n.isLeft&&u()["first-col"],i)}function f(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return u().highlight;const s=h(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(u().highlight,u().shown,s)}const g={FontSizeMedium:(0,s.ensureDefined)(u()["font-size-medium"]),FontSizeLarge:(0,s.ensureDefined)(u()["font-size-large"])},m={passive:!1};function v(e,t){const{id:n,role:r,onFocus:s,onBlur:c,onMouseOver:d,onMouseOut:u,onMouseDown:h,onMouseUp:g,onKeyDown:v,onClick:_,tabIndex:b,startSlot:S,middleSlot:y,endSlot:C,onWheel:w,onWheelNoPassive:T=null}=e,{isGrouped:I,cellState:E,disablePositionAdjustment:M=!1}=(0,o.useContext)(a.ControlGroupContext),x=function(e,t=null,n){const r=(0,o.useRef)(null),s=(0,o.useRef)(null),i=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.addEventListener(e,t,n)},[]),l=(0,o.useCallback)(()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),a=(0,o.useCallback)(e=>{l(),r.current=e,i()},[]);return(0,o.useEffect)(()=>(s.current=[e,t,n],i(),l),[e,t,n]),a}("wheel",T,m);return o.createElement("span",{id:n,role:r,className:p(e,I,E,M),tabIndex:b,ref:(0,i.useMergedRefs)([t,x]),onFocus:s,onBlur:c,onMouseOver:d,onMouseOut:u,onMouseDown:h,onMouseUp:g,onKeyDown:v,onClick:_,onWheel:w,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},S,y,C,o.createElement("span",{className:f(e,E)}))}v.displayName="ControlSkeleton";const _=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{StartSlot:()=>l,MiddleSlot:()=>a, -EndSlot:()=>c,AfterSlot:()=>d});var o=n(59496),r=n(97754),s=n(10306),i=n.n(s);function l(e){const{className:t,interactive:n=!0,icon:s=!1,children:l}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,t)},l)}function a(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["inner-slot"],i()["inner-middle-slot"],t)},n)}function c(e){const{className:t,interactive:n=!0,icon:s=!1,children:l}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,s&&i().icon,t)},l)}function d(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>_});var o=n(59496),r=n(97754),s=n(90186),i=n(47201),l=n(48907),a=n(66092),c=n(48027),d=n(29202),u=n(45812),h=n(67029),p=n(78274),f=n(66579),g=n.n(f);function m(e){return!(0,s.isAriaAttribute)(e)&&!(0,s.isDataAttribute)(e)}function v(e){const{id:t,title:n,role:i,tabIndex:l,placeholder:a,name:c,type:d,value:u,defaultValue:f,draggable:v,autoComplete:_,autoFocus:b,maxLength:S,min:y,max:C,step:w,pattern:T,inputMode:I,onSelect:E,onFocus:M,onBlur:x,onKeyDown:D,onKeyUp:A,onKeyPress:L,onChange:N,onDragStart:k,size:O="medium",className:B,inputClassName:R,disabled:F,readonly:P,containerTabIndex:j,startSlot:z,endSlot:V,reference:H,containerReference:G,onContainerFocus:W,...U}=e,K=(0,s.filterProps)(U,m),Z={...(0,s.filterAriaProps)(U),...(0,s.filterDataProps)(U),id:t,title:n,role:i,tabIndex:l,placeholder:a,name:c,type:d,value:u,defaultValue:f,draggable:v,autoComplete:_,autoFocus:b,maxLength:S,min:y,max:C,step:w,pattern:T,inputMode:I,onSelect:E,onFocus:M,onBlur:x,onKeyDown:D,onKeyUp:A,onKeyPress:L,onChange:N,onDragStart:k};return o.createElement(h.ControlSkeleton,{...K,disabled:F,readonly:P,tabIndex:j,className:r(g().container,B),size:O,ref:G,onFocus:W,startSlot:z,middleSlot:o.createElement(p.MiddleSlot,null,o.createElement("input",{...Z,className:r(g().input,R,z&&g()["with-start-slot"],V&&g()["with-end-slot"]),disabled:F,readOnly:P,ref:H})),endSlot:V})}function _(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:s,onBlur:h,reference:p,containerReference:f=null}=e,g=(0,o.useRef)(null),m=(0,o.useRef)(null),[_,b]=(0,d.useFocus)(),S=t?void 0:_?-1:r,y=t?void 0:_?r:-1,{isMouseDown:C,handleMouseDown:w,handleMouseUp:T}=(0,u.useIsMouseDown)(),I=(0,i.createSafeMulticastEventHandler)(b.onFocus,(function(e){n&&!C.current&&(0,l.selectAllContent)(e.currentTarget)}),s),E=(0,i.createSafeMulticastEventHandler)(b.onBlur,h),M=(0,o.useCallback)(e=>{g.current=e,p&&("function"==typeof p&&p(e),"object"==typeof p&&(p.current=e))},[g,p]);return o.createElement(v,{...e,isFocused:_,containerTabIndex:S,tabIndex:y,onContainerFocus:function(e){m.current===e.target&&null!==g.current&&g.current.focus()},onFocus:I,onBlur:E,reference:M,containerReference:(0,a.useMergedRefs)([m,f]),onMouseDown:w,onMouseUp:T})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>s});var o=n(47201),r=n(29202);function s(e){ -const{onFocus:t,onBlur:n,intent:s,highlight:i,disabled:l}=e,[a,c]=(0,r.useFocus)(void 0,l),d=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onFocus,t),u=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onBlur,n);return{...e,intent:s||(a?"primary":"default"),highlight:null!=i?i:a,onFocus:d,onBlur:u}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const s={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,s]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r});var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},14593:(e,t,n)=>{"use strict";n.d(t,{ToolWidgetIconButton:()=>l});var o=n(59496),r=n(97754),s=n(4825),i=n(64547);const l=o.forwardRef((e,t)=>{const{className:n,id:l,...a}=e;return o.createElement(s.ToolWidgetButton,{"data-name":l,...a,ref:t,className:r(n,i.button)})})},94250:(e,t,n)=>{"use strict";n.d(t,{ManageDrawings:()=>C});var o=n(59496),r=n(88537),s=n(9745),i=n(26843),l=n(45345),a=n(28353),c=n(24980),d=n(98125),u=n(14291),h=n(64530),p=n(80643),f=n(61074),g=n(72802),m=n(70029),v=n(9267);(0,d.getLogger)("Chart.ManageDrawings");const _=new c.TranslatedString("remove all line tools for {symbol}",(0,a.t)("remove all line tools for {symbol}")),b=e=>(0,a.t)("{drawingsCount} drawing",{plural:"{drawingsCount} drawings",count:e}).format({drawingsCount:e.toString()}),S=(0,a.t)("Remove all drawings for this symbol"),y=(0,a.t)("No drawings yet");class C extends o.PureComponent{constructor(e){super(e),this._totalCount=0,this._model=null,this._symbolDrawingsMap=null,this._storageContentLoadingPromise=null,this._onItemClick=e=>{""!==e&&(this.props.chartWidget.setSymbol(e),null!==this._model&&this.setState({currentSymbol:e}),this.props.onClose&&this.props.onClose())},this._onRemove=async e=>{if(this._model&&this._symbolDrawingsMap){const t=this._symbolDrawingsMap.get(e);if(t){const n=Array.from(t).map(e=>(0,r.ensureNotNull)(this._model).model().dataSourceForId(e)).filter(p.notNull);n.length>0&&this._model.removeSources(n,!1,_.format({symbol:e})),this._updateItems()}}},this._updateItems=async()=>{if(null!==this._model){const e=await this._getItems(this._model.model().dataSources());this.setState({items:e})}},this._updateTheme=()=>{const e=l.watchedTheme.value() -;this.setState({theme:e})},this.state={currentSymbol:null,items:null,theme:l.watchedTheme.value()}}componentDidMount(){this.props.chartWidget.withModel(this,async()=>{this._model=this.props.chartWidget.model(),this._model.model().dataSourceCollectionChanged().subscribe(this,this._updateItems);const e=await this._getItems(this._model.model().dataSources());this.setState({currentSymbol:this._model.mainSeries().symbol(),items:e},()=>{var e,t;return null===(t=(e=this.props).onInitialized)||void 0===t?void 0:t.call(e)})}),l.watchedTheme.subscribe(this._updateTheme)}componentWillUnmount(){l.watchedTheme.unsubscribe(this._updateTheme),null!==this._model&&this._model.model().dataSourceCollectionChanged().unsubscribe(this,this._updateItems)}render(){const{isMobile:e}=this.props,{currentSymbol:t,items:n}=this.state,r=this._symbolDrawingsMap?this._symbolDrawingsMap.size:0,s=`${i=r,(0,a.t)("{symbolsCount} symbol",{plural:"{symbolsCount} symbols",context:"symbols_and_drawings_count",count:i}).format({symbolsCount:i.toString()})} ${(e=>(0,a.t)("with {drawingsCount} drawing",{plural:"with {drawingsCount} drawings",context:"symbols_and_drawings_count",count:e}).format({drawingsCount:e.toString()}))(this._totalCount)}`;var i;return o.createElement(o.Fragment,null,n&&n.length>0&&o.createElement("div",{className:v.title},s),null===n||0===n.length?this._renderEmptyContent():n.map(n=>o.createElement(h.DialogContentItem,{key:n.symbol,title:n.symbol,subtitle:b(n.drawingsCount),removeBtnLabel:S,isActive:n.symbol===t,isMobile:e,onClick:this._onItemClick.bind(this,n.symbol),onClickRemove:this._onRemove.bind(this,n.symbol),showFavorite:!1})))}_renderEmptyContent(){const{theme:e}=this.state,t=e===i.StdTheme.Dark?m:g;return null===this._symbolDrawingsMap?o.createElement(f.Spinner,{className:v.spinner}):o.createElement("div",{className:v.empty},o.createElement(s.Icon,{className:v.image,icon:t}),o.createElement("span",null,y))}async _getStorageContent(){return new Map}async _getItems(e){const t=[],n=this._getSymbolDrawingsMap(e);return(await this._getStorageContent()).forEach((e,t)=>{const o=n.get(t)||new Set;e.forEach(e=>o.add(e)),n.set(t,o)}),this._symbolDrawingsMap=n,this._totalCount=0,this._symbolDrawingsMap.forEach((e,n)=>{t.push({symbol:n,drawingsCount:e.size}),this._totalCount=this._totalCount+e.size}),t.sort((e,t)=>e.drawingsCount===t.drawingsCount?e.symbol.localeCompare(t.symbol):e.drawingsCount>t.drawingsCount?-1:1)}_getSymbolDrawingsMap(e){const t=new Map;return e.forEach(e=>{var n;if((0,u.isLineTool)(e)&&e.showInObjectTree()){const o=null!==(n=e.symbol())&&void 0!==n?n:"",r=t.get(o)||new Set;r.add(e.id()),t.set(o,r)}}),t}}},49469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjectTreeDialogRenderer:()=>Jo});var o=n(59496),r=n(87995);async function s(e,t,n){let o;for(let r=0;rPromise.resolve())}var l=n(98125);const a=(0,l.getLogger)("DataSourcesIcons");let c=null;function d(){const e=n.c[45749] -;return e?Promise.resolve(e.exports.lineToolsIcons):n.e(1890).then(n.bind(n,45749)).then(e=>e.lineToolsIcons)}function u(){const e=n.c[37466];return e?Promise.resolve(e.exports.SERIES_ICONS):n.e(3718).then(n.bind(n,37466)).then(e=>e.SERIES_ICONS)}let h=null;function p(){return null===h&&(h=function(){const e=i(d,2).then(e=>e).catch(e=>(a.logWarn(e),{})),t=i(u,2).then(e=>e).catch(e=>(a.logWarn(e),{}));return Promise.all([e,t])}()),h.then(e=>(c={linetool:e[0],series:e[1]},c))}var f=n(41590),g=n(37558),m=n(90692),v=n(28353),_=n(85457),b=n(24437),S=n(94250);var y=n(9837),C=n.n(y),w=n(36349),T=n(32563),I=n(88537),E=n(97754),M=n.n(E),x=n(9745),D=n(16396),A=n(35390),L=n(36947);const N=o.createContext(null);var k=n(14593),O=n(16788),B=n(36666),R=n(38593),F=n(41223),P=n(51768);function j(e){const{viewModel:t}=(0,I.ensureNotNull)((0,o.useContext)(N)),n=(0,L.useForceUpdate)(),r=t.selection();(0,o.useEffect)(()=>{const e={};return t.onChange().subscribe(e,()=>n()),()=>{t.onChange().unsubscribeAll(e)}},[t]),(0,o.useEffect)(()=>{const e={};return r.onChange().subscribe(e,()=>n()),()=>{r.onChange().unsubscribeAll(e)}},[r]);const s=!t.canSelectionBeUnmerged(),i=t.isSelectionCopiable(),l=t.isSelectionCloneable(),a=!i&&!l,c=t.canSelectionBeGrouped();return o.createElement(o.Fragment,null,o.createElement("div",{className:E(F.title,F.withoutIcon)},(0,v.t)("Object tree"),!1),o.createElement("div",{className:F.buttons},o.createElement(k.ToolWidgetIconButton,{className:E(F.button,!c&&F.disabled),icon:R,onClick:function(){t.createGroupFromSelection()},isDisabled:!c,title:(0,v.t)("Create a group of drawings"),"data-name":"group-button"}),o.createElement(A.ToolWidgetMenu,{className:E(F.button,a&&F.disabled),isDisabled:a,content:o.createElement(x.Icon,{icon:O}),title:(0,v.t)("Clone, Copy"),arrow:!1,isShowTooltip:!0,"data-name":"copy-clone-button"},i&&o.createElement(D.PopupMenuItem,{"data-name":"copy",label:(0,v.t)("Copy"),onClick:function(){t.copySelection()}}),l&&o.createElement(D.PopupMenuItem,{"data-name":"clone",label:(0,v.t)("Clone"),onClick:function(){t.cloneSelection()}})),o.createElement(A.ToolWidgetMenu,{className:E(F.button,s&&F.disabled),isDisabled:s,content:o.createElement(x.Icon,{icon:B}),title:(0,v.t)("Move to"),arrow:!1,isShowTooltip:!0,"data-name":"move-to-button"},o.createElement(D.PopupMenuItem,{"data-name":"new-pane-above",label:(0,v.t)("New pane above"),onClick:function(){t.unmergeSelectionUp()}}),o.createElement(D.PopupMenuItem,{"data-name":"new-pane-below",label:(0,v.t)("New pane below"),onClick:function(){t.unmergeSelectionDown()}}))))}var z=n(54773),V=n(79049),H=n(11307),G=n(36028),W=n(86416);const U=(K="OBJECT_TREE",e=>K+"__"+e);var K -;const Z=U("SET_NODES"),Q=U("SYNC_NODES"),X=U("UPDATE_NODE"),$=U("UPDATE_NODES"),q=U("RESET_TREE"),J=U("SET_SELECTED_IDS"),Y=U("DROP_SELECTION"),ee=U("SELECT_PREVIOUS"),te=U("SELECT_NEXT"),ne=U("MULTI_SELECT_PREVIOUS"),oe=U("MULTI_SELECT_NEXT"),re=U("PROCESS_DROP_TARGET"),se=U("UPDATE_DROP_TARGET"),ie=U("HIDE_DROP_TARGET"),le=U("START_MULTI_SELECT"),ae=U("STOP_MULTI_SELECT"),ce=(U("REMOVE_NODE"),U("SET_FOCUSED_NODE")),de=U("SCROLL_TO_ID"),ue=U("SET_IS_SELECTED"),he=U("SET_IS_EXPANDED"),pe=U("SET_DISABLED_NODES"),fe=U("MOVE_NODES"),ge=(U("START_DRAG"),U("END_DRAG")),me=()=>({type:ee}),ve=()=>({type:te}),_e=()=>({type:ne}),be=()=>({type:oe}),Se=(e,t,n,o,r)=>({type:re,dropTarget:e,dropType:t,isHoveredLeft:n,boundBox:o,isLastChild:r}),ye=()=>({type:Y}),Ce=e=>({type:J,ids:e}),we=(e,t,n)=>({type:fe,ids:e,targetId:t,dropType:n}),Te=()=>({type:le}),Ie=()=>({type:ae}),Ee=e=>({type:ce,nodeId:e}),Me=e=>({type:de,nodeId:e}),xe=(e,t,n=0)=>({type:ue,nodeId:e,isSelected:t,mode:n}),De=(e,t)=>({type:he,nodeId:e,isExpanded:t}),Ae=e=>({type:pe,ids:e}),Le=()=>({type:ge});var Ne=n(77145);const ke=e=>e.nodes,Oe=e=>e.selection,Be=e=>e.dropTarget,Re=e=>e.expanded,Fe=e=>e.scrollToId,Pe=(e,t)=>t,je=(0,Ne.createSelector)([ke,Pe],(e,t)=>e[t]),ze=(0,Ne.createSelector)([Oe,Pe],(e,t)=>e.ids.includes(t)),Ve=(0,Ne.createSelector)([Re,Pe],(e,t)=>e.includes(t)),He=(0,Ne.createSelector)([e=>e.disabled,Oe,Pe],(e,t,n)=>!t.ids.includes(n)&&e.includes(n)),Ge=(0,Ne.createSelector)(ke,e=>Object.keys(e)),We=(0,Ne.createSelector)(Oe,({ids:e})=>e),Ue=(0,Ne.createSelector)(Oe,({lastFocusedNodeId:e})=>e),Ke=(0,Ne.createSelector)(Oe,({isMultiSelecting:e})=>e),Ze=(0,Ne.createSelector)([ke,We],(e,t)=>t.map(t=>e[t])),Qe=(0,Ne.createSelector)(ke,e=>Object.values(e).filter(e=>0===e.level)),Xe=(0,Ne.createSelector)([ke,Qe],(e,t)=>t.reduce((t,n)=>[...t,...$e(e,(0,I.ensureDefined)(n))],[]));function $e(e,t){const n=[];for(const o of t.children)n.push(e[o]),n.push(...$e(e,e[o]));return n}const qe=(0,Ne.createSelector)([ke,Qe,Re],(e,t,n)=>{const o=new Set(n);return t.reduce((t,n)=>[...t,...Ye(e,(0,I.ensureDefined)(n),o)],[])}),Je=(0,Ne.createSelector)([ke,We,Re],(e,t,n)=>{const o=new Set(n);return[{id:"drag-list",level:-1,children:t}].reduce((t,n)=>[...t,...Ye(e,(0,I.ensureDefined)(n),o)],[])});function Ye(e,t,n){const o=[];for(const r of t.children){const t=e[r];void 0!==t&&(o.push(t),n.has(r)&&o.push(...Ye(e,t,n)))}return o}function*et(e){const{selectedIds:t,nodes:n}=yield(0,w.call)(e),o={};for(let e=0;e({type:Z,nodes:e}))(o)),yield(0,w.put)(Ce(t));!Ue(yield(0,w.select)())&&t.length>0&&(yield(0,w.put)(Ee(t[0])),yield(0,w.put)(Me(t[0])))}function*tt(e){for(;;){if((yield(0,w.take)([le,ae])).type===le){const t=Ge(yield(0,w.select)()).filter(t=>!e(t));yield(0,w.put)(Ae(t))}else yield(0,w.put)(Ae([]))}}function*nt(){for(;;){const{type:e}=yield(0,w.take)([oe,ne]),t=yield(0,w.select)(),n=Xe(t),o=n.length,r=Ue(t),s=[...We(t)],i=1===s.length&&s[0]!==r,l=n.findIndex(e=>e.id===(i?s[0]:r)) -;if(e===ne&&0===l||e===oe&&l===o-1)continue;const a=ct(t,e===oe?"next":"previous",n,l),{id:c}=a;s.includes(c)&&r?(yield(0,w.put)(xe(r,!1,1)),yield(0,w.put)(Ee(c))):yield(0,w.put)(xe(c,!0,1)),yield(0,w.put)(Me(c))}}function*ot(e,t){for(;;){const{type:n}=yield(0,w.take)([te,ee]),o=yield(0,w.select)(),r=Xe(o),s=Ze(o),i=Ue(o);if(1===s.length&&s[0].id!==i&&!i){if(n===te){yield(0,w.put)(Ee(s[0].id));continue}if(n===ee){const e=r.findIndex(e=>e.id===s[0].id),t=ct(o,"previous",r,e);yield(0,w.put)(Ee(t.id));continue}}const l=r.findIndex(e=>e.id===i),a=n===te?"next":"previous",c=ct(o,a,r,l),{id:d}=c;e?e([d],a):yield(0,w.put)(Ce([d])),t&&t(d),yield(0,w.put)(Ee(d))}}function*rt(e,t=(()=>!0)){for(;;){const{mode:n,nodeId:o,isSelected:r}=yield(0,w.take)(ue);let s=[...We(yield(0,w.select)())];const i=Xe(yield(0,w.select)());if(1===n)r?s.push(o):s.splice(s.indexOf(o),1);else if(2===n&&s.length>0){const e=Ue(yield(0,w.select)());let n=i.findIndex(t=>t.id===e);-1===n&&(n=i.reduce((e,t,n)=>s.includes(t.id)?n:e,-1));const r=i.findIndex(e=>e.id===o);if(n!==r)for(let e=Math.min(n,r);e<=Math.max(n,r);e++){const n=i[e].id;!s.includes(n)&&t(n)&&s.push(n)}}else s=o?[o]:[];const l=new Set(s);s=i.reduce((e,t)=>(l.has(t.id)&&e.push(t.id),e),[]),e?e(s):yield(0,w.put)(Ce(s)),yield(0,w.put)(Ee(o))}}function*st(e=(()=>!0),t){const{dropTarget:n,dropType:o,isHoveredLeft:r,boundBox:s,isLastChild:i}=t,l=Be(yield(0,w.select)()),a=je(yield(0,w.select)(),(0,I.ensureDefined)(n.parentId)),c=i&&"after"===o,d=Ze(yield(0,w.select)()),u=!c||!r&&e(d,n,o)?n:a,h=l.node&&l.node.id!==u.id||l.dropType!==o;d.map(e=>e.id).includes(u.id)?yield(0,w.put)({type:ie}):h&&e(d,u,o)&&(yield(0,w.put)(((e,t,n)=>({type:se,node:e,dropType:t,boundBox:n}))(u,o,s)))}function*it(e){yield(0,w.throttle)(0,re,st,e)}function*lt(e){for(;;){yield(0,w.take)(Y);const t=Ze(yield(0,w.select)()),{node:n,dropType:o}=Be(yield(0,w.select)());if(n&&o){const r=new CustomEvent("tree-node-drop",{detail:{nodes:t,target:n.id,type:o}});if(e&&e(r),!r.defaultPrevented){const e=We(yield(0,w.select)());yield(0,w.put)(we(e,n.id,o))}}}}function*at(e){for(;;){yield(0,w.take)(fe);e(ke(yield(0,w.select)()))}}function ct(e,t,n,o){const r=n.length;let s;-1===o&&"previous"===t&&(o=r);let i=0;for(;!s||Math.abs(i)1&&!Ve(e,(0,I.ensureDefined)(l.parentId)));)i+="next"===t?1:-1,s=n[(o+i+r)%r];var l;return s}function*dt(e={}){const{saga:t,onDrop:n,canMove:o,onMove:r,onSelect:s,onKeyboardSelect:i,initState:l,canBeAddedToSelection:a}=e,c=[(0,w.fork)(it,o),(0,w.fork)(lt,n),(0,w.fork)(rt,s,a),(0,w.fork)(ot,s,i),(0,w.fork)(nt)];for(t&&c.push((0,w.fork)(t)),r&&c.push((0,w.fork)(at,r)),a&&c.push((0,w.fork)(tt,a));;){l&&(yield(0,w.call)(et,l));const e=yield(0,w.all)(c);yield(0,w.take)(q);for(const t of e)yield(0,w.cancel)(t)}}var ut=n(83243),ht=n(80643);const pt=(0,l.getLogger)("Platform.GUI.ObjectTree.CallApi");const ft={ids:[],lastFocusedNodeId:void 0,isMultiSelecting:!1};const gt={node:void 0,dropType:void 0,boundBox:void 0};const mt=(0,ut.combineReducers)({nodes:function(e={},t){switch(t.type){case Z: -return t.nodes;case Q:{const{nodes:n}=t,o=n.map(e=>e.id),r={...e};for(const t of Object.keys(e))if(!o.includes(t)){const{parentId:e}=r[t];e&&(r[e]={...r[e],children:r[e].children.filter(e=>e!==t)}),delete r[t]}for(const e of n){const t=e.id;if(r.hasOwnProperty(t)){!(0,ht.deepEquals)(r[t].children,e.children)[0]&&(r[t]={...r[t],children:[...e.children]})}else{r[t]=e;const{parentId:n}=e;if(n&&!r[n].children.includes(t))throw new Error("Not implemented")}}return r}case X:{const{type:n,nodeId:o,...r}=t;return{...e,[o]:{...e[o],...r}}}case $:{const{nodes:n}=t,o={...e};return Object.keys(n).forEach(e=>{o[e]={...o[e],...n[e]}}),{...e,...o}}case fe:{const{ids:n,targetId:o,dropType:r}=t,s=(0,I.ensureDefined)(e[o].parentId),i=e[s],l={};for(const t of n){const n=e[t];if(n.parentId){const o=l[n.parentId]||e[n.parentId];l[n.parentId]={...o,children:o.children.filter(e=>e!==t)}}l[t]={...n,parentId:s,level:i.level+1}}const a=i.children.filter(e=>!n.includes(e));return a.splice(((e,t,n)=>{switch(n){case"before":return e.indexOf((0,I.ensureDefined)(t));case"inside":return e.length;case"after":return e.indexOf((0,I.ensureDefined)(t))+1;default:return 0}})(a,o,r),0,...n),l[s]={...e[s],children:a,isExpanded:!0},{...e,...l}}default:return e}},selection:function(e=ft,t){switch(t.type){case J:{const{ids:n}=t;return{...e,ids:n,lastFocusedNodeId:n.length>0?e.lastFocusedNodeId:void 0}}case le:return{...e,isMultiSelecting:!0};case ae:return{...e,isMultiSelecting:!1};case ce:return{...e,lastFocusedNodeId:t.nodeId};case Q:{const n=new Set(t.nodes.map(e=>e.id));return e.lastFocusedNodeId&&!n.has(e.lastFocusedNodeId)&&delete e.lastFocusedNodeId,{...e,ids:e.ids.filter(e=>n.has(e))}}default:return e}},dropTarget:function(e=gt,t){switch(t.type){case se:{const{node:n,dropType:o,boundBox:r}=t;return{...e,node:n,dropType:o,boundBox:r}}case ie:case ge:case q:return{...gt};default:return e}},expanded:function(e=[],t){switch(t.type){case he:{const{nodeId:n,isExpanded:o}=t;if(o)return[...e,n];const r=[...e];return r.splice(e.indexOf(n),1),r}default:return e}},disabled:function(e=[],t){switch(t.type){case pe:return[...t.ids];default:return e}},scrollToId:function(e=null,t){switch(t.type){case de:return null===t.nodeId?null:{id:t.nodeId};default:return e}}});var vt=n(35126),_t=n(83199),bt=n(49483);var St=n(61625),yt=n(53408),Ct=n(68335),wt=n(47201),Tt=n(70412);const It=o.createContext({size:0,smallSizeTreeNodeAction:1}),Et={[Ct.Modifiers.Mod]:1,[Ct.Modifiers.Shift]:2};var Mt=n(88142),xt=n(91069);const Dt=()=>{};class At extends o.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e;const{connectDragSource:t,connectDropTarget:n,connectDragPreview:o}=this.props;(0,I.ensureDefined)(n)(this._ref),(0,I.ensureDefined)(t)(this._ref),(0,I.ensureDefined)(o)((0,yt.getEmptyImage)(),{captureDraggingState:!0})},this._handleTouchStart=e=>{const t=(e,t)=>{const n=function(e,t){try{const n=document.createEvent("TouchEvent") -;return n.initTouchEvent(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.touches,t.targetTouches,t.changedTouches),n}catch(e){return null}}(e,t);if(n)return n;const o=Array.from(t.changedTouches),r=Array.from(t.touches),s=Array.from(t.targetTouches);return new TouchEvent(e,{bubbles:!0,changedTouches:o,touches:r,targetTouches:s})},n=e.target;if(n instanceof Element){const e=e=>{const o=e;if(!n.isConnected){o.preventDefault();const e=t("touchmove",o);document.body.dispatchEvent(e)}},o=r=>{const s=r;if(!n.isConnected){s.preventDefault();const e=t("touchend",s);document.body.dispatchEvent(e)}n.removeEventListener("touchend",o),n.removeEventListener("touchmove",e)};n.addEventListener("touchend",o),n.addEventListener("touchmove",e)}}}componentDidMount(){var e;null===(e=this._ref)||void 0===e||e.addEventListener("touchstart",this._handleTouchStart)}componentWillUnmount(){var e;null===(e=this._ref)||void 0===e||e.removeEventListener("touchstart",this._handleTouchStart)}render(){return o.createElement(Lt,{...this.props,reference:this._handleRef})}getNode(){return(0,I.ensureNotNull)(this._ref)}}const Lt=e=>{const{id:t,isSelected:n,isOffset:r,isExpandable:s,setIsSelected:i,isDisabled:l,isExpanded:a,onClick:c,parentId:d,setIsExpanded:u,reference:h,isFirstListItem:p,isLastListItem:f,nodeRenderer:g,isChildOfSelected:m=!1}=e,{size:v,smallSizeTreeNodeAction:_}=(0,o.useContext)(It),b=(0,o.useRef)(null),S=(0,wt.createSafeMulticastEventHandler)(e=>b.current=e,h);let[y,C]=(0,Tt.useHover)();return(bt.CheckMobile.any()||bt.CheckMobile.isIPad())&&(y=n,C={onMouseOut:Dt,onMouseOver:Dt}),o.createElement("div",{className:E(xt.wrap,n&&xt.selected,m&&xt.childOfSelected,l&&xt.disabled,s&&xt.expandable),onClick:1===v&&0===_?w:function(e){if(e.defaultPrevented)return;const o=Et[(0,Ct.modifiersFromEvent)(e)]||0;!l&&i&&i(t,!n,o);c&&0===o&&c(e,t)},onContextMenu:w,ref:S,...C},s&&o.createElement(x.Icon,{icon:Mt,className:E(xt.expandHandle,a&&xt.expanded),onClick:function(e){e.preventDefault(),s&&u(t,!a)},onMouseDown:function(e){e.preventDefault()}}),g({id:t,isOffset:r,parentId:d,isDisabled:l,isSelected:n,isChildOfSelected:m,isHovered:y,isExpanded:a,isFirstListItem:p,isLastListItem:f}));function w(){l||n||!i||i(t,!0)}},Nt=o.createContext({});function kt(e,t){const{id:n}=t,o=je(e,n),r=ze(e,n);let s=!1,i=o.parentId;for(;i&&!s;)s=ze(e,i),i=je(e,i).parentId;return{...o,isSelected:r,isChildOfSelected:s,isExpanded:o.children.length>0&&Ve(e,n),isExpandable:o.children.length>0,isDisabled:He(e,n)}}function Ot(e){return(0,ut.bindActionCreators)({setIsExpanded:De,processDropTarget:Se,dropSelection:ye,selectNext:ve,selectPrevious:me,setIsSelected:xe,endDrag:Le},e)}const Bt=(0,St.DragSource)("node",{beginDrag:e=>{const{id:t,isDisabled:n,isSelected:o}=e;return n||o||e.setIsSelected(t,!0),e},endDrag:e=>e.endDrag()},e=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()})),Rt=(0,vt.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const o=n.getNode(),r=o.getBoundingClientRect(),s=r.bottom-r.top,i=t.getClientOffset() -;if(i){const t=i.y-r.top;let n,l;if(n=0===e.children.length?t=s/3&&t<2*s/3?"inside":"after",void 0!==e.getContainerElement){const t=e.getContainerElement().getBoundingClientRect();l={top:r.top-t.top,left:r.left-t.left,bottom:r.top-t.top+r.height,right:r.left-t.left+r.width,height:r.height,width:r.width}}else l={top:o.offsetTop,left:o.offsetLeft,bottom:o.offsetTop+o.offsetHeight,right:o.offsetLeft+o.offsetWidth,height:o.offsetHeight,width:o.offsetWidth};e.processDropTarget(e,n,i.x-r.left<48,l,e.isLastChild)}}},e=>({connectDropTarget:e.dropTarget()})),Ft=(0,V.connect)(kt,Ot,null,{context:Nt})(Bt(Rt(At))),Pt=(0,V.connect)(kt,Ot,null,{context:Nt})(Lt);var jt=n(35749),zt=n(53614),Vt=n(65718);function Ht(e){const t=e(),n=(0,o.useRef)(t);n.current=t;const[r,s]=(0,o.useState)(n.current),i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,s(n.current)}))}),(0,o.useEffect)(()=>()=>{i.current&&cancelAnimationFrame(i.current)},[]),r}function Gt(e){const{dropTargetOffset:t,mousePosition:n}=e;if(!t)return{display:"none"};const{x:o,y:r}=t,s=n&&t?n.y-t.y:0,i=`translate(${o+(n&&t?n.x-t.x:0)}px, ${r+s}px)`;return{transform:i,WebkitTransform:i}}const Wt={top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:100,opacity:.5,width:300,backgroundColor:"red"};const Ut=(0,zt.DragLayer)((function(e){return{isDragging:e.isDragging()&&"node"===e.getItemType(),mousePosition:e.getClientOffset(),dropTargetOffset:e.getSourceClientOffset()}}))((0,V.connect)((function(e){return{items:Je(e)}}),null,null,{context:Nt})((function(e){const{items:t,isDragging:n,nodeRenderer:r,dragPreviewRenderer:s}=e;return Ht((function(){return n?o.createElement(Vt.Portal,null,o.createElement("div",{style:{...Wt,...Gt(e)}},t.map(e=>{if(s){const t=s;return o.createElement(t,{key:e.id,...e})}return o.createElement(Pt,{id:e.id,key:e.id,nodeRenderer:r,isDragPreview:!0,isOffset:e.level>1})}))):null}))})));var Kt=n(3085),Zt=n(33127);const Qt=o.forwardRef((e,t)=>{const n=(0,o.useRef)(null);return e.connectDropTarget(n),(0,o.useImperativeHandle)(t,()=>({getNode:()=>(0,I.ensureNotNull)(n.current)}),[]),o.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})}),Xt=(0,vt.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const o=t.getClientOffset();if(null===o)return;const r=e.getOrderedNodes();if(0===r.length)return;const s=n.getNode().getBoundingClientRect(),i=e.getContainerElement().getBoundingClientRect();if("first"===e.type){const t={top:s.top-i.top+s.height,left:s.left-i.left,bottom:s.top-i.top+s.height,right:s.left-i.left+s.width,height:0,width:s.width};e.processDropTarget(r[0],"before",!1,t,!1)}if("last"===e.type){const t=o.x-s.left<48,n=r[r.length-1],l=t&&2===n.level?(0,I.ensureDefined)(r.find(e=>e.id===n.parentId)):n,a={top:s.top-i.top,left:s.left-i.left,bottom:s.top-i.top,right:s.left-i.left+s.width,height:s.height,width:s.width};e.processDropTarget(l,"after",t,a,!1)}}},e=>({connectDropTarget:e.dropTarget()}))(Qt),$t=o.createContext({ -isOver:!1,transform:void 0});var qt=n(62461);function Jt(e){const{dropType:t,boundBox:n}=e,{top:o,bottom:r,left:s}=(0,I.ensureDefined)(n);return[s,"before"===t||"inside"===t?o:r]}const Yt=(0,zt.DragLayer)((function(e){return{isDragging:e.isDragging()}}))((0,V.connect)((function(e){const{boundBox:t,dropType:n,node:o}=Be(e);return{boundBox:t,dropType:n,level:o?o.level:void 0}}),null,null,{context:Nt})((function(e){const{dropType:t,boundBox:n,isDragging:r,level:s,transform:i=Jt}=e;return Ht((function(){if(!r||!t||!n)return null;const l={[qt.dropTarget]:"inside"!==t,[qt.dropTargetInside]:"inside"===t},{width:a,height:c}=n,[d,u]=i(e),h=`translate(${d}px, ${u}px)`;return o.createElement("div",{className:E(l),style:{position:"absolute",transform:h,WebkitTransform:h,top:0,left:2===s?"46px":0,width:2===s?a-46+"px":a,height:"inside"===t?c:"2px"}})}))}))),en=o.forwardRef((e,t)=>{const n=(0,o.useContext)($t);return o.createElement("div",{...e,ref:t},e.children,n.isOver&&o.createElement(Yt,{transform:n.transform}))});var tn=n(62820),nn=n(34244);const on=38+Ct.Modifiers.Shift,rn=40+Ct.Modifiers.Shift;const sn=o.forwardRef((function(e,t){const{navigationKeys:n,renderList:r,stopMultiSelect:s,startMultiSelect:i,isMultiSelecting:l,nodeRenderer:a,dragPreviewRenderer:c,className:d,connectDropTarget:u,readOnly:h,onClick:p,dropLayerTransform:f,setFocusedNode:g,scrollToId:m,rowHeight:v,onMultiSelectPrevious:_,onMultiSelectNext:b,onMoveCursorToNext:S,onMoveCursorToPrevious:y,outerRef:C,width:w,height:T,isOver:E,processDropTarget:x}=e,D=(0,o.useContext)(N),A=(0,o.useRef)(null);(0,o.useEffect)(()=>{const e=e=>{[Ct.Modifiers.Mod,Ct.Modifiers.Shift].includes((0,Ct.modifiersFromEvent)(e))&&i()},t=e=>{l&&![Ct.Modifiers.Mod,Ct.Modifiers.Shift].includes((0,Ct.modifiersFromEvent)(e))&&s()};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("mousemove",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),document.removeEventListener("mousemove",t)}},[l]),function(e){(0,o.useEffect)(()=>{if(bt.isEdge){let t=null;const n=(0,I.ensureNotNull)(e.current),o=e=>{if(e.target instanceof Element){const n=(0,I.ensureNotNull)(e.target.closest("[draggable]"));n instanceof HTMLElement&&(n.style.opacity="0",t=requestAnimationFrame(()=>n.style.opacity="1"))}};return n.addEventListener("dragstart",o),()=>{n.removeEventListener("dragstart",o),null!==t&&cancelAnimationFrame(t)}}return()=>{}},[])}(A);const L=(0,o.useCallback)(()=>(0,I.ensureNotNull)(U.current),[]),k=(0,o.useCallback)(()=>r,[r]),O=(0,o.useMemo)(()=>{const e=h?Pt:Ft,t=[];let n;t.push({type:"padding",node:o.createElement(Xt,{type:"first",key:"padding-top",getContainerElement:L,getOrderedNodes:k,processDropTarget:x})});for(let s=0;s0,nodeRenderer:a,readOnly:h,onClick:p,isOffset:i.level>1,getContainerElement:L})})}return t.push({type:"padding",node:o.createElement(Xt,{type:"last",key:"padding-bottom",getContainerElement:L,getOrderedNodes:k,processDropTarget:x})}),t},[r]),B=(0,o.useRef)([]);B.current=O;const R=(0,o.useCallback)(e=>{let{style:t}=e;const{index:n}=e;return n===B.current.length-1&&(t={...t,bottom:0,minHeight:t.height},delete t.height),o.createElement("div",{style:t},B.current[n].node)},[]),F=(0,o.useCallback)(e=>{const t=B.current[e];return"padding"===t.type?6:"function"==typeof v?v(e,t):v},[v]),P=(0,o.useCallback)(e=>(0,I.ensure)(B.current[e].node.key),[]),j=(0,o.useMemo)(()=>null===m?{index:-1}:{index:B.current.findIndex(e=>e.node.key===m.id)},[m]);u(A);const[z,V,H,G]=(0,Zt.useOverlayScroll)(),W=(0,o.useRef)(null);(0,o.useEffect)(()=>(0,I.ensureNotNull)(W.current).resetAfterIndex(0,!0),[O]),(0,o.useEffect)(()=>(0,I.ensureNotNull)(W.current).scrollToItem(j.index),[j]);const U=(0,o.useRef)(null),K=(0,o.useMemo)(()=>({isOver:E,transform:f}),[E,f]),Z=(0,o.useRef)(null),Q=(0,o.useRef)({startScroll(e){const t=()=>{null!==H.current&&(Z.current=requestAnimationFrame(t),H.current.scrollBy({top:e}))};this.stopScroll(),t()},stopScroll(){null!==Z.current&&(cancelAnimationFrame(Z.current),Z.current=null)},getListElement:()=>H.current});return(0,o.useImperativeHandle)(t,()=>Q.current,[]),(0,o.useEffect)(()=>()=>Q.current.stopScroll(),[E]),o.createElement($t.Provider,{value:K},o.createElement("div",{...V,className:M()(nn.tree,d),ref:A,tabIndex:-1,onKeyDown:function(e){const t=(0,Ct.hashFromEvent)(e);if(e.defaultPrevented||(0,jt.isNativeUIInteraction)(t,e.target))return;D||t!==on||(e.preventDefault(),_());D||t!==rn||(e.preventDefault(),b());(38===t||void 0!==n&&"previous"===n[t])&&(e.preventDefault(),y());(40===t||void 0!==n&&"next"===n[t])&&(e.preventDefault(),S());if((8===t||46===t)&&D){const{viewModel:e}=D,t=e.selection(),n=t.selected();if(1!==n.length)return;const o=e.getNextNodeIdAfterRemove(n[0]);if(null===o)return;e.onChange().subscribe(null,()=>{if(t.selected().length)return;const n=e.entity(o);n&&(t.set([n]),g(o))},!0)}}},o.createElement(Kt.OverlayScrollContainer,{...z,className:nn.overlayScrollWrap}),o.createElement(_t.VariableSizeList,{ref:function(e){W.current=e},className:nn.listContainer,width:w,height:T,itemCount:O.length,itemSize:F,children:R,itemKey:P,outerRef:function(e){H.current=e,C&&C(e)},innerRef:function(e){U.current=e},innerElementType:en,onItemsRendered:function(){G()},overscanCount:20,direction:(0,tn.isRtl)()?"rtl":"ltr"}),o.createElement(Ut,{dragPreviewRenderer:c,nodeRenderer:a})))})),ln=(0,vt.DropTarget)("node",{drop:(e,t,n)=>{("touch"===e.drag||bt.isFF)&&n.stopScroll(),t.getItem().dropSelection()},hover:(e,t,n)=>{if("touch"!==e.drag&&!bt.isFF)return;const o=t.getClientOffset();if(null===o)return;const r=n.getListElement();if(null===r)return;const s=r.getBoundingClientRect();((t,o,r)=>{const s=Math.abs(t-r),i=Math.abs(t-o) -;if(i>40&&s>40||s<=40&&i<=40)return void n.stopScroll();var l,a,c,d;l=i>20&&i<=40,c=s<=20,d=i<=20,(a=s>20&&s<=40)||l?"touch"===e.drag?n.startScroll(a?-5:5):n.startScroll(a?-2:2):(c||d)&&("touch"===e.drag?n.startScroll(c?-10:10):n.startScroll(c?-5:5))})(o.y,s.bottom,s.top)}},(e,t)=>({connectDropTarget:e.dropTarget(),isOver:t.isOver()}))(sn);const an=(0,V.connect)((function(e){return{renderList:qe(e),orderedNodes:Xe(e),isMultiSelecting:Ke(e),selectedIds:We(e),scrollToId:Fe(e)}}),(function(e){return(0,ut.bindActionCreators)({startMultiSelect:Te,stopMultiSelect:Ie,setFocusedNode:Ee,processDropTarget:Se,onMoveCursorToNext:ve,onMoveCursorToPrevious:me,onMultiSelectPrevious:_e,onMultiSelectNext:be},e)}),null,{context:Nt})(ln),cn={delayTouchStart:100};function dn(e){const{canBeAddedToSelection:t,initState:n,onSelect:r,canMove:s,onDrop:i,onMove:l,nodes:a,selectedIds:c,onKeyboardSelect:d,saga:u,lastFocusedNodeObject:h,lastSyncTimestampRef:p,scrollToId:f,...g}=e,[m,v]=(0,o.useState)(null);return(0,o.useEffect)(()=>{const e=(0,z.default)();v(function(e){const t=(0,ut.applyMiddleware)(e);return(0,ut.createStore)(mt,t)}(e));const o=e.run(dt,{initState:n,onKeyboardSelect:d,saga:u,canMove:s,onMove:l,onDrop:i,onSelect:r,canBeAddedToSelection:t});return()=>o.cancel()},[]),(0,o.useEffect)(()=>(null!==m&&a&&(p&&(p.current=performance.now()),m.dispatch((e=>({type:Q,nodes:e}))(a))),()=>{}),[m,a]),(0,o.useEffect)(()=>{null!==m&&c&&m.dispatch(Ce(c))},[m,c]),(0,o.useEffect)(()=>{null!==m&&(null==h?void 0:h.id)&&m.dispatch(Ee(h.id))},[m,h]),null===m?null:o.createElement(un,{store:m,scrollToId:f,...g})}const un=o.memo((function(e){const{store:t,scrollToId:n,...r}=e,s="touch"===e.drag?G.TouchBackend:H.HTML5Backend;return(0,o.useEffect)(()=>{var e;t.dispatch(Me(null!==(e=null==n?void 0:n.id)&&void 0!==e?e:null))},[n]),o.createElement(W.DndProvider,{backend:s,options:cn},o.createElement(V.Provider,{store:t,context:Nt},o.createElement(an,{...r})))}));function hn(e,t){(0,P.trackEvent)("Object Tree",e,t)}function pn(e){return e.length>1?"Multi select":e[0].gaLabel()}function fn(e){return(0,z.eventChannel)(t=>{const n={};return e.onChange().subscribe(n,()=>t({type:q})),e.onGroupCreated().subscribe(n,e=>t(De(e,!0))),e.selection().onChange().subscribe(n,e=>t(Ce(e))),()=>{e.onChange().unsubscribeAll(n),e.selection().onChange().unsubscribeAll(n),e.onGroupCreated().unsubscribeAll(n)}},z.buffers.expanding())}function*gn(){for(;;)yield(0,w.take)([te,ee]),hn("Select","Arrow")}function*mn(){for(;;){const{mode:e}=yield(0,w.take)(ue);1===e&&hn("Multi select","Ctrl"),2===e&&hn("Multi select","Shift")}}function*vn(e){for(;;){yield(0,w.take)(Y);const{node:t,dropType:n}=Be(yield(0,w.select)());if(t){const o=Ze(yield(0,w.select)()),r=o.map(t=>(0,I.ensureNotNull)(e.entity(t.id)));let s="Drag";1===t.level&&"inside"!==n&&o.some(e=>2===e.level)?s="From the group":2!==t.level&&"inside"!==n||!o.some(e=>1===e.level)?1===o.length&&o[0].parentId!==t.parentId&&(s="Existing pane"):s="To the group",hn(s,pn(r))}}}function*_n(e){yield(0,w.fork)(gn),yield(0,w.fork)(mn),yield(0, -w.fork)(vn,e)}function*bn(e){yield(0,w.fork)(_n,e);const t=yield(0,w.call)(fn,e);pt.logNormal("Opened object tree data source channel");try{for(;;){const e=yield(0,w.take)(t);yield(0,w.put)(e)}}finally{pt.logNormal("Closed object tree data source channel"),t.close()}}const Sn=o.createContext(null);var yn=n(54475),Cn=n(898),wn=n(48247);const Tn=T.mobiletouch?"touch":"native";function In(e){const{viewModel:t,showHeader:n=!0,nodeRenderer:r,isDialog:s=!1}=e,i=(0,o.useRef)(null),l=function(e){const[t,n]=(0,o.useState)(e.getChartId()),r=(0,o.useRef)(t);return r.current=t,(0,o.useEffect)(()=>{return e.onChange().subscribe(null,t),()=>{e.onChange().unsubscribe(null,t)};function t(){const t=e.getChartId();r.current!==t&&n(t)}},[]),t}(t),[a,c]=(0,Cn.useDimensions)(),[d,u]=(0,o.useState)(null),h=(0,o.useMemo)(()=>({isTouch:T.touch,isDialog:s}),[s]);return o.createElement(Sn.Provider,{value:h},o.createElement(N.Provider,{value:{viewModel:t}},o.createElement("div",{className:wn.wrap,onContextMenu:yn.preventDefaultForContextMenu},n&&o.createElement(j,null),o.createElement(C(),{onMeasure:a},o.createElement("div",{className:wn.space,onClick:function(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||null===i.current)return;e.target===i.current&&t.selection().set([])}},null!==c&&o.createElement(dn,{key:l,height:c.height,width:c.width,canBeAddedToSelection:function(e){const n=t.entity(e);return t.selection().canBeAddedToSelection(n)},nodeRenderer:r,initState:function(){const{nodes:e,selection:n}=t.getState();return{selectedIds:n,nodes:e}},canMove:function(e,n,o){return t.isSelectionDropable(n.id,o)},drag:Tn,rowHeight:En,onSelect:function(e){const n=e.map(e=>t.entity(e)).filter(e=>null!==e);t.selection().set(n)},onDrop:function(e){e.preventDefault();const{detail:{target:n,type:o}}=e;t.insertSelection(n,o)},scrollToId:d,saga:function*(){yield(0,w.fork)(bn,t)},onKeyboardSelect:function(e){u({id:e})},outerRef:function(e){i.current=e}}))))))}function En(e,t){switch(t.type){case"node":return 38;case"separator":return 13}}var Mn;!function(e){e.Svg="svg",e.Text="text"}(Mn||(Mn={}));var xn=n(31261),Dn=n(30608);function An(e){const{className:t,disabled:n,...r}=e;return o.createElement(x.Icon,{className:M()(Dn.button,n&&Dn.disabled,t),...r})}var Ln=n(77975),Nn=n(73591),kn=n(73366),On=n(20077),Bn=n(3589),Rn=n(68256),Fn=n(82308),Pn=n(89559);function jn(e){const{id:t}=e,n=(0,o.useContext)(N),{viewModel:r}=(0,I.ensureNotNull)(n),s=r.entity(t);return null===s?null:o.createElement(zn,{...e,entity:s})}function zn(e){const{id:t,isOffset:n,isDisabled:r,isSelected:s,isChildOfSelected:i,isHovered:l,parentId:a,entity:c,isExpanded:d}=e,u=(0,o.useContext)(N),{viewModel:h}=(0,I.ensureNotNull)(u),p=(0,o.useContext)(Sn),{size:f}=(0,o.useContext)(It),[g,m]=(0,o.useState)(!1),_=(0,o.useRef)(null),[b,S]=(0,o.useState)(c.title()),[y,C]=(0,o.useState)(c.isLocked()),[w,T]=(0,o.useState)(c.isVisible()),[M,D]=(0,o.useState)(c.isActualInterval()),[A,L]=(0,o.useState)(c.getDrawingSyncState()),[k,O]=(0,o.useState)(!1),[B,R]=((0,Ln.useWatchedValueReadonly)({ -watchedValue:h.getChartLayout()}),(0,o.useState)(!1)),F=(0,o.useRef)(null);(0,o.useEffect)(()=>{const e={};c.onLockChanged().subscribe(e,()=>C(c.isLocked())),c.onVisibilityChanged().subscribe(e,()=>T(c.isVisible()));const t=c.onTitleChanged();return t&&t.subscribe(e,()=>S(c.title())),c.onIsActualIntervalChange().subscribe(e,()=>D(c.isActualInterval())),c.onSyncStateChanged().subscribe(e,()=>L(c.getDrawingSyncState())),()=>{c.onIsActualIntervalChange().unsubscribeAll(e),c.onLockChanged().unsubscribeAll(e),c.onVisibilityChanged().unsubscribeAll(e),c.onSyncStateChanged().unsubscribeAll(e),t&&t.unsubscribeAll(e),F.current&&clearTimeout(F.current)}},[c]),(0,o.useEffect)(()=>{g&&_.current&&(_.current.focus(),_.current.setSelectionRange(0,b.length))},[g]),(0,o.useEffect)(()=>{const e={};return h.hoveredObjectChanged().subscribe(e,X),()=>{h.hoveredObjectChanged().unsubscribeAll(e)}},[d]),(0,o.useEffect)(()=>{h.setHoveredObject(l?t:null)},[l]),(0,o.useEffect)(()=>{!s&&F.current&&(clearTimeout(F.current),F.current=null),m(!1)},[s]);const P=c.getIcon(),j={};if(a){const e=h.entity(a);e&&(j["data-parent-name"]=e.title()),j["data-type"]=c.hasChildren()?"group":"data-source"}const z=c.title(),V=l||k,H=g&&s,G=!!p&&p.isTouch,W=!!p&&p.isDialog,U=M&&w?Rn:Fn,K=c.hasChildren()?(0,v.t)("Group is hidden on current interval"):(0,v.t)("Drawing is hidden on current interval");return o.createElement("span",{className:E(Pn.wrap,r&&Pn.disabled,s&&Pn.selected,n&&Pn.offset,i&&Pn.childOfSelected,k&&!r&&!s&&!i&&Pn.hover,W&&!r&&!s&&!i&&Pn.dialog),onMouseDown:function(e){g&&!(0,I.ensureNotNull)(_.current).contains(e.target)&&R(!0)},onClick:1===f?Z:function(e){if(e.defaultPrevented)return;if(0!==(0,Ct.modifiersFromEvent)(e))return;if(F.current)e.preventDefault(),clearTimeout(F.current),F.current=null,h.openProperties(c),R(!1);else{const e=h.selection().selected();F.current=setTimeout(()=>{F.current=null,s&&!B&&1===e.length&&h.rename(c,()=>m(!0)),R(!1)},500)}},onContextMenu:G?void 0:Z},!H&&o.createElement(o.Fragment,null,P&&P.type===Mn.Svg&&o.createElement(x.Icon,{icon:P.content||"",className:Pn.icon}),P&&P.type===Mn.Text&&o.createElement("span",{className:E(Pn.icon,Pn.textIcon)},P.content),!1,o.createElement("span",{className:E(Pn.title,h.isMain(c)&&Pn.main,(!c.isVisible()||!M)&&Pn.disabled),...j},z),o.createElement("span",{className:Pn.rightButtons},c.canBeLocked()&&o.createElement(An,{icon:y?On:Bn,className:E(Pn.button,(V||y)&&Pn.visible),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),h.setIsLocked(t,!c.isLocked())},"data-role":"button","data-name":"lock","data-active":y}),o.createElement(An,{icon:U,className:E(Pn.button,!M&&[Pn.warn,"apply-common-tooltip"],(V||!w||!M)&&Pn.visible),onClick:M?function(e){if(e.defaultPrevented)return;e.preventDefault(),h.setIsVisible(t,!c.isVisible())}:function(e){if(e.defaultPrevented)return;e.preventDefault(),h.openProperties(c,Nn.TabNames.visibility)},title:M?void 0:K,"data-role":"button","data-name":"hide","data-active":!w}),c.canBeRemoved()&&o.createElement(An,{icon:kn, -className:E(Pn.button,(G||V)&&Pn.visible),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),e.stopPropagation(),h.remove(t)},"data-role":"button","data-name":"remove"}))),H&&o.createElement(xn.InputControl,{value:b,onChange:function(e){S(e.currentTarget.value)},onClick:yn.preventDefault,className:Pn.renameInput,onKeyDown:function(e){27===(0,Ct.hashFromEvent)(e)?(e.preventDefault(),S(c.title()),m(!1)):13===(0,Ct.hashFromEvent)(e)&&(e.preventDefault(),Q())},reference:function(e){_.current=e},onBlur:Q,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},draggable:!0,stretch:!0}));function Z(e){e.defaultPrevented||g||!c.fullyConstructed()||(e.preventDefault(),e.persist(),h.openContextMenu(c,()=>m(!0),e))}function Q(){""!==b&&c.setName(b),S(c.title()),m(!1)}function X(e){if(c.hasChildren()&&!d){const t=null!==e&&c.childrenIds().has(e);O(t)}else O(t===e)}}var Vn=n(32713);class Hn extends o.PureComponent{constructor(e){super(e),this._isMounted=!1,this._dialogRef=o.createRef(),this._renderChildren=e=>o.createElement(Gn,{isSmallTablet:e,viewModel:this.props.viewModel}),this._handleMediaChange=()=>{this.state.showDrawer&&!window.matchMedia(b.DialogBreakpoints.TabletSmall).matches&&this.setState({showDrawer:!1})},this._onManageDrawings=e=>{throw new Error("not supported")},this._closeDrawer=()=>{this.setState({showDrawer:!1})},this._handleContextMenuOpened=e=>{this.setState({isContextMenuOpened:e})},this._matchMedia=window.matchMedia(b.DialogBreakpoints.TabletSmall),this.state={showDrawer:!1,showDialog:!1,isContextMenuOpened:!1}}componentDidMount(){this._isMounted=!0,this._matchMedia.addListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().subscribe(this._handleContextMenuOpened)}componentWillUnmount(){this._isMounted=!1,this._matchMedia.removeListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().unsubscribe(this._handleContextMenuOpened)}render(){return o.createElement(o.Fragment,null,o.createElement(m.MatchMedia,{rule:b.DialogBreakpoints.TabletSmall},e=>o.createElement(_.AdaptivePopupDialog,{additionalElementPos:"after",additionalHeaderElement:!1,className:Vn.dialog,dataName:"object-tree-dialog",isOpened:!0,onClickOutside:this.state.showDialog||e||this.state.isContextMenuOpened?()=>{}:this.props.onClose,onClose:this.props.onClose,ref:this._dialogRef,render:()=>this._renderChildren(e),title:(0,v.t)("Object tree"),showSeparator:!0})),o.createElement(g.DrawerManager,null,this.state.showDrawer&&o.createElement(f.Drawer,{onClose:this._closeDrawer,position:"Bottom"},o.createElement(S.ManageDrawings,{onClose:this._closeDrawer,chartWidget:this.props.activeChartWidget,isMobile:!0}))))}}function Gn(e){const{isSmallTablet:t,viewModel:n}=e,r=(0,o.useMemo)(()=>({size:t?1:0,smallSizeTreeNodeAction:0}),[t]);return o.createElement(It.Provider,{value:r},o.createElement(In,{nodeRenderer:jn,showHeader:!1,viewModel:n,isDialog:!0}))}var Wn=n(16216),Un=n(54427),Kn=n(2872),Zn=n.n(Kn);var Qn=n(32112);function Xn(e,t){return`${e}:${t}`}function $n(e){const t=e.split(":") -;return{persistentId:t[0],instanceId:t[1]}}class qn{constructor(e){this._onChange=new(Zn()),this._recalculate=()=>{const e=this._groupModel.groups().map(e=>Xn(e.id,e.instanceId())),t=this._selectionApi.allSources();this._selected=this._selected.filter(n=>e.includes(n)||t.includes(n)),this._onChange.fire(this._selected)},this._model=e,this._selectionApi=new Qn.SelectionApi(this._model),this._groupModel=this._model.lineToolsGroupModel(),this._selected=this._getSelectedIds(),this._selectionApi.onChanged().subscribe(this,()=>{this._selected=this._getSelectedIds(),this._onChange.fire(this._selected)}),this._groupModel.onChanged().subscribe(this,this._recalculate)}destroy(){this._selectionApi.onChanged().unsubscribeAll(this),this._groupModel.onChanged().unsubscribeAll(this)}set(e){const t=[];let n=e.map(e=>e.id());for(const o of e)if(o.hasChildren()){const e=o.childrenIds();t.push(...Array.from(e.values())),n=n.filter(t=>!e.has(t))}else t.push(o.id());this._selectionApi.set(t.map(e=>$n(e).persistentId)),this._selected=n,this._onChange.fire(this._selected)}canBeAddedToSelection(e){return null!==e&&e.canBeAddedToSelection()}onChange(){return this._onChange}selected(){return this._selected}_getSelectedIds(){return this._selectionApi.allSources().map(e=>this._model.dataSourceForId(e)).filter(ht.notNull).filter(e=>e.showInObjectTree()).map(e=>Xn(e.id(),e.instanceId()))}}class Jn{constructor(e,t){this._controller=e,this._facade=t,this._groupModel=e.model().lineToolsGroupModel()}buildTree(){const e={};for(const t of this._controller.model().panes()){const n=t.sourcesByGroup().all().filter(e=>e.showInObjectTree());e[t.id()]=Yn(t.id(),0);for(const n of this._groupModel.groups()){const o=Xn(n.id,n.instanceId()),r=(0,I.ensureNotNull)(this._facade.getObjectById(o));if(r.pane()===t){const o=[...n.lineTools()].sort((e,t)=>e.zorder()>t.zorder()?-1:1).map(e=>Xn(e.id(),e.instanceId()));e[r.id()]=Yn(r.id(),1,t.id(),o),e[t.id()].children.push(r.id());for(const t of o)e[t]=Yn(t,2,r.id())}}for(const o of n){const n=Xn(o.id(),o.instanceId());e[n]||(e[n]=Yn(n,1,t.id()),e[t.id()].children.push(n))}e[t.id()].children.sort((e,t)=>{const n=(0,I.ensureNotNull)(this._facade.getObjectById(e)),o=(0,I.ensureNotNull)(this._facade.getObjectById(t));return(0,I.ensureNotNull)(o.zOrder())-(0,I.ensureNotNull)(n.zOrder())})}return this._facade.invalidateCache(new Set(Object.keys(e))),e}}function Yn(e,t,n,o=[]){return{id:e,level:t,parentId:n,children:o}}var eo=n(24980),to=n(14291),no=n(81851),oo=n(62443),ro=n(56972),so=n(61671),io=n(85733),lo=n(13696),ao=n(55247),co=n(28337),uo=n(46627);const ho=new eo.TranslatedString("show {title}",(0,v.t)("show {title}")),po=new eo.TranslatedString("hide {title}",(0,v.t)("hide {title}")),fo=new eo.TranslatedString("lock {title}",(0,v.t)("lock {title}")),go=new eo.TranslatedString("unlock {title}",(0,v.t)("unlock {title}")),mo=new eo.TranslatedString("change {sourceTitle} title to {newSourceTitle}",(0,v.t)("change {sourceTitle} title to {newSourceTitle}")),vo=new eo.TranslatedString("insert source(s) after",(0, -v.t)("insert source(s) after"));function _o(e,t){return t.every(t=>!(t.pane()!==e&&!t.allowsMovingbetweenPanes()))}function bo(e){return e instanceof oo.DataSource&&e.showInObjectTree()?Xn(e.id(),e.instanceId()):null}function So(e){return new eo.TranslatedString(e.name(),e.title())}const yo=new(Zn());class Co{constructor(e,t){this._syncStateChanged=new(Zn()),this._lineToolsAffectChartInvalidation=new uo.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._updateSyncState=()=>{this._syncStateChanged.fire((0,I.ensureNotNull)(this.getDrawingSyncState()))},this._undoModel=e,this._dataSource=t,(0,to.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().subscribe(this._updateSyncState),this._dataSource.sharingMode().subscribe(this._updateSyncState));const n=this._undoModel.lineBeingCreated();null!==n&&n===t&&n.isSynchronizable()&&io.isToolCreatingNow.subscribe(this._updateSyncState)}destroy(){(0,to.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().unsubscribe(this._updateSyncState),this._dataSource.sharingMode().unsubscribe(this._updateSyncState)),io.isToolCreatingNow.unsubscribe(this._updateSyncState)}id(){return Xn(this._dataSource.id(),this._dataSource.instanceId())}title(){const e=this._dataSource;return(0,to.isLineTool)(e)?e.properties().title.value()||e.translatedType():(0,ro.isSeries)(e)&&this._undoModel.mainSeries()===e?e.symbolTitle(void 0,void 0,(0,bt.onWidget)()?"exchange":"listed_exchange"):e.title()}gaLabel(){return(0,no.isStudy)(this._dataSource)?"Study":(0,to.isLineTool)(this._dataSource)?"Drawing":"Symbol"}canBeLocked(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.userEditEnabled()}canBeRemoved(){return this._undoModel.mainSeries()!==this._dataSource&&this._dataSource.isUserDeletable()}canBeHidden(){return this._dataSource.canBeHidden()}canBeRenamed(){return(0,to.isLineTool)(this._dataSource)}fullyConstructed(){return this._undoModel.lineBeingCreated()!==this._dataSource}isVisible(){return this._dataSource.properties().visible.value()}isActualInterval(){return!(0,to.isLineTool)(this._dataSource)&&!(0,no.isStudy)(this._dataSource)||this._dataSource.isActualInterval()}onIsActualIntervalChange(){return(0,to.isLineTool)(this._dataSource)||(0,no.isStudy)(this._dataSource)?this._dataSource.onIsActualIntervalChange():yo}isLocked(){return!!(0,to.isLineTool)(this._dataSource)&&this._dataSource.properties().frozen.value()}onVisibilityChanged(){return this._dataSource.properties().visible.listeners()}onLockChanged(){return(0,to.isLineTool)(this._dataSource)?this._dataSource.properties().frozen.listeners():yo}getIcon(){const e=c,t=this._dataSource.getSourceIcon(),n=(0,no.isStudyStrategy)(this._dataSource);let o={type:Mn.Svg,content:n?lo:ao};if(e&&t)if("loadSvg"===t.type){const[n,r]=t.svgId.split("."),s="linetool"===n?e.linetool[r]:e.series[Number(r)];o={type:Mn.Svg,content:s||ao}}else"text"===t.type&&(o={type:Mn.Text,content:t.text});return o}setVisible(e){const t=(e?ho:po).format({title:So(this._dataSource)}) -;this._undoModel.setProperty(this._dataSource.properties().visible,e,t)}setLocked(e){if((0,to.isLineTool)(this._dataSource)){const t=(e?fo:go).format({title:So(this._dataSource)});this._undoModel.setProperty(this._dataSource.properties().frozen,e,t)}}setName(e){if((0,to.isLineTool)(this._dataSource)){const t=mo.format({sourceTitle:this._dataSource.properties().title.value()||So(this._dataSource),newSourceTitle:e});this._undoModel.setProperty(this._dataSource.properties().title,e,t,this._lineToolsAffectChartInvalidation.value())}}isCopiable(){return this._dataSource.copiable()}isClonable(){return this._dataSource.cloneable()}zOrder(){return this._dataSource.zorder()}remove(){this._undoModel.removeSource(this._dataSource,!1)}canBeAddedToSelection(){return this._undoModel.selection().canBeAddedToSelection(this._dataSource)}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(this._dataSource)})}addToSelection(){this._undoModel.model().selectionMacro(e=>{e.addSourceToSelection(this._dataSource)})}addSourcesToArray(e){return e.push(this._dataSource),e}insertSourcesBeforeThis(e){this._insertSources(e,e=>this._undoModel.insertBefore(e,this._dataSource))}insertSourcesAfterThis(e){this._insertSources(e,e=>this._undoModel.insertAfter(e,this._dataSource))}childrenIds(){return new Set}hasChildren(){return!1}pane(){return(0,I.ensureNotNull)(this._undoModel.model().paneForSource(this._dataSource))}allowsMovingbetweenPanes(){return!(0,to.isLineTool)(this._dataSource)}canBeAddedToGroup(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.boundToSymbol()}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}detachFromParent(){if((0,to.isLineTool)(this._dataSource)){const e=this._undoModel.model(),t=this._undoModel.lineToolsGroupController(),n=e.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==n&&t.excludeLineToolFromGroup(n,this._dataSource)}}onTitleChanged(){const e=this._dataSource.properties().title;return e?e.listeners():void 0}canBeSyncedInLayout(){return(0,to.isLineTool)(this._dataSource)&&this._dataSource.isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(!this.canBeSyncedInLayout()||!this.fullyConstructed())return;const t=this._dataSource;switch(e){case 0:if(null===t.linkKey().value())return;this._undoModel.unlinkLines([t]);break;case 1:if(null!==t.linkKey().value())return;this._undoModel.copyToOtherCharts([t])}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this.fullyConstructed()&&null!==this._dataSource.linkKey().value()?1:0:null}doNotAffectChartInvalidation(){return(0,to.isLineTool)(this._dataSource)&&this._lineToolsAffectChartInvalidation.value()}_canInsertBeforeOrAfter(e){const t=this._undoModel.model();if(!_o(this.pane(),e))return!1;if((0,to.isLineTool)(this._dataSource)){if(null!==t.lineToolsGroupModel().groupForLineTool(this._dataSource)&&e.some(e=>!e.canBeAddedToGroup()))return!1}return!0}_insertSources(e,t){ -const n=this._undoModel.model(),o=this._undoModel.lineToolsGroupController();this._undoModel.beginUndoMacro(vo);const r=()=>{e.forEach(e=>e.detachFromParent())},s=e.reduce((e,t)=>t.addSourcesToArray(e),[]);if((0,to.isLineTool)(this._dataSource)){const t=n.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==t?((0,I.assert)(!e.some(e=>e.hasChildren())),s.forEach(e=>{(0,to.isLineTool)(e)&&(t.containsLineTool(e)||o.addLineToolToGroup(t,e))})):r()}else r();t(s),this._undoModel.endUndoMacro()}}class wo{constructor(e,t){this._onTitleChanged=new(Zn()),this._onVisibilityChanged=new(Zn()),this._onLockChanged=new(Zn()),this._onIsActualIntervalChanged=new(Zn()),this._syncStateChanged=new(Zn()),this._linkKeyChangedBound=this._linkKeyChanged.bind(this),this._lineToolsAffectChartInvalidation=new uo.FeatureToggleWatchedValue("do_not_invalidate_chart_on_changing_line_tools",!1),this._undoModel=e,this._group=t,this._lineTools=t.lineTools(),this._paneId=(0,I.ensureNotNull)(e.model().paneForSource(this._lineTools[0])).id();const n=()=>{this._lineTools.forEach(e=>{e.properties().visible.listeners().subscribe(this,()=>this._onVisibilityChanged.fire()),e.properties().frozen.listeners().subscribe(this,()=>this._onLockChanged.fire()),e.onIsActualIntervalChange().subscribe(this,()=>this._onIsActualIntervalChanged.fire()),e.linkKey().subscribe(this._linkKeyChangedBound),e.sharingMode().subscribe(this._linkKeyChangedBound)})};this._group.onChanged().subscribe(this,e=>{this._unsubscribeFromAllLineTools(),this._lineTools=this._group.lineTools(),n(),e.lockedChanged&&this._onLockChanged.fire(),e.visibilityChanged&&this._onVisibilityChanged.fire(),e.titleChanged&&this._onTitleChanged.fire(),e.isActualIntervalChanged&&this._onIsActualIntervalChanged.fire();const t=this.getDrawingSyncState();null!==t&&this._syncStateChanged.fire(t)}),n(),this._lastActualZOrder=this.zOrder(),this._lastIsVisible=this.isVisible(),this._lastIsActualInterval=this.isActualInterval(),this._lastIsLocked=this.isLocked()}destroy(){this._unsubscribeFromAllLineTools(),this._group.onChanged().unsubscribeAll(this)}id(){return Xn(this._group.id,this._group.instanceId())}title(){return this._group.name()}gaLabel(){return"Group"}getIcon(){return{type:Mn.Svg,content:co}}canBeRemoved(){return!0}canBeHidden(){return!0}canBeLocked(){return!0}canBeRenamed(){return!0}fullyConstructed(){return!0}isVisible(){return this._group.lineTools().length>0&&(this._lastIsVisible="Invisible"!==this._group.visibility()),this._lastIsVisible}isActualInterval(){return this._group.lineTools().length>0&&(this._lastIsActualInterval=this._group.lineTools().some(e=>e.isActualInterval())),this._lastIsActualInterval}onIsActualIntervalChange(){return this._onIsActualIntervalChanged}isLocked(){return this._group.lineTools().length>0&&(this._lastIsLocked="Locked"===this._group.locked()),this._lastIsLocked}onTitleChanged(){return this._onTitleChanged}onVisibilityChanged(){return this._onVisibilityChanged}onLockChanged(){return this._onLockChanged}setVisible(e){ -this._undoModel.lineToolsGroupController().setGroupVisibility(this._group,e)}setLocked(e){this._undoModel.lineToolsGroupController().setGroupLock(this._group,e)}setName(e){this._undoModel.lineToolsGroupController().setGroupName(this._group,e)}isCopiable(){return!1}isClonable(){return!1}zOrder(){return this._group.lineTools().length>0&&(this._lastActualZOrder=this._group.lineTools()[0].zorder()),this._lastActualZOrder}remove(){this._undoModel.lineToolsGroupController().removeGroup(this._group)}canBeAddedToSelection(){const e=this._undoModel.model();return this._lineTools.every(t=>e.selection().canBeAddedToSelection(t))}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),this._lineTools.forEach(t=>e.addSourceToSelection(t))})}addToSelection(){this._undoModel.model().selectionMacro(e=>{this._lineTools.forEach(t=>e.addSourceToSelection(t))})}addSourcesToArray(e){return e.push(...this._lineTools),e}detachFromParent(){}insertSourcesBeforeThis(e){const t=this._insertBeforeTarget();this._insertSources(e,e=>this._undoModel.insertBefore(e,t))}insertSourcesAfterThis(e){const t=this._insertAfterTarget();this._insertSources(e,e=>this._undoModel.insertAfter(e,t))}childrenIds(){const e=[...this._lineTools];return e.sort((e,t)=>t.zorder()-e.zorder()),new Set(e.map(e=>Xn(e.id(),e.instanceId())))}hasChildren(){return!0}pane(){return(0,I.ensureDefined)(this._undoModel.model().panes().find(e=>e.id()===this._paneId))}allowsMovingbetweenPanes(){return!1}canBeAddedToGroup(){return!1}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}canBeSyncedInLayout(){return this._lineTools.length>0&&this._lineTools[0].isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(this.canBeSyncedInLayout())switch(e){case 0:const e=this._lineTools.filter(e=>null!==e.linkKey().value());e.length>0&&this._undoModel.unlinkLines(e);break;case 1:const t=this._lineTools.filter(e=>null===e.linkKey().value());t.length>0&&this._undoModel.copyToOtherCharts(t)}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this._lineTools.every(e=>null!==e.linkKey().value())?1:0:null}doNotAffectChartInvalidation(){return this._lineToolsAffectChartInvalidation.value()}_linkKeyChanged(){this._syncStateChanged.fire((0,I.ensureNotNull)(this.getDrawingSyncState()))}_canInsertBeforeOrAfter(e){return _o(this.pane(),e)}_insertSources(e,t){this._undoModel.beginUndoMacro(vo);const n=e.reduce((e,t)=>t.addSourcesToArray(e),[]);e.forEach(e=>e.detachFromParent()),t(n),this._undoModel.endUndoMacro()}_insertBeforeTarget(){return(0,I.ensureNotNull)(this._lineTools.reduce((e,t)=>null===e?t:e.zorder()null===e?t:e.zorder()>t.zorder()?e:t,null))}_unsubscribeFromAllLineTools(){this._lineTools.forEach(e=>{e.properties().visible.listeners().unsubscribeAll(this),e.properties().frozen.listeners().unsubscribeAll(this),e.onIsActualIntervalChange().unsubscribeAll(this), -e.linkKey().unsubscribe(this._linkKeyChangedBound),e.sharingMode().unsubscribe(this._linkKeyChangedBound)})}}class To{constructor(e){this._hoveredObjectChanged=new(Zn()),this._entitiesCache=new Map,this._undoModel=e,this._undoModel.model().hoveredSourceChanged().subscribe(this,this._onModelHoveredSourceChanged)}destroy(){for(const e of this._entitiesCache.values())null==e||e.destroy()}getObjectById(e){if(this._entitiesCache.has(e))return(0,I.ensureDefined)(this._entitiesCache.get(e));const t=this._createObjectById(e);return this._entitiesCache.set(e,t),t}invalidateCache(e){Array.from(this._entitiesCache.keys()).forEach(t=>{var n;e.has(t)||(null===(n=this._entitiesCache.get(t))||void 0===n||n.destroy(),this._entitiesCache.delete(t))})}canBeGroupped(e){if(0===e.length||1===e.length&&e[0].hasChildren())return!1;const t=[];if(e.forEach(e=>e.addSourcesToArray(t)),t.some(e=>!(0,to.isLineTool)(e)||!e.boundToSymbol()))return!1;const n=this._undoModel.model(),o=t.map(e=>n.paneForSource(e));return!(new Set(o).size>1)}contextMenuActions(e,t,n){const o=new so.ActionsProvider(e,n),r=[];return t.forEach(e=>e.addSourcesToArray(r)),o.contextMenuActionsForSources(r)}insertBefore(e,t){t.insertSourcesAfterThis(e)}insertAfter(e,t){t.insertSourcesBeforeThis(e)}setHoveredObject(e){const t=this._undoModel.model();if(null===e)return void t.setHoveredSource(null,null);const n=t.dataSourceForId(e);null!==n&&t.setHoveredSource(n,null)}hoveredObjectId(){return bo(this._undoModel.model().hoveredSource())}hoveredObjectChanged(){return this._hoveredObjectChanged}_onModelHoveredSourceChanged(e){this._hoveredObjectChanged.fire(bo(e))}_createObjectById(e){const t=$n(e).persistentId,n=this._undoModel.model(),o=n.dataSourceForId(t);if(null!==o)return new Co(this._undoModel,o);const r=n.lineToolsGroupModel().groupForId(t);return null!==r?new wo(this._undoModel,r):null}}var Io=n(22932),Eo=n(97056),Mo=n(28296),xo=n(52714),Do=n.n(xo),Ao=n(76576),Lo=n(54859),No=n(48111),ko=n(57914),Oo=n(94669),Bo=n(78679);const Ro=(0,l.getLogger)("Platform.GUI.ObjectTree");const Fo=new eo.TranslatedString("move objects",(0,v.t)("move objects")),Po=new eo.TranslatedString("lock objects",(0,v.t)("lock objects")),jo=new eo.TranslatedString("unlock objects",(0,v.t)("unlock objects")),zo=new eo.TranslatedString("show objects",(0,v.t)("show objects")),Vo=new eo.TranslatedString("hide objects",(0,v.t)("hide objects")),Ho=new eo.TranslatedString("remove objects",(0,v.t)("remove objects")),Go=(0,v.t)("Create a group of drawings"),Wo=(0,v.t)("Rename"),Uo=(0,v.t)("Unlock"),Ko=(0,v.t)("Lock"),Zo=(0,v.t)("Hide"),Qo=(0,v.t)("Show"),Xo=(0,v.t)("Remove");class $o{constructor(e){this._nodes={},this._onChange=new(Zn()),this._onGroupCreated=new(Zn()),this._subscriptions=[],this._removeSourcesPromise=null,this._timeout=null,this._objects=[],this._options={general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,fundamentals:!0,studies:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!1,chartEvents:!0,objectTree:!1,gotoLineTool:!0},this._isContextMenuOpened=new(Do())(!1), -this._getObjectsToModify=e=>{const t=this.selection().selected();return t.find(t=>t===e)?t.map(this._ensuredEntity):[this._ensuredEntity(e)]},this._onActiveChartChanged=()=>{this._cleanup(),this._init()},this._cleanup=()=>{null!==this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this._subscriptions.forEach(e=>{e.unsubscribeAll(this)}),this._selection.destroy(),this._chart.unsubscribe(this._onActiveChartChanged),null!==this._removeSourcesPromise&&this._removeSourcesPromise.cancel(),this._facade.destroy()},this._init=()=>{const e=this._chart.value();e.hasModel()&&(this._controller=e.model(),this._groupController=this._controller.lineToolsGroupController(),this._model=this._controller.model(),this._groupModel=this._model.lineToolsGroupModel(),this._facade=new To(this._controller),this._subscriptions=[this._model.mainSeries().onStyleChanged(),this._model.mainSeries().dataEvents().symbolResolved(),this._model.mainSeries().onIntervalChanged(),this._model.panesCollectionChanged(),this._model.dataSourceCollectionChanged(),this._groupModel.onChanged()],this._subscriptions.forEach(e=>{e.subscribe(this,this._update)}),this._chart.subscribe(this._onActiveChartChanged),this._selection=new qn(this._model),this._update())},this._update=()=>{null===this._timeout&&(this._timeout=setTimeout(()=>{this._recalculateTree(),this._onChange.fire(),this._timeout=null}))},this._ensuredEntity=e=>(0,I.ensureNotNull)(this._getEntityById(e)),this._chart=e,this._init()}destroy(){this._cleanup()}getState(){return{nodes:Object.values(this._nodes),selection:this._selection.selected()}}getChartId(){return this._chart.value().id()}insertSelection(e,t){const n=this._facade,o=this.selection().selected().map(this._ensuredEntity),[r,s]=this._normalizeTargetAndDropType(e,t);this._controller.withMacro(Fo,()=>{switch(s){case"before":n.insertBefore(o,r);break;case"after":n.insertAfter(o,r)}}),this._update()}entity(e){return this._facade.getObjectById(e)}isMain(e){return $n(e.id()).persistentId===this._controller.mainSeries().id()}selection(){return this._selection}setIsLocked(e,t){const n=this._getObjectsToModify(e),o=n.every(e=>e.doNotAffectChartInvalidation()),r=t?Po:jo;this._controller.withMacro(r,()=>{for(const e of n)e.setLocked(t)},o),hn("Lock",pn(n))}setIsVisible(e,t){const n=this._getObjectsToModify(e),o=n.every(e=>e.doNotAffectChartInvalidation()),r=t?zo:Vo;this._controller.withMacro(r,()=>{for(const e of n)e.setVisible(t)},o),hn("Hide",pn(n))}remove(e){const t=()=>{const e=n.every(e=>e.doNotAffectChartInvalidation());this._controller.withMacro(Ho,()=>{for(const e of n)e.remove()},e),hn("Delete",pn(n)),this._update()},n=this._getObjectsToModify(e);t()}canSelectionBeGrouped(){const e=this._getSelectedEntities();return this._facade.canBeGroupped(e)}createGroupFromSelection(){const e=this._groupController.createGroupFromSelection();hn("Create Group");const t=Xn(e.id,e.instanceId());this.selection().set([this._ensuredEntity(t)]),this._onGroupCreated.fire(t),this._update()}isSelectionDropable(e,t){ -const n=this.selection().selected().map(this._ensuredEntity),[o,r]=this._normalizeTargetAndDropType(e,t);switch(r){case"after":return o.canInsertAfterThis(n);case"before":return o.canInsertBeforeThis(n)}}onChange(){return this._onChange}onGroupCreated(){return this._onGroupCreated}isSelectionCloneable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isClonable())}isSelectionCopiable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isCopiable())}openProperties(e,t){const n=this._model.dataSourceForId($n(e.id()).persistentId);this.selection().selected().length>1&&this.selection().selected().includes(e.id())?this._chart.value().showSelectedSourcesProperties(t):(this.selection().set([e]),null!==n?this._controller.mainSeries()===n?this._chart.value().showGeneralChartProperties():((0,to.isLineTool)(n)||(0,no.isStudy)(n))&&this._chart.value().showChartPropertiesForSource(n,t):this._chart.value().showChartPropertiesForSources({sources:this._chart.value().model().selection().lineDataSources(),title:e.title(),tabName:t,renamable:!0}))}canSelectionBeUnmerged(){const e=this._getSelectedEntities();return 1===e.length&&this.canNodeWithIdBeUnmerged($n(e[0].id()).persistentId)}canNodeWithIdBeUnmerged(e){const t=this._model.dataSourceForId(e);return null!==t&&(0,Io.isPriceDataSource)(t)&&this._model.isUnmergeAvailableForSource(t)}unmergeSelectionUp(){this._unmergeSelection(0)}unmergeSelectionDown(){this._unmergeSelection(1)}copySelection(){const e=this._getSelectedEntities(),t=e.map(e=>(0,I.ensureNotNull)(this._model.dataSourceForId($n(e.id()).persistentId)));this._chart.value().chartWidgetCollection().clipboard.uiRequestCopy(t),hn("Copy",pn(e))}cloneSelection(){const e=this._getSelectedEntities(),t=e.map(e=>(0,I.ensureNotNull)(this._model.dataSourceForId($n(e.id()).persistentId)));t.every(to.isLineTool)&&(this._controller.cloneLineTools([...t],!1),hn("Clone",pn(e)))}rename(e,t){const n=this._getObjectsToModify(e.id());1===n.length&&n.some(e=>e.canBeRenamed())&&(t(),hn("Rename",pn(n)))}async openContextMenu(e,t,n){var o;this._objects=this._getObjectsToModify(e.id());const r=this._facade.canBeGroupped(this._objects);let s;if(this._objects.some(e=>e.hasChildren()))s=this._getActionsForGroupItem(e,t,r);else{const e=await this._facade.contextMenuActions(this._chart.value(),this._objects,this._options);if(s=Array.from(e).filter((e,t,n)=>"separator"!==e.type||!n[t+1]||"separator"!==n[t+1].type),1===this._objects.length&&this._objects[0].canBeRenamed()){const e=s.findIndex(e=>"Copy"===e.id);s.splice(-1===e?s.length:e+1,0,this._getRenameAction(t))}if(r){const e=s.findIndex(e=>"Clone"===e.id);s.splice(-1===e?0:e,0,this._getGroupAction())}}if(s.length>0){this._chart.value().updateActions();const t=$n(e.id()).persistentId,r=this._model.dataSourceForId(t),i=r instanceof ro.Series,l=0!==e.childrenIds().size;let a;a=i?{menuName:"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,to.isLineTool)(r)?{menuName:"ObjectTreeContextMenu",detail:{type:"shape", -id:null!==(o=null==r?void 0:r.id())&&void 0!==o?o:null}}:l?{menuName:"ObjectTreeContextMenu",detail:{type:"groupOfShapes",id:t||null}}:{menuName:"ObjectTreeContextMenu",detail:{type:"study",id:(null==r?void 0:r.id())||null}},Eo.ContextMenuManager.showMenu(s,n,{takeFocus:!0,returnFocus:!0},a,()=>{this._isContextMenuOpened.setValue(!1)}).then(()=>{this._isContextMenuOpened.setValue(!0)})}}setHoveredObject(e){this._facade.setHoveredObject(e)}hoveredObjectChanged(){return this._facade.hoveredObjectChanged()}getNextNodeIdAfterRemove(e){var t;const{nodes:n}=this.getState(),o=$n(e).persistentId,r=n.find(t=>t.id===e),s=this.entity(e);if(!(r&&r.parentId&&s&&s.canBeRemoved()))return null;if((null===(t=s.pane().mainDataSource())||void 0===t?void 0:t.id())===o&&!this.canNodeWithIdBeUnmerged(o)){const e=n.filter(e=>0===e.level).map(e=>e.id),t=this._takeNextOrPrevElement(e,r.parentId);return(0,I.ensureDefined)(n.find(e=>e.id===t)).children[0]}const i=(0,I.ensureDefined)(n.find(e=>e.id===r.parentId)).children;return 1===i.length?this.getNextNodeIdAfterRemove(r.parentId):this._takeNextOrPrevElement(i,e)}isContextMenuOpened(){return this._isContextMenuOpened.readonly()}getChartLayout(){return this._chart.value().chartWidgetCollection().layout}_takeNextOrPrevElement(e,t){const n=e.indexOf(t);return e[n===e.length-1?n-1:n+1]}_getGroupAction(){return new Mo.Action({actionId:"ObjectsTree.CreateGroup",label:Go,icon:R,onExecute:()=>{this.createGroupFromSelection()}})}_getRenameAction(e){return new Mo.Action({actionId:"ObjectsTree.RenameItem",label:Wo,icon:Oo,onExecute:()=>{e(),hn("Context menu rename",pn(this._objects))}})}_getActionsForGroupItem(e,t,n){const o=[];this._objects.forEach(e=>e.addSourcesToArray(o));const r=[];1===this._objects.length&&r.unshift(this._getRenameAction(t),new Mo.Separator),n&&r.unshift(this._getGroupAction(),new Mo.Separator);const s=(0,so.createSyncDrawingActions)(this._chart.value(),o.filter(to.isLineTool));return s.length&&(s.shift(),s.push(new Mo.Separator),r.push(...s)),r.push(new Mo.Action({actionId:"ObjectsTree.ToggleItemLocked",label:e.isLocked()?Uo:Ko,icon:e.isLocked()?Ao:Lo,onExecute:()=>this.setIsLocked(e.id(),!e.isLocked())}),new Mo.Action({actionId:"ObjectsTree.ToggleItemVisibility",label:e.isVisible()?Zo:Qo,icon:e.isVisible()?No:ko,onExecute:()=>this.setIsVisible(e.id(),!e.isVisible())}),new Mo.Action({actionId:"ObjectsTree.RemoveItem",label:Xo,icon:Bo,onExecute:()=>this.remove(e.id()),hotkeyHash:Ct.isMacKeyboard?8:46}),new Mo.Separator,this._chart.value().actions().format),r}_unmergeSelection(e){const t=this._getSelectedEntities();if(1!==t.length)throw new Error("Only one object can be unmerged");const n=t[0],o=(0,I.ensureNotNull)(this._model.dataSourceForId($n(n.id()).persistentId));if(!(0,Io.isPriceDataSource)(o))throw new Error("Entity is not IPriceDataSource");(0===e?this._controller.unmergeSourceUp:this._controller.unmergeSourceDown).call(this._controller,o);hn(0===e?"New pane above":"New pane below",pn([n]))}_recalculateTree(){const e=new Jn(this._controller,this._facade) -;this._nodes=e.buildTree()}_normalizeTargetAndDropType(e,t){let n=this._ensuredEntity(e);return"inside"===t&&(t="before",n=(0,I.ensureNotNull)(this.entity([...n.childrenIds()].shift()||""))),[n,t]}_getSelectedEntities(){const{selected:e,removed:t}=this._selection.selected().reduce((e,t)=>{const n=this._getEntityById(t);return n?(e.selected.push(n),e):(e.removed.push(t),e)},{selected:[],removed:[]});return t.length&&Ro.logWarn("Detected dangling sources in selection. They will be ignored: "+JSON.stringify(t)),e}_getEntityById(e){return this._facade.getObjectById(e)}}var qo=n(22729);class Jo extends qo.DialogRenderer{constructor(){super(),this._handleClose=()=>{r.unmountComponentAtNode(this._container),this._setVisibility(!1),null!==this._viewModel&&(this._viewModel.destroy(),this._viewModel=null)};const e=(0,Wn.service)(Un.CHART_WIDGET_COLLECTION_SERVICE);this._activeChartWidget=e.activeChartWidget.value(),this._viewModel=new $o(e.activeChartWidget)}hide(){this._handleClose()}isVisible(){return this.visible().value()}show(){p().then(()=>{null!==this._viewModel&&(r.render(o.createElement(Hn,{onClose:this._handleClose,viewModel:this._viewModel,activeChartWidget:this._activeChartWidget}),this._container),this._setVisibility(!0))})}}},36947:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>r});var o=n(59496);const r=()=>{const[,e]=(0,o.useReducer)((e,t)=>e+1,0);return e}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>r});var o=n(59496);const r=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,r="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,i]=(0,o.useState)(n?n.value():r);return(t?o.useLayoutEffect:o.useEffect)(()=>{if(n){i(n.value());const e=e=>i(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}},[n]),s}},61074:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>i});var o=n(59496),r=n(97754),s=n(33134);n(24780);function i(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return o.createElement("div",{className:t,style:e.style,role:"progressbar"})}},70029:e=>{e.exports=''},72802:e=>{ -e.exports=''},16788:e=>{e.exports=''},94669:e=>{e.exports=''},88142:e=>{e.exports=''},28337:e=>{e.exports=''},38593:e=>{e.exports=''},68256:e=>{ -e.exports=''},20077:e=>{e.exports=''},36666:e=>{e.exports=''},57914:e=>{ -e.exports=''},13696:e=>{e.exports=''},55247:e=>{e.exports=''},3589:e=>{e.exports=''},82308:e=>{ -e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/one-usd-banner.bf548661215c404433e5.js b/charting_library/bundles/one-usd-banner.bf548661215c404433e5.js new file mode 100644 index 00000000..7544d6a0 --- /dev/null +++ b/charting_library/bundles/one-usd-banner.bf548661215c404433e5.js @@ -0,0 +1 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7550],{33492:e=>{e.exports={banner:"banner-EZ3DKk2H","countdown-section":"countdown-section-EZ3DKk2H","main-section":"main-section-EZ3DKk2H",title:"title-EZ3DKk2H","main-text":"main-text-EZ3DKk2H",image:"image-EZ3DKk2H"}},56299:(e,t,n)=>{"use strict";n.d(t,{OfferBanner:()=>m});var a=n(59496),r=n(28353),o=n(53746),i=n(82760),c=n(5437),s=n(33492);function m(e){const{expiration:t,title:n,mainTitle:m,buttonProps:l,buttonText:u=r.t("Learn more"),imgSrc:d}=e;return a.createElement("article",{className:s.banner},a.createElement("section",{className:s["main-section"]},a.createElement("h2",{className:s.title},n),a.createElement("p",{className:s["main-text"]},m),a.createElement(c.RoundAnchorButton,{className:s["cta-button"],...l},u)),a.createElement("section",{className:s["countdown-section"]},a.createElement("img",{src:d,className:s.image,role:"presentation"}),a.createElement(o.OfferCountdown,{theme:i.CountdownTheme.Profile,expiration:t,size:"m"})))}},11042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{renderOneUsdBanner:()=>f});var a=n(59496),r=n(87995),o=n(28353),i=n(77975),c=n(45345),s=n(26843),m=n(56299),l=n(70785),u=n(24759);function d(e){const t=(0,i.useWatchedValueReadonly)({watchedValue:c.watchedTheme})===s.StdTheme.Light?l:u,n=o.t("Upgrade for $1"),r=o.t("One month of upgraded features for one dollar.");return a.createElement(m.OfferBanner,{title:n,mainTitle:r,buttonProps:{href:"/gopro/?source=profile&feature=one_usd_banner"},imgSrc:t,expiration:e.expiration})}function f(e,t){r.render(a.createElement(d,{...t}),e)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/price-alerts-dispatcher.416bae3f764ba35699c2.js b/charting_library/bundles/price-alerts-dispatcher.416bae3f764ba35699c2.js new file mode 100644 index 00000000..42ee7e2e --- /dev/null +++ b/charting_library/bundles/price-alerts-dispatcher.416bae3f764ba35699c2.js @@ -0,0 +1,50 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8158],{24993:(e,t,n)=>{"use strict";var r;n.d(t,{AlertEditorAbortReason:()=>r}),function(e){e.AlertIsInvalid="alert-is-invalid",e.AlertsMaintenance="alerts-maintenance",e.ChartModelNotFound="chart-model-not-found",e.IsAlreadyPresent="is-already-present",e.MainSeriesIsATR="main-series-is-atr",e.MainSeriesIsInReplay="main-series-is-in-replay",e.MainSeriesIsOffline="main-series-is-offline",e.SourceIsDangerous="source-is-dangerous",e.SymbolInfoTimeout="symbol-info-timeout",e.SymbolIsInvalid="symbol-is-invalid",e.SymbolCurrencyConverted="symbol-currency-converted",e.SymbolUnitConverted="symbol-unit-converted",e.SymbolCurrencyAndUnitConverted="symbol-currency-and-unit-converted",e.SymbolIsEconomics="symbol-is-economics",e.UnsupportedResolution="unsupported-resolution",e.ManualAbort="manual-abort",e.MisleadingPriceScale="misleading-price-scale"}(r||(r={}))},99486:(e,t,n)=>{"use strict";n.d(t,{getAlertDialogType:()=>p,shouldAbortAlertEditor:()=>h,showAbortExplainingDialog:()=>m});var r=n(28353),i=n(3615),o=n(24993),s=n(16654),a=n(37667),l=n(82992),c=n(26187),u=n(22822),d=n(51712),_=n(39193);function p(e){return e.alert?e.type||"edit_alert":"create_alert"}function h(e){var t;if(_.alertsMaintenanceTracker.value())return o.AlertEditorAbortReason.AlertsMaintenance;if(!e.alert&&!e.dataSourceHub)return o.AlertEditorAbortReason.ChartModelNotFound;if(!c.alertEditorInvocationHandler.isAllowedToInvoke(e))return o.AlertEditorAbortReason.IsAlreadyPresent;const n=null===(t=e.dataSourceHub)||void 0===t?void 0:t.mainSeries();if(n&&f(n))return o.AlertEditorAbortReason.MainSeriesIsOffline;if(n&&function(e){return e.status()===s.STATUS_INVALID_SYMBOL}(n))return o.AlertEditorAbortReason.SymbolIsInvalid;if(n&&n.isConvertedToOtherCurrency()&&n.isConvertedToOtherUnit())return o.AlertEditorAbortReason.SymbolCurrencyAndUnitConverted;if(n&&n.isConvertedToOtherCurrency())return o.AlertEditorAbortReason.SymbolCurrencyConverted;if(n&&n.isConvertedToOtherUnit())return o.AlertEditorAbortReason.SymbolUnitConverted;const r=p(e);if("create_alert"===r&&n&&function(e){var t;return"ATR"===(null===(t=e.stateForAlert().styleInputs)||void 0===t?void 0:t.style)}(n))return o.AlertEditorAbortReason.MainSeriesIsATR;if("create_alert"===r&&n&&function(e){return e.isInReplay()}(n))return o.AlertEditorAbortReason.MainSeriesIsInReplay;if("create_alert"===r&&n&&function(e){return(0,a.isEconomicSymbol)(e.symbolInfo())}(n))return o.AlertEditorAbortReason.SymbolIsEconomics;const i=n?n.interval():l.linking.interval.value();return"create_alert"!==r||(0,u.canPlaceAlertOnResolution)(i)?null:o.AlertEditorAbortReason.UnsupportedResolution}function f(e){return e.status()===s.STATUS_OFFLINE}function m(e,t){if(g.has(e))return;g.add(e);const n=()=>g.delete(e),s=function(e){return new Map([[o.AlertEditorAbortReason.UnsupportedResolution,"alertsOnSeconds"]]).get(e)||null}(e);if(s)return void(0,d.reloginOrGoPro)({feature:s,actionAfterClose:n});const a=function(e,t){ +const n=r.t("Oops!"),i=r.t("Alert editor could not be initialized"),s=r.t("Ok");return new Map([[o.AlertEditorAbortReason.AlertsMaintenance,{title:r.t("Alerts maintenance"),text:r.t("We are doing some brief daily maintenance. Alerts will be back really soon, thanks for your patience!"),buttonText:s}],[o.AlertEditorAbortReason.MainSeriesIsOffline,{title:n,text:("create_alert"===t?r.t("Cannot create an alert while offline"):r.t("Cannot edit an alert while offline"))+". "+r.t("Please check your internet connection")+".",buttonText:s}],[o.AlertEditorAbortReason.SymbolIsInvalid,{title:n,text:"create_alert"===t?r.t("Can't create alert on invalid symbol"):r.t("Can't edit alert on invalid symbol"),buttonText:s}],[o.AlertEditorAbortReason.SymbolCurrencyAndUnitConverted,{title:r.t("Both the currency and the unit have been converted!"),text:"create_alert"===t?r.t("It's not currently possible to create alerts on such a scale."):r.t("It's not currently possible to edit alerts on such a scale."),buttonText:r.t("Got it")}],[o.AlertEditorAbortReason.SymbolCurrencyConverted,{title:r.t("A converted currency has been detected!"),text:"create_alert"===t?r.t("It's not currently possible to create alerts for this type of symbol."):r.t("It's not currently possible to edit alerts for this type of symbol."),buttonText:r.t("Got it")}],[o.AlertEditorAbortReason.SymbolUnitConverted,{title:r.t("A converted unit has been detected!"),text:"create_alert"===t?r.t("It's not currently possible to create alerts for this type of symbol."):r.t("It's not currently possible to edit alerts for this type of symbol."),buttonText:r.t("Got it")}],[o.AlertEditorAbortReason.SymbolIsEconomics,{title:r.t("Dang-it – Wrong symbol type!"),text:r.t("Alerts aren't available right now for economics symbols."),buttonText:r.t("Got it")}],[o.AlertEditorAbortReason.MainSeriesIsATR,{title:r.t("Alert cannot be set on an ATR-based chart"),text:r.t("Your alert won't trigger the way you expect it to! Inputs for ATR-based charts are recalculated each time you open a chart and are generally dependent on time. Please use the traditional chart type to set an alert with a static box size."),buttonText:s}],[o.AlertEditorAbortReason.MainSeriesIsInReplay,{title:r.t("Oops – Replay Mode!"),text:r.t("Alerts are not currently available in replay mode."),buttonText:r.t("Got it")}]]).get(e)||{title:n,text:i,buttonText:s}}(e,t);(0,i.showWarning)({...a,onClose:n})}const g=new Set},64021:(e,t,n)=>{"use strict";n.d(t,{FormattersSerializer:()=>c});var r=n(97098),i=n(67802),o=n(26811);class s{constructor(e){this.type="quoteSessionPrice",this.reset(e)}state(){return this._priceFormatter.state()}reset(e){this._priceFormatter=e||new r.PriceFormatter(100,1,!1)}update(e,t){const n=null!=t.pricescale||null!=t.minmov||null!=t.fractional||null!=t.minmove2,i=null!=e.pricescale&&null!=e.minmov&&null!=e.fractional&&null!=e.minmove2;n&&i&&(this._priceFormatter=new r.PriceFormatter(e.pricescale,e.minmov,e.fractional||!1,e.minmove2))}format(e,t,n){return this._priceFormatter.format(e,t,n)} +hasForexAdditionalPrecision(){return this._priceFormatter.hasForexAdditionalPrecision()}static serialize(e){return e.state()}static deserialize(e){const t=new r.PriceFormatter(e.priceScale,e.minMove,e.fractional,e.minMove2);return new s(t)}}var a=n(88537);const l={price:r.PriceFormatter,volume:i.VolumeFormatter,percentage:o.PercentageFormatter,quoteSessionPrice:s};var c;!function(e){e.serialize=function(e){const t=(0,a.ensureDefined)(l[e.type]);return{type:e.type,state:t.serialize(e)}},e.deserialize=function(e){return(0,a.ensureDefined)(l[e.type]).deserialize(e.state)}}(c||(c={}))},95379:e=>{"use strict";function t(e){var t=JSON.stringify(e);return t=t.replace(/'/g,"\\'")}e.exports={formatCallstudyArg:t,prepareCallStudyArgs:function(e,n){var r={};if(n.isTVScript){var i=n.defaults.inputs.text;r.text=(void 0).patchILTemplate(i,n,e)}else for(var o=Object.keys(e),s=o.length-1;s>=0;s--){var a=o[s],l=e[a]?e[a].id:null;l&&e[l]&&(r[l]=e[l])}return t(r)}}},99543:(e,t,n)=>{"use strict";var r=n(2872),i=n(23127),o=n(28353).t,s=n(88537).assert,a=n(51768).trackEvent,l=n(21097).TVXWindowEvents,c=n(98125).getLogger("Pine.ScriptLib"),u=n(52485).telemetry,d=n(76422),_={fast:["delete","get","is_auth_to_get","is_auth_to_write","parse_title","rename","lib_list"],medium:["list","eval_pine_ex","translate_light"],slow:["process_legacy","publish","save","translate","translate_source","gen_alert"]};var p={};function h(){p._cache={}}p._isAuthCache=new h,p._pineDeleted=new r,l.on("TVScriptModified",(function(e){p.clearSavedScriptsCache(),p.scriptUpdater()&&p.scriptUpdater().onTVScriptModified(JSON.parse(e))})),l.on("TVScriptDeleted",(function(e){p.clearAllCaches(),p.scriptUpdater()&&p.scriptUpdater().onTVScriptDeleted(JSON.parse(e))})),l.on("TVScriptRenamed",(function(e){p.clearSavedScriptsCache(),p.scriptUpdater()&&p.scriptUpdater().onTVScriptRenamed(JSON.parse(e))})),l.on("TVScriptLegacyPineProcessed",(function(e){p.clearSavedScriptsCache(),p.scriptUpdater()&&p.scriptUpdater().onTVScriptLegacyPineProcessed(JSON.parse(e))})),p.PINE_FACADE_URL=function(){return window.PINE_URL},p.onPineDeleted=function(){return p._pineDeleted},p._pineFacadeAjax=function(e,t,n,r){c.logNormal("Requesting pine facade scripts, url: "+t);var o=function(e,t){for(var n=Object.keys(_),r=0;r1,"Unexpectedly short json path");for(var d=e,_=0;_=0})).forEach((function(e){delete p._cache[e]})):p._isAuthCache=new h},p.clearSavedScriptsCache=function(e){delete p._userScriptsDfd},p.requestUserScripts=function(e){if(a("Pine","ScriptLib.requestUserScripts"),window.is_authenticated){if(!p._userScriptsDfd){p._userScriptsDfd=i.Deferred();var t=p._userScriptsDfd;p._pineFacadeAjax("GET","/list?filter=saved").done((function(e,n,r){t.resolve(e)})).fail((function(e){p._anyRequestAsyncFail(t,e)}))}t=p._userScriptsDfd}else t=i.Deferred().resolve([]);return"function"==typeof e&&t.done(e),t.promise()},p.setUserScripts=function(e){p._userScriptsDfd||(p._userScriptsDfd=i.Deferred().resolve(e))},p.requestUserPublishedScripts=function(e,t){if(a("Pine","ScriptLib.requestUserPublishedScripts"),window.is_authenticated){if(t||!p._userPublishedScriptsDfd){p._userPublishedScriptsDfd=i.Deferred();var n=p._userPublishedScriptsDfd;p._pineFacadeAjax("GET","/list?filter=published").done((function(e,t,r){n.resolve(e)})).fail((function(e){p._anyRequestAsyncFail(n,e)}))}n=p._userPublishedScriptsDfd}else n=i.Deferred().resolve([]);return"function"==typeof e&&n.done(e),n.promise()},p.requestPineEditorNewTemplateScripts=function(e){a("Pine","ScriptLib.requestPineEditorNewTemplateScripts");var t=i.Deferred();return p._pineFacadeAjax("GET","/list/?filter=template",void 0,!0).done((function(e,n,r){t.resolve(e)})).fail((function(e){p._anyRequestAsyncFail(t,e)})),"function"==typeof e&&t.done(e),t.promise()},p.requestInfoForScripts=function(e){return Promise.all([p._pineFacadeAjax("GET","/list?filter=saved"),p._pineFacadeAjax("GET","/list?filter=addon",void 0,!0)]).then((function(t){var n=t[0],r=t[1];return n.concat(r).filter((function(t){return e.includes(t.scriptIdPart)}))}))},p.requestBuiltinScripts=function(){a("Pine","ScriptLib.requestBuiltinScripts"),c.logNormal("Request built-in scripts");var e=i.Deferred();return p._pineFacadeAjax("GET","/list/?filter=standard",void 0,!0).done((function(t,n,r){c.logNormal("Request built-in scripts finished"),e.resolve(t) +})).fail((function(t){c.logWarn("Request built-in scripts finished with fail"),p._anyRequestAsyncFail(e,t)})),e.promise()},p.requestBuiltinAndUserScripts=function(){a("Pine","ScriptLib.requestBuiltinAndUserScripts"),c.logNormal("Request built-in and user scripts");var e,t=window.user&&window.user.username,n={},r=new Promise((function(t,r){e=t,n.reject=r}));return Promise.all([p._pineFacadeAjax("GET","/list?filter=saved&user_name="+encodeURIComponent(t),void 0,!1),p._pineFacadeAjax("GET","/list?filter=standard",void 0,!0)]).then((function(t){c.logNormal("Request built-in and user scripts finished");var n=t[0],r=t[1];e(n.concat(r))})).catch((function(e){c.logWarn("Request built-in and user scripts finished with fail"),p._anyRequestAsyncFail(n,e)})),r},p.requestCandlestickScripts=function(){var e;a("Pine","ScriptLib.requestCandlestickScripts"),c.logNormal("Request candlestick scripts");var t={},n=new Promise((function(n,r){e=n,t.reject=r}));return p._pineFacadeAjax("GET","/list?filter=candlestick",void 0,!0).done((function(t){c.logNormal("Request candlestick scripts finished"),e(t)})).fail((function(e){c.logWarn("Request candlestick scripts finished with fail"),p._anyRequestAsyncFail(t,e)})),n};var f={time:-1/0,request:null};p.requestFundamentalScripts=function(){if(f.time+6e5>Date.now()&&null!==f.request)return c.logNormal("Return fundamentals from cache"),f.request;c.logNormal("Request fundamental scripts");var e=p._pineFacadeAjax("GET","/list?filter=fundamental",void 0,!1);return e.then((function(e){c.logNormal("Request fundamental scripts finished")})),e.fail((function(e){c.logWarn("Request fundamental scripts finished with fail, resetting cache"),f.request=null})),f.time=Date.now(),f.request=Promise.resolve(e.promise()),f.request},p.requestPineAddons=function(e){a("Pine","ScriptLib.requestPineAddons");var t=i.Deferred();return p._pineFacadeAjax("GET","/list?filter=addon&pine_id_prefix="+e).done((function(e){t.resolve(e)})).fail((function(e){p._anyRequestAsyncFail(t,e)})),t},p._updateAliveScriptInstances=function(e,t){var n={};n.scriptMetaInfo=e.result.metaInfo,n.scriptVersionToUpdate=t,l.emit("TVScriptModified",JSON.stringify(n)),d.emit("TVScriptModified",n),setTimeout((function(){n.isSelfCall=!0,null!=p.scriptUpdater()&&p.scriptUpdater().onTVScriptModified(n)}),0)},p.saveNew=function(e,t,n,r){a("Pine","ScriptLib.saveNew");var s=i.Deferred();if(null==e||""===e)return s.reject(o("Cannot save empty source code"));var l=window.user&&window.user.username,c=n?"&allow_overwrite=true":"",u="/save/new/?name="+encodeURIComponent(t)+"&user_name="+encodeURIComponent(l)+c,d={source:e};return p._pineFacadeAjax("POST",u,d).done((function(e,t,n){p.clearSavedScriptsCache(),p._updateAliveScriptInstances(e,r),p._saveScriptAsyncDone(s,e)})).fail((function(e,t,n){p._anyRequestAsyncFail(s,e)})),s.promise()},p.saveNext=function(e,t,n,r,s){a("Pine","ScriptLib.saveNext");var l=null!=n?"&name="+encodeURIComponent(n):"",c=i.Deferred();if(null==t||""===t)return c.reject(o("Cannot save empty source code")) +;var u=window.user&&window.user.username,d="/save/next/"+encodeURIComponent(e)+"/?user_name="+encodeURIComponent(u)+"&allow_create_new="+!!s+l,_={source:t};return p._pineFacadeAjax("POST",d,_).done((function(e,t,n){p.clearSavedScriptsCache(),p._updateAliveScriptInstances(e,r),p._saveScriptAsyncDone(c,e)})).fail((function(e,t,n){p._anyRequestAsyncFail(c,e)})),c.promise()},p.deletePine=function(e){a("Pine","ScriptLib.deletePine");var t=i.Deferred(),n=window.user&&window.user.username,r="/delete/"+encodeURIComponent(e)+"/?user_name="+encodeURIComponent(n);return p._pineFacadeAjax("POST",r).done((function(n,r,i){p.clearIsAuthToCaches(e),p.clearSavedScriptsCache(),t.resolve(n);var o={scriptIdPart:e};l.emit("TVScriptDeleted",JSON.stringify(o)),d.emit("TVScriptDeleted",o),setTimeout((function(){o.isSelfCall=!0,null!=p.scriptUpdater()&&p.scriptUpdater().onTVScriptDeleted(o),p._pineDeleted.fire(e)}),0)})).fail((function(e,n,r){p._anyRequestAsyncFail(t,e)})),t.promise()},p.renamePine=function(e,t,n){a("Pine","ScriptLib.renamePine");var r=i.Deferred(),o=window.user&&window.user.username,s="/rename/"+encodeURIComponent(e)+"/?name="+encodeURIComponent(t)+"&user_name="+encodeURIComponent(o)+"&force="+encodeURIComponent(!!n);return p._pineFacadeAjax("POST",s).done((function(n,i,o){p.clearSavedScriptsCache();var s={scriptIdPart:e,scriptName:t};l.emit("TVScriptRenamed",JSON.stringify(s)),d.emit("TVScriptRenamed",s),setTimeout((function(){s.isSelfCall=!0,null!=p.scriptUpdater()&&p.scriptUpdater().onTVScriptRenamed(s)}),0),r.resolve(n)})).fail((function(e,t,n){p._anyRequestAsyncFail(r,e)})),r.promise()},p.publishNew=function(e,t){a("Pine","ScriptLib.publishNew");var n=i.Deferred(),r=window.user&&window.user.username,o="/publish/new/?access="+encodeURIComponent(t)+"&user_name="+encodeURIComponent(r),s={source:e};return p._pineFacadeAjax("POST",o,s).done((function(e,t,r){e.success?(p.clearSavedScriptsCache(),n.resolve(e)):n.reject(e.reason)})).fail((function(e,t,r){p._anyRequestAsyncFail(n,e)})),n.promise()},p.publishNext=function(e,t){c.logNormal("ScriptLib.publishNext","pine"),a("Pine","ScriptLib.publishNext");var n=i.Deferred(),r=window.user&&window.user.username,o="/publish/next/"+encodeURIComponent(t)+"?user_name="+encodeURIComponent(r),s={source:e};return p._pineFacadeAjax("POST",o,s).done((function(e,t,r){p.clearSavedScriptsCache(),e.success||n.reject(e.reason),n.resolve(e)})).fail((function(e,t,r){p._anyRequestAsyncFail(n,e)})),n.promise()},p.lightTranslate=function(e,t){return c.logNormal("ScriptLib.lightTranslate","pine"),a("Pine","ScriptLib.lightTranslate"),new Promise((function(n,r){var i=window.user&&window.user.username,o="/translate_light/?user_name="+encodeURIComponent(i);t&&(o+="&pine_id="+encodeURIComponent(t));var s={source:e};p._pineFacadeAjax("POST",o,s).done((function(e,t,i){if(e.success)n(e.result);else{var o=e.result&&e.result.reason||e.reason;r(o)}})).fail((function(e,t,n){p._anyRequestAsyncFail({reject:r},e)}))}))},p.getLibList=function(e,t,n){return c.logNormal("ScriptLib.getLibList","pine"), +a("Pine","ScriptLib.getLibList"),new Promise((function(r,i){var o="/lib_list?lib_id_prefix="+encodeURIComponent(e);t&&(o+="&ignore_cache=true"),n&&(o+="&ignore_case=true"),p._pineFacadeAjax("GET",o).done((function(e,t,n){r(e)})).fail((function(e,t,n){p._anyRequestAsyncFail({reject:i},e)}))}))},p.getExistingLibraryInfo=async function(e){try{const t=await p.getLibList(e+"/last",!0,!0);if(!t.length)return null;const n=t[0];return{scriptIdPart:n.scriptIdPart,chartId:n.chartId,version:n.version}}catch(e){return null}},loginStateChange.subscribe(p,p.clearAllCaches),e.exports=p},83050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{collectDepsForAlert:()=>g,dependenciesForAlerts:()=>S,idForAlert:()=>f,patchChildIdInInputs:()=>h,plotsForAlert:()=>m});var r=n(88537),i=n(98125),o=n(85619);var s=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},a=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n},l=n(88145),c=n(67072),u=n.n(c),d=n(50993),_=n(80643);const p=(0,i.getLogger)("Chart.Study");function h(e,t,n){void 0!==t&&void 0!==n&&n.forEach(n=>{const r=e[n];if("string"==typeof r){const i=r.split("$")[1];e[n]=t+(void 0===i?"":"$"+i)}else if((0,_.isObject)(r)&&"source"===r.t){const e=r.v.split("$")[1];r.v=t+(void 0===e?"":"$"+e)}else p.logError("Cannot patch source input, its type is not source: "+JSON.stringify(r))})}function f(e,t,n){return(0,o.hash)(e+function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var r,i="boolean"==typeof t.cycles&&t.cycles,o=t.replacer||function(e,t){return t},l=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),c=[];return function e(t,r,u,d){var _=n?"\n"+new Array(d+1).join(n):"",p=n?": ":":";if(u&&u.toJSON&&"function"==typeof u.toJSON&&(u=u.toJSON()),void 0!==(u=o.call(t,r,u))){if("object"!=typeof u||null===u)return JSON.stringify(u);if(s(u)){for(var h=[],f=0;f({...e,pinePlotIndex:t})).filter(e=>!(void 0!==n&&!n.includes(e.id))&&i.some(t=>t(e))).map(n=>{const i={id:n.id,type:n.type,pinePlotIndex:n.pinePlotIndex,offset:t(n.id)};if(e.styles&&void 0!==e.styles[n.id]){const t=(0,r.ensureDefined)((0,r.ensureDefined)(e.styles)[n.id]);i.title=t.title||"",i.text=t.text||""}return(0,d.isOhlcPlot)(n)&&n.target&&e.ohlcPlots&&e.ohlcPlots[n.target]&&(i.ohlcTitle=(0,r.ensureDefined)((0, +r.ensureDefined)(e.ohlcPlots)[n.target]).title),i})}function g(e,t){const n=[];let i,o;for(let r=e.length-1;r>=0;r--){const s=e[r],a=(0,l.extractStudyId)(s.metaInfo().id),c=u().getStudyIdWithLatestVersion(s.metaInfo());o=s.inputsForAlertState();h(o,i,s.metaInfo().inputs.filter(e=>"source"===e.type).map(e=>e.id));const d=Object.assign({},o);s.metaInfo().isTVScript&&delete d.text;const _=f(a,d,t);n.push({id:_,study:c,inputs:o}),i=_}return{idForAlert:(0,r.ensureDefined)(i),inputsForAlert:(0,r.ensureDefined)(o),studyDependencies:n.reverse()}}function S(e,t){throw new Error("Not implemented")}},47806:(e,t,n)=>{"use strict";n.d(t,{AlertConditionTokenMapType:()=>r,getAlertConditionTokenMap:()=>l});n(94419);var r,i=n(28353),o=n(88537);!function(e){e[e.MainSeries=0]="MainSeries",e[e.Study=1]="Study",e[e.PineScript=2]="PineScript",e[e.Strategy=3]="Strategy",e[e.PineScriptAlertFunction=4]="PineScriptAlertFunction"}(r||(r={}));const s=(0,i.t)("Upper Bound: {alertChannelUpperBoundaryTitle}, Lower Bound: {alertChannelLowerBoundaryTitle}"),a=e=>(0,i.t)("in {count} bar",{plural:"in {count} bars",count:e}).format({count:e.toString()});function l(e){const t=(0,o.ensureDefined)(e.get("extra")),n=t.getAlertSeries(),i=t.conditionData();if("alerts"===i.type)return{type:r.PineScriptAlertFunction,scriptTitle:n.title({short:!0}),isStrategy:"StudyStrategy"===n.type()};if("StudyStrategy"===n.type())return{type:r.Strategy,strategyTitle:n.title()};if(["pine_script","pine_alertcondition_plot"].includes(i.type))return{type:r.PineScript,conditionTitle:i.title,conditionMessage:i.message};const l=e.getFormatter();function c(e){const t=e.getPlots();return e.title({formatter:l,withPlotTitle:t&&t.length>1})}let u="";switch(i.type){case"moving":const e=t.movingValue(),n=t.movingPeriod();u=i.percents?`${e}% ${a(n)}`:`${l?l.format(e):e} ${a(n)}`;break;case"comparison":if(i.isChannel){const e=c(t.getUpperBand()),n=c(t.getLowerBand());u=`(${s.format({alertChannelUpperBoundaryTitle:e,alertChannelLowerBoundaryTitle:n})})`}else u=c(t.getBand())}const d=t.getMainSeries(),_=d?d.title({withInterval:!e.get("crossInterval")}):e.shortSymbol();return{conditionTitle:i.descriptionTitle||i.title,conditionOptions:u,..."MainSeries"===n.type()?{type:r.MainSeries,alertSeries:_}:{type:r.Study,alertSeries:n.title(),mainSeries:_}}}},26187:(e,t,n)=>{"use strict";n.d(t,{alertEditorInvocationHandler:()=>l});var r=n(52714),i=n.n(r),o=n(99486),s=n(88537);class a{constructor(){this._state=new(i())(!1)}subscribe(e){this._state.subscribe(e)}unsubscribe(e){this._state.unsubscribe(e)}value(){return this._state.value()}abort(){this._state.setValue(!0)}}const l=new class{constructor(){this._dialogInvocations=new(i())(new Map)}getDialogInvocations(){return this._dialogInvocations}isAllowedToInvoke(e){return e.silent||!this._dialogInvocations.value().has(c(e))}lockInvocation(e){if(e.silent)return{unlockInvocation:()=>{}};const t=c(e),n=new a,r=new Map(this._dialogInvocations.value());return r.set(t,n),this._dialogInvocations.setValue(r),{abortSignal:n,unlockInvocation:()=>{ +const e=new Map(this._dialogInvocations.value());e.delete(t),this._dialogInvocations.setValue(e)}}}};function c(e){return"create_alert"===(0,o.getAlertDialogType)(e)?-1:(0,s.ensureDefined)(e.alert).id}},21088:(e,t,n)=>{"use strict";n.d(t,{AlertExtraUpdateScheduler:()=>a});var r=n(87341),i=n(16509);const o=(0,n(98125).getLogger)("Alerts.ExtraUpdateScheduler"),s=clearTimeout;class a{constructor(){this._queue=new Map,this._taskHandle=null}scheduleUpdate(e){this._queue.set(e.id,e),this._maybeScheduleTask()}cancelUpdate(e){this._queue.delete(e),null!==this._taskHandle&&0===this._queue.size&&(s(this._taskHandle),this._taskHandle=null)}cancelAllUpdates(){this._queue.clear(),null!==this._taskHandle&&(s(this._taskHandle),this._taskHandle=null)}_maybeScheduleTask(){null===this._taskHandle&&0!==this._queue.size&&(this._taskHandle=setTimeout(async()=>{const e=this._queue.values().next().value;e&&(this._queue.delete(e.id),await function(e){return o.logDebug("Sending extra update request for alert "+e.id),(0,r.sendRequest)({method:"update_extra",params:(0,i.client2serverParams)(e)}).then(()=>o.logDebug("Extra has been updated successfully for alert "+e.id),t=>o.logWarn(`Could not update extra for alert ${e.id}: ${t}`))}(e)),this._taskHandle=null,this._maybeScheduleTask()},1e3))}}},35908:(e,t,n)=>{"use strict";function r(e=0){return e<1e3?e:e/1e3}function i(e,t){if(e.length>t){const n=/[\W]+$/g,r=e.substring(0,t),i=r.replace(n,"");return(i.length?i:r.substring(0,t-1))+"…"}return e}n.d(t,{ensureDurationInSeconds:()=>r,cutString:()=>i})},39193:(e,t,n)=>{"use strict";n.d(t,{alertsMaintenanceTracker:()=>s});var r=n(52714),i=n.n(r),o=n(76266);const s=new class{constructor(){this._state=new(i())((0,o.isFeatureEnabled)("alerts-maintenance"))}value(){return this._state.value()}subscribe(e){this._state.subscribe(e)}unsubscribe(e){this._state.unsubscribe(e)}sync(){this._state.setValue((0,o.isFeatureEnabled)("alerts-maintenance"))}}},53371:(e,t,n)=>{"use strict";var r;n.d(t,{DataSourceDangerReason:()=>r}),function(e){e.Spread="spread",e.PineRepainting="pine-repainting",e.CryptoCap="cryptocap"}(r||(r={}))},86811:(e,t,n)=>{"use strict";function r(e){return o().then(t=>t.hasUserAccessToDataSource(e))}function i(e){return o().then(t=>t.filterAccessibleDataSources(e))}n.d(t,{hasUserAccessToDataSource:()=>r,filterAccessibleDataSources:()=>i});const o=()=>n.e(3441).then(n.bind(n,57467))},78356:(e,t,n)=>{"use strict";n.d(t,{getAlertType:()=>o});const r=new Set(["study_Overlay","study_Compare","StudyStrategy"]);function i({type:e}){return!r.has(e)&&e.toLowerCase().startsWith("study")}function o(e){if(e.isDrawing())return"drawing";const t=e.get("extra"),n=null==t?void 0:t.alertSeries();return n&&t?n.isTVScriptStrategy?"strategy":t.bandsArray("object").some(i)?"indicator":"price":"price"}},84709:(e,t,n)=>{"use strict";var r=n(68647),i=n(55532),o=n(98125).getLogger("Alerts.Price.Abstract"),s=n(9315).getTranslatedResolution,a=n(82029),l=n(62820),c=r.Model.extend({constructor:function(e,t){e=this._prepareToSet(e,!0),r.Model.call(this,e,t)}, +_prepareToSet:function(e,t){var n,r,i;if(e)for(n in e)e.hasOwnProperty(n)&&(r=e[n],"function"==typeof this[i="_prepareToSet_"+n]&&(e[n]=this[i](r,e,t)));return e},destroy:function(){this.stopListening(),this.trigger("destroy",this)},save:function(){o.logError("[Alerts] Use disaptcher to save")},shortSymbol:function(e){return a?a.shortName(e||this.get("symbol")||""):(o.logWarn("[Alerts] can't get short symbol"),e)},resolutionReadable:function(e){return(e=e||this.get("resolution"))?s(e):""},title:function(e){var t;return t=e?this.get("symbol"):this.shortSymbol(),this.get("crossInterval")||(t=l.isRtl()?t+" "+l.forceRTLStr(" ,"+this.resolutionReadable()):t+", "+this.resolutionReadable()),t},_formatDate:function(e){return i(e||new Date).format("MMM D LTS")}});e.exports=c},2495:(e,t,n)=>{"use strict";var r=n(28353).t,i=n(62591).isStudyStateForAlertType,o=n(50993),s=n(40264).generateTitleForGui,a=n(98125).getLogger("Alerts.Band"),l=n(37667),c=n(62820);TradingView="object"==typeof n.g?n.g.TradingView:TradingView||{};var u={create:function(e){var t,n=e||{},r=n.type;if("MainSeries"===r)t=_;else if(i(r,!0))t=p;else if("Value"===r)t=h;else{if(!/^LineTool.*/i.test(r))return a.logError("Unknown alert band type "+r),null;t=f}return new t(n)}};function d(e){this._band=e||{}}function _(){d.apply(this,arguments)}function p(){d.apply(this,arguments)}function h(){d.apply(this,arguments)}function f(){d.apply(this,arguments)}d.prototype.id=function(){return this._band.id},d.prototype.type=function(){return this._band.type},d.prototype.title=function(){return this._band.title},d.prototype.hasPlots=function(){return this._band.plots&&this._band.plots.length},d.prototype.getActualSymbol=function(){return this._band.actualSymbol},d.prototype.getSymbolString=function(){return this._band.symbolString},d.prototype.getPlotTitle=function(e){return e.title?e.title:o.isOhlcOpenPlot(e)?e.ohlcTitle+" "+r("Open"):o.isOhlcHighPlot(e)?e.ohlcTitle+" "+r("High"):o.isOhlcLowPlot(e)?e.ohlcTitle+" "+r("Low"):o.isOhlcClosePlot(e)?e.ohlcTitle+" "+r("Close"):"vol"===e.id?r("Volume"):"vol_ma"===e.id?r("Volume MA"):"open"===e.id?r("Open"):"high"===e.id?r("High"):"low"===e.id?r("Low"):"close"===e.id?r("Close"):e.id},d.prototype.getPlots=function(e){var t=e||{};if(!this._band.plots||!this._band.plots.length)return this._band.plots;if("inputSelect"===t.format){var n=-1;return this._band.plots.map((function(e){return{value:++n,title:this.getPlotTitle(e)}}),this)}return this._band.plots},d.prototype.hasUsualPlots=function(){var e=this._band.plots;return!e||e.filter(o.isAlertConditionPlot).length{"use strict";var r=n(23127),i=n(28353).t,o=function(){function e(e,t){return t.id||(t.id=e),t}for(var t,n={cross:{title:i("Crossing"),type:"comparison"},crosses_from_below:{title:i("Crossing Up"),type:"comparison"},crosses_from_above:{title:i("Crossing Down"),type:"comparison"},above:{title:i("Greater Than"),type:"comparison"},below:{title:i("Less Than"),type:"comparison"},enters_channel:{title:i("Entering Channel"),isChannel:!0,type:"comparison"},leaves_channel:{title:i("Exiting Channel"),isChannel:!0,type:"comparison"},inside_channel:{title:i("Inside Channel"),isChannel:!0,type:"comparison"},outside_channel:{title:i("Outside Channel"),isChannel:!0,type:"comparison"},moving_up:{title:i("Moving Up"),type:"moving"},moving_down:{title:i("Moving Down"),type:"moving"},moving_up_percents:{title:i("Moving Up %"),descriptionTitle:i("Moving Up"),type:"moving",percents:!0},moving_down_percents:{title:i("Moving Down %"),descriptionTitle:i("Moving Down"),type:"moving",percents:!0}},o=Object.keys(n),s=o.length-1;s>=0;s--)e(t=o[s],n[t]);function a(t){var i,o,s,a,l,c,u={};t&&t.getStrategy()?o=t.prepareAlertConditions():(s=t&&t.drawing(),o=!t||t.getAlertSeries().hasUsualPlots()?n:{},s?c="LineToolVertLine"===s.type?function(e){return"cross"===e.id}:1===s.plots.length?function(e){return!e.isChannel}:2===s.plots.length?function(e){ +return!!e.isChannel}:function(e){return"comparsion"===e.type}:t&&(t.hasAlertCondition()||t.hasAlertFunction())&&(o=r.extend(!0,{},o,t.prepareAlertConditions()))),i=Object.keys(o);for(var d=0;d=0;u--){var d=r[l[u]];o.includes(d.type)&&c.push(d)}c.sort((function(e,t){return o.indexOf(e.id)-o.indexOf(t.id)})),c.length>0&&s.push(c);var _=[];for(u=l.length-1;u>=0;u--){d=r[l[u]];["pine_script","pine_alertcondition_plot"].includes(d.type)&&_.push(d)}_.sort((function(e,t){return e.title.localeCompare(t.title)})),_.length>0&&s.push(_);var p=e&&e.alertSeries&&e.alertSeries();if(!(p&&p.plots&&0===p.plots.length)){var h=[];for(u=0;u0&&s.push(h)}return t.isGrouped?s:s.flat()}}}();TradingView.AlertConditions=o,e.exports=o},82413:(e,t,n)=>{"use strict";var r=n(84709).extend({_prepareToSet_fireTime:function(e){return new Date(1e3*e)},_prepareToSet_barTime:function(e){return new Date(1e3*e)},_prepareToSet_alertId:function(e){return parseInt(e)},fireTimeReadable:function(){return this._formatDate(this.get("fireTime"))},fireTimeUnix:function(){return Math.round(this.get("fireTime").getTime()/1e3)}});e.exports=r},7298:(e,t,n)=>{"use strict";n.d(t,{AlertExtra:()=>m});var r=n(28353).t,i=n(98125).getLogger("Alerts.Extra"),o=n(98619).deepCopy,s=n(50993).isAlertConditionPlot,a=n(16654).STYLE_HEIKEN_ASHI,l=n(11372).cleanButAmpersand,c=n(28789).regExpEscape,u=n(62591),d=u.isStudyStateForAlertType,_=u.StateForAlertType;TradingView="object"==typeof n.g?n.g.TradingView:TradingView||{},"function"!=typeof TradingView.merge&&(TradingView.merge=function(e,t){for(var n in t)"object"==typeof t[n]&&e.hasOwnProperty(n)?TradingView.merge(e[n],t[n]):e[n]=t[n];return e});var p=n(37387),h=n(2495).alertBandFactory,f=n(52714);function m(e){this._data={},this.crossInterval=new f,this.update(e)}m.VERSION=22,m.prototype.update=function(e){return e=this._prepareExtraObject(e),m._isValidExtra(e)?(this._data=e||{},this._updateCrossInterval()):i.logError("Wrong alert extra"),this},m.prototype.addDatasourse=function(e,t){this._addDatasourseToJson(this._data,e,t)},m.prototype._addDatasourseToJson=function(e,t,n){(n||e.condition[t])&&(e.condition[t]={id:n.id,plotIndex:n.plotIndex},e.statesForAlert[n.id]=n,n.plotIndex&&delete e.statesForAlert[n.id].plotIndex)},m.prototype.getDependencies=function(){var e={};for(var t in this._data.statesForAlert)if(this._data.statesForAlert.hasOwnProperty(t)){var n=this._data.statesForAlert[t] +;d(n.type,!0)&&null!=n.studyDependencies&&n.studyDependencies.forEach((function(t){e[t.id]=t}))}return Object.keys(e).map((function(t){return e[t]})).map((function(e){return e.study=e.study.replace(/(\d)$/,"$1!"),e}))},m.prototype.updateDataSourseStates=function(){var e=this,t=this.getAvailableBands().map((function(t){return e._data.condition[t]})).filter((function(e){return!!e})).map((function(e){return e.id}));Object.keys(e._data.statesForAlert).filter((function(e){return t.indexOf(e)<0})).forEach((function(t){delete e._data.statesForAlert[t]}))},m.prototype._prepareExtraObject=function(e){if("string"==typeof e?e=JSON.parse(e):e instanceof m&&(e=e.toJSON()),m._isValidExtra(e))return e;var t=function(t){var n=p.defaults(e.conditionId||"cross");this._addDatasourseToJson(t,"mainSeries",e.mainSeries),this._addDatasourseToJson(t,"alertSeries",e.alertSeries),"moving"===n.type?(t.condition.movValue=Number(e.value),t.condition.movPeriod=Number(e.period)):"comparison"===n.type&&n.isChannel?(this._addDatasourseToJson(t,"upperBand",e.upperBand),this._addDatasourseToJson(t,"lowerBand",e.lowerBand)):"comparison"!==n.type||n.isChannel?["pine_script","pine_alertcondition_plot","strategy"].includes(n.type)||i.logError("[Alerts] Unknown condition type: "+n.type):this._addDatasourseToJson(t,"band",e.band)}.bind(this),n={version:m.VERSION,condition:{id:e.conditionId,fireInfo:e.fireInfo},statesForAlert:{}};return t(n),n},m.prototype.isValid=function(){return m._isValidExtra(this._data)},m._isValidExtra=function(e){var t=!!("object"==typeof e&&null!==e&&e.version>=m.VERSION&&e.statesForAlert&&e.condition&&e.condition.id&&e.condition.alertSeries&&e.condition.fireInfo&&(e.condition.fireInfo.type||e.condition.fireInfo.frequency));if(!t)return t;var n=Object.keys(e.statesForAlert);t=(t=t&&n.indexOf(e.condition.alertSeries.id)>=0)&&(!e.condition.mainSeries||n.indexOf(e.condition.mainSeries.id)>=0);var r=p.defaults(e.condition.id);r&&"comparison"===r.type&&!r.isChannel?t=(t=t&&!!e.condition.band)&&n.indexOf(e.condition.band.id)>=0:r&&"comparison"===r.type&&r.isChannel?t=(t=(t=(t=t&&!!e.condition.upperBand)&&!!e.condition.lowerBand)&&n.indexOf(e.condition.upperBand.id)>=0)&&n.indexOf(e.condition.lowerBand.id)>=0:r&&"moving"===r.type&&(t=(t=t&&!!e.condition.movPeriod)&&!!e.condition.movValue);const i=S(Object.values(e.statesForAlert));return i&&i.type!==_.StudyLineTool&&(t=t&&function(e){if(!Array.isArray(e))return!1;return e.every(e=>"number"==typeof e||"object"==typeof e&&g.every(([t,n])=>typeof e[t]===n))}(i.plots)),t},m.prototype._prepareToJSON=function(){for(var e=this.bandsObject(),t=Object.keys(e),n=0;n0){n.filter(e=>"alertcondition"!==e.type).forEach((n,r)=>{if(!t.includes(n.type)){const t=new RegExp(`{{plot\\("${c(l(n.title,!0))}"\\)}}`,"gm");e=e.replace(t,`{{plot_${r}}}`)}});for(let t=n.length;t<=20;t++)e=e.replace(`{{plot_${t}}}`,"null")}}catch(e){i.logError("AlertExtra._patchDescription error: "+e)}return e},m.prototype.getAvailableConditionParams=function(e){return["movPeriod","movValue"]},m.prototype.getAvailableOptionalBands=function(e){return["band","lowerBand","upperBand"]},m.prototype.getAvailableBands=function(e){return["band","lowerBand","upperBand","alertSeries","mainSeries"]},m.prototype.getAvailableOptionalConditions=function(e){return this.getAvailableOptionalBands().concat(this.getAvailableOptionalBands())},m.prototype.clearOptionalConditions=function(e){var t=this;this.getAvailableOptionalConditions().forEach((function(e){delete t._data.condition[e]})),this.updateDataSourseStates(),e||this._updateCrossInterval()},m.prototype.alertSeries=function(e,t){return void 0!==e&&(this.addDatasourse("alertSeries",e),this.updateDataSourseStates(),t||this._updateCrossInterval(),this.setValidConditionId()),this._getSomeBand("alertSeries","object")},m.prototype.getAlertSeries=function(e){return this._getSomeBand("alertSeries",e)},m.prototype.mainSeries=function(e,t){return void 0!==e&&(this.addDatasourse("mainSeries",e),this.updateDataSourseStates(),t||this._updateCrossInterval()),this._getSomeBand("mainSeries","object")},m.prototype.getMainSeries=function(e){return this._getSomeBand("mainSeries",e)},m.prototype._getSomeBand=function(e,t){var n,r=t||"model",i=this._data.condition[e];if(i)return n=TradingView.merge(this._data.statesForAlert[i.id],i),"object"===r?TradingView.merge({},n):h.create(n)}, +m.prototype.upperBand=function(e,t){return void 0!==e&&(this.addDatasourse("upperBand",e),delete this._data.condition.band,this.updateDataSourseStates(),t||this._updateCrossInterval()),this._getSomeBand("upperBand","object")},m.prototype.getUpperBand=function(e){return this._getSomeBand("upperBand",e)},m.prototype.lowerBand=function(e,t){return void 0!==e&&(this.addDatasourse("lowerBand",e),delete this._data.condition.band,this.updateDataSourseStates(),t||this._updateCrossInterval()),this._getSomeBand("lowerBand","object")},m.prototype.getLowerBand=function(e){return this._getSomeBand("lowerBand",e)},m.prototype.band=function(e,t){return void 0!==e&&(this.addDatasourse("band",e),delete this._data.condition.upperBand,delete this._data.condition.lowerBand,this.updateDataSourseStates(),t||this._updateCrossInterval()),this._getSomeBand("band","object")},m.prototype.getBand=function(e){return this._getSomeBand("band",e)},m.prototype.value=function(e,t){return void 0!==e&&(this._data.condition.movValue=Number(e),t||this._updateCrossInterval()),this._data.condition.movValue},m.prototype.movingValue=m.prototype.value,m.prototype.period=function(e,t){return void 0!==e&&(this._data.condition.movPeriod=Number(e),t||this._updateCrossInterval()),this._data.condition.movPeriod},m.prototype.movingPeriod=m.prototype.period,m.prototype._updateCrossInterval=function(){var e=this.getAlertSeries(),t=null!==this.price()&&e&&"MainSeries"===e.type()&&!(e.isRangeBasedStyle()||e.getStyle()===a)&&!e.isSpread();this.crossInterval.setValue(t)},m.prototype.frequency=function(e){return-1!==["once","on_first_fire","on_bar_close","60"].indexOf(e)&&(this._data.condition.fireInfo.frequency=e),this._data.condition.fireInfo.frequency},m.prototype.hasAlertCondition=function(){var e=this.alertSeries();return Boolean(e.plots&&e.plots.some(s)||e.alerts&&e.alerts.conditions)},m.prototype.hasAlertFunction=function(){return Boolean(this.alertSeries().hasAlertFunction)},m.prototype.prepareAlertConditions=function(){var e=this.alertSeries(),t={};if(!e)return t;const n=Boolean(e.isTVScriptStrategy),i=Boolean(e.hasAlertFunction);if(n&&i)return{strategy_and_alerts:{type:"strategy_and_alerts",title:r("Order fills and alert() function calls")},strategy:{type:"strategy",title:r("Order fills only")},alerts:{type:"alerts",title:r("alert() function calls only")}};if(n)return{strategy:{title:null,type:"strategy"}};if(i&&Object.assign(t,{alerts:{type:"alerts",title:r("Any alert() function call")}}),e.plots)for(var o=0;oe.type===_.StudyLineTool||/^LineTool.*/i.test(e.type))||null}TradingView.AlertExtra=m},71021:(e,t,n)=>{"use strict";var r=n(7298).AlertExtra,i=n(62591).isStudyStateForAlertType,o=n(67072),s=n(31752),a=n(88145).extractStudyId,l=n(14905).extractPineId,c=n(95379).prepareCallStudyArgs,u=n(9423),d=n(98125).getLogger("Alerts.Versioning"),_=n(99543),p=n(83050);const{hash:h}=n(85619);var f=n(37387),m=n(37667),g=n(53371).DataSourceDangerReason,S=n(21088).AlertExtraUpdateScheduler,y=n(76266).isFeatureEnabled;function v(){this._extraUpdateScheduler=new S}v.version_10_tv_6611_1a_refactoring=10,v.version_11_tv_6611_1b_refactoring=11,v.version_12_tv_6888_fix_plot_index=12,v.version_13_tv_4164_source_code_protection=13,v.version_14_tv_4164_source_code_protection_fix=14,v.version_15_tv_8068_fix_main_series_resolution=15,v.version_16_jv_298_remove_callstudy=16,v.version_17_jv_646_fix_mixed_inputs=17,v.version_18_tv_10636_price_format=18,v.version_19_tv_11267_fix_frequency_options=19,v.version_20_tv_14463_extract_dividends_adjustment_from_symbol_string=20,v.version_21_tv_14886_add_alert_dangerous_source_check=21,v.version_22_tv_23957_remove_text_input_from_pine_studies=22,v.prototype.migrate=function(e,t){var n;if(t=Object.assign({sendExtraUpdate:y("alerts-send-extra-update")},t),!e||!e.extra)return Promise.resolve(e);if((n=JSON.parse(e.extra))&&!Object.keys(n).length&&n.constructor===Object)return delete e.extra,Promise.resolve(e);var i=Promise.resolve(e),o=null==n.version||n.versionr.VERSION?d.logNormal("Alert version is greater than current"):o&&t.sendExtraUpdate&&this._extraUpdateScheduler.scheduleUpdate({id:e.id,instanceId:e.instanceId,extra:e.extra}),e}.bind(this))},v.prototype._patchAlert=function(e,t){var n=this;e.version||(e.version=1);var r=e.version;r0||/.*\$\d+/.test(i)?"source":"string"==typeof i?"string":"boolean"==typeof i?"bool":"float",t[n]={f:!0,v:i,t:r}):t[n]=i})),t}(r);return d.logNormal("A very rare case: alert on legacy script that was never resaved. Trying to guess input types \n\t"+JSON.stringify(r)+" -> "+JSON.stringify(i)),i}return d.logError("Alert migration failed, inputs cannot be migrated: "+JSON.stringify(e)),Promise.reject(e)})).then((function(e){return TVScript.patchInputs(e.inputs,r)}))},v.prototype._patchExtra_to18=function(e){var t,n={},r=f.getData(e.condition.id);if(r&&"comparison"===r.type)if(r.isChannel){var i=e.statesForAlert[e.condition.upperBand.id],o=e.statesForAlert[e.condition.lowerBand.id] +;"Value"===i.type?t=i.value:"Value"===o.type&&(t=o.value)}else{var s=e.statesForAlert[e.condition.band.id];"Value"===s.type&&(t=s.value)}if(t&&-1!==(t=t.toString().replace(/^-/,"")).indexOf(".")){var a=t.replace(/^\d+\./,"").length,l=Math.pow(10,a);n.priceScale=l}var c=e.condition.alertSeries.id;return e.statesForAlert[c].formatter={type:"price",state:n},e.version=v.version_18_tv_10636_price_format,e},v.prototype._patchAlert_to19=function(e){var t=JSON.parse(e.extra),n=e.autoDeactivation,r=t.condition.fireInfo.frequency,i=t.statesForAlert[t.condition.mainSeries.id],o=["band","lowerBand","upperBand"].map((function(e){var n=t.condition[e];return n&&t.statesForAlert[n.id]})).filter((function(e){return!!e})).filter((function(e){return"LineToolVertLine"===e.type})).length>0,s=m.hasProjection(i.style),a=e.crossInterval,l=[];function c(e){return-1!==l.indexOf(e)}return o?l.push("once"):(a||s||(l.push("once"),l.push("60"),l.push("on_bar_close")),s?l.push("on_bar_close"):l.push("on_first_fire")),"once_per_bar"===r&&(r="on_first_fire"),"once"!==r||c("once")||(n=!0,r=l[0]),"once"!==r&&n&&(r=l[0]),"once"!==r&&o&&(n=!0,r="once"),"on_bar_close"===r&&!c("on_bar_close")&&c("on_first_fire")&&(r="on_first_fire"),e.autoDeactivation=n,t.condition.fireInfo.frequency=r,t.version=v.version_19_tv_11267_fix_frequency_options,e.extra=JSON.stringify(t),e},v.prototype._patchExtra_to20=function(e){var t=e.condition.mainSeries,n=e.statesForAlert,r=t&&n&&n[t.id];if(r){var i=r.symbolString;if(i&&0===i.indexOf("=")){var o=i.slice(1);"dividends"===(o=JSON.parse(o)).adjustment?r.dividendsAdjustment=!0:"splits"===o.adjustment&&(r.dividendsAdjustment=!1)}}return e.version=v.version_20_tv_14463_extract_dividends_adjustment_from_symbol_string,e},v.prototype.patchExtra_to20_forTestsOnly=v.prototype._patchExtra_to20,v.prototype._patchExtra_to21=function(e){var t=e.statesForAlert;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.isSpread&&(r.dangerReason=g.Spread)}return e.version=v.version_21_tv_14886_add_alert_dangerous_source_check,e},v.prototype._patchExtra_to22=function(e){var t=e.statesForAlert,n=!0;for(var r in t){if(t.hasOwnProperty(r))if(("Study"===(s=t[r]).type||"StudyStrategy"===s.type)&&s.isTVScript&&1!==s.studyDependencies.length){n=!1;break}}if(n){var i={},o={};for(var r in t){var s;if(t.hasOwnProperty(r))if("Study"!==(s=t[r]).type&&"StudyStrategy"!==s.type||!s.isTVScript)i[r]=s;else{var l=s.uniqueId,c=Object.assign({},s.inputs);s.isTVScript&&delete c.text;var u=p.idForAlert(a(s.fullId),c);s.id=u,s.uniqueId=u,s.studyDependencies[0].id=u,i[u]=s,o[l]=u}}e.statesForAlert=i,e.condition.alertSeries.id=o[e.condition.alertSeries.id]||e.condition.alertSeries.id,e.condition.band&&(e.condition.band.id=o[e.condition.band.id]||e.condition.band.id),e.condition.upperBand&&(e.condition.upperBand.id=o[e.condition.upperBand.id]||e.condition.upperBand.id),e.condition.lowerBand&&(e.condition.lowerBand.id=o[e.condition.lowerBand.id]||e.condition.lowerBand.id)}return e.version=v.version_22_tv_23957_remove_text_input_from_pine_studies,e},e.exports={ +AlertVersioning:v}},25531:(e,t,n)=>{"use strict";var r=n(25977),i=n(23127),o=n(84709),s=n(7298).AlertExtra,a=n(64021).FormattersSerializer,l=n(82520).AlertFrequencyController,c=n(9315).getServerInterval,u=n(35908).ensureDurationInSeconds,d=n(47806).getAlertConditionTokenMap,_=n(12444).getAlertDefaultDescription,p=n(28995).getAlertDefaultName,h=n(78356).getAlertType,f=["crossInterval","autoDeactivation","description","sendEmail","expired","extra","showPopup","resolution","script","scriptDeps","sendSms","sendPush","playSound","soundDuration","soundFile","symbol","noExpiration","symbolInternal","webhookUrl","name","alertType"],m=f.concat(["id"]),g=o.extend({constructor:function(e,t){var n={};["autoDeactivation","frequency","extra","crossInterval","alertType"].forEach((function(t){e.hasOwnProperty(t)&&(n[t]=e[t],delete e[t])})),r.isEmpty(n)||(this.__delayedInitAttrs=n),e.version=e.version||s.VERSION,o.call(this,e,t),this.frequencyController=new l(this)},initialize:function(){var e=this;function t(t){e.set("crossInterval",!!t)}this.on("change:extra",(function(e,n,r){n&&(n.crossInterval.unsubscribe(t),n.crossInterval.subscribe(t),e.set("crossInterval",n.crossInterval.value()),e.syncAlertType())})).on("change:crossInterval",(function(e,t,n){var r=e.get("extra");t?e.set("resolution","1"):r&&r.mainSeries()&&e.set("resolution",r.mainSeries().interval)})).on("destroy",(function(){TVSettings.remove(e.TVSettingsPropertiesKey(e.id))})),this.__delayedInitAttrs&&(this.set(this.__delayedInitAttrs),delete this.__delayedInitAttrs)},set:function(e,t,n){var r;return null==e?this:(n=n||{}).noPrepare?o.prototype.set.call(this,e,t,n):("object"==typeof e?(r=e,n=t):(r={})[e]=t,r=this._prepareToSet(r),o.prototype.set.call(this,r,n))},_prepareToSet_soundDuration:function(e){e=parseInt(e);return isNaN(e)&&(e=0),u(e)},_prepareToSet_expired:function(e){return e instanceof Date?e:new Date(1e3*e)},_prepareToSet_extra:function(e){var t=this.get("extra"),n=e&&!(e instanceof s);return t&&e?e=t.update(e):n?(e=new s(e),this.set("scriptDeps",e.getDependencies())):e||(e=null),e},_prepareToSet_symbolInternal:function(e){if(e)return e},_prepareToSet_alertType:function(e){return"undefined"===e?h(this):e},isPrice:function(){return null!==(this.get("extra")?this.get("extra").price():null)},isDrawing:function(){return!(!this.get("extra")||!this.get("extra").drawing())},isMoving:function(){return this.get("extra")&&"moving"===(this.get("extra").conditionData()||{}).type},isOHLC:function(){var e=this.get("extra");if(e&&e.alertSeries())return"MainSeries"===e.alertSeries().type},isRangeBasedStyle:function(){var e=this.get("extra"),t=e&&e.getMainSeries();return!(!t||"MainSeries"!==t.type()||!t.isRangeBasedStyle())},isComplexSymbol:function(){var e=this.get("symbolInternal");return e!==this.get("symbol")&&e},isPine:function(){var e=this.get("extra"),t=e&&e.alertSeries();return t&&t.alerts},expiredUnix:function(){return Math.round(this.get("expired").getTime()/1e3)},defaultDescription:function(){return _(d(this))},defaultName:function(){return p(d(this))}, +setDefaultDescription:function(){this.set("description",this.defaultDescription())},state:function(){return this.toJSON()},toJSON:function(){var e,t,n={};for(e in this.attributes)this.attributes.hasOwnProperty(e)&&(t=this.attributes[e],n[e]=t&&"function"==typeof t.toJSON?t.toJSON():t);return n.expired&&(n.expired=this.expiredUnix()),n},prepareToSend:function(){this.syncAlertType(),this.syncScriptDeps();for(var e,t,n=this.toJSON(),r={},i=m.length-1;i>=0;i--)void 0!==(t=n[e=m[i]])&&(r[e]=t),"resolution"===e&&(r[e]=c(t));return r.playSound||(delete r.soundDuration,delete r.soundFile),r.name||delete r.name,r.extra&&(r.extra=JSON.stringify(r.extra)),r},getLocalClone:function(){var e=this.toJSON(),t=f.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{});return new g(t)},saveState:function(){this._oldState=this.state()},restoreState:function(e,t){!(e=e||this._oldState||{}).extra||e.extra instanceof s||(e.extra=new s(e.extra),e.scriptDeps=e.extra.getDependencies()),this.set(e),t||delete this._oldState},getSavedState:function(){var e;return this._oldState&&(e=i.extend({},this._oldState)).extra&&(e.extra=new s(e.extra),e.scriptDeps=e.extra.getDependencies()),e},createTimeFormatted:function(){var e=this.get("createTime");return e?this._formatDate(1e3*e):null},fireTimeFormatted:function(){var e=this.get("fireTime");return e?this._formatDate(1e3*e):null},TVSettingsPropertiesKey:function(){return e=this.id,"chartproperties.alertsProperties."+(e=parseInt(e));var e},getFormatter:function(){var e=this.get("extra");if(e){var t=e.alertSeries();if(t.formatter)return a.deserialize(t.formatter)}return null},syncAlertType:function(){this.set("alertType",h(this))},syncScriptDeps:function(){var e=this.get("extra").getDependencies();this.set("scriptDeps",e)}});e.exports.Alert=g},62591:(e,t,n)=>{"use strict";var r;function i(e,t){let n="Study"===e||e===r.StudyLineTool||/^study_\w+/.test(e);return t&&(n=n||"StudyStrategy"===e),n}n.r(t),n.d(t,{StateForAlertType:()=>r,isStudyStateForAlertType:()=>i}),function(e){e.StudyLineTool="StudyLineTool"}(r||(r={}))},16509:(e,t)=>{var n={active:"active",aid:"alertId",alerts:"alerts",bar_time:"barTime",create_t:"createTime",cross_int:"crossInterval",deact:"autoDeactivation",desc:"description",email:"sendEmail",error:"error",events:"events",exp:"expired",fire_time:"fireTime",inc_cross_int:"includeCrossInterval",inf_exp:"noExpiration",internal_sym:"symbolInternal",popup:"showPopup",reason:"reason",res:"resolution",script_deps:"scriptDeps",script:"script",sms:"sendSms",snd:"playSound",push:"sendPush",snd_duration:"soundDuration",snd_file:"soundFile",sort_by:"sortBy",sort_dir:"sortDirection",start_t:"startTime",stop_t:"stopTime",stop:"stopReason",sym:"symbol",web_hook:"webhookUrl",inst_id:"instanceId",name:"name",alert_type:"alertType"},r=function(){var e={};return Object.keys(n).forEach((function(t){e[n[t]]=t})),e}();function i(e,t){var n={};return e?(Object.keys(e).forEach((function(r){var i=t(r),o=e[r];n[i]=o})),n):e}t.server2clientParams=function(e){return i(e,(function(e){return n[e]||e})) +},t.client2serverParams=function(e){return i(e,(function(e){return r[e]||e}))}},82520:(e,t,n)=>{"use strict";n.d(t,{AlertFrequencyController:()=>a});var r=n(37667),i=n(98125),o=n(80643);const s=(0,i.getLogger)("Alerts.Price.FrequencyController");class a{constructor(e){this._alert=e,e.on("change:autoDeactivation",(e,t)=>{const n=e.get("frequency");if(this._isFireRateValid({frequency:n,autoDeactivation:t}))return;const r=this._getValidFireRate({autoDeactivation:t});r?e.set("frequency",r.frequency):(s.logError(`Set invalid autoDeactivation: ${t}. Available: ${JSON.stringify(this.getAvailable())}`),this._setAnyValidFireRate())}),e.on("change:frequency",(e,t)=>{this._putFrequencyToExtra();const n=e.get("autoDeactivation");if(this._isFireRateValid({frequency:t,autoDeactivation:n}))return;const r=this._getValidFireRate({frequency:t});r?e.set("autoDeactivation",r.autoDeactivation):(s.logError(`Set invalid frequency: ${t}. Available: ${JSON.stringify(this.getAvailable())}`),this._setAnyValidFireRate())})}getAvailable(){const e=this._alert.get("extra");return(null===(t=null==e?void 0:e.alertSeries())||void 0===t?void 0:t.isTVScriptStrategy)||"alerts"===(null==e?void 0:e.conditionId())?[{autoDeactivation:!1,frequency:"60"}]:(()=>{var t;return Boolean(this._alert.isDrawing()&&"LineToolVertLine"===(null===(t=null==e?void 0:e.drawing())||void 0===t?void 0:t.type))})()?[{autoDeactivation:!0,frequency:"on_first_fire"}]:(()=>this._alert.get("crossInterval"))()?[{autoDeactivation:!0,frequency:"on_first_fire"},{autoDeactivation:!1,frequency:"on_first_fire"}]:(()=>{var t,n;return[null===(t=null==e?void 0:e.alertSeries())||void 0===t?void 0:t.style,null===(n=null==e?void 0:e.mainSeries())||void 0===n?void 0:n.style].filter(o.isInteger).some(r.hasProjection)})()?[{autoDeactivation:!0,frequency:"on_bar_close"},{autoDeactivation:!1,frequency:"on_bar_close"}]:[{autoDeactivation:!0,frequency:"once"},{autoDeactivation:!1,frequency:"on_first_fire"},{autoDeactivation:!1,frequency:"on_bar_close"},{autoDeactivation:!1,frequency:"60"}];var t}switchFrequencies(){const e=this._alert,t=e.get("frequency"),n=e.get("autoDeactivation");if(!0===n){const t=this._getValidFireRate({autoDeactivation:!0});if(t)return void e.set({autoDeactivation:t.autoDeactivation,frequency:t.frequency})}if(!1===n&&"on_first_fire"===t){const t="60",n=this._getValidFireRate({frequency:t});if(n)return void e.set({autoDeactivation:n.autoDeactivation,frequency:t})}if(!1===n){const t=this._getValidFireRate({autoDeactivation:!1});if(t)return void e.set({autoDeactivation:t.autoDeactivation,frequency:t.frequency})}this._isFireRateValid({frequency:t,autoDeactivation:n})||this._setAnyValidFireRate()}_putFrequencyToExtra(){const e=this._alert.get("extra");e&&e.frequency(this._alert.get("frequency"))}_isFireRateValid(e){return this.getAvailable().some(t=>t.frequency===e.frequency&&t.autoDeactivation===e.autoDeactivation)}_getValidFireRate(e){const[t,n]=Object.entries(e)[0],r=this.getAvailable().find(e=>e[t]===n);return void 0===r?null:r}_setAnyValidFireRate(){const e=this.getAvailable()[0] +;this._alert.set({frequency:e.frequency,autoDeactivation:e.autoDeactivation}),this._putFrequencyToExtra()}}},22822:(e,t,n)=>{"use strict";n.d(t,{canPlaceAlertOnResolution:()=>s});var r=n(29823),i=n(33550),o=n(62867);function s(e){return!r.Interval.isSeconds(e)||(0,i.enabled)(o.ProductFeatures.ALERTS_ON_SECONDS)}},60993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlertsDispatcher:()=>$,prepareAlertsModels:()=>Z});var r=n(28353),i=n(99486),o=n(8859),s=n(24993),a=n(86811),l=n(98125),c=n(26187),u=n(39193);const d=(0,l.getLogger)("Alerts.Price.InvokeAlertEditor");function _(e){u.alertsMaintenanceTracker.sync();const t=(0,i.shouldAbortAlertEditor)(e);if(null!==t)return t!==s.AlertEditorAbortReason.IsAlreadyPresent&&(0,i.showAbortExplainingDialog)(t,(0,i.getAlertDialogType)(e)),d.logWarn("Aborted: "+t),void(e.onAborted&&e.onAborted(t));const{unlockInvocation:r,abortSignal:a}=c.alertEditorInvocationHandler.lockInvocation(e);Promise.all([n.e(273).then(n.t.bind(n,79540,19)),(0,o.getPriceAlertsDispatcher)(),p(e,r,a)]).then(e=>{const[t,n,r]=e;new t.AlertEditor(n,r)},r)}function p(e,t,n){return(e.series?(0,a.hasUserAccessToDataSource)(e.series):Promise.resolve(!0)).then(r=>{const i=e.onDestroy,o={...e,abortSignal:n,onDestroy:()=>{t(),i&&i()}};return r||(delete o.series,delete o.value),o})}var h=n(82413),f=n.n(h),m=n(71021),g=n(25531),S=n(99543),y=n.n(S),v=n(16654),A=n(93119),T=n.n(A),E=n(51768),b=n(33550),C=n(62867),R=n(87341),w=n(16509),I=n(52485),P=(n(51872),n(12620));const D={max_alerts_count_exceeded:"alerts",max_primitive_alerts_count_exceeded:"primitiveAlerts",max_complex_alerts_count_exceeded:"complexAlerts"};function O(e="max_alerts_count_exceeded"){(0,P.createGoProDialog)({feature:D[e]})}function x(){(0,P.createGoProDialog)({feature:"alertsNoExpiration"})}function N(){(0,i.showAbortExplainingDialog)(s.AlertEditorAbortReason.AlertsMaintenance)}var L=n(72781),M=n(3615);var F=n(22822),U=n(21097),k=n(55306),B=n(2872),V=n.n(B),q=n(44182);function H(e){return!e.isDrawing()}var Y=n(35908);var j=n(68647),W=n(23127);const J="cancelled: new alert already generating",G=(0,l.getLogger)("Alerts.Price.Dispatcher");function $(){this._loading={},this._alertVersioning=new m.AlertVersioning,this._lastGenIds={},this._onPushStreamMessage=new(V()),this._onPushStreamStatusChanged=e=>{e===q.ConnectionStatus.Open&&this._onPushStreamMessage.fire({source:"host",data:{m:"pushstream_ready"}})},this._onMessage=this._onMessage.bind(this),this.alerts=new(j.Collection.extend({model:g.Alert})),this.events=new(j.Collection.extend({comparator:function(e,t){var n=e.get("fireTime"),r=t.get("fireTime");return n&&r?r-n:n?r?void 0:1:-1},model:f()})),this._attachHandlers()}function K(e){e.forEach(e=>e.set("selected",!1))}function X(e,t){e.forEach(e=>{e!==t&&e.set("selected",!1)})}function z(e){const t=new Date;e.get("expired")e&&new g.Alert(e)).catch(n("Alert creation failed",r))}))).then(e=>e.filter(e=>null!==e));function n(e,t){return n=>(G.logError(`${e}. Alert ID: ${t}. Error: ${n}`),null)}}function Q(e,t){e.script=t.IL,t.inputs&&(e.inputs=t.inputs),t.genAlertData&&(e.gen_alert_data=t.genAlertData)}function ee(e,...t){"function"==typeof e&&e.apply(this,t)}$.checkProPermissions=function(e){return e.get("noExpiration")&&!(0,b.enabled)(C.ProductFeatures.ALERTS_NO_EXPIRATION)?(x(),!1):"string"!=typeof e.get("webhookUrl")||(0,b.enabled)(C.ProductFeatures.ALERTS_WEBHOOK)?!!(0,F.canPlaceAlertOnResolution)(e.get("resolution"))||((0,P.createGoProDialog)({feature:"alertsOnSeconds"}),!1):((0,k.showGoProAlertsWebhookDialog)(),!1)},$.getAnalyticsHeaders=function(e,t){return{"X-Analytics-Price-Alert-Condition":String(e),"X-Analytics-Price-Alert-Action-Source":String(t)}},$.prototype._onLoginStateChange=function(){is_authenticated?this._refreshPushStream():(this.alerts.reset(),this.events.reset(),this._alertVersioning.cancelAllPossibleExtraUpdates()),this._fullListWasRequested=!1},$.prototype._attachHandlers=function(){var e=this;function t(t){var n=e.chartWidget(),r=n&&n.hasModel()?n.model():null;if(r){var i=r.selection().dataSources().some((function(e){return e.hasAlert.value()&&e.alertId()===t.id}));t.set("selected",i)}}loginStateChange.subscribe(this,this._onLoginStateChange.bind(this)),this._onLoginStateChange(!0),e.alerts.on("add",n=>{t(n),function(t){if(t.isDrawing()&&e._chartWidgetCollection){var n=t.get("extra").drawing();e._chartWidgetCollection.getAll().forEach((function(e){e.applyAlertIdByExternalSource(n.id,t.id)}))}}(n)}).on("change:selected",(t,n,r)=>{if(n){var i=e.alerts;K(e.events),X(i,t)}}).on("change:id",t).on("destroy",t=>{t.isNew()||e.events.where({alertId:t.id}).forEach((function(e){e.destroy()}))}),e.events.on("change:selected",(t,n,r)=>{var i=e.events.models;n&&(K(e.alerts),X(i,t))}),e.alerts.on("change:id",t=>{let n=!1;for(const r of e.alerts.models)r.id===t.id&&(n?G.logWarn(`Two alerts share the same id ${t.id}, which may lead to undefined behaviour`):n=!0)}),U.TVXWindowEvents.on("alertevents-deleted",e=>{""===e?this.events.reset():this.events.remove(JSON.parse(e))})},$.prototype._refreshPushStream=function(){T().off("alert",this._onMessage),T().offStatus(this._onPushStreamStatusChanged),is_authenticated&&(T().on("alert",this._onMessage),T().onPrivateStatus(this._onPushStreamStatusChanged))},$.prototype._onMessage=function(e){var t,n,r,i,o,s=this;if(e)switch(G.logNormal(e),n=JSON.parse(e),this._onPushStreamMessage.fire({source:"alert",data:n}),t="new_alerts"===(r=n.m)?n.p.alerts.map(w.server2clientParams):(0,w.server2clientParams)(n.p),r){case"alert_running":s._alertVersioning.cancelPossibleExtraUpdate(t.id),s._alertVersioning.migrate(t).then((function(e){(i=s.alerts.get(e.id))?i.set(e):s.alerts.add(e,{at:0})}));break;case"new_alerts":for(const e of t)s.alerts.add(e);break;case"alert_stopped":if(i=s.alerts.get(t.id)){var a={active:!1,stopReason:t.stopReason,error:t.error} +;i.set(a)}break;case"alert_deleted":if(s._alertVersioning.cancelPossibleExtraUpdate(t.id),i=s.alerts.get(t.id)){const e=s.chartWidget();if(i.isDrawing()&&e){var l=i.get("extra").drawing();e.deleteAlertByExternalSource(l.id,i.id)}i.destroy()}break;case"event":{o=new(f())({...t}),s.events.add(o),o.trigger("fired",o),o.trigger("fired:online",o);const e=s.alerts.get(t.alertId);void 0!==e&&(e.set({fireTime:t.fireTime}),e.trigger("fired",e))}}},$.prototype.cloneAlert=function(e,t={}){if(!H(e))return"function"==typeof t.error&&t.error("Cannot clone alert"),void("function"==typeof t.complete&&t.complete());const n=e.getLocalClone();z(n),this.alerts.add(n),this.createAlert(n,{...t,eventName:"clone"})},$.prototype.detachAlert=function(e){var t=this.alerts.get(e);t&&t.destroy()},$.prototype.createLocalAlert=function(e,t){var n;return t&&function(e){if(!e)throw new Error("Can't create alert. 'params' is required");for(var t=["symbol","resolution","expired","autoDeactivation","sendEmail","sendSms","showPopup","playSound","description","script"],n=[],r=t.length-1;r>=0;r--){var i=t[r];i in e||n.push(i)}n.length&&G.logError("[Alerts] Can't create alert. "+n.join(" ,")+(1===n.length?" is":" are")+" required")}(e),n=new g.Alert(e),this.alerts.add(n),n},$.prototype.createAlert=function(e,t={}){const n=this;function r(e,n){"function"==typeof t.complete&&t.complete(),"function"==typeof t.error&&t.error(e,n)}if(e instanceof g.Alert){if($.checkProPermissions(e)){var i=Date.now(),o=e.prepareToSend();return n._generateScriptWithCancellation(e).then((function(r){return Q(o,r),n.sendRequest({headers:$.getAnalyticsHeaders(e.get("extra").conditionId(),t.actionSource),method:"create_alert",params:o,success:function(r){r=(0,w.server2clientParams)(r||{});const i=n.alerts.get(r.id);i?(n.alerts.remove(e),e=i):(r.active=!0,e.set(r)),n._gaTrackEvent(t.eventName||"create",e,t.eventLabel),"function"==typeof t.success&&t.success(e)},complete:function(){var n=Date.now()-i;I.telemetry.sendReport("alerts","full_time_frame",{value:n}),"function"==typeof t.complete&&t.complete(e)},error:t.error}).catch(()=>{})})).catch((function(e){if(e===J)return G.logNormal("Alert generation is cancelled because next alert generation is started"),J;"function"==typeof t.error&&t.error("Can't generate source code: "+e),"function"==typeof t.complete&&t.complete()}))}r("cannot create alert with current pro plan",!0)}else r("'alert' should be instance of Alert")},$.prototype.stopAlert=function(e,t={}){const n=this;let r,i;e instanceof g.Alert?(r=e,i=r.get("id")):(i=e,r=n.alerts.get(i)),i?n.sendRequest({method:"stop_alert",params:{id:i},success:function(){n._gaTrackEvent("stop"),r&&r.set("active",!1),"function"==typeof t.success&&t.success()},error:t.error,complete:t.complete}):G.logError("Alert id is required to stop alert")},$.prototype.stopAllAlerts=function(e={}){const t=this,n={cross_int:!0};let i;e.symbol&&(n.symbol=e.symbol),e.resolution&&(n.resolution=e.resolution),e.showConfirm&&(i=e.symbol||e.resolution?{title:(0,r.t)("Stop filtered alerts"),text:(0, +r.t)("Need a quick break from filtered alerts?")}:{title:(0,r.t)("Stop all alerts"),text:(0,r.t)("Need a quick break from your alerts?")}),t.sendRequest({method:"stop_all",params:n,success:function(){t._gaTrackEvent("stop_all"),t.alerts.each((function(e){n.symbol&&n.symbol!==e.get("symbol")||n.resolution&&n.resolution!==e.get("resolution")||e.set("active",!1)})),"function"==typeof e.success&&e.success()},confirmation:i,error:e.error,complete:e.complete})},$.prototype.deleteAlert=function(e,t={}){const n=this;let i,o,s;if(e instanceof g.Alert?(o=e,s=o.get("id")):(s=e,o=n.alerts.get(s)),o&&o.isNew())return o.destroy(),void("function"==typeof t.complete&&t.complete());if(s){if(t.showConfirm){const e=(a=o?o.title():s,(0,Y.cutString)(a,100)),t=(0,r.t)("Do you really want to delete your alert '{alert}'?").format({alert:e});i={title:(0,r.t)("Delete alert"),text:t}}var a;n.sendRequest({method:"delete_alert",params:{id:s},success:function(){n._gaTrackEvent("delete"),"function"==typeof t.success&&t.success(),o&&o.destroy()},error:t.error,cancel:t.cancel,complete:t.complete,confirmation:i})}else G.logError("Alert id is required to delete alert")},$.prototype.deleteAllAlerts=function(e={}){const t=this,n={crossInterval:!0};let i;e.symbol&&(n.symbol=e.symbol),e.resolution&&(n.resolution=e.resolution),"boolean"==typeof e.active&&(n.active=e.active),e.showConfirm&&(i=!1===n.active?{title:(0,r.t)("Delete inactive alerts"),text:(0,r.t)("Let’s delete your inactive alerts and make new ones?")}:n.active||n.symbol||n.resolution?{title:(0,r.t)("Delete filtered alerts"),text:(0,r.t)("Do you really want to delete filtered alerts?")}:{title:(0,r.t)("Delete all alerts"),text:(0,r.t)("Ready to delete your alerts and start over?")}),t.sendRequest({method:"delete_all",params:n,success:function(){var r,i={};for(t._gaTrackEvent("delete_all"),n.symbol&&(i.symbol=n.symbol),n.resolution&&(i.resolution=n.resolution),"boolean"==typeof n.active&&(i.active=n.active),r=t.alerts.findWhere(i);r;)r.destroy(),r=t.alerts.findWhere(i);"function"==typeof e.success&&e.success()},error:e.error,complete:e.complete,confirmation:i})},$.prototype.restartAlert=function(e,t={}){const n=this;let r,i;if(e instanceof g.Alert?r=e:(i=e,r=n.alerts.get(i)),r){if(z(r),!$.checkProPermissions(r))return"function"==typeof t.complete&&t.complete(),void("function"==typeof t.error&&t.error("cannot restart alert with current pro plan",!0));var o=Date.now(),s=r.prepareToSend();return n._generateScriptWithCancellation(r).then((function(e){return Q(s,e),n.sendRequest({headers:$.getAnalyticsHeaders(r.get("extra").conditionId(),t.actionSource),method:"restart_alert",params:s,success:function(){n._gaTrackEvent("restart",r),r.set("active",!0),"function"==typeof t.success&&t.success(r)},complete:function(){var e=Date.now()-o;I.telemetry.sendReport("alerts","full_time_frame",{value:e}),"function"==typeof t.complete&&t.complete(r)},error:t.error}).catch(()=>{})})).catch((function(e){if(e===J)return G.logNormal("Alert generation is cancelled because next alert generation is started"),J +;"function"==typeof t.error&&t.error("Can't generate alert source code for alert #"+i)}))}n.requestAlert(i,{success:function(e){e?n.restartAlert(e,t):("function"==typeof t.error&&t.error("Can't find alert "+i),"function"==typeof t.complete&&t.complete())}})},$.prototype._generateScriptWithCancellation=function(e){var t=this;null==t._lastGenIds[e.cid]&&(t._lastGenIds[e.cid]=0),t._lastGenIds[e.cid]++;var n=t._lastGenIds[e.cid];return new Promise((function(t,n){const r=e.get("extra");let i=null,o="";if(r.isValid()?(i=r.toGenAlertJSON(e.get("description")),null===i&&(o="Can't generate alert JSON")):o="Can't generate alert on invalid AlertExtra",o)return G.logError(o),void n(o);y().generateAlert(JSON.stringify(i)).then((function(e,n,r,i){t({IL:n,inputs:r,genAlertData:i})}),n)})).then((function(r){return t._lastGenIds[e.cid]!==n?Promise.reject(J):(e.set("script",r.IL),r)}))},$.prototype.restartAllAlerts=function(e={}){const t=this,n={crossInterval:!0};let i;e.symbol&&(n.symbol=e.symbol),e.resolution&&(n.resolution=e.resolution),"boolean"==typeof e.active&&(n.active=e.active),e.showConfirm&&(i=e.symbol||e.resolution?{title:(0,r.t)("Restart filtered alerts"),text:(0,r.t)("Ready to bring filtered alerts back to life?")}:{title:(0,r.t)("Restart all inactive alerts"),text:(0,r.t)("Ready to bring your alerts back to life?")});t.alerts.every($.checkProPermissions)&&t.sendRequest({method:"restart_all",params:n,success:function(){t._gaTrackEvent("restart_all"),t.alerts.each((function(e){n.symbol&&n.symbol!==e.get("symbol")||n.resolution&&n.resolution!==e.get("resolution")||e.set("active",!0)})),"function"==typeof e.success&&e.success()},error:e.error,complete:e.complete,confirmation:i})},$.prototype.requestAlert=function(e,t={}){const n=this,r=parseInt(e);function i(e){var i=n.alerts.get(r)||null;return(i||e)&&("function"==typeof t.success&&t.success(i),"function"==typeof t.complete&&t.complete()),!!i}function o(){n.sendRequest({method:"get_alert",preventMaintenanceDialog:!0,params:{id:r},success:function(e){var r,i=e.alert;i=(0,w.server2clientParams)(i),n._alertVersioning.migrate(i).then((function(e){r=new g.Alert(e),n.alerts.add(r),"function"==typeof t.success&&t.success(r)})).catch((function(e){"function"==typeof t.error&&t.error(e)}))},complete:t.complete,error:function(n){"function"==typeof t.error?t.error(n):G.logError("Error in getting alert "+e+(n?": "+n:""))}})}!0===t.fromCache?i(!0):!1===t.fromCache?o():i()||o()},$.prototype.getAlertSync=function(e){return this.alerts.get(e)||null},$.prototype.ensureFullAlertsList=async function(e={}){try{if(window.is_authenticated||(this._fullListWasRequested=!0),this._fullListWasRequested)return void ee(e.success);const t=await this.sendRequest({method:"list_alerts",preventMaintenanceDialog:!0,params:{limit:2e3}});if(!t.alerts||!Array.isArray(t.alerts))throw new Error("Not valid params in alert list response");const n=await Z(t.alerts,e=>this._alertVersioning.migrate(e));this.alerts.set(n),this._fullListWasRequested=!0,ee(e.success)}catch(t){const n=String(t);throw G.logError(n), +ee(e.error,n),t}finally{ee(e.complete)}},$.prototype.requestEventList=function(e={}){const t=this,n={sym:e.symbol,res:e.resolution&&e.resolution.toString?e.resolution.toString():void 0,limit:e.limit,before:e.before,inc_cross_int:void 0===e.includeCrossInterval||e.includeCrossInterval};e.aid&&(n.aid=e.aid),e.aids&&(n.aids=e.aids),this.sendRequest({method:"list_events",preventMaintenanceDialog:!0,params:n,success:function(n){let r=n.events;r&&W.isArray(r)?(r=W.map(r,(function(e){const n=new(f())((0,w.server2clientParams)(e));return t.events.add(n),n})),"function"==typeof e.success&&e.success(r)):console.warn("[Alerts] Not valid params in event list response")},error:e.error,complete:e.complete})},$.prototype.deleteEvents=function(e={}){const t=e.ids;if(t&&0===t.length)return n(),void("function"==typeof e.complete&&e.complete());function n(){"function"==typeof e.success&&e.success()}this.sendRequest({method:"delete_events",params:t?{ids:t}:void 0,success:()=>{t?this.events.remove(t):this.events.reset(),U.TVXWindowEvents.emit("alertevents-deleted",t?JSON.stringify(t):""),n()},error:e.error,complete:e.complete})},$.prototype.stopAlerts=function(e){const{ids:t,success:n,confirmation:r,error:i,complete:o}=e;if(0===t.length)return ee(n),void ee(o);this.sendRequest({method:"stop_alerts",params:{ids:t},success:()=>{this._gaTrackEvent("stop_alerts");for(const e of t){const t=this.alerts.get(e);t&&t.set("active",!1)}ee(n)},error:i,complete:o,confirmation:r})},$.prototype.restartAlerts=function(e){const{ids:t,confirmation:n,success:r,error:i,complete:o}=e;if(0===t.length)return ee(r),void ee(o);const s=[];for(const e of t){const t=this.alerts.get(e);t&&s.push(t)}if(!s.every($.checkProPermissions))return ee(i,"Cannot restart alerts with current pro plan"),void ee(o);this.sendRequest({method:"restart_alerts",params:{ids:t},success:()=>{this._gaTrackEvent("restart_alerts");for(const e of s)e.set("active",!0);ee(r)},error:e=>{e in D&&O(e),ee(i)},complete:o,confirmation:n})},$.prototype.cloneAlerts=function(e){const{success:t,error:n,complete:r}=e,i=e.ids.filter(e=>{const t=this.alerts.get(e);return Boolean(t&&H(t))});if(0===i.length)return ee(t),void ee(r);this.sendRequest({method:"clone_alerts",params:{ids:i},success:()=>{this._gaTrackEvent("clone_alerts"),ee(t)},error:n,complete:r})},$.prototype.deleteAlerts=function(e){const{ids:t,confirmation:n,success:r,error:i,complete:o}=e;if(0===t.length)return ee(r),void ee(o);this.sendRequest({method:"delete_alerts",params:{ids:t},success:()=>{this._gaTrackEvent("delete_alerts");for(const e of t){const t=this.alerts.get(e);t&&t.destroy()}ee(r)},error:i,complete:o,confirmation:n})},$.prototype.sendRequest=function(e){const t=e.method,i=(0,w.client2serverParams)(e.params);if(function(e,t){if(["create_alert","restart_alert"].includes(e)){var n=t.extra&&JSON.parse(t.extra),r=n&&n.condition;["strategy","alerts","strategy_and_alerts"].includes(r.id)&&(t.ns_only_fire=!0)}}(t,i),u.alertsMaintenanceTracker.sync(),u.alertsMaintenanceTracker.value())return a("maintenance"),l(), +Promise.reject("maintenance");if(e.confirmation){const{title:t,text:n}=e.confirmation;return new Promise((function(i,s){(0,M.showConfirm)({title:t||(0,r.t)("Alert"),text:n,onConfirm:({dialogClose:e})=>{const t=o();return t.then((function(t){return e(),t})).catch((function(e){return e})),i(t),t},onClose:()=>{"function"==typeof e.cancel&&e.cancel(),l()}})}))}return o();function o(){const n=(0,R.sendRequest)({method:t,params:i,noCache:e.noCache,headers:e.headers});return n.then(s,a),n}function s(t){if("function"==typeof e.success){var n=(0,w.server2clientParams)(t);e.success(n)}return l(),n}function a(t){var r=!1;return t in D?(O(t),r=!0):"max_total_alerts_count_exceeded"===t?(Promise.all([n.e(5514),n.e(2888),n.e(8463),n.e(8844),n.e(5399),n.e(9961),n.e(7232),n.e(3091)]).then(n.bind(n,94197)).then(e=>e.showWarningAlertsMaxTotalCountExceededImpl()),r=!0):"pro_plan_expired"===t?(x(),r=!0):"maintenance"===t&&(e.preventMaintenanceDialog||(setTimeout(N,0),r=!0)),"function"==typeof e.error?e.error(t,r):"maintenance"===t?G.logNormal("Alerts maintenance"):t&&G.logError("Reason: "+t),l(),t}function l(){"function"==typeof e.complete&&e.complete()}},$.prototype.setChartWidgetCollection=function(e){this._chartWidgetCollection=e},$.prototype.chartWidget=function(){var e=null;return this._chartWidgetCollection&&(e=this._chartWidgetCollection.activeChartWidget.value()||null),e},$.prototype.removeAlertFromAllChartsSilently=function(e,t){this._chartWidgetCollection&&this._chartWidgetCollection.getAll().forEach((function(n){n.deleteAlertByExternalSource(e,t)}))},$.prototype._gaTrackEvent=function(e,t,n){var r;(0,E.trackEvent)("alert",e,n),"create"===e&&t instanceof g.Alert&&(r=t.get("extra"),(0,E.trackEvent)("alert","create__style",function(e){var t=e&&e.getMainSeries(),n=t&&t.getStyle&&t.getStyle();return n&&v.STYLE_SHORT_NAMES.hasOwnProperty(n)?v.STYLE_SHORT_NAMES[n]:"unknown"}(r)),(0,E.trackEvent)("alert","create__condition",function(e){var t=e.conditionId();return e.prepareAlertConditions()[t]&&(t="pine_condition"),t||"unknown"}(r)),(0,E.trackEvent)("alert","create__frequency",t.get("frequency")||"unknown"),t.isPrice()?(0,E.trackEvent)("alert","create__on","price"):t.isDrawing()?(0,E.trackEvent)("alert","create__on","drawing"):t.isMoving()?(0,E.trackEvent)("alert","create__on","moving"):r.band()||r.upperBand()||r.lowerBand()?(0,E.trackEvent)("alert","create__on","study"):(0,E.trackEvent)("alert","create__on","unknown"))},$.prototype.getAlertDialogInvocations=function(){return c.alertEditorInvocationHandler.getDialogInvocations()},$.prototype.openCreateDialog=function(e){_({type:"create_alert",...e})},$.prototype.openEditDialog=function(e,t={}){const n=this;let i,o;const a=e=>t.onAborted&&t.onAborted(e);!t.dataSourceHub&&n.chartWidget()&&(t.dataSourceHub=n.chartWidget().model().model()),e instanceof g.Alert?i=e:(o=e,i=n.alerts.get(o)),i?_(t=W.extend(t,{alert:i,type:"edit_alert"})):o?n.requestAlert(o,{success:function(e){n.openEditDialog(e,t)},error:function(e){"not_exists"===e&&(0,L.showNoticeDialog)({type:"modal",title:(0, +r.t)("Alert"),content:(0,r.t)("Alert does not exist.")}),"function"==typeof t.error&&t.error(e),a(s.AlertEditorAbortReason.AlertIsInvalid)}}):(console.error("[Alerts] alert id is required to edit alert"),a(s.AlertEditorAbortReason.AlertIsInvalid))},$.prototype.subscribeToPushStream=function(e){this._onPushStreamMessage.subscribe(null,e)},$.prototype.unsubscribeFromPushStream=function(e){e?this._onPushStreamMessage.unsubscribe(null,e):this._onPushStreamMessage.unsubscribeAll(null)}},87341:(e,t,n)=>{"use strict";n.d(t,{sendRequest:()=>g,sendRequestImmediately:()=>S});var r=n(67337),i=n(98125);const o=(0,i.getLogger)("Alerts.Price.RequestCache");var s;function a(e,t=""){o.logDebug(`${e} ${t}`)}!function(e){const t={};function n(e){const n=i(e);return t[n]&&a("got from cache",n),t[n]?t[n].self:null}function r(e,n=!1){const r=i(e),o=t[r];if(o)if(n)o.clearCacheTimeoutId&&clearTimeout(o.clearCacheTimeoutId),delete t[r],a("removed immediately",r);else{const e=5e3;o.clearCacheTimeoutId=setTimeout(()=>{delete t[r],a("removed timeout",r)},e)}}function i(e){return JSON.stringify(e)}e.set=function(e,o){const s=i(e);n(e)&&r(e,!0),t[s]={self:o},a("added",s),o.then(t=>(r(e),t)).catch(t=>(r(e,!0),t))},e.get=n,e.isCachable=function(e){return"list_alerts"===e.method||"list_events"===e.method}}(s||(s={}));var l=n(9423);const c=(0,i.getLogger)("Alerts.Price.MergedGetAlertsRequrest");var u;function d(e,t){const n=t?JSON.stringify(t):"";c.logDebug(`${e} ${n}`)}!function(e){const t={};let n=null,r=null;function i(e){delete t[e],Object.keys(t).length||(r=null,n=null)}e.isMergable=function(e){return"get_alert"===e.method||"get_alerts"===e.method},e.mergeRequest=function(e){const o=(0,l.guid)(),s=new Promise((t,i)=>{d("personal promise - creating",e),function(e){let t=[];"id"in e.params?t=[e.params.id]:"ids"in e.params&&(t=e.params.ids);r?r.params.ids=r.params.ids.concat(t):r={method:"get_alerts",params:{ids:t}}}(e),function(){n||(d("merged promise - creating"),n=new Promise((e,t)=>{setTimeout(()=>{r?(d("send request to server - timeout"),S(r).then(t=>{e(t)}).catch(t)):t("No data to send request")},500)}),n.then(e=>d("merged promise - resolved")),n.catch(e=>d("merged promise - rejected")));return n}().then(n=>{const r=function(e,t){const n=t.alerts||[];let r=null;if("get_alert"===e.method){const t=n.filter(t=>t.id===e.params.id)[0];t&&(r={alert:t})}else if("get_alerts"===e.method){const t=e.params.ids,i=[];for(let e=t.length-1;e>=0;e--){const r=t[e];for(let e=n.length-1;e>=0;e--){const t=n[e];if(t.id===r){i.push(t);break}}}i.length&&(r={alerts:i})}return r}(e,n);r?(d("personal promise - resolved",e),t(r)):(d("personal promise - rejected",e),i("not_exists"))}).catch(i)});return s.then(e=>(i(o),e)).catch(e=>(i(o),e)),function(e,n){t[e]=n}(o,s),s}}(u||(u={}));var _=n(52485),p=n(85198);const h=(0,i.getLogger)("Alerts.Price.Request"),f=window.initData.price_alerts_url||"";r.enabled("alerts")&&!f&&h.logError("Url not passed") +;const m=new Set(["create_alert","stop_alert","stop_all","restart_alert","restart_all","delete_alert","delete_all","delete_events","update_extra","restart_alerts","stop_alerts","clone_alerts","delete_alerts"]);function g(e){if(e.method&&m.has(e.method)){const t=Object.assign({},e.params);e.params&&"extra"in e.params&&(t.extra=JSON.parse(e.params.extra)),h.logNormal(JSON.stringify({m:e.method,p:t}))}if(u.isMergable(e))return u.mergeRequest(e);if(s.isCachable(e)){let t=s.get(e);return t||(t=S(e),s.set(e,t)),t}return S(e)}function S(e){if(!f)return Promise.reject("no_alerts_url");if(!window.is_authenticated)return Promise.reject("not_authenticated");const t=e.method,n={body:JSON.stringify({m:t,p:e.params}),credentials:"include",method:"POST",headers:e.headers},r=(new Date).getTime(),i=`${f}?log_username=${window.user.username}&log_method=${t}`;return(0,p.fetch)(i,n,{logBodyOnError:!0}).then(e=>{_.telemetry.sendReport("alerts","api_http_status",{value:e.status});const t=(new Date).getTime()-r;return _.telemetry.sendReport("alerts","api_time_frame",{value:t}),e.json()}).then(e=>"success"===e.m?e.p:"error"===e.m?Promise.reject(e.p.reason||"Unexpected server response"):Promise.reject("Unexpected server response")).catch(e=>e instanceof Error?Promise.reject("Failed to fetch price-alerts: "+e):Promise.reject(e))}},12444:(e,t,n)=>{"use strict";n.d(t,{getAlertDefaultDescription:()=>a});n(94419);var r=n(28353),i=n(47806);const o=(0,r.t)("{alertSeries} {alertCondition} {alertConditionOptions} on {chartSeries}"),s=(0,r.t)("{strategyName}: order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}}");function a(e){switch(e.type){case i.AlertConditionTokenMapType.MainSeries:return`${e.alertSeries} ${e.conditionTitle} ${e.conditionOptions}`;case i.AlertConditionTokenMapType.Study:return o.format({alertSeries:e.alertSeries,chartSeries:e.mainSeries,alertCondition:e.conditionTitle,alertConditionOptions:e.conditionOptions});case i.AlertConditionTokenMapType.PineScript:return e.conditionMessage;case i.AlertConditionTokenMapType.PineScriptAlertFunction:return"";case i.AlertConditionTokenMapType.Strategy:return s.format({strategyName:e.strategyTitle})}}},28995:(e,t,n)=>{"use strict";n.d(t,{getAlertDefaultName:()=>u});n(94419);var r,i=n(28353),o=n(47806);!function(e){e.DrawingIconColor="rgba( 170, 170, 170, 1)",e[e.NameLengthLimit=300]="NameLengthLimit"}(r||(r={}));const s=(0,i.t)("{title}: Any alert() function call"),a=(0,i.t)("{title}: alert() function calls only"),l=r.NameLengthLimit-d(s),c=r.NameLengthLimit-d(a);function u(e){switch(e.type){case o.AlertConditionTokenMapType.MainSeries:case o.AlertConditionTokenMapType.Study:case o.AlertConditionTokenMapType.PineScript:case o.AlertConditionTokenMapType.Strategy:return"";case o.AlertConditionTokenMapType.PineScriptAlertFunction:const t=e.scriptTitle;let n,r;return e.isStrategy?(n=a,r=t.length>c?_(t,c):t):(n=s,r=t.length>l?_(t,l):t),n.format({title:r})}}function d(e){return e.replace("{title}","").length} +function _(e,t){return e.substring(0,t-"…".length)+"…"}},44182:(e,t,n)=>{"use strict";var r;n.d(t,{ConnectionStatus:()=>r}),function(e){e[e.Closed=0]="Closed",e[e.Connecting=1]="Connecting",e[e.Open=2]="Open"}(r||(r={}))},78540:(e,t,n)=>{"use strict";var r;n.d(t,{BillingCycle:()=>r}),function(e){e.Monthly="m",e.ThreeMonths="3m",e.OneYear="y",e.TwoYears="2y"}(r||(r={}))},46198:(e,t,n)=>{"use strict";var r,i,o;n.d(t,{ProPlans:()=>r}),function(e){e.Free="free",e.Pro="pro",e.ProTrial="pro_trial",e.ProRealtime="pro_realtime",e.ProRealtimeTrial="pro_realtime_trial",e.ProPremium="pro_premium",e.ProPremiumTrial="pro_premium_trial",e.ProMiniAlerts="pro_mini_alerts",e.ProMiniAds="pro_mini_ads",e.ProMiniLayouts="pro_mini_layouts",e.ProEdu="pro_edu"}(r||(r={})),function(e){e.Platinum="platinum",e.Gold="gold",e.Silver="silver",e.Free="free"}(i||(i={})),function(e){e[e.Platinum=3]="Platinum",e[e.Gold=2]="Gold",e[e.Silver=1]="Silver",e[e.Free=0]="Free"}(o||(o={}))},12620:(e,t,n)=>{"use strict";n.d(t,{createGoProDialog:()=>s});const r=new Set,i=[],o=new Promise(e=>{window.addEventListener("load",()=>{setTimeout(()=>{e()},3e3)}),setTimeout(()=>{e()},3e3)});async function s(e){var t;if(await o,i.forEach(t=>{t(e.feature)}),r.has(e.feature))return;const s=await Promise.all([n.e(5514),n.e(9129),n.e(2888),n.e(4956),n.e(8844),n.e(9961),n.e(5380),n.e(5733),n.e(1e3),n.e(5246)]).then(n.bind(n,61494));await(null===(t=window.pro)||void 0===t?void 0:t.ensureValidShopConf()),s.renderGoproDialog(e)}window.TradingView.createGoProDialog=s},72781:(e,t,n)=>{"use strict";n.d(t,{createNoticeDialog:()=>o,showNoticeDialog:()=>s});var r=n(28353);const i={width:400,destroyOnClose:!0,title:(0,r.t)("Notification"),content:(0,r.t)("You are notified"),contentWrapTemplate:'

',actionsWrapTemplate:'
',actions:[{name:"ok",type:"primary",text:(0,r.t)("Ok"),method:"close",key:[13,32]}]};async function o(e){return(await Promise.all([n.e(509),n.e(3118),n.e(1729),n.e(6708),n.e(1536),n.e(7678),n.e(4834)]).then(n.bind(n,89725))).createDialog({...i,...e})}function s(e){o(e).then(e=>e.open())}},55306:(e,t,n)=>{"use strict";n.d(t,{showGoProAlertsWebhookDialog:()=>i});var r=n(12620);function i(){(0,r.createGoProDialog)({feature:"alertsWebhook"})}},84303:(e,t,n)=>{"use strict";n.d(t,{showSignModal:()=>i});let r=()=>!1;async function i(e){if(window.TVD&&window.TVD.signIn)return window.TVD.signIn(e);{const t=await Promise.all([n.e(5514),n.e(509),n.e(3118),n.e(5708),n.e(9570),n.e(5995),n.e(1536),n.e(6123)]).then(n.bind(n,14153));return r=t.isSignModalOpen,t.showSignModal(e)}}},55532:(e,t,n)=>{"use strict";var r=n(28353).t;n(94419);var i=n(24951),o=n(84917),s=o.WeekDays,a=o.Months,l=n(967),c=l.monthsFullNames,u=l.monthsShortNames,d=l.weekDaysFullNames,_=l.weekDaysShortNames,p=l.weekDaysMiniNames;window.language&&(i.locale(window.language,{ +months:[c[a.JANUARY],c[a.FEBRUARY],c[a.MARCH],c[a.APRIL],c[a.MAY],c[a.JUNE],c[a.JULY],c[a.AUGUST],c[a.SEPTEMBER],c[a.OCTOBER],c[a.NOVEMBER],c[a.DECEMBER]],monthsShort:[u[a.JANUARY],u[a.FEBRUARY],u[a.MARCH],u[a.APRIL],u[a.MAY],u[a.JUNE],u[a.JULY],u[a.AUGUST],u[a.SEPTEMBER],u[a.OCTOBER],u[a.NOVEMBER],u[a.DECEMBER]],weekdays:[d[s.SUNDAY],d[s.MONDAY],d[s.TUESDAY],d[s.WEDNESDAY],d[s.THURSDAY],d[s.FRIDAY],d[s.SATURDAY]],weekdaysShort:[_[s.SUNDAY],_[s.MONDAY],_[s.TUESDAY],_[s.WEDNESDAY],_[s.THURSDAY],_[s.FRIDAY],_[s.SATURDAY]],weekdaysMin:[p[s.SUNDAY],p[s.MONDAY],p[s.TUESDAY],p[s.WEDNESDAY],p[s.THURSDAY],p[s.FRIDAY],p[s.SATURDAY]],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MMM D",l:"M/D/YYYY",LL:"MMM D, YYYY",ll:"MMM D LT",LLL:"LT - LL",lll:"MMM D, YYYY LT",LLLL:"ddd D MMMM YYYY LT",llll:"ddd D MMM YYYY LT"},calendar:{sameDay:r("{specialSymbolOpen}Today at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),nextDay:r("{specialSymbolOpen}Tomorrow at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),nextWeek:r("{dayName} {specialSymbolOpen}at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT",dayName:"dddd"}),lastDay:r("{specialSymbolOpen}Yesterday at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),lastWeek:r("{specialSymbolOpen}Last{specialSymbolClose} {dayName} {specialSymbolOpen}at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT",dayName:"dddd"}),sameElse:"L"},relativeTime:{future:function(e){return e===r("just now")?e:r("in %s",{context:"time_range"}).replace("%s",e)},past:function(e){return e===r("just now")?e:r("%s ago",{context:"time_range"}).replace("%s",e)},s:r("just now"),m:function(e){return r("%d minute",{plural:"%d minutes",count:e}).replace("%d",e)},mm:function(e){return r("%d minute",{plural:"%d minutes",count:e}).replace("%d",e)},h:r("an hour"),hh:function(e){return r("%d hour",{plural:"%d hours",count:e}).replace("%d",e)},d:r("a day"),dd:function(e){return r("%d day",{plural:"%d days",count:e}).replace("%d",e)},M:r("a month"),MM:function(e){return r("%d month",{plural:"%d months",count:e}).replace("%d",e)},y:r("a year"),yy:function(e){return r("%d year",{plural:"%d years",count:e}).replace("%d",e)}},week:{dow:1,doy:4}}),i.locale(window.language)),e.exports=i},53402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TRIAL_SUFFIX:()=>s,EA_SUFFIX:()=>a,CUSTOM_SUFFIX:()=>l,billingCycleToTimeUnit:()=>c,getReadableCycle:()=>u,getReadableNumericCycle:()=>d,billingPeriodText:()=>_,isEarlyAccess:()=>p,isTrialProduct:()=>h,getProductForTrial:()=>f,getDiscountFromEarlyAccess:()=>m,toEarlyAccess:()=>g,humanizeProPlan:()=>S,humanizeCardPlan:()=>y,getAmountOfDaysForBillingCycle:()=>v,countDiscountByBillingCycle:()=>A,billingCycleToMonth:()=>T,round2:()=>E,round0:()=>b,floor0:()=>C,round2or0:()=>R,round1or0:()=>w,roundMinimal:()=>I,getPlanName:()=>P});n(94419) +;var r=n(28353),i=n(46198),o=n(78540);const s="_trial",a="_discount",l="_custom";function c(e){return{y:(0,r.t)("year",{plural:"years",count:1}),m:(0,r.t)("month",{plural:"months",count:1}),"3m":(0,r.t)("three months"),"2y":(0,r.t)("two years")}[e]}function u(e){return{m:(0,r.t)("monthly"),y:(0,r.t)("annually"),"3m":(0,r.t)("3 months"),"2y":(0,r.t)("2-year")}[e]||""}function d(e){return{[o.BillingCycle.Monthly]:(0,r.t)("monthly"),[o.BillingCycle.OneYear]:(0,r.t)("1 year"),[o.BillingCycle.ThreeMonths]:(0,r.t)("3 months"),[o.BillingCycle.TwoYears]:(0,r.t)("2 years")}[e]||""}function _(e){var t;return null!==(t={y:(0,r.t)("Billed every year."),m:(0,r.t)("Billed every month."),"2y":(0,r.t)("Billed every two years.")}[e])&&void 0!==t?t:""}function p(e){return/\d{0,2}_discount$/.test(e)}function h(e){return new RegExp(s+"$").test(e)}function f(e){return e.split(s)[0]}function m(e){const t=e.match(new RegExp("^(d{0,2})"+a+"$"));return t?+t[1]||50:0}function g(e,t){return`${e}_${t}${a}`}function S(e,t){let n=e;switch(e){case i.ProPlans.Pro:n="Pro";break;case i.ProPlans.ProRealtime:n="Pro+";break;case i.ProPlans.ProPremium:n="Premium";break;case i.ProPlans.ProMiniAds:case i.ProPlans.ProMiniLayouts:case i.ProPlans.ProMiniAlerts:n=(0,r.t)("1-feature");break;case i.ProPlans.ProEdu:n=(0,r.t)("Rookie")}return t&&(n+=" "+(0,r.t)("trial")),n}function y(e){let t=e;switch(e){case i.ProPlans.Pro:t="Pro";break;case i.ProPlans.ProRealtime:t="Pro+";break;case i.ProPlans.ProPremium:t="Premium";break;case i.ProPlans.Free:t="Basic"}return t}function v(e){switch(e){case o.BillingCycle.TwoYears:return 730;case o.BillingCycle.OneYear:return 365;case o.BillingCycle.ThreeMonths:return 90;case o.BillingCycle.Monthly:return 30;default:return 1}}function A(e,t,n){return Math.round((t-e)*T(n))}function T(e){switch(e){case o.BillingCycle.TwoYears:return 24;case o.BillingCycle.OneYear:return 12;default:return 1}}function E(e){return(Math.round(100*e)/100).toFixed(2)}function b(e){const t=Math.round(100*e)/100;return Math.round(t).toFixed(0)}function C(e){return Math.floor(e).toString()}function R(e){const t=Math.round(100*e)/100,n=Math.round(t);return Math.abs(t-n)>0?t.toFixed(2):n.toFixed(0)}function w(e){return Number.isInteger(e)?e.toFixed(0):(Math.round(10*e)/10).toFixed(1)}function I(e){const t=Math.round(100*e)/100,n=Math.round(10*e)/10,r=Math.round(t);return Math.abs(t-r)>0?Math.abs(t-n)>0?t.toFixed(2):n.toFixed(1):r.toFixed(0)}function P(e){const t=(0,r.t)("{proPlanName} Trial");if(h(e)){const n=S(f(e));return t.format({proPlanName:n})}return S(e)}},85619:(e,t,n)=>{"use strict";function r(e){let t,n=0;if(0===e.length)return n;for(var r=0;rr})},967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{monthsFullNames:()=>o,monthsShortNames:()=>s,weekDaysFullNames:()=>a,weekDaysShortNames:()=>l,weekDaysMiniNames:()=>c});var r=n(28353),i=n(84917);const o={[i.Months.JANUARY]:(0,r.t)("January"),[i.Months.FEBRUARY]:(0,r.t)("February"),[i.Months.MARCH]:(0,r.t)("March"), +[i.Months.APRIL]:(0,r.t)("April"),[i.Months.MAY]:(0,r.t)("May"),[i.Months.JUNE]:(0,r.t)("June"),[i.Months.JULY]:(0,r.t)("July"),[i.Months.AUGUST]:(0,r.t)("August"),[i.Months.SEPTEMBER]:(0,r.t)("September"),[i.Months.OCTOBER]:(0,r.t)("October"),[i.Months.NOVEMBER]:(0,r.t)("November"),[i.Months.DECEMBER]:(0,r.t)("December")},s={[i.Months.JANUARY]:(0,r.t)("Jan"),[i.Months.FEBRUARY]:(0,r.t)("Feb"),[i.Months.MARCH]:(0,r.t)("Mar"),[i.Months.APRIL]:(0,r.t)("Apr"),[i.Months.MAY]:(0,r.t)("May",{context:"short"}),[i.Months.JUNE]:(0,r.t)("Jun"),[i.Months.JULY]:(0,r.t)("Jul"),[i.Months.AUGUST]:(0,r.t)("Aug"),[i.Months.SEPTEMBER]:(0,r.t)("Sep"),[i.Months.OCTOBER]:(0,r.t)("Oct"),[i.Months.NOVEMBER]:(0,r.t)("Nov"),[i.Months.DECEMBER]:(0,r.t)("Dec")},a={[i.WeekDays.SUNDAY]:(0,r.t)("Sunday"),[i.WeekDays.MONDAY]:(0,r.t)("Monday"),[i.WeekDays.TUESDAY]:(0,r.t)("Tuesday"),[i.WeekDays.WEDNESDAY]:(0,r.t)("Wednesday"),[i.WeekDays.THURSDAY]:(0,r.t)("Thursday"),[i.WeekDays.FRIDAY]:(0,r.t)("Friday"),[i.WeekDays.SATURDAY]:(0,r.t)("Saturday")},l={[i.WeekDays.SUNDAY]:(0,r.t)("Sun"),[i.WeekDays.MONDAY]:(0,r.t)("Mon"),[i.WeekDays.TUESDAY]:(0,r.t)("Tue"),[i.WeekDays.WEDNESDAY]:(0,r.t)("Wed"),[i.WeekDays.THURSDAY]:(0,r.t)("Thu"),[i.WeekDays.FRIDAY]:(0,r.t)("Fri"),[i.WeekDays.SATURDAY]:(0,r.t)("Sat")},c={[i.WeekDays.SUNDAY]:(0,r.t)("Su",{context:"day_of_week"}),[i.WeekDays.MONDAY]:(0,r.t)("Mo",{context:"day_of_week"}),[i.WeekDays.TUESDAY]:(0,r.t)("Tu",{context:"day_of_week"}),[i.WeekDays.WEDNESDAY]:(0,r.t)("We",{context:"day_of_week"}),[i.WeekDays.THURSDAY]:(0,r.t)("Th",{context:"day_of_week"}),[i.WeekDays.FRIDAY]:(0,r.t)("Fr",{context:"day_of_week"}),[i.WeekDays.SATURDAY]:(0,r.t)("Sa",{context:"day_of_week"})}},33550:(e,t,n)=>{"use strict";n.d(t,{enabled:()=>l,getConfig:()=>c}) +;const r=JSON.parse('{"free":{"CHART_STORAGE":{"limit":1},"MULTIPLE_CHARTS":{"limit":1},"INDICATORS_ON_CHART":{"limit":3},"HISTORICAL_BARS":{"limit":5},"STUDY_ON_STUDY":{"limit":270,"child_limit":1},"SERVER_SIDE_ALERTS":{"limit":1},"SCREENER_ALERTS":{"limit":1},"SCREENER_INTERVALS":{"interval":["1D","1W","1M"]},"STUDY_TEMPLATES":{"limit":1},"SIMULTANEOUS_CONNECTIONS":{"limit":1},"IDEA_SOCIAL_LINKS":{"socials":["Twitter","Youtube"]}},"__legacy_pro":{"CHART_STORAGE":{"limit":99999},"MULTIPLE_CHARTS":{"limit":8},"CUSTOM_INTERVALS":{},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"INDICATORS_ON_CHART":{"limit":99999},"HISTORICAL_BARS":{"limit":10},"TV_VOLUMEBYPRICE":{"study_packages":["tv-volumebyprice"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":99999},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":20},"SCREENER_ALERTS":{"limit":99999},"SCREENER_AUTO_REFRESH":{},"SCREENER_EXPORT_DATA":{},"SCREENER_INTERVALS":{"interval":["1m","5m","15m","30m","1h","2h","4h","1D","1W","1M"]},"NO_SPONSORED_ADS":{},"STUDY_TEMPLATES":{"limit":99999},"SIMULTANEOUS_CONNECTIONS":{"limit":1},"IDC_AVAILABLE_DELAY":{},"STATUS":{"disable_on_trial":true},"MULTIFLAGGED_SYMBOLS_LISTS":{},"BAR_REPLAY_INTRADAY":{},"SHOWS":{"disable_on_trial":true},"ALERTS_WEBHOOK":{},"DEEP_FUNDAMENTALS_HISTORY":{},"IDEA_SOCIAL_LINKS":{"socials":["Twitter","Youtube"]},"EXTENDED_SOCIAL_LINKS":{"socials":["Facebook","Instagram"],"disable_on_trial":true},"MULTI_MONITOR":{},"PUBLISH_PROTECTED_SCRIPTS":{"disable_on_trial":true}},"__legacy_pro_realtime":{"extends":"__legacy_pro","TV_PROSTUDIES":{"study_packages":["tv-prostudies"]},"SERVER_SIDE_ALERTS":{"limit":1000},"CAN_EDIT_PUBLIC_CHATS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{},"CUSTOM_FORMULAS":{},"INTRADAY_EXOTIC_CHARTS":{}},"__legacy_pro_premium":{"extends":"__legacy_pro_realtime","USE_BAR_MAGNIFIER":{},"HISTORICAL_BARS":{"limit":20},"IDEA_SIGNATURE":{"disable_on_trial":true},"PROFILE_WEBSITE_FIELD":{"disable_on_trial":true},"ALERTS_NO_EXPIRATION":{},"PUBLISH_INVITE_ONLY_SCRIPTS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{},"DEEP_HISTORY_BACKTEST":{},"ALERTS_ON_SECONDS":{},"PERMANENT_STREAM_RECORDS":{},"EXTENDED_SOCIAL_LINKS":{"socials":["Facebook","Instagram","Website"],"disable_on_trial":true},"SECONDS_INTERVALS":{}},"pro":{"CHART_STORAGE":{"limit":5},"MULTIPLE_CHARTS":{"limit":2},"CUSTOM_INTERVALS":{},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"INDICATORS_ON_CHART":{"limit":5},"HISTORICAL_BARS":{"limit":10},"TV_VOLUMEBYPRICE":{"study_packages":["tv-volumebyprice"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":1},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":20},"SCREENER_ALERTS":{"limit":99999},"SCREENER_AUTO_REFRESH":{},"SCREENER_EXPORT_DATA":{},"SCREENER_INTERVALS":{"interval":["1m","5m","15m","30m","1h","2h","4h","1D","1W","1M"]},"NO_SPONSORED_ADS":{},"STUDY_TEMPLATES":{"limit":99999},"SIMULTANEOUS_CONNECTIONS":{"limit":1},"IDC_AVAILABLE_DELAY":{},"STATUS":{"disable_on_trial":true},"BAR_REPLAY_INTRADAY":{},"MULTIFLAGGED_SYMBOLS_LISTS":{},"SHOWS":{"disable_on_trial":true},"ALERTS_WEBHOOK":{},"DEEP_FUNDAMENTALS_HISTORY":{},"PUBLISH_PROTECTED_SCRIPTS":{"disable_on_trial":true},"IDEA_SOCIAL_LINKS":{"socials":["Twitter","Youtube"]},"EXTENDED_SOCIAL_LINKS":{"socials":["Facebook","Instagram"],"disable_on_trial":true},"MULTI_MONITOR":{}},"pro_realtime":{"extends":"pro","CHART_STORAGE":{"limit":10},"MULTIPLE_CHARTS":{"limit":4},"INDICATORS_ON_CHART":{"limit":10},"TV_PROSTUDIES":{"study_packages":["tv-prostudies"]},"STUDY_ON_STUDY":{"limit":270,"child_limit":9},"SERVER_SIDE_ALERTS":{"limit":100},"CAN_EDIT_PUBLIC_CHATS":{"disable_on_trial":true},"SIMULTANEOUS_CONNECTIONS":{"limit":2},"EXPORT_CHART_DATA":{},"CUSTOM_FORMULAS":{},"INTRADAY_EXOTIC_CHARTS":{}},"pro_premium":{"extends":"pro_realtime","USE_BAR_MAGNIFIER":{},"CHART_STORAGE":{"limit":99999},"MULTIPLE_CHARTS":{"limit":8},"INDICATORS_ON_CHART":{"limit":25},"HISTORICAL_BARS":{"limit":20},"STUDY_ON_STUDY":{"limit":270,"child_limit":24},"SERVER_SIDE_ALERTS":{"limit":400},"SIMULTANEOUS_CONNECTIONS":{"limit":5},"IDEA_SIGNATURE":{"disable_on_trial":true},"PROFILE_WEBSITE_FIELD":{"disable_on_trial":true},"ALERTS_NO_EXPIRATION":{},"PUBLISH_INVITE_ONLY_SCRIPTS":{"disable_on_trial":true},"EXPORT_CHART_DATA":{},"DEEP_HISTORY_BACKTEST":{},"ALERTS_ON_SECONDS":{},"PERMANENT_STREAM_RECORDS":{},"EXTENDED_SOCIAL_LINKS":{"socials":["Facebook","Instagram","Website"],"disable_on_trial":true},"SECONDS_INTERVALS":{}},"pro_mini_alerts":{"extends":"free","SERVER_SIDE_ALERTS":{"limit":30},"SCREENER_ALERTS":{"limit":99999},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_mini_ads":{"extends":"free","NO_SPONSORED_ADS":{},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_mini_layouts":{"extends":"free","MULTIPLE_CHARTS":{"limit":8},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}},"pro_edu":{"extends":"free","CHART_STORAGE":{"limit":3},"MULTIPLE_CHARTS":{"limit":2},"MULTIPLE_WATCHLISTS":{},"IMPORT_WATCHLISTS":{},"EXPORT_WATCHLISTS":{},"TICK_BY_TICK_PUSH_DATA":{},"SERVER_SIDE_ALERTS":{"limit":5},"SCREENER_ALERTS":{"limit":99999},"SHOWS":{"disable_on_trial":true},"IDC_AVAILABLE_DELAY":{},"DEEP_FUNDAMENTALS_HISTORY":{}}}'),i=JSON.parse('{"cme":{"INDICATORS_ON_CHART":{"limit":99999}},"bovespa":{"INDICATORS_ON_CHART":{"limit":99999}},"qecomqa":{"INDICATORS_ON_CHART":{"limit":99999}}}') +;var o=n(62867),s=n(46198),a=n(53402);function l(e,t,n){let r=window.user;n&&(r=n);const i=c(e,t,r);return!!i&&!(i[o.ProductFeatures.DISABLE_ON_TRIAL]&&(!r||r.is_trial))}function c(e,t,n){var o;let l=function e(t){const n=r[t];return n?n.extends?Object.assign({},e(n.extends),n):n:null}(t||function(e){let t=window.user;e&&(t=e);let n=(null==t?void 0:t.pro_plan)||s.ProPlans.Free;const r=n!==s.ProPlans.Free&&!(0,a.isTrialProduct)(n);return r||(n=(0,a.getProductForTrial)(n)),r&&t&&!t.is_pro_limited&&!t.new_pro_product_line&&(n="__legacy_"+n),n}(n));if(!l)return null;const c=null===(o=window.TradingView)||void 0===o?void 0:o.widgetCustomer;return c&&i[c]&&(l=Object.assign({},l,i[c])),l&&l[e]||null}},62867:(e,t,n)=>{"use strict";var r;n.d(t,{ProductFeatures:()=>r}),function(e){e.DISABLE_ON_TRIAL="disable_on_trial",e.CUSTOM_INTERVALS="CUSTOM_INTERVALS",e.CHART_STORAGE="CHART_STORAGE",e.MULTIPLE_CHARTS="MULTIPLE_CHARTS",e.MULTIPLE_WATCHLISTS="MULTIPLE_WATCHLISTS",e.IMPORT_WATCHLISTS="IMPORT_WATCHLISTS",e.EXPORT_WATCHLISTS="EXPORT_WATCHLISTS",e.INDICATORS_ON_CHART="INDICATORS_ON_CHART",e.STUDY_ON_STUDY="STUDY_ON_STUDY",e.TICK_BY_TICK_PUSH_DATA="TICK_BY_TICK_PUSH_DATA",e.SERVER_SIDE_ALERTS="SERVER_SIDE_ALERTS",e.PUBLISH_INVITE_ONLY_SCRIPTS="PUBLISH_INVITE_ONLY_SCRIPTS",e.PUBLISH_PROTECTED_SCRIPTS="PUBLISH_PROTECTED_SCRIPTS",e.SCREENER_ALERTS="SCREENER_ALERTS",e.SCREENER_AUTO_REFRESH="SCREENER_AUTO_REFRESH",e.SCREENER_EXPORT_DATA="SCREENER_EXPORT_DATA",e.SCREENER_INTERVALS="SCREENER_INTERVALS",e.SIMULTANEOUS_CONNECTIONS="SIMULTANEOUS_CONNECTIONS",e.STUDY_TEMPLATES="STUDY_TEMPLATES",e.CAN_EDIT_PUBLIC_CHATS="CAN_EDIT_PUBLIC_CHATS",e.NO_SPONSORED_ADS="NO_SPONSORED_ADS",e.IDC_AVAILABLE_DELAY="IDC_AVAILABLE_DELAY",e.STATUS="STATUS",e.ALERTS_NO_EXPIRATION="ALERTS_NO_EXPIRATION",e.MULTIFLAGGED_SYMBOLS_LISTS="MULTIFLAGGED_SYMBOLS_LISTS",e.BAR_REPLAY_INTRADAY="BAR_REPLAY_INTRADAY",e.TV_VOLUMEBYPRICE="TV_VOLUMEBYPRICE",e.ALERTS_WEBHOOK="ALERTS_WEBHOOK",e.DEEP_FUNDAMENTALS_HISTORY="DEEP_FUNDAMENTALS_HISTORY",e.EXPORT_CHART_DATA="EXPORT_CHART_DATA",e.ALERTS_ON_SECONDS="ALERTS_ON_SECONDS",e.PERMANENT_STREAM_RECORDS="PERMANENT_STREAM_RECORDS",e.IDEA_SOCIAL_LINKS="IDEA_SOCIAL_LINKS",e.EXTENDED_SOCIAL_LINKS="EXTENDED_SOCIAL_LINKS",e.DEEP_HISTORY_BACKTEST="DEEP_HISTORY_BACKTEST",e.USE_BAR_MAGNIFIER="USE_BAR_MAGNIFIER"}(r||(r={}))},51712:(e,t,n)=>{"use strict";n.d(t,{reloginOrGoPro:()=>d,runOrGoPro:()=>u});var r=n(20120),i=n(12620),o=n(33550),s=n(62867);function a(e,t,n){return t.value||(0,o.enabled)(e,n)}function l(e,t,n){switch(e){case s.ProductFeatures.SCREENER_INTERVALS:return function(e,t){const n=(0,o.getConfig)(s.ProductFeatures.SCREENER_INTERVALS,t);return!(!n||!n.interval)&&n.interval.includes(e.interval)}(t,n);case s.ProductFeatures.SCREENER_AUTO_REFRESH:return a(s.ProductFeatures.SCREENER_AUTO_REFRESH,t,n);case s.ProductFeatures.ALERTS_NO_EXPIRATION:return a(s.ProductFeatures.ALERTS_NO_EXPIRATION,t,n);default:return(0,o.enabled)(e,n)}}var c=n(84303);async function u(e,t,n,o={}){const s=window.is_authenticated +;window.is_authenticated&&window.user.is_pro&&await(0,r.syncUserData)("gopro"),s===window.is_authenticated?function(e,t,n,r){l(t,r)?e():(0,i.createGoProDialog)(n)}(e,t,n,o):(0,c.showSignModal)({source:n.goproSource,feature:n.feature,signinSuccess:e})}async function d(e){const t=window.is_authenticated;window.is_authenticated&&window.user.is_pro&&await(0,r.syncUserData)("gopro"),t===window.is_authenticated?(0,i.createGoProDialog)(e):(0,c.showSignModal)({source:e.goproSource,feature:e.feature})}},76266:(e,t,n)=>{"use strict";var r=n(11417).TVLocalStorage,i=n(2872);n(49483);var o=new i;TradingView.FeatureToggle={force_prefix:"forcefeaturetoggle.",onChanged:new i,enableFeature:function(e){r.setItem(this.force_prefix+e,"true"),o.fire(e)},disableFeature:function(e){r.setItem(this.force_prefix+e,"false"),o.fire(e)},resetFeature:function(e){r.removeItem(this.force_prefix+e),o.fire(e)},onFeaturesStateChanged:function(){return o}},TradingView.isFeatureEnabled=function(e){function t(e){try{var t=(void 0)(e+function(){if(window.user&&window.user.id)return window.user.id;var e=r.getItem("featuretoggle_seed");return null!==e||(e=Math.floor(1e6*Math.random()),r.setItem("featuretoggle_seed",e)),e}());return new DataView(t).getUint32(0,!0)/4294967296}catch(e){return.5}}return function(n){return!("local"!==window.environment||!function(e){var t=new RegExp("broker_[A-Z]+[a-zA-Z0-9_]+_dev","g"),n=new RegExp("hide_[A-Z]+[a-zA-Z0-9_]+_on_ios","g"),r=new RegExp("hide_[A-Z]+[a-zA-Z0-9_]+_on_android","g"),i=new RegExp("hide_[A-Z]+[a-zA-Z0-9_]+_on_mobile_web","g") +;return-1===["remove_note_tab_from_bottom_panel","broker_FXCM_token_v2","broker_TRADESTATION_V3","broker_TRADOVATE_dev","black_friday_mainpage","black_friday_popup","datawindow","trading-fast-renew-oauth-token","switching_trial_year_to_month_disabled","switching_year_to_month_disabled","default_year_billing_cycle_switcher","marketing-analytics","google-ads","visible_address_fields_by_default","slow-support-warning","hide-trading-floating-toolbar","tvcoins_donations","save-short-streams","details_disable_bid_ask","vat_disabled","pro_plan_upgrades_disabled","pro_plan_downgrades_disabled","unit_conversion","disable_recaptcha_on_signup","braintree-order-one-click-dropdown","braintree-trial-implementation","braintree-gopro-in-order-dialog","braintree-apple-pay","braintree-google-pay","braintree-apple-pay-trial","braintree-google-pay-trial","hide_gopro_popup_upgrade_button","yandex_metric_enabled","broker_id_session","remove_line_tools_from_content","do_not_save_shared_line_tools_to_charts","save_shared_line_tools","chart_storage_with_broker_name","do_not_invalidate_chart_on_changing_line_tools","log_removing_line_tools_group","oanda-european-accounts-warning","mobile_show_bottom_panel","disable_save_settings","desktop_version_notification_enabled","favorites-in-broker-dropdown","streams_stats_profile","hide_ecomonic_events","aggregating_page_pings","mobile_trading_web","mobile_trading_ios","mobile_trading_android","hide_real_brokers_on_mobile","enable_trading_server_logger","percentage_values_for_percentage_scale","hide_ranges_label_colors","disable_user_specific_encryption","remove_scale_settings_from_menu","enable_deep_history_backtesting","show_checkbox_of_house_rules_to_idea_and_script","enable_partner_program","disable_phone_verification_sms","no_overlap_mode_enabled","collapse_pane_buttons_when_connected_to_broker","enable_new_execution_style","test_minds_connections","ftx_request_server_logger","trading_request_server_logger","show_symbol_chart_type_switcher","ecommpay_ru","hide_ideas_on_chart","RU_SF_disable","RU_VOR_disable","show_continuous_contract_switches","hide_sync_time","enable_new_custom_public_chats","bottom_panel_track_events"].indexOf(e)&&-1===e.indexOf("-maintenance")&&!1===t.test(e)&&!1===n.test(e)&&!1===r.test(e)&&!1===i.test(e)}(n))||(!e[n]||-1!==e[n])&&(!!("true"===r.getItem(TradingView.FeatureToggle.force_prefix+n)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"true"===user.settings[TradingView.FeatureToggle.force_prefix+n])||!("false"===r.getItem(TradingView.FeatureToggle.force_prefix+n)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"false"===user.settings[TradingView.FeatureToggle.force_prefix+n])&&(!!e[n]&&(1===e[n]||t(n)<=e[n])))}}(window.featureToggleState||{}),t.FeatureToggle=TradingView.FeatureToggle,t.isFeatureEnabled=TradingView.isFeatureEnabled,t.onFeaturesStateChanged=TradingView.FeatureToggle.onFeaturesStateChanged.bind(TradingView.FeatureToggle)},93119:(e,t,n)=>{"use strict" +;var r=n(9423),i=n(21097).TVXWindowEvents,o=n(51768).trackEvent,s=n(11417).TVLocalStorage,a=n(50975).PushStream,l=n(44182).ConnectionStatus,c=n(52485).telemetry,u=n(98125),d=u.getLogger,_=u.getRawLogHistory,p=d("PushStreamMultiplexer"),h=function(){var e,t=null,n=null,u={},d={},h=[],f=null,m="multiplexer-bc-",g="pushStreamMultiplexerState.",S=l.Closed,y=l.Closed,v=!1,A={_codeParams:function(e){return(e=Array.prototype.slice.call(e)).push((new Date).getTime()),JSON.stringify(e)},_decodeParams:function(e){var t=JSON.parse(e);return t.pop(),t},guid:r.guid(),_init:function(){if(this._needInstantiating())this._instantiatePushStream();else{var e=this._decodeConnectionStatus(s.getItem(this._connectionStatusKey));S=e[0],y=e[1]}setTimeout((function(){A.isConnected()||(p.logNormal("Not connected for a while after init..."),o("pushstream","not connected after init",navigator.userAgent))}),A._activityTimeout)},_instantiatePushStream:function(e){this._setMark(),t&&(o("PushstreamDoublePublic",window.user&&window.user.username||"Guest",navigator.userAgent),t.disconnect()),(t=new a(this._dispatchMessage.bind(this),{url:window.PUSHSTREAM_URL,urlPath:"message-pipe-ws"})).connectionStatus().subscribe(function(e){this._dispatchStatusChange(e,y)}.bind(this)),n&&(o("PushstreamDoublePrivate",window.user&&window.user.username||"Guest",navigator.userAgent),n.disconnect()),(n=new a(this._dispatchMessage.bind(this),{url:window.PUSHSTREAM_URL,urlPath:"message-pipe-ws"})).connectionStatus().subscribe(function(e){this._dispatchStatusChange(S,e)}.bind(this)),this.on("pushstream_set_user_channel",function(e){this._setUserChannel(e)}.bind(this)),this._connectChannels(e)},_destructPushStream:function(){var e=t;t=null,e.disconnect(),e=n,n=null,e.disconnect(),this._dispatchStatusChangeFromOther(s.getItem(this._connectionStatusKey))},_activityTimeout:5e3,_delayTimeout:2e4,_pulseActivity:function(){this.ownPushStream()?this._lostOwn()?(p.logNormal("Lost own pushstream connection"),c.sendReport("site","pushstream_lost_own"),this._destructPushStream()):this._setMark():this._needInstantiating()&&!v&&(p.logNormal("Creating pushstream connection, because other tab lost it"),c.sendReport("site","pushstream_pick_up"),this._instantiatePushStream(this.getChannels()))},_markName:g+"mark",_lostOwn:function(){var e=s.getItem(this._markName);return!!e&&(e=this._decodeParams(e))[0]!==this.guid},_getMark:function(){return this._decodeParams(s.getItem(this._markName))},_setMark:function(){s.setItem(this._markName,this._codeParams([this.guid,(new Date).getTime()]))},_unsetMark:function(){s.setItem(this._markName,"")},_needInstantiating:function(){var e=s.getItem(this._markName);if(e){var t=(e=this._decodeParams(e))[1];return(new Date).getTime()-t>this._delayTimeout}return!0},_onRequestRecreate:function(e){if(!this.ownPushStream()&&this._needInstantiating()){var t=this._decodeParams(e)[0];p.logNormal("Creating pushstream connection after recreate request"),this._instantiatePushStream(t)}},_onUnload:function(){this.ownPushStream()&&(this._unsetMark(), +this._sendRecreateRequest())},_getChannels:function(){return t.getChannels().concat(n.getChannels())},_channelsName:g+"channels",_getChannelsFromStorage:function(){var e=s.getItem(this._channelsName);return e?JSON.parse(e):[]},getChannels:function(){return this.ownPushStream()?this._getChannels():this._getChannelsFromStorage()},_storeChannels:function(){s.setItem(this._channelsName,JSON.stringify(this._getChannels()))},_sendRecreateRequest:function(){var e=this._getChannels();i.emit(this._xEventRecreate,this._codeParams([e]))},ownPushStream:function(){return!!t||!!n},pushStream:function(){if(!this.ownPushStream())throw new Error("Not own PushStream");return t},isConnected:function(){return S>0},status:function(){return S||l.Closed},statusPrivate:function(){return y||l.Closed},_userChannel:function(e){return"private_"+e},userChannel:function(){if(!f)throw new Error("No user channel");return this._userChannel(f)},_xEventRecreate:m+"recreate",_xEventSend:m+"send",_xEventChannelAdd:m+"channelAdd",_xEventChannelRemove:m+"channelRemove",_xEventRequiredChannels:m+"requirech",_xEventConnectionStatus:m+"connectionStatus",_xEventReconnectCommand:m+"reconnectCommand",_xEventRequestLogs:m+"requestLogs",_xEventShareLogs:m+"shareLogs",_shareLogsKey:g+"shareLogs",_connectionStatusKey:g+"connectionStatus",_addChannel:function(e){var r=e.startsWith("private_")?n:t;r.hasChannel(e)||(r.addChannel(e),this._storeChannels())},addChannel:function(e){this.ownPushStream()?this._addChannel(e):i.emit(this._xEventChannelAdd,this._codeParams([e]))},_addChannelFromOther:function(e){var t=this._decodeParams(e)[0];this.ownPushStream()&&this._addChannel(t)},_removeChannel:function(e){var r=e.startsWith("private_")?n:t;r.hasChannel(e)&&(r.removeChannel(e),this._storeChannels())},removeChannel:function(e){this.ownPushStream()?this._removeChannel(e):i.emit(this._xEventChannelRemove,this._codeParams([e]))},_removeChannelFromOther:function(e){var t=this._decodeParams(e)[0];this.ownPushStream()&&this._removeChannel(t)},_connectChannels:function(e){t.addChannel("public"),void 0!==e&&e.length>0&&e.forEach((function(e){e.startsWith("private_")||t.hasChannel(e)||t.addChannel(e)})),"is_authenticated"in window?this._connectUserChannelInitial(!0):window.loginStateChange&&loginStateChange.subscribe(this,this._connectUserChannelInitial),t.connect()},_connectUserChannelInitial:function(e){e&&(is_authenticated?(f=user.private_channel,n.addChannel(this.userChannel()),n.connect()):f=null)},_changeLoginState:function(e){e||(is_authenticated?(f=user.private_channel,this.ownPushStream()&&(this._addChannel(this.userChannel()),n.connect())):(this.ownPushStream()&&(this._removeChannel(this.userChannel()),n.disconnect()),f=null))},_setUserChannel:function(e){p.logNormal("Set user channel "+e),e!==f&&(this.ownPushStream()&&f&&this._removeChannel(this.userChannel()),f=e,this.ownPushStream()&&f&&this._addChannel(this.userChannel()))},_dispatchStatusChange:function(e,t){this._dispatchStatusChangeToOthers(e,t),this._dispatchStatusChangeToSelf(e,t)}, +_dispatchStatusChangeToSelf:function(e,t){e!==S&&(S=e,this._callStatusHandlers(e,!1)),t!==y&&(y=t,this._callStatusHandlers(t,!0))},_callStatusHandlers:function(e,t){p.logNormal("Connection status change: "+e+", private "+t),c.sendReport("site","pushstream_status_change"),h.forEach((function(n){n.isPrivate===t&&n.handler(e)}))},_decodeConnectionStatus:function(e){var t=parseInt(e,10);return isNaN(t)?this._decodeParams(e):[t,t]},_dispatchStatusChangeFromOther:function(e){var t=this._decodeConnectionStatus(e),n=t[0],r=t[1];this.ownPushStream()||this._dispatchStatusChangeToSelf(n,r)},_dispatchStatusChangeToOthers:function(e,t){if(this.ownPushStream()){var n=this._codeParams([e,t]);s.setItem(this._connectionStatusKey,n),i.emit(this._xEventConnectionStatus,n)}},_dispatchMessage:function(e,t,n){this._dispatchMessageToOthers(e,t,n),this._dispatchMessageToSelf(e,t,n,!1)},_dispatchMessageToSelf:function(e,t,n,r){n=e.channel,e=e.content,this._emit(e,t,n,r)},_dispatchMessageToOthers:function(e,t,n){var r=[e,t,n,(new Date).getTime()];i.emit(this._xEventSend,this._codeParams(r))},_dispatchMessageFromOther:function(e){if(!this.ownPushStream()){var t=this._decodeParams(e),n=t[0],r=t[1],i=t[2];this._dispatchMessageToSelf(n,r,i,!0)}},_isSpecialChannel:function(e){return/\*/.test(e)},_emit:function(e,t,n,r){function i(i){i.call(this,e,t,n,r)}for(var o in u[n]&&u[n].forEach(i,this),d){var s="^"+o.replace(/\*/g,".*?")+"$";new RegExp(s).test(n)&&d[o].forEach(i,this)}},on:function(e,t){var n=this._isSpecialChannel(e)?d:u;n[e]||(n[e]=[]),n[e].push(t)},off:function(e,t){var n=this._isSpecialChannel(e)?d:u;switch(arguments.length){case 0:u={},d={};break;case 1:n[e]&&delete n[e];break;default:if(n[e]){var r=n[e].indexOf(t);~r&&n[e].splice(r,1)}}},onStatus:function(e){h.push({handler:e,isPrivate:!1}),setTimeout((function(){e(S)}),0)},onPrivateStatus:function(e){h.push({handler:e,isPrivate:!0}),setTimeout((function(){e(y)}),0)},offStatus:function(e){h=h.filter((function(t){return t.handler!==e}))},forceConnect:function(){v=!1,p.logNormal("Creating pushstream connection after force connect"),this.ownPushStream()?(t.disconnect(),n.disconnect(),this._instantiatePushStream(this.getChannels())):this._needInstantiating()?this._instantiatePushStream():i.emit(this._xEventReconnectCommand,{})},disconnect:function(){this.ownPushStream()&&(this._destructPushStream(),this._unsetMark(),v=!0)},_dispatchReconnectCommandFromOther:function(){this.ownPushStream()&&this.forceConnect()},_getOwnLogs:function(e){if(this.ownPushStream()){var t=_(e,"PushStreamMultiplexer"),n=this.pushStream().getLogs();return[].concat(t,n)}return[]},_onRequestLogs:function(e){if(this.ownPushStream()){var t=this._getOwnLogs(e),n="";try{n=JSON.stringify(t)}catch(e){p.logError("Failed to stringify own pushstream logs")}s.setItem(this._shareLogsKey,n),i.emit(this._xEventShareLogs,n)}},getLogs:function(e){return new Promise(function(t){var n=setTimeout(function(){var e=s.getItem(this._shareLogsKey);t(null!==e?JSON.parse(e):[])}.bind(this),1e3),r=function(e){var o +;i.off(this._xEventShareLogs,r),i.emit(this._xEventShareLogs,""),clearTimeout(n);try{o=JSON.parse(e)}catch(e){o=[],p.logError("Failed to parse logs received from master tab")}t(o)}.bind(this);this.ownPushStream()?t(this._getOwnLogs(e)):(i.on(this._xEventShareLogs,r),i.emit(this._xEventRequestLogs))}.bind(this))}};return A._init(),window.addEventListener("unload",A._onUnload.bind(A)),i.on(A._xEventRecreate,A._onRequestRecreate.bind(A)),i.on(A._xEventSend,A._dispatchMessageFromOther.bind(A)),i.on(A._xEventChannelAdd,A._addChannelFromOther.bind(A)),i.on(A._xEventChannelRemove,A._removeChannelFromOther.bind(A)),i.on(A._xEventConnectionStatus,A._dispatchStatusChangeFromOther.bind(A)),i.on(A._xEventReconnectCommand,A._dispatchReconnectCommandFromOther.bind(A)),i.on(A._xEventRequestLogs,A._onRequestLogs.bind(A)),e=function(){window.loginStateChange&&loginStateChange.subscribe(A,A._changeLoginState)},"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),setInterval(A._pulseActivity.bind(A),A._activityTimeout),A._pulseActivity(),A}();e.exports=h},50975:(e,t,n)=>{"use strict";n.d(t,{PushStream:()=>f});var r=n(88537),i=n(98125),o=n(44182);var s=n(52714),a=n.n(s),l=n(2872),c=n.n(l),u=n(8128);const d=(0,i.getLogger)("PersistentWebsocketTransport");class _ extends class{constructor(e,t,n){this._url="",this._socket=null,this._reconnectCount=0,this._onlineCancellationToken=null,this._connectionStatus=new(a())(o.ConnectionStatus.Closed),this._socketCloseHandler=this._onCloseCallback.bind(this),this._socketErrorHandler=this._onErrorCallback.bind(this),this._socketOpenHandler=this._onOpenCallback.bind(this),this._socketMessageHandler=this._onMessageCallback.bind(this),this._maxReconnectReachedEventDelegate=new(c()),this._shouldReconnect=!0,this._maxReconnectCount=null,this._reconnectTimeoutId=0,this._connectAbortController=null,this._tryReconnect=()=>{if(this._disconnect(),this._shouldReconnect){const e=this._getReconnectTimeout();this._logger.logNormal(`Sleeping some time before reconnect ${e}ms`),this._reconnectTimeoutId=setTimeout(this._tryReconnectImpl.bind(this),e)}else this._logger.logNormal("Skip reconnecting because of shouldReconnect state")},this._onOfflineHandler=()=>{this._removeOnOfflineListener(),this._logger.logInfo("Network status changed to offline - trying to reconnect"),this._tryReconnect()},this._logger=t,this._messageHandler=e,this._closeHandler=n,window.addEventListener("unload",()=>{t.logNormal("Unload event comes - disconnecting without reconnect after that..."),this._shouldReconnect=!1,this._disconnect()},!1)}setUrl(e){if(this._url===e)return;const t=this._connectionStatus.value()!==o.ConnectionStatus.Closed;t&&this._disconnect(),this._url=e,t&&this.connect()}url(){return this._url}connect(){this._connectImpl()}setMaxReconnectCount(e){this._maxReconnectCount=e}connectionStatus(){return this._connectionStatus.readonly()}disconnect(){this._shouldReconnect=!1,this._disconnect()}maxReconnectReachedEvent(){return this._maxReconnectReachedEventDelegate} +async _prepareParamsForConnection(e){}_disconnect(){var e;null===(e=this._connectAbortController)||void 0===e||e.abort(),this._connectAbortController=null,clearTimeout(this._reconnectTimeoutId),this._reconnectTimeoutId=0,this._connectionStatus.value()!==o.ConnectionStatus.Closed?this._socket?(this._logger.logNormal(`Closing connection to: ${this._socket.url}, currentStatus: ${o.ConnectionStatus[this._connectionStatus.value()]}`),this._disconnectTransport()):this._logger.logNormal("Disconnecting without socket - probably within preparing, it should be already scheduled for aborting"):this._logger.logNormal("Attempt to close connection but it is closed already")}_onErrorCallback(){this._logger.logInfo("Connection is closed by error"),this._tryReconnect()}_onCloseCallback(e){var t;this._logger.logInfo(`Connection is closed - code=${e.code} msg=${e.reason}`),null===(t=this._closeHandler)||void 0===t||t.call(this,e),this._tryReconnect()}_tryReconnectImpl(){return null!==this._maxReconnectCount&&this._reconnectCount===this._maxReconnectCount?(this._logger.logWarn("Maximum attempts to reconnect to websocket reached"),void this._maxReconnectReachedEventDelegate.fire()):(this._reconnectCount+=1,this._logger.logInfo("Reconnecting count: "+this._reconnectCount),navigator.onLine?(this._logger.logInfo("Network status: online - trying to connect"),void this.connect()):(this._logger.logInfo("Network status: offline - wait until online"),void(this._onlineCancellationToken=function(e){let t=e;const n=()=>{window.removeEventListener("online",n),t&&t()};return window.addEventListener("online",n),()=>{t=null}}(()=>{this._logger.logInfo("Network status changed to online - trying to connect"),this.connect()}))))}_onOpenCallback(){this._logger.logNormal("Connection opened"),this._reconnectCount=0,this._connectionStatus.setValue(o.ConnectionStatus.Open)}_onMessageCallback(e){this._messageHandler(e.data)}_getReconnectTimeout(){return this._reconnectCount<5?300:5e3}_setOnOfflineListener(){window.addEventListener("offline",this._onOfflineHandler)}_removeOnOfflineListener(){window.removeEventListener("offline",this._onOfflineHandler)}async _connectImpl(){if(this._connectionStatus.value()!==o.ConnectionStatus.Closed)return void this._logger.logNormal("Attempt to open connection but it is not closed");this._socket&&(this._logger.logError("Something went wrong - code 0x2"),this.disconnect()),this._onlineCancellationToken&&(this._onlineCancellationToken(),this._onlineCancellationToken=null),this._logger.logNormal("Connecting to "+this._url),this._shouldReconnect=!0,this._connectAbortController=new AbortController;const e=this._connectAbortController.signal;try{if(this._connectionStatus.setValue(o.ConnectionStatus.Connecting),await this._prepareParamsForConnection(e),e.aborted)throw(0,u.createAbortError)();this._socket=this._createNativeTransport(this._url),this._setOnOfflineListener()}catch(e){this._connectionStatus.setValue(o.ConnectionStatus.Closed),(0,u.skipAbortError)(e)}finally{this._connectAbortController=null}}}{constructor(e,t){super(e,d,t) +}sendMessage(e){this._connectionStatus.value()===o.ConnectionStatus.Open?this._socket?this._socket.send(e):d.logError("Something went wrong - code 0x3"):d.logWarn("Attempt to send message but connection is not opened")}_createNativeTransport(e){const t=new WebSocket(e);return t.binaryType="arraybuffer",t.addEventListener("error",this._socketErrorHandler),t.addEventListener("close",this._socketCloseHandler),t.addEventListener("open",this._socketOpenHandler),t.addEventListener("message",this._socketMessageHandler),t}_disconnectTransport(){if(null===this._socket)return;this._socket.removeEventListener("error",this._socketErrorHandler),this._socket.removeEventListener("close",this._socketCloseHandler),this._socket.removeEventListener("open",this._socketOpenHandler),this._socket.removeEventListener("message",this._socketMessageHandler),this._removeOnOfflineListener();const e=this._socket;this._socket=null,this._connectionStatus.setValue(o.ConnectionStatus.Closed),e.readyState!==WebSocket.CLOSED&&e.close()}}var p=n(52485);const h=(0,i.getLogger)("PushStream");class f{constructor(e,t){this._channels=[],this._transport=new _(this._onPushStreamMessage.bind(this),this._onPushStreamClose.bind(this)),this._settings=t,this._messageHandler=e}addChannel(e){(0,r.assert)(!this.hasChannel(e),"Channel already subscribed"),h.logNormal("Adding channel "+e),this._channels.push(e),this._transport.setUrl(this._generateUrl())}removeChannel(e){const t=this._channels.indexOf(e);(0,r.assert)(-1!==t,"There is no that channel"),h.logNormal("Removing channel "+e),this._channels.splice(t,1),this._transport.setUrl(this._generateUrl())}getChannels(){return this._channels}hasChannel(e){return-1!==this._channels.indexOf(e)}connectionStatus(){return this._transport.connectionStatus()}connect(){(0,r.assert)(0!==this._channels.length,"There is no channels"),this._transport.connect()}disconnect(){this._transport.disconnect()}sendMessage(e){this._transport.sendMessage(e)}getLogs(e){return(0,i.getRawLogHistory)(e,"PushStream")}_onPushStreamMessage(e){if("string"!=typeof e)throw new Error("Wrong message type, expected string");const t=JSON.parse(e),n=t.id,r=t.channel;-2===n?h.logWarn("Received unexpected message: about removed the channel"):n>0&&(h.logDebug(`Received message: id="${n}" channel="${r}"`),this._messageHandler(t.text,n,r))}_onPushStreamClose(e){1005===e.code&&p.telemetry.sendChartReport("websocket_code_1005")}_generateUrl(){const e=this._channels.join("/");return`${this._settings.url}/${this._settings.urlPath}/${e}`}}},20120:(e,t,n)=>{"use strict";n.d(t,{syncUserData:()=>c,syncUserConversionData:()=>u});var r=n(98125),i=n(51768),o=n(85198);const s=(0,r.getLogger)("User.Sync");function a(e){return`${e}_${window.user&&window.user.username||""}`}function l(e,t,n){n!==window.user.pro_plan&&(window.user.pro_plan=n,window.user.is_pro=Boolean(n),(0,i.trackEvent)("Sync User Data","Different Pro Plan",a(e))),t!==window.is_authenticated&&(window.is_authenticated=t,window.loginStateChange.fire(),(0,i.trackEvent)("Sync User Data","Different Auth",a(e)))} +async function c(e){try{const t=await n.e(254).then(n.bind(n,60347));l(e,!0,(await t.getMe()).pro_plan)}catch(t){!function(e,t){"not_authenticated"===t.type?l(e,!1,void 0):s.logError(t.message)}(e,t)}}async function u(e){const t=await(0,o.fetch)("/gopro/"),n=await t.json();return l(e,n.is_authenticated,n.user.pro_plan),n}},52485:(e,t,n)=>{"use strict";n.d(t,{telemetry:()=>d});var r=n(2872),i=n.n(r),o=n(85198),s=n(49483),a=n(84015);n(51872);const l=(0,n(98125).getLogger)("Common.Telemetry"),c={default:15e3,site:3e5},u=["before_websocket_connection_time_frame","websocket_connection_time_frame","first_series_full_time_frame","page_full_load_time_frame","page_load_time_frame"];const d=new class{constructor(){this.reportSent=new(i()),this.timeCounters={series:{marks:[]},study:{},pine:{}},this._timeoutIds={},this._commonAdditionalData={cluster:null,userId:"0"},this._reportStash={}}setSessionInfo(e){const t=this._parseCluster(e);null!==t&&(this._commonAdditionalData.cluster=t)}sendReport(e,t,n){var r;if(!this._isAbleToSendReport(t))return;const i=this._getSubserviceType(e),o=this._getHost(e,i);if(null!==o){if(n=void 0===n?{count:1}:n,this._addReportToStash(n,t,o),!this._timeoutIds[e]){const t=null!==(r=c[e])&&void 0!==r?r:c.default;this._timeoutIds[e]=setTimeout(this._sendTelemetryToService.bind(this,e,o),t)}}else l.logError(`Unable to get host for counter: ${t}, metric type: ${e}, serivce type: ${i}`)}sendChartReport(e,t,n=!0){this._sendServiceSpecifiedReport("charts",e,t,n)}sendLineToolsStorageReport(e,t,n=!0){this._sendServiceSpecifiedReport("line_tools_storage",e,t,n)}_sendServiceSpecifiedReport(e,t,n,r=!0){this._updateUserInfo(),n=void 0===n?{count:1}:n,r&&(n=this._appendCommonAdditionalInfo(n,["cluster","userId"])),this.sendReport(e,t,n)}_updateUserInfo(){const e="user"in window&&"id"in window.user?window.user.id:"0";this._commonAdditionalData.userId=String(e)}_isAbleToSendReport(e){const t=window.TELEMETRY_HOSTS,n=u.includes(e),r=Boolean(window.TradingView.onChartPage||(0,s.onWidget)());return t&&(!n||r)}_sendTelemetryToService(e,t){if(this._reportStash.hasOwnProperty(t)){const e=this._cropParams(this._reportStash[t]),n=this._renameAllParams(e),r={event:"report_stash",params:this._cleanAllParams(n)};l.logDebug(`Report to host: ${t}; stash: ${JSON.stringify(this._reportStash[t])}`),this.reportSent.fire(this._reportStash[t]),delete this._reportStash[t],(0,o.fetch)(t+"/report",{method:"POST",body:JSON.stringify(r)})}this._timeoutIds[e]=null}_getHost(e,t){const n=window.TELEMETRY_HOSTS,r=n[e]&&n[e][t];return Boolean(r)?r:null}_getSubserviceType(e){if(!["charts","site"].includes(e))return"all";let t="free";const n=window.user.is_pro;return"charts"===e&&(0,a.isOnMobileAppPage)("old")?t=n?"ios_pro":"ios_free":"charts"===e&&(0,a.isOnMobileAppPage)("new")?t=n?"android_pro":"android_free":(0,s.onWidget)()?t="widget":n&&(t="pro"),t}_parseCluster(e){let t;try{t=JSON.parse(e).session_id}catch(e){return l.logError("Could not parse cluster id (session id)"),null}const n=/(.*@)(.*)/gi.exec(t);return null!==n&&n.length>=3?n[2]:null} +_appendCommonAdditionalInfo(e,t){return t.forEach(t=>{t in this._commonAdditionalData&&(e.additional=e.additional||{},e.additional[t]=this._commonAdditionalData[t])}),e}_cropParams(e){var t;for(const n in e)e.hasOwnProperty(n)&&e[n].length>1e3&&(e.too_much_metrics_frame=null!==(t=e.too_much_metrics_frame)&&void 0!==t?t:[],e.too_much_metrics_frame.push({value:e[n].length,additional:{event:n}}),delete e[n]);return e}_renameAllParams(e){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=[],e[n].forEach(e=>{t[n].push(this._renameEntryParams(e))}));return t}_renameEntryParams(e){const t={count:"c",value:"v",text:"t",additional:"a"};return Object.keys(e).reduce((n,r)=>(n[t[r]]=e[r],n),{})}_cleanAllParams(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){t[n]=[];const r={c:0};e[n].forEach(e=>{const i=this._cleanEntryParams(e),o=Object.keys(i).length;1===o&&void 0!==i.c?r.c+=i.c:o>0&&t[n].push(i)}),r.c>0&&t[n].push(r),0===t[n].length&&delete t[n]}return t}_cleanEntryParams(e){const t=Object.keys(e).reduce((t,n)=>"c"!==n&&"t"!==n||e[n]?(t[n]=e[n],t):t,{});return"c"in t||"v"in t||"t"in t?t:{}}_addReportToStash(e,t,n){n in this._reportStash||(this._reportStash[n]={}),t in this._reportStash[n]||(this._reportStash[n][t]=[]),Object.keys(e).length>0&&this._reportStash[n][t].push(e)}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/privacy-preference-dialog.0012f6ddb64dd5553a72.js b/charting_library/bundles/privacy-preference-dialog.0012f6ddb64dd5553a72.js new file mode 100644 index 00000000..2e96fbb7 --- /dev/null +++ b/charting_library/bundles/privacy-preference-dialog.0012f6ddb64dd5553a72.js @@ -0,0 +1,3 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8983],{13398:function(t,e){var n,i,r,o;o=function(t){var e=Object.prototype.toString,n=Array.isArray||function(t){return"[object Array]"===e.call(t)};function i(t){return"function"==typeof t}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var s=RegExp.prototype.test,a=/\S/;function l(t){return!function(t,e){return s.call(t,e)}(a,t)}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},c=/\s*/,u=/\s+/,p=/\s*=/,d=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function g(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function w(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n=this.cache;if(n.hasOwnProperty(t))e=n[t];else{for(var r,s,a=this,l=!1;a;){if(t.indexOf(".")>0)for(e=a.view,r=t.split("."),s=0;null!=e&&s0?r[r.length-1][4]:n;break;default:i.push(e)}return n +}(function(t){for(var e,n,i=[],r=0,o=t.length;r"===o?s=this.renderPartial(r,e,n,i):"&"===o?s=this.unescapedValue(r,e):"name"===o?s=this.escapedValue(r,e):"text"===o&&(s=this.rawValue(r)),void 0!==s&&(a+=s);return a},w.prototype.renderSection=function(t,e,r,o){var s=this,a="",l=e.lookup(t[1]);if(l){if(n(l))for(var h=0,c=l.length;h"'`=\/]/g,(function(t){return h[t]}))},t.Scanner=g,t.Context=v,t.Writer=w},e&&"string"!=typeof e.nodeName?o(e):(i=[e],void 0===(r="function"==typeof(n=o)?n.apply(e,i):n)||(t.exports=r))},13958:(t,e,n)=>{"use strict";n.r(e),n.d(e,{PrivacyPreferenceDialog:()=>c});var i=n(59496),r=n(87995),o=n(61074),s=n(56840),a=n(32563),l=n(94673);let h=null;class c extends class{constructor(t,e,n){if(this._isOpened=!1,this.close=()=>{var t;null===(t=this.dialog)||void 0===t||t.close()},this.unmount=()=>{void 0!==this.dialog&&r.unmountComponentAtNode(this.dialog.$content.get(0))},this._handleLoginStateChange=()=>{window.is_authenticated||(this.close(),this.destroy())},this._afterOpenDialog=()=>{this._setInitialDialogWidth(),this._options.afterOpen&&this._options.afterOpen(),void 0!==this.dialog&&this.render()},this._beforeOpenDialog=t=>{this._fetchSavedDialogWidth(), +this._options.beforeOpen?this._options.beforeOpen(t):t()},this._onDialogDestroy=()=>{window.loginStateChange.unsubscribe(this,this._handleLoginStateChange),this.unmount(),delete this.dialog,delete this._options,delete this._savedDialogWidth},this._fetchSavedDialogWidth=()=>{let t;try{t=s.getInt("support.dialog.width")}catch(t){return}this._savedDialogWidth=t},this._setInitialDialogWidth=()=>{const t=this._savedDialogWidth;void 0===this.dialog||a.mobiletouch||this.dialog.el.classList.contains("dialog-media__tablet")||void 0!==t||(this.dialog.el.style.width="50%")},this._options=e||{},this.props=t,n)return;const{closeOnEsc:i=!0}=this._options;this.dialog=(0,l.createFullscreenDialog)({...this._options,titleTemplate:"",closeButton:!1,closeOnEsc:i,destroyOnClose:!1,minimizeButton:!1,horizontalResize:!0,horizontalResizeSettingsKey:"support.dialog.width",beforeOpen:this._beforeOpenDialog,afterOpen:this._afterOpenDialog,onDestroy:this._onDialogDestroy}),window.loginStateChange.subscribe(this,this._handleLoginStateChange)}open(){var t;this._isOpened&&this.unmount(),null===(t=this.dialog)||void 0===t||t.open(),this._isOpened=!0}destroy(){void 0!==this.dialog&&this.dialog.destroy()}}{constructor(t,e){if(super(t,e),this.destroy=()=>{h=null,super.destroy()},this.render=async()=>{if(!this.dialog)return;r.render(i.createElement(o.Spinner,{size:"medium"}),this.dialog.$content.get(0));const{PrivacyPreference:t}=await Promise.resolve().then(n.bind(n,5401));r.render(i.createElement(t,{onClose:this.close}),this.dialog.$content.get(0))},null!==h)return h;h=this}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/profile-api.30da856643b32b7a502f.js b/charting_library/bundles/profile-api.30da856643b32b7a502f.js new file mode 100644 index 00000000..d359ddf4 --- /dev/null +++ b/charting_library/bundles/profile-api.30da856643b32b7a502f.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[254],{10777:(e,r,n)=>{n.r(r),n.d(r,{firstLoginDataUrl:()=>o,accumulateErrors:()=>s,fetchPost:()=>i,firstLoginData:()=>a,resendLink:()=>c,signinUrl:()=>d,signin:()=>h,signupUrl:()=>p,signup:()=>f,ApiError:()=>l,AggregateError:()=>w,recoverPasswordUrl:()=>m,recoverPassword:()=>j,resetPassword:()=>g});var t=n(85198);const o="/accounts/first_login_data/";function s(e,r){return Object.entries(e).map(e=>new l(e[1].join("\n"),r,e[0]))}function i(e,r){return(0,t.fetch)(e,{method:"POST",credentials:"include",mode:"same-origin",body:r})}function a(e){return i(o,e).then(e=>e.ok?e.json():e.json().then(r=>{throw new w(s(r.errors,e.status))}))}function c(){return i("/api/v1/users/anon/change-email/resend/").then(e=>e.ok?e.json():e.json().then(e=>{throw Error(e.error)}))}const d="/accounts/signin/";function u(e){return e.json().then(r=>{if("error"in r&&""!==r.error||"code"in r||!e.ok)throw new l(r.error||r.detail,e.status,r.code,r.two_factor_types);return r})}function h(e){return i(d,e).then(u)}const p="/accounts/signup/";function f(e){return i(p,e).then(e=>e.json().then(r=>{if("errors"in r&&""!==r.errors)throw new w(s(r.errors,e.status))}))}class l extends Error{constructor(e,r,n,t){super(e),this.type=n,this.status=r}}class w extends Error{constructor(e){super(e.map(e=>e.message).join("\n")),this.errors=[],this.errors=e}}const m="/api/v1/recover_password/search/";function j(e){return i(m,e).then(u)}function g(e){return i("/accounts/reset_password/",e).then(e=>400===e.status?e.json().then(r=>{if("errors"in r)throw new w(s(r.errors,e.status));throw new l(r.detail,e.status,r.code)}):u(e))}},60347:(e,r,n)=>{n.r(r),n.d(r,{Code:()=>t,checkUserAnonymizationAbility:()=>d,anonimyzeAccount:()=>u,cancelAccountDeletion:()=>h,contacts:()=>p,SendCodeStatus:()=>f,isCodeSendedResponse:()=>l,contactsSendCode:()=>w,contactsConfirmAccess:()=>m,changeEmail:()=>j,togglePrivacyChattingMode:()=>g,getProfile:()=>v,getMe:()=>E});var t,o=n(28353),s=n(85198),i=n(10777),a=n(88537);!function(e){e.PaidServicesExist="paid_services_exist",e.UnusablePassword="unusable_password",e.InvalidPassword="invalid_password",e.TooManyAttempts="too_many_attempts"}(t||(t={}));const c=o.t("Unknown error happened");function d(){return(0,s.fetch)("/api/v1/users/anonymize/",{credentials:"include",method:"GET",headers:{accept:"application/json"}}).then(e=>{if(!e.ok)throw new Error(c);return e.json()})}function u(e){return(0,s.fetch)("/api/v1/users/anonymize/",{credentials:"include",method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({current_password:e})}).then(e=>{if(!e.ok)throw new Error(c);return e.json()})}function h(){return(0,s.fetch)("/api/v1/users/anonymize/",{credentials:"include",method:"DELETE",headers:{accept:"application/json"}}).then(e=>{if(!e.ok)throw new Error(c);return e.json()})}function p(){return(0,s.fetch)("/api/v1/user/profile/contacts/",{credentials:"include",method:"GET"}).then(e=>e.json())}var f;function l(e){ +return e.status===f.Sended}!function(e){e[e.AlreadyConfirmed=0]="AlreadyConfirmed",e[e.Sended=1]="Sended"}(f||(f={}));function w(e){const r=new FormData;return r.append("option",e.option),(0,s.fetch)("/api/v1/user/profile/contacts/send_code/",{credentials:"include",method:"POST",body:r}).then(e=>e.ok?e.json().then(e=>({status:f.Sended,response:{sid:e.sid,exp:Date.now()+1e3*e.exp}})):e.json().then(e=>{if("confirmed"===e.code)return{status:f.AlreadyConfirmed};if(e.errors)throw Error(Object.values(e.errors).join());throw Error(e.error)}))}function m(e){const r=new FormData;return r.append("option",e.option),r.append("code",e.code),r.append("sid",e.sid),(0,s.fetch)("/api/v1/user/profile/contacts/confirm_access/",{credentials:"include",method:"POST",body:r}).then(e=>e.ok?e.json().then(e=>({exp:Date.now()+1e3*e.exp})):e.json().then(e=>{if(e.errors)throw Error(Object.values(e.errors).join());throw Error(e.error)}))}function j(e){return(0,s.fetch)("/api/v1/users/change-email/",{method:"POST",credentials:"include",headers:{accept:"application/json"},body:e}).then(e=>e.ok?e.json():e.json().then(r=>{if(400===e.status)throw new i.AggregateError((0,i.accumulateErrors)(r.errors,e.status));if(403===e.status)throw new i.ApiError(r.error,e.status,r.code);if(429===e.status)throw new i.ApiError(r.error,e.status,r.code);throw Error("Unhandled exception")}))}function g(e){const r=new FormData;return r.append("disallow_adding_to_private_chats",e.toString()),(0,s.fetch)("/api/v1/user/profile/settings/",{method:"POST",body:r}).then(e=>{if(!e.ok)throw new Error(c);return e.json()}).then(e=>(0,a.ensureDefined)(e.disallow_adding_to_private_chats))}async function v(e){const r=await(0,s.fetch)(`/api/v1/user/profile/${e}/?by=username`);return r.ok?r.json():r.json().then(e=>{throw new Error(e.detail)})}async function E(){const e=await(0,s.fetch)("/api/v1/user/profile/me/");if(!e.ok){const r=await e.json();throw 403===e.status?new i.ApiError(r.detail,e.status,r.code):Error(String(r))}return e.json()}}}]); \ No newline at end of file diff --git a/charting_library/bundles/restricted-toolset.6e034375d57dd0341299.js b/charting_library/bundles/restricted-toolset.6e034375d57dd0341299.js new file mode 100644 index 00000000..b4fbeb4f --- /dev/null +++ b/charting_library/bundles/restricted-toolset.6e034375d57dd0341299.js @@ -0,0 +1,29 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5516,3718],{62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},26390:e=>{e.exports={switcher:"switcher-GT7Z98Io","disable-cursor-pointer":"disable-cursor-pointer-GT7Z98Io",input:"input-GT7Z98Io","thumb-wrapper":"thumb-wrapper-GT7Z98Io","size-small":"size-small-GT7Z98Io","size-large":"size-large-GT7Z98Io","intent-default":"intent-default-GT7Z98Io","disable-active-state-styles":"disable-active-state-styles-GT7Z98Io","intent-select":"intent-select-GT7Z98Io",track:"track-GT7Z98Io",thumb:"thumb-GT7Z98Io"}},50789:e=>{e.exports={summary:"summary-hk3Mmxts",hovered:"hovered-hk3Mmxts",caret:"caret-hk3Mmxts"}},28857:e=>{e.exports={wrapper:"wrapper-OGmb0GMo",labelRow:"labelRow-OGmb0GMo",label:"label-OGmb0GMo",labelHint:"labelHint-OGmb0GMo",labelOn:"labelOn-OGmb0GMo"}},31405:e=>{e.exports={wrapper:"wrapper-IbP2mmCe",hovered:"hovered-IbP2mmCe",labelRow:"labelRow-IbP2mmCe",label:"label-IbP2mmCe",labelHint:"labelHint-IbP2mmCe",labelOn:"labelOn-IbP2mmCe"}},39592:e=>{e.exports={button:"button-Rsu8YfBx",withText:"withText-Rsu8YfBx",withoutText:"withoutText-Rsu8YfBx"}},69698:e=>{e.exports={form:"form-obOlo718",interacting:"interacting-obOlo718",input:"input-obOlo718",menu:"menu-obOlo718",add:"add-obOlo718",hovered:"hovered-obOlo718",hover:"hover-obOlo718",wrap:"wrap-obOlo718"}},59174:e=>{e.exports={spinnerWrap:"spinnerWrap-OjdCXkZp"}},78966:e=>{e.exports={title:"title-mAu74Mtg"}},936:e=>{e.exports={button:"button-2Vex9IkU",first:"first-2Vex9IkU",last:"last-2Vex9IkU"}},82832:e=>{e.exports={wrap:"wrap-H6XRnLaC"}},91887:e=>{e.exports={hidden:"hidden-vHZuIWsw"}},75492:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-AFYo6gMo",withIcon:"withIcon-AFYo6gMo",shortcut:"shortcut-AFYo6gMo",loading:"loading-AFYo6gMo",icon:"icon-AFYo6gMo"}},19450:e=>{e.exports={button:"button-OSzyNVEZ",menu:"menu-OSzyNVEZ"}},33191:e=>{e.exports={customTradingViewStyleButton:"customTradingViewStyleButton-fjLcMxZj",withoutIcon:"withoutIcon-fjLcMxZj"}},64142:e=>{e.exports={dropdown:"dropdown-E3UQYoRD",label:"label-E3UQYoRD",smallWidthTitle:"smallWidthTitle-E3UQYoRD",smallWidthMenuItem:"smallWidthMenuItem-E3UQYoRD",smallWidthWrapper:"smallWidthWrapper-E3UQYoRD"}},87906:e=>{e.exports={value:"value-e0RYyFXU",selected:"selected-e0RYyFXU"}},32062:e=>{e.exports={smallWidthMenuItem:"smallWidthMenuItem-xvK6HzAF"}},6500:e=>{e.exports={button:"button-cXbh8Gcw",first:"first-cXbh8Gcw",last:"last-cXbh8Gcw",newStyles:"newStyles-cXbh8Gcw",menu:"menu-cXbh8Gcw",dropdown:"dropdown-cXbh8Gcw",menuContent:"menuContent-cXbh8Gcw",section:"section-cXbh8Gcw",smallTabletSectionTitle:"smallTabletSectionTitle-cXbh8Gcw",addCustomInterval:"addCustomInterval-cXbh8Gcw", +hovered:"hovered-cXbh8Gcw"}},76521:e=>{e.exports={button:"button-CiwmljCL"}},4050:e=>{e.exports={button:"button-mEQw2hrh",isDisabled:"isDisabled-mEQw2hrh",text:"text-mEQw2hrh"}},96141:e=>{e.exports={opened:"opened-SUlSleuH",hover:"hover-SUlSleuH",autoSaveWrapper:"autoSaveWrapper-SUlSleuH",sharingWrapper:"sharingWrapper-SUlSleuH",button:"button-SUlSleuH",buttonSmallPadding:"buttonSmallPadding-SUlSleuH",hintPlaceHolder:"hintPlaceHolder-SUlSleuH",smallHintPlaceHolder:"smallHintPlaceHolder-SUlSleuH",popupItemRowTabletSmall:"popupItemRowTabletSmall-SUlSleuH",shortcut:"shortcut-SUlSleuH"}},72597:e=>{e.exports={button:"button-TTaQ4aBF",text:"text-TTaQ4aBF",logo:"logo-TTaQ4aBF"}},67397:e=>{e.exports={button:"button-IQnsk0hp",largeLeftPadding:"largeLeftPadding-IQnsk0hp",text:"text-IQnsk0hp",uppercase:"uppercase-IQnsk0hp"}},75668:e=>{e.exports={description:"description-Q7biiIOG"}},52157:e=>{e.exports={item:"item-UfrwNtjY",round:"round-UfrwNtjY"}},41939:e=>{e.exports={wrap:"wrap-hoa11YwL",titleWrap:"titleWrap-hoa11YwL",indicators:"indicators-hoa11YwL",title:"title-hoa11YwL",icon:"icon-hoa11YwL",text:"text-hoa11YwL",titleTabletSmall:"titleTabletSmall-hoa11YwL",labelRow:"labelRow-hoa11YwL",label:"label-hoa11YwL"}},14621:e=>{e.exports={labelRow:"labelRow-qyt9pxdb",toolbox:"toolbox-qyt9pxdb",description:"description-qyt9pxdb",descriptionTabletSmall:"descriptionTabletSmall-qyt9pxdb",item:"item-qyt9pxdb",titleItem:"titleItem-qyt9pxdb",titleItemTabletSmall:"titleItemTabletSmall-qyt9pxdb",itemTabletSmall:"itemTabletSmall-qyt9pxdb",itemLabelTabletSmall:"itemLabelTabletSmall-qyt9pxdb",wrap:"wrap-qyt9pxdb",hovered:"hovered-qyt9pxdb"}},89227:e=>{e.exports={menu:"menu-Pi7orIC5",menuSmallTablet:"menuSmallTablet-Pi7orIC5",menuItemHeaderTabletSmall:"menuItemHeaderTabletSmall-Pi7orIC5",menuItemHeader:"menuItemHeader-Pi7orIC5"}},73887:e=>{e.exports={wrap:"wrap-mbKoosX4",full:"full-mbKoosX4",first:"first-mbKoosX4",last:"last-mbKoosX4",medium:"medium-mbKoosX4",buttonWithFavorites:"buttonWithFavorites-mbKoosX4"}},82559:e=>{e.exports={icon:"icon-0KfEd2LW"}},4039:e=>{e.exports={buttonUndo:"buttonUndo-6VeYguKu",buttonRedo:"buttonRedo-6VeYguKu"}},72142:e=>{e.exports={footer:"footer-C0oTZgbU"}},49473:e=>{e.exports={dottedCloud:"dottedCloud-NezC5dyJ",check:"check-NezC5dyJ",spinningCloud:"spinningCloud-NezC5dyJ",arrow:"arrow-NezC5dyJ",arrowGap:"arrowGap-NezC5dyJ",container:"container-NezC5dyJ",unsaved:"unsaved-NezC5dyJ",hovered:"hovered-NezC5dyJ",saving:"saving-NezC5dyJ",saved:"saved-NezC5dyJ"}},63095:e=>{e.exports={item:"item-UZNJ2Dq5",label:"label-UZNJ2Dq5",labelRow:"labelRow-UZNJ2Dq5",toolbox:"toolbox-UZNJ2Dq5"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},17946:(e,t,a)=>{"use strict";a.d(t,{CustomBehaviourContext:()=>n,presetDefault:()=>i,presetPlatform:()=>s});const n=(0,a(59496).createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0}),i={enableActiveStateStyles:!0,enablePointerOnHover:!0},s={enableActiveStateStyles:!1,enablePointerOnHover:!1}},76974:(e,t,a)=>{ +"use strict";a.d(t,{useIsMounted:()=>i});var n=a(59496);const i=()=>{const e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},26996:(e,t,a)=>{"use strict";a.d(t,{Loader:()=>h});var n,i=a(59496),s=a(97754),o=a(74991),l=a(62092),r=a.n(l);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(n||(n={}));class h extends i.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:n.Initial}}render(){const{className:e,color:t="black",size:a="medium",staticPosition:n}=this.props,o=s(r().item,r()[t],r()[a]);return i.createElement("span",{className:s(r().loader,n&&r().static,this._getStateClass(),e)},i.createElement("span",{className:o}),i.createElement("span",{className:o}),i.createElement("span",{className:o}))}componentDidMount(){this.setState({state:n.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:n.Active})},2*o.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case n.Initial:return r()["loader-initial"];case n.Appear:return r()["loader-appear"];default:return""}}}},17290:(e,t,a)=>{"use strict";a.d(t,{Switch:()=>h});var n=a(59496),i=a(97754),s=a(17946),o=a(26390),l=a.n(o);function r(e){const t=(0,n.useContext)(s.CustomBehaviourContext),{className:a,intent:o="default",size:r="small",enablePointerOnHover:h=t.enablePointerOnHover,enableActiveStateStyles:c=t.enableActiveStateStyles}=e;return i(a,l().switcher,l()["size-"+r],l()["intent-"+o],!h&&l()["disable-cursor-pointer"],!c&&l()["disable-active-state-styles"])}function h(e){const{reference:t,size:a,intent:i,...s}=e;return n.createElement("div",{className:r(e)},n.createElement("input",{...s,type:"checkbox",className:l().input,ref:t}),n.createElement("div",{className:l()["thumb-wrapper"]},n.createElement("div",{className:l().track}),n.createElement("div",{className:l().thumb})))}},26005:(e,t,a)=>{"use strict";a.d(t,{CollapsibleSection:()=>r});var n=a(59496),i=a(97754),s=a.n(i),o=a(10381),l=a(50789);function r(e){return n.createElement(n.Fragment,null,n.createElement("div",{className:s()(e.className,l.summary),onClick:function(){e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,n.createElement(o.ToolWidgetCaret,{className:l.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},59918:(e,t,a)=>{"use strict";a.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>h,MenuItemSwitcher:()=>c});var n=a(59496),i=a(97754),s=a.n(i),o=a(17290),l=a(90186),r=a(31405);const h=r;function c(e){const{className:t,checked:a,id:i,label:h,labelDescription:c,value:d,preventLabelHighlight:u,reference:m,switchReference:v,theme:p=r,disabled:g}=e,b=s()(p.label,a&&!u&&p.labelOn),S=s()(t,p.wrapper,a&&p.wrapperWithOnLabel);return n.createElement("label",{className:S,htmlFor:i,ref:m},n.createElement("div",{className:p.labelRow},n.createElement("div",{className:b},h),c&&n.createElement("div",{className:p.labelHint},c)),n.createElement(o.Switch,{disabled:g, +className:p.switch,reference:v,checked:a,onChange:function(t){const a=t.target.checked;void 0!==e.onChange&&e.onChange(a)},value:d,tabIndex:-1,id:i,...(0,l.filterDataProps)(e)}))}},53374:(e,t,a)=>{"use strict";a.d(t,{INTERVALS:()=>i});var n=a(28353);const i=[{name:"",label:(0,n.t)("minutes",{context:"interval"})},{name:"H",label:(0,n.t)("hours",{context:"interval"})},{name:"D",label:(0,n.t)("days",{context:"interval"})},{name:"W",label:(0,n.t)("weeks",{context:"interval"})},{name:"M",label:(0,n.t)("months",{context:"interval"})}]},49466:(e,t,a)=>{"use strict";a.d(t,{ToolWidgetMenuSummary:()=>o});var n=a(59496),i=a(97754),s=a(78966);function o(e){return n.createElement("div",{className:i(e.className,s.title)},e.children)}},79389:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getRestrictedToolSet:()=>sn});var n=a(67337),i=a(59496),s=a(19036),o=a(28353),l=a(82992),r=a(16654),h=a(37466),c=a(36189),d=a(9745),u=a(16396),m=a(35390),v=a(97754),p=a.n(v),g=a(82832);class b extends i.PureComponent{render(){const{children:e,className:t,...a}=this.props;return i.createElement("div",{className:v(t,g.wrap),...a},e)}}var S=a(4825),C=a(90186),_=a(936);class y extends i.PureComponent{constructor(){super(...arguments),this._handleClick=()=>{const{onClick:e,onClickArg:t}=this.props;e&&e(t)}}render(){const{isFirst:e,isLast:t,hint:a,text:n,icon:s,isActive:o,isDisabled:l,className:r}=this.props,h=(0,C.filterDataProps)(this.props);return i.createElement(S.ToolWidgetButton,{...h,icon:s,text:n,title:a,isDisabled:l,isActive:o,isGrouped:!0,onClick:this._handleClick,className:v(r,_.button,{[_.first]:e,[_.last]:t})})}}var w=a(51613),f=a(90692),k=a(24437),M=a(81332),T=a(55402),E=a(15943),x=a(19450);const I={0:(0,o.t)("Bars"),1:(0,o.t)("Candles"),9:(0,o.t)("Hollow candles"),13:(0,o.t)("Columns"),8:(0,o.t)("Heikin Ashi"),2:(0,o.t)("Line"),3:(0,o.t)("Area"),10:(0,o.t)("Baseline"),12:(0,o.t)("High-low")};const A={barsStyle:(0,o.t)("Bar's style"),labels:I},R=(0,T.registryContextType)();function F(e){var t;return!(null===(t=l.linking.supportedChartStyles.value())||void 0===t?void 0:t.includes(e))}class N extends i.PureComponent{constructor(e,t){super(e,t),this._handleChangeStyle=e=>{const{favorites:t,lastSelectedNotFavorite:a,activeStyle:n}=this.state;this.setState({activeStyle:e,lastSelectedNotFavorite:t.includes(n)?a:n})},this._handleSelectStyle=e=>{const{chartWidgetCollection:t}=this.context;e!==t.activeChartStyle.value()&&t.setChartStyleToWidget(e)},this._handleClickFavorite=e=>{this._isStyleFavorited(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},this._boundForceUpdate=()=>{this.forceUpdate()},this._handleQuickClick=e=>{this._handleSelectStyle(e),this._trackClick()},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired,favoriteChartStylesService:s.any.isRequired});const{chartWidgetCollection:a,favoriteChartStylesService:n}=t,i=a.activeChartStyle.value(),o=n.get(),l=(0,E.japaneseChartStyles)();this.state={activeStyle:i,favorites:o,styles:(0,E.commonChartStyles)(),japaneseStyles:l}}componentDidMount(){ +const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context;e.activeChartStyle.subscribe(this._handleChangeStyle),t.getOnChange().subscribe(this,this._handleChangeSettings),l.linking.supportedChartStyles.subscribe(this._boundForceUpdate)}componentWillUnmount(){const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context;e.activeChartStyle.unsubscribe(this._handleChangeStyle),t.getOnChange().unsubscribe(this,this._handleChangeSettings),l.linking.supportedChartStyles.unsubscribe(this._boundForceUpdate)}render(){const{isShownQuicks:e,displayMode:t="full",id:a}=this.props,{activeStyle:n,favorites:s,styles:o,japaneseStyles:l,lastSelectedNotFavorite:c}=this.state,u="small"!==t&&e&&0!==s.length,v=[...s];v.includes(n)?void 0!==c&&v.push(c):v.push(n);const p=u&&v.length>1;return i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>{const t=o.map(t=>this._renderPopupMenuItem(t,t===n,e)),s=l.map(t=>this._renderPopupMenuItem(t,t===n,e));return i.createElement(b,{id:a},p&&v.map((e,t)=>i.createElement(y,{className:x.button,icon:h.SERIES_ICONS[e],isActive:u&&n===e,isDisabled:F(e),key:t,hint:A.labels[e],isFirst:0===t,isLast:t===v.length-1,onClick:u?this._handleQuickClick:void 0,onClickArg:e,"data-value":r.STYLE_SHORT_NAMES[e]})),i.createElement(m.ToolWidgetMenu,{arrow:Boolean(p),content:p?void 0:i.createElement(b,null,i.createElement(d.Icon,{icon:h.SERIES_ICONS[n]})),title:p?A.barsStyle:A.labels[n],className:x.menu,isDrawer:e,onClick:this._trackClick},t,!!s.length&&i.createElement(w.PopupMenuSeparator,null),s))})}_renderPopupMenuItem(e,t,a){const{isFavoritingAllowed:n}=this.props,s=this._isStyleFavorited(e);return i.createElement(u.PopupMenuItem,{key:e,theme:a?M.multilineLabelWithIconAndToolboxTheme:void 0,icon:h.SERIES_ICONS[e],isActive:t,isDisabled:F(e),label:A.labels[e]||"",onClick:this._handleSelectStyle,onClickArg:e,showToolboxOnHover:!s,toolbox:n&&i.createElement(c.FavoriteButton,{isActive:t,isFilled:s,onClick:()=>this._handleClickFavorite(e)}),"data-value":r.STYLE_SHORT_NAMES[e]})}_handleChangeSettings(e){this.setState({lastSelectedNotFavorite:void 0,favorites:e})}_isStyleFavorited(e){return-1!==this.state.favorites.indexOf(e)}_handleAddFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set([...t,e])}_handleRemoveFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set(t.filter(t=>t!==e))}_trackClick(){0}}N.contextType=R;var H=a(39592);const z=["medium","small"];function P(e){const{text:t,className:a,displayMode:n,collapseWhen:s=z,...o}=e,l=!s.includes(n);return i.createElement(S.ToolWidgetButton,{...o,text:l?t:void 0,className:v(a,H.button,l?H.withText:H.withoutText)})}var W=a(51768),D=a(37669),L=a(2323);const O={compare:(0,o.t)("Compare"),compareOrAddSymbol:(0,o.t)("Compare or Add Symbol")},U=(0,T.registryContextType)();class B extends i.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({isActive:e})},this._handleClick=()=>{var e;(0, +W.trackEvent)("GUI","Chart Header Toolbar","compare"),null===(e=this._compareDialogRenderer)||void 0===e||e.show()},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired}),this.state={isActive:!1},this._compareDialogRenderer=this.context.chartWidgetCollection.getCompareDialogRenderer()}componentDidMount(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().subscribe(this._updateState)}componentWillUnmount(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().unsubscribe(this._updateState)}render(){const{isActive:e}=this.state;return i.createElement(P,{...this.props,icon:L,isOpened:e,onClick:this._handleClick,text:D.hasNewHeaderToolbarStyles?void 0:O.compare,title:O.compareOrAddSymbol,collapseWhen:D.hasNewHeaderToolbarStyles?["full","medium","small"]:void 0})}}B.contextType=U;var V=a(14593),G=a(61814),Z=a(68335),Y=a(90711),q=a(15392);const K={hint:(0,o.t)("Fullscreen mode")},Q=(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Shift,!1),"F"],text:"{0} + {1}"}),j=(0,T.registryContextType)();class X extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context;e.startFullscreen()},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(V.ToolWidgetIconButton,{id:t,icon:D.hasNewHeaderToolbarStyles?q:Y,onClick:this._handleClick,title:K.hint,className:v(e),"data-tooltip-hotkey":Q})}}X.contextType=j;var J=a(88537);const $=(0,a(98125).getLogger)("FavoritesInfo");function ee(e,t){if(0===e.length)return Promise.resolve([]);$.logNormal("Requesting favorites info");const a=[],n=new Map,i=new Map,s=new Map;return e.forEach(e=>{switch(e.type){case"java":s.set(e.studyId,e);break;case"pine":isPublishedPineId(e.pineId)?n.set(e.pineId,e):i.set(e.pineId,e);break;default:(0,J.assert)(!1,"unknown favorite type "+JSON.stringify(e))}}),0!==s.size&&a.push(t.findAllJavaStudies().then(e=>{const t=new Map;for(const a of e)!a.is_hidden_study&&s.has(a.id)&&t.set(a.id,{name:a.description,localizedName:a.description_localized,studyMarketShittyObject:a});return t}).then(e=>{const t=function(e,t){const a={items:[],notFoundItems:[]};return e.forEach((e,n)=>{const i=t.get(n);void 0!==i?a.items.push({item:e,info:i}):a.notFoundItems.push(e)}),a}(s,e);if(0!==t.notFoundItems.length){const e=t.notFoundItems.map(e=>e.studyId);$.logWarn("Cannot find java scripts: "+JSON.stringify(e))}return t.items})),Promise.all(a).then(e=>($.logNormal("Requesting favorites info finished"),e.reduce((e,t)=>e.concat(t),[])))}var te=a(14291),ae=a(85733),ne=a(26996),ie=a(59174);function se(e){const{className:t}=e;return i.createElement("div",{className:p()(ie.spinnerWrap,t)},i.createElement(ne.Loader,null))}var oe=a(49466),le=a(76422),re=a(60373),he=a(64142);const ce={text:(0,o.t)("Indicators"),hint:(0,o.t)("Indicators & Strategies"),favorites:(0,o.t)("Favorites")},de=(0,G.hotKeySerialize)({keys:["/"],text:"{0}"}),ue=(0,T.registryContextType)();class me extends i.PureComponent{ +constructor(e,t){super(e,t),this._promise=null,this._menu=i.createRef(),this._favoriteFundamentalsModel=null,this._setActiveState=e=>{this.setState({isActive:e})},this._handleClick=()=>{const{studyMarket:e}=this.props;this.setState({isActive:!0},()=>{e.visible().value()?e.hide():e.show()}),this._trackClick()},this._handleSelectIndicator=e=>{e=(0,J.ensureDefined)(e),this._trackFavoriteAction("Favorite indicator from toolbar");const{chartWidgetCollection:t}=this.context;if("java"===e.type){const t=(0,te.tryFindStudyLineToolNameByStudyId)(e.studyId);if(null!==t)return void ae.tool.setValue(t)}t.activeChartWidget.value().insertStudy(e)},this._handleFavoriteIndicatorsChange=()=>{const{favoriteScriptsModel:e}=this.context,t=[...(0,J.ensureDefined)(e).favorites()];this.setState({favorites:t}),this._clearCache()},this._handleFavoriteFundamentalsChange=()=>{var e;const t=new Set((null===(e=this._favoriteFundamentalsModel)||void 0===e?void 0:e.favorites())||[]);this.setState({favoriteFundamentals:t}),this._clearCache()},this._handleMouseEnter=()=>{this._prefetchFavorites()},this._handleWrapClick=()=>{this._prefetchFavorites()},this._handleChangeActiveWidget=()=>{this._clearCache()},this._clearCache=()=>{this._promise=null,this.setState({infos:[]})},this._handleScriptRenamed=e=>{const{favoriteScriptsModel:t}=this.context;void 0!==t&&t.isFav(e.scriptIdPart)&&this._clearCache()},this._handleFavoriteMenuClick=()=>{this._trackClick(),this._trackFavoriteAction("Select favorite indicators dropdown")},(0,T.validateRegistry)(t,{favoriteScriptsModel:s.any,chartWidgetCollection:s.any.isRequired});const{favoriteScriptsModel:a}=t,n=void 0!==a?a.favorites():[];this.state={isActive:!1,isLoading:!1,favorites:n,favoriteFundamentals:void 0,infos:[]}}componentDidMount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().subscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().subscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.subscribe(this._handleChangeActiveWidget)),le.on("TVScriptRenamed",this._handleScriptRenamed,null)}componentWillUnmount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().unsubscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().unsubscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.unsubscribe(this._handleChangeActiveWidget)),le.unsubscribe("TVScriptRenamed",this._handleScriptRenamed,null),this._promise=null}render(){const{isActive:e,favorites:t,favoriteFundamentals:a,isLoading:n}=this.state,{className:s,displayMode:l,id:r}=this.props,{chartWidgetCollection:h}=this.context;return i.createElement(i.Fragment,null,i.createElement(b,{id:r,onMouseEnter:this._handleMouseEnter,onClick:this._handleWrapClick},i.createElement(P,{displayMode:l,className:s,icon:re,isOpened:e,onClick:this._handleClick,text:ce.text,title:ce.hint,"data-role":"button","data-name":"open-indicators-dialog","data-tooltip-hotkey":de +}),Boolean(t.length>0||(null==a?void 0:a.size))&&i.createElement(f.MatchMedia,{rule:"screen and (max-width: 428px)"},e=>i.createElement(m.ToolWidgetMenu,{key:h.activeChartWidget.value().id(),arrow:!0,closeOnClickOutside:!0,isDrawer:e,drawerPosition:"Bottom",title:ce.favorites,ref:this._menu,onClick:this._handleFavoriteMenuClick,"data-name":"show-favorite-indicators"},i.createElement("div",{className:p()(he.dropdown,e&&he.smallWidthWrapper)},i.createElement(oe.ToolWidgetMenuSummary,{className:e&&he.smallWidthTitle},(0,o.t)("Favorite Indicators")),n&&i.createElement(se,null),!n&&i.createElement(i.Fragment,null,this.state.infos.length>0?this.state.infos.map(t=>i.createElement(u.PopupMenuItem,{className:p()(e&&he.smallWidthMenuItem),theme:e?M.multilineLabelWithIconAndToolboxTheme:void 0,key:"java"===t.item.type?t.item.studyId:t.item.pineId,onClick:this._handleSelectIndicator,onClickArg:t.item,label:i.createElement("span",{className:p()(!e&&he.label,e&&he.smallWidthLabel,"apply-overflow-tooltip")},ve(t))})):null!==this._promise&&i.createElement(u.PopupMenuItem,{isDisabled:!0,label:(0,o.t)("You have no Favorites Indicators yet")})))))))}_prefetchFavorites(){const{chartWidgetCollection:e}=this.context;if(null!==this._promise||!window.is_authenticated)return;const t=e.activeChartWidget.value();if(!t.hasModel())return;const a=t.model().model().studyMetaInfoRepository();this.setState({isLoading:!0});const n=this._promise=Promise.all([ee(this.state.favorites,a),void 0]).then(e=>{if(n!==this._promise)return;const[t,a]=e;let i=[...t];if(a){const e=a.filter(e=>{var t;return null===(t=this.state.favoriteFundamentals)||void 0===t?void 0:t.has(e.scriptIdPart)}).map(this._mapFundamentalToFavoriteItemInfo);i.push(...e)}i=[...i].sort((e,t)=>ve(e).localeCompare(ve(t))),this.setState({infos:i,isLoading:!1},()=>{this._menu.current&&this._menu.current.update()})})}_trackClick(){0}_trackFavoriteAction(e){(0,W.trackEvent)("GUI","Chart Header Toolbar",e)}_mapFundamentalToFavoriteItemInfo(e){return{item:{type:"pine",pineId:e.scriptIdPart},info:{name:e.scriptName,localizedName:getLocalizedFundamentalsName(e),studyMarketShittyObject:void 0}}}}function ve(e){return e.info.localizedName||(0,o.t)(e.info.name,{context:"study"})}me.contextType=ue;var pe=a(9315),ge=a(29823),be=a(87906);function Se(e){return i.createElement("div",{className:v(be.value,{[be.selected]:e.isSelected})},e.value,e.metric)}var Ce=a(50628),_e=a(10381),ye=a(53374),we=a(69698);class fe extends i.PureComponent{constructor(e){super(e),this._timeMenu=null,this._setMenuRef=e=>{this._timeMenu=e},this._handleChangeInput=e=>{const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&this.setState({inputValue:t})},this._handleSelectTime=e=>{this.setState({selectedIntervalSuffix:e}),this._closeMenu()},this._handleClickAdd=()=>{const{inputValue:e,selectedIntervalSuffix:t}=this.state;this.props.onAdd(e,t)},this._toggleMenu=()=>{this.state.isOpenedMenu?this._closeMenu():this._openMenu()},this._closeMenu=()=>{this.props.onCloseMenu(),this.setState({isOpenedMenu:!1})},this._openMenu=()=>{ +this.props.onOpenMenu(),this.setState({isOpenedMenu:!0})},this._getMenuPosition=()=>{const e=(0,J.ensureNotNull)(this._timeMenu).getBoundingClientRect();return{overrideWidth:e.width,x:e.left,y:e.bottom+1}},this.state={inputValue:"1",isOpenedMenu:!1,selectedIntervalSuffix:ye.INTERVALS[0].name}}render(){const{inputValue:e,isOpenedMenu:t,menuWidth:a,selectedIntervalSuffix:n}=this.state;return i.createElement("div",{className:v(we.form,{[we.interacting]:t})},i.createElement("input",{className:we.input,maxLength:7,onChange:this._handleChangeInput,value:e}),i.createElement("div",{className:we.menu,onClick:this._toggleMenu,ref:this._setMenuRef},ye.INTERVALS.find(e=>e.name===n).label,i.createElement(_e.ToolWidgetCaret,{dropped:t})),i.createElement("div",{className:we.add,onClick:this._handleClickAdd},(0,o.t)("Add")),i.createElement(Ce.PopupMenu,{doNotCloseOn:this,isOpened:t,minWidth:a,onClose:this._closeMenu,position:this._getMenuPosition},ye.INTERVALS.map(e=>i.createElement(u.PopupMenuItem,{dontClosePopup:!0,key:e.name,label:e.label,onClick:this._handleSelectTime,onClickArg:e.name}))))}}var ke=a(96040),Me=a(70412),Te=a(32563),Ee=a(32062);function xe(e){const{interval:t,hint:a,isActive:n,isDisabled:s,isFavorite:o,isSignaling:l,onClick:r,onClickRemove:h,onClickFavorite:d,isSmallTablet:m}=e,v=(0,C.filterDataProps)(e),[g,b]=(0,Me.useHover)(),S=i.useCallback(()=>h(t),[h,t]),_=i.useCallback(()=>d(t),[d,t]),y=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e;l&&m&&(null===(e=y.current)||void 0===e||e.scrollIntoView())},[l,m]),i.createElement("div",{...b,ref:y},i.createElement(u.PopupMenuItem,{...v,className:p()(m&&Ee.smallWidthMenuItem),theme:m?M.multilineLabelWithIconAndToolboxTheme:void 0,isActive:n,isDisabled:s,isHovered:l,onClick:r,onClickArg:t,toolbox:function(){const{isRemovable:t,isFavoritingAllowed:a}=e,l=i.createElement(ke.RemoveButton,{key:"remove",isActive:n,hidden:!Te.touch&&!g,onClick:S}),r=i.createElement(c.FavoriteButton,{key:"favorite",isActive:n,isFilled:o,onClick:_});return[t&&l,!s&&a&&r]}(),showToolboxOnHover:!o,label:a}))}const Ie={[ge.ResolutionKind.Ticks]:(0,o.t)("Ticks",{context:"interval_group_name"}),[ge.ResolutionKind.Seconds]:(0,o.t)("Seconds",{context:"interval_group_name"}),[ge.ResolutionKind.Minutes]:(0,o.t)("Minutes",{context:"interval_group_name"}),[ge.SpecialResolutionKind.Hours]:(0,o.t)("Hours",{context:"interval_group_name"}),[ge.ResolutionKind.Days]:(0,o.t)("Days",{context:"interval_group_name"}),[ge.ResolutionKind.Weeks]:(0,o.t)("Weeks",{context:"interval_group_name"}),[ge.ResolutionKind.Months]:(0,o.t)("Months",{context:"interval_group_name"}),[ge.ResolutionKind.Range]:(0,o.t)("Ranges",{context:"interval_group_name"}),[ge.ResolutionKind.Invalid]:""};function Ae(e,t=!1){return{id:e,name:Ie[e],items:[],mayOmitSeparator:t}}var Re=a(26005),Fe=a(2872),Ne=a.n(Fe),He=a(29197),ze=a(59064),Pe=a(6500);const We={openDialog:(0,o.t)("Open Interval Dialog"),timeInterval:(0,o.t)("Time Interval")},De=(0,G.hotKeySerialize)({keys:[","],text:(0,o.t)("Number or {hotKey_0}")}),Le=(0, +T.registryContextType)(),Oe=new(Ne()),Ue=i.lazy(async()=>({default:(await Promise.all([a.e(2888),a.e(4956),a.e(8463),a.e(9289),a.e(7962),a.e(8986),a.e(3848),a.e(1692),a.e(7345),a.e(5643),a.e(1e3),a.e(2947),a.e(2502),a.e(4013)]).then(a.bind(a,21317))).ToolWidgetIntervalsAddDialog}));function Be(e){{const t=ge.Interval.parse(e);if(!(0,pe.isSecondsEnabled)()&&t.isSeconds())return!1;if(!(0,pe.isTicksEnabled)()&&t.isTicks())return!1}return!0}class Ve extends i.PureComponent{constructor(e,t){super(e,t),this._menu=i.createRef(),this._renderChildren=(e,t)=>[...this._createMenuItems(e,t),...this._createIntervalForm(t)],this._handleChangeInterval=e=>{const{activeInterval:t,lastNotQuicked:a}=this.state,n=this._getQuicks();this.setState({activeInterval:(0,pe.normalizeIntervalString)(e),lastNotQuicked:void 0===t||n.includes(t)?a:t})},this._bindedForceUpdate=()=>{this.forceUpdate()},this._handleCloseMenu=()=>{this.setState({isOpenedFormMenu:!1})},this._handleOpenMenu=()=>{this.setState({isOpenedFormMenu:!0})},this._handleSelectInterval=e=>{void 0!==e&&e!==l.linking.interval.value()&&this.context.chartWidgetCollection.setResolution(e),e&&(0,W.trackEvent)("GUI","Time Interval",e)},this._handleClickFavorite=e=>{e=(0,J.ensureDefined)(e),this._isIntervalFavorite(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},this._handleAddFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set([...t,e])},this._handleRemoveFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set(t.filter(t=>t!==e))},this._handleAddInterval=(e,t)=>{const{intervalService:a}=this.context,n=a.add(e,t);n&&this.setState({lastAddedInterval:n})},this._handleRemoveInterval=e=>{const{intervalService:t}=this.context;e&&(t.remove(e),this._handleRemoveFavorite(e))},this._getHandleSectionStateChange=e=>t=>{const{menuViewState:a}=this.state,{intervalsMenuViewStateService:n}=this.context;n.set({...a,[e]:!t})},this._handleOpenAddIntervalDialog=()=>{this.setState({isAddIntervalDialogOpened:!0})},this._handleCloseAddIntervalDialog=()=>{this.setState({isAddIntervalDialogOpened:!1})},this._handleGlobalClose=()=>{const{isFake:e}=this.props,{isAddIntervalDialogOpened:t}=this.state;e||t||Oe.fire()},this._handeQuickClick=e=>{this._handleSelectInterval(e),this._trackClick()},(0,T.validateRegistry)(t,{chartApiInstance:s.any.isRequired,favoriteIntervalsService:s.any.isRequired,intervalService:s.any.isRequired,intervalsMenuViewStateService:s.any.isRequired});const{chartApiInstance:a,favoriteIntervalsService:o,intervalService:r,intervalsMenuViewStateService:h}=t;this._customIntervals=n.enabled("custom_resolutions");const c=l.linking.interval.value(),d=c&&(0,pe.normalizeIntervalString)(c),u=o.get(),m=r.getCustomIntervals(),v=h.get();this._defaultIntervals=a.defaultResolutions().filter(Be).map(pe.normalizeIntervalString),this.state={isOpenedFormMenu:!1,activeInterval:d,favorites:u,customs:m,menuViewState:v,isAddIntervalDialogOpened:!1}}componentDidMount(){ +const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().subscribe(this,this._handleChangeFavorites),a.getOnChange().subscribe(this,this._handleChangeMenuViewState),t.getOnChange().subscribe(this,this._handleChangeCustoms),l.linking.interval.subscribe(this._handleChangeInterval),l.linking.intraday.subscribe(this._bindedForceUpdate),l.linking.seconds.subscribe(this._bindedForceUpdate),l.linking.ticks.subscribe(this._bindedForceUpdate),l.linking.range.subscribe(this._bindedForceUpdate),l.linking.supportedResolutions.subscribe(this._bindedForceUpdate),ze.globalCloseDelegate.subscribe(this,this._handleGlobalClose)}componentWillUnmount(){const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().unsubscribe(this,this._handleChangeFavorites),a.getOnChange().unsubscribe(this,this._handleChangeMenuViewState),t.getOnChange().unsubscribe(this,this._handleChangeCustoms),l.linking.interval.unsubscribe(this._handleChangeInterval),l.linking.intraday.unsubscribe(this._bindedForceUpdate),l.linking.seconds.unsubscribe(this._bindedForceUpdate),l.linking.ticks.unsubscribe(this._bindedForceUpdate),l.linking.range.unsubscribe(this._bindedForceUpdate),l.linking.supportedResolutions.unsubscribe(this._bindedForceUpdate),ze.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose)}componentDidUpdate(e,t){this.state.lastAddedInterval&&setTimeout(()=>this.setState({lastAddedInterval:void 0}),400)}render(){const{isShownQuicks:e,id:t}=this.props,{activeInterval:a,customs:n,lastNotQuicked:s,isAddIntervalDialogOpened:o}=this.state,l=this._getQuicks(),r=(0,pe.sortResolutions)([...l]);void 0!==a&&r.includes(a)?void 0!==s&&r.push(s):void 0!==a&&r.push(a);const h=(!(!e||0===l.length)||void 0)&&r.length>1,c={},d=(0,pe.mergeResolutions)(this._defaultIntervals,n);(void 0!==a?d.concat(a):d).filter(pe.isAvailable).forEach(e=>c[e]=!0);const u=void 0!==a?(0,pe.getTranslatedResolutionModel)(a):null;return i.createElement(b,{id:t},h&&r.map((e,t)=>{const n=(0,pe.getTranslatedResolutionModel)(e);return i.createElement(y,{key:t,className:v(Pe.button,{[Pe.first]:0===t,[Pe.last]:t===r.length-1,[Pe.newStyles]:D.hasNewHeaderToolbarStyles}),text:i.createElement(Se,{value:n.mayOmitMultiplier?void 0:n.multiplier,metric:n.shortKind}),hint:n.hint,isActive:a===e,isDisabled:!c[e]&&e!==s,onClick:this._handeQuickClick,onClickArg:e,"data-value":e})}),i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>i.createElement(i.Fragment,null,i.createElement(He.CloseDelegateContext.Provider,{value:Oe},i.createElement(m.ToolWidgetMenu,{arrow:Boolean(h),closeOnClickOutside:!0,content:h||null===u?void 0:i.createElement(b,{className:Pe.menuContent},i.createElement(Se,{value:u.mayOmitMultiplier?void 0:u.multiplier,metric:u.shortKind})),title:h||null===u?We.timeInterval:u.hint,hotKey:h?De:void 0,className:Pe.menu,ref:this._menu,isDrawer:e,onClick:this._trackClick},i.createElement("div",{className:Pe.dropdown +},this._renderChildren(d,e)))),e&&o&&i.createElement(i.Suspense,{fallback:null},i.createElement(Ue,{onAdd:this._handleAddInterval,onClose:this._handleCloseAddIntervalDialog,onUnmount:this._handleCloseAddIntervalDialog})))))}_createMenuItems(e,t){const a=function(e){const t=Ae(ge.ResolutionKind.Ticks),a=Ae(ge.ResolutionKind.Seconds),n=Ae(ge.ResolutionKind.Minutes),i=Ae(ge.SpecialResolutionKind.Hours),s=Ae(ge.ResolutionKind.Days),o=Ae(ge.ResolutionKind.Range);return e.forEach(e=>{const l=ge.Interval.parse(e);l.isMinuteHours()?i.items.push(e):l.isMinutes()?(0,ge.isHour)(Number(l.multiplier()))?i.items.push(e):n.items.push(e):l.isSeconds()?a.items.push(e):l.isDWM()?s.items.push(e):l.isRange()?o.items.push(e):l.isTicks()&&t.items.push(e)}),[t,a,n,i,s,o].filter(e=>0!==e.items.length)}(e).map((e,a,n)=>this._renderResolutionsGroup(e,1===n.length,t));return function(e){let t=!1;return e.filter((e,a,n)=>{let i=!0;return e.type===w.PopupMenuSeparator&&(0!==a&&a!==n.length-1||(i=!1),t&&(i=!1)),t=e.type===w.PopupMenuSeparator,i})}([].concat(...a))}_createIntervalForm(e){if(this._customIntervals){const t=e?i.createElement("div",{key:"add-dialog",className:Pe.addCustomInterval,onClick:this._handleOpenAddIntervalDialog},(0,o.t)("Add custom interval")+"…"):i.createElement(fe,{key:"add-form",onAdd:this._handleAddInterval,onCloseMenu:this._handleCloseMenu,onOpenMenu:this._handleOpenMenu});return[i.createElement(w.PopupMenuSeparator,{key:"custom-interval-separator"}),t]}return[]}_renderResolutionsGroup(e,t=!1,a){const n=[],s=e.items.map(e=>this._renderPopupMenuItem(e,a));if(t)n.push(...s);else if(a){const t=i.createElement("div",{key:e.id},i.createElement("div",{className:Pe.smallTabletSectionTitle},e.name),s);n.push(t)}else{const{intervalsMenuViewStateService:t}=this.context,{menuViewState:a}=this.state;if(!t.isAllowed(e.id))return[];const o=i.createElement(Re.CollapsibleSection,{key:e.id,className:Pe.section,summary:e.name,open:!a[e.id],onStateChange:this._getHandleSectionStateChange(e.id)},s);n.push(o)}return(!e.mayOmitSeparator||e.items.length>1)&&(n.unshift(i.createElement(w.PopupMenuSeparator,{key:"begin-"+e.name})),n.push(i.createElement(w.PopupMenuSeparator,{key:"end-"+e.name}))),n}_handleChangeFavorites(e){this.setState({lastNotQuicked:void 0,favorites:e})}_handleChangeCustoms(e){this.setState({customs:e})}_handleChangeMenuViewState(e){this.setState({menuViewState:e},()=>{this._menu.current&&this._menu.current.update()})}_renderPopupMenuItem(e,t){const{isFavoritingAllowed:a}=this.props,{activeInterval:n,lastAddedInterval:s}=this.state,o=e===n,l=(0,pe.isAvailable)(e),r=this._isIntervalFavorite(e),h=this._isIntervalDefault(e),c=(0,pe.getTranslatedResolutionModel)(e);return i.createElement(xe,{key:e,isSmallTablet:t,interval:e,hint:c.hint,isSignaling:s===e,isFavoritingAllowed:a,isDisabled:!l,isFavorite:r,isRemovable:!h,isActive:o,onClick:this._handleSelectInterval,onClickRemove:this._handleRemoveInterval,onClickFavorite:this._handleClickFavorite,"data-value":e})}_isIntervalDefault(e){return this._defaultIntervals.includes(e)} +_isIntervalFavorite(e){return this.state.favorites.includes(e)}_getQuicks(e){return this.props.isShownQuicks&&"small"!==this.props.displayMode?void 0===e?this.state.favorites:e:[]}_trackClick(){0}}Ve.contextType=Le;var Ge=a(76521),Ze=a(74034);const Ye={hint:(0,o.t)("Open chart in popup")},qe=(0,T.registryContextType)();class Ke extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e,windowMessageService:t,isFundamental:a}=this.context,n=e.activeChartWidget.value();n.withModel(null,()=>{t.post(parent,"openChartInPopup",{symbol:n.model().mainSeries().actualSymbol(),interval:n.model().mainSeries().interval(),fundamental:a})})},(0,T.validateRegistry)(t,{isFundamental:s.any,chartWidgetCollection:s.any.isRequired,windowMessageService:s.any.isRequired})}render(){const{className:e}=this.props;return i.createElement(V.ToolWidgetIconButton,{className:v(e,Ge.button),icon:Ze,onClick:this._handleClick,title:Ye.hint})}}Ke.contextType=qe;var Qe=a(28289);const je={hint:(0,o.t)("Chart settings")},Xe=(0,T.registryContextType)();class Je extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context,t=e.activeChartWidget.value();(0,W.trackEvent)("GUI","Chart Header Toolbar","chart properties"),t.showGeneralChartProperties()},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){return i.createElement(V.ToolWidgetIconButton,{...this.props,icon:Qe,title:je.hint,onClick:this._handleClick})}}Je.contextType=Xe;var $e=a(25760),et=a(59199),tt=a(68587),at=a(49473);const nt="M21.5 21.5h-14a5 5 0 1 1 .42-9.983 7.5 7.5 0 0 1 14.57 2.106 4.002 4.002 0 0 1-.99 7.877z",it=13.08991081237793,st={strokeDashOffset:49.242997817993164,strokeDash:49.866326904296876,strokeGap:it,strokeDashCheck:0},ot={strokeDashOffset:62.956237716674806,strokeGap:0,strokeDash:62.956237716674806,strokeDashCheck:200};class lt extends i.PureComponent{constructor(e){super(e),this.state=st}componentDidMount(){"saved"===this.props.state?this.setState(ot):this._goToNextState(this.props.state)}componentWillUnmount(){this._currentAnimation=void 0}UNSAFE_componentWillReceiveProps(e){this.props.state!==e.state&&this._goToNextState(e.state)}render(){const{strokeDashOffset:e,strokeDash:t,strokeGap:a,strokeDashCheck:n}=this.state,{className:s,size:o,onClick:l,state:r,isHovered:h=!1}=this.props,c=v(at.container,s,h&&at.hovered,{[at.unsaved]:"unsaved"===r,[at.saving]:"saving"===r,[at.saved]:"saved"===r});return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:c,version:"1.1",width:o,height:o,viewBox:"0 0 28 28",onClick:l},i.createElement("g",{fill:"none"},i.createElement("path",{className:at.dottedCloud,stroke:"currentColor",strokeDasharray:"3.5,2.5",d:nt}),i.createElement("path",{className:at.spinningCloud,stroke:"currentColor",strokeDasharray:`${t} ${a}`,strokeDashoffset:e,d:nt}),i.createElement("path",{className:at.arrowGap,d:"M11 20h6v5h-6z"}),i.createElement("g",{className:at.arrow,stroke:"currentColor"},i.createElement("path",{ +strokeLinecap:"square",d:"M14.5 14.5v10"}),i.createElement("path",{d:"M11 17l3.5-3.5L18 17"})),i.createElement("g",{className:at.check,stroke:"currentColor"},i.createElement("path",{strokeDasharray:`${n}% ${200-n}%`,d:"M10 15l2.5 2.5L18 12"}))))}_goToNextState(e){switch(e){case"unsaved":this.setState(st);break;case"saving":"unsaved"!==this.props.state&&this.setState(st),this._currentAnimation=Promise.resolve(this._currentAnimation).then(()=>this._createSpinAnimationWhile(()=>"saving"===this.props.state));break;case"saved":this._currentAnimation=Promise.resolve(this._currentAnimation).then(this._createFillGapAnimation.bind(this)).then(this._createCheckAnimation.bind(this))}}_createSpinAnimationWhile(e){return this._createSpinAnimation().then(()=>e()?this._createSpinAnimationWhile(e):Promise.resolve())}_createSpinAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:t})},onComplete:()=>e(),from:49.242997817993164,to:111.57590644836426,easing:tt.easingFunc.linear,duration:1e3})})}_createCheckAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashCheck:Math.round(t)})},onComplete:()=>e(),from:0,to:200,easing:tt.easingFunc.linear,duration:1e3})})}_createFillGapAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:62.956237716674806-t,strokeGap:t,strokeDash:62.956237716674806-t})},onComplete:()=>e(),from:it,to:0,easing:tt.easingFunc.linear,duration:200})})}}var rt=a(40173),ht=a(59918),ct=a(28857);(0,rt.mergeThemes)(ht.DEFAULT_MENU_ITEM_SWITCHER_THEME,ct);var dt=a(82724),ut=a(16788),mt=a(96141),vt=a(4050);a(31405);const pt=n.enabled("widget"),gt=(0,rt.mergeThemes)(S.DEFAULT_TOOL_WIDGET_BUTTON_THEME,vt),bt=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{shortcut:mt.shortcut}),St={copy:(0,o.t)("Copy"),makeCopy:(0,o.t)("Make a Copy"),newChartLayout:(0,o.t)("New Chart Layout"),loadChartLayout:(0,dt.appendEllipsis)((0,o.t)("Load Chart Layout")),rename:(0,dt.appendEllipsis)((0,o.t)("Rename")),renameChartLayout:(0,o.t)("Rename Chart Layout"),saveAs:(0,dt.appendEllipsis)((0,o.t)("Make a Copy")),saveChartLayout:(0,o.t)("Save"),saveChartLayoutLong:(0,o.t)("Save all charts for all symbols and intervals on your layout"),manageChartLayouts:(0,o.t)("Manage Chart Layouts")},Ct=[],_t=(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"S"],text:"{0} + {1}"});class yt extends i.PureComponent{constructor(e){super(e),this._handleSaveHoverBegin=()=>{this.setState({iconHovered:!0})},this._handleSaveHoverEnd=()=>{this.setState({iconHovered:!1})},this._handleCloneClick=()=>{var e,t;null===(t=(e=this.props).onCloneChart)||void 0===t||t.call(e),this._trackClick()},this._handleSaveClick=()=>{var e,t;null===(t=(e=this.props).onSaveChart)||void 0===t||t.call(e),this._trackClick()},this.state={iconHovered:!1}}render(){ +const{id:e,isReadOnly:t,displayMode:a,isProcessing:n,title:s,chartId:o,wasChanges:l,hideMenu:r,isTabletSmall:h,dataNameSaveMenu:c}=this.props,{iconHovered:u}=this.state,p=!t&&!r;let g="saved";return!l&&s||(g="unsaved"),n&&(g="saving"),i.createElement(b,null,t?i.createElement(b,null,i.createElement(P,{id:e,displayMode:a,icon:i.createElement(d.Icon,{icon:ut}),isDisabled:n,onClick:this._handleCloneClick,text:St.copy,title:St.makeCopy,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,collapseWhen:Ct})):i.createElement(b,null,i.createElement(P,{id:e,className:v(mt.button,p&&mt.buttonSmallPadding),displayMode:a,icon:i.createElement(lt,{size:28,state:g,isHovered:u}),isDisabled:o&&!l||n,onClick:this._handleSaveClick,text:s||St.saveChartLayout,title:St.saveChartLayoutLong,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,theme:gt,collapseWhen:Ct,"data-tooltip-hotkey":pt?"":_t}),p&&i.createElement(m.ToolWidgetMenu,{"data-name":c,className:"js-save-load-menu-open-button",arrow:!0,isDrawer:h,drawerPosition:"Bottom",title:St.manageChartLayouts,onClick:this._trackClick},this._renderMenuItems(Boolean(h)))))}_renderMenuItems(e){const{wasChanges:t,isProcessing:a,chartId:n,onSaveChartFromMenu:s,onRenameChart:l,onSaveAsChart:r,onLoadChart:h,onNewChart:c,isAutoSaveEnabled:d,autoSaveId:m,sharingId:p,onAutoSaveChanged:g,isSharingEnabled:b,onSharingChanged:S}=this.props,C=e?M.multilineLabelWithIconAndToolboxTheme:bt,_=e?void 0:(0,Z.humanReadableHash)(Z.Modifiers.Mod+83),y=e?void 0:(0,o.t)("Dot",{context:"hotkey"}),f=[];return f.push(i.createElement(u.PopupMenuItem,{key:"save",isDisabled:Boolean(a||!t&&n),label:St.saveChartLayout,onClick:s,shortcut:_,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-save"})),void 0!==n&&(e||f.push(i.createElement(w.PopupMenuSeparator,{key:"existing-chart-section-begin"})),f.push(i.createElement(u.PopupMenuItem,{key:"rename",label:St.rename,onClick:l,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-rename"}),i.createElement(u.PopupMenuItem,{key:"save-as",label:St.saveAs,onClick:r,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-clone"}))),f.push(i.createElement(w.PopupMenuSeparator,{key:"platform-section-begin"})),f.push(i.createElement(u.PopupMenuItem,{key:"load-chart",className:"js-save-load-menu-item-load-chart",label:St.loadChartLayout,onClick:h,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,shortcut:y,"data-name":"save-load-menu-item-load"})),f}_trackClick(){0}}const wt=(0,T.registryContextType)();class ft extends i.PureComponent{constructor(e,t){super(e,t),this._syncState=e=>{this.setState(e)},this._onChangeHasChanges=e=>{this.state.wasChanges!==e&&this.setState({wasChanges:e})},this._onChangeAutoSaveEnabled=e=>{0},this._onChangeSharingEnabled=e=>{this.setState({isSharingEnabled:e})},this._onChangeTitle=e=>{this.setState({title:e})},this._onChangeId=e=>{this.setState({id:e})},this._onChartAboutToBeSaved=()=>{ +this.setState({isProcessing:!0})},this._onChartSaved=()=>{this.setState({isProcessing:!1})},this._handleAutoSaveEnabled=e=>{0},this._handleSharingEnabled=e=>{0},this._handleClickSave=()=>{this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save click")},this._handleClickSaveFromMenu=()=>{this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save From Menu")},this._handleClickClone=()=>{this.context.saveChartService.cloneChart()},this._handleClickSaveAs=()=>{this.context.saveChartService.saveChartAs(),this._trackEvent("Make a copy")},this._handleClickNew=()=>{this._trackEvent("New chart layout")},this._handleClickLoad=()=>{this.context.loadChartService.showLoadDialog(),this._trackEvent("Load chart layout")},this._handleHotkey=()=>{this.context.loadChartService.showLoadDialog()},this._handleClickRename=()=>{this.context.saveChartService.renameChart(),this._trackEvent("Rename")},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired,chartChangesWatcher:s.any.isRequired,saveChartService:s.any.isRequired,sharingChartService:s.any,loadChartService:s.any.isRequired});const{chartWidgetCollection:a,chartChangesWatcher:n,saveChartService:i,sharingChartService:o}=t;this.state={isAuthenticated:window.is_authenticated,isProcessing:!1,id:a.metaInfo.id.value(),title:a.metaInfo.name.value(),wasChanges:n.hasChanges(),iconHovered:!1}}componentDidMount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:l}=this.context;t?a.on("change",this._syncState):(i.getOnChange().subscribe(this,this._onChangeHasChanges),n.metaInfo.name.subscribe(this._onChangeTitle),n.metaInfo.id.subscribe(this._onChangeId),this._hotkeys=(0,$e.createGroup)({desc:"Save/Load"}),this._hotkeys.add({desc:(0,o.t)("Load Chart Layout"),handler:this._handleHotkey,hotkey:190}),e.chartSaved().subscribe(this,this._onChartSaved),e.chartAboutToBeSaved().subscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.subscribe(this,this._onLoginStateChange))}componentDidUpdate(e,t){this.props.isFake||t!==this.state&&this.props.stateSyncEmitter.emit("change",this.state)}componentWillUnmount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:o}=this.context;t?a.off("change",this._syncState):(i.getOnChange().unsubscribe(this,this._onChangeHasChanges),n.metaInfo.name.unsubscribe(this._onChangeTitle),n.metaInfo.id.unsubscribe(this._onChangeId),(0,J.ensureDefined)(this._hotkeys).destroy(),e.chartSaved().unsubscribe(this,this._onChartSaved),e.chartAboutToBeSaved().unsubscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.unsubscribe(this,this._onLoginStateChange))}render(){const{isReadOnly:e,displayMode:t,id:a,isFake:n}=this.props,{isProcessing:s,isAuthenticated:o,title:l,id:r,wasChanges:h,isAutoSaveEnabled:c,isSharingEnabled:d}=this.state,u={displayMode:t,isReadOnly:e,isAuthenticated:o,isProcessing:s,wasChanges:h,title:l, +id:a,chartId:null!==r?r:void 0,dataNameSaveMenu:n?void 0:"save-load-menu",onCloneChart:this._handleClickClone,onSaveChart:this._handleClickSave,onSaveChartFromMenu:this._handleClickSaveFromMenu,onRenameChart:this._handleClickRename,onSaveAsChart:this._handleClickSaveAs,onLoadChart:this._handleClickLoad};return i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>i.createElement(yt,{...u,isTabletSmall:e}))}_onLoginStateChange(){this.setState({isAuthenticated:window.is_authenticated})}_trackEvent(e){0}}ft.contextType=wt;var kt=a(20301),Mt=a(95792),Tt=a(82029);const Et=new Mt.DateTimeFormatter({dateTimeSeparator:"_",timeFormat:"%h-%m-%s"}),xt={takeSnapshot:(0,o.t)("Take a snapshot")},It=(0,T.registryContextType)();const At=o.t("Loading...");function Rt(e,t,a){return async function(e,t,a){const n=URL.createObjectURL(new Blob([`${At}`],{type:"text/html"}));try{const i=open(n,t,a);if(!i)throw new Error("cound not open a new tab");const s=await e.catch(()=>{});void 0!==s?i.location.replace(s):i.close()}finally{URL.revokeObjectURL(n)}}(e,t,a)}var Ft=a(65446),Nt=a(58455),Ht=a(91887);function zt(e){const t=v(e.isLoading&&Ht.hidden),a=v(!e.isLoading&&Ht.hidden);return i.createElement("div",null,i.createElement("span",{className:t},e.children),i.createElement("span",{className:a},i.createElement(ne.Loader,null)))}var Pt=a(76974),Wt=a(60498),Dt=a(17191),Lt=a(37402),Ot=a(50377),Ut=a(86149),Bt=a(75492);const Vt=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,Bt);function Gt(e){const{serverSnapshot:t,clientSnapshot:n}=e,[s,l]=(0,i.useState)(!1),[r,h]=(0,i.useState)(!1),[c,d]=(0,i.useState)(!1),m=(0,Pt.useIsMounted)(),p=(0,i.useCallback)(async()=>{var e;const t=n(),a=t.then(e=>new Promise(t=>e.canvas.toBlob(e=>{null!==e&&t(e)})));try{await(0,Ft.writePromiseUsingApi)(a,"image/png"),le.emit("onClientScreenshotCopiedToClipboard")}catch(a){const{canvas:n}=await t;null===(e=window.open())||void 0===e||e.document.write(``)}},[n]),g=(0,i.useCallback)(async()=>{const e=await n(),t=await function(e){return new Promise(t=>{try{e.canvas.toBlob(e=>{if(null===e)throw new Error("Unable to generate blob");t(URL.createObjectURL(e))})}catch(a){t(e.canvas.toDataURL())}})}(e);t&&(0,Nt.downloadFile)(e.name+".png",t)},[n]),b=e=>Rt(e.then(e=>e.imageUrl)),S=(0,i.useCallback)(async(e=!1)=>{const a=t();try{if(e)await b(a);else{const e=a.then(e=>new Blob([e.imageUrl],{type:"text/plain"}));await(0,Ft.writePromiseUsingApi)(e,"text/plain"),le.emit("onServerScreenshotCopiedToClipboard")}return!0}catch(e){return b(a),!0}finally{m.current&&(h(!1),l(!1),(0,ze.globalCloseMenu)())}},[t]),C=(0,i.useCallback)(async()=>{d(!0);const[e,n]=await Promise.all([a.e(4665).then(a.bind(a,2679)),t()]);e.Twitter.shareSnapshotInstantly(n.symbol,n.imageUrl), +m.current&&(d(!1),(0,ze.globalCloseMenu)())},[t]);return i.createElement(i.Fragment,null,i.createElement(u.PopupMenuItem,{"data-name":"save-chart-image",label:(0,o.t)("Save chart image"),icon:Lt,onClick:g,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Mod+Z.Modifiers.Alt+83),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"copy-chart-image",label:(0,o.t)("Copy chart image"),icon:Dt,onClick:p,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Mod+Z.Modifiers.Shift+83),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"copy-link-to-the-chart-image",label:i.createElement(zt,{isLoading:s},(0,o.t)("Copy link to the chart image")),icon:Ot,onClick:()=>{l(!0),S(!1)},dontClosePopup:!0,isDisabled:s,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Alt+83),className:v(s&&Bt.loading),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"open-image-in-new-tab",label:i.createElement(zt,{isLoading:r},(0,o.t)("Open image in new tab")),icon:Ut,onClick:()=>{h(!0),S(!0)},dontClosePopup:!0,isDisabled:r,className:v(r&&Bt.loading),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"tweet-chart-image",label:i.createElement(zt,{isLoading:c},(0,o.t)("Tweet chart image")),icon:Wt,onClick:C,dontClosePopup:!0,isDisabled:c,className:v(c&&Bt.loading),theme:Vt}))}var Zt=a(84015);function Yt(e){const[t,a]=(0,i.useState)(!1),n=(0,Pt.useIsMounted)(),s=(0,i.useCallback)(async()=>{a(!0),await e.serverSnapshot(),n.current&&a(!1)},[e.serverSnapshot]);return i.createElement(S.ToolWidgetButton,{id:e.id,className:e.className,isDisabled:t,onClick:s,title:e.tooltip,icon:e.icon})}var qt=a(62346);const Kt=(Qt=function(e){return(0,Zt.isOnMobileAppPage)("any")?i.createElement(Yt,{...e,icon:qt}):i.createElement(m.ToolWidgetMenu,{content:i.createElement(S.ToolWidgetButton,{id:e.id,className:e.className,title:e.tooltip,icon:qt}),drawerPosition:"Bottom",drawerBreakpoint:k.DialogBreakpoints.TabletSmall,arrow:!1,onClick:function(){}},i.createElement(Gt,{...e}))},(jt=class extends i.PureComponent{constructor(e,t){super(e,t),this._clientSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol();return{canvas:await this.context.chartWidgetCollection.clientSnapshot(),name:`${(0,Tt.shortName)(e)}_${Et.formatLocal(new Date)}`}},this._serverSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol(),t=await this.context.chartWidgetCollection.takeScreenshot(),a=n.enabled("charting_library_base")&&void 0!==this.context.snapshotUrl?t:(0,kt.convertImageNameToUrl)(t);return{symbol:(0,Tt.shortName)(e),imageUrl:a}},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(Qt,{id:t,className:e,tooltip:xt.takeSnapshot,serverSnapshot:this._serverSnapshot,clientSnapshot:this._clientSnapshot})}}).contextType=It,jt);var Qt,jt,Xt=a(38318),Jt=a(39362),$t=a(11181);class ea{async show(e){if(null!==ea._provider){const e=await ea._provider.getSymbol() +;return l.linking.symbol.setValue(e.symbol),e}if(ea._currentShowingInstance)throw new DOMException("SymbolSearchUI is already shown","InvalidStateError");try{ea._currentShowingInstance=this,ea.preload();const t=await ea._implementation;return(0,J.assert)(null!==t),new Promise(a=>{t.showDefaultSearchDialog({...e,onSearchComplete:e=>{a({symbol:e})}})})}finally{ea._currentShowingInstance=null}}static setProvider(e){this._provider=e}static preload(){null===this._provider&&null===this._implementation&&(this._implementation=(0,$t.loadNewSymbolSearch)())}}ea._currentShowingInstance=null,ea._provider=null,ea._implementation=null;var ta=a(67397),aa=a(72597);const na=(0,rt.mergeThemes)(S.DEFAULT_TOOL_WIDGET_BUTTON_THEME,ta);(0,rt.mergeThemes)(na,aa);class ia extends i.PureComponent{constructor(e){super(e),this._openSymbolSearchDialog=async e=>{if((0,Z.modifiersFromEvent)(e)!==Z.Modifiers.Alt)try{(0,W.trackEvent)("GUI","SS","main search"),await(new ea).show({defaultValue:this._isSpread(this.state.symbol)?this.state.symbol:this.state.shortName,showSpreadActions:(0,Xt.canShowSpreadActions)()&&this.props.isActionsVisible,source:"searchBar",footer:Te.mobiletouch?void 0:i.createElement(Jt.SymbolSearchDialogFooter,null,(0,o.t)("Simply start typing while on the chart to pull up this search box"))})}catch(e){}else navigator.clipboard.writeText(this.state.symbol)},this._isSpread=e=>!1,this._onSymbolChanged=()=>{const e=l.linking.symbol.value();this.setState({symbol:e,shortName:sa()})},this.state={symbol:l.linking.symbol.value(),shortName:sa()}}componentDidMount(){l.linking.symbol.subscribe(this._onSymbolChanged),l.linking.seriesShortSymbol.subscribe(this._onSymbolChanged),ea.preload()}componentWillUnmount(){l.linking.symbol.unsubscribe(this._onSymbolChanged),l.linking.seriesShortSymbol.unsubscribe(this._onSymbolChanged)}render(){const{id:e,className:t}=this.props;return i.createElement(S.ToolWidgetButton,{id:e,className:p()(t,n.enabled("uppercase_instrument_names")&&ta.uppercase,ta.largeLeftPadding),theme:na,icon:void 0,text:this.state.shortName,title:(0,o.t)("Symbol Search"),onClick:this._openSymbolSearchDialog})}async _updateQuotes(e){}}function sa(){return l.linking.seriesShortSymbol.value()||l.linking.symbol.value()||""}var oa=a(52157);class la extends i.PureComponent{constructor(){super(...arguments),this._handleClick=e=>{e.stopPropagation();const{onApply:t,item:a}=this.props;t(a)}}render(){const{className:e,item:t}=this.props;return i.createElement("div",{className:v(e,oa.item,"apply-common-tooltip"),onClick:this._handleClick,title:t.name},i.createElement("div",{className:oa.round},t.name.length>0?t.name[0].toUpperCase():" "))}}var ra=a(23177),ha=a(75668);function ca(e){return i.createElement("div",{className:v(ha.description,e.className)},e.children)}var da=a(14621);const ua=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{labelRow:da.labelRow,toolbox:da.toolbox,item:da.titleItem}),ma=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{labelRow:da.labelRow,toolbox:da.toolbox,item:da.titleItemTabletSmall}),va=(0, +rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{item:da.item}),pa=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{item:da.itemTabletSmall});function ga(e){const{item:t,onApply:a,onRemove:n,onFavor:s,favorite:o,isFavoritingAllowed:l,isTabletSmall:r}=e,[h,d]=(0,Me.useHover)(),m=t.meta_info,v=m?(0,ra.descriptionString)(m.indicators):void 0,g=r?ma:ua,b=r?pa:va,S=(0,i.useCallback)(()=>a(t),[a,t]),C=(0,i.useCallback)(()=>n(t),[n,t]),_=(0,i.useCallback)(()=>{s&&s(t)},[s,t]);return i.createElement("div",{...d,className:da.wrap,"data-name":t.name,"data-id":t.id,"data-is-default":Boolean(t.is_default)},i.createElement(u.PopupMenuItem,{theme:g,label:t.name,labelRowClassName:p()(r&&da.itemLabelTabletSmall),isHovered:h,showToolboxOnHover:!o&&!h,onClick:S,toolbox:i.createElement(i.Fragment,null,!t.is_default&&i.createElement(ke.RemoveButton,{key:"remove",hidden:!Te.touch&&!h,onClick:C}),Boolean(s)&&l&&i.createElement(c.FavoriteButton,{key:"favorite",isFilled:Boolean(o),onClick:_}))}),v&&i.createElement(u.PopupMenuItem,{theme:b,label:i.createElement(ca,{className:p()(da.description,r&&da.descriptionTabletSmall)},v),onClick:S,isHovered:h}))}var ba=a(25382),Sa=a(41939);const Ca=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,Sa),_a={text:(0,dt.appendEllipsis)((0,o.t)("Save Indicator template"))};function ya(e){const{onClick:t,isTabletSmall:a}=e;return i.createElement(u.PopupMenuItem,{theme:Ca,className:Sa.wrap,label:i.createElement("div",{className:Sa.titleWrap},i.createElement("div",{className:p()(Sa.title,a&&Sa.titleTabletSmall)},i.createElement(d.Icon,{className:Sa.icon,icon:ba}),i.createElement("div",{className:Sa.text},_a.text))),onClick:t})}var wa=a(36947),fa=a(64706);const ka=i.createContext(null);var Ma=a(89227);function Ta(e){const{templates:t,favorites:a,onTemplateSave:n,onTemplateRemove:s,onTemplateSelect:o,onTemplateFavorite:l,isTabletSmall:r,isLoading:h}=e,c=(0,i.useMemo)(()=>t.filter(e=>e.is_default),[t]),d=(0,i.useMemo)(()=>t.filter(e=>!e.is_default),[t]),u=(0,i.useMemo)(()=>new Set(a.map(e=>e.name)),[a]),m=(0,i.useContext)(ka),v=(0,i.useContext)(fa.MenuContext),g=(0,wa.useForceUpdate)();(0,i.useEffect)(()=>{if(null!==m){const e={};return m.getOnChange().subscribe(e,()=>{g(),v&&v.update()}),()=>m.getOnChange().unsubscribeAll(e)}return()=>{}},[]);const b=e=>i.createElement(ga,{key:e.name,item:e,isFavoritingAllowed:Boolean(l),favorite:u.has(e.name),onApply:o,onFavor:l,onRemove:s,isTabletSmall:r});return i.createElement("div",{className:p()(Ma.menu,r&&Ma.menuSmallTablet)},i.createElement(ya,{onClick:n,isTabletSmall:r}),h&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(se,null)),!h&&(r?i.createElement(Ea,{defaults:c,customs:d,render:b}):i.createElement(xa,{defaults:c,customs:d,render:b,state:m})))}function Ea(e){const{defaults:t,customs:a,render:n}=e;return i.createElement(i.Fragment,null,a.length>0&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeaderTabletSmall},(0, +o.t)("My templates")),a.map(n)),t.length>0&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeaderTabletSmall},(0,o.t)("Default templates")),t.map(n)))}function xa(e){const{defaults:t,customs:a,render:n,state:s}=e;return i.createElement(i.Fragment,null,a.length>0&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeader},(0,o.t)("My templates")),a.map(n)),a.length>0&&t.length>0&&s&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(Re.CollapsibleSection,{summary:(0,o.t)("Default templates"),open:!s.get().defaultsCollapsed,onStateChange:e=>s.set({defaultsCollapsed:!e})},t.map(n))),0===a.length&&t.length>0&&i.createElement(i.Fragment,null,i.createElement(w.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeader},(0,o.t)("Default templates")),t.map(n)))}var Ia=a(52714),Aa=a.n(Ia);class Ra{constructor(e,t){var a,i;this._isFavoriteEnabled=n.enabled("items_favoriting"),this.handleFavorTemplate=e=>{if(!this._isFavoriteEnabled)return;const{name:t}=e;this._isTemplateFavorite(t)?this._removeFavoriteTemplate(t):this._addFavoriteTemplate(t)},this.handleDropdownOpen=()=>{this._setState({isLoading:!0}),this._studyTemplates.invalidate(),this._studyTemplates.refreshStudyTemplateList(()=>this._setState({isLoading:!1}))},this.handleApplyTemplate=e=>{this._studyTemplates.applyTemplate(e.name)},this.handleRemoveTemplate=e=>{this._studyTemplates.deleteStudyTemplate(e.name)},this.handleSaveTemplate=()=>{this._studyTemplates.showSaveAsDialog()},this._studyTemplates=e,this._favoriteStudyTemplatesService=t;const s=(null===(a=this._favoriteStudyTemplatesService)||void 0===a?void 0:a.get())||[],o=this._studyTemplates.list();this._state=new(Aa())({isLoading:!1,studyTemplatesList:o,favorites:s}),this._studyTemplates.getOnChange().subscribe(this,this._handleTemplatesChange),this._studyTemplates.refreshStudyTemplateList(),this._isFavoriteEnabled&&(null===(i=this._favoriteStudyTemplatesService)||void 0===i||i.getOnChange().subscribe(this,this._handleFavoritesChange))}destroy(){var e;this._studyTemplates.getOnChange().unsubscribe(this,this._handleTemplatesChange),this._isFavoriteEnabled&&(null===(e=this._favoriteStudyTemplatesService)||void 0===e||e.getOnChange().unsubscribe(this,this._handleFavoritesChange))}state(){return this._state.readonly()}_setState(e){this._state.setValue({...this._state.value(),...e})}_handleTemplatesChange(){this._setState({studyTemplatesList:this._studyTemplates.list()})}_handleFavoritesChange(e){this._isFavoriteEnabled&&this._setState({favorites:e})}_removeFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set(a.filter(t=>t!==e))}_addFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set([...a,e])} +_isTemplateFavorite(e){const{favorites:t}=this._state.value();return t.includes(e)}}var Fa=a(36257),Na=a(73887);const Ha={title:(0,o.t)("Templates"),tooltip:(0,o.t)("Indicator Templates")},za=(0,T.registryContextType)();class Pa extends i.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({...e,isActive:this.state.isActive})},this._handleApplyTemplate=e=>{this._handleClose(),this._model.handleApplyTemplate(e)},this._handleRemoveTemplate=e=>{this._handleClose(),this._model.handleRemoveTemplate(e)},this._handleClose=()=>{this._handleToggleDropdown(!1)},this._handleToggleDropdown=e=>{const{isActive:t}=this.state,a="boolean"==typeof e?e:!t;this.setState({isActive:a})},(0,T.validateRegistry)(t,{favoriteStudyTemplatesService:s.any,studyTemplates:s.any.isRequired,templatesMenuViewStateService:s.any});const{favoriteStudyTemplatesService:a,studyTemplates:n}=t;this._model=new Ra(n,a),this.state={...this._model.state().value(),isActive:!1}}componentDidMount(){this._model.state().subscribe(this._updateState)}componentWillUnmount(){this._model.state().unsubscribe(this._updateState),this._model.destroy()}render(){const{studyTemplatesList:e,favorites:t}=this.state,{isShownQuicks:a,className:n,displayMode:s,id:o}=this.props;return i.createElement(ka.Provider,{value:this.context.templatesMenuViewStateService||null},i.createElement(Wa,{id:o,className:n,mode:s,templates:e,favorites:t,onMenuOpen:this._model.handleDropdownOpen,onTemplateFavorite:a?this._model.handleFavorTemplate:void 0,onTemplateSelect:this._handleApplyTemplate,onTemplateRemove:this._handleRemoveTemplate,onTemplateSave:this._model.handleSaveTemplate}))}}function Wa(e){const{id:t,className:a,mode:n,favorites:s,templates:o,isMenuOpen:l,onTemplateSelect:r,onTemplateSave:h,onTemplateFavorite:c,onTemplateRemove:d}=e,u=p()(a,Na.wrap,{[Na.full]:"full"===n,[Na.medium]:"medium"===n}),v=o.filter(e=>s.includes(e.name)),g="small"!==n&&c&&v.length>0;return i.createElement(b,{id:t,className:u},i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},t=>i.createElement(m.ToolWidgetMenu,{onOpen:e.onMenuOpen,isDrawer:t,drawerPosition:"Bottom",arrow:!1,content:i.createElement(P,{className:p()(g&&Na.buttonWithFavorites),displayMode:n,isOpened:l,icon:Fa,text:D.hasNewHeaderToolbarStyles?void 0:Ha.title,title:Ha.tooltip,forceInteractive:!0,collapseWhen:D.hasNewHeaderToolbarStyles?["full","medium","small"]:void 0}),onClick:S},i.createElement(Ta,{onTemplateSave:h,onTemplateSelect:r,onTemplateRemove:d,onTemplateFavorite:c,templates:o,favorites:v,isTabletSmall:t}))),g&&i.createElement(Da,{favorites:v,onTemplateSelect:function(e){r(e),S()}}));function S(){0}}function Da(e){return i.createElement(i.Fragment,null,e.favorites.map((t,a,n)=>i.createElement(la,{key:t.name,item:t,onApply:e.onTemplateSelect,className:p()({[Na.first]:0===a,[Na.last]:a===n.length-1})})))}Pa.contextType=za;a(94419);var La=a(4039),Oa=a(82559),Ua=a(55576),Ba=a(17717),Va=a(76294);const Ga={undoHint:(0,o.t)("Undo {hint}"),redoHint:(0,o.t)("Redo {hint}")},Za={undoHotKey:(0, +G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"Z"],text:"{0} + {1}"}),redoHotKey:(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"Y"],text:"{0} + {1}"})},Ya=(0,rt.weakComposeClasses)(Ua,La,{buttonUndo:"button",buttonRedo:"button"}),qa=(0,rt.mergeThemes)(Ua,Oa),Ka={...Ua,button:Ya.buttonUndo},Qa={...Ua,button:Ya.buttonRedo},ja=(0,T.registryContextType)();class Xa extends i.PureComponent{constructor(e,t){super(e,t),this._batched=null,this._handleClickUndo=()=>{(0,W.trackEvent)("GUI","Undo");const{chartWidgetCollection:e}=this.context;e.undoHistory.undo()},this._handleClickRedo=()=>{(0,W.trackEvent)("GUI","Redo");const{chartWidgetCollection:e}=this.context;e.undoHistory.redo()},(0,T.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired}),this.state=this._getStateFromUndoHistory()}componentDidMount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().subscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().subscribe(this,this._onChangeStack)}componentWillUnmount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().unsubscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().unsubscribe(this,this._onChangeStack),this._batched=null}render(){const{id:e}=this.props,{isEnabledRedo:t,isEnabledUndo:a,redoStack:n,undoStack:s}=this.state;return i.createElement(b,{id:e},i.createElement(S.ToolWidgetButton,{icon:Ba,isDisabled:!a,onClick:this._handleClickUndo,title:a?Ga.undoHint.format({hint:s}):void 0,"data-tooltip-hotkey":a?Za.undoHotKey:void 0,theme:D.hasNewHeaderToolbarStyles?qa:Ka}),i.createElement(S.ToolWidgetButton,{icon:Va,isDisabled:!t,onClick:this._handleClickRedo,title:t?Ga.redoHint.format({hint:n}):void 0,"data-tooltip-hotkey":t?Za.redoHotKey:void 0,theme:D.hasNewHeaderToolbarStyles?qa:Qa}))}_onChangeStack(){null===this._batched&&(this._batched=Promise.resolve().then(()=>{if(null===this._batched)return;this._batched=null;const e=this._getStateFromUndoHistory();this.setState(e)}))}_getStateFromUndoHistory(){const{chartWidgetCollection:e}=this.context,t=e.undoHistory.undoStack(),a=e.undoHistory.redoStack(),n=a.head(),i=t.head();return{isEnabledRedo:!a.isEmpty(),isEnabledUndo:!t.isEmpty(),redoStack:n?n.text().translatedText():"",undoStack:i?i.text().translatedText():""}}}Xa.contextType=ja;var Ja=a(87995),$a=a(9837);class en extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._update=()=>{this.forceUpdate()},this._setRef=e=>{this._ref=e},this._handleMeasure=({width:e})=>{this.props.width.setValue(e)}}componentDidMount(){const{element:e,isFake:t,width:a}=this.props;if(t)a.subscribe(this._update);else{const t=(0,J.ensureNotNull)(this._ref);Ja.findDOMNode(t).appendChild(e)}}componentWillUnmount(){const{width:e,isFake:t}=this.props;t&&e.unsubscribe(this._update)}render(){const{isFake:e=!1,width:t}=this.props;return i.createElement($a,{shouldMeasure:!e,whitelist:["width"],onMeasure:this._handleMeasure},i.createElement(b,{ref:this._setRef,style:e?{ +width:t.value()}:void 0,"data-is-custom-header-element":!0}))}}function tn(e){const{displayMode:t,params:a}=e;return i.createElement(m.ToolWidgetMenu,{content:i.createElement(P,{collapseWhen:void 0!==a.icon?void 0:[],displayMode:t,icon:a.icon,text:a.title,title:a.tooltip,"data-name":"dropdown","data-is-custom-header-element":!0}),drawerPosition:"Bottom",drawerBreakpoint:k.DialogBreakpoints.TabletSmall,arrow:!1},a.items.map((e,t)=>i.createElement(u.PopupMenuItem,{key:t,label:e.title,onClick:()=>e.onSelect(),"data-name":"dropdown-item"})))}var an=a(33191);function nn(e){const{className:t,...a}=e;return i.createElement(P,{...a,className:v(t,an.customTradingViewStyleButton,an.withoutIcon),collapseWhen:[],"data-name":"custom-tradingview-styled-button"})}function sn(){return{Bars:n.enabled("header_chart_type")?N:void 0,Compare:n.enabled("header_compare")?B:void 0,Custom:en,CustomTradingViewStyledButton:nn,Fullscreen:n.enabled("header_fullscreen_button")?X:void 0,Indicators:n.enabled("header_indicators")?me:void 0,Intervals:n.enabled("header_resolutions")?Ve:void 0,OpenPopup:Ke,Properties:n.enabled("header_settings")&&n.enabled("show_chart_property_page")?Je:void 0,SaveLoad:n.enabled("header_saveload")?ft:void 0,Screenshot:n.enabled("header_screenshot")?Kt:void 0,SymbolSearch:n.enabled("header_symbol_search")?ia:void 0,Templates:n.enabled("study_templates")?Pa:void 0,Dropdown:tn,UndoRedo:n.enabled("header_undo_redo")?Xa:void 0,Layout:void 0}}},23177:(e,t,a)=>{"use strict";a.d(t,{createStudyTemplateMetaInfo:()=>i,descriptionString:()=>s});var n=a(81851);function i(e,t){return{indicators:e.orderedDataSources(!0).filter(e=>(0,n.isStudy)(e)&&!0).map(e=>({id:e.metaInfo().id,description:e.title(!0,void 0,!0)})),interval:t}}function s(e){const t=new Map;return e.forEach(e=>{const[a,n]=t.get(e.id)||[e.description,0];t.set(e.id,[a,n+1])}),Array.from(t.values()).map(([e,t])=>`${e}${t>1?" x "+t:""}`).join(", ")}},55402:(e,t,a)=>{"use strict";a.d(t,{validateRegistry:()=>l,RegistryProvider:()=>r,registryContextType:()=>h});var n=a(59496),i=a(19036),s=a.n(i);const o=n.createContext({});function l(e,t){s().checkPropTypes(t,e,"context","RegistryContext")}function r(e){const{validation:t,value:a}=e;return l(a,t),n.createElement(o.Provider,{value:a},e.children)}function h(){return o}},37466:(e,t,a)=>{"use strict";a.r(t),a.d(t,{SERIES_ICONS:()=>u});var n=a(8774),i=a(9322),s=a(14409),o=a(97567),l=a(84051),r=a(21610),h=a(65316),c=a(35361),d=a(92628);const u={3:n,0:i,1:s,8:o,9:l,2:r,10:h,12:c,13:d}},20301:(e,t,a)=>{"use strict";a.d(t,{convertImageNameToUrl:()=>s});var n=a(67337),i=a(76861);function s(e){return n.enabled("charting_library_base")||(0,i.isProd)()?"https://www.tradingview.com/x/"+e+"/":window.location.protocol+"//"+window.location.host+"/x/"+e+"/"}},58455:(e,t,a)=>{"use strict";function n(e,t){const a=document.createElement("a");a.style.display="none",a.href=t,a.download=e,a.click()}a.d(t,{downloadFile:()=>n})},39362:(e,t,a)=>{"use strict";a.d(t,{SymbolSearchDialogFooter:()=>l});var n=a(59496),i=a(97754),s=a.n(i),o=a(72142) +;function l(e){const{className:t,children:a}=e;return n.createElement("div",{className:s()(o.footer,t)},a)}},36947:(e,t,a)=>{"use strict";a.d(t,{useForceUpdate:()=>i});var n=a(59496);const i=()=>{const[,e]=(0,n.useReducer)((e,t)=>e+1,0);return e}},70412:(e,t,a)=>{"use strict";a.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>o,useHover:()=>i});var n=a(59496);function i(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function o(e){const[t,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);a(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},81332:(e,t,a)=>{"use strict";a.d(t,{multilineLabelWithIconAndToolboxTheme:()=>o});var n=a(40173),i=a(23576),s=a(63095);const o=(0,n.mergeThemes)(i,s)},51613:(e,t,a)=>{"use strict";a.d(t,{PopupMenuSeparator:()=>l});var n=a(59496),i=a(97754),s=a.n(i),o=a(524);function l(e){const{size:t="normal",className:a}=e;return n.createElement("div",{className:s()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,a)})}},15392:e=>{e.exports=''},86149:e=>{e.exports=''},8774:e=>{e.exports=''},9322:e=>{ +e.exports=''},65316:e=>{e.exports=''},14409:e=>{e.exports=''},25382:e=>{e.exports=''},92628:e=>{e.exports=''},2323:e=>{e.exports=''},90711:e=>{e.exports=''},97567:e=>{e.exports=''},35361:e=>{ +e.exports=''},84051:e=>{e.exports=''},60373:e=>{e.exports=''},21610:e=>{e.exports=''},74034:e=>{e.exports=''},28289:e=>{ +e.exports=''},76294:e=>{e.exports=''},62346:e=>{e.exports=''},36257:e=>{ +e.exports=''},17717:e=>{e.exports=''},37402:e=>{e.exports=''},50377:e=>{e.exports=''},60498:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/restricted-toolset.e7ec0040c08ca2374480.js b/charting_library/bundles/restricted-toolset.e7ec0040c08ca2374480.js deleted file mode 100644 index 8aed38a1..00000000 --- a/charting_library/bundles/restricted-toolset.e7ec0040c08ca2374480.js +++ /dev/null @@ -1,31 +0,0 @@ -(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[5516,3718],{59142:function(e,t){var a,n,i;n=[t],void 0===(i="function"==typeof(a=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY", -black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},26390:e=>{e.exports={switcher:"switcher-GT7Z98Io","disable-cursor-pointer":"disable-cursor-pointer-GT7Z98Io",input:"input-GT7Z98Io","thumb-wrapper":"thumb-wrapper-GT7Z98Io","size-small":"size-small-GT7Z98Io","size-large":"size-large-GT7Z98Io","intent-default":"intent-default-GT7Z98Io","disable-active-state-styles":"disable-active-state-styles-GT7Z98Io","intent-select":"intent-select-GT7Z98Io",track:"track-GT7Z98Io",thumb:"thumb-GT7Z98Io"}},50789:e=>{e.exports={summary:"summary-hk3Mmxts",hovered:"hovered-hk3Mmxts",caret:"caret-hk3Mmxts"}},28857:e=>{e.exports={wrapper:"wrapper-OGmb0GMo",labelRow:"labelRow-OGmb0GMo",label:"label-OGmb0GMo",labelHint:"labelHint-OGmb0GMo",labelOn:"labelOn-OGmb0GMo"}},31405:e=>{e.exports={wrapper:"wrapper-IbP2mmCe",hovered:"hovered-IbP2mmCe",labelRow:"labelRow-IbP2mmCe",label:"label-IbP2mmCe",labelHint:"labelHint-IbP2mmCe",labelOn:"labelOn-IbP2mmCe"}},39592:e=>{e.exports={button:"button-Rsu8YfBx",withText:"withText-Rsu8YfBx",withoutText:"withoutText-Rsu8YfBx"}},64547:e=>{e.exports={button:"button-SS83RYhy"}},69698:e=>{e.exports={form:"form-obOlo718",interacting:"interacting-obOlo718",input:"input-obOlo718",menu:"menu-obOlo718",add:"add-obOlo718",hovered:"hovered-obOlo718",hover:"hover-obOlo718",wrap:"wrap-obOlo718"}},59174:e=>{e.exports={spinnerWrap:"spinnerWrap-OjdCXkZp"}},78966:e=>{e.exports={title:"title-mAu74Mtg"}},936:e=>{e.exports={button:"button-2Vex9IkU",first:"first-2Vex9IkU",last:"last-2Vex9IkU"}},82832:e=>{e.exports={wrap:"wrap-H6XRnLaC"}},91887:e=>{e.exports={hidden:"hidden-vHZuIWsw"}},75492:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-AFYo6gMo",withIcon:"withIcon-AFYo6gMo",shortcut:"shortcut-AFYo6gMo",loading:"loading-AFYo6gMo",icon:"icon-AFYo6gMo"}},19450:e=>{e.exports={button:"button-OSzyNVEZ",menu:"menu-OSzyNVEZ"}},33191:e=>{e.exports={customTradingViewStyleButton:"customTradingViewStyleButton-fjLcMxZj",withoutIcon:"withoutIcon-fjLcMxZj"}},64142:e=>{e.exports={dropdown:"dropdown-E3UQYoRD",label:"label-E3UQYoRD",smallWidthTitle:"smallWidthTitle-E3UQYoRD",smallWidthMenuItem:"smallWidthMenuItem-E3UQYoRD",smallWidthWrapper:"smallWidthWrapper-E3UQYoRD"}},87906:e=>{e.exports={value:"value-e0RYyFXU",selected:"selected-e0RYyFXU"}},32062:e=>{e.exports={smallWidthMenuItem:"smallWidthMenuItem-xvK6HzAF"}},6500:e=>{e.exports={button:"button-cXbh8Gcw",first:"first-cXbh8Gcw",last:"last-cXbh8Gcw",newStyles:"newStyles-cXbh8Gcw",menu:"menu-cXbh8Gcw",dropdown:"dropdown-cXbh8Gcw",menuContent:"menuContent-cXbh8Gcw",section:"section-cXbh8Gcw",smallTabletSectionTitle:"smallTabletSectionTitle-cXbh8Gcw",addCustomInterval:"addCustomInterval-cXbh8Gcw",hovered:"hovered-cXbh8Gcw"}},76521:e=>{e.exports={button:"button-CiwmljCL"}},4050:e=>{e.exports={button:"button-mEQw2hrh",isDisabled:"isDisabled-mEQw2hrh",text:"text-mEQw2hrh"}},96141:e=>{e.exports={opened:"opened-SUlSleuH", -hover:"hover-SUlSleuH",autoSaveWrapper:"autoSaveWrapper-SUlSleuH",sharingWrapper:"sharingWrapper-SUlSleuH",button:"button-SUlSleuH",buttonSmallPadding:"buttonSmallPadding-SUlSleuH",hintPlaceHolder:"hintPlaceHolder-SUlSleuH",smallHintPlaceHolder:"smallHintPlaceHolder-SUlSleuH",popupItemRowTabletSmall:"popupItemRowTabletSmall-SUlSleuH",shortcut:"shortcut-SUlSleuH"}},72597:e=>{e.exports={button:"button-TTaQ4aBF",text:"text-TTaQ4aBF",logo:"logo-TTaQ4aBF"}},67397:e=>{e.exports={button:"button-IQnsk0hp",largeLeftPadding:"largeLeftPadding-IQnsk0hp",text:"text-IQnsk0hp",uppercase:"uppercase-IQnsk0hp"}},75668:e=>{e.exports={description:"description-Q7biiIOG"}},52157:e=>{e.exports={item:"item-UfrwNtjY",round:"round-UfrwNtjY"}},41939:e=>{e.exports={wrap:"wrap-hoa11YwL",titleWrap:"titleWrap-hoa11YwL",indicators:"indicators-hoa11YwL",title:"title-hoa11YwL",icon:"icon-hoa11YwL",text:"text-hoa11YwL",titleTabletSmall:"titleTabletSmall-hoa11YwL",labelRow:"labelRow-hoa11YwL",label:"label-hoa11YwL"}},14621:e=>{e.exports={labelRow:"labelRow-qyt9pxdb",toolbox:"toolbox-qyt9pxdb",description:"description-qyt9pxdb",descriptionTabletSmall:"descriptionTabletSmall-qyt9pxdb",item:"item-qyt9pxdb",titleItem:"titleItem-qyt9pxdb",titleItemTabletSmall:"titleItemTabletSmall-qyt9pxdb",itemTabletSmall:"itemTabletSmall-qyt9pxdb",itemLabelTabletSmall:"itemLabelTabletSmall-qyt9pxdb",wrap:"wrap-qyt9pxdb",hovered:"hovered-qyt9pxdb"}},89227:e=>{e.exports={menu:"menu-Pi7orIC5",menuSmallTablet:"menuSmallTablet-Pi7orIC5",menuItemHeaderTabletSmall:"menuItemHeaderTabletSmall-Pi7orIC5",menuItemHeader:"menuItemHeader-Pi7orIC5"}},73887:e=>{e.exports={wrap:"wrap-mbKoosX4",full:"full-mbKoosX4",first:"first-mbKoosX4",last:"last-mbKoosX4",medium:"medium-mbKoosX4",buttonWithFavorites:"buttonWithFavorites-mbKoosX4"}},82559:e=>{e.exports={icon:"icon-0KfEd2LW"}},4039:e=>{e.exports={buttonUndo:"buttonUndo-6VeYguKu",buttonRedo:"buttonRedo-6VeYguKu"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},72142:e=>{e.exports={footer:"footer-C0oTZgbU"}},49473:e=>{e.exports={dottedCloud:"dottedCloud-NezC5dyJ",check:"check-NezC5dyJ",spinningCloud:"spinningCloud-NezC5dyJ",arrow:"arrow-NezC5dyJ",arrowGap:"arrowGap-NezC5dyJ",container:"container-NezC5dyJ",unsaved:"unsaved-NezC5dyJ",hovered:"hovered-NezC5dyJ",saving:"saving-NezC5dyJ",saved:"saved-NezC5dyJ"}},16842:e=>{e.exports={favorite:"favorite-JVQQsDQk",disabled:"disabled-JVQQsDQk",active:"active-JVQQsDQk",checked:"checked-JVQQsDQk"}},63095:e=>{e.exports={item:"item-UZNJ2Dq5",label:"label-UZNJ2Dq5",labelRow:"labelRow-UZNJ2Dq5",toolbox:"toolbox-UZNJ2Dq5"}},524:e=>{e.exports={separator:"separator-GzmeVcFo",small:"small-GzmeVcFo",normal:"normal-GzmeVcFo",large:"large-GzmeVcFo"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},76974:(e,t,a)=>{"use strict";a.d(t,{useIsMounted:()=>i});var n=a(59496);const i=()=>{ -const e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},26996:(e,t,a)=>{"use strict";a.d(t,{Loader:()=>c});var n,i=a(59496),s=a(97754),o=a(74991),l=a(62092),r=a.n(l);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(n||(n={}));class c extends i.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:n.Initial}}render(){const{className:e,color:t="black",size:a="medium",staticPosition:n}=this.props,o=s(r().item,r()[t],r()[a]);return i.createElement("span",{className:s(r().loader,n&&r().static,this._getStateClass(),e)},i.createElement("span",{className:o}),i.createElement("span",{className:o}),i.createElement("span",{className:o}))}componentDidMount(){this.setState({state:n.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:n.Active})},2*o.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case n.Initial:return r()["loader-initial"];case n.Appear:return r()["loader-appear"];default:return""}}}},26005:(e,t,a)=>{"use strict";a.d(t,{CollapsibleSection:()=>r});var n=a(59496),i=a(97754),s=a.n(i),o=a(10381),l=a(50789);function r(e){return n.createElement(n.Fragment,null,n.createElement("div",{className:s()(e.className,l.summary),onClick:function(){e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,n.createElement(o.ToolWidgetCaret,{className:l.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},84096:(e,t,a)=>{"use strict";a.d(t,{DEFAULT_MENU_ITEM_SWITCHER_THEME:()=>m,MenuItemSwitcher:()=>v});var n=a(59496),i=a(97754),s=a.n(i);const o=(0,n.createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0});var l=a(26390),r=a.n(l);function c(e){const t=(0,n.useContext)(o),{className:a,intent:s="default",size:l="small",enablePointerOnHover:c=t.enablePointerOnHover,enableActiveStateStyles:h=t.enableActiveStateStyles}=e;return i(a,r().switcher,r()["size-"+l],r()["intent-"+s],!c&&r()["disable-cursor-pointer"],!h&&r()["disable-active-state-styles"])}function h(e){const{reference:t,size:a,intent:i,...s}=e;return n.createElement("div",{className:c(e)},n.createElement("input",{...s,type:"checkbox",className:r().input,ref:t}),n.createElement("div",{className:r()["thumb-wrapper"]},n.createElement("div",{className:r().track}),n.createElement("div",{className:r().thumb})))}var d=a(90186),u=a(31405);const m=u;function v(e){const{className:t,checked:a,id:i,label:o,labelDescription:l,value:r,preventLabelHighlight:c,reference:m,switchReference:v,theme:p=u,disabled:g}=e,b=s()(p.label,a&&!c&&p.labelOn),S=s()(t,p.wrapper,a&&p.wrapperWithOnLabel);return n.createElement("label",{className:S,htmlFor:i,ref:m},n.createElement("div",{className:p.labelRow},n.createElement("div",{className:b},o),l&&n.createElement("div",{className:p.labelHint},l)),n.createElement(h,{disabled:g,className:p.switch,reference:v,checked:a,onChange:function(t){const a=t.target.checked -;void 0!==e.onChange&&e.onChange(a)},value:r,tabIndex:-1,id:i,...(0,d.filterDataProps)(e)}))}},14593:(e,t,a)=>{"use strict";a.d(t,{ToolWidgetIconButton:()=>l});var n=a(59496),i=a(97754),s=a(4825),o=a(64547);const l=n.forwardRef((e,t)=>{const{className:a,id:l,...r}=e;return n.createElement(s.ToolWidgetButton,{"data-name":l,...r,ref:t,className:i(a,o.button)})})},53374:(e,t,a)=>{"use strict";a.d(t,{INTERVALS:()=>i});var n=a(28353);const i=[{name:"",label:(0,n.t)("minutes",{context:"interval"})},{name:"H",label:(0,n.t)("hours",{context:"interval"})},{name:"D",label:(0,n.t)("days",{context:"interval"})},{name:"W",label:(0,n.t)("weeks",{context:"interval"})},{name:"M",label:(0,n.t)("months",{context:"interval"})}]},49466:(e,t,a)=>{"use strict";a.d(t,{ToolWidgetMenuSummary:()=>o});var n=a(59496),i=a(97754),s=a(78966);function o(e){return n.createElement("div",{className:i(e.className,s.title)},e.children)}},79389:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getRestrictedToolSet:()=>sn});var n=a(67337),i=a(59496),s=a(19036),o=a(28353),l=a(82992),r=a(16654),c=a(37466),h=a(36189),d=a(9745),u=a(16396),m=a(35390),v=a(97754),p=a.n(v),g=a(82832);class b extends i.PureComponent{render(){const{children:e,className:t,...a}=this.props;return i.createElement("div",{className:v(t,g.wrap),...a},e)}}var S=a(4825),C=a(90186),_=a(936);class w extends i.PureComponent{constructor(){super(...arguments),this._handleClick=()=>{const{onClick:e,onClickArg:t}=this.props;e&&e(t)}}render(){const{isFirst:e,isLast:t,hint:a,text:n,icon:s,isActive:o,isDisabled:l,className:r}=this.props,c=(0,C.filterDataProps)(this.props);return i.createElement(S.ToolWidgetButton,{...c,icon:s,text:n,title:a,isDisabled:l,isActive:o,isGrouped:!0,onClick:this._handleClick,className:v(r,_.button,{[_.first]:e,[_.last]:t})})}}var y=a(51613),f=a(90692),k=a(24437),M=a(81332),E=a(55402),T=a(15943),x=a(19450);const I={0:(0,o.t)("Bars"),1:(0,o.t)("Candles"),9:(0,o.t)("Hollow candles"),13:(0,o.t)("Columns"),8:(0,o.t)("Heikin Ashi"),2:(0,o.t)("Line"),3:(0,o.t)("Area"),10:(0,o.t)("Baseline"),12:(0,o.t)("High-low")};const A={barsStyle:(0,o.t)("Bar's style"),labels:I},R=(0,E.registryContextType)();function N(e){var t;return!(null===(t=l.linking.supportedChartStyles.value())||void 0===t?void 0:t.includes(e))}class F extends i.PureComponent{constructor(e,t){super(e,t),this._handleChangeStyle=e=>{const{favorites:t,lastSelectedNotFavorite:a,activeStyle:n}=this.state;this.setState({activeStyle:e,lastSelectedNotFavorite:t.includes(n)?a:n})},this._handleSelectStyle=e=>{const{chartWidgetCollection:t}=this.context;e!==t.activeChartStyle.value()&&t.setChartStyleToWidget(e)},this._handleClickFavorite=e=>{this._isStyleFavorited(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},this._boundForceUpdate=()=>{this.forceUpdate()},this._handleQuickClick=e=>{this._handleSelectStyle(e),this._trackClick()},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired,favoriteChartStylesService:s.any.isRequired}) -;const{chartWidgetCollection:a,favoriteChartStylesService:n}=t,i=a.activeChartStyle.value(),o=n.get(),l=(0,T.japaneseChartStyles)();this.state={activeStyle:i,favorites:o,styles:(0,T.commonChartStyles)(),japaneseStyles:l}}componentDidMount(){const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context;e.activeChartStyle.subscribe(this._handleChangeStyle),t.getOnChange().subscribe(this,this._handleChangeSettings),l.linking.supportedChartStyles.subscribe(this._boundForceUpdate)}componentWillUnmount(){const{chartWidgetCollection:e,favoriteChartStylesService:t}=this.context;e.activeChartStyle.unsubscribe(this._handleChangeStyle),t.getOnChange().unsubscribe(this,this._handleChangeSettings),l.linking.supportedChartStyles.unsubscribe(this._boundForceUpdate)}render(){const{isShownQuicks:e,displayMode:t="full",id:a}=this.props,{activeStyle:n,favorites:s,styles:o,japaneseStyles:l,lastSelectedNotFavorite:h}=this.state,u="small"!==t&&e&&0!==s.length,v=[...s];v.includes(n)?void 0!==h&&v.push(h):v.push(n);const p=u&&v.length>1;return i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>{const t=o.map(t=>this._renderPopupMenuItem(t,t===n,e)),s=l.map(t=>this._renderPopupMenuItem(t,t===n,e));return i.createElement(b,{id:a},p&&v.map((e,t)=>i.createElement(w,{className:x.button,icon:c.SERIES_ICONS[e],isActive:u&&n===e,isDisabled:N(e),key:t,hint:A.labels[e],isFirst:0===t,isLast:t===v.length-1,onClick:u?this._handleQuickClick:void 0,onClickArg:e,"data-value":r.STYLE_SHORT_NAMES[e]})),i.createElement(m.ToolWidgetMenu,{arrow:Boolean(p),content:p?void 0:i.createElement(b,null,i.createElement(d.Icon,{icon:c.SERIES_ICONS[n]})),title:p?A.barsStyle:A.labels[n],className:x.menu,isDrawer:e,onClick:this._trackClick},t,!!s.length&&i.createElement(y.PopupMenuSeparator,null),s))})}_renderPopupMenuItem(e,t,a){const{isFavoritingAllowed:n}=this.props,s=this._isStyleFavorited(e);return i.createElement(u.PopupMenuItem,{key:e,theme:a?M.multilineLabelWithIconAndToolboxTheme:void 0,icon:c.SERIES_ICONS[e],isActive:t,isDisabled:N(e),label:A.labels[e]||"",onClick:this._handleSelectStyle,onClickArg:e,showToolboxOnHover:!s,toolbox:n&&i.createElement(h.FavoriteButton,{isActive:t,isFilled:s,onClick:()=>this._handleClickFavorite(e)}),"data-value":r.STYLE_SHORT_NAMES[e]})}_handleChangeSettings(e){this.setState({lastSelectedNotFavorite:void 0,favorites:e})}_isStyleFavorited(e){return-1!==this.state.favorites.indexOf(e)}_handleAddFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set([...t,e])}_handleRemoveFavorite(e){const{favorites:t}=this.state,{favoriteChartStylesService:a}=this.context;a.set(t.filter(t=>t!==e))}_trackClick(){0}}F.contextType=R;var H=a(39592);const z=["medium","small"];function P(e){const{text:t,className:a,displayMode:n,collapseWhen:s=z,...o}=e,l=!s.includes(n);return i.createElement(S.ToolWidgetButton,{...o,text:l?t:void 0,className:v(a,H.button,l?H.withText:H.withoutText)})}var D=a(51768),L=a(37669),W=a(2323);const O={compare:(0,o.t)("Compare"),compareOrAddSymbol:(0, -o.t)("Compare or Add Symbol")},U=(0,E.registryContextType)();class B extends i.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({isActive:e})},this._handleClick=()=>{var e;(0,D.trackEvent)("GUI","Chart Header Toolbar","compare"),null===(e=this._compareDialogRenderer)||void 0===e||e.show()},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired}),this.state={isActive:!1},this._compareDialogRenderer=this.context.chartWidgetCollection.getCompareDialogRenderer()}componentDidMount(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().subscribe(this._updateState)}componentWillUnmount(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().unsubscribe(this._updateState)}render(){const{isActive:e}=this.state;return i.createElement(P,{...this.props,icon:W,isOpened:e,onClick:this._handleClick,text:L.hasNewHeaderToolbarStyles?void 0:O.compare,title:O.compareOrAddSymbol,collapseWhen:L.hasNewHeaderToolbarStyles?["full","medium","small"]:void 0})}}B.contextType=U;var V=a(14593),G=a(61814),Z=a(68335),Y=a(90711),Q=a(15392);const q={hint:(0,o.t)("Fullscreen mode")},K=(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Shift,!1),"F"],text:"{0} + {1}"}),j=(0,E.registryContextType)();class J extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context;e.startFullscreen()},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(V.ToolWidgetIconButton,{id:t,icon:L.hasNewHeaderToolbarStyles?Q:Y,onClick:this._handleClick,title:q.hint,className:v(e),"data-tooltip-hotkey":K})}}J.contextType=j;var X=a(88537);const $=(0,a(98125).getLogger)("FavoritesInfo");function ee(e,t){if(0===e.length)return Promise.resolve([]);$.logNormal("Requesting favorites info");const a=[],n=new Map,i=new Map,s=new Map;return e.forEach(e=>{switch(e.type){case"java":s.set(e.studyId,e);break;case"pine":isPublishedPineId(e.pineId)?n.set(e.pineId,e):i.set(e.pineId,e);break;default:(0,X.assert)(!1,"unknown favorite type "+JSON.stringify(e))}}),0!==s.size&&a.push(t.findAllJavaStudies().then(e=>{const t=new Map;for(const a of e)!a.is_hidden_study&&s.has(a.id)&&t.set(a.id,{name:a.description,localizedName:a.description_localized,studyMarketShittyObject:a});return t}).then(e=>{const t=function(e,t){const a={items:[],notFoundItems:[]};return e.forEach((e,n)=>{const i=t.get(n);void 0!==i?a.items.push({item:e,info:i}):a.notFoundItems.push(e)}),a}(s,e);if(0!==t.notFoundItems.length){const e=t.notFoundItems.map(e=>e.studyId);$.logWarn("Cannot find java scripts: "+JSON.stringify(e))}return t.items})),Promise.all(a).then(e=>($.logNormal("Requesting favorites info finished"),e.reduce((e,t)=>e.concat(t),[])))}var te=a(14291),ae=a(85733),ne=a(26996),ie=a(59174);function se(e){const{className:t}=e;return i.createElement("div",{className:p()(ie.spinnerWrap,t)},i.createElement(ne.Loader,null))}var oe=a(49466),le=a(76422),re=a(60373),ce=a(64142);const he={text:(0, -o.t)("Indicators"),hint:(0,o.t)("Indicators & Strategies"),favorites:(0,o.t)("Favorites")},de=(0,G.hotKeySerialize)({keys:["/"],text:"{0}"}),ue=(0,E.registryContextType)();class me extends i.PureComponent{constructor(e,t){super(e,t),this._promise=null,this._menu=i.createRef(),this._favoriteFundamentalsModel=null,this._setActiveState=e=>{this.setState({isActive:e})},this._handleClick=()=>{const{studyMarket:e}=this.props;this.setState({isActive:!0},()=>{e.visible().value()?e.hide():e.show()}),this._trackClick()},this._handleSelectIndicator=e=>{e=(0,X.ensureDefined)(e),this._trackFavoriteAction("Favorite indicator from toolbar");const{chartWidgetCollection:t}=this.context;if("java"===e.type){const t=(0,te.tryFindStudyLineToolNameByStudyId)(e.studyId);if(null!==t)return void ae.tool.setValue(t)}t.activeChartWidget.value().insertStudy(e)},this._handleFavoriteIndicatorsChange=()=>{const{favoriteScriptsModel:e}=this.context,t=[...(0,X.ensureDefined)(e).favorites()];this.setState({favorites:t}),this._clearCache()},this._handleFavoriteFundamentalsChange=()=>{var e;const t=new Set((null===(e=this._favoriteFundamentalsModel)||void 0===e?void 0:e.favorites())||[]);this.setState({favoriteFundamentals:t}),this._clearCache()},this._handleMouseEnter=()=>{this._prefetchFavorites()},this._handleWrapClick=()=>{this._prefetchFavorites()},this._handleChangeActiveWidget=()=>{this._clearCache()},this._clearCache=()=>{this._promise=null,this.setState({infos:[]})},this._handleScriptRenamed=e=>{const{favoriteScriptsModel:t}=this.context;void 0!==t&&t.isFav(e.scriptIdPart)&&this._clearCache()},this._handleFavoriteMenuClick=()=>{this._trackClick(),this._trackFavoriteAction("Select favorite indicators dropdown")},(0,E.validateRegistry)(t,{favoriteScriptsModel:s.any,chartWidgetCollection:s.any.isRequired});const{favoriteScriptsModel:a}=t,n=void 0!==a?a.favorites():[];this.state={isActive:!1,isLoading:!1,favorites:n,favoriteFundamentals:void 0,infos:[]}}componentDidMount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().subscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().subscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.subscribe(this._handleChangeActiveWidget)),le.on("TVScriptRenamed",this._handleScriptRenamed,null)}componentWillUnmount(){const{studyMarket:e}=this.props,{favoriteScriptsModel:t,chartWidgetCollection:a}=this.context;e.visible().unsubscribe(this._setActiveState),void 0!==t&&(t.favoritesChanged().unsubscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.unsubscribe(this._handleChangeActiveWidget)),le.unsubscribe("TVScriptRenamed",this._handleScriptRenamed,null),this._promise=null}render(){const{isActive:e,favorites:t,favoriteFundamentals:a,isLoading:n}=this.state,{className:s,displayMode:l,id:r}=this.props,{chartWidgetCollection:c}=this.context;return i.createElement(i.Fragment,null,i.createElement(b,{id:r,onMouseEnter:this._handleMouseEnter,onClick:this._handleWrapClick},i.createElement(P,{displayMode:l,className:s, -icon:re,isOpened:e,onClick:this._handleClick,text:he.text,title:he.hint,"data-role":"button","data-name":"open-indicators-dialog","data-tooltip-hotkey":de}),Boolean(t.length>0||(null==a?void 0:a.size))&&i.createElement(f.MatchMedia,{rule:"screen and (max-width: 428px)"},e=>i.createElement(m.ToolWidgetMenu,{key:c.activeChartWidget.value().id(),arrow:!0,closeOnClickOutside:!0,isDrawer:e,drawerPosition:"Bottom",title:he.favorites,ref:this._menu,onClick:this._handleFavoriteMenuClick,"data-name":"show-favorite-indicators"},i.createElement("div",{className:p()(ce.dropdown,e&&ce.smallWidthWrapper)},i.createElement(oe.ToolWidgetMenuSummary,{className:e&&ce.smallWidthTitle},(0,o.t)("Favorite Indicators")),n&&i.createElement(se,null),!n&&i.createElement(i.Fragment,null,this.state.infos.length>0?this.state.infos.map(t=>i.createElement(u.PopupMenuItem,{className:p()(e&&ce.smallWidthMenuItem),theme:e?M.multilineLabelWithIconAndToolboxTheme:void 0,key:"java"===t.item.type?t.item.studyId:t.item.pineId,onClick:this._handleSelectIndicator,onClickArg:t.item,label:i.createElement("span",{className:p()(!e&&ce.label,e&&ce.smallWidthLabel,"apply-overflow-tooltip")},ve(t))})):null!==this._promise&&i.createElement(u.PopupMenuItem,{isDisabled:!0,label:(0,o.t)("You have no Favorites Indicators yet")})))))))}_prefetchFavorites(){const{chartWidgetCollection:e}=this.context;if(null!==this._promise||!window.is_authenticated)return;const t=e.activeChartWidget.value();if(!t.hasModel())return;const a=t.model().model().studyMetaInfoRepository();this.setState({isLoading:!0});const n=this._promise=Promise.all([ee(this.state.favorites,a),void 0]).then(e=>{if(n!==this._promise)return;const[t,a]=e;let i=[...t];if(a){const e=a.filter(e=>{var t;return null===(t=this.state.favoriteFundamentals)||void 0===t?void 0:t.has(e.scriptIdPart)}).map(this._mapFundamentalToFavoriteItemInfo);i.push(...e)}i=[...i].sort((e,t)=>ve(e).localeCompare(ve(t))),this.setState({infos:i,isLoading:!1},()=>{this._menu.current&&this._menu.current.update()})})}_trackClick(){0}_trackFavoriteAction(e){(0,D.trackEvent)("GUI","Chart Header Toolbar",e)}_mapFundamentalToFavoriteItemInfo(e){return{item:{type:"pine",pineId:e.scriptIdPart},info:{name:e.scriptName,localizedName:getLocalizedFundamentalsName(e),studyMarketShittyObject:void 0}}}}function ve(e){return e.info.localizedName||(0,o.t)(e.info.name,{context:"study"})}me.contextType=ue;var pe=a(9315),ge=a(29823),be=a(87906);function Se(e){return i.createElement("div",{className:v(be.value,{[be.selected]:e.isSelected})},e.value,e.metric)}var Ce=a(50628),_e=a(10381),we=a(53374),ye=a(69698);class fe extends i.PureComponent{constructor(e){super(e),this._timeMenu=null,this._setMenuRef=e=>{this._timeMenu=e},this._handleChangeInput=e=>{const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&this.setState({inputValue:t})},this._handleSelectTime=e=>{this.setState({selectedIntervalSuffix:e}),this._closeMenu()},this._handleClickAdd=()=>{const{inputValue:e,selectedIntervalSuffix:t}=this.state;this.props.onAdd(e,t)},this._toggleMenu=()=>{ -this.state.isOpenedMenu?this._closeMenu():this._openMenu()},this._closeMenu=()=>{this.props.onCloseMenu(),this.setState({isOpenedMenu:!1})},this._openMenu=()=>{this.props.onOpenMenu(),this.setState({isOpenedMenu:!0})},this._getMenuPosition=()=>{const e=(0,X.ensureNotNull)(this._timeMenu).getBoundingClientRect();return{overrideWidth:e.width,x:e.left,y:e.bottom+1}},this.state={inputValue:"1",isOpenedMenu:!1,selectedIntervalSuffix:we.INTERVALS[0].name}}render(){const{inputValue:e,isOpenedMenu:t,menuWidth:a,selectedIntervalSuffix:n}=this.state;return i.createElement("div",{className:v(ye.form,{[ye.interacting]:t})},i.createElement("input",{className:ye.input,maxLength:7,onChange:this._handleChangeInput,value:e}),i.createElement("div",{className:ye.menu,onClick:this._toggleMenu,ref:this._setMenuRef},we.INTERVALS.find(e=>e.name===n).label,i.createElement(_e.ToolWidgetCaret,{dropped:t})),i.createElement("div",{className:ye.add,onClick:this._handleClickAdd},(0,o.t)("Add")),i.createElement(Ce.PopupMenu,{doNotCloseOn:this,isOpened:t,minWidth:a,onClose:this._closeMenu,position:this._getMenuPosition},we.INTERVALS.map(e=>i.createElement(u.PopupMenuItem,{dontClosePopup:!0,key:e.name,label:e.label,onClick:this._handleSelectTime,onClickArg:e.name}))))}}var ke=a(96040),Me=a(70412),Ee=a(32563),Te=a(32062);function xe(e){const{interval:t,hint:a,isActive:n,isDisabled:s,isFavorite:o,isSignaling:l,onClick:r,onClickRemove:c,onClickFavorite:d,isSmallTablet:m}=e,v=(0,C.filterDataProps)(e),[g,b]=(0,Me.useHover)(),S=i.useCallback(()=>c(t),[c,t]),_=i.useCallback(()=>d(t),[d,t]),w=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e;l&&m&&(null===(e=w.current)||void 0===e||e.scrollIntoView())},[l,m]),i.createElement("div",{...b,ref:w},i.createElement(u.PopupMenuItem,{...v,className:p()(m&&Te.smallWidthMenuItem),theme:m?M.multilineLabelWithIconAndToolboxTheme:void 0,isActive:n,isDisabled:s,isHovered:l,onClick:r,onClickArg:t,toolbox:function(){const{isRemovable:t,isFavoritingAllowed:a}=e,l=i.createElement(ke.RemoveButton,{key:"remove",isActive:n,hidden:!Ee.touch&&!g,onClick:S}),r=i.createElement(h.FavoriteButton,{key:"favorite",isActive:n,isFilled:o,onClick:_});return[t&&l,!s&&a&&r]}(),showToolboxOnHover:!o,label:a}))}const Ie={[ge.ResolutionKind.Ticks]:(0,o.t)("Ticks",{context:"interval_group_name"}),[ge.ResolutionKind.Seconds]:(0,o.t)("Seconds",{context:"interval_group_name"}),[ge.ResolutionKind.Minutes]:(0,o.t)("Minutes",{context:"interval_group_name"}),[ge.SpecialResolutionKind.Hours]:(0,o.t)("Hours",{context:"interval_group_name"}),[ge.ResolutionKind.Days]:(0,o.t)("Days",{context:"interval_group_name"}),[ge.ResolutionKind.Weeks]:(0,o.t)("Weeks",{context:"interval_group_name"}),[ge.ResolutionKind.Months]:(0,o.t)("Months",{context:"interval_group_name"}),[ge.ResolutionKind.Range]:(0,o.t)("Ranges",{context:"interval_group_name"}),[ge.ResolutionKind.Invalid]:""};function Ae(e,t=!1){return{id:e,name:Ie[e],items:[],mayOmitSeparator:t}}var Re=a(26005),Ne=a(2872),Fe=a.n(Ne),He=a(29197),ze=a(59064),Pe=a(6500);const De={openDialog:(0, -o.t)("Open Interval Dialog"),timeInterval:(0,o.t)("Time Interval")},Le=(0,G.hotKeySerialize)({keys:[","],text:(0,o.t)("Number or {hotKey_0}")}),We=(0,E.registryContextType)(),Oe=new(Fe()),Ue=i.lazy(async()=>({default:(await Promise.all([a.e(4194),a.e(7962),a.e(8986),a.e(8463),a.e(9289),a.e(7345),a.e(2385),a.e(5643),a.e(3016),a.e(4013)]).then(a.bind(a,21317))).ToolWidgetIntervalsAddDialog}));function Be(e){{const t=ge.Interval.parse(e);if(!(0,pe.isSecondsEnabled)()&&t.isSeconds())return!1;if(!(0,pe.isTicksEnabled)()&&t.isTicks())return!1}return!0}class Ve extends i.PureComponent{constructor(e,t){super(e,t),this._menu=i.createRef(),this._renderChildren=(e,t)=>[...this._createMenuItems(e,t),...this._createIntervalForm(t)],this._handleChangeInterval=e=>{const{activeInterval:t,lastNotQuicked:a}=this.state,n=this._getQuicks();this.setState({activeInterval:(0,pe.normalizeIntervalString)(e),lastNotQuicked:void 0===t||n.includes(t)?a:t})},this._bindedForceUpdate=()=>{this.forceUpdate()},this._handleCloseMenu=()=>{this.setState({isOpenedFormMenu:!1})},this._handleOpenMenu=()=>{this.setState({isOpenedFormMenu:!0})},this._handleSelectInterval=e=>{void 0!==e&&e!==l.linking.interval.value()&&this.context.chartWidgetCollection.setResolution(e),e&&(0,D.trackEvent)("GUI","Time Interval",e)},this._handleClickFavorite=e=>{e=(0,X.ensureDefined)(e),this._isIntervalFavorite(e)?this._handleRemoveFavorite(e):this._handleAddFavorite(e)},this._handleAddFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set([...t,e])},this._handleRemoveFavorite=e=>{const{favorites:t}=this.state;this.context.favoriteIntervalsService.set(t.filter(t=>t!==e))},this._handleAddInterval=(e,t)=>{const{intervalService:a}=this.context,n=a.add(e,t);n&&this.setState({lastAddedInterval:n})},this._handleRemoveInterval=e=>{const{intervalService:t}=this.context;e&&(t.remove(e),this._handleRemoveFavorite(e))},this._getHandleSectionStateChange=e=>t=>{const{menuViewState:a}=this.state,{intervalsMenuViewStateService:n}=this.context;n.set({...a,[e]:!t})},this._handleOpenAddIntervalDialog=()=>{this.setState({isAddIntervalDialogOpened:!0})},this._handleCloseAddIntervalDialog=()=>{this.setState({isAddIntervalDialogOpened:!1})},this._handleGlobalClose=()=>{const{isFake:e}=this.props,{isAddIntervalDialogOpened:t}=this.state;e||t||Oe.fire()},this._handeQuickClick=e=>{this._handleSelectInterval(e),this._trackClick()},(0,E.validateRegistry)(t,{chartApiInstance:s.any.isRequired,favoriteIntervalsService:s.any.isRequired,intervalService:s.any.isRequired,intervalsMenuViewStateService:s.any.isRequired});const{chartApiInstance:a,favoriteIntervalsService:o,intervalService:r,intervalsMenuViewStateService:c}=t;this._customIntervals=n.enabled("custom_resolutions");const h=l.linking.interval.value(),d=h&&(0,pe.normalizeIntervalString)(h),u=o.get(),m=r.getCustomIntervals(),v=c.get();this._defaultIntervals=a.defaultResolutions().filter(Be).map(pe.normalizeIntervalString),this.state={isOpenedFormMenu:!1,activeInterval:d,favorites:u,customs:m,menuViewState:v, -isAddIntervalDialogOpened:!1}}componentDidMount(){const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().subscribe(this,this._handleChangeFavorites),a.getOnChange().subscribe(this,this._handleChangeMenuViewState),t.getOnChange().subscribe(this,this._handleChangeCustoms),l.linking.interval.subscribe(this._handleChangeInterval),l.linking.intraday.subscribe(this._bindedForceUpdate),l.linking.seconds.subscribe(this._bindedForceUpdate),l.linking.ticks.subscribe(this._bindedForceUpdate),l.linking.range.subscribe(this._bindedForceUpdate),l.linking.supportedResolutions.subscribe(this._bindedForceUpdate),ze.globalCloseDelegate.subscribe(this,this._handleGlobalClose)}componentWillUnmount(){const{favoriteIntervalsService:e,intervalService:t,intervalsMenuViewStateService:a}=this.context;e.getOnChange().unsubscribe(this,this._handleChangeFavorites),a.getOnChange().unsubscribe(this,this._handleChangeMenuViewState),t.getOnChange().unsubscribe(this,this._handleChangeCustoms),l.linking.interval.unsubscribe(this._handleChangeInterval),l.linking.intraday.unsubscribe(this._bindedForceUpdate),l.linking.seconds.unsubscribe(this._bindedForceUpdate),l.linking.ticks.unsubscribe(this._bindedForceUpdate),l.linking.range.unsubscribe(this._bindedForceUpdate),l.linking.supportedResolutions.unsubscribe(this._bindedForceUpdate),ze.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose)}componentDidUpdate(e,t){this.state.lastAddedInterval&&setTimeout(()=>this.setState({lastAddedInterval:void 0}),400)}render(){const{isShownQuicks:e,id:t}=this.props,{activeInterval:a,customs:n,lastNotQuicked:s,isAddIntervalDialogOpened:o}=this.state,l=this._getQuicks(),r=(0,pe.sortResolutions)([...l]);void 0!==a&&r.includes(a)?void 0!==s&&r.push(s):void 0!==a&&r.push(a);const c=(!(!e||0===l.length)||void 0)&&r.length>1,h={},d=(0,pe.mergeResolutions)(this._defaultIntervals,n);(void 0!==a?d.concat(a):d).filter(pe.isAvailable).forEach(e=>h[e]=!0);const u=void 0!==a?(0,pe.getTranslatedResolutionModel)(a):null;return i.createElement(b,{id:t},c&&r.map((e,t)=>{const n=(0,pe.getTranslatedResolutionModel)(e);return i.createElement(w,{key:t,className:v(Pe.button,{[Pe.first]:0===t,[Pe.last]:t===r.length-1,[Pe.newStyles]:L.hasNewHeaderToolbarStyles}),text:i.createElement(Se,{value:n.mayOmitMultiplier?void 0:n.multiplier,metric:n.shortKind}),hint:n.hint,isActive:a===e,isDisabled:!h[e]&&e!==s,onClick:this._handeQuickClick,onClickArg:e,"data-value":e})}),i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>i.createElement(i.Fragment,null,i.createElement(He.CloseDelegateContext.Provider,{value:Oe},i.createElement(m.ToolWidgetMenu,{arrow:Boolean(c),closeOnClickOutside:!0,content:c||null===u?void 0:i.createElement(b,{className:Pe.menuContent},i.createElement(Se,{value:u.mayOmitMultiplier?void 0:u.multiplier,metric:u.shortKind})),title:c||null===u?De.timeInterval:u.hint,hotKey:c?Le:void 0,className:Pe.menu,ref:this._menu,isDrawer:e,onClick:this._trackClick},i.createElement("div",{className:Pe.dropdown -},this._renderChildren(d,e)))),e&&o&&i.createElement(i.Suspense,{fallback:null},i.createElement(Ue,{onAdd:this._handleAddInterval,onClose:this._handleCloseAddIntervalDialog,onUnmount:this._handleCloseAddIntervalDialog})))))}_createMenuItems(e,t){const a=function(e){const t=Ae(ge.ResolutionKind.Ticks),a=Ae(ge.ResolutionKind.Seconds),n=Ae(ge.ResolutionKind.Minutes),i=Ae(ge.SpecialResolutionKind.Hours),s=Ae(ge.ResolutionKind.Days),o=Ae(ge.ResolutionKind.Range);return e.forEach(e=>{const l=ge.Interval.parse(e);l.isMinuteHours()?i.items.push(e):l.isMinutes()?(0,ge.isHour)(Number(l.multiplier()))?i.items.push(e):n.items.push(e):l.isSeconds()?a.items.push(e):l.isDWM()?s.items.push(e):l.isRange()?o.items.push(e):l.isTicks()&&t.items.push(e)}),[t,a,n,i,s,o].filter(e=>0!==e.items.length)}(e).map((e,a,n)=>this._renderResolutionsGroup(e,1===n.length,t));return function(e){let t=!1;return e.filter((e,a,n)=>{let i=!0;return e.type===y.PopupMenuSeparator&&(0!==a&&a!==n.length-1||(i=!1),t&&(i=!1)),t=e.type===y.PopupMenuSeparator,i})}([].concat(...a))}_createIntervalForm(e){if(this._customIntervals){const t=e?i.createElement("div",{key:"add-dialog",className:Pe.addCustomInterval,onClick:this._handleOpenAddIntervalDialog},(0,o.t)("Add custom interval")+"…"):i.createElement(fe,{key:"add-form",onAdd:this._handleAddInterval,onCloseMenu:this._handleCloseMenu,onOpenMenu:this._handleOpenMenu});return[i.createElement(y.PopupMenuSeparator,{key:"custom-interval-separator"}),t]}return[]}_renderResolutionsGroup(e,t=!1,a){const n=[],s=e.items.map(e=>this._renderPopupMenuItem(e,a));if(t)n.push(...s);else if(a){const t=i.createElement("div",{key:e.id},i.createElement("div",{className:Pe.smallTabletSectionTitle},e.name),s);n.push(t)}else{const{intervalsMenuViewStateService:t}=this.context,{menuViewState:a}=this.state;if(!t.isAllowed(e.id))return[];const o=i.createElement(Re.CollapsibleSection,{key:e.id,className:Pe.section,summary:e.name,open:!a[e.id],onStateChange:this._getHandleSectionStateChange(e.id)},s);n.push(o)}return(!e.mayOmitSeparator||e.items.length>1)&&(n.unshift(i.createElement(y.PopupMenuSeparator,{key:"begin-"+e.name})),n.push(i.createElement(y.PopupMenuSeparator,{key:"end-"+e.name}))),n}_handleChangeFavorites(e){this.setState({lastNotQuicked:void 0,favorites:e})}_handleChangeCustoms(e){this.setState({customs:e})}_handleChangeMenuViewState(e){this.setState({menuViewState:e},()=>{this._menu.current&&this._menu.current.update()})}_renderPopupMenuItem(e,t){const{isFavoritingAllowed:a}=this.props,{activeInterval:n,lastAddedInterval:s}=this.state,o=e===n,l=(0,pe.isAvailable)(e),r=this._isIntervalFavorite(e),c=this._isIntervalDefault(e),h=(0,pe.getTranslatedResolutionModel)(e);return i.createElement(xe,{key:e,isSmallTablet:t,interval:e,hint:h.hint,isSignaling:s===e,isFavoritingAllowed:a,isDisabled:!l,isFavorite:r,isRemovable:!c,isActive:o,onClick:this._handleSelectInterval,onClickRemove:this._handleRemoveInterval,onClickFavorite:this._handleClickFavorite,"data-value":e})}_isIntervalDefault(e){return this._defaultIntervals.includes(e)} -_isIntervalFavorite(e){return this.state.favorites.includes(e)}_getQuicks(e){return this.props.isShownQuicks&&"small"!==this.props.displayMode?void 0===e?this.state.favorites:e:[]}_trackClick(){0}}Ve.contextType=We;var Ge=a(76521),Ze=a(74034);const Ye={hint:(0,o.t)("Open chart in popup")},Qe=(0,E.registryContextType)();class qe extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e,windowMessageService:t,isFundamental:a}=this.context,n=e.activeChartWidget.value();n.withModel(null,()=>{t.post(parent,"openChartInPopup",{symbol:n.model().mainSeries().actualSymbol(),interval:n.model().mainSeries().interval(),fundamental:a})})},(0,E.validateRegistry)(t,{isFundamental:s.any,chartWidgetCollection:s.any.isRequired,windowMessageService:s.any.isRequired})}render(){const{className:e}=this.props;return i.createElement(V.ToolWidgetIconButton,{className:v(e,Ge.button),icon:Ze,onClick:this._handleClick,title:Ye.hint})}}qe.contextType=Qe;var Ke=a(28289);const je={hint:(0,o.t)("Chart settings")},Je=(0,E.registryContextType)();class Xe extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidgetCollection:e}=this.context,t=e.activeChartWidget.value();(0,D.trackEvent)("GUI","Chart Header Toolbar","chart properties"),t.showGeneralChartProperties()},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){return i.createElement(V.ToolWidgetIconButton,{...this.props,icon:Ke,title:je.hint,onClick:this._handleClick})}}Xe.contextType=Je;var $e=a(25760),et=a(59199),tt=a(68587),at=a(49473);const nt="M21.5 21.5h-14a5 5 0 1 1 .42-9.983 7.5 7.5 0 0 1 14.57 2.106 4.002 4.002 0 0 1-.99 7.877z",it=13.08991081237793,st={strokeDashOffset:49.242997817993164,strokeDash:49.866326904296876,strokeGap:it,strokeDashCheck:0},ot={strokeDashOffset:62.956237716674806,strokeGap:0,strokeDash:62.956237716674806,strokeDashCheck:200};class lt extends i.PureComponent{constructor(e){super(e),this.state=st}componentDidMount(){"saved"===this.props.state?this.setState(ot):this._goToNextState(this.props.state)}componentWillUnmount(){this._currentAnimation=void 0}UNSAFE_componentWillReceiveProps(e){this.props.state!==e.state&&this._goToNextState(e.state)}render(){const{strokeDashOffset:e,strokeDash:t,strokeGap:a,strokeDashCheck:n}=this.state,{className:s,size:o,onClick:l,state:r,isHovered:c=!1}=this.props,h=v(at.container,s,c&&at.hovered,{[at.unsaved]:"unsaved"===r,[at.saving]:"saving"===r,[at.saved]:"saved"===r});return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:h,version:"1.1",width:o,height:o,viewBox:"0 0 28 28",onClick:l},i.createElement("g",{fill:"none"},i.createElement("path",{className:at.dottedCloud,stroke:"currentColor",strokeDasharray:"3.5,2.5",d:nt}),i.createElement("path",{className:at.spinningCloud,stroke:"currentColor",strokeDasharray:`${t} ${a}`,strokeDashoffset:e,d:nt}),i.createElement("path",{className:at.arrowGap,d:"M11 20h6v5h-6z"}),i.createElement("g",{className:at.arrow,stroke:"currentColor"},i.createElement("path",{ -strokeLinecap:"square",d:"M14.5 14.5v10"}),i.createElement("path",{d:"M11 17l3.5-3.5L18 17"})),i.createElement("g",{className:at.check,stroke:"currentColor"},i.createElement("path",{strokeDasharray:`${n}% ${200-n}%`,d:"M10 15l2.5 2.5L18 12"}))))}_goToNextState(e){switch(e){case"unsaved":this.setState(st);break;case"saving":"unsaved"!==this.props.state&&this.setState(st),this._currentAnimation=Promise.resolve(this._currentAnimation).then(()=>this._createSpinAnimationWhile(()=>"saving"===this.props.state));break;case"saved":this._currentAnimation=Promise.resolve(this._currentAnimation).then(this._createFillGapAnimation.bind(this)).then(this._createCheckAnimation.bind(this))}}_createSpinAnimationWhile(e){return this._createSpinAnimation().then(()=>e()?this._createSpinAnimationWhile(e):Promise.resolve())}_createSpinAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:t})},onComplete:()=>e(),from:49.242997817993164,to:111.57590644836426,easing:tt.easingFunc.linear,duration:1e3})})}_createCheckAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashCheck:Math.round(t)})},onComplete:()=>e(),from:0,to:200,easing:tt.easingFunc.linear,duration:1e3})})}_createFillGapAnimation(){return new Promise(e=>{(0,et.doAnimate)({onStep:(e,t)=>{void 0!==this._currentAnimation&&this.setState({strokeDashOffset:62.956237716674806-t,strokeGap:t,strokeDash:62.956237716674806-t})},onComplete:()=>e(),from:it,to:0,easing:tt.easingFunc.linear,duration:200})})}}var rt=a(40173),ct=a(84096),ht=a(28857);(0,rt.mergeThemes)(ct.DEFAULT_MENU_ITEM_SWITCHER_THEME,ht);var dt=a(82724),ut=a(16788),mt=a(96141),vt=a(4050);a(31405);const pt=n.enabled("widget"),gt=(0,rt.mergeThemes)(S.DEFAULT_TOOL_WIDGET_BUTTON_THEME,vt),bt=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{shortcut:mt.shortcut}),St={copy:(0,o.t)("Copy"),makeCopy:(0,o.t)("Make a Copy"),newChartLayout:(0,o.t)("New Chart Layout"),loadChartLayout:(0,dt.appendEllipsis)((0,o.t)("Load Chart Layout")),rename:(0,dt.appendEllipsis)((0,o.t)("Rename")),renameChartLayout:(0,o.t)("Rename Chart Layout"),saveAs:(0,dt.appendEllipsis)((0,o.t)("Make a Copy")),saveChartLayout:(0,o.t)("Save"),saveChartLayoutLong:(0,o.t)("Save all charts for all symbols and intervals on your layout"),manageChartLayouts:(0,o.t)("Manage Chart Layouts")},Ct=[],_t=(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"S"],text:"{0} + {1}"});class wt extends i.PureComponent{constructor(e){super(e),this._handleSaveHoverBegin=()=>{this.setState({iconHovered:!0})},this._handleSaveHoverEnd=()=>{this.setState({iconHovered:!1})},this._handleCloneClick=()=>{var e,t;null===(t=(e=this.props).onCloneChart)||void 0===t||t.call(e),this._trackClick()},this._handleSaveClick=()=>{var e,t;null===(t=(e=this.props).onSaveChart)||void 0===t||t.call(e),this._trackClick()},this.state={iconHovered:!1}}render(){ -const{id:e,isReadOnly:t,displayMode:a,isProcessing:n,title:s,chartId:o,wasChanges:l,hideMenu:r,isTabletSmall:c,dataNameSaveMenu:h}=this.props,{iconHovered:u}=this.state,p=!t&&!r;let g="saved";return!l&&s||(g="unsaved"),n&&(g="saving"),i.createElement(b,null,t?i.createElement(b,null,i.createElement(P,{id:e,displayMode:a,icon:i.createElement(d.Icon,{icon:ut}),isDisabled:n,onClick:this._handleCloneClick,text:St.copy,title:St.makeCopy,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,collapseWhen:Ct})):i.createElement(b,null,i.createElement(P,{id:e,className:v(mt.button,p&&mt.buttonSmallPadding),displayMode:a,icon:i.createElement(lt,{size:28,state:g,isHovered:u}),isDisabled:o&&!l||n,onClick:this._handleSaveClick,text:s||St.saveChartLayout,title:St.saveChartLayoutLong,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,theme:gt,collapseWhen:Ct,"data-tooltip-hotkey":pt?"":_t}),p&&i.createElement(m.ToolWidgetMenu,{"data-name":h,className:"js-save-load-menu-open-button",arrow:!0,isDrawer:c,drawerPosition:"Bottom",title:St.manageChartLayouts,onClick:this._trackClick},this._renderMenuItems(Boolean(c)))))}_renderMenuItems(e){const{wasChanges:t,isProcessing:a,chartId:n,onSaveChartFromMenu:s,onRenameChart:l,onSaveAsChart:r,onLoadChart:c,onNewChart:h,isAutoSaveEnabled:d,autoSaveId:m,sharingId:p,onAutoSaveChanged:g,isSharingEnabled:b,onSharingChanged:S}=this.props,C=e?M.multilineLabelWithIconAndToolboxTheme:bt,_=e?void 0:(0,Z.humanReadableHash)(Z.Modifiers.Mod+83),w=e?void 0:(0,o.t)("Dot",{context:"hotkey"}),f=[];return f.push(i.createElement(u.PopupMenuItem,{key:"save",isDisabled:Boolean(a||!t&&n),label:St.saveChartLayout,onClick:s,shortcut:_,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-save"})),void 0!==n&&(e||f.push(i.createElement(y.PopupMenuSeparator,{key:"existing-chart-section-begin"})),f.push(i.createElement(u.PopupMenuItem,{key:"rename",label:St.rename,onClick:l,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-rename"}),i.createElement(u.PopupMenuItem,{key:"save-as",label:St.saveAs,onClick:r,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,"data-name":"save-load-menu-item-clone"}))),f.push(i.createElement(y.PopupMenuSeparator,{key:"platform-section-begin"})),f.push(i.createElement(u.PopupMenuItem,{key:"load-chart",className:"js-save-load-menu-item-load-chart",label:St.loadChartLayout,onClick:c,labelRowClassName:v(e&&mt.popupItemRowTabletSmall),theme:C,shortcut:w,"data-name":"save-load-menu-item-load"})),f}_trackClick(){0}}const yt=(0,E.registryContextType)();class ft extends i.PureComponent{constructor(e,t){super(e,t),this._syncState=e=>{this.setState(e)},this._onChangeHasChanges=e=>{this.state.wasChanges!==e&&this.setState({wasChanges:e})},this._onChangeAutoSaveEnabled=e=>{0},this._onChangeSharingEnabled=e=>{this.setState({isSharingEnabled:e})},this._onChangeTitle=e=>{this.setState({title:e})},this._onChangeId=e=>{this.setState({id:e})},this._onChartAboutToBeSaved=()=>{ -this.setState({isProcessing:!0})},this._onChartSaved=()=>{this.setState({isProcessing:!1})},this._handleAutoSaveEnabled=e=>{0},this._handleSharingEnabled=e=>{0},this._handleClickSave=()=>{this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save click")},this._handleClickSaveFromMenu=()=>{this.context.saveChartService.saveChartOrShowTitleDialog(),this._trackEvent("Save From Menu")},this._handleClickClone=()=>{this.context.saveChartService.cloneChart()},this._handleClickSaveAs=()=>{this.context.saveChartService.saveChartAs(),this._trackEvent("Make a copy")},this._handleClickNew=()=>{this._trackEvent("New chart layout")},this._handleClickLoad=()=>{this.context.loadChartService.showLoadDialog(),this._trackEvent("Load chart layout")},this._handleHotkey=()=>{this.context.loadChartService.showLoadDialog()},this._handleClickRename=()=>{this.context.saveChartService.renameChart(),this._trackEvent("Rename")},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired,chartChangesWatcher:s.any.isRequired,saveChartService:s.any.isRequired,sharingChartService:s.any,loadChartService:s.any.isRequired});const{chartWidgetCollection:a,chartChangesWatcher:n,saveChartService:i,sharingChartService:o}=t;this.state={isAuthenticated:window.is_authenticated,isProcessing:!1,id:a.metaInfo.id.value(),title:a.metaInfo.name.value(),wasChanges:n.hasChanges(),iconHovered:!1}}componentDidMount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:l}=this.context;t?a.on("change",this._syncState):(i.getOnChange().subscribe(this,this._onChangeHasChanges),n.metaInfo.name.subscribe(this._onChangeTitle),n.metaInfo.id.subscribe(this._onChangeId),this._hotkeys=(0,$e.createGroup)({desc:"Save/Load"}),this._hotkeys.add({desc:(0,o.t)("Load Chart Layout"),handler:this._handleHotkey,hotkey:190}),e.chartSaved().subscribe(this,this._onChartSaved),e.chartAboutToBeSaved().subscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.subscribe(this,this._onLoginStateChange))}componentDidUpdate(e,t){this.props.isFake||t!==this.state&&this.props.stateSyncEmitter.emit("change",this.state)}componentWillUnmount(){const{chartSaver:e,isFake:t,stateSyncEmitter:a}=this.props,{chartWidgetCollection:n,chartChangesWatcher:i,saveChartService:s,sharingChartService:o}=this.context;t?a.off("change",this._syncState):(i.getOnChange().unsubscribe(this,this._onChangeHasChanges),n.metaInfo.name.unsubscribe(this._onChangeTitle),n.metaInfo.id.unsubscribe(this._onChangeId),(0,X.ensureDefined)(this._hotkeys).destroy(),e.chartSaved().unsubscribe(this,this._onChartSaved),e.chartAboutToBeSaved().unsubscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.unsubscribe(this,this._onLoginStateChange))}render(){const{isReadOnly:e,displayMode:t,id:a,isFake:n}=this.props,{isProcessing:s,isAuthenticated:o,title:l,id:r,wasChanges:c,isAutoSaveEnabled:h,isSharingEnabled:d}=this.state,u={displayMode:t,isReadOnly:e,isAuthenticated:o,isProcessing:s,wasChanges:c,title:l, -id:a,chartId:null!==r?r:void 0,dataNameSaveMenu:n?void 0:"save-load-menu",onCloneChart:this._handleClickClone,onSaveChart:this._handleClickSave,onSaveChartFromMenu:this._handleClickSaveFromMenu,onRenameChart:this._handleClickRename,onSaveAsChart:this._handleClickSaveAs,onLoadChart:this._handleClickLoad};return i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},e=>i.createElement(wt,{...u,isTabletSmall:e}))}_onLoginStateChange(){this.setState({isAuthenticated:window.is_authenticated})}_trackEvent(e){0}}ft.contextType=yt;var kt=a(20301),Mt=a(95792),Et=a(82029);const Tt=new Mt.DateTimeFormatter({dateTimeSeparator:"_",timeFormat:"%h-%m-%s"}),xt={takeSnapshot:(0,o.t)("Take a snapshot")},It=(0,E.registryContextType)();const At=o.t("Loading...");function Rt(e,t,a){return async function(e,t,a){const n=URL.createObjectURL(new Blob([`${At}`],{type:"text/html"}));try{const i=open(n,t,a);if(!i)throw new Error("cound not open a new tab");const s=await e.catch(()=>{});void 0!==s?i.location.replace(s):i.close()}finally{URL.revokeObjectURL(n)}}(e,t,a)}var Nt=a(65446),Ft=a(58455),Ht=a(91887);function zt(e){const t=v(e.isLoading&&Ht.hidden),a=v(!e.isLoading&&Ht.hidden);return i.createElement("div",null,i.createElement("span",{className:t},e.children),i.createElement("span",{className:a},i.createElement(ne.Loader,null)))}var Pt=a(76974),Dt=a(60498),Lt=a(17191),Wt=a(37402),Ot=a(50377),Ut=a(86149),Bt=a(75492);const Vt=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,Bt);function Gt(e){const{serverSnapshot:t,clientSnapshot:n}=e,[s,l]=(0,i.useState)(!1),[r,c]=(0,i.useState)(!1),[h,d]=(0,i.useState)(!1),m=(0,Pt.useIsMounted)(),p=(0,i.useCallback)(async()=>{var e;const t=n(),a=t.then(e=>new Promise(t=>e.canvas.toBlob(e=>{null!==e&&t(e)})));try{await(0,Nt.writePromiseUsingApi)(a,"image/png"),le.emit("onClientScreenshotCopiedToClipboard")}catch(a){const{canvas:n}=await t;null===(e=window.open())||void 0===e||e.document.write(``)}},[n]),g=(0,i.useCallback)(async()=>{const e=await n(),t=await function(e){return new Promise(t=>{try{e.canvas.toBlob(e=>{if(null===e)throw new Error("Unable to generate blob");t(URL.createObjectURL(e))})}catch(a){t(e.canvas.toDataURL())}})}(e);t&&(0,Ft.downloadFile)(e.name+".png",t)},[n]),b=e=>Rt(e.then(e=>e.imageUrl)),S=(0,i.useCallback)(async(e=!1)=>{const a=t();try{if(e)await b(a);else{const e=a.then(e=>new Blob([e.imageUrl],{type:"text/plain"}));await(0,Nt.writePromiseUsingApi)(e,"text/plain"),le.emit("onServerScreenshotCopiedToClipboard")}return!0}catch(e){return b(a),!0}finally{m.current&&(c(!1),l(!1),(0,ze.globalCloseMenu)())}},[t]),C=(0,i.useCallback)(async()=>{d(!0);const[e,n]=await Promise.all([a.e(4665).then(a.bind(a,2679)),t()]);e.Twitter.shareSnapshotInstantly(n.symbol,n.imageUrl), -m.current&&(d(!1),(0,ze.globalCloseMenu)())},[t]);return i.createElement(i.Fragment,null,i.createElement(u.PopupMenuItem,{"data-name":"save-chart-image",label:(0,o.t)("Save chart image"),icon:Wt,onClick:g,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Mod+Z.Modifiers.Alt+83),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"copy-chart-image",label:(0,o.t)("Copy chart image"),icon:Lt,onClick:p,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Mod+Z.Modifiers.Shift+83),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"copy-link-to-the-chart-image",label:i.createElement(zt,{isLoading:s},(0,o.t)("Copy link to the chart image")),icon:Ot,onClick:()=>{l(!0),S(!1)},dontClosePopup:!0,isDisabled:s,shortcut:(0,Z.humanReadableHash)(Z.Modifiers.Alt+83),className:v(s&&Bt.loading),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"open-image-in-new-tab",label:i.createElement(zt,{isLoading:r},(0,o.t)("Open image in new tab")),icon:Ut,onClick:()=>{c(!0),S(!0)},dontClosePopup:!0,isDisabled:r,className:v(r&&Bt.loading),theme:Vt}),i.createElement(u.PopupMenuItem,{"data-name":"tweet-chart-image",label:i.createElement(zt,{isLoading:h},(0,o.t)("Tweet chart image")),icon:Dt,onClick:C,dontClosePopup:!0,isDisabled:h,className:v(h&&Bt.loading),theme:Vt}))}var Zt=a(84015);function Yt(e){const[t,a]=(0,i.useState)(!1),n=(0,Pt.useIsMounted)(),s=(0,i.useCallback)(async()=>{a(!0),await e.serverSnapshot(),n.current&&a(!1)},[e.serverSnapshot]);return i.createElement(S.ToolWidgetButton,{id:e.id,className:e.className,isDisabled:t,onClick:s,title:e.tooltip,icon:e.icon})}var Qt=a(62346);const qt=(Kt=function(e){return(0,Zt.isOnMobileAppPage)("any")?i.createElement(Yt,{...e,icon:Qt}):i.createElement(m.ToolWidgetMenu,{content:i.createElement(S.ToolWidgetButton,{id:e.id,className:e.className,title:e.tooltip,icon:Qt}),drawerPosition:"Bottom",drawerBreakpoint:k.DialogBreakpoints.TabletSmall,arrow:!1,onClick:function(){}},i.createElement(Gt,{...e}))},(jt=class extends i.PureComponent{constructor(e,t){super(e,t),this._clientSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol();return{canvas:await this.context.chartWidgetCollection.clientSnapshot(),name:`${(0,Et.shortName)(e)}_${Tt.formatLocal(new Date)}`}},this._serverSnapshot=async()=>{const e=this.context.chartWidgetCollection.activeChartWidget.value().model().mainSeries().actualSymbol(),t=await this.context.chartWidgetCollection.takeScreenshot(),a=n.enabled("charting_library_base")&&void 0!==this.context.snapshotUrl?t:(0,kt.convertImageNameToUrl)(t);return{symbol:(0,Et.shortName)(e),imageUrl:a}},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired})}render(){const{className:e,id:t}=this.props;return i.createElement(Kt,{id:t,className:e,tooltip:xt.takeSnapshot,serverSnapshot:this._serverSnapshot,clientSnapshot:this._clientSnapshot})}}).contextType=It,jt);var Kt,jt,Jt=a(38318),Xt=a(39362),$t=a(11181);class ea{async show(e){if(null!==ea._provider){const e=await ea._provider.getSymbol() -;return l.linking.symbol.setValue(e.symbol),e}if(ea._currentShowingInstance)throw new DOMException("SymbolSearchUI is already shown","InvalidStateError");try{ea._currentShowingInstance=this,ea.preload();const t=await ea._implementation;return(0,X.assert)(null!==t),new Promise(a=>{t.showDefaultSearchDialog({...e,onSearchComplete:e=>{a({symbol:e})}})})}finally{ea._currentShowingInstance=null}}static setProvider(e){this._provider=e}static preload(){null===this._provider&&null===this._implementation&&(this._implementation=(0,$t.loadNewSymbolSearch)())}}ea._currentShowingInstance=null,ea._provider=null,ea._implementation=null;var ta=a(67397),aa=a(72597);const na=(0,rt.mergeThemes)(S.DEFAULT_TOOL_WIDGET_BUTTON_THEME,ta);(0,rt.mergeThemes)(na,aa);class ia extends i.PureComponent{constructor(e){super(e),this._openSymbolSearchDialog=async e=>{if((0,Z.modifiersFromEvent)(e)!==Z.Modifiers.Alt)try{(0,D.trackEvent)("GUI","SS","main search"),await(new ea).show({defaultValue:this._isSpread(this.state.symbol)?this.state.symbol:this.state.shortName,showSpreadActions:(0,Jt.canShowSpreadActions)()&&this.props.isActionsVisible,source:"searchBar",footer:Ee.mobiletouch?void 0:i.createElement(Xt.SymbolSearchDialogFooter,null,(0,o.t)("Simply start typing while on the chart to pull up this search box"))})}catch(e){}else navigator.clipboard.writeText(this.state.symbol)},this._isSpread=e=>!1,this._onSymbolChanged=()=>{const e=l.linking.symbol.value();this.setState({symbol:e,shortName:sa()})},this.state={symbol:l.linking.symbol.value(),shortName:sa()}}componentDidMount(){l.linking.symbol.subscribe(this._onSymbolChanged),l.linking.seriesShortSymbol.subscribe(this._onSymbolChanged),ea.preload()}componentWillUnmount(){l.linking.symbol.unsubscribe(this._onSymbolChanged),l.linking.seriesShortSymbol.unsubscribe(this._onSymbolChanged)}render(){const{id:e,className:t}=this.props;return i.createElement(S.ToolWidgetButton,{id:e,className:p()(t,n.enabled("uppercase_instrument_names")&&ta.uppercase,ta.largeLeftPadding),theme:na,icon:void 0,text:this.state.shortName,title:(0,o.t)("Symbol Search"),onClick:this._openSymbolSearchDialog})}async _updateQuotes(e){}}function sa(){return l.linking.seriesShortSymbol.value()||l.linking.symbol.value()||""}var oa=a(52157);class la extends i.PureComponent{constructor(){super(...arguments),this._handleClick=e=>{e.stopPropagation();const{onApply:t,item:a}=this.props;t(a)}}render(){const{className:e,item:t}=this.props;return i.createElement("div",{className:v(e,oa.item,"apply-common-tooltip"),onClick:this._handleClick,title:t.name},i.createElement("div",{className:oa.round},t.name.length>0?t.name[0].toUpperCase():" "))}}var ra=a(23177),ca=a(75668);function ha(e){return i.createElement("div",{className:v(ca.description,e.className)},e.children)}var da=a(14621);const ua=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{labelRow:da.labelRow,toolbox:da.toolbox,item:da.titleItem}),ma=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{labelRow:da.labelRow,toolbox:da.toolbox,item:da.titleItemTabletSmall}),va=(0, -rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{item:da.item}),pa=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,{item:da.itemTabletSmall});function ga(e){const{item:t,onApply:a,onRemove:n,onFavor:s,favorite:o,isFavoritingAllowed:l,isTabletSmall:r}=e,[c,d]=(0,Me.useHover)(),m=t.meta_info,v=m?(0,ra.descriptionString)(m.indicators):void 0,g=r?ma:ua,b=r?pa:va,S=(0,i.useCallback)(()=>a(t),[a,t]),C=(0,i.useCallback)(()=>n(t),[n,t]),_=(0,i.useCallback)(()=>{s&&s(t)},[s,t]);return i.createElement("div",{...d,className:da.wrap,"data-name":t.name,"data-id":t.id,"data-is-default":Boolean(t.is_default)},i.createElement(u.PopupMenuItem,{theme:g,label:t.name,labelRowClassName:p()(r&&da.itemLabelTabletSmall),isHovered:c,showToolboxOnHover:!o&&!c,onClick:S,toolbox:i.createElement(i.Fragment,null,!t.is_default&&i.createElement(ke.RemoveButton,{key:"remove",hidden:!Ee.touch&&!c,onClick:C}),Boolean(s)&&l&&i.createElement(h.FavoriteButton,{key:"favorite",isFilled:Boolean(o),onClick:_}))}),v&&i.createElement(u.PopupMenuItem,{theme:b,label:i.createElement(ha,{className:p()(da.description,r&&da.descriptionTabletSmall)},v),onClick:S,isHovered:c}))}var ba=a(25382),Sa=a(41939);const Ca=(0,rt.mergeThemes)(u.DEFAULT_POPUP_MENU_ITEM_THEME,Sa),_a={text:(0,dt.appendEllipsis)((0,o.t)("Save Indicator template"))};function wa(e){const{onClick:t,isTabletSmall:a}=e;return i.createElement(u.PopupMenuItem,{theme:Ca,className:Sa.wrap,label:i.createElement("div",{className:Sa.titleWrap},i.createElement("div",{className:p()(Sa.title,a&&Sa.titleTabletSmall)},i.createElement(d.Icon,{className:Sa.icon,icon:ba}),i.createElement("div",{className:Sa.text},_a.text))),onClick:t})}var ya=a(36947),fa=a(64706);const ka=i.createContext(null);var Ma=a(89227);function Ea(e){const{templates:t,favorites:a,onTemplateSave:n,onTemplateRemove:s,onTemplateSelect:o,onTemplateFavorite:l,isTabletSmall:r,isLoading:c}=e,h=(0,i.useMemo)(()=>t.filter(e=>e.is_default),[t]),d=(0,i.useMemo)(()=>t.filter(e=>!e.is_default),[t]),u=(0,i.useMemo)(()=>new Set(a.map(e=>e.name)),[a]),m=(0,i.useContext)(ka),v=(0,i.useContext)(fa.MenuContext),g=(0,ya.useForceUpdate)();(0,i.useEffect)(()=>{if(null!==m){const e={};return m.getOnChange().subscribe(e,()=>{g(),v&&v.update()}),()=>m.getOnChange().unsubscribeAll(e)}return()=>{}},[]);const b=e=>i.createElement(ga,{key:e.name,item:e,isFavoritingAllowed:Boolean(l),favorite:u.has(e.name),onApply:o,onFavor:l,onRemove:s,isTabletSmall:r});return i.createElement("div",{className:p()(Ma.menu,r&&Ma.menuSmallTablet)},i.createElement(wa,{onClick:n,isTabletSmall:r}),c&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(se,null)),!c&&(r?i.createElement(Ta,{defaults:h,customs:d,render:b}):i.createElement(xa,{defaults:h,customs:d,render:b,state:m})))}function Ta(e){const{defaults:t,customs:a,render:n}=e;return i.createElement(i.Fragment,null,a.length>0&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeaderTabletSmall},(0, -o.t)("My templates")),a.map(n)),t.length>0&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeaderTabletSmall},(0,o.t)("Default templates")),t.map(n)))}function xa(e){const{defaults:t,customs:a,render:n,state:s}=e;return i.createElement(i.Fragment,null,a.length>0&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeader},(0,o.t)("My templates")),a.map(n)),a.length>0&&t.length>0&&s&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(Re.CollapsibleSection,{summary:(0,o.t)("Default templates"),open:!s.get().defaultsCollapsed,onStateChange:e=>s.set({defaultsCollapsed:!e})},t.map(n))),0===a.length&&t.length>0&&i.createElement(i.Fragment,null,i.createElement(y.PopupMenuSeparator,null),i.createElement(oe.ToolWidgetMenuSummary,{className:Ma.menuItemHeader},(0,o.t)("Default templates")),t.map(n)))}var Ia=a(52714),Aa=a.n(Ia);class Ra{constructor(e,t){var a,i;this._isFavoriteEnabled=n.enabled("items_favoriting"),this.handleFavorTemplate=e=>{if(!this._isFavoriteEnabled)return;const{name:t}=e;this._isTemplateFavorite(t)?this._removeFavoriteTemplate(t):this._addFavoriteTemplate(t)},this.handleDropdownOpen=()=>{this._setState({isLoading:!0}),this._studyTemplates.invalidate(),this._studyTemplates.refreshStudyTemplateList(()=>this._setState({isLoading:!1}))},this.handleApplyTemplate=e=>{this._studyTemplates.applyTemplate(e.name)},this.handleRemoveTemplate=e=>{this._studyTemplates.deleteStudyTemplate(e.name)},this.handleSaveTemplate=()=>{this._studyTemplates.showSaveAsDialog()},this._studyTemplates=e,this._favoriteStudyTemplatesService=t;const s=(null===(a=this._favoriteStudyTemplatesService)||void 0===a?void 0:a.get())||[],o=this._studyTemplates.list();this._state=new(Aa())({isLoading:!1,studyTemplatesList:o,favorites:s}),this._studyTemplates.getOnChange().subscribe(this,this._handleTemplatesChange),this._studyTemplates.refreshStudyTemplateList(),this._isFavoriteEnabled&&(null===(i=this._favoriteStudyTemplatesService)||void 0===i||i.getOnChange().subscribe(this,this._handleFavoritesChange))}destroy(){var e;this._studyTemplates.getOnChange().unsubscribe(this,this._handleTemplatesChange),this._isFavoriteEnabled&&(null===(e=this._favoriteStudyTemplatesService)||void 0===e||e.getOnChange().unsubscribe(this,this._handleFavoritesChange))}state(){return this._state.readonly()}_setState(e){this._state.setValue({...this._state.value(),...e})}_handleTemplatesChange(){this._setState({studyTemplatesList:this._studyTemplates.list()})}_handleFavoritesChange(e){this._isFavoriteEnabled&&this._setState({favorites:e})}_removeFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set(a.filter(t=>t!==e))}_addFavoriteTemplate(e){var t;const{favorites:a}=this._state.value();null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set([...a,e])} -_isTemplateFavorite(e){const{favorites:t}=this._state.value();return t.includes(e)}}var Na=a(36257),Fa=a(73887);const Ha={title:(0,o.t)("Templates"),tooltip:(0,o.t)("Indicator Templates")},za=(0,E.registryContextType)();class Pa extends i.PureComponent{constructor(e,t){super(e,t),this._updateState=e=>{this.setState({...e,isActive:this.state.isActive})},this._handleApplyTemplate=e=>{this._handleClose(),this._model.handleApplyTemplate(e)},this._handleRemoveTemplate=e=>{this._handleClose(),this._model.handleRemoveTemplate(e)},this._handleClose=()=>{this._handleToggleDropdown(!1)},this._handleToggleDropdown=e=>{const{isActive:t}=this.state,a="boolean"==typeof e?e:!t;this.setState({isActive:a})},(0,E.validateRegistry)(t,{favoriteStudyTemplatesService:s.any,studyTemplates:s.any.isRequired,templatesMenuViewStateService:s.any});const{favoriteStudyTemplatesService:a,studyTemplates:n}=t;this._model=new Ra(n,a),this.state={...this._model.state().value(),isActive:!1}}componentDidMount(){this._model.state().subscribe(this._updateState)}componentWillUnmount(){this._model.state().unsubscribe(this._updateState),this._model.destroy()}render(){const{studyTemplatesList:e,favorites:t}=this.state,{isShownQuicks:a,className:n,displayMode:s,id:o}=this.props;return i.createElement(ka.Provider,{value:this.context.templatesMenuViewStateService||null},i.createElement(Da,{id:o,className:n,mode:s,templates:e,favorites:t,onMenuOpen:this._model.handleDropdownOpen,onTemplateFavorite:a?this._model.handleFavorTemplate:void 0,onTemplateSelect:this._handleApplyTemplate,onTemplateRemove:this._handleRemoveTemplate,onTemplateSave:this._model.handleSaveTemplate}))}}function Da(e){const{id:t,className:a,mode:n,favorites:s,templates:o,isMenuOpen:l,onTemplateSelect:r,onTemplateSave:c,onTemplateFavorite:h,onTemplateRemove:d}=e,u=p()(a,Fa.wrap,{[Fa.full]:"full"===n,[Fa.medium]:"medium"===n}),v=o.filter(e=>s.includes(e.name)),g="small"!==n&&h&&v.length>0;return i.createElement(b,{id:t,className:u},i.createElement(f.MatchMedia,{rule:k.DialogBreakpoints.TabletSmall},t=>i.createElement(m.ToolWidgetMenu,{onOpen:e.onMenuOpen,isDrawer:t,drawerPosition:"Bottom",arrow:!1,content:i.createElement(P,{className:p()(g&&Fa.buttonWithFavorites),displayMode:n,isOpened:l,icon:Na,text:L.hasNewHeaderToolbarStyles?void 0:Ha.title,title:Ha.tooltip,forceInteractive:!0,collapseWhen:L.hasNewHeaderToolbarStyles?["full","medium","small"]:void 0}),onClick:S},i.createElement(Ea,{onTemplateSave:c,onTemplateSelect:r,onTemplateRemove:d,onTemplateFavorite:h,templates:o,favorites:v,isTabletSmall:t}))),g&&i.createElement(La,{favorites:v,onTemplateSelect:function(e){r(e),S()}}));function S(){0}}function La(e){return i.createElement(i.Fragment,null,e.favorites.map((t,a,n)=>i.createElement(la,{key:t.name,item:t,onApply:e.onTemplateSelect,className:p()({[Fa.first]:0===a,[Fa.last]:a===n.length-1})})))}Pa.contextType=za;a(94419);var Wa=a(4039),Oa=a(82559),Ua=a(55576),Ba=a(17717),Va=a(76294);const Ga={undoHint:(0,o.t)("Undo {hint}"),redoHint:(0,o.t)("Redo {hint}")},Za={undoHotKey:(0, -G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"Z"],text:"{0} + {1}"}),redoHotKey:(0,G.hotKeySerialize)({keys:[(0,Z.humanReadableModifiers)(Z.Modifiers.Mod,!1),"Y"],text:"{0} + {1}"})},Ya=(0,rt.weakComposeClasses)(Ua,Wa,{buttonUndo:"button",buttonRedo:"button"}),Qa=(0,rt.mergeThemes)(Ua,Oa),qa={...Ua,button:Ya.buttonUndo},Ka={...Ua,button:Ya.buttonRedo},ja=(0,E.registryContextType)();class Ja extends i.PureComponent{constructor(e,t){super(e,t),this._batched=null,this._handleClickUndo=()=>{(0,D.trackEvent)("GUI","Undo");const{chartWidgetCollection:e}=this.context;e.undoHistory.undo()},this._handleClickRedo=()=>{(0,D.trackEvent)("GUI","Redo");const{chartWidgetCollection:e}=this.context;e.undoHistory.redo()},(0,E.validateRegistry)(t,{chartWidgetCollection:s.any.isRequired}),this.state=this._getStateFromUndoHistory()}componentDidMount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().subscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().subscribe(this,this._onChangeStack)}componentWillUnmount(){const{chartWidgetCollection:e}=this.context;e.undoHistory.redoStack().onChange().unsubscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().unsubscribe(this,this._onChangeStack),this._batched=null}render(){const{id:e}=this.props,{isEnabledRedo:t,isEnabledUndo:a,redoStack:n,undoStack:s}=this.state;return i.createElement(b,{id:e},i.createElement(S.ToolWidgetButton,{icon:Ba,isDisabled:!a,onClick:this._handleClickUndo,title:a?Ga.undoHint.format({hint:s}):void 0,"data-tooltip-hotkey":a?Za.undoHotKey:void 0,theme:L.hasNewHeaderToolbarStyles?Qa:qa}),i.createElement(S.ToolWidgetButton,{icon:Va,isDisabled:!t,onClick:this._handleClickRedo,title:t?Ga.redoHint.format({hint:n}):void 0,"data-tooltip-hotkey":t?Za.redoHotKey:void 0,theme:L.hasNewHeaderToolbarStyles?Qa:Ka}))}_onChangeStack(){null===this._batched&&(this._batched=Promise.resolve().then(()=>{if(null===this._batched)return;this._batched=null;const e=this._getStateFromUndoHistory();this.setState(e)}))}_getStateFromUndoHistory(){const{chartWidgetCollection:e}=this.context,t=e.undoHistory.undoStack(),a=e.undoHistory.redoStack(),n=a.head(),i=t.head();return{isEnabledRedo:!a.isEmpty(),isEnabledUndo:!t.isEmpty(),redoStack:n?n.text().translatedText():"",undoStack:i?i.text().translatedText():""}}}Ja.contextType=ja;var Xa=a(87995),$a=a(9837);class en extends i.PureComponent{constructor(){super(...arguments),this._ref=null,this._update=()=>{this.forceUpdate()},this._setRef=e=>{this._ref=e},this._handleMeasure=({width:e})=>{this.props.width.setValue(e)}}componentDidMount(){const{element:e,isFake:t,width:a}=this.props;if(t)a.subscribe(this._update);else{const t=(0,X.ensureNotNull)(this._ref);Xa.findDOMNode(t).appendChild(e)}}componentWillUnmount(){const{width:e,isFake:t}=this.props;t&&e.unsubscribe(this._update)}render(){const{isFake:e=!1,width:t}=this.props;return i.createElement($a,{shouldMeasure:!e,whitelist:["width"],onMeasure:this._handleMeasure},i.createElement(b,{ref:this._setRef,style:e?{ -width:t.value()}:void 0,"data-is-custom-header-element":!0}))}}function tn(e){const{displayMode:t,params:a}=e;return i.createElement(m.ToolWidgetMenu,{content:i.createElement(P,{collapseWhen:void 0!==a.icon?void 0:[],displayMode:t,icon:a.icon,text:a.title,title:a.tooltip,"data-name":"dropdown","data-is-custom-header-element":!0}),drawerPosition:"Bottom",drawerBreakpoint:k.DialogBreakpoints.TabletSmall,arrow:!1},a.items.map((e,t)=>i.createElement(u.PopupMenuItem,{key:t,label:e.title,onClick:()=>e.onSelect(),"data-name":"dropdown-item"})))}var an=a(33191);function nn(e){const{className:t,...a}=e;return i.createElement(P,{...a,className:v(t,an.customTradingViewStyleButton,an.withoutIcon),collapseWhen:[],"data-name":"custom-tradingview-styled-button"})}function sn(){return{Bars:n.enabled("header_chart_type")?F:void 0,Compare:n.enabled("header_compare")?B:void 0,Custom:en,CustomTradingViewStyledButton:nn,Fullscreen:n.enabled("header_fullscreen_button")?J:void 0,Indicators:n.enabled("header_indicators")?me:void 0,Intervals:n.enabled("header_resolutions")?Ve:void 0,OpenPopup:qe,Properties:n.enabled("header_settings")&&n.enabled("show_chart_property_page")?Xe:void 0,SaveLoad:n.enabled("header_saveload")?ft:void 0,Screenshot:n.enabled("header_screenshot")?qt:void 0,SymbolSearch:n.enabled("header_symbol_search")?ia:void 0,Templates:n.enabled("study_templates")?Pa:void 0,Dropdown:tn,UndoRedo:n.enabled("header_undo_redo")?Ja:void 0,Layout:void 0}}},23177:(e,t,a)=>{"use strict";a.d(t,{createStudyTemplateMetaInfo:()=>i,descriptionString:()=>s});var n=a(81851);function i(e,t){return{indicators:e.orderedDataSources(!0).filter(e=>(0,n.isStudy)(e)&&!0).map(e=>({id:e.metaInfo().id,description:e.title(!0,void 0,!0)})),interval:t}}function s(e){const t=new Map;return e.forEach(e=>{const[a,n]=t.get(e.id)||[e.description,0];t.set(e.id,[a,n+1])}),Array.from(t.values()).map(([e,t])=>`${e}${t>1?" x "+t:""}`).join(", ")}},55402:(e,t,a)=>{"use strict";a.d(t,{validateRegistry:()=>l,RegistryProvider:()=>r,registryContextType:()=>c});var n=a(59496),i=a(19036),s=a.n(i);const o=n.createContext({});function l(e,t){s().checkPropTypes(t,e,"context","RegistryContext")}function r(e){const{validation:t,value:a}=e;return l(a,t),n.createElement(o.Provider,{value:a},e.children)}function c(){return o}},37466:(e,t,a)=>{"use strict";a.r(t),a.d(t,{SERIES_ICONS:()=>u});var n=a(8774),i=a(9322),s=a(14409),o=a(97567),l=a(84051),r=a(21610),c=a(65316),h=a(35361),d=a(92628);const u={3:n,0:i,1:s,8:o,9:l,2:r,10:c,12:h,13:d}},20301:(e,t,a)=>{"use strict";a.d(t,{convertImageNameToUrl:()=>s});var n=a(67337),i=a(76861);function s(e){return n.enabled("charting_library_base")||(0,i.isProd)()?"https://www.tradingview.com/x/"+e+"/":window.location.protocol+"//"+window.location.host+"/x/"+e+"/"}},58455:(e,t,a)=>{"use strict";function n(e,t){const a=document.createElement("a");a.style.display="none",a.href=t,a.download=e,a.click()}a.d(t,{downloadFile:()=>n})},24437:(e,t,a)=>{"use strict";a.d(t,{DialogBreakpoints:()=>i});var n=a(96746);const i={ -SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},39362:(e,t,a)=>{"use strict";a.d(t,{SymbolSearchDialogFooter:()=>l});var n=a(59496),i=a(97754),s=a.n(i),o=a(72142);function l(e){const{className:t,children:a}=e;return n.createElement("div",{className:s()(o.footer,t)},a)}},36189:(e,t,a)=>{"use strict";a.d(t,{FavoriteButton:()=>d});var n=a(28353),i=a(59496),s=a(97754),o=a(9745),l=a(20614),r=a(55783),c=a(16842);const h={add:(0,n.t)("Add to favorites"),remove:(0,n.t)("Remove from favorites")};function d(e){const{className:t,isFilled:a,isActive:n,onClick:d,...u}=e;return i.createElement(o.Icon,{...u,className:s(c.favorite,"apply-common-tooltip",a&&c.checked,n&&c.active,t),icon:a?l:r,onClick:d,title:a?h.remove:h.add})}},36947:(e,t,a)=>{"use strict";a.d(t,{useForceUpdate:()=>i});var n=a(59496);const i=()=>{const[,e]=(0,n.useReducer)((e,t)=>e+1,0);return e}},70412:(e,t,a)=>{"use strict";a.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>o,useHover:()=>i});var n=a(59496);function i(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function o(e){const[t,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);a(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},81332:(e,t,a)=>{"use strict";a.d(t,{multilineLabelWithIconAndToolboxTheme:()=>o});var n=a(40173),i=a(23576),s=a(63095);const o=(0,n.mergeThemes)(i,s)},51613:(e,t,a)=>{"use strict";a.d(t,{PopupMenuSeparator:()=>l});var n=a(59496),i=a(97754),s=a.n(i),o=a(524);function l(e){const{size:t="normal",className:a}=e;return n.createElement("div",{className:s()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,a)})}},96040:(e,t,a)=>{"use strict";a.d(t,{RemoveButton:()=>h});var n=a(28353),i=a(59496),s=a(97754),o=a(9745),l=a(73366),r=a(73432);const c={remove:(0,n.t)("Remove")};function h(e){const{className:t,isActive:a,onClick:n,onMouseDown:h,title:d,hidden:u,"data-name":m="remove-button",...v}=e;return i.createElement(o.Icon,{...v,"data-name":m,className:s(r.button,"apply-common-tooltip",a&&r.active,u&&r.hidden,t),icon:l,onClick:n,onMouseDown:h,title:d||c.remove})}},40173:(e,t,a)=>{"use strict";function n(e,t,a={}){const n=Object.assign({},t);for(const i of Object.keys(t)){const s=a[i]||i;s in e&&(n[i]=[e[s],t[i]].join(" "))}return n}function i(e,t,a={}){return Object.assign({},e,n(e,t,a))}a.d(t,{weakComposeClasses:()=>n,mergeThemes:()=>i})},15392:e=>{ -e.exports=''},86149:e=>{e.exports=''},8774:e=>{e.exports=''},9322:e=>{e.exports=''},65316:e=>{e.exports=''},14409:e=>{e.exports=''},25382:e=>{ -e.exports=''},92628:e=>{e.exports=''},2323:e=>{e.exports=''},90711:e=>{e.exports=''},97567:e=>{e.exports=''},35361:e=>{e.exports=''},84051:e=>{e.exports=''},60373:e=>{e.exports=''},21610:e=>{ -e.exports=''},74034:e=>{e.exports=''},28289:e=>{e.exports=''},76294:e=>{e.exports=''},62346:e=>{ -e.exports=''},36257:e=>{e.exports=''},17717:e=>{e.exports=''},73366:e=>{e.exports=''},16788:e=>{e.exports=''},37402:e=>{e.exports=''},20614:e=>{e.exports=''},55783:e=>{e.exports=''},50377:e=>{ -e.exports=''},60498:e=>{e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/runtime.1c5f2159678050219bc6.js b/charting_library/bundles/runtime.1c5f2159678050219bc6.js deleted file mode 100644 index 76d2c352..00000000 --- a/charting_library/bundles/runtime.1c5f2159678050219bc6.js +++ /dev/null @@ -1,5 +0,0 @@ -(()=>{"use strict";var e,a,d,c,f={},t={};function b(e){var a=t[e];if(void 0!==a)return a.exports;var d=t[e]={id:e,loaded:!1,exports:{}};return f[e].call(d.exports,d,d.exports,b),d.loaded=!0,d.exports}b.m=f,b.c=t,e=[],b.O=(a,d,c,f)=>{if(!d){var t=1/0;for(i=0;i=f)&&Object.keys(b.O).every(e=>b.O[e](d[o]))?d.splice(o--,1):(r=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[d,c,f]},b.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return b.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,b.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var f=Object.create(null);b.r(f);var t={};a=a||[null,d({}),d([]),d(d)];for(var r=2&c&&e;"object"==typeof r&&!~a.indexOf(r);r=d(r))Object.getOwnPropertyNames(r).forEach(a=>t[a]=()=>e[a]);return t.default=()=>e,b.d(f,t),f},b.d=(e,a)=>{for(var d in a)b.o(a,d)&&!b.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},b.f={},b.e=e=>Promise.all(Object.keys(b.f).reduce((a,d)=>(b.f[d](e,a),a),[])),b.u=e=>(({92:"chart-screenshot-hint",139:"get-error-card",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",1583:"lt-pane-views",1584:"context-menu-renderer",1702:"manage-drawings-dialog",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3596:"general-property-page",3718:"series-icons-map",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4389:"take-chart-image-impl",4665:"share-chart-to-social-utils",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5514:"react",5516:"restricted-toolset",5551:"favorite-drawings-api",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7260:"chart-bottom-toolbar",7271:"compare-model",7648:"show-theme-save-dialog",8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data",9685:"redux"}[e]||e)+"."+{92:"0cb36b737a8e2345986f",137:"70e616fa55bcc40d9349",139:"6704838b79e652cb9b7b",323:"ecccd7e1c64eec3b91d6",507:"0c3c1c23fc8d5c9a196d",607:"1a061f43c2bae5611b49",731:"afe8089e0ca57f411f21",775:"9af72d490eb67ba9c3d7",880:"ca3b809337dfc638a0f4",1075:"2745aa8533e240f5a5aa",1112:"f476c93be59b881d5771",1320:"677eb727863e2a6eb930",1369:"b9add96a0a387a540aeb",1390:"171f18d180605d45f8bd",1553:"6b87affb7e648083ffef",1583:"0d4b5b1bbff664aa4bbd",1584:"c51a5b07782e9509b684",1594:"bdc6e0cee01d43f92b56",1702:"207a6f8164fe2e308a43",1754:"6e76d0b3734157609c5c", -1784:"430d2965a945175c67b1",1859:"2bf2c3f997463af55494",1890:"2ed2617cd536591d9620",2e3:"b72cddb1e241cd53d957",2077:"d42e666ed16322d7bc67",2153:"e970c9d1c83724d33d9d",2183:"5d9d24afd1c80c178f66",2205:"60fcbd491c14c71efecd",2301:"327e64f11055caec2fc9",2306:"9319534e46a9e0511fbc",2316:"71b43056c57e7847daa4",2358:"4592ca9a4bf10a040d6c",2377:"6e30e0c48af40bf2f6c0",2385:"8bd1988e75b528b748b5",2704:"4cf6e944a1702031903f",2731:"0237b0a587f2af599d21",2849:"a11938dbc8cdee0e66c0",2878:"5b28dda6a3b56e3f7110",3005:"cfb40d569cc84fb5a999",3016:"47e1775fafc08b9df6b1",3030:"f334374efc8ad7fe9ea9",3199:"f9bb1cc19bce0ed4e13a",3402:"80214ea16dec09fffbd7",3466:"dccc24adfe6f1de5abb0",3520:"348408865478fac7ab74",3596:"1d681e46e32eeb7bd566",3645:"f1ad30da6dcb4038b28c",3682:"a8229944cef798066931",3718:"5132afb769e08e9e4691",3770:"81522a902e3f65675da1",3921:"9a1e01c5fdc6ee0f0ca6",3944:"8a40a36e9250534cf1fa",4013:"4f43b1b0de65b2b6006c",4017:"417920a2e5fad078d303",4079:"62f0243fcd47ee8bd0a6",4102:"b861355e1fab6acf6b67",4194:"76610f4689826e0a3055",4389:"5287e059e159029b1913",4474:"ea628e251dbcae44ecad",4521:"a87e64e7049d592bdfa3",4665:"6dc882da895288804e15",4707:"4ae5a4c649280232f879",4763:"093701f36a1f22397937",4862:"f7df9d670cdf61d960af",4891:"f1952d185e606d135bad",5009:"35a2a7b957a4a4ecde2f",5093:"3f2a59a4ea5dd17c785c",5175:"735bba58eb417df5f276",5325:"57bc584fcad20ff58020",5514:"0638a74f3ac515095b21",5516:"e7ec0040c08ca2374480",5551:"aa264037a63b28ce72cf",5643:"e60d5a2fcedc55bc4c05",5774:"6084e87dfa3b7403c64e",5802:"a0f79afb86f1c7c6aa3c",5804:"9635459a9bb27efae543",5827:"5b4a4f8dc1802379d22d",5998:"efb09f12cc4162f40b26",6085:"69a003daf8ea012f4dc7",6166:"2772e96b4497fbe5a15b",6265:"833907d615c0a923a83e",6324:"f523168025f5f9f8281b",6363:"9bc4c2079b600a3e9e5f",6416:"0fdddb203273d15400a4",6427:"dee12c08eddd33a30d9a",6456:"dce1b9689542de2ec2c4",6560:"c0e5964119c0286aaeb8",6631:"53a4d00015fbeb7f3529",6780:"cde5cf5388cda1852fe0",6909:"001e6b57323d8b33ee18",7037:"fdc8ef89ee0603668c58",7078:"f56362c75973e41ee012",7176:"49f88f7174a87b80e6a9",7210:"9206636bbf39a902a0a9",7237:"2769aa6f5ca9bfe3d134",7260:"398cd093b8aefc945d7a",7271:"c665421984ce49564c38",7345:"25fdcd5ab611a0cae1c5",7387:"83f8d426a2eccc99da8d",7419:"fd1b88773f6a4c3ba0a3",7427:"9095bbcd96c4c8afbded",7552:"c7af5f2f9d956a4895d7",7635:"94cca27a48b51d6d0730",7648:"68f7692722c11f00b867",7757:"84c3835c6476f72ab779",7836:"7b5a16c4162d195f4fa0",7945:"4c3c0d98ac578db6c7fb",7962:"c7449f8a140d0a2f65c6",8090:"8b952c7d16bf27f94c34",8268:"799053cee91b47677d8e",8303:"6f2e0bbed2ef9bb1568e",8463:"71bed1f64ec4d658c6d9",8537:"d00036916a48adf1092a",8623:"6203559dfd9dc01b02d5",8643:"d80e5db5b5d195e2517b",8879:"8d71f97b906d74e9480c",8883:"edd50cff73a3164330f4",8890:"14e9ec0c02af5afd0347",8986:"9466c2fa15e1e2a0cf9f",9039:"a408d5bf42843ff46541",9042:"d1420ea0738999e3d4cd",9055:"ba2902a9c5c3dca700c1",9129:"e901c0206f411793cfff",9255:"0018f47a90442dff7efa",9283:"480451f47ebcfaeaf111",9289:"762510b2c9450f4fe85c",9309:"fd81d3dccd4271a42203",9374:"39f3d6120103dd6f672c",9498:"9cbc7d11420cd533dc03", -9505:"033a769154fc53ff7eca",9637:"78bb8fe4f37f1cca4c25",9685:"68742a2f70099c28b1ab",9811:"b2796acbfd658ee82791",9837:"80435cf54dcab1a9fa8e"}[e]+".js"),b.miniCssF=e=>5386===e?"5386.eb112967859403067d3d.css":e+"."+{137:"22c8e006552b35610f6b",323:"9be8a16e68975397a842",775:"5c68daa0de7f24551ffd",880:"20be4b9bc2682d856330",1112:"7d160fc0f45e3cce101b",1320:"5842d36462bf91f9bdee",1390:"997773af9c033c657fec",1594:"34c11d6cc8a67dec7867",2e3:"c053338877532ef25f8e",2153:"e1ac3515fad66f2e8cd2",2205:"6db290791e83d7931fc0",2316:"b0ed604f1b75887fab7d",2358:"4aea6b2ceb2dd524ad2f",2385:"a7490fb24192a7cb071d",2731:"ee2fb0e70b811fc1b3df",2849:"6cff163a36f6f60d1983",3402:"82d9d45c3fb1eae5b64d",3466:"6b309c19d1017468da1b",3520:"ad35b3adb3b2a1ac9a36",3645:"9bd37e14840a5d104112",3682:"13811924767b33f096fe",3770:"27c0356c69260f042e33",3921:"d5182cf595ff23538303",3944:"23ad1935ea1ca536bbdb",4017:"0d88d48dec4b694d4517",4102:"915f81c69fc5e4623606",4194:"f5256f014a8f2810c953",4474:"73bf3a3dea54feb8ae44",4521:"fb1ce34b17639871bac0",4763:"574e022a146295a230c1",5175:"6da12b40a46c3dc1bec7",5325:"f73e6a1009e185976981",5643:"e3046972325597a71d4d",5774:"141a04a858b83c24fd16",5802:"92bc0e290d3769e49cfb",5804:"6d5505a6271d865543a7",5998:"f7e5ad8f8bcc58c55639",6324:"365b73847767a54140ab",6363:"455be323006da46e86ba",6416:"a5a589cf5a0320e1d8ef",6427:"0426a3a24088f56e85f6",6560:"f01881003ac6fef45147",6909:"8cf1749a0435c38f0042",7037:"6c0a17273325fb793ea5",7176:"90e52d563ea0d904aceb",7237:"c5b4b4a1c530e5649853",7345:"f2d6787a34679ca6bb6e",7419:"fe8ff7c7e5d60ec6a2aa",7427:"3632e181ea85cc112694",7552:"889d45f5aa64d5c7293b",7635:"68f0d52fbb176c87eb48",7757:"a33871177538e5af0eea",7836:"e76c27a228c01ba0f51a",7945:"2d37a0fa10623d3390a6",7962:"5dc755e884297017b802",8090:"9f6f63205b18b2006aae",8268:"22931d534c7e1ef01eb1",8303:"d7429ccb60ab73751723",8463:"eb12cff5d8de975762fb",8879:"79825d729c8f4d360834",8986:"a6ccf711a394e8924fa1",9042:"5e6d175178eb40bf9d3c",9055:"3b864f08d4f696c7bf5e",9129:"fbb750fd312778403036",9283:"361babf6593344d18b51",9289:"5f9496920ea48da5931b",9309:"aceadf5355c94350ec2c",9637:"e1a8d0ef8a2a124944fd"}[e]+".css",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),b.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},b.l=(e,a,d,f)=>{if(c[e])c[e].push(a);else{var t,r;if(void 0!==d)for(var o=document.getElementsByTagName("script"),n=0;n{t.onerror=t.onload=null,clearTimeout(s);var f=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach(e=>e(d)),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),r&&document.head.appendChild(t)}},b.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),b.p="bundles/",b.p=window.WEBPACK_PUBLIC_PATH||b.p;var r,o,n=b.e,i=Object.create(null);b.e=function(e){if(!i[e]){i[e]=function e(a,d){return n(a).catch((function(){return new Promise((function(c){var f=function(){window.removeEventListener("online",f,!1),!1===navigator.onLine?window.addEventListener("online",f,!1):c(d<2?e(a,d+1):n(a))};setTimeout(f,d*d*1e3)}))}))}(e,0);var a=function(){delete i[e]};i[e].then(a,a)}return i[e]},r=e=>new Promise((a,d)=>{var c=b.miniCssF(e),f=b.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),c=0;c{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=t=>{if(f.onerror=f.onload=null,"load"===t.type)d();else{var b=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.href||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=b,o.request=r,f.parentNode.removeChild(f),c(o)}},f.href=a,0!==f.href.indexOf(window.location.origin+"/")&&(f.crossOrigin="anonymous"),document.head.appendChild(f)})(e,f,a,d)}),o={3666:0},b.f.miniCss=(e,a)=>{o[e]?a.push(o[e]):0!==o[e]&&{137:1,323:1,775:1,880:1,1112:1,1320:1,1390:1,1594:1,2e3:1,2153:1,2205:1,2316:1,2358:1,2385:1,2731:1,2849:1,3402:1,3466:1,3520:1,3645:1,3682:1,3770:1,3921:1,3944:1,4017:1,4102:1,4194:1,4474:1,4521:1,4763:1,5175:1,5325:1,5643:1,5774:1,5802:1,5804:1,5998:1,6324:1,6363:1,6416:1,6427:1,6560:1,6909:1,7037:1,7176:1,7237:1,7345:1,7419:1,7427:1,7552:1,7635:1,7757:1,7836:1,7945:1,7962:1,8090:1,8268:1,8303:1,8463:1,8879:1,8986:1,9042:1,9055:1,9129:1,9283:1,9289:1,9309:1,9637:1}[e]&&a.push(o[e]=r(e).then(()=>{o[e]=0},a=>{throw delete o[e],a}))},(()=>{var e={3666:0,5386:0};b.f.j=(a,d)=>{var c=b.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1(5(53|83|84)|7(02|54|84)|8(57|59|90)|075|297|369|39)|2(3(01|06|77)|077|183|704|878)|3(0(05|16|30)|199|596|718)|4(013|079|389|665|707|862|891)|5(0(09|7|93)|5(14|16|51)|827)|6(07|085|166|265|456|631|780)|7(2(10|60|71)|078|31|387|648)|8((62|64|88)3|537|890)|9((25|50|68)5|039|2|374|498|811|837))$/.test(a)){var f=new Promise((d,f)=>c=e[a]=[d,f]);d.push(c[2]=f);var t=b.p+b.u(a),r=new Error;b.l(t,d=>{if(b.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){ -var f=d&&("load"===d.type?"missing":d.type),t=d&&d.target&&d.target.src;r.message="Loading chunk "+a+" failed.\n("+f+": "+t+")",r.name="ChunkLoadError",r.type=f,r.request=t,c[1](r)}},"chunk-"+a,a)}else e[a]=0},b.O.j=a=>0===e[a];var a=(a,d)=>{var c,f,[t,r,o]=d,n=0;if(t.some(a=>0!==e[a])){for(c in r)b.o(r,c)&&(b.m[c]=r[c]);if(o)var i=o(b)}for(a&&a(d);n{const{miniCssF:e}=b;b.miniCssF=a=>"rtl"===document.dir?e(a).replace(/\.css$/,".rtl.css"):e(a)})()})(); \ No newline at end of file diff --git a/charting_library/bundles/runtime.e861c3f73de2a48d47a3.js b/charting_library/bundles/runtime.e861c3f73de2a48d47a3.js new file mode 100644 index 00000000..eac3108d --- /dev/null +++ b/charting_library/bundles/runtime.e861c3f73de2a48d47a3.js @@ -0,0 +1,7 @@ +(()=>{"use strict";var e,a,d,c,f={},b={};function t(e){var a=b[e];if(void 0!==a)return a.exports;var d=b[e]={id:e,loaded:!1,exports:{}};return f[e].call(d.exports,d,d.exports,t),d.loaded=!0,d.exports}t.m=f,t.c=b,t.amdD=function(){throw new Error("define cannot be used indirect")},e=[],t.O=(a,d,c,f)=>{if(!d){var b=1/0;for(n=0;n=f)&&Object.keys(t.O).every(e=>t.O[e](d[o]))?d.splice(o--,1):(r=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[d,c,f]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var f=Object.create(null);t.r(f);var b={};a=a||[null,d({}),d([]),d(d)];for(var r=2&c&&e;"object"==typeof r&&!~a.indexOf(r);r=d(r))Object.getOwnPropertyNames(r).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,t.d(f,b),f},t.d=(e,a)=>{for(var d in a)t.o(a,d)&&!t.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((a,d)=>(t.f[d](e,a),a),[])),t.u=e=>(({92:"chart-screenshot-hint",139:"get-error-card",254:"profile-api",273:"alert-editor-impl",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",850:"six-months-banner",870:"subscription-has-changed-dialog",988:"use-prism-highlight-all-under",1566:"change-plan-dialog-impl",1583:"lt-pane-views",1584:"context-menu-renderer",1611:"last-chance-banner",1653:"trial-message-success-dialog",1662:"alerts-push-dialog",1702:"manage-drawings-dialog",1729:"jquery",1754:"symbol-search-dialog",1854:"early-bird-banner",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2112:"lazy-velocity",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2465:"alert-dialog",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3091:"show-warning-alerts-max-total-count-exceeded",3441:"alert-utils-has-user-access-to-data-source",3596:"general-property-page",3646:"tvscript_chunk",3718:"series-icons-map",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4081:"snowplow-tracker",4278:"trial-notification",4291:"global-toasts",4389:"take-chart-image-impl",4632:"fullscreen-image-dialog-impl",4665:"share-chart-to-social-utils",4816:"six-months-dialog",4834:"create-dialog",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5246:"gopro-dialog",5514:"react",5516:"restricted-toolset",5551:"favorite-drawings-api",6066:"go-to-tradingview-referral-dialog",6123:"signin-dialog",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7136:"alerts-trigger-warning-dialog-impl", +7260:"chart-bottom-toolbar",7271:"compare-model",7274:"support-dialog-impl",7550:"one-usd-banner",7648:"show-theme-save-dialog",7713:"blackfriday-dialog-impl",8132:"start-free-trial-bt-impl",8158:"price-alerts-dispatcher",8357:"gopro-order-dialog",8435:"early-bird-dialog",8477:"support-wizard-slow-warning",8537:"lt-property-pages-with-definitions",8606:"email-dialog",8643:"full-tooltips-popup",8869:"cookies-notification",8890:"simple-dialog",8983:"privacy-preference-dialog",9039:"lollipop-tooltip-renderer",9144:"start-free-trial-impl",9201:"warning-dialog",9347:"upgradeDialog",9374:"symbol-info-dialog-impl",9498:"export-data",9685:"redux"}[e]||e)+"."+{92:"49f947cd29db6dfcf59f",137:"70e616fa55bcc40d9349",139:"6704838b79e652cb9b7b",254:"30da856643b32b7a502f",273:"31bd1bd6a919d8561787",279:"758fadf3bf89fdb0d564",323:"ecccd7e1c64eec3b91d6",507:"0c3c1c23fc8d5c9a196d",509:"c1c6965162c68e0f586e",607:"1a061f43c2bae5611b49",638:"a7dbcc3801adb93fdc91",724:"748f2432115125fe1d4c",731:"2967dfb4ca0b9cbae879",775:"9af72d490eb67ba9c3d7",850:"956ef2d7d4cd4dd382aa",870:"88a72a8c6db5fd268345",880:"ca3b809337dfc638a0f4",957:"b81ceada6453e45fae9b",976:"b9b0b5d6871d69da1633",988:"547a9e83b408bfc4d1a7",1e3:"03457f0bee8e78a74471",1065:"9c8000e789dbd5b05346",1112:"f476c93be59b881d5771",1201:"618e324514476ad87261",1253:"5795bcbfee736a84b675",1320:"677eb727863e2a6eb930",1333:"26b023a34633001097fd",1369:"b9add96a0a387a540aeb",1390:"171f18d180605d45f8bd",1424:"b1f0f8e56e95b7b7d401",1482:"31d88995d3950d354e71",1536:"70b2854033fe86ff8887",1550:"69cf45361956d097fdfd",1553:"6b87affb7e648083ffef",1566:"010252ca2577d034ddb4",1583:"64f0e2787aaea98f864f",1584:"e8aa606750391369d706",1594:"4ef8130762f60c777086",1611:"0210ab3cfb4e94797db1",1653:"dad87576a21c86fab7b8",1662:"50e30fb052b79616ce1d",1692:"2532541eb22f353c5678",1702:"207a6f8164fe2e308a43",1726:"1678e798f02e4004ad67",1729:"06844b74f8270fb0698b",1754:"f668aac5ec3ae2fec62a",1854:"63639de641b064c620c2",1859:"9a15fd8109d81fcece3b",1865:"4e998517f85fc2f88c03",1890:"2ed2617cd536591d9620",1946:"c0a666d2f0aa1faa6769",1999:"29f76372cc09511205c1",2e3:"b72cddb1e241cd53d957",2006:"a3735fac342916df24f8",2077:"79c9929e7fd0b7e6c245",2112:"c4899589f501eea00e5f",2153:"e970c9d1c83724d33d9d",2183:"5d9d24afd1c80c178f66",2205:"60fcbd491c14c71efecd",2267:"1c1aadbdc7cef6c34372",2288:"6028f4f8b8e02625645e",2306:"eba8db3eef8c6a5ad047",2331:"3b08f9cb7e919f979749",2340:"eded834f178411ea4b08",2358:"4592ca9a4bf10a040d6c",2377:"6e30e0c48af40bf2f6c0",2454:"68d0887ef7e51d7bc269",2465:"42e245eb82504c55c632",2502:"82e28010896833a0f183",2525:"0781b5a5eb9d1d257cba",2624:"b4c22d1b6ddc78d2f02b",2704:"ccab0620dccaa2883306",2731:"0237b0a587f2af599d21",2849:"a11938dbc8cdee0e66c0",2878:"3ac6efdaf16c335ac4ea",2888:"a464709527506c8c191d",2917:"f809088053f9a1f9296c",2947:"01756d0de30a0c1fdebe",3005:"6e0f6b8f50c83c8a6dc1",3014:"516162fd8b06ec2cad15",3030:"74701800dcf34f21dcae",3091:"f45f575da01e51b48505",3118:"77b467b2e4d35971b370",3245:"428fb1c689b8d7beb80e",3304:"02b3db44475a7ac3c3c1",3441:"0e28597ad557f8895261", +3466:"dccc24adfe6f1de5abb0",3520:"348408865478fac7ab74",3596:"0218f1b33618fc491a70",3645:"f1ad30da6dcb4038b28c",3646:"e9768cd8eb72616bfafa",3682:"a8229944cef798066931",3713:"b95b2c4900f0475dfe3d",3718:"5132afb769e08e9e4691",3738:"66fe7fbb64065ac70351",3770:"81522a902e3f65675da1",3812:"21e37b91c0c961133d11",3848:"f7974a94fafe876af4a8",3921:"9a1e01c5fdc6ee0f0ca6",3944:"8a40a36e9250534cf1fa",4002:"3b0ae1c4e1bdb1e18c74",4013:"920509097ccec051c51a",4017:"417920a2e5fad078d303",4079:"62f0243fcd47ee8bd0a6",4081:"35ffaa6b100e0786831a",4102:"b861355e1fab6acf6b67",4278:"e9b6d98c2e7608050f98",4291:"4e2377e6bac59b8285e6",4364:"857d262773326a44c55e",4389:"56cd69b21fd8de87abad",4408:"af6bca1aab8fa68fdd43",4474:"ea628e251dbcae44ecad",4497:"6e80cfc4fb3ac13bba9e",4521:"a87e64e7049d592bdfa3",4632:"96661b3d18a6fe1cf637",4634:"c188c725b1b19bc04e1b",4665:"6dc882da895288804e15",4707:"4ae5a4c649280232f879",4763:"093701f36a1f22397937",4816:"2397e41c2cae1012afe5",4834:"cf7e24e193258f0fb5c7",4862:"eecc10d129b521b3edf1",4956:"807348996e7d22c32aa7",5009:"cd5fbcdffc1ad4008003",5030:"0e1956c92fe3fa297f48",5064:"0a65804397817bb90593",5069:"0800c157c988601e62e2",5093:"1cae41f1cb32b31857bc",5113:"fcc91cece7b4ffa0023c",5175:"735bba58eb417df5f276",5246:"10fd967147ea7ef9c57b",5298:"60671b80cca587a5f5b5",5325:"57bc584fcad20ff58020",5376:"2aa38050f70a10c75dee",5380:"7d2545642ed8ef6e0e82",5399:"83a54192bb2eedfdd124",5423:"7c2e49576fea7390d5de",5514:"0638a74f3ac515095b21",5516:"6e034375d57dd0341299",5551:"aa264037a63b28ce72cf",5618:"27fd2c07741e7a2f3e29",5643:"e60d5a2fcedc55bc4c05",5708:"b097c037606468474303",5733:"7fcd099615d6cd6069d4",5774:"6084e87dfa3b7403c64e",5804:"9635459a9bb27efae543",5827:"5b4a4f8dc1802379d22d",5835:"4b5da94bb7f9da9a57da",5904:"4b6ec7dc2c8fd9587804",5911:"dd8599b88f4b1a461b81",5971:"0623308ee8dbe647126c",5995:"3a632f64335891f1e50f",5998:"efb09f12cc4162f40b26",6055:"2fa2dff6b27ad1aa8299",6066:"3ff513f8887e148c67d1",6123:"e9f4471305a72e10e137",6166:"7174ec43ce875310edd1",6265:"fb0b794a73b3e6d05f6b",6363:"9bc4c2079b600a3e9e5f",6416:"0fdddb203273d15400a4",6427:"dee12c08eddd33a30d9a",6438:"d13cf32db05c4395beed",6456:"a71cabfe36a376ab73a2",6464:"874fc47e0ddcdb6b552b",6475:"249a3b34f1b557decee6",6602:"a297e70e35cceabe17ef",6631:"45a0e337870e6bb57e1b",6708:"5c1aad645dfbf21ba85f",6750:"49a2d2180a788426f76b",6767:"2e85501f065b2764ab16",6780:"cde5cf5388cda1852fe0",6895:"03e2bd6c2e3a4f42c9c6",6909:"001e6b57323d8b33ee18",6973:"1014b5c98b0834d66915",7078:"c03cba9c7cf0c46b99e6",7136:"9bffee22d66ddcf75e00",7232:"8099e0e621f86db28552",7237:"2769aa6f5ca9bfe3d134",7245:"fd3f23a25539f05c34b6",7260:"61a521bae909ba6271cb",7271:"c665421984ce49564c38",7274:"a2bd4a673fa2a215cf0b",7345:"25fdcd5ab611a0cae1c5",7387:"83f8d426a2eccc99da8d",7404:"8ea65939d80e9ab20e73",7419:"fd1b88773f6a4c3ba0a3",7427:"9095bbcd96c4c8afbded",7550:"bf548661215c404433e5",7552:"c7af5f2f9d956a4895d7",7635:"94cca27a48b51d6d0730",7648:"68f7692722c11f00b867",7678:"2a02d7fc5a1d8b8dff1f",7713:"376e62a20f73b99b196d",7757:"84c3835c6476f72ab779",7836:"7b5a16c4162d195f4fa0", +7945:"4c3c0d98ac578db6c7fb",7962:"c7449f8a140d0a2f65c6",8054:"cf3ab715ef2d49a4a8d9",8090:"8b952c7d16bf27f94c34",8132:"40d3f4e46da06f9c678e",8138:"f674ab891b0a0a00855d",8158:"416bae3f764ba35699c2",8178:"183edf2ef18efa241210",8247:"757a59b60e996e95ef8a",8268:"799053cee91b47677d8e",8303:"6f2e0bbed2ef9bb1568e",8357:"a9d6c7f1fa03844e1cfb",8367:"298b5be2695de9b33461",8435:"b9daeb69416b2c6d8d50",8463:"71bed1f64ec4d658c6d9",8477:"a8c40c040087722de686",8537:"d00036916a48adf1092a",8606:"11c06641e902f3048b83",8623:"6203559dfd9dc01b02d5",8643:"7ab1067f92b52f07297b",8673:"cddd661446f4cbe31273",8756:"2d53aeb4b3379872f278",8844:"ca8518ea1562ebfc36a3",8869:"9ed1e7a17da61937dc4e",8879:"8d71f97b906d74e9480c",8890:"f98fb16a5780aa202541",8948:"eb5e6f109f33f4111472",8983:"0012f6ddb64dd5553a72",8986:"9466c2fa15e1e2a0cf9f",8994:"447098231daab300c4b8",9039:"0ceff3b7ae8ca6b64473",9040:"ef836fce63b5692a00a3",9042:"d1420ea0738999e3d4cd",9055:"ba2902a9c5c3dca700c1",9129:"e901c0206f411793cfff",9144:"46ed8d43707329dbf0fc",9201:"ab50d177e34bd851e70f",9255:"0018f47a90442dff7efa",9283:"480451f47ebcfaeaf111",9289:"762510b2c9450f4fe85c",9297:"b59dea783e20a88bda2a",9347:"b5c7e23d29874316e21c",9374:"89d39de5fb3e5ca4542b",9410:"7747d61cf2013fe29ade",9498:"9cbc7d11420cd533dc03",9565:"0041705894c206a5f922",9570:"2652dc8a04265ae0157e",9593:"66d8a667756c059bbcbe",9637:"78bb8fe4f37f1cca4c25",9685:"68742a2f70099c28b1ab",9725:"34bc625d639194ea9363",9957:"6106d5c99e3556405b69",9961:"7b1961d55af7c926c251"}[e]+".js"),t.miniCssF=e=>5386===e?"5386.eb112967859403067d3d.css":e+"."+{137:"22c8e006552b35610f6b",279:"9540b575371a0ecfc0bc",323:"9be8a16e68975397a842",509:"2aa31cf384069ff4cd5e",724:"e580ce07c322679b0578",775:"5c68daa0de7f24551ffd",880:"20be4b9bc2682d856330",957:"7e1da618288b536c77d2",976:"93143479d06a7878a2a0",1065:"c486e71c0f4ad53d97a0",1112:"7d160fc0f45e3cce101b",1253:"80f3612c2c0c60fc7435",1320:"5842d36462bf91f9bdee",1333:"66628a51e9c9fe6d23a6",1390:"997773af9c033c657fec",1424:"d659ebb641f9bc73fab3",1692:"6d50aa9403d6d71eae69",1726:"a9cb37f68d1221bfa750",1729:"6e10c6b53c02d0af602e",1865:"9d9f2c055165380e13c9",1999:"41e6d020269ba779f363",2e3:"c053338877532ef25f8e",2006:"21f12914e3a7a7515a25",2153:"e1ac3515fad66f2e8cd2",2205:"6db290791e83d7931fc0",2267:"47b8ff4cd471e21cabab",2288:"d3106e5fe660e6e0712c",2340:"36ca0d43eb91dba77fa4",2358:"4aea6b2ceb2dd524ad2f",2525:"1b05122f135a2c7f4818",2624:"f55c13c46f516986e4a2",2731:"ee2fb0e70b811fc1b3df",2849:"6cff163a36f6f60d1983",2888:"658aee2f9aacb50e4bc9",3118:"c14bad0abc6803f7cc64",3466:"6b309c19d1017468da1b",3520:"ad35b3adb3b2a1ac9a36",3645:"9bd37e14840a5d104112",3682:"13811924767b33f096fe",3713:"d298aa7c89e61a75e4e2",3770:"27c0356c69260f042e33",3848:"d011e1be1e35f2c09044",3921:"d5182cf595ff23538303",3944:"23ad1935ea1ca536bbdb",4017:"0d88d48dec4b694d4517",4102:"915f81c69fc5e4623606",4408:"433afc31cc517d90040c",4474:"73bf3a3dea54feb8ae44",4497:"3ced329964413f9bf307",4521:"fb1ce34b17639871bac0",4634:"2a4010396de3915172a8",4763:"574e022a146295a230c1",4956:"5be5245cef3e7dc84a04",5030:"f9501920ecfa388929c3", +5064:"1f384128ead8182b3a33",5069:"3451a537bfe99e8c44be",5113:"955b6e89f78634daaa87",5175:"6da12b40a46c3dc1bec7",5298:"90af5ad1a39fe163f644",5325:"f73e6a1009e185976981",5380:"0fcbeffa9d76b47d7552",5399:"5b37bdc7d523b1c795fb",5618:"8a62799c789da2a8c8a0",5643:"e3046972325597a71d4d",5708:"c3364a7566b555162c99",5733:"ff2d007e3096cc677a13",5774:"141a04a858b83c24fd16",5804:"6d5505a6271d865543a7",5835:"ed17059c36bd9c957c54",5904:"25a33d6d7b0935e49721",5911:"25d75d2a641c68537541",5971:"b0e199fd9ea9b0b05ed7",5998:"f7e5ad8f8bcc58c55639",6363:"455be323006da46e86ba",6416:"a5a589cf5a0320e1d8ef",6427:"0426a3a24088f56e85f6",6464:"654bf43eb72d501be562",6708:"c5991a4180881ef8eaec",6750:"9ee7b735c78b915db6f7",6767:"4ce0a318e0eb8861d505",6895:"5f890042edec19c4b9d3",6909:"8cf1749a0435c38f0042",7232:"eeabaf3541dfcb1398bb",7237:"c5b4b4a1c530e5649853",7245:"1a82c73b622453a96bf6",7345:"f2d6787a34679ca6bb6e",7419:"fe8ff7c7e5d60ec6a2aa",7427:"3632e181ea85cc112694",7552:"889d45f5aa64d5c7293b",7635:"68f0d52fbb176c87eb48",7757:"a33871177538e5af0eea",7836:"e76c27a228c01ba0f51a",7945:"2d37a0fa10623d3390a6",7962:"5dc755e884297017b802",8054:"34c11d6cc8a67dec7867",8090:"9f6f63205b18b2006aae",8138:"26729089e9f03458af35",8247:"92c794a740a939962228",8268:"22931d534c7e1ef01eb1",8303:"d7429ccb60ab73751723",8367:"7c0a1d12f9627a67aa36",8463:"eb12cff5d8de975762fb",8756:"2b636aa87bb90a37e76d",8844:"902c220eb319c5a7b057",8879:"79825d729c8f4d360834",8948:"b703bd84d23db0af187d",8986:"a6ccf711a394e8924fa1",9042:"5e6d175178eb40bf9d3c",9055:"3b864f08d4f696c7bf5e",9129:"fbb750fd312778403036",9283:"361babf6593344d18b51",9289:"5f9496920ea48da5931b",9297:"20467c2b9cdcf6544815",9410:"cede90b73dc7bda7578a",9565:"c69166c3f0d2b77c3979",9570:"6e130410c18a92e289cd",9593:"734c4bb23892ab13dac8",9637:"e1a8d0ef8a2a124944fd",9961:"9ec3499981d0cb5615f7"}[e]+".css",t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t.l=(e,a,d,f)=>{if(c[e])c[e].push(a);else{var b,r;if(void 0!==d)for(var o=document.getElementsByTagName("script"),i=0;i{b.onerror=b.onload=null,clearTimeout(s);var f=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),f&&f.forEach(e=>e(d)),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=l.bind(null,b.onerror),b.onload=l.bind(null,b.onload), +r&&document.head.appendChild(b)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.p="bundles/",t.p=window.WEBPACK_PUBLIC_PATH||t.p;var r,o,i=t.e,n=Object.create(null);t.e=function(e){if(!n[e]){n[e]=function e(a,d){return i(a).catch((function(){return new Promise((function(c){var f=function(){window.removeEventListener("online",f,!1),!1===navigator.onLine?window.addEventListener("online",f,!1):c(d<2?e(a,d+1):i(a))};setTimeout(f,d*d*1e3)}))}))}(e,0);var a=function(){delete n[e]};n[e].then(a,a)}return n[e]},r=e=>new Promise((a,d)=>{var c=t.miniCssF(e),f=t.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),c=0;c{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=b=>{if(f.onerror=f.onload=null,"load"===b.type)d();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,f.parentNode.removeChild(f),c(o)}},f.href=a,0!==f.href.indexOf(window.location.origin+"/")&&(f.crossOrigin="anonymous"),document.head.appendChild(f)})(e,f,a,d)}),o={3666:0},t.f.miniCss=(e,a)=>{o[e]?a.push(o[e]):0!==o[e]&&{137:1,279:1,323:1,509:1,724:1,775:1,880:1,957:1,976:1,1065:1,1112:1,1253:1,1320:1,1333:1,1390:1,1424:1,1692:1,1726:1,1729:1,1865:1,1999:1,2e3:1,2006:1,2153:1,2205:1,2267:1,2288:1,2340:1,2358:1,2525:1,2624:1,2731:1,2849:1,2888:1,3118:1,3466:1,3520:1,3645:1,3682:1,3713:1,3770:1,3848:1,3921:1,3944:1,4017:1,4102:1,4408:1,4474:1,4497:1,4521:1,4634:1,4763:1,4956:1,5030:1,5064:1,5069:1,5113:1,5175:1,5298:1,5325:1,5380:1,5399:1,5618:1,5643:1,5708:1,5733:1,5774:1,5804:1,5835:1,5904:1,5911:1,5971:1,5998:1,6363:1,6416:1,6427:1,6464:1,6708:1,6750:1,6767:1,6895:1,6909:1,7232:1,7237:1,7245:1,7345:1,7419:1,7427:1,7552:1,7635:1,7757:1,7836:1,7945:1,7962:1,8054:1,8090:1,8138:1,8247:1,8268:1,8303:1,8367:1,8463:1,8756:1,8844:1,8879:1,8948:1,8986:1,9042:1,9055:1,9129:1,9283:1,9289:1,9297:1,9410:1,9565:1,9570:1,9593:1,9637:1,9961:1}[e]&&a.push(o[e]=r(e).then(()=>{o[e]=0},a=>{throw delete o[e],a}))},(()=>{var e={3666:0,5386:0};t.f.j=(a,d)=>{var c=t.o(e,a)?e[a]:void 0 +;if(0!==c)if(c)d.push(c[2]);else if(/^(1(3(20|33|7|90)|[08]65|112|253|424|692|726|999)|2(00[06]|2(05|67|88)|153|340|358|525|624|731|79|849|888)|3(6(45|66|82)|118|23|466|520|713|770|848|921|944)|4(4(08|74|97)|017|102|521|634|763|956)|5(0(30|64|69|9)|3(25|80|86|99)|7(08|33|74)|9(04|11|71|98)|113|175|298|618|643|804|835)|6(4(16|27|64)|7(08|50|67)|363|895|909)|7(2(32|37|4|45)|75(|7)|(34|63|94)5|419|427|552|836|962)|8(8(0|44|79)|(13|26|94)8|054|090|247|303|367|463|756|986)|9(2(83|89|97)|5(65|7|70|93)|042|055|129|410|637|76|961))$/.test(a))e[a]=0;else{var f=new Promise((d,f)=>c=e[a]=[d,f]);d.push(c[2]=f);var b=t.p+t.u(a),r=new Error;t.l(b,d=>{if(t.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var f=d&&("load"===d.type?"missing":d.type),b=d&&d.target&&d.target.src;r.message="Loading chunk "+a+" failed.\n("+f+": "+b+")",r.name="ChunkLoadError",r.type=f,r.request=b,c[1](r)}},"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,d)=>{var c,f,[b,r,o]=d,i=0;if(b.some(a=>0!==e[a])){for(c in r)t.o(r,c)&&(t.m[c]=r[c]);if(o)var n=o(t)}for(a&&a(d);i{const{miniCssF:e}=t;t.miniCssF=a=>"rtl"===document.dir?e(a).replace(/\.css$/,".rtl.css"):e(a)})()})(); \ No newline at end of file diff --git a/charting_library/bundles/show-warning-alerts-max-total-count-exceeded.f45f575da01e51b48505.js b/charting_library/bundles/show-warning-alerts-max-total-count-exceeded.f45f575da01e51b48505.js new file mode 100644 index 00000000..d9d1dde4 --- /dev/null +++ b/charting_library/bundles/show-warning-alerts-max-total-count-exceeded.f45f575da01e51b48505.js @@ -0,0 +1,8 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3091],{2742:e=>{e.exports={body:"body-sm3KMBIc"}},13520:e=>{e.exports={header:"header-Dtkdqc5O",close:"close-Dtkdqc5O"}},82561:e=>{e.exports={message:"message-d3vP5HJI",error:"error-d3vP5HJI"}},6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},37062:e=>{e.exports={footer:"footer-hDDUbPct"}},17683:e=>{e.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},21935:e=>{e.exports={wrap:"wrap-2oYqsh7S",container:"container-2oYqsh7S",backdrop:"backdrop-2oYqsh7S",modal:"modal-2oYqsh7S",dialog:"dialog-2oYqsh7S"}},87359:e=>{e.exports={modal:"modal-yz1wLnOP",crossButton:"crossButton-yz1wLnOP",dialog:"dialog-yz1wLnOP",body:"body-yz1wLnOP",header:"header-yz1wLnOP",warningIcon:"warningIcon-yz1wLnOP",footerButtons:"footerButtons-yz1wLnOP",cancelButton:"cancelButton-yz1wLnOP"}},71036:(e,t,n)=>{"use strict";n.d(t,{SquareAnchorButton:()=>w,SquareButton:()=>m});var o=n(59496),r=n(97754),s=n(95604),i=n(9745),a=n(6539),c=n.n(a);function l(e){const{color:t="brand",size:n="medium",variant:o="primary",stretch:i=!1,icon:a,startIcon:l,endIcon:d,iconOnly:u=!1,className:h,isGrouped:p,cellState:m,disablePositionAdjustment:v=!1}=e,w=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,c()["no-corner-top-left"])),2&e&&(t=r(t,c()["no-corner-top-right"])),4&e&&(t=r(t,c()["no-corner-bottom-right"])),8&e&&(t=r(t,c()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(m)) +;return r(h,c().button,c()["size-"+n],c()["color-"+t],c()["variant-"+o],i&&c().stretch,(a||l)&&c()["with-start-icon"],d&&c()["with-end-icon"],u&&c()["icon-only"],w,p&&c().grouped,p&&!v&&c()["adjust-position"],p&&m.isTop&&c()["first-row"],p&&m.isLeft&&c()["first-col"])}function d(e){const{size:t,startIcon:n,icon:r,iconOnly:s,children:a,endIcon:l}=e,d=null!=n?n:r;return o.createElement(o.Fragment,null,d&&"xsmall"!==t&&o.createElement(i.Icon,{icon:d,className:c()["start-icon-wrap"]}),a&&o.createElement("span",{className:c().content},a),l&&!s&&"xsmall"!==t&&o.createElement(i.Icon,{icon:l,className:c()["end-icon-wrap"]}))}var u=n(86332),h=n(90186);function p(e){const{className:t,color:n,variant:o,size:r,stretch:s,animated:i,icon:a,iconOnly:c,startIcon:l,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function m(e){const{reference:t,...n}=e,{isGrouped:r,cellState:s,disablePositionAdjustment:i}=(0,o.useContext)(u.ControlGroupContext),a=l({...n,isGrouped:r,cellState:s,disablePositionAdjustment:i});return o.createElement("button",{...p(n),className:a,ref:t},o.createElement(d,{...n}))}function v(e){const{className:t,color:n,variant:o,size:r,stretch:s,animated:i,icon:a,iconOnly:c,startIcon:l,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function w(e){const{reference:t}=e,{isGrouped:n,cellState:r,disablePositionAdjustment:s}=(0,o.useContext)(u.ControlGroupContext),i=l({...e,isGrouped:n,cellState:r,disablePositionAdjustment:s});return o.createElement("a",{...v(e),className:i,ref:t},o.createElement(d,{...e}))}},35582:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>m});var o=n(59496),r=n(97754),s=n(9745),i=n(64120),a=n(12565),c=n(95781),l=n(7801),d=n(33584),u=n(16178),h=n.n(u);function p(e="l"){switch(e){case"l":return i;case"m":return a;case"s":return c;case"xs":return l;case"xxs":return d;default:return a}}const m=o.forwardRef((e,t)=>{const{className:n,size:i,...a}=e,c=r(h()["close-button"],h()["button-"+i],n);return o.createElement("button",{...a,type:"button",className:c,ref:t},o.createElement(s.Icon,{icon:p(i),className:h()["close-icon"],"aria-hidden":!0}))})},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(59496).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>r});var o=n(59496);const r=o.forwardRef((e,t)=>{const{icon:n="",...r}=e;return o.createElement("span",{...r,ref:t,dangerouslySetInnerHTML:{__html:n}})})},90186:(e,t,n)=>{"use strict";function o(e){return s(e,i)}function r(e){return s(e,a)}function s(e,t){const n=Object.entries(e).filter(t),o={};for(const[e,t]of n)o[e]=t;return o}function i(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,{ +filterDataProps:()=>o,filterAriaProps:()=>r,filterProps:()=>s,isDataAttribute:()=>i,isAriaAttribute:()=>a})},94197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showWarningAlertsMaxTotalCountExceededImpl:()=>E});n(94419);var o=n(28353),r=n(59496),s=n(87995),i=n(9182),a=n(3767),c=n(71036),l=n(9481),d=n(9745),u=n(57796),h=n(52150),p=n(67844),m=n(87359);const v=o.t("Close",{context:"input"}),w=o.t("Cancel"),f=o.t("Ok");class g extends r.PureComponent{constructor(e){super(e),this._onOk=()=>{this.props.onOk&&this.props.onOk()},this._onClose=()=>{this.props.onClose&&this.props.onClose()},this._detectMobileClient=()=>{const{width:e,breakpoints:t}=h.mediaState;let n=!1;n=!!(e&&e<=t.phone),this.setState({isMobileClient:n})},this.state={isMobileClient:!1}}componentDidMount(){this._detectMobileClient(),h.mediaState.on("changeDevice",this._detectMobileClient)}componentWillUnmount(){h.mediaState.off("changeDevice",this._detectMobileClient)}render(){return r.createElement(a.Modal,{...this.props,"data-name":"warning-modal",className:m.modal,onClickOutside:this.props.canCloseByOutsideClick?this._onClose:void 0},this.props.showClosingCross&&r.createElement(p.CloseButton,{"aria-label":v,onClick:this._onClose,className:m.crossButton}),r.createElement(i.Body,{className:m.dialog},r.createElement("div",{className:m.header,"data-name":"header-title"},r.createElement(d.Icon,{icon:u,className:m.warningIcon}),this.props.title),r.createElement("div",{className:m.body},r.createElement(l.KeyboardDocumentListener,{keyCode:27,handler:this._onClose}),r.createElement(l.KeyboardDocumentListener,{keyCode:13,handler:this._onOk}),r.createElement("div",null,this.props.children),r.createElement("div",{className:m.footerButtons},this.props.onCancel&&r.createElement(c.SquareButton,{className:m.cancelButton,stretch:this.state.isMobileClient,color:"gray",variant:"secondary",onClick:this.props.onCancel,name:"cancel-button"},this.props.cancelText||w),r.createElement(c.SquareButton,{onClick:this.props.onOk||this._onClose,name:"ok-button"},this.props.okText||f)))))}}var C=n(8859);const k=o.t("Alert limit reached"),x=o.t("Uh oh! Looks like you've reached the {count} alert limit. Please remove any or all unnecessary alerts in order to add any new ones.").format({count:"2000"}),y=o.t("Remove all inactive"),b=o.t("Close",{context:"input"});function E(){const e=document.createElement("div");function t(){s.unmountComponentAtNode(e)}s.render(r.createElement(g,{title:k,isOpened:!0,onCancel:t,onOk:function(){s.unmountComponentAtNode(e),(0,C.getPriceAlertsDispatcher)().then(e=>{e.deleteAllAlerts({symbol:null,resolution:null,showConfirm:!0,active:!1})})},onClose:t,cancelText:b,okText:y},x),e)}},39640:(e,t,n)=>{"use strict";function o(e,t,n,o,r){function s(r){if(e>r.timeStamp)return;const s=r.target;void 0!==n&&null!==t&&null!==s&&s.ownerDocument===o&&(t.contains(s)||n(r))}return r.click&&o.addEventListener("click",s,!1),r.mouseDown&&o.addEventListener("mousedown",s,!1),r.touchEnd&&o.addEventListener("touchend",s,!1),r.touchStart&&o.addEventListener("touchstart",s,!1),()=>{ +o.removeEventListener("click",s,!1),o.removeEventListener("mousedown",s,!1),o.removeEventListener("touchend",s,!1),o.removeEventListener("touchstart",s,!1)}}n.d(t,{addOutsideEventListener:()=>o})},74664:(e,t,n)=>{"use strict";n.d(t,{breakpoints:()=>o,mobileFirstBreakpoints:()=>r,mobileFirstLegacyBreakpoints:()=>s});const o={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},r={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},s={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},68722:(e,t,n)=>{"use strict";n.d(t,{getScrollbarWidth:()=>o,matchMediaMinMax:()=>r,setStyle:()=>s,getCSSProperty:()=>i,getCSSPropertyNumericValue:()=>a});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=r-i}return e}})();function r(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function s(e,t,n){null!==e&&e.style.setProperty(t,n)}function i(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(i(e,t))}},52150:(e,t,n)=>{"use strict";n.d(t,{mediaState:()=>l});var o=n(85459),r=n.n(o),s=n(69677),i=n(74664),a=n(68722);class c extends(r()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=i.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(i.breakpoints).sort(([e,t],[n,o])=>t-o).forEach(([e,t],n,o)=>{let r;if(0!==n){const[,e]=o[n-1];r=e+1}else r=0;const s=(0,a.matchMediaMinMax)(r,t);s.matches&&this._setNewDevice(e),s.addListener(t=>{t.matches&&(this._checkDevice(),this._setNewDevice(e))})}),(0,s.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(e){const t=this.device;this.device=e,this.trigger("changeDevice",[e,t])}}const l=new c},67844:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>o.CloseButton});var o=n(35582)},9182:(e,t,n)=>{"use strict";n.d(t,{Body:()=>d,Header:()=>c,Message:()=>p});var o=n(59496),r=n(97754),s=n(13520),i=n(49370),a=n(9745);function c(e){const t=e.hideIcon?null:o.createElement(a.Icon,{className:s.close,icon:i,onClick:e.onClose});return o.createElement("div",{className:r(s.header,e.className),"data-dragg-area":!0,ref:e.reference},e.children,t)}n(37062) +;var l=n(2742);function d(e){return o.createElement("div",{className:r(l.body,e.className),ref:e.reference},e.children)}var u=n(58095),h=n(82561);function p(e){let t;e.text?t=o.createElement("span",null,e.text):e.html&&(t=o.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}));const n=(0,u.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:e.onClickOutside});if(!t)return null;const s=r(h.message,e.className,{[h.error]:e.isError});return o.createElement("div",{className:s,key:"0"},o.createElement("span",{ref:n},t))}},98526:(e,t,n)=>{"use strict";n.d(t,{Dialog:()=>l});var o=n(59496),r=n(97754),s=n(50655),i=n(88216),a=n(90186),c=n(17683);class l extends o.PureComponent{constructor(){super(...arguments),this._manager=new i.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:i=!1,className:l,backdrop:d}=this.props,u=r(l,c.dialog,e&&c.rounded,t&&c.shadowed,n&&c.fullscreen,i&&c.darker),h=(0,a.filterDataProps)(this.props),p=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(s.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:c.backdrop}),o.createElement("div",{...h,className:u,style:p,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(s.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:r,zIndex:s,height:i}=this.props;return{bottom:e,left:t,right:o,top:r,zIndex:s,maxWidth:n,height:i}}}},3767:(e,t,n)=>{"use strict";n.d(t,{Modal:()=>d});var o=n(59496),r=n(97754),s=n(98526),i=n(86431),a=n(76594),c=n(21935);class l extends o.PureComponent{constructor(){super(...arguments),this._containerRef=null,this._handleContainerRef=e=>{this._containerRef=e}}componentDidMount(){var e;this.props.autofocus&&(null===(e=this._containerRef)||void 0===e||e.focus())}render(){const{zIndex:e,onClickOutside:t,children:n,className:i}=this.props;return o.createElement("div",{ref:this._handleContainerRef,style:{zIndex:e},"data-dialog-name":this.props["data-dialog-name"],tabIndex:-1},o.createElement("div",{className:c.backdrop}),o.createElement("div",{className:c.wrap},o.createElement("div",{className:c.container},o.createElement(a.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:t},e=>o.createElement("div",{className:c.modal,ref:e},o.createElement(s.Dialog,{...this.props,className:r(i,c.dialog)},n))))))}}l.defaultProps={width:500};const d=(0,i.makeOverlapable)(l)},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>s});var o=n(59496),r=n(39640);function s(e){const{click:t,mouseDown:n,touchEnd:s,touchStart:i,handler:a,reference:c,ownerDocument:l=document}=e,d=(0,o.useRef)(null),u=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n, +touchEnd:s,touchStart:i},o=c?c.current:d.current;return(0,r.addOutsideEventListener)(u.current,o,a,l,e)},[t,n,s,i,a]),c||d}},9481:(e,t,n)=>{"use strict";n.d(t,{KeyboardDocumentListener:()=>r});var o=n(59496);class r extends o.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>r});var o=n(58095);function r(e){const{children:t,...n}=e;return t((0,o.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>s,getRootOverlapManager:()=>a});var o=n(88537);class r{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(i.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>s});var o=n(59496),r=n(65718);function s(e){ +return class extends o.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const s=o.createElement(e,{...this.props,zIndex:150});return"parent"===n?s:o.createElement(r.Portal,null,s)}}}},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>c,PortalContext:()=>l});var o=n(59496),r=n(87995),s=n(9423),i=n(88216),a=n(50655);class c extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",r.createPortal(o.createElement(l.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,i.getRootOverlapManager)():this.context}}c.contextType=a.SlotContext;const l=o.createContext(null)},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>r,SlotContext:()=>s});var o=n(59496);class r extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=o.createContext(null)},64120:e=>{e.exports=''},12565:e=>{e.exports=''},95781:e=>{e.exports=''},7801:e=>{e.exports=''},33584:e=>{e.exports=''},49370:e=>{e.exports=''},57796:e=>{ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/signin-dialog.e9f4471305a72e10e137.js b/charting_library/bundles/signin-dialog.e9f4471305a72e10e137.js new file mode 100644 index 00000000..6a7b9659 --- /dev/null +++ b/charting_library/bundles/signin-dialog.e9f4471305a72e10e137.js @@ -0,0 +1,33 @@ +(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6123],{52014:()=>{},5641:()=>{},60401:()=>{},78501:()=>{},86331:()=>{},90105:t=>{t.exports={"remember-label":"remember-label-dNMMjHmM",remember:"remember-dNMMjHmM","back-button":"back-button-dNMMjHmM",title:"title-dNMMjHmM",header:"header-dNMMjHmM",forgot:"forgot-dNMMjHmM",recaptchaContainer:"recaptchaContainer-dNMMjHmM",footer:"footer-dNMMjHmM footer-TQ5uusV5","footer-padding":"footer-padding-dNMMjHmM footer-padding-TQ5uusV5",link:"link-dNMMjHmM link-TQ5uusV5",animated:"animated-dNMMjHmM animated-TQ5uusV5"}},10053:t=>{t.exports={animated:"animated-o40zHVRt animated-TQ5uusV5"}},75319:t=>{t.exports={"second-authentication":"second-authentication-BUCgUS88",title:"title-BUCgUS88","signin-input":"signin-input-BUCgUS88","code-input":"code-input-BUCgUS88","backup-link":"backup-link-BUCgUS88","authenticator-link":"authenticator-link-BUCgUS88","get-code":"get-code-BUCgUS88","input-container":"input-container-BUCgUS88","button-link":"button-link-BUCgUS88",hide:"hide-BUCgUS88","spinner-container":"spinner-container-BUCgUS88","code-ttl":"code-ttl-BUCgUS88",link:"link-BUCgUS88",animated:"animated-BUCgUS88 animated-TQ5uusV5"}},48312:t=>{t.exports={title:"title-TQ5uusV5",footer:"footer-TQ5uusV5",animated:"animated-TQ5uusV5","hide-animated":"hide-animated-TQ5uusV5","footer-padding":"footer-padding-TQ5uusV5",link:"link-TQ5uusV5"}},93579:()=>{},57229:(t,e,i)=>{"use strict";i.r(e),i.d(e,{bannerPrivacyPreferenceKey:()=>p,checkCookiePolicy:()=>v,cookieBannerDelegate:()=>g,initCookiesNotification:()=>b,oldBannerKey:()=>h,onAccept:()=>m,removeOldCookieBannerKey:()=>_,showCookiesNotification:()=>w});var n=i(11417),s=i(84015),o=(i(51872),i(81836)),a=i(46433),r=i(85198);const l=(0,i(98125).getLogger)("User.GeoInfo");let d;var c=i(98999),u=i(11542);const h="cookieBanner",p="cookiePrivacyPreferenceBanner",g=(0,o.createDeferredPromise)();function _(){return n.TVLocalStorage.removeItem(h)}function v(t){return"accepted"===n.TVLocalStorage.getItem(t)||"notApplicable"===n.TVLocalStorage.getItem(t)}function m(){n.TVLocalStorage.setItem(p,"accepted")}let f=!1;async function w(){if(f)return;f=!0;const t=await Promise.all([i.e(5514),i.e(8463),i.e(8844),i.e(4408),i.e(1253),i.e(6464),i.e(5064),i.e(724),i.e(9255),i.e(9957),i.e(8869)]).then(i.bind(i,44598));await t.showCookiesNotification()&&(m(),(0,u.trackCookies)("click","accept_all")),f=!1}async function b(){var t;const e=document.querySelector(".js-main-page-promo-container");if(!v(p)&&!(0,s.isOnMobileAppPage)("any")){e||g.resolve();if((null===(t=(0,a.getFreshInitData)().currentLocaleInfo)||void 0===t?void 0:t.is_in_european_union)||"ignored"===n.TVLocalStorage.getItem(p))return g.promise.then(()=>w());{const t=await(void 0!==d||(d=(0,r.fetch)("/check_language/",{method:"POST"}).then(t=>{if(t.ok)return t.json();throw new Error(t.statusText)}).catch(t=>(l.logWarn(t.message),{}))),d);if(t.is_in_european_union||(i=t.country_code,["is","li","no","uk"].includes(i)))return n.TVLocalStorage.setItem(p,"ignored"),g.promise.then(()=>w()) +;n.TVLocalStorage.setItem(p,"notApplicable"),(0,c.setCookieSetting)(c.CookieSettings.Analytics,!0),(0,c.setCookieSetting)(c.CookieSettings.Advertising,!0)}}var i}},20497:(t,e,i)=>{"use strict";var n=i(23127);const s=i(98125).getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(o,a,r){var l,d,c;return"get"===o?l=a:(d=a,"object"==typeof o&&void 0===a?(d=o,o="init"):"string"!=typeof o&&(o="init")),"getInstance"===o?n(this).eq(0).data(t):"destroy"===o?(c=n(this).eq(0).data(t))?void("function"==typeof c.destroy?(i(c,"destroy",d),n(this).eq(0).removeData(t)):s.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===o?(c=n(this).eq(0).data(t))?"function"==typeof c[l]?i(c,l,r):c[l]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):n(this).each((function(){var a=n(this),r=a.data(t);void 0===r&&(r=void 0===d?e(a):e(a,d),a.data(t,r)),"init"!==o&&("function"==typeof r[o]?i(r,o,d):s.logError("[Block Plugin] "+t+" does not support command "+o))}))};function i(t,e,i){return void 0===i?t[e]():t[e](i)}}},78754:(t,e,i)=>{"use strict";i.d(e,{buttonLoader:()=>a});i(52014);var n=i(20497),s=i(68587),o=i(23127);function a(t){return new r(o(t))}o.fn.tvButtonLoader=(0,n.createTvBlockWithInstance)("tv-button-loader",(function(t){return new r(t)}));class r{constructor(t){this.$btn=o(t).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html(''+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*s.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},s.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){this.loading?this.stop():this.start()}contentHtml(t){return t?(this.$btn.find(".tv-button__text").html(t),t):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0)}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},22358:(t,e,i)=>{"use strict";i.d(e,{controlError:()=>r});i(5641);var n=i(20497),s=i(68587),o=i(23127);class a{ +constructor(t,{addFocusEvents:e=!0,addErrorOnElement:n=!0,leftMessageAlign:s=!1,maxWidth:a,doNotShowIcon:r=!1}={}){function l(t,e){return t.some(t=>e.test(t))}let d=o(t);const c=d.hasClass("tv-control-checkbox__input"),u=d.hasClass("tv-control-radio__input"),h=d.hasClass("tv-control-number-input"),p=l(d.attr("class").split(/\s+/),/^.+--size_small$/),g=l(d.attr("class").split(/\s+/),/^.+--size_large$/);this.options={smallMode:p,addErrorOnElement:n,maxWidth:a},c&&(d=d.closest(".tv-control-checkbox")),u&&(d=d.closest(".tv-control-radio-group")),this.errors={},this.$control=d;const _=d.get(0);d.data("tv-control-material")?this.$toWrap=d.data("tv-control-material").$el:"tvControlErrorWrap"in _.dataset?this.$toWrap=o(_.dataset.tvControlErrorWrap):d.data("tv-control-error-wrap")?this.$toWrap=d.data("tv-control-error-wrap"):this.$toWrap=d,this.$toWrap.parent().hasClass("tv-control-error")||this.$toWrap.wrap(`
`),this.$el=this.$toWrap.parent(),c&&this.$el.addClass("tv-control-error--msg_left"),p&&this.$el.addClass("tv-control-error--size_small"),g&&this.$el.addClass("tv-control-error--size_large"),c||r||(this.$icon=this.$el.find(".tv-control-error__icon"),this.$icon.length||(this.$icon=o(`${o("
").append(o(i(53870)).attr("focusable","false")).html()}`).appendTo(this.$el)),d.data("tv-control-material")&&this.$icon.addClass("tv-control-error__icon--material-input")),this.$widthControlWrapper=this.$el.find(".tv-control-error__width-control-wrapper"),this.$widthControlWrapper.length||(this.$widthControlWrapper=o('
').appendTo(this.$el)),this.$widthControlWrapper.css("width",this.options.maxWidth),s&&this.$widthControlWrapper.addClass("tv-control-error__width-control-wrapper--from-left"),this.$messages=this.$el.find(".tv-control-error__messages"),this.$messages.length||(this.$messages=o('').appendTo(this.$widthControlWrapper)),d.on("focus",()=>{this.$el.addClass("i-focus"),d.removeClass("i-error"),e&&d.on("keyup.tv-control-error",t=>{9!==t.keyCode&&16!==t.keyCode&&(this.clear().render(),this.$el.removeClass("i-focus"),d.off("keyup.tv-control-error"))})}),d.on("blur",()=>{this.$el.removeClass("i-focus"),this.hasErrors()&&d.addClass("i-error")})}add({id:t,message:e}){return this.errors[t]=e,this}remove({id:t}){return delete this.errors[t],this}clear(){return this.errors={},this}hasErrors(){return!!Object.keys(this.errors).length}render(){this.emptyTimeout&&clearTimeout(this.emptyTimeout);var t=Object.keys(this.errors);if(t.length){this.$messages.empty(),this.$el.addClass("i-error"),this.options.addErrorOnElement&&this.$control.addClass("i-error");for(var e=0;e${this.errors[t[e]]}`).appendTo(this.$messages)}else this.$el.removeClass("i-error"),this.$control.removeClass("i-error"),this.emptyTimeout=setTimeout(()=>{ +this.$messages.empty()},s.dur);return this}}function r(t,e){return new a(o(t),e)}o.fn.tvControlError=(0,n.createTvBlockWithInstance)("tv-control-error",(function(t,e){return new a(t,e)}))},43209:(t,e,i)=>{"use strict";i.d(e,{formValidate:()=>p});var n=i(28353),s=i(20497),o=(i(22358),i(18609));function a(t){return null==t.which?t.keyCode<32?null:String.fromCharCode(t.keyCode):0!==t.which&&0!==t.charCode?t.which<32?null:String.fromCharCode(t.which):null}var r=i(23127);const l=i(98125).getLogger("CommonUI.TVFormValidate"),d={required:(0,n.t)("This field is required"),number:(0,n.t)("Please enter a valid number"),digit:(0,n.t)("Please enter only digits"),email:(0,n.t)("Please enter a valid email address"),password:(0,n.t)("Your password should be at least 7 characters long that include letters and numbers."),weakPassword:(0,n.t)("Please use a stronger password"),pattern:(0,n.t)("Please match the requested format"),url:(0,n.t)("Please enter a valid URL"),minlength:(0,n.t)("Please enter at least {number} characters"),maxlength:(0,n.t)("Please enter no more than {number} characters"),min:(0,n.t)("Please enter a value greater than or equal to {number}"),max:(0,n.t)("Please enter a value less than or equal to {number}"),latin:(0,n.t)("Only English language is allowed"),"latin-for-en-local":(0,n.t)("Only English language is allowed"),maxfilesize:(0,n.t)("Max file size is {size}"),fileextensions:function(t){return r.isArray(t)||(t=[t]),(0,n.t)("Allowed extension is {extensions}").format({extensions:t.join(", ")})}},c=function(t,e,i){if("function"==typeof t)return t(e,i)},u={required:function(t,e,i){if("function"!=typeof t||t(e,i))switch(i.attr("type")){case"checkbox":if(!i.is(":checked"))return d.required;break;default:if(""===e.trim())return d.required}},type:function(t,e,i){if(""!==e)switch(t){case"number":if(isNaN(e))return d.number;break;case"digits":if(isNaN(e))return d.digit;break;case"email":if(!/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i.test(e))return d.email;break;case"password":if(i.data("strength")){const t=/\d/.test(e)&&/[^\d_\s.;:,\\/|@!#?$%^&*()[\]\-+={}'"<>~`±§]/.test(e);if(e.length<7||!t)return i.data("too_easy",!0),d.password;if(/^\d?(.)\1+\d?$/.test(e)||/^.?(\d)\1+.?$/.test(e))return i.data("too_easy",!0),d.weakPassword;i.removeData("too_easy")}break;case"url":if(!/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3} ){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e))return d.url}},pattern:function(t,e){if(""!==e){if(!new RegExp(t).test(e))return d.pattern}},minlength:function(t,e){if(""!==e&&e.lengthparseInt(t))return d.maxlength.format({number:t})},min:function(t,e){if(""!==e&&parseFloat(e)parseFloat(t))return d.max.format({number:t})},latin:function(t,e){if(""!==e&&!(0,o.isLatin)(e))return d.latin},"latin-for-en-local":function(t,e){if(""!==e&&"en"===window.locale&&!(0,o.isLatin)(e))return d.latin},maxfilesize:function(t,e,i){if(""===e)return;const s=i.get(0),o=s.files[0].size,a=parseInt(t);return s.files||l.logWarn("This browser doesn't seem to support the `files` property of file inputs."),at.toLowerCase());return-1===o.indexOf(s)?d.fileextensions(o):void 0},custom:c,"custom-change":c,"custom-blur":c};class h{constructor(t,e={}){this.$form=t;const i=["input","textarea"],n=[":submit",":reset",":image",":disabled",'[type="hidden"]',".js-validate-ignore"];void 0!==e.validateElements&&i.push(...e.validateElements),void 0!==e.ignoreElements&&n.push(...e.ignoreElements),this.$controls=t.find(i.join()).not(n.join()).tvControlError(),this.rules={},this.fields={},this.valid=!0,this.$controls.each((t,e)=>{const i=r(e),n=i.attr("name"),s=i.tvControlError("getInstance");this.fields[n]={$el:i,view:s},this.rules[n]={},this.rules[n].required=i.attr("required"),this.rules[n].type=i.attr("type"),this.rules[n].pattern=i.attr("pattern"),this.rules[n].maxlength=i.attr("maxlength"),this.rules[n].minlength=i.attr("minlength"),this.rules[n].min=i.attr("min"),this.rules[n].max=i.attr("max"),this.rules[n].maxfilesize=i.attr("maxfilesize"),this.rules[n].fileextensions=i.attr("fileextensions"),this.rules[n].latin=i.data("rule-latin"),this.rules[n]["latin-for-en-local"]=i.data("rule-latin-for-en-local"),this.rules[n].latin&&i.on("keypress",t=>{this.testChar(n,a(t),"latin")}),this.rules[n]["latin-for-en-local"]&&i.on("keypress",t=>{this.testChar(n,a(t),"latin-for-en-local")}),i.on("blur",()=>{this.validateField(n,["required","custom-change"])}),i.on("change",()=>{s.clear(),this.validateField(n,["custom-blur"])})}),e.onError&&"function"==typeof e.onError&&(this.onError=e.onError),e.onChange&&"function"==typeof e.onChange&&(this.onChange=e.onChange),e.rules&&r.extend(!0,this.rules,e.rules),t.attr("novalidate","novalidate"),!1!==e.submitValidate&&t.on("submit",t=>{this.validate()||t.preventDefault()}),t.on("reset",t=>{this.clear()})}validateField(t,e=[]){if(void 0===this.rules[t])return;void 0!==this.onChange&&this.onChange(this.isValid());const i=this.fields[t].$el,n=this.rules[t],s=Object.keys(n);for(let o=0;o{const e=this.fields[t].$el,i=this.rules[t];return!Object.keys(i).filter(t=>null!=i[t]).some(t=>{const n=u[t](i[t],e.val(),e);return Boolean(n)})})}validate(){this.valid=!0;const t=Object.keys(this.rules);for(let e=0;e{"use strict";async function n(t){(await Promise.all([i.e(5514),i.e(9129),i.e(2888),i.e(4956),i.e(8844),i.e(9961),i.e(5380),i.e(1065),i.e(1e3),i.e(6066)]).then(i.bind(i,70148))).renderGoToTradingViewReferralDialog(t)}i.d(e,{showGoToTradingViewReferralDialog:()=>n})},976:(t,e,i)=>{"use strict";i.d(e,{TVModal:()=>_});var n=i(28353),s=i(68587),o=i(49483),a=i(43989),r=i(51536),l=i(4185),d=i(85739),c=i(25760),u=i(23127),h=i(25977);let p=[];const g={ajax:{},closingDuration:s.dur/2,fixBodyState:!0,overlayTemplate:'
',containerTemplate:'
',ajaxErrorTemplate:`
${(0,n.t)("Error")}
`};class _ extends r.TVDialogAbstract{constructor(t={}){if(super({...g,...t}),this.$overlay=u(this.options.overlayTemplate),this.$modalWrap=u(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{p.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||u.noop,e=this.options.ajax.success||!1,i=this.options.ajax.error||u.noop;u.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(e?e(this,t):t).showContent(), +this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,e)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),u(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=u.ajax(this.options.ajax):this.showContent()};return o.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&d.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),p=h.without(p,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),p.length>0&&p[p.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*s.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},10777:(t,e,i)=>{"use strict";i.r(e),i.d(e,{firstLoginDataUrl:()=>s,accumulateErrors:()=>o,fetchPost:()=>a,firstLoginData:()=>r,resendLink:()=>l,signinUrl:()=>d,signin:()=>u,signupUrl:()=>h,signup:()=>p,ApiError:()=>g,AggregateError:()=>_,recoverPasswordUrl:()=>v,recoverPassword:()=>m,resetPassword:()=>f});var n=i(85198);const s="/accounts/first_login_data/";function o(t,e){return Object.entries(t).map(t=>new g(t[1].join("\n"),e,t[0]))}function a(t,e){return(0,n.fetch)(t,{method:"POST",credentials:"include",mode:"same-origin",body:e})}function r(t){return a(s,t).then(t=>t.ok?t.json():t.json().then(e=>{throw new _(o(e.errors,t.status))}))}function l(){ +return a("/api/v1/users/anon/change-email/resend/").then(t=>t.ok?t.json():t.json().then(t=>{throw Error(t.error)}))}const d="/accounts/signin/";function c(t){return t.json().then(e=>{if("error"in e&&""!==e.error||"code"in e||!t.ok)throw new g(e.error||e.detail,t.status,e.code,e.two_factor_types);return e})}function u(t){return a(d,t).then(c)}const h="/accounts/signup/";function p(t){return a(h,t).then(t=>t.json().then(e=>{if("errors"in e&&""!==e.errors)throw new _(o(e.errors,t.status))}))}class g extends Error{constructor(t,e,i,n){super(t),this.type=i,this.status=e}}class _ extends Error{constructor(t){super(t.map(t=>t.message).join("\n")),this.errors=[],this.errors=t}}const v="/api/v1/recover_password/search/";function m(t){return a(v,t).then(c)}function f(t){return a("/accounts/reset_password/",t).then(t=>400===t.status?t.json().then(e=>{if("errors"in e)throw new _(o(e.errors,t.status));throw new g(e.detail,t.status,e.code)}):c(t))}},14153:(t,e,i)=>{"use strict";i.r(e),i.d(e,{isSignModalOpen:()=>te,showSignModal:()=>Xt});var n=i(976),s=i(95227),o=i(78754),a=(i(60401),i(20497)),r=i(23127);class l{constructor(t,e={}){var i=t.prop("tagName").toLowerCase(),n=t.prop("readonly"),s=t.prop("disabled"),o="tv-control-material-"+i,a=r(document.createElement("span")).addClass(o+"__label").text(t.attr("placeholder")||""),l=r(document.createElement("div")).addClass(o+"__wrap"),d=t.get(0);if(d&&d.classList){for(var c=[],u=0;u{n||s||a.addClass("i-up")}),t.on("blur",()=>{""===t.val()&&a.removeClass("i-up")}),t.on("change",()=>{""!==t.val()&&a.addClass("i-up")}),this.$el.on("click",()=>{t.focus()}),""!==t.attr("value")&&void 0!==t.attr("value")&&a.addClass("i-up")}}function d(t,e){return new l(r(t),e)}r.fn.tvControlMaterial=(0,a.createTvBlockWithInstance)("tv-control-material",(function(t,e){return new l(t,e)}));i(43209),i(48743);var c=i(74607),u=i(21097),h=i(10777),p=i(62974),g=i.n(p),_=i(88537),v=i(4185),m=i(9423),f=i(76266),w=i(28353),b=i(68587),y=i(23127),k=i(13398);const $=w.t,C=b,I=h,S=(0,m.guid)(),x="email-signup__marketing-mail-wrap__"+S,T="email-signup__marketing-mails-checkbox-wrap__"+S;var E=i(11417),L=i(84015),B=i(76422),j=i(98125),R=i(51768),A=i(60498),V=i(62674),P=i(96599),O=i(8170),M=i(90309),F=i(38665),q=i(51741),D=i(16625);const z=(0,j.getLogger)("Disalogs.SocialsHelper"),W={twitter:{title:"Twitter",vendor:"twitter",icon:A},google:{title:"Google",vendor:"google-oauth2",icon:V},facebook:{title:"Facebook",vendor:"facebook",icon:P},yahoo:{title:"Yahoo!",vendor:"yahoo",icon:O},"apple-id":{title:"Sign in with Apple",vendor:"apple-id",icon:M},linkedin:{title:"Linked In",vendor:"linkedin-oauth2",icon:F},naver:{title:"Naver",vendor:"naver",icon:q},kakao:{title:"Kakao",vendor:"kakao", +icon:D}};function U(t){return t in W?W[t]:(z.logError("Unknown social vendor "+t),null)}function N(t,e){for(const i of Object.values(W)){const n=i.vendor;let s=`/accounts/signin/${n}/`;const o=(0,c.getUrlParams)(),a=(0,c.createUrlParams)({utm_source:o.utmsource,utm_medium:o.utmmedium,feature_source:e.featureSource,referral_program_id:e.referralProgramId,aff_id:e.affId,source:e.source,aff_sub:e.affSub,url_id:e.urlId,file_id:e.fileId});a&&(s+="?"+a);const r=t.querySelector(".js-social-auth--"+n);null!==r&&r.addEventListener("click",t=>{if(t.preventDefault(),e.isResetPasswordForm&&(0,L.isOnMobileAppPage)("any"))return(0,R.trackEvent)("AccountRecoveryMobile","click_sign_in_via_social_newtorks_on_mobile",n),void B.emit("AccountRecoverySocialButtonClick",n);e.callBack&&e.callBack(),window.open(s,"_blank")})}}var H=i(75072);function G(t,e,i,n,s){let o="";if(n=n?"; path="+n:"",s=s?"; domain="+s:"",i){const t=new Date;t.setTime(t.getTime()+24*i*60*60*1e3),o="; expires="+t.toUTCString()}else o="";document.cookie=t+"="+e+o+s+n}function K(t){const e=t+"=",i=document.cookie.split(";");for(let t=0;t
\n\t\t\n\t\t\n\t`}(e,i)),o&&(r+=function(t,e){const i=[];let n="";t.forEach(t=>{const e=U(t);var s,o,a;null!==e&&(i.push(e.title),n+=(s=e.vendor,o=e.title,a=e.icon,`\n\t\t\n\t`))});return`\n\t\t${st(e?(0,w.t)("OR sign in via your social media account that you used in the past"):(0,w.t)("We have detected that you have registered with {social_list}. To gain access to your account, log in through your social networks.").format({social_list:i.join(", ")}),"tv-signin-dialog__text--social-text")}\n\t\t\n\t`}(n,s),s||(a=(0,w.t)("Your account was created through a social network"))),s||o||(r+=`\n\t\t${st((0, +w.t)("We are unable to reset your password since you failed to provide your contact details. Please try again or create a new account."))}\n\t\t\n\t`,a=(0,w.t)("Oops! Looks like there is no email or phone number linked with your account")),nt(a,r)}function et(t){return``}function it(t,e){return``}function nt(t,e){return`\n\t\t
\n\t\t\t\n\t\t\t${e}\n\t\t
\n\t`}function st(t,e){return`\n\t\n\t`}var ot=i(23127);function at(t){lt(t).checked=!0}function rt(t){return lt(t).value}function lt(t){return(0,_.ensureNotNull)(t.querySelector("input"))}const dt=(0,j.getLogger)("Idea.CategoriesProvider");class ct{constructor(t,e){this.onCallback=new(J()),this._resetMethod=null,this._data=t,this._updateView=e,this._show()}_show(){const t=this._updateView(tt(this._data));this._initResetPasswordFormHandlers(t)}_initResetPasswordFormHandlers(t){const e=Array.from(t.querySelectorAll(".js-radio"));e[0]&&(at(e[0]),this._resetMethod=rt(e[0]));for(const t of e)t.addEventListener("click",e=>{at(t),this._resetMethod=rt(t)});const i=t.querySelector(".js-select-method");if(null!==i){const t=ot(i).tvButtonLoader();i.addEventListener("click",async()=>{if(null!==this._resetMethod){t.tvButtonLoader("start");try{const e=K("reset-password-sid");let i=null;if(null!==e&&"email"!==this._resetMethod||(i=await(0,X.fetch)("/api/v1/recover_password/",{method:"POST",credentials:"include",body:JSON.stringify({signature:this._data.signature,method:this._resetMethod})})),t.tvButtonLoader("stop"),"email"===this._resetMethod){if(i&&!i.ok){const t=await i.json();return void this._showError(t.error)}const t=this._updateView(function(t){const e=`\n\t\t${st((0,w.t)("We have sent the mail to {email}. In order to complete the email verification process, you must click on the link inside.").format({email:et(t)}),"tv-signin-dialog__text--text-email")}\n\t\t${st((0,w.t)("Be sure to check your spam filters if you can't find the email. Haven't receive mail? {blue_text}Send mail again{blue_text_end}").format({blue_text:'"}),"tv-signin-dialog__text--description")}\n\t`;return nt((0,w.t)("Please check your email"),e)}(this._data.email));this._goToStartInit(t)}else{ +if(null===e&&null!==i){const t=await i.json();if(t.error)return void this._showError(t.error);G("reset-password-sid",JSON.stringify(t),10/1440,"/"),this._data=Object.assign(this._data,t)}else if(null!==e){const t=JSON.parse(e);this._data=Object.assign(this._data,t)}const t=this._updateView(function(){const t=`\n\t\t${st((0,w.t)("We've sent you a verification code. Once you receive the code, enter it below."))}\n\t\t
\n\t\t\t\n\t\t
\n\t\t${st((0,w.t)("I didn't receive the code"),"tv-signin-dialog__text--text-retry js-choose-again")}\n\t`;return nt((0,w.t)("Check your phone"),t)}());this._initCodeVerifyHandlers(t),this._goToStartInit(t)}}catch(e){dt.logError(e),this._showError(),t.tvButtonLoader("stop")}}})}const n=t.querySelector(".js-abort-reset");null!==n&&n.addEventListener("click",()=>{this._dialogAbort()});const s=t.querySelector(".js-socials");null!==s&&N(s,{isResetPasswordForm:!0})}_initCodeVerifyHandlers(t){const e={submitValidate:!1,rules:{"reset-code":{required:!1,custom:t=>/\b\d{6}\b/.test(t)?null:(0,w.t)("Incorrect verification code. Please check the entered code or request it again.")}}},i=ot((0,_.ensureNotNull)(t.querySelector(".js-phone-code-form"))).tvFormValidate(e).tvFormValidate("getInstance");(0,_.ensureNotNull)(t.querySelector(".js-code")).addEventListener("input",async t=>{const e=t.target.value;if(i.clear(),!(e.length<6)&&i.validate())try{const t=await(0,X.fetch)("/api/v1/recover_password/check_phone_code/",{method:"POST",credentials:"include",body:JSON.stringify({signature:this._data.signature,sid:this._data.sid,code:e})}),n=await t.json();return n.error?(i.clear(),void i.setError({name:"reset-code",error:n.error})):void(window.location.href=n.reset_password_link)}catch(t){dt.logError(t),this._showError()}})}_goToStartInit(t){(0,_.ensureNotNull)(t.querySelector(".js-choose-again")).addEventListener("click",t=>{t.preventDefault(),this._show()})}_dialogAbort(){this.onCallback.fire({event:"abort"})}_showError(t){this.onCallback.fire({event:"error",error:t})}}i(93579),i(49483);var ut=i(38663);const ht=new Promise((t,e)=>{if((0,L.isOnMobileAppPage)("any",!0))return void t();const i=(0,ut.appendScript)(`https://www.recaptcha.net/recaptcha/api.js?render=${window.RECAPTCHA_SITE_KEY_V3}&hl=${window.language}`);i.onload=()=>{window.grecaptcha.ready(t)},i.onerror=e});var pt=i(45345),gt=i(26843),_t=i(90105);const vt=i(43209).formValidate;class mt{constructor(t){this._guid=(0,m.guid)(),this._formId="recover-password__form__"+this._guid,this._identifierInputId="recover-password__identifier-input__"+this._guid,this._cancelButtonId="recover-password__cancel-button__"+this._guid,this._recaptchaContainerId="recover-password__recaptcha-container__"+this._guid,this._submitButtonId="recover-password__submit-button__"+this._guid, +this._cancelBtn=`\n\t\t\t\t\t\t\t\t\t\t${w.t("Cancel")}\n\t\t\t\t\t\t\t\t
`,this._container=null,this._formRef=()=>{var t;return null===(t=this._container)||void 0===t?void 0:t.querySelector("#"+this._formId)},this._identifierInputRef=()=>{var t;return null===(t=this._container)||void 0===t?void 0:t.querySelector("#"+this._identifierInputId)},this._cancelButtonRef=()=>{var t;return null===(t=this._container)||void 0===t?void 0:t.querySelector("#"+this._cancelButtonId)},this._recaptchaContainerRef=()=>{var t;return null===(t=this._container)||void 0===t?void 0:t.querySelector("#"+this._recaptchaContainerId)},this._submitButtonRef=()=>{var t;return null===(t=this._container)||void 0===t?void 0:t.querySelector("#"+this._submitButtonId)},this._showView=t}render(t){var e;const i=(0,L.isOnMobileAppPage)("any")?"":this._cancelBtn,n=`\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t${w.t("Search",{context:"forgot_password"})}\n\t\t\t\t\n\t\t\t\t${i}\n\t\t\t\n\t\t`;this._container=this._showView(n);const s=this._identifierInputRef();null===(e=this._cancelButtonRef())||void 0===e||e.addEventListener("click",t.onAbort),this._initRecaptcha();const a=this._formRef(),r=vt(a,{submitValidate:!1}),l=(0,o.buttonLoader)(this._submitButtonRef());d(s),null==a||a.addEventListener("submit",e=>{if(e.preventDefault(),!r.validate())return;const i=window.grecaptcha.getResponse(this._recaptchaId);if(0===i.length)return void t.onError({message:w.t("Please confirm that you are not a robot by clicking the captcha box")});l.start();const n=e=>{l.stop();new ct(e,this._showView).onCallback.subscribe(null,e=>{"abort"===e.event?this.render(t):t.onError({message:e.error})})};(0,h.recoverPassword)(JSON.stringify({identifier:s.value,"g-recaptcha-response":i})).then(n).catch(e=>{window.grecaptcha.getResponse(this._recaptchaId).length&&window.grecaptcha.reset(this._recaptchaId);404!==e.status?t.onError(e):n({email:"",phone:"",socials:[],signature:""})})})}_initRecaptcha(){ht.then(()=>{ +const t=this._recaptchaContainerRef();t&&(this._recaptchaId=window.grecaptcha.render(t,{sitekey:window.RECAPTCHA_SITE_KEY,theme:pt.watchedTheme.value()===gt.StdTheme.Dark?"dark":"light"}))})}}var ft=i(80054),wt=i(22358),bt=i(75319);const yt=w.t("Backup code"),kt=w.t("SMS or backup code"),$t=w.t("Code from your app or backup code"),Ct=w.t("Two-factor Authentication"),It=w.t("Enter the verification code from your Authenticator App or the message you received via SMS. If you don’t have access to your phone, you can enter a previously saved backup code."),St=w.t("I can't access my account"),xt=w.t("Get code"),Tt=w.t("If you don't receive a code in {codeTTL} seconds, you'll have the option of sending a new one."),[Et,,Lt]=Tt.split(/({codeTTL})/);class Bt{constructor(t){this._codeLength=6,this._reserveCodeLength=8,this._guid=(0,m.guid)(),this._secondAFContainerId="second-authentication-factor__container__"+this._guid,this._codeInputId="second-authentication-factor__code-input__"+this._guid,this._generateChallengeBtnId="second-authentication-factor__generate-challenge-button__"+this._guid,this._codeTTLId="second-authentication-factor__code-ttl__"+this._guid,this._spinnerContainerId="second-authentication-factor__spinner-container__"+this._guid,this._codeTTLUpdateInterval=500,this._inputError=null,this._content=null,this.dispose=()=>{clearInterval(this._codeTTLIntervalId)},this._onError=t=>{var e,i;null===(e=this._inputError)||void 0===e||e.add({id:this._codeInputId,message:t.message}),null===(i=this._inputError)||void 0===i||i.render()},this._setCodeTTL=t=>{this._codeExpDate=Date.now()+1e3*t,this._startTimer()},this._onGenerateChallenge=(t,e)=>{(function(t){return(0,h.fetchPost)(`/accounts/two-factor/signin/${t}/generate-challenge/`).then(t=>t.ok?t.json():t.json().then(({detail:t,code:e})=>{throw Error(t)}))})(t).then(t=>this._setCodeTTL(t.code_ttl)).catch(e)},this._startTimer=()=>{const t=this._generateChallengeBtnRef();if(!this._isSubscribed()||null===t)return;const e=this._codeTTLRef();clearInterval(this._codeTTLIntervalId),t.disabled=!0,this._codeTTLIntervalId=setInterval(()=>{const i=void 0===(n=this._codeExpDate)?0:Math.ceil((n-Date.now())/1e3);var n;i<0?(clearInterval(this._codeTTLIntervalId),t.disabled=!1,this._codeTTLIntervalId=void 0,this._codeExpDate=void 0):e.innerText=i.toString()},this._codeTTLUpdateInterval)},this._onCodeInputChange=(t,e,i,n)=>{const s=this._codeInputRef(),{value:o}=s,a=isNaN(Number(o))||e?this._reserveCodeLength:this._codeLength;if(s.maxLength=a,o.length===a){const e=new FormData;e.append("code",o),this._startLoading(),function(t,e){return(0,h.fetchPost)(`/accounts/two-factor/signin/${t}/`,e).then(t=>t.ok?t.json():t.json().then(e=>{if("require_parameters"===e.code)throw new h.AggregateError((0,h.accumulateErrors)(e.errors,t.status));throw new h.ApiError(e.detail,t.status,e.code)}))}(t,e).then(t=>{this._stopLoading(),i(t)}).catch(t=>{this._stopLoading(),s.focus(),n(t)})}},this._isSubscribed=()=>null!==this._secondAFContainerRef(),this._startLoading=()=>{var t +;this._isSubscribed()&&(null===(t=this._generateChallengeBtnRef())||void 0===t||t.classList.add(bt.hide),this._spinner.spin(this._spinnerContainerRef()),this._codeInputRef().disabled=!0)},this._stopLoading=()=>{var t;this._isSubscribed()&&(null===(t=this._generateChallengeBtnRef())||void 0===t||t.classList.remove(bt.hide),this._spinner.stop(),this._codeInputRef().disabled=!1)},this._secondAFContainerRef=()=>document.getElementById(this._secondAFContainerId),this._codeInputRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._codeInputId)},this._generateChallengeBtnRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._generateChallengeBtnId)},this._spinnerContainerRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._spinnerContainerId)},this._codeTTLRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._codeTTLId)},this._showView=t,this._spinner=new v.Spinner("mini")}render(t){var e;const{type:i,onSignin:n,onlyBackup:s,codeTTL:o,onError:a=this._onError}=t;let r="sms"===i?kt:$t;r=s?yt:r;const l=Q(bt["get-code"],bt["button-link"]);this._content=this._showView(`\n\t\t\t\t\n\t\t\t`);const c=this._codeInputRef();d(c),this._inputError=(0,wt.controlError)(c,{doNotShowIcon:!0,addErrorOnElement:void 0===t.onError}),c.addEventListener("input",()=>this._onCodeInputChange(i,s,n,a)),c.focus(), +null===(e=this._generateChallengeBtnRef())||void 0===e||e.addEventListener("click",()=>this._onGenerateChallenge(i,a)),"sms"===t.type&&!s&&o&&this._setCodeTTL(o)}}const jt=i(43209).formValidate;class Rt{constructor(t){this._guid=(0,m.guid)(),this._rootId="email-signin__"+this._guid,this._userNameInputId="email-signin__user-name-input__"+this._guid,this._passwordInputId="email-signin__password-input__"+this._guid,this._backButtonId="email-signin__back-button__"+this._guid,this._formId="email-signin__form__"+this._guid,this._submitButtonId="email-signin__submit-button__"+this._guid,this._forgotButtonId="email-signin__forgot-button__"+this._guid,this._footerLinkId="email-signin__footer-link__"+this._guid,this._recaptchaContainerId="email-signin__recaptcha-container__"+this._guid,this._secondAuthenticationFactor=null,this._content=null,this._isSubscribed=()=>null!==this._rootRef(),this._rootRef=()=>document.getElementById(this._rootId),this._userNameInputRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._userNameInputId)},this._passwordInputRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._passwordInputId)},this._backButtonRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._backButtonId)},this._formRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._formId)},this._submitButtonRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._submitButtonId)},this._forgotButtonRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._forgotButtonId)},this._footerLinkRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._footerLinkId)},this._recaptchaContainerRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._recaptchaContainerId)},this._showView=t,this._secondAuthenticationFactor=new Bt(t),this._recoverPassword=new mt(this._showView)}render(t){var e,n,s,a +;const r=`\n\t\t\t\n\t\t`;this._content=this._showView(r,{}),null===(e=this._backButtonRef())||void 0===e||e.addEventListener("click",()=>t.onAbort()),null===(n=this._footerLinkRef())||void 0===n||n.addEventListener("click",()=>t.onSignup()) +;const l=this._formRef(),c=this._passwordInputRef(),u=jt(l,{submitValidate:!1}),p=(0,o.buttonLoader)(this._submitButtonRef());d(this._userNameInputRef()),d(c),null===(s=this._formRef())||void 0===s||s.addEventListener("submit",e=>{if(e.preventDefault(),!u.validate())return;p.start();const i=new FormData(l);if(void 0!==this._recaptchaId){const t=i.get("g-recaptcha-response");i.append("g-recaptcha-response-v2",t),i.delete("g-recaptcha-response")}(0,h.signin)(i).then(t.onSigninSuccess).catch(e=>{var i;if(!this._isSubscribed())return;if("account_disabled"===e.type)return void t.onShowResend();if("recaptcha_required"===e.type)return void 0!==this._recaptchaId&&window.grecaptcha.getResponse(this._recaptchaId).length?window.grecaptcha.reset(this._recaptchaId):this._initRecaptcha(),void t.onError(e);if(["2FA_required","2FA_challenge_not_generated"].includes(e.type)&&e.secondFactorTypes&&e.secondFactorTypes.length>0){const n=403===e.status,s=e.secondFactorTypes[0];return null===(i=this._secondAuthenticationFactor)||void 0===i||i.render({codeTTL:"sms"===s.name?s.code_ttl:void 0,type:s.name,onlyBackup:n,onError:t.onError,onSignin:t.onSigninSuccess}),void(n&&!this._isSubscribed()&&t.onError(e))}t.onError(e),c.value=""}).then(()=>{this._isSubscribed()&&p.stop()})}),null===(a=this._forgotButtonRef())||void 0===a||a.addEventListener("click",()=>{this._recoverPassword.render({onAbort:()=>this.render(t),onError:t.onError})})}dispose(){var t;null===(t=this._secondAuthenticationFactor)||void 0===t||t.dispose()}_initRecaptcha(){ht.then(()=>{const t=this._recaptchaContainerRef();t&&(this._recaptchaId=window.grecaptcha.render(t,{sitekey:window.RECAPTCHA_SITE_KEY,theme:"light"}))})}}var At=i(1938),Vt=i(59401);const Pt=ht,Ot=i(43209).formValidate;class Mt{constructor(t){this._guid=(0,m.guid)(),this._rootId="email-signup__"+this._guid,this._backButtonId="email-signup__back-button__"+this._guid,this._recaptchaContainerId="email-signup__recaptcha-container__"+this._guid,this._formId="email-signup__form__"+this._guid,this._submitButtonId="email-signup__submit-button__"+this._guid,this._gdprWrapId="email-signup__gdpr-wrap__"+this._guid,this._gdprCheckboxWrapId="email-signup__gdpr-checkbox-wrap__"+this._guid,this._footerLinkId="email-signup__footer-link__"+this._guid,this._materialInputsClass="email-signup__material-inputs__"+this._guid,this._initMaterial=()=>{var t;null===(t=this._content)||void 0===t||t.querySelectorAll("."+this._materialInputsClass).forEach(t=>{t&&d(t)})},this._isSubscribed=()=>null!==this._rootRef(),this._rootRef=()=>document.getElementById(this._rootId),this._backButtonRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._backButtonId)},this._recaptchaContainerRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._recaptchaContainerId)},this._formRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._formId)},this._submitButtonRef=()=>{var t +;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._submitButtonId)},this._gdprCheckboxWrap=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._gdprCheckboxWrapId)},this._footerLinkRef=()=>{var t;return null===(t=this._content)||void 0===t?void 0:t.querySelector("#"+this._footerLinkId)},this._showView=t}render(t){var e,i;this._content=this._showView(this._getTemplate(t),{}),t.isRecaptchaDisabled||this._initRecaptcha(),null===(e=this._backButtonRef())||void 0===e||e.addEventListener("click",()=>t.onAbort()),null===(i=this._footerLinkRef())||void 0===i||i.addEventListener("click",()=>t.onSignin());const n=this._gdprCheckboxWrap();n&&(n.dataset.tvControlErrorWrap="#"+this._gdprWrapId);const s={submitValidate:!1,rules:{gdpr:{required:!1,custom:(t,e)=>e.get(0).checked?null:w.t("You need to accept our Terms of Use as well as Privacy and Cookies policy to sign up")}}},a=this._formRef(),r=Ot(a,s),l=(0,o.buttonLoader)(this._submitButtonRef());this._initMaterial(),null==a||a.addEventListener("submit",e=>{e.preventDefault(),r.validate()&&(l.start(),(0,h.signup)(new FormData(a)).then(()=>{this._isSubscribed()&&(!function(t){if(t&&TradingView.signupSource){var e=TradingView.signupSourceParameters;e&&(e.additionalCategories&&e.additionalCategories.forEach((function(t){(0,R.trackEvent)(t+" Registration",TradingView.signupSource)})),TradingView.signupSourceParameters=null),(0,R.trackEvent)("Registration",TradingView.signupSource),(0,R.trackEvent)("Registration medium",t),TradingView.signupSource=null}}("Email"),(0,At.trackGTagAdsEvent)(At.GTagEvent.RegistrationCompleted),(0,Vt.trackTwitterEvent)(Vt.TwitterEvent.RegistrationCompleted),t.onShowResend())}).catch(e=>{this._isSubscribed()&&(window.grecaptcha.getResponse(this._recaptchaId).length&&window.grecaptcha.reset(this._recaptchaId),e.errors?e.errors.forEach(i=>{"g-recaptcha-response"===i.type||void 0===i.type?t.onError(e):r.setError({name:i.type,error:i.message})}):t.onError(e))}).then(()=>{this._isSubscribed()&&l.stop()}))})}_getTemplate(t){const{dailyfx:e,nameFields:n,isRecaptchaDisabled:s}=t +;return`\n\t\t\t\n\t\t`}_hidenInputs(t){const{referralProgramId:e,affId:i,source:n,affSub:s,urlId:o,fileId:a,affSub2:r,affSub3:l,affClickId:d,targetLink:c,affUnique1:u,featureSource:h,utm:p}=t;return`\n\t\t\t${e?``:""}\n\t\t\t${i?``:""}\n\t\t\t${c?``:""}\n\t\t\t${n?``:""}\n\t\t\t${s?``:""}\n\t\t\t${r?``:""}\n\t\t\t${l?``:""}\n\t\t\t${d?``:""}\n\t\t\t${u?``:""}\n\t\t\t${o?``:""}\n\t\t\t${a?``:""}\n\t\t\t${h?``:""}\n\t\t\t${p.source?``:""}\n\t\t\t${p.medium?``:""}\n\t\t`}_initRecaptcha(){Pt.then(()=>{const t=this._recaptchaContainerRef();t&&(this._recaptchaId=window.grecaptcha.render(t,{sitekey:window.RECAPTCHA_SITE_KEY,theme:pt.watchedTheme.value()===gt.StdTheme.Dark?"dark":"light"}))})}}var Ft=i(23127);const qt=`\n\t\t
\n\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t${w.t("OK")}\n\t\t\t
\n\t\t
\n\t`;class Dt{constructor(t){this._showView=t}render(t){ +const e=`\n\t\t\t\t
\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t`,n=this._showView(e,{koreanAuth:t.koreanAuth}),s=Ft(n).find(".tv-signin-dialog__area--resend");s.on("click",".js-dialog__resend",()=>{const e=s.find(".js-dialog__resend").tvButtonLoader("start");(0,h.resendLink)().then(t=>{this._showView(qt,{text:w.t("Activation key has been sent to"),email:t.email})}).catch(t.onError).then(()=>e.tvButtonLoader("stop"))}),Array.from(n.querySelectorAll(".js-socials")).forEach(e=>{N(e,{featureSource:t.source,referralProgramId:t.referralProgramId,callBack:()=>G("will_start_trial","1",0,"/"),affId:t.affId,affSub:t.affSub,urlId:t.urlId,fileId:t.fileId})})}}var zt=i(48312),Wt=i(13398),Ut=i(23127) +;const Nt=w.t("Something went wrong"),Ht="auto-show-email-for-signin";class Gt{constructor(t,e,n){var s;this._name="step-one",this._dialog=null,this._guid=(0,m.guid)(),this._footerLinkId=`${this._name}__footer-link__${this._guid}`,this._showEmail=Boolean(E.TVLocalStorage.getItem(Ht)),this._render=async()=>{let t="";t=this._options.startTrial?"signin"===this._dialogState?w.t("Sign in to get free trial"):w.t("Sign up to get free trial"):"signin"===this._dialogState?w.t("Sign in"):w.t("Sign up");const e=`\n\t\t\t\t\n\t\t\t`;this._showView(e,this._tplOptions);const n=this._$content;return n.find("#"+this._footerLinkId).on("click",()=>{ +this._dialogState="signup"===this._dialogState?"signin":"signup",this._render()}),n.find(".js-show-email").on("click",this._onShowEmail),Array.from(n[0].querySelectorAll(".js-socials")).forEach(t=>{N(t,{featureSource:this._options.source,referralProgramId:this._tplOptions.referralProgramId,callBack:()=>{E.TVLocalStorage.removeItem(Ht),G("will_start_trial","1",0,"/")},affId:this._tplOptions.affId,affSub:this._tplOptions.affSub,urlId:this._tplOptions.urlId,fileId:this._tplOptions.fileId})}),this._$content},this._onShowEmail=()=>{"signup"===this._dialogState?this._signupRender():this._signinRender()},this._error=t=>{var e;null===(e=this._dialog)||void 0===e||e.error(t.message||Nt)},this._showResendDialog=()=>{this._activationLink.render({koreanAuth:this._tplOptions.koreanAuth,onError:this._error,source:this._options.source,referralProgramId:this._tplOptions.referralProgramId,affId:this._tplOptions.affId,affSub:this._tplOptions.affSub,urlId:this._tplOptions.urlId,fileId:this._tplOptions.fileId})},this._showView=(t,e)=>(clearTimeout(this._animationId),this._$content.addClass(zt["hide-animated"]),this._$content.html(Wt.render(t,e)),this._animationId=setTimeout(()=>{this._$content.removeClass(zt["hide-animated"])},20),this._$content[0]),this._signupRender=()=>{const t=(0,f.isFeatureEnabled)("disable_recaptcha_on_signup");this._emailSignupForm.render({onAbort:()=>{this._render()},onShowResend:()=>this._showResendDialog(),onSignin:()=>{this._dialogState="signin",this._render()},onError:this._error,dailyfx:this._tplOptions.dailyfx,referralProgramId:this._tplOptions.referralProgramId,affId:this._tplOptions.affId,source:this._tplOptions.source,affSub:this._tplOptions.affSub,affSub2:this._tplOptions.affSub2,affSub3:this._tplOptions.affSub3,affClickId:this._tplOptions.affClickId,urlId:this._tplOptions.urlId,fileId:this._tplOptions.fileId,targetLink:this._tplOptions.targetLink,affUnique1:this._tplOptions.affUnique1,featureSource:this._tplOptions.featureSource,nameFields:this._tplOptions.nameFields,utm:this._utm,isRecaptchaDisabled:t})},this._signinRender=()=>{this._emailSigninForm.render({onAbort:()=>{this._render()},onSigninSuccess:t=>{var e,i;if(window.user=t.user,window.TradingView.changeLoginState(!0),null===(e=this._dialog)||void 0===e||e.trigger("signinSuccess",this._dialog),E.TVLocalStorage.setItem(Ht,"1"),"/"===location.pathname){const t=(0,c.getUrlParams)().next;t&&((0,H.isInternalUrl)(t)?location.href=t:window.console&&console.error&&console.error("Unsafe redirect URL: "+t))}null===(i=this._dialog)||void 0===i||i.close()},onError:this._error,onShowResend:()=>{this._showResendDialog()},onSignup:()=>{this._dialogState="signup",this._render()}})},this._options=t,this._tplOptions={...e},this._utm=n,this._options.source&&(this._tplOptions.featureSource=t.source),this._$content=Ut(Wt.render('',{})),this._emailSigninForm=new Rt(this._showView),this._emailSignupForm=new Mt(this._showView),this._activationLink=new Dt(this._showView), +this._dialogState=null!==(s=this._options.mode)&&void 0!==s?s:"signin"}dispose(){this._emailSigninForm.dispose()}render(t){return this._dialog=t,t.$content.append(this._$content),this._showEmail?this._onShowEmail():this._render(),this._$content}}i(86331);var Kt=i(23127);const Qt=i(67337);let Yt,Jt=!1;function Xt(t={}){if(Yt)return Yt;if(!Qt.enabled("show_login_dialog"))return void window.loginRequiredDelegate.fire(t);const e="create-account"===t.mode;if(window.is_authenticated&&!e)return;if(Qt.enabled("widget")&&Qt.enabled("referral_program_for_widget_owners"))return void(0,s.showGoToTradingViewReferralDialog)(t);if(Qt.enabled("whotrades_auth_only")&&!e)return new n.TVModal({width:450,destroyOnClose:!0,contentWrapTemplate:"
",closeButtonTemplate:`
${i(12565)}
`,content:'`}};window.TradingView=window.TradingView||{},window.TradingView.version=r,exports.version=r,exports.widget=a; +"use strict";function t(e,n){const i={...e};for(const o in n)"object"!=typeof e[o]||null===e[o]||Array.isArray(e[o])?void 0!==n[o]&&(i[o]=n[o]):i[o]=t(e[o],n[o]);return i}Object.defineProperty(exports,"__esModule",{value:!0});const e={mobile:{disabled_features:["left_toolbar","header_widget","timeframes_toolbar","edit_buttons_in_legend","context_menus","control_bar","border_around_the_chart"],enabled_features:[]}},n={width:800,height:500,interval:"1D",timezone:"Etc/UTC",container:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},trading_customization:{position:{},order:{}},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"1W"},{text:"1y",resolution:"1W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[]}};let i=!1;function o(t){var e;const n=/\.woff(\d*)/.exec(t);return``}function s(t,e){const n=new URL(`${t||""}`,location.href).href,i=JSON.parse('["bundles/runtime.e861c3f73de2a48d47a3.js","bundles/5386.eb112967859403067d3d.css","bundles/5386.eb112967859403067d3d.rtl.css","bundles/1857.92ea29314fb71e119d3e.js","bundles/library.dba373dbc4943dc69a07.js","bundles/b1a63a011fd92dfb93db6db243bb036c.woff2","bundles/40f9a03d174178efb12303caa9bc7cd8.woff2","bundles/3293616ec0c605c7c2db25829a0a509e.woff"]'),s=JSON.parse('[{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"cs","dir":"ltr","language":"cs"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"fa","dir":"rtl","language":"fa"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"he","dir":"rtl","language":"he_IL"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"el","dir":"ltr","language":"el"},{"iso":"nl","dir":"ltr","language":"nl_NL"},{"iso":"ro","dir":"ltr","language":"ro"}]'),r=encodeURIComponent(e),a=s.find((t=>t.language===r)),d=`lang="${a.iso}" dir="${a.dir}"`,l=`\n${function(t,e){if(void 0===t)return"";const n=[],i=[],s=[],r=/\.css$/i,a=/\.rtl\.css$/i;for(const d of t)d.endsWith(".js")?i.push(`